@stihl-design-system/components 1.0.0-RC.47 → 1.0.0-RC.49
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.BQ7vavIt.js → accordion.D4XR2R7e.js} +2 -2
- package/{actionbutton.C7lqEmBx.js → actionbutton.C8hePX-D.js} +3 -3
- package/{actioncard.dgVHW0BC.js → actioncard.C-HzRqYB.js} +1 -1
- package/{actionlink.CL6v1mQA.js → actionlink.dccc5JQV.js} +3 -3
- package/{arialiveregions.DC1Gq9Lo.js → arialiveregions.BniSDuPM.js} +9 -10
- package/assets/Accordion.RlqWqpGo.css +1 -0
- package/assets/ActionButton.Dw2FeIaW.css +1 -0
- package/assets/ActionCard.DeWHOXFn.css +1 -0
- package/assets/ActionLink.B1Jjaf7k.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/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.CqjmRkfO.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/{SystemFeedback.DYi9QetY.css → SystemFeedback.DVMml_h9.css} +1 -1
- package/assets/TextUtility.BThulfyl.css +1 -0
- package/assets/Textarea.BO4AcRJD.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/numberindicator.CtbitPQ8.css +1 -0
- package/assets/progressindicator.BK8L7Bd4.css +1 -0
- package/assets/radio.9hUUyg8R.css +1 -0
- package/assets/skeleton.D9MOCUK4.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.BlB_7xue.js → banner.DO7GsDL_.js} +1 -1
- package/{breadcrumb.DajORKq7.js → breadcrumb.DYov6vtt.js} +3 -3
- package/{button.EooIlFBI.js → button.qxcuzbnv.js} +2 -2
- package/buttonround.BO7_ewzA.js +101 -0
- package/{checkbox.NJj9qMnx.js → checkbox.C9kyIY9P.js} +4 -5
- package/{checkboxgroup.DELdyn0X.js → checkboxgroup.kEUxnKLf.js} +2 -2
- package/{chip.C4h8Hm9g.js → chip.5ktNLRYf.js} +3 -3
- package/chipgroup.kRU3Z98U.js +226 -0
- package/chunks/Accordion.gih2ni1d.js +179 -0
- package/chunks/ActionButton.B-wm5sUy.js +194 -0
- package/chunks/ActionCard.HYDpsdai.js +227 -0
- package/chunks/ActionLink.D0KzqbH4.js +166 -0
- package/chunks/{AriaLiveRegions.utils.BPvIKT6B.js → AriaLiveRegions.utils.xoETe2Ps.js} +14 -16
- package/chunks/{Breadcrumb.Ccm79ver.js → Breadcrumb.I2G-T0zc.js} +2 -2
- 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.oEQpO9iN.js → CustomReactSelect.DTAavYaz.js} +282 -277
- package/chunks/Dialog.guuxflWL.js +101 -0
- package/chunks/{Drawer.CDe_g99S.js → Drawer.CjUZu6GW.js} +27 -28
- package/chunks/Fieldset.BBMuLKps.js +94 -0
- package/chunks/{Flag.X9tB3Mfv.js → Flag.CbQYBzVC.js} +12 -13
- package/chunks/{Header.bLSdAY9-.js → Header.CvcGSuhX.js} +1 -1
- package/chunks/{Input.utils.CkmzxIrU.js → Input.utils.Wycy2SzG.js} +23 -25
- package/chunks/InputFile.CkULfdaW.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.BPvA2tuc.js +200 -0
- package/chunks/{MegaMenu.DbunD_yW.js → MegaMenu.udXR1H3W.js} +1 -1
- package/chunks/{NavigationTabList.CyrKNAer.js → NavigationTabList.thzA1pU8.js} +1 -1
- package/chunks/{NavigationTabs.DVBe-Wt3.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.KBRikedB.js → Stepper.Ds_aIEF8.js} +68 -69
- package/chunks/SystemFeedback.DhWcYjnu.js +43 -0
- package/chunks/{Tabs.xXn4zpGp.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.NZfb7z3q.js → Toast.V_ZUAsf2.js} +1 -1
- package/chunks/translate.DSb-TdWR.js +2460 -0
- package/{combobox.CPsl2TC0.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/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.D7BJg-2s.js → customreactselect.L0zSh3Tg.js} +4 -4
- package/{dialog.BlprGigG.js → dialog.Ddq8o8Od.js} +2 -2
- package/{drawer.BoyrTFi1.js → drawer.rbbjQvqL.js} +2 -2
- package/{fieldset.D_e2-vo_.js → fieldset.BHf3XK2q.js} +3 -3
- package/filelist.CabPo1pv.js +143 -0
- package/filepreview.B2Ot9SZ7.js +97 -0
- package/{flag.0vpitrQ-.js → flag.fX6LAgty.js} +3 -4
- package/{floatingactionbutton.BrdE1vi2.js → floatingactionbutton.BwCiybnc.js} +1 -1
- package/{header.C3AqYBtz.js → header.BCeCjYfG.js} +1 -1
- package/index.es.js +203 -204
- package/input.Dh0ws-9j.js +187 -0
- package/inputfile.0CCdkjg5.js +17 -0
- package/{inputnumber.Box5R2An.js → inputnumber.D2cmptaH.js} +8 -9
- package/{inputpassword.CBc8GNwI.js → inputpassword.C53Kg4EA.js} +4 -4
- package/inputsearch.BrsIDUSW.js +14 -0
- package/link.DEZDbUgq.js +81 -0
- package/{linkbutton.DxEPueLb.js → linkbutton._X50W2Md.js} +3 -3
- package/{linkcard.CCY-VFWN.js → linkcard.CrspFGLZ.js} +3 -3
- package/{logo.D7LnRA1E.js → logo.D6BTxbxv.js} +0 -1
- package/{megamenu.C8OynEzk.js → megamenu.odVCUm4c.js} +2 -2
- package/{navigationtablist.iSQd5PX4.js → navigationtablist.n9DrtYe5.js} +2 -2
- package/{navigationtabs.FtkVv_qV.js → navigationtabs.D0mSyAtK.js} +2 -2
- package/{notification.Cqg8HpJ8.js → notification._X8-8vOa.js} +2 -2
- package/numberindicator.DsK65Bj3.js +39 -0
- package/package.json +6 -1
- package/pagination.B7Hrx_sk.js +14 -0
- package/partials/index.js +72 -72
- package/{popover.DYiEGSnj.js → popover.BBaqL7y9.js} +3 -3
- package/product-card-example-8.webp +0 -0
- package/progressindicator.CAb_O3VK.js +74 -0
- package/radio.DjToa2aV.js +148 -0
- package/{radiogroup.wqgExwrG.js → radiogroup.mc-8lw65.js} +3 -3
- package/{scroller.Dqnsxq2M.js → scroller.CgWp2WXG.js} +10 -11
- package/{select.DkKuGI6O.js → select.DTZ6a6Ag.js} +5 -6
- package/skeleton.BmkcNeRD.js +148 -0
- package/{skiptocontent.CRQywi6J.js → skiptocontent.BsRpWvyu.js} +4 -4
- package/{slider.BOjqQp9n.js → slider.BMGAihY0.js} +3 -3
- package/{step.C6zDRCBu.js → step.DCQ6CawJ.js} +1 -1
- package/stepper.D7-7BdSv.js +15 -0
- package/styles/js/index.es.js +3 -1
- package/styles/js/lib/animation.d.ts +2 -0
- package/styles/scss/ds/index.scss +2 -0
- package/styles/scss/ds/lib/animation.scss +4 -0
- package/styles/scss/ds/lib/border-width.scss +3 -0
- package/styles/scss/ds/lib/ds-internal/_input.scss +65 -21
- package/styles/scss/ds/lib/ds-internal/_link-button.scss +4 -2
- package/styles/scss/ds/lib/ds-internal/_link.scss +23 -3
- 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/{switch.CuNNdrkD.js → switch.tM2XBag8.js} +2 -2
- package/{systemfeedback.Da0wX0Eb.js → systemfeedback.BPPOht_9.js} +1 -1
- package/{tablist.BjKwrLz9.js → tablist.BAm0_UIG.js} +22 -23
- package/{tabpane.7vMXUKFX.js → tabpane.B9rZghU6.js} +1 -1
- package/{tabs.-U2k6Oll.js → tabs.BgTdWbTe.js} +3 -3
- package/text.BEO_ZfJq.js +72 -0
- package/{textarea.BWznY6Gg.js → textarea.Cki-uMkZ.js} +5 -6
- package/{textutility.CBLuAdaa.js → textutility.BypzssPt.js} +2 -2
- package/{toast.D9XLSgJg.js → toast.s0Hfuh5i.js} +2 -2
- package/{toastmanager.V5E05qgI.js → toastmanager.CPIPn4Io.js} +19 -20
- package/{tooltip.a1aWHK00.js → tooltip.BFQG-7VR.js} +1 -1
- package/{topbar.BdGK62KJ.js → topbar.Bbct-XkB.js} +3 -3
- package/utils/translate.d.ts +22 -6
- package/assets/Accordion.DPu2l_Kg.css +0 -1
- package/assets/ActionButton.DcQYatF1.css +0 -1
- package/assets/ActionCard.gRQVVFWz.css +0 -1
- package/assets/ActionLink.B62Aa8y9.css +0 -1
- package/assets/Button.BI6zz6Fw.css +0 -1
- package/assets/Checkbox.DknHnS9a.css +0 -1
- package/assets/Chip.CYhVB1Jh.css +0 -1
- package/assets/CustomReactSelect.lKMLwL7n.css +0 -1
- package/assets/Dialog.BKwWy1g2.css +0 -1
- package/assets/Drawer.IRb7Vc1n.css +0 -1
- package/assets/Fieldset.C4Fx4-UV.css +0 -1
- package/assets/InputFile.ne7gwc_5.css +0 -1
- package/assets/InputNumber.BIdsQuFc.css +0 -1
- package/assets/InputPassword.YSKTDTA1.css +0 -1
- package/assets/InputSearch.C3qtDQcj.css +0 -1
- package/assets/LinkButton.CmEE7Od_.css +0 -1
- package/assets/LinkCard.pJtgJRIh.css +0 -1
- package/assets/Notification.BO0Mu9No.css +0 -1
- package/assets/Pagination.OLmfdASf.css +0 -1
- package/assets/Popover.mL5g23EK.css +0 -1
- package/assets/Select.CDP-1_K9.css +0 -1
- package/assets/Slider.Cu7MgNph.css +0 -1
- package/assets/TextUtility.bwkCWEiV.css +0 -1
- package/assets/Textarea.Hsq68tg1.css +0 -1
- package/assets/buttonround.rmUb58WF.css +0 -1
- package/assets/chipgroup.BGxjdSDX.css +0 -1
- package/assets/filelist.cP3O1JeJ.css +0 -1
- package/assets/input.BEBgyvkK.css +0 -1
- package/assets/numberindicator.DSpNPJcs.css +0 -1
- package/assets/progressindicator.Dxrigyne.css +0 -1
- package/assets/radio.DsHt-9om.css +0 -1
- package/assets/skeleton.BjozXDiQ.css +0 -1
- package/assets/switch.fwcMI6o7.css +0 -1
- package/assets/tabpane.o34hshTz.css +0 -1
- package/assets/text.Doa-APfR.css +0 -1
- package/assets/tooltip.DrSplliO.css +0 -1
- package/buttonround.BeQakrPs.js +0 -101
- package/chipgroup.BKjeuuM0.js +0 -213
- package/chunks/Accordion.8kTbiPxs.js +0 -173
- package/chunks/ActionButton.CBV1-_HP.js +0 -188
- package/chunks/ActionCard.Dbq2VqyZ.js +0 -227
- package/chunks/ActionLink.BXxDS1Gg.js +0 -161
- package/chunks/Button.COycNYUI.js +0 -160
- package/chunks/Checkbox.CMshaWIU.js +0 -88
- package/chunks/CheckboxGroup.D3D1spfJ.js +0 -79
- package/chunks/Chip.DCJYE513.js +0 -157
- package/chunks/Dialog.lJXxzgu2.js +0 -102
- package/chunks/Fieldset.DOjI3DlI.js +0 -91
- package/chunks/InputFile.DYXvF6vT.js +0 -260
- package/chunks/InputNumber.CkWpchPo.js +0 -240
- package/chunks/InputPassword.21E6XMr5.js +0 -121
- package/chunks/InputSearch.Dy3EKa9f.js +0 -149
- package/chunks/LinkButton.BCHTLFMJ.js +0 -150
- package/chunks/LinkCard.BYmTwsS5.js +0 -197
- package/chunks/Notification.BjyLiO2h.js +0 -91
- package/chunks/Pagination.CJikF9Cw.js +0 -247
- package/chunks/Popover.ByaoNwGK.js +0 -221
- package/chunks/RadioGroup.Bh2X6pT9.js +0 -130
- package/chunks/Select.KWb09VmF.js +0 -147
- package/chunks/Slider.CxnIy51F.js +0 -309
- package/chunks/SystemFeedback.4osheYxC.js +0 -38
- package/chunks/Text.utils.BZ4nTZVu.js +0 -11
- package/chunks/TextUtility.BPrxUX-x.js +0 -82
- package/chunks/Textarea.CAOqZMUi.js +0 -181
- package/chunks/translate.nuU7uChI.js +0 -8
- package/filelist.DfAt2xJa.js +0 -128
- package/filepreview.Defs34bv.js +0 -94
- package/input.ChMzyHej.js +0 -175
- package/inputfile.DZIUs1EC.js +0 -18
- package/inputsearch.DzzYb-C0.js +0 -15
- package/link.aU1f2Xzu.js +0 -81
- package/numberindicator.Q7g4J3Ry.js +0 -36
- package/pagination.DA4PMLOq.js +0 -14
- package/progressindicator.DpmERE8T.js +0 -53
- package/radio.KQ8CUM3_.js +0 -137
- package/skeleton.DUkBgXxO.js +0 -148
- package/stepper.DHl3_XU9.js +0 -16
- package/text.CnP3baHy.js +0 -72
|
@@ -1,91 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { jsx as H, jsxs as F } from "react/jsx-runtime";
|
|
3
|
-
import { d as R } from "./index.cKLI89Eg.js";
|
|
4
|
-
import { c as k } from "./index.DQOqod3i.js";
|
|
5
|
-
import { D as W } from "./Button.COycNYUI.js";
|
|
6
|
-
import { D as j } from "./Icon.DYtaQgbw.js";
|
|
7
|
-
import '../assets/Notification.BO0Mu9No.css';const y = "ds-notification_root_a4l51_1", L = "ds-notification_root--success_a4l51_29", P = "ds-notification_root--error_a4l51_33", V = "ds-notification_root--warning_a4l51_37", z = "ds-notification_root--hide-icon_a4l51_41", Y = "ds-notification_content_a4l51_55", $ = "ds-notification_content--hide-close-button_a4l51_62", q = "ds-notification_content--hide-icon_a4l51_65", G = "ds-notification_icon_a4l51_69", J = "ds-notification_message_a4l51_73", K = "ds-notification_custom-action-area_a4l51_170", e = {
|
|
8
|
-
root: y,
|
|
9
|
-
rootSuccess: L,
|
|
10
|
-
rootError: P,
|
|
11
|
-
rootWarning: V,
|
|
12
|
-
rootHideIcon: z,
|
|
13
|
-
content: Y,
|
|
14
|
-
contentHideCloseButton: $,
|
|
15
|
-
contentHideIcon: q,
|
|
16
|
-
icon: G,
|
|
17
|
-
message: J,
|
|
18
|
-
customActionArea: K
|
|
19
|
-
}, eo = ["success", "error", "warning", "info"], M = {
|
|
20
|
-
success: "circle-check-colored",
|
|
21
|
-
error: "diamond-exclamationmark-colored",
|
|
22
|
-
warning: "triangle-exclamationmark-colored",
|
|
23
|
-
info: "circle-info-colored"
|
|
24
|
-
}, Q = {
|
|
25
|
-
error: "alert",
|
|
26
|
-
warning: "alert",
|
|
27
|
-
info: "status",
|
|
28
|
-
success: "status"
|
|
29
|
-
}, no = (S) => {
|
|
30
|
-
const o = R.c(46);
|
|
31
|
-
let i, r, a, s, n, l, h, A;
|
|
32
|
-
o[0] !== S ? ({
|
|
33
|
-
children: i,
|
|
34
|
-
variant: h,
|
|
35
|
-
className: r,
|
|
36
|
-
closeButtonProps: a,
|
|
37
|
-
customActionArea: s,
|
|
38
|
-
hideIcon: A,
|
|
39
|
-
onClose: n,
|
|
40
|
-
...l
|
|
41
|
-
} = S, o[0] = S, o[1] = i, o[2] = r, o[3] = a, o[4] = s, o[5] = n, o[6] = l, o[7] = h, o[8] = A) : (i = o[1], r = o[2], a = o[3], s = o[4], n = o[5], l = o[6], h = o[7], A = o[8]);
|
|
42
|
-
const c = h === void 0 ? "info" : h, t = A === void 0 ? !1 : A;
|
|
43
|
-
let d;
|
|
44
|
-
o[9] !== a ? (d = a || {}, o[9] = a, o[10] = d) : d = o[10];
|
|
45
|
-
let _, g;
|
|
46
|
-
o[11] !== d ? ({
|
|
47
|
-
label: g,
|
|
48
|
-
..._
|
|
49
|
-
} = d, o[11] = d, o[12] = _, o[13] = g) : (_ = o[12], g = o[13]);
|
|
50
|
-
const O = g === void 0 ? "Close notification" : g, T = c === "success", x = c === "error", B = c === "warning";
|
|
51
|
-
let C;
|
|
52
|
-
o[14] !== r || o[15] !== t || o[16] !== T || o[17] !== x || o[18] !== B ? (C = k(e.root, r, {
|
|
53
|
-
[e.rootSuccess]: T,
|
|
54
|
-
[e.rootError]: x,
|
|
55
|
-
[e.rootWarning]: B,
|
|
56
|
-
[e.rootHideIcon]: t
|
|
57
|
-
}), o[14] = r, o[15] = t, o[16] = T, o[17] = x, o[18] = B, o[19] = C) : C = o[19];
|
|
58
|
-
const D = C, b = !n;
|
|
59
|
-
let p;
|
|
60
|
-
o[20] !== t || o[21] !== b ? (p = k(e.content, {
|
|
61
|
-
[e.contentHideCloseButton]: b,
|
|
62
|
-
[e.contentHideIcon]: t
|
|
63
|
-
}), o[20] = t, o[21] = b, o[22] = p) : p = o[22];
|
|
64
|
-
const w = p, E = Q[c];
|
|
65
|
-
let f;
|
|
66
|
-
o[23] !== t || o[24] !== c ? (f = !t && /* @__PURE__ */ H(j, { name: M[c], className: e.icon, "aria-hidden": "true" }), o[23] = t, o[24] = c, o[25] = f) : f = o[25];
|
|
67
|
-
let m;
|
|
68
|
-
o[26] !== i ? (m = /* @__PURE__ */ H("div", { className: e.message, children: i }), o[26] = i, o[27] = m) : m = o[27];
|
|
69
|
-
let u;
|
|
70
|
-
o[28] !== O || o[29] !== n || o[30] !== _ ? (u = n && /* @__PURE__ */ H(W, { ..._, hideLabel: !0, iconName: "cross", isFlush: !0, variant: "ghost", size: "small", onClick: n, type: "button", children: O }), o[28] = O, o[29] = n, o[30] = _, o[31] = u) : u = o[31];
|
|
71
|
-
let I;
|
|
72
|
-
o[32] !== w || o[33] !== f || o[34] !== m || o[35] !== u ? (I = /* @__PURE__ */ F("div", { className: w, children: [
|
|
73
|
-
f,
|
|
74
|
-
m,
|
|
75
|
-
u
|
|
76
|
-
] }), o[32] = w, o[33] = f, o[34] = m, o[35] = u, o[36] = I) : I = o[36];
|
|
77
|
-
let N;
|
|
78
|
-
o[37] !== s || o[38] !== t ? (N = s && /* @__PURE__ */ H("div", { className: k({
|
|
79
|
-
[e.customActionArea]: !t
|
|
80
|
-
}), children: s }), o[37] = s, o[38] = t, o[39] = N) : N = o[39];
|
|
81
|
-
let v;
|
|
82
|
-
return o[40] !== l || o[41] !== D || o[42] !== E || o[43] !== I || o[44] !== N ? (v = /* @__PURE__ */ F("div", { className: D, ...l, role: E, children: [
|
|
83
|
-
I,
|
|
84
|
-
N
|
|
85
|
-
] }), o[40] = l, o[41] = D, o[42] = E, o[43] = I, o[44] = N, o[45] = v) : v = o[45], v;
|
|
86
|
-
};
|
|
87
|
-
export {
|
|
88
|
-
no as D,
|
|
89
|
-
M as N,
|
|
90
|
-
eo as a
|
|
91
|
-
};
|
|
@@ -1,247 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { jsx as v, jsxs as Ae } from "react/jsx-runtime";
|
|
3
|
-
import { d as Ie } from "./index.cKLI89Eg.js";
|
|
4
|
-
import { c as R } from "./index.DQOqod3i.js";
|
|
5
|
-
import { isValidElement as me, useState as ue, useEffect as ge, cloneElement as fe } from "react";
|
|
6
|
-
import { t as xe } from "./translate.nuU7uChI.js";
|
|
7
|
-
import { u as Me } from "./useIsomorphicLayoutEffect.CnJ9AMFS.js";
|
|
8
|
-
import { f as Ce } from "./AriaLiveRegions.utils.BPvIKT6B.js";
|
|
9
|
-
import { D as ve } from "./Button.COycNYUI.js";
|
|
10
|
-
import { D as _e } from "./LinkButton.BCHTLFMJ.js";
|
|
11
|
-
import { g as f, r as pe } from "./helpers.CexwVao7.js";
|
|
12
|
-
import '../assets/Pagination.OLmfdASf.css';const Le = "ds-pagination_list_d773m_1", Be = "ds-pagination_list--center_d773m_8", Te = "ds-pagination_list--right_d773m_11", ke = "ds-pagination_item_d773m_15", Oe = "ds-pagination_item-prev-button-wrapper_d773m_19", $e = "ds-pagination_item-next-button-wrapper_d773m_22", Re = "ds-pagination_prev-next-button_d773m_26", We = "ds-pagination_page-button_d773m_59", ze = "ds-pagination_page-button--active_d773m_110", Ve = "ds-pagination_ellipsis_d773m_138", je = "ds-pagination_divider_d773m_146", p = {
|
|
13
|
-
list: Le,
|
|
14
|
-
listCenter: Be,
|
|
15
|
-
listRight: Te,
|
|
16
|
-
item: ke,
|
|
17
|
-
itemPrevButtonWrapper: Oe,
|
|
18
|
-
itemNextButtonWrapper: $e,
|
|
19
|
-
prevNextButton: Re,
|
|
20
|
-
pageButton: We,
|
|
21
|
-
pageButtonActive: ze,
|
|
22
|
-
ellipsis: Ve,
|
|
23
|
-
divider: je
|
|
24
|
-
}, Pe = "(max-width: 518px)", we = "(max-width: 428px)", be = () => typeof window > "u" ? 9 : window.matchMedia(we).matches ? 5 : window.matchMedia(Pe).matches ? 7 : 9, Ge = (r, e, t) => {
|
|
25
|
-
const s = [];
|
|
26
|
-
if (r <= t) {
|
|
27
|
-
for (let i = 0; i < r; i++)
|
|
28
|
-
s.push({
|
|
29
|
-
type: "page",
|
|
30
|
-
pageIndex: i
|
|
31
|
-
});
|
|
32
|
-
return s;
|
|
33
|
-
}
|
|
34
|
-
const m = t - 4;
|
|
35
|
-
let o = e - Math.floor((m - 1) / 2), d = o + m - 1;
|
|
36
|
-
o <= 2 && (o = 1, d = t - 3), d >= r - 3 && (d = r - 2, o = r - t + 2);
|
|
37
|
-
const l = [0];
|
|
38
|
-
for (let i = o; i <= d; i++)
|
|
39
|
-
l.push(i);
|
|
40
|
-
return l.push(r - 1), l.forEach((i, P) => {
|
|
41
|
-
const _ = l[P - 1];
|
|
42
|
-
_ !== void 0 && i - _ > 1 && s.push({
|
|
43
|
-
type: "ellipsis",
|
|
44
|
-
id: `ellipsis-${_}-${i}`
|
|
45
|
-
}), s.push({
|
|
46
|
-
type: "page",
|
|
47
|
-
pageIndex: i
|
|
48
|
-
});
|
|
49
|
-
}), s;
|
|
50
|
-
}, Qe = (r) => {
|
|
51
|
-
const e = [];
|
|
52
|
-
return r.forEach((t, s) => {
|
|
53
|
-
s > 0 && e.push({
|
|
54
|
-
type: "divider",
|
|
55
|
-
id: `divider-${s}`
|
|
56
|
-
}), e.push(t);
|
|
57
|
-
}), e;
|
|
58
|
-
}, Ue = (r, e, t) => Qe(Ge(r, e, t)), qe = {
|
|
59
|
-
previousPage: "Previous page",
|
|
60
|
-
nextPage: "Next page",
|
|
61
|
-
page: "Page {0}",
|
|
62
|
-
pageOf: "Page {0} of {1} loaded"
|
|
63
|
-
}, Ye = {
|
|
64
|
-
previousPage: "Vorherige Seite",
|
|
65
|
-
nextPage: "Nächste Seite",
|
|
66
|
-
// {0} is the activePageIndex + 1
|
|
67
|
-
page: "Seite {0}",
|
|
68
|
-
// {0} is the activePageIndex + 1, {1} is the total pages
|
|
69
|
-
pageOf: "Seite {0} von {1} geladen"
|
|
70
|
-
}, Ne = {
|
|
71
|
-
en: qe,
|
|
72
|
-
de: Ye
|
|
73
|
-
}, Fe = ({
|
|
74
|
-
activePageIndex: r,
|
|
75
|
-
aria: e,
|
|
76
|
-
itemsPerPage: t,
|
|
77
|
-
links: s,
|
|
78
|
-
totalItemsCount: m
|
|
79
|
-
}) => {
|
|
80
|
-
if (!e || typeof e != "object" || Object.keys(e).length === 0 || !e["aria-label"] && !e["aria-labelledby"] || e["aria-label"]?.trim() === "" && e["aria-labelledby"]?.trim() === "")
|
|
81
|
-
throw new Error(f("DSPagination", 'A valid "aria-label" or "aria-labelledby" property is required. Ensure the "aria" prop is a non-empty object and includes either "aria-label" or "aria-labelledby" with a non-empty string value.'));
|
|
82
|
-
if (typeof m != "number" || Number.isNaN(m))
|
|
83
|
-
throw new Error(f("DSPagination", pe("totalItemsCount", "DSPagination")));
|
|
84
|
-
if (m < 0)
|
|
85
|
-
throw new Error(f("DSPagination", 'The "totalItemsCount" prop must be zero or a positive number.'));
|
|
86
|
-
if (typeof t != "number" || Number.isNaN(t))
|
|
87
|
-
throw new Error(f("DSPagination", pe("itemsPerPage", "DSPagination")));
|
|
88
|
-
if (t <= 0)
|
|
89
|
-
throw new Error(f("DSPagination", 'The "itemsPerPage" prop must be greater than 0.'));
|
|
90
|
-
if (typeof r != "number" || Number.isNaN(r) || !Number.isInteger(r))
|
|
91
|
-
throw new Error(f("DSPagination", pe("activePageIndex", "DSPagination")));
|
|
92
|
-
const o = Math.max(1, Math.ceil(m / Math.max(1, t)));
|
|
93
|
-
if (r < 0 || r > o - 1)
|
|
94
|
-
throw new Error(f("DSPagination", `The "activePageIndex" must be between 0 and ${o - 1}.`));
|
|
95
|
-
if (s && !Array.isArray(s))
|
|
96
|
-
throw new Error(f("DSPagination", 'The "links" prop must be an array when provided.'));
|
|
97
|
-
Array.isArray(s) && s.forEach(({
|
|
98
|
-
href: d,
|
|
99
|
-
wrapper: l
|
|
100
|
-
}, i) => {
|
|
101
|
-
if (l && !me(l))
|
|
102
|
-
throw new Error(f("DSPagination", `The link with label "${i + 1}" provided an invalid ReactElement as wrapper property.`));
|
|
103
|
-
l && d && console.warn(f("DSPagination", `The link with label "${i + 1}" has both a wrapper and an href property. Please use only one.`)), l && me(l) && l.props?.children && console.warn(f("DSPagination", `The link with label "${i + 1}" contains a wrapper with children. Please remove the children, as they will be replaced.`));
|
|
104
|
-
});
|
|
105
|
-
}, rt = (r) => {
|
|
106
|
-
const e = Ie.c(76);
|
|
107
|
-
let t, s, m, o, d, l, i, P, _, k, W;
|
|
108
|
-
e[0] !== r ? ({
|
|
109
|
-
aria: t,
|
|
110
|
-
activePageIndex: i,
|
|
111
|
-
itemsPerPage: m,
|
|
112
|
-
totalItemsCount: k,
|
|
113
|
-
className: s,
|
|
114
|
-
alignment: P,
|
|
115
|
-
lang: _,
|
|
116
|
-
links: o,
|
|
117
|
-
translations: W,
|
|
118
|
-
onPageChange: d,
|
|
119
|
-
...l
|
|
120
|
-
} = r, e[0] = r, e[1] = t, e[2] = s, e[3] = m, e[4] = o, e[5] = d, e[6] = l, e[7] = i, e[8] = P, e[9] = _, e[10] = k, e[11] = W) : (t = e[1], s = e[2], m = e[3], o = e[4], d = e[5], l = e[6], i = e[7], P = e[8], _ = e[9], k = e[10], W = e[11]);
|
|
121
|
-
const w = i === void 0 ? 0 : i, de = P === void 0 ? "right" : P, Se = _ === void 0 ? "en" : _, N = typeof d == "function", [ye, he] = ue(w), n = N ? w : ye, [ie, De] = ue(be);
|
|
122
|
-
let z, V;
|
|
123
|
-
e[12] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (z = () => {
|
|
124
|
-
const a = window.matchMedia(Pe), c = window.matchMedia(we), h = () => {
|
|
125
|
-
De(be());
|
|
126
|
-
};
|
|
127
|
-
return a.addEventListener("change", h), c.addEventListener("change", h), () => {
|
|
128
|
-
a.removeEventListener("change", h), c.removeEventListener("change", h);
|
|
129
|
-
};
|
|
130
|
-
}, V = [], e[12] = z, e[13] = V) : (z = e[12], V = e[13]), Me(z, V), process.env.NODE_ENV !== "production" && Fe({
|
|
131
|
-
aria: t,
|
|
132
|
-
itemsPerPage: m,
|
|
133
|
-
totalItemsCount: k,
|
|
134
|
-
activePageIndex: w,
|
|
135
|
-
links: o
|
|
136
|
-
});
|
|
137
|
-
const g = Math.max(1, Math.ceil(k / Math.max(1, m))), ne = W || Ne[Se] || Ne.en;
|
|
138
|
-
let j;
|
|
139
|
-
e[14] !== ne ? (j = xe(ne), e[14] = ne, e[15] = j) : j = e[15];
|
|
140
|
-
const u = j;
|
|
141
|
-
let G, Q;
|
|
142
|
-
e[16] !== n || e[17] !== u || e[18] !== g ? (G = () => {
|
|
143
|
-
const a = u("pageOf", [`${n + 1}`, `${g}`]);
|
|
144
|
-
Ce(a, "DSPagination");
|
|
145
|
-
}, Q = [n, g, u], e[16] = n, e[17] = u, e[18] = g, e[19] = G, e[20] = Q) : (G = e[19], Q = e[20]), ge(G, Q);
|
|
146
|
-
let U, q;
|
|
147
|
-
e[21] !== w || e[22] !== N ? (q = () => {
|
|
148
|
-
N || he(w);
|
|
149
|
-
}, U = [w, N], e[21] = w, e[22] = N, e[23] = U, e[24] = q) : (U = e[23], q = e[24]), ge(q, U);
|
|
150
|
-
let Y;
|
|
151
|
-
e[25] !== n || e[26] !== g || e[27] !== ie ? (Y = Ue(g, n, ie), e[25] = n, e[26] = g, e[27] = ie, e[28] = Y) : Y = e[28];
|
|
152
|
-
const ae = Y;
|
|
153
|
-
let F;
|
|
154
|
-
e[29] !== n || e[30] !== N || e[31] !== d ? (F = (a, c) => {
|
|
155
|
-
if (!c.defaultPrevented && a !== n) {
|
|
156
|
-
if (N) {
|
|
157
|
-
d?.(a);
|
|
158
|
-
return;
|
|
159
|
-
}
|
|
160
|
-
he(a);
|
|
161
|
-
}
|
|
162
|
-
}, e[29] = n, e[30] = N, e[31] = d, e[32] = F) : F = e[32];
|
|
163
|
-
const D = F;
|
|
164
|
-
let H;
|
|
165
|
-
e[33] !== n || e[34] !== D || e[35] !== o || e[36] !== u ? (H = (a) => {
|
|
166
|
-
const {
|
|
167
|
-
href: c,
|
|
168
|
-
wrapper: h
|
|
169
|
-
} = o?.[a] || {}, B = `${a + 1}`, $ = a === n, T = u("page", [B]), b = $ ? "page" : void 0, te = R(p.pageButton, {
|
|
170
|
-
[p.pageButtonActive]: $
|
|
171
|
-
}), S = (Ee) => {
|
|
172
|
-
D(a, Ee);
|
|
173
|
-
}, y = /* @__PURE__ */ v(_e, { className: te, size: "small", variant: "ghost", href: h ? void 0 : c, "aria-label": h ? void 0 : T, "aria-current": h ? void 0 : b, onClick: h ? void 0 : S, children: B });
|
|
174
|
-
return h ? fe(h, {
|
|
175
|
-
"aria-label": T,
|
|
176
|
-
"aria-current": b,
|
|
177
|
-
onClick: S,
|
|
178
|
-
children: y
|
|
179
|
-
}) : c ? y : /* @__PURE__ */ v(ve, { type: "button", className: te, "aria-label": T, "aria-current": b, size: "small", variant: "ghost", onClick: S, children: B });
|
|
180
|
-
}, e[33] = n, e[34] = D, e[35] = o, e[36] = u, e[37] = H) : H = e[37];
|
|
181
|
-
const O = H;
|
|
182
|
-
let J;
|
|
183
|
-
e[38] !== D || e[39] !== o ? (J = (a, c, h, B, $) => {
|
|
184
|
-
const {
|
|
185
|
-
href: T,
|
|
186
|
-
wrapper: b
|
|
187
|
-
} = o?.[a] || {}, te = !B && o && (T || b), S = (y) => {
|
|
188
|
-
D(a, y);
|
|
189
|
-
};
|
|
190
|
-
if (te) {
|
|
191
|
-
const y = /* @__PURE__ */ v(_e, { className: $, iconName: c, hideLabel: !0, size: "small", variant: "filled", href: b ? void 0 : T, onClick: b ? void 0 : S, children: h });
|
|
192
|
-
return b ? fe(b, {
|
|
193
|
-
children: y,
|
|
194
|
-
onClick: S
|
|
195
|
-
}) : y;
|
|
196
|
-
}
|
|
197
|
-
return /* @__PURE__ */ v(ve, { type: "button", className: $, iconName: c, disabled: B, hideLabel: !0, variant: "filled", size: "small", onClick: S, children: h });
|
|
198
|
-
}, e[38] = D, e[39] = o, e[40] = J) : J = e[40];
|
|
199
|
-
const E = J, re = de === "center", se = de === "right";
|
|
200
|
-
let K;
|
|
201
|
-
e[41] !== re || e[42] !== se ? (K = R(p.list, {
|
|
202
|
-
[p.listCenter]: re,
|
|
203
|
-
[p.listRight]: se
|
|
204
|
-
}), e[41] = re, e[42] = se, e[43] = K) : K = e[43];
|
|
205
|
-
const oe = K;
|
|
206
|
-
let X;
|
|
207
|
-
e[44] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (X = R(p.item, p.itemPrevButtonWrapper), e[44] = X) : X = e[44];
|
|
208
|
-
const le = Math.max(0, n - 1);
|
|
209
|
-
let A;
|
|
210
|
-
e[45] !== n || e[46] !== E || e[47] !== u || e[48] !== le ? (A = E(le, "chevron-left", u("previousPage"), n === 0, p.prevNextButton), e[45] = n, e[46] = E, e[47] = u, e[48] = le, e[49] = A) : A = e[49];
|
|
211
|
-
let I;
|
|
212
|
-
e[50] !== A ? (I = /* @__PURE__ */ v("li", { className: X, children: A }), e[50] = A, e[51] = I) : I = e[51];
|
|
213
|
-
let x;
|
|
214
|
-
if (e[52] !== ae || e[53] !== O) {
|
|
215
|
-
let a;
|
|
216
|
-
e[55] !== O ? (a = (c) => c.type === "page" ? /* @__PURE__ */ v("li", { className: p.item, children: O(c.pageIndex) }, `page-${c.pageIndex}`) : c.type === "ellipsis" ? /* @__PURE__ */ v("li", { className: R(p.item, p.ellipsis), "aria-hidden": "true", children: "…" }, c.id) : /* @__PURE__ */ v("li", { className: p.divider, "aria-hidden": "true" }, c.id), e[55] = O, e[56] = a) : a = e[56], x = ae.map(a), e[52] = ae, e[53] = O, e[54] = x;
|
|
217
|
-
} else
|
|
218
|
-
x = e[54];
|
|
219
|
-
let Z;
|
|
220
|
-
e[57] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Z = R(p.item, p.itemNextButtonWrapper), e[57] = Z) : Z = e[57];
|
|
221
|
-
const ce = Math.min(g - 1, n + 1);
|
|
222
|
-
let M;
|
|
223
|
-
e[58] !== n || e[59] !== E || e[60] !== u || e[61] !== ce || e[62] !== g ? (M = E(ce, "chevron-right", u("nextPage"), n >= g - 1, p.prevNextButton), e[58] = n, e[59] = E, e[60] = u, e[61] = ce, e[62] = g, e[63] = M) : M = e[63];
|
|
224
|
-
let C;
|
|
225
|
-
e[64] !== M ? (C = /* @__PURE__ */ v("li", { className: Z, children: M }), e[64] = M, e[65] = C) : C = e[65];
|
|
226
|
-
let L;
|
|
227
|
-
e[66] !== oe || e[67] !== I || e[68] !== x || e[69] !== C ? (L = /* @__PURE__ */ Ae("ul", { className: oe, children: [
|
|
228
|
-
I,
|
|
229
|
-
x,
|
|
230
|
-
C
|
|
231
|
-
] }), e[66] = oe, e[67] = I, e[68] = x, e[69] = C, e[70] = L) : L = e[70];
|
|
232
|
-
let ee;
|
|
233
|
-
return e[71] !== t || e[72] !== s || e[73] !== l || e[74] !== L ? (ee = /* @__PURE__ */ v("nav", { className: s, ...l, ...t, children: L }), e[71] = t, e[72] = s, e[73] = l, e[74] = L, e[75] = ee) : ee = e[75], ee;
|
|
234
|
-
};
|
|
235
|
-
export {
|
|
236
|
-
rt as D,
|
|
237
|
-
Pe as a,
|
|
238
|
-
we as b,
|
|
239
|
-
Ne as c,
|
|
240
|
-
Ye as d,
|
|
241
|
-
qe as e,
|
|
242
|
-
Qe as f,
|
|
243
|
-
Ge as g,
|
|
244
|
-
Ue as h,
|
|
245
|
-
be as i,
|
|
246
|
-
Fe as v
|
|
247
|
-
};
|
|
@@ -1,221 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { jsx as m, jsxs as j, Fragment as ee } from "react/jsx-runtime";
|
|
3
|
-
import { d as B } from "./index.cKLI89Eg.js";
|
|
4
|
-
import { useState as U, useRef as oe, useMemo as te, createContext as re, forwardRef as W, isValidElement as ne, cloneElement as se, useContext as ae } from "react";
|
|
5
|
-
import { u as ce, a as le, o as ie, j as pe, s as de, k as fe, b as ue, c as he, d as ve, e as me, f as $, g as ge, l as Pe, F as we, i as De } from "./floating-ui.react.Chmq0RmI.js";
|
|
6
|
-
import { c as O } from "./index.DQOqod3i.js";
|
|
7
|
-
import { g as E, c as L } from "./helpers.CexwVao7.js";
|
|
8
|
-
import { u as Se } from "./useIsomorphicLayoutEffect.CnJ9AMFS.js";
|
|
9
|
-
import { D as Ae } from "./Button.COycNYUI.js";
|
|
10
|
-
import '../assets/Popover.mL5g23EK.css';const ye = "ds-popover_popover_xg81f_5", xe = "ds-popover_popover--no-arrow_xg81f_64", _e = "ds-popover_popover--variant-grey_xg81f_67", Ce = "ds-popover_arrow_xg81f_71", Ee = "ds-popover_arrow--variant-grey_xg81f_90", be = "ds-popover_default-anchor_xg81f_107", _ = {
|
|
11
|
-
popover: ye,
|
|
12
|
-
popoverNoArrow: xe,
|
|
13
|
-
popoverVariantGrey: _e,
|
|
14
|
-
arrow: Ce,
|
|
15
|
-
arrowVariantGrey: Ee,
|
|
16
|
-
defaultAnchor: be
|
|
17
|
-
}, Ne = ({
|
|
18
|
-
initialOpen: r = !1,
|
|
19
|
-
placement: o = "bottom",
|
|
20
|
-
isOpen: e,
|
|
21
|
-
popoverOffset: n = 6,
|
|
22
|
-
showArrow: c = !0,
|
|
23
|
-
variant: p = "default",
|
|
24
|
-
defaultAnchorButtonProps: d,
|
|
25
|
-
onOpenChange: f
|
|
26
|
-
} = {}) => {
|
|
27
|
-
const [t, s] = U(r), l = e ?? t, a = f ?? s, i = oe(null), u = ce({
|
|
28
|
-
placement: o,
|
|
29
|
-
open: l,
|
|
30
|
-
strategy: "fixed",
|
|
31
|
-
onOpenChange: a,
|
|
32
|
-
whileElementsMounted: le,
|
|
33
|
-
middleware: [ie(n + (c ? 7 : 0)), pe({
|
|
34
|
-
// default configuration taken from https://floating-ui.com/docs/flip
|
|
35
|
-
crossAxis: o.includes("-"),
|
|
36
|
-
fallbackAxisSideDirection: "end",
|
|
37
|
-
padding: n
|
|
38
|
-
}), de({
|
|
39
|
-
padding: n
|
|
40
|
-
}), ...c ? [fe({
|
|
41
|
-
element: i
|
|
42
|
-
})] : []]
|
|
43
|
-
}), h = u.context, C = ue(h, {
|
|
44
|
-
enabled: !0
|
|
45
|
-
}), P = he(h), F = ve(h), w = me([C, P, F]);
|
|
46
|
-
return te(() => ({
|
|
47
|
-
open: l,
|
|
48
|
-
popoverOffset: n,
|
|
49
|
-
setOpen: a,
|
|
50
|
-
arrowRef: i,
|
|
51
|
-
showArrow: c,
|
|
52
|
-
defaultAnchorButtonProps: d,
|
|
53
|
-
variant: p,
|
|
54
|
-
...w,
|
|
55
|
-
...u
|
|
56
|
-
}), [l, n, a, i, c, d, p, w, u]);
|
|
57
|
-
}, Re = ({
|
|
58
|
-
children: r,
|
|
59
|
-
hasContent: o,
|
|
60
|
-
hasAnchor: e
|
|
61
|
-
}) => {
|
|
62
|
-
if (!r)
|
|
63
|
-
throw new Error(E("DSPopover", "A DSPopover must have children."));
|
|
64
|
-
if (!o && e)
|
|
65
|
-
throw new Error(E("DSPopover", "A DSPopover must either have no child components for its most basic usage or have both a <DSPopover.Content> and <DSPopover.Anchor> component as a child. <DSPopover.Content> is missing! Please add it to the children of DSPopover."));
|
|
66
|
-
if (!e && o)
|
|
67
|
-
throw new Error(E("DSPopover", "A DSPopover must either have no child components for its most basic usage or have both a <DSPopover.Content> and <DSPopover.Anchor> component as a child. <DSPopover.Anchor> is missing! Please add it to the children of DSPopover."));
|
|
68
|
-
}, Fe = ({
|
|
69
|
-
showArrow: r,
|
|
70
|
-
variant: o
|
|
71
|
-
}) => {
|
|
72
|
-
o === "grey" && r === !1 && console.warn(E("DSPopover", "The 'grey' variant is only available when 'showArrow' is true. To use the 'grey' variant, please ensure that 'showArrow' is set to true."));
|
|
73
|
-
}, z = re(null), q = () => {
|
|
74
|
-
const r = ae(z);
|
|
75
|
-
if (r == null)
|
|
76
|
-
throw new Error(E("DSPopover", "Components like DSPopover.Anchor or DSPopover.Content must be wrapped in <DSPopover />."));
|
|
77
|
-
return r;
|
|
78
|
-
}, v = (r) => {
|
|
79
|
-
const o = B.c(11), {
|
|
80
|
-
children: e,
|
|
81
|
-
...n
|
|
82
|
-
} = r, c = Ne({
|
|
83
|
-
...n
|
|
84
|
-
}), p = L(e, v.Content), d = L(e, v.Anchor);
|
|
85
|
-
process.env.NODE_ENV !== "production" && (Re({
|
|
86
|
-
children: e,
|
|
87
|
-
hasContent: p,
|
|
88
|
-
hasAnchor: d
|
|
89
|
-
}), Fe({
|
|
90
|
-
showArrow: n.showArrow,
|
|
91
|
-
variant: n.variant
|
|
92
|
-
}));
|
|
93
|
-
const f = !p && !d && e !== null;
|
|
94
|
-
let t;
|
|
95
|
-
o[0] !== e || o[1] !== f ? (t = f ? /* @__PURE__ */ j(ee, { children: [
|
|
96
|
-
/* @__PURE__ */ m(v.Anchor, {}),
|
|
97
|
-
/* @__PURE__ */ m(v.Content, { children: e })
|
|
98
|
-
] }) : e, o[0] = e, o[1] = f, o[2] = t) : t = o[2];
|
|
99
|
-
const s = t, l = p || f, a = d || f;
|
|
100
|
-
let i;
|
|
101
|
-
o[3] !== c || o[4] !== l || o[5] !== a ? (i = {
|
|
102
|
-
...c,
|
|
103
|
-
hasContent: l,
|
|
104
|
-
hasAnchor: a
|
|
105
|
-
}, o[3] = c, o[4] = l, o[5] = a, o[6] = i) : i = o[6];
|
|
106
|
-
const g = i;
|
|
107
|
-
let u;
|
|
108
|
-
return o[7] !== s || o[8] !== g || o[9] !== n ? (u = /* @__PURE__ */ m(z.Provider, { value: g, ...n, children: s }), o[7] = s, o[8] = g, o[9] = n, o[10] = u) : u = o[10], u;
|
|
109
|
-
}, J = W(({
|
|
110
|
-
children: r,
|
|
111
|
-
...o
|
|
112
|
-
}, e) => {
|
|
113
|
-
const {
|
|
114
|
-
context: n,
|
|
115
|
-
defaultAnchorButtonProps: c,
|
|
116
|
-
refs: p,
|
|
117
|
-
hasAnchor: d,
|
|
118
|
-
getReferenceProps: f
|
|
119
|
-
} = q(), {
|
|
120
|
-
label: t = "Toggle popover",
|
|
121
|
-
...s
|
|
122
|
-
} = c || {}, l = r ? r?.ref : null, a = $([p.setReference, e, l]);
|
|
123
|
-
return d && r && ne(r) ? se(r, f({
|
|
124
|
-
ref: a,
|
|
125
|
-
...o,
|
|
126
|
-
...r.props,
|
|
127
|
-
"data-state": n.open ? "open" : "closed"
|
|
128
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
129
|
-
})) : /* @__PURE__ */ m(
|
|
130
|
-
Ae,
|
|
131
|
-
{
|
|
132
|
-
...s,
|
|
133
|
-
ref: a,
|
|
134
|
-
type: "button",
|
|
135
|
-
"data-state": n.open ? "open" : "closed",
|
|
136
|
-
...f(o),
|
|
137
|
-
size: "small",
|
|
138
|
-
hideLabel: !0,
|
|
139
|
-
iconName: "circle-info-inverted",
|
|
140
|
-
variant: "ghost",
|
|
141
|
-
className: _.defaultAnchor,
|
|
142
|
-
children: r ?? t
|
|
143
|
-
}
|
|
144
|
-
);
|
|
145
|
-
});
|
|
146
|
-
J.displayName = "DSPopover.Anchor";
|
|
147
|
-
const K = W((r, o) => {
|
|
148
|
-
const e = B.c(39), {
|
|
149
|
-
style: n,
|
|
150
|
-
className: c,
|
|
151
|
-
classNameArrow: p,
|
|
152
|
-
children: d,
|
|
153
|
-
...f
|
|
154
|
-
} = r, {
|
|
155
|
-
context: t,
|
|
156
|
-
refs: s,
|
|
157
|
-
floatingStyles: l,
|
|
158
|
-
showArrow: a,
|
|
159
|
-
variant: i,
|
|
160
|
-
getFloatingProps: g,
|
|
161
|
-
arrowRef: u
|
|
162
|
-
} = q();
|
|
163
|
-
let h;
|
|
164
|
-
e[0] !== o || e[1] !== s.setFloating ? (h = [s.setFloating, o], e[0] = o, e[1] = s.setFloating, e[2] = h) : h = e[2];
|
|
165
|
-
const C = $(h);
|
|
166
|
-
let P;
|
|
167
|
-
e[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (P = {
|
|
168
|
-
duration: {
|
|
169
|
-
open: 250,
|
|
170
|
-
close: 250
|
|
171
|
-
}
|
|
172
|
-
}, e[3] = P) : P = e[3];
|
|
173
|
-
const {
|
|
174
|
-
isMounted: F,
|
|
175
|
-
status: w
|
|
176
|
-
} = ge(t, P), [Q, X] = U(null);
|
|
177
|
-
let b;
|
|
178
|
-
e[4] !== s.reference.current ? (b = () => {
|
|
179
|
-
const I = s.reference.current?.closest("dialog");
|
|
180
|
-
X(I instanceof HTMLDialogElement ? I : null);
|
|
181
|
-
}, e[4] = s.reference.current, e[5] = b) : b = e[5];
|
|
182
|
-
let N;
|
|
183
|
-
if (e[6] !== t.open || e[7] !== s.reference ? (N = [s.reference, t.open], e[6] = t.open, e[7] = s.reference, e[8] = N) : N = e[8], Se(b, N), !F)
|
|
184
|
-
return null;
|
|
185
|
-
const T = De, V = Q ?? void 0, G = we, Y = !1;
|
|
186
|
-
let D;
|
|
187
|
-
e[9] !== l || e[10] !== n ? (D = {
|
|
188
|
-
...l,
|
|
189
|
-
...n
|
|
190
|
-
}, e[9] = l, e[10] = n, e[11] = D) : D = e[11];
|
|
191
|
-
const k = !a, M = i === "grey" && a;
|
|
192
|
-
let S;
|
|
193
|
-
e[12] !== c || e[13] !== k || e[14] !== M ? (S = O(_.popover, c, {
|
|
194
|
-
[_.popoverNoArrow]: k,
|
|
195
|
-
[_.popoverVariantGrey]: M
|
|
196
|
-
}), e[12] = c, e[13] = k, e[14] = M, e[15] = S) : S = e[15];
|
|
197
|
-
const Z = t.placement, H = g(f);
|
|
198
|
-
let A;
|
|
199
|
-
e[16] !== u || e[17] !== p || e[18] !== t || e[19] !== a || e[20] !== i ? (A = a && /* @__PURE__ */ m(Pe, { ref: u, context: t, className: O(_.arrow, p, {
|
|
200
|
-
[_.arrowVariantGrey]: i === "grey" && a
|
|
201
|
-
}), strokeWidth: 1, tipRadius: 1, width: 16, height: 7 }), e[16] = u, e[17] = p, e[18] = t, e[19] = a, e[20] = i, e[21] = A) : A = e[21];
|
|
202
|
-
let y;
|
|
203
|
-
e[22] !== d || e[23] !== t.placement || e[24] !== C || e[25] !== w || e[26] !== S || e[27] !== H || e[28] !== A || e[29] !== D ? (y = /* @__PURE__ */ j("div", { ref: C, style: D, className: S, "data-placement": Z, "data-status": w, ...H, children: [
|
|
204
|
-
A,
|
|
205
|
-
d
|
|
206
|
-
] }), e[22] = d, e[23] = t.placement, e[24] = C, e[25] = w, e[26] = S, e[27] = H, e[28] = A, e[29] = D, e[30] = y) : y = e[30];
|
|
207
|
-
let x;
|
|
208
|
-
e[31] !== G || e[32] !== t || e[33] !== y ? (x = /* @__PURE__ */ m(G, { context: t, modal: Y, children: y }), e[31] = G, e[32] = t, e[33] = y, e[34] = x) : x = e[34];
|
|
209
|
-
let R;
|
|
210
|
-
return e[35] !== T || e[36] !== x || e[37] !== V ? (R = /* @__PURE__ */ m(T, { root: V, children: x }), e[35] = T, e[36] = x, e[37] = V, e[38] = R) : R = e[38], R;
|
|
211
|
-
});
|
|
212
|
-
K.displayName = "DSPopover.Content";
|
|
213
|
-
v.Anchor = J;
|
|
214
|
-
v.Content = K;
|
|
215
|
-
v.displayName = "DSPopover";
|
|
216
|
-
export {
|
|
217
|
-
v as D,
|
|
218
|
-
Fe as a,
|
|
219
|
-
Ne as u,
|
|
220
|
-
Re as v
|
|
221
|
-
};
|