@olundot/ui 0.9.0 → 0.10.1

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/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # @olundot/ui
2
2
 
3
+ ## 0.10.1
4
+
5
+ ### Patch Changes
6
+
7
+ - 4b65ff6: fix: OTPField fluid가 좁은 폭에서 실제로 한 줄을 유지하도록 - fieldset의 min-content 쿼크 해제(min-w-0), 그룹 w-full/min-w-0 추가, cell cap을 표준 max-w 유틸로 전환해 소비 앱 스캔 의존 제거.
8
+
9
+ ## 0.10.0
10
+
11
+ ### Minor Changes
12
+
13
+ - 9bfcb6e: Add `bordered={false}` to `EmptyState` so embedded empty states can avoid nested container borders and backgrounds.
14
+
15
+ Add `fluid` to `OTPField` so narrow viewports keep OTP cells on one row while the default fixed-width layout remains unchanged.
16
+
3
17
  ## 0.9.0
4
18
 
5
19
  ### Minor Changes
package/dist/index.d.ts CHANGED
@@ -32,8 +32,8 @@ declare function useOlunTheme(): UseOlunThemeValue;
32
32
  type SurfaceLevel = "surface" | "canvas" | "raised";
33
33
 
34
34
  declare const buttonVariants: (props?: ({
35
- variant?: "primary" | "secondary" | "destructive" | "default" | "outline" | "ghost" | "danger" | "emergency" | "subtle" | "link" | null | undefined;
36
- size?: "xs" | "sm" | "md" | "lg" | "xl" | "default" | "icon" | "icon-xs" | null | undefined;
35
+ variant?: "default" | "primary" | "outline" | "ghost" | "danger" | "emergency" | "subtle" | "destructive" | "secondary" | "link" | null | undefined;
36
+ size?: "default" | "xs" | "sm" | "md" | "lg" | "xl" | "icon" | "icon-xs" | null | undefined;
37
37
  } & class_variance_authority_types.ClassProp) | undefined) => string;
38
38
  type ButtonVariant = NonNullable<VariantProps<typeof buttonVariants>['variant']>;
39
39
  type ButtonSize = NonNullable<VariantProps<typeof buttonVariants>['size']>;
@@ -54,7 +54,7 @@ type CopyButtonProps = Omit<ButtonProps, 'children' | 'leadingIcon' | 'loading'
54
54
  variant?: ButtonVariant;
55
55
  duration?: number;
56
56
  };
