@amateescu/portal-ui-components 0.0.48 → 0.0.49
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.js +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
|
@@ -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 t = o(/* @__PURE__ */ c("path", {
|
|
4
4
|
d: "M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14"
|
|
5
5
|
}), "Search");
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
._filterContainer_1m4k6_1{display:flex;flex-direction:row;justify-content:space-between}@media(max-width:1200px){._filterContainer_1m4k6_1{flex-direction:column;gap:10px}}._filterCategories_1m4k6_13{display:flex;flex-direction:row;margin-right:10px;flex-wrap:wrap;gap:8px}@media(max-width:1200px){._filterCategories_1m4k6_13{margin-right:0}}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
._accordion_4f9hk_1{box-shadow:none!important;margin:8px 0!important}._filterBackContainer_4f9hk_6{display:flex;align-items:center;padding:15px 20px}._drawerList_4f9hk_12{flex:1;overflow-y:auto;padding:0 20px}._drawerButtons_4f9hk_18{display:flex;flex-direction:row;gap:8px;padding:12px 16px}._drawerButtons_4f9hk_18>*{flex:1}._back_4f9hk_28{margin-left:10px;font-weight:600;cursor:pointer;font-size:16px}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
._freeTextOptionsContainer_1ctmu_1{margin-top:10px;width:100%;background-color:var(--color-white);border-radius:16px;padding:10px}._drawerButtons_1ctmu_9{display:flex;flex-direction:row;justify-content:space-around;margin:auto auto 0 0;padding:10px}._drawerButtons_1ctmu_9>*{margin-right:10px}._validationMsg_1ctmu_23{margin:0;font-size:var(--font-size-small);color:var(--color-red)}._customScrollbar_1ctmu_30{overflow-y:hidden;scrollbar-width:thin}._customScrollbar_1ctmu_30::-webkit-scrollbar{width:8px}
|
|
@@ -1,70 +1,18 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
function E(c = {}) {
|
|
8
|
-
const {
|
|
9
|
-
themeId: a,
|
|
10
|
-
defaultTheme: i,
|
|
11
|
-
defaultClassName: r = "MuiBox-root",
|
|
12
|
-
generateClassName: n
|
|
13
|
-
} = c, l = h("div", {
|
|
14
|
-
shouldForwardProp: (o) => o !== "theme" && o !== "sx" && o !== "as"
|
|
15
|
-
})(y);
|
|
16
|
-
return /* @__PURE__ */ j.forwardRef(function(f, u) {
|
|
17
|
-
const t = P(i), {
|
|
18
|
-
className: d,
|
|
19
|
-
component: p = "div",
|
|
20
|
-
...x
|
|
21
|
-
} = b(f);
|
|
22
|
-
return /* @__PURE__ */ s(l, {
|
|
23
|
-
as: p,
|
|
24
|
-
ref: u,
|
|
25
|
-
className: C(d, n ? n(r) : r),
|
|
26
|
-
theme: a && t[a] || t,
|
|
27
|
-
...x
|
|
28
|
-
});
|
|
29
|
-
});
|
|
30
|
-
}
|
|
31
|
-
const I = T("MuiBox", ["root"]), O = B(), m = E({
|
|
32
|
-
themeId: g,
|
|
33
|
-
defaultTheme: O,
|
|
34
|
-
defaultClassName: I.root,
|
|
35
|
-
generateClassName: N.generate
|
|
36
|
-
});
|
|
37
|
-
process.env.NODE_ENV !== "production" && (m.propTypes = {
|
|
38
|
-
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
39
|
-
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
40
|
-
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
41
|
-
// └─────────────────────────────────────────────────────────────────────┘
|
|
42
|
-
/**
|
|
43
|
-
* @ignore
|
|
44
|
-
*/
|
|
45
|
-
children: e.node,
|
|
46
|
-
/**
|
|
47
|
-
* The component used for the root node.
|
|
48
|
-
* Either a string to use a HTML element or a component.
|
|
49
|
-
*/
|
|
50
|
-
component: e.elementType,
|
|
51
|
-
/**
|
|
52
|
-
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
53
|
-
*/
|
|
54
|
-
sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object])
|
|
55
|
-
});
|
|
56
|
-
function S() {
|
|
57
|
-
return /* @__PURE__ */ s(
|
|
58
|
-
m,
|
|
1
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { B as i } from "../../Box-DU079Glg.js";
|
|
3
|
+
import { C as t } from "../../CircularProgress-D1FWO7Cz.js";
|
|
4
|
+
function m() {
|
|
5
|
+
return /* @__PURE__ */ r(
|
|
6
|
+
i,
|
|
59
7
|
{
|
|
60
8
|
display: "flex",
|
|
61
9
|
justifyContent: "center",
|
|
62
10
|
alignItems: "center",
|
|
63
11
|
minHeight: "100%",
|
|
64
|
-
children: /* @__PURE__ */
|
|
12
|
+
children: /* @__PURE__ */ r(t, {})
|
|
65
13
|
}
|
|
66
14
|
);
|
|
67
15
|
}
|
|
68
16
|
export {
|
|
69
|
-
|
|
17
|
+
m as LoadingAnimation
|
|
70
18
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as e, jsxs as o } from "react/jsx-runtime";
|
|
2
|
-
import { c as u } from "../../createSvgIcon-
|
|
2
|
+
import { c as u } from "../../createSvgIcon-Crk7qT6j.js";
|
|
3
3
|
import { Container as p, CssBaseline as h, Box as i, Avatar as g, Typography as l, TextField as s, Button as x, Alert as v } from "@mui/material";
|
|
4
4
|
import { t as r } from "i18next";
|
|
5
5
|
const f = u(/* @__PURE__ */ e("path", {
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { jsx as u } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { b as P, c as a, r as m } from "../../ButtonBase-ugYh038t.js";
|
|
3
3
|
import * as f from "react";
|
|
4
|
-
import {
|
|
5
|
-
import { u as O, a as Y, b as Q, c as q, r as T, P as B,
|
|
6
|
-
import { u as y } from "../../useFormControl-
|
|
7
|
-
import {
|
|
4
|
+
import { b as z, g as I, s as M, c as L, f as U, P as e } from "../../DefaultPropsProvider-BQx1AiAq.js";
|
|
5
|
+
import { u as O, a as Y, b as Q, c as q, r as T, P as B, d as H, e as $, f as K, g as Z, h as G, i as J, j as X, C as ee, k as b, l as R, m as oe, v as C, s as F, n as te, D as ae, o as ne } from "../../useMobilePicker-BombQ5QA.js";
|
|
6
|
+
import { u as y } from "../../useFormControl-Ivp9nwoj.js";
|
|
7
|
+
import { T as se } from "../../listItemButtonClasses-BLTBU8Yh.js";
|
|
8
|
+
import { r as N } from "../../useSlot-B1oIMjd_.js";
|
|
8
9
|
function re(r) {
|
|
9
10
|
return z("MuiDatePickerToolbar", r);
|
|
10
11
|
}
|
|
@@ -15,7 +16,7 @@ const le = ["toolbarFormat", "toolbarPlaceholder", "className", "classes"], ie =
|
|
|
15
16
|
}, re, r), ce = M(B, {
|
|
16
17
|
name: "MuiDatePickerToolbar",
|
|
17
18
|
slot: "Root"
|
|
18
|
-
})({}), de = M(
|
|
19
|
+
})({}), de = M(se, {
|
|
19
20
|
name: "MuiDatePickerToolbar",
|
|
20
21
|
slot: "Title"
|
|
21
22
|
})({
|
|
@@ -98,12 +99,12 @@ function S(r, n) {
|
|
|
98
99
|
const t = y({
|
|
99
100
|
props: r,
|
|
100
101
|
name: n
|
|
101
|
-
}), s =
|
|
102
|
+
}), s = H(t), o = f.useMemo(() => t.localeText?.toolbarTitle == null ? t.localeText : a({}, t.localeText, {
|
|
102
103
|
datePickerToolbarTitle: t.localeText.toolbarTitle
|
|
103
104
|
}), [t.localeText]);
|
|
104
105
|
return a({}, t, s, {
|
|
105
106
|
localeText: o
|
|
106
|
-
},
|
|
107
|
+
}, $({
|
|
107
108
|
views: t.views,
|
|
108
109
|
openTo: t.openTo,
|
|
109
110
|
defaultViews: ["year", "day"],
|
|
@@ -115,8 +116,8 @@ function S(r, n) {
|
|
|
115
116
|
});
|
|
116
117
|
}
|
|
117
118
|
const ue = (r) => {
|
|
118
|
-
const n =
|
|
119
|
-
return
|
|
119
|
+
const n = K(r);
|
|
120
|
+
return Z({
|
|
120
121
|
manager: n,
|
|
121
122
|
props: r
|
|
122
123
|
});
|
|
@@ -127,18 +128,18 @@ const ue = (r) => {
|
|
|
127
128
|
}), {
|
|
128
129
|
slots: o,
|
|
129
130
|
slotProps: l
|
|
130
|
-
} = s, i = P(s, fe), c =
|
|
131
|
+
} = s, i = P(s, fe), c = G({
|
|
131
132
|
slotProps: l,
|
|
132
133
|
ref: t,
|
|
133
134
|
externalForwardedProps: i
|
|
134
135
|
}), d = ue(c);
|
|
135
|
-
return /* @__PURE__ */ u(
|
|
136
|
+
return /* @__PURE__ */ u(J, {
|
|
136
137
|
slots: o,
|
|
137
138
|
slotProps: l,
|
|
138
139
|
inputRef: i.inputRef,
|
|
139
|
-
children: /* @__PURE__ */ u(
|
|
140
|
+
children: /* @__PURE__ */ u(X, {
|
|
140
141
|
fieldResponse: d,
|
|
141
|
-
defaultOpenPickerIcon:
|
|
142
|
+
defaultOpenPickerIcon: ee
|
|
142
143
|
})
|
|
143
144
|
});
|
|
144
145
|
});
|
|
@@ -445,7 +446,7 @@ const k = /* @__PURE__ */ f.forwardRef(function(n, t) {
|
|
|
445
446
|
})
|
|
446
447
|
}), {
|
|
447
448
|
renderPicker: c
|
|
448
|
-
} =
|
|
449
|
+
} = oe({
|
|
449
450
|
ref: t,
|
|
450
451
|
props: i,
|
|
451
452
|
valueManager: F,
|
|
@@ -795,7 +796,7 @@ const j = /* @__PURE__ */ f.forwardRef(function(n, t) {
|
|
|
795
796
|
})
|
|
796
797
|
}), {
|
|
797
798
|
renderPicker: c
|
|
798
|
-
} =
|
|
799
|
+
} = te({
|
|
799
800
|
ref: t,
|
|
800
801
|
props: i,
|
|
801
802
|
valueManager: F,
|
|
@@ -1131,9 +1132,9 @@ const be = ["desktopModeMediaQuery"], w = /* @__PURE__ */ f.forwardRef(function(
|
|
|
1131
1132
|
props: n,
|
|
1132
1133
|
name: "MuiDatePicker"
|
|
1133
1134
|
}), {
|
|
1134
|
-
desktopModeMediaQuery: o =
|
|
1135
|
+
desktopModeMediaQuery: o = ae
|
|
1135
1136
|
} = s, l = P(s, be);
|
|
1136
|
-
return
|
|
1137
|
+
return ne(o, {
|
|
1137
1138
|
defaultMatches: !0
|
|
1138
1139
|
}) ? /* @__PURE__ */ u(k, a({
|
|
1139
1140
|
ref: t
|
|
@@ -1468,7 +1469,7 @@ process.env.NODE_ENV !== "production" && (w.propTypes = {
|
|
|
1468
1469
|
*/
|
|
1469
1470
|
yearsPerRow: e.oneOf([3, 4])
|
|
1470
1471
|
});
|
|
1471
|
-
function
|
|
1472
|
+
function Te({
|
|
1472
1473
|
label: r,
|
|
1473
1474
|
value: n,
|
|
1474
1475
|
handleChange: t,
|
|
@@ -1511,5 +1512,5 @@ function Oe({
|
|
|
1511
1512
|
);
|
|
1512
1513
|
}
|
|
1513
1514
|
export {
|
|
1514
|
-
|
|
1515
|
+
Te as PassportDatePicker
|
|
1515
1516
|
};
|