@stihl-design-system/components 1.0.0-RC.32 → 1.0.0-RC.34
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.Dmqocj97.js +12 -0
- package/actionbutton.DLQJU6AV.js +12 -0
- package/actionlink.DEBrWfN3.js +12 -0
- package/{arialiveregions.Fgcshs5k.js → arialiveregions.BUVY9NpY.js} +2 -2
- package/assets/Accordion.CzBGud45.css +1 -0
- package/assets/Button.C8sNwIeW.css +1 -0
- package/assets/Checkbox.CyOw3rXI.css +1 -0
- package/assets/CustomReactSelect.E_jJFVew.css +1 -0
- package/assets/Dialog.DJkn65Es.css +1 -0
- package/assets/Drawer.x3BCQvWE.css +1 -0
- package/assets/InputFile.BnIvK65P.css +1 -0
- package/assets/InputNumber.BoiCIR1f.css +1 -0
- package/assets/InputPassword.Dk3_vNLV.css +1 -0
- package/assets/InputSearch.C1_4cVCi.css +1 -0
- package/assets/LinkButton.B86yacK5.css +1 -0
- package/assets/{MegaMenu.DX9gChtY.css → MegaMenu.D5EtjFeL.css} +1 -1
- package/assets/Notification.CvohYEvT.css +1 -0
- package/assets/Select.COxLltX7.css +1 -0
- package/assets/Slider.DPEmJ3HD.css +1 -0
- package/assets/Stepper.tXJl15yL.css +1 -0
- package/assets/{SystemFeedback.RcrPepSZ.css → SystemFeedback.PKzqnXUe.css} +1 -1
- package/assets/Textarea.y3MW7VW0.css +1 -0
- package/assets/Toast.CGyKXb4V.css +1 -0
- package/assets/buttonround.BN3vUDc_.css +1 -0
- package/assets/input.DTu4g_iA.css +1 -0
- package/assets/step.BeLporJO.css +1 -0
- package/assets/switch.B9B-n_3y.css +1 -0
- package/{asterisk.CR60hx8S.js → asterisk.B2ih8VwF.js} +1 -1
- package/{banner.o4Etkjjo.js → banner.CI5HnDqD.js} +3 -3
- package/breadcrumb.CtwAux3P.js +11 -0
- package/button.DHuKanZP.js +13 -0
- package/{buttonround.ChKWHzsv.js → buttonround.CMlmEDaN.js} +6 -6
- package/checkbox.DwccD0Mp.js +12 -0
- package/checkboxgroup.ZiUFfCJ1.js +9 -0
- package/chip.B0s_fS8L.js +12 -0
- package/chipgroup.Dpu66bo5.js +143 -0
- package/chunks/Accordion.CYIfNOWr.js +168 -0
- package/chunks/{ActionButton.DdDesD7K.js → ActionButton.DOYsEHPr.js} +37 -37
- package/chunks/{ActionLink.DqAsPYda.js → ActionLink.DbyciN3Y.js} +36 -36
- package/chunks/{AriaLiveRegions.utils.Cb327d_2.js → AriaLiveRegions.utils.CybNIBSa.js} +2 -2
- package/chunks/{Breadcrumb.9KinNuyQ.js → Breadcrumb.BgnpTo01.js} +35 -37
- package/chunks/{Button.Cf1CKq8N.js → Button.DCZgBNmA.js} +8 -8
- package/chunks/Checkbox.BcGXAuuP.js +88 -0
- package/chunks/{CheckboxGroup.Cj68J6Ee.js → CheckboxGroup.BuFd1luB.js} +5 -5
- package/chunks/{Chip.BrbYu6i_.js → Chip.D6pubCZV.js} +6 -6
- package/chunks/{CustomReactSelect.Cqq70QC0.js → CustomReactSelect.Dg3wC_VH.js} +450 -447
- package/chunks/Dialog.DpqSVrYR.js +102 -0
- package/chunks/Drawer.DISWybOa.js +107 -0
- package/chunks/{Fieldset.D7cLR5ze.js → Fieldset.DiMtr6Vw.js} +6 -6
- package/chunks/Header.7TQL_J9t.js +370 -0
- package/chunks/{Icon.NSsVrYeq.js → Icon.CDLyB7Pv.js} +77 -79
- package/chunks/{Input.utils.Cnnzvuk4.js → Input.utils.Dkw7gRrr.js} +17 -17
- package/chunks/InputFile.C8nt9Fu8.js +218 -0
- package/chunks/InputNumber.CbH1XJfl.js +267 -0
- package/chunks/{InputPassword.Da3hEKTc.js → InputPassword.DbdjuSiJ.js} +34 -34
- package/chunks/InputSearch.joxmugiv.js +173 -0
- package/chunks/{LinkButton.59oNDwPU.js → LinkButton.BZgIGgc8.js} +7 -7
- package/chunks/MegaMenu.CQbOeaib.js +189 -0
- package/chunks/NavigationTabList.G_l0GiUa.js +67 -0
- package/chunks/{NavigationTabs.DspPFHPh.js → NavigationTabs.BwM-6CRm.js} +13 -14
- package/chunks/Notification.CrojkJ0E.js +91 -0
- package/chunks/Popover.Bb0Pjmvg.js +215 -0
- package/chunks/{RadioGroup.DeTz3c19.js → RadioGroup.CexC4v2Z.js} +5 -5
- package/chunks/Select.BEIdNMML.js +164 -0
- package/chunks/{Slider.84lkgq3W.js → Slider.CR0zYHeZ.js} +83 -84
- package/chunks/Stepper.PTQdQBYf.js +152 -0
- package/chunks/{SystemFeedback.CyGbUCzT.js → SystemFeedback.CjlARKki.js} +9 -9
- package/chunks/Tabs.DyP4whX0.js +83 -0
- package/chunks/{Text.DGWeWF1y.js → Text.DpRtTpB4.js} +3 -3
- package/chunks/Textarea.Du2RII5u.js +168 -0
- package/chunks/Toast.ug_RjGgF.js +76 -0
- package/chunks/{arrow-clockwise.BefOjGPg.js → arrow-clockwise.C4iOgjOc.js} +1 -1
- package/chunks/{arrow-counterclockwise.C7Ov32BZ.js → arrow-counterclockwise.CgQAuBUe.js} +1 -1
- package/chunks/{circle-check-colored.Bye_GwLy.js → circle-check-colored.qP2s3vjI.js} +1 -1
- package/chunks/{diamond-exclamationmark-colored.WNKYwZ8q.js → diamond-exclamationmark-colored.CzYiaTZ0.js} +1 -1
- package/chunks/feather.l1E4nFBx.js +10 -0
- package/chunks/file-type-doc.B_RSSYbu.js +10 -0
- package/chunks/floating-ui.dom.BT8pKtCQ.js +1005 -0
- package/chunks/floating-ui.react.3FjeMiuN.js +1999 -0
- package/chunks/helpers.CexwVao7.js +38 -0
- package/chunks/{index.CgTHIF3K.js → index.D-sRdssb.js} +1 -1
- package/chunks/{index.CEyLAtio.js → index.DL9mof6u.js} +2 -2
- package/chunks/{is-animation-disabled.CUl4N3LI.js → is-animation-disabled.B-V_68K-.js} +5 -5
- package/chunks/{map.CXgG1iGz.js → map.DNl7PF61.js} +1 -1
- package/chunks/moon.5yILPYXs.js +10 -0
- package/chunks/muscle.DbNjWasV.js +10 -0
- package/chunks/petrol.BGWwCsTw.js +10 -0
- package/chunks/sun.CY6ttzTL.js +10 -0
- package/chunks/{triangle-exclamationmark-colored.CbVC3Gzi.js → triangle-exclamationmark-colored.e93zvQ6Q.js} +1 -1
- package/chunks/upload.BogDfonx.js +10 -0
- package/chunks/useBreakpoint.BzR_yaIv.js +42 -0
- package/chunks/variants.-R3_RCW8.js +10 -0
- package/chunks/weight.DUPu2UT0.js +10 -0
- package/combobox.jG5GRA7C.js +65 -0
- package/components/ChipGroup/ChipGroup.utils.d.ts +1 -3
- package/components/Combobox/Combobox.utils.d.ts +3 -4
- package/components/Combobox/CustomReactSelect/CustomReactSelect.d.ts +4 -2
- package/components/{InputStepper/InputStepper.d.ts → InputNumber/InputNumber.d.ts} +4 -4
- package/components/InputNumber/InputNumber.utils.d.ts +13 -0
- package/components/Scroller/Scroller.d.ts +6 -2
- package/components/Stepper/Step.d.ts +33 -0
- package/components/Stepper/Step.utils.d.ts +5 -0
- package/components/Stepper/Stepper.d.ts +56 -0
- package/components/Stepper/Stepper.test.d.ts +1 -0
- package/components/Stepper/Stepper.utils.d.ts +30 -0
- package/components/Stepper/Stepper.utils.test.d.ts +1 -0
- package/customreactselect.BFN8cYJi.js +14 -0
- package/dialog.CzM_Cxp0.js +9 -0
- package/drawer._A9MQ8Cj.js +9 -0
- package/fieldset.CId-NtI5.js +11 -0
- package/{filelist.BiKMKCyg.js → filelist.DgVuWpR3.js} +23 -24
- package/{flag.72PONA83.js → flag.CE32qHPa.js} +3 -3
- package/{floatingactionbutton.B2YChsNU.js → floatingactionbutton.Bsnncudt.js} +5 -5
- package/header.CelAkqtp.js +12 -0
- package/{heading.BXFBZhKv.js → heading.DHLpT4dc.js} +2 -2
- package/icon.vzkPwgjZ.js +9 -0
- package/index.d.ts +4 -2
- package/index.es.js +218 -206
- package/input.DuEbg7d6.js +206 -0
- package/inputfile.BjgJGefV.js +17 -0
- package/inputnumber.BcrxBVv0.js +16 -0
- package/inputnumber.d.ts +2 -0
- package/inputpassword.CddmBW-T.js +13 -0
- package/inputsearch.CFOASqrd.js +14 -0
- package/{link.DbnvsD3j.js → link.f8MMZo-w.js} +5 -5
- package/linkbutton.BYAvi-_V.js +12 -0
- package/{logo.C96KaG1P.js → logo.DprmD8HU.js} +3 -3
- package/{logo100years.BcB6_c-o.js → logo100years.B4d_DIiB.js} +1 -1
- package/megamenu.Cy9Cc-mC.js +12 -0
- package/navigationtablist.CkkLyHrM.js +10 -0
- package/navigationtabs.Dp7D2fnc.js +9 -0
- package/notification.B-norGiB.js +10 -0
- package/{numberindicator.Ddf3ESi7.js → numberindicator.BdnPMogE.js} +2 -2
- package/{optioncheckbox.DqfXuPdi.js → optioncheckbox.nBVwGv6c.js} +3 -3
- package/package.json +41 -50
- package/partials/index.js +56 -50
- package/partials/lib/partials.d.ts +1 -1
- package/popover.DFVDZY-m.js +12 -0
- package/{radio.7_N_alaS.js → radio.DHUfSPai.js} +2 -2
- package/radiogroup.DaThoMfq.js +11 -0
- package/scroller.Cu7H_VCT.js +98 -0
- package/select.CMdKf7tC.js +13 -0
- package/{skiptocontent.BSCde5hT.js → skiptocontent.CHVh0hbr.js} +4 -4
- package/slider.C5dK6KcG.js +11 -0
- package/{spinner.BUjhjAvw.js → spinner.C9qCeq0R.js} +18 -18
- package/step.DKf4CHGr.js +82 -0
- package/step.d.ts +6 -0
- package/stepper.CCP_igpJ.js +16 -0
- package/stepper.d.ts +2 -0
- package/{switch.D7BCfyyZ.js → switch.Bqdyzi2E.js} +5 -5
- package/systemfeedback.O7tj1juR.js +10 -0
- package/tablist.DZgo49nZ.js +209 -0
- package/{tabpane.CB-eudyw.js → tabpane.C4nsUlwc.js} +2 -2
- package/tabs.BkoT7feH.js +11 -0
- package/text.cLv2PhjQ.js +10 -0
- package/textarea.DMn20z4p.js +13 -0
- package/{title.Bz_k5Vda.js → title.DuLPB-VK.js} +2 -2
- package/toast.Dvs8woTH.js +11 -0
- package/toastmanager.pi_Fhd5t.js +89 -0
- package/tooltip.QJe_bfO-.js +178 -0
- package/topbar.Bxwvp9Lf.js +12 -0
- package/types/icon-types.d.ts +1 -1
- package/utils/index.d.ts +1 -0
- package/utils/mergeRefs.d.ts +5 -0
- package/utils/mergeRefs.test.d.ts +1 -0
- package/accordion.HfUSDwQJ.js +0 -12
- package/actionbutton.kgd0E_xF.js +0 -12
- package/actionlink.CwC42RWc.js +0 -12
- package/assets/Accordion.BJb4TOG0.css +0 -1
- package/assets/Button.Dw8H5nFS.css +0 -1
- package/assets/Checkbox.BKHQN_tu.css +0 -1
- package/assets/CustomReactSelect.DGIItWIh.css +0 -1
- package/assets/Dialog.CGAg7bnN.css +0 -1
- package/assets/Drawer.VOvWQoEr.css +0 -1
- package/assets/InputFile.CCQxsulT.css +0 -1
- package/assets/InputPassword.124xVOiO.css +0 -1
- package/assets/InputSearch.Bkg-1urJ.css +0 -1
- package/assets/InputStepper.DvFJk1Mi.css +0 -1
- package/assets/LinkButton.xMvg_ojf.css +0 -1
- package/assets/Notification.BOuaA5GT.css +0 -1
- package/assets/Select.C1gWF32A.css +0 -1
- package/assets/Slider.Bidyhb-B.css +0 -1
- package/assets/Textarea.Dq4rH9Tg.css +0 -1
- package/assets/Toast.CJ1zhDIT.css +0 -1
- package/assets/buttonround.Cw9hnUan.css +0 -1
- package/assets/input.CUjGh-UM.css +0 -1
- package/assets/switch.Bc9KIyw9.css +0 -1
- package/breadcrumb.BsQm0kUD.js +0 -11
- package/button.Dyy6ajX6.js +0 -13
- package/checkbox.BNnp4ztM.js +0 -12
- package/checkboxgroup.BTVnKenc.js +0 -9
- package/chip.C7NstOHt.js +0 -12
- package/chipgroup.Zo1-IOCn.js +0 -210
- package/chunks/Accordion.CnqryAUu.js +0 -170
- package/chunks/Checkbox.CiwriItT.js +0 -88
- package/chunks/Dialog.Bv7k55He.js +0 -135
- package/chunks/Drawer.BVTvx276.js +0 -140
- package/chunks/Header.um5MlziB.js +0 -377
- package/chunks/InputFile.bVWWdePn.js +0 -220
- package/chunks/InputSearch.GOYqFCcZ.js +0 -174
- package/chunks/InputStepper.BuhPtfl-.js +0 -268
- package/chunks/MegaMenu._o3nNDAa.js +0 -192
- package/chunks/NavigationTabList.DuT7gzhj.js +0 -57
- package/chunks/Notification.Pts2oh0R.js +0 -92
- package/chunks/Popover.BRR8YZ-P.js +0 -228
- package/chunks/Select.D2ehd4yN.js +0 -162
- package/chunks/Tabs.C8ADTzJ0.js +0 -83
- package/chunks/Textarea.Cw85sxHL.js +0 -163
- package/chunks/Toast.DG3WVvau.js +0 -76
- package/chunks/file-type-doc.DlovDOBh.js +0 -10
- package/chunks/floating-ui.dom.VgHc0h4l.js +0 -989
- package/chunks/floating-ui.react.DCyAzlZ4.js +0 -2011
- package/chunks/helpers.BbWkXTr3.js +0 -37
- package/chunks/petrol.Du6qAgp0.js +0 -10
- package/chunks/upload.ZImTAIgx.js +0 -10
- package/chunks/useBreakpoint.CMOR9ZOB.js +0 -44
- package/combobox.orZ3z8CB.js +0 -60
- package/components/InputStepper/InputStepper.utils.d.ts +0 -13
- package/customreactselect.Np-RpzvU.js +0 -14
- package/dialog.D4rcbW6A.js +0 -10
- package/drawer.BCCB3Rkj.js +0 -10
- package/fieldset.ZLs9IGpE.js +0 -11
- package/header.DUbn3BZt.js +0 -12
- package/icon.CHVAZr5T.js +0 -9
- package/input.DG20x6gh.js +0 -203
- package/inputfile.Dc56lQ4t.js +0 -17
- package/inputpassword.znFHRLsI.js +0 -13
- package/inputsearch.B1G6rfVk.js +0 -14
- package/inputstepper.d.ts +0 -2
- package/inputstepper.o6rdM_CW.js +0 -16
- package/linkbutton.DU8Ih8ZF.js +0 -12
- package/megamenu.CPH8EeFF.js +0 -12
- package/navigationtablist.C0iwsAad.js +0 -9
- package/navigationtabs.JjJtbuUe.js +0 -9
- package/notification.Ds_Q7ifk.js +0 -10
- package/popover.B72W0OvU.js +0 -12
- package/radiogroup.C_3IcNBq.js +0 -11
- package/scroller.CQxmQU6U.js +0 -123
- package/select.Ceyt-zvu.js +0 -13
- package/slider.Dq2dcziy.js +0 -11
- package/systemfeedback.CSdWOWuf.js +0 -10
- package/tablist.V7DBklhE.js +0 -256
- package/tabs.DQNLPAEN.js +0 -11
- package/text.ZOUuesnU.js +0 -10
- package/textarea.CixKeQBp.js +0 -13
- package/toast.D8QprMCa.js +0 -11
- package/toastmanager.BSVjYsg9.js +0 -116
- package/tooltip.CUCSRXd3.js +0 -191
- package/topbar.CVhJy-Br.js +0 -12
- /package/components/{InputStepper/InputStepper.test.d.ts → InputNumber/InputNumber.test.d.ts} +0 -0
- /package/components/{InputStepper/InputStepper.utils.test.d.ts → InputNumber/InputNumberutils.test.d.ts} +0 -0
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { jsx as t, jsxs as g, Fragment as m } from "react/jsx-runtime";
|
|
3
|
-
import { isValidElement as h, cloneElement as f } from "react";
|
|
4
|
-
import { D as B } from "./Icon.NSsVrYeq.js";
|
|
5
|
-
import { NumberIndicator as N } from "../numberindicator.Ddf3ESi7.js";
|
|
6
|
-
import '../assets/NavigationTabList.CFlVhUzS.css';const W = "ds-tabs_tabs-wrapper_ccgp4_1", w = "ds-tabs_scroll-wrapper_ccgp4_6", D = "ds-tabs_scroller_ccgp4_17", j = "ds-tabs_scroller--centered_ccgp4_28", v = "ds-tabs_tab_ccgp4_1", y = "ds-tabs_scroll-button_ccgp4_105", E = "ds-tabs_scroll-button--hidden_ccgp4_110", H = "ds-tabs_scroll-button--right_ccgp4_114", L = "ds-tabs_indicator_ccgp4_126", R = {
|
|
7
|
-
tabsWrapper: W,
|
|
8
|
-
scrollWrapper: w,
|
|
9
|
-
scroller: D,
|
|
10
|
-
scrollerCentered: j,
|
|
11
|
-
tab: v,
|
|
12
|
-
scrollButton: y,
|
|
13
|
-
scrollButtonHidden: E,
|
|
14
|
-
scrollButtonRight: H,
|
|
15
|
-
indicator: L
|
|
16
|
-
}, S = ({
|
|
17
|
-
tabs: n,
|
|
18
|
-
tabRefs: i,
|
|
19
|
-
scrollerClass: p,
|
|
20
|
-
scrollerRef: _,
|
|
21
|
-
selectedTabIndex: o,
|
|
22
|
-
handleNavigationKeydown: d,
|
|
23
|
-
setSelectedTab: b
|
|
24
|
-
}) => /* @__PURE__ */ t("ul", { className: p, ref: _, children: n.map(({
|
|
25
|
-
id: l,
|
|
26
|
-
linkComponent: r,
|
|
27
|
-
iconName: a,
|
|
28
|
-
numberIndicatorValue: e
|
|
29
|
-
}, s) => {
|
|
30
|
-
if (!h(r))
|
|
31
|
-
return null;
|
|
32
|
-
const u = f(r, {
|
|
33
|
-
// Add aria-current to the selected tab (https://www.w3.org/WAI/ARIA/apg/patterns/breadcrumb/examples/breadcrumb/)
|
|
34
|
-
"aria-current": o === s ? "page" : void 0,
|
|
35
|
-
children: /* @__PURE__ */ g(m, { children: [
|
|
36
|
-
a && /* @__PURE__ */ t(B, { name: a, "aria-hidden": "true" }),
|
|
37
|
-
r.props.children,
|
|
38
|
-
e && /* @__PURE__ */ t(N, { label: e })
|
|
39
|
-
] }),
|
|
40
|
-
className: R.tab,
|
|
41
|
-
id: l,
|
|
42
|
-
tabIndex: o === s ? 0 : -1,
|
|
43
|
-
// onKeyDown for focus handling and keyboard navigation
|
|
44
|
-
onKeyDown: (c) => d(c, s),
|
|
45
|
-
onClick: () => {
|
|
46
|
-
r.props.onClick && r.props.onClick(), b(s);
|
|
47
|
-
},
|
|
48
|
-
ref: (c) => {
|
|
49
|
-
i.current[s] = c;
|
|
50
|
-
}
|
|
51
|
-
});
|
|
52
|
-
return /* @__PURE__ */ t("li", { children: u }, l);
|
|
53
|
-
}) });
|
|
54
|
-
export {
|
|
55
|
-
S as N,
|
|
56
|
-
R as s
|
|
57
|
-
};
|
|
@@ -1,92 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { jsx as p, jsxs as F } from "react/jsx-runtime";
|
|
3
|
-
import { d as R } from "./index.CgTHIF3K.js";
|
|
4
|
-
import { c as k } from "./index.CEyLAtio.js";
|
|
5
|
-
import { D as W } from "./Button.Cf1CKq8N.js";
|
|
6
|
-
import { D as y } from "./Icon.NSsVrYeq.js";
|
|
7
|
-
import '../assets/Notification.BOuaA5GT.css';const L = "ds-notification_root_1jsx7_1", P = "ds-notification_root--success_1jsx7_26", V = "ds-notification_root--error_1jsx7_30", z = "ds-notification_root--warning_1jsx7_34", Y = "ds-notification_root--hide-icon_1jsx7_38", $ = "ds-notification_content_1jsx7_52", q = "ds-notification_content--hide-close-button_1jsx7_59", G = "ds-notification_content--hide-icon_1jsx7_62", J = "ds-notification_icon_1jsx7_66", K = "ds-notification_message_1jsx7_70", M = "ds-notification_custom-action-area_1jsx7_167", s = {
|
|
8
|
-
root: L,
|
|
9
|
-
rootSuccess: P,
|
|
10
|
-
rootError: V,
|
|
11
|
-
rootWarning: z,
|
|
12
|
-
rootHideIcon: Y,
|
|
13
|
-
content: $,
|
|
14
|
-
contentHideCloseButton: q,
|
|
15
|
-
contentHideIcon: G,
|
|
16
|
-
icon: J,
|
|
17
|
-
message: K,
|
|
18
|
-
customActionArea: M
|
|
19
|
-
}, no = ["success", "error", "warning", "info"], Q = {
|
|
20
|
-
success: "circle-check-colored",
|
|
21
|
-
error: "diamond-exclamationmark-colored",
|
|
22
|
-
warning: "triangle-exclamationmark-colored",
|
|
23
|
-
info: "circle-info-colored"
|
|
24
|
-
}, U = {
|
|
25
|
-
error: "alert",
|
|
26
|
-
warning: "alert",
|
|
27
|
-
info: "status",
|
|
28
|
-
success: "status"
|
|
29
|
-
}, eo = (v) => {
|
|
30
|
-
const o = R.c(47);
|
|
31
|
-
let i, r, a, c, n, l, N, h;
|
|
32
|
-
o[0] !== v ? ({
|
|
33
|
-
children: i,
|
|
34
|
-
variant: N,
|
|
35
|
-
className: r,
|
|
36
|
-
closeButtonProps: a,
|
|
37
|
-
customActionArea: c,
|
|
38
|
-
hideIcon: h,
|
|
39
|
-
onClose: n,
|
|
40
|
-
...l
|
|
41
|
-
} = v, o[0] = v, o[1] = i, o[2] = r, o[3] = a, o[4] = c, o[5] = n, o[6] = l, o[7] = N, o[8] = h) : (i = o[1], r = o[2], a = o[3], c = o[4], n = o[5], l = o[6], N = o[7], h = o[8]);
|
|
42
|
-
const e = N === void 0 ? "info" : N, t = h === void 0 ? !1 : h;
|
|
43
|
-
let d;
|
|
44
|
-
o[9] !== a ? (d = a || {}, o[9] = a, o[10] = d) : d = o[10];
|
|
45
|
-
let _, A;
|
|
46
|
-
o[11] !== d ? ({
|
|
47
|
-
label: A,
|
|
48
|
-
..._
|
|
49
|
-
} = d, o[11] = d, o[12] = _, o[13] = A) : (_ = o[12], A = o[13]);
|
|
50
|
-
const H = A === void 0 ? "Close notification" : A, S = e === "success", O = e === "error", T = e === "warning", B = e === "info";
|
|
51
|
-
let g;
|
|
52
|
-
o[14] !== r || o[15] !== t || o[16] !== S || o[17] !== O || o[18] !== T || o[19] !== B ? (g = k(s.root, r, {
|
|
53
|
-
[s.rootSuccess]: S,
|
|
54
|
-
[s.rootError]: O,
|
|
55
|
-
[s.rootWarning]: T,
|
|
56
|
-
[s.rootInfo]: B,
|
|
57
|
-
[s.rootHideIcon]: t
|
|
58
|
-
}), o[14] = r, o[15] = t, o[16] = S, o[17] = O, o[18] = T, o[19] = B, o[20] = g) : g = o[20];
|
|
59
|
-
const D = g, b = !n;
|
|
60
|
-
let j;
|
|
61
|
-
o[21] !== t || o[22] !== b ? (j = k(s.content, {
|
|
62
|
-
[s.contentHideCloseButton]: b,
|
|
63
|
-
[s.contentHideIcon]: t
|
|
64
|
-
}), o[21] = t, o[22] = b, o[23] = j) : j = o[23];
|
|
65
|
-
const w = j, E = U[e];
|
|
66
|
-
let f;
|
|
67
|
-
o[24] !== t || o[25] !== e ? (f = !t && /* @__PURE__ */ p(y, { name: Q[e], className: s.icon, "aria-hidden": "true" }), o[24] = t, o[25] = e, o[26] = f) : f = o[26];
|
|
68
|
-
let m;
|
|
69
|
-
o[27] !== i ? (m = /* @__PURE__ */ p("div", { className: s.message, children: i }), o[27] = i, o[28] = m) : m = o[28];
|
|
70
|
-
let u;
|
|
71
|
-
o[29] !== H || o[30] !== n || o[31] !== _ ? (u = n && /* @__PURE__ */ p(W, { ..._, hideLabel: !0, iconName: "cross", isFlush: !0, variant: "ghost", size: "small", onClick: n, type: "button", children: H }), o[29] = H, o[30] = n, o[31] = _, o[32] = u) : u = o[32];
|
|
72
|
-
let I;
|
|
73
|
-
o[33] !== w || o[34] !== f || o[35] !== m || o[36] !== u ? (I = /* @__PURE__ */ F("div", { className: w, children: [
|
|
74
|
-
f,
|
|
75
|
-
m,
|
|
76
|
-
u
|
|
77
|
-
] }), o[33] = w, o[34] = f, o[35] = m, o[36] = u, o[37] = I) : I = o[37];
|
|
78
|
-
let x;
|
|
79
|
-
o[38] !== c || o[39] !== t ? (x = c && /* @__PURE__ */ p("div", { className: k({
|
|
80
|
-
[s.customActionArea]: !t
|
|
81
|
-
}), children: c }), o[38] = c, o[39] = t, o[40] = x) : x = o[40];
|
|
82
|
-
let C;
|
|
83
|
-
return o[41] !== l || o[42] !== D || o[43] !== E || o[44] !== I || o[45] !== x ? (C = /* @__PURE__ */ F("div", { className: D, ...l, role: E, children: [
|
|
84
|
-
I,
|
|
85
|
-
x
|
|
86
|
-
] }), o[41] = l, o[42] = D, o[43] = E, o[44] = I, o[45] = x, o[46] = C) : C = o[46], C;
|
|
87
|
-
};
|
|
88
|
-
export {
|
|
89
|
-
eo as D,
|
|
90
|
-
no as N,
|
|
91
|
-
Q as a
|
|
92
|
-
};
|
|
@@ -1,228 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { jsx as _, jsxs as M, Fragment as U } from "react/jsx-runtime";
|
|
3
|
-
import { d as V } from "./index.CgTHIF3K.js";
|
|
4
|
-
import { useState as W, useRef as L, useMemo as z, createContext as q, forwardRef as T, isValidElement as J, cloneElement as K, useContext as Q } from "react";
|
|
5
|
-
import { u as X, o as Y, i as Z, s as ee, j as oe, a as te, b as se, c as re, d as ne, e as O, f as ae, k as le, g as ie, F as ce } from "./floating-ui.react.DCyAzlZ4.js";
|
|
6
|
-
import { c as G } from "./index.CEyLAtio.js";
|
|
7
|
-
import { g as R, c as k } from "./helpers.BbWkXTr3.js";
|
|
8
|
-
import { D as pe } from "./Button.Cf1CKq8N.js";
|
|
9
|
-
import { a as de } from "./floating-ui.dom.VgHc0h4l.js";
|
|
10
|
-
import '../assets/Popover.CXyUaXiO.css';const fe = "ds-popover_popover_xg81f_5", he = "ds-popover_popover--no-arrow_xg81f_64", ue = "ds-popover_popover--variant-grey_xg81f_67", ve = "ds-popover_arrow_xg81f_71", me = "ds-popover_arrow--variant-grey_xg81f_90", ge = "ds-popover_default-anchor_xg81f_107", E = {
|
|
11
|
-
popover: fe,
|
|
12
|
-
popoverNoArrow: he,
|
|
13
|
-
popoverVariantGrey: ue,
|
|
14
|
-
arrow: ve,
|
|
15
|
-
arrowVariantGrey: me,
|
|
16
|
-
defaultAnchor: ge
|
|
17
|
-
}, we = ({
|
|
18
|
-
initialOpen: n = !1,
|
|
19
|
-
placement: o = "bottom",
|
|
20
|
-
isOpen: e,
|
|
21
|
-
popoverOffset: t = 6,
|
|
22
|
-
showArrow: s = !0,
|
|
23
|
-
variant: h = "default",
|
|
24
|
-
defaultAnchorButtonProps: a,
|
|
25
|
-
onOpenChange: i
|
|
26
|
-
} = {}) => {
|
|
27
|
-
const [l, f] = W(n), c = e ?? l, r = i ?? f, p = L(null), u = X({
|
|
28
|
-
placement: o,
|
|
29
|
-
open: c,
|
|
30
|
-
strategy: "fixed",
|
|
31
|
-
onOpenChange: r,
|
|
32
|
-
whileElementsMounted: de,
|
|
33
|
-
middleware: [Y(t + (s ? 7 : 0)), Z({
|
|
34
|
-
// default configuration taken from https://floating-ui.com/docs/flip
|
|
35
|
-
crossAxis: o.includes("-"),
|
|
36
|
-
fallbackAxisSideDirection: "end",
|
|
37
|
-
padding: t
|
|
38
|
-
}), ee({
|
|
39
|
-
padding: t
|
|
40
|
-
}), ...s ? [oe({
|
|
41
|
-
element: p
|
|
42
|
-
})] : []]
|
|
43
|
-
}), d = u.context, v = te(d, {
|
|
44
|
-
enabled: !0
|
|
45
|
-
}), P = se(d), D = re(d), S = ne([v, P, D]);
|
|
46
|
-
return z(() => ({
|
|
47
|
-
open: c,
|
|
48
|
-
popoverOffset: t,
|
|
49
|
-
setOpen: r,
|
|
50
|
-
arrowRef: p,
|
|
51
|
-
showArrow: s,
|
|
52
|
-
defaultAnchorButtonProps: a,
|
|
53
|
-
variant: h,
|
|
54
|
-
...S,
|
|
55
|
-
...u
|
|
56
|
-
}), [c, t, r, p, s, a, h, S, u]);
|
|
57
|
-
}, Pe = ({
|
|
58
|
-
children: n,
|
|
59
|
-
hasContent: o,
|
|
60
|
-
hasAnchor: e
|
|
61
|
-
}) => {
|
|
62
|
-
if (!n)
|
|
63
|
-
throw new Error(R("DSPopover", "A DSPopover must have children."));
|
|
64
|
-
if (!o && e)
|
|
65
|
-
throw new Error(R("DSPopover", "A DSPopover must either have no child components for its most basic usage or have both a <DSPopover.Content> and <DSPopover.Anchor> component as a child. <DSPopover.Content> is missing! Please add it to the children of DSPopover."));
|
|
66
|
-
if (!e && o)
|
|
67
|
-
throw new Error(R("DSPopover", "A DSPopover must either have no child components for its most basic usage or have both a <DSPopover.Content> and <DSPopover.Anchor> component as a child. <DSPopover.Anchor> is missing! Please add it to the children of DSPopover."));
|
|
68
|
-
}, De = ({
|
|
69
|
-
showArrow: n,
|
|
70
|
-
variant: o
|
|
71
|
-
}) => {
|
|
72
|
-
o === "grey" && n === !1 && console.warn(R("DSPopover", "The 'grey' variant is only available when 'showArrow' is true. To use the 'grey' variant, please ensure that 'showArrow' is set to true."));
|
|
73
|
-
}, H = q(null), I = () => {
|
|
74
|
-
const n = Q(H);
|
|
75
|
-
if (n == null)
|
|
76
|
-
throw new Error(R("DSPopover", "Components like DSPopover.Anchor or DSPopover.Content must be wrapped in <DSPopover />."));
|
|
77
|
-
return n;
|
|
78
|
-
}, y = (n) => {
|
|
79
|
-
const o = V.c(20);
|
|
80
|
-
let e, t;
|
|
81
|
-
o[0] !== n ? ({
|
|
82
|
-
children: e,
|
|
83
|
-
...t
|
|
84
|
-
} = n, o[0] = n, o[1] = e, o[2] = t) : (e = o[1], t = o[2]);
|
|
85
|
-
let s;
|
|
86
|
-
o[3] !== t ? (s = {
|
|
87
|
-
...t
|
|
88
|
-
}, o[3] = t, o[4] = s) : s = o[4];
|
|
89
|
-
const h = we(s);
|
|
90
|
-
let a, i;
|
|
91
|
-
o[5] !== e || o[6] !== t ? (i = k(e, y.Content), a = k(e, y.Anchor), process.env.NODE_ENV !== "production" && (Pe({
|
|
92
|
-
children: e,
|
|
93
|
-
hasContent: i,
|
|
94
|
-
hasAnchor: a
|
|
95
|
-
}), De({
|
|
96
|
-
showArrow: t.showArrow,
|
|
97
|
-
variant: t.variant
|
|
98
|
-
})), o[5] = e, o[6] = t, o[7] = a, o[8] = i) : (a = o[7], i = o[8]);
|
|
99
|
-
const l = !i && !a && e !== null;
|
|
100
|
-
let f;
|
|
101
|
-
o[9] !== e || o[10] !== l ? (f = l ? /* @__PURE__ */ M(U, { children: [
|
|
102
|
-
/* @__PURE__ */ _(y.Anchor, {}),
|
|
103
|
-
/* @__PURE__ */ _(y.Content, { children: e })
|
|
104
|
-
] }) : e, o[9] = e, o[10] = l, o[11] = f) : f = o[11];
|
|
105
|
-
const c = f, r = i || l, p = a || l;
|
|
106
|
-
let m;
|
|
107
|
-
o[12] !== h || o[13] !== r || o[14] !== p ? (m = {
|
|
108
|
-
...h,
|
|
109
|
-
hasContent: r,
|
|
110
|
-
hasAnchor: p
|
|
111
|
-
}, o[12] = h, o[13] = r, o[14] = p, o[15] = m) : m = o[15];
|
|
112
|
-
const u = m;
|
|
113
|
-
let d;
|
|
114
|
-
return o[16] !== c || o[17] !== u || o[18] !== t ? (d = /* @__PURE__ */ _(H.Provider, { value: u, ...t, children: c }), o[16] = c, o[17] = u, o[18] = t, o[19] = d) : d = o[19], d;
|
|
115
|
-
}, $ = T((n, o) => {
|
|
116
|
-
const e = V.c(28);
|
|
117
|
-
let t, s;
|
|
118
|
-
e[0] !== n ? ({
|
|
119
|
-
children: t,
|
|
120
|
-
...s
|
|
121
|
-
} = n, e[0] = n, e[1] = t, e[2] = s) : (t = e[1], s = e[2]);
|
|
122
|
-
const {
|
|
123
|
-
context: h,
|
|
124
|
-
defaultAnchorButtonProps: a,
|
|
125
|
-
refs: i,
|
|
126
|
-
hasAnchor: l,
|
|
127
|
-
getReferenceProps: f
|
|
128
|
-
} = I();
|
|
129
|
-
let c;
|
|
130
|
-
e[3] !== a ? (c = a || {}, e[3] = a, e[4] = c) : c = e[4];
|
|
131
|
-
let r, p;
|
|
132
|
-
e[5] !== c ? ({
|
|
133
|
-
label: p,
|
|
134
|
-
...r
|
|
135
|
-
} = c, e[5] = c, e[6] = r, e[7] = p) : (r = e[6], p = e[7]);
|
|
136
|
-
const m = p === void 0 ? "Toggle popover" : p, u = t ? t == null ? void 0 : t.ref : null;
|
|
137
|
-
let d;
|
|
138
|
-
e[8] !== u || e[9] !== o || e[10] !== i.setReference ? (d = [i.setReference, o, u], e[8] = u, e[9] = o, e[10] = i.setReference, e[11] = d) : d = e[11];
|
|
139
|
-
const v = O(d);
|
|
140
|
-
if (l && t && J(t)) {
|
|
141
|
-
const A = t.props, x = h.open ? "open" : "closed";
|
|
142
|
-
let w;
|
|
143
|
-
return e[12] !== t || e[13] !== f || e[14] !== s || e[15] !== v || e[16] !== A || e[17] !== x ? (w = K(t, f({
|
|
144
|
-
ref: v,
|
|
145
|
-
...s,
|
|
146
|
-
...A,
|
|
147
|
-
"data-state": x
|
|
148
|
-
})), e[12] = t, e[13] = f, e[14] = s, e[15] = v, e[16] = A, e[17] = x, e[18] = w) : w = e[18], w;
|
|
149
|
-
}
|
|
150
|
-
const P = h.open ? "open" : "closed";
|
|
151
|
-
let D;
|
|
152
|
-
e[19] !== f || e[20] !== s ? (D = f(s), e[19] = f, e[20] = s, e[21] = D) : D = e[21];
|
|
153
|
-
const S = t ?? m;
|
|
154
|
-
let g;
|
|
155
|
-
return e[22] !== v || e[23] !== r || e[24] !== P || e[25] !== D || e[26] !== S ? (g = /* @__PURE__ */ _(pe, { ...r, ref: v, type: "button", "data-state": P, ...D, size: "small", hideLabel: !0, iconName: "circle-info-inverted", variant: "ghost", className: E.defaultAnchor, children: S }), e[22] = v, e[23] = r, e[24] = P, e[25] = D, e[26] = S, e[27] = g) : g = e[27], g;
|
|
156
|
-
});
|
|
157
|
-
$.displayName = "DSPopover.Anchor";
|
|
158
|
-
const j = T((n, o) => {
|
|
159
|
-
const e = V.c(38);
|
|
160
|
-
let t, s, h, a, i;
|
|
161
|
-
e[0] !== n ? ({
|
|
162
|
-
style: i,
|
|
163
|
-
className: s,
|
|
164
|
-
classNameArrow: h,
|
|
165
|
-
children: t,
|
|
166
|
-
...a
|
|
167
|
-
} = n, e[0] = n, e[1] = t, e[2] = s, e[3] = h, e[4] = a, e[5] = i) : (t = e[1], s = e[2], h = e[3], a = e[4], i = e[5]);
|
|
168
|
-
const {
|
|
169
|
-
context: l,
|
|
170
|
-
refs: f,
|
|
171
|
-
floatingStyles: c,
|
|
172
|
-
showArrow: r,
|
|
173
|
-
variant: p,
|
|
174
|
-
getFloatingProps: m,
|
|
175
|
-
arrowRef: u
|
|
176
|
-
} = I();
|
|
177
|
-
let d;
|
|
178
|
-
e[6] !== o || e[7] !== f.setFloating ? (d = [f.setFloating, o], e[6] = o, e[7] = f.setFloating, e[8] = d) : d = e[8];
|
|
179
|
-
const v = O(d);
|
|
180
|
-
let P;
|
|
181
|
-
e[9] === Symbol.for("react.memo_cache_sentinel") ? (P = {
|
|
182
|
-
duration: {
|
|
183
|
-
open: 250,
|
|
184
|
-
close: 250
|
|
185
|
-
}
|
|
186
|
-
}, e[9] = P) : P = e[9];
|
|
187
|
-
const {
|
|
188
|
-
isMounted: D,
|
|
189
|
-
status: S
|
|
190
|
-
} = ae(l, P);
|
|
191
|
-
if (!D)
|
|
192
|
-
return null;
|
|
193
|
-
let g;
|
|
194
|
-
e[10] !== c || e[11] !== i ? (g = {
|
|
195
|
-
...c,
|
|
196
|
-
...i
|
|
197
|
-
}, e[10] = c, e[11] = i, e[12] = g) : g = e[12];
|
|
198
|
-
const A = !r, x = p === "grey" && r;
|
|
199
|
-
let w;
|
|
200
|
-
e[13] !== s || e[14] !== A || e[15] !== x ? (w = G(E.popover, s, {
|
|
201
|
-
[E.popoverNoArrow]: A,
|
|
202
|
-
[E.popoverVariantGrey]: x
|
|
203
|
-
}), e[13] = s, e[14] = A, e[15] = x, e[16] = w) : w = e[16];
|
|
204
|
-
const B = l.placement;
|
|
205
|
-
let C;
|
|
206
|
-
e[17] !== m || e[18] !== a ? (C = m(a), e[17] = m, e[18] = a, e[19] = C) : C = e[19];
|
|
207
|
-
let b;
|
|
208
|
-
e[20] !== u || e[21] !== h || e[22] !== l || e[23] !== r || e[24] !== p ? (b = r && /* @__PURE__ */ _(le, { ref: u, context: l, className: G(E.arrow, h, {
|
|
209
|
-
[E.arrowVariantGrey]: p === "grey" && r
|
|
210
|
-
}), strokeWidth: 1, tipRadius: 1, width: 16, height: 7 }), e[20] = u, e[21] = h, e[22] = l, e[23] = r, e[24] = p, e[25] = b) : b = e[25];
|
|
211
|
-
let N;
|
|
212
|
-
e[26] !== t || e[27] !== l.placement || e[28] !== v || e[29] !== S || e[30] !== g || e[31] !== w || e[32] !== C || e[33] !== b ? (N = /* @__PURE__ */ M("div", { ref: v, style: g, className: w, "data-placement": B, "data-status": S, ...C, children: [
|
|
213
|
-
b,
|
|
214
|
-
t
|
|
215
|
-
] }), e[26] = t, e[27] = l.placement, e[28] = v, e[29] = S, e[30] = g, e[31] = w, e[32] = C, e[33] = b, e[34] = N) : N = e[34];
|
|
216
|
-
let F;
|
|
217
|
-
return e[35] !== l || e[36] !== N ? (F = /* @__PURE__ */ _(ie, { children: /* @__PURE__ */ _(ce, { context: l, modal: !1, children: N }) }), e[35] = l, e[36] = N, e[37] = F) : F = e[37], F;
|
|
218
|
-
});
|
|
219
|
-
j.displayName = "DSPopover.Content";
|
|
220
|
-
y.Anchor = $;
|
|
221
|
-
y.Content = j;
|
|
222
|
-
y.displayName = "DSPopover";
|
|
223
|
-
export {
|
|
224
|
-
y as D,
|
|
225
|
-
De as a,
|
|
226
|
-
we as u,
|
|
227
|
-
Pe as v
|
|
228
|
-
};
|
|
@@ -1,162 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { jsx as v, jsxs as ge } from "react/jsx-runtime";
|
|
3
|
-
import { d as xe } from "./index.CgTHIF3K.js";
|
|
4
|
-
import { c as he } from "./index.CEyLAtio.js";
|
|
5
|
-
import { forwardRef as Be, useRef as Fe, useState as Ee, useEffect as He } from "react";
|
|
6
|
-
import { u as Re } from "./useBreakpoint.CMOR9ZOB.js";
|
|
7
|
-
import { Asterisk as je } from "../asterisk.CR60hx8S.js";
|
|
8
|
-
import { D as We } from "./Icon.NSsVrYeq.js";
|
|
9
|
-
import { D as ze } from "./SystemFeedback.CyGbUCzT.js";
|
|
10
|
-
import { g as me, r as Me } from "./helpers.BbWkXTr3.js";
|
|
11
|
-
import '../assets/Select.C1gWF32A.css';const Te = "ds-select_root_17q4p_1", Oe = "ds-select_hint_17q4p_10", Ze = "ds-select_label_17q4p_10", Je = "ds-select_label--hidden_17q4p_131", Ke = "ds-select_label--disabled_17q4p_144", Qe = "ds-select_feedback_17q4p_164", Ue = "ds-select_select-wrapper_17q4p_169", Xe = "ds-select_select_17q4p_169", Ye = "ds-select_select--small_17q4p_183", Ge = "ds-select_select--invalid_17q4p_295", el = "ds-select_select--placeholder_17q4p_410", ll = "ds-select_chevron_17q4p_449", tl = "ds-select_chevron--small_17q4p_453", sl = "ds-select_chevron--disabled_17q4p_456", t = {
|
|
12
|
-
root: Te,
|
|
13
|
-
hint: Oe,
|
|
14
|
-
label: Ze,
|
|
15
|
-
labelHidden: Je,
|
|
16
|
-
labelDisabled: Ke,
|
|
17
|
-
feedback: Qe,
|
|
18
|
-
selectWrapper: Ue,
|
|
19
|
-
select: Xe,
|
|
20
|
-
selectSmall: Ye,
|
|
21
|
-
selectInvalid: Ge,
|
|
22
|
-
selectPlaceholder: el,
|
|
23
|
-
chevron: ll,
|
|
24
|
-
chevronSmall: tl,
|
|
25
|
-
chevronDisabled: sl
|
|
26
|
-
}, _l = ["medium", "small"], al = ({
|
|
27
|
-
id: n,
|
|
28
|
-
label: s,
|
|
29
|
-
options: e
|
|
30
|
-
}) => {
|
|
31
|
-
if (!n)
|
|
32
|
-
throw new Error(me("DSSelect", 'A unique "id" prop is required. Please add a unique "id" prop to the DSSelect component.'));
|
|
33
|
-
if (!s)
|
|
34
|
-
throw new Error(me("DSSelect", `A label is always required for a11y reasons. Please add a descriptive "label" prop to the DSSelect component. If you don't want to display a label, set hideLabel={true}.`));
|
|
35
|
-
if (Array.isArray(e)) {
|
|
36
|
-
if (e.length === 0)
|
|
37
|
-
throw new Error(me("DSSelect", "The options array must not be empty."));
|
|
38
|
-
} else throw new Error(me("DSSelect", Me("options", "DSSelect")));
|
|
39
|
-
}, ol = (n, s, e) => n === "" || s !== void 0 && s !== "" ? !1 : !(e !== void 0 && e !== ""), cl = Be((n, s) => {
|
|
40
|
-
const e = xe.c(127);
|
|
41
|
-
let i, d, r, l, p, f, S, q, a, Z, J, K, Q, U, X, c;
|
|
42
|
-
e[0] !== n ? ({
|
|
43
|
-
id: l,
|
|
44
|
-
label: p,
|
|
45
|
-
options: S,
|
|
46
|
-
className: i,
|
|
47
|
-
defaultValue: d,
|
|
48
|
-
disabled: Z,
|
|
49
|
-
hideLabel: J,
|
|
50
|
-
hint: r,
|
|
51
|
-
invalid: K,
|
|
52
|
-
placeholder: Q,
|
|
53
|
-
required: U,
|
|
54
|
-
size: X,
|
|
55
|
-
systemFeedback: a,
|
|
56
|
-
value: c,
|
|
57
|
-
onChange: f,
|
|
58
|
-
...q
|
|
59
|
-
} = n, e[0] = n, e[1] = i, e[2] = d, e[3] = r, e[4] = l, e[5] = p, e[6] = f, e[7] = S, e[8] = q, e[9] = a, e[10] = Z, e[11] = J, e[12] = K, e[13] = Q, e[14] = U, e[15] = X, e[16] = c) : (i = e[1], d = e[2], r = e[3], l = e[4], p = e[5], f = e[6], S = e[7], q = e[8], a = e[9], Z = e[10], J = e[11], K = e[12], Q = e[13], U = e[14], X = e[15], c = e[16]);
|
|
60
|
-
const b = Z === void 0 ? !1 : Z, Ie = J === void 0 ? !1 : J, o = K === void 0 ? !1 : K, D = Q === void 0 ? "Select" : Q, y = U === void 0 ? !1 : U, le = X === void 0 ? "medium" : X;
|
|
61
|
-
process.env.NODE_ENV !== "production" && al({
|
|
62
|
-
id: l,
|
|
63
|
-
label: p,
|
|
64
|
-
options: S
|
|
65
|
-
});
|
|
66
|
-
const Pe = Fe(null), [ue, we] = Ee(c);
|
|
67
|
-
let te;
|
|
68
|
-
e[17] !== d || e[18] !== D || e[19] !== c ? (te = ol(D, d, c), e[17] = d, e[18] = D, e[19] = c, e[20] = te) : te = e[20];
|
|
69
|
-
const [Y, Ce] = Ee(te);
|
|
70
|
-
let se, ae;
|
|
71
|
-
e[21] !== c ? (se = () => {
|
|
72
|
-
we(c);
|
|
73
|
-
}, ae = [c], e[21] = c, e[22] = se, e[23] = ae) : (se = e[22], ae = e[23]), He(se, ae);
|
|
74
|
-
let oe;
|
|
75
|
-
e[24] !== s ? (oe = (ee) => {
|
|
76
|
-
Pe.current = ee, typeof s == "function" ? s(ee) : s && (s.current = ee);
|
|
77
|
-
}, e[24] = s, e[25] = oe) : oe = e[25];
|
|
78
|
-
const _e = oe, G = Re(Ie), g = `${l}-label`, h = `${l}-feedback`, w = `${l}-hint`, ve = r ? ` ${w}` : "";
|
|
79
|
-
let ce;
|
|
80
|
-
e[26] !== o || e[27] !== a || e[28] !== h ? (ce = [o && a && h].filter(Boolean).join(" ") || void 0, e[26] = o, e[27] = a, e[28] = h, e[29] = ce) : ce = e[29];
|
|
81
|
-
const Se = ce;
|
|
82
|
-
let N, k, E, I, P, C, $, L, V, A, x, B, F, H, R, j, m, u, _;
|
|
83
|
-
if (e[30] !== Se || e[31] !== ve || e[32] !== i || e[33] !== d || e[34] !== b || e[35] !== _e || e[36] !== G || e[37] !== r || e[38] !== w || e[39] !== l || e[40] !== o || e[41] !== Y || e[42] !== p || e[43] !== f || e[44] !== S || e[45] !== D || e[46] !== y || e[47] !== q || e[48] !== g || e[49] !== ue || e[50] !== le || e[51] !== a || e[52] !== h) {
|
|
84
|
-
const ee = (be) => [D && /* @__PURE__ */ v("option", { value: "", children: D }, `${l}-hidden-option-disabled-placeholder`), ...be.map((O) => {
|
|
85
|
-
if ("options" in O) {
|
|
86
|
-
const {
|
|
87
|
-
label: ke,
|
|
88
|
-
options: Ae
|
|
89
|
-
} = O;
|
|
90
|
-
return /* @__PURE__ */ v("optgroup", { label: ke, children: Ae.map(Ne) }, ke);
|
|
91
|
-
} else
|
|
92
|
-
return Ne(O);
|
|
93
|
-
})], Ne = il;
|
|
94
|
-
let re;
|
|
95
|
-
e[72] !== i ? (re = he(t.root, i), e[72] = i, e[73] = re) : re = e[73];
|
|
96
|
-
const $e = re, De = le === "small";
|
|
97
|
-
let ne;
|
|
98
|
-
e[74] !== o || e[75] !== Y || e[76] !== De ? (ne = he(t.select, {
|
|
99
|
-
[t.selectSmall]: De,
|
|
100
|
-
[t.selectInvalid]: o,
|
|
101
|
-
[t.selectPlaceholder]: Y
|
|
102
|
-
}), e[74] = o, e[75] = Y, e[76] = De, e[77] = ne) : ne = e[77];
|
|
103
|
-
const Le = ne;
|
|
104
|
-
let de;
|
|
105
|
-
e[78] !== b || e[79] !== G ? (de = he(t.label, {
|
|
106
|
-
[t.labelHidden]: G,
|
|
107
|
-
[t.labelDisabled]: b
|
|
108
|
-
}), e[78] = b, e[79] = G, e[80] = de) : de = e[80];
|
|
109
|
-
const qe = de, ye = le === "small";
|
|
110
|
-
let pe;
|
|
111
|
-
e[81] !== b || e[82] !== ye ? (pe = he(t.chevron, {
|
|
112
|
-
[t.chevronSmall]: ye,
|
|
113
|
-
[t.chevronDisabled]: b
|
|
114
|
-
}), e[81] = b, e[82] = ye, e[83] = pe) : pe = e[83], N = pe;
|
|
115
|
-
let fe;
|
|
116
|
-
e[84] !== f ? (fe = (be) => {
|
|
117
|
-
const {
|
|
118
|
-
value: O
|
|
119
|
-
} = be.target;
|
|
120
|
-
Ce(O === ""), we(O), f && f(be);
|
|
121
|
-
}, e[84] = f, e[85] = fe) : fe = e[85];
|
|
122
|
-
const Ve = fe;
|
|
123
|
-
j = $e;
|
|
124
|
-
let T;
|
|
125
|
-
e[86] !== y ? (T = y && /* @__PURE__ */ v(je, {}), e[86] = y, e[87] = T) : T = e[87], e[88] !== l || e[89] !== p || e[90] !== qe || e[91] !== g || e[92] !== T ? (m = /* @__PURE__ */ ge("label", { className: qe, id: g, htmlFor: l, children: [
|
|
126
|
-
p,
|
|
127
|
-
T
|
|
128
|
-
] }), e[88] = l, e[89] = p, e[90] = qe, e[91] = g, e[92] = T, e[93] = m) : m = e[93], e[94] !== r || e[95] !== w ? (u = r && /* @__PURE__ */ v("div", { className: t.hint, id: w, children: r }), e[94] = r, e[95] = w, e[96] = u) : u = e[96], e[97] !== o || e[98] !== a || e[99] !== h ? (_ = o && a && /* @__PURE__ */ v(ze, { className: t.feedback, message: a, variant: "error", id: h }), e[97] = o, e[98] = a, e[99] = h, e[100] = _) : _ = e[100], R = t.selectWrapper, k = q, E = l, I = _e, P = Le, C = `${g}${ve}`, $ = Se, L = o, V = d, A = ue, x = b, B = y, F = Ve, H = ee(S), e[30] = Se, e[31] = ve, e[32] = i, e[33] = d, e[34] = b, e[35] = _e, e[36] = G, e[37] = r, e[38] = w, e[39] = l, e[40] = o, e[41] = Y, e[42] = p, e[43] = f, e[44] = S, e[45] = D, e[46] = y, e[47] = q, e[48] = g, e[49] = ue, e[50] = le, e[51] = a, e[52] = h, e[53] = N, e[54] = k, e[55] = E, e[56] = I, e[57] = P, e[58] = C, e[59] = $, e[60] = L, e[61] = V, e[62] = A, e[63] = x, e[64] = B, e[65] = F, e[66] = H, e[67] = R, e[68] = j, e[69] = m, e[70] = u, e[71] = _;
|
|
129
|
-
} else
|
|
130
|
-
N = e[53], k = e[54], E = e[55], I = e[56], P = e[57], C = e[58], $ = e[59], L = e[60], V = e[61], A = e[62], x = e[63], B = e[64], F = e[65], H = e[66], R = e[67], j = e[68], m = e[69], u = e[70], _ = e[71];
|
|
131
|
-
let W;
|
|
132
|
-
e[101] !== k || e[102] !== E || e[103] !== I || e[104] !== P || e[105] !== C || e[106] !== $ || e[107] !== L || e[108] !== V || e[109] !== A || e[110] !== x || e[111] !== B || e[112] !== F || e[113] !== H ? (W = /* @__PURE__ */ v("select", { ...k, id: E, ref: I, className: P, "aria-labelledby": C, "aria-describedby": $, "aria-invalid": L, defaultValue: V, value: A, disabled: x, required: B, onChange: F, children: H }), e[101] = k, e[102] = E, e[103] = I, e[104] = P, e[105] = C, e[106] = $, e[107] = L, e[108] = V, e[109] = A, e[110] = x, e[111] = B, e[112] = F, e[113] = H, e[114] = W) : W = e[114];
|
|
133
|
-
let z;
|
|
134
|
-
e[115] !== N ? (z = /* @__PURE__ */ v(We, { name: "chevron-down", className: N, "aria-hidden": "true" }), e[115] = N, e[116] = z) : z = e[116];
|
|
135
|
-
let M;
|
|
136
|
-
e[117] !== R || e[118] !== W || e[119] !== z ? (M = /* @__PURE__ */ ge("div", { className: R, children: [
|
|
137
|
-
W,
|
|
138
|
-
z
|
|
139
|
-
] }), e[117] = R, e[118] = W, e[119] = z, e[120] = M) : M = e[120];
|
|
140
|
-
let ie;
|
|
141
|
-
return e[121] !== j || e[122] !== m || e[123] !== u || e[124] !== _ || e[125] !== M ? (ie = /* @__PURE__ */ ge("div", { className: j, children: [
|
|
142
|
-
m,
|
|
143
|
-
u,
|
|
144
|
-
_,
|
|
145
|
-
M
|
|
146
|
-
] }), e[121] = j, e[122] = m, e[123] = u, e[124] = _, e[125] = M, e[126] = ie) : ie = e[126], ie;
|
|
147
|
-
});
|
|
148
|
-
cl.displayName = "DSSelect";
|
|
149
|
-
function il(n) {
|
|
150
|
-
const {
|
|
151
|
-
label: s,
|
|
152
|
-
value: e,
|
|
153
|
-
isDisabled: i
|
|
154
|
-
} = n;
|
|
155
|
-
return /* @__PURE__ */ v("option", { value: e, disabled: i, children: s }, e);
|
|
156
|
-
}
|
|
157
|
-
export {
|
|
158
|
-
cl as D,
|
|
159
|
-
_l as S,
|
|
160
|
-
ol as g,
|
|
161
|
-
al as v
|
|
162
|
-
};
|
package/chunks/Tabs.C8ADTzJ0.js
DELETED
|
@@ -1,83 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { jsx as N, jsxs as L } from "react/jsx-runtime";
|
|
3
|
-
import { d as M } from "./index.CgTHIF3K.js";
|
|
4
|
-
import { useState as $ } from "react";
|
|
5
|
-
import { TabList as j } from "../tablist.V7DBklhE.js";
|
|
6
|
-
import { TabPane as B } from "../tabpane.CB-eudyw.js";
|
|
7
|
-
import { g as C } from "./TabPane.utils.DG16Y2uD.js";
|
|
8
|
-
import { g, r as O } from "./helpers.BbWkXTr3.js";
|
|
9
|
-
const J = ["left", "center"], K = ["prev", "next"], _ = ({
|
|
10
|
-
id: T,
|
|
11
|
-
tabs: e,
|
|
12
|
-
defaultSelectedTabIndex: r = 0
|
|
13
|
-
}) => {
|
|
14
|
-
if (!T)
|
|
15
|
-
throw new Error(g("DSTabs", 'A unique "id" prop is required. Please add a unique "id" prop to the DSTabs component.'));
|
|
16
|
-
if (Array.isArray(e)) {
|
|
17
|
-
if (e.length === 0)
|
|
18
|
-
throw new Error(g("DSTabs", "The tabs array must not be empty."));
|
|
19
|
-
} else throw new Error(g("DSTabs", O("tabs", "DSTabs")));
|
|
20
|
-
if (r < 0 || r >= e.length)
|
|
21
|
-
throw new Error(g("DSTabs", `Invalid defaultSelectedTabIndex: ${r}. It must be between 0 and ${e.length - 1}.`));
|
|
22
|
-
}, Q = (T) => {
|
|
23
|
-
const e = M.c(37);
|
|
24
|
-
let r, l, n, s, d, f, b, t, a;
|
|
25
|
-
e[0] !== T ? ({
|
|
26
|
-
id: t,
|
|
27
|
-
tabs: a,
|
|
28
|
-
activeTabIndex: r,
|
|
29
|
-
alignment: f,
|
|
30
|
-
className: l,
|
|
31
|
-
classNameTabPane: n,
|
|
32
|
-
defaultSelectedTabIndex: b,
|
|
33
|
-
onTabChange: s,
|
|
34
|
-
...d
|
|
35
|
-
} = T, e[0] = T, e[1] = r, e[2] = l, e[3] = n, e[4] = s, e[5] = d, e[6] = f, e[7] = b, e[8] = t, e[9] = a) : (r = e[1], l = e[2], n = e[3], s = e[4], d = e[5], f = e[6], b = e[7], t = e[8], a = e[9]);
|
|
36
|
-
const h = f === void 0 ? "left" : f, x = b === void 0 ? 0 : b;
|
|
37
|
-
process.env.NODE_ENV !== "production" && _({
|
|
38
|
-
id: t,
|
|
39
|
-
tabs: a,
|
|
40
|
-
defaultSelectedTabIndex: x
|
|
41
|
-
});
|
|
42
|
-
const [A, P] = $(r || x), p = r !== void 0, o = p ? r : A;
|
|
43
|
-
let S;
|
|
44
|
-
e[10] !== p || e[11] !== s ? (S = (i) => {
|
|
45
|
-
p || P(i), s == null || s(i);
|
|
46
|
-
}, e[10] = p, e[11] = s, e[12] = S) : S = e[12];
|
|
47
|
-
const D = S;
|
|
48
|
-
let u;
|
|
49
|
-
e[13] !== h || e[14] !== D || e[15] !== s || e[16] !== o || e[17] !== t || e[18] !== a ? (u = {
|
|
50
|
-
id: t,
|
|
51
|
-
tabs: a,
|
|
52
|
-
setSelectedTabIndex: D,
|
|
53
|
-
selectedTabIndex: o,
|
|
54
|
-
alignment: h,
|
|
55
|
-
onTabChange: s
|
|
56
|
-
}, e[13] = h, e[14] = D, e[15] = s, e[16] = o, e[17] = t, e[18] = a, e[19] = u) : u = e[19];
|
|
57
|
-
const v = u;
|
|
58
|
-
let c;
|
|
59
|
-
e[20] !== v ? (c = /* @__PURE__ */ N(j, { ...v }), e[20] = v, e[21] = c) : c = e[21];
|
|
60
|
-
let m;
|
|
61
|
-
if (e[22] !== n || e[23] !== o || e[24] !== t || e[25] !== a) {
|
|
62
|
-
let i;
|
|
63
|
-
e[27] !== n || e[28] !== o || e[29] !== t ? (i = (q, w) => {
|
|
64
|
-
const {
|
|
65
|
-
id: E,
|
|
66
|
-
content: y
|
|
67
|
-
} = q;
|
|
68
|
-
return /* @__PURE__ */ N(B, { id: E, content: y, index: w, selectedTabIndex: o, tabListId: t, className: n }, C(t, E, w));
|
|
69
|
-
}, e[27] = n, e[28] = o, e[29] = t, e[30] = i) : i = e[30], m = a.map(i), e[22] = n, e[23] = o, e[24] = t, e[25] = a, e[26] = m;
|
|
70
|
-
} else
|
|
71
|
-
m = e[26];
|
|
72
|
-
let I;
|
|
73
|
-
return e[31] !== l || e[32] !== d || e[33] !== c || e[34] !== m || e[35] !== t ? (I = /* @__PURE__ */ L("div", { className: l, id: t, ...d, children: [
|
|
74
|
-
c,
|
|
75
|
-
m
|
|
76
|
-
] }), e[31] = l, e[32] = d, e[33] = c, e[34] = m, e[35] = t, e[36] = I) : I = e[36], I;
|
|
77
|
-
};
|
|
78
|
-
export {
|
|
79
|
-
Q as D,
|
|
80
|
-
J as T,
|
|
81
|
-
K as a,
|
|
82
|
-
_ as v
|
|
83
|
-
};
|