@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.
Files changed (89) hide show
  1. package/dist/Box-DU079Glg.js +57 -0
  2. package/dist/{Button-Bx3LbSbV.js → Button-BgsadnaR.js} +13 -13
  3. package/dist/{ButtonBase-DV7q7wxh.js → ButtonBase-ugYh038t.js} +8 -8
  4. package/dist/{CheckBox-YBX2j1qt.js → CheckBox-D9YmAV-l.js} +1 -1
  5. package/dist/{CircularProgress-BXi3nXc9.js → CircularProgress-D1FWO7Cz.js} +1 -1
  6. package/dist/{Clear-Bz9hw2Wj.js → Clear-B32X2R1T.js} +1 -1
  7. package/dist/Close-IqnCWZPM.js +8 -0
  8. package/dist/{DefaultPropsProvider-ByENA_w0.js → DefaultPropsProvider-BQx1AiAq.js} +20 -19
  9. package/dist/ExpandMore-CHNJSd5N.js +8 -0
  10. package/dist/ListItem-1DiNy9oq.js +422 -0
  11. package/dist/ListItemText-VX0lo95z.js +434 -0
  12. package/dist/Modal-BnD35xWv.js +1325 -0
  13. package/dist/{Search-D_9Ptbky.js → Search-DnJ3yLMg.js} +1 -1
  14. package/dist/assets/PassportFilter.css +1 -0
  15. package/dist/assets/PassportFilterDrawer.css +1 -0
  16. package/dist/assets/PassportFilterFreeTextFilter.css +1 -0
  17. package/dist/components/LoadingAnimation/LoadingAnimation.js +8 -60
  18. package/dist/components/Login/Login.js +1 -1
  19. package/dist/components/PassportButton/PassportButton.js +1 -1
  20. package/dist/components/PassportDatePicker/PassportDatePicker.js +21 -20
  21. package/dist/components/PassportDateTimePicker/PassportDateTimePicker.js +298 -291
  22. package/dist/components/PassportDatesFilter/PassportDatesFilter.js +24 -26
  23. package/dist/components/PassportFilter/PassportFilter.d.ts +5 -0
  24. package/dist/components/PassportFilter/PassportFilter.d.ts.map +1 -0
  25. package/dist/components/PassportFilter/PassportFilter.js +154 -0
  26. package/dist/components/PassportFilter/PassportFilter.stories.d.ts +13 -0
  27. package/dist/components/PassportFilter/PassportFilter.stories.d.ts.map +1 -0
  28. package/dist/components/PassportFilter/PassportFilter.types.d.ts +61 -0
  29. package/dist/components/PassportFilter/PassportFilter.types.d.ts.map +1 -0
  30. package/dist/components/PassportFilter/PassportFilter.types.js +5 -0
  31. package/dist/components/PassportFilter/PassportFilterDrawer/PassportFilterDrawer.d.ts +5 -0
  32. package/dist/components/PassportFilter/PassportFilterDrawer/PassportFilterDrawer.d.ts.map +1 -0
  33. package/dist/components/PassportFilter/PassportFilterDrawer/PassportFilterDrawer.js +756 -0
  34. package/dist/components/PassportFilter/PassportFilterDrawer/PassportFilterDrawer.types.d.ts +28 -0
  35. package/dist/components/PassportFilter/PassportFilterDrawer/PassportFilterDrawer.types.d.ts.map +1 -0
  36. package/dist/components/PassportFilter/PassportFilterDrawer/PassportFilterDrawer.types.js +1 -0
  37. package/dist/components/PassportFilter/PassportFilterFreeTextButtons/PassportFilterFreeTextButtons.d.ts +4 -0
  38. package/dist/components/PassportFilter/PassportFilterFreeTextButtons/PassportFilterFreeTextButtons.d.ts.map +1 -0
  39. package/dist/components/PassportFilter/PassportFilterFreeTextButtons/PassportFilterFreeTextButtons.js +94 -0
  40. package/dist/components/PassportFilter/PassportFilterFreeTextButtons/PassportFilterFreeTextButtons.types.d.ts +16 -0
  41. package/dist/components/PassportFilter/PassportFilterFreeTextButtons/PassportFilterFreeTextButtons.types.d.ts.map +1 -0
  42. package/dist/components/PassportFilter/PassportFilterFreeTextButtons/PassportFilterFreeTextButtons.types.js +1 -0
  43. package/dist/components/PassportFilter/PassportFilterFreeTextFilter/PassportFilterFreeTextFilter.d.ts +4 -0
  44. package/dist/components/PassportFilter/PassportFilterFreeTextFilter/PassportFilterFreeTextFilter.d.ts.map +1 -0
  45. package/dist/components/PassportFilter/PassportFilterFreeTextFilter/PassportFilterFreeTextFilter.js +736 -0
  46. package/dist/components/PassportFilter/PassportFilterFreeTextFilter/PassportFilterFreeTextFilter.types.d.ts +37 -0
  47. package/dist/components/PassportFilter/PassportFilterFreeTextFilter/PassportFilterFreeTextFilter.types.d.ts.map +1 -0
  48. package/dist/components/PassportFilter/PassportFilterFreeTextFilter/PassportFilterFreeTextFilter.types.js +1 -0
  49. package/dist/components/PassportFilter/PassportFilterSelectionList/PassportFilterSelectionList.d.ts +4 -0
  50. package/dist/components/PassportFilter/PassportFilterSelectionList/PassportFilterSelectionList.d.ts.map +1 -0
  51. package/dist/components/PassportFilter/PassportFilterSelectionList/PassportFilterSelectionList.js +180 -0
  52. package/dist/components/PassportFilter/PassportFilterSelectionList/PassportFilterSelectionList.types.d.ts +17 -0
  53. package/dist/components/PassportFilter/PassportFilterSelectionList/PassportFilterSelectionList.types.d.ts.map +1 -0
  54. package/dist/components/PassportFilter/PassportFilterSelectionList/PassportFilterSelectionList.types.js +1 -0
  55. package/dist/components/PassportInput/PassportInput.js +2 -2
  56. package/dist/components/PassportMultiSelect/PassportMultiSelect.js +1 -1
  57. package/dist/components/PassportPagination/PassportPagination.js +96 -94
  58. package/dist/components/PassportSearchableMultiSelect/PassportSearchableMultiSelect.js +1 -1
  59. package/dist/components/PassportSearchableMultiSelectDetailed/PassportSearchableMultiSelectDetailed.js +1 -1
  60. package/dist/components/PassportTreeSelect/PassportTreeSelect.js +82 -79
  61. package/dist/components/index.d.ts +1 -0
  62. package/dist/components/index.d.ts.map +1 -1
  63. package/dist/components/index.js +4 -2
  64. package/dist/{createSvgIcon-D5xeIEZ_.js → createSvgIcon-Crk7qT6j.js} +1 -1
  65. package/dist/{extendSxProp-BtJlbIOl.js → extendSxProp-BHclE0DL.js} +1 -1
  66. package/dist/getReactElementRef-CIbXfZbo.js +45 -0
  67. package/dist/index-DfCFE9GG.js +9 -0
  68. package/dist/listItemButtonClasses-BLTBU8Yh.js +476 -0
  69. package/dist/listItemIconClasses-B_UAYnw7.js +9 -0
  70. package/dist/listItemTextClasses-D5in-Wsc.js +9 -0
  71. package/dist/main.js +41 -37
  72. package/dist/portal-utils/arrays.d.ts +2 -0
  73. package/dist/portal-utils/arrays.d.ts.map +1 -0
  74. package/dist/portal-utils/arrays.js +10 -0
  75. package/dist/portal-utils/index.d.ts +1 -0
  76. package/dist/portal-utils/index.d.ts.map +1 -1
  77. package/dist/portal-utils/index.js +17 -15
  78. package/dist/types/index.d.ts +1 -0
  79. package/dist/types/index.d.ts.map +1 -1
  80. package/dist/useControlled-D1L5tREc.js +31 -0
  81. package/dist/useFormControl-Ivp9nwoj.js +53 -0
  82. package/dist/{useMobilePicker-CFsW9hUG.js → useMobilePicker-BombQ5QA.js} +5381 -7587
  83. package/dist/useSlot-B1oIMjd_.js +126 -0
  84. package/dist/useTheme-9dlwNzrD.js +10 -0
  85. package/dist/{useTheme-Cz8ZipjJ.js → useTheme-Dxbczges.js} +3 -3
  86. package/dist/useThemeProps-j6Er0aGl.js +27 -0
  87. package/dist/{useFormControl-MVwkyimi.js → utils-6k-H8qFR.js} +155 -231
  88. package/package.json +1 -1
  89. 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-D5xeIEZ_.js";
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 s } from "react/jsx-runtime";
2
- import { h, j as y, c as C, a as T, C as N, T as g, k as B, P as e } from "../../DefaultPropsProvider-ByENA_w0.js";
3
- import * as j from "react";
4
- import { u as P } from "../../useTheme-Cz8ZipjJ.js";
5
- import { e as b } from "../../extendSxProp-BtJlbIOl.js";
6
- import { C as v } from "../../CircularProgress-BXi3nXc9.js";
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__ */ s(v, {})
12
+ children: /* @__PURE__ */ r(t, {})
65
13
  }
