@pismo/marola 1.0.0-beta.67 → 1.0.0-beta.7

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 (168) 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-BWF0-SPB.js +175 -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/Toggle.css +1 -1
  28. package/dist/assets/Toggle2.css +1 -1
  29. package/dist/assets/Typography.css +1 -1
  30. package/dist/{combineHooksSlotProps-C-zYvfnF.js → combineHooksSlotProps-DVjg9PRh.js} +1 -1
  31. package/dist/components/Adornment/Adornment.d.ts +2 -11
  32. package/dist/components/Adornment/Adornment.js +6 -6
  33. package/dist/components/Advice/Advice.d.ts +17 -32
  34. package/dist/components/Advice/Advice.js +40 -39
  35. package/dist/components/Advice/Advice.stories.d.ts +3 -4
  36. package/dist/components/Button/Button.d.ts +0 -2
  37. package/dist/components/Button/Button.js +49 -51
  38. package/dist/components/Checkbox/Checkbox.js +52 -52
  39. package/dist/components/Chip/Chip.d.ts +4 -6
  40. package/dist/components/Chip/Chip.js +7 -11
  41. package/dist/components/Chip/Chip.stories.d.ts +14 -5
  42. package/dist/components/Dialog/Actions.js +1 -1
  43. package/dist/components/Dialog/Backdrop.d.ts +3 -3
  44. package/dist/components/Dialog/Backdrop.js +7 -8
  45. package/dist/components/Dialog/CloseIconButton.d.ts +2 -1
  46. package/dist/components/Dialog/CloseIconButton.js +18 -15
  47. package/dist/components/Dialog/Dialog.d.ts +10 -16
  48. package/dist/components/Dialog/Dialog.js +166 -167
  49. package/dist/components/Dialog/Dialog.stories.d.ts +107 -113
  50. package/dist/components/Dialog/DialogTitle.d.ts +2 -5
  51. package/dist/components/Dialog/DialogTitle.js +16 -22
  52. package/dist/components/EllipsisTooltip/EllipsisTooltip.js +17 -30
  53. package/dist/components/EllipsisTooltip/EllipsisTooltip.stories.d.ts +1 -2
  54. package/dist/components/Icon/Icon.js +47 -315
  55. package/dist/components/Icon/types.d.ts +1 -1
  56. package/dist/components/IconButton/IconButton.js +42 -42
  57. package/dist/components/Input/Input.d.ts +5 -26
  58. package/dist/components/Input/Input.js +304 -319
  59. package/dist/components/Input/Input.stories.d.ts +21 -2
  60. package/dist/components/InputSearch/InputSearch.d.ts +7 -37
  61. package/dist/components/InputSearch/InputSearch.js +29 -27
  62. package/dist/components/InputSearch/InputSearch.stories.d.ts +3 -15
  63. package/dist/components/PageHeader/PageHeader.d.ts +2 -6
  64. package/dist/components/PageHeader/PageHeader.js +71 -78
  65. package/dist/components/PageHeader/PageHeader.stories.d.ts +1 -3
  66. package/dist/components/Pagination/Pagination.d.ts +1 -5
  67. package/dist/components/Pagination/Pagination.js +91 -90
  68. package/dist/components/Pagination/Pagination.stories.d.ts +1 -1
  69. package/dist/components/RowItem/RowItem.d.ts +2 -2
  70. package/dist/components/RowItem/RowItem.js +6 -10
  71. package/dist/components/Select/Select.d.ts +0 -22
  72. package/dist/components/Select/Select.js +413 -476
  73. package/dist/components/Select/SelectButton.d.ts +0 -2
  74. package/dist/components/Select/SelectButton.js +2 -3
  75. package/dist/components/Skeleton/Skeleton.d.ts +1 -3
  76. package/dist/components/Skeleton/Skeleton.js +14 -20
  77. package/dist/components/Skeleton/SkeletonTable.stories.d.ts +1 -1
  78. package/dist/components/Snackbar/Snackbar.js +94 -94
  79. package/dist/components/Snackbar/Snackbar.stories.d.ts +3 -3
  80. package/dist/components/SortTooltip/SortTooltip.js +46 -46
  81. package/dist/components/Stepper/Stepper.js +35 -35
  82. package/dist/components/Table/Table.d.ts +1 -3
  83. package/dist/components/Table/Table.js +99 -87
  84. package/dist/components/Table/Table.stories.d.ts +1 -1
  85. package/dist/components/Tabs/Tab.d.ts +3 -5
  86. package/dist/components/Tabs/Tab.js +36 -38
  87. package/dist/components/Tabs/TabPanel.d.ts +2 -4
  88. package/dist/components/Tabs/TabPanel.js +40 -51
  89. package/dist/components/Tabs/Tabs.d.ts +4 -6
  90. package/dist/components/Tabs/Tabs.js +128 -131
  91. package/dist/components/TextDisplay/TextDisplay.d.ts +3 -7
  92. package/dist/components/TextDisplay/TextDisplay.js +37 -44
  93. package/dist/components/TextDisplay/TextDisplay.stories.d.ts +1 -2
  94. package/dist/components/Toggle/Toggle.js +55 -55
  95. package/dist/components/ToggleGroup/Group.d.ts +0 -2
  96. package/dist/components/ToggleGroup/Group.js +2 -4
  97. package/dist/components/ToggleGroup/Toggle.d.ts +0 -2
  98. package/dist/components/ToggleGroup/Toggle.js +5 -9
  99. package/dist/components/ToggleGroup/ToggleGroup.js +2 -2
  100. package/dist/components/ToggleGroup/ToggleGroup.stories.d.ts +0 -2
  101. package/dist/components/Tooltip/Tooltip.d.ts +1 -3
  102. package/dist/components/Tooltip/Tooltip.js +4 -4
  103. package/dist/components/Tooltip/Tooltip.stories.d.ts +0 -1
  104. package/dist/components/Typography/Typography.js +47 -47
  105. package/dist/{useSlotProps-C_I1kEHr.js → index-CH45lKw7.js} +99 -99
  106. package/dist/{index-bQFToy-I.js → index-CjW42-M-.js} +1 -1
  107. package/dist/main.d.ts +0 -8
  108. package/dist/main.js +75 -91
  109. package/dist/marola.css +1 -1
  110. package/dist/{useButton-DcihopJG.js → useButton-DNk3wrQp.js} +1 -1
  111. package/dist/useCompoundItem-D1iRfg8D.js +84 -0
  112. package/dist/useEventCallback-xTG9piMa.js +45 -0
  113. package/dist/{useList-B9C55YB7.js → useList-B0hog_3-.js} +2 -2
  114. package/package.json +13 -22
  115. package/dist/Dialog.module-W7UCXlf3.js +0 -29
  116. package/dist/Group-DspH8hyO.js +0 -30
  117. package/dist/Popover.module-B4boCutS.js +0 -10
  118. package/dist/SelectButton-B38avP9u.js +0 -75
  119. package/dist/Toggle-MfR7l8Wn.js +0 -190
  120. package/dist/assets/Alert.css +0 -1
  121. package/dist/assets/Autocomplete.css +0 -1
  122. package/dist/assets/Avatar.css +0 -1
  123. package/dist/assets/Description.css +0 -1
  124. package/dist/assets/Popover.css +0 -1
  125. package/dist/assets/ResultWithChips.css +0 -1
  126. package/dist/assets/StepperNavigator.css +0 -1
  127. package/dist/components/Adornment/Adornment.stories.d.ts +0 -14
  128. package/dist/components/Adornment/adornment.test.d.ts +0 -1
  129. package/dist/components/Alert/Alert.d.ts +0 -11
  130. package/dist/components/Alert/Alert.js +0 -46
  131. package/dist/components/Alert/Alert.stories.d.ts +0 -24
  132. package/dist/components/Alert/Alert.test.d.ts +0 -1
  133. package/dist/components/Autocomplete/Autocomplete.d.ts +0 -20
  134. package/dist/components/Autocomplete/Autocomplete.js +0 -679
  135. package/dist/components/Autocomplete/Autocomplete.stories.d.ts +0 -23
  136. package/dist/components/Avatar/Avatar.d.ts +0 -15
  137. package/dist/components/Avatar/Avatar.js +0 -51
  138. package/dist/components/Avatar/Avatar.stories.d.ts +0 -25
  139. package/dist/components/ConfirmationDialog/ConfirmationDialog.d.ts +0 -14
  140. package/dist/components/ConfirmationDialog/ConfirmationDialog.js +0 -37
  141. package/dist/components/ConfirmationDialog/ConfirmationDialog.stories.d.ts +0 -23
  142. package/dist/components/ConfirmationDialog/ConfirmationModal.test.d.ts +0 -1
  143. package/dist/components/Description/Description.d.ts +0 -16
  144. package/dist/components/Description/Description.js +0 -64
  145. package/dist/components/Description/Description.stories.d.ts +0 -20
  146. package/dist/components/Description/Description.test.d.ts +0 -1
  147. package/dist/components/PageHeader/PageHeader.test.d.ts +0 -1
  148. package/dist/components/Popover/Popover.d.ts +0 -32
  149. package/dist/components/Popover/Popover.js +0 -24
  150. package/dist/components/Popover/Popover.stories.d.ts +0 -34
  151. package/dist/components/Popover/PopoverBody.d.ts +0 -6
  152. package/dist/components/Popover/PopoverBody.js +0 -6
  153. package/dist/components/Popover/PopoverFooter.d.ts +0 -6
  154. package/dist/components/Popover/PopoverFooter.js +0 -6
  155. package/dist/components/Popover/PopoverHeader.d.ts +0 -6
  156. package/dist/components/Popover/PopoverHeader.js +0 -6
  157. package/dist/components/ResultWithChips/ResultWithChips.d.ts +0 -12
  158. package/dist/components/ResultWithChips/ResultWithChips.js +0 -33
  159. package/dist/components/RowItem/RowItem.stories.d.ts +0 -17
  160. package/dist/components/RowItem/rowItem.test.d.ts +0 -1
  161. package/dist/components/StepperNavigator/StepperNavigator.d.ts +0 -58
  162. package/dist/components/StepperNavigator/StepperNavigator.js +0 -115
  163. package/dist/components/StepperNavigator/StepperNavigator.stories.d.ts +0 -18
  164. package/dist/components/StepperNavigator/StepperNavigator.test.d.ts +0 -1
  165. package/dist/ownerDocument-YGhwAnr1.js +0 -33
  166. package/dist/useCompoundItem-B7Eo_qZk.js +0 -68
  167. package/dist/useEventCallback-BAQJJ3ye.js +0 -14
  168. package/dist/useId-BW-oWmul.js +0 -19
