@amateescu/portal-ui-components 0.0.48 → 0.0.50
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/Box-DU079Glg.js +57 -0
- package/dist/{Button-Bx3LbSbV.js → Button-BgsadnaR.js} +13 -13
- package/dist/{ButtonBase-DV7q7wxh.js → ButtonBase-ugYh038t.js} +8 -8
- package/dist/{CheckBox-YBX2j1qt.js → CheckBox-D9YmAV-l.js} +1 -1
- package/dist/{CircularProgress-BXi3nXc9.js → CircularProgress-D1FWO7Cz.js} +1 -1
- package/dist/{Clear-Bz9hw2Wj.js → Clear-B32X2R1T.js} +1 -1
- package/dist/Close-IqnCWZPM.js +8 -0
- package/dist/{DefaultPropsProvider-ByENA_w0.js → DefaultPropsProvider-BQx1AiAq.js} +20 -19
- package/dist/ExpandMore-CHNJSd5N.js +8 -0
- package/dist/ListItem-1DiNy9oq.js +422 -0
- package/dist/ListItemText-VX0lo95z.js +434 -0
- package/dist/Modal-BnD35xWv.js +1325 -0
- package/dist/{Search-D_9Ptbky.js → Search-DnJ3yLMg.js} +1 -1
- package/dist/assets/PassportFilter.css +1 -0
- package/dist/assets/PassportFilterDrawer.css +1 -0
- package/dist/assets/PassportFilterFreeTextFilter.css +1 -0
- package/dist/components/LoadingAnimation/LoadingAnimation.js +8 -60
- package/dist/components/Login/Login.js +1 -1
- package/dist/components/PassportButton/PassportButton.js +1 -1
- package/dist/components/PassportDatePicker/PassportDatePicker.js +21 -20
- package/dist/components/PassportDateTimePicker/PassportDateTimePicker.js +298 -291
- package/dist/components/PassportDatesFilter/PassportDatesFilter.js +24 -26
- package/dist/components/PassportFilter/PassportFilter.d.ts +5 -0
- package/dist/components/PassportFilter/PassportFilter.d.ts.map +1 -0
- package/dist/components/PassportFilter/PassportFilter.js +154 -0
- package/dist/components/PassportFilter/PassportFilter.stories.d.ts +13 -0
- package/dist/components/PassportFilter/PassportFilter.stories.d.ts.map +1 -0
- package/dist/components/PassportFilter/PassportFilter.types.d.ts +61 -0
- package/dist/components/PassportFilter/PassportFilter.types.d.ts.map +1 -0
- package/dist/components/PassportFilter/PassportFilter.types.js +5 -0
- package/dist/components/PassportFilter/PassportFilterDrawer/PassportFilterDrawer.d.ts +5 -0
- package/dist/components/PassportFilter/PassportFilterDrawer/PassportFilterDrawer.d.ts.map +1 -0
- package/dist/components/PassportFilter/PassportFilterDrawer/PassportFilterDrawer.js +756 -0
- package/dist/components/PassportFilter/PassportFilterDrawer/PassportFilterDrawer.types.d.ts +28 -0
- package/dist/components/PassportFilter/PassportFilterDrawer/PassportFilterDrawer.types.d.ts.map +1 -0
- package/dist/components/PassportFilter/PassportFilterDrawer/PassportFilterDrawer.types.js +1 -0
- package/dist/components/PassportFilter/PassportFilterFreeTextButtons/PassportFilterFreeTextButtons.d.ts +4 -0
- package/dist/components/PassportFilter/PassportFilterFreeTextButtons/PassportFilterFreeTextButtons.d.ts.map +1 -0
- package/dist/components/PassportFilter/PassportFilterFreeTextButtons/PassportFilterFreeTextButtons.js +94 -0
- package/dist/components/PassportFilter/PassportFilterFreeTextButtons/PassportFilterFreeTextButtons.types.d.ts +16 -0
- package/dist/components/PassportFilter/PassportFilterFreeTextButtons/PassportFilterFreeTextButtons.types.d.ts.map +1 -0
- package/dist/components/PassportFilter/PassportFilterFreeTextButtons/PassportFilterFreeTextButtons.types.js +1 -0
- package/dist/components/PassportFilter/PassportFilterFreeTextFilter/PassportFilterFreeTextFilter.d.ts +4 -0
- package/dist/components/PassportFilter/PassportFilterFreeTextFilter/PassportFilterFreeTextFilter.d.ts.map +1 -0
- package/dist/components/PassportFilter/PassportFilterFreeTextFilter/PassportFilterFreeTextFilter.js +736 -0
- package/dist/components/PassportFilter/PassportFilterFreeTextFilter/PassportFilterFreeTextFilter.types.d.ts +37 -0
- package/dist/components/PassportFilter/PassportFilterFreeTextFilter/PassportFilterFreeTextFilter.types.d.ts.map +1 -0
- package/dist/components/PassportFilter/PassportFilterFreeTextFilter/PassportFilterFreeTextFilter.types.js +1 -0
- package/dist/components/PassportFilter/PassportFilterSelectionList/PassportFilterSelectionList.d.ts +4 -0
- package/dist/components/PassportFilter/PassportFilterSelectionList/PassportFilterSelectionList.d.ts.map +1 -0
- package/dist/components/PassportFilter/PassportFilterSelectionList/PassportFilterSelectionList.js +180 -0
- package/dist/components/PassportFilter/PassportFilterSelectionList/PassportFilterSelectionList.types.d.ts +17 -0
- package/dist/components/PassportFilter/PassportFilterSelectionList/PassportFilterSelectionList.types.d.ts.map +1 -0
- package/dist/components/PassportFilter/PassportFilterSelectionList/PassportFilterSelectionList.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 +96 -94
- package/dist/components/PassportSearchableMultiSelect/PassportSearchableMultiSelect.js +1 -1
- package/dist/components/PassportSearchableMultiSelectDetailed/PassportSearchableMultiSelectDetailed.d.ts +1 -1
- package/dist/components/PassportSearchableMultiSelectDetailed/PassportSearchableMultiSelectDetailed.d.ts.map +1 -1
- package/dist/components/PassportSearchableMultiSelectDetailed/PassportSearchableMultiSelectDetailed.js +31 -28
- package/dist/components/PassportSearchableMultiSelectDetailed/PassportSearchableMultiSelectDetailed.stories.d.ts +1 -0
- package/dist/components/PassportSearchableMultiSelectDetailed/PassportSearchableMultiSelectDetailed.stories.d.ts.map +1 -1
- package/dist/components/PassportSearchableMultiSelectDetailed/PassportSearchableMultiSelectDetailed.types.d.ts +1 -0
- package/dist/components/PassportSearchableMultiSelectDetailed/PassportSearchableMultiSelectDetailed.types.d.ts.map +1 -1
- package/dist/components/PassportTreeSelect/PassportTreeSelect.js +82 -79
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/index.js +4 -2
- package/dist/{createSvgIcon-D5xeIEZ_.js → createSvgIcon-Crk7qT6j.js} +1 -1
- package/dist/{extendSxProp-BtJlbIOl.js → extendSxProp-BHclE0DL.js} +1 -1
- package/dist/getReactElementRef-CIbXfZbo.js +45 -0
- package/dist/index-DfCFE9GG.js +9 -0
- package/dist/listItemButtonClasses-BLTBU8Yh.js +476 -0
- package/dist/listItemIconClasses-B_UAYnw7.js +9 -0
- package/dist/listItemTextClasses-D5in-Wsc.js +9 -0
- package/dist/main.js +41 -37
- package/dist/portal-utils/arrays.d.ts +2 -0
- package/dist/portal-utils/arrays.d.ts.map +1 -0
- package/dist/portal-utils/arrays.js +10 -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 +17 -15
- package/dist/types/index.d.ts +1 -0
- package/dist/types/index.d.ts.map +1 -1
- package/dist/useControlled-D1L5tREc.js +31 -0
- package/dist/useFormControl-Ivp9nwoj.js +53 -0
- package/dist/{useMobilePicker-CFsW9hUG.js → useMobilePicker-BombQ5QA.js} +5381 -7587
- package/dist/useSlot-B1oIMjd_.js +126 -0
- package/dist/useTheme-9dlwNzrD.js +10 -0
- package/dist/{useTheme-Cz8ZipjJ.js → useTheme-Dxbczges.js} +3 -3
- package/dist/useThemeProps-j6Er0aGl.js +27 -0
- package/dist/{useFormControl-MVwkyimi.js → utils-6k-H8qFR.js} +155 -231
- package/package.json +1 -1
- package/dist/useSlot-Bm5YJQBR.js +0 -160
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { k as x, l as p, c as h, g as T, C as y, T as B, n as N, P as e } from "./DefaultPropsProvider-BQx1AiAq.js";
|
|
2
|
+
import * as C from "react";
|
|
3
|
+
import { jsx as g } from "react/jsx-runtime";
|
|
4
|
+
import { u as b } from "./useTheme-Dxbczges.js";
|
|
5
|
+
import { e as v } from "./extendSxProp-BHclE0DL.js";
|
|
6
|
+
function E(n = {}) {
|
|
7
|
+
const {
|
|
8
|
+
themeId: t,
|
|
9
|
+
defaultTheme: m,
|
|
10
|
+
defaultClassName: a = "MuiBox-root",
|
|
11
|
+
generateClassName: r
|
|
12
|
+
} = n, c = x("div", {
|
|
13
|
+
shouldForwardProp: (o) => o !== "theme" && o !== "sx" && o !== "as"
|
|
14
|
+
})(p);
|
|
15
|
+
return /* @__PURE__ */ C.forwardRef(function(l, f) {
|
|
16
|
+
const s = b(m), {
|
|
17
|
+
className: d,
|
|
18
|
+
component: i = "div",
|
|
19
|
+
...u
|
|
20
|
+
} = v(l);
|
|
21
|
+
return /* @__PURE__ */ g(c, {
|
|
22
|
+
as: i,
|
|
23
|
+
ref: f,
|
|
24
|
+
className: h(d, r ? r(a) : a),
|
|
25
|
+
theme: t && s[t] || s,
|
|
26
|
+
...u
|
|
27
|
+
});
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
const O = T("MuiBox", ["root"]), P = N(), j = E({
|
|
31
|
+
themeId: B,
|
|
32
|
+
defaultTheme: P,
|
|
33
|
+
defaultClassName: O.root,
|
|
34
|
+
generateClassName: y.generate
|
|
35
|
+
});
|
|
36
|
+
process.env.NODE_ENV !== "production" && (j.propTypes = {
|
|
37
|
+
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
38
|
+
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
39
|
+
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
40
|
+
// └─────────────────────────────────────────────────────────────────────┘
|
|
41
|
+
/**
|
|
42
|
+
* @ignore
|
|
43
|
+
*/
|
|
44
|
+
children: e.node,
|
|
45
|
+
/**
|
|
46
|
+
* The component used for the root node.
|
|
47
|
+
* Either a string to use a HTML element or a component.
|
|
48
|
+
*/
|
|
49
|
+
component: e.elementType,
|
|
50
|
+
/**
|
|
51
|
+
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
52
|
+
*/
|
|
53
|
+
sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object])
|
|
54
|
+
});
|
|
55
|
+
export {
|
|
56
|
+
j as B
|
|
57
|
+
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import * as s from "react";
|
|
2
|
-
import {
|
|
2
|
+
import { g as q, b as J, j as K, u as Q, s as y, c as E, e as r, f as X, r as Y, m as Z, P as t } from "./DefaultPropsProvider-BQx1AiAq.js";
|
|
3
3
|
import { c as oo } from "./createSimplePaletteValueFilter-Bz8RuRaa.js";
|
|
4
4
|
import { jsxs as to, jsx as c } from "react/jsx-runtime";
|
|
5
|
-
import { B as no } from "./ButtonBase-
|
|
6
|
-
import { C as ao } from "./CircularProgress-
|
|
5
|
+
import { B as no } from "./ButtonBase-ugYh038t.js";
|
|
6
|
+
import { C as ao } from "./CircularProgress-D1FWO7Cz.js";
|
|
7
7
|
let N = 0;
|
|
8
8
|
function io(o) {
|
|
9
9
|
const [n, a] = s.useState(o), i = o || n;
|
|
@@ -77,7 +77,7 @@ const lo = (o) => {
|
|
|
77
77
|
fontSize: 22
|
|
78
78
|
}
|
|
79
79
|
}
|
|
80
|
-
}], co =
|
|
80
|
+
}], co = y(no, {
|
|
81
81
|
shouldForwardProp: (o) => Y(o) || o === "classes",
|
|
82
82
|
name: "MuiButton",
|
|
83
83
|
slot: "Root",
|
|
@@ -285,7 +285,7 @@ const lo = (o) => {
|
|
|
285
285
|
}
|
|
286
286
|
}]
|
|
287
287
|
};
|
|
288
|
-
})), po =
|
|
288
|
+
})), po = y("span", {
|
|
289
289
|
name: "MuiButton",
|
|
290
290
|
slot: "StartIcon",
|
|
291
291
|
overridesResolver: (o, n) => {
|
|
@@ -328,7 +328,7 @@ const lo = (o) => {
|
|
|
328
328
|
marginRight: -8
|
|
329
329
|
}
|
|
330
330
|
}, ...M]
|
|
331
|
-
})), uo =
|
|
331
|
+
})), uo = y("span", {
|
|
332
332
|
name: "MuiButton",
|
|
333
333
|
slot: "EndIcon",
|
|
334
334
|
overridesResolver: (o, n) => {
|
|
@@ -371,7 +371,7 @@ const lo = (o) => {
|
|
|
371
371
|
marginLeft: -8
|
|
372
372
|
}
|
|
373
373
|
}, ...M]
|
|
374
|
-
})), go =
|
|
374
|
+
})), go = y("span", {
|
|
375
375
|
name: "MuiButton",
|
|
376
376
|
slot: "LoadingIndicator"
|
|
377
377
|
})(({
|
|
@@ -461,7 +461,7 @@ const lo = (o) => {
|
|
|
461
461
|
right: -10
|
|
462
462
|
}
|
|
463
463
|
}]
|
|
464
|
-
})), O =
|
|
464
|
+
})), O = y("span", {
|
|
465
465
|
name: "MuiButton",
|
|
466
466
|
slot: "LoadingIconPlaceholder"
|
|
467
467
|
})({
|
|
@@ -486,7 +486,7 @@ const lo = (o) => {
|
|
|
486
486
|
id: P,
|
|
487
487
|
loading: l = null,
|
|
488
488
|
loadingIndicator: D,
|
|
489
|
-
loadingPosition:
|
|
489
|
+
loadingPosition: f = "center",
|
|
490
490
|
size: G = "medium",
|
|
491
491
|
startIcon: w,
|
|
492
492
|
type: m,
|
|
@@ -506,18 +506,18 @@ const lo = (o) => {
|
|
|
506
506
|
fullWidth: j,
|
|
507
507
|
loading: l,
|
|
508
508
|
loadingIndicator: R,
|
|
509
|
-
loadingPosition:
|
|
509
|
+
loadingPosition: f,
|
|
510
510
|
size: G,
|
|
511
511
|
type: m,
|
|
512
512
|
variant: F
|
|
513
|
-
}, e = lo(d), _ = (w || l &&
|
|
513
|
+
}, e = lo(d), _ = (w || l && f === "start") && /* @__PURE__ */ c(po, {
|
|
514
514
|
className: e.startIcon,
|
|
515
515
|
ownerState: d,
|
|
516
516
|
children: w || /* @__PURE__ */ c(O, {
|
|
517
517
|
className: e.loadingIconPlaceholder,
|
|
518
518
|
ownerState: d
|
|
519
519
|
})
|
|
520
|
-
}), H = (C || l &&
|
|
520
|
+
}), H = (C || l && f === "end") && /* @__PURE__ */ c(uo, {
|
|
521
521
|
className: e.endIcon,
|
|
522
522
|
ownerState: d,
|
|
523
523
|
children: C || /* @__PURE__ */ c(O, {
|
|
@@ -550,7 +550,7 @@ const lo = (o) => {
|
|
|
550
550
|
id: l ? h : P,
|
|
551
551
|
...U,
|
|
552
552
|
classes: e,
|
|
553
|
-
children: [_,
|
|
553
|
+
children: [_, f !== "end" && $, S, f === "end" && $, H]
|
|
554
554
|
});
|
|
555
555
|
});
|
|
556
556
|
process.env.NODE_ENV !== "production" && (vo.propTypes = {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as c from "react";
|
|
2
2
|
import X, { isValidElement as W, cloneElement as G, Children as je } from "react";
|
|
3
|
-
import { P as n, c as C,
|
|
3
|
+
import { P as n, c as C, g as de, u as he, s as oe, b as Be, f as Le } from "./DefaultPropsProvider-BQx1AiAq.js";
|
|
4
4
|
import { jsx as U, jsxs as ke } from "react/jsx-runtime";
|
|
5
5
|
import { keyframes as re } from "@emotion/react";
|
|
6
6
|
import { a as Fe } from "./createSimplePaletteValueFilter-Bz8RuRaa.js";
|
|
@@ -977,14 +977,14 @@ process.env.NODE_ENV !== "production" && (dt.propTypes = {
|
|
|
977
977
|
export {
|
|
978
978
|
dt as B,
|
|
979
979
|
fe as T,
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
980
|
+
qe as _,
|
|
981
|
+
le as a,
|
|
982
|
+
Ke as b,
|
|
983
|
+
ee as c,
|
|
984
984
|
Z as d,
|
|
985
|
-
|
|
986
|
-
|
|
985
|
+
ze as e,
|
|
986
|
+
nt as f,
|
|
987
987
|
se as g,
|
|
988
988
|
Ue as r,
|
|
989
|
-
|
|
989
|
+
$e as u
|
|
990
990
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as c } from "react/jsx-runtime";
|
|
2
|
-
import { c as o } from "./createSvgIcon-
|
|
2
|
+
import { c as o } from "./createSvgIcon-Crk7qT6j.js";
|
|
3
3
|
const e = o(/* @__PURE__ */ c("path", {
|
|
4
4
|
d: "M19 5v14H5V5zm0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2"
|
|
5
5
|
}), "CheckBoxOutlineBlank"), n = o(/* @__PURE__ */ c("path", {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as O from "react";
|
|
2
|
-
import {
|
|
2
|
+
import { b as N, g as j, u as R, s as p, c as U, e as l, f as E, m as g, P as e } from "./DefaultPropsProvider-BQx1AiAq.js";
|
|
3
3
|
import { c as I, a as z } from "./createSimplePaletteValueFilter-Bz8RuRaa.js";
|
|
4
4
|
import { jsx as y, jsxs as F } from "react/jsx-runtime";
|
|
5
5
|
import { css as w, keyframes as T } from "@emotion/react";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
-
import { c as r } from "./createSvgIcon-
|
|
2
|
+
import { c as r } from "./createSvgIcon-Crk7qT6j.js";
|
|
3
3
|
const c = r(/* @__PURE__ */ o("path", {
|
|
4
4
|
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"
|
|
5
5
|
}), "Clear");
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import { c as r } from "./createSvgIcon-Crk7qT6j.js";
|
|
3
|
+
const c = r(/* @__PURE__ */ o("path", {
|
|
4
|
+
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"
|
|
5
|
+
}), "Close");
|
|
6
|
+
export {
|
|
7
|
+
c as C
|
|
8
|
+
};
|
|
@@ -2776,33 +2776,34 @@ function So(e) {
|
|
|
2776
2776
|
return bn(e);
|
|
2777
2777
|
}
|
|
2778
2778
|
export {
|
|
2779
|
+
lo as A,
|
|
2779
2780
|
Zr as C,
|
|
2780
2781
|
q as P,
|
|
2781
2782
|
Tn as T,
|
|
2782
|
-
|
|
2783
|
-
|
|
2783
|
+
ao as a,
|
|
2784
|
+
Ot as b,
|
|
2784
2785
|
en as c,
|
|
2785
2786
|
De as d,
|
|
2786
|
-
|
|
2787
|
-
|
|
2788
|
-
|
|
2789
|
-
|
|
2787
|
+
He as e,
|
|
2788
|
+
ho as f,
|
|
2789
|
+
go as g,
|
|
2790
|
+
wt as h,
|
|
2790
2791
|
Q as i,
|
|
2791
|
-
|
|
2792
|
-
|
|
2793
|
-
|
|
2792
|
+
Ge as j,
|
|
2793
|
+
Jt as k,
|
|
2794
|
+
de as l,
|
|
2794
2795
|
bo as m,
|
|
2795
|
-
|
|
2796
|
-
|
|
2797
|
-
|
|
2796
|
+
so as n,
|
|
2797
|
+
an as o,
|
|
2798
|
+
oe as p,
|
|
2798
2799
|
It as q,
|
|
2799
|
-
|
|
2800
|
+
co as r,
|
|
2800
2801
|
yo as s,
|
|
2801
|
-
|
|
2802
|
+
Qn as t,
|
|
2802
2803
|
So as u,
|
|
2803
|
-
|
|
2804
|
-
|
|
2805
|
-
|
|
2806
|
-
|
|
2807
|
-
|
|
2804
|
+
xe as v,
|
|
2805
|
+
We as w,
|
|
2806
|
+
Un as x,
|
|
2807
|
+
Z as y,
|
|
2808
|
+
j as z
|
|
2808
2809
|
};
|