@croquiscom/pds 8.27.2 → 8.28.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,15 @@
1
1
  # @croquiscom/pds
2
2
 
3
+ ## 8.28.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 089c3e6: FileUploadButton ButtonProps 적용 가능하도록 수정
8
+
9
+ ### Patch Changes
10
+
11
+ - f7456db: feat: Printer 아이콘 추가
12
+
3
13
  ## 8.27.2
4
14
 
5
15
  ### Patch Changes
@@ -0,0 +1,5 @@
1
+ <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M19.5 10C19.5 10.5523 19.0523 11 18.5 11C17.9477 11 17.5 10.5523 17.5 10C17.5 9.44771 17.9477 9 18.5 9C19.0523 9 19.5 9.44771 19.5 10Z" fill="#363644"/>
3
+ <path d="M9 16.25H15V17.75H9V16.25Z" fill="#363644"/>
4
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M17.5 2.5H6.5V6H1.5V18H5.5V21.5H18.5V18H22.5V6H17.5V2.5ZM18.5 16.5H21V7.5H3V16.5H5.5V12.5H18.5V16.5ZM7 20H17V14H7V20ZM16 6V4H8V6H16Z" fill="#363644"/>
5
+ </svg>
@@ -1,4 +1,5 @@
1
1
  import React, { ReactNode } from 'react';
2
+ import { ButtonProps } from '../button';
2
3
  export type UploadFileStatus = 'error' | 'success' | 'done' | 'uploading';
3
4
  export type FileType = File & {
4
5
  [key: string]: any;
@@ -20,6 +21,7 @@ export interface FileUploadProps {
20
21
  */
21
22
  accept?: HTMLInputElement['accept'];
22
23
  disabled?: boolean;
24
+ loading?: boolean;
23
25
  /**
24
26
  * HTMLInputElement['multiple']
25
27
  */
@@ -37,6 +39,7 @@ export interface FileUploadProps {
37
39
  * FileList를 노출하려면 지정된 UploadFile 타입으로 전달해야합니다.
38
40
  */
39
41
  fileList?: UploadFile[];
42
+ buttonProps?: Omit<ButtonProps, 'onClick' | 'disabled'>;
40
43
  onChange?: (file: File | File[]) => void;
41
44
  /**
42
45
  * 파일 업로드 버튼 클릭시 실행되는 이벤트
@@ -55,4 +58,4 @@ export interface FileUploadProps {
55
58
  */
56
59
  onClickFileRemove?: (file: UploadFile, index: number) => void;
57
60
  }
58
- export declare const FileUpload: ({ className, accept, label, disabled, multiple, maxCount, showRemoveButton, fileList, onChange, onClick, onClickFile, onLimitMaxCount, onClickFileRemove, }: FileUploadProps) => React.JSX.Element;
61
+ export declare const FileUpload: ({ className, accept, label, disabled, loading, multiple, maxCount, showRemoveButton, fileList, buttonProps, onChange, onClick, onClickFile, onLimitMaxCount, onClickFileRemove, }: FileUploadProps) => React.JSX.Element;
@@ -11,3 +11,8 @@ export declare const ClickUploadButton: Story;
11
11
  export declare const FileStatus: Story;
12
12
  export declare const Disabled: Story;
13
13
  export declare const MultipleFileUpload: Story;
14
+ export declare const Loading: Story;
15
+ export declare const ChangeButtonIcon: Story;
16
+ export declare const ChangeButtonSize: Story;
17
+ export declare const ChangeButtonKind: Story;
18
+ export declare const ChangeFilledButton: Story;
@@ -1,9 +1,12 @@
1
1
  import React, { ReactNode, InputHTMLAttributes } from 'react';
2
+ import { ButtonProps } from '../button';
2
3
  export interface FileUploadButtonProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'type' | 'multiple'> {
3
4
  /** @default '파일 업로드' */
4
5
  label: ReactNode;
5
6
  /** @default false */
6
7
  multiple?: boolean;
8
+ loading?: boolean;
9
+ buttonProps?: Omit<ButtonProps, 'onClick' | 'disabled' | 'loading'>;
7
10
  onFileUpload?: (file: File | File[]) => void;
8
11
  }
9
- export declare const FileUploadButton: ({ accept, label, disabled, className, multiple, onFileUpload, ...props }: FileUploadButtonProps) => React.JSX.Element;
12
+ export declare const FileUploadButton: ({ accept, label, disabled, className, multiple, loading, buttonProps, onFileUpload, ...props }: FileUploadButtonProps) => React.JSX.Element;
@@ -6,3 +6,8 @@ type Story = StoryObj<typeof FileUploadButton>;
6
6
  export declare const Base: Story;
7
7
  export declare const Disabled: Story;
8
8
  export declare const Multiple: Story;
9
+ export declare const Loading: Story;
10
+ export declare const ChangeButtonIcon: Story;
11
+ export declare const ChangeButtonSize: Story;
12
+ export declare const ChangeButtonKind: Story;
13
+ export declare const ChangeFilledButton: Story;
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import { IconProps } from '.';
3
+ declare const SvgPrinter: ({ size, color, secondaryColor, ...props }: IconProps) => JSX.Element;
4
+ export default SvgPrinter;
@@ -199,6 +199,7 @@ export { default as IconPinColor } from './PinColor';
199
199
  export { default as IconPinFill } from './PinFill';
200
200
  export { default as IconPlayFill } from './PlayFill';
201
201
  export { default as IconPlus } from './Plus';
202
+ export { default as IconPrinter } from './Printer';
202
203
  export { default as IconRefresh } from './Refresh';
203
204
  export { default as IconRocket } from './Rocket';
204
205
  export { default as IconSearch } from './Search';