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
|
@@ -9,93 +9,68 @@ export declare const IconsList: {
|
|
|
9
9
|
fillSvg?: string | undefined;
|
|
10
10
|
fill?: string | undefined;
|
|
11
11
|
}) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
12
|
-
error: ({
|
|
12
|
+
error: ({ fillSvg, fill, ...rest }: {
|
|
13
13
|
[x: string]: any;
|
|
14
|
-
width?: number | undefined;
|
|
15
|
-
height?: number | undefined;
|
|
16
14
|
fillSvg?: string | undefined;
|
|
17
15
|
fill?: string | undefined;
|
|
18
16
|
}) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
19
|
-
warning: ({
|
|
17
|
+
warning: ({ fillSvg, fill, ...rest }: {
|
|
20
18
|
[x: string]: any;
|
|
21
|
-
width?: number | undefined;
|
|
22
|
-
height?: number | undefined;
|
|
23
19
|
fillSvg?: string | undefined;
|
|
24
20
|
fill?: string | undefined;
|
|
25
21
|
}) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
26
|
-
info: ({
|
|
22
|
+
info: ({ fillSvg, fill, ...rest }: {
|
|
27
23
|
[x: string]: any;
|
|
28
|
-
width?: number | undefined;
|
|
29
|
-
height?: number | undefined;
|
|
30
24
|
fillSvg?: string | undefined;
|
|
31
25
|
fill?: string | undefined;
|
|
32
26
|
}) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
33
|
-
dot: ({
|
|
27
|
+
dot: ({ fillSvg, fill, ...rest }: {
|
|
34
28
|
[x: string]: any;
|
|
35
|
-
width?: number | undefined;
|
|
36
|
-
height?: number | undefined;
|
|
37
29
|
fillSvg?: string | undefined;
|
|
38
30
|
fill?: string | undefined;
|
|
39
31
|
}) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
40
|
-
check: ({
|
|
32
|
+
check: ({ fillSvg, fill, ...rest }: {
|
|
41
33
|
[x: string]: any;
|
|
42
|
-
width?: number | undefined;
|
|
43
|
-
height?: number | undefined;
|
|
44
34
|
fillSvg?: string | undefined;
|
|
45
35
|
fill?: string | undefined;
|
|
46
36
|
}) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
47
|
-
arrowDown: ({
|
|
48
|
-
|
|
49
|
-
height?: number | undefined;
|
|
37
|
+
arrowDown: ({ fillSvg, fill, ...rest }: {
|
|
38
|
+
[x: string]: any;
|
|
50
39
|
fillSvg?: string | undefined;
|
|
51
40
|
fill?: string | undefined;
|
|
52
41
|
}) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
53
|
-
arrowRight: ({
|
|
42
|
+
arrowRight: ({ fillSvg, fill, ...rest }: {
|
|
54
43
|
[x: string]: any;
|
|
55
|
-
width?: number | undefined;
|
|
56
|
-
height?: number | undefined;
|
|
57
44
|
fillSvg?: string | undefined;
|
|
58
45
|
fill?: string | undefined;
|
|
59
46
|
}) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
60
|
-
arrowLeft: ({
|
|
47
|
+
arrowLeft: ({ fillSvg, fill, ...rest }: {
|
|
61
48
|
[x: string]: any;
|
|
62
|
-
width?: number | undefined;
|
|
63
|
-
height?: number | undefined;
|
|
64
49
|
fillSvg?: string | undefined;
|
|
65
50
|
fill?: string | undefined;
|
|
66
51
|
}) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
67
|
-
mobileMenu: ({
|
|
52
|
+
mobileMenu: ({ fillSvg, fill, ...rest }: {
|
|
68
53
|
[x: string]: any;
|
|
69
|
-
width?: number | undefined;
|
|
70
|
-
height?: number | undefined;
|
|
71
54
|
fillSvg?: string | undefined;
|
|
72
55
|
fill?: string | undefined;
|
|
73
56
|
}) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
74
|
-
home: ({
|
|
57
|
+
home: ({ fillSvg, fill, ...rest }: {
|
|
75
58
|
[x: string]: any;
|
|
76
|
-
width?: number | undefined;
|
|
77
|
-
height?: number | undefined;
|
|
78
59
|
fillSvg?: string | undefined;
|
|
79
60
|
fill?: string | undefined;
|
|
80
61
|
}) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
81
|
-
slash: ({
|
|
62
|
+
slash: ({ fillSvg, fill, ...rest }: {
|
|
82
63
|
[x: string]: any;
|
|
83
|
-
width?: number | undefined;
|
|
84
|
-
height?: number | undefined;
|
|
85
64
|
fillSvg?: string | undefined;
|
|
86
65
|
fill?: string | undefined;
|
|
87
66
|
}) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
88
|
-
arrowForward: ({
|
|
67
|
+
arrowForward: ({ fillSvg, fill, ...rest }: {
|
|
89
68
|
[x: string]: any;
|
|
90
|
-
width?: number | undefined;
|
|
91
|
-
height?: number | undefined;
|
|
92
69
|
fillSvg?: string | undefined;
|
|
93
70
|
fill?: string | undefined;
|
|
94
71
|
}) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
95
|
-
localShipping: ({
|
|
72
|
+
localShipping: ({ fillSvg, fill, ...rest }: {
|
|
96
73
|
[x: string]: any;
|
|
97
|
-
width?: number | undefined;
|
|
98
|
-
height?: number | undefined;
|
|
99
74
|
fillSvg?: string | undefined;
|
|
100
75
|
fill?: string | undefined;
|
|
101
76
|
}) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
@@ -109,144 +84,103 @@ export declare const IconsList: {
|
|
|
109
84
|
fillSvg?: string | undefined;
|
|
110
85
|
fill?: string | undefined;
|
|
111
86
|
}) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
112
|
-
deleteOutlined: ({
|
|
87
|
+
deleteOutlined: ({ fillSvg, fill, ...rest }: {
|
|
113
88
|
[x: string]: any;
|
|
114
|
-
width?: number | undefined;
|
|
115
|
-
height?: number | undefined;
|
|
116
89
|
fillSvg?: string | undefined;
|
|
117
90
|
fill?: string | undefined;
|
|
118
91
|
}) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
119
|
-
accountCircle: ({
|
|
92
|
+
accountCircle: ({ fillSvg, fill, ...rest }: {
|
|
120
93
|
[x: string]: any;
|
|
121
|
-
width?: number | undefined;
|
|
122
|
-
height?: number | undefined;
|
|
123
94
|
fillSvg?: string | undefined;
|
|
124
95
|
fill?: string | undefined;
|
|
125
96
|
}) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
126
|
-
shoppingBag: ({
|
|
97
|
+
shoppingBag: ({ fillSvg, fill, ...rest }: {
|
|
127
98
|
[x: string]: any;
|
|
128
|
-
width?: number | undefined;
|
|
129
|
-
height?: number | undefined;
|
|
130
99
|
fillSvg?: string | undefined;
|
|
131
100
|
fill?: string | undefined;
|
|
132
101
|
}) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
133
|
-
errorOutline: ({
|
|
102
|
+
errorOutline: ({ fillSvg, fill, ...rest }: {
|
|
134
103
|
[x: string]: any;
|
|
135
|
-
width?: number | undefined;
|
|
136
|
-
height?: number | undefined;
|
|
137
|
-
color?: string | undefined;
|
|
138
104
|
fillSvg?: string | undefined;
|
|
139
105
|
fill?: string | undefined;
|
|
140
106
|
}) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
141
|
-
star: ({
|
|
107
|
+
star: ({ fillSvg, fill, ...rest }: {
|
|
142
108
|
[x: string]: any;
|
|
143
|
-
width?: number | undefined;
|
|
144
|
-
height?: number | undefined;
|
|
145
109
|
fillSvg?: string | undefined;
|
|
146
110
|
fill?: string | undefined;
|
|
147
111
|
}) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
148
|
-
starOutlined: ({
|
|
112
|
+
starOutlined: ({ fillSvg, fill, ...rest }: {
|
|
149
113
|
[x: string]: any;
|
|
150
|
-
width?: number | undefined;
|
|
151
|
-
height?: number | undefined;
|
|
152
114
|
fillSvg?: string | undefined;
|
|
153
115
|
fill?: string | undefined;
|
|
154
116
|
}) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
155
|
-
minus: ({
|
|
117
|
+
minus: ({ fillSvg, fill, ...rest }: {
|
|
156
118
|
[x: string]: any;
|
|
157
|
-
width?: number | undefined;
|
|
158
|
-
height?: number | undefined;
|
|
159
119
|
fillSvg?: string | undefined;
|
|
160
120
|
fill?: string | undefined;
|
|
161
121
|
}) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
162
|
-
plus: ({
|
|
122
|
+
plus: ({ fillSvg, fill, ...rest }: {
|
|
163
123
|
[x: string]: any;
|
|
164
|
-
width?: number | undefined;
|
|
165
|
-
height?: number | undefined;
|
|
166
124
|
fillSvg?: string | undefined;
|
|
167
125
|
fill?: string | undefined;
|
|
168
126
|
}) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
169
|
-
filter: ({
|
|
127
|
+
filter: ({ fillSvg, fill, ...rest }: {
|
|
170
128
|
[x: string]: any;
|
|
171
|
-
width?: number | undefined;
|
|
172
|
-
height?: number | undefined;
|
|
173
129
|
fillSvg?: string | undefined;
|
|
174
130
|
fill?: string | undefined;
|
|
175
131
|
}) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
176
|
-
ruler: ({
|
|
132
|
+
ruler: ({ fillSvg, fill, ...rest }: {
|
|
177
133
|
[x: string]: any;
|
|
178
|
-
width?: number | undefined;
|
|
179
|
-
height?: number | undefined;
|
|
180
134
|
fillSvg?: string | undefined;
|
|
181
135
|
fill?: string | undefined;
|
|
182
136
|
}) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
183
|
-
processing: ({
|
|
137
|
+
processing: ({ fillSvg, fill, ...rest }: {
|
|
184
138
|
[x: string]: any;
|
|
185
|
-
width?: number | undefined;
|
|
186
|
-
height?: number | undefined;
|
|
187
139
|
fillSvg?: string | undefined;
|
|
188
140
|
fill?: string | undefined;
|
|
189
141
|
}) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
190
|
-
paymentCard: ({
|
|
142
|
+
paymentCard: ({ fillSvg, fill, ...rest }: {
|
|
191
143
|
[x: string]: any;
|
|
192
|
-
width?: number | undefined;
|
|
193
|
-
height?: number | undefined;
|
|
194
144
|
fillSvg?: string | undefined;
|
|
195
145
|
fill?: string | undefined;
|
|
196
146
|
}) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
197
|
-
eye: ({
|
|
147
|
+
eye: ({ fillSvg, fill, ...rest }: {
|
|
198
148
|
[x: string]: any;
|
|
199
|
-
width?: number | undefined;
|
|
200
|
-
height?: number | undefined;
|
|
201
149
|
fillSvg?: string | undefined;
|
|
202
150
|
fill?: string | undefined;
|
|
203
151
|
}) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
204
|
-
attachment: ({
|
|
152
|
+
attachment: ({ fillSvg, fill, ...rest }: {
|
|
205
153
|
[x: string]: any;
|
|
206
|
-
width?: number | undefined;
|
|
207
|
-
height?: number | undefined;
|
|
208
154
|
fillSvg?: string | undefined;
|
|
209
155
|
fill?: string | undefined;
|
|
210
156
|
}) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
211
|
-
upload: ({
|
|
157
|
+
upload: ({ fillSvg, fill, ...rest }: {
|
|
212
158
|
[x: string]: any;
|
|
213
|
-
width?: number | undefined;
|
|
214
|
-
height?: number | undefined;
|
|
215
159
|
fillSvg?: string | undefined;
|
|
216
160
|
fill?: string | undefined;
|
|
217
161
|
}) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
218
|
-
folder: ({
|
|
162
|
+
folder: ({ fillSvg, fill, ...rest }: {
|
|
219
163
|
[x: string]: any;
|
|
220
|
-
width?: number | undefined;
|
|
221
|
-
height?: number | undefined;
|
|
222
164
|
fillSvg?: string | undefined;
|
|
223
165
|
fill?: string | undefined;
|
|
224
166
|
}) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
225
|
-
folderOpen: ({
|
|
167
|
+
folderOpen: ({ fillSvg, fill, ...rest }: {
|
|
226
168
|
[x: string]: any;
|
|
227
|
-
width?: number | undefined;
|
|
228
|
-
height?: number | undefined;
|
|
229
169
|
fillSvg?: string | undefined;
|
|
230
170
|
fill?: string | undefined;
|
|
231
171
|
}) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
232
|
-
wifiTethering: ({
|
|
172
|
+
wifiTethering: ({ fillSvg, fill, ...rest }: {
|
|
233
173
|
[x: string]: any;
|
|
234
|
-
width?: number | undefined;
|
|
235
|
-
height?: number | undefined;
|
|
236
174
|
fillSvg?: string | undefined;
|
|
237
175
|
fill?: string | undefined;
|
|
238
176
|
}) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
239
|
-
portrait: ({
|
|
177
|
+
portrait: ({ fillSvg, fill, ...rest }: {
|
|
240
178
|
[x: string]: any;
|
|
241
|
-
width?: number | undefined;
|
|
242
|
-
height?: number | undefined;
|
|
243
179
|
fillSvg?: string | undefined;
|
|
244
180
|
fill?: string | undefined;
|
|
245
181
|
}) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
246
|
-
search: ({
|
|
182
|
+
search: ({ fillSvg, fill, ...rest }: {
|
|
247
183
|
[x: string]: any;
|
|
248
|
-
width?: number | undefined;
|
|
249
|
-
height?: number | undefined;
|
|
250
184
|
fillSvg?: string | undefined;
|
|
251
185
|
fill?: string | undefined;
|
|
252
186
|
}) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
@@ -255,17 +189,13 @@ export declare const IconsList: {
|
|
|
255
189
|
fillSvg?: string | undefined;
|
|
256
190
|
fill?: string | undefined;
|
|
257
191
|
}) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
258
|
-
volumeUp: ({
|
|
192
|
+
volumeUp: ({ fillSvg, fill, ...rest }: {
|
|
259
193
|
[x: string]: any;
|
|
260
|
-
width?: number | undefined;
|
|
261
|
-
height?: number | undefined;
|
|
262
194
|
fillSvg?: string | undefined;
|
|
263
195
|
fill?: string | undefined;
|
|
264
196
|
}) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
265
|
-
contentCopy: ({
|
|
197
|
+
contentCopy: ({ fillSvg, fill, ...rest }: {
|
|
266
198
|
[x: string]: any;
|
|
267
|
-
width?: number | undefined;
|
|
268
|
-
height?: number | undefined;
|
|
269
199
|
fillSvg?: string | undefined;
|
|
270
200
|
fill?: string | undefined;
|
|
271
201
|
}) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
@@ -279,10 +209,8 @@ export declare const IconsList: {
|
|
|
279
209
|
fillSvg?: string | undefined;
|
|
280
210
|
fill?: string | undefined;
|
|
281
211
|
}) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
282
|
-
fileCopy: ({
|
|
212
|
+
fileCopy: ({ fillSvg, fill, ...rest }: {
|
|
283
213
|
[x: string]: any;
|
|
284
|
-
width?: number | undefined;
|
|
285
|
-
height?: number | undefined;
|
|
286
214
|
fillSvg?: string | undefined;
|
|
287
215
|
fill?: string | undefined;
|
|
288
216
|
}) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { InputFieldProps } from './Input.types';
|
|
2
|
-
export declare const Input: import('react').ForwardRefExoticComponent<(InputFieldProps & Partial<Omit<HTMLInputElement, "color" | "prefix" | "disabled" | "tabIndex" | "type" | "hidden" | "width" | "
|
|
2
|
+
export declare const Input: import('react').ForwardRefExoticComponent<(InputFieldProps & Partial<Omit<HTMLInputElement, "color" | "prefix" | "disabled" | "tabIndex" | "type" | "hidden" | "width" | "content" | "translate" | "name" | "label" | "children" | "className" | "styles" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoCapitalize" | "autoFocus" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "enterKeyHint" | "id" | "lang" | "nonce" | "slot" | "spellCheck" | "style" | "title" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "exportparts" | "part" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-description" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowindextext" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerLeave" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "variant" | "placeholder" | "adornmentStart" | "adornmentEnd" | "debounceCallbackTime" | "readOnly" | "required" | "ariaRequired" | "ariaDescribedBy" | "wrapperAs" | "helperText">>) & import('react').RefAttributes<HTMLInputElement>>;
|
|
@@ -1,34 +1,2 @@
|
|
|
1
1
|
import { InputFileProps } from './';
|
|
2
|
-
/**
|
|
3
|
-
* A styled wrapper around a visually hidden `<input type="file">` and an outlined design-system `Button`.
|
|
4
|
-
*
|
|
5
|
-
* @remarks
|
|
6
|
-
* - Use `accept` to restrict selectable file types.
|
|
7
|
-
* - Use `capture` for mobile camera/mic capture hints.
|
|
8
|
-
* - `multiple` prop enables selecting more than one file.
|
|
9
|
-
* - `disabled` disables the entire control.
|
|
10
|
-
* - `styles` lets you override the outer wrapper’s CSS via design-token style object.
|
|
11
|
-
* - `buttonProps` are passed directly to the `Button` (variant is always `Outlined`).
|
|
12
|
-
*
|
|
13
|
-
* @example
|
|
14
|
-
* ```tsx
|
|
15
|
-
* import { InputFile } from '@components/core/InputFile';
|
|
16
|
-
*
|
|
17
|
-
* function MyForm() {
|
|
18
|
-
* const handleFiles = (e: React.ChangeEvent<HTMLInputElement>) => {
|
|
19
|
-
* console.log(e.target.files);
|
|
20
|
-
* };
|
|
21
|
-
*
|
|
22
|
-
* return (
|
|
23
|
-
* <InputFile
|
|
24
|
-
* accept="image/*"
|
|
25
|
-
* multiple
|
|
26
|
-
* label="Upload Photos"
|
|
27
|
-
* onChange={handleFiles}
|
|
28
|
-
* styles={{ border: '2px dashed #ccc', padding: '1rem' }}
|
|
29
|
-
* />
|
|
30
|
-
* );
|
|
31
|
-
* }
|
|
32
|
-
* ```
|
|
33
|
-
*/
|
|
34
2
|
export declare const InputFile: import('react').ForwardRefExoticComponent<InputFileProps & import('react').RefAttributes<HTMLDivElement>>;
|
|
@@ -1,40 +1,54 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsxs as
|
|
3
|
-
import { forwardRef as
|
|
4
|
-
import {
|
|
5
|
-
import { InputFileWrapperStyled as
|
|
6
|
-
import { Button as
|
|
7
|
-
import { useTheme as
|
|
8
|
-
import {
|
|
9
|
-
|
|
2
|
+
import { jsxs as N, jsx as d } from "@emotion/react/jsx-runtime";
|
|
3
|
+
import { forwardRef as _, useRef as T, useImperativeHandle as x } from "react";
|
|
4
|
+
import { COMPONENT_NAME as i, INPUT_FILE_DEFAULT_LABEL_VALUE as B } from "./constants.js";
|
|
5
|
+
import { InputFileWrapperStyled as O, InputFileStyled as U } from "./InputFileStyled.js";
|
|
6
|
+
import { Button as j } from "../Button/Button.js";
|
|
7
|
+
import { useTheme as z } from "../../../hooks/useTheme/useTheme.js";
|
|
8
|
+
import { useLogger as M } from "../../../hooks/useLogger/useLogger.js";
|
|
9
|
+
import { ButtonVariant as P } from "../../../types/button.js";
|
|
10
|
+
const R = _(({
|
|
11
|
+
styles: g = {},
|
|
12
|
+
accept: y,
|
|
13
|
+
capture: E,
|
|
14
|
+
multiple: n,
|
|
15
|
+
disabled: r,
|
|
16
|
+
onChange: o,
|
|
17
|
+
onClick: m,
|
|
18
|
+
isIcon: l,
|
|
19
|
+
children: F = B,
|
|
20
|
+
buttonProps: L,
|
|
21
|
+
...h
|
|
22
|
+
}, s) => {
|
|
10
23
|
const {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
24
|
+
theme: a
|
|
25
|
+
} = z(), f = M(), p = T(null);
|
|
26
|
+
x(s, () => p.current);
|
|
27
|
+
const A = (t) => {
|
|
28
|
+
var e;
|
|
29
|
+
r || (f.debug(`${i}: Clicked upload button`, {
|
|
30
|
+
isIcon: l,
|
|
31
|
+
disabled: !!r
|
|
32
|
+
}), (e = p.current) == null || e.click(), m == null || m(t));
|
|
33
|
+
}, I = (t) => {
|
|
34
|
+
var c;
|
|
35
|
+
const e = (c = t.target) != null && c.files ? Array.from(t.target.files).map((u) => ({
|
|
36
|
+
name: u.name,
|
|
37
|
+
size: u.size,
|
|
38
|
+
type: u.type
|
|
39
|
+
})) : [];
|
|
40
|
+
f.debug(`${i}: File input changed`, {
|
|
41
|
+
multiple: !!n,
|
|
42
|
+
filesCount: e.length,
|
|
43
|
+
files: e
|
|
44
|
+
}), o == null || o(t);
|
|
31
45
|
};
|
|
32
|
-
return /* @__PURE__ */
|
|
33
|
-
/* @__PURE__ */
|
|
34
|
-
/* @__PURE__ */
|
|
46
|
+
return /* @__PURE__ */ N(O, { theme: a, styles: g, ref: s, "data-testid": i, children: [
|
|
47
|
+
/* @__PURE__ */ d(j, { isIcon: l, variant: P.Outlined, disabled: r, onClick: A, ...L, children: F }),
|
|
48
|
+
/* @__PURE__ */ d(U, { ref: p, theme: a, accept: y, capture: E, multiple: n, disabled: r, onChange: I, ...h })
|
|
35
49
|
] });
|
|
36
50
|
});
|
|
37
|
-
|
|
51
|
+
R.displayName = i;
|
|
38
52
|
export {
|
|
39
|
-
|
|
53
|
+
R as InputFile
|
|
40
54
|
};
|
|
@@ -1,27 +1,29 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsx as
|
|
3
|
-
import { forwardRef as
|
|
4
|
-
import { INPUT_FILE_TYPE as
|
|
2
|
+
import { jsx as p } from "@emotion/react/jsx-runtime";
|
|
3
|
+
import { forwardRef as m } from "react";
|
|
4
|
+
import { INPUT_FILE_TYPE as s } from "./constants.js";
|
|
5
5
|
import { get as i } from "../../../utils/helpers.js";
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
6
|
+
import { tokensHandler as f } from "../../../tokens/utils.js";
|
|
7
|
+
const I = m(({
|
|
8
|
+
theme: {
|
|
9
|
+
inputfile: t
|
|
10
|
+
} = {},
|
|
11
|
+
styles: e = {},
|
|
12
|
+
...r
|
|
13
|
+
}, o) => {
|
|
14
|
+
const n = [i(t, "default", {}), e];
|
|
15
|
+
return /* @__PURE__ */ p("div", { css: n, ...r, ref: o });
|
|
16
|
+
}), a = m(({
|
|
17
|
+
theme: {
|
|
18
|
+
inputfile: t,
|
|
19
|
+
...e
|
|
20
|
+
} = {},
|
|
21
|
+
...r
|
|
22
|
+
}, o) => {
|
|
23
|
+
const n = new Proxy(t || {}, f(e));
|
|
24
|
+
return /* @__PURE__ */ p("input", { type: s, css: i(n, "input", {}), ...r, ref: o });
|
|
23
25
|
});
|
|
24
26
|
export {
|
|
25
|
-
|
|
26
|
-
|
|
27
|
+
a as InputFileStyled,
|
|
28
|
+
I as InputFileWrapperStyled
|
|
27
29
|
};
|
|
@@ -1,29 +1,31 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsx as
|
|
3
|
-
import { forwardRef as
|
|
4
|
-
import { BASE_ANIMATION as
|
|
5
|
-
import { LoaderStyled as
|
|
2
|
+
import { jsx as o } from "@emotion/react/jsx-runtime";
|
|
3
|
+
import { forwardRef as N } from "react";
|
|
4
|
+
import { BASE_ANIMATION as P, COMPONENT_NAME as p } from "./constants.js";
|
|
5
|
+
import { LoaderStyled as $ } from "./LoaderStyled.js";
|
|
6
6
|
import { Portal as w } from "../Portal/Portal.js";
|
|
7
7
|
import A from "../Wrapper/Wrapper.js";
|
|
8
|
+
import { useTheme as M } from "../../../hooks/useTheme/useTheme.js";
|
|
8
9
|
import { WrapperVariant as m } from "../../../types/wrapper.js";
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
const
|
|
10
|
+
import { get as V } from "../../../utils/helpers.js";
|
|
11
|
+
import { SizeVariant as W } from "../../../types/common.js";
|
|
12
|
+
const g = N((d, s) => {
|
|
12
13
|
const {
|
|
14
|
+
theme: t
|
|
15
|
+
} = M(), {
|
|
13
16
|
name: f,
|
|
14
17
|
variant: r = m.Inline,
|
|
18
|
+
rounded: l = V(t, "loader.attrs.rounded", "none"),
|
|
15
19
|
children: a,
|
|
16
|
-
size:
|
|
17
|
-
animationProps:
|
|
20
|
+
size: u = W.Md,
|
|
21
|
+
animationProps: c = P,
|
|
18
22
|
withWrapper: i = !0,
|
|
19
|
-
WrapperView:
|
|
20
|
-
...
|
|
21
|
-
} = p,
|
|
22
|
-
|
|
23
|
-
} = V(), e = () => a || /* @__PURE__ */ t(P, { ref: s, theme: h, $name: f, $variant: r, $size: d, $animationProps: l, "data-testid": n, ...c });
|
|
24
|
-
return r === m.FullPage ? /* @__PURE__ */ t(w, { wrapperVariant: r, withWrapper: i, WrapperView: o, children: e() }) : i ? /* @__PURE__ */ t(A, { variant: r, as: o, children: e() }) : e();
|
|
23
|
+
WrapperView: n = "span",
|
|
24
|
+
...h
|
|
25
|
+
} = d, e = () => a || /* @__PURE__ */ o($, { ref: s, theme: t, $name: f, $variant: r, $size: u, $animationProps: c, $rounded: l, "data-testid": p, ...h });
|
|
26
|
+
return r === m.FullPage ? /* @__PURE__ */ o(w, { wrapperVariant: r, withWrapper: i, WrapperView: n, children: e() }) : i ? /* @__PURE__ */ o(A, { variant: r, as: n, children: e() }) : e();
|
|
25
27
|
});
|
|
26
|
-
|
|
28
|
+
g.displayName = p;
|
|
27
29
|
export {
|
|
28
|
-
|
|
30
|
+
g as Loader
|
|
29
31
|
};
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { ElementType, PropsWithChildren } from 'react';
|
|
2
|
-
import { EnumOrPrimitive, SizeVariant, WrapperVariant } from '../../../types';
|
|
2
|
+
import { EnumOrPrimitive, SizeVariant, WrapperVariant, Rounded } from '../../../types';
|
|
3
3
|
import { CommonCssComponentProps, CommonCssComponentStyledProps } from '../..';
|
|
4
4
|
export type LoaderName = 'circle' | 'dots';
|
|
5
5
|
export interface LoaderProps extends CommonCssComponentProps, PropsWithChildren {
|
|
6
6
|
name?: LoaderName;
|
|
7
7
|
variant?: EnumOrPrimitive<WrapperVariant>;
|
|
8
|
+
rounded?: Rounded;
|
|
8
9
|
size?: EnumOrPrimitive<SizeVariant>;
|
|
9
10
|
withWrapper?: boolean;
|
|
10
11
|
animationProps?: string;
|
|
@@ -12,6 +13,7 @@ export interface LoaderProps extends CommonCssComponentProps, PropsWithChildren
|
|
|
12
13
|
}
|
|
13
14
|
export interface LoaderStyledProps extends CommonCssComponentStyledProps, PropsWithChildren {
|
|
14
15
|
$name?: LoaderName;
|
|
16
|
+
$rounded?: Rounded;
|
|
15
17
|
$variant?: EnumOrPrimitive<WrapperVariant>;
|
|
16
18
|
$size?: EnumOrPrimitive<SizeVariant>;
|
|
17
19
|
$animationProps?: string;
|