@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
@@ -1,171 +1,126 @@
1
- import * as b from "react";
1
+ import { c as y, P as s } from "./DefaultPropsProvider-BQx1AiAq.js";
2
+ import { _ as C, b as R, T as O } from "./ButtonBase-ugYh038t.js";
2
3
  import v from "react";
3
- import { r as M, n as O, T as D, c as y, P as a } from "./DefaultPropsProvider-ByENA_w0.js";
4
- import { u as R } from "./useTheme-Cz8ZipjJ.js";
5
- import { b as I, _ as k, T as S, u as L } from "./ButtonBase-DV7q7wxh.js";
6
4
  import N from "react-dom";
7
- import { r as F, m as w, c as P } from "./useSlot-Bm5YJQBR.js";
8
- function U(s) {
9
- const {
10
- theme: i,
11
- name: u,
12
- props: n
13
- } = s;
14
- return !i || !i.components || !i.components[u] || !i.components[u].defaultProps ? n : M(i.components[u].defaultProps, n);
15
- }
16
- function G({
17
- props: s,
18
- name: i,
19
- defaultTheme: u,
20
- themeId: n
21
- }) {
22
- let e = R(u);
23
- return e = e[n] || e, U({
24
- theme: e,
25
- name: i,
26
- props: s
27
- });
28
- }
29
- function J() {
30
- const s = R(O);
31
- return process.env.NODE_ENV !== "production" && b.useDebugValue(s), s[D] || s;
32
- }
33
- function K({
34
- props: s,
35
- name: i
36
- }) {
37
- return G({
38
- props: s,
39
- name: i,
40
- defaultTheme: O,
41
- themeId: D
42
- });
5
+ function A(o, u) {
6
+ const a = o.charCodeAt(2);
7
+ return o[0] === "o" && o[1] === "n" && a >= 65 && a <= 90 && typeof u == "function";
43
8
  }
44
- function Q(s, i, u, n, e) {
45
- if (process.env.NODE_ENV === "production")
46
- return null;
47
- const t = e || i;
48
- return typeof s[i] < "u" ? new Error(`The prop \`${t}\` is not supported. Please remove it.`) : null;
49
- }
50
- function V(s, i) {
51
- const u = s.charCodeAt(2);
52
- return s[0] === "o" && s[1] === "n" && u >= 65 && u <= 90 && typeof i == "function";
53
- }
54
- function Y(s, i) {
55
- if (!s)
56
- return i;
57
- function u(r, o) {
58
- const p = {};
59
- return Object.keys(o).forEach((c) => {
60
- V(c, o[c]) && typeof r[c] == "function" && (p[c] = (...f) => {
61
- r[c](...f), o[c](...f);
9
+ function U(o, u) {
10
+ if (!o)
11
+ return u;
12
+ function a(n, r) {
13
+ const c = {};
14
+ return Object.keys(r).forEach((f) => {
15
+ A(f, r[f]) && typeof n[f] == "function" && (c[f] = (...p) => {
16
+ n[f](...p), r[f](...p);
62
17
  });
63
- }), p;
18
+ }), c;
64
19
  }
65
- if (typeof s == "function" || typeof i == "function")
66
- return (r) => {
67
- const o = typeof i == "function" ? i(r) : i, p = typeof s == "function" ? s({
68
- ...r,
69
- ...o
70
- }) : s, c = y(r?.className, o?.className, p?.className), f = u(p, o);
20
+ if (typeof o == "function" || typeof u == "function")
21
+ return (n) => {
22
+ const r = typeof u == "function" ? u(n) : u, c = typeof o == "function" ? o({
23
+ ...n,
24
+ ...r
25
+ }) : o, f = y(n?.className, r?.className, c?.className), p = a(c, r);
71
26
  return {
72
- ...o,
27
+ ...r,
28
+ ...c,
73
29
  ...p,
74
- ...f,
75
- ...!!c && {
76
- className: c
30
+ ...!!f && {
31
+ className: f
77
32
  },
78
- ...o?.style && p?.style && {
33
+ ...r?.style && c?.style && {
79
34
  style: {
80
- ...o.style,
81
- ...p.style
35
+ ...r.style,
36
+ ...c.style
82
37
  }
83
38
  },
84
- ...o?.sx && p?.sx && {
85
- sx: [...Array.isArray(o.sx) ? o.sx : [o.sx], ...Array.isArray(p.sx) ? p.sx : [p.sx]]
39
+ ...r?.sx && c?.sx && {
40
+ sx: [...Array.isArray(r.sx) ? r.sx : [r.sx], ...Array.isArray(c.sx) ? c.sx : [c.sx]]
86
41
  }
87
42
  };
88
43
  };
89
- const n = i, e = u(s, n), t = y(n?.className, s?.className);
44
+ const i = u, e = a(o, i), t = y(i?.className, o?.className);
90
45
  return {
91
- ...i,
92
- ...s,
46
+ ...u,
47
+ ...o,
93
48
  ...e,
94
49
  ...!!t && {
95
50
  className: t
96
51
  },
97
- ...n?.style && s?.style && {
52
+ ...i?.style && o?.style && {
98
53
  style: {
99
- ...n.style,
100
- ...s.style
54
+ ...i.style,
55
+ ...o.style
101
56
  }
102
57
  },
103
- ...n?.sx && s?.sx && {
104
- sx: [...Array.isArray(n.sx) ? n.sx : [n.sx], ...Array.isArray(s.sx) ? s.sx : [s.sx]]
58
+ ...i?.sx && o?.sx && {
59
+ sx: [...Array.isArray(i.sx) ? i.sx : [i.sx], ...Array.isArray(o.sx) ? o.sx : [o.sx]]
105
60
  }
106
61
  };
107
62
  }
108
- const C = {
63
+ const T = {
109
64
  disabled: !1
110
65
  };
111
- var q = process.env.NODE_ENV !== "production" ? a.oneOfType([a.number, a.shape({
112
- enter: a.number,
113
- exit: a.number,
114
- appear: a.number
115
- }).isRequired]) : null, Z = process.env.NODE_ENV !== "production" ? a.oneOfType([a.string, a.shape({
116
- enter: a.string,
117
- exit: a.string,
118
- active: a.string
119
- }), a.shape({
120
- enter: a.string,
121
- enterDone: a.string,
122
- enterActive: a.string,
123
- exit: a.string,
124
- exitDone: a.string,
125
- exitActive: a.string
126
- })]) : null, H = function(i) {
127
- return i.scrollTop;
128
- }, x = "unmounted", d = "exited", m = "entering", E = "entered", T = "exiting", l = /* @__PURE__ */ (function(s) {
129
- I(i, s);
130
- function i(n, e) {
66
+ var M = process.env.NODE_ENV !== "production" ? s.oneOfType([s.number, s.shape({
67
+ enter: s.number,
68
+ exit: s.number,
69
+ appear: s.number
70
+ }).isRequired]) : null, G = process.env.NODE_ENV !== "production" ? s.oneOfType([s.string, s.shape({
71
+ enter: s.string,
72
+ exit: s.string,
73
+ active: s.string
74
+ }), s.shape({
75
+ enter: s.string,
76
+ enterDone: s.string,
77
+ enterActive: s.string,
78
+ exit: s.string,
79
+ exitDone: s.string,
80
+ exitActive: s.string
81
+ })]) : null, L = function(u) {
82
+ return u.scrollTop;
83
+ }, x = "unmounted", d = "exited", E = "entering", m = "entered", b = "exiting", l = /* @__PURE__ */ (function(o) {
84
+ C(u, o);
85
+ function u(i, e) {
131
86
  var t;
132
- t = s.call(this, n, e) || this;
133
- var r = e, o = r && !r.isMounting ? n.enter : n.appear, p;
134
- return t.appearStatus = null, n.in ? o ? (p = d, t.appearStatus = m) : p = E : n.unmountOnExit || n.mountOnEnter ? p = x : p = d, t.state = {
135
- status: p
87
+ t = o.call(this, i, e) || this;
88
+ var n = e, r = n && !n.isMounting ? i.enter : i.appear, c;
89
+ return t.appearStatus = null, i.in ? r ? (c = d, t.appearStatus = E) : c = m : i.unmountOnExit || i.mountOnEnter ? c = x : c = d, t.state = {
90
+ status: c
136
91
  }, t.nextCallback = null, t;
137
92
  }
138
- i.getDerivedStateFromProps = function(e, t) {
139
- var r = e.in;
140
- return r && t.status === x ? {
93
+ u.getDerivedStateFromProps = function(e, t) {
94
+ var n = e.in;
95
+ return n && t.status === x ? {
141
96
  status: d
142
97
  } : null;
143
98
  };
144
- var u = i.prototype;
145
- return u.componentDidMount = function() {
99
+ var a = u.prototype;
100
+ return a.componentDidMount = function() {
146
101
  this.updateStatus(!0, this.appearStatus);
147
- }, u.componentDidUpdate = function(e) {
102
+ }, a.componentDidUpdate = function(e) {
148
103
  var t = null;
149
104
  if (e !== this.props) {
150
- var r = this.state.status;
151
- this.props.in ? r !== m && r !== E && (t = m) : (r === m || r === E) && (t = T);
105
+ var n = this.state.status;
106
+ this.props.in ? n !== E && n !== m && (t = E) : (n === E || n === m) && (t = b);
152
107
  }
153
108
  this.updateStatus(!1, t);
154
- }, u.componentWillUnmount = function() {
109
+ }, a.componentWillUnmount = function() {
155
110
  this.cancelNextCallback();
156
- }, u.getTimeouts = function() {
157
- var e = this.props.timeout, t, r, o;
158
- return t = r = o = e, e != null && typeof e != "number" && (t = e.exit, r = e.enter, o = e.appear !== void 0 ? e.appear : r), {
111
+ }, a.getTimeouts = function() {
112
+ var e = this.props.timeout, t, n, r;
113
+ return t = n = r = e, e != null && typeof e != "number" && (t = e.exit, n = e.enter, r = e.appear !== void 0 ? e.appear : n), {
159
114
  exit: t,
160
- enter: r,
161
- appear: o
115
+ enter: n,
116
+ appear: r
162
117
  };
163
- }, u.updateStatus = function(e, t) {
118
+ }, a.updateStatus = function(e, t) {
164
119
  if (e === void 0 && (e = !1), t !== null)
165
- if (this.cancelNextCallback(), t === m) {
120
+ if (this.cancelNextCallback(), t === E) {
166
121
  if (this.props.unmountOnExit || this.props.mountOnEnter) {
167
- var r = this.props.nodeRef ? this.props.nodeRef.current : N.findDOMNode(this);
168
- r && H(r);
122
+ var n = this.props.nodeRef ? this.props.nodeRef.current : N.findDOMNode(this);
123
+ n && L(n);
169
124
  }
170
125
  this.performEnter(e);
171
126
  } else
@@ -173,87 +128,87 @@ var q = process.env.NODE_ENV !== "production" ? a.oneOfType([a.number, a.shape({
173
128
  else this.props.unmountOnExit && this.state.status === d && this.setState({
174
129
  status: x
175
130
  });
176
- }, u.performEnter = function(e) {
177
- var t = this, r = this.props.enter, o = this.context ? this.context.isMounting : e, p = this.props.nodeRef ? [o] : [N.findDOMNode(this), o], c = p[0], f = p[1], g = this.getTimeouts(), A = o ? g.appear : g.enter;
178
- if (!e && !r || C.disabled) {
131
+ }, a.performEnter = function(e) {
132
+ var t = this, n = this.props.enter, r = this.context ? this.context.isMounting : e, c = this.props.nodeRef ? [r] : [N.findDOMNode(this), r], f = c[0], p = c[1], g = this.getTimeouts(), D = r ? g.appear : g.enter;
133
+ if (!e && !n || T.disabled) {
179
134
  this.safeSetState({
180
- status: E
135
+ status: m
181
136
  }, function() {
182
- t.props.onEntered(c);
137
+ t.props.onEntered(f);
183
138
  });
184
139
  return;
185
140
  }
186
- this.props.onEnter(c, f), this.safeSetState({
187
- status: m
141
+ this.props.onEnter(f, p), this.safeSetState({
142
+ status: E
188
143
  }, function() {
189
- t.props.onEntering(c, f), t.onTransitionEnd(A, function() {
144
+ t.props.onEntering(f, p), t.onTransitionEnd(D, function() {
190
145
  t.safeSetState({
191
- status: E
146
+ status: m
192
147
  }, function() {
193
- t.props.onEntered(c, f);
148
+ t.props.onEntered(f, p);
194
149
  });
195
150
  });
196
151
  });
197
- }, u.performExit = function() {
198
- var e = this, t = this.props.exit, r = this.getTimeouts(), o = this.props.nodeRef ? void 0 : N.findDOMNode(this);
199
- if (!t || C.disabled) {
152
+ }, a.performExit = function() {
153
+ var e = this, t = this.props.exit, n = this.getTimeouts(), r = this.props.nodeRef ? void 0 : N.findDOMNode(this);
154
+ if (!t || T.disabled) {
200
155
  this.safeSetState({
201
156
  status: d
202
157
  }, function() {
203
- e.props.onExited(o);
158
+ e.props.onExited(r);
204
159
  });
205
160
  return;
206
161
  }
207
- this.props.onExit(o), this.safeSetState({
208
- status: T
162
+ this.props.onExit(r), this.safeSetState({
163
+ status: b
209
164
  }, function() {
210
- e.props.onExiting(o), e.onTransitionEnd(r.exit, function() {
165
+ e.props.onExiting(r), e.onTransitionEnd(n.exit, function() {
211
166
  e.safeSetState({
212
167
  status: d
213
168
  }, function() {
214
- e.props.onExited(o);
169
+ e.props.onExited(r);
215
170
  });
216
171
  });
217
172
  });
218
- }, u.cancelNextCallback = function() {
173
+ }, a.cancelNextCallback = function() {
219
174
  this.nextCallback !== null && (this.nextCallback.cancel(), this.nextCallback = null);
220
- }, u.safeSetState = function(e, t) {
175
+ }, a.safeSetState = function(e, t) {
221
176
  t = this.setNextCallback(t), this.setState(e, t);
222
- }, u.setNextCallback = function(e) {
223
- var t = this, r = !0;
224
- return this.nextCallback = function(o) {
225
- r && (r = !1, t.nextCallback = null, e(o));
177
+ }, a.setNextCallback = function(e) {
178
+ var t = this, n = !0;
179
+ return this.nextCallback = function(r) {
180
+ n && (n = !1, t.nextCallback = null, e(r));
226
181
  }, this.nextCallback.cancel = function() {
227
- r = !1;
182
+ n = !1;
228
183
  }, this.nextCallback;
229
- }, u.onTransitionEnd = function(e, t) {
184
+ }, a.onTransitionEnd = function(e, t) {
230
185
  this.setNextCallback(t);
231
- var r = this.props.nodeRef ? this.props.nodeRef.current : N.findDOMNode(this), o = e == null && !this.props.addEndListener;
232
- if (!r || o) {
186
+ var n = this.props.nodeRef ? this.props.nodeRef.current : N.findDOMNode(this), r = e == null && !this.props.addEndListener;
187
+ if (!n || r) {
233
188
  setTimeout(this.nextCallback, 0);
234
189
  return;
235
190
  }
236
191
  if (this.props.addEndListener) {
237
- var p = this.props.nodeRef ? [this.nextCallback] : [r, this.nextCallback], c = p[0], f = p[1];
238
- this.props.addEndListener(c, f);
192
+ var c = this.props.nodeRef ? [this.nextCallback] : [n, this.nextCallback], f = c[0], p = c[1];
193
+ this.props.addEndListener(f, p);
239
194
  }
240
195
  e != null && setTimeout(this.nextCallback, e);
241
- }, u.render = function() {
196
+ }, a.render = function() {
242
197
  var e = this.state.status;
243
198
  if (e === x)
244
199
  return null;
245
- var t = this.props, r = t.children;
200
+ var t = this.props, n = t.children;
246
201
  t.in, t.mountOnEnter, t.unmountOnExit, t.appear, t.enter, t.exit, t.timeout, t.addEndListener, t.onEnter, t.onEntering, t.onEntered, t.onExit, t.onExiting, t.onExited, t.nodeRef;
247
- var o = k(t, ["children", "in", "mountOnEnter", "unmountOnExit", "appear", "enter", "exit", "timeout", "addEndListener", "onEnter", "onEntering", "onEntered", "onExit", "onExiting", "onExited", "nodeRef"]);
202
+ var r = R(t, ["children", "in", "mountOnEnter", "unmountOnExit", "appear", "enter", "exit", "timeout", "addEndListener", "onEnter", "onEntering", "onEntered", "onExit", "onExiting", "onExited", "nodeRef"]);
248
203
  return (
249
204
  // allows for nested Transitions
250
- /* @__PURE__ */ v.createElement(S.Provider, {
205
+ /* @__PURE__ */ v.createElement(O.Provider, {
251
206
  value: null
252
- }, typeof r == "function" ? r(e, o) : v.cloneElement(v.Children.only(r), o))
207
+ }, typeof n == "function" ? n(e, r) : v.cloneElement(v.Children.only(n), r))
253
208
  );
254
- }, i;
209
+ }, u;
255
210
  })(v.Component);
256
- l.contextType = S;
211
+ l.contextType = O;
257
212
  l.propTypes = process.env.NODE_ENV !== "production" ? {
258
213
  /**
259
214
  * A React reference to DOM element that need to transition:
@@ -266,10 +221,10 @@ l.propTypes = process.env.NODE_ENV !== "production" ? {
266
221
  * (see
267
222
  * [test/CSSTransition-test.js](https://github.com/reactjs/react-transition-group/blob/13435f897b3ab71f6e19d724f145596f5910581c/test/CSSTransition-test.js#L362-L437)).
268
223
  */
269
- nodeRef: a.shape({
270
- current: typeof Element > "u" ? a.any : function(s, i, u, n, e, t) {
271
- var r = s[i];
272
- return a.instanceOf(r && "ownerDocument" in r ? r.ownerDocument.defaultView.Element : Element)(s, i, u, n, e, t);
224
+ nodeRef: s.shape({
225
+ current: typeof Element > "u" ? s.any : function(o, u, a, i, e, t) {
226
+ var n = o[u];
227
+ return s.instanceOf(n && "ownerDocument" in n ? n.ownerDocument.defaultView.Element : Element)(o, u, a, i, e, t);
273
228
  }
274
229
  }),
275
230
  /**
@@ -286,23 +241,23 @@ l.propTypes = process.env.NODE_ENV !== "production" ? {
286
241
  * </Transition>
287
242
  * ```
288
243
  */
289
- children: a.oneOfType([a.func.isRequired, a.element.isRequired]).isRequired,
244
+ children: s.oneOfType([s.func.isRequired, s.element.isRequired]).isRequired,
290
245
  /**
291
246
  * Show the component; triggers the enter or exit states
292
247
  */
293
- in: a.bool,
248
+ in: s.bool,
294
249
  /**
295
250
  * By default the child component is mounted immediately along with
296
251
  * the parent `Transition` component. If you want to "lazy mount" the component on the
297
252
  * first `in={true}` you can set `mountOnEnter`. After the first enter transition the component will stay
298
253
  * mounted, even on "exited", unless you also specify `unmountOnExit`.
299
254
  */
300
- mountOnEnter: a.bool,
255
+ mountOnEnter: s.bool,
301
256
  /**
302
257
  * By default the child component stays mounted after it reaches the `'exited'` state.
303
258
  * Set `unmountOnExit` if you'd prefer to unmount the component after it finishes exiting.
304
259
  */
305
- unmountOnExit: a.bool,
260
+ unmountOnExit: s.bool,
306
261
  /**
307
262
  * By default the child component does not perform the enter transition when
308
263
  * it first mounts, regardless of the value of `in`. If you want this
@@ -314,15 +269,15 @@ l.propTypes = process.env.NODE_ENV !== "production" ? {
314
269
  * > additional `.appear-*` classes, that way you can choose to style it
315
270
  * > differently.
316
271
  */
317
- appear: a.bool,
272
+ appear: s.bool,
318
273
  /**
319
274
  * Enable or disable enter transitions.
320
275
  */
321
- enter: a.bool,
276
+ enter: s.bool,
322
277
  /**
323
278
  * Enable or disable exit transitions.
324
279
  */
325
- exit: a.bool,
280
+ exit: s.bool,
326
281
  /**
327
282
  * The duration of the transition, in milliseconds.
328
283
  * Required unless `addEndListener` is provided.
@@ -349,12 +304,12 @@ l.propTypes = process.env.NODE_ENV !== "production" ? {
349
304
  *
350
305
  * @type {number | { enter?: number, exit?: number, appear?: number }}
351
306
  */
352
- timeout: function(i) {
353
- var u = q;
354
- i.addEndListener || (u = u.isRequired);
355
- for (var n = arguments.length, e = new Array(n > 1 ? n - 1 : 0), t = 1; t < n; t++)
307
+ timeout: function(u) {
308
+ var a = M;
309
+ u.addEndListener || (a = a.isRequired);
310
+ for (var i = arguments.length, e = new Array(i > 1 ? i - 1 : 0), t = 1; t < i; t++)
356
311
  e[t - 1] = arguments[t];
357
- return u.apply(void 0, [i].concat(e));
312
+ return a.apply(void 0, [u].concat(e));
358
313
  },
359
314
  /**
360
315
  * Add a custom transition end trigger. Called with the transitioning
@@ -370,7 +325,7 @@ l.propTypes = process.env.NODE_ENV !== "production" ? {
370
325
  * }}
371
326
  * ```
372
327
  */
373
- addEndListener: a.func,
328
+ addEndListener: s.func,
374
329
  /**
375
330
  * Callback fired before the "entering" status is applied. An extra parameter
376
331
  * `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount
@@ -379,7 +334,7 @@ l.propTypes = process.env.NODE_ENV !== "production" ? {
379
334
  *
380
335
  * @type Function(node: HtmlElement, isAppearing: bool) -> void
381
336
  */
382
- onEnter: a.func,
337
+ onEnter: s.func,
383
338
  /**
384
339
  * Callback fired after the "entering" status is applied. An extra parameter
385
340
  * `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount
@@ -388,7 +343,7 @@ l.propTypes = process.env.NODE_ENV !== "production" ? {
388
343
  *
389
344
  * @type Function(node: HtmlElement, isAppearing: bool)
390
345
  */
391
- onEntering: a.func,
346
+ onEntering: s.func,
392
347
  /**
393
348
  * Callback fired after the "entered" status is applied. An extra parameter
394
349
  * `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount
@@ -397,7 +352,7 @@ l.propTypes = process.env.NODE_ENV !== "production" ? {
397
352
  *
398
353
  * @type Function(node: HtmlElement, isAppearing: bool) -> void
399
354
  */
400
- onEntered: a.func,
355
+ onEntered: s.func,
401
356
  /**
402
357
  * Callback fired before the "exiting" status is applied.
403
358
  *
@@ -405,7 +360,7 @@ l.propTypes = process.env.NODE_ENV !== "production" ? {
405
360
  *
406
361
  * @type Function(node: HtmlElement) -> void
407
362
  */
408
- onExit: a.func,
363
+ onExit: s.func,
409
364
  /**
410
365
  * Callback fired after the "exiting" status is applied.
411
366
  *
@@ -413,7 +368,7 @@ l.propTypes = process.env.NODE_ENV !== "production" ? {
413
368
  *
414
369
  * @type Function(node: HtmlElement) -> void
415
370
  */
416
- onExiting: a.func,
371
+ onExiting: s.func,
417
372
  /**
418
373
  * Callback fired after the "exited" status is applied.
419
374
  *
@@ -421,7 +376,7 @@ l.propTypes = process.env.NODE_ENV !== "production" ? {
421
376
  *
422
377
  * @type Function(node: HtmlElement) -> void
423
378
  */
424
- onExited: a.func
379
+ onExited: s.func
425
380
  } : {};
426
381
  function h() {
427
382
  }
@@ -441,58 +396,27 @@ l.defaultProps = {
441
396
  };
442
397
  l.UNMOUNTED = x;
443
398
  l.EXITED = d;
444
- l.ENTERING = m;
445
- l.ENTERED = E;
446
- l.EXITING = T;
447
- function tt(s) {
448
- const {
449
- elementType: i,
450
- externalSlotProps: u,
451
- ownerState: n,
452
- skipResolvingSlotProps: e = !1,
453
- ...t
454
- } = s, r = e ? {} : F(u, n), {
455
- props: o,
456
- internalRef: p
457
- } = w({
458
- ...t,
459
- externalSlotProps: r
460
- }), c = L(p, r?.ref, s.additionalProps?.ref);
461
- return P(i, {
462
- ...o,
463
- ref: c
464
- }, n);
465
- }
466
- const et = (s) => s.scrollTop;
467
- function nt(s, i) {
399
+ l.ENTERING = E;
400
+ l.ENTERED = m;
401
+ l.EXITING = b;
402
+ const q = (o) => o.scrollTop;
403
+ function w(o, u) {
468
404
  const {
469
- timeout: u,
470
- easing: n,
405
+ timeout: a,
406
+ easing: i,
471
407
  style: e = {}
472
- } = s;
408
+ } = o;
473
409
  return {
474
- duration: e.transitionDuration ?? (typeof u == "number" ? u : u[i.mode] || 0),
475
- easing: e.transitionTimingFunction ?? (typeof n == "object" ? n[i.mode] : n),
410
+ duration: e.transitionDuration ?? (typeof a == "number" ? a : a[u.mode] || 0),
411
+ easing: e.transitionTimingFunction ?? (typeof i == "object" ? i[u.mode] : i),
476
412
  delay: e.transitionDelay
477
413
  };
478
414
  }
479
- const _ = /* @__PURE__ */ b.createContext(void 0);
480
- process.env.NODE_ENV !== "production" && (_.displayName = "FormControlContext");
481
- function rt() {
482
- return b.useContext(_);
483
- }
484
415
  export {
485
- _ as F,
486
416
  l as T,
487
- Q as a,
488
- tt as b,
489
- J as c,
490
- rt as d,
491
- U as e,
492
- H as f,
493
- nt as g,
494
- Z as h,
495
- Y as m,
496
- et as r,
497
- K as u
417
+ G as c,
418
+ L as f,
419
+ w as g,
420
+ U as m,
421
+ q as r
498
422
  };
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@amateescu/portal-ui-components",
3
3
  "main": "dist/main.js",
4
4
  "types": "dist/main.d.ts",
5
- "version": "0.0.47",
5
+ "version": "0.0.49",
6
6
  "type": "module",
7
7
  "files": [
8
8
  "dist"