@pismo/marola 2.1.36 → 2.1.37

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.
@@ -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-gd1PqICl.js";
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-gd1PqICl.js";
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-gd1PqICl.js";
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-gd1PqICl.js";
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-gd1PqICl.js";
3
+ import { s } from "../../DatePicker.module-BdYkgv4A.js";
4
4
  const T = ({
5
5
  currentViewMode: d,
6
6
  currentMonth: i,
@@ -1,36 +1,36 @@
1
- import { jsxs as l, jsx as t } from "react/jsx-runtime";
2
- import { c as p } from "../../clsx-OuTLNxxd.js";
3
- import { Input as a } from "../Input/Input.js";
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-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"
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: o,
10
+ separator: r,
11
11
  leftInputProps: u,
12
- rightInputProps: r,
12
+ rightInputProps: a,
13
13
  leftWidth: i = "auto",
14
14
  rightWidth: e = "auto",
15
- separatorStyles: d,
16
- className: s,
17
- "data-testid": _
18
- }) => /* @__PURE__ */ l("div", { className: p(n["double-input-container"], s), "data-testid": _, children: [
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(a, { ...u })
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: d, children: o }),
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(a, { ...r })
33
+ children: /* @__PURE__ */ t(o, { ...a })
34
34
  }
35
35
  )
36
36
  ] });
@@ -22,3 +22,4 @@ export declare const WithIconAsSeparator: Story;
22
22
  export declare const WithInfoMessages: Story;
23
23
  export declare const WithErrorMessages: Story;
24
24
  export declare const WithErrorState: Story;
25
+ export declare const Disabled: Story;