@stihl-design-system/components 1.0.0-RC.13 → 1.0.0-RC.14
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.Rvtiu8Y4.js → accordion.C6_sqiW2.js} +1 -1
- package/{arialiveregions.Cyycgs8g.js → arialiveregions.2dxodwBP.js} +1 -1
- package/assets/TabPane.zywjfwo8.css +1 -0
- package/assets/Tabs.DUqlqP6R.css +1 -0
- package/assets/numberindicator.BJ9vFpnd.css +1 -0
- package/{button.M4nXjcUn.js → button.BfcWQZhx.js} +1 -1
- package/{checkbox.Cb2_ey6U.js → checkbox.Dt0OWryN.js} +1 -1
- package/{checkboxgroup.DBDmB-zR.js → checkboxgroup.je32bRPr.js} +2 -2
- package/{chip.C_1tGqvZ.js → chip.CpnDX4Ro.js} +1 -1
- package/{chipgroup.BvTj1ziW.js → chipgroup.Cy76KMWu.js} +17 -16
- package/chunks/{Accordion.CB6jB3s_.js → Accordion.Bza3TO4Y.js} +1 -1
- package/chunks/AriaLiveRegions.utils.Bq6Mp2bE.js +40 -0
- package/chunks/{CheckboxGroup.S6i5EOc4.js → CheckboxGroup.C_2ZwEQJ.js} +38 -35
- package/chunks/{Chip.CMlPUyOJ.js → Chip.BvlKC503.js} +30 -24
- package/chunks/{CustomReactSelect.CQ1uexBH.js → CustomReactSelect.CB41lklE.js} +3 -3
- package/chunks/{Dialog.CudsqNag.js → Dialog.ClBjJWOh.js} +2 -2
- package/chunks/{Drawer.ueG2Bzr9.js → Drawer.ReDW3ohH.js} +2 -2
- package/chunks/{Fieldset.Cjmkgxxk.js → Fieldset.Ct_JFRs9.js} +2 -2
- package/chunks/{Input.utils.ChV6RJsh.js → Input.utils.DYbmWlx6.js} +19 -21
- package/chunks/{InputPassword.CNLbBFjx.js → InputPassword.Cvk5J8w1.js} +18 -18
- package/chunks/{InputSearch.CHA6mkX_.js → InputSearch.BIIW-ERk.js} +4 -4
- package/chunks/{InputStepper.xmWGU9pU.js → InputStepper.DGzR3KY6.js} +49 -47
- package/chunks/{Notification.nx5vTamN.js → Notification.uAEjPywP.js} +1 -1
- package/chunks/RadioGroup.D10-pe9H.js +146 -0
- package/chunks/{Select.E6gLFYLk.js → Select.DsLnW29U.js} +3 -3
- package/chunks/TabPane.CYuUi0oL.js +51 -0
- package/chunks/Tabs.D_JAsvoh.js +270 -0
- package/chunks/{Textarea.DUBSOpNL.js → Textarea.Dh9R9YdZ.js} +19 -18
- package/chunks/{Toast.DyEi2GEP.js → Toast.j7LPnQ36.js} +1 -1
- package/chunks/has-window.ut_-aShB.js +5 -0
- package/chunks/helpers.CcqWV-wZ.js +8 -0
- package/chunks/{useBreakpoint.5xBNDiCf.js → useBreakpoint.B8XxjSVJ.js} +9 -9
- package/chunks/useIsomorphicLayoutEffect.CnJ9AMFS.js +7 -0
- package/{combobox.CzBpi97e.js → combobox.D6zXg976.js} +1 -1
- package/components/AriaLiveRegions/AriaLiveRegions.utils.d.ts +2 -2
- 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/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/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 +42 -0
- package/components/Tabs/Tabs.test.d.ts +1 -0
- package/components/Tabs/Tabs.utils.d.ts +11 -0
- package/components/Tabs/Tabs.utils.test.d.ts +1 -0
- package/{customreactselect.qf7CIeFs.js → customreactselect.BcjDvZG6.js} +2 -2
- package/{dialog.DYlBUsOD.js → dialog.BkVOgeWY.js} +2 -2
- package/{drawer.CvhbP1ra.js → drawer.DM_NKGTQ.js} +2 -2
- package/{fieldset.CtUGEdLv.js → fieldset.CSNoVbL1.js} +1 -1
- package/index.d.ts +4 -2
- package/index.es.js +134 -127
- package/{input.BEnCFNM-.js → input.BbnmbMCI.js} +49 -47
- package/{inputpassword.B-D_jB9w.js → inputpassword.KnZRwWCQ.js} +3 -3
- package/{inputsearch.CaSpklR1.js → inputsearch.DgYJPZ2v.js} +4 -4
- package/inputstepper.T_of1Gz0.js +15 -0
- package/{link.DREJAoPG.js → link.L8O_InKe.js} +1 -1
- package/{notification.6M0OdGXK.js → notification.Bt9TbAAt.js} +2 -2
- package/numberindicator.UU7FSouT.js +26 -0
- package/numberindicator.d.ts +2 -0
- package/package.json +3 -3
- package/{radio.DEILy_lV.js → radio.B-2uuWHq.js} +1 -1
- package/{radiogroup.DeU-HdlP.js → radiogroup.DM_lF4hI.js} +3 -3
- package/{select.BYraFJzz.js → select.COLuwr89.js} +2 -2
- package/{skiptocontent.BxvpIB7H.js → skiptocontent.DxogCFvU.js} +2 -2
- package/styles/scss/ds/lib/theme.scss +2 -0
- package/tabpane.BnQBzVXw.js +8 -0
- package/tabpane.d.ts +2 -0
- package/tabs.BaELlVri.js +15 -0
- package/tabs.d.ts +2 -0
- package/textarea.Wcl_pVBb.js +13 -0
- package/{toast.n1QUINSA.js → toast.DQlMWU6I.js} +2 -2
- package/{toastmanager.B7EZ4JSI.js → toastmanager.DxHFtr5C.js} +17 -17
- package/utils/helpers.d.ts +7 -0
- package/utils/index.d.ts +1 -0
- package/utils/isAnimationDisabled.d.ts +1 -0
- package/chunks/AriaLiveRegions.utils.BGSZafnS.js +0 -34
- package/chunks/RadioGroup.Crj7NoOs.js +0 -137
- package/chunks/has-document.r9i9TxKV.js +0 -5
- package/chunks/helpers.B1JT5ShS.js +0 -7
- package/inputstepper.C7KD1-0S.js +0 -13
- package/textarea.CBvH0ljM.js +0 -12
- package/utils/has-document.d.ts +0 -1
|
@@ -4,7 +4,7 @@ import "./chunks/index.CvOaL64Y.js";
|
|
|
4
4
|
import "react";
|
|
5
5
|
import "./heading.IPIYc5vW.js";
|
|
6
6
|
import "./chunks/Icon.BCmt_XBG.js";
|
|
7
|
-
import { D as e } from "./chunks/Accordion.
|
|
7
|
+
import { D as e } from "./chunks/Accordion.Bza3TO4Y.js";
|
|
8
8
|
export {
|
|
9
9
|
e as DSAccordion
|
|
10
10
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { j as s } from "./chunks/jsx-runtime.C115EyI4.js";
|
|
3
|
-
import { v as e, A as a, a as n } from "./chunks/AriaLiveRegions.utils.
|
|
3
|
+
import { v as e, A as a, a as n } from "./chunks/AriaLiveRegions.utils.Bq6Mp2bE.js";
|
|
4
4
|
import './assets/arialiveregions.DhsijBaL.css';const i = "ds-aria-live-regions_sr-only_2jvmr_1", r = {
|
|
5
5
|
"sr-only": "ds-aria-live-regions_sr-only_2jvmr_1",
|
|
6
6
|
srOnly: i
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.ds-tabs_tabpane_30tnb_1{padding-block:var(--ds-spacing-dynamic-s)}.ds-tabs_tabpane_30tnb_1:focus{outline:2px solid;outline-color:#252525;outline-offset:-2px}@media screen and (forced-colors: active){.ds-tabs_tabpane_30tnb_1:focus{forced-color-adjust:auto;outline-color:Highlight}}@supports selector(:focus-visible){.ds-tabs_tabpane_30tnb_1:focus{outline:revert;outline-offset:revert}.ds-tabs_tabpane_30tnb_1:focus-visible{outline:2px solid;outline-color:#252525;outline-offset:-2px}@media screen and (forced-colors: active){.ds-tabs_tabpane_30tnb_1:focus-visible{forced-color-adjust:auto;outline-color:Highlight}}}.ds-tabs_tabpane_30tnb_1[hidden]{display:none}.ds-tabs_tabpane_30tnb_1 a:not([class]){display:inline;padding-inline-end:2px;padding-inline-start:2px;padding-block-start:0;padding-block-end:0;line-height:inherit;font-size:inherit;text-decoration-skip-ink:auto;text-decoration-line:underline;text-underline-offset:2px;text-decoration-thickness:1px;text-decoration-color:currentColor}:where(.ds-tabs_tabpane_30tnb_1 a:not([class]))[href^="http://"]:after,:where(.ds-tabs_tabpane_30tnb_1 a:not([class]))[href^="https://"]:after,:where(.ds-tabs_tabpane_30tnb_1 a:not([class]))[href^="#"]:after{display:inline-block;margin-inline-start:.375em;width:.75em;height:.75em}.ds-tabs_tabpane_30tnb_1 a:not([class]){color:#252525}.ds-tabs_tabpane_30tnb_1 a:not([class]):link,.ds-tabs_tabpane_30tnb_1 a:not([class]):visited{color:#252525}.ds-tabs_tabpane_30tnb_1 a:not([class]):active{background-color:#0000001a;color:#252525}@media (hover: hover){.ds-tabs_tabpane_30tnb_1 a:not([class]):hover{background-color:#0000001a;color:#252525}}@media screen and (hover: hover) and (forced-colors: active){.ds-tabs_tabpane_30tnb_1 a:not([class]):hover{background-color:Canvas}}.ds-tabs_tabpane_30tnb_1 a:not([class])[href^="http://"]:after,.ds-tabs_tabpane_30tnb_1 a:not([class])[href^="https://"]:after{content:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23252525' viewBox='0 0 16 16' focusable='false' width='100%25' height='100%25'%3E%3Cpath fill-rule='evenodd' d='M9 2V0h7v7h-2V3.4L8.1 9.3 6.7 7.9 12.6 2H9Zm5 8h-2v4H2V4h4V2H0v14h14v-6Z' clip-rule='evenodd'/%3E%3C/svg%3E")}.ds-tabs_tabpane_30tnb_1 a:not([class])[href^="#"]:after{content:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23252525' viewBox='0 0 16 16' focusable='false' width='100%25' height='100%25'%3E%3Cpath d='M14.4 9.6 8 16 1.6 9.6 3 8.2l4 4V0h2v12.2l4-4 1.4 1.4Z'/%3E%3C/svg%3E")}.ds-tabs_tabpane_30tnb_1 a:not([class]):focus{outline:2px solid;outline-color:#252525;outline-offset:0}@media screen and (forced-colors: active){.ds-tabs_tabpane_30tnb_1 a:not([class]):focus{forced-color-adjust:auto;outline-color:Highlight}}@supports selector(:focus-visible){.ds-tabs_tabpane_30tnb_1 a:not([class]):focus{outline:revert;outline-offset:revert}.ds-tabs_tabpane_30tnb_1 a:not([class]):focus-visible{outline:2px solid;outline-color:#252525;outline-offset:0}@media screen and (forced-colors: active){.ds-tabs_tabpane_30tnb_1 a:not([class]):focus-visible{forced-color-adjust:auto;outline-color:Highlight}}}.ds-tabs_tabpane_30tnb_1 a:not([class]){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-tabs_tabpane_30tnb_1 a:not([class]){transition-duration:0ms}}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.ds-tabs_tabs-wrapper_infm4_1{position:relative;grid-column:main-start/main-end}.ds-tabs_scroll-wrapper_infm4_6{overflow-x:auto;overflow-y:hidden;scroll-behavior:smooth;position:relative;scrollbar-width:none}.ds-tabs_scroll-wrapper_infm4_6::-webkit-scrollbar{display:none}.ds-tabs_scroller_infm4_17{display:flex;flex-wrap:nowrap;min-width:min-content;border-bottom:1px solid #DADADA}.ds-tabs_scroller--centered_infm4_23{justify-content:center}.ds-tabs_tab_infm4_1{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.5;font-size-adjust:.414;position:relative;display:flex;flex-wrap:nowrap;align-items:center;justify-content:space-between;color:#252525;gap:8px;height:63px;padding-block:0px;padding-inline:var(--ds-spacing-dynamic-xs);border:none;outline:none;cursor:pointer;white-space:nowrap;background-color:#fff}.ds-tabs_tab_infm4_1:focus{outline:2px solid;outline-color:#252525;outline-offset:-2px}@media screen and (forced-colors: active){.ds-tabs_tab_infm4_1:focus{forced-color-adjust:auto;outline-color:Highlight}}@supports selector(:focus-visible){.ds-tabs_tab_infm4_1:focus{outline:revert;outline-offset:revert}.ds-tabs_tab_infm4_1:focus-visible{outline:2px solid;outline-color:#252525;outline-offset:-2px}@media screen and (forced-colors: active){.ds-tabs_tab_infm4_1:focus-visible{forced-color-adjust:auto;outline-color:Highlight}}}.ds-tabs_tab_infm4_1:hover{background-color:#ededed}.ds-tabs_tab_infm4_1[aria-selected=true]{font-family:STIHL Contraface Digital Text Bold,-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.5;font-size-adjust:.426}.ds-tabs_scroll-button_infm4_98{position:absolute;top:50%;transform:translateY(-50%)}.ds-tabs_scroll-button--hidden_infm4_103{opacity:0;pointer-events:none}.ds-tabs_scroll-button--right_infm4_107{right:0}.ds-tabs_scroll-button_infm4_98{transition:opacity var(--ds-animation-duration, .1s) cubic-bezier(0,0,.5,1)}@media (prefers-reduced-motion: reduce){.ds-tabs_scroll-button_infm4_98{transition-duration:0ms}}.ds-tabs_indicator_infm4_119{position:absolute;left:0;bottom:0;height:4px;background-color:#e9640c}.ds-tabs_indicator_infm4_119{transition:transform var(--ds-animation-duration, .25s) cubic-bezier(0,0,.5,1),width var(--ds-animation-duration, .25s) cubic-bezier(0,0,.5,1)}@media (prefers-reduced-motion: reduce){.ds-tabs_indicator_infm4_119{transition-duration:0ms}}@media screen and (forced-colors: active){.ds-tabs_indicator_infm4_119{background-color:Highlight}}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.ds-number-indicator_root_t83wm_1{font-family:STIHL Contraface Digital Text Demi,-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:.875rem;line-height:1.14;font-size-adjust:.42;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-smooth:never;display:inline-flex;align-items:center;justify-content:center;text-wrap:nowrap;border-radius:.625rem;border:1px solid transparent;min-width:.625rem;min-height:.625rem;background-color:#0000001a}.ds-number-indicator_root--has-content_t83wm_25{min-height:1.25rem;min-width:1.25rem;padding-inline:5px}.ds-number-indicator_root--highlight_t83wm_30{background-color:#f37a1f}@media screen and (forced-colors: active){.ds-number-indicator_root_t83wm_1{forced-color-adjust:none;border-color:CanvasText;background-color:Canvas;color:CanvasText}.ds-number-indicator_root--highlight_t83wm_30{border-color:Highlight;color:Highlight}.ds-number-indicator_root--highlight_t83wm_30:not(.ds-number-indicator_root--has-content_t83wm_25){background-color:Highlight;border-color:Highlight}}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { j as n } from "./chunks/jsx-runtime.C115EyI4.js";
|
|
3
3
|
import { c as i } from "./chunks/index.CvOaL64Y.js";
|
|
4
|
-
import { u as a } from "./chunks/useBreakpoint.
|
|
4
|
+
import { u as a } from "./chunks/useBreakpoint.B8XxjSVJ.js";
|
|
5
5
|
import { D as I } from "./chunks/Icon.BCmt_XBG.js";
|
|
6
6
|
import { DSSpinner as F } from "./spinner.Bq97Og-6.js";
|
|
7
7
|
import './assets/button.DF4RBeC2.css';const S = "ds-button_root_170gw_1", x = "ds-button_root--highlight_170gw_75", j = "ds-button_root--dark-highlight_170gw_75", L = "ds-button_root--filled_170gw_151", C = "ds-button_root--outline_170gw_179", N = "ds-button_root--ghost_170gw_206", B = "ds-button_root--ghost-flush_170gw_231", E = "ds-button_root--small_170gw_237", R = "ds-button_root--dark-filled_170gw_317", T = "ds-button_root--dark-outline_170gw_374", V = "ds-button_root--dark-ghost_170gw_430", q = "ds-button_root--dark-ghost-flush_170gw_484", A = "ds-button_root--icon-left_170gw_546", J = "ds-button_root--icon-only_170gw_562", K = "ds-button_root--icon-only-small_170gw_571", M = "ds-button_loader_170gw_586", P = "ds-button_icon--hidden_170gw_598", Q = "ds-button_label--hidden_170gw_602", U = "ds-button_label--loading_170gw_614", o = {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { j as e } from "./chunks/jsx-runtime.C115EyI4.js";
|
|
3
3
|
import { c as d } from "./chunks/index.CvOaL64Y.js";
|
|
4
4
|
import { forwardRef as y, useRef as I, useState as H, useEffect as M, useCallback as g } from "react";
|
|
5
|
-
import { u as B } from "./chunks/useBreakpoint.
|
|
5
|
+
import { u as B } from "./chunks/useBreakpoint.B8XxjSVJ.js";
|
|
6
6
|
import { D as k } from "./chunks/Icon.BCmt_XBG.js";
|
|
7
7
|
import { DSSystemFeedback as E } from "./systemfeedback.C3Pfxxpp.js";
|
|
8
8
|
import './assets/checkbox.ByOoFouu.css';const V = "ds-checkbox_root_1tuqo_1", w = "ds-checkbox_root--disabled_1tuqo_21", L = "ds-checkbox_checkbox_1tuqo_25", O = "ds-checkbox_icon-check_1tuqo_41", P = "ds-checkbox_icon-minus_1tuqo_42", R = "ds-checkbox_checkbox--invalid_1tuqo_66", U = "ds-checkbox_label--hidden_1tuqo_71", z = "ds-checkbox_input_1tuqo_84", A = "ds-checkbox_label_1tuqo_71", F = "ds-checkbox_feedback_1tuqo_198", c = {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import "./chunks/jsx-runtime.C115EyI4.js";
|
|
3
3
|
import "./chunks/index.CvOaL64Y.js";
|
|
4
|
-
import "./chunks/Fieldset.
|
|
5
|
-
import { D as i } from "./chunks/CheckboxGroup.
|
|
4
|
+
import "./chunks/Fieldset.Ct_JFRs9.js";
|
|
5
|
+
import { D as i } from "./chunks/CheckboxGroup.C_2ZwEQJ.js";
|
|
6
6
|
export {
|
|
7
7
|
i as DSCheckboxGroup
|
|
8
8
|
};
|
|
@@ -4,7 +4,7 @@ import "./chunks/index.CvOaL64Y.js";
|
|
|
4
4
|
import "react";
|
|
5
5
|
import "./chunks/translate.isa3FHb8.js";
|
|
6
6
|
import "./chunks/Icon.BCmt_XBG.js";
|
|
7
|
-
import { e as s } from "./chunks/Chip.
|
|
7
|
+
import { e as s } from "./chunks/Chip.BvlKC503.js";
|
|
8
8
|
export {
|
|
9
9
|
s as DSChip
|
|
10
10
|
};
|
|
@@ -2,14 +2,15 @@
|
|
|
2
2
|
import { j as b } from "./chunks/jsx-runtime.C115EyI4.js";
|
|
3
3
|
import { useState as S, useRef as $, useEffect as w, createElement as W } from "react";
|
|
4
4
|
import { c as _ } from "./chunks/index.CvOaL64Y.js";
|
|
5
|
-
import { h as v
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
5
|
+
import { h as v } from "./chunks/has-window.ut_-aShB.js";
|
|
6
|
+
import { u as q } from "./chunks/useBreakpoint.B8XxjSVJ.js";
|
|
7
|
+
import { g as z } from "./chunks/AriaLiveRegions.utils.Bq6Mp2bE.js";
|
|
8
|
+
import { v as J, a as P, e as Q } from "./chunks/Chip.BvlKC503.js";
|
|
8
9
|
import './assets/chipgroup.BzfZLbkv.css';const X = "ds-chip-group_label--hidden_2mchd_1", Y = "ds-chip-group_root_2mchd_14", A = {
|
|
9
10
|
"label--hidden": "ds-chip-group_label--hidden_2mchd_1",
|
|
10
11
|
labelHidden: X,
|
|
11
12
|
root: Y
|
|
12
|
-
},
|
|
13
|
+
}, ne = ({
|
|
13
14
|
chips: p,
|
|
14
15
|
id: h,
|
|
15
16
|
label: D,
|
|
@@ -20,7 +21,7 @@ import './assets/chipgroup.BzfZLbkv.css';const X = "ds-chip-group_label--hidden_
|
|
|
20
21
|
selectionMode: i = "single",
|
|
21
22
|
size: N = "medium",
|
|
22
23
|
translations: T,
|
|
23
|
-
onChipsChange:
|
|
24
|
+
onChipsChange: o,
|
|
24
25
|
...B
|
|
25
26
|
}) => {
|
|
26
27
|
process.env.NODE_ENV !== "production" && J({
|
|
@@ -28,7 +29,7 @@ import './assets/chipgroup.BzfZLbkv.css';const X = "ds-chip-group_label--hidden_
|
|
|
28
29
|
id: h,
|
|
29
30
|
label: D
|
|
30
31
|
});
|
|
31
|
-
const [l,
|
|
32
|
+
const [l, c] = S(null), [n, a] = S(p), E = $(null), [d, k] = S(), f = $([]);
|
|
32
33
|
w(() => {
|
|
33
34
|
a(p);
|
|
34
35
|
}, [p]), w(() => {
|
|
@@ -74,20 +75,20 @@ import './assets/chipgroup.BzfZLbkv.css';const X = "ds-chip-group_label--hidden_
|
|
|
74
75
|
default:
|
|
75
76
|
return;
|
|
76
77
|
}
|
|
77
|
-
|
|
78
|
+
c(t);
|
|
78
79
|
}, G = () => {
|
|
79
80
|
if (i !== "multiple") return;
|
|
80
81
|
const e = n.map((t) => ({
|
|
81
82
|
...t,
|
|
82
83
|
selected: !t.disabled
|
|
83
84
|
}));
|
|
84
|
-
a(e), m(`${e.length} items selected`),
|
|
85
|
+
a(e), m(`${e.length} items selected`), o && o(e);
|
|
85
86
|
}, u = (e) => {
|
|
86
87
|
if (r) return;
|
|
87
88
|
const t = [...n];
|
|
88
89
|
t[e].disabled || (t[e].isSelected = !0, m(
|
|
89
90
|
`${t[e].label} selected, ${t.filter(({ isSelected: s }) => s).length} items selected`
|
|
90
|
-
), a(t),
|
|
91
|
+
), a(t), o && o(t));
|
|
91
92
|
}, I = (e) => {
|
|
92
93
|
if (r) return;
|
|
93
94
|
const t = [...n];
|
|
@@ -97,7 +98,7 @@ import './assets/chipgroup.BzfZLbkv.css';const X = "ds-chip-group_label--hidden_
|
|
|
97
98
|
)) : s.isSelected = !1;
|
|
98
99
|
}) : i === "multiple" && (t[e].isSelected = !t[e].isSelected, m(
|
|
99
100
|
`${t[e].label} ${t[e].isSelected ? "selected" : "not selected"}, ${t.filter(({ isSelected: s }) => s).length} items selected`
|
|
100
|
-
)), a(t),
|
|
101
|
+
)), a(t), o && o(t));
|
|
101
102
|
}, y = (e) => {
|
|
102
103
|
var g;
|
|
103
104
|
const t = n[e], s = n.filter((L, U) => U !== e);
|
|
@@ -106,10 +107,10 @@ import './assets/chipgroup.BzfZLbkv.css';const X = "ds-chip-group_label--hidden_
|
|
|
106
107
|
), d === "keydown")
|
|
107
108
|
if (s.length > 0) {
|
|
108
109
|
const L = Math.min(e, s.length - 1);
|
|
109
|
-
|
|
110
|
+
c(L);
|
|
110
111
|
} else
|
|
111
|
-
(g = E.current) == null || g.focus(),
|
|
112
|
-
|
|
112
|
+
(g = E.current) == null || g.focus(), c(null);
|
|
113
|
+
o && o(s);
|
|
113
114
|
}, H = (e) => {
|
|
114
115
|
r ? y(e) : n[e].disabled || I(e);
|
|
115
116
|
}, m = (e) => {
|
|
@@ -139,9 +140,9 @@ import './assets/chipgroup.BzfZLbkv.css';const X = "ds-chip-group_label--hidden_
|
|
|
139
140
|
tabIndex: -1,
|
|
140
141
|
onKeyDown: F,
|
|
141
142
|
onFocus: () => {
|
|
142
|
-
l === null ? (f.current[0].focus(), d === "keydown" &&
|
|
143
|
+
l === null ? (f.current[0].focus(), d === "keydown" && c(0)) : d === "keydown" && c(l);
|
|
143
144
|
},
|
|
144
|
-
onBlur: () =>
|
|
145
|
+
onBlur: () => c(null),
|
|
145
146
|
className: O,
|
|
146
147
|
...B,
|
|
147
148
|
children: n.map((e, t) => /* @__PURE__ */ W(
|
|
@@ -170,5 +171,5 @@ import './assets/chipgroup.BzfZLbkv.css';const X = "ds-chip-group_label--hidden_
|
|
|
170
171
|
] });
|
|
171
172
|
};
|
|
172
173
|
export {
|
|
173
|
-
|
|
174
|
+
ne as DSChipGroup
|
|
174
175
|
};
|
|
@@ -4,7 +4,7 @@ import { c as a } from "./index.CvOaL64Y.js";
|
|
|
4
4
|
import { forwardRef as A, useRef as F, useState as I, useImperativeHandle as R, useEffect as w } from "react";
|
|
5
5
|
import { DSHeading as T } from "../heading.IPIYc5vW.js";
|
|
6
6
|
import { D as L } from "./Icon.BCmt_XBG.js";
|
|
7
|
-
import { g } from "./helpers.
|
|
7
|
+
import { g } from "./helpers.CcqWV-wZ.js";
|
|
8
8
|
import '../assets/Accordion.i4k5SMQM.css';const M = "ds-accordion_details_1385s_1", b = "ds-accordion_summary_1385s_120", H = "ds-accordion_summary--utility--m_1385s_159", P = "ds-accordion_summary--flush_1385s_188", U = "ds-accordion_summary--small_1385s_256", q = "ds-accordion_summary-content-wrapper_1385s_261", V = "ds-accordion_summary-content-wrapper--flush_1385s_267", z = "ds-accordion_summary-content-wrapper--chevron-left_1385s_271", Z = "ds-accordion_heading-summary-wrapper_1385s_276", k = "ds-accordion_hint_1385s_280", B = "ds-accordion_icon_1385s_294", G = "ds-accordion_icon--open_1385s_305", J = "ds-accordion_content-wrapper_1385s_317", K = "ds-accordion_content-wrapper--flush_1385s_323", Q = "ds-accordion_content-wrapper--small_1385s_327", r = {
|
|
9
9
|
details: M,
|
|
10
10
|
summary: b,
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { h as t } from "./has-window.ut_-aShB.js";
|
|
3
|
+
import { g as s } from "./helpers.CcqWV-wZ.js";
|
|
4
|
+
import "react";
|
|
5
|
+
const e = "ds-alert-live-region", n = "ds-status-live-region", g = () => {
|
|
6
|
+
if (t)
|
|
7
|
+
return document.getElementById(e);
|
|
8
|
+
}, c = () => {
|
|
9
|
+
if (t)
|
|
10
|
+
return document.getElementById(n);
|
|
11
|
+
}, u = () => {
|
|
12
|
+
if (!t)
|
|
13
|
+
return;
|
|
14
|
+
const o = document.querySelectorAll(
|
|
15
|
+
`#${e}`
|
|
16
|
+
), i = document.querySelectorAll(
|
|
17
|
+
`#${n}`
|
|
18
|
+
);
|
|
19
|
+
if (o.length > 1)
|
|
20
|
+
throw new Error(
|
|
21
|
+
s(
|
|
22
|
+
"DSAriaLiveRegions",
|
|
23
|
+
`The DSAriaLiveRegions component with id="${e}" should only be present once on the page. Found ${o.length} instances.`
|
|
24
|
+
)
|
|
25
|
+
);
|
|
26
|
+
if (i.length > 1)
|
|
27
|
+
throw new Error(
|
|
28
|
+
s(
|
|
29
|
+
"DSAriaLiveRegions",
|
|
30
|
+
`The DSAriaLiveRegions component with id="${n}" should only be present once on the page. Found ${i.length} instances.`
|
|
31
|
+
)
|
|
32
|
+
);
|
|
33
|
+
};
|
|
34
|
+
export {
|
|
35
|
+
e as A,
|
|
36
|
+
n as a,
|
|
37
|
+
g as b,
|
|
38
|
+
c as g,
|
|
39
|
+
u as v
|
|
40
|
+
};
|
|
@@ -1,33 +1,36 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { j as u } from "./jsx-runtime.C115EyI4.js";
|
|
3
3
|
import { c as m } from "./index.CvOaL64Y.js";
|
|
4
|
-
import { D as f } from "./Fieldset.
|
|
4
|
+
import { D as f } from "./Fieldset.Ct_JFRs9.js";
|
|
5
5
|
import l from "react";
|
|
6
|
-
import { g as i } from "./helpers.
|
|
7
|
-
import { DSCheckbox as
|
|
8
|
-
import '../assets/CheckboxGroup.BH1Br1dg.css';const
|
|
9
|
-
root:
|
|
6
|
+
import { g as i, r as k } from "./helpers.CcqWV-wZ.js";
|
|
7
|
+
import { DSCheckbox as D } from "../checkbox.Dt0OWryN.js";
|
|
8
|
+
import '../assets/CheckboxGroup.BH1Br1dg.css';const _ = "ds-checkbox-group_root_12fot_1", C = "ds-checkbox-group_root--horizontal_12fot_9", S = "ds-checkbox-group_root--invalid_12fot_12", a = {
|
|
9
|
+
root: _,
|
|
10
10
|
"root--horizontal": "ds-checkbox-group_root--horizontal_12fot_9",
|
|
11
|
-
rootHorizontal:
|
|
11
|
+
rootHorizontal: C,
|
|
12
12
|
"root--invalid": "ds-checkbox-group_root--invalid_12fot_12",
|
|
13
|
-
rootInvalid:
|
|
14
|
-
},
|
|
13
|
+
rootInvalid: S
|
|
14
|
+
}, v = ({
|
|
15
15
|
children: o,
|
|
16
|
-
description:
|
|
17
|
-
id:
|
|
18
|
-
legend:
|
|
19
|
-
systemFeedback:
|
|
16
|
+
description: r,
|
|
17
|
+
id: s,
|
|
18
|
+
legend: e,
|
|
19
|
+
systemFeedback: c
|
|
20
20
|
}) => {
|
|
21
|
-
if (!
|
|
21
|
+
if (!s && (r || c))
|
|
22
22
|
throw new Error(
|
|
23
23
|
i(
|
|
24
24
|
"DSCheckboxGroup",
|
|
25
|
-
'A unique "id" prop is required when providing the description or systemFeedback property. Please add
|
|
25
|
+
'A unique "id" prop is required when providing the description or systemFeedback property. Please add a unique "id" prop to the DSCheckboxGroup component.'
|
|
26
26
|
)
|
|
27
27
|
);
|
|
28
|
-
if (!
|
|
28
|
+
if (!e)
|
|
29
29
|
throw new Error(
|
|
30
|
-
i(
|
|
30
|
+
i(
|
|
31
|
+
"DSCheckboxGroup",
|
|
32
|
+
k("legend", "DSCheckboxGroup")
|
|
33
|
+
)
|
|
31
34
|
);
|
|
32
35
|
if (!o)
|
|
33
36
|
throw new Error(
|
|
@@ -37,7 +40,7 @@ import '../assets/CheckboxGroup.BH1Br1dg.css';const D = "ds-checkbox-group_root_
|
|
|
37
40
|
)
|
|
38
41
|
);
|
|
39
42
|
l.Children.forEach(o, (t) => {
|
|
40
|
-
if (!(l.isValidElement(t) && t.type ===
|
|
43
|
+
if (!(l.isValidElement(t) && t.type === D))
|
|
41
44
|
throw new Error(
|
|
42
45
|
i(
|
|
43
46
|
"DSCheckboxGroup",
|
|
@@ -47,40 +50,40 @@ import '../assets/CheckboxGroup.BH1Br1dg.css';const D = "ds-checkbox-group_root_
|
|
|
47
50
|
});
|
|
48
51
|
}, y = ({
|
|
49
52
|
children: o,
|
|
50
|
-
legend:
|
|
51
|
-
className:
|
|
52
|
-
description:
|
|
53
|
-
direction:
|
|
53
|
+
legend: r,
|
|
54
|
+
className: s,
|
|
55
|
+
description: e,
|
|
56
|
+
direction: c = "vertical",
|
|
54
57
|
disabled: t = !1,
|
|
55
|
-
id:
|
|
58
|
+
id: h,
|
|
56
59
|
invalid: p = !1,
|
|
57
60
|
required: d = !1,
|
|
58
|
-
systemFeedback:
|
|
61
|
+
systemFeedback: n,
|
|
59
62
|
...x
|
|
60
63
|
}) => {
|
|
61
64
|
process.env.NODE_ENV !== "production" && v({
|
|
62
65
|
children: o,
|
|
63
|
-
legend:
|
|
64
|
-
description:
|
|
65
|
-
id:
|
|
66
|
-
systemFeedback:
|
|
66
|
+
legend: r,
|
|
67
|
+
description: e,
|
|
68
|
+
id: h,
|
|
69
|
+
systemFeedback: n
|
|
67
70
|
});
|
|
68
|
-
const b = m(
|
|
71
|
+
const b = m(a.root, {
|
|
69
72
|
// In case of longer copy, use vertical direction
|
|
70
|
-
[
|
|
71
|
-
[
|
|
73
|
+
[a.rootHorizontal]: c === "horizontal",
|
|
74
|
+
[a.rootInvalid]: p && !!n
|
|
72
75
|
});
|
|
73
76
|
return /* @__PURE__ */ u.jsx(
|
|
74
77
|
f,
|
|
75
78
|
{
|
|
76
|
-
id:
|
|
77
|
-
legend:
|
|
78
|
-
className:
|
|
79
|
-
description:
|
|
79
|
+
id: h,
|
|
80
|
+
legend: r,
|
|
81
|
+
className: s,
|
|
82
|
+
description: e,
|
|
80
83
|
disabled: t,
|
|
81
84
|
required: d,
|
|
82
85
|
invalid: p,
|
|
83
|
-
systemFeedback:
|
|
86
|
+
systemFeedback: n,
|
|
84
87
|
...x,
|
|
85
88
|
children: /* @__PURE__ */ u.jsx("div", { className: b, children: o })
|
|
86
89
|
}
|
|
@@ -4,34 +4,40 @@ import { c as _ } from "./index.CvOaL64Y.js";
|
|
|
4
4
|
import { forwardRef as w } from "react";
|
|
5
5
|
import { t as y } from "./translate.isa3FHb8.js";
|
|
6
6
|
import { D as d } from "./Icon.BCmt_XBG.js";
|
|
7
|
-
import { g as a } from "./helpers.
|
|
8
|
-
import { g as
|
|
9
|
-
import '../assets/Chip.DSdLuzoi.css';const
|
|
10
|
-
chip:
|
|
7
|
+
import { g as a, r as h } from "./helpers.CcqWV-wZ.js";
|
|
8
|
+
import { g as b } from "./AriaLiveRegions.utils.Bq6Mp2bE.js";
|
|
9
|
+
import '../assets/Chip.DSdLuzoi.css';const G = "ds-chip-group_chip_aidwn_1", P = "ds-chip-group_chip--small_aidwn_30", u = {
|
|
10
|
+
chip: G,
|
|
11
11
|
"chip--small": "ds-chip-group_chip--small_aidwn_30",
|
|
12
|
-
chipSmall:
|
|
13
|
-
},
|
|
12
|
+
chipSmall: P
|
|
13
|
+
}, q = ({
|
|
14
14
|
chips: e,
|
|
15
15
|
id: i,
|
|
16
16
|
label: r
|
|
17
17
|
}) => {
|
|
18
18
|
if (!Array.isArray(e))
|
|
19
19
|
throw new Error(
|
|
20
|
-
a(
|
|
20
|
+
a(
|
|
21
|
+
"DSChipGroup",
|
|
22
|
+
h("chips", "DSChipGroup")
|
|
23
|
+
)
|
|
21
24
|
);
|
|
22
25
|
if (!i)
|
|
23
26
|
throw new Error(
|
|
24
27
|
a(
|
|
25
28
|
"DSChipGroup",
|
|
26
|
-
'A unique "id" prop is required when providing the description or systemFeedback property. Please add
|
|
29
|
+
'A unique "id" prop is required when providing the description or systemFeedback property. Please add a unique "id" prop to the DSChipGroup component.'
|
|
27
30
|
)
|
|
28
31
|
);
|
|
29
32
|
if (!r)
|
|
30
33
|
throw new Error(
|
|
31
|
-
a(
|
|
34
|
+
a(
|
|
35
|
+
"DSChipGroup",
|
|
36
|
+
h("label", "DSChipGroup")
|
|
37
|
+
)
|
|
32
38
|
);
|
|
33
39
|
}, H = () => {
|
|
34
|
-
if (!
|
|
40
|
+
if (!b())
|
|
35
41
|
throw new Error(
|
|
36
42
|
a(
|
|
37
43
|
"DSChipGroup",
|
|
@@ -52,7 +58,7 @@ import '../assets/Chip.DSdLuzoi.css';const T = "ds-chip-group_chip_aidwn_1", b =
|
|
|
52
58
|
titleRemovable: "Remove filter",
|
|
53
59
|
titleDeactivate: "Deactivate property",
|
|
54
60
|
titleActivate: "Activate property"
|
|
55
|
-
},
|
|
61
|
+
}, T = {
|
|
56
62
|
disabled: "deaktiviert",
|
|
57
63
|
selected: "ausgewählt",
|
|
58
64
|
// {0} is the action (e.g., select/unselect)
|
|
@@ -68,13 +74,13 @@ import '../assets/Chip.DSdLuzoi.css';const T = "ds-chip-group_chip_aidwn_1", b =
|
|
|
68
74
|
titleActivate: "Eigenschaft aktivieren"
|
|
69
75
|
}, k = {
|
|
70
76
|
en: R,
|
|
71
|
-
de:
|
|
77
|
+
de: T
|
|
72
78
|
}, E = (e, i, r, t, n, s) => r ? `${i}, ${e("disabled")}` : s ? `${i}, ${e("removeChip")}` : `${i}, ${t ? `${e("selected")}, ` : ""}${e(
|
|
73
79
|
"selectChip",
|
|
74
80
|
[
|
|
75
81
|
e(n === "single" ? t ? "unselectAction" : "selectAction" : t ? "removeFromSelection" : "addToSelection")
|
|
76
82
|
]
|
|
77
|
-
)}`,
|
|
83
|
+
)}`, x = (e, i, r, t) => e(i ? "titleDisabled" : t ? "titleRemovable" : r ? "titleDeactivate" : "titleActivate"), I = w(
|
|
78
84
|
({
|
|
79
85
|
id: e,
|
|
80
86
|
label: i,
|
|
@@ -90,11 +96,11 @@ import '../assets/Chip.DSdLuzoi.css';const T = "ds-chip-group_chip_aidwn_1", b =
|
|
|
90
96
|
translations: S,
|
|
91
97
|
onClick: D,
|
|
92
98
|
...A
|
|
93
|
-
},
|
|
99
|
+
}, C) => {
|
|
94
100
|
const p = y(
|
|
95
101
|
S || k[m]
|
|
96
|
-
),
|
|
97
|
-
[
|
|
102
|
+
), g = _(u.chip, {
|
|
103
|
+
[u.chipSmall]: v === "small"
|
|
98
104
|
});
|
|
99
105
|
return /* @__PURE__ */ o.jsxs(
|
|
100
106
|
"div",
|
|
@@ -111,12 +117,12 @@ import '../assets/Chip.DSdLuzoi.css';const T = "ds-chip-group_chip_aidwn_1", b =
|
|
|
111
117
|
"aria-selected": l && !t,
|
|
112
118
|
"aria-disabled": s && !t,
|
|
113
119
|
id: `${r}-chip-${e}`,
|
|
114
|
-
className:
|
|
120
|
+
className: g,
|
|
115
121
|
tabIndex: f,
|
|
116
122
|
onClick: D,
|
|
117
|
-
ref:
|
|
123
|
+
ref: C,
|
|
118
124
|
...A,
|
|
119
|
-
title:
|
|
125
|
+
title: x(p, s, l, t),
|
|
120
126
|
children: [
|
|
121
127
|
/* @__PURE__ */ o.jsxs("div", { role: "gridcell", "aria-colindex": 1, style: { display: "contents" }, children: [
|
|
122
128
|
c && /* @__PURE__ */ o.jsx(d, { name: c, "aria-hidden": "true" }),
|
|
@@ -128,15 +134,15 @@ import '../assets/Chip.DSdLuzoi.css';const T = "ds-chip-group_chip_aidwn_1", b =
|
|
|
128
134
|
);
|
|
129
135
|
}
|
|
130
136
|
);
|
|
131
|
-
|
|
137
|
+
I.displayName = "DSChip";
|
|
132
138
|
export {
|
|
133
139
|
U as C,
|
|
134
140
|
R as D,
|
|
135
141
|
H as a,
|
|
136
|
-
|
|
142
|
+
T as b,
|
|
137
143
|
k as c,
|
|
138
|
-
|
|
139
|
-
|
|
144
|
+
x as d,
|
|
145
|
+
I as e,
|
|
140
146
|
E as g,
|
|
141
|
-
|
|
147
|
+
q as v
|
|
142
148
|
};
|
|
@@ -6,8 +6,8 @@ import { useState as oe, useCallback as O, useLayoutEffect as $t, useRef as U, u
|
|
|
6
6
|
import { keyframes as nn, jsx as v, css as ft } from "@emotion/react";
|
|
7
7
|
import { createPortal as on } from "react-dom";
|
|
8
8
|
import { t as un } from "./translate.isa3FHb8.js";
|
|
9
|
-
import { g as Fe } from "./helpers.
|
|
10
|
-
import { u as an } from "./useBreakpoint.
|
|
9
|
+
import { g as Fe } from "./helpers.CcqWV-wZ.js";
|
|
10
|
+
import { u as an } from "./useBreakpoint.B8XxjSVJ.js";
|
|
11
11
|
import { Asterisk as rn } from "../asterisk.DpzETKdT.js";
|
|
12
12
|
import { D as ce } from "./Icon.BCmt_XBG.js";
|
|
13
13
|
import { DSSystemFeedback as ln } from "../systemfeedback.C3Pfxxpp.js";
|
|
@@ -3148,7 +3148,7 @@ const ru = (n) => {
|
|
|
3148
3148
|
throw new Error(
|
|
3149
3149
|
Fe(
|
|
3150
3150
|
"DSCombobox",
|
|
3151
|
-
'A unique "id" prop is required. Please add
|
|
3151
|
+
'A unique "id" prop is required. Please add a unique "id" prop to the DSCombobox component.'
|
|
3152
3152
|
)
|
|
3153
3153
|
);
|
|
3154
3154
|
if (!e)
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
import { j as r } from "./jsx-runtime.C115EyI4.js";
|
|
3
3
|
import { c as l } from "./index.CvOaL64Y.js";
|
|
4
4
|
import { useRef as h, useState as x, useEffect as q } from "react";
|
|
5
|
-
import { DSButton as j } from "../button.
|
|
6
|
-
import { g as B } from "./helpers.
|
|
5
|
+
import { DSButton as j } from "../button.BfcWQZhx.js";
|
|
6
|
+
import { g as B } from "./helpers.CcqWV-wZ.js";
|
|
7
7
|
import '../assets/Dialog.BgzebVk4.css';const E = "ds-dialog_root_1e2qq_5", C = "ds-dialog_content-wrapper_1e2qq_159", F = "ds-dialog_content-wrapper--no-footer_1e2qq_165", W = "ds-dialog_close-button_1e2qq_173", k = "ds-dialog_header_1e2qq_186", R = "ds-dialog_content_1e2qq_159", y = "ds-dialog_footer_1e2qq_188", z = "ds-dialog_header--scrollable_1e2qq_209", L = "ds-dialog_header--close-button_1e2qq_218", M = "ds-dialog_content--no-footer_1e2qq_231", H = "ds-dialog_footer--scrollable_1e2qq_238", o = {
|
|
8
8
|
root: E,
|
|
9
9
|
"content-wrapper": "ds-dialog_content-wrapper_1e2qq_159",
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
import { j as t } from "./jsx-runtime.C115EyI4.js";
|
|
3
3
|
import { c as n } from "./index.CvOaL64Y.js";
|
|
4
4
|
import { useRef as w, useState as g, useEffect as b } from "react";
|
|
5
|
-
import { DSButton as j } from "../button.
|
|
6
|
-
import { g as B } from "./helpers.
|
|
5
|
+
import { DSButton as j } from "../button.BfcWQZhx.js";
|
|
6
|
+
import { g as B } from "./helpers.CcqWV-wZ.js";
|
|
7
7
|
import '../assets/Drawer.Bauwxrk7.css';const R = "ds-drawer_root_1qhpc_10", W = "ds-drawer_root--end_1qhpc_68", C = "ds-drawer_content-wrapper_1qhpc_169", F = "ds-drawer_content-wrapper--no-footer_1qhpc_175", k = "ds-drawer_close-button_1qhpc_178", I = "ds-drawer_header_1qhpc_191", O = "ds-drawer_content_1qhpc_169", y = "ds-drawer_footer_1qhpc_193", z = "ds-drawer_header--scrollable_1qhpc_214", L = "ds-drawer_header--close-button_1qhpc_223", M = "ds-drawer_content--no-footer_1qhpc_237", H = "ds-drawer_footer--scrollable_1qhpc_244", o = {
|
|
8
8
|
root: R,
|
|
9
9
|
"root--end": "ds-drawer_root--end_1qhpc_68",
|
|
@@ -5,7 +5,7 @@ import "react";
|
|
|
5
5
|
import { Asterisk as y } from "../asterisk.DpzETKdT.js";
|
|
6
6
|
import { DSHeading as v } from "../heading.IPIYc5vW.js";
|
|
7
7
|
import { DSSystemFeedback as w } from "../systemfeedback.C3Pfxxpp.js";
|
|
8
|
-
import { g as j } from "./helpers.
|
|
8
|
+
import { g as j } from "./helpers.CcqWV-wZ.js";
|
|
9
9
|
import '../assets/Fieldset.DOdTbb7C.css';const N = "ds-fieldset_root_1opm7_1", E = "ds-fieldset_child-wrapper_1opm7_95", M = "ds-fieldset_legend_1opm7_102", q = "ds-fieldset_legend--utility--m_1opm7_106", C = "ds-fieldset_description_1opm7_118", P = "ds-fieldset_description--small_1opm7_132", T = "ds-fieldset_system-feedback_1opm7_136", i = {
|
|
10
10
|
root: N,
|
|
11
11
|
"child-wrapper": "ds-fieldset_child-wrapper_1opm7_95",
|
|
@@ -28,7 +28,7 @@ import '../assets/Fieldset.DOdTbb7C.css';const N = "ds-fieldset_root_1opm7_1", E
|
|
|
28
28
|
throw new Error(
|
|
29
29
|
j(
|
|
30
30
|
"DSFieldset",
|
|
31
|
-
'A unique "id" prop is required when providing the description or systemFeedback property. Please add
|
|
31
|
+
'A unique "id" prop is required when providing the description or systemFeedback property. Please add a unique "id" prop to the DSFieldset component.'
|
|
32
32
|
)
|
|
33
33
|
);
|
|
34
34
|
if (!a)
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
5
|
-
|
|
6
|
-
const f = h ? p : u, a = 8, i = 5, U = ["medium", "small"], S = [
|
|
2
|
+
import { h as p } from "./has-window.ut_-aShB.js";
|
|
3
|
+
import { g as t } from "./helpers.CcqWV-wZ.js";
|
|
4
|
+
import "react";
|
|
5
|
+
const a = 8, i = 5, T = ["medium", "small"], u = [
|
|
7
6
|
"color",
|
|
8
7
|
"date",
|
|
9
8
|
"datetime-local",
|
|
@@ -16,7 +15,7 @@ const f = h ? p : u, a = 8, i = 5, U = ["medium", "small"], S = [
|
|
|
16
15
|
"text",
|
|
17
16
|
"time",
|
|
18
17
|
"url"
|
|
19
|
-
],
|
|
18
|
+
], l = [
|
|
20
19
|
"week",
|
|
21
20
|
"hidden",
|
|
22
21
|
"button",
|
|
@@ -28,7 +27,7 @@ const f = h ? p : u, a = 8, i = 5, U = ["medium", "small"], S = [
|
|
|
28
27
|
"submit",
|
|
29
28
|
"image",
|
|
30
29
|
"datetime"
|
|
31
|
-
],
|
|
30
|
+
], b = ({
|
|
32
31
|
id: e,
|
|
33
32
|
label: n,
|
|
34
33
|
prefix: o,
|
|
@@ -42,7 +41,7 @@ const f = h ? p : u, a = 8, i = 5, U = ["medium", "small"], S = [
|
|
|
42
41
|
throw new Error(
|
|
43
42
|
t(
|
|
44
43
|
"DSInput",
|
|
45
|
-
'A unique "id" prop is required. Please add
|
|
44
|
+
'A unique "id" prop is required. Please add a unique "id" prop to the DSInput component.'
|
|
46
45
|
)
|
|
47
46
|
);
|
|
48
47
|
if (!n)
|
|
@@ -73,8 +72,8 @@ const f = h ? p : u, a = 8, i = 5, U = ["medium", "small"], S = [
|
|
|
73
72
|
"Suffix and an action button cannot be used at the same time."
|
|
74
73
|
)
|
|
75
74
|
);
|
|
76
|
-
},
|
|
77
|
-
if (!
|
|
75
|
+
}, D = (e) => {
|
|
76
|
+
if (!u.includes(e) && !l.includes(e))
|
|
78
77
|
throw new Error(
|
|
79
78
|
t(
|
|
80
79
|
"DSInput",
|
|
@@ -96,18 +95,17 @@ const f = h ? p : u, a = 8, i = 5, U = ["medium", "small"], S = [
|
|
|
96
95
|
hidden: 'Type hidden is not supported by DSInput component. Use a default <input type="hidden" /> element instead.'
|
|
97
96
|
};
|
|
98
97
|
n[e] && console.warn(t("DSInput", n[e]));
|
|
99
|
-
},
|
|
98
|
+
}, h = () => p && "showPicker" in HTMLInputElement.prototype && !!window.navigator.userAgent.match(/chrome|chromium|crios|edg/i), y = (e, n) => h() && (e || n), U = (e) => e === "date" || e === "datetime-local" || e === "month", P = (e) => e === "time";
|
|
100
99
|
export {
|
|
101
|
-
|
|
100
|
+
T as I,
|
|
102
101
|
a as M,
|
|
103
|
-
S,
|
|
104
|
-
|
|
102
|
+
u as S,
|
|
103
|
+
l as U,
|
|
105
104
|
i as a,
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
P as v
|
|
105
|
+
D as b,
|
|
106
|
+
P as c,
|
|
107
|
+
h,
|
|
108
|
+
U as i,
|
|
109
|
+
y as s,
|
|
110
|
+
b as v
|
|
113
111
|
};
|