@pismo/marola 2.1.63 → 2.1.65

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 (115) hide show
  1. package/dist/Button-CJaBSdv1.js +135 -0
  2. package/dist/ClassNameConfigurator-CVRWfyIa.js +847 -0
  3. package/dist/{ClickAwayListener-Z08peX_P.js → ClickAwayListener-BnYMO5Ki.js} +26 -33
  4. package/dist/Popup-D267EI4e.js +1338 -0
  5. package/dist/{Portal-DJapUCn6.js → Portal-BrGvxB96.js} +32 -36
  6. package/dist/RadioOption-DyRY8xlF.js +1094 -0
  7. package/dist/{Toggle-DcZTfLrC.js → Toggle-nnDfpqI1.js} +31 -31
  8. package/dist/assets/Checkbox.css +1 -1
  9. package/dist/assets/DropdownMenu.css +1 -1
  10. package/dist/assets/Input.css +1 -1
  11. package/dist/assets/ToastCard.css +1 -1
  12. package/dist/assets/Toggle2.css +1 -1
  13. package/dist/combineHooksSlotProps-j-8UVeYo.js +86 -0
  14. package/dist/components/Alert/Alert.stories.d.ts +6 -6
  15. package/dist/components/Autocomplete/Autocomplete.d.ts +1 -1
  16. package/dist/components/Autocomplete/Autocomplete.js +311 -320
  17. package/dist/components/Autocomplete/Autocomplete.stories.d.ts +1 -1
  18. package/dist/components/Avatar/Avatar.stories.d.ts +4 -4
  19. package/dist/components/BankingCard/BankingCard.d.ts +0 -1
  20. package/dist/components/Button/Button.js +1 -1
  21. package/dist/components/Checkbox/Checkbox.js +56 -56
  22. package/dist/components/Checkbox/Checkbox.stories.d.ts +8 -8
  23. package/dist/components/Chip/Chip.js +3 -3
  24. package/dist/components/DatePicker/DatePicker.js +742 -639
  25. package/dist/components/DatePicker/DatePicker.stories.d.ts +8 -8
  26. package/dist/components/DatePicker/dateUtils.d.ts +2 -2
  27. package/dist/components/DatePicker/dateUtils.js +1 -1
  28. package/dist/components/DatePicker/keyboardNavigation.d.ts +1 -1
  29. package/dist/components/DatePicker/renderCalendarDays.js +1 -1
  30. package/dist/components/DatePicker/renderPeriodSelection.js +1 -1
  31. package/dist/components/Dialog/CloseIconButton.js +1 -1
  32. package/dist/components/Dialog/Dialog.js +372 -352
  33. package/dist/components/Dialog/Dialog.stories.d.ts +96 -135
  34. package/dist/components/DoubleAutocomplete/DoubleAutocomplete.d.ts +1 -1
  35. package/dist/components/DoubleAutocomplete/DoubleAutocomplete.js +2 -2
  36. package/dist/components/DoubleAutocomplete/DoubleAutocomplete.stories.d.ts +1 -1
  37. package/dist/components/DoubleInput/DoubleInput.stories.d.ts +1 -1
  38. package/dist/components/Draggable/Draggable.d.ts +0 -1
  39. package/dist/components/Draggable/Draggable.js +1 -1
  40. package/dist/components/Draggable/Draggable.stories.d.ts +2 -3
  41. package/dist/components/Draggable/useDraggable.js +1 -1
  42. package/dist/components/DropdownMenu/DropdownMenu.d.ts +3 -1
  43. package/dist/components/DropdownMenu/DropdownMenu.js +39 -34
  44. package/dist/components/DropdownMenu/DropdownMenu.stories.d.ts +6 -4
  45. package/dist/components/EllipsisTooltip/EllipsisTooltip.stories.d.ts +4 -4
  46. package/dist/components/IconButton/IconButton.js +1 -1
  47. package/dist/components/Input/Input.d.ts +2 -0
  48. package/dist/components/Input/Input.js +361 -340
  49. package/dist/components/Input/Input.stories.d.ts +2 -0
  50. package/dist/components/InputSearch/InputSearch.d.ts +31 -30
  51. package/dist/components/InputSearch/InputSearch.stories.d.ts +31 -30
  52. package/dist/components/Popover/Popover.d.ts +3 -3
  53. package/dist/components/Popover/Popover.js +2 -2
  54. package/dist/components/Popover/Popover.stories.d.ts +3 -3
  55. package/dist/components/Popover/PopoverBody.d.ts +0 -1
  56. package/dist/components/Popover/PopoverFooter.d.ts +0 -1
  57. package/dist/components/Popover/PopoverHeader.d.ts +0 -1
  58. package/dist/components/RadioButton/RadioButton.d.ts +0 -1
  59. package/dist/components/RadioButton/RadioButton.js +684 -769
  60. package/dist/components/RadioButton/RadioOption.d.ts +0 -1
  61. package/dist/components/RadioButton/RadioOption.js +3 -3
  62. package/dist/components/ResultContainer/ResultContainer.d.ts +0 -1
  63. package/dist/components/ResultContainer/ResultContainer.stories.d.ts +9 -9
  64. package/dist/components/ResultWithChips/ResultWithChips.js +1 -1
  65. package/dist/components/ResultWithChips/ResultWithChips.stories.d.ts +9 -9
  66. package/dist/components/RowItem/RowItem.js +2 -2
  67. package/dist/components/Select/Select.js +625 -591
  68. package/dist/components/Skeleton/Skeleton.d.ts +0 -1
  69. package/dist/components/Snackbar/Snackbar.js +295 -239
  70. package/dist/components/Snackbar/Snackbar.stories.d.ts +113 -113
  71. package/dist/components/StepperNavigator/StepperNavigator.d.ts +0 -1
  72. package/dist/components/Table/Table.stories.d.ts +5 -5
  73. package/dist/components/Tabs/Tab.js +107 -98
  74. package/dist/components/Tabs/TabPanel.js +58 -55
  75. package/dist/components/Tabs/Tabs.js +246 -231
  76. package/dist/components/ToastCard/ToastCard.js +31 -31
  77. package/dist/components/Toggle/Toggle.js +147 -137
  78. package/dist/components/Toggle/Toggle.stories.d.ts +5 -5
  79. package/dist/components/ToggleGroup/Toggle.d.ts +0 -1
  80. package/dist/components/ToggleGroup/Toggle.js +2 -2
  81. package/dist/components/ToggleGroup/ToggleGroup.js +1 -1
  82. package/dist/components/ToggleGroup/ToggleGroup.stories.d.ts +1 -1
  83. package/dist/components/Tooltip/Tooltip.js +266 -325
  84. package/dist/components/Tooltip/Tooltip.stories.d.ts +4 -4
  85. package/dist/components/TransactionRow/TransactionRow.stories.d.ts +21 -21
  86. package/dist/contexts/DraggableProvider/DraggableProvider.d.ts +0 -1
  87. package/dist/contexts/DraggableProvider/DraggableProvider.js +1 -1
  88. package/dist/contexts/SnackbarProvider/SnackbarProvider.js +1 -1
  89. package/dist/{dayjs.min-ClQKmc--.js → dayjs.min-BtgZiFZY.js} +14 -14
  90. package/dist/getReactElementRef-iorwYm2A.js +19 -0
  91. package/dist/{index-1UpBa69h.js → index-ew-96uBP.js} +2129 -2128
  92. package/dist/isFocusVisible-CPZqtjv2.js +12 -0
  93. package/dist/main.js +2 -2
  94. package/dist/{ownerDocument-By592Iy6.js → ownerDocument-CU-LCrtd.js} +1 -1
  95. package/dist/react-BTbo_5A3.js +526 -0
  96. package/dist/setRef-Bo0HEdBB.js +6 -0
  97. package/dist/useButton-C2E_LFJp.js +90 -0
  98. package/dist/useControlled-BYdyS7Pn.js +31 -0
  99. package/dist/useId-CK6Kn3Tn.js +21 -0
  100. package/dist/useList-BLW78Lq7.js +446 -0
  101. package/dist/utils/draggable.d.ts +2 -2
  102. package/package.json +5 -4
  103. package/dist/Button-BrEDdtHO.js +0 -130
  104. package/dist/Popup-Dffqo7wT.js +0 -1246
  105. package/dist/RadioOption-DYovqiwF.js +0 -720
  106. package/dist/combineHooksSlotProps-BhQ14uyD.js +0 -79
  107. package/dist/exactProp-SYjL19cU.js +0 -13
  108. package/dist/react-BvI-Sw9b.js +0 -509
  109. package/dist/useButton-CezPDte8.js +0 -105
  110. package/dist/useControlled-CCMYYdCM.js +0 -31
  111. package/dist/useId-BW-oWmul.js +0 -19
  112. package/dist/useIsFocusVisible-BH4IAdcw.js +0 -69
  113. package/dist/useList-nqLfZem8.js +0 -435
  114. package/dist/useSlotProps-CYHDC4TN.js +0 -834
  115. package/dist/useTimeout-DxF9kiZL.js +0 -36
