@amateescu/portal-ui-components 0.0.47 → 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 (90) 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/PassportDateRangeWrapper.css +1 -1
  15. package/dist/assets/PassportFilter.css +1 -0
  16. package/dist/assets/PassportFilterDrawer.css +1 -0
  17. package/dist/assets/PassportFilterFreeTextFilter.css +1 -0
  18. package/dist/components/LoadingAnimation/LoadingAnimation.js +8 -60
  19. package/dist/components/Login/Login.js +1 -1
  20. package/dist/components/PassportButton/PassportButton.js +1 -1
  21. package/dist/components/PassportDatePicker/PassportDatePicker.js +21 -20
  22. package/dist/components/PassportDateTimePicker/PassportDateTimePicker.js +298 -291
  23. package/dist/components/PassportDatesFilter/PassportDatesFilter.js +24 -26
  24. package/dist/components/PassportFilter/PassportFilter.d.ts +5 -0
  25. package/dist/components/PassportFilter/PassportFilter.d.ts.map +1 -0
  26. package/dist/components/PassportFilter/PassportFilter.js +154 -0
  27. package/dist/components/PassportFilter/PassportFilter.stories.d.ts +13 -0
  28. package/dist/components/PassportFilter/PassportFilter.stories.d.ts.map +1 -0
  29. package/dist/components/PassportFilter/PassportFilter.types.d.ts +61 -0
  30. package/dist/components/PassportFilter/PassportFilter.types.d.ts.map +1 -0
  31. package/dist/components/PassportFilter/PassportFilter.types.js +5 -0
  32. package/dist/components/PassportFilter/PassportFilterDrawer/PassportFilterDrawer.d.ts +5 -0
  33. package/dist/components/PassportFilter/PassportFilterDrawer/PassportFilterDrawer.d.ts.map +1 -0
  34. package/dist/components/PassportFilter/PassportFilterDrawer/PassportFilterDrawer.js +756 -0
  35. package/dist/components/PassportFilter/PassportFilterDrawer/PassportFilterDrawer.types.d.ts +28 -0
  36. package/dist/components/PassportFilter/PassportFilterDrawer/PassportFilterDrawer.types.d.ts.map +1 -0
  37. package/dist/components/PassportFilter/PassportFilterDrawer/PassportFilterDrawer.types.js +1 -0
  38. package/dist/components/PassportFilter/PassportFilterFreeTextButtons/PassportFilterFreeTextButtons.d.ts +4 -0
  39. package/dist/components/PassportFilter/PassportFilterFreeTextButtons/PassportFilterFreeTextButtons.d.ts.map +1 -0
  40. package/dist/components/PassportFilter/PassportFilterFreeTextButtons/PassportFilterFreeTextButtons.js +94 -0
  41. package/dist/components/PassportFilter/PassportFilterFreeTextButtons/PassportFilterFreeTextButtons.types.d.ts +16 -0
  42. package/dist/components/PassportFilter/PassportFilterFreeTextButtons/PassportFilterFreeTextButtons.types.d.ts.map +1 -0
  43. package/dist/components/PassportFilter/PassportFilterFreeTextButtons/PassportFilterFreeTextButtons.types.js +1 -0
  44. package/dist/components/PassportFilter/PassportFilterFreeTextFilter/PassportFilterFreeTextFilter.d.ts +4 -0
  45. package/dist/components/PassportFilter/PassportFilterFreeTextFilter/PassportFilterFreeTextFilter.d.ts.map +1 -0
  46. package/dist/components/PassportFilter/PassportFilterFreeTextFilter/PassportFilterFreeTextFilter.js +736 -0
  47. package/dist/components/PassportFilter/PassportFilterFreeTextFilter/PassportFilterFreeTextFilter.types.d.ts +37 -0
  48. package/dist/components/PassportFilter/PassportFilterFreeTextFilter/PassportFilterFreeTextFilter.types.d.ts.map +1 -0
  49. package/dist/components/PassportFilter/PassportFilterFreeTextFilter/PassportFilterFreeTextFilter.types.js +1 -0
  50. package/dist/components/PassportFilter/PassportFilterSelectionList/PassportFilterSelectionList.d.ts +4 -0
  51. package/dist/components/PassportFilter/PassportFilterSelectionList/PassportFilterSelectionList.d.ts.map +1 -0
  52. package/dist/components/PassportFilter/PassportFilterSelectionList/PassportFilterSelectionList.js +180 -0
  53. package/dist/components/PassportFilter/PassportFilterSelectionList/PassportFilterSelectionList.types.d.ts +17 -0
  54. package/dist/components/PassportFilter/PassportFilterSelectionList/PassportFilterSelectionList.types.d.ts.map +1 -0
  55. package/dist/components/PassportFilter/PassportFilterSelectionList/PassportFilterSelectionList.types.js +1 -0
  56. package/dist/components/PassportInput/PassportInput.js +2 -2
  57. package/dist/components/PassportMultiSelect/PassportMultiSelect.js +1 -1
  58. package/dist/components/PassportPagination/PassportPagination.js +96 -94
  59. package/dist/components/PassportSearchableMultiSelect/PassportSearchableMultiSelect.js +1 -1
  60. package/dist/components/PassportSearchableMultiSelectDetailed/PassportSearchableMultiSelectDetailed.js +1 -1
  61. package/dist/components/PassportTreeSelect/PassportTreeSelect.js +82 -79
  62. package/dist/components/index.d.ts +1 -0
  63. package/dist/components/index.d.ts.map +1 -1
  64. package/dist/components/index.js +4 -2
  65. package/dist/{createSvgIcon-D5xeIEZ_.js → createSvgIcon-Crk7qT6j.js} +1 -1
  66. package/dist/{extendSxProp-BtJlbIOl.js → extendSxProp-BHclE0DL.js} +1 -1
  67. package/dist/getReactElementRef-CIbXfZbo.js +45 -0
  68. package/dist/index-DfCFE9GG.js +9 -0
  69. package/dist/listItemButtonClasses-BLTBU8Yh.js +476 -0
  70. package/dist/listItemIconClasses-B_UAYnw7.js +9 -0
  71. package/dist/listItemTextClasses-D5in-Wsc.js +9 -0
  72. package/dist/main.js +41 -37
  73. package/dist/portal-utils/arrays.d.ts +2 -0
  74. package/dist/portal-utils/arrays.d.ts.map +1 -0
  75. package/dist/portal-utils/arrays.js +10 -0
  76. package/dist/portal-utils/index.d.ts +1 -0
  77. package/dist/portal-utils/index.d.ts.map +1 -1
  78. package/dist/portal-utils/index.js +17 -15
  79. package/dist/types/index.d.ts +1 -0
  80. package/dist/types/index.d.ts.map +1 -1
  81. package/dist/useControlled-D1L5tREc.js +31 -0
  82. package/dist/useFormControl-Ivp9nwoj.js +53 -0
  83. package/dist/{useMobilePicker-CFsW9hUG.js → useMobilePicker-BombQ5QA.js} +5381 -7587
  84. package/dist/useSlot-B1oIMjd_.js +126 -0
  85. package/dist/useTheme-9dlwNzrD.js +10 -0
  86. package/dist/{useTheme-Cz8ZipjJ.js → useTheme-Dxbczges.js} +3 -3
  87. package/dist/useThemeProps-j6Er0aGl.js +27 -0
  88. package/dist/{useFormControl-MVwkyimi.js → utils-6k-H8qFR.js} +155 -231
  89. package/package.json +1 -1
  90. package/dist/useSlot-Bm5YJQBR.js +0 -160
