@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.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
|
}
|
@@ -377,6 +377,10 @@
|
|
377
377
|
outerClassName,
|
378
378
|
...props
|
379
379
|
}, ref) => {
|
380
|
+
const [isImageError, setIsImageError] = React.useState(false);
|
381
|
+
const handleImageError = () => {
|
382
|
+
setIsImageError(true);
|
383
|
+
};
|
380
384
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
381
385
|
"button",
|
382
386
|
{
|
@@ -385,27 +389,28 @@
|
|
385
389
|
...props,
|
386
390
|
className: cls(
|
387
391
|
"rounded-full flex items-center justify-center overflow-hidden",
|
388
|
-
"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",
|
389
393
|
outerClassName
|
390
394
|
),
|
391
|
-
children: src ? /* @__PURE__ */ jsxRuntime.jsx(
|
395
|
+
children: src && !isImageError ? /* @__PURE__ */ jsxRuntime.jsx(
|
392
396
|
"img",
|
393
397
|
{
|
394
398
|
className: cls(
|
395
|
-
"bg-
|
399
|
+
"bg-surface-accent-100 dark:bg-surface-accent-800",
|
396
400
|
"w-full h-full object-cover rounded-full",
|
397
401
|
className
|
398
402
|
),
|
399
403
|
src,
|
400
|
-
alt
|
404
|
+
alt,
|
405
|
+
onError: handleImageError
|
401
406
|
}
|
402
407
|
) : /* @__PURE__ */ jsxRuntime.jsx(
|
403
408
|
"span",
|
404
409
|
{
|
405
410
|
className: cls(
|
406
|
-
"bg-
|
411
|
+
"bg-surface-accent-100 dark:bg-surface-accent-800",
|
407
412
|
"flex items-center justify-center",
|
408
|
-
"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",
|
409
414
|
className
|
410
415
|
),
|
411
416
|
children
|
@@ -444,7 +449,7 @@
|
|
444
449
|
className: cls(
|
445
450
|
size === "smallest" ? "w-[38px] h-[22px] min-w-[38px] min-h-[22px]" : "w-[42px] h-[26px] min-w-[42px] min-h-[26px]",
|
446
451
|
"outline-none rounded-full relative shadow-sm",
|
447
|
-
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",
|
448
453
|
className
|
449
454
|
),
|
450
455
|
...props,
|
@@ -454,7 +459,7 @@
|
|
454
459
|
{
|
455
460
|
className: cls(
|
456
461
|
"block rounded-full transition-transform duration-100 transform will-change-auto",
|
457
|
-
disabled ? "bg-
|
462
|
+
disabled ? "bg-surface-accent-400 dark:bg-surface-accent-600" : "bg-surface-accent-400 dark:bg-surface-accent-600",
|
458
463
|
{
|
459
464
|
"w-[21px] h-[10px]": size === "small" || size === "medium",
|
460
465
|
"w-[19px] h-[8px]": size === "smallest",
|
@@ -470,7 +475,7 @@
|
|
470
475
|
{
|
471
476
|
className: cls(
|
472
477
|
"block rounded-full transition-transform duration-100 transform will-change-auto",
|
473
|
-
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",
|
474
479
|
{
|
475
480
|
"w-[21px] h-[21px]": size === "small" || size === "medium",
|
476
481
|
"w-[19px] h-[19px]": size === "smallest",
|
@@ -520,7 +525,7 @@
|
|
520
525
|
!invisible && fieldBackgroundMixin,
|
521
526
|
!invisible && (disabled ? fieldBackgroundDisabledMixin : fieldBackgroundHoverMixin),
|
522
527
|
disabled ? "cursor-default" : "cursor-pointer",
|
523
|
-
"rounded-md max-w-full justify-between
|
528
|
+
"rounded-md max-w-full justify-between box-border relative inline-flex items-center",
|
524
529
|
!invisible && focus && !disabled ? focusedClasses : "",
|
525
530
|
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",
|
526
531
|
size === "smallest" ? "min-h-[40px]" : size === "small" ? "min-h-[48px]" : "min-h-[64px]",
|
@@ -580,21 +585,21 @@
|
|
580
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,
|
581
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,
|
582
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,
|
583
|
-
"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,
|
584
589
|
// Text Variants
|
585
|
-
"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,
|
586
591
|
"border border-transparent text-secondary hover:text-secondary hover:bg-secondary-bg": variant === "text" && color === "secondary" && !disabled,
|
587
592
|
"border border-transparent text-red-500 hover:text-red-500 hover:bg-red-500 hover:bg-opacity-10": variant === "text" && color === "error" && !disabled,
|
588
|
-
"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,
|
589
594
|
// Outlined Variants
|
590
595
|
"border border-primary text-primary hover:text-primary hover:bg-primary-bg": variant === "outlined" && color === "primary" && !disabled,
|
591
596
|
"border border-secondary text-secondary hover:text-secondary hover:bg-secondary-bg": variant === "outlined" && color === "secondary" && !disabled,
|
592
597
|
"border border-red-500 text-red-500 hover:text-red-500 hover:bg-red-500 hover:text-white": variant === "outlined" && color === "error" && !disabled,
|
593
|
-
"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,
|
594
599
|
// Disabled states for all variants
|
595
600
|
"border border-transparent opacity-50": variant === "text" && disabled,
|
596
|
-
"border border-
|
597
|
-
"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
|
598
603
|
});
|
599
604
|
const sizeClasses2 = cls(
|
600
605
|
{
|
@@ -746,7 +751,7 @@
|
|
746
751
|
sizeClasses2,
|
747
752
|
borderClasses,
|
748
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]",
|
749
|
-
"text-primary
|
754
|
+
"text-primary dark:text-primary",
|
750
755
|
className
|
751
756
|
),
|
752
757
|
role: "status",
|
@@ -13605,7 +13610,7 @@
|
|
13605
13610
|
padding ? paddingClasses[size] : "",
|
13606
13611
|
outerSizeClasses[size],
|
13607
13612
|
"inline-flex items-center justify-center text-sm font-medium focus:outline-none transition-colors ease-in-out duration-150",
|
13608
|
-
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" : "",
|
13609
13614
|
onCheckedChange ? "cursor-pointer" : "cursor-default"
|
13610
13615
|
), children: /* @__PURE__ */ jsxRuntime.jsx(
|
13611
13616
|
"div",
|
@@ -13613,9 +13618,9 @@
|
|
13613
13618
|
className: cls(
|
13614
13619
|
"border-2 relative transition-colors ease-in-out duration-150",
|
13615
13620
|
sizeClasses$1[size],
|
13616
|
-
disabled ? indeterminate || isChecked ? "bg-
|
13617
|
-
indeterminate || isChecked ? "text-
|
13618
|
-
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"
|
13619
13624
|
),
|
13620
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" }) })
|
13621
13626
|
}
|
@@ -13646,9 +13651,9 @@
|
|
13646
13651
|
className: cls(
|
13647
13652
|
"rounded-lg max-w-full w-max h-fit font-regular inline-flex gap-1",
|
13648
13653
|
"text-ellipsis",
|
13649
|
-
onClick ? "cursor-pointer hover:bg-
|
13654
|
+
onClick ? "cursor-pointer hover:bg-surface-accent-300 hover:dark:bg-surface-accent-700" : "",
|
13650
13655
|
sizeClassNames[size],
|
13651
|
-
error || !usedColorScheme ? "bg-
|
13656
|
+
error || !usedColorScheme ? "bg-surface-accent-200 dark:bg-surface-accent-800 text-surface-accent-800 dark:text-white" : "",
|
13652
13657
|
error ? "text-red-500 dark:text-red-400" : "",
|
13653
13658
|
className
|
13654
13659
|
),
|
@@ -13669,9 +13674,9 @@
|
|
13669
13674
|
}
|
13670
13675
|
);
|
13671
13676
|
}
|
13672
|
-
const buttonClasses = "hover:bg-
|
13677
|
+
const buttonClasses = "hover:bg-surface-accent-200 hover:bg-opacity-75 dark:hover:bg-surface-accent-800";
|
13673
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";
|
13674
|
-
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";
|
13675
13680
|
const sizeClasses = {
|
13676
13681
|
medium: "w-10 !h-10 min-w-10 min-h-10",
|
13677
13682
|
small: "w-8 !h-8 min-w-8 min-h-8",
|
@@ -13693,7 +13698,7 @@
|
|
13693
13698
|
component,
|
13694
13699
|
...props
|
13695
13700
|
}, ref) => {
|
13696
|
-
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";
|
13697
13702
|
const Component = component || "button";
|
13698
13703
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
13699
13704
|
Component,
|
@@ -13955,7 +13960,7 @@
|
|
13955
13960
|
size === "small" ? "min-h-[48px]" : "min-h-[64px]",
|
13956
13961
|
label ? "pt-8 pb-2" : "py-2",
|
13957
13962
|
inputClassName,
|
13958
|
-
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"
|
13959
13964
|
)
|
13960
13965
|
}
|
13961
13966
|
),
|
@@ -13966,7 +13971,7 @@
|
|
13966
13971
|
e.stopPropagation();
|
13967
13972
|
inputRef.current?.showPicker();
|
13968
13973
|
},
|
13969
|
-
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",
|
13970
13975
|
children: /* @__PURE__ */ jsxRuntime.jsx(CalendarMonthIcon, { color: "disabled" })
|
13971
13976
|
}
|
13972
13977
|
),
|
@@ -13974,7 +13979,7 @@
|
|
13974
13979
|
IconButton,
|
13975
13980
|
{
|
13976
13981
|
onClick: handleClear,
|
13977
|
-
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 ",
|
13978
13983
|
children: /* @__PURE__ */ jsxRuntime.jsx(ClearIcon, {})
|
13979
13984
|
}
|
13980
13985
|
)
|
@@ -14084,7 +14089,7 @@
|
|
14084
14089
|
"outline-none focus:outline-none",
|
14085
14090
|
fullWidth && !fullScreen ? "w-11/12" : void 0,
|
14086
14091
|
fullHeight && !fullScreen ? "h-full" : void 0,
|
14087
|
-
"text-
|
14092
|
+
"text-surface-accent-900 dark:text-white",
|
14088
14093
|
"justify-center items-center",
|
14089
14094
|
fullScreen ? "h-screen w-screen" : "max-h-[90vh] shadow-xl",
|
14090
14095
|
"ease-in-out duration-200",
|
@@ -14115,7 +14120,7 @@
|
|
14115
14120
|
defaultBorderMixin,
|
14116
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",
|
14117
14122
|
position,
|
14118
|
-
"bg-white bg-opacity-60 dark:bg-
|
14123
|
+
"bg-white bg-opacity-60 dark:bg-surface-900 dark:bg-opacity-60",
|
14119
14124
|
translucent ? "backdrop-blur-sm" : "",
|
14120
14125
|
className
|
14121
14126
|
),
|
@@ -14234,7 +14239,7 @@
|
|
14234
14239
|
{
|
14235
14240
|
className: cls(
|
14236
14241
|
"rounded-t flex items-center justify-between w-full min-h-[52px]",
|
14237
|
-
"hover:bg-
|
14242
|
+
"hover:bg-surface-accent-200 hover:bg-opacity-20 dark:hover:bg-surface-800 dark:hover:bg-opacity-20",
|
14238
14243
|
invisible ? "border-b px-2" : "p-4",
|
14239
14244
|
open ? "py-6" : "py-4",
|
14240
14245
|
"transition-all duration-200",
|
@@ -14365,8 +14370,8 @@
|
|
14365
14370
|
onClick,
|
14366
14371
|
className: cls(
|
14367
14372
|
"text-sm font-medium peer-disabled:cursor-not-allowed peer-disabled:opacity-70",
|
14368
|
-
border && "border border-
|
14369
|
-
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",
|
14370
14375
|
defaultBorderMixin,
|
14371
14376
|
className
|
14372
14377
|
),
|
@@ -14398,8 +14403,8 @@
|
|
14398
14403
|
);
|
14399
14404
|
}
|
14400
14405
|
const proseClasses = {
|
14401
|
-
small: "prose-sm
|
14402
|
-
medium: "prose
|
14406
|
+
small: "prose-sm typography-body2",
|
14407
|
+
medium: "prose typography-body1",
|
14403
14408
|
large: "prose-lg",
|
14404
14409
|
xl: "prose-xl",
|
14405
14410
|
"2xl": "prose-2xl"
|
@@ -14469,7 +14474,7 @@
|
|
14469
14474
|
}) {
|
14470
14475
|
const classNames = cls(
|
14471
14476
|
onClick && "cursor-pointer",
|
14472
|
-
"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",
|
14473
14478
|
dense ? "px-3 py-1.5" : "px-4 py-2"
|
14474
14479
|
);
|
14475
14480
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
@@ -14490,7 +14495,7 @@
|
|
14490
14495
|
MenubarPrimitive__namespace.Root,
|
14491
14496
|
{
|
14492
14497
|
onSelect,
|
14493
|
-
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),
|
14494
14499
|
children
|
14495
14500
|
}
|
14496
14501
|
);
|
@@ -14510,7 +14515,7 @@
|
|
14510
14515
|
{
|
14511
14516
|
onSelect,
|
14512
14517
|
className: cls(
|
14513
|
-
"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",
|
14514
14519
|
className
|
14515
14520
|
),
|
14516
14521
|
children
|
@@ -14535,7 +14540,7 @@
|
|
14535
14540
|
MenubarPrimitive__namespace.Content,
|
14536
14541
|
{
|
14537
14542
|
onSelect,
|
14538
|
-
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),
|
14539
14544
|
align: align ?? "start",
|
14540
14545
|
sideOffset: sideOffset ?? 5,
|
14541
14546
|
alignOffset: alignOffset ?? -3,
|
@@ -14557,7 +14562,7 @@
|
|
14557
14562
|
{
|
14558
14563
|
onSelect,
|
14559
14564
|
className: cls(
|
14560
|
-
"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",
|
14561
14566
|
leftPadding ? "pl-5" : "",
|
14562
14567
|
disabled ? "pointer-events-none text-text-secondary dark:text-text-secondary-dark" : "text-text-primary dark:text-text-primary-dark",
|
14563
14568
|
className
|
@@ -14576,7 +14581,7 @@
|
|
14576
14581
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
14577
14582
|
MenubarPrimitive__namespace.Separator,
|
14578
14583
|
{
|
14579
|
-
className: cls("h-[1px] bg-
|
14584
|
+
className: cls("h-[1px] bg-surface-accent-100 dark:bg-surface-800 m-[5px]", className),
|
14580
14585
|
...rest,
|
14581
14586
|
children
|
14582
14587
|
}
|
@@ -14605,7 +14610,7 @@
|
|
14605
14610
|
{
|
14606
14611
|
onSelect,
|
14607
14612
|
className: cls(
|
14608
|
-
"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",
|
14609
14614
|
className
|
14610
14615
|
),
|
14611
14616
|
...rest,
|
@@ -14626,7 +14631,7 @@
|
|
14626
14631
|
onSelect,
|
14627
14632
|
alignOffset: alignOffset ?? -5,
|
14628
14633
|
className: cls(
|
14629
|
-
"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]",
|
14630
14635
|
className
|
14631
14636
|
),
|
14632
14637
|
...rest,
|
@@ -14647,7 +14652,7 @@
|
|
14647
14652
|
{
|
14648
14653
|
onSelect,
|
14649
14654
|
className: cls(
|
14650
|
-
"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",
|
14651
14656
|
className
|
14652
14657
|
),
|
14653
14658
|
checked,
|
@@ -14703,7 +14708,7 @@
|
|
14703
14708
|
{
|
14704
14709
|
onSelect,
|
14705
14710
|
className: cls(
|
14706
|
-
"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",
|
14707
14712
|
className
|
14708
14713
|
),
|
14709
14714
|
value,
|
@@ -14743,14 +14748,14 @@
|
|
14743
14748
|
{
|
14744
14749
|
decorative,
|
14745
14750
|
orientation: "horizontal",
|
14746
|
-
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)
|
14747
14752
|
}
|
14748
14753
|
);
|
14749
14754
|
else
|
14750
14755
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
14751
14756
|
SeparatorPrimitive__namespace.Root,
|
14752
14757
|
{
|
14753
|
-
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),
|
14754
14759
|
decorative,
|
14755
14760
|
orientation: "vertical"
|
14756
14761
|
}
|
@@ -14759,7 +14764,7 @@
|
|
14759
14764
|
function SelectInputLabel({ children, error }) {
|
14760
14765
|
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: cls(
|
14761
14766
|
"text-sm font-medium ml-3.5 mb-1",
|
14762
|
-
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"
|
14763
14768
|
), children });
|
14764
14769
|
}
|
14765
14770
|
const MultiSelectContext = React__namespace.createContext({});
|
@@ -14950,7 +14955,7 @@
|
|
14950
14955
|
/* @__PURE__ */ jsxRuntime.jsx(
|
14951
14956
|
PopoverPrimitive__namespace.Content,
|
14952
14957
|
{
|
14953
|
-
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),
|
14954
14959
|
align: "start",
|
14955
14960
|
sideOffset: 8,
|
14956
14961
|
onEscapeKeyDown: () => onPopoverOpenChange(false),
|
@@ -14987,8 +14992,8 @@
|
|
14987
14992
|
"m-1",
|
14988
14993
|
"ring-offset-transparent",
|
14989
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",
|
14990
|
-
"aria-[selected=true]:bg-
|
14991
|
-
"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"
|
14992
14997
|
),
|
14993
14998
|
children: [
|
14994
14999
|
/* @__PURE__ */ jsxRuntime.jsx(InnerCheckBox, { checked: selectedValues.length === allValues.length }),
|
@@ -15036,13 +15041,13 @@
|
|
15036
15041
|
},
|
15037
15042
|
className: cls(
|
15038
15043
|
"flex flex-row items-center gap-1.5",
|
15039
|
-
isSelected ? "bg-
|
15044
|
+
isSelected ? "bg-surface-accent-200 dark:bg-surface-accent-950" : "",
|
15040
15045
|
"cursor-pointer",
|
15041
15046
|
"m-1",
|
15042
15047
|
"ring-offset-transparent",
|
15043
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",
|
15044
|
-
"aria-[selected=true]:bg-
|
15045
|
-
"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",
|
15046
15051
|
className
|
15047
15052
|
),
|
15048
15053
|
children: [
|
@@ -15063,9 +15068,9 @@
|
|
15063
15068
|
className: cls(
|
15064
15069
|
"border-2 relative transition-colors ease-in-out duration-150",
|
15065
15070
|
"w-4 h-4 rounded flex items-center justify-center",
|
15066
|
-
checked ? "bg-primary" : "bg-white dark:bg-
|
15067
|
-
checked ? "text-
|
15068
|
-
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"
|
15069
15074
|
),
|
15070
15075
|
children: checked && /* @__PURE__ */ jsxRuntime.jsx(Icon, { iconKey: "check", size: 16, className: "absolute" })
|
15071
15076
|
}
|
@@ -15153,7 +15158,7 @@
|
|
15153
15158
|
className: cls(
|
15154
15159
|
"relative",
|
15155
15160
|
large ? "h-14" : "h-[42px]",
|
15156
|
-
"bg-
|
15161
|
+
"bg-surface-accent-50 dark:bg-surface-800 border",
|
15157
15162
|
defaultBorderMixin,
|
15158
15163
|
"rounded-lg",
|
15159
15164
|
className
|
@@ -15163,7 +15168,7 @@
|
|
15163
15168
|
"div",
|
15164
15169
|
{
|
15165
15170
|
className: "absolute p-0 px-4 h-full pointer-events-none flex items-center justify-center top-0",
|
15166
|
-
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" })
|
15167
15172
|
}
|
15168
15173
|
),
|
15169
15174
|
/* @__PURE__ */ jsxRuntime.jsx(
|
@@ -15182,7 +15187,8 @@
|
|
15182
15187
|
onBlur: () => setActive(false),
|
15183
15188
|
className: cls(
|
15184
15189
|
(disabled || loading) && "pointer-events-none",
|
15185
|
-
"
|
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",
|
15186
15192
|
"pl-12 h-full text-current ",
|
15187
15193
|
expandable ? active ? "w-[220px]" : "w-[180px]" : "",
|
15188
15194
|
innerClassName
|
@@ -15277,7 +15283,7 @@
|
|
15277
15283
|
"select-none rounded-md text-sm",
|
15278
15284
|
error ? "text-red-500 dark:text-red-600" : "focus:text-text-primary dark:focus:text-text-primary-dark",
|
15279
15285
|
error ? "border border-red-500 dark:border-red-600" : "",
|
15280
|
-
disabled ? "text-
|
15286
|
+
disabled ? "text-surface-accent-600 dark:text-surface-accent-400" : "text-surface-accent-800 dark:text-white",
|
15281
15287
|
"relative flex flex-row items-center",
|
15282
15288
|
inputClassName
|
15283
15289
|
),
|
@@ -15333,7 +15339,7 @@
|
|
15333
15339
|
SelectPrimitive__namespace.Content,
|
15334
15340
|
{
|
15335
15341
|
position,
|
15336
|
-
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),
|
15337
15343
|
children: /* @__PURE__ */ jsxRuntime.jsx(
|
15338
15344
|
SelectPrimitive__namespace.Viewport,
|
15339
15345
|
{
|
@@ -15362,10 +15368,10 @@
|
|
15362
15368
|
disabled,
|
15363
15369
|
className: cls(
|
15364
15370
|
"w-full",
|
15365
|
-
"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",
|
15366
15372
|
"focus:z-10",
|
15367
|
-
"data-[state=checked]:bg-
|
15368
|
-
"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",
|
15369
15375
|
disabled ? "opacity-50 cursor-not-allowed" : "cursor-pointer",
|
15370
15376
|
"[&>*]:w-full",
|
15371
15377
|
"overflow-visible",
|
@@ -15395,7 +15401,7 @@
|
|
15395
15401
|
SelectPrimitive__namespace.Group,
|
15396
15402
|
{
|
15397
15403
|
className: cls(
|
15398
|
-
"text-xs text-
|
15404
|
+
"text-xs text-surface-accent-900 dark:text-white uppercase tracking-wider font-bold mt-6 first:mt-2",
|
15399
15405
|
"px-2 py-2",
|
15400
15406
|
className
|
15401
15407
|
),
|
@@ -15413,7 +15419,7 @@
|
|
15413
15419
|
className: cls(
|
15414
15420
|
{
|
15415
15421
|
"border-primary bg-primary hover:bg-primary-dark outline-none": !props.props.disabled,
|
15416
|
-
"border-
|
15422
|
+
"border-surface-accent-300 bg-surface-accent-300 dark:border-surface-700 dark:bg-surface-700": props.props.disabled
|
15417
15423
|
},
|
15418
15424
|
props.classes,
|
15419
15425
|
"focus-visible:ring-4 focus-visible:ring-primary focus-visible:ring-opacity-50",
|
@@ -15430,7 +15436,7 @@
|
|
15430
15436
|
className: cls(
|
15431
15437
|
"TooltipContent",
|
15432
15438
|
"max-w-lg leading-relaxed",
|
15433
|
-
"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"
|
15434
15440
|
),
|
15435
15441
|
children: props.props.value?.[props.index]
|
15436
15442
|
}
|
@@ -15460,13 +15466,13 @@
|
|
15460
15466
|
SliderPrimitive__namespace.Track,
|
15461
15467
|
{
|
15462
15468
|
style: { height: size === "small" ? 4 : 8 },
|
15463
|
-
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",
|
15464
15470
|
children: /* @__PURE__ */ jsxRuntime.jsx(
|
15465
15471
|
SliderPrimitive__namespace.Range,
|
15466
15472
|
{
|
15467
15473
|
className: cls("absolute h-full", {
|
15468
15474
|
"bg-primary": !props.disabled,
|
15469
|
-
"bg-
|
15475
|
+
"bg-surface-accent-300 dark:bg-surface-700": props.disabled
|
15470
15476
|
})
|
15471
15477
|
}
|
15472
15478
|
)
|
@@ -15533,7 +15539,7 @@
|
|
15533
15539
|
className: cls(
|
15534
15540
|
"fixed inset-0 transition-opacity z-20 ease-in-out duration-100 backdrop-blur-sm",
|
15535
15541
|
"bg-black bg-opacity-50",
|
15536
|
-
"dark:bg-
|
15542
|
+
"dark:bg-surface-900 dark:bg-opacity-60",
|
15537
15543
|
displayed && open ? "opacity-100" : "opacity-0",
|
15538
15544
|
overlayClassName
|
15539
15545
|
),
|
@@ -15552,11 +15558,11 @@
|
|
15552
15558
|
defaultBorderMixin,
|
15553
15559
|
"transform-gpu",
|
15554
15560
|
"will-change-transform",
|
15555
|
-
"text-
|
15561
|
+
"text-surface-accent-900 dark:text-white",
|
15556
15562
|
"fixed transform z-20 transition-all ease-in-out",
|
15557
15563
|
!displayed ? "duration-150" : "duration-100",
|
15558
15564
|
"outline-none focus:outline-none",
|
15559
|
-
transparent ? "" : "shadow-md bg-white dark:bg-
|
15565
|
+
transparent ? "" : "shadow-md bg-white dark:bg-surface-950",
|
15560
15566
|
side === "top" || side === "bottom" ? "w-full" : "h-full",
|
15561
15567
|
side === "left" || side === "top" ? "left-0 top-0" : "right-0 bottom-0",
|
15562
15568
|
displayed && open ? "opacity-100" : "opacity-50",
|
@@ -15855,7 +15861,7 @@
|
|
15855
15861
|
className: cls(
|
15856
15862
|
invisible ? focusedInvisibleMixin : "",
|
15857
15863
|
"rounded-md resize-none w-full outline-none p-[32px] text-base bg-transparent min-h-[64px] px-3 pt-8",
|
15858
|
-
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"
|
15859
15865
|
)
|
15860
15866
|
}
|
15861
15867
|
) : /* @__PURE__ */ jsxRuntime.jsx(
|
@@ -15875,7 +15881,7 @@
|
|
15875
15881
|
label ? size === "medium" ? "pt-8 pb-2" : "pt-4 pb-2" : "py-2",
|
15876
15882
|
focused ? "text-text-primary dark:text-text-primary-dark" : "",
|
15877
15883
|
endAdornment ? "pr-10" : "pr-3",
|
15878
|
-
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",
|
15879
15885
|
inputClassName
|
15880
15886
|
),
|
15881
15887
|
placeholder: focused || hasValue || !label ? placeholder : void 0,
|
@@ -15958,7 +15964,7 @@
|
|
15958
15964
|
className: cls(
|
15959
15965
|
"TooltipContent",
|
15960
15966
|
"max-w-lg leading-relaxed",
|
15961
|
-
"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",
|
15962
15968
|
tooltipClassName
|
15963
15969
|
),
|
15964
15970
|
style: tooltipStyle,
|
@@ -16042,7 +16048,7 @@
|
|
16042
16048
|
children
|
16043
16049
|
}) {
|
16044
16050
|
return /* @__PURE__ */ jsxRuntime.jsx(TabsPrimitive__namespace.Root, { value, onValueChange, children: /* @__PURE__ */ jsxRuntime.jsx(TabsPrimitive__namespace.List, { className: cls(
|
16045
|
-
"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",
|
16046
16052
|
className
|
16047
16053
|
), children }) });
|
16048
16054
|
}
|
@@ -16060,18 +16066,18 @@
|
|
16060
16066
|
className: cls(
|
16061
16067
|
"border-b-2 border-transparent",
|
16062
16068
|
"data-[state=active]:border-secondary",
|
16063
|
-
disabled ? "text-
|
16064
|
-
"text-
|
16065
|
-
"data-[state=active]:text-
|
16066
|
-
"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"
|
16067
16073
|
),
|
16068
|
-
// disabled ? "text-
|
16069
|
-
// "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",
|
16070
16076
|
className
|
16071
16077
|
),
|
16072
16078
|
children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: cls(
|
16073
16079
|
"uppercase inline-block p-2 px-4 m-2 rounded",
|
16074
|
-
"hover:bg-
|
16080
|
+
"hover:bg-surface-accent-200 hover:bg-opacity-75 dark:hover:bg-surface-accent-800"
|
16075
16081
|
), children })
|
16076
16082
|
}
|
16077
16083
|
);
|
@@ -16084,7 +16090,7 @@
|
|
16084
16090
|
}) => /* @__PURE__ */ jsxRuntime.jsx(
|
16085
16091
|
"table",
|
16086
16092
|
{
|
16087
|
-
className: cls("text-left text-
|
16093
|
+
className: cls("text-left text-surface-800 dark:text-white rounded-md overflow-x-auto", className),
|
16088
16094
|
style,
|
16089
16095
|
...rest,
|
16090
16096
|
children
|
@@ -16097,7 +16103,7 @@
|
|
16097
16103
|
}) => /* @__PURE__ */ jsxRuntime.jsx(
|
16098
16104
|
"tbody",
|
16099
16105
|
{
|
16100
|
-
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),
|
16101
16107
|
...rest,
|
16102
16108
|
children
|
16103
16109
|
}
|
@@ -16111,8 +16117,8 @@
|
|
16111
16117
|
{
|
16112
16118
|
className: cls(
|
16113
16119
|
defaultBorderMixin,
|
16114
|
-
"text-sm font-medium text-
|
16115
|
-
"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",
|
16116
16122
|
className
|
16117
16123
|
),
|
16118
16124
|
children
|
@@ -16130,8 +16136,8 @@
|
|
16130
16136
|
onClick,
|
16131
16137
|
style,
|
16132
16138
|
className: cls(
|
16133
|
-
"bg-white dark:bg-
|
16134
|
-
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" : "",
|
16135
16141
|
className
|
16136
16142
|
),
|
16137
16143
|
...rest,
|
@@ -16233,7 +16239,7 @@
|
|
16233
16239
|
avoidCollisions,
|
16234
16240
|
children: [
|
16235
16241
|
children,
|
16236
|
-
/* @__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" })
|
16237
16243
|
]
|
16238
16244
|
}
|
16239
16245
|
) })
|
@@ -16315,7 +16321,7 @@
|
|
16315
16321
|
case "error":
|
16316
16322
|
return "bg-red-500";
|
16317
16323
|
default:
|
16318
|
-
return "bg-
|
16324
|
+
return "bg-surface-accent-300 dark:bg-surface-accent-700";
|
16319
16325
|
}
|
16320
16326
|
};
|
16321
16327
|
const Badge = ({
|
@@ -16378,7 +16384,7 @@
|
|
16378
16384
|
},
|
16379
16385
|
className: cls(
|
16380
16386
|
"block",
|
16381
|
-
"bg-
|
16387
|
+
"bg-surface-accent-200 dark:bg-surface-accent-800 rounded-md",
|
16382
16388
|
"animate-pulse",
|
16383
16389
|
"max-w-full max-h-full",
|
16384
16390
|
className
|