@firecms/ui 3.0.0-canary.102 → 3.0.0-canary.103
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/components/Popover.d.ts +2 -1
- package/dist/index.es.js +14 -11
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +13 -10
- package/dist/index.umd.js.map +1 -1
- package/dist/styles.d.ts +1 -1
- package/package.json +2 -2
- package/src/components/Button.tsx +4 -4
- package/src/components/IconButton.tsx +1 -1
- package/src/components/Popover.tsx +15 -13
- package/src/components/Sheet.tsx +9 -9
- package/src/components/Tabs.tsx +1 -1
- package/src/styles.ts +1 -1
package/dist/index.umd.js
CHANGED
@@ -38,7 +38,7 @@
|
|
38
38
|
const focusedClasses = "z-30 outline-none ring-2 ring-primary ring-opacity-75 ring-offset-2 ring-offset-transparent ";
|
39
39
|
const fieldBackgroundMixin = "bg-opacity-50 bg-slate-200 dark:bg-gray-800 dark:bg-opacity-60";
|
40
40
|
const fieldBackgroundInvisibleMixin = "bg-opacity-0 bg-slate-100 dark:bg-gray-800 dark:bg-opacity-0";
|
41
|
-
const fieldBackgroundDisabledMixin = "dark:bg-gray-800 bg-opacity-
|
41
|
+
const fieldBackgroundDisabledMixin = "dark:bg-gray-800 bg-opacity-50 dark:bg-opacity-90";
|
42
42
|
const fieldBackgroundHoverMixin = "hover:bg-opacity-70 dark:hover:bg-gray-700 dark:hover:bg-opacity-60";
|
43
43
|
const defaultBorderMixin = "border-gray-100 dark:border-gray-800 dark:border-opacity-80";
|
44
44
|
const paperMixin = "bg-white rounded-md dark:bg-gray-950 border dark:border-gray-800 dark:border-opacity-80 border-gray-100";
|
@@ -584,10 +584,10 @@
|
|
584
584
|
"w-full": fullWidth,
|
585
585
|
"w-fit": !fullWidth,
|
586
586
|
// Filled Variants
|
587
|
-
"border border-transparent bg-primary hover:bg-primary-dark focus:ring-primary shadow hover:ring-1 hover:ring-primary text-white": variant === "filled" && color === "primary" && !disabled,
|
588
|
-
"border border-transparent bg-secondary hover:bg-secondary-dark focus:ring-secondary shadow hover:ring-1 hover:ring-secondary text-white": variant === "filled" && color === "secondary" && !disabled,
|
589
|
-
"border border-transparent bg-red-500 hover:bg-red-500 focus:ring-red-500 shadow hover:ring-1 hover:ring-red-600 text-white": variant === "filled" && color === "error" && !disabled,
|
590
|
-
"border border-transparent bg-slate-200 hover:bg-slate-300 focus:ring-slate-400 shadow hover:ring-1 hover:ring-slate-400 text-text-primary dark:text-text-primary-dark": variant === "filled" && color === "text" && !disabled,
|
587
|
+
"border border-transparent 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,
|
588
|
+
"border border-transparent 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,
|
589
|
+
"border border-transparent 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,
|
590
|
+
"border border-transparent bg-slate-200 hover:bg-slate-300 focus:ring-slate-400 shadow hover:ring-1 hover:ring-slate-400 text-text-primary hover:text-text-primary dark:text-text-primary-dark hover:dark:text-text-primary-dark": variant === "filled" && color === "text" && !disabled,
|
591
591
|
// Text Variants
|
592
592
|
"border border-transparent text-primary hover:bg-slate-200 dark:hover:bg-gray-900": variant === "text" && color === "primary" && !disabled,
|
593
593
|
"border border-transparent text-secondary hover:bg-secondary-bg": variant === "text" && color === "secondary" && !disabled,
|
@@ -13676,7 +13676,7 @@
|
|
13676
13676
|
}
|
13677
13677
|
);
|
13678
13678
|
}
|
13679
|
-
const buttonClasses = "hover:bg-slate-200 hover:bg-opacity-75 dark:hover:bg-
|
13679
|
+
const buttonClasses = "hover:bg-slate-200 hover:bg-opacity-75 dark:hover:bg-slate-800";
|
13680
13680
|
const baseClasses = "inline-flex items-center justify-center p-2 text-sm font-medium focus:outline-none transition-colors ease-in-out duration-150";
|
13681
13681
|
const colorClasses$1 = "text-slate-600 visited:text-slate-600 dark:text-slate-300 dark:visited:text-gray-300";
|
13682
13682
|
const sizeClasses = {
|
@@ -16083,7 +16083,7 @@
|
|
16083
16083
|
DialogPrimitive__namespace.Overlay,
|
16084
16084
|
{
|
16085
16085
|
className: cls(
|
16086
|
-
"fixed inset-0 transition-opacity z-20 ease-in-out duration-100
|
16086
|
+
"fixed inset-0 transition-opacity z-20 ease-in-out duration-100 backdrop-blur-sm",
|
16087
16087
|
"bg-black bg-opacity-50",
|
16088
16088
|
"dark:bg-gray-900 dark:bg-opacity-60",
|
16089
16089
|
displayed && open ? "opacity-100" : "opacity-0",
|
@@ -16091,13 +16091,15 @@
|
|
16091
16091
|
),
|
16092
16092
|
style: {
|
16093
16093
|
pointerEvents: displayed ? "auto" : "none"
|
16094
|
-
}
|
16094
|
+
},
|
16095
|
+
onClick: () => onOpenChange && onOpenChange(false)
|
16095
16096
|
}
|
16096
16097
|
),
|
16097
16098
|
/* @__PURE__ */ jsxRuntime.jsx(
|
16098
16099
|
DialogPrimitive__namespace.Content,
|
16099
16100
|
{
|
16100
16101
|
...props,
|
16102
|
+
onFocusCapture: (event) => event.preventDefault(),
|
16101
16103
|
className: cls(
|
16102
16104
|
borderClass[side],
|
16103
16105
|
defaultBorderMixin,
|
@@ -16620,7 +16622,7 @@
|
|
16620
16622
|
),
|
16621
16623
|
children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: cls(
|
16622
16624
|
"uppercase inline-block p-2 px-4 m-2 rounded",
|
16623
|
-
"hover:bg-slate-
|
16625
|
+
"hover:bg-slate-200 hover:bg-opacity-75 dark:hover:bg-slate-800"
|
16624
16626
|
), children })
|
16625
16627
|
}
|
16626
16628
|
);
|
@@ -16739,6 +16741,7 @@
|
|
16739
16741
|
avoidCollisions,
|
16740
16742
|
enabled = true,
|
16741
16743
|
modal = false,
|
16744
|
+
portalContainer,
|
16742
16745
|
className
|
16743
16746
|
}) {
|
16744
16747
|
useInjectStyles("Popover", popoverStyles);
|
@@ -16752,7 +16755,7 @@
|
|
16752
16755
|
modal,
|
16753
16756
|
children: [
|
16754
16757
|
/* @__PURE__ */ jsxRuntime.jsx(PopoverPrimitive__namespace.Trigger, { asChild: true, children: trigger }),
|
16755
|
-
/* @__PURE__ */ jsxRuntime.jsx(PopoverPrimitive__namespace.Portal, { children: /* @__PURE__ */ jsxRuntime.jsxs(
|
16758
|
+
/* @__PURE__ */ jsxRuntime.jsx(PopoverPrimitive__namespace.Portal, { container: portalContainer, children: /* @__PURE__ */ jsxRuntime.jsxs(
|
16756
16759
|
PopoverPrimitive__namespace.Content,
|
16757
16760
|
{
|
16758
16761
|
className: cls(
|