@pismo/marola 2.1.76 → 2.1.78

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 (110) 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-BfFnVxxq.js +1094 -0
  7. package/dist/{Toggle-BRLRACTM.js → Toggle-DbpYFezR.js} +31 -30
  8. package/dist/assets/Checkbox.css +1 -1
  9. package/dist/assets/ToastCard.css +1 -1
  10. package/dist/assets/Toggle2.css +1 -1
  11. package/dist/combineHooksSlotProps-j-8UVeYo.js +86 -0
  12. package/dist/components/Alert/Alert.stories.d.ts +6 -6
  13. package/dist/components/Autocomplete/Autocomplete.d.ts +1 -1
  14. package/dist/components/Autocomplete/Autocomplete.js +311 -320
  15. package/dist/components/Autocomplete/Autocomplete.stories.d.ts +1 -1
  16. package/dist/components/Avatar/Avatar.stories.d.ts +4 -4
  17. package/dist/components/BankingCard/BankingCard.d.ts +0 -1
  18. package/dist/components/Button/Button.js +1 -1
  19. package/dist/components/Checkbox/Checkbox.js +56 -56
  20. package/dist/components/Checkbox/Checkbox.stories.d.ts +8 -8
  21. package/dist/components/Chip/Chip.js +3 -3
  22. package/dist/components/DatePicker/DatePicker.js +742 -639
  23. package/dist/components/DatePicker/DatePicker.stories.d.ts +8 -8
  24. package/dist/components/DatePicker/dateUtils.d.ts +2 -2
  25. package/dist/components/DatePicker/dateUtils.js +1 -1
  26. package/dist/components/DatePicker/keyboardNavigation.d.ts +1 -1
  27. package/dist/components/DatePicker/renderCalendarDays.js +1 -1
  28. package/dist/components/DatePicker/renderPeriodSelection.js +1 -1
  29. package/dist/components/Dialog/CloseIconButton.js +1 -1
  30. package/dist/components/Dialog/Dialog.js +372 -352
  31. package/dist/components/Dialog/Dialog.stories.d.ts +96 -143
  32. package/dist/components/DoubleAutocomplete/DoubleAutocomplete.d.ts +1 -1
  33. package/dist/components/DoubleAutocomplete/DoubleAutocomplete.js +2 -2
  34. package/dist/components/DoubleAutocomplete/DoubleAutocomplete.stories.d.ts +1 -1
  35. package/dist/components/DoubleInput/DoubleInput.stories.d.ts +1 -1
  36. package/dist/components/Draggable/Draggable.d.ts +0 -1
  37. package/dist/components/Draggable/Draggable.js +1 -1
  38. package/dist/components/Draggable/Draggable.stories.d.ts +2 -3
  39. package/dist/components/Draggable/useDraggable.js +1 -1
  40. package/dist/components/DropdownMenu/DropdownMenu.js +2 -2
  41. package/dist/components/DropdownMenu/DropdownMenu.stories.d.ts +5 -5
  42. package/dist/components/EllipsisTooltip/EllipsisTooltip.stories.d.ts +4 -4
  43. package/dist/components/IconButton/IconButton.js +1 -1
  44. package/dist/components/Input/Input.js +335 -320
  45. package/dist/components/InputSearch/InputSearch.d.ts +31 -31
  46. package/dist/components/InputSearch/InputSearch.stories.d.ts +31 -31
  47. package/dist/components/Popover/Popover.d.ts +3 -3
  48. package/dist/components/Popover/Popover.js +2 -2
  49. package/dist/components/Popover/Popover.stories.d.ts +3 -3
  50. package/dist/components/Popover/PopoverBody.d.ts +0 -1
  51. package/dist/components/Popover/PopoverFooter.d.ts +0 -1
  52. package/dist/components/Popover/PopoverHeader.d.ts +0 -1
  53. package/dist/components/RadioButton/RadioButton.d.ts +0 -1
  54. package/dist/components/RadioButton/RadioButton.js +684 -769
  55. package/dist/components/RadioButton/RadioOption.d.ts +0 -1
  56. package/dist/components/RadioButton/RadioOption.js +3 -3
  57. package/dist/components/ResultContainer/ResultContainer.d.ts +0 -1
  58. package/dist/components/ResultContainer/ResultContainer.stories.d.ts +9 -9
  59. package/dist/components/ResultWithChips/ResultWithChips.js +1 -1
  60. package/dist/components/ResultWithChips/ResultWithChips.stories.d.ts +9 -9
  61. package/dist/components/RowItem/RowItem.js +2 -2
  62. package/dist/components/Select/Select.js +625 -591
  63. package/dist/components/Skeleton/Skeleton.d.ts +0 -1
  64. package/dist/components/Snackbar/Snackbar.js +295 -239
  65. package/dist/components/Snackbar/Snackbar.stories.d.ts +113 -113
  66. package/dist/components/StepperNavigator/StepperNavigator.d.ts +0 -1
  67. package/dist/components/Table/Table.stories.d.ts +5 -5
  68. package/dist/components/Tabs/Tab.js +107 -98
  69. package/dist/components/Tabs/TabPanel.js +58 -55
  70. package/dist/components/Tabs/Tabs.js +246 -231
  71. package/dist/components/ToastCard/ToastCard.js +35 -35
  72. package/dist/components/Toggle/Toggle.js +146 -136
  73. package/dist/components/Toggle/Toggle.stories.d.ts +5 -5
  74. package/dist/components/ToggleGroup/Toggle.d.ts +2 -1
  75. package/dist/components/ToggleGroup/Toggle.js +2 -2
  76. package/dist/components/ToggleGroup/ToggleGroup.js +1 -1
  77. package/dist/components/ToggleGroup/ToggleGroup.stories.d.ts +1 -1
  78. package/dist/components/Tooltip/Tooltip.js +266 -325
  79. package/dist/components/Tooltip/Tooltip.stories.d.ts +4 -4
  80. package/dist/components/TransactionRow/TransactionRow.stories.d.ts +21 -21
  81. package/dist/contexts/DraggableProvider/DraggableProvider.d.ts +0 -1
  82. package/dist/contexts/DraggableProvider/DraggableProvider.js +1 -1
  83. package/dist/contexts/SnackbarProvider/SnackbarProvider.js +1 -1
  84. package/dist/{dayjs.min-ClQKmc--.js → dayjs.min-BtgZiFZY.js} +14 -14
  85. package/dist/getReactElementRef-iorwYm2A.js +19 -0
  86. package/dist/{index-1UpBa69h.js → index-ew-96uBP.js} +2129 -2128
  87. package/dist/isFocusVisible-CPZqtjv2.js +12 -0
  88. package/dist/main.js +2 -2
  89. package/dist/{ownerDocument-By592Iy6.js → ownerDocument-CU-LCrtd.js} +1 -1
  90. package/dist/react-BTbo_5A3.js +526 -0
  91. package/dist/setRef-Bo0HEdBB.js +6 -0
  92. package/dist/useButton-C2E_LFJp.js +90 -0
  93. package/dist/useControlled-BYdyS7Pn.js +31 -0
  94. package/dist/useId-CK6Kn3Tn.js +21 -0
  95. package/dist/useList-BLW78Lq7.js +446 -0
  96. package/dist/utils/draggable.d.ts +2 -2
  97. package/package.json +1 -1
  98. package/dist/Button-BrEDdtHO.js +0 -130
  99. package/dist/Popup-Dffqo7wT.js +0 -1246
  100. package/dist/RadioOption-BbANqZoI.js +0 -720
  101. package/dist/combineHooksSlotProps-BhQ14uyD.js +0 -79
  102. package/dist/exactProp-SYjL19cU.js +0 -13
  103. package/dist/react-BvI-Sw9b.js +0 -509
  104. package/dist/useButton-CezPDte8.js +0 -105
  105. package/dist/useControlled-CCMYYdCM.js +0 -31
  106. package/dist/useId-BW-oWmul.js +0 -19
  107. package/dist/useIsFocusVisible-BH4IAdcw.js +0 -69
  108. package/dist/useList-nqLfZem8.js +0 -435
  109. package/dist/useSlotProps-CYHDC4TN.js +0 -834
  110. package/dist/useTimeout-DxF9kiZL.js +0 -36
