react-luminus-components 1.3.32 → 1.3.33

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 (126) hide show
  1. package/README.md +349 -355
  2. package/dist/.vite/manifest.json +64 -64
  3. package/dist/FromToDatePickerDropdownToggle-BcOIaLyQ.cjs +253 -0
  4. package/dist/{FromToDatePickerDropdownToggle-DDOxJCc2.js → FromToDatePickerDropdownToggle-CGnDN_zs.js} +2771 -2625
  5. package/dist/{PrimaryButton-B64e5vBv.js → PrimaryButton-B6qFyVVD.js} +135 -145
  6. package/dist/PrimaryButton-Dow_5lBe.cjs +1 -0
  7. package/dist/{SimpleTooltip-BgRjtr0d.js → SimpleTooltip-B0I1MS-L.js} +1 -1
  8. package/dist/{SimpleTooltip-DIqIPx0H.cjs → SimpleTooltip-CpLiAgNs.cjs} +1 -1
  9. package/dist/components/Buttons/ContextButton/ContextButton.d.ts +0 -1
  10. package/dist/components/Buttons/ContextButton/FileUploadContextButton.d.ts +0 -1
  11. package/dist/components/Buttons/IconButton/IconButton.d.ts +0 -1
  12. package/dist/components/Buttons/PrimaryButton/PrimaryButton.d.ts +0 -1
  13. package/dist/components/Dropdown/Dropdown.d.ts +0 -1
  14. package/dist/components/Dropdown/comps/DropdownItem/DropdownItem.d.ts +0 -1
  15. package/dist/components/Dropdown/comps/DropdownItem/FileUploadDropdownItem.d.ts +0 -1
  16. package/dist/components/Dropdown/comps/DropdownToggle/DropdownToggle.d.ts +0 -1
  17. package/dist/components/Dropdown/comps/SimpleToggle/SimpleToggle.d.ts +3 -3
  18. package/dist/components/Form/CheckInput/CheckInput.d.ts +0 -1
  19. package/dist/components/Form/DropdownPicker/DropdownPicker.d.ts +0 -1
  20. package/dist/components/Form/NumericStepperInput/NumericStepperInput.d.ts +0 -1
  21. package/dist/components/Form/SelectInput/SelectInput.d.ts +0 -1
  22. package/dist/components/Form/TextAreaInput/TextAreaInput.d.ts +0 -1
  23. package/dist/components/Form/TextInput/TextInput.d.ts +0 -1
  24. package/dist/components/HookForm/CheckInput/HookFormCheckInput.d.ts +0 -1
  25. package/dist/components/HookForm/CustomSelectInput/CustomSelectInput.d.ts +0 -1
  26. package/dist/components/HookForm/FileInput/HookFormFileInput.d.ts +0 -1
  27. package/dist/components/HookForm/NumericStepperInput/HookFormNumericStepperInput.d.ts +0 -1
  28. package/dist/components/HookForm/RadioInput/HookFormRadioInput.d.ts +0 -1
  29. package/dist/components/HookForm/SelectInput/HookFormSelectInput.d.ts +0 -1
  30. package/dist/components/HookForm/TextAreaInput/HookFormTextAreaInput.d.ts +0 -1
  31. package/dist/components/HookForm/TextInput/HookFormTextInput.d.ts +0 -1
  32. package/dist/components/InputContainers/FloatingLabelInput/FloatingLabelInput.d.ts +20 -21
  33. package/dist/components/InputContainers/InputAnchorContainer/InputAnchorContainer.d.ts +0 -1
  34. package/dist/components/InputContainers/NoInputContainer/NoInputContainer.d.ts +20 -21
  35. package/dist/components/InputContainers/RowLabelInput/RowLabelInput.d.ts +20 -21
  36. package/dist/components/Layout/MessageBoard/components/MessageList/MessageList.d.ts +0 -1
  37. package/dist/components/Layout/MessageBoard/components/MessageList/comps/MessageFilters/MessageFilters.d.ts +0 -1
  38. package/dist/components/Layout/MessageBoard/components/MessageList/comps/MessageItem/MessageItem.d.ts +0 -1
  39. package/dist/components/NewTabs/TabPanel/TabPanel.d.ts +0 -1
  40. package/dist/components/NewTabs/Tabs/Tabs.d.ts +0 -1
  41. package/dist/components/Tabs/Tabs.d.ts +0 -1
  42. package/dist/components/Tabs/comps/Tab/Tab.d.ts +0 -1
  43. package/dist/components/UserAvatar/AvatarIcon/AvatarIcon.d.ts +0 -1
  44. package/dist/components/common/Alert/Alert.d.ts +0 -1
  45. package/dist/components/common/AlertItem/AlertItem.d.ts +0 -1
  46. package/dist/components/common/AppSearch/AppSearch.d.ts +0 -1
  47. package/dist/components/common/AppSearch/comps/AutocompleteWindow/AutocompleteWindow.d.ts +0 -1
  48. package/dist/components/common/Backdrop/Backdrop.d.ts +0 -1
  49. package/dist/components/common/Badge/Badge.d.ts +0 -1
  50. package/dist/components/common/Card/Card.d.ts +0 -1
  51. package/dist/components/common/Collapse/Collapse.d.ts +0 -1
  52. package/dist/components/common/ConfirmDialog/ConfirmDialog.d.ts +0 -1
  53. package/dist/components/common/FloatingActionContainer/FloatingActionContainer.d.ts +0 -1
  54. package/dist/components/common/HomeDashboard/HomeDashboard.d.ts +0 -1
  55. package/dist/components/common/HomeDashboard/comps/FreeSpaceWidget/FreeSpaceWidget.d.ts +0 -1
  56. package/dist/components/common/HomeDashboard/comps/WidgetPicker/WidgetPicker.d.ts +0 -1
  57. package/dist/components/common/ImgApi/ImgApi.d.ts +0 -1
  58. package/dist/components/common/ImgApi/hooks/useGetImgData.d.ts +0 -1
  59. package/dist/components/common/ImgDirect/ImgDirect.d.ts +0 -1
  60. package/dist/components/common/InvalidFeedback/InvalidFeedback.d.ts +0 -1
  61. package/dist/components/common/Loading/Loading.d.ts +0 -1
  62. package/dist/components/common/MonthPicker/MonthPicker.d.ts +0 -1
  63. package/dist/components/common/PhotoLibrary/PhotoLibrary.d.ts +0 -1
  64. package/dist/components/common/PhotoLightbox/PhotoLightbox.d.ts +0 -1
  65. package/dist/components/common/PromptDialog/PromptDialog.d.ts +0 -1
  66. package/dist/components/common/Timeline/Timeline.d.ts +0 -1
  67. package/dist/components/common/Typography/Typography.d.ts +0 -1
  68. package/dist/components/common/VersionInfo/VersionInfo.d.ts +0 -1
  69. package/dist/components/common/YearPicker/YearPicker.d.ts +0 -1
  70. package/dist/contexts/auth/AuthContext.d.ts +0 -1
  71. package/dist/contexts/auth/AuthProvider.d.ts +0 -1
  72. package/dist/contexts/confirm/ConfirmContext.d.ts +0 -1
  73. package/dist/contexts/confirm/ConfirmProvider.d.ts +0 -1
  74. package/dist/contexts/delegation/DelegationProvider.d.ts +0 -1
  75. package/dist/contexts/loading/LoadingContext.d.ts +0 -1
  76. package/dist/contexts/loading/LoadingProvider.d.ts +0 -1
  77. package/dist/contexts/luminus-components/LuminusComponentsContext.d.ts +1 -15
  78. package/dist/contexts/luminus-components/LuminusComponentsProvider.d.ts +2 -16
  79. package/dist/contexts/prompt/PromptContext.d.ts +0 -1
  80. package/dist/contexts/user/UserContext.d.ts +0 -1
  81. package/dist/contexts/user/UserProvider.d.ts +0 -1
  82. package/dist/contexts.cjs.js +1 -1
  83. package/dist/contexts.d.ts +10 -27
  84. package/dist/contexts.es.js +129 -158
  85. package/dist/{dateUtils-C8trxO28.js → dateUtils-Bc53BdYm.js} +11 -21
  86. package/dist/{dateUtils-ChS-y8JY.cjs → dateUtils-Y_XPaYyg.cjs} +1 -1
  87. package/dist/hooks/useFormControlType/useFormControlType.d.ts +1 -1
  88. package/dist/hooks/useGetApiData/useGetApiData.d.ts +0 -1
  89. package/dist/hooks/useLocalStorageState/useLocalStorageState.d.ts +0 -1
  90. package/dist/hooks/useNotifications/useNotifications.d.ts +1 -1
  91. package/dist/hooks.cjs.js +1 -1
  92. package/dist/hooks.d.ts +2 -4
  93. package/dist/hooks.es.js +23 -23
  94. package/dist/layout/FullScreenContainer/FullScreenContainer.d.ts +0 -1
  95. package/dist/layout/MainContainer/MainContainer.d.ts +0 -1
  96. package/dist/layout/SideMenu/MenuItem/MenuItem.d.ts +0 -1
  97. package/dist/layout/SideMenu/SideMenu.d.ts +0 -1
  98. package/dist/layout/TopBar/TopBar.d.ts +0 -1
  99. package/dist/layout.cjs.js +1 -1
  100. package/dist/layout.d.ts +0 -2
  101. package/dist/layout.es.js +92 -95
  102. package/dist/main.cjs.js +1 -1
  103. package/dist/main.es.js +1637 -1659
  104. package/dist/models/prop-types/InputContainerProps.d.ts +0 -1
  105. package/dist/models/prop-types/InputProps/DropdownPickerProps.d.ts +0 -1
  106. package/dist/models/prop-types/InputProps/TextInputProps.d.ts +0 -1
  107. package/dist/models/texts/ComponentsContextTexts.d.ts +18 -0
  108. package/dist/models/types/MenuItemType.d.ts +0 -1
  109. package/dist/models/types/PhotoAction.d.ts +0 -1
  110. package/dist/models/types/TimelineStep.d.ts +0 -1
  111. package/dist/{searchUtils-C38WM_G8.js → searchUtils-kismAHZM.js} +1 -1
  112. package/dist/{searchUtils-BdYnxcy0.cjs → searchUtils-qxu0IgEU.cjs} +1 -1
  113. package/dist/style.css +1 -1
  114. package/dist/{useFormControlType-oJGqgThz.js → useFormControlType-BAFqxupC.js} +3 -3
  115. package/dist/{useLocalStorageState-asgEpnUg.cjs → useLocalStorageState-BxKcArKF.cjs} +1 -1
  116. package/dist/{useLocalStorageState-CFe9QRz0.js → useLocalStorageState-HYmARj_B.js} +3 -3
  117. package/dist/{usePermissions-55of2QBH.js → usePermissions-Dl5tlwwt.js} +5 -5
  118. package/dist/{usePermissions-Ce0AAKj1.cjs → usePermissions-yx-0zHae.cjs} +1 -1
  119. package/dist/utils/bnfValueFormat/bnfValueFormat.d.ts +0 -1
  120. package/dist/utils.cjs.js +1 -1
  121. package/dist/utils.d.ts +0 -2
  122. package/dist/utils.es.js +7 -7
  123. package/dist/variables.scss +171 -171
  124. package/package.json +106 -106
  125. package/dist/FromToDatePickerDropdownToggle-BPfviPUU.cjs +0 -253
  126. package/dist/PrimaryButton-BnrFH2PB.cjs +0 -1
