@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 +11 -0
- package/assets/icons/Pause20.svg +3 -0
- package/dist/components/icons/generated/Pause20.d.ts +4 -0
- package/dist/components/icons/generated/index.d.ts +1 -0
- package/dist/components/modal/Modal.d.ts +6 -1
- package/dist/components/modal/Modal.stories.d.ts +2 -1
- package/dist/container/index.d.ts +1 -0
- package/dist/container/page-header/PageHeader.d.ts +5 -13
- package/dist/container/page-header/PageHeader.stories.d.ts +2 -5
- package/dist/container/section-title/SectionTitle.d.ts +15 -0
- package/dist/container/section-title/SectionTitle.stories.d.ts +9 -0
- package/dist/container/section-title/index.d.ts +1 -0
- package/dist/index.es.js +2 -2
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -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;
|
|
@@ -1,23 +1,15 @@
|
|
|
1
|
-
import 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
|
|
8
|
-
|
|
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,
|
|
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,
|
|
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
|
|
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';
|