@stihl-design-system/components 1.0.0-RC.32 → 1.0.0-RC.34
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/accordion.Dmqocj97.js +12 -0
- package/actionbutton.DLQJU6AV.js +12 -0
- package/actionlink.DEBrWfN3.js +12 -0
- package/{arialiveregions.Fgcshs5k.js → arialiveregions.BUVY9NpY.js} +2 -2
- package/assets/Accordion.CzBGud45.css +1 -0
- package/assets/Button.C8sNwIeW.css +1 -0
- package/assets/Checkbox.CyOw3rXI.css +1 -0
- package/assets/CustomReactSelect.E_jJFVew.css +1 -0
- package/assets/Dialog.DJkn65Es.css +1 -0
- package/assets/Drawer.x3BCQvWE.css +1 -0
- package/assets/InputFile.BnIvK65P.css +1 -0
- package/assets/InputNumber.BoiCIR1f.css +1 -0
- package/assets/InputPassword.Dk3_vNLV.css +1 -0
- package/assets/InputSearch.C1_4cVCi.css +1 -0
- package/assets/LinkButton.B86yacK5.css +1 -0
- package/assets/{MegaMenu.DX9gChtY.css → MegaMenu.D5EtjFeL.css} +1 -1
- package/assets/Notification.CvohYEvT.css +1 -0
- package/assets/Select.COxLltX7.css +1 -0
- package/assets/Slider.DPEmJ3HD.css +1 -0
- package/assets/Stepper.tXJl15yL.css +1 -0
- package/assets/{SystemFeedback.RcrPepSZ.css → SystemFeedback.PKzqnXUe.css} +1 -1
- package/assets/Textarea.y3MW7VW0.css +1 -0
- package/assets/Toast.CGyKXb4V.css +1 -0
- package/assets/buttonround.BN3vUDc_.css +1 -0
- package/assets/input.DTu4g_iA.css +1 -0
- package/assets/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.CI5HnDqD.js} +3 -3
- package/breadcrumb.CtwAux3P.js +11 -0
- package/button.DHuKanZP.js +13 -0
- package/{buttonround.ChKWHzsv.js → buttonround.CMlmEDaN.js} +6 -6
- package/checkbox.DwccD0Mp.js +12 -0
- package/checkboxgroup.ZiUFfCJ1.js +9 -0
- package/chip.B0s_fS8L.js +12 -0
- package/chipgroup.Dpu66bo5.js +143 -0
- package/chunks/Accordion.CYIfNOWr.js +168 -0
- package/chunks/{ActionButton.DdDesD7K.js → ActionButton.DOYsEHPr.js} +37 -37
- package/chunks/{ActionLink.DqAsPYda.js → ActionLink.DbyciN3Y.js} +36 -36
- package/chunks/{AriaLiveRegions.utils.Cb327d_2.js → AriaLiveRegions.utils.CybNIBSa.js} +2 -2
- package/chunks/{Breadcrumb.9KinNuyQ.js → Breadcrumb.BgnpTo01.js} +35 -37
- package/chunks/{Button.Cf1CKq8N.js → Button.DCZgBNmA.js} +8 -8
- package/chunks/Checkbox.BcGXAuuP.js +88 -0
- package/chunks/{CheckboxGroup.Cj68J6Ee.js → CheckboxGroup.BuFd1luB.js} +5 -5
- package/chunks/{Chip.BrbYu6i_.js → Chip.D6pubCZV.js} +6 -6
- package/chunks/{CustomReactSelect.Cqq70QC0.js → CustomReactSelect.Dg3wC_VH.js} +450 -447
- package/chunks/Dialog.DpqSVrYR.js +102 -0
- package/chunks/Drawer.DISWybOa.js +107 -0
- package/chunks/{Fieldset.D7cLR5ze.js → Fieldset.DiMtr6Vw.js} +6 -6
- package/chunks/Header.7TQL_J9t.js +370 -0
- package/chunks/{Icon.NSsVrYeq.js → Icon.CDLyB7Pv.js} +77 -79
- package/chunks/{Input.utils.Cnnzvuk4.js → Input.utils.Dkw7gRrr.js} +17 -17
- package/chunks/InputFile.C8nt9Fu8.js +218 -0
- package/chunks/InputNumber.CbH1XJfl.js +267 -0
- package/chunks/{InputPassword.Da3hEKTc.js → InputPassword.DbdjuSiJ.js} +34 -34
- package/chunks/InputSearch.joxmugiv.js +173 -0
- package/chunks/{LinkButton.59oNDwPU.js → LinkButton.BZgIGgc8.js} +7 -7
- package/chunks/MegaMenu.CQbOeaib.js +189 -0
- package/chunks/NavigationTabList.G_l0GiUa.js +67 -0
- package/chunks/{NavigationTabs.DspPFHPh.js → NavigationTabs.BwM-6CRm.js} +13 -14
- package/chunks/Notification.CrojkJ0E.js +91 -0
- package/chunks/Popover.Bb0Pjmvg.js +215 -0
- package/chunks/{RadioGroup.DeTz3c19.js → RadioGroup.CexC4v2Z.js} +5 -5
- package/chunks/Select.BEIdNMML.js +164 -0
- package/chunks/{Slider.84lkgq3W.js → Slider.CR0zYHeZ.js} +83 -84
- package/chunks/Stepper.PTQdQBYf.js +152 -0
- package/chunks/{SystemFeedback.CyGbUCzT.js → SystemFeedback.CjlARKki.js} +9 -9
- package/chunks/Tabs.DyP4whX0.js +83 -0
- package/chunks/{Text.DGWeWF1y.js → Text.DpRtTpB4.js} +3 -3
- package/chunks/Textarea.Du2RII5u.js +168 -0
- package/chunks/Toast.ug_RjGgF.js +76 -0
- package/chunks/{arrow-clockwise.BefOjGPg.js → arrow-clockwise.C4iOgjOc.js} +1 -1
- package/chunks/{arrow-counterclockwise.C7Ov32BZ.js → arrow-counterclockwise.CgQAuBUe.js} +1 -1
- package/chunks/{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.dom.BT8pKtCQ.js +1005 -0
- package/chunks/floating-ui.react.3FjeMiuN.js +1999 -0
- package/chunks/helpers.CexwVao7.js +38 -0
- package/chunks/{index.CgTHIF3K.js → index.D-sRdssb.js} +1 -1
- package/chunks/{index.CEyLAtio.js → index.DL9mof6u.js} +2 -2
- package/chunks/{is-animation-disabled.CUl4N3LI.js → is-animation-disabled.B-V_68K-.js} +5 -5
- package/chunks/{map.CXgG1iGz.js → map.DNl7PF61.js} +1 -1
- package/chunks/moon.5yILPYXs.js +10 -0
- package/chunks/muscle.DbNjWasV.js +10 -0
- package/chunks/petrol.BGWwCsTw.js +10 -0
- package/chunks/sun.CY6ttzTL.js +10 -0
- package/chunks/{triangle-exclamationmark-colored.CbVC3Gzi.js → triangle-exclamationmark-colored.e93zvQ6Q.js} +1 -1
- package/chunks/upload.BogDfonx.js +10 -0
- package/chunks/useBreakpoint.BzR_yaIv.js +42 -0
- package/chunks/variants.-R3_RCW8.js +10 -0
- package/chunks/weight.DUPu2UT0.js +10 -0
- package/combobox.jG5GRA7C.js +65 -0
- package/components/ChipGroup/ChipGroup.utils.d.ts +1 -3
- package/components/Combobox/Combobox.utils.d.ts +3 -4
- package/components/Combobox/CustomReactSelect/CustomReactSelect.d.ts +4 -2
- package/components/{InputStepper/InputStepper.d.ts → InputNumber/InputNumber.d.ts} +4 -4
- package/components/InputNumber/InputNumber.utils.d.ts +13 -0
- package/components/Scroller/Scroller.d.ts +6 -2
- package/components/Stepper/Step.d.ts +33 -0
- package/components/Stepper/Step.utils.d.ts +5 -0
- package/components/Stepper/Stepper.d.ts +56 -0
- package/components/Stepper/Stepper.test.d.ts +1 -0
- package/components/Stepper/Stepper.utils.d.ts +30 -0
- package/components/Stepper/Stepper.utils.test.d.ts +1 -0
- package/customreactselect.BFN8cYJi.js +14 -0
- package/dialog.CzM_Cxp0.js +9 -0
- package/drawer._A9MQ8Cj.js +9 -0
- package/fieldset.CId-NtI5.js +11 -0
- package/{filelist.BiKMKCyg.js → filelist.DgVuWpR3.js} +23 -24
- package/{flag.72PONA83.js → flag.CE32qHPa.js} +3 -3
- package/{floatingactionbutton.B2YChsNU.js → floatingactionbutton.Bsnncudt.js} +5 -5
- package/header.CelAkqtp.js +12 -0
- package/{heading.BXFBZhKv.js → heading.DHLpT4dc.js} +2 -2
- package/icon.vzkPwgjZ.js +9 -0
- package/index.d.ts +4 -2
- package/index.es.js +218 -206
- package/input.DuEbg7d6.js +206 -0
- package/inputfile.BjgJGefV.js +17 -0
- package/inputnumber.BcrxBVv0.js +16 -0
- package/inputnumber.d.ts +2 -0
- package/inputpassword.CddmBW-T.js +13 -0
- package/inputsearch.CFOASqrd.js +14 -0
- package/{link.DbnvsD3j.js → link.f8MMZo-w.js} +5 -5
- package/linkbutton.BYAvi-_V.js +12 -0
- package/{logo.C96KaG1P.js → logo.DprmD8HU.js} +3 -3
- package/{logo100years.BcB6_c-o.js → logo100years.B4d_DIiB.js} +1 -1
- package/megamenu.Cy9Cc-mC.js +12 -0
- package/navigationtablist.CkkLyHrM.js +10 -0
- package/navigationtabs.Dp7D2fnc.js +9 -0
- package/notification.B-norGiB.js +10 -0
- package/{numberindicator.Ddf3ESi7.js → numberindicator.BdnPMogE.js} +2 -2
- package/{optioncheckbox.DqfXuPdi.js → optioncheckbox.nBVwGv6c.js} +3 -3
- package/package.json +41 -50
- package/partials/index.js +56 -50
- package/partials/lib/partials.d.ts +1 -1
- package/popover.DFVDZY-m.js +12 -0
- package/{radio.7_N_alaS.js → radio.DHUfSPai.js} +2 -2
- package/radiogroup.DaThoMfq.js +11 -0
- package/scroller.Cu7H_VCT.js +98 -0
- package/select.CMdKf7tC.js +13 -0
- package/{skiptocontent.BSCde5hT.js → skiptocontent.CHVh0hbr.js} +4 -4
- package/slider.C5dK6KcG.js +11 -0
- package/{spinner.BUjhjAvw.js → spinner.C9qCeq0R.js} +18 -18
- package/step.DKf4CHGr.js +82 -0
- package/step.d.ts +6 -0
- package/stepper.CCP_igpJ.js +16 -0
- package/stepper.d.ts +2 -0
- package/{switch.D7BCfyyZ.js → switch.Bqdyzi2E.js} +5 -5
- package/systemfeedback.O7tj1juR.js +10 -0
- package/tablist.DZgo49nZ.js +209 -0
- package/{tabpane.CB-eudyw.js → tabpane.C4nsUlwc.js} +2 -2
- package/tabs.BkoT7feH.js +11 -0
- package/text.cLv2PhjQ.js +10 -0
- package/textarea.DMn20z4p.js +13 -0
- package/{title.Bz_k5Vda.js → title.DuLPB-VK.js} +2 -2
- package/toast.Dvs8woTH.js +11 -0
- package/toastmanager.pi_Fhd5t.js +89 -0
- package/tooltip.QJe_bfO-.js +178 -0
- package/topbar.Bxwvp9Lf.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/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/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/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/Checkbox.CiwriItT.js +0 -88
- package/chunks/Dialog.Bv7k55He.js +0 -135
- package/chunks/Drawer.BVTvx276.js +0 -140
- package/chunks/Header.um5MlziB.js +0 -377
- package/chunks/InputFile.bVWWdePn.js +0 -220
- package/chunks/InputSearch.GOYqFCcZ.js +0 -174
- package/chunks/InputStepper.BuhPtfl-.js +0 -268
- 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/Select.D2ehd4yN.js +0 -162
- 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/InputNumberutils.test.d.ts} +0 -0
|
@@ -1,163 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { jsxs as d, jsx as h, Fragment as le } from "react/jsx-runtime";
|
|
3
|
-
import { c as A } from "./index.CEyLAtio.js";
|
|
4
|
-
import { forwardRef as ie, useState as i, useRef as ce, useEffect as m } from "react";
|
|
5
|
-
import { g as q, p as z } from "./helpers.BbWkXTr3.js";
|
|
6
|
-
import { u as de } from "./useBreakpoint.CMOR9ZOB.js";
|
|
7
|
-
import "./index.CgTHIF3K.js";
|
|
8
|
-
import { Asterisk as ue } from "../asterisk.CR60hx8S.js";
|
|
9
|
-
import { D as fe } from "./SystemFeedback.CyGbUCzT.js";
|
|
10
|
-
import '../assets/Textarea.Dq4rH9Tg.css';const pe = "ds-textarea_textarea_1s8pw_1", be = "ds-textarea_textarea--small_1s8pw_9", _e = "ds-textarea_textarea--invalid_1s8pw_121", he = "ds-textarea_textarea--resize-auto_1s8pw_145", me = "ds-textarea_root_1s8pw_155", xe = "ds-textarea_hint_1s8pw_164", we = "ds-textarea_label_1s8pw_164", ve = "ds-textarea_label--hidden_1s8pw_303", Ce = "ds-textarea_label--disabled_1s8pw_316", Se = "ds-textarea_feedback_1s8pw_336", Ae = "ds-textarea_char-count_1s8pw_341", De = "ds-textarea_char-count-announcer_1s8pw_357", a = {
|
|
11
|
-
textarea: pe,
|
|
12
|
-
textareaSmall: be,
|
|
13
|
-
textareaInvalid: _e,
|
|
14
|
-
textareaResizeAuto: he,
|
|
15
|
-
root: me,
|
|
16
|
-
hint: xe,
|
|
17
|
-
label: we,
|
|
18
|
-
labelHidden: ve,
|
|
19
|
-
labelDisabled: Ce,
|
|
20
|
-
feedback: Se,
|
|
21
|
-
charCount: Ae,
|
|
22
|
-
charCountAnnouncer: De
|
|
23
|
-
}, Ve = ["medium", "small"], Ie = ({
|
|
24
|
-
id: r,
|
|
25
|
-
label: u
|
|
26
|
-
}) => {
|
|
27
|
-
if (!r)
|
|
28
|
-
throw new Error(q("DSTextarea", 'A unique "id" prop is required. Please add a unique "id" prop to the DSTextarea component.'));
|
|
29
|
-
if (!u)
|
|
30
|
-
throw new Error(q("DSTextarea", `A label is always required for a11y reasons. Please add a descriptive "label" prop to the DSTextarea component. If you don't want to display a label, set hideLabel={true}.`));
|
|
31
|
-
}, Te = ie(({
|
|
32
|
-
id: r,
|
|
33
|
-
label: u,
|
|
34
|
-
charsLimitText: M = "Character limit reached",
|
|
35
|
-
charsRemainingText: O = "Characters remaining:",
|
|
36
|
-
className: F,
|
|
37
|
-
defaultValue: X,
|
|
38
|
-
disabled: D = !1,
|
|
39
|
-
hint: x,
|
|
40
|
-
hideLabel: Z = !1,
|
|
41
|
-
invalid: s = !1,
|
|
42
|
-
maxLength: e,
|
|
43
|
-
readonly: I = !1,
|
|
44
|
-
required: T = !1,
|
|
45
|
-
resize: f = "vertical",
|
|
46
|
-
size: G = "medium",
|
|
47
|
-
systemFeedback: n,
|
|
48
|
-
value: w,
|
|
49
|
-
wrapperClassName: J,
|
|
50
|
-
onChange: y,
|
|
51
|
-
onInput: R,
|
|
52
|
-
...K
|
|
53
|
-
}, p) => {
|
|
54
|
-
process.env.NODE_ENV !== "production" && Ie({
|
|
55
|
-
id: r,
|
|
56
|
-
label: u
|
|
57
|
-
});
|
|
58
|
-
const [Q, N] = i(X || ""), [l, E] = i(0), [U, g] = i(0), [W, $] = i("off"), [k, v] = i(n), [C, S] = i(s), H = w !== void 0, b = H ? w : Q, o = ce(null), Y = (t) => {
|
|
59
|
-
o.current = t, typeof p == "function" ? p(t) : p && (p.current = t);
|
|
60
|
-
}, L = de(Z);
|
|
61
|
-
m(() => {
|
|
62
|
-
if (!e || e <= 0)
|
|
63
|
-
return;
|
|
64
|
-
l >= e * 0.8 ? $("polite") : $("off");
|
|
65
|
-
const t = setTimeout(() => {
|
|
66
|
-
g(e - l || 0);
|
|
67
|
-
}, 1e3);
|
|
68
|
-
return () => clearTimeout(t);
|
|
69
|
-
}, [l]), m(() => {
|
|
70
|
-
N(b || ""), c(), e && e > 0 && (E(b.toString().length || 0), g(e - b.toString().length || 0));
|
|
71
|
-
}, [w]), m(() => {
|
|
72
|
-
s && n ? (v(n), S(s)) : !s && e && e >= 0 && l >= e ? (S(!0), v(M)) : (v(n), S(s));
|
|
73
|
-
}, [s, C, n, l]), m(() => {
|
|
74
|
-
if (f === "auto")
|
|
75
|
-
return c(), window.addEventListener("resize", c), () => window.removeEventListener("resize", c);
|
|
76
|
-
}, [f, o.current]);
|
|
77
|
-
const ee = A(a.root, J), te = A(a.textarea, F, {
|
|
78
|
-
// small textarea
|
|
79
|
-
[a.textareaSmall]: G === "small",
|
|
80
|
-
// invalid state
|
|
81
|
-
[a.textareaInvalid]: C,
|
|
82
|
-
// resize handling
|
|
83
|
-
[a.textareaResizeAuto]: f === "auto"
|
|
84
|
-
}), ae = A(a.label, {
|
|
85
|
-
// hide label only visually to keep them available for assistive technologies
|
|
86
|
-
[a.labelHidden]: L,
|
|
87
|
-
[a.labelDisabled]: D
|
|
88
|
-
}), V = `${r}-label`, P = `${r}-feedback`, j = `${r}-hint`, B = `${r}-char-count-announcer`, re = x ? ` ${j}` : "", c = () => {
|
|
89
|
-
if (o.current && f === "auto") {
|
|
90
|
-
o.current.style.height = "auto";
|
|
91
|
-
const t = z(o.current.scrollHeight), _ = z(2);
|
|
92
|
-
o.current.style.height = `${// We need to add 2px (border-top & border-bottom) to the scrollHeight to prevent the textarea
|
|
93
|
-
// from jumping as soon as the user starts typing.
|
|
94
|
-
t + _}rem`;
|
|
95
|
-
}
|
|
96
|
-
}, se = () => {
|
|
97
|
-
const t = [];
|
|
98
|
-
return e && e > 0 && t.push(B), s && n && t.push(P), t.length > 0 ? t.join(" ") : void 0;
|
|
99
|
-
}, oe = (t) => {
|
|
100
|
-
var _;
|
|
101
|
-
R && R(t), e && e > 0 && E(((_ = o.current) == null ? void 0 : _.value.length) || 0), c();
|
|
102
|
-
}, ne = (t) => {
|
|
103
|
-
y && y(t), H || N(t.target.value);
|
|
104
|
-
};
|
|
105
|
-
return /* @__PURE__ */ d("div", { className: ee, children: [
|
|
106
|
-
/* @__PURE__ */ d("label", { className: ae, id: V, htmlFor: r, children: [
|
|
107
|
-
u,
|
|
108
|
-
T && /* @__PURE__ */ h(ue, {})
|
|
109
|
-
] }),
|
|
110
|
-
x && /* @__PURE__ */ h("div", { className: a.hint, id: j, children: x }),
|
|
111
|
-
C && k && /* @__PURE__ */ h(fe, { className: a.feedback, message: k, variant: "error", id: P }),
|
|
112
|
-
/* @__PURE__ */ h(
|
|
113
|
-
"textarea",
|
|
114
|
-
{
|
|
115
|
-
className: te,
|
|
116
|
-
id: r,
|
|
117
|
-
...K,
|
|
118
|
-
ref: Y,
|
|
119
|
-
"aria-labelledby": `${V}${re}`,
|
|
120
|
-
"aria-describedby": se(),
|
|
121
|
-
"aria-invalid": s,
|
|
122
|
-
"aria-disabled": I,
|
|
123
|
-
maxLength: e,
|
|
124
|
-
readOnly: I,
|
|
125
|
-
required: T,
|
|
126
|
-
disabled: D,
|
|
127
|
-
value: b,
|
|
128
|
-
defaultValue: void 0,
|
|
129
|
-
rows: void 0,
|
|
130
|
-
cols: void 0,
|
|
131
|
-
onChange: ne,
|
|
132
|
-
onInput: oe
|
|
133
|
-
}
|
|
134
|
-
),
|
|
135
|
-
e !== void 0 && e > 0 && /* @__PURE__ */ d(le, { children: [
|
|
136
|
-
/* @__PURE__ */ d("div", { className: a.charCount, "aria-hidden": "true", children: [
|
|
137
|
-
l,
|
|
138
|
-
"/",
|
|
139
|
-
e
|
|
140
|
-
] }),
|
|
141
|
-
/* @__PURE__ */ d(
|
|
142
|
-
"div",
|
|
143
|
-
{
|
|
144
|
-
className: a.charCountAnnouncer,
|
|
145
|
-
id: B,
|
|
146
|
-
"aria-live": W,
|
|
147
|
-
"aria-atomic": "true",
|
|
148
|
-
children: [
|
|
149
|
-
O,
|
|
150
|
-
" ",
|
|
151
|
-
U
|
|
152
|
-
]
|
|
153
|
-
}
|
|
154
|
-
)
|
|
155
|
-
] })
|
|
156
|
-
] });
|
|
157
|
-
});
|
|
158
|
-
Te.displayName = "DSTextarea";
|
|
159
|
-
export {
|
|
160
|
-
Te as D,
|
|
161
|
-
Ve as T,
|
|
162
|
-
Ie as v
|
|
163
|
-
};
|
package/chunks/Toast.DG3WVvau.js
DELETED
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { jsx as C, jsxs as y } from "react/jsx-runtime";
|
|
3
|
-
import { d as E } from "./index.CgTHIF3K.js";
|
|
4
|
-
import { c as j } from "./index.CEyLAtio.js";
|
|
5
|
-
import { forwardRef as L } from "react";
|
|
6
|
-
import { D as M } from "./Button.Cf1CKq8N.js";
|
|
7
|
-
import { D as O } from "./Icon.NSsVrYeq.js";
|
|
8
|
-
import '../assets/Toast.CJ1zhDIT.css';const P = "ds-toast_root_gamkt_5", z = "ds-toast_root--closing_gamkt_19", A = "ds-toast_root--success_gamkt_54", R = "ds-toast_root--info_gamkt_58", $ = "ds-toast_root--warning_gamkt_62", q = "ds-toast_content_gamkt_67", F = "ds-toast_content--hide-icon_gamkt_74", G = "ds-toast_icon_gamkt_78", J = "ds-toast_message_gamkt_82", s = {
|
|
9
|
-
root: P,
|
|
10
|
-
rootClosing: z,
|
|
11
|
-
rootSuccess: A,
|
|
12
|
-
rootInfo: R,
|
|
13
|
-
rootWarning: $,
|
|
14
|
-
content: q,
|
|
15
|
-
contentHideIcon: F,
|
|
16
|
-
icon: G,
|
|
17
|
-
message: J
|
|
18
|
-
}, K = {
|
|
19
|
-
success: "circle-check-colored",
|
|
20
|
-
warning: "triangle-exclamationmark-colored",
|
|
21
|
-
info: "circle-info-colored"
|
|
22
|
-
}, Q = L((D, x) => {
|
|
23
|
-
const t = E.c(44);
|
|
24
|
-
let e, n, o, a, c, l, i, k, h;
|
|
25
|
-
t[0] !== D ? ({
|
|
26
|
-
message: o,
|
|
27
|
-
className: e,
|
|
28
|
-
closeButtonProps: n,
|
|
29
|
-
hideIcon: k,
|
|
30
|
-
variant: h,
|
|
31
|
-
onClick: a,
|
|
32
|
-
onMouseEnter: c,
|
|
33
|
-
onMouseLeave: l,
|
|
34
|
-
...i
|
|
35
|
-
} = D, t[0] = D, t[1] = e, t[2] = n, t[3] = o, t[4] = a, t[5] = c, t[6] = l, t[7] = i, t[8] = k, t[9] = h) : (e = t[1], n = t[2], o = t[3], a = t[4], c = t[5], l = t[6], i = t[7], k = t[8], h = t[9]);
|
|
36
|
-
const r = k === void 0 ? !1 : k, m = h === void 0 ? "info" : h;
|
|
37
|
-
let d;
|
|
38
|
-
t[10] !== n ? (d = n || {}, t[10] = n, t[11] = d) : d = t[11];
|
|
39
|
-
let _, v;
|
|
40
|
-
t[12] !== d ? ({
|
|
41
|
-
label: v,
|
|
42
|
-
..._
|
|
43
|
-
} = d, t[12] = d, t[13] = _, t[14] = v) : (_ = t[13], v = t[14]);
|
|
44
|
-
const b = v === void 0 ? "Close toast" : v, w = m === "success", T = m === "warning", B = m === "info";
|
|
45
|
-
let I;
|
|
46
|
-
t[15] !== e || t[16] !== w || t[17] !== T || t[18] !== B ? (I = j(s.root, e, {
|
|
47
|
-
[s.rootSuccess]: w,
|
|
48
|
-
[s.rootWarning]: T,
|
|
49
|
-
[s.rootInfo]: B
|
|
50
|
-
}), t[15] = e, t[16] = w, t[17] = T, t[18] = B, t[19] = I) : I = t[19];
|
|
51
|
-
const H = I;
|
|
52
|
-
let N;
|
|
53
|
-
t[20] !== r ? (N = j(s.content, {
|
|
54
|
-
[s.contentHideIcon]: r
|
|
55
|
-
}), t[20] = r, t[21] = N) : N = t[21];
|
|
56
|
-
const W = N;
|
|
57
|
-
let f;
|
|
58
|
-
t[22] !== r || t[23] !== m ? (f = !r && /* @__PURE__ */ C(O, { name: K[m], className: s.icon, "aria-hidden": "true" }), t[22] = r, t[23] = m, t[24] = f) : f = t[24];
|
|
59
|
-
let g;
|
|
60
|
-
t[25] !== o ? (g = /* @__PURE__ */ C("div", { className: s.message, children: o }), t[25] = o, t[26] = g) : g = t[26];
|
|
61
|
-
let u;
|
|
62
|
-
t[27] !== b || t[28] !== a || t[29] !== _ ? (u = /* @__PURE__ */ C(M, { ..._, hideLabel: !0, iconName: "cross", size: "small", variant: "ghost", onClick: a, children: b }), t[27] = b, t[28] = a, t[29] = _, t[30] = u) : u = t[30];
|
|
63
|
-
let p;
|
|
64
|
-
t[31] !== W || t[32] !== f || t[33] !== g || t[34] !== u ? (p = /* @__PURE__ */ y("div", { className: W, children: [
|
|
65
|
-
f,
|
|
66
|
-
g,
|
|
67
|
-
u
|
|
68
|
-
] }), t[31] = W, t[32] = f, t[33] = g, t[34] = u, t[35] = p) : p = t[35];
|
|
69
|
-
let S;
|
|
70
|
-
return t[36] !== o || t[37] !== c || t[38] !== l || t[39] !== x || t[40] !== i || t[41] !== H || t[42] !== p ? (S = /* @__PURE__ */ C("aside", { className: H, ref: x, popover: "manual", "data-ds-toast": !0, onMouseEnter: c, onMouseLeave: l, "aria-label": o, ...i, children: p }), t[36] = o, t[37] = c, t[38] = l, t[39] = x, t[40] = i, t[41] = H, t[42] = p, t[43] = S) : S = t[43], S;
|
|
71
|
-
});
|
|
72
|
-
Q.displayName = "DSToast";
|
|
73
|
-
export {
|
|
74
|
-
Q as D,
|
|
75
|
-
s
|
|
76
|
-
};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import * as e from "react";
|
|
3
|
-
const a = ({
|
|
4
|
-
title: l,
|
|
5
|
-
titleId: t,
|
|
6
|
-
...c
|
|
7
|
-
}) => /* @__PURE__ */ e.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "#252525", viewBox: "0 0 16 17", focusable: "false", width: "100%", height: "100%", "aria-labelledby": t, ...c }, l ? /* @__PURE__ */ e.createElement("title", { id: t }, l) : null, /* @__PURE__ */ e.createElement("path", { fillRule: "evenodd", d: "M3.333 1.333h5.334v4h4V9.5H14V4l-4-4H2v9.5h1.333zM12 4l-2-2v2z", clipRule: "evenodd" }), /* @__PURE__ */ e.createElement("path", { d: "M0 16.003v-5.206h2.014c1.5 0 2.633.988 2.633 2.603s-1.133 2.603-2.633 2.603zm1.393-1.179h.467c.843 0 1.363-.559 1.363-1.424s-.52-1.424-1.363-1.424h-.467zm6.417 1.248c-1.501 0-2.795-1.102-2.795-2.672s1.294-2.664 2.795-2.664 2.794 1.095 2.794 2.664-1.294 2.672-2.794 2.672m0-1.21c.872 0 1.37-.643 1.37-1.462 0-.82-.498-1.455-1.37-1.455s-1.37.636-1.37 1.455.497 1.462 1.37 1.462m8.19-.03c-.513.865-1.233 1.24-2.29 1.24-1.462 0-2.71-1.102-2.71-2.672s1.24-2.664 2.634-2.664c1.126 0 1.815.474 2.251 1.118l-1.049.712c-.199-.307-.52-.62-1.179-.62-.765 0-1.232.635-1.232 1.454 0 .82.482 1.462 1.278 1.462.674 0 1.003-.306 1.225-.72z" }));
|
|
8
|
-
export {
|
|
9
|
-
a as default
|
|
10
|
-
};
|