@stihl-design-system/components 1.0.0-RC.34 → 1.0.0-RC.36

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.
Files changed (161) hide show
  1. package/Placeholder.svg +1 -1
  2. package/{actionbutton.DLQJU6AV.js → actionbutton.Du5CT-Mt.js} +2 -2
  3. package/{actionlink.DEBrWfN3.js → actionlink.BK9CaQUY.js} +2 -2
  4. package/assets/Button.CmeGVEAY.css +1 -0
  5. package/assets/CustomReactSelect.BihX36Uo.css +1 -0
  6. package/assets/Fieldset.Oqu7pOBv.css +1 -0
  7. package/assets/InputFile.D7Ihod7B.css +1 -0
  8. package/assets/InputNumber.z_UqRYdv.css +1 -0
  9. package/assets/InputPassword.DZENjxJ9.css +1 -0
  10. package/assets/InputSearch.GBH9Eh6F.css +1 -0
  11. package/assets/LinkButton.88j5ckLu.css +1 -0
  12. package/assets/RadioGroup.q1lQ-HIZ.css +1 -0
  13. package/assets/Select.CL0fqx7X.css +1 -0
  14. package/assets/Slider.DWLuIsNj.css +1 -0
  15. package/assets/Textarea.B1HOakic.css +1 -0
  16. package/assets/buttonround.DBpMesfr.css +1 -0
  17. package/assets/input.RPDR8qdT.css +1 -0
  18. package/assets/radio.CsfCywxz.css +1 -0
  19. package/{banner.CI5HnDqD.js → banner.AhUeW3HM.js} +1 -1
  20. package/{breadcrumb.CtwAux3P.js → breadcrumb.DpIAQk3r.js} +3 -3
  21. package/button.CqNYOfSj.js +12 -0
  22. package/buttonround.9IS0tUqw.js +96 -0
  23. package/{checkbox.DwccD0Mp.js → checkbox.XYQI-ubx.js} +2 -2
  24. package/{checkboxgroup.ZiUFfCJ1.js → checkboxgroup.C66ZwglF.js} +2 -2
  25. package/{chip.B0s_fS8L.js → chip.B-pxhsdb.js} +2 -2
  26. package/{chipgroup.Dpu66bo5.js → chipgroup.CY3pWyLO.js} +4 -3
  27. package/chunks/{ActionButton.DOYsEHPr.js → ActionButton.BOYQYo5M.js} +1 -1
  28. package/chunks/{ActionLink.DbyciN3Y.js → ActionLink.BlwvrnPN.js} +1 -1
  29. package/chunks/{Breadcrumb.BgnpTo01.js → Breadcrumb.C_Yaz_vw.js} +2 -2
  30. package/chunks/Button.CQlIao-Z.js +139 -0
  31. package/chunks/{Checkbox.BcGXAuuP.js → Checkbox.D5X5T6Yg.js} +1 -1
  32. package/chunks/CheckboxGroup.BIspWqeW.js +74 -0
  33. package/chunks/{Chip.D6pubCZV.js → Chip.DIp5hdRH.js} +1 -1
  34. package/chunks/{CustomReactSelect.Dg3wC_VH.js → CustomReactSelect.D4kopDzX.js} +816 -800
  35. package/chunks/{Dialog.DpqSVrYR.js → Dialog.DMxHRrxo.js} +1 -1
  36. package/chunks/{Drawer.DISWybOa.js → Drawer.CatmvDHJ.js} +1 -1
  37. package/chunks/Fieldset.Bk8W5h13.js +81 -0
  38. package/chunks/{Header.7TQL_J9t.js → Header.18sOO0Gf.js} +1 -1
  39. package/chunks/{Input.utils.Dkw7gRrr.js → Input.utils.CL1u4Ctq.js} +27 -25
  40. package/chunks/InputFile.CjK3gEst.js +236 -0
  41. package/chunks/InputNumber.wfDjnz58.js +242 -0
  42. package/chunks/InputPassword.Ctb0xbwg.js +121 -0
  43. package/chunks/InputSearch.C-r5ktR8.js +149 -0
  44. package/chunks/LinkButton.CWibqvhs.js +140 -0
  45. package/chunks/{MegaMenu.CQbOeaib.js → MegaMenu.qttkjGbD.js} +7 -8
  46. package/chunks/{NavigationTabs.BwM-6CRm.js → NavigationTabs.SBNLx87A.js} +1 -1
  47. package/chunks/{Notification.CrojkJ0E.js → Notification.DYl1rcGu.js} +1 -1
  48. package/chunks/{Popover.Bb0Pjmvg.js → Popover.C9tT8xkE.js} +9 -10
  49. package/chunks/RadioGroup.BDsVAhCK.js +125 -0
  50. package/chunks/Select.BjBPN-6W.js +147 -0
  51. package/chunks/Slider.Bh2jhGKn.js +306 -0
  52. package/chunks/{Stepper.PTQdQBYf.js → Stepper.D1Yzw-gL.js} +2 -2
  53. package/chunks/{Tabs.DyP4whX0.js → Tabs.BvG-OPWa.js} +1 -1
  54. package/chunks/Textarea.DibBqiam.js +181 -0
  55. package/chunks/{Toast.ug_RjGgF.js → Toast.ldZRNpGM.js} +1 -1
  56. package/chunks/floating-ui.react.COTL3jH5.js +2984 -0
  57. package/chunks/{useBreakpoint.BzR_yaIv.js → useBreakpoint.1txsny17.js} +8 -5
  58. package/combobox.C2XUM4fM.js +67 -0
  59. package/components/Button/Button.d.ts +5 -0
  60. package/components/Button/Button.utils.d.ts +4 -5
  61. package/components/CheckboxGroup/CheckboxGroup.d.ts +14 -1
  62. package/components/Combobox/Combobox.utils.d.ts +3 -2
  63. package/components/Combobox/CustomReactSelect/CustomReactSelect.d.ts +13 -0
  64. package/components/Fieldset/Fieldset.d.ts +14 -1
  65. package/components/Input/Input.d.ts +13 -0
  66. package/components/Input/Input.utils.d.ts +2 -2
  67. package/components/InputFile/InputFile.d.ts +13 -0
  68. package/components/InputFile/InputFile.utils.d.ts +4 -2
  69. package/components/InputNumber/InputNumber.d.ts +17 -4
  70. package/components/InputNumber/InputNumber.utils.d.ts +2 -2
  71. package/components/InputPassword/InputPassword.d.ts +13 -0
  72. package/components/InputPassword/InputPassword.utils.d.ts +2 -2
  73. package/components/InputSearch/InputSearch.d.ts +13 -0
  74. package/components/InputSearch/InputSearch.utils.d.ts +2 -2
  75. package/components/LinkButton/LinkButton.d.ts +5 -0
  76. package/components/LinkButton/LinkButton.utils.d.ts +4 -5
  77. package/components/RadioGroup/RadioGroup.d.ts +13 -0
  78. package/components/RadioGroup/RadioGroup.utils.d.ts +3 -2
  79. package/components/Scroller/Scroller.test.d.ts +1 -0
  80. package/components/Select/Select.d.ts +13 -0
  81. package/components/Select/Select.utils.d.ts +2 -2
  82. package/components/Slider/Slider.d.ts +13 -0
  83. package/components/Textarea/Textarea.d.ts +13 -0
  84. package/components/Textarea/Textarea.utils.d.ts +2 -2
  85. package/{customreactselect.BFN8cYJi.js → customreactselect.BNwzk8Qi.js} +4 -3
  86. package/{dialog.CzM_Cxp0.js → dialog.D5geKDtZ.js} +2 -2
  87. package/{drawer._A9MQ8Cj.js → drawer.ucjhpIF4.js} +2 -2
  88. package/{fieldset.CId-NtI5.js → fieldset.Crx4Cb9a.js} +3 -2
  89. package/{filelist.DgVuWpR3.js → filelist.Bcu6TZRj.js} +1 -1
  90. package/{floatingactionbutton.Bsnncudt.js → floatingactionbutton.B5hJ2At2.js} +1 -1
  91. package/{header.CelAkqtp.js → header.A77yIAH3.js} +1 -1
  92. package/index.es.js +103 -102
  93. package/input.DL_M_Pg3.js +190 -0
  94. package/{inputfile.BjgJGefV.js → inputfile.iwsNHjrc.js} +6 -5
  95. package/{inputnumber.BcrxBVv0.js → inputnumber.raC_7KIP.js} +7 -6
  96. package/{inputpassword.CddmBW-T.js → inputpassword.Brte78Sr.js} +4 -4
  97. package/{inputsearch.CFOASqrd.js → inputsearch.BP0EzFcF.js} +6 -5
  98. package/{link.f8MMZo-w.js → link.BtZeNdii.js} +2 -2
  99. package/{linkbutton.BYAvi-_V.js → linkbutton.In_ROT0Z.js} +4 -4
  100. package/{logo100years.B4d_DIiB.js → logo100years.DDzCrczW.js} +10 -10
  101. package/{megamenu.Cy9Cc-mC.js → megamenu.BurL9MfF.js} +3 -3
  102. package/{navigationtabs.Dp7D2fnc.js → navigationtabs.EbmfKv1R.js} +2 -2
  103. package/{notification.B-norGiB.js → notification.tadg6lCc.js} +2 -2
  104. package/package.json +4 -3
  105. package/partials/index.js +32 -32
  106. package/{popover.DFVDZY-m.js → popover.CXq7VoZt.js} +3 -3
  107. package/radio.pyM5ma9s.js +134 -0
  108. package/{radiogroup.DaThoMfq.js → radiogroup.sdob0iPE.js} +3 -3
  109. package/{scroller.Cu7H_VCT.js → scroller.B1LijjCF.js} +1 -1
  110. package/{select.CMdKf7tC.js → select.CZ0C3yJD.js} +5 -4
  111. package/{skiptocontent.CHVh0hbr.js → skiptocontent.CAQy194o.js} +1 -1
  112. package/slider.B3u5du_Q.js +12 -0
  113. package/{step.DKf4CHGr.js → step.DaJFsafj.js} +1 -1
  114. package/{stepper.CCP_igpJ.js → stepper.DcaZESJi.js} +3 -3
  115. package/styles/scss/ds/lib/ds-internal/_input.scss +12 -3
  116. package/styles/scss/ds/lib/ds-internal/_link-button.scss +10 -2
  117. package/styles/scss/ds/lib/link-button.scss +11 -3
  118. package/{tablist.DZgo49nZ.js → tablist.mX5nQWwH.js} +1 -1
  119. package/{tabs.BkoT7feH.js → tabs.DjWfks34.js} +2 -2
  120. package/{textarea.DMn20z4p.js → textarea.69r-5faY.js} +4 -3
  121. package/{toast.Dvs8woTH.js → toast.FzO5KoiK.js} +2 -2
  122. package/{toastmanager.pi_Fhd5t.js → toastmanager.BGIYNKkT.js} +1 -1
  123. package/{tooltip.QJe_bfO-.js → tooltip.Cj3AvYgB.js} +22 -23
  124. package/{topbar.Bxwvp9Lf.js → topbar.CAujTZAE.js} +2 -2
  125. package/utils/useIsomorphicLayoutEffect.d.ts +2 -2
  126. package/assets/Button.C8sNwIeW.css +0 -1
  127. package/assets/CustomReactSelect.E_jJFVew.css +0 -1
  128. package/assets/Fieldset.CW9dBvAo.css +0 -1
  129. package/assets/InputFile.BnIvK65P.css +0 -1
  130. package/assets/InputNumber.BoiCIR1f.css +0 -1
  131. package/assets/InputPassword.Dk3_vNLV.css +0 -1
  132. package/assets/InputSearch.C1_4cVCi.css +0 -1
  133. package/assets/LinkButton.B86yacK5.css +0 -1
  134. package/assets/RadioGroup.CM2mYOzc.css +0 -1
  135. package/assets/Select.COxLltX7.css +0 -1
  136. package/assets/Slider.DPEmJ3HD.css +0 -1
  137. package/assets/Textarea.y3MW7VW0.css +0 -1
  138. package/assets/buttonround.BN3vUDc_.css +0 -1
  139. package/assets/input.DTu4g_iA.css +0 -1
  140. package/assets/radio.CgpGvYc-.css +0 -1
  141. package/button.DHuKanZP.js +0 -13
  142. package/buttonround.CMlmEDaN.js +0 -96
  143. package/chunks/Button.DCZgBNmA.js +0 -142
  144. package/chunks/CheckboxGroup.BuFd1luB.js +0 -72
  145. package/chunks/Fieldset.DiMtr6Vw.js +0 -74
  146. package/chunks/InputFile.C8nt9Fu8.js +0 -218
  147. package/chunks/InputNumber.CbH1XJfl.js +0 -267
  148. package/chunks/InputPassword.DbdjuSiJ.js +0 -136
  149. package/chunks/InputSearch.joxmugiv.js +0 -173
  150. package/chunks/LinkButton.BZgIGgc8.js +0 -132
  151. package/chunks/RadioGroup.CexC4v2Z.js +0 -104
  152. package/chunks/Select.BEIdNMML.js +0 -164
  153. package/chunks/Slider.CR0zYHeZ.js +0 -291
  154. package/chunks/Textarea.Du2RII5u.js +0 -168
  155. package/chunks/floating-ui.dom.BT8pKtCQ.js +0 -1005
  156. package/chunks/floating-ui.react.3FjeMiuN.js +0 -1999
  157. package/combobox.jG5GRA7C.js +0 -65
  158. package/input.DuEbg7d6.js +0 -206
  159. package/radio.DHUfSPai.js +0 -126
  160. package/slider.C5dK6KcG.js +0 -11
  161. /package/components/InputNumber/{InputNumberutils.test.d.ts → InputNumber.utils.test.d.ts} +0 -0
