@undefine-ui/design-system 3.7.2 → 3.8.1
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 +299 -171
- 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 +300 -170
- 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,
|
|
@@ -10694,8 +10801,15 @@ var RHFDatePickerComponent = ({
|
|
|
10694
10801
|
onClick: () => setIsOpen(true),
|
|
10695
10802
|
...typeof slotProps?.textField === "object" ? slotProps.textField : {}
|
|
10696
10803
|
},
|
|
10697
|
-
openPickerButton: {
|
|
10698
|
-
|
|
10804
|
+
openPickerButton: {
|
|
10805
|
+
onClick: () => setIsOpen(true),
|
|
10806
|
+
...typeof slotProps?.openPickerButton === "object" ? slotProps.openPickerButton : {}
|
|
10807
|
+
},
|
|
10808
|
+
field: {
|
|
10809
|
+
clearable,
|
|
10810
|
+
onClear: () => setCleared(true),
|
|
10811
|
+
...typeof slotProps?.field === "object" ? slotProps.field : {}
|
|
10812
|
+
}
|
|
10699
10813
|
},
|
|
10700
10814
|
...other
|
|
10701
10815
|
}
|
|
@@ -10712,7 +10826,7 @@ var RHFTimePickerComponent = ({
|
|
|
10712
10826
|
format: format4 = "h:mma",
|
|
10713
10827
|
...other
|
|
10714
10828
|
}) => {
|
|
10715
|
-
const { control } =
|
|
10829
|
+
const { control } = useFormContext12();
|
|
10716
10830
|
const [isOpen, setIsOpen] = useState19(false);
|
|
10717
10831
|
const [cleared, setCleared] = useState19(false);
|
|
10718
10832
|
useEffect8(() => {
|
|
@@ -10723,12 +10837,12 @@ var RHFTimePickerComponent = ({
|
|
|
10723
10837
|
return () => {
|
|
10724
10838
|
};
|
|
10725
10839
|
}, [cleared]);
|
|
10726
|
-
return /* @__PURE__ */
|
|
10727
|
-
|
|
10840
|
+
return /* @__PURE__ */ jsx103(
|
|
10841
|
+
Controller12,
|
|
10728
10842
|
{
|
|
10729
10843
|
name,
|
|
10730
10844
|
control,
|
|
10731
|
-
render: ({ field, fieldState: { error: error2 } }) => /* @__PURE__ */
|
|
10845
|
+
render: ({ field, fieldState: { error: error2 } }) => /* @__PURE__ */ jsx103(LocalizationProvider2, { dateAdapter: AdapterDateFns2, children: /* @__PURE__ */ jsx103(
|
|
10732
10846
|
MuiTimePicker,
|
|
10733
10847
|
{
|
|
10734
10848
|
...field,
|
|
@@ -10751,8 +10865,15 @@ var RHFTimePickerComponent = ({
|
|
|
10751
10865
|
onClick: () => setIsOpen(true),
|
|
10752
10866
|
...typeof slotProps?.textField === "object" ? slotProps.textField : {}
|
|
10753
10867
|
},
|
|
10754
|
-
openPickerButton: {
|
|
10755
|
-
|
|
10868
|
+
openPickerButton: {
|
|
10869
|
+
onClick: () => setIsOpen(true),
|
|
10870
|
+
...typeof slotProps?.openPickerButton === "object" ? slotProps.openPickerButton : {}
|
|
10871
|
+
},
|
|
10872
|
+
field: {
|
|
10873
|
+
clearable,
|
|
10874
|
+
onClear: () => setCleared(true),
|
|
10875
|
+
...typeof slotProps?.field === "object" ? slotProps.field : {}
|
|
10876
|
+
}
|
|
10756
10877
|
},
|
|
10757
10878
|
...other
|
|
10758
10879
|
}
|
|
@@ -10769,7 +10890,7 @@ var RHFDateTimePickerComponent = ({
|
|
|
10769
10890
|
format: format4 = "MMM d, yyyy h:mma",
|
|
10770
10891
|
...other
|
|
10771
10892
|
}) => {
|
|
10772
|
-
const { control } =
|
|
10893
|
+
const { control } = useFormContext12();
|
|
10773
10894
|
const [isOpen, setIsOpen] = useState19(false);
|
|
10774
10895
|
const [cleared, setCleared] = useState19(false);
|
|
10775
10896
|
useEffect8(() => {
|
|
@@ -10780,12 +10901,12 @@ var RHFDateTimePickerComponent = ({
|
|
|
10780
10901
|
return () => {
|
|
10781
10902
|
};
|
|
10782
10903
|
}, [cleared]);
|
|
10783
|
-
return /* @__PURE__ */
|
|
10784
|
-
|
|
10904
|
+
return /* @__PURE__ */ jsx103(
|
|
10905
|
+
Controller12,
|
|
10785
10906
|
{
|
|
10786
10907
|
name,
|
|
10787
10908
|
control,
|
|
10788
|
-
render: ({ field, fieldState: { error: error2 } }) => /* @__PURE__ */
|
|
10909
|
+
render: ({ field, fieldState: { error: error2 } }) => /* @__PURE__ */ jsx103(LocalizationProvider2, { dateAdapter: AdapterDateFns2, children: /* @__PURE__ */ jsx103(
|
|
10789
10910
|
MuiDateTimePicker,
|
|
10790
10911
|
{
|
|
10791
10912
|
...field,
|
|
@@ -10808,8 +10929,15 @@ var RHFDateTimePickerComponent = ({
|
|
|
10808
10929
|
onClick: () => setIsOpen(true),
|
|
10809
10930
|
...typeof slotProps?.textField === "object" ? slotProps.textField : {}
|
|
10810
10931
|
},
|
|
10811
|
-
openPickerButton: {
|
|
10812
|
-
|
|
10932
|
+
openPickerButton: {
|
|
10933
|
+
onClick: () => setIsOpen(true),
|
|
10934
|
+
...typeof slotProps?.openPickerButton === "object" ? slotProps.openPickerButton : {}
|
|
10935
|
+
},
|
|
10936
|
+
field: {
|
|
10937
|
+
clearable,
|
|
10938
|
+
onClear: () => setCleared(true),
|
|
10939
|
+
...typeof slotProps?.field === "object" ? slotProps.field : {}
|
|
10940
|
+
}
|
|
10813
10941
|
},
|
|
10814
10942
|
...other
|
|
10815
10943
|
}
|
|
@@ -10828,20 +10956,21 @@ var Field = {
|
|
|
10828
10956
|
Text: RHFTextField,
|
|
10829
10957
|
Radio: RHFRadioGroup,
|
|
10830
10958
|
Checkbox: RHFCheckbox,
|
|
10831
|
-
Autocomplete: RHFAutocomplete,
|
|
10832
|
-
MultiCheckbox: RHFMultiCheckbox,
|
|
10833
10959
|
Date: RHFDatePicker,
|
|
10834
10960
|
Time: RHFTimePicker,
|
|
10835
10961
|
DateTime: RHFDateTimePicker,
|
|
10836
10962
|
DateRange: RHFDateRangePicker,
|
|
10963
|
+
Autocomplete: RHFAutocomplete,
|
|
10964
|
+
ToggleButton: RHFToggleButton,
|
|
10965
|
+
MultiCheckbox: RHFMultiCheckbox,
|
|
10837
10966
|
GooglePlacesAutocomplete: RHFGooglePlacesAutocomplete
|
|
10838
10967
|
};
|
|
10839
10968
|
|
|
10840
10969
|
// src/components/FormLabel/index.tsx
|
|
10841
10970
|
import Tooltip from "@mui/material/Tooltip";
|
|
10842
10971
|
import Typography14 from "@mui/material/Typography";
|
|
10843
|
-
import
|
|
10844
|
-
import { jsx as
|
|
10972
|
+
import FormLabel5 from "@mui/material/FormLabel";
|
|
10973
|
+
import { jsx as jsx104, jsxs as jsxs65 } from "react/jsx-runtime";
|
|
10845
10974
|
var CustomFormLabel = ({
|
|
10846
10975
|
label,
|
|
10847
10976
|
tooltip: tooltip2,
|
|
@@ -10849,26 +10978,26 @@ var CustomFormLabel = ({
|
|
|
10849
10978
|
optional,
|
|
10850
10979
|
sx,
|
|
10851
10980
|
...rest
|
|
10852
|
-
}) => /* @__PURE__ */
|
|
10981
|
+
}) => /* @__PURE__ */ jsxs65(FormLabel5, { sx: { mb: 0.5, display: "flex", alignItems: "center", gap: 0.5, ...sx }, ...rest, children: [
|
|
10853
10982
|
label,
|
|
10854
|
-
optional && /* @__PURE__ */
|
|
10855
|
-
tooltip2 && /* @__PURE__ */
|
|
10983
|
+
optional && /* @__PURE__ */ jsx104(Typography14, { component: "span", variant: "caption", color: "text.secondary", children: "(Optional)" }),
|
|
10984
|
+
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
10985
|
] });
|
|
10857
10986
|
|
|
10858
10987
|
// src/components/CopyButton/index.tsx
|
|
10859
10988
|
import Tooltip2 from "@mui/material/Tooltip";
|
|
10860
10989
|
import IconButton6 from "@mui/material/IconButton";
|
|
10861
|
-
import { jsx as
|
|
10990
|
+
import { jsx as jsx105 } from "react/jsx-runtime";
|
|
10862
10991
|
var CopyButton = ({ text: text2, size = "small" }) => {
|
|
10863
10992
|
const { copy, isCopied } = useCopyToClipboard();
|
|
10864
|
-
return /* @__PURE__ */
|
|
10993
|
+
return /* @__PURE__ */ jsx105(Tooltip2, { title: isCopied ? "Copied" : "Copy", children: /* @__PURE__ */ jsx105(
|
|
10865
10994
|
IconButton6,
|
|
10866
10995
|
{
|
|
10867
10996
|
size,
|
|
10868
10997
|
onClick: () => copy(text2),
|
|
10869
10998
|
"aria-label": "copy token",
|
|
10870
10999
|
sx: { color: "icon.black" },
|
|
10871
|
-
children: /* @__PURE__ */
|
|
11000
|
+
children: /* @__PURE__ */ jsx105(Icon, { icon: isCopied ? "ClipboardCheck" : "Copy", sx: { width: 20, height: 20 } })
|
|
10872
11001
|
}
|
|
10873
11002
|
) });
|
|
10874
11003
|
};
|
|
@@ -10877,9 +11006,9 @@ var CopyButton = ({ text: text2, size = "small" }) => {
|
|
|
10877
11006
|
import Portal2 from "@mui/material/Portal";
|
|
10878
11007
|
import Box25 from "@mui/material/Box";
|
|
10879
11008
|
import LinearProgress from "@mui/material/LinearProgress";
|
|
10880
|
-
import { jsx as
|
|
11009
|
+
import { jsx as jsx106 } from "react/jsx-runtime";
|
|
10881
11010
|
var LoadingScreen = ({ portal, sx, ...rest }) => {
|
|
10882
|
-
const content = /* @__PURE__ */
|
|
11011
|
+
const content = /* @__PURE__ */ jsx106(
|
|
10883
11012
|
Box25,
|
|
10884
11013
|
{
|
|
10885
11014
|
sx: {
|
|
@@ -10893,16 +11022,16 @@ var LoadingScreen = ({ portal, sx, ...rest }) => {
|
|
|
10893
11022
|
...sx
|
|
10894
11023
|
},
|
|
10895
11024
|
...rest,
|
|
10896
|
-
children: /* @__PURE__ */
|
|
11025
|
+
children: /* @__PURE__ */ jsx106(LinearProgress, { color: "primary", sx: { width: 1, maxWidth: 360 } })
|
|
10897
11026
|
}
|
|
10898
11027
|
);
|
|
10899
11028
|
if (portal) {
|
|
10900
|
-
return /* @__PURE__ */
|
|
11029
|
+
return /* @__PURE__ */ jsx106(Portal2, { children: content });
|
|
10901
11030
|
}
|
|
10902
11031
|
return content;
|
|
10903
11032
|
};
|
|
10904
11033
|
var SplashScreen = ({ portal, sx, ...rest }) => {
|
|
10905
|
-
const content = /* @__PURE__ */
|
|
11034
|
+
const content = /* @__PURE__ */ jsx106(
|
|
10906
11035
|
Box25,
|
|
10907
11036
|
{
|
|
10908
11037
|
sx: {
|
|
@@ -10919,17 +11048,17 @@ var SplashScreen = ({ portal, sx, ...rest }) => {
|
|
|
10919
11048
|
...sx
|
|
10920
11049
|
},
|
|
10921
11050
|
...rest,
|
|
10922
|
-
children: /* @__PURE__ */
|
|
11051
|
+
children: /* @__PURE__ */ jsx106(AnimatedLogo, {})
|
|
10923
11052
|
}
|
|
10924
11053
|
);
|
|
10925
11054
|
if (portal) {
|
|
10926
|
-
return /* @__PURE__ */
|
|
11055
|
+
return /* @__PURE__ */ jsx106(Portal2, { children: content });
|
|
10927
11056
|
}
|
|
10928
11057
|
return content;
|
|
10929
11058
|
};
|
|
10930
11059
|
|
|
10931
11060
|
// src/theme/core/components/mui-x-data-grid.tsx
|
|
10932
|
-
import { jsx as
|
|
11061
|
+
import { jsx as jsx107, jsxs as jsxs66 } from "react/jsx-runtime";
|
|
10933
11062
|
var MuiDataGrid = {
|
|
10934
11063
|
/** **************************************
|
|
10935
11064
|
* DEFAULT PROPS
|
|
@@ -10937,9 +11066,9 @@ var MuiDataGrid = {
|
|
|
10937
11066
|
defaultProps: {
|
|
10938
11067
|
slots: {
|
|
10939
11068
|
/* Column */
|
|
10940
|
-
columnSortedAscendingIcon: (props) => /* @__PURE__ */
|
|
10941
|
-
columnSortedDescendingIcon: (props) => /* @__PURE__ */
|
|
10942
|
-
columnUnsortedIcon: (props) => /* @__PURE__ */
|
|
11069
|
+
columnSortedAscendingIcon: (props) => /* @__PURE__ */ jsx107(DataGridArrowUpIcon, { sx: { color: "text.primary" }, ...props }),
|
|
11070
|
+
columnSortedDescendingIcon: (props) => /* @__PURE__ */ jsx107(DataGridArrowDownIcon, { sx: { color: "text.primary" }, ...props }),
|
|
11071
|
+
columnUnsortedIcon: (props) => /* @__PURE__ */ jsx107(
|
|
10943
11072
|
DataGridArrowUpIcon,
|
|
10944
11073
|
{
|
|
10945
11074
|
fontSize: props.fontSize,
|
|
@@ -10947,28 +11076,28 @@ var MuiDataGrid = {
|
|
|
10947
11076
|
sx: { color: "text.disabled" }
|
|
10948
11077
|
}
|
|
10949
11078
|
),
|
|
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__ */
|
|
11079
|
+
columnMenuIcon: (props) => /* @__PURE__ */ jsx107(DataGridMoreIcon, { width: 20, ...props }),
|
|
11080
|
+
columnMenuSortAscendingIcon: (props) => /* @__PURE__ */ jsx107(DataGridArrowUpIcon, { ...props }),
|
|
11081
|
+
columnMenuSortDescendingIcon: (props) => /* @__PURE__ */ jsx107(DataGridArrowDownIcon, { ...props }),
|
|
11082
|
+
columnMenuFilterIcon: (props) => /* @__PURE__ */ jsx107(DataGridFilterIcon, { ...props }),
|
|
11083
|
+
columnMenuHideIcon: (props) => /* @__PURE__ */ jsx107(DataGridEyeCloseIcon, { ...props }),
|
|
11084
|
+
columnMenuManageColumnsIcon: (props) => /* @__PURE__ */ jsx107(DataGridEyeIcon, { ...props }),
|
|
11085
|
+
columnSelectorIcon: (props) => /* @__PURE__ */ jsx107(DataGridEyeIcon, { ...props }),
|
|
10957
11086
|
/* Filter */
|
|
10958
|
-
filterPanelDeleteIcon: (props) => /* @__PURE__ */
|
|
10959
|
-
openFilterButtonIcon: (props) => /* @__PURE__ */
|
|
10960
|
-
columnFilteredIcon: (props) => /* @__PURE__ */
|
|
11087
|
+
filterPanelDeleteIcon: (props) => /* @__PURE__ */ jsx107(DataGridCloseIcon, { ...props }),
|
|
11088
|
+
openFilterButtonIcon: (props) => /* @__PURE__ */ jsx107(DataGridFilterIcon, { ...props }),
|
|
11089
|
+
columnFilteredIcon: (props) => /* @__PURE__ */ jsx107(DataGridFilterIcon, { sx: { width: 16, color: "text.primary" }, ...props }),
|
|
10961
11090
|
/* Density */
|
|
10962
|
-
densityCompactIcon: (props) => /* @__PURE__ */
|
|
10963
|
-
densityStandardIcon: (props) => /* @__PURE__ */
|
|
10964
|
-
densityComfortableIcon: (props) => /* @__PURE__ */
|
|
11091
|
+
densityCompactIcon: (props) => /* @__PURE__ */ jsx107(DataGridDensityCompactIcon, { ...props }),
|
|
11092
|
+
densityStandardIcon: (props) => /* @__PURE__ */ jsx107(DataGridDensityStandardIcon, { ...props }),
|
|
11093
|
+
densityComfortableIcon: (props) => /* @__PURE__ */ jsx107(DataGridDensityComfortableIcon, { ...props }),
|
|
10965
11094
|
/* Export */
|
|
10966
|
-
exportIcon: (props) => /* @__PURE__ */
|
|
11095
|
+
exportIcon: (props) => /* @__PURE__ */ jsx107(DataGridExportIcon, { ...props }),
|
|
10967
11096
|
/* Quick Filter */
|
|
10968
|
-
quickFilterIcon: (props) => /* @__PURE__ */
|
|
10969
|
-
quickFilterClearIcon: (props) => /* @__PURE__ */
|
|
11097
|
+
quickFilterIcon: (props) => /* @__PURE__ */ jsx107(DataGridSearchIcon, { sx: { width: 24, height: 24, color: "text.secondary" }, ...props }),
|
|
11098
|
+
quickFilterClearIcon: (props) => /* @__PURE__ */ jsx107(DataGridCloseIcon, { ...props }),
|
|
10970
11099
|
/* Actions Column */
|
|
10971
|
-
moreActionsIcon: (props) => /* @__PURE__ */
|
|
11100
|
+
moreActionsIcon: (props) => /* @__PURE__ */ jsx107(Icon, { icon: "MoreHorizontal", sx: { width: 20, height: 20 }, ...props })
|
|
10972
11101
|
},
|
|
10973
11102
|
slotProps: {
|
|
10974
11103
|
basePopper: { placement: "bottom-end" },
|
|
@@ -11145,15 +11274,15 @@ var MuiDataGrid = {
|
|
|
11145
11274
|
}
|
|
11146
11275
|
};
|
|
11147
11276
|
var dataGrid = { MuiDataGrid };
|
|
11148
|
-
var DataGridArrowUpIcon = ({ ...props }) => /* @__PURE__ */
|
|
11149
|
-
/* @__PURE__ */
|
|
11277
|
+
var DataGridArrowUpIcon = ({ ...props }) => /* @__PURE__ */ jsxs66(SvgIcon3, { sx: { width: 20, height: 20, ...props.sx }, ...props, children: [
|
|
11278
|
+
/* @__PURE__ */ jsx107(
|
|
11150
11279
|
"path",
|
|
11151
11280
|
{
|
|
11152
11281
|
fill: "currentColor",
|
|
11153
11282
|
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
11283
|
}
|
|
11155
11284
|
),
|
|
11156
|
-
/* @__PURE__ */
|
|
11285
|
+
/* @__PURE__ */ jsx107(
|
|
11157
11286
|
"path",
|
|
11158
11287
|
{
|
|
11159
11288
|
fill: "currentColor",
|
|
@@ -11162,15 +11291,15 @@ var DataGridArrowUpIcon = ({ ...props }) => /* @__PURE__ */ jsxs65(SvgIcon3, { s
|
|
|
11162
11291
|
}
|
|
11163
11292
|
)
|
|
11164
11293
|
] });
|
|
11165
|
-
var DataGridArrowDownIcon = ({ ...props }) => /* @__PURE__ */
|
|
11166
|
-
/* @__PURE__ */
|
|
11294
|
+
var DataGridArrowDownIcon = ({ ...props }) => /* @__PURE__ */ jsxs66(SvgIcon3, { sx: { width: 20, height: 20, ...props.sx }, ...props, children: [
|
|
11295
|
+
/* @__PURE__ */ jsx107(
|
|
11167
11296
|
"path",
|
|
11168
11297
|
{
|
|
11169
11298
|
fill: "currentColor",
|
|
11170
11299
|
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
11300
|
}
|
|
11172
11301
|
),
|
|
11173
|
-
/* @__PURE__ */
|
|
11302
|
+
/* @__PURE__ */ jsx107(
|
|
11174
11303
|
"path",
|
|
11175
11304
|
{
|
|
11176
11305
|
fill: "currentColor",
|
|
@@ -11179,15 +11308,15 @@ var DataGridArrowDownIcon = ({ ...props }) => /* @__PURE__ */ jsxs65(SvgIcon3, {
|
|
|
11179
11308
|
}
|
|
11180
11309
|
)
|
|
11181
11310
|
] });
|
|
11182
|
-
var DataGridFilterIcon = ({ ...props }) => /* @__PURE__ */
|
|
11311
|
+
var DataGridFilterIcon = ({ ...props }) => /* @__PURE__ */ jsx107(SvgIcon3, { sx: { width: 20, height: 20, ...props.sx }, ...props, children: /* @__PURE__ */ jsx107(
|
|
11183
11312
|
"path",
|
|
11184
11313
|
{
|
|
11185
11314
|
fill: "currentColor",
|
|
11186
11315
|
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
11316
|
}
|
|
11188
11317
|
) });
|
|
11189
|
-
var DataGridExportIcon = ({ ...props }) => /* @__PURE__ */
|
|
11190
|
-
/* @__PURE__ */
|
|
11318
|
+
var DataGridExportIcon = ({ ...props }) => /* @__PURE__ */ jsxs66(SvgIcon3, { sx: { width: 20, height: 20, ...props.sx }, ...props, children: [
|
|
11319
|
+
/* @__PURE__ */ jsx107(
|
|
11191
11320
|
"path",
|
|
11192
11321
|
{
|
|
11193
11322
|
fill: "currentColor",
|
|
@@ -11196,7 +11325,7 @@ var DataGridExportIcon = ({ ...props }) => /* @__PURE__ */ jsxs65(SvgIcon3, { sx
|
|
|
11196
11325
|
clipRule: "evenodd"
|
|
11197
11326
|
}
|
|
11198
11327
|
),
|
|
11199
|
-
/* @__PURE__ */
|
|
11328
|
+
/* @__PURE__ */ jsx107(
|
|
11200
11329
|
"path",
|
|
11201
11330
|
{
|
|
11202
11331
|
fill: "currentColor",
|
|
@@ -11204,9 +11333,9 @@ var DataGridExportIcon = ({ ...props }) => /* @__PURE__ */ jsxs65(SvgIcon3, { sx
|
|
|
11204
11333
|
}
|
|
11205
11334
|
)
|
|
11206
11335
|
] });
|
|
11207
|
-
var DataGridEyeIcon = ({ ...props }) => /* @__PURE__ */
|
|
11208
|
-
/* @__PURE__ */
|
|
11209
|
-
/* @__PURE__ */
|
|
11336
|
+
var DataGridEyeIcon = ({ ...props }) => /* @__PURE__ */ jsxs66(SvgIcon3, { sx: { width: 20, height: 20, ...props.sx }, ...props, children: [
|
|
11337
|
+
/* @__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" }),
|
|
11338
|
+
/* @__PURE__ */ jsx107(
|
|
11210
11339
|
"path",
|
|
11211
11340
|
{
|
|
11212
11341
|
fill: "currentColor",
|
|
@@ -11216,7 +11345,7 @@ var DataGridEyeIcon = ({ ...props }) => /* @__PURE__ */ jsxs65(SvgIcon3, { sx: {
|
|
|
11216
11345
|
}
|
|
11217
11346
|
)
|
|
11218
11347
|
] });
|
|
11219
|
-
var DataGridEyeCloseIcon = ({ ...props }) => /* @__PURE__ */
|
|
11348
|
+
var DataGridEyeCloseIcon = ({ ...props }) => /* @__PURE__ */ jsx107(SvgIcon3, { sx: { width: 20, height: 20, ...props.sx }, ...props, children: /* @__PURE__ */ jsx107(
|
|
11220
11349
|
"path",
|
|
11221
11350
|
{
|
|
11222
11351
|
fill: "currentColor",
|
|
@@ -11225,23 +11354,23 @@ var DataGridEyeCloseIcon = ({ ...props }) => /* @__PURE__ */ jsx106(SvgIcon3, {
|
|
|
11225
11354
|
clipRule: "evenodd"
|
|
11226
11355
|
}
|
|
11227
11356
|
) });
|
|
11228
|
-
var DataGridSearchIcon = ({ ...props }) => /* @__PURE__ */
|
|
11357
|
+
var DataGridSearchIcon = ({ ...props }) => /* @__PURE__ */ jsx107(SvgIcon3, { sx: { width: 20, height: 20, ...props.sx }, ...props, children: /* @__PURE__ */ jsx107(
|
|
11229
11358
|
"path",
|
|
11230
11359
|
{
|
|
11231
11360
|
fill: "currentColor",
|
|
11232
11361
|
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
11362
|
}
|
|
11234
11363
|
) });
|
|
11235
|
-
var DataGridCloseIcon = ({ ...props }) => /* @__PURE__ */
|
|
11364
|
+
var DataGridCloseIcon = ({ ...props }) => /* @__PURE__ */ jsx107(SvgIcon3, { sx: { width: 20, height: 20, ...props.sx }, ...props, children: /* @__PURE__ */ jsx107(
|
|
11236
11365
|
"path",
|
|
11237
11366
|
{
|
|
11238
11367
|
fill: "currentColor",
|
|
11239
11368
|
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
11369
|
}
|
|
11241
11370
|
) });
|
|
11242
|
-
var DataGridMoreIcon = ({ ...props }) => /* @__PURE__ */
|
|
11243
|
-
/* @__PURE__ */
|
|
11244
|
-
/* @__PURE__ */
|
|
11371
|
+
var DataGridMoreIcon = ({ ...props }) => /* @__PURE__ */ jsx107(SvgIcon3, { sx: { width: 20, height: 20, ...props.sx }, ...props, children: /* @__PURE__ */ jsxs66("g", { fill: "none", children: [
|
|
11372
|
+
/* @__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" }),
|
|
11373
|
+
/* @__PURE__ */ jsx107(
|
|
11245
11374
|
"path",
|
|
11246
11375
|
{
|
|
11247
11376
|
fill: "currentColor",
|
|
@@ -11249,16 +11378,16 @@ var DataGridMoreIcon = ({ ...props }) => /* @__PURE__ */ jsx106(SvgIcon3, { sx:
|
|
|
11249
11378
|
}
|
|
11250
11379
|
)
|
|
11251
11380
|
] }) });
|
|
11252
|
-
var DataGridDensityCompactIcon = ({ ...props }) => /* @__PURE__ */
|
|
11381
|
+
var DataGridDensityCompactIcon = ({ ...props }) => /* @__PURE__ */ jsx107(SvgIcon3, { sx: { width: 20, height: 20, ...props.sx }, ...props, children: /* @__PURE__ */ jsx107(
|
|
11253
11382
|
"path",
|
|
11254
11383
|
{
|
|
11255
11384
|
fill: "currentColor",
|
|
11256
11385
|
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
11386
|
}
|
|
11258
11387
|
) });
|
|
11259
|
-
var DataGridDensityComfortableIcon = ({ ...props }) => /* @__PURE__ */
|
|
11260
|
-
/* @__PURE__ */
|
|
11261
|
-
/* @__PURE__ */
|
|
11388
|
+
var DataGridDensityComfortableIcon = ({ ...props }) => /* @__PURE__ */ jsx107(SvgIcon3, { sx: { width: 20, height: 20, ...props.sx }, ...props, children: /* @__PURE__ */ jsxs66("g", { fill: "none", fillRule: "evenodd", children: [
|
|
11389
|
+
/* @__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" }),
|
|
11390
|
+
/* @__PURE__ */ jsx107(
|
|
11262
11391
|
"path",
|
|
11263
11392
|
{
|
|
11264
11393
|
fill: "currentColor",
|
|
@@ -11266,9 +11395,9 @@ var DataGridDensityComfortableIcon = ({ ...props }) => /* @__PURE__ */ jsx106(Sv
|
|
|
11266
11395
|
}
|
|
11267
11396
|
)
|
|
11268
11397
|
] }) });
|
|
11269
|
-
var DataGridDensityStandardIcon = ({ ...props }) => /* @__PURE__ */
|
|
11270
|
-
/* @__PURE__ */
|
|
11271
|
-
/* @__PURE__ */
|
|
11398
|
+
var DataGridDensityStandardIcon = ({ ...props }) => /* @__PURE__ */ jsx107(SvgIcon3, { sx: { width: 20, height: 20, ...props.sx }, ...props, children: /* @__PURE__ */ jsxs66("g", { fill: "none", children: [
|
|
11399
|
+
/* @__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" }),
|
|
11400
|
+
/* @__PURE__ */ jsx107(
|
|
11272
11401
|
"path",
|
|
11273
11402
|
{
|
|
11274
11403
|
fill: "currentColor",
|
|
@@ -11429,13 +11558,13 @@ var buttonGroup = { MuiButtonGroup };
|
|
|
11429
11558
|
import { chipClasses as chipClasses2 } from "@mui/material/Chip";
|
|
11430
11559
|
import { inputBaseClasses as inputBaseClasses4 } from "@mui/material/InputBase";
|
|
11431
11560
|
import { autocompleteClasses as autocompleteClasses3 } from "@mui/material/Autocomplete";
|
|
11432
|
-
import { jsx as
|
|
11561
|
+
import { jsx as jsx108 } from "react/jsx-runtime";
|
|
11433
11562
|
var MuiAutocomplete = {
|
|
11434
11563
|
/** **************************************
|
|
11435
11564
|
* DEFAULT PROPS
|
|
11436
11565
|
*************************************** */
|
|
11437
11566
|
defaultProps: {
|
|
11438
|
-
popupIcon: /* @__PURE__ */
|
|
11567
|
+
popupIcon: /* @__PURE__ */ jsx108(Icon, { icon: "NavArrowDown" }),
|
|
11439
11568
|
forcePopupIcon: true
|
|
11440
11569
|
},
|
|
11441
11570
|
/** **************************************
|
|
@@ -11549,8 +11678,8 @@ var MuiAutocomplete = {
|
|
|
11549
11678
|
var autocomplete = { MuiAutocomplete };
|
|
11550
11679
|
|
|
11551
11680
|
// src/theme/core/components/toggle-button.ts
|
|
11552
|
-
import { toggleButtonGroupClasses } from "@mui/material/ToggleButtonGroup";
|
|
11553
|
-
import { toggleButtonClasses } from "@mui/material/ToggleButton";
|
|
11681
|
+
import { toggleButtonGroupClasses as toggleButtonGroupClasses2 } from "@mui/material/ToggleButtonGroup";
|
|
11682
|
+
import { toggleButtonClasses as toggleButtonClasses2 } from "@mui/material/ToggleButton";
|
|
11554
11683
|
var COLORS9 = ["primary", "secondary", "info", "success", "warning", "error"];
|
|
11555
11684
|
function styleColors6(ownerState, styles) {
|
|
11556
11685
|
const outputStyle = COLORS9.reduce((acc, color) => {
|
|
@@ -11579,7 +11708,7 @@ var MuiToggleButton = {
|
|
|
11579
11708
|
}
|
|
11580
11709
|
})),
|
|
11581
11710
|
selected: {
|
|
11582
|
-
[`&.${
|
|
11711
|
+
[`&.${toggleButtonClasses2.selected}`]: {
|
|
11583
11712
|
color: theme.vars.palette.common.white,
|
|
11584
11713
|
backgroundColor: theme.vars.palette.primary.light,
|
|
11585
11714
|
borderColor: "currentColor",
|
|
@@ -11591,7 +11720,7 @@ var MuiToggleButton = {
|
|
|
11591
11720
|
},
|
|
11592
11721
|
disabled: {
|
|
11593
11722
|
...ownerState.disabled && {
|
|
11594
|
-
[`&.${
|
|
11723
|
+
[`&.${toggleButtonClasses2.selected}`]: {
|
|
11595
11724
|
color: theme.vars.palette.action.disabled,
|
|
11596
11725
|
backgroundColor: theme.vars.palette.action.selected,
|
|
11597
11726
|
borderColor: theme.vars.palette.action.disabledBackground
|
|
@@ -11619,21 +11748,21 @@ var MuiToggleButtonGroup = {
|
|
|
11619
11748
|
borderRadius: Number(theme.shape.borderRadius) * 2
|
|
11620
11749
|
}),
|
|
11621
11750
|
grouped: ({ theme }) => ({
|
|
11622
|
-
[`&.${
|
|
11751
|
+
[`&.${toggleButtonClasses2.root}`]: {
|
|
11623
11752
|
padding: theme.spacing(1, 2),
|
|
11624
11753
|
border: "none"
|
|
11625
11754
|
},
|
|
11626
|
-
[`&.${
|
|
11755
|
+
[`&.${toggleButtonGroupClasses2.firstButton}`]: {
|
|
11627
11756
|
border: "none",
|
|
11628
11757
|
borderTopLeftRadius: "inherit",
|
|
11629
11758
|
borderBottomLeftRadius: "inherit"
|
|
11630
11759
|
},
|
|
11631
|
-
[`&.${
|
|
11760
|
+
[`&.${toggleButtonGroupClasses2.lastButton}`]: {
|
|
11632
11761
|
border: "none",
|
|
11633
11762
|
borderTopRightRadius: "inherit",
|
|
11634
11763
|
borderBottomRightRadius: "inherit"
|
|
11635
11764
|
},
|
|
11636
|
-
[`&.${
|
|
11765
|
+
[`&.${toggleButtonClasses2.selected}`]: { boxShadow: "none" }
|
|
11637
11766
|
})
|
|
11638
11767
|
}
|
|
11639
11768
|
};
|
|
@@ -11645,7 +11774,7 @@ import Typography15 from "@mui/material/Typography";
|
|
|
11645
11774
|
import { buttonClasses as buttonClasses3 } from "@mui/material/Button";
|
|
11646
11775
|
import { styled as styled3 } from "@mui/material/styles";
|
|
11647
11776
|
import { dialogActionsClasses } from "@mui/material/DialogActions";
|
|
11648
|
-
import { jsx as
|
|
11777
|
+
import { jsx as jsx109, jsxs as jsxs67 } from "react/jsx-runtime";
|
|
11649
11778
|
var CustomCalendarHeaderRoot = styled3("div")(({ theme }) => ({
|
|
11650
11779
|
display: "flex",
|
|
11651
11780
|
justifyContent: "space-between",
|
|
@@ -11683,9 +11812,9 @@ function CustomCalendarHeader(props) {
|
|
|
11683
11812
|
onViewChange("year");
|
|
11684
11813
|
}
|
|
11685
11814
|
};
|
|
11686
|
-
return /* @__PURE__ */
|
|
11687
|
-
/* @__PURE__ */
|
|
11688
|
-
/* @__PURE__ */
|
|
11815
|
+
return /* @__PURE__ */ jsxs67(CustomCalendarHeaderRoot, { children: [
|
|
11816
|
+
/* @__PURE__ */ jsx109(CustomIconButton, { onClick: selectPreviousMonth, title: "Previous month", size: "small", children: /* @__PURE__ */ jsx109(Icon, { icon: "NavArrowLeft", width: 16 }) }),
|
|
11817
|
+
/* @__PURE__ */ jsx109(
|
|
11689
11818
|
Typography15,
|
|
11690
11819
|
{
|
|
11691
11820
|
variant: "subtitle1",
|
|
@@ -11700,7 +11829,7 @@ function CustomCalendarHeader(props) {
|
|
|
11700
11829
|
children: monthLabel
|
|
11701
11830
|
}
|
|
11702
11831
|
),
|
|
11703
|
-
/* @__PURE__ */
|
|
11832
|
+
/* @__PURE__ */ jsx109(CustomIconButton, { onClick: selectNextMonth, title: "Next month", size: "small", children: /* @__PURE__ */ jsx109(Icon, { icon: "NavArrowRight", width: 16 }) })
|
|
11704
11833
|
] });
|
|
11705
11834
|
}
|
|
11706
11835
|
var localeText = {
|
|
@@ -11708,13 +11837,13 @@ var localeText = {
|
|
|
11708
11837
|
};
|
|
11709
11838
|
var defaultProps = {
|
|
11710
11839
|
date: {
|
|
11711
|
-
openPickerIcon: () => /* @__PURE__ */
|
|
11840
|
+
openPickerIcon: () => /* @__PURE__ */ jsx109(Icon, { icon: "Calendar", sx: { width: 20, height: 20 } }),
|
|
11712
11841
|
calendarHeader: CustomCalendarHeader
|
|
11713
11842
|
},
|
|
11714
11843
|
time: {
|
|
11715
|
-
openPickerIcon: () => /* @__PURE__ */
|
|
11716
|
-
rightArrowIcon: () => /* @__PURE__ */
|
|
11717
|
-
switchViewIcon: () => /* @__PURE__ */
|
|
11844
|
+
openPickerIcon: () => /* @__PURE__ */ jsx109(Icon, { icon: "Clock", sx: { width: 20, height: 20 } }),
|
|
11845
|
+
rightArrowIcon: () => /* @__PURE__ */ jsx109(Icon, { icon: "NavArrowRight" }),
|
|
11846
|
+
switchViewIcon: () => /* @__PURE__ */ jsx109(Icon, { icon: "NavArrowDownSolid" })
|
|
11718
11847
|
}
|
|
11719
11848
|
};
|
|
11720
11849
|
var dateViews = ["year", "month", "day"];
|
|
@@ -12145,18 +12274,18 @@ import "@fontsource/geist/500.css";
|
|
|
12145
12274
|
import "@fontsource/geist/600.css";
|
|
12146
12275
|
import "@fontsource/geist/700.css";
|
|
12147
12276
|
import "./satoshi-4X3TX4PE.css";
|
|
12148
|
-
import { jsx as
|
|
12277
|
+
import { jsx as jsx110, jsxs as jsxs68 } from "react/jsx-runtime";
|
|
12149
12278
|
var ThemeProvider = ({ children }) => {
|
|
12150
12279
|
const settings = useSettings();
|
|
12151
12280
|
const theme = createTheme(settings);
|
|
12152
|
-
return /* @__PURE__ */
|
|
12281
|
+
return /* @__PURE__ */ jsxs68(
|
|
12153
12282
|
MuiThemeProvider,
|
|
12154
12283
|
{
|
|
12155
12284
|
theme,
|
|
12156
12285
|
defaultMode: schemeConfig.defaultMode,
|
|
12157
12286
|
modeStorageKey: schemeConfig.modeStorageKey,
|
|
12158
12287
|
children: [
|
|
12159
|
-
/* @__PURE__ */
|
|
12288
|
+
/* @__PURE__ */ jsx110(CssBaseline, {}),
|
|
12160
12289
|
children
|
|
12161
12290
|
]
|
|
12162
12291
|
}
|
|
@@ -12237,6 +12366,7 @@ export {
|
|
|
12237
12366
|
RHFSwitch,
|
|
12238
12367
|
RHFTextField,
|
|
12239
12368
|
RHFTimePicker,
|
|
12369
|
+
RHFToggleButton,
|
|
12240
12370
|
RHFUpload,
|
|
12241
12371
|
RadioDefault,
|
|
12242
12372
|
RadioSelect,
|