@pismo/marola 2.1.63 → 2.1.65

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 (115) hide show
  1. package/dist/Button-CJaBSdv1.js +135 -0
  2. package/dist/ClassNameConfigurator-CVRWfyIa.js +847 -0
  3. package/dist/{ClickAwayListener-Z08peX_P.js → ClickAwayListener-BnYMO5Ki.js} +26 -33
  4. package/dist/Popup-D267EI4e.js +1338 -0
  5. package/dist/{Portal-DJapUCn6.js → Portal-BrGvxB96.js} +32 -36
  6. package/dist/RadioOption-DyRY8xlF.js +1094 -0
  7. package/dist/{Toggle-DcZTfLrC.js → Toggle-nnDfpqI1.js} +31 -31
  8. package/dist/assets/Checkbox.css +1 -1
  9. package/dist/assets/DropdownMenu.css +1 -1
  10. package/dist/assets/Input.css +1 -1
  11. package/dist/assets/ToastCard.css +1 -1
  12. package/dist/assets/Toggle2.css +1 -1
  13. package/dist/combineHooksSlotProps-j-8UVeYo.js +86 -0
  14. package/dist/components/Alert/Alert.stories.d.ts +6 -6
  15. package/dist/components/Autocomplete/Autocomplete.d.ts +1 -1
  16. package/dist/components/Autocomplete/Autocomplete.js +311 -320
  17. package/dist/components/Autocomplete/Autocomplete.stories.d.ts +1 -1
  18. package/dist/components/Avatar/Avatar.stories.d.ts +4 -4
  19. package/dist/components/BankingCard/BankingCard.d.ts +0 -1
  20. package/dist/components/Button/Button.js +1 -1
  21. package/dist/components/Checkbox/Checkbox.js +56 -56
  22. package/dist/components/Checkbox/Checkbox.stories.d.ts +8 -8
  23. package/dist/components/Chip/Chip.js +3 -3
  24. package/dist/components/DatePicker/DatePicker.js +742 -639
  25. package/dist/components/DatePicker/DatePicker.stories.d.ts +8 -8
  26. package/dist/components/DatePicker/dateUtils.d.ts +2 -2
  27. package/dist/components/DatePicker/dateUtils.js +1 -1
  28. package/dist/components/DatePicker/keyboardNavigation.d.ts +1 -1
  29. package/dist/components/DatePicker/renderCalendarDays.js +1 -1
  30. package/dist/components/DatePicker/renderPeriodSelection.js +1 -1
  31. package/dist/components/Dialog/CloseIconButton.js +1 -1
  32. package/dist/components/Dialog/Dialog.js +372 -352
  33. package/dist/components/Dialog/Dialog.stories.d.ts +96 -135
  34. package/dist/components/DoubleAutocomplete/DoubleAutocomplete.d.ts +1 -1
  35. package/dist/components/DoubleAutocomplete/DoubleAutocomplete.js +2 -2
  36. package/dist/components/DoubleAutocomplete/DoubleAutocomplete.stories.d.ts +1 -1
  37. package/dist/components/DoubleInput/DoubleInput.stories.d.ts +1 -1
  38. package/dist/components/Draggable/Draggable.d.ts +0 -1
  39. package/dist/components/Draggable/Draggable.js +1 -1
  40. package/dist/components/Draggable/Draggable.stories.d.ts +2 -3
  41. package/dist/components/Draggable/useDraggable.js +1 -1
  42. package/dist/components/DropdownMenu/DropdownMenu.d.ts +3 -1
  43. package/dist/components/DropdownMenu/DropdownMenu.js +39 -34
  44. package/dist/components/DropdownMenu/DropdownMenu.stories.d.ts +6 -4
  45. package/dist/components/EllipsisTooltip/EllipsisTooltip.stories.d.ts +4 -4
  46. package/dist/components/IconButton/IconButton.js +1 -1
  47. package/dist/components/Input/Input.d.ts +2 -0
  48. package/dist/components/Input/Input.js +361 -340
  49. package/dist/components/Input/Input.stories.d.ts +2 -0
  50. package/dist/components/InputSearch/InputSearch.d.ts +31 -30
  51. package/dist/components/InputSearch/InputSearch.stories.d.ts +31 -30
  52. package/dist/components/Popover/Popover.d.ts +3 -3
  53. package/dist/components/Popover/Popover.js +2 -2
  54. package/dist/components/Popover/Popover.stories.d.ts +3 -3
  55. package/dist/components/Popover/PopoverBody.d.ts +0 -1
  56. package/dist/components/Popover/PopoverFooter.d.ts +0 -1
  57. package/dist/components/Popover/PopoverHeader.d.ts +0 -1
  58. package/dist/components/RadioButton/RadioButton.d.ts +0 -1
  59. package/dist/components/RadioButton/RadioButton.js +684 -769
  60. package/dist/components/RadioButton/RadioOption.d.ts +0 -1
  61. package/dist/components/RadioButton/RadioOption.js +3 -3
  62. package/dist/components/ResultContainer/ResultContainer.d.ts +0 -1
  63. package/dist/components/ResultContainer/ResultContainer.stories.d.ts +9 -9
  64. package/dist/components/ResultWithChips/ResultWithChips.js +1 -1
  65. package/dist/components/ResultWithChips/ResultWithChips.stories.d.ts +9 -9
  66. package/dist/components/RowItem/RowItem.js +2 -2
  67. package/dist/components/Select/Select.js +625 -591
  68. package/dist/components/Skeleton/Skeleton.d.ts +0 -1
  69. package/dist/components/Snackbar/Snackbar.js +295 -239
  70. package/dist/components/Snackbar/Snackbar.stories.d.ts +113 -113
  71. package/dist/components/StepperNavigator/StepperNavigator.d.ts +0 -1
  72. package/dist/components/Table/Table.stories.d.ts +5 -5
  73. package/dist/components/Tabs/Tab.js +107 -98
  74. package/dist/components/Tabs/TabPanel.js +58 -55
  75. package/dist/components/Tabs/Tabs.js +246 -231
  76. package/dist/components/ToastCard/ToastCard.js +31 -31
  77. package/dist/components/Toggle/Toggle.js +147 -137
  78. package/dist/components/Toggle/Toggle.stories.d.ts +5 -5
  79. package/dist/components/ToggleGroup/Toggle.d.ts +0 -1
  80. package/dist/components/ToggleGroup/Toggle.js +2 -2
  81. package/dist/components/ToggleGroup/ToggleGroup.js +1 -1
  82. package/dist/components/ToggleGroup/ToggleGroup.stories.d.ts +1 -1
  83. package/dist/components/Tooltip/Tooltip.js +266 -325
  84. package/dist/components/Tooltip/Tooltip.stories.d.ts +4 -4
  85. package/dist/components/TransactionRow/TransactionRow.stories.d.ts +21 -21
  86. package/dist/contexts/DraggableProvider/DraggableProvider.d.ts +0 -1
  87. package/dist/contexts/DraggableProvider/DraggableProvider.js +1 -1
  88. package/dist/contexts/SnackbarProvider/SnackbarProvider.js +1 -1
  89. package/dist/{dayjs.min-ClQKmc--.js → dayjs.min-BtgZiFZY.js} +14 -14
  90. package/dist/getReactElementRef-iorwYm2A.js +19 -0
  91. package/dist/{index-1UpBa69h.js → index-ew-96uBP.js} +2129 -2128
  92. package/dist/isFocusVisible-CPZqtjv2.js +12 -0
  93. package/dist/main.js +2 -2
  94. package/dist/{ownerDocument-By592Iy6.js → ownerDocument-CU-LCrtd.js} +1 -1
  95. package/dist/react-BTbo_5A3.js +526 -0
  96. package/dist/setRef-Bo0HEdBB.js +6 -0
  97. package/dist/useButton-C2E_LFJp.js +90 -0
  98. package/dist/useControlled-BYdyS7Pn.js +31 -0
  99. package/dist/useId-CK6Kn3Tn.js +21 -0
  100. package/dist/useList-BLW78Lq7.js +446 -0
  101. package/dist/utils/draggable.d.ts +2 -2
  102. package/package.json +5 -4
  103. package/dist/Button-BrEDdtHO.js +0 -130
  104. package/dist/Popup-Dffqo7wT.js +0 -1246
  105. package/dist/RadioOption-DYovqiwF.js +0 -720
  106. package/dist/combineHooksSlotProps-BhQ14uyD.js +0 -79
  107. package/dist/exactProp-SYjL19cU.js +0 -13
  108. package/dist/react-BvI-Sw9b.js +0 -509
  109. package/dist/useButton-CezPDte8.js +0 -105
  110. package/dist/useControlled-CCMYYdCM.js +0 -31
  111. package/dist/useId-BW-oWmul.js +0 -19
  112. package/dist/useIsFocusVisible-BH4IAdcw.js +0 -69
  113. package/dist/useList-nqLfZem8.js +0 -435
  114. package/dist/useSlotProps-CYHDC4TN.js +0 -834
  115. package/dist/useTimeout-DxF9kiZL.js +0 -36
