react-luminus-components 1.3.32 → 1.3.34
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.
- package/README.md +0 -6
- package/dist/.vite/manifest.json +60 -60
- package/dist/FromToDatePickerDropdownToggle-DhzBIJXw.cjs +253 -0
- package/dist/{FromToDatePickerDropdownToggle-DDOxJCc2.js → FromToDatePickerDropdownToggle-Dk7MFcJp.js} +2761 -2615
- package/dist/{PrimaryButton-B64e5vBv.js → PrimaryButton-Bbl06m-g.js} +135 -145
- package/dist/PrimaryButton-D33g-RWP.cjs +1 -0
- package/dist/{SimpleTooltip-DIqIPx0H.cjs → SimpleTooltip-Bz22xxXa.cjs} +1 -1
- package/dist/{SimpleTooltip-BgRjtr0d.js → SimpleTooltip-C32Faxrc.js} +1 -1
- package/dist/components/BnfTableValueFormats/UserAvatarValueFormat/UserAvatarValueFormat.d.ts +2 -1
- package/dist/components/Buttons/ContextButton/ContextButton.d.ts +0 -1
- package/dist/components/Buttons/ContextButton/FileUploadContextButton.d.ts +0 -1
- package/dist/components/Buttons/FloatingSubmit/FloatingFormSubmit.d.ts +1 -0
- package/dist/components/Buttons/IconButton/IconButton.d.ts +0 -1
- package/dist/components/Buttons/PrimaryButton/PrimaryButton.d.ts +0 -1
- package/dist/components/Dropdown/Dropdown.d.ts +1 -1
- package/dist/components/Dropdown/comps/DropdownDivider/DropdownDivider.d.ts +2 -1
- package/dist/components/Dropdown/comps/DropdownItem/DropdownItem.d.ts +0 -1
- package/dist/components/Dropdown/comps/DropdownItem/FileUploadDropdownItem.d.ts +0 -1
- package/dist/components/Dropdown/comps/DropdownToggle/DropdownToggle.d.ts +1 -1
- package/dist/components/Dropdown/comps/SimpleToggle/SimpleToggle.d.ts +5 -4
- package/dist/components/Dropdown/comps/UserAvatarToggle/UserAvatarToggle.d.ts +2 -1
- package/dist/components/Form/CheckInput/CheckInput.d.ts +2 -2
- package/dist/components/Form/DropdownPicker/DropdownPicker.d.ts +2 -2
- package/dist/components/Form/NumericStepperInput/NumericStepperInput.d.ts +2 -2
- package/dist/components/Form/SelectInput/SelectInput.d.ts +2 -2
- package/dist/components/Form/TextAreaInput/TextAreaInput.d.ts +2 -2
- package/dist/components/Form/TextInput/TextInput.d.ts +2 -2
- package/dist/components/HookForm/CheckInput/HookFormCheckInput.d.ts +2 -2
- package/dist/components/HookForm/CustomSelectInput/CustomSelectInput.d.ts +2 -2
- package/dist/components/HookForm/DropdownPicker/HookFormDropdownPicker.d.ts +3 -2
- package/dist/components/HookForm/FileInput/HookFormFileInput.d.ts +2 -2
- package/dist/components/HookForm/FloatingSubmit/HookFormFloatingSubmit.d.ts +1 -0
- package/dist/components/HookForm/NumericStepperInput/HookFormNumericStepperInput.d.ts +2 -2
- package/dist/components/HookForm/RadioInput/HookFormRadioInput.d.ts +2 -2
- package/dist/components/HookForm/SelectInput/HookFormSelectInput.d.ts +2 -2
- package/dist/components/HookForm/TextAreaInput/HookFormTextAreaInput.d.ts +2 -2
- package/dist/components/HookForm/TextInput/HookFormTextInput.d.ts +2 -2
- package/dist/components/InputContainers/FloatingLabelInput/FloatingLabelInput.d.ts +22 -23
- package/dist/components/InputContainers/InputAnchorContainer/InputAnchorContainer.d.ts +2 -2
- package/dist/components/InputContainers/NoInputContainer/NoInputContainer.d.ts +22 -23
- package/dist/components/InputContainers/RowLabelInput/RowLabelInput.d.ts +22 -23
- package/dist/components/Layout/MessageBoard/MessageBoard.d.ts +2 -1
- package/dist/components/Layout/MessageBoard/components/MessageList/MessageList.d.ts +2 -2
- package/dist/components/Layout/MessageBoard/components/MessageList/comps/MessageFilters/MessageFilters.d.ts +0 -1
- package/dist/components/Layout/MessageBoard/components/MessageList/comps/MessageItem/MessageItem.d.ts +2 -2
- package/dist/components/NewTabs/Tab/Tab.d.ts +1 -0
- package/dist/components/NewTabs/TabPanel/TabPanel.d.ts +0 -1
- package/dist/components/NewTabs/Tabs/Tabs.d.ts +2 -2
- package/dist/components/Tabs/Tabs.d.ts +1 -1
- package/dist/components/Tabs/comps/Tab/Tab.d.ts +1 -1
- package/dist/components/Tooltip/HtmlTooltip/HtmlTooltip.d.ts +1 -0
- package/dist/components/Tooltip/SimpleTooltip/SimpleTooltip.d.ts +1 -0
- package/dist/components/UserAvatar/AvatarIcon/AvatarIcon.d.ts +0 -1
- package/dist/components/common/Alert/Alert.d.ts +1 -1
- package/dist/components/common/AlertItem/AlertItem.d.ts +0 -1
- package/dist/components/common/ApiFileDownloadButton/ApiFileDownloadButton.d.ts +2 -1
- package/dist/components/common/AppSearch/AppSearch.d.ts +2 -2
- package/dist/components/common/AppSearch/comps/AutocompleteWindow/AutocompleteWindow.d.ts +2 -2
- package/dist/components/common/AppSearch/comps/TypeSelector/TypeSelector.d.ts +3 -2
- package/dist/components/common/AppSearch/hooks/useSearchItems.d.ts +2 -1
- package/dist/components/common/AuthTemplate/AuthTemplate.d.ts +2 -1
- package/dist/components/common/Backdrop/Backdrop.d.ts +0 -1
- package/dist/components/common/Badge/Badge.d.ts +0 -1
- package/dist/components/common/Card/Card.d.ts +0 -1
- package/dist/components/common/Collapse/Collapse.d.ts +0 -1
- package/dist/components/common/ConfirmDialog/ConfirmDialog.d.ts +0 -1
- package/dist/components/common/ErrorBoundary/ErrorBoundary.d.ts +2 -1
- package/dist/components/common/FloatingActionContainer/FloatingActionContainer.d.ts +0 -1
- package/dist/components/common/FromToDatePicker/FromToDatePicker.d.ts +3 -2
- package/dist/components/common/FromToDatePicker/components/FromToDatePickerDropdownToggle/FromToDatePickerDropdownToggle.d.ts +2 -1
- package/dist/components/common/FromToDatePicker/hooks/useFromToDatePicker.d.ts +2 -1
- package/dist/components/common/FromToDatePicker/utils/utilsFromToDatePicker.d.ts +1 -0
- package/dist/components/common/HomeDashboard/HomeDashboard.d.ts +3 -3
- package/dist/components/common/HomeDashboard/comps/FreeSpaceWidget/FreeSpaceWidget.d.ts +2 -2
- package/dist/components/common/HomeDashboard/comps/WidgetPicker/WidgetPicker.d.ts +2 -2
- package/dist/components/common/HomeDashboard/hooks/useUserDashboard.d.ts +2 -1
- package/dist/components/common/ImgApi/ImgApi.d.ts +2 -2
- package/dist/components/common/ImgApi/hooks/useGetImgData.d.ts +2 -2
- package/dist/components/common/ImgDirect/ImgDirect.d.ts +2 -2
- package/dist/components/common/InvalidFeedback/InvalidFeedback.d.ts +0 -1
- package/dist/components/common/Loading/Loading.d.ts +0 -1
- package/dist/components/common/Loading/LoadingBlock.d.ts +1 -0
- package/dist/components/common/MonthPicker/MonthPicker.d.ts +1 -1
- package/dist/components/common/PhotoLibrary/PhotoLibrary.d.ts +2 -2
- package/dist/components/common/PhotoLightbox/PhotoLightbox.d.ts +2 -2
- package/dist/components/common/PromptDialog/PromptDialog.d.ts +0 -1
- package/dist/components/common/SimplePicker/SimplePicker.d.ts +2 -1
- package/dist/components/common/Timeline/Timeline.d.ts +2 -2
- package/dist/components/common/Typography/Typography.d.ts +0 -1
- package/dist/components/common/VersionInfo/VersionInfo.d.ts +0 -1
- package/dist/components/common/Widget/WidgetCard.d.ts +1 -0
- package/dist/components/common/Widget/WidgetWrapper.d.ts +1 -0
- package/dist/components/common/YearPicker/YearPicker.d.ts +0 -1
- package/dist/contexts/auth/AuthContext.d.ts +3 -3
- package/dist/contexts/auth/AuthProvider.d.ts +2 -2
- package/dist/contexts/confirm/ConfirmContext.d.ts +1 -2
- package/dist/contexts/confirm/ConfirmProvider.d.ts +0 -1
- package/dist/contexts/delegation/DelegationContext.d.ts +3 -2
- package/dist/contexts/delegation/DelegationProvider.d.ts +0 -1
- package/dist/contexts/loading/LoadingContext.d.ts +1 -2
- package/dist/contexts/loading/LoadingProvider.d.ts +0 -1
- package/dist/contexts/luminus-components/LuminusComponentsContext.d.ts +3 -16
- package/dist/contexts/luminus-components/LuminusComponentsProvider.d.ts +4 -17
- package/dist/contexts/prompt/PromptContext.d.ts +3 -3
- package/dist/contexts/prompt/PromptProvider.d.ts +1 -0
- package/dist/contexts/user/UserContext.d.ts +4 -4
- package/dist/contexts/user/UserProvider.d.ts +0 -1
- package/dist/contexts.cjs.js +1 -1
- package/dist/contexts.d.ts +1 -257
- package/dist/contexts.es.js +129 -158
- package/dist/{dateUtils-C8trxO28.js → dateUtils-B9-rf1Eh.js} +11 -21
- package/dist/{dateUtils-ChS-y8JY.cjs → dateUtils-Bs39Qj7k.cjs} +1 -1
- package/dist/hooks/useAxios/useAxios.d.ts +2 -1
- package/dist/hooks/useClickOutside/useClickOutside.d.ts +1 -0
- package/dist/hooks/useFormControlType/useFormControlType.d.ts +1 -1
- package/dist/hooks/useGetApiData/useGetApiData.d.ts +3 -3
- package/dist/hooks/useLocalStorageState/useLocalStorageState.d.ts +1 -2
- package/dist/hooks/useNotifications/useNotifications.d.ts +1 -1
- package/dist/hooks/usePrompt/usePrompt.d.ts +2 -1
- package/dist/hooks/useZodSchemaTypes/useZodSchemaTypes.d.ts +2 -1
- package/dist/hooks.cjs.js +1 -1
- package/dist/hooks.d.ts +1 -162
- package/dist/hooks.es.js +22 -22
- package/dist/layout/FullScreenContainer/FullScreenContainer.d.ts +2 -2
- package/dist/layout/MainContainer/MainContainer.d.ts +2 -2
- package/dist/layout/PageTitle/PageTitle.d.ts +1 -0
- package/dist/layout/SideContentBar/SideContentBar.d.ts +1 -0
- package/dist/layout/SideMenu/MenuItem/MenuItem.d.ts +2 -2
- package/dist/layout/SideMenu/SideMenu.d.ts +2 -2
- package/dist/layout/TopBar/TopBar.d.ts +0 -1
- package/dist/layout.cjs.js +1 -1
- package/dist/layout.d.ts +1 -56
- package/dist/layout.es.js +92 -95
- package/dist/main.cjs.js +1 -1
- package/dist/main.d.ts +1 -1
- package/dist/main.es.js +1149 -1171
- package/dist/models/luminus-context-types/ILocalizationContext.d.ts +1 -0
- package/dist/models/prop-types/ContainerProps.d.ts +1 -0
- package/dist/models/prop-types/DashboardWidgetCommonProps.d.ts +1 -0
- package/dist/models/prop-types/FormInputProps/FormCheckInputProps.d.ts +2 -1
- package/dist/models/prop-types/FormInputProps/FormFileInputProps.d.ts +2 -1
- package/dist/models/prop-types/FormInputProps/FormNumericStepperInputProps.d.ts +2 -1
- package/dist/models/prop-types/FormInputProps/FormRadioInputProps.d.ts +2 -1
- package/dist/models/prop-types/FormInputProps/FormSelectInputProps.d.ts +2 -1
- package/dist/models/prop-types/FormInputProps/FormTextAreaInputProps.d.ts +2 -1
- package/dist/models/prop-types/FormInputProps/FormTextInputProps.d.ts +2 -1
- package/dist/models/prop-types/HookFormInputProps/HookFormCheckInputProps.d.ts +3 -2
- package/dist/models/prop-types/HookFormInputProps/HookFormDropdownPickerProps.d.ts +3 -2
- package/dist/models/prop-types/HookFormInputProps/HookFormFileInputProps.d.ts +3 -2
- package/dist/models/prop-types/HookFormInputProps/HookFormInputBaseProps.d.ts +2 -1
- package/dist/models/prop-types/HookFormInputProps/HookFormInputProps.d.ts +2 -1
- package/dist/models/prop-types/HookFormInputProps/HookFormNumericStepperInputProps.d.ts +3 -2
- package/dist/models/prop-types/HookFormInputProps/HookFormRadioInputProps.d.ts +3 -2
- package/dist/models/prop-types/HookFormInputProps/HookFormSelectInputProps.d.ts +3 -2
- package/dist/models/prop-types/HookFormInputProps/HookFormTextAreaInputProps.d.ts +3 -2
- package/dist/models/prop-types/HookFormInputProps/HookFormTextInputProps.d.ts +3 -2
- package/dist/models/prop-types/ImgProps.d.ts +1 -0
- package/dist/models/prop-types/InputContainerProps.d.ts +0 -1
- package/dist/models/prop-types/InputProps/CheckInputProps.d.ts +2 -1
- package/dist/models/prop-types/InputProps/DropdownPickerProps.d.ts +5 -5
- package/dist/models/prop-types/InputProps/FileInputProps.d.ts +2 -1
- package/dist/models/prop-types/InputProps/InputBaseProps.d.ts +2 -1
- package/dist/models/prop-types/InputProps/NumericInputProps.d.ts +2 -1
- package/dist/models/prop-types/InputProps/RadioInputProps.d.ts +3 -2
- package/dist/models/prop-types/InputProps/SelectInputProps.d.ts +3 -2
- package/dist/models/prop-types/InputProps/TextAreaInputProps.d.ts +2 -1
- package/dist/models/prop-types/InputProps/TextInputProps.d.ts +2 -2
- package/dist/models/texts/ComponentsContextTexts.d.ts +21 -2
- package/dist/models/texts/ErrorBoundaryTexts.d.ts +1 -0
- package/dist/models/types/ApiErrorResult.d.ts +2 -1
- package/dist/models/types/DashboardConfig.d.ts +2 -1
- package/dist/models/types/DashboardWidget.d.ts +2 -1
- package/dist/models/types/DropdownPickerOption.d.ts +2 -1
- package/dist/models/types/HookFormInputProps.d.ts +2 -1
- package/dist/models/types/MenuItemType.d.ts +0 -1
- package/dist/models/types/MenuItemTypeExtended.d.ts +2 -1
- package/dist/models/types/PhotoAction.d.ts +0 -1
- package/dist/models/types/SearchResultGroupModel.d.ts +3 -2
- package/dist/models/types/SearchResultModel.d.ts +2 -1
- package/dist/models/types/TimelineStep.d.ts +2 -2
- package/dist/models/types/UserLoginState.d.ts +3 -2
- package/dist/models/types/UserModel.d.ts +2 -1
- package/dist/{searchUtils-C38WM_G8.js → searchUtils-BCxOKHVq.js} +1 -1
- package/dist/{searchUtils-BdYnxcy0.cjs → searchUtils-CxNriHg_.cjs} +1 -1
- package/dist/{useLocalStorageState-asgEpnUg.cjs → useLocalStorageState-3ebV2Hf5.cjs} +1 -1
- package/dist/{useLocalStorageState-CFe9QRz0.js → useLocalStorageState-Cs1tOpr1.js} +3 -3
- package/dist/{usePermissions-Ce0AAKj1.cjs → usePermissions-BZPN1OT2.cjs} +1 -1
- package/dist/{usePermissions-55of2QBH.js → usePermissions-CfJgVLTi.js} +3 -3
- package/dist/utils/apiErrorFields/apiErrorFieldsUtils.d.ts +2 -1
- package/dist/utils/bnfValueFormat/bnfValueFormat.d.ts +0 -1
- package/dist/utils/hookForm/hookFormUtils.d.ts +2 -1
- package/dist/utils.cjs.js +1 -1
- package/dist/utils.d.ts +1 -153
- package/dist/utils.es.js +7 -7
- package/package.json +2 -2
- package/dist/FromToDatePickerDropdownToggle-BPfviPUU.cjs +0 -253
- 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
|
|
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-Dk7MFcJp.js";
|
|
2
2
|
import * as u from "react";
|
|
3
|
-
import { useRef as N, useEffect as
|
|
4
|
-
import
|
|
5
|
-
import "
|
|
6
|
-
|
|
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:
|
|
14
|
-
second:
|
|
9
|
+
spinnerGrow: wt,
|
|
10
|
+
second: vt,
|
|
15
11
|
third: bt,
|
|
16
12
|
loadingBlock: Et
|
|
17
|
-
},
|
|
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
|
|
24
|
+
return we(() => {
|
|
29
25
|
e.current = t;
|
|
30
26
|
}), e.current;
|
|
31
27
|
}
|
|
32
|
-
const
|
|
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
|
-
},
|
|
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
|
-
|
|
56
|
-
|
|
57
|
-
var
|
|
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
|
|
55
|
+
return Ct(t.querySelectorAll(e));
|
|
60
56
|
}
|
|
61
57
|
const Rt = "data-rr-ui-";
|
|
62
|
-
function
|
|
58
|
+
function kt(t) {
|
|
63
59
|
return `${Rt}${t}`;
|
|
64
60
|
}
|
|
65
|
-
const
|
|
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
|
-
},
|
|
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
|
-
|
|
90
|
-
|
|
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:
|
|
99
|
-
isInvalid:
|
|
94
|
+
isValid: h = !1,
|
|
95
|
+
isInvalid: f = !1,
|
|
100
96
|
plaintext: p,
|
|
101
|
-
readOnly:
|
|
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:
|
|
104
|
-
...
|
|
99
|
+
as: m = "input",
|
|
100
|
+
...M
|
|
105
101
|
}, y) => {
|
|
106
102
|
const {
|
|
107
|
-
controlId:
|
|
108
|
-
} =
|
|
109
|
-
return t = R(t, "form-control"), process.env.NODE_ENV !== "production" && nt(
|
|
110
|
-
...
|
|
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:
|
|
115
|
-
id: s ||
|
|
116
|
-
className: d(a, p ? `${t}-plaintext` : t, n && `${t}-${n}`, e === "color" && `${t}-color`,
|
|
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
|
|
121
|
-
Feedback:
|
|
116
|
+
const Pt = Object.assign(We, {
|
|
117
|
+
Feedback: Ne
|
|
122
118
|
});
|
|
123
119
|
var oe;
|
|
124
|
-
function
|
|
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 =
|
|
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
|
|
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(
|
|
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(
|
|
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 =
|
|
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__ */
|
|
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:
|
|
233
|
-
backdrop:
|
|
227
|
+
children: h,
|
|
228
|
+
backdrop: f = !0,
|
|
234
229
|
keyboard: p = !0,
|
|
235
|
-
onBackdropClick:
|
|
236
|
-
onEscapeKeyDown:
|
|
237
|
-
transition:
|
|
230
|
+
onBackdropClick: v,
|
|
231
|
+
onEscapeKeyDown: m,
|
|
232
|
+
transition: M,
|
|
238
233
|
runTransition: y,
|
|
239
|
-
backdropTransition:
|
|
234
|
+
backdropTransition: w,
|
|
240
235
|
runBackdropTransition: se,
|
|
241
236
|
autoFocus: z = !0,
|
|
242
237
|
enforceFocus: ae = !0,
|
|
243
|
-
restoreFocus:
|
|
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 =
|
|
260
|
-
|
|
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 =
|
|
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 && !
|
|
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(),
|
|
270
|
+
if (c.remove(), _.current == null || _.current(), G.current == null || G.current(), k) {
|
|
276
271
|
var l;
|
|
277
|
-
(l =
|
|
272
|
+
(l = g.current) == null || l.focus == null || l.focus(re), g.current = null;
|
|
278
273
|
}
|
|
279
274
|
});
|
|
280
|
-
|
|
281
|
-
!n || !
|
|
275
|
+
we(() => {
|
|
276
|
+
!n || !x || E();
|
|
282
277
|
}, [
|
|
283
278
|
n,
|
|
284
|
-
|
|
279
|
+
x,
|
|
285
280
|
/* should never change: */
|
|
286
281
|
E
|
|
287
|
-
]),
|
|
288
|
-
|
|
289
|
-
}, [
|
|
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 && !
|
|
291
|
+
c.dialog && l && !je(c.dialog, l) && c.dialog.focus();
|
|
297
292
|
}), ee = T((l) => {
|
|
298
|
-
l.target === l.currentTarget && (
|
|
293
|
+
l.target === l.currentTarget && (v == null || v(l), f === !0 && I());
|
|
299
294
|
}), ge = T((l) => {
|
|
300
|
-
p && at(l) && c.isTopModal() && (
|
|
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 (!
|
|
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(
|
|
312
|
+
children: /* @__PURE__ */ u.cloneElement(h, {
|
|
318
313
|
role: "document"
|
|
319
314
|
})
|
|
320
315
|
}));
|
|
321
|
-
K =
|
|
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
|
|
330
|
+
return f && (B = ie({
|
|
336
331
|
ref: c.setBackdropRef,
|
|
337
332
|
onClick: ee
|
|
338
|
-
}), B =
|
|
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__ */
|
|
340
|
+
children: /* @__PURE__ */ ht.createPortal(/* @__PURE__ */ r.jsxs(r.Fragment, {
|
|
346
341
|
children: [B, K]
|
|
347
|
-
}),
|
|
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
|
|
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 =
|
|
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
|
-
}),
|
|
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:
|
|
424
|
-
scrollable:
|
|
417
|
+
children: h,
|
|
418
|
+
scrollable: f,
|
|
425
419
|
...p
|
|
426
|
-
},
|
|
420
|
+
}, v) => {
|
|
427
421
|
t = R(t, "modal");
|
|
428
|
-
const
|
|
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:
|
|
432
|
-
className: d(
|
|
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:
|
|
429
|
+
children: h
|
|
436
430
|
})
|
|
437
431
|
});
|
|
438
432
|
});
|
|
439
|
-
|
|
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
|
-
},
|
|
459
|
-
const
|
|
460
|
-
|
|
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:
|
|
457
|
+
ref: h,
|
|
464
458
|
...a,
|
|
465
|
-
children: [s, n && /* @__PURE__ */ r.jsx(
|
|
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(
|
|
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(
|
|
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:
|
|
516
|
-
"data-bs-theme":
|
|
509
|
+
dialogAs: h = Ce,
|
|
510
|
+
"data-bs-theme": f,
|
|
517
511
|
"aria-labelledby": p,
|
|
518
|
-
"aria-describedby":
|
|
519
|
-
"aria-label":
|
|
512
|
+
"aria-describedby": v,
|
|
513
|
+
"aria-label": m,
|
|
520
514
|
/* BaseModal props */
|
|
521
|
-
show:
|
|
515
|
+
show: M = !1,
|
|
522
516
|
animation: y = !0,
|
|
523
|
-
backdrop:
|
|
517
|
+
backdrop: w = !0,
|
|
524
518
|
keyboard: se = !0,
|
|
525
519
|
onEscapeKeyDown: z,
|
|
526
520
|
onShow: ae,
|
|
527
|
-
onHide:
|
|
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 [
|
|
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 =
|
|
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
|
-
|
|
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 ?
|
|
559
|
-
paddingLeft: !A && ke ?
|
|
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
|
-
|
|
566
|
-
|
|
558
|
+
Le(() => {
|
|
559
|
+
Oe(window, "resize", O), g.current == null || g.current();
|
|
567
560
|
});
|
|
568
561
|
const K = () => {
|
|
569
|
-
|
|
562
|
+
C.current = !0;
|
|
570
563
|
}, B = (i) => {
|
|
571
|
-
|
|
564
|
+
C.current && E && i.target === E.dialog && (j.current = !0), C.current = !1;
|
|
572
565
|
}, l = () => {
|
|
573
|
-
P(!0),
|
|
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 (
|
|
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
|
-
|
|
580
|
+
k == null || k();
|
|
588
581
|
}, qe = (i) => {
|
|
589
|
-
se ? z == null || z(i) : (i.preventDefault(),
|
|
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
|
-
|
|
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),
|
|
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]),
|
|
594
|
+
}), [y, Q, t]), Re = {
|
|
602
595
|
...n,
|
|
603
|
-
...
|
|
596
|
+
...x
|
|
604
597
|
};
|
|
605
|
-
|
|
598
|
+
Re.display = "block";
|
|
606
599
|
const et = (i) => /* @__PURE__ */ r.jsx("div", {
|
|
607
600
|
role: "dialog",
|
|
608
601
|
...i,
|
|
609
|
-
style:
|
|
602
|
+
style: Re,
|
|
610
603
|
className: d(e, t, fe && `${t}-static`, !y && "show"),
|
|
611
|
-
onClick:
|
|
604
|
+
onClick: w ? U : void 0,
|
|
612
605
|
onMouseUp: B,
|
|
613
|
-
"data-bs-theme":
|
|
614
|
-
"aria-label":
|
|
606
|
+
"data-bs-theme": f,
|
|
607
|
+
"aria-label": m,
|
|
615
608
|
"aria-labelledby": p,
|
|
616
|
-
"aria-describedby":
|
|
617
|
-
children: /* @__PURE__ */ r.jsx(
|
|
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:
|
|
621
|
+
show: M,
|
|
629
622
|
ref: me,
|
|
630
|
-
backdrop:
|
|
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:
|
|
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
|
|
648
|
+
const en = Object.assign(Xe, {
|
|
656
649
|
Body: Ge,
|
|
657
650
|
Header: Ve,
|
|
658
651
|
Title: ze,
|
|
659
652
|
Footer: Ue,
|
|
660
|
-
Dialog:
|
|
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
|
-
},
|
|
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
|
-
|
|
677
|
-
|
|
678
|
-
|
|
666
|
+
Te as C,
|
|
667
|
+
Ne as F,
|
|
668
|
+
Zt as L,
|
|
679
669
|
Ke as M,
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
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
|
-
|
|
676
|
+
en as f,
|
|
687
677
|
Dt as g,
|
|
688
678
|
S as q,
|
|
689
679
|
Nt as u
|