gd-design-library 1.0.2 → 1.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/README.md +2 -2
- package/ai/README.md +210 -16
- package/ai/schemas/components/Accordion.d.ts +84 -0
- package/ai/schemas/components/Button.d.ts +12 -0
- package/ai/schemas/components/ChatContainer.d.ts +0 -8
- package/ai/schemas/components/Column.d.ts +5 -5
- package/ai/schemas/components/InputFile.d.ts +17 -5
- package/ai/schemas/components/Menu.d.ts +37 -0
- package/ai/schemas/components/Row.d.ts +6 -6
- package/ai/schemas/components/Scroll.d.ts +7 -0
- package/ai/schemas/components/Typography.d.ts +0 -21
- package/assets/icons/account_circle.d.ts +1 -3
- package/assets/icons/account_circle.js +7 -14
- package/assets/icons/arrow-down.d.ts +2 -3
- package/assets/icons/arrow-down.js +6 -11
- package/assets/icons/arrow-forward.d.ts +1 -3
- package/assets/icons/arrow-forward.js +6 -13
- package/assets/icons/attachment.d.ts +1 -3
- package/assets/icons/attachment.js +7 -14
- package/assets/icons/check.d.ts +1 -3
- package/assets/icons/check.js +5 -11
- package/assets/icons/chevron-left.d.ts +1 -3
- package/assets/icons/chevron-left.js +7 -14
- package/assets/icons/chevron-right.d.ts +1 -3
- package/assets/icons/chevron-right.js +6 -13
- package/assets/icons/content-copy.d.ts +1 -3
- package/assets/icons/content-copy.js +7 -14
- package/assets/icons/delete_outlined.d.ts +1 -3
- package/assets/icons/delete_outlined.js +5 -12
- package/assets/icons/dot.d.ts +1 -3
- package/assets/icons/dot.js +5 -11
- package/assets/icons/error_outline.d.ts +1 -4
- package/assets/icons/error_outline.js +6 -18
- package/assets/icons/eye.d.ts +1 -3
- package/assets/icons/eye.js +7 -14
- package/assets/icons/file-copy.d.ts +1 -3
- package/assets/icons/file-copy.js +7 -13
- package/assets/icons/filter.d.ts +1 -3
- package/assets/icons/filter.js +6 -13
- package/assets/icons/folder.d.ts +1 -3
- package/assets/icons/folder.js +6 -13
- package/assets/icons/folderOpen.d.ts +1 -3
- package/assets/icons/folderOpen.js +7 -14
- package/assets/icons/home.d.ts +1 -3
- package/assets/icons/home.js +6 -13
- package/assets/icons/local_shipping.d.ts +1 -3
- package/assets/icons/local_shipping.js +4 -11
- package/assets/icons/minus.d.ts +1 -3
- package/assets/icons/minus.js +7 -13
- package/assets/icons/mobile_menu_button.d.ts +1 -3
- package/assets/icons/mobile_menu_button.js +7 -14
- package/assets/icons/paymentCard.d.ts +1 -3
- package/assets/icons/paymentCard.js +6 -13
- package/assets/icons/plus.d.ts +1 -3
- package/assets/icons/plus.js +5 -11
- package/assets/icons/portrait.d.ts +1 -3
- package/assets/icons/portrait.js +5 -12
- package/assets/icons/processing.d.ts +1 -3
- package/assets/icons/processing.js +6 -13
- package/assets/icons/ruler.d.ts +1 -3
- package/assets/icons/ruler.js +6 -13
- package/assets/icons/search.d.ts +1 -3
- package/assets/icons/search.js +6 -13
- package/assets/icons/shopping_bag.d.ts +1 -3
- package/assets/icons/shopping_bag.js +7 -14
- package/assets/icons/slash.d.ts +1 -3
- package/assets/icons/slash.js +6 -13
- package/assets/icons/star.d.ts +1 -3
- package/assets/icons/star.js +6 -12
- package/assets/icons/starOutlined.d.ts +1 -3
- package/assets/icons/starOutlined.js +5 -11
- package/assets/icons/toast_error.d.ts +1 -3
- package/assets/icons/toast_error.js +9 -15
- package/assets/icons/toast_info.d.ts +1 -3
- package/assets/icons/toast_info.js +7 -13
- package/assets/icons/toast_warning.d.ts +1 -3
- package/assets/icons/toast_warning.js +7 -13
- package/assets/icons/upload.d.ts +1 -3
- package/assets/icons/upload.js +6 -13
- package/assets/icons/volume-up.d.ts +1 -3
- package/assets/icons/volume-up.js +6 -13
- package/assets/icons/wifiTethering.d.ts +1 -3
- package/assets/icons/wifiTethering.js +4 -11
- package/components/core/Button/Button.js +30 -27
- package/components/core/Button/Button.types.d.ts +2 -2
- package/components/core/Button/ButtonStyled.js +40 -39
- package/components/core/Dropdown/Dropdown.d.ts +1 -1
- package/components/core/Dropdown/Dropdown.js +16 -16
- package/components/core/Dropdown/Dropdown.types.d.ts +3 -3
- package/components/core/Dropdown/DropdownStyled.js +13 -14
- package/components/core/Icon/Icon.js +41 -33
- package/components/core/Icon/Icon.types.d.ts +2 -1
- package/components/core/Icon/constants.d.ts +37 -109
- package/components/core/Input/Input.d.ts +1 -1
- package/components/core/InputFile/InputFile.d.ts +0 -32
- package/components/core/InputFile/InputFile.js +47 -33
- package/components/core/InputFile/InputFileStyled.js +24 -22
- package/components/core/Loader/Loader.js +19 -17
- package/components/core/Loader/Loader.types.d.ts +3 -1
- package/components/core/Loader/LoaderStyled.js +34 -30
- package/components/core/Menu/Menu.d.ts +2 -2
- package/components/core/Menu/Menu.js +113 -93
- package/components/core/Menu/Menu.types.d.ts +16 -11
- package/components/core/Menu/MenuStyled.d.ts +1 -1
- package/components/core/Menu/constants.js +4 -12
- package/components/core/Modal/Modal.js +60 -36
- package/components/core/Modal/ModalStyled.js +21 -22
- package/components/core/Scroll/Scroll.d.ts +6 -0
- package/components/core/Scroll/Scroll.js +53 -31
- package/components/core/Scroll/Scroll.types.d.ts +5 -0
- package/components/core/Scroll/ScrollBar.js +45 -43
- package/components/core/Scroll/ScrollStyled.js +46 -42
- package/components/core/Scroll/constants.d.ts +2 -0
- package/components/core/Scroll/constants.js +6 -4
- package/components/core/Select/Select.js +162 -134
- package/components/core/Select/Select.types.d.ts +2 -4
- package/components/core/Snackbar/Snackbar.js +60 -37
- package/components/core/Snackbar/Snackbar.types.d.ts +1 -2
- package/components/core/Snackbar/SnackbarManager.js +45 -30
- package/components/core/Snackbar/SnackbarStyled.d.ts +5 -5
- package/components/core/Snackbar/SnackbarStyled.js +111 -101
- package/components/core/Textarea/Textarea.d.ts +4 -0
- package/components/core/Tooltip/Tooltip.js +68 -44
- package/components/core/Tooltip/TooltipStyled.js +26 -27
- package/components/core/Tooltip/utils.js +47 -45
- package/components/core/Typography/Typography.js +18 -18
- package/components/core/Typography/Typography.types.d.ts +3 -3
- package/components/core/Typography/TypographyStyled.js +28 -29
- package/components/domainSpecific/Accordion/Accordion.d.ts +1 -1
- package/components/domainSpecific/Accordion/Accordion.js +19 -17
- package/components/domainSpecific/Accordion/Accordion.types.d.ts +7 -4
- package/components/domainSpecific/Accordion/AccordionContent/AccordionContent.d.ts +1 -1
- package/components/domainSpecific/Accordion/AccordionContent/AccordionContent.js +13 -12
- package/components/domainSpecific/Accordion/AccordionHeader/AccordionHeader.d.ts +1 -1
- package/components/domainSpecific/Accordion/AccordionHeader/AccordionHeader.js +15 -14
- package/components/domainSpecific/Accordion/AccordionItem/AccordionItem.d.ts +1 -1
- package/components/domainSpecific/Accordion/AccordionItem/AccordionItem.js +18 -16
- package/components/domainSpecific/Accordion/AccordionStyled.js +44 -35
- package/components/domainSpecific/Card/Card.js +31 -27
- package/components/domainSpecific/Card/CardTitle/constants.js +4 -4
- package/components/domainSpecific/Header/Header.js +4 -4
- package/components/domainSpecific/SearchModal/SearchModal.js +0 -1
- package/components/domainSpecific/SearchModal/SearchModal.types.d.ts +1 -1
- package/components/index.types.d.ts +1 -0
- package/components/layout/ChatContainer/ChatContainer.d.ts +1 -1
- package/components/layout/ChatContainer/ChatContainer.js +58 -41
- package/components/layout/ChatContainer/ChatContainer.types.d.ts +8 -5
- package/components/layout/ChatContainer/ChatContainerStyled.d.ts +2 -0
- package/components/layout/ChatContainer/ChatContainerStyled.js +105 -84
- package/components/layout/Column/Column.types.d.ts +3 -1
- package/components/layout/Column/ColumnStyled.js +23 -23
- package/components/layout/FlexContainer/FlexContainerStyled.js +7 -8
- package/components/layout/Row/Row.d.ts +1 -1
- package/components/layout/Row/Row.js +20 -20
- package/components/layout/Row/Row.types.d.ts +3 -1
- package/components/layout/Row/RowStyled.js +26 -26
- package/constants/index.d.ts +0 -1
- package/hooks/index.d.ts +1 -0
- package/hooks/useLogger/NoOpLogger.d.ts +11 -0
- package/hooks/useLogger/NoOpLogger.js +15 -0
- package/hooks/useLogger/index.d.ts +2 -0
- package/hooks/useLogger/useLogger.d.ts +4 -0
- package/hooks/useLogger/useLogger.js +27 -0
- package/hooks/useLogger/useLogger.types.d.ts +30 -0
- package/hooks/useTheme/NoOpTheme.d.ts +4050 -0
- package/hooks/useTheme/NoOpTheme.js +15 -0
- package/hooks/useTheme/useTheme.d.ts +3 -4
- package/hooks/useTheme/useTheme.js +62 -41
- package/hooks/useTheme/useTheme.types.d.ts +3 -2
- package/index.d.ts +4 -0
- package/index.js +354 -350
- package/llms.txt +39 -19
- package/package.json +1 -1
- package/tokens/accordion.d.ts +9 -3
- package/tokens/accordion.js +14 -11
- package/tokens/button.d.ts +17 -19
- package/tokens/button.js +54 -56
- package/tokens/card.d.ts +2 -3
- package/tokens/card.js +50 -53
- package/tokens/carousel.d.ts +2 -2
- package/tokens/carousel.js +8 -9
- package/tokens/chat.d.ts +69 -48
- package/tokens/chat.js +86 -68
- package/tokens/constants.d.ts +0 -1
- package/tokens/constants.js +1 -1
- package/tokens/defaultTheme.d.ts +199 -112
- package/tokens/defaultTheme.js +27 -25
- package/tokens/header.d.ts +1 -1
- package/tokens/header.js +3 -4
- package/tokens/index.d.ts +175 -104
- package/tokens/index.js +102 -101
- package/tokens/input.d.ts +2 -2
- package/tokens/input.js +25 -26
- package/tokens/inputfile.d.ts +1 -1
- package/tokens/inputfile.js +4 -4
- package/tokens/link.d.ts +5 -0
- package/tokens/loader.d.ts +3 -0
- package/tokens/loader.js +3 -0
- package/tokens/menu.d.ts +1 -0
- package/tokens/menu.js +1 -0
- package/tokens/modal.d.ts +6 -4
- package/tokens/modal.js +42 -60
- package/tokens/scroll.d.ts +19 -2
- package/tokens/scroll.js +23 -7
- package/tokens/select.d.ts +9 -7
- package/tokens/select.js +30 -29
- package/tokens/snackbar.d.ts +36 -20
- package/tokens/snackbar.js +92 -93
- package/tokens/stepper.d.ts +1 -1
- package/tokens/stepper.js +3 -3
- package/tokens/tabs.d.ts +1 -1
- package/tokens/tabs.js +1 -1
- package/tokens/textarea.d.ts +4 -0
- package/tokens/tooltip.d.ts +5 -1
- package/tokens/tooltip.js +23 -21
- package/tokens/typography.js +114 -116
- package/tokens/values.d.ts +5 -1
- package/tokens/values.js +12 -8
- package/tokens/wrapper.d.ts +2 -2
- package/tokens/wrapper.js +7 -7
- package/tokens/zIndex.d.ts +9 -0
- package/tokens/zIndex.js +12 -0
- package/types/index.d.ts +0 -1
- package/types/styles.d.ts +1 -0
- package/utils/helpers.js +14 -15
- package/CHANGELOG.md +0 -177
- package/constants/positioning.d.ts +0 -9
- package/constants/positioning.js +0 -11
- package/types/chat.d.ts +0 -5
- package/types/chat.js +0 -4
package/tokens/modal.js
CHANGED
|
@@ -1,63 +1,50 @@
|
|
|
1
|
-
import { hexToRgba as
|
|
2
|
-
import {
|
|
3
|
-
import { borders as
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
import { calculateJustify as i } from "../utils/layout.js";
|
|
7
|
-
import { get as o } from "../utils/helpers.js";
|
|
8
|
-
import { SizeVariant as a } from "../types/common.js";
|
|
9
|
-
import { TypographyVariant as d } from "../types/typography.js";
|
|
10
|
-
const k = {
|
|
1
|
+
import { hexToRgba as i, getSpacing as o } from "./utils.js";
|
|
2
|
+
import { display as n } from "./display.js";
|
|
3
|
+
import { borders as a } from "./borders.js";
|
|
4
|
+
import { get as t } from "../utils/helpers.js";
|
|
5
|
+
const c = {
|
|
11
6
|
header: {
|
|
12
7
|
default: {
|
|
13
|
-
display:
|
|
14
|
-
alignItems:
|
|
15
|
-
justifyContent:
|
|
16
|
-
padding: `${
|
|
17
|
-
|
|
18
|
-
var t, n;
|
|
19
|
-
return o(e, `font.size.${(t = d) == null ? void 0 : t.H6}`, `theme.font.size.${(n = d) == null ? void 0 : n.H6}`);
|
|
20
|
-
},
|
|
21
|
-
fontWeight: "bold",
|
|
22
|
-
borderBottom: (e) => s.generic({
|
|
8
|
+
display: "flex",
|
|
9
|
+
alignItems: "center",
|
|
10
|
+
justifyContent: "flex-end",
|
|
11
|
+
padding: `${o(4)} ${o(6)}`,
|
|
12
|
+
borderBottom: (e) => a.generic({
|
|
23
13
|
width: "1px",
|
|
24
|
-
color:
|
|
14
|
+
color: t(e, "colors.border.default", "theme.colors.border.default")
|
|
25
15
|
})
|
|
26
16
|
},
|
|
27
17
|
withTitle: {
|
|
28
|
-
justifyContent:
|
|
18
|
+
justifyContent: "space-between"
|
|
29
19
|
}
|
|
30
20
|
},
|
|
31
21
|
title: {
|
|
32
22
|
default: {
|
|
33
23
|
display: "flex",
|
|
34
24
|
alignItems: "center",
|
|
35
|
-
|
|
36
|
-
|
|
25
|
+
fontSize: (e) => t(e, "font.size.h6", "theme.font.size.h6"),
|
|
26
|
+
fontWeight: (e) => t(e, "font.weight.medium", "theme.font.weight.medium"),
|
|
27
|
+
color: (e) => t(e, "colors.text.default", "theme.colors.text.default"),
|
|
28
|
+
padding: (e) => t(e, "spacing.none", "theme.spacing.none"),
|
|
29
|
+
margin: (e) => t(e, "spacing.none", "theme.spacing.none")
|
|
37
30
|
}
|
|
38
31
|
},
|
|
39
32
|
body: {
|
|
40
33
|
default: {
|
|
41
|
-
padding: (e) =>
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
},
|
|
45
|
-
fontSize: (e) => {
|
|
46
|
-
var t, n;
|
|
47
|
-
return o(e, `font.size.${(t = d) == null ? void 0 : t.Body1}`, `theme.font.size.${(n = d) == null ? void 0 : n.Body1}`);
|
|
48
|
-
},
|
|
49
|
-
color: (e) => o(e, "colors.text.default", "theme.colors.text.default"),
|
|
34
|
+
padding: (e) => t(e, "spacing.lg", "theme.spacing.lg"),
|
|
35
|
+
fontSize: (e) => t(e, "font.size.p", "theme.font.size.p"),
|
|
36
|
+
color: (e) => t(e, "colors.text.default", "theme.colors.text.default"),
|
|
50
37
|
overflowY: "auto"
|
|
51
38
|
}
|
|
52
39
|
},
|
|
53
40
|
content: {
|
|
54
41
|
default: {
|
|
55
|
-
background: (e) =>
|
|
56
|
-
padding: (e) =>
|
|
57
|
-
borderRadius: (e) =>
|
|
58
|
-
boxShadow: (e) =>
|
|
42
|
+
background: (e) => t(e, "colors.bg.surface", "theme.colors.bg.surface"),
|
|
43
|
+
padding: (e) => t(e, "spacing.none", "theme.spacing.none"),
|
|
44
|
+
borderRadius: (e) => t(e, "values.border.radius.none", "theme.values.border.radius.none"),
|
|
45
|
+
boxShadow: (e) => t(e, "shadows.modal.default", "theme.shadows.modal.default"),
|
|
59
46
|
position: "relative",
|
|
60
|
-
display:
|
|
47
|
+
display: n.flex,
|
|
61
48
|
flexDirection: "column",
|
|
62
49
|
width: "100%",
|
|
63
50
|
maxWidth: "654px",
|
|
@@ -71,28 +58,22 @@ const k = {
|
|
|
71
58
|
},
|
|
72
59
|
footer: {
|
|
73
60
|
default: {
|
|
74
|
-
display:
|
|
75
|
-
justifyContent:
|
|
76
|
-
gap: (e) => {
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
},
|
|
80
|
-
padding: (e) => {
|
|
81
|
-
var t, n, l, c;
|
|
82
|
-
return `${o(e, `spacing.${(t = a) == null ? void 0 : t.Md}`, `theme.spacing.${(n = a) == null ? void 0 : n.Md}`)} ${o(e, `spacing.${(l = a) == null ? void 0 : l.Lg}`, `theme.spacing.${(c = a) == null ? void 0 : c.Lg}`)}`;
|
|
83
|
-
},
|
|
84
|
-
borderTop: (e) => s.generic({
|
|
61
|
+
display: n.flex,
|
|
62
|
+
justifyContent: "flex-end",
|
|
63
|
+
gap: (e) => `calc(${t(e, "spacing.xs", "theme.spacing.xs")} * 3)`,
|
|
64
|
+
padding: (e) => `${t(e, "spacing.md", "theme.spacing.md")} ${t(e, "spacing.lg", "theme.spacing.lg")}`,
|
|
65
|
+
borderTop: (e) => a.generic({
|
|
85
66
|
width: "1px",
|
|
86
|
-
color:
|
|
67
|
+
color: t(e, "colors.border.default", "theme.colors.border.default")
|
|
87
68
|
})
|
|
88
69
|
}
|
|
89
70
|
},
|
|
90
71
|
closeButton: {
|
|
91
72
|
default: {
|
|
92
|
-
background: (e) =>
|
|
93
|
-
border:
|
|
94
|
-
cursor:
|
|
95
|
-
padding: (e) =>
|
|
73
|
+
background: (e) => t(e, "colors.transparent", "theme.colors.transparent"),
|
|
74
|
+
border: "none",
|
|
75
|
+
cursor: "pointer",
|
|
76
|
+
padding: (e) => t(e, "spacing.none", "theme.spacing.none")
|
|
96
77
|
}
|
|
97
78
|
},
|
|
98
79
|
overlay: {
|
|
@@ -102,21 +83,22 @@ const k = {
|
|
|
102
83
|
left: 0,
|
|
103
84
|
width: "100vw",
|
|
104
85
|
height: "100vh",
|
|
105
|
-
background: (e) =>
|
|
106
|
-
display:
|
|
107
|
-
alignItems:
|
|
108
|
-
justifyContent:
|
|
109
|
-
zIndex:
|
|
86
|
+
background: (e) => i(t(e, "colors.neutral.black", "theme.colors.neutral.black"), 0.5),
|
|
87
|
+
display: "flex",
|
|
88
|
+
alignItems: "center",
|
|
89
|
+
justifyContent: "center",
|
|
90
|
+
zIndex: (e) => t(e, "zIndex.high", "theme.zIndex.high")
|
|
110
91
|
}
|
|
111
92
|
},
|
|
112
93
|
icons: {
|
|
113
94
|
close: {
|
|
114
95
|
name: "cross",
|
|
96
|
+
fill: "icon.black",
|
|
115
97
|
width: 14,
|
|
116
98
|
height: 14
|
|
117
99
|
}
|
|
118
100
|
}
|
|
119
101
|
};
|
|
120
102
|
export {
|
|
121
|
-
|
|
103
|
+
c as modal
|
|
122
104
|
};
|
package/tokens/scroll.d.ts
CHANGED
|
@@ -16,7 +16,7 @@ export declare const scroll: {
|
|
|
16
16
|
content: {
|
|
17
17
|
default: {
|
|
18
18
|
position: string;
|
|
19
|
-
zIndex:
|
|
19
|
+
zIndex: (theme: Record<symbol, unknown>) => string;
|
|
20
20
|
flex: number;
|
|
21
21
|
flexBasis: string;
|
|
22
22
|
height: string;
|
|
@@ -27,7 +27,7 @@ export declare const scroll: {
|
|
|
27
27
|
position: string;
|
|
28
28
|
top: string;
|
|
29
29
|
left: string;
|
|
30
|
-
zIndex:
|
|
30
|
+
zIndex: (theme: Record<symbol, unknown>) => string;
|
|
31
31
|
minWidth: string;
|
|
32
32
|
minHeight: string;
|
|
33
33
|
maxWidth: string;
|
|
@@ -61,6 +61,16 @@ export declare const scroll: {
|
|
|
61
61
|
right: string;
|
|
62
62
|
height: string;
|
|
63
63
|
};
|
|
64
|
+
autoHide: {
|
|
65
|
+
opacity: number;
|
|
66
|
+
transition: string;
|
|
67
|
+
};
|
|
68
|
+
autoHideScrolling: {
|
|
69
|
+
opacity: number;
|
|
70
|
+
'&:hover': {
|
|
71
|
+
opacity: number;
|
|
72
|
+
};
|
|
73
|
+
};
|
|
64
74
|
};
|
|
65
75
|
thumb: {
|
|
66
76
|
default: {
|
|
@@ -87,5 +97,12 @@ export declare const scroll: {
|
|
|
87
97
|
minWidth: (theme: Record<symbol, unknown>) => string;
|
|
88
98
|
transition: (theme: Record<symbol, unknown>) => string;
|
|
89
99
|
};
|
|
100
|
+
autoHide: {
|
|
101
|
+
opacity: number;
|
|
102
|
+
transition: string;
|
|
103
|
+
};
|
|
104
|
+
autoHideScrolling: {
|
|
105
|
+
opacity: number;
|
|
106
|
+
};
|
|
90
107
|
};
|
|
91
108
|
};
|
package/tokens/scroll.js
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import { display as
|
|
1
|
+
import { display as e } from "./display.js";
|
|
2
2
|
import { get as o } from "../utils/helpers.js";
|
|
3
|
-
|
|
4
|
-
const i = 8, s = {
|
|
3
|
+
const i = 8, r = {
|
|
5
4
|
container: {
|
|
6
5
|
default: {
|
|
7
6
|
position: "relative",
|
|
8
|
-
display:
|
|
7
|
+
display: e.flex,
|
|
9
8
|
overflow: "auto",
|
|
10
9
|
isolation: "isolate",
|
|
11
10
|
maxBlockSize: "100%",
|
|
@@ -19,7 +18,7 @@ const i = 8, s = {
|
|
|
19
18
|
content: {
|
|
20
19
|
default: {
|
|
21
20
|
position: "relative",
|
|
22
|
-
zIndex:
|
|
21
|
+
zIndex: (t) => o(t, "zIndex.zero", "theme.zIndex.zero"),
|
|
23
22
|
flex: 1,
|
|
24
23
|
flexBasis: "auto",
|
|
25
24
|
height: "max-content"
|
|
@@ -30,7 +29,7 @@ const i = 8, s = {
|
|
|
30
29
|
position: "sticky",
|
|
31
30
|
top: "0",
|
|
32
31
|
left: "0",
|
|
33
|
-
zIndex:
|
|
32
|
+
zIndex: (t) => o(t, "zIndex.first", "theme.zIndex.first"),
|
|
34
33
|
minWidth: "calc(100% - 1px)",
|
|
35
34
|
minHeight: "calc(100% - 1px)",
|
|
36
35
|
maxWidth: "calc(100% - 1px)",
|
|
@@ -63,6 +62,16 @@ const i = 8, s = {
|
|
|
63
62
|
bottom: 0,
|
|
64
63
|
right: `${i}px`,
|
|
65
64
|
height: `${i}px`
|
|
65
|
+
},
|
|
66
|
+
autoHide: {
|
|
67
|
+
opacity: 0,
|
|
68
|
+
transition: "opacity 0.2s ease-in-out"
|
|
69
|
+
},
|
|
70
|
+
autoHideScrolling: {
|
|
71
|
+
opacity: 0.2,
|
|
72
|
+
"&:hover": {
|
|
73
|
+
opacity: 1
|
|
74
|
+
}
|
|
66
75
|
}
|
|
67
76
|
},
|
|
68
77
|
thumb: {
|
|
@@ -89,9 +98,16 @@ const i = 8, s = {
|
|
|
89
98
|
height: `${i}px`,
|
|
90
99
|
minWidth: (t) => o(t, "spacing.md", "theme.spacing.md"),
|
|
91
100
|
transition: (t) => o(t, "values.transitions.scroll.thumb", "theme.values.transitions.scroll.thumb")
|
|
101
|
+
},
|
|
102
|
+
autoHide: {
|
|
103
|
+
opacity: 0,
|
|
104
|
+
transition: "opacity 0.2s ease-in-out"
|
|
105
|
+
},
|
|
106
|
+
autoHideScrolling: {
|
|
107
|
+
opacity: 1
|
|
92
108
|
}
|
|
93
109
|
}
|
|
94
110
|
};
|
|
95
111
|
export {
|
|
96
|
-
|
|
112
|
+
r as scroll
|
|
97
113
|
};
|
package/tokens/select.d.ts
CHANGED
|
@@ -26,7 +26,7 @@ export declare const select: {
|
|
|
26
26
|
listStyleType: string;
|
|
27
27
|
margin: (theme: Record<symbol, unknown>) => string;
|
|
28
28
|
padding: (theme: Record<symbol, unknown>) => string;
|
|
29
|
-
zIndex:
|
|
29
|
+
zIndex: (theme: Record<symbol, unknown>) => string;
|
|
30
30
|
overflowY: string;
|
|
31
31
|
};
|
|
32
32
|
button: {
|
|
@@ -74,11 +74,13 @@ export declare const select: {
|
|
|
74
74
|
};
|
|
75
75
|
};
|
|
76
76
|
};
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
77
|
+
icons: {
|
|
78
|
+
arrowIcon: {
|
|
79
|
+
name: string;
|
|
80
|
+
fill: string;
|
|
81
|
+
width: number;
|
|
82
|
+
height: number;
|
|
83
|
+
};
|
|
82
84
|
};
|
|
83
85
|
adornment: {
|
|
84
86
|
default: {
|
|
@@ -86,7 +88,7 @@ export declare const select: {
|
|
|
86
88
|
alignItems: string;
|
|
87
89
|
flexDirection: FlexDirection;
|
|
88
90
|
position: string;
|
|
89
|
-
zIndex:
|
|
91
|
+
zIndex: (theme: Record<symbol, unknown>) => string;
|
|
90
92
|
};
|
|
91
93
|
};
|
|
92
94
|
};
|
package/tokens/select.js
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { flexAlignItems as t, display as n } from "./display.js";
|
|
5
|
-
import { FlexDirection as p } from "../types/layout.js";
|
|
1
|
+
import { getSpacing as s } from "./utils.js";
|
|
2
|
+
import { borders as d } from "./borders.js";
|
|
3
|
+
import { flexAlignItems as t, display as r } from "./display.js";
|
|
6
4
|
import { get as o } from "../utils/helpers.js";
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
|
|
11
|
-
|
|
5
|
+
import { FlexDirection as f } from "../types/layout.js";
|
|
6
|
+
import { Cursors as n } from "../types/cursors.js";
|
|
7
|
+
import { ButtonVariant as p } from "../types/button.js";
|
|
8
|
+
import { TextAlign as m, TypographyVariant as i } from "../types/typography.js";
|
|
9
|
+
var a, l;
|
|
10
|
+
const v = {
|
|
12
11
|
default: {
|
|
13
12
|
display: "inline-block",
|
|
14
13
|
position: "relative"
|
|
@@ -30,46 +29,46 @@ const T = {
|
|
|
30
29
|
background: (e) => o(e, "colors.bg.surface", "theme.colors.bg.surface"),
|
|
31
30
|
boxShadow: (e) => o(e, 'shadows.box["3"]', 'theme.shadows.box["3"]'),
|
|
32
31
|
fontFamily: (e) => o(e, "font.family", "theme.font.family"),
|
|
33
|
-
fontSize: (e) => o(e, `font.size.${
|
|
32
|
+
fontSize: (e) => o(e, `font.size.${i.Body1}`, `theme.font.size.${i.Body1}`),
|
|
34
33
|
fontWeight: (e) => o(e, "font.weight.normal", "theme.font.weight.normal"),
|
|
35
34
|
listStyleType: "none",
|
|
36
35
|
margin: (e) => o(e, "spacing.none", "theme.spacing.none"),
|
|
37
36
|
padding: (e) => o(e, "spacing.none", "theme.spacing.none"),
|
|
38
|
-
zIndex:
|
|
37
|
+
zIndex: (e) => o(e, "zIndex.top", "theme.zIndex.top"),
|
|
39
38
|
overflowY: "auto"
|
|
40
39
|
},
|
|
41
40
|
button: {
|
|
42
41
|
default: {
|
|
43
|
-
border: (e) =>
|
|
42
|
+
border: (e) => d.generic({
|
|
44
43
|
width: o(e, "values.borderThin", "theme.values.borderThin"),
|
|
45
44
|
color: o(e, "colors.border.default", "theme.colors.border.default")
|
|
46
45
|
}),
|
|
47
46
|
padding: (e) => o(e, "spacing.sm", "theme.spacing.sm"),
|
|
48
47
|
width: "100%",
|
|
49
|
-
display: (
|
|
48
|
+
display: (a = r) == null ? void 0 : a.flex,
|
|
50
49
|
flexDirection: "row",
|
|
51
50
|
justifyContent: "space-between",
|
|
52
|
-
alignItems: (
|
|
53
|
-
textAlign:
|
|
51
|
+
alignItems: (l = t) == null ? void 0 : l.center,
|
|
52
|
+
textAlign: m.Left,
|
|
54
53
|
".gd-button__content": {
|
|
55
54
|
justifyContent: t.start
|
|
56
55
|
}
|
|
57
56
|
},
|
|
58
57
|
attrs: {
|
|
59
|
-
variant:
|
|
58
|
+
variant: p.Inherit
|
|
60
59
|
}
|
|
61
60
|
},
|
|
62
61
|
item: {
|
|
63
62
|
default: {
|
|
64
|
-
cursor:
|
|
65
|
-
padding:
|
|
63
|
+
cursor: n.Pointer,
|
|
64
|
+
padding: s(2),
|
|
66
65
|
"&:hover, &.active": {
|
|
67
66
|
backgroundColor: (e) => o(e, "colors.bg.fill.hover", "theme.colors.bg.fill.hover")
|
|
68
67
|
}
|
|
69
68
|
},
|
|
70
69
|
disabled: {
|
|
71
70
|
opacity: 0.5,
|
|
72
|
-
cursor:
|
|
71
|
+
cursor: n.NotAllowed,
|
|
73
72
|
pointerEvents: "none"
|
|
74
73
|
}
|
|
75
74
|
},
|
|
@@ -86,22 +85,24 @@ const T = {
|
|
|
86
85
|
}
|
|
87
86
|
}
|
|
88
87
|
},
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
88
|
+
icons: {
|
|
89
|
+
arrowIcon: {
|
|
90
|
+
name: "arrowDown",
|
|
91
|
+
fill: 'neutral["grey.90"]',
|
|
92
|
+
width: 18,
|
|
93
|
+
height: 18
|
|
94
|
+
}
|
|
94
95
|
},
|
|
95
96
|
adornment: {
|
|
96
97
|
default: {
|
|
97
|
-
display:
|
|
98
|
+
display: r.flex,
|
|
98
99
|
alignItems: t.center,
|
|
99
|
-
flexDirection:
|
|
100
|
+
flexDirection: f.Row,
|
|
100
101
|
position: "relative",
|
|
101
|
-
zIndex:
|
|
102
|
+
zIndex: (e) => o(e, "zIndex.first", "theme.zIndex.first")
|
|
102
103
|
}
|
|
103
104
|
}
|
|
104
105
|
};
|
|
105
106
|
export {
|
|
106
|
-
|
|
107
|
+
v as select
|
|
107
108
|
};
|
package/tokens/snackbar.d.ts
CHANGED
|
@@ -1,11 +1,27 @@
|
|
|
1
|
-
import { FlexDirection } from '../types';
|
|
2
|
-
export declare const DEFAULT_SNACKBAR_WIDTH = "302px";
|
|
3
1
|
export declare const snackbar: {
|
|
2
|
+
title: {
|
|
3
|
+
attrs: {
|
|
4
|
+
as: string;
|
|
5
|
+
align: string;
|
|
6
|
+
variant: string;
|
|
7
|
+
styleVariant: string;
|
|
8
|
+
color: string;
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
description: {
|
|
12
|
+
attrs: {
|
|
13
|
+
as: string;
|
|
14
|
+
align: string;
|
|
15
|
+
variant: string;
|
|
16
|
+
styleVariant: string;
|
|
17
|
+
color: string;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
4
20
|
container: {
|
|
5
21
|
default: {
|
|
6
22
|
position: string;
|
|
7
23
|
display: string;
|
|
8
|
-
flexDirection:
|
|
24
|
+
flexDirection: string;
|
|
9
25
|
gap: (theme: Record<symbol, unknown>) => string;
|
|
10
26
|
padding: (theme: Record<symbol, unknown>) => string;
|
|
11
27
|
boxSizing: string;
|
|
@@ -41,7 +57,7 @@ export declare const snackbar: {
|
|
|
41
57
|
width: string;
|
|
42
58
|
fontSize: (theme: Record<symbol, unknown>) => string;
|
|
43
59
|
display: string;
|
|
44
|
-
flexDirection:
|
|
60
|
+
flexDirection: string;
|
|
45
61
|
gap: (theme: Record<symbol, unknown>) => string;
|
|
46
62
|
color: (theme: Record<symbol, unknown>) => string;
|
|
47
63
|
padding: (theme: Record<symbol, unknown>) => string;
|
|
@@ -56,45 +72,45 @@ export declare const snackbar: {
|
|
|
56
72
|
};
|
|
57
73
|
};
|
|
58
74
|
animation: {
|
|
59
|
-
|
|
60
|
-
|
|
75
|
+
closeEffect: string;
|
|
76
|
+
openEffect: string;
|
|
61
77
|
};
|
|
62
78
|
};
|
|
63
79
|
positions: {
|
|
64
|
-
|
|
80
|
+
'top-left': {
|
|
65
81
|
top: number;
|
|
66
82
|
left: number;
|
|
67
83
|
alignItems: string;
|
|
68
84
|
};
|
|
69
|
-
|
|
85
|
+
'top-center': {
|
|
70
86
|
top: (theme: Record<symbol, unknown>) => string;
|
|
71
87
|
left: string;
|
|
72
88
|
transform: string;
|
|
73
89
|
alignItems: string;
|
|
74
90
|
};
|
|
75
|
-
|
|
91
|
+
'top-right': {
|
|
76
92
|
top: (theme: Record<symbol, unknown>) => string;
|
|
77
93
|
right: (theme: Record<symbol, unknown>) => string;
|
|
78
94
|
alignItems: string;
|
|
79
95
|
};
|
|
80
|
-
|
|
96
|
+
'bottom-left': {
|
|
81
97
|
bottom: (theme: Record<symbol, unknown>) => string;
|
|
82
98
|
left: (theme: Record<symbol, unknown>) => string;
|
|
83
99
|
alignItems: string;
|
|
84
|
-
flexDirection:
|
|
100
|
+
flexDirection: string;
|
|
85
101
|
};
|
|
86
|
-
|
|
102
|
+
'bottom-center': {
|
|
87
103
|
bottom: (theme: Record<symbol, unknown>) => string;
|
|
88
104
|
left: string;
|
|
89
105
|
transform: string;
|
|
90
106
|
alignItems: string;
|
|
91
|
-
flexDirection:
|
|
107
|
+
flexDirection: string;
|
|
92
108
|
};
|
|
93
|
-
|
|
109
|
+
'bottom-right': {
|
|
94
110
|
bottom: (theme: Record<symbol, unknown>) => string;
|
|
95
111
|
right: (theme: Record<symbol, unknown>) => string;
|
|
96
112
|
alignItems: string;
|
|
97
|
-
flexDirection:
|
|
113
|
+
flexDirection: string;
|
|
98
114
|
};
|
|
99
115
|
};
|
|
100
116
|
closeButton: {
|
|
@@ -116,25 +132,25 @@ export declare const snackbar: {
|
|
|
116
132
|
};
|
|
117
133
|
success: {
|
|
118
134
|
name: string;
|
|
119
|
-
fill:
|
|
135
|
+
fill: string;
|
|
120
136
|
width: number;
|
|
121
137
|
height: number;
|
|
122
138
|
};
|
|
123
139
|
error: {
|
|
124
140
|
name: string;
|
|
125
|
-
fill:
|
|
141
|
+
fill: string;
|
|
126
142
|
width: number;
|
|
127
143
|
height: number;
|
|
128
144
|
};
|
|
129
145
|
warning: {
|
|
130
146
|
name: string;
|
|
131
|
-
fill:
|
|
147
|
+
fill: string;
|
|
132
148
|
width: number;
|
|
133
149
|
height: number;
|
|
134
150
|
};
|
|
135
151
|
info: {
|
|
136
152
|
name: string;
|
|
137
|
-
fill:
|
|
153
|
+
fill: string;
|
|
138
154
|
width: number;
|
|
139
155
|
height: number;
|
|
140
156
|
};
|
|
@@ -146,7 +162,7 @@ export declare const snackbar: {
|
|
|
146
162
|
};
|
|
147
163
|
snackbarContent: {
|
|
148
164
|
display: string;
|
|
149
|
-
flexDirection:
|
|
165
|
+
flexDirection: string;
|
|
150
166
|
alignItems: string;
|
|
151
167
|
gap: string | number;
|
|
152
168
|
flex: number;
|