@ceed/ads 1.16.0-next.1 → 1.16.0-next.5
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 +405 -376
- package/dist/index.js +181 -152
- package/framer/index.js +39 -39
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -4593,8 +4593,8 @@ function FilterableCheckboxGroup(props) {
|
|
|
4593
4593
|
FilterableCheckboxGroup.displayName = "FilterableCheckboxGroup";
|
|
4594
4594
|
|
|
4595
4595
|
// src/components/FilterMenu/FilterMenu.tsx
|
|
4596
|
-
import
|
|
4597
|
-
import { Button as Button2, Stack as
|
|
4596
|
+
import React41, { useCallback as useCallback23 } from "react";
|
|
4597
|
+
import { Button as Button2, Stack as Stack12 } from "@mui/joy";
|
|
4598
4598
|
|
|
4599
4599
|
// src/components/FilterMenu/components/CheckboxGroup.tsx
|
|
4600
4600
|
import React31, { useCallback as useCallback14 } from "react";
|
|
@@ -4630,8 +4630,36 @@ function CheckboxGroup(props) {
|
|
|
4630
4630
|
}
|
|
4631
4631
|
CheckboxGroup.displayName = "CheckboxGroup";
|
|
4632
4632
|
|
|
4633
|
-
// src/components/FilterMenu/components/
|
|
4633
|
+
// src/components/FilterMenu/components/FilterableCheckboxGroup.tsx
|
|
4634
4634
|
import React32, { useCallback as useCallback15 } from "react";
|
|
4635
|
+
import { Stack as Stack4 } from "@mui/joy";
|
|
4636
|
+
function FilterableCheckboxGroup2(props) {
|
|
4637
|
+
const { id, label, options, value, onChange, hidden, placeholder, maxHeight } = props;
|
|
4638
|
+
const [internalValue, setInternalValue] = useControlledState(value, [], onChange);
|
|
4639
|
+
const handleChange = useCallback15(
|
|
4640
|
+
(newValue) => {
|
|
4641
|
+
setInternalValue(newValue);
|
|
4642
|
+
},
|
|
4643
|
+
[setInternalValue]
|
|
4644
|
+
);
|
|
4645
|
+
if (hidden) {
|
|
4646
|
+
return null;
|
|
4647
|
+
}
|
|
4648
|
+
return /* @__PURE__ */ React32.createElement(Stack4, { 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(
|
|
4649
|
+
FilterableCheckboxGroup,
|
|
4650
|
+
{
|
|
4651
|
+
value: internalValue ?? [],
|
|
4652
|
+
onChange: handleChange,
|
|
4653
|
+
options,
|
|
4654
|
+
placeholder,
|
|
4655
|
+
maxHeight
|
|
4656
|
+
}
|
|
4657
|
+
));
|
|
4658
|
+
}
|
|
4659
|
+
FilterableCheckboxGroup2.displayName = "FilterableCheckboxGroup";
|
|
4660
|
+
|
|
4661
|
+
// src/components/FilterMenu/components/RadioGroup.tsx
|
|
4662
|
+
import React33, { useCallback as useCallback16 } from "react";
|
|
4635
4663
|
|
|
4636
4664
|
// src/components/Radio/Radio.tsx
|
|
4637
4665
|
import { Radio as JoyRadio, RadioGroup as JoyRadioGroup } from "@mui/joy";
|
|
@@ -4644,11 +4672,11 @@ var RadioGroup = MotionRadioGroup;
|
|
|
4644
4672
|
RadioGroup.displayName = "RadioGroup";
|
|
4645
4673
|
|
|
4646
4674
|
// src/components/FilterMenu/components/RadioGroup.tsx
|
|
4647
|
-
import { Stack as
|
|
4675
|
+
import { Stack as Stack5 } from "@mui/joy";
|
|
4648
4676
|
function RadioGroup2(props) {
|
|
4649
4677
|
const { id, label, options, value, onChange, hidden } = props;
|
|
4650
4678
|
const [internalValue, setInternalValue] = useControlledState(value, value ?? "", onChange);
|
|
4651
|
-
const handleRadioChange =
|
|
4679
|
+
const handleRadioChange = useCallback16(
|
|
4652
4680
|
(event) => {
|
|
4653
4681
|
const newValue = event.target.value;
|
|
4654
4682
|
const option = options.find((opt) => opt.value.toString() === newValue);
|
|
@@ -4660,13 +4688,13 @@ function RadioGroup2(props) {
|
|
|
4660
4688
|
if (hidden) {
|
|
4661
4689
|
return null;
|
|
4662
4690
|
}
|
|
4663
|
-
return /* @__PURE__ */
|
|
4691
|
+
return /* @__PURE__ */ React33.createElement(Stack5, { spacing: 3, role: "group", "aria-labelledby": id }, !!label && /* @__PURE__ */ React33.createElement(Stack5, { 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 }))));
|
|
4664
4692
|
}
|
|
4665
4693
|
RadioGroup2.displayName = "RadioGroup";
|
|
4666
4694
|
|
|
4667
4695
|
// src/components/FilterMenu/components/DateRange.tsx
|
|
4668
|
-
import
|
|
4669
|
-
import { Stack as
|
|
4696
|
+
import React34, { useCallback as useCallback17, useMemo as useMemo13, useState as useState11, useEffect as useEffect9 } from "react";
|
|
4697
|
+
import { Stack as Stack6 } from "@mui/joy";
|
|
4670
4698
|
function DateRange(props) {
|
|
4671
4699
|
const {
|
|
4672
4700
|
id,
|
|
@@ -4695,7 +4723,7 @@ function DateRange(props) {
|
|
|
4695
4723
|
],
|
|
4696
4724
|
[]
|
|
4697
4725
|
);
|
|
4698
|
-
const getDateRangeForOption =
|
|
4726
|
+
const getDateRangeForOption = useCallback17(
|
|
4699
4727
|
(option) => {
|
|
4700
4728
|
const now = /* @__PURE__ */ new Date();
|
|
4701
4729
|
const currentYear = now.getFullYear();
|
|
@@ -4734,7 +4762,7 @@ function DateRange(props) {
|
|
|
4734
4762
|
},
|
|
4735
4763
|
[internalValue]
|
|
4736
4764
|
);
|
|
4737
|
-
const determineOptionFromValue =
|
|
4765
|
+
const determineOptionFromValue = useCallback17(
|
|
4738
4766
|
(value2) => {
|
|
4739
4767
|
if (!value2) {
|
|
4740
4768
|
return "all-time";
|
|
@@ -4760,7 +4788,7 @@ function DateRange(props) {
|
|
|
4760
4788
|
const newOption = determineOptionFromValue(internalValue);
|
|
4761
4789
|
setSelectedOption(newOption);
|
|
4762
4790
|
}, [internalValue, determineOptionFromValue]);
|
|
4763
|
-
const handleOptionChange =
|
|
4791
|
+
const handleOptionChange = useCallback17(
|
|
4764
4792
|
(event) => {
|
|
4765
4793
|
const newOption = event.target.value;
|
|
4766
4794
|
setSelectedOption(newOption);
|
|
@@ -4769,7 +4797,7 @@ function DateRange(props) {
|
|
|
4769
4797
|
},
|
|
4770
4798
|
[getDateRangeForOption, setInternalValue]
|
|
4771
4799
|
);
|
|
4772
|
-
const handleCustomDateChange =
|
|
4800
|
+
const handleCustomDateChange = useCallback17(
|
|
4773
4801
|
(event) => {
|
|
4774
4802
|
const dateRangeString = event.target.value;
|
|
4775
4803
|
if (dateRangeString && dateRangeString.includes(" - ")) {
|
|
@@ -4787,7 +4815,7 @@ function DateRange(props) {
|
|
|
4787
4815
|
if (hidden) {
|
|
4788
4816
|
return null;
|
|
4789
4817
|
}
|
|
4790
|
-
return /* @__PURE__ */
|
|
4818
|
+
return /* @__PURE__ */ React34.createElement(Stack6, { 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(
|
|
4791
4819
|
DateRangePicker,
|
|
4792
4820
|
{
|
|
4793
4821
|
value: customDateRangeValue,
|
|
@@ -4806,12 +4834,12 @@ function DateRange(props) {
|
|
|
4806
4834
|
DateRange.displayName = "DateRange";
|
|
4807
4835
|
|
|
4808
4836
|
// src/components/FilterMenu/components/CurrencyInput.tsx
|
|
4809
|
-
import
|
|
4810
|
-
import { Stack as
|
|
4837
|
+
import React35, { useCallback as useCallback18 } from "react";
|
|
4838
|
+
import { Stack as Stack7 } from "@mui/joy";
|
|
4811
4839
|
function CurrencyInput3(props) {
|
|
4812
4840
|
const { id, label, value, onChange, hidden, max, placeholder, useMinorUnit, currency = "USD" } = props;
|
|
4813
4841
|
const [internalValue, setInternalValue] = useControlledState(value, value, onChange);
|
|
4814
|
-
const handleCurrencyChange =
|
|
4842
|
+
const handleCurrencyChange = useCallback18(
|
|
4815
4843
|
(event) => {
|
|
4816
4844
|
const newValue = event.target.value;
|
|
4817
4845
|
setInternalValue(newValue);
|
|
@@ -4821,7 +4849,7 @@ function CurrencyInput3(props) {
|
|
|
4821
4849
|
if (hidden) {
|
|
4822
4850
|
return null;
|
|
4823
4851
|
}
|
|
4824
|
-
return /* @__PURE__ */
|
|
4852
|
+
return /* @__PURE__ */ React35.createElement(Stack7, { 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(
|
|
4825
4853
|
CurrencyInput,
|
|
4826
4854
|
{
|
|
4827
4855
|
value: internalValue,
|
|
@@ -4837,14 +4865,14 @@ function CurrencyInput3(props) {
|
|
|
4837
4865
|
CurrencyInput3.displayName = "CurrencyInput";
|
|
4838
4866
|
|
|
4839
4867
|
// src/components/FilterMenu/components/CurrencyRange.tsx
|
|
4840
|
-
import
|
|
4841
|
-
import { Stack as
|
|
4868
|
+
import React36, { useCallback as useCallback19 } from "react";
|
|
4869
|
+
import { Stack as Stack8 } from "@mui/joy";
|
|
4842
4870
|
function CurrencyRange(props) {
|
|
4843
4871
|
const { id, label, value, onChange, hidden, max, placeholder, useMinorUnit, currency = "USD" } = props;
|
|
4844
4872
|
const [internalValue, setInternalValue] = useControlledState(value, null, onChange);
|
|
4845
4873
|
const minValue = internalValue?.[0];
|
|
4846
4874
|
const maxValue = internalValue?.[1];
|
|
4847
|
-
const handleMinChange =
|
|
4875
|
+
const handleMinChange = useCallback19(
|
|
4848
4876
|
(event) => {
|
|
4849
4877
|
const newMinValue = event.target.value;
|
|
4850
4878
|
const currentMaxValue = maxValue;
|
|
@@ -4858,7 +4886,7 @@ function CurrencyRange(props) {
|
|
|
4858
4886
|
},
|
|
4859
4887
|
[maxValue, setInternalValue]
|
|
4860
4888
|
);
|
|
4861
|
-
const handleMaxChange =
|
|
4889
|
+
const handleMaxChange = useCallback19(
|
|
4862
4890
|
(event) => {
|
|
4863
4891
|
const newMaxValue = event.target.value;
|
|
4864
4892
|
const currentMinValue = minValue;
|
|
@@ -4875,7 +4903,7 @@ function CurrencyRange(props) {
|
|
|
4875
4903
|
if (hidden) {
|
|
4876
4904
|
return null;
|
|
4877
4905
|
}
|
|
4878
|
-
return /* @__PURE__ */
|
|
4906
|
+
return /* @__PURE__ */ React36.createElement(Stack8, { 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(Stack8, { direction: "row", spacing: 2, alignItems: "flex-end" }, /* @__PURE__ */ React36.createElement(
|
|
4879
4907
|
CurrencyInput,
|
|
4880
4908
|
{
|
|
4881
4909
|
label: "Minimum",
|
|
@@ -4888,7 +4916,7 @@ function CurrencyRange(props) {
|
|
|
4888
4916
|
"aria-labelledby": label ? id : void 0,
|
|
4889
4917
|
"aria-label": "Minimum amount"
|
|
4890
4918
|
}
|
|
4891
|
-
), /* @__PURE__ */
|
|
4919
|
+
), /* @__PURE__ */ React36.createElement(
|
|
4892
4920
|
CurrencyInput,
|
|
4893
4921
|
{
|
|
4894
4922
|
label: "Maximum",
|
|
@@ -4906,20 +4934,20 @@ function CurrencyRange(props) {
|
|
|
4906
4934
|
CurrencyRange.displayName = "CurrencyRange";
|
|
4907
4935
|
|
|
4908
4936
|
// src/components/FilterMenu/components/PercentageInput.tsx
|
|
4909
|
-
import
|
|
4910
|
-
import { Stack as
|
|
4937
|
+
import React38 from "react";
|
|
4938
|
+
import { Stack as Stack9, Typography as Typography2 } from "@mui/joy";
|
|
4911
4939
|
|
|
4912
4940
|
// src/components/PercentageInput/PercentageInput.tsx
|
|
4913
|
-
import
|
|
4941
|
+
import React37, { useCallback as useCallback20, useMemo as useMemo14, useState as useState12 } from "react";
|
|
4914
4942
|
import { NumericFormat as NumericFormat2 } from "react-number-format";
|
|
4915
4943
|
import { styled as styled20, useThemeProps as useThemeProps6 } from "@mui/joy";
|
|
4916
4944
|
var padDecimal = (value, decimalScale) => {
|
|
4917
4945
|
const [integer, decimal = ""] = `${value}`.split(".");
|
|
4918
4946
|
return Number(`${integer}${decimal.padEnd(decimalScale, "0")}`);
|
|
4919
4947
|
};
|
|
4920
|
-
var TextMaskAdapter7 =
|
|
4948
|
+
var TextMaskAdapter7 = React37.forwardRef(function TextMaskAdapter8(props, ref) {
|
|
4921
4949
|
const { onChange, min, max, ...innerProps } = props;
|
|
4922
|
-
return /* @__PURE__ */
|
|
4950
|
+
return /* @__PURE__ */ React37.createElement(
|
|
4923
4951
|
NumericFormat2,
|
|
4924
4952
|
{
|
|
4925
4953
|
...innerProps,
|
|
@@ -4944,7 +4972,7 @@ var PercentageInputRoot = styled20(Input_default, {
|
|
|
4944
4972
|
slot: "Root",
|
|
4945
4973
|
overridesResolver: (props, styles) => styles.root
|
|
4946
4974
|
})({});
|
|
4947
|
-
var PercentageInput =
|
|
4975
|
+
var PercentageInput = React37.forwardRef(
|
|
4948
4976
|
function PercentageInput2(inProps, ref) {
|
|
4949
4977
|
const props = useThemeProps6({ props: inProps, name: "PercentageInput" });
|
|
4950
4978
|
const {
|
|
@@ -4967,7 +4995,7 @@ var PercentageInput = React36.forwardRef(
|
|
|
4967
4995
|
const [_value, setValue] = useControlledState(
|
|
4968
4996
|
props.value,
|
|
4969
4997
|
props.defaultValue,
|
|
4970
|
-
|
|
4998
|
+
useCallback20((value2) => onChange?.({ target: { name, value: value2 } }), [onChange, name])
|
|
4971
4999
|
);
|
|
4972
5000
|
const [internalError, setInternalError] = useState12(
|
|
4973
5001
|
max && _value && _value > max || min && _value && _value < min
|
|
@@ -4978,7 +5006,7 @@ var PercentageInput = React36.forwardRef(
|
|
|
4978
5006
|
}
|
|
4979
5007
|
return _value;
|
|
4980
5008
|
}, [_value, useMinorUnit, maxDecimalScale]);
|
|
4981
|
-
const handleChange =
|
|
5009
|
+
const handleChange = useCallback20(
|
|
4982
5010
|
(event) => {
|
|
4983
5011
|
if (event.target.value === "") {
|
|
4984
5012
|
setValue(void 0);
|
|
@@ -4995,7 +5023,7 @@ var PercentageInput = React36.forwardRef(
|
|
|
4995
5023
|
},
|
|
4996
5024
|
[setValue, useMinorUnit, maxDecimalScale, min, max]
|
|
4997
5025
|
);
|
|
4998
|
-
return /* @__PURE__ */
|
|
5026
|
+
return /* @__PURE__ */ React37.createElement(
|
|
4999
5027
|
PercentageInputRoot,
|
|
5000
5028
|
{
|
|
5001
5029
|
...innerProps,
|
|
@@ -5042,7 +5070,7 @@ var PercentageInput3 = ({
|
|
|
5042
5070
|
if (hidden) {
|
|
5043
5071
|
return null;
|
|
5044
5072
|
}
|
|
5045
|
-
return /* @__PURE__ */
|
|
5073
|
+
return /* @__PURE__ */ React38.createElement(Stack9, { 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(
|
|
5046
5074
|
PercentageInput,
|
|
5047
5075
|
{
|
|
5048
5076
|
value: _value,
|
|
@@ -5057,8 +5085,8 @@ var PercentageInput3 = ({
|
|
|
5057
5085
|
};
|
|
5058
5086
|
|
|
5059
5087
|
// src/components/FilterMenu/components/PercentageRange.tsx
|
|
5060
|
-
import
|
|
5061
|
-
import { Stack as
|
|
5088
|
+
import React39, { useCallback as useCallback21 } from "react";
|
|
5089
|
+
import { Stack as Stack10 } from "@mui/joy";
|
|
5062
5090
|
function PercentageRange(props) {
|
|
5063
5091
|
const { id, label, value, onChange, hidden, useMinorUnit, maxDecimalScale, min, max } = props;
|
|
5064
5092
|
const [internalValue, setInternalValue] = useControlledState(
|
|
@@ -5068,7 +5096,7 @@ function PercentageRange(props) {
|
|
|
5068
5096
|
);
|
|
5069
5097
|
const minValue = internalValue?.[0];
|
|
5070
5098
|
const maxValue = internalValue?.[1];
|
|
5071
|
-
const handleMinChange =
|
|
5099
|
+
const handleMinChange = useCallback21(
|
|
5072
5100
|
(event) => {
|
|
5073
5101
|
const newMinValue = event.target.value;
|
|
5074
5102
|
const currentMaxValue = maxValue;
|
|
@@ -5080,7 +5108,7 @@ function PercentageRange(props) {
|
|
|
5080
5108
|
},
|
|
5081
5109
|
[maxValue, setInternalValue]
|
|
5082
5110
|
);
|
|
5083
|
-
const handleMaxChange =
|
|
5111
|
+
const handleMaxChange = useCallback21(
|
|
5084
5112
|
(event) => {
|
|
5085
5113
|
const newMaxValue = event.target.value;
|
|
5086
5114
|
const currentMinValue = minValue;
|
|
@@ -5095,7 +5123,7 @@ function PercentageRange(props) {
|
|
|
5095
5123
|
if (hidden) {
|
|
5096
5124
|
return null;
|
|
5097
5125
|
}
|
|
5098
|
-
return /* @__PURE__ */
|
|
5126
|
+
return /* @__PURE__ */ React39.createElement(Stack10, { 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(Stack10, { direction: "row", spacing: 2, alignItems: "flex-end" }, /* @__PURE__ */ React39.createElement(
|
|
5099
5127
|
PercentageInput,
|
|
5100
5128
|
{
|
|
5101
5129
|
label: "Minimum",
|
|
@@ -5109,7 +5137,7 @@ function PercentageRange(props) {
|
|
|
5109
5137
|
"aria-label": "Minimum percentage",
|
|
5110
5138
|
placeholder: "0%"
|
|
5111
5139
|
}
|
|
5112
|
-
), /* @__PURE__ */
|
|
5140
|
+
), /* @__PURE__ */ React39.createElement(
|
|
5113
5141
|
PercentageInput,
|
|
5114
5142
|
{
|
|
5115
5143
|
label: "Maximum",
|
|
@@ -5128,13 +5156,13 @@ function PercentageRange(props) {
|
|
|
5128
5156
|
PercentageRange.displayName = "PercentageRange";
|
|
5129
5157
|
|
|
5130
5158
|
// src/components/FilterMenu/components/Autocomplete.tsx
|
|
5131
|
-
import
|
|
5132
|
-
import { Stack as
|
|
5159
|
+
import React40, { useCallback as useCallback22 } from "react";
|
|
5160
|
+
import { Stack as Stack11 } from "@mui/joy";
|
|
5133
5161
|
function Autocomplete2(props) {
|
|
5134
5162
|
const { id, label, value, onChange, options, multiple, hidden, placeholder } = props;
|
|
5135
5163
|
const [internalValue, setInternalValue] = useControlledState(value, void 0, onChange);
|
|
5136
5164
|
const autocompleteValue = typeof internalValue === "string" || typeof internalValue === "number" ? String(internalValue) : void 0;
|
|
5137
|
-
const handleChange =
|
|
5165
|
+
const handleChange = useCallback22(
|
|
5138
5166
|
(event) => {
|
|
5139
5167
|
const val = event.target.value;
|
|
5140
5168
|
if (val) {
|
|
@@ -5149,7 +5177,7 @@ function Autocomplete2(props) {
|
|
|
5149
5177
|
if (hidden) {
|
|
5150
5178
|
return null;
|
|
5151
5179
|
}
|
|
5152
|
-
return /* @__PURE__ */
|
|
5180
|
+
return /* @__PURE__ */ React40.createElement(Stack11, { 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(
|
|
5153
5181
|
Autocomplete,
|
|
5154
5182
|
{
|
|
5155
5183
|
value: autocompleteValue,
|
|
@@ -5166,6 +5194,7 @@ Autocomplete2.displayName = "Autocomplete";
|
|
|
5166
5194
|
// src/components/FilterMenu/FilterMenu.tsx
|
|
5167
5195
|
var componentMap = {
|
|
5168
5196
|
"checkbox-group": CheckboxGroup,
|
|
5197
|
+
"filterable-checkbox-group": FilterableCheckboxGroup2,
|
|
5169
5198
|
"radio-group": RadioGroup2,
|
|
5170
5199
|
"date-range": DateRange,
|
|
5171
5200
|
"currency-input": CurrencyInput3,
|
|
@@ -5182,7 +5211,7 @@ function FilterMenu(props) {
|
|
|
5182
5211
|
void 0
|
|
5183
5212
|
// onChange는 Apply 버튼에서만 호출
|
|
5184
5213
|
);
|
|
5185
|
-
const handleFilterChange =
|
|
5214
|
+
const handleFilterChange = useCallback23(
|
|
5186
5215
|
(filterId, value) => {
|
|
5187
5216
|
setInternalValues((prev) => ({
|
|
5188
5217
|
...prev,
|
|
@@ -5191,17 +5220,17 @@ function FilterMenu(props) {
|
|
|
5191
5220
|
},
|
|
5192
5221
|
[setInternalValues]
|
|
5193
5222
|
);
|
|
5194
|
-
const handleApply =
|
|
5223
|
+
const handleApply = useCallback23(() => {
|
|
5195
5224
|
onChange?.(internalValues);
|
|
5196
5225
|
onClose?.();
|
|
5197
5226
|
}, [onChange, onClose, internalValues]);
|
|
5198
|
-
const handleClear =
|
|
5227
|
+
const handleClear = useCallback23(() => {
|
|
5199
5228
|
const clearedValues = resetValues || {};
|
|
5200
5229
|
setInternalValues(clearedValues);
|
|
5201
5230
|
onChange?.(clearedValues);
|
|
5202
5231
|
onClose?.();
|
|
5203
5232
|
}, [resetValues, setInternalValues, onChange, onClose]);
|
|
5204
|
-
return /* @__PURE__ */
|
|
5233
|
+
return /* @__PURE__ */ React41.createElement(
|
|
5205
5234
|
ModalDialog,
|
|
5206
5235
|
{
|
|
5207
5236
|
sx: {
|
|
@@ -5211,9 +5240,9 @@ function FilterMenu(props) {
|
|
|
5211
5240
|
top: "initial"
|
|
5212
5241
|
}
|
|
5213
5242
|
},
|
|
5214
|
-
/* @__PURE__ */
|
|
5243
|
+
/* @__PURE__ */ React41.createElement(DialogContent, { sx: { paddingTop: 5 } }, /* @__PURE__ */ React41.createElement(Stack12, { spacing: 6 }, filters?.map((filter) => {
|
|
5215
5244
|
const FilterComponent = componentMap[filter.type];
|
|
5216
|
-
return FilterComponent ? /* @__PURE__ */
|
|
5245
|
+
return FilterComponent ? /* @__PURE__ */ React41.createElement(
|
|
5217
5246
|
FilterComponent,
|
|
5218
5247
|
{
|
|
5219
5248
|
key: filter.id,
|
|
@@ -5225,13 +5254,13 @@ function FilterMenu(props) {
|
|
|
5225
5254
|
}
|
|
5226
5255
|
) : null;
|
|
5227
5256
|
}))),
|
|
5228
|
-
/* @__PURE__ */
|
|
5257
|
+
/* @__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"))
|
|
5229
5258
|
);
|
|
5230
5259
|
}
|
|
5231
5260
|
FilterMenu.displayName = "FilterMenu";
|
|
5232
5261
|
|
|
5233
5262
|
// src/components/Uploader/Uploader.tsx
|
|
5234
|
-
import
|
|
5263
|
+
import React42, { useCallback as useCallback24, useEffect as useEffect10, useMemo as useMemo15, useRef as useRef9, useState as useState13 } from "react";
|
|
5235
5264
|
import { styled as styled21, Input as Input3 } from "@mui/joy";
|
|
5236
5265
|
import MuiFileUploadIcon from "@mui/icons-material/CloudUploadRounded";
|
|
5237
5266
|
import MuiUploadFileIcon from "@mui/icons-material/UploadFileRounded";
|
|
@@ -5308,7 +5337,7 @@ var getFileSize = (n) => {
|
|
|
5308
5337
|
};
|
|
5309
5338
|
var Preview = (props) => {
|
|
5310
5339
|
const { files, uploaded, onDelete } = props;
|
|
5311
|
-
return /* @__PURE__ */
|
|
5340
|
+
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(
|
|
5312
5341
|
Typography_default,
|
|
5313
5342
|
{
|
|
5314
5343
|
level: "body-sm",
|
|
@@ -5320,7 +5349,7 @@ var Preview = (props) => {
|
|
|
5320
5349
|
}
|
|
5321
5350
|
},
|
|
5322
5351
|
file.name
|
|
5323
|
-
), !!file.size && /* @__PURE__ */
|
|
5352
|
+
), !!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))))));
|
|
5324
5353
|
};
|
|
5325
5354
|
var UploaderRoot = styled21(Stack_default, {
|
|
5326
5355
|
name: "Uploader",
|
|
@@ -5363,7 +5392,7 @@ var UploaderIcon = styled21(MuiFileUploadIcon, {
|
|
|
5363
5392
|
}
|
|
5364
5393
|
})
|
|
5365
5394
|
);
|
|
5366
|
-
var Uploader =
|
|
5395
|
+
var Uploader = React42.memo(
|
|
5367
5396
|
(props) => {
|
|
5368
5397
|
const {
|
|
5369
5398
|
accept,
|
|
@@ -5431,7 +5460,7 @@ var Uploader = React41.memo(
|
|
|
5431
5460
|
() => !maxCount || maxCount && [...uploaded, ...files].length !== maxCount,
|
|
5432
5461
|
[files, maxCount, uploaded]
|
|
5433
5462
|
);
|
|
5434
|
-
const addFiles =
|
|
5463
|
+
const addFiles = useCallback24(
|
|
5435
5464
|
(uploads) => {
|
|
5436
5465
|
try {
|
|
5437
5466
|
const types = parsedAccepts.map((type) => type.replace(".", "")) || [];
|
|
@@ -5523,14 +5552,14 @@ var Uploader = React41.memo(
|
|
|
5523
5552
|
}
|
|
5524
5553
|
}
|
|
5525
5554
|
}, [inputRef, files, minCount]);
|
|
5526
|
-
const handleFileChanged =
|
|
5555
|
+
const handleFileChanged = useCallback24(
|
|
5527
5556
|
(event) => {
|
|
5528
5557
|
const files2 = Array.from(event.target.files || []);
|
|
5529
5558
|
addFiles(files2);
|
|
5530
5559
|
},
|
|
5531
5560
|
[addFiles]
|
|
5532
5561
|
);
|
|
5533
|
-
const handleDeleteFile =
|
|
5562
|
+
const handleDeleteFile = useCallback24(
|
|
5534
5563
|
(deletedFile) => {
|
|
5535
5564
|
if (deletedFile instanceof File) {
|
|
5536
5565
|
setFiles((current) => {
|
|
@@ -5550,10 +5579,10 @@ var Uploader = React41.memo(
|
|
|
5550
5579
|
},
|
|
5551
5580
|
[name, onChange, onDelete]
|
|
5552
5581
|
);
|
|
5553
|
-
const handleUploaderButtonClick =
|
|
5582
|
+
const handleUploaderButtonClick = useCallback24(() => {
|
|
5554
5583
|
inputRef.current?.click();
|
|
5555
5584
|
}, []);
|
|
5556
|
-
const uploader = /* @__PURE__ */
|
|
5585
|
+
const uploader = /* @__PURE__ */ React42.createElement(
|
|
5557
5586
|
FileDropZone,
|
|
5558
5587
|
{
|
|
5559
5588
|
state: previewState,
|
|
@@ -5562,8 +5591,8 @@ var Uploader = React41.memo(
|
|
|
5562
5591
|
ref: dropZoneRef,
|
|
5563
5592
|
onClick: handleUploaderButtonClick
|
|
5564
5593
|
},
|
|
5565
|
-
/* @__PURE__ */
|
|
5566
|
-
/* @__PURE__ */
|
|
5594
|
+
/* @__PURE__ */ React42.createElement(Stack_default, { alignItems: "center", gap: 1 }, /* @__PURE__ */ React42.createElement(UploaderIcon, { state: previewState, error: !!(error || errorText), disabled })),
|
|
5595
|
+
/* @__PURE__ */ React42.createElement(
|
|
5567
5596
|
VisuallyHiddenInput,
|
|
5568
5597
|
{
|
|
5569
5598
|
disabled,
|
|
@@ -5586,7 +5615,7 @@ var Uploader = React41.memo(
|
|
|
5586
5615
|
}
|
|
5587
5616
|
)
|
|
5588
5617
|
);
|
|
5589
|
-
return /* @__PURE__ */
|
|
5618
|
+
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 }));
|
|
5590
5619
|
}
|
|
5591
5620
|
);
|
|
5592
5621
|
Uploader.displayName = "Uploader";
|
|
@@ -5595,7 +5624,7 @@ Uploader.displayName = "Uploader";
|
|
|
5595
5624
|
import { Grid } from "@mui/joy";
|
|
5596
5625
|
|
|
5597
5626
|
// src/components/IconMenuButton/IconMenuButton.tsx
|
|
5598
|
-
import
|
|
5627
|
+
import React43 from "react";
|
|
5599
5628
|
import { MenuButton as JoyMenuButton2, IconButton as JoyIconButton2 } from "@mui/joy";
|
|
5600
5629
|
function IconMenuButton(props) {
|
|
5601
5630
|
const {
|
|
@@ -5609,7 +5638,7 @@ function IconMenuButton(props) {
|
|
|
5609
5638
|
placement = "bottom"
|
|
5610
5639
|
} = props;
|
|
5611
5640
|
if (!items.length) {
|
|
5612
|
-
return /* @__PURE__ */
|
|
5641
|
+
return /* @__PURE__ */ React43.createElement(
|
|
5613
5642
|
JoyIconButton2,
|
|
5614
5643
|
{
|
|
5615
5644
|
component: props.buttonComponent ?? "button",
|
|
@@ -5623,7 +5652,7 @@ function IconMenuButton(props) {
|
|
|
5623
5652
|
icon
|
|
5624
5653
|
);
|
|
5625
5654
|
}
|
|
5626
|
-
return /* @__PURE__ */
|
|
5655
|
+
return /* @__PURE__ */ React43.createElement(Dropdown_default, null, /* @__PURE__ */ React43.createElement(
|
|
5627
5656
|
JoyMenuButton2,
|
|
5628
5657
|
{
|
|
5629
5658
|
slots: { root: JoyIconButton2 },
|
|
@@ -5640,12 +5669,12 @@ function IconMenuButton(props) {
|
|
|
5640
5669
|
}
|
|
5641
5670
|
},
|
|
5642
5671
|
icon
|
|
5643
|
-
), /* @__PURE__ */
|
|
5672
|
+
), /* @__PURE__ */ React43.createElement(Menu, { placement, size }, items.map((i) => /* @__PURE__ */ React43.createElement(MenuItem, { key: i.text, component: i.component, ...i.componentProps ?? {} }, i.text))));
|
|
5644
5673
|
}
|
|
5645
5674
|
IconMenuButton.displayName = "IconMenuButton";
|
|
5646
5675
|
|
|
5647
5676
|
// src/components/Markdown/Markdown.tsx
|
|
5648
|
-
import
|
|
5677
|
+
import React44, { lazy, Suspense, useEffect as useEffect11, useState as useState14 } from "react";
|
|
5649
5678
|
import { Skeleton } from "@mui/joy";
|
|
5650
5679
|
import { Link as Link2 } from "@mui/joy";
|
|
5651
5680
|
import remarkGfm from "remark-gfm";
|
|
@@ -5674,12 +5703,12 @@ var Markdown = (props) => {
|
|
|
5674
5703
|
if (!rehypeAccent2) {
|
|
5675
5704
|
return null;
|
|
5676
5705
|
}
|
|
5677
|
-
return /* @__PURE__ */
|
|
5706
|
+
return /* @__PURE__ */ React44.createElement(Typography, { component: "div", color, textColor, level: defaultLevel, ...innerProps }, /* @__PURE__ */ React44.createElement(
|
|
5678
5707
|
Suspense,
|
|
5679
5708
|
{
|
|
5680
|
-
fallback: fallback || /* @__PURE__ */
|
|
5709
|
+
fallback: fallback || /* @__PURE__ */ React44.createElement(Typography, null, /* @__PURE__ */ React44.createElement(Skeleton, null, content || ""))
|
|
5681
5710
|
},
|
|
5682
|
-
/* @__PURE__ */
|
|
5711
|
+
/* @__PURE__ */ React44.createElement(
|
|
5683
5712
|
LazyReactMarkdown,
|
|
5684
5713
|
{
|
|
5685
5714
|
...markdownOptions,
|
|
@@ -5687,15 +5716,15 @@ var Markdown = (props) => {
|
|
|
5687
5716
|
rehypePlugins: [[rehypeAccent2, { accentColor }]],
|
|
5688
5717
|
remarkPlugins: [remarkGfm],
|
|
5689
5718
|
components: {
|
|
5690
|
-
h1: ({ children }) => /* @__PURE__ */
|
|
5691
|
-
h2: ({ children }) => /* @__PURE__ */
|
|
5692
|
-
h3: ({ children }) => /* @__PURE__ */
|
|
5693
|
-
h4: ({ children }) => /* @__PURE__ */
|
|
5694
|
-
p: ({ children, node }) => /* @__PURE__ */
|
|
5695
|
-
a: ({ children, href }) => /* @__PURE__ */
|
|
5696
|
-
hr: () => /* @__PURE__ */
|
|
5697
|
-
b: ({ children }) => /* @__PURE__ */
|
|
5698
|
-
strong: ({ children }) => /* @__PURE__ */
|
|
5719
|
+
h1: ({ children }) => /* @__PURE__ */ React44.createElement(Typography, { color, textColor, level: "h1" }, children),
|
|
5720
|
+
h2: ({ children }) => /* @__PURE__ */ React44.createElement(Typography, { color, textColor, level: "h2" }, children),
|
|
5721
|
+
h3: ({ children }) => /* @__PURE__ */ React44.createElement(Typography, { color, textColor, level: "h3" }, children),
|
|
5722
|
+
h4: ({ children }) => /* @__PURE__ */ React44.createElement(Typography, { color, textColor, level: "h4" }, children),
|
|
5723
|
+
p: ({ children, node }) => /* @__PURE__ */ React44.createElement(Typography, { color, textColor, level: defaultLevel, ...node?.properties }, children),
|
|
5724
|
+
a: ({ children, href }) => /* @__PURE__ */ React44.createElement(Link2, { href, target: defaultLinkAction }, children),
|
|
5725
|
+
hr: () => /* @__PURE__ */ React44.createElement(Divider, null),
|
|
5726
|
+
b: ({ children }) => /* @__PURE__ */ React44.createElement(Typography, { fontWeight: boldFontWeight }, children),
|
|
5727
|
+
strong: ({ children }) => /* @__PURE__ */ React44.createElement(Typography, { fontWeight: boldFontWeight }, children),
|
|
5699
5728
|
...markdownOptions?.components
|
|
5700
5729
|
}
|
|
5701
5730
|
}
|
|
@@ -5705,7 +5734,7 @@ var Markdown = (props) => {
|
|
|
5705
5734
|
Markdown.displayName = "Markdown";
|
|
5706
5735
|
|
|
5707
5736
|
// src/components/MenuButton/MenuButton.tsx
|
|
5708
|
-
import
|
|
5737
|
+
import React45 from "react";
|
|
5709
5738
|
import { MenuButton as JoyMenuButton3, Button as JoyButton2 } from "@mui/joy";
|
|
5710
5739
|
import ExpandMoreIcon from "@mui/icons-material/ExpandMore";
|
|
5711
5740
|
function MenuButton(props) {
|
|
@@ -5723,7 +5752,7 @@ function MenuButton(props) {
|
|
|
5723
5752
|
placement = "bottom"
|
|
5724
5753
|
} = props;
|
|
5725
5754
|
if (!items.length) {
|
|
5726
|
-
return /* @__PURE__ */
|
|
5755
|
+
return /* @__PURE__ */ React45.createElement(
|
|
5727
5756
|
JoyButton2,
|
|
5728
5757
|
{
|
|
5729
5758
|
component: props.buttonComponent ?? "button",
|
|
@@ -5734,12 +5763,12 @@ function MenuButton(props) {
|
|
|
5734
5763
|
loading,
|
|
5735
5764
|
startDecorator,
|
|
5736
5765
|
...props.buttonComponentProps ?? {},
|
|
5737
|
-
endDecorator: showIcon ? /* @__PURE__ */
|
|
5766
|
+
endDecorator: showIcon ? /* @__PURE__ */ React45.createElement(React45.Fragment, null, endDecorator, /* @__PURE__ */ React45.createElement(ExpandMoreIcon, null)) : /* @__PURE__ */ React45.createElement(React45.Fragment, null, endDecorator)
|
|
5738
5767
|
},
|
|
5739
5768
|
buttonText
|
|
5740
5769
|
);
|
|
5741
5770
|
}
|
|
5742
|
-
return /* @__PURE__ */
|
|
5771
|
+
return /* @__PURE__ */ React45.createElement(Dropdown_default, null, /* @__PURE__ */ React45.createElement(
|
|
5743
5772
|
JoyMenuButton3,
|
|
5744
5773
|
{
|
|
5745
5774
|
component: props.buttonComponent ?? "button",
|
|
@@ -5750,15 +5779,15 @@ function MenuButton(props) {
|
|
|
5750
5779
|
loading,
|
|
5751
5780
|
startDecorator,
|
|
5752
5781
|
...props.buttonComponentProps ?? {},
|
|
5753
|
-
endDecorator: showIcon ? /* @__PURE__ */
|
|
5782
|
+
endDecorator: showIcon ? /* @__PURE__ */ React45.createElement(React45.Fragment, null, endDecorator, /* @__PURE__ */ React45.createElement(ExpandMoreIcon, null)) : /* @__PURE__ */ React45.createElement(React45.Fragment, null, endDecorator)
|
|
5754
5783
|
},
|
|
5755
5784
|
buttonText
|
|
5756
|
-
), /* @__PURE__ */
|
|
5785
|
+
), /* @__PURE__ */ React45.createElement(Menu, { placement, size }, items.map((i) => /* @__PURE__ */ React45.createElement(MenuItem, { key: i.text, component: i.component, ...i.componentProps ?? {} }, i.text))));
|
|
5757
5786
|
}
|
|
5758
5787
|
MenuButton.displayName = "MenuButton";
|
|
5759
5788
|
|
|
5760
5789
|
// src/components/MonthPicker/MonthPicker.tsx
|
|
5761
|
-
import
|
|
5790
|
+
import React46, { forwardRef as forwardRef9, useCallback as useCallback25, useEffect as useEffect12, useImperativeHandle as useImperativeHandle4, useRef as useRef10, useState as useState15 } from "react";
|
|
5762
5791
|
import CalendarTodayIcon3 from "@mui/icons-material/CalendarToday";
|
|
5763
5792
|
import { styled as styled22, useThemeProps as useThemeProps7 } from "@mui/joy";
|
|
5764
5793
|
import { FocusTrap as FocusTrap3, ClickAwayListener as ClickAwayListener3, Popper as Popper4 } from "@mui/base";
|
|
@@ -5845,9 +5874,9 @@ var MonthPicker = forwardRef9((inProps, ref) => {
|
|
|
5845
5874
|
const [value, setValue, isControlled] = useControlledState(
|
|
5846
5875
|
props.value,
|
|
5847
5876
|
props.defaultValue || "",
|
|
5848
|
-
|
|
5877
|
+
useCallback25((value2) => onChange?.({ target: { name: props.name, value: value2 } }), [props.name, onChange])
|
|
5849
5878
|
);
|
|
5850
|
-
const getFormattedDisplayValue =
|
|
5879
|
+
const getFormattedDisplayValue = useCallback25(
|
|
5851
5880
|
(inputValue) => {
|
|
5852
5881
|
if (!inputValue) return "";
|
|
5853
5882
|
try {
|
|
@@ -5870,7 +5899,7 @@ var MonthPicker = forwardRef9((inProps, ref) => {
|
|
|
5870
5899
|
useEffect12(() => {
|
|
5871
5900
|
setDisplayValue(getFormattedDisplayValue(value));
|
|
5872
5901
|
}, [value, getFormattedDisplayValue]);
|
|
5873
|
-
const handleChange =
|
|
5902
|
+
const handleChange = useCallback25(
|
|
5874
5903
|
(event) => {
|
|
5875
5904
|
const newValue = event.target.value;
|
|
5876
5905
|
setValue(newValue);
|
|
@@ -5880,21 +5909,21 @@ var MonthPicker = forwardRef9((inProps, ref) => {
|
|
|
5880
5909
|
},
|
|
5881
5910
|
[setValue, getFormattedDisplayValue, isControlled]
|
|
5882
5911
|
);
|
|
5883
|
-
const handleCalendarToggle =
|
|
5912
|
+
const handleCalendarToggle = useCallback25(
|
|
5884
5913
|
(event) => {
|
|
5885
5914
|
setAnchorEl(anchorEl ? null : event.currentTarget);
|
|
5886
5915
|
innerRef.current?.focus();
|
|
5887
5916
|
},
|
|
5888
5917
|
[anchorEl, setAnchorEl, innerRef]
|
|
5889
5918
|
);
|
|
5890
|
-
const handleInputMouseDown =
|
|
5919
|
+
const handleInputMouseDown = useCallback25(
|
|
5891
5920
|
(event) => {
|
|
5892
5921
|
event.preventDefault();
|
|
5893
5922
|
buttonRef.current?.focus();
|
|
5894
5923
|
},
|
|
5895
5924
|
[buttonRef]
|
|
5896
5925
|
);
|
|
5897
|
-
return /* @__PURE__ */
|
|
5926
|
+
return /* @__PURE__ */ React46.createElement(MonthPickerRoot, null, /* @__PURE__ */ React46.createElement(FocusTrap3, { open: true }, /* @__PURE__ */ React46.createElement(React46.Fragment, null, /* @__PURE__ */ React46.createElement(
|
|
5898
5927
|
Input_default,
|
|
5899
5928
|
{
|
|
5900
5929
|
...innerProps,
|
|
@@ -5924,7 +5953,7 @@ var MonthPicker = forwardRef9((inProps, ref) => {
|
|
|
5924
5953
|
// NOTE: placeholder char 를 텍스트로 표시하므로 동일한 너비를 가지는 mono font 를 사용해야 이질감이 없다.
|
|
5925
5954
|
fontFamily: "monospace"
|
|
5926
5955
|
},
|
|
5927
|
-
endDecorator: /* @__PURE__ */
|
|
5956
|
+
endDecorator: /* @__PURE__ */ React46.createElement(
|
|
5928
5957
|
IconButton_default,
|
|
5929
5958
|
{
|
|
5930
5959
|
ref: buttonRef,
|
|
@@ -5936,12 +5965,12 @@ var MonthPicker = forwardRef9((inProps, ref) => {
|
|
|
5936
5965
|
"aria-expanded": open,
|
|
5937
5966
|
disabled
|
|
5938
5967
|
},
|
|
5939
|
-
/* @__PURE__ */
|
|
5968
|
+
/* @__PURE__ */ React46.createElement(CalendarTodayIcon3, null)
|
|
5940
5969
|
),
|
|
5941
5970
|
label,
|
|
5942
5971
|
helperText
|
|
5943
5972
|
}
|
|
5944
|
-
), open && /* @__PURE__ */
|
|
5973
|
+
), open && /* @__PURE__ */ React46.createElement(ClickAwayListener3, { onClickAway: () => setAnchorEl(null) }, /* @__PURE__ */ React46.createElement(
|
|
5945
5974
|
StyledPopper3,
|
|
5946
5975
|
{
|
|
5947
5976
|
id: "month-picker-popper",
|
|
@@ -5960,7 +5989,7 @@ var MonthPicker = forwardRef9((inProps, ref) => {
|
|
|
5960
5989
|
"aria-label": "Calendar Tooltip",
|
|
5961
5990
|
"aria-expanded": open
|
|
5962
5991
|
},
|
|
5963
|
-
/* @__PURE__ */
|
|
5992
|
+
/* @__PURE__ */ React46.createElement(CalendarSheet3, { tabIndex: -1, role: "presentation" }, /* @__PURE__ */ React46.createElement(
|
|
5964
5993
|
Calendar_default,
|
|
5965
5994
|
{
|
|
5966
5995
|
view: "month",
|
|
@@ -5981,14 +6010,14 @@ var MonthPicker = forwardRef9((inProps, ref) => {
|
|
|
5981
6010
|
disablePast,
|
|
5982
6011
|
locale
|
|
5983
6012
|
}
|
|
5984
|
-
), /* @__PURE__ */
|
|
6013
|
+
), /* @__PURE__ */ React46.createElement(
|
|
5985
6014
|
DialogActions_default,
|
|
5986
6015
|
{
|
|
5987
6016
|
sx: {
|
|
5988
6017
|
p: 1
|
|
5989
6018
|
}
|
|
5990
6019
|
},
|
|
5991
|
-
/* @__PURE__ */
|
|
6020
|
+
/* @__PURE__ */ React46.createElement(
|
|
5992
6021
|
Button_default,
|
|
5993
6022
|
{
|
|
5994
6023
|
size,
|
|
@@ -6011,7 +6040,7 @@ var MonthPicker = forwardRef9((inProps, ref) => {
|
|
|
6011
6040
|
});
|
|
6012
6041
|
|
|
6013
6042
|
// src/components/MonthRangePicker/MonthRangePicker.tsx
|
|
6014
|
-
import
|
|
6043
|
+
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";
|
|
6015
6044
|
import { IMaskInput as IMaskInput3, IMask as IMask3 } from "react-imask";
|
|
6016
6045
|
import CalendarTodayIcon4 from "@mui/icons-material/CalendarToday";
|
|
6017
6046
|
import { styled as styled23, useThemeProps as useThemeProps8 } from "@mui/joy";
|
|
@@ -6069,9 +6098,9 @@ var parseDates2 = (str) => {
|
|
|
6069
6098
|
var formatToPattern3 = (format) => {
|
|
6070
6099
|
return `${format} - ${format}`.replace(/YYYY/g, "Y").replace(/MM/g, "m").replace(/[^YMm\s]/g, (match) => `${match}\``);
|
|
6071
6100
|
};
|
|
6072
|
-
var TextMaskAdapter9 =
|
|
6101
|
+
var TextMaskAdapter9 = React47.forwardRef(function TextMaskAdapter10(props, ref) {
|
|
6073
6102
|
const { onChange, format, ...other } = props;
|
|
6074
|
-
return /* @__PURE__ */
|
|
6103
|
+
return /* @__PURE__ */ React47.createElement(
|
|
6075
6104
|
IMaskInput3,
|
|
6076
6105
|
{
|
|
6077
6106
|
...other,
|
|
@@ -6123,7 +6152,7 @@ var MonthRangePicker = forwardRef10((inProps, ref) => {
|
|
|
6123
6152
|
const [value, setValue] = useControlledState(
|
|
6124
6153
|
props.value,
|
|
6125
6154
|
props.defaultValue || "",
|
|
6126
|
-
|
|
6155
|
+
useCallback26((value2) => onChange?.({ target: { name: props.name, value: value2 } }), [props.name, onChange])
|
|
6127
6156
|
);
|
|
6128
6157
|
const [anchorEl, setAnchorEl] = useState16(null);
|
|
6129
6158
|
const open = Boolean(anchorEl);
|
|
@@ -6134,20 +6163,20 @@ var MonthRangePicker = forwardRef10((inProps, ref) => {
|
|
|
6134
6163
|
}
|
|
6135
6164
|
}, [anchorEl, innerRef]);
|
|
6136
6165
|
useImperativeHandle5(ref, () => innerRef.current, [innerRef]);
|
|
6137
|
-
const handleChange =
|
|
6166
|
+
const handleChange = useCallback26(
|
|
6138
6167
|
(event) => {
|
|
6139
6168
|
setValue(event.target.value);
|
|
6140
6169
|
},
|
|
6141
6170
|
[setValue]
|
|
6142
6171
|
);
|
|
6143
|
-
const handleCalendarToggle =
|
|
6172
|
+
const handleCalendarToggle = useCallback26(
|
|
6144
6173
|
(event) => {
|
|
6145
6174
|
setAnchorEl(anchorEl ? null : event.currentTarget);
|
|
6146
6175
|
innerRef.current?.focus();
|
|
6147
6176
|
},
|
|
6148
6177
|
[anchorEl, setAnchorEl, innerRef]
|
|
6149
6178
|
);
|
|
6150
|
-
const handleCalendarChange =
|
|
6179
|
+
const handleCalendarChange = useCallback26(
|
|
6151
6180
|
([date1, date2]) => {
|
|
6152
6181
|
if (!date1 || !date2) return;
|
|
6153
6182
|
setValue(formatValueString4([date1, date2], format));
|
|
@@ -6155,7 +6184,7 @@ var MonthRangePicker = forwardRef10((inProps, ref) => {
|
|
|
6155
6184
|
},
|
|
6156
6185
|
[setValue, setAnchorEl, format]
|
|
6157
6186
|
);
|
|
6158
|
-
return /* @__PURE__ */
|
|
6187
|
+
return /* @__PURE__ */ React47.createElement(MonthRangePickerRoot, null, /* @__PURE__ */ React47.createElement(FocusTrap4, { open: true }, /* @__PURE__ */ React47.createElement(React47.Fragment, null, /* @__PURE__ */ React47.createElement(
|
|
6159
6188
|
Input_default,
|
|
6160
6189
|
{
|
|
6161
6190
|
...innerProps,
|
|
@@ -6177,7 +6206,7 @@ var MonthRangePicker = forwardRef10((inProps, ref) => {
|
|
|
6177
6206
|
// NOTE: placeholder char 를 텍스트로 표시하므로 동일한 너비를 가지는 mono font 를 사용해야 이질감이 없다.
|
|
6178
6207
|
fontFamily: "monospace"
|
|
6179
6208
|
},
|
|
6180
|
-
endDecorator: /* @__PURE__ */
|
|
6209
|
+
endDecorator: /* @__PURE__ */ React47.createElement(
|
|
6181
6210
|
IconButton_default,
|
|
6182
6211
|
{
|
|
6183
6212
|
variant: "plain",
|
|
@@ -6187,12 +6216,12 @@ var MonthRangePicker = forwardRef10((inProps, ref) => {
|
|
|
6187
6216
|
"aria-haspopup": "dialog",
|
|
6188
6217
|
"aria-expanded": open
|
|
6189
6218
|
},
|
|
6190
|
-
/* @__PURE__ */
|
|
6219
|
+
/* @__PURE__ */ React47.createElement(CalendarTodayIcon4, null)
|
|
6191
6220
|
),
|
|
6192
6221
|
label,
|
|
6193
6222
|
helperText
|
|
6194
6223
|
}
|
|
6195
|
-
), open && /* @__PURE__ */
|
|
6224
|
+
), open && /* @__PURE__ */ React47.createElement(ClickAwayListener4, { onClickAway: () => setAnchorEl(null) }, /* @__PURE__ */ React47.createElement(
|
|
6196
6225
|
StyledPopper4,
|
|
6197
6226
|
{
|
|
6198
6227
|
id: "month-range-picker-popper",
|
|
@@ -6211,7 +6240,7 @@ var MonthRangePicker = forwardRef10((inProps, ref) => {
|
|
|
6211
6240
|
"aria-label": "Calendar Tooltip",
|
|
6212
6241
|
"aria-expanded": open
|
|
6213
6242
|
},
|
|
6214
|
-
/* @__PURE__ */
|
|
6243
|
+
/* @__PURE__ */ React47.createElement(CalendarSheet4, { tabIndex: -1, role: "presentation" }, /* @__PURE__ */ React47.createElement(
|
|
6215
6244
|
Calendar_default,
|
|
6216
6245
|
{
|
|
6217
6246
|
view: "month",
|
|
@@ -6224,14 +6253,14 @@ var MonthRangePicker = forwardRef10((inProps, ref) => {
|
|
|
6224
6253
|
disableFuture,
|
|
6225
6254
|
disablePast
|
|
6226
6255
|
}
|
|
6227
|
-
), /* @__PURE__ */
|
|
6256
|
+
), /* @__PURE__ */ React47.createElement(
|
|
6228
6257
|
DialogActions_default,
|
|
6229
6258
|
{
|
|
6230
6259
|
sx: {
|
|
6231
6260
|
p: 1
|
|
6232
6261
|
}
|
|
6233
6262
|
},
|
|
6234
|
-
/* @__PURE__ */
|
|
6263
|
+
/* @__PURE__ */ React47.createElement(
|
|
6235
6264
|
Button_default,
|
|
6236
6265
|
{
|
|
6237
6266
|
size,
|
|
@@ -6250,14 +6279,14 @@ var MonthRangePicker = forwardRef10((inProps, ref) => {
|
|
|
6250
6279
|
MonthRangePicker.displayName = "MonthRangePicker";
|
|
6251
6280
|
|
|
6252
6281
|
// src/components/NavigationGroup/NavigationGroup.tsx
|
|
6253
|
-
import
|
|
6282
|
+
import React48 from "react";
|
|
6254
6283
|
import {
|
|
6255
6284
|
Accordion as JoyAccordion2,
|
|
6256
6285
|
AccordionSummary as JoyAccordionSummary2,
|
|
6257
6286
|
AccordionDetails as JoyAccordionDetails2,
|
|
6258
6287
|
styled as styled24,
|
|
6259
6288
|
accordionSummaryClasses,
|
|
6260
|
-
Stack as
|
|
6289
|
+
Stack as Stack13
|
|
6261
6290
|
} from "@mui/joy";
|
|
6262
6291
|
var AccordionSummary2 = styled24(JoyAccordionSummary2, {
|
|
6263
6292
|
name: "NavigationGroup",
|
|
@@ -6281,11 +6310,11 @@ var AccordionDetails2 = styled24(JoyAccordionDetails2, {
|
|
|
6281
6310
|
}));
|
|
6282
6311
|
function NavigationGroup(props) {
|
|
6283
6312
|
const { title, children, startDecorator, level, ...rest } = props;
|
|
6284
|
-
return /* @__PURE__ */
|
|
6313
|
+
return /* @__PURE__ */ React48.createElement(JoyAccordion2, { ...rest }, /* @__PURE__ */ React48.createElement(AccordionSummary2, { useIcon: !!startDecorator, level }, /* @__PURE__ */ React48.createElement(Stack13, { direction: "row", gap: 4 }, startDecorator, title)), /* @__PURE__ */ React48.createElement(AccordionDetails2, null, children));
|
|
6285
6314
|
}
|
|
6286
6315
|
|
|
6287
6316
|
// src/components/NavigationItem/NavigationItem.tsx
|
|
6288
|
-
import
|
|
6317
|
+
import React49 from "react";
|
|
6289
6318
|
import {
|
|
6290
6319
|
ListItem as JoyListItem,
|
|
6291
6320
|
ListItemButton as JoyListItemButton,
|
|
@@ -6320,7 +6349,7 @@ function NavigationItem(props) {
|
|
|
6320
6349
|
const handleClick = () => {
|
|
6321
6350
|
onClick?.(id);
|
|
6322
6351
|
};
|
|
6323
|
-
return /* @__PURE__ */
|
|
6352
|
+
return /* @__PURE__ */ React49.createElement(JoyListItem, { ...rest }, /* @__PURE__ */ React49.createElement(
|
|
6324
6353
|
ListItemButton,
|
|
6325
6354
|
{
|
|
6326
6355
|
level,
|
|
@@ -6329,21 +6358,21 @@ function NavigationItem(props) {
|
|
|
6329
6358
|
"aria-current": selected,
|
|
6330
6359
|
onClick: handleClick
|
|
6331
6360
|
},
|
|
6332
|
-
startDecorator && /* @__PURE__ */
|
|
6361
|
+
startDecorator && /* @__PURE__ */ React49.createElement(JoyListItemDecorator, null, startDecorator),
|
|
6333
6362
|
children
|
|
6334
6363
|
));
|
|
6335
6364
|
}
|
|
6336
6365
|
|
|
6337
6366
|
// src/components/Navigator/Navigator.tsx
|
|
6338
|
-
import
|
|
6367
|
+
import React50 from "react";
|
|
6339
6368
|
function Navigator(props) {
|
|
6340
6369
|
const { items, level = 0, onSelect } = props;
|
|
6341
6370
|
const handleItemClick = (id) => {
|
|
6342
6371
|
onSelect?.(id);
|
|
6343
6372
|
};
|
|
6344
|
-
return /* @__PURE__ */
|
|
6373
|
+
return /* @__PURE__ */ React50.createElement("div", null, items.map((item, index) => {
|
|
6345
6374
|
if (item.type === "item") {
|
|
6346
|
-
return /* @__PURE__ */
|
|
6375
|
+
return /* @__PURE__ */ React50.createElement(
|
|
6347
6376
|
NavigationItem,
|
|
6348
6377
|
{
|
|
6349
6378
|
key: item.id,
|
|
@@ -6356,7 +6385,7 @@ function Navigator(props) {
|
|
|
6356
6385
|
item.title
|
|
6357
6386
|
);
|
|
6358
6387
|
} else if (item.type === "group") {
|
|
6359
|
-
return /* @__PURE__ */
|
|
6388
|
+
return /* @__PURE__ */ React50.createElement(
|
|
6360
6389
|
NavigationGroup,
|
|
6361
6390
|
{
|
|
6362
6391
|
key: `${item.title}-${index}`,
|
|
@@ -6374,7 +6403,7 @@ function Navigator(props) {
|
|
|
6374
6403
|
Navigator.displayName = "Navigator";
|
|
6375
6404
|
|
|
6376
6405
|
// src/components/ProfileMenu/ProfileMenu.tsx
|
|
6377
|
-
import
|
|
6406
|
+
import React51, { useCallback as useCallback27, useMemo as useMemo17 } from "react";
|
|
6378
6407
|
import { Dropdown as Dropdown2, ListDivider, menuItemClasses, styled as styled26, MenuButton as MenuButton2 } from "@mui/joy";
|
|
6379
6408
|
import { ClickAwayListener as ClickAwayListener5 } from "@mui/base";
|
|
6380
6409
|
import DropdownIcon from "@mui/icons-material/ArrowDropDown";
|
|
@@ -6386,7 +6415,7 @@ function ProfileCard(props) {
|
|
|
6386
6415
|
const { children, chip, caption, size } = props;
|
|
6387
6416
|
const captionLevel = useMemo17(() => size === "sm" ? "body-xs" : "body-sm", [size]);
|
|
6388
6417
|
const nameLevel = useMemo17(() => size === "sm" ? "body-sm" : "body-md", [size]);
|
|
6389
|
-
return /* @__PURE__ */
|
|
6418
|
+
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));
|
|
6390
6419
|
}
|
|
6391
6420
|
ProfileCard.displayName = "ProfileCard";
|
|
6392
6421
|
var StyledProfileMenuButton = styled26(MenuButton2, {
|
|
@@ -6398,16 +6427,16 @@ var StyledProfileMenuButton = styled26(MenuButton2, {
|
|
|
6398
6427
|
}));
|
|
6399
6428
|
function ProfileMenuButton(props) {
|
|
6400
6429
|
const { size = "md", src, alt, children, getInitial, ...innerProps } = props;
|
|
6401
|
-
return /* @__PURE__ */
|
|
6430
|
+
return /* @__PURE__ */ React51.createElement(
|
|
6402
6431
|
StyledProfileMenuButton,
|
|
6403
6432
|
{
|
|
6404
6433
|
variant: "plain",
|
|
6405
6434
|
color: "neutral",
|
|
6406
6435
|
size,
|
|
6407
|
-
endDecorator: /* @__PURE__ */
|
|
6436
|
+
endDecorator: /* @__PURE__ */ React51.createElement(DropdownIcon, null),
|
|
6408
6437
|
...innerProps
|
|
6409
6438
|
},
|
|
6410
|
-
/* @__PURE__ */
|
|
6439
|
+
/* @__PURE__ */ React51.createElement(Avatar, { variant: "soft", color: "primary", size, src, alt, getInitial }, children)
|
|
6411
6440
|
);
|
|
6412
6441
|
}
|
|
6413
6442
|
ProfileMenuButton.displayName = "ProfileMenuButton";
|
|
@@ -6426,9 +6455,9 @@ function ProfileMenu(props) {
|
|
|
6426
6455
|
const [open, setOpen] = useControlledState(
|
|
6427
6456
|
_open,
|
|
6428
6457
|
defaultOpen ?? false,
|
|
6429
|
-
|
|
6458
|
+
useCallback27((value) => onOpenChange?.(value), [onOpenChange])
|
|
6430
6459
|
);
|
|
6431
|
-
return /* @__PURE__ */
|
|
6460
|
+
return /* @__PURE__ */ React51.createElement(ClickAwayListener5, { onClickAway: () => setOpen(false) }, /* @__PURE__ */ React51.createElement("div", null, /* @__PURE__ */ React51.createElement(Dropdown2, { open }, /* @__PURE__ */ React51.createElement(
|
|
6432
6461
|
ProfileMenuButton,
|
|
6433
6462
|
{
|
|
6434
6463
|
size,
|
|
@@ -6438,7 +6467,7 @@ function ProfileMenu(props) {
|
|
|
6438
6467
|
getInitial
|
|
6439
6468
|
},
|
|
6440
6469
|
profile.name
|
|
6441
|
-
), /* @__PURE__ */
|
|
6470
|
+
), /* @__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(
|
|
6442
6471
|
MenuItem,
|
|
6443
6472
|
{
|
|
6444
6473
|
key: label,
|
|
@@ -6454,7 +6483,7 @@ function ProfileMenu(props) {
|
|
|
6454
6483
|
ProfileMenu.displayName = "ProfileMenu";
|
|
6455
6484
|
|
|
6456
6485
|
// src/components/RadioTileGroup/RadioTileGroup.tsx
|
|
6457
|
-
import
|
|
6486
|
+
import React52 from "react";
|
|
6458
6487
|
import { styled as styled27, radioClasses, sheetClasses } from "@mui/joy";
|
|
6459
6488
|
var RadioTileGroupRoot = styled27(RadioGroup, {
|
|
6460
6489
|
name: "RadioTileGroup",
|
|
@@ -6542,7 +6571,7 @@ function RadioTileGroup(props) {
|
|
|
6542
6571
|
error,
|
|
6543
6572
|
required
|
|
6544
6573
|
} = props;
|
|
6545
|
-
const radioGroup = /* @__PURE__ */
|
|
6574
|
+
const radioGroup = /* @__PURE__ */ React52.createElement(
|
|
6546
6575
|
RadioTileGroupRoot,
|
|
6547
6576
|
{
|
|
6548
6577
|
overlay: true,
|
|
@@ -6553,7 +6582,7 @@ function RadioTileGroup(props) {
|
|
|
6553
6582
|
flex,
|
|
6554
6583
|
columns
|
|
6555
6584
|
},
|
|
6556
|
-
options.map((option) => /* @__PURE__ */
|
|
6585
|
+
options.map((option) => /* @__PURE__ */ React52.createElement(
|
|
6557
6586
|
RadioTileSheet,
|
|
6558
6587
|
{
|
|
6559
6588
|
key: option.value,
|
|
@@ -6563,7 +6592,7 @@ function RadioTileGroup(props) {
|
|
|
6563
6592
|
flex,
|
|
6564
6593
|
textAlign
|
|
6565
6594
|
},
|
|
6566
|
-
/* @__PURE__ */
|
|
6595
|
+
/* @__PURE__ */ React52.createElement(
|
|
6567
6596
|
Radio,
|
|
6568
6597
|
{
|
|
6569
6598
|
id: `${option.value}`,
|
|
@@ -6591,7 +6620,7 @@ function RadioTileGroup(props) {
|
|
|
6591
6620
|
}
|
|
6592
6621
|
}
|
|
6593
6622
|
),
|
|
6594
|
-
option.startDecorator && /* @__PURE__ */
|
|
6623
|
+
option.startDecorator && /* @__PURE__ */ React52.createElement(
|
|
6595
6624
|
Box_default,
|
|
6596
6625
|
{
|
|
6597
6626
|
sx: {
|
|
@@ -6612,20 +6641,20 @@ function RadioTileGroup(props) {
|
|
|
6612
6641
|
)
|
|
6613
6642
|
))
|
|
6614
6643
|
);
|
|
6615
|
-
return /* @__PURE__ */
|
|
6644
|
+
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));
|
|
6616
6645
|
}
|
|
6617
6646
|
RadioTileGroup.displayName = "RadioTileGroup";
|
|
6618
6647
|
|
|
6619
6648
|
// src/components/RadioList/RadioList.tsx
|
|
6620
|
-
import
|
|
6649
|
+
import React53 from "react";
|
|
6621
6650
|
function RadioList(props) {
|
|
6622
6651
|
const { items, ...innerProps } = props;
|
|
6623
|
-
return /* @__PURE__ */
|
|
6652
|
+
return /* @__PURE__ */ React53.createElement(RadioGroup, { ...innerProps }, items.map((item) => /* @__PURE__ */ React53.createElement(Radio, { key: `${item.value}`, value: item.value, label: item.label })));
|
|
6624
6653
|
}
|
|
6625
6654
|
RadioList.displayName = "RadioList";
|
|
6626
6655
|
|
|
6627
6656
|
// src/components/Stepper/Stepper.tsx
|
|
6628
|
-
import
|
|
6657
|
+
import React54 from "react";
|
|
6629
6658
|
import {
|
|
6630
6659
|
Stepper as JoyStepper,
|
|
6631
6660
|
Step as JoyStep,
|
|
@@ -6661,7 +6690,7 @@ function Stepper(props) {
|
|
|
6661
6690
|
stepOrientation = "horizontal"
|
|
6662
6691
|
} = props;
|
|
6663
6692
|
const effectiveStepOrientation = orientation === "vertical" ? "horizontal" : stepOrientation;
|
|
6664
|
-
return /* @__PURE__ */
|
|
6693
|
+
return /* @__PURE__ */ React54.createElement(
|
|
6665
6694
|
MotionStepper,
|
|
6666
6695
|
{
|
|
6667
6696
|
orientation,
|
|
@@ -6700,23 +6729,23 @@ function Stepper(props) {
|
|
|
6700
6729
|
const completed = activeStep > i + 1;
|
|
6701
6730
|
const disabled = activeStep < i + 1;
|
|
6702
6731
|
const hasContent = step.label || step.extraContent;
|
|
6703
|
-
return /* @__PURE__ */
|
|
6732
|
+
return /* @__PURE__ */ React54.createElement(
|
|
6704
6733
|
Step,
|
|
6705
6734
|
{
|
|
6706
6735
|
key: `step-${i}`,
|
|
6707
|
-
indicator: /* @__PURE__ */
|
|
6736
|
+
indicator: /* @__PURE__ */ React54.createElement(StepIndicator, { variant: disabled ? "outlined" : "solid", color: disabled ? "neutral" : "primary" }, completed ? /* @__PURE__ */ React54.createElement(CheckIcon, null) : step.indicatorContent),
|
|
6708
6737
|
active,
|
|
6709
6738
|
completed,
|
|
6710
6739
|
disabled,
|
|
6711
6740
|
orientation: effectiveStepOrientation
|
|
6712
6741
|
},
|
|
6713
|
-
hasContent && /* @__PURE__ */
|
|
6742
|
+
hasContent && /* @__PURE__ */ React54.createElement(
|
|
6714
6743
|
Stack_default,
|
|
6715
6744
|
{
|
|
6716
6745
|
sx: orientation === "horizontal" && effectiveStepOrientation === "vertical" ? { alignItems: "center" } : {}
|
|
6717
6746
|
},
|
|
6718
|
-
step.label && /* @__PURE__ */
|
|
6719
|
-
step.extraContent && /* @__PURE__ */
|
|
6747
|
+
step.label && /* @__PURE__ */ React54.createElement(Typography_default, { level: "title-sm" }, step.label),
|
|
6748
|
+
step.extraContent && /* @__PURE__ */ React54.createElement(Typography_default, { level: "body-xs" }, step.extraContent)
|
|
6720
6749
|
)
|
|
6721
6750
|
);
|
|
6722
6751
|
})
|
|
@@ -6725,7 +6754,7 @@ function Stepper(props) {
|
|
|
6725
6754
|
Stepper.displayName = "Stepper";
|
|
6726
6755
|
|
|
6727
6756
|
// src/components/Switch/Switch.tsx
|
|
6728
|
-
import
|
|
6757
|
+
import React55 from "react";
|
|
6729
6758
|
import { Switch as JoySwitch, styled as styled29, switchClasses } from "@mui/joy";
|
|
6730
6759
|
import { motion as motion27 } from "framer-motion";
|
|
6731
6760
|
var MotionSwitch = motion27(JoySwitch);
|
|
@@ -6747,14 +6776,14 @@ var StyledThumb = styled29(motion27.div)({
|
|
|
6747
6776
|
right: "var(--Switch-thumbOffset)"
|
|
6748
6777
|
}
|
|
6749
6778
|
});
|
|
6750
|
-
var Thumb = (props) => /* @__PURE__ */
|
|
6779
|
+
var Thumb = (props) => /* @__PURE__ */ React55.createElement(StyledThumb, { ...props, layout: true, transition: spring });
|
|
6751
6780
|
var spring = {
|
|
6752
6781
|
type: "spring",
|
|
6753
6782
|
stiffness: 700,
|
|
6754
6783
|
damping: 30
|
|
6755
6784
|
};
|
|
6756
6785
|
var Switch = (props) => {
|
|
6757
|
-
return /* @__PURE__ */
|
|
6786
|
+
return /* @__PURE__ */ React55.createElement(
|
|
6758
6787
|
MotionSwitch,
|
|
6759
6788
|
{
|
|
6760
6789
|
...props,
|
|
@@ -6768,7 +6797,7 @@ var Switch = (props) => {
|
|
|
6768
6797
|
Switch.displayName = "Switch";
|
|
6769
6798
|
|
|
6770
6799
|
// src/components/Tabs/Tabs.tsx
|
|
6771
|
-
import
|
|
6800
|
+
import React56, { forwardRef as forwardRef11 } from "react";
|
|
6772
6801
|
import {
|
|
6773
6802
|
Tabs as JoyTabs,
|
|
6774
6803
|
Tab as JoyTab,
|
|
@@ -6792,14 +6821,14 @@ var StyledTab = styled30(JoyTab)(({ theme }) => ({
|
|
|
6792
6821
|
}
|
|
6793
6822
|
}));
|
|
6794
6823
|
var Tab = forwardRef11(function Tab2({ startDecorator, endDecorator, children, ...props }, ref) {
|
|
6795
|
-
return /* @__PURE__ */
|
|
6824
|
+
return /* @__PURE__ */ React56.createElement(StyledTab, { ...props, ref }, startDecorator, children, endDecorator);
|
|
6796
6825
|
});
|
|
6797
6826
|
Tab.displayName = "Tab";
|
|
6798
6827
|
var TabList = JoyTabList;
|
|
6799
6828
|
var TabPanel = JoyTabPanel;
|
|
6800
6829
|
|
|
6801
6830
|
// src/components/ThemeProvider/ThemeProvider.tsx
|
|
6802
|
-
import
|
|
6831
|
+
import React57 from "react";
|
|
6803
6832
|
import { CssBaseline, CssVarsProvider, checkboxClasses, extendTheme, inputClasses } from "@mui/joy";
|
|
6804
6833
|
var colorScheme = {
|
|
6805
6834
|
palette: {
|
|
@@ -7078,7 +7107,7 @@ var defaultTheme = extendTheme({
|
|
|
7078
7107
|
});
|
|
7079
7108
|
function ThemeProvider(props) {
|
|
7080
7109
|
const theme = props.theme || defaultTheme;
|
|
7081
|
-
return /* @__PURE__ */
|
|
7110
|
+
return /* @__PURE__ */ React57.createElement(React57.Fragment, null, /* @__PURE__ */ React57.createElement(CssVarsProvider, { theme }, /* @__PURE__ */ React57.createElement(CssBaseline, null), props.children));
|
|
7082
7111
|
}
|
|
7083
7112
|
ThemeProvider.displayName = "ThemeProvider";
|
|
7084
7113
|
export {
|