@firecms/ui 3.0.0-canary.144 → 3.0.0-canary.145
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/index.es.js +104 -103
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +104 -103
- package/dist/index.umd.js.map +1 -1
- package/dist/styles.d.ts +8 -8
- package/package.json +2 -2
- package/src/components/Alert.tsx +2 -2
- package/src/components/Autocomplete.tsx +2 -2
- package/src/components/Avatar.tsx +4 -4
- package/src/components/Badge.tsx +1 -1
- package/src/components/BooleanSwitch.tsx +4 -4
- package/src/components/Button.tsx +6 -6
- package/src/components/Checkbox.tsx +5 -5
- package/src/components/Chip.tsx +2 -2
- package/src/components/CircularProgress.tsx +1 -1
- package/src/components/DateTimeField.tsx +3 -3
- package/src/components/Dialog.tsx +1 -1
- package/src/components/DialogActions.tsx +1 -1
- package/src/components/ExpandablePanel.tsx +1 -1
- package/src/components/IconButton.tsx +3 -3
- package/src/components/Label.tsx +2 -2
- package/src/components/Markdown.tsx +2 -2
- package/src/components/Menu.tsx +1 -1
- package/src/components/Menubar.tsx +9 -9
- package/src/components/MultiSelect.tsx +9 -9
- package/src/components/Popover.tsx +1 -1
- package/src/components/SearchBar.tsx +4 -3
- package/src/components/Select.tsx +6 -6
- package/src/components/Separator.tsx +2 -2
- package/src/components/Sheet.tsx +3 -3
- package/src/components/Skeleton.tsx +1 -1
- package/src/components/Slider.tsx +4 -4
- package/src/components/Table.tsx +6 -6
- package/src/components/Tabs.tsx +8 -8
- package/src/components/TextField.tsx +2 -2
- package/src/components/Tooltip.tsx +2 -2
- package/src/components/common/SelectInputLabel.tsx +1 -1
- package/src/styles.ts +8 -8
- package/tailwind.config.js +38 -25
package/dist/index.es.js
CHANGED
@@ -24,15 +24,15 @@ import * as TooltipPrimitive from "@radix-ui/react-tooltip";
|
|
24
24
|
import * as ReactDOM from "react-dom";
|
25
25
|
import * as TabsPrimitive from "@radix-ui/react-tabs";
|
26
26
|
const focusedDisabled = "focus-visible:ring-0 focus-visible:ring-offset-0";
|
27
|
-
const focusedInvisibleMixin = "focus:bg-opacity-70 focus:bg-
|
27
|
+
const focusedInvisibleMixin = "focus:bg-opacity-70 focus:bg-surface-accent-100 focus:dark:bg-surface-800 focus:dark:bg-opacity-60";
|
28
28
|
const focusedClasses = "z-30 outline-none ring-2 ring-primary ring-opacity-75 ring-offset-2 ring-offset-transparent ";
|
29
|
-
const fieldBackgroundMixin = "bg-opacity-50 bg-
|
30
|
-
const fieldBackgroundInvisibleMixin = "bg-opacity-0 bg-
|
31
|
-
const fieldBackgroundDisabledMixin = "dark:bg-
|
32
|
-
const fieldBackgroundHoverMixin = "hover:bg-opacity-70 dark:hover:bg-
|
33
|
-
const defaultBorderMixin = "border-
|
34
|
-
const paperMixin = "bg-white rounded-md dark:bg-
|
35
|
-
const cardMixin = "bg-white border border-
|
29
|
+
const fieldBackgroundMixin = "bg-opacity-50 bg-surface-accent-200 dark:bg-surface-800 dark:bg-opacity-60";
|
30
|
+
const fieldBackgroundInvisibleMixin = "bg-opacity-0 bg-surface-accent-100 dark:bg-surface-800 dark:bg-opacity-0";
|
31
|
+
const fieldBackgroundDisabledMixin = "dark:bg-surface-800 bg-opacity-50 dark:bg-opacity-90";
|
32
|
+
const fieldBackgroundHoverMixin = "hover:bg-opacity-70 dark:hover:bg-surface-700 dark:hover:bg-opacity-40";
|
33
|
+
const defaultBorderMixin = "border-surface-200 border-opacity-40 dark:border-surface-700 dark:border-opacity-40";
|
34
|
+
const paperMixin = "bg-white rounded-md dark:bg-surface-950 border border-surface-200 border-opacity-40 dark:border-surface-700 dark:border-opacity-40";
|
35
|
+
const cardMixin = "bg-white border border-surface-200 border-opacity-40 dark:border-transparent rounded-md dark:bg-surface-950 dark:border-surface-700 dark:border-opacity-40 m-1 -p-1";
|
36
36
|
const cardClickableMixin = "hover:bg-primary-bg dark:hover:bg-primary-bg hover:bg-opacity-20 dark:hover:bg-opacity-20 hover:ring-2 hover:ring-primary cursor-pointer";
|
37
37
|
const cardSelectedMixin = "bg-primary-bg dark:bg-primary-bg bg-opacity-30 dark:bg-opacity-10 ring-1 ring-primary ring-opacity-75";
|
38
38
|
function cls(...classes) {
|
@@ -273,7 +273,7 @@ function Autocomplete({
|
|
273
273
|
ref: autocompleteRef,
|
274
274
|
className: cls(
|
275
275
|
open ? paperMixin : "",
|
276
|
-
"bg-
|
276
|
+
"bg-surface-accent-50 dark:bg-surface-accent-900 py-2"
|
277
277
|
),
|
278
278
|
children
|
279
279
|
}
|
@@ -288,7 +288,7 @@ function AutocompleteItem({
|
|
288
288
|
return /* @__PURE__ */ jsx(
|
289
289
|
"div",
|
290
290
|
{
|
291
|
-
className: "flex w-full items-center pr-6 pl-14 h-[48px] cursor-pointer hover:bg-
|
291
|
+
className: "flex w-full items-center pr-6 pl-14 h-[48px] cursor-pointer hover:bg-surface-accent-100 dark:hover:bg-surface-accent-800",
|
292
292
|
onClick,
|
293
293
|
children
|
294
294
|
}
|
@@ -317,7 +317,7 @@ const getColorClasses = (severity) => {
|
|
317
317
|
return "bg-emerald-50 dark:bg-emerald-800 dark:text-emerald-100 text-emerald-900";
|
318
318
|
case "base":
|
319
319
|
default:
|
320
|
-
return "bg-
|
320
|
+
return "bg-surface-accent-50 dark:bg-surface-accent-800 dark:text-white text-surface-accent-900";
|
321
321
|
}
|
322
322
|
};
|
323
323
|
const Alert = ({
|
@@ -347,7 +347,7 @@ const Alert = ({
|
|
347
347
|
onDismiss && /* @__PURE__ */ jsx(
|
348
348
|
"button",
|
349
349
|
{
|
350
|
-
className: "text-
|
350
|
+
className: "text-surface-accent-400 hover:text-surface-accent-600 dark:text-surface-accent-500 dark:hover:text-surface-accent-400",
|
351
351
|
onClick: onDismiss,
|
352
352
|
children: "×"
|
353
353
|
}
|
@@ -378,14 +378,14 @@ const AvatarInner = ({
|
|
378
378
|
...props,
|
379
379
|
className: cls(
|
380
380
|
"rounded-full flex items-center justify-center overflow-hidden",
|
381
|
-
"p-1 hover:bg-
|
381
|
+
"p-1 hover:bg-surface-accent-200 hover:dark:bg-surface-accent-700 w-12 h-12 min-w-12 min-h-12",
|
382
382
|
outerClassName
|
383
383
|
),
|
384
384
|
children: src && !isImageError ? /* @__PURE__ */ jsx(
|
385
385
|
"img",
|
386
386
|
{
|
387
387
|
className: cls(
|
388
|
-
"bg-
|
388
|
+
"bg-surface-accent-100 dark:bg-surface-accent-800",
|
389
389
|
"w-full h-full object-cover rounded-full",
|
390
390
|
className
|
391
391
|
),
|
@@ -397,9 +397,9 @@ const AvatarInner = ({
|
|
397
397
|
"span",
|
398
398
|
{
|
399
399
|
className: cls(
|
400
|
-
"bg-
|
400
|
+
"bg-surface-accent-100 dark:bg-surface-accent-800",
|
401
401
|
"flex items-center justify-center",
|
402
|
-
"w-full h-full py-1.5 text-lg font-medium text-
|
402
|
+
"w-full h-full py-1.5 text-lg font-medium text-surface-accent-900 dark:text-white rounded-full",
|
403
403
|
className
|
404
404
|
),
|
405
405
|
children
|
@@ -438,7 +438,7 @@ const BooleanSwitch = React__default.forwardRef(
|
|
438
438
|
className: cls(
|
439
439
|
size === "smallest" ? "w-[38px] h-[22px] min-w-[38px] min-h-[22px]" : "w-[42px] h-[26px] min-w-[42px] min-h-[26px]",
|
440
440
|
"outline-none rounded-full relative shadow-sm",
|
441
|
-
value ? disabled ? "bg-white bg-opacity-54 dark:bg-
|
441
|
+
value ? disabled ? "bg-white bg-opacity-54 dark:bg-surface-accent-950 border-surface-accent-100 dark:border-surface-accent-700 ring-1 ring-surface-accent-200 dark:ring-surface-accent-700" : "ring-secondary ring-1 bg-secondary dark:bg-secondary" : "bg-white bg-opacity-54 dark:bg-surface-accent-900 ring-1 ring-surface-accent-200 dark:ring-surface-accent-700",
|
442
442
|
className
|
443
443
|
),
|
444
444
|
...props,
|
@@ -448,7 +448,7 @@ const BooleanSwitch = React__default.forwardRef(
|
|
448
448
|
{
|
449
449
|
className: cls(
|
450
450
|
"block rounded-full transition-transform duration-100 transform will-change-auto",
|
451
|
-
disabled ? "bg-
|
451
|
+
disabled ? "bg-surface-accent-400 dark:bg-surface-accent-600" : "bg-surface-accent-400 dark:bg-surface-accent-600",
|
452
452
|
{
|
453
453
|
"w-[21px] h-[10px]": size === "small" || size === "medium",
|
454
454
|
"w-[19px] h-[8px]": size === "smallest",
|
@@ -464,7 +464,7 @@ const BooleanSwitch = React__default.forwardRef(
|
|
464
464
|
{
|
465
465
|
className: cls(
|
466
466
|
"block rounded-full transition-transform duration-100 transform will-change-auto",
|
467
|
-
disabled ? "bg-
|
467
|
+
disabled ? "bg-surface-accent-300 dark:bg-surface-accent-700" : value ? "bg-white" : "bg-surface-accent-600 dark:bg-surface-accent-400",
|
468
468
|
{
|
469
469
|
"w-[21px] h-[21px]": size === "small" || size === "medium",
|
470
470
|
"w-[19px] h-[19px]": size === "smallest",
|
@@ -574,21 +574,21 @@ const ButtonInner = React__default.forwardRef(({
|
|
574
574
|
"border border-primary bg-primary hover:bg-primary-dark focus:ring-primary shadow hover:ring-1 hover:ring-primary text-white hover:text-white": variant === "filled" && color === "primary" && !disabled,
|
575
575
|
"border border-secondary bg-secondary hover:bg-secondary-dark focus:ring-secondary shadow hover:ring-1 hover:ring-secondary text-white hover:text-white": variant === "filled" && color === "secondary" && !disabled,
|
576
576
|
"border border-red-500 bg-red-500 hover:bg-red-500 focus:ring-red-500 shadow hover:ring-1 hover:ring-red-600 text-white hover:text-white": variant === "filled" && color === "error" && !disabled,
|
577
|
-
"border border-
|
577
|
+
"border border-surface-accent-200 bg-surface-accent-200 hover:bg-surface-accent-300 focus:ring-surface-accent-400 shadow hover:ring-1 hover:ring-surface-accent-400 text-text-primary hover:text-text-primary dark:text-text-primary-dark hover:dark:text-text-primary-dark": variant === "filled" && color === "text" && !disabled,
|
578
578
|
// Text Variants
|
579
|
-
"border border-transparent text-primary hover:text-primary hover:bg-
|
579
|
+
"border border-transparent text-primary hover:text-primary hover:bg-surface-accent-200 dark:hover:bg-surface-900": variant === "text" && color === "primary" && !disabled,
|
580
580
|
"border border-transparent text-secondary hover:text-secondary hover:bg-secondary-bg": variant === "text" && color === "secondary" && !disabled,
|
581
581
|
"border border-transparent text-red-500 hover:text-red-500 hover:bg-red-500 hover:bg-opacity-10": variant === "text" && color === "error" && !disabled,
|
582
|
-
"border border-transparent text-text-primary hover:text-text-primary dark:text-text-primary-dark hover:dark:text-text-primary-dark hover:bg-
|
582
|
+
"border border-transparent text-text-primary hover:text-text-primary dark:text-text-primary-dark hover:dark:text-text-primary-dark hover:bg-surface-accent-200 hover:dark:bg-surface-700": variant === "text" && color === "text" && !disabled,
|
583
583
|
// Outlined Variants
|
584
584
|
"border border-primary text-primary hover:text-primary hover:bg-primary-bg": variant === "outlined" && color === "primary" && !disabled,
|
585
585
|
"border border-secondary text-secondary hover:text-secondary hover:bg-secondary-bg": variant === "outlined" && color === "secondary" && !disabled,
|
586
586
|
"border border-red-500 text-red-500 hover:text-red-500 hover:bg-red-500 hover:text-white": variant === "outlined" && color === "error" && !disabled,
|
587
|
-
"border border-
|
587
|
+
"border border-surface-accent-400 text-text-primary hover:text-text-primary dark:text-text-primary-dark hover:bg-surface-accent-200": variant === "outlined" && color === "text" && !disabled,
|
588
588
|
// Disabled states for all variants
|
589
589
|
"border border-transparent opacity-50": variant === "text" && disabled,
|
590
|
-
"border border-
|
591
|
-
"border border-
|
590
|
+
"border border-surface-500 opacity-50": variant === "outlined" && disabled,
|
591
|
+
"border border-surface-500 bg-surface-500 opacity-50": variant === "filled" && disabled
|
592
592
|
});
|
593
593
|
const sizeClasses2 = cls(
|
594
594
|
{
|
@@ -740,7 +740,7 @@ function CircularProgress({
|
|
740
740
|
sizeClasses2,
|
741
741
|
borderClasses,
|
742
742
|
"inline-block animate-spin rounded-full border-solid border-current border-r-transparent align-[-0.125em] motion-reduce:animate-[spin_1.5s_linear_infinite]",
|
743
|
-
"text-primary
|
743
|
+
"text-primary dark:text-primary",
|
744
744
|
className
|
745
745
|
),
|
746
746
|
role: "status",
|
@@ -13599,7 +13599,7 @@ const Checkbox = ({
|
|
13599
13599
|
padding ? paddingClasses[size] : "",
|
13600
13600
|
outerSizeClasses[size],
|
13601
13601
|
"inline-flex items-center justify-center text-sm font-medium focus:outline-none transition-colors ease-in-out duration-150",
|
13602
|
-
onCheckedChange ? "rounded-full hover:bg-
|
13602
|
+
onCheckedChange ? "rounded-full hover:bg-surface-accent-200 hover:bg-opacity-75 dark:hover:bg-surface-accent-700 dark:hover:bg-opacity-75" : "",
|
13603
13603
|
onCheckedChange ? "cursor-pointer" : "cursor-default"
|
13604
13604
|
), children: /* @__PURE__ */ jsx(
|
13605
13605
|
"div",
|
@@ -13607,9 +13607,9 @@ const Checkbox = ({
|
|
13607
13607
|
className: cls(
|
13608
13608
|
"border-2 relative transition-colors ease-in-out duration-150",
|
13609
13609
|
sizeClasses$1[size],
|
13610
|
-
disabled ? indeterminate || isChecked ? "bg-
|
13611
|
-
indeterminate || isChecked ? "text-
|
13612
|
-
disabled ? "border-transparent" : indeterminate || isChecked ? "border-transparent" : "border-
|
13610
|
+
disabled ? indeterminate || isChecked ? "bg-surface-accent-400 dark:bg-surface-accent-600" : "bg-surface-accent-400 dark:bg-surface-accent-600" : indeterminate || isChecked ? colorClasses$2[color] : "bg-white dark:bg-surface-900",
|
13611
|
+
indeterminate || isChecked ? "text-surface-accent-100 dark:text-surface-accent-900" : "",
|
13612
|
+
disabled ? "border-transparent" : indeterminate || isChecked ? "border-transparent" : "border-surface-accent-800 dark:border-surface-accent-200"
|
13613
13613
|
),
|
13614
13614
|
children: /* @__PURE__ */ jsx(CheckboxPrimitive.Indicator, { asChild: true, children: indeterminate ? /* @__PURE__ */ jsx(Icon, { iconKey: "remove", size: iconSize, className: "absolute" }) : /* @__PURE__ */ jsx(Icon, { iconKey: "check", size: iconSize, className: "absolute" }) })
|
13615
13615
|
}
|
@@ -13640,9 +13640,9 @@ function Chip({
|
|
13640
13640
|
className: cls(
|
13641
13641
|
"rounded-lg max-w-full w-max h-fit font-regular inline-flex gap-1",
|
13642
13642
|
"text-ellipsis",
|
13643
|
-
onClick ? "cursor-pointer hover:bg-
|
13643
|
+
onClick ? "cursor-pointer hover:bg-surface-accent-300 hover:dark:bg-surface-accent-700" : "",
|
13644
13644
|
sizeClassNames[size],
|
13645
|
-
error || !usedColorScheme ? "bg-
|
13645
|
+
error || !usedColorScheme ? "bg-surface-accent-200 dark:bg-surface-accent-800 text-surface-accent-800 dark:text-white" : "",
|
13646
13646
|
error ? "text-red-500 dark:text-red-400" : "",
|
13647
13647
|
className
|
13648
13648
|
),
|
@@ -13663,9 +13663,9 @@ function Chip({
|
|
13663
13663
|
}
|
13664
13664
|
);
|
13665
13665
|
}
|
13666
|
-
const buttonClasses = "hover:bg-
|
13666
|
+
const buttonClasses = "hover:bg-surface-accent-200 hover:bg-opacity-75 dark:hover:bg-surface-accent-800";
|
13667
13667
|
const baseClasses = "inline-flex items-center justify-center p-2 text-sm font-medium focus:outline-none transition-colors ease-in-out duration-150";
|
13668
|
-
const colorClasses$1 = "text-
|
13668
|
+
const colorClasses$1 = "text-surface-accent-600 visited:text-surface-accent-600 dark:text-surface-accent-300 dark:visited:text-surface-300";
|
13669
13669
|
const sizeClasses = {
|
13670
13670
|
medium: "w-10 !h-10 min-w-10 min-h-10",
|
13671
13671
|
small: "w-8 !h-8 min-w-8 min-h-8",
|
@@ -13687,7 +13687,7 @@ const IconButtonInner = ({
|
|
13687
13687
|
component,
|
13688
13688
|
...props
|
13689
13689
|
}, ref) => {
|
13690
|
-
const bgClasses = variant === "ghost" ? "bg-transparent" : "bg-
|
13690
|
+
const bgClasses = variant === "ghost" ? "bg-transparent" : "bg-surface-accent-200 bg-opacity-50 dark:bg-surface-950 dark:bg-opacity-50";
|
13691
13691
|
const Component = component || "button";
|
13692
13692
|
return /* @__PURE__ */ jsx(
|
13693
13693
|
Component,
|
@@ -13949,7 +13949,7 @@ const DateTimeField = ({
|
|
13949
13949
|
size === "small" ? "min-h-[48px]" : "min-h-[64px]",
|
13950
13950
|
label ? "pt-8 pb-2" : "py-2",
|
13951
13951
|
inputClassName,
|
13952
|
-
disabled && "border border-transparent outline-none opacity-50 dark:opacity-50 text-
|
13952
|
+
disabled && "border border-transparent outline-none opacity-50 dark:opacity-50 text-surface-accent-600 dark:text-surface-accent-500"
|
13953
13953
|
)
|
13954
13954
|
}
|
13955
13955
|
),
|
@@ -13960,7 +13960,7 @@ const DateTimeField = ({
|
|
13960
13960
|
e.stopPropagation();
|
13961
13961
|
inputRef.current?.showPicker();
|
13962
13962
|
},
|
13963
|
-
className: "absolute right-3 top-1/2 transform -translate-y-1/2 !text-
|
13963
|
+
className: "absolute right-3 top-1/2 transform -translate-y-1/2 !text-surface-accent-500",
|
13964
13964
|
children: /* @__PURE__ */ jsx(CalendarMonthIcon, { color: "disabled" })
|
13965
13965
|
}
|
13966
13966
|
),
|
@@ -13968,7 +13968,7 @@ const DateTimeField = ({
|
|
13968
13968
|
IconButton,
|
13969
13969
|
{
|
13970
13970
|
onClick: handleClear,
|
13971
|
-
className: "absolute right-14 top-1/2 transform -translate-y-1/2 text-
|
13971
|
+
className: "absolute right-14 top-1/2 transform -translate-y-1/2 text-surface-accent-400 ",
|
13972
13972
|
children: /* @__PURE__ */ jsx(ClearIcon, {})
|
13973
13973
|
}
|
13974
13974
|
)
|
@@ -14078,7 +14078,7 @@ const Dialog = ({
|
|
14078
14078
|
"outline-none focus:outline-none",
|
14079
14079
|
fullWidth && !fullScreen ? "w-11/12" : void 0,
|
14080
14080
|
fullHeight && !fullScreen ? "h-full" : void 0,
|
14081
|
-
"text-
|
14081
|
+
"text-surface-accent-900 dark:text-white",
|
14082
14082
|
"justify-center items-center",
|
14083
14083
|
fullScreen ? "h-screen w-screen" : "max-h-[90vh] shadow-xl",
|
14084
14084
|
"ease-in-out duration-200",
|
@@ -14109,7 +14109,7 @@ function DialogActions({
|
|
14109
14109
|
defaultBorderMixin,
|
14110
14110
|
"py-3 px-4 border-t flex flex-row items-center justify-end bottom-0 right-0 left-0 text-right z-2 gap-2",
|
14111
14111
|
position,
|
14112
|
-
"bg-white bg-opacity-60 dark:bg-
|
14112
|
+
"bg-white bg-opacity-60 dark:bg-surface-900 dark:bg-opacity-60",
|
14113
14113
|
translucent ? "backdrop-blur-sm" : "",
|
14114
14114
|
className
|
14115
14115
|
),
|
@@ -14228,7 +14228,7 @@ function ExpandablePanel({
|
|
14228
14228
|
{
|
14229
14229
|
className: cls(
|
14230
14230
|
"rounded-t flex items-center justify-between w-full min-h-[52px]",
|
14231
|
-
"hover:bg-
|
14231
|
+
"hover:bg-surface-accent-200 hover:bg-opacity-20 dark:hover:bg-surface-800 dark:hover:bg-opacity-20",
|
14232
14232
|
invisible ? "border-b px-2" : "p-4",
|
14233
14233
|
open ? "py-6" : "py-4",
|
14234
14234
|
"transition-all duration-200",
|
@@ -14359,8 +14359,8 @@ const Label = React.forwardRef(({
|
|
14359
14359
|
onClick,
|
14360
14360
|
className: cls(
|
14361
14361
|
"text-sm font-medium peer-disabled:cursor-not-allowed peer-disabled:opacity-70",
|
14362
|
-
border && "border border-
|
14363
|
-
onClick && "hover:cursor-pointer hover:bg-
|
14362
|
+
border && "border border-surface-300 dark:border-surface-700 rounded-md px-3 py-1.5",
|
14363
|
+
onClick && "hover:cursor-pointer hover:bg-surface-200 dark:hover:bg-surface-800",
|
14364
14364
|
defaultBorderMixin,
|
14365
14365
|
className
|
14366
14366
|
),
|
@@ -14392,8 +14392,8 @@ function LoadingButton({
|
|
14392
14392
|
);
|
14393
14393
|
}
|
14394
14394
|
const proseClasses = {
|
14395
|
-
small: "prose-sm
|
14396
|
-
medium: "prose
|
14395
|
+
small: "prose-sm typography-body2",
|
14396
|
+
medium: "prose typography-body1",
|
14397
14397
|
large: "prose-lg",
|
14398
14398
|
xl: "prose-xl",
|
14399
14399
|
"2xl": "prose-2xl"
|
@@ -14463,7 +14463,7 @@ function MenuItem({
|
|
14463
14463
|
}) {
|
14464
14464
|
const classNames = cls(
|
14465
14465
|
onClick && "cursor-pointer",
|
14466
|
-
"rounded-md text-sm font-medium text-
|
14466
|
+
"rounded-md text-sm font-medium text-surface-accent-700 dark:text-surface-accent-300 hover:bg-surface-accent-100 dark:hover:bg-surface-accent-900 flex items-center gap-4",
|
14467
14467
|
dense ? "px-3 py-1.5" : "px-4 py-2"
|
14468
14468
|
);
|
14469
14469
|
return /* @__PURE__ */ jsx(
|
@@ -14484,7 +14484,7 @@ function Menubar({
|
|
14484
14484
|
MenubarPrimitive.Root,
|
14485
14485
|
{
|
14486
14486
|
onSelect,
|
14487
|
-
className: cls("z-10 flex bg-white dark:bg-
|
14487
|
+
className: cls("z-10 flex bg-white dark:bg-surface-950 p-[3px] rounded-sm shadow-sm", className),
|
14488
14488
|
children
|
14489
14489
|
}
|
14490
14490
|
);
|
@@ -14504,7 +14504,7 @@ function MenubarTrigger({
|
|
14504
14504
|
{
|
14505
14505
|
onSelect,
|
14506
14506
|
className: cls(
|
14507
|
-
"py-2 px-3 outline-none select-none font-medium leading-none rounded text-text-primary dark:text-text-primary-dark text-[13px] flex items-center justify-between gap-[2px] data-[highlighted]:bg-
|
14507
|
+
"py-2 px-3 outline-none select-none font-medium leading-none rounded text-text-primary dark:text-text-primary-dark text-[13px] flex items-center justify-between gap-[2px] data-[highlighted]:bg-surface-accent-100 data-[highlighted]:dark:bg-surface-800 data-[state=open]:bg-surface-accent-100 data-[state=open]:dark:bg-surface-800 hover:bg-surface-accent-200 hover:bg-opacity-75 dark:hover:bg-surface-700 dark:hover:bg-opacity-50",
|
14508
14508
|
className
|
14509
14509
|
),
|
14510
14510
|
children
|
@@ -14529,7 +14529,7 @@ function MenubarContent({
|
|
14529
14529
|
MenubarPrimitive.Content,
|
14530
14530
|
{
|
14531
14531
|
onSelect,
|
14532
|
-
className: cls("min-w-[220px] bg-white dark:bg-
|
14532
|
+
className: cls("min-w-[220px] bg-white dark:bg-surface-950 rounded-md p-[6px] shadow-[0px_10px_38px_-10px_rgba(22,_23,_24,_0.35),_0px_10px_20px_-15px_rgba(22,_23,_24,_0.2)] [animation-duration:_400ms] [animation-timing-function:_cubic-bezier(0.16,_1,_0.3,_1)] will-change-[transform,opacity]", className),
|
14533
14533
|
align: align ?? "start",
|
14534
14534
|
sideOffset: sideOffset ?? 5,
|
14535
14535
|
alignOffset: alignOffset ?? -3,
|
@@ -14551,7 +14551,7 @@ function MenubarItem({
|
|
14551
14551
|
{
|
14552
14552
|
onSelect,
|
14553
14553
|
className: cls(
|
14554
|
-
"group text-[13px] leading-none rounded flex items-center h-[32px] px-[10px] py-[2px] relative select-none outline-none data-[state=open]:bg-
|
14554
|
+
"group text-[13px] leading-none rounded flex items-center h-[32px] px-[10px] py-[2px] relative select-none outline-none data-[state=open]:bg-surface-accent-100 data-[state=open]:dark:bg-surface-800 data-[state=open]:text-text-primary data-[state=open]:dark:text-text-primary-dark data-[highlighted]:bg-surface-accent-100 data-[highlighted]:dark:bg-surface-800 data-[disabled]:text-text-disabled data-[disabled]:dark:text-text-disabled-dark data-[disabled]:pointer-events-none",
|
14555
14555
|
leftPadding ? "pl-5" : "",
|
14556
14556
|
disabled ? "pointer-events-none text-text-secondary dark:text-text-secondary-dark" : "text-text-primary dark:text-text-primary-dark",
|
14557
14557
|
className
|
@@ -14570,7 +14570,7 @@ function MenubarSeparator({
|
|
14570
14570
|
return /* @__PURE__ */ jsx(
|
14571
14571
|
MenubarPrimitive.Separator,
|
14572
14572
|
{
|
14573
|
-
className: cls("h-[1px] bg-
|
14573
|
+
className: cls("h-[1px] bg-surface-accent-100 dark:bg-surface-800 m-[5px]", className),
|
14574
14574
|
...rest,
|
14575
14575
|
children
|
14576
14576
|
}
|
@@ -14599,7 +14599,7 @@ function MenubarSubTrigger({
|
|
14599
14599
|
{
|
14600
14600
|
onSelect,
|
14601
14601
|
className: cls(
|
14602
|
-
"group text-[13px] leading-none text-text-primary dark:text-text-primary-dark rounded flex items-center h-[32px] px-[10px] py-[2px] relative select-none outline-none data-[state=open]:bg-
|
14602
|
+
"group text-[13px] leading-none text-text-primary dark:text-text-primary-dark rounded flex items-center h-[32px] px-[10px] py-[2px] relative select-none outline-none data-[state=open]:bg-surface-accent-100 data-[state=open]:dark:bg-surface-800 data-[state=open]:text-text-primary data-[state=open]:dark:text-text-primary-dark data-[highlighted]:bg-surface-accent-100 data-[highlighted]:dark:bg-surface-800 data-[disabled]:text-text-disabled data-[disabled]:dark:text-text-disabled-dark data-[disabled]:pointer-events-none",
|
14603
14603
|
className
|
14604
14604
|
),
|
14605
14605
|
...rest,
|
@@ -14620,7 +14620,7 @@ function MenubarSubContent({
|
|
14620
14620
|
onSelect,
|
14621
14621
|
alignOffset: alignOffset ?? -5,
|
14622
14622
|
className: cls(
|
14623
|
-
"min-w-[220px] bg-white dark:bg-
|
14623
|
+
"min-w-[220px] bg-white dark:bg-surface-950 rounded-md p-[6px] shadow-[0px_10px_38px_-10px_rgba(22,_23,_24,_0.35),_0px_10px_20px_-15px_rgba(22,_23,_24,_0.2)] [animation-duration:_400ms] [animation-timing-function:_cubic-bezier(0.16,_1,_0.3,_1)] will-change-[transform,opacity]",
|
14624
14624
|
className
|
14625
14625
|
),
|
14626
14626
|
...rest,
|
@@ -14641,7 +14641,7 @@ function MenubarCheckboxItem({
|
|
14641
14641
|
{
|
14642
14642
|
onSelect,
|
14643
14643
|
className: cls(
|
14644
|
-
"text-[13px] leading-none text-text-primary dark:text-text-primary-dark rounded flex items-center h-[32px] px-[10px] py-[2px] relative select-none pl-5 outline-none data-[highlighted]:bg-
|
14644
|
+
"text-[13px] leading-none text-text-primary dark:text-text-primary-dark rounded flex items-center h-[32px] px-[10px] py-[2px] relative select-none pl-5 outline-none data-[highlighted]:bg-surface-accent-100 data-[highlighted]:dark:bg-surface-800 data-[disabled]:text-text-disabled data-[disabled]:dark:text-text-disabled-dark data-[disabled]:pointer-events-none",
|
14645
14645
|
className
|
14646
14646
|
),
|
14647
14647
|
checked,
|
@@ -14697,7 +14697,7 @@ function MenubarRadioItem({
|
|
14697
14697
|
{
|
14698
14698
|
onSelect,
|
14699
14699
|
className: cls(
|
14700
|
-
"text-[13px] leading-none text-text-primary dark:text-text-primary-dark rounded flex items-center h-[32px] px-[10px] py-[2px] relative select-none pl-5 outline-none data-[highlighted]:bg-
|
14700
|
+
"text-[13px] leading-none text-text-primary dark:text-text-primary-dark rounded flex items-center h-[32px] px-[10px] py-[2px] relative select-none pl-5 outline-none data-[highlighted]:bg-surface-accent-100 data-[highlighted]:dark:bg-surface-800 data-[disabled]:text-text-disabled data-[disabled]:dark:text-text-disabled-dark data-[disabled]:pointer-events-none",
|
14701
14701
|
className
|
14702
14702
|
),
|
14703
14703
|
value,
|
@@ -14737,14 +14737,14 @@ function Separator({
|
|
14737
14737
|
{
|
14738
14738
|
decorative,
|
14739
14739
|
orientation: "horizontal",
|
14740
|
-
className: cls("dark:bg-opacity-80 dark:bg-
|
14740
|
+
className: cls("dark:bg-opacity-80 dark:bg-surface-800 bg-surface-100 data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px my-4", className)
|
14741
14741
|
}
|
14742
14742
|
);
|
14743
14743
|
else
|
14744
14744
|
return /* @__PURE__ */ jsx(
|
14745
14745
|
SeparatorPrimitive.Root,
|
14746
14746
|
{
|
14747
|
-
className: cls("dark:bg-opacity-80 dark:bg-
|
14747
|
+
className: cls("dark:bg-opacity-80 dark:bg-surface-800 bg-surface-100 data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px mx-4", className),
|
14748
14748
|
decorative,
|
14749
14749
|
orientation: "vertical"
|
14750
14750
|
}
|
@@ -14753,7 +14753,7 @@ function Separator({
|
|
14753
14753
|
function SelectInputLabel({ children, error }) {
|
14754
14754
|
return /* @__PURE__ */ jsx("div", { className: cls(
|
14755
14755
|
"text-sm font-medium ml-3.5 mb-1",
|
14756
|
-
error ? "text-red-500 dark:text-red-600" : "text-
|
14756
|
+
error ? "text-red-500 dark:text-red-600" : "text-surface-accent-500 dark:text-surface-accent-300"
|
14757
14757
|
), children });
|
14758
14758
|
}
|
14759
14759
|
const MultiSelectContext = React.createContext({});
|
@@ -14944,7 +14944,7 @@ const MultiSelect = React.forwardRef(
|
|
14944
14944
|
/* @__PURE__ */ jsx(
|
14945
14945
|
PopoverPrimitive.Content,
|
14946
14946
|
{
|
14947
|
-
className: cls("z-50 relative overflow-hidden border bg-white dark:bg-
|
14947
|
+
className: cls("z-50 relative overflow-hidden border bg-white dark:bg-surface-900 rounded-lg w-[400px]", defaultBorderMixin),
|
14948
14948
|
align: "start",
|
14949
14949
|
sideOffset: 8,
|
14950
14950
|
onEscapeKeyDown: () => onPopoverOpenChange(false),
|
@@ -14981,8 +14981,8 @@ const MultiSelect = React.forwardRef(
|
|
14981
14981
|
"m-1",
|
14982
14982
|
"ring-offset-transparent",
|
14983
14983
|
"p-1 rounded aria-[selected=true]:outline-none aria-[selected=true]:ring-2 aria-[selected=true]:ring-primary aria-[selected=true]:ring-opacity-75 aria-[selected=true]:ring-offset-2",
|
14984
|
-
"aria-[selected=true]:bg-
|
14985
|
-
"cursor-pointer p-2 rounded aria-[selected=true]:bg-
|
14984
|
+
"aria-[selected=true]:bg-surface-accent-100 aria-[selected=true]:dark:bg-surface-accent-900",
|
14985
|
+
"cursor-pointer p-2 rounded aria-[selected=true]:bg-surface-accent-100 aria-[selected=true]:dark:bg-surface-accent-900"
|
14986
14986
|
),
|
14987
14987
|
children: [
|
14988
14988
|
/* @__PURE__ */ jsx(InnerCheckBox, { checked: selectedValues.length === allValues.length }),
|
@@ -15030,13 +15030,13 @@ function MultiSelectItem({
|
|
15030
15030
|
},
|
15031
15031
|
className: cls(
|
15032
15032
|
"flex flex-row items-center gap-1.5",
|
15033
|
-
isSelected ? "bg-
|
15033
|
+
isSelected ? "bg-surface-accent-200 dark:bg-surface-accent-950" : "",
|
15034
15034
|
"cursor-pointer",
|
15035
15035
|
"m-1",
|
15036
15036
|
"ring-offset-transparent",
|
15037
15037
|
"p-1 rounded aria-[selected=true]:outline-none aria-[selected=true]:ring-2 aria-[selected=true]:ring-primary aria-[selected=true]:ring-opacity-75 aria-[selected=true]:ring-offset-2",
|
15038
|
-
"aria-[selected=true]:bg-
|
15039
|
-
"cursor-pointer p-2 rounded aria-[selected=true]:bg-
|
15038
|
+
"aria-[selected=true]:bg-surface-accent-100 aria-[selected=true]:dark:bg-surface-accent-900",
|
15039
|
+
"cursor-pointer p-2 rounded aria-[selected=true]:bg-surface-accent-100 aria-[selected=true]:dark:bg-surface-accent-900",
|
15040
15040
|
className
|
15041
15041
|
),
|
15042
15042
|
children: [
|
@@ -15057,9 +15057,9 @@ function InnerCheckBox({ checked }) {
|
|
15057
15057
|
className: cls(
|
15058
15058
|
"border-2 relative transition-colors ease-in-out duration-150",
|
15059
15059
|
"w-4 h-4 rounded flex items-center justify-center",
|
15060
|
-
checked ? "bg-primary" : "bg-white dark:bg-
|
15061
|
-
checked ? "text-
|
15062
|
-
checked ? "border-transparent" : "border-
|
15060
|
+
checked ? "bg-primary" : "bg-white dark:bg-surface-accent-900",
|
15061
|
+
checked ? "text-surface-accent-100 dark:text-surface-accent-900" : "",
|
15062
|
+
checked ? "border-transparent" : "border-surface-accent-800 dark:border-surface-accent-200"
|
15063
15063
|
),
|
15064
15064
|
children: checked && /* @__PURE__ */ jsx(Icon, { iconKey: "check", size: 16, className: "absolute" })
|
15065
15065
|
}
|
@@ -15147,7 +15147,7 @@ function SearchBar({
|
|
15147
15147
|
className: cls(
|
15148
15148
|
"relative",
|
15149
15149
|
large ? "h-14" : "h-[42px]",
|
15150
|
-
"bg-
|
15150
|
+
"bg-surface-accent-50 dark:bg-surface-800 border",
|
15151
15151
|
defaultBorderMixin,
|
15152
15152
|
"rounded-lg",
|
15153
15153
|
className
|
@@ -15157,7 +15157,7 @@ function SearchBar({
|
|
15157
15157
|
"div",
|
15158
15158
|
{
|
15159
15159
|
className: "absolute p-0 px-4 h-full pointer-events-none flex items-center justify-center top-0",
|
15160
|
-
children: loading ? /* @__PURE__ */ jsx(CircularProgress, { size: "small" }) : /* @__PURE__ */ jsx(SearchIcon, { className: "text-
|
15160
|
+
children: loading ? /* @__PURE__ */ jsx(CircularProgress, { size: "small" }) : /* @__PURE__ */ jsx(SearchIcon, { className: "text-text-disabled dark:text-text-disabled-dark" })
|
15161
15161
|
}
|
15162
15162
|
),
|
15163
15163
|
/* @__PURE__ */ jsx(
|
@@ -15176,7 +15176,8 @@ function SearchBar({
|
|
15176
15176
|
onBlur: () => setActive(false),
|
15177
15177
|
className: cls(
|
15178
15178
|
(disabled || loading) && "pointer-events-none",
|
15179
|
-
"
|
15179
|
+
"placeholder-text-disabled dark:placeholder-text-disabled-dark",
|
15180
|
+
"relative flex items-center rounded-lg transition-all bg-transparent outline-none appearance-none border-none",
|
15180
15181
|
"pl-12 h-full text-current ",
|
15181
15182
|
expandable ? active ? "w-[220px]" : "w-[180px]" : "",
|
15182
15183
|
innerClassName
|
@@ -15271,7 +15272,7 @@ const Select = forwardRef(({
|
|
15271
15272
|
"select-none rounded-md text-sm",
|
15272
15273
|
error ? "text-red-500 dark:text-red-600" : "focus:text-text-primary dark:focus:text-text-primary-dark",
|
15273
15274
|
error ? "border border-red-500 dark:border-red-600" : "",
|
15274
|
-
disabled ? "text-
|
15275
|
+
disabled ? "text-surface-accent-600 dark:text-surface-accent-400" : "text-surface-accent-800 dark:text-white",
|
15275
15276
|
"relative flex flex-row items-center",
|
15276
15277
|
inputClassName
|
15277
15278
|
),
|
@@ -15327,7 +15328,7 @@ const Select = forwardRef(({
|
|
15327
15328
|
SelectPrimitive.Content,
|
15328
15329
|
{
|
15329
15330
|
position,
|
15330
|
-
className: cls(focusedDisabled, "z-50 relative overflow-hidden border bg-white dark:bg-
|
15331
|
+
className: cls(focusedDisabled, "z-50 relative overflow-hidden border bg-white dark:bg-surface-900 p-2 rounded-lg", defaultBorderMixin),
|
15331
15332
|
children: /* @__PURE__ */ jsx(
|
15332
15333
|
SelectPrimitive.Viewport,
|
15333
15334
|
{
|
@@ -15356,10 +15357,10 @@ function SelectItem({
|
|
15356
15357
|
disabled,
|
15357
15358
|
className: cls(
|
15358
15359
|
"w-full",
|
15359
|
-
"relative flex items-center p-2 rounded-md text-sm text-
|
15360
|
+
"relative flex items-center p-2 rounded-md text-sm text-surface-accent-700 dark:text-surface-accent-300",
|
15360
15361
|
"focus:z-10",
|
15361
|
-
"data-[state=checked]:bg-
|
15362
|
-
"data-[state=checked]:focus:bg-
|
15362
|
+
"data-[state=checked]:bg-surface-accent-100 data-[state=checked]:dark:bg-surface-accent-800 focus:bg-surface-accent-100 dark:focus:bg-surface-950",
|
15363
|
+
"data-[state=checked]:focus:bg-surface-accent-200 data-[state=checked]:dark:focus:bg-surface-950",
|
15363
15364
|
disabled ? "opacity-50 cursor-not-allowed" : "cursor-pointer",
|
15364
15365
|
"[&>*]:w-full",
|
15365
15366
|
"overflow-visible",
|
@@ -15389,7 +15390,7 @@ function SelectGroup({
|
|
15389
15390
|
SelectPrimitive.Group,
|
15390
15391
|
{
|
15391
15392
|
className: cls(
|
15392
|
-
"text-xs text-
|
15393
|
+
"text-xs text-surface-accent-900 dark:text-white uppercase tracking-wider font-bold mt-6 first:mt-2",
|
15393
15394
|
"px-2 py-2",
|
15394
15395
|
className
|
15395
15396
|
),
|
@@ -15407,7 +15408,7 @@ function SliderThumb(props) {
|
|
15407
15408
|
className: cls(
|
15408
15409
|
{
|
15409
15410
|
"border-primary bg-primary hover:bg-primary-dark outline-none": !props.props.disabled,
|
15410
|
-
"border-
|
15411
|
+
"border-surface-accent-300 bg-surface-accent-300 dark:border-surface-700 dark:bg-surface-700": props.props.disabled
|
15411
15412
|
},
|
15412
15413
|
props.classes,
|
15413
15414
|
"focus-visible:ring-4 focus-visible:ring-primary focus-visible:ring-opacity-50",
|
@@ -15424,7 +15425,7 @@ function SliderThumb(props) {
|
|
15424
15425
|
className: cls(
|
15425
15426
|
"TooltipContent",
|
15426
15427
|
"max-w-lg leading-relaxed",
|
15427
|
-
"z-50 rounded px-3 py-2 text-xs leading-none bg-
|
15428
|
+
"z-50 rounded px-3 py-2 text-xs leading-none bg-surface-accent-700 dark:bg-surface-accent-800 bg-opacity-90 font-medium text-surface-accent-50 shadow-2xl select-none duration-400 ease-in transform opacity-100"
|
15428
15429
|
),
|
15429
15430
|
children: props.props.value?.[props.index]
|
15430
15431
|
}
|
@@ -15454,13 +15455,13 @@ const Slider = React.forwardRef(({
|
|
15454
15455
|
SliderPrimitive.Track,
|
15455
15456
|
{
|
15456
15457
|
style: { height: size === "small" ? 4 : 8 },
|
15457
|
-
className: "relative w-full grow overflow-hidden rounded-full bg-
|
15458
|
+
className: "relative w-full grow overflow-hidden rounded-full bg-surface-accent-300 bg-opacity-40 dark:bg-surface-700 dark:bg-opacity-40",
|
15458
15459
|
children: /* @__PURE__ */ jsx(
|
15459
15460
|
SliderPrimitive.Range,
|
15460
15461
|
{
|
15461
15462
|
className: cls("absolute h-full", {
|
15462
15463
|
"bg-primary": !props.disabled,
|
15463
|
-
"bg-
|
15464
|
+
"bg-surface-accent-300 dark:bg-surface-700": props.disabled
|
15464
15465
|
})
|
15465
15466
|
}
|
15466
15467
|
)
|
@@ -15527,7 +15528,7 @@ const Sheet = ({
|
|
15527
15528
|
className: cls(
|
15528
15529
|
"fixed inset-0 transition-opacity z-20 ease-in-out duration-100 backdrop-blur-sm",
|
15529
15530
|
"bg-black bg-opacity-50",
|
15530
|
-
"dark:bg-
|
15531
|
+
"dark:bg-surface-900 dark:bg-opacity-60",
|
15531
15532
|
displayed && open ? "opacity-100" : "opacity-0",
|
15532
15533
|
overlayClassName
|
15533
15534
|
),
|
@@ -15546,11 +15547,11 @@ const Sheet = ({
|
|
15546
15547
|
defaultBorderMixin,
|
15547
15548
|
"transform-gpu",
|
15548
15549
|
"will-change-transform",
|
15549
|
-
"text-
|
15550
|
+
"text-surface-accent-900 dark:text-white",
|
15550
15551
|
"fixed transform z-20 transition-all ease-in-out",
|
15551
15552
|
!displayed ? "duration-150" : "duration-100",
|
15552
15553
|
"outline-none focus:outline-none",
|
15553
|
-
transparent ? "" : "shadow-md bg-white dark:bg-
|
15554
|
+
transparent ? "" : "shadow-md bg-white dark:bg-surface-950",
|
15554
15555
|
side === "top" || side === "bottom" ? "w-full" : "h-full",
|
15555
15556
|
side === "left" || side === "top" ? "left-0 top-0" : "right-0 bottom-0",
|
15556
15557
|
displayed && open ? "opacity-100" : "opacity-50",
|
@@ -15849,7 +15850,7 @@ function TextField({
|
|
15849
15850
|
className: cls(
|
15850
15851
|
invisible ? focusedInvisibleMixin : "",
|
15851
15852
|
"rounded-md resize-none w-full outline-none p-[32px] text-base bg-transparent min-h-[64px] px-3 pt-8",
|
15852
|
-
disabled && "border border-transparent outline-none opacity-50 text-
|
15853
|
+
disabled && "border border-transparent outline-none opacity-50 text-surface-accent-600 dark:text-surface-accent-500"
|
15853
15854
|
)
|
15854
15855
|
}
|
15855
15856
|
) : /* @__PURE__ */ jsx(
|
@@ -15869,7 +15870,7 @@ function TextField({
|
|
15869
15870
|
label ? size === "medium" ? "pt-8 pb-2" : "pt-4 pb-2" : "py-2",
|
15870
15871
|
focused ? "text-text-primary dark:text-text-primary-dark" : "",
|
15871
15872
|
endAdornment ? "pr-10" : "pr-3",
|
15872
|
-
disabled && "border border-transparent outline-none opacity-50 dark:opacity-50 text-
|
15873
|
+
disabled && "border border-transparent outline-none opacity-50 dark:opacity-50 text-surface-accent-800 dark:text-white",
|
15873
15874
|
inputClassName
|
15874
15875
|
),
|
15875
15876
|
placeholder: focused || hasValue || !label ? placeholder : void 0,
|
@@ -15952,7 +15953,7 @@ const Tooltip = ({
|
|
15952
15953
|
className: cls(
|
15953
15954
|
"TooltipContent",
|
15954
15955
|
"max-w-lg leading-relaxed",
|
15955
|
-
"z-50 rounded px-3 py-2 text-xs leading-none bg-
|
15956
|
+
"z-50 rounded px-3 py-2 text-xs leading-none bg-surface-accent-700 dark:bg-surface-accent-800 bg-opacity-90 font-medium text-surface-accent-50 shadow-2xl select-none duration-400 ease-in transform opacity-100",
|
15956
15957
|
tooltipClassName
|
15957
15958
|
),
|
15958
15959
|
style: tooltipStyle,
|
@@ -16036,7 +16037,7 @@ function Tabs({
|
|
16036
16037
|
children
|
16037
16038
|
}) {
|
16038
16039
|
return /* @__PURE__ */ jsx(TabsPrimitive.Root, { value, onValueChange, children: /* @__PURE__ */ jsx(TabsPrimitive.List, { className: cls(
|
16039
|
-
"flex text-sm font-medium text-center text-
|
16040
|
+
"flex text-sm font-medium text-center text-surface-accent-800 dark:text-white max-w-full overflow-auto no-scrollbar",
|
16040
16041
|
className
|
16041
16042
|
), children }) });
|
16042
16043
|
}
|
@@ -16054,18 +16055,18 @@ function Tab({
|
|
16054
16055
|
className: cls(
|
16055
16056
|
"border-b-2 border-transparent",
|
16056
16057
|
"data-[state=active]:border-secondary",
|
16057
|
-
disabled ? "text-
|
16058
|
-
"text-
|
16059
|
-
"data-[state=active]:text-
|
16060
|
-
"hover:text-
|
16058
|
+
disabled ? "text-surface-accent-400 dark:text-surface-accent-500" : cls(
|
16059
|
+
"text-surface-accent-700 dark:text-surface-accent-300",
|
16060
|
+
"data-[state=active]:text-surface-accent-900 data-[state=active]:dark:text-white",
|
16061
|
+
"hover:text-surface-accent-800 dark:hover:text-surface-accent-200"
|
16061
16062
|
),
|
16062
|
-
// disabled ? "text-
|
16063
|
-
// "data-[state=active]:bg-
|
16063
|
+
// disabled ? "text-surface-accent-400 dark:text-surface-accent-500" : "data-[state=active]:text-primary",
|
16064
|
+
// "data-[state=active]:bg-surface-accent-50 data-[state=active]:dark:bg-surface-accent-800",
|
16064
16065
|
className
|
16065
16066
|
),
|
16066
16067
|
children: /* @__PURE__ */ jsx("div", { className: cls(
|
16067
16068
|
"uppercase inline-block p-2 px-4 m-2 rounded",
|
16068
|
-
"hover:bg-
|
16069
|
+
"hover:bg-surface-accent-200 hover:bg-opacity-75 dark:hover:bg-surface-accent-800"
|
16069
16070
|
), children })
|
16070
16071
|
}
|
16071
16072
|
);
|
@@ -16078,7 +16079,7 @@ const Table = ({
|
|
16078
16079
|
}) => /* @__PURE__ */ jsx(
|
16079
16080
|
"table",
|
16080
16081
|
{
|
16081
|
-
className: cls("text-left text-
|
16082
|
+
className: cls("text-left text-surface-800 dark:text-white rounded-md overflow-x-auto", className),
|
16082
16083
|
style,
|
16083
16084
|
...rest,
|
16084
16085
|
children
|
@@ -16091,7 +16092,7 @@ const TableBody = ({
|
|
16091
16092
|
}) => /* @__PURE__ */ jsx(
|
16092
16093
|
"tbody",
|
16093
16094
|
{
|
16094
|
-
className: cls("bg-white dark:bg-
|
16095
|
+
className: cls("bg-white dark:bg-surface-950 text-sm divide-y divide-surface-100 dark:divide-surface-700 dark:divide-opacity-70", className),
|
16095
16096
|
...rest,
|
16096
16097
|
children
|
16097
16098
|
}
|
@@ -16105,8 +16106,8 @@ const TableHeader = ({
|
|
16105
16106
|
{
|
16106
16107
|
className: cls(
|
16107
16108
|
defaultBorderMixin,
|
16108
|
-
"text-sm font-medium text-
|
16109
|
-
"bg-
|
16109
|
+
"text-sm font-medium text-surface-700 dark:text-surface-accent-300",
|
16110
|
+
"bg-surface-accent-50 border-b dark:bg-surface-900",
|
16110
16111
|
className
|
16111
16112
|
),
|
16112
16113
|
children
|
@@ -16124,8 +16125,8 @@ const TableRow = ({
|
|
16124
16125
|
onClick,
|
16125
16126
|
style,
|
16126
16127
|
className: cls(
|
16127
|
-
"bg-white dark:bg-
|
16128
|
-
onClick ? "hover:bg-
|
16128
|
+
"bg-white dark:bg-surface-950",
|
16129
|
+
onClick ? "hover:bg-surface-accent-100 dark:hover:bg-surface-accent-800 cursor-pointer" : "",
|
16129
16130
|
className
|
16130
16131
|
),
|
16131
16132
|
...rest,
|
@@ -16227,7 +16228,7 @@ function Popover({
|
|
16227
16228
|
avoidCollisions,
|
16228
16229
|
children: [
|
16229
16230
|
children,
|
16230
|
-
/* @__PURE__ */ jsx(PopoverPrimitive.Arrow, { className: "fill-white dark:fill-
|
16231
|
+
/* @__PURE__ */ jsx(PopoverPrimitive.Arrow, { className: "fill-white dark:fill-surface-accent-950" })
|
16231
16232
|
]
|
16232
16233
|
}
|
16233
16234
|
) })
|
@@ -16309,7 +16310,7 @@ const getColor = (color) => {
|
|
16309
16310
|
case "error":
|
16310
16311
|
return "bg-red-500";
|
16311
16312
|
default:
|
16312
|
-
return "bg-
|
16313
|
+
return "bg-surface-accent-300 dark:bg-surface-accent-700";
|
16313
16314
|
}
|
16314
16315
|
};
|
16315
16316
|
const Badge = ({
|
@@ -16372,7 +16373,7 @@ function Skeleton({
|
|
16372
16373
|
},
|
16373
16374
|
className: cls(
|
16374
16375
|
"block",
|
16375
|
-
"bg-
|
16376
|
+
"bg-surface-accent-200 dark:bg-surface-accent-800 rounded-md",
|
16376
16377
|
"animate-pulse",
|
16377
16378
|
"max-w-full max-h-full",
|
16378
16379
|
className
|