@pismo/marola 1.0.0-beta.59 → 1.0.0-beta.6

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 (159) hide show
  1. package/dist/{Button-BAljjMv3.js → Button-2b1peDFT.js} +2 -2
  2. package/dist/{ClickAwayListener-DbEYZpyh.js → ClickAwayListener-BSW-Nd-y.js} +3 -4
  3. package/dist/Dialog.module-DFEmFdYT.js +30 -0
  4. package/dist/Group-B3p31ftp.js +26 -0
  5. package/dist/{Popup-Ck3XlWMq.js → Popup-B6ZSGIEI.js} +3 -3
  6. package/dist/{Portal-oY3enyAm.js → Portal-DIeBsWdL.js} +2 -2
  7. package/dist/SelectButton-K3OIfR5m.js +61 -0
  8. package/dist/{Tabs.module-BGGTkDc5.js → Tabs.module-jkH1Qjn7.js} +7 -7
  9. package/dist/Toggle-BCgIItCc.js +142 -0
  10. package/dist/assets/Advice.css +1 -1
  11. package/dist/assets/Button.css +1 -1
  12. package/dist/assets/Checkbox.css +1 -1
  13. package/dist/assets/Dialog.css +1 -1
  14. package/dist/assets/EllipsisTooltip.css +1 -1
  15. package/dist/assets/Group.css +1 -1
  16. package/dist/assets/IconButton.css +1 -1
  17. package/dist/assets/Input.css +1 -1
  18. package/dist/assets/PageHeader.css +1 -1
  19. package/dist/assets/Pagination.css +1 -1
  20. package/dist/assets/SelectButton.css +1 -1
  21. package/dist/assets/Skeleton.css +1 -1
  22. package/dist/assets/Snackbar.css +1 -1
  23. package/dist/assets/SortTooltip.css +1 -1
  24. package/dist/assets/Stepper.css +1 -1
  25. package/dist/assets/Table.css +1 -1
  26. package/dist/assets/Tabs.css +1 -1
  27. package/dist/assets/TextDisplay.css +1 -1
  28. package/dist/assets/Toggle.css +1 -1
  29. package/dist/assets/Toggle2.css +1 -1
  30. package/dist/assets/Typography.css +1 -1
  31. package/dist/{combineHooksSlotProps-C-zYvfnF.js → combineHooksSlotProps-DVjg9PRh.js} +1 -1
  32. package/dist/components/Advice/Advice.d.ts +17 -32
  33. package/dist/components/Advice/Advice.js +40 -39
  34. package/dist/components/Advice/Advice.stories.d.ts +3 -4
  35. package/dist/components/Button/Button.d.ts +0 -2
  36. package/dist/components/Button/Button.js +49 -51
  37. package/dist/components/Checkbox/Checkbox.js +52 -52
  38. package/dist/components/Chip/Chip.d.ts +12 -6
  39. package/dist/components/Chip/Chip.js +6 -11
  40. package/dist/components/Chip/Chip.stories.d.ts +14 -5
  41. package/dist/components/Dialog/Actions.js +1 -1
  42. package/dist/components/Dialog/Backdrop.d.ts +3 -3
  43. package/dist/components/Dialog/Backdrop.js +7 -8
  44. package/dist/components/Dialog/CloseIconButton.d.ts +2 -1
  45. package/dist/components/Dialog/CloseIconButton.js +18 -15
  46. package/dist/components/Dialog/Dialog.d.ts +6 -9
  47. package/dist/components/Dialog/Dialog.js +139 -139
  48. package/dist/components/Dialog/Dialog.stories.d.ts +46 -50
  49. package/dist/components/Dialog/DialogTitle.js +1 -1
  50. package/dist/components/EllipsisTooltip/EllipsisTooltip.js +17 -30
  51. package/dist/components/EllipsisTooltip/EllipsisTooltip.stories.d.ts +1 -2
  52. package/dist/components/Icon/Icon.js +47 -315
  53. package/dist/components/Icon/types.d.ts +1 -1
  54. package/dist/components/IconButton/IconButton.js +42 -42
  55. package/dist/components/Input/Input.d.ts +5 -26
  56. package/dist/components/Input/Input.js +304 -319
  57. package/dist/components/Input/Input.stories.d.ts +21 -2
  58. package/dist/components/InputSearch/InputSearch.d.ts +7 -37
  59. package/dist/components/InputSearch/InputSearch.js +29 -27
  60. package/dist/components/InputSearch/InputSearch.stories.d.ts +3 -15
  61. package/dist/components/PageHeader/PageHeader.d.ts +2 -6
  62. package/dist/components/PageHeader/PageHeader.js +65 -72
  63. package/dist/components/PageHeader/PageHeader.stories.d.ts +1 -3
  64. package/dist/components/Pagination/Pagination.d.ts +1 -5
  65. package/dist/components/Pagination/Pagination.js +91 -90
  66. package/dist/components/Pagination/Pagination.stories.d.ts +1 -1
  67. package/dist/components/Select/Select.d.ts +0 -21
  68. package/dist/components/Select/Select.js +413 -476
  69. package/dist/components/Select/SelectButton.d.ts +0 -2
  70. package/dist/components/Select/SelectButton.js +2 -3
  71. package/dist/components/Skeleton/Skeleton.d.ts +1 -3
  72. package/dist/components/Skeleton/Skeleton.js +14 -20
  73. package/dist/components/Skeleton/SkeletonTable.stories.d.ts +1 -1
  74. package/dist/components/Snackbar/Snackbar.js +94 -94
  75. package/dist/components/Snackbar/Snackbar.stories.d.ts +3 -3
  76. package/dist/components/SortTooltip/SortTooltip.js +46 -46
  77. package/dist/components/Stepper/Stepper.js +35 -35
  78. package/dist/components/Table/Table.d.ts +1 -3
  79. package/dist/components/Table/Table.js +99 -87
  80. package/dist/components/Table/Table.stories.d.ts +1 -1
  81. package/dist/components/Tabs/Tab.d.ts +3 -5
  82. package/dist/components/Tabs/Tab.js +36 -38
  83. package/dist/components/Tabs/TabPanel.d.ts +2 -4
  84. package/dist/components/Tabs/TabPanel.js +40 -51
  85. package/dist/components/Tabs/Tabs.d.ts +4 -6
  86. package/dist/components/Tabs/Tabs.js +128 -131
  87. package/dist/components/TextDisplay/TextDisplay.d.ts +3 -9
  88. package/dist/components/TextDisplay/TextDisplay.js +31 -45
  89. package/dist/components/TextDisplay/TextDisplay.stories.d.ts +1 -2
  90. package/dist/components/Toggle/Toggle.js +56 -56
  91. package/dist/components/ToggleGroup/Group.d.ts +0 -2
  92. package/dist/components/ToggleGroup/Group.js +2 -4
  93. package/dist/components/ToggleGroup/Toggle.d.ts +0 -2
  94. package/dist/components/ToggleGroup/Toggle.js +5 -9
  95. package/dist/components/ToggleGroup/ToggleGroup.js +2 -2
  96. package/dist/components/ToggleGroup/ToggleGroup.stories.d.ts +0 -2
  97. package/dist/components/Tooltip/Tooltip.d.ts +1 -3
  98. package/dist/components/Tooltip/Tooltip.js +4 -4
  99. package/dist/components/Tooltip/Tooltip.stories.d.ts +0 -1
  100. package/dist/components/Typography/Typography.js +47 -47
  101. package/dist/{useSlotProps-C_I1kEHr.js → index-CH45lKw7.js} +99 -99
  102. package/dist/{index-bQFToy-I.js → index-CjW42-M-.js} +1 -1
  103. package/dist/main.d.ts +0 -8
  104. package/dist/main.js +76 -90
  105. package/dist/marola.css +1 -1
  106. package/dist/{useButton-DcihopJG.js → useButton-DNk3wrQp.js} +1 -1
  107. package/dist/useCompoundItem-D1iRfg8D.js +84 -0
  108. package/dist/useEventCallback-xTG9piMa.js +45 -0
  109. package/dist/{useList-B9C55YB7.js → useList-B0hog_3-.js} +2 -2
  110. package/package.json +12 -21
  111. package/dist/Dialog.module-BSeaj3tQ.js +0 -30
  112. package/dist/Group-DspH8hyO.js +0 -30
  113. package/dist/Popover.module-B4boCutS.js +0 -10
  114. package/dist/SelectButton-B38avP9u.js +0 -75
  115. package/dist/Toggle-2kIaSHMl.js +0 -190
  116. package/dist/assets/Adornment.css +0 -1
  117. package/dist/assets/Autocomplete.css +0 -1
  118. package/dist/assets/Avatar.css +0 -1
  119. package/dist/assets/Popover.css +0 -1
  120. package/dist/assets/ResultWithChips.css +0 -1
  121. package/dist/assets/StepperNavigator.css +0 -1
  122. package/dist/components/Adornment/Adornment.d.ts +0 -20
  123. package/dist/components/Adornment/Adornment.js +0 -13
  124. package/dist/components/Adornment/Adornment.stories.d.ts +0 -14
  125. package/dist/components/Adornment/adornment.test.d.ts +0 -1
  126. package/dist/components/Autocomplete/Autocomplete.d.ts +0 -20
  127. package/dist/components/Autocomplete/Autocomplete.js +0 -679
  128. package/dist/components/Autocomplete/Autocomplete.stories.d.ts +0 -23
  129. package/dist/components/Avatar/Avatar.d.ts +0 -15
  130. package/dist/components/Avatar/Avatar.js +0 -51
  131. package/dist/components/Avatar/Avatar.stories.d.ts +0 -25
  132. package/dist/components/ConfirmationDialog/ConfirmationDialog.d.ts +0 -14
  133. package/dist/components/ConfirmationDialog/ConfirmationDialog.js +0 -37
  134. package/dist/components/ConfirmationDialog/ConfirmationDialog.stories.d.ts +0 -23
  135. package/dist/components/ConfirmationDialog/ConfirmationModal.test.d.ts +0 -1
  136. package/dist/components/PageHeader/PageHeader.test.d.ts +0 -1
  137. package/dist/components/Popover/Popover.d.ts +0 -32
  138. package/dist/components/Popover/Popover.js +0 -24
  139. package/dist/components/Popover/Popover.stories.d.ts +0 -34
  140. package/dist/components/Popover/PopoverBody.d.ts +0 -6
  141. package/dist/components/Popover/PopoverBody.js +0 -6
  142. package/dist/components/Popover/PopoverFooter.d.ts +0 -6
  143. package/dist/components/Popover/PopoverFooter.js +0 -6
  144. package/dist/components/Popover/PopoverHeader.d.ts +0 -6
  145. package/dist/components/Popover/PopoverHeader.js +0 -6
  146. package/dist/components/ResultWithChips/ResultWithChips.d.ts +0 -12
  147. package/dist/components/ResultWithChips/ResultWithChips.js +0 -33
  148. package/dist/components/RowItem/RowItem.d.ts +0 -25
  149. package/dist/components/RowItem/RowItem.js +0 -23
  150. package/dist/components/RowItem/RowItem.stories.d.ts +0 -17
  151. package/dist/components/RowItem/rowItem.test.d.ts +0 -1
  152. package/dist/components/StepperNavigator/StepperNavigator.d.ts +0 -58
  153. package/dist/components/StepperNavigator/StepperNavigator.js +0 -115
  154. package/dist/components/StepperNavigator/StepperNavigator.stories.d.ts +0 -18
  155. package/dist/components/StepperNavigator/StepperNavigator.test.d.ts +0 -1
  156. package/dist/ownerDocument-YGhwAnr1.js +0 -33
  157. package/dist/useCompoundItem-B7Eo_qZk.js +0 -68
  158. package/dist/useEventCallback-BAQJJ3ye.js +0 -14
  159. package/dist/useId-BW-oWmul.js +0 -19
