@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.
- package/dist/Button-CJaBSdv1.js +135 -0
- package/dist/ClassNameConfigurator-CVRWfyIa.js +847 -0
- package/dist/{ClickAwayListener-Z08peX_P.js → ClickAwayListener-BnYMO5Ki.js} +26 -33
- package/dist/Popup-D267EI4e.js +1338 -0
- package/dist/{Portal-DJapUCn6.js → Portal-BrGvxB96.js} +32 -36
- package/dist/RadioOption-DyRY8xlF.js +1094 -0
- package/dist/{Toggle-DcZTfLrC.js → Toggle-nnDfpqI1.js} +31 -31
- package/dist/assets/Checkbox.css +1 -1
- package/dist/assets/DropdownMenu.css +1 -1
- package/dist/assets/Input.css +1 -1
- package/dist/assets/ToastCard.css +1 -1
- package/dist/assets/Toggle2.css +1 -1
- package/dist/combineHooksSlotProps-j-8UVeYo.js +86 -0
- package/dist/components/Alert/Alert.stories.d.ts +6 -6
- package/dist/components/Autocomplete/Autocomplete.d.ts +1 -1
- package/dist/components/Autocomplete/Autocomplete.js +311 -320
- package/dist/components/Autocomplete/Autocomplete.stories.d.ts +1 -1
- package/dist/components/Avatar/Avatar.stories.d.ts +4 -4
- package/dist/components/BankingCard/BankingCard.d.ts +0 -1
- package/dist/components/Button/Button.js +1 -1
- package/dist/components/Checkbox/Checkbox.js +56 -56
- package/dist/components/Checkbox/Checkbox.stories.d.ts +8 -8
- package/dist/components/Chip/Chip.js +3 -3
- package/dist/components/DatePicker/DatePicker.js +742 -639
- package/dist/components/DatePicker/DatePicker.stories.d.ts +8 -8
- package/dist/components/DatePicker/dateUtils.d.ts +2 -2
- package/dist/components/DatePicker/dateUtils.js +1 -1
- package/dist/components/DatePicker/keyboardNavigation.d.ts +1 -1
- package/dist/components/DatePicker/renderCalendarDays.js +1 -1
- package/dist/components/DatePicker/renderPeriodSelection.js +1 -1
- package/dist/components/Dialog/CloseIconButton.js +1 -1
- package/dist/components/Dialog/Dialog.js +372 -352
- package/dist/components/Dialog/Dialog.stories.d.ts +96 -135
- package/dist/components/DoubleAutocomplete/DoubleAutocomplete.d.ts +1 -1
- package/dist/components/DoubleAutocomplete/DoubleAutocomplete.js +2 -2
- package/dist/components/DoubleAutocomplete/DoubleAutocomplete.stories.d.ts +1 -1
- package/dist/components/DoubleInput/DoubleInput.stories.d.ts +1 -1
- package/dist/components/Draggable/Draggable.d.ts +0 -1
- package/dist/components/Draggable/Draggable.js +1 -1
- package/dist/components/Draggable/Draggable.stories.d.ts +2 -3
- package/dist/components/Draggable/useDraggable.js +1 -1
- package/dist/components/DropdownMenu/DropdownMenu.d.ts +3 -1
- package/dist/components/DropdownMenu/DropdownMenu.js +39 -34
- package/dist/components/DropdownMenu/DropdownMenu.stories.d.ts +6 -4
- package/dist/components/EllipsisTooltip/EllipsisTooltip.stories.d.ts +4 -4
- package/dist/components/IconButton/IconButton.js +1 -1
- package/dist/components/Input/Input.d.ts +2 -0
- package/dist/components/Input/Input.js +361 -340
- package/dist/components/Input/Input.stories.d.ts +2 -0
- package/dist/components/InputSearch/InputSearch.d.ts +31 -30
- package/dist/components/InputSearch/InputSearch.stories.d.ts +31 -30
- package/dist/components/Popover/Popover.d.ts +3 -3
- package/dist/components/Popover/Popover.js +2 -2
- package/dist/components/Popover/Popover.stories.d.ts +3 -3
- package/dist/components/Popover/PopoverBody.d.ts +0 -1
- package/dist/components/Popover/PopoverFooter.d.ts +0 -1
- package/dist/components/Popover/PopoverHeader.d.ts +0 -1
- package/dist/components/RadioButton/RadioButton.d.ts +0 -1
- package/dist/components/RadioButton/RadioButton.js +684 -769
- package/dist/components/RadioButton/RadioOption.d.ts +0 -1
- package/dist/components/RadioButton/RadioOption.js +3 -3
- package/dist/components/ResultContainer/ResultContainer.d.ts +0 -1
- package/dist/components/ResultContainer/ResultContainer.stories.d.ts +9 -9
- package/dist/components/ResultWithChips/ResultWithChips.js +1 -1
- package/dist/components/ResultWithChips/ResultWithChips.stories.d.ts +9 -9
- package/dist/components/RowItem/RowItem.js +2 -2
- package/dist/components/Select/Select.js +625 -591
- package/dist/components/Skeleton/Skeleton.d.ts +0 -1
- package/dist/components/Snackbar/Snackbar.js +295 -239
- package/dist/components/Snackbar/Snackbar.stories.d.ts +113 -113
- package/dist/components/StepperNavigator/StepperNavigator.d.ts +0 -1
- package/dist/components/Table/Table.stories.d.ts +5 -5
- package/dist/components/Tabs/Tab.js +107 -98
- package/dist/components/Tabs/TabPanel.js +58 -55
- package/dist/components/Tabs/Tabs.js +246 -231
- package/dist/components/ToastCard/ToastCard.js +31 -31
- package/dist/components/Toggle/Toggle.js +147 -137
- package/dist/components/Toggle/Toggle.stories.d.ts +5 -5
- package/dist/components/ToggleGroup/Toggle.d.ts +0 -1
- package/dist/components/ToggleGroup/Toggle.js +2 -2
- package/dist/components/ToggleGroup/ToggleGroup.js +1 -1
- package/dist/components/ToggleGroup/ToggleGroup.stories.d.ts +1 -1
- package/dist/components/Tooltip/Tooltip.js +266 -325
- package/dist/components/Tooltip/Tooltip.stories.d.ts +4 -4
- package/dist/components/TransactionRow/TransactionRow.stories.d.ts +21 -21
- package/dist/contexts/DraggableProvider/DraggableProvider.d.ts +0 -1
- package/dist/contexts/DraggableProvider/DraggableProvider.js +1 -1
- package/dist/contexts/SnackbarProvider/SnackbarProvider.js +1 -1
- package/dist/{dayjs.min-ClQKmc--.js → dayjs.min-BtgZiFZY.js} +14 -14
- package/dist/getReactElementRef-iorwYm2A.js +19 -0
- package/dist/{index-1UpBa69h.js → index-ew-96uBP.js} +2129 -2128
- package/dist/isFocusVisible-CPZqtjv2.js +12 -0
- package/dist/main.js +2 -2
- package/dist/{ownerDocument-By592Iy6.js → ownerDocument-CU-LCrtd.js} +1 -1
- package/dist/react-BTbo_5A3.js +526 -0
- package/dist/setRef-Bo0HEdBB.js +6 -0
- package/dist/useButton-C2E_LFJp.js +90 -0
- package/dist/useControlled-BYdyS7Pn.js +31 -0
- package/dist/useId-CK6Kn3Tn.js +21 -0
- package/dist/useList-BLW78Lq7.js +446 -0
- package/dist/utils/draggable.d.ts +2 -2
- package/package.json +5 -4
- package/dist/Button-BrEDdtHO.js +0 -130
- package/dist/Popup-Dffqo7wT.js +0 -1246
- package/dist/RadioOption-DYovqiwF.js +0 -720
- package/dist/combineHooksSlotProps-BhQ14uyD.js +0 -79
- package/dist/exactProp-SYjL19cU.js +0 -13
- package/dist/react-BvI-Sw9b.js +0 -509
- package/dist/useButton-CezPDte8.js +0 -105
- package/dist/useControlled-CCMYYdCM.js +0 -31
- package/dist/useId-BW-oWmul.js +0 -19
- package/dist/useIsFocusVisible-BH4IAdcw.js +0 -69
- package/dist/useList-nqLfZem8.js +0 -435
- package/dist/useSlotProps-CYHDC4TN.js +0 -834
- 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: "
|
|
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]
|
|
16
|
-
placement?: "bottom" | "
|
|
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: "
|
|
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]
|
|
35
|
-
placement?: "bottom" | "
|
|
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?: [
|
|
46
|
-
errorMessages?: [
|
|
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?:
|
|
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?:
|
|
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-
|
|
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:
|
|
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-
|
|
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,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-
|
|
4
|
+
import { B as s } from "../../Button-CJaBSdv1.js";
|
|
5
5
|
const n = ({ handleOnClose: t }) => /* @__PURE__ */ o(
|
|
6
6
|
s,
|
|
7
7
|
{
|