@shoplflow/base 0.12.0 → 0.12.2

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.
@@ -153,7 +153,7 @@ declare type TypographyTokens = keyof typeof typographyTokens;
153
153
  /**
154
154
  * HTML 태그에 대한 타입
155
155
  */
156
- declare type StringElementType = ElementType & string;
156
+ declare type StringElementType = ElementType;
157
157
  declare type HTMLPropsWithoutRef<T extends StringElementType> = ComponentPropsWithoutRef<T>;
158
158
  interface DisableProps {
159
159
  /**
@@ -490,13 +490,13 @@ declare type ButtonComponent = <T extends ElementType = 'button'>(props: ButtonP
490
490
  declare const Button: ButtonComponent;
491
491
 
492
492
  declare const iconButtonSizeVar: {
493
- S: string;
494
- M: string;
493
+ readonly S: "S";
494
+ readonly M: "M";
495
495
  };
496
496
  declare type IconButtonSizeVar = $Values<typeof iconButtonSizeVar>;
497
497
  declare const iconButtonStyleVar: {
498
- SOLID: string;
499
- GHOST: string;
498
+ readonly SOLID: "SOLID";
499
+ readonly GHOST: "GHOST";
500
500
  };
501
501
  declare type IconButtonStyleVar = $Values<typeof iconButtonStyleVar>;
502
502
  declare type IconButtonOptionProps<T extends ElementType = 'button'> = Omit<ComponentPropsWithoutRef<T>, 'color' | 'disabled'> & DisableProps & SizeVariantProps<IconButtonSizeVar> & StyleVariantProps<IconButtonStyleVar> & IconSourceProps;
package/dist/index.d.ts CHANGED
@@ -153,7 +153,7 @@ declare type TypographyTokens = keyof typeof typographyTokens;
153
153
  /**
154
154
  * HTML 태그에 대한 타입
155
155
  */
156
- declare type StringElementType = ElementType & string;
156
+ declare type StringElementType = ElementType;
157
157
  declare type HTMLPropsWithoutRef<T extends StringElementType> = ComponentPropsWithoutRef<T>;
158
158
  interface DisableProps {
159
159
  /**
@@ -490,13 +490,13 @@ declare type ButtonComponent = <T extends ElementType = 'button'>(props: ButtonP
490
490
  declare const Button: ButtonComponent;
491
491
 
492
492
  declare const iconButtonSizeVar: {
493
- S: string;
494
- M: string;
493
+ readonly S: "S";
494
+ readonly M: "M";
495
495
  };
496
496
  declare type IconButtonSizeVar = $Values<typeof iconButtonSizeVar>;
497
497
  declare const iconButtonStyleVar: {
498
- SOLID: string;
499
- GHOST: string;
498
+ readonly SOLID: "SOLID";
499
+ readonly GHOST: "GHOST";
500
500
  };
501
501
  declare type IconButtonStyleVar = $Values<typeof iconButtonStyleVar>;
502
502
  declare type IconButtonOptionProps<T extends ElementType = 'button'> = Omit<ComponentPropsWithoutRef<T>, 'color' | 'disabled'> & DisableProps & SizeVariantProps<IconButtonSizeVar> & StyleVariantProps<IconButtonStyleVar> & IconSourceProps;