@@ -1,70 +1,72 @@
1
- import { jsx as T } from "react/jsx-runtime";
1
+ import { jsx as b } from "react/jsx-runtime";
2
2
  import * as P from "react";
3
- import { forwardRef as v } from "react";
3
+ import { forwardRef as g } from "react";
4
4
  import { c as y } from "../../clsx-OuTLNxxd.js";
5
- import { u as x, s as C } from "../../Tabs.module-DyJgAZt8.js";
6
- import { g as N, a as _, u as w, _ as b, b as O, c as E, d as I, e as S, P as o } from "../../useSlotProps-CYHDC4TN.js";
7
- import { u as U } from "../../useId-BW-oWmul.js";
8
- import { u as j } from "../../useCompoundItem-B7Eo_qZk.js";
9
- const h = "TabPanel";
10
- function M(t) {
11
- return N(h, t);
5
+ import { u as v, s as C } from "../../Tabs.module-DyJgAZt8.js";
6
+ import { g as N, a as x, u as w, b as O, c as E, d as I, P as e } from "../../ClassNameConfigurator-CVRWfyIa.js";
7
+ import { u as S } from "../../useId-CK6Kn3Tn.js";
8
+ import { u as U } from "../../useCompoundItem-B7Eo_qZk.js";
9
+ const T = "TabPanel";
10
+ function _(o) {
11
+ return N(T, o);
12
12
  }
13
- _(h, ["root", "hidden"]);
14
- function V(t) {
15
- return t.size;
13
+ x(T, ["root", "hidden"]);
14
+ function M(o) {
15
+ return o.size;
16
16
  }
17
- function F(t) {
17
+ function V(o) {
18
18
  const {
19
- value: e,
19
+ value: t,
20
20
  id: s,
21
- rootRef: n
22
- } = t, a = x();
23
- if (a === null)
21
+ rootRef: a
22
+ } = o, n = v();
23
+ if (n === null)
24
24
  throw new Error("No TabContext provided");
25
25
  const {
26
- value: f,
27
- getTabId: m
28
- } = a, r = U(s), l = P.useRef(null), c = w(l, n), u = P.useMemo(() => ({
26
+ value: p,
27
+ getTabId: f
28
+ } = n, r = S(s), l = P.useRef(null), c = w(l, a), u = P.useMemo(() => ({
29
29
  id: r,
30
30
  ref: l
31
31
  }), [r]), {
32
32
  id: d
33
- } = j(e ?? V, u), i = d !== f, p = d !== void 0 ? m(d) : void 0;
33
+ } = U(t ?? M, u), i = d !== p, m = d !== void 0 ? f(d) : void 0;
34
34
  return {
35
35
  hidden: i,
36
- getRootProps: (g = {}) => b({
37
- "aria-labelledby": p ?? void 0,
36
+ getRootProps: (h = {}) => ({
37
+ "aria-labelledby": m ?? void 0,
38
38
  hidden: i,
39
- id: r ?? void 0
40
- }, g, {
39
+ id: r ?? void 0,
40
+ ...h,
41
41
  ref: c
42
42
  }),
43
43
  rootRef: c
44
44
  };
45
45
  }
46
- const $ = ["children", "value", "slotProps", "slots"], k = (t) => {
46
+ const j = (o) => {
47
47
  const {
48
- hidden: e
49
- } = t;
50
- return I({
51
- root: ["root", e && "hidden"]
52
- }, S(M));
53
- }, R = /* @__PURE__ */ P.forwardRef(function(e, s) {
54
- var n;
48
+ hidden: t
49
+ } = o;
50
+ return E({
51
+ root: ["root", t && "hidden"]
52
+ }, I(_));
53
+ }, R = /* @__PURE__ */ P.forwardRef(function(t, s) {
55
54
  const {
56
55
  children: a,
57
- slotProps: f = {},
58
- slots: m = {}
59
- } = e, r = O(e, $), {
56
+ value: n,
57
+ slotProps: p = {},
58
+ slots: f = {},
59
+ ...r
60
+ } = t, {
60
61
  hidden: l,
61
62
  getRootProps: c
62
- } = F(e), u = b({}, e, {
63
+ } = V(t), u = {
64
+ ...t,
63
65
  hidden: l
64
- }), d = k(u), i = (n = m.root) != null ? n : "div", p = E({
66
+ }, d = j(u), i = f.root ?? "div", m = O({
65
67
  elementType: i,
66
68
  getSlotProps: c,
67
- externalSlotProps: f.root,
69
+ externalSlotProps: p.root,
68
70
  externalForwardedProps: r,
69
71
  additionalProps: {
70
72
  role: "tabpanel",
@@ -73,9 +75,10 @@ const $ = ["children", "value", "slotProps", "slots"], k = (t) => {
73
75
  ownerState: u,
74
76
  className: d.root
75
77
  });
76
- return /* @__PURE__ */ T(i, b({}, p, {
78
+ return /* @__PURE__ */ b(i, {
79
+ ...m,
77
80
  children: !l && a
78
- }));
81
+ });
79
82
  });
80
83
  process.env.NODE_ENV !== "production" && (R.propTypes = {
81
84
  // ┌────────────────────────────── Warning ──────────────────────────────┐
@@ -85,45 +88,45 @@ process.env.NODE_ENV !== "production" && (R.propTypes = {
85
88
  /**
86
89
  * The content of the component.
87
90
  */
88
- children: o.node,
91
+ children: e.node,
89
92
  /**
90
93
  * @ignore
91
94
  */
92
- className: o.string,
95
+ className: e.string,
93
96
  /**
94
97
  * The props used for each slot inside the TabPanel.
95
98
  * @default {}
96
99
  */
97
- slotProps: o.shape({
98
- root: o.oneOfType([o.func, o.object])
100
+ slotProps: e.shape({
101
+ root: e.oneOfType([e.func, e.object])
99
102
  }),
100
103
  /**
101
104
  * The components used for each slot inside the TabPanel.
102
105
  * Either a string to use a HTML element or a component.
103
106
  * @default {}
104
107
  */
105
- slots: o.shape({
106
- root: o.elementType
108
+ slots: e.shape({
109
+ root: e.elementType
107
110
  }),
108
111
  /**
109
112
  * The value of the TabPanel. It will be shown when the Tab with the corresponding value is selected.
110
113
  * If not provided, it will fall back to the index of the panel.
111
114
  * It is recommended to explicitly provide it, as it's required for the tab panel to be rendered on the server.
112
115
  */
113
- value: o.oneOfType([o.number, o.string])
116
+ value: e.oneOfType([e.number, e.string])
114
117
  });
115
- const H = v(
116
- ({ children: t, value: e, className: s, "data-testid": n }, a) => /* @__PURE__ */ T(
118
+ const B = g(
119
+ ({ children: o, value: t, className: s, "data-testid": a }, n) => /* @__PURE__ */ b(
117
120
  R,
118
121
  {
119
122
  className: y(C["tabs__tab-panel"], s),
120
- value: e,
121
- "data-testid": n,
122
- ref: a,
123
- children: t
123
+ value: t,
124
+ "data-testid": a,
125
+ ref: n,
126
+ children: o
124
127
  }
125
128
  )
126
129
  );
127
130
  export {
128
- H as TabPanel
131
+ B as TabPanel
129
132
  };