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

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 (165) hide show
  1. package/dist/{Button-2b1peDFT.js → Button-BAljjMv3.js} +2 -2
  2. package/dist/{ClickAwayListener-BSW-Nd-y.js → ClickAwayListener-DbEYZpyh.js} +4 -3
  3. package/dist/Dialog.module-W7UCXlf3.js +29 -0
  4. package/dist/Group-DspH8hyO.js +30 -0
  5. package/dist/Popover.module-B4boCutS.js +10 -0
  6. package/dist/{Popup-B6ZSGIEI.js → Popup-Ck3XlWMq.js} +3 -3
  7. package/dist/{Portal-DIeBsWdL.js → Portal-oY3enyAm.js} +2 -2
  8. package/dist/SelectButton-B38avP9u.js +75 -0
  9. package/dist/{Tabs.module-jkH1Qjn7.js → Tabs.module-BGGTkDc5.js} +7 -7
  10. package/dist/Toggle-MfR7l8Wn.js +190 -0
  11. package/dist/assets/Adornment.css +1 -0
  12. package/dist/assets/Advice.css +1 -1
  13. package/dist/assets/Autocomplete.css +1 -0
  14. package/dist/assets/Avatar.css +1 -0
  15. package/dist/assets/Button.css +1 -1
  16. package/dist/assets/Checkbox.css +1 -1
  17. package/dist/assets/Description.css +1 -0
  18. package/dist/assets/Dialog.css +1 -1
  19. package/dist/assets/EllipsisTooltip.css +1 -1
  20. package/dist/assets/Group.css +1 -1
  21. package/dist/assets/IconButton.css +1 -1
  22. package/dist/assets/Input.css +1 -1
  23. package/dist/assets/PageHeader.css +1 -1
  24. package/dist/assets/Pagination.css +1 -1
  25. package/dist/assets/Popover.css +1 -0
  26. package/dist/assets/ResultWithChips.css +1 -0
  27. package/dist/assets/SelectButton.css +1 -1
  28. package/dist/assets/Skeleton.css +1 -1
  29. package/dist/assets/Snackbar.css +1 -1
  30. package/dist/assets/SortTooltip.css +1 -1
  31. package/dist/assets/Stepper.css +1 -1
  32. package/dist/assets/StepperNavigator.css +1 -0
  33. package/dist/assets/Table.css +1 -1
  34. package/dist/assets/Tabs.css +1 -1
  35. package/dist/assets/TextDisplay.css +1 -1
  36. package/dist/assets/Toggle.css +1 -1
  37. package/dist/assets/Toggle2.css +1 -1
  38. package/dist/assets/Typography.css +1 -1
  39. package/dist/{combineHooksSlotProps-DVjg9PRh.js → combineHooksSlotProps-C-zYvfnF.js} +1 -1
  40. package/dist/components/Adornment/Adornment.d.ts +20 -0
  41. package/dist/components/Adornment/Adornment.js +13 -0
  42. package/dist/components/Adornment/Adornment.stories.d.ts +14 -0
  43. package/dist/components/Adornment/adornment.test.d.ts +1 -0
  44. package/dist/components/Advice/Advice.d.ts +32 -17
  45. package/dist/components/Advice/Advice.js +39 -40
  46. package/dist/components/Advice/Advice.stories.d.ts +4 -3
  47. package/dist/components/Autocomplete/Autocomplete.d.ts +20 -0
  48. package/dist/components/Autocomplete/Autocomplete.js +679 -0
  49. package/dist/components/Autocomplete/Autocomplete.stories.d.ts +23 -0
  50. package/dist/components/Avatar/Avatar.d.ts +15 -0
  51. package/dist/components/Avatar/Avatar.js +51 -0
  52. package/dist/components/Avatar/Avatar.stories.d.ts +25 -0
  53. package/dist/components/Button/Button.d.ts +2 -0
  54. package/dist/components/Button/Button.js +51 -49
  55. package/dist/components/Checkbox/Checkbox.js +52 -52
  56. package/dist/components/Chip/Chip.d.ts +6 -12
  57. package/dist/components/Chip/Chip.js +12 -7
  58. package/dist/components/Chip/Chip.stories.d.ts +5 -14
  59. package/dist/components/ConfirmationDialog/ConfirmationDialog.d.ts +14 -0
  60. package/dist/components/ConfirmationDialog/ConfirmationDialog.js +37 -0
  61. package/dist/components/ConfirmationDialog/ConfirmationDialog.stories.d.ts +23 -0
  62. package/dist/components/ConfirmationDialog/ConfirmationModal.test.d.ts +1 -0
  63. package/dist/components/Description/Description.d.ts +15 -0
  64. package/dist/components/Description/Description.js +54 -0
  65. package/dist/components/Description/Description.stories.d.ts +18 -0
  66. package/dist/components/Description/Description.test.d.ts +1 -0
  67. package/dist/components/Dialog/Actions.js +1 -1
  68. package/dist/components/Dialog/Backdrop.d.ts +3 -3
  69. package/dist/components/Dialog/Backdrop.js +8 -7
  70. package/dist/components/Dialog/CloseIconButton.d.ts +1 -2
  71. package/dist/components/Dialog/CloseIconButton.js +15 -18
  72. package/dist/components/Dialog/Dialog.d.ts +16 -10
  73. package/dist/components/Dialog/Dialog.js +167 -166
  74. package/dist/components/Dialog/Dialog.stories.d.ts +115 -109
  75. package/dist/components/Dialog/DialogTitle.d.ts +5 -2
  76. package/dist/components/Dialog/DialogTitle.js +22 -16
  77. package/dist/components/EllipsisTooltip/EllipsisTooltip.js +30 -17
  78. package/dist/components/EllipsisTooltip/EllipsisTooltip.stories.d.ts +2 -1
  79. package/dist/components/Icon/Icon.js +315 -47
  80. package/dist/components/Icon/types.d.ts +1 -1
  81. package/dist/components/IconButton/IconButton.js +42 -42
  82. package/dist/components/Input/Input.d.ts +26 -5
  83. package/dist/components/Input/Input.js +319 -304
  84. package/dist/components/Input/Input.stories.d.ts +2 -21
  85. package/dist/components/InputSearch/InputSearch.d.ts +37 -7
  86. package/dist/components/InputSearch/InputSearch.js +27 -29
  87. package/dist/components/InputSearch/InputSearch.stories.d.ts +15 -3
  88. package/dist/components/PageHeader/PageHeader.d.ts +6 -2
  89. package/dist/components/PageHeader/PageHeader.js +72 -65
  90. package/dist/components/PageHeader/PageHeader.stories.d.ts +3 -1
  91. package/dist/components/PageHeader/PageHeader.test.d.ts +1 -0
  92. package/dist/components/Pagination/Pagination.d.ts +5 -1
  93. package/dist/components/Pagination/Pagination.js +90 -91
  94. package/dist/components/Pagination/Pagination.stories.d.ts +1 -1
  95. package/dist/components/Popover/Popover.d.ts +32 -0
  96. package/dist/components/Popover/Popover.js +24 -0
  97. package/dist/components/Popover/Popover.stories.d.ts +34 -0
  98. package/dist/components/Popover/PopoverBody.d.ts +6 -0
  99. package/dist/components/Popover/PopoverBody.js +6 -0
  100. package/dist/components/Popover/PopoverFooter.d.ts +6 -0
  101. package/dist/components/Popover/PopoverFooter.js +6 -0
  102. package/dist/components/Popover/PopoverHeader.d.ts +6 -0
  103. package/dist/components/Popover/PopoverHeader.js +6 -0
  104. package/dist/components/ResultWithChips/ResultWithChips.d.ts +12 -0
  105. package/dist/components/ResultWithChips/ResultWithChips.js +33 -0
  106. package/dist/components/RowItem/RowItem.d.ts +25 -0
  107. package/dist/components/RowItem/RowItem.js +23 -0
  108. package/dist/components/RowItem/RowItem.stories.d.ts +17 -0
  109. package/dist/components/RowItem/rowItem.test.d.ts +1 -0
  110. package/dist/components/Select/Select.d.ts +22 -0
  111. package/dist/components/Select/Select.js +476 -413
  112. package/dist/components/Select/SelectButton.d.ts +2 -0
  113. package/dist/components/Select/SelectButton.js +3 -2
  114. package/dist/components/Skeleton/Skeleton.d.ts +3 -1
  115. package/dist/components/Skeleton/Skeleton.js +20 -14
  116. package/dist/components/Skeleton/SkeletonTable.stories.d.ts +1 -1
  117. package/dist/components/Snackbar/Snackbar.js +94 -94
  118. package/dist/components/Snackbar/Snackbar.stories.d.ts +3 -3
  119. package/dist/components/SortTooltip/SortTooltip.js +46 -46
  120. package/dist/components/Stepper/Stepper.js +35 -35
  121. package/dist/components/StepperNavigator/StepperNavigator.d.ts +58 -0
  122. package/dist/components/StepperNavigator/StepperNavigator.js +115 -0
  123. package/dist/components/StepperNavigator/StepperNavigator.stories.d.ts +18 -0
  124. package/dist/components/StepperNavigator/StepperNavigator.test.d.ts +1 -0
  125. package/dist/components/Table/Table.d.ts +3 -1
  126. package/dist/components/Table/Table.js +87 -99
  127. package/dist/components/Table/Table.stories.d.ts +1 -1
  128. package/dist/components/Tabs/Tab.d.ts +5 -3
  129. package/dist/components/Tabs/Tab.js +38 -36
  130. package/dist/components/Tabs/TabPanel.d.ts +4 -2
  131. package/dist/components/Tabs/TabPanel.js +51 -40
  132. package/dist/components/Tabs/Tabs.d.ts +6 -4
  133. package/dist/components/Tabs/Tabs.js +131 -128
  134. package/dist/components/TextDisplay/TextDisplay.d.ts +9 -3
  135. package/dist/components/TextDisplay/TextDisplay.js +45 -31
  136. package/dist/components/TextDisplay/TextDisplay.stories.d.ts +2 -1
  137. package/dist/components/Toggle/Toggle.js +56 -56
  138. package/dist/components/ToggleGroup/Group.d.ts +2 -0
  139. package/dist/components/ToggleGroup/Group.js +4 -2
  140. package/dist/components/ToggleGroup/Toggle.d.ts +2 -0
  141. package/dist/components/ToggleGroup/Toggle.js +9 -5
  142. package/dist/components/ToggleGroup/ToggleGroup.js +2 -2
  143. package/dist/components/ToggleGroup/ToggleGroup.stories.d.ts +2 -0
  144. package/dist/components/Tooltip/Tooltip.d.ts +3 -1
  145. package/dist/components/Tooltip/Tooltip.js +4 -4
  146. package/dist/components/Tooltip/Tooltip.stories.d.ts +1 -0
  147. package/dist/components/Typography/Typography.js +47 -47
  148. package/dist/{index-CjW42-M-.js → index-bQFToy-I.js} +1 -1
  149. package/dist/main.d.ts +9 -0
  150. package/dist/main.js +91 -76
  151. package/dist/marola.css +1 -1
  152. package/dist/ownerDocument-YGhwAnr1.js +33 -0
  153. package/dist/{useButton-DNk3wrQp.js → useButton-DcihopJG.js} +1 -1
  154. package/dist/useCompoundItem-B7Eo_qZk.js +68 -0
  155. package/dist/useEventCallback-BAQJJ3ye.js +14 -0
  156. package/dist/useId-BW-oWmul.js +19 -0
  157. package/dist/{useList-B0hog_3-.js → useList-B9C55YB7.js} +2 -2
  158. package/dist/{index-CH45lKw7.js → useSlotProps-C_I1kEHr.js} +99 -99
  159. package/package.json +22 -13
  160. package/dist/Dialog.module-DFEmFdYT.js +0 -30
  161. package/dist/Group-B3p31ftp.js +0 -26
  162. package/dist/SelectButton-K3OIfR5m.js +0 -61
  163. package/dist/Toggle-BCgIItCc.js +0 -142
  164. package/dist/useCompoundItem-D1iRfg8D.js +0 -84
  165. package/dist/useEventCallback-xTG9piMa.js +0 -45