57
- declare const CopyButton: React.ForwardRefExoticComponent<Omit<ButtonProps, "variant" | "size" | "leadingIcon" | "trailingIcon" | "loading" | "children"> & {
57
+ declare const CopyButton: React.ForwardRefExoticComponent<Omit<ButtonProps, "size" | "variant" | "leadingIcon" | "trailingIcon" | "loading" | "children"> & {
58
58
  value: string;
59
59
  label?: React.ReactNode;
60
60
  copiedLabel?: React.ReactNode;
@@ -70,7 +70,7 @@ declare const inputVariants: (props?: ({
70
70
  surface?: SurfaceLevel | null | undefined;
71
71
  } & class_variance_authority_types.ClassProp) | undefined) => string;
72
72
  declare const inputMessageVariants: (props?: ({
73
- state?: "error" | "success" | "default" | null | undefined;
73
+ state?: "default" | "error" | "success" | null | undefined;
74
74
  size?: "sm" | "md" | "lg" | null | undefined;
75
75
  } & class_variance_authority_types.ClassProp) | undefined) => string;
76
76
  type InputState = NonNullable<VariantProps<typeof inputMessageVariants>["state"]>;
@@ -119,11 +119,11 @@ interface InputProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, "
119
119
  declare const Input: React.ForwardRefExoticComponent<InputProps & React.RefAttributes<HTMLInputElement>>;
120
120
 
121
121
  declare const fileUploadZoneVariants: (props?: ({
122
- size?: "compact" | "default" | null | undefined;
122
+ size?: "default" | "compact" | null | undefined;
123
123
  surface?: SurfaceLevel | null | undefined;
124
124
  } & class_variance_authority_types.ClassProp) | undefined) => string;
125
125
  declare const fileUploadIconVariants: (props?: ({
126
- size?: "compact" | "default" | null | undefined;
126
+ size?: "default" | "compact" | null | undefined;
127
127
  } & class_variance_authority_types.ClassProp) | undefined) => string;
128
128
  interface FileUploadZoneProps extends Omit<React.LabelHTMLAttributes<HTMLLabelElement>, "onChange">, VariantProps<typeof fileUploadZoneVariants> {
129
129
  accept?: string;
@@ -142,10 +142,10 @@ interface FileUploadZoneProps extends Omit<React.LabelHTMLAttributes<HTMLLabelEl
142
142
  declare const FileUploadZone: React.ForwardRefExoticComponent<FileUploadZoneProps & React.RefAttributes<HTMLLabelElement>>;
143
143
 
144
144
  declare const alertVariants: (props?: ({
145
- variant?: "error" | "warning" | "info" | "success" | null | undefined;
145
+ variant?: "error" | "success" | "info" | "warning" | null | undefined;
146
146
  } & class_variance_authority_types.ClassProp) | undefined) => string;
147
147
  declare const inlineAlertVariants: (props?: ({
148
- variant?: "error" | "warning" | "info" | "success" | null | undefined;
148
+ variant?: "error" | "success" | "info" | "warning" | null | undefined;
149
149
  surface?: "filled" | "plain" | null | undefined;
150
150
  } & class_variance_authority_types.ClassProp) | undefined) => string;
151
151
  type AlertVariant = NonNullable<VariantProps<typeof alertVariants>['variant']>;
@@ -175,7 +175,7 @@ declare const textareaVariants: (props?: ({
175
175
  surface?: SurfaceLevel | null | undefined;
176
176
  } & class_variance_authority_types.ClassProp) | undefined) => string;
177
177
  declare const textareaMessageVariants: (props?: ({
178
- state?: "error" | "success" | "default" | null | undefined;
178
+ state?: "default" | "error" | "success" | null | undefined;
179
179
  } & class_variance_authority_types.ClassProp) | undefined) => string;
180
180
  type TextareaState = NonNullable<VariantProps<typeof textareaMessageVariants>["state"]>;
181
181
  /** Canonical size type (0.2.0+). Use `size` prop with these values. */
@@ -230,7 +230,7 @@ declare const selectVariants: (props?: ({
230
230
  surface?: SurfaceLevel | null | undefined;
231
231
  } & class_variance_authority_types.ClassProp) | undefined) => string;
232
232
  declare const selectMessageVariants: (props?: ({
233
- state?: "error" | "success" | "default" | null | undefined;
233
+ state?: "default" | "error" | "success" | null | undefined;
234
234
  size?: "sm" | "md" | "lg" | null | undefined;
235
235
  } & class_variance_authority_types.ClassProp) | undefined) => string;
236
236
  type SelectState = NonNullable<VariantProps<typeof selectMessageVariants>["state"]>;
@@ -896,8 +896,8 @@ declare const PopoverContent: React.ForwardRefExoticComponent<PopoverContentProp
896
896
  declare const PopoverArrow: React.ForwardRefExoticComponent<Omit<Popover$1.PopoverArrowProps & React.RefAttributes<SVGSVGElement>, "ref"> & React.RefAttributes<SVGSVGElement>>;
897
897
 
898
898
  declare const badgeVariants: (props?: ({
899
- variant?: "brand" | "neutral" | "status" | "semantic" | "pill" | "vibrant" | null | undefined;
900
- tone?: "accent" | "warning" | "info" | "success" | "neutral" | "danger" | null | undefined;
899
+ variant?: "status" | "semantic" | "neutral" | "brand" | "pill" | "vibrant" | null | undefined;
900
+ tone?: "accent" | "danger" | "success" | "info" | "warning" | "neutral" | null | undefined;
901
901
  size?: "xs" | "sm" | "md" | null | undefined;
902
902
  } & class_variance_authority_types.ClassProp) | undefined) => string;
903
903
  declare const badgeDotVariants: (props?: class_variance_authority_types.ClassProp | undefined) => string;
@@ -915,7 +915,7 @@ declare const twoTierBadgeVariants: (props?: ({
915
915
  } & class_variance_authority_types.ClassProp) | undefined) => string;
916
916
  declare const twoTierBadgeLineVariants: (props?: ({
917
917
  tier?: "primary" | "secondary" | null | undefined;
918
- intent?: "brand" | "muted" | "warning" | "success" | "neutral" | "danger" | null | undefined;
918
+ intent?: "danger" | "success" | "warning" | "neutral" | "brand" | "muted" | null | undefined;
919
919
  } & class_variance_authority_types.ClassProp) | undefined) => string;
920
920
  type TwoTierBadgeIntent = NonNullable<VariantProps<typeof twoTierBadgeLineVariants>["intent"]>;
921
921
  interface TwoTierBadgeProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof twoTierBadgeVariants> {
@@ -929,7 +929,7 @@ interface TwoTierBadgeProps extends React.HTMLAttributes<HTMLDivElement>, Varian
929
929
  declare const TwoTierBadge: React.ForwardRefExoticComponent<TwoTierBadgeProps & React.RefAttributes<HTMLDivElement>>;
930
930
 
931
931
  declare const statusBadgeVariants: (props?: ({
932
- status?: "error" | "warning" | "info" | "success" | "active" | "pending" | "archived" | null | undefined;
932
+ status?: "error" | "success" | "info" | "warning" | "active" | "pending" | "archived" | null | undefined;
933
933
  size?: "xs" | "sm" | "md" | null | undefined;
934
934
  } & class_variance_authority_types.ClassProp) | undefined) => string;
935
935
  declare const statusBadgeDotVariants: (props?: class_variance_authority_types.ClassProp | undefined) => string;
@@ -959,12 +959,12 @@ declare const NotificationBadge: React.ForwardRefExoticComponent<NotificationBad
959
959
 
960
960
  declare const chipVariants: (props?: ({
961
961
  variant?: "filter" | "choice" | "removable" | "status-filter" | null | undefined;
962
- tone?: "muted" | "accent" | "warning" | "success" | "neutral" | "danger" | null | undefined;
962
+ tone?: "accent" | "danger" | "success" | "warning" | "neutral" | "muted" | null | undefined;
963
963
  size?: "sm" | "md" | "lg" | null | undefined;
964
964
  pressed?: boolean | null | undefined;
965
965
  } & class_variance_authority_types.ClassProp) | undefined) => string;
966
966
  declare const chipCountVariants: (props?: ({
967
- tone?: "muted" | "accent" | "warning" | "success" | "neutral" | "danger" | null | undefined;
967
+ tone?: "accent" | "danger" | "success" | "warning" | "neutral" | "muted" | null | undefined;
968
968
  size?: "sm" | "md" | "lg" | null | undefined;
969
969
  } & class_variance_authority_types.ClassProp) | undefined) => string;
970
970
  type ChipVariant = NonNullable<VariantProps<typeof chipVariants>["variant"]>;
@@ -980,6 +980,7 @@ declare const Chip: React.ForwardRefExoticComponent<ChipProps & React.RefAttribu
980
980
 
981
981
  declare const emptyStateBaseVariants: (props?: ({
982
982
  size?: "sm" | "md" | "lg" | null | undefined;
983
+ bordered?: boolean | null | undefined;
983
984
  } & class_variance_authority_types.ClassProp) | undefined) => string;
984
985
  type EmptyStateTone = "neutral" | "muted" | "raised";
985
986
  interface EmptyStateVariantOptions extends VariantProps<typeof emptyStateBaseVariants> {
@@ -987,7 +988,7 @@ interface EmptyStateVariantOptions extends VariantProps<typeof emptyStateBaseVar
987
988
  surface?: SurfaceLevel;
988
989
  className?: string;
989
990
  }
990
- declare function emptyStateVariants({ size, tone, surface, className }?: EmptyStateVariantOptions): string;
991
+ declare function emptyStateVariants({ size, tone, surface, bordered, className, }?: EmptyStateVariantOptions): string;
991
992
  declare const emptyStateIconVariants: (props?: ({
992
993
  size?: "sm" | "md" | "lg" | null | undefined;
993
994
  } & class_variance_authority_types.ClassProp) | undefined) => string;
@@ -1158,7 +1159,7 @@ interface ActionFooterProps extends Omit<React.HTMLAttributes<HTMLDivElement>, '
1158
1159
  declare const ActionFooter: React.ForwardRefExoticComponent<ActionFooterProps & React.RefAttributes<HTMLDivElement>>;
1159
1160
 
1160
1161
  declare const toastVariants: (props?: ({
1161
- variant?: "error" | "warning" | "info" | "success" | "default" | null | undefined;
1162
+ variant?: "default" | "error" | "success" | "info" | "warning" | null | undefined;
1162
1163
  } & class_variance_authority_types.ClassProp) | undefined) => string;
1163
1164
  declare const toastViewportVariants: (props?: class_variance_authority_types.ClassProp | undefined) => string;
1164
1165
  type ToastVariant = NonNullable<VariantProps<typeof toastVariants>['variant']>;
@@ -1199,17 +1200,19 @@ interface ToastProviderProps extends React.HTMLAttributes<HTMLDivElement> {
1199
1200
  declare function ToastProvider({ children, maxToasts, className, ...props }: ToastProviderProps): react_jsx_runtime.JSX.Element;
1200
1201
 
1201
1202
  declare const otpFieldVariants: (props?: ({
1202
- size?: "compact" | "default" | null | undefined;
1203
+ size?: "default" | "compact" | null | undefined;
1203
1204
  } & class_variance_authority_types.ClassProp) | undefined) => string;
1204
1205
  declare const otpFieldGroupVariants: (props?: ({
1205
- size?: "compact" | "default" | null | undefined;
1206
+ size?: "default" | "compact" | null | undefined;
1207
+ fluid?: boolean | null | undefined;
1206
1208
  } & class_variance_authority_types.ClassProp) | undefined) => string;
1207
1209
  declare const otpCellVariants: (props?: ({
1208
- size?: "compact" | "default" | null | undefined;
1210
+ size?: "default" | "compact" | null | undefined;
1211
+ fluid?: boolean | null | undefined;
1209
1212
  surface?: SurfaceLevel | null | undefined;
1210
1213
  } & class_variance_authority_types.ClassProp) | undefined) => string;
1211
1214
  declare const otpFieldMessageVariants: (props?: ({
1212
- state?: "error" | "default" | null | undefined;
1215
+ state?: "default" | "error" | null | undefined;
1213
1216
  } & class_variance_authority_types.ClassProp) | undefined) => string;
1214
1217
  type OTPFieldSize = NonNullable<VariantProps<typeof otpCellVariants>["size"]>;
1215
1218
  interface OTPFieldProps extends Omit<React.FieldsetHTMLAttributes<HTMLFieldSetElement>, "onChange" | "children" | "defaultValue" | "value">, VariantProps<typeof otpFieldVariants> {
@@ -1224,6 +1227,7 @@ interface OTPFieldProps extends Omit<React.FieldsetHTMLAttributes<HTMLFieldSetEl
1224
1227
  onValueChange?: (value: string) => void;
1225
1228
  readOnly?: boolean;
1226
1229
  size?: OTPFieldSize;
1230
+ fluid?: boolean;
1227
1231
  /**
1228
1232
  * Background level for normal OTP cells. Filled, invalid, disabled, and
1229
1233
  * readOnly states take precedence.
@@ -1265,11 +1269,11 @@ declare const checkboxBoxVariants: (props?: ({
1265
1269
  size?: "sm" | "md" | null | undefined;
1266
1270
  } & class_variance_authority_types.ClassProp) | undefined) => string;
1267
1271
  declare const checkboxGroupItemVariants: (props?: ({
1268
- appearance?: "card" | "plain" | null | undefined;
1272
+ appearance?: "plain" | "card" | null | undefined;
1269
1273
  density?: "compact" | "comfortable" | null | undefined;
1270
1274
  } & class_variance_authority_types.ClassProp) | undefined) => string;
1271
1275
  declare const checkboxGroupBoxVariants: (props?: ({
1272
- appearance?: "card" | "plain" | null | undefined;
1276
+ appearance?: "plain" | "card" | null | undefined;
1273
1277
  } & class_variance_authority_types.ClassProp) | undefined) => string;
1274
1278
  type CheckboxSize = NonNullable<VariantProps<typeof checkboxBoxVariants>["size"]>;
1275
1279
  type CheckboxCheckedState = React.ComponentProps<typeof Checkbox$1.Root>["checked"];
@@ -1294,7 +1298,7 @@ interface CheckboxProps extends Omit<React.ComponentPropsWithoutRef<typeof Check
1294
1298
  declare const Checkbox: React.ForwardRefExoticComponent<CheckboxProps & React.RefAttributes<HTMLButtonElement>>;
1295
1299
 
1296
1300
  declare const checkboxGroupVariants: (props?: ({
1297
- appearance?: "card" | "plain" | null | undefined;
1301
+ appearance?: "plain" | "card" | null | undefined;
1298
1302
  orientation?: "horizontal" | "vertical" | null | undefined;
1299
1303
  columns?: "one" | "two" | "three" | null | undefined;
1300
1304
  } & class_variance_authority_types.ClassProp) | undefined) => string;
@@ -1315,16 +1319,16 @@ interface CheckboxGroupProps extends Omit<React.HTMLAttributes<HTMLDivElement>,
1315
1319
  declare const CheckboxGroup: React.ForwardRefExoticComponent<CheckboxGroupProps & React.RefAttributes<HTMLDivElement>>;
1316
1320
 
1317
1321
  declare const radioGroupVariants: (props?: ({
1318
- appearance?: "card" | "plain" | null | undefined;
1322
+ appearance?: "plain" | "card" | null | undefined;
1319
1323
  orientation?: "horizontal" | "vertical" | null | undefined;
1320
1324
  columns?: "one" | "two" | "three" | null | undefined;
1321
1325
  } & class_variance_authority_types.ClassProp) | undefined) => string;
1322
1326
  declare const radioVariants: (props?: ({
1323
- appearance?: "card" | "plain" | null | undefined;
1327
+ appearance?: "plain" | "card" | null | undefined;
1324
1328
  density?: "compact" | "comfortable" | null | undefined;
1325
1329
  } & class_variance_authority_types.ClassProp) | undefined) => string;
1326
1330
  declare const radioControlVariants: (props?: ({
1327
- appearance?: "card" | "plain" | null | undefined;
1331
+ appearance?: "plain" | "card" | null | undefined;
1328
1332
  } & class_variance_authority_types.ClassProp) | undefined) => string;
1329
1333
  type RadioGroupAppearance = NonNullable<VariantProps<typeof radioGroupVariants>["appearance"]>;
1330
1334
  type RadioGroupColumns = NonNullable<VariantProps<typeof radioGroupVariants>["columns"]>;
package/dist/index.js CHANGED
@@ -6119,7 +6119,6 @@ import { jsx as jsx40, jsxs as jsxs36 } from "react/jsx-runtime";
6119
6119
  var emptyStateBaseVariants = cva18(
6120
6120
  [
6121
6121
  "flex flex-col items-center justify-center text-center",
6122
- "rounded-[var(--radius-md)] border border-[var(--border-subtle)]",
6123
6122
  "text-foreground"
6124
6123
  ].join(" "),
6125
6124
  {
@@ -6128,10 +6127,15 @@ var emptyStateBaseVariants = cva18(
6128
6127
  sm: "gap-[var(--space-1)] px-[var(--space-2)] py-[var(--space-3)]",
6129
6128
  md: "gap-[var(--space-1-5)] px-[var(--space-3)] py-[var(--space-5)]",
6130
6129
  lg: "gap-[var(--space-2)] px-[var(--space-4)] py-[var(--space-6)]"
6130
+ },
6131
+ bordered: {
6132
+ true: "rounded-[var(--radius-md)] border border-[var(--border-subtle)]",
6133
+ false: ""
6131
6134
  }
6132
6135
  },
6133
6136
  defaultVariants: {
6134
- size: "md"
6137
+ size: "md",
6138
+ bordered: true
6135
6139
  }
6136
6140
  }
6137
6141
  );
@@ -6146,10 +6150,17 @@ function getEmptyStateToneSurface(tone) {
6146
6150
  return surfaceClassNames.surface;
6147
6151
  }
6148
6152
  }
6149
- function emptyStateVariants({ size, tone = "neutral", surface, className } = {}) {
6153
+ function emptyStateVariants({
6154
+ size,
6155
+ tone = "neutral",
6156
+ surface,
6157
+ bordered = true,
6158
+ className
6159
+ } = {}) {
6160
+ const hasBorder = bordered !== false;
6150
6161
  return cn(
6151
- emptyStateBaseVariants({ size }),
6152
- surface ? surfaceClassNames[surface] : getEmptyStateToneSurface(tone),
6162
+ emptyStateBaseVariants({ size, bordered: hasBorder }),
6163
+ hasBorder ? surface ? surfaceClassNames[surface] : getEmptyStateToneSurface(tone) : null,
6153
6164
  className
6154
6165
  );
6155
6166
  }
@@ -6187,6 +6198,7 @@ var EmptyState = React31.forwardRef(
6187
6198
  description,
6188
6199
  hint,
6189
6200
  action,
6201
+ bordered = true,
6190
6202
  ...props
6191
6203
  }, ref) => {
6192
6204
  const resolvedSize = size ?? "md";
@@ -6196,7 +6208,7 @@ var EmptyState = React31.forwardRef(
6196
6208
  ref,
6197
6209
  role: "status",
6198
6210
  "data-slot": "empty-state",
6199
- className: cn(emptyStateVariants({ size, tone, surface, className })),
6211
+ className: cn(emptyStateVariants({ size, tone, surface, bordered, className })),
6200
6212
  ...props,
6201
6213
  children: [
6202
6214
  Icon ? /* @__PURE__ */ jsx40(
@@ -7141,7 +7153,7 @@ import * as React37 from "react";
7141
7153
  import { cva as cva25 } from "class-variance-authority";
7142
7154
  import { AlertCircle as AlertCircle6 } from "lucide-react";
7143
7155
  import { Fragment as Fragment8, jsx as jsx47, jsxs as jsxs42 } from "react/jsx-runtime";
7144
- var otpFieldVariants = cva25("flex w-full flex-col gap-[var(--space-1-5)]", {
7156
+ var otpFieldVariants = cva25("flex w-full min-w-0 flex-col gap-[var(--space-1-5)]", {
7145
7157
  variants: {
7146
7158
  size: {
7147
7159
  default: "",
@@ -7152,20 +7164,25 @@ var otpFieldVariants = cva25("flex w-full flex-col gap-[var(--space-1-5)]", {
7152
7164
  size: "default"
7153
7165
  }
7154
7166
  });
7155
- var otpFieldGroupVariants = cva25("flex flex-wrap items-start gap-[var(--space-1)] pt-[var(--space-0-5)]", {
7167
+ var otpFieldGroupVariants = cva25("flex items-start gap-[var(--space-1)] pt-[var(--space-0-5)]", {
7156
7168
  variants: {
7157
7169
  size: {
7158
7170
  default: "",
7159
7171
  compact: ""
7172
+ },
7173
+ fluid: {
7174
+ true: "flex-nowrap justify-center w-full min-w-0",
7175
+ false: "flex-wrap"
7160
7176
  }
7161
7177
  },
7162
7178
  defaultVariants: {
7163
- size: "default"
7179
+ size: "default",
7180
+ fluid: false
7164
7181
  }
7165
7182
  });
7166
7183
  var otpCellVariants = cva25(
7167
7184
  [
7168
- "flex shrink-0 items-center justify-center rounded-[var(--radius-sm)] border",
7185
+ "flex items-center justify-center rounded-[var(--radius-sm)] border",
7169
7186
  "border-[var(--border)] text-foreground",
7170
7187
  "font-[family-name:var(--font-display)] tabular-nums",
7171
7188
  "text-center leading-none caret-[var(--accent-fg)]",
@@ -7180,13 +7197,40 @@ var otpCellVariants = cva25(
7180
7197
  {
7181
7198
  variants: {
7182
7199
  size: {
7183
- default: "h-[60px] w-[52px] text-[24px]",
7184
- compact: "h-[52px] w-[44px] text-[20px]"
7200
+ default: "h-[60px] text-[24px]",
7201
+ compact: "h-[52px] text-[20px]"
7202
+ },
7203
+ fluid: {
7204
+ true: "min-w-0 flex-1",
7205
+ false: "shrink-0"
7185
7206
  },
7186
7207
  surface: fieldSurfaceClassNames
7187
7208
  },
7209
+ compoundVariants: [
7210
+ {
7211
+ size: "default",
7212
+ fluid: false,
7213
+ className: "w-[52px]"
7214
+ },
7215
+ {
7216
+ size: "compact",
7217
+ fluid: false,
7218
+ className: "w-[44px]"
7219
+ },
7220
+ {
7221
+ size: "default",
7222
+ fluid: true,
7223
+ className: "max-w-13"
7224
+ },
7225
+ {
7226
+ size: "compact",
7227
+ fluid: true,
7228
+ className: "max-w-11"
7229
+ }
7230
+ ],
7188
7231
  defaultVariants: {
7189
7232
  size: "default",
7233
+ fluid: false,
7190
7234
  surface: "surface"
7191
7235
  }
7192
7236
  }
@@ -7244,6 +7288,7 @@ var OTPField = React37.forwardRef(
7244
7288
  helperText,
7245
7289
  id,
7246
7290
  invalid,
7291
+ fluid = false,
7247
7292
  label,
7248
7293
  length = 6,
7249
7294
  name,
@@ -7320,7 +7365,7 @@ var OTPField = React37.forwardRef(
7320
7365
  "data-slot": "otp-field-group",
7321
7366
  "aria-labelledby": labelId,
7322
7367
  "aria-describedby": groupDescribedBy,
7323
- className: cn(otpFieldGroupVariants({ size })),
7368
+ className: cn(otpFieldGroupVariants({ size, fluid })),
7324
7369
  children: Array.from({ length }, (_, index) => {
7325
7370
  const digit = resolvedSlots[index] ?? "";
7326
7371
  const inputId = `${fieldId}-cell-${index + 1}`;
@@ -7412,7 +7457,7 @@ var OTPField = React37.forwardRef(
7412
7457
  onFocus: (event) => {
7413
7458
  event.currentTarget.select();
7414
7459
  },
7415
- className: cn(otpCellVariants({ size, surface }))
7460
+ className: cn(otpCellVariants({ size, surface, fluid }))
7416
7461
  },
7417
7462
  inputId
7418
7463
  );
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@olundot/ui",
3
- "version": "0.9.0",
3
+ "version": "0.10.1",
4
4
  "description": "OLUN. shared React UI components built on OLUN design tokens",
5
5
  "license": "MIT",
6
6
  "keywords": [