@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
|
@@ -1,117 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { jsxs as ro, jsx as io } from "react/jsx-runtime";
|
|
3
|
-
import { d as ao } from "./index.CgTHIF3K.js";
|
|
4
|
-
import { c as no } from "./index.CEyLAtio.js";
|
|
5
|
-
import { forwardRef as co } from "react";
|
|
6
|
-
import { u as lo } from "./useBreakpoint.CMOR9ZOB.js";
|
|
7
|
-
import { D as ho } from "./Icon.DGTYCv63.js";
|
|
8
|
-
import { g as so } from "./helpers.BbWkXTr3.js";
|
|
9
|
-
import '../assets/LinkButton.xMvg_ojf.css';const go = "ds-link-button_root_oblg9_1", uo = "ds-link-button_root--highlight_oblg9_75", _o = "ds-link-button_root--dark-highlight_oblg9_75", ko = "ds-link-button_root--filled_oblg9_151", mo = "ds-link-button_root--outline_oblg9_179", bo = "ds-link-button_root--ghost_oblg9_206", fo = "ds-link-button_root--ghost-flush_oblg9_231", vo = "ds-link-button_root--small_oblg9_237", Do = "ds-link-button_root--navigation_oblg9_317", po = "ds-link-button_root--dark-filled_oblg9_393", No = "ds-link-button_root--dark-outline_oblg9_450", Lo = "ds-link-button_root--dark-ghost_oblg9_506", Oo = "ds-link-button_root--dark-ghost-flush_oblg9_560", So = "ds-link-button_root--icon-left_oblg9_635", Fo = "ds-link-button_root--icon-only_oblg9_638", Io = "ds-link-button_root--icon-only-small_oblg9_647", Go = "ds-link-button_icon--navigation_oblg9_659", yo = "ds-link-button_label--hidden_oblg9_667", n = {
|
|
10
|
-
root: go,
|
|
11
|
-
rootHighlight: uo,
|
|
12
|
-
rootDarkHighlight: _o,
|
|
13
|
-
rootFilled: ko,
|
|
14
|
-
rootOutline: mo,
|
|
15
|
-
rootGhost: bo,
|
|
16
|
-
rootGhostFlush: fo,
|
|
17
|
-
rootSmall: vo,
|
|
18
|
-
rootNavigation: Do,
|
|
19
|
-
rootDarkFilled: po,
|
|
20
|
-
rootDarkOutline: No,
|
|
21
|
-
rootDarkGhost: Lo,
|
|
22
|
-
rootDarkGhostFlush: Oo,
|
|
23
|
-
rootIconLeft: So,
|
|
24
|
-
rootIconOnly: Fo,
|
|
25
|
-
rootIconOnlySmall: Io,
|
|
26
|
-
iconNavigation: Go,
|
|
27
|
-
labelHidden: yo
|
|
28
|
-
}, Co = ["medium", "small"], Vo = ["filled", "highlight", "outline", "ghost", "navigation"], Bo = ({
|
|
29
|
-
variant: f,
|
|
30
|
-
size: v,
|
|
31
|
-
theme: o
|
|
32
|
-
}) => {
|
|
33
|
-
if (f === "navigation" && (v === "small" && console.warn(so("DSLinkButton", 'A "size" prop should not be used in combination with variant="navigation". Please remove the "size" prop.')), o === "dark"))
|
|
34
|
-
throw new Error(so("DSLinkButton", 'A DSLinkButton with variant="navigation" does not support theme="dark". Please remove the "theme" prop.'));
|
|
35
|
-
}, Ho = co((f, v) => {
|
|
36
|
-
const o = ao.c(63);
|
|
37
|
-
let r, a, c, d, i, s, e, h, g, u, D, p, N, L, O, S, F;
|
|
38
|
-
o[0] !== f ? ({
|
|
39
|
-
children: a,
|
|
40
|
-
aria: r,
|
|
41
|
-
className: c,
|
|
42
|
-
download: d,
|
|
43
|
-
hideLabel: D,
|
|
44
|
-
href: i,
|
|
45
|
-
iconName: s,
|
|
46
|
-
iconPosition: p,
|
|
47
|
-
iconSource: e,
|
|
48
|
-
isFlush: N,
|
|
49
|
-
referrerPolicy: h,
|
|
50
|
-
rel: g,
|
|
51
|
-
size: L,
|
|
52
|
-
target: O,
|
|
53
|
-
theme: S,
|
|
54
|
-
variant: F,
|
|
55
|
-
...u
|
|
56
|
-
} = f, o[0] = f, o[1] = r, o[2] = a, o[3] = c, o[4] = d, o[5] = i, o[6] = s, o[7] = e, o[8] = h, o[9] = g, o[10] = u, o[11] = D, o[12] = p, o[13] = N, o[14] = L, o[15] = O, o[16] = S, o[17] = F) : (r = o[1], a = o[2], c = o[3], d = o[4], i = o[5], s = o[6], e = o[7], h = o[8], g = o[9], u = o[10], D = o[11], p = o[12], N = o[13], L = o[14], O = o[15], S = o[16], F = o[17]);
|
|
57
|
-
const T = D === void 0 ? !1 : D, eo = p === void 0 ? "left" : p, I = N === void 0 ? !1 : N, G = L === void 0 ? "medium" : L, P = O === void 0 ? "_self" : O, l = S === void 0 ? "light" : S, t = F === void 0 ? "filled" : F;
|
|
58
|
-
process.env.NODE_ENV !== "production" && Bo({
|
|
59
|
-
variant: t,
|
|
60
|
-
size: G,
|
|
61
|
-
theme: l
|
|
62
|
-
});
|
|
63
|
-
const E = t === "filled", x = t === "highlight", z = t === "outline", A = t === "ghost" && I !== !0, C = t === "navigation", V = t === "ghost" && I === !0, j = l === "dark" && t === "filled", K = l === "dark" && t === "highlight", R = l === "dark" && t === "outline", U = l === "dark" && t === "ghost" && I !== !0, M = l === "dark" && t === "ghost" && I === !0, Z = G === "small" || t === "navigation", $ = eo === "left", q = lo(T) && G === "medium" && t !== "navigation", J = lo(T) && G === "small" && t !== "navigation";
|
|
64
|
-
let y;
|
|
65
|
-
o[18] !== c || o[19] !== z || o[20] !== A || o[21] !== C || o[22] !== V || o[23] !== j || o[24] !== K || o[25] !== R || o[26] !== U || o[27] !== M || o[28] !== Z || o[29] !== $ || o[30] !== q || o[31] !== J || o[32] !== E || o[33] !== x ? (y = no(n.root, c, {
|
|
66
|
-
[n.rootFilled]: E,
|
|
67
|
-
[n.rootHighlight]: x,
|
|
68
|
-
[n.rootOutline]: z,
|
|
69
|
-
[n.rootGhost]: A,
|
|
70
|
-
[n.rootNavigation]: C,
|
|
71
|
-
[n.rootGhostFlush]: V,
|
|
72
|
-
[n.rootDarkFilled]: j,
|
|
73
|
-
[n.rootDarkHighlight]: K,
|
|
74
|
-
[n.rootDarkOutline]: R,
|
|
75
|
-
[n.rootDarkGhost]: U,
|
|
76
|
-
[n.rootDarkGhostFlush]: M,
|
|
77
|
-
[n.rootSmall]: Z,
|
|
78
|
-
[n.rootIconLeft]: $,
|
|
79
|
-
[n.rootIconOnly]: q,
|
|
80
|
-
[n.rootIconOnlySmall]: J
|
|
81
|
-
}), o[18] = c, o[19] = z, o[20] = A, o[21] = C, o[22] = V, o[23] = j, o[24] = K, o[25] = R, o[26] = U, o[27] = M, o[28] = Z, o[29] = $, o[30] = q, o[31] = J, o[32] = E, o[33] = x, o[34] = y) : y = o[34];
|
|
82
|
-
const Q = y, W = lo(T) && t !== "navigation";
|
|
83
|
-
let B;
|
|
84
|
-
o[35] !== W ? (B = no({
|
|
85
|
-
[n.labelHidden]: W
|
|
86
|
-
}), o[35] = W, o[36] = B) : B = o[36];
|
|
87
|
-
const X = B, Y = t === "navigation";
|
|
88
|
-
let H;
|
|
89
|
-
o[37] !== Y ? (H = no({
|
|
90
|
-
[n.iconNavigation]: Y
|
|
91
|
-
}), o[37] = Y, o[38] = H) : H = o[38];
|
|
92
|
-
const oo = H, to = l === "light" && t === "filled" || l === "dark" && t === "outline" || l === "dark" && t === "ghost" ? "dark" : "light", _ = i === void 0 ? "span" : "a";
|
|
93
|
-
let k;
|
|
94
|
-
o[39] !== _ || o[40] !== d || o[41] !== i || o[42] !== h || o[43] !== g || o[44] !== P ? (k = _ === "a" && {
|
|
95
|
-
href: i,
|
|
96
|
-
target: P,
|
|
97
|
-
rel: g,
|
|
98
|
-
referrerPolicy: h,
|
|
99
|
-
download: d
|
|
100
|
-
}, o[39] = _, o[40] = d, o[41] = i, o[42] = h, o[43] = g, o[44] = P, o[45] = k) : k = o[45];
|
|
101
|
-
let m;
|
|
102
|
-
o[46] !== a || o[47] !== X ? (m = /* @__PURE__ */ io("span", { className: X, children: a }), o[46] = a, o[47] = X, o[48] = m) : m = o[48];
|
|
103
|
-
let b;
|
|
104
|
-
o[49] !== oo || o[50] !== s || o[51] !== e || o[52] !== to ? (b = (s || e) && /* @__PURE__ */ io(ho, { name: s, theme: to, source: e, className: oo, "aria-hidden": "true" }), o[49] = oo, o[50] = s, o[51] = e, o[52] = to, o[53] = b) : b = o[53];
|
|
105
|
-
let w;
|
|
106
|
-
return o[54] !== _ || o[55] !== r || o[56] !== v || o[57] !== u || o[58] !== Q || o[59] !== k || o[60] !== m || o[61] !== b ? (w = /* @__PURE__ */ ro(_, { className: Q, ...k, ...r, ...u, ref: v, children: [
|
|
107
|
-
m,
|
|
108
|
-
b
|
|
109
|
-
] }), o[54] = _, o[55] = r, o[56] = v, o[57] = u, o[58] = Q, o[59] = k, o[60] = m, o[61] = b, o[62] = w) : w = o[62], w;
|
|
110
|
-
});
|
|
111
|
-
Ho.displayName = "DSLinkButton";
|
|
112
|
-
export {
|
|
113
|
-
Ho as D,
|
|
114
|
-
Co as L,
|
|
115
|
-
Vo as a,
|
|
116
|
-
Bo as v
|
|
117
|
-
};
|
|
@@ -1,189 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { jsx as b, jsxs as Q } from "react/jsx-runtime";
|
|
3
|
-
import { d as I } from "./index.CgTHIF3K.js";
|
|
4
|
-
import { isValidElement as G, useState as W, createContext as X, forwardRef as H, cloneElement as Y, useContext as q } from "react";
|
|
5
|
-
import { u as Z, a as A, b as B, c as R, d as ee, o as te, e as z, f as ne, F as se, g as oe, h as le } from "./floating-ui.react.x0F9CYgn.js";
|
|
6
|
-
import { c as j } from "./index.CEyLAtio.js";
|
|
7
|
-
import { g as P, c as T } from "./helpers.BbWkXTr3.js";
|
|
8
|
-
import { D as ce } from "./Header.DqZRryB5.js";
|
|
9
|
-
import { a as ae } from "./floating-ui.dom.C9TD1WpB.js";
|
|
10
|
-
import '../assets/MegaMenu.DX9gChtY.css';const re = "ds-mega-menu_root_11fw1_1", ie = "ds-mega-menu_content_11fw1_109", ue = "ds-mega-menu_content--variant-full_11fw1_134", de = "ds-mega-menu_backdrop_11fw1_139", V = {
|
|
11
|
-
root: re,
|
|
12
|
-
content: ie,
|
|
13
|
-
contentVariantFull: ue,
|
|
14
|
-
backdrop: de
|
|
15
|
-
}, fe = 9, me = (s) => {
|
|
16
|
-
const t = I.c(17);
|
|
17
|
-
let e;
|
|
18
|
-
t[0] !== s ? (e = s === void 0 ? {} : s, t[0] = s, t[1] = e) : e = t[1];
|
|
19
|
-
const {
|
|
20
|
-
initialOpen: n,
|
|
21
|
-
isOpen: o,
|
|
22
|
-
onOpenChange: c
|
|
23
|
-
} = e, m = n === void 0 ? !1 : n, [a, l] = W(m), d = o ?? a, r = c ?? l;
|
|
24
|
-
let i;
|
|
25
|
-
t[2] === Symbol.for("react.memo_cache_sentinel") ? (i = [te(fe)], t[2] = i) : i = t[2];
|
|
26
|
-
let u;
|
|
27
|
-
t[3] !== d || t[4] !== r ? (u = {
|
|
28
|
-
placement: "bottom-start",
|
|
29
|
-
open: d,
|
|
30
|
-
onOpenChange: r,
|
|
31
|
-
whileElementsMounted: ae,
|
|
32
|
-
strategy: "absolute",
|
|
33
|
-
transform: !1,
|
|
34
|
-
middleware: i
|
|
35
|
-
}, t[3] = d, t[4] = r, t[5] = u) : u = t[5];
|
|
36
|
-
const g = Z(u), _ = g.context;
|
|
37
|
-
let h;
|
|
38
|
-
t[6] === Symbol.for("react.memo_cache_sentinel") ? (h = {
|
|
39
|
-
enabled: !0
|
|
40
|
-
}, t[6] = h) : h = t[6];
|
|
41
|
-
const k = A(_, h), f = B(_);
|
|
42
|
-
let p;
|
|
43
|
-
t[7] === Symbol.for("react.memo_cache_sentinel") ? (p = {
|
|
44
|
-
role: "menu"
|
|
45
|
-
}, t[7] = p) : p = t[7];
|
|
46
|
-
const C = R(_, p);
|
|
47
|
-
let S;
|
|
48
|
-
t[8] !== k || t[9] !== f || t[10] !== C ? (S = [k, f, C], t[8] = k, t[9] = f, t[10] = C, t[11] = S) : S = t[11];
|
|
49
|
-
const D = ee(S);
|
|
50
|
-
let E, M;
|
|
51
|
-
return t[12] !== g || t[13] !== D || t[14] !== d || t[15] !== r ? (M = {
|
|
52
|
-
open: d,
|
|
53
|
-
setOpen: r,
|
|
54
|
-
...D,
|
|
55
|
-
...g
|
|
56
|
-
}, t[12] = g, t[13] = D, t[14] = d, t[15] = r, t[16] = M) : M = t[16], E = M, E;
|
|
57
|
-
}, Me = (s) => {
|
|
58
|
-
if (!G(s))
|
|
59
|
-
throw new Error(P("DSMegaMenu", "DSMegaMenu.Anchor child must be a valid React element."));
|
|
60
|
-
}, ge = ({
|
|
61
|
-
hasContent: s,
|
|
62
|
-
hasAnchor: t
|
|
63
|
-
}) => {
|
|
64
|
-
if (!s)
|
|
65
|
-
throw new Error(P("DSMegaMenu", "A DSMegaMenu must have a <DSMegaMenu.Content> component as a child. Please add it to the children of DSMegaMenu."));
|
|
66
|
-
if (!t)
|
|
67
|
-
throw new Error(P("DSMegaMenu", "A DSMegaMenu must have a <DSMegaMenu.Anchor> component as a child. Please add it to the children of DSMegaMenu."));
|
|
68
|
-
}, J = X(null), K = () => {
|
|
69
|
-
const s = q(J);
|
|
70
|
-
if (s == null)
|
|
71
|
-
throw new Error(P("DSMegaMenu", "Components like DSMegaMenu.Anchor or DSMegaMenu.Content must be wrapped in <DSMegaMenu />."));
|
|
72
|
-
return s;
|
|
73
|
-
}, $ = (s) => {
|
|
74
|
-
const t = I.c(9);
|
|
75
|
-
let e, n;
|
|
76
|
-
t[0] !== s ? ({
|
|
77
|
-
children: e,
|
|
78
|
-
...n
|
|
79
|
-
} = s, t[0] = s, t[1] = e, t[2] = n) : (e = t[1], n = t[2]);
|
|
80
|
-
let o;
|
|
81
|
-
t[3] !== n ? (o = {
|
|
82
|
-
...n
|
|
83
|
-
}, t[3] = n, t[4] = o) : o = t[4];
|
|
84
|
-
const c = me(o), m = T(e, $.Content), a = T(e, U);
|
|
85
|
-
process.env.NODE_ENV !== "production" && ge({
|
|
86
|
-
hasContent: m,
|
|
87
|
-
hasAnchor: a
|
|
88
|
-
});
|
|
89
|
-
let l;
|
|
90
|
-
return t[5] !== e || t[6] !== c || t[7] !== n ? (l = /* @__PURE__ */ b(J.Provider, { value: c, ...n, children: e }), t[5] = e, t[6] = c, t[7] = n, t[8] = l) : l = t[8], l;
|
|
91
|
-
}, U = H((s, t) => {
|
|
92
|
-
const e = I.c(12);
|
|
93
|
-
let n, o;
|
|
94
|
-
e[0] !== s ? ({
|
|
95
|
-
children: n,
|
|
96
|
-
...o
|
|
97
|
-
} = s, e[0] = s, e[1] = n, e[2] = o) : (n = e[1], o = e[2]), process.env.NODE_ENV !== "production" && Me(n);
|
|
98
|
-
const c = K(), m = n.ref;
|
|
99
|
-
let a;
|
|
100
|
-
e[3] !== m || e[4] !== c.refs.setReference || e[5] !== t ? (a = [c.refs.setReference, t, m], e[3] = m, e[4] = c.refs.setReference, e[5] = t, e[6] = a) : a = e[6];
|
|
101
|
-
const l = z(a);
|
|
102
|
-
if (G(n)) {
|
|
103
|
-
let d;
|
|
104
|
-
return e[7] !== n || e[8] !== c || e[9] !== o || e[10] !== l ? (d = Y(n, c.getReferenceProps({
|
|
105
|
-
ref: l,
|
|
106
|
-
...o,
|
|
107
|
-
...n.props,
|
|
108
|
-
"data-state": c.open ? "open" : "closed"
|
|
109
|
-
})), e[7] = n, e[8] = c, e[9] = o, e[10] = l, e[11] = d) : d = e[11], d;
|
|
110
|
-
}
|
|
111
|
-
});
|
|
112
|
-
U.displayName = "DSMegaMenu.Anchor";
|
|
113
|
-
const L = H((s, t) => {
|
|
114
|
-
const e = I.c(45);
|
|
115
|
-
let n, o, c;
|
|
116
|
-
e[0] !== s ? ({
|
|
117
|
-
style: c,
|
|
118
|
-
className: n,
|
|
119
|
-
...o
|
|
120
|
-
} = s, e[0] = s, e[1] = n, e[2] = o, e[3] = c) : (n = e[1], o = e[2], c = e[3]);
|
|
121
|
-
const m = K();
|
|
122
|
-
let a, l;
|
|
123
|
-
e[4] !== m ? ({
|
|
124
|
-
context: a,
|
|
125
|
-
...l
|
|
126
|
-
} = m, e[4] = m, e[5] = a, e[6] = l) : (a = e[5], l = e[6]);
|
|
127
|
-
const {
|
|
128
|
-
variant: d,
|
|
129
|
-
bannerAreaRef: r,
|
|
130
|
-
topBarAreaRef: i,
|
|
131
|
-
mainNavigationAreaRef: u
|
|
132
|
-
} = q(ce);
|
|
133
|
-
let g;
|
|
134
|
-
e[7] !== t || e[8] !== l.refs.setFloating ? (g = [l.refs.setFloating, t], e[7] = t, e[8] = l.refs.setFloating, e[9] = g) : g = e[9];
|
|
135
|
-
const _ = z(g);
|
|
136
|
-
let h;
|
|
137
|
-
e[10] === Symbol.for("react.memo_cache_sentinel") ? (h = {
|
|
138
|
-
duration: {
|
|
139
|
-
open: 400,
|
|
140
|
-
close: 400
|
|
141
|
-
}
|
|
142
|
-
}, e[10] = h) : h = e[10];
|
|
143
|
-
const {
|
|
144
|
-
isMounted: k,
|
|
145
|
-
status: f
|
|
146
|
-
} = ne(a, h);
|
|
147
|
-
let p;
|
|
148
|
-
e[11] !== n ? (p = j(V.root, n), e[11] = n, e[12] = p) : p = e[12];
|
|
149
|
-
const C = p, S = d === "full";
|
|
150
|
-
let D;
|
|
151
|
-
e[13] !== S ? (D = j(V.content, {
|
|
152
|
-
[V.contentVariantFull]: S
|
|
153
|
-
}), e[13] = S, e[14] = D) : D = e[14];
|
|
154
|
-
const E = D;
|
|
155
|
-
if (!k)
|
|
156
|
-
return null;
|
|
157
|
-
let M;
|
|
158
|
-
e[15] !== f ? (M = /* @__PURE__ */ b("div", { className: V.backdrop, "data-status": f }), e[15] = f, e[16] = M) : M = e[16];
|
|
159
|
-
let w;
|
|
160
|
-
e[17] !== (r == null ? void 0 : r.current) || e[18] !== (u == null ? void 0 : u.current) || e[19] !== (i == null ? void 0 : i.current) ? (w = () => [u == null ? void 0 : u.current, i == null ? void 0 : i.current, r == null ? void 0 : r.current].filter(Boolean), e[17] = r == null ? void 0 : r.current, e[18] = u == null ? void 0 : u.current, e[19] = i == null ? void 0 : i.current, e[20] = w) : w = e[20];
|
|
161
|
-
let x;
|
|
162
|
-
e[21] !== l.floatingStyles || e[22] !== c ? (x = {
|
|
163
|
-
...l.floatingStyles,
|
|
164
|
-
...c
|
|
165
|
-
}, e[21] = l.floatingStyles, e[22] = c, e[23] = x) : x = e[23];
|
|
166
|
-
let y;
|
|
167
|
-
e[24] !== o || e[25] !== l ? (y = l.getFloatingProps(o), e[24] = o, e[25] = l, e[26] = y) : y = e[26];
|
|
168
|
-
let F;
|
|
169
|
-
e[27] !== E || e[28] !== o.children || e[29] !== f ? (F = /* @__PURE__ */ b("div", { className: E, "data-status": f, children: o.children }), e[27] = E, e[28] = o.children, e[29] = f, e[30] = F) : F = e[30];
|
|
170
|
-
let O;
|
|
171
|
-
e[31] !== C || e[32] !== _ || e[33] !== f || e[34] !== y || e[35] !== F || e[36] !== x ? (O = /* @__PURE__ */ b("div", { ref: _, style: x, className: C, "data-status": f, ...y, children: F }), e[31] = C, e[32] = _, e[33] = f, e[34] = y, e[35] = F, e[36] = x, e[37] = O) : O = e[37];
|
|
172
|
-
let v;
|
|
173
|
-
e[38] !== a || e[39] !== O || e[40] !== w ? (v = /* @__PURE__ */ b(se, { context: a, modal: !1, outsideElementsInert: !0, getInsideElements: w, children: O }), e[38] = a, e[39] = O, e[40] = w, e[41] = v) : v = e[41];
|
|
174
|
-
let N;
|
|
175
|
-
return e[42] !== v || e[43] !== M ? (N = /* @__PURE__ */ b(oe, { children: /* @__PURE__ */ Q(le, { lockScroll: !0, children: [
|
|
176
|
-
M,
|
|
177
|
-
v
|
|
178
|
-
] }) }), e[42] = v, e[43] = M, e[44] = N) : N = e[44], N;
|
|
179
|
-
});
|
|
180
|
-
L.displayName = "DSMegaMenu.Content";
|
|
181
|
-
$.Anchor = U;
|
|
182
|
-
$.Content = L;
|
|
183
|
-
$.displayName = "DSMegaMenu";
|
|
184
|
-
export {
|
|
185
|
-
$ as D,
|
|
186
|
-
ge as a,
|
|
187
|
-
me as u,
|
|
188
|
-
Me as v
|
|
189
|
-
};
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { jsx as t, jsxs as g, Fragment as m } from "react/jsx-runtime";
|
|
3
|
-
import { isValidElement as h, cloneElement as f } from "react";
|
|
4
|
-
import { D as B } from "./Icon.DGTYCv63.js";
|
|
5
|
-
import { NumberIndicator as N } from "../numberindicator.Ddf3ESi7.js";
|
|
6
|
-
import '../assets/NavigationTabList.CFlVhUzS.css';const W = "ds-tabs_tabs-wrapper_ccgp4_1", w = "ds-tabs_scroll-wrapper_ccgp4_6", D = "ds-tabs_scroller_ccgp4_17", j = "ds-tabs_scroller--centered_ccgp4_28", v = "ds-tabs_tab_ccgp4_1", y = "ds-tabs_scroll-button_ccgp4_105", E = "ds-tabs_scroll-button--hidden_ccgp4_110", H = "ds-tabs_scroll-button--right_ccgp4_114", L = "ds-tabs_indicator_ccgp4_126", R = {
|
|
7
|
-
tabsWrapper: W,
|
|
8
|
-
scrollWrapper: w,
|
|
9
|
-
scroller: D,
|
|
10
|
-
scrollerCentered: j,
|
|
11
|
-
tab: v,
|
|
12
|
-
scrollButton: y,
|
|
13
|
-
scrollButtonHidden: E,
|
|
14
|
-
scrollButtonRight: H,
|
|
15
|
-
indicator: L
|
|
16
|
-
}, S = ({
|
|
17
|
-
tabs: n,
|
|
18
|
-
tabRefs: i,
|
|
19
|
-
scrollerClass: p,
|
|
20
|
-
scrollerRef: _,
|
|
21
|
-
selectedTabIndex: o,
|
|
22
|
-
handleNavigationKeydown: d,
|
|
23
|
-
setSelectedTab: b
|
|
24
|
-
}) => /* @__PURE__ */ t("ul", { className: p, ref: _, children: n.map(({
|
|
25
|
-
id: l,
|
|
26
|
-
linkComponent: r,
|
|
27
|
-
iconName: a,
|
|
28
|
-
numberIndicatorValue: e
|
|
29
|
-
}, s) => {
|
|
30
|
-
if (!h(r))
|
|
31
|
-
return null;
|
|
32
|
-
const u = f(r, {
|
|
33
|
-
// Add aria-current to the selected tab (https://www.w3.org/WAI/ARIA/apg/patterns/breadcrumb/examples/breadcrumb/)
|
|
34
|
-
"aria-current": o === s ? "page" : void 0,
|
|
35
|
-
children: /* @__PURE__ */ g(m, { children: [
|
|
36
|
-
a && /* @__PURE__ */ t(B, { name: a, "aria-hidden": "true" }),
|
|
37
|
-
r.props.children,
|
|
38
|
-
e && /* @__PURE__ */ t(N, { label: e })
|
|
39
|
-
] }),
|
|
40
|
-
className: R.tab,
|
|
41
|
-
id: l,
|
|
42
|
-
tabIndex: o === s ? 0 : -1,
|
|
43
|
-
// onKeyDown for focus handling and keyboard navigation
|
|
44
|
-
onKeyDown: (c) => d(c, s),
|
|
45
|
-
onClick: () => {
|
|
46
|
-
r.props.onClick && r.props.onClick(), b(s);
|
|
47
|
-
},
|
|
48
|
-
ref: (c) => {
|
|
49
|
-
i.current[s] = c;
|
|
50
|
-
}
|
|
51
|
-
});
|
|
52
|
-
return /* @__PURE__ */ t("li", { children: u }, l);
|
|
53
|
-
}) });
|
|
54
|
-
export {
|
|
55
|
-
S as N,
|
|
56
|
-
R as s
|
|
57
|
-
};
|
|
@@ -1,92 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { jsx as p, jsxs as F } from "react/jsx-runtime";
|
|
3
|
-
import { d as R } from "./index.CgTHIF3K.js";
|
|
4
|
-
import { c as k } from "./index.CEyLAtio.js";
|
|
5
|
-
import { D as W } from "./Button.B7xF1E19.js";
|
|
6
|
-
import { D as y } from "./Icon.DGTYCv63.js";
|
|
7
|
-
import '../assets/Notification.BOuaA5GT.css';const L = "ds-notification_root_1jsx7_1", P = "ds-notification_root--success_1jsx7_26", V = "ds-notification_root--error_1jsx7_30", z = "ds-notification_root--warning_1jsx7_34", Y = "ds-notification_root--hide-icon_1jsx7_38", $ = "ds-notification_content_1jsx7_52", q = "ds-notification_content--hide-close-button_1jsx7_59", G = "ds-notification_content--hide-icon_1jsx7_62", J = "ds-notification_icon_1jsx7_66", K = "ds-notification_message_1jsx7_70", M = "ds-notification_custom-action-area_1jsx7_167", s = {
|
|
8
|
-
root: L,
|
|
9
|
-
rootSuccess: P,
|
|
10
|
-
rootError: V,
|
|
11
|
-
rootWarning: z,
|
|
12
|
-
rootHideIcon: Y,
|
|
13
|
-
content: $,
|
|
14
|
-
contentHideCloseButton: q,
|
|
15
|
-
contentHideIcon: G,
|
|
16
|
-
icon: J,
|
|
17
|
-
message: K,
|
|
18
|
-
customActionArea: M
|
|
19
|
-
}, no = ["success", "error", "warning", "info"], Q = {
|
|
20
|
-
success: "circle-check-colored",
|
|
21
|
-
error: "diamond-exclamationmark-colored",
|
|
22
|
-
warning: "triangle-exclamationmark-colored",
|
|
23
|
-
info: "circle-info-colored"
|
|
24
|
-
}, U = {
|
|
25
|
-
error: "alert",
|
|
26
|
-
warning: "alert",
|
|
27
|
-
info: "status",
|
|
28
|
-
success: "status"
|
|
29
|
-
}, eo = (v) => {
|
|
30
|
-
const o = R.c(47);
|
|
31
|
-
let i, r, a, c, n, l, N, h;
|
|
32
|
-
o[0] !== v ? ({
|
|
33
|
-
children: i,
|
|
34
|
-
variant: N,
|
|
35
|
-
className: r,
|
|
36
|
-
closeButtonProps: a,
|
|
37
|
-
customActionArea: c,
|
|
38
|
-
hideIcon: h,
|
|
39
|
-
onClose: n,
|
|
40
|
-
...l
|
|
41
|
-
} = v, o[0] = v, o[1] = i, o[2] = r, o[3] = a, o[4] = c, o[5] = n, o[6] = l, o[7] = N, o[8] = h) : (i = o[1], r = o[2], a = o[3], c = o[4], n = o[5], l = o[6], N = o[7], h = o[8]);
|
|
42
|
-
const e = N === void 0 ? "info" : N, t = h === void 0 ? !1 : h;
|
|
43
|
-
let d;
|
|
44
|
-
o[9] !== a ? (d = a || {}, o[9] = a, o[10] = d) : d = o[10];
|
|
45
|
-
let _, A;
|
|
46
|
-
o[11] !== d ? ({
|
|
47
|
-
label: A,
|
|
48
|
-
..._
|
|
49
|
-
} = d, o[11] = d, o[12] = _, o[13] = A) : (_ = o[12], A = o[13]);
|
|
50
|
-
const H = A === void 0 ? "Close notification" : A, S = e === "success", O = e === "error", T = e === "warning", B = e === "info";
|
|
51
|
-
let g;
|
|
52
|
-
o[14] !== r || o[15] !== t || o[16] !== S || o[17] !== O || o[18] !== T || o[19] !== B ? (g = k(s.root, r, {
|
|
53
|
-
[s.rootSuccess]: S,
|
|
54
|
-
[s.rootError]: O,
|
|
55
|
-
[s.rootWarning]: T,
|
|
56
|
-
[s.rootInfo]: B,
|
|
57
|
-
[s.rootHideIcon]: t
|
|
58
|
-
}), o[14] = r, o[15] = t, o[16] = S, o[17] = O, o[18] = T, o[19] = B, o[20] = g) : g = o[20];
|
|
59
|
-
const D = g, b = !n;
|
|
60
|
-
let j;
|
|
61
|
-
o[21] !== t || o[22] !== b ? (j = k(s.content, {
|
|
62
|
-
[s.contentHideCloseButton]: b,
|
|
63
|
-
[s.contentHideIcon]: t
|
|
64
|
-
}), o[21] = t, o[22] = b, o[23] = j) : j = o[23];
|
|
65
|
-
const w = j, E = U[e];
|
|
66
|
-
let f;
|
|
67
|
-
o[24] !== t || o[25] !== e ? (f = !t && /* @__PURE__ */ p(y, { name: Q[e], className: s.icon, "aria-hidden": "true" }), o[24] = t, o[25] = e, o[26] = f) : f = o[26];
|
|
68
|
-
let m;
|
|
69
|
-
o[27] !== i ? (m = /* @__PURE__ */ p("div", { className: s.message, children: i }), o[27] = i, o[28] = m) : m = o[28];
|
|
70
|
-
let u;
|
|
71
|
-
o[29] !== H || o[30] !== n || o[31] !== _ ? (u = n && /* @__PURE__ */ p(W, { ..._, hideLabel: !0, iconName: "cross", isFlush: !0, variant: "ghost", size: "small", onClick: n, type: "button", children: H }), o[29] = H, o[30] = n, o[31] = _, o[32] = u) : u = o[32];
|
|
72
|
-
let I;
|
|
73
|
-
o[33] !== w || o[34] !== f || o[35] !== m || o[36] !== u ? (I = /* @__PURE__ */ F("div", { className: w, children: [
|
|
74
|
-
f,
|
|
75
|
-
m,
|
|
76
|
-
u
|
|
77
|
-
] }), o[33] = w, o[34] = f, o[35] = m, o[36] = u, o[37] = I) : I = o[37];
|
|
78
|
-
let x;
|
|
79
|
-
o[38] !== c || o[39] !== t ? (x = c && /* @__PURE__ */ p("div", { className: k({
|
|
80
|
-
[s.customActionArea]: !t
|
|
81
|
-
}), children: c }), o[38] = c, o[39] = t, o[40] = x) : x = o[40];
|
|
82
|
-
let C;
|
|
83
|
-
return o[41] !== l || o[42] !== D || o[43] !== E || o[44] !== I || o[45] !== x ? (C = /* @__PURE__ */ F("div", { className: D, ...l, role: E, children: [
|
|
84
|
-
I,
|
|
85
|
-
x
|
|
86
|
-
] }), o[41] = l, o[42] = D, o[43] = E, o[44] = I, o[45] = x, o[46] = C) : C = o[46], C;
|
|
87
|
-
};
|
|
88
|
-
export {
|
|
89
|
-
eo as D,
|
|
90
|
-
no as N,
|
|
91
|
-
Q as a
|
|
92
|
-
};
|
|
@@ -1,159 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { jsx as A } from "react/jsx-runtime";
|
|
3
|
-
import { d as w } from "./index.CgTHIF3K.js";
|
|
4
|
-
import { isValidElement as V, useState as B, createContext as G, forwardRef as I, cloneElement as H, useContext as J } from "react";
|
|
5
|
-
import { i as K, u as L, a as Q, b as T, c as W, d as X, o as Y, s as Z, e as U, g as ee, F as te } from "./floating-ui.react.x0F9CYgn.js";
|
|
6
|
-
import { c as oe } from "./index.CEyLAtio.js";
|
|
7
|
-
import { g as E, c as $ } from "./helpers.BbWkXTr3.js";
|
|
8
|
-
import { a as se } from "./floating-ui.dom.C9TD1WpB.js";
|
|
9
|
-
import '../assets/Popover.BDTDsPAt.css';const ne = "ds-popover_popover_zyqhl_5", le = {
|
|
10
|
-
popover: ne
|
|
11
|
-
}, re = (n) => {
|
|
12
|
-
const t = w.c(29);
|
|
13
|
-
let e;
|
|
14
|
-
t[0] !== n ? (e = n === void 0 ? {} : n, t[0] = n, t[1] = e) : e = t[1];
|
|
15
|
-
const {
|
|
16
|
-
initialOpen: o,
|
|
17
|
-
placement: s,
|
|
18
|
-
isOpen: r,
|
|
19
|
-
popoverOffset: d,
|
|
20
|
-
onOpenChange: i
|
|
21
|
-
} = e, l = o === void 0 ? !1 : o, c = s === void 0 ? "bottom-start" : s, a = d === void 0 ? 6 : d, [h, m] = B(l), p = r ?? h, f = i ?? m;
|
|
22
|
-
let v;
|
|
23
|
-
t[2] !== a ? (v = Y(a), t[2] = a, t[3] = v) : v = t[3];
|
|
24
|
-
let u;
|
|
25
|
-
t[4] !== c || t[5] !== a ? (u = K({
|
|
26
|
-
crossAxis: c.includes("-"),
|
|
27
|
-
fallbackAxisSideDirection: "end",
|
|
28
|
-
padding: a
|
|
29
|
-
}), t[4] = c, t[5] = a, t[6] = u) : u = t[6];
|
|
30
|
-
let P;
|
|
31
|
-
t[7] !== a ? (P = Z({
|
|
32
|
-
padding: a
|
|
33
|
-
}), t[7] = a, t[8] = P) : P = t[8];
|
|
34
|
-
let S;
|
|
35
|
-
t[9] !== v || t[10] !== u || t[11] !== P ? (S = [v, u, P], t[9] = v, t[10] = u, t[11] = P, t[12] = S) : S = t[12];
|
|
36
|
-
let D;
|
|
37
|
-
t[13] !== p || t[14] !== c || t[15] !== f || t[16] !== S ? (D = {
|
|
38
|
-
placement: c,
|
|
39
|
-
open: p,
|
|
40
|
-
onOpenChange: f,
|
|
41
|
-
whileElementsMounted: se,
|
|
42
|
-
middleware: S
|
|
43
|
-
}, t[13] = p, t[14] = c, t[15] = f, t[16] = S, t[17] = D) : D = t[17];
|
|
44
|
-
const g = L(D), N = g.context;
|
|
45
|
-
let C;
|
|
46
|
-
t[18] === Symbol.for("react.memo_cache_sentinel") ? (C = {
|
|
47
|
-
enabled: !0
|
|
48
|
-
}, t[18] = C) : C = t[18];
|
|
49
|
-
const F = Q(N, C), b = T(N), _ = W(N);
|
|
50
|
-
let x;
|
|
51
|
-
t[19] !== F || t[20] !== b || t[21] !== _ ? (x = [F, b, _], t[19] = F, t[20] = b, t[21] = _, t[22] = x) : x = t[22];
|
|
52
|
-
const k = X(x);
|
|
53
|
-
let M, O;
|
|
54
|
-
return t[23] !== g || t[24] !== k || t[25] !== p || t[26] !== a || t[27] !== f ? (O = {
|
|
55
|
-
open: p,
|
|
56
|
-
popoverOffset: a,
|
|
57
|
-
setOpen: f,
|
|
58
|
-
...k,
|
|
59
|
-
...g
|
|
60
|
-
}, t[23] = g, t[24] = k, t[25] = p, t[26] = a, t[27] = f, t[28] = O) : O = t[28], M = O, M;
|
|
61
|
-
}, ie = (n) => {
|
|
62
|
-
if (!V(n))
|
|
63
|
-
throw new Error(E("DSPopover", "DSPopover.Anchor child must be a valid React element."));
|
|
64
|
-
}, ce = ({
|
|
65
|
-
hasContent: n,
|
|
66
|
-
hasAnchor: t
|
|
67
|
-
}) => {
|
|
68
|
-
if (!n)
|
|
69
|
-
throw new Error(E("DSPopover", "A DSPopover must have a <DSPopover.Content> component as a child. Please add it to the children of DSPopover."));
|
|
70
|
-
if (!t)
|
|
71
|
-
throw new Error(E("DSPopover", "A DSPopover.Anchor must have a <DSPopover.Anchor> component as a child. Please add it to the children of DSPopover."));
|
|
72
|
-
}, j = G(null), q = () => {
|
|
73
|
-
const n = J(j);
|
|
74
|
-
if (n == null)
|
|
75
|
-
throw new Error(E("DSPopover", "Components like DSPopover.Anchor or DSPopover.Content must be wrapped in <DSPopover />."));
|
|
76
|
-
return n;
|
|
77
|
-
}, y = (n) => {
|
|
78
|
-
const t = w.c(9);
|
|
79
|
-
let e, o;
|
|
80
|
-
t[0] !== n ? ({
|
|
81
|
-
children: e,
|
|
82
|
-
...o
|
|
83
|
-
} = n, t[0] = n, t[1] = e, t[2] = o) : (e = t[1], o = t[2]);
|
|
84
|
-
let s;
|
|
85
|
-
t[3] !== o ? (s = {
|
|
86
|
-
...o
|
|
87
|
-
}, t[3] = o, t[4] = s) : s = t[4];
|
|
88
|
-
const r = re(s), d = $(e, y.Content), i = $(e, R);
|
|
89
|
-
process.env.NODE_ENV !== "production" && ce({
|
|
90
|
-
hasContent: d,
|
|
91
|
-
hasAnchor: i
|
|
92
|
-
});
|
|
93
|
-
let l;
|
|
94
|
-
return t[5] !== e || t[6] !== r || t[7] !== o ? (l = /* @__PURE__ */ A(j.Provider, { value: r, ...o, children: e }), t[5] = e, t[6] = r, t[7] = o, t[8] = l) : l = t[8], l;
|
|
95
|
-
}, R = I((n, t) => {
|
|
96
|
-
const e = w.c(12);
|
|
97
|
-
let o, s;
|
|
98
|
-
e[0] !== n ? ({
|
|
99
|
-
children: o,
|
|
100
|
-
...s
|
|
101
|
-
} = n, e[0] = n, e[1] = o, e[2] = s) : (o = e[1], s = e[2]), process.env.NODE_ENV !== "production" && ie(o);
|
|
102
|
-
const r = q(), d = o.ref;
|
|
103
|
-
let i;
|
|
104
|
-
e[3] !== d || e[4] !== r.refs.setReference || e[5] !== t ? (i = [r.refs.setReference, t, d], e[3] = d, e[4] = r.refs.setReference, e[5] = t, e[6] = i) : i = e[6];
|
|
105
|
-
const l = U(i);
|
|
106
|
-
if (V(o)) {
|
|
107
|
-
let c;
|
|
108
|
-
return e[7] !== o || e[8] !== r || e[9] !== s || e[10] !== l ? (c = H(o, r.getReferenceProps({
|
|
109
|
-
ref: l,
|
|
110
|
-
...s,
|
|
111
|
-
...o.props,
|
|
112
|
-
"data-state": r.open ? "open" : "closed"
|
|
113
|
-
})), e[7] = o, e[8] = r, e[9] = s, e[10] = l, e[11] = c) : c = e[11], c;
|
|
114
|
-
}
|
|
115
|
-
});
|
|
116
|
-
R.displayName = "DSPopover.Anchor";
|
|
117
|
-
const z = I((n, t) => {
|
|
118
|
-
const e = w.c(27);
|
|
119
|
-
let o, s, r;
|
|
120
|
-
e[0] !== n ? ({
|
|
121
|
-
style: r,
|
|
122
|
-
className: o,
|
|
123
|
-
...s
|
|
124
|
-
} = n, e[0] = n, e[1] = o, e[2] = s, e[3] = r) : (o = e[1], s = e[2], r = e[3]);
|
|
125
|
-
const d = q();
|
|
126
|
-
let i, l;
|
|
127
|
-
e[4] !== d ? ({
|
|
128
|
-
context: i,
|
|
129
|
-
...l
|
|
130
|
-
} = d, e[4] = d, e[5] = i, e[6] = l) : (i = e[5], l = e[6]);
|
|
131
|
-
let c;
|
|
132
|
-
e[7] !== t || e[8] !== l.refs.setFloating ? (c = [l.refs.setFloating, t], e[7] = t, e[8] = l.refs.setFloating, e[9] = c) : c = e[9];
|
|
133
|
-
const a = U(c);
|
|
134
|
-
if (!i.open)
|
|
135
|
-
return null;
|
|
136
|
-
let h;
|
|
137
|
-
e[10] !== l.floatingStyles || e[11] !== r ? (h = {
|
|
138
|
-
...l.floatingStyles,
|
|
139
|
-
...r
|
|
140
|
-
}, e[10] = l.floatingStyles, e[11] = r, e[12] = h) : h = e[12];
|
|
141
|
-
let m;
|
|
142
|
-
e[13] !== o ? (m = oe(le.popover, o), e[13] = o, e[14] = m) : m = e[14];
|
|
143
|
-
let p;
|
|
144
|
-
e[15] !== s || e[16] !== l ? (p = l.getFloatingProps(s), e[15] = s, e[16] = l, e[17] = p) : p = e[17];
|
|
145
|
-
let f;
|
|
146
|
-
e[18] !== s.children || e[19] !== a || e[20] !== h || e[21] !== m || e[22] !== p ? (f = /* @__PURE__ */ A("div", { ref: a, style: h, className: m, ...p, children: s.children }), e[18] = s.children, e[19] = a, e[20] = h, e[21] = m, e[22] = p, e[23] = f) : f = e[23];
|
|
147
|
-
let v;
|
|
148
|
-
return e[24] !== i || e[25] !== f ? (v = /* @__PURE__ */ A(ee, { children: /* @__PURE__ */ A(te, { context: i, modal: !1, children: f }) }), e[24] = i, e[25] = f, e[26] = v) : v = e[26], v;
|
|
149
|
-
});
|
|
150
|
-
z.displayName = "DSPopover.Content";
|
|
151
|
-
y.Anchor = R;
|
|
152
|
-
y.Content = z;
|
|
153
|
-
y.displayName = "DSPopover";
|
|
154
|
-
export {
|
|
155
|
-
y as D,
|
|
156
|
-
ce as a,
|
|
157
|
-
re as u,
|
|
158
|
-
ie as v
|
|
159
|
-
};
|