@gongsaero/design-system 0.2.62 → 0.2.64

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.
@@ -1,4 +1,4 @@
1
- import { CSSProperties, MouseEvent, ReactNode } from 'react';
1
+ import { CSSProperties, MouseEvent, ReactNode, RefObject } from 'react';
2
2
  import { SIZE, TYPE } from '../../constants/styles';
3
3
  export type ButtonSize = (typeof SIZE.BUTTON)[keyof typeof SIZE.BUTTON];
4
4
  export type ButtonTypeSolid = (typeof TYPE.BUTTON.SOLID)[keyof typeof TYPE.BUTTON.SOLID];
@@ -79,4 +79,8 @@ export interface ButtonProps {
79
79
  * 링크 타겟
80
80
  */
81
81
  target?: string;
82
+ /**
83
+ * 버튼 요소에 대한 ref
84
+ */
85
+ ref?: RefObject<HTMLButtonElement>;
82
86
  }
@@ -1,2 +1,2 @@
1
1
  import { SpinProps } from './types';
2
- export declare const Spin: ({ size, mode, className, children, spinning, ...props }: SpinProps) => import("react/jsx-runtime").JSX.Element;
2
+ export declare const Spin: ({ size, mode, classNames, children, spinning, ...props }: SpinProps) => import("react/jsx-runtime").JSX.Element;
@@ -4,7 +4,7 @@ export declare const args: {
4
4
  readonly mode: "modal";
5
5
  };
6
6
  export declare const spinMeta: {
7
- component: ({ size, mode, className, children, spinning, ...props }: import('./types').SpinProps) => import("react/jsx-runtime").JSX.Element;
7
+ component: ({ size, mode, classNames, children, spinning, ...props }: import('./types').SpinProps) => import("react/jsx-runtime").JSX.Element;
8
8
  parameters: {
9
9
  layout: string;
10
10
  design: {
@@ -1,7 +1,14 @@
1
1
  import { SpinProps as AntSpinProps } from 'antd/es/spin';
2
2
  import { SpinSizeType } from '../../constants/styles';
3
3
  export type SpinMode = 'modal' | 'container';
4
- export interface SpinProps extends Omit<AntSpinProps, 'indicator' | 'size'> {
4
+ export interface SpinClassNames {
5
+ wrapper?: string;
6
+ container?: string;
7
+ modal?: string;
8
+ spin?: string;
9
+ }
10
+ export interface SpinProps extends Omit<AntSpinProps, 'indicator' | 'size' | 'className'> {
5
11
  size?: SpinSizeType;
6
12
  mode?: SpinMode;
13
+ classNames?: SpinClassNames;
7
14
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gongsaero/design-system",
3
- "version": "0.2.62",
3
+ "version": "0.2.64",
4
4
  "description": "공새로 디자인 시스템",
5
5
  "author": "sungwoo",
6
6
  "license": "MIT",