@ceed/ads 1.16.1 → 1.17.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/components/FilterMenu/components/FilterableCheckboxGroup.d.ts +11 -0
- package/dist/components/FilterMenu/types.d.ts +9 -1
- package/dist/components/inputs/FilterMenu.md +20 -0
- package/dist/index.cjs +406 -376
- package/dist/index.js +182 -152
- package/framer/index.js +39 -39
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -4633,8 +4633,8 @@ function FilterableCheckboxGroup(props) {
|
|
|
4633
4633
|
FilterableCheckboxGroup.displayName = "FilterableCheckboxGroup";
|
|
4634
4634
|
|
|
4635
4635
|
// src/components/FilterMenu/FilterMenu.tsx
|
|
4636
|
-
import
|
|
4637
|
-
import { Button as Button2, Stack as
|
|
4636
|
+
import React41, { useCallback as useCallback23 } from "react";
|
|
4637
|
+
import { Button as Button2, Stack as Stack11 } from "@mui/joy";
|
|
4638
4638
|
|
|
4639
4639
|
// src/components/FilterMenu/components/CheckboxGroup.tsx
|
|
4640
4640
|
import React31, { useCallback as useCallback14 } from "react";
|
|
@@ -4670,8 +4670,37 @@ function CheckboxGroup(props) {
|
|
|
4670
4670
|
}
|
|
4671
4671
|
CheckboxGroup.displayName = "CheckboxGroup";
|
|
4672
4672
|
|
|
4673
|
-
// src/components/FilterMenu/components/
|
|
4673
|
+
// src/components/FilterMenu/components/FilterableCheckboxGroup.tsx
|
|
4674
4674
|
import React32, { useCallback as useCallback15 } from "react";
|
|
4675
|
+
import { Stack as Stack3 } from "@mui/joy";
|
|
4676
|
+
function FilterableCheckboxGroup2(props) {
|
|
4677
|
+
const { id, label, options, value, onChange, hidden, placeholder, maxHeight } = props;
|
|
4678
|
+
const [internalValue, setInternalValue] = useControlledState(value, [], onChange);
|
|
4679
|
+
const handleChange = useCallback15(
|
|
4680
|
+
(newValue) => {
|
|
4681
|
+
setInternalValue(newValue);
|
|
4682
|
+
},
|
|
4683
|
+
[setInternalValue]
|
|
4684
|
+
);
|
|
4685
|
+
if (hidden) {
|
|
4686
|
+
return null;
|
|
4687
|
+
}
|
|
4688
|
+
return /* @__PURE__ */ React32.createElement(Stack3, { spacing: 3, role: "group", "aria-labelledby": id }, !!label && /* @__PURE__ */ React32.createElement(Typography_default, { id, level: "title-sm", component: "label", textColor: "text.tertiary" }, label), /* @__PURE__ */ React32.createElement(
|
|
4689
|
+
FilterableCheckboxGroup,
|
|
4690
|
+
{
|
|
4691
|
+
value: internalValue ?? [],
|
|
4692
|
+
onChange: handleChange,
|
|
4693
|
+
options,
|
|
4694
|
+
placeholder,
|
|
4695
|
+
maxHeight,
|
|
4696
|
+
size: "sm"
|
|
4697
|
+
}
|
|
4698
|
+
));
|
|
4699
|
+
}
|
|
4700
|
+
FilterableCheckboxGroup2.displayName = "FilterableCheckboxGroup";
|
|
4701
|
+
|
|
4702
|
+
// src/components/FilterMenu/components/RadioGroup.tsx
|
|
4703
|
+
import React33, { useCallback as useCallback16 } from "react";
|
|
4675
4704
|
|
|
4676
4705
|
// src/components/Radio/Radio.tsx
|
|
4677
4706
|
import { Radio as JoyRadio, RadioGroup as JoyRadioGroup } from "@mui/joy";
|
|
@@ -4684,11 +4713,11 @@ var RadioGroup = MotionRadioGroup;
|
|
|
4684
4713
|
RadioGroup.displayName = "RadioGroup";
|
|
4685
4714
|
|
|
4686
4715
|
// src/components/FilterMenu/components/RadioGroup.tsx
|
|
4687
|
-
import { Stack as
|
|
4716
|
+
import { Stack as Stack4 } from "@mui/joy";
|
|
4688
4717
|
function RadioGroup2(props) {
|
|
4689
4718
|
const { id, label, options, value, onChange, hidden } = props;
|
|
4690
4719
|
const [internalValue, setInternalValue] = useControlledState(value, value ?? "", onChange);
|
|
4691
|
-
const handleRadioChange =
|
|
4720
|
+
const handleRadioChange = useCallback16(
|
|
4692
4721
|
(event) => {
|
|
4693
4722
|
const newValue = event.target.value;
|
|
4694
4723
|
const option = options.find((opt) => opt.value.toString() === newValue);
|
|
@@ -4700,13 +4729,13 @@ function RadioGroup2(props) {
|
|
|
4700
4729
|
if (hidden) {
|
|
4701
4730
|
return null;
|
|
4702
4731
|
}
|
|
4703
|
-
return /* @__PURE__ */
|
|
4732
|
+
return /* @__PURE__ */ React33.createElement(Stack4, { spacing: 3, role: "group", "aria-labelledby": id }, !!label && /* @__PURE__ */ React33.createElement(Stack4, { spacing: 1 }, /* @__PURE__ */ React33.createElement(Typography_default, { id, level: "title-sm", component: "label", textColor: "text.tertiary" }, label)), /* @__PURE__ */ React33.createElement(RadioGroup, { name: id, value: internalValue?.toString(), onChange: handleRadioChange }, options.map((option) => /* @__PURE__ */ React33.createElement(Radio, { key: `${id}-${option.value}`, value: option.value.toString(), label: option.label }))));
|
|
4704
4733
|
}
|
|
4705
4734
|
RadioGroup2.displayName = "RadioGroup";
|
|
4706
4735
|
|
|
4707
4736
|
// src/components/FilterMenu/components/DateRange.tsx
|
|
4708
|
-
import
|
|
4709
|
-
import { Stack as
|
|
4737
|
+
import React34, { useCallback as useCallback17, useMemo as useMemo13, useState as useState11, useEffect as useEffect9 } from "react";
|
|
4738
|
+
import { Stack as Stack5 } from "@mui/joy";
|
|
4710
4739
|
function DateRange(props) {
|
|
4711
4740
|
const {
|
|
4712
4741
|
id,
|
|
@@ -4734,7 +4763,7 @@ function DateRange(props) {
|
|
|
4734
4763
|
],
|
|
4735
4764
|
[]
|
|
4736
4765
|
);
|
|
4737
|
-
const getDateRangeForOption =
|
|
4766
|
+
const getDateRangeForOption = useCallback17(
|
|
4738
4767
|
(option) => {
|
|
4739
4768
|
const now = /* @__PURE__ */ new Date();
|
|
4740
4769
|
const currentYear = now.getFullYear();
|
|
@@ -4773,7 +4802,7 @@ function DateRange(props) {
|
|
|
4773
4802
|
},
|
|
4774
4803
|
[internalValue]
|
|
4775
4804
|
);
|
|
4776
|
-
const determineOptionFromValue =
|
|
4805
|
+
const determineOptionFromValue = useCallback17(
|
|
4777
4806
|
(value2) => {
|
|
4778
4807
|
if (!value2) {
|
|
4779
4808
|
return "all-time";
|
|
@@ -4799,7 +4828,7 @@ function DateRange(props) {
|
|
|
4799
4828
|
const newOption = determineOptionFromValue(internalValue);
|
|
4800
4829
|
setSelectedOption(newOption);
|
|
4801
4830
|
}, [internalValue, determineOptionFromValue]);
|
|
4802
|
-
const handleOptionChange =
|
|
4831
|
+
const handleOptionChange = useCallback17(
|
|
4803
4832
|
(event) => {
|
|
4804
4833
|
const newOption = event.target.value;
|
|
4805
4834
|
setSelectedOption(newOption);
|
|
@@ -4808,7 +4837,7 @@ function DateRange(props) {
|
|
|
4808
4837
|
},
|
|
4809
4838
|
[getDateRangeForOption, setInternalValue]
|
|
4810
4839
|
);
|
|
4811
|
-
const handleCustomDateChange =
|
|
4840
|
+
const handleCustomDateChange = useCallback17(
|
|
4812
4841
|
(event) => {
|
|
4813
4842
|
const dateRangeString = event.target.value;
|
|
4814
4843
|
if (dateRangeString && dateRangeString.includes(" - ")) {
|
|
@@ -4829,7 +4858,7 @@ function DateRange(props) {
|
|
|
4829
4858
|
if (hidden) {
|
|
4830
4859
|
return null;
|
|
4831
4860
|
}
|
|
4832
|
-
return /* @__PURE__ */
|
|
4861
|
+
return /* @__PURE__ */ React34.createElement(Stack5, { spacing: 3, role: "group", "aria-labelledby": id }, !!label && /* @__PURE__ */ React34.createElement(Typography_default, { id, level: "title-sm", component: "label", textColor: "text.tertiary" }, label), /* @__PURE__ */ React34.createElement(RadioGroup, { name: `${id}-options`, value: selectedOption, onChange: handleOptionChange }, dateRangeOptions.map((option) => /* @__PURE__ */ React34.createElement(Radio, { key: `${id}-${option.value}`, value: option.value, label: option.label }))), selectedOption === "custom" && /* @__PURE__ */ React34.createElement(
|
|
4833
4862
|
DateRangePicker,
|
|
4834
4863
|
{
|
|
4835
4864
|
value: customDateRangeValue,
|
|
@@ -4848,12 +4877,12 @@ function DateRange(props) {
|
|
|
4848
4877
|
DateRange.displayName = "DateRange";
|
|
4849
4878
|
|
|
4850
4879
|
// src/components/FilterMenu/components/CurrencyInput.tsx
|
|
4851
|
-
import
|
|
4852
|
-
import { Stack as
|
|
4880
|
+
import React35, { useCallback as useCallback18 } from "react";
|
|
4881
|
+
import { Stack as Stack6 } from "@mui/joy";
|
|
4853
4882
|
function CurrencyInput3(props) {
|
|
4854
4883
|
const { id, label, value, onChange, hidden, max, placeholder, useMinorUnit, currency = "USD" } = props;
|
|
4855
4884
|
const [internalValue, setInternalValue] = useControlledState(value, value, onChange);
|
|
4856
|
-
const handleCurrencyChange =
|
|
4885
|
+
const handleCurrencyChange = useCallback18(
|
|
4857
4886
|
(event) => {
|
|
4858
4887
|
const newValue = event.target.value;
|
|
4859
4888
|
setInternalValue(newValue);
|
|
@@ -4863,7 +4892,7 @@ function CurrencyInput3(props) {
|
|
|
4863
4892
|
if (hidden) {
|
|
4864
4893
|
return null;
|
|
4865
4894
|
}
|
|
4866
|
-
return /* @__PURE__ */
|
|
4895
|
+
return /* @__PURE__ */ React35.createElement(Stack6, { spacing: 3, role: "group", "aria-labelledby": id }, !!label && /* @__PURE__ */ React35.createElement(Typography_default, { id, level: "title-sm", component: "label", textColor: "text.tertiary" }, label), /* @__PURE__ */ React35.createElement(
|
|
4867
4896
|
CurrencyInput,
|
|
4868
4897
|
{
|
|
4869
4898
|
value: internalValue,
|
|
@@ -4879,14 +4908,14 @@ function CurrencyInput3(props) {
|
|
|
4879
4908
|
CurrencyInput3.displayName = "CurrencyInput";
|
|
4880
4909
|
|
|
4881
4910
|
// src/components/FilterMenu/components/CurrencyRange.tsx
|
|
4882
|
-
import
|
|
4883
|
-
import { Stack as
|
|
4911
|
+
import React36, { useCallback as useCallback19 } from "react";
|
|
4912
|
+
import { Stack as Stack7 } from "@mui/joy";
|
|
4884
4913
|
function CurrencyRange(props) {
|
|
4885
4914
|
const { id, label, value, onChange, hidden, max, placeholder, useMinorUnit, currency = "USD" } = props;
|
|
4886
4915
|
const [internalValue, setInternalValue] = useControlledState(value, null, onChange);
|
|
4887
4916
|
const minValue = internalValue?.[0];
|
|
4888
4917
|
const maxValue = internalValue?.[1];
|
|
4889
|
-
const handleMinChange =
|
|
4918
|
+
const handleMinChange = useCallback19(
|
|
4890
4919
|
(event) => {
|
|
4891
4920
|
const newMinValue = event.target.value;
|
|
4892
4921
|
const currentMaxValue = maxValue;
|
|
@@ -4900,7 +4929,7 @@ function CurrencyRange(props) {
|
|
|
4900
4929
|
},
|
|
4901
4930
|
[maxValue, setInternalValue]
|
|
4902
4931
|
);
|
|
4903
|
-
const handleMaxChange =
|
|
4932
|
+
const handleMaxChange = useCallback19(
|
|
4904
4933
|
(event) => {
|
|
4905
4934
|
const newMaxValue = event.target.value;
|
|
4906
4935
|
const currentMinValue = minValue;
|
|
@@ -4917,7 +4946,7 @@ function CurrencyRange(props) {
|
|
|
4917
4946
|
if (hidden) {
|
|
4918
4947
|
return null;
|
|
4919
4948
|
}
|
|
4920
|
-
return /* @__PURE__ */
|
|
4949
|
+
return /* @__PURE__ */ React36.createElement(Stack7, { spacing: 3, role: "group", "aria-labelledby": id }, !!label && /* @__PURE__ */ React36.createElement(Typography_default, { id, level: "title-sm", component: "label", textColor: "text.tertiary" }, label), /* @__PURE__ */ React36.createElement(Stack7, { direction: "row", spacing: 2, alignItems: "flex-end" }, /* @__PURE__ */ React36.createElement(
|
|
4921
4950
|
CurrencyInput,
|
|
4922
4951
|
{
|
|
4923
4952
|
label: "Minimum",
|
|
@@ -4930,7 +4959,7 @@ function CurrencyRange(props) {
|
|
|
4930
4959
|
"aria-labelledby": label ? id : void 0,
|
|
4931
4960
|
"aria-label": "Minimum amount"
|
|
4932
4961
|
}
|
|
4933
|
-
), /* @__PURE__ */
|
|
4962
|
+
), /* @__PURE__ */ React36.createElement(
|
|
4934
4963
|
CurrencyInput,
|
|
4935
4964
|
{
|
|
4936
4965
|
label: "Maximum",
|
|
@@ -4948,20 +4977,20 @@ function CurrencyRange(props) {
|
|
|
4948
4977
|
CurrencyRange.displayName = "CurrencyRange";
|
|
4949
4978
|
|
|
4950
4979
|
// src/components/FilterMenu/components/PercentageInput.tsx
|
|
4951
|
-
import
|
|
4952
|
-
import { Stack as
|
|
4980
|
+
import React38 from "react";
|
|
4981
|
+
import { Stack as Stack8, Typography as Typography2 } from "@mui/joy";
|
|
4953
4982
|
|
|
4954
4983
|
// src/components/PercentageInput/PercentageInput.tsx
|
|
4955
|
-
import
|
|
4984
|
+
import React37, { useCallback as useCallback20, useMemo as useMemo14, useState as useState12 } from "react";
|
|
4956
4985
|
import { NumericFormat as NumericFormat2 } from "react-number-format";
|
|
4957
4986
|
import { styled as styled20, useThemeProps as useThemeProps6 } from "@mui/joy";
|
|
4958
4987
|
var padDecimal = (value, decimalScale) => {
|
|
4959
4988
|
const [integer, decimal = ""] = `${value}`.split(".");
|
|
4960
4989
|
return Number(`${integer}${decimal.padEnd(decimalScale, "0")}`);
|
|
4961
4990
|
};
|
|
4962
|
-
var TextMaskAdapter7 =
|
|
4991
|
+
var TextMaskAdapter7 = React37.forwardRef(function TextMaskAdapter8(props, ref) {
|
|
4963
4992
|
const { onChange, min, max, ...innerProps } = props;
|
|
4964
|
-
return /* @__PURE__ */
|
|
4993
|
+
return /* @__PURE__ */ React37.createElement(
|
|
4965
4994
|
NumericFormat2,
|
|
4966
4995
|
{
|
|
4967
4996
|
...innerProps,
|
|
@@ -4986,7 +5015,7 @@ var PercentageInputRoot = styled20(Input_default, {
|
|
|
4986
5015
|
slot: "Root",
|
|
4987
5016
|
overridesResolver: (props, styles) => styles.root
|
|
4988
5017
|
})({});
|
|
4989
|
-
var PercentageInput =
|
|
5018
|
+
var PercentageInput = React37.forwardRef(
|
|
4990
5019
|
function PercentageInput2(inProps, ref) {
|
|
4991
5020
|
const props = useThemeProps6({ props: inProps, name: "PercentageInput" });
|
|
4992
5021
|
const {
|
|
@@ -5009,7 +5038,7 @@ var PercentageInput = React36.forwardRef(
|
|
|
5009
5038
|
const [_value, setValue] = useControlledState(
|
|
5010
5039
|
props.value,
|
|
5011
5040
|
props.defaultValue,
|
|
5012
|
-
|
|
5041
|
+
useCallback20((value2) => onChange?.({ target: { name, value: value2 } }), [onChange, name])
|
|
5013
5042
|
);
|
|
5014
5043
|
const [internalError, setInternalError] = useState12(
|
|
5015
5044
|
max && _value && _value > max || min && _value && _value < min
|
|
@@ -5020,7 +5049,7 @@ var PercentageInput = React36.forwardRef(
|
|
|
5020
5049
|
}
|
|
5021
5050
|
return _value;
|
|
5022
5051
|
}, [_value, useMinorUnit, maxDecimalScale]);
|
|
5023
|
-
const handleChange =
|
|
5052
|
+
const handleChange = useCallback20(
|
|
5024
5053
|
(event) => {
|
|
5025
5054
|
if (event.target.value === "") {
|
|
5026
5055
|
setValue(void 0);
|
|
@@ -5037,7 +5066,7 @@ var PercentageInput = React36.forwardRef(
|
|
|
5037
5066
|
},
|
|
5038
5067
|
[setValue, useMinorUnit, maxDecimalScale, min, max]
|
|
5039
5068
|
);
|
|
5040
|
-
return /* @__PURE__ */
|
|
5069
|
+
return /* @__PURE__ */ React37.createElement(
|
|
5041
5070
|
PercentageInputRoot,
|
|
5042
5071
|
{
|
|
5043
5072
|
...innerProps,
|
|
@@ -5084,7 +5113,7 @@ var PercentageInput3 = ({
|
|
|
5084
5113
|
if (hidden) {
|
|
5085
5114
|
return null;
|
|
5086
5115
|
}
|
|
5087
|
-
return /* @__PURE__ */
|
|
5116
|
+
return /* @__PURE__ */ React38.createElement(Stack8, { spacing: 3, role: "group", "aria-labelledby": id }, !!label && /* @__PURE__ */ React38.createElement(Typography2, { id, level: "title-sm", component: "label", textColor: "text.tertiary" }, label), /* @__PURE__ */ React38.createElement(
|
|
5088
5117
|
PercentageInput,
|
|
5089
5118
|
{
|
|
5090
5119
|
value: _value,
|
|
@@ -5099,8 +5128,8 @@ var PercentageInput3 = ({
|
|
|
5099
5128
|
};
|
|
5100
5129
|
|
|
5101
5130
|
// src/components/FilterMenu/components/PercentageRange.tsx
|
|
5102
|
-
import
|
|
5103
|
-
import { Stack as
|
|
5131
|
+
import React39, { useCallback as useCallback21 } from "react";
|
|
5132
|
+
import { Stack as Stack9 } from "@mui/joy";
|
|
5104
5133
|
function PercentageRange(props) {
|
|
5105
5134
|
const { id, label, value, onChange, hidden, useMinorUnit, maxDecimalScale, min, max } = props;
|
|
5106
5135
|
const [internalValue, setInternalValue] = useControlledState(
|
|
@@ -5110,7 +5139,7 @@ function PercentageRange(props) {
|
|
|
5110
5139
|
);
|
|
5111
5140
|
const minValue = internalValue?.[0];
|
|
5112
5141
|
const maxValue = internalValue?.[1];
|
|
5113
|
-
const handleMinChange =
|
|
5142
|
+
const handleMinChange = useCallback21(
|
|
5114
5143
|
(event) => {
|
|
5115
5144
|
const newMinValue = event.target.value;
|
|
5116
5145
|
const currentMaxValue = maxValue;
|
|
@@ -5122,7 +5151,7 @@ function PercentageRange(props) {
|
|
|
5122
5151
|
},
|
|
5123
5152
|
[maxValue, setInternalValue]
|
|
5124
5153
|
);
|
|
5125
|
-
const handleMaxChange =
|
|
5154
|
+
const handleMaxChange = useCallback21(
|
|
5126
5155
|
(event) => {
|
|
5127
5156
|
const newMaxValue = event.target.value;
|
|
5128
5157
|
const currentMinValue = minValue;
|
|
@@ -5137,7 +5166,7 @@ function PercentageRange(props) {
|
|
|
5137
5166
|
if (hidden) {
|
|
5138
5167
|
return null;
|
|
5139
5168
|
}
|
|
5140
|
-
return /* @__PURE__ */
|
|
5169
|
+
return /* @__PURE__ */ React39.createElement(Stack9, { spacing: 3, role: "group", "aria-labelledby": id }, !!label && /* @__PURE__ */ React39.createElement(Typography_default, { id, level: "title-sm", component: "label", textColor: "text.tertiary" }, label), /* @__PURE__ */ React39.createElement(Stack9, { direction: "row", spacing: 2, alignItems: "flex-end" }, /* @__PURE__ */ React39.createElement(
|
|
5141
5170
|
PercentageInput,
|
|
5142
5171
|
{
|
|
5143
5172
|
label: "Minimum",
|
|
@@ -5151,7 +5180,7 @@ function PercentageRange(props) {
|
|
|
5151
5180
|
"aria-label": "Minimum percentage",
|
|
5152
5181
|
placeholder: "0%"
|
|
5153
5182
|
}
|
|
5154
|
-
), /* @__PURE__ */
|
|
5183
|
+
), /* @__PURE__ */ React39.createElement(
|
|
5155
5184
|
PercentageInput,
|
|
5156
5185
|
{
|
|
5157
5186
|
label: "Maximum",
|
|
@@ -5170,13 +5199,13 @@ function PercentageRange(props) {
|
|
|
5170
5199
|
PercentageRange.displayName = "PercentageRange";
|
|
5171
5200
|
|
|
5172
5201
|
// src/components/FilterMenu/components/Autocomplete.tsx
|
|
5173
|
-
import
|
|
5174
|
-
import { Stack as
|
|
5202
|
+
import React40, { useCallback as useCallback22 } from "react";
|
|
5203
|
+
import { Stack as Stack10 } from "@mui/joy";
|
|
5175
5204
|
function Autocomplete2(props) {
|
|
5176
5205
|
const { id, label, value, onChange, options, multiple, hidden, placeholder } = props;
|
|
5177
5206
|
const [internalValue, setInternalValue] = useControlledState(value, void 0, onChange);
|
|
5178
5207
|
const autocompleteValue = typeof internalValue === "string" || typeof internalValue === "number" ? String(internalValue) : void 0;
|
|
5179
|
-
const handleChange =
|
|
5208
|
+
const handleChange = useCallback22(
|
|
5180
5209
|
(event) => {
|
|
5181
5210
|
const val = event.target.value;
|
|
5182
5211
|
if (val) {
|
|
@@ -5191,7 +5220,7 @@ function Autocomplete2(props) {
|
|
|
5191
5220
|
if (hidden) {
|
|
5192
5221
|
return null;
|
|
5193
5222
|
}
|
|
5194
|
-
return /* @__PURE__ */
|
|
5223
|
+
return /* @__PURE__ */ React40.createElement(Stack10, { spacing: 3, role: "group", "aria-labelledby": id }, !!label && /* @__PURE__ */ React40.createElement(Typography_default, { id, level: "title-sm", component: "label", textColor: "text.tertiary" }, label), /* @__PURE__ */ React40.createElement(
|
|
5195
5224
|
Autocomplete,
|
|
5196
5225
|
{
|
|
5197
5226
|
value: autocompleteValue,
|
|
@@ -5208,6 +5237,7 @@ Autocomplete2.displayName = "Autocomplete";
|
|
|
5208
5237
|
// src/components/FilterMenu/FilterMenu.tsx
|
|
5209
5238
|
var componentMap = {
|
|
5210
5239
|
"checkbox-group": CheckboxGroup,
|
|
5240
|
+
"filterable-checkbox-group": FilterableCheckboxGroup2,
|
|
5211
5241
|
"radio-group": RadioGroup2,
|
|
5212
5242
|
"date-range": DateRange,
|
|
5213
5243
|
"currency-input": CurrencyInput3,
|
|
@@ -5224,7 +5254,7 @@ function FilterMenu(props) {
|
|
|
5224
5254
|
void 0
|
|
5225
5255
|
// onChange는 Apply 버튼에서만 호출
|
|
5226
5256
|
);
|
|
5227
|
-
const handleFilterChange =
|
|
5257
|
+
const handleFilterChange = useCallback23(
|
|
5228
5258
|
(filterId, value) => {
|
|
5229
5259
|
setInternalValues((prev) => ({
|
|
5230
5260
|
...prev,
|
|
@@ -5233,17 +5263,17 @@ function FilterMenu(props) {
|
|
|
5233
5263
|
},
|
|
5234
5264
|
[setInternalValues]
|
|
5235
5265
|
);
|
|
5236
|
-
const handleApply =
|
|
5266
|
+
const handleApply = useCallback23(() => {
|
|
5237
5267
|
onChange?.(internalValues);
|
|
5238
5268
|
onClose?.();
|
|
5239
5269
|
}, [onChange, onClose, internalValues]);
|
|
5240
|
-
const handleClear =
|
|
5270
|
+
const handleClear = useCallback23(() => {
|
|
5241
5271
|
const clearedValues = resetValues || {};
|
|
5242
5272
|
setInternalValues(clearedValues);
|
|
5243
5273
|
onChange?.(clearedValues);
|
|
5244
5274
|
onClose?.();
|
|
5245
5275
|
}, [resetValues, setInternalValues, onChange, onClose]);
|
|
5246
|
-
return /* @__PURE__ */
|
|
5276
|
+
return /* @__PURE__ */ React41.createElement(
|
|
5247
5277
|
ModalDialog,
|
|
5248
5278
|
{
|
|
5249
5279
|
sx: {
|
|
@@ -5253,9 +5283,9 @@ function FilterMenu(props) {
|
|
|
5253
5283
|
top: "initial"
|
|
5254
5284
|
}
|
|
5255
5285
|
},
|
|
5256
|
-
/* @__PURE__ */
|
|
5286
|
+
/* @__PURE__ */ React41.createElement(DialogContent, { sx: { paddingTop: 5 } }, /* @__PURE__ */ React41.createElement(Stack11, { spacing: 6 }, filters?.map((filter) => {
|
|
5257
5287
|
const FilterComponent = componentMap[filter.type];
|
|
5258
|
-
return FilterComponent ? /* @__PURE__ */
|
|
5288
|
+
return FilterComponent ? /* @__PURE__ */ React41.createElement(
|
|
5259
5289
|
FilterComponent,
|
|
5260
5290
|
{
|
|
5261
5291
|
key: filter.id,
|
|
@@ -5267,13 +5297,13 @@ function FilterMenu(props) {
|
|
|
5267
5297
|
}
|
|
5268
5298
|
) : null;
|
|
5269
5299
|
}))),
|
|
5270
|
-
/* @__PURE__ */
|
|
5300
|
+
/* @__PURE__ */ React41.createElement(DialogActions, { sx: { justifyContent: "space-between" } }, useClear && filters?.length === 1 && /* @__PURE__ */ React41.createElement(Button2, { variant: "plain", color: "neutral", size: "md", onClick: handleClear }, "Clear"), useReset && !useClear && /* @__PURE__ */ React41.createElement(Button2, { variant: "plain", color: "neutral", size: "md", onClick: handleClear }, "Reset"), /* @__PURE__ */ React41.createElement(Button2, { variant: "solid", color: "primary", size: "md", onClick: handleApply }, "Apply"))
|
|
5271
5301
|
);
|
|
5272
5302
|
}
|
|
5273
5303
|
FilterMenu.displayName = "FilterMenu";
|
|
5274
5304
|
|
|
5275
5305
|
// src/components/Uploader/Uploader.tsx
|
|
5276
|
-
import
|
|
5306
|
+
import React42, { useCallback as useCallback24, useEffect as useEffect10, useMemo as useMemo15, useRef as useRef9, useState as useState13 } from "react";
|
|
5277
5307
|
import { styled as styled21, Input as Input2 } from "@mui/joy";
|
|
5278
5308
|
import MuiFileUploadIcon from "@mui/icons-material/CloudUploadRounded";
|
|
5279
5309
|
import MuiUploadFileIcon from "@mui/icons-material/UploadFileRounded";
|
|
@@ -5350,7 +5380,7 @@ var getFileSize = (n) => {
|
|
|
5350
5380
|
};
|
|
5351
5381
|
var Preview = (props) => {
|
|
5352
5382
|
const { files, uploaded, onDelete } = props;
|
|
5353
|
-
return /* @__PURE__ */
|
|
5383
|
+
return /* @__PURE__ */ React42.createElement(PreviewRoot, { gap: 1 }, [...uploaded, ...files].map((file) => /* @__PURE__ */ React42.createElement(UploadCard, { key: file.name, size: "sm", color: "neutral" }, /* @__PURE__ */ React42.createElement(Stack_default, { direction: "row", alignItems: "center", gap: 2 }, /* @__PURE__ */ React42.createElement(UploadFileIcon, null), /* @__PURE__ */ React42.createElement(Stack_default, { flex: "1", sx: { overflow: "hidden" } }, /* @__PURE__ */ React42.createElement(
|
|
5354
5384
|
Typography_default,
|
|
5355
5385
|
{
|
|
5356
5386
|
level: "body-sm",
|
|
@@ -5362,7 +5392,7 @@ var Preview = (props) => {
|
|
|
5362
5392
|
}
|
|
5363
5393
|
},
|
|
5364
5394
|
file.name
|
|
5365
|
-
), !!file.size && /* @__PURE__ */
|
|
5395
|
+
), !!file.size && /* @__PURE__ */ React42.createElement(Typography_default, { level: "body-xs", fontWeight: "300", lineHeight: "1.33", textColor: "text.tertiary" }, getFileSize(file.size))), /* @__PURE__ */ React42.createElement(IconButton_default, { onClick: () => onDelete?.(file) }, /* @__PURE__ */ React42.createElement(ClearIcon2, null))))));
|
|
5366
5396
|
};
|
|
5367
5397
|
var UploaderRoot = styled21(Stack_default, {
|
|
5368
5398
|
name: "Uploader",
|
|
@@ -5405,7 +5435,7 @@ var UploaderIcon = styled21(MuiFileUploadIcon, {
|
|
|
5405
5435
|
}
|
|
5406
5436
|
})
|
|
5407
5437
|
);
|
|
5408
|
-
var Uploader =
|
|
5438
|
+
var Uploader = React42.memo(
|
|
5409
5439
|
(props) => {
|
|
5410
5440
|
const {
|
|
5411
5441
|
accept,
|
|
@@ -5473,7 +5503,7 @@ var Uploader = React41.memo(
|
|
|
5473
5503
|
() => !maxCount || maxCount && [...uploaded, ...files].length !== maxCount,
|
|
5474
5504
|
[files, maxCount, uploaded]
|
|
5475
5505
|
);
|
|
5476
|
-
const addFiles =
|
|
5506
|
+
const addFiles = useCallback24(
|
|
5477
5507
|
(uploads) => {
|
|
5478
5508
|
try {
|
|
5479
5509
|
const types = parsedAccepts.map((type) => type.replace(".", "")) || [];
|
|
@@ -5565,14 +5595,14 @@ var Uploader = React41.memo(
|
|
|
5565
5595
|
}
|
|
5566
5596
|
}
|
|
5567
5597
|
}, [inputRef, files, minCount]);
|
|
5568
|
-
const handleFileChanged =
|
|
5598
|
+
const handleFileChanged = useCallback24(
|
|
5569
5599
|
(event) => {
|
|
5570
5600
|
const files2 = Array.from(event.target.files || []);
|
|
5571
5601
|
addFiles(files2);
|
|
5572
5602
|
},
|
|
5573
5603
|
[addFiles]
|
|
5574
5604
|
);
|
|
5575
|
-
const handleDeleteFile =
|
|
5605
|
+
const handleDeleteFile = useCallback24(
|
|
5576
5606
|
(deletedFile) => {
|
|
5577
5607
|
if (deletedFile instanceof File) {
|
|
5578
5608
|
setFiles((current) => {
|
|
@@ -5592,10 +5622,10 @@ var Uploader = React41.memo(
|
|
|
5592
5622
|
},
|
|
5593
5623
|
[name, onChange, onDelete]
|
|
5594
5624
|
);
|
|
5595
|
-
const handleUploaderButtonClick =
|
|
5625
|
+
const handleUploaderButtonClick = useCallback24(() => {
|
|
5596
5626
|
inputRef.current?.click();
|
|
5597
5627
|
}, []);
|
|
5598
|
-
const uploader = /* @__PURE__ */
|
|
5628
|
+
const uploader = /* @__PURE__ */ React42.createElement(
|
|
5599
5629
|
FileDropZone,
|
|
5600
5630
|
{
|
|
5601
5631
|
state: previewState,
|
|
@@ -5604,8 +5634,8 @@ var Uploader = React41.memo(
|
|
|
5604
5634
|
ref: dropZoneRef,
|
|
5605
5635
|
onClick: handleUploaderButtonClick
|
|
5606
5636
|
},
|
|
5607
|
-
/* @__PURE__ */
|
|
5608
|
-
/* @__PURE__ */
|
|
5637
|
+
/* @__PURE__ */ React42.createElement(Stack_default, { alignItems: "center", gap: 1 }, /* @__PURE__ */ React42.createElement(UploaderIcon, { state: previewState, error: !!(error || errorText), disabled })),
|
|
5638
|
+
/* @__PURE__ */ React42.createElement(
|
|
5609
5639
|
VisuallyHiddenInput,
|
|
5610
5640
|
{
|
|
5611
5641
|
disabled,
|
|
@@ -5628,7 +5658,7 @@ var Uploader = React41.memo(
|
|
|
5628
5658
|
}
|
|
5629
5659
|
)
|
|
5630
5660
|
);
|
|
5631
|
-
return /* @__PURE__ */
|
|
5661
|
+
return /* @__PURE__ */ React42.createElement(UploaderRoot, null, showDropZone && /* @__PURE__ */ React42.createElement(FormControl_default, { size, error: !!(error || errorText), disabled, required: !!minCount }, label && /* @__PURE__ */ React42.createElement(FormLabel_default, null, label), uploader, /* @__PURE__ */ React42.createElement(FormHelperText_default, null, /* @__PURE__ */ React42.createElement(Stack_default, null, errorText && /* @__PURE__ */ React42.createElement("div", null, errorText), /* @__PURE__ */ React42.createElement("div", null, helperText)))), [...uploaded, ...files].length > 0 && /* @__PURE__ */ React42.createElement(Preview, { files, uploaded, onDelete: handleDeleteFile }));
|
|
5632
5662
|
}
|
|
5633
5663
|
);
|
|
5634
5664
|
Uploader.displayName = "Uploader";
|
|
@@ -5637,7 +5667,7 @@ Uploader.displayName = "Uploader";
|
|
|
5637
5667
|
import { Grid } from "@mui/joy";
|
|
5638
5668
|
|
|
5639
5669
|
// src/components/IconMenuButton/IconMenuButton.tsx
|
|
5640
|
-
import
|
|
5670
|
+
import React43 from "react";
|
|
5641
5671
|
import { MenuButton as JoyMenuButton2, IconButton as JoyIconButton2 } from "@mui/joy";
|
|
5642
5672
|
function IconMenuButton(props) {
|
|
5643
5673
|
const {
|
|
@@ -5651,7 +5681,7 @@ function IconMenuButton(props) {
|
|
|
5651
5681
|
placement = "bottom"
|
|
5652
5682
|
} = props;
|
|
5653
5683
|
if (!items.length) {
|
|
5654
|
-
return /* @__PURE__ */
|
|
5684
|
+
return /* @__PURE__ */ React43.createElement(
|
|
5655
5685
|
JoyIconButton2,
|
|
5656
5686
|
{
|
|
5657
5687
|
component: props.buttonComponent ?? "button",
|
|
@@ -5665,7 +5695,7 @@ function IconMenuButton(props) {
|
|
|
5665
5695
|
icon
|
|
5666
5696
|
);
|
|
5667
5697
|
}
|
|
5668
|
-
return /* @__PURE__ */
|
|
5698
|
+
return /* @__PURE__ */ React43.createElement(Dropdown_default, null, /* @__PURE__ */ React43.createElement(
|
|
5669
5699
|
JoyMenuButton2,
|
|
5670
5700
|
{
|
|
5671
5701
|
slots: { root: JoyIconButton2 },
|
|
@@ -5682,12 +5712,12 @@ function IconMenuButton(props) {
|
|
|
5682
5712
|
}
|
|
5683
5713
|
},
|
|
5684
5714
|
icon
|
|
5685
|
-
), /* @__PURE__ */
|
|
5715
|
+
), /* @__PURE__ */ React43.createElement(Menu, { placement, size }, items.map((i) => /* @__PURE__ */ React43.createElement(MenuItem, { key: i.text, component: i.component, ...i.componentProps ?? {} }, i.text))));
|
|
5686
5716
|
}
|
|
5687
5717
|
IconMenuButton.displayName = "IconMenuButton";
|
|
5688
5718
|
|
|
5689
5719
|
// src/components/Markdown/Markdown.tsx
|
|
5690
|
-
import
|
|
5720
|
+
import React44, { lazy, Suspense, useEffect as useEffect11, useState as useState14 } from "react";
|
|
5691
5721
|
import { Skeleton } from "@mui/joy";
|
|
5692
5722
|
import { Link as Link2 } from "@mui/joy";
|
|
5693
5723
|
import remarkGfm from "remark-gfm";
|
|
@@ -5716,12 +5746,12 @@ var Markdown = (props) => {
|
|
|
5716
5746
|
if (!rehypeAccent2) {
|
|
5717
5747
|
return null;
|
|
5718
5748
|
}
|
|
5719
|
-
return /* @__PURE__ */
|
|
5749
|
+
return /* @__PURE__ */ React44.createElement(Typography, { component: "div", color, textColor, level: defaultLevel, ...innerProps }, /* @__PURE__ */ React44.createElement(
|
|
5720
5750
|
Suspense,
|
|
5721
5751
|
{
|
|
5722
|
-
fallback: fallback || /* @__PURE__ */
|
|
5752
|
+
fallback: fallback || /* @__PURE__ */ React44.createElement(Typography, null, /* @__PURE__ */ React44.createElement(Skeleton, null, content || ""))
|
|
5723
5753
|
},
|
|
5724
|
-
/* @__PURE__ */
|
|
5754
|
+
/* @__PURE__ */ React44.createElement(
|
|
5725
5755
|
LazyReactMarkdown,
|
|
5726
5756
|
{
|
|
5727
5757
|
...markdownOptions,
|
|
@@ -5729,15 +5759,15 @@ var Markdown = (props) => {
|
|
|
5729
5759
|
rehypePlugins: [[rehypeAccent2, { accentColor }]],
|
|
5730
5760
|
remarkPlugins: [remarkGfm],
|
|
5731
5761
|
components: {
|
|
5732
|
-
h1: ({ children }) => /* @__PURE__ */
|
|
5733
|
-
h2: ({ children }) => /* @__PURE__ */
|
|
5734
|
-
h3: ({ children }) => /* @__PURE__ */
|
|
5735
|
-
h4: ({ children }) => /* @__PURE__ */
|
|
5736
|
-
p: ({ children, node }) => /* @__PURE__ */
|
|
5737
|
-
a: ({ children, href }) => /* @__PURE__ */
|
|
5738
|
-
hr: () => /* @__PURE__ */
|
|
5739
|
-
b: ({ children }) => /* @__PURE__ */
|
|
5740
|
-
strong: ({ children }) => /* @__PURE__ */
|
|
5762
|
+
h1: ({ children }) => /* @__PURE__ */ React44.createElement(Typography, { color, textColor, level: "h1" }, children),
|
|
5763
|
+
h2: ({ children }) => /* @__PURE__ */ React44.createElement(Typography, { color, textColor, level: "h2" }, children),
|
|
5764
|
+
h3: ({ children }) => /* @__PURE__ */ React44.createElement(Typography, { color, textColor, level: "h3" }, children),
|
|
5765
|
+
h4: ({ children }) => /* @__PURE__ */ React44.createElement(Typography, { color, textColor, level: "h4" }, children),
|
|
5766
|
+
p: ({ children, node }) => /* @__PURE__ */ React44.createElement(Typography, { color, textColor, level: defaultLevel, ...node?.properties }, children),
|
|
5767
|
+
a: ({ children, href }) => /* @__PURE__ */ React44.createElement(Link2, { href, target: defaultLinkAction }, children),
|
|
5768
|
+
hr: () => /* @__PURE__ */ React44.createElement(Divider, null),
|
|
5769
|
+
b: ({ children }) => /* @__PURE__ */ React44.createElement(Typography, { fontWeight: boldFontWeight }, children),
|
|
5770
|
+
strong: ({ children }) => /* @__PURE__ */ React44.createElement(Typography, { fontWeight: boldFontWeight }, children),
|
|
5741
5771
|
...markdownOptions?.components
|
|
5742
5772
|
}
|
|
5743
5773
|
}
|
|
@@ -5747,7 +5777,7 @@ var Markdown = (props) => {
|
|
|
5747
5777
|
Markdown.displayName = "Markdown";
|
|
5748
5778
|
|
|
5749
5779
|
// src/components/MenuButton/MenuButton.tsx
|
|
5750
|
-
import
|
|
5780
|
+
import React45 from "react";
|
|
5751
5781
|
import { MenuButton as JoyMenuButton3, Button as JoyButton2 } from "@mui/joy";
|
|
5752
5782
|
import ExpandMoreIcon from "@mui/icons-material/ExpandMore";
|
|
5753
5783
|
function MenuButton(props) {
|
|
@@ -5765,7 +5795,7 @@ function MenuButton(props) {
|
|
|
5765
5795
|
placement = "bottom"
|
|
5766
5796
|
} = props;
|
|
5767
5797
|
if (!items.length) {
|
|
5768
|
-
return /* @__PURE__ */
|
|
5798
|
+
return /* @__PURE__ */ React45.createElement(
|
|
5769
5799
|
JoyButton2,
|
|
5770
5800
|
{
|
|
5771
5801
|
component: props.buttonComponent ?? "button",
|
|
@@ -5776,12 +5806,12 @@ function MenuButton(props) {
|
|
|
5776
5806
|
loading,
|
|
5777
5807
|
startDecorator,
|
|
5778
5808
|
...props.buttonComponentProps ?? {},
|
|
5779
|
-
endDecorator: showIcon ? /* @__PURE__ */
|
|
5809
|
+
endDecorator: showIcon ? /* @__PURE__ */ React45.createElement(React45.Fragment, null, endDecorator, /* @__PURE__ */ React45.createElement(ExpandMoreIcon, null)) : /* @__PURE__ */ React45.createElement(React45.Fragment, null, endDecorator)
|
|
5780
5810
|
},
|
|
5781
5811
|
buttonText
|
|
5782
5812
|
);
|
|
5783
5813
|
}
|
|
5784
|
-
return /* @__PURE__ */
|
|
5814
|
+
return /* @__PURE__ */ React45.createElement(Dropdown_default, null, /* @__PURE__ */ React45.createElement(
|
|
5785
5815
|
JoyMenuButton3,
|
|
5786
5816
|
{
|
|
5787
5817
|
component: props.buttonComponent ?? "button",
|
|
@@ -5792,15 +5822,15 @@ function MenuButton(props) {
|
|
|
5792
5822
|
loading,
|
|
5793
5823
|
startDecorator,
|
|
5794
5824
|
...props.buttonComponentProps ?? {},
|
|
5795
|
-
endDecorator: showIcon ? /* @__PURE__ */
|
|
5825
|
+
endDecorator: showIcon ? /* @__PURE__ */ React45.createElement(React45.Fragment, null, endDecorator, /* @__PURE__ */ React45.createElement(ExpandMoreIcon, null)) : /* @__PURE__ */ React45.createElement(React45.Fragment, null, endDecorator)
|
|
5796
5826
|
},
|
|
5797
5827
|
buttonText
|
|
5798
|
-
), /* @__PURE__ */
|
|
5828
|
+
), /* @__PURE__ */ React45.createElement(Menu, { placement, size }, items.map((i) => /* @__PURE__ */ React45.createElement(MenuItem, { key: i.text, component: i.component, ...i.componentProps ?? {} }, i.text))));
|
|
5799
5829
|
}
|
|
5800
5830
|
MenuButton.displayName = "MenuButton";
|
|
5801
5831
|
|
|
5802
5832
|
// src/components/MonthPicker/MonthPicker.tsx
|
|
5803
|
-
import
|
|
5833
|
+
import React46, { forwardRef as forwardRef9, useCallback as useCallback25, useEffect as useEffect12, useImperativeHandle as useImperativeHandle4, useRef as useRef10, useState as useState15 } from "react";
|
|
5804
5834
|
import CalendarTodayIcon3 from "@mui/icons-material/CalendarToday";
|
|
5805
5835
|
import { styled as styled22, useThemeProps as useThemeProps7 } from "@mui/joy";
|
|
5806
5836
|
import { FocusTrap as FocusTrap3, ClickAwayListener as ClickAwayListener3, Popper as Popper4 } from "@mui/base";
|
|
@@ -5887,9 +5917,9 @@ var MonthPicker = forwardRef9((inProps, ref) => {
|
|
|
5887
5917
|
const [value, setValue, isControlled] = useControlledState(
|
|
5888
5918
|
props.value,
|
|
5889
5919
|
props.defaultValue || "",
|
|
5890
|
-
|
|
5920
|
+
useCallback25((value2) => onChange?.({ target: { name: props.name, value: value2 } }), [props.name, onChange])
|
|
5891
5921
|
);
|
|
5892
|
-
const getFormattedDisplayValue =
|
|
5922
|
+
const getFormattedDisplayValue = useCallback25(
|
|
5893
5923
|
(inputValue) => {
|
|
5894
5924
|
if (!inputValue) return "";
|
|
5895
5925
|
try {
|
|
@@ -5912,7 +5942,7 @@ var MonthPicker = forwardRef9((inProps, ref) => {
|
|
|
5912
5942
|
useEffect12(() => {
|
|
5913
5943
|
setDisplayValue(getFormattedDisplayValue(value));
|
|
5914
5944
|
}, [value, getFormattedDisplayValue]);
|
|
5915
|
-
const handleChange =
|
|
5945
|
+
const handleChange = useCallback25(
|
|
5916
5946
|
(event) => {
|
|
5917
5947
|
const newValue = event.target.value;
|
|
5918
5948
|
setValue(newValue);
|
|
@@ -5922,21 +5952,21 @@ var MonthPicker = forwardRef9((inProps, ref) => {
|
|
|
5922
5952
|
},
|
|
5923
5953
|
[setValue, getFormattedDisplayValue, isControlled]
|
|
5924
5954
|
);
|
|
5925
|
-
const handleCalendarToggle =
|
|
5955
|
+
const handleCalendarToggle = useCallback25(
|
|
5926
5956
|
(event) => {
|
|
5927
5957
|
setAnchorEl(anchorEl ? null : event.currentTarget);
|
|
5928
5958
|
innerRef.current?.focus();
|
|
5929
5959
|
},
|
|
5930
5960
|
[anchorEl, setAnchorEl, innerRef]
|
|
5931
5961
|
);
|
|
5932
|
-
const handleInputMouseDown =
|
|
5962
|
+
const handleInputMouseDown = useCallback25(
|
|
5933
5963
|
(event) => {
|
|
5934
5964
|
event.preventDefault();
|
|
5935
5965
|
buttonRef.current?.focus();
|
|
5936
5966
|
},
|
|
5937
5967
|
[buttonRef]
|
|
5938
5968
|
);
|
|
5939
|
-
return /* @__PURE__ */
|
|
5969
|
+
return /* @__PURE__ */ React46.createElement(MonthPickerRoot, null, /* @__PURE__ */ React46.createElement(FocusTrap3, { open: true }, /* @__PURE__ */ React46.createElement(React46.Fragment, null, /* @__PURE__ */ React46.createElement(
|
|
5940
5970
|
Input_default,
|
|
5941
5971
|
{
|
|
5942
5972
|
...innerProps,
|
|
@@ -5966,7 +5996,7 @@ var MonthPicker = forwardRef9((inProps, ref) => {
|
|
|
5966
5996
|
// NOTE: placeholder char 를 텍스트로 표시하므로 동일한 너비를 가지는 mono font 를 사용해야 이질감이 없다.
|
|
5967
5997
|
fontFamily: "monospace"
|
|
5968
5998
|
},
|
|
5969
|
-
endDecorator: /* @__PURE__ */
|
|
5999
|
+
endDecorator: /* @__PURE__ */ React46.createElement(
|
|
5970
6000
|
IconButton_default,
|
|
5971
6001
|
{
|
|
5972
6002
|
ref: buttonRef,
|
|
@@ -5978,12 +6008,12 @@ var MonthPicker = forwardRef9((inProps, ref) => {
|
|
|
5978
6008
|
"aria-expanded": open,
|
|
5979
6009
|
disabled
|
|
5980
6010
|
},
|
|
5981
|
-
/* @__PURE__ */
|
|
6011
|
+
/* @__PURE__ */ React46.createElement(CalendarTodayIcon3, null)
|
|
5982
6012
|
),
|
|
5983
6013
|
label,
|
|
5984
6014
|
helperText
|
|
5985
6015
|
}
|
|
5986
|
-
), open && /* @__PURE__ */
|
|
6016
|
+
), open && /* @__PURE__ */ React46.createElement(ClickAwayListener3, { onClickAway: () => setAnchorEl(null) }, /* @__PURE__ */ React46.createElement(
|
|
5987
6017
|
StyledPopper3,
|
|
5988
6018
|
{
|
|
5989
6019
|
id: "month-picker-popper",
|
|
@@ -6002,7 +6032,7 @@ var MonthPicker = forwardRef9((inProps, ref) => {
|
|
|
6002
6032
|
"aria-label": "Calendar Tooltip",
|
|
6003
6033
|
"aria-expanded": open
|
|
6004
6034
|
},
|
|
6005
|
-
/* @__PURE__ */
|
|
6035
|
+
/* @__PURE__ */ React46.createElement(CalendarSheet3, { tabIndex: -1, role: "presentation" }, /* @__PURE__ */ React46.createElement(
|
|
6006
6036
|
Calendar_default,
|
|
6007
6037
|
{
|
|
6008
6038
|
view: "month",
|
|
@@ -6023,14 +6053,14 @@ var MonthPicker = forwardRef9((inProps, ref) => {
|
|
|
6023
6053
|
disablePast,
|
|
6024
6054
|
locale
|
|
6025
6055
|
}
|
|
6026
|
-
), /* @__PURE__ */
|
|
6056
|
+
), /* @__PURE__ */ React46.createElement(
|
|
6027
6057
|
DialogActions_default,
|
|
6028
6058
|
{
|
|
6029
6059
|
sx: {
|
|
6030
6060
|
p: 1
|
|
6031
6061
|
}
|
|
6032
6062
|
},
|
|
6033
|
-
/* @__PURE__ */
|
|
6063
|
+
/* @__PURE__ */ React46.createElement(
|
|
6034
6064
|
Button_default,
|
|
6035
6065
|
{
|
|
6036
6066
|
size,
|
|
@@ -6053,7 +6083,7 @@ var MonthPicker = forwardRef9((inProps, ref) => {
|
|
|
6053
6083
|
});
|
|
6054
6084
|
|
|
6055
6085
|
// src/components/MonthRangePicker/MonthRangePicker.tsx
|
|
6056
|
-
import
|
|
6086
|
+
import React47, { forwardRef as forwardRef10, useCallback as useCallback26, useEffect as useEffect13, useImperativeHandle as useImperativeHandle5, useMemo as useMemo16, useRef as useRef11, useState as useState16 } from "react";
|
|
6057
6087
|
import { IMaskInput as IMaskInput3, IMask as IMask3 } from "react-imask";
|
|
6058
6088
|
import CalendarTodayIcon4 from "@mui/icons-material/CalendarToday";
|
|
6059
6089
|
import { styled as styled23, useThemeProps as useThemeProps8 } from "@mui/joy";
|
|
@@ -6111,9 +6141,9 @@ var parseDates2 = (str) => {
|
|
|
6111
6141
|
var formatToPattern3 = (format) => {
|
|
6112
6142
|
return `${format} - ${format}`.replace(/YYYY/g, "Y").replace(/MM/g, "m").replace(/[^YMm\s]/g, (match) => `${match}\``);
|
|
6113
6143
|
};
|
|
6114
|
-
var TextMaskAdapter9 =
|
|
6144
|
+
var TextMaskAdapter9 = React47.forwardRef(function TextMaskAdapter10(props, ref) {
|
|
6115
6145
|
const { onChange, format, ...other } = props;
|
|
6116
|
-
return /* @__PURE__ */
|
|
6146
|
+
return /* @__PURE__ */ React47.createElement(
|
|
6117
6147
|
IMaskInput3,
|
|
6118
6148
|
{
|
|
6119
6149
|
...other,
|
|
@@ -6165,7 +6195,7 @@ var MonthRangePicker = forwardRef10((inProps, ref) => {
|
|
|
6165
6195
|
const [value, setValue] = useControlledState(
|
|
6166
6196
|
props.value,
|
|
6167
6197
|
props.defaultValue || "",
|
|
6168
|
-
|
|
6198
|
+
useCallback26((value2) => onChange?.({ target: { name: props.name, value: value2 } }), [props.name, onChange])
|
|
6169
6199
|
);
|
|
6170
6200
|
const [anchorEl, setAnchorEl] = useState16(null);
|
|
6171
6201
|
const open = Boolean(anchorEl);
|
|
@@ -6176,20 +6206,20 @@ var MonthRangePicker = forwardRef10((inProps, ref) => {
|
|
|
6176
6206
|
}
|
|
6177
6207
|
}, [anchorEl, innerRef]);
|
|
6178
6208
|
useImperativeHandle5(ref, () => innerRef.current, [innerRef]);
|
|
6179
|
-
const handleChange =
|
|
6209
|
+
const handleChange = useCallback26(
|
|
6180
6210
|
(event) => {
|
|
6181
6211
|
setValue(event.target.value);
|
|
6182
6212
|
},
|
|
6183
6213
|
[setValue]
|
|
6184
6214
|
);
|
|
6185
|
-
const handleCalendarToggle =
|
|
6215
|
+
const handleCalendarToggle = useCallback26(
|
|
6186
6216
|
(event) => {
|
|
6187
6217
|
setAnchorEl(anchorEl ? null : event.currentTarget);
|
|
6188
6218
|
innerRef.current?.focus();
|
|
6189
6219
|
},
|
|
6190
6220
|
[anchorEl, setAnchorEl, innerRef]
|
|
6191
6221
|
);
|
|
6192
|
-
const handleCalendarChange =
|
|
6222
|
+
const handleCalendarChange = useCallback26(
|
|
6193
6223
|
([date1, date2]) => {
|
|
6194
6224
|
if (!date1 || !date2) return;
|
|
6195
6225
|
setValue(formatValueString4([date1, date2], format));
|
|
@@ -6197,7 +6227,7 @@ var MonthRangePicker = forwardRef10((inProps, ref) => {
|
|
|
6197
6227
|
},
|
|
6198
6228
|
[setValue, setAnchorEl, format]
|
|
6199
6229
|
);
|
|
6200
|
-
return /* @__PURE__ */
|
|
6230
|
+
return /* @__PURE__ */ React47.createElement(MonthRangePickerRoot, null, /* @__PURE__ */ React47.createElement(FocusTrap4, { open: true }, /* @__PURE__ */ React47.createElement(React47.Fragment, null, /* @__PURE__ */ React47.createElement(
|
|
6201
6231
|
Input_default,
|
|
6202
6232
|
{
|
|
6203
6233
|
...innerProps,
|
|
@@ -6219,7 +6249,7 @@ var MonthRangePicker = forwardRef10((inProps, ref) => {
|
|
|
6219
6249
|
// NOTE: placeholder char 를 텍스트로 표시하므로 동일한 너비를 가지는 mono font 를 사용해야 이질감이 없다.
|
|
6220
6250
|
fontFamily: "monospace"
|
|
6221
6251
|
},
|
|
6222
|
-
endDecorator: /* @__PURE__ */
|
|
6252
|
+
endDecorator: /* @__PURE__ */ React47.createElement(
|
|
6223
6253
|
IconButton_default,
|
|
6224
6254
|
{
|
|
6225
6255
|
variant: "plain",
|
|
@@ -6229,12 +6259,12 @@ var MonthRangePicker = forwardRef10((inProps, ref) => {
|
|
|
6229
6259
|
"aria-haspopup": "dialog",
|
|
6230
6260
|
"aria-expanded": open
|
|
6231
6261
|
},
|
|
6232
|
-
/* @__PURE__ */
|
|
6262
|
+
/* @__PURE__ */ React47.createElement(CalendarTodayIcon4, null)
|
|
6233
6263
|
),
|
|
6234
6264
|
label,
|
|
6235
6265
|
helperText
|
|
6236
6266
|
}
|
|
6237
|
-
), open && /* @__PURE__ */
|
|
6267
|
+
), open && /* @__PURE__ */ React47.createElement(ClickAwayListener4, { onClickAway: () => setAnchorEl(null) }, /* @__PURE__ */ React47.createElement(
|
|
6238
6268
|
StyledPopper4,
|
|
6239
6269
|
{
|
|
6240
6270
|
id: "month-range-picker-popper",
|
|
@@ -6253,7 +6283,7 @@ var MonthRangePicker = forwardRef10((inProps, ref) => {
|
|
|
6253
6283
|
"aria-label": "Calendar Tooltip",
|
|
6254
6284
|
"aria-expanded": open
|
|
6255
6285
|
},
|
|
6256
|
-
/* @__PURE__ */
|
|
6286
|
+
/* @__PURE__ */ React47.createElement(CalendarSheet4, { tabIndex: -1, role: "presentation" }, /* @__PURE__ */ React47.createElement(
|
|
6257
6287
|
Calendar_default,
|
|
6258
6288
|
{
|
|
6259
6289
|
view: "month",
|
|
@@ -6266,14 +6296,14 @@ var MonthRangePicker = forwardRef10((inProps, ref) => {
|
|
|
6266
6296
|
disableFuture,
|
|
6267
6297
|
disablePast
|
|
6268
6298
|
}
|
|
6269
|
-
), /* @__PURE__ */
|
|
6299
|
+
), /* @__PURE__ */ React47.createElement(
|
|
6270
6300
|
DialogActions_default,
|
|
6271
6301
|
{
|
|
6272
6302
|
sx: {
|
|
6273
6303
|
p: 1
|
|
6274
6304
|
}
|
|
6275
6305
|
},
|
|
6276
|
-
/* @__PURE__ */
|
|
6306
|
+
/* @__PURE__ */ React47.createElement(
|
|
6277
6307
|
Button_default,
|
|
6278
6308
|
{
|
|
6279
6309
|
size,
|
|
@@ -6292,14 +6322,14 @@ var MonthRangePicker = forwardRef10((inProps, ref) => {
|
|
|
6292
6322
|
MonthRangePicker.displayName = "MonthRangePicker";
|
|
6293
6323
|
|
|
6294
6324
|
// src/components/NavigationGroup/NavigationGroup.tsx
|
|
6295
|
-
import
|
|
6325
|
+
import React48 from "react";
|
|
6296
6326
|
import {
|
|
6297
6327
|
Accordion as JoyAccordion2,
|
|
6298
6328
|
AccordionSummary as JoyAccordionSummary2,
|
|
6299
6329
|
AccordionDetails as JoyAccordionDetails2,
|
|
6300
6330
|
styled as styled24,
|
|
6301
6331
|
accordionSummaryClasses,
|
|
6302
|
-
Stack as
|
|
6332
|
+
Stack as Stack12
|
|
6303
6333
|
} from "@mui/joy";
|
|
6304
6334
|
var AccordionSummary2 = styled24(JoyAccordionSummary2, {
|
|
6305
6335
|
name: "NavigationGroup",
|
|
@@ -6323,11 +6353,11 @@ var AccordionDetails2 = styled24(JoyAccordionDetails2, {
|
|
|
6323
6353
|
}));
|
|
6324
6354
|
function NavigationGroup(props) {
|
|
6325
6355
|
const { title, children, startDecorator, level, ...rest } = props;
|
|
6326
|
-
return /* @__PURE__ */
|
|
6356
|
+
return /* @__PURE__ */ React48.createElement(JoyAccordion2, { ...rest }, /* @__PURE__ */ React48.createElement(AccordionSummary2, { useIcon: !!startDecorator, level }, /* @__PURE__ */ React48.createElement(Stack12, { direction: "row", gap: 4 }, startDecorator, title)), /* @__PURE__ */ React48.createElement(AccordionDetails2, null, children));
|
|
6327
6357
|
}
|
|
6328
6358
|
|
|
6329
6359
|
// src/components/NavigationItem/NavigationItem.tsx
|
|
6330
|
-
import
|
|
6360
|
+
import React49 from "react";
|
|
6331
6361
|
import {
|
|
6332
6362
|
ListItem as JoyListItem,
|
|
6333
6363
|
ListItemButton as JoyListItemButton,
|
|
@@ -6362,7 +6392,7 @@ function NavigationItem(props) {
|
|
|
6362
6392
|
const handleClick = () => {
|
|
6363
6393
|
onClick?.(id);
|
|
6364
6394
|
};
|
|
6365
|
-
return /* @__PURE__ */
|
|
6395
|
+
return /* @__PURE__ */ React49.createElement(JoyListItem, { ...rest }, /* @__PURE__ */ React49.createElement(
|
|
6366
6396
|
ListItemButton,
|
|
6367
6397
|
{
|
|
6368
6398
|
level,
|
|
@@ -6371,21 +6401,21 @@ function NavigationItem(props) {
|
|
|
6371
6401
|
"aria-current": selected,
|
|
6372
6402
|
onClick: handleClick
|
|
6373
6403
|
},
|
|
6374
|
-
startDecorator && /* @__PURE__ */
|
|
6404
|
+
startDecorator && /* @__PURE__ */ React49.createElement(JoyListItemDecorator, null, startDecorator),
|
|
6375
6405
|
children
|
|
6376
6406
|
));
|
|
6377
6407
|
}
|
|
6378
6408
|
|
|
6379
6409
|
// src/components/Navigator/Navigator.tsx
|
|
6380
|
-
import
|
|
6410
|
+
import React50 from "react";
|
|
6381
6411
|
function Navigator(props) {
|
|
6382
6412
|
const { items, level = 0, onSelect } = props;
|
|
6383
6413
|
const handleItemClick = (id) => {
|
|
6384
6414
|
onSelect?.(id);
|
|
6385
6415
|
};
|
|
6386
|
-
return /* @__PURE__ */
|
|
6416
|
+
return /* @__PURE__ */ React50.createElement("div", null, items.map((item, index) => {
|
|
6387
6417
|
if (item.type === "item") {
|
|
6388
|
-
return /* @__PURE__ */
|
|
6418
|
+
return /* @__PURE__ */ React50.createElement(
|
|
6389
6419
|
NavigationItem,
|
|
6390
6420
|
{
|
|
6391
6421
|
key: item.id,
|
|
@@ -6398,7 +6428,7 @@ function Navigator(props) {
|
|
|
6398
6428
|
item.title
|
|
6399
6429
|
);
|
|
6400
6430
|
} else if (item.type === "group") {
|
|
6401
|
-
return /* @__PURE__ */
|
|
6431
|
+
return /* @__PURE__ */ React50.createElement(
|
|
6402
6432
|
NavigationGroup,
|
|
6403
6433
|
{
|
|
6404
6434
|
key: `${item.title}-${index}`,
|
|
@@ -6416,7 +6446,7 @@ function Navigator(props) {
|
|
|
6416
6446
|
Navigator.displayName = "Navigator";
|
|
6417
6447
|
|
|
6418
6448
|
// src/components/ProfileMenu/ProfileMenu.tsx
|
|
6419
|
-
import
|
|
6449
|
+
import React51, { useCallback as useCallback27, useMemo as useMemo17 } from "react";
|
|
6420
6450
|
import { Dropdown as Dropdown2, ListDivider, menuItemClasses, styled as styled26, MenuButton as MenuButton2 } from "@mui/joy";
|
|
6421
6451
|
import { ClickAwayListener as ClickAwayListener5 } from "@mui/base";
|
|
6422
6452
|
import DropdownIcon from "@mui/icons-material/ArrowDropDown";
|
|
@@ -6428,7 +6458,7 @@ function ProfileCard(props) {
|
|
|
6428
6458
|
const { children, chip, caption, size } = props;
|
|
6429
6459
|
const captionLevel = useMemo17(() => size === "sm" ? "body-xs" : "body-sm", [size]);
|
|
6430
6460
|
const nameLevel = useMemo17(() => size === "sm" ? "body-sm" : "body-md", [size]);
|
|
6431
|
-
return /* @__PURE__ */
|
|
6461
|
+
return /* @__PURE__ */ React51.createElement(StyledProfileCard, { px: 4, py: 2 }, /* @__PURE__ */ React51.createElement(Stack, { direction: "row", gap: 2 }, /* @__PURE__ */ React51.createElement(Typography, { level: nameLevel, fontWeight: "bold", textColor: "text.primary" }, children), chip && /* @__PURE__ */ React51.createElement(Chip, { size, color: "neutral", variant: "outlined" }, chip)), caption && /* @__PURE__ */ React51.createElement(Typography, { level: captionLevel, textColor: "text.tertiary" }, caption));
|
|
6432
6462
|
}
|
|
6433
6463
|
ProfileCard.displayName = "ProfileCard";
|
|
6434
6464
|
var StyledProfileMenuButton = styled26(MenuButton2, {
|
|
@@ -6440,16 +6470,16 @@ var StyledProfileMenuButton = styled26(MenuButton2, {
|
|
|
6440
6470
|
}));
|
|
6441
6471
|
function ProfileMenuButton(props) {
|
|
6442
6472
|
const { size = "md", src, alt, children, getInitial, ...innerProps } = props;
|
|
6443
|
-
return /* @__PURE__ */
|
|
6473
|
+
return /* @__PURE__ */ React51.createElement(
|
|
6444
6474
|
StyledProfileMenuButton,
|
|
6445
6475
|
{
|
|
6446
6476
|
variant: "plain",
|
|
6447
6477
|
color: "neutral",
|
|
6448
6478
|
size,
|
|
6449
|
-
endDecorator: /* @__PURE__ */
|
|
6479
|
+
endDecorator: /* @__PURE__ */ React51.createElement(DropdownIcon, null),
|
|
6450
6480
|
...innerProps
|
|
6451
6481
|
},
|
|
6452
|
-
/* @__PURE__ */
|
|
6482
|
+
/* @__PURE__ */ React51.createElement(Avatar, { variant: "soft", color: "primary", size, src, alt, getInitial }, children)
|
|
6453
6483
|
);
|
|
6454
6484
|
}
|
|
6455
6485
|
ProfileMenuButton.displayName = "ProfileMenuButton";
|
|
@@ -6468,9 +6498,9 @@ function ProfileMenu(props) {
|
|
|
6468
6498
|
const [open, setOpen] = useControlledState(
|
|
6469
6499
|
_open,
|
|
6470
6500
|
defaultOpen ?? false,
|
|
6471
|
-
|
|
6501
|
+
useCallback27((value) => onOpenChange?.(value), [onOpenChange])
|
|
6472
6502
|
);
|
|
6473
|
-
return /* @__PURE__ */
|
|
6503
|
+
return /* @__PURE__ */ React51.createElement(ClickAwayListener5, { onClickAway: () => setOpen(false) }, /* @__PURE__ */ React51.createElement("div", null, /* @__PURE__ */ React51.createElement(Dropdown2, { open }, /* @__PURE__ */ React51.createElement(
|
|
6474
6504
|
ProfileMenuButton,
|
|
6475
6505
|
{
|
|
6476
6506
|
size,
|
|
@@ -6480,7 +6510,7 @@ function ProfileMenu(props) {
|
|
|
6480
6510
|
getInitial
|
|
6481
6511
|
},
|
|
6482
6512
|
profile.name
|
|
6483
|
-
), /* @__PURE__ */
|
|
6513
|
+
), /* @__PURE__ */ React51.createElement(ProfileMenuRoot, { size, placement: "bottom-end", ...innerProps, onClose: () => setOpen(false) }, /* @__PURE__ */ React51.createElement(ProfileCard, { size, caption: profile.caption, chip: profile.chip }, profile.name), !!menuItems.length && /* @__PURE__ */ React51.createElement(ListDivider, null), menuItems.map(({ label, ...menuProps }) => /* @__PURE__ */ React51.createElement(
|
|
6484
6514
|
MenuItem,
|
|
6485
6515
|
{
|
|
6486
6516
|
key: label,
|
|
@@ -6496,7 +6526,7 @@ function ProfileMenu(props) {
|
|
|
6496
6526
|
ProfileMenu.displayName = "ProfileMenu";
|
|
6497
6527
|
|
|
6498
6528
|
// src/components/RadioTileGroup/RadioTileGroup.tsx
|
|
6499
|
-
import
|
|
6529
|
+
import React52 from "react";
|
|
6500
6530
|
import { styled as styled27, radioClasses, sheetClasses } from "@mui/joy";
|
|
6501
6531
|
var RadioTileGroupRoot = styled27(RadioGroup, {
|
|
6502
6532
|
name: "RadioTileGroup",
|
|
@@ -6584,7 +6614,7 @@ function RadioTileGroup(props) {
|
|
|
6584
6614
|
error,
|
|
6585
6615
|
required
|
|
6586
6616
|
} = props;
|
|
6587
|
-
const radioGroup = /* @__PURE__ */
|
|
6617
|
+
const radioGroup = /* @__PURE__ */ React52.createElement(
|
|
6588
6618
|
RadioTileGroupRoot,
|
|
6589
6619
|
{
|
|
6590
6620
|
overlay: true,
|
|
@@ -6595,7 +6625,7 @@ function RadioTileGroup(props) {
|
|
|
6595
6625
|
flex,
|
|
6596
6626
|
columns
|
|
6597
6627
|
},
|
|
6598
|
-
options.map((option) => /* @__PURE__ */
|
|
6628
|
+
options.map((option) => /* @__PURE__ */ React52.createElement(
|
|
6599
6629
|
RadioTileSheet,
|
|
6600
6630
|
{
|
|
6601
6631
|
key: option.value,
|
|
@@ -6605,7 +6635,7 @@ function RadioTileGroup(props) {
|
|
|
6605
6635
|
flex,
|
|
6606
6636
|
textAlign
|
|
6607
6637
|
},
|
|
6608
|
-
/* @__PURE__ */
|
|
6638
|
+
/* @__PURE__ */ React52.createElement(
|
|
6609
6639
|
Radio,
|
|
6610
6640
|
{
|
|
6611
6641
|
id: `${option.value}`,
|
|
@@ -6633,7 +6663,7 @@ function RadioTileGroup(props) {
|
|
|
6633
6663
|
}
|
|
6634
6664
|
}
|
|
6635
6665
|
),
|
|
6636
|
-
option.startDecorator && /* @__PURE__ */
|
|
6666
|
+
option.startDecorator && /* @__PURE__ */ React52.createElement(
|
|
6637
6667
|
Box_default,
|
|
6638
6668
|
{
|
|
6639
6669
|
sx: {
|
|
@@ -6654,20 +6684,20 @@ function RadioTileGroup(props) {
|
|
|
6654
6684
|
)
|
|
6655
6685
|
))
|
|
6656
6686
|
);
|
|
6657
|
-
return /* @__PURE__ */
|
|
6687
|
+
return /* @__PURE__ */ React52.createElement(FormControl_default, { required, disabled: allDisabled, error, size, sx, className }, label && /* @__PURE__ */ React52.createElement(FormLabel_default, null, label), radioGroup, helperText && /* @__PURE__ */ React52.createElement(FormHelperText_default, null, helperText));
|
|
6658
6688
|
}
|
|
6659
6689
|
RadioTileGroup.displayName = "RadioTileGroup";
|
|
6660
6690
|
|
|
6661
6691
|
// src/components/RadioList/RadioList.tsx
|
|
6662
|
-
import
|
|
6692
|
+
import React53 from "react";
|
|
6663
6693
|
function RadioList(props) {
|
|
6664
6694
|
const { items, ...innerProps } = props;
|
|
6665
|
-
return /* @__PURE__ */
|
|
6695
|
+
return /* @__PURE__ */ React53.createElement(RadioGroup, { ...innerProps }, items.map((item) => /* @__PURE__ */ React53.createElement(Radio, { key: `${item.value}`, value: item.value, label: item.label })));
|
|
6666
6696
|
}
|
|
6667
6697
|
RadioList.displayName = "RadioList";
|
|
6668
6698
|
|
|
6669
6699
|
// src/components/Stepper/Stepper.tsx
|
|
6670
|
-
import
|
|
6700
|
+
import React54 from "react";
|
|
6671
6701
|
import {
|
|
6672
6702
|
Stepper as JoyStepper,
|
|
6673
6703
|
Step as JoyStep,
|
|
@@ -6703,7 +6733,7 @@ function Stepper(props) {
|
|
|
6703
6733
|
stepOrientation = "horizontal"
|
|
6704
6734
|
} = props;
|
|
6705
6735
|
const effectiveStepOrientation = orientation === "vertical" ? "horizontal" : stepOrientation;
|
|
6706
|
-
return /* @__PURE__ */
|
|
6736
|
+
return /* @__PURE__ */ React54.createElement(
|
|
6707
6737
|
MotionStepper,
|
|
6708
6738
|
{
|
|
6709
6739
|
orientation,
|
|
@@ -6742,23 +6772,23 @@ function Stepper(props) {
|
|
|
6742
6772
|
const completed = activeStep > i + 1;
|
|
6743
6773
|
const disabled = activeStep < i + 1;
|
|
6744
6774
|
const hasContent = step.label || step.extraContent;
|
|
6745
|
-
return /* @__PURE__ */
|
|
6775
|
+
return /* @__PURE__ */ React54.createElement(
|
|
6746
6776
|
Step,
|
|
6747
6777
|
{
|
|
6748
6778
|
key: `step-${i}`,
|
|
6749
|
-
indicator: /* @__PURE__ */
|
|
6779
|
+
indicator: /* @__PURE__ */ React54.createElement(StepIndicator, { variant: disabled ? "outlined" : "solid", color: disabled ? "neutral" : "primary" }, completed ? /* @__PURE__ */ React54.createElement(CheckIcon, null) : step.indicatorContent),
|
|
6750
6780
|
active,
|
|
6751
6781
|
completed,
|
|
6752
6782
|
disabled,
|
|
6753
6783
|
orientation: effectiveStepOrientation
|
|
6754
6784
|
},
|
|
6755
|
-
hasContent && /* @__PURE__ */
|
|
6785
|
+
hasContent && /* @__PURE__ */ React54.createElement(
|
|
6756
6786
|
Stack_default,
|
|
6757
6787
|
{
|
|
6758
6788
|
sx: orientation === "horizontal" && effectiveStepOrientation === "vertical" ? { alignItems: "center" } : {}
|
|
6759
6789
|
},
|
|
6760
|
-
step.label && /* @__PURE__ */
|
|
6761
|
-
step.extraContent && /* @__PURE__ */
|
|
6790
|
+
step.label && /* @__PURE__ */ React54.createElement(Typography_default, { level: "title-sm" }, step.label),
|
|
6791
|
+
step.extraContent && /* @__PURE__ */ React54.createElement(Typography_default, { level: "body-xs" }, step.extraContent)
|
|
6762
6792
|
)
|
|
6763
6793
|
);
|
|
6764
6794
|
})
|
|
@@ -6767,7 +6797,7 @@ function Stepper(props) {
|
|
|
6767
6797
|
Stepper.displayName = "Stepper";
|
|
6768
6798
|
|
|
6769
6799
|
// src/components/Switch/Switch.tsx
|
|
6770
|
-
import
|
|
6800
|
+
import React55 from "react";
|
|
6771
6801
|
import { Switch as JoySwitch, styled as styled29, switchClasses } from "@mui/joy";
|
|
6772
6802
|
import { motion as motion27 } from "framer-motion";
|
|
6773
6803
|
var MotionSwitch = motion27(JoySwitch);
|
|
@@ -6789,14 +6819,14 @@ var StyledThumb = styled29(motion27.div)({
|
|
|
6789
6819
|
right: "var(--Switch-thumbOffset)"
|
|
6790
6820
|
}
|
|
6791
6821
|
});
|
|
6792
|
-
var Thumb = (props) => /* @__PURE__ */
|
|
6822
|
+
var Thumb = (props) => /* @__PURE__ */ React55.createElement(StyledThumb, { ...props, layout: true, transition: spring });
|
|
6793
6823
|
var spring = {
|
|
6794
6824
|
type: "spring",
|
|
6795
6825
|
stiffness: 700,
|
|
6796
6826
|
damping: 30
|
|
6797
6827
|
};
|
|
6798
6828
|
var Switch = (props) => {
|
|
6799
|
-
return /* @__PURE__ */
|
|
6829
|
+
return /* @__PURE__ */ React55.createElement(
|
|
6800
6830
|
MotionSwitch,
|
|
6801
6831
|
{
|
|
6802
6832
|
...props,
|
|
@@ -6810,7 +6840,7 @@ var Switch = (props) => {
|
|
|
6810
6840
|
Switch.displayName = "Switch";
|
|
6811
6841
|
|
|
6812
6842
|
// src/components/Tabs/Tabs.tsx
|
|
6813
|
-
import
|
|
6843
|
+
import React56, { forwardRef as forwardRef11 } from "react";
|
|
6814
6844
|
import {
|
|
6815
6845
|
Tabs as JoyTabs,
|
|
6816
6846
|
Tab as JoyTab,
|
|
@@ -6834,14 +6864,14 @@ var StyledTab = styled30(JoyTab)(({ theme }) => ({
|
|
|
6834
6864
|
}
|
|
6835
6865
|
}));
|
|
6836
6866
|
var Tab = forwardRef11(function Tab2({ startDecorator, endDecorator, children, ...props }, ref) {
|
|
6837
|
-
return /* @__PURE__ */
|
|
6867
|
+
return /* @__PURE__ */ React56.createElement(StyledTab, { ...props, ref }, startDecorator, children, endDecorator);
|
|
6838
6868
|
});
|
|
6839
6869
|
Tab.displayName = "Tab";
|
|
6840
6870
|
var TabList = JoyTabList;
|
|
6841
6871
|
var TabPanel = JoyTabPanel;
|
|
6842
6872
|
|
|
6843
6873
|
// src/components/ThemeProvider/ThemeProvider.tsx
|
|
6844
|
-
import
|
|
6874
|
+
import React57 from "react";
|
|
6845
6875
|
import { CssBaseline, CssVarsProvider, checkboxClasses, extendTheme, inputClasses } from "@mui/joy";
|
|
6846
6876
|
var colorScheme = {
|
|
6847
6877
|
palette: {
|
|
@@ -7120,7 +7150,7 @@ var defaultTheme = extendTheme({
|
|
|
7120
7150
|
});
|
|
7121
7151
|
function ThemeProvider(props) {
|
|
7122
7152
|
const theme = props.theme || defaultTheme;
|
|
7123
|
-
return /* @__PURE__ */
|
|
7153
|
+
return /* @__PURE__ */ React57.createElement(React57.Fragment, null, /* @__PURE__ */ React57.createElement(CssVarsProvider, { theme }, /* @__PURE__ */ React57.createElement(CssBaseline, null), props.children));
|
|
7124
7154
|
}
|
|
7125
7155
|
ThemeProvider.displayName = "ThemeProvider";
|
|
7126
7156
|
export {
|