baseui 11.0.1 → 11.1.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.
Files changed (266) hide show
  1. package/a11y/index.d.ts +1 -1
  2. package/accordion/index.d.ts +25 -28
  3. package/app-nav-bar/app-nav-bar.js +33 -40
  4. package/app-nav-bar/app-nav-bar.js.flow +46 -62
  5. package/app-nav-bar/index.d.ts +9 -8
  6. package/app-nav-bar/styled-components.js +49 -29
  7. package/app-nav-bar/styled-components.js.flow +25 -8
  8. package/app-nav-bar/types.js.flow +2 -0
  9. package/aspect-ratio-box/index.d.ts +2 -4
  10. package/avatar/index.d.ts +6 -12
  11. package/badge/badge.js +109 -0
  12. package/badge/badge.js.flow +91 -0
  13. package/badge/constants.js +54 -0
  14. package/badge/constants.js.flow +52 -0
  15. package/badge/hint-dot.js +96 -0
  16. package/badge/hint-dot.js.flow +68 -0
  17. package/badge/index.d.ts +97 -0
  18. package/badge/index.js +80 -0
  19. package/badge/index.js.flow +20 -0
  20. package/badge/notification-circle.js +103 -0
  21. package/badge/notification-circle.js.flow +81 -0
  22. package/badge/package.json +4 -0
  23. package/badge/styled-components.js +242 -0
  24. package/badge/styled-components.js.flow +325 -0
  25. package/badge/types.js +11 -0
  26. package/badge/types.js.flow +59 -0
  27. package/badge/utils.js +33 -0
  28. package/badge/utils.js.flow +23 -0
  29. package/banner/banner.js +283 -0
  30. package/banner/banner.js.flow +253 -0
  31. package/banner/constants.js +35 -0
  32. package/banner/constants.js.flow +33 -0
  33. package/banner/index.d.ts +75 -0
  34. package/banner/index.js +44 -0
  35. package/banner/index.js.flow +16 -0
  36. package/banner/package.json +4 -0
  37. package/banner/styled-components.js +131 -0
  38. package/banner/styled-components.js.flow +119 -0
  39. package/banner/types.js +11 -0
  40. package/banner/types.js.flow +66 -0
  41. package/block/index.d.ts +4 -4
  42. package/breadcrumbs/breadcrumbs.js +5 -1
  43. package/breadcrumbs/breadcrumbs.js.flow +2 -2
  44. package/breadcrumbs/index.d.ts +5 -5
  45. package/button/button.js +2 -1
  46. package/button/button.js.flow +1 -0
  47. package/button/index.d.ts +19 -29
  48. package/button-group/index.d.ts +18 -24
  49. package/card/index.d.ts +16 -14
  50. package/checkbox/index.d.ts +17 -21
  51. package/combobox/index.d.ts +7 -11
  52. package/data-table/index.d.ts +7 -10
  53. package/datepicker/calendar.js +16 -11
  54. package/datepicker/calendar.js.flow +12 -9
  55. package/datepicker/datepicker.js +58 -58
  56. package/datepicker/datepicker.js.flow +51 -34
  57. package/datepicker/index.d.ts +42 -63
  58. package/datepicker/stateful-calendar.js +6 -1
  59. package/datepicker/stateful-calendar.js.flow +8 -1
  60. package/datepicker/stateful-container.js +23 -2
  61. package/datepicker/stateful-container.js.flow +17 -4
  62. package/datepicker/stateful-datepicker.js +6 -1
  63. package/datepicker/stateful-datepicker.js.flow +7 -1
  64. package/datepicker/types.js.flow +21 -43
  65. package/datepicker/utils/date-helpers.js +1 -1
  66. package/datepicker/utils/date-helpers.js.flow +1 -1
  67. package/dnd-list/index.d.ts +22 -35
  68. package/drawer/index.d.ts +22 -27
  69. package/es/app-nav-bar/app-nav-bar.js +9 -19
  70. package/es/app-nav-bar/styled-components.js +32 -13
  71. package/es/badge/badge.js +70 -0
  72. package/es/badge/constants.js +42 -0
  73. package/es/badge/hint-dot.js +55 -0
  74. package/es/badge/index.js +11 -0
  75. package/es/badge/notification-circle.js +65 -0
  76. package/es/badge/styled-components.js +296 -0
  77. package/es/badge/types.js +8 -0
  78. package/es/badge/utils.js +17 -0
  79. package/es/banner/banner.js +213 -0
  80. package/es/banner/constants.js +24 -0
  81. package/es/banner/index.js +9 -0
  82. package/es/banner/styled-components.js +122 -0
  83. package/es/banner/types.js +8 -0
  84. package/es/breadcrumbs/breadcrumbs.js +5 -1
  85. package/es/button/button.js +1 -0
  86. package/es/datepicker/calendar.js +15 -10
  87. package/es/datepicker/datepicker.js +52 -52
  88. package/es/datepicker/stateful-calendar.js +6 -1
  89. package/es/datepicker/stateful-container.js +22 -2
  90. package/es/datepicker/stateful-datepicker.js +6 -1
  91. package/es/datepicker/utils/date-helpers.js +1 -1
  92. package/es/helper/helper-steps.js +3 -1
  93. package/es/input/base-input.js +18 -11
  94. package/es/input/input.js +15 -10
  95. package/es/input/masked-input.js +5 -2
  96. package/es/input/utils.js +4 -2
  97. package/es/locale/tr_TR.js +115 -0
  98. package/es/notification/notification.js +16 -1
  99. package/es/payment-card/custom-cards.config.js +22 -0
  100. package/es/payment-card/icons/uatp.js +52 -0
  101. package/es/payment-card/payment-card.js +8 -3
  102. package/es/popover/popover.js +2 -1
  103. package/es/popover/stateful-container.js +2 -0
  104. package/es/popover/styled-components.js +2 -1
  105. package/es/progress-steps/numbered-step.js +2 -2
  106. package/es/select/select-component.js +48 -23
  107. package/es/select/utils/default-filter-options.js +1 -1
  108. package/es/snackbar/snackbar-context.js +1 -1
  109. package/es/table-semantic/styled-components.js +14 -0
  110. package/es/table-semantic/table-builder.js +12 -5
  111. package/es/textarea/textarea.js +15 -9
  112. package/es/themes/dark-theme/color-component-tokens.js +8 -0
  113. package/es/themes/light-theme/color-component-tokens.js +8 -0
  114. package/es/tree-view/tree-label.js +9 -1
  115. package/esm/app-nav-bar/app-nav-bar.js +32 -38
  116. package/esm/app-nav-bar/styled-components.js +46 -28
  117. package/esm/badge/badge.js +97 -0
  118. package/esm/badge/constants.js +42 -0
  119. package/esm/badge/hint-dot.js +83 -0
  120. package/esm/badge/index.js +11 -0
  121. package/esm/badge/notification-circle.js +91 -0
  122. package/esm/badge/styled-components.js +235 -0
  123. package/esm/badge/types.js +8 -0
  124. package/esm/badge/utils.js +17 -0
  125. package/esm/banner/banner.js +271 -0
  126. package/esm/banner/constants.js +24 -0
  127. package/esm/banner/index.js +9 -0
  128. package/esm/banner/styled-components.js +113 -0
  129. package/esm/banner/types.js +8 -0
  130. package/esm/breadcrumbs/breadcrumbs.js +5 -1
  131. package/esm/button/button.js +2 -1
  132. package/esm/datepicker/calendar.js +16 -11
  133. package/esm/datepicker/datepicker.js +58 -58
  134. package/esm/datepicker/stateful-calendar.js +6 -1
  135. package/esm/datepicker/stateful-container.js +23 -2
  136. package/esm/datepicker/stateful-datepicker.js +6 -1
  137. package/esm/datepicker/utils/date-helpers.js +1 -1
  138. package/esm/helper/helper-steps.js +3 -1
  139. package/esm/input/base-input.js +18 -11
  140. package/esm/input/input.js +15 -10
  141. package/esm/input/masked-input.js +6 -3
  142. package/esm/input/utils.js +4 -2
  143. package/esm/locale/tr_TR.js +115 -0
  144. package/esm/notification/notification.js +17 -1
  145. package/esm/payment-card/custom-cards.config.js +22 -0
  146. package/esm/payment-card/icons/uatp.js +53 -0
  147. package/esm/payment-card/payment-card.js +9 -7
  148. package/esm/popover/popover.js +2 -1
  149. package/esm/popover/stateful-container.js +2 -0
  150. package/esm/popover/styled-components.js +3 -2
  151. package/esm/progress-steps/numbered-step.js +2 -2
  152. package/esm/select/select-component.js +85 -59
  153. package/esm/select/utils/default-filter-options.js +1 -1
  154. package/esm/snackbar/snackbar-context.js +1 -1
  155. package/esm/table-semantic/styled-components.js +31 -18
  156. package/esm/table-semantic/table-builder.js +34 -23
  157. package/esm/textarea/textarea.js +15 -9
  158. package/esm/themes/dark-theme/color-component-tokens.js +8 -0
  159. package/esm/themes/light-theme/color-component-tokens.js +8 -0
  160. package/esm/tree-view/tree-label.js +10 -2
  161. package/file-uploader/index.d.ts +11 -11
  162. package/flex-grid/index.d.ts +3 -3
  163. package/form-control/index.d.ts +7 -19
  164. package/header-navigation/index.d.ts +8 -9
  165. package/heading/index.d.ts +3 -4
  166. package/helper/helper-steps.js +19 -13
  167. package/helper/helper-steps.js.flow +3 -1
  168. package/helper/index.d.ts +7 -7
  169. package/helpers/base-provider.d.ts +16 -0
  170. package/helpers/overrides.d.ts +23 -0
  171. package/icon/index.d.ts +32 -32
  172. package/index.d.ts +34 -114
  173. package/input/base-input.js +18 -11
  174. package/input/base-input.js.flow +18 -6
  175. package/input/index.d.ts +29 -32
  176. package/input/input.js +15 -10
  177. package/input/input.js.flow +10 -5
  178. package/input/masked-input.js +6 -3
  179. package/input/masked-input.js.flow +3 -0
  180. package/input/types.js.flow +4 -0
  181. package/input/utils.js +4 -2
  182. package/input/utils.js.flow +2 -1
  183. package/layer/index.d.ts +6 -11
  184. package/layout-grid/index.d.ts +25 -7
  185. package/link/index.d.ts +2 -2
  186. package/list/index.d.ts +26 -31
  187. package/{locale.ts → locale/index.d.ts} +8 -0
  188. package/locale/tr_TR.js +123 -0
  189. package/locale/tr_TR.js.flow +124 -0
  190. package/map-marker/index.d.ts +41 -47
  191. package/menu/index.d.ts +27 -37
  192. package/modal/index.d.ts +28 -38
  193. package/notification/index.d.ts +2 -3
  194. package/notification/notification.js +18 -1
  195. package/notification/notification.js.flow +15 -1
  196. package/overrides.ts +2 -22
  197. package/package.json +26 -17
  198. package/pagination/index.d.ts +22 -26
  199. package/payment-card/custom-cards.config.js +30 -0
  200. package/payment-card/custom-cards.config.js.flow +29 -0
  201. package/payment-card/icons/uatp.js +67 -0
  202. package/payment-card/icons/uatp.js.flow +62 -0
  203. package/payment-card/index.d.ts +8 -8
  204. package/payment-card/payment-card.js +12 -7
  205. package/payment-card/payment-card.js.flow +12 -0
  206. package/phone-input/index.d.ts +261 -269
  207. package/pin-code/index.d.ts +11 -18
  208. package/popover/index.d.ts +39 -55
  209. package/popover/popover.js +2 -1
  210. package/popover/popover.js.flow +2 -1
  211. package/popover/stateful-container.js +2 -0
  212. package/popover/stateful-container.js.flow +2 -0
  213. package/popover/styled-components.js +3 -2
  214. package/popover/styled-components.js.flow +2 -1
  215. package/popover/types.js.flow +1 -0
  216. package/progress-bar/index.d.ts +11 -12
  217. package/progress-steps/index.d.ts +16 -16
  218. package/progress-steps/numbered-step.js.flow +2 -2
  219. package/radio/index.d.ts +12 -15
  220. package/rating/index.d.ts +9 -12
  221. package/select/index.d.ts +34 -36
  222. package/select/select-component.js +82 -56
  223. package/select/select-component.js.flow +46 -34
  224. package/select/types.js.flow +1 -0
  225. package/select/utils/default-filter-options.js +1 -1
  226. package/select/utils/default-filter-options.js.flow +1 -1
  227. package/side-navigation/index.d.ts +11 -13
  228. package/skeleton/index.d.ts +1 -1
  229. package/slider/index.d.ts +17 -26
  230. package/snackbar/index.d.ts +8 -8
  231. package/snackbar/snackbar-context.js +1 -1
  232. package/snackbar/snackbar-context.js.flow +1 -1
  233. package/spinner/index.d.ts +4 -3
  234. package/styles/index.d.ts +82 -2
  235. package/table/index.d.ts +16 -16
  236. package/table-grid/index.d.ts +6 -8
  237. package/table-semantic/index.d.ts +26 -32
  238. package/table-semantic/styled-components.js +33 -19
  239. package/table-semantic/styled-components.js.flow +12 -0
  240. package/table-semantic/table-builder.js +38 -22
  241. package/table-semantic/table-builder.js.flow +32 -17
  242. package/table-semantic/types.js.flow +1 -0
  243. package/tabs/index.d.ts +20 -23
  244. package/tabs-motion/index.d.ts +23 -23
  245. package/tag/index.d.ts +14 -18
  246. package/tag/types.js.flow +1 -1
  247. package/textarea/index.d.ts +11 -14
  248. package/textarea/textarea.js +15 -9
  249. package/textarea/textarea.js.flow +11 -5
  250. package/textarea/types.js.flow +1 -0
  251. package/theme.ts +36 -777
  252. package/themes/dark-theme/color-component-tokens.js +8 -0
  253. package/themes/dark-theme/color-component-tokens.js.flow +9 -0
  254. package/themes/index.d.ts +765 -0
  255. package/themes/light-theme/color-component-tokens.js +8 -0
  256. package/themes/light-theme/color-component-tokens.js.flow +9 -0
  257. package/themes/types.js.flow +9 -0
  258. package/timepicker/index.d.ts +5 -8
  259. package/timezonepicker/index.d.ts +5 -8
  260. package/toast/index.d.ts +26 -40
  261. package/tokens/index.d.ts +1 -1
  262. package/tooltip/index.d.ts +7 -9
  263. package/tree-view/index.d.ts +15 -19
  264. package/tree-view/tree-label.js +10 -2
  265. package/tree-view/tree-label.js.flow +4 -4
  266. package/typography/index.d.ts +37 -37
