@pismo/marola 2.1.64 → 2.1.66

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 (114) 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/ToastCard.css +1 -1
  11. package/dist/assets/Toggle2.css +1 -1
  12. package/dist/combineHooksSlotProps-j-8UVeYo.js +86 -0
  13. package/dist/components/Alert/Alert.stories.d.ts +6 -6
  14. package/dist/components/Autocomplete/Autocomplete.d.ts +1 -1
  15. package/dist/components/Autocomplete/Autocomplete.js +311 -320
  16. package/dist/components/Autocomplete/Autocomplete.stories.d.ts +1 -1
  17. package/dist/components/Avatar/Avatar.stories.d.ts +4 -4
  18. package/dist/components/BankingCard/BankingCard.d.ts +0 -1
  19. package/dist/components/Button/Button.js +1 -1
  20. package/dist/components/Checkbox/Checkbox.js +56 -56
  21. package/dist/components/Checkbox/Checkbox.stories.d.ts +8 -8
  22. package/dist/components/Chip/Chip.js +3 -3
  23. package/dist/components/DatePicker/DatePicker.js +742 -639
  24. package/dist/components/DatePicker/DatePicker.stories.d.ts +8 -8
  25. package/dist/components/DatePicker/dateUtils.d.ts +2 -2
  26. package/dist/components/DatePicker/dateUtils.js +1 -1
  27. package/dist/components/DatePicker/keyboardNavigation.d.ts +1 -1
  28. package/dist/components/DatePicker/renderCalendarDays.js +1 -1
  29. package/dist/components/DatePicker/renderPeriodSelection.js +1 -1
  30. package/dist/components/Dialog/CloseIconButton.js +1 -1
  31. package/dist/components/Dialog/Dialog.js +372 -352
  32. package/dist/components/Dialog/Dialog.stories.d.ts +96 -135
  33. package/dist/components/DoubleAutocomplete/DoubleAutocomplete.d.ts +1 -1
  34. package/dist/components/DoubleAutocomplete/DoubleAutocomplete.js +2 -2
  35. package/dist/components/DoubleAutocomplete/DoubleAutocomplete.stories.d.ts +1 -1
  36. package/dist/components/DoubleInput/DoubleInput.stories.d.ts +1 -1
  37. package/dist/components/Draggable/Draggable.d.ts +0 -1
  38. package/dist/components/Draggable/Draggable.js +1 -1
  39. package/dist/components/Draggable/Draggable.stories.d.ts +2 -3
  40. package/dist/components/Draggable/useDraggable.js +1 -1
  41. package/dist/components/DropdownMenu/DropdownMenu.d.ts +3 -1
  42. package/dist/components/DropdownMenu/DropdownMenu.js +39 -34
  43. package/dist/components/DropdownMenu/DropdownMenu.stories.d.ts +6 -4
  44. package/dist/components/EllipsisTooltip/EllipsisTooltip.stories.d.ts +4 -4
  45. package/dist/components/Icon/types.d.ts +1 -1
  46. package/dist/components/IconButton/IconButton.js +1 -1
  47. package/dist/components/Input/Input.js +335 -320
  48. package/dist/components/InputSearch/InputSearch.d.ts +31 -31
  49. package/dist/components/InputSearch/InputSearch.stories.d.ts +31 -31
  50. package/dist/components/Popover/Popover.d.ts +3 -3
  51. package/dist/components/Popover/Popover.js +2 -2
  52. package/dist/components/Popover/Popover.stories.d.ts +3 -3
  53. package/dist/components/Popover/PopoverBody.d.ts +0 -1
  54. package/dist/components/Popover/PopoverFooter.d.ts +0 -1
  55. package/dist/components/Popover/PopoverHeader.d.ts +0 -1
  56. package/dist/components/RadioButton/RadioButton.d.ts +0 -1
  57. package/dist/components/RadioButton/RadioButton.js +684 -769
  58. package/dist/components/RadioButton/RadioOption.d.ts +0 -1
  59. package/dist/components/RadioButton/RadioOption.js +3 -3
  60. package/dist/components/ResultContainer/ResultContainer.d.ts +0 -1
  61. package/dist/components/ResultContainer/ResultContainer.stories.d.ts +9 -9
  62. package/dist/components/ResultWithChips/ResultWithChips.js +1 -1
  63. package/dist/components/ResultWithChips/ResultWithChips.stories.d.ts +9 -9
  64. package/dist/components/RowItem/RowItem.js +2 -2
  65. package/dist/components/Select/Select.js +625 -591
  66. package/dist/components/Skeleton/Skeleton.d.ts +0 -1
  67. package/dist/components/Snackbar/Snackbar.js +295 -239
  68. package/dist/components/Snackbar/Snackbar.stories.d.ts +113 -113
  69. package/dist/components/StepperNavigator/StepperNavigator.d.ts +0 -1
  70. package/dist/components/Table/Table.stories.d.ts +5 -5
  71. package/dist/components/Tabs/Tab.js +107 -98
  72. package/dist/components/Tabs/TabPanel.js +58 -55
  73. package/dist/components/Tabs/Tabs.js +246 -231
  74. package/dist/components/ToastCard/ToastCard.js +31 -31
  75. package/dist/components/Toggle/Toggle.js +147 -137
  76. package/dist/components/Toggle/Toggle.stories.d.ts +5 -5
  77. package/dist/components/ToggleGroup/Toggle.d.ts +0 -1
  78. package/dist/components/ToggleGroup/Toggle.js +2 -2
  79. package/dist/components/ToggleGroup/ToggleGroup.js +1 -1
  80. package/dist/components/ToggleGroup/ToggleGroup.stories.d.ts +1 -1
  81. package/dist/components/Tooltip/Tooltip.js +266 -325
  82. package/dist/components/Tooltip/Tooltip.stories.d.ts +4 -4
  83. package/dist/components/TransactionRow/TransactionRow.stories.d.ts +21 -21
  84. package/dist/contexts/DraggableProvider/DraggableProvider.d.ts +0 -1
  85. package/dist/contexts/DraggableProvider/DraggableProvider.js +1 -1
  86. package/dist/contexts/SnackbarProvider/SnackbarProvider.js +1 -1
  87. package/dist/{dayjs.min-ClQKmc--.js → dayjs.min-BtgZiFZY.js} +14 -14
  88. package/dist/getReactElementRef-iorwYm2A.js +19 -0
  89. package/dist/{index-1UpBa69h.js → index-ew-96uBP.js} +2129 -2128
  90. package/dist/isFocusVisible-CPZqtjv2.js +12 -0
  91. package/dist/main.js +2 -2
  92. package/dist/{ownerDocument-By592Iy6.js → ownerDocument-CU-LCrtd.js} +1 -1
  93. package/dist/react-BTbo_5A3.js +526 -0
  94. package/dist/setRef-Bo0HEdBB.js +6 -0
  95. package/dist/useButton-C2E_LFJp.js +90 -0
  96. package/dist/useControlled-BYdyS7Pn.js +31 -0
  97. package/dist/useId-CK6Kn3Tn.js +21 -0
  98. package/dist/useList-BLW78Lq7.js +446 -0
  99. package/dist/utils/draggable.d.ts +2 -2
  100. package/dist/utils/iconsList.js +118 -112
  101. package/package.json +1 -1
  102. package/dist/Button-BrEDdtHO.js +0 -130
  103. package/dist/Popup-Dffqo7wT.js +0 -1246
  104. package/dist/RadioOption-DYovqiwF.js +0 -720
  105. package/dist/combineHooksSlotProps-BhQ14uyD.js +0 -79
  106. package/dist/exactProp-SYjL19cU.js +0 -13
  107. package/dist/react-BvI-Sw9b.js +0 -509
  108. package/dist/useButton-CezPDte8.js +0 -105
  109. package/dist/useControlled-CCMYYdCM.js +0 -31
  110. package/dist/useId-BW-oWmul.js +0 -19
  111. package/dist/useIsFocusVisible-BH4IAdcw.js +0 -69
  112. package/dist/useList-nqLfZem8.js +0 -435
  113. package/dist/useSlotProps-CYHDC4TN.js +0 -834
  114. package/dist/useTimeout-DxF9kiZL.js +0 -36
