@clickhouse/click-ui 0.0.169 → 0.0.170
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/click-ui.es.js +965 -198
- package/dist/click-ui.umd.js +1218 -451
- package/dist/components/DatePicker/DatePicker.d.ts +8 -0
- package/dist/components/Input/InputWrapper.d.ts +3 -2
- package/dist/components/index.d.ts +1 -0
- package/dist/styles/types.d.ts +71 -0
- package/dist/styles/variables.classic.json.d.ts +35 -0
- package/dist/styles/variables.dark.json.d.ts +35 -0
- package/dist/styles/variables.json.d.ts +73 -2
- package/dist/styles/variables.light.json.d.ts +37 -2
- package/package.json +2 -1
package/dist/click-ui.es.js
CHANGED
|
@@ -5,7 +5,7 @@ var __publicField = (obj, key, value) => {
|
|
|
5
5
|
return value;
|
|
6
6
|
};
|
|
7
7
|
import { jsxs, jsx, Fragment as Fragment$1 } from "react/jsx-runtime";
|
|
8
|
-
import { keyframes, styled, useTheme, createGlobalStyle, ThemeProvider as ThemeProvider$1 } from "styled-components";
|
|
8
|
+
import styled$1, { keyframes, styled, useTheme, createGlobalStyle, ThemeProvider as ThemeProvider$1 } from "styled-components";
|
|
9
9
|
import * as React from "react";
|
|
10
10
|
import React__default, { forwardRef, useCallback, createContext, useMemo, createElement as createElement$1, useContext, useRef, useEffect, useState, Children, isValidElement, cloneElement, Fragment, useLayoutEffect, useReducer, useId, PureComponent, Component, memo } from "react";
|
|
11
11
|
import * as ReactDOM from "react-dom";
|
|
@@ -589,7 +589,7 @@ const SandGlass = (props) => /* @__PURE__ */ jsxs("svg", { width: "24", height:
|
|
|
589
589
|
/* @__PURE__ */ jsx("path", { d: "M8 4V8C8 8.63 8.296 9.222 8.8 9.6L12 12L15.2 9.6C15.704 9.222 16 8.63 16 8V4", stroke: "#161517", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }),
|
|
590
590
|
/* @__PURE__ */ jsx("path", { d: "M16 20V16C16 15.37 15.704 14.778 15.2 14.4L12 12L8.8 14.4C8.296 14.778 8 15.37 8 16V20", stroke: "#161517", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" })
|
|
591
591
|
] });
|
|
592
|
-
const Calendar = (props) => /* @__PURE__ */ jsxs("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...props, children: [
|
|
592
|
+
const Calendar$1 = (props) => /* @__PURE__ */ jsxs("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...props, children: [
|
|
593
593
|
/* @__PURE__ */ jsx("rect", { x: "2.99609", y: "2.99658", width: "18.0075", height: "18.0075", rx: "3", stroke: "#161517", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }),
|
|
594
594
|
/* @__PURE__ */ jsx("path", { d: "M21.0036 7.99826H2.99609", stroke: "#161517", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }),
|
|
595
595
|
/* @__PURE__ */ jsx("path", { d: "M17.3022 11.4997C17.3022 11.5273 17.2798 11.5497 17.2522 11.5497C17.2245 11.5497 17.2021 11.5273 17.2021 11.4997C17.2021 11.4721 17.2245 11.4497 17.2522 11.4497", stroke: "#161517", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }),
|
|
@@ -688,7 +688,7 @@ const ICONS_MAP = {
|
|
|
688
688
|
briefcase: Briefcase,
|
|
689
689
|
building: Building,
|
|
690
690
|
"burger-menu": BurgerMenu,
|
|
691
|
-
calendar: Calendar,
|
|
691
|
+
calendar: Calendar$1,
|
|
692
692
|
"calendar-with-time": CalendarWithTime,
|
|
693
693
|
cards: Cards,
|
|
694
694
|
"cell-tower": CellTower,
|
|
@@ -12454,14 +12454,14 @@ function listLanguages() {
|
|
|
12454
12454
|
return high.listLanguages();
|
|
12455
12455
|
}
|
|
12456
12456
|
function registerAlias(name2, alias) {
|
|
12457
|
-
var
|
|
12457
|
+
var map2 = name2;
|
|
12458
12458
|
var key;
|
|
12459
12459
|
if (alias) {
|
|
12460
|
-
|
|
12461
|
-
|
|
12460
|
+
map2 = {};
|
|
12461
|
+
map2[name2] = alias;
|
|
12462
12462
|
}
|
|
12463
|
-
for (key in
|
|
12464
|
-
high.registerAliases(
|
|
12463
|
+
for (key in map2) {
|
|
12464
|
+
high.registerAliases(map2[key], { languageName: key });
|
|
12465
12465
|
}
|
|
12466
12466
|
}
|
|
12467
12467
|
function Emitter(options) {
|
|
@@ -13678,6 +13678,778 @@ const CodeBlock = ({
|
|
|
13678
13678
|
}, showLineNumbers, wrapLines: wrap || wrapLines, wrapLongLines: wrap || wrapLines, children })
|
|
13679
13679
|
] });
|
|
13680
13680
|
};
|
|
13681
|
+
const constructFromSymbol = Symbol.for("constructDateFrom");
|
|
13682
|
+
function constructFrom(date, value) {
|
|
13683
|
+
if (typeof date === "function")
|
|
13684
|
+
return date(value);
|
|
13685
|
+
if (date && typeof date === "object" && constructFromSymbol in date)
|
|
13686
|
+
return date[constructFromSymbol](value);
|
|
13687
|
+
if (date instanceof Date)
|
|
13688
|
+
return new date.constructor(value);
|
|
13689
|
+
return new Date(value);
|
|
13690
|
+
}
|
|
13691
|
+
function toDate(argument, context) {
|
|
13692
|
+
return constructFrom(context || argument, argument);
|
|
13693
|
+
}
|
|
13694
|
+
function addDays(date, amount, options) {
|
|
13695
|
+
const _date = toDate(date, options == null ? void 0 : options.in);
|
|
13696
|
+
if (isNaN(amount))
|
|
13697
|
+
return constructFrom(date, NaN);
|
|
13698
|
+
if (!amount)
|
|
13699
|
+
return _date;
|
|
13700
|
+
_date.setDate(_date.getDate() + amount);
|
|
13701
|
+
return _date;
|
|
13702
|
+
}
|
|
13703
|
+
function addMonths(date, amount, options) {
|
|
13704
|
+
const _date = toDate(date, options == null ? void 0 : options.in);
|
|
13705
|
+
if (isNaN(amount))
|
|
13706
|
+
return constructFrom(date, NaN);
|
|
13707
|
+
if (!amount) {
|
|
13708
|
+
return _date;
|
|
13709
|
+
}
|
|
13710
|
+
const dayOfMonth = _date.getDate();
|
|
13711
|
+
const endOfDesiredMonth = constructFrom(date, _date.getTime());
|
|
13712
|
+
endOfDesiredMonth.setMonth(_date.getMonth() + amount + 1, 0);
|
|
13713
|
+
const daysInMonth = endOfDesiredMonth.getDate();
|
|
13714
|
+
if (dayOfMonth >= daysInMonth) {
|
|
13715
|
+
return endOfDesiredMonth;
|
|
13716
|
+
} else {
|
|
13717
|
+
_date.setFullYear(
|
|
13718
|
+
endOfDesiredMonth.getFullYear(),
|
|
13719
|
+
endOfDesiredMonth.getMonth(),
|
|
13720
|
+
dayOfMonth
|
|
13721
|
+
);
|
|
13722
|
+
return _date;
|
|
13723
|
+
}
|
|
13724
|
+
}
|
|
13725
|
+
function isWeekend(date, options) {
|
|
13726
|
+
const day = toDate(date, options == null ? void 0 : options.in).getDay();
|
|
13727
|
+
return day === 0 || day === 6;
|
|
13728
|
+
}
|
|
13729
|
+
let defaultOptions = {};
|
|
13730
|
+
function getDefaultOptions() {
|
|
13731
|
+
return defaultOptions;
|
|
13732
|
+
}
|
|
13733
|
+
function startOfWeek(date, options) {
|
|
13734
|
+
var _a, _b, _c, _d;
|
|
13735
|
+
const defaultOptions2 = getDefaultOptions();
|
|
13736
|
+
const weekStartsOn = (options == null ? void 0 : options.weekStartsOn) ?? ((_b = (_a = options == null ? void 0 : options.locale) == null ? void 0 : _a.options) == null ? void 0 : _b.weekStartsOn) ?? defaultOptions2.weekStartsOn ?? ((_d = (_c = defaultOptions2.locale) == null ? void 0 : _c.options) == null ? void 0 : _d.weekStartsOn) ?? 0;
|
|
13737
|
+
const _date = toDate(date, options == null ? void 0 : options.in);
|
|
13738
|
+
const day = _date.getDay();
|
|
13739
|
+
const diff = (day < weekStartsOn ? 7 : 0) + day - weekStartsOn;
|
|
13740
|
+
_date.setDate(_date.getDate() - diff);
|
|
13741
|
+
_date.setHours(0, 0, 0, 0);
|
|
13742
|
+
return _date;
|
|
13743
|
+
}
|
|
13744
|
+
function normalizeDates(context, ...dates) {
|
|
13745
|
+
const normalize = constructFrom.bind(
|
|
13746
|
+
null,
|
|
13747
|
+
dates.find((date) => typeof date === "object")
|
|
13748
|
+
);
|
|
13749
|
+
return dates.map(normalize);
|
|
13750
|
+
}
|
|
13751
|
+
function addWeeks(date, amount, options) {
|
|
13752
|
+
return addDays(date, amount * 7, options);
|
|
13753
|
+
}
|
|
13754
|
+
function startOfMonth(date, options) {
|
|
13755
|
+
const _date = toDate(date, options == null ? void 0 : options.in);
|
|
13756
|
+
_date.setDate(1);
|
|
13757
|
+
_date.setHours(0, 0, 0, 0);
|
|
13758
|
+
return _date;
|
|
13759
|
+
}
|
|
13760
|
+
function getDate(date, options) {
|
|
13761
|
+
return toDate(date, options == null ? void 0 : options.in).getDate();
|
|
13762
|
+
}
|
|
13763
|
+
function getDay(date, options) {
|
|
13764
|
+
return toDate(date, options == null ? void 0 : options.in).getDay();
|
|
13765
|
+
}
|
|
13766
|
+
function getDaysInMonth(date, options) {
|
|
13767
|
+
const _date = toDate(date, options == null ? void 0 : options.in);
|
|
13768
|
+
const year = _date.getFullYear();
|
|
13769
|
+
const monthIndex = _date.getMonth();
|
|
13770
|
+
const lastDayOfMonth = constructFrom(_date, 0);
|
|
13771
|
+
lastDayOfMonth.setFullYear(year, monthIndex + 1, 0);
|
|
13772
|
+
lastDayOfMonth.setHours(0, 0, 0, 0);
|
|
13773
|
+
return lastDayOfMonth.getDate();
|
|
13774
|
+
}
|
|
13775
|
+
function isEqual$1(leftDate, rightDate) {
|
|
13776
|
+
return +toDate(leftDate) === +toDate(rightDate);
|
|
13777
|
+
}
|
|
13778
|
+
function setDay(date, day, options) {
|
|
13779
|
+
var _a, _b;
|
|
13780
|
+
const defaultOptions2 = getDefaultOptions();
|
|
13781
|
+
const weekStartsOn = defaultOptions2.weekStartsOn ?? ((_b = (_a = defaultOptions2.locale) == null ? void 0 : _a.options) == null ? void 0 : _b.weekStartsOn) ?? 0;
|
|
13782
|
+
const date_ = toDate(date, options == null ? void 0 : options.in);
|
|
13783
|
+
const currentDay = date_.getDay();
|
|
13784
|
+
const remainder = day % 7;
|
|
13785
|
+
const dayIndex = (remainder + 7) % 7;
|
|
13786
|
+
const delta = 7 - weekStartsOn;
|
|
13787
|
+
const diff = day < 0 || day > 6 ? day - (currentDay + delta) % 7 : (dayIndex + delta) % 7 - (currentDay + delta) % 7;
|
|
13788
|
+
return addDays(date_, diff, options);
|
|
13789
|
+
}
|
|
13790
|
+
function isSameMonth(laterDate, earlierDate, options) {
|
|
13791
|
+
const [laterDate_, earlierDate_] = normalizeDates(
|
|
13792
|
+
options == null ? void 0 : options.in,
|
|
13793
|
+
laterDate,
|
|
13794
|
+
earlierDate
|
|
13795
|
+
);
|
|
13796
|
+
return laterDate_.getFullYear() === earlierDate_.getFullYear() && laterDate_.getMonth() === earlierDate_.getMonth();
|
|
13797
|
+
}
|
|
13798
|
+
function isSameYear(laterDate, earlierDate, options) {
|
|
13799
|
+
const [laterDate_, earlierDate_] = normalizeDates(
|
|
13800
|
+
options == null ? void 0 : options.in,
|
|
13801
|
+
laterDate,
|
|
13802
|
+
earlierDate
|
|
13803
|
+
);
|
|
13804
|
+
return laterDate_.getFullYear() === earlierDate_.getFullYear();
|
|
13805
|
+
}
|
|
13806
|
+
function subDays(date, amount, options) {
|
|
13807
|
+
return addDays(date, -amount, options);
|
|
13808
|
+
}
|
|
13809
|
+
function setHours(date, hours, options) {
|
|
13810
|
+
const _date = toDate(date, options == null ? void 0 : options.in);
|
|
13811
|
+
_date.setHours(hours);
|
|
13812
|
+
return _date;
|
|
13813
|
+
}
|
|
13814
|
+
function setMilliseconds(date, milliseconds, options) {
|
|
13815
|
+
const _date = toDate(date, options == null ? void 0 : options.in);
|
|
13816
|
+
_date.setMilliseconds(milliseconds);
|
|
13817
|
+
return _date;
|
|
13818
|
+
}
|
|
13819
|
+
function setMinutes(date, minutes, options) {
|
|
13820
|
+
const date_ = toDate(date, options == null ? void 0 : options.in);
|
|
13821
|
+
date_.setMinutes(minutes);
|
|
13822
|
+
return date_;
|
|
13823
|
+
}
|
|
13824
|
+
function setSeconds(date, seconds, options) {
|
|
13825
|
+
const _date = toDate(date, options == null ? void 0 : options.in);
|
|
13826
|
+
_date.setSeconds(seconds);
|
|
13827
|
+
return _date;
|
|
13828
|
+
}
|
|
13829
|
+
function subMonths(date, amount, options) {
|
|
13830
|
+
return addMonths(date, -amount, options);
|
|
13831
|
+
}
|
|
13832
|
+
function subWeeks(date, amount, options) {
|
|
13833
|
+
return addWeeks(date, -amount, options);
|
|
13834
|
+
}
|
|
13835
|
+
var CalendarViewtype = /* @__PURE__ */ ((CalendarViewtype2) => {
|
|
13836
|
+
CalendarViewtype2["Month"] = "month";
|
|
13837
|
+
CalendarViewtype2["Week"] = "week";
|
|
13838
|
+
CalendarViewtype2["Day"] = "day";
|
|
13839
|
+
return CalendarViewtype2;
|
|
13840
|
+
})(CalendarViewtype || {});
|
|
13841
|
+
var CalendarViewType_default = CalendarViewtype;
|
|
13842
|
+
function arrayOf(count) {
|
|
13843
|
+
return [...new Array(count).keys()];
|
|
13844
|
+
}
|
|
13845
|
+
var randomId = 0;
|
|
13846
|
+
var map = /* @__PURE__ */ new Map();
|
|
13847
|
+
function generateID(prefix2) {
|
|
13848
|
+
if (map.has(prefix2)) {
|
|
13849
|
+
const id = map.get(prefix2);
|
|
13850
|
+
const newId = id + 1;
|
|
13851
|
+
map.set(prefix2, newId);
|
|
13852
|
+
randomId = newId;
|
|
13853
|
+
} else {
|
|
13854
|
+
const id = 1;
|
|
13855
|
+
map.set(prefix2, id);
|
|
13856
|
+
randomId = id;
|
|
13857
|
+
}
|
|
13858
|
+
return `${prefix2}-${randomId}`;
|
|
13859
|
+
}
|
|
13860
|
+
function resetTimeOfDate(date) {
|
|
13861
|
+
return setHours(setMinutes(setSeconds(setMilliseconds(date, 0), 0), 0), 0);
|
|
13862
|
+
}
|
|
13863
|
+
function isSameDate(baseDate, targetDate) {
|
|
13864
|
+
const base = resetTimeOfDate(baseDate);
|
|
13865
|
+
const target = resetTimeOfDate(targetDate);
|
|
13866
|
+
return isEqual$1(base, target);
|
|
13867
|
+
}
|
|
13868
|
+
function isSameYearAndMonth(baseDate, targetDate) {
|
|
13869
|
+
return isSameMonth(targetDate, baseDate) && isSameYear(targetDate, baseDate);
|
|
13870
|
+
}
|
|
13871
|
+
function parseDate(date) {
|
|
13872
|
+
return {
|
|
13873
|
+
year: date.getFullYear(),
|
|
13874
|
+
month: date.getMonth(),
|
|
13875
|
+
day: date.getDate()
|
|
13876
|
+
};
|
|
13877
|
+
}
|
|
13878
|
+
function pipe(...fns) {
|
|
13879
|
+
return (...initialParams) => fns.reduce((value, fn, index2) => {
|
|
13880
|
+
const params = index2 === 0 ? value : [value];
|
|
13881
|
+
return fn(...params);
|
|
13882
|
+
}, initialParams);
|
|
13883
|
+
}
|
|
13884
|
+
function pipeWith(value, ...fns) {
|
|
13885
|
+
return pipe(
|
|
13886
|
+
...fns
|
|
13887
|
+
)(value);
|
|
13888
|
+
}
|
|
13889
|
+
function withKey(arr, keyPrefix) {
|
|
13890
|
+
return arr.map((value) => {
|
|
13891
|
+
return {
|
|
13892
|
+
...value,
|
|
13893
|
+
key: generateID(keyPrefix)
|
|
13894
|
+
};
|
|
13895
|
+
});
|
|
13896
|
+
}
|
|
13897
|
+
function withDateProps(baseDate, cursorDate) {
|
|
13898
|
+
return function(cell) {
|
|
13899
|
+
const { value: targetDate } = cell;
|
|
13900
|
+
const isCurrentMonth = isSameYearAndMonth(cursorDate, targetDate);
|
|
13901
|
+
const isCurrentDate = isSameDate(baseDate, targetDate);
|
|
13902
|
+
const isWeekend$1 = isWeekend(targetDate);
|
|
13903
|
+
return {
|
|
13904
|
+
...cell,
|
|
13905
|
+
date: getDate(targetDate),
|
|
13906
|
+
isCurrentMonth,
|
|
13907
|
+
isCurrentDate,
|
|
13908
|
+
isWeekend: isWeekend$1
|
|
13909
|
+
};
|
|
13910
|
+
};
|
|
13911
|
+
}
|
|
13912
|
+
function withKeyProps(keyPrefix) {
|
|
13913
|
+
return function(cell) {
|
|
13914
|
+
return {
|
|
13915
|
+
...cell,
|
|
13916
|
+
key: generateID(keyPrefix)
|
|
13917
|
+
};
|
|
13918
|
+
};
|
|
13919
|
+
}
|
|
13920
|
+
function createCalendarInfo(cursorDate, { weekStartsOn }) {
|
|
13921
|
+
const { year, month, day } = parseDate(cursorDate);
|
|
13922
|
+
const startWeekdayInMonth = getStartWeekdayInMonth(cursorDate, weekStartsOn);
|
|
13923
|
+
const weeksInMonth = getWeeksInMonth(cursorDate, startWeekdayInMonth);
|
|
13924
|
+
const weekendDays = arrayOf(7).map((index2) => ({
|
|
13925
|
+
value: setDay(cursorDate, index2 + weekStartsOn)
|
|
13926
|
+
}));
|
|
13927
|
+
const getDateCellByIndex = (weekIndex, dayIndex) => {
|
|
13928
|
+
const day2 = weekIndex * 7 + dayIndex - startWeekdayInMonth + 1;
|
|
13929
|
+
return { value: new Date(year, month, day2) };
|
|
13930
|
+
};
|
|
13931
|
+
return {
|
|
13932
|
+
cursorDate,
|
|
13933
|
+
year,
|
|
13934
|
+
month,
|
|
13935
|
+
day,
|
|
13936
|
+
weekStartsOn,
|
|
13937
|
+
startWeekdayInMonth,
|
|
13938
|
+
weeksInMonth,
|
|
13939
|
+
weekendDays,
|
|
13940
|
+
today: {
|
|
13941
|
+
weekIndex: getCurrentWeekIndex(day, startWeekdayInMonth),
|
|
13942
|
+
dateIndex: getDay(cursorDate)
|
|
13943
|
+
},
|
|
13944
|
+
getDateCellByIndex
|
|
13945
|
+
};
|
|
13946
|
+
}
|
|
13947
|
+
function getStartWeekdayInMonth(date, weekStartsOn) {
|
|
13948
|
+
const monthStartsAt = (startOfMonth(date).getDay() - weekStartsOn) % 7;
|
|
13949
|
+
return monthStartsAt < 0 ? monthStartsAt + 7 : monthStartsAt;
|
|
13950
|
+
}
|
|
13951
|
+
function getWeeksInMonth(date, startWeekdayInMonth) {
|
|
13952
|
+
const totalDaysOfMonth = getDaysInMonth(date);
|
|
13953
|
+
return Math.ceil((startWeekdayInMonth + totalDaysOfMonth) / 7);
|
|
13954
|
+
}
|
|
13955
|
+
function getCurrentWeekIndex(day, startWeekdayInMonth) {
|
|
13956
|
+
if ((day + startWeekdayInMonth) % 7 > 0) {
|
|
13957
|
+
return Math.floor((day + startWeekdayInMonth) / 7);
|
|
13958
|
+
}
|
|
13959
|
+
return Math.floor((day + startWeekdayInMonth) / 7) - 1;
|
|
13960
|
+
}
|
|
13961
|
+
function useIsMounted() {
|
|
13962
|
+
const [mounted, setMounted] = useState(false);
|
|
13963
|
+
useEffect(() => {
|
|
13964
|
+
setMounted(true);
|
|
13965
|
+
}, []);
|
|
13966
|
+
return mounted;
|
|
13967
|
+
}
|
|
13968
|
+
function useCalendar({
|
|
13969
|
+
defaultDate,
|
|
13970
|
+
defaultWeekStart = 0,
|
|
13971
|
+
defaultViewType = CalendarViewType_default.Month
|
|
13972
|
+
} = {}) {
|
|
13973
|
+
const isMounted = useIsMounted();
|
|
13974
|
+
const baseDate = useMemo(() => {
|
|
13975
|
+
return defaultDate != null ? new Date(defaultDate) : /* @__PURE__ */ new Date();
|
|
13976
|
+
}, [defaultDate, isMounted]);
|
|
13977
|
+
const [weekStartsOn, setWeekStartsOn] = useState(defaultWeekStart);
|
|
13978
|
+
const [cursorDate, setCursorDate] = useState(baseDate);
|
|
13979
|
+
const [viewType, setViewType] = useState(defaultViewType);
|
|
13980
|
+
const calendar = createCalendarInfo(cursorDate, { weekStartsOn });
|
|
13981
|
+
const { weekendDays, weeksInMonth, today, getDateCellByIndex } = calendar;
|
|
13982
|
+
const getHeaders = useCallback(
|
|
13983
|
+
(viewType2) => {
|
|
13984
|
+
switch (viewType2) {
|
|
13985
|
+
case CalendarViewType_default.Month:
|
|
13986
|
+
case CalendarViewType_default.Week:
|
|
13987
|
+
return {
|
|
13988
|
+
weekDays: withKey(weekendDays, "weekdays")
|
|
13989
|
+
};
|
|
13990
|
+
case CalendarViewType_default.Day:
|
|
13991
|
+
default:
|
|
13992
|
+
return {
|
|
13993
|
+
weekDays: withKey([{ value: cursorDate }], "weekdays")
|
|
13994
|
+
};
|
|
13995
|
+
}
|
|
13996
|
+
},
|
|
13997
|
+
[cursorDate, weekendDays]
|
|
13998
|
+
);
|
|
13999
|
+
const createMatrix = useCallback(
|
|
14000
|
+
(weeksInMonth2) => ({
|
|
14001
|
+
value: arrayOf(weeksInMonth2).map((weekIndex) => {
|
|
14002
|
+
return {
|
|
14003
|
+
key: generateID("weeks"),
|
|
14004
|
+
value: arrayOf(7).map((dayIndex) => {
|
|
14005
|
+
return pipeWith(
|
|
14006
|
+
getDateCellByIndex(weekIndex, dayIndex),
|
|
14007
|
+
withDateProps(baseDate, cursorDate),
|
|
14008
|
+
withKeyProps("days")
|
|
14009
|
+
);
|
|
14010
|
+
})
|
|
14011
|
+
};
|
|
14012
|
+
})
|
|
14013
|
+
}),
|
|
14014
|
+
[baseDate, cursorDate, getDateCellByIndex]
|
|
14015
|
+
);
|
|
14016
|
+
const getBody = useCallback(
|
|
14017
|
+
(viewType2) => {
|
|
14018
|
+
var _a;
|
|
14019
|
+
const matrix2 = createMatrix(weeksInMonth);
|
|
14020
|
+
const { weekIndex, dateIndex } = today;
|
|
14021
|
+
return {
|
|
14022
|
+
[CalendarViewType_default.Month]: matrix2,
|
|
14023
|
+
[CalendarViewType_default.Week]: {
|
|
14024
|
+
value: [matrix2.value[weekIndex]]
|
|
14025
|
+
},
|
|
14026
|
+
[CalendarViewType_default.Day]: {
|
|
14027
|
+
value: [
|
|
14028
|
+
{
|
|
14029
|
+
key: "week-day-type",
|
|
14030
|
+
value: [(_a = matrix2.value[weekIndex]) == null ? void 0 : _a.value[dateIndex]]
|
|
14031
|
+
}
|
|
14032
|
+
]
|
|
14033
|
+
}
|
|
14034
|
+
}[viewType2];
|
|
14035
|
+
},
|
|
14036
|
+
[createMatrix, today, weeksInMonth]
|
|
14037
|
+
);
|
|
14038
|
+
const setNext = useMemo(() => {
|
|
14039
|
+
switch (viewType) {
|
|
14040
|
+
case CalendarViewType_default.Month:
|
|
14041
|
+
return (date) => addMonths(startOfMonth(date), 1);
|
|
14042
|
+
case CalendarViewType_default.Week:
|
|
14043
|
+
return (date) => addWeeks(startOfWeek(date, { weekStartsOn }), 1);
|
|
14044
|
+
case CalendarViewType_default.Day:
|
|
14045
|
+
return (date) => addDays(date, 1);
|
|
14046
|
+
}
|
|
14047
|
+
}, [viewType, weekStartsOn]);
|
|
14048
|
+
const setPrev = useMemo(() => {
|
|
14049
|
+
switch (viewType) {
|
|
14050
|
+
case CalendarViewType_default.Month:
|
|
14051
|
+
return (date) => subMonths(startOfMonth(date), 1);
|
|
14052
|
+
case CalendarViewType_default.Week:
|
|
14053
|
+
return (date) => subWeeks(startOfWeek(date, { weekStartsOn }), 1);
|
|
14054
|
+
case CalendarViewType_default.Day:
|
|
14055
|
+
return (date) => subDays(date, 1);
|
|
14056
|
+
}
|
|
14057
|
+
}, [viewType, weekStartsOn]);
|
|
14058
|
+
return useMemo(
|
|
14059
|
+
() => ({
|
|
14060
|
+
...calendar,
|
|
14061
|
+
headers: getHeaders(viewType),
|
|
14062
|
+
body: getBody(viewType),
|
|
14063
|
+
navigation: {
|
|
14064
|
+
toNext: () => setCursorDate((date) => setNext(date)),
|
|
14065
|
+
toPrev: () => setCursorDate((date) => setPrev(date)),
|
|
14066
|
+
setToday: () => setCursorDate(/* @__PURE__ */ new Date()),
|
|
14067
|
+
setDate: (date) => setCursorDate(date)
|
|
14068
|
+
},
|
|
14069
|
+
view: {
|
|
14070
|
+
type: viewType,
|
|
14071
|
+
setViewType,
|
|
14072
|
+
setWeekStartsOn,
|
|
14073
|
+
isMonthView: viewType === CalendarViewType_default.Month,
|
|
14074
|
+
isWeekView: viewType === CalendarViewType_default.Week,
|
|
14075
|
+
isDayView: viewType === CalendarViewType_default.Day,
|
|
14076
|
+
showMonthView: () => setViewType(CalendarViewType_default.Month),
|
|
14077
|
+
showWeekView: () => setViewType(CalendarViewType_default.Week),
|
|
14078
|
+
showDayView: () => setViewType(CalendarViewType_default.Day)
|
|
14079
|
+
}
|
|
14080
|
+
}),
|
|
14081
|
+
[calendar, getBody, getHeaders, setNext, setPrev, viewType]
|
|
14082
|
+
);
|
|
14083
|
+
}
|
|
14084
|
+
const Wrapper$4 = styled.div.withConfig({
|
|
14085
|
+
componentId: "sc-1pvd2nj-0"
|
|
14086
|
+
})(["width:inherit;display:flex;align-items:center;justify-content:space-between;align-items:center;span:first-of-type{max-width:100%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;}", ""], ({
|
|
14087
|
+
theme: theme2,
|
|
14088
|
+
$error,
|
|
14089
|
+
$resize
|
|
14090
|
+
}) => `
|
|
14091
|
+
gap: ${theme2.click.field.space.gap};
|
|
14092
|
+
border-radius: ${theme2.click.field.radii.all};
|
|
14093
|
+
font: ${theme2.click.field.typography.fieldText.default};
|
|
14094
|
+
color: ${theme2.click.field.color.text.default};
|
|
14095
|
+
border: 1px solid ${theme2.click.field.color.stroke.default};
|
|
14096
|
+
background: ${theme2.click.field.color.background.default};
|
|
14097
|
+
|
|
14098
|
+
*:autofill,
|
|
14099
|
+
*:-webkit-autofill {
|
|
14100
|
+
-webkit-box-shadow: 0 0 0px 50vh ${theme2.click.field.color.background.default} inset;
|
|
14101
|
+
-webkit-text-fill-color: ${theme2.click.field.color.text.default};
|
|
14102
|
+
caret-color: ${theme2.click.field.color.text.default};
|
|
14103
|
+
}
|
|
14104
|
+
|
|
14105
|
+
&:hover {
|
|
14106
|
+
border: 1px solid ${theme2.click.field.color.stroke.hover};
|
|
14107
|
+
background: ${theme2.click.field.color.background.hover};
|
|
14108
|
+
color: ${theme2.click.field.color.text.hover};
|
|
14109
|
+
|
|
14110
|
+
*:autofill,
|
|
14111
|
+
*:-webkit-autofill {
|
|
14112
|
+
-webkit-box-shadow: 0 0 0px 50vh ${theme2.click.field.color.background.hover} inset;
|
|
14113
|
+
-webkit-text-fill-color: ${theme2.click.field.color.text.hover};
|
|
14114
|
+
caret-color: ${theme2.click.field.color.text.hover};
|
|
14115
|
+
}
|
|
14116
|
+
}
|
|
14117
|
+
${$resize === "none" ? "" : `
|
|
14118
|
+
resize: ${$resize};
|
|
14119
|
+
overflow: auto;
|
|
14120
|
+
`}
|
|
14121
|
+
padding: 0 ${theme2.click.field.space.x};
|
|
14122
|
+
${$error ? `
|
|
14123
|
+
font: ${theme2.click.field.typography.fieldText.error};
|
|
14124
|
+
border: 1px solid ${theme2.click.field.color.stroke.error};
|
|
14125
|
+
background: ${theme2.click.field.color.background.active};
|
|
14126
|
+
color: ${theme2.click.field.color.text.error};
|
|
14127
|
+
|
|
14128
|
+
*:autofill,
|
|
14129
|
+
*:-webkit-autofill {
|
|
14130
|
+
-webkit-box-shadow: 0 0 0px 50vh ${theme2.click.field.color.background.error} inset;
|
|
14131
|
+
-webkit-text-fill-color: ${theme2.click.field.color.text.error};
|
|
14132
|
+
caret-color: ${theme2.click.field.color.text.error};
|
|
14133
|
+
}
|
|
14134
|
+
|
|
14135
|
+
&:hover {
|
|
14136
|
+
border: 1px solid ${theme2.click.field.color.stroke.error};
|
|
14137
|
+
color: ${theme2.click.field.color.text.error};
|
|
14138
|
+
*:autofill,
|
|
14139
|
+
*:-webkit-autofill {
|
|
14140
|
+
-webkit-box-shadow: 0 0 0px 50vh ${theme2.click.field.color.background.error} inset;
|
|
14141
|
+
-webkit-text-fill-color: ${theme2.click.field.color.text.error};
|
|
14142
|
+
caret-color: ${theme2.click.field.color.text.error};
|
|
14143
|
+
}
|
|
14144
|
+
}
|
|
14145
|
+
` : `
|
|
14146
|
+
&:focus-within,
|
|
14147
|
+
&[data-state="open"] {
|
|
14148
|
+
font: ${theme2.click.field.typography.fieldText.active};
|
|
14149
|
+
border: 1px solid ${theme2.click.field.color.stroke.active};
|
|
14150
|
+
background: ${theme2.click.field.color.background.active};
|
|
14151
|
+
color: ${theme2.click.field.color.text.active};
|
|
14152
|
+
|
|
14153
|
+
*:autofill,
|
|
14154
|
+
*:-webkit-autofill {
|
|
14155
|
+
-webkit-box-shadow: 0 0 0px 50vh ${theme2.click.field.color.background.active} inset;
|
|
14156
|
+
-webkit-text-fill-color: ${theme2.click.field.color.text.active};
|
|
14157
|
+
caret-color: ${theme2.click.field.color.text.active};
|
|
14158
|
+
}
|
|
14159
|
+
}
|
|
14160
|
+
`};
|
|
14161
|
+
&:disabled, &.disabled {
|
|
14162
|
+
font: ${theme2.click.field.typography.fieldText.disabled};
|
|
14163
|
+
border: 1px solid ${theme2.click.field.color.stroke.disabled};
|
|
14164
|
+
background: ${theme2.click.field.color.background.disabled};
|
|
14165
|
+
color: ${theme2.click.field.color.text.disabled};
|
|
14166
|
+
|
|
14167
|
+
*:autofill,
|
|
14168
|
+
*:-webkit-autofill {
|
|
14169
|
+
-webkit-box-shadow: 0 0 0px 50vh ${theme2.click.field.color.background.disabled} inset;
|
|
14170
|
+
-webkit-text-fill-color: ${theme2.click.field.color.text.disabled};
|
|
14171
|
+
caret-color: ${theme2.click.field.color.text.disabled};
|
|
14172
|
+
}
|
|
14173
|
+
}
|
|
14174
|
+
`);
|
|
14175
|
+
const StyledLabel = styled(Label$1).withConfig({
|
|
14176
|
+
componentId: "sc-1pvd2nj-1"
|
|
14177
|
+
})(["", ""], ({
|
|
14178
|
+
$labelColor
|
|
14179
|
+
}) => `
|
|
14180
|
+
${$labelColor ? `color: ${$labelColor};` : ""}
|
|
14181
|
+
`);
|
|
14182
|
+
const InputWrapper = ({
|
|
14183
|
+
className,
|
|
14184
|
+
id,
|
|
14185
|
+
label = "",
|
|
14186
|
+
labelColor,
|
|
14187
|
+
error: error2,
|
|
14188
|
+
disabled,
|
|
14189
|
+
children,
|
|
14190
|
+
orientation,
|
|
14191
|
+
dir,
|
|
14192
|
+
resize = "none"
|
|
14193
|
+
}) => {
|
|
14194
|
+
return /* @__PURE__ */ jsxs(FormRoot, { $orientation: orientation, $dir: dir, $addLabelPadding: true, children: [
|
|
14195
|
+
/* @__PURE__ */ jsxs(FormElementContainer, { children: [
|
|
14196
|
+
/* @__PURE__ */ jsx(Wrapper$4, { $error: !!error2, $resize: resize, "data-resize": resize, className: disabled ? `disabled ${className}` : className, children }),
|
|
14197
|
+
!!error2 && error2 !== true && /* @__PURE__ */ jsx(Error$1, { children: error2 })
|
|
14198
|
+
] }),
|
|
14199
|
+
label && /* @__PURE__ */ jsx(StyledLabel, { htmlFor: id, disabled, error: !!error2, $labelColor: labelColor, children: label })
|
|
14200
|
+
] });
|
|
14201
|
+
};
|
|
14202
|
+
const InputElement = styled.input.withConfig({
|
|
14203
|
+
componentId: "sc-1pvd2nj-2"
|
|
14204
|
+
})(["background:transparent;border:none;outline:none;width:100%;color:inherit;font:inherit;", ""], ({
|
|
14205
|
+
theme: theme2
|
|
14206
|
+
}) => `
|
|
14207
|
+
padding: ${theme2.click.field.space.y} 0;
|
|
14208
|
+
&::placeholder {
|
|
14209
|
+
color: ${theme2.click.field.color.placeholder.default};
|
|
14210
|
+
}
|
|
14211
|
+
|
|
14212
|
+
&:disabled, &.disabled {
|
|
14213
|
+
&::placeholder {
|
|
14214
|
+
color: ${theme2.click.field.color.placeholder.disabled};
|
|
14215
|
+
}
|
|
14216
|
+
`);
|
|
14217
|
+
const NumberInputElement = styled(InputElement).withConfig({
|
|
14218
|
+
componentId: "sc-1pvd2nj-3"
|
|
14219
|
+
})(["", ""], ({
|
|
14220
|
+
$hideControls
|
|
14221
|
+
}) => `
|
|
14222
|
+
${$hideControls ? `
|
|
14223
|
+
&::-webkit-outer-spin-button,
|
|
14224
|
+
&::-webkit-inner-spin-button {
|
|
14225
|
+
-webkit-appearance: none;
|
|
14226
|
+
margin: 0;
|
|
14227
|
+
}
|
|
14228
|
+
|
|
14229
|
+
-moz-appearance: textfield;
|
|
14230
|
+
` : ""}
|
|
14231
|
+
`);
|
|
14232
|
+
const TextAreaElement = styled.textarea.withConfig({
|
|
14233
|
+
componentId: "sc-1pvd2nj-4"
|
|
14234
|
+
})(["background:transparent;border:none;outline:none;width:100%;color:inherit;font:inherit;resize:none;", ""], ({
|
|
14235
|
+
theme: theme2
|
|
14236
|
+
}) => `
|
|
14237
|
+
padding: ${theme2.click.field.space.y} 0;
|
|
14238
|
+
align-self: stretch;
|
|
14239
|
+
&::placeholder {
|
|
14240
|
+
color: ${theme2.click.field.color.placeholder.default};
|
|
14241
|
+
}
|
|
14242
|
+
`);
|
|
14243
|
+
styled(InputWrapper).withConfig({
|
|
14244
|
+
componentId: "sc-1pvd2nj-5"
|
|
14245
|
+
})(["resize:vertical;overflow:auto;color:red;"]);
|
|
14246
|
+
const IconButton = styled.button.withConfig({
|
|
14247
|
+
componentId: "sc-1pvd2nj-6"
|
|
14248
|
+
})(["background:transparent;color:inherit;border:none;padding:0;outline:none;&:not(:disabled){cursor:pointer;}", ""], ({
|
|
14249
|
+
theme: theme2,
|
|
14250
|
+
$show
|
|
14251
|
+
}) => `
|
|
14252
|
+
padding: ${theme2.click.field.space.y} 0;
|
|
14253
|
+
visibility: ${$show ? "visible" : "hidden"};
|
|
14254
|
+
`);
|
|
14255
|
+
styled.svg.withConfig({
|
|
14256
|
+
componentId: "sc-1pvd2nj-7"
|
|
14257
|
+
})(["", ""], ({
|
|
14258
|
+
theme: theme2
|
|
14259
|
+
}) => `
|
|
14260
|
+
&:first-of-type {
|
|
14261
|
+
padding-left: ${theme2.click.field.space.gap};
|
|
14262
|
+
}
|
|
14263
|
+
&:last-of-type {
|
|
14264
|
+
padding-right: ${theme2.click.field.space.x};
|
|
14265
|
+
}
|
|
14266
|
+
`);
|
|
14267
|
+
const locale = "en-US";
|
|
14268
|
+
const weekdayFormatter = new Intl.DateTimeFormat(locale, {
|
|
14269
|
+
weekday: "short"
|
|
14270
|
+
});
|
|
14271
|
+
const headerDateFormatter = new Intl.DateTimeFormat(locale, {
|
|
14272
|
+
month: "short",
|
|
14273
|
+
year: "numeric"
|
|
14274
|
+
});
|
|
14275
|
+
const selectedDateFormatter = new Intl.DateTimeFormat(locale, {
|
|
14276
|
+
day: "2-digit",
|
|
14277
|
+
month: "short",
|
|
14278
|
+
year: "numeric"
|
|
14279
|
+
});
|
|
14280
|
+
const explicitWidth = "250px";
|
|
14281
|
+
const HighlightedInputWrapper = styled$1(InputWrapper).withConfig({
|
|
14282
|
+
componentId: "sc-1kfphgn-0"
|
|
14283
|
+
})(["", " width:", ";}"], ({
|
|
14284
|
+
$isActive,
|
|
14285
|
+
theme: theme2
|
|
14286
|
+
}) => {
|
|
14287
|
+
return `border: ${theme2.click.datePicker.dateOption.stroke} solid ${$isActive ? theme2.click.datePicker.dateOption.color.stroke.active : theme2.click.field.color.stroke.default};`;
|
|
14288
|
+
}, explicitWidth);
|
|
14289
|
+
const DatePickerContainer = styled$1(Container).withConfig({
|
|
14290
|
+
componentId: "sc-1kfphgn-1"
|
|
14291
|
+
})(["background:", ";"], ({
|
|
14292
|
+
theme: theme2
|
|
14293
|
+
}) => theme2.click.datePicker.dateOption.color.background.default);
|
|
14294
|
+
const UnselectableTitle = styled$1.h2.withConfig({
|
|
14295
|
+
componentId: "sc-1kfphgn-2"
|
|
14296
|
+
})(["", " user-select:none;"], ({
|
|
14297
|
+
theme: theme2
|
|
14298
|
+
}) => `
|
|
14299
|
+
color: ${theme2.click.datePicker.color.title.default};
|
|
14300
|
+
font: ${theme2.click.datePicker.typography.title.default};
|
|
14301
|
+
`);
|
|
14302
|
+
const DateTable = styled$1.table.withConfig({
|
|
14303
|
+
componentId: "sc-1kfphgn-3"
|
|
14304
|
+
})(["border-collapse:separate;border-spacing:0;font:", " table-layout:fixed;user-select:none;width:", ";thead tr{height:", ";}tbody{cursor:pointer;}td,th{", ";padding:4px;}"], ({
|
|
14305
|
+
theme: theme2
|
|
14306
|
+
}) => theme2.typography.styles.product.text.normal.md, explicitWidth, ({
|
|
14307
|
+
theme: theme2
|
|
14308
|
+
}) => theme2.click.datePicker.dateOption.size.height, ({
|
|
14309
|
+
theme: theme2
|
|
14310
|
+
}) => `border: ${theme2.click.datePicker.dateOption.stroke} solid ${theme2.click.datePicker.dateOption.color.stroke.default}`);
|
|
14311
|
+
const DateTableHeader = styled$1.th.withConfig({
|
|
14312
|
+
componentId: "sc-1kfphgn-4"
|
|
14313
|
+
})(["", " width:14%;"], ({
|
|
14314
|
+
theme: theme2
|
|
14315
|
+
}) => `
|
|
14316
|
+
color: ${theme2.click.datePicker.color.daytitle.default};
|
|
14317
|
+
font: ${theme2.click.datePicker.typography.daytitle.default};
|
|
14318
|
+
`);
|
|
14319
|
+
const DateTableCell = styled$1.td.withConfig({
|
|
14320
|
+
componentId: "sc-1kfphgn-5"
|
|
14321
|
+
})(["", " ", " ", " text-align:center;", " &:hover{", ";}"], ({
|
|
14322
|
+
theme: theme2
|
|
14323
|
+
}) => `
|
|
14324
|
+
border-radius: ${theme2.click.datePicker.dateOption.radii.default};
|
|
14325
|
+
font: ${theme2.click.datePicker.dateOption.typography.label.default};
|
|
14326
|
+
`, ({
|
|
14327
|
+
$isCurrentMonth,
|
|
14328
|
+
$isDisabled,
|
|
14329
|
+
theme: theme2
|
|
14330
|
+
}) => (!$isCurrentMonth || $isDisabled) && `
|
|
14331
|
+
color: ${theme2.click.datePicker.dateOption.color.label.disabled};
|
|
14332
|
+
font: ${theme2.click.datePicker.dateOption.typography.label.disabled};
|
|
14333
|
+
`, ({
|
|
14334
|
+
$isSelected,
|
|
14335
|
+
theme: theme2
|
|
14336
|
+
}) => $isSelected && `
|
|
14337
|
+
background: ${theme2.click.datePicker.dateOption.color.background.active};
|
|
14338
|
+
color: ${theme2.click.datePicker.dateOption.color.label.active};
|
|
14339
|
+
`, ({
|
|
14340
|
+
$isToday,
|
|
14341
|
+
theme: theme2
|
|
14342
|
+
}) => $isToday && `font: ${theme2.click.datePicker.dateOption.typography.label.active};`, ({
|
|
14343
|
+
$isDisabled,
|
|
14344
|
+
theme: theme2
|
|
14345
|
+
}) => `border: ${theme2.click.datePicker.dateOption.stroke} solid ${$isDisabled ? theme2.click.datePicker.dateOption.color.stroke.disabled : theme2.click.datePicker.dateOption.color.stroke.hover}`);
|
|
14346
|
+
const DatePickerInput = ({
|
|
14347
|
+
isActive,
|
|
14348
|
+
disabled,
|
|
14349
|
+
id,
|
|
14350
|
+
placeholder,
|
|
14351
|
+
selectedDate
|
|
14352
|
+
}) => {
|
|
14353
|
+
const defaultId = useId();
|
|
14354
|
+
const formattedSelectedDate = selectedDate instanceof Date ? selectedDateFormatter.format(selectedDate) : "";
|
|
14355
|
+
return /* @__PURE__ */ jsxs(HighlightedInputWrapper, { $isActive: isActive, disabled, id: id ?? defaultId, children: [
|
|
14356
|
+
/* @__PURE__ */ jsx(SvgImage, { name: "calendar" }),
|
|
14357
|
+
/* @__PURE__ */ jsx(InputElement, { "data-testid": "datepicker-input", placeholder, readOnly: true, value: formattedSelectedDate })
|
|
14358
|
+
] });
|
|
14359
|
+
};
|
|
14360
|
+
const Calendar = ({
|
|
14361
|
+
closeDatepicker,
|
|
14362
|
+
futureDatesDisabled,
|
|
14363
|
+
selectedDate,
|
|
14364
|
+
setSelectedDate
|
|
14365
|
+
}) => {
|
|
14366
|
+
const calendarOptions = {
|
|
14367
|
+
defaultWeekStart: 1
|
|
14368
|
+
};
|
|
14369
|
+
if (selectedDate) {
|
|
14370
|
+
calendarOptions.defaultDate = selectedDate;
|
|
14371
|
+
}
|
|
14372
|
+
const {
|
|
14373
|
+
body,
|
|
14374
|
+
headers,
|
|
14375
|
+
month,
|
|
14376
|
+
navigation,
|
|
14377
|
+
year
|
|
14378
|
+
} = useCalendar(calendarOptions);
|
|
14379
|
+
const handleNextClick = () => {
|
|
14380
|
+
navigation.toNext();
|
|
14381
|
+
};
|
|
14382
|
+
const handlePreviousClick = () => {
|
|
14383
|
+
navigation.toPrev();
|
|
14384
|
+
};
|
|
14385
|
+
const headerDate = /* @__PURE__ */ new Date();
|
|
14386
|
+
headerDate.setMonth(month);
|
|
14387
|
+
headerDate.setFullYear(year);
|
|
14388
|
+
return /* @__PURE__ */ jsxs(DatePickerContainer, { "data-testid": "datepicker-calendar-container", isResponsive: false, fillWidth: false, orientation: "vertical", padding: "sm", children: [
|
|
14389
|
+
/* @__PURE__ */ jsxs(Container, { isResponsive: false, justifyContent: "space-between", orientation: "horizontal", children: [
|
|
14390
|
+
/* @__PURE__ */ jsx(IconButton$1, { icon: "chevron-left", onClick: handlePreviousClick, size: "sm", type: "ghost" }),
|
|
14391
|
+
/* @__PURE__ */ jsx(UnselectableTitle, { children: headerDateFormatter.format(headerDate) }),
|
|
14392
|
+
/* @__PURE__ */ jsx(IconButton$1, { icon: "chevron-right", onClick: handleNextClick, size: "sm", type: "ghost" })
|
|
14393
|
+
] }),
|
|
14394
|
+
/* @__PURE__ */ jsxs(DateTable, { children: [
|
|
14395
|
+
/* @__PURE__ */ jsx("thead", { children: /* @__PURE__ */ jsx("tr", { children: headers.weekDays.map(({
|
|
14396
|
+
key,
|
|
14397
|
+
value: date
|
|
14398
|
+
}) => {
|
|
14399
|
+
return /* @__PURE__ */ jsx(DateTableHeader, { children: weekdayFormatter.format(date) }, key);
|
|
14400
|
+
}) }) }),
|
|
14401
|
+
/* @__PURE__ */ jsx("tbody", { children: body.value.map(({
|
|
14402
|
+
key: weekKey,
|
|
14403
|
+
value: week
|
|
14404
|
+
}) => {
|
|
14405
|
+
return /* @__PURE__ */ jsx("tr", { children: week.map(({
|
|
14406
|
+
date,
|
|
14407
|
+
isCurrentMonth,
|
|
14408
|
+
key: dayKey,
|
|
14409
|
+
value: fullDate
|
|
14410
|
+
}) => {
|
|
14411
|
+
const isSelected = selectedDate ? isSameDate(selectedDate, fullDate) : false;
|
|
14412
|
+
const today = /* @__PURE__ */ new Date();
|
|
14413
|
+
const isCurrentDate = isSameDate(today, fullDate);
|
|
14414
|
+
const isDisabled = futureDatesDisabled ? fullDate > today : false;
|
|
14415
|
+
return /* @__PURE__ */ jsx(DateTableCell, { $isCurrentMonth: isCurrentMonth, $isDisabled: isDisabled, $isSelected: isSelected, $isToday: isCurrentDate, onClick: () => {
|
|
14416
|
+
if (isDisabled) {
|
|
14417
|
+
return false;
|
|
14418
|
+
}
|
|
14419
|
+
setSelectedDate(fullDate);
|
|
14420
|
+
closeDatepicker();
|
|
14421
|
+
}, children: date }, dayKey);
|
|
14422
|
+
}) }, weekKey);
|
|
14423
|
+
}) })
|
|
14424
|
+
] })
|
|
14425
|
+
] });
|
|
14426
|
+
};
|
|
14427
|
+
const DatePicker = ({
|
|
14428
|
+
date,
|
|
14429
|
+
disabled = false,
|
|
14430
|
+
futureDatesDisabled = false,
|
|
14431
|
+
onSelectDate,
|
|
14432
|
+
placeholder
|
|
14433
|
+
}) => {
|
|
14434
|
+
const [isOpen, setIsOpen] = useState(false);
|
|
14435
|
+
const [selectedDate, setSelectedDate] = useState();
|
|
14436
|
+
useEffect(() => {
|
|
14437
|
+
if (date) {
|
|
14438
|
+
setSelectedDate(date);
|
|
14439
|
+
}
|
|
14440
|
+
}, [date]);
|
|
14441
|
+
const closeDatePicker = () => {
|
|
14442
|
+
setIsOpen(false);
|
|
14443
|
+
};
|
|
14444
|
+
const handleSelectDate = (selectedDate2) => {
|
|
14445
|
+
setSelectedDate(selectedDate2);
|
|
14446
|
+
onSelectDate(selectedDate2);
|
|
14447
|
+
};
|
|
14448
|
+
return /* @__PURE__ */ jsxs(Dropdown, { onOpenChange: setIsOpen, open: isOpen, children: [
|
|
14449
|
+
/* @__PURE__ */ jsx(Dropdown.Trigger, { disabled, children: /* @__PURE__ */ jsx(DatePickerInput, { "data-testid": "datepicker-inpcontainer", disabled, isActive: isOpen, placeholder, selectedDate }) }),
|
|
14450
|
+
/* @__PURE__ */ jsx(Dropdown.Content, { align: "start", children: /* @__PURE__ */ jsx(Calendar, { closeDatepicker: closeDatePicker, futureDatesDisabled, selectedDate, setSelectedDate: handleSelectDate }) })
|
|
14451
|
+
] });
|
|
14452
|
+
};
|
|
13681
14453
|
const $5d3850c4d0b4e6c7$var$DIALOG_NAME = "Dialog";
|
|
13682
14454
|
const [$5d3850c4d0b4e6c7$var$createDialogContext, $5d3850c4d0b4e6c7$export$cc702773b8ea3e41] = $c512c27ab02ef895$export$50c7b4e9d9f19c1($5d3850c4d0b4e6c7$var$DIALOG_NAME);
|
|
13683
14455
|
const [$5d3850c4d0b4e6c7$var$DialogProvider, $5d3850c4d0b4e6c7$var$useDialogContext] = $5d3850c4d0b4e6c7$var$createDialogContext($5d3850c4d0b4e6c7$var$DIALOG_NAME);
|
|
@@ -14345,9 +15117,9 @@ const GridContainer$1 = ({
|
|
|
14345
15117
|
overflow,
|
|
14346
15118
|
...props
|
|
14347
15119
|
}) => {
|
|
14348
|
-
return /* @__PURE__ */ jsx(Wrapper$
|
|
15120
|
+
return /* @__PURE__ */ jsx(Wrapper$3, { $alignItems: alignItems, $alignContent: alignContent, $columnGap: columnGap, $gap: gap, $gridAutoColumns: gridAutoColumns, $gridAutoFlow: gridAutoFlow, $gridAutoRows: gridAutoRows, $gridTemplateAreas: gridTemplateAreas, $gridTemplateColumns: gridTemplateColumns, $gridTemplateRows: gridTemplateRows, $gridTemplate: gridTemplate, $inline: inline, $isResponsive: isResponsive, $justifyContent: justifyContent, $justifyItems: justifyItems, $rowGap: rowGap, $height: height, $maxHeight: maxHeight, $minHeight: minHeight, $fillWidth: fillWidth, $maxWidth: maxWidth, $minWidth: minWidth, $overflow: overflow, "data-testid": "grid-container", ...props, children });
|
|
14349
15121
|
};
|
|
14350
|
-
const Wrapper$
|
|
15122
|
+
const Wrapper$3 = styled.div.withConfig({
|
|
14351
15123
|
componentId: "sc-r57kdn-0"
|
|
14352
15124
|
})(["align-items:", ";align-content:", ";display:", ";", ";", ";", ";", ";", ";", ";", ";justify-content:", ";justify-items:", ";", " ", " ", " ", " @media (max-width:", "){grid-template-columns:", ";}"], ({
|
|
14353
15125
|
$alignItems = "stretch"
|
|
@@ -31669,188 +32441,6 @@ const _Link = ({
|
|
|
31669
32441
|
icon && /* @__PURE__ */ jsx(IconWrapper$1, { $size: size2, children: /* @__PURE__ */ jsx(SvgImage, { name: icon, className: "external-icon", "data-testid": icon }) })
|
|
31670
32442
|
] });
|
|
31671
32443
|
const Link = forwardRef(_Link);
|
|
31672
|
-
const Wrapper$3 = styled.div.withConfig({
|
|
31673
|
-
componentId: "sc-1pvd2nj-0"
|
|
31674
|
-
})(["width:inherit;display:flex;align-items:center;justify-content:space-between;align-items:center;span:first-of-type{max-width:100%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;}", ""], ({
|
|
31675
|
-
theme: theme2,
|
|
31676
|
-
$error,
|
|
31677
|
-
$resize
|
|
31678
|
-
}) => `
|
|
31679
|
-
gap: ${theme2.click.field.space.gap};
|
|
31680
|
-
border-radius: ${theme2.click.field.radii.all};
|
|
31681
|
-
font: ${theme2.click.field.typography.fieldText.default};
|
|
31682
|
-
color: ${theme2.click.field.color.text.default};
|
|
31683
|
-
border: 1px solid ${theme2.click.field.color.stroke.default};
|
|
31684
|
-
background: ${theme2.click.field.color.background.default};
|
|
31685
|
-
|
|
31686
|
-
*:autofill,
|
|
31687
|
-
*:-webkit-autofill {
|
|
31688
|
-
-webkit-box-shadow: 0 0 0px 50vh ${theme2.click.field.color.background.default} inset;
|
|
31689
|
-
-webkit-text-fill-color: ${theme2.click.field.color.text.default};
|
|
31690
|
-
caret-color: ${theme2.click.field.color.text.default};
|
|
31691
|
-
}
|
|
31692
|
-
|
|
31693
|
-
&:hover {
|
|
31694
|
-
border: 1px solid ${theme2.click.field.color.stroke.hover};
|
|
31695
|
-
background: ${theme2.click.field.color.background.hover};
|
|
31696
|
-
color: ${theme2.click.field.color.text.hover};
|
|
31697
|
-
|
|
31698
|
-
*:autofill,
|
|
31699
|
-
*:-webkit-autofill {
|
|
31700
|
-
-webkit-box-shadow: 0 0 0px 50vh ${theme2.click.field.color.background.hover} inset;
|
|
31701
|
-
-webkit-text-fill-color: ${theme2.click.field.color.text.hover};
|
|
31702
|
-
caret-color: ${theme2.click.field.color.text.hover};
|
|
31703
|
-
}
|
|
31704
|
-
}
|
|
31705
|
-
${$resize === "none" ? "" : `
|
|
31706
|
-
resize: ${$resize};
|
|
31707
|
-
overflow: auto;
|
|
31708
|
-
`}
|
|
31709
|
-
padding: 0 ${theme2.click.field.space.x};
|
|
31710
|
-
${$error ? `
|
|
31711
|
-
font: ${theme2.click.field.typography.fieldText.error};
|
|
31712
|
-
border: 1px solid ${theme2.click.field.color.stroke.error};
|
|
31713
|
-
background: ${theme2.click.field.color.background.active};
|
|
31714
|
-
color: ${theme2.click.field.color.text.error};
|
|
31715
|
-
|
|
31716
|
-
*:autofill,
|
|
31717
|
-
*:-webkit-autofill {
|
|
31718
|
-
-webkit-box-shadow: 0 0 0px 50vh ${theme2.click.field.color.background.error} inset;
|
|
31719
|
-
-webkit-text-fill-color: ${theme2.click.field.color.text.error};
|
|
31720
|
-
caret-color: ${theme2.click.field.color.text.error};
|
|
31721
|
-
}
|
|
31722
|
-
|
|
31723
|
-
&:hover {
|
|
31724
|
-
border: 1px solid ${theme2.click.field.color.stroke.error};
|
|
31725
|
-
color: ${theme2.click.field.color.text.error};
|
|
31726
|
-
*:autofill,
|
|
31727
|
-
*:-webkit-autofill {
|
|
31728
|
-
-webkit-box-shadow: 0 0 0px 50vh ${theme2.click.field.color.background.error} inset;
|
|
31729
|
-
-webkit-text-fill-color: ${theme2.click.field.color.text.error};
|
|
31730
|
-
caret-color: ${theme2.click.field.color.text.error};
|
|
31731
|
-
}
|
|
31732
|
-
}
|
|
31733
|
-
` : `
|
|
31734
|
-
&:focus-within,
|
|
31735
|
-
&[data-state="open"] {
|
|
31736
|
-
font: ${theme2.click.field.typography.fieldText.active};
|
|
31737
|
-
border: 1px solid ${theme2.click.field.color.stroke.active};
|
|
31738
|
-
background: ${theme2.click.field.color.background.active};
|
|
31739
|
-
color: ${theme2.click.field.color.text.active};
|
|
31740
|
-
|
|
31741
|
-
*:autofill,
|
|
31742
|
-
*:-webkit-autofill {
|
|
31743
|
-
-webkit-box-shadow: 0 0 0px 50vh ${theme2.click.field.color.background.active} inset;
|
|
31744
|
-
-webkit-text-fill-color: ${theme2.click.field.color.text.active};
|
|
31745
|
-
caret-color: ${theme2.click.field.color.text.active};
|
|
31746
|
-
}
|
|
31747
|
-
}
|
|
31748
|
-
`};
|
|
31749
|
-
&:disabled, &.disabled {
|
|
31750
|
-
font: ${theme2.click.field.typography.fieldText.disabled};
|
|
31751
|
-
border: 1px solid ${theme2.click.field.color.stroke.disabled};
|
|
31752
|
-
background: ${theme2.click.field.color.background.disabled};
|
|
31753
|
-
color: ${theme2.click.field.color.text.disabled};
|
|
31754
|
-
|
|
31755
|
-
*:autofill,
|
|
31756
|
-
*:-webkit-autofill {
|
|
31757
|
-
-webkit-box-shadow: 0 0 0px 50vh ${theme2.click.field.color.background.disabled} inset;
|
|
31758
|
-
-webkit-text-fill-color: ${theme2.click.field.color.text.disabled};
|
|
31759
|
-
caret-color: ${theme2.click.field.color.text.disabled};
|
|
31760
|
-
}
|
|
31761
|
-
}
|
|
31762
|
-
`);
|
|
31763
|
-
const StyledLabel = styled(Label$1).withConfig({
|
|
31764
|
-
componentId: "sc-1pvd2nj-1"
|
|
31765
|
-
})(["", ""], ({
|
|
31766
|
-
$labelColor
|
|
31767
|
-
}) => `
|
|
31768
|
-
${$labelColor ? `color: ${$labelColor};` : ""}
|
|
31769
|
-
`);
|
|
31770
|
-
const InputWrapper = ({
|
|
31771
|
-
id,
|
|
31772
|
-
label = "",
|
|
31773
|
-
labelColor,
|
|
31774
|
-
error: error2,
|
|
31775
|
-
disabled,
|
|
31776
|
-
children,
|
|
31777
|
-
orientation,
|
|
31778
|
-
dir,
|
|
31779
|
-
resize = "none"
|
|
31780
|
-
}) => {
|
|
31781
|
-
return /* @__PURE__ */ jsxs(FormRoot, { $orientation: orientation, $dir: dir, $addLabelPadding: true, children: [
|
|
31782
|
-
/* @__PURE__ */ jsxs(FormElementContainer, { children: [
|
|
31783
|
-
/* @__PURE__ */ jsx(Wrapper$3, { $error: !!error2, $resize: resize, "data-resize": resize, className: disabled ? "disabled" : "", children }),
|
|
31784
|
-
!!error2 && error2 !== true && /* @__PURE__ */ jsx(Error$1, { children: error2 })
|
|
31785
|
-
] }),
|
|
31786
|
-
label && /* @__PURE__ */ jsx(StyledLabel, { htmlFor: id, disabled, error: !!error2, $labelColor: labelColor, children: label })
|
|
31787
|
-
] });
|
|
31788
|
-
};
|
|
31789
|
-
const InputElement = styled.input.withConfig({
|
|
31790
|
-
componentId: "sc-1pvd2nj-2"
|
|
31791
|
-
})(["background:transparent;border:none;outline:none;width:100%;color:inherit;font:inherit;", ""], ({
|
|
31792
|
-
theme: theme2
|
|
31793
|
-
}) => `
|
|
31794
|
-
padding: ${theme2.click.field.space.y} 0;
|
|
31795
|
-
&::placeholder {
|
|
31796
|
-
color: ${theme2.click.field.color.placeholder.default};
|
|
31797
|
-
}
|
|
31798
|
-
|
|
31799
|
-
&:disabled, &.disabled {
|
|
31800
|
-
&::placeholder {
|
|
31801
|
-
color: ${theme2.click.field.color.placeholder.disabled};
|
|
31802
|
-
}
|
|
31803
|
-
`);
|
|
31804
|
-
const NumberInputElement = styled(InputElement).withConfig({
|
|
31805
|
-
componentId: "sc-1pvd2nj-3"
|
|
31806
|
-
})(["", ""], ({
|
|
31807
|
-
$hideControls
|
|
31808
|
-
}) => `
|
|
31809
|
-
${$hideControls ? `
|
|
31810
|
-
&::-webkit-outer-spin-button,
|
|
31811
|
-
&::-webkit-inner-spin-button {
|
|
31812
|
-
-webkit-appearance: none;
|
|
31813
|
-
margin: 0;
|
|
31814
|
-
}
|
|
31815
|
-
|
|
31816
|
-
-moz-appearance: textfield;
|
|
31817
|
-
` : ""}
|
|
31818
|
-
`);
|
|
31819
|
-
const TextAreaElement = styled.textarea.withConfig({
|
|
31820
|
-
componentId: "sc-1pvd2nj-4"
|
|
31821
|
-
})(["background:transparent;border:none;outline:none;width:100%;color:inherit;font:inherit;resize:none;", ""], ({
|
|
31822
|
-
theme: theme2
|
|
31823
|
-
}) => `
|
|
31824
|
-
padding: ${theme2.click.field.space.y} 0;
|
|
31825
|
-
align-self: stretch;
|
|
31826
|
-
&::placeholder {
|
|
31827
|
-
color: ${theme2.click.field.color.placeholder.default};
|
|
31828
|
-
}
|
|
31829
|
-
`);
|
|
31830
|
-
styled(InputWrapper).withConfig({
|
|
31831
|
-
componentId: "sc-1pvd2nj-5"
|
|
31832
|
-
})(["resize:vertical;overflow:auto;color:red;"]);
|
|
31833
|
-
const IconButton = styled.button.withConfig({
|
|
31834
|
-
componentId: "sc-1pvd2nj-6"
|
|
31835
|
-
})(["background:transparent;color:inherit;border:none;padding:0;outline:none;&:not(:disabled){cursor:pointer;}", ""], ({
|
|
31836
|
-
theme: theme2,
|
|
31837
|
-
$show
|
|
31838
|
-
}) => `
|
|
31839
|
-
padding: ${theme2.click.field.space.y} 0;
|
|
31840
|
-
visibility: ${$show ? "visible" : "hidden"};
|
|
31841
|
-
`);
|
|
31842
|
-
styled.svg.withConfig({
|
|
31843
|
-
componentId: "sc-1pvd2nj-7"
|
|
31844
|
-
})(["", ""], ({
|
|
31845
|
-
theme: theme2
|
|
31846
|
-
}) => `
|
|
31847
|
-
&:first-of-type {
|
|
31848
|
-
padding-left: ${theme2.click.field.space.gap};
|
|
31849
|
-
}
|
|
31850
|
-
&:last-of-type {
|
|
31851
|
-
padding-right: ${theme2.click.field.space.x};
|
|
31852
|
-
}
|
|
31853
|
-
`);
|
|
31854
32444
|
const NumberField = forwardRef(({
|
|
31855
32445
|
disabled,
|
|
31856
32446
|
label,
|
|
@@ -39707,8 +40297,8 @@ function isKeyable$1(value) {
|
|
|
39707
40297
|
}
|
|
39708
40298
|
var _isKeyable = isKeyable$1;
|
|
39709
40299
|
var isKeyable = _isKeyable;
|
|
39710
|
-
function getMapData$4(
|
|
39711
|
-
var data =
|
|
40300
|
+
function getMapData$4(map2, key) {
|
|
40301
|
+
var data = map2.__data__;
|
|
39712
40302
|
return isKeyable(key) ? data[typeof key == "string" ? "string" : "hash"] : data.map;
|
|
39713
40303
|
}
|
|
39714
40304
|
var _getMapData = getMapData$4;
|
|
@@ -41085,6 +41675,41 @@ const click$3 = {
|
|
|
41085
41675
|
}
|
|
41086
41676
|
}
|
|
41087
41677
|
},
|
|
41678
|
+
datePicker: {
|
|
41679
|
+
dateOption: {
|
|
41680
|
+
color: {
|
|
41681
|
+
label: {
|
|
41682
|
+
"default": "#161517",
|
|
41683
|
+
hover: "#161517",
|
|
41684
|
+
active: "#ffffff",
|
|
41685
|
+
disabled: "#a0a0a0",
|
|
41686
|
+
range: "#161517"
|
|
41687
|
+
},
|
|
41688
|
+
background: {
|
|
41689
|
+
"default": "#ffffff",
|
|
41690
|
+
hover: "#ffffff",
|
|
41691
|
+
active: "#151515",
|
|
41692
|
+
disabled: "#ffffff",
|
|
41693
|
+
range: "#e6e7e9"
|
|
41694
|
+
},
|
|
41695
|
+
stroke: {
|
|
41696
|
+
"default": "#ffffff",
|
|
41697
|
+
hover: "#151515",
|
|
41698
|
+
active: "#151515",
|
|
41699
|
+
disabled: "#ffffff",
|
|
41700
|
+
range: "#e6e7e9"
|
|
41701
|
+
}
|
|
41702
|
+
}
|
|
41703
|
+
},
|
|
41704
|
+
color: {
|
|
41705
|
+
title: {
|
|
41706
|
+
"default": "lch(10.2 1.39 305)"
|
|
41707
|
+
},
|
|
41708
|
+
daytitle: {
|
|
41709
|
+
"default": "#696e79"
|
|
41710
|
+
}
|
|
41711
|
+
}
|
|
41712
|
+
},
|
|
41088
41713
|
global: {
|
|
41089
41714
|
color: {
|
|
41090
41715
|
text: {
|
|
@@ -42690,6 +43315,41 @@ const click$2 = {
|
|
|
42690
43315
|
}
|
|
42691
43316
|
}
|
|
42692
43317
|
},
|
|
43318
|
+
datePicker: {
|
|
43319
|
+
dateOption: {
|
|
43320
|
+
color: {
|
|
43321
|
+
label: {
|
|
43322
|
+
"default": "#ffffff",
|
|
43323
|
+
hover: "#ffffff",
|
|
43324
|
+
active: "#1F1F1C",
|
|
43325
|
+
disabled: "#a0a0a0",
|
|
43326
|
+
range: "#ffffff"
|
|
43327
|
+
},
|
|
43328
|
+
background: {
|
|
43329
|
+
"default": "#1F1F1C",
|
|
43330
|
+
hover: "#1F1F1C",
|
|
43331
|
+
active: "#FAFF69",
|
|
43332
|
+
disabled: "#1F1F1C",
|
|
43333
|
+
range: "#323232"
|
|
43334
|
+
},
|
|
43335
|
+
stroke: {
|
|
43336
|
+
"default": "#1F1F1C",
|
|
43337
|
+
hover: "#FAFF69",
|
|
43338
|
+
active: "#FAFF69",
|
|
43339
|
+
disabled: "#1F1F1C",
|
|
43340
|
+
range: "#323232"
|
|
43341
|
+
}
|
|
43342
|
+
}
|
|
43343
|
+
},
|
|
43344
|
+
color: {
|
|
43345
|
+
title: {
|
|
43346
|
+
"default": "rgb(97.5% 97.5% 97.5%)"
|
|
43347
|
+
},
|
|
43348
|
+
daytitle: {
|
|
43349
|
+
"default": "#b3b6bd"
|
|
43350
|
+
}
|
|
43351
|
+
}
|
|
43352
|
+
},
|
|
42693
43353
|
global: {
|
|
42694
43354
|
color: {
|
|
42695
43355
|
background: {
|
|
@@ -43470,8 +44130,8 @@ const click$1 = {
|
|
|
43470
44130
|
},
|
|
43471
44131
|
stroke: {
|
|
43472
44132
|
"default": "#62de85",
|
|
43473
|
-
hover: "#
|
|
43474
|
-
active: "#
|
|
44133
|
+
hover: "#62de85",
|
|
44134
|
+
active: "#62de85",
|
|
43475
44135
|
disabled: "#c0c0c0"
|
|
43476
44136
|
},
|
|
43477
44137
|
check: {
|
|
@@ -44330,6 +44990,41 @@ const click$1 = {
|
|
|
44330
44990
|
}
|
|
44331
44991
|
}
|
|
44332
44992
|
},
|
|
44993
|
+
datePicker: {
|
|
44994
|
+
dateOption: {
|
|
44995
|
+
color: {
|
|
44996
|
+
label: {
|
|
44997
|
+
"default": "#161517",
|
|
44998
|
+
hover: "#161517",
|
|
44999
|
+
active: "#ffffff",
|
|
45000
|
+
disabled: "#a0a0a0",
|
|
45001
|
+
range: "#161517"
|
|
45002
|
+
},
|
|
45003
|
+
background: {
|
|
45004
|
+
"default": "#ffffff",
|
|
45005
|
+
hover: "#ffffff",
|
|
45006
|
+
active: "#151515",
|
|
45007
|
+
disabled: "#ffffff",
|
|
45008
|
+
range: "#e6e7e9"
|
|
45009
|
+
},
|
|
45010
|
+
stroke: {
|
|
45011
|
+
"default": "#ffffff",
|
|
45012
|
+
hover: "#151515",
|
|
45013
|
+
active: "#151515",
|
|
45014
|
+
disabled: "#ffffff",
|
|
45015
|
+
range: "#e6e7e9"
|
|
45016
|
+
}
|
|
45017
|
+
}
|
|
45018
|
+
},
|
|
45019
|
+
color: {
|
|
45020
|
+
title: {
|
|
45021
|
+
"default": "lch(11.1 1.37 305)"
|
|
45022
|
+
},
|
|
45023
|
+
daytitle: {
|
|
45024
|
+
"default": "#696e79"
|
|
45025
|
+
}
|
|
45026
|
+
}
|
|
45027
|
+
},
|
|
44333
45028
|
global: {
|
|
44334
45029
|
color: {
|
|
44335
45030
|
background: {
|
|
@@ -45590,8 +46285,8 @@ const click = {
|
|
|
45590
46285
|
},
|
|
45591
46286
|
stroke: {
|
|
45592
46287
|
"default": "#62de85",
|
|
45593
|
-
hover: "#
|
|
45594
|
-
active: "#
|
|
46288
|
+
hover: "#62de85",
|
|
46289
|
+
active: "#62de85",
|
|
45595
46290
|
disabled: "#c0c0c0"
|
|
45596
46291
|
},
|
|
45597
46292
|
check: {
|
|
@@ -47142,6 +47837,10 @@ const click = {
|
|
|
47142
47837
|
narrow: {
|
|
47143
47838
|
width: "21rem",
|
|
47144
47839
|
height: "100%"
|
|
47840
|
+
},
|
|
47841
|
+
widest: {
|
|
47842
|
+
width: "55rem",
|
|
47843
|
+
height: "100vh"
|
|
47145
47844
|
}
|
|
47146
47845
|
},
|
|
47147
47846
|
typography: {
|
|
@@ -47345,6 +48044,73 @@ const click = {
|
|
|
47345
48044
|
}
|
|
47346
48045
|
}
|
|
47347
48046
|
},
|
|
48047
|
+
datePicker: {
|
|
48048
|
+
dateOption: {
|
|
48049
|
+
space: {
|
|
48050
|
+
gap: "2px"
|
|
48051
|
+
},
|
|
48052
|
+
radii: {
|
|
48053
|
+
"default": "0.25rem",
|
|
48054
|
+
range: "0"
|
|
48055
|
+
},
|
|
48056
|
+
stroke: "1px",
|
|
48057
|
+
size: {
|
|
48058
|
+
height: "2rem",
|
|
48059
|
+
width: "2rem"
|
|
48060
|
+
},
|
|
48061
|
+
typography: {
|
|
48062
|
+
label: {
|
|
48063
|
+
"default": `400 0.75rem/1.5 "Inter", '"SF Pro Display"', -apple-system, BlinkMacSystemFont, '"Segoe UI"', Roboto, Oxygen, Ubuntu, Cantarell, '"Open Sans"', '"Helvetica Neue"', sans-serif;`,
|
|
48064
|
+
hover: `400 0.75rem/1.5 "Inter", '"SF Pro Display"', -apple-system, BlinkMacSystemFont, '"Segoe UI"', Roboto, Oxygen, Ubuntu, Cantarell, '"Open Sans"', '"Helvetica Neue"', sans-serif;`,
|
|
48065
|
+
active: `600 0.75rem/1.5 "Inter", '"SF Pro Display"', -apple-system, BlinkMacSystemFont, '"Segoe UI"', Roboto, Oxygen, Ubuntu, Cantarell, '"Open Sans"', '"Helvetica Neue"', sans-serif;`,
|
|
48066
|
+
disabled: `400 0.75rem/1.5 "Inter", '"SF Pro Display"', -apple-system, BlinkMacSystemFont, '"Segoe UI"', Roboto, Oxygen, Ubuntu, Cantarell, '"Open Sans"', '"Helvetica Neue"', sans-serif;`,
|
|
48067
|
+
range: `400 0.75rem/1.5 "Inter", '"SF Pro Display"', -apple-system, BlinkMacSystemFont, '"Segoe UI"', Roboto, Oxygen, Ubuntu, Cantarell, '"Open Sans"', '"Helvetica Neue"', sans-serif;`
|
|
48068
|
+
}
|
|
48069
|
+
},
|
|
48070
|
+
color: {
|
|
48071
|
+
label: {
|
|
48072
|
+
"default": "#161517",
|
|
48073
|
+
hover: "#161517",
|
|
48074
|
+
active: "#ffffff",
|
|
48075
|
+
disabled: "#a0a0a0",
|
|
48076
|
+
range: "#161517"
|
|
48077
|
+
},
|
|
48078
|
+
background: {
|
|
48079
|
+
"default": "#ffffff",
|
|
48080
|
+
hover: "#ffffff",
|
|
48081
|
+
active: "#151515",
|
|
48082
|
+
disabled: "#ffffff",
|
|
48083
|
+
range: "#e6e7e9"
|
|
48084
|
+
},
|
|
48085
|
+
stroke: {
|
|
48086
|
+
"default": "#ffffff",
|
|
48087
|
+
hover: "#151515",
|
|
48088
|
+
active: "#151515",
|
|
48089
|
+
disabled: "#ffffff",
|
|
48090
|
+
range: "#e6e7e9"
|
|
48091
|
+
}
|
|
48092
|
+
}
|
|
48093
|
+
},
|
|
48094
|
+
space: {
|
|
48095
|
+
gap: "0.25rem"
|
|
48096
|
+
},
|
|
48097
|
+
typography: {
|
|
48098
|
+
daytitle: {
|
|
48099
|
+
"default": `400 0.75rem/1.5 "Inter", '"SF Pro Display"', -apple-system, BlinkMacSystemFont, '"Segoe UI"', Roboto, Oxygen, Ubuntu, Cantarell, '"Open Sans"', '"Helvetica Neue"', sans-serif;`
|
|
48100
|
+
},
|
|
48101
|
+
title: {
|
|
48102
|
+
"default": `600 0.875rem/1.5 "Inter", '"SF Pro Display"', -apple-system, BlinkMacSystemFont, '"Segoe UI"', Roboto, Oxygen, Ubuntu, Cantarell, '"Open Sans"', '"Helvetica Neue"', sans-serif;`
|
|
48103
|
+
}
|
|
48104
|
+
},
|
|
48105
|
+
color: {
|
|
48106
|
+
title: {
|
|
48107
|
+
"default": "lch(11.1 1.37 305)"
|
|
48108
|
+
},
|
|
48109
|
+
daytitle: {
|
|
48110
|
+
"default": "#696e79"
|
|
48111
|
+
}
|
|
48112
|
+
}
|
|
48113
|
+
},
|
|
47348
48114
|
global: {
|
|
47349
48115
|
color: {
|
|
47350
48116
|
background: {
|
|
@@ -48220,6 +48986,7 @@ export {
|
|
|
48220
48986
|
Container,
|
|
48221
48987
|
ContextMenu,
|
|
48222
48988
|
DangerAlert,
|
|
48989
|
+
DatePicker,
|
|
48223
48990
|
Dialog,
|
|
48224
48991
|
Dropdown,
|
|
48225
48992
|
EllipsisContent,
|