@@ -0,0 +1,476 @@
1
+ import * as d from "react";
2
+ import { P as e, p as V, T as _, a as W, g as T, b as v, u as j, s as C, c as E, e as b, f as L, m as $ } from "./DefaultPropsProvider-BQx1AiAq.js";
3
+ import { jsx as l, jsxs as U } from "react/jsx-runtime";
4
+ import { e as G } from "./extendSxProp-BHclE0DL.js";
5
+ import { u as I } from "./useTheme-Dxbczges.js";
6
+ import { Global as z } from "@emotion/react";
7
+ import { c as A } from "./createSimplePaletteValueFilter-Bz8RuRaa.js";
8
+ function F(o) {
9
+ return o == null || Object.keys(o).length === 0;
10
+ }
11
+ function M(o) {
12
+ const {
13
+ styles: t,
14
+ defaultTheme: r = {}
15
+ } = o;
16
+ return /* @__PURE__ */ l(z, {
17
+ styles: typeof t == "function" ? (n) => t(F(n) ? r : n) : t
18
+ });
19
+ }
20
+ process.env.NODE_ENV !== "production" && (M.propTypes = {
21
+ defaultTheme: e.object,
22
+ styles: e.oneOfType([e.array, e.string, e.object, e.func])
23
+ });
24
+ function m(o) {
25
+ const t = V(o);
26
+ return o !== t && t.styles ? (t.styles.match(/^@layer\s+[^{]*$/) || (t.styles = `@layer global{${t.styles}}`), t) : o;
27
+ }
28
+ function P({
29
+ styles: o,
30
+ themeId: t,
31
+ defaultTheme: r = {}
32
+ }) {
33
+ const s = I(r), n = t && s[t] || s;
34
+ let a = typeof o == "function" ? o(n) : o;
35
+ return n.modularCssLayers && (Array.isArray(a) ? a = a.map((i) => m(typeof i == "function" ? i(n) : i)) : a = m(a)), /* @__PURE__ */ l(M, {
36
+ styles: a
37
+ });
38
+ }
39
+ process.env.NODE_ENV !== "production" && (P.propTypes = {
40
+ // ┌────────────────────────────── Warning ──────────────────────────────┐
41
+ // │ These PropTypes are generated from the TypeScript type definitions. │
42
+ // │ To update them, edit the TypeScript types and run `pnpm proptypes`. │
43
+ // └─────────────────────────────────────────────────────────────────────┘
44
+ /**
45
+ * @ignore
46
+ */
47
+ defaultTheme: e.object,
48
+ /**
49
+ * @ignore
50
+ */
51
+ styles: e.oneOfType([e.array, e.func, e.number, e.object, e.string, e.bool]),
52
+ /**
53
+ * @ignore
54
+ */
55
+ themeId: e.string
56
+ });
57
+ function pe(o, t) {
58
+ return /* @__PURE__ */ d.isValidElement(o) && t.indexOf(
59
+ // For server components `muiName` is available in element.type._payload.value.muiName
60
+ // relevant info - https://github.com/facebook/react/blob/2807d781a08db8e9873687fccc25c0f12b4fb3d4/packages/react/src/ReactLazy.js#L45
61
+ // eslint-disable-next-line no-underscore-dangle
62
+ o.type.muiName ?? o.type?._payload?.value?.muiName
63
+ ) !== -1;
64
+ }
65
+ function B(o) {
66
+ return /* @__PURE__ */ l(P, {
67
+ ...o,
68
+ defaultTheme: W,
69
+ themeId: _
70
+ });
71
+ }
72
+ process.env.NODE_ENV !== "production" && (B.propTypes = {
73
+ // ┌────────────────────────────── Warning ──────────────────────────────┐
74
+ // │ These PropTypes are generated from the TypeScript type definitions. │
75
+ // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
76
+ // └─────────────────────────────────────────────────────────────────────┘
77
+ /**
78
+ * The styles you want to apply globally.
79
+ */
80
+ styles: e.oneOfType([e.array, e.func, e.number, e.object, e.string, e.bool])
81
+ });
82
+ function le(o) {
83
+ return function(r) {
84
+ return (
85
+ // Pigment CSS `globalCss` support callback with theme inside an object but `GlobalStyles` support theme as a callback value.
86
+ /* @__PURE__ */ l(B, {
87
+ styles: typeof o == "function" ? (s) => o({
88
+ theme: s,
89
+ ...r
90
+ }) : o
91
+ })
92
+ );
93
+ };
94
+ }
95
+ function H() {
96
+ return G;
97
+ }
98
+ function k(o) {
99
+ return v("MuiTypography", o);
100
+ }
101
+ const ce = T("MuiTypography", ["root", "h1", "h2", "h3", "h4", "h5", "h6", "subtitle1", "subtitle2", "body1", "body2", "inherit", "button", "caption", "overline", "alignLeft", "alignRight", "alignCenter", "alignJustify", "noWrap", "gutterBottom", "paragraph"]), J = {
102
+ primary: !0,
103
+ secondary: !0,
104
+ error: !0,
105
+ info: !0,
106
+ success: !0,
107
+ warning: !0,
108
+ textPrimary: !0,
109
+ textSecondary: !0,
110
+ textDisabled: !0
111
+ }, q = H(), K = (o) => {
112
+ const {
113
+ align: t,
114
+ gutterBottom: r,
115
+ noWrap: s,
116
+ paragraph: n,
117
+ variant: a,
118
+ classes: i
119
+ } = o, p = {
120
+ root: ["root", a, o.align !== "inherit" && `align${b(t)}`, r && "gutterBottom", s && "noWrap", n && "paragraph"]
121
+ };
122
+ return L(p, k, i);
123
+ }, Q = C("span", {
124
+ name: "MuiTypography",
125
+ slot: "Root",
126
+ overridesResolver: (o, t) => {
127
+ const {
128
+ ownerState: r
129
+ } = o;
130
+ return [t.root, r.variant && t[r.variant], r.align !== "inherit" && t[`align${b(r.align)}`], r.noWrap && t.noWrap, r.gutterBottom && t.gutterBottom, r.paragraph && t.paragraph];
131
+ }
132
+ })($(({
133
+ theme: o
134
+ }) => ({
135
+ margin: 0,
136
+ variants: [{
137
+ props: {
138
+ variant: "inherit"
139
+ },
140
+ style: {
141
+ // Some elements, like <button> on Chrome have default font that doesn't inherit, reset this.
142
+ font: "inherit",
143
+ lineHeight: "inherit",
144
+ letterSpacing: "inherit"
145
+ }
146
+ }, ...Object.entries(o.typography).filter(([t, r]) => t !== "inherit" && r && typeof r == "object").map(([t, r]) => ({
147
+ props: {
148
+ variant: t
149
+ },
150
+ style: r
151
+ })), ...Object.entries(o.palette).filter(A()).map(([t]) => ({
152
+ props: {
153
+ color: t
154
+ },
155
+ style: {
156
+ color: (o.vars || o).palette[t].main
157
+ }
158
+ })), ...Object.entries(o.palette?.text || {}).filter(([, t]) => typeof t == "string").map(([t]) => ({
159
+ props: {
160
+ color: `text${b(t)}`
161
+ },
162
+ style: {
163
+ color: (o.vars || o).palette.text[t]
164
+ }
165
+ })), {
166
+ props: ({
167
+ ownerState: t
168
+ }) => t.align !== "inherit",
169
+ style: {
170
+ textAlign: "var(--Typography-textAlign)"
171
+ }
172
+ }, {
173
+ props: ({
174
+ ownerState: t
175
+ }) => t.noWrap,
176
+ style: {
177
+ overflow: "hidden",
178
+ textOverflow: "ellipsis",
179
+ whiteSpace: "nowrap"
180
+ }
181
+ }, {
182
+ props: ({
183
+ ownerState: t
184
+ }) => t.gutterBottom,
185
+ style: {
186
+ marginBottom: "0.35em"
187
+ }
188
+ }, {
189
+ props: ({
190
+ ownerState: t
191
+ }) => t.paragraph,
192
+ style: {
193
+ marginBottom: 16
194
+ }
195
+ }]
196
+ }))), N = {
197
+ h1: "h1",
198
+ h2: "h2",
199
+ h3: "h3",
200
+ h4: "h4",
201
+ h5: "h5",
202
+ h6: "h6",
203
+ subtitle1: "h6",
204
+ subtitle2: "h6",
205
+ body1: "p",
206
+ body2: "p",
207
+ inherit: "p"
208
+ }, X = /* @__PURE__ */ d.forwardRef(function(t, r) {
209
+ const {
210
+ color: s,
211
+ ...n
212
+ } = j({
213
+ props: t,
214
+ name: "MuiTypography"
215
+ }), a = !J[s], i = q({
216
+ ...n,
217
+ ...a && {
218
+ color: s
219
+ }
220
+ }), {
221
+ align: p = "inherit",
222
+ className: y,
223
+ component: f,
224
+ gutterBottom: g = !1,
225
+ noWrap: h = !1,
226
+ paragraph: c = !1,
227
+ variant: u = "body1",
228
+ variantMapping: x = N,
229
+ ...O
230
+ } = i, S = {
231
+ ...i,
232
+ align: p,
233
+ color: s,
234
+ className: y,
235
+ component: f,
236
+ gutterBottom: g,
237
+ noWrap: h,
238
+ paragraph: c,
239
+ variant: u,
240
+ variantMapping: x
241
+ }, D = f || (c ? "p" : x[u] || N[u]) || "span", R = K(S);
242
+ return /* @__PURE__ */ l(Q, {
243
+ as: D,
244
+ ref: r,
245
+ className: E(R.root, y),
246
+ ...O,
247
+ ownerState: S,
248
+ style: {
249
+ ...p !== "inherit" && {
250
+ "--Typography-textAlign": p
251
+ },
252
+ ...O.style
253
+ }
254
+ });
255
+ });
256
+ process.env.NODE_ENV !== "production" && (X.propTypes = {
257
+ // ┌────────────────────────────── Warning ──────────────────────────────┐
258
+ // │ These PropTypes are generated from the TypeScript type definitions. │
259
+ // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
260
+ // └─────────────────────────────────────────────────────────────────────┘
261
+ /**
262
+ * Set the text-align on the component.
263
+ * @default 'inherit'
264
+ */
265
+ align: e.oneOf(["center", "inherit", "justify", "left", "right"]),
266
+ /**
267
+ * The content of the component.
268
+ */
269
+ children: e.node,
270
+ /**
271
+ * Override or extend the styles applied to the component.
272
+ */
273
+ classes: e.object,
274
+ /**
275
+ * @ignore
276
+ */
277
+ className: e.string,
278
+ /**
279
+ * The color of the component.
280
+ * It supports both default and custom theme colors, which can be added as shown in the
281
+ * [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
282
+ */
283
+ color: e.oneOfType([e.oneOf(["primary", "secondary", "success", "error", "info", "warning", "textPrimary", "textSecondary", "textDisabled"]), e.string]),
284
+ /**
285
+ * The component used for the root node.
286
+ * Either a string to use a HTML element or a component.
287
+ */
288
+ component: e.elementType,
289
+ /**
290
+ * If `true`, the text will have a bottom margin.
291
+ * @default false
292
+ */
293
+ gutterBottom: e.bool,
294
+ /**
295
+ * If `true`, the text will not wrap, but instead will truncate with a text overflow ellipsis.
296
+ *
297
+ * Note that text overflow can only happen with block or inline-block level elements
298
+ * (the element needs to have a width in order to overflow).
299
+ * @default false
300
+ */
301
+ noWrap: e.bool,
302
+ /**
303
+ * If `true`, the element will be a paragraph element.
304
+ * @default false
305
+ * @deprecated Use the `component` prop instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
306
+ */
307
+ paragraph: e.bool,
308
+ /**
309
+ * @ignore
310
+ */
311
+ style: e.object,
312
+ /**
313
+ * The system prop that allows defining system overrides as well as additional CSS styles.
314
+ */
315
+ sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object]),
316
+ /**
317
+ * Applies the theme typography styles.
318
+ * @default 'body1'
319
+ */
320
+ variant: e.oneOfType([e.oneOf(["body1", "body2", "button", "caption", "h1", "h2", "h3", "h4", "h5", "h6", "inherit", "overline", "subtitle1", "subtitle2"]), e.string]),
321
+ /**
322
+ * The component maps the variant prop to a range of different HTML element types.
323
+ * For instance, subtitle1 to `<h6>`.
324
+ * If you wish to change that mapping, you can provide your own.
325
+ * Alternatively, you can use the `component` prop.
326
+ * @default {
327
+ * h1: 'h1',
328
+ * h2: 'h2',
329
+ * h3: 'h3',
330
+ * h4: 'h4',
331
+ * h5: 'h5',
332
+ * h6: 'h6',
333
+ * subtitle1: 'h6',
334
+ * subtitle2: 'h6',
335
+ * body1: 'p',
336
+ * body2: 'p',
337
+ * inherit: 'p',
338
+ * }
339
+ */
340
+ variantMapping: e.object
341
+ });
342
+ const w = /* @__PURE__ */ d.createContext({});
343
+ process.env.NODE_ENV !== "production" && (w.displayName = "ListContext");
344
+ function Y(o) {
345
+ return v("MuiList", o);
346
+ }
347
+ T("MuiList", ["root", "padding", "dense", "subheader"]);
348
+ const Z = (o) => {
349
+ const {
350
+ classes: t,
351
+ disablePadding: r,
352
+ dense: s,
353
+ subheader: n
354
+ } = o;
355
+ return L({
356
+ root: ["root", !r && "padding", s && "dense", n && "subheader"]
357
+ }, Y, t);
358
+ }, ee = C("ul", {
359
+ name: "MuiList",
360
+ slot: "Root",
361
+ overridesResolver: (o, t) => {
362
+ const {
363
+ ownerState: r
364
+ } = o;
365
+ return [t.root, !r.disablePadding && t.padding, r.dense && t.dense, r.subheader && t.subheader];
366
+ }
367
+ })({
368
+ listStyle: "none",
369
+ margin: 0,
370
+ padding: 0,
371
+ position: "relative",
372
+ variants: [{
373
+ props: ({
374
+ ownerState: o
375
+ }) => !o.disablePadding,
376
+ style: {
377
+ paddingTop: 8,
378
+ paddingBottom: 8
379
+ }
380
+ }, {
381
+ props: ({
382
+ ownerState: o
383
+ }) => o.subheader,
384
+ style: {
385
+ paddingTop: 0
386
+ }
387
+ }]
388
+ }), te = /* @__PURE__ */ d.forwardRef(function(t, r) {
389
+ const s = j({
390
+ props: t,
391
+ name: "MuiList"
392
+ }), {
393
+ children: n,
394
+ className: a,
395
+ component: i = "ul",
396
+ dense: p = !1,
397
+ disablePadding: y = !1,
398
+ subheader: f,
399
+ ...g
400
+ } = s, h = d.useMemo(() => ({
401
+ dense: p
402
+ }), [p]), c = {
403
+ ...s,
404
+ component: i,
405
+ dense: p,
406
+ disablePadding: y
407
+ }, u = Z(c);
408
+ return /* @__PURE__ */ l(w.Provider, {
409
+ value: h,
410
+ children: /* @__PURE__ */ U(ee, {
411
+ as: i,
412
+ className: E(u.root, a),
413
+ ref: r,
414
+ ownerState: c,
415
+ ...g,
416
+ children: [f, n]
417
+ })
418
+ });
419
+ });
420
+ process.env.NODE_ENV !== "production" && (te.propTypes = {
421
+ // ┌────────────────────────────── Warning ──────────────────────────────┐
422
+ // │ These PropTypes are generated from the TypeScript type definitions. │
423
+ // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
424
+ // └─────────────────────────────────────────────────────────────────────┘
425
+ /**
426
+ * The content of the component.
427
+ */
428
+ children: e.node,
429
+ /**
430
+ * Override or extend the styles applied to the component.
431
+ */
432
+ classes: e.object,
433
+ /**
434
+ * @ignore
435
+ */
436
+ className: e.string,
437
+ /**
438
+ * The component used for the root node.
439
+ * Either a string to use a HTML element or a component.
440
+ */
441
+ component: e.elementType,
442
+ /**
443
+ * If `true`, compact vertical padding designed for keyboard and mouse input is used for
444
+ * the list and list items.
445
+ * The prop is available to descendant components as the `dense` context.
446
+ * @default false
447
+ */
448
+ dense: e.bool,
449
+ /**
450
+ * If `true`, vertical padding is removed from the list.
451
+ * @default false
452
+ */
453
+ disablePadding: e.bool,
454
+ /**
455
+ * The content of the subheader, normally `ListSubheader`.
456
+ */
457
+ subheader: e.node,
458
+ /**
459
+ * The system prop that allows defining system overrides as well as additional CSS styles.
460
+ */
461
+ sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object])
462
+ });
463
+ function ue(o) {
464
+ return v("MuiListItemButton", o);
465
+ }
466
+ const de = T("MuiListItemButton", ["root", "focusVisible", "dense", "alignItemsFlexStart", "disabled", "divider", "gutters", "selected"]);
467
+ export {
468
+ w as L,
469
+ X as T,
470
+ te as a,
471
+ le as b,
472
+ ue as g,
473
+ pe as i,
474
+ de as l,
475
+ ce as t
476
+ };
@@ -0,0 +1,9 @@
1
+ import { b as s, g as e } from "./DefaultPropsProvider-BQx1AiAq.js";
2
+ function a(t) {
3
+ return s("MuiListItemIcon", t);
4
+ }
5
+ const l = e("MuiListItemIcon", ["root", "alignItemsFlexStart"]);
6
+ export {
7
+ a as g,
8
+ l
9
+ };
@@ -0,0 +1,9 @@
1
+ import { g as e, b as s } from "./DefaultPropsProvider-BQx1AiAq.js";
2
+ function a(t) {
3
+ return s("MuiListItemText", t);
4
+ }
5
+ const l = e("MuiListItemText", ["root", "multiline", "dense", "inset", "primary", "secondary"]);
6
+ export {
7
+ a as g,
8
+ l
9
+ };
package/dist/main.js CHANGED
@@ -8,15 +8,15 @@ import { PassportButton as c } from "./components/PassportButton/PassportButton.
8
8
  import { PassportConfirmationModal as d } from "./components/PassportConfirmationModal/PassportConfirmationModal.js";
