@olundot/ui 0.10.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,11 @@
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
+
3
9
  ## 0.10.0
4
10
 
5
11
  ### 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"]>;
@@ -1159,7 +1159,7 @@ interface ActionFooterProps extends Omit<React.HTMLAttributes<HTMLDivElement>, '
1159
1159
  declare const ActionFooter: React.ForwardRefExoticComponent<ActionFooterProps & React.RefAttributes<HTMLDivElement>>;
1160
1160
 
1161
1161
  declare const toastVariants: (props?: ({
1162
- variant?: "error" | "warning" | "info" | "success" | "default" | null | undefined;
1162
+ variant?: "default" | "error" | "success" | "info" | "warning" | null | undefined;
1163
1163
  } & class_variance_authority_types.ClassProp) | undefined) => string;
1164
1164
  declare const toastViewportVariants: (props?: class_variance_authority_types.ClassProp | undefined) => string;
1165
1165
  type ToastVariant = NonNullable<VariantProps<typeof toastVariants>['variant']>;
@@ -1200,19 +1200,19 @@ interface ToastProviderProps extends React.HTMLAttributes<HTMLDivElement> {
1200
1200
  declare function ToastProvider({ children, maxToasts, className, ...props }: ToastProviderProps): react_jsx_runtime.JSX.Element;
1201
1201
 
1202
1202
  declare const otpFieldVariants: (props?: ({
1203
- size?: "compact" | "default" | null | undefined;
1203
+ size?: "default" | "compact" | null | undefined;
1204
1204
  } & class_variance_authority_types.ClassProp) | undefined) => string;
1205
1205
  declare const otpFieldGroupVariants: (props?: ({
1206
- size?: "compact" | "default" | null | undefined;
1206
+ size?: "default" | "compact" | null | undefined;
1207
1207
  fluid?: boolean | null | undefined;
1208
1208
  } & class_variance_authority_types.ClassProp) | undefined) => string;
1209
1209
  declare const otpCellVariants: (props?: ({
1210
- size?: "compact" | "default" | null | undefined;
1210
+ size?: "default" | "compact" | null | undefined;
1211
1211
  fluid?: boolean | null | undefined;
1212
1212
  surface?: SurfaceLevel | null | undefined;
1213
1213
  } & class_variance_authority_types.ClassProp) | undefined) => string;
1214
1214
  declare const otpFieldMessageVariants: (props?: ({
1215
- state?: "error" | "default" | null | undefined;
1215
+ state?: "default" | "error" | null | undefined;
1216
1216
  } & class_variance_authority_types.ClassProp) | undefined) => string;
1217
1217
  type OTPFieldSize = NonNullable<VariantProps<typeof otpCellVariants>["size"]>;
1218
1218
  interface OTPFieldProps extends Omit<React.FieldsetHTMLAttributes<HTMLFieldSetElement>, "onChange" | "children" | "defaultValue" | "value">, VariantProps<typeof otpFieldVariants> {
@@ -1269,11 +1269,11 @@ declare const checkboxBoxVariants: (props?: ({
1269
1269
  size?: "sm" | "md" | null | undefined;
1270
1270
  } & class_variance_authority_types.ClassProp) | undefined) => string;
1271
1271
  declare const checkboxGroupItemVariants: (props?: ({
1272
- appearance?: "card" | "plain" | null | undefined;
1272
+ appearance?: "plain" | "card" | null | undefined;
1273
1273
  density?: "compact" | "comfortable" | null | undefined;
1274
1274
  } & class_variance_authority_types.ClassProp) | undefined) => string;
1275
1275
  declare const checkboxGroupBoxVariants: (props?: ({
1276
- appearance?: "card" | "plain" | null | undefined;
1276
+ appearance?: "plain" | "card" | null | undefined;
1277
1277
  } & class_variance_authority_types.ClassProp) | undefined) => string;
1278
1278
  type CheckboxSize = NonNullable<VariantProps<typeof checkboxBoxVariants>["size"]>;
1279
1279
  type CheckboxCheckedState = React.ComponentProps<typeof Checkbox$1.Root>["checked"];
@@ -1298,7 +1298,7 @@ interface CheckboxProps extends Omit<React.ComponentPropsWithoutRef<typeof Check
1298
1298
  declare const Checkbox: React.ForwardRefExoticComponent<CheckboxProps & React.RefAttributes<HTMLButtonElement>>;
1299
1299
 
1300
1300
  declare const checkboxGroupVariants: (props?: ({
1301
- appearance?: "card" | "plain" | null | undefined;
1301
+ appearance?: "plain" | "card" | null | undefined;
1302
1302
  orientation?: "horizontal" | "vertical" | null | undefined;
1303
1303
  columns?: "one" | "two" | "three" | null | undefined;
1304
1304
  } & class_variance_authority_types.ClassProp) | undefined) => string;
@@ -1319,16 +1319,16 @@ interface CheckboxGroupProps extends Omit<React.HTMLAttributes<HTMLDivElement>,
1319
1319
  declare const CheckboxGroup: React.ForwardRefExoticComponent<CheckboxGroupProps & React.RefAttributes<HTMLDivElement>>;
1320
1320
 
1321
1321
  declare const radioGroupVariants: (props?: ({
1322
- appearance?: "card" | "plain" | null | undefined;
1322
+ appearance?: "plain" | "card" | null | undefined;
1323
1323
  orientation?: "horizontal" | "vertical" | null | undefined;
1324
1324
  columns?: "one" | "two" | "three" | null | undefined;
1325
1325
  } & class_variance_authority_types.ClassProp) | undefined) => string;
1326
1326
  declare const radioVariants: (props?: ({
1327
- appearance?: "card" | "plain" | null | undefined;
1327
+ appearance?: "plain" | "card" | null | undefined;
1328
1328
  density?: "compact" | "comfortable" | null | undefined;
1329
1329
  } & class_variance_authority_types.ClassProp) | undefined) => string;
1330
1330
  declare const radioControlVariants: (props?: ({
1331
- appearance?: "card" | "plain" | null | undefined;
1331
+ appearance?: "plain" | "card" | null | undefined;
1332
1332
  } & class_variance_authority_types.ClassProp) | undefined) => string;
1333
1333
  type RadioGroupAppearance = NonNullable<VariantProps<typeof radioGroupVariants>["appearance"]>;
1334
1334
  type RadioGroupColumns = NonNullable<VariantProps<typeof radioGroupVariants>["columns"]>;
package/dist/index.js CHANGED
@@ -7153,7 +7153,7 @@ import * as React37 from "react";
7153
7153
  import { cva as cva25 } from "class-variance-authority";
7154
7154
  import { AlertCircle as AlertCircle6 } from "lucide-react";
7155
7155
  import { Fragment as Fragment8, jsx as jsx47, jsxs as jsxs42 } from "react/jsx-runtime";
7156
- 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)]", {
7157
7157
  variants: {
7158
7158
  size: {
7159
7159
  default: "",
@@ -7171,7 +7171,7 @@ var otpFieldGroupVariants = cva25("flex items-start gap-[var(--space-1)] pt-[var
7171
7171
  compact: ""
7172
7172
  },
7173
7173
  fluid: {
7174
- true: "flex-nowrap justify-center",
7174
+ true: "flex-nowrap justify-center w-full min-w-0",
7175
7175
  false: "flex-wrap"
7176
7176
  }
7177
7177
  },
@@ -7220,12 +7220,12 @@ var otpCellVariants = cva25(
7220
7220
  {
7221
7221
  size: "default",
7222
7222
  fluid: true,
7223
- className: "max-w-[52px]"
7223
+ className: "max-w-13"
7224
7224
  },
7225
7225
  {
7226
7226
  size: "compact",
7227
7227
  fluid: true,
7228
- className: "max-w-[44px]"
7228
+ className: "max-w-11"
7229
7229
  }
7230
7230
  ],
7231
7231
  defaultVariants: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@olundot/ui",
3
- "version": "0.10.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": [