@pismo/marola 2.1.64 → 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 (112) 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/IconButton/IconButton.js +1 -1
  46. package/dist/components/Input/Input.js +335 -320
  47. package/dist/components/InputSearch/InputSearch.d.ts +31 -31
  48. package/dist/components/InputSearch/InputSearch.stories.d.ts +31 -31
  49. package/dist/components/Popover/Popover.d.ts +3 -3
  50. package/dist/components/Popover/Popover.js +2 -2
  51. package/dist/components/Popover/Popover.stories.d.ts +3 -3
  52. package/dist/components/Popover/PopoverBody.d.ts +0 -1
  53. package/dist/components/Popover/PopoverFooter.d.ts +0 -1
  54. package/dist/components/Popover/PopoverHeader.d.ts +0 -1
  55. package/dist/components/RadioButton/RadioButton.d.ts +0 -1
  56. package/dist/components/RadioButton/RadioButton.js +684 -769
  57. package/dist/components/RadioButton/RadioOption.d.ts +0 -1
  58. package/dist/components/RadioButton/RadioOption.js +3 -3
  59. package/dist/components/ResultContainer/ResultContainer.d.ts +0 -1
  60. package/dist/components/ResultContainer/ResultContainer.stories.d.ts +9 -9
  61. package/dist/components/ResultWithChips/ResultWithChips.js +1 -1
  62. package/dist/components/ResultWithChips/ResultWithChips.stories.d.ts +9 -9
  63. package/dist/components/RowItem/RowItem.js +2 -2
  64. package/dist/components/Select/Select.js +625 -591
  65. package/dist/components/Skeleton/Skeleton.d.ts +0 -1
  66. package/dist/components/Snackbar/Snackbar.js +295 -239
  67. package/dist/components/Snackbar/Snackbar.stories.d.ts +113 -113
  68. package/dist/components/StepperNavigator/StepperNavigator.d.ts +0 -1
  69. package/dist/components/Table/Table.stories.d.ts +5 -5
  70. package/dist/components/Tabs/Tab.js +107 -98
  71. package/dist/components/Tabs/TabPanel.js +58 -55
  72. package/dist/components/Tabs/Tabs.js +246 -231
  73. package/dist/components/ToastCard/ToastCard.js +31 -31
  74. package/dist/components/Toggle/Toggle.js +147 -137
  75. package/dist/components/Toggle/Toggle.stories.d.ts +5 -5
  76. package/dist/components/ToggleGroup/Toggle.d.ts +0 -1
  77. package/dist/components/ToggleGroup/Toggle.js +2 -2
  78. package/dist/components/ToggleGroup/ToggleGroup.js +1 -1
  79. package/dist/components/ToggleGroup/ToggleGroup.stories.d.ts +1 -1
  80. package/dist/components/Tooltip/Tooltip.js +266 -325
  81. package/dist/components/Tooltip/Tooltip.stories.d.ts +4 -4
  82. package/dist/components/TransactionRow/TransactionRow.stories.d.ts +21 -21
  83. package/dist/contexts/DraggableProvider/DraggableProvider.d.ts +0 -1
  84. package/dist/contexts/DraggableProvider/DraggableProvider.js +1 -1
  85. package/dist/contexts/SnackbarProvider/SnackbarProvider.js +1 -1
  86. package/dist/{dayjs.min-ClQKmc--.js → dayjs.min-BtgZiFZY.js} +14 -14
  87. package/dist/getReactElementRef-iorwYm2A.js +19 -0
  88. package/dist/{index-1UpBa69h.js → index-ew-96uBP.js} +2129 -2128
  89. package/dist/isFocusVisible-CPZqtjv2.js +12 -0
  90. package/dist/main.js +2 -2
  91. package/dist/{ownerDocument-By592Iy6.js → ownerDocument-CU-LCrtd.js} +1 -1
  92. package/dist/react-BTbo_5A3.js +526 -0
  93. package/dist/setRef-Bo0HEdBB.js +6 -0
  94. package/dist/useButton-C2E_LFJp.js +90 -0
  95. package/dist/useControlled-BYdyS7Pn.js +31 -0
  96. package/dist/useId-CK6Kn3Tn.js +21 -0
  97. package/dist/useList-BLW78Lq7.js +446 -0
  98. package/dist/utils/draggable.d.ts +2 -2
  99. package/package.json +1 -1
  100. package/dist/Button-BrEDdtHO.js +0 -130
  101. package/dist/Popup-Dffqo7wT.js +0 -1246
  102. package/dist/RadioOption-DYovqiwF.js +0 -720
  103. package/dist/combineHooksSlotProps-BhQ14uyD.js +0 -79
  104. package/dist/exactProp-SYjL19cU.js +0 -13
  105. package/dist/react-BvI-Sw9b.js +0 -509
  106. package/dist/useButton-CezPDte8.js +0 -105
  107. package/dist/useControlled-CCMYYdCM.js +0 -31
  108. package/dist/useId-BW-oWmul.js +0 -19
  109. package/dist/useIsFocusVisible-BH4IAdcw.js +0 -69
  110. package/dist/useList-nqLfZem8.js +0 -435
  111. package/dist/useSlotProps-CYHDC4TN.js +0 -834
  112. package/dist/useTimeout-DxF9kiZL.js +0 -36
