@croquiscom/pds 0.36.0 → 0.37.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,16 @@
1
1
  # @croquiscom/pds
2
2
 
3
+ ## 0.37.0
4
+
5
+ ### Minor Changes
6
+
7
+ - dd74b5b: BasicModal BackButton 추가
8
+ - afc5c74: IconPause20 추가
9
+
10
+ ### Patch Changes
11
+
12
+ - 5cd44e7: PageHeader, SectionTitle 컨테이너 분리
13
+
3
14
  ## 0.36.0
4
15
 
5
16
  ### Minor Changes
@@ -0,0 +1,3 @@
1
+ <svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M12.6667 19H18V1H12.6667M2 19H7.33333V1H2V19Z" fill="#363644"/>
3
+ </svg>
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import { IconProps } from '.';
3
+ declare const SvgPause20: ({ size, color, secondaryColor, ...props }: IconProps) => JSX.Element;
4
+ export default SvgPause20;
@@ -123,6 +123,7 @@ export { default as IconOrdering16 } from './Ordering16';
123
123
  export { default as IconOrders18 } from './Orders18';
124
124
  export { default as IconOutlinkOne14 } from './OutlinkOne14';
125
125
  export { default as IconOutlinkTwo14 } from './OutlinkTwo14';
126
+ export { default as IconPause20 } from './Pause20';
126
127
  export { default as IconPenaltyBad20 } from './PenaltyBad20';
127
128
  export { default as IconPenaltyGood20 } from './PenaltyGood20';
128
129
  export { default as IconPenaltyNotsobad20 } from './PenaltyNotsobad20';