@@ -0,0 +1,121 @@
1
+ "use client";
2
+ import { jsxs as i, jsx as t } from "react/jsx-runtime";
3
+ import { c as e } from "./index.DL9mof6u.js";
4
+ import { forwardRef as F, useState as M, useRef as U } from "react";
5
+ import { u as I } from "./useBreakpoint.1txsny17.js";
6
+ import { Asterisk as G } from "../asterisk.B2ih8VwF.js";
7
+ import { D as J } from "./Button.CQlIao-Z.js";
8
+ import { D as K } from "./Popover.C9tT8xkE.js";
9
+ import { D as Q } from "./SystemFeedback.CjlARKki.js";
10
+ import { g as f } from "./helpers.CexwVao7.js";
11
+ import "./index.D-sRdssb.js";
12
+ import '../assets/InputPassword.DZENjxJ9.css';const X = "ds-input-password_input_l2ovg_1", Y = "ds-input-password_input--small_l2ovg_9", Z = "ds-input-password_input--invalid_l2ovg_121", z = "ds-input-password_input--has-action-button_l2ovg_182", ss = "ds-input-password_root_l2ovg_218", as = "ds-input-password_hint_l2ovg_218", ts = "ds-input-password_label-wrapper_l2ovg_218", os = "ds-input-password_wrapper_l2ovg_222", es = "ds-input-password_action-button_l2ovg_228", ns = "ds-input-password_label_l2ovg_218", rs = "ds-input-password_label--disabled_l2ovg_247", ls = "ds-input-password_label-wrapper--hidden_l2ovg_259", is = "ds-input-password_feedback_l2ovg_287", s = {
13
+ input: X,
14
+ inputSmall: Y,
15
+ inputInvalid: Z,
16
+ inputHasActionButton: z,
17
+ root: ss,
18
+ hint: as,
19
+ labelWrapper: ts,
20
+ wrapper: os,
21
+ actionButton: es,
22
+ label: ns,
23
+ labelDisabled: rs,
24
+ labelWrapperHidden: ls,
25
+ feedback: is
26
+ }, ps = ({
27
+ id: a,
28
+ label: n,
29
+ hideLabel: p,
30
+ popoverContent: d
31
+ }) => {
32
+ if (!a)
33
+ throw new Error(f("DSInputPassword", 'A unique "id" prop is required. Please add a unique "id" prop to the DSInputPassword component.'));
34
+ if (!n)
35
+ throw new Error(f("DSInputPassword", `A label is always required for a11y reasons. Please add a descriptive "label" prop to the DSInputPassword component. If you don't want to display a label, set hideLabel={true}.`));
36
+ p && d && console.warn(f("DSInputPassword", "Using a popover when hideLabel is set to true is not supported."));
37
+ }, ds = F(({
38
+ id: a,
39
+ label: n,
40
+ autoComplete: p = "new-password",
41
+ className: d,
42
+ disabled: c = !1,
43
+ hint: u,
44
+ hideLabel: h = !1,
45
+ invalid: r = !1,
46
+ popoverContent: w,
47
+ popoverInfoButtonProps: B,
48
+ readonly: v = !1,
49
+ required: g = !1,
50
+ togglePasswordVisibilityButtonProps: N,
51
+ size: b = "medium",
52
+ systemFeedback: m,
53
+ ...k
54
+ }, l) => {
55
+ process.env.NODE_ENV !== "production" && ps({
56
+ id: a,
57
+ label: n,
58
+ hideLabel: I(h),
59
+ popoverContent: w
60
+ });
61
+ const {
62
+ hidePasswordText: H = "Hide password",
63
+ showPasswordText: A = "Show password",
64
+ ...W
65
+ } = N || {}, [_, x] = M(!1), P = `${a}-label`, D = `${a}-feedback`, S = `${a}-hint`, L = u ? ` ${S}` : "", $ = [r && m && D].filter(Boolean).join(" ") || void 0, y = I(h), C = e(s.root, d), E = e(s.input, {
66
+ // small input
67
+ [s.inputSmall]: b === "small",
68
+ // invalid state
69
+ [s.inputInvalid]: r,
70
+ // action button - input password always has an action button
71
+ [s.inputHasActionButton]: !0
72
+ }), R = e(s.label, {
73
+ [s.labelDisabled]: c
74
+ }), T = e(s.labelWrapper, {
75
+ // hide label only visually to keep them available for assistive technologies
76
+ [s.labelWrapperHidden]: y
77
+ }), V = e(s.actionButton, {
78
+ [s.actionButtonSmall]: b === "small"
79
+ }), j = U(null), q = (o) => {
80
+ j.current = o, typeof l == "function" ? l(o) : l && (l.current = o);
81
+ }, O = () => {
82
+ x((o) => !o);
83
+ };
84
+ return /* @__PURE__ */ i("div", { className: C, children: [
85
+ /* @__PURE__ */ i("div", { className: T, children: [
86
+ /* @__PURE__ */ i("label", { className: R, id: P, htmlFor: a, children: [
87
+ n,
88
+ g && /* @__PURE__ */ t(G, {})
89
+ ] }),
90
+ w && !y && /* @__PURE__ */ t(K, { placement: "top", defaultAnchorButtonProps: B, children: w })
91
+ ] }),
92
+ u && /* @__PURE__ */ t("div", { className: s.hint, id: S, children: u }),
93
+ /* @__PURE__ */ i("div", { className: s.wrapper, children: [
94
+ /* @__PURE__ */ t(
95
+ "input",
96
+ {
97
+ className: E,
98
+ id: a,
99
+ ...k,
100
+ ref: q,
101
+ "aria-labelledby": `${P}${L}`,
102
+ "aria-describedby": $,
103
+ "aria-invalid": r,
104
+ "aria-disabled": v,
105
+ readOnly: v,
106
+ required: g,
107
+ disabled: c,
108
+ autoComplete: p,
109
+ type: _ ? "text" : "password"
110
+ }
111
+ ),
112
+ /* @__PURE__ */ t(J, { ...W, hideLabel: !0, theme: "light", iconName: _ ? "eye-closed" : "eye", variant: "ghost", className: V, size: b, onClick: O, type: "button", disabled: c, children: _ ? H : A })
113
+ ] }),
114
+ r && m && /* @__PURE__ */ t(Q, { className: s.feedback, message: m, variant: "error", id: D })
115
+ ] });
116
+ });
117
+ ds.displayName = "DSInputPassword";
118
+ export {
119
+ ds as D,
120
+ ps as v
121
+ };
@@ -0,0 +1,149 @@
1
+ "use client";
2
+ import { jsxs as h, jsx as a } from "react/jsx-runtime";
3
+ import { c as s } from "./index.DL9mof6u.js";
4
+ import { forwardRef as nt, useState as at, useRef as L, useEffect as V } from "react";
5
+ import { g as m, a as st } from "./helpers.CexwVao7.js";
6
+ import { u as O } from "./useBreakpoint.1txsny17.js";
7
+ import "./index.D-sRdssb.js";
8
+ import { Asterisk as ot } from "../asterisk.B2ih8VwF.js";
9
+ import { D as W } from "./Button.CQlIao-Z.js";
10
+ import { D as rt } from "./Popover.C9tT8xkE.js";
11
+ import { D as it } from "./SystemFeedback.CjlARKki.js";
12
+ import '../assets/InputSearch.GBH9Eh6F.css';const ct = "ds-input-search_input_37dw5_1", lt = "ds-input-search_input--small_37dw5_9", ut = "ds-input-search_input--invalid_37dw5_121", pt = "ds-input-search_input--has-action-button_37dw5_182", dt = "ds-input-search_input--has-second-action-button_37dw5_185", ht = "ds-input-search_root_37dw5_218", mt = "ds-input-search_hint_37dw5_218", bt = "ds-input-search_label-wrapper_37dw5_218", ft = "ds-input-search_wrapper_37dw5_222", _t = "ds-input-search_action-button_37dw5_228", wt = "ds-input-search_second-action-button_37dw5_232", St = "ds-input-search_label_37dw5_218", Dt = "ds-input-search_label--disabled_37dw5_251", Bt = "ds-input-search_label-wrapper--hidden_37dw5_263", It = "ds-input-search_feedback_37dw5_291", t = {
13
+ input: ct,
14
+ inputSmall: lt,
15
+ inputInvalid: ut,
16
+ inputHasActionButton: pt,
17
+ inputHasSecondActionButton: dt,
18
+ root: ht,
19
+ hint: mt,
20
+ labelWrapper: bt,
21
+ wrapper: ft,
22
+ actionButton: _t,
23
+ secondActionButton: wt,
24
+ label: St,
25
+ labelDisabled: Dt,
26
+ labelWrapperHidden: Bt,
27
+ feedback: It
28
+ }, vt = ({
29
+ id: n,
30
+ label: c,
31
+ hideLabel: b,
32
+ popoverContent: f
33
+ }) => {
34
+ if (!n)
35
+ throw new Error(m("DSInputSearch", 'A unique "id" prop is required. Please add a unique "id" prop to the DSInputSearch component.'));
36
+ if (!c)
37
+ throw new Error(m("DSInputSearch", `A label is always required for a11y reasons. Please add a descriptive "label" prop to the DSInputSearch component. If you don't want to display a label, set hideLabel={true}.`));
38
+ b && f && console.warn(m("DSInputSearch", "Using a popover when hideLabel is set to true is not supported."));
39
+ }, gt = (n) => !!st(n, "form"), Nt = nt(({
40
+ id: n,
41
+ label: c,
42
+ className: b,
43
+ clearButtonLabel: f = "Clear search field",
44
+ disabled: o = !1,
45
+ hint: _,
46
+ hideLabel: I = !1,
47
+ invalid: l = !1,
48
+ popoverContent: w,
49
+ popoverInfoButtonProps: $,
50
+ readonly: r = !1,
51
+ required: v = !1,
52
+ size: i = "medium",
53
+ systemFeedback: S,
54
+ value: D,
55
+ submitButtonProps: j,
56
+ onChange: g,
57
+ ...R
58
+ }, u) => {
59
+ process.env.NODE_ENV !== "production" && vt({
60
+ id: n,
61
+ label: c,
62
+ hideLabel: O(I),
63
+ popoverContent: w
64
+ });
65
+ const {
66
+ label: x = "Search",
67
+ onClick: q,
68
+ ...T
69
+ } = j || {}, [p, N] = at(D), B = L(null), d = L(null), F = (e) => {
70
+ d.current = e, typeof u == "function" ? u(e) : u && (u.current = e);
71
+ }, y = O(I);
72
+ V(() => {
73
+ N(D);
74
+ }, [D]), V(() => {
75
+ B.current && !gt(B.current) && process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" && console.warn(m("DSInputSearch", `The DSInputSearch component with the id "${n}" is not within a form element. This may cause issues with form submission. Please ensure the DSInputSearch component is within a form element.`));
76
+ }, []);
77
+ const A = `${n}-label`, E = `${n}-feedback`, H = `${n}-hint`, M = _ ? ` ${H}` : "", U = [l && S && E].filter(Boolean).join(" ") || void 0, k = p !== "" && p !== void 0 && p !== null, G = s(t.root, b), J = s(t.input, {
78
+ // small input
79
+ [t.inputSmall]: i === "small",
80
+ // invalid state
81
+ [t.inputInvalid]: l,
82
+ // action button - input password always has an action button
83
+ [t.inputHasActionButton]: !0,
84
+ // action second action button
85
+ [t.inputHasSecondActionButton]: k && !r && !o
86
+ }), K = s(t.label, {
87
+ [t.labelDisabled]: o
88
+ }), Q = s(t.labelWrapper, {
89
+ // hide label only visually to keep them available for assistive technologies
90
+ [t.labelWrapperHidden]: y
91
+ }), X = s(t.actionButton, {
92
+ [t.actionButtonSmall]: i === "small"
93
+ }), Y = s(t.secondActionButton, {
94
+ [t.secondActionButtonSmall]: i === "small"
95
+ }), Z = (e, C) => {
96
+ const et = Object.getPrototypeOf(e), P = Object.getOwnPropertyDescriptor(et, "value");
97
+ P?.set ? P.set.call(e, C) : e.value = C;
98
+ }, z = () => {
99
+ if (!d.current)
100
+ return;
101
+ Z(d.current, "");
102
+ const e = new Event("change", {
103
+ bubbles: !0
104
+ });
105
+ d.current?.dispatchEvent(e);
106
+ }, tt = (e) => {
107
+ N(e.target.value), g && g(e);
108
+ };
109
+ return /* @__PURE__ */ h("div", { className: G, ref: B, children: [
110
+ /* @__PURE__ */ h("div", { className: Q, children: [
111
+ /* @__PURE__ */ h("label", { className: K, id: A, htmlFor: n, children: [
112
+ c,
113
+ v && /* @__PURE__ */ a(ot, {})
114
+ ] }),
115
+ w && !y && /* @__PURE__ */ a(rt, { placement: "top", defaultAnchorButtonProps: $, children: w })
116
+ ] }),
117
+ _ && /* @__PURE__ */ a("div", { className: t.hint, id: H, children: _ }),
118
+ /* @__PURE__ */ h("div", { className: t.wrapper, children: [
119
+ /* @__PURE__ */ a(
120
+ "input",
121
+ {
122
+ className: J,
123
+ id: n,
124
+ ...R,
125
+ ref: F,
126
+ "aria-labelledby": `${A}${M}`,
127
+ "aria-describedby": U,
128
+ "aria-invalid": l,
129
+ "aria-disabled": r,
130
+ readOnly: r,
131
+ required: v,
132
+ disabled: o,
133
+ type: "search",
134
+ value: p,
135
+ onChange: tt
136
+ }
137
+ ),
138
+ k && !r && !o && /* @__PURE__ */ a(W, { hideLabel: !0, theme: "light", iconName: "cross", className: Y, variant: "ghost", size: i, onClick: z, type: "button", tabIndex: -1, children: f }),
139
+ /* @__PURE__ */ a(W, { ...T, hideLabel: !0, theme: "light", iconName: "magnifying-glass", className: X, variant: "ghost", size: i, onClick: q, type: "submit", disabled: o || r, children: x })
140
+ ] }),
141
+ l && S && /* @__PURE__ */ a(it, { className: t.feedback, message: S, variant: "error", id: E })
142
+ ] });
143
+ });
144
+ Nt.displayName = "DSInputSearch";
145
+ export {
146
+ Nt as D,
147
+ gt as i,
148
+ vt as v
149
+ };
@@ -0,0 +1,140 @@
1
+ "use client";
2
+ import { jsxs as N, jsx as g } from "react/jsx-runtime";
3
+ import { c as p } from "./index.DL9mof6u.js";
4
+ import { forwardRef as H } from "react";
5
+ import { u as i } from "./useBreakpoint.1txsny17.js";
6
+ import "./index.D-sRdssb.js";
7
+ import { D as A } from "./Icon.CDLyB7Pv.js";
8
+ import { Tooltip as b } from "../tooltip.Cj3AvYgB.js";
9
+ import { g as r } from "./helpers.CexwVao7.js";
10
+ import '../assets/LinkButton.88j5ckLu.css';const E = "ds-link-button_root_250ek_1", P = "ds-link-button_root--highlight_250ek_75", C = "ds-link-button_root--dark-highlight_250ek_75", x = "ds-link-button_root--filled_250ek_151", V = "ds-link-button_root--outline_250ek_179", j = "ds-link-button_root--ghost_250ek_206", K = "ds-link-button_root--ghost-flush_250ek_231", R = "ds-link-button_root--small_250ek_237", U = "ds-link-button_root--navigation_250ek_317", M = "ds-link-button_root--navigation--stretched_250ek_393", Z = "ds-link-button_root--navigation--stretched--icon-left_250ek_396", q = "ds-link-button_root--dark-filled_250ek_399", J = "ds-link-button_root--dark-outline_250ek_456", Q = "ds-link-button_root--dark-ghost_250ek_512", W = "ds-link-button_root--dark-ghost-flush_250ek_566", X = "ds-link-button_root--stretched_250ek_641", Y = "ds-link-button_root--icon-left_250ek_644", $ = "ds-link-button_root--icon-only_250ek_647", z = "ds-link-button_root--icon-only-small_250ek_656", oo = "ds-link-button_icon--navigation_250ek_668", to = "ds-link-button_label--hidden_250ek_676", t = {
11
+ root: E,
12
+ rootHighlight: P,
13
+ rootDarkHighlight: C,
14
+ rootFilled: x,
15
+ rootOutline: V,
16
+ rootGhost: j,
17
+ rootGhostFlush: K,
18
+ rootSmall: R,
19
+ rootNavigation: U,
20
+ rootNavigationStretched: M,
21
+ rootNavigationStretchedIconLeft: Z,
22
+ rootDarkFilled: q,
23
+ rootDarkOutline: J,
24
+ rootDarkGhost: Q,
25
+ rootDarkGhostFlush: W,
26
+ rootStretched: X,
27
+ rootIconLeft: Y,
28
+ rootIconOnly: $,
29
+ rootIconOnlySmall: z,
30
+ iconNavigation: oo,
31
+ labelHidden: to
32
+ }, go = ["medium", "small"], uo = ["filled", "highlight", "outline", "ghost", "navigation"], no = ({
33
+ hideLabel: u,
34
+ iconName: _,
35
+ iconSource: f,
36
+ isFlush: d,
37
+ size: l,
38
+ stretched: s,
39
+ theme: a,
40
+ variant: e
41
+ }) => {
42
+ if (e === "navigation" && (l === "small" && console.warn(r("DSLinkButton", 'A "size" prop should not be used in combination with variant="navigation". Please remove the "size" prop.')), a === "dark"))
43
+ throw new Error(r("DSLinkButton", 'A DSLinkButton with variant="navigation" does not support theme="dark". Please remove the "theme" prop.'));
44
+ e !== "ghost" && d ? console.warn(r("DSLinkButton", 'The "isFlush" prop only has an effect when used with variant="ghost". Please remove the "isFlush" prop or set variant="ghost".')) : e === "ghost" && d && s && console.warn(r("DSLinkButton", 'The "stretched" and "isFlush" props do not have an effect when used together. Please remove one of them.')), u && (!_ && !f && console.warn(r("DSLinkButton", 'The "hideLabel" prop is set to true but no icon is provided via "iconName" or "iconSource". Please provide an icon to ensure the link is not empty when the label is hidden.')), s && console.warn(r("DSLinkButton", 'The "stretched" and "hideLabel" props do not have an effect when used together. Please remove one of them.')));
45
+ }, eo = H(({
46
+ children: u,
47
+ aria: _,
48
+ className: f,
49
+ download: d,
50
+ hideLabel: l = !1,
51
+ href: s,
52
+ iconName: a,
53
+ iconPosition: e = "left",
54
+ iconSource: m,
55
+ isFlush: h = !1,
56
+ referrerPolicy: L,
57
+ rel: I,
58
+ size: c = "medium",
59
+ stretched: k = !1,
60
+ target: O = "_self",
61
+ theme: n = "light",
62
+ variant: o = "filled",
63
+ tooltip: D,
64
+ ...w
65
+ }, B) => {
66
+ process.env.NODE_ENV !== "production" && no({
67
+ hideLabel: i(l),
68
+ iconName: a,
69
+ iconSource: m,
70
+ isFlush: h,
71
+ size: c,
72
+ stretched: k,
73
+ theme: n,
74
+ variant: o
75
+ });
76
+ const y = p(t.root, f, {
77
+ // variant
78
+ [t.rootFilled]: o === "filled",
79
+ [t.rootHighlight]: o === "highlight",
80
+ [t.rootOutline]: o === "outline",
81
+ [t.rootGhost]: o === "ghost" && h !== !0,
82
+ [t.rootNavigation]: o === "navigation",
83
+ [t.rootNavigationStretched]: o === "navigation" && i(k) && e === "right",
84
+ [t.rootNavigationStretchedIconLeft]: o === "navigation" && i(k) && e === "left",
85
+ // isFlush
86
+ [t.rootGhostFlush]: o === "ghost" && h === !0,
87
+ // dark theme
88
+ [t.rootDarkFilled]: n === "dark" && o === "filled",
89
+ [t.rootDarkHighlight]: n === "dark" && o === "highlight",
90
+ [t.rootDarkOutline]: n === "dark" && o === "outline",
91
+ [t.rootDarkGhost]: n === "dark" && o === "ghost" && h !== !0,
92
+ // dark isFlush
93
+ [t.rootDarkGhostFlush]: n === "dark" && o === "ghost" && h === !0,
94
+ // size
95
+ [t.rootSmall]: c === "small" || o === "navigation",
96
+ // stretched
97
+ [t.rootStretched]: i(k),
98
+ // icon position
99
+ [t.rootIconLeft]: e === "left",
100
+ // icon only
101
+ [t.rootIconOnly]: i(l) && c === "medium" && o !== "navigation",
102
+ [t.rootIconOnlySmall]: i(l) && c === "small" && o !== "navigation"
103
+ }), G = p({
104
+ // hide label only visually to keep them available for assistive technologies
105
+ [t.labelHidden]: i(l) && o !== "navigation"
106
+ // if no label classes are set via classNames, return undefined to avoid empty class attribute
107
+ }) || void 0, T = p({
108
+ [t.iconNavigation]: o === "navigation"
109
+ }), F = n === "light" && o === "filled" || n === "dark" && o === "outline" || n === "dark" && o === "ghost" ? "dark" : "light", S = s === void 0 ? "span" : "a", v = /* @__PURE__ */ N(
110
+ S,
111
+ {
112
+ className: y,
113
+ ...S === "a" && {
114
+ href: s,
115
+ target: O,
116
+ rel: I,
117
+ referrerPolicy: L,
118
+ download: d
119
+ },
120
+ ..._,
121
+ ...w,
122
+ ref: B,
123
+ children: [
124
+ /* @__PURE__ */ g("span", { className: G, children: u }),
125
+ (a || m) && /* @__PURE__ */ g(A, { name: a, theme: F, source: m, className: T, "aria-hidden": "true" })
126
+ ]
127
+ }
128
+ );
129
+ return D ? /* @__PURE__ */ N(b, { placement: "top", tooltipOffset: 6, children: [
130
+ /* @__PURE__ */ g(b.Anchor, { children: v }),
131
+ /* @__PURE__ */ g(b.Content, { children: D })
132
+ ] }) : v;
133
+ });
134
+ eo.displayName = "DSLinkButton";
135
+ export {
136
+ eo as D,
137
+ go as L,
138
+ uo as a,
139
+ no as v
140
+ };
@@ -2,11 +2,10 @@
2
2
  import { jsx as N, jsxs as ne } from "react/jsx-runtime";
