@dust-tt/sparkle 0.2.266-rc-1 → 0.2.266-rc-2

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/cjs/index.js CHANGED
@@ -79283,9 +79283,10 @@ Label$1.displayName = Root$4.displayName;
79283
79283
 
79284
79284
  var checkboxStyles = cva(cn("s-shrink-0 s-peer s-border s-border-primary-500 s-text-foreground", "data-[state=checked]:s-text-white data-[state=checked]:s-text-foreground", "focus-visible:s-ring-ring s-ring-offset-background focus-visible:s-outline-none focus-visible:s-ring-2 focus-visible:s-ring-offset-2", "disabled:s-cursor-not-allowed disabled:s-opacity-50"), {
79285
79285
  variants: {
79286
- isPartial: {
79287
- false: "data-[state=checked]:s-bg-action-500",
79288
- true: "data-[state=checked]:s-bg-element-700",
79286
+ checked: {
79287
+ true: "data-[state=checked]:s-bg-action-500",
79288
+ partial: "data-[state=checked]:s-bg-element-700",
79289
+ false: "",
79289
79290
  },
79290
79291
  size: {
79291
79292
  xs: "s-h-4 s-w-4 s-rounded",
@@ -79294,15 +79295,15 @@ var checkboxStyles = cva(cn("s-shrink-0 s-peer s-border s-border-primary-500 s-t
79294
79295
  },
79295
79296
  defaultVariants: {
79296
79297
  size: "sm",
79297
- isPartial: false,
79298
+ checked: false,
79298
79299
  },
79299
79300
  });
79300
79301
  var Checkbox = React.forwardRef(function (_a, ref) {
79301
- var className = _a.className, _b = _a.size, size = _b === void 0 ? "sm" : _b, _c = _a.isPartial, isPartial = _c === void 0 ? false : _c, checked = _a.checked, props = __rest(_a, ["className", "size", "isPartial", "checked"]);
79302
- return (React.createElement(Root$5, __assign({ ref: ref, className: cn(checkboxStyles({ isPartial: isPartial, size: size }), className), checked: isPartial || checked }, props),
79302
+ var className = _a.className, size = _a.size, checked = _a.checked, props = __rest(_a, ["className", "size", "checked"]);
79303
+ return (React.createElement(Root$5, __assign({ ref: ref, className: cn(checkboxStyles({ checked: checked, size: size }), className), checked: !!checked }, props),
79303
79304
  React.createElement(Indicator, { className: "s-flex s-items-center s-justify-center s-text-current" },
79304
79305
  React.createElement("span", { className: cn(size === "xs" ? "-s-mt-px" : "") },
79305
- React.createElement(Icon, { size: "xs", visual: isPartial ? DashIcon : CheckIcon })))));
79306
+ React.createElement(Icon, { size: "xs", visual: checked === "partial" ? DashIcon : CheckIcon })))));
79306
79307
  });
79307
79308
  Checkbox.displayName = Root$5.displayName;
79308
79309
  function CheckboxWithText(_a) {