66
14
  );
67
15
  }
68
16
  export {
69
- S as LoadingAnimation
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-D5xeIEZ_.js";
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,5 +1,5 @@
1
1
  import { jsx as i } from "react/jsx-runtime";
2
- import { B as l } from "../../Button-Bx3LbSbV.js";
2
+ import { B as l } from "../../Button-BgsadnaR.js";
3
3
  const p = ({
4
4
  content: r,
5
5
  height: o = "40px",
@@ -1,10 +1,11 @@
1
1
  import { jsx as u } from "react/jsx-runtime";
2
- import { _ as P, a, r as m } from "../../ButtonBase-DV7q7wxh.js";
2
+ import { b as P, c as a, r as m } from "../../ButtonBase-ugYh038t.js";
3
3
  import * as f from "react";
4
- import { g as z, a as I, s as M, c as L, e as U, P as e } from "../../DefaultPropsProvider-ByENA_w0.js";
5
- import { u as O, a as Y, b as Q, c as q, r as T, P as B, T as H, d as $, e as K, f as Z, g as G, h as J, i as X, j as ee, C as oe, k as R, l as te, v as C, s as F, m as b, n as ae, D as ne, o as se } from "../../useMobilePicker-CFsW9hUG.js";
6
- import { u as y } from "../../useFormControl-MVwkyimi.js";
7
- import { r as N } from "../../useSlot-Bm5YJQBR.js";
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(H, {
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 = $(t), o = f.useMemo(() => t.localeText?.toolbarTitle == null ? t.localeText : a({}, t.localeText, {
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
- }, K({
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 = Z(r);
119
- return G({
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 = J({
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(X, {
136
+ return /* @__PURE__ */ u(J, {
136
137
  slots: o,
137
138
  slotProps: l,
138
139
  inputRef: i.inputRef,
139
- children: /* @__PURE__ */ u(ee, {
140
+ children: /* @__PURE__ */ u(X, {
140
141
  fieldResponse: d,
141
- defaultOpenPickerIcon: oe
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
- } = te({
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
- } = ae({
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 = ne
1135
+ desktopModeMediaQuery: o = ae
1135
1136
  } = s, l = P(s, be);
1136
- return se(o, {
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 Oe({
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
- Oe as PassportDatePicker
1515
+ Te as PassportDatePicker
1515
1516
  };