@@ -4,6 +4,10 @@ export interface ModalProps extends ModalOverlayBaseProps {
4
4
  title?: ReactNode;
5
5
  confirmText?: string;
6
6
  cancelText?: string;
7
+ /**
8
+ * @default false
9
+ */
10
+ backButton?: boolean;
7
11
  /**
8
12
  * @default true
9
13
  */
@@ -18,9 +22,10 @@ export interface ModalProps extends ModalOverlayBaseProps {
18
22
  footerAddon?: ReactNode;
19
23
  onConfirm?: () => void;
20
24
  onCancel?: () => void;
25
+ onClickBackButton?: () => void;
21
26
  }
22
27
  export declare const MIN_WIDTH = 480;
23
- export declare const Modal: ({ opened: openProp, children, title, width, confirmText, cancelText, closeButton, dense, fill, footerAddon, onConfirm, onCancel, onClose, onExited, ...props }: PropsWithChildren<ModalProps>) => JSX.Element;
28
+ export declare const Modal: ({ opened: openProp, children, title, width, confirmText, cancelText, closeButton, backButton, dense, fill, footerAddon, onConfirm, onCancel, onClose, onExited, onClickBackButton, ...props }: PropsWithChildren<ModalProps>) => JSX.Element;
24
29
  export declare const ModalTitle: import("@emotion/styled").StyledComponent<(import("../text").BaseTextProps & (React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement> | React.DetailedHTMLProps<React.HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement> | React.DetailedHTMLProps<React.LiHTMLAttributes<HTMLLIElement>, HTMLLIElement> | React.DetailedHTMLProps<React.HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement> | React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>)) & {
25
30
  theme?: import("@emotion/react").Theme;
26
31
  }, {}, {}>;
@@ -1,10 +1,11 @@
1
1
  import React from 'react';
2
2
  import { ComponentMeta } from '@storybook/react';
3
- declare const _default: ComponentMeta<({ opened: openProp, children, title, width, confirmText, cancelText, closeButton, dense, fill, footerAddon, onConfirm, onCancel, onClose, onExited, ...props }: React.PropsWithChildren<import("./Modal").ModalProps>) => JSX.Element>;
3
+ declare const _default: ComponentMeta<({ opened: openProp, children, title, width, confirmText, cancelText, closeButton, backButton, dense, fill, footerAddon, onConfirm, onCancel, onClose, onExited, onClickBackButton, ...props }: React.PropsWithChildren<import("./Modal").ModalProps>) => JSX.Element>;
4
4
  export default _default;
5
5
  export declare const BasicModal: any;
6
6
  export declare const BasicModalDense: any;
7
7
  export declare const canClickOutside: any;
8
+ export declare const BasicModalWithBackButton: any;
8
9
  export declare const Custom: any;
9
10
  export declare const ConfirmModal: () => JSX.Element;
10
11
  export declare const ConfirmModalDenseWithFill: () => JSX.Element;
@@ -2,3 +2,4 @@ export * from './topBar';
2
2
  export * from './footer';
3
3
  export * from './top-navigation';
4
4
  export * from './page-header';
5
+ export * from './section-title';
@@ -1,23 +1,15 @@
1
- import React, { ReactNode, PropsWithChildren } from 'react';
2
- export type PageHeaderDirection = 'horizontal' | 'vertical';
3
- export type PageHeaderSize = 'small' | 'medium' | 'large';
1
+ import React, { PropsWithChildren } from 'react';
4
2
  export interface PageHeaderProps {
5
3
  /** @default false */
6
4
  dense?: boolean;
7
- /** @default horizontal */
8
- direction?: PageHeaderDirection;
9
- /** @default large */
10
- size?: PageHeaderSize;
11
- caption?: string;
12
- title: ReactNode;
13
- description?: ReactNode;
14
- textButton?: ReactNode;
15
- actions?: ReactNode;
5
+ /** @default true */
6
+ border?: boolean;
16
7
  }
17
- export declare const PageHeader: ({ dense, direction, size, caption, title, description, textButton, actions, children, }: PropsWithChildren<PageHeaderProps>) => JSX.Element;
8
+ export declare const PageHeader: ({ dense, border, children }: PropsWithChildren<PageHeaderProps>) => JSX.Element;
18
9
  export declare const Header: import("@emotion/styled").StyledComponent<{
19
10
  theme?: import("@emotion/react").Theme;
20
11
  as?: React.ElementType<any>;
21
12
  } & {
22
13
  dense: boolean;
14
+ border: boolean;
23
15
  }, React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>, {}>;
@@ -1,11 +1,8 @@
1
1
  import React from 'react';
2
2
  import { ComponentMeta } from '@storybook/react';
3
- declare const _default: ComponentMeta<({ dense, direction, size, caption, title, description, textButton, actions, children, }: React.PropsWithChildren<import("./PageHeader").PageHeaderProps>) => JSX.Element>;
3
+ declare const _default: ComponentMeta<({ dense, border, children }: React.PropsWithChildren<import("./PageHeader").PageHeaderProps>) => JSX.Element>;
4
4
  export default _default;
5
5
  export declare const Base: any;
6
6
  export declare const Dense: any;
7
- export declare const Vertical: any;
8
- export declare const SizeWithHorizontal: () => JSX.Element[];
9
- export declare const SizeWithVertical: () => JSX.Element[];
7
+ export declare const WithSectionTitleVertical: any;
10
8
  export declare const WithLineTab: () => JSX.Element;
11
- export declare const Custom: any;
@@ -0,0 +1,15 @@
1
+ import { ReactNode } from 'react';
2
+ export type SectionTitleDirection = 'horizontal' | 'vertical';
3
+ export type SectionTitleSize = 'small' | 'medium' | 'large';
4
+ export interface SectionTitleProps {
5
+ /** @default horizontal */
6
+ direction?: SectionTitleDirection;
7
+ /** @default large */
8
+ size?: SectionTitleSize;
9
+ caption?: string;
10
+ title: ReactNode;
11
+ description?: ReactNode;
12
+ textButton?: ReactNode;
13
+ actions?: ReactNode;
14
+ }
15
+ export declare const SectionTitle: ({ direction, size, caption, title, description, textButton, actions, }: SectionTitleProps) => JSX.Element;
@@ -0,0 +1,9 @@
1
+ /// <reference types="react" />
2
+ import { ComponentMeta } from '@storybook/react';
3
+ declare const _default: ComponentMeta<({ direction, size, caption, title, description, textButton, actions, }: import("./SectionTitle").SectionTitleProps) => JSX.Element>;
4
+ export default _default;
5
+ export declare const Base: any;
6
+ export declare const Vertical: any;
7
+ export declare const SizeWithHorizontal: () => JSX.Element;
8
+ export declare const SizeWithVertical: () => JSX.Element;
9
+ export declare const Custom: any;
@@ -0,0 +1 @@
1
+ export * from './SectionTitle';