@croquiscom/pds 0.36.0 → 0.37.1

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.37.1
4
+
5
+ ### Patch Changes
6
+
7
+ - fc20524: FormLabel width값 커스텀 가능하도록 수정
8
+
9
+ ## 0.37.0
10
+
11
+ ### Minor Changes
12
+
13
+ - dd74b5b: BasicModal BackButton 추가
14
+ - afc5c74: IconPause20 추가
15
+
16
+ ### Patch Changes
17
+
18
+ - 5cd44e7: PageHeader, SectionTitle 컨테이너 분리
19
+
3
20
  ## 0.36.0
4
21
 
5
22
  ### 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>
@@ -1,10 +1,12 @@
1
1
  import { ReactNode, PropsWithChildren } from 'react';
2
2
  import { HelpTextProps } from '../text';
3
+ import { CSSValueWithLength } from '../../styles';
3
4
  export interface FormFieldProps {
4
5
  className?: string;
5
6
  label?: string;
6
7
  rightAddon?: ReactNode;
7
8
  required?: boolean;
8
9
  helper?: HelpTextProps;
10
+ labelWidth?: CSSValueWithLength;
9
11
  }
10
- export declare const FormField: ({ className, label, rightAddon, required, helper, children, }: PropsWithChildren<FormFieldProps>) => JSX.Element;
12
+ export declare const FormField: ({ className, label, rightAddon, required, helper, labelWidth, children, }: PropsWithChildren<FormFieldProps>) => JSX.Element;
@@ -1,9 +1,10 @@
1
1
  import React from 'react';
2
2
  import { ComponentStory, ComponentMeta } from '@storybook/react';
3
3
  import { FormField } from './FormField';
4
- declare const _default: ComponentMeta<({ className, label, rightAddon, required, helper, children, }: React.PropsWithChildren<import("./FormField").FormFieldProps>) => JSX.Element>;
4
+ declare const _default: ComponentMeta<({ className, label, rightAddon, required, helper, labelWidth, children, }: React.PropsWithChildren<import("./FormField").FormFieldProps>) => JSX.Element>;
5
5
  export default _default;
6
6
  export declare const Base: any;
7
+ export declare const LabelWith: any;
7
8
  export declare const WithRadioGroup: ComponentStory<typeof FormField>;
8
9
  export declare const WithCheckboxGroup: ComponentStory<typeof FormField>;
9
10
  export declare const WithHelpPopover: any;
@@ -1,5 +1,6 @@
1
1
  import React, { ReactNode, LabelHTMLAttributes } from 'react';
2
2
  import { HelpTextProps } from '../text';
3
+ import { CSSValueWithLength } from '../../styles';
3
4
  export interface FormLabelProps extends LabelHTMLAttributes<HTMLLabelElement> {
4
5
  /** @default false */
5
6
  required?: boolean;
@@ -7,5 +8,6 @@ export interface FormLabelProps extends LabelHTMLAttributes<HTMLLabelElement> {
7
8
  helper?: HelpTextProps;
8
9
  /** 라벨 우측 렌더링될 Addon 요소 */
9
10
  rightAddon?: ReactNode;
11
+ width?: CSSValueWithLength;
10
12
  }
11
13
  export declare const FormLabel: React.ForwardRefExoticComponent<FormLabelProps & React.RefAttributes<HTMLLabelElement>>;
@@ -4,5 +4,6 @@ declare const _default: ComponentMeta<React.ForwardRefExoticComponent<import("./
4
4
  export default _default;
5
5
  export declare const Base: any;
6
6
  export declare const Required: any;
7
+ export declare const Width: any;
7
8
  export declare const Help: any;
8
9
  export declare const HelpWithRequired: any;
@@ -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';