@clickhouse/click-ui 0.0.168 → 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 +1429 -219
- package/dist/click-ui.umd.js +1682 -472
- package/dist/components/Checkbox/Checkbox.d.ts +4 -1
- 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 +223 -0
- package/dist/styles/variables.classic.json.d.ts +35 -0
- package/dist/styles/variables.dark.json.d.ts +184 -1
- package/dist/styles/variables.json.d.ts +228 -5
- package/dist/styles/variables.light.json.d.ts +180 -3
- 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,
|
|
@@ -8992,7 +8992,7 @@ const Item = forwardRef(({
|
|
|
8992
8992
|
/* @__PURE__ */ jsx(IconWrapper$3, { icon, iconDir, children: label ?? children }),
|
|
8993
8993
|
/* @__PURE__ */ jsx(CheckIcon$2, { as: SvgImage, name: "check", size: "sm", $showCheck: isChecked })
|
|
8994
8994
|
] }),
|
|
8995
|
-
separator && /* @__PURE__ */ jsx(Separator
|
|
8995
|
+
separator && /* @__PURE__ */ jsx(Separator, { size: "sm" })
|
|
8996
8996
|
] });
|
|
8997
8997
|
});
|
|
8998
8998
|
Item.displayName = "AutoComplete.Item";
|
|
@@ -10092,6 +10092,7 @@ const Wrapper$5 = styled(FormRoot).withConfig({
|
|
|
10092
10092
|
const Checkbox = ({
|
|
10093
10093
|
id,
|
|
10094
10094
|
label,
|
|
10095
|
+
variant,
|
|
10095
10096
|
disabled,
|
|
10096
10097
|
orientation,
|
|
10097
10098
|
dir,
|
|
@@ -10099,28 +10100,29 @@ const Checkbox = ({
|
|
|
10099
10100
|
}) => {
|
|
10100
10101
|
const defaultId = useId();
|
|
10101
10102
|
return /* @__PURE__ */ jsxs(Wrapper$5, { $orientation: orientation ?? "horizontal", $dir: dir ?? "end", children: [
|
|
10102
|
-
/* @__PURE__ */ jsx(CheckInput, { id: id ?? defaultId, "data-testid": "checkbox", disabled, "aria-label": `${label}`, ...delegated, children: /* @__PURE__ */ jsx(CheckIconWrapper, { children: /* @__PURE__ */ jsx(SvgImage, { name: "check", size: "sm" }) }) }),
|
|
10103
|
+
/* @__PURE__ */ jsx(CheckInput, { id: id ?? defaultId, "data-testid": "checkbox", variant: variant ?? "default", disabled, "aria-label": `${label}`, ...delegated, children: /* @__PURE__ */ jsx(CheckIconWrapper, { children: /* @__PURE__ */ jsx(SvgImage, { name: "check", size: "sm" }) }) }),
|
|
10103
10104
|
label && /* @__PURE__ */ jsx(GenericLabel, { htmlFor: id ?? defaultId, disabled, children: label })
|
|
10104
10105
|
] });
|
|
10105
10106
|
};
|
|
10106
10107
|
const CheckInput = styled($e698a72e93240346$export$be92b6f5f03c0fe9).withConfig({
|
|
10107
10108
|
componentId: "sc-1sck1ja-1"
|
|
10108
10109
|
})(["display:flex;align-items:center;justify-content:center;", ";"], ({
|
|
10109
|
-
theme: theme2
|
|
10110
|
+
theme: theme2,
|
|
10111
|
+
variant = "default"
|
|
10110
10112
|
}) => `
|
|
10111
10113
|
border-radius: ${theme2.click.checkbox.radii.all};
|
|
10112
10114
|
width: ${theme2.click.checkbox.size.all};
|
|
10113
10115
|
height: ${theme2.click.checkbox.size.all};
|
|
10114
|
-
background: ${theme2.click.checkbox.color.background.default};
|
|
10115
|
-
border: 1px solid ${theme2.click.checkbox.color.stroke.default};
|
|
10116
|
+
background: ${theme2.click.checkbox.color.variations[variant].background.default};
|
|
10117
|
+
border: 1px solid ${theme2.click.checkbox.color.variations[variant].stroke.default};
|
|
10116
10118
|
cursor: pointer;
|
|
10117
10119
|
|
|
10118
10120
|
&:hover {
|
|
10119
|
-
background: ${theme2.click.checkbox.color.background.hover};
|
|
10121
|
+
background: ${theme2.click.checkbox.color.variations[variant].background.hover};
|
|
10120
10122
|
}
|
|
10121
10123
|
&[data-state="checked"] {
|
|
10122
|
-
border-color: ${theme2.click.checkbox.color.stroke.active};
|
|
10123
|
-
background: ${theme2.click.checkbox.color.background.active};
|
|
10124
|
+
border-color: ${theme2.click.checkbox.color.variations[variant].stroke.active};
|
|
10125
|
+
background: ${theme2.click.checkbox.color.variations[variant].background.active};
|
|
10124
10126
|
}
|
|
10125
10127
|
&[data-disabled] {
|
|
10126
10128
|
background: ${theme2.click.checkbox.color.background.disabled};
|
|
@@ -12452,14 +12454,14 @@ function listLanguages() {
|
|
|
12452
12454
|
return high.listLanguages();
|
|
12453
12455
|
}
|
|
12454
12456
|
function registerAlias(name2, alias) {
|
|
12455
|
-
var
|
|
12457
|
+
var map2 = name2;
|
|
12456
12458
|
var key;
|
|
12457
12459
|
if (alias) {
|
|
12458
|
-
|
|
12459
|
-
|
|
12460
|
+
map2 = {};
|
|
12461
|
+
map2[name2] = alias;
|
|
12460
12462
|
}
|
|
12461
|
-
for (key in
|
|
12462
|
-
high.registerAliases(
|
|
12463
|
+
for (key in map2) {
|
|
12464
|
+
high.registerAliases(map2[key], { languageName: key });
|
|
12463
12465
|
}
|
|
12464
12466
|
}
|
|
12465
12467
|
function Emitter(options) {
|
|
@@ -13676,6 +13678,778 @@ const CodeBlock = ({
|
|
|
13676
13678
|
}, showLineNumbers, wrapLines: wrap || wrapLines, wrapLongLines: wrap || wrapLines, children })
|
|
13677
13679
|
] });
|
|
13678
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
|
+
};
|
|
13679
14453
|
const $5d3850c4d0b4e6c7$var$DIALOG_NAME = "Dialog";
|
|
13680
14454
|
const [$5d3850c4d0b4e6c7$var$createDialogContext, $5d3850c4d0b4e6c7$export$cc702773b8ea3e41] = $c512c27ab02ef895$export$50c7b4e9d9f19c1($5d3850c4d0b4e6c7$var$DIALOG_NAME);
|
|
13681
14455
|
const [$5d3850c4d0b4e6c7$var$DialogProvider, $5d3850c4d0b4e6c7$var$useDialogContext] = $5d3850c4d0b4e6c7$var$createDialogContext($5d3850c4d0b4e6c7$var$DIALOG_NAME);
|
|
@@ -14064,7 +14838,7 @@ const ConfirmationDialog = ({
|
|
|
14064
14838
|
!open22 && onCancel && onCancel();
|
|
14065
14839
|
}, children: /* @__PURE__ */ jsxs(DialogContent, { as: Dialog.Content, title, showClose, ...props, children: [
|
|
14066
14840
|
/* @__PURE__ */ jsx(Container, { overflow: "auto", grow: "1", orientation: "vertical", children: children ? children : /* @__PURE__ */ jsx(Text, { children: message }) }),
|
|
14067
|
-
/* @__PURE__ */ jsx(Separator
|
|
14841
|
+
/* @__PURE__ */ jsx(Separator, { size: "xl" }),
|
|
14068
14842
|
/* @__PURE__ */ jsxs(ActionsWrapper, { children: [
|
|
14069
14843
|
/* @__PURE__ */ jsx(Dialog.Close, { label: secondaryActionLabel, "data-testid": "cancel-action-button" }),
|
|
14070
14844
|
/* @__PURE__ */ jsx(Dialog.Close, { loading: !!loading, disabled: !!disabled || !!loading, type: primaryActionType, label: primaryActionLabel, onClick: () => {
|
|
@@ -14225,7 +14999,7 @@ const Header$1 = ({
|
|
|
14225
14999
|
/* @__PURE__ */ jsx(Container, { padding: "none", gap: "none", orientation: "vertical", grow: "1", children }),
|
|
14226
15000
|
showClose && /* @__PURE__ */ jsx($5d3850c4d0b4e6c7$export$fba2fb7cd781b7ac, { asChild: true, children: /* @__PURE__ */ jsx(CrossButton, { "data-testid": "flyout-header-close-btn", children: /* @__PURE__ */ jsx(SvgImage, { name: "cross", size: type === "inline" ? "md" : "lg" }) }) })
|
|
14227
15001
|
] }),
|
|
14228
|
-
showSeparator && /* @__PURE__ */ jsx(Separator
|
|
15002
|
+
showSeparator && /* @__PURE__ */ jsx(Separator, { "data-testid": "flyout-header-separator", size: "lg" })
|
|
14229
15003
|
] });
|
|
14230
15004
|
}
|
|
14231
15005
|
return /* @__PURE__ */ jsxs(FlyoutContainer, { children: [
|
|
@@ -14236,7 +15010,7 @@ const Header$1 = ({
|
|
|
14236
15010
|
] }),
|
|
14237
15011
|
showClose && /* @__PURE__ */ jsx($5d3850c4d0b4e6c7$export$fba2fb7cd781b7ac, { asChild: true, children: /* @__PURE__ */ jsx(CrossButton, { "data-testid": "flyout-header-close-btn", children: /* @__PURE__ */ jsx(SvgImage, { name: "cross", size: type === "inline" ? "md" : "lg" }) }) })
|
|
14238
15012
|
] }),
|
|
14239
|
-
showSeparator && /* @__PURE__ */ jsx(Separator
|
|
15013
|
+
showSeparator && /* @__PURE__ */ jsx(Separator, { "data-testid": "flyout-header-separator", size: "lg" })
|
|
14240
15014
|
] });
|
|
14241
15015
|
};
|
|
14242
15016
|
Header$1.displayName = "Flyout.Header";
|
|
@@ -14275,7 +15049,7 @@ const FooterContainer = styled(Container).withConfig({
|
|
|
14275
15049
|
})(["width:var(--flyout-width);max-width:100%;"]);
|
|
14276
15050
|
const Footer = (props) => {
|
|
14277
15051
|
return /* @__PURE__ */ jsxs(FooterContainer, { gap: "none", orientation: "vertical", alignItems: "end", children: [
|
|
14278
|
-
/* @__PURE__ */ jsx(Separator
|
|
15052
|
+
/* @__PURE__ */ jsx(Separator, { size: "xs" }),
|
|
14279
15053
|
/* @__PURE__ */ jsx(FlyoutFooter, { justifyContent: "end", gap: "none", padding: "none", isResponsive: false, wrap: "wrap", ...props })
|
|
14280
15054
|
] });
|
|
14281
15055
|
};
|
|
@@ -14343,9 +15117,9 @@ const GridContainer$1 = ({
|
|
|
14343
15117
|
overflow,
|
|
14344
15118
|
...props
|
|
14345
15119
|
}) => {
|
|
14346
|
-
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 });
|
|
14347
15121
|
};
|
|
14348
|
-
const Wrapper$
|
|
15122
|
+
const Wrapper$3 = styled.div.withConfig({
|
|
14349
15123
|
componentId: "sc-r57kdn-0"
|
|
14350
15124
|
})(["align-items:", ";align-content:", ";display:", ";", ";", ";", ";", ";", ";", ";", ";justify-content:", ";justify-items:", ";", " ", " ", " ", " @media (max-width:", "){grid-template-columns:", ";}"], ({
|
|
14351
15125
|
$alignItems = "stretch"
|
|
@@ -31667,188 +32441,6 @@ const _Link = ({
|
|
|
31667
32441
|
icon && /* @__PURE__ */ jsx(IconWrapper$1, { $size: size2, children: /* @__PURE__ */ jsx(SvgImage, { name: icon, className: "external-icon", "data-testid": icon }) })
|
|
31668
32442
|
] });
|
|
31669
32443
|
const Link = forwardRef(_Link);
|
|
31670
|
-
const Wrapper$3 = styled.div.withConfig({
|
|
31671
|
-
componentId: "sc-1pvd2nj-0"
|
|
31672
|
-
})(["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;}", ""], ({
|
|
31673
|
-
theme: theme2,
|
|
31674
|
-
$error,
|
|
31675
|
-
$resize
|
|
31676
|
-
}) => `
|
|
31677
|
-
gap: ${theme2.click.field.space.gap};
|
|
31678
|
-
border-radius: ${theme2.click.field.radii.all};
|
|
31679
|
-
font: ${theme2.click.field.typography.fieldText.default};
|
|
31680
|
-
color: ${theme2.click.field.color.text.default};
|
|
31681
|
-
border: 1px solid ${theme2.click.field.color.stroke.default};
|
|
31682
|
-
background: ${theme2.click.field.color.background.default};
|
|
31683
|
-
|
|
31684
|
-
*:autofill,
|
|
31685
|
-
*:-webkit-autofill {
|
|
31686
|
-
-webkit-box-shadow: 0 0 0px 50vh ${theme2.click.field.color.background.default} inset;
|
|
31687
|
-
-webkit-text-fill-color: ${theme2.click.field.color.text.default};
|
|
31688
|
-
caret-color: ${theme2.click.field.color.text.default};
|
|
31689
|
-
}
|
|
31690
|
-
|
|
31691
|
-
&:hover {
|
|
31692
|
-
border: 1px solid ${theme2.click.field.color.stroke.hover};
|
|
31693
|
-
background: ${theme2.click.field.color.background.hover};
|
|
31694
|
-
color: ${theme2.click.field.color.text.hover};
|
|
31695
|
-
|
|
31696
|
-
*:autofill,
|
|
31697
|
-
*:-webkit-autofill {
|
|
31698
|
-
-webkit-box-shadow: 0 0 0px 50vh ${theme2.click.field.color.background.hover} inset;
|
|
31699
|
-
-webkit-text-fill-color: ${theme2.click.field.color.text.hover};
|
|
31700
|
-
caret-color: ${theme2.click.field.color.text.hover};
|
|
31701
|
-
}
|
|
31702
|
-
}
|
|
31703
|
-
${$resize === "none" ? "" : `
|
|
31704
|
-
resize: ${$resize};
|
|
31705
|
-
overflow: auto;
|
|
31706
|
-
`}
|
|
31707
|
-
padding: 0 ${theme2.click.field.space.x};
|
|
31708
|
-
${$error ? `
|
|
31709
|
-
font: ${theme2.click.field.typography.fieldText.error};
|
|
31710
|
-
border: 1px solid ${theme2.click.field.color.stroke.error};
|
|
31711
|
-
background: ${theme2.click.field.color.background.active};
|
|
31712
|
-
color: ${theme2.click.field.color.text.error};
|
|
31713
|
-
|
|
31714
|
-
*:autofill,
|
|
31715
|
-
*:-webkit-autofill {
|
|
31716
|
-
-webkit-box-shadow: 0 0 0px 50vh ${theme2.click.field.color.background.error} inset;
|
|
31717
|
-
-webkit-text-fill-color: ${theme2.click.field.color.text.error};
|
|
31718
|
-
caret-color: ${theme2.click.field.color.text.error};
|
|
31719
|
-
}
|
|
31720
|
-
|
|
31721
|
-
&:hover {
|
|
31722
|
-
border: 1px solid ${theme2.click.field.color.stroke.error};
|
|
31723
|
-
color: ${theme2.click.field.color.text.error};
|
|
31724
|
-
*:autofill,
|
|
31725
|
-
*:-webkit-autofill {
|
|
31726
|
-
-webkit-box-shadow: 0 0 0px 50vh ${theme2.click.field.color.background.error} inset;
|
|
31727
|
-
-webkit-text-fill-color: ${theme2.click.field.color.text.error};
|
|
31728
|
-
caret-color: ${theme2.click.field.color.text.error};
|
|
31729
|
-
}
|
|
31730
|
-
}
|
|
31731
|
-
` : `
|
|
31732
|
-
&:focus-within,
|
|
31733
|
-
&[data-state="open"] {
|
|
31734
|
-
font: ${theme2.click.field.typography.fieldText.active};
|
|
31735
|
-
border: 1px solid ${theme2.click.field.color.stroke.active};
|
|
31736
|
-
background: ${theme2.click.field.color.background.active};
|
|
31737
|
-
color: ${theme2.click.field.color.text.active};
|
|
31738
|
-
|
|
31739
|
-
*:autofill,
|
|
31740
|
-
*:-webkit-autofill {
|
|
31741
|
-
-webkit-box-shadow: 0 0 0px 50vh ${theme2.click.field.color.background.active} inset;
|
|
31742
|
-
-webkit-text-fill-color: ${theme2.click.field.color.text.active};
|
|
31743
|
-
caret-color: ${theme2.click.field.color.text.active};
|
|
31744
|
-
}
|
|
31745
|
-
}
|
|
31746
|
-
`};
|
|
31747
|
-
&:disabled, &.disabled {
|
|
31748
|
-
font: ${theme2.click.field.typography.fieldText.disabled};
|
|
31749
|
-
border: 1px solid ${theme2.click.field.color.stroke.disabled};
|
|
31750
|
-
background: ${theme2.click.field.color.background.disabled};
|
|
31751
|
-
color: ${theme2.click.field.color.text.disabled};
|
|
31752
|
-
|
|
31753
|
-
*:autofill,
|
|
31754
|
-
*:-webkit-autofill {
|
|
31755
|
-
-webkit-box-shadow: 0 0 0px 50vh ${theme2.click.field.color.background.disabled} inset;
|
|
31756
|
-
-webkit-text-fill-color: ${theme2.click.field.color.text.disabled};
|
|
31757
|
-
caret-color: ${theme2.click.field.color.text.disabled};
|
|
31758
|
-
}
|
|
31759
|
-
}
|
|
31760
|
-
`);
|
|
31761
|
-
const StyledLabel = styled(Label$1).withConfig({
|
|
31762
|
-
componentId: "sc-1pvd2nj-1"
|
|
31763
|
-
})(["", ""], ({
|
|
31764
|
-
$labelColor
|
|
31765
|
-
}) => `
|
|
31766
|
-
${$labelColor ? `color: ${$labelColor};` : ""}
|
|
31767
|
-
`);
|
|
31768
|
-
const InputWrapper = ({
|
|
31769
|
-
id,
|
|
31770
|
-
label = "",
|
|
31771
|
-
labelColor,
|
|
31772
|
-
error: error2,
|
|
31773
|
-
disabled,
|
|
31774
|
-
children,
|
|
31775
|
-
orientation,
|
|
31776
|
-
dir,
|
|
31777
|
-
resize = "none"
|
|
31778
|
-
}) => {
|
|
31779
|
-
return /* @__PURE__ */ jsxs(FormRoot, { $orientation: orientation, $dir: dir, $addLabelPadding: true, children: [
|
|
31780
|
-
/* @__PURE__ */ jsxs(FormElementContainer, { children: [
|
|
31781
|
-
/* @__PURE__ */ jsx(Wrapper$3, { $error: !!error2, $resize: resize, "data-resize": resize, className: disabled ? "disabled" : "", children }),
|
|
31782
|
-
!!error2 && error2 !== true && /* @__PURE__ */ jsx(Error$1, { children: error2 })
|
|
31783
|
-
] }),
|
|
31784
|
-
label && /* @__PURE__ */ jsx(StyledLabel, { htmlFor: id, disabled, error: !!error2, $labelColor: labelColor, children: label })
|
|
31785
|
-
] });
|
|
31786
|
-
};
|
|
31787
|
-
const InputElement = styled.input.withConfig({
|
|
31788
|
-
componentId: "sc-1pvd2nj-2"
|
|
31789
|
-
})(["background:transparent;border:none;outline:none;width:100%;color:inherit;font:inherit;", ""], ({
|
|
31790
|
-
theme: theme2
|
|
31791
|
-
}) => `
|
|
31792
|
-
padding: ${theme2.click.field.space.y} 0;
|
|
31793
|
-
&::placeholder {
|
|
31794
|
-
color: ${theme2.click.field.color.placeholder.default};
|
|
31795
|
-
}
|
|
31796
|
-
|
|
31797
|
-
&:disabled, &.disabled {
|
|
31798
|
-
&::placeholder {
|
|
31799
|
-
color: ${theme2.click.field.color.placeholder.disabled};
|
|
31800
|
-
}
|
|
31801
|
-
`);
|
|
31802
|
-
const NumberInputElement = styled(InputElement).withConfig({
|
|
31803
|
-
componentId: "sc-1pvd2nj-3"
|
|
31804
|
-
})(["", ""], ({
|
|
31805
|
-
$hideControls
|
|
31806
|
-
}) => `
|
|
31807
|
-
${$hideControls ? `
|
|
31808
|
-
&::-webkit-outer-spin-button,
|
|
31809
|
-
&::-webkit-inner-spin-button {
|
|
31810
|
-
-webkit-appearance: none;
|
|
31811
|
-
margin: 0;
|
|
31812
|
-
}
|
|
31813
|
-
|
|
31814
|
-
-moz-appearance: textfield;
|
|
31815
|
-
` : ""}
|
|
31816
|
-
`);
|
|
31817
|
-
const TextAreaElement = styled.textarea.withConfig({
|
|
31818
|
-
componentId: "sc-1pvd2nj-4"
|
|
31819
|
-
})(["background:transparent;border:none;outline:none;width:100%;color:inherit;font:inherit;resize:none;", ""], ({
|
|
31820
|
-
theme: theme2
|
|
31821
|
-
}) => `
|
|
31822
|
-
padding: ${theme2.click.field.space.y} 0;
|
|
31823
|
-
align-self: stretch;
|
|
31824
|
-
&::placeholder {
|
|
31825
|
-
color: ${theme2.click.field.color.placeholder.default};
|
|
31826
|
-
}
|
|
31827
|
-
`);
|
|
31828
|
-
styled(InputWrapper).withConfig({
|
|
31829
|
-
componentId: "sc-1pvd2nj-5"
|
|
31830
|
-
})(["resize:vertical;overflow:auto;color:red;"]);
|
|
31831
|
-
const IconButton = styled.button.withConfig({
|
|
31832
|
-
componentId: "sc-1pvd2nj-6"
|
|
31833
|
-
})(["background:transparent;color:inherit;border:none;padding:0;outline:none;&:not(:disabled){cursor:pointer;}", ""], ({
|
|
31834
|
-
theme: theme2,
|
|
31835
|
-
$show
|
|
31836
|
-
}) => `
|
|
31837
|
-
padding: ${theme2.click.field.space.y} 0;
|
|
31838
|
-
visibility: ${$show ? "visible" : "hidden"};
|
|
31839
|
-
`);
|
|
31840
|
-
styled.svg.withConfig({
|
|
31841
|
-
componentId: "sc-1pvd2nj-7"
|
|
31842
|
-
})(["", ""], ({
|
|
31843
|
-
theme: theme2
|
|
31844
|
-
}) => `
|
|
31845
|
-
&:first-of-type {
|
|
31846
|
-
padding-left: ${theme2.click.field.space.gap};
|
|
31847
|
-
}
|
|
31848
|
-
&:last-of-type {
|
|
31849
|
-
padding-right: ${theme2.click.field.space.x};
|
|
31850
|
-
}
|
|
31851
|
-
`);
|
|
31852
32444
|
const NumberField = forwardRef(({
|
|
31853
32445
|
disabled,
|
|
31854
32446
|
label,
|
|
@@ -36388,7 +36980,7 @@ const SelectItem = forwardRef(({
|
|
|
36388
36980
|
/* @__PURE__ */ jsx(IconWrapper$3, { icon, iconDir, children: label ?? children }),
|
|
36389
36981
|
/* @__PURE__ */ jsx(CheckIcon$1, { as: SvgImage, name: "check", size: "sm", $showCheck: isChecked })
|
|
36390
36982
|
] }),
|
|
36391
|
-
separator && /* @__PURE__ */ jsx(Separator
|
|
36983
|
+
separator && /* @__PURE__ */ jsx(Separator, { size: "sm" })
|
|
36392
36984
|
] });
|
|
36393
36985
|
});
|
|
36394
36986
|
SelectItem.displayName = "Select.Item";
|
|
@@ -36452,7 +37044,7 @@ const MultiSelectCheckboxItem = forwardRef(({
|
|
|
36452
37044
|
icon && iconDir === "end" && /* @__PURE__ */ jsx(IconWrapper$3, { icon, iconDir: "end", children: /* @__PURE__ */ jsx(Checkbox, { checked: isChecked, "data-testid": "multi-select-checkbox", disabled, label: label ?? children, onClick: onChange }) }),
|
|
36453
37045
|
!icon && /* @__PURE__ */ jsx(Checkbox, { checked: isChecked, "data-testid": "multi-select-checkbox", disabled, label: label ?? children, onClick: onChange })
|
|
36454
37046
|
] }),
|
|
36455
|
-
separator && /* @__PURE__ */ jsx(Separator
|
|
37047
|
+
separator && /* @__PURE__ */ jsx(Separator, { size: "sm" })
|
|
36456
37048
|
] });
|
|
36457
37049
|
});
|
|
36458
37050
|
MultiSelectCheckboxItem.displayName = "Select.Item";
|
|
@@ -36656,7 +37248,6 @@ const Separator = ({
|
|
|
36656
37248
|
orientation = "horizontal",
|
|
36657
37249
|
...props
|
|
36658
37250
|
}) => /* @__PURE__ */ jsx(CUISeparator, { orientation, ...props });
|
|
36659
|
-
const Separator$1 = Separator;
|
|
36660
37251
|
const LabelContainer = styled.span.withConfig({
|
|
36661
37252
|
componentId: "sc-1cu1l45-0"
|
|
36662
37253
|
})(["display:flex;align-items:center;justify-content:flex-start;width:100%;width:-webkit-fill-available;width:fill-available;width:stretch;flex:1;gap:", ";overflow:hidden;"], ({
|
|
@@ -39706,8 +40297,8 @@ function isKeyable$1(value) {
|
|
|
39706
40297
|
}
|
|
39707
40298
|
var _isKeyable = isKeyable$1;
|
|
39708
40299
|
var isKeyable = _isKeyable;
|
|
39709
|
-
function getMapData$4(
|
|
39710
|
-
var data =
|
|
40300
|
+
function getMapData$4(map2, key) {
|
|
40301
|
+
var data = map2.__data__;
|
|
39711
40302
|
return isKeyable(key) ? data[typeof key == "string" ? "string" : "hash"] : data.map;
|
|
39712
40303
|
}
|
|
39713
40304
|
var _getMapData = getMapData$4;
|
|
@@ -41084,6 +41675,41 @@ const click$3 = {
|
|
|
41084
41675
|
}
|
|
41085
41676
|
}
|
|
41086
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
|
+
},
|
|
41087
41713
|
global: {
|
|
41088
41714
|
color: {
|
|
41089
41715
|
text: {
|
|
@@ -41786,6 +42412,154 @@ const click$2 = {
|
|
|
41786
42412
|
},
|
|
41787
42413
|
checkbox: {
|
|
41788
42414
|
color: {
|
|
42415
|
+
variations: {
|
|
42416
|
+
"default": {
|
|
42417
|
+
background: {
|
|
42418
|
+
"default": "rgb(17.8% 17.8% 17.8%)",
|
|
42419
|
+
hover: "rgb(17.8% 17.8% 17.8%)",
|
|
42420
|
+
active: "#FAFF69",
|
|
42421
|
+
disabled: "#414141"
|
|
42422
|
+
},
|
|
42423
|
+
stroke: {
|
|
42424
|
+
"default": "#414141",
|
|
42425
|
+
hover: "#414141",
|
|
42426
|
+
active: "#FAFF69",
|
|
42427
|
+
disabled: "#606060"
|
|
42428
|
+
},
|
|
42429
|
+
check: {
|
|
42430
|
+
"default": "#ffffff",
|
|
42431
|
+
hover: "#ffffff",
|
|
42432
|
+
active: "#151515",
|
|
42433
|
+
disabled: "#808080"
|
|
42434
|
+
},
|
|
42435
|
+
label: {
|
|
42436
|
+
"default": "#ffffff",
|
|
42437
|
+
hover: "#ffffff",
|
|
42438
|
+
active: "#ffffff",
|
|
42439
|
+
disabled: "#606060"
|
|
42440
|
+
}
|
|
42441
|
+
},
|
|
42442
|
+
var1: {
|
|
42443
|
+
background: {
|
|
42444
|
+
"default": "rgb(17.8% 17.8% 17.8%)",
|
|
42445
|
+
hover: "rgb(17.8% 17.8% 17.8%)",
|
|
42446
|
+
active: "#66FF73",
|
|
42447
|
+
disabled: "rgb(17.8% 17.8% 17.8%)"
|
|
42448
|
+
},
|
|
42449
|
+
stroke: {
|
|
42450
|
+
"default": "#00CC11",
|
|
42451
|
+
hover: "#66FF73",
|
|
42452
|
+
active: "#66FF73",
|
|
42453
|
+
disabled: "#606060"
|
|
42454
|
+
},
|
|
42455
|
+
check: {
|
|
42456
|
+
"default": "#ffffff",
|
|
42457
|
+
hover: "#ffffff",
|
|
42458
|
+
active: "#ffffff",
|
|
42459
|
+
disabled: "#a0a0a0"
|
|
42460
|
+
}
|
|
42461
|
+
},
|
|
42462
|
+
var2: {
|
|
42463
|
+
background: {
|
|
42464
|
+
"default": "rgb(17.8% 17.8% 17.8%)",
|
|
42465
|
+
hover: "rgb(17.8% 17.8% 17.8%)",
|
|
42466
|
+
active: "#6c9af3",
|
|
42467
|
+
disabled: "rgb(17.8% 17.8% 17.8%)"
|
|
42468
|
+
},
|
|
42469
|
+
stroke: {
|
|
42470
|
+
"default": "#6c9af3",
|
|
42471
|
+
hover: "#91b3f6",
|
|
42472
|
+
active: "#91b3f6",
|
|
42473
|
+
disabled: "#606060"
|
|
42474
|
+
},
|
|
42475
|
+
check: {
|
|
42476
|
+
"default": "#ffffff",
|
|
42477
|
+
hover: "#ffffff",
|
|
42478
|
+
active: "#ffffff",
|
|
42479
|
+
disabled: "#a0a0a0"
|
|
42480
|
+
}
|
|
42481
|
+
},
|
|
42482
|
+
var3: {
|
|
42483
|
+
background: {
|
|
42484
|
+
"default": "rgb(17.8% 17.8% 17.8%)",
|
|
42485
|
+
hover: "rgb(17.8% 17.8% 17.8%)",
|
|
42486
|
+
active: "#FB64D6",
|
|
42487
|
+
disabled: "rgb(17.8% 17.8% 17.8%)"
|
|
42488
|
+
},
|
|
42489
|
+
stroke: {
|
|
42490
|
+
"default": "#FB64D6",
|
|
42491
|
+
hover: "#FB64D6",
|
|
42492
|
+
active: "#FB64D6",
|
|
42493
|
+
disabled: "#606060"
|
|
42494
|
+
},
|
|
42495
|
+
check: {
|
|
42496
|
+
"default": "#ffffff",
|
|
42497
|
+
hover: "#ffffff",
|
|
42498
|
+
active: "#ffffff",
|
|
42499
|
+
disabled: "#a0a0a0"
|
|
42500
|
+
}
|
|
42501
|
+
},
|
|
42502
|
+
var4: {
|
|
42503
|
+
background: {
|
|
42504
|
+
"default": "rgb(17.8% 17.8% 17.8%)",
|
|
42505
|
+
hover: "rgb(17.8% 17.8% 17.8%)",
|
|
42506
|
+
active: "#FAFF69",
|
|
42507
|
+
disabled: "rgb(17.8% 17.8% 17.8%)"
|
|
42508
|
+
},
|
|
42509
|
+
stroke: {
|
|
42510
|
+
"default": "#FAFF69",
|
|
42511
|
+
hover: "#fdffa3",
|
|
42512
|
+
active: "#fdffa3",
|
|
42513
|
+
disabled: "#606060"
|
|
42514
|
+
},
|
|
42515
|
+
check: {
|
|
42516
|
+
"default": "#ffffff",
|
|
42517
|
+
hover: "#ffffff",
|
|
42518
|
+
active: "#ffffff",
|
|
42519
|
+
disabled: "#a0a0a0"
|
|
42520
|
+
}
|
|
42521
|
+
},
|
|
42522
|
+
var5: {
|
|
42523
|
+
background: {
|
|
42524
|
+
"default": "rgb(17.8% 17.8% 17.8%)",
|
|
42525
|
+
hover: "rgb(17.8% 17.8% 17.8%)",
|
|
42526
|
+
active: "#66FFE5",
|
|
42527
|
+
disabled: "rgb(17.8% 17.8% 17.8%)"
|
|
42528
|
+
},
|
|
42529
|
+
stroke: {
|
|
42530
|
+
"default": "#66FFE5",
|
|
42531
|
+
hover: "#99FFEE",
|
|
42532
|
+
active: "#99FFEE",
|
|
42533
|
+
disabled: "#606060"
|
|
42534
|
+
},
|
|
42535
|
+
check: {
|
|
42536
|
+
"default": "#ffffff",
|
|
42537
|
+
hover: "#ffffff",
|
|
42538
|
+
active: "#ffffff",
|
|
42539
|
+
disabled: "#a0a0a0"
|
|
42540
|
+
}
|
|
42541
|
+
},
|
|
42542
|
+
var6: {
|
|
42543
|
+
background: {
|
|
42544
|
+
"default": "rgb(17.8% 17.8% 17.8%)",
|
|
42545
|
+
hover: "rgb(17.8% 17.8% 17.8%)",
|
|
42546
|
+
active: "#BB33FF",
|
|
42547
|
+
disabled: "rgb(17.8% 17.8% 17.8%)"
|
|
42548
|
+
},
|
|
42549
|
+
stroke: {
|
|
42550
|
+
"default": "#CC66FF",
|
|
42551
|
+
hover: "#CC66FF",
|
|
42552
|
+
active: "#CC66FF",
|
|
42553
|
+
disabled: "#606060"
|
|
42554
|
+
},
|
|
42555
|
+
check: {
|
|
42556
|
+
"default": "#ffffff",
|
|
42557
|
+
hover: "#ffffff",
|
|
42558
|
+
active: "#ffffff",
|
|
42559
|
+
disabled: "#a0a0a0"
|
|
42560
|
+
}
|
|
42561
|
+
}
|
|
42562
|
+
},
|
|
41789
42563
|
background: {
|
|
41790
42564
|
"default": "rgb(17.8% 17.8% 17.8%)",
|
|
41791
42565
|
hover: "rgb(17.8% 17.8% 17.8%)",
|
|
@@ -42541,6 +43315,41 @@ const click$2 = {
|
|
|
42541
43315
|
}
|
|
42542
43316
|
}
|
|
42543
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
|
+
},
|
|
42544
43353
|
global: {
|
|
42545
43354
|
color: {
|
|
42546
43355
|
background: {
|
|
@@ -42691,7 +43500,7 @@ const global$3 = {
|
|
|
42691
43500
|
}
|
|
42692
43501
|
},
|
|
42693
43502
|
icon: {
|
|
42694
|
-
background: "linear-gradient(132deg, #FAFF69
|
|
43503
|
+
background: "linear-gradient(132deg, #FAFF69 8%, #292929 30%);"
|
|
42695
43504
|
}
|
|
42696
43505
|
}
|
|
42697
43506
|
};
|
|
@@ -43291,6 +44100,148 @@ const click$1 = {
|
|
|
43291
44100
|
},
|
|
43292
44101
|
checkbox: {
|
|
43293
44102
|
color: {
|
|
44103
|
+
variations: {
|
|
44104
|
+
"default": {
|
|
44105
|
+
background: {
|
|
44106
|
+
"default": "#f6f7fa",
|
|
44107
|
+
hover: "#f6f7fa",
|
|
44108
|
+
active: "#161517",
|
|
44109
|
+
disabled: "#dfdfdf"
|
|
44110
|
+
},
|
|
44111
|
+
stroke: {
|
|
44112
|
+
"default": "#b3b6bd",
|
|
44113
|
+
hover: "#b3b6bd",
|
|
44114
|
+
active: "#161517",
|
|
44115
|
+
disabled: "#c0c0c0"
|
|
44116
|
+
},
|
|
44117
|
+
check: {
|
|
44118
|
+
"default": "#ffffff",
|
|
44119
|
+
hover: "#ffffff",
|
|
44120
|
+
active: "#ffffff",
|
|
44121
|
+
disabled: "#a0a0a0"
|
|
44122
|
+
}
|
|
44123
|
+
},
|
|
44124
|
+
var1: {
|
|
44125
|
+
background: {
|
|
44126
|
+
"default": "#f6f7fa",
|
|
44127
|
+
hover: "#f6f7fa",
|
|
44128
|
+
active: "#62de85",
|
|
44129
|
+
disabled: "#dfdfdf"
|
|
44130
|
+
},
|
|
44131
|
+
stroke: {
|
|
44132
|
+
"default": "#62de85",
|
|
44133
|
+
hover: "#62de85",
|
|
44134
|
+
active: "#62de85",
|
|
44135
|
+
disabled: "#c0c0c0"
|
|
44136
|
+
},
|
|
44137
|
+
check: {
|
|
44138
|
+
"default": "#ffffff",
|
|
44139
|
+
hover: "#ffffff",
|
|
44140
|
+
active: "#ffffff",
|
|
44141
|
+
disabled: "#a0a0a0"
|
|
44142
|
+
}
|
|
44143
|
+
},
|
|
44144
|
+
var2: {
|
|
44145
|
+
background: {
|
|
44146
|
+
"default": "#f6f7fa",
|
|
44147
|
+
hover: "#f6f7fa",
|
|
44148
|
+
active: "#6c9af3",
|
|
44149
|
+
disabled: "#dfdfdf"
|
|
44150
|
+
},
|
|
44151
|
+
stroke: {
|
|
44152
|
+
"default": "#6c9af3",
|
|
44153
|
+
hover: "#6c9af3",
|
|
44154
|
+
active: "#6c9af3",
|
|
44155
|
+
disabled: "#c0c0c0"
|
|
44156
|
+
},
|
|
44157
|
+
check: {
|
|
44158
|
+
"default": "#ffffff",
|
|
44159
|
+
hover: "#ffffff",
|
|
44160
|
+
active: "#ffffff",
|
|
44161
|
+
disabled: "#a0a0a0"
|
|
44162
|
+
}
|
|
44163
|
+
},
|
|
44164
|
+
var3: {
|
|
44165
|
+
background: {
|
|
44166
|
+
"default": "#f6f7fa",
|
|
44167
|
+
hover: "#f6f7fa",
|
|
44168
|
+
active: "#FB64D6",
|
|
44169
|
+
disabled: "#dfdfdf"
|
|
44170
|
+
},
|
|
44171
|
+
stroke: {
|
|
44172
|
+
"default": "#FB64D6",
|
|
44173
|
+
hover: "#FB64D6",
|
|
44174
|
+
active: "#FB64D6",
|
|
44175
|
+
disabled: "#c0c0c0"
|
|
44176
|
+
},
|
|
44177
|
+
check: {
|
|
44178
|
+
"default": "#ffffff",
|
|
44179
|
+
hover: "#ffffff",
|
|
44180
|
+
active: "#ffffff",
|
|
44181
|
+
disabled: "#a0a0a0"
|
|
44182
|
+
}
|
|
44183
|
+
},
|
|
44184
|
+
var4: {
|
|
44185
|
+
background: {
|
|
44186
|
+
"default": "#f6f7fa",
|
|
44187
|
+
hover: "#f6f7fa",
|
|
44188
|
+
active: "#ffb864",
|
|
44189
|
+
disabled: "#dfdfdf"
|
|
44190
|
+
},
|
|
44191
|
+
stroke: {
|
|
44192
|
+
"default": "#ffb864",
|
|
44193
|
+
hover: "#ffb864",
|
|
44194
|
+
active: "#ffb864",
|
|
44195
|
+
disabled: "#c0c0c0"
|
|
44196
|
+
},
|
|
44197
|
+
check: {
|
|
44198
|
+
"default": "#ffffff",
|
|
44199
|
+
hover: "#ffffff",
|
|
44200
|
+
active: "#ffffff",
|
|
44201
|
+
disabled: "#a0a0a0"
|
|
44202
|
+
}
|
|
44203
|
+
},
|
|
44204
|
+
var5: {
|
|
44205
|
+
background: {
|
|
44206
|
+
"default": "#f6f7fa",
|
|
44207
|
+
hover: "#f6f7fa",
|
|
44208
|
+
active: "#00CCAA",
|
|
44209
|
+
disabled: "#dfdfdf"
|
|
44210
|
+
},
|
|
44211
|
+
stroke: {
|
|
44212
|
+
"default": "#00CCAA",
|
|
44213
|
+
hover: "#00CCAA",
|
|
44214
|
+
active: "#00CCAA",
|
|
44215
|
+
disabled: "#c0c0c0"
|
|
44216
|
+
},
|
|
44217
|
+
check: {
|
|
44218
|
+
"default": "#ffffff",
|
|
44219
|
+
hover: "#ffffff",
|
|
44220
|
+
active: "#ffffff",
|
|
44221
|
+
disabled: "#a0a0a0"
|
|
44222
|
+
}
|
|
44223
|
+
},
|
|
44224
|
+
var6: {
|
|
44225
|
+
background: {
|
|
44226
|
+
"default": "#f6f7fa",
|
|
44227
|
+
hover: "#f6f7fa",
|
|
44228
|
+
active: "#CC66FF",
|
|
44229
|
+
disabled: "#dfdfdf"
|
|
44230
|
+
},
|
|
44231
|
+
stroke: {
|
|
44232
|
+
"default": "#CC66FF",
|
|
44233
|
+
hover: "#BB33FF",
|
|
44234
|
+
active: "#BB33FF",
|
|
44235
|
+
disabled: "#c0c0c0"
|
|
44236
|
+
},
|
|
44237
|
+
check: {
|
|
44238
|
+
"default": "#ffffff",
|
|
44239
|
+
hover: "#ffffff",
|
|
44240
|
+
active: "#ffffff",
|
|
44241
|
+
disabled: "#a0a0a0"
|
|
44242
|
+
}
|
|
44243
|
+
}
|
|
44244
|
+
},
|
|
43294
44245
|
background: {
|
|
43295
44246
|
"default": "#f6f7fa",
|
|
43296
44247
|
hover: "#f6f7fa",
|
|
@@ -44039,6 +44990,41 @@ const click$1 = {
|
|
|
44039
44990
|
}
|
|
44040
44991
|
}
|
|
44041
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
|
+
},
|
|
44042
45028
|
global: {
|
|
44043
45029
|
color: {
|
|
44044
45030
|
background: {
|
|
@@ -44107,7 +45093,7 @@ const click$1 = {
|
|
|
44107
45093
|
chart: {
|
|
44108
45094
|
bars: {
|
|
44109
45095
|
color: {
|
|
44110
|
-
green: "#
|
|
45096
|
+
green: "#62de85",
|
|
44111
45097
|
blue: "#6c9af3",
|
|
44112
45098
|
fuchsia: "#FB64D6",
|
|
44113
45099
|
orange: "#ffb864",
|
|
@@ -44175,7 +45161,7 @@ const global$2 = {
|
|
|
44175
45161
|
},
|
|
44176
45162
|
chart: {
|
|
44177
45163
|
bars: {
|
|
44178
|
-
green: "#
|
|
45164
|
+
green: "#62de85",
|
|
44179
45165
|
blue: "#6c9af3",
|
|
44180
45166
|
fuchsia: "#FB64D6",
|
|
44181
45167
|
orange: "#ffb864",
|
|
@@ -44190,7 +45176,7 @@ const global$2 = {
|
|
|
44190
45176
|
}
|
|
44191
45177
|
},
|
|
44192
45178
|
icon: {
|
|
44193
|
-
background: "linear-gradient(132deg, #FFFFFF
|
|
45179
|
+
background: "linear-gradient(132deg, #FFFFFF 8%, #292929 30%);"
|
|
44194
45180
|
}
|
|
44195
45181
|
}
|
|
44196
45182
|
};
|
|
@@ -45263,6 +46249,154 @@ const click = {
|
|
|
45263
46249
|
}
|
|
45264
46250
|
},
|
|
45265
46251
|
color: {
|
|
46252
|
+
variations: {
|
|
46253
|
+
"default": {
|
|
46254
|
+
background: {
|
|
46255
|
+
"default": "#f6f7fa",
|
|
46256
|
+
hover: "#f6f7fa",
|
|
46257
|
+
active: "#161517",
|
|
46258
|
+
disabled: "#dfdfdf"
|
|
46259
|
+
},
|
|
46260
|
+
stroke: {
|
|
46261
|
+
"default": "#b3b6bd",
|
|
46262
|
+
hover: "#b3b6bd",
|
|
46263
|
+
active: "#161517",
|
|
46264
|
+
disabled: "#c0c0c0"
|
|
46265
|
+
},
|
|
46266
|
+
check: {
|
|
46267
|
+
"default": "#ffffff",
|
|
46268
|
+
hover: "#ffffff",
|
|
46269
|
+
active: "#ffffff",
|
|
46270
|
+
disabled: "#a0a0a0"
|
|
46271
|
+
},
|
|
46272
|
+
label: {
|
|
46273
|
+
"default": "#161517",
|
|
46274
|
+
hover: "#161517",
|
|
46275
|
+
active: "#161517",
|
|
46276
|
+
disabled: "#a0a0a0"
|
|
46277
|
+
}
|
|
46278
|
+
},
|
|
46279
|
+
var1: {
|
|
46280
|
+
background: {
|
|
46281
|
+
"default": "#f6f7fa",
|
|
46282
|
+
hover: "#f6f7fa",
|
|
46283
|
+
active: "#62de85",
|
|
46284
|
+
disabled: "#dfdfdf"
|
|
46285
|
+
},
|
|
46286
|
+
stroke: {
|
|
46287
|
+
"default": "#62de85",
|
|
46288
|
+
hover: "#62de85",
|
|
46289
|
+
active: "#62de85",
|
|
46290
|
+
disabled: "#c0c0c0"
|
|
46291
|
+
},
|
|
46292
|
+
check: {
|
|
46293
|
+
"default": "#ffffff",
|
|
46294
|
+
hover: "#ffffff",
|
|
46295
|
+
active: "#ffffff",
|
|
46296
|
+
disabled: "#a0a0a0"
|
|
46297
|
+
}
|
|
46298
|
+
},
|
|
46299
|
+
var2: {
|
|
46300
|
+
background: {
|
|
46301
|
+
"default": "#f6f7fa",
|
|
46302
|
+
hover: "#f6f7fa",
|
|
46303
|
+
active: "#6c9af3",
|
|
46304
|
+
disabled: "#dfdfdf"
|
|
46305
|
+
},
|
|
46306
|
+
stroke: {
|
|
46307
|
+
"default": "#6c9af3",
|
|
46308
|
+
hover: "#6c9af3",
|
|
46309
|
+
active: "#6c9af3",
|
|
46310
|
+
disabled: "#c0c0c0"
|
|
46311
|
+
},
|
|
46312
|
+
check: {
|
|
46313
|
+
"default": "#ffffff",
|
|
46314
|
+
hover: "#ffffff",
|
|
46315
|
+
active: "#ffffff",
|
|
46316
|
+
disabled: "#a0a0a0"
|
|
46317
|
+
}
|
|
46318
|
+
},
|
|
46319
|
+
var3: {
|
|
46320
|
+
background: {
|
|
46321
|
+
"default": "#f6f7fa",
|
|
46322
|
+
hover: "#f6f7fa",
|
|
46323
|
+
active: "#FB64D6",
|
|
46324
|
+
disabled: "#dfdfdf"
|
|
46325
|
+
},
|
|
46326
|
+
stroke: {
|
|
46327
|
+
"default": "#FB64D6",
|
|
46328
|
+
hover: "#FB64D6",
|
|
46329
|
+
active: "#FB64D6",
|
|
46330
|
+
disabled: "#c0c0c0"
|
|
46331
|
+
},
|
|
46332
|
+
check: {
|
|
46333
|
+
"default": "#ffffff",
|
|
46334
|
+
hover: "#ffffff",
|
|
46335
|
+
active: "#ffffff",
|
|
46336
|
+
disabled: "#a0a0a0"
|
|
46337
|
+
}
|
|
46338
|
+
},
|
|
46339
|
+
var4: {
|
|
46340
|
+
background: {
|
|
46341
|
+
"default": "#f6f7fa",
|
|
46342
|
+
hover: "#f6f7fa",
|
|
46343
|
+
active: "#ffb864",
|
|
46344
|
+
disabled: "#dfdfdf"
|
|
46345
|
+
},
|
|
46346
|
+
stroke: {
|
|
46347
|
+
"default": "#ffb864",
|
|
46348
|
+
hover: "#ffb864",
|
|
46349
|
+
active: "#ffb864",
|
|
46350
|
+
disabled: "#c0c0c0"
|
|
46351
|
+
},
|
|
46352
|
+
check: {
|
|
46353
|
+
"default": "#ffffff",
|
|
46354
|
+
hover: "#ffffff",
|
|
46355
|
+
active: "#ffffff",
|
|
46356
|
+
disabled: "#a0a0a0"
|
|
46357
|
+
}
|
|
46358
|
+
},
|
|
46359
|
+
var5: {
|
|
46360
|
+
background: {
|
|
46361
|
+
"default": "#f6f7fa",
|
|
46362
|
+
hover: "#f6f7fa",
|
|
46363
|
+
active: "#00CCAA",
|
|
46364
|
+
disabled: "#dfdfdf"
|
|
46365
|
+
},
|
|
46366
|
+
stroke: {
|
|
46367
|
+
"default": "#00CCAA",
|
|
46368
|
+
hover: "#00CCAA",
|
|
46369
|
+
active: "#00CCAA",
|
|
46370
|
+
disabled: "#c0c0c0"
|
|
46371
|
+
},
|
|
46372
|
+
check: {
|
|
46373
|
+
"default": "#ffffff",
|
|
46374
|
+
hover: "#ffffff",
|
|
46375
|
+
active: "#ffffff",
|
|
46376
|
+
disabled: "#a0a0a0"
|
|
46377
|
+
}
|
|
46378
|
+
},
|
|
46379
|
+
var6: {
|
|
46380
|
+
background: {
|
|
46381
|
+
"default": "#f6f7fa",
|
|
46382
|
+
hover: "#f6f7fa",
|
|
46383
|
+
active: "#CC66FF",
|
|
46384
|
+
disabled: "#dfdfdf"
|
|
46385
|
+
},
|
|
46386
|
+
stroke: {
|
|
46387
|
+
"default": "#CC66FF",
|
|
46388
|
+
hover: "#BB33FF",
|
|
46389
|
+
active: "#BB33FF",
|
|
46390
|
+
disabled: "#c0c0c0"
|
|
46391
|
+
},
|
|
46392
|
+
check: {
|
|
46393
|
+
"default": "#ffffff",
|
|
46394
|
+
hover: "#ffffff",
|
|
46395
|
+
active: "#ffffff",
|
|
46396
|
+
disabled: "#a0a0a0"
|
|
46397
|
+
}
|
|
46398
|
+
}
|
|
46399
|
+
},
|
|
45266
46400
|
background: {
|
|
45267
46401
|
"default": "#f6f7fa",
|
|
45268
46402
|
hover: "#f6f7fa",
|
|
@@ -46703,6 +47837,10 @@ const click = {
|
|
|
46703
47837
|
narrow: {
|
|
46704
47838
|
width: "21rem",
|
|
46705
47839
|
height: "100%"
|
|
47840
|
+
},
|
|
47841
|
+
widest: {
|
|
47842
|
+
width: "55rem",
|
|
47843
|
+
height: "100vh"
|
|
46706
47844
|
}
|
|
46707
47845
|
},
|
|
46708
47846
|
typography: {
|
|
@@ -46906,6 +48044,73 @@ const click = {
|
|
|
46906
48044
|
}
|
|
46907
48045
|
}
|
|
46908
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
|
+
},
|
|
46909
48114
|
global: {
|
|
46910
48115
|
color: {
|
|
46911
48116
|
background: {
|
|
@@ -46974,7 +48179,7 @@ const click = {
|
|
|
46974
48179
|
chart: {
|
|
46975
48180
|
bars: {
|
|
46976
48181
|
color: {
|
|
46977
|
-
green: "#
|
|
48182
|
+
green: "#62de85",
|
|
46978
48183
|
blue: "#6c9af3",
|
|
46979
48184
|
fuchsia: "#FB64D6",
|
|
46980
48185
|
orange: "#ffb864",
|
|
@@ -47080,7 +48285,7 @@ const global$1 = {
|
|
|
47080
48285
|
},
|
|
47081
48286
|
chart: {
|
|
47082
48287
|
bars: {
|
|
47083
|
-
green: "#
|
|
48288
|
+
green: "#62de85",
|
|
47084
48289
|
blue: "#6c9af3",
|
|
47085
48290
|
fuchsia: "#FB64D6",
|
|
47086
48291
|
orange: "#ffb864",
|
|
@@ -47095,7 +48300,11 @@ const global$1 = {
|
|
|
47095
48300
|
}
|
|
47096
48301
|
},
|
|
47097
48302
|
icon: {
|
|
47098
|
-
background: "linear-gradient(132deg, #FFFFFF
|
|
48303
|
+
background: "linear-gradient(132deg, #FFFFFF 8%, #292929 30%);"
|
|
48304
|
+
},
|
|
48305
|
+
gradients: {
|
|
48306
|
+
yellowToBlack: "linear-gradient(132deg, #faff69 8%, #292929 30%)",
|
|
48307
|
+
whiteToBlack: "linear-gradient(132deg, #ffffff 8%, #292929 30%)"
|
|
47099
48308
|
}
|
|
47100
48309
|
}
|
|
47101
48310
|
};
|
|
@@ -47213,8 +48422,8 @@ const palette = {
|
|
|
47213
48422
|
},
|
|
47214
48423
|
gradients: {
|
|
47215
48424
|
base: "linear-gradient(229.65deg, #292924 15.78%, #0F0F0F 88.39%)",
|
|
47216
|
-
yellowToblack: "linear-gradient(132deg, #FAFF69
|
|
47217
|
-
whiteToblack: "linear-gradient(132deg, #FFFFFF
|
|
48425
|
+
yellowToblack: "linear-gradient(132deg, #FAFF69 8%, #292929 30%);",
|
|
48426
|
+
whiteToblack: "linear-gradient(132deg, #FFFFFF 8%, #292929 30%);",
|
|
47218
48427
|
transparent: "rgba(0,0,0,0)"
|
|
47219
48428
|
},
|
|
47220
48429
|
utility: {
|
|
@@ -47777,6 +48986,7 @@ export {
|
|
|
47777
48986
|
Container,
|
|
47778
48987
|
ContextMenu,
|
|
47779
48988
|
DangerAlert,
|
|
48989
|
+
DatePicker,
|
|
47780
48990
|
Dialog,
|
|
47781
48991
|
Dropdown,
|
|
47782
48992
|
EllipsisContent,
|
|
@@ -47809,7 +49019,7 @@ export {
|
|
|
47809
49019
|
RadioGroup,
|
|
47810
49020
|
SearchField,
|
|
47811
49021
|
Select,
|
|
47812
|
-
Separator
|
|
49022
|
+
Separator,
|
|
47813
49023
|
SidebarCollapsibleItem,
|
|
47814
49024
|
SidebarCollapsibleTitle,
|
|
47815
49025
|
SidebarNavigationItem,
|