@@ -1,80 +1,78 @@
1
1
  import { jsx as T } from "react/jsx-runtime";
2
- import * as P from "react";
2
+ import * as m from "react";
3
3
  import { forwardRef as v } from "react";
4
- import { c as y } from "../../clsx-DB4S2d7J.js";
5
- import { u as x, s as C } from "../../Tabs.module-BGGTkDc5.js";
6
- import { g as N, a as _, u as w, b, _ as O, c as E, P as o, d as I, e as S } from "../../useSlotProps-C_I1kEHr.js";
7
- import { u as U } from "../../useId-BW-oWmul.js";
8
- import { u as j } from "../../useCompoundItem-B7Eo_qZk.js";
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";
9
7
  const h = "TabPanel";
10
- function M(t) {
11
- return N(h, t);
8
+ function j(t) {
9
+ return C(h, t);
12
10
  }
13
- _(h, ["root", "hidden"]);
14
- function V(t) {
11
+ N(h, ["root", "hidden"]);
12
+ function M(t) {
15
13
  return t.size;
16
14
  }
17
- function F(t) {
15
+ function V(t) {
18
16
  const {
19
17
  value: e,
20
18
  id: s,
21
19
  rootRef: n
22
- } = t, a = x();
23
- if (a === null)
20
+ } = t, i = y();
21
+ if (i === null)
24
22
  throw new Error("No TabContext provided");
25
23
  const {
26
24
  value: f,
27
- getTabId: m
28
- } = a, r = U(s), l = P.useRef(null), c = w(l, n), u = P.useMemo(() => ({
29
- id: r,
30
- ref: l
31
- }), [r]), {
32
- id: d
33
- } = j(e ?? V, u), i = d !== f, p = d !== void 0 ? m(d) : void 0;
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]), {
30
+ id: l
31
+ } = U(e ?? M, u), d = l !== f, p = l !== void 0 ? P(l) : void 0;
34
32
  return {
35
- hidden: i,
33
+ hidden: d,
36
34
  getRootProps: (g = {}) => b({
37
35
  "aria-labelledby": p ?? void 0,
38
- hidden: i,
39
- id: r ?? void 0
36
+ hidden: d,
37
+ id: a ?? void 0
40
38
  }, g, {
41
39
  ref: c
42
40
  }),
43
41
  rootRef: c
44
42
  };
45
43
  }
