@pismo/marola 2.1.36 → 2.1.38
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/DatePicker.module-BdYkgv4A.js +45 -0
- package/dist/SelectButton-C7KNiPyJ.js +58 -0
- package/dist/assets/BankingCard.css +1 -1
- package/dist/assets/DatePicker.css +1 -1
- package/dist/assets/DoubleAutocomplete.css +1 -0
- package/dist/assets/DoubleInput.css +1 -1
- package/dist/assets/Input.css +1 -1
- package/dist/assets/SelectButton.css +1 -1
- package/dist/assets/Stepper.css +1 -1
- package/dist/assets/Toggle.css +1 -1
- package/dist/components/BankingCard/BankingCard.d.ts +3 -1
- package/dist/components/BankingCard/BankingCard.js +57 -33
- package/dist/components/BankingCard/BankingCard.stories.d.ts +1 -1
- package/dist/components/DatePicker/DatePicker.d.ts +2 -0
- package/dist/components/DatePicker/DatePicker.js +472 -464
- package/dist/components/DatePicker/DatePicker.stories.d.ts +4 -0
- package/dist/components/DatePicker/renderCalendarDays.js +1 -1
- package/dist/components/DatePicker/renderDualCalendarHeader.js +1 -1
- package/dist/components/DatePicker/renderHeader.js +1 -1
- package/dist/components/DatePicker/renderNavigatorInput.js +1 -1
- package/dist/components/DatePicker/renderPeriodSelection.js +1 -1
- package/dist/components/DoubleAutocomplete/DoubleAutocomplete.d.ts +23 -0
- package/dist/components/DoubleAutocomplete/DoubleAutocomplete.js +94 -0
- package/dist/components/DoubleAutocomplete/DoubleAutocomplete.stories.d.ts +29 -0
- package/dist/components/DoubleInput/DoubleInput.js +16 -16
- package/dist/components/DoubleInput/DoubleInput.stories.d.ts +1 -0
- package/dist/components/Input/Input.js +144 -144
- package/dist/components/Select/Select.js +1 -1
- package/dist/components/Select/SelectButton.js +1 -1
- package/dist/components/Stepper/Stepper.js +12 -12
- package/dist/components/Toggle/Toggle.js +46 -46
- package/dist/components/Toggle/Toggle.stories.d.ts +2 -1
- package/dist/main.d.ts +1 -0
- package/dist/main.js +124 -122
- package/package.json +1 -1
- package/dist/DatePicker.module-gd1PqICl.js +0 -45
- package/dist/SelectButton-k61YYjLu.js +0 -58
|
@@ -18,6 +18,7 @@ declare const meta: {
|
|
|
18
18
|
className?: string | undefined;
|
|
19
19
|
'data-testid'?: string | undefined;
|
|
20
20
|
error?: boolean | undefined;
|
|
21
|
+
disabled?: boolean | undefined;
|
|
21
22
|
mode: "single";
|
|
22
23
|
value?: Date | undefined;
|
|
23
24
|
placeholder?: string | undefined;
|
|
@@ -36,6 +37,7 @@ declare const meta: {
|
|
|
36
37
|
className?: string | undefined;
|
|
37
38
|
'data-testid'?: string | undefined;
|
|
38
39
|
error?: boolean | undefined;
|
|
40
|
+
disabled?: boolean | undefined;
|
|
39
41
|
mode: "range";
|
|
40
42
|
values?: [Date, Date] | undefined;
|
|
41
43
|
placeholders?: [string, string] | undefined;
|
|
@@ -50,10 +52,12 @@ export declare const Single: Story;
|
|
|
50
52
|
export declare const SingleWithValue: Story;
|
|
51
53
|
export declare const SingleWithInfoMessage: Story;
|
|
52
54
|
export declare const SingleWithErrorMessage: Story;
|
|
55
|
+
export declare const SingleDisabled: Story;
|
|
53
56
|
export declare const RangePicker: Story;
|
|
54
57
|
export declare const RangeWithValues: Story;
|
|
55
58
|
export declare const RangeWithInfoMessages: Story;
|
|
56
59
|
export declare const RangeWithErrorMessages: Story;
|
|
60
|
+
export declare const RangeDisabled: Story;
|
|
57
61
|
export declare const RangeWithLimit: Story;
|
|
58
62
|
export declare const MonthView: Story;
|
|
59
63
|
export declare const YearView: Story;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as d, jsxs as x } from "react/jsx-runtime";
|
|
2
2
|
import { d as E } from "../../dayjs.min-ClQKmc--.js";
|
|
3
|
-
import { s as i } from "../../DatePicker.module-
|
|
3
|
+
import { s as i } from "../../DatePicker.module-BdYkgv4A.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) => {
|
|
6
6
|
if (!n[0] || !s) return !1;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs as s, jsx as a } from "react/jsx-runtime";
|
|
2
2
|
import { Icon as o } from "../Icon/Icon.js";
|
|
3
|
-
import { s as t } from "../../DatePicker.module-
|
|
3
|
+
import { s as t } from "../../DatePicker.module-BdYkgv4A.js";
|
|
4
4
|
import { getPreviousMonth as d, getNextMonth as n } from "./dateUtils.js";
|
|
5
5
|
const v = ({ currentMonth: e, locale: r, setCurrentMonth: i }) => /* @__PURE__ */ s("div", { className: t["month-header-row"], "data-testid": "dual-calendar-header", children: [
|
|
6
6
|
/* @__PURE__ */ a(
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs as i, jsx as e, Fragment as n } from "react/jsx-runtime";
|
|
2
2
|
import { Icon as o } from "../Icon/Icon.js";
|
|
3
|
-
import { s as t } from "../../DatePicker.module-
|
|
3
|
+
import { s as t } from "../../DatePicker.module-BdYkgv4A.js";
|
|
4
4
|
const k = ({
|
|
5
5
|
currentViewMode: r,
|
|
6
6
|
currentMonth: a,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs as f, jsx as n } from "react/jsx-runtime";
|
|
2
2
|
import { Icon as s } from "../Icon/Icon.js";
|
|
3
|
-
import { s as i } from "../../DatePicker.module-
|
|
3
|
+
import { s as i } from "../../DatePicker.module-BdYkgv4A.js";
|
|
4
4
|
const p = ({
|
|
5
5
|
navigateToPrevious: b,
|
|
6
6
|
navigateToNext: u,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as m } from "react/jsx-runtime";
|
|
2
2
|
import { d as Y } from "../../dayjs.min-ClQKmc--.js";
|
|
3
|
-
import { s } from "../../DatePicker.module-
|
|
3
|
+
import { s } from "../../DatePicker.module-BdYkgv4A.js";
|
|
4
4
|
const T = ({
|
|
5
5
|
currentViewMode: d,
|
|
6
6
|
currentMonth: i,
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { CSSProperties } from 'react';
|
|
2
|
+
import { AutocompleteProps } from '../Autocomplete/Autocomplete';
|
|
3
|
+
export type DoubleAutocompleteProps<T> = {
|
|
4
|
+
/** Element to be used a separator between inputs */
|
|
5
|
+
separator: React.ReactNode;
|
|
6
|
+
/** Styles to be applied to separator element */
|
|
7
|
+
separatorStyles?: CSSProperties;
|
|
8
|
+
/** Use label inside of autocomplete container **/
|
|
9
|
+
useLabelInside?: boolean;
|
|
10
|
+
/** Props to be used in left input element */
|
|
11
|
+
leftAutocompleteProps: AutocompleteProps<T>;
|
|
12
|
+
/** Props to be used in right input element */
|
|
13
|
+
rightAutocompleteProps: AutocompleteProps<T>;
|
|
14
|
+
/** Control the left element width */
|
|
15
|
+
leftWidth?: string;
|
|
16
|
+
/** Control the right element width */
|
|
17
|
+
rightWidth?: string;
|
|
18
|
+
/** CSS classes to be applied on the container element */
|
|
19
|
+
className?: string;
|
|
20
|
+
/** Id to be applied as `data-testid` on the container element */
|
|
21
|
+
'data-testid'?: string;
|
|
22
|
+
};
|
|
23
|
+
export declare const DoubleAutocomplete: <T extends string | object>({ separator, useLabelInside, leftAutocompleteProps, rightAutocompleteProps, leftWidth, rightWidth, separatorStyles, className, "data-testid": dataTestId, }: DoubleAutocompleteProps<T>) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
import { jsxs as b, jsx as a } from "react/jsx-runtime";
|
|
2
|
+
import { c as l } from "../../clsx-OuTLNxxd.js";
|
|
3
|
+
import "../../utils/iconsList.js";
|
|
4
|
+
import { Text as r } from "../Typography/Typography.js";
|
|
5
|
+
import { Autocomplete as c } from "../Autocomplete/Autocomplete.js";
|
|
6
|
+
import "../Avatar/Avatar.js";
|
|
7
|
+
import "react";
|
|
8
|
+
import "../Button/Button.js";
|
|
9
|
+
import "../../Toggle-DcZTfLrC.js";
|
|
10
|
+
import "../Dialog/Dialog.js";
|
|
11
|
+
import "../DatePicker/DatePicker.js";
|
|
12
|
+
import "../Input/Input.js";
|
|
13
|
+
import "../../index-1UpBa69h.js";
|
|
14
|
+
import "../Draggable/useDraggable.js";
|
|
15
|
+
import "../IconButton/IconButton.js";
|
|
16
|
+
import "../InputSearch/InputSearch.js";
|
|
17
|
+
import "../Select/Select.js";
|
|
18
|
+
import "../Popover/Popover.js";
|
|
19
|
+
import "../Table/Table.js";
|
|
20
|
+
import "../Tabs/Tabs.js";
|
|
21
|
+
import "../../Group-DJz1rK2n.js";
|
|
22
|
+
import "../../contexts/SnackbarProvider/SnackbarProvider.js";
|
|
23
|
+
import '../../assets/DoubleAutocomplete.css';const e = {
|
|
24
|
+
"double-autocomplete-container": "_double-autocomplete-container_183ia_1",
|
|
25
|
+
"double-autocomplete-container__separator": "_double-autocomplete-container__separator_183ia_16",
|
|
26
|
+
"double-autocomplete": "_double-autocomplete_183ia_1",
|
|
27
|
+
"double-autocomplete__input-wrapper": "_double-autocomplete__input-wrapper_183ia_22",
|
|
28
|
+
"double-autocomplete__label-inside": "_double-autocomplete__label-inside_183ia_25",
|
|
29
|
+
"double-autocomplete-container__left-autocomplete": "_double-autocomplete-container__left-autocomplete_183ia_33",
|
|
30
|
+
"double-autocomplete-container__right-autocomplete": "_double-autocomplete-container__right-autocomplete_183ia_38"
|
|
31
|
+
}, J = ({
|
|
32
|
+
separator: u,
|
|
33
|
+
useLabelInside: p = !1,
|
|
34
|
+
leftAutocompleteProps: o,
|
|
35
|
+
rightAutocompleteProps: t,
|
|
36
|
+
leftWidth: m = "auto",
|
|
37
|
+
rightWidth: i = "auto",
|
|
38
|
+
separatorStyles: _,
|
|
39
|
+
className: n,
|
|
40
|
+
"data-testid": d
|
|
41
|
+
}) => /* @__PURE__ */ b("div", { className: l(e["double-autocomplete-container"], n), "data-testid": d, children: [
|
|
42
|
+
/* @__PURE__ */ a(
|
|
43
|
+
"div",
|
|
44
|
+
{
|
|
45
|
+
style: { minWidth: m, maxWidth: m },
|
|
46
|
+
className: e["double-autocomplete-container__left-autocomplete"],
|
|
47
|
+
children: /* @__PURE__ */ a(
|
|
48
|
+
c,
|
|
49
|
+
{
|
|
50
|
+
...o,
|
|
51
|
+
label: p ? void 0 : o.label,
|
|
52
|
+
leftIcon: p ? /* @__PURE__ */ a(r, { className: e["double-autocomplete__label-inside"], element: "label", children: o.label }) : o.leftIcon,
|
|
53
|
+
classNameWrapper: l(o.classNameWrapper, e["double-autocomplete"]),
|
|
54
|
+
classNameInputWrapper: l(
|
|
55
|
+
o.classNameInputWrapper,
|
|
56
|
+
e["double-autocomplete__input-wrapper"]
|
|
57
|
+
)
|
|
58
|
+
}
|
|
59
|
+
)
|
|
60
|
+
}
|
|
61
|
+
),
|
|
62
|
+
/* @__PURE__ */ a(
|
|
63
|
+
"div",
|
|
64
|
+
{
|
|
65
|
+
className: e["double-autocomplete-container__separator"],
|
|
66
|
+
id: "double-autocomplete-separator",
|
|
67
|
+
style: _,
|
|
68
|
+
children: u
|
|
69
|
+
}
|
|
70
|
+
),
|
|
71
|
+
/* @__PURE__ */ a(
|
|
72
|
+
"div",
|
|
73
|
+
{
|
|
74
|
+
style: { minWidth: i, maxWidth: i },
|
|
75
|
+
className: e["double-autocomplete-container__right-autocomplete"],
|
|
76
|
+
children: /* @__PURE__ */ a(
|
|
77
|
+
c,
|
|
78
|
+
{
|
|
79
|
+
...t,
|
|
80
|
+
label: p ? void 0 : t.label,
|
|
81
|
+
leftIcon: p ? /* @__PURE__ */ a(r, { className: e["double-autocomplete__label-inside"], element: "label", children: t.label }) : t.leftIcon,
|
|
82
|
+
classNameWrapper: l(t.classNameWrapper, e["double-autocomplete"]),
|
|
83
|
+
classNameInputWrapper: l(
|
|
84
|
+
t.classNameInputWrapper,
|
|
85
|
+
e["double-autocomplete__input-wrapper"]
|
|
86
|
+
)
|
|
87
|
+
}
|
|
88
|
+
)
|
|
89
|
+
}
|
|
90
|
+
)
|
|
91
|
+
] });
|
|
92
|
+
export {
|
|
93
|
+
J as DoubleAutocomplete
|
|
94
|
+
};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { StoryObj } from '@storybook/react';
|
|
2
|
+
import { AutocompleteProps } from '../../main';
|
|
3
|
+
import { DoubleAutocompleteProps } from './DoubleAutocomplete';
|
|
4
|
+
type Option = {
|
|
5
|
+
label: string;
|
|
6
|
+
value: string;
|
|
7
|
+
};
|
|
8
|
+
declare const meta: {
|
|
9
|
+
title: string;
|
|
10
|
+
component: ({ separator, useLabelInside, leftAutocompleteProps, rightAutocompleteProps, leftWidth, rightWidth, separatorStyles, className, "data-testid": dataTestId, }: DoubleAutocompleteProps<Option>) => import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
tags: string[];
|
|
12
|
+
decorators: ((Story: import('@storybook/core/csf').PartialStoryFn<import('@storybook/react').ReactRenderer, {
|
|
13
|
+
separator: import('react').ReactNode;
|
|
14
|
+
separatorStyles?: import('react').CSSProperties | undefined;
|
|
15
|
+
useLabelInside?: boolean | undefined;
|
|
16
|
+
leftAutocompleteProps: AutocompleteProps<Option>;
|
|
17
|
+
rightAutocompleteProps: AutocompleteProps<Option>;
|
|
18
|
+
leftWidth?: string | undefined;
|
|
19
|
+
rightWidth?: string | undefined;
|
|
20
|
+
className?: string | undefined;
|
|
21
|
+
'data-testid'?: string | undefined;
|
|
22
|
+
}>) => import("react/jsx-runtime").JSX.Element)[];
|
|
23
|
+
};
|
|
24
|
+
export default meta;
|
|
25
|
+
type Story = StoryObj<typeof meta>;
|
|
26
|
+
export declare const Simple: Story;
|
|
27
|
+
export declare const WithLabelsOutsideContainer: Story;
|
|
28
|
+
export declare const WithLabelsInsideContainer: Story;
|
|
29
|
+
export declare const WithErrorMessages: Story;
|
|
@@ -1,36 +1,36 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { c as
|
|
3
|
-
import { Input as
|
|
1
|
+
import { jsxs as d, jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import { c as s } from "../../clsx-OuTLNxxd.js";
|
|
3
|
+
import { Input as o } from "../Input/Input.js";
|
|
4
4
|
import '../../assets/DoubleInput.css';const n = {
|
|
5
|
-
"double-input-container": "_double-input-
|
|
6
|
-
"double-input-container__left-input": "_double-input-container__left-
|
|
7
|
-
"double-input-container__right-input": "_double-input-container__right-
|
|
8
|
-
"double-input-container__separator": "_double-input-
|
|
5
|
+
"double-input-container": "_double-input-container_13r82_2",
|
|
6
|
+
"double-input-container__left-input": "_double-input-container__left-input_13r82_19",
|
|
7
|
+
"double-input-container__right-input": "_double-input-container__right-input_13r82_20",
|
|
8
|
+
"double-input-container__separator": "_double-input-container__separator_13r82_23"
|
|
9
9
|
}, h = ({
|
|
10
|
-
separator:
|
|
10
|
+
separator: r,
|
|
11
11
|
leftInputProps: u,
|
|
12
|
-
rightInputProps:
|
|
12
|
+
rightInputProps: a,
|
|
13
13
|
leftWidth: i = "auto",
|
|
14
14
|
rightWidth: e = "auto",
|
|
15
|
-
separatorStyles:
|
|
16
|
-
className:
|
|
17
|
-
"data-testid":
|
|
18
|
-
}) => /* @__PURE__ */
|
|
15
|
+
separatorStyles: _,
|
|
16
|
+
className: l,
|
|
17
|
+
"data-testid": p
|
|
18
|
+
}) => /* @__PURE__ */ d("div", { className: s(n["double-input-container"], l), "data-testid": p, children: [
|
|
19
19
|
/* @__PURE__ */ t(
|
|
20
20
|
"div",
|
|
21
21
|
{
|
|
22
22
|
style: { minWidth: i, maxWidth: i },
|
|
23
23
|
className: n["double-input-container__left-input"],
|
|
24
|
-
children: /* @__PURE__ */ t(
|
|
24
|
+
children: /* @__PURE__ */ t(o, { ...u })
|
|
25
25
|
}
|
|
26
26
|
),
|
|
27
|
-
/* @__PURE__ */ t("div", { className: n["double-input-container__separator"], id: "double-input-separator", style:
|
|
27
|
+
/* @__PURE__ */ t("div", { className: n["double-input-container__separator"], id: "double-input-separator", style: _, children: r }),
|
|
28
28
|
/* @__PURE__ */ t(
|
|
29
29
|
"div",
|
|
30
30
|
{
|
|
31
31
|
style: { minWidth: e, maxWidth: e },
|
|
32
32
|
className: n["double-input-container__right-input"],
|
|
33
|
-
children: /* @__PURE__ */ t(
|
|
33
|
+
children: /* @__PURE__ */ t(o, { ...a })
|
|
34
34
|
}
|
|
35
35
|
)
|
|
36
36
|
] });
|