@crossangle-org/cs-ui 0.1.0 → 0.1.1
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/cs-ui.css +1209 -841
- package/dist/index.cjs.js +173 -201
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +25 -1
- package/dist/index.es.js +172 -201
- package/dist/index.es.js.map +1 -1
- package/package.json +9 -7
package/dist/index.cjs.js
CHANGED
|
@@ -6,6 +6,7 @@ const jsxRuntime = require("react/jsx-runtime");
|
|
|
6
6
|
const AccordionPrimitive = require("@radix-ui/react-accordion");
|
|
7
7
|
const AlertDialogPrimitive = require("@radix-ui/react-alert-dialog");
|
|
8
8
|
const reactSlot = require("@radix-ui/react-slot");
|
|
9
|
+
const AvatarPrimitive = require("@radix-ui/react-avatar");
|
|
9
10
|
const TooltipPrimitive = require("@radix-ui/react-tooltip");
|
|
10
11
|
const CheckboxPrimitive = require("@radix-ui/react-checkbox");
|
|
11
12
|
const ScrollAreaPrimitive = require("@radix-ui/react-scroll-area");
|
|
@@ -41,6 +42,7 @@ function _interopNamespaceDefault(e2) {
|
|
|
41
42
|
const React__namespace = /* @__PURE__ */ _interopNamespaceDefault(React);
|
|
42
43
|
const AccordionPrimitive__namespace = /* @__PURE__ */ _interopNamespaceDefault(AccordionPrimitive);
|
|
43
44
|
const AlertDialogPrimitive__namespace = /* @__PURE__ */ _interopNamespaceDefault(AlertDialogPrimitive);
|
|
45
|
+
const AvatarPrimitive__namespace = /* @__PURE__ */ _interopNamespaceDefault(AvatarPrimitive);
|
|
44
46
|
const TooltipPrimitive__namespace = /* @__PURE__ */ _interopNamespaceDefault(TooltipPrimitive);
|
|
45
47
|
const CheckboxPrimitive__namespace = /* @__PURE__ */ _interopNamespaceDefault(CheckboxPrimitive);
|
|
46
48
|
const ScrollAreaPrimitive__namespace = /* @__PURE__ */ _interopNamespaceDefault(ScrollAreaPrimitive);
|
|
@@ -3357,7 +3359,7 @@ function CsAccordionTrigger({
|
|
|
3357
3359
|
{
|
|
3358
3360
|
"data-slot": "accordion-trigger",
|
|
3359
3361
|
className: cn$1(
|
|
3360
|
-
"flex flex-1 items-center justify-between text-left typo-body-md transition-all outline-none hover:underline disabled:pointer-events-none disabled:opacity-(--opacity-state-disabled) [&[data-state=open]>svg]:rotate-180",
|
|
3362
|
+
"typo-body-sm-bold flex flex-1 items-center justify-between text-left typo-body-md transition-all outline-none hover:underline disabled:pointer-events-none disabled:opacity-(--opacity-state-disabled) [&[data-state=open]>svg]:rotate-180",
|
|
3361
3363
|
"[&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg]:transition-transform [&_svg]:duration-200",
|
|
3362
3364
|
// default
|
|
3363
3365
|
"group-data-[variant=default]/accordion:py-(--accordion-default-padding-y) group-data-[variant=default]/accordion:gap-(--accordion-default-gap)",
|
|
@@ -3431,9 +3433,10 @@ const csButtonVariants = cva(
|
|
|
3431
3433
|
"disabled:text-(--button-ghost-disabled-font) disabled:[&_svg]:text-(--button-ghost-disabled-icon)"
|
|
3432
3434
|
].join(" "),
|
|
3433
3435
|
link: [
|
|
3434
|
-
"text-(--button-link-default-font) [&_svg]:text-(--button-link-default-icon)",
|
|
3435
|
-
"hover:
|
|
3436
|
+
"p-0! text-(--button-link-default-font) [&_svg]:text-(--button-link-default-icon)",
|
|
3437
|
+
"hover:underline hover:text-(--button-link-hover-font) hover:[&_svg]:text-(--button-link-hover-icon)",
|
|
3436
3438
|
"disabled:text-(--button-link-disabled-font) disabled:[&_svg]:text-(--button-link-disabled-icon)"
|
|
3439
|
+
// 'hover:bg-(--button-link-hover-bg) '
|
|
3437
3440
|
].join(" "),
|
|
3438
3441
|
gradient: [
|
|
3439
3442
|
"gradient-primary-vertical text-(--button-gradient-default-font) [&_svg]:text-(--button-gradient-default-icon)",
|
|
@@ -3543,7 +3546,7 @@ function CsAlertDialogHeader({
|
|
|
3543
3546
|
"div",
|
|
3544
3547
|
{
|
|
3545
3548
|
"data-slot": "alert-dialog-header",
|
|
3546
|
-
className: cn$1("flex flex-col gap-(--dialog-container-header-gap) mobile:text-center text-left", className),
|
|
3549
|
+
className: cn$1("flex flex-col gap-(--dialog-container-header-gap) max-mobile:text-center text-left", className),
|
|
3547
3550
|
...props
|
|
3548
3551
|
}
|
|
3549
3552
|
);
|
|
@@ -3557,7 +3560,7 @@ function CsAlertDialogFooter({
|
|
|
3557
3560
|
{
|
|
3558
3561
|
"data-slot": "alert-dialog-footer",
|
|
3559
3562
|
className: cn$1(
|
|
3560
|
-
"flex flex-col-reverse gap-(--dialog-container-footer-gap) mobile:flex-row mobile:justify-end",
|
|
3563
|
+
"flex flex-col-reverse gap-(--dialog-container-footer-gap) max-mobile:flex-row max-mobile:justify-end",
|
|
3561
3564
|
className
|
|
3562
3565
|
),
|
|
3563
3566
|
...props
|
|
@@ -3614,6 +3617,39 @@ function CsAlertDialogCancel({
|
|
|
3614
3617
|
}
|
|
3615
3618
|
);
|
|
3616
3619
|
}
|
|
3620
|
+
const CsAvatar = React__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
3621
|
+
AvatarPrimitive__namespace.Root,
|
|
3622
|
+
{
|
|
3623
|
+
ref,
|
|
3624
|
+
className: cn$1(
|
|
3625
|
+
"relative flex h-10 w-10 shrink-0 overflow-hidden",
|
|
3626
|
+
className
|
|
3627
|
+
),
|
|
3628
|
+
...props
|
|
3629
|
+
}
|
|
3630
|
+
));
|
|
3631
|
+
CsAvatar.displayName = AvatarPrimitive__namespace.Root.displayName;
|
|
3632
|
+
const CsAvatarImage = React__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
3633
|
+
AvatarPrimitive__namespace.Image,
|
|
3634
|
+
{
|
|
3635
|
+
ref,
|
|
3636
|
+
className: cn$1("aspect-square h-full w-full", className),
|
|
3637
|
+
...props
|
|
3638
|
+
}
|
|
3639
|
+
));
|
|
3640
|
+
CsAvatarImage.displayName = AvatarPrimitive__namespace.Image.displayName;
|
|
3641
|
+
const CsAvatarFallback = React__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
3642
|
+
AvatarPrimitive__namespace.Fallback,
|
|
3643
|
+
{
|
|
3644
|
+
ref,
|
|
3645
|
+
className: cn$1(
|
|
3646
|
+
"flex h-full w-full items-center justify-center",
|
|
3647
|
+
className
|
|
3648
|
+
),
|
|
3649
|
+
...props
|
|
3650
|
+
}
|
|
3651
|
+
));
|
|
3652
|
+
CsAvatarFallback.displayName = AvatarPrimitive__namespace.Fallback.displayName;
|
|
3617
3653
|
const csBadgeVariants = cva(
|
|
3618
3654
|
"inline-flex items-center justify-center rounded-(--badge-common-radius) border-(length:--badge-outline-border-width) px-(--badge-common-padding-x) py-(--badge-common-padding-y) gap-(--badge-common-gap) typo-productive-label-sm w-fit whitespace-nowrap shrink-0 [&>svg]:size-(--badge-common-icon-size) [&>svg]:pointer-events-none focus-visible:ring-0 transition-[color,box-shadow] overflow-hidden",
|
|
3619
3655
|
{
|
|
@@ -3650,8 +3686,8 @@ const csBoxVariants = cva(
|
|
|
3650
3686
|
{
|
|
3651
3687
|
variants: {
|
|
3652
3688
|
variant: {
|
|
3653
|
-
solid: "rounded-(--box-solid-radius) bg-(--box-solid-bg) gap-(--box-solid-gap) mobile:gap-(--box-solid-gap-mobile) py-(--box-solid-padding-y) mobile:py-(--box-solid-padding-y-mobile) px-(--box-solid-padding-x) mobile:px-(--box-solid-padding-x-mobile)",
|
|
3654
|
-
outline: "rounded-(--box-outline-radius) bg-(--box-outline-bg) border-(--box-outline-border) border-(length:--box-outline-border-width) gap-(--box-outline-gap) mobile:gap-(--box-outline-gap-mobile) py-(--box-outline-padding-y) mobile:py-(--box-outline-padding-y-mobile) px-(--box-outline-padding-x) mobile:px-(--box-outline-padding-x-mobile)"
|
|
3689
|
+
solid: "rounded-(--box-solid-radius) bg-(--box-solid-bg) gap-(--box-solid-gap) max-mobile:gap-(--box-solid-gap-mobile) py-(--box-solid-padding-y) max-mobile:py-(--box-solid-padding-y-mobile) px-(--box-solid-padding-x) max-mobile:px-(--box-solid-padding-x-mobile)",
|
|
3690
|
+
outline: "rounded-(--box-outline-radius) bg-(--box-outline-bg) border-(--box-outline-border) border-(length:--box-outline-border-width) gap-(--box-outline-gap) max-mobile:gap-(--box-outline-gap-mobile) py-(--box-outline-padding-y) max-mobile:py-(--box-outline-padding-y-mobile) px-(--box-outline-padding-x) max-mobile:px-(--box-outline-padding-x-mobile)"
|
|
3655
3691
|
}
|
|
3656
3692
|
},
|
|
3657
3693
|
defaultVariants: {
|
|
@@ -4613,7 +4649,7 @@ const match = {
|
|
|
4613
4649
|
defaultParseWidth: "any"
|
|
4614
4650
|
})
|
|
4615
4651
|
};
|
|
4616
|
-
const enUS
|
|
4652
|
+
const enUS = {
|
|
4617
4653
|
code: "en-US",
|
|
4618
4654
|
formatDistance,
|
|
4619
4655
|
formatLong,
|
|
@@ -5457,7 +5493,7 @@ const doubleQuoteRegExp = /''/g;
|
|
|
5457
5493
|
const unescapedLatinCharacterRegExp = /[a-zA-Z]/;
|
|
5458
5494
|
function format$2(date, formatStr, options) {
|
|
5459
5495
|
const defaultOptions2 = getDefaultOptions();
|
|
5460
|
-
const locale = options?.locale ?? defaultOptions2.locale ?? enUS
|
|
5496
|
+
const locale = options?.locale ?? defaultOptions2.locale ?? enUS;
|
|
5461
5497
|
const firstWeekContainsDate = options?.firstWeekContainsDate ?? options?.locale?.options?.firstWeekContainsDate ?? defaultOptions2.firstWeekContainsDate ?? defaultOptions2.locale?.options?.firstWeekContainsDate ?? 1;
|
|
5462
5498
|
const weekStartsOn = options?.weekStartsOn ?? options?.locale?.options?.weekStartsOn ?? defaultOptions2.weekStartsOn ?? defaultOptions2.locale?.options?.weekStartsOn ?? 0;
|
|
5463
5499
|
const originalDate = toDate(date, options?.in);
|
|
@@ -5595,63 +5631,6 @@ function endOfBroadcastWeek(date, dateLib) {
|
|
|
5595
5631
|
const endDate = dateLib.addDays(startDate, numberOfWeeks * 7 - 1);
|
|
5596
5632
|
return endDate;
|
|
5597
5633
|
}
|
|
5598
|
-
const enUS = {
|
|
5599
|
-
...enUS$1,
|
|
5600
|
-
labels: {
|
|
5601
|
-
labelDayButton: (date, modifiers, options, dateLib) => {
|
|
5602
|
-
let formatDate;
|
|
5603
|
-
if (dateLib && typeof dateLib.format === "function") {
|
|
5604
|
-
formatDate = dateLib.format.bind(dateLib);
|
|
5605
|
-
} else {
|
|
5606
|
-
formatDate = (d, pattern) => format$2(d, pattern, { locale: enUS$1, ...options });
|
|
5607
|
-
}
|
|
5608
|
-
let label = formatDate(date, "PPPP");
|
|
5609
|
-
if (modifiers.today)
|
|
5610
|
-
label = `Today, ${label}`;
|
|
5611
|
-
if (modifiers.selected)
|
|
5612
|
-
label = `${label}, selected`;
|
|
5613
|
-
return label;
|
|
5614
|
-
},
|
|
5615
|
-
labelMonthDropdown: "Choose the Month",
|
|
5616
|
-
labelNext: "Go to the Next Month",
|
|
5617
|
-
labelPrevious: "Go to the Previous Month",
|
|
5618
|
-
labelWeekNumber: (weekNumber) => `Week ${weekNumber}`,
|
|
5619
|
-
labelYearDropdown: "Choose the Year",
|
|
5620
|
-
labelGrid: (date, options, dateLib) => {
|
|
5621
|
-
let formatDate;
|
|
5622
|
-
if (dateLib && typeof dateLib.format === "function") {
|
|
5623
|
-
formatDate = dateLib.format.bind(dateLib);
|
|
5624
|
-
} else {
|
|
5625
|
-
formatDate = (d, pattern) => format$2(d, pattern, { locale: enUS$1, ...options });
|
|
5626
|
-
}
|
|
5627
|
-
return formatDate(date, "LLLL yyyy");
|
|
5628
|
-
},
|
|
5629
|
-
labelGridcell: (date, modifiers, options, dateLib) => {
|
|
5630
|
-
let formatDate;
|
|
5631
|
-
if (dateLib && typeof dateLib.format === "function") {
|
|
5632
|
-
formatDate = dateLib.format.bind(dateLib);
|
|
5633
|
-
} else {
|
|
5634
|
-
formatDate = (d, pattern) => format$2(d, pattern, { locale: enUS$1, ...options });
|
|
5635
|
-
}
|
|
5636
|
-
let label = formatDate(date, "PPPP");
|
|
5637
|
-
if (modifiers?.today) {
|
|
5638
|
-
label = `Today, ${label}`;
|
|
5639
|
-
}
|
|
5640
|
-
return label;
|
|
5641
|
-
},
|
|
5642
|
-
labelNav: "Navigation bar",
|
|
5643
|
-
labelWeekNumberHeader: "Week Number",
|
|
5644
|
-
labelWeekday: (date, options, dateLib) => {
|
|
5645
|
-
let formatDate;
|
|
5646
|
-
if (dateLib && typeof dateLib.format === "function") {
|
|
5647
|
-
formatDate = dateLib.format.bind(dateLib);
|
|
5648
|
-
} else {
|
|
5649
|
-
formatDate = (d, pattern) => format$2(d, pattern, { locale: enUS$1, ...options });
|
|
5650
|
-
}
|
|
5651
|
-
return formatDate(date, "cccc");
|
|
5652
|
-
}
|
|
5653
|
-
}
|
|
5654
|
-
};
|
|
5655
5634
|
class DateLib {
|
|
5656
5635
|
/**
|
|
5657
5636
|
* Creates an instance of `DateLib`.
|
|
@@ -6210,7 +6189,7 @@ function dateMatchModifiers(date, matchers, dateLib = defaultDateLib) {
|
|
|
6210
6189
|
return isSameDay2(date, matcher);
|
|
6211
6190
|
}
|
|
6212
6191
|
if (isDatesArray(matcher, dateLib)) {
|
|
6213
|
-
return matcher.
|
|
6192
|
+
return matcher.includes(date);
|
|
6214
6193
|
}
|
|
6215
6194
|
if (isDateRange(matcher)) {
|
|
6216
6195
|
return rangeIncludesDate(matcher, date, false, dateLib);
|
|
@@ -6414,6 +6393,60 @@ function getFormatters(customFormatters) {
|
|
|
6414
6393
|
...customFormatters
|
|
6415
6394
|
};
|
|
6416
6395
|
}
|
|
6396
|
+
function getMonthOptions(displayMonth, navStart, navEnd, formatters2, dateLib) {
|
|
6397
|
+
const { startOfMonth: startOfMonth2, startOfYear: startOfYear2, endOfYear: endOfYear2, eachMonthOfInterval: eachMonthOfInterval2, getMonth: getMonth2 } = dateLib;
|
|
6398
|
+
const months = eachMonthOfInterval2({
|
|
6399
|
+
start: startOfYear2(displayMonth),
|
|
6400
|
+
end: endOfYear2(displayMonth)
|
|
6401
|
+
});
|
|
6402
|
+
const options = months.map((month) => {
|
|
6403
|
+
const label = formatters2.formatMonthDropdown(month, dateLib);
|
|
6404
|
+
const value = getMonth2(month);
|
|
6405
|
+
const disabled = navStart && month < startOfMonth2(navStart) || navEnd && month > startOfMonth2(navEnd) || false;
|
|
6406
|
+
return { value, label, disabled };
|
|
6407
|
+
});
|
|
6408
|
+
return options;
|
|
6409
|
+
}
|
|
6410
|
+
function getStyleForModifiers(dayModifiers, styles = {}, modifiersStyles = {}) {
|
|
6411
|
+
let style = { ...styles?.[UI.Day] };
|
|
6412
|
+
Object.entries(dayModifiers).filter(([, active]) => active === true).forEach(([modifier]) => {
|
|
6413
|
+
style = {
|
|
6414
|
+
...style,
|
|
6415
|
+
...modifiersStyles?.[modifier]
|
|
6416
|
+
};
|
|
6417
|
+
});
|
|
6418
|
+
return style;
|
|
6419
|
+
}
|
|
6420
|
+
function getWeekdays(dateLib, ISOWeek, broadcastCalendar, today) {
|
|
6421
|
+
const referenceToday = today ?? dateLib.today();
|
|
6422
|
+
const start2 = broadcastCalendar ? dateLib.startOfBroadcastWeek(referenceToday, dateLib) : ISOWeek ? dateLib.startOfISOWeek(referenceToday) : dateLib.startOfWeek(referenceToday);
|
|
6423
|
+
const days = [];
|
|
6424
|
+
for (let i = 0; i < 7; i++) {
|
|
6425
|
+
const day = dateLib.addDays(start2, i);
|
|
6426
|
+
days.push(day);
|
|
6427
|
+
}
|
|
6428
|
+
return days;
|
|
6429
|
+
}
|
|
6430
|
+
function getYearOptions(navStart, navEnd, formatters2, dateLib, reverse2 = false) {
|
|
6431
|
+
if (!navStart)
|
|
6432
|
+
return void 0;
|
|
6433
|
+
if (!navEnd)
|
|
6434
|
+
return void 0;
|
|
6435
|
+
const { startOfYear: startOfYear2, endOfYear: endOfYear2, eachYearOfInterval: eachYearOfInterval2, getYear: getYear2 } = dateLib;
|
|
6436
|
+
const firstNavYear = startOfYear2(navStart);
|
|
6437
|
+
const lastNavYear = endOfYear2(navEnd);
|
|
6438
|
+
const years = eachYearOfInterval2({ start: firstNavYear, end: lastNavYear });
|
|
6439
|
+
if (reverse2)
|
|
6440
|
+
years.reverse();
|
|
6441
|
+
return years.map((year) => {
|
|
6442
|
+
const label = formatters2.formatYearDropdown(year, dateLib);
|
|
6443
|
+
return {
|
|
6444
|
+
value: getYear2(year),
|
|
6445
|
+
label,
|
|
6446
|
+
disabled: false
|
|
6447
|
+
};
|
|
6448
|
+
});
|
|
6449
|
+
}
|
|
6417
6450
|
function labelDayButton(date, modifiers, options, dateLib) {
|
|
6418
6451
|
let label = (dateLib ?? new DateLib(options)).format(date, "PPPP");
|
|
6419
6452
|
if (modifiers.today)
|
|
@@ -6441,9 +6474,8 @@ function labelMonthDropdown(_options) {
|
|
|
6441
6474
|
function labelNav() {
|
|
6442
6475
|
return "";
|
|
6443
6476
|
}
|
|
6444
|
-
|
|
6445
|
-
|
|
6446
|
-
return defaultLabel;
|
|
6477
|
+
function labelNext(_month) {
|
|
6478
|
+
return "Go to the Next Month";
|
|
6447
6479
|
}
|
|
6448
6480
|
function labelPrevious(_month) {
|
|
6449
6481
|
return "Go to the Previous Month";
|
|
@@ -6476,86 +6508,6 @@ const defaultLabels = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defin
|
|
|
6476
6508
|
labelWeekday,
|
|
6477
6509
|
labelYearDropdown
|
|
6478
6510
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
6479
|
-
const resolveLabel = (defaultLabel2, customLabel, localeLabel) => {
|
|
6480
|
-
if (customLabel)
|
|
6481
|
-
return customLabel;
|
|
6482
|
-
if (localeLabel) {
|
|
6483
|
-
return typeof localeLabel === "function" ? localeLabel : (..._args) => localeLabel;
|
|
6484
|
-
}
|
|
6485
|
-
return defaultLabel2;
|
|
6486
|
-
};
|
|
6487
|
-
function getLabels(customLabels, options) {
|
|
6488
|
-
const localeLabels = options.locale?.labels ?? {};
|
|
6489
|
-
return {
|
|
6490
|
-
...defaultLabels,
|
|
6491
|
-
...customLabels ?? {},
|
|
6492
|
-
labelDayButton: resolveLabel(labelDayButton, customLabels?.labelDayButton, localeLabels.labelDayButton),
|
|
6493
|
-
labelMonthDropdown: resolveLabel(labelMonthDropdown, customLabels?.labelMonthDropdown, localeLabels.labelMonthDropdown),
|
|
6494
|
-
labelNext: resolveLabel(labelNext, customLabels?.labelNext, localeLabels.labelNext),
|
|
6495
|
-
labelPrevious: resolveLabel(labelPrevious, customLabels?.labelPrevious, localeLabels.labelPrevious),
|
|
6496
|
-
labelWeekNumber: resolveLabel(labelWeekNumber, customLabels?.labelWeekNumber, localeLabels.labelWeekNumber),
|
|
6497
|
-
labelYearDropdown: resolveLabel(labelYearDropdown, customLabels?.labelYearDropdown, localeLabels.labelYearDropdown),
|
|
6498
|
-
labelGrid: resolveLabel(labelGrid, customLabels?.labelGrid, localeLabels.labelGrid),
|
|
6499
|
-
labelGridcell: resolveLabel(labelGridcell, customLabels?.labelGridcell, localeLabels.labelGridcell),
|
|
6500
|
-
labelNav: resolveLabel(labelNav, customLabels?.labelNav, localeLabels.labelNav),
|
|
6501
|
-
labelWeekNumberHeader: resolveLabel(labelWeekNumberHeader, customLabels?.labelWeekNumberHeader, localeLabels.labelWeekNumberHeader),
|
|
6502
|
-
labelWeekday: resolveLabel(labelWeekday, customLabels?.labelWeekday, localeLabels.labelWeekday)
|
|
6503
|
-
};
|
|
6504
|
-
}
|
|
6505
|
-
function getMonthOptions(displayMonth, navStart, navEnd, formatters2, dateLib) {
|
|
6506
|
-
const { startOfMonth: startOfMonth2, startOfYear: startOfYear2, endOfYear: endOfYear2, eachMonthOfInterval: eachMonthOfInterval2, getMonth: getMonth2 } = dateLib;
|
|
6507
|
-
const months = eachMonthOfInterval2({
|
|
6508
|
-
start: startOfYear2(displayMonth),
|
|
6509
|
-
end: endOfYear2(displayMonth)
|
|
6510
|
-
});
|
|
6511
|
-
const options = months.map((month) => {
|
|
6512
|
-
const label = formatters2.formatMonthDropdown(month, dateLib);
|
|
6513
|
-
const value = getMonth2(month);
|
|
6514
|
-
const disabled = navStart && month < startOfMonth2(navStart) || navEnd && month > startOfMonth2(navEnd) || false;
|
|
6515
|
-
return { value, label, disabled };
|
|
6516
|
-
});
|
|
6517
|
-
return options;
|
|
6518
|
-
}
|
|
6519
|
-
function getStyleForModifiers(dayModifiers, styles = {}, modifiersStyles = {}) {
|
|
6520
|
-
let style = { ...styles?.[UI.Day] };
|
|
6521
|
-
Object.entries(dayModifiers).filter(([, active]) => active === true).forEach(([modifier]) => {
|
|
6522
|
-
style = {
|
|
6523
|
-
...style,
|
|
6524
|
-
...modifiersStyles?.[modifier]
|
|
6525
|
-
};
|
|
6526
|
-
});
|
|
6527
|
-
return style;
|
|
6528
|
-
}
|
|
6529
|
-
function getWeekdays(dateLib, ISOWeek, broadcastCalendar, today) {
|
|
6530
|
-
const referenceToday = today ?? dateLib.today();
|
|
6531
|
-
const start2 = broadcastCalendar ? dateLib.startOfBroadcastWeek(referenceToday, dateLib) : ISOWeek ? dateLib.startOfISOWeek(referenceToday) : dateLib.startOfWeek(referenceToday);
|
|
6532
|
-
const days = [];
|
|
6533
|
-
for (let i = 0; i < 7; i++) {
|
|
6534
|
-
const day = dateLib.addDays(start2, i);
|
|
6535
|
-
days.push(day);
|
|
6536
|
-
}
|
|
6537
|
-
return days;
|
|
6538
|
-
}
|
|
6539
|
-
function getYearOptions(navStart, navEnd, formatters2, dateLib, reverse2 = false) {
|
|
6540
|
-
if (!navStart)
|
|
6541
|
-
return void 0;
|
|
6542
|
-
if (!navEnd)
|
|
6543
|
-
return void 0;
|
|
6544
|
-
const { startOfYear: startOfYear2, endOfYear: endOfYear2, eachYearOfInterval: eachYearOfInterval2, getYear: getYear2 } = dateLib;
|
|
6545
|
-
const firstNavYear = startOfYear2(navStart);
|
|
6546
|
-
const lastNavYear = endOfYear2(navEnd);
|
|
6547
|
-
const years = eachYearOfInterval2({ start: firstNavYear, end: lastNavYear });
|
|
6548
|
-
if (reverse2)
|
|
6549
|
-
years.reverse();
|
|
6550
|
-
return years.map((year) => {
|
|
6551
|
-
const label = formatters2.formatYearDropdown(year, dateLib);
|
|
6552
|
-
return {
|
|
6553
|
-
value: getYear2(year),
|
|
6554
|
-
label,
|
|
6555
|
-
disabled: false
|
|
6556
|
-
};
|
|
6557
|
-
});
|
|
6558
|
-
}
|
|
6559
6511
|
const asHtmlElement = (element) => {
|
|
6560
6512
|
if (element instanceof HTMLElement)
|
|
6561
6513
|
return element;
|
|
@@ -7388,7 +7340,7 @@ function DayPicker(initialProps) {
|
|
|
7388
7340
|
dateLib: dateLib2,
|
|
7389
7341
|
components: getComponents(props.components),
|
|
7390
7342
|
formatters: getFormatters(props.formatters),
|
|
7391
|
-
labels:
|
|
7343
|
+
labels: { ...defaultLabels, ...props.labels },
|
|
7392
7344
|
locale: locale2,
|
|
7393
7345
|
classNames: { ...getDefaultClassNames(), ...props.classNames }
|
|
7394
7346
|
};
|
|
@@ -7809,7 +7761,7 @@ function CsCard({ className, ...props }) {
|
|
|
7809
7761
|
{
|
|
7810
7762
|
"data-slot": "card",
|
|
7811
7763
|
className: cn$1(
|
|
7812
|
-
"bg-(--card-common-bg) flex flex-col rounded-(--card-common-radius) border-(length:--card-common-border-width) border-(--card-common-border) gap-(--card-common-gap) mobile:gap-(--card-common-gap-mobile) py-(--card-common-padding-y) mobile:py-(--card-common-padding-y-mobile) px-(--card-common-padding-x) mobile:px-(--card-common-padding-x-mobile) hover:bg-(--card-common-bg-hover) hover:border-(--card-common-border-hover)",
|
|
7764
|
+
"bg-(--card-common-bg) flex flex-col rounded-(--card-common-radius) border-(length:--card-common-border-width) border-(--card-common-border) gap-(--card-common-gap) max-mobile:gap-(--card-common-gap-mobile) py-(--card-common-padding-y) max-mobile:py-(--card-common-padding-y-mobile) px-(--card-common-padding-x) max-mobile:px-(--card-common-padding-x-mobile) hover:bg-(--card-common-bg-hover) hover:border-(--card-common-border-hover)",
|
|
7813
7765
|
className
|
|
7814
7766
|
),
|
|
7815
7767
|
...props
|
|
@@ -81963,16 +81915,16 @@ var hasRequiredId;
|
|
|
81963
81915
|
function requireId() {
|
|
81964
81916
|
if (hasRequiredId) return id;
|
|
81965
81917
|
hasRequiredId = 1;
|
|
81966
|
-
(function(
|
|
81967
|
-
Object.defineProperty(
|
|
81918
|
+
(function(exports2) {
|
|
81919
|
+
Object.defineProperty(exports2, "__esModule", {
|
|
81968
81920
|
value: true
|
|
81969
81921
|
});
|
|
81970
|
-
|
|
81922
|
+
exports2["default"] = void 0;
|
|
81971
81923
|
var id2 = 1;
|
|
81972
81924
|
var _default = function _default2() {
|
|
81973
81925
|
return "".concat(id2++);
|
|
81974
81926
|
};
|
|
81975
|
-
|
|
81927
|
+
exports2["default"] = _default;
|
|
81976
81928
|
})(id);
|
|
81977
81929
|
return id;
|
|
81978
81930
|
}
|
|
@@ -81983,11 +81935,11 @@ var hasRequiredDebounce;
|
|
|
81983
81935
|
function requireDebounce() {
|
|
81984
81936
|
if (hasRequiredDebounce) return debounce;
|
|
81985
81937
|
hasRequiredDebounce = 1;
|
|
81986
|
-
(function(
|
|
81987
|
-
Object.defineProperty(
|
|
81938
|
+
(function(exports2) {
|
|
81939
|
+
Object.defineProperty(exports2, "__esModule", {
|
|
81988
81940
|
value: true
|
|
81989
81941
|
});
|
|
81990
|
-
|
|
81942
|
+
exports2["default"] = void 0;
|
|
81991
81943
|
var _default = function _default2(fn) {
|
|
81992
81944
|
var delay = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 60;
|
|
81993
81945
|
var timer = null;
|
|
@@ -82002,7 +81954,7 @@ function requireDebounce() {
|
|
|
82002
81954
|
}, delay);
|
|
82003
81955
|
};
|
|
82004
81956
|
};
|
|
82005
|
-
|
|
81957
|
+
exports2["default"] = _default;
|
|
82006
81958
|
})(debounce);
|
|
82007
81959
|
return debounce;
|
|
82008
81960
|
}
|
|
@@ -82554,21 +82506,24 @@ function merge(target, source) {
|
|
|
82554
82506
|
}
|
|
82555
82507
|
const sourceValue = source[key];
|
|
82556
82508
|
const targetValue = target[key];
|
|
82557
|
-
if (
|
|
82558
|
-
|
|
82559
|
-
|
|
82560
|
-
|
|
82509
|
+
if (Array.isArray(sourceValue)) {
|
|
82510
|
+
if (Array.isArray(targetValue)) {
|
|
82511
|
+
target[key] = merge(targetValue, sourceValue);
|
|
82512
|
+
} else {
|
|
82513
|
+
target[key] = merge([], sourceValue);
|
|
82514
|
+
}
|
|
82561
82515
|
} else if (isPlainObject(sourceValue)) {
|
|
82562
|
-
|
|
82516
|
+
if (isPlainObject(targetValue)) {
|
|
82517
|
+
target[key] = merge(targetValue, sourceValue);
|
|
82518
|
+
} else {
|
|
82519
|
+
target[key] = merge({}, sourceValue);
|
|
82520
|
+
}
|
|
82563
82521
|
} else if (targetValue === void 0 || sourceValue !== void 0) {
|
|
82564
82522
|
target[key] = sourceValue;
|
|
82565
82523
|
}
|
|
82566
82524
|
}
|
|
82567
82525
|
return target;
|
|
82568
82526
|
}
|
|
82569
|
-
function isMergeableValue(value) {
|
|
82570
|
-
return isPlainObject(value) || Array.isArray(value);
|
|
82571
|
-
}
|
|
82572
82527
|
function mergeWith(target, source, merge2) {
|
|
82573
82528
|
const sourceKeys = Object.keys(source);
|
|
82574
82529
|
for (let i = 0; i < sourceKeys.length; i++) {
|
|
@@ -82583,7 +82538,7 @@ function mergeWith(target, source, merge2) {
|
|
|
82583
82538
|
target[key] = merged;
|
|
82584
82539
|
} else if (Array.isArray(sourceValue)) {
|
|
82585
82540
|
if (Array.isArray(targetValue)) {
|
|
82586
|
-
target[key] = mergeWith(targetValue, sourceValue, merge2);
|
|
82541
|
+
target[key] = mergeWith(targetValue ?? [], sourceValue, merge2);
|
|
82587
82542
|
} else {
|
|
82588
82543
|
target[key] = mergeWith([], sourceValue, merge2);
|
|
82589
82544
|
}
|
|
@@ -82740,7 +82695,7 @@ const getFillerColor = () => {
|
|
|
82740
82695
|
const fillerOpacity = getCssVariable("--opacity-state-muted");
|
|
82741
82696
|
return addOpacityToColor(fillerColor, convertOpacity(fillerOpacity));
|
|
82742
82697
|
};
|
|
82743
|
-
const tooltipBaseStyles = "typo-body-
|
|
82698
|
+
const tooltipBaseStyles = "typo-body-sm z-50 w-fit origin-(--radix-tooltip-content-transform-origin) rounded-(--tooltip-radius) px-(--tooltip-padding-x) py-(--tooltip-padding-y) text-balance text-(--tooltip-font) empty:hidden";
|
|
82744
82699
|
const tooltipVariants = {
|
|
82745
82700
|
solid: "bg-(--tooltip-solid-bg) boxshadow-sm",
|
|
82746
82701
|
outline: "bg-(--tooltip-outline-bg) border-(--tooltip-outline-border) border-(length:--tooltip-outline-border-width)"
|
|
@@ -82798,6 +82753,15 @@ function CsTooltipContent({
|
|
|
82798
82753
|
}
|
|
82799
82754
|
) });
|
|
82800
82755
|
}
|
|
82756
|
+
function CsSimpleTooltip({ children, tooltip, contentProps, variant, ...rootProps }) {
|
|
82757
|
+
if (!tooltip) {
|
|
82758
|
+
return children;
|
|
82759
|
+
}
|
|
82760
|
+
return /* @__PURE__ */ jsxRuntime.jsx(CsTooltipProvider, { children: /* @__PURE__ */ jsxRuntime.jsxs(CsTooltip, { ...rootProps, children: [
|
|
82761
|
+
/* @__PURE__ */ jsxRuntime.jsx(CsTooltipTrigger, { asChild: true, children }),
|
|
82762
|
+
/* @__PURE__ */ jsxRuntime.jsx(CsTooltipContent, { variant, ...contentProps, children: tooltip })
|
|
82763
|
+
] }) });
|
|
82764
|
+
}
|
|
82801
82765
|
const CsChartBaseOptions = {
|
|
82802
82766
|
tooltip: {
|
|
82803
82767
|
className: csChartTooltipStyle,
|
|
@@ -83218,7 +83182,7 @@ function CsDialogHeader({ className, ...props }) {
|
|
|
83218
83182
|
"div",
|
|
83219
83183
|
{
|
|
83220
83184
|
"data-slot": "dialog-header",
|
|
83221
|
-
className: cn$1("flex flex-col gap-(--dialog-container-header-gap) mobile:text-center text-left", className),
|
|
83185
|
+
className: cn$1("flex flex-col gap-(--dialog-container-header-gap) max-mobile:text-center text-left", className),
|
|
83222
83186
|
...props
|
|
83223
83187
|
}
|
|
83224
83188
|
);
|
|
@@ -83229,7 +83193,7 @@ function CsDialogFooter({ className, ...props }) {
|
|
|
83229
83193
|
{
|
|
83230
83194
|
"data-slot": "dialog-footer",
|
|
83231
83195
|
className: cn$1(
|
|
83232
|
-
"flex flex-col-reverse gap-(--dialog-container-footer-gap) mobile:flex-row mobile:justify-end",
|
|
83196
|
+
"flex flex-col-reverse gap-(--dialog-container-footer-gap) max-mobile:flex-row max-mobile:justify-end",
|
|
83233
83197
|
className
|
|
83234
83198
|
),
|
|
83235
83199
|
...props
|
|
@@ -89131,13 +89095,13 @@ function CsNavigationMenuItem({
|
|
|
89131
89095
|
);
|
|
89132
89096
|
}
|
|
89133
89097
|
const csNavigationMenuTriggerStyle = cva(
|
|
89134
|
-
"typo-body-sm group inline-flex w-max items-center justify-center px-(--navigation-button-common-padding-x) py-(--navigation-button-common-padding-y) gap-(--navigation-button-common-gap) outline-none transition-[color,background-color] disabled:pointer-events-none disabled:opacity-(--opacity-state-disabled) [&_svg]:size-(--navigation-button-common-icon-size)",
|
|
89098
|
+
"typo-body-sm group inline-flex w-max items-center justify-center px-(--navigation-button-common-padding-x) py-(--navigation-button-common-padding-y) gap-(--navigation-button-common-gap) outline-none transition-[color,background-color] disabled:pointer-events-none disabled:opacity-(--opacity-state-disabled) [&_svg]:size-(--navigation-button-common-icon-size) [&_svg]:transition-colors",
|
|
89135
89099
|
{
|
|
89136
89100
|
variants: {
|
|
89137
89101
|
variant: {
|
|
89138
|
-
"solid-ghost": "rounded-(--navigation-button-common-radius) text-(--navigation-button-solid-ghost-default-font) hover:bg-(--navigation-button-solid-ghost-active-bg) hover:text-(--navigation-button-solid-ghost-active-font) data-[state=open]:bg-(--navigation-button-solid-ghost-active-bg) data-[state=open]:text-(--navigation-button-solid-ghost-active-font) disabled:text-(--navigation-button-solid-ghost-disabled-font) [&_svg]:text-(--navigation-button-solid-ghost-default-icon) [&_svg]:
|
|
89139
|
-
"bottom-border": "text-(--navigation-button-bottom-border-default-font) hover:text-(--navigation-button-bottom-border-hover-font) data-[state=open]:text-(--navigation-button-bottom-border-active-font) disabled:text-(--navigation-button-bottom-border-disabled-font) [&_svg]:text-(--navigation-button-bottom-border-default-icon) [&_svg]:
|
|
89140
|
-
"gradient": "rounded-(--navigation-button-common-radius) text-(--navigation-button-gradient-default-font) hover:gradient-primary-vertical data-[state=open]:text-(--navigation-button-gradient-active-font) disabled:text-(--navigation-button-gradient-disabled-font) [&_svg]:text-(--navigation-button-gradient-default-icon) [&_svg]:data-[state=open]:text-(--navigation-button-gradient-active-icon) [&_svg]:
|
|
89102
|
+
"solid-ghost": "rounded-(--navigation-button-common-radius) text-(--navigation-button-solid-ghost-default-font) hover:bg-(--navigation-button-solid-ghost-active-bg) hover:text-(--navigation-button-solid-ghost-active-font) data-[state=open]:bg-(--navigation-button-solid-ghost-active-bg) data-[state=open]:text-(--navigation-button-solid-ghost-active-font) disabled:text-(--navigation-button-solid-ghost-disabled-font) [&_svg]:text-(--navigation-button-solid-ghost-default-icon) hover:[&_svg]:text-(--navigation-button-solid-ghost-active-icon) data-[state=open]:[&_svg]:text-(--navigation-button-solid-ghost-active-icon) disabled:[&_svg]:text-(--navigation-button-solid-ghost-disabled-icon)",
|
|
89103
|
+
"bottom-border": "text-(--navigation-button-bottom-border-default-font) hover:text-(--navigation-button-bottom-border-hover-font) data-[state=open]:text-(--navigation-button-bottom-border-active-font) disabled:text-(--navigation-button-bottom-border-disabled-font) [&_svg]:text-(--navigation-button-bottom-border-default-icon) hover:[&_svg]:text-(--navigation-button-bottom-border-hover-icon) data-[state=open]:[&_svg]:text-(--navigation-button-bottom-border-active-icon) disabled:[&_svg]:text-(--navigation-button-bottom-border-disabled-icon) border-b-transparent border-b-(length:--navigation-button-bottom-border-active-border-width) data-[state=open]:border-b-(--navigation-button-bottom-border-active-border)",
|
|
89104
|
+
"gradient": "rounded-(--navigation-button-common-radius) text-(--navigation-button-gradient-default-font) hover:gradient-primary-vertical data-[state=open]:text-(--navigation-button-gradient-active-font) disabled:text-(--navigation-button-gradient-disabled-font) [&_svg]:text-(--navigation-button-gradient-default-icon) hover:[&_svg]:text-(--navigation-button-gradient-active-icon) data-[state=open]:[&_svg]:text-(--navigation-button-gradient-active-icon) disabled:[&_svg]:text-(--navigation-button-gradient-disabled-icon)"
|
|
89141
89105
|
}
|
|
89142
89106
|
},
|
|
89143
89107
|
defaultVariants: {
|
|
@@ -89174,6 +89138,7 @@ function CsNavigationMenuTrigger({
|
|
|
89174
89138
|
}
|
|
89175
89139
|
);
|
|
89176
89140
|
}
|
|
89141
|
+
const NavigationMenuInContentContext = React__namespace.createContext(false);
|
|
89177
89142
|
function CsNavigationMenuContent({
|
|
89178
89143
|
className,
|
|
89179
89144
|
...props
|
|
@@ -89183,9 +89148,9 @@ function CsNavigationMenuContent({
|
|
|
89183
89148
|
{
|
|
89184
89149
|
"data-slot": "navigation-menu-content",
|
|
89185
89150
|
className: cn$1(
|
|
89186
|
-
"data-[motion^=from-]:animate-in data-[motion^=to-]:animate-out data-[motion^=from-]:fade-in data-[motion^=to-]:fade-out data-[motion=from-end]:slide-in-from-right-52 data-[motion=from-start]:slide-in-from-left-52 data-[motion=to-end]:slide-out-to-right-52 data-[motion=to-start]:slide-out-to-left-52 top-0 left-0
|
|
89187
|
-
"group-data-[viewport=false]/navigation-menu:data-[state=open]:animate-in group-data-[viewport=false]/navigation-menu:data-[state=closed]:animate-out group-data-[viewport=false]/navigation-menu:data-[state=closed]:zoom-out-95 group-data-[viewport=false]/navigation-menu:data-[state=open]:zoom-in-95 group-data-[viewport=false]/navigation-menu:data-[state=open]:fade-in-0 group-data-[viewport=false]/navigation-menu:data-[state=closed]:fade-out-0 group-data-[viewport=false]/navigation-menu:top-full group-data-[viewport=false]/navigation-menu:mt-1 group-data-[viewport=false]/navigation-menu:overflow-hidden group-data-[viewport=false]/navigation-menu:duration-200 **:data-[slot=navigation-menu-link]:outline-none",
|
|
89188
|
-
"boxshadow-lg",
|
|
89151
|
+
"data-[motion^=from-]:animate-in data-[motion^=to-]:animate-out data-[motion^=from-]:fade-in data-[motion^=to-]:fade-out data-[motion=from-end]:slide-in-from-right-52 data-[motion=from-start]:slide-in-from-left-52 data-[motion=to-end]:slide-out-to-right-52 data-[motion=to-start]:slide-out-to-left-52 top-0 left-0 bg-(--navigation-item-container-bg) text-(--font-color-primary-default) rounded-(--navigation-item-container-radius) border-(--navigation-item-container-border) border-(length:--navigation-item-container-border-width) px-(--navigation-item-container-padding-x) py-(--navigation-item-container-padding-y) gap-(--navigation-item-container-gap) absolute w-auto max-mobile:static max-mobile:!w-full",
|
|
89152
|
+
"group-data-[viewport=false]/navigation-menu:z-[100] group-data-[viewport=false]/navigation-menu:data-[state=open]:animate-in group-data-[viewport=false]/navigation-menu:data-[state=closed]:animate-out group-data-[viewport=false]/navigation-menu:data-[state=closed]:zoom-out-95 group-data-[viewport=false]/navigation-menu:data-[state=open]:zoom-in-95 group-data-[viewport=false]/navigation-menu:data-[state=open]:fade-in-0 group-data-[viewport=false]/navigation-menu:data-[state=closed]:fade-out-0 group-data-[viewport=false]/navigation-menu:top-full group-data-[viewport=false]/navigation-menu:mt-1 group-data-[viewport=false]/navigation-menu:overflow-hidden group-data-[viewport=false]/navigation-menu:duration-200 **:data-[slot=navigation-menu-link]:outline-none",
|
|
89153
|
+
"boxshadow-lg flex flex-col",
|
|
89189
89154
|
className
|
|
89190
89155
|
),
|
|
89191
89156
|
...props
|
|
@@ -89200,14 +89165,14 @@ function CsNavigationMenuViewport({
|
|
|
89200
89165
|
"div",
|
|
89201
89166
|
{
|
|
89202
89167
|
className: cn$1(
|
|
89203
|
-
"absolute top-full left-0 isolate z-
|
|
89168
|
+
"absolute top-full left-0 isolate z-[100] flex justify-center max-mobile:w-full!"
|
|
89204
89169
|
),
|
|
89205
89170
|
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
89206
89171
|
NavigationMenuPrimitive__namespace.Viewport,
|
|
89207
89172
|
{
|
|
89208
89173
|
"data-slot": "navigation-menu-viewport",
|
|
89209
89174
|
className: cn$1(
|
|
89210
|
-
"origin-top-center data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-90 relative mt-1 h-[var(--radix-navigation-menu-viewport-height)] w-
|
|
89175
|
+
"origin-top-center data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-90 relative mt-1 h-[var(--radix-navigation-menu-viewport-height)] w-[var(--radix-navigation-menu-viewport-width)] max-mobile:w-full! overflow-hidden rounded-(--navigation-item-container-radius)",
|
|
89211
89176
|
"boxshadow-lg",
|
|
89212
89177
|
className
|
|
89213
89178
|
),
|
|
@@ -89218,12 +89183,12 @@ function CsNavigationMenuViewport({
|
|
|
89218
89183
|
);
|
|
89219
89184
|
}
|
|
89220
89185
|
const csNavigationMenuLinkVariants = cva(
|
|
89221
|
-
"typo-body-sm flex transition-all outline-none whitespace-nowrap",
|
|
89186
|
+
"typo-body-sm flex transition-all outline-none whitespace-nowrap [&_svg]:transition-colors",
|
|
89222
89187
|
{
|
|
89223
89188
|
variants: {
|
|
89224
89189
|
variant: {
|
|
89225
|
-
item: "items-center gap-(--navigation-item-common-gap) rounded-(--navigation-item-common-radius) px-(--navigation-item-common-padding-x) py-(--navigation-item-common-padding-y) data-[active=true]:bg-(--navigation-item-hover-bg) data-[active=true]:text-(--navigation-item-hover-font) hover:bg-(--navigation-item-hover-bg) hover:text-(--navigation-item-hover-font) focus:bg-(--navigation-item-hover-bg) focus:text-(--navigation-item-hover-font) text-(--navigation-item-default-font) [&_svg:not([class*='text-'])]:text-(--navigation-item-default-icon) [&_svg:not([class*='size-'])]:size-(--navigation-item-common-icon-size)",
|
|
89226
|
-
"item-content": "flex-col gap-(--navigation-item-content-common-gap) rounded-(--navigation-item-content-common-radius) px-(--navigation-item-content-common-padding-x) py-(--navigation-item-content-common-padding-y) data-[active=true]:bg-(--navigation-item-content-hover-bg) data-[active=true]:text-(--navigation-item-content-hover-title) hover:bg-(--navigation-item-content-hover-bg) hover:text-(--navigation-item-content-hover-title) focus:bg-(--navigation-item-content-hover-bg) focus:text-(--navigation-item-content-hover-title) text-(--navigation-item-content-default-title) [&_svg:not([class*='text-'])]:text-(--navigation-item-content-default-icon) [&_svg:not([class*='size-'])]:size-(--navigation-item-content-common-icon-size)
|
|
89190
|
+
item: "items-center gap-(--navigation-item-common-gap) rounded-(--navigation-item-common-radius) px-(--navigation-item-common-padding-x) py-(--navigation-item-common-padding-y) data-[active=true]:bg-(--navigation-item-hover-bg) data-[active=true]:text-(--navigation-item-hover-font) hover:bg-(--navigation-item-hover-bg) hover:text-(--navigation-item-hover-font) focus:bg-(--navigation-item-hover-bg) focus:text-(--navigation-item-hover-font) text-(--navigation-item-default-font) [&_svg:not([class*='text-'])]:text-(--navigation-item-default-icon) [&_svg:not([class*='size-'])]:size-(--navigation-item-common-icon-size) hover:[&_svg:not([class*='text-'])]:text-(--navigation-item-hover-icon) data-[active=true]:[&_svg:not([class*='text-'])]:text-(--navigation-item-hover-icon)",
|
|
89191
|
+
"item-content": "flex-col gap-(--navigation-item-content-common-gap) rounded-(--navigation-item-content-common-radius) px-(--navigation-item-content-common-padding-x) py-(--navigation-item-content-common-padding-y) data-[active=true]:bg-(--navigation-item-content-hover-bg) data-[active=true]:text-(--navigation-item-content-hover-title) hover:bg-(--navigation-item-content-hover-bg) hover:text-(--navigation-item-content-hover-title) focus:bg-(--navigation-item-content-hover-bg) focus:text-(--navigation-item-content-hover-title) text-(--navigation-item-content-default-title) [&_svg:not([class*='text-'])]:text-(--navigation-item-content-default-icon) [&_svg:not([class*='size-'])]:size-(--navigation-item-content-common-icon-size) data-[active=true]:[&_svg]:text-(--navigation-item-content-hover-icon) hover:[&_svg]:text-(--navigation-item-content-hover-icon)"
|
|
89227
89192
|
}
|
|
89228
89193
|
},
|
|
89229
89194
|
defaultVariants: {
|
|
@@ -89236,12 +89201,14 @@ function CsNavigationMenuLink({
|
|
|
89236
89201
|
variant = "item",
|
|
89237
89202
|
...props
|
|
89238
89203
|
}) {
|
|
89204
|
+
const contextVariant = React__namespace.useContext(NavigationMenuVariantContext);
|
|
89205
|
+
const isInsideContent = React__namespace.useContext(NavigationMenuInContentContext);
|
|
89239
89206
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
89240
89207
|
NavigationMenuPrimitive__namespace.Link,
|
|
89241
89208
|
{
|
|
89242
89209
|
"data-slot": "navigation-menu-link",
|
|
89243
89210
|
className: cn$1(
|
|
89244
|
-
csNavigationMenuLinkVariants({ variant }),
|
|
89211
|
+
isInsideContent ? csNavigationMenuLinkVariants({ variant }) : csNavigationMenuTriggerStyle({ variant: contextVariant }),
|
|
89245
89212
|
className
|
|
89246
89213
|
),
|
|
89247
89214
|
...props
|
|
@@ -89307,7 +89274,7 @@ function CsPaginationLink({
|
|
|
89307
89274
|
className: cn$1(
|
|
89308
89275
|
"typo-body-sm transition-colors cursor-pointer flex items-center justify-center h-(--pagination-common-item-size) min-w-(--pagination-common-item-size) rounded-(--pagination-common-radius) text-(--pagination-link-default-font) [&_svg]:size-(--pagination-common-icon-size)",
|
|
89309
89276
|
"hover:bg-(--pagination-link-hover-bg) hover:text-(--pagination-link-hover-font) aria-disabled:cursor-not-allowed aria-disabled:opacity-(--opacity-state-disabled)",
|
|
89310
|
-
isActive && "bg-(--pagination-item-active-bg) text-(--pagination-item-active-font) border-(length:--pagination-item-active-border-width) border-(--pagination-item-active-border) hover:bg-(--pagination-item-active-hover-bg) hover:text-(--pagination-item-active-hover-font) hover:border-(length:--pagination-item-active-hover-border-width) hover:border-(--pagination-item-active-hover-border)",
|
|
89277
|
+
isActive && "typo-body-sm-bold bg-(--pagination-item-active-bg) text-(--pagination-item-active-font) border-(length:--pagination-item-active-border-width) border-(--pagination-item-active-border) hover:bg-(--pagination-item-active-hover-bg) hover:text-(--pagination-item-active-hover-font) hover:border-(length:--pagination-item-active-hover-border-width) hover:border-(--pagination-item-active-hover-border)",
|
|
89311
89278
|
className
|
|
89312
89279
|
),
|
|
89313
89280
|
...props
|
|
@@ -89324,14 +89291,14 @@ function CsPaginationPrevious({
|
|
|
89324
89291
|
{
|
|
89325
89292
|
"aria-label": "Go to previous page",
|
|
89326
89293
|
className: cn$1(
|
|
89327
|
-
"gap-(--pagination-common-gap) mobile:px-(--pagination-common-padding-sm) pr-(--pagination-common-padding-md) pl-(--pagination-common-padding-sm) text-(--pagination-link-default-font) [&_svg]:text-(--pagination-link-default-icon)",
|
|
89328
|
-
"hover:bg-(--pagination-link-hover-bg) hover:text-(--pagination-link-hover-font) [&_svg]:
|
|
89294
|
+
"gap-(--pagination-common-gap) max-mobile:px-(--pagination-common-padding-sm) pr-(--pagination-common-padding-md) pl-(--pagination-common-padding-sm) text-(--pagination-link-default-font) [&_svg]:text-(--pagination-link-default-icon) [&_svg]:transition-colors",
|
|
89295
|
+
"hover:bg-(--pagination-link-hover-bg) hover:text-(--pagination-link-hover-font) hover:[&_svg]:text-(--pagination-link-hover-icon)",
|
|
89329
89296
|
className
|
|
89330
89297
|
),
|
|
89331
89298
|
...props,
|
|
89332
89299
|
children: children ?? /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
89333
89300
|
/* @__PURE__ */ jsxRuntime.jsx(ChevronLeft, {}),
|
|
89334
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "mobile:hidden block", children: "Previous" })
|
|
89301
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "max-mobile:hidden block", children: "Previous" })
|
|
89335
89302
|
] })
|
|
89336
89303
|
}
|
|
89337
89304
|
);
|
|
@@ -89346,13 +89313,13 @@ function CsPaginationNext({
|
|
|
89346
89313
|
{
|
|
89347
89314
|
"aria-label": "Go to next page",
|
|
89348
89315
|
className: cn$1(
|
|
89349
|
-
"gap-(--pagination-common-gap) mobile:px-(--pagination-common-padding-sm) pl-(--pagination-common-padding-md) pr-(--pagination-common-padding-sm) text-(--pagination-link-default-font) [&_svg]:text-(--pagination-link-default-icon)",
|
|
89350
|
-
"hover:bg-(--pagination-link-hover-bg) hover:text-(--pagination-link-hover-font) [&_svg]:
|
|
89316
|
+
"gap-(--pagination-common-gap) max-mobile:px-(--pagination-common-padding-sm) pl-(--pagination-common-padding-md) pr-(--pagination-common-padding-sm) text-(--pagination-link-default-font) [&_svg]:text-(--pagination-link-default-icon) [&_svg]:transition-colors",
|
|
89317
|
+
"hover:bg-(--pagination-link-hover-bg) hover:text-(--pagination-link-hover-font) hover:[&_svg]:text-(--pagination-link-hover-icon)",
|
|
89351
89318
|
className
|
|
89352
89319
|
),
|
|
89353
89320
|
...props,
|
|
89354
89321
|
children: children ?? /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
89355
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "mobile:hidden block", children: "Next" }),
|
|
89322
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "max-mobile:hidden block", children: "Next" }),
|
|
89356
89323
|
/* @__PURE__ */ jsxRuntime.jsx(ChevronRight, {})
|
|
89357
89324
|
] })
|
|
89358
89325
|
}
|
|
@@ -89443,11 +89410,11 @@ function CsSelectValue({
|
|
|
89443
89410
|
return /* @__PURE__ */ jsxRuntime.jsx(SelectPrimitive__namespace.Value, { "data-slot": "select-value", ...props });
|
|
89444
89411
|
}
|
|
89445
89412
|
const csSelectTriggerVariants = cva(
|
|
89446
|
-
"focus-visible:ring-0 flex w-fit items-center justify-between whitespace-nowrap transition-[color,box-shadow] outline-none disabled:cursor-not-allowed *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center rounded-(--select-
|
|
89413
|
+
"focus-visible:ring-0 flex w-fit items-center justify-between whitespace-nowrap transition-[color,box-shadow] outline-none disabled:cursor-not-allowed *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center rounded-(--select-base-common-radius) border-(length:--select-base-common-border-width) [&_svg:not([class*='size-'])]:size-(--select-base-common-icon-size) bg-(--select-base-default-bg) border-(--select-base-default-border) text-(--select-base-default-font) data-[placeholder]:text-(--font-color-primary-muted) [&_svg]:text-(--select-base-default-icon) hover:bg-(--select-base-hover-bg) hover:border-(--select-base-hover-border) hover:text-(--select-base-hover-font) hover:[&_svg]:text-(--select-base-hover-icon) disabled:bg-(--select-base-disabled-bg) disabled:border-(--select-base-disabled-border) disabled:text-(--select-base-disabled-font) disabled:[&_svg]:text-(--select-base-disabled-icon)",
|
|
89447
89414
|
{
|
|
89448
89415
|
variants: {
|
|
89449
89416
|
size: {
|
|
89450
|
-
default: "typo-body-sm h-(--select-
|
|
89417
|
+
default: "typo-body-sm h-(--select-base-common-height) px-(--select-base-common-padding-x) gap-(--select-base-common-gap) *:data-[slot=select-value]:gap-(--select-base-common-gap)",
|
|
89451
89418
|
sm: "typo-body-xs h-(--select-small-common-height) px-(--select-small-common-padding-x) gap-(--select-small-common-gap) *:data-[slot=select-value]:gap-(--select-small-common-gap)"
|
|
89452
89419
|
}
|
|
89453
89420
|
},
|
|
@@ -89468,7 +89435,7 @@ const CsSelectTrigger = React__namespace.forwardRef(({ className, children, size
|
|
|
89468
89435
|
...props,
|
|
89469
89436
|
children: [
|
|
89470
89437
|
children,
|
|
89471
|
-
/* @__PURE__ */ jsxRuntime.jsx(SelectPrimitive__namespace.Icon, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsx(ChevronDown, { className: "
|
|
89438
|
+
/* @__PURE__ */ jsxRuntime.jsx(SelectPrimitive__namespace.Icon, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsx(ChevronDown, { className: "text-(--select-base-default-icon) size-(--select-base-common-icon-size)" }) })
|
|
89472
89439
|
]
|
|
89473
89440
|
}
|
|
89474
89441
|
));
|
|
@@ -89544,7 +89511,7 @@ function CsSelectItem({
|
|
|
89544
89511
|
children: [
|
|
89545
89512
|
/* @__PURE__ */ jsxRuntime.jsx(SelectPrimitive__namespace.ItemText, { children }),
|
|
89546
89513
|
/* @__PURE__ */ jsxRuntime.jsx(SelectPrimitive__namespace.ItemIndicator, { className: "ml-auto", children: /* @__PURE__ */ jsxRuntime.jsx(Check, {}) }),
|
|
89547
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "ml-auto size-(--select-
|
|
89514
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "ml-auto size-(--select-base-common-icon-size) group-data-[state=checked]:hidden" })
|
|
89548
89515
|
]
|
|
89549
89516
|
}
|
|
89550
89517
|
);
|
|
@@ -89573,7 +89540,7 @@ function CsSelectScrollUpButton({
|
|
|
89573
89540
|
"data-slot": "select-scroll-up-button",
|
|
89574
89541
|
className: cn$1(
|
|
89575
89542
|
csDropdownMenuItemCommonClassName,
|
|
89576
|
-
"[&_svg:not([class*='size-'])]:size-(--select-
|
|
89543
|
+
"[&_svg:not([class*='size-'])]:size-(--select-base-common-icon-size) [&_svg]:text-(--select-base-default-icon)",
|
|
89577
89544
|
className
|
|
89578
89545
|
),
|
|
89579
89546
|
...props,
|
|
@@ -89592,7 +89559,7 @@ function CsSelectScrollDownButton({
|
|
|
89592
89559
|
"data-slot": "select-scroll-down-button",
|
|
89593
89560
|
className: cn$1(
|
|
89594
89561
|
csDropdownMenuItemCommonClassName,
|
|
89595
|
-
"[&_svg:not([class*='size-'])]:size-(--select-
|
|
89562
|
+
"[&_svg:not([class*='size-'])]:size-(--select-base-common-icon-size) [&_svg]:text-(--select-base-default-icon)",
|
|
89596
89563
|
className
|
|
89597
89564
|
),
|
|
89598
89565
|
...props,
|
|
@@ -94131,7 +94098,7 @@ function CsTableHead({ className, ...props }) {
|
|
|
94131
94098
|
{
|
|
94132
94099
|
"data-slot": "table-head",
|
|
94133
94100
|
className: cn$1(
|
|
94134
|
-
"typo-body-
|
|
94101
|
+
"typo-body-xs-bold text-(--table-item-header-font) px-(--table-item-common-padding-x) py-(--table-item-common-padding-y) text-left align-middle whitespace-nowrap border-b-(--table-item-header-border) border-b-(length:--table-item-header-boder-width) [&_svg]:size-(--table-item-common-icon-size) [&_svg]:text-(--table-item-header-icon)",
|
|
94135
94102
|
"[&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",
|
|
94136
94103
|
className
|
|
94137
94104
|
),
|
|
@@ -94145,7 +94112,7 @@ function CsTableCell({ className, ...props }) {
|
|
|
94145
94112
|
{
|
|
94146
94113
|
"data-slot": "table-cell",
|
|
94147
94114
|
className: cn$1(
|
|
94148
|
-
"typo-
|
|
94115
|
+
"typo-metric-sm bg-(--table-item-cell-bg) text-(--table-item-cell-font) px-(--table-item-common-padding-x) py-(--table-item-common-padding-y) align-middle whitespace-nowrap [&_svg]:size-(--table-item-common-icon-size) [&_svg]:text-(--table-item-cell-icon)",
|
|
94149
94116
|
"[&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",
|
|
94150
94117
|
"last:bg-(--table-item-cell-last-bg)",
|
|
94151
94118
|
className
|
|
@@ -94354,7 +94321,7 @@ function CsTabsTrigger({
|
|
|
94354
94321
|
{
|
|
94355
94322
|
"data-slot": "tabs-trigger",
|
|
94356
94323
|
className: cn$1(
|
|
94357
|
-
"inline-flex items-center justify-center whitespace-nowrap rounded-(--tabs-item-common-radius) px-(--tabs-item-common-padding-x) py-(--tabs-item-common-padding-y) gap-(--tabs-item-common-gap) transition-all focus-visible:outline-none focus-visible:ring-0 disabled:pointer-events-none [&_svg]:size-(--tabs-item-common-icon-size) typo-body-sm",
|
|
94324
|
+
"inline-flex items-center justify-center whitespace-nowrap rounded-(--tabs-item-common-radius) px-(--tabs-item-common-padding-x) py-(--tabs-item-common-padding-y) gap-(--tabs-item-common-gap) transition-all focus-visible:outline-none focus-visible:ring-0 disabled:pointer-events-none [&_svg]:size-(--tabs-item-common-icon-size) typo-body-sm-bold",
|
|
94358
94325
|
// Solid
|
|
94359
94326
|
"group-data-[variant=solid]:data-[state=active]:bg-(--tabs-item-solid-on-bg) group-data-[variant=solid]:data-[state=active]:text-(--tabs-item-solid-on-font) group-data-[variant=solid]:data-[state=active]:[&_svg]:text-(--tabs-item-solid-on-icon)",
|
|
94360
94327
|
"group-data-[variant=solid]:bg-(--tabs-item-solid-off-bg) group-data-[variant=solid]:text-(--tabs-item-solid-off-font) group-data-[variant=solid]:[&_svg]:text-(--tabs-item-solid-off-icon)",
|
|
@@ -94569,6 +94536,9 @@ exports.CsAlertDialogPortal = CsAlertDialogPortal;
|
|
|
94569
94536
|
exports.CsAlertDialogTitle = CsAlertDialogTitle;
|
|
94570
94537
|
exports.CsAlertDialogTrigger = CsAlertDialogTrigger;
|
|
94571
94538
|
exports.CsAreaChart = CsAreaChart;
|
|
94539
|
+
exports.CsAvatar = CsAvatar;
|
|
94540
|
+
exports.CsAvatarFallback = CsAvatarFallback;
|
|
94541
|
+
exports.CsAvatarImage = CsAvatarImage;
|
|
94572
94542
|
exports.CsBadge = CsBadge;
|
|
94573
94543
|
exports.CsBarChart = CsBarChart;
|
|
94574
94544
|
exports.CsBox = CsBox;
|
|
@@ -94686,6 +94656,7 @@ exports.CsSelectTrigger = CsSelectTrigger;
|
|
|
94686
94656
|
exports.CsSelectValue = CsSelectValue;
|
|
94687
94657
|
exports.CsSeparator = CsSeparator;
|
|
94688
94658
|
exports.CsSimpleSelect = CsSimpleSelect;
|
|
94659
|
+
exports.CsSimpleTooltip = CsSimpleTooltip;
|
|
94689
94660
|
exports.CsSkeleton = CsSkeleton;
|
|
94690
94661
|
exports.CsSonner = CsSonner;
|
|
94691
94662
|
exports.CsSpinner = CsSpinner;
|
|
@@ -94744,6 +94715,7 @@ exports.csInputGroupVariants = csInputGroupVariants;
|
|
|
94744
94715
|
exports.csNavigationMenuLinkVariants = csNavigationMenuLinkVariants;
|
|
94745
94716
|
exports.csNavigationMenuTriggerStyle = csNavigationMenuTriggerStyle;
|
|
94746
94717
|
exports.csProgressVariants = csProgressVariants;
|
|
94718
|
+
exports.csSelectTriggerVariants = csSelectTriggerVariants;
|
|
94747
94719
|
exports.csTabsListVariants = csTabsListVariants;
|
|
94748
94720
|
exports.csToggleVariants = csToggleVariants;
|
|
94749
94721
|
exports.csTooltipContentVariants = csTooltipContentVariants;
|