@firecms/ui 3.0.0-canary.141 → 3.0.0-canary.143
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/BooleanSwitchWithLabel.d.ts +4 -1
- package/dist/index.es.js +10 -5
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +10 -5
- package/dist/index.umd.js.map +1 -1
- package/package.json +2 -2
- package/src/components/BooleanSwitchWithLabel.tsx +11 -3
- package/src/components/Table.tsx +2 -2
package/dist/index.umd.js
CHANGED
@@ -496,6 +496,9 @@
|
|
496
496
|
autoFocus,
|
497
497
|
disabled,
|
498
498
|
size,
|
499
|
+
className,
|
500
|
+
fullWidth = true,
|
501
|
+
inputClassName,
|
499
502
|
...props
|
500
503
|
}) {
|
501
504
|
const ref = React.useRef(null);
|
@@ -517,13 +520,15 @@
|
|
517
520
|
!invisible && fieldBackgroundMixin,
|
518
521
|
!invisible && (disabled ? fieldBackgroundDisabledMixin : fieldBackgroundHoverMixin),
|
519
522
|
disabled ? "cursor-default" : "cursor-pointer",
|
520
|
-
"rounded-md max-w-full justify-between
|
523
|
+
"rounded-md max-w-full justify-between box-border relative inline-flex items-center",
|
521
524
|
!invisible && focus && !disabled ? focusedClasses : "",
|
522
525
|
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",
|
523
526
|
size === "smallest" ? "min-h-[40px]" : size === "small" ? "min-h-[48px]" : "min-h-[64px]",
|
524
527
|
size === "smallest" ? "pl-2" : "pl-4",
|
525
528
|
size === "smallest" ? "pr-4" : "pr-6",
|
526
|
-
position === "end" ? "flex-row-reverse" : "flex-row"
|
529
|
+
position === "end" ? "flex-row-reverse" : "flex-row",
|
530
|
+
fullWidth ? "w-full" : "",
|
531
|
+
className
|
527
532
|
),
|
528
533
|
onClick: disabled ? void 0 : (e) => {
|
529
534
|
if (props.allowIndeterminate) {
|
@@ -541,7 +546,7 @@
|
|
541
546
|
value,
|
542
547
|
ref: refInput,
|
543
548
|
size,
|
544
|
-
className: invisible && focus ? focusedClasses : "",
|
549
|
+
className: cls(invisible && focus ? focusedClasses : "", inputClassName),
|
545
550
|
disabled,
|
546
551
|
...props
|
547
552
|
}
|
@@ -16092,7 +16097,7 @@
|
|
16092
16097
|
}) => /* @__PURE__ */ jsxRuntime.jsx(
|
16093
16098
|
"tbody",
|
16094
16099
|
{
|
16095
|
-
className: cls("bg-white dark:bg-gray-950 text-sm divide-y divide-gray-100 dark:divide-gray-
|
16100
|
+
className: cls("bg-white dark:bg-gray-950 text-sm divide-y divide-gray-100 dark:divide-gray-700 dark:divide-opacity-70", className),
|
16096
16101
|
...rest,
|
16097
16102
|
children
|
16098
16103
|
}
|
@@ -16126,7 +16131,7 @@
|
|
16126
16131
|
style,
|
16127
16132
|
className: cls(
|
16128
16133
|
"bg-white dark:bg-gray-950",
|
16129
|
-
onClick ? "hover:bg-slate-100 dark:hover:bg-
|
16134
|
+
onClick ? "hover:bg-slate-100 dark:hover:bg-slate-800 cursor-pointer" : "",
|
16130
16135
|
className
|
16131
16136
|
),
|
16132
16137
|
...rest,
|