@stihl-design-system/components 1.0.0-RC.32 → 1.0.0-RC.35
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/accordion.Dmqocj97.js +12 -0
- package/actionbutton.Du5CT-Mt.js +12 -0
- package/actionlink.BK9CaQUY.js +12 -0
- package/{arialiveregions.Fgcshs5k.js → arialiveregions.BUVY9NpY.js} +2 -2
- package/assets/Accordion.CzBGud45.css +1 -0
- package/assets/Button.CmeGVEAY.css +1 -0
- package/assets/Checkbox.CyOw3rXI.css +1 -0
- package/assets/CustomReactSelect.BihX36Uo.css +1 -0
- package/assets/Dialog.DJkn65Es.css +1 -0
- package/assets/Drawer.x3BCQvWE.css +1 -0
- package/assets/Fieldset.Oqu7pOBv.css +1 -0
- package/assets/InputFile.D7Ihod7B.css +1 -0
- package/assets/InputNumber.z_UqRYdv.css +1 -0
- package/assets/InputPassword.DZENjxJ9.css +1 -0
- package/assets/InputSearch.GBH9Eh6F.css +1 -0
- package/assets/LinkButton.88j5ckLu.css +1 -0
- package/assets/{MegaMenu.DX9gChtY.css → MegaMenu.D5EtjFeL.css} +1 -1
- package/assets/Notification.CvohYEvT.css +1 -0
- package/assets/Select.CL0fqx7X.css +1 -0
- package/assets/Slider.DWLuIsNj.css +1 -0
- package/assets/Stepper.tXJl15yL.css +1 -0
- package/assets/{SystemFeedback.RcrPepSZ.css → SystemFeedback.PKzqnXUe.css} +1 -1
- package/assets/Textarea.B1HOakic.css +1 -0
- package/assets/Toast.CGyKXb4V.css +1 -0
- package/assets/buttonround.DBpMesfr.css +1 -0
- package/assets/input.RPDR8qdT.css +1 -0
- package/assets/step.BeLporJO.css +1 -0
- package/assets/switch.B9B-n_3y.css +1 -0
- package/{asterisk.CR60hx8S.js → asterisk.B2ih8VwF.js} +1 -1
- package/{banner.o4Etkjjo.js → banner.D-RX60nJ.js} +3 -3
- package/breadcrumb.tvMByFgp.js +11 -0
- package/button.CZupaV9L.js +12 -0
- package/buttonround.9IS0tUqw.js +96 -0
- package/checkbox.XYQI-ubx.js +12 -0
- package/checkboxgroup.CjnNJ8e6.js +9 -0
- package/chip.B-pxhsdb.js +12 -0
- package/chipgroup.cGjn4LVV.js +143 -0
- package/chunks/Accordion.CYIfNOWr.js +168 -0
- package/chunks/{ActionButton.DdDesD7K.js → ActionButton.BOYQYo5M.js} +37 -37
- package/chunks/{ActionLink.DqAsPYda.js → ActionLink.BlwvrnPN.js} +36 -36
- package/chunks/{AriaLiveRegions.utils.Cb327d_2.js → AriaLiveRegions.utils.CybNIBSa.js} +2 -2
- package/chunks/{Breadcrumb.9KinNuyQ.js → Breadcrumb.Qr6bDP2N.js} +35 -37
- package/chunks/Button.Cn5yg7dG.js +138 -0
- package/chunks/Checkbox.D5X5T6Yg.js +88 -0
- package/chunks/CheckboxGroup.CUR_0VMc.js +74 -0
- package/chunks/{Chip.BrbYu6i_.js → Chip.DIp5hdRH.js} +6 -6
- package/chunks/{CustomReactSelect.Cqq70QC0.js → CustomReactSelect.BA3hUVkh.js} +897 -878
- package/chunks/Dialog.DRk_jSj5.js +102 -0
- package/chunks/Drawer.Dj6WeUC8.js +107 -0
- package/chunks/Fieldset.C0RzpI-h.js +81 -0
- package/chunks/Header.18sOO0Gf.js +370 -0
- package/chunks/{Icon.NSsVrYeq.js → Icon.CDLyB7Pv.js} +77 -79
- package/chunks/{Input.utils.Cnnzvuk4.js → Input.utils.CL1u4Ctq.js} +30 -28
- package/chunks/InputFile.Bki3bs3U.js +236 -0
- package/chunks/InputNumber.B43cqBH0.js +242 -0
- package/chunks/InputPassword.DcdMjsXr.js +121 -0
- package/chunks/InputSearch.CJm6ph8W.js +149 -0
- package/chunks/LinkButton.C6F-yuLL.js +139 -0
- package/chunks/MegaMenu.qttkjGbD.js +188 -0
- package/chunks/NavigationTabList.G_l0GiUa.js +67 -0
- package/chunks/{NavigationTabs.DspPFHPh.js → NavigationTabs.CQxlahX1.js} +13 -14
- package/chunks/Notification.Qzz88ngL.js +91 -0
- package/chunks/Popover.D7McfVaH.js +214 -0
- package/chunks/RadioGroup.B2VCD9x-.js +106 -0
- package/chunks/Select.B0uMOSSD.js +147 -0
- package/chunks/Slider.YTIktxxD.js +306 -0
- package/chunks/Stepper.BvPmbbqw.js +152 -0
- package/chunks/{SystemFeedback.CyGbUCzT.js → SystemFeedback.CjlARKki.js} +9 -9
- package/chunks/Tabs.CoO_lrhV.js +83 -0
- package/chunks/{Text.DGWeWF1y.js → Text.DpRtTpB4.js} +3 -3
- package/chunks/Textarea.lYiPXerd.js +181 -0
- package/chunks/Toast.L5HAuEOn.js +76 -0
- package/chunks/{arrow-clockwise.BefOjGPg.js → arrow-clockwise.C4iOgjOc.js} +1 -1
- package/chunks/{arrow-counterclockwise.C7Ov32BZ.js → arrow-counterclockwise.CgQAuBUe.js} +1 -1
- package/chunks/{circle-check-colored.Bye_GwLy.js → circle-check-colored.qP2s3vjI.js} +1 -1
- package/chunks/{diamond-exclamationmark-colored.WNKYwZ8q.js → diamond-exclamationmark-colored.CzYiaTZ0.js} +1 -1
- package/chunks/feather.l1E4nFBx.js +10 -0
- package/chunks/file-type-doc.B_RSSYbu.js +10 -0
- package/chunks/floating-ui.react.COTL3jH5.js +2984 -0
- package/chunks/helpers.CexwVao7.js +38 -0
- package/chunks/{index.CgTHIF3K.js → index.D-sRdssb.js} +1 -1
- package/chunks/{index.CEyLAtio.js → index.DL9mof6u.js} +2 -2
- package/chunks/{is-animation-disabled.CUl4N3LI.js → is-animation-disabled.B-V_68K-.js} +5 -5
- package/chunks/{map.CXgG1iGz.js → map.DNl7PF61.js} +1 -1
- package/chunks/moon.5yILPYXs.js +10 -0
- package/chunks/muscle.DbNjWasV.js +10 -0
- package/chunks/petrol.BGWwCsTw.js +10 -0
- package/chunks/sun.CY6ttzTL.js +10 -0
- package/chunks/{triangle-exclamationmark-colored.CbVC3Gzi.js → triangle-exclamationmark-colored.e93zvQ6Q.js} +1 -1
- package/chunks/upload.BogDfonx.js +10 -0
- package/chunks/useBreakpoint.1txsny17.js +45 -0
- package/chunks/variants.-R3_RCW8.js +10 -0
- package/chunks/weight.DUPu2UT0.js +10 -0
- package/combobox.CGEDlMo0.js +71 -0
- package/components/Button/Button.d.ts +5 -0
- package/components/Button/Button.utils.d.ts +4 -5
- package/components/CheckboxGroup/CheckboxGroup.d.ts +14 -1
- package/components/ChipGroup/ChipGroup.utils.d.ts +1 -3
- package/components/Combobox/Combobox.utils.d.ts +6 -6
- package/components/Combobox/CustomReactSelect/CustomReactSelect.d.ts +17 -2
- package/components/Fieldset/Fieldset.d.ts +14 -1
- package/components/Input/Input.d.ts +13 -0
- package/components/Input/Input.utils.d.ts +2 -2
- package/components/InputFile/InputFile.d.ts +13 -0
- package/components/InputFile/InputFile.utils.d.ts +4 -2
- package/components/{InputStepper/InputStepper.d.ts → InputNumber/InputNumber.d.ts} +21 -8
- package/components/InputNumber/InputNumber.utils.d.ts +13 -0
- package/components/InputPassword/InputPassword.d.ts +13 -0
- package/components/InputPassword/InputPassword.utils.d.ts +2 -2
- package/components/InputSearch/InputSearch.d.ts +13 -0
- package/components/InputSearch/InputSearch.utils.d.ts +2 -2
- package/components/LinkButton/LinkButton.d.ts +5 -0
- package/components/LinkButton/LinkButton.utils.d.ts +4 -5
- package/components/RadioGroup/RadioGroup.d.ts +13 -0
- package/components/Scroller/Scroller.d.ts +6 -2
- package/components/Select/Select.d.ts +13 -0
- package/components/Select/Select.utils.d.ts +2 -2
- package/components/Slider/Slider.d.ts +13 -0
- package/components/Stepper/Step.d.ts +33 -0
- package/components/Stepper/Step.utils.d.ts +5 -0
- package/components/Stepper/Stepper.d.ts +56 -0
- package/components/Stepper/Stepper.test.d.ts +1 -0
- package/components/Stepper/Stepper.utils.d.ts +30 -0
- package/components/Stepper/Stepper.utils.test.d.ts +1 -0
- package/components/Textarea/Textarea.d.ts +13 -0
- package/components/Textarea/Textarea.utils.d.ts +2 -2
- package/customreactselect.BgYf8rKE.js +15 -0
- package/dialog.Bq-ZyzR8.js +9 -0
- package/drawer.DL5UzLWf.js +9 -0
- package/fieldset.BFLW2D9H.js +12 -0
- package/{filelist.BiKMKCyg.js → filelist.BG6SGVJ8.js} +23 -24
- package/{flag.72PONA83.js → flag.CE32qHPa.js} +3 -3
- package/{floatingactionbutton.B2YChsNU.js → floatingactionbutton.B5hJ2At2.js} +5 -5
- package/header.A77yIAH3.js +12 -0
- package/{heading.BXFBZhKv.js → heading.DHLpT4dc.js} +2 -2
- package/icon.vzkPwgjZ.js +9 -0
- package/index.d.ts +4 -2
- package/index.es.js +218 -206
- package/input.hBWqQr3X.js +190 -0
- package/inputfile.BSZuRujU.js +18 -0
- package/inputnumber.CA4JiUmq.js +17 -0
- package/inputnumber.d.ts +2 -0
- package/inputpassword.Cju_crMi.js +13 -0
- package/inputsearch.CU9AhVVv.js +15 -0
- package/{link.DbnvsD3j.js → link.DoiK003-.js} +5 -5
- package/linkbutton.CWco_B7v.js +12 -0
- package/{logo.C96KaG1P.js → logo.DprmD8HU.js} +3 -3
- package/{logo100years.BcB6_c-o.js → logo100years.DDzCrczW.js} +11 -11
- package/megamenu.BurL9MfF.js +12 -0
- package/navigationtablist.CkkLyHrM.js +10 -0
- package/navigationtabs.zhRZHjgs.js +9 -0
- package/notification.BiXdWNo7.js +10 -0
- package/{numberindicator.Ddf3ESi7.js → numberindicator.BdnPMogE.js} +2 -2
- package/{optioncheckbox.DqfXuPdi.js → optioncheckbox.nBVwGv6c.js} +3 -3
- package/package.json +42 -50
- package/partials/index.js +54 -48
- package/partials/lib/partials.d.ts +1 -1
- package/popover.79Voiadz.js +12 -0
- package/{radio.7_N_alaS.js → radio.DHUfSPai.js} +2 -2
- package/radiogroup.CwBh7u9L.js +11 -0
- package/scroller.IpfbFV8B.js +98 -0
- package/select.NHaEtX_u.js +14 -0
- package/{skiptocontent.BSCde5hT.js → skiptocontent.X4USTODk.js} +4 -4
- package/slider.jnNGEyBq.js +12 -0
- package/{spinner.BUjhjAvw.js → spinner.C9qCeq0R.js} +18 -18
- package/step.D5p7qppy.js +82 -0
- package/step.d.ts +6 -0
- package/stepper.DnMc4ex6.js +16 -0
- package/stepper.d.ts +2 -0
- package/styles/scss/ds/lib/ds-internal/_input.scss +12 -3
- package/styles/scss/ds/lib/ds-internal/_link-button.scss +10 -2
- package/styles/scss/ds/lib/link-button.scss +11 -3
- package/{switch.D7BCfyyZ.js → switch.Bqdyzi2E.js} +5 -5
- package/systemfeedback.O7tj1juR.js +10 -0
- package/tablist.BFE6RAPD.js +209 -0
- package/{tabpane.CB-eudyw.js → tabpane.C4nsUlwc.js} +2 -2
- package/tabs.CsOxxQyQ.js +11 -0
- package/text.cLv2PhjQ.js +10 -0
- package/textarea.C9OAAjhG.js +14 -0
- package/{title.Bz_k5Vda.js → title.DuLPB-VK.js} +2 -2
- package/toast.OBI9qnAM.js +11 -0
- package/toastmanager.CgsA-1y_.js +89 -0
- package/tooltip.Cj3AvYgB.js +177 -0
- package/topbar.CAujTZAE.js +12 -0
- package/types/icon-types.d.ts +1 -1
- package/utils/index.d.ts +1 -0
- package/utils/mergeRefs.d.ts +5 -0
- package/utils/mergeRefs.test.d.ts +1 -0
- package/utils/useIsomorphicLayoutEffect.d.ts +2 -2
- package/accordion.HfUSDwQJ.js +0 -12
- package/actionbutton.kgd0E_xF.js +0 -12
- package/actionlink.CwC42RWc.js +0 -12
- package/assets/Accordion.BJb4TOG0.css +0 -1
- package/assets/Button.Dw8H5nFS.css +0 -1
- package/assets/Checkbox.BKHQN_tu.css +0 -1
- package/assets/CustomReactSelect.DGIItWIh.css +0 -1
- package/assets/Dialog.CGAg7bnN.css +0 -1
- package/assets/Drawer.VOvWQoEr.css +0 -1
- package/assets/Fieldset.CW9dBvAo.css +0 -1
- package/assets/InputFile.CCQxsulT.css +0 -1
- package/assets/InputPassword.124xVOiO.css +0 -1
- package/assets/InputSearch.Bkg-1urJ.css +0 -1
- package/assets/InputStepper.DvFJk1Mi.css +0 -1
- package/assets/LinkButton.xMvg_ojf.css +0 -1
- package/assets/Notification.BOuaA5GT.css +0 -1
- package/assets/Select.C1gWF32A.css +0 -1
- package/assets/Slider.Bidyhb-B.css +0 -1
- package/assets/Textarea.Dq4rH9Tg.css +0 -1
- package/assets/Toast.CJ1zhDIT.css +0 -1
- package/assets/buttonround.Cw9hnUan.css +0 -1
- package/assets/input.CUjGh-UM.css +0 -1
- package/assets/switch.Bc9KIyw9.css +0 -1
- package/breadcrumb.BsQm0kUD.js +0 -11
- package/button.Dyy6ajX6.js +0 -13
- package/buttonround.ChKWHzsv.js +0 -96
- package/checkbox.BNnp4ztM.js +0 -12
- package/checkboxgroup.BTVnKenc.js +0 -9
- package/chip.C7NstOHt.js +0 -12
- package/chipgroup.Zo1-IOCn.js +0 -210
- package/chunks/Accordion.CnqryAUu.js +0 -170
- package/chunks/Button.Cf1CKq8N.js +0 -142
- package/chunks/Checkbox.CiwriItT.js +0 -88
- package/chunks/CheckboxGroup.Cj68J6Ee.js +0 -72
- package/chunks/Dialog.Bv7k55He.js +0 -135
- package/chunks/Drawer.BVTvx276.js +0 -140
- package/chunks/Fieldset.D7cLR5ze.js +0 -74
- package/chunks/Header.um5MlziB.js +0 -377
- package/chunks/InputFile.bVWWdePn.js +0 -220
- package/chunks/InputPassword.Da3hEKTc.js +0 -136
- package/chunks/InputSearch.GOYqFCcZ.js +0 -174
- package/chunks/InputStepper.BuhPtfl-.js +0 -268
- package/chunks/LinkButton.59oNDwPU.js +0 -132
- package/chunks/MegaMenu._o3nNDAa.js +0 -192
- package/chunks/NavigationTabList.DuT7gzhj.js +0 -57
- package/chunks/Notification.Pts2oh0R.js +0 -92
- package/chunks/Popover.BRR8YZ-P.js +0 -228
- package/chunks/RadioGroup.DeTz3c19.js +0 -104
- package/chunks/Select.D2ehd4yN.js +0 -162
- package/chunks/Slider.84lkgq3W.js +0 -292
- package/chunks/Tabs.C8ADTzJ0.js +0 -83
- package/chunks/Textarea.Cw85sxHL.js +0 -163
- package/chunks/Toast.DG3WVvau.js +0 -76
- package/chunks/file-type-doc.DlovDOBh.js +0 -10
- package/chunks/floating-ui.dom.VgHc0h4l.js +0 -989
- package/chunks/floating-ui.react.DCyAzlZ4.js +0 -2011
- package/chunks/helpers.BbWkXTr3.js +0 -37
- package/chunks/petrol.Du6qAgp0.js +0 -10
- package/chunks/upload.ZImTAIgx.js +0 -10
- package/chunks/useBreakpoint.CMOR9ZOB.js +0 -44
- package/combobox.orZ3z8CB.js +0 -60
- package/components/InputStepper/InputStepper.utils.d.ts +0 -13
- package/customreactselect.Np-RpzvU.js +0 -14
- package/dialog.D4rcbW6A.js +0 -10
- package/drawer.BCCB3Rkj.js +0 -10
- package/fieldset.ZLs9IGpE.js +0 -11
- package/header.DUbn3BZt.js +0 -12
- package/icon.CHVAZr5T.js +0 -9
- package/input.DG20x6gh.js +0 -203
- package/inputfile.Dc56lQ4t.js +0 -17
- package/inputpassword.znFHRLsI.js +0 -13
- package/inputsearch.B1G6rfVk.js +0 -14
- package/inputstepper.d.ts +0 -2
- package/inputstepper.o6rdM_CW.js +0 -16
- package/linkbutton.DU8Ih8ZF.js +0 -12
- package/megamenu.CPH8EeFF.js +0 -12
- package/navigationtablist.C0iwsAad.js +0 -9
- package/navigationtabs.JjJtbuUe.js +0 -9
- package/notification.Ds_Q7ifk.js +0 -10
- package/popover.B72W0OvU.js +0 -12
- package/radiogroup.C_3IcNBq.js +0 -11
- package/scroller.CQxmQU6U.js +0 -123
- package/select.Ceyt-zvu.js +0 -13
- package/slider.Dq2dcziy.js +0 -11
- package/systemfeedback.CSdWOWuf.js +0 -10
- package/tablist.V7DBklhE.js +0 -256
- package/tabs.DQNLPAEN.js +0 -11
- package/text.ZOUuesnU.js +0 -10
- package/textarea.CixKeQBp.js +0 -13
- package/toast.D8QprMCa.js +0 -11
- package/toastmanager.BSVjYsg9.js +0 -116
- package/tooltip.CUCSRXd3.js +0 -191
- package/topbar.CVhJy-Br.js +0 -12
- /package/components/{InputStepper/InputStepper.test.d.ts → InputNumber/InputNumber.test.d.ts} +0 -0
- /package/components/{InputStepper/InputStepper.utils.test.d.ts → InputNumber/InputNumber.utils.test.d.ts} +0 -0
|
@@ -0,0 +1,209 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsxs as k, jsx as h } from "react/jsx-runtime";
|
|
3
|
+
import { c as D } from "./chunks/index.DL9mof6u.js";
|
|
4
|
+
import { useState as E, useRef as v, useEffect as ot } from "react";
|
|
5
|
+
import { g as f, i as C } from "./chunks/is-animation-disabled.B-V_68K-.js";
|
|
6
|
+
import { h as nt } from "./chunks/has-window.ut_-aShB.js";
|
|
7
|
+
import { g as st } from "./chunks/helpers.CexwVao7.js";
|
|
8
|
+
import { u as W } from "./chunks/useIsomorphicLayoutEffect.CnJ9AMFS.js";
|
|
9
|
+
import "./chunks/index.D-sRdssb.js";
|
|
10
|
+
import { D as X } from "./chunks/Button.Cn5yg7dG.js";
|
|
11
|
+
import { D as ct } from "./chunks/Icon.CDLyB7Pv.js";
|
|
12
|
+
import { NumberIndicator as it } from "./numberindicator.BdnPMogE.js";
|
|
13
|
+
import { g as at, a as j } from "./chunks/TabPane.utils.DG16Y2uD.js";
|
|
14
|
+
import { s as i, N as lt } from "./chunks/NavigationTabList.G_l0GiUa.js";
|
|
15
|
+
const g = 48, yt = ({
|
|
16
|
+
aria: q,
|
|
17
|
+
id: L,
|
|
18
|
+
selectedTabIndex: n,
|
|
19
|
+
setSelectedTabIndex: F,
|
|
20
|
+
tabs: l,
|
|
21
|
+
alignment: I = "left",
|
|
22
|
+
className: G,
|
|
23
|
+
defaultSelectedTabIndex: Q = 0,
|
|
24
|
+
isNavigation: y,
|
|
25
|
+
onTabChange: z,
|
|
26
|
+
...J
|
|
27
|
+
}) => {
|
|
28
|
+
const [A, u] = E(Q), [U, V] = E(!1), [Y, Z] = E(!1), m = v([]), p = v(null), c = v(null), a = v(null), w = v(!1), H = v(n), T = () => {
|
|
29
|
+
P(), x();
|
|
30
|
+
};
|
|
31
|
+
W(() => {
|
|
32
|
+
const e = new ResizeObserver(T);
|
|
33
|
+
return c.current && e.observe(c.current), () => {
|
|
34
|
+
e.disconnect();
|
|
35
|
+
};
|
|
36
|
+
}, []), W(() => {
|
|
37
|
+
const e = [
|
|
38
|
+
"18px 'STIHL Contraface Digital Text Regular'",
|
|
39
|
+
// utility large - Tab
|
|
40
|
+
"18px 'STIHL Contraface Digital Text Bold'",
|
|
41
|
+
// utility large bold - Tab active
|
|
42
|
+
"14px 'STIHL Contraface Digital Text Demi'"
|
|
43
|
+
// utility small demi - Number indicator
|
|
44
|
+
];
|
|
45
|
+
Promise.all(e.map((o) => document.fonts.load(o))).then(() => {
|
|
46
|
+
N(n), R("next", n, "instant"), P(), w.current = !0;
|
|
47
|
+
}).catch((o) => {
|
|
48
|
+
throw new Error(st("DSTabs", `The component requires the fonts to be loaded: ${o}`));
|
|
49
|
+
});
|
|
50
|
+
const t = () => {
|
|
51
|
+
!w.current || !a.current || (r.matches ? a.current.style.transitionDuration = "0s" : a.current.style.transitionDuration = "");
|
|
52
|
+
}, r = window.matchMedia("(prefers-reduced-motion: reduce)");
|
|
53
|
+
return r.addEventListener("change", t), c.current?.addEventListener("scroll", T), () => {
|
|
54
|
+
r.removeEventListener("change", t), c.current?.removeEventListener("scroll", T);
|
|
55
|
+
};
|
|
56
|
+
}, [l, I]), W(() => {
|
|
57
|
+
if (w.current && (N(n), y)) {
|
|
58
|
+
const e = M(n);
|
|
59
|
+
u(n), R(e, n);
|
|
60
|
+
}
|
|
61
|
+
H.current = n;
|
|
62
|
+
}, [n]), ot(() => {
|
|
63
|
+
w.current && m.current[A]?.focus();
|
|
64
|
+
}, [A]);
|
|
65
|
+
const b = (e) => {
|
|
66
|
+
const t = M(e);
|
|
67
|
+
F(e), u(e), R(t, e), z && z(e);
|
|
68
|
+
}, M = (e) => {
|
|
69
|
+
const t = f(c.current), r = f(m.current[e]);
|
|
70
|
+
let o = "next";
|
|
71
|
+
return r.left - g < t.left ? o = "prev" : r.right + g > t.right ? o = "next" : o = n < e ? "next" : "prev", o;
|
|
72
|
+
}, P = () => {
|
|
73
|
+
if (c.current && p.current) {
|
|
74
|
+
const e = f(c.current), t = f(p.current);
|
|
75
|
+
V(t.left < e.left), Z(t.right > e.right + 4);
|
|
76
|
+
}
|
|
77
|
+
}, O = (e = 0) => {
|
|
78
|
+
nt && a.current && !C() && setTimeout(() => {
|
|
79
|
+
a.current && (a.current.style.transitionDuration = "250ms");
|
|
80
|
+
}, e);
|
|
81
|
+
}, x = () => {
|
|
82
|
+
a.current && (a.current.style.transitionDuration = "0s", N(H.current), O());
|
|
83
|
+
}, N = (e) => {
|
|
84
|
+
const t = a.current, r = f(m.current[e]), o = f(p.current), s = r.left - o.left;
|
|
85
|
+
t && (w.current ? (t.style.width = `${r.width}px`, t.style.transform = `translateX(${s}px)`) : (t.style.transitionDuration = "0s", t.style.transform = `translateX(${s}px)`, t.style.width = `${r.width}px`, O(50)));
|
|
86
|
+
}, _ = (e, t) => {
|
|
87
|
+
let r;
|
|
88
|
+
switch (e.key) {
|
|
89
|
+
case "ArrowLeft":
|
|
90
|
+
r = (t > 0 ? t : l.length) - 1, u(r);
|
|
91
|
+
break;
|
|
92
|
+
case "ArrowRight":
|
|
93
|
+
r = (t + 1) % l.length, u(r);
|
|
94
|
+
break;
|
|
95
|
+
case "Home":
|
|
96
|
+
r = 0, u(r);
|
|
97
|
+
break;
|
|
98
|
+
case "End":
|
|
99
|
+
r = l.length - 1, u(r);
|
|
100
|
+
break;
|
|
101
|
+
case "Enter":
|
|
102
|
+
case " ":
|
|
103
|
+
b(t);
|
|
104
|
+
return;
|
|
105
|
+
default:
|
|
106
|
+
return;
|
|
107
|
+
}
|
|
108
|
+
if (r !== void 0) {
|
|
109
|
+
const o = r > t ? "next" : "prev";
|
|
110
|
+
setTimeout(() => R(o, r), 0);
|
|
111
|
+
}
|
|
112
|
+
e.preventDefault();
|
|
113
|
+
}, tt = (e, t) => {
|
|
114
|
+
let r;
|
|
115
|
+
switch (e.key) {
|
|
116
|
+
case "Tab":
|
|
117
|
+
if (e.shiftKey) {
|
|
118
|
+
r = t - 1 < 0 ? 0 : t - 1, u(r), t !== 0 && e.preventDefault();
|
|
119
|
+
break;
|
|
120
|
+
} else
|
|
121
|
+
r = t + 1 > l.length - 1 ? t : t + 1, u(r), t !== l.length - 1 && e.preventDefault();
|
|
122
|
+
break;
|
|
123
|
+
case "Enter":
|
|
124
|
+
b(t);
|
|
125
|
+
return;
|
|
126
|
+
default:
|
|
127
|
+
return;
|
|
128
|
+
}
|
|
129
|
+
if (r !== void 0) {
|
|
130
|
+
const o = r > t ? "next" : "prev";
|
|
131
|
+
setTimeout(() => R(o, r), 0);
|
|
132
|
+
}
|
|
133
|
+
}, R = (e, t, r = "smooth") => {
|
|
134
|
+
const o = m.current[t], s = c.current, d = f(o), S = f(s);
|
|
135
|
+
let B;
|
|
136
|
+
if (!(!o || !s)) {
|
|
137
|
+
if (e === "prev") {
|
|
138
|
+
if (d.left - g > S.left)
|
|
139
|
+
return;
|
|
140
|
+
B = o.offsetLeft - g;
|
|
141
|
+
} else {
|
|
142
|
+
if (d.right + g < S.right)
|
|
143
|
+
return;
|
|
144
|
+
B = o.offsetLeft + o.offsetWidth - S.width + g;
|
|
145
|
+
}
|
|
146
|
+
s.scrollTo({
|
|
147
|
+
left: B,
|
|
148
|
+
behavior: C() ? "instant" : r
|
|
149
|
+
});
|
|
150
|
+
}
|
|
151
|
+
}, $ = (e) => {
|
|
152
|
+
const t = et(e);
|
|
153
|
+
c.current?.scrollTo({
|
|
154
|
+
left: t,
|
|
155
|
+
behavior: C() ? "instant" : "smooth"
|
|
156
|
+
});
|
|
157
|
+
}, et = (e) => {
|
|
158
|
+
if (!p.current || !c.current)
|
|
159
|
+
return 0;
|
|
160
|
+
const {
|
|
161
|
+
scrollLeft: t,
|
|
162
|
+
offsetWidth: r
|
|
163
|
+
} = c.current, o = Math.round(r * 0.2);
|
|
164
|
+
return e === "next" ? t + o : t - o;
|
|
165
|
+
}, K = D(i.scroller, {
|
|
166
|
+
[i.scrollerCentered]: I === "center"
|
|
167
|
+
}), rt = y ? "nav" : "div";
|
|
168
|
+
return /* @__PURE__ */ k("div", { className: D(i.tabsWrapper, G), ...J, children: [
|
|
169
|
+
/* @__PURE__ */ k(rt, { className: i.scrollWrapper, ref: c, ...q, children: [
|
|
170
|
+
y ? /* @__PURE__ */ h(lt, { tabs: l, tabRefs: m, scrollerRef: p, handleNavigationKeydown: tt, scrollerClass: K, selectedTabIndex: n, setSelectedTab: b }) : /* @__PURE__ */ h("div", { role: "tablist", className: K, ref: p, children: l.map(({
|
|
171
|
+
id: e,
|
|
172
|
+
label: t,
|
|
173
|
+
iconName: r,
|
|
174
|
+
numberIndicatorValue: o
|
|
175
|
+
}, s) => /* @__PURE__ */ k(
|
|
176
|
+
"button",
|
|
177
|
+
{
|
|
178
|
+
id: j(L, e),
|
|
179
|
+
role: "tab",
|
|
180
|
+
"aria-selected": n === s,
|
|
181
|
+
"aria-controls": at(L, e, s),
|
|
182
|
+
tabIndex: n === s ? 0 : -1,
|
|
183
|
+
className: i.tab,
|
|
184
|
+
ref: (d) => {
|
|
185
|
+
m.current[s] = d;
|
|
186
|
+
},
|
|
187
|
+
onClick: () => b(s),
|
|
188
|
+
onKeyDown: (d) => _(d, s),
|
|
189
|
+
children: [
|
|
190
|
+
r && /* @__PURE__ */ h(ct, { name: r, "aria-hidden": "true" }),
|
|
191
|
+
t,
|
|
192
|
+
o && /* @__PURE__ */ h(it, { label: o })
|
|
193
|
+
]
|
|
194
|
+
},
|
|
195
|
+
j(L, e)
|
|
196
|
+
)) }),
|
|
197
|
+
/* @__PURE__ */ h("span", { className: i.indicator, ref: a })
|
|
198
|
+
] }),
|
|
199
|
+
/* @__PURE__ */ h(X, { variant: "filled", className: D(i.scrollButton, {
|
|
200
|
+
[i.scrollButtonHidden]: !U
|
|
201
|
+
}), hideLabel: !0, iconName: "chevron-left", tabIndex: -1, size: "small", onClick: () => $("prev"), children: "Left" }),
|
|
202
|
+
/* @__PURE__ */ h(X, { variant: "filled", className: D(i.scrollButton, i.scrollButtonRight, {
|
|
203
|
+
[i.scrollButtonHidden]: !Y
|
|
204
|
+
}), hideLabel: !0, iconName: "chevron-right", tabIndex: -1, size: "small", onClick: () => $("next"), children: "Right" })
|
|
205
|
+
] });
|
|
206
|
+
};
|
|
207
|
+
export {
|
|
208
|
+
yt as TabList
|
|
209
|
+
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as h } from "react/jsx-runtime";
|
|
3
|
-
import { d as T } from "./chunks/index.
|
|
4
|
-
import { c as g } from "./chunks/index.
|
|
3
|
+
import { d as T } from "./chunks/index.D-sRdssb.js";
|
|
4
|
+
import { c as g } from "./chunks/index.DL9mof6u.js";
|
|
5
5
|
import { useRef as y, useState as F, useEffect as N } from "react";
|
|
6
6
|
import { c as P, g as v, a as R } from "./chunks/TabPane.utils.DG16Y2uD.js";
|
|
7
7
|
import './assets/tabpane.D1LTb432.css';const S = "ds-tabs_tabpane_30tnb_1", j = {
|
package/tabs.CsOxxQyQ.js
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import "react/jsx-runtime";
|
|
3
|
+
import "./chunks/index.D-sRdssb.js";
|
|
4
|
+
import "react";
|
|
5
|
+
import "./tablist.BFE6RAPD.js";
|
|
6
|
+
import "./tabpane.C4nsUlwc.js";
|
|
7
|
+
import "./chunks/TabPane.utils.DG16Y2uD.js";
|
|
8
|
+
import { D as a } from "./chunks/Tabs.CoO_lrhV.js";
|
|
9
|
+
export {
|
|
10
|
+
a as DSTabs
|
|
11
|
+
};
|
package/text.cLv2PhjQ.js
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import "react/jsx-runtime";
|
|
3
|
+
import "./chunks/index.D-sRdssb.js";
|
|
4
|
+
import "./chunks/index.DL9mof6u.js";
|
|
5
|
+
import "react";
|
|
6
|
+
import "./chunks/helpers.CexwVao7.js";
|
|
7
|
+
import { D as s } from "./chunks/Text.DpRtTpB4.js";
|
|
8
|
+
export {
|
|
9
|
+
s as DSText
|
|
10
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import "react/jsx-runtime";
|
|
3
|
+
import "./chunks/index.DL9mof6u.js";
|
|
4
|
+
import "react";
|
|
5
|
+
import "./chunks/helpers.CexwVao7.js";
|
|
6
|
+
import "./chunks/useBreakpoint.1txsny17.js";
|
|
7
|
+
import "./chunks/index.D-sRdssb.js";
|
|
8
|
+
import "./asterisk.B2ih8VwF.js";
|
|
9
|
+
import "./chunks/Popover.D7McfVaH.js";
|
|
10
|
+
import "./chunks/SystemFeedback.CjlARKki.js";
|
|
11
|
+
import { D as c } from "./chunks/Textarea.lYiPXerd.js";
|
|
12
|
+
export {
|
|
13
|
+
c as DSTextarea
|
|
14
|
+
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsxs as k, jsx as u } from "react/jsx-runtime";
|
|
3
|
-
import { d as T } from "./chunks/index.
|
|
4
|
-
import { c as D } from "./chunks/index.
|
|
3
|
+
import { d as T } from "./chunks/index.D-sRdssb.js";
|
|
4
|
+
import { c as D } from "./chunks/index.DL9mof6u.js";
|
|
5
5
|
import './assets/title.B0tsgJ-n.css';const N = "ds-title_root_tt8l3_1", v = "ds-title_root--x-large-uppercase_tt8l3_4", X = "ds-title_root--large-uppercase_tt8l3_20", j = "ds-title_root--theme-dark_tt8l3_36", y = "ds-title_dash_tt8l3_39", c = {
|
|
6
6
|
root: N,
|
|
7
7
|
rootXLargeUppercase: v,
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import "react/jsx-runtime";
|
|
3
|
+
import "./chunks/index.D-sRdssb.js";
|
|
4
|
+
import "./chunks/index.DL9mof6u.js";
|
|
5
|
+
import "react";
|
|
6
|
+
import "./chunks/Button.Cn5yg7dG.js";
|
|
7
|
+
import "./chunks/Icon.CDLyB7Pv.js";
|
|
8
|
+
import { D as a } from "./chunks/Toast.L5HAuEOn.js";
|
|
9
|
+
export {
|
|
10
|
+
a as DSToast
|
|
11
|
+
};
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsxs as P, jsx as y } from "react/jsx-runtime";
|
|
3
|
+
import { createContext as C, useContext as O, useState as g, useRef as _, useEffect as p, useMemo as U } from "react";
|
|
4
|
+
import { g as u } from "./chunks/helpers.CexwVao7.js";
|
|
5
|
+
import "./chunks/index.D-sRdssb.js";
|
|
6
|
+
import { b as A, g as w } from "./chunks/AriaLiveRegions.utils.CybNIBSa.js";
|
|
7
|
+
import { D as j, s as q } from "./chunks/Toast.L5HAuEOn.js";
|
|
8
|
+
import { h as Q } from "./chunks/has-window.ut_-aShB.js";
|
|
9
|
+
const k = () => {
|
|
10
|
+
if (!A() || !w())
|
|
11
|
+
throw new Error(u("DSToast", 'The DSAriaLiveRegions component has to be placed at the root of your application, as close to the "body" as possible, e.g. in your "App.tsx" or "layout.tsx".'));
|
|
12
|
+
}, B = () => {
|
|
13
|
+
if (!Q)
|
|
14
|
+
return;
|
|
15
|
+
if (document.querySelectorAll("[data-ds-toast]").length > 1)
|
|
16
|
+
throw new Error(u("DSToast", 'The destructured "toast" element should only be used once in the DOM.'));
|
|
17
|
+
}, i = "data-ds-toast-timeout-id", S = "closing", G = 1e4, D = C(void 0), K = () => {
|
|
18
|
+
const r = O(D);
|
|
19
|
+
if (!r)
|
|
20
|
+
throw new Error(u("DSToastProvider", "useDSToast must be used within a <DSToastProvider />, which wraps around your root component."));
|
|
21
|
+
return r;
|
|
22
|
+
}, X = ({
|
|
23
|
+
children: r
|
|
24
|
+
}) => {
|
|
25
|
+
const [a, c] = g([]), [o, l] = g(null), e = _(null);
|
|
26
|
+
p(() => {
|
|
27
|
+
!o && a.length > 0 && setTimeout(() => {
|
|
28
|
+
l(a[0]);
|
|
29
|
+
});
|
|
30
|
+
}, [a]), p(() => {
|
|
31
|
+
o && (x(o.message, o.variant), I());
|
|
32
|
+
}, [o]);
|
|
33
|
+
const m = () => e.current?.getAttribute(i) || null, T = (t) => {
|
|
34
|
+
e.current?.setAttribute(i, t);
|
|
35
|
+
}, E = () => e.current?.removeAttribute(i), x = (t, s) => {
|
|
36
|
+
if (s === "warning") {
|
|
37
|
+
const n = A();
|
|
38
|
+
n && (n.innerText = t);
|
|
39
|
+
} else if (s === "success" || s === "info") {
|
|
40
|
+
const n = w();
|
|
41
|
+
n && (n.innerText = t);
|
|
42
|
+
}
|
|
43
|
+
}, d = (t, s) => {
|
|
44
|
+
k();
|
|
45
|
+
const n = {
|
|
46
|
+
message: t,
|
|
47
|
+
hideIcon: s?.hideIcon,
|
|
48
|
+
variant: s?.variant || "info",
|
|
49
|
+
...s,
|
|
50
|
+
onClick: () => {
|
|
51
|
+
v();
|
|
52
|
+
},
|
|
53
|
+
onMouseEnter: L,
|
|
54
|
+
onMouseLeave: M
|
|
55
|
+
};
|
|
56
|
+
c((b) => [...b, n]);
|
|
57
|
+
}, L = () => {
|
|
58
|
+
f();
|
|
59
|
+
}, f = () => {
|
|
60
|
+
const t = m();
|
|
61
|
+
t && (clearTimeout(t), e.current?.removeAttribute(i));
|
|
62
|
+
}, h = () => {
|
|
63
|
+
const t = setTimeout(() => {
|
|
64
|
+
v();
|
|
65
|
+
}, G);
|
|
66
|
+
T(String(t));
|
|
67
|
+
}, M = () => {
|
|
68
|
+
m() !== S && e.current && h();
|
|
69
|
+
}, I = () => {
|
|
70
|
+
B(), o && e.current?.showPopover && (e.current.showPopover(), h());
|
|
71
|
+
}, v = () => {
|
|
72
|
+
f(), T(S), e.current && (e.current.addEventListener("animationend", () => {
|
|
73
|
+
e.current?.hidePopover && (e.current.hidePopover(), E(), e.current = null, c((t) => t.slice(1)), l(null));
|
|
74
|
+
}, {
|
|
75
|
+
once: !0
|
|
76
|
+
// removes event listener after being called once
|
|
77
|
+
}), e.current.classList.add(q.rootClosing));
|
|
78
|
+
}, R = U(() => ({
|
|
79
|
+
queueDSToastMessage: d
|
|
80
|
+
}), [d]);
|
|
81
|
+
return /* @__PURE__ */ P(D.Provider, { value: R, children: [
|
|
82
|
+
o ? /* @__PURE__ */ y(j, { ...o, ref: e }) : null,
|
|
83
|
+
r
|
|
84
|
+
] });
|
|
85
|
+
};
|
|
86
|
+
export {
|
|
87
|
+
X as DSToastProvider,
|
|
88
|
+
K as useDSToast
|
|
89
|
+
};
|
|
@@ -0,0 +1,177 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as k } from "react/jsx-runtime";
|
|
3
|
+
import { d as S } from "./chunks/index.D-sRdssb.js";
|
|
4
|
+
import { isValidElement as V, useState as G, createContext as J, forwardRef as U, cloneElement as K, useContext as L } from "react";
|
|
5
|
+
import { j as Q, o as W, s as X, a as Y, u as Z, m as tt, n as et, c as ot, d as st, e as nt, f as H, g as lt, i as it } from "./chunks/floating-ui.react.COTL3jH5.js";
|
|
6
|
+
import { c as ct } from "./chunks/index.DL9mof6u.js";
|
|
7
|
+
import { g as y, c as I } from "./chunks/helpers.CexwVao7.js";
|
|
8
|
+
import './assets/tooltip.Co1gWF_0.css';const rt = "ds-tooltip_tooltip_503ch_5", at = {
|
|
9
|
+
tooltip: rt
|
|
10
|
+
};
|
|
11
|
+
function pt(s) {
|
|
12
|
+
const t = S.c(24), {
|
|
13
|
+
initialOpen: e,
|
|
14
|
+
placement: o,
|
|
15
|
+
isOpen: r,
|
|
16
|
+
tooltipOffset: n,
|
|
17
|
+
onOpenChange: u
|
|
18
|
+
} = s === void 0 ? {} : s, a = e === void 0 ? !1 : e, l = o === void 0 ? "top" : o, i = n === void 0 ? 6 : n, [x, T] = G(a), p = r ?? x, d = u ?? T, O = "fixed", w = Y, v = W(i), C = Q({
|
|
19
|
+
crossAxis: l.includes("-"),
|
|
20
|
+
fallbackAxisSideDirection: "start",
|
|
21
|
+
padding: i
|
|
22
|
+
}), m = X({
|
|
23
|
+
padding: i
|
|
24
|
+
});
|
|
25
|
+
let c;
|
|
26
|
+
t[0] !== v || t[1] !== C || t[2] !== m ? (c = [v, C, m], t[0] = v, t[1] = C, t[2] = m, t[3] = c) : c = t[3];
|
|
27
|
+
let g;
|
|
28
|
+
t[4] !== p || t[5] !== l || t[6] !== d || t[7] !== w || t[8] !== c ? (g = {
|
|
29
|
+
placement: l,
|
|
30
|
+
open: p,
|
|
31
|
+
strategy: O,
|
|
32
|
+
onOpenChange: d,
|
|
33
|
+
whileElementsMounted: w,
|
|
34
|
+
middleware: c
|
|
35
|
+
}, t[4] = p, t[5] = l, t[6] = d, t[7] = w, t[8] = c, t[9] = g) : g = t[9];
|
|
36
|
+
const f = Z(g), h = f.context;
|
|
37
|
+
let E;
|
|
38
|
+
t[10] === Symbol.for("react.memo_cache_sentinel") ? (E = {
|
|
39
|
+
move: !1,
|
|
40
|
+
enabled: !0,
|
|
41
|
+
mouseOnly: !0,
|
|
42
|
+
delay: {
|
|
43
|
+
open: 400,
|
|
44
|
+
close: 0
|
|
45
|
+
}
|
|
46
|
+
}, t[10] = E) : E = t[10];
|
|
47
|
+
const P = tt(h, E);
|
|
48
|
+
let A;
|
|
49
|
+
t[11] === Symbol.for("react.memo_cache_sentinel") ? (A = {
|
|
50
|
+
enabled: !0
|
|
51
|
+
}, t[11] = A) : A = t[11];
|
|
52
|
+
const D = et(h, A), R = ot(h);
|
|
53
|
+
let _;
|
|
54
|
+
t[12] === Symbol.for("react.memo_cache_sentinel") ? (_ = {
|
|
55
|
+
role: "tooltip"
|
|
56
|
+
}, t[12] = _) : _ = t[12];
|
|
57
|
+
const M = st(h, _);
|
|
58
|
+
let N;
|
|
59
|
+
t[13] !== R || t[14] !== D || t[15] !== P || t[16] !== M ? (N = [P, D, R, M], t[13] = R, t[14] = D, t[15] = P, t[16] = M, t[17] = N) : N = t[17];
|
|
60
|
+
const $ = nt(N);
|
|
61
|
+
let b;
|
|
62
|
+
return t[18] !== f || t[19] !== $ || t[20] !== p || t[21] !== d || t[22] !== i ? (b = {
|
|
63
|
+
open: p,
|
|
64
|
+
tooltipOffset: i,
|
|
65
|
+
setOpen: d,
|
|
66
|
+
...$,
|
|
67
|
+
...f
|
|
68
|
+
}, t[18] = f, t[19] = $, t[20] = p, t[21] = d, t[22] = i, t[23] = b) : b = t[23], b;
|
|
69
|
+
}
|
|
70
|
+
const ft = (s) => {
|
|
71
|
+
if (!V(s))
|
|
72
|
+
throw new Error(y("Tooltip", "Tooltip.Anchor child must be a valid React element."));
|
|
73
|
+
}, dt = ({
|
|
74
|
+
children: s,
|
|
75
|
+
hasContent: t,
|
|
76
|
+
hasAnchor: e
|
|
77
|
+
}) => {
|
|
78
|
+
if (!s)
|
|
79
|
+
throw new Error(y("Tooltip", "A Tooltip must have children."));
|
|
80
|
+
if (!t)
|
|
81
|
+
throw new Error(y("Tooltip", "A Tooltip must have a <Tooltip.Content> component as a child. Please add it to the children of Tooltip."));
|
|
82
|
+
if (!e)
|
|
83
|
+
throw new Error(y("Tooltip", "A Tooltip must have a <Tooltip.Anchor> component as a child. Please add it to the children of Tooltip."));
|
|
84
|
+
}, q = J(null), z = () => {
|
|
85
|
+
const s = L(q);
|
|
86
|
+
if (s == null)
|
|
87
|
+
throw new Error(y("Tooltip", "Components like Tooltip.Anchor or Tooltip.Content must be wrapped in <Tooltip />."));
|
|
88
|
+
return s;
|
|
89
|
+
}, F = (s) => {
|
|
90
|
+
const t = S.c(9);
|
|
91
|
+
let e, o;
|
|
92
|
+
t[0] !== s ? ({
|
|
93
|
+
children: e,
|
|
94
|
+
...o
|
|
95
|
+
} = s, t[0] = s, t[1] = e, t[2] = o) : (e = t[1], o = t[2]);
|
|
96
|
+
let r;
|
|
97
|
+
t[3] !== o ? (r = {
|
|
98
|
+
...o
|
|
99
|
+
}, t[3] = o, t[4] = r) : r = t[4];
|
|
100
|
+
const n = pt(r), u = I(e, F.Content), a = I(e, j);
|
|
101
|
+
process.env.NODE_ENV !== "production" && dt({
|
|
102
|
+
children: e,
|
|
103
|
+
hasContent: u,
|
|
104
|
+
hasAnchor: a
|
|
105
|
+
});
|
|
106
|
+
let l;
|
|
107
|
+
return t[5] !== e || t[6] !== o || t[7] !== n ? (l = /* @__PURE__ */ k(q.Provider, { value: n, ...o, children: e }), t[5] = e, t[6] = o, t[7] = n, t[8] = l) : l = t[8], l;
|
|
108
|
+
}, j = U((s, t) => {
|
|
109
|
+
const e = S.c(4), {
|
|
110
|
+
children: o,
|
|
111
|
+
...r
|
|
112
|
+
} = s;
|
|
113
|
+
process.env.NODE_ENV !== "production" && ft(o);
|
|
114
|
+
const n = z(), u = V(o) ? o.ref : null;
|
|
115
|
+
let a;
|
|
116
|
+
e[0] !== u || e[1] !== n.refs.setReference || e[2] !== t ? (a = [n.refs.setReference, t, u], e[0] = u, e[1] = n.refs.setReference, e[2] = t, e[3] = a) : a = e[3];
|
|
117
|
+
const l = H(a);
|
|
118
|
+
if (V(o))
|
|
119
|
+
return K(o, n.getReferenceProps({
|
|
120
|
+
...o.props,
|
|
121
|
+
...r,
|
|
122
|
+
ref: l,
|
|
123
|
+
"data-state": n.open ? "open" : "closed"
|
|
124
|
+
}));
|
|
125
|
+
});
|
|
126
|
+
j.displayName = "Tooltip.Anchor";
|
|
127
|
+
const B = U((s, t) => {
|
|
128
|
+
const e = S.c(24), {
|
|
129
|
+
style: o,
|
|
130
|
+
className: r,
|
|
131
|
+
children: n,
|
|
132
|
+
...u
|
|
133
|
+
} = s, a = z();
|
|
134
|
+
let l, i, x, T;
|
|
135
|
+
e[0] !== a ? ({
|
|
136
|
+
context: l,
|
|
137
|
+
floatingStyles: i,
|
|
138
|
+
getFloatingProps: x,
|
|
139
|
+
...T
|
|
140
|
+
} = a, e[0] = a, e[1] = l, e[2] = i, e[3] = x, e[4] = T) : (l = e[1], i = e[2], x = e[3], T = e[4]);
|
|
141
|
+
let p;
|
|
142
|
+
e[5] !== t || e[6] !== T.refs.setFloating ? (p = [T.refs.setFloating, t], e[5] = t, e[6] = T.refs.setFloating, e[7] = p) : p = e[7];
|
|
143
|
+
const d = H(p);
|
|
144
|
+
let O;
|
|
145
|
+
e[8] === Symbol.for("react.memo_cache_sentinel") ? (O = {
|
|
146
|
+
duration: {
|
|
147
|
+
open: 400,
|
|
148
|
+
close: 100
|
|
149
|
+
}
|
|
150
|
+
}, e[8] = O) : O = e[8];
|
|
151
|
+
const {
|
|
152
|
+
isMounted: w,
|
|
153
|
+
status: v
|
|
154
|
+
} = lt(l, O);
|
|
155
|
+
if (!w)
|
|
156
|
+
return null;
|
|
157
|
+
const C = it;
|
|
158
|
+
let m;
|
|
159
|
+
e[9] !== i || e[10] !== o ? (m = {
|
|
160
|
+
...i,
|
|
161
|
+
...o
|
|
162
|
+
}, e[9] = i, e[10] = o, e[11] = m) : m = e[11];
|
|
163
|
+
let c;
|
|
164
|
+
e[12] !== r ? (c = ct(at.tooltip, r), e[12] = r, e[13] = c) : c = e[13];
|
|
165
|
+
const g = x(u);
|
|
166
|
+
let f;
|
|
167
|
+
e[14] !== n || e[15] !== d || e[16] !== v || e[17] !== m || e[18] !== c || e[19] !== g ? (f = /* @__PURE__ */ k("div", { ref: d, style: m, className: c, ...g, "data-status": v, children: n }), e[14] = n, e[15] = d, e[16] = v, e[17] = m, e[18] = c, e[19] = g, e[20] = f) : f = e[20];
|
|
168
|
+
let h;
|
|
169
|
+
return e[21] !== C || e[22] !== f ? (h = /* @__PURE__ */ k(C, { children: f }), e[21] = C, e[22] = f, e[23] = h) : h = e[23], h;
|
|
170
|
+
});
|
|
171
|
+
B.displayName = "Tooltip.Content";
|
|
172
|
+
F.Anchor = j;
|
|
173
|
+
F.Content = B;
|
|
174
|
+
F.displayName = "Tooltip";
|
|
175
|
+
export {
|
|
176
|
+
F as Tooltip
|
|
177
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import "react/jsx-runtime";
|
|
3
|
+
import "./chunks/index.D-sRdssb.js";
|
|
4
|
+
import "./chunks/index.DL9mof6u.js";
|
|
5
|
+
import "react";
|
|
6
|
+
import "./chunks/helpers.CexwVao7.js";
|
|
7
|
+
import { b } from "./chunks/Header.18sOO0Gf.js";
|
|
8
|
+
import "./logo.DprmD8HU.js";
|
|
9
|
+
import "./logo100years.DDzCrczW.js";
|
|
10
|
+
export {
|
|
11
|
+
b as DSTopBar
|
|
12
|
+
};
|
package/types/icon-types.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const ICON_NAMES: readonly ["360", "academic-cap", "accessibility", "alarm-clock", "arrow-clockwise", "arrow-counterclockwise", "arrow-down", "arrow-down-line", "arrow-edge", "arrow-left", "arrow-out", "arrow-outline-left", "arrow-right", "arrow-up", "arrow-up-arrow-down", "at", "barcode-scanner", "battery", "battery-charge-0", "battery-charge-100", "bell", "bin", "bin-open", "bluetooth", "bluetooth-off", "bookmark", "burger", "calendar", "camera", "caret-down", "caret-right", "cart", "cart-check", "cart-plus", "catalog", "certificate", "chain-link", "chainsaw", "check", "chevron-down", "chevron-left", "chevron-line-left", "chevron-line-right", "chevron-right", "chevron-up", "circle", "circle-check-colored", "circle-check-inverted", "circle-info-colored", "circle-info-inverted", "circle-pause", "circle-stroke", "clock", "coffee-cup", "collapse", "compare", "connected-box", "connected-box-mobile", "connected-box-stationary", "cross", "diamond", "diamond-exclamationmark-colored", "diamond-exclamationmark-inverted", "diskette", "distance", "document-magnifying-glass", "document-s", "dots-connected", "download-complete", "envelope", "envelope-open", "exclamationmark", "exit", "eye", "eye-closed", "facebook", "file", "file-type-doc", "file-type-image", "file-type-pdf", "file-type-video", "file-type-zip", "filter", "finger-double-arrow", "flash", "fullscreen", "gear", "globe", "grid", "guidance", "haircross", "hanger", "headphones", "heart", "hexagon-arrow-clockwise", "horizontal-ellipsis", "house", "imow", "info", "instagram", "leave-fullscreen", "lightbulb", "linkedin", "list-three-rows", "list-two-rows", "loading-spinner", "lock", "magnifying-glass", "magnifying-glass-minus", "magnifying-glass-plus", "map", "minus", "mobile", "nine-squares", "note", "note-check", "note-plus", "number-input", "paperclip", "parcel", "pause", "pen", "percent", "petrol", "phone", "pin", "pin-s", "pinterest", "placeholder", "play", "plug", "plus", "printer", "prohibition-sign", "questionmark", "security", "share", "shirt", "shop", "sound-off", "sound-on", "speechbubble", "speechbubbles", "square", "star", "star-half", "tag", "thumbs-down", "thumbs-up", "tiktok", "triangle", "triangle-exclamationmark-colored", "triangle-exclamationmark-inverted", "truck", "twitch", "two-people-screen", "two-sheets", "upload", "user", "vertical-ellipsis", "wc", "whatsapp", "wifi", "wifi-1bar", "wifi-2bars", "wifi-off", "wind-rose", "wrench", "x", "xing", "youtube"];
|
|
1
|
+
export declare const ICON_NAMES: readonly ["360", "academic-cap", "accessibility", "alarm-clock", "arrow-clockwise", "arrow-counterclockwise", "arrow-down", "arrow-down-line", "arrow-edge", "arrow-left", "arrow-out", "arrow-outline-left", "arrow-right", "arrow-up", "arrow-up-arrow-down", "at", "barcode-scanner", "battery", "battery-charge-0", "battery-charge-100", "bell", "bin", "bin-open", "bluetooth", "bluetooth-off", "bookmark", "burger", "calendar", "camera", "caret-down", "caret-right", "cart", "cart-check", "cart-plus", "catalog", "certificate", "chain-link", "chainsaw", "check", "chevron-down", "chevron-left", "chevron-line-left", "chevron-line-right", "chevron-right", "chevron-up", "circle", "circle-check-colored", "circle-check-inverted", "circle-info-colored", "circle-info-inverted", "circle-pause", "circle-stroke", "clock", "coffee-cup", "collapse", "compare", "connected-box", "connected-box-mobile", "connected-box-stationary", "cross", "diamond", "diamond-exclamationmark-colored", "diamond-exclamationmark-inverted", "diskette", "distance", "document-magnifying-glass", "document-s", "dots-connected", "download-complete", "envelope", "envelope-open", "exclamationmark", "exit", "eye", "eye-closed", "facebook", "feather", "file", "file-type-doc", "file-type-image", "file-type-pdf", "file-type-video", "file-type-zip", "filter", "finger-double-arrow", "flash", "fullscreen", "gear", "globe", "grid", "guidance", "haircross", "hanger", "headphones", "heart", "hexagon-arrow-clockwise", "horizontal-ellipsis", "house", "imow", "info", "instagram", "leave-fullscreen", "lightbulb", "linkedin", "list-three-rows", "list-two-rows", "loading-spinner", "lock", "magnifying-glass", "magnifying-glass-minus", "magnifying-glass-plus", "map", "minus", "mobile", "moon", "muscle", "nine-squares", "note", "note-check", "note-plus", "number-input", "paperclip", "parcel", "pause", "pen", "percent", "petrol", "phone", "pin", "pin-s", "pinterest", "placeholder", "play", "plug", "plus", "printer", "prohibition-sign", "questionmark", "security", "share", "shirt", "shop", "sound-off", "sound-on", "speechbubble", "speechbubbles", "square", "star", "star-half", "sun", "tag", "thumbs-down", "thumbs-up", "tiktok", "triangle", "triangle-exclamationmark-colored", "triangle-exclamationmark-inverted", "truck", "twitch", "two-people-screen", "two-sheets", "upload", "user", "variants", "vertical-ellipsis", "wc", "weight", "whatsapp", "wifi", "wifi-1bar", "wifi-2bars", "wifi-off", "wind-rose", "wrench", "x", "xing", "youtube"];
|
|
2
2
|
export type IconName = typeof ICON_NAMES[number];
|
package/utils/index.d.ts
CHANGED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Merges multiple refs (callback or object refs) into a single callback ref.
|
|
3
|
+
* Handy when a component both forwards a ref and also needs its own internal ref.
|
|
4
|
+
*/
|
|
5
|
+
export declare function mergeRefs<T>(...refs: Array<React.Ref<T> | undefined>): React.RefCallback<T>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { useLayoutEffect } from 'react';
|
|
2
2
|
/**
|
|
3
3
|
* A custom hook that conditionally uses `useLayoutEffect` or `useEffect` based on the environment.
|
|
4
4
|
*
|
|
@@ -22,4 +22,4 @@ import { useEffect } from 'react';
|
|
|
22
22
|
* // Your effect logic here
|
|
23
23
|
* }, [dependencies]);
|
|
24
24
|
* */
|
|
25
|
-
export declare const useIsomorphicLayoutEffect: typeof
|
|
25
|
+
export declare const useIsomorphicLayoutEffect: typeof useLayoutEffect;
|
package/accordion.HfUSDwQJ.js
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import "react/jsx-runtime";
|
|
3
|
-
import "./chunks/index.CgTHIF3K.js";
|
|
4
|
-
import "./chunks/index.CEyLAtio.js";
|
|
5
|
-
import "react";
|
|
6
|
-
import "./heading.BXFBZhKv.js";
|
|
7
|
-
import "./chunks/Icon.NSsVrYeq.js";
|
|
8
|
-
import "./numberindicator.Ddf3ESi7.js";
|
|
9
|
-
import { D as s } from "./chunks/Accordion.CnqryAUu.js";
|
|
10
|
-
export {
|
|
11
|
-
s as DSAccordion
|
|
12
|
-
};
|
package/actionbutton.kgd0E_xF.js
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import "react/jsx-runtime";
|
|
3
|
-
import "./chunks/index.CgTHIF3K.js";
|
|
4
|
-
import "./chunks/index.CEyLAtio.js";
|
|
5
|
-
import "react";
|
|
6
|
-
import "./chunks/Icon.NSsVrYeq.js";
|
|
7
|
-
import "./numberindicator.Ddf3ESi7.js";
|
|
8
|
-
import "./tooltip.CUCSRXd3.js";
|
|
9
|
-
import { D as s } from "./chunks/ActionButton.DdDesD7K.js";
|
|
10
|
-
export {
|
|
11
|
-
s as DSActionButton
|
|
12
|
-
};
|
package/actionlink.CwC42RWc.js
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import "react/jsx-runtime";
|
|
3
|
-
import "./chunks/index.CgTHIF3K.js";
|
|
4
|
-
import "./chunks/index.CEyLAtio.js";
|
|
5
|
-
import "react";
|
|
6
|
-
import "./chunks/Icon.NSsVrYeq.js";
|
|
7
|
-
import "./numberindicator.Ddf3ESi7.js";
|
|
8
|
-
import "./tooltip.CUCSRXd3.js";
|
|
9
|
-
import { D as s } from "./chunks/ActionLink.DqAsPYda.js";
|
|
10
|
-
export {
|
|
11
|
-
s as DSActionLink
|
|
12
|
-
};
|