@croquiscom/pds 0.47.5 → 1.0.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,11 @@
1
1
  # @croquiscom/pds
2
2
 
3
+ ## 1.0.0
4
+
5
+ ### Major Changes
6
+
7
+ - 6c523d9: Provider Context config 컴포넌트 속성 제공
8
+
3
9
  ## 0.47.5
4
10
 
5
11
  ### Patch Changes
@@ -16,6 +16,7 @@ export interface FileUploadProps {
16
16
  label?: ReactNode;
17
17
  /**
18
18
  * HTMLInputElement['accept']
19
+ * @default image/*
19
20
  */
20
21
  accept?: HTMLInputElement['accept'];
21
22
  disabled?: boolean;
@@ -1,8 +1,15 @@
1
1
  import React, { PropsWithChildren } from 'react';
2
2
  import { ko } from '../../locales/ko';
3
- type ProviderConfig = {
4
- locale: typeof ko;
5
- };
3
+ import { ModalProps } from '../modal';
4
+ import { PaginationProps } from '../pagination';
5
+ export interface CommonComponentProps {
6
+ modal?: Pick<ModalProps, 'fill' | 'dense'>;
7
+ pagination?: Pick<PaginationProps, 'siblingCount' | 'showArrowButton'>;
8
+ }
9
+ export interface ProviderConfig {
10
+ locale?: typeof ko;
11
+ components?: CommonComponentProps;
12
+ }
6
13
  export declare const defaultProviderConfig: {
7
14
  current: ProviderConfig;
8
15
  };
@@ -12,4 +19,3 @@ export declare const providerContext: React.Context<ProviderConfig>;
12
19
  export type ProviderProps = ProviderConfig;
13
20
  export declare const useProviderConfig: () => ProviderConfig;
14
21
  export declare const Provider: ({ children, ...props }: PropsWithChildren<ProviderProps>) => JSX.Element;
15
- export {};