3
3
  import { d as P } from "./index.D-sRdssb.js";
4
4
  import { isValidElement as J, useState as se, createContext as oe, forwardRef as K, cloneElement as ae, useContext as L } from "react";
5
- import { o as le, u as re, a as ce, b as ie, c as ue, d as fe, e as Q, f as de, F as me, g as Me, h as ge } from "./floating-ui.react.3FjeMiuN.js";
5
+ import { o as le, u as re, b as ce, c as ie, d as ue, e as fe, a as de, f as Q, g as me, F as Me, h as ge, i as he } from "./floating-ui.react.COTL3jH5.js";
6
6
  import { c as q } from "./index.DL9mof6u.js";
7
7
  import { g as V, c as z } from "./helpers.CexwVao7.js";
8
- import { D as he } from "./Header.7TQL_J9t.js";
9
- import { a as pe } from "./floating-ui.dom.BT8pKtCQ.js";
8
+ import { D as pe } from "./Header.18sOO0Gf.js";
10
9
  import '../assets/MegaMenu.D5EtjFeL.css';const Se = "ds-mega-menu_root_11fw1_1", De = "ds-mega-menu_content_11fw1_109", _e = "ds-mega-menu_content--variant-full_11fw1_134", Ce = "ds-mega-menu_backdrop_11fw1_139", R = {
11
10
  root: Se,
12
11
  content: De,
@@ -28,7 +27,7 @@ import '../assets/MegaMenu.D5EtjFeL.css';const Se = "ds-mega-menu_root_11fw1_1",
28
27
  placement: "bottom-start",
29
28
  open: r,
30
29
  onOpenChange: u,
31
- whileElementsMounted: pe,
30
+ whileElementsMounted: de,
32
31
  strategy: "absolute",
33
32
  transform: !1,
34
33
  middleware: f
@@ -126,7 +125,7 @@ const Y = K((s, t) => {
126
125
  bannerAreaRef: M,
127
126
  topBarAreaRef: D,
128
127
  mainNavigationAreaRef: g
129
- } = L(he);
128
+ } = L(pe);
130
129
  let h;
131
130
  e[5] !== t || e[6] !== f.refs.setFloating ? (h = [f.refs.setFloating, t], e[5] = t, e[6] = f.refs.setFloating, e[7] = h) : h = e[7];
132
131
  const _ = Q(h);
@@ -140,7 +139,7 @@ const Y = K((s, t) => {
140
139
  const {
141
140
  isMounted: O,
142
141
  status: l
143
- } = de(o, m);
142
+ } = me(o, m);
144
143
  let p;
145
144
  e[9] !== c ? (p = q(R.root, c), e[9] = c, e[10] = p) : p = e[10];
146
145
  const S = p, I = C === "full";
@@ -151,10 +150,10 @@ const Y = K((s, t) => {
151
150
  const $ = y;
152
151
  if (!O)
153
152
  return null;
154
- const U = ge, j = Me, Z = !0;
153
+ const U = he, j = ge, Z = !0;
155
154
  let v;
156
155
  e[13] !== l ? (v = /* @__PURE__ */ N("div", { className: R.backdrop, "data-status": l }), e[13] = l, e[14] = v) : v = e[14];
157
- const B = me, ee = !1, te = !0;
156
+ const B = Me, ee = !1, te = !0;
158
157
  let E;
159
158
  e[15] !== M || e[16] !== g || e[17] !== D ? (E = () => [g?.current, D?.current, M?.current].filter(Boolean), e[15] = M, e[16] = g, e[17] = D, e[18] = E) : E = e[18];
160
159
  let w;
@@ -2,7 +2,7 @@
2
2
  import { jsx as v } from "react/jsx-runtime";
3
3
  import { d as u } from "./index.D-sRdssb.js";
4
4
  import { useState as T, useEffect as y } from "react";
5
- import { TabList as h } from "../tablist.DZgo49nZ.js";
5
+ import { TabList as h } from "../tablist.mX5nQWwH.js";
6
6
  import { g as m, r as E } from "./helpers.CexwVao7.js";
7
7
  const _ = ["left", "center"], j = ["prev", "next"], S = ({
8
8
  aria: a,
@@ -2,7 +2,7 @@
2
2
  import { jsx as H, jsxs as F } from "react/jsx-runtime";
3
3
  import { d as R } from "./index.D-sRdssb.js";
4
4
  import { c as k } from "./index.DL9mof6u.js";
5
- import { D as W } from "./Button.DCZgBNmA.js";
5
+ import { D as W } from "./Button.CQlIao-Z.js";
6
6
  import { D as j } from "./Icon.CDLyB7Pv.js";
7
7
  import '../assets/Notification.CvohYEvT.css';const y = "ds-notification_root_trmu0_1", L = "ds-notification_root--success_trmu0_29", P = "ds-notification_root--error_trmu0_33", V = "ds-notification_root--warning_trmu0_37", z = "ds-notification_root--hide-icon_trmu0_41", Y = "ds-notification_content_trmu0_55", $ = "ds-notification_content--hide-close-button_trmu0_62", q = "ds-notification_content--hide-icon_trmu0_65", G = "ds-notification_icon_trmu0_69", J = "ds-notification_message_trmu0_73", K = "ds-notification_custom-action-area_trmu0_170", e = {
8
8
  root: y,
@@ -2,11 +2,10 @@
2
2
  import { jsx as m, jsxs as O, Fragment as q } from "react/jsx-runtime";
3
3
  import { d as H } from "./index.D-sRdssb.js";
4
4
  import { useState as J, useRef as K, useMemo as Q, createContext as X, forwardRef as I, isValidElement as Y, cloneElement as Z, useContext as ee } from "react";
5
- import { u as oe, o as te, i as re, s as se, j as ne, a as ae, b as ce, c as ie, d as le, e as j, f as pe, k as de, F as ue, h as he } from "./floating-ui.react.3FjeMiuN.js";
5
+ import { u as oe, o as te, j as re, s as se, k as ne, a as ae, b as ce, c as ie, d as le, e as pe, f as j, g as de, l as ue, F as he, i as ve } from "./floating-ui.react.COTL3jH5.js";
6
6
  import { c as k } from "./index.DL9mof6u.js";
7
7
  import { g as b, c as M } from "./helpers.CexwVao7.js";
8
- import { D as ve } from "./Button.DCZgBNmA.js";
9
- import { a as fe } from "./floating-ui.dom.BT8pKtCQ.js";
8
+ import { D as fe } from "./Button.CQlIao-Z.js";
10
9
  import '../assets/Popover.CXyUaXiO.css';const me = "ds-popover_popover_xg81f_5", ge = "ds-popover_popover--no-arrow_xg81f_64", we = "ds-popover_popover--variant-grey_xg81f_67", Pe = "ds-popover_arrow_xg81f_71", De = "ds-popover_arrow--variant-grey_xg81f_90", Se = "ds-popover_default-anchor_xg81f_107", _ = {
11
10
  popover: me,
12
11
  popoverNoArrow: ge,
@@ -29,7 +28,7 @@ import '../assets/Popover.CXyUaXiO.css';const me = "ds-popover_popover_xg81f_5",
29
28
  open: c,
30
29
  strategy: "fixed",
31
30
  onOpenChange: n,
32
- whileElementsMounted: fe,
31
+ whileElementsMounted: ae,
33
32
  middleware: [te(r + (a ? 7 : 0)), re({
34
33
  // default configuration taken from https://floating-ui.com/docs/flip
35
34
  crossAxis: o.includes("-"),
@@ -40,9 +39,9 @@ import '../assets/Popover.CXyUaXiO.css';const me = "ds-popover_popover_xg81f_5",
40
39
  }), ...a ? [ne({
41
40
  element: i
42
41
  })] : []]
43
- }), v = u.context, C = ae(v, {
42
+ }), v = u.context, C = ce(v, {
44
43
  enabled: !0
45
- }), w = ce(v), E = ie(v), P = le([C, w, E]);
44
+ }), w = ie(v), E = le(v), P = pe([C, w, E]);
46
45
  return Q(() => ({
47
46
  open: c,
48
47
  popoverOffset: r,
@@ -127,7 +126,7 @@ import '../assets/Popover.CXyUaXiO.css';const me = "ds-popover_popover_xg81f_5",
127
126
  "data-state": r.open ? "open" : "closed"
128
127
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
129
128
  })) : /* @__PURE__ */ m(
130
- ve,
129
+ fe,
131
130
  {
132
131
  ...h,
133
132
  ref: n,
@@ -173,10 +172,10 @@ const $ = I((t, o) => {
173
172
  const {
174
173
  isMounted: E,
175
174
  status: P
176
- } = pe(s, w);
175
+ } = de(s, w);
177
176
  if (!E)
178
177
  return null;
179
- const R = he, F = ue, L = !1;
178
+ const R = ve, F = he, L = !1;
180
179
  let D;
181
180
  e[4] !== c || e[5] !== r ? (D = {
182
181
  ...c,
@@ -190,7 +189,7 @@ const $ = I((t, o) => {
190
189
  }), e[7] = a, e[8] = V, e[9] = G, e[10] = S) : S = e[10];
191
190
  const z = s.placement, T = g(d);
192
191
  let A;
193
- e[11] !== u || e[12] !== l || e[13] !== s || e[14] !== n || e[15] !== i ? (A = n && /* @__PURE__ */ m(de, { ref: u, context: s, className: k(_.arrow, l, {
192
+ e[11] !== u || e[12] !== l || e[13] !== s || e[14] !== n || e[15] !== i ? (A = n && /* @__PURE__ */ m(ue, { ref: u, context: s, className: k(_.arrow, l, {
194
193
  [_.arrowVariantGrey]: i === "grey" && n
195
194
  }), strokeWidth: 1, tipRadius: 1, width: 16, height: 7 }), e[11] = u, e[12] = l, e[13] = s, e[14] = n, e[15] = i, e[16] = A) : A = e[16];
196
195
  let x;