@commercetools-uikit/collapsible-panel 12.2.2 → 12.2.6
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/README.md +28 -21
- package/dist/commercetools-uikit-collapsible-panel.cjs.d.ts +2 -0
- package/dist/commercetools-uikit-collapsible-panel.cjs.dev.js +182 -254
- package/dist/commercetools-uikit-collapsible-panel.cjs.prod.js +146 -124
- package/dist/commercetools-uikit-collapsible-panel.esm.js +175 -247
- package/dist/declarations/src/collapsible-panel-header.d.ts +9 -0
- package/dist/declarations/src/collapsible-panel.d.ts +34 -0
- package/dist/declarations/src/collapsible-panel.styles.d.ts +18 -0
- package/dist/declarations/src/header-icon.d.ts +14 -0
- package/dist/declarations/src/index.d.ts +2 -0
- package/dist/declarations/src/version.d.ts +2 -0
- package/package.json +11 -15
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
declare type TCollapsiblePanelHeader = {
|
|
3
|
+
children: ReactNode;
|
|
4
|
+
};
|
|
5
|
+
declare const CollapsiblePanelHeader: {
|
|
6
|
+
(props: TCollapsiblePanelHeader): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
7
|
+
displayName: string;
|
|
8
|
+
};
|
|
9
|
+
export default CollapsiblePanelHeader;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
export declare type TCollapsiblePanel = {
|
|
3
|
+
id?: string;
|
|
4
|
+
header: ReactNode;
|
|
5
|
+
secondaryHeader?: ReactNode;
|
|
6
|
+
description?: string;
|
|
7
|
+
className?: string;
|
|
8
|
+
isSticky?: boolean;
|
|
9
|
+
headerControls?: ReactNode;
|
|
10
|
+
isDisabled?: boolean;
|
|
11
|
+
children?: ReactNode;
|
|
12
|
+
tone?: 'urgent' | 'primary';
|
|
13
|
+
theme?: 'dark' | 'light';
|
|
14
|
+
condensed?: boolean;
|
|
15
|
+
hideExpansionControls?: boolean;
|
|
16
|
+
headerControlsAlignment?: 'left' | 'right';
|
|
17
|
+
isDefaultClosed?: boolean;
|
|
18
|
+
isClosed?: boolean;
|
|
19
|
+
onToggle?: () => void;
|
|
20
|
+
horizontalConstraint?: 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 'scale' | 'auto';
|
|
21
|
+
};
|
|
22
|
+
declare const CollapsiblePanel: {
|
|
23
|
+
(props: TCollapsiblePanel): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
24
|
+
getPanelContentId: (id?: string | undefined) => string;
|
|
25
|
+
displayName: string;
|
|
26
|
+
defaultProps: Pick<TCollapsiblePanel, "id" | "condensed" | "theme" | "isDisabled" | "horizontalConstraint" | "headerControlsAlignment">;
|
|
27
|
+
Header: {
|
|
28
|
+
(props: {
|
|
29
|
+
children: ReactNode;
|
|
30
|
+
}): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
31
|
+
displayName: string;
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
export default CollapsiblePanel;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { TCollapsiblePanel } from './collapsible-panel';
|
|
3
|
+
declare function getThemeStyle(theme?: TCollapsiblePanel['theme']): import("@emotion/utils").SerializedStyles;
|
|
4
|
+
declare const getHeaderContainerStyles: (props: Pick<TCollapsiblePanel, 'headerControlsAlignment' | 'condensed' | 'isDisabled' | 'isSticky'>, isOpen: boolean) => (false | import("@emotion/utils").SerializedStyles | undefined)[];
|
|
5
|
+
declare const baseContainerStyles: import("@emotion/utils").SerializedStyles;
|
|
6
|
+
declare const HeaderControlsWrapper: import("@emotion/styled").StyledComponent<{
|
|
7
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
8
|
+
as?: import("react").ElementType<any> | undefined;
|
|
9
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
10
|
+
declare const SectionContent: import("@emotion/styled").StyledComponent<{
|
|
11
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
12
|
+
as?: import("react").ElementType<any> | undefined;
|
|
13
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
14
|
+
declare const SectionWrapper: import("@emotion/styled").StyledComponent<{
|
|
15
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
16
|
+
as?: import("react").ElementType<any> | undefined;
|
|
17
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
18
|
+
export { baseContainerStyles, getHeaderContainerStyles, getThemeStyle, SectionContent, SectionWrapper, HeaderControlsWrapper, };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
declare type THeaderIcon = {
|
|
2
|
+
tone?: 'urgent' | 'primary';
|
|
3
|
+
isClosed: boolean;
|
|
4
|
+
isDisabled: boolean;
|
|
5
|
+
size: 'small' | 'medium' | 'big' | 'scale';
|
|
6
|
+
};
|
|
7
|
+
declare const HeaderIcon: {
|
|
8
|
+
(props: THeaderIcon): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
9
|
+
displayName: string;
|
|
10
|
+
defaultProps: {
|
|
11
|
+
tone: string;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
export default HeaderIcon;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@commercetools-uikit/collapsible-panel",
|
|
3
3
|
"description": "A panel to collapse and expand your content.",
|
|
4
|
-
"version": "12.2.
|
|
4
|
+
"version": "12.2.6",
|
|
5
5
|
"bugs": "https://github.com/commercetools/ui-kit/issues",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -11,7 +11,6 @@
|
|
|
11
11
|
"homepage": "https://uikit.commercetools.com",
|
|
12
12
|
"keywords": ["javascript", "design system", "react", "uikit"],
|
|
13
13
|
"license": "MIT",
|
|
14
|
-
"private": false,
|
|
15
14
|
"publishConfig": {
|
|
16
15
|
"access": "public"
|
|
17
16
|
},
|
|
@@ -19,20 +18,17 @@
|
|
|
19
18
|
"main": "dist/commercetools-uikit-collapsible-panel.cjs.js",
|
|
20
19
|
"module": "dist/commercetools-uikit-collapsible-panel.esm.js",
|
|
21
20
|
"files": ["dist"],
|
|
22
|
-
"scripts": {
|
|
23
|
-
"prepare": "../../../scripts/version.js replace"
|
|
24
|
-
},
|
|
25
21
|
"dependencies": {
|
|
26
|
-
"@babel/runtime": "7.
|
|
27
|
-
"@babel/runtime-corejs3": "7.
|
|
28
|
-
"@commercetools-uikit/accessible-button": "12.2.
|
|
29
|
-
"@commercetools-uikit/collapsible-motion": "12.2.
|
|
30
|
-
"@commercetools-uikit/constraints": "12.2.
|
|
31
|
-
"@commercetools-uikit/design-system": "12.2.
|
|
32
|
-
"@commercetools-uikit/icons": "12.2.
|
|
33
|
-
"@commercetools-uikit/spacings": "12.2.
|
|
34
|
-
"@commercetools-uikit/text": "12.2.
|
|
35
|
-
"@commercetools-uikit/utils": "12.2.
|
|
22
|
+
"@babel/runtime": "7.16.3",
|
|
23
|
+
"@babel/runtime-corejs3": "7.16.3",
|
|
24
|
+
"@commercetools-uikit/accessible-button": "12.2.5",
|
|
25
|
+
"@commercetools-uikit/collapsible-motion": "12.2.5",
|
|
26
|
+
"@commercetools-uikit/constraints": "12.2.5",
|
|
27
|
+
"@commercetools-uikit/design-system": "12.2.5",
|
|
28
|
+
"@commercetools-uikit/icons": "12.2.6",
|
|
29
|
+
"@commercetools-uikit/spacings": "12.2.5",
|
|
30
|
+
"@commercetools-uikit/text": "12.2.5",
|
|
31
|
+
"@commercetools-uikit/utils": "12.2.5",
|
|
36
32
|
"@emotion/react": "^11.4.0",
|
|
37
33
|
"@emotion/styled": "^11.3.0",
|
|
38
34
|
"lodash": "4.17.21",
|