@stihl-design-system/components 1.0.0-RC.13 → 1.0.0-RC.15
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.
- package/accordion.C57VwDyH.js +10 -0
- package/{arialiveregions.Cyycgs8g.js → arialiveregions.4aRkBQ4r.js} +3 -3
- package/assets/Breadcrumb.BaYrwrYl.css +1 -0
- package/assets/NavigationTabList.B6x56sAV.css +1 -0
- package/assets/linkstandalone.LMdnj-G0.css +1 -0
- package/assets/numberindicator.BJnvB-K3.css +1 -0
- package/assets/tabpane.D1LTb432.css +1 -0
- package/{asterisk.DpzETKdT.js → asterisk.DdCXwXQh.js} +2 -2
- package/breadcrumb.BZeQwTPf.js +10 -0
- package/breadcrumb.d.ts +2 -0
- package/{button.M4nXjcUn.js → button.Nknx8eP1.js} +6 -6
- package/{buttonround.E56F_805.js → buttonround.BKnxl68m.js} +5 -5
- package/{checkbox.Cb2_ey6U.js → checkbox.B_Es9RI2.js} +6 -6
- package/checkboxgroup.Cg89jmSA.js +8 -0
- package/chip.C0WRTcW9.js +10 -0
- package/{chipgroup.BvTj1ziW.js → chipgroup.BSNjn_jZ.js} +49 -49
- package/chunks/{Accordion.CB6jB3s_.js → Accordion.CecPmLcb.js} +6 -6
- package/chunks/AriaLiveRegions.utils.Bq6Mp2bE.js +40 -0
- package/chunks/Breadcrumb.qH8heJ6N.js +112 -0
- package/chunks/{CheckboxGroup.S6i5EOc4.js → CheckboxGroup.Bjjv2D4P.js} +40 -37
- package/chunks/{Chip.CMlPUyOJ.js → Chip.BtY9yzNj.js} +33 -27
- package/chunks/{CustomReactSelect.CQ1uexBH.js → CustomReactSelect.BBHV7vvE.js} +1096 -1092
- package/chunks/{Dialog.CudsqNag.js → Dialog.CG1l6YDx.js} +5 -5
- package/chunks/{Drawer.ueG2Bzr9.js → Drawer.BFw0swsE.js} +5 -5
- package/chunks/{Fieldset.Cjmkgxxk.js → Fieldset.CPuNSQNU.js} +8 -8
- package/chunks/{Icon.BCmt_XBG.js → Icon.CvVRQw6C.js} +29 -29
- package/chunks/{Input.utils.ChV6RJsh.js → Input.utils.BolAdXy6.js} +21 -24
- package/chunks/{InputPassword.CNLbBFjx.js → InputPassword.DCV-dKiH.js} +22 -22
- package/chunks/{InputSearch.CHA6mkX_.js → InputSearch.BXLLIjLO.js} +9 -9
- package/chunks/{InputStepper.xmWGU9pU.js → InputStepper.BgUod0gn.js} +51 -49
- package/chunks/NavigationTabList.D3zzmWIL.js +60 -0
- package/chunks/NavigationTabs.ni5Zoq0z.js +72 -0
- package/chunks/{Notification.nx5vTamN.js → Notification.BmXWqd85.js} +5 -5
- package/chunks/RadioGroup.DVyupPKV.js +150 -0
- package/chunks/Select.ByKUcvrB.js +195 -0
- package/chunks/TabPane.utils.CWMN6Tsy.js +20 -0
- package/chunks/Tabs.UwweipbU.js +84 -0
- package/chunks/{Textarea.DUBSOpNL.js → Textarea.BzHIGYVB.js} +52 -52
- package/chunks/{Toast.DyEi2GEP.js → Toast.CwalSzYB.js} +5 -5
- package/chunks/has-window.ut_-aShB.js +5 -0
- package/chunks/helpers.CcqWV-wZ.js +8 -0
- package/chunks/index.CEyLAtio.js +48 -0
- package/chunks/{jsx-runtime.C115EyI4.js → jsx-runtime.BteaETFx.js} +175 -176
- package/chunks/useBreakpoint.BzR_yaIv.js +42 -0
- package/chunks/useIsomorphicLayoutEffect.CnJ9AMFS.js +7 -0
- package/{combobox.CzBpi97e.js → combobox.BY7mbdhL.js} +2 -2
- package/components/AriaLiveRegions/AriaLiveRegions.utils.d.ts +2 -2
- package/components/Breadcrumb/Breadcrumb.d.ts +33 -0
- package/components/Breadcrumb/Breadcrumb.test.d.ts +1 -0
- package/components/Breadcrumb/Breadcrumb.utils.d.ts +4 -0
- package/components/Combobox/CustomReactSelect/CustomReactSelect.d.ts +1 -1
- package/components/Input/Input.d.ts +6 -0
- package/components/InputPassword/InputPassword.d.ts +3 -3
- package/components/NavigationTabs/NavigationTabs.d.ts +41 -0
- package/components/NavigationTabs/NavigationTabs.test.d.ts +1 -0
- package/components/NavigationTabs/NavigationTabs.utils.d.ts +6 -0
- package/components/NumberIndicator/NumberIndicator.d.ts +12 -0
- package/components/NumberIndicator/NumberIndicator.test.d.ts +1 -0
- package/components/NumberIndicator/NumberIndicator.utils.d.ts +2 -0
- package/components/Tabs/TabList/NavigationTabList/NavigationTabList.d.ts +21 -0
- package/components/Tabs/TabList/TabList.d.ts +38 -0
- package/components/Tabs/TabList/TabList.utils.d.ts +6 -0
- package/components/Tabs/TabList/TabList.utils.test.d.ts +1 -0
- package/components/Tabs/TabPane/TabPane.d.ts +10 -0
- package/components/Tabs/TabPane/TabPane.utils.d.ts +3 -0
- package/components/Tabs/TabPane/TabPane.utils.test.d.ts +1 -0
- package/components/Tabs/Tabs.d.ts +47 -0
- package/components/Tabs/Tabs.test.d.ts +1 -0
- package/components/Tabs/Tabs.utils.d.ts +6 -0
- package/customreactselect.1jiQuYLT.js +13 -0
- package/dialog.BF2q9x7U.js +9 -0
- package/drawer.B_dIJ0pb.js +9 -0
- package/fieldset.CU4aXdx1.js +11 -0
- package/{flag.BKpsdB_-.js → flag.CfYdEnax.js} +4 -4
- package/{floatingactionbutton.D5L0B7zI.js → floatingactionbutton.CiDfDE1q.js} +5 -5
- package/{heading.IPIYc5vW.js → heading.BesCIchJ.js} +3 -3
- package/icon.R9KQet1b.js +8 -0
- package/index.d.ts +8 -2
- package/index.es.js +144 -130
- package/{input.BEnCFNM-.js → input.Bx05SF7t.js} +20 -19
- package/inputpassword.DswedDs6.js +12 -0
- package/inputsearch.Dc4b-FYd.js +13 -0
- package/inputstepper.Cf2gM7tW.js +15 -0
- package/{link.DREJAoPG.js → link.DsNdcAjt.js} +5 -5
- package/linkstandalone.BGQ2HOO0.js +79 -0
- package/{logo.Hul8qCFo.js → logo.DZy1Gj0_.js} +3 -3
- package/navigationtablist.BKp4bwRn.js +9 -0
- package/navigationtablist.d.ts +2 -0
- package/navigationtabs.CmdW9g9l.js +8 -0
- package/navigationtabs.d.ts +2 -0
- package/notification.YWtBGqLz.js +9 -0
- package/numberindicator.d.ts +2 -0
- package/numberindicator.kZ-G6BbU.js +26 -0
- package/{optioncheckbox.BRUTnQnJ.js → optioncheckbox.DV0QpteH.js} +4 -4
- package/package.json +47 -47
- package/partials/index.js +688 -689
- package/{radio.DEILy_lV.js → radio.DZEIaDlU.js} +4 -4
- package/radiogroup.BNohLQGM.js +10 -0
- package/select.CZvgpafD.js +12 -0
- package/{skiptocontent.BxvpIB7H.js → skiptocontent.CoC8Rk8k.js} +5 -5
- package/{spinner.Bq97Og-6.js → spinner.pcu39V2a.js} +4 -4
- package/styles/scss/ds/lib/theme.scss +2 -0
- package/{switch.DI8YYa5G.js → switch.DaPoGnX-.js} +5 -5
- package/{systemfeedback.C3Pfxxpp.js → systemfeedback.bHSsfiy3.js} +4 -4
- package/tablist.BCOOuiX4.js +258 -0
- package/tablist.d.ts +2 -0
- package/tabpane.CAy_cIi3.js +37 -0
- package/tabpane.d.ts +2 -0
- package/tabs.d.ts +2 -0
- package/tabs.jdCTjBr0.js +10 -0
- package/{text.DThvTwm8.js → text.C5UzzMI9.js} +3 -3
- package/textarea.D9XTlEUz.js +12 -0
- package/{title.DqzdB2Gq.js → title.B2VKsF9O.js} +3 -3
- package/toast.D2BnxnFr.js +10 -0
- package/{toastmanager.B7EZ4JSI.js → toastmanager.CzDos3Ik.js} +18 -18
- package/utils/helpers.d.ts +7 -0
- package/utils/index.d.ts +1 -0
- package/utils/isAnimationDisabled.d.ts +1 -0
- package/accordion.Rvtiu8Y4.js +0 -10
- package/assets/linkstandalone.DIazcjIv.css +0 -1
- package/checkboxgroup.DBDmB-zR.js +0 -8
- package/chip.C_1tGqvZ.js +0 -10
- package/chunks/AriaLiveRegions.utils.BGSZafnS.js +0 -34
- package/chunks/RadioGroup.Crj7NoOs.js +0 -137
- package/chunks/Select.E6gLFYLk.js +0 -194
- package/chunks/has-document.r9i9TxKV.js +0 -5
- package/chunks/helpers.B1JT5ShS.js +0 -7
- package/chunks/index.CvOaL64Y.js +0 -45
- package/chunks/useBreakpoint.5xBNDiCf.js +0 -48
- package/customreactselect.qf7CIeFs.js +0 -13
- package/dialog.DYlBUsOD.js +0 -9
- package/drawer.CvhbP1ra.js +0 -9
- package/fieldset.CtUGEdLv.js +0 -11
- package/icon.Ck0BpI34.js +0 -8
- package/inputpassword.B-D_jB9w.js +0 -12
- package/inputsearch.CaSpklR1.js +0 -13
- package/inputstepper.C7KD1-0S.js +0 -13
- package/linkstandalone.BBoEniZ_.js +0 -79
- package/notification.6M0OdGXK.js +0 -9
- package/radiogroup.DeU-HdlP.js +0 -10
- package/select.BYraFJzz.js +0 -12
- package/textarea.CBvH0ljM.js +0 -12
- package/toast.n1QUINSA.js +0 -10
- package/utils/has-document.d.ts +0 -1
- /package/assets/{Accordion.i4k5SMQM.css → Accordion.DDxMnzaG.css} +0 -0
- /package/assets/{CheckboxGroup.BH1Br1dg.css → CheckboxGroup.Dd-Huo7x.css} +0 -0
- /package/assets/{Chip.DSdLuzoi.css → Chip.dxIYIjj7.css} +0 -0
- /package/assets/{CustomReactSelect.vHt8qNKC.css → CustomReactSelect.DYDaP5r5.css} +0 -0
- /package/assets/{Dialog.BgzebVk4.css → Dialog.DXmPdExC.css} +0 -0
- /package/assets/{Drawer.Bauwxrk7.css → Drawer.BcM0epJS.css} +0 -0
- /package/assets/{Fieldset.DOdTbb7C.css → Fieldset.Og4EsnPI.css} +0 -0
- /package/assets/{Icon.DxRSBRSL.css → Icon.ZNrKuqgu.css} +0 -0
- /package/assets/{InputPassword.CG7Ugu73.css → InputPassword.DtKteerr.css} +0 -0
- /package/assets/{InputSearch.CseChMc-.css → InputSearch.Mql3oFlQ.css} +0 -0
- /package/assets/{InputStepper.C0eAYr7P.css → InputStepper.BXz1MMBg.css} +0 -0
- /package/assets/{Notification.DbRapUJo.css → Notification.DZIF-Wo6.css} +0 -0
- /package/assets/{RadioGroup.BfMo157q.css → RadioGroup.CM2mYOzc.css} +0 -0
- /package/assets/{Select.D4EXgIbz.css → Select.KvAgxJZk.css} +0 -0
- /package/assets/{Textarea.KJGPTYMz.css → Textarea.BIRQlv6m.css} +0 -0
- /package/assets/{Toast.CuafTAf7.css → Toast.CuM-yS7S.css} +0 -0
- /package/assets/{arialiveregions.DhsijBaL.css → arialiveregions.e0Q16ZWi.css} +0 -0
- /package/assets/{asterisk.BfVAUBO7.css → asterisk.B41DaZDe.css} +0 -0
- /package/assets/{button.DF4RBeC2.css → button.CpPeQPsM.css} +0 -0
- /package/assets/{buttonround.19uK_-oO.css → buttonround.BFauSRAb.css} +0 -0
- /package/assets/{checkbox.ByOoFouu.css → checkbox.BKHQN_tu.css} +0 -0
- /package/assets/{chipgroup.BzfZLbkv.css → chipgroup.CUIkyYBW.css} +0 -0
- /package/assets/{flag.B-RLcMcf.css → flag.C7i3MAAP.css} +0 -0
- /package/assets/{floatingactionbutton.E9HekT6S.css → floatingactionbutton.l0nvFiJU.css} +0 -0
- /package/assets/{heading.u4f8Mz94.css → heading.B-rdLVZD.css} +0 -0
- /package/assets/{input.BAkFKPW3.css → input.B5spSeMe.css} +0 -0
- /package/assets/{link.DDJj0D1U.css → link.Be5OF_8E.css} +0 -0
- /package/assets/{logo.CnW8alZU.css → logo.bVXt9m9R.css} +0 -0
- /package/assets/{optioncheckbox.BZaWtRD7.css → optioncheckbox.DAffEKvY.css} +0 -0
- /package/assets/{radio.X-RTl_jo.css → radio.CGf7v0D_.css} +0 -0
- /package/assets/{skiptocontent.PTL3256m.css → skiptocontent.CTSDC_kG.css} +0 -0
- /package/assets/{spinner.2iWJWKyA.css → spinner.BJ5xwnYH.css} +0 -0
- /package/assets/{switch.gw6aa3kx.css → switch.Bc9KIyw9.css} +0 -0
- /package/assets/{systemfeedback.BPz5YlPC.css → systemfeedback.DoqgHZPH.css} +0 -0
- /package/assets/{text.DjTG_qNb.css → text.BlRcxO8n.css} +0 -0
- /package/assets/{title.rosWPEG3.css → title.B0tsgJ-n.css} +0 -0
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { j as i } from "./chunks/jsx-runtime.
|
|
3
|
-
import { c as h } from "./chunks/index.
|
|
2
|
+
import { j as i } from "./chunks/jsx-runtime.BteaETFx.js";
|
|
3
|
+
import { c as h } from "./chunks/index.CEyLAtio.js";
|
|
4
4
|
import { forwardRef as $, useRef as C, useState as E, useEffect as L, useCallback as O } from "react";
|
|
5
|
-
import { u as P } from "./chunks/useBreakpoint.
|
|
6
|
-
import './assets/radio.
|
|
5
|
+
import { u as P } from "./chunks/useBreakpoint.BzR_yaIv.js";
|
|
6
|
+
import './assets/radio.CGf7v0D_.css';const v = (o) => o.replace(/\s+/g, ""), U = "ds-radio_root_tdhm5_1", q = "ds-radio_root--disabled_tdhm5_21", z = "ds-radio_root--with-custom-area_tdhm5_24", F = "ds-radio_radio_tdhm5_28", G = "ds-radio_dot_tdhm5_45", J = "ds-radio_radio--invalid_tdhm5_69", K = "ds-radio_label_tdhm5_74", M = "ds-radio_label--bold_tdhm5_88", Q = "ds-radio_label--hidden_tdhm5_99", T = "ds-radio_label--with-custom-area_tdhm5_111", X = "ds-radio_custom-area_tdhm5_115", Y = "ds-radio_hint_tdhm5_123", Z = "ds-radio_hint--visible_tdhm5_146", tt = "ds-radio_hint--unchecked-hidden_tdhm5_150", dt = "ds-radio_hint--hidden_tdhm5_155", et = "ds-radio_input_tdhm5_168", t = {
|
|
7
7
|
root: U,
|
|
8
8
|
"root--disabled": "ds-radio_root--disabled_tdhm5_21",
|
|
9
9
|
rootDisabled: q,
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import "./chunks/jsx-runtime.BteaETFx.js";
|
|
3
|
+
import "./chunks/index.CEyLAtio.js";
|
|
4
|
+
import "react";
|
|
5
|
+
import "./chunks/Fieldset.CPuNSQNU.js";
|
|
6
|
+
import "./radio.DZEIaDlU.js";
|
|
7
|
+
import { D as a } from "./chunks/RadioGroup.DVyupPKV.js";
|
|
8
|
+
export {
|
|
9
|
+
a as DSRadioGroup
|
|
10
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import "./chunks/jsx-runtime.BteaETFx.js";
|
|
3
|
+
import "./chunks/index.CEyLAtio.js";
|
|
4
|
+
import "react";
|
|
5
|
+
import "./chunks/useBreakpoint.BzR_yaIv.js";
|
|
6
|
+
import "./asterisk.DdCXwXQh.js";
|
|
7
|
+
import "./chunks/Icon.CvVRQw6C.js";
|
|
8
|
+
import "./systemfeedback.bHSsfiy3.js";
|
|
9
|
+
import { D as s } from "./chunks/Select.ByKUcvrB.js";
|
|
10
|
+
export {
|
|
11
|
+
s as DSSelect
|
|
12
|
+
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { j as k } from "./chunks/jsx-runtime.
|
|
3
|
-
import { c as p } from "./chunks/index.
|
|
4
|
-
import { g as s } from "./chunks/helpers.
|
|
2
|
+
import { j as k } from "./chunks/jsx-runtime.BteaETFx.js";
|
|
3
|
+
import { c as p } from "./chunks/index.CEyLAtio.js";
|
|
4
|
+
import { g as s } from "./chunks/helpers.CcqWV-wZ.js";
|
|
5
5
|
import "react";
|
|
6
|
-
import { DSLink as c } from "./link.
|
|
7
|
-
import './assets/skiptocontent.
|
|
6
|
+
import { DSLink as c } from "./link.DsNdcAjt.js";
|
|
7
|
+
import './assets/skiptocontent.CTSDC_kG.css';const h = "ds-skip-to-content_root_uqkjt_1", m = "ds-skip-to-content_root--dark_uqkjt_8", r = {
|
|
8
8
|
root: h,
|
|
9
9
|
"root--dark": "ds-skip-to-content_root--dark_uqkjt_8",
|
|
10
10
|
rootDark: m
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { j as s } from "./chunks/jsx-runtime.
|
|
3
|
-
import { c as l } from "./chunks/index.
|
|
4
|
-
import { D as m } from "./chunks/Icon.
|
|
5
|
-
import './assets/spinner.
|
|
2
|
+
import { j as s } from "./chunks/jsx-runtime.BteaETFx.js";
|
|
3
|
+
import { c as l } from "./chunks/index.CEyLAtio.js";
|
|
4
|
+
import { D as m } from "./chunks/Icon.CvVRQw6C.js";
|
|
5
|
+
import './assets/spinner.BJ5xwnYH.css';const _ = "ds-spinner_root_15hmy_1", d = "ds-spinner_root-size-small_15hmy_7", z = "ds-spinner_root-size-medium_15hmy_11", c = "ds-spinner_root-size-large_15hmy_15", h = "ds-spinner_root-size-x-large_15hmy_19", p = "ds-spinner_root-size-inherit_15hmy_23", S = "ds-spinner_rotate_15hmy_1", y = "ds-spinner_screenReaderOnly_15hmy_48", e = {
|
|
6
6
|
root: _,
|
|
7
7
|
"root-size-small": "ds-spinner_root-size-small_15hmy_7",
|
|
8
8
|
rootSizeSmall: d,
|
|
@@ -69,6 +69,7 @@ $theme-light-background-color-sustainability: $color-core-forest-light;
|
|
|
69
69
|
$theme-light-background-color-tertiary: $color-core-grey-light;
|
|
70
70
|
$theme-light-background-color-transparent-hover: $color-core-black-opacity-10;
|
|
71
71
|
$theme-light-background-color-transparent-pressed: $color-core-black-opacity-10;
|
|
72
|
+
$theme-light-background-color-transparent: $color-core-black-opacity-10;
|
|
72
73
|
$theme-light-border-color-feedback-error: $color-core-red-base;
|
|
73
74
|
$theme-light-border-color-feedback-info: $color-core-grey-dark;
|
|
74
75
|
$theme-light-border-color-feedback-success: $color-core-green-base;
|
|
@@ -127,6 +128,7 @@ $theme-dark-background-color-sustainability: $color-core-grey-deep;
|
|
|
127
128
|
$theme-dark-background-color-tertiary: $color-core-grey-ultra-deep;
|
|
128
129
|
$theme-dark-background-color-transparent-hover: $color-core-white-opacity-15;
|
|
129
130
|
$theme-dark-background-color-transparent-pressed: $color-core-white-opacity-15;
|
|
131
|
+
$theme-dark-background-color-transparent: $color-core-white-opacity-15;
|
|
130
132
|
$theme-dark-border-color-feedback-error: $color-core-red-base;
|
|
131
133
|
$theme-dark-border-color-feedback-info: $color-core-grey-dark;
|
|
132
134
|
$theme-dark-border-color-feedback-success: $color-core-green-base;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { j as t } from "./chunks/jsx-runtime.
|
|
3
|
-
import { c as w } from "./chunks/index.
|
|
2
|
+
import { j as t } from "./chunks/jsx-runtime.BteaETFx.js";
|
|
3
|
+
import { c as w } from "./chunks/index.CEyLAtio.js";
|
|
4
4
|
import "react";
|
|
5
|
-
import { D as b } from "./chunks/Icon.
|
|
6
|
-
import { DSSpinner as p } from "./spinner.
|
|
7
|
-
import './assets/switch.
|
|
5
|
+
import { D as b } from "./chunks/Icon.CvVRQw6C.js";
|
|
6
|
+
import { DSSpinner as p } from "./spinner.pcu39V2a.js";
|
|
7
|
+
import './assets/switch.Bc9KIyw9.css';const f = "ds-switch_root_gdcld_1", x = "ds-switch_root--label-right_gdcld_40", j = "ds-switch_root--stretched_gdcld_43", k = "ds-switch_loader_gdcld_53", S = "ds-switch_thumb_gdcld_111", C = "ds-switch_root--checked_gdcld_126", s = {
|
|
8
8
|
root: f,
|
|
9
9
|
"root--label-right": "ds-switch_root--label-right_gdcld_40",
|
|
10
10
|
rootLabelRight: x,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { j as o } from "./chunks/jsx-runtime.
|
|
3
|
-
import { c } from "./chunks/index.
|
|
4
|
-
import { D as n } from "./chunks/Icon.
|
|
5
|
-
import './assets/systemfeedback.
|
|
2
|
+
import { j as o } from "./chunks/jsx-runtime.BteaETFx.js";
|
|
3
|
+
import { c } from "./chunks/index.CEyLAtio.js";
|
|
4
|
+
import { D as n } from "./chunks/Icon.CvVRQw6C.js";
|
|
5
|
+
import './assets/systemfeedback.DoqgHZPH.css';const i = "ds-system-feedback_root_1l65g_1", l = {
|
|
6
6
|
root: i
|
|
7
7
|
}, m = {
|
|
8
8
|
valid: "circle-check-colored",
|
|
@@ -0,0 +1,258 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { j as l } from "./chunks/jsx-runtime.BteaETFx.js";
|
|
3
|
+
import { c as b } from "./chunks/index.CEyLAtio.js";
|
|
4
|
+
import { useState as E, useRef as v, useEffect as ot } from "react";
|
|
5
|
+
import { h as W } from "./chunks/has-window.ut_-aShB.js";
|
|
6
|
+
import { g as nt } from "./chunks/helpers.CcqWV-wZ.js";
|
|
7
|
+
import { u as j } from "./chunks/useIsomorphicLayoutEffect.CnJ9AMFS.js";
|
|
8
|
+
import { DSButton as K } from "./button.Nknx8eP1.js";
|
|
9
|
+
import { D as st } from "./chunks/Icon.CvVRQw6C.js";
|
|
10
|
+
import { NumberIndicator as ct } from "./numberindicator.kZ-G6BbU.js";
|
|
11
|
+
import { a as X, g as it } from "./chunks/TabPane.utils.CWMN6Tsy.js";
|
|
12
|
+
import { s as i, N as at } from "./chunks/NavigationTabList.D3zzmWIL.js";
|
|
13
|
+
const C = () => {
|
|
14
|
+
if (W) {
|
|
15
|
+
const u = getComputedStyle(document.documentElement).getPropertyValue("--ds-animation-duration").trim();
|
|
16
|
+
return u === "0s" || u === "0ms";
|
|
17
|
+
} else
|
|
18
|
+
return !0;
|
|
19
|
+
}, m = (u) => W && (u == null ? void 0 : u.getBoundingClientRect()) || DOMRect.fromRect({ x: 0, y: 0, width: 0, height: 0 }), R = 48, yt = ({
|
|
20
|
+
aria: u,
|
|
21
|
+
id: L,
|
|
22
|
+
selectedTabIndex: s,
|
|
23
|
+
setSelectedTabIndex: _,
|
|
24
|
+
tabs: f,
|
|
25
|
+
alignment: M = "left",
|
|
26
|
+
className: q,
|
|
27
|
+
defaultSelectedTabIndex: F = 0,
|
|
28
|
+
isNavigation: T,
|
|
29
|
+
onTabChange: x,
|
|
30
|
+
...G
|
|
31
|
+
}) => {
|
|
32
|
+
const [I, h] = E(
|
|
33
|
+
F
|
|
34
|
+
), [Q, V] = E(!1), [J, U] = E(!1), p = v([]), d = v(null), c = v(null), a = v(null), w = v(!1), P = v(s), S = () => {
|
|
35
|
+
A(), Y();
|
|
36
|
+
};
|
|
37
|
+
j(() => {
|
|
38
|
+
const t = new ResizeObserver(S);
|
|
39
|
+
return c.current && t.observe(c.current), () => {
|
|
40
|
+
t.disconnect();
|
|
41
|
+
};
|
|
42
|
+
}, []), j(() => {
|
|
43
|
+
var o;
|
|
44
|
+
const t = [
|
|
45
|
+
"16px 'STIHL Contraface Digital Text Regular'",
|
|
46
|
+
"14px 'STIHL Contraface Digital Text Demi'",
|
|
47
|
+
"16px 'STIHL Contraface Digital Text Bold'"
|
|
48
|
+
];
|
|
49
|
+
Promise.all(t.map((n) => document.fonts.load(n))).then(() => {
|
|
50
|
+
N(s), y("next", s, "instant"), A(), w.current = !0;
|
|
51
|
+
}).catch((n) => {
|
|
52
|
+
throw new Error(
|
|
53
|
+
nt(
|
|
54
|
+
"DSTabs",
|
|
55
|
+
`The component requires the fonts to be loaded: ${n}`
|
|
56
|
+
)
|
|
57
|
+
);
|
|
58
|
+
});
|
|
59
|
+
const e = () => {
|
|
60
|
+
!w.current || !a.current || (r.matches ? a.current.style.transitionDuration = "0s" : a.current.style.transitionDuration = "");
|
|
61
|
+
}, r = window.matchMedia("(prefers-reduced-motion: reduce)");
|
|
62
|
+
return r.addEventListener("change", e), (o = c.current) == null || o.addEventListener("scroll", S), () => {
|
|
63
|
+
var n;
|
|
64
|
+
r.removeEventListener("change", e), (n = c.current) == null || n.removeEventListener("scroll", S);
|
|
65
|
+
};
|
|
66
|
+
}, [f, M]), j(() => {
|
|
67
|
+
if (w.current && (N(s), T)) {
|
|
68
|
+
const t = z(s);
|
|
69
|
+
h(s), y(t, s);
|
|
70
|
+
}
|
|
71
|
+
P.current = s;
|
|
72
|
+
}, [s]), ot(() => {
|
|
73
|
+
var t;
|
|
74
|
+
w.current && ((t = p.current[I]) == null || t.focus());
|
|
75
|
+
}, [I]);
|
|
76
|
+
const D = (t) => {
|
|
77
|
+
const e = z(t);
|
|
78
|
+
_(t), h(t), y(e, t), x && x(t);
|
|
79
|
+
}, z = (t) => {
|
|
80
|
+
const e = m(c.current), r = m(p.current[t]);
|
|
81
|
+
let o = "next";
|
|
82
|
+
return r.left - R < e.left ? o = "prev" : r.right + R > e.right ? o = "next" : o = s < t ? "next" : "prev", o;
|
|
83
|
+
}, A = () => {
|
|
84
|
+
if (c.current && d.current) {
|
|
85
|
+
const t = m(c.current), e = m(d.current);
|
|
86
|
+
V(e.left < t.left), U(e.right > t.right + 4);
|
|
87
|
+
}
|
|
88
|
+
}, H = (t = 0) => {
|
|
89
|
+
W && a.current && !C() && !window.matchMedia("(prefers-reduced-motion: reduce)").matches && setTimeout(() => {
|
|
90
|
+
a.current && (a.current.style.transitionDuration = "250ms");
|
|
91
|
+
}, t);
|
|
92
|
+
}, Y = () => {
|
|
93
|
+
a.current && (a.current.style.transitionDuration = "0s", N(P.current), H());
|
|
94
|
+
}, N = (t) => {
|
|
95
|
+
const e = a.current, r = m(p.current[t]), o = m(d.current), n = r.left - o.left;
|
|
96
|
+
e && (w.current ? (e.style.width = `${r.width}px`, e.style.transform = `translateX(${n}px)`) : (e.style.transitionDuration = "0s", e.style.transform = `translateX(${n}px)`, e.style.width = `${r.width}px`, H(50)));
|
|
97
|
+
}, Z = (t, e) => {
|
|
98
|
+
let r;
|
|
99
|
+
switch (t.key) {
|
|
100
|
+
case "ArrowLeft":
|
|
101
|
+
r = (e > 0 ? e : f.length) - 1, h(r);
|
|
102
|
+
break;
|
|
103
|
+
case "ArrowRight":
|
|
104
|
+
r = (e + 1) % f.length, h(r);
|
|
105
|
+
break;
|
|
106
|
+
case "Home":
|
|
107
|
+
r = 0, h(r);
|
|
108
|
+
break;
|
|
109
|
+
case "End":
|
|
110
|
+
r = f.length - 1, h(r);
|
|
111
|
+
break;
|
|
112
|
+
case "Enter":
|
|
113
|
+
case " ":
|
|
114
|
+
D(e);
|
|
115
|
+
return;
|
|
116
|
+
default:
|
|
117
|
+
return;
|
|
118
|
+
}
|
|
119
|
+
if (r !== void 0) {
|
|
120
|
+
const o = r > e ? "next" : "prev";
|
|
121
|
+
setTimeout(() => y(o, r), 0);
|
|
122
|
+
}
|
|
123
|
+
t.preventDefault();
|
|
124
|
+
}, tt = (t, e) => {
|
|
125
|
+
let r;
|
|
126
|
+
switch (t.key) {
|
|
127
|
+
case "Tab":
|
|
128
|
+
if (t.shiftKey) {
|
|
129
|
+
r = e - 1 < 0 ? 0 : e - 1, h(r), e !== 0 && t.preventDefault();
|
|
130
|
+
break;
|
|
131
|
+
} else
|
|
132
|
+
r = e + 1 > f.length - 1 ? e : e + 1, h(r), e !== f.length - 1 && t.preventDefault();
|
|
133
|
+
break;
|
|
134
|
+
case "Enter":
|
|
135
|
+
D(e);
|
|
136
|
+
return;
|
|
137
|
+
default:
|
|
138
|
+
return;
|
|
139
|
+
}
|
|
140
|
+
if (r !== void 0) {
|
|
141
|
+
const o = r > e ? "next" : "prev";
|
|
142
|
+
setTimeout(() => y(o, r), 0);
|
|
143
|
+
}
|
|
144
|
+
}, y = (t, e, r = "smooth") => {
|
|
145
|
+
const o = p.current[e], n = c.current, g = m(o), B = m(n);
|
|
146
|
+
let k;
|
|
147
|
+
if (!(!o || !n)) {
|
|
148
|
+
if (t === "prev") {
|
|
149
|
+
if (g.left - R > B.left)
|
|
150
|
+
return;
|
|
151
|
+
k = o.offsetLeft - R;
|
|
152
|
+
} else {
|
|
153
|
+
if (g.right + R < B.right)
|
|
154
|
+
return;
|
|
155
|
+
k = o.offsetLeft + o.offsetWidth - B.width + R;
|
|
156
|
+
}
|
|
157
|
+
n.scrollTo({
|
|
158
|
+
left: k,
|
|
159
|
+
behavior: C() ? "instant" : r
|
|
160
|
+
});
|
|
161
|
+
}
|
|
162
|
+
}, O = (t) => {
|
|
163
|
+
var r;
|
|
164
|
+
const e = et(t);
|
|
165
|
+
(r = c.current) == null || r.scrollTo({
|
|
166
|
+
left: e,
|
|
167
|
+
behavior: C() ? "instant" : "smooth"
|
|
168
|
+
});
|
|
169
|
+
}, et = (t) => {
|
|
170
|
+
if (!d.current || !c.current)
|
|
171
|
+
return 0;
|
|
172
|
+
const { scrollLeft: e, offsetWidth: r } = c.current, o = Math.round(r * 0.2);
|
|
173
|
+
return t === "next" ? e + o : e - o;
|
|
174
|
+
}, $ = b(i.scroller, {
|
|
175
|
+
[i.scrollerCentered]: M === "center"
|
|
176
|
+
}), rt = T ? "nav" : "div";
|
|
177
|
+
return /* @__PURE__ */ l.jsxs("div", { className: b(i.tabsWrapper, q), ...G, children: [
|
|
178
|
+
/* @__PURE__ */ l.jsxs(
|
|
179
|
+
rt,
|
|
180
|
+
{
|
|
181
|
+
className: i.scrollWrapper,
|
|
182
|
+
ref: c,
|
|
183
|
+
...u,
|
|
184
|
+
children: [
|
|
185
|
+
T ? /* @__PURE__ */ l.jsx(
|
|
186
|
+
at,
|
|
187
|
+
{
|
|
188
|
+
tabs: f,
|
|
189
|
+
tabRefs: p,
|
|
190
|
+
scrollerRef: d,
|
|
191
|
+
handleNavigationKeydown: tt,
|
|
192
|
+
scrollerClass: $,
|
|
193
|
+
selectedTabIndex: s,
|
|
194
|
+
setSelectedTab: D
|
|
195
|
+
}
|
|
196
|
+
) : /* @__PURE__ */ l.jsx("div", { role: "tablist", className: $, ref: d, children: f.map(
|
|
197
|
+
({ id: t, label: e, iconName: r, numberIndicatorValue: o }, n) => /* @__PURE__ */ l.jsxs(
|
|
198
|
+
"button",
|
|
199
|
+
{
|
|
200
|
+
id: X(L, t),
|
|
201
|
+
role: "tab",
|
|
202
|
+
"aria-selected": s === n,
|
|
203
|
+
"aria-controls": it(L, t, n),
|
|
204
|
+
tabIndex: s === n ? 0 : -1,
|
|
205
|
+
className: i.tab,
|
|
206
|
+
ref: (g) => {
|
|
207
|
+
p.current[n] = g;
|
|
208
|
+
},
|
|
209
|
+
onClick: () => D(n),
|
|
210
|
+
onKeyDown: (g) => Z(g, n),
|
|
211
|
+
children: [
|
|
212
|
+
r && /* @__PURE__ */ l.jsx(st, { name: r, "aria-hidden": "true" }),
|
|
213
|
+
e,
|
|
214
|
+
o && /* @__PURE__ */ l.jsx(ct, { label: o })
|
|
215
|
+
]
|
|
216
|
+
},
|
|
217
|
+
X(L, t)
|
|
218
|
+
)
|
|
219
|
+
) }),
|
|
220
|
+
/* @__PURE__ */ l.jsx("span", { className: i.indicator, ref: a })
|
|
221
|
+
]
|
|
222
|
+
}
|
|
223
|
+
),
|
|
224
|
+
/* @__PURE__ */ l.jsx(
|
|
225
|
+
K,
|
|
226
|
+
{
|
|
227
|
+
variant: "filled",
|
|
228
|
+
className: b(i.scrollButton, {
|
|
229
|
+
[i.scrollButtonHidden]: !Q
|
|
230
|
+
}),
|
|
231
|
+
hideLabel: !0,
|
|
232
|
+
iconName: "chevron-left",
|
|
233
|
+
tabIndex: -1,
|
|
234
|
+
size: "small",
|
|
235
|
+
onClick: () => O("prev"),
|
|
236
|
+
children: "Left"
|
|
237
|
+
}
|
|
238
|
+
),
|
|
239
|
+
/* @__PURE__ */ l.jsx(
|
|
240
|
+
K,
|
|
241
|
+
{
|
|
242
|
+
variant: "filled",
|
|
243
|
+
className: b(i.scrollButton, i.scrollButtonRight, {
|
|
244
|
+
[i.scrollButtonHidden]: !J
|
|
245
|
+
}),
|
|
246
|
+
hideLabel: !0,
|
|
247
|
+
iconName: "chevron-right",
|
|
248
|
+
tabIndex: -1,
|
|
249
|
+
size: "small",
|
|
250
|
+
onClick: () => O("next"),
|
|
251
|
+
children: "Right"
|
|
252
|
+
}
|
|
253
|
+
)
|
|
254
|
+
] });
|
|
255
|
+
};
|
|
256
|
+
export {
|
|
257
|
+
yt as TabList
|
|
258
|
+
};
|
package/tablist.d.ts
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { j as m } from "./chunks/jsx-runtime.BteaETFx.js";
|
|
3
|
+
import { c as u } from "./chunks/index.CEyLAtio.js";
|
|
4
|
+
import { useRef as p, useState as f, useEffect as i } from "react";
|
|
5
|
+
import { c as d, g as E, a as x } from "./chunks/TabPane.utils.CWMN6Tsy.js";
|
|
6
|
+
import './assets/tabpane.D1LTb432.css';const g = "ds-tabs_tabpane_30tnb_1", h = {
|
|
7
|
+
tabpane: g
|
|
8
|
+
}, T = ({
|
|
9
|
+
id: a,
|
|
10
|
+
content: s,
|
|
11
|
+
index: t,
|
|
12
|
+
selectedTabIndex: o,
|
|
13
|
+
tabListId: n,
|
|
14
|
+
className: l
|
|
15
|
+
}) => {
|
|
16
|
+
const e = p(null), [r, c] = f(!1);
|
|
17
|
+
i(() => {
|
|
18
|
+
e.current && c(d(e.current));
|
|
19
|
+
}, [s]);
|
|
20
|
+
const b = u(h.tabpane, l);
|
|
21
|
+
return /* @__PURE__ */ m.jsx(
|
|
22
|
+
"div",
|
|
23
|
+
{
|
|
24
|
+
id: E(n, a, t),
|
|
25
|
+
role: "tabpanel",
|
|
26
|
+
"aria-labelledby": x(n, a),
|
|
27
|
+
hidden: o !== t,
|
|
28
|
+
tabIndex: r ? void 0 : 0,
|
|
29
|
+
ref: e,
|
|
30
|
+
className: b,
|
|
31
|
+
children: s
|
|
32
|
+
}
|
|
33
|
+
);
|
|
34
|
+
};
|
|
35
|
+
export {
|
|
36
|
+
T as TabPane
|
|
37
|
+
};
|
package/tabpane.d.ts
ADDED
package/tabs.d.ts
ADDED
package/tabs.jdCTjBr0.js
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import "./chunks/jsx-runtime.BteaETFx.js";
|
|
3
|
+
import "react";
|
|
4
|
+
import "./tablist.BCOOuiX4.js";
|
|
5
|
+
import "./tabpane.CAy_cIi3.js";
|
|
6
|
+
import "./chunks/TabPane.utils.CWMN6Tsy.js";
|
|
7
|
+
import { D as s } from "./chunks/Tabs.UwweipbU.js";
|
|
8
|
+
export {
|
|
9
|
+
s as DSTabs
|
|
10
|
+
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { j as x } from "./chunks/jsx-runtime.
|
|
3
|
-
import { c as k } from "./chunks/index.
|
|
4
|
-
import './assets/text.
|
|
2
|
+
import { j as x } from "./chunks/jsx-runtime.BteaETFx.js";
|
|
3
|
+
import { c as k } from "./chunks/index.CEyLAtio.js";
|
|
4
|
+
import './assets/text.BlRcxO8n.css';const c = "ds-text_root_12k0t_1", n = "ds-text_root--large_12k0t_7", u = "ds-text_root--large-bold_12k0t_18", b = "ds-text_root--medium_12k0t_29", S = "ds-text_root--medium-bold_12k0t_40", g = "ds-text_root--small_12k0t_51", B = "ds-text_root--small-bold_12k0t_62", i = "ds-text_root--x-small_12k0t_73", X = "ds-text_root--x-small-bold_12k0t_84", L = "ds-text_root--xx-small_12k0t_95", M = "ds-text_root--theme-dark_12k0t_189", o = {
|
|
5
5
|
root: c,
|
|
6
6
|
"root--large": "ds-text_root--large_12k0t_7",
|
|
7
7
|
rootLarge: n,
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import "./chunks/jsx-runtime.BteaETFx.js";
|
|
3
|
+
import "./chunks/index.CEyLAtio.js";
|
|
4
|
+
import "react";
|
|
5
|
+
import "./chunks/helpers.CcqWV-wZ.js";
|
|
6
|
+
import "./chunks/useBreakpoint.BzR_yaIv.js";
|
|
7
|
+
import "./asterisk.DdCXwXQh.js";
|
|
8
|
+
import "./systemfeedback.bHSsfiy3.js";
|
|
9
|
+
import { D as x } from "./chunks/Textarea.BzHIGYVB.js";
|
|
10
|
+
export {
|
|
11
|
+
x as DSTextarea
|
|
12
|
+
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { j as r } from "./chunks/jsx-runtime.
|
|
3
|
-
import { c as d } from "./chunks/index.
|
|
4
|
-
import './assets/title.
|
|
2
|
+
import { j as r } from "./chunks/jsx-runtime.BteaETFx.js";
|
|
3
|
+
import { c as d } from "./chunks/index.CEyLAtio.js";
|
|
4
|
+
import './assets/title.B0tsgJ-n.css';const g = "ds-title_root_tt8l3_1", i = "ds-title_root--x-large-uppercase_tt8l3_4", n = "ds-title_root--large-uppercase_tt8l3_20", h = "ds-title_root--theme-dark_tt8l3_36", m = "ds-title_dash_tt8l3_39", t = {
|
|
5
5
|
root: g,
|
|
6
6
|
"root--x-large-uppercase": "ds-title_root--x-large-uppercase_tt8l3_4",
|
|
7
7
|
rootXLargeUppercase: i,
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import "./chunks/jsx-runtime.BteaETFx.js";
|
|
3
|
+
import "./chunks/index.CEyLAtio.js";
|
|
4
|
+
import "react";
|
|
5
|
+
import "./button.Nknx8eP1.js";
|
|
6
|
+
import "./chunks/Icon.CvVRQw6C.js";
|
|
7
|
+
import { D as s } from "./chunks/Toast.CwalSzYB.js";
|
|
8
|
+
export {
|
|
9
|
+
s as DSToast
|
|
10
|
+
};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { j as g } from "./chunks/jsx-runtime.
|
|
2
|
+
import { j as g } from "./chunks/jsx-runtime.BteaETFx.js";
|
|
3
3
|
import { createContext as y, useContext as C, useState as S, useRef as O, useEffect as A, useMemo as j } from "react";
|
|
4
|
-
import { g as a } from "./chunks/helpers.
|
|
5
|
-
import { b as
|
|
6
|
-
import { D as _, s as U } from "./chunks/Toast.
|
|
7
|
-
import { h as q } from "./chunks/has-
|
|
4
|
+
import { g as a } from "./chunks/helpers.CcqWV-wZ.js";
|
|
5
|
+
import { b as D, g as E } from "./chunks/AriaLiveRegions.utils.Bq6Mp2bE.js";
|
|
6
|
+
import { D as _, s as U } from "./chunks/Toast.CwalSzYB.js";
|
|
7
|
+
import { h as q } from "./chunks/has-window.ut_-aShB.js";
|
|
8
8
|
const Q = () => {
|
|
9
|
-
if (!
|
|
9
|
+
if (!D() || !E())
|
|
10
10
|
throw new Error(
|
|
11
11
|
a(
|
|
12
12
|
"DSToast",
|
|
@@ -23,7 +23,7 @@ const Q = () => {
|
|
|
23
23
|
'The destructured "toast" element should only be used once in the DOM.'
|
|
24
24
|
)
|
|
25
25
|
);
|
|
26
|
-
}, i = "data-ds-toast-timeout-id",
|
|
26
|
+
}, i = "data-ds-toast-timeout-id", w = "closing", B = 1e4, x = y(void 0), H = () => {
|
|
27
27
|
const n = C(x);
|
|
28
28
|
if (!n)
|
|
29
29
|
throw new Error(
|
|
@@ -33,7 +33,7 @@ const Q = () => {
|
|
|
33
33
|
)
|
|
34
34
|
);
|
|
35
35
|
return n;
|
|
36
|
-
},
|
|
36
|
+
}, J = ({
|
|
37
37
|
children: n
|
|
38
38
|
}) => {
|
|
39
39
|
const [u, c] = S([]), [s, l] = S(null), o = O(null);
|
|
@@ -44,10 +44,10 @@ const Q = () => {
|
|
|
44
44
|
}, [u]), A(() => {
|
|
45
45
|
s && (L(s.message, s.variant), I());
|
|
46
46
|
}, [s]);
|
|
47
|
-
const
|
|
47
|
+
const T = () => {
|
|
48
48
|
var e;
|
|
49
49
|
return ((e = o.current) == null ? void 0 : e.getAttribute(i)) || null;
|
|
50
|
-
},
|
|
50
|
+
}, m = (e) => {
|
|
51
51
|
var t;
|
|
52
52
|
(t = o.current) == null || t.setAttribute(i, e);
|
|
53
53
|
}, p = () => {
|
|
@@ -55,10 +55,10 @@ const Q = () => {
|
|
|
55
55
|
return (e = o.current) == null ? void 0 : e.removeAttribute(i);
|
|
56
56
|
}, L = (e, t) => {
|
|
57
57
|
if (t === "warning") {
|
|
58
|
-
const r =
|
|
58
|
+
const r = D();
|
|
59
59
|
r && (r.innerText = e);
|
|
60
60
|
} else if (t === "success" || t === "info") {
|
|
61
|
-
const r =
|
|
61
|
+
const r = E();
|
|
62
62
|
r && (r.innerText = e);
|
|
63
63
|
}
|
|
64
64
|
}, d = (e, t) => {
|
|
@@ -78,20 +78,20 @@ const Q = () => {
|
|
|
78
78
|
f();
|
|
79
79
|
}, f = () => {
|
|
80
80
|
var t;
|
|
81
|
-
const e =
|
|
81
|
+
const e = T();
|
|
82
82
|
e && (clearTimeout(e), (t = o.current) == null || t.removeAttribute(i));
|
|
83
83
|
}, h = () => {
|
|
84
84
|
const e = setTimeout(() => {
|
|
85
85
|
v();
|
|
86
86
|
}, B);
|
|
87
|
-
|
|
87
|
+
m(String(e));
|
|
88
88
|
}, R = () => {
|
|
89
|
-
|
|
89
|
+
T() !== w && o.current && h();
|
|
90
90
|
}, I = () => {
|
|
91
91
|
var e;
|
|
92
92
|
k(), s && ((e = o.current) != null && e.showPopover) && (o.current.showPopover(), h());
|
|
93
93
|
}, v = () => {
|
|
94
|
-
f(),
|
|
94
|
+
f(), m(w), o.current && (o.current.addEventListener(
|
|
95
95
|
"animationend",
|
|
96
96
|
() => {
|
|
97
97
|
var e;
|
|
@@ -114,6 +114,6 @@ const Q = () => {
|
|
|
114
114
|
] });
|
|
115
115
|
};
|
|
116
116
|
export {
|
|
117
|
-
|
|
118
|
-
|
|
117
|
+
J as DSToastProvider,
|
|
118
|
+
H as useDSToast
|
|
119
119
|
};
|
package/utils/helpers.d.ts
CHANGED
|
@@ -17,6 +17,13 @@ export declare const pixelToRem: (px: number) => number;
|
|
|
17
17
|
* @returns {string} A message with a standardized format: "[STIHL Design System] - [componentName]: message".
|
|
18
18
|
*/
|
|
19
19
|
export declare const generateDSMessage: (componentName: string, message: string) => string;
|
|
20
|
+
/**
|
|
21
|
+
* Generates a message for a required prop that is missing from a component.
|
|
22
|
+
*
|
|
23
|
+
* @param {string} propName - The name of the prop that is required.
|
|
24
|
+
* @param {string} componentName - The name of the component that is missing the required prop.
|
|
25
|
+
*/
|
|
26
|
+
export declare const requiredPropMessage: (propName: string, componentName: string) => string;
|
|
20
27
|
/**
|
|
21
28
|
* Retrieves the closest ancestor of the given element that matches a specified selector.
|
|
22
29
|
*
|
package/utils/index.d.ts
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const isAnimationDisabled: () => boolean;
|
package/accordion.Rvtiu8Y4.js
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import "./chunks/jsx-runtime.C115EyI4.js";
|
|
3
|
-
import "./chunks/index.CvOaL64Y.js";
|
|
4
|
-
import "react";
|
|
5
|
-
import "./heading.IPIYc5vW.js";
|
|
6
|
-
import "./chunks/Icon.BCmt_XBG.js";
|
|
7
|
-
import { D as e } from "./chunks/Accordion.CB6jB3s_.js";
|
|
8
|
-
export {
|
|
9
|
-
e as DSAccordion
|
|
10
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.ds-link-standalone_root_1ubnn_1{display:inline-flex;align-items:center;height:fit-content;gap:6px;padding-inline-end:4px;padding-inline-start:4px;padding-block-start:2px;padding-block-end:2px;text-decoration-color:transparent;font-family:STIHL Contraface Digital Text Regular,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif;font-style:normal;font-variant:normal;-webkit-hyphens:manual;hyphens:manual;overflow-wrap:break-word;font-weight:400;font-size:1rem;line-height:1.25;font-size-adjust:.414;color:#252525}.ds-link-standalone_root_1ubnn_1:link,.ds-link-standalone_root_1ubnn_1:visited{color:#252525}.ds-link-standalone_root_1ubnn_1:active{background-color:#0000001a;color:#252525}@media (hover: hover){.ds-link-standalone_root_1ubnn_1:hover{background-color:#0000001a;color:#252525}}@media screen and (hover: hover) and (forced-colors: active){.ds-link-standalone_root_1ubnn_1:hover{background-color:Canvas}}.ds-link-standalone_root_1ubnn_1:focus{outline:2px solid;outline-color:#252525;outline-offset:0}@media screen and (forced-colors: active){.ds-link-standalone_root_1ubnn_1:focus{forced-color-adjust:auto;outline-color:Highlight}}@supports selector(:focus-visible){.ds-link-standalone_root_1ubnn_1:focus{outline:revert;outline-offset:revert}.ds-link-standalone_root_1ubnn_1:focus-visible{outline:2px solid;outline-color:#252525;outline-offset:0}@media screen and (forced-colors: active){.ds-link-standalone_root_1ubnn_1:focus-visible{forced-color-adjust:auto;outline-color:Highlight}}}.ds-link-standalone_root--highlight_1ubnn_68,.ds-link-standalone_root--highlight_1ubnn_68:link,.ds-link-standalone_root--highlight_1ubnn_68:visited{color:#1e71a1}.ds-link-standalone_root--highlight_1ubnn_68:active{color:#19618b}@media (hover: hover){.ds-link-standalone_root--highlight_1ubnn_68:hover{color:#19618b}}.ds-link-standalone_root--neutral-dark_1ubnn_82,.ds-link-standalone_root--neutral-dark_1ubnn_82:link,.ds-link-standalone_root--neutral-dark_1ubnn_82:visited{color:#fff}.ds-link-standalone_root--neutral-dark_1ubnn_82:active{background-color:#ffffff26;color:#fff}@media (hover: hover){.ds-link-standalone_root--neutral-dark_1ubnn_82:hover{background-color:#ffffff26;color:#fff}}@media screen and (hover: hover) and (forced-colors: active){.ds-link-standalone_root--neutral-dark_1ubnn_82:hover{background-color:Canvas}}.ds-link-standalone_root--neutral-dark_1ubnn_82:focus{outline:2px solid;outline-color:#fff;outline-offset:0}@media screen and (forced-colors: active){.ds-link-standalone_root--neutral-dark_1ubnn_82:focus{forced-color-adjust:auto;outline-color:Highlight}}@supports selector(:focus-visible){.ds-link-standalone_root--neutral-dark_1ubnn_82:focus{outline:revert;outline-offset:revert}.ds-link-standalone_root--neutral-dark_1ubnn_82:focus-visible{outline:2px solid;outline-color:#fff;outline-offset:0}@media screen and (forced-colors: active){.ds-link-standalone_root--neutral-dark_1ubnn_82:focus-visible{forced-color-adjust:auto;outline-color:Highlight}}}.ds-link-standalone_root--highlight-dark_1ubnn_131,.ds-link-standalone_root--highlight-dark_1ubnn_131:link,.ds-link-standalone_root--highlight-dark_1ubnn_131:visited{color:#8dcfe8}.ds-link-standalone_root--highlight-dark_1ubnn_131:active{background-color:#ffffff26;color:#8dcfe8}@media (hover: hover){.ds-link-standalone_root--highlight-dark_1ubnn_131:hover{background-color:#ffffff26;color:#8dcfe8}}@media screen and (hover: hover) and (forced-colors: active){.ds-link-standalone_root--highlight-dark_1ubnn_131:hover{background-color:Canvas}}.ds-link-standalone_root--highlight-dark_1ubnn_131:focus{outline:2px solid;outline-color:#fff;outline-offset:0}@media screen and (forced-colors: active){.ds-link-standalone_root--highlight-dark_1ubnn_131:focus{forced-color-adjust:auto;outline-color:Highlight}}@supports selector(:focus-visible){.ds-link-standalone_root--highlight-dark_1ubnn_131:focus{outline:revert;outline-offset:revert}.ds-link-standalone_root--highlight-dark_1ubnn_131:focus-visible{outline:2px solid;outline-color:#fff;outline-offset:0}@media screen and (forced-colors: active){.ds-link-standalone_root--highlight-dark_1ubnn_131:focus-visible{forced-color-adjust:auto;outline-color:Highlight}}}.ds-link-standalone_root--active_1ubnn_180{text-decoration-skip-ink:auto;text-decoration-line:underline;text-underline-offset:2px;text-decoration-thickness:1px;text-decoration-color:currentColor}.ds-link-standalone_root--icon-left_1ubnn_187{flex-direction:row-reverse}.ds-link-standalone_root_1ubnn_1{transition:background-color var(--ds-animation-duration, .1s) linear,border-color var(--ds-animation-duration, .1s) linear,color var(--ds-animation-duration, .1s) linear}@media (prefers-reduced-motion: reduce){.ds-link-standalone_root_1ubnn_1{transition-duration:0ms}}.ds-link-standalone_root_1ubnn_1 svg{fill:currentColor}
|