@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.css
CHANGED
package/dist/index.es.js
CHANGED
@@ -33,9 +33,9 @@ const fieldBackgroundMixin = "bg-opacity-50 bg-slate-200 dark:bg-gray-800 dark:b
|
|
33
33
|
const fieldBackgroundInvisibleMixin = "bg-opacity-0 bg-slate-100 dark:bg-gray-800 dark:bg-opacity-0";
|
34
34
|
const fieldBackgroundDisabledMixin = "dark:bg-gray-800 bg-opacity-50 dark:bg-opacity-90";
|
35
35
|
const fieldBackgroundHoverMixin = "hover:bg-opacity-70 dark:hover:bg-gray-700 dark:hover:bg-opacity-40";
|
36
|
-
const defaultBorderMixin = "border-gray-200 border-opacity-40 dark:border-gray-700 dark:border-opacity-
|
37
|
-
const paperMixin = "bg-white rounded-md dark:bg-gray-950 border border-gray-200 border-opacity-40 dark:border-gray-700 dark:border-opacity-
|
38
|
-
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-
|
36
|
+
const defaultBorderMixin = "border-gray-200 border-opacity-40 dark:border-gray-700 dark:border-opacity-40";
|
37
|
+
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";
|
38
|
+
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";
|
39
39
|
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";
|
40
40
|
const cardSelectedMixin = "bg-primary-bg dark:bg-primary-bg bg-opacity-30 dark:bg-opacity-10 ring-1 ring-primary ring-opacity-75";
|
41
41
|
function cls(...classes) {
|
@@ -571,7 +571,7 @@ const ButtonInner = React__default.forwardRef(({
|
|
571
571
|
color = "primary",
|
572
572
|
...props
|
573
573
|
}, ref) => {
|
574
|
-
const baseClasses2 = "h-fit rounded-md
|
574
|
+
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";
|
575
575
|
const buttonClasses2 = cls({
|
576
576
|
"w-full": fullWidth,
|
577
577
|
"w-fit": !fullWidth,
|
@@ -16218,12 +16218,12 @@ function SliderThumb(props) {
|
|
16218
16218
|
{
|
16219
16219
|
className: cls(
|
16220
16220
|
{
|
16221
|
-
"border-primary bg-primary hover:bg-primary-dark
|
16221
|
+
"border-primary bg-primary hover:bg-primary-dark outline-none": !props.props.disabled,
|
16222
16222
|
"border-slate-300 bg-slate-300 dark:border-gray-700 dark:bg-gray-700": props.props.disabled
|
16223
16223
|
},
|
16224
16224
|
props.classes,
|
16225
|
-
"focus:ring-
|
16226
|
-
"hover:ring-
|
16225
|
+
"focus-visible:ring-4 focus-visible:ring-primary focus-visible:ring-opacity-50",
|
16226
|
+
"hover:ring-4 hover:ring-primary hover:ring-opacity-25",
|
16227
16227
|
"block rounded-full transition-colors focus-visible:outline-none disabled:pointer-events-none disabled:opacity-50"
|
16228
16228
|
)
|
16229
16229
|
}
|
@@ -16298,6 +16298,7 @@ const Sheet = ({
|
|
16298
16298
|
side = "right",
|
16299
16299
|
title,
|
16300
16300
|
modal = true,
|
16301
|
+
includeBackgroundOverlay = true,
|
16301
16302
|
open,
|
16302
16303
|
onOpenChange,
|
16303
16304
|
transparent,
|
@@ -16332,7 +16333,7 @@ const Sheet = ({
|
|
16332
16333
|
onOpenChange,
|
16333
16334
|
children: /* @__PURE__ */ jsxs(DialogPrimitive.Portal, { children: [
|
16334
16335
|
/* @__PURE__ */ jsx(DialogPrimitive.Title, { autoFocus: true, tabIndex: 0, children: title ?? "Sheet" }),
|
16335
|
-
|
16336
|
+
includeBackgroundOverlay && /* @__PURE__ */ jsx(
|
16336
16337
|
DialogPrimitive.Overlay,
|
16337
16338
|
{
|
16338
16339
|
className: cls(
|