package/theme.ts CHANGED
@@ -5,781 +5,40 @@ This source code is licensed under the MIT license found in the
5
5
  LICENSE file in the root directory of this source tree.
6
6
  */
7
7
  // @flow
8
- export interface Breakpoints {
9
- small: number;
10
- medium: number;
11
- large: number;
12
- }
13
8
 
14
- export interface MediaQuery {
15
- small: string;
16
- medium: string;
17
- large: string;
18
- }
19
-
20
- export type Responsive<T> = T | T[];
21
-
22
- export type CSSLengthUnitT =
23
- | 'cm'
24
- | 'mm'
25
- | 'Q'
26
- | 'in'
27
- | 'pc'
28
- | 'px'
29
- | 'pt'
30
- | 'em'
31
- | 'ex'
32
- | 'ch'
33
- | 'rem'
34
- | 'lh'
35
- | 'vw'
36
- | 'vh'
37
- | 'vmin'
38
- | 'vmax'
39
- | '%';
40
-
41
- export interface Grid {
42
- columns: Responsive<number>;
43
- gutters: Responsive<number>;
44
- margins: Responsive<number>;
45
- gaps: Responsive<number>;
46
- maxWidth: number;
47
- unit: CSSLengthUnitT;
48
- }
49
-
50
- export interface Colors {
51
- // Primary Palette
52
- primaryA: string;
53
- primaryB: string;
54
- primary: string;
55
- primary50: string;
56
- primary100: string;
57
- primary200: string;
58
- primary300: string;
59
- primary400: string;
60
- primary500: string;
61
- primary600: string;
62
- primary700: string;
63
-
64
- // Accent Palette
65
- accent: string;
66
- accent50: string;
67
- accent100: string;
68
- accent200: string;
69
- accent300: string;
70
- accent400: string;
71
- accent500: string;
72
- accent600: string;
73
- accent700: string;
74
-
75
- // Alert Palette
76
- negative: string;
77
- negative50: string;
78
- negative100: string;
79
- negative200: string;
80
- negative300: string;
81
- negative400: string;
82
- negative500: string;
83
- negative600: string;
84
- negative700: string;
85
-
86
- // Warning Palette
87
- warning: string;
88
- warning50: string;
89
- warning100: string;
90
- warning200: string;
91
- warning300: string;
92
- warning400: string;
93
- warning500: string;
94
- warning600: string;
95
- warning700: string;
96
-
97
- // Success Palette
98
- positive: string;
99
- positive50: string;
100
- positive100: string;
101
- positive200: string;
102
- positive300: string;
103
- positive400: string;
104
- positive500: string;
105
- positive600: string;
106
- positive700: string;
107
-
108
- // Monochrome Palette
109
- white: string;
110
- mono100: string;
111
- mono200: string;
112
- mono300: string;
113
- mono400: string;
114
- mono500: string;
115
- mono600: string;
116
- mono700: string;
117
- mono800: string;
118
- mono900: string;
119
- mono1000: string;
120
- black: string;
121
-
122
- // Rating Palette
123
- ratingInactiveFill: string;
124
- ratingStroke: string;
125
-
126
- /* ---- Semantic Colors ---- */
127
-
128
- /* CoreSemanticColorTokensT */
129
-
130
- // Background
131
- backgroundPrimary: string;
132
- backgroundSecondary: string;
133
- backgroundTertiary: string;
134
- backgroundInversePrimary: string;
135
- backgroundInverseSecondary: string;
136
-
137
- // Content
138
- contentPrimary: string;
139
- contentSecondary: string;
140
- contentTertiary: string;
141
- contentInversePrimary: string;
142
- contentInverseSecondary: string;
143
- contentInverseTertiary: string;
144
-
145
- // Border
146
- borderOpaque: string;
147
- borderTransparent: string;
148
- borderSelected: string;
149
- borderInverseOpaque: string;
150
- borderInverseTransparent: string;
151
- borderInverseSelected: string;
152
-
153
- /* CoreExtensionSemanticColorTokensT */
154
-
155
- // Backgrounds
156
- backgroundStateDisabled: string;
157
- backgroundOverlayDark: string;
158
- backgroundOverlayLight: string;
159
- backgroundAccent: string;
160
- backgroundNegative: string;
161
- backgroundWarning: string;
162
- backgroundPositive: string;
163
- backgroundLightAccent: string;
164
- backgroundLightPositive: string;
165
- backgroundLightNegative: string;
166
- backgroundLightWarning: string;
167
- backgroundAlwaysDark: string;
168
- backgroundAlwaysLight: string;
169
-
170
- // Content
171
- contentStateDisabled: string;
172
- contentAccent: string;
173
- contentOnColor: string;
174
- contentOnColorInverse: string;
175
- contentNegative: string;
176
- contentWarning: string;
177
- contentPositive: string;
178
-
179
- // Border
180
- borderStateDisabled: string;
181
- borderAccent: string;
182
- borderAccentLight: string;
183
- borderNegative: string;
184
- borderWarning: string;
185
- borderPositive: string;
186
-
187
- // Programs
188
- safety: string;
189
- eatsGreen400: string;
190
- freightBlue400: string;
191
- jumpRed400: string;
192
- rewardsTier1: string;
193
- rewardsTier2: string;
194
- rewardsTier3: string;
195
- rewardsTier4: string;
196
- membership: string;
197
-
198
- /* ---- End of Semantic Colors ---- */
199
-
200
- /* ---- Component Specific Colors ---- */
201
-
202
- // Buttons
203
- buttonPrimaryFill: string;
204
- buttonPrimaryText: string;
205
- buttonPrimaryHover: string;
206
- buttonPrimaryActive: string;
207
- buttonPrimarySelectedText: string;
208
- buttonPrimarySelectedFill: string;
209
- buttonPrimarySpinnerForeground: string;
210
- buttonPrimarySpinnerBackground: string;
211
- buttonSecondaryFill: string;
212
- buttonSecondaryText: string;
213
- buttonSecondaryHover: string;
214
- buttonSecondaryActive: string;
215
- buttonSecondarySelectedText: string;
216
- buttonSecondarySelectedFill: string;
217
- buttonSecondarySpinnerForeground: string;
218
- buttonSecondarySpinnerBackground: string;
219
- buttonTertiaryFill: string;
220
- buttonTertiaryText: string;
221
- buttonTertiaryHover: string;
222
- buttonTertiaryActive: string;
223
- buttonTertiarySelectedText: string;
224
- buttonTertiarySelectedFill: string;
225
- buttonTertiarySpinnerForeground: string;
226
- buttonTertiarySpinnerBackground: string;
227
- buttonDisabledFill: string;
228
- buttonDisabledText: string;
229
- buttonDisabledSpinnerForeground: string;
230
- buttonDisabledSpinnerBackground: string;
231
-
232
- // Breadcrumbs
233
- breadcrumbsText: string;
234
- breadcrumbsSeparatorFill: string;
235
-
236
- // Datepicker
237
- calendarBackground: string;
238
- calendarForeground: string;
239
- calendarForegroundDisabled: string;
240
- calendarHeaderBackground: string;
241
- calendarHeaderForeground: string;
242
- calendarHeaderBackgroundActive: string;
243
- calendarHeaderForegroundDisabled: string;
244
- calendarDayBackgroundPseudoSelected: string;
245
- calendarDayForegroundPseudoSelected: string;
246
- calendarDayBackgroundPseudoSelectedHighlighted: string;
247
- calendarDayForegroundPseudoSelectedHighlighted: string;
248
- calendarDayBackgroundSelected: string;
249
- calendarDayForegroundSelected: string;
250
- calendarDayBackgroundSelectedHighlighted: string;
251
- calendarDayForegroundSelectedHighlighted: string;
252
-
253
- // Combobox
254
- comboboxListItemFocus: string;
255
- comboboxListItemHover: string;
256
-
257
- // FileUploader
258
- fileUploaderBackgroundColor: string;
259
- fileUploaderBackgroundColorActive: string;
260
- fileUploaderBorderColorActive: string;
261
- fileUploaderBorderColorDefault: string;
262
- fileUploaderMessageColor: string;
263
-
264
- // Links
265
- linkText: string;
266
- linkVisited: string;
267
- linkHover: string;
268
- linkActive: string;
269
-
270
- // Lists
271
- listHeaderFill: string;
272
- listBodyFill: string;
273
-
274
- // ProgressSteps
275
- progressStepsCompletedText: string;
276
- progressStepsCompletedFill: string;
277
- progressStepsActiveText: string;
278
- progressStepsActiveFill: string;
279
-
280
- // Toggle
281
- toggleFill: string;
282
- toggleFillChecked: string;
283
- toggleFillDisabled: string;
284
- toggleTrackFill: string;
285
- toggleTrackFillDisabled: string;
286
-
287
- // Ticks
288
- tickFill: string;
289
- tickFillHover: string;
290
- tickFillActive: string;
291
- tickFillSelected: string;
292
- tickFillSelectedHover: string;
293
- tickFillSelectedHoverActive: string;
294
- tickFillError: string;
295
- tickFillErrorHover: string;
296
- tickFillErrorHoverActive: string;
297
- tickFillErrorSelected: string;
298
- tickFillErrorSelectedHover: string;
299
- tickFillErrorSelectedHoverActive: string;
300
- tickFillDisabled: string;
301
- tickBorder: string;
302
- tickBorderError: string;
303
- tickMarkFill: string;
304
- tickMarkFillDisabled: string;
305
- tickMarkFillError: string;
306
-
307
- // Slider/Toggle
308
- sliderTrackFill: string;
309
- sliderTrackFillHover: string;
310
- sliderTrackFillActive: string;
311
- sliderTrackFillDisabled: string;
312
- sliderHandleFill: string;
313
- sliderHandleFillDisabled: string;
314
- sliderHandleInnerFill: string;
315
- sliderHandleInnerFillDisabled: string;
316
- sliderHandleInnerFillSelectedHover: string;
317
- sliderHandleInnerFillSelectedActive: string;
318
-
319
- // Input
320
- inputBorder: string;
321
- inputFill: string;
322
- inputFillError: string;
323
- inputFillDisabled: string;
324
- inputFillActive: string;
325
- inputFillPositive: string;
326
- inputTextDisabled: string;
327
- inputBorderError: string;
328
- inputBorderPositive: string;
329
- inputEnhancerFill: string;
330
- inputEnhancerFillDisabled: string;
331
- inputEnhancerTextDisabled: string;
332
- inputPlaceholder: string;
333
- inputPlaceholderDisabled: string;
334
-
335
- // Notification
336
- notificationInfoBackground: string;
337
- notificationInfoText: string;
338
- notificationPositiveBackground: string;
339
- notificationPositiveText: string;
340
- notificationWarningBackground: string;
341
- notificationWarningText: string;
342
- notificationNegativeBackground: string;
343
- notificationNegativeText: string;
344
-
345
- // Menu
346
- menuFill: string;
347
- menuFillHover: string;
348
- menuFontDefault: string;
349
- menuFontDisabled: string;
350
- menuFontHighlighted: string;
351
- menuFontSelected: string;
352
-
353
- // Modal
354
- modalCloseColor: string;
355
- modalCloseColorHover: string;
356
- modalCloseColorFocus: string;
357
-
358
- // Tab
359
- tabBarFill: string;
360
- tabColor: string;
361
-
362
- // Shadow
363
- shadowFocus: string;
364
- shadowError: string;
365
-
366
- // Tag
367
- tagSolidRampUnit: string;
368
- tagSolidHoverRampUnit: string;
369
- tagSolidActiveRampUnit: string;
370
- tagSolidDisabledRampUnit: string;
371
- tagSolidFontRampUnit: string;
372
- tagSolidFontHoverRampUnit: string;
373
- tagLightRampUnit: string;
374
- tagLightHoverRampUnit: string;
375
- tagLightActiveRampUnit: string;
376
- tagLightFontRampUnit: string;
377
- tagLightFontHoverRampUnit: string;
378
- tagOutlinedRampUnit: string;
379
- tagOutlinedHoverRampUnit: string;
380
- tagOutlinedActiveRampUnit: string;
381
- tagOutlinedFontRampUnit: string;
382
- tagOutlinedFontHoverRampUnit: string;
383
- tagFontDisabledRampUnit: string;
384
-
385
- tagNeutralSolidBackground: string;
386
- tagNeutralSolidHover: string;
387
- tagNeutralSolidActive: string;
388
- tagNeutralSolidDisabled: string;
389
- tagNeutralSolidFont: string;
390
- tagNeutralSolidFontHover: string;
391
- tagNeutralLightBackground: string;
392
- tagNeutralLightHover: string;
393
- tagNeutralLightActive: string;
394
- tagNeutralLightDisabled: string;
395
- tagNeutralLightFont: string;
396
- tagNeutralLightFontHover: string;
397
- tagNeutralOutlinedBackground: string;
398
- tagNeutralOutlinedHover: string;
399
- tagNeutralOutlinedActive: string;
400
- tagNeutralOutlinedDisabled: string;
401
- tagNeutralOutlinedFont: string;
402
- tagNeutralOutlinedFontHover: string;
403
- tagNeutralFontDisabled: string;
404
-
405
- tagPrimarySolidBackground: string;
406
- tagPrimarySolidHover: string;
407
- tagPrimarySolidActive: string;
408
- tagPrimarySolidDisabled: string;
409
- tagPrimarySolidFont: string;
410
- tagPrimarySolidFontHover: string;
411
- tagPrimaryLightBackground: string;
412
- tagPrimaryLightHover: string;
413
- tagPrimaryLightActive: string;
414
- tagPrimaryLightDisabled: string;
415
- tagPrimaryLightFont: string;
416
- tagPrimaryLightFontHover: string;
417
- tagPrimaryOutlinedBackground: string;
418
- tagPrimaryOutlinedHover: string;
419
- tagPrimaryOutlinedActive: string;
420
- tagPrimaryOutlinedDisabled: string;
421
- tagPrimaryOutlinedFont: string;
422
- tagPrimaryOutlinedFontHover: string;
423
- tagPrimaryFontDisabled: string;
424
-
425
- tagAccentSolidBackground: string;
426
- tagAccentSolidHover: string;
427
- tagAccentSolidActive: string;
428
- tagAccentSolidDisabled: string;
429
- tagAccentSolidFont: string;
430
- tagAccentSolidFontHover: string;
431
- tagAccentLightBackground: string;
432
- tagAccentLightHover: string;
433
- tagAccentLightActive: string;
434
- tagAccentLightDisabled: string;
435
- tagAccentLightFont: string;
436
- tagAccentLightFontHover: string;
437
- tagAccentOutlinedBackground: string;
438
- tagAccentOutlinedHover: string;
439
- tagAccentOutlinedActive: string;
440
- tagAccentOutlinedDisabled: string;
441
- tagAccentOutlinedFont: string;
442
- tagAccentOutlinedFontHover: string;
443
- tagAccentFontDisabled: string;
444
-
445
- tagPositiveSolidBackground: string;
446
- tagPositiveSolidHover: string;
447
- tagPositiveSolidActive: string;
448
- tagPositiveSolidDisabled: string;
449
- tagPositiveSolidFont: string;
450
- tagPositiveSolidFontHover: string;
451
- tagPositiveLightBackground: string;
452
- tagPositiveLightHover: string;
453
- tagPositiveLightActive: string;
454
- tagPositiveLightDisabled: string;
455
- tagPositiveLightFont: string;
456
- tagPositiveLightFontHover: string;
457
- tagPositiveOutlinedBackground: string;
458
- tagPositiveOutlinedHover: string;
459
- tagPositiveOutlinedActive: string;
460
- tagPositiveOutlinedDisabled: string;
461
- tagPositiveOutlinedFont: string;
462
- tagPositiveOutlinedFontHover: string;
463
- tagPositiveFontDisabled: string;
464
-
465
- tagWarningSolidBackground: string;
466
- tagWarningSolidHover: string;
467
- tagWarningSolidActive: string;
468
- tagWarningSolidDisabled: string;
469
- tagWarningSolidFont: string;
470
- tagWarningSolidFontHover: string;
471
- tagWarningLightBackground: string;
472
- tagWarningLightHover: string;
473
- tagWarningLightActive: string;
474
- tagWarningLightDisabled: string;
475
- tagWarningLightFont: string;
476
- tagWarningLightFontHover: string;
477
- tagWarningOutlinedBackground: string;
478
- tagWarningOutlinedHover: string;
479
- tagWarningOutlinedActive: string;
480
- tagWarningOutlinedDisabled: string;
481
- tagWarningOutlinedFont: string;
482
- tagWarningOutlinedFontHover: string;
483
- tagWarningFontDisabled: string;
484
-
485
- tagNegativeSolidBackground: string;
486
- tagNegativeSolidHover: string;
487
- tagNegativeSolidActive: string;
488
- tagNegativeSolidDisabled: string;
489
- tagNegativeSolidFont: string;
490
- tagNegativeSolidFontHover: string;
491
- tagNegativeLightBackground: string;
492
- tagNegativeLightHover: string;
493
- tagNegativeLightActive: string;
494
- tagNegativeLightDisabled: string;
495
- tagNegativeLightFont: string;
496
- tagNegativeLightFontHover: string;
497
- tagNegativeOutlinedBackground: string;
498
- tagNegativeOutlinedHover: string;
499
- tagNegativeOutlinedActive: string;
500
- tagNegativeOutlinedDisabled: string;
501
- tagNegativeOutlinedFont: string;
502
- tagNegativeOutlinedFontHover: string;
503
- tagNegativeFontDisabled: string;
504
-
505
- // Table
506
- tableHeadBackgroundColor: string;
507
- tableBackground: string;
508
- tableStripedBackground: string;
509
- tableFilter: string;
510
- tableFilterHeading: string;
511
- tableFilterBackground: string;
512
- tableFilterFooterBackground: string;
513
-
514
- // Toast
515
- toastText: string;
516
- toastInfoBackground: string;
517
- toastPositiveBackground: string;
518
- toastWarningBackground: string;
519
- toastNegativeBackground: string;
520
-
521
- // Spinner
522
- spinnerTrackFill: string;
523
-
524
- // Progress bar
525
- progressbarTrackFill: string;
526
-
527
- // Tooltip
528
- tooltipBackground: string;
529
- tooltipText: string;
530
-
531
- /* ---- End of Component Specific Colors ---- */
532
- }
533
-
534
- export interface Font {
535
- fontFamily: string;
536
- fontWeight:
537
- | '-moz-initial'
538
- | 'inherit'
539
- | 'initial'
540
- | 'revert'
541
- | 'unset'
542
- | 'bold'
543
- | 'normal'
544
- | 'bolder'
545
- | 'lighter'
546
- | number;
547
- fontSize: string;
548
- lineHeight: string | number;
549
- }
550
-
551
- export interface Typography {
552
- font100: Font;
553
- font150: Font;
554
- font200: Font;
555
- font250: Font;
556
- font300: Font;
557
- font350: Font;
558
- font400: Font;
559
- font450: Font;
560
- font550: Font;
561
- font650: Font;
562
- font750: Font;
563
- font850: Font;
564
- font950: Font;
565
- font1050: Font;
566
- font1150: Font;
567
- font1250: Font;
568
- font1350: Font;
569
- font1450: Font;
570
-
571
- ParagraphXSmall: Font;
572
- ParagraphSmall: Font;
573
- ParagraphMedium: Font;
574
- ParagraphLarge: Font;
575
- LabelXSmall: Font;
576
- LabelSmall: Font;
577
- LabelMedium: Font;
578
- LabelLarge: Font;
579
- HeadingXSmall: Font;
580
- HeadingSmall: Font;
581
- HeadingMedium: Font;
582
- HeadingLarge: Font;
583
- HeadingXLarge: Font;
584
- HeadingXXLarge: Font;
585
- DisplayXSmall: Font;
586
- DisplaySmall: Font;
587
- DisplayMedium: Font;
588
- DisplayLarge: Font;
589
-
590
- MonoParagraphXSmall: Font;
591
- MonoParagraphSmall: Font;
592
- MonoParagraphMedium: Font;
593
- MonoParagraphLarge: Font;
594
- MonoLabelXSmall: Font;
595
- MonoLabelSmall: Font;
596
- MonoLabelMedium: Font;
597
- MonoLabelLarge: Font;
598
- MonoHeadingXSmall: Font;
599
- MonoHeadingSmall: Font;
600
- MonoHeadingMedium: Font;
601
- MonoHeadingLarge: Font;
602
- MonoHeadingXLarge: Font;
603
- MonoHeadingXXLarge: Font;
604
- MonoDisplayXSmall: Font;
605
- MonoDisplaySmall: Font;
606
- MonoDisplayMedium: Font;
607
- MonoDisplayLarge: Font;
608
- }
609
-
610
- export interface Sizing {
611
- scale0: string;
612
- scale100: string;
613
- scale200: string;
614
- scale300: string;
615
- scale400: string;
616
- scale500: string;
617
- scale550: string;
618
- scale600: string;
619
- scale650: string;
620
- scale700: string;
621
- scale750: string;
622
- scale800: string;
623
- scale850: string;
624
- scale900: string;
625
- scale950: string;
626
- scale1000: string;
627
- scale1200: string;
628
- scale1400: string;
629
- scale1600: string;
630
- scale2400: string;
631
- scale3200: string;
632
- scale4800: string;
633
- }
634
-
635
- export interface Lighting {
636
- shadow400: string;
637
- shadow500: string;
638
- shadow600: string;
639
- shadow700: string;
640
- overlay0: string;
641
- overlay100: string;
642
- overlay200: string;
643
- overlay300: string;
644
- overlay400: string;
645
- overlay500: string;
646
- overlay600: string;
647
- }
648
-
649
- export interface Animation {
650
- timing100: string;
651
- timing200: string;
652
- timing300: string;
653
- timing400: string;
654
- timing500: string;
655
- timing600: string;
656
- timing700: string;
657
- timing800: string;
658
- timing900: string;
659
- timing1000: string;
660
- easeOutCurve: string;
661
- easeInCurve: string;
662
- easeInOutCurve: string;
663
- easeInQuinticCurve: string;
664
- easeOutQuinticCurve: string;
665
- easeInOutQuinticCurve: string;
666
- linearCurve: string;
667
- }
668
-
669
- export interface Border {
670
- borderColor: string;
671
- borderStyle: string;
672
- borderWidth: string;
673
- }
674
-
675
- export interface Borders {
676
- border100: Border;
677
- border200: Border;
678
- border300: Border;
679
- border400: Border;
680
- border500: Border;
681
- border600: Border;
682
- useRoundedCorners: boolean;
683
- radius100: string;
684
- radius200: string;
685
- radius300: string;
686
- radius400: string;
687
- radius500: string;
688
- buttonBorderRadius: string;
689
- inputBorderRadius: string;
690
- popoverBorderRadius: string;
691
- surfaceBorderRadius: string;
692
- tagBorderRadius: string;
693
- }
694
-
695
- export interface ZIndex {
696
- modal: number;
697
- }
698
-
699
- export interface Theme {
700
- name: string;
701
- direction: 'auto' | 'rtl' | 'ltr';
702
- breakpoints: Breakpoints;
703
- mediaQuery: MediaQuery;
704
- grid: Grid;
705
- colors: Colors;
706
- typography: Typography;
707
- sizing: Sizing;
708
- lighting: Lighting;
709
- animation: Animation;
710
- borders: Borders;
711
- zIndex: ZIndex;
712
- }
713
-
714
- export interface ThemePrimitives {
715
- // Primary Palette
716
- primaryA: string;
717
- primaryB: string;
718
- primary: string;
719
- primary50: string;
720
- primary100: string;
721
- primary200: string;
722
- primary300: string;
723
- primary400: string;
724
- primary500: string;
725
- primary600: string;
726
- primary700: string;
727
-
728
- // Accent Palette
729
- accent: string;
730
- accent50: string;
731
- accent100: string;
732
- accent200: string;
733
- accent300: string;
734
- accent400: string;
735
- accent500: string;
736
- accent600: string;
737
- accent700: string;
738
-
739
- // Alert Palette
740
- negative: string;
741
- negative50: string;
742
- negative100: string;
743
- negative200: string;
744
- negative300: string;
745
- negative400: string;
746
- negative500: string;
747
- negative600: string;
748
- negative700: string;
749
-
750
- // Warning Palette
751
- warning: string;
752
- warning50: string;
753
- warning100: string;
754
- warning200: string;
755
- warning300: string;
756
- warning400: string;
757
- warning500: string;
758
- warning600: string;
759
- warning700: string;
760
-
761
- // Success Palette
762
- positive: string;
763
- positive50: string;
764
- positive100: string;
765
- positive200: string;
766
- positive300: string;
767
- positive400: string;
768
- positive500: string;
769
- positive600: string;
770
- positive700: string;
771
-
772
- // Monochrome Palette
773
- mono100: string;
774
- mono200: string;
775
- mono300: string;
776
- mono400: string;
777
- mono500: string;
778
- mono600: string;
779
- mono700: string;
780
- mono800: string;
781
- mono900: string;
782
- mono1000: string;
783
-
784
- primaryFontFamily: string;
785
- }
9
+ import type {
10
+ Breakpoints,
11
+ MediaQuery,
12
+ Grid,
13
+ Colors,
14
+ Font,
15
+ Typography,
16
+ Sizing,
17
+ Lighting,
18
+ Animation,
19
+ Border,
20
+ Borders,
21
+ ZIndex,
22
+ ThemePrimitives,
23
+ } from './themes';
24
+ import type { Responsive, CSSLengthUnitT } from './layout-grid';
25
+ import type { Theme } from './styles';
26
+
27
+ export type {
28
+ Breakpoints,
29
+ MediaQuery,
30
+ Grid,
31
+ Colors,
32
+ Font,
33
+ Typography,
34
+ Sizing,
35
+ Lighting,
36
+ Animation,
37
+ Border,
38
+ Borders,
39
+ ZIndex,
40
+ Responsive,
41
+ CSSLengthUnitT,
42
+ ThemePrimitives,
43
+ Theme,
44
+ };