master-components-react-ts 1.0.11 → 1.0.13
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/assets/Icons/index.d.ts +23 -0
- package/dist/master-components-react-ts.es.js +3137 -30
- package/package.json +4 -4
- package/dist/master-components-react-ts.cjs.js +0 -10
- package/dist/master-components-react-ts.cjs10.js +0 -30
- package/dist/master-components-react-ts.cjs11.js +0 -5
- package/dist/master-components-react-ts.cjs12.js +0 -24
- package/dist/master-components-react-ts.cjs13.js +0 -65
- package/dist/master-components-react-ts.cjs14.js +0 -55
- package/dist/master-components-react-ts.cjs15.js +0 -4
- package/dist/master-components-react-ts.cjs16.js +0 -30
- package/dist/master-components-react-ts.cjs17.js +0 -4
- package/dist/master-components-react-ts.cjs18.js +0 -14
- package/dist/master-components-react-ts.cjs19.js +0 -13
- package/dist/master-components-react-ts.cjs2.js +0 -21
- package/dist/master-components-react-ts.cjs20.js +0 -11
- package/dist/master-components-react-ts.cjs21.js +0 -17
- package/dist/master-components-react-ts.cjs22.js +0 -9
- package/dist/master-components-react-ts.cjs23.js +0 -12
- package/dist/master-components-react-ts.cjs24.js +0 -9
- package/dist/master-components-react-ts.cjs25.js +0 -7
- package/dist/master-components-react-ts.cjs26.js +0 -7
- package/dist/master-components-react-ts.cjs27.js +0 -9
- package/dist/master-components-react-ts.cjs28.js +0 -7
- package/dist/master-components-react-ts.cjs29.js +0 -5
- package/dist/master-components-react-ts.cjs3.js +0 -40
- package/dist/master-components-react-ts.cjs30.js +0 -24
- package/dist/master-components-react-ts.cjs31.js +0 -5
- package/dist/master-components-react-ts.cjs32.js +0 -13
- package/dist/master-components-react-ts.cjs33.js +0 -8
- package/dist/master-components-react-ts.cjs34.js +0 -5
- package/dist/master-components-react-ts.cjs35.js +0 -14
- package/dist/master-components-react-ts.cjs36.js +0 -11
- package/dist/master-components-react-ts.cjs37.js +0 -13
- package/dist/master-components-react-ts.cjs38.js +0 -11
- package/dist/master-components-react-ts.cjs39.js +0 -10
- package/dist/master-components-react-ts.cjs4.js +0 -44
- package/dist/master-components-react-ts.cjs40.js +0 -12
- package/dist/master-components-react-ts.cjs41.js +0 -8
- package/dist/master-components-react-ts.cjs42.js +0 -8
- package/dist/master-components-react-ts.cjs43.js +0 -8
- package/dist/master-components-react-ts.cjs44.js +0 -35
- package/dist/master-components-react-ts.cjs45.js +0 -24
- package/dist/master-components-react-ts.cjs46.js +0 -19
- package/dist/master-components-react-ts.cjs47.js +0 -66
- package/dist/master-components-react-ts.cjs48.js +0 -8
- package/dist/master-components-react-ts.cjs49.js +0 -183
- package/dist/master-components-react-ts.cjs5.js +0 -8
- package/dist/master-components-react-ts.cjs50.js +0 -14
- package/dist/master-components-react-ts.cjs51.js +0 -7
- package/dist/master-components-react-ts.cjs52.js +0 -11
- package/dist/master-components-react-ts.cjs53.js +0 -3
- package/dist/master-components-react-ts.cjs54.js +0 -12
- package/dist/master-components-react-ts.cjs55.js +0 -68
- package/dist/master-components-react-ts.cjs56.js +0 -9
- package/dist/master-components-react-ts.cjs57.js +0 -9
- package/dist/master-components-react-ts.cjs58.js +0 -5
- package/dist/master-components-react-ts.cjs59.js +0 -3
- package/dist/master-components-react-ts.cjs6.js +0 -11
- package/dist/master-components-react-ts.cjs60.js +0 -18
- package/dist/master-components-react-ts.cjs61.js +0 -8
- package/dist/master-components-react-ts.cjs62.js +0 -8
- package/dist/master-components-react-ts.cjs63.js +0 -3
- package/dist/master-components-react-ts.cjs64.js +0 -3
- package/dist/master-components-react-ts.cjs7.js +0 -112
- package/dist/master-components-react-ts.cjs8.js +0 -11
- package/dist/master-components-react-ts.cjs9.js +0 -42
- package/dist/master-components-react-ts.es10.js +0 -116
- package/dist/master-components-react-ts.es11.js +0 -10
- package/dist/master-components-react-ts.es12.js +0 -57
- package/dist/master-components-react-ts.es13.js +0 -172
- package/dist/master-components-react-ts.es14.js +0 -211
- package/dist/master-components-react-ts.es15.js +0 -8
- package/dist/master-components-react-ts.es16.js +0 -74
- package/dist/master-components-react-ts.es17.js +0 -12
- package/dist/master-components-react-ts.es18.js +0 -56
- package/dist/master-components-react-ts.es19.js +0 -36
- package/dist/master-components-react-ts.es2.js +0 -72
- package/dist/master-components-react-ts.es20.js +0 -26
- package/dist/master-components-react-ts.es21.js +0 -62
- package/dist/master-components-react-ts.es22.js +0 -15
- package/dist/master-components-react-ts.es23.js +0 -41
- package/dist/master-components-react-ts.es24.js +0 -15
- package/dist/master-components-react-ts.es25.js +0 -29
- package/dist/master-components-react-ts.es26.js +0 -26
- package/dist/master-components-react-ts.es27.js +0 -15
- package/dist/master-components-react-ts.es28.js +0 -7
- package/dist/master-components-react-ts.es29.js +0 -7
- package/dist/master-components-react-ts.es3.js +0 -144
- package/dist/master-components-react-ts.es30.js +0 -74
- package/dist/master-components-react-ts.es31.js +0 -15
- package/dist/master-components-react-ts.es32.js +0 -31
- package/dist/master-components-react-ts.es33.js +0 -13
- package/dist/master-components-react-ts.es34.js +0 -8
- package/dist/master-components-react-ts.es35.js +0 -19
- package/dist/master-components-react-ts.es36.js +0 -16
- package/dist/master-components-react-ts.es37.js +0 -19
- package/dist/master-components-react-ts.es38.js +0 -16
- package/dist/master-components-react-ts.es39.js +0 -35
- package/dist/master-components-react-ts.es4.js +0 -149
- package/dist/master-components-react-ts.es40.js +0 -41
- package/dist/master-components-react-ts.es41.js +0 -16
- package/dist/master-components-react-ts.es42.js +0 -16
- package/dist/master-components-react-ts.es43.js +0 -16
- package/dist/master-components-react-ts.es44.js +0 -66
- package/dist/master-components-react-ts.es45.js +0 -59
- package/dist/master-components-react-ts.es46.js +0 -50
- package/dist/master-components-react-ts.es47.js +0 -129
- package/dist/master-components-react-ts.es48.js +0 -17
- package/dist/master-components-react-ts.es49.js +0 -437
- package/dist/master-components-react-ts.es5.js +0 -20
- package/dist/master-components-react-ts.es50.js +0 -32
- package/dist/master-components-react-ts.es51.js +0 -20
- package/dist/master-components-react-ts.es52.js +0 -29
- package/dist/master-components-react-ts.es53.js +0 -4
- package/dist/master-components-react-ts.es54.js +0 -41
- package/dist/master-components-react-ts.es55.js +0 -274
- package/dist/master-components-react-ts.es56.js +0 -15
- package/dist/master-components-react-ts.es57.js +0 -15
- package/dist/master-components-react-ts.es58.js +0 -8
- package/dist/master-components-react-ts.es59.js +0 -4
- package/dist/master-components-react-ts.es6.js +0 -54
- package/dist/master-components-react-ts.es60.js +0 -83
- package/dist/master-components-react-ts.es61.js +0 -13
- package/dist/master-components-react-ts.es62.js +0 -13
- package/dist/master-components-react-ts.es63.js +0 -4
- package/dist/master-components-react-ts.es64.js +0 -4
- package/dist/master-components-react-ts.es7.js +0 -336
- package/dist/master-components-react-ts.es8.js +0 -46
- package/dist/master-components-react-ts.es9.js +0 -153
|
@@ -1,211 +0,0 @@
|
|
|
1
|
-
import { j as jsxRuntimeExports } from "./master-components-react-ts.es17.js";
|
|
2
|
-
import { useState, useRef, useEffect } from "react";
|
|
3
|
-
import dayjs from "dayjs";
|
|
4
|
-
import style from "./master-components-react-ts.es48.js";
|
|
5
|
-
import Calendar from "./master-components-react-ts.es49.js";
|
|
6
|
-
import { IconCalendar } from "./master-components-react-ts.es50.js";
|
|
7
|
-
import customParseFormat from "./master-components-react-ts.es47.js";
|
|
8
|
-
import { useNamespace } from "./master-components-react-ts.es29.js";
|
|
9
|
-
import FormInput from "./master-components-react-ts.es3.js";
|
|
10
|
-
import { IconCloseCircle } from "./master-components-react-ts.es22.js";
|
|
11
|
-
dayjs.extend(customParseFormat);
|
|
12
|
-
const DatePicker = ({
|
|
13
|
-
defaultValue,
|
|
14
|
-
valueFormat = "DD-MM-YYYY",
|
|
15
|
-
onChange,
|
|
16
|
-
onBlur,
|
|
17
|
-
onFocus,
|
|
18
|
-
customYears,
|
|
19
|
-
fixedDropdown = true,
|
|
20
|
-
disabledDatesFrom,
|
|
21
|
-
disabledDatesTill,
|
|
22
|
-
disabledDatesRange,
|
|
23
|
-
datepickerStyle,
|
|
24
|
-
datepickerLabelStyle,
|
|
25
|
-
requiredStyle,
|
|
26
|
-
datepickerHelperTextStyle,
|
|
27
|
-
selectedStyle,
|
|
28
|
-
endDateStyle,
|
|
29
|
-
startDateStyle,
|
|
30
|
-
inRangeStyle,
|
|
31
|
-
otherMonthStyle,
|
|
32
|
-
todayStyle,
|
|
33
|
-
weekDayStyle,
|
|
34
|
-
quickPickStyle,
|
|
35
|
-
monthStyle,
|
|
36
|
-
quickPick,
|
|
37
|
-
mode = "single",
|
|
38
|
-
pickerType = "single",
|
|
39
|
-
disabled = false,
|
|
40
|
-
...rest
|
|
41
|
-
}) => {
|
|
42
|
-
const namespace = useNamespace();
|
|
43
|
-
const [IsFocused, setIsFocused] = useState(false);
|
|
44
|
-
const [Value, setValue] = useState("");
|
|
45
|
-
const DefaultValue = useRef({ state: false, value: "" });
|
|
46
|
-
const CalendarRef = useRef(null);
|
|
47
|
-
const [CurrentMonth, setCurrentMonth] = useState(() => {
|
|
48
|
-
const thisYear = dayjs().year().toString();
|
|
49
|
-
if (customYears?.length) {
|
|
50
|
-
return customYears.includes(thisYear) ? dayjs() : dayjs(`${Math.min(...customYears.map(Number))}-01-01`);
|
|
51
|
-
}
|
|
52
|
-
return dayjs();
|
|
53
|
-
});
|
|
54
|
-
useEffect(() => {
|
|
55
|
-
const thisYear = dayjs().year().toString();
|
|
56
|
-
if (customYears?.length) {
|
|
57
|
-
setCurrentMonth(customYears.includes(thisYear) ? dayjs() : dayjs(`${Math.min(...customYears.map(Number))}-01-01`));
|
|
58
|
-
}
|
|
59
|
-
}, [customYears]);
|
|
60
|
-
const [SelectedDate, setSelectedDate] = useState("");
|
|
61
|
-
const [RangeSelection, setRangeSelection] = useState({
|
|
62
|
-
start: null,
|
|
63
|
-
end: null
|
|
64
|
-
});
|
|
65
|
-
const ComponentRef = useRef(null);
|
|
66
|
-
const Change = (value, singleQuickPick, withDefault) => {
|
|
67
|
-
let dateValue = "";
|
|
68
|
-
let objValue = { start: "", end: "" };
|
|
69
|
-
if (mode === "single" || typeof value === "string") {
|
|
70
|
-
dateValue = value;
|
|
71
|
-
setValue(dateValue);
|
|
72
|
-
}
|
|
73
|
-
if (mode !== "single" || typeof value !== "string") {
|
|
74
|
-
dateValue = `${dayjs(value?.start ?? "").format(valueFormat)} / ${value?.end ? dayjs(value?.end).format(valueFormat) : ""}`;
|
|
75
|
-
objValue.start = dayjs(value?.start ?? "").format(valueFormat);
|
|
76
|
-
objValue.end = value?.end ? dayjs(value?.end).format(valueFormat) : "";
|
|
77
|
-
setValue(dateValue);
|
|
78
|
-
}
|
|
79
|
-
if (value?.end) {
|
|
80
|
-
setIsFocused(false);
|
|
81
|
-
}
|
|
82
|
-
if (onChange && typeof onChange === "function" && !withDefault) {
|
|
83
|
-
onChange(objValue.start !== "" ? objValue : dateValue);
|
|
84
|
-
DefaultValue.current.value = objValue.start !== "" ? objValue : dateValue;
|
|
85
|
-
}
|
|
86
|
-
};
|
|
87
|
-
const Clear = (e) => {
|
|
88
|
-
e.stopPropagation();
|
|
89
|
-
setSelectedDate("");
|
|
90
|
-
DefaultValue.current.value = "";
|
|
91
|
-
setValue("");
|
|
92
|
-
setRangeSelection({
|
|
93
|
-
start: null,
|
|
94
|
-
end: null
|
|
95
|
-
});
|
|
96
|
-
if (onChange && typeof onChange === "function") {
|
|
97
|
-
onChange("");
|
|
98
|
-
}
|
|
99
|
-
};
|
|
100
|
-
const ClickHandler = (event) => {
|
|
101
|
-
if (!ComponentRef.current) return;
|
|
102
|
-
if (event.composedPath().includes(ComponentRef.current)) return;
|
|
103
|
-
setIsFocused(false);
|
|
104
|
-
};
|
|
105
|
-
const ScrollHandler = (event) => {
|
|
106
|
-
if (!ComponentRef.current || !CalendarRef.current) return;
|
|
107
|
-
if (event.composedPath().includes(ComponentRef.current) || event.composedPath().includes(CalendarRef.current)) return;
|
|
108
|
-
setIsFocused(false);
|
|
109
|
-
};
|
|
110
|
-
const CalculatePos = () => {
|
|
111
|
-
if (!ComponentRef.current || !CalendarRef.current) return;
|
|
112
|
-
const componentEl = ComponentRef.current;
|
|
113
|
-
const calendarEl = CalendarRef.current;
|
|
114
|
-
if (!calendarEl || !componentEl) return;
|
|
115
|
-
const componentRect = componentEl.getBoundingClientRect();
|
|
116
|
-
const windowHeight = window.innerHeight;
|
|
117
|
-
const windowWidth = window.innerWidth;
|
|
118
|
-
calendarEl.style.position = "fixed";
|
|
119
|
-
if (componentRect.bottom + calendarEl.offsetHeight > windowHeight) {
|
|
120
|
-
calendarEl.style.top = `${window.scrollY + componentRect.top - calendarEl.offsetHeight - 8}px`;
|
|
121
|
-
calendarEl.style.bottom = "unset";
|
|
122
|
-
} else {
|
|
123
|
-
calendarEl.style.top = `${window.scrollY + componentRect.bottom + 8}px`;
|
|
124
|
-
calendarEl.style.bottom = "unset";
|
|
125
|
-
}
|
|
126
|
-
if (componentRect.right + componentRect.width > windowWidth - 120) {
|
|
127
|
-
calendarEl.style.left = `${window.scrollX + componentRect.left + componentRect.width - calendarEl.offsetWidth}px`;
|
|
128
|
-
} else {
|
|
129
|
-
calendarEl.style.left = `${window.scrollX + componentRect.left}px`;
|
|
130
|
-
}
|
|
131
|
-
};
|
|
132
|
-
useEffect(() => {
|
|
133
|
-
if (defaultValue && DefaultValue.current.value === "") {
|
|
134
|
-
let value = Array.isArray(defaultValue) ? {
|
|
135
|
-
start: dayjs(defaultValue[0], valueFormat),
|
|
136
|
-
end: defaultValue.length > 1 ? dayjs(defaultValue[1], valueFormat) : ""
|
|
137
|
-
} : dayjs(defaultValue, valueFormat).format(valueFormat);
|
|
138
|
-
DefaultValue.current.value = defaultValue;
|
|
139
|
-
DefaultValue.current.state = true;
|
|
140
|
-
if (value) {
|
|
141
|
-
Change(value, false, true);
|
|
142
|
-
}
|
|
143
|
-
}
|
|
144
|
-
}, []);
|
|
145
|
-
useEffect(() => {
|
|
146
|
-
if (IsFocused) {
|
|
147
|
-
CalculatePos();
|
|
148
|
-
}
|
|
149
|
-
}, [CalendarRef, IsFocused]);
|
|
150
|
-
useEffect(() => {
|
|
151
|
-
document.addEventListener("click", ClickHandler);
|
|
152
|
-
document.addEventListener("wheel", ScrollHandler);
|
|
153
|
-
return () => {
|
|
154
|
-
document.removeEventListener("click", ClickHandler);
|
|
155
|
-
document.removeEventListener("wheel", ScrollHandler);
|
|
156
|
-
};
|
|
157
|
-
}, []);
|
|
158
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: `${namespace === "namespaceHr" ? style.namespaceHr : ""} ${style.datepickerContainer}`, children: [
|
|
159
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { ref: ComponentRef, className: style.datepickerInputWrapper, onClick: () => (setIsFocused((state) => !state), CalculatePos()), children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
160
|
-
FormInput,
|
|
161
|
-
{
|
|
162
|
-
...rest,
|
|
163
|
-
customFocus: IsFocused,
|
|
164
|
-
withActive: false,
|
|
165
|
-
value: Value,
|
|
166
|
-
toggleFocus: true,
|
|
167
|
-
formInputStyle: { cursor: "pointer" },
|
|
168
|
-
leftSlot: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: style.datepickerLeftIcon, children: /* @__PURE__ */ jsxRuntimeExports.jsx(IconCalendar, {}) }),
|
|
169
|
-
rightSlot: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: `${style.datepickerRightIcon}`, onClick: Clear, children: Value && /* @__PURE__ */ jsxRuntimeExports.jsx(IconCloseCircle, {}) }),
|
|
170
|
-
readOnly: true
|
|
171
|
-
}
|
|
172
|
-
) }),
|
|
173
|
-
IsFocused && /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
174
|
-
Calendar,
|
|
175
|
-
{
|
|
176
|
-
namespace,
|
|
177
|
-
defaultValue: DefaultValue.current,
|
|
178
|
-
CalendarRef,
|
|
179
|
-
disabledDatesFrom,
|
|
180
|
-
disabledDatesTill,
|
|
181
|
-
disabledDatesRange,
|
|
182
|
-
valueFormat,
|
|
183
|
-
onChange: (value) => Change(value, false, false),
|
|
184
|
-
customYears,
|
|
185
|
-
CurrentMonth,
|
|
186
|
-
setCurrentMonth,
|
|
187
|
-
SelectedDate,
|
|
188
|
-
setSelectedDate,
|
|
189
|
-
IsFocused,
|
|
190
|
-
setIsFocused,
|
|
191
|
-
quickPick,
|
|
192
|
-
mode,
|
|
193
|
-
RangeSelection,
|
|
194
|
-
setRangeSelection,
|
|
195
|
-
pickerType,
|
|
196
|
-
selectedStyle,
|
|
197
|
-
endDateStyle,
|
|
198
|
-
startDateStyle,
|
|
199
|
-
inRangeStyle,
|
|
200
|
-
otherMonthStyle,
|
|
201
|
-
todayStyle,
|
|
202
|
-
weekDayStyle,
|
|
203
|
-
quickPickStyle,
|
|
204
|
-
monthStyle
|
|
205
|
-
}
|
|
206
|
-
)
|
|
207
|
-
] });
|
|
208
|
-
};
|
|
209
|
-
export {
|
|
210
|
-
DatePicker as default
|
|
211
|
-
};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { j as jsxRuntimeExports } from "./master-components-react-ts.es17.js";
|
|
2
|
-
import style from "./master-components-react-ts.es51.js";
|
|
3
|
-
const Skeleton = ({ type = "text", customStyle, children }) => {
|
|
4
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { style: customStyle ?? {}, className: ` ${style.skeleton} ${style[type] || ""}`, children });
|
|
5
|
-
};
|
|
6
|
-
export {
|
|
7
|
-
Skeleton as default
|
|
8
|
-
};
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
import { j as jsxRuntimeExports } from "./master-components-react-ts.es17.js";
|
|
2
|
-
import style from "./master-components-react-ts.es52.js";
|
|
3
|
-
import { IconArrowUp } from "./master-components-react-ts.es33.js";
|
|
4
|
-
import { useState, useRef, useEffect } from "react";
|
|
5
|
-
const ActionDropdown = ({ title, data, onSelect }) => {
|
|
6
|
-
const [Collapsed, setCollapsed] = useState(false);
|
|
7
|
-
const DropdownRef = useRef(null);
|
|
8
|
-
const ListRef = useRef(null);
|
|
9
|
-
const [Selected, setSelected] = useState(null);
|
|
10
|
-
const HandleSelect = (item) => {
|
|
11
|
-
setSelected(item);
|
|
12
|
-
onSelect?.(item);
|
|
13
|
-
setCollapsed(false);
|
|
14
|
-
};
|
|
15
|
-
const CalculatePos = () => {
|
|
16
|
-
const componentEl = DropdownRef.current;
|
|
17
|
-
const dropdownEl = ListRef.current;
|
|
18
|
-
if (!dropdownEl || !componentEl) return;
|
|
19
|
-
const componentRect = componentEl.getBoundingClientRect();
|
|
20
|
-
const windowHeight = window.innerHeight;
|
|
21
|
-
dropdownEl.style.position = "fixed";
|
|
22
|
-
dropdownEl.style.width = componentRect.width + "px";
|
|
23
|
-
dropdownEl.style.left = `${componentRect.left + window.pageXOffset}px`;
|
|
24
|
-
if (componentRect.bottom + dropdownEl.offsetHeight > windowHeight) {
|
|
25
|
-
dropdownEl.style.top = `${window.scrollY + componentRect.top - dropdownEl.offsetHeight - 4}px`;
|
|
26
|
-
dropdownEl.style.bottom = "unset";
|
|
27
|
-
} else {
|
|
28
|
-
dropdownEl.style.top = `${window.scrollY + componentRect.bottom + 8}px`;
|
|
29
|
-
dropdownEl.style.bottom = "unset";
|
|
30
|
-
}
|
|
31
|
-
};
|
|
32
|
-
useEffect(() => {
|
|
33
|
-
CalculatePos();
|
|
34
|
-
}, [DropdownRef, Collapsed]);
|
|
35
|
-
useEffect(() => {
|
|
36
|
-
const ClickHandler = (event) => {
|
|
37
|
-
if (!DropdownRef.current) return;
|
|
38
|
-
if (event.composedPath().includes(DropdownRef.current)) return;
|
|
39
|
-
setCollapsed(false);
|
|
40
|
-
};
|
|
41
|
-
const ScrollHandler = (event) => {
|
|
42
|
-
if (!DropdownRef.current || !ListRef.current) return;
|
|
43
|
-
if (ListRef.current.contains(event.target)) return;
|
|
44
|
-
setCollapsed(false);
|
|
45
|
-
};
|
|
46
|
-
document.addEventListener("click", ClickHandler);
|
|
47
|
-
document.addEventListener("wheel", ScrollHandler);
|
|
48
|
-
return () => {
|
|
49
|
-
document.removeEventListener("click", ClickHandler);
|
|
50
|
-
document.removeEventListener("wheel", ScrollHandler);
|
|
51
|
-
};
|
|
52
|
-
}, []);
|
|
53
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: `${style.actionDropdownContainer} ${Collapsed ? style.collapsed : ""}`, children: [
|
|
54
|
-
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { ref: DropdownRef, className: style.actionDropdownContent, onClick: () => setCollapsed((state) => !state), children: [
|
|
55
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("p", { title, className: style.actionDropdownTitle, children: Selected?.label || title }),
|
|
56
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: style.actionDropdownIcon, children: /* @__PURE__ */ jsxRuntimeExports.jsx(IconArrowUp, { width: "10", height: "6", color: "#131314" }) })
|
|
57
|
-
] }),
|
|
58
|
-
Collapsed && /* @__PURE__ */ jsxRuntimeExports.jsx("ul", { ref: ListRef, onClick: (e) => e.stopPropagation(), className: style.actionDropdownList, children: data.map((item) => /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
59
|
-
"li",
|
|
60
|
-
{
|
|
61
|
-
onClick: (e) => {
|
|
62
|
-
e.stopPropagation();
|
|
63
|
-
HandleSelect(item);
|
|
64
|
-
},
|
|
65
|
-
className: `${style.actionDropdownItem} ${Selected?.id === item.id ? style.selected : ""}`,
|
|
66
|
-
children: item.label
|
|
67
|
-
},
|
|
68
|
-
item.id
|
|
69
|
-
)) }, data.length)
|
|
70
|
-
] });
|
|
71
|
-
};
|
|
72
|
-
export {
|
|
73
|
-
ActionDropdown as default
|
|
74
|
-
};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { __module as jsxRuntime } from "./master-components-react-ts.es53.js";
|
|
2
|
-
import { __require as requireReactJsxRuntime_production } from "./master-components-react-ts.es54.js";
|
|
3
|
-
import { __require as requireReactJsxRuntime_development } from "./master-components-react-ts.es55.js";
|
|
4
|
-
if (process.env.NODE_ENV === "production") {
|
|
5
|
-
jsxRuntime.exports = requireReactJsxRuntime_production();
|
|
6
|
-
} else {
|
|
7
|
-
jsxRuntime.exports = requireReactJsxRuntime_development();
|
|
8
|
-
}
|
|
9
|
-
var jsxRuntimeExports = jsxRuntime.exports;
|
|
10
|
-
export {
|
|
11
|
-
jsxRuntimeExports as j
|
|
12
|
-
};
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
const mainButton = "MainButton-module__mainButton";
|
|
2
|
-
const sm = "MainButton-module__sm";
|
|
3
|
-
const md = "MainButton-module__md";
|
|
4
|
-
const lg = "MainButton-module__lg";
|
|
5
|
-
const mainButtonContent = "MainButton-module__mainButtonContent";
|
|
6
|
-
const mainButtonLabel = "MainButton-module__mainButtonLabel";
|
|
7
|
-
const primary = "MainButton-module__primary";
|
|
8
|
-
const neutral = "MainButton-module__neutral";
|
|
9
|
-
const loading = "MainButton-module__loading";
|
|
10
|
-
const disabled = "MainButton-module__disabled";
|
|
11
|
-
const focused = "MainButton-module__focused";
|
|
12
|
-
const positive = "MainButton-module__positive";
|
|
13
|
-
const negative = "MainButton-module__negative";
|
|
14
|
-
const secondary = "MainButton-module__secondary";
|
|
15
|
-
const tertiary = "MainButton-module__tertiary";
|
|
16
|
-
const tertiaryV2 = "MainButton-module__tertiaryV2";
|
|
17
|
-
const tertiaryV3 = "MainButton-module__tertiaryV3";
|
|
18
|
-
const style = {
|
|
19
|
-
mainButton,
|
|
20
|
-
sm,
|
|
21
|
-
md,
|
|
22
|
-
lg,
|
|
23
|
-
mainButtonContent,
|
|
24
|
-
mainButtonLabel,
|
|
25
|
-
primary,
|
|
26
|
-
neutral,
|
|
27
|
-
loading,
|
|
28
|
-
disabled,
|
|
29
|
-
focused,
|
|
30
|
-
positive,
|
|
31
|
-
negative,
|
|
32
|
-
secondary,
|
|
33
|
-
tertiary,
|
|
34
|
-
tertiaryV2,
|
|
35
|
-
tertiaryV3
|
|
36
|
-
};
|
|
37
|
-
export {
|
|
38
|
-
style as default,
|
|
39
|
-
disabled,
|
|
40
|
-
focused,
|
|
41
|
-
lg,
|
|
42
|
-
loading,
|
|
43
|
-
mainButton,
|
|
44
|
-
mainButtonContent,
|
|
45
|
-
mainButtonLabel,
|
|
46
|
-
md,
|
|
47
|
-
negative,
|
|
48
|
-
neutral,
|
|
49
|
-
positive,
|
|
50
|
-
primary,
|
|
51
|
-
secondary,
|
|
52
|
-
sm,
|
|
53
|
-
tertiary,
|
|
54
|
-
tertiaryV2,
|
|
55
|
-
tertiaryV3
|
|
56
|
-
};
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { j as jsxRuntimeExports } from "./master-components-react-ts.es17.js";
|
|
2
|
-
const CIRCLE_RADIUS = 50 / 2;
|
|
3
|
-
const IconCircularLoading = ({ size = 24, strokeWidth = 5, linecap = "round", duration = 1, stroke = "#2753dd", ...rest }) => {
|
|
4
|
-
const center = CIRCLE_RADIUS;
|
|
5
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx("svg", { ...rest, viewBox: `0 0 ${CIRCLE_RADIUS * 2} ${CIRCLE_RADIUS * 2}`, width: size, height: size, children: /* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
6
|
-
"circle",
|
|
7
|
-
{
|
|
8
|
-
fill: "none",
|
|
9
|
-
stroke,
|
|
10
|
-
strokeWidth,
|
|
11
|
-
strokeLinecap: linecap,
|
|
12
|
-
cx: CIRCLE_RADIUS,
|
|
13
|
-
cy: CIRCLE_RADIUS,
|
|
14
|
-
r: CIRCLE_RADIUS - strokeWidth,
|
|
15
|
-
children: [
|
|
16
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
17
|
-
"animateTransform",
|
|
18
|
-
{
|
|
19
|
-
attributeName: "transform",
|
|
20
|
-
attributeType: "XML",
|
|
21
|
-
type: "rotate",
|
|
22
|
-
from: `0 ${center} ${center}`,
|
|
23
|
-
to: `360 ${center} ${center}`,
|
|
24
|
-
dur: `${duration * 4 / 3}s`,
|
|
25
|
-
repeatCount: "indefinite"
|
|
26
|
-
}
|
|
27
|
-
),
|
|
28
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("animate", { attributeName: "stroke-dasharray", values: "1,200; 89,200; 89 200;", dur: `${duration}s`, repeatCount: "indefinite" }),
|
|
29
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("animate", { attributeName: "stroke-dashoffset", values: "0;-35;-124;", dur: `${duration}s`, repeatCount: "indefinite" })
|
|
30
|
-
]
|
|
31
|
-
}
|
|
32
|
-
) });
|
|
33
|
-
};
|
|
34
|
-
export {
|
|
35
|
-
IconCircularLoading as default
|
|
36
|
-
};
|
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
import { j as jsxRuntimeExports } from "./master-components-react-ts.es17.js";
|
|
2
|
-
import style from "./master-components-react-ts.es18.js";
|
|
3
|
-
import { useState, useRef, useEffect } from "react";
|
|
4
|
-
import IconCircularLoading from "./master-components-react-ts.es19.js";
|
|
5
|
-
const MainButton = ({
|
|
6
|
-
label,
|
|
7
|
-
size = "md",
|
|
8
|
-
leftSlot,
|
|
9
|
-
rightSlot,
|
|
10
|
-
buttonSlot,
|
|
11
|
-
type = "button",
|
|
12
|
-
colorType = "neutral",
|
|
13
|
-
buttonType = "primary",
|
|
14
|
-
withFocus = false,
|
|
15
|
-
customFocus,
|
|
16
|
-
disabled,
|
|
17
|
-
loading = false,
|
|
18
|
-
spaceBetween = false,
|
|
19
|
-
buttonStyle,
|
|
20
|
-
mainButtonContentStyle,
|
|
21
|
-
mainButtonLabelStyle,
|
|
22
|
-
leftSlotStyle,
|
|
23
|
-
rightSlotStyle,
|
|
24
|
-
onClick
|
|
25
|
-
}) => {
|
|
26
|
-
const [Focused, setFocused] = useState(customFocus || false);
|
|
27
|
-
const ButtonRef = useRef(null);
|
|
28
|
-
const Click = (e) => {
|
|
29
|
-
if (disabled || loading) return;
|
|
30
|
-
if (withFocus) {
|
|
31
|
-
setFocused((state) => !state);
|
|
32
|
-
}
|
|
33
|
-
onClick?.(e);
|
|
34
|
-
};
|
|
35
|
-
const getLoadingColor = () => {
|
|
36
|
-
let color = "#ffffff";
|
|
37
|
-
if (colorType === "neutral" && buttonType !== "primary") color = "#0058FF";
|
|
38
|
-
if (colorType === "positive" && buttonType !== "primary") color = "#328707";
|
|
39
|
-
if (colorType === "negative" && buttonType !== "primary") color = "#E3292F";
|
|
40
|
-
return color;
|
|
41
|
-
};
|
|
42
|
-
useEffect(() => {
|
|
43
|
-
const ClickHandler = (event) => {
|
|
44
|
-
if (!ButtonRef.current || disabled) return;
|
|
45
|
-
if (event.composedPath().includes(ButtonRef.current)) return;
|
|
46
|
-
setFocused(false);
|
|
47
|
-
};
|
|
48
|
-
document.addEventListener("click", ClickHandler);
|
|
49
|
-
return () => {
|
|
50
|
-
document.removeEventListener("click", ClickHandler);
|
|
51
|
-
};
|
|
52
|
-
}, []);
|
|
53
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
54
|
-
"button",
|
|
55
|
-
{
|
|
56
|
-
ref: ButtonRef,
|
|
57
|
-
style: buttonStyle,
|
|
58
|
-
type,
|
|
59
|
-
disabled,
|
|
60
|
-
className: `${style.mainButton} ${style[size]} ${loading ? style.loading : ""} ${Focused ? style.focused : ""} ${style[buttonType]} ${style[colorType]} ${disabled ? style.disabled : ""}`,
|
|
61
|
-
onClick: Click,
|
|
62
|
-
children: loading ? /* @__PURE__ */ jsxRuntimeExports.jsx(IconCircularLoading, { size: 20, stroke: getLoadingColor() }) : buttonSlot || /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: style.mainButtonContent, style: { ...mainButtonContentStyle, justifyContent: spaceBetween ? "space-between" : "center" }, children: [
|
|
63
|
-
leftSlot && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: style.leftSlot, style: leftSlotStyle, children: leftSlot }),
|
|
64
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("p", { className: style.mainButtonLabel, style: mainButtonLabelStyle, children: label }),
|
|
65
|
-
rightSlot && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: style.rightSlot, style: rightSlotStyle, children: rightSlot })
|
|
66
|
-
] })
|
|
67
|
-
}
|
|
68
|
-
);
|
|
69
|
-
};
|
|
70
|
-
export {
|
|
71
|
-
MainButton as default
|
|
72
|
-
};
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { j as jsxRuntimeExports } from "./master-components-react-ts.es17.js";
|
|
2
|
-
const IconSearch = ({ size = "15", color = "#717680" }) => {
|
|
3
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", width: size, height: size, viewBox: "0 0 16 16", fill: "none", children: [
|
|
4
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
5
|
-
"path",
|
|
6
|
-
{
|
|
7
|
-
fillRule: "evenodd",
|
|
8
|
-
clipRule: "evenodd",
|
|
9
|
-
d: "M2.16602 7.16797C2.16602 4.41047 4.40852 2.16797 7.16602 2.16797C9.92352 2.16797 12.166 4.41047 12.166 7.16797C12.166 9.92547 9.92352 12.168 7.16602 12.168C4.40852 12.168 2.16602 9.92547 2.16602 7.16797ZM15.2558 14.0775L12.4267 11.2475C13.3042 10.1192 13.8333 8.705 13.8333 7.16667C13.8333 3.49083 10.8425 0.5 7.16667 0.5C3.49083 0.5 0.5 3.49083 0.5 7.16667C0.5 10.8425 3.49083 13.8333 7.16667 13.8333C8.705 13.8333 10.1192 13.3042 11.2475 12.4267L14.0775 15.2558C14.24 15.4183 14.4533 15.5 14.6667 15.5C14.88 15.5 15.0933 15.4183 15.2558 15.2558C15.5817 14.93 15.5817 14.4033 15.2558 14.0775Z",
|
|
10
|
-
fill: color
|
|
11
|
-
}
|
|
12
|
-
),
|
|
13
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
14
|
-
"path",
|
|
15
|
-
{
|
|
16
|
-
fillRule: "evenodd",
|
|
17
|
-
clipRule: "evenodd",
|
|
18
|
-
d: "M2.16602 7.16797C2.16602 4.41047 4.40852 2.16797 7.16602 2.16797C9.92352 2.16797 12.166 4.41047 12.166 7.16797C12.166 9.92547 9.92352 12.168 7.16602 12.168C4.40852 12.168 2.16602 9.92547 2.16602 7.16797ZM15.2558 14.0775L12.4267 11.2475C13.3042 10.1192 13.8333 8.705 13.8333 7.16667C13.8333 3.49083 10.8425 0.5 7.16667 0.5C3.49083 0.5 0.5 3.49083 0.5 7.16667C0.5 10.8425 3.49083 13.8333 7.16667 13.8333C8.705 13.8333 10.1192 13.3042 11.2475 12.4267L14.0775 15.2558C14.24 15.4183 14.4533 15.5 14.6667 15.5C14.88 15.5 15.0933 15.4183 15.2558 15.2558C15.5817 14.93 15.5817 14.4033 15.2558 14.0775Z",
|
|
19
|
-
fill: color
|
|
20
|
-
}
|
|
21
|
-
)
|
|
22
|
-
] });
|
|
23
|
-
};
|
|
24
|
-
export {
|
|
25
|
-
IconSearch
|
|
26
|
-
};
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
const inputWrapper = "FormInput-module__inputWrapper";
|
|
2
|
-
const sm = "FormInput-module__sm";
|
|
3
|
-
const formInputWrapper = "FormInput-module__formInputWrapper";
|
|
4
|
-
const md = "FormInput-module__md";
|
|
5
|
-
const disabled = "FormInput-module__disabled";
|
|
6
|
-
const formInputLabel = "FormInput-module__formInputLabel";
|
|
7
|
-
const formInput = "FormInput-module__formInput";
|
|
8
|
-
const formInputHelperText = "FormInput-module__formInputHelperText";
|
|
9
|
-
const formInputLabelWrapper = "FormInput-module__formInputLabelWrapper";
|
|
10
|
-
const formInputRequired = "FormInput-module__formInputRequired";
|
|
11
|
-
const formInputHelperSlot = "FormInput-module__formInputHelperSlot";
|
|
12
|
-
const errorState = "FormInput-module__errorState";
|
|
13
|
-
const focused = "FormInput-module__focused";
|
|
14
|
-
const active = "FormInput-module__active";
|
|
15
|
-
const errorFocused = "FormInput-module__errorFocused";
|
|
16
|
-
const errorActive = "FormInput-module__errorActive";
|
|
17
|
-
const formInputSlot = "FormInput-module__formInputSlot";
|
|
18
|
-
const errorHelperText = "FormInput-module__errorHelperText";
|
|
19
|
-
const successHelperText = "FormInput-module__successHelperText";
|
|
20
|
-
const style = {
|
|
21
|
-
inputWrapper,
|
|
22
|
-
sm,
|
|
23
|
-
formInputWrapper,
|
|
24
|
-
md,
|
|
25
|
-
disabled,
|
|
26
|
-
formInputLabel,
|
|
27
|
-
formInput,
|
|
28
|
-
formInputHelperText,
|
|
29
|
-
formInputLabelWrapper,
|
|
30
|
-
formInputRequired,
|
|
31
|
-
formInputHelperSlot,
|
|
32
|
-
errorState,
|
|
33
|
-
focused,
|
|
34
|
-
active,
|
|
35
|
-
errorFocused,
|
|
36
|
-
errorActive,
|
|
37
|
-
formInputSlot,
|
|
38
|
-
errorHelperText,
|
|
39
|
-
successHelperText
|
|
40
|
-
};
|
|
41
|
-
export {
|
|
42
|
-
active,
|
|
43
|
-
style as default,
|
|
44
|
-
disabled,
|
|
45
|
-
errorActive,
|
|
46
|
-
errorFocused,
|
|
47
|
-
errorHelperText,
|
|
48
|
-
errorState,
|
|
49
|
-
focused,
|
|
50
|
-
formInput,
|
|
51
|
-
formInputHelperSlot,
|
|
52
|
-
formInputHelperText,
|
|
53
|
-
formInputLabel,
|
|
54
|
-
formInputLabelWrapper,
|
|
55
|
-
formInputRequired,
|
|
56
|
-
formInputSlot,
|
|
57
|
-
formInputWrapper,
|
|
58
|
-
inputWrapper,
|
|
59
|
-
md,
|
|
60
|
-
sm,
|
|
61
|
-
successHelperText
|
|
62
|
-
};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { j as jsxRuntimeExports } from "./master-components-react-ts.es17.js";
|
|
2
|
-
const IconCloseCircle = ({ width = "20", height = "20", color = "#C1C2C7" }) => {
|
|
3
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", width, height, viewBox: "0 0 20 20", fill: "none", children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
4
|
-
"path",
|
|
5
|
-
{
|
|
6
|
-
fillRule: "evenodd",
|
|
7
|
-
clipRule: "evenodd",
|
|
8
|
-
d: "M9.99996 18.3334C14.6023 18.3334 18.3333 14.6024 18.3333 10C18.3333 5.39765 14.6023 1.66669 9.99996 1.66669C5.39759 1.66669 1.66663 5.39765 1.66663 10C1.66663 14.6024 5.39759 18.3334 9.99996 18.3334ZM8.08922 6.91077C7.76378 6.58533 7.23614 6.58533 6.9107 6.91077C6.58527 7.2362 6.58527 7.76384 6.9107 8.08928L8.82145 10L6.9107 11.9108C6.58527 12.2362 6.58527 12.7638 6.9107 13.0893C7.23614 13.4147 7.76378 13.4147 8.08922 13.0893L9.99996 11.1785L11.9107 13.0893C12.2361 13.4147 12.7638 13.4147 13.0892 13.0893C13.4147 12.7638 13.4147 12.2362 13.0892 11.9108L11.1785 10L13.0892 8.08928C13.4147 7.76384 13.4147 7.2362 13.0892 6.91077C12.7638 6.58533 12.2361 6.58533 11.9107 6.91077L9.99996 8.82151L8.08922 6.91077Z",
|
|
9
|
-
fill: color
|
|
10
|
-
}
|
|
11
|
-
) });
|
|
12
|
-
};
|
|
13
|
-
export {
|
|
14
|
-
IconCloseCircle
|
|
15
|
-
};
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
const textareaContainer = "Textarea-module__textareaContainer";
|
|
2
|
-
const textAreaLabel = "Textarea-module__textAreaLabel";
|
|
3
|
-
const required = "Textarea-module__required";
|
|
4
|
-
const wrap = "Textarea-module__wrap";
|
|
5
|
-
const resize = "Textarea-module__resize";
|
|
6
|
-
const textareaIconClose = "Textarea-module__textareaIconClose";
|
|
7
|
-
const textarea = "Textarea-module__textarea";
|
|
8
|
-
const focused = "Textarea-module__focused";
|
|
9
|
-
const active = "Textarea-module__active";
|
|
10
|
-
const errorFocused = "Textarea-module__errorFocused";
|
|
11
|
-
const errorActive = "Textarea-module__errorActive";
|
|
12
|
-
const textareaFooter = "Textarea-module__textareaFooter";
|
|
13
|
-
const style = {
|
|
14
|
-
textareaContainer,
|
|
15
|
-
textAreaLabel,
|
|
16
|
-
required,
|
|
17
|
-
wrap,
|
|
18
|
-
resize,
|
|
19
|
-
textareaIconClose,
|
|
20
|
-
textarea,
|
|
21
|
-
focused,
|
|
22
|
-
active,
|
|
23
|
-
errorFocused,
|
|
24
|
-
errorActive,
|
|
25
|
-
textareaFooter
|
|
26
|
-
};
|
|
27
|
-
export {
|
|
28
|
-
active,
|
|
29
|
-
style as default,
|
|
30
|
-
errorActive,
|
|
31
|
-
errorFocused,
|
|
32
|
-
focused,
|
|
33
|
-
required,
|
|
34
|
-
resize,
|
|
35
|
-
textAreaLabel,
|
|
36
|
-
textarea,
|
|
37
|
-
textareaContainer,
|
|
38
|
-
textareaFooter,
|
|
39
|
-
textareaIconClose,
|
|
40
|
-
wrap
|
|
41
|
-
};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { j as jsxRuntimeExports } from "./master-components-react-ts.es17.js";
|
|
2
|
-
const IconCloseBackground = ({ size = 20, color = "#C1C2C7" }) => {
|
|
3
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", width: size, height: size, viewBox: "0 0 20 20", fill: "none", children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
4
|
-
"path",
|
|
5
|
-
{
|
|
6
|
-
fillRule: "evenodd",
|
|
7
|
-
clipRule: "evenodd",
|
|
8
|
-
d: "M10.0001 18.3332C14.6025 18.3332 18.3334 14.6022 18.3334 9.99984C18.3334 5.39746 14.6025 1.6665 10.0001 1.6665C5.39771 1.6665 1.66675 5.39746 1.66675 9.99984C1.66675 14.6022 5.39771 18.3332 10.0001 18.3332ZM8.08934 6.91058C7.7639 6.58514 7.23626 6.58514 6.91083 6.91058C6.58539 7.23602 6.58539 7.76366 6.91083 8.08909L8.82157 9.99984L6.91083 11.9106C6.58539 12.236 6.58539 12.7637 6.91083 13.0891C7.23626 13.4145 7.7639 13.4145 8.08934 13.0891L10.0001 11.1783L11.9108 13.0891C12.2363 13.4145 12.7639 13.4145 13.0893 13.0891C13.4148 12.7637 13.4148 12.236 13.0893 11.9106L11.1786 9.99984L13.0893 8.08909C13.4148 7.76366 13.4148 7.23602 13.0893 6.91058C12.7639 6.58514 12.2363 6.58514 11.9108 6.91058L10.0001 8.82133L8.08934 6.91058Z",
|
|
9
|
-
fill: color
|
|
10
|
-
}
|
|
11
|
-
) });
|
|
12
|
-
};
|
|
13
|
-
export {
|
|
14
|
-
IconCloseBackground
|
|
15
|
-
};
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
const toggleWrapper = "Toggle-module__toggleWrapper";
|
|
2
|
-
const checked = "Toggle-module__checked";
|
|
3
|
-
const error = "Toggle-module__error";
|
|
4
|
-
const disabled = "Toggle-module__disabled";
|
|
5
|
-
const sm = "Toggle-module__sm";
|
|
6
|
-
const toggleState = "Toggle-module__toggleState";
|
|
7
|
-
const md = "Toggle-module__md";
|
|
8
|
-
const lg = "Toggle-module__lg";
|
|
9
|
-
const style = {
|
|
10
|
-
toggleWrapper,
|
|
11
|
-
checked,
|
|
12
|
-
error,
|
|
13
|
-
disabled,
|
|
14
|
-
sm,
|
|
15
|
-
toggleState,
|
|
16
|
-
md,
|
|
17
|
-
lg
|
|
18
|
-
};
|
|
19
|
-
export {
|
|
20
|
-
checked,
|
|
21
|
-
style as default,
|
|
22
|
-
disabled,
|
|
23
|
-
error,
|
|
24
|
-
lg,
|
|
25
|
-
md,
|
|
26
|
-
sm,
|
|
27
|
-
toggleState,
|
|
28
|
-
toggleWrapper
|
|
29
|
-
};
|