@olundot/ui 0.2.0 → 0.3.0

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,16 @@
1
1
  # @olundot/ui
2
2
 
3
+ ## 0.3.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 912ad93: Typography + density 토큰화 마이그레이션: `text-[13px]`→`text-body-sm`, `leading-[*]`→`leading-{tight,snug,normal,relaxed}`, 컨트롤 padding→`--pad-*` density 토큰. tailwind-merge에 custom font-size group 등록(text-body-\* 가 color utility와 충돌하던 footgun fix).
8
+
9
+ ### Patch Changes
10
+
11
+ - Updated dependencies [912ad93]
12
+ - @olundot/tokens@0.8.0
13
+
3
14
  ## 0.2.0
4
15
 
5
16
  ### Minor Changes
package/dist/index.d.ts CHANGED
@@ -10,8 +10,8 @@ import * as react_jsx_runtime from 'react/jsx-runtime';
10
10
  declare function cn(...inputs: ClassValue[]): string;
11
11
 
12
12
  declare const buttonVariants: (props?: ({
13
- variant?: "primary" | "secondary" | "destructive" | "outline" | "ghost" | "danger" | "emergency" | "subtle" | "default" | "link" | null | undefined;
14
- size?: "xs" | "sm" | "md" | "lg" | "xl" | "default" | "icon" | "icon-xs" | null | undefined;
13
+ variant?: "primary" | "outline" | "ghost" | "danger" | "emergency" | "subtle" | "default" | "destructive" | "secondary" | "link" | null | undefined;
14
+ size?: "default" | "xs" | "sm" | "md" | "lg" | "xl" | "icon" | "icon-xs" | null | undefined;
15
15
  } & class_variance_authority_types.ClassProp) | undefined) => string;
16
16
  type ButtonVariant = NonNullable<VariantProps<typeof buttonVariants>['variant']>;
17
17
  type ButtonSize = NonNullable<VariantProps<typeof buttonVariants>['size']>;
@@ -32,7 +32,7 @@ type CopyButtonProps = Omit<ButtonProps, 'children' | 'leadingIcon' | 'loading'
32
32
  variant?: ButtonVariant;
33
33
  duration?: number;
34
34
  };
