@pismo/marola 1.0.0-beta.1 → 1.0.0-beta.11

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 (98) hide show
  1. package/dist/{Button-2b1peDFT.js → Button-DiLqcAJG.js} +2 -2
  2. package/dist/{ClickAwayListener-BSW-Nd-y.js → ClickAwayListener-BaJ-OV_7.js} +4 -3
  3. package/dist/Dialog.module-DFcZsVAd.js +30 -0
  4. package/dist/Input.module-ZTRZRcNt.js +405 -0
  5. package/dist/{Popup-B6ZSGIEI.js → Popup-lLWZt2wk.js} +3 -3
  6. package/dist/{Portal-DIeBsWdL.js → Portal-B_Es6eUL.js} +2 -2
  7. package/dist/SelectButton-CoOT2txy.js +61 -0
  8. package/dist/Toggle-C7W0gYOI.js +175 -0
  9. package/dist/assets/Adornment.css +1 -0
  10. package/dist/assets/Advice.css +1 -1
  11. package/dist/assets/Autocomplete.css +1 -0
  12. package/dist/assets/Button.css +1 -1
  13. package/dist/assets/Checkbox.css +1 -1
  14. package/dist/assets/Dialog.css +1 -1
  15. package/dist/assets/IconButton.css +1 -1
  16. package/dist/assets/Input.css +1 -1
  17. package/dist/assets/PageHeader.css +1 -1
  18. package/dist/assets/Pagination.css +1 -1
  19. package/dist/assets/SelectButton.css +1 -1
  20. package/dist/assets/Snackbar.css +1 -1
  21. package/dist/assets/SortTooltip.css +1 -1
  22. package/dist/assets/Stepper.css +1 -1
  23. package/dist/assets/Table.css +1 -1
  24. package/dist/assets/TextDisplay.css +1 -1
  25. package/dist/assets/Toggle.css +1 -1
  26. package/dist/assets/Toggle2.css +1 -1
  27. package/dist/assets/Typography.css +1 -1
  28. package/dist/{combineHooksSlotProps-DVjg9PRh.js → combineHooksSlotProps-BtBYUV_B.js} +1 -1
  29. package/dist/components/Adornment/Adornment.d.ts +19 -0
  30. package/dist/components/Adornment/Adornment.js +13 -0
  31. package/dist/components/Advice/Advice.d.ts +32 -17
  32. package/dist/components/Advice/Advice.js +39 -40
  33. package/dist/components/Advice/Advice.stories.d.ts +4 -3
  34. package/dist/components/Autocomplete/Autocomplete.d.ts +50 -0
  35. package/dist/components/Autocomplete/Autocomplete.js +689 -0
  36. package/dist/components/Autocomplete/Autocomplete.stories.d.ts +45 -0
  37. package/dist/components/Button/Button.d.ts +2 -0
  38. package/dist/components/Button/Button.js +49 -47
  39. package/dist/components/Button/Button.stories.d.ts +8 -52
  40. package/dist/components/Checkbox/Checkbox.js +52 -52
  41. package/dist/components/Chip/Chip.d.ts +3 -11
  42. package/dist/components/Chip/Chip.js +5 -4
  43. package/dist/components/Chip/Chip.stories.d.ts +3 -2
  44. package/dist/components/Dialog/Actions.js +1 -1
  45. package/dist/components/Dialog/Backdrop.js +1 -1
  46. package/dist/components/Dialog/CloseIconButton.js +2 -2
  47. package/dist/components/Dialog/Dialog.js +13 -12
  48. package/dist/components/Dialog/Dialog.stories.d.ts +44 -44
  49. package/dist/components/Dialog/DialogTitle.js +1 -1
  50. package/dist/components/EllipsisTooltip/EllipsisTooltip.stories.d.ts +1 -1
  51. package/dist/components/Icon/Icon.js +27 -21
  52. package/dist/components/Icon/types.d.ts +1 -1
  53. package/dist/components/IconButton/IconButton.js +42 -42
  54. package/dist/components/Input/Input.d.ts +4 -2
  55. package/dist/components/Input/Input.js +74 -471
  56. package/dist/components/Input/Input.stories.d.ts +1 -1
  57. package/dist/components/InputSearch/InputSearch.stories.d.ts +1 -1
  58. package/dist/components/PageHeader/PageHeader.js +57 -57
  59. package/dist/components/Pagination/Pagination.d.ts +7 -1
  60. package/dist/components/Pagination/Pagination.js +104 -182
  61. package/dist/components/Pagination/usePagination.d.ts +90 -0
  62. package/dist/components/Pagination/usePagination.js +79 -0
  63. package/dist/components/RowItem/RowItem.d.ts +25 -0
  64. package/dist/components/RowItem/RowItem.js +19 -0
  65. package/dist/components/Select/Select.js +9 -8
  66. package/dist/components/Select/SelectButton.js +1 -1
  67. package/dist/components/Snackbar/Snackbar.js +94 -94
  68. package/dist/components/Snackbar/Snackbar.stories.d.ts +3 -3
  69. package/dist/components/SortTooltip/SortTooltip.js +46 -46
  70. package/dist/components/Stepper/Stepper.js +35 -35
  71. package/dist/components/Table/Table.js +96 -96
  72. package/dist/components/Tabs/Tab.js +18 -17
  73. package/dist/components/Tabs/TabPanel.js +27 -26
  74. package/dist/components/Tabs/Tabs.js +25 -25
  75. package/dist/components/TextDisplay/TextDisplay.d.ts +3 -1
  76. package/dist/components/TextDisplay/TextDisplay.js +37 -30
  77. package/dist/components/TextDisplay/TextDisplay.stories.d.ts +1 -1
  78. package/dist/components/Toggle/Toggle.js +56 -56
  79. package/dist/components/ToggleGroup/Toggle.js +2 -2
  80. package/dist/components/ToggleGroup/ToggleGroup.js +1 -1
  81. package/dist/components/Tooltip/Tooltip.js +3 -3
  82. package/dist/components/Typography/Typography.js +47 -47
  83. package/dist/{index-CjW42-M-.js → index-D3Wj0eid.js} +1 -1
  84. package/dist/main.d.ts +3 -0
  85. package/dist/main.js +81 -76
  86. package/dist/ownerDocument-B61GUaFs.js +33 -0
  87. package/dist/{useButton-DNk3wrQp.js → useButton-Bn3MNH8I.js} +1 -1
  88. package/dist/useCompoundItem-B7Eo_qZk.js +68 -0
  89. package/dist/useEventCallback-BAQJJ3ye.js +14 -0
  90. package/dist/useId-BW-oWmul.js +19 -0
  91. package/dist/{useList-B0hog_3-.js → useList-BpJT77u3.js} +2 -2
  92. package/dist/{index-CH45lKw7.js → useSlotProps-kRhf7Gil.js} +93 -94
  93. package/package.json +6 -2
  94. package/dist/Dialog.module-DFEmFdYT.js +0 -30
  95. package/dist/SelectButton-C8JQKaf4.js +0 -61
  96. package/dist/Toggle-BCgIItCc.js +0 -142
  97. package/dist/useCompoundItem-D1iRfg8D.js +0 -84
  98. package/dist/useEventCallback-xTG9piMa.js +0 -45
