@pismo/marola 1.0.0-beta.8 → 1.0.0

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 (172) hide show
  1. package/dist/{Button-DiLqcAJG.js → Button-BAljjMv3.js} +2 -2
  2. package/dist/{ClickAwayListener-BaJ-OV_7.js → ClickAwayListener-DbEYZpyh.js} +3 -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-lLWZt2wk.js → Popup-Ck3XlWMq.js} +3 -3
  7. package/dist/{Portal-B_Es6eUL.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/Advice.css +1 -1
  12. package/dist/assets/Alert.css +1 -0
  13. package/dist/assets/Autocomplete.css +1 -1
  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/RadioButton.css +1 -0
  27. package/dist/assets/ResultWithChips.css +1 -0
  28. package/dist/assets/SelectButton.css +1 -1
  29. package/dist/assets/Skeleton.css +1 -1
  30. package/dist/assets/Snackbar.css +1 -1
  31. package/dist/assets/SortTooltip.css +1 -1
  32. package/dist/assets/Stepper.css +1 -1
  33. package/dist/assets/StepperNavigator.css +1 -0
  34. package/dist/assets/Table.css +1 -1
  35. package/dist/assets/Tabs.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-BtBYUV_B.js → combineHooksSlotProps-C-zYvfnF.js} +1 -1
  40. package/dist/components/Adornment/Adornment.d.ts +11 -2
  41. package/dist/components/Adornment/Adornment.js +6 -6
  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/Alert/Alert.d.ts +11 -0
  48. package/dist/components/Alert/Alert.js +46 -0
  49. package/dist/components/Alert/Alert.stories.d.ts +24 -0
  50. package/dist/components/Alert/Alert.test.d.ts +1 -0
  51. package/dist/components/Autocomplete/Autocomplete.d.ts +12 -42
  52. package/dist/components/Autocomplete/Autocomplete.js +425 -435
  53. package/dist/components/Autocomplete/Autocomplete.stories.d.ts +3 -25
  54. package/dist/components/Avatar/Avatar.d.ts +15 -0
  55. package/dist/components/Avatar/Avatar.js +51 -0
  56. package/dist/components/Avatar/Avatar.stories.d.ts +25 -0
  57. package/dist/components/Button/Button.d.ts +2 -0
  58. package/dist/components/Button/Button.js +51 -49
  59. package/dist/components/Checkbox/Checkbox.js +52 -52
  60. package/dist/components/Chip/Chip.d.ts +6 -4
  61. package/dist/components/Chip/Chip.js +10 -6
  62. package/dist/components/Chip/Chip.stories.d.ts +5 -14
  63. package/dist/components/ConfirmationDialog/ConfirmationDialog.d.ts +14 -0
  64. package/dist/components/ConfirmationDialog/ConfirmationDialog.js +37 -0
  65. package/dist/components/ConfirmationDialog/ConfirmationDialog.stories.d.ts +23 -0
  66. package/dist/components/ConfirmationDialog/ConfirmationModal.test.d.ts +1 -0
  67. package/dist/components/Description/Description.d.ts +21 -0
  68. package/dist/components/Description/Description.js +66 -0
  69. package/dist/components/Description/Description.stories.d.ts +22 -0
  70. package/dist/components/Description/Description.test.d.ts +1 -0
  71. package/dist/components/Dialog/Actions.js +1 -1
  72. package/dist/components/Dialog/Backdrop.d.ts +3 -3
  73. package/dist/components/Dialog/Backdrop.js +8 -7
  74. package/dist/components/Dialog/CloseIconButton.d.ts +1 -2
  75. package/dist/components/Dialog/CloseIconButton.js +15 -18
  76. package/dist/components/Dialog/Dialog.d.ts +16 -10
  77. package/dist/components/Dialog/Dialog.js +167 -167
  78. package/dist/components/Dialog/Dialog.stories.d.ts +74 -68
  79. package/dist/components/Dialog/DialogTitle.d.ts +5 -2
  80. package/dist/components/Dialog/DialogTitle.js +22 -16
  81. package/dist/components/EllipsisTooltip/EllipsisTooltip.js +30 -17
  82. package/dist/components/EllipsisTooltip/EllipsisTooltip.stories.d.ts +1 -0
  83. package/dist/components/Icon/Icon.js +331 -51
  84. package/dist/components/Icon/types.d.ts +1 -1
  85. package/dist/components/IconButton/IconButton.js +42 -42
  86. package/dist/components/Input/Input.d.ts +26 -5
  87. package/dist/components/Input/Input.js +514 -102
  88. package/dist/components/Input/Input.stories.d.ts +2 -21
  89. package/dist/components/InputSearch/InputSearch.d.ts +37 -7
  90. package/dist/components/InputSearch/InputSearch.js +27 -29
  91. package/dist/components/InputSearch/InputSearch.stories.d.ts +15 -3
  92. package/dist/components/PageHeader/PageHeader.d.ts +6 -2
  93. package/dist/components/PageHeader/PageHeader.js +78 -71
  94. package/dist/components/PageHeader/PageHeader.stories.d.ts +3 -1
  95. package/dist/components/PageHeader/PageHeader.test.d.ts +1 -0
  96. package/dist/components/Pagination/Pagination.d.ts +5 -1
  97. package/dist/components/Pagination/Pagination.js +90 -91
  98. package/dist/components/Pagination/Pagination.stories.d.ts +1 -1
  99. package/dist/components/Popover/Popover.d.ts +32 -0
  100. package/dist/components/Popover/Popover.js +24 -0
  101. package/dist/components/Popover/Popover.stories.d.ts +34 -0
  102. package/dist/components/Popover/PopoverBody.d.ts +6 -0
  103. package/dist/components/Popover/PopoverBody.js +6 -0
  104. package/dist/components/Popover/PopoverFooter.d.ts +6 -0
  105. package/dist/components/Popover/PopoverFooter.js +6 -0
  106. package/dist/components/Popover/PopoverHeader.d.ts +6 -0
  107. package/dist/components/Popover/PopoverHeader.js +6 -0
  108. package/dist/components/RadioButton/RadioButton.d.ts +19 -0
  109. package/dist/components/RadioButton/RadioButton.js +37 -0
  110. package/dist/components/RadioButton/RadioButton.stories.d.ts +24 -0
  111. package/dist/components/RadioButton/RadioButton.test.d.ts +1 -0
  112. package/dist/components/ResultWithChips/ResultWithChips.d.ts +12 -0
  113. package/dist/components/ResultWithChips/ResultWithChips.js +33 -0
  114. package/dist/components/RowItem/RowItem.d.ts +2 -2
  115. package/dist/components/RowItem/RowItem.js +9 -5
  116. package/dist/components/RowItem/RowItem.stories.d.ts +17 -0
  117. package/dist/components/RowItem/rowItem.test.d.ts +1 -0
  118. package/dist/components/Select/Select.d.ts +22 -0
  119. package/dist/components/Select/Select.js +476 -414
  120. package/dist/components/Select/SelectButton.d.ts +2 -0
  121. package/dist/components/Select/SelectButton.js +3 -2
  122. package/dist/components/Skeleton/Skeleton.d.ts +3 -1
  123. package/dist/components/Skeleton/Skeleton.js +20 -14
  124. package/dist/components/Skeleton/SkeletonTable.stories.d.ts +1 -1
  125. package/dist/components/Snackbar/Snackbar.js +123 -138
  126. package/dist/components/SortTooltip/SortTooltip.js +46 -46
  127. package/dist/components/Stepper/Stepper.js +35 -35
  128. package/dist/components/StepperNavigator/StepperNavigator.d.ts +58 -0
  129. package/dist/components/StepperNavigator/StepperNavigator.js +115 -0
  130. package/dist/components/StepperNavigator/StepperNavigator.stories.d.ts +18 -0
  131. package/dist/components/StepperNavigator/StepperNavigator.test.d.ts +1 -0
  132. package/dist/components/Table/Table.d.ts +3 -1
  133. package/dist/components/Table/Table.js +87 -99
  134. package/dist/components/Table/Table.stories.d.ts +1 -1
  135. package/dist/components/Tabs/Tab.d.ts +5 -3
  136. package/dist/components/Tabs/Tab.js +36 -35
  137. package/dist/components/Tabs/TabPanel.d.ts +4 -2
  138. package/dist/components/Tabs/TabPanel.js +48 -38
  139. package/dist/components/Tabs/Tabs.d.ts +6 -4
  140. package/dist/components/Tabs/Tabs.js +115 -112
  141. package/dist/components/TextDisplay/TextDisplay.d.ts +7 -3
  142. package/dist/components/TextDisplay/TextDisplay.js +44 -37
  143. package/dist/components/TextDisplay/TextDisplay.stories.d.ts +2 -1
  144. package/dist/components/Toggle/Toggle.js +55 -55
  145. package/dist/components/ToggleGroup/Group.d.ts +2 -0
  146. package/dist/components/ToggleGroup/Group.js +4 -2
  147. package/dist/components/ToggleGroup/Toggle.d.ts +2 -0
  148. package/dist/components/ToggleGroup/Toggle.js +8 -4
  149. package/dist/components/ToggleGroup/ToggleGroup.js +2 -2
  150. package/dist/components/ToggleGroup/ToggleGroup.stories.d.ts +2 -0
  151. package/dist/components/Tooltip/Tooltip.d.ts +3 -1
  152. package/dist/components/Tooltip/Tooltip.js +4 -4
  153. package/dist/components/Tooltip/Tooltip.stories.d.ts +1 -0
  154. package/dist/components/Typography/Typography.js +47 -47
  155. package/dist/contexts/SnackbarProvider/SnackbarProvider.d.ts +2 -2
  156. package/dist/contexts/SnackbarProvider/SnackbarProvider.js +35 -30
  157. package/dist/contexts/SnackbarProvider/SnackbarProvider.stories.d.ts +1 -1
  158. package/dist/{index-D3Wj0eid.js → index-bQFToy-I.js} +1 -1
  159. package/dist/main.d.ts +8 -0
  160. package/dist/main.js +95 -79
  161. package/dist/marola.css +1 -1
  162. package/dist/{ownerDocument-B61GUaFs.js → ownerDocument-YGhwAnr1.js} +1 -1
  163. package/dist/test-utils/assertStyles.d.ts +1 -1
  164. package/dist/{useButton-Bn3MNH8I.js → useButton-DcihopJG.js} +1 -1
  165. package/dist/{useList-BpJT77u3.js → useList-B9C55YB7.js} +2 -2
  166. package/dist/{useSlotProps-kRhf7Gil.js → useSlotProps-C_I1kEHr.js} +73 -72
  167. package/package.json +22 -13
  168. package/dist/Dialog.module-DFEmFdYT.js +0 -30
  169. package/dist/Group-B3p31ftp.js +0 -26
  170. package/dist/Input.module-iOYlI_1w.js +0 -405
  171. package/dist/SelectButton-K3OIfR5m.js +0 -61
  172. package/dist/Toggle-BSvvbKBp.js +0 -175
