UNPKG

@stihl-design-system/components

Version:

Welcome to the STIHL Design System react component library.

39 lines (38 loc) 1.3 kB
"use client"; import { jsxs as f, jsx as S } from "react/jsx-runtime"; import { d as _ } from "./index.D-sRdssb.js"; import { c as p } from "./index.DL9mof6u.js"; import "react"; import { D as E } from "./Icon.CDLyB7Pv.js"; import '../assets/SystemFeedback.PKzqnXUe.css';const k = "ds-system-feedback_root_1dkn4_1", x = { root: k }, h = ["success", "error", "warning"], D = { success: "circle-check-colored", error: "diamond-exclamationmark-colored", warning: "triangle-exclamationmark-colored" }, y = (n) => { const e = _.c(16); let s, t, o, r, c; e[0] !== n ? ({ id: t, message: o, variant: c, className: s, ...r } = n, e[0] = n, e[1] = s, e[2] = t, e[3] = o, e[4] = r, e[5] = c) : (s = e[1], t = e[2], o = e[3], r = e[4], c = e[5]); let l; e[6] !== s ? (l = p(x.root, s), e[6] = s, e[7] = l) : l = e[7]; const m = l, d = D[c]; let a; e[8] !== d ? (a = /* @__PURE__ */ S(E, { name: d, "aria-hidden": "true" }), e[8] = d, e[9] = a) : a = e[9]; let i; return e[10] !== t || e[11] !== o || e[12] !== r || e[13] !== m || e[14] !== a ? (i = /* @__PURE__ */ f("div", { id: t, className: m, ...r, children: [ a, o ] }), e[10] = t, e[11] = o, e[12] = r, e[13] = m, e[14] = a, e[15] = i) : i = e[15], i; }; export { y as D, h as S, D as a };