@pismo/marola 2.1.31 → 2.1.33
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-gd1PqICl.js +45 -0
- package/dist/assets/DatePicker.css +1 -1
- package/dist/assets/DoubleInput.css +1 -1
- package/dist/assets/Stepper.css +1 -1
- package/dist/components/DatePicker/DatePicker.d.ts +11 -0
- package/dist/components/DatePicker/DatePicker.js +617 -607
- package/dist/components/DatePicker/DatePicker.stories.d.ts +10 -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/DoubleInput/DoubleInput.js +33 -19
- package/dist/components/DoubleInput/DoubleInput.stories.d.ts +3 -0
- package/dist/components/Stepper/Stepper.d.ts +9 -3
- package/dist/components/Stepper/Stepper.js +26 -22
- package/dist/components/Stepper/Stepper.stories.d.ts +1 -1
- package/dist/components/Table/Table.d.ts +1 -1
- package/package.json +1 -1
- package/dist/DatePicker.module-CFu_FsW6.js +0 -45
|
@@ -17,9 +17,12 @@ declare const meta: {
|
|
|
17
17
|
navigatorInput?: boolean | undefined;
|
|
18
18
|
className?: string | undefined;
|
|
19
19
|
'data-testid'?: string | undefined;
|
|
20
|
+
error?: boolean | undefined;
|
|
20
21
|
mode: "single";
|
|
21
22
|
value?: Date | undefined;
|
|
22
23
|
placeholder?: string | undefined;
|
|
24
|
+
infoMessage?: import('react').ReactNode;
|
|
25
|
+
errorMessage?: import('react').ReactNode;
|
|
23
26
|
} | {
|
|
24
27
|
viewMode: "month" | "day" | "year";
|
|
25
28
|
locale?: string | undefined;
|
|
@@ -32,18 +35,25 @@ declare const meta: {
|
|
|
32
35
|
navigatorInput?: boolean | undefined;
|
|
33
36
|
className?: string | undefined;
|
|
34
37
|
'data-testid'?: string | undefined;
|
|
38
|
+
error?: boolean | undefined;
|
|
35
39
|
mode: "range";
|
|
36
40
|
values?: [Date, Date] | undefined;
|
|
37
41
|
placeholders?: [string, string] | undefined;
|
|
38
42
|
limit?: number | undefined;
|
|
43
|
+
infoMessages?: [import('react').ReactNode?, import('react').ReactNode?] | undefined;
|
|
44
|
+
errorMessages?: [import('react').ReactNode?, import('react').ReactNode?] | undefined;
|
|
39
45
|
}>) => import("react/jsx-runtime").JSX.Element)[];
|
|
40
46
|
};
|
|
41
47
|
export default meta;
|
|
42
48
|
type Story = StoryObj<DatePickerProps>;
|
|
43
49
|
export declare const Single: Story;
|
|
44
50
|
export declare const SingleWithValue: Story;
|
|
51
|
+
export declare const SingleWithInfoMessage: Story;
|
|
52
|
+
export declare const SingleWithErrorMessage: Story;
|
|
45
53
|
export declare const RangePicker: Story;
|
|
46
54
|
export declare const RangeWithValues: Story;
|
|
55
|
+
export declare const RangeWithInfoMessages: Story;
|
|
56
|
+
export declare const RangeWithErrorMessages: Story;
|
|
47
57
|
export declare const RangeWithLimit: Story;
|
|
48
58
|
export declare const MonthView: Story;
|
|
49
59
|
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-gd1PqICl.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-gd1PqICl.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-gd1PqICl.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-gd1PqICl.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-gd1PqICl.js";
|
|
4
4
|
const T = ({
|
|
5
5
|
currentViewMode: d,
|
|
6
6
|
currentMonth: i,
|
|
@@ -1,25 +1,39 @@
|
|
|
1
1
|
import { jsxs as l, jsx as t } from "react/jsx-runtime";
|
|
2
|
-
import { c as
|
|
3
|
-
import { Input as
|
|
4
|
-
import '../../assets/DoubleInput.css';const
|
|
5
|
-
container:
|
|
6
|
-
"
|
|
7
|
-
"
|
|
8
|
-
|
|
9
|
-
},
|
|
10
|
-
separator:
|
|
11
|
-
leftInputProps:
|
|
12
|
-
rightInputProps:
|
|
2
|
+
import { c as p } from "../../clsx-OuTLNxxd.js";
|
|
3
|
+
import { Input as a } from "../Input/Input.js";
|
|
4
|
+
import '../../assets/DoubleInput.css';const n = {
|
|
5
|
+
"double-input-container": "_double-input-container_1sagd_1",
|
|
6
|
+
"double-input-container__left-input": "_double-input-container__left-input_1sagd_18",
|
|
7
|
+
"double-input-container__right-input": "_double-input-container__right-input_1sagd_19",
|
|
8
|
+
"double-input-container__separator": "_double-input-container__separator_1sagd_22"
|
|
9
|
+
}, h = ({
|
|
10
|
+
separator: o,
|
|
11
|
+
leftInputProps: u,
|
|
12
|
+
rightInputProps: r,
|
|
13
13
|
leftWidth: i = "auto",
|
|
14
14
|
rightWidth: e = "auto",
|
|
15
|
-
separatorStyles:
|
|
16
|
-
className:
|
|
17
|
-
"data-testid":
|
|
18
|
-
}) => /* @__PURE__ */ l("div", { className:
|
|
19
|
-
/* @__PURE__ */ t(
|
|
20
|
-
|
|
21
|
-
|
|
15
|
+
separatorStyles: d,
|
|
16
|
+
className: s,
|
|
17
|
+
"data-testid": _
|
|
18
|
+
}) => /* @__PURE__ */ l("div", { className: p(n["double-input-container"], s), "data-testid": _, children: [
|
|
19
|
+
/* @__PURE__ */ t(
|
|
20
|
+
"div",
|
|
21
|
+
{
|
|
22
|
+
style: { minWidth: i, maxWidth: i },
|
|
23
|
+
className: n["double-input-container__left-input"],
|
|
24
|
+
children: /* @__PURE__ */ t(a, { ...u })
|
|
25
|
+
}
|
|
26
|
+
),
|
|
27
|
+
/* @__PURE__ */ t("div", { className: n["double-input-container__separator"], id: "double-input-separator", style: d, children: o }),
|
|
28
|
+
/* @__PURE__ */ t(
|
|
29
|
+
"div",
|
|
30
|
+
{
|
|
31
|
+
style: { minWidth: e, maxWidth: e },
|
|
32
|
+
className: n["double-input-container__right-input"],
|
|
33
|
+
children: /* @__PURE__ */ t(a, { ...r })
|
|
34
|
+
}
|
|
35
|
+
)
|
|
22
36
|
] });
|
|
23
37
|
export {
|
|
24
|
-
|
|
38
|
+
h as DoubleInput
|
|
25
39
|
};
|
|
@@ -19,3 +19,6 @@ type Story = StoryObj<typeof meta>;
|
|
|
19
19
|
export declare const Simple: Story;
|
|
20
20
|
export declare const WithLabels: Story;
|
|
21
21
|
export declare const WithIconAsSeparator: Story;
|
|
22
|
+
export declare const WithInfoMessages: Story;
|
|
23
|
+
export declare const WithErrorMessages: Story;
|
|
24
|
+
export declare const WithErrorState: Story;
|
|
@@ -8,9 +8,15 @@ export type StepperProps = {
|
|
|
8
8
|
className?: string;
|
|
9
9
|
/** CSS classes to be applied on the item element */
|
|
10
10
|
classNameItem?: string;
|
|
11
|
-
/**
|
|
11
|
+
/**
|
|
12
|
+
* CSS classes to be applied on the counter element
|
|
13
|
+
* @deprecated This property is deprecated and will be removed in a future version
|
|
14
|
+
*/
|
|
12
15
|
classNameCounter?: string;
|
|
13
|
-
/**
|
|
16
|
+
/**
|
|
17
|
+
* CSS classes to be applied on the name element
|
|
18
|
+
* @deprecated This property is deprecated and will be removed in a future version
|
|
19
|
+
*/
|
|
14
20
|
classNameName?: string;
|
|
15
21
|
/** Id to be applied as `data-testid` on the container element */
|
|
16
22
|
'data-testid'?: string;
|
|
@@ -21,5 +27,5 @@ export type StepperProps = {
|
|
|
21
27
|
/** Id to be applied as `data-testid` on the name element */
|
|
22
28
|
'data-testid-name'?: string;
|
|
23
29
|
};
|
|
24
|
-
declare const Stepper: ({ currentStep, steps, classNameItem,
|
|
30
|
+
declare const Stepper: ({ currentStep, steps, classNameItem, ...rest }: StepperProps) => import("react/jsx-runtime").JSX.Element;
|
|
25
31
|
export { Stepper };
|
|
@@ -1,32 +1,36 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { c as
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
"item--active": "_item--
|
|
8
|
-
"item
|
|
9
|
-
|
|
10
|
-
},
|
|
11
|
-
const
|
|
12
|
-
return /* @__PURE__ */
|
|
1
|
+
import { jsx as c, jsxs as m } from "react/jsx-runtime";
|
|
2
|
+
import { c as o } from "../../clsx-OuTLNxxd.js";
|
|
3
|
+
import { Icon as n } from "../Icon/Icon.js";
|
|
4
|
+
import '../../assets/Stepper.css';const _ = "_stepper_1c35a_43", v = "_item_1c35a_43", e = {
|
|
5
|
+
stepper: _,
|
|
6
|
+
item: v,
|
|
7
|
+
"item--active": "_item--active_1c35a_65",
|
|
8
|
+
"item-icon": "_item-icon_1c35a_117",
|
|
9
|
+
"item--completed": "_item--completed_1c35a_121"
|
|
10
|
+
}, y = ({ currentStep: a = 0, steps: d, classNameItem: r, ...t }) => /* @__PURE__ */ c("div", { className: o(e.stepper, t.className), "data-testid": t["data-testid"], children: d.map((p, i) => {
|
|
11
|
+
const s = i < a, l = i === a;
|
|
12
|
+
return /* @__PURE__ */ m(
|
|
13
13
|
"div",
|
|
14
14
|
{
|
|
15
|
-
className:
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
15
|
+
className: o(
|
|
16
|
+
e.item,
|
|
17
|
+
s && e["item--completed"],
|
|
18
|
+
l && e["item--active"],
|
|
19
|
+
r
|
|
20
20
|
),
|
|
21
|
-
"data-testid":
|
|
21
|
+
"data-testid": t["data-testid-item"],
|
|
22
22
|
children: [
|
|
23
|
-
/* @__PURE__ */
|
|
24
|
-
/* @__PURE__ */
|
|
23
|
+
s && /* @__PURE__ */ c("span", { className: e["item-icon"], children: /* @__PURE__ */ c(n, { icon: "circle-check", color: "var(--colors-brand-primary-color-primary)" }) }),
|
|
24
|
+
/* @__PURE__ */ m("div", { "data-testid": t["data-testid-counter"], children: [
|
|
25
|
+
i + 1,
|
|
26
|
+
"."
|
|
27
|
+
] }),
|
|
28
|
+
/* @__PURE__ */ c("div", { "data-testid": t["data-testid-name"], children: p })
|
|
25
29
|
]
|
|
26
30
|
},
|
|
27
|
-
|
|
31
|
+
i
|
|
28
32
|
);
|
|
29
33
|
}) });
|
|
30
34
|
export {
|
|
31
|
-
|
|
35
|
+
y as Stepper
|
|
32
36
|
};
|
|
@@ -2,7 +2,7 @@ import { StoryObj } from '@storybook/react';
|
|
|
2
2
|
import { StepperProps } from './Stepper';
|
|
3
3
|
declare const meta: {
|
|
4
4
|
title: string;
|
|
5
|
-
component: ({ currentStep, steps, classNameItem,
|
|
5
|
+
component: ({ currentStep, steps, classNameItem, ...rest }: StepperProps) => import("react/jsx-runtime").JSX.Element;
|
|
6
6
|
tags: string[];
|
|
7
7
|
parameters: {
|
|
8
8
|
layout: string;
|
|
@@ -23,7 +23,7 @@ type AlignProps = {
|
|
|
23
23
|
type ExpandableProps = {
|
|
24
24
|
/** Whether the row should be expandable */
|
|
25
25
|
expandable?: boolean;
|
|
26
|
-
/** Text label for the
|
|
26
|
+
/** Text label for the expandable row */
|
|
27
27
|
expandLabel?: string;
|
|
28
28
|
expandedRows?: React.ReactNode[];
|
|
29
29
|
/** Initially expanded state */
|
package/package.json
CHANGED
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import './assets/DatePicker.css';const e = "_header_2uhz6_146", a = "_calendar_2uhz6_169", _ = "_weekdayNames_2uhz6_174", t = "_days_2uhz6_175", n = "_weekdayName_2uhz6_174", d = "_day_2uhz6_175", r = "_disabled_2uhz6_197", o = "_selected_2uhz6_197", h = "_faded_2uhz6_206", u = "_months_2uhz6_244", c = "_years_2uhz6_245", s = "_month_2uhz6_112", z = "_year_2uhz6_245", i = "_rotate_2uhz6_325", y = {
|
|
2
|
-
"datepicker-wrapper": "_datepicker-wrapper_2uhz6_79",
|
|
3
|
-
"datepicker-input-container": "_datepicker-input-container_2uhz6_88",
|
|
4
|
-
"datepicker-container": "_datepicker-container_2uhz6_96",
|
|
5
|
-
"range-mode": "_range-mode_2uhz6_109",
|
|
6
|
-
"month-header": "_month-header_2uhz6_112",
|
|
7
|
-
"month-header-row": "_month-header-row_2uhz6_123",
|
|
8
|
-
"nav-button": "_nav-button_2uhz6_135",
|
|
9
|
-
header: e,
|
|
10
|
-
calendar: a,
|
|
11
|
-
weekdayNames: _,
|
|
12
|
-
days: t,
|
|
13
|
-
weekdayName: n,
|
|
14
|
-
day: d,
|
|
15
|
-
disabled: r,
|
|
16
|
-
selected: o,
|
|
17
|
-
"range-start": "_range-start_2uhz6_197",
|
|
18
|
-
"range-end": "_range-end_2uhz6_197",
|
|
19
|
-
"range-selected": "_range-selected_2uhz6_197",
|
|
20
|
-
faded: h,
|
|
21
|
-
months: u,
|
|
22
|
-
years: c,
|
|
23
|
-
month: s,
|
|
24
|
-
year: z,
|
|
25
|
-
"today-footer": "_today-footer_2uhz6_284",
|
|
26
|
-
"today-button": "_today-button_2uhz6_290",
|
|
27
|
-
rotate: i,
|
|
28
|
-
"current-day": "_current-day_2uhz6_329",
|
|
29
|
-
"hovered-range": "_hovered-range_2uhz6_334",
|
|
30
|
-
"hovered-date": "_hovered-date_2uhz6_339",
|
|
31
|
-
"would-be-end-date": "_would-be-end-date_2uhz6_345",
|
|
32
|
-
"would-be-start-date": "_would-be-start-date_2uhz6_351",
|
|
33
|
-
"dual-calendar-container": "_dual-calendar-container_2uhz6_358",
|
|
34
|
-
"navigator-input": "_navigator-input_2uhz6_369",
|
|
35
|
-
"nav-month-button": "_nav-month-button_2uhz6_398",
|
|
36
|
-
"nav-year-button": "_nav-year-button_2uhz6_399",
|
|
37
|
-
"auto-width": "_auto-width_2uhz6_408",
|
|
38
|
-
"month-selector": "_month-selector_2uhz6_413",
|
|
39
|
-
"year-selector": "_year-selector_2uhz6_414",
|
|
40
|
-
"nav-calendar-static": "_nav-calendar-static_2uhz6_446",
|
|
41
|
-
"datepicker-buttons-container": "_datepicker-buttons-container_2uhz6_465"
|
|
42
|
-
};
|
|
43
|
-
export {
|
|
44
|
-
y as s
|
|
45
|
-
};
|