@stordata/design-system 0.1.20260629080514

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,59 @@
1
+ import { i as e, r as t } from "./DSButton-BXD09god.js";
2
+ import { useEffect as n, useMemo as r } from "react";
3
+ import { jsx as i } from "react/jsx-runtime";
4
+ //#region src/services/helpers/defaultsDeep.ts
5
+ function a(e, t) {
6
+ let n = (e) => typeof e == "object" && !!e && !Array.isArray(e);
7
+ return Object.keys(e).reduce((r, i) => {
8
+ let o = t[i], s = e[i];
9
+ return n(s) && n(o) ? r[i] = a(s, o) : i in t ? r[i] = o : r[i] = s, r;
10
+ }, {});
11
+ }
12
+ //#endregion
13
+ //#region src/services/useDefaults/index.ts
14
+ function o(e, t) {
15
+ return r(() => a(e, t), [e, t]);
16
+ }
17
+ //#endregion
18
+ //#region lib/DSProvider/index.tsx
19
+ function s({ theme: r, children: a }) {
20
+ let s = o(e, r);
21
+ function c() {
22
+ let e = [], t = s.sizing.one;
23
+ function n(t, n) {
24
+ e.push(`${t}: ${n}`);
25
+ }
26
+ function r(e, t) {
27
+ return n(e, `${t}rem`);
28
+ }
29
+ function i() {
30
+ a("size", 0, 50);
31
+ }
32
+ function a(e, n, i, a = 1) {
33
+ for (let o = n; o <= i; o += 1) r(`--${e}-${o}`, t * o * a);
34
+ }
35
+ function o() {
36
+ for (let [e, t] of Object.entries(s.colors)) for (let [r, i] of Object.entries(t)) n(`--${e}-${r}`, i);
37
+ }
38
+ function c() {
39
+ for (let [e, [t, n]] of Object.entries(s.semantic.tokens)) l(e, s.mode === "light" ? t : n);
40
+ }
41
+ function l(e, t) {
42
+ n(e, `var(${t})`);
43
+ }
44
+ function u(e, t, n, r) {
45
+ l(e, `--${t}-${s.mode === "light" ? n : r}`);
46
+ }
47
+ i(), a("spacing", 0, 24, s.sizing.spacing.multiplier), n("--radius-focus", "var(--radius-6)"), a("radius", 0, 12, s.sizing.radius.multiplier), o(), c(), n("--color-none", s.mode === "light" ? "#FFFFFF03" : "#00000003"), u("--text-primary", "neutral", "1000", "0"), u("--text-secondary", "neutral", "900", "100"), u("--text-tertiary", "neutral", "800", "200"), u("--text-supporting", "neutral", "700", "300"), u("--text-muted", "neutral", "600", "400"), u("--text-disabled", "neutral", "500", "500"), u("--text-inversed", "neutral", "0", "1000"), u("--text-inversed-soft", "neutral", "400", "600"), u("--text-brand", "brand", "600", "400"), u("--text-info", "blue", "700", "400"), u("--text-success", "green", "700", "400"), u("--text-warning", "orange", "700", "400"), u("--text-danger-default", "red", "600", "500"), u("--text-danger-strong", "red", "700", "400"), u("--surface-primary", "neutral", "0", "1000"), u("--surface-inversed", "neutral", "1000", "0"), u("--surface-brand-default", "brand", "600", "400"), u("--surface-brand-subtle", "brand", "200", "800"), u("--surface-brand-medium", "brand", "300", "700"), u("--surface-disabled-soft", "neutral", "200", "800"), u("--surface-disabled-strong", "neutral", "300", "700"), u("--surface-info", "blue", "300", "700"), u("--surface-info-subtle", "blue", "200", "950"), u("--surface-success", "green", "300", "700"), u("--surface-success-subtle", "green", "200", "950"), u("--surface-warning", "orange", "300", "700"), u("--surface-warning-subtle", "orange", "200", "950"), u("--surface-danger-default", "red", "600", "500"), u("--surface-danger-medium", "red", "300", "800"), u("--surface-danger-subtle", "red", "200", "950"), u("--border-brand", "brand", "600", "400"), u("--border-inversed", "neutral", "0", "1000"), u("--border-brand-subtle", "brand", "300", "800"), u("--border-info", "blue", "600", "400"), u("--border-info-subtle", "blue", "300", "800"), u("--border-success", "green", "600", "400"), u("--border-success-subtle", "green", "300", "800"), u("--border-warning", "orange", "600", "400"), u("--border-warning-subtle", "orange", "300", "800"), u("--border-danger", "red", "600", "400"), u("--border-danger-subtle", "red", "300", "800"), u("--border-disabled", "neutral", "300", "700"), u("--border-soft", "neutral", "400", "600"), u("--border-strong", "neutral", "500", "500"), l("--border-focus", "--border-brand"), l("--border-focus-inversed", "--border-inversed"), u("--icon-default", "neutral", "800", "200"), u("--icon-subtle", "neutral", "600", "400"), l("--icon-disabled", "--text-disabled"), u("--icon-brand", "brand", "600", "400"), l("--icon-inversed", "--text-inversed"), l("--icon-info", "--text-info"), l("--icon-success", "--text-success"), l("--icon-warning", "--text-warning"), l("--icon-danger", "--text-danger-default"), l("--action-brand-text-default", "--text-brand"), u("--action-brand-text-hover", "brand", "700", "300"), u("--action-brand-text-pressed", "brand", "900", "100"), u("--action-brand-text-active", "brand", "800", "200"), l("--action-brand-text-on-brand", "--text-inversed"), l("--action-brand-bg-default", "--surface-brand-default"), u("--action-brand-bg-hover", "brand", "700", "300"), u("--action-brand-bg-hover-subtle", "brand", "100", "900"), u("--action-brand-bg-pressed", "brand", "900", "100"), u("--action-brand-bg-pressed-subtle", "brand", "300", "700"), u("--action-brand-bg-selected", "brand", "800", "200"), u("--action-brand-bg-selected-subtle", "brand", "200", "800"), u("--action-brand-bg-active", "brand", "800", "200"), u("--action-brand-bg-active-subtle", "brand", "200", "800"), l("--action-brand-border-default", "--border-brand"), l("--action-neutral-text-default", "--text-primary"), l("--action-neutral-text-subtle", "--text-supporting"), l("--action-neutral-text-on-neutral", "---action-neutral-text-default"), u("--action-neutral-bg-default", "neutral", "100", "900"), u("--action-neutral-bg-hover", "neutral", "200", "800"), l("--action-neutral-bg-hover-subtle", "--action-neutral-bg-default"), u("--action-neutral-bg-pressed", "neutral", "400", "600"), u("--action-neutral-bg-selected", "neutral", "300", "700"), u("--action-neutral-bg-active", "neutral", "300", "700"), l("--action-neutral-border-default", "--border-default"), l("--action-danger-text-default", "--text-danger-default"), u("--action-danger-text-hover", "red", "700", "300"), u("--action-danger-text-active", "red", "800", "200"), l("--action-danger-text-on-danger", "--text-inversed"), l("--action-danger-bg-default", "--surface-danger-default"), u("--action-danger-bg-hover", "red", "700", "400"), u("--action-danger-bg-hover-subtle", "red", "100", "900"), u("--action-danger-bg-pressed", "red", "900", "300"), u("--action-danger-bg-pressed-subtle", "red", "300", "700"), u("--action-danger-bg-selected", "red", "800", "300"), u("--action-danger-bg-selected-subtle", "red", "200", "800"), u("--action-danger-bg-active", "red", "800", "200"), u("--action-danger-bg-active-subtle", "red", "200", "800"), l("--action-danger-border-default", "--border-danger"), l("--action-disabled-text-default", "--text-disabled"), l("--action-disabled-bg-default", "--action-neutral-bg-default"), l("--action-disabled-border-default", "--border-disabled"), l("--control-on-neutral-border-on", "--border-brand"), u("--control-on-neutral-border-off", "neutral", "600", "400"), l("--control-on-neutral-border-disabled", "--border-disabled"), l("--control-on-neutral-border-focus", "--border-focus"), l("--control-on-neutral-surface-on", "--surface-brand-default"), u("--control-on-neutral-surface-off", "neutral", "500", "400"), l("--control-on-neutral-surface-disabled", "--surface-disabled-strong"), l("--control-on-neutral-icon-brand", "--icon-brand"), u("--control-on-neutral-icon-neutral", "neutral", "500", "500"), u("--control-on-neutral-icon-disabled", "neutral", "200", "800"), u("--control-on-neutral-thumb-on", "brand", "700", "300"), l("--control-on-neutral-thumb-off", "--surface-primary"), u("--control-on-neutral-thumb-disabled", "neutral", "400", "600"), l("--control-on-brand-border-default", "--border-inversed"), u("--control-on-brand-border-disabled", "brand", "400", "600"), l("--control-on-brand-border-on", "--control-on-brand-border-default"), l("--control-on-brand-border-off", "--control-on-brand-border-default"), l("--control-on-brand-border-focus", "--border-focus-inversed"), l("--control-on-brand-surface-on", "--surface-primary"), u("--control-on-brand-surface-disabled", "brand", "400", "600"), l("--control-on-brand-icon-on", "--icon-inversed"), l("--control-on-brand-icon-disabled", "--icon-brand"), u("--control-on-brand-icon-disabled-inversed", "brand", "400", "600"), l("--control-on-brand-thumb-default", "--surface-primary"), l("--control-on-brand-thumb-disabled", "--control-on-brand-surface-disabled"), u("--control-on-brand-thumb-disabled-inversed", "brand", "600", "400"), n("--alpha-white-8", "#FFFFFF14"), n("--alpha-white-12", "#FFFFFF1F"), n("--alpha-white-18", "#FFFFFF2E"), n("--alpha-black-4", "#0000000A"), n("--alpha-black-8", "#00000014"), n("--alpha-black-16", "#00000029"), n("--font-family-sans", s.typography.font.family.sans), n("--font-family-mono", s.typography.font.family.mono), n("--font-weight-regular", s.typography.font.weight.regular), n("--font-weight-medium", s.typography.font.weight.medium), n("--font-weight-semibold", s.typography.font.weight.semibold), n("--font-weight-bold", s.typography.font.weight.bold), n("--line-height-tight", s.typography.line.height.tight), n("--line-height-compact", s.typography.line.height.compact), n("--line-height-default", s.typography.line.height.default), n("--line-height-comfortable", s.typography.line.height.comfortable), n("--line-height-loose", s.typography.line.height.loose), n("--letter-spacing-none", s.typography.letter.spacing.none), n("--letter-spacing-tight", s.typography.letter.spacing.tight), n("--letter-spacing-wide", s.typography.letter.spacing.wide), a("font", 10, 48, s.typography.font.size.multiplier), l("--font-size-default", `--font-${s.typography.font.size.default}`);
48
+ let d = document.head.appendChild(document.createElement("style"));
49
+ return d.setAttribute("type", "text/css"), d.setAttribute("id", "DSProviderInsertionPoint"), d.sheet.insertRule(`:root { ${e.join(";")} }`, 0), d.sheet.insertRule("\n body {\n font-family: var(--font-family-sans);\n font-size: var(--font-size-default);\n font-weight: var(--font-weight-regular);\n line-height: var(--line-height-default);\n letter-spacing: var(--letter-spacing-none);\n\n color: var(--text-primary);\n background-color: var(--surface-primary);\n }\n ", 1), function() {
50
+ document.head.removeChild(d);
51
+ };
52
+ }
53
+ return n(c, [s]), /* @__PURE__ */ i(t, {
54
+ value: s,
55
+ children: a
56
+ });
57
+ }
58
+ //#endregion
59
+ export { s as t };
@@ -0,0 +1,2 @@
1
+ @import "https://fonts.googleapis.com/css2?family=Lexend+Deca:wght@100..900&family=Noto+Color+Emoji&family=Roboto:ital,wght@0,100..900;1,100..900&family=Source+Code+Pro:ital,wght@0,200..900;1,200..900&display=swap";._h1-display_1nowz_1{font-size:var(--font-48);font-weight:var(--font-weight-semibold);line-height:var(--line-height-tight)}._h1_1nowz_1{font-size:var(--font-28);font-weight:var(--font-weight-semibold);line-height:var(--line-height-tight)}._h2_1nowz_13{font-size:var(--font-22);font-weight:var(--font-weight-medium);line-height:var(--line-height-compact)}._h3_1nowz_19{font-size:var(--font-18);font-weight:var(--font-weight-regular);line-height:var(--line-height-compact)}._h3-bold_1nowz_25{font-size:var(--font-18);font-weight:var(--font-weight-bold);line-height:var(--line-height-compact)}._h4_1nowz_31{font-size:var(--font-16);font-weight:var(--font-weight-semibold);line-height:var(--line-height-compact)}._display-lg_1nowz_37{font-size:var(--font-36);font-weight:var(--font-weight-semibold)}._display-md_1nowz_42{font-size:var(--font-22);font-weight:var(--font-weight-semibold)}._body-xl_1nowz_47{font-size:var(--font-18);font-weight:var(--font-weight-medium)}._body-lg_1nowz_52{font-size:var(--font-16);font-weight:var(--font-weight-regular)}._body-lg-medium_1nowz_57{font-size:var(--font-16);font-weight:var(--font-weight-medium)}._body-lg-semibold_1nowz_62,._button-text-large_1nowz_62{font-size:var(--font-16);font-weight:var(--font-weight-semibold)}._body-lg-mono_1nowz_67{font-size:var(--font-16);font-weight:var(--font-weight-regular);font-family:var(--font-family-mono), monospace}._body-md_1nowz_73{font-size:var(--font-14);font-weight:var(--font-weight-regular)}._body-md-medium_1nowz_78,._button-text-small_1nowz_78{font-size:var(--font-14);font-weight:var(--font-weight-medium)}._body-md-semibold_1nowz_83,._button-text-medium_1nowz_83,._label-md_1nowz_83{font-size:var(--font-14);font-weight:var(--font-weight-semibold)}._body-md-mono_1nowz_88{font-size:var(--font-14);font-weight:var(--font-weight-regular);font-family:var(--font-family-mono), monospace}._body-sm_1nowz_94,._label-sm_1nowz_94{font-size:var(--font-12);font-weight:var(--font-weight-regular)}._body-sm-medium_1nowz_99,._helper-text-default_1nowz_99,._caption-default_1nowz_99{font-size:var(--font-12);font-weight:var(--font-weight-medium)}._body-sm-semibold_1nowz_104{font-size:var(--font-12);font-weight:var(--font-weight-semibold)}._body-sm-mono_1nowz_109{font-size:var(--font-12);font-weight:var(--font-weight-regular);font-family:var(--font-family-mono), monospace}._body-xs-mono_1nowz_115{font-size:var(--font-10);font-weight:var(--font-weight-medium);font-family:var(--font-family-mono), monospace}._label-md_1nowz_83{line-height:var(--line-height-default)}._label-sm_1nowz_94{line-height:var(--line-height-tight)}._button-text-small_1nowz_78,._button-text-medium_1nowz_83,._button-text-large_1nowz_62{line-height:var(--line-height-compact)}._caption-default_1nowz_99{line-height:var(--line-height-default)}._helper-text-default_1nowz_99{line-height:var(--line-height-tight)}._fullWidth_aevel_1{width:100%}._input_aevel_5{box-sizing:border-box;background-color:inherit;border-radius:.25rem;height:2.125rem;margin:0;padding:0 .75rem;font-family:Roboto,Noto Color Emoji,Helvetica,Arial,sans-serif;font-size:1rem;font-weight:400;line-height:1.375rem}._ghost_aevel_18{color:#343434;border:1px solid #0000}._ghost_aevel_18::placeholder{color:#9e9e9e}._ghost_aevel_18:hover{box-shadow:inset 0 0 0 1px #555}._ghost_aevel_18:hover::placeholder{color:#343434}._ghost_aevel_18:focus-visible{outline:1px solid #5f73b3;box-shadow:inset 0 0 0 1px #5f73b3}._helperText_aevel_36{gap:4px;height:18px;padding:2px 12px 0}._error_aevel_42{color:#b72427}._checkbox_dpwc5_1{width:var(--size-24);height:var(--size-24);padding:var(--size-3);border-radius:var(--radius-4);background-color:#0000;justify-content:center;align-items:center;display:flex}._checkbox_dpwc5_1 ._indicator_dpwc5_11{border-radius:var(--radius-2)}._checkbox_dpwc5_1._on-neutral_dpwc5_14:not([disabled]) ._indicator_dpwc5_11{box-shadow:inset 0 0 0 var(--size-2) var(--control-on-neutral-border-off);color:#0000}._checkbox_dpwc5_1._on-neutral_dpwc5_14:not([disabled]) ._indicator_dpwc5_11[data-checked]{color:var(--control-on-brand-icon-on);box-shadow:inset 0 0 0 var(--size-2) var(--control-on-neutral-border-on);background-color:var(--control-on-neutral-surface-on)}._checkbox_dpwc5_1._on-neutral_dpwc5_14:not([disabled]):focus-visible{outline:var(--size-2) solid var(--control-on-neutral-border-focus)}._checkbox_dpwc5_1._on-neutral_dpwc5_14:not([disabled]):hover{background-color:var(--control-on-neutral-hover)}._checkbox_dpwc5_1._on-neutral_dpwc5_14:not([disabled]):active{background-color:var(--control-on-neutral-active)}._checkbox_dpwc5_1._on-neutral_dpwc5_14 ._indicator_dpwc5_11{box-shadow:inset 0 0 0 var(--size-2) var(--control-on-neutral-border-disabled);color:#0000}._checkbox_dpwc5_1._on-neutral_dpwc5_14 ._indicator_dpwc5_11[data-checked]{background-color:var(--control-on-neutral-surface-disabled);color:var(--control-on-neutral-icon-disabled)}._checkbox_dpwc5_1._on-brand_dpwc5_40:not([disabled]) ._indicator_dpwc5_11{box-shadow:inset 0 0 0 var(--size-2) var(--control-on-brand-border-off);color:#0000}._checkbox_dpwc5_1._on-brand_dpwc5_40:not([disabled]) ._indicator_dpwc5_11[data-checked]{color:var(--control-on-neutral-icon-brand);box-shadow:inset 0 0 0 var(--size-2) var(--control-on-brand-border-on);background-color:var(--control-on-brand-surface-on)}._checkbox_dpwc5_1._on-brand_dpwc5_40:not([disabled]):focus-visible{outline:var(--size-2) solid var(--control-on-brand-border-focus)}._checkbox_dpwc5_1._on-brand_dpwc5_40:not([disabled]):hover{background-color:var(--control-on-brand-hover)}._checkbox_dpwc5_1._on-brand_dpwc5_40:not([disabled]):active{background-color:var(--control-on-brand-active)}._checkbox_dpwc5_1._on-brand_dpwc5_40 ._indicator_dpwc5_11{box-shadow:inset 0 0 0 var(--size-2) var(--control-on-brand-border-disabled);color:#0000}._checkbox_dpwc5_1._on-brand_dpwc5_40 ._indicator_dpwc5_11[data-checked]{background-color:var(--control-on-brand-surface-disabled);color:var(--control-on-brand-icon-disabled)}._card_1topy_1{gap:var(--spacing-12);padding:var(--spacing-24);border-radius:var(--radius-8);border:var(--size-1) solid var(--border-brand-subtle);flex-direction:column;display:flex}._card_1topy_1 ._title_1topy_9{width:fit-content;color:var(--text-brand);background-color:var(--surface-primary);border-radius:var(--radius-4);padding:var(--spacing-4) var(--spacing-12)}._card_1topy_1._primary_1topy_16{background-color:var(--surface-brand-subtle)}._card_1topy_1._secondary_1topy_19{background-color:var(--surface-primary)}._card_1topy_1._secondary_1topy_19 ._title_1topy_9{border:var(--size-1) solid var(--border-brand-subtle)}._accordion_1opz9_1{width:100%}._accordion_1opz9_1 ._item_1opz9_4{border-radius:var(--radius-4)}._accordion_1opz9_1 ._item_1opz9_4._brand_1opz9_7{border:var(--size-1) solid var(--action-brand-border-default)}._accordion_1opz9_1 ._item_1opz9_4._neutral_1opz9_10{border:var(--size-1) solid var(--action-neutral-border-default)}._accordion_1opz9_1 ._item_1opz9_4._danger_1opz9_13{border:var(--size-1) solid var(--action-danger-border-default)}._accordion_1opz9_1 ._item_1opz9_4 ._button_1opz9_16{width:100%}._accordion_1opz9_1 ._item_1opz9_4 ._button_1opz9_16>:last-child{margin-left:auto}._accordion_1opz9_1 ._item_1opz9_4[data-open] ._button_1opz9_16>:last-child{transform:rotate(45deg)}._accordion_1opz9_1 ._item_1opz9_4 ._panel_1opz9_25{padding:var(--spacing-12);height:var(--accordion-panel-height)}._Value_mvypf_1[data-placeholder]{color:#9e9e9e}._fullWidth_mvypf_5{width:100%}._Select_mvypf_9{box-sizing:border-box;color:#343434;background-color:inherit;-webkit-user-select:none;user-select:none;border:1px solid #0000;border-radius:.25rem;outline:0;justify-content:space-between;align-items:center;gap:.75rem;height:2.125rem;margin:0;padding-left:.75rem;padding-right:.75rem;display:flex}._Select_mvypf_9:hover{border:.0625rem solid #5f73b3}._Select_mvypf_9[data-popup-open],._Select_mvypf_9:focus-visible{outline-offset:.125rem;border:.0625rem solid #5f73b3;outline:.125rem solid #96a4dd}._SelectIcon_mvypf_41{display:flex}._Positioner_mvypf_45{z-index:1;-webkit-user-select:none;user-select:none;outline:none}._Popup_mvypf_52{box-sizing:border-box;min-width:var(--anchor-width);transform-origin:var(--transform-origin);background-color:canvas;background-clip:padding-box;border-radius:.25rem;transition:transform .15s,opacity .15s}._Popup_mvypf_52[data-starting-style],._Popup_mvypf_52[data-ending-style]{opacity:0;transform:scale(.9)}._Popup_mvypf_52[data-side=none]{opacity:1;min-width:calc(var(--anchor-width) + 1rem);transition:none;transform:none}@media (prefers-color-scheme:light){._Popup_mvypf_52{outline:1px solid #02051312;box-shadow:0 10px 15px -3px #02051312,0 4px 6px -4px #02051312}}._List_mvypf_78{box-sizing:border-box;max-height:var(--available-height);padding-block:.25rem;scroll-padding-block:1.5rem;position:relative;overflow-y:auto}._Item_mvypf_87{box-sizing:border-box;padding-block:.5rem;cursor:default;-webkit-user-select:none;user-select:none;outline:0;grid-template-columns:.75rem 1fr;align-items:center;gap:.5rem;padding-left:.75rem;padding-right:.75rem;display:grid}[data-side=none] ._Item_mvypf_87{padding-right:3rem}._Item_mvypf_87[data-highlighted]{z-index:0;position:relative}._Item_mvypf_87[data-highlighted]:before{content:"";z-index:-1;background-color:#e0e8f9;border-radius:.25rem;position:absolute;inset-block:0;inset-inline:.25rem}._ItemIndicator_mvypf_118{grid-column-start:1}._ItemIndicatorIcon_mvypf_122{width:1.125rem;height:1.125rem;display:block}._ItemText_mvypf_128{grid-column-start:2}._ScrollArrow_mvypf_132{color:#4e5c8b;z-index:1;text-align:center;cursor:default;background:canvas;border-radius:.25rem;justify-content:center;align-items:center;width:100%;height:1rem;font-size:.75rem;display:flex}._ScrollArrow_mvypf_132:before{content:"";width:100%;height:100%;position:absolute;left:0}._ScrollArrow_mvypf_132[data-direction=up][data-side=none]:before{top:-100%}._ScrollArrow_mvypf_132[data-direction=down]{bottom:0}._ScrollArrow_mvypf_132[data-direction=down][data-side=none]:before{bottom:-100%}._group_12gwd_1{display:flex}._group_12gwd_1 ._button_12gwd_4:first-child{border-top-right-radius:0;border-bottom-right-radius:0}._group_12gwd_1 ._button_12gwd_4:last-child{border-top-left-radius:0;border-bottom-left-radius:0}._group_12gwd_1 ._button_12gwd_4:not(:first-child):not(:last-child){border-radius:0}._group_12gwd_1 ._button_12gwd_4:not(:first-child){margin-left:calc(var(--size-1) * -1)}._root_1pyrs_1{width:var(--size-24);height:var(--size-24);border-radius:100%;justify-content:center;align-items:center;display:flex}._root_1pyrs_1 ._indicator_1pyrs_9{width:var(--size-18);height:var(--size-18);border-radius:100%;justify-content:center;align-items:center;display:flex}._root_1pyrs_1 ._indicator_1pyrs_9[data-checked]:before{content:"";width:var(--size-10);height:var(--size-10);border-radius:100%;display:block}._root_1pyrs_1._on-neutral_1pyrs_24:not([disabled]):focus-visible{outline:var(--size-2) solid var(--control-on-neutral-border-focus)}._root_1pyrs_1._on-neutral_1pyrs_24:not([disabled]):hover{background-color:var(--control-on-neutral-hover)}._root_1pyrs_1._on-neutral_1pyrs_24:not([disabled]):active{background-color:var(--control-on-neutral-active)}._root_1pyrs_1._on-neutral_1pyrs_24:not([disabled]) ._indicator_1pyrs_9{box-shadow:inset 0 0 0 var(--size-2) var(--control-on-neutral-border-off)}._root_1pyrs_1._on-neutral_1pyrs_24:not([disabled]) ._indicator_1pyrs_9[data-checked]{box-shadow:inset 0 0 0 var(--size-2) var(--control-on-neutral-border-on)}._root_1pyrs_1._on-neutral_1pyrs_24:not([disabled]) ._indicator_1pyrs_9[data-checked]:before{background-color:var(--control-on-neutral-surface-on)}._root_1pyrs_1._on-neutral_1pyrs_24 ._indicator_1pyrs_9{box-shadow:inset 0 0 0 var(--size-2) var(--control-on-neutral-border-disabled)}._root_1pyrs_1._on-neutral_1pyrs_24 ._indicator_1pyrs_9[data-checked]:before{background-color:var(--control-on-neutral-surface-disabled)}._root_1pyrs_1._on-brand_1pyrs_48:not([disabled]):focus-visible{outline:var(--size-2) solid var(--control-on-brand-border-focus)}._root_1pyrs_1._on-brand_1pyrs_48:not([disabled]):hover{background-color:var(--control-on-brand-hover)}._root_1pyrs_1._on-brand_1pyrs_48:not([disabled]):active{background-color:var(--control-on-brand-active)}._root_1pyrs_1._on-brand_1pyrs_48:not([disabled]) ._indicator_1pyrs_9{box-shadow:inset 0 0 0 var(--size-2) var(--control-on-brand-border-off)}._root_1pyrs_1._on-brand_1pyrs_48:not([disabled]) ._indicator_1pyrs_9[data-checked]{box-shadow:inset 0 0 0 var(--size-2) var(--control-on-brand-border-on)}._root_1pyrs_1._on-brand_1pyrs_48:not([disabled]) ._indicator_1pyrs_9[data-checked]:before{background-color:var(--control-on-brand-surface-on)}._root_1pyrs_1._on-brand_1pyrs_48 ._indicator_1pyrs_9{box-shadow:inset 0 0 0 var(--size-2) var(--control-on-brand-border-disabled)}._root_1pyrs_1._on-brand_1pyrs_48 ._indicator_1pyrs_9[data-checked]:before{background-color:var(--control-on-brand-surface-disabled)}._root_ulsrp_1{width:var(--size-46);height:var(--size-28);padding:var(--spacing-3);border-radius:var(--size-24);justify-content:center;align-items:center;display:flex}._root_ulsrp_1 ._track_ulsrp_10{width:100%;height:100%;padding:var(--spacing-2);border-radius:var(--size-24);justify-content:left;align-items:center;display:flex}._root_ulsrp_1 ._track_ulsrp_10 ._thumb_ulsrp_19{width:var(--size-18);height:var(--size-18);border-radius:var(--size-24);box-shadow:0 0 0 var(--size-2) var(--control-on-brand-thumb-shadow);justify-content:center;align-items:center;display:flex}._root_ulsrp_1[data-checked] ._track_ulsrp_10{justify-content:right}._root_ulsrp_1._on-neutral_ulsrp_31:focus-visible{outline:var(--size-2) solid var(--control-on-neutral-border-focus)}._root_ulsrp_1._on-neutral_ulsrp_31:not(:disabled) ._track_ulsrp_10{background-color:var(--control-on-neutral-surface-off)}._root_ulsrp_1._on-neutral_ulsrp_31:not(:disabled) ._track_ulsrp_10 ._thumb_ulsrp_19{color:var(--control-on-neutral-icon-neutral);background-color:var(--control-on-neutral-thumb-off)}._root_ulsrp_1._on-neutral_ulsrp_31:not(:disabled) ._track_ulsrp_10 ._thumb_ulsrp_19:hover{box-shadow:0 0 0 var(--size-4) var(--control-on-neutral-hover)}._root_ulsrp_1._on-neutral_ulsrp_31:not(:disabled) ._track_ulsrp_10 ._thumb_ulsrp_19:active{box-shadow:0 0 0 var(--size-4) var(--control-on-neutral-active)}._root_ulsrp_1._on-neutral_ulsrp_31:not(:disabled)[data-checked] ._track_ulsrp_10{background-color:var(--control-on-neutral-surface-on)}._root_ulsrp_1._on-neutral_ulsrp_31:not(:disabled)[data-checked] ._track_ulsrp_10 ._thumb_ulsrp_19{color:var(--control-on-neutral-icon-brand);background-color:var(--control-on-brand-thumb-default)}._root_ulsrp_1._on-neutral_ulsrp_31 ._track_ulsrp_10{background-color:var(--control-on-neutral-surface-disabled)}._root_ulsrp_1._on-neutral_ulsrp_31 ._track_ulsrp_10 ._thumb_ulsrp_19{color:var(--control-on-neutral-icon-disabled);background-color:var(--control-on-neutral-thumb-disabled)}._root_ulsrp_1._on-brand_ulsrp_61:focus-visible{outline:var(--size-2) solid var(--control-on-brand-border-focus)}._root_ulsrp_1._on-brand_ulsrp_61:not(:disabled) ._track_ulsrp_10{background-color:var(--color-none);box-shadow:inset 0 0 0 var(--size-1) var(--control-on-brand-border-default)}._root_ulsrp_1._on-brand_ulsrp_61:not(:disabled) ._track_ulsrp_10 ._thumb_ulsrp_19{color:var(--control-on-neutral-icon-brand);background-color:var(--control-on-brand-thumb-default)}._root_ulsrp_1._on-brand_ulsrp_61:not(:disabled) ._track_ulsrp_10 ._thumb_ulsrp_19:hover{box-shadow:0 0 0 var(--size-4) var(--control-on-brand-hover)}._root_ulsrp_1._on-brand_ulsrp_61:not(:disabled) ._track_ulsrp_10 ._thumb_ulsrp_19:active{box-shadow:0 0 0 var(--size-4) var(--control-on-brand-active)}._root_ulsrp_1._on-brand_ulsrp_61:not(:disabled)[data-checked] ._track_ulsrp_10{background-color:var(--control-on-brand-surface-on)}._root_ulsrp_1._on-brand_ulsrp_61:not(:disabled)[data-checked] ._track_ulsrp_10 ._thumb_ulsrp_19{color:var(--control-on-brand-icon-on);background-color:var(--control-on-neutral-thumb-on)}._root_ulsrp_1._on-brand_ulsrp_61 ._track_ulsrp_10{background-color:var(--control-on-brand-surface-disabled)}._root_ulsrp_1._on-brand_ulsrp_61 ._track_ulsrp_10 ._thumb_ulsrp_19{color:var(--control-on-brand-icon-disabled-inversed);background-color:var(--control-on-brand-thumb-disabled-inversed)}._icon_wxirn_1>svg{fill:currentColor;width:1em;height:1em}._icon_wxirn_1._extra-small_wxirn_6{font-size:var(--font-18)}._icon_wxirn_1._small_wxirn_9{font-size:var(--font-20)}._icon_wxirn_1._medium_wxirn_12{font-size:var(--font-22)}._icon_wxirn_1._large_wxirn_15{font-size:var(--font-24)}._icon_wxirn_1._extra-large_wxirn_18{font-size:var(--font-26)}._button_130ui_1{text-wrap-mode:nowrap;justify-content:center;align-items:center;gap:var(--spacing-4);border-radius:var(--radius-4);outline-offset:var(--spacing-2);display:flex}._button_130ui_1:focus-visible{outline:var(--size-2) solid var(--border-focus)}._button_130ui_1._small_130ui_13{height:var(--size-28);min-width:var(--size-28)}._button_130ui_1._small_130ui_13._label_130ui_17{padding:0 var(--spacing-8)}._button_130ui_1._medium_130ui_20{height:var(--size-32);min-width:var(--size-32)}._button_130ui_1._medium_130ui_20._label_130ui_17{padding:0 var(--spacing-12)}._button_130ui_1._large_130ui_27{height:var(--size-36);min-width:var(--size-36)}._button_130ui_1._large_130ui_27._label_130ui_17{padding:0 var(--spacing-16)}._button_130ui_1[disabled]{color:var(--action-disabled-text-default);background-color:var(--action-disabled-bg-default)}._button_130ui_1._brand_130ui_38._primary_130ui_38{color:var(--action-brand-text-on-brand);background-color:var(--action-brand-bg-default)}._button_130ui_1._brand_130ui_38._primary_130ui_38:hover{background-color:var(--action-brand-bg-hover)}._button_130ui_1._brand_130ui_38._primary_130ui_38:active{background-color:var(--action-brand-bg-active)}._button_130ui_1._brand_130ui_38._secondary_130ui_48,._button_130ui_1._brand_130ui_38._tertiary_130ui_48{color:var(--action-brand-text-default);background-color:var(--color-none)}._button_130ui_1._brand_130ui_38._secondary_130ui_48._secondary_130ui_48,._button_130ui_1._brand_130ui_38._tertiary_130ui_48._secondary_130ui_48{box-shadow:inset 0 0 0 var(--size-1) var(--action-brand-border-default)}._button_130ui_1._brand_130ui_38._secondary_130ui_48:hover,._button_130ui_1._brand_130ui_38._tertiary_130ui_48:hover{color:var(--action-brand-text-hover);background-color:var(--action-brand-bg-hover-subtle)}._button_130ui_1._brand_130ui_38._secondary_130ui_48:active,._button_130ui_1._brand_130ui_38._tertiary_130ui_48:active{color:var(--action-brand-text-active);background-color:var(--action-brand-bg-active-subtle)}._button_130ui_1._neutral_130ui_63._primary_130ui_38{color:var(--action-neutral-text-on-neutral);background-color:var(--action-neutral-bg-default)}._button_130ui_1._neutral_130ui_63._primary_130ui_38:hover{background-color:var(--action-neutral-bg-hover)}._button_130ui_1._neutral_130ui_63._primary_130ui_38:active{background-color:var(--action-neutral-bg-active)}._button_130ui_1._neutral_130ui_63._secondary_130ui_48,._button_130ui_1._neutral_130ui_63._tertiary_130ui_48{color:var(--action-neutral-text-default);background-color:var(--color-none)}._button_130ui_1._neutral_130ui_63._secondary_130ui_48._secondary_130ui_48,._button_130ui_1._neutral_130ui_63._tertiary_130ui_48._secondary_130ui_48{box-shadow:inset 0 0 0 var(--size-1) var(--action-neutral-border-default)}._button_130ui_1._neutral_130ui_63._secondary_130ui_48:hover,._button_130ui_1._neutral_130ui_63._tertiary_130ui_48:hover{color:var(--action-neutral-text-hover);background-color:var(--action-neutral-bg-hover-subtle)}._button_130ui_1._neutral_130ui_63._secondary_130ui_48:active,._button_130ui_1._neutral_130ui_63._tertiary_130ui_48:active{color:var(--action-neutral-text-active);background-color:var(--action-neutral-bg-active-subtle)}._button_130ui_1._danger_130ui_88._primary_130ui_38{color:var(--action-danger-text-on-danger);background-color:var(--action-danger-bg-default)}._button_130ui_1._danger_130ui_88._primary_130ui_38:hover{background-color:var(--action-danger-bg-hover)}._button_130ui_1._danger_130ui_88._primary_130ui_38:active{background-color:var(--action-danger-bg-active)}._button_130ui_1._danger_130ui_88._secondary_130ui_48,._button_130ui_1._danger_130ui_88._tertiary_130ui_48{color:var(--action-danger-text-default);background-color:var(--color-none)}._button_130ui_1._danger_130ui_88._secondary_130ui_48._secondary_130ui_48,._button_130ui_1._danger_130ui_88._tertiary_130ui_48._secondary_130ui_48{box-shadow:inset 0 0 0 var(--size-1) var(--action-danger-border-default)}._button_130ui_1._danger_130ui_88._secondary_130ui_48:hover,._button_130ui_1._danger_130ui_88._tertiary_130ui_48:hover{color:var(--action-danger-text-hover);background-color:var(--action-danger-bg-hover-subtle)}._button_130ui_1._danger_130ui_88._secondary_130ui_48:active,._button_130ui_1._danger_130ui_88._tertiary_130ui_48:active{color:var(--action-danger-text-active);background-color:var(--action-danger-bg-active-subtle)}*,:before,:after{box-sizing:border-box;margin:0;padding:0}html,body{height:100%}img,picture,video,canvas,svg{max-width:100%;display:block}input,button,textarea,select{font:inherit;color:inherit}button{background:0 0;border:none}button:not([disabled]){cursor:pointer}ul,ol{list-style:none}a{color:inherit;text-decoration:none}p,h1,h2,h3,h4,h5,h6{overflow-wrap:break-word}._tester_1wzan_1{gap:var(--spacing-12);flex-direction:row;display:flex}._tester_1wzan_1 ._components_1wzan_6{gap:var(--spacing-8);flex-direction:column;flex-grow:1;display:flex}._tester_1wzan_1 ._components_1wzan_6 ._component_1wzan_6{display:flex}._tester_1wzan_1 ._props_1wzan_15{flex-direction:row}._tester_1wzan_1 ._props_1wzan_15 ._prop_1wzan_15 ._option_1wzan_18{gap:var(--spacing-4);margin:var(--spacing-4) 0;display:flex}
2
+ /*$vite$:1*/
@@ -0,0 +1 @@
1
+ export default function App(): import("react").JSX.Element;
@@ -0,0 +1,491 @@
1
+ import { a as e, c as t, d as n, f as r, g as i, h as a, l as o, m as s, n as c, o as l, p as u, s as d, t as f, u as p } from "../../DSButton-BXD09god.js";
2
+ import { t as m } from "../../DSProvider-DSGQ7C7X.js";
3
+ import { Children as h, cloneElement as g, useId as _, useState as v } from "react";
4
+ import { jsx as y, jsxs as b } from "react/jsx-runtime";
5
+ //#region node_modules/@material-design-icons/svg/filled/123.svg
6
+ var x = (e) => /* @__PURE__ */ y("svg", {
7
+ xmlns: "http://www.w3.org/2000/svg",
8
+ width: 24,
9
+ height: 24,
10
+ viewBox: "0 0 24 24",
11
+ ...e,
12
+ children: /* @__PURE__ */ y("path", { d: "M7 15H5.5v-4.5H4V9h3v6zm6.5-1.5h-3v-1h2c.55 0 1-.45 1-1V10c0-.55-.45-1-1-1H9v1.5h3v1h-2c-.55 0-1 .45-1 1V15h4.5v-1.5zm6 .5v-4c0-.55-.45-1-1-1H15v1.5h3v1h-2v1h2v1h-3V15h3.5c.55 0 1-.45 1-1z" })
13
+ }), S = (e) => /* @__PURE__ */ y("svg", {
14
+ xmlns: "http://www.w3.org/2000/svg",
15
+ width: 24,
16
+ height: 24,
17
+ viewBox: "0 0 24 24",
18
+ ...e,
19
+ children: /* @__PURE__ */ y("path", { d: "M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-8.5 12H9v-4.5H7.5V9h3v6zm7 0h-1.75L14 12.75V15h-1.5V9H14v2.25L15.75 9h1.75l-2.25 3 2.25 3z" })
20
+ }), C = {
21
+ tester: "_tester_1wzan_1",
22
+ components: "_components_1wzan_6",
23
+ component: "_component_1wzan_6",
24
+ props: "_props_1wzan_15",
25
+ prop: "_prop_1wzan_15",
26
+ option: "_option_1wzan_18"
27
+ };
28
+ //#endregion
29
+ //#region lib/App/ComponentTester/index.tsx
30
+ function w({ title: e, props: t, children: r }) {
31
+ function i() {
32
+ return t.reduce((e, t) => ({
33
+ ...e,
34
+ [t.name]: t.values[0]
35
+ }), {});
36
+ }
37
+ function a(t) {
38
+ return {
39
+ id: `${e} ${t}`,
40
+ ...[
41
+ "onFocus",
42
+ "onBlur",
43
+ "onClick",
44
+ "onMouseEnter",
45
+ "onMouseLeave",
46
+ "onChange"
47
+ ].reduce((e, n) => ({
48
+ ...e,
49
+ [n]: () => d((e) => e.concat([`${n}: ${t}`]))
50
+ }), {}),
51
+ ...c
52
+ };
53
+ }
54
+ let o = _(), [c, l] = v(i), [u, d] = v([]);
55
+ return /* @__PURE__ */ b(n, {
56
+ title: e,
57
+ variant: "secondary",
58
+ style: { backgroundColor: `var(--surface-${c.bg})` },
59
+ children: [/* @__PURE__ */ b("div", {
60
+ className: C.tester,
61
+ children: [/* @__PURE__ */ y("div", {
62
+ className: C.components,
63
+ children: h.map(r, (e, t) => /* @__PURE__ */ y("div", {
64
+ className: C.component,
65
+ children: g(e, a(t))
66
+ }, JSON.stringify(c)))
67
+ }), /* @__PURE__ */ y(n, {
68
+ className: C.props,
69
+ children: t.map((e) => /* @__PURE__ */ b("div", {
70
+ className: C.prop,
71
+ children: [/* @__PURE__ */ y(s, {
72
+ variant: "label-md",
73
+ children: e.name
74
+ }), e.values.map((t) => {
75
+ let n = o + e.name + t;
76
+ function r() {
77
+ l({
78
+ ...c,
79
+ [e.name]: t
80
+ });
81
+ }
82
+ return /* @__PURE__ */ b("div", {
83
+ className: C.option,
84
+ children: [/* @__PURE__ */ y("input", {
85
+ id: n,
86
+ name: n,
87
+ type: "radio",
88
+ checked: c[e.name] === t,
89
+ onChange: r
90
+ }), /* @__PURE__ */ y(s, {
91
+ variant: "label-sm",
92
+ htmlFor: n,
93
+ children: String(t)
94
+ })]
95
+ }, n);
96
+ })]
97
+ }, o + e.name))
98
+ })]
99
+ }), /* @__PURE__ */ y("div", { children: /* @__PURE__ */ y(s, {
100
+ variant: "body-xs-mono",
101
+ children: u.join(", ")
102
+ }) })]
103
+ });
104
+ }
105
+ //#endregion
106
+ //#region lib/App/index.tsx
107
+ function T() {
108
+ let [h, g] = v("light"), [_, C] = v(!1);
109
+ return /* @__PURE__ */ y(m, {
110
+ theme: { mode: h },
111
+ children: /* @__PURE__ */ b("div", {
112
+ style: {
113
+ display: "flex",
114
+ flexDirection: "column",
115
+ padding: "var(--spacing-16)",
116
+ gap: "var(--spacing-8)"
117
+ },
118
+ children: [
119
+ /* @__PURE__ */ y(s, {
120
+ variant: "h1",
121
+ children: "Stordata Design System"
122
+ }),
123
+ /* @__PURE__ */ b("div", {
124
+ style: {
125
+ display: "flex",
126
+ gap: "var(--spacing-4)"
127
+ },
128
+ children: [/* @__PURE__ */ y(f, {
129
+ disabled: h === "light",
130
+ onClick: () => g("light"),
131
+ children: "Light mode"
132
+ }), /* @__PURE__ */ y(f, {
133
+ disabled: h === "dark",
134
+ onClick: () => g("dark"),
135
+ children: "Dark mode"
136
+ })]
137
+ }),
138
+ /* @__PURE__ */ b(w, {
139
+ title: "DSIcon",
140
+ props: [{
141
+ name: "size",
142
+ values: [
143
+ "extra-small",
144
+ "small",
145
+ "medium",
146
+ "large",
147
+ "extra-large"
148
+ ]
149
+ }],
150
+ children: [
151
+ /* @__PURE__ */ y(c, { children: /* @__PURE__ */ y(i, {}) }),
152
+ /* @__PURE__ */ y(c, { children: /* @__PURE__ */ y(x, {}) }),
153
+ /* @__PURE__ */ y(c, {
154
+ render: /* @__PURE__ */ y("div", {}),
155
+ id: "myIcon",
156
+ className: "myClass",
157
+ style: { color: "var(--text-brand)" },
158
+ children: /* @__PURE__ */ y(S, {})
159
+ })
160
+ ]
161
+ }),
162
+ /* @__PURE__ */ b(w, {
163
+ title: "DSButton",
164
+ props: [
165
+ {
166
+ name: "color",
167
+ values: [
168
+ "brand",
169
+ "neutral",
170
+ "danger"
171
+ ]
172
+ },
173
+ {
174
+ name: "variant",
175
+ values: [
176
+ "primary",
177
+ "secondary",
178
+ "tertiary"
179
+ ]
180
+ },
181
+ {
182
+ name: "size",
183
+ values: [
184
+ "small",
185
+ "medium",
186
+ "large"
187
+ ]
188
+ },
189
+ {
190
+ name: "disabled",
191
+ values: [!1, !0]
192
+ }
193
+ ],
194
+ children: [
195
+ /* @__PURE__ */ y(f, { children: "Label" }),
196
+ /* @__PURE__ */ y(f, { children: "A very long label" }),
197
+ /* @__PURE__ */ y(f, {
198
+ startIcon: /* @__PURE__ */ y(i, {}),
199
+ children: "Label"
200
+ }),
201
+ /* @__PURE__ */ y(f, {
202
+ startIcon: /* @__PURE__ */ y(i, {}),
203
+ endIcon: /* @__PURE__ */ y(i, {}),
204
+ children: "Label"
205
+ }),
206
+ /* @__PURE__ */ y(f, {
207
+ startIcon: /* @__PURE__ */ y(i, {}),
208
+ render: /* @__PURE__ */ y("div", { title: "myTitle" }),
209
+ id: "myId",
210
+ className: "myClass"
211
+ })
212
+ ]
213
+ }),
214
+ /* @__PURE__ */ b(w, {
215
+ title: "DSSegmentedButton",
216
+ props: [
217
+ {
218
+ name: "size",
219
+ values: [
220
+ "small",
221
+ "medium",
222
+ "large"
223
+ ]
224
+ },
225
+ {
226
+ name: "color",
227
+ values: [
228
+ "brand",
229
+ "neutral",
230
+ "danger"
231
+ ]
232
+ },
233
+ {
234
+ name: "disabled",
235
+ values: [!1, !0]
236
+ }
237
+ ],
238
+ children: [/* @__PURE__ */ b(t, {
239
+ defaultValue: ["one"],
240
+ children: [
241
+ /* @__PURE__ */ y(f, {
242
+ value: "one",
243
+ children: "Option 1"
244
+ }),
245
+ /* @__PURE__ */ y(f, {
246
+ value: "two",
247
+ children: "Option 2"
248
+ }),
249
+ /* @__PURE__ */ y(f, {
250
+ value: "three",
251
+ children: "Option 3"
252
+ })
253
+ ]
254
+ }), /* @__PURE__ */ b(t, {
255
+ defaultValue: ["three"],
256
+ startIcon: /* @__PURE__ */ y(a, {}),
257
+ children: [
258
+ /* @__PURE__ */ y(f, {
259
+ value: "one",
260
+ children: "Option 1"
261
+ }),
262
+ /* @__PURE__ */ y(f, {
263
+ value: "two",
264
+ children: "Option 2"
265
+ }),
266
+ /* @__PURE__ */ y(f, {
267
+ value: "three",
268
+ children: "Option 3"
269
+ }),
270
+ /* @__PURE__ */ y(f, {
271
+ value: "four",
272
+ children: "Option 4"
273
+ }),
274
+ /* @__PURE__ */ y(f, {
275
+ value: "five",
276
+ children: "Option 5"
277
+ })
278
+ ]
279
+ })]
280
+ }),
281
+ /* @__PURE__ */ y(w, {
282
+ title: "DSRadio",
283
+ props: [
284
+ {
285
+ name: "variant",
286
+ values: ["on-neutral", "on-brand"]
287
+ },
288
+ {
289
+ name: "disabled",
290
+ values: [!1, !0]
291
+ },
292
+ {
293
+ name: "bg",
294
+ values: [
295
+ "primary",
296
+ "brand-default",
297
+ "brand-medium",
298
+ "brand-subtle"
299
+ ]
300
+ }
301
+ ],
302
+ children: /* @__PURE__ */ b(l, {
303
+ defaultValue: "one",
304
+ children: [
305
+ /* @__PURE__ */ y(d, { value: "one" }),
306
+ /* @__PURE__ */ y(d, { value: "two" }),
307
+ /* @__PURE__ */ y(d, { value: "three" })
308
+ ]
309
+ })
310
+ }),
311
+ /* @__PURE__ */ b(w, {
312
+ title: "DSSwitch",
313
+ props: [
314
+ {
315
+ name: "variant",
316
+ values: ["on-neutral", "on-brand"]
317
+ },
318
+ {
319
+ name: "disabled",
320
+ values: [!1, !0]
321
+ },
322
+ {
323
+ name: "bg",
324
+ values: [
325
+ "primary",
326
+ "brand-default",
327
+ "brand-medium",
328
+ "brand-subtle"
329
+ ]
330
+ }
331
+ ],
332
+ children: [/* @__PURE__ */ y(e, {}), /* @__PURE__ */ y(e, { defaultChecked: !0 })]
333
+ }),
334
+ /* @__PURE__ */ y(w, {
335
+ title: "DSTypography",
336
+ props: [{
337
+ name: "variant",
338
+ values: /* @__PURE__ */ "h1-display.h1.h2.h3.h3-bold.h4.display-lg.display-md.body-xl.body-lg.body-lg-medium.body-lg-semibold.body-lg-mono.body-md.body-md-medium.body-md-semibold.body-md-mono.body-sm.body-sm-medium.body-sm-semibold.body-sm-mono.body-xs-mono.label-md.label-sm.button-text-small.button-text-medium.button-text-large.caption-default.helper-text-default".split(".")
339
+ }],
340
+ children: /* @__PURE__ */ y(s, { children: "The quick brown fox jumps over the lazy dog" })
341
+ }),
342
+ /* @__PURE__ */ b(w, {
343
+ title: "DSAccordion",
344
+ props: [{
345
+ name: "color",
346
+ values: [
347
+ "brand",
348
+ "neutral",
349
+ "danger"
350
+ ]
351
+ }, {
352
+ name: "defaultExpanded",
353
+ values: [!1, !0]
354
+ }],
355
+ children: [
356
+ /* @__PURE__ */ y(p, { title: "Title" }),
357
+ /* @__PURE__ */ y(p, {
358
+ title: "Title",
359
+ icon: /* @__PURE__ */ y(x, {})
360
+ }),
361
+ /* @__PURE__ */ y(p, {
362
+ title: "Title",
363
+ icon: /* @__PURE__ */ y(i, {}),
364
+ startIcon: /* @__PURE__ */ y(x, {}),
365
+ children: /* @__PURE__ */ y(s, { children: "Content" })
366
+ })
367
+ ]
368
+ }),
369
+ /* @__PURE__ */ b(w, {
370
+ title: "DSCard",
371
+ props: [{
372
+ name: "variant",
373
+ values: ["primary", "secondary"]
374
+ }],
375
+ children: [/* @__PURE__ */ y(n, { children: "Content" }), /* @__PURE__ */ y(n, {
376
+ title: "Title",
377
+ children: "Content"
378
+ })]
379
+ }),
380
+ /* @__PURE__ */ b(w, {
381
+ title: "DSCheckbox",
382
+ props: [
383
+ {
384
+ name: "variant",
385
+ values: ["on-neutral", "on-brand"]
386
+ },
387
+ {
388
+ name: "disabled",
389
+ values: [!1, !0]
390
+ },
391
+ {
392
+ name: "bg",
393
+ values: [
394
+ "primary",
395
+ "brand-default",
396
+ "brand-medium",
397
+ "brand-subtle"
398
+ ]
399
+ }
400
+ ],
401
+ children: [
402
+ /* @__PURE__ */ y(r, {
403
+ checked: _,
404
+ onCheckedChange: C
405
+ }),
406
+ /* @__PURE__ */ y(r, { defaultChecked: !0 }),
407
+ /* @__PURE__ */ y(r, {})
408
+ ]
409
+ }),
410
+ /* @__PURE__ */ b("form", {
411
+ style: {
412
+ marginTop: "24px",
413
+ display: "flex",
414
+ flexDirection: "column",
415
+ gap: "12px",
416
+ maxWidth: "400px"
417
+ },
418
+ children: [
419
+ /* @__PURE__ */ y(u, {
420
+ fullWidth: !0,
421
+ placeholder: "Test"
422
+ }),
423
+ /* @__PURE__ */ y(u, {
424
+ fullWidth: !0,
425
+ placeholder: "HelperText",
426
+ helperText: "This is to help"
427
+ }),
428
+ /* @__PURE__ */ y(u, {
429
+ fullWidth: !0,
430
+ placeholder: "Error",
431
+ error: { message: "This is an error message" }
432
+ }),
433
+ /* @__PURE__ */ y(u, {
434
+ fullWidth: !0,
435
+ placeholder: "Required with label s",
436
+ label: "Test label S",
437
+ required: !0
438
+ }),
439
+ /* @__PURE__ */ y(o, {
440
+ options: [
441
+ {
442
+ value: "option1",
443
+ label: "Option 1"
444
+ },
445
+ {
446
+ value: "option2",
447
+ label: "Option 2"
448
+ },
449
+ {
450
+ value: "option3",
451
+ label: "Option 3"
452
+ },
453
+ {
454
+ value: "option4",
455
+ label: "Option 4"
456
+ },
457
+ {
458
+ value: "option5",
459
+ label: "Option 5"
460
+ },
461
+ {
462
+ value: "option6",
463
+ label: "Option 6"
464
+ },
465
+ {
466
+ value: "option7",
467
+ label: "Option 7"
468
+ },
469
+ {
470
+ value: "option8",
471
+ label: "Option 8"
472
+ },
473
+ {
474
+ value: "option9",
475
+ label: "Option 9"
476
+ },
477
+ {
478
+ value: "option10",
479
+ label: "Option 10"
480
+ }
481
+ ],
482
+ placeholder: "Select an option"
483
+ })
484
+ ]
485
+ })
486
+ ]
487
+ })
488
+ });
489
+ }
490
+ //#endregion
491
+ export { T as default };
@@ -0,0 +1,20 @@
1
+ import { AccordionRootState } from '@base-ui/react/accordion';
2
+ import { ReactNode } from 'react';
3
+ import { ComponentColor } from '../../src/services/useTheme/defaultTheme.ts';
4
+ import { DSCommonProps } from '../DSCommonProps.ts';
5
+ export interface DSAccordionProps extends DSCommonProps<'div', AccordionRootState> {
6
+ title?: string;
7
+ color?: DSAccordionColor;
8
+ icon?: ReactNode;
9
+ startIcon?: ReactNode;
10
+ defaultValue?: string[];
11
+ defaultExpanded?: boolean;
12
+ }
13
+ export type DSAccordionColor = ComponentColor;
14
+ /**
15
+ * DSAccordion Component
16
+ *
17
+ * A custom accordion component built using the base Accordion component from '@base-ui/react/accordion'.
18
+ * This component supports a title, an icon, and custom content passed as children.
19
+ */
20
+ export default function DSAccordion(p: DSAccordionProps): import("react").JSX.Element;
@@ -0,0 +1,2 @@
1
+ import { u as e } from "../../DSButton-BXD09god.js";
2
+ export { e as default };
@@ -0,0 +1,20 @@
1
+ import { ButtonState } from '@base-ui/react/button';
2
+ import { ReactElement, ReactNode } from 'react';
3
+ import { ComponentColor, ComponentSize, ComponentVariant } from '../../src/services/useTheme/defaultTheme.ts';
4
+ import { DSCommonProps } from '../DSCommonProps.ts';
5
+ export interface DSButtonProps extends DSCommonProps<'button', ButtonState> {
6
+ size?: DSButtonSize;
7
+ variant?: DSButtonVariant;
8
+ color?: DSButtonColor;
9
+ startIcon?: ReactNode;
10
+ endIcon?: ReactNode;
11
+ }
12
+ export type DSButtonSize = ComponentSize;
13
+ export type DSButtonColor = ComponentColor;
14
+ export type DSButtonVariant = ComponentVariant;
15
+ /**
16
+ * DSButton component
17
+ *
18
+ * A customizable button component that supports different sizes, variants, colors, and icons.
19
+ */
20
+ export default function DSButton(p: DSButtonProps): ReactElement;
@@ -0,0 +1,2 @@
1
+ import { t as e } from "../../DSButton-BXD09god.js";
2
+ export { e as default };