@@ -1,51 +1,37 @@
1
1
  import '../../assets/TextDisplay.css';
2
- import { jsxs as f, jsx as d } from "react/jsx-runtime";
3
- import { c as $ } from "../../clsx-DB4S2d7J.js";
4
- import { Skeleton as m } from "../Skeleton/Skeleton.js";
5
- import { Typography as y } from "../Typography/Typography.js";
6
- const g = "_container_ia8vu_1", e = {
7
- container: g,
8
- "container--inline": "_container--inline_ia8vu_5"
9
- }, i = ({
10
- label: h,
11
- value: x,
12
- isLoading: o = !1,
13
- "data-testid": t = "TextDisplay",
2
+ import { jsxs as h, jsx as c } from "react/jsx-runtime";
3
+ 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,
10
+ isLoading: e = !1,
11
+ testId: t = "TextDisplay",
14
12
  labelOptions: r,
15
- valueOptions: c,
16
- inline: a
17
- }) => {
18
- const _ = (r == null ? void 0 : r.color) || (a ? "var(--black-100)" : "var(--gray-90)");
19
- return /* @__PURE__ */ f(
20
- "div",
13
+ valueOptions: a
14
+ }) => /* @__PURE__ */ h("div", { className: f.container, children: [
15
+ /* @__PURE__ */ c(
16
+ o,
21
17
  {
22
- className: $([e.container, { [e["container--inline"]]: a }]),
23
- "data-testid": `${t}-container`,
24
- children: [
25
- /* @__PURE__ */ d(
26
- y,
27
- {
28
- color: _,
29
- variant: (r == null ? void 0 : r.variant) || "base",
30
- "data-testid": `${t}-label`,
31
- bold: (r == null ? void 0 : r.bold) ?? a,
32
- children: o ? /* @__PURE__ */ d(m, { style: { width: 70, marginBottom: 2 }, "data-testid": `${t}-skeletonLabel` }) : h
33
- }
34
- ),
35
- /* @__PURE__ */ d(
36
- y,
37
- {
38
- bold: (c == null ? void 0 : c.bold) ?? !a,
39
- color: (c == null ? void 0 : c.color) || "var(--gray-90)",
40
- variant: (c == null ? void 0 : c.variant) || (a ? "base" : "base-lg"),
41
- "data-testid": `${t}-value`,
42
- children: o ? /* @__PURE__ */ d(m, { style: { width: 100 }, "data-testid": `${t}-skeletonValue` }) : x || "-"
43
- }
44
- )
45
- ]
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
46
22
  }
47
- );
48
- };
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
+ ] });
49
35
  export {
50
- i as TextDisplay
36
+ $ as TextDisplay
51
37
  };
