UNPKG

@stihl-design-system/components

Version:

Welcome to the STIHL Design System react component library.

34 lines (33 loc) 1.34 kB
"use client"; import { jsx as f } from "react/jsx-runtime"; import { d as _ } from "./chunks/index.CgTHIF3K.js"; import { c as p } from "./chunks/index.CEyLAtio.js"; import './assets/numberindicator.BJnvB-K3.css';const b = "ds-number-indicator_root_t83wm_1", C = "ds-number-indicator_root--has-content_t83wm_25", H = "ds-number-indicator_root--highlight_t83wm_30", g = { root: b, rootHasContent: C, rootHighlight: H }, x = (c) => { const t = _.c(16); let n, o, e, r; t[0] !== c ? ({ label: o, className: n, variant: r, ...e } = c, t[0] = c, t[1] = n, t[2] = o, t[3] = e, t[4] = r) : (n = t[1], o = t[2], e = t[3], r = t[4]); const u = r === void 0 ? "default" : r, s = typeof o == "string" && o.trim().length > 0; let i; t[5] !== s || t[6] !== o ? (i = s ? o.trim().substring(0, 4) : null, t[5] = s, t[6] = o, t[7] = i) : i = t[7]; const m = i, h = u === "highlight" || !s; let l; t[8] !== n || t[9] !== s || t[10] !== h ? (l = p(g.root, n, { [g.rootHasContent]: s, [g.rootHighlight]: h }), t[8] = n, t[9] = s, t[10] = h, t[11] = l) : l = t[11]; const d = l; let a; return t[12] !== e || t[13] !== d || t[14] !== m ? (a = /* @__PURE__ */ f("span", { className: d, ...e, children: m }), t[12] = e, t[13] = d, t[14] = m, t[15] = a) : a = t[15], a; }; export { x as NumberIndicator };