@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,170 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { jsx as l, jsxs as q } from "react/jsx-runtime";
|
|
3
|
-
import { d as Se } from "./index.CgTHIF3K.js";
|
|
4
|
-
import { c as W } from "./index.CEyLAtio.js";
|
|
5
|
-
import { forwardRef as ge, useRef as Ce, useState as ve, useImperativeHandle as We, useEffect as ye } from "react";
|
|
6
|
-
import { DSHeading as ke } from "../heading.BXFBZhKv.js";
|
|
7
|
-
import { D as Oe } from "./Icon.NSsVrYeq.js";
|
|
8
|
-
import { NumberIndicator as Ne } from "../numberindicator.Ddf3ESi7.js";
|
|
9
|
-
import { g as me } from "./helpers.BbWkXTr3.js";
|
|
10
|
-
import '../assets/Accordion.BJb4TOG0.css';const we = "ds-accordion_details_1cikf_1", De = "ds-accordion_summary_1cikf_115", xe = "ds-accordion_summary--utility--m_1cikf_154", Ee = "ds-accordion_summary--flush_1cikf_183", Ae = "ds-accordion_summary--small_1cikf_251", Ie = "ds-accordion_summary--x-small_1cikf_255", Xe = "ds-accordion_summary-content-wrapper_1cikf_260", Fe = "ds-accordion_summary-content-wrapper--flush_1cikf_266", Te = "ds-accordion_summary-content-wrapper--chevron-left_1cikf_270", be = "ds-accordion_summary-content-wrapper--x-small_1cikf_274", Pe = "ds-accordion_heading-summary-wrapper_1cikf_278", Re = "ds-accordion_heading-summary_1cikf_278", Le = "ds-accordion_heading-summary--x-small_1cikf_288", je = "ds-accordion_hint_1cikf_292", ze = "ds-accordion_icon_1cikf_306", Me = "ds-accordion_icon--open_1cikf_317", He = "ds-accordion_icon--open-caret_1cikf_328", Ue = "ds-accordion_content-wrapper_1cikf_340", qe = "ds-accordion_content-wrapper--flush_1cikf_346", Ve = "ds-accordion_content-wrapper--small_1cikf_350", Ze = "ds-accordion_content-wrapper--x-small_1cikf_354", t = {
|
|
11
|
-
details: we,
|
|
12
|
-
summary: De,
|
|
13
|
-
summaryUtilityM: xe,
|
|
14
|
-
summaryFlush: Ee,
|
|
15
|
-
summarySmall: Ae,
|
|
16
|
-
summaryXSmall: Ie,
|
|
17
|
-
summaryContentWrapper: Xe,
|
|
18
|
-
summaryContentWrapperFlush: Fe,
|
|
19
|
-
summaryContentWrapperChevronLeft: Te,
|
|
20
|
-
summaryContentWrapperXSmall: be,
|
|
21
|
-
headingSummaryWrapper: Pe,
|
|
22
|
-
headingSummary: Re,
|
|
23
|
-
headingSummaryXSmall: Le,
|
|
24
|
-
hint: je,
|
|
25
|
-
icon: ze,
|
|
26
|
-
iconOpen: Me,
|
|
27
|
-
iconOpenCaret: He,
|
|
28
|
-
contentWrapper: Ue,
|
|
29
|
-
contentWrapperFlush: qe,
|
|
30
|
-
contentWrapperSmall: Ve,
|
|
31
|
-
contentWrapperXSmall: Ze
|
|
32
|
-
}, nt = ["medium", "small", "x-small"], st = ["chevron", "caret"], at = ["left", "right"], $e = ({
|
|
33
|
-
children: k,
|
|
34
|
-
hint: V,
|
|
35
|
-
numberIndicatorValue: e,
|
|
36
|
-
summary: s
|
|
37
|
-
}) => {
|
|
38
|
-
if (!k)
|
|
39
|
-
throw new Error(me("DSAccordion", "The component requires children to be set."));
|
|
40
|
-
if (!s)
|
|
41
|
-
throw new Error(me("DSAccordion", "The summary prop is required. Please add the summary prop to the DSAccordion component."));
|
|
42
|
-
if (V && (e || e === ""))
|
|
43
|
-
throw new Error(me("DSAccordion", "The hint and numberIndicator props cannot be used together. Please remove either the hint prop or the numberIndicatorValue prop."));
|
|
44
|
-
}, Be = ge((k, V) => {
|
|
45
|
-
const e = Se.c(73);
|
|
46
|
-
let s, m, o, r, p, n, O, N, w, D;
|
|
47
|
-
e[0] !== k ? ({
|
|
48
|
-
children: s,
|
|
49
|
-
summary: n,
|
|
50
|
-
chevronPosition: O,
|
|
51
|
-
className: m,
|
|
52
|
-
hint: o,
|
|
53
|
-
isFlush: N,
|
|
54
|
-
isOpen: w,
|
|
55
|
-
numberIndicatorValue: r,
|
|
56
|
-
size: D,
|
|
57
|
-
...p
|
|
58
|
-
} = k, e[0] = k, e[1] = s, e[2] = m, e[3] = o, e[4] = r, e[5] = p, e[6] = n, e[7] = O, e[8] = N, e[9] = w, e[10] = D) : (s = e[1], m = e[2], o = e[3], r = e[4], p = e[5], n = e[6], O = e[7], N = e[8], w = e[9], D = e[10]);
|
|
59
|
-
const pe = O === void 0 ? "right" : O, a = N === void 0 ? !1 : N, i = w === void 0 ? !1 : w, d = D === void 0 ? "medium" : D;
|
|
60
|
-
process.env.NODE_ENV !== "production" && $e({
|
|
61
|
-
children: s,
|
|
62
|
-
hint: o,
|
|
63
|
-
numberIndicatorValue: r,
|
|
64
|
-
summary: n
|
|
65
|
-
});
|
|
66
|
-
const Z = pe === "right" ? "chevron" : "caret", c = Ce(null), [de, ue] = ve(i);
|
|
67
|
-
let E;
|
|
68
|
-
e[11] === Symbol.for("react.memo_cache_sentinel") ? (E = () => c.current, e[11] = E) : E = e[11], We(V, E);
|
|
69
|
-
let A;
|
|
70
|
-
e[12] === Symbol.for("react.memo_cache_sentinel") ? (A = () => {
|
|
71
|
-
c.current && ue(c.current.open);
|
|
72
|
-
}, e[12] = A) : A = e[12];
|
|
73
|
-
let I;
|
|
74
|
-
e[13] !== i ? (I = [i], e[13] = i, e[14] = I) : I = e[14], ye(A, I);
|
|
75
|
-
let X, F;
|
|
76
|
-
e[15] === Symbol.for("react.memo_cache_sentinel") ? (X = () => {
|
|
77
|
-
var he;
|
|
78
|
-
const fe = () => {
|
|
79
|
-
c.current && ue(c.current.open);
|
|
80
|
-
};
|
|
81
|
-
return (he = c.current) == null || he.addEventListener("toggle", fe), () => {
|
|
82
|
-
var _e;
|
|
83
|
-
(_e = c.current) == null || _e.removeEventListener("toggle", fe);
|
|
84
|
-
};
|
|
85
|
-
}, F = [], e[15] = X, e[16] = F) : (X = e[15], F = e[16]), ye(X, F);
|
|
86
|
-
let T, b, P;
|
|
87
|
-
const x = typeof n == "object" && n !== void 0;
|
|
88
|
-
x && ({
|
|
89
|
-
headingSize: T,
|
|
90
|
-
headingTag: b,
|
|
91
|
-
headingText: P
|
|
92
|
-
} = n);
|
|
93
|
-
let R;
|
|
94
|
-
e[17] !== m ? (R = W(t.details, m), e[17] = m, e[18] = R) : R = e[18];
|
|
95
|
-
const $ = R, B = d === "small", G = d === "x-small", J = !x;
|
|
96
|
-
let L;
|
|
97
|
-
e[19] !== a || e[20] !== B || e[21] !== G || e[22] !== J ? (L = W(t.summary, {
|
|
98
|
-
[t.summaryFlush]: a,
|
|
99
|
-
[t.summarySmall]: B,
|
|
100
|
-
[t.summaryXSmall]: G,
|
|
101
|
-
[t.summaryUtilityM]: J
|
|
102
|
-
}), e[19] = a, e[20] = B, e[21] = G, e[22] = J, e[23] = L) : L = e[23];
|
|
103
|
-
const K = L, Q = pe === "left", Y = d === "x-small";
|
|
104
|
-
let j;
|
|
105
|
-
e[24] !== a || e[25] !== Q || e[26] !== Y ? (j = W(t.summaryContentWrapper, {
|
|
106
|
-
[t.summaryContentWrapperFlush]: a,
|
|
107
|
-
[t.summaryContentWrapperChevronLeft]: Q,
|
|
108
|
-
[t.summaryContentWrapperXSmall]: Y
|
|
109
|
-
}), e[24] = a, e[25] = Q, e[26] = Y, e[27] = j) : j = e[27];
|
|
110
|
-
const ee = j, te = d === "x-small";
|
|
111
|
-
let z;
|
|
112
|
-
e[28] !== te ? (z = W(t.headingSummary, {
|
|
113
|
-
[t.headingSummaryXSmall]: te
|
|
114
|
-
}), e[28] = te, e[29] = z) : z = e[29];
|
|
115
|
-
const re = z, ne = Z === "chevron" && de, se = Z === "caret" && de;
|
|
116
|
-
let M;
|
|
117
|
-
e[30] !== ne || e[31] !== se ? (M = W(t.icon, {
|
|
118
|
-
[t.iconOpen]: ne,
|
|
119
|
-
[t.iconOpenCaret]: se
|
|
120
|
-
}), e[30] = ne, e[31] = se, e[32] = M) : M = e[32];
|
|
121
|
-
const ae = M, oe = d === "small", ce = d === "x-small";
|
|
122
|
-
let H;
|
|
123
|
-
e[33] !== a || e[34] !== oe || e[35] !== ce ? (H = W(t.contentWrapper, {
|
|
124
|
-
[t.contentWrapperFlush]: a,
|
|
125
|
-
[t.contentWrapperSmall]: oe,
|
|
126
|
-
[t.contentWrapperXSmall]: ce
|
|
127
|
-
}), e[33] = a, e[34] = oe, e[35] = ce, e[36] = H) : H = e[36];
|
|
128
|
-
const ie = H;
|
|
129
|
-
let u;
|
|
130
|
-
e[37] !== T || e[38] !== b || e[39] !== P || e[40] !== x || e[41] !== n ? (u = x ? /* @__PURE__ */ l(ke, { tag: b, size: T, children: P }) : n, e[37] = T, e[38] = b, e[39] = P, e[40] = x, e[41] = n, e[42] = u) : u = e[42];
|
|
131
|
-
let f;
|
|
132
|
-
e[43] !== r ? (f = (r || (r == null ? void 0 : r.trim()) === "") && /* @__PURE__ */ l("div", { children: /* @__PURE__ */ l(Ne, { label: r }) }), e[43] = r, e[44] = f) : f = e[44];
|
|
133
|
-
let h;
|
|
134
|
-
e[45] !== re || e[46] !== u || e[47] !== f ? (h = /* @__PURE__ */ q("div", { className: re, children: [
|
|
135
|
-
u,
|
|
136
|
-
f
|
|
137
|
-
] }), e[45] = re, e[46] = u, e[47] = f, e[48] = h) : h = e[48];
|
|
138
|
-
let _;
|
|
139
|
-
e[49] !== o ? (_ = o && /* @__PURE__ */ l("div", { className: t.hint, children: o }), e[49] = o, e[50] = _) : _ = e[50];
|
|
140
|
-
let y;
|
|
141
|
-
e[51] !== h || e[52] !== _ ? (y = /* @__PURE__ */ q("div", { className: t.headingSummaryWrapper, children: [
|
|
142
|
-
h,
|
|
143
|
-
_
|
|
144
|
-
] }), e[51] = h, e[52] = _, e[53] = y) : y = e[53];
|
|
145
|
-
const le = Z === "chevron" ? "chevron-down" : "caret-right";
|
|
146
|
-
let S;
|
|
147
|
-
e[54] !== ae || e[55] !== le ? (S = /* @__PURE__ */ l(Oe, { name: le, "aria-hidden": "true", className: ae }), e[54] = ae, e[55] = le, e[56] = S) : S = e[56];
|
|
148
|
-
let g;
|
|
149
|
-
e[57] !== ee || e[58] !== y || e[59] !== S ? (g = /* @__PURE__ */ q("div", { className: ee, children: [
|
|
150
|
-
y,
|
|
151
|
-
S
|
|
152
|
-
] }), e[57] = ee, e[58] = y, e[59] = S, e[60] = g) : g = e[60];
|
|
153
|
-
let C;
|
|
154
|
-
e[61] !== K || e[62] !== g ? (C = /* @__PURE__ */ l("summary", { className: K, children: g }), e[61] = K, e[62] = g, e[63] = C) : C = e[63];
|
|
155
|
-
let v;
|
|
156
|
-
e[64] !== s || e[65] !== ie ? (v = /* @__PURE__ */ l("div", { className: ie, children: s }), e[64] = s, e[65] = ie, e[66] = v) : v = e[66];
|
|
157
|
-
let U;
|
|
158
|
-
return e[67] !== $ || e[68] !== i || e[69] !== p || e[70] !== C || e[71] !== v ? (U = /* @__PURE__ */ q("details", { ...p, ref: c, className: $, open: i, children: [
|
|
159
|
-
C,
|
|
160
|
-
v
|
|
161
|
-
] }), e[67] = $, e[68] = i, e[69] = p, e[70] = C, e[71] = v, e[72] = U) : U = e[72], U;
|
|
162
|
-
});
|
|
163
|
-
Be.displayName = "DSAccordion";
|
|
164
|
-
export {
|
|
165
|
-
nt as A,
|
|
166
|
-
at as C,
|
|
167
|
-
Be as D,
|
|
168
|
-
st as a,
|
|
169
|
-
$e as v
|
|
170
|
-
};
|
|
@@ -1,88 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { jsxs as f, jsx as t } from "react/jsx-runtime";
|
|
3
|
-
import { c as p } from "./index.CEyLAtio.js";
|
|
4
|
-
import { forwardRef as j, useRef as B, useState as H, useEffect as V, useCallback as $ } from "react";
|
|
5
|
-
import { u as A } from "./useBreakpoint.CMOR9ZOB.js";
|
|
6
|
-
import "./index.CgTHIF3K.js";
|
|
7
|
-
import { D as x } from "./Icon.NSsVrYeq.js";
|
|
8
|
-
import { D as L } from "./SystemFeedback.CyGbUCzT.js";
|
|
9
|
-
import { g as C } from "./helpers.BbWkXTr3.js";
|
|
10
|
-
import '../assets/Checkbox.BKHQN_tu.css';const O = "ds-checkbox_root_1tuqo_1", U = "ds-checkbox_root--disabled_1tuqo_21", z = "ds-checkbox_checkbox_1tuqo_25", F = "ds-checkbox_icon-check_1tuqo_41", J = "ds-checkbox_icon-minus_1tuqo_42", K = "ds-checkbox_checkbox--invalid_1tuqo_66", Q = "ds-checkbox_label--hidden_1tuqo_71", R = "ds-checkbox_input_1tuqo_84", T = "ds-checkbox_label_1tuqo_71", W = "ds-checkbox_feedback_1tuqo_198", e = {
|
|
11
|
-
root: O,
|
|
12
|
-
rootDisabled: U,
|
|
13
|
-
checkbox: z,
|
|
14
|
-
iconCheck: F,
|
|
15
|
-
iconMinus: J,
|
|
16
|
-
checkboxInvalid: K,
|
|
17
|
-
labelHidden: Q,
|
|
18
|
-
input: R,
|
|
19
|
-
label: T,
|
|
20
|
-
feedback: W
|
|
21
|
-
}, X = ({
|
|
22
|
-
label: c,
|
|
23
|
-
id: a,
|
|
24
|
-
invalid: n,
|
|
25
|
-
systemFeedback: b
|
|
26
|
-
}) => {
|
|
27
|
-
if (!c)
|
|
28
|
-
throw new Error(C("DSCheckbox", `A label is always required for a11y reasons. Please add a descriptive "label" prop to the DSCheckbox component. If you don't want to display a label, set hideLabel={true}.`));
|
|
29
|
-
if (b && n && !a)
|
|
30
|
-
throw new Error(C("DSCheckbox", `A unique "id" prop is required when passing in the systemFeedback prop and setting invalid to true. Please add a unique "id" prop to the DSCheckbox component with label: "${c}".`));
|
|
31
|
-
}, Y = j(({
|
|
32
|
-
label: c,
|
|
33
|
-
checkboxGroupId: a,
|
|
34
|
-
checked: n,
|
|
35
|
-
className: b,
|
|
36
|
-
defaultChecked: D = !1,
|
|
37
|
-
disabled: r = !1,
|
|
38
|
-
hideLabel: q = !1,
|
|
39
|
-
id: h,
|
|
40
|
-
indeterminate: m = !1,
|
|
41
|
-
invalid: s = !1,
|
|
42
|
-
systemFeedback: i,
|
|
43
|
-
onChange: u,
|
|
44
|
-
...N
|
|
45
|
-
}, l) => {
|
|
46
|
-
process.env.NODE_ENV !== "production" && X({
|
|
47
|
-
label: c,
|
|
48
|
-
id: h,
|
|
49
|
-
invalid: s,
|
|
50
|
-
systemFeedback: i
|
|
51
|
-
});
|
|
52
|
-
const d = B(null), [S, y] = H(D), v = A(q);
|
|
53
|
-
V(() => {
|
|
54
|
-
d && d.current && (d.current.indeterminate = m);
|
|
55
|
-
}, [m]);
|
|
56
|
-
const k = n !== void 0, w = k ? n : S, _ = `${h}-feedback`, g = [s && i && _, s && a && `${a}-feedback`].filter(Boolean).join(" ") || void 0, E = p(e.root, {
|
|
57
|
-
[e.rootDisabled]: r
|
|
58
|
-
}), I = p(e.label, {
|
|
59
|
-
// hide label only visually to keep them available for assistive technologies
|
|
60
|
-
[e.labelHidden]: v
|
|
61
|
-
}), M = p(e.checkbox, {
|
|
62
|
-
[e.checkboxInvalid]: s
|
|
63
|
-
}), P = $((o) => {
|
|
64
|
-
if (r) {
|
|
65
|
-
o.preventDefault();
|
|
66
|
-
return;
|
|
67
|
-
}
|
|
68
|
-
k || y(o.target.checked), u && u(o);
|
|
69
|
-
}, [r, k, u]);
|
|
70
|
-
return /* @__PURE__ */ f("div", { className: b, children: [
|
|
71
|
-
/* @__PURE__ */ f("label", { className: E, children: [
|
|
72
|
-
/* @__PURE__ */ t("input", { id: h, type: "checkbox", className: e.input, ref: (o) => {
|
|
73
|
-
typeof l == "function" ? l(o) : l !== null && (l.current = o), d.current = o;
|
|
74
|
-
}, ...N, checked: w, disabled: r, "aria-label": c, "aria-describedby": g, "aria-invalid": s, onChange: P }),
|
|
75
|
-
/* @__PURE__ */ f("div", { className: M, children: [
|
|
76
|
-
/* @__PURE__ */ t(x, { name: "check", className: e.iconCheck, "aria-hidden": "true" }),
|
|
77
|
-
/* @__PURE__ */ t(x, { name: "minus", className: e.iconMinus, "aria-hidden": "true" })
|
|
78
|
-
] }),
|
|
79
|
-
/* @__PURE__ */ t("span", { className: I, children: c })
|
|
80
|
-
] }),
|
|
81
|
-
s && i && /* @__PURE__ */ t(L, { id: _, variant: "error", className: e.feedback, message: i })
|
|
82
|
-
] });
|
|
83
|
-
});
|
|
84
|
-
Y.displayName = "DSCheckbox";
|
|
85
|
-
export {
|
|
86
|
-
Y as D,
|
|
87
|
-
X as v
|
|
88
|
-
};
|
|
@@ -1,135 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { jsx as F, jsxs as Z } from "react/jsx-runtime";
|
|
3
|
-
import { d as ee } from "./index.CgTHIF3K.js";
|
|
4
|
-
import { c as W } from "./index.CEyLAtio.js";
|
|
5
|
-
import { useRef as Q, useState as oe, useEffect as U } from "react";
|
|
6
|
-
import { D as te } from "./Button.Cf1CKq8N.js";
|
|
7
|
-
import { g as le } from "./helpers.BbWkXTr3.js";
|
|
8
|
-
import '../assets/Dialog.CGAg7bnN.css';const se = "ds-dialog_root_kvopn_5", ne = "ds-dialog_content-wrapper_kvopn_166", re = "ds-dialog_content-wrapper--no-footer_kvopn_172", ce = "ds-dialog_close-button_kvopn_180", ae = "ds-dialog_header_kvopn_193", ie = "ds-dialog_content_kvopn_166", de = "ds-dialog_footer_kvopn_195", fe = "ds-dialog_header--scrollable_kvopn_216", pe = "ds-dialog_header--close-button_kvopn_225", ue = "ds-dialog_content--no-footer_kvopn_238", he = "ds-dialog_footer--scrollable_kvopn_245", t = {
|
|
9
|
-
root: se,
|
|
10
|
-
contentWrapper: ne,
|
|
11
|
-
contentWrapperNoFooter: re,
|
|
12
|
-
closeButton: ce,
|
|
13
|
-
header: ae,
|
|
14
|
-
content: ie,
|
|
15
|
-
footer: de,
|
|
16
|
-
headerScrollable: fe,
|
|
17
|
-
headerCloseButton: pe,
|
|
18
|
-
contentNoFooter: ue,
|
|
19
|
-
footerScrollable: he
|
|
20
|
-
}, _e = ({
|
|
21
|
-
tabIndex: c
|
|
22
|
-
}) => {
|
|
23
|
-
if (c || c === 0)
|
|
24
|
-
throw new Error(le("DSDialog", "Do not pass the tabindex property to the DSDialog component as it is not interactive and does not receive focus. The DSDialogs contents, including the close button contained in the DSDialog, can receive focus and be interactive."));
|
|
25
|
-
}, De = (c) => {
|
|
26
|
-
const e = ee.c(59);
|
|
27
|
-
let a, i, d, l, f, s, n, C, E, w;
|
|
28
|
-
e[0] !== c ? ({
|
|
29
|
-
children: a,
|
|
30
|
-
className: i,
|
|
31
|
-
closeButtonProps: d,
|
|
32
|
-
disableBackdropClose: C,
|
|
33
|
-
footer: l,
|
|
34
|
-
header: f,
|
|
35
|
-
hideCloseButton: E,
|
|
36
|
-
isOpen: w,
|
|
37
|
-
onClose: s,
|
|
38
|
-
...n
|
|
39
|
-
} = c, e[0] = c, e[1] = a, e[2] = i, e[3] = d, e[4] = l, e[5] = f, e[6] = s, e[7] = n, e[8] = C, e[9] = E, e[10] = w) : (a = e[1], i = e[2], d = e[3], l = e[4], f = e[5], s = e[6], n = e[7], C = e[8], E = e[9], w = e[10]);
|
|
40
|
-
const H = C === void 0 ? !1 : C, y = E === void 0 ? !1 : E, O = w === void 0 ? !1 : w;
|
|
41
|
-
if (process.env.NODE_ENV !== "production") {
|
|
42
|
-
const {
|
|
43
|
-
tabIndex: o
|
|
44
|
-
} = n;
|
|
45
|
-
_e({
|
|
46
|
-
tabIndex: o
|
|
47
|
-
});
|
|
48
|
-
}
|
|
49
|
-
let p;
|
|
50
|
-
e[11] !== d ? (p = d || {}, e[11] = d, e[12] = p) : p = e[12];
|
|
51
|
-
let u, x;
|
|
52
|
-
e[13] !== p ? ({
|
|
53
|
-
label: x,
|
|
54
|
-
...u
|
|
55
|
-
} = p, e[13] = p, e[14] = u, e[15] = x) : (u = e[14], x = e[15]);
|
|
56
|
-
const I = x === void 0 ? "Close dialog" : x, r = Q(null), A = Q(null), [h, X] = oe(!1);
|
|
57
|
-
let R, z;
|
|
58
|
-
e[16] === Symbol.for("react.memo_cache_sentinel") ? (R = () => {
|
|
59
|
-
const o = A.current;
|
|
60
|
-
if (o) {
|
|
61
|
-
const J = () => {
|
|
62
|
-
X(o.scrollHeight > o.clientHeight);
|
|
63
|
-
};
|
|
64
|
-
J();
|
|
65
|
-
const K = new ResizeObserver(J);
|
|
66
|
-
return K.observe(o), () => {
|
|
67
|
-
K.disconnect();
|
|
68
|
-
};
|
|
69
|
-
}
|
|
70
|
-
}, z = [], e[16] = R, e[17] = z) : (R = e[16], z = e[17]), U(R, z);
|
|
71
|
-
let L;
|
|
72
|
-
e[18] !== O || e[19] !== s ? (L = [O, s], e[18] = O, e[19] = s, e[20] = L) : L = e[20], U(() => {
|
|
73
|
-
const o = r.current;
|
|
74
|
-
if (o)
|
|
75
|
-
return o.addEventListener("close", G), O ? o.showModal() : o.close(), () => {
|
|
76
|
-
o.removeEventListener("close", G);
|
|
77
|
-
};
|
|
78
|
-
}, L);
|
|
79
|
-
const G = () => {
|
|
80
|
-
s && s();
|
|
81
|
-
};
|
|
82
|
-
let M;
|
|
83
|
-
e[21] !== H ? (M = (o) => {
|
|
84
|
-
H || r.current && o.target === r.current && r.current.close();
|
|
85
|
-
}, e[21] = H, e[22] = M) : M = e[22];
|
|
86
|
-
const T = M;
|
|
87
|
-
let P;
|
|
88
|
-
e[23] === Symbol.for("react.memo_cache_sentinel") ? (P = () => {
|
|
89
|
-
r.current && r.current.close();
|
|
90
|
-
}, e[23] = P) : P = e[23];
|
|
91
|
-
const Y = P;
|
|
92
|
-
let _;
|
|
93
|
-
e[24] !== i ? (_ = W(t.root, i), e[24] = i, e[25] = _) : _ = e[25];
|
|
94
|
-
let m;
|
|
95
|
-
e[26] !== T ? (m = (o) => T(o), e[26] = T, e[27] = m) : m = e[27];
|
|
96
|
-
const V = !l;
|
|
97
|
-
let v;
|
|
98
|
-
e[28] !== V ? (v = W(t.contentWrapper, {
|
|
99
|
-
[t.contentWrapperNoFooter]: V
|
|
100
|
-
}), e[28] = V, e[29] = v) : v = e[29];
|
|
101
|
-
let g;
|
|
102
|
-
e[30] !== y || e[31] !== I || e[32] !== u ? (g = !y && /* @__PURE__ */ F(te, { ...u, className: t.closeButton, hideLabel: !0, iconName: "cross", size: "small", type: "button", variant: "ghost", onClick: () => Y(), children: I }), e[30] = y, e[31] = I, e[32] = u, e[33] = g) : g = e[33];
|
|
103
|
-
const $ = !y;
|
|
104
|
-
let b;
|
|
105
|
-
e[34] !== h || e[35] !== $ ? (b = W(t.header, {
|
|
106
|
-
[t.headerCloseButton]: $,
|
|
107
|
-
[t.headerScrollable]: h
|
|
108
|
-
}), e[34] = h, e[35] = $, e[36] = b) : b = e[36];
|
|
109
|
-
let S;
|
|
110
|
-
e[37] !== f || e[38] !== b ? (S = /* @__PURE__ */ F("header", { className: b, children: f }), e[37] = f, e[38] = b, e[39] = S) : S = e[39];
|
|
111
|
-
const q = !l;
|
|
112
|
-
let k;
|
|
113
|
-
e[40] !== q ? (k = W(t.content, {
|
|
114
|
-
[t.contentNoFooter]: q
|
|
115
|
-
}), e[40] = q, e[41] = k) : k = e[41];
|
|
116
|
-
let D;
|
|
117
|
-
e[42] !== a || e[43] !== k ? (D = /* @__PURE__ */ F("div", { ref: A, className: k, tabIndex: 0, children: a }), e[42] = a, e[43] = k, e[44] = D) : D = e[44];
|
|
118
|
-
let N;
|
|
119
|
-
e[45] !== l || e[46] !== h ? (N = l && /* @__PURE__ */ F("footer", { className: W(t.footer, {
|
|
120
|
-
[t.footerScrollable]: h
|
|
121
|
-
}), children: l }), e[45] = l, e[46] = h, e[47] = N) : N = e[47];
|
|
122
|
-
let B;
|
|
123
|
-
e[48] !== v || e[49] !== g || e[50] !== S || e[51] !== D || e[52] !== N ? (B = /* @__PURE__ */ Z("div", { className: v, children: [
|
|
124
|
-
g,
|
|
125
|
-
S,
|
|
126
|
-
D,
|
|
127
|
-
N
|
|
128
|
-
] }), e[48] = v, e[49] = g, e[50] = S, e[51] = D, e[52] = N, e[53] = B) : B = e[53];
|
|
129
|
-
let j;
|
|
130
|
-
return e[54] !== n || e[55] !== _ || e[56] !== m || e[57] !== B ? (j = /* @__PURE__ */ F("dialog", { ...n, ref: r, className: _, onMouseDown: m, "aria-modal": "true", children: B }), e[54] = n, e[55] = _, e[56] = m, e[57] = B, e[58] = j) : j = e[58], j;
|
|
131
|
-
};
|
|
132
|
-
export {
|
|
133
|
-
De as D,
|
|
134
|
-
_e as v
|
|
135
|
-
};
|
|
@@ -1,140 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { jsx as x, jsxs as oe } from "react/jsx-runtime";
|
|
3
|
-
import { d as re } from "./index.CgTHIF3K.js";
|
|
4
|
-
import { c as F } from "./index.CEyLAtio.js";
|
|
5
|
-
import { useRef as X, useState as se, useEffect as Y } from "react";
|
|
6
|
-
import { D as ne } from "./Button.Cf1CKq8N.js";
|
|
7
|
-
import { g as le } from "./helpers.BbWkXTr3.js";
|
|
8
|
-
import '../assets/Drawer.VOvWQoEr.css';const ce = "ds-drawer_root_4nbv0_10", ae = "ds-drawer_root--end_4nbv0_68", ie = "ds-drawer_content-wrapper_4nbv0_169", de = "ds-drawer_content-wrapper--no-footer_4nbv0_175", fe = "ds-drawer_close-button_4nbv0_178", _e = "ds-drawer_header_4nbv0_191", pe = "ds-drawer_content_4nbv0_169", ue = "ds-drawer_footer_4nbv0_193", be = "ds-drawer_header--scrollable_4nbv0_214", he = "ds-drawer_header--close-button_4nbv0_223", me = "ds-drawer_content--no-footer_4nbv0_237", ve = "ds-drawer_footer--scrollable_4nbv0_244", o = {
|
|
9
|
-
root: ce,
|
|
10
|
-
rootEnd: ae,
|
|
11
|
-
contentWrapper: ie,
|
|
12
|
-
contentWrapperNoFooter: de,
|
|
13
|
-
closeButton: fe,
|
|
14
|
-
header: _e,
|
|
15
|
-
content: pe,
|
|
16
|
-
footer: ue,
|
|
17
|
-
headerScrollable: be,
|
|
18
|
-
headerCloseButton: he,
|
|
19
|
-
contentNoFooter: me,
|
|
20
|
-
footerScrollable: ve
|
|
21
|
-
}, ge = ["start", "end"], we = ({
|
|
22
|
-
tabIndex: c
|
|
23
|
-
}) => {
|
|
24
|
-
if (c || c === 0)
|
|
25
|
-
throw new Error(le("DSDrawer", "Do not pass the tabindex property to the DSDrawer component as it is not interactive and does not receive focus. The DSDrawers contents, including the close button contained in the DSDrawer, can receive focus and be interactive."));
|
|
26
|
-
}, ke = (c) => {
|
|
27
|
-
const e = re.c(61);
|
|
28
|
-
let a, i, d, r, f, s, n, E, g, k, O;
|
|
29
|
-
e[0] !== c ? ({
|
|
30
|
-
children: a,
|
|
31
|
-
className: i,
|
|
32
|
-
closeButtonProps: d,
|
|
33
|
-
disableBackdropClose: E,
|
|
34
|
-
footer: r,
|
|
35
|
-
header: f,
|
|
36
|
-
hideCloseButton: g,
|
|
37
|
-
position: k,
|
|
38
|
-
isOpen: O,
|
|
39
|
-
onClose: s,
|
|
40
|
-
...n
|
|
41
|
-
} = c, e[0] = c, e[1] = a, e[2] = i, e[3] = d, e[4] = r, e[5] = f, e[6] = s, e[7] = n, e[8] = E, e[9] = g, e[10] = k, e[11] = O) : (a = e[1], i = e[2], d = e[3], r = e[4], f = e[5], s = e[6], n = e[7], E = e[8], g = e[9], k = e[10], O = e[11]);
|
|
42
|
-
const H = E === void 0 ? !1 : E, R = g === void 0 ? !1 : g, Z = k === void 0 ? "start" : k, y = O === void 0 ? !1 : O;
|
|
43
|
-
if (process.env.NODE_ENV !== "production") {
|
|
44
|
-
const {
|
|
45
|
-
tabIndex: t
|
|
46
|
-
} = n;
|
|
47
|
-
we({
|
|
48
|
-
tabIndex: t
|
|
49
|
-
});
|
|
50
|
-
}
|
|
51
|
-
let _;
|
|
52
|
-
e[12] !== d ? (_ = d || {}, e[12] = d, e[13] = _) : _ = e[13];
|
|
53
|
-
let p, W;
|
|
54
|
-
e[14] !== _ ? ({
|
|
55
|
-
label: W,
|
|
56
|
-
...p
|
|
57
|
-
} = _, e[14] = _, e[15] = p, e[16] = W) : (p = e[15], W = e[16]);
|
|
58
|
-
const T = W === void 0 ? "Close modal" : W, l = X(null), J = X(null), [u, ee] = se(!1);
|
|
59
|
-
let I, P;
|
|
60
|
-
e[17] === Symbol.for("react.memo_cache_sentinel") ? (I = () => {
|
|
61
|
-
const t = J.current;
|
|
62
|
-
if (t) {
|
|
63
|
-
const Q = () => {
|
|
64
|
-
ee(t.scrollHeight > t.clientHeight);
|
|
65
|
-
};
|
|
66
|
-
Q();
|
|
67
|
-
const U = new ResizeObserver(Q);
|
|
68
|
-
return U.observe(t), () => {
|
|
69
|
-
U.disconnect();
|
|
70
|
-
};
|
|
71
|
-
}
|
|
72
|
-
}, P = [], e[17] = I, e[18] = P) : (I = e[17], P = e[18]), Y(I, P);
|
|
73
|
-
let z;
|
|
74
|
-
e[19] !== y || e[20] !== s ? (z = [y, s], e[19] = y, e[20] = s, e[21] = z) : z = e[21], Y(() => {
|
|
75
|
-
const t = l.current;
|
|
76
|
-
if (t)
|
|
77
|
-
return t.addEventListener("close", K), y ? t.showModal() : t.close(), () => {
|
|
78
|
-
t.removeEventListener("close", K);
|
|
79
|
-
};
|
|
80
|
-
}, z);
|
|
81
|
-
const K = () => {
|
|
82
|
-
s && s();
|
|
83
|
-
};
|
|
84
|
-
let L;
|
|
85
|
-
e[22] !== H ? (L = (t) => {
|
|
86
|
-
H || l.current && t.target === l.current && l.current.close();
|
|
87
|
-
}, e[22] = H, e[23] = L) : L = e[23];
|
|
88
|
-
const A = L;
|
|
89
|
-
let M;
|
|
90
|
-
e[24] === Symbol.for("react.memo_cache_sentinel") ? (M = () => {
|
|
91
|
-
l.current && l.current.close();
|
|
92
|
-
}, e[24] = M) : M = e[24];
|
|
93
|
-
const te = M, V = Z === "end";
|
|
94
|
-
let b;
|
|
95
|
-
e[25] !== V ? (b = F(o.root, {
|
|
96
|
-
[o.rootEnd]: V
|
|
97
|
-
}), e[25] = V, e[26] = b) : b = e[26];
|
|
98
|
-
let h;
|
|
99
|
-
e[27] !== A ? (h = (t) => A(t), e[27] = A, e[28] = h) : h = e[28];
|
|
100
|
-
const $ = !r;
|
|
101
|
-
let m;
|
|
102
|
-
e[29] !== i || e[30] !== $ ? (m = F(o.contentWrapper, i, {
|
|
103
|
-
[o.contentWrapperNoFooter]: $
|
|
104
|
-
}), e[29] = i, e[30] = $, e[31] = m) : m = e[31];
|
|
105
|
-
let v;
|
|
106
|
-
e[32] !== R || e[33] !== T || e[34] !== p ? (v = !R && /* @__PURE__ */ x(ne, { ...p, className: o.closeButton, hideLabel: !0, iconName: "cross", size: "small", type: "button", variant: "ghost", onClick: () => te(), children: T }), e[32] = R, e[33] = T, e[34] = p, e[35] = v) : v = e[35];
|
|
107
|
-
const q = !R;
|
|
108
|
-
let w;
|
|
109
|
-
e[36] !== u || e[37] !== q ? (w = F(o.header, {
|
|
110
|
-
[o.headerCloseButton]: q,
|
|
111
|
-
[o.headerScrollable]: u
|
|
112
|
-
}), e[36] = u, e[37] = q, e[38] = w) : w = e[38];
|
|
113
|
-
let S;
|
|
114
|
-
e[39] !== f || e[40] !== w ? (S = /* @__PURE__ */ x("header", { className: w, children: f }), e[39] = f, e[40] = w, e[41] = S) : S = e[41];
|
|
115
|
-
const G = !r;
|
|
116
|
-
let D;
|
|
117
|
-
e[42] !== G ? (D = F(o.content, {
|
|
118
|
-
[o.contentNoFooter]: G
|
|
119
|
-
}), e[42] = G, e[43] = D) : D = e[43];
|
|
120
|
-
let N;
|
|
121
|
-
e[44] !== a || e[45] !== D ? (N = /* @__PURE__ */ x("div", { ref: J, className: D, tabIndex: 0, children: a }), e[44] = a, e[45] = D, e[46] = N) : N = e[46];
|
|
122
|
-
let B;
|
|
123
|
-
e[47] !== r || e[48] !== u ? (B = r && /* @__PURE__ */ x("footer", { className: F(o.footer, {
|
|
124
|
-
[o.footerScrollable]: u
|
|
125
|
-
}), children: r }), e[47] = r, e[48] = u, e[49] = B) : B = e[49];
|
|
126
|
-
let C;
|
|
127
|
-
e[50] !== m || e[51] !== v || e[52] !== S || e[53] !== N || e[54] !== B ? (C = /* @__PURE__ */ oe("div", { className: m, children: [
|
|
128
|
-
v,
|
|
129
|
-
S,
|
|
130
|
-
N,
|
|
131
|
-
B
|
|
132
|
-
] }), e[50] = m, e[51] = v, e[52] = S, e[53] = N, e[54] = B, e[55] = C) : C = e[55];
|
|
133
|
-
let j;
|
|
134
|
-
return e[56] !== n || e[57] !== b || e[58] !== h || e[59] !== C ? (j = /* @__PURE__ */ x("dialog", { ...n, ref: l, className: b, onMouseDown: h, "aria-modal": "true", children: C }), e[56] = n, e[57] = b, e[58] = h, e[59] = C, e[60] = j) : j = e[60], j;
|
|
135
|
-
};
|
|
136
|
-
export {
|
|
137
|
-
ke as D,
|
|
138
|
-
ge as a,
|
|
139
|
-
we as v
|
|
140
|
-
};
|