@@ -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, "data-testid": dataTestId, labelOptions, valueOptions, inline, }: import('./TextDisplay').TextDisplayProps) => import("react/jsx-runtime").JSX.Element;
5
+ component: ({ label, value, isLoading, testId, labelOptions, valueOptions, }: import('./TextDisplay').TextDisplayProps) => import("react/jsx-runtime").JSX.Element;
6
6
  tags: string[];
7
7
  };
8
8
  export default meta;
@@ -11,4 +11,3 @@ export declare const Simple: Story;
11
11
  export declare const WithLoading: Story;
12
12
  export declare const Size: Story;
13
13
  export declare const Color: Story;
14
- export declare const Horizontal: Story;
@@ -1,22 +1,22 @@
1
- import '../../assets/Toggle.css';
1
+ import '../../assets/Toggle2.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 H, c as C, P as e, d as M, e as A } from "../../useSlotProps-C_I1kEHr.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";
5
5
  import * as F from "react";
6
- import { u as D } from "../../useControlled-CCMYYdCM.js";
7
- import { u as L } from "../../useIsFocusVisible-BH4IAdcw.js";
8
- function W(l) {
6
+ import { u as A } from "../../useControlled-CCMYYdCM.js";
7
+ import { u as D } from "../../useIsFocusVisible-BH4IAdcw.js";
8
+ function L(l) {
9
9
  const {
10
10
  checked: s,
11
11
  defaultChecked: i,
12
- disabled: a,
12
+ disabled: r,
13
13
  onBlur: c,
14
14
  onChange: h,
15
15
  onFocus: n,
16
16
  onFocusVisible: u,
17
- readOnly: r,
17
+ readOnly: a,
18
18
  required: p
19
- } = l, [N, V] = D({
19
+ } = l, [N, V] = A({
20
20
  controlled: s,
21
21
  default: !!i,
22
22
  name: "Switch",
@@ -29,26 +29,26 @@ function W(l) {
29
29
  onBlur: B,
30
30
  onFocus: _,
31
31
  ref: f
32
- } = L(), [y, q] = F.useState(!1);
33
- a && y && q(!1), F.useEffect(() => {
32
+ } = D(), [y, z] = F.useState(!1);
33
+ r && y && z(!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 && (q(!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 && (z(!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 && q(!1), c == null || c(o), (d = t.onBlur) == null || d.call(t, o);
41
+ B(o), b.current === !1 && z(!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: !!a,
45
+ disabled: !!r,
46
46
  focusVisible: y,
47
47
  getInputProps: (t = {}) => k({
48
48
  checked: s,
49
49
  defaultChecked: i,
50
- disabled: a,
51
- readOnly: r,
50
+ disabled: r,
51
+ readOnly: a,
52
52
  ref: x,
53
53
  required: p,
54
54
  type: "checkbox",
@@ -60,11 +60,11 @@ function W(l) {
60
60
  onBlur: T(t)
61
61
  }),
62
62
  inputRef: x,
63
- readOnly: !!r
63
+ readOnly: !!a
64
64
  };
65
65
  }
66
66
  const I = "Switch";
67
- function z(l) {
67
+ function W(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: a,
75
+ focusVisible: r,
76
76
  readOnly: c
77
77
  } = l;
78
- return M({
79
- root: ["root", s && "checked", i && "disabled", a && "focusVisible", c && "readOnly"],
78
+ return H({
79
+ root: ["root", s && "checked", i && "disabled", r && "focusVisible", c && "readOnly"],
80
80
  thumb: ["thumb"],
81
81
  input: ["input"],
82
82
  track: ["track"]
83
- }, A(z));
83
+ }, M(W));
84
84
  }, $ = /* @__PURE__ */ F.forwardRef(function(s, i) {
85
- var a, c, h, n;
85
+ var r, c, h, n;
86
86
  const {
87
87
  slotProps: u = {},
88
- slots: r = {}
89
- } = s, p = H(s, G), {
88
+ slots: a = {}
89
+ } = s, p = q(s, G), {
90
90
  getInputProps: N,
91
91
  checked: V,
92
92
  disabled: S,
93
93
  focusVisible: b,
94
94
  readOnly: B
95
- } = W(s), _ = k({}, s, {
95
+ } = L(s), _ = k({}, s, {
96
96
  checked: V,
97
97
  disabled: S,
98
98
  focusVisible: b,
99
99
  readOnly: B
100
- }), f = J(_), y = (a = r.root) != null ? a : "span", q = C({
100
+ }), f = J(_), y = (r = a.root) != null ? r : "span", z = 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 = r.thumb) != null ? c : "span", w = C({
109
+ }), m = (c = a.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 = r.input) != null ? h : "input", x = C({
114
+ }), T = (h = a.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 = r.track === null ? () => null : (n = r.track) != null ? n : "span", t = C({
120
+ }), R = a.track === null ? () => null : (n = a.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({}, q, {
126
+ return /* @__PURE__ */ j(y, k({}, z, {
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_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",
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",
209
209
  toggle__label: K,
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",
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",
218
218
  toggle: Q,
219
- "toggle__toggle-el-wrapper": "_toggle__toggle-el-wrapper_p0gq9_85",
219
+ "toggle__toggle-el-wrapper": "_toggle__toggle-el-wrapper_1rzg2_84",
220
220
  input: X,
221
221
  thumb: Y,
222
222
  track: Z,
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 = ({
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 = ({
227
227
  label: l,
228
228
  checked: s,
229
229
  disabled: i,
230
- classNameWrapper: a,
230
+ classNameWrapper: r,
231
231
  classNameInput: c,
232
232
  "data-testid": h,
233
233
  onChange: n,
234
234
  classNameLabel: u
235
235
  }) => {
236
- const r = (p) => {
236
+ const a = (p) => {
237
237
  n == null || n(p);
238
238
  };
239
- return /* @__PURE__ */ j("div", { className: O(g.toggle, a), "data-testid": h, children: [
239
+ return /* @__PURE__ */ j("div", { className: O(g.toggle, r), "data-testid": h, children: [
240
240
  /* @__PURE__ */ P(
241
241
  $,
242
242
  {
243
243
  checked: s === !0,
244
244
  disabled: i,
245
- onChange: r,
245
+ onChange: a,
246
246
  "aria-label": l,
247
247
  slotProps: {
248
248
  root: (p) => ({
@@ -262,5 +262,5 @@ const K = "_toggle__label_p0gq9_43", Q = "_toggle_p0gq9_43", X = "_input_p0gq9_8
262
262
  ] });
263
263
  };
264
264
  export {
265
- ae as Toggle
265
+ re as Toggle
266
266
  };
@@ -13,8 +13,6 @@ export type ToggleGroupProps = {
13
13
  * error and legend append their names e.g. {data-testid}-error and {data-testid}-legend
14
14
  * */
15
15
  'data-testid'?: string;
16
- /** Controls if children items should have same width */
17
- equalWidth?: boolean;
18
16
  };
19
17
  declare const Group: import('react').ForwardRefExoticComponent<ToggleGroupProps & import('react').RefAttributes<HTMLFieldSetElement>>;
20
18
  export default Group;
@@ -1,9 +1,7 @@
1
1
  import "react/jsx-runtime";
2
2
  import "react";
3
- import "../../clsx-DB4S2d7J.js";
4
3
  import "../Icon/Icon.js";
5
- import "../Typography/Typography.js";
6
- import { G as e } from "../../Group-DspH8hyO.js";
4
+ import { G as i } from "../../Group-B3p31ftp.js";
7
5
  export {
8
- e as default
6
+ i as default
9
7
  };
@@ -10,8 +10,6 @@ export type ToggleGroupItemProps<T extends string | number> = {
10
10
  onChange: (value: T | '') => void;
11
11
  /** Dataset test id only used for tests to reach in and grab the rendered DOM node of the label */
12
12
  'data-testid'?: string;
13
- /** Controls if component should be disabled */
14
- disabled?: boolean;
15
13
  };
16
14
  declare const Toggle: import('react').ForwardRefExoticComponent<ToggleGroupItemProps<string | number> & import('react').RefAttributes<HTMLInputElement>>;
17
15
  export default Toggle;
@@ -2,20 +2,16 @@ 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";
6
- import "../Input/Input.js";
7
- import "../Avatar/Avatar.js";
8
5
  import "../Button/Button.js";
9
- import { T as j } from "../../Toggle-2kIaSHMl.js";
10
- import "../Dialog/Dialog.js";
6
+ import { T as b } from "../../Toggle-BCgIItCc.js";
7
+ import "../Dialog/Backdrop.js";
8
+ import "../Typography/Typography.js";
11
9
  import "../IconButton/IconButton.js";
12
- import "../InputSearch/InputSearch.js";
13
10
  import "../Select/Select.js";
14
- import "../Popover/Popover.js";
15
11
  import "../Table/Table.js";
16
12
  import "../Tabs/Tabs.js";
17
- import "../../Group-DspH8hyO.js";
13
+ import "../../Group-B3p31ftp.js";
18
14
  import "../../contexts/SnackbarProvider/SnackbarProvider.js";
19
15
  export {
20
- j as default
16
+ b as default
21
17
  };
@@ -1,5 +1,5 @@
1
- import { T as e } from "../../Toggle-2kIaSHMl.js";
2
- import { G as p } from "../../Group-DspH8hyO.js";
1
+ import { T as e } from "../../Toggle-BCgIItCc.js";
2
+ import { G as p } from "../../Group-B3p31ftp.js";
3
3
  export {
4
4
  p as ToggleGroup,
5
5
  e as ToggleGroupItem
@@ -11,7 +11,6 @@ declare const meta: {
11
11
  error?: import('react').ReactNode;
12
12
  children: import('react').ReactElement<import('./Toggle.tsx').ToggleGroupItemProps<string | number>, string | import('react').JSXElementConstructor<any>>[];
13
13
  'data-testid'?: string | undefined;
14
- equalWidth?: boolean | undefined;
15
14
  ref?: import('react').LegacyRef<HTMLFieldSetElement> | undefined;
16
15
  key?: import('react').Key | null | undefined;
17
16
  }>) => import("react/jsx-runtime").JSX.Element)[];
@@ -24,4 +23,3 @@ type Story = StoryObj<typeof meta>;
24
23
  export declare const Simple: Story;
25
24
  export declare const NoLegend: Story;
26
25
  export declare const WithError: Story;
27
- export declare const ItemsWithEqualWidth: Story;
@@ -14,7 +14,7 @@ export type TooltipProps = {
14
14
  onClose?: () => void;
15
15
  /** The color of the tooltip */
16
16
  theme?: 'white' | 'black';
17
- /** The padding applied to the tooltip */
17
+ /** Dhe padding applied to the tooltip */
18
18
  padding?: 'small' | 'normal';
19
19
  /** The Position where the tooltip will be display relative to the anchor element */
20
20
  position?: PopupPlacement;
@@ -28,8 +28,6 @@ export type TooltipProps = {
28
28
  'data-testid'?: string;
29
29
  /** Function thats return the HTML Element of target. Important to EllipsisTooltip knows if the node needs or not the ellipsis */
30
30
  onTargetCreated?: (e: HTMLElement) => void;
31
- /** Disable uses portal (true by default) */
32
- disablePortal?: boolean;
33
31
  };
34
32
  declare const Tooltip: ({ arialRole, children: childrenProp, className, disableHoverListener, onClose, padding, position, open: openProp, theme, title, onTargetCreated, ...rest }: TooltipProps) => import("react/jsx-runtime").JSX.Element;
35
33
  export { Tooltip };
@@ -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-Ck3XlWMq.js";
6
- import { _ as $, b as z, P as l } from "../../useSlotProps-C_I1kEHr.js";
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";
7
7
  import { c as D } from "../../clsx-DB4S2d7J.js";
8
- import { C as F } from "../../ClickAwayListener-DbEYZpyh.js";
8
+ import { C as F } from "../../ClickAwayListener-BSW-Nd-y.js";
9
9
  function I() {
10
10
  const e = u.useContext(O);
11
11
  if (!e)
@@ -114,10 +114,10 @@ const B = "_tooltip_1dujm_1", m = {
114
114
  /* @__PURE__ */ a(
115
115
  V,
116
116
  {
117
- disablePortal: !0,
118
117
  ...N,
119
118
  open: j,
120
119
  anchor: t == null ? void 0 : t.current,
120
+ disablePortal: !0,
121
121
  style: w,
122
122
  role: e,
123
123
  placement: f,
@@ -22,7 +22,6 @@ declare const meta: {
22
22
  style?: import('react').CSSProperties | undefined;
23
23
  'data-testid'?: string | undefined;
24
24
  onTargetCreated?: ((e: HTMLElement) => void) | undefined;
25
- disablePortal?: boolean | undefined;
26
25
  }>) => import("react/jsx-runtime").JSX.Element)[];
27
26
  };
28
27
  export default meta;
@@ -1,65 +1,65 @@
1
1
  import '../../assets/Typography.css';
2
- import { jsx as m } from "react/jsx-runtime";
3
- import { forwardRef as c, useMemo as f } from "react";
4
- import { bemify as x, getBEMBase as k, getBEMBlock as B } from "../../utils/styleStrings.js";
5
- import { c as $ } from "../../clsx-DB4S2d7J.js";
2
+ import { jsx as b } from "react/jsx-runtime";
3
+ import { forwardRef as m, useMemo as c } from "react";
4
+ import { bemify as f, getBEMBase as x, getBEMBlock as k } from "../../utils/styleStrings.js";
5
+ import { c as B } from "../../clsx-DB4S2d7J.js";
6
6
  const t = {
7
- "u-typography-h1": "_u-typography-h1_gn8st_1",
8
- "u-typography-h2": "_u-typography-h2_gn8st_8",
9
- "u-typography-h3": "_u-typography-h3_gn8st_15",
10
- "u-typography-h4": "_u-typography-h4_gn8st_22",
11
- "u-typography-h5": "_u-typography-h5_gn8st_29",
12
- "u-typography-h6": "_u-typography-h6_gn8st_36",
13
- "u-typography-base": "_u-typography-base_gn8st_43",
14
- "u-typography-base--xxl": "_u-typography-base--xxl_gn8st_49",
15
- "u-typography-base--xl": "_u-typography-base--xl_gn8st_53",
16
- "u-typography-base--lg": "_u-typography-base--lg_gn8st_57",
17
- "u-typography-base--sm": "_u-typography-base--sm_gn8st_61",
18
- "u-typography-base--bold": "_u-typography-base--bold_gn8st_65",
19
- "u-typography-base--strikethrough": "_u-typography-base--strikethrough_gn8st_68",
20
- "u-typography-base--underlined": "_u-typography-base--underlined_gn8st_71",
21
- "u-typography-base--strikethrough-underlined": "_u-typography-base--strikethrough-underlined_gn8st_74"
22
- }, E = (e) => {
7
+ "u-typography-h1": "_u-typography-h1_zizdh_1",
8
+ "u-typography-h2": "_u-typography-h2_zizdh_8",
9
+ "u-typography-h3": "_u-typography-h3_zizdh_15",
10
+ "u-typography-h4": "_u-typography-h4_zizdh_22",
11
+ "u-typography-h5": "_u-typography-h5_zizdh_29",
12
+ "u-typography-h6": "_u-typography-h6_zizdh_36",
13
+ "u-typography-base": "_u-typography-base_zizdh_43",
14
+ "u-typography-base--xxl": "_u-typography-base--xxl_zizdh_48",
15
+ "u-typography-base--xl": "_u-typography-base--xl_zizdh_52",
16
+ "u-typography-base--lg": "_u-typography-base--lg_zizdh_56",
17
+ "u-typography-base--sm": "_u-typography-base--sm_zizdh_60",
18
+ "u-typography-base--bold": "_u-typography-base--bold_zizdh_64",
19
+ "u-typography-base--strikethrough": "_u-typography-base--strikethrough_zizdh_67",
20
+ "u-typography-base--underlined": "_u-typography-base--underlined_zizdh_70",
21
+ "u-typography-base--strikethrough-underlined": "_u-typography-base--strikethrough-underlined_zizdh_73"
22
+ }, $ = (e) => {
23
23
  const a = e.toString();
24
24
  let r = "base";
25
25
  return a.match(/^h[1-6]/) && (r = a), r;
26
- }, M = c((e, a) => {
26
+ }, E = m((e, a) => {
27
27
  const {
28
28
  children: r,
29
- className: h,
29
+ className: s,
30
30
  underline: y = !1,
31
- element: g = "span",
32
- bold: n = !1,
33
- color: l,
34
- variant: u = E(g),
35
- strikethrough: s = !1,
36
- elementProps: i
37
- } = e, b = g, d = f(() => {
38
- const o = `u-typography-${x(u)}`, _ = k(o), p = B(o);
39
- return $(
40
- t[_],
41
- { [t[`${o}`]]: o !== _ },
42
- h,
43
- { [t[`${p}--bold`]]: n },
31
+ element: u = "span",
32
+ bold: i = !1,
33
+ color: d,
34
+ variant: _ = $(u),
35
+ strikethrough: h = !1,
36
+ elementProps: n
37
+ } = e, l = u, z = c(() => {
38
+ const o = `u-typography-${f(_)}`, g = x(o), p = k(o);
39
+ return B(
40
+ t[g],
41
+ { [t[`${o}`]]: o !== g },
42
+ s,
43
+ { [t[`${p}--bold`]]: i },
44
44
  { [t[`${p}--underlined`]]: y },
45
- { [t[`${p}--strikethrough`]]: s },
46
- { [t[`${p}--strikethrough-underlined`]]: s && s && y }
45
+ { [t[`${p}--strikethrough`]]: h },
46
+ { [t[`${p}--strikethrough-underlined`]]: h && h && y }
47
47
  );
48
- }, [n, h, s, y, u]);
49
- return /* @__PURE__ */ m(
50
- b,
48
+ }, [i, s, h, y, _]);
49
+ return /* @__PURE__ */ b(
50
+ l,
51
51
  {
52
- style: { color: l },
52
+ style: { color: d },
53
53
  ref: a,
54
54
  "data-testid": e["data-testid"],
55
- ...i ?? {},
56
- className: d,
55
+ ...n ?? {},
56
+ className: z,
57
57
  children: r
58
58
  }
59
59
  );
60
- }), w = M;
60
+ }), j = E;
61
61
  export {
62
- w as Text,
63
- M as Typography,
64
- M as default
62
+ j as Text,
63
+ E as Typography,
64
+ E as default
65
65
  };