@@ -1,20 +1,16 @@
1
- import { j as r, c as d, P as D, M as tt, v as R, J as nt, ar as Ee, as as $e, o as V, G as Le, at as ot, au as st, w as T, av as je, aw as _e, ax as De, ay as at, az as Oe, aA as rt, A as it, I as lt, L as dt, aB as Be, F as Ie, H as ct, aC as ut, U as ft } from "./FromToDatePickerDropdownToggle-DDOxJCc2.js";
1
+ import { j as r, c as d, P as D, M as tt, v as R, J as nt, ar as Ee, as as Se, o as V, G as $e, at as ot, au as st, w as T, av as xe, aw as je, ax as Le, ay as at, az as _e, aA as rt, A as it, I as lt, L as dt, aB as Oe, F as De, H as ct, aC as ut } from "./FromToDatePickerDropdownToggle-CGnDN_zs.js";
2
2
  import * as u from "react";
3
- import { useRef as N, useEffect as ve, useContext as Te, forwardRef as mt, useState as we, useImperativeHandle as gt, useCallback as be, useMemo as ht } from "react";
4
- import pt from "react-dom";
5
- import "@azure/msal-react";
6
- import "@azure/msal-browser";
7
- import "zod";
8
- import "react-hook-form";
9
- import "react-router-dom";
10
- const yt = "_loading_rgybp_1", vt = "_spinner-grow_rgybp_10", wt = "_second_rgybp_14", bt = "_third_rgybp_17", Et = "_loadingBlock_rgybp_21", F = {
3
+ import { useRef as N, useEffect as we, useContext as Ie, forwardRef as ft, useState as ve, useImperativeHandle as mt, useCallback as be, useMemo as gt } from "react";
4
+ import ht from "react-dom";
5
+ import { Link as pt } from "react-router-dom";
6
+ const yt = "_loading_rgybp_1", wt = "_spinner-grow_rgybp_10", vt = "_second_rgybp_14", bt = "_third_rgybp_17", Et = "_loadingBlock_rgybp_21", F = {
11
7
  loading: yt,
12
8
  "spinner-grow": "_spinner-grow_rgybp_10",
13
- spinnerGrow: vt,
14
- second: wt,
9
+ spinnerGrow: wt,
10
+ second: vt,
15
11
  third: bt,
16
12
  loadingBlock: Et
17
- }, nn = () => /* @__PURE__ */ r.jsxs("div", { className: d("luminus-loading", F.loading), children: [
13
+ }, Zt = () => /* @__PURE__ */ r.jsxs("div", { className: d("luminus-loading", F.loading), children: [
18
14
  /* @__PURE__ */ r.jsx("div", { className: d("spinner-grow", F.spinnerGrow, "text-primary"), role: "status" }),
19
15
  /* @__PURE__ */ r.jsx("div", { className: d("spinner-grow", F.spinnerGrow, "text-primary", F.second), role: "status" }),
20
16
  /* @__PURE__ */ r.jsx("div", { className: d("spinner-grow", F.spinnerGrow, "text-primary", F.third), role: "status" })
@@ -25,11 +21,11 @@ const yt = "_loading_rgybp_1", vt = "_spinner-grow_rgybp_10", wt = "_second_rgyb
25
21
  }));
26
22
  function Nt(t) {
27
23
  const e = N(null);
28
- return ve(() => {
24
+ return we(() => {
29
25
  e.current = t;
30
26
  }), e.current;
31
27
  }
32
- const Ct = {
28
+ const Mt = {
33
29
  /** An accessible label indicating the relevant information about the Close Button. */
34
30
  "aria-label": D.string,
35
31
  /** A callback fired after the Close Button is clicked. */
@@ -40,7 +36,7 @@ const Ct = {
40
36
  * Omitting this will render the default dark color.
41
37
  */
42
38
  variant: D.oneOf(["white"])
43
- }, Ne = /* @__PURE__ */ u.forwardRef(({
39
+ }, Te = /* @__PURE__ */ u.forwardRef(({
44
40
  className: t,
45
41
  variant: e,
46
42
  "aria-label": n = "Close",
@@ -52,17 +48,17 @@ const Ct = {
52
48
  "aria-label": n,
53
49
  ...o
54
50
  }));
55
- Ne.displayName = "CloseButton";
56
- Ne.propTypes = Ct;
57
- var Mt = Function.prototype.bind.call(Function.prototype.call, [].slice);
51
+ Te.displayName = "CloseButton";
52
+ Te.propTypes = Mt;
53
+ var Ct = Function.prototype.bind.call(Function.prototype.call, [].slice);
58
54
  function S(t, e) {
59
- return Mt(t.querySelectorAll(e));
55
+ return Ct(t.querySelectorAll(e));
60
56
  }
61
57
  const Rt = "data-rr-ui-";
62
- function xt(t) {
58
+ function kt(t) {
63
59
  return `${Rt}${t}`;
64
60
  }
65
- const kt = {
61
+ const xt = {
66
62
  /**
67
63
  * Specify whether the feedback is for valid or invalid fields
68
64
  *
@@ -72,7 +68,7 @@ const kt = {
72
68
  /** Display feedback as a tooltip. */
73
69
  tooltip: D.bool,
74
70
  as: D.elementType
75
- }, Ce = /* @__PURE__ */ u.forwardRef(
71
+ }, Ne = /* @__PURE__ */ u.forwardRef(
76
72
  // Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
77
73
  ({
78
74
  as: t = "div",
@@ -86,8 +82,8 @@ const kt = {
86
82
  className: d(e, `${n}-${o ? "tooltip" : "feedback"}`)
87
83
  })
88
84
  );
89
- Ce.displayName = "Feedback";
90
- Ce.propTypes = kt;
85
+ Ne.displayName = "Feedback";
86
+ Ne.propTypes = xt;
91
87
  const We = /* @__PURE__ */ u.forwardRef(({
92
88
  bsPrefix: t,
93
89
  type: e,
@@ -95,33 +91,33 @@ const We = /* @__PURE__ */ u.forwardRef(({
95
91
  htmlSize: o,
96
92
  id: s,
97
93
  className: a,
98
- isValid: f = !1,
99
- isInvalid: m = !1,
94
+ isValid: h = !1,
95
+ isInvalid: f = !1,
100
96
  plaintext: p,
101
- readOnly: w,
97
+ readOnly: v,
102
98
  // Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
103
- as: g = "input",
104
- ...C
99
+ as: m = "input",
100
+ ...M
105
101
  }, y) => {
106
102
  const {
107
- controlId: v
108
- } = Te(tt);
109
- return t = R(t, "form-control"), process.env.NODE_ENV !== "production" && nt(v == null || !s, "`controlId` is ignored on `<FormControl>` when `id` is specified."), /* @__PURE__ */ r.jsx(g, {
110
- ...C,
103
+ controlId: w
104
+ } = Ie(tt);
105
+ return t = R(t, "form-control"), process.env.NODE_ENV !== "production" && nt(w == null || !s, "`controlId` is ignored on `<FormControl>` when `id` is specified."), /* @__PURE__ */ r.jsx(m, {
106
+ ...M,
111
107
  type: e,
112
108
  size: o,
113
109
  ref: y,
114
- readOnly: w,
115
- id: s || v,
116
- className: d(a, p ? `${t}-plaintext` : t, n && `${t}-${n}`, e === "color" && `${t}-color`, f && "is-valid", m && "is-invalid")
110
+ readOnly: v,
111
+ id: s || w,
112
+ className: d(a, p ? `${t}-plaintext` : t, n && `${t}-${n}`, e === "color" && `${t}-color`, h && "is-valid", f && "is-invalid")
117
113
  });
118
114
  });
119
115
  We.displayName = "FormControl";
120
- const on = Object.assign(We, {
121
- Feedback: Ce
116
+ const Pt = Object.assign(We, {
117
+ Feedback: Ne
122
118
  });
123
119
  var oe;
124
- function Ae(t) {
120
+ function Be(t) {
125
121
  if ((!oe && oe !== 0 || t) && Ee) {
126
122
  var e = document.createElement("div");
127
123
  e.style.position = "absolute", e.style.top = "-9999px", e.style.width = "50px", e.style.height = "50px", e.style.overflow = "scroll", document.body.appendChild(e), oe = e.offsetWidth - e.clientWidth, document.body.removeChild(e);
@@ -129,7 +125,7 @@ function Ae(t) {
129
125
  return oe;
130
126
  }
131
127
  function he(t) {
132
- t === void 0 && (t = $e());
128
+ t === void 0 && (t = Se());
133
129
  try {
134
130
  var e = t.activeElement;
135
131
  return !e || !e.nodeName ? null : e;
@@ -141,7 +137,7 @@ function jt(t = document) {
141
137
  const e = t.defaultView;
142
138
  return Math.abs(e.innerWidth - t.documentElement.clientWidth);
143
139
  }
144
- const Fe = xt("modal-open");
140
+ const Ae = kt("modal-open");
145
141
  class Me {
146
142
  constructor({
147
143
  ownerDocument: e,
@@ -167,14 +163,14 @@ class Me {
167
163
  e.style = {
168
164
  overflow: s.style.overflow,
169
165
  [o]: s.style[o]
170
- }, e.scrollBarWidth && (n[o] = `${parseInt(V(s, o) || "0", 10) + e.scrollBarWidth}px`), s.setAttribute(Fe, ""), V(s, n);
166
+ }, e.scrollBarWidth && (n[o] = `${parseInt(V(s, o) || "0", 10) + e.scrollBarWidth}px`), s.setAttribute(Ae, ""), V(s, n);
171
167
  }
172
168
  reset() {
173
169
  [...this.modals].forEach((e) => this.remove(e));
174
170
  }
175
171
  removeContainerStyle(e) {
176
172
  const n = this.getElement();
177
- n.removeAttribute(Fe), Object.assign(n.style, e.style);
173
+ n.removeAttribute(Ae), Object.assign(n.style, e.style);
178
174
  }
179
175
  add(e) {
180
176
  let n = this.modals.indexOf(e);
@@ -193,8 +189,7 @@ class Me {
193
189
  }
194
190
  const _t = ["show", "role", "className", "style", "children", "backdrop", "keyboard", "onBackdropClick", "onEscapeKeyDown", "transition", "runTransition", "backdropTransition", "runBackdropTransition", "autoFocus", "enforceFocus", "restoreFocus", "restoreFocusOptions", "renderDialog", "renderBackdrop", "manager", "container", "onShow", "onHide", "onExit", "onExited", "onExiting", "onEnter", "onEntering", "onEntered"];
195
191
  function Ot(t, e) {
196
- if (t == null)
197
- return {};
192
+ if (t == null) return {};
198
193
  var n = {}, o = Object.keys(t), s, a;
199
194
  for (a = 0; a < o.length; a++)
200
195
  s = o[a], !(e.indexOf(s) >= 0) && (n[s] = t[s]);
@@ -207,7 +202,7 @@ function Bt(t) {
207
202
  })), pe;
208
203
  }
209
204
  function At(t) {
210
- const e = Le(), n = t || Bt(e), o = N({
205
+ const e = $e(), n = t || Bt(e), o = N({
211
206
  dialog: null,
212
207
  backdrop: null
213
208
  });
@@ -223,24 +218,24 @@ function At(t) {
223
218
  }, [])
224
219
  });
225
220
  }
226
- const He = /* @__PURE__ */ mt((t, e) => {
221
+ const He = /* @__PURE__ */ ft((t, e) => {
227
222
  let {
228
223
  show: n = !1,
229
224
  role: o = "dialog",
230
225
  className: s,
231
226
  style: a,
232
- children: f,
233
- backdrop: m = !0,
227
+ children: h,
228
+ backdrop: f = !0,
234
229
  keyboard: p = !0,
235
- onBackdropClick: w,
236
- onEscapeKeyDown: g,
237
- transition: C,
230
+ onBackdropClick: v,
231
+ onEscapeKeyDown: m,
232
+ transition: M,
238
233
  runTransition: y,
239
- backdropTransition: v,
234
+ backdropTransition: w,
240
235
  runBackdropTransition: se,
241
236
  autoFocus: z = !0,
242
237
  enforceFocus: ae = !0,
243
- restoreFocus: x = !0,
238
+ restoreFocus: k = !0,
244
239
  restoreFocusOptions: re,
245
240
  renderDialog: X,
246
241
  renderBackdrop: ie = (l) => /* @__PURE__ */ r.jsx("div", Object.assign({}, l)),
@@ -256,10 +251,10 @@ const He = /* @__PURE__ */ mt((t, e) => {
256
251
  onEntering: Q,
257
252
  onEntered: Z
258
253
  } = t, ue = Ot(t, _t);
259
- const b = Le(), k = ot(de), c = At(le), fe = st(), P = Nt(n), [M, j] = we(!n), h = N(null);
260
- gt(e, () => c, [c]), Ee && !P && n && (h.current = he(b == null ? void 0 : b.document)), n && M && j(!1);
254
+ const b = $e(), x = ot(de), c = At(le), fe = st(), P = Nt(n), [C, j] = ve(!n), g = N(null);
255
+ mt(e, () => c, [c]), Ee && !P && n && (g.current = he(b == null ? void 0 : b.document)), n && C && j(!1);
261
256
  const E = T(() => {
262
- if (c.add(), _.current = je(document, "keydown", ge), G.current = je(
257
+ if (c.add(), _.current = xe(document, "keydown", ge), G.current = xe(
263
258
  document,
264
259
  "focus",
265
260
  // the timeout is necessary b/c this will run before the new modal is mounted
@@ -269,39 +264,39 @@ const He = /* @__PURE__ */ mt((t, e) => {
269
264
  ), q && q(), z) {
270
265
  var l, ne;
271
266
  const U = he((l = (ne = c.dialog) == null ? void 0 : ne.ownerDocument) != null ? l : b == null ? void 0 : b.document);
272
- c.dialog && U && !_e(c.dialog, U) && (h.current = U, c.dialog.focus());
267
+ c.dialog && U && !je(c.dialog, U) && (g.current = U, c.dialog.focus());
273
268
  }
274
269
  }), H = T(() => {
275
- if (c.remove(), _.current == null || _.current(), G.current == null || G.current(), x) {
270
+ if (c.remove(), _.current == null || _.current(), G.current == null || G.current(), k) {
276
271
  var l;
277
- (l = h.current) == null || l.focus == null || l.focus(re), h.current = null;
272
+ (l = g.current) == null || l.focus == null || l.focus(re), g.current = null;
278
273
  }
279
274
  });
280
- ve(() => {
281
- !n || !k || E();
275
+ we(() => {
276
+ !n || !x || E();
282
277
  }, [
283
278
  n,
284
- k,
279
+ x,
285
280
  /* should never change: */
286
281
  E
287
- ]), ve(() => {
288
- M && H();
289
- }, [M, H]), De(() => {
282
+ ]), we(() => {
283
+ C && H();
284
+ }, [C, H]), Le(() => {
290
285
  H();
291
286
  });
292
287
  const me = T(() => {
293
288
  if (!ae || !fe() || !c.isTopModal())
294
289
  return;
295
290
  const l = he(b == null ? void 0 : b.document);
296
- c.dialog && l && !_e(c.dialog, l) && c.dialog.focus();
291
+ c.dialog && l && !je(c.dialog, l) && c.dialog.focus();
297
292
  }), ee = T((l) => {
298
- l.target === l.currentTarget && (w == null || w(l), m === !0 && I());
293
+ l.target === l.currentTarget && (v == null || v(l), f === !0 && I());
299
294
  }), ge = T((l) => {
300
- p && at(l) && c.isTopModal() && (g == null || g(l), l.defaultPrevented || I());
295
+ p && at(l) && c.isTopModal() && (m == null || m(l), l.defaultPrevented || I());
301
296
  }), G = N(), _ = N(), te = (...l) => {
302
297
  j(!0), W == null || W(...l);
303
298
  };
304
- if (!k)
299
+ if (!x)
305
300
  return null;
306
301
  const O = Object.assign({
307
302
  role: o,
@@ -314,11 +309,11 @@ const He = /* @__PURE__ */ mt((t, e) => {
314
309
  tabIndex: -1
315
310
  });
316
311
  let K = X ? X(O) : /* @__PURE__ */ r.jsx("div", Object.assign({}, O, {
317
- children: /* @__PURE__ */ u.cloneElement(f, {
312
+ children: /* @__PURE__ */ u.cloneElement(h, {
318
313
  role: "document"
319
314
  })
320
315
  }));
321
- K = Oe(C, y, {
316
+ K = _e(M, y, {
322
317
  unmountOnExit: !0,
323
318
  mountOnEnter: !0,
324
319
  appear: !0,
@@ -332,19 +327,19 @@ const He = /* @__PURE__ */ mt((t, e) => {
332
327
  children: K
333
328
  });
334
329
  let B = null;
335
- return m && (B = ie({
330
+ return f && (B = ie({
336
331
  ref: c.setBackdropRef,
337
332
  onClick: ee
338
- }), B = Oe(v, se, {
333
+ }), B = _e(w, se, {
339
334
  in: !!n,
340
335
  appear: !0,
341
336
  mountOnEnter: !0,
342
337
  unmountOnExit: !0,
343
338
  children: B
344
339
  })), /* @__PURE__ */ r.jsx(r.Fragment, {
345
- children: /* @__PURE__ */ pt.createPortal(/* @__PURE__ */ r.jsxs(r.Fragment, {
340
+ children: /* @__PURE__ */ ht.createPortal(/* @__PURE__ */ r.jsxs(r.Fragment, {
346
341
  children: [B, K]
347
- }), k)
342
+ }), x)
348
343
  });
349
344
  });
350
345
  He.displayName = "Modal";
@@ -354,11 +349,11 @@ const Ft = Object.assign(He, {
354
349
  function St(t, e) {
355
350
  t.classList ? t.classList.add(e) : rt(t, e) || (typeof t.className == "string" ? t.className = t.className + " " + e : t.setAttribute("class", (t.className && t.className.baseVal || "") + " " + e));
356
351
  }
357
- function Se(t, e) {
352
+ function Fe(t, e) {
358
353
  return t.replace(new RegExp("(^|\\s)" + e + "(?:\\s|$)", "g"), "$1").replace(/\s+/g, " ").replace(/^\s*|\s*$/g, "");
359
354
  }
360
355
  function $t(t, e) {
361
- t.classList ? t.classList.remove(e) : typeof t.className == "string" ? t.className = Se(t.className, e) : t.setAttribute("class", Se(t.className && t.className.baseVal || "", e));
356
+ t.classList ? t.classList.remove(e) : typeof t.className == "string" ? t.className = Fe(t.className, e) : t.setAttribute("class", Fe(t.className && t.className.baseVal || "", e));
362
357
  }
363
358
  const $ = {
364
359
  FIXED_CONTENT: ".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",
@@ -381,8 +376,7 @@ class Lt extends Me {
381
376
  setContainerStyle(e) {
382
377
  super.setContainerStyle(e);
383
378
  const n = this.getElement();
384
- if (St(n, "modal-open"), !e.scrollBarWidth)
385
- return;
379
+ if (St(n, "modal-open"), !e.scrollBarWidth) return;
386
380
  const o = this.isRTL ? "paddingLeft" : "paddingRight", s = this.isRTL ? "marginLeft" : "marginRight";
387
381
  S(n, $.FIXED_CONTENT).forEach((a) => this.adjustAndStore(o, a, e.scrollBarWidth)), S(n, $.STICKY_CONTENT).forEach((a) => this.adjustAndStore(s, a, -e.scrollBarWidth)), S(n, $.NAVBAR_TOGGLER).forEach((a) => this.adjustAndStore(s, a, e.scrollBarWidth));
388
382
  }
@@ -413,30 +407,30 @@ const Ke = /* @__PURE__ */ u.createContext({
413
407
  // eslint-disable-next-line @typescript-eslint/no-empty-function
414
408
  onHide() {
415
409
  }
416
- }), Re = /* @__PURE__ */ u.forwardRef(({
410
+ }), Ce = /* @__PURE__ */ u.forwardRef(({
417
411
  bsPrefix: t,
418
412
  className: e,
419
413
  contentClassName: n,
420
414
  centered: o,
421
415
  size: s,
422
416
  fullscreen: a,
423
- children: f,
424
- scrollable: m,
417
+ children: h,
418
+ scrollable: f,
425
419
  ...p
426
- }, w) => {
420
+ }, v) => {
427
421
  t = R(t, "modal");
428
- const g = `${t}-dialog`, C = typeof a == "string" ? `${t}-fullscreen-${a}` : `${t}-fullscreen`;
422
+ const m = `${t}-dialog`, M = typeof a == "string" ? `${t}-fullscreen-${a}` : `${t}-fullscreen`;
429
423
  return /* @__PURE__ */ r.jsx("div", {
430
424
  ...p,
431
- ref: w,
432
- className: d(g, e, s && `${t}-${s}`, o && `${g}-centered`, m && `${g}-scrollable`, a && C),
425
+ ref: v,
426
+ className: d(m, e, s && `${t}-${s}`, o && `${m}-centered`, f && `${m}-scrollable`, a && M),
433
427
  children: /* @__PURE__ */ r.jsx("div", {
434
428
  className: d(`${t}-content`, n),
435
- children: f
429
+ children: h
436
430
  })
437
431
  });
438
432
  });
439
- Re.displayName = "ModalDialog";
433
+ Ce.displayName = "ModalDialog";
440
434
  const Ue = /* @__PURE__ */ u.forwardRef(({
441
435
  className: t,
442
436
  bsPrefix: e,
@@ -455,14 +449,14 @@ const It = /* @__PURE__ */ u.forwardRef(({
455
449
  onHide: o,
456
450
  children: s,
457
451
  ...a
458
- }, f) => {
459
- const m = Te(Ke), p = T(() => {
460
- m == null || m.onHide(), o == null || o();
452
+ }, h) => {
453
+ const f = Ie(Ke), p = T(() => {
454
+ f == null || f.onHide(), o == null || o();
461
455
  });
462
456
  return /* @__PURE__ */ r.jsxs("div", {
463
- ref: f,
457
+ ref: h,
464
458
  ...a,
465
- children: [s, n && /* @__PURE__ */ r.jsx(Ne, {
459
+ children: [s, n && /* @__PURE__ */ r.jsx(Te, {
466
460
  "aria-label": t,
467
461
  variant: e,
468
462
  onClick: p
@@ -494,13 +488,13 @@ const Wt = Tt("h4"), ze = /* @__PURE__ */ u.forwardRef(({
494
488
  })));
495
489
  ze.displayName = "ModalTitle";
496
490
  function Ht(t) {
497
- return /* @__PURE__ */ r.jsx(Ie, {
491
+ return /* @__PURE__ */ r.jsx(De, {
498
492
  ...t,
499
493
  timeout: null
500
494
  });
501
495
  }
502
496
  function Gt(t) {
503
- return /* @__PURE__ */ r.jsx(Ie, {
497
+ return /* @__PURE__ */ r.jsx(De, {
504
498
  ...t,
505
499
  timeout: null
506
500
  });
@@ -512,19 +506,19 @@ const Xe = /* @__PURE__ */ u.forwardRef(({
512
506
  dialogClassName: o,
513
507
  contentClassName: s,
514
508
  children: a,
515
- dialogAs: f = Re,
516
- "data-bs-theme": m,
509
+ dialogAs: h = Ce,
510
+ "data-bs-theme": f,
517
511
  "aria-labelledby": p,
518
- "aria-describedby": w,
519
- "aria-label": g,
512
+ "aria-describedby": v,
513
+ "aria-label": m,
520
514
  /* BaseModal props */
521
- show: C = !1,
515
+ show: M = !1,
522
516
  animation: y = !0,
523
- backdrop: v = !0,
517
+ backdrop: w = !0,
524
518
  keyboard: se = !0,
525
519
  onEscapeKeyDown: z,
526
520
  onShow: ae,
527
- onHide: x,
521
+ onHide: k,
528
522
  container: re,
529
523
  autoFocus: X = !0,
530
524
  enforceFocus: ie = !0,
@@ -540,9 +534,9 @@ const Xe = /* @__PURE__ */ u.forwardRef(({
540
534
  manager: Z,
541
535
  ...ue
542
536
  }, b) => {
543
- const [k, c] = we({}), [fe, P] = we(!1), M = N(!1), j = N(!1), h = N(null), [E, H] = it(), me = lt(b, H), ee = T(x), ge = dt();
537
+ const [x, c] = ve({}), [fe, P] = ve(!1), C = N(!1), j = N(!1), g = N(null), [E, H] = it(), me = lt(b, H), ee = T(k), ge = dt();
544
538
  t = R(t, "modal");
545
- const G = ht(() => ({
539
+ const G = gt(() => ({
546
540
  onHide: ee
547
541
  }), [ee]);
548
542
  function _() {
@@ -551,32 +545,31 @@ const Xe = /* @__PURE__ */ u.forwardRef(({
551
545
  });
552
546
  }
553
547
  function te(i) {
554
- if (!Ee)
555
- return;
556
- const A = _().getScrollbarWidth() > 0, ke = i.scrollHeight > $e(i).documentElement.clientHeight;
548
+ if (!Ee) return;
549
+ const A = _().getScrollbarWidth() > 0, ke = i.scrollHeight > Se(i).documentElement.clientHeight;
557
550
  c({
558
- paddingRight: A && !ke ? Ae() : void 0,
559
- paddingLeft: !A && ke ? Ae() : void 0
551
+ paddingRight: A && !ke ? Be() : void 0,
552
+ paddingLeft: !A && ke ? Be() : void 0
560
553
  });
561
554
  }
562
555
  const O = T(() => {
563
556
  E && te(E.dialog);
564
557
  });
565
- De(() => {
566
- Be(window, "resize", O), h.current == null || h.current();
558
+ Le(() => {
559
+ Oe(window, "resize", O), g.current == null || g.current();
567
560
  });
568
561
  const K = () => {
569
- M.current = !0;
562
+ C.current = !0;
570
563
  }, B = (i) => {
571
- M.current && E && i.target === E.dialog && (j.current = !0), M.current = !1;
564
+ C.current && E && i.target === E.dialog && (j.current = !0), C.current = !1;
572
565
  }, l = () => {
573
- P(!0), h.current = ut(E.dialog, () => {
566
+ P(!0), g.current = ut(E.dialog, () => {
574
567
  P(!1);
575
568
  });
576
569
  }, ne = (i) => {
577
570
  i.target === i.currentTarget && l();
578
571
  }, U = (i) => {
579
- if (v === "static") {
572
+ if (w === "static") {
580
573
  ne(i);
581
574
  return;
582
575
  }
@@ -584,37 +577,37 @@ const Xe = /* @__PURE__ */ u.forwardRef(({
584
577
  j.current = !1;
585
578
  return;
586
579
  }
587
- x == null || x();
580
+ k == null || k();
588
581
  }, qe = (i) => {
589
- se ? z == null || z(i) : (i.preventDefault(), v === "static" && l());
582
+ se ? z == null || z(i) : (i.preventDefault(), w === "static" && l());
590
583
  }, Ye = (i, A) => {
591
584
  i && te(i), W == null || W(i, A);
592
585
  }, Je = (i) => {
593
- h.current == null || h.current(), I == null || I(i);
586
+ g.current == null || g.current(), I == null || I(i);
594
587
  }, Qe = (i, A) => {
595
588
  Y == null || Y(i, A), ct(window, "resize", O);
596
589
  }, Ze = (i) => {
597
- i && (i.style.display = ""), J == null || J(i), Be(window, "resize", O);
590
+ i && (i.style.display = ""), J == null || J(i), Oe(window, "resize", O);
598
591
  }, Pe = be((i) => /* @__PURE__ */ r.jsx("div", {
599
592
  ...i,
600
593
  className: d(`${t}-backdrop`, Q, !y && "show")
601
- }), [y, Q, t]), xe = {
594
+ }), [y, Q, t]), Re = {
602
595
  ...n,
603
- ...k
596
+ ...x
604
597
  };
605
- xe.display = "block";
598
+ Re.display = "block";
606
599
  const et = (i) => /* @__PURE__ */ r.jsx("div", {
607
600
  role: "dialog",
608
601
  ...i,
609
- style: xe,
602
+ style: Re,
610
603
  className: d(e, t, fe && `${t}-static`, !y && "show"),
611
- onClick: v ? U : void 0,
604
+ onClick: w ? U : void 0,
612
605
  onMouseUp: B,
613
- "data-bs-theme": m,
614
- "aria-label": g,
606
+ "data-bs-theme": f,
607
+ "aria-label": m,
615
608
  "aria-labelledby": p,
616
- "aria-describedby": w,
617
- children: /* @__PURE__ */ r.jsx(f, {
609
+ "aria-describedby": v,
610
+ children: /* @__PURE__ */ r.jsx(h, {
618
611
  ...ue,
619
612
  onMouseDown: K,
620
613
  className: o,
@@ -625,9 +618,9 @@ const Xe = /* @__PURE__ */ u.forwardRef(({
625
618
  return /* @__PURE__ */ r.jsx(Ke.Provider, {
626
619
  value: G,
627
620
  children: /* @__PURE__ */ r.jsx(Ft, {
628
- show: C,
621
+ show: M,
629
622
  ref: me,
630
- backdrop: v,
623
+ backdrop: w,
631
624
  container: re,
632
625
  keyboard: !0,
633
626
  autoFocus: X,
@@ -636,7 +629,7 @@ const Xe = /* @__PURE__ */ u.forwardRef(({
636
629
  restoreFocusOptions: de,
637
630
  onEscapeKeyDown: qe,
638
631
  onShow: ae,
639
- onHide: x,
632
+ onHide: k,
640
633
  onEnter: Ye,
641
634
  onEntering: Qe,
642
635
  onEntered: q,
@@ -652,12 +645,12 @@ const Xe = /* @__PURE__ */ u.forwardRef(({
652
645
  });
653
646
  });
654
647
  Xe.displayName = "Modal";
655
- const sn = Object.assign(Xe, {
648
+ const en = Object.assign(Xe, {
656
649
  Body: Ge,
657
650
  Header: Ve,
658
651
  Title: ze,
659
652
  Footer: Ue,
660
- Dialog: Re,
653
+ Dialog: Ce,
661
654
  TRANSITION_DURATION: 300,
662
655
  BACKDROP_TRANSITION_DURATION: 150
663
656
  }), Kt = "_button_1wjon_1", Ut = "_filled_1wjon_7", Vt = "_sm_1wjon_13", zt = "_md_1wjon_18", Xt = "_lg_1wjon_23", L = {
@@ -666,24 +659,21 @@ const sn = Object.assign(Xe, {
666
659
  sm: Vt,
667
660
  md: zt,
668
661
  lg: Xt
669
- }, an = ({ variant: t = "filled", color: e = "primary", size: n = "md", className: o, children: s, ...a }) => {
670
- const { LinkComponent: f } = Te(ft);
671
- return a.as === "link" ? /* @__PURE__ */ r.jsx(f, { to: a.href ?? "/", className: d(`luminus-primary-button ${e} btn ${t === "outlined" ? `btn-outline-${e}` : `btn-${e}`} ${o ?? ""}`, L.button, L[t], L[n]), ...a, children: s }) : a.as === "button" || a.as === void 0 ? /* @__PURE__ */ r.jsx("button", { type: "button", className: d(`luminus-primary-button ${e} btn ${t === "outlined" ? `btn-outline-${e}` : `btn-${e}`} ${o ?? ""}`, L.button, L[t], L[n]), ...a, children: s }) : null;
672
- };
662
+ }, tn = ({ variant: t = "filled", color: e = "primary", size: n = "md", className: o, children: s, ...a }) => a.as === "link" ? /* @__PURE__ */ r.jsx(pt, { to: a.href ?? "/", className: d(`luminus-primary-button ${e} btn ${t === "outlined" ? `btn-outline-${e}` : `btn-${e}`} ${o ?? ""}`, L.button, L[t], L[n]), ...a, children: s }) : a.as === "button" || a.as === void 0 ? /* @__PURE__ */ r.jsx("button", { type: "button", className: d(`luminus-primary-button ${e} btn ${t === "outlined" ? `btn-outline-${e}` : `btn-${e}`} ${o ?? ""}`, L.button, L[t], L[n]), ...a, children: s }) : null;
673
663
  export {
674
664
  It as A,
675
665
  Ft as B,
676
- Ne as C,
677
- Ce as F,
678
- nn as L,
666
+ Te as C,
667
+ Ne as F,
668
+ Zt as L,
679
669
  Ke as M,
680
- an as P,
681
- xt as a,
682
- on as b,
670
+ tn as P,
671
+ kt as a,
672
+ Pt as b,
683
673
  F as c,
684
674
  Tt as d,
685
675
  Lt as e,
686
- sn as f,
676
+ en as f,
687
677
  Dt as g,
688
678
  S as q,
689
679
  Nt as u