gd-design-library 0.0.1
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 +201 -0
- package/assets/icons/arrow-forward.d.ts +6 -0
- package/assets/icons/check.d.ts +6 -0
- package/assets/icons/chevron-right.d.ts +6 -0
- package/assets/icons/cross.d.ts +6 -0
- package/assets/icons/dot.d.ts +6 -0
- package/assets/icons/home.d.ts +6 -0
- package/assets/icons/slash.d.ts +6 -0
- package/assets/icons/star.d.ts +5 -0
- package/assets/icons/toast_error.d.ts +5 -0
- package/assets/icons/toast_info.d.ts +5 -0
- package/assets/icons/toast_success.d.ts +5 -0
- package/assets/icons/toast_warning.d.ts +5 -0
- package/assets/index.d.ts +83 -0
- package/components/core/Breadcrumbs/Breadcrumbs.d.ts +2 -0
- package/components/core/Breadcrumbs/Breadcrumbs.types.d.ts +14 -0
- package/components/core/Breadcrumbs/StyledBreadcrumbs.d.ts +6 -0
- package/components/core/Breadcrumbs/constants.d.ts +1 -0
- package/components/core/Breadcrumbs/index.d.ts +2 -0
- package/components/core/Button/Button.d.ts +5 -0
- package/components/core/Button/Button.types.d.ts +52 -0
- package/components/core/Button/StyledButton.d.ts +5 -0
- package/components/core/Button/constants.d.ts +1 -0
- package/components/core/Button/index.d.ts +2 -0
- package/components/core/Form/Form.d.ts +5 -0
- package/components/core/Form/Form.types.d.ts +24 -0
- package/components/core/Form/StyledForm.d.ts +2 -0
- package/components/core/Form/constants.d.ts +1 -0
- package/components/core/Form/index.d.ts +2 -0
- package/components/core/Form/utils.d.ts +3 -0
- package/components/core/Icon/Icon.d.ts +5 -0
- package/components/core/Icon/Icon.types.d.ts +8 -0
- package/components/core/Icon/constants.d.ts +1 -0
- package/components/core/Icon/index.d.ts +2 -0
- package/components/core/Input/Input.d.ts +3 -0
- package/components/core/Input/Input.types.d.ts +68 -0
- package/components/core/Input/StyledInput.d.ts +3 -0
- package/components/core/Input/constants.d.ts +1 -0
- package/components/core/Input/index.d.ts +2 -0
- package/components/core/Label/Label.d.ts +5 -0
- package/components/core/Label/Label.types.d.ts +23 -0
- package/components/core/Label/StyledLabel.d.ts +2 -0
- package/components/core/Label/constants.d.ts +1 -0
- package/components/core/Label/index.d.ts +2 -0
- package/components/core/Link/Link.d.ts +4 -0
- package/components/core/Link/Link.types.d.ts +35 -0
- package/components/core/Link/StyledLink.d.ts +2 -0
- package/components/core/Link/constants.d.ts +1 -0
- package/components/core/Link/index.d.ts +2 -0
- package/components/core/List/List.d.ts +3 -0
- package/components/core/List/List.types.d.ts +12 -0
- package/components/core/List/StyledList.d.ts +3 -0
- package/components/core/List/constants.d.ts +1 -0
- package/components/core/List/index.d.ts +2 -0
- package/components/core/Loader/Loader.d.ts +4 -0
- package/components/core/Loader/Loader.types.d.ts +13 -0
- package/components/core/Loader/StyledLoader.d.ts +2 -0
- package/components/core/Loader/constants.d.ts +2 -0
- package/components/core/Loader/index.d.ts +2 -0
- package/components/core/Modal/Modal.d.ts +2 -0
- package/components/core/Modal/Modal.types.d.ts +12 -0
- package/components/core/Modal/StyledModal.d.ts +7 -0
- package/components/core/Modal/constants.d.ts +1 -0
- package/components/core/Modal/index.d.ts +2 -0
- package/components/core/Portal/Portal.d.ts +4 -0
- package/components/core/Portal/Portal.types.d.ts +7 -0
- package/components/core/Portal/constants.d.ts +1 -0
- package/components/core/Portal/index.d.ts +2 -0
- package/components/core/Skeleton/Skeleton.d.ts +4 -0
- package/components/core/Skeleton/Skeleton.types.d.ts +19 -0
- package/components/core/Skeleton/StyledSkeleton.d.ts +2 -0
- package/components/core/Skeleton/constants.d.ts +2 -0
- package/components/core/Skeleton/index.d.ts +2 -0
- package/components/core/Snackbar/Snackbar.d.ts +2 -0
- package/components/core/Snackbar/Snackbar.types.d.ts +41 -0
- package/components/core/Snackbar/SnackbarManager.d.ts +3 -0
- package/components/core/Snackbar/StyledSnackbar.d.ts +13 -0
- package/components/core/Snackbar/constants.d.ts +8 -0
- package/components/core/Snackbar/index.d.ts +4 -0
- package/components/core/Switch/StyledSwitch.d.ts +2 -0
- package/components/core/Switch/Switch.d.ts +2 -0
- package/components/core/Switch/constants.d.ts +1 -0
- package/components/core/Switch/index.d.ts +2 -0
- package/components/core/Switch/types.d.ts +18 -0
- package/components/core/Textarea/StyledTextarea.d.ts +3 -0
- package/components/core/Textarea/Textarea.d.ts +3 -0
- package/components/core/Textarea/Textarea.types.d.ts +42 -0
- package/components/core/Textarea/TextareaWidget.d.ts +3 -0
- package/components/core/Textarea/constants.d.ts +1 -0
- package/components/core/Textarea/hooks/index.d.ts +2 -0
- package/components/core/Textarea/hooks/useDynamicHeightAdjustment.d.ts +2 -0
- package/components/core/Textarea/hooks/useResizeObserver.d.ts +2 -0
- package/components/core/Textarea/index.d.ts +3 -0
- package/components/core/Tooltip/StyledTooltip.d.ts +3 -0
- package/components/core/Tooltip/Tooltip.d.ts +3 -0
- package/components/core/Tooltip/Tooltip.types.d.ts +17 -0
- package/components/core/Tooltip/constants.d.ts +3 -0
- package/components/core/Tooltip/index.d.ts +1 -0
- package/components/core/Tooltip/utils.d.ts +22 -0
- package/components/core/Typography/StyledTypography.d.ts +2 -0
- package/components/core/Typography/Typography.d.ts +3 -0
- package/components/core/Typography/Typography.types.d.ts +58 -0
- package/components/core/Typography/constants.d.ts +3 -0
- package/components/core/Typography/index.d.ts +2 -0
- package/components/core/Typography/utils.d.ts +2 -0
- package/components/core/Wrapper/StyledWrapper.d.ts +2 -0
- package/components/core/Wrapper/Wrapper.d.ts +5 -0
- package/components/core/Wrapper/Wrapper.types.d.ts +8 -0
- package/components/core/Wrapper/constants.d.ts +1 -0
- package/components/core/Wrapper/index.d.ts +2 -0
- package/components/core/index.d.ts +19 -0
- package/components/core/types/common.types.d.ts +24 -0
- package/components/core/types/cursors.types.d.ts +14 -0
- package/components/core/types/index.types.d.ts +3 -0
- package/components/core/types/roles.types.d.ts +3 -0
- package/components/domainSpecific/Stepper/Stepper.d.ts +2 -0
- package/components/domainSpecific/Stepper/Stepper.types.d.ts +39 -0
- package/components/domainSpecific/Stepper/StyledStepper.d.ts +6 -0
- package/components/domainSpecific/Stepper/constants.d.ts +1 -0
- package/components/domainSpecific/Stepper/index.d.ts +2 -0
- package/components/domainSpecific/Stepper/utils.d.ts +2 -0
- package/components/domainSpecific/Tabs/StyledTabs.d.ts +7 -0
- package/components/domainSpecific/Tabs/Tabs.d.ts +2 -0
- package/components/domainSpecific/Tabs/Tabs.types.d.ts +19 -0
- package/components/domainSpecific/Tabs/constants.d.ts +6 -0
- package/components/domainSpecific/Tabs/index.d.ts +2 -0
- package/components/domainSpecific/index.d.ts +2 -0
- package/components/index.d.ts +4 -0
- package/components/index.types.d.ts +37 -0
- package/components/layout/Column/Column.d.ts +4 -0
- package/components/layout/Column/Column.types.d.ts +5 -0
- package/components/layout/Column/StyledColumn.d.ts +2 -0
- package/components/layout/Column/constants.d.ts +1 -0
- package/components/layout/Column/index.d.ts +1 -0
- package/components/layout/FlexContainer/FlexContainer.d.ts +5 -0
- package/components/layout/FlexContainer/FlexContainer.types.d.ts +9 -0
- package/components/layout/FlexContainer/StyledFlexContainer.d.ts +2 -0
- package/components/layout/FlexContainer/constants.d.ts +1 -0
- package/components/layout/FlexContainer/index.d.ts +2 -0
- package/components/layout/FlexContainer/utils.d.ts +2 -0
- package/components/layout/Row/Row.d.ts +5 -0
- package/components/layout/Row/Row.types.d.ts +5 -0
- package/components/layout/Row/StyledRow.d.ts +2 -0
- package/components/layout/Row/constants.d.ts +1 -0
- package/components/layout/Row/index.d.ts +1 -0
- package/components/layout/index.d.ts +4 -0
- package/components/layout/index.types.d.ts +1 -0
- package/components/layout/utils.d.ts +4 -0
- package/constants/index.d.ts +2 -0
- package/constants/keyboard.d.ts +3 -0
- package/constants/positioning.d.ts +6 -0
- package/constants/timers.d.ts +2 -0
- package/hooks/index.d.ts +1 -0
- package/hooks/useAutoFocus/index.d.ts +1 -0
- package/hooks/useAutoFocus/useAutoFocus.d.ts +2 -0
- package/hooks/useTheme/index.d.ts +3 -0
- package/hooks/useTheme/useTheme.d.ts +4 -0
- package/hooks/useTheme/useTheme.types.d.ts +14 -0
- package/index.d.ts +3 -0
- package/index.js +124 -0
- package/index.mjs +8627 -0
- package/package.json +14 -0
- package/style.css +1 -0
- package/tokens/animations.d.ts +41 -0
- package/tokens/borders.d.ts +8 -0
- package/tokens/breadcrumbs.d.ts +23 -0
- package/tokens/button.d.ts +109 -0
- package/tokens/colors.d.ts +150 -0
- package/tokens/column.d.ts +5 -0
- package/tokens/cursors.d.ts +16 -0
- package/tokens/defaultTheme.d.ts +1425 -0
- package/tokens/display.d.ts +15 -0
- package/tokens/flexContainer.d.ts +7 -0
- package/tokens/font.d.ts +47 -0
- package/tokens/form.d.ts +3 -0
- package/tokens/icon.d.ts +28 -0
- package/tokens/index.d.ts +1339 -0
- package/tokens/input.d.ts +66 -0
- package/tokens/label.d.ts +18 -0
- package/tokens/link.d.ts +64 -0
- package/tokens/list.d.ts +76 -0
- package/tokens/loader.d.ts +42 -0
- package/tokens/modal.d.ts +59 -0
- package/tokens/radius.d.ts +10 -0
- package/tokens/reset.d.ts +1 -0
- package/tokens/row.d.ts +5 -0
- package/tokens/shadow.d.ts +10 -0
- package/tokens/skeleton.d.ts +24 -0
- package/tokens/snackbar.d.ts +198 -0
- package/tokens/spacing.d.ts +9 -0
- package/tokens/stepper.d.ts +110 -0
- package/tokens/switch.d.ts +8 -0
- package/tokens/tabs.d.ts +76 -0
- package/tokens/textarea.d.ts +55 -0
- package/tokens/tooltip.d.ts +54 -0
- package/tokens/types/index.types.d.ts +8 -0
- package/tokens/typography.d.ts +116 -0
- package/tokens/utils.d.ts +17 -0
- package/tokens/values.d.ts +28 -0
- package/tokens/wrapper.d.ts +29 -0
- package/types/accesability.d.ts +5 -0
- package/types/index.d.ts +2 -0
- package/types/misc.d.ts +6 -0
- package/utils/getCharCount.d.ts +3 -0
- package/utils/index.d.ts +2 -0
- package/utils/uniqueKeys.d.ts +1 -0
package/tokens/tabs.d.ts
ADDED
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
export declare const tabs: {
|
|
2
|
+
default: {
|
|
3
|
+
display: string;
|
|
4
|
+
flexDirection: string;
|
|
5
|
+
width: string;
|
|
6
|
+
};
|
|
7
|
+
header: {
|
|
8
|
+
display: string;
|
|
9
|
+
flexDirection: string;
|
|
10
|
+
position: string;
|
|
11
|
+
'&::after': {
|
|
12
|
+
content: string;
|
|
13
|
+
position: string;
|
|
14
|
+
width: string;
|
|
15
|
+
bottom: number;
|
|
16
|
+
zIndex: number;
|
|
17
|
+
borderBottom: string;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
label: {
|
|
21
|
+
default: {
|
|
22
|
+
fontWeight: number;
|
|
23
|
+
fontSize: string;
|
|
24
|
+
color: string;
|
|
25
|
+
transition: string;
|
|
26
|
+
borderBottom: string;
|
|
27
|
+
'&:hover': {
|
|
28
|
+
".Tabs__noticeCounter": {
|
|
29
|
+
backgroundColor: string;
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
active: {
|
|
34
|
+
borderBottomColor: string;
|
|
35
|
+
};
|
|
36
|
+
disabled: {
|
|
37
|
+
default: {
|
|
38
|
+
'&:hover': {
|
|
39
|
+
".Tabs__noticeCounter": {
|
|
40
|
+
backgroundColor: string;
|
|
41
|
+
};
|
|
42
|
+
};
|
|
43
|
+
".Tabs__noticeCounter": {
|
|
44
|
+
color: string;
|
|
45
|
+
};
|
|
46
|
+
borderBottom: string;
|
|
47
|
+
};
|
|
48
|
+
active: {
|
|
49
|
+
borderBottomWidth: string;
|
|
50
|
+
borderBottomColor: string;
|
|
51
|
+
};
|
|
52
|
+
};
|
|
53
|
+
};
|
|
54
|
+
panelsWrapper: {};
|
|
55
|
+
panel: {};
|
|
56
|
+
noticeCounter: {
|
|
57
|
+
default: {
|
|
58
|
+
width?: number | undefined;
|
|
59
|
+
height?: number | undefined;
|
|
60
|
+
display: string;
|
|
61
|
+
alignItems: string;
|
|
62
|
+
justifyContent: string;
|
|
63
|
+
backgroundColor: string;
|
|
64
|
+
color: string;
|
|
65
|
+
fontWeight: number;
|
|
66
|
+
fontSize: string;
|
|
67
|
+
borderRadius: string;
|
|
68
|
+
};
|
|
69
|
+
active: {
|
|
70
|
+
backgroundColor: string;
|
|
71
|
+
};
|
|
72
|
+
disabled: {
|
|
73
|
+
backgroundColor: string;
|
|
74
|
+
};
|
|
75
|
+
};
|
|
76
|
+
};
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
export declare const textarea: {
|
|
2
|
+
default: {};
|
|
3
|
+
variants: {
|
|
4
|
+
default: {};
|
|
5
|
+
outlined: {
|
|
6
|
+
'&:hover': {};
|
|
7
|
+
'&:active': {};
|
|
8
|
+
'&:focus': {};
|
|
9
|
+
'&:disabled': {};
|
|
10
|
+
'&:read-only': {};
|
|
11
|
+
primary: {
|
|
12
|
+
'&:hover': {};
|
|
13
|
+
'&:active': {};
|
|
14
|
+
'&:focus': {};
|
|
15
|
+
'&:disabled': {};
|
|
16
|
+
'&:read-only': {};
|
|
17
|
+
};
|
|
18
|
+
secondary: {
|
|
19
|
+
'&:hover': {};
|
|
20
|
+
'&:active': {};
|
|
21
|
+
'&:focus': {};
|
|
22
|
+
'&:disabled': {};
|
|
23
|
+
'&:read-only': {};
|
|
24
|
+
};
|
|
25
|
+
default: {
|
|
26
|
+
'&:hover': {};
|
|
27
|
+
'&:active': {};
|
|
28
|
+
'&:focus': {};
|
|
29
|
+
'&:disabled': {};
|
|
30
|
+
'&:read-only': {};
|
|
31
|
+
};
|
|
32
|
+
success: {
|
|
33
|
+
'&:hover': {};
|
|
34
|
+
'&:active': {};
|
|
35
|
+
'&:focus': {};
|
|
36
|
+
'&:disabled': {};
|
|
37
|
+
'&:read-only': {};
|
|
38
|
+
};
|
|
39
|
+
warning: {
|
|
40
|
+
'&:hover': {};
|
|
41
|
+
'&:active': {};
|
|
42
|
+
'&:focus': {};
|
|
43
|
+
'&:disabled': {};
|
|
44
|
+
'&:read-only': {};
|
|
45
|
+
};
|
|
46
|
+
error: {
|
|
47
|
+
'&:hover': {};
|
|
48
|
+
'&:active': {};
|
|
49
|
+
'&:focus': {};
|
|
50
|
+
'&:disabled': {};
|
|
51
|
+
'&:read-only': {};
|
|
52
|
+
};
|
|
53
|
+
};
|
|
54
|
+
};
|
|
55
|
+
};
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
export declare const tooltip: {
|
|
2
|
+
default: {
|
|
3
|
+
position: "absolute";
|
|
4
|
+
display: string;
|
|
5
|
+
backgroundColor: string;
|
|
6
|
+
padding: string;
|
|
7
|
+
whiteSpace: string;
|
|
8
|
+
'&::after': {
|
|
9
|
+
position: "absolute";
|
|
10
|
+
content: string;
|
|
11
|
+
border: string;
|
|
12
|
+
};
|
|
13
|
+
'&.tooltip-bottom': {
|
|
14
|
+
transform: string;
|
|
15
|
+
'&::after': {
|
|
16
|
+
top: number;
|
|
17
|
+
left: string;
|
|
18
|
+
borderLeftColor: string;
|
|
19
|
+
borderTopColor: string;
|
|
20
|
+
transform: string;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
'&.tooltip-top': {
|
|
24
|
+
transform: string;
|
|
25
|
+
'&::after': {
|
|
26
|
+
bottom: number;
|
|
27
|
+
left: string;
|
|
28
|
+
borderRightColor: string;
|
|
29
|
+
borderBottomColor: string;
|
|
30
|
+
transform: string;
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
'&.tooltip-left': {
|
|
34
|
+
transform: string;
|
|
35
|
+
'&::after': {
|
|
36
|
+
right: number;
|
|
37
|
+
top: string;
|
|
38
|
+
borderRightColor: string;
|
|
39
|
+
borderTopColor: string;
|
|
40
|
+
transform: string;
|
|
41
|
+
};
|
|
42
|
+
};
|
|
43
|
+
'&.tooltip-right': {
|
|
44
|
+
transform: string;
|
|
45
|
+
'&::after': {
|
|
46
|
+
left: number;
|
|
47
|
+
top: string;
|
|
48
|
+
borderLeftColor: string;
|
|
49
|
+
borderBottomColor: string;
|
|
50
|
+
transform: string;
|
|
51
|
+
};
|
|
52
|
+
};
|
|
53
|
+
};
|
|
54
|
+
};
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
export declare const typography: {
|
|
2
|
+
base: {
|
|
3
|
+
fontFamily: string;
|
|
4
|
+
};
|
|
5
|
+
inherit: {
|
|
6
|
+
fontSize: string;
|
|
7
|
+
fontWeight: string;
|
|
8
|
+
lineHeight: string;
|
|
9
|
+
};
|
|
10
|
+
light: {
|
|
11
|
+
fontWeight: number;
|
|
12
|
+
};
|
|
13
|
+
normal: {
|
|
14
|
+
fontWeight: number;
|
|
15
|
+
};
|
|
16
|
+
semibold: {
|
|
17
|
+
fontWeight: number;
|
|
18
|
+
};
|
|
19
|
+
strong: {
|
|
20
|
+
fontWeight: number;
|
|
21
|
+
};
|
|
22
|
+
i: {
|
|
23
|
+
fontStyle: string;
|
|
24
|
+
};
|
|
25
|
+
uppercase: {
|
|
26
|
+
textTransform: string;
|
|
27
|
+
};
|
|
28
|
+
lowercase: {
|
|
29
|
+
textTransform: string;
|
|
30
|
+
};
|
|
31
|
+
underline: {
|
|
32
|
+
textDecoration: string;
|
|
33
|
+
};
|
|
34
|
+
strike: {
|
|
35
|
+
textDecoration: string;
|
|
36
|
+
};
|
|
37
|
+
h1: {
|
|
38
|
+
fontSize: string;
|
|
39
|
+
fontWeight: number;
|
|
40
|
+
lineHeight: string;
|
|
41
|
+
marginTop: string;
|
|
42
|
+
marginBottom: string;
|
|
43
|
+
};
|
|
44
|
+
h2: {
|
|
45
|
+
fontSize: string;
|
|
46
|
+
fontWeight: number;
|
|
47
|
+
lineHeight: string;
|
|
48
|
+
marginTop: string;
|
|
49
|
+
marginBottom: string;
|
|
50
|
+
};
|
|
51
|
+
h3: {
|
|
52
|
+
fontSize: string;
|
|
53
|
+
fontWeight: number;
|
|
54
|
+
lineHeight: string;
|
|
55
|
+
marginTop: string;
|
|
56
|
+
marginBottom: string;
|
|
57
|
+
};
|
|
58
|
+
h4: {
|
|
59
|
+
fontSize: string;
|
|
60
|
+
fontWeight: number;
|
|
61
|
+
lineHeight: string;
|
|
62
|
+
marginTop: string;
|
|
63
|
+
marginBottom: string;
|
|
64
|
+
};
|
|
65
|
+
h5: {
|
|
66
|
+
fontSize: string;
|
|
67
|
+
fontWeight: number;
|
|
68
|
+
lineHeight: string;
|
|
69
|
+
marginTop: string;
|
|
70
|
+
marginBottom: string;
|
|
71
|
+
};
|
|
72
|
+
h6: {
|
|
73
|
+
fontSize: string;
|
|
74
|
+
fontWeight: number;
|
|
75
|
+
lineHeight: string;
|
|
76
|
+
marginTop: string;
|
|
77
|
+
marginBottom: string;
|
|
78
|
+
};
|
|
79
|
+
p: {
|
|
80
|
+
fontSize: string;
|
|
81
|
+
fontWeight: number;
|
|
82
|
+
lineHeight: string;
|
|
83
|
+
};
|
|
84
|
+
small: {
|
|
85
|
+
fontSize: string;
|
|
86
|
+
fontWeight: number;
|
|
87
|
+
lineHeight: string;
|
|
88
|
+
};
|
|
89
|
+
caption: {
|
|
90
|
+
fontSize: string;
|
|
91
|
+
fontWeight: number;
|
|
92
|
+
lineHeight: string;
|
|
93
|
+
};
|
|
94
|
+
span: {
|
|
95
|
+
xs: {
|
|
96
|
+
fontSize: string;
|
|
97
|
+
lineHeight: string;
|
|
98
|
+
};
|
|
99
|
+
sm: {
|
|
100
|
+
fontSize: string;
|
|
101
|
+
lineHeight: string;
|
|
102
|
+
};
|
|
103
|
+
md: {
|
|
104
|
+
fontSize: string;
|
|
105
|
+
lineHeight: string;
|
|
106
|
+
};
|
|
107
|
+
lg: {
|
|
108
|
+
fontSize: string;
|
|
109
|
+
lineHeight: string;
|
|
110
|
+
};
|
|
111
|
+
xl: {
|
|
112
|
+
fontSize: string;
|
|
113
|
+
lineHeight: string;
|
|
114
|
+
};
|
|
115
|
+
};
|
|
116
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { CSSObject } from 'styled-components';
|
|
2
|
+
import { SpacingKey, Unit } from './types/index.types';
|
|
3
|
+
import { colors } from './colors';
|
|
4
|
+
import { EnumOrPrimitive } from '../types';
|
|
5
|
+
export declare const generateStateStyles: (color: keyof typeof colors) => {
|
|
6
|
+
focus: {
|
|
7
|
+
outline: string;
|
|
8
|
+
};
|
|
9
|
+
disabled: {
|
|
10
|
+
cursor: string;
|
|
11
|
+
border: string;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
export declare const convertJsonToCssKeyframe: (keyframeJson?: Record<string, CSSObject>) => import('styled-components/dist/models/Keyframes').default;
|
|
15
|
+
export declare const convertToUnit: (value: string | number, unit?: EnumOrPrimitive<Unit>) => string;
|
|
16
|
+
export declare const getSpacing: (sizeKey?: EnumOrPrimitive<SpacingKey> | number, unit?: EnumOrPrimitive<Unit>) => string | number;
|
|
17
|
+
export declare const hexToRgba: (hex: string, alpha?: number) => string;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
export declare const values: {
|
|
2
|
+
borderThin: string;
|
|
3
|
+
borderMedium: string;
|
|
4
|
+
borderThick: string;
|
|
5
|
+
borderNone: string;
|
|
6
|
+
border: {
|
|
7
|
+
radius: {
|
|
8
|
+
none: string;
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
screenSmall: string;
|
|
12
|
+
screenMedium: string;
|
|
13
|
+
screenLarge: string;
|
|
14
|
+
screenXLarge: string;
|
|
15
|
+
responsiveSmall: string;
|
|
16
|
+
responsiveMedium: string;
|
|
17
|
+
responsiveLarge: string;
|
|
18
|
+
responsiveXLarge: string;
|
|
19
|
+
zIndex: {
|
|
20
|
+
snackbar: number;
|
|
21
|
+
};
|
|
22
|
+
transitions: {
|
|
23
|
+
stepper: {
|
|
24
|
+
separator: string;
|
|
25
|
+
stepIcon: string;
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
export declare const wrapper: {
|
|
2
|
+
default: {
|
|
3
|
+
justifyContent: string;
|
|
4
|
+
alignItems: string;
|
|
5
|
+
backdropFilter: string;
|
|
6
|
+
backgroundColor: string;
|
|
7
|
+
};
|
|
8
|
+
inline: {
|
|
9
|
+
display: string;
|
|
10
|
+
};
|
|
11
|
+
section: {
|
|
12
|
+
display: string;
|
|
13
|
+
top: number;
|
|
14
|
+
left: number;
|
|
15
|
+
width: string;
|
|
16
|
+
height: string;
|
|
17
|
+
position: string;
|
|
18
|
+
zIndex: number;
|
|
19
|
+
};
|
|
20
|
+
fullPage: {
|
|
21
|
+
display: string;
|
|
22
|
+
position: string;
|
|
23
|
+
top: number;
|
|
24
|
+
left: number;
|
|
25
|
+
width: string;
|
|
26
|
+
height: string;
|
|
27
|
+
zIndex: number;
|
|
28
|
+
};
|
|
29
|
+
};
|
package/types/index.d.ts
ADDED
package/types/misc.d.ts
ADDED
package/utils/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const generateUniqueId: (id?: string | number, prefix?: string) => string;
|