@@ -6,14 +6,14 @@ declare const meta: {
6
6
  component: (props: DatePickerProps) => import("react/jsx-runtime").JSX.Element;
7
7
  tags: string[];
8
8
  decorators: ((Story: import('@storybook/core/csf').PartialStoryFn<import('@storybook/react').ReactRenderer, {
9
- viewMode: "month" | "day" | "year";
9
+ viewMode: "day" | "month" | "year";
10
10
  locale?: string | undefined;
11
11
  format?: string | undefined;
12
12
  minDate?: dayjs.Dayjs | undefined;
13
13
  maxDate?: dayjs.Dayjs | undefined;
14
14
  disableDates?: ((date: dayjs.Dayjs) => boolean) | undefined;
15
- onChange: (date: dayjs.Dayjs | [dayjs.Dayjs | null, dayjs.Dayjs | null] | null) => void;
16
- placement?: "bottom" | "top" | "bottom-start" | "bottom-end" | "top-start" | "top-end" | undefined;
15
+ onChange: (date: dayjs.Dayjs | null | [dayjs.Dayjs | null, dayjs.Dayjs | null]) => void;
16
+ placement?: "bottom-start" | "bottom" | "bottom-end" | "top-start" | "top" | "top-end" | undefined;
17
17
  navigatorInput?: boolean | undefined;
18
18
  className?: string | undefined;
19
19
  'data-testid'?: string | undefined;
@@ -25,14 +25,14 @@ declare const meta: {
25
25
  infoMessage?: import('react').ReactNode;
26
26
  errorMessage?: import('react').ReactNode;
27
27
  } | {
28
- viewMode: "month" | "day" | "year";
28
+ viewMode: "day" | "month" | "year";
29
29
  locale?: string | undefined;
30
30
  format?: string | undefined;
31
31
  minDate?: dayjs.Dayjs | undefined;
32
32
  maxDate?: dayjs.Dayjs | undefined;
33
33
  disableDates?: ((date: dayjs.Dayjs) => boolean) | undefined;
34
- onChange: (date: dayjs.Dayjs | [dayjs.Dayjs | null, dayjs.Dayjs | null] | null) => void;
35
- placement?: "bottom" | "top" | "bottom-start" | "bottom-end" | "top-start" | "top-end" | undefined;
34
+ onChange: (date: dayjs.Dayjs | null | [dayjs.Dayjs | null, dayjs.Dayjs | null]) => void;
35
+ placement?: "bottom-start" | "bottom" | "bottom-end" | "top-start" | "top" | "top-end" | undefined;
36
36
  navigatorInput?: boolean | undefined;
37
37
  className?: string | undefined;
38
38
  'data-testid'?: string | undefined;
@@ -42,8 +42,8 @@ declare const meta: {
42
42
  values?: [Date, Date] | undefined;
43
43
  placeholders?: [string, string] | undefined;
44
44
  limit?: number | undefined;
45
- infoMessages?: [import('react').ReactNode?, import('react').ReactNode?] | undefined;
46
- errorMessages?: [import('react').ReactNode?, import('react').ReactNode?] | undefined;
45
+ infoMessages?: [React.ReactNode?, React.ReactNode?] | undefined;
46
+ errorMessages?: [React.ReactNode?, React.ReactNode?] | undefined;
47
47
  }>) => import("react/jsx-runtime").JSX.Element)[];
48
48
  };
49
49
  export default meta;
@@ -35,7 +35,7 @@ export declare const isCurrentDay: (date: Dayjs | null) => boolean;
35
35
  * @param selectedRange - The currently selected date range (optional).
36
36
  * @returns `true` if the date is disabled, otherwise `false`.
37
37
  */
38
- export declare const isDisabled: (date: Dayjs | null, minDate?: Dayjs, maxDate?: Dayjs, disableDates?: (date: Dayjs) => boolean, mode?: 'single' | 'range', selectedRange?: [Dayjs | null, Dayjs | null], limit?: number) => boolean;
38
+ export declare const isDisabled: (date: Dayjs | null, minDate?: Dayjs, maxDate?: Dayjs, disableDates?: (date: Dayjs) => boolean, mode?: "single" | "range", selectedRange?: [Dayjs | null, Dayjs | null], limit?: number) => boolean;
39
39
  /**
40
40
  * Generate an array of dates representing a month grid.
41
41
  * @param month - The month to display (as a Dayjs object).
@@ -71,7 +71,7 @@ export declare const isRangeEnd: (date: Dayjs | null, rangeEnd: Dayjs | null) =>
71
71
  * @param format - The format to use ('long', 'short', 'narrow', etc.).
72
72
  * @returns Array of weekday names.
73
73
  */
74
- export declare const getWeekdayNames: (locale: string, format?: 'long' | 'short' | 'narrow') => string[];
74
+ export declare const getWeekdayNames: (locale: string, format?: "long" | "short" | "narrow") => string[];
75
75
  /**
76
76
  * Parse a date string to a Dayjs object.
77
77
  * @param dateStr - The date string to parse.
@@ -1,4 +1,4 @@
1
- import { d as u } from "../../dayjs.min-ClQKmc--.js";
1
+ import { d as u } from "../../dayjs.min-BtgZiFZY.js";
2
2
  const D = (r) => r.add(1, "month").startOf("month"), m = (r) => r.subtract(1, "month").startOf("month"), e = (r, n, t) => r ? t ? r.locale(n).format(t) : r.locale(n).format("LL") : "", p = (r) => r ? r.isSame(u(), "day") : !1, O = (r, n, t, o, i, s, a) => {
3
3
  var M;
4
4
  if (!r) return !0;
@@ -10,5 +10,5 @@ type ViewMode = 'day' | 'month' | 'year';
10
10
  * @param mode DatePicker mode ('single' or 'range')
11
11
  * @param handleSelect Function to select a date
12
12
  */
13
- export declare const handleDatePickerKeyDown: (event: React.KeyboardEvent, isOpen: boolean, viewMode: ViewMode, currentMonth: Dayjs, setCurrentMonth: (date: Dayjs) => void, mode: 'single' | 'range', handleSelect?: (date: Dayjs) => void, setIsOpen?: (isOpen: boolean) => void) => void;
13
+ export declare const handleDatePickerKeyDown: (event: React.KeyboardEvent, isOpen: boolean, viewMode: ViewMode, currentMonth: Dayjs, setCurrentMonth: (date: Dayjs) => void, mode: "single" | "range", handleSelect?: (date: Dayjs) => void, setIsOpen?: (isOpen: boolean) => void) => void;
14
14
  export {};
@@ -1,5 +1,5 @@
1
1
  import { jsx as d, jsxs as x } from "react/jsx-runtime";
2
- import { d as E } from "../../dayjs.min-ClQKmc--.js";
2
+ import { d as E } from "../../dayjs.min-BtgZiFZY.js";
3
3
  import { s as i } from "../../DatePicker.module-DgXp-rJ0.js";
4
4
  import { getWeekdayNames as I, getMonthGrid as W, isDateInRange as S, isRangeStart as c, isRangeEnd as y, isDisabled as k, isCurrentDay as h, formatDateForInput as A } from "./dateUtils.js";
5
5
  const H = (a, n, s) => {
@@ -1,5 +1,5 @@
1
1
  import { jsx as m } from "react/jsx-runtime";
2
- import { d as Y } from "../../dayjs.min-ClQKmc--.js";
2
+ import { d as Y } from "../../dayjs.min-BtgZiFZY.js";
3
3
  import { s } from "../../DatePicker.module-DgXp-rJ0.js";
4
4
  const T = ({
5
5
  currentViewMode: d,
@@ -1,7 +1,7 @@
1
1
  import { jsx as o } from "react/jsx-runtime";
2
2
  import { Icon as i } from "../Icon/Icon.js";
3
3
  import { s as r } from "../../Dialog.module-DWi17zjS.js";
4
- import { B as s } from "../../Button-BrEDdtHO.js";
4
+ import { B as s } from "../../Button-CJaBSdv1.js";
5
5
  const n = ({ handleOnClose: t }) => /* @__PURE__ */ o(
6
6
  s,
7
7
  {