@@ -1,32 +1,32 @@
1
- import { jsxs as s, jsx as a, Fragment as u } from "react/jsx-runtime";
1
+ import { jsxs as s, jsx as a, Fragment as f } from "react/jsx-runtime";
2
2
  import { c as d } from "../../clsx-OuTLNxxd.js";
3
- import { Icon as N } from "../Icon/Icon.js";
4
- import { IconButton as h } from "../IconButton/IconButton.js";
5
- import '../../assets/ToastCard.css';const w = "_divider_pnmml_6", t = {
6
- "toast-card": "_toast-card_pnmml_1",
7
- divider: w,
8
- "toast-card-padding": "_toast-card-padding_pnmml_10",
9
- "toast-card-title": "_toast-card-title_pnmml_13",
10
- "close-btn": "_close-btn_pnmml_24",
11
- "toast-card-title--success": "_toast-card-title--success_pnmml_41",
12
- "toast-card-title--danger": "_toast-card-title--danger_pnmml_44",
13
- "toast-card-title--warning": "_toast-card-title--warning_pnmml_47",
14
- "toast-card-title--info": "_toast-card-title--info_pnmml_50",
15
- "toast-card-title--default": "_toast-card-title--default_pnmml_53"
3
+ import { Icon as u } from "../Icon/Icon.js";
4
+ import { IconButton as N } from "../IconButton/IconButton.js";
5
+ import '../../assets/ToastCard.css';const h = "_divider_19nbp_6", t = {
6
+ "toast-card": "_toast-card_19nbp_1",
7
+ divider: h,
8
+ "toast-card-padding": "_toast-card-padding_19nbp_10",
9
+ "toast-card-title": "_toast-card-title_19nbp_13",
10
+ "close-btn": "_close-btn_19nbp_24",
11
+ "toast-card-title--success": "_toast-card-title--success_19nbp_43",
12
+ "toast-card-title--danger": "_toast-card-title--danger_19nbp_46",
13
+ "toast-card-title--warning": "_toast-card-title--warning_19nbp_49",
14
+ "toast-card-title--info": "_toast-card-title--info_19nbp_52",
15
+ "toast-card-title--default": "_toast-card-title--default_19nbp_55"
16
16
  }, C = ({
17
17
  variant: i = "default",
18
18
  className: r,
19
19
  "data-testid": c,
20
20
  title: o,
21
- "data-testid-title-wrapper": l,
22
- classNameTitleWrapper: n,
23
- children: m,
24
- "data-testid-children-wrapper": _,
25
- classNameChildrenWrapper: p,
21
+ "data-testid-title-wrapper": n,
22
+ classNameTitleWrapper: l,
23
+ children: _,
24
+ "data-testid-children-wrapper": p,
25
+ classNameChildrenWrapper: m,
26
26
  footer: e,
27
- "data-testid-footer-wrapper": g,
28
- classNameFooterWrapper: v,
29
- onClose: f
27
+ "data-testid-footer-wrapper": b,
28
+ classNameFooterWrapper: g,
29
+ onClose: v
30
30
  }) => /* @__PURE__ */ s("div", { className: d(t["toast-card"], t[`toast-card--${i}`], r), "data-testid": c, children: [
31
31
  /* @__PURE__ */ s(
32
32
  "div",
@@ -35,12 +35,12 @@ import '../../assets/ToastCard.css';const w = "_divider_pnmml_6", t = {
35
35
  t["toast-card-padding"],
36
36
  t["toast-card-title"],
37
37
  t[`toast-card-title--${i}`],
38
- n
38
+ l
39
39
  ),
40
- "data-testid": l,
40
+ "data-testid": n,
41
41
  children: [
42
42
  o,
43
- /* @__PURE__ */ a(h, { className: t["close-btn"], icon: /* @__PURE__ */ a(N, { icon: "xmark", size: "1rem" }), onClick: f })
43
+ /* @__PURE__ */ a(N, { className: t["close-btn"], icon: /* @__PURE__ */ a(u, { icon: "xmark", size: "1rem" }), onClick: v })
44
44
  ]
45
45
  }
46
46
  ),
@@ -48,18 +48,18 @@ import '../../assets/ToastCard.css';const w = "_divider_pnmml_6", t = {
48
48
  /* @__PURE__ */ a(
49
49
  "div",
50
50
  {
51
- className: d(t["toast-card-padding"], p),
52
- "data-testid": _,
53
- children: m
51
+ className: d(t["toast-card-padding"], m),
52
+ "data-testid": p,
53
+ children: _
54
54
  }
55
55
  ),
56
- e && /* @__PURE__ */ s(u, { children: [
56
+ e && /* @__PURE__ */ s(f, { children: [
57
57
  /* @__PURE__ */ a("div", { className: t.divider }),
58
58
  /* @__PURE__ */ a(
59
59
  "div",
60
60
  {
61
- className: d(t["toast-card-padding"], v),
62
- "data-testid": g,
61
+ className: d(t["toast-card-padding"], g),
62
+ "data-testid": b,
63
63
  children: e
64
64
  }
65
65
  )
@@ -1,130 +1,140 @@
1
- import { jsxs as I, jsx as T } from "react/jsx-runtime";
2
- import { c as F } from "../../clsx-OuTLNxxd.js";
3
- import { u as v, _ as y, g as U, a as q, b as H, c as N, d as M, e as A, P as e } from "../../useSlotProps-CYHDC4TN.js";
4
- import * as V from "react";
5
- import { u as D } from "../../useControlled-CCMYYdCM.js";
6
- import { u as L } from "../../useIsFocusVisible-BH4IAdcw.js";
7
- import '../../assets/Toggle.css';function W(l) {
1
+ import { jsxs as j, jsx as k } from "react/jsx-runtime";
2
+ import { c as T } from "../../clsx-OuTLNxxd.js";
3
+ import * as S from "react";
4
+ import { u as v, g as A, a as D, b as O, c as z, d as G, P as e } from "../../ClassNameConfigurator-CVRWfyIa.js";
5
+ import { u as J } from "../../useControlled-BYdyS7Pn.js";
6
+ import { i as B } from "../../isFocusVisible-CPZqtjv2.js";
7
+ import '../../assets/Toggle.css';function K(l) {
8
8
  const {
9
- checked: s,
10
- defaultChecked: p,
11
- disabled: c,
12
- onBlur: a,
9
+ checked: o,
10
+ defaultChecked: n,
11
+ disabled: r,
12
+ onBlur: i,
13
13
  onChange: g,
14
- onFocus: r,
15
- onFocusVisible: u,
16
- readOnly: n,
17
- required: i
18
- } = l, [S, x] = D({
19
- controlled: s,
20
- default: !!p,
14
+ onFocus: u,
15
+ onFocusVisible: b,
16
+ readOnly: m,
17
+ required: d
18
+ } = l, [w, P] = J({
19
+ controlled: o,
20
+ default: !!n,
21
21
  name: "Switch",
22
22
  state: "checked"
23
- }), B = (t) => (o) => {
24
- var b;
25
- o.nativeEvent.defaultPrevented || (x(o.target.checked), g == null || g(o), (b = t.onChange) == null || b.call(t, o));
26
- }, {
27
- isFocusVisibleRef: _,
28
- onBlur: w,
29
- onFocus: f,
30
- ref: m
31
- } = L(), [h, P] = V.useState(!1);
32
- c && h && P(!1), V.useEffect(() => {
33
- _.current = h;
34
- }, [h, _]);
35
- const k = V.useRef(null), R = (t) => (o) => {
36
- var b;
37
- k.current || (k.current = o.currentTarget), f(o), _.current === !0 && (P(!0), u == null || u(o)), r == null || r(o), (b = t.onFocus) == null || b.call(t, o);
38
- }, O = (t) => (o) => {
39
- var b;
40
- w(o), _.current === !1 && P(!1), a == null || a(o), (b = t.onBlur) == null || b.call(t, o);
41
- }, C = v(m, k);
23
+ }), f = (t) => (s) => {
24
+ var c;
25
+ s.nativeEvent.defaultPrevented || (P(s.target.checked), g == null || g(s), (c = t.onChange) == null || c.call(t, s));
26
+ }, [p, _] = S.useState(!1);
27
+ r && p && _(!1);
28
+ const h = S.useRef(null), N = (t) => (s) => {
29
+ var c;
30
+ h.current || (h.current = s.currentTarget), B(s.target) && (_(!0), b == null || b(s)), u == null || u(s), (c = t.onFocus) == null || c.call(t, s);
31
+ }, C = (t) => (s) => {
32
+ var c;
33
+ B(s.target) || _(!1), i == null || i(s), (c = t.onBlur) == null || c.call(t, s);
34
+ }, y = v(h);
42
35
  return {
43
- checked: S,
44
- disabled: !!c,
45
- focusVisible: h,
46
- getInputProps: (t = {}) => y({
47
- checked: s,
48
- defaultChecked: p,
49
- disabled: c,
50
- readOnly: n,
51
- ref: C,
52
- required: i,
36
+ checked: w,
37
+ disabled: !!r,
38
+ focusVisible: p,
39
+ getInputProps: (t = {}) => ({
40
+ checked: o,
41
+ defaultChecked: n,
42
+ disabled: r,
43
+ readOnly: m,
44
+ ref: y,
45
+ required: d,
53
46
  type: "checkbox",
54
47
  role: "switch",
55
- "aria-checked": s
56
- }, t, {
57
- onChange: B(t),
58
- onFocus: R(t),
59
- onBlur: O(t)
48
+ "aria-checked": o,
49
+ ...t,
50
+ onChange: f(t),
51
+ onFocus: N(t),
52
+ onBlur: C(t)
60
53
  }),
61
- inputRef: C,
62
- readOnly: !!n
54
+ inputRef: y,
55
+ readOnly: !!m
63
56
  };
64
57
  }
65
- const $ = "Switch";
66
- function z(l) {
67
- return U($, l);
58
+ const I = "Switch";
59
+ function L(l) {
60
+ return A(I, l);
68
61
  }
69
- q($, ["root", "input", "track", "thumb", "checked", "disabled", "focusVisible", "readOnly"]);
70
- const G = ["checked", "defaultChecked", "disabled", "onBlur", "onChange", "onFocus", "onFocusVisible", "readOnly", "required", "slotProps", "slots"], J = (l) => {
62
+ D(I, ["root", "input", "track", "thumb", "checked", "disabled", "focusVisible", "readOnly"]);
63
+ const Q = (l) => {
71
64
  const {
72
- checked: s,
73
- disabled: p,
74
- focusVisible: c,
75
- readOnly: a
65
+ checked: o,
66
+ disabled: n,
67
+ focusVisible: r,
68
+ readOnly: i
76
69
  } = l;
77
- return M({
78
- root: ["root", s && "checked", p && "disabled", c && "focusVisible", a && "readOnly"],
70
+ return z({
71
+ root: ["root", o && "checked", n && "disabled", r && "focusVisible", i && "readOnly"],
79
72
  thumb: ["thumb"],
80
73
  input: ["input"],
81
74
  track: ["track"]
82
- }, A(z));
83
- }, E = /* @__PURE__ */ V.forwardRef(function(s, p) {
84
- var c, a, g, r;
75
+ }, G(L));
76
+ }, E = /* @__PURE__ */ S.forwardRef(function(o, n) {
85
77
  const {
86
- slotProps: u = {},
87
- slots: n = {}
88
- } = s, i = H(s, G), {
89
- getInputProps: S,
90
- checked: x,
91
- disabled: B,
92
- focusVisible: _,
93
- readOnly: w
94
- } = W(s), f = y({}, s, {
95
- checked: x,
96
- disabled: B,
97
- focusVisible: _,
98
- readOnly: w
99
- }), m = J(f), h = (c = n.root) != null ? c : "span", P = N({
100
- elementType: h,
101
- externalSlotProps: u.root,
102
- externalForwardedProps: i,
78
+ checked: r,
79
+ defaultChecked: i,
80
+ disabled: g,
81
+ onBlur: u,
82
+ onChange: b,
83
+ onFocus: m,
84
+ onFocusVisible: d,
85
+ readOnly: w,
86
+ required: P,
87
+ slotProps: f = {},
88
+ slots: p = {},
89
+ ..._
90
+ } = o, {
91
+ getInputProps: h,
92
+ checked: N,
93
+ disabled: C,
94
+ focusVisible: y,
95
+ readOnly: x
96
+ } = K(o), t = {
97
+ ...o,
98
+ checked: N,
99
+ disabled: C,
100
+ focusVisible: y,
101
+ readOnly: x
102
+ }, s = Q(t), c = p.root ?? "span", U = O({
103
+ elementType: c,
104
+ externalSlotProps: f.root,
105
+ externalForwardedProps: _,
103
106
  additionalProps: {
104
- ref: p
107
+ ref: n
105
108
  },
106
- ownerState: f,
107
- className: m.root
108
- }), k = (a = n.thumb) != null ? a : "span", R = N({
109
- elementType: k,
110
- externalSlotProps: u.thumb,
111
- ownerState: f,
112
- className: m.thumb
113
- }), O = (g = n.input) != null ? g : "input", C = N({
114
- elementType: O,
115
- getSlotProps: S,
116
- externalSlotProps: u.input,
117
- ownerState: f,
118
- className: m.input
119
- }), j = n.track === null ? () => null : (r = n.track) != null ? r : "span", t = N({
120
- elementType: j,
121
- externalSlotProps: u.track,
122
- ownerState: f,
123
- className: m.track
109
+ ownerState: t,
110
+ className: s.root
111
+ }), V = p.thumb ?? "span", q = O({
112
+ elementType: V,
113
+ externalSlotProps: f.thumb,
114
+ ownerState: t,
115
+ className: s.thumb
116
+ }), F = p.input ?? "input", H = O({
117
+ elementType: F,
118
+ getSlotProps: h,
119
+ externalSlotProps: f.input,
120
+ ownerState: t,
121
+ className: s.input
122
+ }), R = p.track === null ? () => null : p.track ?? "span", M = O({
123
+ elementType: R,
124
+ externalSlotProps: f.track,
125
+ ownerState: t,
126
+ className: s.track
127
+ });
128
+ return /* @__PURE__ */ j(c, {
129
+ ...U,
130
+ children: [/* @__PURE__ */ k(R, {
131
+ ...M
132
+ }), /* @__PURE__ */ k(V, {
133
+ ...q
134
+ }), /* @__PURE__ */ k(F, {
135
+ ...H
136
+ })]
124
137
  });
125
- return /* @__PURE__ */ I(h, y({}, P, {
126
- children: [/* @__PURE__ */ T(j, y({}, t)), /* @__PURE__ */ T(k, y({}, R)), /* @__PURE__ */ T(O, y({}, C))]
127
- }));
128
138
  });
129
139
  process.env.NODE_ENV !== "production" && (E.propTypes = {
130
140
  // ┌────────────────────────────── Warning ──────────────────────────────┐
@@ -197,54 +207,54 @@ process.env.NODE_ENV !== "production" && (E.propTypes = {
197
207
  track: e.oneOfType([e.elementType, e.oneOf([null])])
198
208
  })
199
209
  });
200
- const K = "_toggle__label_spoae_44", Q = "_toggle_spoae_44", X = "_input_spoae_90", Y = "_thumb_spoae_101", Z = "_track_spoae_115", d = {
201
- toggle__label: K,
202
- toggle: Q,
210
+ const W = "_toggle__label_spoae_44", X = "_toggle_spoae_44", Y = "_input_spoae_90", Z = "_thumb_spoae_101", $ = "_track_spoae_115", a = {
211
+ toggle__label: W,
212
+ toggle: X,
203
213
  "toggle__toggle-el-wrapper": "_toggle__toggle-el-wrapper_spoae_86",
204
- input: X,
205
- thumb: Y,
206
- track: Z,
214
+ input: Y,
215
+ thumb: Z,
216
+ track: $,
207
217
  "toggle--focus-visible": "_toggle--focus-visible_spoae_125",
208
218
  "toggle--checked": "_toggle--checked_spoae_129",
209
219
  "toggle--disabled": "_toggle--disabled_spoae_142"
210
- }, ce = ({
220
+ }, le = ({
211
221
  label: l,
212
- checked: s,
213
- disabled: p,
214
- classNameWrapper: c,
215
- classNameInput: a,
222
+ checked: o,
223
+ disabled: n,
224
+ classNameWrapper: r,
225
+ classNameInput: i,
216
226
  "data-testid": g,
217
- onChange: r,
218
- classNameLabel: u
227
+ onChange: u,
228
+ classNameLabel: b
219
229
  }) => {
220
- const n = (i) => {
221
- r == null || r(i);
230
+ const m = (d) => {
231
+ u == null || u(d);
222
232
  };
223
- return /* @__PURE__ */ I("div", { className: F(d.toggle, c), "data-testid": g, children: [
224
- /* @__PURE__ */ T(
233
+ return /* @__PURE__ */ j("div", { className: T(a.toggle, r), "data-testid": g, children: [
234
+ /* @__PURE__ */ k(
225
235
  E,
226
236
  {
227
- checked: s === !0,
228
- disabled: p,
229
- onChange: n,
237
+ checked: o === !0,
238
+ disabled: n,
239
+ onChange: m,
230
240
  "aria-label": l,
231
241
  slotProps: {
232
- root: (i) => ({
233
- className: F(d["toggle__toggle-el-wrapper"], {
234
- [d["toggle--disabled"]]: i.disabled,
235
- [d["toggle--focus-visible"]]: i.focusVisible,
236
- [d["toggle--checked"]]: i.checked
242
+ root: (d) => ({
243
+ className: T(a["toggle__toggle-el-wrapper"], {
244
+ [a["toggle--disabled"]]: d.disabled,
245
+ [a["toggle--focus-visible"]]: d.focusVisible,
246
+ [a["toggle--checked"]]: d.checked
237
247
  })
238
248
  }),
239
- input: { className: F(d.input, a) },
240
- thumb: { className: d.thumb },
241
- track: { className: d.track }
249
+ input: { className: T(a.input, i) },
250
+ thumb: { className: a.thumb },
251
+ track: { className: a.track }
242
252
  }
243
253
  }
244
254
  ),
245
- l && /* @__PURE__ */ T("label", { className: F(d.toggle__label, u), children: l })
255
+ l && /* @__PURE__ */ k("label", { className: T(a.toggle__label, b), children: l })
246
256
  ] });
247
257
  };
248
258
  export {
249
- ce as Toggle
259
+ le as Toggle
250
260
  };
@@ -2,11 +2,11 @@ import { StoryObj } from '@storybook/react';
2
2
  declare const meta: {
3
3
  title: string;
4
4
  component: ({ label, checked, disabled, classNameWrapper, classNameInput, "data-testid": dataTestId, onChange, classNameLabel, }: import('react').InputHTMLAttributes<HTMLInputElement> & {
5
- label?: string | undefined;
6
- classNameWrapper?: string | undefined;
7
- classNameInput?: string | undefined;
8
- classNameLabel?: string | undefined;
9
- 'data-testid'?: string | undefined;
5
+ label?: string;
6
+ classNameWrapper?: string;
7
+ classNameInput?: string;
8
+ classNameLabel?: string;
9
+ 'data-testid'?: string;
10
10
  }) => import("react/jsx-runtime").JSX.Element;
11
11
  tags: string[];
12
12
  parameters: {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export type ToggleGroupItemProps<T extends string | number> = {
3
2
  /** The display text to show for this option */
4
3
  text: React.ReactNode;
@@ -6,10 +6,10 @@ import "../Typography/Typography.js";
6
6
  import "../Input/Input.js";
7
7
  import "../Avatar/Avatar.js";
8
8
  import "../Button/Button.js";
9
- import { T as q } from "../../Toggle-DcZTfLrC.js";
9
+ import { T as q } from "../../Toggle-nnDfpqI1.js";
10
10
  import "../Dialog/Dialog.js";
11
11
  import "../DatePicker/DatePicker.js";
12
- import "../../index-1UpBa69h.js";
12
+ import "../../index-ew-96uBP.js";
13
13
  import "../Draggable/useDraggable.js";
14
14
  import "../IconButton/IconButton.js";
15
15
  import "../InputSearch/InputSearch.js";
@@ -1,4 +1,4 @@
1
- import { T as e } from "../../Toggle-DcZTfLrC.js";
1
+ import { T as e } from "../../Toggle-nnDfpqI1.js";
2
2
  import { G as p } from "../../Group-DJz1rK2n.js";
3
3
  export {
4
4
  p as ToggleGroup,
@@ -8,7 +8,7 @@ declare const meta: {
8
8
  decorators: ((Story: import('@storybook/core/csf').PartialStoryFn<import('@storybook/react').ReactRenderer, {
9
9
  legend?: import('react').ReactNode;
10
10
  error?: import('react').ReactNode;
11
- children: import('react').ReactElement<import('./Toggle.tsx').ToggleGroupItemProps<string | number>, string | import('react').JSXElementConstructor<any>>[];
11
+ children: Array<import('react').ReactElement<import('./Toggle.tsx').ToggleGroupItemProps<string | number>>>;
12
12
  'data-testid'?: string | undefined;
13
13
  equalWidth?: boolean | undefined;
14
14
  classNameForOptions?: string | undefined;