@elliemae/ds-dialog 2.2.0 → 2.3.0-alpha.3
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/cjs/DSDialog.js +82 -102
- package/cjs/DSDialog.js.map +7 -0
- package/cjs/DSDialogDatatestid.js +36 -8
- package/cjs/DSDialogDatatestid.js.map +7 -0
- package/cjs/DSDialogInternalTypes.js +27 -2
- package/cjs/DSDialogInternalTypes.js.map +7 -0
- package/cjs/DSDialogTypes.js +27 -2
- package/cjs/DSDialogTypes.js.map +7 -0
- package/cjs/defaultProps.js +38 -11
- package/cjs/defaultProps.js.map +7 -0
- package/cjs/index.js +94 -24
- package/cjs/index.js.map +7 -0
- package/cjs/propTypes.js +44 -16
- package/cjs/propTypes.js.map +7 -0
- package/cjs/styles.js +149 -143
- package/cjs/styles.js.map +7 -0
- package/cjs/utils.js +50 -30
- package/cjs/utils.js.map +7 -0
- package/esm/DSDialog.js +50 -82
- package/esm/DSDialog.js.map +7 -0
- package/esm/DSDialogDatatestid.js +7 -4
- package/esm/DSDialogDatatestid.js.map +7 -0
- package/esm/DSDialogInternalTypes.js +2 -1
- package/esm/DSDialogInternalTypes.js.map +7 -0
- package/esm/DSDialogTypes.js +2 -1
- package/esm/DSDialogTypes.js.map +7 -0
- package/esm/defaultProps.js +8 -6
- package/esm/defaultProps.js.map +7 -0
- package/esm/index.js +75 -4
- package/esm/index.js.map +7 -0
- package/esm/propTypes.js +15 -12
- package/esm/propTypes.js.map +7 -0
- package/esm/styles.js +120 -123
- package/esm/styles.js.map +7 -0
- package/esm/utils.js +21 -23
- package/esm/utils.js.map +7 -0
- package/package.json +3 -3
- package/types/DSDialog.d.ts +2 -27
- package/types/DSDialogInternalTypes.d.ts +4 -4
- package/types/index.d.ts +49 -1
- package/types/propTypes.d.ts +2 -19
- package/types/styles.d.ts +4 -4
- package/types/utils.d.ts +6 -6
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../scripts/build/transpile/react-shim.js", "../../src/styles.tsx"],
|
|
4
|
+
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "/* eslint-disable max-lines */\nimport styled from 'styled-components';\nimport { createGlobalStyle } from '@elliemae/ds-system';\nimport { space, flexboxes, layout, sizing } from '@xstyled/styled-components';\nimport { allSizes } from './utils';\nimport type { StyledDialogContainerT, StyledDialogBackgroundT, FixedBodyT } from './DSDialogInternalTypes';\n\nexport const FixedBody = createGlobalStyle<FixedBodyT>`\n body {\n overflow: hidden;\n \n ${({ bodyInfo }) => (bodyInfo.overflow ? `padding-right: calc( ${bodyInfo.padding} + 15px ) !important;` : ``)}\n }\n`;\n\nexport const StyledDialogBackground = styled.div<StyledDialogBackgroundT>`\n position: fixed;\n top: 0;\n bottom: 0;\n width: 100%;\n height: 100%;\n background: rgba(37, 41, 47, 50%);\n overflow-y: auto;\n z-index: ${({ zIndex }) => zIndex};\n`;\n\nexport const StyledDialogContainer = styled.div<StyledDialogContainerPropsT>`\n height: fit-content;\n position: absolute;\n top: 0;\n bottom: 0;\n left: 0;\n right: 0;\n margin: ${({ centered }) => (centered ? 'auto' : '20vh auto auto auto')};\n width: ${({ size }) => allSizes[size]};\n min-width: 300px;\n box-shadow: 0 10px 20px 0 ${({ theme }) => theme.colors.neutral[500]};\n background: ${({ theme }) => theme.colors.neutral['000']};\n overflow-y: auto;\n ${space}\n &:focus {\n outline: none;\n }\n`;\n\nexport const DSDialogTitle = styled.h3`\n font-size: ${({ theme }) => theme.fontSizes.title[700]};\n display: -webkit-box;\n -webkit-line-clamp: 2;\n -webkit-box-orient: vertical;\n overflow: hidden;\n margin: 0;\n`;\n\nexport const DSDialogAddon = styled.div``;\n\nexport const DSDialogHeader = styled.div`\n display: grid;\n align-items: center;\n grid-auto-flow: column;\n min-height: ${({ theme }) => theme.space.m};\n padding: 10px ${({ theme }) => theme.space.xs};\n & ${DSDialogTitle} + ${DSDialogAddon} {\n align-self: flex-start;\n justify-self: flex-end;\n }\n & ${DSDialogAddon}:only-child {\n justify-self: flex-end;\n }\n ${space}\n`;\n\nexport const DSDialogSeparator = styled.hr.attrs(() => ({ 'aria-hidden': true }))`\n margin: 0;\n border-top: 1px solid ${({ theme }) => theme.colors.neutral['080']};\n`;\n\nexport const DSDialogBody = styled.div`\n padding: ${({ theme }) => theme.space.xs};\n overflow-y: auto;\n\n ${layout}\n ${space}\n ${flexboxes}\n ${sizing}\n`;\n\nexport const DSDialogPrimaryMessage = styled.h3`\n margin: 0;\n`;\n\nexport const DSDialogSecondaryMessage = styled.p`\n margin: 0;\n color: ${({ theme }) => theme.colors.neutral[500]};\n`;\n\nexport const DSDialogDefaultLayout = styled.div`\n display: grid;\n grid-auto-flow: row;\n justify-items: center;\n align-items: center;\n grid-gap: ${({ theme }) => theme.space.xxs};\n\n ${DSDialogSecondaryMessage} {\n text-align: center;\n }\n`;\n\nexport const DSDialogFooter = styled.div`\n display: grid;\n grid-auto-flow: column;\n align-items: center;\n justify-content: flex-end;\n grid-gap: ${({ theme }) => theme.space.xxs};\n min-height: ${({ theme }) => theme.space.m};\n padding: 0 ${({ theme }) => theme.space.xs};\n ${space}\n ${flexboxes}\n ${sizing}\n`;\n"],
|
|
5
|
+
"mappings": "AAAA;ACCA;AACA;AACA;AACA;AAGO,MAAM,YAAY;AAAA;AAAA;AAAA;AAAA,MAInB,CAAC,EAAE,eAAgB,SAAS,WAAW,wBAAwB,SAAS,iCAAiC;AAAA;AAAA;AAIxG,MAAM,yBAAyB,OAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,aAQhC,CAAC,EAAE,aAAa;AAAA;AAGtB,MAAM,wBAAwB,OAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,YAOhC,CAAC,EAAE,eAAgB,WAAW,SAAS;AAAA,WACxC,CAAC,EAAE,WAAW,SAAS;AAAA;AAAA,8BAEJ,CAAC,EAAE,YAAY,MAAM,OAAO,QAAQ;AAAA,gBAClD,CAAC,EAAE,YAAY,MAAM,OAAO,QAAQ;AAAA;AAAA,IAEhD;AAAA;AAAA;AAAA;AAAA;AAMG,MAAM,gBAAgB,OAAO;AAAA,eACrB,CAAC,EAAE,YAAY,MAAM,UAAU,MAAM;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAQ7C,MAAM,gBAAgB,OAAO;AAE7B,MAAM,iBAAiB,OAAO;AAAA;AAAA;AAAA;AAAA,gBAIrB,CAAC,EAAE,YAAY,MAAM,MAAM;AAAA,kBACzB,CAAC,EAAE,YAAY,MAAM,MAAM;AAAA,MACvC,mBAAmB;AAAA;AAAA;AAAA;AAAA,MAInB;AAAA;AAAA;AAAA,IAGF;AAAA;AAGG,MAAM,oBAAoB,OAAO,GAAG,MAAM,MAAO,GAAE,eAAe;AAAA;AAAA,0BAE/C,CAAC,EAAE,YAAY,MAAM,OAAO,QAAQ;AAAA;AAGvD,MAAM,eAAe,OAAO;AAAA,aACtB,CAAC,EAAE,YAAY,MAAM,MAAM;AAAA;AAAA;AAAA,IAGpC;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA;AAGG,MAAM,yBAAyB,OAAO;AAAA;AAAA;AAItC,MAAM,2BAA2B,OAAO;AAAA;AAAA,WAEpC,CAAC,EAAE,YAAY,MAAM,OAAO,QAAQ;AAAA;AAGxC,MAAM,wBAAwB,OAAO;AAAA;AAAA;AAAA;AAAA;AAAA,cAK9B,CAAC,EAAE,YAAY,MAAM,MAAM;AAAA;AAAA,IAErC;AAAA;AAAA;AAAA;AAKG,MAAM,iBAAiB,OAAO;AAAA;AAAA;AAAA;AAAA;AAAA,cAKvB,CAAC,EAAE,YAAY,MAAM,MAAM;AAAA,gBACzB,CAAC,EAAE,YAAY,MAAM,MAAM;AAAA,eAC5B,CAAC,EAAE,YAAY,MAAM,MAAM;AAAA,IACtC;AAAA,IACA;AAAA,IACA;AAAA;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
package/esm/utils.js
CHANGED
|
@@ -1,28 +1,26 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
import 'core-js/modules/esnext.iterator.filter.js';
|
|
4
|
-
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
5
|
-
|
|
6
|
-
const getSpaceProps = props => Object.fromEntries(Object.entries(props).filter(_ref => {
|
|
7
|
-
let [key] = _ref;
|
|
8
|
-
return /^[pm][xytblr]?$/.exec(key);
|
|
9
|
-
}));
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
const getSpaceProps = (props) => Object.fromEntries(Object.entries(props).filter(([key]) => /^[pm][xytblr]?$/.exec(key)));
|
|
10
3
|
const DSDialogSizes = {
|
|
11
|
-
DEFAULT:
|
|
12
|
-
SMALL:
|
|
13
|
-
MEDIUM:
|
|
14
|
-
LARGE:
|
|
15
|
-
XLARGE:
|
|
16
|
-
XXLARGE:
|
|
4
|
+
DEFAULT: "default",
|
|
5
|
+
SMALL: "small",
|
|
6
|
+
MEDIUM: "medium",
|
|
7
|
+
LARGE: "large",
|
|
8
|
+
XLARGE: "x-large",
|
|
9
|
+
XXLARGE: "xx-large"
|
|
17
10
|
};
|
|
18
11
|
const DSDialogSizesArrayValues = Object.values(DSDialogSizes);
|
|
19
12
|
const allSizes = {
|
|
20
|
-
default:
|
|
21
|
-
small:
|
|
22
|
-
medium:
|
|
23
|
-
large:
|
|
24
|
-
|
|
25
|
-
|
|
13
|
+
default: "576px",
|
|
14
|
+
small: "320px",
|
|
15
|
+
medium: "656px",
|
|
16
|
+
large: "848px",
|
|
17
|
+
"x-large": "1042px",
|
|
18
|
+
"xx-large": "1440px"
|
|
26
19
|
};
|
|
27
|
-
|
|
28
|
-
|
|
20
|
+
export {
|
|
21
|
+
DSDialogSizes,
|
|
22
|
+
DSDialogSizesArrayValues,
|
|
23
|
+
allSizes,
|
|
24
|
+
getSpaceProps
|
|
25
|
+
};
|
|
26
|
+
//# sourceMappingURL=utils.js.map
|
package/esm/utils.js.map
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../scripts/build/transpile/react-shim.js", "../../src/utils.tsx"],
|
|
4
|
+
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import type { GetSpaceArgsT } from './DSDialogInternalTypes';\n\nexport const getSpaceProps = (props: GetSpaceArgsT): GetSpaceArgsT =>\n Object.fromEntries(Object.entries(props).filter(([key]) => /^[pm][xytblr]?$/.exec(key)));\n\nexport const DSDialogSizes = {\n DEFAULT: 'default' as const,\n SMALL: 'small' as const,\n MEDIUM: 'medium' as const,\n LARGE: 'large' as const,\n XLARGE: 'x-large' as const,\n XXLARGE: 'xx-large' as const,\n};\n\nexport const DSDialogSizesArrayValues = Object.values(DSDialogSizes);\n\nexport const allSizes = {\n default: '576px',\n small: '320px',\n medium: '656px',\n large: '848px',\n 'x-large': '1042px',\n 'xx-large': '1440px',\n};\n"],
|
|
5
|
+
"mappings": "AAAA;ACEO,MAAM,gBAAgB,CAAC,UAC5B,OAAO,YAAY,OAAO,QAAQ,OAAO,OAAO,CAAC,CAAC,SAAS,kBAAkB,KAAK;AAE7E,MAAM,gBAAgB;AAAA,EAC3B,SAAS;AAAA,EACT,OAAO;AAAA,EACP,QAAQ;AAAA,EACR,OAAO;AAAA,EACP,QAAQ;AAAA,EACR,SAAS;AAAA;AAGJ,MAAM,2BAA2B,OAAO,OAAO;AAE/C,MAAM,WAAW;AAAA,EACtB,SAAS;AAAA,EACT,OAAO;AAAA,EACP,QAAQ;AAAA,EACR,OAAO;AAAA,EACP,WAAW;AAAA,EACX,YAAY;AAAA;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elliemae/ds-dialog",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.3.0-alpha.3",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "ICE MT - Dimsum - Dialog",
|
|
6
6
|
"module": "./esm/index.js",
|
|
@@ -64,8 +64,8 @@
|
|
|
64
64
|
"build": "node ../../scripts/build/build.js"
|
|
65
65
|
},
|
|
66
66
|
"dependencies": {
|
|
67
|
-
"@elliemae/ds-props-helpers": "2.
|
|
68
|
-
"@elliemae/ds-system": "2.
|
|
67
|
+
"@elliemae/ds-props-helpers": "2.3.0-alpha.3",
|
|
68
|
+
"@elliemae/ds-system": "2.3.0-alpha.3",
|
|
69
69
|
"@xstyled/styled-components": "~3.1.1",
|
|
70
70
|
"react-desc": "~4.1.3"
|
|
71
71
|
},
|
package/types/DSDialog.d.ts
CHANGED
|
@@ -1,30 +1,5 @@
|
|
|
1
|
-
/// <reference path="../../../../shared/typings/react-desc.d.ts" />
|
|
2
1
|
import React from 'react';
|
|
3
2
|
import type { DSDialogPropsT } from './DSDialogTypes';
|
|
4
|
-
declare const DSDialog:
|
|
5
|
-
|
|
6
|
-
propTypes: {
|
|
7
|
-
isOpen: {
|
|
8
|
-
deprecated: import("react-desc").PropTypesDescValidator;
|
|
9
|
-
};
|
|
10
|
-
children: import("react-desc").PropTypesDescValue;
|
|
11
|
-
centered: {
|
|
12
|
-
deprecated: import("react-desc").PropTypesDescValidator;
|
|
13
|
-
};
|
|
14
|
-
size: {
|
|
15
|
-
deprecated: import("react-desc").PropTypesDescValidator;
|
|
16
|
-
};
|
|
17
|
-
removeAutoFocus: {
|
|
18
|
-
deprecated: import("react-desc").PropTypesDescValidator;
|
|
19
|
-
};
|
|
20
|
-
onClickOutside: {
|
|
21
|
-
deprecated: import("react-desc").PropTypesDescValidator;
|
|
22
|
-
};
|
|
23
|
-
};
|
|
24
|
-
};
|
|
25
|
-
declare const DSDialogWithSchema: {
|
|
26
|
-
(props?: unknown): JSX.Element;
|
|
27
|
-
propTypes: unknown;
|
|
28
|
-
toTypescript: () => import("react-desc").TypescriptSchema;
|
|
29
|
-
};
|
|
3
|
+
declare const DSDialog: React.ComponentType<DSDialogPropsT>;
|
|
4
|
+
declare const DSDialogWithSchema: import("@elliemae/ds-props-helpers/types/propTypes/types").DocumentedReactComponent<DSDialogPropsT>;
|
|
30
5
|
export { DSDialog, DSDialogWithSchema };
|
|
@@ -15,11 +15,11 @@ export interface StyledDialogContainerPropsT {
|
|
|
15
15
|
size: Sizes;
|
|
16
16
|
centered: boolean;
|
|
17
17
|
}
|
|
18
|
-
export interface
|
|
19
|
-
bodyInfo: BodyInfoT;
|
|
20
|
-
}
|
|
21
|
-
export interface StyledDialogBackgroundPropsT {
|
|
18
|
+
export interface StyledDialogBackgroundT {
|
|
22
19
|
zIndex: number;
|
|
23
20
|
}
|
|
21
|
+
export interface FixedBodyT {
|
|
22
|
+
isBodyOverflow: boolean;
|
|
23
|
+
}
|
|
24
24
|
export declare type DSDialogPropsWithDefaultT = Required<DSDialogPropsT>;
|
|
25
25
|
export declare type GetSpaceArgsT = Partial<Record<string, string | number>>;
|
package/types/index.d.ts
CHANGED
|
@@ -1,4 +1,52 @@
|
|
|
1
|
+
/// <reference path="../../../../shared/typings/react-desc.d.ts" />
|
|
2
|
+
/// <reference types="react" />
|
|
3
|
+
import { DSDialogBody, DSDialogHeader, DSDialogFooter, DSDialogSeparator, DSDialogTitle, DSDialogAddon, DSDialogDefaultLayout, DSDialogPrimaryMessage, DSDialogSecondaryMessage } from './styles';
|
|
4
|
+
declare const DSDialogBodyWithSchema: {
|
|
5
|
+
(props?: unknown): JSX.Element;
|
|
6
|
+
propTypes: unknown;
|
|
7
|
+
toTypescript: () => import("react-desc").TypescriptSchema;
|
|
8
|
+
};
|
|
9
|
+
declare const DSDialogHeaderWithSchema: {
|
|
10
|
+
(props?: unknown): JSX.Element;
|
|
11
|
+
propTypes: unknown;
|
|
12
|
+
toTypescript: () => import("react-desc").TypescriptSchema;
|
|
13
|
+
};
|
|
14
|
+
declare const DSDialogFooterWithSchema: {
|
|
15
|
+
(props?: unknown): JSX.Element;
|
|
16
|
+
propTypes: unknown;
|
|
17
|
+
toTypescript: () => import("react-desc").TypescriptSchema;
|
|
18
|
+
};
|
|
19
|
+
declare const DSDialogSeparatorWithSchema: {
|
|
20
|
+
(props?: unknown): JSX.Element;
|
|
21
|
+
propTypes: unknown;
|
|
22
|
+
toTypescript: () => import("react-desc").TypescriptSchema;
|
|
23
|
+
};
|
|
24
|
+
declare const DSDialogTitleWithSchema: {
|
|
25
|
+
(props?: unknown): JSX.Element;
|
|
26
|
+
propTypes: unknown;
|
|
27
|
+
toTypescript: () => import("react-desc").TypescriptSchema;
|
|
28
|
+
};
|
|
29
|
+
declare const DSDialogAddonWithSchema: {
|
|
30
|
+
(props?: unknown): JSX.Element;
|
|
31
|
+
propTypes: unknown;
|
|
32
|
+
toTypescript: () => import("react-desc").TypescriptSchema;
|
|
33
|
+
};
|
|
34
|
+
declare const DSDialogDefaultLayoutWithSchema: {
|
|
35
|
+
(props?: unknown): JSX.Element;
|
|
36
|
+
propTypes: unknown;
|
|
37
|
+
toTypescript: () => import("react-desc").TypescriptSchema;
|
|
38
|
+
};
|
|
39
|
+
declare const DSDialogPrimaryMessageWithSchema: {
|
|
40
|
+
(props?: unknown): JSX.Element;
|
|
41
|
+
propTypes: unknown;
|
|
42
|
+
toTypescript: () => import("react-desc").TypescriptSchema;
|
|
43
|
+
};
|
|
44
|
+
declare const DSDialogSecondaryMessageWithSchema: {
|
|
45
|
+
(props?: unknown): JSX.Element;
|
|
46
|
+
propTypes: unknown;
|
|
47
|
+
toTypescript: () => import("react-desc").TypescriptSchema;
|
|
48
|
+
};
|
|
1
49
|
export * from './DSDialog';
|
|
2
50
|
export * from './DSDialogDatatestid';
|
|
3
51
|
export { DSDialogSizes } from './utils';
|
|
4
|
-
export { DSDialogBody, DSDialogHeader, DSDialogFooter, DSDialogSeparator, DSDialogTitle, DSDialogAddon, DSDialogDefaultLayout, DSDialogPrimaryMessage, DSDialogSecondaryMessage,
|
|
52
|
+
export { DSDialogBody, DSDialogHeader, DSDialogFooter, DSDialogSeparator, DSDialogTitle, DSDialogAddon, DSDialogDefaultLayout, DSDialogPrimaryMessage, DSDialogSecondaryMessage, DSDialogBodyWithSchema, DSDialogHeaderWithSchema, DSDialogFooterWithSchema, DSDialogSeparatorWithSchema, DSDialogTitleWithSchema, DSDialogAddonWithSchema, DSDialogDefaultLayoutWithSchema, DSDialogPrimaryMessageWithSchema, DSDialogSecondaryMessageWithSchema, };
|
package/types/propTypes.d.ts
CHANGED
|
@@ -1,19 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const propTypes:
|
|
3
|
-
isOpen: {
|
|
4
|
-
deprecated: import("react-desc").PropTypesDescValidator;
|
|
5
|
-
};
|
|
6
|
-
children: import("react-desc").PropTypesDescValue;
|
|
7
|
-
centered: {
|
|
8
|
-
deprecated: import("react-desc").PropTypesDescValidator;
|
|
9
|
-
};
|
|
10
|
-
size: {
|
|
11
|
-
deprecated: import("react-desc").PropTypesDescValidator;
|
|
12
|
-
};
|
|
13
|
-
removeAutoFocus: {
|
|
14
|
-
deprecated: import("react-desc").PropTypesDescValidator;
|
|
15
|
-
};
|
|
16
|
-
onClickOutside: {
|
|
17
|
-
deprecated: import("react-desc").PropTypesDescValidator;
|
|
18
|
-
};
|
|
19
|
-
};
|
|
1
|
+
import { WeakValidationMap } from 'react';
|
|
2
|
+
export declare const propTypes: WeakValidationMap<unknown>;
|
package/types/styles.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
export declare const FixedBody: import("styled-components").GlobalStyleComponent<
|
|
3
|
-
export declare const StyledDialogBackground: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme,
|
|
4
|
-
export declare const StyledDialogContainer: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme,
|
|
1
|
+
import type { StyledDialogBackgroundT, FixedBodyT } from './DSDialogInternalTypes';
|
|
2
|
+
export declare const FixedBody: import("styled-components").GlobalStyleComponent<FixedBodyT, import("styled-components").DefaultTheme>;
|
|
3
|
+
export declare const StyledDialogBackground: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, StyledDialogBackgroundT, never>;
|
|
4
|
+
export declare const StyledDialogContainer: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, any, never>;
|
|
5
5
|
export declare const DSDialogTitle: import("styled-components").StyledComponent<"h3", import("styled-components").DefaultTheme, {}, never>;
|
|
6
6
|
export declare const DSDialogAddon: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
7
7
|
export declare const DSDialogHeader: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
package/types/utils.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import type { GetSpaceArgsT } from './DSDialogInternalTypes';
|
|
2
2
|
export declare const getSpaceProps: (props: GetSpaceArgsT) => GetSpaceArgsT;
|
|
3
3
|
export declare const DSDialogSizes: {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
4
|
+
DEFAULT: "default";
|
|
5
|
+
SMALL: "small";
|
|
6
|
+
MEDIUM: "medium";
|
|
7
|
+
LARGE: "large";
|
|
8
|
+
XLARGE: "x-large";
|
|
9
|
+
XXLARGE: "xx-large";
|
|
10
10
|
};
|
|
11
11
|
export declare const DSDialogSizesArrayValues: ("default" | "small" | "medium" | "large" | "x-large" | "xx-large")[];
|
|
12
12
|
export declare const allSizes: {
|