@croquiscom/pds 0.24.2 → 0.25.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,22 @@
1
1
  # @croquiscom/pds
2
2
 
3
+ ## 0.25.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 31a0b23: feat: Divider 컴포넌트 size prop 추가
8
+ - 0bb25d8: TopNavigation 컴포넌트 추가
9
+
10
+ ### Patch Changes
11
+
12
+ - cbc54da: feat: Footer 컴포넌트 모바일 사이즈 대응 되도록 수정
13
+
14
+ ## 0.24.3
15
+
16
+ ### Patch Changes
17
+
18
+ - 6fe814a: z-index 내부 정의값 매칭 추가
19
+
3
20
  ## 0.24.2
4
21
 
5
22
  ### Patch Changes
package/README.md CHANGED
@@ -73,11 +73,11 @@ yarn storybook
73
73
  │ │ ├── Image.stories.tsx
74
74
  │ │ └── Images.stories.mdx
75
75
  │ ├── global_styles
76
- │ ├── themes
77
76
  │ ├── styles
78
77
  │ ├── hooks
79
78
  │ ├── stories
80
79
  │ ├── types
80
+ │ ├── utils
81
81
  │ └── index.ts
82
82
  └── tools
83
83
  ├── svgr-icons-component-template.js
@@ -96,6 +96,8 @@ yarn storybook
96
96
  - **styles**: 컴포넌트에 공용으로 사용할 스타일, 스타일 함수를 포함합니다.
97
97
  - **hooks**: 커스텀 훅을 포함합니다.
98
98
  - **stories**: 스토리북용 컴포넌트나 스타일, 컴포넌트 외의 스토리북 문서
99
+ - **utils**: 컴포넌트에 공용으로 사용할 유틸리티 함수들을 포함합니다.
100
+ - **types**: 타입 정의를 포함합니다.
99
101
  - **assets**: svg 등의 에셋을 포함합니다.
100
102
  - **tools**: svgr template 등의 라이브러리 제작을 위한 스크립트를 포함합니다.
101
103
 
@@ -1,2 +1,3 @@
1
1
  export * from './topBar';
2
2
  export * from './footer';
3
+ export * from './topNavigation';
@@ -0,0 +1,7 @@
1
+ import { ReactNode } from 'react';
2
+ export interface TopNavigationProps {
3
+ title?: ReactNode;
4
+ left?: ReactNode;
5
+ right?: ReactNode;
6
+ }
7
+ export declare const TopNavigation: ({ title, left, right }: TopNavigationProps) => JSX.Element;
@@ -0,0 +1,12 @@
1
+ /// <reference types="react" />
2
+ declare const _default: {
3
+ title: string;
4
+ };
5
+ export default _default;
6
+ export declare const Base: () => JSX.Element;
7
+ export declare const Multiple: () => JSX.Element;
8
+ export declare const EmptyRight: () => JSX.Element;
9
+ export declare const OnlyLeft: () => JSX.Element;
10
+ export declare const OnlyTitle: () => JSX.Element;
11
+ export declare const OnlyRight: () => JSX.Element;
12
+ export declare const LongTitle: () => JSX.Element;
@@ -0,0 +1 @@
1
+ export * from './TopNavigation';
@@ -1,9 +1,11 @@
1
1
  /// <reference types="react" />
2
2
  import { SpaceProps } from '../styles';
3
- import { CSSValueWithLength } from '../styles/buildCSSWithLength';
3
+ import { CSSValueWithLength } from '../styles';
4
4
  export interface DividerProps extends SpaceProps {
5
5
  /** @default 'horizontal' */
6
6
  spacing?: CSSValueWithLength;
7
+ /** @default 'small' */
8
+ size?: 'small' | 'medium';
7
9
  }
