@stihl-design-system/components 1.0.0-RC.12 → 1.0.0-RC.14

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 (87) hide show
  1. package/README.md +1 -1
  2. package/{accordion.Rvtiu8Y4.js → accordion.C6_sqiW2.js} +1 -1
  3. package/{arialiveregions.Cyycgs8g.js → arialiveregions.2dxodwBP.js} +1 -1
  4. package/assets/TabPane.zywjfwo8.css +1 -0
  5. package/assets/Tabs.DUqlqP6R.css +1 -0
  6. package/assets/numberindicator.BJ9vFpnd.css +1 -0
  7. package/{button.M4nXjcUn.js → button.BfcWQZhx.js} +1 -1
  8. package/{checkbox.Cb2_ey6U.js → checkbox.Dt0OWryN.js} +1 -1
  9. package/{checkboxgroup.DBDmB-zR.js → checkboxgroup.je32bRPr.js} +2 -2
  10. package/{chip.C_1tGqvZ.js → chip.CpnDX4Ro.js} +1 -1
  11. package/{chipgroup.BvTj1ziW.js → chipgroup.Cy76KMWu.js} +17 -16
  12. package/chunks/{Accordion.CB6jB3s_.js → Accordion.Bza3TO4Y.js} +1 -1
  13. package/chunks/AriaLiveRegions.utils.Bq6Mp2bE.js +40 -0
  14. package/chunks/{CheckboxGroup.S6i5EOc4.js → CheckboxGroup.C_2ZwEQJ.js} +38 -35
  15. package/chunks/{Chip.CMlPUyOJ.js → Chip.BvlKC503.js} +30 -24
  16. package/chunks/{CustomReactSelect.Cg_XW3YK.js → CustomReactSelect.CB41lklE.js} +335 -335
  17. package/chunks/{Dialog.CudsqNag.js → Dialog.ClBjJWOh.js} +2 -2
  18. package/chunks/{Drawer.ueG2Bzr9.js → Drawer.ReDW3ohH.js} +2 -2
  19. package/chunks/{Fieldset.Cjmkgxxk.js → Fieldset.Ct_JFRs9.js} +2 -2
  20. package/chunks/{Input.utils.ChV6RJsh.js → Input.utils.DYbmWlx6.js} +19 -21
  21. package/chunks/{InputPassword.CNLbBFjx.js → InputPassword.Cvk5J8w1.js} +18 -18
  22. package/chunks/{InputSearch.CHA6mkX_.js → InputSearch.BIIW-ERk.js} +4 -4
  23. package/chunks/{InputStepper.xmWGU9pU.js → InputStepper.DGzR3KY6.js} +49 -47
  24. package/chunks/{Notification.o6pagKQy.js → Notification.uAEjPywP.js} +31 -32
  25. package/chunks/RadioGroup.D10-pe9H.js +146 -0
  26. package/chunks/{Select.E6gLFYLk.js → Select.DsLnW29U.js} +3 -3
  27. package/chunks/TabPane.CYuUi0oL.js +51 -0
  28. package/chunks/Tabs.D_JAsvoh.js +270 -0
  29. package/chunks/{Textarea.DUBSOpNL.js → Textarea.Dh9R9YdZ.js} +19 -18
  30. package/chunks/{Toast.DyEi2GEP.js → Toast.j7LPnQ36.js} +1 -1
  31. package/chunks/has-window.ut_-aShB.js +5 -0
  32. package/chunks/helpers.CcqWV-wZ.js +8 -0
  33. package/chunks/{useBreakpoint.5xBNDiCf.js → useBreakpoint.B8XxjSVJ.js} +9 -9
  34. package/chunks/useIsomorphicLayoutEffect.CnJ9AMFS.js +7 -0
  35. package/{combobox.DUzv8jzM.js → combobox.D6zXg976.js} +1 -1
  36. package/components/AriaLiveRegions/AriaLiveRegions.utils.d.ts +2 -2
  37. package/components/Combobox/CustomReactSelect/CustomReactSelect.d.ts +1 -1
  38. package/components/Input/Input.d.ts +6 -0
  39. package/components/InputPassword/InputPassword.d.ts +3 -3
  40. package/components/Notification/Notification.d.ts +2 -6
  41. package/components/NumberIndicator/NumberIndicator.d.ts +12 -0
  42. package/components/NumberIndicator/NumberIndicator.test.d.ts +1 -0
  43. package/components/NumberIndicator/NumberIndicator.utils.d.ts +2 -0
  44. package/components/Tabs/TabPane/TabPane.d.ts +10 -0
  45. package/components/Tabs/TabPane/TabPane.utils.d.ts +3 -0
  46. package/components/Tabs/TabPane/TabPane.utils.test.d.ts +1 -0
  47. package/components/Tabs/Tabs.d.ts +42 -0
  48. package/components/Tabs/Tabs.test.d.ts +1 -0
  49. package/components/Tabs/Tabs.utils.d.ts +11 -0
  50. package/components/Tabs/Tabs.utils.test.d.ts +1 -0
  51. package/{customreactselect.CXmBRqQ9.js → customreactselect.BcjDvZG6.js} +2 -2
  52. package/{dialog.DYlBUsOD.js → dialog.BkVOgeWY.js} +2 -2
  53. package/{drawer.CvhbP1ra.js → drawer.DM_NKGTQ.js} +2 -2
  54. package/{fieldset.CtUGEdLv.js → fieldset.CSNoVbL1.js} +1 -1
  55. package/index.d.ts +4 -2
  56. package/index.es.js +134 -127
  57. package/{input.BEnCFNM-.js → input.BbnmbMCI.js} +49 -47
  58. package/{inputpassword.B-D_jB9w.js → inputpassword.KnZRwWCQ.js} +3 -3
  59. package/{inputsearch.CaSpklR1.js → inputsearch.DgYJPZ2v.js} +4 -4
  60. package/inputstepper.T_of1Gz0.js +15 -0
  61. package/{link.DREJAoPG.js → link.L8O_InKe.js} +1 -1
  62. package/{notification.JWhrkEcE.js → notification.Bt9TbAAt.js} +2 -2
  63. package/numberindicator.UU7FSouT.js +26 -0
  64. package/numberindicator.d.ts +2 -0
  65. package/package.json +4 -4
  66. package/{radio.DEILy_lV.js → radio.B-2uuWHq.js} +1 -1
  67. package/{radiogroup.DeU-HdlP.js → radiogroup.DM_lF4hI.js} +3 -3
  68. package/{select.BYraFJzz.js → select.COLuwr89.js} +2 -2
  69. package/{skiptocontent.BxvpIB7H.js → skiptocontent.DxogCFvU.js} +2 -2
  70. package/styles/scss/ds/lib/theme.scss +2 -0
  71. package/tabpane.BnQBzVXw.js +8 -0
  72. package/tabpane.d.ts +2 -0
  73. package/tabs.BaELlVri.js +15 -0
  74. package/tabs.d.ts +2 -0
  75. package/textarea.Wcl_pVBb.js +13 -0
  76. package/{toast.n1QUINSA.js → toast.DQlMWU6I.js} +2 -2
  77. package/{toastmanager.B7EZ4JSI.js → toastmanager.DxHFtr5C.js} +17 -17
  78. package/utils/helpers.d.ts +7 -0
  79. package/utils/index.d.ts +1 -0
  80. package/utils/isAnimationDisabled.d.ts +1 -0
  81. package/chunks/AriaLiveRegions.utils.BGSZafnS.js +0 -34
  82. package/chunks/RadioGroup.Crj7NoOs.js +0 -137
  83. package/chunks/has-document.r9i9TxKV.js +0 -5
  84. package/chunks/helpers.B1JT5ShS.js +0 -7
  85. package/inputstepper.C7KD1-0S.js +0 -13
  86. package/textarea.CBvH0ljM.js +0 -12
  87. package/utils/has-document.d.ts +0 -1
