@chekinapp/ui 0.0.96 → 0.0.98

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
  ),
@@ -7569,7 +7573,16 @@ function useRadioOptions({ options, defaultValue, onChange }) {
7569
7573
  // src/radio/Radio.tsx
7570
7574
  var import_jsx_runtime86 = require("react/jsx-runtime");
7571
7575
  var Radio = (0, import_react64.forwardRef)(
7572
- ({ options, value, onChange, error, className = "", disabled = false, renderOption }, ref) => {
7576
+ ({
7577
+ options,
7578
+ value,
7579
+ onChange,
7580
+ error,
7581
+ className = "",
7582
+ size,
7583
+ disabled = false,
7584
+ renderOption
7585
+ }, ref) => {
7573
7586
  const { selectedValue, handleValueChange } = useRadioOptions({
7574
7587
  options,
7575
7588
  defaultValue: value,
@@ -7595,7 +7608,7 @@ var Radio = (0, import_react64.forwardRef)(
7595
7608
  {
7596
7609
  className: cn(
7597
7610
  "radio__wrapper",
7598
- "flex cursor-pointer items-center gap-2",
7611
+ "flex cursor-pointer items-center gap-2 transition-all duration-200",
7599
7612
  (disabled || option.disabled) && "cursor-default opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-70"
7600
7613
  ),
7601
7614
  children: renderOption ? renderOption({ option, isSelected: getIsSelected(option) }) : /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)(import_jsx_runtime86.Fragment, { children: [
@@ -7605,6 +7618,7 @@ var Radio = (0, import_react64.forwardRef)(
7605
7618
  value: option.value,
7606
7619
  id: `option-${option.value}`,
7607
7620
  disabled: option.disabled,
7621
+ size,
7608
7622
  className: "radio__indicator"
7609
7623
  }
7610
7624
  ),
@@ -7634,7 +7648,7 @@ function RadioWithBorder({ size, ...props }) {
7634
7648
  "div",
7635
7649
  {
7636
7650
  className: cn(
7637
- "flex w-full items-start gap-3 rounded-lg border p-4",
7651
+ "flex w-full items-start gap-3 rounded-lg border p-4 transition-all duration-200",
7638
7652
  isSelected && "border-[var(--chekin-color-brand-blue)] bg-[var(--chekin-color-surface-autocomplete)]"
7639
7653
  ),
7640
7654
  children: [
@@ -7648,12 +7662,15 @@ function RadioWithBorder({ size, ...props }) {
7648
7662
  size
7649
7663
  }
7650
7664
  ),
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 })
7665
+ /* @__PURE__ */ (0, import_jsx_runtime87.jsxs)("div", { className: "flex min-w-0 flex-1 items-start justify-between gap-3", children: [
7666
+ /* @__PURE__ */ (0, import_jsx_runtime87.jsxs)("div", { className: "min-w-0 space-y-1 leading-6", children: [
7667
+ /* @__PURE__ */ (0, import_jsx_runtime87.jsxs)("p", { className: "flex items-center gap-3 font-semibold", children: [
7668
+ option.label,
7669
+ 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 })
7670
+ ] }),
7671
+ data?.description && /* @__PURE__ */ (0, import_jsx_runtime87.jsx)("p", { className: "text-sm font-medium text-[var(--chekin-color-gray-1)]", children: data.description })
7655
7672
  ] }),
7656
- data?.description && /* @__PURE__ */ (0, import_jsx_runtime87.jsx)("p", { className: "text-sm font-medium text-[var(--chekin-color-gray-1)]", children: data.description })
7673
+ data?.rightContent && /* @__PURE__ */ (0, import_jsx_runtime87.jsx)("div", { className: "shrink-0", children: data.rightContent })
7657
7674
  ] })
7658
7675
  ]
7659
7676
  }