9
9
  import { PassportDatePicker as D } from "./components/PassportDatePicker/PassportDatePicker.js";
10
10
  import { PassportDateTimePicker as S } from "./components/PassportDateTimePicker/PassportDateTimePicker.js";
11
- import { PassportDropdown as I } from "./components/PassportDropdown/PassportDropdown.js";
12
- import { PassportErrorModal as T } from "./components/PassportErrorModal/PassportErrorModal.js";
13
- import { PassportFooter as k } from "./components/PassportFooter/PassportFooter.js";
14
- import { PassportInactivityModal as A } from "./components/PassportInactivityModal/PassportInactivityModal.js";
15
- import { PassportInfoModal as F } from "./components/PassportInfoModal/PassportInfoModal.js";
11
+ import { PassportDropdown as y } from "./components/PassportDropdown/PassportDropdown.js";
12
+ import { PassportErrorModal as L } from "./components/PassportErrorModal/PassportErrorModal.js";
13
+ import { PassportFooter as h } from "./components/PassportFooter/PassportFooter.js";
14
+ import { PassportInactivityModal as C } from "./components/PassportInactivityModal/PassportInactivityModal.js";
15
+ import { PassportInfoModal as A } from "./components/PassportInfoModal/PassportInfoModal.js";
16
16
  import { PassportInput as B } from "./components/PassportInput/PassportInput.js";