@@ -2,8 +2,8 @@
2
2
  import { j as r } from "./jsx-runtime.C115EyI4.js";
3
3
  import { c as l } from "./index.CvOaL64Y.js";
4
4
  import { useRef as h, useState as x, useEffect as q } from "react";
5
- import { DSButton as j } from "../button.M4nXjcUn.js";
6
- import { g as B } from "./helpers.B1JT5ShS.js";
5
+ import { DSButton as j } from "../button.BfcWQZhx.js";
6
+ import { g as B } from "./helpers.CcqWV-wZ.js";
7
7
  import '../assets/Dialog.BgzebVk4.css';const E = "ds-dialog_root_1e2qq_5", C = "ds-dialog_content-wrapper_1e2qq_159", F = "ds-dialog_content-wrapper--no-footer_1e2qq_165", W = "ds-dialog_close-button_1e2qq_173", k = "ds-dialog_header_1e2qq_186", R = "ds-dialog_content_1e2qq_159", y = "ds-dialog_footer_1e2qq_188", z = "ds-dialog_header--scrollable_1e2qq_209", L = "ds-dialog_header--close-button_1e2qq_218", M = "ds-dialog_content--no-footer_1e2qq_231", H = "ds-dialog_footer--scrollable_1e2qq_238", o = {
8
8
  root: E,
9
9
  "content-wrapper": "ds-dialog_content-wrapper_1e2qq_159",
@@ -2,8 +2,8 @@
2
2
  import { j as t } from "./jsx-runtime.C115EyI4.js";
3
3
  import { c as n } from "./index.CvOaL64Y.js";
4
4
  import { useRef as w, useState as g, useEffect as b } from "react";
5
- import { DSButton as j } from "../button.M4nXjcUn.js";
6
- import { g as B } from "./helpers.B1JT5ShS.js";
5
+ import { DSButton as j } from "../button.BfcWQZhx.js";
6
+ import { g as B } from "./helpers.CcqWV-wZ.js";
7
7
  import '../assets/Drawer.Bauwxrk7.css';const R = "ds-drawer_root_1qhpc_10", W = "ds-drawer_root--end_1qhpc_68", C = "ds-drawer_content-wrapper_1qhpc_169", F = "ds-drawer_content-wrapper--no-footer_1qhpc_175", k = "ds-drawer_close-button_1qhpc_178", I = "ds-drawer_header_1qhpc_191", O = "ds-drawer_content_1qhpc_169", y = "ds-drawer_footer_1qhpc_193", z = "ds-drawer_header--scrollable_1qhpc_214", L = "ds-drawer_header--close-button_1qhpc_223", M = "ds-drawer_content--no-footer_1qhpc_237", H = "ds-drawer_footer--scrollable_1qhpc_244", o = {
8
8
  root: R,
9
9
  "root--end": "ds-drawer_root--end_1qhpc_68",
@@ -5,7 +5,7 @@ import "react";
5
5
  import { Asterisk as y } from "../asterisk.DpzETKdT.js";
6
6
  import { DSHeading as v } from "../heading.IPIYc5vW.js";
7
7
  import { DSSystemFeedback as w } from "../systemfeedback.C3Pfxxpp.js";
8
- import { g as j } from "./helpers.B1JT5ShS.js";
8
+ import { g as j } from "./helpers.CcqWV-wZ.js";
9
9
  import '../assets/Fieldset.DOdTbb7C.css';const N = "ds-fieldset_root_1opm7_1", E = "ds-fieldset_child-wrapper_1opm7_95", M = "ds-fieldset_legend_1opm7_102", q = "ds-fieldset_legend--utility--m_1opm7_106", C = "ds-fieldset_description_1opm7_118", P = "ds-fieldset_description--small_1opm7_132", T = "ds-fieldset_system-feedback_1opm7_136", i = {
10
10
  root: N,
11
11
  "child-wrapper": "ds-fieldset_child-wrapper_1opm7_95",
@@ -28,7 +28,7 @@ import '../assets/Fieldset.DOdTbb7C.css';const N = "ds-fieldset_root_1opm7_1", E
28
28
  throw new Error(
29
29
  j(
30
30
  "DSFieldset",
31
- 'A unique "id" prop is required when providing the description or systemFeedback property. Please add an unique "id" prop to the DSFieldset component.'
31
+ 'A unique "id" prop is required when providing the description or systemFeedback property. Please add a unique "id" prop to the DSFieldset component.'
32
32
  )
33
33
  );
34
34
  if (!a)
@@ -1,9 +1,8 @@
1
1
  "use client";
2
- import { useLayoutEffect as p, useEffect as u } from "react";
3
- import { h } from "./useBreakpoint.5xBNDiCf.js";
4
- import { g as t } from "./helpers.B1JT5ShS.js";
5
- import { h as l } from "./has-document.r9i9TxKV.js";
6
- const f = h ? p : u, a = 8, i = 5, U = ["medium", "small"], S = [
2
+ import { h as p } from "./has-window.ut_-aShB.js";
3
+ import { g as t } from "./helpers.CcqWV-wZ.js";
4
+ import "react";
5
+ const a = 8, i = 5, T = ["medium", "small"], u = [
7
6
  "color",
8
7
  "date",
9
8
  "datetime-local",
@@ -16,7 +15,7 @@ const f = h ? p : u, a = 8, i = 5, U = ["medium", "small"], S = [
16
15
  "text",
17
16
  "time",
18
17
  "url"
19
- ], w = [
18
+ ], l = [
20
19
  "week",
21
20
  "hidden",
22
21
  "button",
@@ -28,7 +27,7 @@ const f = h ? p : u, a = 8, i = 5, U = ["medium", "small"], S = [
28
27
  "submit",
29
28
  "image",
30
29
  "datetime"
31
- ], P = ({
30
+ ], b = ({
32
31
  id: e,
33
32
  label: n,
34
33
  prefix: o,
@@ -42,7 +41,7 @@ const f = h ? p : u, a = 8, i = 5, U = ["medium", "small"], S = [
42
41
  throw new Error(
43
42
  t(
44
43
  "DSInput",
45
- 'A unique "id" prop is required. Please add an unique "id" prop to the DSInput component.'
44
+ 'A unique "id" prop is required. Please add a unique "id" prop to the DSInput component.'
46
45
  )
47
46
  );
48
47
  if (!n)
@@ -73,8 +72,8 @@ const f = h ? p : u, a = 8, i = 5, U = ["medium", "small"], S = [
73
72
  "Suffix and an action button cannot be used at the same time."
74
73
  )
75
74
  );
76
- }, g = (e) => {
77
- if (!S.includes(e) && !w.includes(e))
75
+ }, D = (e) => {
76
+ if (!u.includes(e) && !l.includes(e))
78
77
  throw new Error(
79
78
  t(
80
79
  "DSInput",
@@ -96,18 +95,17 @@ const f = h ? p : u, a = 8, i = 5, U = ["medium", "small"], S = [
96
95
  hidden: 'Type hidden is not supported by DSInput component. Use a default <input type="hidden" /> element instead.'
97
96
  };
98
97
  n[e] && console.warn(t("DSInput", n[e]));
99
- }, I = () => l && "showPicker" in HTMLInputElement.prototype && !!window.navigator.userAgent.match(/chrome|chromium|crios|edg/i), E = (e, n) => I() && (e || n), k = (e) => e === "date" || e === "datetime-local" || e === "month", x = (e) => e === "time";
98
+ }, h = () => p && "showPicker" in HTMLInputElement.prototype && !!window.navigator.userAgent.match(/chrome|chromium|crios|edg/i), y = (e, n) => h() && (e || n), U = (e) => e === "date" || e === "datetime-local" || e === "month", P = (e) => e === "time";
100
99
  export {
101
- U as I,
100
+ T as I,
102
101
  a as M,
103
- S,
104
- w as U,
102
+ u as S,
103
+ l as U,
105
104
  i as a,
106
- g as b,
107
- x as c,
108
- I as h,
109
- k as i,
110
- E as s,
111
- f as u,
112
- P as v
105
+ D as b,
106
+ P as c,
107
+ h,
108
+ U as i,
109
+ y as s,
110
+ b as v
113
111
  };
@@ -2,11 +2,11 @@
2
2
  import { j as a } from "./jsx-runtime.C115EyI4.js";
3
3
  import { c as i } from "./index.CvOaL64Y.js";
4
4
  import { useState as A } from "react";
5
- import { u as C } from "./useBreakpoint.5xBNDiCf.js";
6
- import { Asterisk as L } from "../asterisk.DpzETKdT.js";
7
- import { DSButton as $ } from "../button.M4nXjcUn.js";
5
+ import { u as L } from "./useBreakpoint.B8XxjSVJ.js";
6
+ import { Asterisk as C } from "../asterisk.DpzETKdT.js";
7
+ import { DSButton as $ } from "../button.BfcWQZhx.js";
8
8
  import { DSSystemFeedback as E } from "../systemfeedback.C3Pfxxpp.js";
9
- import { g as m } from "./helpers.B1JT5ShS.js";
9
+ import { g as m } from "./helpers.CcqWV-wZ.js";
10
10
  import '../assets/InputPassword.CG7Ugu73.css';const q = "ds-input-password_input_1842u_1", R = "ds-input-password_input--invalid_1842u_113", V = "ds-input-password_input--small_1842u_120", O = "ds-input-password_input--has-leading-icon_1842u_173", F = "ds-input-password_input--has-action-button_1842u_176", M = "ds-input-password_input--has-second-action-button_1842u_179", T = "ds-input-password_input--has-affix_1842u_191", G = "ds-input-password_input--is-ready_1842u_205", J = "ds-input-password_root_1842u_212", K = "ds-input-password_hint_1842u_220", Q = "ds-input-password_label_1842u_220", U = "ds-input-password_wrapper_1842u_224", W = "ds-input-password_action-button_1842u_230", X = "ds-input-password_label--hidden_1842u_248", Y = "ds-input-password_label--disabled_1842u_261", Z = "ds-input-password_feedback_1842u_281", s = {
11
11
  input: q,
12
12
  "input--invalid": "ds-input-password_input--invalid_1842u_113",
@@ -39,7 +39,7 @@ import '../assets/InputPassword.CG7Ugu73.css';const q = "ds-input-password_input
39
39
  throw new Error(
40
40
  m(
41
41
  "DSInputPassword",
42
- 'A unique "id" prop is required. Please add an unique "id" prop to the DSInputPassword component.'
42
+ 'A unique "id" prop is required. Please add a unique "id" prop to the DSInputPassword component.'
43
43
  )
44
44
  );
45
45
  if (!n)
@@ -49,10 +49,10 @@ import '../assets/InputPassword.CG7Ugu73.css';const q = "ds-input-password_input
49
49
  `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}.`
50
50
  )
51
51
  );
52
- }, ps = ({
52
+ }, ds = ({
53
53
  id: t,
54
54
  label: n,
55
- autocomplete: h = "new-password",
55
+ autoComplete: h = "new-password",
56
56
  className: f,
57
57
  disabled: e = !1,
58
58
  hidePasswordText: y = "Hide password",
@@ -62,17 +62,17 @@ import '../assets/InputPassword.CG7Ugu73.css';const q = "ds-input-password_input
62
62
  readonly: r = !1,
63
63
  required: c = !1,
64
64
  showPasswordText: x = "Show password",
65
- size: p = "medium",
66
- systemFeedback: d,
65
+ size: d = "medium",
66
+ systemFeedback: p,
67
67
  ...I
68
68
  }) => {
69
69
  process.env.NODE_ENV !== "production" && z({
70
70
  id: t,
71
71
  label: n
72
72
  });
73
- const [l, v] = A(!1), _ = `${t}-label`, w = `${t}-feedback`, b = `${t}-hint`, B = u ? ` ${b}` : "", H = C(S), g = i(s.root, f), D = i(s.input, {
73
+ const [l, v] = A(!1), _ = `${t}-label`, w = `${t}-feedback`, b = `${t}-hint`, B = u ? ` ${b}` : "", H = L(S), g = i(s.root, f), D = i(s.input, {
74
74
  // small input
75
- [s.inputSmall]: p === "small",
75
+ [s.inputSmall]: d === "small",
76
76
  // invalid state
77
77
  [s.inputInvalid]: o,
78
78
  // action button - input password always has an action button
@@ -82,21 +82,21 @@ import '../assets/InputPassword.CG7Ugu73.css';const q = "ds-input-password_input
82
82
  [s.labelHidden]: H,
83
83
  [s.labelDisabled]: e
84
84
  }), N = i(s.actionButton, {
85
- [s.actionButtonSmall]: p === "small"
85
+ [s.actionButtonSmall]: d === "small"
86
86
  }), j = () => {
87
87
  v((k) => !k);
88
88
  };
89
89
  return /* @__PURE__ */ a.jsxs("div", { className: g, children: [
90
90
  /* @__PURE__ */ a.jsxs("label", { className: P, id: _, htmlFor: t, children: [
91
91
  n,
92
- c && /* @__PURE__ */ a.jsx(L, {})
92
+ c && /* @__PURE__ */ a.jsx(C, {})
93
93
  ] }),
94
94
  u && /* @__PURE__ */ a.jsx("div", { className: s.hint, id: b, children: u }),
95
- o && d && /* @__PURE__ */ a.jsx(
95
+ o && p && /* @__PURE__ */ a.jsx(
96
96
  E,
97
97
  {
98
98
  className: s.feedback,
99
- message: d,
99
+ message: p,
100
100
  type: "invalid",
101
101
  id: w
102
102
  }
@@ -109,7 +109,7 @@ import '../assets/InputPassword.CG7Ugu73.css';const q = "ds-input-password_input
109
109
  id: t,
110
110
  ...I,
111
111
  "aria-labelledby": `${_}${B}`,
112
- "aria-describedby": o && d ? w : void 0,
112
+ "aria-describedby": o && p ? w : void 0,
113
113
  "aria-invalid": o,
114
114
  "aria-disabled": r,
115
115
  readOnly: r,
@@ -127,7 +127,7 @@ import '../assets/InputPassword.CG7Ugu73.css';const q = "ds-input-password_input
127
127
  iconName: l ? "eye-closed" : "eye",
128
128
  variant: "ghost",
129
129
  className: N,
130
- size: p,
130
+ size: d,
131
131
  onClick: j,
132
132
  type: "button",
133
133
  disabled: e,
@@ -138,6 +138,6 @@ import '../assets/InputPassword.CG7Ugu73.css';const q = "ds-input-password_input
138
138
  ] });
139
139
  };
140
140
  export {
141
- ps as D,
141
+ ds as D,
142
142
  z as v
143
143
  };
@@ -2,10 +2,10 @@
2
2
  import { j as e } from "./jsx-runtime.C115EyI4.js";
3
3
  import { c as u } from "./index.CvOaL64Y.js";
4
4
  import { useState as J, useRef as D, useEffect as x } from "react";
5
- import { g as w, a as K } from "./helpers.B1JT5ShS.js";
6
- import { u as Q } from "./useBreakpoint.5xBNDiCf.js";
5
+ import { g as w, a as K } from "./helpers.CcqWV-wZ.js";
6
+ import { u as Q } from "./useBreakpoint.B8XxjSVJ.js";
7
7
  import { Asterisk as U } from "../asterisk.DpzETKdT.js";
8
- import { DSButton as N } from "../button.M4nXjcUn.js";
8
+ import { DSButton as N } from "../button.BfcWQZhx.js";
9
9
  import { DSSystemFeedback as X } from "../systemfeedback.C3Pfxxpp.js";
10
10
  import '../assets/InputSearch.CseChMc-.css';const Y = "ds-input-search_input_wn1tk_1", Z = "ds-input-search_input--invalid_wn1tk_113", z = "ds-input-search_input--small_wn1tk_120", tt = "ds-input-search_input--has-leading-icon_wn1tk_173", nt = "ds-input-search_input--has-action-button_wn1tk_176", et = "ds-input-search_input--has-second-action-button_wn1tk_179", st = "ds-input-search_input--has-affix_wn1tk_191", at = "ds-input-search_input--is-ready_wn1tk_205", it = "ds-input-search_root_wn1tk_212", ot = "ds-input-search_hint_wn1tk_220", ct = "ds-input-search_label_wn1tk_220", ut = "ds-input-search_wrapper_wn1tk_224", rt = "ds-input-search_action-button_wn1tk_230", lt = "ds-input-search_second-action-button_wn1tk_234", pt = "ds-input-search_label--hidden_wn1tk_252", dt = "ds-input-search_label--disabled_wn1tk_265", ht = "ds-input-search_feedback_wn1tk_285", t = {
11
11
  input: Y,
@@ -41,7 +41,7 @@ import '../assets/InputSearch.CseChMc-.css';const Y = "ds-input-search_input_wn1
41
41
  throw new Error(
42
42
  w(
43
43
  "DSInputSearch",
44
- 'A unique "id" prop is required. Please add an unique "id" prop to the DSInputSearch component.'
44
+ 'A unique "id" prop is required. Please add a unique "id" prop to the DSInputSearch component.'
45
45
  )
46
46
  );
47
47
  if (!r)
@@ -1,54 +1,56 @@
1
1
  "use client";
2
2
  import { j as n } from "./jsx-runtime.C115EyI4.js";
3
3
  import { c as u } from "./index.CvOaL64Y.js";
4
- import { useState as m, useRef as N, useEffect as w } from "react";
5
- import { u as mt } from "./useBreakpoint.5xBNDiCf.js";
6
- import { M as E, a as H, u as M } from "./Input.utils.ChV6RJsh.js";
7
- import { Asterisk as ft } from "../asterisk.DpzETKdT.js";
8
- import { DSButton as X } from "../button.M4nXjcUn.js";
9
- import { DSSystemFeedback as bt } from "../systemfeedback.C3Pfxxpp.js";
10
- import { g as S } from "./helpers.B1JT5ShS.js";
11
- import '../assets/InputStepper.C0eAYr7P.css';const gt = "ds-input-stepper_input_1pm8g_1", ht = "ds-input-stepper_input--invalid_1pm8g_113", xt = "ds-input-stepper_input--small_1pm8g_120", St = "ds-input-stepper_input--has-leading-icon_1pm8g_173", yt = "ds-input-stepper_input--has-action-button_1pm8g_176", It = "ds-input-stepper_input--has-second-action-button_1pm8g_179", vt = "ds-input-stepper_input--has-affix_1pm8g_191", At = "ds-input-stepper_input--is-ready_1pm8g_205", Dt = "ds-input-stepper_root_1pm8g_215", Bt = "ds-input-stepper_hint_1pm8g_223", Nt = "ds-input-stepper_label_1pm8g_223", wt = "ds-input-stepper_wrapper_1pm8g_227", Et = "ds-input-stepper_affix_1pm8g_233", Ht = "ds-input-stepper_affix--small_1pm8g_254", Lt = "ds-input-stepper_affix--disabled_1pm8g_267", jt = "ds-input-stepper_prefix_1pm8g_275", Rt = "ds-input-stepper_affix--readonly_1pm8g_278", kt = "ds-input-stepper_suffix_1pm8g_288", Ct = "ds-input-stepper_action-button_1pm8g_295", $t = "ds-input-stepper_label--hidden_1pm8g_313", Ft = "ds-input-stepper_label--disabled_1pm8g_326", Vt = "ds-input-stepper_feedback_1pm8g_346", Pt = "ds-input-stepper_second-action-button_1pm8g_360", Tt = "ds-input-stepper_value-announcer_1pm8g_364", e = {
12
- input: gt,
4
+ import { useState as _, useRef as N, useEffect as w } from "react";
5
+ import { h as _t } from "./has-window.ut_-aShB.js";
6
+ import { u as ft } from "./useBreakpoint.B8XxjSVJ.js";
7
+ import { u as M } from "./useIsomorphicLayoutEffect.CnJ9AMFS.js";
8
+ import { Asterisk as bt } from "../asterisk.DpzETKdT.js";
9
+ import { DSButton as X } from "../button.BfcWQZhx.js";
10
+ import { M as E, a as H } from "./Input.utils.DYbmWlx6.js";
11
+ import { DSSystemFeedback as gt } from "../systemfeedback.C3Pfxxpp.js";
12
+ import { g as S } from "./helpers.CcqWV-wZ.js";
13
+ import '../assets/InputStepper.C0eAYr7P.css';const ht = "ds-input-stepper_input_1pm8g_1", xt = "ds-input-stepper_input--invalid_1pm8g_113", St = "ds-input-stepper_input--small_1pm8g_120", yt = "ds-input-stepper_input--has-leading-icon_1pm8g_173", It = "ds-input-stepper_input--has-action-button_1pm8g_176", vt = "ds-input-stepper_input--has-second-action-button_1pm8g_179", At = "ds-input-stepper_input--has-affix_1pm8g_191", Dt = "ds-input-stepper_input--is-ready_1pm8g_205", Bt = "ds-input-stepper_root_1pm8g_215", Nt = "ds-input-stepper_hint_1pm8g_223", wt = "ds-input-stepper_label_1pm8g_223", Et = "ds-input-stepper_wrapper_1pm8g_227", Ht = "ds-input-stepper_affix_1pm8g_233", Lt = "ds-input-stepper_affix--small_1pm8g_254", jt = "ds-input-stepper_affix--disabled_1pm8g_267", Rt = "ds-input-stepper_prefix_1pm8g_275", kt = "ds-input-stepper_affix--readonly_1pm8g_278", Ct = "ds-input-stepper_suffix_1pm8g_288", $t = "ds-input-stepper_action-button_1pm8g_295", Ft = "ds-input-stepper_label--hidden_1pm8g_313", Vt = "ds-input-stepper_label--disabled_1pm8g_326", Pt = "ds-input-stepper_feedback_1pm8g_346", Tt = "ds-input-stepper_second-action-button_1pm8g_360", Wt = "ds-input-stepper_value-announcer_1pm8g_364", e = {
14
+ input: ht,
13
15
  "input--invalid": "ds-input-stepper_input--invalid_1pm8g_113",
14
- inputInvalid: ht,
16
+ inputInvalid: xt,
15
17
  "input--small": "ds-input-stepper_input--small_1pm8g_120",
16
- inputSmall: xt,
18
+ inputSmall: St,
17
19
  "input--has-leading-icon": "ds-input-stepper_input--has-leading-icon_1pm8g_173",
18
- inputHasLeadingIcon: St,
20
+ inputHasLeadingIcon: yt,
19
21
  "input--has-action-button": "ds-input-stepper_input--has-action-button_1pm8g_176",
20
- inputHasActionButton: yt,
22
+ inputHasActionButton: It,
21
23
  "input--has-second-action-button": "ds-input-stepper_input--has-second-action-button_1pm8g_179",
22
- inputHasSecondActionButton: It,
24
+ inputHasSecondActionButton: vt,
23
25
  "input--has-affix": "ds-input-stepper_input--has-affix_1pm8g_191",
24
- inputHasAffix: vt,
26
+ inputHasAffix: At,
25
27
  "input--is-ready": "ds-input-stepper_input--is-ready_1pm8g_205",
26
- inputIsReady: At,
27
- root: Dt,
28
- hint: Bt,
29
- label: Nt,
30
- wrapper: wt,
31
- affix: Et,
28
+ inputIsReady: Dt,
29
+ root: Bt,
30
+ hint: Nt,
31
+ label: wt,
32
+ wrapper: Et,
33
+ affix: Ht,
32
34
  "affix--small": "ds-input-stepper_affix--small_1pm8g_254",
33
- affixSmall: Ht,
35
+ affixSmall: Lt,
34
36
  "affix--disabled": "ds-input-stepper_affix--disabled_1pm8g_267",
35
- affixDisabled: Lt,
36
- prefix: jt,
37
+ affixDisabled: jt,
38
+ prefix: Rt,
37
39
  "affix--readonly": "ds-input-stepper_affix--readonly_1pm8g_278",
38
- affixReadonly: Rt,
39
- suffix: kt,
40
+ affixReadonly: kt,
41
+ suffix: Ct,
40
42
  "action-button": "ds-input-stepper_action-button_1pm8g_295",
41
- actionButton: Ct,
43
+ actionButton: $t,
42
44
  "label--hidden": "ds-input-stepper_label--hidden_1pm8g_313",
43
- labelHidden: $t,
45
+ labelHidden: Ft,
44
46
  "label--disabled": "ds-input-stepper_label--disabled_1pm8g_326",
45
- labelDisabled: Ft,
46
- feedback: Vt,
47
+ labelDisabled: Vt,
48
+ feedback: Pt,
47
49
  "second-action-button": "ds-input-stepper_second-action-button_1pm8g_360",
48
- secondActionButton: Pt,
50
+ secondActionButton: Tt,
49
51
  "value-announcer": "ds-input-stepper_value-announcer_1pm8g_364",
50
- valueAnnouncer: Tt
51
- }, Wt = ({
52
+ valueAnnouncer: Wt
53
+ }, Mt = ({
52
54
  id: s,
53
55
  label: f,
54
56
  prefix: b,
@@ -58,7 +60,7 @@ import '../assets/InputStepper.C0eAYr7P.css';const gt = "ds-input-stepper_input_
58
60
  throw new Error(
59
61
  S(
60
62
  "DSInputStepper",
61
- 'A unique "id" prop is required. Please add an unique "id" prop to the DSInputStepper component.'
63
+ 'A unique "id" prop is required. Please add a unique "id" prop to the DSInputStepper component.'
62
64
  )
63
65
  );
64
66
  if (!f)
@@ -79,7 +81,7 @@ import '../assets/InputStepper.C0eAYr7P.css';const gt = "ds-input-stepper_input_
79
81
  `Suffix length must not exceed ${H} characters.`
80
82
  )
81
83
  );
82
- }, Yt = ({
84
+ }, te = ({
83
85
  id: s,
84
86
  label: f,
85
87
  announcementText: b = "Value changed to",
@@ -103,13 +105,13 @@ import '../assets/InputStepper.C0eAYr7P.css';const gt = "ds-input-stepper_input_
103
105
  onChange: k,
104
106
  ...J
105
107
  }) => {
106
- process.env.NODE_ENV !== "production" && Wt({
108
+ process.env.NODE_ENV !== "production" && Mt({
107
109
  id: s,
108
110
  label: f,
109
111
  prefix: r,
110
112
  suffix: c
111
113
  });
112
- const [K, Q] = m(!1), [_, v] = m(x), [A, C] = m(""), [Y, Z] = m(!1), [z, tt] = m({}), a = N(null), et = r == null ? void 0 : r.substring(0, E), D = N(null), nt = c == null ? void 0 : c.substring(0, H), B = N(null), st = mt(G);
114
+ const [K, Q] = _(!1), [m, v] = _(x), [A, C] = _(""), [Y, Z] = _(!1), [z, tt] = _({}), a = N(null), et = r == null ? void 0 : r.substring(0, E), D = N(null), nt = c == null ? void 0 : c.substring(0, H), B = N(null), st = ft(G);
113
115
  w(() => {
114
116
  x && v(x);
115
117
  }, [x]), w(() => {
@@ -143,7 +145,7 @@ import '../assets/InputStepper.C0eAYr7P.css';const gt = "ds-input-stepper_input_
143
145
  }
144
146
  tt(i), Q(!0);
145
147
  }, [r, c, p, Y]), M(() => {
146
- (async () => {
148
+ _t && (async () => {
147
149
  "fonts" in document && (await document.fonts.load(
148
150
  '1em "STIHL Contraface Digital Text Regular"'
149
151
  ), Z(!0));
@@ -185,13 +187,13 @@ import '../assets/InputStepper.C0eAYr7P.css';const gt = "ds-input-stepper_input_
185
187
  }, dt = () => {
186
188
  var t;
187
189
  (t = a.current) == null || t.stepUp(), W();
188
- }, _t = (t) => {
190
+ }, mt = (t) => {
189
191
  v(t.target.value), k && k(t);
190
192
  };
191
193
  return /* @__PURE__ */ n.jsxs("div", { className: pt, children: [
192
194
  /* @__PURE__ */ n.jsxs("label", { className: ot, id: F, htmlFor: s, children: [
193
195
  f,
194
- R && /* @__PURE__ */ n.jsx(ft, {})
196
+ R && /* @__PURE__ */ n.jsx(bt, {})
195
197
  ] }),
196
198
  y && /* @__PURE__ */ n.jsx("div", { className: e.hint, id: P, children: y }),
197
199
  /* @__PURE__ */ n.jsx(
@@ -205,7 +207,7 @@ import '../assets/InputStepper.C0eAYr7P.css';const gt = "ds-input-stepper_input_
205
207
  }
206
208
  ),
207
209
  h && I && /* @__PURE__ */ n.jsx(
208
- bt,
210
+ gt,
209
211
  {
210
212
  className: e.feedback,
211
213
  message: I,
@@ -242,8 +244,8 @@ import '../assets/InputStepper.C0eAYr7P.css';const gt = "ds-input-stepper_input_
242
244
  required: R,
243
245
  step: U,
244
246
  type: "number",
245
- value: _,
246
- onChange: _t
247
+ value: m,
248
+ onChange: mt
247
249
  }
248
250
  ),
249
251
  c && /* @__PURE__ */ n.jsx(
@@ -265,7 +267,7 @@ import '../assets/InputStepper.C0eAYr7P.css';const gt = "ds-input-stepper_input_
265
267
  className: ut,
266
268
  size: p,
267
269
  onClick: ct,
268
- disabled: l || d || !!_ && Number(_) <= j,
270
+ disabled: l || d || !!m && Number(m) <= j,
269
271
  type: "button",
270
272
  children: q
271
273
  }
@@ -280,7 +282,7 @@ import '../assets/InputStepper.C0eAYr7P.css';const gt = "ds-input-stepper_input_
280
282
  className: lt,
281
283
  size: p,
282
284
  onClick: dt,
283
- disabled: l || d || !!_ && Number(_) >= L,
285
+ disabled: l || d || !!m && Number(m) >= L,
284
286
  type: "button",
285
287
  children: O
286
288
  }
@@ -289,6 +291,6 @@ import '../assets/InputStepper.C0eAYr7P.css';const gt = "ds-input-stepper_input_
289
291
  ] });
290
292
  };
291
293
  export {
292
- Yt as D,
293
- Wt as v
294
+ te as D,
295
+ Mt as v
294
296
  };
@@ -1,38 +1,38 @@
1
1
  "use client";
2
2
  import { j as n } from "./jsx-runtime.C115EyI4.js";
3
3
  import { c as s } from "./index.CvOaL64Y.js";
4
- import { DSButton as u } from "../button.M4nXjcUn.js";
5
- import { D as j } from "./Icon.BCmt_XBG.js";
6
- import '../assets/Notification.DbRapUJo.css';const g = "ds-notification_root_1cajm_1", N = "ds-notification_root--success_1cajm_26", h = "ds-notification_root--error_1cajm_30", I = "ds-notification_root--warning_1cajm_34", x = "ds-notification_root--hide-icon_1cajm_38", A = "ds-notification_content_1cajm_52", C = "ds-notification_content--hide-close-button_1cajm_59", H = "ds-notification_content--hide-icon_1cajm_62", S = "ds-notification_icon_1cajm_66", p = "ds-notification_message_1cajm_70", w = "ds-notification_custom-action-area_1cajm_167", o = {
7
- root: g,
4
+ import { DSButton as f } from "../button.BfcWQZhx.js";
5
+ import { D as u } from "./Icon.BCmt_XBG.js";
6
+ import '../assets/Notification.DbRapUJo.css';const j = "ds-notification_root_1cajm_1", g = "ds-notification_root--success_1cajm_26", N = "ds-notification_root--error_1cajm_30", h = "ds-notification_root--warning_1cajm_34", I = "ds-notification_root--hide-icon_1cajm_38", x = "ds-notification_content_1cajm_52", A = "ds-notification_content--hide-close-button_1cajm_59", H = "ds-notification_content--hide-icon_1cajm_62", C = "ds-notification_icon_1cajm_66", S = "ds-notification_message_1cajm_70", p = "ds-notification_custom-action-area_1cajm_167", o = {
7
+ root: j,
8
8
  "root--success": "ds-notification_root--success_1cajm_26",
9
- rootSuccess: N,
9
+ rootSuccess: g,
10
10
  "root--error": "ds-notification_root--error_1cajm_30",
11
- rootError: h,
11
+ rootError: N,
12
12
  "root--warning": "ds-notification_root--warning_1cajm_34",
13
- rootWarning: I,
13
+ rootWarning: h,
14
14
  "root--hide-icon": "ds-notification_root--hide-icon_1cajm_38",
15
- rootHideIcon: x,
16
- content: A,
15
+ rootHideIcon: I,
16
+ content: x,
17
17
  "content--hide-close-button": "ds-notification_content--hide-close-button_1cajm_59",
18
- contentHideCloseButton: C,
18
+ contentHideCloseButton: A,
19
19
  "content--hide-icon": "ds-notification_content--hide-icon_1cajm_62",
20
20
  contentHideIcon: H,
21
- icon: S,
22
- message: p,
21
+ icon: C,
22
+ message: S,
23
23
  "custom-action-area": "ds-notification_custom-action-area_1cajm_167",
24
- customActionArea: w
25
- }, R = [
24
+ customActionArea: p
25
+ }, k = [
26
26
  "success",
27
27
  "error",
28
28
  "warning",
29
29
  "info"
30
- ], O = {
30
+ ], w = {
31
31
  success: "circle-check-colored",
32
32
  error: "diamond-exclamationmark-colored",
33
33
  warning: "triangle-exclamationmark-colored",
34
34
  info: "circle-info-colored"
35
- }, T = {
35
+ }, O = {
36
36
  error: "alert",
37
37
  warning: "alert",
38
38
  info: "status",
@@ -42,52 +42,51 @@ import '../assets/Notification.DbRapUJo.css';const g = "ds-notification_root_1ca
42
42
  variant: t = "info",
43
43
  className: a,
44
44
  closeButtonLabel: _ = "Close notification",
45
- customActionArea: i,
46
- hideCloseButton: e = !1,
45
+ customActionArea: e,
47
46
  hideIcon: c = !1,
48
- onClose: m,
47
+ onClose: i,
49
48
  ...d
50
49
  }) => {
51
- const l = s(o.root, a, {
50
+ const m = s(o.root, a, {
52
51
  [o.rootSuccess]: t === "success",
53
52
  [o.rootError]: t === "error",
54
53
  [o.rootWarning]: t === "warning",
55
54
  [o.rootInfo]: t === "info",
56
55
  [o.rootHideIcon]: c
57
- }), f = s(o.content, {
58
- [o.contentHideCloseButton]: e,
56
+ }), l = s(o.content, {
57
+ [o.contentHideCloseButton]: !i,
59
58
  [o.contentHideIcon]: c
60
59
  });
61
- return /* @__PURE__ */ n.jsxs("div", { className: l, ...d, role: T[t], children: [
62
- /* @__PURE__ */ n.jsxs("div", { className: f, children: [
60
+ return /* @__PURE__ */ n.jsxs("div", { className: m, ...d, role: O[t], children: [
61
+ /* @__PURE__ */ n.jsxs("div", { className: l, children: [
63
62
  !c && /* @__PURE__ */ n.jsx(
64
- j,
63
+ u,
65
64
  {
66
- name: O[t],
65
+ name: w[t],
67
66
  className: o.icon,
68
67
  "aria-hidden": "true"
69
68
  }
70
69
  ),
71
70
  /* @__PURE__ */ n.jsx("div", { className: o.message, children: r }),
72
- !e && /* @__PURE__ */ n.jsx(
73
- u,
71
+ i && /* @__PURE__ */ n.jsx(
72
+ f,
74
73
  {
75
74
  hideLabel: !0,
76
75
  iconName: "cross",
77
76
  isFlush: !0,
78
77
  variant: "ghost",
79
78
  size: "small",
80
- onClick: m,
79
+ onClick: i,
81
80
  type: "button",
82
81
  children: _
83
82
  }
84
83
  )
85
84
  ] }),
86
- i && /* @__PURE__ */ n.jsx("div", { className: s({ [o.customActionArea]: !c }), children: i })
85
+ e && /* @__PURE__ */ n.jsx("div", { className: s({ [o.customActionArea]: !c }), children: e })
87
86
  ] });
88
87
  };
89
88
  export {
90
89
  B as D,
91
- R as N,
92
- O as a
90
+ k as N,
91
+ w as a
93
92
  };