@@ -1,9 +1,10 @@
1
1
  import { jsx as T } from "react/jsx-runtime";
2
- import * as m from "react";
2
+ import * as P from "react";
3
3
  import { forwardRef as v } from "react";
4
4
  import { u as y, s as x } from "../../Tabs.module-jkH1Qjn7.js";
5
- import { g as C, a as N, u as _, b, _ as w, c as O, P as o, d as E, e as I } from "../../index-CH45lKw7.js";
6
- import { u as S, a as U } from "../../useCompoundItem-D1iRfg8D.js";
5
+ import { g as C, a as N, u as _, b, _ as w, c as O, P as o, d as E, e as I } from "../../useSlotProps-kRhf7Gil.js";
6
+ import { u as S } from "../../useId-BW-oWmul.js";
7
+ import { u as U } from "../../useCompoundItem-B7Eo_qZk.js";
7
8
  const h = "TabPanel";
8
9
  function j(t) {
9
10
  return C(h, t);
@@ -22,23 +23,23 @@ function V(t) {
22
23
  throw new Error("No TabContext provided");
23
24
  const {
24
25
  value: f,
25
- getTabId: P
26
- } = i, a = S(s), r = m.useRef(null), c = _(r, n), u = m.useMemo(() => ({
27
- id: a,
28
- ref: r
29
- }), [a]), {
26
+ getTabId: m
27
+ } = i, r = S(s), a = P.useRef(null), u = _(a, n), c = P.useMemo(() => ({
28
+ id: r,
29
+ ref: a
30
+ }), [r]), {
30
31
  id: l
31
- } = U(e ?? M, u), d = l !== f, p = l !== void 0 ? P(l) : void 0;
32
+ } = U(e ?? M, c), d = l !== f, p = l !== void 0 ? m(l) : void 0;
32
33
  return {
33
34
  hidden: d,
34
35
  getRootProps: (g = {}) => b({
35
36
  "aria-labelledby": p ?? void 0,
36
37
  hidden: d,
37
- id: a ?? void 0
38
+ id: r ?? void 0
38
39
  }, g, {
39
- ref: c
40
+ ref: u
40
41
  }),
41
- rootRef: c
42
+ rootRef: u
42
43
  };
43
44
  }
