@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.d.cts CHANGED
@@ -1827,7 +1827,7 @@ interface PopoverWithTooltipProps {
1827
1827
  }
1828
1828
  declare function PopoverWithTooltip({ children, popoverContent, tooltipContent, open, onOpenChange, popoverContentClassName, tooltipVariant, }: PopoverWithTooltipProps): react_jsx_runtime.JSX.Element;
1829
1829
 
1830
- type RadioSize = 'default' | 'm';
1830
+ type RadioSize = 'default' | 'm' | 'l';
1831
1831
  declare const RadioGroup: React$1.ForwardRefExoticComponent<Omit<RadioGroupPrimitive.RadioGroupProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
1832
1832
  interface RadioGroupItemProps extends React$1.ComponentPropsWithoutRef<typeof RadioGroupPrimitive.Item> {
1833
1833
  size?: RadioSize;
@@ -2188,7 +2188,7 @@ declare function Skeleton({ className, ...props }: SkeletonProps): react_jsx_run
2188
2188
  type MainLoaderProps = {
2189
2189
  visible?: boolean;
2190
2190
  label?: string | ReactNode;
2191
- size?: 'sm' | 'md' | 'lg';
2191
+ size?: 'sm' | 'md' | 'lg' | 'xl' | '2xl';
2192
2192
  height?: number | string;
2193
2193
  width?: number | string;
2194
2194
  position?: 'center';
package/dist/index.d.ts CHANGED
@@ -1827,7 +1827,7 @@ interface PopoverWithTooltipProps {
1827
1827
  }
1828
1828
  declare function PopoverWithTooltip({ children, popoverContent, tooltipContent, open, onOpenChange, popoverContentClassName, tooltipVariant, }: PopoverWithTooltipProps): react_jsx_runtime.JSX.Element;
1829
1829
 
1830
- type RadioSize = 'default' | 'm';
1830
+ type RadioSize = 'default' | 'm' | 'l';
1831
1831
  declare const RadioGroup: React$1.ForwardRefExoticComponent<Omit<RadioGroupPrimitive.RadioGroupProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
1832
1832
  interface RadioGroupItemProps extends React$1.ComponentPropsWithoutRef<typeof RadioGroupPrimitive.Item> {
1833
1833
  size?: RadioSize;
@@ -2188,7 +2188,7 @@ declare function Skeleton({ className, ...props }: SkeletonProps): react_jsx_run
2188
2188
  type MainLoaderProps = {
2189
2189
  visible?: boolean;
2190
2190
  label?: string | ReactNode;
2191
- size?: 'sm' | 'md' | 'lg';
2191
+ size?: 'sm' | 'md' | 'lg' | 'xl' | '2xl';
2192
2192
  height?: number | string;
2193
2193
  width?: number | string;
2194
2194
  position?: 'center';
package/dist/index.js CHANGED
@@ -6275,12 +6275,16 @@ import { jsx as jsx72, jsxs as jsxs45 } from "react/jsx-runtime";
6275
6275
  var loaderSizePixels = {
6276
6276
  sm: 16,
6277
6277
  md: 32,
6278
- lg: 48
6278
+ lg: 48,
6279
+ xl: 58,
6280
+ "2xl": 72
6279
6281
  };
6280
6282
  var labelSizeClassName = {
6281
6283
  sm: "text-xs",
6282
6284
  md: "text-sm",
6283
- lg: "text-base"
6285
+ lg: "text-base",
6286
+ xl: "text-base",
6287
+ "2xl": "text-base"
6284
6288
  };
6285
6289
  var CircularLoader = React22.memo(
6286
6290
  ({
@@ -6297,7 +6301,7 @@ var CircularLoader = React22.memo(
6297
6301
  "div",
6298
6302
  {
6299
6303
  className: cn(
6300
- "main-loader flex flex-col items-center justify-center gap-2",
6304
+ "main-loader flex flex-col items-center justify-center gap-2 z-50",
6301
6305
  position === "center" && "h-full",
6302
6306
  className
6303
6307
  ),
@@ -7131,11 +7135,13 @@ var RadioGroup2 = React25.forwardRef(({ className, ...props }, ref) => /* @__PUR
7131
7135
  RadioGroup2.displayName = RadioGroupPrimitive.Root.displayName;
7132
7136
  var radioSizeClasses = {
7133
7137
  default: "h-4 w-4",
7134
- m: "h-5 w-5"
7138
+ m: "h-5 w-5",
7139
+ l: "h-6 w-6"
7135
7140
  };
7136
7141
  var indicatorSizeClasses = {
7137
7142
  default: "h-2 w-2",
7138
- m: "h-2.5 w-2.5"
7143
+ m: "h-2.5 w-2.5",
7144
+ l: "h-3 w-3"
7139
7145
  };
7140
7146
  var RadioGroupItem = React25.forwardRef(({ className, size = "default", ...props }, ref) => /* @__PURE__ */ jsx83(
7141
7147
  RadioGroupPrimitive.Item,
@@ -7187,7 +7193,16 @@ function useRadioOptions({ options, defaultValue, onChange }) {
7187
7193
  // src/radio/Radio.tsx
7188
7194
  import { Fragment as Fragment8, jsx as jsx84, jsxs as jsxs53 } from "react/jsx-runtime";
7189
7195
  var Radio = forwardRef36(
7190
- ({ options, value, onChange, error, className = "", disabled = false, renderOption }, ref) => {
7196
+ ({
7197
+ options,
7198
+ value,
7199
+ onChange,
7200
+ error,
7201
+ className = "",
7202
+ size,
7203
+ disabled = false,
7204
+ renderOption
7205
+ }, ref) => {
7191
7206
  const { selectedValue, handleValueChange } = useRadioOptions({
7192
7207
  options,
7193
7208
  defaultValue: value,
@@ -7213,7 +7228,7 @@ var Radio = forwardRef36(
7213
7228
  {
7214
7229
  className: cn(
7215
7230
  "radio__wrapper",
7216
- "flex cursor-pointer items-center gap-2",
7231
+ "flex cursor-pointer items-center gap-2 transition-all duration-200",
7217
7232
  (disabled || option.disabled) && "cursor-default opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-70"
7218
7233
  ),
7219
7234
  children: renderOption ? renderOption({ option, isSelected: getIsSelected(option) }) : /* @__PURE__ */ jsxs53(Fragment8, { children: [
@@ -7223,6 +7238,7 @@ var Radio = forwardRef36(
7223
7238
  value: option.value,
7224
7239
  id: `option-${option.value}`,
7225
7240
  disabled: option.disabled,
7241
+ size,
7226
7242
  className: "radio__indicator"
7227
7243
  }
7228
7244
  ),
@@ -7252,7 +7268,7 @@ function RadioWithBorder({ size, ...props }) {
7252
7268
  "div",
7253
7269
  {
7254
7270
  className: cn(
7255
- "flex w-full items-start gap-3 rounded-lg border p-4",
7271
+ "flex w-full items-start gap-3 rounded-lg border p-4 transition-all duration-200",
7256
7272
  isSelected && "border-[var(--chekin-color-brand-blue)] bg-[var(--chekin-color-surface-autocomplete)]"
7257
7273
  ),
7258
7274
  children: [
@@ -7266,12 +7282,15 @@ function RadioWithBorder({ size, ...props }) {
7266
7282
  size
7267
7283
  }
7268
7284
  ),
7269
- /* @__PURE__ */ jsxs54("div", { className: "space-y-1 leading-6", children: [
7270
- /* @__PURE__ */ jsxs54("p", { className: "flex items-center gap-3 font-semibold", children: [
7271
- option.label,
7272
- data?.subLabel && /* @__PURE__ */ jsx85("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 })
7285
+ /* @__PURE__ */ jsxs54("div", { className: "flex min-w-0 flex-1 items-start justify-between gap-3", children: [
7286
+ /* @__PURE__ */ jsxs54("div", { className: "min-w-0 space-y-1 leading-6", children: [
7287
+ /* @__PURE__ */ jsxs54("p", { className: "flex items-center gap-3 font-semibold", children: [
7288
+ option.label,
7289
+ data?.subLabel && /* @__PURE__ */ jsx85("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 })
7290
+ ] }),
7291
+ data?.description && /* @__PURE__ */ jsx85("p", { className: "text-sm font-medium text-[var(--chekin-color-gray-1)]", children: data.description })
7273
7292
  ] }),
7274
- data?.description && /* @__PURE__ */ jsx85("p", { className: "text-sm font-medium text-[var(--chekin-color-gray-1)]", children: data.description })
7293
+ data?.rightContent && /* @__PURE__ */ jsx85("div", { className: "shrink-0", children: data.rightContent })
7275
7294
  ] })
7276
7295
  ]
7277
7296
  }