@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 +6 -0
- package/dist/components/provider/Provider.d.ts +2 -0
- package/dist/container/index.d.ts +2 -0
- package/dist/container/page/Page.d.ts +2 -0
- package/dist/container/page/Page.stories.d.ts +6 -0
- package/dist/container/page/index.d.ts +1 -0
- package/dist/container/page-header/PageHeader.d.ts +0 -7
- package/dist/container/section/Section.d.ts +9 -0
- package/dist/container/section/Section.stories.d.ts +9 -0
- package/dist/container/section/index.d.ts +1 -0
- package/dist/foundation/index.d.ts +1 -0
- package/dist/foundation/screens.d.ts +3 -0
- package/dist/index.es.js +8 -8
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +7 -7
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -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;
|
|
@@ -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';
|