@firecms/ui 3.0.0-canary.143 → 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 +112 -106
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +112 -106
- 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 +36 -23
- package/src/components/Badge.tsx +1 -1
- package/src/components/BooleanSwitch.tsx +4 -4
- package/src/components/BooleanSwitchWithLabel.tsx +2 -2
- 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
|
}
|
@@ -366,6 +366,10 @@ const AvatarInner = ({
|
|
366
366
|
outerClassName,
|
367
367
|
...props
|
368
368
|
}, ref) => {
|
369
|
+
const [isImageError, setIsImageError] = useState(false);
|
370
|
+
const handleImageError = () => {
|
371
|
+
setIsImageError(true);
|
372
|
+
};
|
369
373
|
return /* @__PURE__ */ jsx(
|
370
374
|
"button",
|
371
375
|
{
|
@@ -374,27 +378,28 @@ const AvatarInner = ({
|
|
374
378
|
...props,
|
375
379
|
className: cls(
|
376
380
|
"rounded-full flex items-center justify-center overflow-hidden",
|
377
|
-
"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",
|
378
382
|
outerClassName
|
379
383
|
),
|
380
|
-
children: src ? /* @__PURE__ */ jsx(
|
384
|
+
children: src && !isImageError ? /* @__PURE__ */ jsx(
|
381
385
|
"img",
|
382
386
|
{
|
383
387
|
className: cls(
|
384
|
-
"bg-
|
388
|
+
"bg-surface-accent-100 dark:bg-surface-accent-800",
|
385
389
|
"w-full h-full object-cover rounded-full",
|
386
390
|
className
|
387
391
|
),
|
388
392
|
src,
|
389
|
-
alt
|
393
|
+
alt,
|
394
|
+
onError: handleImageError
|
390
395
|
}
|
391
396
|
) : /* @__PURE__ */ jsx(
|
392
397
|
"span",
|
393
398
|
{
|
394
399
|
className: cls(
|
395
|
-
"bg-
|
400
|
+
"bg-surface-accent-100 dark:bg-surface-accent-800",
|
396
401
|
"flex items-center justify-center",
|
397
|
-
"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",
|
398
403
|
className
|
399
404
|
),
|
400
405
|
children
|
@@ -433,7 +438,7 @@ const BooleanSwitch = React__default.forwardRef(
|
|
433
438
|
className: cls(
|
434
439
|
size === "smallest" ? "w-[38px] h-[22px] min-w-[38px] min-h-[22px]" : "w-[42px] h-[26px] min-w-[42px] min-h-[26px]",
|
435
440
|
"outline-none rounded-full relative shadow-sm",
|
436
|
-
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",
|
437
442
|
className
|
438
443
|
),
|
439
444
|
...props,
|
@@ -443,7 +448,7 @@ const BooleanSwitch = React__default.forwardRef(
|
|
443
448
|
{
|
444
449
|
className: cls(
|
445
450
|
"block rounded-full transition-transform duration-100 transform will-change-auto",
|
446
|
-
disabled ? "bg-
|
451
|
+
disabled ? "bg-surface-accent-400 dark:bg-surface-accent-600" : "bg-surface-accent-400 dark:bg-surface-accent-600",
|
447
452
|
{
|
448
453
|
"w-[21px] h-[10px]": size === "small" || size === "medium",
|
449
454
|
"w-[19px] h-[8px]": size === "smallest",
|
@@ -459,7 +464,7 @@ const BooleanSwitch = React__default.forwardRef(
|
|
459
464
|
{
|
460
465
|
className: cls(
|
461
466
|
"block rounded-full transition-transform duration-100 transform will-change-auto",
|
462
|
-
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",
|
463
468
|
{
|
464
469
|
"w-[21px] h-[21px]": size === "small" || size === "medium",
|
465
470
|
"w-[19px] h-[19px]": size === "smallest",
|
@@ -509,7 +514,7 @@ const BooleanSwitchWithLabel = function BooleanSwitchWithLabel2({
|
|
509
514
|
!invisible && fieldBackgroundMixin,
|
510
515
|
!invisible && (disabled ? fieldBackgroundDisabledMixin : fieldBackgroundHoverMixin),
|
511
516
|
disabled ? "cursor-default" : "cursor-pointer",
|
512
|
-
"rounded-md max-w-full justify-between
|
517
|
+
"rounded-md max-w-full justify-between box-border relative inline-flex items-center",
|
513
518
|
!invisible && focus && !disabled ? focusedClasses : "",
|
514
519
|
error ? "text-red-500 dark:text-red-600" : focus && !disabled ? "text-primary" : !disabled ? "text-text-primary dark:text-text-primary-dark" : "text-text-secondary dark:text-text-secondary-dark",
|
515
520
|
size === "smallest" ? "min-h-[40px]" : size === "small" ? "min-h-[48px]" : "min-h-[64px]",
|
@@ -569,21 +574,21 @@ const ButtonInner = React__default.forwardRef(({
|
|
569
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,
|
570
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,
|
571
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,
|
572
|
-
"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,
|
573
578
|
// Text Variants
|
574
|
-
"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,
|
575
580
|
"border border-transparent text-secondary hover:text-secondary hover:bg-secondary-bg": variant === "text" && color === "secondary" && !disabled,
|
576
581
|
"border border-transparent text-red-500 hover:text-red-500 hover:bg-red-500 hover:bg-opacity-10": variant === "text" && color === "error" && !disabled,
|
577
|
-
"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,
|
578
583
|
// Outlined Variants
|
579
584
|
"border border-primary text-primary hover:text-primary hover:bg-primary-bg": variant === "outlined" && color === "primary" && !disabled,
|
580
585
|
"border border-secondary text-secondary hover:text-secondary hover:bg-secondary-bg": variant === "outlined" && color === "secondary" && !disabled,
|
581
586
|
"border border-red-500 text-red-500 hover:text-red-500 hover:bg-red-500 hover:text-white": variant === "outlined" && color === "error" && !disabled,
|
582
|
-
"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,
|
583
588
|
// Disabled states for all variants
|
584
589
|
"border border-transparent opacity-50": variant === "text" && disabled,
|
585
|
-
"border border-
|
586
|
-
"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
|
587
592
|
});
|
588
593
|
const sizeClasses2 = cls(
|
589
594
|
{
|
@@ -735,7 +740,7 @@ function CircularProgress({
|
|
735
740
|
sizeClasses2,
|
736
741
|
borderClasses,
|
737
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]",
|
738
|
-
"text-primary
|
743
|
+
"text-primary dark:text-primary",
|
739
744
|
className
|
740
745
|
),
|
741
746
|
role: "status",
|
@@ -13594,7 +13599,7 @@ const Checkbox = ({
|
|
13594
13599
|
padding ? paddingClasses[size] : "",
|
13595
13600
|
outerSizeClasses[size],
|
13596
13601
|
"inline-flex items-center justify-center text-sm font-medium focus:outline-none transition-colors ease-in-out duration-150",
|
13597
|
-
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" : "",
|
13598
13603
|
onCheckedChange ? "cursor-pointer" : "cursor-default"
|
13599
13604
|
), children: /* @__PURE__ */ jsx(
|
13600
13605
|
"div",
|
@@ -13602,9 +13607,9 @@ const Checkbox = ({
|
|
13602
13607
|
className: cls(
|
13603
13608
|
"border-2 relative transition-colors ease-in-out duration-150",
|
13604
13609
|
sizeClasses$1[size],
|
13605
|
-
disabled ? indeterminate || isChecked ? "bg-
|
13606
|
-
indeterminate || isChecked ? "text-
|
13607
|
-
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"
|
13608
13613
|
),
|
13609
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" }) })
|
13610
13615
|
}
|
@@ -13635,9 +13640,9 @@ function Chip({
|
|
13635
13640
|
className: cls(
|
13636
13641
|
"rounded-lg max-w-full w-max h-fit font-regular inline-flex gap-1",
|
13637
13642
|
"text-ellipsis",
|
13638
|
-
onClick ? "cursor-pointer hover:bg-
|
13643
|
+
onClick ? "cursor-pointer hover:bg-surface-accent-300 hover:dark:bg-surface-accent-700" : "",
|
13639
13644
|
sizeClassNames[size],
|
13640
|
-
error || !usedColorScheme ? "bg-
|
13645
|
+
error || !usedColorScheme ? "bg-surface-accent-200 dark:bg-surface-accent-800 text-surface-accent-800 dark:text-white" : "",
|
13641
13646
|
error ? "text-red-500 dark:text-red-400" : "",
|
13642
13647
|
className
|
13643
13648
|
),
|
@@ -13658,9 +13663,9 @@ function Chip({
|
|
13658
13663
|
}
|
13659
13664
|
);
|
13660
13665
|
}
|
13661
|
-
const buttonClasses = "hover:bg-
|
13666
|
+
const buttonClasses = "hover:bg-surface-accent-200 hover:bg-opacity-75 dark:hover:bg-surface-accent-800";
|
13662
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";
|
13663
|
-
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";
|
13664
13669
|
const sizeClasses = {
|
13665
13670
|
medium: "w-10 !h-10 min-w-10 min-h-10",
|
13666
13671
|
small: "w-8 !h-8 min-w-8 min-h-8",
|
@@ -13682,7 +13687,7 @@ const IconButtonInner = ({
|
|
13682
13687
|
component,
|
13683
13688
|
...props
|
13684
13689
|
}, ref) => {
|
13685
|
-
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";
|
13686
13691
|
const Component = component || "button";
|
13687
13692
|
return /* @__PURE__ */ jsx(
|
13688
13693
|
Component,
|
@@ -13944,7 +13949,7 @@ const DateTimeField = ({
|
|
13944
13949
|
size === "small" ? "min-h-[48px]" : "min-h-[64px]",
|
13945
13950
|
label ? "pt-8 pb-2" : "py-2",
|
13946
13951
|
inputClassName,
|
13947
|
-
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"
|
13948
13953
|
)
|
13949
13954
|
}
|
13950
13955
|
),
|
@@ -13955,7 +13960,7 @@ const DateTimeField = ({
|
|
13955
13960
|
e.stopPropagation();
|
13956
13961
|
inputRef.current?.showPicker();
|
13957
13962
|
},
|
13958
|
-
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",
|
13959
13964
|
children: /* @__PURE__ */ jsx(CalendarMonthIcon, { color: "disabled" })
|
13960
13965
|
}
|
13961
13966
|
),
|
@@ -13963,7 +13968,7 @@ const DateTimeField = ({
|
|
13963
13968
|
IconButton,
|
13964
13969
|
{
|
13965
13970
|
onClick: handleClear,
|
13966
|
-
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 ",
|
13967
13972
|
children: /* @__PURE__ */ jsx(ClearIcon, {})
|
13968
13973
|
}
|
13969
13974
|
)
|
@@ -14073,7 +14078,7 @@ const Dialog = ({
|
|
14073
14078
|
"outline-none focus:outline-none",
|
14074
14079
|
fullWidth && !fullScreen ? "w-11/12" : void 0,
|
14075
14080
|
fullHeight && !fullScreen ? "h-full" : void 0,
|
14076
|
-
"text-
|
14081
|
+
"text-surface-accent-900 dark:text-white",
|
14077
14082
|
"justify-center items-center",
|
14078
14083
|
fullScreen ? "h-screen w-screen" : "max-h-[90vh] shadow-xl",
|
14079
14084
|
"ease-in-out duration-200",
|
@@ -14104,7 +14109,7 @@ function DialogActions({
|
|
14104
14109
|
defaultBorderMixin,
|
14105
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",
|
14106
14111
|
position,
|
14107
|
-
"bg-white bg-opacity-60 dark:bg-
|
14112
|
+
"bg-white bg-opacity-60 dark:bg-surface-900 dark:bg-opacity-60",
|
14108
14113
|
translucent ? "backdrop-blur-sm" : "",
|
14109
14114
|
className
|
14110
14115
|
),
|
@@ -14223,7 +14228,7 @@ function ExpandablePanel({
|
|
14223
14228
|
{
|
14224
14229
|
className: cls(
|
14225
14230
|
"rounded-t flex items-center justify-between w-full min-h-[52px]",
|
14226
|
-
"hover:bg-
|
14231
|
+
"hover:bg-surface-accent-200 hover:bg-opacity-20 dark:hover:bg-surface-800 dark:hover:bg-opacity-20",
|
14227
14232
|
invisible ? "border-b px-2" : "p-4",
|
14228
14233
|
open ? "py-6" : "py-4",
|
14229
14234
|
"transition-all duration-200",
|
@@ -14354,8 +14359,8 @@ const Label = React.forwardRef(({
|
|
14354
14359
|
onClick,
|
14355
14360
|
className: cls(
|
14356
14361
|
"text-sm font-medium peer-disabled:cursor-not-allowed peer-disabled:opacity-70",
|
14357
|
-
border && "border border-
|
14358
|
-
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",
|
14359
14364
|
defaultBorderMixin,
|
14360
14365
|
className
|
14361
14366
|
),
|
@@ -14387,8 +14392,8 @@ function LoadingButton({
|
|
14387
14392
|
);
|
14388
14393
|
}
|
14389
14394
|
const proseClasses = {
|
14390
|
-
small: "prose-sm
|
14391
|
-
medium: "prose
|
14395
|
+
small: "prose-sm typography-body2",
|
14396
|
+
medium: "prose typography-body1",
|
14392
14397
|
large: "prose-lg",
|
14393
14398
|
xl: "prose-xl",
|
14394
14399
|
"2xl": "prose-2xl"
|
@@ -14458,7 +14463,7 @@ function MenuItem({
|
|
14458
14463
|
}) {
|
14459
14464
|
const classNames = cls(
|
14460
14465
|
onClick && "cursor-pointer",
|
14461
|
-
"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",
|
14462
14467
|
dense ? "px-3 py-1.5" : "px-4 py-2"
|
14463
14468
|
);
|
14464
14469
|
return /* @__PURE__ */ jsx(
|
@@ -14479,7 +14484,7 @@ function Menubar({
|
|
14479
14484
|
MenubarPrimitive.Root,
|
14480
14485
|
{
|
14481
14486
|
onSelect,
|
14482
|
-
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),
|
14483
14488
|
children
|
14484
14489
|
}
|
14485
14490
|
);
|
@@ -14499,7 +14504,7 @@ function MenubarTrigger({
|
|
14499
14504
|
{
|
14500
14505
|
onSelect,
|
14501
14506
|
className: cls(
|
14502
|
-
"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",
|
14503
14508
|
className
|
14504
14509
|
),
|
14505
14510
|
children
|
@@ -14524,7 +14529,7 @@ function MenubarContent({
|
|
14524
14529
|
MenubarPrimitive.Content,
|
14525
14530
|
{
|
14526
14531
|
onSelect,
|
14527
|
-
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),
|
14528
14533
|
align: align ?? "start",
|
14529
14534
|
sideOffset: sideOffset ?? 5,
|
14530
14535
|
alignOffset: alignOffset ?? -3,
|
@@ -14546,7 +14551,7 @@ function MenubarItem({
|
|
14546
14551
|
{
|
14547
14552
|
onSelect,
|
14548
14553
|
className: cls(
|
14549
|
-
"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",
|
14550
14555
|
leftPadding ? "pl-5" : "",
|
14551
14556
|
disabled ? "pointer-events-none text-text-secondary dark:text-text-secondary-dark" : "text-text-primary dark:text-text-primary-dark",
|
14552
14557
|
className
|
@@ -14565,7 +14570,7 @@ function MenubarSeparator({
|
|
14565
14570
|
return /* @__PURE__ */ jsx(
|
14566
14571
|
MenubarPrimitive.Separator,
|
14567
14572
|
{
|
14568
|
-
className: cls("h-[1px] bg-
|
14573
|
+
className: cls("h-[1px] bg-surface-accent-100 dark:bg-surface-800 m-[5px]", className),
|
14569
14574
|
...rest,
|
14570
14575
|
children
|
14571
14576
|
}
|
@@ -14594,7 +14599,7 @@ function MenubarSubTrigger({
|
|
14594
14599
|
{
|
14595
14600
|
onSelect,
|
14596
14601
|
className: cls(
|
14597
|
-
"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",
|
14598
14603
|
className
|
14599
14604
|
),
|
14600
14605
|
...rest,
|
@@ -14615,7 +14620,7 @@ function MenubarSubContent({
|
|
14615
14620
|
onSelect,
|
14616
14621
|
alignOffset: alignOffset ?? -5,
|
14617
14622
|
className: cls(
|
14618
|
-
"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]",
|
14619
14624
|
className
|
14620
14625
|
),
|
14621
14626
|
...rest,
|
@@ -14636,7 +14641,7 @@ function MenubarCheckboxItem({
|
|
14636
14641
|
{
|
14637
14642
|
onSelect,
|
14638
14643
|
className: cls(
|
14639
|
-
"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",
|
14640
14645
|
className
|
14641
14646
|
),
|
14642
14647
|
checked,
|
@@ -14692,7 +14697,7 @@ function MenubarRadioItem({
|
|
14692
14697
|
{
|
14693
14698
|
onSelect,
|
14694
14699
|
className: cls(
|
14695
|
-
"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",
|
14696
14701
|
className
|
14697
14702
|
),
|
14698
14703
|
value,
|
@@ -14732,14 +14737,14 @@ function Separator({
|
|
14732
14737
|
{
|
14733
14738
|
decorative,
|
14734
14739
|
orientation: "horizontal",
|
14735
|
-
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)
|
14736
14741
|
}
|
14737
14742
|
);
|
14738
14743
|
else
|
14739
14744
|
return /* @__PURE__ */ jsx(
|
14740
14745
|
SeparatorPrimitive.Root,
|
14741
14746
|
{
|
14742
|
-
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),
|
14743
14748
|
decorative,
|
14744
14749
|
orientation: "vertical"
|
14745
14750
|
}
|
@@ -14748,7 +14753,7 @@ function Separator({
|
|
14748
14753
|
function SelectInputLabel({ children, error }) {
|
14749
14754
|
return /* @__PURE__ */ jsx("div", { className: cls(
|
14750
14755
|
"text-sm font-medium ml-3.5 mb-1",
|
14751
|
-
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"
|
14752
14757
|
), children });
|
14753
14758
|
}
|
14754
14759
|
const MultiSelectContext = React.createContext({});
|
@@ -14939,7 +14944,7 @@ const MultiSelect = React.forwardRef(
|
|
14939
14944
|
/* @__PURE__ */ jsx(
|
14940
14945
|
PopoverPrimitive.Content,
|
14941
14946
|
{
|
14942
|
-
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),
|
14943
14948
|
align: "start",
|
14944
14949
|
sideOffset: 8,
|
14945
14950
|
onEscapeKeyDown: () => onPopoverOpenChange(false),
|
@@ -14976,8 +14981,8 @@ const MultiSelect = React.forwardRef(
|
|
14976
14981
|
"m-1",
|
14977
14982
|
"ring-offset-transparent",
|
14978
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",
|
14979
|
-
"aria-[selected=true]:bg-
|
14980
|
-
"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"
|
14981
14986
|
),
|
14982
14987
|
children: [
|
14983
14988
|
/* @__PURE__ */ jsx(InnerCheckBox, { checked: selectedValues.length === allValues.length }),
|
@@ -15025,13 +15030,13 @@ function MultiSelectItem({
|
|
15025
15030
|
},
|
15026
15031
|
className: cls(
|
15027
15032
|
"flex flex-row items-center gap-1.5",
|
15028
|
-
isSelected ? "bg-
|
15033
|
+
isSelected ? "bg-surface-accent-200 dark:bg-surface-accent-950" : "",
|
15029
15034
|
"cursor-pointer",
|
15030
15035
|
"m-1",
|
15031
15036
|
"ring-offset-transparent",
|
15032
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",
|
15033
|
-
"aria-[selected=true]:bg-
|
15034
|
-
"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",
|
15035
15040
|
className
|
15036
15041
|
),
|
15037
15042
|
children: [
|
@@ -15052,9 +15057,9 @@ function InnerCheckBox({ checked }) {
|
|
15052
15057
|
className: cls(
|
15053
15058
|
"border-2 relative transition-colors ease-in-out duration-150",
|
15054
15059
|
"w-4 h-4 rounded flex items-center justify-center",
|
15055
|
-
checked ? "bg-primary" : "bg-white dark:bg-
|
15056
|
-
checked ? "text-
|
15057
|
-
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"
|
15058
15063
|
),
|
15059
15064
|
children: checked && /* @__PURE__ */ jsx(Icon, { iconKey: "check", size: 16, className: "absolute" })
|
15060
15065
|
}
|
@@ -15142,7 +15147,7 @@ function SearchBar({
|
|
15142
15147
|
className: cls(
|
15143
15148
|
"relative",
|
15144
15149
|
large ? "h-14" : "h-[42px]",
|
15145
|
-
"bg-
|
15150
|
+
"bg-surface-accent-50 dark:bg-surface-800 border",
|
15146
15151
|
defaultBorderMixin,
|
15147
15152
|
"rounded-lg",
|
15148
15153
|
className
|
@@ -15152,7 +15157,7 @@ function SearchBar({
|
|
15152
15157
|
"div",
|
15153
15158
|
{
|
15154
15159
|
className: "absolute p-0 px-4 h-full pointer-events-none flex items-center justify-center top-0",
|
15155
|
-
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" })
|
15156
15161
|
}
|
15157
15162
|
),
|
15158
15163
|
/* @__PURE__ */ jsx(
|
@@ -15171,7 +15176,8 @@ function SearchBar({
|
|
15171
15176
|
onBlur: () => setActive(false),
|
15172
15177
|
className: cls(
|
15173
15178
|
(disabled || loading) && "pointer-events-none",
|
15174
|
-
"
|
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",
|
15175
15181
|
"pl-12 h-full text-current ",
|
15176
15182
|
expandable ? active ? "w-[220px]" : "w-[180px]" : "",
|
15177
15183
|
innerClassName
|
@@ -15266,7 +15272,7 @@ const Select = forwardRef(({
|
|
15266
15272
|
"select-none rounded-md text-sm",
|
15267
15273
|
error ? "text-red-500 dark:text-red-600" : "focus:text-text-primary dark:focus:text-text-primary-dark",
|
15268
15274
|
error ? "border border-red-500 dark:border-red-600" : "",
|
15269
|
-
disabled ? "text-
|
15275
|
+
disabled ? "text-surface-accent-600 dark:text-surface-accent-400" : "text-surface-accent-800 dark:text-white",
|
15270
15276
|
"relative flex flex-row items-center",
|
15271
15277
|
inputClassName
|
15272
15278
|
),
|
@@ -15322,7 +15328,7 @@ const Select = forwardRef(({
|
|
15322
15328
|
SelectPrimitive.Content,
|
15323
15329
|
{
|
15324
15330
|
position,
|
15325
|
-
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),
|
15326
15332
|
children: /* @__PURE__ */ jsx(
|
15327
15333
|
SelectPrimitive.Viewport,
|
15328
15334
|
{
|
@@ -15351,10 +15357,10 @@ function SelectItem({
|
|
15351
15357
|
disabled,
|
15352
15358
|
className: cls(
|
15353
15359
|
"w-full",
|
15354
|
-
"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",
|
15355
15361
|
"focus:z-10",
|
15356
|
-
"data-[state=checked]:bg-
|
15357
|
-
"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",
|
15358
15364
|
disabled ? "opacity-50 cursor-not-allowed" : "cursor-pointer",
|
15359
15365
|
"[&>*]:w-full",
|
15360
15366
|
"overflow-visible",
|
@@ -15384,7 +15390,7 @@ function SelectGroup({
|
|
15384
15390
|
SelectPrimitive.Group,
|
15385
15391
|
{
|
15386
15392
|
className: cls(
|
15387
|
-
"text-xs text-
|
15393
|
+
"text-xs text-surface-accent-900 dark:text-white uppercase tracking-wider font-bold mt-6 first:mt-2",
|
15388
15394
|
"px-2 py-2",
|
15389
15395
|
className
|
15390
15396
|
),
|
@@ -15402,7 +15408,7 @@ function SliderThumb(props) {
|
|
15402
15408
|
className: cls(
|
15403
15409
|
{
|
15404
15410
|
"border-primary bg-primary hover:bg-primary-dark outline-none": !props.props.disabled,
|
15405
|
-
"border-
|
15411
|
+
"border-surface-accent-300 bg-surface-accent-300 dark:border-surface-700 dark:bg-surface-700": props.props.disabled
|
15406
15412
|
},
|
15407
15413
|
props.classes,
|
15408
15414
|
"focus-visible:ring-4 focus-visible:ring-primary focus-visible:ring-opacity-50",
|
@@ -15419,7 +15425,7 @@ function SliderThumb(props) {
|
|
15419
15425
|
className: cls(
|
15420
15426
|
"TooltipContent",
|
15421
15427
|
"max-w-lg leading-relaxed",
|
15422
|
-
"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"
|
15423
15429
|
),
|
15424
15430
|
children: props.props.value?.[props.index]
|
15425
15431
|
}
|
@@ -15449,13 +15455,13 @@ const Slider = React.forwardRef(({
|
|
15449
15455
|
SliderPrimitive.Track,
|
15450
15456
|
{
|
15451
15457
|
style: { height: size === "small" ? 4 : 8 },
|
15452
|
-
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",
|
15453
15459
|
children: /* @__PURE__ */ jsx(
|
15454
15460
|
SliderPrimitive.Range,
|
15455
15461
|
{
|
15456
15462
|
className: cls("absolute h-full", {
|
15457
15463
|
"bg-primary": !props.disabled,
|
15458
|
-
"bg-
|
15464
|
+
"bg-surface-accent-300 dark:bg-surface-700": props.disabled
|
15459
15465
|
})
|
15460
15466
|
}
|
15461
15467
|
)
|
@@ -15522,7 +15528,7 @@ const Sheet = ({
|
|
15522
15528
|
className: cls(
|
15523
15529
|
"fixed inset-0 transition-opacity z-20 ease-in-out duration-100 backdrop-blur-sm",
|
15524
15530
|
"bg-black bg-opacity-50",
|
15525
|
-
"dark:bg-
|
15531
|
+
"dark:bg-surface-900 dark:bg-opacity-60",
|
15526
15532
|
displayed && open ? "opacity-100" : "opacity-0",
|
15527
15533
|
overlayClassName
|
15528
15534
|
),
|
@@ -15541,11 +15547,11 @@ const Sheet = ({
|
|
15541
15547
|
defaultBorderMixin,
|
15542
15548
|
"transform-gpu",
|
15543
15549
|
"will-change-transform",
|
15544
|
-
"text-
|
15550
|
+
"text-surface-accent-900 dark:text-white",
|
15545
15551
|
"fixed transform z-20 transition-all ease-in-out",
|
15546
15552
|
!displayed ? "duration-150" : "duration-100",
|
15547
15553
|
"outline-none focus:outline-none",
|
15548
|
-
transparent ? "" : "shadow-md bg-white dark:bg-
|
15554
|
+
transparent ? "" : "shadow-md bg-white dark:bg-surface-950",
|
15549
15555
|
side === "top" || side === "bottom" ? "w-full" : "h-full",
|
15550
15556
|
side === "left" || side === "top" ? "left-0 top-0" : "right-0 bottom-0",
|
15551
15557
|
displayed && open ? "opacity-100" : "opacity-50",
|
@@ -15844,7 +15850,7 @@ function TextField({
|
|
15844
15850
|
className: cls(
|
15845
15851
|
invisible ? focusedInvisibleMixin : "",
|
15846
15852
|
"rounded-md resize-none w-full outline-none p-[32px] text-base bg-transparent min-h-[64px] px-3 pt-8",
|
15847
|
-
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"
|
15848
15854
|
)
|
15849
15855
|
}
|
15850
15856
|
) : /* @__PURE__ */ jsx(
|
@@ -15864,7 +15870,7 @@ function TextField({
|
|
15864
15870
|
label ? size === "medium" ? "pt-8 pb-2" : "pt-4 pb-2" : "py-2",
|
15865
15871
|
focused ? "text-text-primary dark:text-text-primary-dark" : "",
|
15866
15872
|
endAdornment ? "pr-10" : "pr-3",
|
15867
|
-
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",
|
15868
15874
|
inputClassName
|
15869
15875
|
),
|
15870
15876
|
placeholder: focused || hasValue || !label ? placeholder : void 0,
|
@@ -15947,7 +15953,7 @@ const Tooltip = ({
|
|
15947
15953
|
className: cls(
|
15948
15954
|
"TooltipContent",
|
15949
15955
|
"max-w-lg leading-relaxed",
|
15950
|
-
"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",
|
15951
15957
|
tooltipClassName
|
15952
15958
|
),
|
15953
15959
|
style: tooltipStyle,
|
@@ -16031,7 +16037,7 @@ function Tabs({
|
|
16031
16037
|
children
|
16032
16038
|
}) {
|
16033
16039
|
return /* @__PURE__ */ jsx(TabsPrimitive.Root, { value, onValueChange, children: /* @__PURE__ */ jsx(TabsPrimitive.List, { className: cls(
|
16034
|
-
"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",
|
16035
16041
|
className
|
16036
16042
|
), children }) });
|
16037
16043
|
}
|
@@ -16049,18 +16055,18 @@ function Tab({
|
|
16049
16055
|
className: cls(
|
16050
16056
|
"border-b-2 border-transparent",
|
16051
16057
|
"data-[state=active]:border-secondary",
|
16052
|
-
disabled ? "text-
|
16053
|
-
"text-
|
16054
|
-
"data-[state=active]:text-
|
16055
|
-
"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"
|
16056
16062
|
),
|
16057
|
-
// disabled ? "text-
|
16058
|
-
// "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",
|
16059
16065
|
className
|
16060
16066
|
),
|
16061
16067
|
children: /* @__PURE__ */ jsx("div", { className: cls(
|
16062
16068
|
"uppercase inline-block p-2 px-4 m-2 rounded",
|
16063
|
-
"hover:bg-
|
16069
|
+
"hover:bg-surface-accent-200 hover:bg-opacity-75 dark:hover:bg-surface-accent-800"
|
16064
16070
|
), children })
|
16065
16071
|
}
|
16066
16072
|
);
|
@@ -16073,7 +16079,7 @@ const Table = ({
|
|
16073
16079
|
}) => /* @__PURE__ */ jsx(
|
16074
16080
|
"table",
|
16075
16081
|
{
|
16076
|
-
className: cls("text-left text-
|
16082
|
+
className: cls("text-left text-surface-800 dark:text-white rounded-md overflow-x-auto", className),
|
16077
16083
|
style,
|
16078
16084
|
...rest,
|
16079
16085
|
children
|
@@ -16086,7 +16092,7 @@ const TableBody = ({
|
|
16086
16092
|
}) => /* @__PURE__ */ jsx(
|
16087
16093
|
"tbody",
|
16088
16094
|
{
|
16089
|
-
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),
|
16090
16096
|
...rest,
|
16091
16097
|
children
|
16092
16098
|
}
|
@@ -16100,8 +16106,8 @@ const TableHeader = ({
|
|
16100
16106
|
{
|
16101
16107
|
className: cls(
|
16102
16108
|
defaultBorderMixin,
|
16103
|
-
"text-sm font-medium text-
|
16104
|
-
"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",
|
16105
16111
|
className
|
16106
16112
|
),
|
16107
16113
|
children
|
@@ -16119,8 +16125,8 @@ const TableRow = ({
|
|
16119
16125
|
onClick,
|
16120
16126
|
style,
|
16121
16127
|
className: cls(
|
16122
|
-
"bg-white dark:bg-
|
16123
|
-
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" : "",
|
16124
16130
|
className
|
16125
16131
|
),
|
16126
16132
|
...rest,
|
@@ -16222,7 +16228,7 @@ function Popover({
|
|
16222
16228
|
avoidCollisions,
|
16223
16229
|
children: [
|
16224
16230
|
children,
|
16225
|
-
/* @__PURE__ */ jsx(PopoverPrimitive.Arrow, { className: "fill-white dark:fill-
|
16231
|
+
/* @__PURE__ */ jsx(PopoverPrimitive.Arrow, { className: "fill-white dark:fill-surface-accent-950" })
|
16226
16232
|
]
|
16227
16233
|
}
|
16228
16234
|
) })
|
@@ -16304,7 +16310,7 @@ const getColor = (color) => {
|
|
16304
16310
|
case "error":
|
16305
16311
|
return "bg-red-500";
|
16306
16312
|
default:
|
16307
|
-
return "bg-
|
16313
|
+
return "bg-surface-accent-300 dark:bg-surface-accent-700";
|
16308
16314
|
}
|
16309
16315
|
};
|
16310
16316
|
const Badge = ({
|
@@ -16367,7 +16373,7 @@ function Skeleton({
|
|
16367
16373
|
},
|
16368
16374
|
className: cls(
|
16369
16375
|
"block",
|
16370
|
-
"bg-
|
16376
|
+
"bg-surface-accent-200 dark:bg-surface-accent-800 rounded-md",
|
16371
16377
|
"animate-pulse",
|
16372
16378
|
"max-w-full max-h-full",
|
16373
16379
|
className
|