@pismo/marola 2.1.30 → 2.1.32

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.
@@ -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-CFu_FsW6.js";
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-CFu_FsW6.js";
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-CFu_FsW6.js";
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-CFu_FsW6.js";
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-CFu_FsW6.js";
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 d } from "../../clsx-OuTLNxxd.js";
3
- import { Input as r } from "../Input/Input.js";
4
- import '../../assets/DoubleInput.css';const m = "_container_49u1c_1", _ = "_separator_49u1c_28", a = {
5
- container: m,
6
- "left-input": "_left-input_49u1c_16",
7
- "right-input": "_right-input_49u1c_22",
8
- separator: _
9
- }, v = ({
10
- separator: s,
11
- leftInputProps: n,
12
- rightInputProps: o,
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: c,
16
- className: p,
17
- "data-testid": u
18
- }) => /* @__PURE__ */ l("div", { className: d(a.container, p), "data-testid": u, children: [
19
- /* @__PURE__ */ t("div", { style: { minWidth: i, maxWidth: i }, className: a["left-input"], children: /* @__PURE__ */ t(r, { ...n }) }),
20
- /* @__PURE__ */ t("div", { className: a.separator, id: "double-input-separator", style: c, children: s }),
21
- /* @__PURE__ */ t("div", { style: { minWidth: e, maxWidth: e }, className: a["right-input"], children: /* @__PURE__ */ t(r, { ...o }) })
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
- v as DoubleInput
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;
@@ -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 expanadable row */
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,7 +1,7 @@
1
1
  {
2
2
  "name": "@pismo/marola",
3
3
  "description": "CDX tribe component library",
4
- "version": "2.1.30",
4
+ "version": "2.1.32",
5
5
  "type": "module",
6
6
  "main": "dist/main.js",
7
7
  "types": "dist/main.d.ts",
@@ -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
- };