@stihl-design-system/components 1.0.0-RC.31 → 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/Popover.CXyUaXiO.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/logo100years.CQrEg-Vo.css +1 -0
- package/assets/step.BeLporJO.css +1 -0
- package/assets/switch.B9B-n_3y.css +1 -0
- package/assets/tooltip.Co1gWF_0.css +1 -0
- package/{asterisk.CR60hx8S.js → asterisk.B2ih8VwF.js} +1 -1
- package/{banner.j9YpudOS.js → banner.CI5HnDqD.js} +3 -3
- package/breadcrumb.CtwAux3P.js +11 -0
- package/button.DHuKanZP.js +13 -0
- package/buttonround.CMlmEDaN.js +96 -0
- 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.DOYsEHPr.js +180 -0
- package/chunks/ActionLink.DbyciN3Y.js +153 -0
- package/chunks/{AriaLiveRegions.utils.Cb327d_2.js → AriaLiveRegions.utils.CybNIBSa.js} +2 -2
- package/chunks/{Breadcrumb.BGzwzvh8.js → Breadcrumb.BgnpTo01.js} +35 -37
- package/chunks/Button.DCZgBNmA.js +142 -0
- package/chunks/Checkbox.BcGXAuuP.js +88 -0
- package/chunks/{CheckboxGroup.Dy_6tiGk.js → CheckboxGroup.BuFd1luB.js} +5 -5
- package/chunks/Chip.D6pubCZV.js +133 -0
- package/chunks/{CustomReactSelect.iE5iTdez.js → CustomReactSelect.Dg3wC_VH.js} +484 -473
- package/chunks/Dialog.DpqSVrYR.js +102 -0
- package/chunks/Drawer.DISWybOa.js +107 -0
- package/chunks/{Fieldset.CjIfmN_5.js → Fieldset.DiMtr6Vw.js} +6 -6
- package/chunks/Header.7TQL_J9t.js +370 -0
- package/chunks/Icon.CDLyB7Pv.js +229 -0
- 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.DC2POUc1.js → InputPassword.DbdjuSiJ.js} +34 -34
- package/chunks/InputSearch.joxmugiv.js +173 -0
- package/chunks/LinkButton.BZgIGgc8.js +132 -0
- package/chunks/MegaMenu.CQbOeaib.js +189 -0
- package/chunks/NavigationTabList.G_l0GiUa.js +67 -0
- package/chunks/{NavigationTabs.ClpVGcl0.js → NavigationTabs.BwM-6CRm.js} +13 -14
- package/chunks/Notification.CrojkJ0E.js +91 -0
- package/chunks/Popover.Bb0Pjmvg.js +215 -0
- package/chunks/{RadioGroup.peTeMK45.js → RadioGroup.CexC4v2Z.js} +5 -5
- package/chunks/Select.BEIdNMML.js +164 -0
- package/chunks/{Slider.kyVr7BLk.js → Slider.CR0zYHeZ.js} +70 -71
- package/chunks/Stepper.PTQdQBYf.js +152 -0
- package/chunks/{SystemFeedback.B9f67mjJ.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/battery-charge-0.DxlgEAto.js +10 -0
- package/chunks/battery-charge-100.D0Cax7dU.js +10 -0
- package/chunks/{battery.YCg9lYqC.js → battery.6Idoickg.js} +3 -3
- package/chunks/bluetooth-off.BzZCh4Q8.js +10 -0
- 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/document-s.CoOp0kBK.js +10 -0
- 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/ActionButton/ActionButton.d.ts +2 -0
- package/components/Button/Button.d.ts +4 -0
- package/components/ChipGroup/Chip.d.ts +1 -0
- package/components/ChipGroup/ChipGroup.d.ts +4 -0
- package/components/ChipGroup/ChipGroup.utils.d.ts +10 -12
- package/components/Combobox/Combobox.utils.d.ts +3 -4
- package/components/Combobox/CustomReactSelect/CustomReactSelect.d.ts +4 -2
- package/components/Header/Header.d.ts +4 -5
- package/components/{InputStepper/InputStepper.d.ts → InputNumber/InputNumber.d.ts} +10 -4
- package/components/InputNumber/InputNumber.utils.d.ts +13 -0
- package/components/LinkButton/LinkButton.d.ts +2 -0
- package/components/Logo100Years/Logo100Years.d.ts +1 -0
- package/components/Popover/Popover.d.ts +29 -7
- package/components/Popover/Popover.utils.d.ts +34 -3
- 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/components/Tooltip/Tooltip.d.ts +40 -0
- package/components/Tooltip/Tooltip.test.d.ts +1 -0
- package/components/Tooltip/Tooltip.utils.d.ts +70 -0
- package/components/Tooltip/Tooltip.utils.test.d.ts +1 -0
- package/components/TopBar/TopBar.d.ts +4 -4
- package/components/TopBar/TopBar.utils.d.ts +1 -1
- 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.nunJKxkv.js → filelist.DgVuWpR3.js} +23 -24
- package/{flag.D_iN8iD6.js → flag.CE32qHPa.js} +3 -3
- package/floatingactionbutton.Bsnncudt.js +87 -0
- 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 +217 -204
- 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.f8MMZo-w.js +81 -0
- package/linkbutton.BYAvi-_V.js +12 -0
- package/{logo.C96KaG1P.js → logo.DprmD8HU.js} +3 -3
- package/logo100years.B4d_DIiB.js +24 -0
- package/logo100years.d.ts +2 -0
- 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.D97W3zeW.js → optioncheckbox.nBVwGv6c.js} +3 -3
- package/package.json +41 -51
- package/partials/index.js +58 -52
- 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._F-d8y5b.js → skiptocontent.CHVh0hbr.js} +4 -4
- package/slider.C5dK6KcG.js +11 -0
- package/{spinner.Dht6FspZ.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.B37S4vfP.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/tooltip.d.ts +2 -0
- package/topbar.Bxwvp9Lf.js +12 -0
- package/types/icon-types.d.ts +1 -1
- package/types/prettier-plugin-organize-imports.d.ts +1 -0
- package/utils/index.d.ts +1 -0
- package/utils/mergeRefs.d.ts +5 -0
- package/utils/mergeRefs.test.d.ts +1 -0
- package/accordion.DkwtJy--.js +0 -12
- package/actionbutton.u1qp8oGC.js +0 -11
- package/actionlink.C7HzeIVa.js +0 -11
- 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.D0b1Hg1T.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.Dth4qZN_.css +0 -1
- package/assets/LinkButton.xMvg_ojf.css +0 -1
- package/assets/Notification.BOuaA5GT.css +0 -1
- package/assets/Popover.BDTDsPAt.css +0 -1
- package/assets/Select.CYACicZ3.css +0 -1
- package/assets/Slider.DzwSjDPV.css +0 -1
- package/assets/Textarea.BXWhXpXx.css +0 -1
- package/assets/Toast.CJ1zhDIT.css +0 -1
- package/assets/buttonround.Cw9hnUan.css +0 -1
- package/assets/input.ONbL-_C1.css +0 -1
- package/assets/switch.Bc9KIyw9.css +0 -1
- package/breadcrumb.BS-S3zUI.js +0 -11
- package/button.CPilCCUI.js +0 -12
- package/buttonround.C426mO4d.js +0 -81
- package/checkbox.BtlUvs0z.js +0 -12
- package/checkboxgroup.C5NgyyQF.js +0 -9
- package/chip.tVIG1ysH.js +0 -11
- package/chipgroup.CjIK0Z0x.js +0 -209
- package/chunks/Accordion.C5V5IcM-.js +0 -170
- package/chunks/ActionButton.B8zFwOrJ.js +0 -165
- package/chunks/ActionLink.IX6oRXU3.js +0 -138
- package/chunks/Button.B7xF1E19.js +0 -127
- package/chunks/Checkbox.DxV7-F5W.js +0 -88
- package/chunks/Chip.31UfPwQF.js +0 -119
- package/chunks/Dialog.B_2pKRnd.js +0 -135
- package/chunks/Drawer.HFlBTcqN.js +0 -140
- package/chunks/Header.DqZRryB5.js +0 -366
- package/chunks/Icon.DGTYCv63.js +0 -231
- package/chunks/InputFile.DvOatDzg.js +0 -220
- package/chunks/InputSearch.B0aCuPRZ.js +0 -174
- package/chunks/InputStepper.D_1YqlWl.js +0 -263
- package/chunks/LinkButton.DdTspmJz.js +0 -117
- package/chunks/MegaMenu.BY7eOnhj.js +0 -189
- package/chunks/NavigationTabList.dYFYTmWv.js +0 -57
- package/chunks/Notification.DIdIhGTQ.js +0 -92
- package/chunks/Popover.NGetxKGg.js +0 -159
- package/chunks/Select.BDHLJ2ma.js +0 -162
- package/chunks/Tabs.CkVL8Jw8.js +0 -83
- package/chunks/Textarea.ORkJUx-S.js +0 -163
- package/chunks/Toast.DHo4pLH3.js +0 -76
- package/chunks/file-type-doc.DlovDOBh.js +0 -10
- package/chunks/floating-ui.dom.C9TD1WpB.js +0 -950
- package/chunks/floating-ui.react.x0F9CYgn.js +0 -1637
- 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.Bk2ycofh.js +0 -60
- package/components/InputStepper/InputStepper.utils.d.ts +0 -12
- package/customreactselect.Hnch9LGg.js +0 -14
- package/dialog.7sWoqGwL.js +0 -10
- package/drawer.DsF4KIPn.js +0 -10
- package/fieldset.DUFUMcT-.js +0 -11
- package/floatingactionbutton.DOH2k0gv.js +0 -72
- package/header.QpNjE3N-.js +0 -12
- package/icon.vMQcEBnH.js +0 -9
- package/input.BKHOY118.js +0 -203
- package/inputfile.DK8759wV.js +0 -17
- package/inputpassword.rV_ZZw5F.js +0 -13
- package/inputsearch.CmhakTpa.js +0 -14
- package/inputstepper.Y-YzUHhF.js +0 -16
- package/inputstepper.d.ts +0 -2
- package/link.D_FjTyoZ.js +0 -66
- package/linkbutton.D2C4vykc.js +0 -11
- package/megamenu.CdHrEeoh.js +0 -12
- package/navigationtablist.CVjh1k-b.js +0 -9
- package/navigationtabs.BGfi9AG2.js +0 -9
- package/notification.Dn-FZWEL.js +0 -10
- package/popover.DXxm1oWI.js +0 -11
- package/radiogroup.J8WpEEo8.js +0 -11
- package/scroller.BiRLQg__.js +0 -123
- package/select.DIzGPVx3.js +0 -13
- package/slider.DuJK0RdB.js +0 -11
- package/systemfeedback.C_2PhwKe.js +0 -10
- package/tablist.g_Nwu6GA.js +0 -256
- package/tabs.oh9-wHPp.js +0 -11
- package/text.ZOUuesnU.js +0 -10
- package/textarea.dQ12-oYB.js +0 -13
- package/toast.sMNbfKxi.js +0 -11
- package/toastmanager.CVamaS5T.js +0 -116
- package/topbar.Dhy_TL0U.js +0 -11
- /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
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import "react/jsx-runtime";
|
|
3
|
+
import "./chunks/index.D-sRdssb.js";
|
|
4
|
+
import "./chunks/index.DL9mof6u.js";
|
|
5
|
+
import "react";
|
|
6
|
+
import "./chunks/Button.DCZgBNmA.js";
|
|
7
|
+
import "./link.f8MMZo-w.js";
|
|
8
|
+
import { D as c } from "./chunks/Breadcrumb.BgnpTo01.js";
|
|
9
|
+
export {
|
|
10
|
+
c as DSBreadcrumb
|
|
11
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import "react/jsx-runtime";
|
|
3
|
+
import "./chunks/index.D-sRdssb.js";
|
|
4
|
+
import "./chunks/index.DL9mof6u.js";
|
|
5
|
+
import "react";
|
|
6
|
+
import "./chunks/useBreakpoint.BzR_yaIv.js";
|
|
7
|
+
import "./chunks/Icon.CDLyB7Pv.js";
|
|
8
|
+
import "./spinner.C9qCeq0R.js";
|
|
9
|
+
import "./tooltip.QJe_bfO-.js";
|
|
10
|
+
import { D } from "./chunks/Button.DCZgBNmA.js";
|
|
11
|
+
export {
|
|
12
|
+
D as DSButton
|
|
13
|
+
};
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsxs as P, jsx as D } from "react/jsx-runtime";
|
|
3
|
+
import { d as Q } from "./chunks/index.D-sRdssb.js";
|
|
4
|
+
import { c as K } from "./chunks/index.DL9mof6u.js";
|
|
5
|
+
import { D as U } from "./chunks/Icon.CDLyB7Pv.js";
|
|
6
|
+
import { DSSpinner as V } from "./spinner.C9qCeq0R.js";
|
|
7
|
+
import { Tooltip as M } from "./tooltip.QJe_bfO-.js";
|
|
8
|
+
import { forwardRef as W } from "react";
|
|
9
|
+
import './assets/buttonround.BN3vUDc_.css';const X = "ds-button-round_root_1yumq_1", Y = "ds-button-round_root--highlight_1yumq_75", Z = "ds-button-round_root--dark-highlight_1yumq_75", tt = "ds-button-round_root--filled_1yumq_151", ot = "ds-button-round_root--dark-filled_1yumq_393", lt = "ds-button-round_root--icon-only-small_1yumq_647", et = "ds-button-round_icon--hidden_1yumq_664", it = "ds-button-round_label--hidden_1yumq_668", nt = "ds-button-round_label--loading_1yumq_680", st = "ds-button-round_loader_1yumq_684", l = {
|
|
10
|
+
root: X,
|
|
11
|
+
rootHighlight: Y,
|
|
12
|
+
rootDarkHighlight: Z,
|
|
13
|
+
rootFilled: tt,
|
|
14
|
+
rootDarkFilled: ot,
|
|
15
|
+
rootIconOnlySmall: lt,
|
|
16
|
+
iconHidden: et,
|
|
17
|
+
labelHidden: it,
|
|
18
|
+
labelLoading: nt,
|
|
19
|
+
loader: st
|
|
20
|
+
}, rt = W((I, L) => {
|
|
21
|
+
const t = Q.c(55);
|
|
22
|
+
let r, d, a, i, n, c, g, _, b, p, y, s;
|
|
23
|
+
t[0] !== I ? ({
|
|
24
|
+
children: d,
|
|
25
|
+
aria: r,
|
|
26
|
+
className: a,
|
|
27
|
+
disabled: g,
|
|
28
|
+
iconName: _,
|
|
29
|
+
iconSource: i,
|
|
30
|
+
loading: b,
|
|
31
|
+
theme: p,
|
|
32
|
+
tooltip: s,
|
|
33
|
+
variant: y,
|
|
34
|
+
onClick: n,
|
|
35
|
+
...c
|
|
36
|
+
} = I, t[0] = I, t[1] = r, t[2] = d, t[3] = a, t[4] = i, t[5] = n, t[6] = c, t[7] = g, t[8] = _, t[9] = b, t[10] = p, t[11] = y, t[12] = s) : (r = t[1], d = t[2], a = t[3], i = t[4], n = t[5], c = t[6], g = t[7], _ = t[8], b = t[9], p = t[10], y = t[11], s = t[12]);
|
|
37
|
+
const H = g === void 0 ? !1 : g, q = _ === void 0 ? "placeholder" : _, o = b === void 0 ? !1 : b, R = p === void 0 ? "light" : p, k = y === void 0 ? "filled" : y, j = k === "filled", B = k === "highlight", E = R === "dark" && k === "filled", T = R === "dark" && k === "highlight";
|
|
38
|
+
let N;
|
|
39
|
+
t[13] !== a || t[14] !== j || t[15] !== B || t[16] !== E || t[17] !== T ? (N = K(l.root, l.rootIconOnlySmall, a, {
|
|
40
|
+
[l.rootFilled]: j,
|
|
41
|
+
[l.rootHighlight]: B,
|
|
42
|
+
[l.rootDarkFilled]: E,
|
|
43
|
+
[l.rootDarkHighlight]: T
|
|
44
|
+
}), t[13] = a, t[14] = j, t[15] = B, t[16] = E, t[17] = T, t[18] = N) : N = t[18];
|
|
45
|
+
const w = N;
|
|
46
|
+
let S;
|
|
47
|
+
t[19] !== o ? (S = K(l.label, l.labelHidden, {
|
|
48
|
+
[l.labelLoading]: o
|
|
49
|
+
}), t[19] = o, t[20] = S) : S = t[20];
|
|
50
|
+
const A = S;
|
|
51
|
+
let v;
|
|
52
|
+
t[21] !== o ? (v = K(l.icon, {
|
|
53
|
+
[l.iconHidden]: o
|
|
54
|
+
}), t[21] = o, t[22] = v) : v = t[22];
|
|
55
|
+
const $ = v, z = R === "light" && k === "filled" ? "dark" : "light";
|
|
56
|
+
let C;
|
|
57
|
+
t[23] !== H || t[24] !== o || t[25] !== n ? (C = (e) => {
|
|
58
|
+
if (H || o) {
|
|
59
|
+
e.preventDefault();
|
|
60
|
+
return;
|
|
61
|
+
}
|
|
62
|
+
n && n(e);
|
|
63
|
+
}, t[23] = H, t[24] = o, t[25] = n, t[26] = C) : C = t[26];
|
|
64
|
+
const G = C, J = H || o;
|
|
65
|
+
let u;
|
|
66
|
+
t[27] !== o ? (u = o && /* @__PURE__ */ D(V, { className: l.loader, aria: {
|
|
67
|
+
"aria-label": "Loading state"
|
|
68
|
+
} }), t[27] = o, t[28] = u) : u = t[28];
|
|
69
|
+
let m;
|
|
70
|
+
t[29] !== d || t[30] !== A ? (m = /* @__PURE__ */ D("span", { className: A, children: d }), t[29] = d, t[30] = A, t[31] = m) : m = t[31];
|
|
71
|
+
let h;
|
|
72
|
+
t[32] !== $ || t[33] !== q || t[34] !== i || t[35] !== z ? (h = (q || i) && /* @__PURE__ */ D(U, { name: q, theme: z, source: i, className: $, "aria-hidden": "true" }), t[32] = $, t[33] = q, t[34] = i, t[35] = z, t[36] = h) : h = t[36];
|
|
73
|
+
let F;
|
|
74
|
+
t[37] !== r || t[38] !== G || t[39] !== o || t[40] !== L || t[41] !== c || t[42] !== w || t[43] !== J || t[44] !== u || t[45] !== m || t[46] !== h ? (F = /* @__PURE__ */ P("button", { className: w, type: "button", onClick: G, ...r, ...c, "aria-disabled": J, "aria-busy": o, ref: L, children: [
|
|
75
|
+
u,
|
|
76
|
+
m,
|
|
77
|
+
h
|
|
78
|
+
] }), t[37] = r, t[38] = G, t[39] = o, t[40] = L, t[41] = c, t[42] = w, t[43] = J, t[44] = u, t[45] = m, t[46] = h, t[47] = F) : F = t[47];
|
|
79
|
+
const O = F;
|
|
80
|
+
if (s) {
|
|
81
|
+
let e;
|
|
82
|
+
t[48] !== O ? (e = /* @__PURE__ */ D(M.Anchor, { children: O }), t[48] = O, t[49] = e) : e = t[49];
|
|
83
|
+
let f;
|
|
84
|
+
t[50] !== s ? (f = /* @__PURE__ */ D(M.Content, { children: s }), t[50] = s, t[51] = f) : f = t[51];
|
|
85
|
+
let x;
|
|
86
|
+
return t[52] !== e || t[53] !== f ? (x = /* @__PURE__ */ P(M, { placement: "top", tooltipOffset: 6, children: [
|
|
87
|
+
e,
|
|
88
|
+
f
|
|
89
|
+
] }), t[52] = e, t[53] = f, t[54] = x) : x = t[54], x;
|
|
90
|
+
}
|
|
91
|
+
return O;
|
|
92
|
+
});
|
|
93
|
+
rt.displayName = "DSButtonRound";
|
|
94
|
+
export {
|
|
95
|
+
rt as DSButtonRound
|
|
96
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import "react/jsx-runtime";
|
|
3
|
+
import "./chunks/index.DL9mof6u.js";
|
|
4
|
+
import "react";
|
|
5
|
+
import "./chunks/useBreakpoint.BzR_yaIv.js";
|
|
6
|
+
import "./chunks/index.D-sRdssb.js";
|
|
7
|
+
import "./chunks/Icon.CDLyB7Pv.js";
|
|
8
|
+
import "./chunks/SystemFeedback.CjlARKki.js";
|
|
9
|
+
import { D as x } from "./chunks/Checkbox.BcGXAuuP.js";
|
|
10
|
+
export {
|
|
11
|
+
x as DSCheckbox
|
|
12
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import "react/jsx-runtime";
|
|
3
|
+
import "./chunks/index.D-sRdssb.js";
|
|
4
|
+
import "./chunks/index.DL9mof6u.js";
|
|
5
|
+
import "./chunks/Fieldset.DiMtr6Vw.js";
|
|
6
|
+
import { D as e } from "./chunks/CheckboxGroup.BuFd1luB.js";
|
|
7
|
+
export {
|
|
8
|
+
e as DSCheckboxGroup
|
|
9
|
+
};
|
package/chip.B0s_fS8L.js
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import "react/jsx-runtime";
|
|
3
|
+
import "./chunks/index.D-sRdssb.js";
|
|
4
|
+
import "./chunks/index.DL9mof6u.js";
|
|
5
|
+
import "react";
|
|
6
|
+
import "./chunks/translate.nuU7uChI.js";
|
|
7
|
+
import "./chunks/Icon.CDLyB7Pv.js";
|
|
8
|
+
import "./tooltip.QJe_bfO-.js";
|
|
9
|
+
import { e as c } from "./chunks/Chip.D6pubCZV.js";
|
|
10
|
+
export {
|
|
11
|
+
c as DSChip
|
|
12
|
+
};
|
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsxs as q, jsx as I } from "react/jsx-runtime";
|
|
3
|
+
import { useState as S, useRef as L, useEffect as w, createElement as J } from "react";
|
|
4
|
+
import { c as $ } from "./chunks/index.DL9mof6u.js";
|
|
5
|
+
import { u as P } from "./chunks/useBreakpoint.BzR_yaIv.js";
|
|
6
|
+
import "./chunks/index.D-sRdssb.js";
|
|
7
|
+
import { g as Q } from "./chunks/AriaLiveRegions.utils.CybNIBSa.js";
|
|
8
|
+
import { v as W, a as X, e as Y } from "./chunks/Chip.D6pubCZV.js";
|
|
9
|
+
import './assets/chipgroup.BGxjdSDX.css';const Z = "ds-chip-group_label--hidden_3zmt2_1", x = "ds-chip-group_root_3zmt2_14", v = {
|
|
10
|
+
labelHidden: Z,
|
|
11
|
+
root: x
|
|
12
|
+
}, ne = ({
|
|
13
|
+
chips: g,
|
|
14
|
+
id: h,
|
|
15
|
+
label: b,
|
|
16
|
+
className: A,
|
|
17
|
+
disableTooltips: K = !1,
|
|
18
|
+
hideLabel: C = !1,
|
|
19
|
+
isRemovable: r = !1,
|
|
20
|
+
lang: N = "en",
|
|
21
|
+
selectionMode: c = "single",
|
|
22
|
+
size: T = "medium",
|
|
23
|
+
translations: B,
|
|
24
|
+
onChipsChange: o,
|
|
25
|
+
...F
|
|
26
|
+
}) => {
|
|
27
|
+
process.env.NODE_ENV !== "production" && W({
|
|
28
|
+
chips: g,
|
|
29
|
+
id: h,
|
|
30
|
+
label: b
|
|
31
|
+
});
|
|
32
|
+
const [l, i] = S(null), [n, d] = S(() => g.map((e) => ({
|
|
33
|
+
...e
|
|
34
|
+
}))), D = L(null), [f, k] = S(), m = L([]);
|
|
35
|
+
w(() => {
|
|
36
|
+
d(g.map((e) => ({
|
|
37
|
+
...e
|
|
38
|
+
})));
|
|
39
|
+
}, [g]), w(() => {
|
|
40
|
+
X();
|
|
41
|
+
const e = () => k("keydown"), t = () => k(null), s = () => k(null);
|
|
42
|
+
return document.addEventListener("keydown", e), document.addEventListener("mousedown", t), document.addEventListener("touchstart", s), () => {
|
|
43
|
+
document.removeEventListener("keydown", e), document.removeEventListener("mousedown", t), document.removeEventListener("touchstart", s);
|
|
44
|
+
};
|
|
45
|
+
}, []), w(() => {
|
|
46
|
+
l !== null && m.current[l] && f === "keydown" && m.current[l]?.focus();
|
|
47
|
+
}, [l]), w(() => {
|
|
48
|
+
f === "keydown" && l !== null && n.length > 0 && m.current.forEach((e, t) => {
|
|
49
|
+
e && (e.tabIndex = t === l ? 0 : -1, t === l && e.focus());
|
|
50
|
+
});
|
|
51
|
+
}, [n]);
|
|
52
|
+
const G = (e) => {
|
|
53
|
+
if (l === null)
|
|
54
|
+
return;
|
|
55
|
+
let t = l;
|
|
56
|
+
switch (e.key) {
|
|
57
|
+
case "a":
|
|
58
|
+
(e.metaKey || e.ctrlKey) && (e.preventDefault(), H());
|
|
59
|
+
break;
|
|
60
|
+
case "ArrowRight":
|
|
61
|
+
case "ArrowDown":
|
|
62
|
+
e.shiftKey && c === "multiple" && !r ? (t = l + 1 > n.length - 1 ? n.length - 1 : l + 1, l !== t ? (u(l), u(t)) : n[l].isSelected || u(l)) : (t = (l + 1) % n.length, e.preventDefault());
|
|
63
|
+
break;
|
|
64
|
+
case "ArrowLeft":
|
|
65
|
+
case "ArrowUp":
|
|
66
|
+
e.shiftKey && c === "multiple" && !r ? (t = l - 1 < 0 ? 0 : l - 1, l !== t ? (u(l), u(t)) : n[0].isSelected || u(0)) : (t = (l - 1 + n.length) % n.length, e.preventDefault());
|
|
67
|
+
break;
|
|
68
|
+
case "Enter":
|
|
69
|
+
case " ":
|
|
70
|
+
if (e.preventDefault(), r) {
|
|
71
|
+
y(t);
|
|
72
|
+
return;
|
|
73
|
+
} else
|
|
74
|
+
E(t);
|
|
75
|
+
break;
|
|
76
|
+
case "Backspace":
|
|
77
|
+
r && y(t), e.preventDefault();
|
|
78
|
+
return;
|
|
79
|
+
default:
|
|
80
|
+
return;
|
|
81
|
+
}
|
|
82
|
+
i(t);
|
|
83
|
+
}, H = () => {
|
|
84
|
+
if (c !== "multiple")
|
|
85
|
+
return;
|
|
86
|
+
const e = n.map((t) => ({
|
|
87
|
+
...t,
|
|
88
|
+
selected: !t.disabled
|
|
89
|
+
}));
|
|
90
|
+
d(e), p(`${e.length} items selected`), o && o(e);
|
|
91
|
+
}, u = (e) => {
|
|
92
|
+
if (r)
|
|
93
|
+
return;
|
|
94
|
+
const t = n.map((s) => ({
|
|
95
|
+
...s
|
|
96
|
+
}));
|
|
97
|
+
t[e].disabled || (t[e].isSelected = !0, p(`${t[e].label} selected, ${t.filter(({
|
|
98
|
+
isSelected: s
|
|
99
|
+
}) => s).length} items selected`), d(t), o && o(t));
|
|
100
|
+
}, E = (e) => {
|
|
101
|
+
if (r)
|
|
102
|
+
return;
|
|
103
|
+
const t = [...n];
|
|
104
|
+
t[e].disabled || (c === "single" ? t.forEach((s, a) => {
|
|
105
|
+
a === e ? (s.isSelected = !s.isSelected, p(`${s.label} ${s.isSelected ? "selected" : "not selected"}`)) : s.isSelected = !1;
|
|
106
|
+
}) : c === "multiple" && (t[e].isSelected = !t[e].isSelected, p(`${t[e].label} ${t[e].isSelected ? "selected" : "not selected"}, ${t.filter(({
|
|
107
|
+
isSelected: s
|
|
108
|
+
}) => s).length} items selected`)), d(t), o && o(t));
|
|
109
|
+
}, y = (e) => {
|
|
110
|
+
const t = n[e], s = n.filter((a, U) => U !== e).map((a) => ({
|
|
111
|
+
...a
|
|
112
|
+
}));
|
|
113
|
+
if (d(s), p(`${t.label} removed, ${s.length} items remaining`), f === "keydown")
|
|
114
|
+
if (s.length > 0) {
|
|
115
|
+
const a = Math.min(e, s.length - 1);
|
|
116
|
+
i(a);
|
|
117
|
+
} else
|
|
118
|
+
D.current?.focus(), i(null);
|
|
119
|
+
o && o(s);
|
|
120
|
+
}, V = (e) => {
|
|
121
|
+
r ? y(e) : n[e].disabled || E(e);
|
|
122
|
+
}, p = (e) => {
|
|
123
|
+
const t = Q();
|
|
124
|
+
t && (t.innerText = e, setTimeout(() => {
|
|
125
|
+
t.innerText = "";
|
|
126
|
+
}, 350));
|
|
127
|
+
}, j = (e) => l === null || l === e ? 0 : -1, z = P(C), O = $(v.root, A);
|
|
128
|
+
return n.length === 0 ? null : /* @__PURE__ */ q("div", { children: [
|
|
129
|
+
/* @__PURE__ */ I("div", { id: h, className: $({
|
|
130
|
+
[v.labelHidden]: z
|
|
131
|
+
}), children: b }),
|
|
132
|
+
n.length > 0 && /* @__PURE__ */ I("div", { ref: D, role: "grid", "aria-labelledby": h, "aria-multiselectable": c === "multiple", tabIndex: -1, onKeyDown: G, onFocus: () => {
|
|
133
|
+
l === null ? (m.current[0].focus(), f === "keydown" && i(0)) : f === "keydown" && i(l);
|
|
134
|
+
}, onBlur: () => i(null), className: O, ...F, children: n.map((e, t) => /* @__PURE__ */ J(Y, { ...e, key: `${e.id}-${t}`, "data-focused": l === t, disableTooltips: K, groupId: h, isRemovable: r, lang: N, selectionMode: c, size: T, tabIndex: j(t), translations: B, onClick: (s) => {
|
|
135
|
+
V(t), e.onClick && e.onClick(s);
|
|
136
|
+
}, ref: (s) => {
|
|
137
|
+
m.current[t] = s;
|
|
138
|
+
} })) })
|
|
139
|
+
] });
|
|
140
|
+
};
|
|
141
|
+
export {
|
|
142
|
+
ne as DSChipGroup
|
|
143
|
+
};
|
|
@@ -0,0 +1,168 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as m, jsxs as V } from "react/jsx-runtime";
|
|
3
|
+
import { d as ye } from "./index.D-sRdssb.js";
|
|
4
|
+
import { c as W } from "./index.DL9mof6u.js";
|
|
5
|
+
import { forwardRef as fe, useRef as Se, useState as ge, useImperativeHandle as Ce, useEffect as _e } from "react";
|
|
6
|
+
import { DSHeading as ve } from "../heading.DHLpT4dc.js";
|
|
7
|
+
import { D as We } from "./Icon.CDLyB7Pv.js";
|
|
8
|
+
import { NumberIndicator as qe } from "../numberindicator.BdnPMogE.js";
|
|
9
|
+
import { g as ie } from "./helpers.CexwVao7.js";
|
|
10
|
+
import '../assets/Accordion.CzBGud45.css';const Oe = "ds-accordion_details_1qee7_1", Ne = "ds-accordion_summary_1qee7_119", we = "ds-accordion_summary--utility--m_1qee7_158", De = "ds-accordion_summary--flush_1qee7_187", xe = "ds-accordion_summary--small_1qee7_255", Ie = "ds-accordion_summary--x-small_1qee7_259", Ee = "ds-accordion_summary-content-wrapper_1qee7_264", Ae = "ds-accordion_summary-content-wrapper--flush_1qee7_270", Xe = "ds-accordion_summary-content-wrapper--chevron-left_1qee7_274", be = "ds-accordion_summary-content-wrapper--x-small_1qee7_278", Fe = "ds-accordion_heading-summary-wrapper_1qee7_282", Te = "ds-accordion_heading-summary_1qee7_282", Pe = "ds-accordion_heading-summary--x-small_1qee7_292", Re = "ds-accordion_hint_1qee7_296", Le = "ds-accordion_icon_1qee7_310", je = "ds-accordion_icon--open_1qee7_321", ze = "ds-accordion_icon--open-caret_1qee7_332", Me = "ds-accordion_content-wrapper_1qee7_344", He = "ds-accordion_content-wrapper--flush_1qee7_350", Ue = "ds-accordion_content-wrapper--small_1qee7_354", Ve = "ds-accordion_content-wrapper--x-small_1qee7_358", t = {
|
|
11
|
+
details: Oe,
|
|
12
|
+
summary: Ne,
|
|
13
|
+
summaryUtilityM: we,
|
|
14
|
+
summaryFlush: De,
|
|
15
|
+
summarySmall: xe,
|
|
16
|
+
summaryXSmall: Ie,
|
|
17
|
+
summaryContentWrapper: Ee,
|
|
18
|
+
summaryContentWrapperFlush: Ae,
|
|
19
|
+
summaryContentWrapperChevronLeft: Xe,
|
|
20
|
+
summaryContentWrapperXSmall: be,
|
|
21
|
+
headingSummaryWrapper: Fe,
|
|
22
|
+
headingSummary: Te,
|
|
23
|
+
headingSummaryXSmall: Pe,
|
|
24
|
+
hint: Re,
|
|
25
|
+
icon: Le,
|
|
26
|
+
iconOpen: je,
|
|
27
|
+
iconOpenCaret: ze,
|
|
28
|
+
contentWrapper: Me,
|
|
29
|
+
contentWrapperFlush: He,
|
|
30
|
+
contentWrapperSmall: Ue,
|
|
31
|
+
contentWrapperXSmall: Ve
|
|
32
|
+
}, tt = ["medium", "small", "x-small"], rt = ["chevron", "caret"], nt = ["left", "right"], Ze = ({
|
|
33
|
+
children: q,
|
|
34
|
+
hint: Z,
|
|
35
|
+
numberIndicatorValue: e,
|
|
36
|
+
summary: n
|
|
37
|
+
}) => {
|
|
38
|
+
if (!q)
|
|
39
|
+
throw new Error(ie("DSAccordion", "The component requires children to be set."));
|
|
40
|
+
if (!n)
|
|
41
|
+
throw new Error(ie("DSAccordion", "The summary prop is required. Please add the summary prop to the DSAccordion component."));
|
|
42
|
+
if (Z && (e || e === ""))
|
|
43
|
+
throw new Error(ie("DSAccordion", "The hint and numberIndicator props cannot be used together. Please remove either the hint prop or the numberIndicatorValue prop."));
|
|
44
|
+
}, $e = fe((q, Z) => {
|
|
45
|
+
const e = ye.c(73);
|
|
46
|
+
let n, i, o, s, p, r, O, N, w, D;
|
|
47
|
+
e[0] !== q ? ({
|
|
48
|
+
children: n,
|
|
49
|
+
summary: r,
|
|
50
|
+
chevronPosition: O,
|
|
51
|
+
className: i,
|
|
52
|
+
hint: o,
|
|
53
|
+
isFlush: N,
|
|
54
|
+
isOpen: w,
|
|
55
|
+
numberIndicatorValue: s,
|
|
56
|
+
size: D,
|
|
57
|
+
...p
|
|
58
|
+
} = q, e[0] = q, e[1] = n, e[2] = i, e[3] = o, e[4] = s, e[5] = p, e[6] = r, e[7] = O, e[8] = N, e[9] = w, e[10] = D) : (n = e[1], i = e[2], o = e[3], s = e[4], p = e[5], r = 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, l = w === void 0 ? !1 : w, d = D === void 0 ? "medium" : D;
|
|
60
|
+
process.env.NODE_ENV !== "production" && Ze({
|
|
61
|
+
children: n,
|
|
62
|
+
hint: o,
|
|
63
|
+
numberIndicatorValue: s,
|
|
64
|
+
summary: r
|
|
65
|
+
});
|
|
66
|
+
const $ = pe === "right" ? "chevron" : "caret", c = Se(null), [de, ue] = ge(l);
|
|
67
|
+
let I;
|
|
68
|
+
e[11] === Symbol.for("react.memo_cache_sentinel") ? (I = () => c.current, e[11] = I) : I = e[11], Ce(Z, I);
|
|
69
|
+
let E;
|
|
70
|
+
e[12] === Symbol.for("react.memo_cache_sentinel") ? (E = () => {
|
|
71
|
+
c.current && ue(c.current.open);
|
|
72
|
+
}, e[12] = E) : E = e[12];
|
|
73
|
+
let A;
|
|
74
|
+
e[13] !== l ? (A = [l], e[13] = l, e[14] = A) : A = e[14], _e(E, A);
|
|
75
|
+
let X, b;
|
|
76
|
+
e[15] === Symbol.for("react.memo_cache_sentinel") ? (X = () => {
|
|
77
|
+
const he = () => {
|
|
78
|
+
c.current && ue(c.current.open);
|
|
79
|
+
};
|
|
80
|
+
return c.current?.addEventListener("toggle", he), () => {
|
|
81
|
+
c.current?.removeEventListener("toggle", he);
|
|
82
|
+
};
|
|
83
|
+
}, b = [], e[15] = X, e[16] = b) : (X = e[15], b = e[16]), _e(X, b);
|
|
84
|
+
let F, T, P;
|
|
85
|
+
const x = typeof r == "object" && r !== void 0;
|
|
86
|
+
x && ({
|
|
87
|
+
headingSize: F,
|
|
88
|
+
headingTag: T,
|
|
89
|
+
headingText: P
|
|
90
|
+
} = r);
|
|
91
|
+
let R;
|
|
92
|
+
e[17] !== i ? (R = W(t.details, i), e[17] = i, e[18] = R) : R = e[18];
|
|
93
|
+
const k = R, B = d === "small", G = d === "x-small", J = !x;
|
|
94
|
+
let L;
|
|
95
|
+
e[19] !== a || e[20] !== B || e[21] !== G || e[22] !== J ? (L = W(t.summary, {
|
|
96
|
+
[t.summaryFlush]: a,
|
|
97
|
+
[t.summarySmall]: B,
|
|
98
|
+
[t.summaryXSmall]: G,
|
|
99
|
+
[t.summaryUtilityM]: J
|
|
100
|
+
}), e[19] = a, e[20] = B, e[21] = G, e[22] = J, e[23] = L) : L = e[23];
|
|
101
|
+
const K = L, Q = pe === "left", Y = d === "x-small";
|
|
102
|
+
let j;
|
|
103
|
+
e[24] !== a || e[25] !== Q || e[26] !== Y ? (j = W(t.summaryContentWrapper, {
|
|
104
|
+
[t.summaryContentWrapperFlush]: a,
|
|
105
|
+
[t.summaryContentWrapperChevronLeft]: Q,
|
|
106
|
+
[t.summaryContentWrapperXSmall]: Y
|
|
107
|
+
}), e[24] = a, e[25] = Q, e[26] = Y, e[27] = j) : j = e[27];
|
|
108
|
+
const ee = j, te = d === "x-small";
|
|
109
|
+
let z;
|
|
110
|
+
e[28] !== te ? (z = W(t.headingSummary, {
|
|
111
|
+
[t.headingSummaryXSmall]: te
|
|
112
|
+
}), e[28] = te, e[29] = z) : z = e[29];
|
|
113
|
+
const re = z, ne = $ === "chevron" && de, se = $ === "caret" && de;
|
|
114
|
+
let M;
|
|
115
|
+
e[30] !== ne || e[31] !== se ? (M = W(t.icon, {
|
|
116
|
+
[t.iconOpen]: ne,
|
|
117
|
+
[t.iconOpenCaret]: se
|
|
118
|
+
}), e[30] = ne, e[31] = se, e[32] = M) : M = e[32];
|
|
119
|
+
const ae = M, oe = d === "small", ce = d === "x-small";
|
|
120
|
+
let H;
|
|
121
|
+
e[33] !== a || e[34] !== oe || e[35] !== ce ? (H = W(t.contentWrapper, {
|
|
122
|
+
[t.contentWrapperFlush]: a,
|
|
123
|
+
[t.contentWrapperSmall]: oe,
|
|
124
|
+
[t.contentWrapperXSmall]: ce
|
|
125
|
+
}), e[33] = a, e[34] = oe, e[35] = ce, e[36] = H) : H = e[36];
|
|
126
|
+
const le = H;
|
|
127
|
+
let u;
|
|
128
|
+
e[37] !== F || e[38] !== T || e[39] !== P || e[40] !== x || e[41] !== r ? (u = x ? /* @__PURE__ */ m(ve, { tag: T, size: F, children: P }) : r, e[37] = F, e[38] = T, e[39] = P, e[40] = x, e[41] = r, e[42] = u) : u = e[42];
|
|
129
|
+
let h;
|
|
130
|
+
e[43] !== s ? (h = (s || s?.trim() === "") && /* @__PURE__ */ m("div", { children: /* @__PURE__ */ m(qe, { label: s }) }), e[43] = s, e[44] = h) : h = e[44];
|
|
131
|
+
let _;
|
|
132
|
+
e[45] !== re || e[46] !== u || e[47] !== h ? (_ = /* @__PURE__ */ V("div", { className: re, children: [
|
|
133
|
+
u,
|
|
134
|
+
h
|
|
135
|
+
] }), e[45] = re, e[46] = u, e[47] = h, e[48] = _) : _ = e[48];
|
|
136
|
+
let y;
|
|
137
|
+
e[49] !== o ? (y = o && /* @__PURE__ */ m("div", { className: t.hint, children: o }), e[49] = o, e[50] = y) : y = e[50];
|
|
138
|
+
let f;
|
|
139
|
+
e[51] !== _ || e[52] !== y ? (f = /* @__PURE__ */ V("div", { className: t.headingSummaryWrapper, children: [
|
|
140
|
+
_,
|
|
141
|
+
y
|
|
142
|
+
] }), e[51] = _, e[52] = y, e[53] = f) : f = e[53];
|
|
143
|
+
const me = $ === "chevron" ? "chevron-down" : "caret-right";
|
|
144
|
+
let S;
|
|
145
|
+
e[54] !== ae || e[55] !== me ? (S = /* @__PURE__ */ m(We, { name: me, "aria-hidden": "true", className: ae }), e[54] = ae, e[55] = me, e[56] = S) : S = e[56];
|
|
146
|
+
let g;
|
|
147
|
+
e[57] !== ee || e[58] !== f || e[59] !== S ? (g = /* @__PURE__ */ V("div", { className: ee, children: [
|
|
148
|
+
f,
|
|
149
|
+
S
|
|
150
|
+
] }), e[57] = ee, e[58] = f, e[59] = S, e[60] = g) : g = e[60];
|
|
151
|
+
let C;
|
|
152
|
+
e[61] !== K || e[62] !== g ? (C = /* @__PURE__ */ m("summary", { className: K, children: g }), e[61] = K, e[62] = g, e[63] = C) : C = e[63];
|
|
153
|
+
let v;
|
|
154
|
+
e[64] !== n || e[65] !== le ? (v = /* @__PURE__ */ m("div", { className: le, children: n }), e[64] = n, e[65] = le, e[66] = v) : v = e[66];
|
|
155
|
+
let U;
|
|
156
|
+
return e[67] !== k || e[68] !== l || e[69] !== p || e[70] !== C || e[71] !== v ? (U = /* @__PURE__ */ V("details", { ...p, ref: c, className: k, open: l, children: [
|
|
157
|
+
C,
|
|
158
|
+
v
|
|
159
|
+
] }), e[67] = k, e[68] = l, e[69] = p, e[70] = C, e[71] = v, e[72] = U) : U = e[72], U;
|
|
160
|
+
});
|
|
161
|
+
$e.displayName = "DSAccordion";
|
|
162
|
+
export {
|
|
163
|
+
tt as A,
|
|
164
|
+
nt as C,
|
|
165
|
+
$e as D,
|
|
166
|
+
rt as a,
|
|
167
|
+
Ze as v
|
|
168
|
+
};
|
|
@@ -0,0 +1,180 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsxs as Z, jsx as p, Fragment as wt } from "react/jsx-runtime";
|
|
3
|
+
import { d as At } from "./index.D-sRdssb.js";
|
|
4
|
+
import { c as S } from "./index.DL9mof6u.js";
|
|
5
|
+
import { forwardRef as yt } from "react";
|
|
6
|
+
import { D as gt } from "./Icon.CDLyB7Pv.js";
|
|
7
|
+
import { NumberIndicator as Tt } from "../numberindicator.BdnPMogE.js";
|
|
8
|
+
import { Tooltip as It } from "../tooltip.QJe_bfO-.js";
|
|
9
|
+
import { g as C } from "./helpers.CexwVao7.js";
|
|
10
|
+
import '../assets/ActionButton.oGVPTS1J.css';const St = "ds-action-button_root_15ybf_1", Ct = "ds-action-button_root--indent-level-1_15ybf_75", Ot = "ds-action-button_root--active_15ybf_78", Pt = "ds-action-button_root--active--with-marker_15ybf_81", Dt = "ds-action-button_root--icon--top_15ybf_84", Bt = "ds-action-button_root--stretched_15ybf_110", kt = "ds-action-button_active-marker_15ybf_115", Lt = "ds-action-button_active-marker--with-indent_15ybf_127", Et = "ds-action-button_icon-wrapper_15ybf_131", xt = "ds-action-button_icon-wrapper--x-large_15ybf_134", Mt = "ds-action-button_icon-wrapper--with-number-indicator_15ybf_137", Ut = "ds-action-button_icon-wrapper--with-number-indicator--with-value_15ybf_145", Vt = "ds-action-button_label_15ybf_149", zt = "ds-action-button_label--bold_15ybf_160", Rt = "ds-action-button_label--active_15ybf_171", Ht = "ds-action-button_label--icon-top_15ybf_182", Xt = "ds-action-button_number-indicator_15ybf_205", jt = "ds-action-button_label-wrapper_15ybf_209", Ft = "ds-action-button_label-wrapper--icon-top_15ybf_214", Gt = "ds-action-button_chevron_15ybf_218", Zt = "ds-action-button_chevron--icon-position-top_15ybf_233", $t = "ds-action-button_chevron--up_15ybf_239", qt = "ds-action-button_chevron--right_15ybf_250", Jt = "ds-action-button_chevron--left_15ybf_261", o = {
|
|
11
|
+
root: St,
|
|
12
|
+
rootIndentLevel1: Ct,
|
|
13
|
+
rootActive: Ot,
|
|
14
|
+
rootActiveWithMarker: Pt,
|
|
15
|
+
rootIconTop: Dt,
|
|
16
|
+
rootStretched: Bt,
|
|
17
|
+
activeMarker: kt,
|
|
18
|
+
activeMarkerWithIndent: Lt,
|
|
19
|
+
iconWrapper: Et,
|
|
20
|
+
iconWrapperXLarge: xt,
|
|
21
|
+
iconWrapperWithNumberIndicator: Mt,
|
|
22
|
+
iconWrapperWithNumberIndicatorWithValue: Ut,
|
|
23
|
+
label: Vt,
|
|
24
|
+
labelBold: zt,
|
|
25
|
+
labelActive: Rt,
|
|
26
|
+
labelIconTop: Ht,
|
|
27
|
+
numberIndicator: Xt,
|
|
28
|
+
labelWrapper: jt,
|
|
29
|
+
labelWrapperIconTop: Ft,
|
|
30
|
+
chevron: Gt,
|
|
31
|
+
chevronIconPositionTop: Zt,
|
|
32
|
+
chevronUp: $t,
|
|
33
|
+
chevronRight: qt,
|
|
34
|
+
chevronLeft: Jt
|
|
35
|
+
}, ao = ["left", "top"], so = ["large", "x-large"], lo = [0, 1], po = ["normal", "bold"], ho = ["up", "down", "right", "left"], Kt = ({
|
|
36
|
+
iconName: v,
|
|
37
|
+
iconSize: u,
|
|
38
|
+
iconSource: t,
|
|
39
|
+
iconPosition: d,
|
|
40
|
+
indentLevel: r,
|
|
41
|
+
stretched: h,
|
|
42
|
+
weight: b
|
|
43
|
+
}) => {
|
|
44
|
+
if (v && !t && u === "x-large" && console.warn(C("DSActionButton", 'An "iconSize" prop set to "x-large" has no effect when "iconName" is set. Please remove the "iconSize" prop or provide a custom icon via the "iconSource" prop.')), d === "top") {
|
|
45
|
+
if (!v && !t)
|
|
46
|
+
throw new Error(C("DSActionButton", 'The "iconPosition" prop should not be set to "top", when no "iconName" or "iconSource" prop was provided. Please either remove the "iconPosition" prop or set a valid icon via the "iconName" or "iconSource" prop.'));
|
|
47
|
+
u === "x-large" && console.warn(C("DSActionButton", 'An "iconSize" prop set to "x-large" has no effect when "iconPosition" is set to "top". Please remove the "iconSize" prop.')), b === "bold" && console.warn(C("DSActionButton", 'A "weight" prop set to "bold" with "iconPosition" set to "top" has no effect. Please remove the "weight" prop.')), r === 1 && console.warn(C("DSActionButton", 'An "indentLevel" prop set to "1" with "iconPosition" set to "top" has no effect. Please remove the "indentLevel" prop.')), h && console.warn(C("DSActionButton", 'A "stretched" prop set to "true" with "iconPosition" set to "top" has no effect. Please remove the "stretched" prop.'));
|
|
48
|
+
}
|
|
49
|
+
}, Qt = yt((v, u) => {
|
|
50
|
+
const t = At.c(91);
|
|
51
|
+
let d, r, h, b, c, a, i, f, m, O, P, D, B, k, L, E, _;
|
|
52
|
+
t[0] !== v ? ({
|
|
53
|
+
children: h,
|
|
54
|
+
aria: d,
|
|
55
|
+
chevronDirection: r,
|
|
56
|
+
className: b,
|
|
57
|
+
disabled: O,
|
|
58
|
+
iconName: c,
|
|
59
|
+
iconPosition: P,
|
|
60
|
+
iconSize: D,
|
|
61
|
+
iconSource: a,
|
|
62
|
+
indentLevel: B,
|
|
63
|
+
isActive: k,
|
|
64
|
+
numberIndicatorValue: i,
|
|
65
|
+
stretched: L,
|
|
66
|
+
weight: E,
|
|
67
|
+
tooltip: _,
|
|
68
|
+
onClick: f,
|
|
69
|
+
...m
|
|
70
|
+
} = v, t[0] = v, t[1] = d, t[2] = r, t[3] = h, t[4] = b, t[5] = c, t[6] = a, t[7] = i, t[8] = f, t[9] = m, t[10] = O, t[11] = P, t[12] = D, t[13] = B, t[14] = k, t[15] = L, t[16] = E, t[17] = _) : (d = t[1], r = t[2], h = t[3], b = t[4], c = t[5], a = t[6], i = t[7], f = t[8], m = t[9], O = t[10], P = t[11], D = t[12], B = t[13], k = t[14], L = t[15], E = t[16], _ = t[17]);
|
|
71
|
+
const n = O === void 0 ? !1 : O, e = P === void 0 ? "left" : P, x = D === void 0 ? "large" : D, $ = B === void 0 ? 0 : B, I = k === void 0 ? !1 : k, Nt = L === void 0 ? !1 : L, Wt = E === void 0 ? "normal" : E;
|
|
72
|
+
process.env.NODE_ENV !== "production" && Kt({
|
|
73
|
+
iconName: c,
|
|
74
|
+
iconSize: x,
|
|
75
|
+
iconSource: a,
|
|
76
|
+
iconPosition: e,
|
|
77
|
+
indentLevel: $,
|
|
78
|
+
stretched: Nt,
|
|
79
|
+
weight: Wt
|
|
80
|
+
});
|
|
81
|
+
const s = i?.trim() === "", q = e === "top", J = $ === 1, K = I && !n, Q = I && !n && e === "left", Y = Nt === !0 && e === "left";
|
|
82
|
+
let M;
|
|
83
|
+
t[18] !== b || t[19] !== K || t[20] !== Q || t[21] !== Y || t[22] !== q || t[23] !== J ? (M = S(o.root, b, {
|
|
84
|
+
[o.rootIconTop]: q,
|
|
85
|
+
[o.rootIndentLevel1]: J,
|
|
86
|
+
[o.rootActive]: K,
|
|
87
|
+
[o.rootActiveWithMarker]: Q,
|
|
88
|
+
[o.rootStretched]: Y
|
|
89
|
+
}), t[18] = b, t[19] = K, t[20] = Q, t[21] = Y, t[22] = q, t[23] = J, t[24] = M) : M = t[24];
|
|
90
|
+
const tt = M, ot = $ === 1;
|
|
91
|
+
let U;
|
|
92
|
+
t[25] !== ot ? (U = S(o.activeMarker, {
|
|
93
|
+
[o.activeMarkerWithIndent]: ot
|
|
94
|
+
}), t[25] = ot, t[26] = U) : U = t[26];
|
|
95
|
+
const et = U, nt = I && !n, it = Wt === "bold", rt = e === "top";
|
|
96
|
+
let V;
|
|
97
|
+
t[27] !== nt || t[28] !== it || t[29] !== rt ? (V = S(o.label, {
|
|
98
|
+
[o.labelActive]: nt,
|
|
99
|
+
[o.labelBold]: it,
|
|
100
|
+
[o.labelIconTop]: rt
|
|
101
|
+
}), t[27] = nt, t[28] = it, t[29] = rt, t[30] = V) : V = t[30];
|
|
102
|
+
const ct = V, at = e === "top";
|
|
103
|
+
let z;
|
|
104
|
+
t[31] !== at ? (z = S(o.labelWrapper, {
|
|
105
|
+
[o.labelWrapperIconTop]: at
|
|
106
|
+
}), t[31] = at, t[32] = z) : z = t[32];
|
|
107
|
+
const st = z, lt = e === "top", pt = r === "up", dt = r === "right", ht = r === "left";
|
|
108
|
+
let R;
|
|
109
|
+
t[33] !== lt || t[34] !== pt || t[35] !== dt || t[36] !== ht ? (R = S(o.chevron, {
|
|
110
|
+
[o.chevronIconPositionTop]: lt,
|
|
111
|
+
[o.chevronUp]: pt,
|
|
112
|
+
[o.chevronRight]: dt,
|
|
113
|
+
[o.chevronLeft]: ht
|
|
114
|
+
}), t[33] = lt, t[34] = pt, t[35] = dt, t[36] = ht, t[37] = R) : R = t[37];
|
|
115
|
+
const bt = R, ft = x === "x-large", _t = (c || a) && (i || s), vt = (c || a) && !s;
|
|
116
|
+
let H;
|
|
117
|
+
t[38] !== ft || t[39] !== _t || t[40] !== vt ? (H = S(o.iconWrapper, {
|
|
118
|
+
[o.iconWrapperXLarge]: ft,
|
|
119
|
+
[o.iconWrapperWithNumberIndicator]: _t,
|
|
120
|
+
[o.iconWrapperWithNumberIndicatorWithValue]: vt
|
|
121
|
+
}), t[38] = ft, t[39] = _t, t[40] = vt, t[41] = H) : H = t[41];
|
|
122
|
+
const ut = H;
|
|
123
|
+
let X;
|
|
124
|
+
t[42] !== n || t[43] !== f ? (X = (l) => {
|
|
125
|
+
if (n) {
|
|
126
|
+
l.preventDefault();
|
|
127
|
+
return;
|
|
128
|
+
}
|
|
129
|
+
f && f(l);
|
|
130
|
+
}, t[42] = n, t[43] = f, t[44] = X) : X = t[44];
|
|
131
|
+
const mt = X;
|
|
132
|
+
let N;
|
|
133
|
+
t[45] !== et || t[46] !== e || t[47] !== I ? (N = I && e === "left" && /* @__PURE__ */ p("div", { className: et }), t[45] = et, t[46] = e, t[47] = I, t[48] = N) : N = t[48];
|
|
134
|
+
let W;
|
|
135
|
+
t[49] !== n || t[50] !== c || t[51] !== e || t[52] !== x || t[53] !== a || t[54] !== ut || t[55] !== s || t[56] !== i ? (W = (c || a) && /* @__PURE__ */ p(wt, { children: /* @__PURE__ */ Z("span", { className: ut, children: [
|
|
136
|
+
/* @__PURE__ */ p(gt, { name: c, theme: "light", source: a, "aria-hidden": "true", size: c || e === "top" ? "large" : x }),
|
|
137
|
+
!n && (e === "left" && s || e === "top" && (i || s)) && /* @__PURE__ */ p(Tt, { variant: "highlight", label: i })
|
|
138
|
+
] }) }), t[49] = n, t[50] = c, t[51] = e, t[52] = x, t[53] = a, t[54] = ut, t[55] = s, t[56] = i, t[57] = W) : W = t[57];
|
|
139
|
+
let g;
|
|
140
|
+
t[58] !== h || t[59] !== ct ? (g = /* @__PURE__ */ p("span", { className: ct, children: h }), t[58] = h, t[59] = ct, t[60] = g) : g = t[60];
|
|
141
|
+
let T;
|
|
142
|
+
t[61] !== bt || t[62] !== r ? (T = r && /* @__PURE__ */ p(gt, { name: "chevron-down", theme: "light", "aria-hidden": "true", className: bt }), t[61] = bt, t[62] = r, t[63] = T) : T = t[63];
|
|
143
|
+
let w;
|
|
144
|
+
t[64] !== st || t[65] !== g || t[66] !== T ? (w = /* @__PURE__ */ Z("div", { className: st, children: [
|
|
145
|
+
g,
|
|
146
|
+
T
|
|
147
|
+
] }), t[64] = st, t[65] = g, t[66] = T, t[67] = w) : w = t[67];
|
|
148
|
+
let A;
|
|
149
|
+
t[68] !== n || t[69] !== e || t[70] !== s || t[71] !== i ? (A = e === "left" && !n && i && !s && /* @__PURE__ */ p(Tt, { variant: "default", label: i, className: o.numberIndicator }), t[68] = n, t[69] = e, t[70] = s, t[71] = i, t[72] = A) : A = t[72];
|
|
150
|
+
let j;
|
|
151
|
+
t[73] !== d || t[74] !== n || t[75] !== mt || t[76] !== u || t[77] !== m || t[78] !== tt || t[79] !== N || t[80] !== W || t[81] !== w || t[82] !== A ? (j = /* @__PURE__ */ Z("button", { className: tt, type: "button", onClick: mt, ...d, ...m, "aria-disabled": n, ref: u, children: [
|
|
152
|
+
N,
|
|
153
|
+
W,
|
|
154
|
+
w,
|
|
155
|
+
A
|
|
156
|
+
] }), t[73] = d, t[74] = n, t[75] = mt, t[76] = u, t[77] = m, t[78] = tt, t[79] = N, t[80] = W, t[81] = w, t[82] = A, t[83] = j) : j = t[83];
|
|
157
|
+
const F = j;
|
|
158
|
+
if (_) {
|
|
159
|
+
let l;
|
|
160
|
+
t[84] !== F ? (l = /* @__PURE__ */ p(It.Anchor, { children: F }), t[84] = F, t[85] = l) : l = t[85];
|
|
161
|
+
let y;
|
|
162
|
+
t[86] !== _ ? (y = /* @__PURE__ */ p(It.Content, { children: _ }), t[86] = _, t[87] = y) : y = t[87];
|
|
163
|
+
let G;
|
|
164
|
+
return t[88] !== l || t[89] !== y ? (G = /* @__PURE__ */ Z(It, { placement: "top", tooltipOffset: 6, children: [
|
|
165
|
+
l,
|
|
166
|
+
y
|
|
167
|
+
] }), t[88] = l, t[89] = y, t[90] = G) : G = t[90], G;
|
|
168
|
+
}
|
|
169
|
+
return F;
|
|
170
|
+
});
|
|
171
|
+
Qt.displayName = "DSActionButton";
|
|
172
|
+
export {
|
|
173
|
+
ao as A,
|
|
174
|
+
Qt as D,
|
|
175
|
+
so as a,
|
|
176
|
+
lo as b,
|
|
177
|
+
po as c,
|
|
178
|
+
ho as d,
|
|
179
|
+
Kt as v
|
|
180
|
+
};
|