35
- declare const CopyButton: React.ForwardRefExoticComponent<Omit<ButtonProps, "variant" | "size" | "leadingIcon" | "trailingIcon" | "loading" | "children"> & {
35
+ declare const CopyButton: React.ForwardRefExoticComponent<Omit<ButtonProps, "size" | "variant" | "leadingIcon" | "trailingIcon" | "loading" | "children"> & {
36
36
  value: string;
37
37
  label?: React.ReactNode;
38
38
  copiedLabel?: React.ReactNode;
@@ -47,7 +47,7 @@ declare const inputVariants: (props?: ({
47
47
  fullWidth?: boolean | null | undefined;
48
48
  } & class_variance_authority_types.ClassProp) | undefined) => string;
49
49
  declare const inputMessageVariants: (props?: ({
50
- state?: "error" | "success" | "default" | null | undefined;
50
+ state?: "default" | "success" | "error" | null | undefined;
51
51
  size?: "sm" | "md" | "lg" | null | undefined;
52
52
  } & class_variance_authority_types.ClassProp) | undefined) => string;
53
53
  type InputState = NonNullable<VariantProps<typeof inputMessageVariants>["state"]>;
@@ -108,10 +108,10 @@ interface FileUploadZoneProps extends Omit<React.LabelHTMLAttributes<HTMLLabelEl
108
108
  declare const FileUploadZone: React.ForwardRefExoticComponent<FileUploadZoneProps & React.RefAttributes<HTMLLabelElement>>;
109
109
 
110
110
  declare const alertVariants: (props?: ({
111
- variant?: "error" | "warning" | "info" | "success" | null | undefined;
111
+ variant?: "success" | "error" | "info" | "warning" | null | undefined;
112
112
  } & class_variance_authority_types.ClassProp) | undefined) => string;
113
113
  declare const inlineAlertVariants: (props?: ({
114
- variant?: "error" | "warning" | "info" | "success" | null | undefined;
114
+ variant?: "success" | "error" | "info" | "warning" | null | undefined;
115
115
  surface?: "filled" | "plain" | null | undefined;
116
116
  } & class_variance_authority_types.ClassProp) | undefined) => string;
117
117
  type AlertVariant = NonNullable<VariantProps<typeof alertVariants>['variant']>;
@@ -140,7 +140,7 @@ declare const textareaVariants: (props?: ({
140
140
  fullWidth?: boolean | null | undefined;
141
141
  } & class_variance_authority_types.ClassProp) | undefined) => string;
142
142
  declare const textareaMessageVariants: (props?: ({
143
- state?: "error" | "success" | "default" | null | undefined;
143
+ state?: "default" | "success" | "error" | null | undefined;
144
144
  } & class_variance_authority_types.ClassProp) | undefined) => string;
145
145
  type TextareaState = NonNullable<VariantProps<typeof textareaMessageVariants>["state"]>;
146
146
  /** Canonical size type (0.2.0+). Use `size` prop with these values. */
@@ -189,7 +189,7 @@ declare const selectVariants: (props?: ({
189
189
  appearance?: "inline" | "field" | null | undefined;
190
190
  } & class_variance_authority_types.ClassProp) | undefined) => string;
191
191
  declare const selectMessageVariants: (props?: ({
192
- state?: "error" | "success" | "default" | null | undefined;
192
+ state?: "default" | "success" | "error" | null | undefined;
193
193
  size?: "sm" | "md" | "lg" | null | undefined;
194
194
  } & class_variance_authority_types.ClassProp) | undefined) => string;
195
195
  type SelectState = NonNullable<VariantProps<typeof selectMessageVariants>["state"]>;
@@ -279,10 +279,10 @@ declare const formFieldVariants: (props?: ({
279
279
  * @deprecated Use `<Label>` primitive instead. This className alias is kept for
280
280
  * 1 cycle (0.2.0 → 0.3.0 removal) for raw label patterns.
281
281
  */
282
- declare const formFieldLabelClassName = "text-[13px] font-medium leading-[1.35] text-[var(--text-secondary)]";
282
+ declare const formFieldLabelClassName = "text-body-sm font-medium leading-snug text-text-secondary";
283
283
  declare const formFieldRequiredClassName = "ml-[2px] text-[var(--semantic-error,var(--error))]";
284
- declare const formFieldDescriptionClassName = "text-[12px] leading-[1.4] text-[var(--text-tertiary)]";
285
- declare const formFieldErrorClassName = "text-[12px] leading-[1.4] text-[var(--semantic-error,var(--error))]";
284
+ declare const formFieldDescriptionClassName = "text-[12px] leading-snug text-text-tertiary";
285
+ declare const formFieldErrorClassName = "text-[12px] leading-snug text-[var(--semantic-error,var(--error))]";
286
286
  declare const formFieldControlStackClassName = "flex min-w-0 flex-col gap-[var(--space-0-5)]";
287
287
  interface FormFieldProps extends Omit<React.HTMLAttributes<HTMLDivElement>, "children"> {
288
288
  label: React.ReactNode;
@@ -802,8 +802,8 @@ declare const PopoverContent: React.ForwardRefExoticComponent<PopoverContentProp
802
802
  declare const PopoverArrow: React.ForwardRefExoticComponent<Omit<Popover$1.PopoverArrowProps & React.RefAttributes<SVGSVGElement>, "ref"> & React.RefAttributes<SVGSVGElement>>;
803
803
 
804
804
  declare const badgeVariants: (props?: ({
805
- variant?: "brand" | "neutral" | "status" | "semantic" | "pill" | "vibrant" | null | undefined;
806
- tone?: "accent" | "warning" | "info" | "success" | "neutral" | "danger" | null | undefined;
805
+ variant?: "status" | "semantic" | "neutral" | "brand" | "pill" | "vibrant" | null | undefined;
806
+ tone?: "accent" | "danger" | "success" | "info" | "warning" | "neutral" | null | undefined;
807
807
  size?: "xs" | "sm" | "md" | null | undefined;
808
808
  } & class_variance_authority_types.ClassProp) | undefined) => string;
809
809
  declare const badgeDotVariants: (props?: class_variance_authority_types.ClassProp | undefined) => string;
@@ -817,11 +817,11 @@ interface BadgeProps extends Omit<React.HTMLAttributes<HTMLSpanElement>, 'color'
817
817
  declare const Badge: React.ForwardRefExoticComponent<BadgeProps & React.RefAttributes<HTMLSpanElement>>;
818
818
 
819
819
  declare const twoTierBadgeVariants: (props?: ({
820
- align?: "end" | "center" | "start" | null | undefined;
820
+ align?: "end" | "start" | "center" | null | undefined;
821
821
  } & class_variance_authority_types.ClassProp) | undefined) => string;
822
822
  declare const twoTierBadgeLineVariants: (props?: ({
823
823
  tier?: "primary" | "secondary" | null | undefined;
824
- intent?: "muted" | "accent" | "warning" | "success" | "neutral" | "danger" | null | undefined;
824
+ intent?: "accent" | "danger" | "success" | "warning" | "neutral" | "muted" | null | undefined;
825
825
  } & class_variance_authority_types.ClassProp) | undefined) => string;
826
826
  type TwoTierBadgeIntent = NonNullable<VariantProps<typeof twoTierBadgeLineVariants>["intent"]>;
827
827
  interface TwoTierBadgeProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof twoTierBadgeVariants> {
@@ -835,7 +835,7 @@ interface TwoTierBadgeProps extends React.HTMLAttributes<HTMLDivElement>, Varian
835
835
  declare const TwoTierBadge: React.ForwardRefExoticComponent<TwoTierBadgeProps & React.RefAttributes<HTMLDivElement>>;
836
836
 
837
837
  declare const statusBadgeVariants: (props?: ({
838
- status?: "error" | "warning" | "info" | "success" | "active" | "pending" | "archived" | null | undefined;
838
+ status?: "success" | "error" | "info" | "warning" | "active" | "pending" | "archived" | null | undefined;
839
839
  size?: "xs" | "sm" | "md" | null | undefined;
840
840
  } & class_variance_authority_types.ClassProp) | undefined) => string;
841
841
  declare const statusBadgeDotVariants: (props?: class_variance_authority_types.ClassProp | undefined) => string;
@@ -865,12 +865,12 @@ declare const NotificationBadge: React.ForwardRefExoticComponent<NotificationBad
865
865
 
866
866
  declare const chipVariants: (props?: ({
867
867
  variant?: "filter" | "choice" | "removable" | "status-filter" | null | undefined;
868
- tone?: "muted" | "accent" | "warning" | "success" | "neutral" | "danger" | null | undefined;
868
+ tone?: "accent" | "danger" | "success" | "warning" | "neutral" | "muted" | null | undefined;
869
869
  size?: "sm" | "md" | "lg" | null | undefined;
870
870
  pressed?: boolean | null | undefined;
871
871
  } & class_variance_authority_types.ClassProp) | undefined) => string;
872
872
  declare const chipCountVariants: (props?: ({
873
- tone?: "muted" | "accent" | "warning" | "success" | "neutral" | "danger" | null | undefined;
873
+ tone?: "accent" | "danger" | "success" | "warning" | "neutral" | "muted" | null | undefined;
874
874
  size?: "sm" | "md" | "lg" | null | undefined;
875
875
  } & class_variance_authority_types.ClassProp) | undefined) => string;
876
876
  type ChipVariant = NonNullable<VariantProps<typeof chipVariants>["variant"]>;
@@ -886,7 +886,7 @@ declare const Chip: React.ForwardRefExoticComponent<ChipProps & React.RefAttribu
886
886
 
887
887
  declare const emptyStateVariants: (props?: ({
888
888
  size?: "sm" | "md" | "lg" | null | undefined;
889
- tone?: "raised" | "muted" | "neutral" | null | undefined;
889
+ tone?: "neutral" | "muted" | "raised" | null | undefined;
890
890
  } & class_variance_authority_types.ClassProp) | undefined) => string;
891
891
  declare const emptyStateIconVariants: (props?: ({
892
892
  size?: "sm" | "md" | "lg" | null | undefined;
@@ -1039,7 +1039,7 @@ interface ActionFooterProps extends Omit<React.HTMLAttributes<HTMLDivElement>, '
1039
1039
  declare const ActionFooter: React.ForwardRefExoticComponent<ActionFooterProps & React.RefAttributes<HTMLDivElement>>;
1040
1040
 
1041
1041
  declare const toastVariants: (props?: ({
1042
- variant?: "error" | "warning" | "info" | "success" | "default" | null | undefined;
1042
+ variant?: "default" | "success" | "error" | "info" | "warning" | null | undefined;
1043
1043
  } & class_variance_authority_types.ClassProp) | undefined) => string;
1044
1044
  declare const toastViewportVariants: (props?: class_variance_authority_types.ClassProp | undefined) => string;
1045
1045
  type ToastVariant = NonNullable<VariantProps<typeof toastVariants>['variant']>;
@@ -1089,7 +1089,7 @@ declare const otpCellVariants: (props?: ({
1089
1089
  size?: "default" | "compact" | null | undefined;
1090
1090
  } & class_variance_authority_types.ClassProp) | undefined) => string;
1091
1091
  declare const otpFieldMessageVariants: (props?: ({
1092
- state?: "error" | "default" | null | undefined;
1092
+ state?: "default" | "error" | null | undefined;
1093
1093
  } & class_variance_authority_types.ClassProp) | undefined) => string;
1094
1094
  type OTPFieldSize = NonNullable<VariantProps<typeof otpCellVariants>["size"]>;
1095
1095
  interface OTPFieldProps extends Omit<React.FieldsetHTMLAttributes<HTMLFieldSetElement>, "onChange" | "children" | "defaultValue" | "value">, VariantProps<typeof otpFieldVariants> {