@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.umd.js
CHANGED
@@ -35,15 +35,15 @@
|
|
35
35
|
const ReactDOM__namespace = /* @__PURE__ */ _interopNamespaceDefault(ReactDOM);
|
36
36
|
const TabsPrimitive__namespace = /* @__PURE__ */ _interopNamespaceDefault(TabsPrimitive);
|
37
37
|
const focusedDisabled = "focus-visible:ring-0 focus-visible:ring-offset-0";
|
38
|
-
const focusedInvisibleMixin = "focus:bg-opacity-70 focus:bg-
|
38
|
+
const focusedInvisibleMixin = "focus:bg-opacity-70 focus:bg-surface-accent-100 focus:dark:bg-surface-800 focus:dark:bg-opacity-60";
|
39
39
|
const focusedClasses = "z-30 outline-none ring-2 ring-primary ring-opacity-75 ring-offset-2 ring-offset-transparent ";
|
40
|
-
const fieldBackgroundMixin = "bg-opacity-50 bg-
|
41
|
-
const fieldBackgroundInvisibleMixin = "bg-opacity-0 bg-
|
42
|
-
const fieldBackgroundDisabledMixin = "dark:bg-
|
43
|
-
const fieldBackgroundHoverMixin = "hover:bg-opacity-70 dark:hover:bg-
|
44
|
-
const defaultBorderMixin = "border-
|
45
|
-
const paperMixin = "bg-white rounded-md dark:bg-
|
46
|
-
const cardMixin = "bg-white border border-
|
40
|
+
const fieldBackgroundMixin = "bg-opacity-50 bg-surface-accent-200 dark:bg-surface-800 dark:bg-opacity-60";
|
41
|
+
const fieldBackgroundInvisibleMixin = "bg-opacity-0 bg-surface-accent-100 dark:bg-surface-800 dark:bg-opacity-0";
|
42
|
+
const fieldBackgroundDisabledMixin = "dark:bg-surface-800 bg-opacity-50 dark:bg-opacity-90";
|
43
|
+
const fieldBackgroundHoverMixin = "hover:bg-opacity-70 dark:hover:bg-surface-700 dark:hover:bg-opacity-40";
|
44
|
+
const defaultBorderMixin = "border-surface-200 border-opacity-40 dark:border-surface-700 dark:border-opacity-40";
|
45
|
+
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";
|
46
|
+
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";
|
47
47
|
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";
|
48
48
|
const cardSelectedMixin = "bg-primary-bg dark:bg-primary-bg bg-opacity-30 dark:bg-opacity-10 ring-1 ring-primary ring-opacity-75";
|
49
49
|
function cls(...classes) {
|
@@ -284,7 +284,7 @@
|
|
284
284
|
ref: autocompleteRef,
|
285
285
|
className: cls(
|
286
286
|
open ? paperMixin : "",
|
287
|
-
"bg-
|
287
|
+
"bg-surface-accent-50 dark:bg-surface-accent-900 py-2"
|
288
288
|
),
|
289
289
|
children
|
290
290
|
}
|
@@ -299,7 +299,7 @@
|
|
299
299
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
300
300
|
"div",
|
301
301
|
{
|
302
|
-
className: "flex w-full items-center pr-6 pl-14 h-[48px] cursor-pointer hover:bg-
|
302
|
+
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",
|
303
303
|
onClick,
|
304
304
|
children
|
305
305
|
}
|
@@ -328,7 +328,7 @@
|
|
328
328
|
return "bg-emerald-50 dark:bg-emerald-800 dark:text-emerald-100 text-emerald-900";
|
329
329
|
case "base":
|
330
330
|
default:
|
331
|
-
return "bg-
|
331
|
+
return "bg-surface-accent-50 dark:bg-surface-accent-800 dark:text-white text-surface-accent-900";
|
332
332
|
}
|
333
333
|
};
|
334
334
|
const Alert = ({
|
@@ -358,7 +358,7 @@
|
|
358
358
|
onDismiss && /* @__PURE__ */ jsxRuntime.jsx(
|
359
359
|
"button",
|
360
360
|
{
|
361
|
-
className: "text-
|
361
|
+
className: "text-surface-accent-400 hover:text-surface-accent-600 dark:text-surface-accent-500 dark:hover:text-surface-accent-400",
|
362
362
|
onClick: onDismiss,
|
363
363
|
children: "×"
|
364
364
|
}
|
@@ -389,14 +389,14 @@
|
|
389
389
|
...props,
|
390
390
|
className: cls(
|
391
391
|
"rounded-full flex items-center justify-center overflow-hidden",
|
392
|
-
"p-1 hover:bg-
|
392
|
+
"p-1 hover:bg-surface-accent-200 hover:dark:bg-surface-accent-700 w-12 h-12 min-w-12 min-h-12",
|
393
393
|
outerClassName
|
394
394
|
),
|
395
395
|
children: src && !isImageError ? /* @__PURE__ */ jsxRuntime.jsx(
|
396
396
|
"img",
|
397
397
|
{
|
398
398
|
className: cls(
|
399
|
-
"bg-
|
399
|
+
"bg-surface-accent-100 dark:bg-surface-accent-800",
|
400
400
|
"w-full h-full object-cover rounded-full",
|
401
401
|
className
|
402
402
|
),
|
@@ -408,9 +408,9 @@
|
|
408
408
|
"span",
|
409
409
|
{
|
410
410
|
className: cls(
|
411
|
-
"bg-
|
411
|
+
"bg-surface-accent-100 dark:bg-surface-accent-800",
|
412
412
|
"flex items-center justify-center",
|
413
|
-
"w-full h-full py-1.5 text-lg font-medium text-
|
413
|
+
"w-full h-full py-1.5 text-lg font-medium text-surface-accent-900 dark:text-white rounded-full",
|
414
414
|
className
|
415
415
|
),
|
416
416
|
children
|
@@ -449,7 +449,7 @@
|
|
449
449
|
className: cls(
|
450
450
|
size === "smallest" ? "w-[38px] h-[22px] min-w-[38px] min-h-[22px]" : "w-[42px] h-[26px] min-w-[42px] min-h-[26px]",
|
451
451
|
"outline-none rounded-full relative shadow-sm",
|
452
|
-
value ? disabled ? "bg-white bg-opacity-54 dark:bg-
|
452
|
+
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",
|
453
453
|
className
|
454
454
|
),
|
455
455
|
...props,
|
@@ -459,7 +459,7 @@
|
|
459
459
|
{
|
460
460
|
className: cls(
|
461
461
|
"block rounded-full transition-transform duration-100 transform will-change-auto",
|
462
|
-
disabled ? "bg-
|
462
|
+
disabled ? "bg-surface-accent-400 dark:bg-surface-accent-600" : "bg-surface-accent-400 dark:bg-surface-accent-600",
|
463
463
|
{
|
464
464
|
"w-[21px] h-[10px]": size === "small" || size === "medium",
|
465
465
|
"w-[19px] h-[8px]": size === "smallest",
|
@@ -475,7 +475,7 @@
|
|
475
475
|
{
|
476
476
|
className: cls(
|
477
477
|
"block rounded-full transition-transform duration-100 transform will-change-auto",
|
478
|
-
disabled ? "bg-
|
478
|
+
disabled ? "bg-surface-accent-300 dark:bg-surface-accent-700" : value ? "bg-white" : "bg-surface-accent-600 dark:bg-surface-accent-400",
|
479
479
|
{
|
480
480
|
"w-[21px] h-[21px]": size === "small" || size === "medium",
|
481
481
|
"w-[19px] h-[19px]": size === "smallest",
|
@@ -585,21 +585,21 @@
|
|
585
585
|
"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,
|
586
586
|
"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,
|
587
587
|
"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,
|
588
|
-
"border border-
|
588
|
+
"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,
|
589
589
|
// Text Variants
|
590
|
-
"border border-transparent text-primary hover:text-primary hover:bg-
|
590
|
+
"border border-transparent text-primary hover:text-primary hover:bg-surface-accent-200 dark:hover:bg-surface-900": variant === "text" && color === "primary" && !disabled,
|
591
591
|
"border border-transparent text-secondary hover:text-secondary hover:bg-secondary-bg": variant === "text" && color === "secondary" && !disabled,
|
592
592
|
"border border-transparent text-red-500 hover:text-red-500 hover:bg-red-500 hover:bg-opacity-10": variant === "text" && color === "error" && !disabled,
|
593
|
-
"border border-transparent text-text-primary hover:text-text-primary dark:text-text-primary-dark hover:dark:text-text-primary-dark hover:bg-
|
593
|
+
"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,
|
594
594
|
// Outlined Variants
|
595
595
|
"border border-primary text-primary hover:text-primary hover:bg-primary-bg": variant === "outlined" && color === "primary" && !disabled,
|
596
596
|
"border border-secondary text-secondary hover:text-secondary hover:bg-secondary-bg": variant === "outlined" && color === "secondary" && !disabled,
|
597
597
|
"border border-red-500 text-red-500 hover:text-red-500 hover:bg-red-500 hover:text-white": variant === "outlined" && color === "error" && !disabled,
|
598
|
-
"border border-
|
598
|
+
"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,
|
599
599
|
// Disabled states for all variants
|
600
600
|
"border border-transparent opacity-50": variant === "text" && disabled,
|
601
|
-
"border border-
|
602
|
-
"border border-
|
601
|
+
"border border-surface-500 opacity-50": variant === "outlined" && disabled,
|
602
|
+
"border border-surface-500 bg-surface-500 opacity-50": variant === "filled" && disabled
|
603
603
|
});
|
604
604
|
const sizeClasses2 = cls(
|
605
605
|
{
|
@@ -751,7 +751,7 @@
|
|
751
751
|
sizeClasses2,
|
752
752
|
borderClasses,
|
753
753
|
"inline-block animate-spin rounded-full border-solid border-current border-r-transparent align-[-0.125em] motion-reduce:animate-[spin_1.5s_linear_infinite]",
|
754
|
-
"text-primary
|
754
|
+
"text-primary dark:text-primary",
|
755
755
|
className
|
756
756
|
),
|
757
757
|
role: "status",
|
@@ -13610,7 +13610,7 @@
|
|
13610
13610
|
padding ? paddingClasses[size] : "",
|
13611
13611
|
outerSizeClasses[size],
|
13612
13612
|
"inline-flex items-center justify-center text-sm font-medium focus:outline-none transition-colors ease-in-out duration-150",
|
13613
|
-
onCheckedChange ? "rounded-full hover:bg-
|
13613
|
+
onCheckedChange ? "rounded-full hover:bg-surface-accent-200 hover:bg-opacity-75 dark:hover:bg-surface-accent-700 dark:hover:bg-opacity-75" : "",
|
13614
13614
|
onCheckedChange ? "cursor-pointer" : "cursor-default"
|
13615
13615
|
), children: /* @__PURE__ */ jsxRuntime.jsx(
|
13616
13616
|
"div",
|
@@ -13618,9 +13618,9 @@
|
|
13618
13618
|
className: cls(
|
13619
13619
|
"border-2 relative transition-colors ease-in-out duration-150",
|
13620
13620
|
sizeClasses$1[size],
|
13621
|
-
disabled ? indeterminate || isChecked ? "bg-
|
13622
|
-
indeterminate || isChecked ? "text-
|
13623
|
-
disabled ? "border-transparent" : indeterminate || isChecked ? "border-transparent" : "border-
|
13621
|
+
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",
|
13622
|
+
indeterminate || isChecked ? "text-surface-accent-100 dark:text-surface-accent-900" : "",
|
13623
|
+
disabled ? "border-transparent" : indeterminate || isChecked ? "border-transparent" : "border-surface-accent-800 dark:border-surface-accent-200"
|
13624
13624
|
),
|
13625
13625
|
children: /* @__PURE__ */ jsxRuntime.jsx(CheckboxPrimitive__namespace.Indicator, { asChild: true, children: indeterminate ? /* @__PURE__ */ jsxRuntime.jsx(Icon, { iconKey: "remove", size: iconSize, className: "absolute" }) : /* @__PURE__ */ jsxRuntime.jsx(Icon, { iconKey: "check", size: iconSize, className: "absolute" }) })
|
13626
13626
|
}
|
@@ -13651,9 +13651,9 @@
|
|
13651
13651
|
className: cls(
|
13652
13652
|
"rounded-lg max-w-full w-max h-fit font-regular inline-flex gap-1",
|
13653
13653
|
"text-ellipsis",
|
13654
|
-
onClick ? "cursor-pointer hover:bg-
|
13654
|
+
onClick ? "cursor-pointer hover:bg-surface-accent-300 hover:dark:bg-surface-accent-700" : "",
|
13655
13655
|
sizeClassNames[size],
|
13656
|
-
error || !usedColorScheme ? "bg-
|
13656
|
+
error || !usedColorScheme ? "bg-surface-accent-200 dark:bg-surface-accent-800 text-surface-accent-800 dark:text-white" : "",
|
13657
13657
|
error ? "text-red-500 dark:text-red-400" : "",
|
13658
13658
|
className
|
13659
13659
|
),
|
@@ -13674,9 +13674,9 @@
|
|
13674
13674
|
}
|
13675
13675
|
);
|
13676
13676
|
}
|
13677
|
-
const buttonClasses = "hover:bg-
|
13677
|
+
const buttonClasses = "hover:bg-surface-accent-200 hover:bg-opacity-75 dark:hover:bg-surface-accent-800";
|
13678
13678
|
const baseClasses = "inline-flex items-center justify-center p-2 text-sm font-medium focus:outline-none transition-colors ease-in-out duration-150";
|
13679
|
-
const colorClasses$1 = "text-
|
13679
|
+
const colorClasses$1 = "text-surface-accent-600 visited:text-surface-accent-600 dark:text-surface-accent-300 dark:visited:text-surface-300";
|
13680
13680
|
const sizeClasses = {
|
13681
13681
|
medium: "w-10 !h-10 min-w-10 min-h-10",
|
13682
13682
|
small: "w-8 !h-8 min-w-8 min-h-8",
|
@@ -13698,7 +13698,7 @@
|
|
13698
13698
|
component,
|
13699
13699
|
...props
|
13700
13700
|
}, ref) => {
|
13701
|
-
const bgClasses = variant === "ghost" ? "bg-transparent" : "bg-
|
13701
|
+
const bgClasses = variant === "ghost" ? "bg-transparent" : "bg-surface-accent-200 bg-opacity-50 dark:bg-surface-950 dark:bg-opacity-50";
|
13702
13702
|
const Component = component || "button";
|
13703
13703
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
13704
13704
|
Component,
|
@@ -13960,7 +13960,7 @@
|
|
13960
13960
|
size === "small" ? "min-h-[48px]" : "min-h-[64px]",
|
13961
13961
|
label ? "pt-8 pb-2" : "py-2",
|
13962
13962
|
inputClassName,
|
13963
|
-
disabled && "border border-transparent outline-none opacity-50 dark:opacity-50 text-
|
13963
|
+
disabled && "border border-transparent outline-none opacity-50 dark:opacity-50 text-surface-accent-600 dark:text-surface-accent-500"
|
13964
13964
|
)
|
13965
13965
|
}
|
13966
13966
|
),
|
@@ -13971,7 +13971,7 @@
|
|
13971
13971
|
e.stopPropagation();
|
13972
13972
|
inputRef.current?.showPicker();
|
13973
13973
|
},
|
13974
|
-
className: "absolute right-3 top-1/2 transform -translate-y-1/2 !text-
|
13974
|
+
className: "absolute right-3 top-1/2 transform -translate-y-1/2 !text-surface-accent-500",
|
13975
13975
|
children: /* @__PURE__ */ jsxRuntime.jsx(CalendarMonthIcon, { color: "disabled" })
|
13976
13976
|
}
|
13977
13977
|
),
|
@@ -13979,7 +13979,7 @@
|
|
13979
13979
|
IconButton,
|
13980
13980
|
{
|
13981
13981
|
onClick: handleClear,
|
13982
|
-
className: "absolute right-14 top-1/2 transform -translate-y-1/2 text-
|
13982
|
+
className: "absolute right-14 top-1/2 transform -translate-y-1/2 text-surface-accent-400 ",
|
13983
13983
|
children: /* @__PURE__ */ jsxRuntime.jsx(ClearIcon, {})
|
13984
13984
|
}
|
13985
13985
|
)
|
@@ -14089,7 +14089,7 @@
|
|
14089
14089
|
"outline-none focus:outline-none",
|
14090
14090
|
fullWidth && !fullScreen ? "w-11/12" : void 0,
|
14091
14091
|
fullHeight && !fullScreen ? "h-full" : void 0,
|
14092
|
-
"text-
|
14092
|
+
"text-surface-accent-900 dark:text-white",
|
14093
14093
|
"justify-center items-center",
|
14094
14094
|
fullScreen ? "h-screen w-screen" : "max-h-[90vh] shadow-xl",
|
14095
14095
|
"ease-in-out duration-200",
|
@@ -14120,7 +14120,7 @@
|
|
14120
14120
|
defaultBorderMixin,
|
14121
14121
|
"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",
|
14122
14122
|
position,
|
14123
|
-
"bg-white bg-opacity-60 dark:bg-
|
14123
|
+
"bg-white bg-opacity-60 dark:bg-surface-900 dark:bg-opacity-60",
|
14124
14124
|
translucent ? "backdrop-blur-sm" : "",
|
14125
14125
|
className
|
14126
14126
|
),
|
@@ -14239,7 +14239,7 @@
|
|
14239
14239
|
{
|
14240
14240
|
className: cls(
|
14241
14241
|
"rounded-t flex items-center justify-between w-full min-h-[52px]",
|
14242
|
-
"hover:bg-
|
14242
|
+
"hover:bg-surface-accent-200 hover:bg-opacity-20 dark:hover:bg-surface-800 dark:hover:bg-opacity-20",
|
14243
14243
|
invisible ? "border-b px-2" : "p-4",
|
14244
14244
|
open ? "py-6" : "py-4",
|
14245
14245
|
"transition-all duration-200",
|
@@ -14370,8 +14370,8 @@
|
|
14370
14370
|
onClick,
|
14371
14371
|
className: cls(
|
14372
14372
|
"text-sm font-medium peer-disabled:cursor-not-allowed peer-disabled:opacity-70",
|
14373
|
-
border && "border border-
|
14374
|
-
onClick && "hover:cursor-pointer hover:bg-
|
14373
|
+
border && "border border-surface-300 dark:border-surface-700 rounded-md px-3 py-1.5",
|
14374
|
+
onClick && "hover:cursor-pointer hover:bg-surface-200 dark:hover:bg-surface-800",
|
14375
14375
|
defaultBorderMixin,
|
14376
14376
|
className
|
14377
14377
|
),
|
@@ -14403,8 +14403,8 @@
|
|
14403
14403
|
);
|
14404
14404
|
}
|
14405
14405
|
const proseClasses = {
|
14406
|
-
small: "prose-sm
|
14407
|
-
medium: "prose
|
14406
|
+
small: "prose-sm typography-body2",
|
14407
|
+
medium: "prose typography-body1",
|
14408
14408
|
large: "prose-lg",
|
14409
14409
|
xl: "prose-xl",
|
14410
14410
|
"2xl": "prose-2xl"
|
@@ -14474,7 +14474,7 @@
|
|
14474
14474
|
}) {
|
14475
14475
|
const classNames = cls(
|
14476
14476
|
onClick && "cursor-pointer",
|
14477
|
-
"rounded-md text-sm font-medium text-
|
14477
|
+
"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",
|
14478
14478
|
dense ? "px-3 py-1.5" : "px-4 py-2"
|
14479
14479
|
);
|
14480
14480
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
@@ -14495,7 +14495,7 @@
|
|
14495
14495
|
MenubarPrimitive__namespace.Root,
|
14496
14496
|
{
|
14497
14497
|
onSelect,
|
14498
|
-
className: cls("z-10 flex bg-white dark:bg-
|
14498
|
+
className: cls("z-10 flex bg-white dark:bg-surface-950 p-[3px] rounded-sm shadow-sm", className),
|
14499
14499
|
children
|
14500
14500
|
}
|
14501
14501
|
);
|
@@ -14515,7 +14515,7 @@
|
|
14515
14515
|
{
|
14516
14516
|
onSelect,
|
14517
14517
|
className: cls(
|
14518
|
-
"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-
|
14518
|
+
"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",
|
14519
14519
|
className
|
14520
14520
|
),
|
14521
14521
|
children
|
@@ -14540,7 +14540,7 @@
|
|
14540
14540
|
MenubarPrimitive__namespace.Content,
|
14541
14541
|
{
|
14542
14542
|
onSelect,
|
14543
|
-
className: cls("min-w-[220px] bg-white dark:bg-
|
14543
|
+
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),
|
14544
14544
|
align: align ?? "start",
|
14545
14545
|
sideOffset: sideOffset ?? 5,
|
14546
14546
|
alignOffset: alignOffset ?? -3,
|
@@ -14562,7 +14562,7 @@
|
|
14562
14562
|
{
|
14563
14563
|
onSelect,
|
14564
14564
|
className: cls(
|
14565
|
-
"group text-[13px] leading-none rounded flex items-center h-[32px] px-[10px] py-[2px] relative select-none outline-none data-[state=open]:bg-
|
14565
|
+
"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",
|
14566
14566
|
leftPadding ? "pl-5" : "",
|
14567
14567
|
disabled ? "pointer-events-none text-text-secondary dark:text-text-secondary-dark" : "text-text-primary dark:text-text-primary-dark",
|
14568
14568
|
className
|
@@ -14581,7 +14581,7 @@
|
|
14581
14581
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
14582
14582
|
MenubarPrimitive__namespace.Separator,
|
14583
14583
|
{
|
14584
|
-
className: cls("h-[1px] bg-
|
14584
|
+
className: cls("h-[1px] bg-surface-accent-100 dark:bg-surface-800 m-[5px]", className),
|
14585
14585
|
...rest,
|
14586
14586
|
children
|
14587
14587
|
}
|
@@ -14610,7 +14610,7 @@
|
|
14610
14610
|
{
|
14611
14611
|
onSelect,
|
14612
14612
|
className: cls(
|
14613
|
-
"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-
|
14613
|
+
"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",
|
14614
14614
|
className
|
14615
14615
|
),
|
14616
14616
|
...rest,
|
@@ -14631,7 +14631,7 @@
|
|
14631
14631
|
onSelect,
|
14632
14632
|
alignOffset: alignOffset ?? -5,
|
14633
14633
|
className: cls(
|
14634
|
-
"min-w-[220px] bg-white dark:bg-
|
14634
|
+
"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]",
|
14635
14635
|
className
|
14636
14636
|
),
|
14637
14637
|
...rest,
|
@@ -14652,7 +14652,7 @@
|
|
14652
14652
|
{
|
14653
14653
|
onSelect,
|
14654
14654
|
className: cls(
|
14655
|
-
"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-
|
14655
|
+
"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",
|
14656
14656
|
className
|
14657
14657
|
),
|
14658
14658
|
checked,
|
@@ -14708,7 +14708,7 @@
|
|
14708
14708
|
{
|
14709
14709
|
onSelect,
|
14710
14710
|
className: cls(
|
14711
|
-
"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-
|
14711
|
+
"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",
|
14712
14712
|
className
|
14713
14713
|
),
|
14714
14714
|
value,
|
@@ -14748,14 +14748,14 @@
|
|
14748
14748
|
{
|
14749
14749
|
decorative,
|
14750
14750
|
orientation: "horizontal",
|
14751
|
-
className: cls("dark:bg-opacity-80 dark:bg-
|
14751
|
+
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)
|
14752
14752
|
}
|
14753
14753
|
);
|
14754
14754
|
else
|
14755
14755
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
14756
14756
|
SeparatorPrimitive__namespace.Root,
|
14757
14757
|
{
|
14758
|
-
className: cls("dark:bg-opacity-80 dark:bg-
|
14758
|
+
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),
|
14759
14759
|
decorative,
|
14760
14760
|
orientation: "vertical"
|
14761
14761
|
}
|
@@ -14764,7 +14764,7 @@
|
|
14764
14764
|
function SelectInputLabel({ children, error }) {
|
14765
14765
|
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: cls(
|
14766
14766
|
"text-sm font-medium ml-3.5 mb-1",
|
14767
|
-
error ? "text-red-500 dark:text-red-600" : "text-
|
14767
|
+
error ? "text-red-500 dark:text-red-600" : "text-surface-accent-500 dark:text-surface-accent-300"
|
14768
14768
|
), children });
|
14769
14769
|
}
|
14770
14770
|
const MultiSelectContext = React__namespace.createContext({});
|
@@ -14955,7 +14955,7 @@
|
|
14955
14955
|
/* @__PURE__ */ jsxRuntime.jsx(
|
14956
14956
|
PopoverPrimitive__namespace.Content,
|
14957
14957
|
{
|
14958
|
-
className: cls("z-50 relative overflow-hidden border bg-white dark:bg-
|
14958
|
+
className: cls("z-50 relative overflow-hidden border bg-white dark:bg-surface-900 rounded-lg w-[400px]", defaultBorderMixin),
|
14959
14959
|
align: "start",
|
14960
14960
|
sideOffset: 8,
|
14961
14961
|
onEscapeKeyDown: () => onPopoverOpenChange(false),
|
@@ -14992,8 +14992,8 @@
|
|
14992
14992
|
"m-1",
|
14993
14993
|
"ring-offset-transparent",
|
14994
14994
|
"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",
|
14995
|
-
"aria-[selected=true]:bg-
|
14996
|
-
"cursor-pointer p-2 rounded aria-[selected=true]:bg-
|
14995
|
+
"aria-[selected=true]:bg-surface-accent-100 aria-[selected=true]:dark:bg-surface-accent-900",
|
14996
|
+
"cursor-pointer p-2 rounded aria-[selected=true]:bg-surface-accent-100 aria-[selected=true]:dark:bg-surface-accent-900"
|
14997
14997
|
),
|
14998
14998
|
children: [
|
14999
14999
|
/* @__PURE__ */ jsxRuntime.jsx(InnerCheckBox, { checked: selectedValues.length === allValues.length }),
|
@@ -15041,13 +15041,13 @@
|
|
15041
15041
|
},
|
15042
15042
|
className: cls(
|
15043
15043
|
"flex flex-row items-center gap-1.5",
|
15044
|
-
isSelected ? "bg-
|
15044
|
+
isSelected ? "bg-surface-accent-200 dark:bg-surface-accent-950" : "",
|
15045
15045
|
"cursor-pointer",
|
15046
15046
|
"m-1",
|
15047
15047
|
"ring-offset-transparent",
|
15048
15048
|
"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",
|
15049
|
-
"aria-[selected=true]:bg-
|
15050
|
-
"cursor-pointer p-2 rounded aria-[selected=true]:bg-
|
15049
|
+
"aria-[selected=true]:bg-surface-accent-100 aria-[selected=true]:dark:bg-surface-accent-900",
|
15050
|
+
"cursor-pointer p-2 rounded aria-[selected=true]:bg-surface-accent-100 aria-[selected=true]:dark:bg-surface-accent-900",
|
15051
15051
|
className
|
15052
15052
|
),
|
15053
15053
|
children: [
|
@@ -15068,9 +15068,9 @@
|
|
15068
15068
|
className: cls(
|
15069
15069
|
"border-2 relative transition-colors ease-in-out duration-150",
|
15070
15070
|
"w-4 h-4 rounded flex items-center justify-center",
|
15071
|
-
checked ? "bg-primary" : "bg-white dark:bg-
|
15072
|
-
checked ? "text-
|
15073
|
-
checked ? "border-transparent" : "border-
|
15071
|
+
checked ? "bg-primary" : "bg-white dark:bg-surface-accent-900",
|
15072
|
+
checked ? "text-surface-accent-100 dark:text-surface-accent-900" : "",
|
15073
|
+
checked ? "border-transparent" : "border-surface-accent-800 dark:border-surface-accent-200"
|
15074
15074
|
),
|
15075
15075
|
children: checked && /* @__PURE__ */ jsxRuntime.jsx(Icon, { iconKey: "check", size: 16, className: "absolute" })
|
15076
15076
|
}
|
@@ -15158,7 +15158,7 @@
|
|
15158
15158
|
className: cls(
|
15159
15159
|
"relative",
|
15160
15160
|
large ? "h-14" : "h-[42px]",
|
15161
|
-
"bg-
|
15161
|
+
"bg-surface-accent-50 dark:bg-surface-800 border",
|
15162
15162
|
defaultBorderMixin,
|
15163
15163
|
"rounded-lg",
|
15164
15164
|
className
|
@@ -15168,7 +15168,7 @@
|
|
15168
15168
|
"div",
|
15169
15169
|
{
|
15170
15170
|
className: "absolute p-0 px-4 h-full pointer-events-none flex items-center justify-center top-0",
|
15171
|
-
children: loading ? /* @__PURE__ */ jsxRuntime.jsx(CircularProgress, { size: "small" }) : /* @__PURE__ */ jsxRuntime.jsx(SearchIcon, { className: "text-
|
15171
|
+
children: loading ? /* @__PURE__ */ jsxRuntime.jsx(CircularProgress, { size: "small" }) : /* @__PURE__ */ jsxRuntime.jsx(SearchIcon, { className: "text-text-disabled dark:text-text-disabled-dark" })
|
15172
15172
|
}
|
15173
15173
|
),
|
15174
15174
|
/* @__PURE__ */ jsxRuntime.jsx(
|
@@ -15187,7 +15187,8 @@
|
|
15187
15187
|
onBlur: () => setActive(false),
|
15188
15188
|
className: cls(
|
15189
15189
|
(disabled || loading) && "pointer-events-none",
|
15190
|
-
"
|
15190
|
+
"placeholder-text-disabled dark:placeholder-text-disabled-dark",
|
15191
|
+
"relative flex items-center rounded-lg transition-all bg-transparent outline-none appearance-none border-none",
|
15191
15192
|
"pl-12 h-full text-current ",
|
15192
15193
|
expandable ? active ? "w-[220px]" : "w-[180px]" : "",
|
15193
15194
|
innerClassName
|
@@ -15282,7 +15283,7 @@
|
|
15282
15283
|
"select-none rounded-md text-sm",
|
15283
15284
|
error ? "text-red-500 dark:text-red-600" : "focus:text-text-primary dark:focus:text-text-primary-dark",
|
15284
15285
|
error ? "border border-red-500 dark:border-red-600" : "",
|
15285
|
-
disabled ? "text-
|
15286
|
+
disabled ? "text-surface-accent-600 dark:text-surface-accent-400" : "text-surface-accent-800 dark:text-white",
|
15286
15287
|
"relative flex flex-row items-center",
|
15287
15288
|
inputClassName
|
15288
15289
|
),
|
@@ -15338,7 +15339,7 @@
|
|
15338
15339
|
SelectPrimitive__namespace.Content,
|
15339
15340
|
{
|
15340
15341
|
position,
|
15341
|
-
className: cls(focusedDisabled, "z-50 relative overflow-hidden border bg-white dark:bg-
|
15342
|
+
className: cls(focusedDisabled, "z-50 relative overflow-hidden border bg-white dark:bg-surface-900 p-2 rounded-lg", defaultBorderMixin),
|
15342
15343
|
children: /* @__PURE__ */ jsxRuntime.jsx(
|
15343
15344
|
SelectPrimitive__namespace.Viewport,
|
15344
15345
|
{
|
@@ -15367,10 +15368,10 @@
|
|
15367
15368
|
disabled,
|
15368
15369
|
className: cls(
|
15369
15370
|
"w-full",
|
15370
|
-
"relative flex items-center p-2 rounded-md text-sm text-
|
15371
|
+
"relative flex items-center p-2 rounded-md text-sm text-surface-accent-700 dark:text-surface-accent-300",
|
15371
15372
|
"focus:z-10",
|
15372
|
-
"data-[state=checked]:bg-
|
15373
|
-
"data-[state=checked]:focus:bg-
|
15373
|
+
"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",
|
15374
|
+
"data-[state=checked]:focus:bg-surface-accent-200 data-[state=checked]:dark:focus:bg-surface-950",
|
15374
15375
|
disabled ? "opacity-50 cursor-not-allowed" : "cursor-pointer",
|
15375
15376
|
"[&>*]:w-full",
|
15376
15377
|
"overflow-visible",
|
@@ -15400,7 +15401,7 @@
|
|
15400
15401
|
SelectPrimitive__namespace.Group,
|
15401
15402
|
{
|
15402
15403
|
className: cls(
|
15403
|
-
"text-xs text-
|
15404
|
+
"text-xs text-surface-accent-900 dark:text-white uppercase tracking-wider font-bold mt-6 first:mt-2",
|
15404
15405
|
"px-2 py-2",
|
15405
15406
|
className
|
15406
15407
|
),
|
@@ -15418,7 +15419,7 @@
|
|
15418
15419
|
className: cls(
|
15419
15420
|
{
|
15420
15421
|
"border-primary bg-primary hover:bg-primary-dark outline-none": !props.props.disabled,
|
15421
|
-
"border-
|
15422
|
+
"border-surface-accent-300 bg-surface-accent-300 dark:border-surface-700 dark:bg-surface-700": props.props.disabled
|
15422
15423
|
},
|
15423
15424
|
props.classes,
|
15424
15425
|
"focus-visible:ring-4 focus-visible:ring-primary focus-visible:ring-opacity-50",
|
@@ -15435,7 +15436,7 @@
|
|
15435
15436
|
className: cls(
|
15436
15437
|
"TooltipContent",
|
15437
15438
|
"max-w-lg leading-relaxed",
|
15438
|
-
"z-50 rounded px-3 py-2 text-xs leading-none bg-
|
15439
|
+
"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"
|
15439
15440
|
),
|
15440
15441
|
children: props.props.value?.[props.index]
|
15441
15442
|
}
|
@@ -15465,13 +15466,13 @@
|
|
15465
15466
|
SliderPrimitive__namespace.Track,
|
15466
15467
|
{
|
15467
15468
|
style: { height: size === "small" ? 4 : 8 },
|
15468
|
-
className: "relative w-full grow overflow-hidden rounded-full bg-
|
15469
|
+
className: "relative w-full grow overflow-hidden rounded-full bg-surface-accent-300 bg-opacity-40 dark:bg-surface-700 dark:bg-opacity-40",
|
15469
15470
|
children: /* @__PURE__ */ jsxRuntime.jsx(
|
15470
15471
|
SliderPrimitive__namespace.Range,
|
15471
15472
|
{
|
15472
15473
|
className: cls("absolute h-full", {
|
15473
15474
|
"bg-primary": !props.disabled,
|
15474
|
-
"bg-
|
15475
|
+
"bg-surface-accent-300 dark:bg-surface-700": props.disabled
|
15475
15476
|
})
|
15476
15477
|
}
|
15477
15478
|
)
|
@@ -15538,7 +15539,7 @@
|
|
15538
15539
|
className: cls(
|
15539
15540
|
"fixed inset-0 transition-opacity z-20 ease-in-out duration-100 backdrop-blur-sm",
|
15540
15541
|
"bg-black bg-opacity-50",
|
15541
|
-
"dark:bg-
|
15542
|
+
"dark:bg-surface-900 dark:bg-opacity-60",
|
15542
15543
|
displayed && open ? "opacity-100" : "opacity-0",
|
15543
15544
|
overlayClassName
|
15544
15545
|
),
|
@@ -15557,11 +15558,11 @@
|
|
15557
15558
|
defaultBorderMixin,
|
15558
15559
|
"transform-gpu",
|
15559
15560
|
"will-change-transform",
|
15560
|
-
"text-
|
15561
|
+
"text-surface-accent-900 dark:text-white",
|
15561
15562
|
"fixed transform z-20 transition-all ease-in-out",
|
15562
15563
|
!displayed ? "duration-150" : "duration-100",
|
15563
15564
|
"outline-none focus:outline-none",
|
15564
|
-
transparent ? "" : "shadow-md bg-white dark:bg-
|
15565
|
+
transparent ? "" : "shadow-md bg-white dark:bg-surface-950",
|
15565
15566
|
side === "top" || side === "bottom" ? "w-full" : "h-full",
|
15566
15567
|
side === "left" || side === "top" ? "left-0 top-0" : "right-0 bottom-0",
|
15567
15568
|
displayed && open ? "opacity-100" : "opacity-50",
|
@@ -15860,7 +15861,7 @@
|
|
15860
15861
|
className: cls(
|
15861
15862
|
invisible ? focusedInvisibleMixin : "",
|
15862
15863
|
"rounded-md resize-none w-full outline-none p-[32px] text-base bg-transparent min-h-[64px] px-3 pt-8",
|
15863
|
-
disabled && "border border-transparent outline-none opacity-50 text-
|
15864
|
+
disabled && "border border-transparent outline-none opacity-50 text-surface-accent-600 dark:text-surface-accent-500"
|
15864
15865
|
)
|
15865
15866
|
}
|
15866
15867
|
) : /* @__PURE__ */ jsxRuntime.jsx(
|
@@ -15880,7 +15881,7 @@
|
|
15880
15881
|
label ? size === "medium" ? "pt-8 pb-2" : "pt-4 pb-2" : "py-2",
|
15881
15882
|
focused ? "text-text-primary dark:text-text-primary-dark" : "",
|
15882
15883
|
endAdornment ? "pr-10" : "pr-3",
|
15883
|
-
disabled && "border border-transparent outline-none opacity-50 dark:opacity-50 text-
|
15884
|
+
disabled && "border border-transparent outline-none opacity-50 dark:opacity-50 text-surface-accent-800 dark:text-white",
|
15884
15885
|
inputClassName
|
15885
15886
|
),
|
15886
15887
|
placeholder: focused || hasValue || !label ? placeholder : void 0,
|
@@ -15963,7 +15964,7 @@
|
|
15963
15964
|
className: cls(
|
15964
15965
|
"TooltipContent",
|
15965
15966
|
"max-w-lg leading-relaxed",
|
15966
|
-
"z-50 rounded px-3 py-2 text-xs leading-none bg-
|
15967
|
+
"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",
|
15967
15968
|
tooltipClassName
|
15968
15969
|
),
|
15969
15970
|
style: tooltipStyle,
|
@@ -16047,7 +16048,7 @@
|
|
16047
16048
|
children
|
16048
16049
|
}) {
|
16049
16050
|
return /* @__PURE__ */ jsxRuntime.jsx(TabsPrimitive__namespace.Root, { value, onValueChange, children: /* @__PURE__ */ jsxRuntime.jsx(TabsPrimitive__namespace.List, { className: cls(
|
16050
|
-
"flex text-sm font-medium text-center text-
|
16051
|
+
"flex text-sm font-medium text-center text-surface-accent-800 dark:text-white max-w-full overflow-auto no-scrollbar",
|
16051
16052
|
className
|
16052
16053
|
), children }) });
|
16053
16054
|
}
|
@@ -16065,18 +16066,18 @@
|
|
16065
16066
|
className: cls(
|
16066
16067
|
"border-b-2 border-transparent",
|
16067
16068
|
"data-[state=active]:border-secondary",
|
16068
|
-
disabled ? "text-
|
16069
|
-
"text-
|
16070
|
-
"data-[state=active]:text-
|
16071
|
-
"hover:text-
|
16069
|
+
disabled ? "text-surface-accent-400 dark:text-surface-accent-500" : cls(
|
16070
|
+
"text-surface-accent-700 dark:text-surface-accent-300",
|
16071
|
+
"data-[state=active]:text-surface-accent-900 data-[state=active]:dark:text-white",
|
16072
|
+
"hover:text-surface-accent-800 dark:hover:text-surface-accent-200"
|
16072
16073
|
),
|
16073
|
-
// disabled ? "text-
|
16074
|
-
// "data-[state=active]:bg-
|
16074
|
+
// disabled ? "text-surface-accent-400 dark:text-surface-accent-500" : "data-[state=active]:text-primary",
|
16075
|
+
// "data-[state=active]:bg-surface-accent-50 data-[state=active]:dark:bg-surface-accent-800",
|
16075
16076
|
className
|
16076
16077
|
),
|
16077
16078
|
children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: cls(
|
16078
16079
|
"uppercase inline-block p-2 px-4 m-2 rounded",
|
16079
|
-
"hover:bg-
|
16080
|
+
"hover:bg-surface-accent-200 hover:bg-opacity-75 dark:hover:bg-surface-accent-800"
|
16080
16081
|
), children })
|
16081
16082
|
}
|
16082
16083
|
);
|
@@ -16089,7 +16090,7 @@
|
|
16089
16090
|
}) => /* @__PURE__ */ jsxRuntime.jsx(
|
16090
16091
|
"table",
|
16091
16092
|
{
|
16092
|
-
className: cls("text-left text-
|
16093
|
+
className: cls("text-left text-surface-800 dark:text-white rounded-md overflow-x-auto", className),
|
16093
16094
|
style,
|
16094
16095
|
...rest,
|
16095
16096
|
children
|
@@ -16102,7 +16103,7 @@
|
|
16102
16103
|
}) => /* @__PURE__ */ jsxRuntime.jsx(
|
16103
16104
|
"tbody",
|
16104
16105
|
{
|
16105
|
-
className: cls("bg-white dark:bg-
|
16106
|
+
className: cls("bg-white dark:bg-surface-950 text-sm divide-y divide-surface-100 dark:divide-surface-700 dark:divide-opacity-70", className),
|
16106
16107
|
...rest,
|
16107
16108
|
children
|
16108
16109
|
}
|
@@ -16116,8 +16117,8 @@
|
|
16116
16117
|
{
|
16117
16118
|
className: cls(
|
16118
16119
|
defaultBorderMixin,
|
16119
|
-
"text-sm font-medium text-
|
16120
|
-
"bg-
|
16120
|
+
"text-sm font-medium text-surface-700 dark:text-surface-accent-300",
|
16121
|
+
"bg-surface-accent-50 border-b dark:bg-surface-900",
|
16121
16122
|
className
|
16122
16123
|
),
|
16123
16124
|
children
|
@@ -16135,8 +16136,8 @@
|
|
16135
16136
|
onClick,
|
16136
16137
|
style,
|
16137
16138
|
className: cls(
|
16138
|
-
"bg-white dark:bg-
|
16139
|
-
onClick ? "hover:bg-
|
16139
|
+
"bg-white dark:bg-surface-950",
|
16140
|
+
onClick ? "hover:bg-surface-accent-100 dark:hover:bg-surface-accent-800 cursor-pointer" : "",
|
16140
16141
|
className
|
16141
16142
|
),
|
16142
16143
|
...rest,
|
@@ -16238,7 +16239,7 @@
|
|
16238
16239
|
avoidCollisions,
|
16239
16240
|
children: [
|
16240
16241
|
children,
|
16241
|
-
/* @__PURE__ */ jsxRuntime.jsx(PopoverPrimitive__namespace.Arrow, { className: "fill-white dark:fill-
|
16242
|
+
/* @__PURE__ */ jsxRuntime.jsx(PopoverPrimitive__namespace.Arrow, { className: "fill-white dark:fill-surface-accent-950" })
|
16242
16243
|
]
|
16243
16244
|
}
|
16244
16245
|
) })
|
@@ -16320,7 +16321,7 @@
|
|
16320
16321
|
case "error":
|
16321
16322
|
return "bg-red-500";
|
16322
16323
|
default:
|
16323
|
-
return "bg-
|
16324
|
+
return "bg-surface-accent-300 dark:bg-surface-accent-700";
|
16324
16325
|
}
|
16325
16326
|
};
|
16326
16327
|
const Badge = ({
|
@@ -16383,7 +16384,7 @@
|
|
16383
16384
|
},
|
16384
16385
|
className: cls(
|
16385
16386
|
"block",
|
16386
|
-
"bg-
|
16387
|
+
"bg-surface-accent-200 dark:bg-surface-accent-800 rounded-md",
|
16387
16388
|
"animate-pulse",
|
16388
16389
|
"max-w-full max-h-full",
|
16389
16390
|
className
|