@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.d.cts CHANGED
@@ -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
@@ -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
  ),
@@ -7187,7 +7191,16 @@ function useRadioOptions({ options, defaultValue, onChange }) {
7187
7191
  // src/radio/Radio.tsx
7188
7192
  import { Fragment as Fragment8, jsx as jsx84, jsxs as jsxs53 } from "react/jsx-runtime";
7189
7193
  var Radio = forwardRef36(
7190
- ({ options, value, onChange, error, className = "", disabled = false, renderOption }, ref) => {
7194
+ ({
7195
+ options,
7196
+ value,
7197
+ onChange,
7198
+ error,
7199
+ className = "",
7200
+ size,
7201
+ disabled = false,
7202
+ renderOption
7203
+ }, ref) => {
7191
7204
  const { selectedValue, handleValueChange } = useRadioOptions({
7192
7205
  options,
7193
7206
  defaultValue: value,
@@ -7213,7 +7226,7 @@ var Radio = forwardRef36(
7213
7226
  {
7214
7227
  className: cn(
7215
7228
  "radio__wrapper",
7216
- "flex cursor-pointer items-center gap-2",
7229
+ "flex cursor-pointer items-center gap-2 transition-all duration-200",
7217
7230
  (disabled || option.disabled) && "cursor-default opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-70"
7218
7231
  ),
7219
7232
  children: renderOption ? renderOption({ option, isSelected: getIsSelected(option) }) : /* @__PURE__ */ jsxs53(Fragment8, { children: [
@@ -7223,6 +7236,7 @@ var Radio = forwardRef36(
7223
7236
  value: option.value,
7224
7237
  id: `option-${option.value}`,
7225
7238
  disabled: option.disabled,
7239
+ size,
7226
7240
  className: "radio__indicator"
7227
7241
  }
7228
7242
  ),
@@ -7252,7 +7266,7 @@ function RadioWithBorder({ size, ...props }) {
7252
7266
  "div",
7253
7267
  {
7254
7268
  className: cn(
7255
- "flex w-full items-start gap-3 rounded-lg border p-4",
7269
+ "flex w-full items-start gap-3 rounded-lg border p-4 transition-all duration-200",
7256
7270
  isSelected && "border-[var(--chekin-color-brand-blue)] bg-[var(--chekin-color-surface-autocomplete)]"
7257
7271
  ),
7258
7272
  children: [
@@ -7266,12 +7280,15 @@ function RadioWithBorder({ size, ...props }) {
7266
7280
  size
7267
7281
  }
7268
7282
  ),
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 })
7283
+ /* @__PURE__ */ jsxs54("div", { className: "flex min-w-0 flex-1 items-start justify-between gap-3", children: [
7284
+ /* @__PURE__ */ jsxs54("div", { className: "min-w-0 space-y-1 leading-6", children: [
7285
+ /* @__PURE__ */ jsxs54("p", { className: "flex items-center gap-3 font-semibold", children: [
7286
+ option.label,
7287
+ 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 })
7288
+ ] }),
7289
+ data?.description && /* @__PURE__ */ jsx85("p", { className: "text-sm font-medium text-[var(--chekin-color-gray-1)]", children: data.description })
7273
7290
  ] }),
7274
- data?.description && /* @__PURE__ */ jsx85("p", { className: "text-sm font-medium text-[var(--chekin-color-gray-1)]", children: data.description })
7291
+ data?.rightContent && /* @__PURE__ */ jsx85("div", { className: "shrink-0", children: data.rightContent })
7275
7292
  ] })
7276
7293
  ]
7277
7294
  }