UNPKG

@stihl-design-system/components

Version:

Welcome to the STIHL Design System react component library.

50 lines (49 loc) 2.42 kB
"use client"; import { jsx as D } from "react/jsx-runtime"; import { d as N } from "./chunks/index.CgTHIF3K.js"; import { c as w } from "./chunks/index.CEyLAtio.js"; import './assets/text.Dgpj61UP.css';const z = "ds-text_root_1mo26_6", j = "ds-text_root--large_1mo26_15", y = "ds-text_root--large-bold_1mo26_26", C = "ds-text_root--medium_1mo26_37", E = "ds-text_root--medium-bold_1mo26_48", $ = "ds-text_root--small_1mo26_59", q = "ds-text_root--small-bold_1mo26_70", A = "ds-text_root--x-small_1mo26_81", F = "ds-text_root--x-small-bold_1mo26_92", G = "ds-text_root--xx-small_1mo26_103", H = "ds-text_root--theme-dark_1mo26_197", t = { root: z, rootLarge: j, rootLargeBold: y, rootMedium: C, rootMediumBold: E, rootSmall: $, rootSmallBold: q, rootXSmall: A, rootXSmallBold: F, rootXxSmall: G, rootThemeDark: H }, O = (x) => { const o = N.c(25); let e, s, r, m, a, d, c; o[0] !== x ? ({ children: e, className: s, size: m, tag: a, theme: d, weight: c, ...r } = x, o[0] = x, o[1] = e, o[2] = s, o[3] = r, o[4] = m, o[5] = a, o[6] = d, o[7] = c) : (e = o[1], s = o[2], r = o[3], m = o[4], a = o[5], d = o[6], c = o[7]); const l = m === void 0 ? "medium" : m, T = a === void 0 ? "p" : a, v = d === void 0 ? "light" : d, n = c === void 0 ? "normal" : c, g = T, S = l === "large", u = l === "large" && n === "bold", B = l == "medium", h = l === "medium" && n === "bold", X = l == "small", b = l == "small" && n === "bold", f = l == "x-small", p = l == "x-small" && n === "bold", L = l == "xx-small", M = v === "dark"; let _; o[8] !== s || o[9] !== b || o[10] !== f || o[11] !== p || o[12] !== L || o[13] !== M || o[14] !== S || o[15] !== u || o[16] !== B || o[17] !== h || o[18] !== X ? (_ = w(t.root, s, { [t.rootLarge]: S, [t.rootLargeBold]: u, [t.rootMedium]: B, [t.rootMediumBold]: h, [t.rootSmall]: X, [t.rootSmallBold]: b, [t.rootXSmall]: f, [t.rootXSmallBold]: p, [t.rootXxSmall]: L, [t.rootThemeDark]: M }), o[8] = s, o[9] = b, o[10] = f, o[11] = p, o[12] = L, o[13] = M, o[14] = S, o[15] = u, o[16] = B, o[17] = h, o[18] = X, o[19] = _) : _ = o[19]; const k = _; let i; return o[20] !== g || o[21] !== e || o[22] !== r || o[23] !== k ? (i = /* @__PURE__ */ D(g, { className: k, ...r, children: e }), o[20] = g, o[21] = e, o[22] = r, o[23] = k, o[24] = i) : i = o[24], i; }; export { O as DSText };