@stihl-design-system/components 1.0.0-RC.10 → 1.0.0-RC.12
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/README.md +0 -9
- package/{accordion.B3UkxlAZ.js → accordion.Rvtiu8Y4.js} +3 -3
- package/accordion.d.ts +1 -0
- package/arialiveregions.Cyycgs8g.js +27 -0
- package/arialiveregions.d.ts +1 -0
- package/assets/Accordion.i4k5SMQM.css +1 -0
- package/assets/CheckboxGroup.BH1Br1dg.css +1 -0
- package/assets/Chip.DSdLuzoi.css +1 -0
- package/assets/CustomReactSelect.vHt8qNKC.css +1 -0
- package/assets/Dialog.BgzebVk4.css +1 -0
- package/assets/Drawer.Bauwxrk7.css +1 -0
- package/assets/Fieldset.DOdTbb7C.css +1 -0
- package/assets/Icon.DxRSBRSL.css +1 -0
- package/assets/InputPassword.CG7Ugu73.css +1 -0
- package/assets/InputSearch.CseChMc-.css +1 -0
- package/assets/InputStepper.C0eAYr7P.css +1 -0
- package/assets/Notification.DbRapUJo.css +1 -0
- package/assets/RadioGroup.BfMo157q.css +1 -0
- package/assets/Select.D4EXgIbz.css +1 -0
- package/assets/Textarea.KJGPTYMz.css +1 -0
- package/assets/Toast.CuafTAf7.css +1 -0
- package/assets/arialiveregions.DhsijBaL.css +1 -0
- package/assets/asterisk.BfVAUBO7.css +1 -0
- package/assets/button.DF4RBeC2.css +1 -0
- package/assets/buttonround.19uK_-oO.css +1 -0
- package/assets/checkbox.ByOoFouu.css +1 -0
- package/assets/chipgroup.BzfZLbkv.css +1 -0
- package/assets/flag.B-RLcMcf.css +1 -0
- package/assets/floatingactionbutton.E9HekT6S.css +1 -0
- package/assets/heading.u4f8Mz94.css +1 -0
- package/assets/input.BAkFKPW3.css +1 -0
- package/assets/link.DDJj0D1U.css +1 -0
- package/assets/linkstandalone.DIazcjIv.css +1 -0
- package/assets/logo.CnW8alZU.css +1 -0
- package/assets/optioncheckbox.BZaWtRD7.css +1 -0
- package/assets/radio.X-RTl_jo.css +1 -0
- package/assets/skiptocontent.PTL3256m.css +1 -0
- package/assets/spinner.2iWJWKyA.css +1 -0
- package/assets/switch.gw6aa3kx.css +1 -0
- package/assets/systemfeedback.BPz5YlPC.css +1 -0
- package/assets/text.DjTG_qNb.css +1 -0
- package/assets/title.rosWPEG3.css +1 -0
- package/asterisk.DpzETKdT.js +8 -0
- package/asterisk.d.ts +1 -0
- package/button.M4nXjcUn.js +135 -0
- package/button.d.ts +1 -0
- package/buttonround.E56F_805.js +118 -0
- package/buttonround.d.ts +1 -0
- package/checkbox.Cb2_ey6U.js +111 -0
- package/checkbox.d.ts +1 -0
- package/checkboxgroup.DBDmB-zR.js +8 -0
- package/checkboxgroup.d.ts +1 -0
- package/chip.C_1tGqvZ.js +10 -0
- package/chip.d.ts +2 -0
- package/chipgroup.BvTj1ziW.js +174 -0
- package/chipgroup.d.ts +2 -0
- package/chunks/Accordion.CB6jB3s_.js +125 -0
- package/chunks/{AriaLiveRegions.utils.D2ni4Yrf.js → AriaLiveRegions.utils.BGSZafnS.js} +2 -2
- package/chunks/CheckboxGroup.S6i5EOc4.js +92 -0
- package/chunks/Chip.CMlPUyOJ.js +142 -0
- package/chunks/{CustomReactSelect.ChAtL6fu.js → CustomReactSelect.Cg_XW3YK.js} +1056 -1049
- package/chunks/Dialog.CudsqNag.js +148 -0
- package/chunks/Drawer.ueG2Bzr9.js +154 -0
- package/chunks/Fieldset.Cjmkgxxk.js +99 -0
- package/chunks/{Icon.C2o2seDb.js → Icon.BCmt_XBG.js} +45 -45
- package/chunks/InputPassword.CNLbBFjx.js +143 -0
- package/chunks/InputSearch.CHA6mkX_.js +192 -0
- package/chunks/InputStepper.xmWGU9pU.js +294 -0
- package/chunks/Notification.o6pagKQy.js +93 -0
- package/chunks/RadioGroup.Crj7NoOs.js +137 -0
- package/chunks/Select.E6gLFYLk.js +194 -0
- package/chunks/Textarea.DUBSOpNL.js +198 -0
- package/chunks/Toast.DyEi2GEP.js +89 -0
- package/chunks/translate.isa3FHb8.js +11 -0
- package/{combobox.JL1Dsn3E.js → combobox.DUzv8jzM.js} +1 -1
- package/combobox.d.ts +1 -0
- package/components/Accordion/Accordion.d.ts +0 -1
- package/components/Accordion/Accordion.utils.d.ts +0 -1
- package/components/Button/Button.d.ts +0 -1
- package/components/ButtonRound/ButtonRound.d.ts +0 -1
- package/components/Checkbox/Checkbox.d.ts +0 -1
- package/components/CheckboxGroup/CheckboxGroup.d.ts +6 -7
- package/components/CheckboxGroup/CheckboxGroup.utils.d.ts +0 -1
- package/components/ChipGroup/Chip.d.ts +12 -0
- package/components/ChipGroup/ChipGroup.d.ts +42 -0
- package/components/ChipGroup/ChipGroup.utils.d.ts +60 -0
- package/components/ChipGroup/ChipGroup.utils.test.d.ts +1 -0
- package/components/Combobox/Combobox.d.ts +1 -2
- package/components/Combobox/Combobox.utils.d.ts +6 -1
- package/components/{CustomReactSelect → Combobox/CustomReactSelect}/CustomReactSelect.d.ts +2 -3
- package/components/Combobox/CustomReactSelect/CustomReactSelect.utils.d.ts +3 -0
- package/components/Combobox/CustomReactSelect/CustomReactSelect.utils.test.d.ts +1 -0
- package/components/{CustomReactSelect → Combobox/CustomReactSelect}/OptionCheckbox.d.ts +0 -1
- package/components/Dialog/Dialog.d.ts +0 -1
- package/components/Dialog/Dialog.utils.d.ts +0 -1
- package/components/Drawer/Drawer.d.ts +0 -1
- package/components/Drawer/Drawer.utils.d.ts +0 -1
- package/components/Fieldset/Fieldset.d.ts +0 -1
- package/components/Fieldset/Fieldset.utils.d.ts +7 -1
- package/components/Flag/Flag.d.ts +23 -0
- package/components/Flag/Flag.test.d.ts +1 -0
- package/components/Flag/Flag.utils.d.ts +2 -0
- package/components/FloatingActionButton/FloatingActionButton.d.ts +0 -1
- package/components/Heading/Heading.d.ts +0 -1
- package/components/Icon/Icon.d.ts +0 -1
- package/components/Icon/Icon.utils.d.ts +0 -1
- package/components/Input/Input.d.ts +0 -1
- package/components/Input/Input.utils.d.ts +0 -1
- package/components/InputPassword/InputPassword.d.ts +0 -1
- package/components/InputPassword/InputPassword.utils.d.ts +0 -1
- package/components/InputSearch/InputSearch.d.ts +0 -1
- package/components/InputSearch/InputSearch.utils.d.ts +0 -1
- package/components/InputStepper/InputStepper.d.ts +0 -1
- package/components/InputStepper/InputStepper.utils.d.ts +0 -1
- package/components/Link/Link.d.ts +0 -1
- package/components/LinkStandalone/LinkStandalone.d.ts +0 -1
- package/components/Logo/Logo.d.ts +1 -2
- package/components/Logo/Logo.utils.d.ts +0 -1
- package/components/Notification/Notification.d.ts +0 -1
- package/components/Notification/Notification.utils.d.ts +0 -1
- package/components/Radio/Radio.d.ts +1 -2
- package/components/RadioGroup/RadioGroup.d.ts +7 -8
- package/components/RadioGroup/RadioGroup.utils.d.ts +2 -3
- package/components/Select/Select.d.ts +0 -1
- package/components/Select/Select.utils.d.ts +0 -1
- package/components/SkipToContent/SkipToContent.d.ts +0 -1
- package/components/Spinner/Spinner.d.ts +0 -1
- package/components/Switch/Switch.d.ts +0 -1
- package/components/SystemFeedback/SystemFeedback.d.ts +0 -1
- package/components/Text/Text.d.ts +0 -1
- package/components/Textarea/Textarea.d.ts +0 -1
- package/components/Textarea/Textarea.utils.d.ts +0 -1
- package/components/Title/Title.d.ts +0 -1
- package/components/Toast/Toast.d.ts +0 -1
- package/components/Toast/Toast.utils.d.ts +0 -1
- package/components/Toast/ToastManager.d.ts +0 -1
- package/customreactselect.CXmBRqQ9.js +13 -0
- package/customreactselect.d.ts +2 -1
- package/{dialog.D3bJ0rsW.js → dialog.DYlBUsOD.js} +2 -2
- package/dialog.d.ts +1 -0
- package/{drawer.CNPF1-Kc.js → drawer.CvhbP1ra.js} +2 -2
- package/drawer.d.ts +1 -0
- package/fieldset.CtUGEdLv.js +11 -0
- package/fieldset.d.ts +1 -0
- package/flag.BKpsdB_-.js +43 -0
- package/flag.d.ts +2 -0
- package/floatingactionbutton.D5L0B7zI.js +87 -0
- package/floatingactionbutton.d.ts +1 -0
- package/heading.IPIYc5vW.js +50 -0
- package/heading.d.ts +1 -0
- package/{icon.BoMgOmC1.js → icon.Ck0BpI34.js} +1 -1
- package/icon.d.ts +1 -0
- package/index.d.ts +4 -0
- package/index.es.js +134 -114
- package/input.BEnCFNM-.js +239 -0
- package/input.d.ts +1 -0
- package/{inputpassword.nsYu6YeB.js → inputpassword.B-D_jB9w.js} +4 -4
- package/inputpassword.d.ts +1 -0
- package/{inputsearch.ZGIrDrcv.js → inputsearch.CaSpklR1.js} +4 -4
- package/inputsearch.d.ts +1 -0
- package/{inputstepper.BvY36hA1.js → inputstepper.C7KD1-0S.js} +4 -4
- package/inputstepper.d.ts +1 -0
- package/link.DREJAoPG.js +116 -0
- package/link.d.ts +1 -0
- package/linkstandalone.BBoEniZ_.js +79 -0
- package/linkstandalone.d.ts +1 -0
- package/logo.Hul8qCFo.js +65 -0
- package/logo.d.ts +1 -0
- package/{notification.BAS13UQ6.js → notification.JWhrkEcE.js} +3 -3
- package/notification.d.ts +1 -0
- package/optioncheckbox.BRUTnQnJ.js +43 -0
- package/optioncheckbox.d.ts +2 -1
- package/package.json +47 -40
- package/partials/index.js +407 -407
- package/partials/lib/partials.d.ts +0 -1
- package/radio.DEILy_lV.js +114 -0
- package/radio.d.ts +1 -0
- package/radiogroup.DeU-HdlP.js +10 -0
- package/radiogroup.d.ts +1 -0
- package/{select.C4OZMB-V.js → select.BYraFJzz.js} +4 -4
- package/select.d.ts +1 -0
- package/skiptocontent.BxvpIB7H.js +45 -0
- package/skiptocontent.d.ts +1 -0
- package/spinner.Bq97Og-6.js +58 -0
- package/spinner.d.ts +1 -0
- package/styles/fonts/STIHLContrafaceDigitalTextDemi.woff +0 -0
- package/styles/fonts/STIHLContrafaceDigitalTextDemi.woff2 +0 -0
- package/styles/fonts/font-face.min.css +1 -1
- package/styles/scss/ds/index.scss +19 -0
- package/styles/scss/ds/lib/animation.scss +21 -0
- package/styles/scss/ds/lib/breakpoints.scss +15 -0
- package/styles/scss/ds/lib/container-query.scss +54 -0
- package/styles/scss/ds/lib/ds-internal/_a11y.scss +15 -0
- package/styles/scss/{lib → ds/lib/ds-internal}/_focus.scss +13 -15
- package/styles/scss/ds/lib/ds-internal/_heading.scss +37 -0
- package/styles/scss/ds/lib/ds-internal/_helpers.scss +32 -0
- package/styles/scss/ds/lib/ds-internal/_high-contrast.scss +6 -0
- package/styles/scss/ds/lib/ds-internal/_hover.scss +6 -0
- package/styles/scss/ds/lib/ds-internal/_index.scss +9 -0
- package/styles/scss/ds/lib/ds-internal/_link.scss +62 -0
- package/styles/scss/ds/lib/ds-internal/_spacing-dynamic.scss +53 -0
- package/styles/scss/ds/lib/ds-internal/_text.scss +30 -0
- package/styles/scss/ds/lib/grid-extended.scss +11 -0
- package/styles/scss/ds/lib/grid-full.scss +6 -0
- package/styles/scss/ds/lib/grid-main.scss +119 -0
- package/styles/scss/ds/lib/grid-narrow.scss +14 -0
- package/styles/scss/ds/lib/grid-sidebar-sidebar.scss +52 -0
- package/styles/scss/{lib/_grid-sidebar.scss → ds/lib/grid-sidebar.scss} +23 -32
- package/styles/scss/{lib/_grid.scss → ds/lib/grid.scss} +15 -17
- package/styles/scss/ds/lib/heading.scss +75 -0
- package/styles/scss/ds/lib/link.scss +74 -0
- package/styles/scss/ds/lib/media-query.scss +32 -0
- package/styles/scss/{lib/_shadow.scss → ds/lib/shadow.scss} +2 -2
- package/styles/scss/ds/lib/spacing-dynamic.scss +7 -0
- package/styles/scss/ds/lib/spacing.scss +20 -0
- package/styles/scss/ds/lib/text.scss +83 -0
- package/styles/scss/ds/lib/theme.scss +162 -0
- package/styles/scss/ds/lib/transition.scss +36 -0
- package/switch.DI8YYa5G.js +65 -0
- package/switch.d.ts +1 -0
- package/{systemfeedback.ZzRUAVYX.js → systemfeedback.C3Pfxxpp.js} +6 -6
- package/systemfeedback.d.ts +1 -0
- package/text.DThvTwm8.js +57 -0
- package/text.d.ts +1 -0
- package/{textarea.CtQtGqn5.js → textarea.CBvH0ljM.js} +3 -3
- package/textarea.d.ts +1 -0
- package/title.DqzdB2Gq.js +36 -0
- package/title.d.ts +1 -0
- package/toast.d.ts +1 -0
- package/{toast.DVd9dLs2.js → toast.n1QUINSA.js} +3 -3
- package/{toastmanager.Dh0gzFkM.js → toastmanager.B7EZ4JSI.js} +2 -2
- package/toastmanager.d.ts +1 -0
- package/utils/index.d.ts +1 -0
- package/utils/translate.d.ts +11 -0
- package/utils/translate.test.d.ts +1 -0
- package/utils/useBreakpoint.d.ts +0 -1
- package/utils/useIsomorphicLayoutEffect.d.ts +0 -1
- package/utils/vitest.setup.d.ts +0 -1
- package/arialiveregions.BK4T7Vhk.js +0 -27
- package/assets/Accordion.lFv7Q_RG.css +0 -1
- package/assets/CustomReactSelect.CMkn-EGK.css +0 -1
- package/assets/Dialog.fiQvxJg_.css +0 -1
- package/assets/Drawer.BqBgbSuP.css +0 -1
- package/assets/Fieldset.qHYeUFZt.css +0 -1
- package/assets/Icon.Duy_0R8w.css +0 -1
- package/assets/InputPassword.Cf394z47.css +0 -1
- package/assets/InputSearch.eCRQoxjN.css +0 -1
- package/assets/InputStepper.B80KulYE.css +0 -1
- package/assets/Notification.DK6agBGS.css +0 -1
- package/assets/RadioGroup.Bz3_xkZU.css +0 -1
- package/assets/Select.BptsMxz4.css +0 -1
- package/assets/Textarea.CIIVh03G.css +0 -1
- package/assets/Toast.Dsvs1zdM.css +0 -1
- package/assets/arialiveregions.GsGx2USO.css +0 -1
- package/assets/asterisk.DlJ4YtSZ.css +0 -1
- package/assets/button.B1O7Yw3Q.css +0 -1
- package/assets/buttonround.DlH_ipDo.css +0 -1
- package/assets/checkbox.K4CVYK9g.css +0 -1
- package/assets/floatingactionbutton.DRYentYC.css +0 -1
- package/assets/heading.6bER-Eac.css +0 -1
- package/assets/input.C0MrSbQu.css +0 -1
- package/assets/link.vtTST2ki.css +0 -1
- package/assets/linkstandalone.BtAcziZ7.css +0 -1
- package/assets/logo.pETQEsvZ.css +0 -1
- package/assets/optioncheckbox.BJJAph5_.css +0 -1
- package/assets/radio.9kpIO3HC.css +0 -1
- package/assets/skiptocontent.CHcqLS7S.css +0 -1
- package/assets/spinner.D_Nnf1ZG.css +0 -1
- package/assets/switch.2DQF2zH-.css +0 -1
- package/assets/systemfeedback.Sq0bAIyf.css +0 -1
- package/assets/text.Dhb_l50R.css +0 -1
- package/assets/title.f74Bosn-.css +0 -1
- package/asterisk.DDn-yX4P.js +0 -8
- package/button.DH0h6uPs.js +0 -135
- package/buttonround.0mw4zzlU.js +0 -118
- package/checkbox.DETR3e3X.js +0 -112
- package/checkboxgroup.CZqrlF-x.js +0 -9
- package/chunks/Accordion.pI3JyHJL.js +0 -125
- package/chunks/CheckboxGroup.4J_gZ_XJ.js +0 -87
- package/chunks/Dialog.Z5ESJQMi.js +0 -148
- package/chunks/Drawer.BdowMqE0.js +0 -154
- package/chunks/Fieldset.COGbZwry.js +0 -99
- package/chunks/InputPassword.Dgo95-PU.js +0 -140
- package/chunks/InputSearch.BFof0pBn.js +0 -189
- package/chunks/InputStepper.4IqLa5tX.js +0 -291
- package/chunks/Notification.BhwbaXqk.js +0 -93
- package/chunks/RadioGroup.C5jbCJM4.js +0 -132
- package/chunks/RadioGroup.module.BBZwHDjW.js +0 -11
- package/chunks/Select.fXeQJXtz.js +0 -191
- package/chunks/Textarea.Bewrp0Za.js +0 -195
- package/chunks/Toast.DA_CQ9J-.js +0 -89
- package/components/CustomReactSelect/CustomReactSelect.utils.d.ts +0 -16
- package/customreactselect.Dg8Kgq3e.js +0 -13
- package/fieldset.CTshPWYX.js +0 -11
- package/floatingactionbutton.CCIj9Fjr.js +0 -87
- package/heading.CAkraI2D.js +0 -50
- package/input.CTgeAYdu.js +0 -236
- package/link.DAZNwQ0a.js +0 -116
- package/linkstandalone.C9X3er7g.js +0 -80
- package/logo.CEO6OV7u.js +0 -65
- package/optioncheckbox.DZWwtx6f.js +0 -43
- package/radio.CWGJtmKl.js +0 -115
- package/radiogroup.BhffFqN3.js +0 -11
- package/skiptocontent.C4yQfWr2.js +0 -46
- package/spinner.D-xrotcu.js +0 -58
- package/styles/scss/_index.scss +0 -23
- package/styles/scss/lib/_a11y.scss +0 -15
- package/styles/scss/lib/_animation.scss +0 -21
- package/styles/scss/lib/_breakpoints.scss +0 -16
- package/styles/scss/lib/_container-query.scss +0 -58
- package/styles/scss/lib/_grid-extended.scss +0 -11
- package/styles/scss/lib/_grid-full.scss +0 -6
- package/styles/scss/lib/_grid-main.scss +0 -117
- package/styles/scss/lib/_grid-narrow.scss +0 -16
- package/styles/scss/lib/_grid-sidebar-sidebar.scss +0 -50
- package/styles/scss/lib/_heading.scss +0 -107
- package/styles/scss/lib/_helpers.scss +0 -15
- package/styles/scss/lib/_high-contrast.scss +0 -24
- package/styles/scss/lib/_hover.scss +0 -10
- package/styles/scss/lib/_link.scss +0 -126
- package/styles/scss/lib/_media-query.scss +0 -32
- package/styles/scss/lib/_spacing.scss +0 -32
- package/styles/scss/lib/_text.scss +0 -110
- package/styles/scss/lib/_theme.scss +0 -162
- package/styles/scss/lib/_transition.scss +0 -45
- package/switch.CmpNUC7s.js +0 -65
- package/text.rgDKQBrU.js +0 -57
- package/title.LY1ylQsb.js +0 -36
- package/utils/render-in-iframe.d.ts +0 -15
- /package/components/{CustomReactSelect/CustomReactSelect.utils.test.d.ts → ChipGroup/ChipGroup.test.d.ts} +0 -0
package/buttonround.0mw4zzlU.js
DELETED
|
@@ -1,118 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { j as r } from "./chunks/jsx-runtime.C115EyI4.js";
|
|
3
|
-
import { c as i } from "./chunks/index.CvOaL64Y.js";
|
|
4
|
-
import { D } from "./chunks/Icon.C2o2seDb.js";
|
|
5
|
-
import { DSSpinner as H } from "./spinner.D-xrotcu.js";
|
|
6
|
-
import './assets/buttonround.DlH_ipDo.css';const p = "_root_y7qt0_151", F = "_root--highlight_y7qt0_220", O = "_root--dark-highlight_y7qt0_220", G = "_root--filled_y7qt0_298", I = "_root--outline_y7qt0_326", S = "_root--ghost_y7qt0_353", x = "_root--ghost-flush_y7qt0_378", j = "_root--small_y7qt0_384", L = "_root--dark-filled_y7qt0_461", C = "_root--dark-outline_y7qt0_520", N = "_root--dark-ghost_y7qt0_578", R = "_root--dark-ghost-flush_y7qt0_634", B = "_root--icon-left_y7qt0_693", E = "_root--icon-only_y7qt0_709", T = "_root--icon-only-small_y7qt0_718", w = "_loader_y7qt0_735", z = "_icon--hidden_y7qt0_747", A = "_label--hidden_y7qt0_751", J = "_label--loading_y7qt0_763", o = {
|
|
7
|
-
root: p,
|
|
8
|
-
"root--highlight": "_root--highlight_y7qt0_220",
|
|
9
|
-
rootHighlight: F,
|
|
10
|
-
"root--dark-highlight": "_root--dark-highlight_y7qt0_220",
|
|
11
|
-
rootDarkHighlight: O,
|
|
12
|
-
"root--filled": "_root--filled_y7qt0_298",
|
|
13
|
-
rootFilled: G,
|
|
14
|
-
"root--outline": "_root--outline_y7qt0_326",
|
|
15
|
-
rootOutline: I,
|
|
16
|
-
"root--ghost": "_root--ghost_y7qt0_353",
|
|
17
|
-
rootGhost: S,
|
|
18
|
-
"root--ghost-flush": "_root--ghost-flush_y7qt0_378",
|
|
19
|
-
rootGhostFlush: x,
|
|
20
|
-
"root--small": "_root--small_y7qt0_384",
|
|
21
|
-
rootSmall: j,
|
|
22
|
-
"root--dark-filled": "_root--dark-filled_y7qt0_461",
|
|
23
|
-
rootDarkFilled: L,
|
|
24
|
-
"root--dark-outline": "_root--dark-outline_y7qt0_520",
|
|
25
|
-
rootDarkOutline: C,
|
|
26
|
-
"root--dark-ghost": "_root--dark-ghost_y7qt0_578",
|
|
27
|
-
rootDarkGhost: N,
|
|
28
|
-
"root--dark-ghost-flush": "_root--dark-ghost-flush_y7qt0_634",
|
|
29
|
-
rootDarkGhostFlush: R,
|
|
30
|
-
"root--icon-left": "_root--icon-left_y7qt0_693",
|
|
31
|
-
rootIconLeft: B,
|
|
32
|
-
"root--icon-only": "_root--icon-only_y7qt0_709",
|
|
33
|
-
rootIconOnly: E,
|
|
34
|
-
"root--icon-only-small": "_root--icon-only-small_y7qt0_718",
|
|
35
|
-
rootIconOnlySmall: T,
|
|
36
|
-
loader: w,
|
|
37
|
-
"icon--hidden": "_icon--hidden_y7qt0_747",
|
|
38
|
-
iconHidden: z,
|
|
39
|
-
"label--hidden": "_label--hidden_y7qt0_751",
|
|
40
|
-
labelHidden: A,
|
|
41
|
-
"label--loading": "_label--loading_y7qt0_763",
|
|
42
|
-
labelLoading: J
|
|
43
|
-
}, U = ({
|
|
44
|
-
children: d,
|
|
45
|
-
aria: c,
|
|
46
|
-
className: y,
|
|
47
|
-
dataTrackingid: g,
|
|
48
|
-
disabled: n = !1,
|
|
49
|
-
iconName: s = "placeholder",
|
|
50
|
-
iconSource: a,
|
|
51
|
-
loading: t = !1,
|
|
52
|
-
theme: _ = "light",
|
|
53
|
-
variant: l = "filled",
|
|
54
|
-
onClick: e,
|
|
55
|
-
...q
|
|
56
|
-
}) => {
|
|
57
|
-
const k = i(
|
|
58
|
-
o.root,
|
|
59
|
-
o.rootIconOnlySmall,
|
|
60
|
-
y,
|
|
61
|
-
{
|
|
62
|
-
// variant
|
|
63
|
-
[o.rootFilled]: l === "filled",
|
|
64
|
-
[o.rootHighlight]: l === "highlight",
|
|
65
|
-
// dark theme
|
|
66
|
-
[o.rootDarkFilled]: _ === "dark" && l === "filled",
|
|
67
|
-
[o.rootDarkHighlight]: _ === "dark" && l === "highlight"
|
|
68
|
-
}
|
|
69
|
-
), u = i(o.label, o.labelHidden, {
|
|
70
|
-
// set label opacity to 0 when loading to prevent button size from changing
|
|
71
|
-
[o.labelLoading]: t
|
|
72
|
-
}), f = i(o.icon, {
|
|
73
|
-
// set icon opacity to 0 when loading to prevent button size from changing
|
|
74
|
-
[o.iconHidden]: t
|
|
75
|
-
}), m = _ === "light" && l === "filled" ? "dark" : "light", b = (h) => {
|
|
76
|
-
if (n || t) {
|
|
77
|
-
h.preventDefault();
|
|
78
|
-
return;
|
|
79
|
-
}
|
|
80
|
-
e && e(h);
|
|
81
|
-
};
|
|
82
|
-
return /* @__PURE__ */ r.jsxs(
|
|
83
|
-
"button",
|
|
84
|
-
{
|
|
85
|
-
className: k,
|
|
86
|
-
"data-trackingid": g,
|
|
87
|
-
type: "button",
|
|
88
|
-
onClick: b,
|
|
89
|
-
...c,
|
|
90
|
-
...q,
|
|
91
|
-
"aria-disabled": n || t,
|
|
92
|
-
"aria-busy": t,
|
|
93
|
-
children: [
|
|
94
|
-
t && /* @__PURE__ */ r.jsx(
|
|
95
|
-
H,
|
|
96
|
-
{
|
|
97
|
-
className: o.loader,
|
|
98
|
-
aria: { "aria-label": "Loading state" }
|
|
99
|
-
}
|
|
100
|
-
),
|
|
101
|
-
/* @__PURE__ */ r.jsx("span", { className: u, children: d }),
|
|
102
|
-
(s || a) && /* @__PURE__ */ r.jsx(
|
|
103
|
-
D,
|
|
104
|
-
{
|
|
105
|
-
name: s,
|
|
106
|
-
theme: m,
|
|
107
|
-
source: a,
|
|
108
|
-
className: f,
|
|
109
|
-
"aria-hidden": "true"
|
|
110
|
-
}
|
|
111
|
-
)
|
|
112
|
-
]
|
|
113
|
-
}
|
|
114
|
-
);
|
|
115
|
-
};
|
|
116
|
-
export {
|
|
117
|
-
U as DSButtonRound
|
|
118
|
-
};
|
package/checkbox.DETR3e3X.js
DELETED
|
@@ -1,112 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { j as e } from "./chunks/jsx-runtime.C115EyI4.js";
|
|
3
|
-
import { c as r } from "./chunks/index.CvOaL64Y.js";
|
|
4
|
-
import { forwardRef as S, useRef as y, useState as I, useEffect as H, useCallback as M } from "react";
|
|
5
|
-
import { u as g } from "./chunks/useBreakpoint.5xBNDiCf.js";
|
|
6
|
-
import { D as _ } from "./chunks/Icon.C2o2seDb.js";
|
|
7
|
-
import { DSSystemFeedback as B } from "./systemfeedback.ZzRUAVYX.js";
|
|
8
|
-
import './assets/checkbox.K4CVYK9g.css';const E = "_checkbox-root_rwkfx_151", V = "_checkbox-root--disabled_rwkfx_172", L = "_checkbox_rwkfx_151", O = "_icon-check_rwkfx_192", P = "_icon-minus_rwkfx_193", U = "_checkbox--invalid_rwkfx_217", q = "_label--hidden_rwkfx_222", z = "_input_rwkfx_235", A = "_label_rwkfx_222", F = "_feedback_rwkfx_349", c = {
|
|
9
|
-
"checkbox-root": "_checkbox-root_rwkfx_151",
|
|
10
|
-
checkboxRoot: E,
|
|
11
|
-
"checkbox-root--disabled": "_checkbox-root--disabled_rwkfx_172",
|
|
12
|
-
checkboxRootDisabled: V,
|
|
13
|
-
checkbox: L,
|
|
14
|
-
"icon-check": "_icon-check_rwkfx_192",
|
|
15
|
-
iconCheck: O,
|
|
16
|
-
"icon-minus": "_icon-minus_rwkfx_193",
|
|
17
|
-
iconMinus: P,
|
|
18
|
-
"checkbox--invalid": "_checkbox--invalid_rwkfx_217",
|
|
19
|
-
checkboxInvalid: U,
|
|
20
|
-
"label--hidden": "_label--hidden_rwkfx_222",
|
|
21
|
-
labelHidden: q,
|
|
22
|
-
input: z,
|
|
23
|
-
label: A,
|
|
24
|
-
feedback: F
|
|
25
|
-
}, G = S(
|
|
26
|
-
({
|
|
27
|
-
label: k,
|
|
28
|
-
checked: x,
|
|
29
|
-
className: d,
|
|
30
|
-
defaultChecked: f = !1,
|
|
31
|
-
disabled: s = !1,
|
|
32
|
-
hideLabel: u = !1,
|
|
33
|
-
indeterminate: h = !1,
|
|
34
|
-
invalid: i = !1,
|
|
35
|
-
systemFeedback: b,
|
|
36
|
-
onChange: l,
|
|
37
|
-
...m
|
|
38
|
-
}, n) => {
|
|
39
|
-
const a = y(null), [p, w] = I(f), C = g(u);
|
|
40
|
-
H(() => {
|
|
41
|
-
a && a.current && (a.current.indeterminate = h);
|
|
42
|
-
}, [h]);
|
|
43
|
-
const t = x !== void 0, j = t ? x : p, D = r(c.checkboxRoot, {
|
|
44
|
-
[c.checkboxRootDisabled]: s
|
|
45
|
-
}), N = r(c.label, {
|
|
46
|
-
// hide label only visually to keep them available for assistive technologies
|
|
47
|
-
[c.labelHidden]: C
|
|
48
|
-
}), v = r(c.checkbox, {
|
|
49
|
-
[c.checkboxInvalid]: i
|
|
50
|
-
}), R = M(
|
|
51
|
-
(o) => {
|
|
52
|
-
if (s) {
|
|
53
|
-
o.preventDefault();
|
|
54
|
-
return;
|
|
55
|
-
}
|
|
56
|
-
t || w(o.target.checked), l && l(o);
|
|
57
|
-
},
|
|
58
|
-
[s, t, l]
|
|
59
|
-
);
|
|
60
|
-
return /* @__PURE__ */ e.jsxs("div", { className: d, children: [
|
|
61
|
-
/* @__PURE__ */ e.jsxs("label", { className: D, children: [
|
|
62
|
-
/* @__PURE__ */ e.jsx(
|
|
63
|
-
"input",
|
|
64
|
-
{
|
|
65
|
-
type: "checkbox",
|
|
66
|
-
className: c.input,
|
|
67
|
-
ref: (o) => {
|
|
68
|
-
typeof n == "function" ? n(o) : n !== null && (n.current = o), a.current = o;
|
|
69
|
-
},
|
|
70
|
-
...m,
|
|
71
|
-
checked: j,
|
|
72
|
-
disabled: s,
|
|
73
|
-
"aria-label": k,
|
|
74
|
-
"aria-invalid": i,
|
|
75
|
-
onChange: R
|
|
76
|
-
}
|
|
77
|
-
),
|
|
78
|
-
/* @__PURE__ */ e.jsxs("div", { className: v, children: [
|
|
79
|
-
/* @__PURE__ */ e.jsx(
|
|
80
|
-
_,
|
|
81
|
-
{
|
|
82
|
-
name: "check",
|
|
83
|
-
className: c.iconCheck,
|
|
84
|
-
"aria-hidden": "true"
|
|
85
|
-
}
|
|
86
|
-
),
|
|
87
|
-
/* @__PURE__ */ e.jsx(
|
|
88
|
-
_,
|
|
89
|
-
{
|
|
90
|
-
name: "minus",
|
|
91
|
-
className: c.iconMinus,
|
|
92
|
-
"aria-hidden": "true"
|
|
93
|
-
}
|
|
94
|
-
)
|
|
95
|
-
] }),
|
|
96
|
-
/* @__PURE__ */ e.jsx("span", { className: N, children: k })
|
|
97
|
-
] }),
|
|
98
|
-
i && b && /* @__PURE__ */ e.jsx(
|
|
99
|
-
B,
|
|
100
|
-
{
|
|
101
|
-
className: c.feedback,
|
|
102
|
-
message: b,
|
|
103
|
-
type: "invalid"
|
|
104
|
-
}
|
|
105
|
-
)
|
|
106
|
-
] });
|
|
107
|
-
}
|
|
108
|
-
);
|
|
109
|
-
G.displayName = "DSCheckbox";
|
|
110
|
-
export {
|
|
111
|
-
G as DSCheckbox
|
|
112
|
-
};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import "./chunks/jsx-runtime.C115EyI4.js";
|
|
3
|
-
import "./chunks/index.CvOaL64Y.js";
|
|
4
|
-
import "./chunks/Fieldset.COGbZwry.js";
|
|
5
|
-
import "./chunks/RadioGroup.module.BBZwHDjW.js";
|
|
6
|
-
import { D as e } from "./chunks/CheckboxGroup.4J_gZ_XJ.js";
|
|
7
|
-
export {
|
|
8
|
-
e as DSCheckboxGroup
|
|
9
|
-
};
|
|
@@ -1,125 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { j as t } from "./jsx-runtime.C115EyI4.js";
|
|
3
|
-
import { c as s } from "./index.CvOaL64Y.js";
|
|
4
|
-
import { forwardRef as A, useRef as F, useState as I, useImperativeHandle as R, useEffect as w } from "react";
|
|
5
|
-
import { DSHeading as T } from "../heading.CAkraI2D.js";
|
|
6
|
-
import { D as L } from "./Icon.C2o2seDb.js";
|
|
7
|
-
import { g } from "./helpers.B1JT5ShS.js";
|
|
8
|
-
import '../assets/Accordion.lFv7Q_RG.css';const M = "_details_15or5_76", b = "_summary_15or5_112", H = "_summary--utility--m_15or5_153", P = "_summary--flush_15or5_178", U = "_summary--small_15or5_238", q = "_summary-content-wrapper_15or5_243", V = "_summary-content-wrapper--flush_15or5_249", z = "_summary-content-wrapper--chevron-left_15or5_253", Z = "_heading-summary-wrapper_15or5_258", k = "_hint_15or5_262", B = "_icon_15or5_277", G = "_icon--open_15or5_288", J = "_content-wrapper_15or5_300", K = "_content-wrapper--flush_15or5_306", Q = "_content-wrapper--small_15or5_310", r = {
|
|
9
|
-
details: M,
|
|
10
|
-
summary: b,
|
|
11
|
-
"summary--utility--m": "_summary--utility--m_15or5_153",
|
|
12
|
-
summaryUtilityM: H,
|
|
13
|
-
"summary--flush": "_summary--flush_15or5_178",
|
|
14
|
-
summaryFlush: P,
|
|
15
|
-
"summary--small": "_summary--small_15or5_238",
|
|
16
|
-
summarySmall: U,
|
|
17
|
-
"summary-content-wrapper": "_summary-content-wrapper_15or5_243",
|
|
18
|
-
summaryContentWrapper: q,
|
|
19
|
-
"summary-content-wrapper--flush": "_summary-content-wrapper--flush_15or5_249",
|
|
20
|
-
summaryContentWrapperFlush: V,
|
|
21
|
-
"summary-content-wrapper--chevron-left": "_summary-content-wrapper--chevron-left_15or5_253",
|
|
22
|
-
summaryContentWrapperChevronLeft: z,
|
|
23
|
-
"heading-summary-wrapper": "_heading-summary-wrapper_15or5_258",
|
|
24
|
-
headingSummaryWrapper: Z,
|
|
25
|
-
hint: k,
|
|
26
|
-
icon: B,
|
|
27
|
-
"icon--open": "_icon--open_15or5_288",
|
|
28
|
-
iconOpen: G,
|
|
29
|
-
"content-wrapper": "_content-wrapper_15or5_300",
|
|
30
|
-
contentWrapper: J,
|
|
31
|
-
"content-wrapper--flush": "_content-wrapper--flush_15or5_306",
|
|
32
|
-
contentWrapperFlush: K,
|
|
33
|
-
"content-wrapper--small": "_content-wrapper--small_15or5_310",
|
|
34
|
-
contentWrapperSmall: Q
|
|
35
|
-
}, ar = ["medium", "small"], or = ["left", "right"], X = ({
|
|
36
|
-
children: a,
|
|
37
|
-
summary: n
|
|
38
|
-
}) => {
|
|
39
|
-
if (!a)
|
|
40
|
-
throw new Error(
|
|
41
|
-
g(
|
|
42
|
-
"DSAccordion",
|
|
43
|
-
"The component requires children to be set."
|
|
44
|
-
)
|
|
45
|
-
);
|
|
46
|
-
if (!n)
|
|
47
|
-
throw new Error(
|
|
48
|
-
g(
|
|
49
|
-
"DSAccordion",
|
|
50
|
-
"The summary prop is required. Please add the summary prop to the DSAccordion component."
|
|
51
|
-
)
|
|
52
|
-
);
|
|
53
|
-
}, Y = A(
|
|
54
|
-
({
|
|
55
|
-
children: a,
|
|
56
|
-
summary: n,
|
|
57
|
-
chevronPosition: C = "right",
|
|
58
|
-
className: S,
|
|
59
|
-
hint: p,
|
|
60
|
-
isFlush: o = !1,
|
|
61
|
-
isOpen: m = !1,
|
|
62
|
-
size: l = "medium",
|
|
63
|
-
...W
|
|
64
|
-
}, v) => {
|
|
65
|
-
process.env.NODE_ENV !== "production" && X({ children: a, summary: n });
|
|
66
|
-
const e = F(null), [D, i] = I(m);
|
|
67
|
-
R(v, () => e.current), w(() => {
|
|
68
|
-
e.current && i(e.current.open);
|
|
69
|
-
}, [m]), w(() => {
|
|
70
|
-
var d;
|
|
71
|
-
const h = () => {
|
|
72
|
-
e.current && i(e.current.open);
|
|
73
|
-
};
|
|
74
|
-
return (d = e.current) == null || d.addEventListener("toggle", h), () => {
|
|
75
|
-
var f;
|
|
76
|
-
(f = e.current) == null || f.removeEventListener("toggle", h);
|
|
77
|
-
};
|
|
78
|
-
}, []);
|
|
79
|
-
let u, _, y;
|
|
80
|
-
const c = typeof n == "object" && n !== void 0;
|
|
81
|
-
c && ({ headingSize: u, headingTag: _, headingText: y } = n);
|
|
82
|
-
const N = s(r.details, S), j = s(r.summary, {
|
|
83
|
-
[r.summaryFlush]: o,
|
|
84
|
-
[r.summarySmall]: l === "small",
|
|
85
|
-
[r.summaryUtilityM]: !c
|
|
86
|
-
}), x = s(
|
|
87
|
-
r.summaryContentWrapper,
|
|
88
|
-
{
|
|
89
|
-
[r.summaryContentWrapperFlush]: o,
|
|
90
|
-
[r.summaryContentWrapperChevronLeft]: C === "left"
|
|
91
|
-
}
|
|
92
|
-
), E = s(r.icon, {
|
|
93
|
-
[r.iconOpen]: D
|
|
94
|
-
}), O = s(r.contentWrapper, {
|
|
95
|
-
[r.contentWrapperFlush]: o,
|
|
96
|
-
[r.contentWrapperSmall]: l === "small"
|
|
97
|
-
});
|
|
98
|
-
return /* @__PURE__ */ t.jsxs(
|
|
99
|
-
"details",
|
|
100
|
-
{
|
|
101
|
-
...W,
|
|
102
|
-
ref: e,
|
|
103
|
-
className: N,
|
|
104
|
-
open: m,
|
|
105
|
-
children: [
|
|
106
|
-
/* @__PURE__ */ t.jsx("summary", { className: j, children: /* @__PURE__ */ t.jsxs("div", { className: x, children: [
|
|
107
|
-
/* @__PURE__ */ t.jsxs("div", { className: r.headingSummaryWrapper, children: [
|
|
108
|
-
c ? /* @__PURE__ */ t.jsx(T, { tag: _, size: u, children: y }) : n,
|
|
109
|
-
p && /* @__PURE__ */ t.jsx("div", { className: r.hint, children: p })
|
|
110
|
-
] }),
|
|
111
|
-
/* @__PURE__ */ t.jsx(L, { name: "chevron-down", className: E })
|
|
112
|
-
] }) }),
|
|
113
|
-
/* @__PURE__ */ t.jsx("div", { className: O, children: a })
|
|
114
|
-
]
|
|
115
|
-
}
|
|
116
|
-
);
|
|
117
|
-
}
|
|
118
|
-
);
|
|
119
|
-
Y.displayName = "DSAccordion";
|
|
120
|
-
export {
|
|
121
|
-
ar as A,
|
|
122
|
-
or as C,
|
|
123
|
-
Y as D,
|
|
124
|
-
X as v
|
|
125
|
-
};
|
|
@@ -1,87 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { j as u } from "./jsx-runtime.C115EyI4.js";
|
|
3
|
-
import { c as D } from "./index.CvOaL64Y.js";
|
|
4
|
-
import { D as b } from "./Fieldset.COGbZwry.js";
|
|
5
|
-
import { s as c } from "./RadioGroup.module.BBZwHDjW.js";
|
|
6
|
-
import l from "react";
|
|
7
|
-
import { g as s } from "./helpers.B1JT5ShS.js";
|
|
8
|
-
import { DSCheckbox as f } from "../checkbox.DETR3e3X.js";
|
|
9
|
-
const C = (e) => `The "${e}" prop is required. Please add the "${e}" prop to the DSCheckboxGroup component.`, k = ({
|
|
10
|
-
children: e,
|
|
11
|
-
description: o,
|
|
12
|
-
id: i,
|
|
13
|
-
legend: n,
|
|
14
|
-
systemFeedback: r
|
|
15
|
-
}) => {
|
|
16
|
-
if (!i && (o || r))
|
|
17
|
-
throw new Error(
|
|
18
|
-
s(
|
|
19
|
-
"DSCheckboxGroup",
|
|
20
|
-
'A unique "id" prop is required when providing the description or systemFeedback property. Please add an unique "id" prop to the DSCheckboxGroup component.'
|
|
21
|
-
)
|
|
22
|
-
);
|
|
23
|
-
if (!n)
|
|
24
|
-
throw new Error(
|
|
25
|
-
s("DSCheckboxGroup", C("legend"))
|
|
26
|
-
);
|
|
27
|
-
if (!e)
|
|
28
|
-
throw new Error(
|
|
29
|
-
s(
|
|
30
|
-
"DSCheckboxGroup",
|
|
31
|
-
"The component requires DSCheckbox components to be explicitly set as its children. Ensure that you include individual DSCheckbox components within the DSCheckboxGroup to create a cohesive checkbox group."
|
|
32
|
-
)
|
|
33
|
-
);
|
|
34
|
-
l.Children.forEach(e, (t) => {
|
|
35
|
-
if (!(l.isValidElement(t) && t.type === f))
|
|
36
|
-
throw new Error(
|
|
37
|
-
s(
|
|
38
|
-
"DSCheckboxGroup",
|
|
39
|
-
"The component requires the children to be DSCheckbox elements. Ensure that you include individual DSCheckbox components within the DSCheckboxGroup to create a cohesive checkbox group."
|
|
40
|
-
)
|
|
41
|
-
);
|
|
42
|
-
});
|
|
43
|
-
}, y = ({
|
|
44
|
-
children: e,
|
|
45
|
-
legend: o,
|
|
46
|
-
alignment: i = "vertical",
|
|
47
|
-
className: n,
|
|
48
|
-
description: r,
|
|
49
|
-
disabled: t = !1,
|
|
50
|
-
id: h,
|
|
51
|
-
invalid: a = !1,
|
|
52
|
-
required: m = !1,
|
|
53
|
-
systemFeedback: p,
|
|
54
|
-
...x
|
|
55
|
-
}) => {
|
|
56
|
-
process.env.NODE_ENV !== "production" && k({
|
|
57
|
-
children: e,
|
|
58
|
-
legend: o,
|
|
59
|
-
description: r,
|
|
60
|
-
id: h,
|
|
61
|
-
systemFeedback: p
|
|
62
|
-
});
|
|
63
|
-
const d = D(c.group, {
|
|
64
|
-
// In case of longer copy, use vertical alignment
|
|
65
|
-
[c.groupHorizontal]: i === "horizontal",
|
|
66
|
-
[c.groupInvalid]: a && !!p
|
|
67
|
-
});
|
|
68
|
-
return /* @__PURE__ */ u.jsx(
|
|
69
|
-
b,
|
|
70
|
-
{
|
|
71
|
-
id: h,
|
|
72
|
-
legend: o,
|
|
73
|
-
className: n,
|
|
74
|
-
description: r,
|
|
75
|
-
disabled: t,
|
|
76
|
-
required: m,
|
|
77
|
-
invalid: a,
|
|
78
|
-
systemFeedback: p,
|
|
79
|
-
...x,
|
|
80
|
-
children: /* @__PURE__ */ u.jsx("div", { className: d, children: e })
|
|
81
|
-
}
|
|
82
|
-
);
|
|
83
|
-
};
|
|
84
|
-
export {
|
|
85
|
-
y as D,
|
|
86
|
-
k as v
|
|
87
|
-
};
|
|
@@ -1,148 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { j as n } from "./jsx-runtime.C115EyI4.js";
|
|
3
|
-
import { c as s } from "./index.CvOaL64Y.js";
|
|
4
|
-
import { useRef as h, useState as w, useEffect as b } from "react";
|
|
5
|
-
import { DSButton as x } from "../button.DH0h6uPs.js";
|
|
6
|
-
import { g as j } from "./helpers.B1JT5ShS.js";
|
|
7
|
-
import '../assets/Dialog.fiQvxJg_.css';const B = "_dialog_1yzgd_80", E = "_content-wrapper_1yzgd_151", C = "_content-wrapper--no-footer_1yzgd_157", F = "_close-button_1yzgd_165", W = "_header_1yzgd_178", k = "_content_1yzgd_151", R = "_footer_1yzgd_180", L = "_header--scrollable_1yzgd_201", M = "_header--close-button_1yzgd_210", H = "_content--no-footer_1yzgd_223", I = "_footer--scrollable_1yzgd_230", o = {
|
|
8
|
-
dialog: B,
|
|
9
|
-
"content-wrapper": "_content-wrapper_1yzgd_151",
|
|
10
|
-
contentWrapper: E,
|
|
11
|
-
"content-wrapper--no-footer": "_content-wrapper--no-footer_1yzgd_157",
|
|
12
|
-
contentWrapperNoFooter: C,
|
|
13
|
-
"close-button": "_close-button_1yzgd_165",
|
|
14
|
-
closeButton: F,
|
|
15
|
-
header: W,
|
|
16
|
-
content: k,
|
|
17
|
-
footer: R,
|
|
18
|
-
"header--scrollable": "_header--scrollable_1yzgd_201",
|
|
19
|
-
headerScrollable: L,
|
|
20
|
-
"header--close-button": "_header--close-button_1yzgd_210",
|
|
21
|
-
headerCloseButton: M,
|
|
22
|
-
"content--no-footer": "_content--no-footer_1yzgd_223",
|
|
23
|
-
contentNoFooter: H,
|
|
24
|
-
"footer--scrollable": "_footer--scrollable_1yzgd_230",
|
|
25
|
-
footerScrollable: I
|
|
26
|
-
}, O = ({ tabIndex: r }) => {
|
|
27
|
-
if (r || r === 0)
|
|
28
|
-
throw new Error(
|
|
29
|
-
j(
|
|
30
|
-
"DSDialog",
|
|
31
|
-
"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."
|
|
32
|
-
)
|
|
33
|
-
);
|
|
34
|
-
}, G = ({
|
|
35
|
-
children: r,
|
|
36
|
-
className: m,
|
|
37
|
-
closeButtonLabel: y = "Close dialog",
|
|
38
|
-
disableBackdropClose: z = !1,
|
|
39
|
-
footer: c,
|
|
40
|
-
header: D,
|
|
41
|
-
hideCloseButton: a = !1,
|
|
42
|
-
isOpen: d = !1,
|
|
43
|
-
onClose: l,
|
|
44
|
-
...i
|
|
45
|
-
}) => {
|
|
46
|
-
if (process.env.NODE_ENV !== "production") {
|
|
47
|
-
const { tabIndex: e } = i;
|
|
48
|
-
O({
|
|
49
|
-
tabIndex: e
|
|
50
|
-
});
|
|
51
|
-
}
|
|
52
|
-
const t = h(null), _ = h(null), [u, S] = w(!1);
|
|
53
|
-
b(() => {
|
|
54
|
-
const e = _.current;
|
|
55
|
-
if (e) {
|
|
56
|
-
const g = () => {
|
|
57
|
-
S(
|
|
58
|
-
e.scrollHeight > e.clientHeight
|
|
59
|
-
);
|
|
60
|
-
};
|
|
61
|
-
g();
|
|
62
|
-
const p = new ResizeObserver(g);
|
|
63
|
-
return p.observe(e), () => {
|
|
64
|
-
p.disconnect();
|
|
65
|
-
};
|
|
66
|
-
}
|
|
67
|
-
}, []), b(() => {
|
|
68
|
-
const e = t.current;
|
|
69
|
-
if (e)
|
|
70
|
-
return e.addEventListener("close", f), d ? e.showModal() : e.close(), () => {
|
|
71
|
-
e.removeEventListener("close", f);
|
|
72
|
-
};
|
|
73
|
-
}, [d, l]);
|
|
74
|
-
const f = () => {
|
|
75
|
-
l && l();
|
|
76
|
-
}, v = (e) => {
|
|
77
|
-
z || t.current && e.target === t.current && t.current.close();
|
|
78
|
-
}, N = () => {
|
|
79
|
-
t.current && t.current.close();
|
|
80
|
-
};
|
|
81
|
-
return /* @__PURE__ */ n.jsx(
|
|
82
|
-
"dialog",
|
|
83
|
-
{
|
|
84
|
-
...i,
|
|
85
|
-
ref: t,
|
|
86
|
-
className: o.dialog,
|
|
87
|
-
onMouseDown: (e) => v(e),
|
|
88
|
-
"aria-modal": "true",
|
|
89
|
-
children: /* @__PURE__ */ n.jsxs(
|
|
90
|
-
"div",
|
|
91
|
-
{
|
|
92
|
-
className: s(o.contentWrapper, m, {
|
|
93
|
-
[o.contentWrapperNoFooter]: !c
|
|
94
|
-
}),
|
|
95
|
-
children: [
|
|
96
|
-
!a && /* @__PURE__ */ n.jsx(
|
|
97
|
-
x,
|
|
98
|
-
{
|
|
99
|
-
className: o.closeButton,
|
|
100
|
-
hideLabel: !0,
|
|
101
|
-
iconName: "cross",
|
|
102
|
-
size: "small",
|
|
103
|
-
type: "button",
|
|
104
|
-
variant: "ghost",
|
|
105
|
-
onClick: () => N(),
|
|
106
|
-
children: y
|
|
107
|
-
}
|
|
108
|
-
),
|
|
109
|
-
/* @__PURE__ */ n.jsx(
|
|
110
|
-
"header",
|
|
111
|
-
{
|
|
112
|
-
className: s(o.header, {
|
|
113
|
-
[o.headerCloseButton]: !a,
|
|
114
|
-
[o.headerScrollable]: u
|
|
115
|
-
}),
|
|
116
|
-
children: D
|
|
117
|
-
}
|
|
118
|
-
),
|
|
119
|
-
/* @__PURE__ */ n.jsx(
|
|
120
|
-
"div",
|
|
121
|
-
{
|
|
122
|
-
ref: _,
|
|
123
|
-
className: s(o.content, {
|
|
124
|
-
[o.contentNoFooter]: !c
|
|
125
|
-
}),
|
|
126
|
-
tabIndex: 0,
|
|
127
|
-
children: r
|
|
128
|
-
}
|
|
129
|
-
),
|
|
130
|
-
c && /* @__PURE__ */ n.jsx(
|
|
131
|
-
"footer",
|
|
132
|
-
{
|
|
133
|
-
className: s(o.footer, {
|
|
134
|
-
[o.footerScrollable]: u
|
|
135
|
-
}),
|
|
136
|
-
children: c
|
|
137
|
-
}
|
|
138
|
-
)
|
|
139
|
-
]
|
|
140
|
-
}
|
|
141
|
-
)
|
|
142
|
-
}
|
|
143
|
-
);
|
|
144
|
-
};
|
|
145
|
-
export {
|
|
146
|
-
G as D,
|
|
147
|
-
O as v
|
|
148
|
-
};
|