@firecms/ui 3.0.0-canary.134 → 3.0.0-canary.136
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/Sheet.d.ts +1 -0
- package/dist/index.css +1 -1
- package/dist/index.es.js +9 -8
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +9 -8
- package/dist/index.umd.js.map +1 -1
- package/dist/styles.d.ts +3 -3
- package/package.json +2 -2
- package/src/components/Button.tsx +1 -1
- package/src/components/Sheet.tsx +3 -1
- package/src/components/Slider.tsx +3 -3
- package/src/index.css +1 -1
- package/src/styles.ts +3 -3
package/dist/index.umd.js
CHANGED
@@ -43,9 +43,9 @@
|
|
43
43
|
const fieldBackgroundInvisibleMixin = "bg-opacity-0 bg-slate-100 dark:bg-gray-800 dark:bg-opacity-0";
|
44
44
|
const fieldBackgroundDisabledMixin = "dark:bg-gray-800 bg-opacity-50 dark:bg-opacity-90";
|
45
45
|
const fieldBackgroundHoverMixin = "hover:bg-opacity-70 dark:hover:bg-gray-700 dark:hover:bg-opacity-40";
|
46
|
-
const defaultBorderMixin = "border-gray-200 border-opacity-40 dark:border-gray-700 dark:border-opacity-
|
47
|
-
const paperMixin = "bg-white rounded-md dark:bg-gray-950 border border-gray-200 border-opacity-40 dark:border-gray-700 dark:border-opacity-
|
48
|
-
const cardMixin = "bg-white border border-gray-200 border-opacity-40 dark:border-transparent rounded-md dark:bg-gray-950 dark:border-gray-700 dark:border-opacity-
|
46
|
+
const defaultBorderMixin = "border-gray-200 border-opacity-40 dark:border-gray-700 dark:border-opacity-40";
|
47
|
+
const paperMixin = "bg-white rounded-md dark:bg-gray-950 border border-gray-200 border-opacity-40 dark:border-gray-700 dark:border-opacity-40";
|
48
|
+
const cardMixin = "bg-white border border-gray-200 border-opacity-40 dark:border-transparent rounded-md dark:bg-gray-950 dark:border-gray-700 dark:border-opacity-40 m-1 -p-1";
|
49
49
|
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";
|
50
50
|
const cardSelectedMixin = "bg-primary-bg dark:bg-primary-bg bg-opacity-30 dark:bg-opacity-10 ring-1 ring-primary ring-opacity-75";
|
51
51
|
function cls(...classes) {
|
@@ -581,7 +581,7 @@
|
|
581
581
|
color = "primary",
|
582
582
|
...props
|
583
583
|
}, ref) => {
|
584
|
-
const baseClasses2 = "h-fit rounded-md
|
584
|
+
const baseClasses2 = "typography-button h-fit rounded-md whitespace-nowrap inline-flex items-center justify-center p-2 px-4 focus:outline-none transition ease-in-out duration-150 gap-2";
|
585
585
|
const buttonClasses2 = cls({
|
586
586
|
"w-full": fullWidth,
|
587
587
|
"w-fit": !fullWidth,
|
@@ -16228,12 +16228,12 @@
|
|
16228
16228
|
{
|
16229
16229
|
className: cls(
|
16230
16230
|
{
|
16231
|
-
"border-primary bg-primary hover:bg-primary-dark
|
16231
|
+
"border-primary bg-primary hover:bg-primary-dark outline-none": !props.props.disabled,
|
16232
16232
|
"border-slate-300 bg-slate-300 dark:border-gray-700 dark:bg-gray-700": props.props.disabled
|
16233
16233
|
},
|
16234
16234
|
props.classes,
|
16235
|
-
"focus:ring-
|
16236
|
-
"hover:ring-
|
16235
|
+
"focus-visible:ring-4 focus-visible:ring-primary focus-visible:ring-opacity-50",
|
16236
|
+
"hover:ring-4 hover:ring-primary hover:ring-opacity-25",
|
16237
16237
|
"block rounded-full transition-colors focus-visible:outline-none disabled:pointer-events-none disabled:opacity-50"
|
16238
16238
|
)
|
16239
16239
|
}
|
@@ -16308,6 +16308,7 @@
|
|
16308
16308
|
side = "right",
|
16309
16309
|
title,
|
16310
16310
|
modal = true,
|
16311
|
+
includeBackgroundOverlay = true,
|
16311
16312
|
open,
|
16312
16313
|
onOpenChange,
|
16313
16314
|
transparent,
|
@@ -16342,7 +16343,7 @@
|
|
16342
16343
|
onOpenChange,
|
16343
16344
|
children: /* @__PURE__ */ jsxRuntime.jsxs(DialogPrimitive__namespace.Portal, { children: [
|
16344
16345
|
/* @__PURE__ */ jsxRuntime.jsx(DialogPrimitive__namespace.Title, { autoFocus: true, tabIndex: 0, children: title ?? "Sheet" }),
|
16345
|
-
|
16346
|
+
includeBackgroundOverlay && /* @__PURE__ */ jsxRuntime.jsx(
|
16346
16347
|
DialogPrimitive__namespace.Overlay,
|
16347
16348
|
{
|
16348
16349
|
className: cls(
|