@@ -0,0 +1,135 @@
1
+ import * as a from "react";
2
+ import { g as C, a as R, b as T, c as B, d as O, P as o } from "./ClassNameConfigurator-CVRWfyIa.js";
3
+ import { jsx as x } from "react/jsx-runtime";
4
+ import { u as F } from "./useButton-C2E_LFJp.js";
5
+ const b = "Button";
6
+ function S(s) {
7
+ return C(b, s);
8
+ }
9
+ R(b, ["root", "active", "disabled", "focusVisible"]);
10
+ const U = (s) => {
11
+ const {
12
+ active: e,
13
+ disabled: r,
14
+ focusVisible: n
15
+ } = s;
16
+ return B({
17
+ root: ["root", r && "disabled", n && "focusVisible", e && "active"]
18
+ }, O(S));
19
+ }, w = /* @__PURE__ */ a.forwardRef(function(e, r) {
20
+ const {
21
+ action: n,
22
+ children: c,
23
+ disabled: D,
24
+ focusableWhenDisabled: u = !1,
25
+ onFocusVisible: j,
26
+ slotProps: m = {},
27
+ slots: i = {},
28
+ rootElementName: h = "button",
29
+ ...t
30
+ } = e, P = a.useRef(null);
31
+ let l = h;
32
+ typeof i.root == "string" ? l = i.root : (t.href || t.to) && (l = "a");
33
+ const {
34
+ active: N,
35
+ focusVisible: g,
36
+ setFocusVisible: f,
37
+ getRootProps: y
38
+ } = F({
39
+ ...e,
40
+ focusableWhenDisabled: u,
41
+ rootElementName: l
42
+ });
43
+ a.useImperativeHandle(n, () => ({
44
+ focusVisible: () => {
45
+ f(!0), P.current.focus();
46
+ }
47
+ }), [f]);
48
+ const p = {
49
+ ...e,
50
+ active: N,
51
+ focusableWhenDisabled: u,
52
+ focusVisible: g
53
+ }, V = U(p), E = t.href || t.to ? "a" : "button", d = i.root ?? E, v = T({
54
+ elementType: d,
55
+ getSlotProps: y,
56
+ externalForwardedProps: t,
57
+ externalSlotProps: m.root,
58
+ additionalProps: {
59
+ ref: r
60
+ },
61
+ ownerState: p,
62
+ className: V.root
63
+ });
64
+ return /* @__PURE__ */ x(d, {
65
+ ...v,
66
+ children: c
67
+ });
68
+ });
69
+ process.env.NODE_ENV !== "production" && (w.propTypes = {
70
+ // ┌────────────────────────────── Warning ──────────────────────────────┐
71
+ // │ These PropTypes are generated from the TypeScript type definitions. │
72
+ // │ To update them, edit the TypeScript types and run `pnpm proptypes`. │
73
+ // └─────────────────────────────────────────────────────────────────────┘
74
+ /**
75
+ * A ref for imperative actions. It currently only supports `focusVisible()` action.
76
+ */
77
+ action: o.oneOfType([o.func, o.shape({
78
+ current: o.shape({
79
+ focusVisible: o.func.isRequired
80
+ })
81
+ })]),
82
+ /**
83
+ * @ignore
84
+ */
85
+ children: o.node,
86
+ /**
87
+ * @ignore
88
+ */
89
+ className: o.string,
90
+ /**
91
+ * If `true`, the component is disabled.
92
+ * @default false
93
+ */
94
+ disabled: o.bool,
95
+ /**
96
+ * If `true`, allows a disabled button to receive focus.
97
+ * @default false
98
+ */
99
+ focusableWhenDisabled: o.bool,
100
+ /**
101
+ * @ignore
102
+ */
103
+ href: o.string,
104
+ /**
105
+ * @ignore
106
+ */
107
+ onFocusVisible: o.func,
108
+ /**
109
+ * The HTML element that is ultimately rendered, for example 'button' or 'a'
110
+ * @default 'button'
111
+ */
112
+ rootElementName: o.string,
113
+ /**
114
+ * The props used for each slot inside the Button.
115
+ * @default {}
116
+ */
117
+ slotProps: o.shape({
118
+ root: o.oneOfType([o.func, o.object])
119
+ }),
120
+ /**
121
+ * The components used for each slot inside the Button.
122
+ * Either a string to use a HTML element or a component.
123
+ * @default {}
124
+ */
125
+ slots: o.shape({
126
+ root: o.elementType
127
+ }),
128
+ /**
129
+ * @ignore
130
+ */
131
+ to: o.string
132
+ });
133
+ export {
134
+ w as B
135
+ };