@chekinapp/ui 0.0.96 → 0.0.99

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.cjs CHANGED
@@ -6657,12 +6657,16 @@ var import_jsx_runtime74 = require("react/jsx-runtime");
6657
6657
  var loaderSizePixels = {
6658
6658
  sm: 16,
6659
6659
  md: 32,
6660
- lg: 48
6660
+ lg: 48,
6661
+ xl: 58,
6662
+ "2xl": 72
6661
6663
  };
6662
6664
  var labelSizeClassName = {
6663
6665
  sm: "text-xs",
6664
6666
  md: "text-sm",
6665
- lg: "text-base"
6667
+ lg: "text-base",
6668
+ xl: "text-base",
6669
+ "2xl": "text-base"
6666
6670
  };
6667
6671
  var CircularLoader = import_react57.default.memo(
6668
6672
  ({
@@ -6679,7 +6683,7 @@ var CircularLoader = import_react57.default.memo(
6679
6683
  "div",
6680
6684
  {
6681
6685
  className: cn(
6682
- "main-loader flex flex-col items-center justify-center gap-2",
6686
+ "main-loader flex flex-col items-center justify-center gap-2 z-50",
6683
6687
  position === "center" && "h-full",
6684
6688
  className
6685
6689
  ),
@@ -7513,11 +7517,13 @@ var RadioGroup2 = React25.forwardRef(({ className, ...props }, ref) => /* @__PUR
7513
7517
  RadioGroup2.displayName = RadioGroupPrimitive.Root.displayName;
7514
7518
  var radioSizeClasses = {
7515
7519
  default: "h-4 w-4",
7516
- m: "h-5 w-5"
7520
+ m: "h-5 w-5",
7521
+ l: "h-6 w-6"
7517
7522
  };
7518
7523
  var indicatorSizeClasses = {
7519
7524
  default: "h-2 w-2",
7520
- m: "h-2.5 w-2.5"
7525
+ m: "h-2.5 w-2.5",
7526
+ l: "h-3 w-3"
7521
7527
  };
7522
7528
  var RadioGroupItem = React25.forwardRef(({ className, size = "default", ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
7523
7529
  RadioGroupPrimitive.Item,
@@ -7569,7 +7575,16 @@ function useRadioOptions({ options, defaultValue, onChange }) {
7569
7575
  // src/radio/Radio.tsx
7570
7576
  var import_jsx_runtime86 = require("react/jsx-runtime");
7571
7577
  var Radio = (0, import_react64.forwardRef)(
7572
- ({ options, value, onChange, error, className = "", disabled = false, renderOption }, ref) => {
7578
+ ({
7579
+ options,
7580
+ value,
7581
+ onChange,
7582
+ error,
7583
+ className = "",
7584
+ size,
7585
+ disabled = false,
7586
+ renderOption
7587
+ }, ref) => {
7573
7588
  const { selectedValue, handleValueChange } = useRadioOptions({
7574
7589
  options,
7575
7590
  defaultValue: value,
@@ -7595,7 +7610,7 @@ var Radio = (0, import_react64.forwardRef)(
7595
7610
  {
7596
7611
  className: cn(
7597
7612
  "radio__wrapper",
7598
- "flex cursor-pointer items-center gap-2",
7613
+ "flex cursor-pointer items-center gap-2 transition-all duration-200",
7599
7614
  (disabled || option.disabled) && "cursor-default opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-70"
7600
7615
  ),
7601
7616
  children: renderOption ? renderOption({ option, isSelected: getIsSelected(option) }) : /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)(import_jsx_runtime86.Fragment, { children: [
@@ -7605,6 +7620,7 @@ var Radio = (0, import_react64.forwardRef)(
7605
7620
  value: option.value,
7606
7621
  id: `option-${option.value}`,
7607
7622
  disabled: option.disabled,
7623
+ size,
7608
7624
  className: "radio__indicator"
7609
7625
  }
7610
7626
  ),
@@ -7634,7 +7650,7 @@ function RadioWithBorder({ size, ...props }) {
7634
7650
  "div",
7635
7651
  {
7636
7652
  className: cn(
7637
- "flex w-full items-start gap-3 rounded-lg border p-4",
7653
+ "flex w-full items-start gap-3 rounded-lg border p-4 transition-all duration-200",
7638
7654
  isSelected && "border-[var(--chekin-color-brand-blue)] bg-[var(--chekin-color-surface-autocomplete)]"
7639
7655
  ),
7640
7656
  children: [
@@ -7648,12 +7664,15 @@ function RadioWithBorder({ size, ...props }) {
7648
7664
  size
7649
7665
  }
7650
7666
  ),
7651
- /* @__PURE__ */ (0, import_jsx_runtime87.jsxs)("div", { className: "space-y-1 leading-6", children: [
7652
- /* @__PURE__ */ (0, import_jsx_runtime87.jsxs)("p", { className: "flex items-center gap-3 font-semibold", children: [
7653
- option.label,
7654
- data?.subLabel && /* @__PURE__ */ (0, import_jsx_runtime87.jsx)("span", { className: "rounded bg-[color-mix(in_srgb,var(--chekin-color-brand-blue)_10%,transparent)] px-2 py-1 text-sm font-semibold leading-4 text-[var(--chekin-color-brand-blue)]", children: data.subLabel })
7667
+ /* @__PURE__ */ (0, import_jsx_runtime87.jsxs)("div", { className: "flex min-w-0 flex-1 items-start justify-between gap-3", children: [
7668
+ /* @__PURE__ */ (0, import_jsx_runtime87.jsxs)("div", { className: "min-w-0 space-y-1 leading-6", children: [
7669
+ /* @__PURE__ */ (0, import_jsx_runtime87.jsxs)("p", { className: "flex items-center gap-3 font-semibold", children: [
7670
+ option.label,
7671
+ data?.subLabel && /* @__PURE__ */ (0, import_jsx_runtime87.jsx)("span", { className: "rounded bg-[color-mix(in_srgb,var(--chekin-color-brand-blue)_10%,transparent)] px-2 py-1 text-sm font-semibold leading-4 text-[var(--chekin-color-brand-blue)]", children: data.subLabel })
7672
+ ] }),
7673
+ data?.description && /* @__PURE__ */ (0, import_jsx_runtime87.jsx)("p", { className: "text-sm font-medium text-[var(--chekin-color-gray-1)]", children: data.description })
7655
7674
  ] }),
7656
- data?.description && /* @__PURE__ */ (0, import_jsx_runtime87.jsx)("p", { className: "text-sm font-medium text-[var(--chekin-color-gray-1)]", children: data.description })
7675
+ data?.rightContent && /* @__PURE__ */ (0, import_jsx_runtime87.jsx)("div", { className: "shrink-0", children: data.rightContent })
7657
7676
  ] })
7658
7677
  ]
7659
7678
  }