@amateescu/portal-ui-components 0.0.43 → 0.0.44
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-BPIbs5cw.js → Button-Bx3LbSbV.js} +3 -3
- package/dist/{ButtonBase-Cj889DO9.js → ButtonBase-DV7q7wxh.js} +1 -1
- package/dist/{CheckBox-B3iprBDG.js → CheckBox-YBX2j1qt.js} +1 -1
- package/dist/{CircularProgress-BjeN7Xv-.js → CircularProgress-BXi3nXc9.js} +1 -1
- package/dist/{Clear-BzF0WMi7.js → Clear-Bz9hw2Wj.js} +1 -1
- package/dist/DefaultPropsProvider-ByENA_w0.js +2808 -0
- package/dist/{Search-BxOqluZm.js → Search-D_9Ptbky.js} +1 -1
- package/dist/assets/PassportDateRangeWrapper.css +1 -0
- package/dist/assets/PassportDatesFilter.css +1 -0
- package/dist/components/LoadingAnimation/LoadingAnimation.js +4 -4
- package/dist/components/Login/Login.js +1 -1
- package/dist/components/PassportButton/PassportButton.js +1 -1
- package/dist/components/PassportDatePicker/PassportDatePicker.js +5 -5
- package/dist/components/PassportDateRangePicker/PassportDateRangePicker.d.ts +4 -0
- package/dist/components/PassportDateRangePicker/PassportDateRangePicker.d.ts.map +1 -0
- package/dist/components/PassportDateRangePicker/PassportDateRangePicker.js +110 -0
- package/dist/components/PassportDateRangePicker/PassportDateRangePicker.stories.d.ts +26 -0
- package/dist/components/PassportDateRangePicker/PassportDateRangePicker.stories.d.ts.map +1 -0
- package/dist/components/PassportDateRangePicker/PassportDateRangePicker.types.d.ts +19 -0
- package/dist/components/PassportDateRangePicker/PassportDateRangePicker.types.d.ts.map +1 -0
- package/dist/components/PassportDateRangePicker/PassportDateRangePicker.types.js +1 -0
- package/dist/components/PassportDateRangeWrapper/PassportDateRangeWrapper.d.ts +4 -0
- package/dist/components/PassportDateRangeWrapper/PassportDateRangeWrapper.d.ts.map +1 -0
- package/dist/components/PassportDateRangeWrapper/PassportDateRangeWrapper.js +11257 -0
- package/dist/components/PassportDateRangeWrapper/PassportDateRangeWrapper.stories.d.ts +22 -0
- package/dist/components/PassportDateRangeWrapper/PassportDateRangeWrapper.stories.d.ts.map +1 -0
- package/dist/components/PassportDateRangeWrapper/PassportDateRangeWrapper.types.d.ts +19 -0
- package/dist/components/PassportDateRangeWrapper/PassportDateRangeWrapper.types.d.ts.map +1 -0
- package/dist/components/PassportDateRangeWrapper/PassportDateRangeWrapper.types.js +1 -0
- package/dist/components/PassportDateTimePicker/PassportDateTimePicker.js +7 -7
- package/dist/components/PassportDatesFilter/PassportDatesFilter.d.ts +4 -0
- package/dist/components/PassportDatesFilter/PassportDatesFilter.d.ts.map +1 -0
- package/dist/components/PassportDatesFilter/PassportDatesFilter.js +112 -0
- package/dist/components/PassportDatesFilter/PassportDatesFilter.stories.d.ts +13 -0
- package/dist/components/PassportDatesFilter/PassportDatesFilter.stories.d.ts.map +1 -0
- package/dist/components/PassportDatesFilter/PassportDatesFilter.types.d.ts +22 -0
- package/dist/components/PassportDatesFilter/PassportDatesFilter.types.d.ts.map +1 -0
- package/dist/components/PassportDatesFilter/PassportDatesFilter.types.js +1 -0
- package/dist/components/PassportInput/PassportInput.js +2 -2
- package/dist/components/PassportMultiSelect/PassportMultiSelect.js +1 -1
- package/dist/components/PassportPagination/PassportPagination.js +4 -4
- package/dist/components/PassportSearchableMultiSelect/PassportSearchableMultiSelect.js +1 -1
- package/dist/components/PassportSearchableMultiSelectDetailed/PassportSearchableMultiSelectDetailed.js +1 -1
- package/dist/components/PassportTreeSelect/PassportTreeSelect.js +8 -8
- package/dist/components/index.d.ts +3 -0
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/index.js +38 -32
- package/dist/{createSvgIcon-DQP4Lgl5.js → createSvgIcon-D5xeIEZ_.js} +1 -1
- package/dist/{extendSxProp-kvzSbCJ3.js → extendSxProp-BtJlbIOl.js} +1 -1
- package/dist/index-EXNF3OIO.js +672 -0
- package/dist/main.js +55 -47
- package/dist/portal-utils/dates.d.ts +2 -0
- package/dist/portal-utils/dates.d.ts.map +1 -0
- package/dist/portal-utils/dates.js +7 -0
- package/dist/portal-utils/index.d.ts +1 -0
- package/dist/portal-utils/index.d.ts.map +1 -1
- package/dist/portal-utils/index.js +12 -10
- package/dist/types/index.d.ts +3 -0
- package/dist/types/index.d.ts.map +1 -1
- package/dist/{useFormControl-DUby-fW8.js → useFormControl-MVwkyimi.js} +4 -4
- package/dist/{useMobilePicker-CDuVVUzY.js → useMobilePicker-CFsW9hUG.js} +9 -9
- package/dist/{useSlot-Bvdicoh5.js → useSlot-Bm5YJQBR.js} +2 -2
- package/dist/{useTheme-BHcsKB53.js → useTheme-Cz8ZipjJ.js} +1 -1
- package/package.json +4 -1
- package/dist/DefaultPropsProvider-8An9vBcT.js +0 -3450
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { StoryObj } from '@storybook/react';
|
|
2
|
+
declare const meta: {
|
|
3
|
+
title: string;
|
|
4
|
+
component: (props: {
|
|
5
|
+
maxDaysInPast?: number | null;
|
|
6
|
+
maxDays?: number | null;
|
|
7
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
tags: string[];
|
|
9
|
+
parameters: {
|
|
10
|
+
layout: string;
|
|
11
|
+
};
|
|
12
|
+
args: {
|
|
13
|
+
maxDaysInPast: number;
|
|
14
|
+
maxDays: number;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
export default meta;
|
|
18
|
+
type Story = StoryObj<typeof meta>;
|
|
19
|
+
export declare const Default: Story;
|
|
20
|
+
export declare const NoValidation: Story;
|
|
21
|
+
export declare const MaxThirtyDaysPast: Story;
|
|
22
|
+
//# sourceMappingURL=PassportDateRangeWrapper.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PassportDateRangeWrapper.stories.d.ts","sourceRoot":"","sources":["../../../src/components/PassportDateRangeWrapper/PassportDateRangeWrapper.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAiCvD,QAAA,MAAM,IAAI;;uBAzBmC;QAC3C,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;QAC9B,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;KACzB;;;;;;;;;CAiCoD,CAAC;AAEtD,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,OAAO,EAAE,KAAU,CAAC;AAEjC,eAAO,MAAM,YAAY,EAAE,KAK1B,CAAC;AAEF,eAAO,MAAM,iBAAiB,EAAE,KAK/B,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { BusinessDayRange } from '../../types/BusinessDayRange';
|
|
2
|
+
import { DateRangeProps } from 'react-date-range';
|
|
3
|
+
export interface PassportDateRangeWrapperProps extends DateRangeProps {
|
|
4
|
+
/** Current date range value */
|
|
5
|
+
value: BusinessDayRange;
|
|
6
|
+
/** Callback fired when the selected range changes */
|
|
7
|
+
fireOnChange: (range: BusinessDayRange) => void;
|
|
8
|
+
/** Maximum number of days in the past that can be selected. Set to 0 or null to disable. */
|
|
9
|
+
maxDaysInPast?: number | null;
|
|
10
|
+
/** Maximum number of days allowed in the selected range. Set to 0 or null to disable. */
|
|
11
|
+
maxDays?: number | null;
|
|
12
|
+
/** Title for the validation error modal */
|
|
13
|
+
validationErrorTitle?: string;
|
|
14
|
+
/** Message shown when selected range is not valid (too far in the past) */
|
|
15
|
+
validationErrorMessage?: string;
|
|
16
|
+
/** Message shown when selected range exceeds maxDays. Use `{maxDays}` as placeholder. */
|
|
17
|
+
maxDaysExceededMessage?: string;
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=PassportDateRangeWrapper.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PassportDateRangeWrapper.types.d.ts","sourceRoot":"","sources":["../../../src/components/PassportDateRangeWrapper/PassportDateRangeWrapper.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAC5D,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAElD,MAAM,WAAW,6BAA8B,SAAQ,cAAc;IACnE,+BAA+B;IAC/B,KAAK,EAAE,gBAAgB,CAAC;IACxB,qDAAqD;IACrD,YAAY,EAAE,CAAC,KAAK,EAAE,gBAAgB,KAAK,IAAI,CAAC;IAChD,4FAA4F;IAC5F,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9B,yFAAyF;IACzF,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,2CAA2C;IAC3C,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,2EAA2E;IAC3E,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAChC,yFAAyF;IACzF,sBAAsB,CAAC,EAAE,MAAM,CAAC;CACjC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { jsx as v, jsxs as Q } from "react/jsx-runtime";
|
|
2
|
-
import { a as y, _ as ge, r as Ye, B as To, c as so, d as Me, u as yo } from "../../ButtonBase-
|
|
2
|
+
import { a as y, _ as ge, r as Ye, B as To, c as so, d as Me, u as yo } from "../../ButtonBase-DV7q7wxh.js";
|
|
3
3
|
import * as d from "react";
|
|
4
|
-
import { g as me, a as re, u as Ke, s as L, c as q, e as le, m as Le, P as e, b as et, o as jt, p as ro, l as Lt, q as eo } from "../../DefaultPropsProvider-
|
|
5
|
-
import { p as Do, s as ke, v as At, u as Ce, q as $t, t as Ao, w as _t, b as qe, g as Wt, h as Ht, i as zt, j as Ut, C as Yt, x as ot, y as tt, z as Kt, A as qt, B as Xt, E as Gt, F as ao, a as wo, G as oo, T as Qt, H as Zt, c as Jt, I as nt, M as _e, J as We, P as en, K as on, L as to, r as $o, N as _o, O as Be, e as tn, Q as nn, S as sn, R as Wo, U as st, V as rt, W as at, X as it, Y as lt, Z as ct, _ as no, $ as Ho, a0 as rn, a1 as an, a2 as ln, a3 as Qe, m as je, k as dt, l as cn, a4 as fo, a5 as dn, a6 as zo, n as un, a7 as pn, a8 as mn, D as fn, o as bn } from "../../useMobilePicker-
|
|
6
|
-
import { u as ve, a as hn, b as He, c as gn } from "../../useFormControl-
|
|
7
|
-
import { a as Co, b as Ee, r as ut } from "../../useSlot-
|
|
8
|
-
import { c as pt } from "../../createSvgIcon-
|
|
9
|
-
import { B as vn } from "../../Button-
|
|
4
|
+
import { g as me, a as re, u as Ke, s as L, c as q, e as le, m as Le, P as e, b as et, o as jt, p as ro, l as Lt, q as eo } from "../../DefaultPropsProvider-ByENA_w0.js";
|
|
5
|
+
import { p as Do, s as ke, v as At, u as Ce, q as $t, t as Ao, w as _t, b as qe, g as Wt, h as Ht, i as zt, j as Ut, C as Yt, x as ot, y as tt, z as Kt, A as qt, B as Xt, E as Gt, F as ao, a as wo, G as oo, T as Qt, H as Zt, c as Jt, I as nt, M as _e, J as We, P as en, K as on, L as to, r as $o, N as _o, O as Be, e as tn, Q as nn, S as sn, R as Wo, U as st, V as rt, W as at, X as it, Y as lt, Z as ct, _ as no, $ as Ho, a0 as rn, a1 as an, a2 as ln, a3 as Qe, m as je, k as dt, l as cn, a4 as fo, a5 as dn, a6 as zo, n as un, a7 as pn, a8 as mn, D as fn, o as bn } from "../../useMobilePicker-CFsW9hUG.js";
|
|
6
|
+
import { u as ve, a as hn, b as He, c as gn } from "../../useFormControl-MVwkyimi.js";
|
|
7
|
+
import { a as Co, b as Ee, r as ut } from "../../useSlot-Bm5YJQBR.js";
|
|
8
|
+
import { c as pt } from "../../createSvgIcon-D5xeIEZ_.js";
|
|
9
|
+
import { B as vn } from "../../Button-Bx3LbSbV.js";
|
|
10
10
|
const mt = ({
|
|
11
11
|
adapter: o,
|
|
12
12
|
value: t,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PassportDatesFilter.d.ts","sourceRoot":"","sources":["../../../src/components/PassportDatesFilter/PassportDatesFilter.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAgC,MAAM,OAAO,CAAC;AACrD,OAAO,EAA4B,wBAAwB,EAAE,MAAM,6BAA6B,CAAC;AACjG,OAAO,4BAA4B,CAAC;AAWpC,eAAO,MAAM,mBAAmB,EAAE,KAAK,CAAC,EAAE,CAAC,wBAAwB,CAuHlE,CAAC"}
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
import { jsx as o, jsxs as m, Fragment as R } from "react/jsx-runtime";
|
|
2
|
+
import { PassportDateRangeWrapper as v } from "../PassportDateRangeWrapper/PassportDateRangeWrapper.js";
|
|
3
|
+
import { c as S } from "../../createSvgIcon-D5xeIEZ_.js";
|
|
4
|
+
import { styled as B, ToggleButton as D, ButtonGroup as F, Popover as W, IconButton as k } from "@mui/material";
|
|
5
|
+
import { useState as s, useCallback as n } from "react";
|
|
6
|
+
import '../../assets/PassportDatesFilter.css';const I = S(/* @__PURE__ */ o("path", {
|
|
7
|
+
d: "M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"
|
|
8
|
+
}), "Close"), M = B(D)(({ selected: t }) => ({
|
|
9
|
+
...t && {
|
|
10
|
+
color: "var(--color-text)",
|
|
11
|
+
backgroundColor: "var(--color-highlight) !important"
|
|
12
|
+
}
|
|
13
|
+
})), g = /* @__PURE__ */ new Date(), w = ({
|
|
14
|
+
setSelectedDates: t,
|
|
15
|
+
options: i,
|
|
16
|
+
closeIcon: h,
|
|
17
|
+
dateRangeWrapperProps: b
|
|
18
|
+
}) => {
|
|
19
|
+
const [d, l] = s(() => i[0]), [u, c] = s(null), [a, f] = s({
|
|
20
|
+
businessDayFrom: g,
|
|
21
|
+
businessDayTo: g
|
|
22
|
+
}), C = n(
|
|
23
|
+
(r, e) => {
|
|
24
|
+
e.isCustom && (l(e), c(r.currentTarget));
|
|
25
|
+
},
|
|
26
|
+
[]
|
|
27
|
+
), x = !!u, p = n(() => {
|
|
28
|
+
c(null), t(a);
|
|
29
|
+
}, [t, a]), T = n(
|
|
30
|
+
(r) => {
|
|
31
|
+
r.isCustom || (l(r), t(r.range));
|
|
32
|
+
},
|
|
33
|
+
[t]
|
|
34
|
+
);
|
|
35
|
+
return /* @__PURE__ */ m(R, { children: [
|
|
36
|
+
/* @__PURE__ */ o(F, { children: i.map((r) => {
|
|
37
|
+
const e = d.range.businessDayFrom.getTime() === r.range.businessDayFrom.getTime(), y = d.range.businessDayTo.getTime() === r.range.businessDayTo.getTime();
|
|
38
|
+
return /* @__PURE__ */ o(
|
|
39
|
+
M,
|
|
40
|
+
{
|
|
41
|
+
value: r,
|
|
42
|
+
selected: e && y,
|
|
43
|
+
onChange: () => T(r),
|
|
44
|
+
onClick: (E) => C(E, r),
|
|
45
|
+
sx: {
|
|
46
|
+
"&:first-of-type": {
|
|
47
|
+
borderEndStartRadius: 10,
|
|
48
|
+
borderStartStartRadius: 10,
|
|
49
|
+
borderEndEndRadius: 0,
|
|
50
|
+
borderStartEndRadius: 0
|
|
51
|
+
},
|
|
52
|
+
"&:last-of-type": {
|
|
53
|
+
borderEndStartRadius: 0,
|
|
54
|
+
borderStartStartRadius: 0,
|
|
55
|
+
borderEndEndRadius: 10,
|
|
56
|
+
borderStartEndRadius: 10
|
|
57
|
+
},
|
|
58
|
+
"&.MuiToggleButton-root": {
|
|
59
|
+
borderInlineStartWidth: "1px",
|
|
60
|
+
borderInlineEndWidth: "0px",
|
|
61
|
+
borderTopWidth: "1px",
|
|
62
|
+
borderBottomWidth: "1px",
|
|
63
|
+
height: "40px"
|
|
64
|
+
},
|
|
65
|
+
"&.MuiToggleButton-root:not(:first-of-type):not(:last-of-type)": {
|
|
66
|
+
borderRadius: "0px"
|
|
67
|
+
},
|
|
68
|
+
"&.MuiToggleButton-root:last-of-type": {
|
|
69
|
+
borderWidth: "1px"
|
|
70
|
+
}
|
|
71
|
+
},
|
|
72
|
+
children: r.name
|
|
73
|
+
},
|
|
74
|
+
r.name
|
|
75
|
+
);
|
|
76
|
+
}) }),
|
|
77
|
+
/* @__PURE__ */ o(
|
|
78
|
+
W,
|
|
79
|
+
{
|
|
80
|
+
open: x,
|
|
81
|
+
anchorEl: u,
|
|
82
|
+
onClose: p,
|
|
83
|
+
anchorOrigin: { vertical: "bottom", horizontal: "left" },
|
|
84
|
+
sx: {
|
|
85
|
+
".MuiPopover-paper": { borderRadius: "16px", padding: "1px" }
|
|
86
|
+
},
|
|
87
|
+
children: /* @__PURE__ */ m("div", { className: "passport-daterangewrapper-container", children: [
|
|
88
|
+
/* @__PURE__ */ o(
|
|
89
|
+
k,
|
|
90
|
+
{
|
|
91
|
+
className: "passport-daterangewrapper-close",
|
|
92
|
+
onClick: p,
|
|
93
|
+
size: "small",
|
|
94
|
+
children: h ?? /* @__PURE__ */ o(I, { fontSize: "small" })
|
|
95
|
+
}
|
|
96
|
+
),
|
|
97
|
+
/* @__PURE__ */ o(
|
|
98
|
+
v,
|
|
99
|
+
{
|
|
100
|
+
value: a,
|
|
101
|
+
fireOnChange: f,
|
|
102
|
+
...b
|
|
103
|
+
}
|
|
104
|
+
)
|
|
105
|
+
] })
|
|
106
|
+
}
|
|
107
|
+
)
|
|
108
|
+
] });
|
|
109
|
+
};
|
|
110
|
+
export {
|
|
111
|
+
w as PassportDatesFilter
|
|
112
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { StoryObj } from '@storybook/react';
|
|
2
|
+
declare const meta: {
|
|
3
|
+
title: string;
|
|
4
|
+
component: () => import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
tags: string[];
|
|
6
|
+
parameters: {
|
|
7
|
+
layout: string;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
export default meta;
|
|
11
|
+
type Story = StoryObj<typeof meta>;
|
|
12
|
+
export declare const Default: Story;
|
|
13
|
+
//# sourceMappingURL=PassportDatesFilter.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PassportDatesFilter.stories.d.ts","sourceRoot":"","sources":["../../../src/components/PassportDatesFilter/PassportDatesFilter.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAuCvD,QAAA,MAAM,IAAI;;;;;;;CAOsC,CAAC;AAEjD,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,OAAO,EAAE,KAAU,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { BusinessDayRange } from '../../types/BusinessDayRange';
|
|
2
|
+
import { PassportDateRangeWrapperProps } from '../PassportDateRangeWrapper/PassportDateRangeWrapper.types';
|
|
3
|
+
import { default as React, SetStateAction } from 'react';
|
|
4
|
+
export interface PassportDatePresetOption {
|
|
5
|
+
/** Date range for this preset */
|
|
6
|
+
range: BusinessDayRange;
|
|
7
|
+
/** Display name for the toggle button */
|
|
8
|
+
name: string;
|
|
9
|
+
/** When true, clicking this option opens the custom date picker popover */
|
|
10
|
+
isCustom: boolean;
|
|
11
|
+
}
|
|
12
|
+
export interface PassportDatesFilterProps {
|
|
13
|
+
/** Callback to update the selected date range */
|
|
14
|
+
setSelectedDates: React.Dispatch<SetStateAction<BusinessDayRange>>;
|
|
15
|
+
/** Preset date options to display as toggle buttons. The last option with `isCustom: true` opens the calendar. */
|
|
16
|
+
options: PassportDatePresetOption[];
|
|
17
|
+
/** Optional custom close icon element for the popover */
|
|
18
|
+
closeIcon?: React.ReactNode;
|
|
19
|
+
/** Props forwarded to the inner PassportDateRangeWrapper */
|
|
20
|
+
dateRangeWrapperProps?: Partial<PassportDateRangeWrapperProps>;
|
|
21
|
+
}
|
|
22
|
+
//# sourceMappingURL=PassportDatesFilter.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PassportDatesFilter.types.d.ts","sourceRoot":"","sources":["../../../src/components/PassportDatesFilter/PassportDatesFilter.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAC5D,OAAO,EAAE,6BAA6B,EAAE,MAAM,sEAAsE,CAAC;AACrH,OAAO,KAAK,EAAE,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAE9C,MAAM,WAAW,wBAAwB;IACvC,iCAAiC;IACjC,KAAK,EAAE,gBAAgB,CAAC;IACxB,yCAAyC;IACzC,IAAI,EAAE,MAAM,CAAC;IACb,2EAA2E;IAC3E,QAAQ,EAAE,OAAO,CAAC;CACnB;AAED,MAAM,WAAW,wBAAwB;IACvC,iDAAiD;IACjD,gBAAgB,EAAE,KAAK,CAAC,QAAQ,CAAC,cAAc,CAAC,gBAAgB,CAAC,CAAC,CAAC;IACnE,kHAAkH;IAClH,OAAO,EAAE,wBAAwB,EAAE,CAAC;IACpC,yDAAyD;IACzD,SAAS,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC5B,4DAA4D;IAC5D,qBAAqB,CAAC,EAAE,OAAO,CAAC,6BAA6B,CAAC,CAAC;CAChE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
-
import { C as d } from "../../Clear-
|
|
3
|
-
import { S as p } from "../../Search-
|
|
2
|
+
import { C as d } from "../../Clear-Bz9hw2Wj.js";
|
|
3
|
+
import { S as p } from "../../Search-D_9Ptbky.js";
|
|
4
4
|
import { TextField as a, InputAdornment as n } from "@mui/material";
|
|
5
5
|
function f({
|
|
6
6
|
label: e,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsxs as i, jsx as r } from "react/jsx-runtime";
|
|
2
|
-
import { C as d } from "../../Clear-
|
|
2
|
+
import { C as d } from "../../Clear-Bz9hw2Wj.js";
|
|
3
3
|
import { useTheme as m, FormControl as h, InputLabel as a, Select as g, MenuItem as x, Checkbox as f, ListItemText as I, InputAdornment as y, OutlinedInput as C } from "@mui/material";
|
|
4
4
|
const M = 48, P = 8, T = {
|
|
5
5
|
PaperProps: {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { jsx as s, jsxs as ot } from "react/jsx-runtime";
|
|
2
2
|
import { PaginationItem as at } from "@mui/material";
|
|
3
3
|
import * as c from "react";
|
|
4
|
-
import { g as J, a as K, u as Q, s as B, c as W, b as h, e as X, m as F, P as e } from "../../DefaultPropsProvider-
|
|
5
|
-
import { u as rt, a as nt, b as R } from "../../useSlot-
|
|
4
|
+
import { g as J, a as K, u as Q, s as B, c as W, b as h, e as X, m as F, P as e } from "../../DefaultPropsProvider-ByENA_w0.js";
|
|
5
|
+
import { u as rt, a as nt, b as R } from "../../useSlot-Bm5YJQBR.js";
|
|
6
6
|
import { c as D } from "../../createSimplePaletteValueFilter-Bz8RuRaa.js";
|
|
7
|
-
import { c as j } from "../../createSvgIcon-
|
|
8
|
-
import { B as st } from "../../ButtonBase-
|
|
7
|
+
import { c as j } from "../../createSvgIcon-D5xeIEZ_.js";
|
|
8
|
+
import { B as st } from "../../ButtonBase-DV7q7wxh.js";
|
|
9
9
|
import { i as N } from "../../integerPropType-BihGt2aU.js";
|
|
10
10
|
function it(t) {
|
|
11
11
|
return J("MuiPagination", t);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as l, jsxs as g } from "react/jsx-runtime";
|
|
2
2
|
import { Autocomplete as h, TextField as y, Checkbox as O } from "@mui/material";
|
|
3
|
-
import { C as A, a as S } from "../../CheckBox-
|
|
3
|
+
import { C as A, a as S } from "../../CheckBox-YBX2j1qt.js";
|
|
4
4
|
const m = /* @__PURE__ */ l(S, { fontSize: "small" }), C = /* @__PURE__ */ l(A, { fontSize: "small" });
|
|
5
5
|
function P({
|
|
6
6
|
label: u,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as n, jsxs as l } from "react/jsx-runtime";
|
|
2
2
|
import { Autocomplete as g, TextField as k, Checkbox as S, Box as O, Typography as x } from "@mui/material";
|
|
3
|
-
import { C as z, a as A } from "../../CheckBox-
|
|
3
|
+
import { C as z, a as A } from "../../CheckBox-YBX2j1qt.js";
|
|
4
4
|
const B = /* @__PURE__ */ n(A, { fontSize: "small" }), C = /* @__PURE__ */ n(z, { fontSize: "small" });
|
|
5
5
|
function P({
|
|
6
6
|
label: f,
|
|
@@ -2,15 +2,15 @@ import { jsx as v, jsxs as Y, Fragment as mn } from "react/jsx-runtime";
|
|
|
2
2
|
import * as M from "react";
|
|
3
3
|
import $e, { useState as We, useRef as gt, useMemo as Ke, useEffect as bt, useCallback as St } from "react";
|
|
4
4
|
import { FormControl as In, InputLabel as gn, OutlinedInput as bn, InputAdornment as yt, IconButton as Sn, Box as fe, Chip as xt, Collapse as yn, Paper as xn, TextField as En, Typography as Ue, Checkbox as Cn } from "@mui/material";
|
|
5
|
-
import { S as vn } from "../../Search-
|
|
6
|
-
import { c as ge } from "../../createSvgIcon-
|
|
7
|
-
import { C as wn } from "../../Clear-
|
|
8
|
-
import { _ as Be, a as S, e as Tn, u as kn, f as On, B as Mn, r as Pn } from "../../ButtonBase-
|
|
9
|
-
import { g as Ce, a as ve, P as i, s as G, e as we, u as Kt, t as Rn, c as Q, m as Ut, b as xe, l as Ht, p as st, q as Se } from "../../DefaultPropsProvider-
|
|
10
|
-
import { u as Ln, b as te, T as Dn, c as _n, g as Et, d as An, m as Nn, a as Fn } from "../../useFormControl-
|
|
11
|
-
import { a as Vn, b as Ie, u as zn, e as re, r as Ct } from "../../useSlot-
|
|
5
|
+
import { S as vn } from "../../Search-D_9Ptbky.js";
|
|
6
|
+
import { c as ge } from "../../createSvgIcon-D5xeIEZ_.js";
|
|
7
|
+
import { C as wn } from "../../Clear-Bz9hw2Wj.js";
|
|
8
|
+
import { _ as Be, a as S, e as Tn, u as kn, f as On, B as Mn, r as Pn } from "../../ButtonBase-DV7q7wxh.js";
|
|
9
|
+
import { g as Ce, a as ve, P as i, s as G, e as we, u as Kt, t as Rn, c as Q, m as Ut, b as xe, l as Ht, p as st, q as Se } from "../../DefaultPropsProvider-ByENA_w0.js";
|
|
10
|
+
import { u as Ln, b as te, T as Dn, c as _n, g as Et, d as An, m as Nn, a as Fn } from "../../useFormControl-MVwkyimi.js";
|
|
11
|
+
import { a as Vn, b as Ie, u as zn, e as re, r as Ct } from "../../useSlot-Bm5YJQBR.js";
|
|
12
12
|
import { c as vt } from "../../createSimplePaletteValueFilter-Bz8RuRaa.js";
|
|
13
|
-
import { C as jn } from "../../CircularProgress-
|
|
13
|
+
import { C as jn } from "../../CircularProgress-BXi3nXc9.js";
|
|
14
14
|
const $n = ge(/* @__PURE__ */ v("path", {
|
|
15
15
|
d: "M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"
|
|
16
16
|
}), "ExpandMore"), wt = {};
|
|
@@ -26,4 +26,7 @@ export { PassportTextField } from './PassportTextField/PassportTextField';
|
|
|
26
26
|
export { DebouncedPassportInput } from './DebouncedPassportInput/DebouncedPassportInput';
|
|
27
27
|
export { PassportMenuButton } from './PassportMenuButton/PassportMenuButton';
|
|
28
28
|
export { PassportNotification } from './PassportNotification/PassportNotification';
|
|
29
|
+
export { PassportDateRangeWrapper } from './PassportDateRangeWrapper/PassportDateRangeWrapper';
|
|
30
|
+
export { PassportDatesFilter } from './PassportDatesFilter/PassportDatesFilter';
|
|
31
|
+
export { PassportDateRangePicker } from './PassportDateRangePicker/PassportDateRangePicker';
|
|
29
32
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAAA,OAAO,2BAA2B,CAAC;AACnC,OAAO,EAAE,gBAAgB,EAAE,MAAM,gDAA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E,MAAM,oDAAoD,CAAC;AACxF,OAAO,EAAE,mBAAmB,EAAE,MAAM,sDAAsD,CAAC;AAC3F,OAAO,EAAE,6BAA6B,EAAE,MAAM,0EAA0E,CAAC;AACzH,OAAO,EAAE,qCAAqC,EAAE,MAAM,0FAA0F,CAAC;AACjJ,OAAO,EAAE,kBAAkB,EAAE,MAAM,oDAAoD,CAAC;AACxF,OAAO,EAAE,kBAAkB,EAAE,MAAM,oDAAoD,CAAC;AACxF,OAAO,EAAE,iBAAiB,EAAE,MAAM,kDAAkD,CAAC;AACrF,OAAO,EAAE,iBAAiB,EAAE,MAAM,kDAAkD,CAAC;AACrF,OAAO,EAAE,sBAAsB,EAAE,MAAM,4DAA4D,CAAC;AACpG,OAAO,EAAE,kBAAkB,EAAE,MAAM,oDAAoD,CAAC;AACxF,OAAO,EAAE,oBAAoB,EAAE,MAAM,wDAAwD,CAAC;AAC9F,OAAO,EAAE,wBAAwB,EAAE,MAAM,gEAAgE,CAAC;AAC1G,OAAO,EAAE,mBAAmB,EAAE,MAAM,sDAAsD,CAAC;AAC3F,OAAO,EAAE,uBAAuB,EAAE,MAAM,8DAA8D,CAAC"}
|
package/dist/components/index.js
CHANGED
|
@@ -1,58 +1,64 @@
|
|
|
1
1
|
import { LoadingAnimation as t } from "./LoadingAnimation/LoadingAnimation.js";
|
|
2
2
|
import { Login as p } from "./Login/Login.js";
|
|
3
|
-
import { PassportSideMenu as
|
|
3
|
+
import { PassportSideMenu as s } from "./PassportSideMenu/PassportSideMenu.js";
|
|
4
4
|
import { PassportTotalDataGrid as f } from "./PassportTotalDataGrid/PassportTotalDataGrid.js";
|
|
5
5
|
import { P as x } from "../PassportUserInformation-CNpBGKl3.js";
|
|
6
6
|
import { PassportAutocomplete as n } from "./PassportAutocomplete/PassportAutocomplete.js";
|
|
7
|
-
import { PassportButton as
|
|
7
|
+
import { PassportButton as c } from "./PassportButton/PassportButton.js";
|
|
8
8
|
import { PassportConfirmationModal as u } from "./PassportConfirmationModal/PassportConfirmationModal.js";
|
|
9
|
-
import { PassportDatePicker as
|
|
10
|
-
import { PassportDateTimePicker as
|
|
11
|
-
import { PassportDropdown as
|
|
12
|
-
import { PassportErrorModal as
|
|
13
|
-
import { PassportFooter as
|
|
14
|
-
import { PassportInactivityModal as
|
|
9
|
+
import { PassportDatePicker as M } from "./PassportDatePicker/PassportDatePicker.js";
|
|
10
|
+
import { PassportDateTimePicker as g } from "./PassportDateTimePicker/PassportDateTimePicker.js";
|
|
11
|
+
import { PassportDropdown as T } from "./PassportDropdown/PassportDropdown.js";
|
|
12
|
+
import { PassportErrorModal as k } from "./PassportErrorModal/PassportErrorModal.js";
|
|
13
|
+
import { PassportFooter as h } from "./PassportFooter/PassportFooter.js";
|
|
14
|
+
import { PassportInactivityModal as B } from "./PassportInactivityModal/PassportInactivityModal.js";
|
|
15
15
|
import { PassportInfoModal as K } from "./PassportInfoModal/PassportInfoModal.js";
|
|
16
|
-
import { PassportInput as
|
|
17
|
-
import { PassportKpiCard as
|
|
18
|
-
import { PassportKpiWrapper as
|
|
19
|
-
import { PassportMultiSelect as
|
|
20
|
-
import { PassportSearchableMultiSelect as
|
|
21
|
-
import { PassportSearchableMultiSelectDetailed as
|
|
22
|
-
import { PassportTreeSelect as
|
|
23
|
-
import { PassportPagination as
|
|
16
|
+
import { PassportInput as R } from "./PassportInput/PassportInput.js";
|
|
17
|
+
import { PassportKpiCard as v } from "./PassportKpiCard/PassportKpiCard.js";
|
|
18
|
+
import { PassportKpiWrapper as y } from "./PassportKpiWrapper/PassportKpiWrapper.js";
|
|
19
|
+
import { PassportMultiSelect as G } from "./PassportMultiSelect/PassportMultiSelect.js";
|
|
20
|
+
import { PassportSearchableMultiSelect as N } from "./PassportSearchableMultiSelect/PassportSearchableMultiSelect.js";
|
|
21
|
+
import { PassportSearchableMultiSelectDetailed as j } from "./PassportSearchableMultiSelectDetailed/PassportSearchableMultiSelectDetailed.js";
|
|
22
|
+
import { PassportTreeSelect as z } from "./PassportTreeSelect/PassportTreeSelect.js";
|
|
23
|
+
import { PassportPagination as O } from "./PassportPagination/PassportPagination.js";
|
|
24
24
|
import { PassportTabHeader as V } from "./PassportTabHeader/PassportTabHeader.js";
|
|
25
25
|
import { PassportTextField as Y } from "./PassportTextField/PassportTextField.js";
|
|
26
26
|
import { DebouncedPassportInput as _ } from "./DebouncedPassportInput/DebouncedPassportInput.js";
|
|
27
27
|
import { PassportMenuButton as oo } from "./PassportMenuButton/PassportMenuButton.js";
|
|
28
28
|
import { PassportNotification as to } from "./PassportNotification/PassportNotification.js";
|
|
29
|
+
import { PassportDateRangeWrapper as po } from "./PassportDateRangeWrapper/PassportDateRangeWrapper.js";
|
|
30
|
+
import { PassportDatesFilter as so } from "./PassportDatesFilter/PassportDatesFilter.js";
|
|
31
|
+
import { PassportDateRangePicker as fo } from "./PassportDateRangePicker/PassportDateRangePicker.js";
|
|
29
32
|
import '../assets/index.css';export {
|
|
30
33
|
_ as DebouncedPassportInput,
|
|
31
34
|
t as LoadingAnimation,
|
|
32
35
|
p as Login,
|
|
33
36
|
n as PassportAutocomplete,
|
|
34
|
-
|
|
37
|
+
c as PassportButton,
|
|
35
38
|
u as PassportConfirmationModal,
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
39
|
+
M as PassportDatePicker,
|
|
40
|
+
fo as PassportDateRangePicker,
|
|
41
|
+
po as PassportDateRangeWrapper,
|
|
42
|
+
g as PassportDateTimePicker,
|
|
43
|
+
so as PassportDatesFilter,
|
|
44
|
+
T as PassportDropdown,
|
|
45
|
+
k as PassportErrorModal,
|
|
46
|
+
h as PassportFooter,
|
|
47
|
+
B as PassportInactivityModal,
|
|
42
48
|
K as PassportInfoModal,
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
49
|
+
R as PassportInput,
|
|
50
|
+
v as PassportKpiCard,
|
|
51
|
+
y as PassportKpiWrapper,
|
|
46
52
|
oo as PassportMenuButton,
|
|
47
|
-
|
|
53
|
+
G as PassportMultiSelect,
|
|
48
54
|
to as PassportNotification,
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
55
|
+
O as PassportPagination,
|
|
56
|
+
N as PassportSearchableMultiSelect,
|
|
57
|
+
j as PassportSearchableMultiSelectDetailed,
|
|
58
|
+
s as PassportSideMenu,
|
|
53
59
|
V as PassportTabHeader,
|
|
54
60
|
Y as PassportTextField,
|
|
55
61
|
f as PassportTotalDataGrid,
|
|
56
|
-
|
|
62
|
+
z as PassportTreeSelect,
|
|
57
63
|
x as PassportUserInformation
|
|
58
64
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as a from "react";
|
|
2
2
|
import { jsxs as I, jsx as g } from "react/jsx-runtime";
|
|
3
|
-
import { g as w, a as N, u as C, s as O, c as T, b as c, e as R, m as E, P as e } from "./DefaultPropsProvider-
|
|
3
|
+
import { g as w, a as N, u as C, s as O, c as T, b as c, e as R, m as E, P as e } from "./DefaultPropsProvider-ByENA_w0.js";
|
|
4
4
|
function j(o) {
|
|
5
5
|
return w("MuiSvgIcon", o);
|
|
6
6
|
}
|