@crossangle-org/cs-ui 0.1.0 → 0.1.2
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 +280 -96
- 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.es.js
CHANGED
|
@@ -5,6 +5,7 @@ import { jsx, jsxs, Fragment as Fragment$1 } from "react/jsx-runtime";
|
|
|
5
5
|
import * as AccordionPrimitive from "@radix-ui/react-accordion";
|
|
6
6
|
import * as AlertDialogPrimitive from "@radix-ui/react-alert-dialog";
|
|
7
7
|
import { Slot } from "@radix-ui/react-slot";
|
|
8
|
+
import * as AvatarPrimitive from "@radix-ui/react-avatar";
|
|
8
9
|
import * as TooltipPrimitive from "@radix-ui/react-tooltip";
|
|
9
10
|
import * as CheckboxPrimitive from "@radix-ui/react-checkbox";
|
|
10
11
|
import * as ScrollAreaPrimitive from "@radix-ui/react-scroll-area";
|
|
@@ -3322,7 +3323,7 @@ function CsAccordionTrigger({
|
|
|
3322
3323
|
{
|
|
3323
3324
|
"data-slot": "accordion-trigger",
|
|
3324
3325
|
className: cn$1(
|
|
3325
|
-
"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",
|
|
3326
|
+
"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",
|
|
3326
3327
|
"[&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg]:transition-transform [&_svg]:duration-200",
|
|
3327
3328
|
// default
|
|
3328
3329
|
"group-data-[variant=default]/accordion:py-(--accordion-default-padding-y) group-data-[variant=default]/accordion:gap-(--accordion-default-gap)",
|
|
@@ -3396,9 +3397,10 @@ const csButtonVariants = cva(
|
|
|
3396
3397
|
"disabled:text-(--button-ghost-disabled-font) disabled:[&_svg]:text-(--button-ghost-disabled-icon)"
|
|
3397
3398
|
].join(" "),
|
|
3398
3399
|
link: [
|
|
3399
|
-
"text-(--button-link-default-font) [&_svg]:text-(--button-link-default-icon)",
|
|
3400
|
-
"hover:
|
|
3400
|
+
"p-0! text-(--button-link-default-font) [&_svg]:text-(--button-link-default-icon)",
|
|
3401
|
+
"hover:underline hover:text-(--button-link-hover-font) hover:[&_svg]:text-(--button-link-hover-icon)",
|
|
3401
3402
|
"disabled:text-(--button-link-disabled-font) disabled:[&_svg]:text-(--button-link-disabled-icon)"
|
|
3403
|
+
// 'hover:bg-(--button-link-hover-bg) '
|
|
3402
3404
|
].join(" "),
|
|
3403
3405
|
gradient: [
|
|
3404
3406
|
"gradient-primary-vertical text-(--button-gradient-default-font) [&_svg]:text-(--button-gradient-default-icon)",
|
|
@@ -3508,7 +3510,7 @@ function CsAlertDialogHeader({
|
|
|
3508
3510
|
"div",
|
|
3509
3511
|
{
|
|
3510
3512
|
"data-slot": "alert-dialog-header",
|
|
3511
|
-
className: cn$1("flex flex-col gap-(--dialog-container-header-gap) mobile:text-center text-left", className),
|
|
3513
|
+
className: cn$1("flex flex-col gap-(--dialog-container-header-gap) max-mobile:text-center text-left", className),
|
|
3512
3514
|
...props
|
|
3513
3515
|
}
|
|
3514
3516
|
);
|
|
@@ -3522,7 +3524,7 @@ function CsAlertDialogFooter({
|
|
|
3522
3524
|
{
|
|
3523
3525
|
"data-slot": "alert-dialog-footer",
|
|
3524
3526
|
className: cn$1(
|
|
3525
|
-
"flex flex-col-reverse gap-(--dialog-container-footer-gap) mobile:flex-row mobile:justify-end",
|
|
3527
|
+
"flex flex-col-reverse gap-(--dialog-container-footer-gap) max-mobile:flex-row max-mobile:justify-end",
|
|
3526
3528
|
className
|
|
3527
3529
|
),
|
|
3528
3530
|
...props
|
|
@@ -3579,6 +3581,39 @@ function CsAlertDialogCancel({
|
|
|
3579
3581
|
}
|
|
3580
3582
|
);
|
|
3581
3583
|
}
|
|
3584
|
+
const CsAvatar = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
3585
|
+
AvatarPrimitive.Root,
|
|
3586
|
+
{
|
|
3587
|
+
ref,
|
|
3588
|
+
className: cn$1(
|
|
3589
|
+
"relative flex h-10 w-10 shrink-0 overflow-hidden",
|
|
3590
|
+
className
|
|
3591
|
+
),
|
|
3592
|
+
...props
|
|
3593
|
+
}
|
|
3594
|
+
));
|
|
3595
|
+
CsAvatar.displayName = AvatarPrimitive.Root.displayName;
|
|
3596
|
+
const CsAvatarImage = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
3597
|
+
AvatarPrimitive.Image,
|
|
3598
|
+
{
|
|
3599
|
+
ref,
|
|
3600
|
+
className: cn$1("aspect-square h-full w-full", className),
|
|
3601
|
+
...props
|
|
3602
|
+
}
|
|
3603
|
+
));
|
|
3604
|
+
CsAvatarImage.displayName = AvatarPrimitive.Image.displayName;
|
|
3605
|
+
const CsAvatarFallback = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
3606
|
+
AvatarPrimitive.Fallback,
|
|
3607
|
+
{
|
|
3608
|
+
ref,
|
|
3609
|
+
className: cn$1(
|
|
3610
|
+
"flex h-full w-full items-center justify-center",
|
|
3611
|
+
className
|
|
3612
|
+
),
|
|
3613
|
+
...props
|
|
3614
|
+
}
|
|
3615
|
+
));
|
|
3616
|
+
CsAvatarFallback.displayName = AvatarPrimitive.Fallback.displayName;
|
|
3582
3617
|
const csBadgeVariants = cva(
|
|
3583
3618
|
"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",
|
|
3584
3619
|
{
|
|
@@ -3615,8 +3650,8 @@ const csBoxVariants = cva(
|
|
|
3615
3650
|
{
|
|
3616
3651
|
variants: {
|
|
3617
3652
|
variant: {
|
|
3618
|
-
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)",
|
|
3619
|
-
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)"
|
|
3653
|
+
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)",
|
|
3654
|
+
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)"
|
|
3620
3655
|
}
|
|
3621
3656
|
},
|
|
3622
3657
|
defaultVariants: {
|
|
@@ -4578,7 +4613,7 @@ const match = {
|
|
|
4578
4613
|
defaultParseWidth: "any"
|
|
4579
4614
|
})
|
|
4580
4615
|
};
|
|
4581
|
-
const enUS
|
|
4616
|
+
const enUS = {
|
|
4582
4617
|
code: "en-US",
|
|
4583
4618
|
formatDistance,
|
|
4584
4619
|
formatLong,
|
|
@@ -5422,7 +5457,7 @@ const doubleQuoteRegExp = /''/g;
|
|
|
5422
5457
|
const unescapedLatinCharacterRegExp = /[a-zA-Z]/;
|
|
5423
5458
|
function format$2(date, formatStr, options) {
|
|
5424
5459
|
const defaultOptions2 = getDefaultOptions();
|
|
5425
|
-
const locale = options?.locale ?? defaultOptions2.locale ?? enUS
|
|
5460
|
+
const locale = options?.locale ?? defaultOptions2.locale ?? enUS;
|
|
5426
5461
|
const firstWeekContainsDate = options?.firstWeekContainsDate ?? options?.locale?.options?.firstWeekContainsDate ?? defaultOptions2.firstWeekContainsDate ?? defaultOptions2.locale?.options?.firstWeekContainsDate ?? 1;
|
|
5427
5462
|
const weekStartsOn = options?.weekStartsOn ?? options?.locale?.options?.weekStartsOn ?? defaultOptions2.weekStartsOn ?? defaultOptions2.locale?.options?.weekStartsOn ?? 0;
|
|
5428
5463
|
const originalDate = toDate(date, options?.in);
|
|
@@ -5560,63 +5595,6 @@ function endOfBroadcastWeek(date, dateLib) {
|
|
|
5560
5595
|
const endDate = dateLib.addDays(startDate, numberOfWeeks * 7 - 1);
|
|
5561
5596
|
return endDate;
|
|
5562
5597
|
}
|
|
5563
|
-
const enUS = {
|
|
5564
|
-
...enUS$1,
|
|
5565
|
-
labels: {
|
|
5566
|
-
labelDayButton: (date, modifiers, options, dateLib) => {
|
|
5567
|
-
let formatDate;
|
|
5568
|
-
if (dateLib && typeof dateLib.format === "function") {
|
|
5569
|
-
formatDate = dateLib.format.bind(dateLib);
|
|
5570
|
-
} else {
|
|
5571
|
-
formatDate = (d, pattern) => format$2(d, pattern, { locale: enUS$1, ...options });
|
|
5572
|
-
}
|
|
5573
|
-
let label = formatDate(date, "PPPP");
|
|
5574
|
-
if (modifiers.today)
|
|
5575
|
-
label = `Today, ${label}`;
|
|
5576
|
-
if (modifiers.selected)
|
|
5577
|
-
label = `${label}, selected`;
|
|
5578
|
-
return label;
|
|
5579
|
-
},
|
|
5580
|
-
labelMonthDropdown: "Choose the Month",
|
|
5581
|
-
labelNext: "Go to the Next Month",
|
|
5582
|
-
labelPrevious: "Go to the Previous Month",
|
|
5583
|
-
labelWeekNumber: (weekNumber) => `Week ${weekNumber}`,
|
|
5584
|
-
labelYearDropdown: "Choose the Year",
|
|
5585
|
-
labelGrid: (date, options, dateLib) => {
|
|
5586
|
-
let formatDate;
|
|
5587
|
-
if (dateLib && typeof dateLib.format === "function") {
|
|
5588
|
-
formatDate = dateLib.format.bind(dateLib);
|
|
5589
|
-
} else {
|
|
5590
|
-
formatDate = (d, pattern) => format$2(d, pattern, { locale: enUS$1, ...options });
|
|
5591
|
-
}
|
|
5592
|
-
return formatDate(date, "LLLL yyyy");
|
|
5593
|
-
},
|
|
5594
|
-
labelGridcell: (date, modifiers, options, dateLib) => {
|
|
5595
|
-
let formatDate;
|
|
5596
|
-
if (dateLib && typeof dateLib.format === "function") {
|
|
5597
|
-
formatDate = dateLib.format.bind(dateLib);
|
|
5598
|
-
} else {
|
|
5599
|
-
formatDate = (d, pattern) => format$2(d, pattern, { locale: enUS$1, ...options });
|
|
5600
|
-
}
|
|
5601
|
-
let label = formatDate(date, "PPPP");
|
|
5602
|
-
if (modifiers?.today) {
|
|
5603
|
-
label = `Today, ${label}`;
|
|
5604
|
-
}
|
|
5605
|
-
return label;
|
|
5606
|
-
},
|
|
5607
|
-
labelNav: "Navigation bar",
|
|
5608
|
-
labelWeekNumberHeader: "Week Number",
|
|
5609
|
-
labelWeekday: (date, options, dateLib) => {
|
|
5610
|
-
let formatDate;
|
|
5611
|
-
if (dateLib && typeof dateLib.format === "function") {
|
|
5612
|
-
formatDate = dateLib.format.bind(dateLib);
|
|
5613
|
-
} else {
|
|
5614
|
-
formatDate = (d, pattern) => format$2(d, pattern, { locale: enUS$1, ...options });
|
|
5615
|
-
}
|
|
5616
|
-
return formatDate(date, "cccc");
|
|
5617
|
-
}
|
|
5618
|
-
}
|
|
5619
|
-
};
|
|
5620
5598
|
class DateLib {
|
|
5621
5599
|
/**
|
|
5622
5600
|
* Creates an instance of `DateLib`.
|
|
@@ -6175,7 +6153,7 @@ function dateMatchModifiers(date, matchers, dateLib = defaultDateLib) {
|
|
|
6175
6153
|
return isSameDay2(date, matcher);
|
|
6176
6154
|
}
|
|
6177
6155
|
if (isDatesArray(matcher, dateLib)) {
|
|
6178
|
-
return matcher.
|
|
6156
|
+
return matcher.includes(date);
|
|
6179
6157
|
}
|
|
6180
6158
|
if (isDateRange(matcher)) {
|
|
6181
6159
|
return rangeIncludesDate(matcher, date, false, dateLib);
|
|
@@ -6379,6 +6357,60 @@ function getFormatters(customFormatters) {
|
|
|
6379
6357
|
...customFormatters
|
|
6380
6358
|
};
|
|
6381
6359
|
}
|
|
6360
|
+
function getMonthOptions(displayMonth, navStart, navEnd, formatters2, dateLib) {
|
|
6361
|
+
const { startOfMonth: startOfMonth2, startOfYear: startOfYear2, endOfYear: endOfYear2, eachMonthOfInterval: eachMonthOfInterval2, getMonth: getMonth2 } = dateLib;
|
|
6362
|
+
const months = eachMonthOfInterval2({
|
|
6363
|
+
start: startOfYear2(displayMonth),
|
|
6364
|
+
end: endOfYear2(displayMonth)
|
|
6365
|
+
});
|
|
6366
|
+
const options = months.map((month) => {
|
|
6367
|
+
const label = formatters2.formatMonthDropdown(month, dateLib);
|
|
6368
|
+
const value = getMonth2(month);
|
|
6369
|
+
const disabled = navStart && month < startOfMonth2(navStart) || navEnd && month > startOfMonth2(navEnd) || false;
|
|
6370
|
+
return { value, label, disabled };
|
|
6371
|
+
});
|
|
6372
|
+
return options;
|
|
6373
|
+
}
|
|
6374
|
+
function getStyleForModifiers(dayModifiers, styles = {}, modifiersStyles = {}) {
|
|
6375
|
+
let style = { ...styles?.[UI.Day] };
|
|
6376
|
+
Object.entries(dayModifiers).filter(([, active]) => active === true).forEach(([modifier]) => {
|
|
6377
|
+
style = {
|
|
6378
|
+
...style,
|
|
6379
|
+
...modifiersStyles?.[modifier]
|
|
6380
|
+
};
|
|
6381
|
+
});
|
|
6382
|
+
return style;
|
|
6383
|
+
}
|
|
6384
|
+
function getWeekdays(dateLib, ISOWeek, broadcastCalendar, today) {
|
|
6385
|
+
const referenceToday = today ?? dateLib.today();
|
|
6386
|
+
const start2 = broadcastCalendar ? dateLib.startOfBroadcastWeek(referenceToday, dateLib) : ISOWeek ? dateLib.startOfISOWeek(referenceToday) : dateLib.startOfWeek(referenceToday);
|
|
6387
|
+
const days = [];
|
|
6388
|
+
for (let i = 0; i < 7; i++) {
|
|
6389
|
+
const day = dateLib.addDays(start2, i);
|
|
6390
|
+
days.push(day);
|
|
6391
|
+
}
|
|
6392
|
+
return days;
|
|
6393
|
+
}
|
|
6394
|
+
function getYearOptions(navStart, navEnd, formatters2, dateLib, reverse2 = false) {
|
|
6395
|
+
if (!navStart)
|
|
6396
|
+
return void 0;
|
|
6397
|
+
if (!navEnd)
|
|
6398
|
+
return void 0;
|
|
6399
|
+
const { startOfYear: startOfYear2, endOfYear: endOfYear2, eachYearOfInterval: eachYearOfInterval2, getYear: getYear2 } = dateLib;
|
|
6400
|
+
const firstNavYear = startOfYear2(navStart);
|
|
6401
|
+
const lastNavYear = endOfYear2(navEnd);
|
|
6402
|
+
const years = eachYearOfInterval2({ start: firstNavYear, end: lastNavYear });
|
|
6403
|
+
if (reverse2)
|
|
6404
|
+
years.reverse();
|
|
6405
|
+
return years.map((year) => {
|
|
6406
|
+
const label = formatters2.formatYearDropdown(year, dateLib);
|
|
6407
|
+
return {
|
|
6408
|
+
value: getYear2(year),
|
|
6409
|
+
label,
|
|
6410
|
+
disabled: false
|
|
6411
|
+
};
|
|
6412
|
+
});
|
|
6413
|
+
}
|
|
6382
6414
|
function labelDayButton(date, modifiers, options, dateLib) {
|
|
6383
6415
|
let label = (dateLib ?? new DateLib(options)).format(date, "PPPP");
|
|
6384
6416
|
if (modifiers.today)
|
|
@@ -6406,9 +6438,8 @@ function labelMonthDropdown(_options) {
|
|
|
6406
6438
|
function labelNav() {
|
|
6407
6439
|
return "";
|
|
6408
6440
|
}
|
|
6409
|
-
|
|
6410
|
-
|
|
6411
|
-
return defaultLabel;
|
|
6441
|
+
function labelNext(_month) {
|
|
6442
|
+
return "Go to the Next Month";
|
|
6412
6443
|
}
|
|
6413
6444
|
function labelPrevious(_month) {
|
|
6414
6445
|
return "Go to the Previous Month";
|
|
@@ -6441,86 +6472,6 @@ const defaultLabels = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defin
|
|
|
6441
6472
|
labelWeekday,
|
|
6442
6473
|
labelYearDropdown
|
|
6443
6474
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
6444
|
-
const resolveLabel = (defaultLabel2, customLabel, localeLabel) => {
|
|
6445
|
-
if (customLabel)
|
|
6446
|
-
return customLabel;
|
|
6447
|
-
if (localeLabel) {
|
|
6448
|
-
return typeof localeLabel === "function" ? localeLabel : (..._args) => localeLabel;
|
|
6449
|
-
}
|
|
6450
|
-
return defaultLabel2;
|
|
6451
|
-
};
|
|
6452
|
-
function getLabels(customLabels, options) {
|
|
6453
|
-
const localeLabels = options.locale?.labels ?? {};
|
|
6454
|
-
return {
|
|
6455
|
-
...defaultLabels,
|
|
6456
|
-
...customLabels ?? {},
|
|
6457
|
-
labelDayButton: resolveLabel(labelDayButton, customLabels?.labelDayButton, localeLabels.labelDayButton),
|
|
6458
|
-
labelMonthDropdown: resolveLabel(labelMonthDropdown, customLabels?.labelMonthDropdown, localeLabels.labelMonthDropdown),
|
|
6459
|
-
labelNext: resolveLabel(labelNext, customLabels?.labelNext, localeLabels.labelNext),
|
|
6460
|
-
labelPrevious: resolveLabel(labelPrevious, customLabels?.labelPrevious, localeLabels.labelPrevious),
|
|
6461
|
-
labelWeekNumber: resolveLabel(labelWeekNumber, customLabels?.labelWeekNumber, localeLabels.labelWeekNumber),
|
|
6462
|
-
labelYearDropdown: resolveLabel(labelYearDropdown, customLabels?.labelYearDropdown, localeLabels.labelYearDropdown),
|
|
6463
|
-
labelGrid: resolveLabel(labelGrid, customLabels?.labelGrid, localeLabels.labelGrid),
|
|
6464
|
-
labelGridcell: resolveLabel(labelGridcell, customLabels?.labelGridcell, localeLabels.labelGridcell),
|
|
6465
|
-
labelNav: resolveLabel(labelNav, customLabels?.labelNav, localeLabels.labelNav),
|
|
6466
|
-
labelWeekNumberHeader: resolveLabel(labelWeekNumberHeader, customLabels?.labelWeekNumberHeader, localeLabels.labelWeekNumberHeader),
|
|
6467
|
-
labelWeekday: resolveLabel(labelWeekday, customLabels?.labelWeekday, localeLabels.labelWeekday)
|
|
6468
|
-
};
|
|
6469
|
-
}
|
|
6470
|
-
function getMonthOptions(displayMonth, navStart, navEnd, formatters2, dateLib) {
|
|
6471
|
-
const { startOfMonth: startOfMonth2, startOfYear: startOfYear2, endOfYear: endOfYear2, eachMonthOfInterval: eachMonthOfInterval2, getMonth: getMonth2 } = dateLib;
|
|
6472
|
-
const months = eachMonthOfInterval2({
|
|
6473
|
-
start: startOfYear2(displayMonth),
|
|
6474
|
-
end: endOfYear2(displayMonth)
|
|
6475
|
-
});
|
|
6476
|
-
const options = months.map((month) => {
|
|
6477
|
-
const label = formatters2.formatMonthDropdown(month, dateLib);
|
|
6478
|
-
const value = getMonth2(month);
|
|
6479
|
-
const disabled = navStart && month < startOfMonth2(navStart) || navEnd && month > startOfMonth2(navEnd) || false;
|
|
6480
|
-
return { value, label, disabled };
|
|
6481
|
-
});
|
|
6482
|
-
return options;
|
|
6483
|
-
}
|
|
6484
|
-
function getStyleForModifiers(dayModifiers, styles = {}, modifiersStyles = {}) {
|
|
6485
|
-
let style = { ...styles?.[UI.Day] };
|
|
6486
|
-
Object.entries(dayModifiers).filter(([, active]) => active === true).forEach(([modifier]) => {
|
|
6487
|
-
style = {
|
|
6488
|
-
...style,
|
|
6489
|
-
...modifiersStyles?.[modifier]
|
|
6490
|
-
};
|
|
6491
|
-
});
|
|
6492
|
-
return style;
|
|
6493
|
-
}
|
|
6494
|
-
function getWeekdays(dateLib, ISOWeek, broadcastCalendar, today) {
|
|
6495
|
-
const referenceToday = today ?? dateLib.today();
|
|
6496
|
-
const start2 = broadcastCalendar ? dateLib.startOfBroadcastWeek(referenceToday, dateLib) : ISOWeek ? dateLib.startOfISOWeek(referenceToday) : dateLib.startOfWeek(referenceToday);
|
|
6497
|
-
const days = [];
|
|
6498
|
-
for (let i = 0; i < 7; i++) {
|
|
6499
|
-
const day = dateLib.addDays(start2, i);
|
|
6500
|
-
days.push(day);
|
|
6501
|
-
}
|
|
6502
|
-
return days;
|
|
6503
|
-
}
|
|
6504
|
-
function getYearOptions(navStart, navEnd, formatters2, dateLib, reverse2 = false) {
|
|
6505
|
-
if (!navStart)
|
|
6506
|
-
return void 0;
|
|
6507
|
-
if (!navEnd)
|
|
6508
|
-
return void 0;
|
|
6509
|
-
const { startOfYear: startOfYear2, endOfYear: endOfYear2, eachYearOfInterval: eachYearOfInterval2, getYear: getYear2 } = dateLib;
|
|
6510
|
-
const firstNavYear = startOfYear2(navStart);
|
|
6511
|
-
const lastNavYear = endOfYear2(navEnd);
|
|
6512
|
-
const years = eachYearOfInterval2({ start: firstNavYear, end: lastNavYear });
|
|
6513
|
-
if (reverse2)
|
|
6514
|
-
years.reverse();
|
|
6515
|
-
return years.map((year) => {
|
|
6516
|
-
const label = formatters2.formatYearDropdown(year, dateLib);
|
|
6517
|
-
return {
|
|
6518
|
-
value: getYear2(year),
|
|
6519
|
-
label,
|
|
6520
|
-
disabled: false
|
|
6521
|
-
};
|
|
6522
|
-
});
|
|
6523
|
-
}
|
|
6524
6475
|
const asHtmlElement = (element) => {
|
|
6525
6476
|
if (element instanceof HTMLElement)
|
|
6526
6477
|
return element;
|
|
@@ -7353,7 +7304,7 @@ function DayPicker(initialProps) {
|
|
|
7353
7304
|
dateLib: dateLib2,
|
|
7354
7305
|
components: getComponents(props.components),
|
|
7355
7306
|
formatters: getFormatters(props.formatters),
|
|
7356
|
-
labels:
|
|
7307
|
+
labels: { ...defaultLabels, ...props.labels },
|
|
7357
7308
|
locale: locale2,
|
|
7358
7309
|
classNames: { ...getDefaultClassNames(), ...props.classNames }
|
|
7359
7310
|
};
|
|
@@ -7774,7 +7725,7 @@ function CsCard({ className, ...props }) {
|
|
|
7774
7725
|
{
|
|
7775
7726
|
"data-slot": "card",
|
|
7776
7727
|
className: cn$1(
|
|
7777
|
-
"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)",
|
|
7728
|
+
"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)",
|
|
7778
7729
|
className
|
|
7779
7730
|
),
|
|
7780
7731
|
...props
|
|
@@ -81928,16 +81879,16 @@ var hasRequiredId;
|
|
|
81928
81879
|
function requireId() {
|
|
81929
81880
|
if (hasRequiredId) return id;
|
|
81930
81881
|
hasRequiredId = 1;
|
|
81931
|
-
(function(exports
|
|
81932
|
-
Object.defineProperty(exports
|
|
81882
|
+
(function(exports) {
|
|
81883
|
+
Object.defineProperty(exports, "__esModule", {
|
|
81933
81884
|
value: true
|
|
81934
81885
|
});
|
|
81935
|
-
exports
|
|
81886
|
+
exports["default"] = void 0;
|
|
81936
81887
|
var id2 = 1;
|
|
81937
81888
|
var _default = function _default2() {
|
|
81938
81889
|
return "".concat(id2++);
|
|
81939
81890
|
};
|
|
81940
|
-
exports
|
|
81891
|
+
exports["default"] = _default;
|
|
81941
81892
|
})(id);
|
|
81942
81893
|
return id;
|
|
81943
81894
|
}
|
|
@@ -81948,11 +81899,11 @@ var hasRequiredDebounce;
|
|
|
81948
81899
|
function requireDebounce() {
|
|
81949
81900
|
if (hasRequiredDebounce) return debounce;
|
|
81950
81901
|
hasRequiredDebounce = 1;
|
|
81951
|
-
(function(exports
|
|
81952
|
-
Object.defineProperty(exports
|
|
81902
|
+
(function(exports) {
|
|
81903
|
+
Object.defineProperty(exports, "__esModule", {
|
|
81953
81904
|
value: true
|
|
81954
81905
|
});
|
|
81955
|
-
exports
|
|
81906
|
+
exports["default"] = void 0;
|
|
81956
81907
|
var _default = function _default2(fn) {
|
|
81957
81908
|
var delay = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 60;
|
|
81958
81909
|
var timer = null;
|
|
@@ -81967,7 +81918,7 @@ function requireDebounce() {
|
|
|
81967
81918
|
}, delay);
|
|
81968
81919
|
};
|
|
81969
81920
|
};
|
|
81970
|
-
exports
|
|
81921
|
+
exports["default"] = _default;
|
|
81971
81922
|
})(debounce);
|
|
81972
81923
|
return debounce;
|
|
81973
81924
|
}
|
|
@@ -82519,21 +82470,24 @@ function merge(target, source) {
|
|
|
82519
82470
|
}
|
|
82520
82471
|
const sourceValue = source[key];
|
|
82521
82472
|
const targetValue = target[key];
|
|
82522
|
-
if (
|
|
82523
|
-
|
|
82524
|
-
|
|
82525
|
-
|
|
82473
|
+
if (Array.isArray(sourceValue)) {
|
|
82474
|
+
if (Array.isArray(targetValue)) {
|
|
82475
|
+
target[key] = merge(targetValue, sourceValue);
|
|
82476
|
+
} else {
|
|
82477
|
+
target[key] = merge([], sourceValue);
|
|
82478
|
+
}
|
|
82526
82479
|
} else if (isPlainObject(sourceValue)) {
|
|
82527
|
-
|
|
82480
|
+
if (isPlainObject(targetValue)) {
|
|
82481
|
+
target[key] = merge(targetValue, sourceValue);
|
|
82482
|
+
} else {
|
|
82483
|
+
target[key] = merge({}, sourceValue);
|
|
82484
|
+
}
|
|
82528
82485
|
} else if (targetValue === void 0 || sourceValue !== void 0) {
|
|
82529
82486
|
target[key] = sourceValue;
|
|
82530
82487
|
}
|
|
82531
82488
|
}
|
|
82532
82489
|
return target;
|
|
82533
82490
|
}
|
|
82534
|
-
function isMergeableValue(value) {
|
|
82535
|
-
return isPlainObject(value) || Array.isArray(value);
|
|
82536
|
-
}
|
|
82537
82491
|
function mergeWith(target, source, merge2) {
|
|
82538
82492
|
const sourceKeys = Object.keys(source);
|
|
82539
82493
|
for (let i = 0; i < sourceKeys.length; i++) {
|
|
@@ -82548,7 +82502,7 @@ function mergeWith(target, source, merge2) {
|
|
|
82548
82502
|
target[key] = merged;
|
|
82549
82503
|
} else if (Array.isArray(sourceValue)) {
|
|
82550
82504
|
if (Array.isArray(targetValue)) {
|
|
82551
|
-
target[key] = mergeWith(targetValue, sourceValue, merge2);
|
|
82505
|
+
target[key] = mergeWith(targetValue ?? [], sourceValue, merge2);
|
|
82552
82506
|
} else {
|
|
82553
82507
|
target[key] = mergeWith([], sourceValue, merge2);
|
|
82554
82508
|
}
|
|
@@ -82705,7 +82659,7 @@ const getFillerColor = () => {
|
|
|
82705
82659
|
const fillerOpacity = getCssVariable("--opacity-state-muted");
|
|
82706
82660
|
return addOpacityToColor(fillerColor, convertOpacity(fillerOpacity));
|
|
82707
82661
|
};
|
|
82708
|
-
const tooltipBaseStyles = "typo-body-
|
|
82662
|
+
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";
|
|
82709
82663
|
const tooltipVariants = {
|
|
82710
82664
|
solid: "bg-(--tooltip-solid-bg) boxshadow-sm",
|
|
82711
82665
|
outline: "bg-(--tooltip-outline-bg) border-(--tooltip-outline-border) border-(length:--tooltip-outline-border-width)"
|
|
@@ -82763,6 +82717,15 @@ function CsTooltipContent({
|
|
|
82763
82717
|
}
|
|
82764
82718
|
) });
|
|
82765
82719
|
}
|
|
82720
|
+
function CsSimpleTooltip({ children, tooltip, contentProps, variant, ...rootProps }) {
|
|
82721
|
+
if (!tooltip) {
|
|
82722
|
+
return children;
|
|
82723
|
+
}
|
|
82724
|
+
return /* @__PURE__ */ jsx(CsTooltipProvider, { children: /* @__PURE__ */ jsxs(CsTooltip, { ...rootProps, children: [
|
|
82725
|
+
/* @__PURE__ */ jsx(CsTooltipTrigger, { asChild: true, children }),
|
|
82726
|
+
/* @__PURE__ */ jsx(CsTooltipContent, { variant, ...contentProps, children: tooltip })
|
|
82727
|
+
] }) });
|
|
82728
|
+
}
|
|
82766
82729
|
const CsChartBaseOptions = {
|
|
82767
82730
|
tooltip: {
|
|
82768
82731
|
className: csChartTooltipStyle,
|
|
@@ -83183,7 +83146,7 @@ function CsDialogHeader({ className, ...props }) {
|
|
|
83183
83146
|
"div",
|
|
83184
83147
|
{
|
|
83185
83148
|
"data-slot": "dialog-header",
|
|
83186
|
-
className: cn$1("flex flex-col gap-(--dialog-container-header-gap) mobile:text-center text-left", className),
|
|
83149
|
+
className: cn$1("flex flex-col gap-(--dialog-container-header-gap) max-mobile:text-center text-left", className),
|
|
83187
83150
|
...props
|
|
83188
83151
|
}
|
|
83189
83152
|
);
|
|
@@ -83194,7 +83157,7 @@ function CsDialogFooter({ className, ...props }) {
|
|
|
83194
83157
|
{
|
|
83195
83158
|
"data-slot": "dialog-footer",
|
|
83196
83159
|
className: cn$1(
|
|
83197
|
-
"flex flex-col-reverse gap-(--dialog-container-footer-gap) mobile:flex-row mobile:justify-end",
|
|
83160
|
+
"flex flex-col-reverse gap-(--dialog-container-footer-gap) max-mobile:flex-row max-mobile:justify-end",
|
|
83198
83161
|
className
|
|
83199
83162
|
),
|
|
83200
83163
|
...props
|
|
@@ -89096,13 +89059,13 @@ function CsNavigationMenuItem({
|
|
|
89096
89059
|
);
|
|
89097
89060
|
}
|
|
89098
89061
|
const csNavigationMenuTriggerStyle = cva(
|
|
89099
|
-
"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)",
|
|
89062
|
+
"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",
|
|
89100
89063
|
{
|
|
89101
89064
|
variants: {
|
|
89102
89065
|
variant: {
|
|
89103
|
-
"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]:
|
|
89104
|
-
"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]:
|
|
89105
|
-
"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]:
|
|
89066
|
+
"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)",
|
|
89067
|
+
"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)",
|
|
89068
|
+
"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)"
|
|
89106
89069
|
}
|
|
89107
89070
|
},
|
|
89108
89071
|
defaultVariants: {
|
|
@@ -89139,6 +89102,7 @@ function CsNavigationMenuTrigger({
|
|
|
89139
89102
|
}
|
|
89140
89103
|
);
|
|
89141
89104
|
}
|
|
89105
|
+
const NavigationMenuInContentContext = React.createContext(false);
|
|
89142
89106
|
function CsNavigationMenuContent({
|
|
89143
89107
|
className,
|
|
89144
89108
|
...props
|
|
@@ -89148,9 +89112,9 @@ function CsNavigationMenuContent({
|
|
|
89148
89112
|
{
|
|
89149
89113
|
"data-slot": "navigation-menu-content",
|
|
89150
89114
|
className: cn$1(
|
|
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
|
|
89152
|
-
"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",
|
|
89115
|
+
"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",
|
|
89116
|
+
"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",
|
|
89117
|
+
"boxshadow-lg flex flex-col",
|
|
89154
89118
|
className
|
|
89155
89119
|
),
|
|
89156
89120
|
...props
|
|
@@ -89165,14 +89129,14 @@ function CsNavigationMenuViewport({
|
|
|
89165
89129
|
"div",
|
|
89166
89130
|
{
|
|
89167
89131
|
className: cn$1(
|
|
89168
|
-
"absolute top-full left-0 isolate z-
|
|
89132
|
+
"absolute top-full left-0 isolate z-[100] flex justify-center max-mobile:w-full!"
|
|
89169
89133
|
),
|
|
89170
89134
|
children: /* @__PURE__ */ jsx(
|
|
89171
89135
|
NavigationMenuPrimitive.Viewport,
|
|
89172
89136
|
{
|
|
89173
89137
|
"data-slot": "navigation-menu-viewport",
|
|
89174
89138
|
className: cn$1(
|
|
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-
|
|
89139
|
+
"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)",
|
|
89176
89140
|
"boxshadow-lg",
|
|
89177
89141
|
className
|
|
89178
89142
|
),
|
|
@@ -89183,12 +89147,12 @@ function CsNavigationMenuViewport({
|
|
|
89183
89147
|
);
|
|
89184
89148
|
}
|
|
89185
89149
|
const csNavigationMenuLinkVariants = cva(
|
|
89186
|
-
"typo-body-sm flex transition-all outline-none whitespace-nowrap",
|
|
89150
|
+
"typo-body-sm flex transition-all outline-none whitespace-nowrap [&_svg]:transition-colors",
|
|
89187
89151
|
{
|
|
89188
89152
|
variants: {
|
|
89189
89153
|
variant: {
|
|
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)",
|
|
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)
|
|
89154
|
+
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)",
|
|
89155
|
+
"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)"
|
|
89192
89156
|
}
|
|
89193
89157
|
},
|
|
89194
89158
|
defaultVariants: {
|
|
@@ -89201,12 +89165,14 @@ function CsNavigationMenuLink({
|
|
|
89201
89165
|
variant = "item",
|
|
89202
89166
|
...props
|
|
89203
89167
|
}) {
|
|
89168
|
+
const contextVariant = React.useContext(NavigationMenuVariantContext);
|
|
89169
|
+
const isInsideContent = React.useContext(NavigationMenuInContentContext);
|
|
89204
89170
|
return /* @__PURE__ */ jsx(
|
|
89205
89171
|
NavigationMenuPrimitive.Link,
|
|
89206
89172
|
{
|
|
89207
89173
|
"data-slot": "navigation-menu-link",
|
|
89208
89174
|
className: cn$1(
|
|
89209
|
-
csNavigationMenuLinkVariants({ variant }),
|
|
89175
|
+
isInsideContent ? csNavigationMenuLinkVariants({ variant }) : csNavigationMenuTriggerStyle({ variant: contextVariant }),
|
|
89210
89176
|
className
|
|
89211
89177
|
),
|
|
89212
89178
|
...props
|
|
@@ -89272,7 +89238,7 @@ function CsPaginationLink({
|
|
|
89272
89238
|
className: cn$1(
|
|
89273
89239
|
"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)",
|
|
89274
89240
|
"hover:bg-(--pagination-link-hover-bg) hover:text-(--pagination-link-hover-font) aria-disabled:cursor-not-allowed aria-disabled:opacity-(--opacity-state-disabled)",
|
|
89275
|
-
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)",
|
|
89241
|
+
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)",
|
|
89276
89242
|
className
|
|
89277
89243
|
),
|
|
89278
89244
|
...props
|
|
@@ -89289,14 +89255,14 @@ function CsPaginationPrevious({
|
|
|
89289
89255
|
{
|
|
89290
89256
|
"aria-label": "Go to previous page",
|
|
89291
89257
|
className: cn$1(
|
|
89292
|
-
"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)",
|
|
89293
|
-
"hover:bg-(--pagination-link-hover-bg) hover:text-(--pagination-link-hover-font) [&_svg]:
|
|
89258
|
+
"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",
|
|
89259
|
+
"hover:bg-(--pagination-link-hover-bg) hover:text-(--pagination-link-hover-font) hover:[&_svg]:text-(--pagination-link-hover-icon)",
|
|
89294
89260
|
className
|
|
89295
89261
|
),
|
|
89296
89262
|
...props,
|
|
89297
89263
|
children: children ?? /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
89298
89264
|
/* @__PURE__ */ jsx(ChevronLeft, {}),
|
|
89299
|
-
/* @__PURE__ */ jsx("span", { className: "mobile:hidden block", children: "Previous" })
|
|
89265
|
+
/* @__PURE__ */ jsx("span", { className: "max-mobile:hidden block", children: "Previous" })
|
|
89300
89266
|
] })
|
|
89301
89267
|
}
|
|
89302
89268
|
);
|
|
@@ -89311,13 +89277,13 @@ function CsPaginationNext({
|
|
|
89311
89277
|
{
|
|
89312
89278
|
"aria-label": "Go to next page",
|
|
89313
89279
|
className: cn$1(
|
|
89314
|
-
"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)",
|
|
89315
|
-
"hover:bg-(--pagination-link-hover-bg) hover:text-(--pagination-link-hover-font) [&_svg]:
|
|
89280
|
+
"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",
|
|
89281
|
+
"hover:bg-(--pagination-link-hover-bg) hover:text-(--pagination-link-hover-font) hover:[&_svg]:text-(--pagination-link-hover-icon)",
|
|
89316
89282
|
className
|
|
89317
89283
|
),
|
|
89318
89284
|
...props,
|
|
89319
89285
|
children: children ?? /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
89320
|
-
/* @__PURE__ */ jsx("span", { className: "mobile:hidden block", children: "Next" }),
|
|
89286
|
+
/* @__PURE__ */ jsx("span", { className: "max-mobile:hidden block", children: "Next" }),
|
|
89321
89287
|
/* @__PURE__ */ jsx(ChevronRight, {})
|
|
89322
89288
|
] })
|
|
89323
89289
|
}
|
|
@@ -89408,11 +89374,11 @@ function CsSelectValue({
|
|
|
89408
89374
|
return /* @__PURE__ */ jsx(SelectPrimitive.Value, { "data-slot": "select-value", ...props });
|
|
89409
89375
|
}
|
|
89410
89376
|
const csSelectTriggerVariants = cva(
|
|
89411
|
-
"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-
|
|
89377
|
+
"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)",
|
|
89412
89378
|
{
|
|
89413
89379
|
variants: {
|
|
89414
89380
|
size: {
|
|
89415
|
-
default: "typo-body-sm h-(--select-
|
|
89381
|
+
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)",
|
|
89416
89382
|
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)"
|
|
89417
89383
|
}
|
|
89418
89384
|
},
|
|
@@ -89433,7 +89399,7 @@ const CsSelectTrigger = React.forwardRef(({ className, children, size = "default
|
|
|
89433
89399
|
...props,
|
|
89434
89400
|
children: [
|
|
89435
89401
|
children,
|
|
89436
|
-
/* @__PURE__ */ jsx(SelectPrimitive.Icon, { asChild: true, children: /* @__PURE__ */ jsx(ChevronDown, { className: "
|
|
89402
|
+
/* @__PURE__ */ jsx(SelectPrimitive.Icon, { asChild: true, children: /* @__PURE__ */ jsx(ChevronDown, { className: "text-(--select-base-default-icon) size-(--select-base-common-icon-size)" }) })
|
|
89437
89403
|
]
|
|
89438
89404
|
}
|
|
89439
89405
|
));
|
|
@@ -89509,7 +89475,7 @@ function CsSelectItem({
|
|
|
89509
89475
|
children: [
|
|
89510
89476
|
/* @__PURE__ */ jsx(SelectPrimitive.ItemText, { children }),
|
|
89511
89477
|
/* @__PURE__ */ jsx(SelectPrimitive.ItemIndicator, { className: "ml-auto", children: /* @__PURE__ */ jsx(Check, {}) }),
|
|
89512
|
-
/* @__PURE__ */ jsx("div", { className: "ml-auto size-(--select-
|
|
89478
|
+
/* @__PURE__ */ jsx("div", { className: "ml-auto size-(--select-base-common-icon-size) group-data-[state=checked]:hidden" })
|
|
89513
89479
|
]
|
|
89514
89480
|
}
|
|
89515
89481
|
);
|
|
@@ -89538,7 +89504,7 @@ function CsSelectScrollUpButton({
|
|
|
89538
89504
|
"data-slot": "select-scroll-up-button",
|
|
89539
89505
|
className: cn$1(
|
|
89540
89506
|
csDropdownMenuItemCommonClassName,
|
|
89541
|
-
"[&_svg:not([class*='size-'])]:size-(--select-
|
|
89507
|
+
"[&_svg:not([class*='size-'])]:size-(--select-base-common-icon-size) [&_svg]:text-(--select-base-default-icon)",
|
|
89542
89508
|
className
|
|
89543
89509
|
),
|
|
89544
89510
|
...props,
|
|
@@ -89557,7 +89523,7 @@ function CsSelectScrollDownButton({
|
|
|
89557
89523
|
"data-slot": "select-scroll-down-button",
|
|
89558
89524
|
className: cn$1(
|
|
89559
89525
|
csDropdownMenuItemCommonClassName,
|
|
89560
|
-
"[&_svg:not([class*='size-'])]:size-(--select-
|
|
89526
|
+
"[&_svg:not([class*='size-'])]:size-(--select-base-common-icon-size) [&_svg]:text-(--select-base-default-icon)",
|
|
89561
89527
|
className
|
|
89562
89528
|
),
|
|
89563
89529
|
...props,
|
|
@@ -94096,7 +94062,7 @@ function CsTableHead({ className, ...props }) {
|
|
|
94096
94062
|
{
|
|
94097
94063
|
"data-slot": "table-head",
|
|
94098
94064
|
className: cn$1(
|
|
94099
|
-
"typo-body-
|
|
94065
|
+
"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)",
|
|
94100
94066
|
"[&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",
|
|
94101
94067
|
className
|
|
94102
94068
|
),
|
|
@@ -94110,7 +94076,7 @@ function CsTableCell({ className, ...props }) {
|
|
|
94110
94076
|
{
|
|
94111
94077
|
"data-slot": "table-cell",
|
|
94112
94078
|
className: cn$1(
|
|
94113
|
-
"typo-
|
|
94079
|
+
"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)",
|
|
94114
94080
|
"[&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",
|
|
94115
94081
|
"last:bg-(--table-item-cell-last-bg)",
|
|
94116
94082
|
className
|
|
@@ -94319,7 +94285,7 @@ function CsTabsTrigger({
|
|
|
94319
94285
|
{
|
|
94320
94286
|
"data-slot": "tabs-trigger",
|
|
94321
94287
|
className: cn$1(
|
|
94322
|
-
"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",
|
|
94288
|
+
"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",
|
|
94323
94289
|
// Solid
|
|
94324
94290
|
"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)",
|
|
94325
94291
|
"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)",
|
|
@@ -94535,6 +94501,9 @@ export {
|
|
|
94535
94501
|
CsAlertDialogTitle,
|
|
94536
94502
|
CsAlertDialogTrigger,
|
|
94537
94503
|
CsAreaChart,
|
|
94504
|
+
CsAvatar,
|
|
94505
|
+
CsAvatarFallback,
|
|
94506
|
+
CsAvatarImage,
|
|
94538
94507
|
CsBadge,
|
|
94539
94508
|
CsBarChart,
|
|
94540
94509
|
CsBox,
|
|
@@ -94652,6 +94621,7 @@ export {
|
|
|
94652
94621
|
CsSelectValue,
|
|
94653
94622
|
CsSeparator,
|
|
94654
94623
|
CsSimpleSelect,
|
|
94624
|
+
CsSimpleTooltip,
|
|
94655
94625
|
CsSkeleton,
|
|
94656
94626
|
CsSonner,
|
|
94657
94627
|
CsSpinner,
|
|
@@ -94710,6 +94680,7 @@ export {
|
|
|
94710
94680
|
csNavigationMenuLinkVariants,
|
|
94711
94681
|
csNavigationMenuTriggerStyle,
|
|
94712
94682
|
csProgressVariants,
|
|
94683
|
+
csSelectTriggerVariants,
|
|
94713
94684
|
csTabsListVariants,
|
|
94714
94685
|
csToggleVariants,
|
|
94715
94686
|
csTooltipContentVariants,
|