@firecms/ui 3.0.0-canary.105 → 3.0.0-canary.106

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
@@ -434,7 +434,7 @@
434
434
  className,
435
435
  onValueChange,
436
436
  disabled = false,
437
- size = "medium",
437
+ size = "small",
438
438
  ...props
439
439
  }, ref) {
440
440
  return /* @__PURE__ */ jsxRuntime.jsxs(
@@ -454,7 +454,7 @@
454
454
  }
455
455
  },
456
456
  className: cls(
457
- size === "small" ? "w-[38px] h-[22px] min-w-[38px] min-h-[22px]" : "w-[42px] h-[26px] min-w-[42px] min-h-[26px]",
457
+ size === "smallest" ? "w-[38px] h-[22px] min-w-[38px] min-h-[22px]" : "w-[42px] h-[26px] min-w-[42px] min-h-[26px]",
458
458
  "outline-none rounded-full relative shadow-sm",
459
459
  value ? disabled ? "bg-white bg-opacity-54 dark:bg-slate-950 border-slate-100 dark:border-slate-700 ring-1 ring-slate-200 dark:ring-slate-700" : "ring-secondary ring-1 bg-secondary dark:bg-secondary" : "bg-white bg-opacity-54 dark:bg-slate-900 ring-1 ring-slate-200 dark:ring-slate-700",
460
460
  className
@@ -468,10 +468,10 @@
468
468
  "block rounded-full transition-transform duration-100 transform will-change-auto",
469
469
  disabled ? "bg-slate-400 dark:bg-slate-600" : "bg-slate-400 dark:bg-slate-600",
470
470
  {
471
- "w-[21px] h-[10px]": size === "medium" || size === "large",
472
- "w-[19px] h-[8px]": size === "small",
473
- "translate-x-[10px]": size === "medium" || size === "large",
474
- "translate-x-[9px]": size === "small"
471
+ "w-[21px] h-[10px]": size === "small" || size === "medium",
472
+ "w-[19px] h-[8px]": size === "smallest",
473
+ "translate-x-[10px]": size === "small" || size === "medium",
474
+ "translate-x-[9px]": size === "smallest"
475
475
  }
476
476
  )
477
477
  },
@@ -484,10 +484,10 @@
484
484
  "block rounded-full transition-transform duration-100 transform will-change-auto",
485
485
  disabled ? "bg-slate-300 dark:bg-slate-700" : value ? "bg-white" : "bg-slate-600 dark:bg-slate-400",
486
486
  {
487
- "w-[21px] h-[21px]": size === "medium" || size === "large",
488
- "w-[19px] h-[19px]": size === "small",
489
- [value ? "translate-x-[19px]" : "translate-x-[3px]"]: size === "medium" || size === "large",
490
- [value ? "translate-x-[17px]" : "translate-x-[2px]"]: size === "small"
487
+ "w-[21px] h-[21px]": size === "small" || size === "medium",
488
+ "w-[19px] h-[19px]": size === "smallest",
489
+ [value ? "translate-x-[19px]" : "translate-x-[3px]"]: size === "small" || size === "medium",
490
+ [value ? "translate-x-[17px]" : "translate-x-[2px]"]: size === "smallest"
491
491
  }
492
492
  )
493
493
  },
@@ -532,9 +532,9 @@
532
532
  "rounded-md max-w-full justify-between w-full box-border relative inline-flex items-center",
533
533
  !invisible && focus && !disabled ? focusedClasses : "",
534
534
  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",
535
- size === "small" ? "min-h-[40px]" : size === "medium" ? "min-h-[48px]" : "min-h-[64px]",
536
- size === "small" ? "pl-2" : "pl-4",
537
- size === "small" ? "pr-4" : "pr-6",
535
+ size === "smallest" ? "min-h-[40px]" : size === "small" ? "min-h-[48px]" : "min-h-[64px]",
536
+ size === "smallest" ? "pl-2" : "pl-4",
537
+ size === "smallest" ? "pr-4" : "pr-6",
538
538
  position === "end" ? "flex-row-reverse" : "flex-row"
539
539
  ),
540
540
  onClick: disabled ? void 0 : (e) => {
@@ -561,7 +561,7 @@
561
561
  /* @__PURE__ */ jsxRuntime.jsx("div", { className: cls(
562
562
  "flex-grow",
563
563
  position === "end" ? "mr-4" : "ml-4",
564
- size === "small" ? "text-sm" : "text-base"
564
+ size === "smallest" ? "text-sm" : "text-base"
565
565
  ), children: label })
566
566
  ]
567
567
  }
@@ -13571,19 +13571,19 @@
13571
13571
  large: "w-6 h-6 rounded flex items-center justify-center",
13572
13572
  medium: "w-5 h-5 rounded flex items-center justify-center",
13573
13573
  small: "w-4 h-4 rounded flex items-center justify-center",
13574
- tiny: "w-4 h-4 rounded flex items-center justify-center"
13574
+ smallest: "w-4 h-4 rounded flex items-center justify-center"
13575
13575
  };
13576
13576
  const outerSizeClasses = {
13577
13577
  medium: "w-10 h-10",
13578
13578
  small: "w-8 h-8",
13579
13579
  large: "w-12 h-12 ",
13580
- tiny: "w-6 h-6"
13580
+ smallest: "w-6 h-6"
13581
13581
  };
13582
13582
  const paddingClasses = {
13583
13583
  medium: "p-2",
13584
13584
  small: "p-2",
13585
13585
  large: "p-2",
13586
- tiny: ""
13586
+ smallest: ""
13587
13587
  };
13588
13588
  const colorClasses$2 = {
13589
13589
  primary: "bg-primary",
@@ -13600,7 +13600,7 @@
13600
13600
  color = "primary"
13601
13601
  }) => {
13602
13602
  const isChecked = indeterminate ? false : checked;
13603
- const iconSize = size === "medium" ? 20 : size === "small" ? 16 : size === "tiny" ? 14 : 24;
13603
+ const iconSize = size === "medium" ? 20 : size === "small" ? 16 : size === "smallest" ? 14 : 24;
13604
13604
  return /* @__PURE__ */ jsxRuntime.jsx(
13605
13605
  CheckboxPrimitive__namespace.Root,
13606
13606
  {
@@ -13631,7 +13631,7 @@
13631
13631
  );
13632
13632
  };
13633
13633
  const sizeClassNames = {
13634
- tiny: "px-2 py-0.5 text-sm",
13634
+ smallest: "px-2 py-0.5 text-sm",
13635
13635
  small: "px-3 py-1 text-sm",
13636
13636
  medium: "px-4 py-1.5 text-sm"
13637
13637
  };