@@ -12,15 +12,15 @@ declare const meta: {
12
12
  title?: import('react').ReactNode;
13
13
  content: import('react').ReactNode;
14
14
  footer?: {
15
- type: "link" | "button";
15
+ type: "button" | "link";
16
16
  label: string;
17
- onClick?: (() => void) | undefined;
18
- href?: string | undefined;
17
+ onClick?: () => void;
18
+ href?: string;
19
19
  } | undefined;
20
20
  open?: boolean | undefined;
21
21
  disableHoverListener?: boolean | undefined;
22
22
  onClose?: (() => void) | undefined;
23
- position?: import('@floating-ui/react-dom').Placement | undefined;
23
+ position?: import('@floating-ui/utils').Placement | undefined;
24
24
  arialRole?: import('react').AriaRole | undefined;
25
25
  className?: string | undefined;
26
26
  style?: import('react').CSSProperties | undefined;
@@ -2,27 +2,27 @@ import { StoryObj } from '@storybook/react';
2
2
  declare const meta: {
3
3
  title: string;
4
4
  component: ({ dateTime, category, categoryType, name, type, installments, amount, month, icon, onClick, pendingItem, isLoading, isPendingTransaction, "data-testid": dataTestId, variant, primaryContent, secondaryContent, rightPrimaryContent, rightSecondaryContent, colorVariant, border, }: {
5
- dateTime?: import('react').ReactNode;
6
- month?: import('react').ReactNode;
7
- category?: import('react').ReactNode;
8
- categoryType?: import('react').ReactNode;
9
- name?: import('react').ReactNode;
10
- type?: import('react').ReactNode;
11
- icon?: import('../Icon/types').IconName | undefined;
12
- amount?: import('react').ReactNode;
13
- installments?: import('react').ReactNode;
14
- onClick?: (() => void) | undefined;
15
- isLoading?: boolean | undefined;
16
- 'data-testid'?: string | undefined;
17
- isPendingTransaction?: boolean | undefined;
18
- variant?: "default" | "two-line" | undefined;
19
- primaryContent?: import('react').ReactNode;
20
- secondaryContent?: import('react').ReactNode;
21
- rightPrimaryContent?: import('react').ReactNode;
22
- rightSecondaryContent?: import('react').ReactNode;
23
- colorVariant?: "success" | "primary" | "danger" | undefined;
24
- pendingItem?: boolean | undefined;
25
- border?: "bottom" | "top" | "full" | undefined;
5
+ dateTime?: React.ReactNode;
6
+ month?: React.ReactNode;
7
+ category?: React.ReactNode;
8
+ categoryType?: React.ReactNode;
9
+ name?: React.ReactNode;
10
+ type?: React.ReactNode;
11
+ icon?: import('../Icon/types').IconName;
12
+ amount?: React.ReactNode;
13
+ installments?: React.ReactNode;
14
+ onClick?: () => void;
15
+ isLoading?: boolean;
16
+ 'data-testid'?: string;
17
+ isPendingTransaction?: boolean;
18
+ variant?: "default" | "two-line";
19
+ primaryContent?: React.ReactNode;
20
+ secondaryContent?: React.ReactNode;
21
+ rightPrimaryContent?: React.ReactNode;
22
+ rightSecondaryContent?: React.ReactNode;
23
+ colorVariant?: "danger" | "success" | "primary";
24
+ pendingItem?: boolean;
25
+ border?: "top" | "bottom" | "full";
26
26
  }) => import("react/jsx-runtime").JSX.Element;
27
27
  tags: string[];
28
28
  parameters: {
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  export type DraggableProviderProps = React.PropsWithChildren;
3
2
  export declare const DraggableProvider: ({ children }: DraggableProviderProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,5 +1,5 @@
1
1
  import { jsx as o } from "react/jsx-runtime";
2
- import { P as e } from "../../react-BvI-Sw9b.js";
2
+ import { P as e } from "../../react-BTbo_5A3.js";
3
3
  const t = ({ children: r }) => /* @__PURE__ */ o(e, { children: r });
4
4
  export {
5
5
  t as DraggableProvider
@@ -1,6 +1,6 @@
1
1
  import { jsx as u, jsxs as l, Fragment as g } from "react/jsx-runtime";
2
2
  import { createContext as p, useContext as f, useState as b, useCallback as k, createElement as C } from "react";
3
- import { r as v } from "../../index-1UpBa69h.js";
3
+ import { r as v } from "../../index-ew-96uBP.js";
4
4
  import { Snackbar as x } from "../../components/Snackbar/Snackbar.js";
5
5
  const o = p({
6
6
  showMessage: () => {
@@ -1,10 +1,10 @@
1
1
  import { g as G } from "./_commonjsHelpers-C6fGbg64.js";
2
2
  var W = { exports: {} }, K = W.exports, E;
3
3
  function X() {
4
- return E || (E = 1, function(V, et) {
4
+ return E || (E = 1, (function(V, et) {
5
5
  (function(A, x) {
6
6
  V.exports = x();
7
- })(K, function() {
7
+ })(K, (function() {
8
8
  var A = 1e3, x = 6e4, U = 36e5, I = "millisecond", S = "second", w = "minute", _ = "hour", M = "day", H = "week", m = "month", J = "quarter", y = "year", O = "date", Z = "Invalid Date", B = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, P = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, Q = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(s) {
9
9
  var r = ["th", "st", "nd", "rd"], t = s % 100;
10
10
  return "[" + s + (r[(t - 20) % 10] || r[t] || r[0]) + "]";
@@ -49,13 +49,13 @@ function X() {
49
49
  a.l = T, a.i = N, a.w = function(s, r) {
50
50
  return f(s, { locale: r.$L, utc: r.$u, x: r.$x, $offset: r.$offset });
51
51
  };
52
- var C = function() {
52
+ var C = (function() {
53
53
  function s(t) {
54
54
  this.$L = T(t.locale, null, !0), this.parse(t), this.$x = this.$x || t.x || {}, this[q] = !0;
55
55
  }
56
56
  var r = s.prototype;
57
57
  return r.parse = function(t) {
58
- this.$d = function(n) {
58
+ this.$d = (function(n) {
59
59
  var e = n.date, i = n.utc;
60
60
  if (e === null) return /* @__PURE__ */ new Date(NaN);
61
61
  if (a.u(e)) return /* @__PURE__ */ new Date();
@@ -68,7 +68,7 @@ function X() {
68
68
  }
69
69
  }
70
70
  return new Date(e);
71
- }(t), this.init();
71
+ })(t), this.init();
72
72
  }, r.init = function() {
73
73
  var t = this.$d;
74
74
  this.$y = t.getFullYear(), this.$M = t.getMonth(), this.$D = t.getDate(), this.$W = t.getDay(), this.$H = t.getHours(), this.$m = t.getMinutes(), this.$s = t.getSeconds(), this.$ms = t.getMilliseconds();
@@ -155,8 +155,8 @@ function X() {
155
155
  var L = $ < 12 ? "AM" : "PM";
156
156
  return j ? L.toLowerCase() : L;
157
157
  };
158
- return i.replace(P, function($, v) {
159
- return v || function(j) {
158
+ return i.replace(P, (function($, v) {
159
+ return v || (function(j) {
160
160
  switch (j) {
161
161
  case "YY":
162
162
  return String(n.$y).slice(-2);
@@ -208,8 +208,8 @@ function X() {
208
208
  return u;
209
209
  }
210
210
  return null;
211
- }($) || u.replace(":", "");
212
- });
211
+ })($) || u.replace(":", "");
212
+ }));
213
213
  }, r.utcOffset = function() {
214
214
  return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
215
215
  }, r.diff = function(t, n, e) {
@@ -264,18 +264,18 @@ function X() {
264
264
  }, r.toString = function() {
265
265
  return this.$d.toUTCString();
266
266
  }, s;
267
- }(), z = C.prototype;
268
- return f.prototype = z, [["$ms", I], ["$s", S], ["$m", w], ["$H", _], ["$W", M], ["$M", m], ["$y", y], ["$D", O]].forEach(function(s) {
267
+ })(), z = C.prototype;
268
+ return f.prototype = z, [["$ms", I], ["$s", S], ["$m", w], ["$H", _], ["$W", M], ["$M", m], ["$y", y], ["$D", O]].forEach((function(s) {
269
269
  z[s[1]] = function(r) {
270
270
  return this.$g(r, s[0], s[1]);
271
271
  };
272
- }), f.extend = function(s, r) {
272
+ })), f.extend = function(s, r) {
273
273
  return s.$i || (s(r, C, f), s.$i = !0), f;
274
274
  }, f.locale = T, f.isDayjs = N, f.unix = function(s) {
275
275
  return f(1e3 * s);
276
276
  }, f.en = D[k], f.Ls = D, f.p = {}, f;
277
- });
278
- }(W)), W.exports;
277
+ }));
278
+ })(W)), W.exports;
279
279
  }
280
280
  var tt = X();
281
281
  const nt = /* @__PURE__ */ G(tt);
@@ -0,0 +1,19 @@
1
+ import * as s from "react";
2
+ const u = "exact-prop: ​";
3
+ function p(r) {
4
+ return process.env.NODE_ENV === "production" ? r : {
5
+ ...r,
6
+ [u]: (o) => {
7
+ const n = Object.keys(o).filter((t) => !r.hasOwnProperty(t));
8
+ return n.length > 0 ? new Error(`The following props are not supported: ${n.map((t) => `\`${t}\``).join(", ")}. Please remove them.`) : null;
9
+ }
10
+ };
11
+ }
12
+ function a(r) {
13
+ var o;
14
+ return parseInt(s.version, 10) >= 19 ? ((o = r == null ? void 0 : r.props) == null ? void 0 : o.ref) || null : (r == null ? void 0 : r.ref) || null;
15
+ }
16
+ export {
17
+ p as e,
18
+ a as g
19
+ };