@@ -1,33 +1,33 @@
1
1
  import '../../assets/Pagination.css';
2
- import { jsxs as r, Fragment as p, jsx as a } from "react/jsx-runtime";
3
- import { c as o } from "../../clsx-DB4S2d7J.js";
4
- import { Select as m } from "../Select/Select.js";
5
- import I from "./usePagination.js";
6
- const C = "_pagination_19imj_43", n = {
7
- "u-typography-h1": "_u-typography-h1_19imj_1",
8
- "u-typography-h2": "_u-typography-h2_19imj_8",
9
- "u-typography-h3": "_u-typography-h3_19imj_15",
10
- "u-typography-h4": "_u-typography-h4_19imj_22",
11
- "u-typography-h5": "_u-typography-h5_19imj_29",
12
- "u-typography-h6": "_u-typography-h6_19imj_36",
13
- "u-typography-base": "_u-typography-base_19imj_43",
14
- pagination: C,
15
- "per-page-container": "_per-page-container_19imj_43",
16
- "u-typography-base--xxl": "_u-typography-base--xxl_19imj_48",
17
- "u-typography-base--xl": "_u-typography-base--xl_19imj_52",
18
- "u-typography-base--lg": "_u-typography-base--lg_19imj_56",
19
- "u-typography-base--sm": "_u-typography-base--sm_19imj_60",
20
- "u-typography-base--bold": "_u-typography-base--bold_19imj_64",
21
- "u-typography-base--strikethrough": "_u-typography-base--strikethrough_19imj_67",
22
- "u-typography-base--underlined": "_u-typography-base--underlined_19imj_70",
23
- "u-typography-base--strikethrough-underlined": "_u-typography-base--strikethrough-underlined_19imj_73",
24
- "per-page-container__select": "_per-page-container__select_19imj_90",
25
- "pages-navigator-container": "_pages-navigator-container_19imj_97",
26
- "page-item": "_page-item_19imj_114",
27
- "page-number__btn": "_page-number__btn_19imj_114",
28
- "pages-navigator-container__previous-next-btn": "_pages-navigator-container__previous-next-btn_19imj_133",
29
- "page-number__btn--selected": "_page-number__btn--selected_19imj_158"
30
- }, k = {
2
+ import { jsxs as s, Fragment as p, jsx as t } from "react/jsx-runtime";
3
+ import { c as _ } from "../../clsx-DB4S2d7J.js";
4
+ import { Select as d } from "../Select/Select.js";
5
+ import C from "./usePagination.js";
6
+ const w = "_pagination_2n0nk_43", a = {
7
+ "u-typography-h1": "_u-typography-h1_2n0nk_1",
8
+ "u-typography-h2": "_u-typography-h2_2n0nk_8",
9
+ "u-typography-h3": "_u-typography-h3_2n0nk_15",
10
+ "u-typography-h4": "_u-typography-h4_2n0nk_22",
11
+ "u-typography-h5": "_u-typography-h5_2n0nk_29",
12
+ "u-typography-h6": "_u-typography-h6_2n0nk_36",
13
+ "u-typography-base": "_u-typography-base_2n0nk_43",
14
+ pagination: w,
15
+ "per-page-container": "_per-page-container_2n0nk_43",
16
+ "u-typography-base--xxl": "_u-typography-base--xxl_2n0nk_49",
17
+ "u-typography-base--xl": "_u-typography-base--xl_2n0nk_53",
18
+ "u-typography-base--lg": "_u-typography-base--lg_2n0nk_57",
19
+ "u-typography-base--sm": "_u-typography-base--sm_2n0nk_61",
20
+ "u-typography-base--bold": "_u-typography-base--bold_2n0nk_65",
21
+ "u-typography-base--strikethrough": "_u-typography-base--strikethrough_2n0nk_68",
22
+ "u-typography-base--underlined": "_u-typography-base--underlined_2n0nk_71",
23
+ "u-typography-base--strikethrough-underlined": "_u-typography-base--strikethrough-underlined_2n0nk_74",
24
+ "per-page-container__select": "_per-page-container__select_2n0nk_91",
25
+ "pages-navigator-container": "_pages-navigator-container_2n0nk_98",
26
+ "page-item": "_page-item_2n0nk_115",
27
+ "page-number__btn": "_page-number__btn_2n0nk_115",
28
+ "pages-navigator-container__previous-next-btn": "_pages-navigator-container__previous-next-btn_2n0nk_134",
29
+ "page-number__btn--selected": "_page-number__btn--selected_2n0nk_159"
30
+ }, B = {
31
31
  pt: {
32
32
  showing: "Exibindo",
33
33
  of: "de",
@@ -44,107 +44,106 @@ const C = "_pagination_19imj_43", n = {
44
44
  next: "Next",
45
45
  perPage: "Items per page"
46
46
  }
47
- }, L = ({ perPageOptions: g = [5, 10, 25, 50, 100], language: d = "en", ...e }) => {
48
- const l = Math.ceil(e.totalItems / e.perPage), y = e.currentPage <= 1, b = e.currentPage >= l, v = { ...k[d], ...e.t || {} }, s = (t) => v[t], { items: j } = I({
47
+ }, $ = ({
48
+ perPageOptions: o = [5, 10, 25, 50, 100],
49
+ language: y = "en",
50
+ usePaginationProps: b = {},
51
+ ...e
52
+ }) => {
53
+ const l = Math.ceil(e.totalItems / e.perPage), m = e.currentPage <= 1, k = e.currentPage >= l, v = { ...B[y], ...e.t || {} }, i = (n) => v[n], { items: x } = C({
49
54
  count: l,
55
+ page: e.currentPage,
50
56
  hideNextButton: !0,
51
57
  hidePrevButton: !0,
52
- page: e.currentPage,
53
58
  siblingCount: 1,
54
- boundaryCount: 2
55
- }), c = e.perPage * (e.currentPage - 1) + 1, u = c + e.perPage - 1, x = u > e.totalItems ? u - e.totalItems : 0, P = u - x;
56
- return /* @__PURE__ */ r("div", { className: o(n.pagination, e.className), "data-testid": e["data-testid"], children: [
57
- /* @__PURE__ */ r(
59
+ boundaryCount: 2,
60
+ ...b
61
+ }), c = e.perPage * (e.currentPage - 1) + 1, u = c + e.perPage - 1, P = u > e.totalItems ? u - e.totalItems : 0, N = u - P;
62
+ return /* @__PURE__ */ s("div", { className: _(a.pagination, e.className), "data-testid": e["data-testid"], children: [
63
+ /* @__PURE__ */ s(
58
64
  "div",
59
65
  {
60
- className: o(n["per-page-container"], e.classNamePerPage),
66
+ className: _(a["per-page-container"], e.classNamePerPage),
61
67
  "data-testid": e["data-testid-per-page"],
62
68
  children: [
63
- g && /* @__PURE__ */ r(p, { children: [
64
- /* @__PURE__ */ a("span", { children: s`perPage` }),
65
- /* @__PURE__ */ a(
66
- m,
69
+ o && /* @__PURE__ */ s(p, { children: [
70
+ /* @__PURE__ */ t("span", { children: i`perPage` }),
71
+ /* @__PURE__ */ t(
72
+ d,
67
73
  {
68
- className: n["per-page-container__select"],
74
+ className: a["per-page-container__select"],
69
75
  value: String(e.perPage),
70
- onChange: (t) => e.onRowsPerPageChange(Number(t)),
71
- children: g == null ? void 0 : g.map((t) => {
72
- const i = typeof t == "number";
73
- return /* @__PURE__ */ a(
74
- m.Option,
76
+ onChange: (n) => e.onRowsPerPageChange(Number(n)),
77
+ children: o == null ? void 0 : o.map((n) => {
78
+ const r = typeof n == "number";
79
+ return /* @__PURE__ */ t(
80
+ d.Option,
75
81
  {
76
- value: String(i ? t : t.value),
77
- children: i ? t : t.label
82
+ value: String(r ? n : n.value),
83
+ children: r ? n : n.label
78
84
  },
79
- `per-page__${i ? t : t.value}`
85
+ `per-page__${r ? n : n.value}`
80
86
  );
81
87
  })
82
88
  }
83
89
  )
84
90
  ] }),
85
- /* @__PURE__ */ r(
86
- "div",
87
- {
88
- className: o(n["page-infos"], e.classNamePagesInfo),
89
- "data-testid": e["data-testid-pages-info"],
90
- children: [
91
- /* @__PURE__ */ r("span", { children: [
92
- c,
93
- " - ",
94
- P
95
- ] }),
96
- " ",
97
- /* @__PURE__ */ r("span", { children: [
98
- s`of`,
99
- " ",
100
- /* @__PURE__ */ a("strong", { children: e.totalItems }),
101
- " ",
102
- s`results`
103
- ] })
104
- ]
105
- }
106
- )
91
+ /* @__PURE__ */ s("div", { className: e.classNamePagesInfo, "data-testid": e["data-testid-pages-info"], children: [
92
+ /* @__PURE__ */ s("span", { children: [
93
+ c,
94
+ " - ",
95
+ N
96
+ ] }),
97
+ " ",
98
+ /* @__PURE__ */ s("span", { children: [
99
+ i`of`,
100
+ " ",
101
+ /* @__PURE__ */ t("strong", { children: e.totalItems }),
102
+ " ",
103
+ i`results`
104
+ ] })
105
+ ] })
107
106
  ]
108
107
  }
109
108
  ),
110
- /* @__PURE__ */ r(
109
+ /* @__PURE__ */ s(
111
110
  "div",
112
111
  {
113
- className: o(n["pages-navigator-container"], e.classNamePagesNav),
112
+ className: _(a["pages-navigator-container"], e.classNamePagesNav),
114
113
  "data-testid": e["data-testid-pages-nav"],
115
114
  children: [
116
- /* @__PURE__ */ a(
115
+ /* @__PURE__ */ t(
117
116
  "button",
118
117
  {
119
- className: n["pages-navigator-container__previous-next-btn"],
120
- disabled: y,
118
+ className: a["pages-navigator-container__previous-next-btn"],
119
+ disabled: m,
121
120
  onClick: () => e.onPageChange(e.currentPage - 1),
122
121
  type: "button",
123
- children: s`previous`
122
+ children: i`previous`
124
123
  },
125
124
  "page__previous"
126
125
  ),
127
- /* @__PURE__ */ a("ul", { children: j.map(({ page: t, type: i, selected: N, ...f }, h) => {
128
- let _ = /* @__PURE__ */ a(p, {});
129
- return i === "start-ellipsis" || i === "end-ellipsis" ? _ = /* @__PURE__ */ a("span", { className: n["page-item"], children: "..." }) : i === "page" ? _ = /* @__PURE__ */ a(
126
+ /* @__PURE__ */ t("ul", { children: x.map(({ page: n, type: r, selected: f, ...I }, h) => {
127
+ let g = /* @__PURE__ */ t(p, {});
128
+ return r === "start-ellipsis" || r === "end-ellipsis" ? g = /* @__PURE__ */ t("span", { className: a["page-item"], children: "..." }) : r === "page" ? g = /* @__PURE__ */ t(
130
129
  "button",
131
130
  {
132
- className: o(n["page-number__btn"], N && n["page-number__btn--selected"]),
133
- onClick: () => e.onPageChange(t || 0),
131
+ className: _(a["page-number__btn"], f && a["page-number__btn--selected"]),
132
+ onClick: () => e.onPageChange(n || 0),
134
133
  type: "button",
135
- children: t
134
+ children: n
136
135
  },
137
136
  `page__${h}`
138
- ) : _ = /* @__PURE__ */ a("button", { type: "button", ...f, children: i }), /* @__PURE__ */ a("li", { children: _ }, h);
137
+ ) : g = /* @__PURE__ */ t("button", { type: "button", ...I, children: r }), /* @__PURE__ */ t("li", { children: g }, h);
139
138
  }) }),
140
- /* @__PURE__ */ a(
139
+ /* @__PURE__ */ t(
141
140
  "button",
142
141
  {
143
- className: n["pages-navigator-container__previous-next-btn"],
144
- disabled: b,
142
+ className: a["pages-navigator-container__previous-next-btn"],
143
+ disabled: k,
145
144
  onClick: () => e.onPageChange(e.currentPage + 1),
146
145
  type: "button",
147
- children: s`next`
146
+ children: i`next`
148
147
  },
149
148
  "page__next"
150
149
  )
@@ -154,6 +153,6 @@ const C = "_pagination_19imj_43", n = {
154
153
  ] });
155
154
  };
156
155
  export {
157
- L as Pagination,
158
- k as paginationDefaultTranslations
156
+ $ as Pagination,
157
+ B as paginationDefaultTranslations
159
158
  };
@@ -3,7 +3,7 @@ import { StoryObj } from '@storybook/react';
3
3
 
4
4
  declare const meta: {
5
5
  title: string;
6
- component: ({ perPageOptions, language, ...props }: PaginationProps) => import("react/jsx-runtime").JSX.Element;
6
+ component: ({ perPageOptions, language, usePaginationProps, ...props }: PaginationProps) => import("react/jsx-runtime").JSX.Element;
7
7
  tags: string[];
8
8
  parameters: {
9
9
  layout: string;
@@ -0,0 +1,32 @@
1
+ import { PopupOffsetOptions, PopupPlacement } from '@mui/base/Unstable_Popup';
2
+
3
+ export type PopoverProps = {
4
+ /** An HTML element or a function that returns either. */
5
+ anchorRef?: Element;
6
+ /** Boolean to open. */
7
+ open?: boolean;
8
+ /** React Node. */
9
+ children: React.ReactNode;
10
+ /** Determines where to place the popup relative to the trigger element. */
11
+ placement?: PopupPlacement;
12
+ /** Distance between a popup and the trigger element */
13
+ offset?: PopupOffsetOptions;
14
+ /** Class name */
15
+ className?: string;
16
+ /** Id to be applied as `data-testid` on the root element */
17
+ 'data-testid'?: string;
18
+ /** Callback fired when a "click away" event is detected. */
19
+ onClickAway?: (event: MouseEvent | TouchEvent) => void;
20
+ };
21
+ export declare const Popover: {
22
+ ({ anchorRef, open, children, placement, className, offset, "data-testid": dataTestId, onClickAway, }: PopoverProps): import("react/jsx-runtime").JSX.Element;
23
+ Header: ({ children }: {
24
+ children: import('react').ReactNode;
25
+ }) => import("react/jsx-runtime").JSX.Element;
26
+ Footer: ({ children }: {
27
+ children: import('react').ReactNode;
28
+ }) => import("react/jsx-runtime").JSX.Element;
29
+ Body: ({ children }: {
30
+ children: import('react').ReactNode;
31
+ }) => import("react/jsx-runtime").JSX.Element;
32
+ };
@@ -0,0 +1,24 @@
1
+ import { jsx as o } from "react/jsx-runtime";
2
+ import { c as f } from "../../clsx-DB4S2d7J.js";
3
+ import { s as v } from "../../Popover.module-B4boCutS.js";
4
+ import { PopoverBody as l } from "./PopoverBody.js";
5
+ import { PopoverFooter as n } from "./PopoverFooter.js";
6
+ import { PopoverHeader as P } from "./PopoverHeader.js";
7
+ import { P as y } from "../../Popup-Ck3XlWMq.js";
8
+ import { C as h } from "../../ClickAwayListener-DbEYZpyh.js";
9
+ const r = ({
10
+ anchorRef: t,
11
+ open: m,
12
+ children: p,
13
+ placement: i,
14
+ className: s,
15
+ offset: a,
16
+ "data-testid": d,
17
+ onClickAway: e
18
+ }) => /* @__PURE__ */ o(h, { onClickAway: (c) => e ? e(c) : void 0, children: /* @__PURE__ */ o(y, { offset: a, placement: i, open: m, anchor: t, children: /* @__PURE__ */ o("div", { "data-testid": d, className: f(v.popover, s), children: p }) }) });
19
+ r.Header = P;
20
+ r.Footer = n;
21
+ r.Body = l;
22
+ export {
23
+ r as Popover
24
+ };
@@ -0,0 +1,34 @@
1
+ import { PopoverProps } from './Popover';
2
+ import { StoryObj } from '@storybook/react';
3
+
4
+ declare const meta: {
5
+ title: string;
6
+ component: {
7
+ ({ anchorRef, open, children, placement, className, offset, "data-testid": dataTestId, onClickAway, }: PopoverProps): import("react/jsx-runtime").JSX.Element;
8
+ Header: ({ children }: {
9
+ children: import('react').ReactNode;
10
+ }) => import("react/jsx-runtime").JSX.Element;
11
+ Footer: ({ children }: {
12
+ children: import('react').ReactNode;
13
+ }) => import("react/jsx-runtime").JSX.Element;
14
+ Body: ({ children }: {
15
+ children: import('react').ReactNode;
16
+ }) => import("react/jsx-runtime").JSX.Element;
17
+ };
18
+ parameters: {
19
+ docs: {
20
+ source: {
21
+ language: string;
22
+ format: boolean;
23
+ code: string;
24
+ };
25
+ };
26
+ };
27
+ tags: string[];
28
+ decorators: ((Story: import('@storybook/types').PartialStoryFn<import('@storybook/react').ReactRenderer, {
29
+ [x: string]: any;
30
+ }>) => import("react/jsx-runtime").JSX.Element)[];
31
+ };
32
+ export default meta;
33
+ type Story = StoryObj<typeof meta>;
34
+ export declare const Provider: Story;
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ type PopoverBodyProps = {
3
+ children: React.ReactNode;
4
+ };
5
+ export declare const PopoverBody: ({ children }: PopoverBodyProps) => import("react/jsx-runtime").JSX.Element;
6
+ export {};
@@ -0,0 +1,6 @@
1
+ import { jsx as r } from "react/jsx-runtime";
2
+ import { s } from "../../Popover.module-B4boCutS.js";
3
+ const t = ({ children: o }) => /* @__PURE__ */ r("div", { className: s["popover-body"], children: o });
4
+ export {
5
+ t as PopoverBody
6
+ };
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ type PopoverFooterProps = {
3
+ children: React.ReactNode;
4
+ };
5
+ export declare const PopoverFooter: ({ children }: PopoverFooterProps) => import("react/jsx-runtime").JSX.Element;
6
+ export {};
@@ -0,0 +1,6 @@
1
+ import { jsx as r } from "react/jsx-runtime";
2
+ import { s as e } from "../../Popover.module-B4boCutS.js";
3
+ const p = ({ children: o }) => /* @__PURE__ */ r("div", { className: e["popover-footer"], children: o });
4
+ export {
5
+ p as PopoverFooter
6
+ };
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ type PopoverHeaderProps = {
3
+ children: React.ReactNode;
4
+ };
5
+ export declare const PopoverHeader: ({ children }: PopoverHeaderProps) => import("react/jsx-runtime").JSX.Element;
6
+ export {};
@@ -0,0 +1,6 @@
1
+ import { jsx as e } from "react/jsx-runtime";
2
+ import { s as o } from "../../Popover.module-B4boCutS.js";
3
+ const t = ({ children: r }) => /* @__PURE__ */ e("div", { className: o["popover-header"], children: r });
4
+ export {
5
+ t as PopoverHeader
6
+ };
@@ -0,0 +1,12 @@
1
+ import { ChipProps } from '../Chip/Chip';
2
+
3
+ type ResultWithChipsProps = {
4
+ chips: Array<Partial<ChipProps> & {
5
+ joinLabel?: string | React.ReactNode;
6
+ key?: string;
7
+ }>;
8
+ title: string;
9
+ className?: string;
10
+ };
11
+ declare const ResultWithChips: ({ chips, title, className, ...rest }: ResultWithChipsProps) => import("react/jsx-runtime").JSX.Element;
12
+ export { ResultWithChips };
@@ -0,0 +1,33 @@
1
+ import '../../assets/ResultWithChips.css';
2
+ import { jsxs as i, jsx as e } from "react/jsx-runtime";
3
+ import { C as t } from "../../Toggle-MfR7l8Wn.js";
4
+ const r = "_container_hgp0p_1", o = "_label_hgp0p_17", a = {
5
+ container: r,
6
+ "chip-item-wrapper": "_chip-item-wrapper_hgp0p_8",
7
+ label: o,
8
+ "chips-container": "_chips-container_hgp0p_35",
9
+ "chip-content": "_chip-content_hgp0p_42",
10
+ "chip-label": "_chip-label_hgp0p_51"
11
+ }, b = ({ chips: c, title: p, className: s, ...h }) => /* @__PURE__ */ i("div", { ...h, className: [a.container, s || ""].join(" ").trim(), children: [
12
+ /* @__PURE__ */ e("span", { className: a.label, children: p }),
13
+ /* @__PURE__ */ e("div", { className: a["chips-container"], "data-testid": "chips-container", children: c.map((l, n) => /* @__PURE__ */ i("span", { className: a["chip-item-wrapper"], children: [
14
+ /* @__PURE__ */ e(
15
+ t,
16
+ {
17
+ ...l,
18
+ label: /* @__PURE__ */ e("span", { className: a["chip-content"], children: typeof l.label == "string" ? /* @__PURE__ */ e("strong", { className: a["chip-label"], children: l.label }) : l.label })
19
+ },
20
+ `chip-${n}`
21
+ ),
22
+ l.joinLabel && n < c.length - 1 && /* @__PURE__ */ e(
23
+ t,
24
+ {
25
+ label: /* @__PURE__ */ e("span", { className: a["chip-content"], children: /* @__PURE__ */ e("strong", { className: a["chip-label"], children: l.joinLabel }) })
26
+ },
27
+ `join-${n}`
28
+ )
29
+ ] }, `full-chip-${n}`)) })
30
+ ] });
31
+ export {
32
+ b as ResultWithChips
33
+ };
@@ -0,0 +1,25 @@
1
+ import { RequireAllOrNone } from '../../types/helpers';
2
+ import { AdornmentProps } from '../../main';
3
+ import { KeyboardEvent, MouseEvent, ReactNode } from 'react';
4
+
5
+ export type RowItemBaseProps = {
6
+ /** Items to display as main content of the row */
7
+ children: ReactNode;
8
+ /** Buttons to render */
9
+ buttons?: ReactNode;
10
+ /** Left adornment */
11
+ leftAdornment?: AdornmentProps;
12
+ /** Whether the row is disabled (not interactable */
13
+ disabled?: boolean;
14
+ /** Space seperated list of CSS classes to apply */
15
+ className?: string;
16
+ /** Callback for when the row is clicked, required when ariaLabel is provided */
17
+ onClick?: (event?: MouseEvent<HTMLDivElement> | KeyboardEvent<HTMLDivElement> | undefined) => void;
18
+ /** An accessible name for the row, required when onClick is provided */
19
+ ariaLabel?: string;
20
+ /** ID to use in tests*/
21
+ 'data-testid'?: string;
22
+ };
23
+ export type RowItemProps = RequireAllOrNone<RowItemBaseProps, 'onClick' | 'ariaLabel'>;
24
+ export declare const RowItem: import('react').ForwardRefExoticComponent<RowItemProps & import('react').RefAttributes<HTMLDivElement>>;
25
+ export default RowItem;
@@ -0,0 +1,23 @@
1
+ import "react/jsx-runtime";
2
+ import "react";
3
+ import "../../clsx-DB4S2d7J.js";
4
+ import "../Adornment/Adornment.js";
5
+ import "../Icon/Icon.js";
6
+ import "../Typography/Typography.js";
7
+ import "../Input/Input.js";
8
+ import "../Avatar/Avatar.js";
9
+ import "../Button/Button.js";
10
+ import { R as h, R as j } from "../../Toggle-MfR7l8Wn.js";
11
+ import "../Dialog/Dialog.js";
12
+ import "../IconButton/IconButton.js";
13
+ import "../InputSearch/InputSearch.js";
14
+ import "../Select/Select.js";
15
+ import "../Popover/Popover.js";
16
+ import "../Table/Table.js";
17
+ import "../Tabs/Tabs.js";
18
+ import "../../Group-DspH8hyO.js";
19
+ import "../../contexts/SnackbarProvider/SnackbarProvider.js";
20
+ export {
21
+ h as RowItem,
22
+ j as default
23
+ };
@@ -0,0 +1,17 @@
1
+ import { StoryObj } from '@storybook/react';
2
+
3
+ declare const meta: {
4
+ title: string;
5
+ component: import('react').ForwardRefExoticComponent<import('./RowItem').RowItemProps & import('react').RefAttributes<HTMLDivElement>>;
6
+ tags: string[];
7
+ parameters: {
8
+ layout: string;
9
+ };
10
+ };
11
+ export default meta;
12
+ type Story = StoryObj<typeof meta>;
13
+ export declare const Simple: Story;
14
+ export declare const Clickable: Story;
15
+ export declare const WithAdornement: Story;
16
+ export declare const WithButtons: Story;
17
+ export declare const WithButtonsAndAdornementDisabled: Story;
@@ -0,0 +1 @@
1
+ export {};
@@ -15,9 +15,31 @@ export type SelectProps = {
15
15
  placeholder?: string;
16
16
  prefix?: string;
17
17
  className?: string;
18
+ name?: string;
19
+ id?: string;
18
20
  value?: string;
21
+ label?: string;
22
+ classNameWrapper?: string;
23
+ classNameLabel?: string;
24
+ testIdLabel?: string;
25
+ testIdWrapper?: string;
19
26
  'data-testid'?: string;
20
27
  onChange?: (value: string | null, event?: React.SyntheticEvent<Element, Event> | null) => void;
28
+ fullWidth?: boolean;
29
+ /** Info message text */
30
+ infoMessage?: string;
31
+ /** Show the field layout as an error */
32
+ error?: boolean;
33
+ /** Error message text, if has "errorMessage", the "error" props will be "true" */
34
+ errorMessage?: string;
35
+ /** CSS classes to be applied on the info message element */
36
+ classNameInfoMessage?: string;
37
+ /** CSS classes to be applied on the error message element */
38
+ classNameErrorMessage?: string;
39
+ /** Id to be applied as `data-testid` on the info message element */
40
+ 'data-testid-infoMessage'?: string;
41
+ /** Id to be applied as `data-testid` on the error message element */
42
+ 'data-testid-errorMessage'?: string;
21
43
  };
22
44
  declare const Select: {
23
45
  (props: SelectProps): import("react/jsx-runtime").JSX.Element;