17
- import { PassportKpiCard as R } from "./components/PassportKpiCard/PassportKpiCard.js";
18
- import { PassportKpiWrapper as W } from "./components/PassportKpiWrapper/PassportKpiWrapper.js";
19
- import { PassportMultiSelect as E } from "./components/PassportMultiSelect/PassportMultiSelect.js";
17
+ import { PassportKpiCard as K } from "./components/PassportKpiCard/PassportKpiCard.js";
18
+ import { PassportKpiWrapper as U } from "./components/PassportKpiWrapper/PassportKpiWrapper.js";
19
+ import { PassportMultiSelect as w } from "./components/PassportMultiSelect/PassportMultiSelect.js";
20
20
  import { PassportSearchableMultiSelect as H } from "./components/PassportSearchableMultiSelect/PassportSearchableMultiSelect.js";
21
21
  import { PassportSearchableMultiSelectDetailed as V } from "./components/PassportSearchableMultiSelectDetailed/PassportSearchableMultiSelectDetailed.js";
22
22
  import { PassportTreeSelect as q } from "./components/PassportTreeSelect/PassportTreeSelect.js";
@@ -29,16 +29,18 @@ import { PassportNotification as tr } from "./components/PassportNotification/Pa
29
29
  import { PassportDateRangeWrapper as pr } from "./components/PassportDateRangeWrapper/PassportDateRangeWrapper.js";