44
45
  const F = ["children", "value", "slotProps", "slots"], $ = (t) => {
@@ -48,31 +49,31 @@ const F = ["children", "value", "slotProps", "slots"], $ = (t) => {
48
49
  return E({
49
50
  root: ["root", e && "hidden"]
50
51
  }, I(j));
51
- }, R = /* @__PURE__ */ m.forwardRef(function(e, s) {
52
+ }, R = /* @__PURE__ */ P.forwardRef(function(e, s) {
52
53
  var n;
53
54
  const {
54
55
  children: i,
55
56
  slotProps: f = {},
56
- slots: P = {}
57
- } = e, a = w(e, F), {
58
- hidden: r,
59
- getRootProps: c
60
- } = V(e), u = b({}, e, {
61
- hidden: r
62
- }), l = $(u), d = (n = P.root) != null ? n : "div", p = O({
57
+ slots: m = {}
58
+ } = e, r = w(e, F), {
59
+ hidden: a,
60
+ getRootProps: u
61
+ } = V(e), c = b({}, e, {
62
+ hidden: a
63
+ }), l = $(c), d = (n = m.root) != null ? n : "div", p = O({
63
64
  elementType: d,
64
- getSlotProps: c,
65
+ getSlotProps: u,
65
66
  externalSlotProps: f.root,
66
- externalForwardedProps: a,
67
+ externalForwardedProps: r,
67
68
  additionalProps: {
68
69
  role: "tabpanel",
69
70
  ref: s
70
71
  },
71
- ownerState: u,
72
+ ownerState: c,
72
73
  className: l.root
73
74
  });
74
75
  return /* @__PURE__ */ T(d, b({}, p, {
75
- children: !r && i
76
+ children: !a && i
76
77
  }));
77
78
  });
78
79
  process.env.NODE_ENV !== "production" && (R.propTypes = {
@@ -110,9 +111,9 @@ process.env.NODE_ENV !== "production" && (R.propTypes = {
110
111
  */
111
112
  value: o.oneOfType([o.number, o.string])
112
113
  });
113
- const W = v(
114
+ const q = v(
114
115
  ({ children: t, value: e, dataTestId: s }, n) => /* @__PURE__ */ T(R, { className: x["tabs__tab-panel"], value: e, "data-testid": s, ref: n, children: t })
115
116
  );
116
117
  export {
117
- W as TabPanel
118
+ q as TabPanel
118
119
  };
@@ -4,11 +4,11 @@ import { forwardRef as q, useState as B } from "react";
4
4
  import { T as G, u as J, s as Q } from "../../Tabs.module-jkH1Qjn7.js";
5
5
  import { Tab as Le } from "./Tab.js";
6
6
  import { TabPanel as _e } from "./TabPanel.js";
7
- import { g as I, a as _, b as C, _ as F, c as $, P as t, d as N, e as M } from "../../index-CH45lKw7.js";
8
- import { b as O, C as S } from "../../useCompoundItem-D1iRfg8D.js";
7
+ import { g as I, a as _, b as C, _ as F, c as $, P as t, d as N, e as M } from "../../useSlotProps-kRhf7Gil.js";
8
+ import { a as O, C as S } from "../../useCompoundItem-B7Eo_qZk.js";
9
9
  import { u as X } from "../../useControlled-CCMYYdCM.js";
10
- import { L as Y, a as Z } from "../../combineHooksSlotProps-DVjg9PRh.js";
11
- import { l as ee, m as te, u as oe } from "../../useList-B0hog_3-.js";
10
+ import { L as Y, a as Z } from "../../combineHooksSlotProps-BtBYUV_B.js";
11
+ import { l as ee, m as te, u as oe } from "../../useList-BpJT77u3.js";
12
12
  const k = "Tabs";
13
13
  function se(s) {
14
14
  return I(k, s);
@@ -33,17 +33,17 @@ function ne(s) {
33
33
  subitems: m,
34
34
  contextValue: g
35
35
  } = O(), p = r.useRef(() => {
36
- }), b = r.useCallback((x) => {
36
+ }), f = r.useCallback((x) => {
37
37
  var y;
38
38
  return (y = m.get(x)) == null ? void 0 : y.id;
39
- }, [m]), f = r.useCallback((x) => p.current(x), []), P = r.useCallback((x) => {
39
+ }, [m]), b = r.useCallback((x) => p.current(x), []), P = r.useCallback((x) => {
40
40
  p.current = x;
41
41
  }, []);
42
42
  return {
43
43
  contextValue: C({
44
44
  direction: c,
45
- getTabId: f,
46
- getTabPanelId: b,
45
+ getTabId: b,
46
+ getTabPanelId: f,
47
47
  onSelected: a,
48
48
  orientation: i,
49
49
  registerTabIdLookup: P,
@@ -67,23 +67,23 @@ function le(s) {
67
67
  totalSubitemCount: m,
68
68
  value: g,
69
69
  getTabId: p,
70
- getTabPanelId: b
71
- } = e, f = r.useMemo(() => ({
70
+ getTabPanelId: f
71
+ } = e, b = r.useMemo(() => ({
72
72
  getItemIndex: i,
73
73
  registerItem: d,
74
74
  totalSubitemCount: m
75
75
  }), [d, i, m]), P = r.useMemo(() => ({
76
76
  direction: n,
77
77
  getTabId: p,
78
- getTabPanelId: b,
78
+ getTabPanelId: f,
79
79
  onSelected: c,
80
80
  orientation: l,
81
81
  registerTabIdLookup: u,
82
82
  selectionFollowsFocus: a,
83
83
  value: g
84
- }), [n, p, b, c, l, u, a, g]);
84
+ }), [n, p, f, c, l, u, a, g]);
85
85
  return /* @__PURE__ */ T(S.Provider, {
86
- value: f,
86
+ value: b,
87
87
  children: /* @__PURE__ */ T(G.Provider, {
88
88
  value: P,
89
89
  children: o
@@ -110,8 +110,8 @@ const re = ["children", "value", "defaultValue", "orientation", "direction", "on
110
110
  direction: l
111
111
  }), {
112
112
  contextValue: g
113
- } = ne(m), p = ae(m), b = (n = u.root) != null ? n : "div", f = $({
114
- elementType: b,
113
+ } = ne(m), p = ae(m), f = (n = u.root) != null ? n : "div", b = $({
114
+ elementType: f,
115
115
  externalSlotProps: d.root,
116
116
  externalForwardedProps: a,
117
117
  additionalProps: {
@@ -120,7 +120,7 @@ const re = ["children", "value", "defaultValue", "orientation", "direction", "on
120
120
  ownerState: m,
121
121
  className: p.root
122
122
  });
123
- return /* @__PURE__ */ T(b, C({}, f, {
123
+ return /* @__PURE__ */ T(f, C({}, b, {
124
124
  children: /* @__PURE__ */ T(le, {
125
125
  value: g,
126
126
  children: i
@@ -232,12 +232,12 @@ function ce(s) {
232
232
  return (v = a.get(h)) == null ? void 0 : v.id;
233
233
  }, [a]);
234
234
  d(g);
235
- const p = r.useMemo(() => Array.from(a.keys()), [a]), b = r.useCallback((h) => {
235
+ const p = r.useMemo(() => Array.from(a.keys()), [a]), f = r.useCallback((h) => {
236
236
  var v, V;
237
237
  return h == null ? null : (v = (V = a.get(h)) == null ? void 0 : V.ref.current) != null ? v : null;
238
- }, [a]), f = n === "rtl";
238
+ }, [a]), b = n === "rtl";
239
239
  let P;
240
- c === "vertical" ? P = "vertical" : P = f ? "horizontal-rtl" : "horizontal-ltr";
240
+ c === "vertical" ? P = "vertical" : P = b ? "horizontal-rtl" : "horizontal-ltr";
241
241
  const x = r.useCallback((h, v) => {
242
242
  var V;
243
243
  i(h, (V = v[0]) != null ? V : null);
@@ -261,7 +261,7 @@ function ce(s) {
261
261
  controlledProps: y,
262
262
  disabledItemsFocusable: !u,
263
263
  focusManagement: "DOM",
264
- getItemDomElement: b,
264
+ getItemDomElement: f,
265
265
  isItemDisabled: U,
266
266
  items: p,
267
267
  rootRef: o,
@@ -288,7 +288,7 @@ function ce(s) {
288
288
  dispatch: R,
289
289
  getRootProps: W,
290
290
  highlightedValue: j,
291
- isRtl: f,
291
+ isRtl: b,
292
292
  orientation: c,
293
293
  rootRef: K,
294
294
  selectedValue: (e = H[0]) != null ? e : null
@@ -344,17 +344,17 @@ const me = ["children", "slotProps", "slots"], pe = (s) => {
344
344
  }), p = C({}, e, {
345
345
  isRtl: u,
346
346
  orientation: a
347
- }), b = pe(p), f = (n = l.root) != null ? n : "div", P = $({
348
- elementType: f,
347
+ }), f = pe(p), b = (n = l.root) != null ? n : "div", P = $({
348
+ elementType: b,
349
349
  getSlotProps: m,
350
350
  externalSlotProps: c.root,
351
351
  externalForwardedProps: d,
352
352
  ownerState: p,
353
- className: b.root
353
+ className: f.root
354
354
  });
355
355
  return /* @__PURE__ */ T(de, {
356
356
  value: g,
357
- children: /* @__PURE__ */ T(f, C({}, P, {
357
+ children: /* @__PURE__ */ T(b, C({}, P, {
358
358
  children: i
359
359
  }))
360
360
  });
@@ -18,6 +18,8 @@ export interface TextDisplayProps {
18
18
  labelOptions?: OptionsProps;
19
19
  /** Sets the value options */
20
20
  valueOptions?: OptionsProps;
21
+ /** Sets the label and value onto the same line */
22
+ inline?: boolean;
21
23
  }
22
- export declare const TextDisplay: ({ label, value, isLoading, testId, labelOptions, valueOptions, }: TextDisplayProps) => import("react/jsx-runtime").JSX.Element;
24
+ export declare const TextDisplay: ({ label, value, isLoading, testId, labelOptions, valueOptions, inline, }: TextDisplayProps) => import("react/jsx-runtime").JSX.Element;
23
25
  export {};
@@ -1,37 +1,44 @@
1
1
  import '../../assets/TextDisplay.css';
2
- import { jsxs as h, jsx as c } from "react/jsx-runtime";
2
+ import { jsxs as x, jsx as o } from "react/jsx-runtime";
3
+ import { c as _ } from "../../clsx-DB4S2d7J.js";
3
4
  import { Skeleton as d } from "../Skeleton/Skeleton.js";
4
- import { Typography as o } from "../Typography/Typography.js";
5
- const x = "_container_13z5o_1", f = {
6
- container: x
7
- }, $ = ({
8
- label: m,
9
- value: y,
5
+ import { Typography as m } from "../Typography/Typography.js";
6
+ const f = "_container_ia8vu_1", n = {
7
+ container: f,
8
+ "container--inline": "_container--inline_ia8vu_5"
9
+ }, T = ({
10
+ label: y,
11
+ value: i,
10
12
  isLoading: e = !1,
11
13
  testId: t = "TextDisplay",
12
14
  labelOptions: r,
13
- valueOptions: a
14
- }) => /* @__PURE__ */ h("div", { className: f.container, children: [
15
- /* @__PURE__ */ c(
16
- o,
17
- {
18
- color: (r == null ? void 0 : r.color) || "var(--gray-90)",
19
- variant: (r == null ? void 0 : r.variant) || "base",
20
- "data-testid": `${t}-label`,
21
- children: e ? /* @__PURE__ */ c(d, { style: { width: 70, marginBottom: 2 }, "data-testid": `${t}-skeletonLabel` }) : m
22
- }
23
- ),
24
- /* @__PURE__ */ c(
25
- o,
26
- {
27
- bold: !0,
28
- color: (a == null ? void 0 : a.color) || "var(--gray-90)",
29
- variant: (a == null ? void 0 : a.variant) || "base-lg",
30
- "data-testid": `${t}-value`,
31
- children: e ? /* @__PURE__ */ c(d, { style: { width: 100 }, "data-testid": `${t}-skeletonValue` }) : y || "-"
32
- }
33
- )
34
- ] });
15
+ valueOptions: a,
16
+ inline: c
17
+ }) => {
18
+ const h = r != null && r.color || c ? "var(--black-100)" : "var(--gray-90)";
19
+ return /* @__PURE__ */ x("div", { className: _([n.container, { [n["container--inline"]]: c }]), children: [
20
+ /* @__PURE__ */ o(
21
+ m,
22
+ {
23
+ color: h,
24
+ variant: (r == null ? void 0 : r.variant) || "base",
25
+ "data-testid": `${t}-label`,
26
+ bold: c,
27
+ children: e ? /* @__PURE__ */ o(d, { style: { width: 70, marginBottom: 2 }, "data-testid": `${t}-skeletonLabel` }) : y
28
+ }
29
+ ),
30
+ /* @__PURE__ */ o(
31
+ m,
32
+ {
33
+ bold: !c,
34
+ color: (a == null ? void 0 : a.color) || "var(--gray-90)",
35
+ variant: a != null && a.variant || c ? "base" : "base-lg",
36
+ "data-testid": `${t}-value`,
37
+ children: e ? /* @__PURE__ */ o(d, { style: { width: 100 }, "data-testid": `${t}-skeletonValue` }) : i || "-"
38
+ }
39
+ )
40
+ ] });
41
+ };
35
42
  export {
36
- $ as TextDisplay
43
+ T as TextDisplay
37
44
  };
@@ -2,7 +2,7 @@ import { StoryObj } from '@storybook/react';
2
2
 
3
3
  declare const meta: {
4
4
  title: string;
5
- component: ({ label, value, isLoading, testId, labelOptions, valueOptions, }: import('./TextDisplay').TextDisplayProps) => import("react/jsx-runtime").JSX.Element;
5
+ component: ({ label, value, isLoading, testId, labelOptions, valueOptions, inline, }: import('./TextDisplay').TextDisplayProps) => import("react/jsx-runtime").JSX.Element;
6
6
  tags: string[];
7
7
  };
8
8
  export default meta;
@@ -1,22 +1,22 @@
1
- import '../../assets/Toggle2.css';
1
+ import '../../assets/Toggle.css';
2
2
  import { jsxs as j, jsx as P } from "react/jsx-runtime";
3
3
  import { c as O } from "../../clsx-DB4S2d7J.js";
4
- import { u as E, b as k, g as v, a as U, _ as q, c as C, P as e, d as H, e as M } from "../../index-CH45lKw7.js";
4
+ import { u as E, b as k, g as v, a as U, _ as H, c as C, P as e, d as M, e as A } from "../../useSlotProps-kRhf7Gil.js";
5
5
  import * as F from "react";
6
- import { u as A } from "../../useControlled-CCMYYdCM.js";
7
- import { u as D } from "../../useIsFocusVisible-BH4IAdcw.js";
8
- function L(l) {
6
+ import { u as D } from "../../useControlled-CCMYYdCM.js";
7
+ import { u as L } from "../../useIsFocusVisible-BH4IAdcw.js";
8
+ function W(l) {
9
9
  const {
10
10
  checked: s,
11
11
  defaultChecked: i,
12
- disabled: r,
12
+ disabled: a,
13
13
  onBlur: c,
14
14
  onChange: h,
15
15
  onFocus: n,
16
16
  onFocusVisible: u,
17
- readOnly: a,
17
+ readOnly: r,
18
18
  required: p
19
- } = l, [N, V] = A({
19
+ } = l, [N, V] = D({
20
20
  controlled: s,
21
21
  default: !!i,
22
22
  name: "Switch",
@@ -29,26 +29,26 @@ function L(l) {
29
29
  onBlur: B,
30
30
  onFocus: _,
31
31
  ref: f
32
- } = D(), [y, z] = F.useState(!1);
33
- r && y && z(!1), F.useEffect(() => {
32
+ } = L(), [y, q] = F.useState(!1);
33
+ a && y && q(!1), F.useEffect(() => {
34
34
  b.current = y;
35
35
  }, [y, b]);
36
36
  const m = F.useRef(null), w = (t) => (o) => {
37
37
  var d;
38
- m.current || (m.current = o.currentTarget), _(o), b.current === !0 && (z(!0), u == null || u(o)), n == null || n(o), (d = t.onFocus) == null || d.call(t, o);
38
+ m.current || (m.current = o.currentTarget), _(o), b.current === !0 && (q(!0), u == null || u(o)), n == null || n(o), (d = t.onFocus) == null || d.call(t, o);
39
39
  }, T = (t) => (o) => {
40
40
  var d;
41
- B(o), b.current === !1 && z(!1), c == null || c(o), (d = t.onBlur) == null || d.call(t, o);
41
+ B(o), b.current === !1 && q(!1), c == null || c(o), (d = t.onBlur) == null || d.call(t, o);
42
42
  }, x = E(f, m);
43
43
  return {
44
44
  checked: N,
45
- disabled: !!r,
45
+ disabled: !!a,
46
46
  focusVisible: y,
47
47
  getInputProps: (t = {}) => k({
48
48
  checked: s,
49
49
  defaultChecked: i,
50
- disabled: r,
51
- readOnly: a,
50
+ disabled: a,
51
+ readOnly: r,
52
52
  ref: x,
53
53
  required: p,
54
54
  type: "checkbox",
@@ -60,11 +60,11 @@ function L(l) {
60
60
  onBlur: T(t)
61
61
  }),
62
62
  inputRef: x,
63
- readOnly: !!a
63
+ readOnly: !!r
64
64
  };
65
65
  }
66
66
  const I = "Switch";
67
- function W(l) {
67
+ function z(l) {
68
68
  return v(I, l);
69
69
  }
70
70
  U(I, ["root", "input", "track", "thumb", "checked", "disabled", "focusVisible", "readOnly"]);
@@ -72,32 +72,32 @@ const G = ["checked", "defaultChecked", "disabled", "onBlur", "onChange", "onFoc
72
72
  const {
73
73
  checked: s,
74
74
  disabled: i,
75
- focusVisible: r,
75
+ focusVisible: a,
76
76
  readOnly: c
77
77
  } = l;
78
- return H({
79
- root: ["root", s && "checked", i && "disabled", r && "focusVisible", c && "readOnly"],
78
+ return M({
79
+ root: ["root", s && "checked", i && "disabled", a && "focusVisible", c && "readOnly"],
80
80
  thumb: ["thumb"],
81
81
  input: ["input"],
82
82
  track: ["track"]
83
- }, M(W));
83
+ }, A(z));
84
84
  }, $ = /* @__PURE__ */ F.forwardRef(function(s, i) {
85
- var r, c, h, n;
85
+ var a, c, h, n;
86
86
  const {
87
87
  slotProps: u = {},
88
- slots: a = {}
89
- } = s, p = q(s, G), {
88
+ slots: r = {}
89
+ } = s, p = H(s, G), {
90
90
  getInputProps: N,
91
91
  checked: V,
92
92
  disabled: S,
93
93
  focusVisible: b,
94
94
  readOnly: B
95
- } = L(s), _ = k({}, s, {
95
+ } = W(s), _ = k({}, s, {
96
96
  checked: V,
97
97
  disabled: S,
98
98
  focusVisible: b,
99
99
  readOnly: B
100
- }), f = J(_), y = (r = a.root) != null ? r : "span", z = C({
100
+ }), f = J(_), y = (a = r.root) != null ? a : "span", q = C({
101
101
  elementType: y,
102
102
  externalSlotProps: u.root,
103
103
  externalForwardedProps: p,
@@ -106,24 +106,24 @@ const G = ["checked", "defaultChecked", "disabled", "onBlur", "onChange", "onFoc
106
106
  },
107
107
  ownerState: _,
108
108
  className: f.root
109
- }), m = (c = a.thumb) != null ? c : "span", w = C({
109
+ }), m = (c = r.thumb) != null ? c : "span", w = C({
110
110
  elementType: m,
111
111
  externalSlotProps: u.thumb,
112
112
  ownerState: _,
113
113
  className: f.thumb
114
- }), T = (h = a.input) != null ? h : "input", x = C({
114
+ }), T = (h = r.input) != null ? h : "input", x = C({
115
115
  elementType: T,
116
116
  getSlotProps: N,
117
117
  externalSlotProps: u.input,
118
118
  ownerState: _,
119
119
  className: f.input
120
- }), R = a.track === null ? () => null : (n = a.track) != null ? n : "span", t = C({
120
+ }), R = r.track === null ? () => null : (n = r.track) != null ? n : "span", t = C({
121
121
  elementType: R,
122
122
  externalSlotProps: u.track,
123
123
  ownerState: _,
124
124
  className: f.track
125
125
  });
126
- return /* @__PURE__ */ j(y, k({}, z, {
126
+ return /* @__PURE__ */ j(y, k({}, q, {
127
127
  children: [/* @__PURE__ */ P(R, k({}, t)), /* @__PURE__ */ P(m, k({}, w)), /* @__PURE__ */ P(T, k({}, x))]
128
128
  }));
129
129
  });
@@ -198,51 +198,51 @@ process.env.NODE_ENV !== "production" && ($.propTypes = {
198
198
  track: e.oneOfType([e.elementType, e.oneOf([null])])
199
199
  })
200
200
  });
201
- const K = "_toggle__label_1rzg2_43", Q = "_toggle_1rzg2_43", X = "_input_1rzg2_88", Y = "_thumb_1rzg2_99", Z = "_track_1rzg2_113", g = {
202
- "u-typography-h1": "_u-typography-h1_1rzg2_1",
203
- "u-typography-h2": "_u-typography-h2_1rzg2_8",
204
- "u-typography-h3": "_u-typography-h3_1rzg2_15",
205
- "u-typography-h4": "_u-typography-h4_1rzg2_22",
206
- "u-typography-h5": "_u-typography-h5_1rzg2_29",
207
- "u-typography-h6": "_u-typography-h6_1rzg2_36",
208
- "u-typography-base": "_u-typography-base_1rzg2_43",
201
+ const K = "_toggle__label_p0gq9_43", Q = "_toggle_p0gq9_43", X = "_input_p0gq9_89", Y = "_thumb_p0gq9_100", Z = "_track_p0gq9_114", g = {
202
+ "u-typography-h1": "_u-typography-h1_p0gq9_1",
203
+ "u-typography-h2": "_u-typography-h2_p0gq9_8",
204
+ "u-typography-h3": "_u-typography-h3_p0gq9_15",
205
+ "u-typography-h4": "_u-typography-h4_p0gq9_22",
206
+ "u-typography-h5": "_u-typography-h5_p0gq9_29",
207
+ "u-typography-h6": "_u-typography-h6_p0gq9_36",
208
+ "u-typography-base": "_u-typography-base_p0gq9_43",
209
209
  toggle__label: K,
210
- "u-typography-base--xxl": "_u-typography-base--xxl_1rzg2_48",
211
- "u-typography-base--xl": "_u-typography-base--xl_1rzg2_52",
212
- "u-typography-base--lg": "_u-typography-base--lg_1rzg2_56",
213
- "u-typography-base--sm": "_u-typography-base--sm_1rzg2_60",
214
- "u-typography-base--bold": "_u-typography-base--bold_1rzg2_64",
215
- "u-typography-base--strikethrough": "_u-typography-base--strikethrough_1rzg2_67",
216
- "u-typography-base--underlined": "_u-typography-base--underlined_1rzg2_70",
217
- "u-typography-base--strikethrough-underlined": "_u-typography-base--strikethrough-underlined_1rzg2_73",
210
+ "u-typography-base--xxl": "_u-typography-base--xxl_p0gq9_49",
211
+ "u-typography-base--xl": "_u-typography-base--xl_p0gq9_53",
212
+ "u-typography-base--lg": "_u-typography-base--lg_p0gq9_57",
213
+ "u-typography-base--sm": "_u-typography-base--sm_p0gq9_61",
214
+ "u-typography-base--bold": "_u-typography-base--bold_p0gq9_65",
215
+ "u-typography-base--strikethrough": "_u-typography-base--strikethrough_p0gq9_68",
216
+ "u-typography-base--underlined": "_u-typography-base--underlined_p0gq9_71",
217
+ "u-typography-base--strikethrough-underlined": "_u-typography-base--strikethrough-underlined_p0gq9_74",
218
218
  toggle: Q,
219
- "toggle__toggle-el-wrapper": "_toggle__toggle-el-wrapper_1rzg2_84",
219
+ "toggle__toggle-el-wrapper": "_toggle__toggle-el-wrapper_p0gq9_85",
220
220
  input: X,
221
221
  thumb: Y,
222
222
  track: Z,
223
- "toggle--focus-visible": "_toggle--focus-visible_1rzg2_123",
224
- "toggle--checked": "_toggle--checked_1rzg2_127",
225
- "toggle--disabled": "_toggle--disabled_1rzg2_140"
226
- }, re = ({
223
+ "toggle--focus-visible": "_toggle--focus-visible_p0gq9_124",
224
+ "toggle--checked": "_toggle--checked_p0gq9_128",
225
+ "toggle--disabled": "_toggle--disabled_p0gq9_141"
226
+ }, ae = ({
227
227
  label: l,
228
228
  checked: s,
229
229
  disabled: i,
230
- classNameWrapper: r,
230
+ classNameWrapper: a,
231
231
  classNameInput: c,
232
232
  "data-testid": h,
233
233
  onChange: n,
234
234
  classNameLabel: u
235
235
  }) => {
236
- const a = (p) => {
236
+ const r = (p) => {
237
237
  n == null || n(p);
238
238
  };
239
- return /* @__PURE__ */ j("div", { className: O(g.toggle, r), "data-testid": h, children: [
239
+ return /* @__PURE__ */ j("div", { className: O(g.toggle, a), "data-testid": h, children: [
240
240
  /* @__PURE__ */ P(
241
241
  $,
242
242
  {
243
243
  checked: s === !0,
244
244
  disabled: i,
245
- onChange: a,
245
+ onChange: r,
246
246
  "aria-label": l,
247
247
  slotProps: {
248
248
  root: (p) => ({
@@ -262,5 +262,5 @@ const K = "_toggle__label_1rzg2_43", Q = "_toggle_1rzg2_43", X = "_input_1rzg2_8
262
262
  ] });
263
263
  };
264
264
  export {
265
- re as Toggle
265
+ ae as Toggle
266
266
  };
@@ -2,10 +2,10 @@ import "react/jsx-runtime";
2
2
  import "react";
3
3
  import "../../clsx-DB4S2d7J.js";
4
4
  import "../Icon/Icon.js";
5
+ import "../Typography/Typography.js";
5
6
  import "../Button/Button.js";
6
- import { T as b } from "../../Toggle-BCgIItCc.js";
7
+ import { T as b } from "../../Toggle-C7W0gYOI.js";
7
8
  import "../Dialog/Backdrop.js";
8
- import "../Typography/Typography.js";
9
9
  import "../IconButton/IconButton.js";
10
10
  import "../Select/Select.js";
11
11
  import "../Table/Table.js";
@@ -1,4 +1,4 @@
1
- import { T as e } from "../../Toggle-BCgIItCc.js";
1
+ import { T as e } from "../../Toggle-C7W0gYOI.js";
2
2
  import { G as p } from "../../Group-B3p31ftp.js";
3
3
  export {
4
4
  p as ToggleGroup,
@@ -2,10 +2,10 @@ import '../../assets/Tooltip.css';
2
2
  import { jsx as a, jsxs as v, Fragment as P } from "react/jsx-runtime";
3
3
  import * as u from "react";
4
4
  import { useRef as R, useState as T, useEffect as E, isValidElement as q, cloneElement as M } from "react";
5
- import { T as O, P as V } from "../../Popup-B6ZSGIEI.js";
6
- import { _ as $, b as z, P as l } from "../../index-CH45lKw7.js";
5
+ import { T as O, P as V } from "../../Popup-lLWZt2wk.js";
6
+ import { _ as $, b as z, P as l } from "../../useSlotProps-kRhf7Gil.js";
7
7
  import { c as D } from "../../clsx-DB4S2d7J.js";
8
- import { C as F } from "../../ClickAwayListener-BSW-Nd-y.js";
8
+ import { C as F } from "../../ClickAwayListener-BaJ-OV_7.js";
9
9
  function I() {
10
10
  const e = u.useContext(O);
11
11
  if (!e)