@undefine-ui/design-system 3.7.2 → 3.8.0
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/dist/index.cjs +272 -165
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +39 -16
- package/dist/index.d.ts +39 -16
- package/dist/index.js +273 -164
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -90,6 +90,7 @@ __export(index_exports, {
|
|
|
90
90
|
RHFSwitch: () => RHFSwitch,
|
|
91
91
|
RHFTextField: () => RHFTextField,
|
|
92
92
|
RHFTimePicker: () => RHFTimePicker,
|
|
93
|
+
RHFToggleButton: () => RHFToggleButton,
|
|
93
94
|
RHFUpload: () => RHFUpload,
|
|
94
95
|
RadioDefault: () => RadioDefault,
|
|
95
96
|
RadioSelect: () => RadioSelect,
|
|
@@ -6510,6 +6511,7 @@ __export(components_exports2, {
|
|
|
6510
6511
|
RHFSwitch: () => RHFSwitch,
|
|
6511
6512
|
RHFTextField: () => RHFTextField,
|
|
6512
6513
|
RHFTimePicker: () => RHFTimePicker,
|
|
6514
|
+
RHFToggleButton: () => RHFToggleButton,
|
|
6513
6515
|
RHFUpload: () => RHFUpload,
|
|
6514
6516
|
RadioDefault: () => RadioDefault,
|
|
6515
6517
|
RadioSelect: () => RadioSelect,
|
|
@@ -9826,15 +9828,120 @@ var RHFAutocomplete = ({
|
|
|
9826
9828
|
);
|
|
9827
9829
|
};
|
|
9828
9830
|
|
|
9831
|
+
// src/components/HookForm/RHFToggleButton.tsx
|
|
9832
|
+
import { Controller as Controller8, useFormContext as useFormContext8 } from "react-hook-form";
|
|
9833
|
+
import FormLabel3 from "@mui/material/FormLabel";
|
|
9834
|
+
import FormControl3 from "@mui/material/FormControl";
|
|
9835
|
+
import FormHelperText5 from "@mui/material/FormHelperText";
|
|
9836
|
+
import ToggleButton, { toggleButtonClasses } from "@mui/material/ToggleButton";
|
|
9837
|
+
import ToggleButtonGroup, {
|
|
9838
|
+
toggleButtonGroupClasses
|
|
9839
|
+
} from "@mui/material/ToggleButtonGroup";
|
|
9840
|
+
import { jsx as jsx97, jsxs as jsxs61 } from "react/jsx-runtime";
|
|
9841
|
+
var RHFToggleButton = ({
|
|
9842
|
+
name,
|
|
9843
|
+
label,
|
|
9844
|
+
helperText,
|
|
9845
|
+
options,
|
|
9846
|
+
fullWidth,
|
|
9847
|
+
slotProps,
|
|
9848
|
+
sx,
|
|
9849
|
+
...other
|
|
9850
|
+
}) => {
|
|
9851
|
+
const { control } = useFormContext8();
|
|
9852
|
+
return /* @__PURE__ */ jsx97(
|
|
9853
|
+
Controller8,
|
|
9854
|
+
{
|
|
9855
|
+
name,
|
|
9856
|
+
control,
|
|
9857
|
+
render: ({ field, fieldState: { error: error2 } }) => /* @__PURE__ */ jsxs61(
|
|
9858
|
+
FormControl3,
|
|
9859
|
+
{
|
|
9860
|
+
component: "fieldset",
|
|
9861
|
+
error: !!error2,
|
|
9862
|
+
fullWidth,
|
|
9863
|
+
...slotProps?.formControl,
|
|
9864
|
+
children: [
|
|
9865
|
+
label && /* @__PURE__ */ jsx97(FormLabel3, { component: "legend", sx: { mb: 1 }, ...slotProps?.formLabel, children: label }),
|
|
9866
|
+
/* @__PURE__ */ jsx97(
|
|
9867
|
+
ToggleButtonGroup,
|
|
9868
|
+
{
|
|
9869
|
+
...field,
|
|
9870
|
+
value: field.value ?? "",
|
|
9871
|
+
onChange: (_, newValue) => {
|
|
9872
|
+
if (newValue !== null) {
|
|
9873
|
+
field.onChange(newValue);
|
|
9874
|
+
}
|
|
9875
|
+
},
|
|
9876
|
+
exclusive: true,
|
|
9877
|
+
...other,
|
|
9878
|
+
sx: {
|
|
9879
|
+
backgroundColor: "transparent",
|
|
9880
|
+
borderRadius: "100px",
|
|
9881
|
+
gap: 1.5,
|
|
9882
|
+
border: "none",
|
|
9883
|
+
display: "inline-flex",
|
|
9884
|
+
width: "auto",
|
|
9885
|
+
[`& .${toggleButtonGroupClasses.grouped}.${toggleButtonClasses.root}`]: {
|
|
9886
|
+
px: 1,
|
|
9887
|
+
py: 0.5,
|
|
9888
|
+
border: "none",
|
|
9889
|
+
textTransform: "none",
|
|
9890
|
+
fontSize: 14,
|
|
9891
|
+
fontWeight: 500,
|
|
9892
|
+
color: "text.primary",
|
|
9893
|
+
backgroundColor: "surface.disable",
|
|
9894
|
+
borderRadius: "100px",
|
|
9895
|
+
transition: "all 0.2s",
|
|
9896
|
+
flex: "0 0 auto",
|
|
9897
|
+
"&:hover": {
|
|
9898
|
+
backgroundColor: "rgba(0, 0, 0, 0.04)"
|
|
9899
|
+
},
|
|
9900
|
+
[`&.${toggleButtonClasses.selected}`]: {
|
|
9901
|
+
backgroundColor: "primary.main",
|
|
9902
|
+
color: "common.white",
|
|
9903
|
+
"&:hover": {
|
|
9904
|
+
color: "common.white",
|
|
9905
|
+
backgroundColor: "primary.dark"
|
|
9906
|
+
}
|
|
9907
|
+
},
|
|
9908
|
+
[`&.${toggleButtonClasses.disabled}`]: {
|
|
9909
|
+
color: "text.disabled",
|
|
9910
|
+
backgroundColor: "transparent"
|
|
9911
|
+
}
|
|
9912
|
+
},
|
|
9913
|
+
...sx
|
|
9914
|
+
},
|
|
9915
|
+
children: options.map((option) => /* @__PURE__ */ jsx97(
|
|
9916
|
+
ToggleButton,
|
|
9917
|
+
{
|
|
9918
|
+
value: option.value,
|
|
9919
|
+
disabled: option.disabled,
|
|
9920
|
+
"aria-label": `${option.label}`,
|
|
9921
|
+
...option.toggleButtonProps,
|
|
9922
|
+
children: option.label
|
|
9923
|
+
},
|
|
9924
|
+
option.value
|
|
9925
|
+
))
|
|
9926
|
+
}
|
|
9927
|
+
),
|
|
9928
|
+
(error2?.message || helperText) && /* @__PURE__ */ jsx97(FormHelperText5, { sx: { mx: 0 }, ...slotProps?.formHelperText, children: error2?.message ?? helperText })
|
|
9929
|
+
]
|
|
9930
|
+
}
|
|
9931
|
+
)
|
|
9932
|
+
}
|
|
9933
|
+
);
|
|
9934
|
+
};
|
|
9935
|
+
|
|
9829
9936
|
// src/components/HookForm/RHFDateRangePicker.tsx
|
|
9830
9937
|
import { useMemo as useMemo10, useState as useState16, useCallback as useCallback14 } from "react";
|
|
9831
|
-
import { useWatch, Controller as
|
|
9938
|
+
import { useWatch, Controller as Controller9, useFormContext as useFormContext9 } from "react-hook-form";
|
|
9832
9939
|
import { format as format3, isValid } from "date-fns";
|
|
9833
9940
|
import Box22 from "@mui/material/Box";
|
|
9834
9941
|
import Popover4 from "@mui/material/Popover";
|
|
9835
9942
|
import TextField6 from "@mui/material/TextField";
|
|
9836
9943
|
import InputAdornment2 from "@mui/material/InputAdornment";
|
|
9837
|
-
import { Fragment as Fragment3, jsx as
|
|
9944
|
+
import { Fragment as Fragment3, jsx as jsx98, jsxs as jsxs62 } from "react/jsx-runtime";
|
|
9838
9945
|
function RHFDateRangePicker({
|
|
9839
9946
|
name,
|
|
9840
9947
|
label,
|
|
@@ -9848,7 +9955,7 @@ function RHFDateRangePicker({
|
|
|
9848
9955
|
size = "medium",
|
|
9849
9956
|
fullWidth = true
|
|
9850
9957
|
}) {
|
|
9851
|
-
const { control } =
|
|
9958
|
+
const { control } = useFormContext9();
|
|
9852
9959
|
const [anchorEl, setAnchorEl] = useState16(null);
|
|
9853
9960
|
const open = Boolean(anchorEl);
|
|
9854
9961
|
const watchedValue = useWatch({ control, name });
|
|
@@ -9882,8 +9989,8 @@ function RHFDateRangePicker({
|
|
|
9882
9989
|
const handleClose = useCallback14(() => {
|
|
9883
9990
|
setAnchorEl(null);
|
|
9884
9991
|
}, []);
|
|
9885
|
-
return /* @__PURE__ */
|
|
9886
|
-
|
|
9992
|
+
return /* @__PURE__ */ jsx98(
|
|
9993
|
+
Controller9,
|
|
9887
9994
|
{
|
|
9888
9995
|
name,
|
|
9889
9996
|
control,
|
|
@@ -9892,8 +9999,8 @@ function RHFDateRangePicker({
|
|
|
9892
9999
|
field.onChange({ ...range, preset });
|
|
9893
10000
|
handleClose();
|
|
9894
10001
|
};
|
|
9895
|
-
return /* @__PURE__ */
|
|
9896
|
-
/* @__PURE__ */
|
|
10002
|
+
return /* @__PURE__ */ jsxs62(Fragment3, { children: [
|
|
10003
|
+
/* @__PURE__ */ jsx98(Box22, { onClick: handleClick, sx: { cursor: disabled ? "default" : "pointer" }, children: /* @__PURE__ */ jsx98(
|
|
9897
10004
|
TextField6,
|
|
9898
10005
|
{
|
|
9899
10006
|
label,
|
|
@@ -9907,13 +10014,13 @@ function RHFDateRangePicker({
|
|
|
9907
10014
|
slotProps: {
|
|
9908
10015
|
input: {
|
|
9909
10016
|
readOnly: true,
|
|
9910
|
-
endAdornment: /* @__PURE__ */
|
|
10017
|
+
endAdornment: /* @__PURE__ */ jsx98(InputAdornment2, { position: "end", children: /* @__PURE__ */ jsx98(Icon, { icon: "Calendar", sx: { width: 20, height: 20, color: "icon.mute" } }) }),
|
|
9911
10018
|
sx: { cursor: disabled ? "default" : "pointer" }
|
|
9912
10019
|
}
|
|
9913
10020
|
}
|
|
9914
10021
|
}
|
|
9915
10022
|
) }),
|
|
9916
|
-
/* @__PURE__ */
|
|
10023
|
+
/* @__PURE__ */ jsx98(
|
|
9917
10024
|
Popover4,
|
|
9918
10025
|
{
|
|
9919
10026
|
open,
|
|
@@ -9938,7 +10045,7 @@ function RHFDateRangePicker({
|
|
|
9938
10045
|
}
|
|
9939
10046
|
}
|
|
9940
10047
|
},
|
|
9941
|
-
children: /* @__PURE__ */
|
|
10048
|
+
children: /* @__PURE__ */ jsx98(
|
|
9942
10049
|
DateRangePicker,
|
|
9943
10050
|
{
|
|
9944
10051
|
value: { start: value.start, end: value.end },
|
|
@@ -9959,17 +10066,17 @@ function RHFDateRangePicker({
|
|
|
9959
10066
|
}
|
|
9960
10067
|
|
|
9961
10068
|
// src/components/HookForm/RHFCheckbox.tsx
|
|
9962
|
-
import { Controller as
|
|
10069
|
+
import { Controller as Controller10, useFormContext as useFormContext10 } from "react-hook-form";
|
|
9963
10070
|
import Stack8 from "@mui/material/Stack";
|
|
9964
10071
|
import Box23 from "@mui/material/Box";
|
|
9965
10072
|
import Typography12 from "@mui/material/Typography";
|
|
9966
10073
|
import Checkbox from "@mui/material/Checkbox";
|
|
9967
10074
|
import FormGroup2 from "@mui/material/FormGroup";
|
|
9968
|
-
import
|
|
9969
|
-
import
|
|
9970
|
-
import
|
|
10075
|
+
import FormLabel4 from "@mui/material/FormLabel";
|
|
10076
|
+
import FormControl4 from "@mui/material/FormControl";
|
|
10077
|
+
import FormHelperText6 from "@mui/material/FormHelperText";
|
|
9971
10078
|
import FormControlLabel5 from "@mui/material/FormControlLabel";
|
|
9972
|
-
import { jsx as
|
|
10079
|
+
import { jsx as jsx99, jsxs as jsxs63 } from "react/jsx-runtime";
|
|
9973
10080
|
var RHFCheckbox = ({
|
|
9974
10081
|
name,
|
|
9975
10082
|
description,
|
|
@@ -9979,18 +10086,18 @@ var RHFCheckbox = ({
|
|
|
9979
10086
|
slotProps,
|
|
9980
10087
|
...other
|
|
9981
10088
|
}) => {
|
|
9982
|
-
const { control } =
|
|
10089
|
+
const { control } = useFormContext10();
|
|
9983
10090
|
const baseAriaLabel = `Checkbox for ${name}`;
|
|
9984
|
-
return /* @__PURE__ */
|
|
9985
|
-
|
|
10091
|
+
return /* @__PURE__ */ jsx99(
|
|
10092
|
+
Controller10,
|
|
9986
10093
|
{
|
|
9987
10094
|
name,
|
|
9988
10095
|
control,
|
|
9989
|
-
render: ({ field, fieldState: { error: error2 } }) => /* @__PURE__ */
|
|
9990
|
-
/* @__PURE__ */
|
|
10096
|
+
render: ({ field, fieldState: { error: error2 } }) => /* @__PURE__ */ jsxs63(Box23, { sx: slotProps?.wrap, children: [
|
|
10097
|
+
/* @__PURE__ */ jsx99(
|
|
9991
10098
|
FormControlLabel5,
|
|
9992
10099
|
{
|
|
9993
|
-
control: /* @__PURE__ */
|
|
10100
|
+
control: /* @__PURE__ */ jsx99(
|
|
9994
10101
|
Checkbox,
|
|
9995
10102
|
{
|
|
9996
10103
|
...field,
|
|
@@ -10005,9 +10112,9 @@ var RHFCheckbox = ({
|
|
|
10005
10112
|
}
|
|
10006
10113
|
}
|
|
10007
10114
|
),
|
|
10008
|
-
label: /* @__PURE__ */
|
|
10009
|
-
/* @__PURE__ */
|
|
10010
|
-
description && /* @__PURE__ */
|
|
10115
|
+
label: /* @__PURE__ */ jsxs63(Stack8, { children: [
|
|
10116
|
+
/* @__PURE__ */ jsx99(Typography12, { variant: "bodyMd", color: "text.header", fontWeight: 500, children: label }),
|
|
10117
|
+
description && /* @__PURE__ */ jsx99(Typography12, { variant: "body2", color: "text.body", children: description })
|
|
10011
10118
|
] }),
|
|
10012
10119
|
sx: {
|
|
10013
10120
|
alignItems: description ? "flex-start" : "center",
|
|
@@ -10016,7 +10123,7 @@ var RHFCheckbox = ({
|
|
|
10016
10123
|
...other
|
|
10017
10124
|
}
|
|
10018
10125
|
),
|
|
10019
|
-
(!!error2 || helperText) && /* @__PURE__ */
|
|
10126
|
+
(!!error2 || helperText) && /* @__PURE__ */ jsx99(FormHelperText6, { error: !!error2, ...slotProps?.formHelperText, children: error2 ? error2?.message : helperText })
|
|
10020
10127
|
] })
|
|
10021
10128
|
}
|
|
10022
10129
|
);
|
|
@@ -10030,24 +10137,24 @@ var RHFMultiCheckbox = ({
|
|
|
10030
10137
|
row,
|
|
10031
10138
|
...other
|
|
10032
10139
|
}) => {
|
|
10033
|
-
const { control } =
|
|
10140
|
+
const { control } = useFormContext10();
|
|
10034
10141
|
const getSelected = (currentValues, optionValue) => currentValues.includes(optionValue) ? currentValues.filter((value) => value !== optionValue) : [...currentValues, optionValue];
|
|
10035
|
-
return /* @__PURE__ */
|
|
10036
|
-
|
|
10142
|
+
return /* @__PURE__ */ jsx99(
|
|
10143
|
+
Controller10,
|
|
10037
10144
|
{
|
|
10038
10145
|
name,
|
|
10039
10146
|
control,
|
|
10040
10147
|
defaultValue: [],
|
|
10041
|
-
render: ({ field, fieldState: { error: error2 } }) => /* @__PURE__ */
|
|
10042
|
-
|
|
10148
|
+
render: ({ field, fieldState: { error: error2 } }) => /* @__PURE__ */ jsxs63(
|
|
10149
|
+
FormControl4,
|
|
10043
10150
|
{
|
|
10044
10151
|
component: "fieldset",
|
|
10045
10152
|
error: !!error2,
|
|
10046
10153
|
sx: slotProps?.formControl?.sx,
|
|
10047
10154
|
...slotProps?.formControl,
|
|
10048
10155
|
children: [
|
|
10049
|
-
label && /* @__PURE__ */
|
|
10050
|
-
|
|
10156
|
+
label && /* @__PURE__ */ jsx99(
|
|
10157
|
+
FormLabel4,
|
|
10051
10158
|
{
|
|
10052
10159
|
component: "legend",
|
|
10053
10160
|
...slotProps?.formLabel,
|
|
@@ -10055,12 +10162,12 @@ var RHFMultiCheckbox = ({
|
|
|
10055
10162
|
children: label
|
|
10056
10163
|
}
|
|
10057
10164
|
),
|
|
10058
|
-
/* @__PURE__ */
|
|
10165
|
+
/* @__PURE__ */ jsx99(FormGroup2, { row, ...other, children: options.map((option) => {
|
|
10059
10166
|
const itemAriaLabel = option.label || `Option ${option.value}`;
|
|
10060
|
-
return /* @__PURE__ */
|
|
10167
|
+
return /* @__PURE__ */ jsx99(
|
|
10061
10168
|
FormControlLabel5,
|
|
10062
10169
|
{
|
|
10063
|
-
control: /* @__PURE__ */
|
|
10170
|
+
control: /* @__PURE__ */ jsx99(
|
|
10064
10171
|
Checkbox,
|
|
10065
10172
|
{
|
|
10066
10173
|
checked: (field.value || []).includes(option.value),
|
|
@@ -10078,9 +10185,9 @@ var RHFMultiCheckbox = ({
|
|
|
10078
10185
|
}
|
|
10079
10186
|
}
|
|
10080
10187
|
),
|
|
10081
|
-
label: /* @__PURE__ */
|
|
10082
|
-
/* @__PURE__ */
|
|
10083
|
-
option?.description && /* @__PURE__ */
|
|
10188
|
+
label: /* @__PURE__ */ jsxs63(Stack8, { children: [
|
|
10189
|
+
/* @__PURE__ */ jsx99(Typography12, { variant: "bodyMd", color: "text.header", fontWeight: 500, children: option.label }),
|
|
10190
|
+
option?.description && /* @__PURE__ */ jsx99(Typography12, { variant: "body2", color: "text.body", children: option?.description })
|
|
10084
10191
|
] }),
|
|
10085
10192
|
sx: {
|
|
10086
10193
|
alignItems: option?.description ? "flex-start" : "center"
|
|
@@ -10089,8 +10196,8 @@ var RHFMultiCheckbox = ({
|
|
|
10089
10196
|
option.value
|
|
10090
10197
|
);
|
|
10091
10198
|
}) }),
|
|
10092
|
-
(!!error2 || helperText) && /* @__PURE__ */
|
|
10093
|
-
|
|
10199
|
+
(!!error2 || helperText) && /* @__PURE__ */ jsx99(
|
|
10200
|
+
FormHelperText6,
|
|
10094
10201
|
{
|
|
10095
10202
|
sx: { mx: 0, ...slotProps?.formHelperText?.sx },
|
|
10096
10203
|
...slotProps?.formHelperText,
|
|
@@ -10105,7 +10212,7 @@ var RHFMultiCheckbox = ({
|
|
|
10105
10212
|
};
|
|
10106
10213
|
|
|
10107
10214
|
// src/components/HookForm/RHFGooglePlacesAutocomplete.tsx
|
|
10108
|
-
import { Controller as
|
|
10215
|
+
import { Controller as Controller11, useFormContext as useFormContext11 } from "react-hook-form";
|
|
10109
10216
|
|
|
10110
10217
|
// src/components/GooglePlacesAutocomplete/types.ts
|
|
10111
10218
|
var parseAddressComponents = (addressComponents) => {
|
|
@@ -10136,7 +10243,7 @@ var parseAddressComponents = (addressComponents) => {
|
|
|
10136
10243
|
|
|
10137
10244
|
// src/components/GooglePlacesAutocomplete/GooglePlacesContext.tsx
|
|
10138
10245
|
import { useMemo as useMemo11, useState as useState17, useEffect as useEffect6, useContext as useContext2, useCallback as useCallback15, createContext as createContext2 } from "react";
|
|
10139
|
-
import { jsx as
|
|
10246
|
+
import { jsx as jsx100 } from "react/jsx-runtime";
|
|
10140
10247
|
var GOOGLE_NAMESPACE = "_google_callback";
|
|
10141
10248
|
var GooglePlacesContext = createContext2(void 0);
|
|
10142
10249
|
var GooglePlacesProvider = ({
|
|
@@ -10188,7 +10295,7 @@ var GooglePlacesProvider = ({
|
|
|
10188
10295
|
}),
|
|
10189
10296
|
[apiKey, loaded, error2]
|
|
10190
10297
|
);
|
|
10191
|
-
return /* @__PURE__ */
|
|
10298
|
+
return /* @__PURE__ */ jsx100(GooglePlacesContext.Provider, { value, children });
|
|
10192
10299
|
};
|
|
10193
10300
|
var useGooglePlacesContext = () => {
|
|
10194
10301
|
const context = useContext2(GooglePlacesContext);
|
|
@@ -10357,9 +10464,9 @@ var useGooglePlacesAutocomplete = (options = {}) => {
|
|
|
10357
10464
|
};
|
|
10358
10465
|
|
|
10359
10466
|
// src/components/GooglePlacesAutocomplete/GooglePlacesAutocomplete.tsx
|
|
10360
|
-
import { Fragment as Fragment4, jsx as
|
|
10361
|
-
var DefaultLocationIcon = (props) => /* @__PURE__ */
|
|
10362
|
-
var GoogleMapsAttribution = () => /* @__PURE__ */
|
|
10467
|
+
import { Fragment as Fragment4, jsx as jsx101, jsxs as jsxs64 } from "react/jsx-runtime";
|
|
10468
|
+
var DefaultLocationIcon = (props) => /* @__PURE__ */ jsx101(SvgIcon2, { ...props, viewBox: "0 0 24 24", children: /* @__PURE__ */ jsx101("path", { d: "M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z" }) });
|
|
10469
|
+
var GoogleMapsAttribution = () => /* @__PURE__ */ jsx101(
|
|
10363
10470
|
Box24,
|
|
10364
10471
|
{
|
|
10365
10472
|
sx: (theme) => ({
|
|
@@ -10371,7 +10478,7 @@ var GoogleMapsAttribution = () => /* @__PURE__ */ jsx100(
|
|
|
10371
10478
|
fill: theme.palette.text.secondary
|
|
10372
10479
|
}
|
|
10373
10480
|
}),
|
|
10374
|
-
children: /* @__PURE__ */
|
|
10481
|
+
children: /* @__PURE__ */ jsx101(
|
|
10375
10482
|
"svg",
|
|
10376
10483
|
{
|
|
10377
10484
|
"aria-label": "Google Maps",
|
|
@@ -10379,14 +10486,14 @@ var GoogleMapsAttribution = () => /* @__PURE__ */ jsx100(
|
|
|
10379
10486
|
preserveAspectRatio: "xMidYMid meet",
|
|
10380
10487
|
viewBox: "0 0 98 18",
|
|
10381
10488
|
width: "77",
|
|
10382
|
-
children: /* @__PURE__ */
|
|
10489
|
+
children: /* @__PURE__ */ jsx101("path", { d: "M7.08 13.96a6.9 6.9 0 01-4.99-2.05A6.7 6.7 0 010 6.98Q0 4.1 2.09 2.05A6.9 6.9 0 017.08 0a6.7 6.7 0 014.79 1.92l-1.35 1.35a4.8 4.8 0 00-3.44-1.36q-2.1 0-3.55 1.48a5 5 0 00-1.45 3.59q0 2.12 1.46 3.59a4.8 4.8 0 003.55 1.48 4.8 4.8 0 003.53-1.4q.84-.84 1.04-2.4H7.08v-1.9h6.42a6 6 0 01.1 1.19q0 2.8-1.65 4.46a6.4 6.4 0 01-4.87 1.96M22 12.68a4.4 4.4 0 01-3.2 1.29 4.4 4.4 0 01-3.2-1.29 4.3 4.3 0 01-1.31-3.21q0-1.92 1.31-3.21a4.4 4.4 0 013.2-1.29q1.9 0 3.2 1.29a4.3 4.3 0 011.31 3.21A4.3 4.3 0 0122 12.68m-4.99-1.26q.75.78 1.79.77 1.04 0 1.79-.77.75-.78.75-1.95 0-1.19-.74-1.96-.75-.77-1.8-.77t-1.8.77a2.7 2.7 0 00-.74 1.96q0 1.17.75 1.95m14.84 1.26q-1.3 1.29-3.2 1.29c-1.9 0-2.33-.43-3.2-1.29a4.3 4.3 0 01-1.31-3.21q0-1.92 1.31-3.21 1.3-1.29 3.2-1.29c1.9 0 2.33.43 3.2 1.29a4.3 4.3 0 011.31 3.21q0 1.92-1.31 3.21m-4.99-1.26q.75.78 1.79.77 1.04 0 1.79-.77.75-.78.75-1.95 0-1.19-.74-1.96c-.74-.77-1.09-.77-1.8-.77q-1.05 0-1.8.77a2.7 2.7 0 00-.74 1.96q0 1.17.75 1.95M38.32 18q-1.5 0-2.52-.8a4.5 4.5 0 01-1.46-1.86l1.72-.72q.27.65.85 1.12.59.48 1.41.48a2.3 2.3 0 001.76-.68q.64-.68.64-1.96v-.65h-.07a2.9 2.9 0 01-2.37 1.02 4 4 0 01-3.01-1.31 4.4 4.4 0 01-1.29-3.17 4.4 4.4 0 011.29-3.19 4 4 0 013.01-1.32q.76 0 1.39.29t.98.72h.07v-.72h1.87v8.07q0 2.35-1.2 3.52A4.2 4.2 0 0138.32 18m.13-5.81q1.02 0 1.71-.77a2.8 2.8 0 00.69-1.93q0-1.17-.69-1.96a2.2 2.2 0 00-1.71-.79q-1.03 0-1.77.78a2.8 2.8 0 00-.73 1.96q0 1.16.73 1.93.74.78 1.77.78M45.93.48v13.21h-1.98V.48zm5.41 13.48a4.38 4.38 0 01-4.46-4.49q0-1.98 1.23-3.24a4 4 0 013.01-1.26 3.8 3.8 0 012.68 1.07 5 5 0 011.17 1.8l.2.51-6.01 2.49a2.3 2.3 0 002.18 1.36q1.37 0 2.21-1.24l1.53 1.02q-.5.76-1.45 1.38-.92.6-2.29.6m-2.5-4.63l4.02-1.67a1.4 1.4 0 00-.63-.69 2 2 0 00-1.04-.26q-.87 0-1.63.72a2.4 2.4 0 00-.72 1.9m11.21 4.36V1.5h1.57l4.24 7.42h.07l4.24-7.42h1.57v12.19h-1.57V6.45l.07-2.04h-.07l-3.81 6.69h-.92l-3.81-6.69h-.07l.07 2.04v7.24zm16.31.27q-1.33 0-2.22-.77a2.5 2.5 0 01-.89-2.03q0-1.36 1.06-2.14 1.05-.77 2.61-.77 1.38 0 2.26.51v-.23q0-.91-.63-1.47A2.3 2.3 0 0077 6.51q-.68 0-1.23.32a1.6 1.6 0 00-.77.88l-1.43-.61q.28-.75 1.14-1.39a3.6 3.6 0 012.25-.64q1.6 0 2.66.94 1.05.93 1.06 2.64v5.04h-1.5v-1.16h-.08a3 3 0 01-2.74 1.43m.25-1.43q.97 0 1.76-.72.8-.72.79-1.71-.67-.54-1.99-.54-1.14 0-1.72.49-.58.5-.58 1.16 0 .61.53.97.54.35 1.21.35m9.97 1.43q-.96 0-1.71-.41a3 3 0 01-1.13-1.02h-.07l.07 1.16v3.68h-1.57V5.35h1.5v1.16h.07a3 3 0 011.13-1.02 3.67 3.67 0 014.5.87 4.5 4.5 0 011.18 3.17q0 1.9-1.18 3.17a3.7 3.7 0 01-2.79 1.26m-.26-1.43q1.1 0 1.87-.83.78-.82.78-2.19t-.78-2.19a2.5 2.5 0 00-1.87-.83q-1.11 0-1.88.82-.78.81-.77 2.2c.01 1.39.26 1.65.77 2.2q.78.82 1.88.82m8.39 1.43a3.8 3.8 0 01-3.65-2.38l1.4-.58q.67 1.57 2.26 1.57.73 0 1.2-.32a1 1 0 00.47-.85q0-.81-1.14-1.11l-1.69-.41a4 4 0 01-1.52-.77 1.9 1.9 0 01-.72-1.54q0-1.11.98-1.8a4 4 0 012.32-.69q1.11 0 1.98.5t1.24 1.44l-1.34.56q-.46-1.11-1.91-1.11-.7 0-1.18.29t-.48.78q0 .72 1.11.97l1.65.39a3 3 0 011.74.94q.56.66.56 1.5 0 1.12-.92 1.87-.9.75-2.36.75" })
|
|
10383
10490
|
}
|
|
10384
10491
|
)
|
|
10385
10492
|
}
|
|
10386
10493
|
);
|
|
10387
|
-
var CustomPaper = (props) => /* @__PURE__ */
|
|
10494
|
+
var CustomPaper = (props) => /* @__PURE__ */ jsxs64(Paper2, { elevation: 8, ...props, children: [
|
|
10388
10495
|
props.children,
|
|
10389
|
-
/* @__PURE__ */
|
|
10496
|
+
/* @__PURE__ */ jsx101(GoogleMapsAttribution, {})
|
|
10390
10497
|
] });
|
|
10391
10498
|
var GooglePlacesAutocomplete = ({
|
|
10392
10499
|
// Autocomplete options
|
|
@@ -10468,10 +10575,10 @@ var GooglePlacesAutocomplete = ({
|
|
|
10468
10575
|
if (parts.length === 0) {
|
|
10469
10576
|
parts.push({ text: mainText, highlight: false });
|
|
10470
10577
|
}
|
|
10471
|
-
return /* @__PURE__ */
|
|
10472
|
-
/* @__PURE__ */
|
|
10473
|
-
/* @__PURE__ */
|
|
10474
|
-
parts.map((part, index) => /* @__PURE__ */
|
|
10578
|
+
return /* @__PURE__ */ jsx101("li", { ...optionProps, children: /* @__PURE__ */ jsxs64(Grid, { container: true, sx: { alignItems: "center" }, children: [
|
|
10579
|
+
/* @__PURE__ */ jsx101(Grid, { sx: { display: "flex", width: 44 }, children: /* @__PURE__ */ jsx101(LocationIcon, { sx: { color: "text.secondary", width: 20, height: 20 } }) }),
|
|
10580
|
+
/* @__PURE__ */ jsxs64(Grid, { sx: { width: "calc(100% - 44px)", wordWrap: "break-word" }, children: [
|
|
10581
|
+
parts.map((part, index) => /* @__PURE__ */ jsx101(
|
|
10475
10582
|
Box24,
|
|
10476
10583
|
{
|
|
10477
10584
|
component: "span",
|
|
@@ -10482,11 +10589,11 @@ var GooglePlacesAutocomplete = ({
|
|
|
10482
10589
|
},
|
|
10483
10590
|
index
|
|
10484
10591
|
)),
|
|
10485
|
-
option.structured_formatting.secondary_text && /* @__PURE__ */
|
|
10592
|
+
option.structured_formatting.secondary_text && /* @__PURE__ */ jsx101(Typography13, { variant: "body2", sx: { color: "text.secondary" }, children: option.structured_formatting.secondary_text })
|
|
10486
10593
|
] })
|
|
10487
10594
|
] }) }, key);
|
|
10488
10595
|
};
|
|
10489
|
-
return /* @__PURE__ */
|
|
10596
|
+
return /* @__PURE__ */ jsx101(
|
|
10490
10597
|
Autocomplete2,
|
|
10491
10598
|
{
|
|
10492
10599
|
getOptionLabel: (option) => typeof option === "string" ? option : option.description,
|
|
@@ -10506,7 +10613,7 @@ var GooglePlacesAutocomplete = ({
|
|
|
10506
10613
|
paper: CustomPaper
|
|
10507
10614
|
},
|
|
10508
10615
|
renderOption,
|
|
10509
|
-
renderInput: (params) => /* @__PURE__ */
|
|
10616
|
+
renderInput: (params) => /* @__PURE__ */ jsx101(
|
|
10510
10617
|
TextField7,
|
|
10511
10618
|
{
|
|
10512
10619
|
...params,
|
|
@@ -10518,8 +10625,8 @@ var GooglePlacesAutocomplete = ({
|
|
|
10518
10625
|
slotProps: {
|
|
10519
10626
|
input: {
|
|
10520
10627
|
...params.InputProps,
|
|
10521
|
-
endAdornment: /* @__PURE__ */
|
|
10522
|
-
loading && /* @__PURE__ */
|
|
10628
|
+
endAdornment: /* @__PURE__ */ jsxs64(Fragment4, { children: [
|
|
10629
|
+
loading && /* @__PURE__ */ jsx101(CircularProgress2, { color: "inherit", size: 20 }),
|
|
10523
10630
|
params.InputProps.endAdornment
|
|
10524
10631
|
] })
|
|
10525
10632
|
}
|
|
@@ -10533,7 +10640,7 @@ var GooglePlacesAutocomplete = ({
|
|
|
10533
10640
|
};
|
|
10534
10641
|
|
|
10535
10642
|
// src/components/HookForm/RHFGooglePlacesAutocomplete.tsx
|
|
10536
|
-
import { jsx as
|
|
10643
|
+
import { jsx as jsx102 } from "react/jsx-runtime";
|
|
10537
10644
|
var RHFGooglePlacesAutocomplete = ({
|
|
10538
10645
|
name,
|
|
10539
10646
|
helperText,
|
|
@@ -10543,10 +10650,10 @@ var RHFGooglePlacesAutocomplete = ({
|
|
|
10543
10650
|
fetchPlaceDetails,
|
|
10544
10651
|
...other
|
|
10545
10652
|
}) => {
|
|
10546
|
-
const { control, setValue: setFormValue } =
|
|
10653
|
+
const { control, setValue: setFormValue } = useFormContext11();
|
|
10547
10654
|
const shouldFetchDetails = valueType === "details" || fetchPlaceDetails;
|
|
10548
|
-
return /* @__PURE__ */
|
|
10549
|
-
|
|
10655
|
+
return /* @__PURE__ */ jsx102(
|
|
10656
|
+
Controller11,
|
|
10550
10657
|
{
|
|
10551
10658
|
name,
|
|
10552
10659
|
control,
|
|
@@ -10613,7 +10720,7 @@ var RHFGooglePlacesAutocomplete = ({
|
|
|
10613
10720
|
setFormValue(name, details, { shouldValidate: true });
|
|
10614
10721
|
}
|
|
10615
10722
|
};
|
|
10616
|
-
return /* @__PURE__ */
|
|
10723
|
+
return /* @__PURE__ */ jsx102(
|
|
10617
10724
|
GooglePlacesAutocomplete,
|
|
10618
10725
|
{
|
|
10619
10726
|
value: getDisplayValue(),
|
|
@@ -10633,7 +10740,7 @@ var RHFGooglePlacesAutocomplete = ({
|
|
|
10633
10740
|
|
|
10634
10741
|
// src/components/HookForm/RHFDatePicker.tsx
|
|
10635
10742
|
import { memo, useState as useState19, useEffect as useEffect8 } from "react";
|
|
10636
|
-
import { Controller as
|
|
10743
|
+
import { Controller as Controller12, useFormContext as useFormContext12 } from "react-hook-form";
|
|
10637
10744
|
import TextField8 from "@mui/material/TextField";
|
|
10638
10745
|
import { LocalizationProvider as LocalizationProvider2 } from "@mui/x-date-pickers";
|
|
10639
10746
|
import { AdapterDateFns as AdapterDateFns2 } from "@mui/x-date-pickers/AdapterDateFns";
|
|
@@ -10646,7 +10753,7 @@ import {
|
|
|
10646
10753
|
import {
|
|
10647
10754
|
DateTimePicker as MuiDateTimePicker
|
|
10648
10755
|
} from "@mui/x-date-pickers/DateTimePicker";
|
|
10649
|
-
import { jsx as
|
|
10756
|
+
import { jsx as jsx103 } from "react/jsx-runtime";
|
|
10650
10757
|
var RHFDatePickerComponent = ({
|
|
10651
10758
|
name,
|
|
10652
10759
|
slotProps,
|
|
@@ -10655,7 +10762,7 @@ var RHFDatePickerComponent = ({
|
|
|
10655
10762
|
format: format4 = "MMM d, yyyy",
|
|
10656
10763
|
...other
|
|
10657
10764
|
}) => {
|
|
10658
|
-
const { control } =
|
|
10765
|
+
const { control } = useFormContext12();
|
|
10659
10766
|
const [isOpen, setIsOpen] = useState19(false);
|
|
10660
10767
|
const [cleared, setCleared] = useState19(false);
|
|
10661
10768
|
useEffect8(() => {
|
|
@@ -10666,12 +10773,12 @@ var RHFDatePickerComponent = ({
|
|
|
10666
10773
|
return () => {
|
|
10667
10774
|
};
|
|
10668
10775
|
}, [cleared]);
|
|
10669
|
-
return /* @__PURE__ */
|
|
10670
|
-
|
|
10776
|
+
return /* @__PURE__ */ jsx103(
|
|
10777
|
+
Controller12,
|
|
10671
10778
|
{
|
|
10672
10779
|
name,
|
|
10673
10780
|
control,
|
|
10674
|
-
render: ({ field, fieldState: { error: error2 } }) => /* @__PURE__ */
|
|
10781
|
+
render: ({ field, fieldState: { error: error2 } }) => /* @__PURE__ */ jsx103(LocalizationProvider2, { dateAdapter: AdapterDateFns2, children: /* @__PURE__ */ jsx103(
|
|
10675
10782
|
MuiDatePicker,
|
|
10676
10783
|
{
|
|
10677
10784
|
...field,
|
|
@@ -10712,7 +10819,7 @@ var RHFTimePickerComponent = ({
|
|
|
10712
10819
|
format: format4 = "h:mma",
|
|
10713
10820
|
...other
|
|
10714
10821
|
}) => {
|
|
10715
|
-
const { control } =
|
|
10822
|
+
const { control } = useFormContext12();
|
|
10716
10823
|
const [isOpen, setIsOpen] = useState19(false);
|
|
10717
10824
|
const [cleared, setCleared] = useState19(false);
|
|
10718
10825
|
useEffect8(() => {
|
|
@@ -10723,12 +10830,12 @@ var RHFTimePickerComponent = ({
|
|
|
10723
10830
|
return () => {
|
|
10724
10831
|
};
|
|
10725
10832
|
}, [cleared]);
|
|
10726
|
-
return /* @__PURE__ */
|
|
10727
|
-
|
|
10833
|
+
return /* @__PURE__ */ jsx103(
|
|
10834
|
+
Controller12,
|
|
10728
10835
|
{
|
|
10729
10836
|
name,
|
|
10730
10837
|
control,
|
|
10731
|
-
render: ({ field, fieldState: { error: error2 } }) => /* @__PURE__ */
|
|
10838
|
+
render: ({ field, fieldState: { error: error2 } }) => /* @__PURE__ */ jsx103(LocalizationProvider2, { dateAdapter: AdapterDateFns2, children: /* @__PURE__ */ jsx103(
|
|
10732
10839
|
MuiTimePicker,
|
|
10733
10840
|
{
|
|
10734
10841
|
...field,
|
|
@@ -10769,7 +10876,7 @@ var RHFDateTimePickerComponent = ({
|
|
|
10769
10876
|
format: format4 = "MMM d, yyyy h:mma",
|
|
10770
10877
|
...other
|
|
10771
10878
|
}) => {
|
|
10772
|
-
const { control } =
|
|
10879
|
+
const { control } = useFormContext12();
|
|
10773
10880
|
const [isOpen, setIsOpen] = useState19(false);
|
|
10774
10881
|
const [cleared, setCleared] = useState19(false);
|
|
10775
10882
|
useEffect8(() => {
|
|
@@ -10780,12 +10887,12 @@ var RHFDateTimePickerComponent = ({
|
|
|
10780
10887
|
return () => {
|
|
10781
10888
|
};
|
|
10782
10889
|
}, [cleared]);
|
|
10783
|
-
return /* @__PURE__ */
|
|
10784
|
-
|
|
10890
|
+
return /* @__PURE__ */ jsx103(
|
|
10891
|
+
Controller12,
|
|
10785
10892
|
{
|
|
10786
10893
|
name,
|
|
10787
10894
|
control,
|
|
10788
|
-
render: ({ field, fieldState: { error: error2 } }) => /* @__PURE__ */
|
|
10895
|
+
render: ({ field, fieldState: { error: error2 } }) => /* @__PURE__ */ jsx103(LocalizationProvider2, { dateAdapter: AdapterDateFns2, children: /* @__PURE__ */ jsx103(
|
|
10789
10896
|
MuiDateTimePicker,
|
|
10790
10897
|
{
|
|
10791
10898
|
...field,
|
|
@@ -10828,20 +10935,21 @@ var Field = {
|
|
|
10828
10935
|
Text: RHFTextField,
|
|
10829
10936
|
Radio: RHFRadioGroup,
|
|
10830
10937
|
Checkbox: RHFCheckbox,
|
|
10831
|
-
Autocomplete: RHFAutocomplete,
|
|
10832
|
-
MultiCheckbox: RHFMultiCheckbox,
|
|
10833
10938
|
Date: RHFDatePicker,
|
|
10834
10939
|
Time: RHFTimePicker,
|
|
10835
10940
|
DateTime: RHFDateTimePicker,
|
|
10836
10941
|
DateRange: RHFDateRangePicker,
|
|
10942
|
+
Autocomplete: RHFAutocomplete,
|
|
10943
|
+
ToggleButton: RHFToggleButton,
|
|
10944
|
+
MultiCheckbox: RHFMultiCheckbox,
|
|
10837
10945
|
GooglePlacesAutocomplete: RHFGooglePlacesAutocomplete
|
|
10838
10946
|
};
|
|
10839
10947
|
|
|
10840
10948
|
// src/components/FormLabel/index.tsx
|
|
10841
10949
|
import Tooltip from "@mui/material/Tooltip";
|
|
10842
10950
|
import Typography14 from "@mui/material/Typography";
|
|
10843
|
-
import
|
|
10844
|
-
import { jsx as
|
|
10951
|
+
import FormLabel5 from "@mui/material/FormLabel";
|
|
10952
|
+
import { jsx as jsx104, jsxs as jsxs65 } from "react/jsx-runtime";
|
|
10845
10953
|
var CustomFormLabel = ({
|
|
10846
10954
|
label,
|
|
10847
10955
|
tooltip: tooltip2,
|
|
@@ -10849,26 +10957,26 @@ var CustomFormLabel = ({
|
|
|
10849
10957
|
optional,
|
|
10850
10958
|
sx,
|
|
10851
10959
|
...rest
|
|
10852
|
-
}) => /* @__PURE__ */
|
|
10960
|
+
}) => /* @__PURE__ */ jsxs65(FormLabel5, { sx: { mb: 0.5, display: "flex", alignItems: "center", gap: 0.5, ...sx }, ...rest, children: [
|
|
10853
10961
|
label,
|
|
10854
|
-
optional && /* @__PURE__ */
|
|
10855
|
-
tooltip2 && /* @__PURE__ */
|
|
10962
|
+
optional && /* @__PURE__ */ jsx104(Typography14, { component: "span", variant: "caption", color: "text.secondary", children: "(Optional)" }),
|
|
10963
|
+
tooltip2 && /* @__PURE__ */ jsx104(Tooltip, { placement: "right", title: tooltip2, children: /* @__PURE__ */ jsx104("span", { style: { display: "inline-flex" }, children: icon2 ?? /* @__PURE__ */ jsx104(Icon, { icon: "InfoCircle", sx: { width: 16, height: 16, color: "icons.black" } }) }) })
|
|
10856
10964
|
] });
|
|
10857
10965
|
|
|
10858
10966
|
// src/components/CopyButton/index.tsx
|
|
10859
10967
|
import Tooltip2 from "@mui/material/Tooltip";
|
|
10860
10968
|
import IconButton6 from "@mui/material/IconButton";
|
|
10861
|
-
import { jsx as
|
|
10969
|
+
import { jsx as jsx105 } from "react/jsx-runtime";
|
|
10862
10970
|
var CopyButton = ({ text: text2, size = "small" }) => {
|
|
10863
10971
|
const { copy, isCopied } = useCopyToClipboard();
|
|
10864
|
-
return /* @__PURE__ */
|
|
10972
|
+
return /* @__PURE__ */ jsx105(Tooltip2, { title: isCopied ? "Copied" : "Copy", children: /* @__PURE__ */ jsx105(
|
|
10865
10973
|
IconButton6,
|
|
10866
10974
|
{
|
|
10867
10975
|
size,
|
|
10868
10976
|
onClick: () => copy(text2),
|
|
10869
10977
|
"aria-label": "copy token",
|
|
10870
10978
|
sx: { color: "icon.black" },
|
|
10871
|
-
children: /* @__PURE__ */
|
|
10979
|
+
children: /* @__PURE__ */ jsx105(Icon, { icon: isCopied ? "ClipboardCheck" : "Copy", sx: { width: 20, height: 20 } })
|
|
10872
10980
|
}
|
|
10873
10981
|
) });
|
|
10874
10982
|
};
|
|
@@ -10877,9 +10985,9 @@ var CopyButton = ({ text: text2, size = "small" }) => {
|
|
|
10877
10985
|
import Portal2 from "@mui/material/Portal";
|
|
10878
10986
|
import Box25 from "@mui/material/Box";
|
|
10879
10987
|
import LinearProgress from "@mui/material/LinearProgress";
|
|
10880
|
-
import { jsx as
|
|
10988
|
+
import { jsx as jsx106 } from "react/jsx-runtime";
|
|
10881
10989
|
var LoadingScreen = ({ portal, sx, ...rest }) => {
|
|
10882
|
-
const content = /* @__PURE__ */
|
|
10990
|
+
const content = /* @__PURE__ */ jsx106(
|
|
10883
10991
|
Box25,
|
|
10884
10992
|
{
|
|
10885
10993
|
sx: {
|
|
@@ -10893,16 +11001,16 @@ var LoadingScreen = ({ portal, sx, ...rest }) => {
|
|
|
10893
11001
|
...sx
|
|
10894
11002
|
},
|
|
10895
11003
|
...rest,
|
|
10896
|
-
children: /* @__PURE__ */
|
|
11004
|
+
children: /* @__PURE__ */ jsx106(LinearProgress, { color: "primary", sx: { width: 1, maxWidth: 360 } })
|
|
10897
11005
|
}
|
|
10898
11006
|
);
|
|
10899
11007
|
if (portal) {
|
|
10900
|
-
return /* @__PURE__ */
|
|
11008
|
+
return /* @__PURE__ */ jsx106(Portal2, { children: content });
|
|
10901
11009
|
}
|
|
10902
11010
|
return content;
|
|
10903
11011
|
};
|
|
10904
11012
|
var SplashScreen = ({ portal, sx, ...rest }) => {
|
|
10905
|
-
const content = /* @__PURE__ */
|
|
11013
|
+
const content = /* @__PURE__ */ jsx106(
|
|
10906
11014
|
Box25,
|
|
10907
11015
|
{
|
|
10908
11016
|
sx: {
|
|
@@ -10919,17 +11027,17 @@ var SplashScreen = ({ portal, sx, ...rest }) => {
|
|
|
10919
11027
|
...sx
|
|
10920
11028
|
},
|
|
10921
11029
|
...rest,
|
|
10922
|
-
children: /* @__PURE__ */
|
|
11030
|
+
children: /* @__PURE__ */ jsx106(AnimatedLogo, {})
|
|
10923
11031
|
}
|
|
10924
11032
|
);
|
|
10925
11033
|
if (portal) {
|
|
10926
|
-
return /* @__PURE__ */
|
|
11034
|
+
return /* @__PURE__ */ jsx106(Portal2, { children: content });
|
|
10927
11035
|
}
|
|
10928
11036
|
return content;
|
|
10929
11037
|
};
|
|
10930
11038
|
|
|
10931
11039
|
// src/theme/core/components/mui-x-data-grid.tsx
|
|
10932
|
-
import { jsx as
|
|
11040
|
+
import { jsx as jsx107, jsxs as jsxs66 } from "react/jsx-runtime";
|
|
10933
11041
|
var MuiDataGrid = {
|
|
10934
11042
|
/** **************************************
|
|
10935
11043
|
* DEFAULT PROPS
|
|
@@ -10937,9 +11045,9 @@ var MuiDataGrid = {
|
|
|
10937
11045
|
defaultProps: {
|
|
10938
11046
|
slots: {
|
|
10939
11047
|
/* Column */
|
|
10940
|
-
columnSortedAscendingIcon: (props) => /* @__PURE__ */
|
|
10941
|
-
columnSortedDescendingIcon: (props) => /* @__PURE__ */
|
|
10942
|
-
columnUnsortedIcon: (props) => /* @__PURE__ */
|
|
11048
|
+
columnSortedAscendingIcon: (props) => /* @__PURE__ */ jsx107(DataGridArrowUpIcon, { sx: { color: "text.primary" }, ...props }),
|
|
11049
|
+
columnSortedDescendingIcon: (props) => /* @__PURE__ */ jsx107(DataGridArrowDownIcon, { sx: { color: "text.primary" }, ...props }),
|
|
11050
|
+
columnUnsortedIcon: (props) => /* @__PURE__ */ jsx107(
|
|
10943
11051
|
DataGridArrowUpIcon,
|
|
10944
11052
|
{
|
|
10945
11053
|
fontSize: props.fontSize,
|
|
@@ -10947,28 +11055,28 @@ var MuiDataGrid = {
|
|
|
10947
11055
|
sx: { color: "text.disabled" }
|
|
10948
11056
|
}
|
|
10949
11057
|
),
|
|
10950
|
-
columnMenuIcon: (props) => /* @__PURE__ */
|
|
10951
|
-
columnMenuSortAscendingIcon: (props) => /* @__PURE__ */
|
|
10952
|
-
columnMenuSortDescendingIcon: (props) => /* @__PURE__ */
|
|
10953
|
-
columnMenuFilterIcon: (props) => /* @__PURE__ */
|
|
10954
|
-
columnMenuHideIcon: (props) => /* @__PURE__ */
|
|
10955
|
-
columnMenuManageColumnsIcon: (props) => /* @__PURE__ */
|
|
10956
|
-
columnSelectorIcon: (props) => /* @__PURE__ */
|
|
11058
|
+
columnMenuIcon: (props) => /* @__PURE__ */ jsx107(DataGridMoreIcon, { width: 20, ...props }),
|
|
11059
|
+
columnMenuSortAscendingIcon: (props) => /* @__PURE__ */ jsx107(DataGridArrowUpIcon, { ...props }),
|
|
11060
|
+
columnMenuSortDescendingIcon: (props) => /* @__PURE__ */ jsx107(DataGridArrowDownIcon, { ...props }),
|
|
11061
|
+
columnMenuFilterIcon: (props) => /* @__PURE__ */ jsx107(DataGridFilterIcon, { ...props }),
|
|
11062
|
+
columnMenuHideIcon: (props) => /* @__PURE__ */ jsx107(DataGridEyeCloseIcon, { ...props }),
|
|
11063
|
+
columnMenuManageColumnsIcon: (props) => /* @__PURE__ */ jsx107(DataGridEyeIcon, { ...props }),
|
|
11064
|
+
columnSelectorIcon: (props) => /* @__PURE__ */ jsx107(DataGridEyeIcon, { ...props }),
|
|
10957
11065
|
/* Filter */
|
|
10958
|
-
filterPanelDeleteIcon: (props) => /* @__PURE__ */
|
|
10959
|
-
openFilterButtonIcon: (props) => /* @__PURE__ */
|
|
10960
|
-
columnFilteredIcon: (props) => /* @__PURE__ */
|
|
11066
|
+
filterPanelDeleteIcon: (props) => /* @__PURE__ */ jsx107(DataGridCloseIcon, { ...props }),
|
|
11067
|
+
openFilterButtonIcon: (props) => /* @__PURE__ */ jsx107(DataGridFilterIcon, { ...props }),
|
|
11068
|
+
columnFilteredIcon: (props) => /* @__PURE__ */ jsx107(DataGridFilterIcon, { sx: { width: 16, color: "text.primary" }, ...props }),
|
|
10961
11069
|
/* Density */
|
|
10962
|
-
densityCompactIcon: (props) => /* @__PURE__ */
|
|
10963
|
-
densityStandardIcon: (props) => /* @__PURE__ */
|
|
10964
|
-
densityComfortableIcon: (props) => /* @__PURE__ */
|
|
11070
|
+
densityCompactIcon: (props) => /* @__PURE__ */ jsx107(DataGridDensityCompactIcon, { ...props }),
|
|
11071
|
+
densityStandardIcon: (props) => /* @__PURE__ */ jsx107(DataGridDensityStandardIcon, { ...props }),
|
|
11072
|
+
densityComfortableIcon: (props) => /* @__PURE__ */ jsx107(DataGridDensityComfortableIcon, { ...props }),
|
|
10965
11073
|
/* Export */
|
|
10966
|
-
exportIcon: (props) => /* @__PURE__ */
|
|
11074
|
+
exportIcon: (props) => /* @__PURE__ */ jsx107(DataGridExportIcon, { ...props }),
|
|
10967
11075
|
/* Quick Filter */
|
|
10968
|
-
quickFilterIcon: (props) => /* @__PURE__ */
|
|
10969
|
-
quickFilterClearIcon: (props) => /* @__PURE__ */
|
|
11076
|
+
quickFilterIcon: (props) => /* @__PURE__ */ jsx107(DataGridSearchIcon, { sx: { width: 24, height: 24, color: "text.secondary" }, ...props }),
|
|
11077
|
+
quickFilterClearIcon: (props) => /* @__PURE__ */ jsx107(DataGridCloseIcon, { ...props }),
|
|
10970
11078
|
/* Actions Column */
|
|
10971
|
-
moreActionsIcon: (props) => /* @__PURE__ */
|
|
11079
|
+
moreActionsIcon: (props) => /* @__PURE__ */ jsx107(Icon, { icon: "MoreHorizontal", sx: { width: 20, height: 20 }, ...props })
|
|
10972
11080
|
},
|
|
10973
11081
|
slotProps: {
|
|
10974
11082
|
basePopper: { placement: "bottom-end" },
|
|
@@ -11145,15 +11253,15 @@ var MuiDataGrid = {
|
|
|
11145
11253
|
}
|
|
11146
11254
|
};
|
|
11147
11255
|
var dataGrid = { MuiDataGrid };
|
|
11148
|
-
var DataGridArrowUpIcon = ({ ...props }) => /* @__PURE__ */
|
|
11149
|
-
/* @__PURE__ */
|
|
11256
|
+
var DataGridArrowUpIcon = ({ ...props }) => /* @__PURE__ */ jsxs66(SvgIcon3, { sx: { width: 20, height: 20, ...props.sx }, ...props, children: [
|
|
11257
|
+
/* @__PURE__ */ jsx107(
|
|
11150
11258
|
"path",
|
|
11151
11259
|
{
|
|
11152
11260
|
fill: "currentColor",
|
|
11153
11261
|
d: "m8.303 11.596l3.327-3.431a.499.499 0 0 1 .74 0l6.43 6.63c.401.414.158 1.205-.37 1.205h-5.723z"
|
|
11154
11262
|
}
|
|
11155
11263
|
),
|
|
11156
|
-
/* @__PURE__ */
|
|
11264
|
+
/* @__PURE__ */ jsx107(
|
|
11157
11265
|
"path",
|
|
11158
11266
|
{
|
|
11159
11267
|
fill: "currentColor",
|
|
@@ -11162,15 +11270,15 @@ var DataGridArrowUpIcon = ({ ...props }) => /* @__PURE__ */ jsxs65(SvgIcon3, { s
|
|
|
11162
11270
|
}
|
|
11163
11271
|
)
|
|
11164
11272
|
] });
|
|
11165
|
-
var DataGridArrowDownIcon = ({ ...props }) => /* @__PURE__ */
|
|
11166
|
-
/* @__PURE__ */
|
|
11273
|
+
var DataGridArrowDownIcon = ({ ...props }) => /* @__PURE__ */ jsxs66(SvgIcon3, { sx: { width: 20, height: 20, ...props.sx }, ...props, children: [
|
|
11274
|
+
/* @__PURE__ */ jsx107(
|
|
11167
11275
|
"path",
|
|
11168
11276
|
{
|
|
11169
11277
|
fill: "currentColor",
|
|
11170
11278
|
d: "m8.303 12.404l3.327 3.431c.213.22.527.22.74 0l6.43-6.63C19.201 8.79 18.958 8 18.43 8h-5.723z"
|
|
11171
11279
|
}
|
|
11172
11280
|
),
|
|
11173
|
-
/* @__PURE__ */
|
|
11281
|
+
/* @__PURE__ */ jsx107(
|
|
11174
11282
|
"path",
|
|
11175
11283
|
{
|
|
11176
11284
|
fill: "currentColor",
|
|
@@ -11179,15 +11287,15 @@ var DataGridArrowDownIcon = ({ ...props }) => /* @__PURE__ */ jsxs65(SvgIcon3, {
|
|
|
11179
11287
|
}
|
|
11180
11288
|
)
|
|
11181
11289
|
] });
|
|
11182
|
-
var DataGridFilterIcon = ({ ...props }) => /* @__PURE__ */
|
|
11290
|
+
var DataGridFilterIcon = ({ ...props }) => /* @__PURE__ */ jsx107(SvgIcon3, { sx: { width: 20, height: 20, ...props.sx }, ...props, children: /* @__PURE__ */ jsx107(
|
|
11183
11291
|
"path",
|
|
11184
11292
|
{
|
|
11185
11293
|
fill: "currentColor",
|
|
11186
11294
|
d: "M19 3H5c-1.414 0-2.121 0-2.56.412C2 3.824 2 4.488 2 5.815v.69c0 1.037 0 1.556.26 1.986c.26.43.733.698 1.682 1.232l2.913 1.64c.636.358.955.537 1.183.735c.474.411.766.895.898 1.49c.064.284.064.618.064 1.285v2.67c0 .909 0 1.364.252 1.718c.252.355.7.53 1.594.88c1.879.734 2.818 1.101 3.486.683c.668-.417.668-1.372.668-3.282v-2.67c0-.666 0-1 .064-1.285a2.68 2.68 0 0 1 .899-1.49c.227-.197.546-.376 1.182-.735l2.913-1.64c.948-.533 1.423-.8 1.682-1.23c.26-.43.26-.95.26-1.988v-.69c0-1.326 0-1.99-.44-2.402C21.122 3 20.415 3 19 3"
|
|
11187
11295
|
}
|
|
11188
11296
|
) });
|
|
11189
|
-
var DataGridExportIcon = ({ ...props }) => /* @__PURE__ */
|
|
11190
|
-
/* @__PURE__ */
|
|
11297
|
+
var DataGridExportIcon = ({ ...props }) => /* @__PURE__ */ jsxs66(SvgIcon3, { sx: { width: 20, height: 20, ...props.sx }, ...props, children: [
|
|
11298
|
+
/* @__PURE__ */ jsx107(
|
|
11191
11299
|
"path",
|
|
11192
11300
|
{
|
|
11193
11301
|
fill: "currentColor",
|
|
@@ -11196,7 +11304,7 @@ var DataGridExportIcon = ({ ...props }) => /* @__PURE__ */ jsxs65(SvgIcon3, { sx
|
|
|
11196
11304
|
clipRule: "evenodd"
|
|
11197
11305
|
}
|
|
11198
11306
|
),
|
|
11199
|
-
/* @__PURE__ */
|
|
11307
|
+
/* @__PURE__ */ jsx107(
|
|
11200
11308
|
"path",
|
|
11201
11309
|
{
|
|
11202
11310
|
fill: "currentColor",
|
|
@@ -11204,9 +11312,9 @@ var DataGridExportIcon = ({ ...props }) => /* @__PURE__ */ jsxs65(SvgIcon3, { sx
|
|
|
11204
11312
|
}
|
|
11205
11313
|
)
|
|
11206
11314
|
] });
|
|
11207
|
-
var DataGridEyeIcon = ({ ...props }) => /* @__PURE__ */
|
|
11208
|
-
/* @__PURE__ */
|
|
11209
|
-
/* @__PURE__ */
|
|
11315
|
+
var DataGridEyeIcon = ({ ...props }) => /* @__PURE__ */ jsxs66(SvgIcon3, { sx: { width: 20, height: 20, ...props.sx }, ...props, children: [
|
|
11316
|
+
/* @__PURE__ */ jsx107("path", { fill: "currentColor", d: "M9.75 12a2.25 2.25 0 1 1 4.5 0a2.25 2.25 0 0 1-4.5 0" }),
|
|
11317
|
+
/* @__PURE__ */ jsx107(
|
|
11210
11318
|
"path",
|
|
11211
11319
|
{
|
|
11212
11320
|
fill: "currentColor",
|
|
@@ -11216,7 +11324,7 @@ var DataGridEyeIcon = ({ ...props }) => /* @__PURE__ */ jsxs65(SvgIcon3, { sx: {
|
|
|
11216
11324
|
}
|
|
11217
11325
|
)
|
|
11218
11326
|
] });
|
|
11219
|
-
var DataGridEyeCloseIcon = ({ ...props }) => /* @__PURE__ */
|
|
11327
|
+
var DataGridEyeCloseIcon = ({ ...props }) => /* @__PURE__ */ jsx107(SvgIcon3, { sx: { width: 20, height: 20, ...props.sx }, ...props, children: /* @__PURE__ */ jsx107(
|
|
11220
11328
|
"path",
|
|
11221
11329
|
{
|
|
11222
11330
|
fill: "currentColor",
|
|
@@ -11225,23 +11333,23 @@ var DataGridEyeCloseIcon = ({ ...props }) => /* @__PURE__ */ jsx106(SvgIcon3, {
|
|
|
11225
11333
|
clipRule: "evenodd"
|
|
11226
11334
|
}
|
|
11227
11335
|
) });
|
|
11228
|
-
var DataGridSearchIcon = ({ ...props }) => /* @__PURE__ */
|
|
11336
|
+
var DataGridSearchIcon = ({ ...props }) => /* @__PURE__ */ jsx107(SvgIcon3, { sx: { width: 20, height: 20, ...props.sx }, ...props, children: /* @__PURE__ */ jsx107(
|
|
11229
11337
|
"path",
|
|
11230
11338
|
{
|
|
11231
11339
|
fill: "currentColor",
|
|
11232
11340
|
d: "m20.71 19.29l-3.4-3.39A7.92 7.92 0 0 0 19 11a8 8 0 1 0-8 8a7.92 7.92 0 0 0 4.9-1.69l3.39 3.4a1 1 0 0 0 1.42 0a1 1 0 0 0 0-1.42M5 11a6 6 0 1 1 6 6a6 6 0 0 1-6-6"
|
|
11233
11341
|
}
|
|
11234
11342
|
) });
|
|
11235
|
-
var DataGridCloseIcon = ({ ...props }) => /* @__PURE__ */
|
|
11343
|
+
var DataGridCloseIcon = ({ ...props }) => /* @__PURE__ */ jsx107(SvgIcon3, { sx: { width: 20, height: 20, ...props.sx }, ...props, children: /* @__PURE__ */ jsx107(
|
|
11236
11344
|
"path",
|
|
11237
11345
|
{
|
|
11238
11346
|
fill: "currentColor",
|
|
11239
11347
|
d: "m13.41 12l4.3-4.29a1 1 0 1 0-1.42-1.42L12 10.59l-4.29-4.3a1 1 0 0 0-1.42 1.42l4.3 4.29l-4.3 4.29a1 1 0 0 0 0 1.42a1 1 0 0 0 1.42 0l4.29-4.3l4.29 4.3a1 1 0 0 0 1.42 0a1 1 0 0 0 0-1.42Z"
|
|
11240
11348
|
}
|
|
11241
11349
|
) });
|
|
11242
|
-
var DataGridMoreIcon = ({ ...props }) => /* @__PURE__ */
|
|
11243
|
-
/* @__PURE__ */
|
|
11244
|
-
/* @__PURE__ */
|
|
11350
|
+
var DataGridMoreIcon = ({ ...props }) => /* @__PURE__ */ jsx107(SvgIcon3, { sx: { width: 20, height: 20, ...props.sx }, ...props, children: /* @__PURE__ */ jsxs66("g", { fill: "none", children: [
|
|
11351
|
+
/* @__PURE__ */ jsx107("path", { d: "M24 0v24H0V0zM12.593 23.258l-.011.002l-.071.035l-.02.004l-.014-.004l-.071-.035c-.01-.004-.019-.001-.024.005l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427c-.002-.01-.009-.017-.017-.018m.265-.113l-.013.002l-.185.093l-.01.01l-.003.011l.018.43l.005.012l.008.007l.201.093c.012.004.023 0 .029-.008l.004-.014l-.034-.614c-.003-.012-.01-.02-.02-.022m-.715.002a.023.023 0 0 0-.027.006l-.006.014l-.034.614c0 .012.007.02.017.024l.015-.002l.201-.093l.01-.008l.004-.011l.017-.43l-.003-.012l-.01-.01z" }),
|
|
11352
|
+
/* @__PURE__ */ jsx107(
|
|
11245
11353
|
"path",
|
|
11246
11354
|
{
|
|
11247
11355
|
fill: "currentColor",
|
|
@@ -11249,16 +11357,16 @@ var DataGridMoreIcon = ({ ...props }) => /* @__PURE__ */ jsx106(SvgIcon3, { sx:
|
|
|
11249
11357
|
}
|
|
11250
11358
|
)
|
|
11251
11359
|
] }) });
|
|
11252
|
-
var DataGridDensityCompactIcon = ({ ...props }) => /* @__PURE__ */
|
|
11360
|
+
var DataGridDensityCompactIcon = ({ ...props }) => /* @__PURE__ */ jsx107(SvgIcon3, { sx: { width: 20, height: 20, ...props.sx }, ...props, children: /* @__PURE__ */ jsx107(
|
|
11253
11361
|
"path",
|
|
11254
11362
|
{
|
|
11255
11363
|
fill: "currentColor",
|
|
11256
11364
|
d: "M4 15.5q-.425 0-.712-.288T3 14.5V14q0-.425.288-.712T4 13h16q.425 0 .713.288T21 14v.5q0 .425-.288.713T20 15.5zM4 11q-.425 0-.712-.288T3 10v-.5q0-.425.288-.712T4 8.5h16q.425 0 .713.288T21 9.5v.5q0 .425-.288.713T20 11zm0-4.5q-.425 0-.712-.288T3 5.5V5q0-.425.288-.712T4 4h16q.425 0 .713.288T21 5v.5q0 .425-.288.713T20 6.5zM4 20q-.425 0-.712-.288T3 19v-.5q0-.425.288-.712T4 17.5h16q.425 0 .713.288T21 18.5v.5q0 .425-.288.713T20 20z"
|
|
11257
11365
|
}
|
|
11258
11366
|
) });
|
|
11259
|
-
var DataGridDensityComfortableIcon = ({ ...props }) => /* @__PURE__ */
|
|
11260
|
-
/* @__PURE__ */
|
|
11261
|
-
/* @__PURE__ */
|
|
11367
|
+
var DataGridDensityComfortableIcon = ({ ...props }) => /* @__PURE__ */ jsx107(SvgIcon3, { sx: { width: 20, height: 20, ...props.sx }, ...props, children: /* @__PURE__ */ jsxs66("g", { fill: "none", fillRule: "evenodd", children: [
|
|
11368
|
+
/* @__PURE__ */ jsx107("path", { d: "M24 0v24H0V0zM12.593 23.258l-.011.002l-.071.035l-.02.004l-.014-.004l-.071-.035c-.01-.004-.019-.001-.024.005l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427c-.002-.01-.009-.017-.017-.018m.265-.113l-.013.002l-.185.093l-.01.01l-.003.011l.018.43l.005.012l.008.007l.201.093c.012.004.023 0 .029-.008l.004-.014l-.034-.614c-.003-.012-.01-.02-.02-.022m-.715.002a.023.023 0 0 0-.027.006l-.006.014l-.034.614c0 .012.007.02.017.024l.015-.002l.201-.093l.01-.008l.004-.011l.017-.43l-.003-.012l-.01-.01z" }),
|
|
11369
|
+
/* @__PURE__ */ jsx107(
|
|
11262
11370
|
"path",
|
|
11263
11371
|
{
|
|
11264
11372
|
fill: "currentColor",
|
|
@@ -11266,9 +11374,9 @@ var DataGridDensityComfortableIcon = ({ ...props }) => /* @__PURE__ */ jsx106(Sv
|
|
|
11266
11374
|
}
|
|
11267
11375
|
)
|
|
11268
11376
|
] }) });
|
|
11269
|
-
var DataGridDensityStandardIcon = ({ ...props }) => /* @__PURE__ */
|
|
11270
|
-
/* @__PURE__ */
|
|
11271
|
-
/* @__PURE__ */
|
|
11377
|
+
var DataGridDensityStandardIcon = ({ ...props }) => /* @__PURE__ */ jsx107(SvgIcon3, { sx: { width: 20, height: 20, ...props.sx }, ...props, children: /* @__PURE__ */ jsxs66("g", { fill: "none", children: [
|
|
11378
|
+
/* @__PURE__ */ jsx107("path", { d: "M24 0v24H0V0zM12.593 23.258l-.011.002l-.071.035l-.02.004l-.014-.004l-.071-.035c-.01-.004-.019-.001-.024.005l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427c-.002-.01-.009-.017-.017-.018m.265-.113l-.013.002l-.185.093l-.01.01l-.003.011l.018.43l.005.012l.008.007l.201.093c.012.004.023 0 .029-.008l.004-.014l-.034-.614c-.003-.012-.01-.02-.02-.022m-.715.002a.023.023 0 0 0-.027.006l-.006.014l-.034.614c0 .012.007.02.017.024l.015-.002l.201-.093l.01-.008l.004-.011l.017-.43l-.003-.012l-.01-.01z" }),
|
|
11379
|
+
/* @__PURE__ */ jsx107(
|
|
11272
11380
|
"path",
|
|
11273
11381
|
{
|
|
11274
11382
|
fill: "currentColor",
|
|
@@ -11429,13 +11537,13 @@ var buttonGroup = { MuiButtonGroup };
|
|
|
11429
11537
|
import { chipClasses as chipClasses2 } from "@mui/material/Chip";
|
|
11430
11538
|
import { inputBaseClasses as inputBaseClasses4 } from "@mui/material/InputBase";
|
|
11431
11539
|
import { autocompleteClasses as autocompleteClasses3 } from "@mui/material/Autocomplete";
|
|
11432
|
-
import { jsx as
|
|
11540
|
+
import { jsx as jsx108 } from "react/jsx-runtime";
|
|
11433
11541
|
var MuiAutocomplete = {
|
|
11434
11542
|
/** **************************************
|
|
11435
11543
|
* DEFAULT PROPS
|
|
11436
11544
|
*************************************** */
|
|
11437
11545
|
defaultProps: {
|
|
11438
|
-
popupIcon: /* @__PURE__ */
|
|
11546
|
+
popupIcon: /* @__PURE__ */ jsx108(Icon, { icon: "NavArrowDown" }),
|
|
11439
11547
|
forcePopupIcon: true
|
|
11440
11548
|
},
|
|
11441
11549
|
/** **************************************
|
|
@@ -11549,8 +11657,8 @@ var MuiAutocomplete = {
|
|
|
11549
11657
|
var autocomplete = { MuiAutocomplete };
|
|
11550
11658
|
|
|
11551
11659
|
// src/theme/core/components/toggle-button.ts
|
|
11552
|
-
import { toggleButtonGroupClasses } from "@mui/material/ToggleButtonGroup";
|
|
11553
|
-
import { toggleButtonClasses } from "@mui/material/ToggleButton";
|
|
11660
|
+
import { toggleButtonGroupClasses as toggleButtonGroupClasses2 } from "@mui/material/ToggleButtonGroup";
|
|
11661
|
+
import { toggleButtonClasses as toggleButtonClasses2 } from "@mui/material/ToggleButton";
|
|
11554
11662
|
var COLORS9 = ["primary", "secondary", "info", "success", "warning", "error"];
|
|
11555
11663
|
function styleColors6(ownerState, styles) {
|
|
11556
11664
|
const outputStyle = COLORS9.reduce((acc, color) => {
|
|
@@ -11579,7 +11687,7 @@ var MuiToggleButton = {
|
|
|
11579
11687
|
}
|
|
11580
11688
|
})),
|
|
11581
11689
|
selected: {
|
|
11582
|
-
[`&.${
|
|
11690
|
+
[`&.${toggleButtonClasses2.selected}`]: {
|
|
11583
11691
|
color: theme.vars.palette.common.white,
|
|
11584
11692
|
backgroundColor: theme.vars.palette.primary.light,
|
|
11585
11693
|
borderColor: "currentColor",
|
|
@@ -11591,7 +11699,7 @@ var MuiToggleButton = {
|
|
|
11591
11699
|
},
|
|
11592
11700
|
disabled: {
|
|
11593
11701
|
...ownerState.disabled && {
|
|
11594
|
-
[`&.${
|
|
11702
|
+
[`&.${toggleButtonClasses2.selected}`]: {
|
|
11595
11703
|
color: theme.vars.palette.action.disabled,
|
|
11596
11704
|
backgroundColor: theme.vars.palette.action.selected,
|
|
11597
11705
|
borderColor: theme.vars.palette.action.disabledBackground
|
|
@@ -11619,21 +11727,21 @@ var MuiToggleButtonGroup = {
|
|
|
11619
11727
|
borderRadius: Number(theme.shape.borderRadius) * 2
|
|
11620
11728
|
}),
|
|
11621
11729
|
grouped: ({ theme }) => ({
|
|
11622
|
-
[`&.${
|
|
11730
|
+
[`&.${toggleButtonClasses2.root}`]: {
|
|
11623
11731
|
padding: theme.spacing(1, 2),
|
|
11624
11732
|
border: "none"
|
|
11625
11733
|
},
|
|
11626
|
-
[`&.${
|
|
11734
|
+
[`&.${toggleButtonGroupClasses2.firstButton}`]: {
|
|
11627
11735
|
border: "none",
|
|
11628
11736
|
borderTopLeftRadius: "inherit",
|
|
11629
11737
|
borderBottomLeftRadius: "inherit"
|
|
11630
11738
|
},
|
|
11631
|
-
[`&.${
|
|
11739
|
+
[`&.${toggleButtonGroupClasses2.lastButton}`]: {
|
|
11632
11740
|
border: "none",
|
|
11633
11741
|
borderTopRightRadius: "inherit",
|
|
11634
11742
|
borderBottomRightRadius: "inherit"
|
|
11635
11743
|
},
|
|
11636
|
-
[`&.${
|
|
11744
|
+
[`&.${toggleButtonClasses2.selected}`]: { boxShadow: "none" }
|
|
11637
11745
|
})
|
|
11638
11746
|
}
|
|
11639
11747
|
};
|
|
@@ -11645,7 +11753,7 @@ import Typography15 from "@mui/material/Typography";
|
|
|
11645
11753
|
import { buttonClasses as buttonClasses3 } from "@mui/material/Button";
|
|
11646
11754
|
import { styled as styled3 } from "@mui/material/styles";
|
|
11647
11755
|
import { dialogActionsClasses } from "@mui/material/DialogActions";
|
|
11648
|
-
import { jsx as
|
|
11756
|
+
import { jsx as jsx109, jsxs as jsxs67 } from "react/jsx-runtime";
|
|
11649
11757
|
var CustomCalendarHeaderRoot = styled3("div")(({ theme }) => ({
|
|
11650
11758
|
display: "flex",
|
|
11651
11759
|
justifyContent: "space-between",
|
|
@@ -11683,9 +11791,9 @@ function CustomCalendarHeader(props) {
|
|
|
11683
11791
|
onViewChange("year");
|
|
11684
11792
|
}
|
|
11685
11793
|
};
|
|
11686
|
-
return /* @__PURE__ */
|
|
11687
|
-
/* @__PURE__ */
|
|
11688
|
-
/* @__PURE__ */
|
|
11794
|
+
return /* @__PURE__ */ jsxs67(CustomCalendarHeaderRoot, { children: [
|
|
11795
|
+
/* @__PURE__ */ jsx109(CustomIconButton, { onClick: selectPreviousMonth, title: "Previous month", size: "small", children: /* @__PURE__ */ jsx109(Icon, { icon: "NavArrowLeft", width: 16 }) }),
|
|
11796
|
+
/* @__PURE__ */ jsx109(
|
|
11689
11797
|
Typography15,
|
|
11690
11798
|
{
|
|
11691
11799
|
variant: "subtitle1",
|
|
@@ -11700,7 +11808,7 @@ function CustomCalendarHeader(props) {
|
|
|
11700
11808
|
children: monthLabel
|
|
11701
11809
|
}
|
|
11702
11810
|
),
|
|
11703
|
-
/* @__PURE__ */
|
|
11811
|
+
/* @__PURE__ */ jsx109(CustomIconButton, { onClick: selectNextMonth, title: "Next month", size: "small", children: /* @__PURE__ */ jsx109(Icon, { icon: "NavArrowRight", width: 16 }) })
|
|
11704
11812
|
] });
|
|
11705
11813
|
}
|
|
11706
11814
|
var localeText = {
|
|
@@ -11708,13 +11816,13 @@ var localeText = {
|
|
|
11708
11816
|
};
|
|
11709
11817
|
var defaultProps = {
|
|
11710
11818
|
date: {
|
|
11711
|
-
openPickerIcon: () => /* @__PURE__ */
|
|
11819
|
+
openPickerIcon: () => /* @__PURE__ */ jsx109(Icon, { icon: "Calendar", sx: { width: 20, height: 20 } }),
|
|
11712
11820
|
calendarHeader: CustomCalendarHeader
|
|
11713
11821
|
},
|
|
11714
11822
|
time: {
|
|
11715
|
-
openPickerIcon: () => /* @__PURE__ */
|
|
11716
|
-
rightArrowIcon: () => /* @__PURE__ */
|
|
11717
|
-
switchViewIcon: () => /* @__PURE__ */
|
|
11823
|
+
openPickerIcon: () => /* @__PURE__ */ jsx109(Icon, { icon: "Clock", sx: { width: 20, height: 20 } }),
|
|
11824
|
+
rightArrowIcon: () => /* @__PURE__ */ jsx109(Icon, { icon: "NavArrowRight" }),
|
|
11825
|
+
switchViewIcon: () => /* @__PURE__ */ jsx109(Icon, { icon: "NavArrowDownSolid" })
|
|
11718
11826
|
}
|
|
11719
11827
|
};
|
|
11720
11828
|
var dateViews = ["year", "month", "day"];
|
|
@@ -12145,18 +12253,18 @@ import "@fontsource/geist/500.css";
|
|
|
12145
12253
|
import "@fontsource/geist/600.css";
|
|
12146
12254
|
import "@fontsource/geist/700.css";
|
|
12147
12255
|
import "./satoshi-4X3TX4PE.css";
|
|
12148
|
-
import { jsx as
|
|
12256
|
+
import { jsx as jsx110, jsxs as jsxs68 } from "react/jsx-runtime";
|
|
12149
12257
|
var ThemeProvider = ({ children }) => {
|
|
12150
12258
|
const settings = useSettings();
|
|
12151
12259
|
const theme = createTheme(settings);
|
|
12152
|
-
return /* @__PURE__ */
|
|
12260
|
+
return /* @__PURE__ */ jsxs68(
|
|
12153
12261
|
MuiThemeProvider,
|
|
12154
12262
|
{
|
|
12155
12263
|
theme,
|
|
12156
12264
|
defaultMode: schemeConfig.defaultMode,
|
|
12157
12265
|
modeStorageKey: schemeConfig.modeStorageKey,
|
|
12158
12266
|
children: [
|
|
12159
|
-
/* @__PURE__ */
|
|
12267
|
+
/* @__PURE__ */ jsx110(CssBaseline, {}),
|
|
12160
12268
|
children
|
|
12161
12269
|
]
|
|
12162
12270
|
}
|
|
@@ -12237,6 +12345,7 @@ export {
|
|
|
12237
12345
|
RHFSwitch,
|
|
12238
12346
|
RHFTextField,
|
|
12239
12347
|
RHFTimePicker,
|
|
12348
|
+
RHFToggleButton,
|
|
12240
12349
|
RHFUpload,
|
|
12241
12350
|
RadioDefault,
|
|
12242
12351
|
RadioSelect,
|