@pismo/marola 1.0.0-beta.18 → 1.0.0-beta.2

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 (118) hide show
  1. package/dist/{Button-DiLqcAJG.js → Button-2b1peDFT.js} +2 -2
  2. package/dist/{ClickAwayListener-BaJ-OV_7.js → ClickAwayListener-BSW-Nd-y.js} +3 -4
  3. package/dist/Dialog.module-DFEmFdYT.js +30 -0
  4. package/dist/{Popup-lLWZt2wk.js → Popup-B6ZSGIEI.js} +3 -3
  5. package/dist/{Portal-B_Es6eUL.js → Portal-DIeBsWdL.js} +2 -2
  6. package/dist/SelectButton-C8JQKaf4.js +61 -0
  7. package/dist/Toggle-BCgIItCc.js +142 -0
  8. package/dist/assets/Advice.css +1 -1
  9. package/dist/assets/Button.css +1 -1
  10. package/dist/assets/Checkbox.css +1 -1
  11. package/dist/assets/Dialog.css +1 -1
  12. package/dist/assets/IconButton.css +1 -1
  13. package/dist/assets/Input.css +1 -1
  14. package/dist/assets/PageHeader.css +1 -1
  15. package/dist/assets/Pagination.css +1 -1
  16. package/dist/assets/SelectButton.css +1 -1
  17. package/dist/assets/Snackbar.css +1 -1
  18. package/dist/assets/SortTooltip.css +1 -1
  19. package/dist/assets/Stepper.css +1 -1
  20. package/dist/assets/Table.css +1 -1
  21. package/dist/assets/TextDisplay.css +1 -1
  22. package/dist/assets/Toggle.css +1 -1
  23. package/dist/assets/Toggle2.css +1 -1
  24. package/dist/assets/Typography.css +1 -1
  25. package/dist/{combineHooksSlotProps-BtBYUV_B.js → combineHooksSlotProps-DVjg9PRh.js} +1 -1
  26. package/dist/components/Advice/Advice.d.ts +17 -32
  27. package/dist/components/Advice/Advice.js +40 -39
  28. package/dist/components/Advice/Advice.stories.d.ts +3 -4
  29. package/dist/components/Button/Button.d.ts +0 -2
  30. package/dist/components/Button/Button.js +49 -51
  31. package/dist/components/Checkbox/Checkbox.js +52 -52
  32. package/dist/components/Chip/Chip.d.ts +12 -6
  33. package/dist/components/Chip/Chip.js +5 -6
  34. package/dist/components/Chip/Chip.stories.d.ts +14 -5
  35. package/dist/components/Dialog/Actions.js +1 -1
  36. package/dist/components/Dialog/Backdrop.js +1 -1
  37. package/dist/components/Dialog/CloseIconButton.js +2 -2
  38. package/dist/components/Dialog/Dialog.d.ts +6 -9
  39. package/dist/components/Dialog/Dialog.js +162 -162
  40. package/dist/components/Dialog/Dialog.stories.d.ts +46 -50
  41. package/dist/components/Dialog/DialogTitle.js +1 -1
  42. package/dist/components/EllipsisTooltip/EllipsisTooltip.js +17 -30
  43. package/dist/components/EllipsisTooltip/EllipsisTooltip.stories.d.ts +1 -2
  44. package/dist/components/Icon/Icon.js +34 -52
  45. package/dist/components/Icon/types.d.ts +1 -1
  46. package/dist/components/IconButton/IconButton.js +42 -42
  47. package/dist/components/Input/Input.d.ts +2 -4
  48. package/dist/components/Input/Input.js +471 -74
  49. package/dist/components/Input/Input.stories.d.ts +1 -1
  50. package/dist/components/InputSearch/InputSearch.stories.d.ts +1 -1
  51. package/dist/components/PageHeader/PageHeader.js +57 -57
  52. package/dist/components/Pagination/Pagination.d.ts +1 -7
  53. package/dist/components/Pagination/Pagination.js +182 -104
  54. package/dist/components/Select/Select.js +8 -9
  55. package/dist/components/Select/SelectButton.js +1 -1
  56. package/dist/components/Skeleton/Skeleton.d.ts +1 -3
  57. package/dist/components/Skeleton/Skeleton.js +12 -18
  58. package/dist/components/Skeleton/SkeletonTable.stories.d.ts +1 -1
  59. package/dist/components/Snackbar/Snackbar.js +94 -94
  60. package/dist/components/Snackbar/Snackbar.stories.d.ts +3 -3
  61. package/dist/components/SortTooltip/SortTooltip.js +46 -46
  62. package/dist/components/Stepper/Stepper.js +35 -35
  63. package/dist/components/Table/Table.d.ts +1 -3
  64. package/dist/components/Table/Table.js +85 -88
  65. package/dist/components/Table/Table.stories.d.ts +1 -1
  66. package/dist/components/Tabs/Tab.js +17 -18
  67. package/dist/components/Tabs/TabPanel.js +26 -27
  68. package/dist/components/Tabs/Tabs.js +25 -25
  69. package/dist/components/TextDisplay/TextDisplay.d.ts +1 -3
  70. package/dist/components/TextDisplay/TextDisplay.js +28 -42
  71. package/dist/components/TextDisplay/TextDisplay.stories.d.ts +1 -2
  72. package/dist/components/Toggle/Toggle.js +56 -56
  73. package/dist/components/ToggleGroup/Toggle.js +3 -3
  74. package/dist/components/ToggleGroup/ToggleGroup.js +1 -1
  75. package/dist/components/Tooltip/Tooltip.d.ts +1 -3
  76. package/dist/components/Tooltip/Tooltip.js +4 -4
  77. package/dist/components/Tooltip/Tooltip.stories.d.ts +0 -1
  78. package/dist/components/Typography/Typography.js +47 -47
  79. package/dist/{useSlotProps-kRhf7Gil.js → index-CH45lKw7.js} +94 -93
  80. package/dist/{index-D3Wj0eid.js → index-CjW42-M-.js} +1 -1
  81. package/dist/main.d.ts +0 -5
  82. package/dist/main.js +76 -85
  83. package/dist/{useButton-Bn3MNH8I.js → useButton-DNk3wrQp.js} +1 -1
  84. package/dist/useCompoundItem-D1iRfg8D.js +84 -0
  85. package/dist/useEventCallback-xTG9piMa.js +45 -0
  86. package/dist/{useList-BpJT77u3.js → useList-B0hog_3-.js} +2 -2
  87. package/package.json +3 -8
  88. package/dist/Dialog.module-D9e4RsKo.js +0 -30
  89. package/dist/Input.module-ZTRZRcNt.js +0 -405
  90. package/dist/SelectButton-CoOT2txy.js +0 -61
  91. package/dist/Toggle-CRfZgFJp.js +0 -181
  92. package/dist/assets/Adornment.css +0 -1
  93. package/dist/assets/Autocomplete.css +0 -1
  94. package/dist/assets/ResultWithChips.css +0 -1
  95. package/dist/assets/StepperNavigator.css +0 -1
  96. package/dist/components/Adornment/Adornment.d.ts +0 -20
  97. package/dist/components/Adornment/Adornment.js +0 -13
  98. package/dist/components/Adornment/Adornment.stories.d.ts +0 -14
  99. package/dist/components/Adornment/adornment.test.d.ts +0 -1
  100. package/dist/components/Autocomplete/Autocomplete.d.ts +0 -52
  101. package/dist/components/Autocomplete/Autocomplete.js +0 -690
  102. package/dist/components/Autocomplete/Autocomplete.stories.d.ts +0 -46
  103. package/dist/components/Pagination/usePagination.d.ts +0 -90
  104. package/dist/components/Pagination/usePagination.js +0 -79
  105. package/dist/components/ResultWithChips/ResultWithChips.d.ts +0 -12
  106. package/dist/components/ResultWithChips/ResultWithChips.js +0 -33
  107. package/dist/components/RowItem/RowItem.d.ts +0 -25
  108. package/dist/components/RowItem/RowItem.js +0 -19
  109. package/dist/components/RowItem/RowItem.stories.d.ts +0 -17
  110. package/dist/components/RowItem/rowItem.test.d.ts +0 -1
  111. package/dist/components/StepperNavigator/StepperNavigator.d.ts +0 -43
  112. package/dist/components/StepperNavigator/StepperNavigator.js +0 -56
  113. package/dist/components/StepperNavigator/StepperNavigator.stories.d.ts +0 -16
  114. package/dist/components/StepperNavigator/StepperNavigator.test.d.ts +0 -1
  115. package/dist/ownerDocument-B61GUaFs.js +0 -33
  116. package/dist/useCompoundItem-B7Eo_qZk.js +0 -68
  117. package/dist/useEventCallback-BAQJJ3ye.js +0 -14
  118. package/dist/useId-BW-oWmul.js +0 -19