@@ -1,27 +1,27 @@
1
1
  import '../../assets/SortTooltip.css';
2
- import { jsx as e, jsxs as a } from "react/jsx-runtime";
2
+ import { jsx as h, jsxs as s } from "react/jsx-runtime";
3
3
  import { c as d } from "../../clsx-DB4S2d7J.js";
4
4
  import { Tooltip as b } from "../Tooltip/Tooltip.js";
5
5
  import * as t from "react";
6
- const m = (h) => /* @__PURE__ */ t.createElement("svg", { width: 16, height: 16, viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...h }, /* @__PURE__ */ t.createElement("path", { d: "M4.73768 14.6906C4.35893 15.105 3.64205 15.105 3.26299 14.6906L0.541112 11.6878C0.167987 11.28 0.195487 10.6469 0.602643 10.2731C1.00952 9.89969 1.64233 9.92812 2.01577 10.3348L3.00017 11.4406V2.00094C3.00017 1.44781 3.44799 1 4.00017 1C4.55236 1 5.00017 1.44781 5.00017 2.00094V11.4384L6.01267 10.3325C6.3708 9.94219 7.00236 9.88281 7.4258 10.2708C7.83299 10.6443 7.86018 11.2777 7.48733 11.6855L4.73768 14.6906Z", fill: "#1897F3" }), /* @__PURE__ */ t.createElement("path", { opacity: 0.4, d: "M14.0001 13H12.4141L14.7073 10.7069C14.9934 10.4208 15.0788 9.99098 14.9241 9.61691C14.7693 9.24285 14.4032 9.00004 13.972 9.00004H9.97196C9.44696 9.00004 9.00008 9.44691 9.00008 10C9.00008 10.5532 9.4479 11 10.0001 11H11.586L9.2929 13.2932C9.00677 13.5793 8.92133 14.0091 9.07608 14.3832C9.23083 14.7572 9.59696 15 9.97196 15H13.9438C14.5532 15 15.0001 14.5532 15.0001 14C15.0001 13.4469 14.5532 13 14.0001 13ZM15.3938 6.54066L12.8941 1.53754C12.5554 0.855977 11.4441 0.855977 11.1054 1.53754L8.60633 6.54066C8.35927 7.03785 8.55946 7.64191 9.05352 7.89035C9.54946 8.13791 10.1485 7.93651 10.3951 7.44035L10.6186 6.99066H13.3821L13.6056 7.44035C13.7986 7.82879 14.3547 8.18629 14.9472 7.89035C15.4407 7.64379 15.6407 7.03754 15.3938 6.54066ZM11.4938 5.23129L12.0001 4.20941L12.507 5.2291H11.4938V5.23129Z", fill: "#1897F3" })), L = (h) => /* @__PURE__ */ t.createElement("svg", { width: 16, height: 16, viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...h }, /* @__PURE__ */ t.createElement("path", { d: "M0.512792 11.6594C0.139667 11.2516 0.167167 10.6184 0.574323 10.2447C0.766229 10.0688 1.00839 9.98175 1.24964 9.98175C1.52063 9.98175 1.79026 10.0912 1.98745 10.3064L2.99998 11.4406V2.00094C2.99998 1.44781 3.44779 1 3.99998 1C4.55217 1 4.99998 1.44781 4.99998 2.00094V11.4384L6.01248 10.3325C6.38748 9.92812 7.01873 9.89687 7.42498 10.2719C7.83216 10.6453 7.85935 11.2787 7.48651 11.6866L4.76463 14.6894C4.38588 15.1037 3.66901 15.1037 3.28995 14.6894L0.512792 11.6594Z", fill: "#1897F3" }), /* @__PURE__ */ t.createElement("path", { opacity: 0.4, d: "M10.0002 3H11.5862L9.29303 5.29313C9.00691 5.57925 8.92147 6.00906 9.07622 6.38313C9.23097 6.75719 9.59591 7 9.99997 7H13.9718C14.5533 6.97188 15.0002 6.55313 15.0002 6C15.0002 5.44688 14.5524 5 14.0002 5H12.4143L14.7074 2.70688C14.9935 2.42075 15.079 1.99094 14.9242 1.61688C14.7695 1.24281 14.4033 1 13.9721 1H10.0002C9.44709 1 9.00022 1.44719 9.00022 2C9.00022 2.55281 9.44709 3 10.0002 3ZM15.394 13.5406L12.8943 8.5375C12.5555 7.85594 11.4443 7.85594 11.1055 8.5375L8.60584 13.5406C8.35878 14.0378 8.55897 14.6419 9.05303 14.8903C9.54897 15.1379 10.148 14.9365 10.3946 14.4403L10.6182 13.9906H13.3816L13.6052 14.4403C13.7981 14.8288 14.3542 15.1863 14.9467 14.8903C15.4408 14.6438 15.6408 14.0375 15.394 13.5406ZM11.494 12.2313L12.0002 11.2094L12.5071 12.2291H11.494V12.2313Z", fill: "#1897F3" })), p = {
7
- "u-typography-h1": "_u-typography-h1_1hhgh_1",
8
- "u-typography-h2": "_u-typography-h2_1hhgh_8",
9
- "u-typography-h3": "_u-typography-h3_1hhgh_15",
10
- "u-typography-h4": "_u-typography-h4_1hhgh_22",
11
- "u-typography-h5": "_u-typography-h5_1hhgh_29",
12
- "u-typography-h6": "_u-typography-h6_1hhgh_36",
13
- "u-typography-base": "_u-typography-base_1hhgh_43",
14
- "sort-tooltip": "_sort-tooltip_1hhgh_43",
15
- "u-typography-base--xxl": "_u-typography-base--xxl_1hhgh_48",
16
- "u-typography-base--xl": "_u-typography-base--xl_1hhgh_52",
17
- "u-typography-base--lg": "_u-typography-base--lg_1hhgh_56",
18
- "u-typography-base--sm": "_u-typography-base--sm_1hhgh_60",
19
- "u-typography-base--bold": "_u-typography-base--bold_1hhgh_64",
20
- "u-typography-base--strikethrough": "_u-typography-base--strikethrough_1hhgh_67",
21
- "u-typography-base--underlined": "_u-typography-base--underlined_1hhgh_70",
22
- "u-typography-base--strikethrough-underlined": "_u-typography-base--strikethrough-underlined_1hhgh_73",
23
- "button--selected": "_button--selected_1hhgh_94"
24
- }, w = {
6
+ const f = (e) => /* @__PURE__ */ t.createElement("svg", { width: 16, height: 16, viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ t.createElement("path", { d: "M4.73768 14.6906C4.35893 15.105 3.64205 15.105 3.26299 14.6906L0.541112 11.6878C0.167987 11.28 0.195487 10.6469 0.602643 10.2731C1.00952 9.89969 1.64233 9.92812 2.01577 10.3348L3.00017 11.4406V2.00094C3.00017 1.44781 3.44799 1 4.00017 1C4.55236 1 5.00017 1.44781 5.00017 2.00094V11.4384L6.01267 10.3325C6.3708 9.94219 7.00236 9.88281 7.4258 10.2708C7.83299 10.6443 7.86018 11.2777 7.48733 11.6855L4.73768 14.6906Z", fill: "#1897F3" }), /* @__PURE__ */ t.createElement("path", { opacity: 0.4, d: "M14.0001 13H12.4141L14.7073 10.7069C14.9934 10.4208 15.0788 9.99098 14.9241 9.61691C14.7693 9.24285 14.4032 9.00004 13.972 9.00004H9.97196C9.44696 9.00004 9.00008 9.44691 9.00008 10C9.00008 10.5532 9.4479 11 10.0001 11H11.586L9.2929 13.2932C9.00677 13.5793 8.92133 14.0091 9.07608 14.3832C9.23083 14.7572 9.59696 15 9.97196 15H13.9438C14.5532 15 15.0001 14.5532 15.0001 14C15.0001 13.4469 14.5532 13 14.0001 13ZM15.3938 6.54066L12.8941 1.53754C12.5554 0.855977 11.4441 0.855977 11.1054 1.53754L8.60633 6.54066C8.35927 7.03785 8.55946 7.64191 9.05352 7.89035C9.54946 8.13791 10.1485 7.93651 10.3951 7.44035L10.6186 6.99066H13.3821L13.6056 7.44035C13.7986 7.82879 14.3547 8.18629 14.9472 7.89035C15.4407 7.64379 15.6407 7.03754 15.3938 6.54066ZM11.4938 5.23129L12.0001 4.20941L12.507 5.2291H11.4938V5.23129Z", fill: "#1897F3" })), m = (e) => /* @__PURE__ */ t.createElement("svg", { width: 16, height: 16, viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ t.createElement("path", { d: "M0.512792 11.6594C0.139667 11.2516 0.167167 10.6184 0.574323 10.2447C0.766229 10.0688 1.00839 9.98175 1.24964 9.98175C1.52063 9.98175 1.79026 10.0912 1.98745 10.3064L2.99998 11.4406V2.00094C2.99998 1.44781 3.44779 1 3.99998 1C4.55217 1 4.99998 1.44781 4.99998 2.00094V11.4384L6.01248 10.3325C6.38748 9.92812 7.01873 9.89687 7.42498 10.2719C7.83216 10.6453 7.85935 11.2787 7.48651 11.6866L4.76463 14.6894C4.38588 15.1037 3.66901 15.1037 3.28995 14.6894L0.512792 11.6594Z", fill: "#1897F3" }), /* @__PURE__ */ t.createElement("path", { opacity: 0.4, d: "M10.0002 3H11.5862L9.29303 5.29313C9.00691 5.57925 8.92147 6.00906 9.07622 6.38313C9.23097 6.75719 9.59591 7 9.99997 7H13.9718C14.5533 6.97188 15.0002 6.55313 15.0002 6C15.0002 5.44688 14.5524 5 14.0002 5H12.4143L14.7074 2.70688C14.9935 2.42075 15.079 1.99094 14.9242 1.61688C14.7695 1.24281 14.4033 1 13.9721 1H10.0002C9.44709 1 9.00022 1.44719 9.00022 2C9.00022 2.55281 9.44709 3 10.0002 3ZM15.394 13.5406L12.8943 8.5375C12.5555 7.85594 11.4443 7.85594 11.1055 8.5375L8.60584 13.5406C8.35878 14.0378 8.55897 14.6419 9.05303 14.8903C9.54897 15.1379 10.148 14.9365 10.3946 14.4403L10.6182 13.9906H13.3816L13.6052 14.4403C13.7981 14.8288 14.3542 15.1863 14.9467 14.8903C15.4408 14.6438 15.6408 14.0375 15.394 13.5406ZM11.494 12.2313L12.0002 11.2094L12.5071 12.2291H11.494V12.2313Z", fill: "#1897F3" })), a = {
7
+ "u-typography-h1": "_u-typography-h1_3hhsf_1",
8
+ "u-typography-h2": "_u-typography-h2_3hhsf_8",
9
+ "u-typography-h3": "_u-typography-h3_3hhsf_15",
10
+ "u-typography-h4": "_u-typography-h4_3hhsf_22",
11
+ "u-typography-h5": "_u-typography-h5_3hhsf_29",
12
+ "u-typography-h6": "_u-typography-h6_3hhsf_36",
13
+ "u-typography-base": "_u-typography-base_3hhsf_43",
14
+ "sort-tooltip": "_sort-tooltip_3hhsf_43",
15
+ "u-typography-base--xxl": "_u-typography-base--xxl_3hhsf_49",
16
+ "u-typography-base--xl": "_u-typography-base--xl_3hhsf_53",
17
+ "u-typography-base--lg": "_u-typography-base--lg_3hhsf_57",
18
+ "u-typography-base--sm": "_u-typography-base--sm_3hhsf_61",
19
+ "u-typography-base--bold": "_u-typography-base--bold_3hhsf_65",
20
+ "u-typography-base--strikethrough": "_u-typography-base--strikethrough_3hhsf_68",
21
+ "u-typography-base--underlined": "_u-typography-base--underlined_3hhsf_71",
22
+ "u-typography-base--strikethrough-underlined": "_u-typography-base--strikethrough-underlined_3hhsf_74",
23
+ "button--selected": "_button--selected_3hhsf_95"
24
+ }, L = {
25
25
  pt: {
26
26
  asc: "Ascendente",
27
27
  desc: "Descendente"
@@ -31,63 +31,63 @@ const m = (h) => /* @__PURE__ */ t.createElement("svg", { width: 16, height: 16,
31
31
  desc: "Sort descending"
32
32
  }
33
33
  }, Z = ({
34
- children: h,
35
- className: y,
36
- language: l,
34
+ children: e,
35
+ className: l,
36
+ language: n,
37
37
  onClose: o,
38
- onSort: r,
39
- show: n,
40
- sortType: s,
41
- t: i,
42
- ..._
38
+ onSort: p,
39
+ show: i,
40
+ sortType: r,
41
+ t: _,
42
+ ...u
43
43
  }) => {
44
- const u = d(p["sort-tooltip"], y), C = i || w[l || "en"], g = (c) => C[c];
45
- return /* @__PURE__ */ e(
44
+ const g = d(a["sort-tooltip"], l), C = _ || L[n || "en"], y = (c) => C[c];
45
+ return /* @__PURE__ */ h(
46
46
  b,
47
47
  {
48
- className: u,
48
+ className: g,
49
49
  onClose: o,
50
- open: n,
50
+ open: i,
51
51
  theme: "white",
52
52
  padding: "normal",
53
53
  position: "bottom-start",
54
54
  disableHoverListener: !0,
55
- title: /* @__PURE__ */ a("ul", { children: [
56
- /* @__PURE__ */ e("li", { children: /* @__PURE__ */ a(
55
+ title: /* @__PURE__ */ s("ul", { children: [
56
+ /* @__PURE__ */ h("li", { children: /* @__PURE__ */ s(
57
57
  "button",
58
58
  {
59
59
  type: "button",
60
60
  onClick: () => {
61
- o(), r("ASC");
61
+ o(), p("ASC");
62
62
  },
63
- className: s === "ASC" ? p["button--selected"] : "",
63
+ className: r === "ASC" ? a["button--selected"] : "",
64
64
  children: [
65
- /* @__PURE__ */ e(m, {}),
66
- g`asc`
65
+ /* @__PURE__ */ h(f, {}),
66
+ y`asc`
67
67
  ]
68
68
  }
69
69
  ) }),
70
- /* @__PURE__ */ e("li", { children: /* @__PURE__ */ a(
70
+ /* @__PURE__ */ h("li", { children: /* @__PURE__ */ s(
71
71
  "button",
72
72
  {
73
73
  type: "button",
74
74
  onClick: () => {
75
- o(), r("DESC");
75
+ o(), p("DESC");
76
76
  },
77
- className: s === "DESC" ? p["button--selected"] : "",
77
+ className: r === "DESC" ? a["button--selected"] : "",
78
78
  children: [
79
- /* @__PURE__ */ e(L, {}),
80
- g`desc`
79
+ /* @__PURE__ */ h(m, {}),
80
+ y`desc`
81
81
  ]
82
82
  }
83
83
  ) })
84
84
  ] }),
85
- ..._,
86
- children: h
85
+ ...u,
86
+ children: e
87
87
  }
88
88
  );
89
89
  };
90
90
  export {
91
91
  Z as SortTooltip,
92
- w as sortTooltipDefaultTranslations
92
+ L as sortTooltipDefaultTranslations
93
93
  };
@@ -1,46 +1,46 @@
1
1
  import '../../assets/Stepper.css';
2
- import { jsx as _, jsxs as d } from "react/jsx-runtime";
3
- import { c as p } from "../../clsx-DB4S2d7J.js";
4
- const m = "_stepper_a47qe_60", c = "_item_a47qe_60", n = "_name_a47qe_60", l = "_counter_a47qe_64", e = {
5
- "u-typography-h1": "_u-typography-h1_a47qe_1",
6
- "u-typography-h2": "_u-typography-h2_a47qe_8",
7
- "u-typography-h3": "_u-typography-h3_a47qe_15",
8
- "u-typography-h4": "_u-typography-h4_a47qe_22",
9
- "u-typography-h5": "_u-typography-h5_a47qe_29",
10
- "u-typography-h6": "_u-typography-h6_a47qe_36",
11
- "u-typography-base": "_u-typography-base_a47qe_43",
12
- "u-typography-base--xxl": "_u-typography-base--xxl_a47qe_48",
13
- "u-typography-base--xl": "_u-typography-base--xl_a47qe_52",
14
- "u-typography-base--lg": "_u-typography-base--lg_a47qe_56",
15
- "u-typography-base--sm": "_u-typography-base--sm_a47qe_60",
16
- stepper: m,
17
- item: c,
18
- name: n,
19
- "u-typography-base--bold": "_u-typography-base--bold_a47qe_64",
20
- "item--active": "_item--active_a47qe_64",
21
- "item--completed": "_item--completed_a47qe_64",
2
+ import { jsx as s, jsxs as g } from "react/jsx-runtime";
3
+ import { c as r } from "../../clsx-DB4S2d7J.js";
4
+ const d = "_stepper_7fsnr_61", m = "_item_7fsnr_61", c = "_name_7fsnr_61", l = "_counter_7fsnr_65", t = {
5
+ "u-typography-h1": "_u-typography-h1_7fsnr_1",
6
+ "u-typography-h2": "_u-typography-h2_7fsnr_8",
7
+ "u-typography-h3": "_u-typography-h3_7fsnr_15",
8
+ "u-typography-h4": "_u-typography-h4_7fsnr_22",
9
+ "u-typography-h5": "_u-typography-h5_7fsnr_29",
10
+ "u-typography-h6": "_u-typography-h6_7fsnr_36",
11
+ "u-typography-base": "_u-typography-base_7fsnr_43",
12
+ "u-typography-base--xxl": "_u-typography-base--xxl_7fsnr_49",
13
+ "u-typography-base--xl": "_u-typography-base--xl_7fsnr_53",
14
+ "u-typography-base--lg": "_u-typography-base--lg_7fsnr_57",
15
+ "u-typography-base--sm": "_u-typography-base--sm_7fsnr_61",
16
+ stepper: d,
17
+ item: m,
18
+ name: c,
19
+ "u-typography-base--bold": "_u-typography-base--bold_7fsnr_65",
20
+ "item--active": "_item--active_7fsnr_65",
21
+ "item--completed": "_item--completed_7fsnr_65",
22
22
  counter: l,
23
- "u-typography-base--strikethrough": "_u-typography-base--strikethrough_a47qe_67",
24
- "u-typography-base--underlined": "_u-typography-base--underlined_a47qe_70",
25
- "u-typography-base--strikethrough-underlined": "_u-typography-base--strikethrough-underlined_a47qe_73"
26
- }, v = ({ currentStep: y = 0, steps: r, classNameItem: s, classNameCounter: o, classNameName: h, ...a }) => /* @__PURE__ */ _("div", { className: p(e.stepper, a.className), "data-testid": a["data-testid"], children: r.map((u, t) => {
27
- const i = t < y, g = t === y;
28
- return /* @__PURE__ */ d(
23
+ "u-typography-base--strikethrough": "_u-typography-base--strikethrough_7fsnr_68",
24
+ "u-typography-base--underlined": "_u-typography-base--underlined_7fsnr_71",
25
+ "u-typography-base--strikethrough-underlined": "_u-typography-base--strikethrough-underlined_7fsnr_74"
26
+ }, v = ({ currentStep: p = 0, steps: _, classNameItem: y, classNameCounter: o, classNameName: h, ...e }) => /* @__PURE__ */ s("div", { className: r(t.stepper, e.className), "data-testid": e["data-testid"], children: _.map((n, a) => {
27
+ const u = a < p, i = a === p;
28
+ return /* @__PURE__ */ g(
29
29
  "div",
30
30
  {
31
- className: p(
32
- e.item,
33
- i && e["item--completed"],
34
- g && e["item--active"],
35
- s
31
+ className: r(
32
+ t.item,
33
+ u && t["item--completed"],
34
+ i && t["item--active"],
35
+ y
36
36
  ),
37
- "data-testid": a["data-testid-item"],
37
+ "data-testid": e["data-testid-item"],
38
38
  children: [
39
- /* @__PURE__ */ _("div", { className: p(e.counter, o), "data-testid": a["data-testid-counter"], children: t + 1 }),
40
- /* @__PURE__ */ _("div", { className: p(e.name, h), "data-testid": a["data-testid-name"], children: u })
39
+ /* @__PURE__ */ s("div", { className: r(t.counter, o), "data-testid": e["data-testid-counter"], children: a + 1 }),
40
+ /* @__PURE__ */ s("div", { className: r(t.name, h), "data-testid": e["data-testid-name"], children: n })
41
41
  ]
42
42
  },
43
- t
43
+ a
44
44
  );
45
45
  }) });
46
46
  export {
@@ -0,0 +1,58 @@
1
+ /// <reference types="react" />
2
+ type StepperNavigatorLang = 'en' | 'pt';
3
+ export type StepperNavigatorButtonProps = {
4
+ leftIcon?: React.ReactNode;
5
+ rightIcon?: React.ReactNode;
6
+ className?: string;
7
+ 'data-testid'?: string;
8
+ };
9
+ export type StepperNavigatorProps = {
10
+ /** Hides the "previous" button */
11
+ hidePrevious?: boolean;
12
+ /** Hides the "cancel" button */
13
+ hideCancel?: boolean;
14
+ /** Hides the "next" button */
15
+ hideNext?: boolean;
16
+ /** Hides the "finish" button */
17
+ hideFinish?: boolean;
18
+ /** Disables the "previous" button */
19
+ disablePrevious?: boolean;
20
+ /** Disables the "cancel" button */
21
+ disableCancel?: boolean;
22
+ /** Disables the "next" button */
23
+ disableNext?: boolean;
24
+ /** Disables the "finish" button */
25
+ disableFinish?: boolean;
26
+ /** Label to be used for the "previous" button */
27
+ labelPrevious?: string;
28
+ /** Label to be used for the "cancel" button */
29
+ labelCancel?: string;
30
+ /** Label to be used for the "next" button */
31
+ labelNext?: string;
32
+ /** Label to be used for the "finish" button */
33
+ labelFinish?: string;
34
+ /** Language to be used for the button labels. Default "en" */
35
+ lang?: StepperNavigatorLang;
36
+ /** CSS classes to be applied on the container element */
37
+ className?: string;
38
+ /** Id to be applied as `data-testid` on the container element */
39
+ 'data-testid'?: string;
40
+ /** Previous button props */
41
+ previousButtonProps?: StepperNavigatorButtonProps;
42
+ /** Cancel button props */
43
+ cancelButtonProps?: StepperNavigatorButtonProps;
44
+ /** Next button props */
45
+ nextButtonProps?: StepperNavigatorButtonProps;
46
+ /** Finish button props */
47
+ finishButtonProps?: StepperNavigatorButtonProps;
48
+ /** Callback to be called when the "previous" button is clicked */
49
+ onPrevious?: () => void;
50
+ /** Callback to be called when the "cancel" button is clicked */
51
+ onCancel?: () => void;
52
+ /** Callback to be called when the "next" button is clicked */
53
+ onNext?: () => void;
54
+ /** Callback to be called when the "finish" button is clicked */
55
+ onFinish?: () => void;
56
+ };
57
+ export declare const StepperNavigator: ({ hideNext, hidePrevious, hideCancel, hideFinish, disableNext, disablePrevious, disableCancel, disableFinish, lang, labelNext, labelPrevious, labelCancel, labelFinish, className, "data-testid": dataTestId, previousButtonProps, cancelButtonProps, nextButtonProps, finishButtonProps, onNext, onPrevious, onCancel, onFinish, }: StepperNavigatorProps) => import("react/jsx-runtime").JSX.Element;
58
+ export {};
@@ -0,0 +1,115 @@
1
+ import '../../assets/StepperNavigator.css';
2
+ import { jsxs as l, jsx as a } from "react/jsx-runtime";
3
+ import { c as i } from "../../clsx-DB4S2d7J.js";
4
+ import { Button as I } from "../Button/Button.js";
5
+ import { Icon as K } from "../Icon/Icon.js";
6
+ const _ = {
7
+ "stepper-navigator": "_stepper-navigator_27f6m_1",
8
+ "cancel-button": "_cancel-button_27f6m_11",
9
+ "previous-button": "_previous-button_27f6m_20",
10
+ "next-button": "_next-button_27f6m_39",
11
+ "finish-button": "_finish-button_27f6m_40"
12
+ }, b = {
13
+ en: {
14
+ previous: "Previous",
15
+ cancel: "Cancel",
16
+ next: "Next",
17
+ finish: "Finish"
18
+ },
19
+ pt: {
20
+ previous: "Anterior",
21
+ cancel: "Cancelar",
22
+ next: "Próximo",
23
+ finish: "Finalizar"
24
+ }
25
+ }, R = ({
26
+ hideNext: C = !1,
27
+ hidePrevious: j = !1,
28
+ hideCancel: z = !1,
29
+ hideFinish: w = !1,
30
+ disableNext: y = !1,
31
+ disablePrevious: A = !1,
32
+ disableCancel: S = !1,
33
+ disableFinish: q = !1,
34
+ lang: h = "en",
35
+ labelNext: N,
36
+ labelPrevious: f,
37
+ labelCancel: g,
38
+ labelFinish: k,
39
+ className: D,
40
+ "data-testid": E = "stepper-navigator",
41
+ previousButtonProps: d,
42
+ cancelButtonProps: c,
43
+ nextButtonProps: e = { rightIcon: /* @__PURE__ */ a(K, { icon: "circle-arrow-right", size: 24 }) },
44
+ finishButtonProps: m,
45
+ onNext: F = () => {
46
+ },
47
+ onPrevious: G = () => {
48
+ },
49
+ onCancel: H = () => {
50
+ },
51
+ onFinish: J = () => {
52
+ }
53
+ }) => (g = g || b[h].cancel, f = f || b[h].previous, N = N || b[h].next, k = k || b[h].finish, /* @__PURE__ */ l("div", { className: i(_["stepper-navigator"], D), "data-testid": E, children: [
54
+ j ? /* @__PURE__ */ a("span", {}) : /* @__PURE__ */ l(
55
+ I,
56
+ {
57
+ className: i(_["previous-button"], d == null ? void 0 : d.className),
58
+ "data-testid": d == null ? void 0 : d["data-testid"],
59
+ disabled: A,
60
+ onClick: G,
61
+ children: [
62
+ /* @__PURE__ */ a("span", { children: d == null ? void 0 : d.leftIcon }),
63
+ /* @__PURE__ */ a("span", { children: f }),
64
+ /* @__PURE__ */ a("span", { children: d == null ? void 0 : d.rightIcon })
65
+ ]
66
+ }
67
+ ),
68
+ /* @__PURE__ */ l("span", { children: [
69
+ !z && /* @__PURE__ */ l(
70
+ I,
71
+ {
72
+ className: i(_["cancel-button"], c == null ? void 0 : c.className),
73
+ "data-testid": c == null ? void 0 : c["data-testid"],
74
+ disabled: S,
75
+ onClick: H,
76
+ children: [
77
+ /* @__PURE__ */ a("span", { children: c == null ? void 0 : c.leftIcon }),
78
+ /* @__PURE__ */ a("span", { children: g }),
79
+ /* @__PURE__ */ a("span", { children: c == null ? void 0 : c.rightIcon })
80
+ ]
81
+ }
82
+ ),
83
+ !C && /* @__PURE__ */ l(
84
+ I,
85
+ {
86
+ className: i(_["next-button"], e == null ? void 0 : e.className),
87
+ "data-testid": e == null ? void 0 : e["data-testid"],
88
+ disabled: y,
89
+ onClick: F,
90
+ children: [
91
+ /* @__PURE__ */ a("span", { children: e == null ? void 0 : e.leftIcon }),
92
+ /* @__PURE__ */ a("span", { children: N }),
93
+ /* @__PURE__ */ a("span", { children: e == null ? void 0 : e.rightIcon })
94
+ ]
95
+ }
96
+ ),
97
+ !w && /* @__PURE__ */ l(
98
+ I,
99
+ {
100
+ className: i(_["finish-button"], m == null ? void 0 : m.className),
101
+ "data-testid": m == null ? void 0 : m["data-testid"],
102
+ disabled: q,
103
+ onClick: J,
104
+ children: [
105
+ /* @__PURE__ */ a("span", { children: m == null ? void 0 : m.leftIcon }),
106
+ /* @__PURE__ */ a("span", { children: k }),
107
+ /* @__PURE__ */ a("span", { children: m == null ? void 0 : m.rightIcon })
108
+ ]
109
+ }
110
+ )
111
+ ] })
112
+ ] }));
113
+ export {
114
+ R as StepperNavigator
115
+ };
@@ -0,0 +1,18 @@
1
+ import { StoryObj } from '@storybook/react';
2
+
3
+ declare const meta: {
4
+ title: string;
5
+ component: ({ hideNext, hidePrevious, hideCancel, hideFinish, disableNext, disablePrevious, disableCancel, disableFinish, lang, labelNext, labelPrevious, labelCancel, labelFinish, className, "data-testid": dataTestId, previousButtonProps, cancelButtonProps, nextButtonProps, finishButtonProps, onNext, onPrevious, onCancel, onFinish, }: import('./StepperNavigator').StepperNavigatorProps) => import("react/jsx-runtime").JSX.Element;
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 WithCustomLanguage: Story;
15
+ export declare const WithCustomLabels: Story;
16
+ export declare const Disabled: Story;
17
+ export declare const WithIcons: Story;
18
+ export declare const DefaultWithNoIcons: Story;
@@ -28,13 +28,15 @@ 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;
31
33
  /** Set language */
32
34
  language?: string;
33
35
  /** Set translations to labels */
34
36
  translations?: TableTranslations;
35
37
  };
36
38
  declare const Table: {
37
- ({ children, theme, fullWidth, className, paginationProps, language, translations, ...rest }: TableProps): import("react/jsx-runtime").JSX.Element;
39
+ ({ children, theme, fullWidth, className, paginationProps, isFixed, language, translations, ...rest }: TableProps): import("react/jsx-runtime").JSX.Element;
38
40
  THead: import('react').FunctionComponent<ChildrenProps>;
39
41
  TBody: import('react').FunctionComponent<ChildrenProps>;
40
42
  Tr: import('react').FunctionComponent<TrProps>;