@stihl-design-system/components 1.0.0-RC.46 → 1.0.0-RC.48
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.Dvt4S5qg.js → accordion.D4XR2R7e.js} +3 -3
- package/actionbutton.C8hePX-D.js +12 -0
- package/{actioncard.BwquHtM_.js → actioncard.kDxu01xm.js} +1 -1
- package/actionlink.dccc5JQV.js +12 -0
- package/{arialiveregions.BF6mUlPU.js → arialiveregions.BniSDuPM.js} +9 -10
- package/assets/Accordion.RlqWqpGo.css +1 -0
- package/assets/ActionButton.Dw2FeIaW.css +1 -0
- package/assets/ActionCard.viEoC26n.css +1 -0
- package/assets/ActionLink.B1Jjaf7k.css +1 -0
- package/assets/Breadcrumb.BJ6sa2am.css +1 -0
- package/assets/Button.Bi1KUKMv.css +1 -0
- package/assets/Checkbox.C6RWhy0V.css +1 -0
- package/assets/Chip.DfamkUPw.css +1 -0
- package/assets/CustomReactSelect.CvWMmrAU.css +1 -0
- package/assets/Dialog.6AkQo8ew.css +1 -0
- package/assets/Drawer.CDOlX809.css +1 -0
- package/assets/Fieldset.BbLGXCWa.css +1 -0
- package/assets/Flag.qP1xbolI.css +1 -0
- package/assets/Header.CSPbSqR5.css +1 -0
- package/assets/InputFile.CDtghZtl.css +1 -0
- package/assets/InputNumber.BNpO9p7n.css +1 -0
- package/assets/InputPassword.BgZo-RUc.css +1 -0
- package/assets/InputSearch.BROFFTK9.css +1 -0
- package/assets/LinkButton.IKIlFnpH.css +1 -0
- package/assets/LinkCard.pJtgJRIh.css +1 -0
- package/assets/NavigationTabList.D5VV0C7Y.css +1 -0
- package/assets/Notification.2B81JHOp.css +1 -0
- package/assets/Pagination.DH71DZ0j.css +1 -0
- package/assets/Popover.58Tb0dOt.css +1 -0
- package/assets/Select.CfTN3CJo.css +1 -0
- package/assets/Slider.B4kzL60S.css +1 -0
- package/assets/Stepper.BCpjMiOX.css +1 -0
- package/assets/SystemFeedback.DVMml_h9.css +1 -0
- package/assets/TextUtility.BThulfyl.css +1 -0
- package/assets/Textarea.BO4AcRJD.css +1 -0
- package/assets/Toast.ChXfv24m.css +1 -0
- package/assets/buttonround.syTU1QSI.css +1 -0
- package/assets/chipgroup.DtCnsmS7.css +1 -0
- package/assets/filelist.B-Ru0GP_.css +1 -0
- package/assets/input.Dy8VS73e.css +1 -0
- package/assets/link.EZrauC8s.css +1 -0
- package/assets/numberindicator.CtbitPQ8.css +1 -0
- package/assets/optioncheckbox.BwkbIDOt.css +1 -0
- package/assets/progressindicator.tyY_RVQ9.css +1 -0
- package/assets/radio.9hUUyg8R.css +1 -0
- package/assets/step.DOAmuuEQ.css +1 -0
- package/assets/switch.8v7Wp1Fj.css +1 -0
- package/assets/tabpane.DDaeSDQb.css +1 -0
- package/assets/text.BwGsYzGM.css +1 -0
- package/assets/tooltip.C_BL2kou.css +1 -0
- package/{banner.CwZXWMc_.js → banner.DO7GsDL_.js} +1 -1
- package/{breadcrumb.DMqAgUyk.js → breadcrumb.DYov6vtt.js} +3 -3
- package/{button.BDCfI_fj.js → button.qxcuzbnv.js} +4 -4
- package/buttonround.BO7_ewzA.js +101 -0
- package/checkbox.C9kyIY9P.js +11 -0
- package/{checkboxgroup.DDWYxYzk.js → checkboxgroup.kEUxnKLf.js} +2 -2
- package/chip.5ktNLRYf.js +12 -0
- package/chipgroup.kRU3Z98U.js +226 -0
- package/chunks/Accordion.gih2ni1d.js +179 -0
- package/chunks/ActionButton.B-wm5sUy.js +194 -0
- package/chunks/{ActionCard.DJSGkwVG.js → ActionCard.Bm-2ewfS.js} +38 -38
- package/chunks/ActionLink.D0KzqbH4.js +166 -0
- package/chunks/{AriaLiveRegions.utils.8ofDlHnN.js → AriaLiveRegions.utils.xoETe2Ps.js} +16 -18
- package/chunks/{Breadcrumb.BkP2B-Vm.js → Breadcrumb.I2G-T0zc.js} +14 -14
- package/chunks/Button.CCol--xy.js +165 -0
- package/chunks/Checkbox.BxOGR1bR.js +96 -0
- package/chunks/CheckboxGroup.TneO0tuE.js +85 -0
- package/chunks/Chip.DffaXMkV.js +148 -0
- package/chunks/{CustomReactSelect.yVERtd4R.js → CustomReactSelect.DTAavYaz.js} +250 -245
- package/chunks/Dialog.guuxflWL.js +101 -0
- package/chunks/Drawer.CjUZu6GW.js +106 -0
- package/chunks/Fieldset.BBMuLKps.js +94 -0
- package/chunks/Flag.CbQYBzVC.js +74 -0
- package/chunks/{Header.DyqOlV8L.js → Header.CvcGSuhX.js} +140 -140
- package/chunks/{Icon.B0WqYErA.js → Icon.DYtaQgbw.js} +1 -1
- package/chunks/{Input.utils.D78E4MGO.js → Input.utils.Wycy2SzG.js} +23 -25
- package/chunks/InputFile.y71Cd5J9.js +260 -0
- package/chunks/InputNumber.Fn2YbF_s.js +250 -0
- package/chunks/InputPassword.DtT9yrlx.js +129 -0
- package/chunks/InputSearch.BoAfGqoH.js +157 -0
- package/chunks/LinkButton.BxG7fx1O.js +150 -0
- package/chunks/LinkCard.DM-5WrSt.js +200 -0
- package/chunks/{MegaMenu.CiSiMlE3.js → MegaMenu.udXR1H3W.js} +2 -2
- package/chunks/NavigationTabList.thzA1pU8.js +68 -0
- package/chunks/{NavigationTabs.BqaUbfFC.js → NavigationTabs.BWewgBch.js} +1 -1
- package/chunks/Notification.C_o7Ge6Q.js +91 -0
- package/chunks/Pagination.BrOMUJMi.js +272 -0
- package/chunks/Popover.CxZZ_y1Z.js +230 -0
- package/chunks/RadioGroup.CO91_5hA.js +136 -0
- package/chunks/Select.EzoMdk1u.js +157 -0
- package/chunks/Slider.CX38t4Sk.js +330 -0
- package/chunks/{Stepper.Bqnak38-.js → Stepper.Ds_aIEF8.js} +72 -73
- package/chunks/SystemFeedback.DhWcYjnu.js +43 -0
- package/chunks/{Tabs.cMCZMPCy.js → Tabs.BHVlgp7L.js} +2 -2
- package/chunks/Text.utils.DzlY9pJS.js +9 -0
- package/chunks/TextUtility.BZLwqyic.js +82 -0
- package/chunks/Textarea.vuJgvW6_.js +192 -0
- package/chunks/Toast.V_ZUAsf2.js +76 -0
- package/chunks/floating-ui.react.Chmq0RmI.js +3014 -0
- package/chunks/translate.DSb-TdWR.js +2460 -0
- package/{combobox.CpX-Vlyd.js → combobox.C6cPz4AJ.js} +1 -1
- package/components/Accordion/Accordion.d.ts +5 -0
- package/components/ActionButton/ActionButton.d.ts +5 -1
- package/components/ActionLink/ActionLink.d.ts +1 -1
- package/components/Button/Button.utils.d.ts +1 -1
- package/components/Checkbox/Checkbox.d.ts +8 -1
- package/components/CheckboxGroup/CheckboxGroup.d.ts +9 -1
- package/components/ChipGroup/Chip.d.ts +2 -0
- package/components/ChipGroup/ChipGroup.d.ts +12 -2
- package/components/ChipGroup/ChipGroup.utils.d.ts +39 -15
- package/components/Combobox/Combobox.utils.d.ts +66 -9
- package/components/Combobox/CustomReactSelect/CustomReactSelect.d.ts +5 -1
- package/components/Combobox/CustomReactSelect/CustomReactSelect.utils.d.ts +1 -1
- package/components/Fieldset/Fieldset.d.ts +9 -2
- package/components/Flag/Flag.d.ts +3 -3
- package/components/Flag/Flag.utils.d.ts +7 -2
- package/components/Input/Input.d.ts +8 -1
- package/components/InputFile/FileList/FileList.d.ts +4 -2
- package/components/InputFile/FileList/FilePreview/FilePreview.d.ts +8 -2
- package/components/InputFile/FileList/ProgressIndicator/ProgressIndicator.d.ts +8 -2
- package/components/InputFile/InputFile.d.ts +12 -2
- package/components/InputFile/InputFile.utils.d.ts +41 -23
- package/components/InputNumber/InputNumber.d.ts +8 -1
- package/components/InputPassword/InputPassword.d.ts +8 -1
- package/components/InputSearch/InputSearch.d.ts +8 -1
- package/components/LinkCard/LinkCard.d.ts +10 -4
- package/components/LinkCard/LinkCard.utils.d.ts +2 -2
- package/components/NumberIndicator/NumberIndicator.d.ts +6 -1
- package/components/Pagination/Pagination.d.ts +10 -3
- package/components/Pagination/Pagination.utils.d.ts +22 -9
- package/components/Popover/Popover.d.ts +9 -1
- package/components/Popover/Popover.utils.d.ts +3 -2
- package/components/Radio/Radio.d.ts +5 -0
- package/components/RadioGroup/RadioGroup.d.ts +8 -0
- package/components/Select/Select.d.ts +8 -1
- package/components/Slider/Slider.d.ts +8 -1
- package/components/Stepper/Step.d.ts +1 -1
- package/components/Stepper/Step.utils.d.ts +1 -1
- package/components/Stepper/Stepper.d.ts +4 -1
- package/components/Stepper/Stepper.utils.d.ts +9 -4
- package/components/SystemFeedback/SystemFeedback.d.ts +9 -1
- package/components/Textarea/Textarea.d.ts +8 -1
- package/{customreactselect.B1FFXsJ8.js → customreactselect.L0zSh3Tg.js} +6 -6
- package/{dialog.ZQ-HnvZs.js → dialog.Ddq8o8Od.js} +2 -2
- package/{drawer.D0-RM0WZ.js → drawer.rbbjQvqL.js} +2 -2
- package/{fieldset.BzOeuWjO.js → fieldset.BHf3XK2q.js} +3 -3
- package/filelist.GrEwoM1u.js +143 -0
- package/filepreview.B2Ot9SZ7.js +97 -0
- package/flag.fX6LAgty.js +10 -0
- package/{floatingactionbutton.AVc4qY0u.js → floatingactionbutton.BwCiybnc.js} +3 -3
- package/{header.BtGgmM59.js → header.BCeCjYfG.js} +1 -1
- package/{icon.DrTLVrpN.js → icon.CRr1FGOu.js} +1 -1
- package/index.es.js +231 -230
- package/input.Dh0ws-9j.js +187 -0
- package/inputfile.DiZh3GcT.js +17 -0
- package/{inputnumber.r0iVYkjd.js → inputnumber.D2cmptaH.js} +8 -9
- package/{inputpassword.PXBZo3f0.js → inputpassword.C53Kg4EA.js} +4 -4
- package/inputsearch.BrsIDUSW.js +14 -0
- package/link.DEZDbUgq.js +81 -0
- package/{linkbutton.DVFXzn-A.js → linkbutton._X50W2Md.js} +3 -3
- package/{linkcard.BwSMt03V.js → linkcard.BtM3KnjT.js} +4 -4
- package/{logo.D7LnRA1E.js → logo.D6BTxbxv.js} +0 -1
- package/{megamenu.CUjk3_h2.js → megamenu.odVCUm4c.js} +3 -3
- package/navigationtablist.n9DrtYe5.js +10 -0
- package/{navigationtabs.DmcYShPs.js → navigationtabs.D0mSyAtK.js} +2 -2
- package/{notification.BVoapVVg.js → notification._X8-8vOa.js} +3 -3
- package/numberindicator.DsK65Bj3.js +39 -0
- package/optioncheckbox.tlMEoyT0.js +48 -0
- package/package.json +38 -33
- package/pagination.B7Hrx_sk.js +14 -0
- package/partials/index.js +91 -91
- package/{popover.OcE_5SfG.js → popover.BBaqL7y9.js} +4 -4
- package/progressindicator.D9CfVD95.js +74 -0
- package/radio.DjToa2aV.js +148 -0
- package/{radiogroup.N06_e0b8.js → radiogroup.mc-8lw65.js} +3 -3
- package/{scroller.CwTXbzb8.js → scroller.CgWp2WXG.js} +10 -11
- package/select.DTZ6a6Ag.js +13 -0
- package/{skeleton.DUkBgXxO.js → skeleton.CNJdNVav.js} +10 -10
- package/{skiptocontent.Bujq9t3i.js → skiptocontent.BsRpWvyu.js} +4 -4
- package/{slider.JAKEAwOB.js → slider.BMGAihY0.js} +3 -3
- package/{spinner.D1W-X96t.js → spinner.DtLnsqVV.js} +1 -1
- package/step.DCQ6CawJ.js +82 -0
- package/stepper.D7-7BdSv.js +15 -0
- package/styles/js/index.d.ts +1 -0
- package/styles/js/index.es.js +24 -4
- package/styles/js/lib/spacing-rem.d.ts +21 -0
- package/styles/js/lib/spacing.d.ts +0 -1
- package/styles/scss/ds/index.scss +4 -1
- package/styles/scss/ds/lib/border-width.scss +3 -0
- package/styles/scss/ds/lib/ds-internal/_input.scss +71 -26
- package/styles/scss/ds/lib/ds-internal/_link-button.scss +7 -4
- package/styles/scss/ds/lib/ds-internal/_link.scss +23 -3
- package/styles/scss/ds/lib/ds-internal/_text.scss +3 -1
- package/styles/scss/ds/lib/grid-narrow.scss +1 -0
- package/styles/scss/ds/lib/input.scss +12 -7
- package/styles/scss/ds/lib/link.scss +2 -2
- package/styles/scss/ds/lib/radius.scss +5 -0
- package/styles/scss/ds/lib/spacing-rem.scss +19 -0
- package/styles/scss/ds/lib/spacing.scss +0 -1
- package/switch.tM2XBag8.js +66 -0
- package/{systemfeedback.B8FBckG4.js → systemfeedback.BPPOht_9.js} +2 -2
- package/{tablist.D3n9E4KM.js → tablist.BAm0_UIG.js} +22 -23
- package/{tabpane.7vMXUKFX.js → tabpane.B9rZghU6.js} +1 -1
- package/{tabs.IVNsM5Gn.js → tabs.BgTdWbTe.js} +3 -3
- package/text.BEO_ZfJq.js +72 -0
- package/{textarea.gjb8VGgh.js → textarea.Cki-uMkZ.js} +5 -6
- package/{textutility.CNWCGYOy.js → textutility.BypzssPt.js} +2 -2
- package/{toast.DU8Sd_4c.js → toast.s0Hfuh5i.js} +3 -3
- package/{toastmanager.UlkvsO5p.js → toastmanager.CPIPn4Io.js} +22 -23
- package/{tooltip.C6HKano9.js → tooltip.BFQG-7VR.js} +22 -22
- package/{topbar.Z9NNkxKU.js → topbar.Bbct-XkB.js} +3 -3
- package/utils/translate.d.ts +22 -6
- package/actionbutton.D6qmbuAA.js +0 -12
- package/actionlink.fWwe7J0H.js +0 -12
- package/assets/Accordion.Cr1dbVTH.css +0 -1
- package/assets/ActionButton.BLOWs6IZ.css +0 -1
- package/assets/ActionCard.BG8w8xUC.css +0 -1
- package/assets/ActionLink.BJDUVdT7.css +0 -1
- package/assets/Breadcrumb.BavNNzAA.css +0 -1
- package/assets/Button.C-UYIggc.css +0 -1
- package/assets/Checkbox.ZAPIO2N8.css +0 -1
- package/assets/Chip.D3vV0wyV.css +0 -1
- package/assets/CustomReactSelect.Ctze4SRN.css +0 -1
- package/assets/Dialog.BKwWy1g2.css +0 -1
- package/assets/Drawer.BU-fi5Hk.css +0 -1
- package/assets/Fieldset.DCmr1Yir.css +0 -1
- package/assets/Header.BNYL2Y78.css +0 -1
- package/assets/InputFile.BUMCNCrj.css +0 -1
- package/assets/InputNumber.Bmz8cNKg.css +0 -1
- package/assets/InputPassword.CutbykTm.css +0 -1
- package/assets/InputSearch.Sr9jVpKt.css +0 -1
- package/assets/LinkButton.CxJvjEY5.css +0 -1
- package/assets/LinkCard.DkQoQJxx.css +0 -1
- package/assets/NavigationTabList.DYjNT2Di.css +0 -1
- package/assets/Notification.DBGpHzov.css +0 -1
- package/assets/Pagination.DZ1yCAMR.css +0 -1
- package/assets/Popover.mL5g23EK.css +0 -1
- package/assets/Select.BZYb_HAG.css +0 -1
- package/assets/Slider.vnSU0ya0.css +0 -1
- package/assets/Stepper.tXJl15yL.css +0 -1
- package/assets/SystemFeedback.PKzqnXUe.css +0 -1
- package/assets/TextUtility.CEBJaKBG.css +0 -1
- package/assets/Textarea.BIgA9_fl.css +0 -1
- package/assets/Toast.CGl8z6mX.css +0 -1
- package/assets/buttonround.CMrJRIeW.css +0 -1
- package/assets/chipgroup.BGxjdSDX.css +0 -1
- package/assets/filelist.CHVupL8T.css +0 -1
- package/assets/flag.CyCIPu_J.css +0 -1
- package/assets/input.BEOus9jX.css +0 -1
- package/assets/link.Dcsio57m.css +0 -1
- package/assets/numberindicator.BYIPwkAK.css +0 -1
- package/assets/optioncheckbox.6zYgifUk.css +0 -1
- package/assets/progressindicator.Cbbzo5-b.css +0 -1
- package/assets/radio.l9OTraQU.css +0 -1
- package/assets/step.Ch508u7I.css +0 -1
- package/assets/switch.DYamtd9O.css +0 -1
- package/assets/tabpane.o34hshTz.css +0 -1
- package/assets/text.BA1eUihR.css +0 -1
- package/assets/tooltip.BPcysHGE.css +0 -1
- package/buttonround.DZCu35Zw.js +0 -101
- package/checkbox.RYvu23i4.js +0 -12
- package/chip.CtZK5gH7.js +0 -12
- package/chipgroup.C-UJt9Nb.js +0 -213
- package/chunks/Accordion.Tz7cWkk5.js +0 -173
- package/chunks/ActionButton.Dqay6Dxt.js +0 -188
- package/chunks/ActionLink.BgWqWSKi.js +0 -161
- package/chunks/Button.Dauhc5op.js +0 -160
- package/chunks/Checkbox.C5Jgtwho.js +0 -88
- package/chunks/CheckboxGroup.Df_nLGBa.js +0 -79
- package/chunks/Chip.DXS_ZMGD.js +0 -157
- package/chunks/Dialog.mP1tZEbW.js +0 -102
- package/chunks/Drawer.D6IG0DRe.js +0 -107
- package/chunks/Fieldset.DxhNhprT.js +0 -91
- package/chunks/InputFile.BSGunqyW.js +0 -260
- package/chunks/InputNumber.BsBAdxWr.js +0 -240
- package/chunks/InputPassword.hZYiAKYC.js +0 -121
- package/chunks/InputSearch.Dp3x5RE4.js +0 -149
- package/chunks/LinkButton.DHcfHamd.js +0 -150
- package/chunks/LinkCard.DV-V9qHd.js +0 -197
- package/chunks/NavigationTabList.BIApwNzg.js +0 -68
- package/chunks/Notification.DeedcinQ.js +0 -91
- package/chunks/Pagination.DhD8i5AV.js +0 -247
- package/chunks/Popover.Cyf3CbLl.js +0 -221
- package/chunks/RadioGroup.D3omhLuC.js +0 -130
- package/chunks/Select.DOeJaqzM.js +0 -147
- package/chunks/Slider.d3gCkWL_.js +0 -309
- package/chunks/SystemFeedback.Dq3ZphgG.js +0 -38
- package/chunks/Text.utils.D_iOyOSH.js +0 -11
- package/chunks/TextUtility.Wbd4oQXI.js +0 -82
- package/chunks/Textarea.DhRMfiWu.js +0 -181
- package/chunks/Toast.KMEq0p-E.js +0 -76
- package/chunks/floating-ui.react.CP5A99-c.js +0 -2980
- package/chunks/translate.nuU7uChI.js +0 -8
- package/filelist.BaYCDtxD.js +0 -128
- package/filepreview.BCslhbM5.js +0 -94
- package/flag.DyZLEgAw.js +0 -50
- package/input.DNdSFW5k.js +0 -175
- package/inputfile.CTXJ_ZSi.js +0 -18
- package/inputsearch.JLM0fNPt.js +0 -15
- package/link.CArLlIsR.js +0 -81
- package/navigationtablist.BerRIzu-.js +0 -10
- package/numberindicator.ZGVRSmqf.js +0 -36
- package/optioncheckbox.BQo8riVL.js +0 -48
- package/pagination.Dm1WnFhY.js +0 -14
- package/progressindicator.1JRFwf-H.js +0 -53
- package/radio.DxdVKoxe.js +0 -137
- package/select.DVuQMz7l.js +0 -14
- package/step.CDNmsF4m.js +0 -82
- package/stepper.D0kSuiYh.js +0 -16
- package/switch.pN105F5-.js +0 -66
- package/text.D_e3JBvf.js +0 -72
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsxs as m, jsx as a } from "react/jsx-runtime";
|
|
3
|
+
import { c as s } from "./index.DQOqod3i.js";
|
|
4
|
+
import { forwardRef as oe, useState as ie, useRef as V, useEffect as O } from "react";
|
|
5
|
+
import { u as W } from "./useBreakpoint.1txsny17.js";
|
|
6
|
+
import { Asterisk as re } from "../asterisk.Dwtdwpkq.js";
|
|
7
|
+
import { D as $ } from "./Button.CCol--xy.js";
|
|
8
|
+
import { D as le } from "./Popover.CxZZ_y1Z.js";
|
|
9
|
+
import { D as ce } from "./SystemFeedback.DhWcYjnu.js";
|
|
10
|
+
import { g as _, a as ue } from "./helpers.CexwVao7.js";
|
|
11
|
+
import '../assets/InputSearch.BROFFTK9.css';const pe = "ds-input-search_input_16e1s_1", de = "ds-input-search_input--small_16e1s_9", he = "ds-input-search_input--invalid_16e1s_127", be = "ds-input-search_input--dark_16e1s_145", me = "ds-input-search_input--has-action-button_16e1s_296", _e = "ds-input-search_input--has-second-action-button_16e1s_299", fe = "ds-input-search_root_16e1s_338", De = "ds-input-search_hint_16e1s_338", Se = "ds-input-search_label-wrapper_16e1s_338", ve = "ds-input-search_wrapper_16e1s_342", ke = "ds-input-search_action-button_16e1s_348", Be = "ds-input-search_second-action-button_16e1s_352", ye = "ds-input-search_label_16e1s_338", Ie = "ds-input-search_label--disabled_16e1s_371", we = "ds-input-search_label--dark_16e1s_375", ge = "ds-input-search_label-wrapper--hidden_16e1s_391", Ne = "ds-input-search_hint--dark_16e1s_418", Ce = "ds-input-search_feedback_16e1s_422", e = {
|
|
12
|
+
input: pe,
|
|
13
|
+
inputSmall: de,
|
|
14
|
+
inputInvalid: he,
|
|
15
|
+
inputDark: be,
|
|
16
|
+
inputHasActionButton: me,
|
|
17
|
+
inputHasSecondActionButton: _e,
|
|
18
|
+
root: fe,
|
|
19
|
+
hint: De,
|
|
20
|
+
labelWrapper: Se,
|
|
21
|
+
wrapper: ve,
|
|
22
|
+
actionButton: ke,
|
|
23
|
+
secondActionButton: Be,
|
|
24
|
+
label: ye,
|
|
25
|
+
labelDisabled: Ie,
|
|
26
|
+
labelDark: we,
|
|
27
|
+
labelWrapperHidden: ge,
|
|
28
|
+
hintDark: Ne,
|
|
29
|
+
feedback: Ce
|
|
30
|
+
}, Ae = ({
|
|
31
|
+
id: i,
|
|
32
|
+
label: o,
|
|
33
|
+
hideLabel: n,
|
|
34
|
+
popoverContent: p
|
|
35
|
+
}) => {
|
|
36
|
+
if (!i)
|
|
37
|
+
throw new Error(_("DSInputSearch", 'A unique "id" prop is required. Please add a unique "id" prop to the DSInputSearch component.'));
|
|
38
|
+
if (!o)
|
|
39
|
+
throw new Error(_("DSInputSearch", `A label is always required for a11y reasons. Please add a descriptive "label" prop to the DSInputSearch component. If you don't want to display a label, set hideLabel={true}.`));
|
|
40
|
+
n && p && console.warn(_("DSInputSearch", "Using a popover when hideLabel is set to true is not supported."));
|
|
41
|
+
}, Ee = (i) => !!ue(i, "form"), Le = oe((i, o) => {
|
|
42
|
+
const {
|
|
43
|
+
id: n,
|
|
44
|
+
label: p,
|
|
45
|
+
className: j,
|
|
46
|
+
clearButtonLabel: q = "Clear search field",
|
|
47
|
+
disabled: r = !1,
|
|
48
|
+
hint: f,
|
|
49
|
+
hideLabel: y = !1,
|
|
50
|
+
invalid: d = !1,
|
|
51
|
+
popoverContent: D,
|
|
52
|
+
popoverInfoButtonProps: F,
|
|
53
|
+
readonly: l = !1,
|
|
54
|
+
required: I = !1,
|
|
55
|
+
size: c = "medium",
|
|
56
|
+
systemFeedback: S,
|
|
57
|
+
theme: u = "light",
|
|
58
|
+
value: v,
|
|
59
|
+
submitButtonProps: R,
|
|
60
|
+
onChange: w,
|
|
61
|
+
...x
|
|
62
|
+
} = i;
|
|
63
|
+
process.env.NODE_ENV !== "production" && Ae({
|
|
64
|
+
id: n,
|
|
65
|
+
label: p,
|
|
66
|
+
hideLabel: W(y),
|
|
67
|
+
popoverContent: D
|
|
68
|
+
});
|
|
69
|
+
const {
|
|
70
|
+
label: T = "Search",
|
|
71
|
+
onClick: M,
|
|
72
|
+
...z
|
|
73
|
+
} = R || {}, k = u === "dark", [h, g] = ie(v), B = V(null), b = V(null), U = (t) => {
|
|
74
|
+
b.current = t, typeof o == "function" ? o(t) : o && (o.current = t);
|
|
75
|
+
}, N = W(y);
|
|
76
|
+
O(() => {
|
|
77
|
+
g(v);
|
|
78
|
+
}, [v]), O(() => {
|
|
79
|
+
B.current && !Ee(B.current) && process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" && console.warn(_("DSInputSearch", `The DSInputSearch component with the id "${n}" is not within a form element. This may cause issues with form submission. Please ensure the DSInputSearch component is within a form element.`));
|
|
80
|
+
}, []);
|
|
81
|
+
const C = `${n}-label`, A = `${n}-feedback`, E = `${n}-hint`, G = f ? ` ${E}` : "", J = [d && S && A].filter(Boolean).join(" ") || void 0, L = h !== "" && h !== void 0 && h !== null, K = s(e.root, j), Q = s(e.input, {
|
|
82
|
+
[e.inputDark]: k,
|
|
83
|
+
// small input
|
|
84
|
+
[e.inputSmall]: c === "small",
|
|
85
|
+
// invalid state
|
|
86
|
+
[e.inputInvalid]: d,
|
|
87
|
+
// action button - input password always has an action button
|
|
88
|
+
[e.inputHasActionButton]: !0,
|
|
89
|
+
// action second action button
|
|
90
|
+
[e.inputHasSecondActionButton]: L && !l && !r
|
|
91
|
+
}), X = s(e.label, {
|
|
92
|
+
[e.labelDark]: k,
|
|
93
|
+
[e.labelDisabled]: r
|
|
94
|
+
}), Y = s(e.labelWrapper, {
|
|
95
|
+
// hide label only visually to keep them available for assistive technologies
|
|
96
|
+
[e.labelWrapperHidden]: N
|
|
97
|
+
}), Z = s(e.actionButton, {
|
|
98
|
+
[e.actionButtonSmall]: c === "small"
|
|
99
|
+
}), ee = s(e.secondActionButton, {
|
|
100
|
+
[e.secondActionButtonSmall]: c === "small"
|
|
101
|
+
}), te = (t, P) => {
|
|
102
|
+
const se = Object.getPrototypeOf(t), H = Object.getOwnPropertyDescriptor(se, "value");
|
|
103
|
+
H?.set ? H.set.call(t, P) : t.value = P;
|
|
104
|
+
}, ne = () => {
|
|
105
|
+
if (!b.current)
|
|
106
|
+
return;
|
|
107
|
+
te(b.current, "");
|
|
108
|
+
const t = new Event("change", {
|
|
109
|
+
bubbles: !0
|
|
110
|
+
});
|
|
111
|
+
b.current?.dispatchEvent(t);
|
|
112
|
+
}, ae = (t) => {
|
|
113
|
+
g(t.target.value), w && w(t);
|
|
114
|
+
};
|
|
115
|
+
return /* @__PURE__ */ m("div", { className: K, ref: B, children: [
|
|
116
|
+
/* @__PURE__ */ m("div", { className: Y, children: [
|
|
117
|
+
/* @__PURE__ */ m("label", { className: X, id: C, htmlFor: n, children: [
|
|
118
|
+
p,
|
|
119
|
+
I && /* @__PURE__ */ a(re, {})
|
|
120
|
+
] }),
|
|
121
|
+
D && !N && /* @__PURE__ */ a(le, { placement: "top", theme: u, defaultAnchorButtonProps: F, children: D })
|
|
122
|
+
] }),
|
|
123
|
+
f && /* @__PURE__ */ a("div", { className: s(e.hint, {
|
|
124
|
+
[e.hintDark]: k
|
|
125
|
+
}), id: E, children: f }),
|
|
126
|
+
/* @__PURE__ */ m("div", { className: e.wrapper, children: [
|
|
127
|
+
/* @__PURE__ */ a(
|
|
128
|
+
"input",
|
|
129
|
+
{
|
|
130
|
+
className: Q,
|
|
131
|
+
id: n,
|
|
132
|
+
...x,
|
|
133
|
+
ref: U,
|
|
134
|
+
"aria-labelledby": `${C}${G}`,
|
|
135
|
+
"aria-describedby": J,
|
|
136
|
+
"aria-invalid": d,
|
|
137
|
+
"aria-disabled": l,
|
|
138
|
+
readOnly: l,
|
|
139
|
+
required: I,
|
|
140
|
+
disabled: r,
|
|
141
|
+
type: "search",
|
|
142
|
+
value: h,
|
|
143
|
+
onChange: ae
|
|
144
|
+
}
|
|
145
|
+
),
|
|
146
|
+
L && !l && !r && /* @__PURE__ */ a($, { hideLabel: !0, theme: u, iconName: "cross", className: ee, variant: "ghost", size: c, onClick: ne, type: "button", tabIndex: -1, children: q }),
|
|
147
|
+
/* @__PURE__ */ a($, { ...z, hideLabel: !0, theme: u, iconName: "magnifying-glass", className: Z, variant: "ghost", size: c, onClick: M, type: "submit", disabled: r || l, children: T })
|
|
148
|
+
] }),
|
|
149
|
+
d && S && /* @__PURE__ */ a(ce, { className: e.feedback, message: S, variant: "error", id: A, theme: u })
|
|
150
|
+
] });
|
|
151
|
+
});
|
|
152
|
+
Le.displayName = "DSInputSearch";
|
|
153
|
+
export {
|
|
154
|
+
Le as D,
|
|
155
|
+
Ee as i,
|
|
156
|
+
Ae as v
|
|
157
|
+
};
|
|
@@ -0,0 +1,150 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsxs as kt, jsx as K } from "react/jsx-runtime";
|
|
3
|
+
import { d as pt } from "./index.cKLI89Eg.js";
|
|
4
|
+
import { c as _t } from "./index.DQOqod3i.js";
|
|
5
|
+
import { D as bt } from "./Icon.DYtaQgbw.js";
|
|
6
|
+
import { Tooltip as ft } from "../tooltip.BFQG-7VR.js";
|
|
7
|
+
import { g as D } from "./helpers.CexwVao7.js";
|
|
8
|
+
import { forwardRef as Dt } from "react";
|
|
9
|
+
import { u as wt } from "./useBreakpoint.1txsny17.js";
|
|
10
|
+
import '../assets/LinkButton.IKIlFnpH.css';const St = "ds-link-button_root_6wtw2_1", Nt = "ds-link-button_root--highlight_6wtw2_76", Lt = "ds-link-button_root--dark-highlight_6wtw2_76", It = "ds-link-button_root--filled_6wtw2_152", Ft = "ds-link-button_root--outline_6wtw2_180", Ot = "ds-link-button_root--ghost_6wtw2_207", Bt = "ds-link-button_root--ghost-flush_6wtw2_232", yt = "ds-link-button_root--small_6wtw2_238", Tt = "ds-link-button_root--navigation_6wtw2_429", Gt = "ds-link-button_root--navigation--stretched_6wtw2_507", Ht = "ds-link-button_root--navigation--stretched--icon-left_6wtw2_510", Pt = "ds-link-button_root--dark-filled_6wtw2_513", Et = "ds-link-button_root--dark-outline_6wtw2_570", At = "ds-link-button_root--dark-ghost_6wtw2_626", xt = "ds-link-button_root--dark-ghost-flush_6wtw2_680", zt = "ds-link-button_root--stretched_6wtw2_855", Ct = "ds-link-button_root--icon-left_6wtw2_858", Vt = "ds-link-button_root--icon-only_6wtw2_861", jt = "ds-link-button_root--icon-only-small_6wtw2_877", Kt = "ds-link-button_icon--navigation_6wtw2_896", Rt = "ds-link-button_label--hidden_6wtw2_904", e = {
|
|
11
|
+
root: St,
|
|
12
|
+
rootHighlight: Nt,
|
|
13
|
+
rootDarkHighlight: Lt,
|
|
14
|
+
rootFilled: It,
|
|
15
|
+
rootOutline: Ft,
|
|
16
|
+
rootGhost: Ot,
|
|
17
|
+
rootGhostFlush: Bt,
|
|
18
|
+
rootSmall: yt,
|
|
19
|
+
rootNavigation: Tt,
|
|
20
|
+
rootNavigationStretched: Gt,
|
|
21
|
+
rootNavigationStretchedIconLeft: Ht,
|
|
22
|
+
rootDarkFilled: Pt,
|
|
23
|
+
rootDarkOutline: Et,
|
|
24
|
+
rootDarkGhost: At,
|
|
25
|
+
rootDarkGhostFlush: xt,
|
|
26
|
+
rootStretched: zt,
|
|
27
|
+
rootIconLeft: Ct,
|
|
28
|
+
rootIconOnly: Vt,
|
|
29
|
+
rootIconOnlySmall: jt,
|
|
30
|
+
iconNavigation: Kt,
|
|
31
|
+
labelHidden: Rt
|
|
32
|
+
}, to = ["medium", "small"], oo = ["filled", "highlight", "outline", "ghost", "navigation"], Ut = ({
|
|
33
|
+
hideLabel: S,
|
|
34
|
+
iconName: N,
|
|
35
|
+
iconSource: t,
|
|
36
|
+
isFlush: i,
|
|
37
|
+
size: l,
|
|
38
|
+
stretched: s,
|
|
39
|
+
theme: r,
|
|
40
|
+
variant: n
|
|
41
|
+
}) => {
|
|
42
|
+
if (n === "navigation" && (l === "small" && console.warn(D("DSLinkButton", 'A "size" prop should not be used in combination with variant="navigation". Please remove the "size" prop.')), r === "dark"))
|
|
43
|
+
throw new Error(D("DSLinkButton", 'A DSLinkButton with variant="navigation" does not support theme="dark". Please remove the "theme" prop.'));
|
|
44
|
+
n !== "ghost" && i ? console.warn(D("DSLinkButton", 'The "isFlush" prop only has an effect when used with variant="ghost". Please remove the "isFlush" prop or set variant="ghost".')) : n === "ghost" && i && s && console.warn(D("DSLinkButton", 'The "stretched" and "isFlush" props do not have an effect when used together. Please remove one of them.')), S && (!N && !t && console.warn(D("DSLinkButton", 'The "hideLabel" prop is set to true but no icon is provided via "iconName" or "iconSource". Please provide an icon to ensure the link is not empty when the label is hidden.')), s && console.warn(D("DSLinkButton", 'The "stretched" and "hideLabel" props do not have an effect when used together. Please remove one of them.')));
|
|
45
|
+
}, Mt = Dt((S, N) => {
|
|
46
|
+
const t = pt.c(76);
|
|
47
|
+
let i, l, s, r, n, a, c, u, g, _, L, I, F, O, B, y, T, G, h;
|
|
48
|
+
t[0] !== S ? ({
|
|
49
|
+
children: l,
|
|
50
|
+
aria: i,
|
|
51
|
+
className: s,
|
|
52
|
+
download: r,
|
|
53
|
+
hideLabel: L,
|
|
54
|
+
href: n,
|
|
55
|
+
iconName: a,
|
|
56
|
+
iconPosition: I,
|
|
57
|
+
iconSource: c,
|
|
58
|
+
isFlush: F,
|
|
59
|
+
referrerPolicy: u,
|
|
60
|
+
rel: g,
|
|
61
|
+
size: O,
|
|
62
|
+
stretched: B,
|
|
63
|
+
target: y,
|
|
64
|
+
theme: T,
|
|
65
|
+
variant: G,
|
|
66
|
+
tooltip: h,
|
|
67
|
+
..._
|
|
68
|
+
} = S, t[0] = S, t[1] = i, t[2] = l, t[3] = s, t[4] = r, t[5] = n, t[6] = a, t[7] = c, t[8] = u, t[9] = g, t[10] = _, t[11] = L, t[12] = I, t[13] = F, t[14] = O, t[15] = B, t[16] = y, t[17] = T, t[18] = G, t[19] = h) : (i = t[1], l = t[2], s = t[3], r = t[4], n = t[5], a = t[6], c = t[7], u = t[8], g = t[9], _ = t[10], L = t[11], I = t[12], F = t[13], O = t[14], B = t[15], y = t[16], T = t[17], G = t[18], h = t[19]);
|
|
69
|
+
const vt = L === void 0 ? !1 : L, R = I === void 0 ? "left" : I, H = F === void 0 ? !1 : F, E = O === void 0 ? "medium" : O, mt = B === void 0 ? !1 : B, U = y === void 0 ? "_self" : y, M = T === void 0 ? "light" : T, o = G === void 0 ? "filled" : G, f = wt(vt), P = wt(mt);
|
|
70
|
+
process.env.NODE_ENV !== "production" && Ut({
|
|
71
|
+
hideLabel: f,
|
|
72
|
+
iconName: a,
|
|
73
|
+
iconSource: c,
|
|
74
|
+
isFlush: H,
|
|
75
|
+
size: E,
|
|
76
|
+
stretched: mt,
|
|
77
|
+
theme: M,
|
|
78
|
+
variant: o
|
|
79
|
+
});
|
|
80
|
+
const d = M === "dark", Z = o === "filled", $ = o === "highlight", q = o === "outline", J = o === "ghost" && H !== !0, Q = o === "navigation", W = o === "navigation" && P && R === "right", X = o === "navigation" && P && R === "left", Y = o === "ghost" && H === !0, tt = d && o === "filled", ot = d && o === "highlight", et = d && o === "outline", nt = d && o === "ghost" && H !== !0, it = d && o === "ghost" && H === !0, st = E === "small" || o === "navigation", lt = R === "left", rt = f && E === "medium" && o !== "navigation", at = f && E === "small" && o !== "navigation";
|
|
81
|
+
let A;
|
|
82
|
+
t[20] !== s || t[21] !== P || t[22] !== $ || t[23] !== q || t[24] !== J || t[25] !== Q || t[26] !== W || t[27] !== X || t[28] !== Y || t[29] !== tt || t[30] !== ot || t[31] !== et || t[32] !== nt || t[33] !== it || t[34] !== st || t[35] !== lt || t[36] !== rt || t[37] !== at || t[38] !== Z ? (A = _t(e.root, s, {
|
|
83
|
+
[e.rootFilled]: Z,
|
|
84
|
+
[e.rootHighlight]: $,
|
|
85
|
+
[e.rootOutline]: q,
|
|
86
|
+
[e.rootGhost]: J,
|
|
87
|
+
[e.rootNavigation]: Q,
|
|
88
|
+
[e.rootNavigationStretched]: W,
|
|
89
|
+
[e.rootNavigationStretchedIconLeft]: X,
|
|
90
|
+
[e.rootGhostFlush]: Y,
|
|
91
|
+
[e.rootDarkFilled]: tt,
|
|
92
|
+
[e.rootDarkHighlight]: ot,
|
|
93
|
+
[e.rootDarkOutline]: et,
|
|
94
|
+
[e.rootDarkGhost]: nt,
|
|
95
|
+
[e.rootDarkGhostFlush]: it,
|
|
96
|
+
[e.rootSmall]: st,
|
|
97
|
+
[e.rootStretched]: P,
|
|
98
|
+
[e.rootIconLeft]: lt,
|
|
99
|
+
[e.rootIconOnly]: rt,
|
|
100
|
+
[e.rootIconOnlySmall]: at
|
|
101
|
+
}), t[20] = s, t[21] = P, t[22] = $, t[23] = q, t[24] = J, t[25] = Q, t[26] = W, t[27] = X, t[28] = Y, t[29] = tt, t[30] = ot, t[31] = et, t[32] = nt, t[33] = it, t[34] = st, t[35] = lt, t[36] = rt, t[37] = at, t[38] = Z, t[39] = A) : A = t[39];
|
|
102
|
+
const ct = A;
|
|
103
|
+
let x;
|
|
104
|
+
t[40] !== f || t[41] !== o ? (x = _t({
|
|
105
|
+
[e.labelHidden]: f && o !== "navigation"
|
|
106
|
+
}) || void 0, t[40] = f, t[41] = o, t[42] = x) : x = t[42];
|
|
107
|
+
const ht = x, dt = o === "navigation";
|
|
108
|
+
let z;
|
|
109
|
+
t[43] !== dt ? (z = _t({
|
|
110
|
+
[e.iconNavigation]: dt
|
|
111
|
+
}), t[43] = dt, t[44] = z) : z = t[44];
|
|
112
|
+
const ut = z, gt = M === "light" && o === "filled" || d && o === "outline" || d && o === "ghost" ? "dark" : "light", m = n === void 0 ? "span" : "a";
|
|
113
|
+
let k;
|
|
114
|
+
t[45] !== m || t[46] !== r || t[47] !== n || t[48] !== u || t[49] !== g || t[50] !== U ? (k = m === "a" && {
|
|
115
|
+
href: n,
|
|
116
|
+
target: U,
|
|
117
|
+
rel: g,
|
|
118
|
+
referrerPolicy: u,
|
|
119
|
+
download: r
|
|
120
|
+
}, t[45] = m, t[46] = r, t[47] = n, t[48] = u, t[49] = g, t[50] = U, t[51] = k) : k = t[51];
|
|
121
|
+
let w;
|
|
122
|
+
t[52] !== l || t[53] !== ht ? (w = /* @__PURE__ */ K("span", { className: ht, children: l }), t[52] = l, t[53] = ht, t[54] = w) : w = t[54];
|
|
123
|
+
let v;
|
|
124
|
+
t[55] !== ut || t[56] !== a || t[57] !== c || t[58] !== gt ? (v = (a || c) && /* @__PURE__ */ K(bt, { name: a, theme: gt, source: c, className: ut, "aria-hidden": "true" }), t[55] = ut, t[56] = a, t[57] = c, t[58] = gt, t[59] = v) : v = t[59];
|
|
125
|
+
let C;
|
|
126
|
+
t[60] !== m || t[61] !== i || t[62] !== N || t[63] !== _ || t[64] !== ct || t[65] !== k || t[66] !== w || t[67] !== v ? (C = /* @__PURE__ */ kt(m, { className: ct, ...k, ...i, ..._, ref: N, children: [
|
|
127
|
+
w,
|
|
128
|
+
v
|
|
129
|
+
] }), t[60] = m, t[61] = i, t[62] = N, t[63] = _, t[64] = ct, t[65] = k, t[66] = w, t[67] = v, t[68] = C) : C = t[68];
|
|
130
|
+
const V = C;
|
|
131
|
+
if (h) {
|
|
132
|
+
let p;
|
|
133
|
+
t[69] !== V ? (p = /* @__PURE__ */ K(ft.Anchor, { children: V }), t[69] = V, t[70] = p) : p = t[70];
|
|
134
|
+
let b;
|
|
135
|
+
t[71] !== h ? (b = /* @__PURE__ */ K(ft.Content, { children: h }), t[71] = h, t[72] = b) : b = t[72];
|
|
136
|
+
let j;
|
|
137
|
+
return t[73] !== p || t[74] !== b ? (j = /* @__PURE__ */ kt(ft, { placement: "top", tooltipOffset: 6, children: [
|
|
138
|
+
p,
|
|
139
|
+
b
|
|
140
|
+
] }), t[73] = p, t[74] = b, t[75] = j) : j = t[75], j;
|
|
141
|
+
}
|
|
142
|
+
return V;
|
|
143
|
+
});
|
|
144
|
+
Mt.displayName = "DSLinkButton";
|
|
145
|
+
export {
|
|
146
|
+
Mt as D,
|
|
147
|
+
to as L,
|
|
148
|
+
oo as a,
|
|
149
|
+
Ut as v
|
|
150
|
+
};
|
|
@@ -0,0 +1,200 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsxs as W, jsx as s, Fragment as je } from "react/jsx-runtime";
|
|
3
|
+
import { d as xe } from "./index.cKLI89Eg.js";
|
|
4
|
+
import { c as r } from "./index.DQOqod3i.js";
|
|
5
|
+
import { isValidElement as Ve, cloneElement as Be } from "react";
|
|
6
|
+
import { b as U } from "./Flag.CbQYBzVC.js";
|
|
7
|
+
import { DSHeading as Me } from "../heading.BHSklXho.js";
|
|
8
|
+
import { D as Oe } from "./Icon.DYtaQgbw.js";
|
|
9
|
+
import { D as qe } from "./LinkButton.BxG7fx1O.js";
|
|
10
|
+
import { g as u } from "./helpers.CexwVao7.js";
|
|
11
|
+
import '../assets/LinkCard.pJtgJRIh.css';const Re = "ds-link-card_root_1tm3t_1", $e = "ds-link-card_root--elevated_1tm3t_26", Ge = "ds-link-card_root--horizontal_1tm3t_66", Je = "ds-link-card_media-wrapper_1tm3t_71", Ke = "ds-link-card_content_1tm3t_81", Qe = "ds-link-card_content--padding-small_1tm3t_86", Ue = "ds-link-card_header_1tm3t_117", Xe = "ds-link-card_footer_1tm3t_118", Ye = "ds-link-card_heading_1tm3t_133", Ze = "ds-link-card_heading--with-icon_1tm3t_136", et = "ds-link-card_link_1tm3t_146", tt = "ds-link-card_description_1tm3t_151", at = "ds-link-card_meta-data_1tm3t_168", it = "ds-link-card_decorative-link_1tm3t_185", ot = "ds-link-card_flags_1tm3t_189", nt = "ds-link-card_brand-flag_1tm3t_198", rt = "ds-link-card_graphic-area_1tm3t_204", t = {
|
|
12
|
+
root: Re,
|
|
13
|
+
rootElevated: $e,
|
|
14
|
+
rootHorizontal: Ge,
|
|
15
|
+
mediaWrapper: Je,
|
|
16
|
+
content: Ke,
|
|
17
|
+
contentPaddingSmall: Qe,
|
|
18
|
+
header: Ue,
|
|
19
|
+
footer: Xe,
|
|
20
|
+
heading: Ye,
|
|
21
|
+
headingWithIcon: Ze,
|
|
22
|
+
link: et,
|
|
23
|
+
description: tt,
|
|
24
|
+
metaData: at,
|
|
25
|
+
decorativeLink: it,
|
|
26
|
+
flags: ot,
|
|
27
|
+
brandFlag: nt,
|
|
28
|
+
graphicArea: rt
|
|
29
|
+
}, st = ({
|
|
30
|
+
href: p,
|
|
31
|
+
linkComponent: e,
|
|
32
|
+
flags: a,
|
|
33
|
+
flagListAriaLabel: d,
|
|
34
|
+
heading: o,
|
|
35
|
+
mediaArea: l,
|
|
36
|
+
img: g,
|
|
37
|
+
brandFlag: c,
|
|
38
|
+
decorativeLinkButtonProps: f
|
|
39
|
+
}) => {
|
|
40
|
+
if (typeof g < "u" && console.warn(u("DSLinkCard", "The 'img' prop is deprecated. Please use 'mediaArea' instead.")), !p && !e)
|
|
41
|
+
throw new Error(u("DSLinkCard", "Please provide either the 'href' prop or a custom 'linkComponent'."));
|
|
42
|
+
if (p && e)
|
|
43
|
+
throw new Error(u("DSLinkCard", "Please provide either the 'href' prop or a custom 'linkComponent', but not both."));
|
|
44
|
+
if (!o)
|
|
45
|
+
throw new Error(u("DSLinkCard", "The 'heading' prop is required and must be provided."));
|
|
46
|
+
a && a.length > 6 && console.warn(u("DSLinkCard", "It is recommended to provide a maximum of 6 flags for optimal display.")), a && a.length > 0 && !d && console.warn(u("DSLinkCard", "When providing flags, please also ensure to add the 'flagListAriaLabel' to describe the list of flags for non sighted screen reader users.")), c && l === void 0 && g === void 0 && console.warn(u("DSLinkCard", "The 'brandFlag' prop is set but no 'mediaArea' prop is provided. The 'brandFlag' will have no effect without a media element.")), typeof o == "object" && o !== null && o.headingIconName && f?.label && console.warn(u("DSLinkCard", "The 'heading.headingIconName' option should not be used when a decorative link label is provided."));
|
|
47
|
+
}, lt = (p) => {
|
|
48
|
+
const e = xe.c(89);
|
|
49
|
+
let a, d, o, l, g, c, f, n, m, L, i, N, k, _, b, C, D, S;
|
|
50
|
+
e[0] !== p ? ({
|
|
51
|
+
heading: n,
|
|
52
|
+
brandFlag: a,
|
|
53
|
+
className: o,
|
|
54
|
+
cardClassNames: d,
|
|
55
|
+
decorativeLinkButtonProps: l,
|
|
56
|
+
description: g,
|
|
57
|
+
flagListAriaLabel: c,
|
|
58
|
+
flags: b,
|
|
59
|
+
href: m,
|
|
60
|
+
mediaArea: N,
|
|
61
|
+
img: L,
|
|
62
|
+
linkComponent: i,
|
|
63
|
+
metaData: k,
|
|
64
|
+
orientation: C,
|
|
65
|
+
padding: D,
|
|
66
|
+
graphicArea: f,
|
|
67
|
+
variant: S,
|
|
68
|
+
..._
|
|
69
|
+
} = p, e[0] = p, e[1] = a, e[2] = d, e[3] = o, e[4] = l, e[5] = g, e[6] = c, e[7] = f, e[8] = n, e[9] = m, e[10] = L, e[11] = i, e[12] = N, e[13] = k, e[14] = _, e[15] = b, e[16] = C, e[17] = D, e[18] = S) : (a = e[1], d = e[2], o = e[3], l = e[4], g = e[5], c = e[6], f = e[7], n = e[8], m = e[9], L = e[10], i = e[11], N = e[12], k = e[13], _ = e[14], b = e[15], C = e[16], D = e[17], S = e[18]);
|
|
70
|
+
let v, w, F, I, P;
|
|
71
|
+
e[19] !== a || e[20] !== l || e[21] !== c || e[22] !== n || e[23] !== m || e[24] !== L || e[25] !== i || e[26] !== N || e[27] !== b || e[28] !== C || e[29] !== D || e[30] !== S ? (v = b === void 0 ? [] : b, F = C === void 0 ? "vertical" : C, I = D === void 0 ? "medium" : D, P = S === void 0 ? "outlined" : S, w = N ?? L, process.env.NODE_ENV !== "production" && st({
|
|
72
|
+
href: m,
|
|
73
|
+
linkComponent: i,
|
|
74
|
+
heading: n,
|
|
75
|
+
flags: v,
|
|
76
|
+
flagListAriaLabel: c,
|
|
77
|
+
mediaArea: N,
|
|
78
|
+
img: L,
|
|
79
|
+
brandFlag: a,
|
|
80
|
+
decorativeLinkButtonProps: l
|
|
81
|
+
}), e[19] = a, e[20] = l, e[21] = c, e[22] = n, e[23] = m, e[24] = L, e[25] = i, e[26] = N, e[27] = b, e[28] = C, e[29] = D, e[30] = S, e[31] = v, e[32] = w, e[33] = F, e[34] = I, e[35] = P) : (v = e[31], w = e[32], F = e[33], I = e[34], P = e[35]);
|
|
82
|
+
let V;
|
|
83
|
+
e[36] !== l ? (V = l || {}, e[36] = l, e[37] = V) : V = e[37];
|
|
84
|
+
const {
|
|
85
|
+
label: x,
|
|
86
|
+
iconName: X,
|
|
87
|
+
iconPosition: se,
|
|
88
|
+
variant: ce,
|
|
89
|
+
hideLabel: Y,
|
|
90
|
+
size: le
|
|
91
|
+
} = V, Z = se === void 0 ? "right" : se, ee = le === void 0 ? "small" : le, B = ce === "ghost" ? "ghost" : "filled", te = k || v.length > 0 || x, ae = typeof n == "object" && n !== null && !!n.headingIconName;
|
|
92
|
+
let M;
|
|
93
|
+
if (e[38] !== B || e[39] !== a || e[40] !== d || e[41] !== o || e[42] !== Y || e[43] !== X || e[44] !== Z || e[45] !== x || e[46] !== ee || e[47] !== g || e[48] !== c || e[49] !== v || e[50] !== f || e[51] !== te || e[52] !== n || e[53] !== ae || e[54] !== m || e[55] !== i || e[56] !== w || e[57] !== k || e[58] !== F || e[59] !== I || e[60] !== _ || e[61] !== P) {
|
|
94
|
+
const {
|
|
95
|
+
brandFlag: me,
|
|
96
|
+
contentWrapper: he,
|
|
97
|
+
descriptionWrapper: pe,
|
|
98
|
+
decorativeLink: ge,
|
|
99
|
+
flagsWrapper: fe,
|
|
100
|
+
footerWrapper: ve,
|
|
101
|
+
headerWrapper: ke,
|
|
102
|
+
heading: _e,
|
|
103
|
+
mediaWrapper: ue,
|
|
104
|
+
imageWrapper: Le,
|
|
105
|
+
metaDataWrapper: Ne,
|
|
106
|
+
graphicAreaWrapper: be
|
|
107
|
+
} = d || {}, ie = F === "horizontal", oe = P === "elevated";
|
|
108
|
+
let O;
|
|
109
|
+
e[63] !== o || e[64] !== oe || e[65] !== ie ? (O = r(t.root, o, {
|
|
110
|
+
[t.rootHorizontal]: ie,
|
|
111
|
+
[t.rootElevated]: oe
|
|
112
|
+
}), e[63] = o, e[64] = oe, e[65] = ie, e[66] = O) : O = e[66];
|
|
113
|
+
const Ce = O, de = r(t.brandFlag, me), De = r(t.content, he, {
|
|
114
|
+
[t.contentPaddingSmall]: I === "small"
|
|
115
|
+
}), Se = r(t.description, pe), we = r(t.decorativeLink, ge), We = r(t.flags, fe), Fe = r(t.footer, ve), Ie = r(t.header, ke), Pe = r(t.heading, _e, {
|
|
116
|
+
[t.headingWithIcon]: ae
|
|
117
|
+
}), ze = ue || Le, ye = r(t.mediaWrapper, ze), Ae = r(t.metaData, Ne), Ee = r(t.graphicArea, be);
|
|
118
|
+
let q, z, y, A, E, H, T, j;
|
|
119
|
+
e[67] !== _ ? ({
|
|
120
|
+
download: z,
|
|
121
|
+
hrefLang: y,
|
|
122
|
+
ping: A,
|
|
123
|
+
referrerPolicy: E,
|
|
124
|
+
rel: H,
|
|
125
|
+
target: T,
|
|
126
|
+
type: j,
|
|
127
|
+
...q
|
|
128
|
+
} = _, e[67] = _, e[68] = q, e[69] = z, e[70] = y, e[71] = A, e[72] = E, e[73] = H, e[74] = T, e[75] = j) : (q = e[68], z = e[69], y = e[70], A = e[71], E = e[72], H = e[73], T = e[74], j = e[75]);
|
|
129
|
+
let R;
|
|
130
|
+
e[76] !== z || e[77] !== m || e[78] !== y || e[79] !== i || e[80] !== A || e[81] !== E || e[82] !== H || e[83] !== T || e[84] !== j ? (R = (h) => i && Ve(i) ? Be(i, {
|
|
131
|
+
...i.props,
|
|
132
|
+
className: r(t.link, i.props.className),
|
|
133
|
+
children: /* @__PURE__ */ W(je, { children: [
|
|
134
|
+
h,
|
|
135
|
+
" ",
|
|
136
|
+
i.props.children
|
|
137
|
+
] })
|
|
138
|
+
}) : /* @__PURE__ */ s("a", { href: m, className: t.link, download: z, hrefLang: y, ping: A, referrerPolicy: E, rel: H, target: T, type: j, children: h }), e[76] = z, e[77] = m, e[78] = y, e[79] = i, e[80] = A, e[81] = E, e[82] = H, e[83] = T, e[84] = j, e[85] = R) : R = e[85];
|
|
139
|
+
const He = R, ne = (h) => {
|
|
140
|
+
const G = typeof h == "object" && h !== void 0, {
|
|
141
|
+
headingText: J,
|
|
142
|
+
headingIconName: K,
|
|
143
|
+
headingSize: Q,
|
|
144
|
+
headingTag: re
|
|
145
|
+
} = G ? h : {
|
|
146
|
+
headingText: h
|
|
147
|
+
};
|
|
148
|
+
return /* @__PURE__ */ W(Me, { tag: re === void 0 ? "h3" : re, size: Q === void 0 ? "medium" : Q, className: Pe, children: [
|
|
149
|
+
He(J),
|
|
150
|
+
K && /* @__PURE__ */ s(Oe, { name: K, "aria-hidden": "true" })
|
|
151
|
+
] });
|
|
152
|
+
}, Te = (h) => {
|
|
153
|
+
if (typeof h == "string")
|
|
154
|
+
return /* @__PURE__ */ s(U, { color: "promo-highlight", className: de, children: h });
|
|
155
|
+
const {
|
|
156
|
+
children: G,
|
|
157
|
+
color: J,
|
|
158
|
+
className: K,
|
|
159
|
+
...Q
|
|
160
|
+
} = h;
|
|
161
|
+
return /* @__PURE__ */ s(U, { color: J === void 0 ? "promo-highlight" : J, className: r(de, K), ...Q, children: G });
|
|
162
|
+
};
|
|
163
|
+
let $;
|
|
164
|
+
e[86] !== ne || e[87] !== n ? ($ = ne(n), e[86] = ne, e[87] = n, e[88] = $) : $ = e[88], M = /* @__PURE__ */ W("div", { ...q, className: Ce, children: [
|
|
165
|
+
/* @__PURE__ */ W("div", { className: De, children: [
|
|
166
|
+
/* @__PURE__ */ W("div", { className: Ie, children: [
|
|
167
|
+
f && /* @__PURE__ */ s("div", { className: Ee, children: f }),
|
|
168
|
+
$,
|
|
169
|
+
g && /* @__PURE__ */ s("div", { className: Se, children: g })
|
|
170
|
+
] }),
|
|
171
|
+
te && /* @__PURE__ */ W("div", { className: Fe, children: [
|
|
172
|
+
k && /* @__PURE__ */ s("div", { className: Ae, children: k }),
|
|
173
|
+
v.length > 0 && /* @__PURE__ */ s("ul", { className: We, "aria-label": c, children: v.map(dt) }),
|
|
174
|
+
x && /* @__PURE__ */ s(qe, { iconName: X, iconPosition: Z, variant: B, hideLabel: Y, size: ee, isFlush: B === "ghost", "aria-hidden": !0, className: we, children: x })
|
|
175
|
+
] })
|
|
176
|
+
] }),
|
|
177
|
+
w && /* @__PURE__ */ W("div", { className: ye, children: [
|
|
178
|
+
a && Te(a),
|
|
179
|
+
w
|
|
180
|
+
] })
|
|
181
|
+
] }), e[38] = B, e[39] = a, e[40] = d, e[41] = o, e[42] = Y, e[43] = X, e[44] = Z, e[45] = x, e[46] = ee, e[47] = g, e[48] = c, e[49] = v, e[50] = f, e[51] = te, e[52] = n, e[53] = ae, e[54] = m, e[55] = i, e[56] = w, e[57] = k, e[58] = F, e[59] = I, e[60] = _, e[61] = P, e[62] = M;
|
|
182
|
+
} else
|
|
183
|
+
M = e[62];
|
|
184
|
+
return M;
|
|
185
|
+
};
|
|
186
|
+
lt.displayName = "DSLinkCard";
|
|
187
|
+
function dt(p, e) {
|
|
188
|
+
if (typeof p == "string")
|
|
189
|
+
return /* @__PURE__ */ s("li", { children: /* @__PURE__ */ s(U, { color: "status-info", children: p }) }, e);
|
|
190
|
+
const {
|
|
191
|
+
children: a,
|
|
192
|
+
color: d,
|
|
193
|
+
...o
|
|
194
|
+
} = p;
|
|
195
|
+
return /* @__PURE__ */ s("li", { children: /* @__PURE__ */ s(U, { color: d === void 0 ? "status-info" : d, ...o, children: a }) }, e);
|
|
196
|
+
}
|
|
197
|
+
export {
|
|
198
|
+
lt as D,
|
|
199
|
+
st as v
|
|
200
|
+
};
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
import { jsx as N, jsxs as ne } from "react/jsx-runtime";
|
|
3
3
|
import { d as P } from "./index.cKLI89Eg.js";
|
|
4
4
|
import { isValidElement as J, useState as se, createContext as oe, forwardRef as K, cloneElement as ae, useContext as L } from "react";
|
|
5
|
-
import { o as le, u as re, b as ce, c as ie, d as ue, e as fe, a as de, f as Q, g as me, F as Me, h as ge, i as he } from "./floating-ui.react.
|
|
5
|
+
import { o as le, u as re, b as ce, c as ie, d as ue, e as fe, a as de, f as Q, g as me, F as Me, h as ge, i as he } from "./floating-ui.react.Chmq0RmI.js";
|
|
6
6
|
import { c as q } from "./index.DQOqod3i.js";
|
|
7
|
+
import { a as pe } from "./Header.CvcGSuhX.js";
|
|
7
8
|
import { g as V, c as z } from "./helpers.CexwVao7.js";
|
|
8
|
-
import { D as pe } from "./Header.DyqOlV8L.js";
|
|
9
9
|
import '../assets/MegaMenu.Dw-oLSCX.css';const Se = "ds-mega-menu_root_11fw1_1", De = "ds-mega-menu_content_11fw1_109", _e = "ds-mega-menu_content--variant-full_11fw1_134", Ce = "ds-mega-menu_backdrop_11fw1_139", R = {
|
|
10
10
|
root: Se,
|
|
11
11
|
content: De,
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsxs as B, Fragment as I, jsx as d } from "react/jsx-runtime";
|
|
3
|
+
import { d as k } from "./index.cKLI89Eg.js";
|
|
4
|
+
import { isValidElement as w, cloneElement as R } from "react";
|
|
5
|
+
import { D as W } from "./Icon.DYtaQgbw.js";
|
|
6
|
+
import { NumberIndicator as v } from "../numberindicator.DsK65Bj3.js";
|
|
7
|
+
import '../assets/NavigationTabList.D5VV0C7Y.css';const D = "ds-tabs_tabs-wrapper_45tya_1", E = "ds-tabs_scroll-wrapper_45tya_6", L = "ds-tabs_scroller_45tya_17", T = "ds-tabs_scroller--centered_45tya_28", j = "ds-tabs_tab_45tya_1", x = "ds-tabs_scroll-button_45tya_106", H = "ds-tabs_scroll-button--hidden_45tya_111", K = "ds-tabs_scroll-button--right_45tya_115", S = "ds-tabs_indicator_45tya_127", V = {
|
|
8
|
+
tabsWrapper: D,
|
|
9
|
+
scrollWrapper: E,
|
|
10
|
+
scroller: L,
|
|
11
|
+
scrollerCentered: T,
|
|
12
|
+
tab: j,
|
|
13
|
+
scrollButton: x,
|
|
14
|
+
scrollButtonHidden: H,
|
|
15
|
+
scrollButtonRight: K,
|
|
16
|
+
indicator: S
|
|
17
|
+
}, G = (h) => {
|
|
18
|
+
const t = k.c(15), {
|
|
19
|
+
tabs: b,
|
|
20
|
+
tabRefs: e,
|
|
21
|
+
scrollerClass: p,
|
|
22
|
+
scrollerRef: _,
|
|
23
|
+
selectedTabIndex: r,
|
|
24
|
+
handleNavigationKeydown: o,
|
|
25
|
+
setSelectedTab: l
|
|
26
|
+
} = h;
|
|
27
|
+
let s;
|
|
28
|
+
if (t[0] !== o || t[1] !== r || t[2] !== l || t[3] !== e || t[4] !== b) {
|
|
29
|
+
let i;
|
|
30
|
+
t[6] !== o || t[7] !== r || t[8] !== l || t[9] !== e ? (i = (g, a) => {
|
|
31
|
+
const {
|
|
32
|
+
id: u,
|
|
33
|
+
linkComponent: n,
|
|
34
|
+
iconName: f,
|
|
35
|
+
numberIndicatorValue: y,
|
|
36
|
+
numberIndicatorAriaLabel: C
|
|
37
|
+
} = g;
|
|
38
|
+
if (!w(n))
|
|
39
|
+
return null;
|
|
40
|
+
const N = R(n, {
|
|
41
|
+
"aria-current": r === a ? "page" : void 0,
|
|
42
|
+
children: /* @__PURE__ */ B(I, { children: [
|
|
43
|
+
f && /* @__PURE__ */ d(W, { name: f, "aria-hidden": "true" }),
|
|
44
|
+
n.props.children,
|
|
45
|
+
y && /* @__PURE__ */ d(v, { "aria-label": C, label: y })
|
|
46
|
+
] }),
|
|
47
|
+
className: V.tab,
|
|
48
|
+
id: u,
|
|
49
|
+
tabIndex: r === a ? 0 : -1,
|
|
50
|
+
onKeyDown: (m) => o(m, a),
|
|
51
|
+
onClick: () => {
|
|
52
|
+
n.props.onClick && n.props.onClick(), l(a);
|
|
53
|
+
},
|
|
54
|
+
ref: (m) => {
|
|
55
|
+
e.current[a] = m;
|
|
56
|
+
}
|
|
57
|
+
});
|
|
58
|
+
return /* @__PURE__ */ d("li", { children: N }, u);
|
|
59
|
+
}, t[6] = o, t[7] = r, t[8] = l, t[9] = e, t[10] = i) : i = t[10], s = b.map(i), t[0] = o, t[1] = r, t[2] = l, t[3] = e, t[4] = b, t[5] = s;
|
|
60
|
+
} else
|
|
61
|
+
s = t[5];
|
|
62
|
+
let c;
|
|
63
|
+
return t[11] !== p || t[12] !== _ || t[13] !== s ? (c = /* @__PURE__ */ d("ul", { className: p, ref: _, children: s }), t[11] = p, t[12] = _, t[13] = s, t[14] = c) : c = t[14], c;
|
|
64
|
+
};
|
|
65
|
+
export {
|
|
66
|
+
G as N,
|
|
67
|
+
V as s
|
|
68
|
+
};
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { jsx as v } from "react/jsx-runtime";
|
|
3
3
|
import { d as N } from "./index.cKLI89Eg.js";
|
|
4
4
|
import { useState as T, useEffect as h } from "react";
|
|
5
|
-
import { TabList as y } from "../tablist.
|
|
5
|
+
import { TabList as y } from "../tablist.BAm0_UIG.js";
|
|
6
6
|
import { g as o, r as A } from "./helpers.CexwVao7.js";
|
|
7
7
|
const V = ["left", "center"], M = ["prev", "next"], I = ({
|
|
8
8
|
aria: t,
|