@@ -28,15 +28,13 @@ export type TableProps = ChildrenProps & {
28
28
  paginationProps?: PaginationProps;
29
29
  /** Set theme */
30
30
  theme?: TableTheme;
31
- /** Set css style `table-layout: fixed;` if was `true` */
32
- isFixed?: boolean;
33
31
  /** Set language */
34
32
  language?: string;
35
33
  /** Set translations to labels */
36
34
  translations?: TableTranslations;
37
35
  };
38
36
  declare const Table: {
39
- ({ children, theme, fullWidth, className, paginationProps, isFixed, language, translations, ...rest }: TableProps): import("react/jsx-runtime").JSX.Element;
37
+ ({ children, theme, fullWidth, className, paginationProps, language, translations, ...rest }: TableProps): import("react/jsx-runtime").JSX.Element;
40
38
  THead: import('react').FunctionComponent<ChildrenProps>;
41
39
  TBody: import('react').FunctionComponent<ChildrenProps>;
42
40
  Tr: import('react').FunctionComponent<TrProps>;
@@ -1,54 +1,53 @@
1
1
  import '../../assets/Table.css';
2
- import { jsxs as g, jsx as a } from "react/jsx-runtime";
3
- import * as p from "react";
2
+ import { jsxs as b, jsx as a } from "react/jsx-runtime";
3
+ import * as h from "react";
4
4
  import { useState as w } from "react";
5
- import { c as d } from "../../clsx-DB4S2d7J.js";
6
- import { paginationDefaultTranslations as u, Pagination as T } from "../Pagination/Pagination.js";
7
- import { sortTooltipDefaultTranslations as m, SortTooltip as f } from "../SortTooltip/SortTooltip.js";
8
- import { TableProvider as x, useTable as N } from "./TableContext.js";
9
- const C = (l) => /* @__PURE__ */ p.createElement("svg", { width: 7, height: 10, viewBox: "0 0 7 10", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...l }, /* @__PURE__ */ p.createElement("g", { clipPath: "url(#clip0_2291_2457)" }, /* @__PURE__ */ p.createElement("path", { d: "M6.41658 3.93794C6.26731 3.93794 6.11798 3.88301 6.00423 3.77314L3.49991 1.35923L0.995768 3.77271C0.767904 3.99243 0.398763 3.99243 0.170898 3.77271C-0.0569661 3.55298 -0.0569661 3.19702 0.170898 2.97729L3.08756 0.164795C3.31543 -0.0549316 3.68457 -0.0549316 3.91243 0.164795L6.8291 2.97729C7.05697 3.19702 7.05697 3.55298 6.8291 3.77271C6.71553 3.88345 6.56605 3.93794 6.41658 3.93794Z", fill: "#1897F3" }), /* @__PURE__ */ p.createElement("path", { opacity: 0.4, d: "M6.41663 5.38022C6.26737 5.38022 6.11804 5.43516 6.00429 5.54502L3.49997 7.95894L0.99528 5.5437C0.767415 5.32397 0.398275 5.32397 0.17041 5.5437C-0.0574544 5.76343 -0.0574544 6.11938 0.17041 6.33911L3.08708 9.15161C3.31494 9.37134 3.68408 9.37134 3.91195 9.15161L6.82861 6.33911C7.05648 6.11938 7.05648 5.76343 6.82861 5.5437C6.71559 5.43472 6.56611 5.38022 6.41663 5.38022Z", fill: "#1897F3" })), /* @__PURE__ */ p.createElement("defs", null, /* @__PURE__ */ p.createElement("clipPath", { id: "clip0_2291_2457" }, /* @__PURE__ */ p.createElement("rect", { width: 7, height: 10, fill: "white" })))), L = "_table_1ysnl_43", E = "_th__wrapper_1ysnl_118", k = "_tr_1ysnl_134", v = "_td_1ysnl_138", t = {
10
- "u-typography-h1": "_u-typography-h1_1ysnl_1",
11
- "u-typography-h2": "_u-typography-h2_1ysnl_8",
12
- "u-typography-h3": "_u-typography-h3_1ysnl_15",
13
- "u-typography-h4": "_u-typography-h4_1ysnl_22",
14
- "u-typography-h5": "_u-typography-h5_1ysnl_29",
15
- "u-typography-h6": "_u-typography-h6_1ysnl_36",
16
- "u-typography-base": "_u-typography-base_1ysnl_43",
5
+ import { c as g } from "../../clsx-DB4S2d7J.js";
6
+ import { paginationDefaultTranslations as y, Pagination as T } from "../Pagination/Pagination.js";
7
+ import { sortTooltipDefaultTranslations as u, SortTooltip as f } from "../SortTooltip/SortTooltip.js";
8
+ import { TableProvider as N, useTable as x } from "./TableContext.js";
9
+ const C = (p) => /* @__PURE__ */ h.createElement("svg", { width: 7, height: 10, viewBox: "0 0 7 10", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...p }, /* @__PURE__ */ h.createElement("g", { clipPath: "url(#clip0_2291_2457)" }, /* @__PURE__ */ h.createElement("path", { d: "M6.41658 3.93794C6.26731 3.93794 6.11798 3.88301 6.00423 3.77314L3.49991 1.35923L0.995768 3.77271C0.767904 3.99243 0.398763 3.99243 0.170898 3.77271C-0.0569661 3.55298 -0.0569661 3.19702 0.170898 2.97729L3.08756 0.164795C3.31543 -0.0549316 3.68457 -0.0549316 3.91243 0.164795L6.8291 2.97729C7.05697 3.19702 7.05697 3.55298 6.8291 3.77271C6.71553 3.88345 6.56605 3.93794 6.41658 3.93794Z", fill: "#1897F3" }), /* @__PURE__ */ h.createElement("path", { opacity: 0.4, d: "M6.41663 5.38022C6.26737 5.38022 6.11804 5.43516 6.00429 5.54502L3.49997 7.95894L0.99528 5.5437C0.767415 5.32397 0.398275 5.32397 0.17041 5.5437C-0.0574544 5.76343 -0.0574544 6.11938 0.17041 6.33911L3.08708 9.15161C3.31494 9.37134 3.68408 9.37134 3.91195 9.15161L6.82861 6.33911C7.05648 6.11938 7.05648 5.76343 6.82861 5.5437C6.71559 5.43472 6.56611 5.38022 6.41663 5.38022Z", fill: "#1897F3" })), /* @__PURE__ */ h.createElement("defs", null, /* @__PURE__ */ h.createElement("clipPath", { id: "clip0_2291_2457" }, /* @__PURE__ */ h.createElement("rect", { width: 7, height: 10, fill: "white" })))), L = "_table_1gspp_43", E = "_th__wrapper_1gspp_114", k = "_tr_1gspp_130", v = "_td_1gspp_134", t = {
10
+ "u-typography-h1": "_u-typography-h1_1gspp_1",
11
+ "u-typography-h2": "_u-typography-h2_1gspp_8",
12
+ "u-typography-h3": "_u-typography-h3_1gspp_15",
13
+ "u-typography-h4": "_u-typography-h4_1gspp_22",
14
+ "u-typography-h5": "_u-typography-h5_1gspp_29",
15
+ "u-typography-h6": "_u-typography-h6_1gspp_36",
16
+ "u-typography-base": "_u-typography-base_1gspp_43",
17
17
  table: L,
18
- "u-typography-base--xxl": "_u-typography-base--xxl_1ysnl_49",
19
- "u-typography-base--xl": "_u-typography-base--xl_1ysnl_53",
20
- "u-typography-base--lg": "_u-typography-base--lg_1ysnl_57",
21
- "u-typography-base--sm": "_u-typography-base--sm_1ysnl_61",
22
- "u-typography-base--bold": "_u-typography-base--bold_1ysnl_65",
23
- "u-typography-base--strikethrough": "_u-typography-base--strikethrough_1ysnl_68",
24
- "u-typography-base--underlined": "_u-typography-base--underlined_1ysnl_71",
25
- "u-typography-base--strikethrough-underlined": "_u-typography-base--strikethrough-underlined_1ysnl_74",
26
- "table--fixed": "_table--fixed_1ysnl_82",
27
- "table--full-width": "_table--full-width_1ysnl_85",
28
- "table--white-theme": "_table--white-theme_1ysnl_88",
29
- "table--transparent-theme": "_table--transparent-theme_1ysnl_91",
30
- "cell--left-alignment": "_cell--left-alignment_1ysnl_94",
31
- "cell--center-alignment": "_cell--center-alignment_1ysnl_98",
32
- "cell--right-alignment": "_cell--right-alignment_1ysnl_102",
18
+ "u-typography-base--xxl": "_u-typography-base--xxl_1gspp_48",
19
+ "u-typography-base--xl": "_u-typography-base--xl_1gspp_52",
20
+ "u-typography-base--lg": "_u-typography-base--lg_1gspp_56",
21
+ "u-typography-base--sm": "_u-typography-base--sm_1gspp_60",
22
+ "u-typography-base--bold": "_u-typography-base--bold_1gspp_64",
23
+ "u-typography-base--strikethrough": "_u-typography-base--strikethrough_1gspp_67",
24
+ "u-typography-base--underlined": "_u-typography-base--underlined_1gspp_70",
25
+ "u-typography-base--strikethrough-underlined": "_u-typography-base--strikethrough-underlined_1gspp_73",
26
+ "table--full-width": "_table--full-width_1gspp_81",
27
+ "table--white-theme": "_table--white-theme_1gspp_84",
28
+ "table--transparent-theme": "_table--transparent-theme_1gspp_87",
29
+ "cell--left-alignment": "_cell--left-alignment_1gspp_90",
30
+ "cell--center-alignment": "_cell--center-alignment_1gspp_94",
31
+ "cell--right-alignment": "_cell--right-alignment_1gspp_98",
33
32
  th__wrapper: E,
34
- "th__wrapper--pressed": "_th__wrapper--pressed_1ysnl_121",
35
- "th__wrapper--clickable": "_th__wrapper--clickable_1ysnl_125",
36
- "th__sort-icon-container": "_th__sort-icon-container_1ysnl_128",
37
- "tr__row-or-cell--disabled": "_tr__row-or-cell--disabled_1ysnl_134",
33
+ "th__wrapper--pressed": "_th__wrapper--pressed_1gspp_117",
34
+ "th__wrapper--clickable": "_th__wrapper--clickable_1gspp_121",
35
+ "th__sort-icon-container": "_th__sort-icon-container_1gspp_124",
36
+ "tr__row-or-cell--disabled": "_tr__row-or-cell--disabled_1gspp_130",
38
37
  tr: k,
39
38
  td: v,
40
- "tr__row-or-cell--clickable": "_tr__row-or-cell--clickable_1ysnl_143",
41
- "td__row-or-cell--clickable": "_td__row-or-cell--clickable_1ysnl_144",
42
- "td__row-or-cell--disabled": "_td__row-or-cell--disabled_1ysnl_148",
43
- "td-wrapper": "_td-wrapper_1ysnl_152"
39
+ "tr__row-or-cell--clickable": "_tr__row-or-cell--clickable_1gspp_139",
40
+ "td__row-or-cell--clickable": "_td__row-or-cell--clickable_1gspp_140",
41
+ "td__row-or-cell--disabled": "_td__row-or-cell--disabled_1gspp_144",
42
+ "td-wrapper": "_td-wrapper_1gspp_148"
44
43
  }, B = {
45
44
  pt: {
46
- ...u.pt,
47
- ...m.pt
45
+ ...y.pt,
46
+ ...u.pt
48
47
  },
49
48
  en: {
50
- ...u.en,
51
- ...m.en
49
+ ...y.en,
50
+ ...u.en
52
51
  },
53
52
  // example to add a new language translation
54
53
  es: {
@@ -60,80 +59,78 @@ const C = (l) => /* @__PURE__ */ p.createElement("svg", { width: 7, height: 10,
60
59
  of: "de",
61
60
  results: "resultados"
62
61
  }
63
- }, s = ({
64
- children: l,
62
+ }, l = ({
63
+ children: p,
65
64
  theme: e = "white",
66
65
  fullWidth: r = !0,
67
- className: n,
68
- paginationProps: _,
69
- isFixed: o,
70
- language: y,
71
- translations: b,
72
- ...h
66
+ className: o,
67
+ paginationProps: s,
68
+ language: _,
69
+ translations: n,
70
+ ...d
73
71
  }) => {
74
- const c = d(
72
+ const c = g(
75
73
  t.table,
76
- r && t["table--full-width"],
77
- o && t["table--fixed"],
74
+ r ? t["table--full-width"] : "",
78
75
  t[`table--${e}-theme`],
79
- n
80
- ), i = y && B[y] || b;
81
- return /* @__PURE__ */ g(x, { initialTranslations: i, children: [
82
- /* @__PURE__ */ a("table", { ...h, className: c, children: l }),
83
- _ && /* @__PURE__ */ a(T, { ..._, t: i })
76
+ o
77
+ ), i = _ && B[_] || n;
78
+ return /* @__PURE__ */ b(N, { initialTranslations: i, children: [
79
+ /* @__PURE__ */ a("table", { ...d, className: c, children: p }),
80
+ s && /* @__PURE__ */ a(T, { ...s, t: i })
84
81
  ] });
85
- }, H = ({ children: l, ...e }) => /* @__PURE__ */ a("thead", { ...e, children: l }), P = ({ children: l, ...e }) => /* @__PURE__ */ a("tbody", { ...e, children: l }), D = ({ children: l, onClick: e, disabled: r, className: n, ..._ }) => {
86
- const o = d(
82
+ }, H = ({ children: p, ...e }) => /* @__PURE__ */ a("thead", { ...e, children: p }), P = ({ children: p, ...e }) => /* @__PURE__ */ a("tbody", { ...e, children: p }), D = ({ children: p, onClick: e, disabled: r, className: o, ...s }) => {
83
+ const _ = g(
87
84
  t.tr,
88
85
  e && !r ? t["tr__row-or-cell--clickable"] : r ? t["tr__row-or-cell--disabled"] : "",
89
- n
86
+ o
90
87
  );
91
- return /* @__PURE__ */ a("tr", { ..._, className: o, onClick: () => !r && (e == null ? void 0 : e()), children: l });
92
- }, M = ({ children: l, onClick: e, disabled: r, className: n, align: _ = "left", ...o }) => {
93
- const y = d(
88
+ return /* @__PURE__ */ a("tr", { ...s, className: _, onClick: () => !r && (e == null ? void 0 : e()), children: p });
89
+ }, M = ({ children: p, onClick: e, disabled: r, className: o, align: s = "left", ..._ }) => {
90
+ const n = g(
94
91
  t.td,
95
92
  e && !r ? t["td__row-or-cell--clickable"] : r ? t["td__row-or-cell--disabled"] : "",
96
- t[`cell--${_}-alignment`],
97
- n
93
+ t[`cell--${s}-alignment`],
94
+ o
98
95
  );
99
- return /* @__PURE__ */ a("td", { ...o, className: y, onClick: () => !r && (e == null ? void 0 : e()), children: /* @__PURE__ */ a("span", { className: t["td-wrapper"], children: l }) });
100
- }, O = ({ children: l, onSort: e, sortType: r, className: n, classNameTooltip: _, align: o = "left", ...y }) => {
101
- const { translations: b } = N(), [h, c] = w(!1), i = d(
96
+ return /* @__PURE__ */ a("td", { ..._, className: n, onClick: () => !r && (e == null ? void 0 : e()), children: /* @__PURE__ */ a("span", { className: t["td-wrapper"], children: p }) });
97
+ }, O = ({ children: p, onSort: e, sortType: r, className: o, classNameTooltip: s, align: _ = "left", ...n }) => {
98
+ const { translations: d } = x(), [c, i] = w(!1), m = g(
102
99
  t.th__wrapper,
103
- h ? t["th__wrapper--pressed"] : "",
100
+ c ? t["th__wrapper--pressed"] : "",
104
101
  e ? t["th__wrapper--clickable"] : "",
105
- n
102
+ o
106
103
  );
107
- return /* @__PURE__ */ a("th", { ...y, className: t[`cell--${o}-alignment`], children: /* @__PURE__ */ a("span", { className: i, onClick: e && (() => c(!h)), children: e ? /* @__PURE__ */ g(
104
+ return /* @__PURE__ */ a("th", { ...n, className: t[`cell--${_}-alignment`], children: /* @__PURE__ */ a("span", { className: m, onClick: e && (() => i(!c)), children: e ? /* @__PURE__ */ b(
108
105
  f,
109
106
  {
110
- onClose: () => c(!1),
107
+ onClose: () => i(!1),
111
108
  onSort: e,
112
- show: h,
109
+ show: c,
113
110
  sortType: r,
114
- className: _,
115
- t: b,
111
+ className: s,
112
+ t: d,
116
113
  children: [
117
- /* @__PURE__ */ a("span", { children: l }),
114
+ /* @__PURE__ */ a("span", { children: p }),
118
115
  /* @__PURE__ */ a("span", { className: t["th__sort-icon-container"], children: /* @__PURE__ */ a(C, {}) })
119
116
  ]
120
117
  }
121
- ) : /* @__PURE__ */ a("span", { children: l }) }) });
118
+ ) : /* @__PURE__ */ a("span", { children: p }) }) });
122
119
  };
123
- s.THead = H;
124
- s.THead.displayName = "Table.THead";
125
- s.TBody = P;
126
- s.TBody.displayName = "Table.TBody";
127
- s.Tr = D;
128
- s.Tr.displayName = "Table.Tr";
129
- s.Td = M;
130
- s.Td.displayName = "Table.Td";
131
- s.Th = O;
132
- s.Th.displayName = "Table.Th";
120
+ l.THead = H;
121
+ l.THead.displayName = "Table.THead";
122
+ l.TBody = P;
123
+ l.TBody.displayName = "Table.TBody";
124
+ l.Tr = D;
125
+ l.Tr.displayName = "Table.Tr";
126
+ l.Td = M;
127
+ l.Td.displayName = "Table.Td";
128
+ l.Th = O;
129
+ l.Th.displayName = "Table.Th";
133
130
  export {
134
131
  P as TBody,
135
132
  H as THead,
136
- s as Table,
133
+ l as Table,
137
134
  M as Td,
138
135
  O as Th,
139
136
  D as Tr
@@ -3,7 +3,7 @@ import { StoryObj } from '@storybook/react';
3
3
  declare const meta: {
4
4
  title: string;
5
5
  component: {
6
- ({ children, theme, fullWidth, className, paginationProps, isFixed, language, translations, ...rest }: import('./Table').TableProps): import("react/jsx-runtime").JSX.Element;
6
+ ({ children, theme, fullWidth, className, paginationProps, language, translations, ...rest }: import('./Table').TableProps): import("react/jsx-runtime").JSX.Element;
7
7
  THead: import('react').FunctionComponent<import('./Table').ChildrenProps>;
8
8
  TBody: import('react').FunctionComponent<import('./Table').ChildrenProps>;
9
9
  Tr: import('react').FunctionComponent<import('./Table').TrProps>;
@@ -1,13 +1,12 @@
1
1
  import { jsx as N } from "react/jsx-runtime";
2
- import * as f from "react";
2
+ import * as b from "react";
3
3
  import { forwardRef as H, useContext as U, useMemo as j } from "react";
4
4
  import { c as k } from "../../clsx-DB4S2d7J.js";
5
5
  import { u as B, T as D, s as y } from "../../Tabs.module-jkH1Qjn7.js";
6
- import { g as L, a as W, u as O, f as $, b as d, _ as q, c as z, P as e, d as A, e as G } from "../../useSlotProps-kRhf7Gil.js";
7
- import { u as J, c as K } from "../../combineHooksSlotProps-BtBYUV_B.js";
8
- import { u as Q } from "../../useId-BW-oWmul.js";
9
- import { u as X } from "../../useButton-Bn3MNH8I.js";
10
- import { u as Y } from "../../useCompoundItem-B7Eo_qZk.js";
6
+ import { g as L, a as W, u as O, f as $, b as d, _ as q, c as z, P as e, d as A, e as G } from "../../index-CH45lKw7.js";
7
+ import { u as J, c as K } from "../../combineHooksSlotProps-DVjg9PRh.js";
8
+ import { u as Q, a as X } from "../../useCompoundItem-D1iRfg8D.js";
9
+ import { u as Y } from "../../useButton-DNk3wrQp.js";
11
10
  const E = "Tab";
12
11
  function Z(o) {
13
12
  return L(E, o);
@@ -22,11 +21,11 @@ function te(o) {
22
21
  rootRef: s,
23
22
  disabled: n = !1,
24
23
  id: c
25
- } = o, a = f.useRef(null), r = Q(c), {
26
- value: b,
24
+ } = o, a = b.useRef(null), r = Q(c), {
25
+ value: f,
27
26
  selectionFollowsFocus: p,
28
27
  getTabPanelId: m
29
- } = B(), P = f.useMemo(() => ({
28
+ } = B(), P = b.useMemo(() => ({
30
29
  disabled: n,
31
30
  ref: a,
32
31
  id: r
@@ -34,7 +33,7 @@ function te(o) {
34
33
  id: l,
35
34
  index: R,
36
35
  totalItemCount: g
37
- } = Y(t ?? ee, P), {
36
+ } = X(t ?? ee, P), {
38
37
  getRootProps: h,
39
38
  highlighted: T,
40
39
  selected: i
@@ -46,7 +45,7 @@ function te(o) {
46
45
  active: v,
47
46
  focusVisible: I,
48
47
  setFocusVisible: V
49
- } = X({
48
+ } = Y({
50
49
  disabled: n,
51
50
  focusableWhenDisabled: !p,
52
51
  type: "button"
@@ -69,7 +68,7 @@ function te(o) {
69
68
  rootRef: _,
70
69
  // the `selected` state isn't set on the server (it relies on effects to be calculated),
71
70
  // so we fall back to checking the `value` prop with the selectedValue from the TabsContext
72
- selected: i || l === b,
71
+ selected: i || l === f,
73
72
  setFocusVisible: V,
74
73
  totalTabsCount: g
75
74
  };
@@ -82,15 +81,15 @@ const oe = ["action", "children", "disabled", "onChange", "onClick", "onFocus",
82
81
  return A({
83
82
  root: ["root", t && "selected", s && "disabled"]
84
83
  }, G(Z));
85
- }, F = /* @__PURE__ */ f.forwardRef(function(t, s) {
84
+ }, F = /* @__PURE__ */ b.forwardRef(function(t, s) {
86
85
  var n;
87
86
  const {
88
87
  children: c,
89
88
  disabled: a = !1,
90
89
  slotProps: r = {},
91
- slots: b = {},
90
+ slots: f = {},
92
91
  value: p
93
- } = t, m = q(t, oe), P = f.useRef(), l = O(P, s), {
92
+ } = t, m = q(t, oe), P = b.useRef(), l = O(P, s), {
94
93
  active: R,
95
94
  highlighted: g,
96
95
  selected: h,
@@ -103,7 +102,7 @@ const oe = ["action", "children", "disabled", "onChange", "onClick", "onFocus",
103
102
  disabled: a,
104
103
  highlighted: g,
105
104
  selected: h
106
- }), C = se(i), u = (n = b.root) != null ? n : "button", v = z({
105
+ }), C = se(i), u = (n = f.root) != null ? n : "button", v = z({
107
106
  elementType: u,
108
107
  getSlotProps: T,
109
108
  externalSlotProps: r.root,
@@ -164,7 +163,7 @@ process.env.NODE_ENV !== "production" && (F.propTypes = {
164
163
  */
165
164
  value: e.oneOfType([e.number, e.string])
166
165
  });
167
- const pe = H(
166
+ const fe = H(
168
167
  ({ children: o, value: t, disabled: s, dataTestId: n }, c) => {
169
168
  const a = U(D), r = j(
170
169
  () => k(
@@ -178,5 +177,5 @@ const pe = H(
178
177
  }
179
178
  );
180
179
  export {
181
- pe as Tab
180
+ fe as Tab
182
181
  };
@@ -1,10 +1,9 @@
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
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 "../../useSlotProps-kRhf7Gil.js";
6
- import { u as S } from "../../useId-BW-oWmul.js";
7
- import { u as U } from "../../useCompoundItem-B7Eo_qZk.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";
8
7
  const h = "TabPanel";
9
8
  function j(t) {
10
9
  return C(h, t);
@@ -23,23 +22,23 @@ function V(t) {
23
22
  throw new Error("No TabContext provided");
24
23
  const {
25
24
  value: f,
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]), {
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]), {
31
30
  id: l
32
- } = U(e ?? M, c), d = l !== f, p = l !== void 0 ? m(l) : void 0;
31
+ } = U(e ?? M, u), d = l !== f, p = l !== void 0 ? P(l) : void 0;
33
32
  return {
34
33
  hidden: d,
35
34
  getRootProps: (g = {}) => b({
36
35
  "aria-labelledby": p ?? void 0,
37
36
  hidden: d,
38
- id: r ?? void 0
37
+ id: a ?? void 0
39
38
  }, g, {
40
- ref: u
39
+ ref: c
41
40
  }),
42
- rootRef: u
41
+ rootRef: c
43
42
  };
44
43
  }
45
44
  const F = ["children", "value", "slotProps", "slots"], $ = (t) => {
@@ -49,31 +48,31 @@ const F = ["children", "value", "slotProps", "slots"], $ = (t) => {
49
48
  return E({
50
49
  root: ["root", e && "hidden"]
51
50
  }, I(j));
52
- }, R = /* @__PURE__ */ P.forwardRef(function(e, s) {
51
+ }, R = /* @__PURE__ */ m.forwardRef(function(e, s) {
53
52
  var n;
54
53
  const {
55
54
  children: i,
56
55
  slotProps: f = {},
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({
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({
64
63
  elementType: d,
65
- getSlotProps: u,
64
+ getSlotProps: c,
66
65
  externalSlotProps: f.root,
67
- externalForwardedProps: r,
66
+ externalForwardedProps: a,
68
67
  additionalProps: {
69
68
  role: "tabpanel",
70
69
  ref: s
71
70
  },
72
- ownerState: c,
71
+ ownerState: u,
73
72
  className: l.root
74
73
  });
75
74
  return /* @__PURE__ */ T(d, b({}, p, {
76
- children: !a && i
75
+ children: !r && i
77
76
  }));
78
77
  });
79
78
  process.env.NODE_ENV !== "production" && (R.propTypes = {
@@ -111,9 +110,9 @@ process.env.NODE_ENV !== "production" && (R.propTypes = {
111
110
  */
112
111
  value: o.oneOfType([o.number, o.string])
113
112
  });
114
- const q = v(
113
+ const W = v(
115
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 })
116
115
  );
117
116
  export {
118
- q as TabPanel
117
+ W as TabPanel
119
118
  };
@@ -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 "../../useSlotProps-kRhf7Gil.js";
8
- import { a as O, C as S } from "../../useCompoundItem-B7Eo_qZk.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";
9
9
  import { u as X } from "../../useControlled-CCMYYdCM.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";
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";
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
- }), f = r.useCallback((x) => {
36
+ }), b = r.useCallback((x) => {
37
37
  var y;
38
38
  return (y = m.get(x)) == null ? void 0 : y.id;
39
- }, [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) => {
40
40
  p.current = x;
41
41
  }, []);
42
42
  return {
43
43
  contextValue: C({
44
44
  direction: c,
45
- getTabId: b,
46
- getTabPanelId: f,
45
+ getTabId: f,
46
+ getTabPanelId: b,
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: f
71
- } = e, b = r.useMemo(() => ({
70
+ getTabPanelId: b
71
+ } = e, f = 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: f,
78
+ getTabPanelId: b,
79
79
  onSelected: c,
80
80
  orientation: l,
81
81
  registerTabIdLookup: u,
82
82
  selectionFollowsFocus: a,
83
83
  value: g
84
- }), [n, p, f, c, l, u, a, g]);
84
+ }), [n, p, b, c, l, u, a, g]);
85
85
  return /* @__PURE__ */ T(S.Provider, {
86
- value: b,
86
+ value: f,
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), f = (n = u.root) != null ? n : "div", b = $({
114
- elementType: f,
113
+ } = ne(m), p = ae(m), b = (n = u.root) != null ? n : "div", f = $({
114
+ elementType: b,
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(f, C({}, b, {
123
+ return /* @__PURE__ */ T(b, C({}, f, {
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]), f = r.useCallback((h) => {
235
+ const p = r.useMemo(() => Array.from(a.keys()), [a]), b = 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]), b = n === "rtl";
238
+ }, [a]), f = n === "rtl";
239
239
  let P;
240
- c === "vertical" ? P = "vertical" : P = b ? "horizontal-rtl" : "horizontal-ltr";
240
+ c === "vertical" ? P = "vertical" : P = f ? "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: f,
264
+ getItemDomElement: b,
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: b,
291
+ isRtl: f,
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
- }), f = pe(p), b = (n = l.root) != null ? n : "div", P = $({
348
- elementType: b,
347
+ }), b = pe(p), f = (n = l.root) != null ? n : "div", P = $({
348
+ elementType: f,
349
349
  getSlotProps: m,
350
350
  externalSlotProps: c.root,
351
351
  externalForwardedProps: d,
352
352
  ownerState: p,
353
- className: f.root
353
+ className: b.root
354
354
  });
355
355
  return /* @__PURE__ */ T(de, {
356
356
  value: g,
357
- children: /* @__PURE__ */ T(b, C({}, P, {
357
+ children: /* @__PURE__ */ T(f, C({}, P, {
358
358
  children: i
359
359
  }))
360
360
  });
@@ -18,8 +18,6 @@ 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;
23
21
  }
24
- export declare const TextDisplay: ({ label, value, isLoading, testId, labelOptions, valueOptions, inline, }: TextDisplayProps) => import("react/jsx-runtime").JSX.Element;
22
+ export declare const TextDisplay: ({ label, value, isLoading, testId, labelOptions, valueOptions, }: TextDisplayProps) => import("react/jsx-runtime").JSX.Element;
25
23
  export {};