@itilite/lumina-ui 1.1.8 → 1.1.9
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/chunk-AC6WC7OO.mjs +618 -0
- package/dist/index.mjs +3 -3
- package/dist/styles.css +243 -239
- package/package.json +1 -1
|
@@ -0,0 +1,618 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Chevron
|
|
3
|
+
} from "./chunk-ZTRM4HZJ.mjs";
|
|
4
|
+
import {
|
|
5
|
+
Select_default
|
|
6
|
+
} from "./chunk-IQHBVGA4.mjs";
|
|
7
|
+
|
|
8
|
+
// src/atom/RangePicker/RangePicker.tsx
|
|
9
|
+
import { memo, useEffect, useRef, useState } from "react";
|
|
10
|
+
import clsx from "clsx";
|
|
11
|
+
import dayjs from "dayjs";
|
|
12
|
+
|
|
13
|
+
// src/atom/RangePicker/RangePicker.module.scss
|
|
14
|
+
var RangePicker_module_default = { "range_start": "RangePicker-module__range_start___hGQp-", "range_end": "RangePicker-module__range_end___JJNib" };
|
|
15
|
+
|
|
16
|
+
// src/atom/RangePicker/RangePicker.tsx
|
|
17
|
+
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
18
|
+
function CustomRangePicker(props) {
|
|
19
|
+
var _a, _b;
|
|
20
|
+
const {
|
|
21
|
+
id = "",
|
|
22
|
+
footer,
|
|
23
|
+
onChange = () => {
|
|
24
|
+
},
|
|
25
|
+
dateRange = ["", ""],
|
|
26
|
+
showNightCount = false,
|
|
27
|
+
isRange = true,
|
|
28
|
+
showYearDropdown = false,
|
|
29
|
+
showSingleCalendar = false,
|
|
30
|
+
disablePastDates = false,
|
|
31
|
+
// New prop to control past date restriction
|
|
32
|
+
minDate = null,
|
|
33
|
+
// New prop for minimum allowed date
|
|
34
|
+
maxDate = null,
|
|
35
|
+
// New prop for maximum allowed date
|
|
36
|
+
minYear = 1900,
|
|
37
|
+
// Minimum year for dropdown
|
|
38
|
+
maxYear = (/* @__PURE__ */ new Date()).getFullYear() + 10,
|
|
39
|
+
// Maximum year for dropdown
|
|
40
|
+
experience = "business",
|
|
41
|
+
showToastError = () => {
|
|
42
|
+
}
|
|
43
|
+
} = props;
|
|
44
|
+
const onChangeRef = useRef(onChange);
|
|
45
|
+
useEffect(() => {
|
|
46
|
+
onChangeRef.current = onChange;
|
|
47
|
+
}, [onChange]);
|
|
48
|
+
const getInitialDate = () => {
|
|
49
|
+
if (dateRange[0]) {
|
|
50
|
+
return new Date(dateRange[0]);
|
|
51
|
+
}
|
|
52
|
+
if (!minDate && !maxDate && !minYear && !maxYear) {
|
|
53
|
+
return /* @__PURE__ */ new Date();
|
|
54
|
+
}
|
|
55
|
+
if (maxYear && maxYear !== (/* @__PURE__ */ new Date()).getFullYear()) {
|
|
56
|
+
let targetDate = new Date(maxYear, 7, 1);
|
|
57
|
+
if (maxDate) {
|
|
58
|
+
const maxDateTime = new Date(maxDate);
|
|
59
|
+
if (targetDate > maxDateTime) {
|
|
60
|
+
targetDate = new Date(
|
|
61
|
+
maxDateTime.getFullYear(),
|
|
62
|
+
maxDateTime.getMonth(),
|
|
63
|
+
1
|
|
64
|
+
);
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
return targetDate;
|
|
68
|
+
}
|
|
69
|
+
if (minDate) {
|
|
70
|
+
const minDateTime = new Date(minDate);
|
|
71
|
+
minDateTime.setHours(0, 0, 0, 0);
|
|
72
|
+
return minDateTime;
|
|
73
|
+
}
|
|
74
|
+
return /* @__PURE__ */ new Date();
|
|
75
|
+
};
|
|
76
|
+
const [currentDate, setCurrentDate] = useState(() => getInitialDate());
|
|
77
|
+
const [startDate, setStartDate] = useState(
|
|
78
|
+
dateRange[0] ? new Date(dateRange[0]) : null
|
|
79
|
+
);
|
|
80
|
+
const [endDate, setEndDate] = useState(
|
|
81
|
+
dateRange[0] && dateRange[1] ? new Date(dateRange[1]) : null
|
|
82
|
+
);
|
|
83
|
+
const [hoverDate, setHoverDate] = useState(null);
|
|
84
|
+
const [isSelectingEnd, setIsSelectingEnd] = useState(
|
|
85
|
+
dateRange[0] && !dateRange[1] ? true : false
|
|
86
|
+
);
|
|
87
|
+
const [selectedDate, setSelectedDate] = useState(
|
|
88
|
+
!isRange && dateRange[0] ? new Date(dateRange[0]) : null
|
|
89
|
+
);
|
|
90
|
+
const getDaysBetween = (start, end) => {
|
|
91
|
+
if (!start || !end) return 0;
|
|
92
|
+
const startDay = dayjs(start).startOf("day");
|
|
93
|
+
const endDay = dayjs(end).startOf("day");
|
|
94
|
+
return endDay.diff(startDay, "day");
|
|
95
|
+
};
|
|
96
|
+
const nightCount = Math.abs(getDaysBetween(startDate || endDate, hoverDate));
|
|
97
|
+
const nightCountText = nightCount > 1 ? `${nightCount} nights` : "1 night";
|
|
98
|
+
const today = /* @__PURE__ */ new Date();
|
|
99
|
+
today.setHours(0, 0, 0, 0);
|
|
100
|
+
const firstMonth = new Date(
|
|
101
|
+
currentDate.getFullYear(),
|
|
102
|
+
currentDate.getMonth(),
|
|
103
|
+
1
|
|
104
|
+
);
|
|
105
|
+
const secondMonth = new Date(
|
|
106
|
+
currentDate.getFullYear(),
|
|
107
|
+
currentDate.getMonth() + 1,
|
|
108
|
+
1
|
|
109
|
+
);
|
|
110
|
+
const monthNames = [
|
|
111
|
+
"January",
|
|
112
|
+
"February",
|
|
113
|
+
"March",
|
|
114
|
+
"April",
|
|
115
|
+
"May",
|
|
116
|
+
"June",
|
|
117
|
+
"July",
|
|
118
|
+
"August",
|
|
119
|
+
"September",
|
|
120
|
+
"October",
|
|
121
|
+
"November",
|
|
122
|
+
"December"
|
|
123
|
+
];
|
|
124
|
+
const dayNames = ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"];
|
|
125
|
+
const generateYearOptions = () => {
|
|
126
|
+
const years = [];
|
|
127
|
+
for (let i = minYear; i <= maxYear; i++) {
|
|
128
|
+
const isYearDisabled = isYearCompletelyDisabled(i);
|
|
129
|
+
years.push({
|
|
130
|
+
label: i.toString(),
|
|
131
|
+
value: i,
|
|
132
|
+
disabled: isYearDisabled
|
|
133
|
+
});
|
|
134
|
+
}
|
|
135
|
+
return years;
|
|
136
|
+
};
|
|
137
|
+
const isYearCompletelyDisabled = (year) => {
|
|
138
|
+
const firstDayOfYear = new Date(year, 0, 1);
|
|
139
|
+
const lastDayOfYear = new Date(year, 11, 31);
|
|
140
|
+
if (minDate) {
|
|
141
|
+
const minDateTime = new Date(minDate);
|
|
142
|
+
minDateTime.setHours(0, 0, 0, 0);
|
|
143
|
+
if (minDateTime > lastDayOfYear) {
|
|
144
|
+
return true;
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
if (maxDate) {
|
|
148
|
+
const maxDateTime = new Date(maxDate);
|
|
149
|
+
maxDateTime.setHours(0, 0, 0, 0);
|
|
150
|
+
if (maxDateTime < firstDayOfYear) {
|
|
151
|
+
return true;
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
if (disablePastDates) {
|
|
155
|
+
const today2 = /* @__PURE__ */ new Date();
|
|
156
|
+
today2.setHours(0, 0, 0, 0);
|
|
157
|
+
if (lastDayOfYear < today2) {
|
|
158
|
+
return true;
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
return false;
|
|
162
|
+
};
|
|
163
|
+
const yearOptions = generateYearOptions();
|
|
164
|
+
const generateCalendarDays = (monthDate) => {
|
|
165
|
+
const year = monthDate.getFullYear();
|
|
166
|
+
const month = monthDate.getMonth();
|
|
167
|
+
const firstDay = new Date(year, month, 1);
|
|
168
|
+
const lastDay = new Date(year, month + 1, 0);
|
|
169
|
+
const daysInMonth = lastDay.getDate();
|
|
170
|
+
const startingDayOfWeek = firstDay.getDay();
|
|
171
|
+
const days = [];
|
|
172
|
+
for (let i = 0; i < startingDayOfWeek; i++) {
|
|
173
|
+
days.push(null);
|
|
174
|
+
}
|
|
175
|
+
for (let day = 1; day <= daysInMonth; day++) {
|
|
176
|
+
days.push(new Date(year, month, day));
|
|
177
|
+
}
|
|
178
|
+
return days;
|
|
179
|
+
};
|
|
180
|
+
const formatDateKey = (date) => {
|
|
181
|
+
if (!date) return "";
|
|
182
|
+
return `${date.getFullYear()}-${date.getMonth()}-${date.getDate()}`;
|
|
183
|
+
};
|
|
184
|
+
const isSameDate = (date1, date2) => {
|
|
185
|
+
if (!date1 || !date2) return false;
|
|
186
|
+
return formatDateKey(date1) === formatDateKey(date2);
|
|
187
|
+
};
|
|
188
|
+
const isDateDisabled = (date) => {
|
|
189
|
+
if (!date) return false;
|
|
190
|
+
const checkDate = new Date(date);
|
|
191
|
+
checkDate.setHours(0, 0, 0, 0);
|
|
192
|
+
if (disablePastDates && checkDate < today) {
|
|
193
|
+
return true;
|
|
194
|
+
}
|
|
195
|
+
if (minDate) {
|
|
196
|
+
const minDateTime = new Date(minDate);
|
|
197
|
+
minDateTime.setHours(0, 0, 0, 0);
|
|
198
|
+
if (checkDate < minDateTime) {
|
|
199
|
+
return true;
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
if (maxDate) {
|
|
203
|
+
const maxDateTime = new Date(maxDate);
|
|
204
|
+
maxDateTime.setHours(0, 0, 0, 0);
|
|
205
|
+
if (checkDate > maxDateTime) {
|
|
206
|
+
return true;
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
return false;
|
|
210
|
+
};
|
|
211
|
+
const isDateInRange = (date) => {
|
|
212
|
+
if (!isRange || !startDate || !date) return false;
|
|
213
|
+
const compareDate = endDate || hoverDate;
|
|
214
|
+
if (!compareDate) return false;
|
|
215
|
+
const start = startDate < compareDate ? startDate : compareDate;
|
|
216
|
+
const end = startDate < compareDate ? compareDate : startDate;
|
|
217
|
+
return date >= start && date <= end;
|
|
218
|
+
};
|
|
219
|
+
const isDateBetweenRange = (date) => {
|
|
220
|
+
if (!isRange || !startDate || !date) return false;
|
|
221
|
+
const compareDate = endDate || hoverDate;
|
|
222
|
+
if (!compareDate) return false;
|
|
223
|
+
const start = startDate < compareDate ? startDate : compareDate;
|
|
224
|
+
const end = startDate < compareDate ? compareDate : startDate;
|
|
225
|
+
return date > start && date < end;
|
|
226
|
+
};
|
|
227
|
+
const handleDateClick = (date) => {
|
|
228
|
+
if (isDateDisabled(date)) return;
|
|
229
|
+
if (!isRange) {
|
|
230
|
+
setSelectedDate(date);
|
|
231
|
+
return;
|
|
232
|
+
}
|
|
233
|
+
const isCheckinCheckoutSame = dayjs(date).format("D MMM, YYYY") === dayjs(startDate).format("D MMM, YYYY");
|
|
234
|
+
if (showNightCount && isCheckinCheckoutSame) {
|
|
235
|
+
setStartDate(null);
|
|
236
|
+
setEndDate(null);
|
|
237
|
+
setIsSelectingEnd(false);
|
|
238
|
+
setHoverDate(null);
|
|
239
|
+
showToastError("Check-in and check-out dates cannot be the same.");
|
|
240
|
+
return;
|
|
241
|
+
}
|
|
242
|
+
if (!startDate || startDate && endDate) {
|
|
243
|
+
setStartDate(date);
|
|
244
|
+
setEndDate(null);
|
|
245
|
+
setIsSelectingEnd(true);
|
|
246
|
+
setHoverDate(null);
|
|
247
|
+
} else if (startDate && !endDate) {
|
|
248
|
+
if (date < startDate) {
|
|
249
|
+
setEndDate(startDate);
|
|
250
|
+
setStartDate(date);
|
|
251
|
+
} else {
|
|
252
|
+
setEndDate(date);
|
|
253
|
+
}
|
|
254
|
+
setIsSelectingEnd(false);
|
|
255
|
+
setHoverDate(null);
|
|
256
|
+
}
|
|
257
|
+
};
|
|
258
|
+
useEffect(() => {
|
|
259
|
+
if (isRange) {
|
|
260
|
+
sessionStorage.removeItem("rangePickerStartDate");
|
|
261
|
+
onChangeRef.current(null, [
|
|
262
|
+
startDate ? dayjs(startDate).format("D MMM, YYYY") : "",
|
|
263
|
+
endDate ? dayjs(endDate).format("D MMM, YYYY") : ""
|
|
264
|
+
]);
|
|
265
|
+
}
|
|
266
|
+
if (isRange && startDate && !endDate) {
|
|
267
|
+
sessionStorage.setItem(
|
|
268
|
+
"rangePickerStartDate",
|
|
269
|
+
dayjs(startDate).format("D MMM, YYYY")
|
|
270
|
+
);
|
|
271
|
+
}
|
|
272
|
+
}, [startDate, endDate, isRange]);
|
|
273
|
+
useEffect(() => {
|
|
274
|
+
if (!isRange && selectedDate) {
|
|
275
|
+
onChangeRef.current(null, dayjs(selectedDate).format("D MMM, YYYY"));
|
|
276
|
+
}
|
|
277
|
+
}, [selectedDate, isRange]);
|
|
278
|
+
const handleDateHover = (date) => {
|
|
279
|
+
if (isDateDisabled(date) || !isRange) return;
|
|
280
|
+
if (isSelectingEnd && startDate && !endDate) {
|
|
281
|
+
setHoverDate(date);
|
|
282
|
+
}
|
|
283
|
+
};
|
|
284
|
+
const navigateMonth = (direction) => {
|
|
285
|
+
const newDate = new Date(currentDate);
|
|
286
|
+
newDate.setMonth(currentDate.getMonth() + direction);
|
|
287
|
+
setCurrentDate(newDate);
|
|
288
|
+
};
|
|
289
|
+
const isPreviousMonthDisabled = () => {
|
|
290
|
+
const previousMonth = new Date(currentDate);
|
|
291
|
+
previousMonth.setMonth(currentDate.getMonth() - 1);
|
|
292
|
+
const lastDayOfPreviousMonth = new Date(
|
|
293
|
+
previousMonth.getFullYear(),
|
|
294
|
+
previousMonth.getMonth() + 1,
|
|
295
|
+
0
|
|
296
|
+
);
|
|
297
|
+
return isDateDisabled(lastDayOfPreviousMonth);
|
|
298
|
+
};
|
|
299
|
+
const isNextMonthDisabled = () => {
|
|
300
|
+
const nextMonth = new Date(currentDate);
|
|
301
|
+
nextMonth.setMonth(currentDate.getMonth() + 1);
|
|
302
|
+
const firstDayOfNextMonth = new Date(
|
|
303
|
+
nextMonth.getFullYear(),
|
|
304
|
+
nextMonth.getMonth(),
|
|
305
|
+
1
|
|
306
|
+
);
|
|
307
|
+
return isDateDisabled(firstDayOfNextMonth);
|
|
308
|
+
};
|
|
309
|
+
const handleYearChange = (selectedYear) => {
|
|
310
|
+
const newDate = new Date(currentDate);
|
|
311
|
+
newDate.setFullYear(selectedYear);
|
|
312
|
+
const targetMonth = newDate.getMonth();
|
|
313
|
+
if (!isMonthDisabled(selectedYear, targetMonth)) {
|
|
314
|
+
setCurrentDate(newDate);
|
|
315
|
+
} else {
|
|
316
|
+
const firstAvailableMonth = findFirstAvailableMonth(selectedYear);
|
|
317
|
+
if (firstAvailableMonth !== -1) {
|
|
318
|
+
newDate.setMonth(firstAvailableMonth);
|
|
319
|
+
setCurrentDate(newDate);
|
|
320
|
+
}
|
|
321
|
+
}
|
|
322
|
+
};
|
|
323
|
+
const isMonthDisabled = (year, month) => {
|
|
324
|
+
const lastDayOfMonth = new Date(year, month + 1, 0);
|
|
325
|
+
const firstDayOfMonth = new Date(year, month, 1);
|
|
326
|
+
return isDateDisabled(lastDayOfMonth) && isDateDisabled(firstDayOfMonth);
|
|
327
|
+
};
|
|
328
|
+
const findFirstAvailableMonth = (year) => {
|
|
329
|
+
for (let month = 0; month < 12; month++) {
|
|
330
|
+
if (!isMonthDisabled(year, month)) {
|
|
331
|
+
return month;
|
|
332
|
+
}
|
|
333
|
+
}
|
|
334
|
+
return -1;
|
|
335
|
+
};
|
|
336
|
+
const isSameDay = ((_a = dayjs(startDate)) == null ? void 0 : _a.format("D MMM, YYYY")) === ((_b = dayjs(endDate)) == null ? void 0 : _b.format("D MMM, YYYY"));
|
|
337
|
+
const NightCountTooltip = () => {
|
|
338
|
+
const TooltipArrow = memo(() => {
|
|
339
|
+
return /* @__PURE__ */ jsx("div", { className: "tw-w-3 tw-h-3 tw-flex tw-items-center tw-justify-center tw-rounded tw-bg-transparent tw-rotate-90", children: /* @__PURE__ */ jsx(
|
|
340
|
+
"div",
|
|
341
|
+
{
|
|
342
|
+
style: {
|
|
343
|
+
borderTop: "5px solid transparent",
|
|
344
|
+
borderBottom: "5px solid transparent",
|
|
345
|
+
borderLeft: "8px solid black"
|
|
346
|
+
}
|
|
347
|
+
}
|
|
348
|
+
) });
|
|
349
|
+
});
|
|
350
|
+
return /* @__PURE__ */ jsxs("div", { className: "tw-absolute tw-bottom-11 tw-py-2 tw-bg-black tw-text-white tw-px-2 tw-rounded-lg tw-z-50 tw-text-xs tw-whitespace-nowrap tw-opacity-0 tw-pointer-events-none group-hover:tw-opacity-100 tw-transition-opacity tw-duration-200", children: [
|
|
351
|
+
nightCountText,
|
|
352
|
+
/* @__PURE__ */ jsx("div", { className: "tw-absolute tw-right-[42%] tw-bottom-[-7px]", children: /* @__PURE__ */ jsx(TooltipArrow, {}) })
|
|
353
|
+
] });
|
|
354
|
+
};
|
|
355
|
+
const renderCalendar = (monthDate, isSecondCalendar = false) => {
|
|
356
|
+
const days = generateCalendarDays(monthDate);
|
|
357
|
+
const monthName = monthNames[monthDate.getMonth()];
|
|
358
|
+
const year = monthDate.getFullYear();
|
|
359
|
+
return /* @__PURE__ */ jsxs(
|
|
360
|
+
"div",
|
|
361
|
+
{
|
|
362
|
+
className: clsx("tw-flex-1 tw-max-w-[83vw] tw-mb-2", {
|
|
363
|
+
"tw-h-[320px]": showYearDropdown || days.length > 35,
|
|
364
|
+
"tw-h-[290px]": !showYearDropdown || days.length <= 35
|
|
365
|
+
}),
|
|
366
|
+
children: [
|
|
367
|
+
/* @__PURE__ */ jsx("div", { className: "tw-text-center tw-mb-4 sm:tw-mt-0", children: /* @__PURE__ */ jsxs("div", { className: " tw-flex tw-justify-center tw-items-center tw-gap-4 ", children: [
|
|
368
|
+
/* @__PURE__ */ jsxs("h3", { className: "tw-typography-footNoteBold tw-text-color-text-default tw-m-0", children: [
|
|
369
|
+
monthName,
|
|
370
|
+
" ",
|
|
371
|
+
!showYearDropdown && ` ${year}`
|
|
372
|
+
] }),
|
|
373
|
+
showYearDropdown && /* @__PURE__ */ jsx(
|
|
374
|
+
Select_default,
|
|
375
|
+
{
|
|
376
|
+
options: yearOptions,
|
|
377
|
+
value: currentDate.getFullYear(),
|
|
378
|
+
valueSelected: currentDate.getFullYear(),
|
|
379
|
+
onChange: (selectedYear) => {
|
|
380
|
+
if (typeof selectedYear === "number") {
|
|
381
|
+
handleYearChange(selectedYear);
|
|
382
|
+
}
|
|
383
|
+
},
|
|
384
|
+
className: "tw-min-w-fit tw-bg-transparent tw-typography-footNoteBold tw-text-color-text-default",
|
|
385
|
+
size: "small",
|
|
386
|
+
variant: "filled",
|
|
387
|
+
style: { width: "80px" },
|
|
388
|
+
id: `${id}-year-select`,
|
|
389
|
+
allowClear: false,
|
|
390
|
+
enableSearch: false,
|
|
391
|
+
experience
|
|
392
|
+
}
|
|
393
|
+
)
|
|
394
|
+
] }) }),
|
|
395
|
+
/* @__PURE__ */ jsx("div", { className: "tw-grid tw-grid-cols-7 tw-mb-2", children: dayNames.map((day) => /* @__PURE__ */ jsx(
|
|
396
|
+
"div",
|
|
397
|
+
{
|
|
398
|
+
className: "tw-py-2 tw-px-0 tw-text-center tw-typography-caption2 tw-text-[#6B7280]",
|
|
399
|
+
children: day
|
|
400
|
+
},
|
|
401
|
+
day
|
|
402
|
+
)) }),
|
|
403
|
+
/* @__PURE__ */ jsx("div", { className: "tw-grid tw-grid-cols-7", children: days.map((date, index) => {
|
|
404
|
+
if (!date) {
|
|
405
|
+
return /* @__PURE__ */ jsx("div", { className: "tw-h-10" }, index);
|
|
406
|
+
}
|
|
407
|
+
const isStart = isRange ? isSameDate(date, startDate) : false;
|
|
408
|
+
const isEnd = isRange ? isSameDate(date, endDate) : false;
|
|
409
|
+
const isSelected = !isRange ? isSameDate(date, selectedDate) : false;
|
|
410
|
+
const isInRange = isRange ? isDateBetweenRange(date) : false;
|
|
411
|
+
const isHovering = isRange && isSelectingEnd && hoverDate && isDateInRange(date) && !isStart && !isEnd;
|
|
412
|
+
const isDisabled = isDateDisabled(date);
|
|
413
|
+
let className = "tw-relative tw-z-20 tw-h-10 tw-w-10 tw-flex tw-items-center tw-justify-center tw-typography-caption1Bold ";
|
|
414
|
+
const isFirstInRow = index % 7 === 0;
|
|
415
|
+
const isLastInRow = index % 7 === 6;
|
|
416
|
+
let pseudoClass = "";
|
|
417
|
+
if (isDisabled) {
|
|
418
|
+
className += "tw-text-gray-300 tw-cursor-not-allowed ";
|
|
419
|
+
} else {
|
|
420
|
+
className += "tw-cursor-pointer ";
|
|
421
|
+
if (isStart || isEnd || isSelected) {
|
|
422
|
+
className += "tw-bg-black tw-z-[21] tw-text-white tw-font-medium tw-rounded-full ";
|
|
423
|
+
} else if (isInRange) {
|
|
424
|
+
className += "tw-text-gray-900";
|
|
425
|
+
if (window.innerWidth < 640) {
|
|
426
|
+
className = className.replace(
|
|
427
|
+
"tw-w-10",
|
|
428
|
+
"tw-pr-2 tw-w-[50px] sm:tw-w-10 sm:tw-pr-0"
|
|
429
|
+
);
|
|
430
|
+
}
|
|
431
|
+
pseudoClass = clsx(RangePicker_module_default.range_start, RangePicker_module_default.range_end);
|
|
432
|
+
} else {
|
|
433
|
+
className += "tw-text-gray-700 hover:tw-border-2 hover:tw-border-black tw-rounded-full hover:tw-border-solid ";
|
|
434
|
+
}
|
|
435
|
+
if (isHovering) {
|
|
436
|
+
className += "tw-border-2 tw-border-gray-400 tw-bg-white tw-z-[22]";
|
|
437
|
+
}
|
|
438
|
+
}
|
|
439
|
+
const titleDate = dayjs(date).format("YYYY-MM-DD");
|
|
440
|
+
const hoverDateFormatted = dayjs(hoverDate || null).format(
|
|
441
|
+
"YYYY-MM-DD"
|
|
442
|
+
);
|
|
443
|
+
const isHoveringDate = dayjs(hoverDateFormatted).isSame(
|
|
444
|
+
dayjs(date),
|
|
445
|
+
"day"
|
|
446
|
+
);
|
|
447
|
+
const isHoverDateGreater = dayjs(hoverDate).isAfter(
|
|
448
|
+
dayjs(startDate),
|
|
449
|
+
"day"
|
|
450
|
+
);
|
|
451
|
+
const isHoverDateLess = dayjs(hoverDate).isBefore(
|
|
452
|
+
dayjs(startDate),
|
|
453
|
+
"day"
|
|
454
|
+
);
|
|
455
|
+
return /* @__PURE__ */ jsxs("div", { className: "tw-relative", children: [
|
|
456
|
+
(isStart || isEnd) && startDate && endDate && !isSameDay && isRange && /* @__PURE__ */ jsx(
|
|
457
|
+
"div",
|
|
458
|
+
{
|
|
459
|
+
className: clsx(
|
|
460
|
+
"tw-w-9 tw-h-8 tw-bg-[#F2EFEC] tw-rotate-90 tw-absolute tw-z-10 tw-top-1",
|
|
461
|
+
{
|
|
462
|
+
"tw-left-5": isStart,
|
|
463
|
+
"tw-right-5": isEnd,
|
|
464
|
+
"tw-invisible": isFirstInRow && isEnd || isLastInRow && isStart
|
|
465
|
+
}
|
|
466
|
+
)
|
|
467
|
+
}
|
|
468
|
+
),
|
|
469
|
+
isHoveringDate && isHovering && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
470
|
+
/* @__PURE__ */ jsx(
|
|
471
|
+
"div",
|
|
472
|
+
{
|
|
473
|
+
className: clsx(
|
|
474
|
+
"tw-w-9 tw-h-8 tw-bg-[#F2EFEC] tw-rotate-90 tw-absolute tw-z-10 tw-top-1",
|
|
475
|
+
{
|
|
476
|
+
"tw-right-5": isHoverDateGreater,
|
|
477
|
+
"tw-left-5": isHoverDateLess,
|
|
478
|
+
"tw-invisible": isFirstInRow && isHoverDateGreater || isLastInRow && isHoverDateLess
|
|
479
|
+
}
|
|
480
|
+
)
|
|
481
|
+
}
|
|
482
|
+
),
|
|
483
|
+
/* @__PURE__ */ jsx(
|
|
484
|
+
"div",
|
|
485
|
+
{
|
|
486
|
+
className: clsx(
|
|
487
|
+
"tw-w-[18px] tw-h-[40px] tw-bg-white tw-rounded-r-full tw-absolute tw-z-20",
|
|
488
|
+
{
|
|
489
|
+
"tw-left-5": isHoverDateLess,
|
|
490
|
+
"tw-right-5 tw-rotate-180": isHoverDateGreater
|
|
491
|
+
}
|
|
492
|
+
)
|
|
493
|
+
}
|
|
494
|
+
)
|
|
495
|
+
] }),
|
|
496
|
+
isStart && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
497
|
+
/* @__PURE__ */ jsx(
|
|
498
|
+
"div",
|
|
499
|
+
{
|
|
500
|
+
className: clsx(
|
|
501
|
+
"tw-w-9 tw-h-8 tw-bg-[#F2EFEC] tw-rotate-90 tw-absolute tw-z-10 tw-top-1",
|
|
502
|
+
{
|
|
503
|
+
"tw-right-5": isHoverDateLess,
|
|
504
|
+
"tw-left-5": isHoverDateGreater,
|
|
505
|
+
"tw-invisible": isLastInRow
|
|
506
|
+
}
|
|
507
|
+
)
|
|
508
|
+
}
|
|
509
|
+
),
|
|
510
|
+
/* @__PURE__ */ jsx(
|
|
511
|
+
"div",
|
|
512
|
+
{
|
|
513
|
+
className: clsx(
|
|
514
|
+
"tw-w-[18px] tw-h-[40px] tw-bg-white tw-rounded-r-full tw-absolute tw-z-20",
|
|
515
|
+
{
|
|
516
|
+
"tw-left-5": isHoverDateGreater,
|
|
517
|
+
"tw-right-5 tw-rotate-180": isHoverDateLess
|
|
518
|
+
}
|
|
519
|
+
)
|
|
520
|
+
}
|
|
521
|
+
)
|
|
522
|
+
] }),
|
|
523
|
+
/* @__PURE__ */ jsxs(
|
|
524
|
+
"div",
|
|
525
|
+
{
|
|
526
|
+
className: clsx(className, pseudoClass, "tw-group", {
|
|
527
|
+
"tw-border-2 !tw-border-black tw-rounded-full tw-border-solid": dayjs(date).isSame(dayjs(hoverDate), "day")
|
|
528
|
+
}),
|
|
529
|
+
onClick: () => handleDateClick(date),
|
|
530
|
+
onMouseEnter: () => handleDateHover(date),
|
|
531
|
+
"data-date": titleDate,
|
|
532
|
+
children: [
|
|
533
|
+
showNightCount && isRange && isHovering && /* @__PURE__ */ jsx(NightCountTooltip, {}),
|
|
534
|
+
date.getDate()
|
|
535
|
+
]
|
|
536
|
+
}
|
|
537
|
+
)
|
|
538
|
+
] }, formatDateKey(date));
|
|
539
|
+
}) })
|
|
540
|
+
]
|
|
541
|
+
}
|
|
542
|
+
);
|
|
543
|
+
};
|
|
544
|
+
const arrowClasses = "tw-relative tw-top-3 sm:tw-top-0 tw-cursor-pointer tw-rounded-full tw-w-10 tw-h-10 tw-flex tw-justify-center hover:tw-bg-gray-100 tw-items-center";
|
|
545
|
+
return /* @__PURE__ */ jsxs(
|
|
546
|
+
"div",
|
|
547
|
+
{
|
|
548
|
+
className: clsx(
|
|
549
|
+
"custom-range-picker tw-relative tw-bg-white tw-rounded-xl tw-pt-1 tw-px-0 tw-max-w-4xl tw-mx-auto tw-border tw-border-gray-200 tw-border-solid tw-w-full tw-max-h-[90vh] tw-overflow-y-auto",
|
|
550
|
+
{
|
|
551
|
+
"sm:tw-w-[640px]": !showSingleCalendar,
|
|
552
|
+
"sm:tw-w-[330px]": showSingleCalendar
|
|
553
|
+
}
|
|
554
|
+
),
|
|
555
|
+
children: [
|
|
556
|
+
/* @__PURE__ */ jsxs("div", { className: "tw-flex tw-items-center tw-px-4 tw-justify-between tw-mb-4 tw-absolute tw-right-0 tw-left-0 tw-top-0.5 sm:tw-top-4 tw-w-auto", children: [
|
|
557
|
+
!isPreviousMonthDisabled() && /* @__PURE__ */ jsx(
|
|
558
|
+
"div",
|
|
559
|
+
{
|
|
560
|
+
className: clsx(arrowClasses, "tw-left-1"),
|
|
561
|
+
onClick: () => navigateMonth(-1),
|
|
562
|
+
id: "calendar-previous-month-button",
|
|
563
|
+
children: /* @__PURE__ */ jsx(
|
|
564
|
+
Chevron,
|
|
565
|
+
{
|
|
566
|
+
size: "medium",
|
|
567
|
+
className: "tw-relative -tw-top-0.5 tw-right-0.5"
|
|
568
|
+
}
|
|
569
|
+
)
|
|
570
|
+
}
|
|
571
|
+
),
|
|
572
|
+
isPreviousMonthDisabled() && /* @__PURE__ */ jsx("div", { className: "tw-w-10 tw-h-10" }),
|
|
573
|
+
!isNextMonthDisabled() && /* @__PURE__ */ jsx(
|
|
574
|
+
"div",
|
|
575
|
+
{
|
|
576
|
+
className: clsx(arrowClasses, "tw-mt-[1px] tw-right-1"),
|
|
577
|
+
onClick: () => navigateMonth(1),
|
|
578
|
+
id: "calendar-next-month-button",
|
|
579
|
+
children: /* @__PURE__ */ jsx(
|
|
580
|
+
Chevron,
|
|
581
|
+
{
|
|
582
|
+
size: "medium",
|
|
583
|
+
onClick: () => navigateMonth(1),
|
|
584
|
+
className: "tw-rotate-180 tw-relative tw-top-0.5 tw-left-0.5"
|
|
585
|
+
}
|
|
586
|
+
)
|
|
587
|
+
}
|
|
588
|
+
),
|
|
589
|
+
isNextMonthDisabled() && /* @__PURE__ */ jsx("div", { className: "tw-w-10 tw-h-10" })
|
|
590
|
+
] }),
|
|
591
|
+
/* @__PURE__ */ jsx("div", { className: "tw-flex tw-items-center tw-justify-between tw-px-6 tw-border-solid tw-border-color-gray-100 tw-border-b tw-border-t-0 tw-border-l-0 tw-border-r-0 tw-w-auto", children: /* @__PURE__ */ jsxs(
|
|
592
|
+
"div",
|
|
593
|
+
{
|
|
594
|
+
className: clsx("tw-flex tw-w-full", {
|
|
595
|
+
"tw-flex-col sm:tw-space-x-8 sm:tw-flex-row": isRange || !showSingleCalendar,
|
|
596
|
+
"tw-justify-center": !isRange || showSingleCalendar,
|
|
597
|
+
"tw-pt-4": showYearDropdown,
|
|
598
|
+
// More space when year dropdown is visible
|
|
599
|
+
"tw-pt-6": !showYearDropdown
|
|
600
|
+
}),
|
|
601
|
+
children: [
|
|
602
|
+
renderCalendar(firstMonth),
|
|
603
|
+
!showSingleCalendar && renderCalendar(secondMonth, true)
|
|
604
|
+
]
|
|
605
|
+
}
|
|
606
|
+
) }),
|
|
607
|
+
footer
|
|
608
|
+
]
|
|
609
|
+
}
|
|
610
|
+
);
|
|
611
|
+
}
|
|
612
|
+
CustomRangePicker.displayName = "RangePicker";
|
|
613
|
+
var RangePicker_default = CustomRangePicker;
|
|
614
|
+
|
|
615
|
+
export {
|
|
616
|
+
CustomRangePicker,
|
|
617
|
+
RangePicker_default
|
|
618
|
+
};
|
package/dist/index.mjs
CHANGED
|
@@ -16,9 +16,6 @@ import {
|
|
|
16
16
|
import {
|
|
17
17
|
Button_default
|
|
18
18
|
} from "./chunk-AF2RKLH6.mjs";
|
|
19
|
-
import {
|
|
20
|
-
Radio_default
|
|
21
|
-
} from "./chunk-2EBPXGRY.mjs";
|
|
22
19
|
import {
|
|
23
20
|
Checkbox_default
|
|
24
21
|
} from "./chunk-UQZNUEZE.mjs";
|
|
@@ -35,6 +32,9 @@ import {
|
|
|
35
32
|
LoadingSpinner_default
|
|
36
33
|
} from "./chunk-QKTMWS4J.mjs";
|
|
37
34
|
import "./chunk-ZTRM4HZJ.mjs";
|
|
35
|
+
import {
|
|
36
|
+
Radio_default
|
|
37
|
+
} from "./chunk-2EBPXGRY.mjs";
|
|
38
38
|
import "./chunk-FWCSY2DS.mjs";
|
|
39
39
|
export {
|
|
40
40
|
Avatar_default as Avatar,
|
package/dist/styles.css
CHANGED
|
@@ -690,6 +690,249 @@
|
|
|
690
690
|
|
|
691
691
|
|
|
692
692
|
/* CSS Modules */
|
|
693
|
+
/* src/atom/LoadingSpinner/LoadingSpinner.module.scss */
|
|
694
|
+
.LoadingSpinner-module__spinnerContainer___DiPLf {
|
|
695
|
+
display: flex;
|
|
696
|
+
justify-content: center;
|
|
697
|
+
align-items: center;
|
|
698
|
+
height: 100%;
|
|
699
|
+
margin-top: 2rem;
|
|
700
|
+
margin-bottom: 2rem;
|
|
701
|
+
}
|
|
702
|
+
|
|
703
|
+
/* src/atom/Checkbox/Checkbox.module.scss */
|
|
704
|
+
.Checkbox-module__checkbox___xxg5L {
|
|
705
|
+
display: flex;
|
|
706
|
+
align-items: center;
|
|
707
|
+
}
|
|
708
|
+
.Checkbox-module__checkbox___xxg5L.Checkbox-module__size_small___Kknlo .ant-checkbox .ant-checkbox-inner {
|
|
709
|
+
height: 16px;
|
|
710
|
+
width: 16px;
|
|
711
|
+
}
|
|
712
|
+
.Checkbox-module__checkbox___xxg5L.Checkbox-module__size_medium___V6Ah8 .ant-checkbox .ant-checkbox-inner {
|
|
713
|
+
height: 20px;
|
|
714
|
+
width: 20px;
|
|
715
|
+
}
|
|
716
|
+
.Checkbox-module__checkbox___xxg5L.Checkbox-module__size_medium___V6Ah8 .ant-checkbox .ant-checkbox-inner::after {
|
|
717
|
+
inset-inline-start: 27%;
|
|
718
|
+
}
|
|
719
|
+
.Checkbox-module__checkbox___xxg5L.Checkbox-module__size_large___eWjFY .ant-checkbox .ant-checkbox-inner {
|
|
720
|
+
height: 24px;
|
|
721
|
+
width: 24px;
|
|
722
|
+
}
|
|
723
|
+
.Checkbox-module__checkbox___xxg5L.Checkbox-module__size_large___eWjFY .ant-checkbox .ant-checkbox-inner::after {
|
|
724
|
+
inset-inline-start: 33%;
|
|
725
|
+
}
|
|
726
|
+
.Checkbox-module__checkbox___xxg5L.Checkbox-module__type_checked___5742T .ant-checkbox-checked .ant-checkbox-inner {
|
|
727
|
+
border-color: #ec5d25;
|
|
728
|
+
background-color: #ec5d25;
|
|
729
|
+
}
|
|
730
|
+
.Checkbox-module__checkbox___xxg5L.Checkbox-module__type_checked___5742T.ant-checkbox-wrapper:hover
|
|
731
|
+
.ant-checkbox-checked:not(.ant-checkbox-disabled)
|
|
732
|
+
.ant-checkbox-inner {
|
|
733
|
+
--tw-bg-opacity: 1;
|
|
734
|
+
background-color: rgb(185 71 16 / var(--tw-bg-opacity, 1));
|
|
735
|
+
}
|
|
736
|
+
.Checkbox-module__checkbox___xxg5L.Checkbox-module__type_checked___5742T .ant-checkbox-checked:focus-visible {
|
|
737
|
+
outline: 2px solid #0a65e7;
|
|
738
|
+
}
|
|
739
|
+
.Checkbox-module__checkbox___xxg5L.Checkbox-module__type_checked___5742T.Checkbox-module__disabled___v-RG1 {
|
|
740
|
+
cursor: not-allowed;
|
|
741
|
+
}
|
|
742
|
+
.Checkbox-module__checkbox___xxg5L.Checkbox-module__type_checked___5742T.Checkbox-module__disabled___v-RG1 .ant-checkbox-checked .ant-checkbox-inner {
|
|
743
|
+
opacity: 0.5;
|
|
744
|
+
border-color: #ec5d25;
|
|
745
|
+
background-color: #ec5d25;
|
|
746
|
+
}
|
|
747
|
+
.Checkbox-module__checkbox___xxg5L.Checkbox-module__type_checked___5742T.Checkbox-module__disabled___v-RG1 .ant-checkbox-checked .ant-checkbox-inner::after {
|
|
748
|
+
border-color: #ffffff;
|
|
749
|
+
}
|
|
750
|
+
.Checkbox-module__checkbox___xxg5L.Checkbox-module__type_unchecked___QFMpP .ant-checkbox .ant-checkbox-inner {
|
|
751
|
+
border-color: #b6bac3;
|
|
752
|
+
}
|
|
753
|
+
.Checkbox-module__checkbox___xxg5L.Checkbox-module__type_unchecked___QFMpP .ant-checkbox:hover .ant-checkbox-inner {
|
|
754
|
+
border-color: #6b7280;
|
|
755
|
+
}
|
|
756
|
+
.Checkbox-module__checkbox___xxg5L.Checkbox-module__type_unchecked___QFMpP .ant-checkbox:focus-visible {
|
|
757
|
+
outline: 2px solid #0a65e7;
|
|
758
|
+
}
|
|
759
|
+
.Checkbox-module__checkbox___xxg5L.Checkbox-module__type_unchecked___QFMpP.Checkbox-module__disabled___v-RG1 {
|
|
760
|
+
cursor: not-allowed;
|
|
761
|
+
}
|
|
762
|
+
.Checkbox-module__checkbox___xxg5L.Checkbox-module__type_unchecked___QFMpP.Checkbox-module__disabled___v-RG1 .ant-checkbox .ant-checkbox-inner {
|
|
763
|
+
border-color: #b6bac3;
|
|
764
|
+
background-color: #f9fafb;
|
|
765
|
+
}
|
|
766
|
+
.Checkbox-module__checkbox___xxg5L .ant-checkbox-disabled + span {
|
|
767
|
+
color: #363e4f;
|
|
768
|
+
}
|
|
769
|
+
.Checkbox-module__checkbox___xxg5L.Checkbox-module__variant_normal___faYKo {
|
|
770
|
+
color: #363e4f;
|
|
771
|
+
font-weight: 400;
|
|
772
|
+
font-size: 0.875rem;
|
|
773
|
+
line-height: 20px;
|
|
774
|
+
}
|
|
775
|
+
.Checkbox-module__checkbox___xxg5L.Checkbox-module__variant_emphasized___-koYj {
|
|
776
|
+
color: #363e4f;
|
|
777
|
+
font-weight: 500;
|
|
778
|
+
font-size: 0.875rem;
|
|
779
|
+
line-height: 20px;
|
|
780
|
+
}
|
|
781
|
+
.Checkbox-module__checkbox___xxg5L.Checkbox-module__variant_indeterminate___J5Xcc.Checkbox-module__disabled___v-RG1 .ant-checkbox-indeterminate .ant-checkbox-inner {
|
|
782
|
+
opacity: 0.5;
|
|
783
|
+
border-color: #ec5d25;
|
|
784
|
+
background-color: #ec5d25;
|
|
785
|
+
}
|
|
786
|
+
.Checkbox-module__checkbox___xxg5L.Checkbox-module__variant_indeterminate___J5Xcc.Checkbox-module__disabled___v-RG1 .ant-checkbox-indeterminate .ant-checkbox-inner::after {
|
|
787
|
+
border-color: #ffffff;
|
|
788
|
+
}
|
|
789
|
+
.Checkbox-module__checkbox___xxg5L.Checkbox-module__variant_indeterminate___J5Xcc .ant-checkbox-indeterminate .ant-checkbox-inner {
|
|
790
|
+
border-color: #ec5d25 !important;
|
|
791
|
+
background-color: #ec5d25 !important;
|
|
792
|
+
}
|
|
793
|
+
.Checkbox-module__checkbox___xxg5L.Checkbox-module__variant_indeterminate___J5Xcc .ant-checkbox-indeterminate .ant-checkbox-inner::after {
|
|
794
|
+
inset-inline-start: 50%;
|
|
795
|
+
width: 60%;
|
|
796
|
+
height: 3px;
|
|
797
|
+
border-radius: 4px;
|
|
798
|
+
background: white;
|
|
799
|
+
}
|
|
800
|
+
|
|
801
|
+
/* src/atom/Switch/Switch.module.scss */
|
|
802
|
+
.Switch-module__switch___fUHZL.ant-switch.ant-switch-small {
|
|
803
|
+
height: 0.75rem;
|
|
804
|
+
min-width: 1.5rem
|
|
805
|
+
}
|
|
806
|
+
.Switch-module__switch___fUHZL.ant-switch.ant-switch-small .ant-switch-handle {
|
|
807
|
+
height: 0.5rem;
|
|
808
|
+
width: 0.5rem
|
|
809
|
+
}
|
|
810
|
+
.Switch-module__switch___fUHZL.ant-switch.ant-switch-checked {
|
|
811
|
+
--tw-bg-opacity: 1;
|
|
812
|
+
background-color: rgb(236 93 37 / var(--tw-bg-opacity, 1))
|
|
813
|
+
}
|
|
814
|
+
.Switch-module__switch___fUHZL.ant-switch.ant-switch-checked:hover {
|
|
815
|
+
--tw-bg-opacity: 1;
|
|
816
|
+
background-color: rgb(236 93 37 / var(--tw-bg-opacity, 1))
|
|
817
|
+
}
|
|
818
|
+
|
|
819
|
+
/* src/atom/Tooltip/Tooltip.module.scss */
|
|
820
|
+
.Tooltip-module__light___H5oCc .ant-tooltip-content .ant-tooltip-inner {
|
|
821
|
+
background-color: white !important;
|
|
822
|
+
color: #111827;
|
|
823
|
+
border-radius: 0.5rem;
|
|
824
|
+
padding: 0.625rem;
|
|
825
|
+
--tw-text-opacity: 1;
|
|
826
|
+
color: rgb(33 40 55 / var(--tw-text-opacity, 1));
|
|
827
|
+
}
|
|
828
|
+
.Tooltip-module__light___H5oCc .ant-tooltip-arrow:before {
|
|
829
|
+
background-color: white !important;
|
|
830
|
+
}
|
|
831
|
+
|
|
832
|
+
/* src/atom/Slider/Slider.module.scss */
|
|
833
|
+
.Slider-module__label___9Uea- {
|
|
834
|
+
font-size: 13px;
|
|
835
|
+
line-height: 18px;
|
|
836
|
+
--tw-text-opacity: 1;
|
|
837
|
+
color: rgb(54 62 79 / var(--tw-text-opacity, 1));
|
|
838
|
+
}
|
|
839
|
+
|
|
840
|
+
.Slider-module__slider___JCS-c.ant-slider {
|
|
841
|
+
margin-left: 0px;
|
|
842
|
+
margin-right: 0px;
|
|
843
|
+
}
|
|
844
|
+
.Slider-module__slider___JCS-c.ant-slider .ant-slider-handle::after {
|
|
845
|
+
box-shadow: 0 0 0 2px #ec5d25;
|
|
846
|
+
transform: scale(1.25);
|
|
847
|
+
}
|
|
848
|
+
.Slider-module__slider___JCS-c.ant-slider .ant-slider-handle::before {
|
|
849
|
+
content: unset;
|
|
850
|
+
}
|
|
851
|
+
.Slider-module__slider___JCS-c.ant-slider .ant-slider-handle:hover::after, .Slider-module__slider___JCS-c.ant-slider .ant-slider-handle:active::after {
|
|
852
|
+
inset-inline-start: -1px;
|
|
853
|
+
inset-block-start: -1px;
|
|
854
|
+
}
|
|
855
|
+
.Slider-module__slider___JCS-c.ant-slider .ant-slider-track {
|
|
856
|
+
--tw-bg-opacity: 1;
|
|
857
|
+
background-color: rgb(236 93 37 / var(--tw-bg-opacity, 1));
|
|
858
|
+
height: 2px;
|
|
859
|
+
}
|
|
860
|
+
.Slider-module__slider___JCS-c.Slider-module__disableFill___rjbsy.ant-slider .ant-slider-track {
|
|
861
|
+
background-color: transparent;
|
|
862
|
+
}
|
|
863
|
+
.Slider-module__slider___JCS-c.Slider-module__disableFill___rjbsy .ant-slider-rail {
|
|
864
|
+
--tw-bg-opacity: 1;
|
|
865
|
+
background-color: rgb(229 231 235 / var(--tw-bg-opacity, 1));
|
|
866
|
+
}
|
|
867
|
+
|
|
868
|
+
/* src/atom/Radio/Radio.module.scss */
|
|
869
|
+
.Radio-module__radio___1CPAk {
|
|
870
|
+
display: flex;
|
|
871
|
+
align-items: center;
|
|
872
|
+
}
|
|
873
|
+
.Radio-module__radio___1CPAk.Radio-module__size_small___nRXgM .ant-radio .ant-radio-inner {
|
|
874
|
+
height: 16px;
|
|
875
|
+
width: 16px;
|
|
876
|
+
}
|
|
877
|
+
.Radio-module__radio___1CPAk.Radio-module__size_medium___uSzPl .ant-radio .ant-radio-inner {
|
|
878
|
+
height: 20px;
|
|
879
|
+
width: 20px;
|
|
880
|
+
}
|
|
881
|
+
.Radio-module__radio___1CPAk.Radio-module__size_large___ubpHs .ant-radio .ant-radio-inner {
|
|
882
|
+
height: 24px;
|
|
883
|
+
width: 24px;
|
|
884
|
+
}
|
|
885
|
+
.Radio-module__radio___1CPAk.Radio-module__type_checked___BvPpu .ant-radio-checked .ant-radio-inner {
|
|
886
|
+
border-color: #EC5D25;
|
|
887
|
+
background-color: #EC5D25;
|
|
888
|
+
}
|
|
889
|
+
.Radio-module__radio___1CPAk.Radio-module__type_checked___BvPpu .ant-radio-checked:hover .ant-radio-inner {
|
|
890
|
+
border-color: #B94710;
|
|
891
|
+
background-color: #B94710;
|
|
892
|
+
}
|
|
893
|
+
.Radio-module__radio___1CPAk.Radio-module__type_checked___BvPpu .ant-radio-checked:focus-visible {
|
|
894
|
+
outline: 2px solid #0A65E7;
|
|
895
|
+
}
|
|
896
|
+
.Radio-module__radio___1CPAk.Radio-module__type_checked___BvPpu.Radio-module__disabled___AF98Z {
|
|
897
|
+
cursor: not-allowed;
|
|
898
|
+
}
|
|
899
|
+
.Radio-module__radio___1CPAk.Radio-module__type_checked___BvPpu.Radio-module__disabled___AF98Z .ant-radio-checked .ant-radio-inner {
|
|
900
|
+
border-color: #B6BAC3;
|
|
901
|
+
background-color: #B6BAC3;
|
|
902
|
+
}
|
|
903
|
+
.Radio-module__radio___1CPAk.Radio-module__type_checked___BvPpu.Radio-module__disabled___AF98Z .ant-radio-checked .ant-radio-inner::after {
|
|
904
|
+
transform: scale(0.375);
|
|
905
|
+
background-color: #FFFFFF;
|
|
906
|
+
}
|
|
907
|
+
.Radio-module__radio___1CPAk.Radio-module__type_unchecked___Xrb-7 .ant-radio .ant-radio-inner {
|
|
908
|
+
border-color: #B6BAC3;
|
|
909
|
+
}
|
|
910
|
+
.Radio-module__radio___1CPAk.Radio-module__type_unchecked___Xrb-7 .ant-radio:hover .ant-radio-inner {
|
|
911
|
+
border-color: #6B7280;
|
|
912
|
+
}
|
|
913
|
+
.Radio-module__radio___1CPAk.Radio-module__type_unchecked___Xrb-7 .ant-radio:focus-visible {
|
|
914
|
+
outline: 2px solid #0A65E7;
|
|
915
|
+
}
|
|
916
|
+
.Radio-module__radio___1CPAk.Radio-module__type_unchecked___Xrb-7.Radio-module__disabled___AF98Z {
|
|
917
|
+
cursor: not-allowed;
|
|
918
|
+
}
|
|
919
|
+
.Radio-module__radio___1CPAk.Radio-module__type_unchecked___Xrb-7.Radio-module__disabled___AF98Z .ant-radio .ant-radio-inner {
|
|
920
|
+
border-color: #B6BAC3;
|
|
921
|
+
background-color: #F9FAFB;
|
|
922
|
+
}
|
|
923
|
+
.Radio-module__radio___1CPAk.Radio-module__variant_normal___FQkTC {
|
|
924
|
+
color: #363E4F;
|
|
925
|
+
font-weight: 400;
|
|
926
|
+
font-size: 0.875rem;
|
|
927
|
+
line-height: 20px;
|
|
928
|
+
}
|
|
929
|
+
.Radio-module__radio___1CPAk.Radio-module__variant_emphasized___Fgpv6 {
|
|
930
|
+
color: #363E4F;
|
|
931
|
+
font-weight: 500;
|
|
932
|
+
font-size: 0.875rem;
|
|
933
|
+
line-height: 20px;
|
|
934
|
+
}
|
|
935
|
+
|
|
693
936
|
/* src/atom/Button/Button.module.scss */
|
|
694
937
|
.Button-module__button___cLCyl {
|
|
695
938
|
display: flex;
|
|
@@ -884,56 +1127,6 @@
|
|
|
884
1127
|
outline: none;
|
|
885
1128
|
}
|
|
886
1129
|
|
|
887
|
-
/* src/atom/Switch/Switch.module.scss */
|
|
888
|
-
.Switch-module__switch___fUHZL.ant-switch.ant-switch-small {
|
|
889
|
-
height: 0.75rem;
|
|
890
|
-
min-width: 1.5rem
|
|
891
|
-
}
|
|
892
|
-
.Switch-module__switch___fUHZL.ant-switch.ant-switch-small .ant-switch-handle {
|
|
893
|
-
height: 0.5rem;
|
|
894
|
-
width: 0.5rem
|
|
895
|
-
}
|
|
896
|
-
.Switch-module__switch___fUHZL.ant-switch.ant-switch-checked {
|
|
897
|
-
--tw-bg-opacity: 1;
|
|
898
|
-
background-color: rgb(236 93 37 / var(--tw-bg-opacity, 1))
|
|
899
|
-
}
|
|
900
|
-
.Switch-module__switch___fUHZL.ant-switch.ant-switch-checked:hover {
|
|
901
|
-
--tw-bg-opacity: 1;
|
|
902
|
-
background-color: rgb(236 93 37 / var(--tw-bg-opacity, 1))
|
|
903
|
-
}
|
|
904
|
-
|
|
905
|
-
/* src/atom/Slider/Slider.module.scss */
|
|
906
|
-
.Slider-module__label___9Uea- {
|
|
907
|
-
font-size: 13px;
|
|
908
|
-
line-height: 18px;
|
|
909
|
-
--tw-text-opacity: 1;
|
|
910
|
-
color: rgb(54 62 79 / var(--tw-text-opacity, 1));
|
|
911
|
-
}
|
|
912
|
-
|
|
913
|
-
.Slider-module__slider___JCS-c.ant-slider .ant-slider-handle::after {
|
|
914
|
-
box-shadow: 0 0 0 2px #ec5d25;
|
|
915
|
-
transform: scale(1.25);
|
|
916
|
-
}
|
|
917
|
-
.Slider-module__slider___JCS-c.ant-slider .ant-slider-handle::before {
|
|
918
|
-
content: unset;
|
|
919
|
-
}
|
|
920
|
-
.Slider-module__slider___JCS-c.ant-slider .ant-slider-handle:hover::after, .Slider-module__slider___JCS-c.ant-slider .ant-slider-handle:active::after {
|
|
921
|
-
inset-inline-start: -1px;
|
|
922
|
-
inset-block-start: -1px;
|
|
923
|
-
}
|
|
924
|
-
.Slider-module__slider___JCS-c.ant-slider .ant-slider-track {
|
|
925
|
-
--tw-bg-opacity: 1;
|
|
926
|
-
background-color: rgb(236 93 37 / var(--tw-bg-opacity, 1));
|
|
927
|
-
height: 2px;
|
|
928
|
-
}
|
|
929
|
-
.Slider-module__slider___JCS-c.Slider-module__disableFill___rjbsy.ant-slider .ant-slider-track {
|
|
930
|
-
background-color: transparent;
|
|
931
|
-
}
|
|
932
|
-
.Slider-module__slider___JCS-c.Slider-module__disableFill___rjbsy .ant-slider-rail {
|
|
933
|
-
--tw-bg-opacity: 1;
|
|
934
|
-
background-color: rgb(229 231 235 / var(--tw-bg-opacity, 1));
|
|
935
|
-
}
|
|
936
|
-
|
|
937
1130
|
/* src/atom/Tag/Tag.module.scss */
|
|
938
1131
|
.Tag-module__tag___PIkhI {
|
|
939
1132
|
border-radius: 0.25rem;
|
|
@@ -1029,127 +1222,6 @@
|
|
|
1029
1222
|
border-color: rgb(107 114 128 / var(--tw-border-opacity, 1))
|
|
1030
1223
|
}
|
|
1031
1224
|
|
|
1032
|
-
/* src/atom/Tooltip/Tooltip.module.scss */
|
|
1033
|
-
.Tooltip-module__light___H5oCc .ant-tooltip-content .ant-tooltip-inner {
|
|
1034
|
-
background-color: white !important;
|
|
1035
|
-
color: #111827;
|
|
1036
|
-
border-radius: 0.5rem;
|
|
1037
|
-
padding: 0.625rem;
|
|
1038
|
-
--tw-text-opacity: 1;
|
|
1039
|
-
color: rgb(33 40 55 / var(--tw-text-opacity, 1));
|
|
1040
|
-
}
|
|
1041
|
-
.Tooltip-module__light___H5oCc .ant-tooltip-arrow:before {
|
|
1042
|
-
background-color: white !important;
|
|
1043
|
-
}
|
|
1044
|
-
|
|
1045
|
-
/* src/atom/Checkbox/Checkbox.module.scss */
|
|
1046
|
-
.Checkbox-module__checkbox___xxg5L {
|
|
1047
|
-
display: flex;
|
|
1048
|
-
align-items: center;
|
|
1049
|
-
}
|
|
1050
|
-
.Checkbox-module__checkbox___xxg5L.Checkbox-module__size_small___Kknlo .ant-checkbox .ant-checkbox-inner {
|
|
1051
|
-
height: 16px;
|
|
1052
|
-
width: 16px;
|
|
1053
|
-
}
|
|
1054
|
-
.Checkbox-module__checkbox___xxg5L.Checkbox-module__size_medium___V6Ah8 .ant-checkbox .ant-checkbox-inner {
|
|
1055
|
-
height: 20px;
|
|
1056
|
-
width: 20px;
|
|
1057
|
-
}
|
|
1058
|
-
.Checkbox-module__checkbox___xxg5L.Checkbox-module__size_medium___V6Ah8 .ant-checkbox .ant-checkbox-inner::after {
|
|
1059
|
-
inset-inline-start: 27%;
|
|
1060
|
-
}
|
|
1061
|
-
.Checkbox-module__checkbox___xxg5L.Checkbox-module__size_large___eWjFY .ant-checkbox .ant-checkbox-inner {
|
|
1062
|
-
height: 24px;
|
|
1063
|
-
width: 24px;
|
|
1064
|
-
}
|
|
1065
|
-
.Checkbox-module__checkbox___xxg5L.Checkbox-module__size_large___eWjFY .ant-checkbox .ant-checkbox-inner::after {
|
|
1066
|
-
inset-inline-start: 33%;
|
|
1067
|
-
}
|
|
1068
|
-
.Checkbox-module__checkbox___xxg5L.Checkbox-module__type_checked___5742T .ant-checkbox-checked .ant-checkbox-inner {
|
|
1069
|
-
border-color: #ec5d25;
|
|
1070
|
-
background-color: #ec5d25;
|
|
1071
|
-
}
|
|
1072
|
-
.Checkbox-module__checkbox___xxg5L.Checkbox-module__type_checked___5742T.ant-checkbox-wrapper:hover
|
|
1073
|
-
.ant-checkbox-checked:not(.ant-checkbox-disabled)
|
|
1074
|
-
.ant-checkbox-inner {
|
|
1075
|
-
--tw-bg-opacity: 1;
|
|
1076
|
-
background-color: rgb(185 71 16 / var(--tw-bg-opacity, 1));
|
|
1077
|
-
}
|
|
1078
|
-
.Checkbox-module__checkbox___xxg5L.Checkbox-module__type_checked___5742T .ant-checkbox-checked:focus-visible {
|
|
1079
|
-
outline: 2px solid #0a65e7;
|
|
1080
|
-
}
|
|
1081
|
-
.Checkbox-module__checkbox___xxg5L.Checkbox-module__type_checked___5742T.Checkbox-module__disabled___v-RG1 {
|
|
1082
|
-
cursor: not-allowed;
|
|
1083
|
-
}
|
|
1084
|
-
.Checkbox-module__checkbox___xxg5L.Checkbox-module__type_checked___5742T.Checkbox-module__disabled___v-RG1 .ant-checkbox-checked .ant-checkbox-inner {
|
|
1085
|
-
opacity: 0.5;
|
|
1086
|
-
border-color: #ec5d25;
|
|
1087
|
-
background-color: #ec5d25;
|
|
1088
|
-
}
|
|
1089
|
-
.Checkbox-module__checkbox___xxg5L.Checkbox-module__type_checked___5742T.Checkbox-module__disabled___v-RG1 .ant-checkbox-checked .ant-checkbox-inner::after {
|
|
1090
|
-
border-color: #ffffff;
|
|
1091
|
-
}
|
|
1092
|
-
.Checkbox-module__checkbox___xxg5L.Checkbox-module__type_unchecked___QFMpP .ant-checkbox .ant-checkbox-inner {
|
|
1093
|
-
border-color: #b6bac3;
|
|
1094
|
-
}
|
|
1095
|
-
.Checkbox-module__checkbox___xxg5L.Checkbox-module__type_unchecked___QFMpP .ant-checkbox:hover .ant-checkbox-inner {
|
|
1096
|
-
border-color: #6b7280;
|
|
1097
|
-
}
|
|
1098
|
-
.Checkbox-module__checkbox___xxg5L.Checkbox-module__type_unchecked___QFMpP .ant-checkbox:focus-visible {
|
|
1099
|
-
outline: 2px solid #0a65e7;
|
|
1100
|
-
}
|
|
1101
|
-
.Checkbox-module__checkbox___xxg5L.Checkbox-module__type_unchecked___QFMpP.Checkbox-module__disabled___v-RG1 {
|
|
1102
|
-
cursor: not-allowed;
|
|
1103
|
-
}
|
|
1104
|
-
.Checkbox-module__checkbox___xxg5L.Checkbox-module__type_unchecked___QFMpP.Checkbox-module__disabled___v-RG1 .ant-checkbox .ant-checkbox-inner {
|
|
1105
|
-
border-color: #b6bac3;
|
|
1106
|
-
background-color: #f9fafb;
|
|
1107
|
-
}
|
|
1108
|
-
.Checkbox-module__checkbox___xxg5L .ant-checkbox-disabled + span {
|
|
1109
|
-
color: #363e4f;
|
|
1110
|
-
}
|
|
1111
|
-
.Checkbox-module__checkbox___xxg5L.Checkbox-module__variant_normal___faYKo {
|
|
1112
|
-
color: #363e4f;
|
|
1113
|
-
font-weight: 400;
|
|
1114
|
-
font-size: 0.875rem;
|
|
1115
|
-
line-height: 20px;
|
|
1116
|
-
}
|
|
1117
|
-
.Checkbox-module__checkbox___xxg5L.Checkbox-module__variant_emphasized___-koYj {
|
|
1118
|
-
color: #363e4f;
|
|
1119
|
-
font-weight: 500;
|
|
1120
|
-
font-size: 0.875rem;
|
|
1121
|
-
line-height: 20px;
|
|
1122
|
-
}
|
|
1123
|
-
.Checkbox-module__checkbox___xxg5L.Checkbox-module__variant_indeterminate___J5Xcc.Checkbox-module__disabled___v-RG1 .ant-checkbox-indeterminate .ant-checkbox-inner {
|
|
1124
|
-
opacity: 0.5;
|
|
1125
|
-
border-color: #ec5d25;
|
|
1126
|
-
background-color: #ec5d25;
|
|
1127
|
-
}
|
|
1128
|
-
.Checkbox-module__checkbox___xxg5L.Checkbox-module__variant_indeterminate___J5Xcc.Checkbox-module__disabled___v-RG1 .ant-checkbox-indeterminate .ant-checkbox-inner::after {
|
|
1129
|
-
border-color: #ffffff;
|
|
1130
|
-
}
|
|
1131
|
-
.Checkbox-module__checkbox___xxg5L.Checkbox-module__variant_indeterminate___J5Xcc .ant-checkbox-indeterminate .ant-checkbox-inner {
|
|
1132
|
-
border-color: #ec5d25 !important;
|
|
1133
|
-
background-color: #ec5d25 !important;
|
|
1134
|
-
}
|
|
1135
|
-
.Checkbox-module__checkbox___xxg5L.Checkbox-module__variant_indeterminate___J5Xcc .ant-checkbox-indeterminate .ant-checkbox-inner::after {
|
|
1136
|
-
inset-inline-start: 50%;
|
|
1137
|
-
width: 60%;
|
|
1138
|
-
height: 3px;
|
|
1139
|
-
border-radius: 4px;
|
|
1140
|
-
background: white;
|
|
1141
|
-
}
|
|
1142
|
-
|
|
1143
|
-
/* src/atom/LoadingSpinner/LoadingSpinner.module.scss */
|
|
1144
|
-
.LoadingSpinner-module__spinnerContainer___DiPLf {
|
|
1145
|
-
display: flex;
|
|
1146
|
-
justify-content: center;
|
|
1147
|
-
align-items: center;
|
|
1148
|
-
height: 100%;
|
|
1149
|
-
margin-top: 2rem;
|
|
1150
|
-
margin-bottom: 2rem;
|
|
1151
|
-
}
|
|
1152
|
-
|
|
1153
1225
|
/* src/atom/Modal/Modal.module.scss */
|
|
1154
1226
|
.Modal-module__modal___PKrAi.Modal-module__footerMargintopDisable___4B6u- .Modal-module__ant-modal-footer___HKsDR {
|
|
1155
1227
|
margin-top: 0;
|
|
@@ -1223,74 +1295,6 @@
|
|
|
1223
1295
|
margin-inline-start: 0.5rem;
|
|
1224
1296
|
}
|
|
1225
1297
|
|
|
1226
|
-
/* src/atom/Radio/Radio.module.scss */
|
|
1227
|
-
.Radio-module__radio___1CPAk {
|
|
1228
|
-
display: flex;
|
|
1229
|
-
align-items: center;
|
|
1230
|
-
}
|
|
1231
|
-
.Radio-module__radio___1CPAk.Radio-module__size_small___nRXgM .ant-radio .ant-radio-inner {
|
|
1232
|
-
height: 16px;
|
|
1233
|
-
width: 16px;
|
|
1234
|
-
}
|
|
1235
|
-
.Radio-module__radio___1CPAk.Radio-module__size_medium___uSzPl .ant-radio .ant-radio-inner {
|
|
1236
|
-
height: 20px;
|
|
1237
|
-
width: 20px;
|
|
1238
|
-
}
|
|
1239
|
-
.Radio-module__radio___1CPAk.Radio-module__size_large___ubpHs .ant-radio .ant-radio-inner {
|
|
1240
|
-
height: 24px;
|
|
1241
|
-
width: 24px;
|
|
1242
|
-
}
|
|
1243
|
-
.Radio-module__radio___1CPAk.Radio-module__type_checked___BvPpu .ant-radio-checked .ant-radio-inner {
|
|
1244
|
-
border-color: #EC5D25;
|
|
1245
|
-
background-color: #EC5D25;
|
|
1246
|
-
}
|
|
1247
|
-
.Radio-module__radio___1CPAk.Radio-module__type_checked___BvPpu .ant-radio-checked:hover .ant-radio-inner {
|
|
1248
|
-
border-color: #B94710;
|
|
1249
|
-
background-color: #B94710;
|
|
1250
|
-
}
|
|
1251
|
-
.Radio-module__radio___1CPAk.Radio-module__type_checked___BvPpu .ant-radio-checked:focus-visible {
|
|
1252
|
-
outline: 2px solid #0A65E7;
|
|
1253
|
-
}
|
|
1254
|
-
.Radio-module__radio___1CPAk.Radio-module__type_checked___BvPpu.Radio-module__disabled___AF98Z {
|
|
1255
|
-
cursor: not-allowed;
|
|
1256
|
-
}
|
|
1257
|
-
.Radio-module__radio___1CPAk.Radio-module__type_checked___BvPpu.Radio-module__disabled___AF98Z .ant-radio-checked .ant-radio-inner {
|
|
1258
|
-
border-color: #B6BAC3;
|
|
1259
|
-
background-color: #B6BAC3;
|
|
1260
|
-
}
|
|
1261
|
-
.Radio-module__radio___1CPAk.Radio-module__type_checked___BvPpu.Radio-module__disabled___AF98Z .ant-radio-checked .ant-radio-inner::after {
|
|
1262
|
-
transform: scale(0.375);
|
|
1263
|
-
background-color: #FFFFFF;
|
|
1264
|
-
}
|
|
1265
|
-
.Radio-module__radio___1CPAk.Radio-module__type_unchecked___Xrb-7 .ant-radio .ant-radio-inner {
|
|
1266
|
-
border-color: #B6BAC3;
|
|
1267
|
-
}
|
|
1268
|
-
.Radio-module__radio___1CPAk.Radio-module__type_unchecked___Xrb-7 .ant-radio:hover .ant-radio-inner {
|
|
1269
|
-
border-color: #6B7280;
|
|
1270
|
-
}
|
|
1271
|
-
.Radio-module__radio___1CPAk.Radio-module__type_unchecked___Xrb-7 .ant-radio:focus-visible {
|
|
1272
|
-
outline: 2px solid #0A65E7;
|
|
1273
|
-
}
|
|
1274
|
-
.Radio-module__radio___1CPAk.Radio-module__type_unchecked___Xrb-7.Radio-module__disabled___AF98Z {
|
|
1275
|
-
cursor: not-allowed;
|
|
1276
|
-
}
|
|
1277
|
-
.Radio-module__radio___1CPAk.Radio-module__type_unchecked___Xrb-7.Radio-module__disabled___AF98Z .ant-radio .ant-radio-inner {
|
|
1278
|
-
border-color: #B6BAC3;
|
|
1279
|
-
background-color: #F9FAFB;
|
|
1280
|
-
}
|
|
1281
|
-
.Radio-module__radio___1CPAk.Radio-module__variant_normal___FQkTC {
|
|
1282
|
-
color: #363E4F;
|
|
1283
|
-
font-weight: 400;
|
|
1284
|
-
font-size: 0.875rem;
|
|
1285
|
-
line-height: 20px;
|
|
1286
|
-
}
|
|
1287
|
-
.Radio-module__radio___1CPAk.Radio-module__variant_emphasized___Fgpv6 {
|
|
1288
|
-
color: #363E4F;
|
|
1289
|
-
font-weight: 500;
|
|
1290
|
-
font-size: 0.875rem;
|
|
1291
|
-
line-height: 20px;
|
|
1292
|
-
}
|
|
1293
|
-
|
|
1294
1298
|
/* src/atom/RangePicker/RangePicker.module.scss */
|
|
1295
1299
|
.RangePicker-module__range_start___hGQp-::after {
|
|
1296
1300
|
content: "";
|