46
- const $ = ["children", "value", "slotProps", "slots"], k = (t) => {
44
+ const F = ["children", "value", "slotProps", "slots"], $ = (t) => {
47
45
  const {
48
46
  hidden: e
49
47
  } = t;
50
- return I({
48
+ return E({
51
49
  root: ["root", e && "hidden"]
52
- }, S(M));
53
- }, R = /* @__PURE__ */ P.forwardRef(function(e, s) {
50
+ }, I(j));
51
+ }, R = /* @__PURE__ */ m.forwardRef(function(e, s) {
54
52
  var n;
55
53
  const {
56
- children: a,
54
+ children: i,
57
55
  slotProps: f = {},
58
- slots: m = {}
59
- } = e, r = O(e, $), {
60
- hidden: l,
56
+ slots: P = {}
57
+ } = e, a = w(e, F), {
58
+ hidden: r,
61
59
  getRootProps: c
62
- } = F(e), u = b({}, e, {
63
- hidden: l
64
- }), d = k(u), i = (n = m.root) != null ? n : "div", p = E({
65
- elementType: i,
60
+ } = V(e), u = b({}, e, {
61
+ hidden: r
62
+ }), l = $(u), d = (n = P.root) != null ? n : "div", p = O({
63
+ elementType: d,
66
64
  getSlotProps: c,
67
65
  externalSlotProps: f.root,
68
- externalForwardedProps: r,
66
+ externalForwardedProps: a,
69
67
  additionalProps: {
70
68
  role: "tabpanel",
71
69
  ref: s
72
70
  },
73
71
  ownerState: u,
74
- className: d.root
72
+ className: l.root
75
73
  });
76
- return /* @__PURE__ */ T(i, b({}, p, {
77
- children: !l && a
74
+ return /* @__PURE__ */ T(d, b({}, p, {
75
+ children: !r && i
78
76
  }));
79
77
  });
80
78
  process.env.NODE_ENV !== "production" && (R.propTypes = {
@@ -112,18 +110,9 @@ process.env.NODE_ENV !== "production" && (R.propTypes = {
112
110
  */
113
111
  value: o.oneOfType([o.number, o.string])
114
112
  });
115
- const H = v(
116
- ({ children: t, value: e, className: s, "data-testid": n }, a) => /* @__PURE__ */ T(
117
- R,
118
- {
119
- className: y(C["tabs__tab-panel"], s),
120
- value: e,
121
- "data-testid": n,
122
- ref: a,
123
- children: t
124
- }
125
- )
113
+ const W = v(
114
+ ({ children: t, value: e, dataTestId: s }, n) => /* @__PURE__ */ T(R, { className: x["tabs__tab-panel"], value: e, "data-testid": s, ref: n, children: t })
126
115
  );
127
116
  export {
128
- H as TabPanel
117
+ W as TabPanel
129
118
  };
@@ -4,13 +4,11 @@ export interface TabsProps {
4
4
  /** Should contain `Tab` and `TabPanel` components to be rendered */
5
5
  children?: ReactNode;
6
6
  /** Selected tab */
7
- value?: string | number | null;
8
- /** CSS classes to be applied on the container element */
9
- className?: string;
10
- /** Id to be applied as `data-testid` on the container element */
11
- 'data-testid'?: string;
7
+ value?: number | string;
12
8
  /** Callback triggered when the user has selected a tab */
13
- onChange?: (tabValue: string | number | null, event?: React.SyntheticEvent<Element, Event> | null) => void;
9
+ onChange?: (tabValue: number | string | null, event?: React.SyntheticEvent<Element, Event> | null) => void;
10
+ /** Test id */
11
+ dataTestId?: string;
14
12
  }
15
13
  export declare const Tabs: import('react').ForwardRefExoticComponent<TabsProps & import('react').RefAttributes<HTMLDivElement>>;
16
14
  export * from './Tab';
@@ -1,15 +1,14 @@
1
1
  import { jsx as T } from "react/jsx-runtime";
2
2
  import * as r from "react";
3
- import { forwardRef as q } from "react";
4
- import { c as B } from "../../clsx-DB4S2d7J.js";
5
- import { T as G, u as J, s as Q } from "../../Tabs.module-BGGTkDc5.js";
6
- import { Tab as Ie } from "./Tab.js";
7
- import { TabPanel as Fe } from "./TabPanel.js";
8
- import { g as I, a as _, b as C, _ as F, c as $, P as t, d as N, e as w } from "../../useSlotProps-C_I1kEHr.js";
9
- import { a as M, C as O } from "../../useCompoundItem-B7Eo_qZk.js";
3
+ import { forwardRef as q, useState as B } from "react";
4
+ import { T as G, u as J, s as Q } from "../../Tabs.module-jkH1Qjn7.js";
5
+ import { Tab as Le } from "./Tab.js";
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";
10
9
  import { u as X } from "../../useControlled-CCMYYdCM.js";
11
- import { L as Y, a as Z } from "../../combineHooksSlotProps-C-zYvfnF.js";
12
- import { l as ee, m as te, u as oe } from "../../useList-B9C55YB7.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";
13
12
  const k = "Tabs";
14
13
  function se(s) {
15
14
  return I(k, s);
@@ -19,38 +18,38 @@ function ne(s) {
19
18
  const {
20
19
  value: e,
21
20
  defaultValue: o,
22
- onChange: l,
23
- orientation: a = "horizontal",
21
+ onChange: n,
22
+ orientation: i = "horizontal",
24
23
  direction: c = "ltr",
25
- selectionFollowsFocus: n = !1
26
- } = s, [d, i] = X({
24
+ selectionFollowsFocus: l = !1
25
+ } = s, [d, u] = X({
27
26
  controlled: e,
28
27
  default: o,
29
28
  name: "Tabs",
30
29
  state: "value"
31
- }), u = r.useCallback((x, y) => {
32
- i(y), l == null || l(x, y);
33
- }, [l, i]), {
30
+ }), a = r.useCallback((x, y) => {
31
+ u(y), n == null || n(x, y);
32
+ }, [n, u]), {
34
33
  subitems: m,
35
- contextValue: h
36
- } = M(), p = r.useRef(() => {
37
- }), f = r.useCallback((x) => {
34
+ contextValue: g
35
+ } = O(), p = r.useRef(() => {
36
+ }), b = r.useCallback((x) => {
38
37
  var y;
39
38
  return (y = m.get(x)) == null ? void 0 : y.id;
40
- }, [m]), b = r.useCallback((x) => p.current(x), []), P = r.useCallback((x) => {
39
+ }, [m]), f = r.useCallback((x) => p.current(x), []), P = r.useCallback((x) => {
41
40
  p.current = x;
42
41
  }, []);
43
42
  return {
44
43
  contextValue: C({
45
44
  direction: c,
46
- getTabId: b,
47
- getTabPanelId: f,
48
- onSelected: u,
49
- orientation: a,
45
+ getTabId: f,
46
+ getTabPanelId: b,
47
+ onSelected: a,
48
+ orientation: i,
50
49
  registerTabIdLookup: P,
51
- selectionFollowsFocus: n,
50
+ selectionFollowsFocus: l,
52
51
  value: d
53
- }, h)
52
+ }, g)
54
53
  };
55
54
  }
56
55
  function le(s) {
@@ -58,33 +57,33 @@ function le(s) {
58
57
  value: e,
59
58
  children: o
60
59
  } = s, {
61
- direction: l,
62
- getItemIndex: a,
60
+ direction: n,
61
+ getItemIndex: i,
63
62
  onSelected: c,
64
- orientation: n,
63
+ orientation: l,
65
64
  registerItem: d,
66
- registerTabIdLookup: i,
67
- selectionFollowsFocus: u,
65
+ registerTabIdLookup: u,
66
+ selectionFollowsFocus: a,
68
67
  totalSubitemCount: m,
69
- value: h,
68
+ value: g,
70
69
  getTabId: p,
71
- getTabPanelId: f
72
- } = e, b = r.useMemo(() => ({
73
- getItemIndex: a,
70
+ getTabPanelId: b
71
+ } = e, f = r.useMemo(() => ({
72
+ getItemIndex: i,
74
73
  registerItem: d,
75
74
  totalSubitemCount: m
76
- }), [d, a, m]), P = r.useMemo(() => ({
77
- direction: l,
75
+ }), [d, i, m]), P = r.useMemo(() => ({
76
+ direction: n,
78
77
  getTabId: p,
79
- getTabPanelId: f,
78
+ getTabPanelId: b,
80
79
  onSelected: c,
81
- orientation: n,
82
- registerTabIdLookup: i,
83
- selectionFollowsFocus: u,
84
- value: h
85
- }), [l, p, f, c, n, i, u, h]);
86
- return /* @__PURE__ */ T(O.Provider, {
87
- value: b,
80
+ orientation: l,
81
+ registerTabIdLookup: u,
82
+ selectionFollowsFocus: a,
83
+ value: g
84
+ }), [n, p, b, c, l, u, a, g]);
85
+ return /* @__PURE__ */ T(S.Provider, {
86
+ value: f,
88
87
  children: /* @__PURE__ */ T(G.Provider, {
89
88
  value: P,
90
89
  children: o
@@ -97,38 +96,38 @@ const re = ["children", "value", "defaultValue", "orientation", "direction", "on
97
96
  } = s;
98
97
  return N({
99
98
  root: ["root", e]
100
- }, w(se));
101
- }, S = /* @__PURE__ */ r.forwardRef(function(e, o) {
102
- var l;
99
+ }, M(se));
100
+ }, w = /* @__PURE__ */ r.forwardRef(function(e, o) {
101
+ var n;
103
102
  const {
104
- children: a,
103
+ children: i,
105
104
  orientation: c = "horizontal",
106
- direction: n = "ltr",
105
+ direction: l = "ltr",
107
106
  slotProps: d = {},
108
- slots: i = {}
109
- } = e, u = F(e, re), m = C({}, e, {
107
+ slots: u = {}
108
+ } = e, a = F(e, re), m = C({}, e, {
110
109
  orientation: c,
111
- direction: n
110
+ direction: l
112
111
  }), {
113
- contextValue: h
114
- } = ne(m), p = ae(m), f = (l = i.root) != null ? l : "div", b = $({
115
- elementType: f,
112
+ contextValue: g
113
+ } = ne(m), p = ae(m), b = (n = u.root) != null ? n : "div", f = $({
114
+ elementType: b,
116
115
  externalSlotProps: d.root,
117
- externalForwardedProps: u,
116
+ externalForwardedProps: a,
118
117
  additionalProps: {
119
118
  ref: o
120
119
  },
121
120
  ownerState: m,
122
121
  className: p.root
123
122
  });
124
- return /* @__PURE__ */ T(f, C({}, b, {
123
+ return /* @__PURE__ */ T(b, C({}, f, {
125
124
  children: /* @__PURE__ */ T(le, {
126
- value: h,
127
- children: a
125
+ value: g,
126
+ children: i
128
127
  })
129
128
  }));
130
129
  });
131
- process.env.NODE_ENV !== "production" && (S.propTypes = {
130
+ process.env.NODE_ENV !== "production" && (w.propTypes = {
132
131
  // ┌────────────────────────────── Warning ──────────────────────────────┐
133
132
  // │ These PropTypes are generated from the TypeScript type definitions. │
134
133
  // │ To update them, edit the TypeScript types and run `pnpm proptypes`. │
@@ -200,7 +199,7 @@ function ue(s, e) {
200
199
  });
201
200
  const o = ee(s, e), {
202
201
  context: {
203
- selectionFollowsFocus: l
202
+ selectionFollowsFocus: n
204
203
  }
205
204
  } = e;
206
205
  if (e.type === Y.itemsChange) {
@@ -210,7 +209,7 @@ function ue(s, e) {
210
209
  });
211
210
  te(null, "reset", e.context);
212
211
  }
213
- return l && o.highlightedValue != null ? C({}, o, {
212
+ return n && o.highlightedValue != null ? C({}, o, {
214
213
  selectedValues: [o.highlightedValue]
215
214
  }) : o;
216
215
  }
@@ -219,37 +218,37 @@ function ce(s) {
219
218
  const {
220
219
  rootRef: o
221
220
  } = s, {
222
- direction: l = "ltr",
223
- onSelected: a,
221
+ direction: n = "ltr",
222
+ onSelected: i,
224
223
  orientation: c = "horizontal",
225
- value: n,
224
+ value: l,
226
225
  registerTabIdLookup: d,
227
- selectionFollowsFocus: i
226
+ selectionFollowsFocus: u
228
227
  } = J(), {
229
- subitems: u,
228
+ subitems: a,
230
229
  contextValue: m
231
- } = M(), h = r.useCallback((g) => {
230
+ } = O(), g = r.useCallback((h) => {
232
231
  var v;
233
- return (v = u.get(g)) == null ? void 0 : v.id;
234
- }, [u]);
235
- d(h);
236
- const p = r.useMemo(() => Array.from(u.keys()), [u]), f = r.useCallback((g) => {
232
+ return (v = a.get(h)) == null ? void 0 : v.id;
233
+ }, [a]);
234
+ d(g);
235
+ const p = r.useMemo(() => Array.from(a.keys()), [a]), b = r.useCallback((h) => {
237
236
  var v, V;
238
- return g == null ? null : (v = (V = u.get(g)) == null ? void 0 : V.ref.current) != null ? v : null;
239
- }, [u]), b = l === "rtl";
237
+ return h == null ? null : (v = (V = a.get(h)) == null ? void 0 : V.ref.current) != null ? v : null;
238
+ }, [a]), f = n === "rtl";
240
239
  let P;
241
- c === "vertical" ? P = "vertical" : P = b ? "horizontal-rtl" : "horizontal-ltr";
242
- const x = r.useCallback((g, v) => {
240
+ c === "vertical" ? P = "vertical" : P = f ? "horizontal-rtl" : "horizontal-ltr";
241
+ const x = r.useCallback((h, v) => {
243
242
  var V;
244
- a(g, (V = v[0]) != null ? V : null);
245
- }, [a]), y = r.useMemo(() => n === void 0 ? {} : n != null ? {
246
- selectedValues: [n]
243
+ i(h, (V = v[0]) != null ? V : null);
244
+ }, [i]), y = r.useMemo(() => l === void 0 ? {} : l != null ? {
245
+ selectedValues: [l]
247
246
  } : {
248
247
  selectedValues: []
249
- }, [n]), U = r.useCallback((g) => {
248
+ }, [l]), U = r.useCallback((h) => {
250
249
  var v, V;
251
- return (v = (V = u.get(g)) == null ? void 0 : V.disabled) != null ? v : !1;
252
- }, [u]), {
250
+ return (v = (V = a.get(h)) == null ? void 0 : V.disabled) != null ? v : !1;
251
+ }, [a]), {
253
252
  contextValue: L,
254
253
  dispatch: R,
255
254
  getRootProps: D,
@@ -260,27 +259,27 @@ function ce(s) {
260
259
  rootRef: K
261
260
  } = oe({
262
261
  controlledProps: y,
263
- disabledItemsFocusable: !i,
262
+ disabledItemsFocusable: !u,
264
263
  focusManagement: "DOM",
265
- getItemDomElement: f,
264
+ getItemDomElement: b,
266
265
  isItemDisabled: U,
267
266
  items: p,
268
267
  rootRef: o,
269
268
  onChange: x,
270
269
  orientation: P,
271
270
  reducerActionContext: r.useMemo(() => ({
272
- selectionFollowsFocus: i || !1
273
- }), [i]),
271
+ selectionFollowsFocus: u || !1
272
+ }), [u]),
274
273
  selectionMode: "single",
275
274
  stateReducer: ue
276
275
  });
277
276
  r.useEffect(() => {
278
- n !== void 0 && n != null && R({
277
+ l !== void 0 && l != null && R({
279
278
  type: z.valueChange,
280
- value: n
279
+ value: l
281
280
  });
282
- }, [R, n]);
283
- const W = (g = {}) => C({}, g, D(g), {
281
+ }, [R, l]);
282
+ const W = (h = {}) => C({}, h, D(h), {
284
283
  "aria-orientation": c === "vertical" ? "vertical" : void 0,
285
284
  role: "tablist"
286
285
  });
@@ -289,7 +288,7 @@ function ce(s) {
289
288
  dispatch: R,
290
289
  getRootProps: W,
291
290
  highlightedValue: j,
292
- isRtl: b,
291
+ isRtl: f,
293
292
  orientation: c,
294
293
  rootRef: K,
295
294
  selectedValue: (e = H[0]) != null ? e : null
@@ -300,24 +299,24 @@ function de(s) {
300
299
  value: e,
301
300
  children: o
302
301
  } = s, {
303
- dispatch: l,
304
- getItemIndex: a,
302
+ dispatch: n,
303
+ getItemIndex: i,
305
304
  getItemState: c,
306
- registerItem: n,
305
+ registerItem: l,
307
306
  totalSubitemCount: d
308
- } = e, i = r.useMemo(() => ({
309
- dispatch: l,
307
+ } = e, u = r.useMemo(() => ({
308
+ dispatch: n,
310
309
  getItemState: c,
311
- getItemIndex: a
312
- }), [l, a, c]), u = r.useMemo(() => ({
313
- getItemIndex: a,
314
- registerItem: n,
310
+ getItemIndex: i
311
+ }), [n, i, c]), a = r.useMemo(() => ({
312
+ getItemIndex: i,
313
+ registerItem: l,
315
314
  totalSubitemCount: d
316
- }), [n, a, d]);
317
- return /* @__PURE__ */ T(O.Provider, {
318
- value: u,
315
+ }), [l, i, d]);
316
+ return /* @__PURE__ */ T(S.Provider, {
317
+ value: a,
319
318
  children: /* @__PURE__ */ T(Z.Provider, {
320
- value: i,
319
+ value: u,
321
320
  children: o
322
321
  })
323
322
  });
@@ -328,35 +327,35 @@ const me = ["children", "slotProps", "slots"], pe = (s) => {
328
327
  } = s;
329
328
  return N({
330
329
  root: ["root", e]
331
- }, w(ie));
330
+ }, M(ie));
332
331
  }, A = /* @__PURE__ */ r.forwardRef(function(e, o) {
333
- var l;
332
+ var n;
334
333
  const {
335
- children: a,
334
+ children: i,
336
335
  slotProps: c = {},
337
- slots: n = {}
336
+ slots: l = {}
338
337
  } = e, d = F(e, me), {
339
- isRtl: i,
340
- orientation: u,
338
+ isRtl: u,
339
+ orientation: a,
341
340
  getRootProps: m,
342
- contextValue: h
341
+ contextValue: g
343
342
  } = ce({
344
343
  rootRef: o
345
344
  }), p = C({}, e, {
346
- isRtl: i,
347
- orientation: u
348
- }), f = pe(p), b = (l = n.root) != null ? l : "div", P = $({
349
- elementType: b,
345
+ isRtl: u,
346
+ orientation: a
347
+ }), b = pe(p), f = (n = l.root) != null ? n : "div", P = $({
348
+ elementType: f,
350
349
  getSlotProps: m,
351
350
  externalSlotProps: c.root,
352
351
  externalForwardedProps: d,
353
352
  ownerState: p,
354
- className: f.root
353
+ className: b.root
355
354
  });
356
355
  return /* @__PURE__ */ T(de, {
357
- value: h,
358
- children: /* @__PURE__ */ T(b, C({}, P, {
359
- children: a
356
+ value: g,
357
+ children: /* @__PURE__ */ T(f, C({}, P, {
358
+ children: i
360
359
  }))
361
360
  });
362
361
  });
@@ -389,16 +388,14 @@ process.env.NODE_ENV !== "production" && (A.propTypes = {
389
388
  root: t.elementType
390
389
  })
391
390
  });
392
- const ye = q(
393
- ({ value: s, className: e, "data-testid": o, children: l, onChange: a }, c) => {
394
- const n = (d, i) => {
395
- a && a(i, d);
396
- };
397
- return /* @__PURE__ */ T(S, { "data-testid": o, value: s, onChange: (d, i) => n(d, i), ref: c, children: /* @__PURE__ */ T(A, { className: B(Q.tabs, e), children: l }) });
398
- }
399
- );
391
+ const Ve = q(({ children: s, onChange: e, dataTestId: o }, n) => {
392
+ const [i, c] = B("1");
393
+ return /* @__PURE__ */ T(w, { "data-testid": o, value: i, onChange: (d, u) => {
394
+ c(u), e && e(u, d);
395
+ }, ref: n, children: /* @__PURE__ */ T(A, { className: Q.tabs, children: s }) });
396
+ });
400
397
  export {
401
- Ie as Tab,
402
- Fe as TabPanel,
403
- ye as Tabs
398
+ Le as Tab,
399
+ _e as TabPanel,
400
+ Ve as Tabs
404
401
  };
@@ -2,12 +2,8 @@ import { VariantType } from '../Typography/Typography.tsx';
2
2
  import { default as React } from 'react';
3
3
 
4
4
  type OptionsProps = {
5
- /** Text variant */
6
5
  variant?: VariantType;
7
- /** Text color */
8
6
  color?: string;
9
- /** Text weight */
10
- bold?: boolean;
11
7
  };
12
8
  export interface TextDisplayProps {
13
9
  /** TextDisplay label */
@@ -16,8 +12,8 @@ export interface TextDisplayProps {
16
12
  value: React.ReactNode;
17
13
  /** Renders skeleton when true */
18
14
  isLoading?: boolean;
19
- /** Sets the data-testid prefix for label, value and skeletons */
20
- 'data-testid'?: string;
15
+ /** Sets the testId prefix for label, value and skeletons */
16
+ testId?: string;
21
17
  /** Sets the label options */
22
18
  labelOptions?: OptionsProps;
23
19
  /** Sets the value options */
@@ -25,5 +21,5 @@ export interface TextDisplayProps {
25
21
  /** Sets the label and value onto the same line */
26
22
  inline?: boolean;
27
23
  }
28
- export declare const TextDisplay: ({ label, value, isLoading, "data-testid": dataTestId, labelOptions, valueOptions, inline, }: 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;
29
25
  export {};