@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
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as y, jsxs as ge, Fragment as Ee } from "react/jsx-runtime";
|
|
3
|
-
import { d as
|
|
4
|
-
import { c as
|
|
5
|
-
import { useState as T, useEffect as
|
|
6
|
-
import { g as
|
|
3
|
+
import { d as P } from "./index.cKLI89Eg.js";
|
|
4
|
+
import { c as D } from "./index.DQOqod3i.js";
|
|
5
|
+
import { useState as T, useEffect as L, useContext as ie, createContext as Fe, useRef as I } from "react";
|
|
6
|
+
import { g as Y, c as O, p as pe } from "./helpers.CexwVao7.js";
|
|
7
7
|
import { u as Ne } from "./useIsomorphicLayoutEffect.CnJ9AMFS.js";
|
|
8
|
-
import { DSLogo as Re } from "../logo.
|
|
8
|
+
import { DSLogo as Re } from "../logo.D6BTxbxv.js";
|
|
9
9
|
import { Logo100Years as Ce } from "../logo100years.C0IojOp9.js";
|
|
10
|
-
import '../assets/Header.
|
|
11
|
-
const e =
|
|
10
|
+
import '../assets/Header.CSPbSqR5.css';const ue = (i) => {
|
|
11
|
+
const e = P.c(7);
|
|
12
12
|
let t;
|
|
13
13
|
e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t = {
|
|
14
14
|
width: 0,
|
|
15
15
|
height: 0
|
|
16
16
|
}, e[0] = t) : t = e[0];
|
|
17
17
|
const [o, n] = T(t);
|
|
18
|
-
let a,
|
|
18
|
+
let a, l;
|
|
19
19
|
e[1] !== i ? (a = () => {
|
|
20
20
|
const r = i.current;
|
|
21
21
|
r && n({
|
|
22
22
|
width: r.offsetWidth,
|
|
23
23
|
height: r.offsetHeight
|
|
24
24
|
});
|
|
25
|
-
},
|
|
26
|
-
let s,
|
|
25
|
+
}, l = [i], e[1] = i, e[2] = a, e[3] = l) : (a = e[2], l = e[3]), Ne(a, l);
|
|
26
|
+
let s, c;
|
|
27
27
|
return e[4] !== i ? (s = () => {
|
|
28
28
|
const r = i.current;
|
|
29
29
|
if (!r)
|
|
@@ -39,40 +39,40 @@ import '../assets/Header.BNYL2Y78.css';const ue = (i) => {
|
|
|
39
39
|
n((p) => p.width === f.width && p.height === f.height ? p : f);
|
|
40
40
|
});
|
|
41
41
|
return h.observe(r), () => h.disconnect();
|
|
42
|
-
},
|
|
42
|
+
}, c = [i], e[4] = i, e[5] = s, e[6] = c) : (s = e[5], c = e[6]), L(s, c), o;
|
|
43
43
|
}, Ve = (i) => {
|
|
44
|
-
const e =
|
|
45
|
-
let a,
|
|
44
|
+
const e = P.c(3), t = i, [o, n] = T("down");
|
|
45
|
+
let a, l;
|
|
46
46
|
return e[0] !== t ? (a = () => {
|
|
47
47
|
let s = window.scrollY;
|
|
48
|
-
const
|
|
48
|
+
const c = () => {
|
|
49
49
|
const r = window.scrollY, h = r > s ? "down" : "up";
|
|
50
50
|
Math.abs(r - s) > t && (n(h), s = r);
|
|
51
51
|
};
|
|
52
|
-
return window.addEventListener("scroll",
|
|
52
|
+
return window.addEventListener("scroll", c, {
|
|
53
53
|
passive: !0
|
|
54
|
-
}), () => window.removeEventListener("scroll",
|
|
55
|
-
},
|
|
54
|
+
}), () => window.removeEventListener("scroll", c);
|
|
55
|
+
}, l = [t], e[0] = t, e[1] = a, e[2] = l) : (a = e[1], l = e[2]), L(a, l), o;
|
|
56
56
|
}, bt = ["full", "main"], Me = ({
|
|
57
57
|
hasBrandArea: i,
|
|
58
58
|
hasPrimaryArea: e,
|
|
59
59
|
hasSecondaryArea: t
|
|
60
60
|
}) => {
|
|
61
61
|
if (i)
|
|
62
|
-
throw new Error(
|
|
62
|
+
throw new Error(Y("DSHeader", "A <DSTopBar.BrandArea> component was detected as a direct child of DSHeader. Please move it into the DSTopBar component."));
|
|
63
63
|
if (e)
|
|
64
|
-
throw new Error(
|
|
64
|
+
throw new Error(Y("DSHeader", "A <DSTopBar.PrimaryArea> component was detected as a direct child of DSHeader. Please move it into the DSTopBar component."));
|
|
65
65
|
if (t)
|
|
66
|
-
throw new Error(
|
|
67
|
-
},
|
|
68
|
-
root:
|
|
69
|
-
rootSticky:
|
|
70
|
-
rootFixed:
|
|
71
|
-
content:
|
|
72
|
-
contentVariantFull:
|
|
73
|
-
contentHasPrimaryAreaAndSecondaryArea:
|
|
74
|
-
primary:
|
|
75
|
-
contentHasBrandAddOnWithPrimaryAreaAndSecondaryArea:
|
|
66
|
+
throw new Error(Y("DSHeader", "A <DSTopBar.SecondaryArea> component was detected as a direct child of DSHeader. Please move it into the DSTopBar component."));
|
|
67
|
+
}, ke = "ds-top-bar_root_1dle4_1", $e = "ds-top-bar_root--sticky_1dle4_49", We = "ds-top-bar_root--fixed_1dle4_53", ze = "ds-top-bar_content_1dle4_62", Ie = "ds-top-bar_content--variant-full_1dle4_81", Ye = "ds-top-bar_content--has-primary-area-and-secondary-area_1dle4_85", Le = "ds-top-bar_primary_1dle4_90", qe = "ds-top-bar_content--has-brand-add-on-with-primary-area-and-secondary-area_1dle4_105", Ue = "ds-top-bar_brand_1dle4_110", je = "ds-top-bar_content--has-primary-area_1dle4_85", Ge = "ds-top-bar_content--has-primary-area--with-brand-add-on_1dle4_149", Je = "ds-top-bar_brand-add-on_1dle4_213", Ke = "ds-top-bar_brand-add-on--double_1dle4_234", Qe = "ds-top-bar_sub-title_1dle4_248", Xe = "ds-top-bar_secondary_1dle4_273", Ze = "ds-top-bar_logo_1dle4_282", et = "ds-top-bar_logo--reduced_1dle4_292", _ = {
|
|
68
|
+
root: ke,
|
|
69
|
+
rootSticky: $e,
|
|
70
|
+
rootFixed: We,
|
|
71
|
+
content: ze,
|
|
72
|
+
contentVariantFull: Ie,
|
|
73
|
+
contentHasPrimaryAreaAndSecondaryArea: Ye,
|
|
74
|
+
primary: Le,
|
|
75
|
+
contentHasBrandAddOnWithPrimaryAreaAndSecondaryArea: qe,
|
|
76
76
|
brand: Ue,
|
|
77
77
|
contentHasPrimaryArea: je,
|
|
78
78
|
contentHasPrimaryAreaWithBrandAddOn: Ge,
|
|
@@ -88,11 +88,11 @@ import '../assets/Header.BNYL2Y78.css';const ue = (i) => {
|
|
|
88
88
|
hasSecondaryArea: t
|
|
89
89
|
}) => {
|
|
90
90
|
if (!i)
|
|
91
|
-
throw new Error(
|
|
91
|
+
throw new Error(Y("DSTopBar", "A <DSTopBar.BrandArea> component is required. Please include it as a child of DSTopBar."));
|
|
92
92
|
if (!e && t)
|
|
93
|
-
throw new Error(
|
|
94
|
-
}, Se = (i) => i == null || typeof i == "object" && !Array.isArray(i) && i !== null && Object.keys(i).length === 0, St = ["100years"],
|
|
95
|
-
const e =
|
|
93
|
+
throw new Error(Y("DSTopBar", "A <DSTopBar.PrimaryArea> is required when using <DSTopBar.SecondaryArea>. Please include <DSTopBar.PrimaryArea> as a child of DSTopBar, or move the content from <DSTopBar.SecondaryArea> into <DSTopBar.PrimaryArea>."));
|
|
94
|
+
}, Se = (i) => i == null || typeof i == "object" && !Array.isArray(i) && i !== null && Object.keys(i).length === 0, St = ["100years"], $ = (i) => {
|
|
95
|
+
const e = P.c(28);
|
|
96
96
|
let t, o, n, a;
|
|
97
97
|
e[0] !== i ? ({
|
|
98
98
|
children: t,
|
|
@@ -101,32 +101,32 @@ import '../assets/Header.BNYL2Y78.css';const ue = (i) => {
|
|
|
101
101
|
...n
|
|
102
102
|
} = i, e[0] = i, e[1] = t, e[2] = o, e[3] = n, e[4] = a) : (t = e[1], o = e[2], n = e[3], a = e[4]);
|
|
103
103
|
const {
|
|
104
|
-
variant:
|
|
104
|
+
variant: l,
|
|
105
105
|
isHeaderSticky: s,
|
|
106
|
-
isMobile:
|
|
106
|
+
isMobile: c,
|
|
107
107
|
topBarAreaRef: r,
|
|
108
108
|
isStickyMainNavigationVisible: h,
|
|
109
109
|
hasBrandAddOn: m
|
|
110
|
-
} = ie(
|
|
110
|
+
} = ie(q);
|
|
111
111
|
let A, f;
|
|
112
|
-
if (e[5] !== t || e[6] !== o || e[7] !== m || e[8] !== s || e[9] !==
|
|
113
|
-
const w = O(t, _e), g = O(t, ye),
|
|
112
|
+
if (e[5] !== t || e[6] !== o || e[7] !== m || e[8] !== s || e[9] !== c || e[10] !== h || e[11] !== a || e[12] !== l) {
|
|
113
|
+
const w = O(t, _e), g = O(t, ye), d = O(t, ve);
|
|
114
114
|
process.env.NODE_ENV !== "production" && tt({
|
|
115
115
|
hasBrandArea: w,
|
|
116
116
|
hasPrimaryArea: g,
|
|
117
|
-
hasSecondaryArea:
|
|
117
|
+
hasSecondaryArea: d
|
|
118
118
|
});
|
|
119
119
|
let N;
|
|
120
|
-
e[15] !== s || e[16] !==
|
|
121
|
-
[_.rootSticky]: !
|
|
122
|
-
[_.rootFixed]: !
|
|
123
|
-
} : {}), e[15] = s, e[16] =
|
|
124
|
-
[_.contentHasPrimaryArea]: g && !m && !
|
|
125
|
-
[_.contentHasPrimaryAreaWithBrandAddOn]: g && m && !
|
|
126
|
-
[_.contentHasBrandAddOnWithPrimaryAreaAndSecondaryArea]: m && g &&
|
|
127
|
-
[_.contentHasPrimaryAreaAndSecondaryArea]: g &&
|
|
128
|
-
[_.contentVariantFull]:
|
|
129
|
-
}), e[5] = t, e[6] = o, e[7] = m, e[8] = s, e[9] =
|
|
120
|
+
e[15] !== s || e[16] !== c || e[17] !== h || e[18] !== a ? (N = D(_.root, a, s ? {
|
|
121
|
+
[_.rootSticky]: !c && h,
|
|
122
|
+
[_.rootFixed]: !c && !h
|
|
123
|
+
} : {}), e[15] = s, e[16] = c, e[17] = h, e[18] = a, e[19] = N) : N = e[19], A = N, f = D(_.content, o, {
|
|
124
|
+
[_.contentHasPrimaryArea]: g && !m && !d,
|
|
125
|
+
[_.contentHasPrimaryAreaWithBrandAddOn]: g && m && !d,
|
|
126
|
+
[_.contentHasBrandAddOnWithPrimaryAreaAndSecondaryArea]: m && g && d,
|
|
127
|
+
[_.contentHasPrimaryAreaAndSecondaryArea]: g && d && !m,
|
|
128
|
+
[_.contentVariantFull]: l === "full"
|
|
129
|
+
}), e[5] = t, e[6] = o, e[7] = m, e[8] = s, e[9] = c, e[10] = h, e[11] = a, e[12] = l, e[13] = A, e[14] = f;
|
|
130
130
|
} else
|
|
131
131
|
A = e[13], f = e[14];
|
|
132
132
|
const p = f;
|
|
@@ -135,54 +135,54 @@ import '../assets/Header.BNYL2Y78.css';const ue = (i) => {
|
|
|
135
135
|
let v;
|
|
136
136
|
return e[24] !== A || e[25] !== u || e[26] !== r ? (v = /* @__PURE__ */ y("div", { className: A, ref: r, children: u }), e[24] = A, e[25] = u, e[26] = r, e[27] = v) : v = e[27], v;
|
|
137
137
|
}, _e = (i) => {
|
|
138
|
-
const e =
|
|
138
|
+
const e = P.c(22), {
|
|
139
139
|
children: t,
|
|
140
140
|
className: o
|
|
141
141
|
} = i, {
|
|
142
142
|
logoProps: n,
|
|
143
143
|
brandAddOnProps: a,
|
|
144
|
-
setHasBrandAddOn:
|
|
145
|
-
} = ie(
|
|
144
|
+
setHasBrandAddOn: l
|
|
145
|
+
} = ie(q), {
|
|
146
146
|
aria: s,
|
|
147
|
-
logo:
|
|
147
|
+
logo: c,
|
|
148
148
|
href: r,
|
|
149
149
|
target: h
|
|
150
|
-
} = n || {}, m =
|
|
150
|
+
} = n || {}, m = c === void 0 ? "main" : c, A = r === void 0 ? "/" : r, f = h === void 0 ? "_self" : h;
|
|
151
151
|
let p;
|
|
152
|
-
e[0] !== a || e[1] !== t || e[2] !==
|
|
153
|
-
t || !Se(a) ?
|
|
154
|
-
}, e[0] = a, e[1] = t, e[2] =
|
|
152
|
+
e[0] !== a || e[1] !== t || e[2] !== l ? (p = () => {
|
|
153
|
+
t || !Se(a) ? l?.(!0) : l?.(!1);
|
|
154
|
+
}, e[0] = a, e[1] = t, e[2] = l, e[3] = p) : p = e[3];
|
|
155
155
|
let u;
|
|
156
|
-
e[4] !== a || e[5] !== t ? (u = [t, a], e[4] = a, e[5] = t, e[6] = u) : u = e[6],
|
|
157
|
-
const v =
|
|
156
|
+
e[4] !== a || e[5] !== t ? (u = [t, a], e[4] = a, e[5] = t, e[6] = u) : u = e[6], L(p, u);
|
|
157
|
+
const v = D(_.logo, {
|
|
158
158
|
[_.logoReduced]: m.includes("reduced")
|
|
159
159
|
});
|
|
160
160
|
let w;
|
|
161
|
-
e[7] !== o ? (w =
|
|
161
|
+
e[7] !== o ? (w = D(_.brand, o), e[7] = o, e[8] = w) : w = e[8];
|
|
162
162
|
let g;
|
|
163
163
|
e[9] !== s || e[10] !== A || e[11] !== m || e[12] !== v || e[13] !== f ? (g = /* @__PURE__ */ y(Re, { className: v, aria: s, logo: m, href: A, target: f }), e[9] = s, e[10] = A, e[11] = m, e[12] = v, e[13] = f, e[14] = g) : g = e[14];
|
|
164
|
-
let
|
|
165
|
-
e[15] !== a ? (
|
|
164
|
+
let d;
|
|
165
|
+
e[15] !== a ? (d = Se(a) ? void 0 : /* @__PURE__ */ y(Be, { ...a }), e[15] = a, e[16] = d) : d = e[16];
|
|
166
166
|
let N;
|
|
167
|
-
return e[17] !== t || e[18] !== w || e[19] !== g || e[20] !==
|
|
167
|
+
return e[17] !== t || e[18] !== w || e[19] !== g || e[20] !== d ? (N = /* @__PURE__ */ ge("div", { className: w, children: [
|
|
168
168
|
g,
|
|
169
|
-
|
|
169
|
+
d,
|
|
170
170
|
t
|
|
171
|
-
] }), e[17] = t, e[18] = w, e[19] = g, e[20] =
|
|
171
|
+
] }), e[17] = t, e[18] = w, e[19] = g, e[20] = d, e[21] = N) : N = e[21], N;
|
|
172
172
|
};
|
|
173
173
|
_e.displayName = "DSTopBar.BrandArea";
|
|
174
174
|
const Be = (i) => {
|
|
175
|
-
const e =
|
|
175
|
+
const e = P.c(15), {
|
|
176
176
|
children: t,
|
|
177
177
|
className: o,
|
|
178
178
|
subTitle: n,
|
|
179
179
|
variant: a
|
|
180
180
|
} = i;
|
|
181
|
-
let
|
|
182
|
-
e[0] !== o || e[1] !== n ? (
|
|
181
|
+
let l;
|
|
182
|
+
e[0] !== o || e[1] !== n ? (l = D(_.brandAddOn, o, {
|
|
183
183
|
[_.brandAddOnDouble]: n
|
|
184
|
-
}), e[0] = o, e[1] = n, e[2] =
|
|
185
|
-
const s =
|
|
184
|
+
}), e[0] = o, e[1] = n, e[2] = l) : l = e[2];
|
|
185
|
+
const s = l;
|
|
186
186
|
if (n) {
|
|
187
187
|
let r;
|
|
188
188
|
e[3] !== t ? (r = /* @__PURE__ */ y("span", { children: t }), e[3] = t, e[4] = r) : r = e[4];
|
|
@@ -198,149 +198,149 @@ const Be = (i) => {
|
|
|
198
198
|
let r;
|
|
199
199
|
return e[11] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (r = /* @__PURE__ */ y(Ce, {}), e[11] = r) : r = e[11], r;
|
|
200
200
|
}
|
|
201
|
-
let
|
|
202
|
-
return e[12] !== s || e[13] !== t ? (
|
|
201
|
+
let c;
|
|
202
|
+
return e[12] !== s || e[13] !== t ? (c = /* @__PURE__ */ y("div", { className: s, children: t }), e[12] = s, e[13] = t, e[14] = c) : c = e[14], c;
|
|
203
203
|
};
|
|
204
204
|
Be.displayName = "DSTopBar.BrandAddOn";
|
|
205
205
|
const ye = (i) => {
|
|
206
|
-
const e =
|
|
206
|
+
const e = P.c(5), {
|
|
207
207
|
children: t,
|
|
208
208
|
className: o
|
|
209
209
|
} = i;
|
|
210
210
|
let n;
|
|
211
|
-
e[0] !== o ? (n =
|
|
211
|
+
e[0] !== o ? (n = D(_.primary, o), e[0] = o, e[1] = n) : n = e[1];
|
|
212
212
|
let a;
|
|
213
213
|
return e[2] !== t || e[3] !== n ? (a = /* @__PURE__ */ y("div", { className: n, children: t }), e[2] = t, e[3] = n, e[4] = a) : a = e[4], a;
|
|
214
214
|
};
|
|
215
215
|
ye.displayName = "DSTopBar.PrimaryArea";
|
|
216
216
|
const ve = (i) => {
|
|
217
|
-
const e =
|
|
217
|
+
const e = P.c(5), {
|
|
218
218
|
children: t,
|
|
219
219
|
className: o
|
|
220
220
|
} = i;
|
|
221
221
|
let n;
|
|
222
|
-
e[0] !== o ? (n =
|
|
222
|
+
e[0] !== o ? (n = D(_.secondary, o), e[0] = o, e[1] = n) : n = e[1];
|
|
223
223
|
let a;
|
|
224
224
|
return e[2] !== t || e[3] !== n ? (a = /* @__PURE__ */ y("div", { className: n, children: t }), e[2] = t, e[3] = n, e[4] = a) : a = e[4], a;
|
|
225
225
|
};
|
|
226
226
|
ve.displayName = "DSTopBar.SecondaryArea";
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
const at = "ds-header_root_c5fh4_1", rt = "ds-header_root--sticky_c5fh4_4", nt = "ds-header_root--hidden_c5fh4_9", ot = "ds-header_root--fixed_c5fh4_20", it = "ds-header_main-navigation-area_c5fh4_37", st = "ds-header_main-navigation-area--fixed_c5fh4_90",
|
|
227
|
+
$.BrandArea = _e;
|
|
228
|
+
$.PrimaryArea = ye;
|
|
229
|
+
$.SecondaryArea = ve;
|
|
230
|
+
const at = "ds-header_root_c5fh4_1", rt = "ds-header_root--sticky_c5fh4_4", nt = "ds-header_root--hidden_c5fh4_9", ot = "ds-header_root--fixed_c5fh4_20", it = "ds-header_main-navigation-area_c5fh4_37", st = "ds-header_main-navigation-area--fixed_c5fh4_90", dt = "ds-header_main-navigation-area--fixed--visible_c5fh4_105", lt = "ds-header_main-navigation-content_c5fh4_111", ct = "ds-header_main-navigation-content--variant-full_c5fh4_115", ht = "ds-header_header-placeholder_c5fh4_120", mt = "ds-header_header-placeholder--with-banner_c5fh4_123", S = {
|
|
231
231
|
root: at,
|
|
232
232
|
rootSticky: rt,
|
|
233
233
|
rootHidden: nt,
|
|
234
234
|
rootFixed: ot,
|
|
235
235
|
mainNavigationArea: it,
|
|
236
236
|
mainNavigationAreaFixed: st,
|
|
237
|
-
mainNavigationAreaFixedVisible:
|
|
238
|
-
mainNavigationContent:
|
|
239
|
-
mainNavigationContentVariantFull:
|
|
237
|
+
mainNavigationAreaFixedVisible: dt,
|
|
238
|
+
mainNavigationContent: lt,
|
|
239
|
+
mainNavigationContentVariantFull: ct,
|
|
240
240
|
headerPlaceholder: ht,
|
|
241
241
|
headerPlaceholderWithBanner: mt
|
|
242
|
-
},
|
|
242
|
+
}, q = Fe({
|
|
243
243
|
variant: "main"
|
|
244
244
|
}), se = (i) => {
|
|
245
|
-
const e =
|
|
246
|
-
let t, o, n, a,
|
|
245
|
+
const e = P.c(61);
|
|
246
|
+
let t, o, n, a, l, s, c;
|
|
247
247
|
e[0] !== i ? ({
|
|
248
248
|
children: o,
|
|
249
249
|
brandAddOnProps: t,
|
|
250
250
|
className: n,
|
|
251
251
|
isHeaderSticky: s,
|
|
252
|
-
variant:
|
|
252
|
+
variant: c,
|
|
253
253
|
logoProps: a,
|
|
254
|
-
...
|
|
255
|
-
} = i, e[0] = i, e[1] = t, e[2] = o, e[3] = n, e[4] = a, e[5] =
|
|
256
|
-
const r = s === void 0 ? !1 : s, h =
|
|
254
|
+
...l
|
|
255
|
+
} = i, e[0] = i, e[1] = t, e[2] = o, e[3] = n, e[4] = a, e[5] = l, e[6] = s, e[7] = c) : (t = e[1], o = e[2], n = e[3], a = e[4], l = e[5], s = e[6], c = e[7]);
|
|
256
|
+
const r = s === void 0 ? !1 : s, h = c === void 0 ? "main" : c, [m, A] = T(!1);
|
|
257
257
|
let f;
|
|
258
258
|
e[8] !== o ? (f = O(o, se.BannerArea, !0), e[8] = o, e[9] = f) : f = e[9];
|
|
259
|
-
const p = f, u = O(o,
|
|
259
|
+
const p = f, u = O(o, $.BrandArea), v = O(o, $.PrimaryArea), w = O(o, $.SecondaryArea);
|
|
260
260
|
process.env.NODE_ENV !== "production" && Me({
|
|
261
261
|
hasBrandArea: u,
|
|
262
262
|
hasPrimaryArea: v,
|
|
263
263
|
hasSecondaryArea: w
|
|
264
264
|
});
|
|
265
|
-
const g = Ve(2), [
|
|
265
|
+
const g = Ve(2), [d, N] = T(!1), W = I(null), U = I(null), de = I(null), le = I(null), [ce, De] = T(!1), [E, Pe] = T(!1), [H, be] = T(!0), [he, xe] = T(!1), me = I(d), j = ue(W), G = ue(de), J = ue(U), fe = G.height + j.height + J.height;
|
|
266
266
|
let K, Q;
|
|
267
267
|
e[10] !== r ? (K = () => {
|
|
268
268
|
if (r) {
|
|
269
269
|
const b = () => {
|
|
270
|
-
N((
|
|
270
|
+
N((x) => (me.current = x, window.innerWidth < 1024));
|
|
271
271
|
};
|
|
272
272
|
return b(), window.addEventListener("resize", b), () => window.removeEventListener("resize", b);
|
|
273
273
|
}
|
|
274
|
-
}, Q = [r], e[10] = r, e[11] = K, e[12] = Q) : (K = e[11], Q = e[12]),
|
|
274
|
+
}, Q = [r], e[10] = r, e[11] = K, e[12] = Q) : (K = e[11], Q = e[12]), L(K, Q);
|
|
275
275
|
let X;
|
|
276
276
|
e[13] !== j.height || e[14] !== J.height || e[15] !== G.height ? (X = () => {
|
|
277
|
-
const b = document.documentElement,
|
|
277
|
+
const b = document.documentElement, x = j.height || 0, ne = G.height || 0;
|
|
278
278
|
let B;
|
|
279
|
-
if (!
|
|
280
|
-
B =
|
|
279
|
+
if (!le.current)
|
|
280
|
+
B = x + ne;
|
|
281
281
|
else {
|
|
282
|
-
const
|
|
283
|
-
!
|
|
282
|
+
const k = J.height || 0;
|
|
283
|
+
!k || k === x ? B = parseInt(b.style.getPropertyValue("--ds-header-height").replace("rem", "")) * 16 || 0 : B = k;
|
|
284
284
|
}
|
|
285
|
-
b.style.setProperty("--ds-banner-height", `${pe(
|
|
285
|
+
b.style.setProperty("--ds-banner-height", `${pe(x)}rem`), b.style.setProperty("--ds-header-height", `${pe(B)}rem`), b.style.setProperty("--ds-top-bar-height", `${pe(ne)}rem`);
|
|
286
286
|
}, e[13] = j.height, e[14] = J.height, e[15] = G.height, e[16] = X) : X = e[16];
|
|
287
287
|
let Z;
|
|
288
288
|
e[17] !== fe ? (Z = [fe], e[17] = fe, e[18] = Z) : Z = e[18], Ne(X, Z);
|
|
289
289
|
let ee;
|
|
290
|
-
e[19] !== r || e[20] !==
|
|
290
|
+
e[19] !== r || e[20] !== d || e[21] !== H || e[22] !== g ? (ee = () => {
|
|
291
291
|
if (r) {
|
|
292
292
|
const b = () => {
|
|
293
|
-
const B = U.current,
|
|
294
|
-
|
|
295
|
-
const
|
|
296
|
-
if (!
|
|
297
|
-
be(
|
|
293
|
+
const B = U.current, k = !!B && window.scrollY <= B.offsetHeight;
|
|
294
|
+
De(k);
|
|
295
|
+
const z = le.current, oe = de.current;
|
|
296
|
+
if (!d && me.current && !H) {
|
|
297
|
+
be(k && !!B && window.scrollY <= B.offsetHeight);
|
|
298
298
|
return;
|
|
299
299
|
}
|
|
300
|
-
const Te = !!oe && !!
|
|
301
|
-
be(
|
|
300
|
+
const Te = !!oe && !!z && z.getBoundingClientRect().bottom > oe.getBoundingClientRect().bottom, Oe = !z && !!oe && !!W.current && (window.scrollY >= W.current.offsetHeight || 0) || !z && !W.current && !!oe && window.scrollY >= 1;
|
|
301
|
+
be(z ? Te && !!B && window.scrollY <= B.offsetHeight : !Oe);
|
|
302
302
|
};
|
|
303
303
|
window.addEventListener("scroll", b, {
|
|
304
304
|
passive: !0
|
|
305
305
|
}), b();
|
|
306
|
-
const
|
|
307
|
-
return
|
|
306
|
+
const x = U.current, ne = !!x && x.getBoundingClientRect().bottom > 0;
|
|
307
|
+
return d && Pe(g === "up" && !ne), d || xe(g === "up" && !H), () => {
|
|
308
308
|
window.removeEventListener("scroll", b);
|
|
309
309
|
};
|
|
310
310
|
}
|
|
311
|
-
}, e[19] = r, e[20] =
|
|
311
|
+
}, e[19] = r, e[20] = d, e[21] = H, e[22] = g, e[23] = ee) : ee = e[23];
|
|
312
312
|
let te;
|
|
313
|
-
e[24] !== r || e[25] !==
|
|
313
|
+
e[24] !== r || e[25] !== d || e[26] !== g ? (te = [r, d, me, g], e[24] = r, e[25] = d, e[26] = g, e[27] = te) : te = e[27], L(ee, te);
|
|
314
314
|
let ae;
|
|
315
|
-
e[28] !== n || e[29] !== E || e[30] !== r || e[31] !==
|
|
316
|
-
[S.rootSticky]:
|
|
317
|
-
[S.rootHidden]:
|
|
318
|
-
[S.rootFixed]:
|
|
319
|
-
} : {}), e[28] = n, e[29] = E, e[30] = r, e[31] =
|
|
315
|
+
e[28] !== n || e[29] !== E || e[30] !== r || e[31] !== ce || e[32] !== d ? (ae = D(S.root, n, r ? {
|
|
316
|
+
[S.rootSticky]: d,
|
|
317
|
+
[S.rootHidden]: d && !ce,
|
|
318
|
+
[S.rootFixed]: d && E
|
|
319
|
+
} : {}), e[28] = n, e[29] = E, e[30] = r, e[31] = ce, e[32] = d, e[33] = ae) : ae = e[33];
|
|
320
320
|
const Ae = ae;
|
|
321
321
|
let F;
|
|
322
|
-
e[34] !== t || e[35] !== m || e[36] !== he || e[37] !== r || e[38] !==
|
|
322
|
+
e[34] !== t || e[35] !== m || e[36] !== he || e[37] !== r || e[38] !== d || e[39] !== H || e[40] !== a || e[41] !== h ? (F = {
|
|
323
323
|
variant: h,
|
|
324
|
-
bannerAreaRef:
|
|
324
|
+
bannerAreaRef: W,
|
|
325
325
|
brandAddOnProps: t,
|
|
326
326
|
hasBrandAddOn: m,
|
|
327
327
|
setHasBrandAddOn: A,
|
|
328
328
|
isFixedMainNavigation: he,
|
|
329
329
|
isHeaderSticky: r,
|
|
330
|
-
isMobile:
|
|
330
|
+
isMobile: d,
|
|
331
331
|
isStickyMainNavigationVisible: H,
|
|
332
|
-
mainNavigationAreaRef:
|
|
333
|
-
topBarAreaRef:
|
|
332
|
+
mainNavigationAreaRef: le,
|
|
333
|
+
topBarAreaRef: de,
|
|
334
334
|
logoProps: a
|
|
335
|
-
}, e[34] = t, e[35] = m, e[36] = he, e[37] = r, e[38] =
|
|
335
|
+
}, e[34] = t, e[35] = m, e[36] = he, e[37] = r, e[38] = d, e[39] = H, e[40] = a, e[41] = h, e[42] = F) : F = e[42];
|
|
336
336
|
let R;
|
|
337
|
-
e[43] !== o || e[44] !== F ? (R = /* @__PURE__ */ y(
|
|
337
|
+
e[43] !== o || e[44] !== F ? (R = /* @__PURE__ */ y(q.Provider, { value: F, children: o }), e[43] = o, e[44] = F, e[45] = R) : R = e[45];
|
|
338
338
|
let C;
|
|
339
|
-
e[46] !==
|
|
339
|
+
e[46] !== l || e[47] !== Ae || e[48] !== R ? (C = /* @__PURE__ */ y("header", { className: Ae, ...l, ref: U, children: R }), e[46] = l, e[47] = Ae, e[48] = R, e[49] = C) : C = e[49];
|
|
340
340
|
let V;
|
|
341
|
-
e[50] !== E || e[51] !==
|
|
341
|
+
e[50] !== E || e[51] !== d ? (V = d && E && /* @__PURE__ */ y("div", { className: S.headerPlaceholder }), e[50] = E, e[51] = d, e[52] = V) : V = e[52];
|
|
342
342
|
let M;
|
|
343
|
-
e[53] !== p || e[54] !==
|
|
343
|
+
e[53] !== p || e[54] !== d || e[55] !== H ? (M = !d && !H && /* @__PURE__ */ y("div", { className: p ? S.headerPlaceholderWithBanner : S.headerPlaceholder }), e[53] = p, e[54] = d, e[55] = H, e[56] = M) : M = e[56];
|
|
344
344
|
let re;
|
|
345
345
|
return e[57] !== C || e[58] !== V || e[59] !== M ? (re = /* @__PURE__ */ ge(Ee, { children: [
|
|
346
346
|
C,
|
|
@@ -348,36 +348,36 @@ const at = "ds-header_root_c5fh4_1", rt = "ds-header_root--sticky_c5fh4_4", nt =
|
|
|
348
348
|
M
|
|
349
349
|
] }), e[57] = C, e[58] = V, e[59] = M, e[60] = re) : re = e[60], re;
|
|
350
350
|
}, we = (i) => {
|
|
351
|
-
const e =
|
|
351
|
+
const e = P.c(4), {
|
|
352
352
|
children: t,
|
|
353
353
|
className: o
|
|
354
354
|
} = i, {
|
|
355
355
|
bannerAreaRef: n
|
|
356
|
-
} = ie(
|
|
356
|
+
} = ie(q);
|
|
357
357
|
let a;
|
|
358
358
|
return e[0] !== n || e[1] !== t || e[2] !== o ? (a = /* @__PURE__ */ y("div", { ref: n, className: o, children: t }), e[0] = n, e[1] = t, e[2] = o, e[3] = a) : a = e[3], a;
|
|
359
359
|
};
|
|
360
360
|
we.displayName = "DSHeader.BannerArea";
|
|
361
361
|
const He = (i) => {
|
|
362
|
-
const e =
|
|
362
|
+
const e = P.c(15), {
|
|
363
363
|
children: t,
|
|
364
364
|
className: o
|
|
365
365
|
} = i, {
|
|
366
366
|
variant: n,
|
|
367
367
|
isFixedMainNavigation: a,
|
|
368
|
-
isHeaderSticky:
|
|
368
|
+
isHeaderSticky: l,
|
|
369
369
|
isMobile: s,
|
|
370
|
-
isStickyMainNavigationVisible:
|
|
370
|
+
isStickyMainNavigationVisible: c,
|
|
371
371
|
mainNavigationAreaRef: r
|
|
372
|
-
} = ie(
|
|
372
|
+
} = ie(q);
|
|
373
373
|
let h;
|
|
374
|
-
e[0] !== o || e[1] !== a || e[2] !==
|
|
375
|
-
[S.mainNavigationAreaFixed]: !s && !
|
|
374
|
+
e[0] !== o || e[1] !== a || e[2] !== l || e[3] !== s || e[4] !== c ? (h = D(S.mainNavigationArea, o, l ? {
|
|
375
|
+
[S.mainNavigationAreaFixed]: !s && !c,
|
|
376
376
|
[S.mainNavigationAreaFixedVisible]: !s && a
|
|
377
|
-
} : {}), e[0] = o, e[1] = a, e[2] =
|
|
377
|
+
} : {}), e[0] = o, e[1] = a, e[2] = l, e[3] = s, e[4] = c, e[5] = h) : h = e[5];
|
|
378
378
|
const m = h, A = n === "full";
|
|
379
379
|
let f;
|
|
380
|
-
e[6] !== A ? (f =
|
|
380
|
+
e[6] !== A ? (f = D(S.mainNavigationContent, {
|
|
381
381
|
[S.mainNavigationContentVariantFull]: A
|
|
382
382
|
}), e[6] = A, e[7] = f) : f = e[7];
|
|
383
383
|
const p = f;
|
|
@@ -392,10 +392,10 @@ se.MainNavigationArea = He;
|
|
|
392
392
|
se.displayName = "DSHeader";
|
|
393
393
|
export {
|
|
394
394
|
St as B,
|
|
395
|
-
|
|
395
|
+
se as D,
|
|
396
396
|
bt as H,
|
|
397
|
-
|
|
398
|
-
|
|
397
|
+
q as a,
|
|
398
|
+
$ as b,
|
|
399
399
|
tt as c,
|
|
400
400
|
Se as i,
|
|
401
401
|
Me as v
|
|
@@ -25,7 +25,7 @@ function Q(t) {
|
|
|
25
25
|
n.forEach((o) => {
|
|
26
26
|
var a;
|
|
27
27
|
const d = o.isIntersecting && c.some((m) => o.intersectionRatio >= m);
|
|
28
|
-
t.trackVisibility && typeof o.isVisible > "u" && (o.isVisible = d), (a = r.get(o.target))
|
|
28
|
+
t.trackVisibility && typeof o.isVisible > "u" && (o.isVisible = d), [...(a = r.get(o.target)) != null ? a : []].forEach((m) => {
|
|
29
29
|
m(d, o);
|
|
30
30
|
});
|
|
31
31
|
});
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { g as
|
|
3
|
-
|
|
4
|
-
import "./index.cKLI89Eg.js";
|
|
5
|
-
const r = 8, d = 5, I = ["medium", "small"], u = ["color", "date", "datetime-local", "email", "month", "number", "range", "tel", "text", "time", "url"], l = ["week", "file", "hidden", "button", "checkbox", "password", "radio", "search", "reset", "submit", "image", "datetime"], T = ({
|
|
2
|
+
import { g as n } from "./helpers.CexwVao7.js";
|
|
3
|
+
const r = 8, d = 5, w = ["medium", "small"], p = ["color", "date", "datetime-local", "email", "month", "number", "range", "tel", "text", "time", "url"], l = ["week", "file", "hidden", "button", "checkbox", "password", "radio", "search", "reset", "submit", "image", "datetime"], b = ({
|
|
6
4
|
hideLabel: e,
|
|
7
5
|
id: o,
|
|
8
6
|
label: a,
|
|
@@ -10,21 +8,21 @@ const r = 8, d = 5, I = ["medium", "small"], u = ["color", "date", "datetime-loc
|
|
|
10
8
|
popoverContent: c,
|
|
11
9
|
suffix: i,
|
|
12
10
|
leadingIconName: m,
|
|
13
|
-
leadingIconSource:
|
|
14
|
-
actionButtonProps:
|
|
11
|
+
leadingIconSource: u,
|
|
12
|
+
actionButtonProps: t
|
|
15
13
|
}) => {
|
|
16
14
|
if (!o)
|
|
17
|
-
throw new Error(
|
|
15
|
+
throw new Error(n("DSInput", 'A unique "id" prop is required. Please add a unique "id" prop to the DSInput component.'));
|
|
18
16
|
if (!a)
|
|
19
|
-
throw new Error(
|
|
20
|
-
if (
|
|
21
|
-
throw new Error(
|
|
22
|
-
if (
|
|
23
|
-
throw new Error(
|
|
24
|
-
s && s.length > r && console.warn(
|
|
25
|
-
},
|
|
26
|
-
if (!
|
|
27
|
-
throw new Error(
|
|
17
|
+
throw new Error(n("DSInput", `A label is always required for a11y reasons. Please add a descriptive "label" prop to the DSInput component. If you don't want to display a label, set hideLabel={true}.`));
|
|
18
|
+
if (t && !t.label)
|
|
19
|
+
throw new Error(n("DSInput", "The action button needs to have a label for a11y reasons. Please add a label to the actionButtonProps."));
|
|
20
|
+
if (t && !t?.iconName && !t?.iconSource)
|
|
21
|
+
throw new Error(n("DSInput", "The action button needs to have an iconName or iconSource. Please add an iconName or iconSource to the actionButtonProps."));
|
|
22
|
+
s && s.length > r && console.warn(n("DSInput", `Prefix length must not exceed ${r} characters.`)), i && i.length > d && console.warn(n("DSInput", `Suffix length must not exceed ${d} characters.`)), s && (m || u) && console.warn(n("DSInput", "Prefix and a leading Icon cannot be used at the same time.")), i && (t?.iconName || t?.iconSource) && console.warn(n("DSInput", "Suffix and an action button cannot be used at the same time.")), e && c && console.warn(n("DSInput", "Using a popover when hideLabel is set to true is not supported."));
|
|
23
|
+
}, I = (e, o) => {
|
|
24
|
+
if (!p.includes(e) && !l.includes(e))
|
|
25
|
+
throw new Error(n("DSInput", `The type "${e}" is not supported by the DSInput component.`));
|
|
28
26
|
if (o === "off" && e === "number")
|
|
29
27
|
return;
|
|
30
28
|
const a = {
|
|
@@ -42,18 +40,18 @@ const r = 8, d = 5, I = ["medium", "small"], u = ["color", "date", "datetime-loc
|
|
|
42
40
|
week: "Type week is not recommended. Mobile safari does not support type week.",
|
|
43
41
|
hidden: 'Type hidden is not supported by DSInput component. Use a default <input type="hidden" /> element instead.'
|
|
44
42
|
};
|
|
45
|
-
a[e] && console.warn(
|
|
46
|
-
}, h = () => "showPicker" in HTMLInputElement.prototype && !!window.navigator.userAgent.match(/chrome|chromium|crios|edg/i),
|
|
43
|
+
a[e] && console.warn(n("DSInput", a[e]));
|
|
44
|
+
}, h = () => "showPicker" in HTMLInputElement.prototype && !!window.navigator.userAgent.match(/chrome|chromium|crios|edg/i), T = (e, o) => h() && (e || o), D = (e) => e === "date" || e === "datetime-local" || e === "month", f = (e) => e === "time";
|
|
47
45
|
export {
|
|
48
|
-
I,
|
|
46
|
+
w as I,
|
|
49
47
|
r as M,
|
|
50
|
-
|
|
48
|
+
p as S,
|
|
51
49
|
l as U,
|
|
52
50
|
d as a,
|
|
53
|
-
|
|
54
|
-
|
|
51
|
+
f as b,
|
|
52
|
+
I as c,
|
|
55
53
|
h,
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
54
|
+
D as i,
|
|
55
|
+
T as s,
|
|
56
|
+
b as v
|
|
59
57
|
};
|