30
30
  import { PassportDatesFilter as sr } from "./components/PassportDatesFilter/PassportDatesFilter.js";
31
31
  import { PassportDateRangePicker as fr } from "./components/PassportDateRangePicker/PassportDateRangePicker.js";
32
- import { chunkArray as Pr } from "./portal-utils/chunkArray.js";
33
- import { cn as nr } from "./portal-utils/cn.js";
34
- import { currency as cr, date as ur, datetime as dr, decimal as gr, fuelUnitPrice as Dr, fuelVolume as Mr, hours as Sr, number as br, time as Ir } from "./portal-utils/formatters.js";
35
- import { LogLevel as Tr, createLogger as hr } from "./portal-utils/loggerService.js";
36
- import { getPageCount as yr } from "./portal-utils/pageCount.js";
37
- import { getDaysDifference as Cr } from "./portal-utils/dates.js";
32
+ import { PassportFilter as Pr } from "./components/PassportFilter/PassportFilter.js";
33
+ import { chunkArray as nr } from "./portal-utils/chunkArray.js";
34
+ import { cn as cr } from "./portal-utils/cn.js";
35
+ import { currency as dr, date as gr, datetime as Dr, decimal as Mr, fuelUnitPrice as Sr, fuelVolume as br, hours as yr, number as Ir, time as Lr } from "./portal-utils/formatters.js";
36
+ import { LogLevel as hr, createLogger as kr } from "./portal-utils/loggerService.js";
37
+ import { getPageCount as Fr } from "./portal-utils/pageCount.js";
38
+ import { getDaysDifference as vr } from "./portal-utils/dates.js";
39
+ import { arraysContainSameElements as Er } from "./portal-utils/arrays.js";
38
40
  export {
39
41
  _ as DebouncedPassportInput,
40
42
  t as LoadingAnimation,
41
- Tr as LogLevel,
43
+ hr as LogLevel,
42
44
  p as Login,
43
45
  n as PassportAutocomplete,
44
46
  c as PassportButton,
@@ -48,16 +50,17 @@ export {
48
50
  pr as PassportDateRangeWrapper,
49
51
  S as PassportDateTimePicker,
50
52
  sr as PassportDatesFilter,
51
- I as PassportDropdown,
52
- T as PassportErrorModal,
53
- k as PassportFooter,
54
- A as PassportInactivityModal,
55
- F as PassportInfoModal,
53
+ y as PassportDropdown,
54
+ L as PassportErrorModal,
55
+ Pr as PassportFilter,
56
+ h as PassportFooter,
57
+ C as PassportInactivityModal,
58
+ A as PassportInfoModal,
56
59
  B as PassportInput,
57
- R as PassportKpiCard,
58
- W as PassportKpiWrapper,
60
+ K as PassportKpiCard,
61
+ U as PassportKpiWrapper,
59
62
  rr as PassportMenuButton,
60
- E as PassportMultiSelect,
63
+ w as PassportMultiSelect,
61
64
  tr as PassportNotification,
62
65
  J as PassportPagination,
63
66
  H as PassportSearchableMultiSelect,
@@ -68,18 +71,19 @@ export {
68
71
  f as PassportTotalDataGrid,
69
72
  q as PassportTreeSelect,
70
73
  P as PassportUserInformation,
71
- Pr as chunkArray,
72
- nr as cn,
73
- hr as createLogger,
74
- cr as currency,
75
- ur as date,
76
- dr as datetime,
77
- gr as decimal,
78
- Dr as fuelUnitPrice,
79
- Mr as fuelVolume,
80
- Cr as getDaysDifference,
81
- yr as getPageCount,
82
- Sr as hours,
83
- br as number,
84
- Ir as time
74
+ Er as arraysContainSameElements,
75
+ nr as chunkArray,
76
+ cr as cn,
77
+ kr as createLogger,
78
+ dr as currency,
79
+ gr as date,
80
+ Dr as datetime,
81
+ Mr as decimal,
82
+ Sr as fuelUnitPrice,
83
+ br as fuelVolume,
84
+ vr as getDaysDifference,
85
+ Fr as getPageCount,
86
+ yr as hours,
87
+ Ir as number,
88
+ Lr as time
85
89
  };
@@ -0,0 +1,2 @@
1
+ export declare function arraysContainSameElements(arr1: string[], arr2: string[]): boolean;
2
+ //# sourceMappingURL=arrays.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"arrays.d.ts","sourceRoot":"","sources":["../../src/portal-utils/arrays.ts"],"names":[],"mappings":"AAAA,wBAAgB,yBAAyB,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,WAWvE"}
@@ -0,0 +1,10 @@
1
+ function s(e, r) {
2
+ if (e.length !== r.length) return !1;
3
+ const n = [...e].sort(), o = [...r].sort();
4
+ for (let t = 0; t < n.length; t++)
5
+ if (n[t] !== o[t]) return !1;
6
+ return !0;
7
+ }
8
+ export {
9
+ s as arraysContainSameElements
10
+ };
@@ -4,4 +4,5 @@ export { currency, date, datetime, decimal, fuelUnitPrice, fuelVolume, hours, nu
4
4
  export { createLogger, LogLevel } from './loggerService';
5
5
  export { getPageCount } from './pageCount';
6
6
  export { getDaysDifference } from './dates';
7
+ export { arraysContainSameElements } from './arrays';
7
8
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/portal-utils/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AACvD,OAAO,EAAE,EAAE,EAAE,MAAM,mBAAmB,CAAC;AACvC,OAAO,EACL,QAAQ,EACR,IAAI,EACJ,QAAQ,EACR,OAAO,EACP,aAAa,EACb,UAAU,EACV,KAAK,EACL,MAAM,EACN,IAAI,GACL,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,YAAY,EAAE,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AACtE,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AACxD,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/portal-utils/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AACvD,OAAO,EAAE,EAAE,EAAE,MAAM,mBAAmB,CAAC;AACvC,OAAO,EACL,QAAQ,EACR,IAAI,EACJ,QAAQ,EACR,OAAO,EACP,aAAa,EACb,UAAU,EACV,KAAK,EACL,MAAM,EACN,IAAI,GACL,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,YAAY,EAAE,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AACtE,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AACxD,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AACzD,OAAO,EAAE,yBAAyB,EAAE,MAAM,uBAAuB,CAAC"}
@@ -1,23 +1,25 @@
1
1
  import { chunkArray as o } from "./chunkArray.js";
2
2
  import { cn as m } from "./cn.js";
3
- import { currency as c, date as u, datetime as a, decimal as n, fuelUnitPrice as g, fuelVolume as i, hours as p, number as x, time as l } from "./formatters.js";
4
- import { LogLevel as y, createLogger as L } from "./loggerService.js";
5
- import { getPageCount as s } from "./pageCount.js";
6
- import { getDaysDifference as P } from "./dates.js";
3
+ import { currency as f, date as n, datetime as c, decimal as u, fuelUnitPrice as i, fuelVolume as p, hours as x, number as g, time as l } from "./formatters.js";
4
+ import { LogLevel as y, createLogger as d } from "./loggerService.js";
5
+ import { getPageCount as h } from "./pageCount.js";
6
+ import { getDaysDifference as D } from "./dates.js";
7
+ import { arraysContainSameElements as b } from "./arrays.js";
7
8
  export {
8
9
  y as LogLevel,
10
+ b as arraysContainSameElements,
9
11
  o as chunkArray,
10
12
  m as cn,
11
- L as createLogger,
12
- c as currency,
13
- u as date,
14
- a as datetime,
15
- n as decimal,
16
- g as fuelUnitPrice,
17
- i as fuelVolume,
18
- P as getDaysDifference,
19
- s as getPageCount,
20
- p as hours,
21
- x as number,
13
+ d as createLogger,
14
+ f as currency,
15
+ n as date,
16
+ c as datetime,
17
+ u as decimal,
18
+ i as fuelUnitPrice,
19
+ p as fuelVolume,
20
+ D as getDaysDifference,
21
+ h as getPageCount,
22
+ x as hours,
23
+ g as number,
22
24
  l as time
23
25
  };