@croquiscom/pds 9.1.0 → 9.2.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
+ ## 9.2.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 2f97f3e: Page, Section 컴포넌트 추가
8
+
3
9
  ## 9.1.0
4
10
 
5
11
  ### Minor Changes
@@ -2,9 +2,11 @@ import React, { PropsWithChildren } from 'react';
2
2
  import { ko } from '../../locales/ko';
3
3
  import { ModalProps } from '../modal';
4
4
  import { PaginationProps } from '../pagination';
5
+ import { SectionProps } from '../../container/section';
5
6
  export interface CommonComponentProps {
6
7
  modal?: Pick<ModalProps, 'fill' | 'dense'>;
7
8
  pagination?: Pick<PaginationProps, 'siblingCount' | 'showArrowButton'>;
9
+ section?: Pick<SectionProps, 'responsive'>;
8
10
  }
9
11
  export interface ProviderConfig {
10
12
  locale?: typeof ko;
@@ -1,6 +1,8 @@
1
1
  export * from './topBar';
2
2
  export * from './footer';
3
3
  export * from './top-navigation';
4
+ export * from './page';
4
5
  export * from './page-header';
6
+ export * from './section';
5
7
  export * from './section-title';
6
8
  export * from './state';
@@ -0,0 +1,2 @@
1
+ import React, { PropsWithChildren } from 'react';
2
+ export declare const Page: ({ children }: PropsWithChildren) => React.JSX.Element;
@@ -0,0 +1,6 @@
1
+ import type { Meta, StoryObj } from '@storybook/react';
2
+ import { Page } from './Page';
3
+ declare const meta: Meta<typeof Page>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof Page>;
6
+ export declare const Base: Story;
@@ -0,0 +1 @@
1
+ export * from './Page';
@@ -6,10 +6,3 @@ export interface PageHeaderProps {
6
6
  border?: boolean;
7
7
  }
8
8
  export declare const PageHeader: ({ dense, border, children }: PropsWithChildren<PageHeaderProps>) => React.JSX.Element;
9
- export declare const Header: import("@emotion/styled").StyledComponent<{
10
- theme?: import("@emotion/react").Theme;
11
- as?: React.ElementType<any, keyof React.JSX.IntrinsicElements>;
12
- } & {
13
- dense: boolean;
14
- border: boolean;
15
- }, React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>, {}>;
@@ -0,0 +1,9 @@
1
+ import React, { PropsWithChildren } from 'react';
2
+ export interface SectionProps {
3
+ /**
4
+ * 반응형 디자인 사용 여부, desktop: 데스크탑 규격만 사용, mobile: 모바일 규격만 사용, auto: 데스크탑과 모바일 규격을 자동으로 사용
5
+ * @default auto
6
+ */
7
+ responsive?: 'auto' | 'desktop' | 'mobile';
8
+ }
9
+ export declare const Section: ({ responsive, children }: PropsWithChildren<SectionProps>) => React.JSX.Element;
@@ -0,0 +1,9 @@
1
+ import type { Meta, StoryObj } from '@storybook/react';
2
+ import { Section } from './Section';
3
+ declare const meta: Meta<typeof Section>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof Section>;
6
+ export declare const Base: Story;
7
+ export declare const MultipleSection: Story;
8
+ export declare const ResponsiveDesktop: Story;
9
+ export declare const ResponsiveMobile: Story;
@@ -0,0 +1 @@
1
+ export * from './Section';
@@ -2,3 +2,4 @@ export * from './colors';
2
2
  export * from './semantic_colors';
3
3
  export * from './typography';
4
4
  export * from './shapes';
5
+ export * from './screens';
@@ -0,0 +1,3 @@
1
+ export declare const screens: {
2
+ desktop: string;
3
+ };