@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.
Files changed (95) 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.d.ts +1 -1
  60. package/dist/components/PassportSearchableMultiSelectDetailed/PassportSearchableMultiSelectDetailed.d.ts.map +1 -1
  61. package/dist/components/PassportSearchableMultiSelectDetailed/PassportSearchableMultiSelectDetailed.js +31 -28
  62. package/dist/components/PassportSearchableMultiSelectDetailed/PassportSearchableMultiSelectDetailed.stories.d.ts +1 -0
  63. package/dist/components/PassportSearchableMultiSelectDetailed/PassportSearchableMultiSelectDetailed.stories.d.ts.map +1 -1
  64. package/dist/components/PassportSearchableMultiSelectDetailed/PassportSearchableMultiSelectDetailed.types.d.ts +1 -0
  65. package/dist/components/PassportSearchableMultiSelectDetailed/PassportSearchableMultiSelectDetailed.types.d.ts.map +1 -1
  66. package/dist/components/PassportTreeSelect/PassportTreeSelect.js +82 -79
  67. package/dist/components/index.d.ts +1 -0
  68. package/dist/components/index.d.ts.map +1 -1
  69. package/dist/components/index.js +4 -2
  70. package/dist/{createSvgIcon-D5xeIEZ_.js → createSvgIcon-Crk7qT6j.js} +1 -1
  71. package/dist/{extendSxProp-BtJlbIOl.js → extendSxProp-BHclE0DL.js} +1 -1
  72. package/dist/getReactElementRef-CIbXfZbo.js +45 -0
  73. package/dist/index-DfCFE9GG.js +9 -0
  74. package/dist/listItemButtonClasses-BLTBU8Yh.js +476 -0
  75. package/dist/listItemIconClasses-B_UAYnw7.js +9 -0
  76. package/dist/listItemTextClasses-D5in-Wsc.js +9 -0
  77. package/dist/main.js +41 -37
  78. package/dist/portal-utils/arrays.d.ts +2 -0
  79. package/dist/portal-utils/arrays.d.ts.map +1 -0
  80. package/dist/portal-utils/arrays.js +10 -0
  81. package/dist/portal-utils/index.d.ts +1 -0
  82. package/dist/portal-utils/index.d.ts.map +1 -1
  83. package/dist/portal-utils/index.js +17 -15
  84. package/dist/types/index.d.ts +1 -0
  85. package/dist/types/index.d.ts.map +1 -1
  86. package/dist/useControlled-D1L5tREc.js +31 -0
  87. package/dist/useFormControl-Ivp9nwoj.js +53 -0
  88. package/dist/{useMobilePicker-CFsW9hUG.js → useMobilePicker-BombQ5QA.js} +5381 -7587
  89. package/dist/useSlot-B1oIMjd_.js +126 -0
  90. package/dist/useTheme-9dlwNzrD.js +10 -0
  91. package/dist/{useTheme-Cz8ZipjJ.js → useTheme-Dxbczges.js} +3 -3
  92. package/dist/useThemeProps-j6Er0aGl.js +27 -0
  93. package/dist/{useFormControl-MVwkyimi.js → utils-6k-H8qFR.js} +155 -231
  94. package/package.json +1 -1
  95. 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 { a as q, g as J, r as K, u as Q, s as f, c as E, b as r, e as X, l as Y, m as Z, P as t } from "./DefaultPropsProvider-ByENA_w0.js";
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-DV7q7wxh.js";
6
- import { C as ao } from "./CircularProgress-BXi3nXc9.js";
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 = f(no, {
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 = f("span", {
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 = f("span", {
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 = f("span", {
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 = f("span", {
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: y = "center",
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: y,
509
+ loadingPosition: f,
510
510
  size: G,
511
511
  type: m,
512
512
  variant: F
513
- }, e = lo(d), _ = (w || l && y === "start") && /* @__PURE__ */ c(po, {
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 && y === "end") && /* @__PURE__ */ c(uo, {
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: [_, y !== "end" && $, S, y === "end" && $, H]
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, a as de, u as he, s as oe, g as Be, e as Le } from "./DefaultPropsProvider-ByENA_w0.js";
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
- Ke as _,
981
- ee as a,
982
- qe as b,
983
- $e as c,
980
+ qe as _,
981
+ le as a,
982
+ Ke as b,
983
+ ee as c,
984
984
  Z as d,
985
- nt as e,
986
- ze as f,
985
+ ze as e,
986
+ nt as f,
987
987
  se as g,
988
988
  Ue as r,
989
- le as u
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-D5xeIEZ_.js";
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 { g as N, a as j, u as R, s as p, c as U, b as l, e as E, m as g, P as e } from "./DefaultPropsProvider-ByENA_w0.js";
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-D5xeIEZ_.js";
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
- go as a,
2783
- He as b,
2783
+ ao as a,
2784
+ Ot as b,
2784
2785
  en as c,
2785
2786
  De as d,
2786
- ho as e,
2787
- wt as f,
2788
- Ot as g,
2789
- Jt as h,
2787
+ He as e,
2788
+ ho as f,
2789
+ go as g,
2790
+ wt as h,
2790
2791
  Q as i,
2791
- de as j,
2792
- so as k,
2793
- co as l,
2792
+ Ge as j,
2793
+ Jt as k,
2794
+ de as l,
2794
2795
  bo as m,
2795
- ao as n,
2796
- xe as o,
2797
- We as p,
2796
+ so as n,
2797
+ an as o,
2798
+ oe as p,
2798
2799
  It as q,
2799
- Ge as r,
2800
+ co as r,
2800
2801
  yo as s,
2801
- Un as t,
2802
+ Qn as t,
2802
2803
  So as u,
2803
- oe as v,
2804
- Qn as w,
2805
- Z as x,
2806
- j as y,
2807
- lo as z
2804
+ xe as v,
2805
+ We as w,
2806
+ Un as x,
2807
+ Z as y,
2808
+ j as z
2808
2809
  };
@@ -0,0 +1,8 @@
1
+ import { jsx as o } from "react/jsx-runtime";
2
+ import { c as r } from "./createSvgIcon-Crk7qT6j.js";
3
+ const t = r(/* @__PURE__ */ o("path", {
4
+ d: "M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"
5
+ }), "ExpandMore");
6
+ export {
7
+ t as E
8
+ };