@firecms/ui 3.0.0-canary.142 → 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/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 w-full box-border relative inline-flex items-center",
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
  }