UNPKG

@stihl-design-system/components

Version:

Welcome to the STIHL Design System react component library.

47 lines (46 loc) 2.29 kB
"use client"; import { jsx as X } from "react/jsx-runtime"; import { d as D } from "./chunks/index.CgTHIF3K.js"; import { c as T } from "./chunks/index.CEyLAtio.js"; import './assets/heading.B-rdLVZD.css';const v = "ds-heading_root_6kuzl_1", N = "ds-heading_root--x-large_6kuzl_4", j = "ds-heading_root--x-large-uppercase_6kuzl_19", y = "ds-heading_root--large_6kuzl_35", C = "ds-heading_root--large-uppercase_6kuzl_50", E = "ds-heading_root--medium_6kuzl_66", H = "ds-heading_root--medium-uppercase_6kuzl_75", $ = "ds-heading_root--small_6kuzl_85", b = "ds-heading_root--small-uppercase_6kuzl_94", q = "ds-heading_root--theme-dark_6kuzl_104", o = { root: v, rootXLarge: N, rootXLargeUppercase: j, rootLarge: y, rootLargeUppercase: C, rootMedium: E, rootMediumUppercase: H, rootSmall: $, rootSmallUppercase: b, rootThemeDark: q }, F = (d) => { const e = D.c(23); let r, s, a, l, c, p; e[0] !== d ? ({ children: r, className: s, size: l, tag: c, theme: p, ...a } = d, e[0] = d, e[1] = r, e[2] = s, e[3] = a, e[4] = l, e[5] = c, e[6] = p) : (r = e[1], s = e[2], a = e[3], l = e[4], c = e[5], p = e[6]); const t = l === void 0 ? "medium" : l, f = c === void 0 ? "h2" : c, M = p === void 0 ? "light" : p, i = f, g = t === "x-large", u = t === "x-large-uppercase", _ = t === "large", h = t === "large-uppercase", k = t == "medium", z = t == "medium-uppercase", L = t == "small", U = t == "small-uppercase", x = M === "dark"; let m; e[7] !== s || e[8] !== L || e[9] !== U || e[10] !== x || e[11] !== g || e[12] !== u || e[13] !== _ || e[14] !== h || e[15] !== k || e[16] !== z ? (m = T(o.root, s, { [o.rootXLarge]: g, [o.rootXLargeUppercase]: u, [o.rootLarge]: _, [o.rootLargeUppercase]: h, [o.rootMedium]: k, [o.rootMediumUppercase]: z, [o.rootSmall]: L, [o.rootSmallUppercase]: U, [o.rootThemeDark]: x }), e[7] = s, e[8] = L, e[9] = U, e[10] = x, e[11] = g, e[12] = u, e[13] = _, e[14] = h, e[15] = k, e[16] = z, e[17] = m) : m = e[17]; const S = m; let n; return e[18] !== i || e[19] !== r || e[20] !== a || e[21] !== S ? (n = /* @__PURE__ */ X(i, { className: S, ...a, children: r }), e[18] = i, e[19] = r, e[20] = a, e[21] = S, e[22] = n) : n = e[22], n; }; export { F as DSHeading };