8
10
  export declare const Divider: import("@emotion/styled").StyledComponent<{
9
11
  theme?: import("@emotion/react").Theme;
@@ -9,3 +9,4 @@ declare const _default: {
9
9
  };
10
10
  export default _default;
11
11
  export declare const Base: any;
12
+ export declare const MediumSize: any;
@@ -1,5 +1,5 @@
1
1
  import { ReactNode } from 'react';
2
- import { CSSValueWithLength } from '../styles/buildCSSWithLength';
2
+ import { CSSValueWithLength } from '../styles';
3
3
  export interface DropdownOption<OptionValue> {
4
4
  label: ReactNode;
5
5
  value: OptionValue;
@@ -8,6 +8,8 @@ export interface DropdownOption<OptionValue> {
8
8
  export interface DropdownProps<OptionValue> {
9
9
  className?: string;
10
10
  width?: CSSValueWithLength;
11
+ /** @default 1030 */
12
+ zIndex?: number;
11
13
  disabled?: boolean;
12
14
  options: Array<DropdownOption<OptionValue>>;
13
15
  placeholder?: string;
@@ -15,4 +17,4 @@ export interface DropdownProps<OptionValue> {
15
17
  keyExtractor?: (item: DropdownOption<OptionValue>, index: number) => string | number;
16
18
  onChange?: (value: OptionValue) => void;
17
19
  }
18
- export declare const Dropdown: <OptionValue extends string | number>({ className, width, disabled, options, placeholder, value, keyExtractor, onChange, }: DropdownProps<OptionValue>) => JSX.Element;
20
+ export declare const Dropdown: <OptionValue extends string | number>({ className, width, zIndex, disabled, options, placeholder, value, keyExtractor, onChange, }: DropdownProps<OptionValue>) => JSX.Element;
@@ -1,7 +1,7 @@
1
1
  /// <reference types="react" />
2
2
  import { ComponentStory, ComponentMeta } from '@storybook/react';
3
3
  import { Dropdown } from './Dropdown';
4
- declare const _default: ComponentMeta<(<OptionValue extends string | number>({ className, width, disabled, options, placeholder, value, keyExtractor, onChange, }: import("./Dropdown").DropdownProps<OptionValue>) => JSX.Element)>;
4
+ declare const _default: ComponentMeta<(<OptionValue extends string | number>({ className, width, zIndex, disabled, options, placeholder, value, keyExtractor, onChange, }: import("./Dropdown").DropdownProps<OptionValue>) => JSX.Element)>;
5
5
  export default _default;
6
6
  export declare const Base: any;
7
7
  export declare const Disabled: any;
@@ -11,4 +11,4 @@ export interface DropdownInputProps<OptionValue> extends Omit<DropdownProps<Opti
11
11
  options: Array<DropdownInputOption<OptionValue>>;
12
12
  keyExtractor?: (item: DropdownInputOption<OptionValue>, index: number) => string | number;
13
13
  }
14
- export declare const DropdownInput: <OptionValue extends string | number>({ className, width, disabled, options, placeholder, value, keyExtractor, onSearch, onChange, }: DropdownInputProps<OptionValue>) => JSX.Element;
14
+ export declare const DropdownInput: <OptionValue extends string | number>({ className, width, zIndex, disabled, options, placeholder, value, keyExtractor, onSearch, onChange, }: DropdownInputProps<OptionValue>) => JSX.Element;
@@ -1,7 +1,7 @@
1
1
  /// <reference types="react" />
2
2
  import { ComponentStory, ComponentMeta } from '@storybook/react';
3
3
  import { DropdownInput } from './DropdownInput';
4
- declare const _default: ComponentMeta<(<OptionValue extends string | number>({ className, width, disabled, options, placeholder, value, keyExtractor, onSearch, onChange, }: import("./DropdownInput").DropdownInputProps<OptionValue>) => JSX.Element)>;
4
+ declare const _default: ComponentMeta<(<OptionValue extends string | number>({ className, width, zIndex, disabled, options, placeholder, value, keyExtractor, onSearch, onChange, }: import("./DropdownInput").DropdownInputProps<OptionValue>) => JSX.Element)>;
5
5
  export default _default;
6
6
  export declare const Base: any;
7
7
  export declare const Disabled: any;
@@ -1,5 +1,5 @@
1
1
  import React, { AllHTMLAttributes } from 'react';
2
- import { CSSValueWithLength } from '../styles/buildCSSWithLength';
2
+ import { CSSValueWithLength } from '../styles';
3
3
  export interface DropdownLabelProps extends AllHTMLAttributes<HTMLDivElement> {
4
4
  width?: CSSValueWithLength;
5
5
  disabled?: boolean;
package/dist/index.d.ts CHANGED
@@ -1,6 +1,7 @@
1
1
  export * from './button';
2
2
  export * from './badge';
3
3
  export * from './global_style';
4
+ export * from './styles';
4
5
  export * from './icons/generated';
5
6
  export * from './images/generated';
6
7
  export * from './checkbox';