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.CgTHIF3K.js"; import { c as p } from "./index.CEyLAtio.js"; import "react"; import { D as E } from "./Icon.DGTYCv63.js"; import '../assets/SystemFeedback.RcrPepSZ.css';const x = "ds-system-feedback_root_1lr41_1", D = { root: x }, h = ["success", "error", "warning"], k = { 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(D.root, s), e[6] = s, e[7] = l) : l = e[7]; const m = l, d = k[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, k as a };