@aic-kits/react 0.0.18 → 0.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 (55) hide show
  1. package/dist/components/Art/BrandArt.d.ts +3 -0
  2. package/dist/components/Art/EmojiArt.d.ts +3 -0
  3. package/dist/components/Art/IconArt.d.ts +3 -0
  4. package/dist/components/Art/ImageArt.d.ts +3 -0
  5. package/dist/components/Art/SvgArt.d.ts +3 -0
  6. package/dist/components/Art/index.d.ts +11 -0
  7. package/dist/components/Art/types.d.ts +75 -0
  8. package/dist/components/Art/utils.d.ts +16 -0
  9. package/dist/components/Base/BaseFooter.d.ts +8 -0
  10. package/dist/components/Base/index.d.ts +4 -0
  11. package/dist/components/Base/types.d.ts +44 -0
  12. package/dist/components/Box/StyledBox.d.ts +37 -0
  13. package/dist/components/Box/config.d.ts +478 -0
  14. package/dist/components/Box/index.d.ts +9 -0
  15. package/dist/components/Box/types.d.ts +49 -0
  16. package/dist/components/Button/StyledButton.d.ts +25 -0
  17. package/dist/components/Button/index.d.ts +54 -0
  18. package/dist/components/Button/utils.d.ts +3 -0
  19. package/dist/components/Loading/StyledLoading.d.ts +10 -0
  20. package/dist/components/Loading/index.d.ts +4 -0
  21. package/dist/components/Loading/types.d.ts +28 -0
  22. package/dist/components/Text/StyledText.d.ts +12 -0
  23. package/dist/components/Text/constants.d.ts +2 -0
  24. package/dist/components/Text/index.d.ts +6 -0
  25. package/dist/components/Text/types.d.ts +49 -0
  26. package/dist/components/Text/withRichText.d.ts +5 -0
  27. package/dist/components/Touchable/index.d.ts +4 -0
  28. package/dist/components/Touchable/types.d.ts +21 -0
  29. package/dist/components/index.d.ts +7 -1
  30. package/dist/index.cjs +155 -31
  31. package/dist/index.d.ts +1 -0
  32. package/dist/index.js +6037 -411
  33. package/dist/theme/ThemeProvider.d.ts +16 -0
  34. package/dist/theme/common/borders.d.ts +8 -0
  35. package/dist/theme/common/colors.d.ts +4 -0
  36. package/dist/theme/common/gradient.d.ts +4 -0
  37. package/dist/theme/common/index.d.ts +36 -0
  38. package/dist/theme/common/scale.d.ts +11 -0
  39. package/dist/theme/common/shadows.d.ts +5 -0
  40. package/dist/theme/common/sizes.d.ts +4 -0
  41. package/dist/theme/common/spaces.d.ts +4 -0
  42. package/dist/theme/common/text.d.ts +15 -0
  43. package/dist/theme/components/art.d.ts +5 -0
  44. package/dist/theme/components/base.d.ts +8 -0
  45. package/dist/theme/components/button.d.ts +12 -0
  46. package/dist/theme/components/index.d.ts +19 -0
  47. package/dist/theme/components/loading.d.ts +16 -0
  48. package/dist/theme/components/touchable.d.ts +14 -0
  49. package/dist/theme/getTheme.d.ts +19 -0
  50. package/dist/theme/index.d.ts +7 -0
  51. package/dist/theme/styled.d.ts +135 -0
  52. package/dist/utils/index.d.ts +1 -0
  53. package/dist/utils/ssr.d.ts +1 -0
  54. package/package.json +10 -3
  55. package/dist/components/Example.d.ts +0 -1
@@ -0,0 +1,478 @@
1
+ import { CSSProperties } from 'react';
2
+ declare const colors: {
3
+ readonly bgColor: {
4
+ readonly property: "backgroundColor";
5
+ readonly scale: "colors";
6
+ };
7
+ readonly backgroundColor: {
8
+ readonly property: "backgroundColor";
9
+ readonly scale: "colors";
10
+ };
11
+ readonly borderColor: {
12
+ readonly property: "borderColor";
13
+ readonly scale: "colors";
14
+ };
15
+ readonly borderTopColor: {
16
+ readonly property: "borderTopColor";
17
+ readonly scale: "colors";
18
+ };
19
+ readonly borderBottomColor: {
20
+ readonly property: "borderBottomColor";
21
+ readonly scale: "colors";
22
+ };
23
+ readonly borderLeftColor: {
24
+ readonly property: "borderLeftColor";
25
+ readonly scale: "colors";
26
+ };
27
+ readonly borderRightColor: {
28
+ readonly property: "borderRightColor";
29
+ readonly scale: "colors";
30
+ };
31
+ };
32
+ declare const spaces: {
33
+ readonly m: {
34
+ readonly property: "margin";
35
+ readonly scale: "space";
36
+ };
37
+ readonly mt: {
38
+ readonly property: "marginTop";
39
+ readonly scale: "space";
40
+ };
41
+ readonly mb: {
42
+ readonly property: "marginBottom";
43
+ readonly scale: "space";
44
+ };
45
+ readonly ml: {
46
+ readonly property: "marginLeft";
47
+ readonly scale: "space";
48
+ };
49
+ readonly mr: {
50
+ readonly property: "marginRight";
51
+ readonly scale: "space";
52
+ };
53
+ readonly mx: {
54
+ readonly property: "marginInline";
55
+ readonly scale: "space";
56
+ };
57
+ readonly my: {
58
+ readonly property: "marginBlock";
59
+ readonly scale: "space";
60
+ };
61
+ readonly p: {
62
+ readonly property: "padding";
63
+ readonly scale: "space";
64
+ };
65
+ readonly pt: {
66
+ readonly property: "paddingTop";
67
+ readonly scale: "space";
68
+ };
69
+ readonly pb: {
70
+ readonly property: "paddingBottom";
71
+ readonly scale: "space";
72
+ };
73
+ readonly pl: {
74
+ readonly property: "paddingLeft";
75
+ readonly scale: "space";
76
+ };
77
+ readonly pr: {
78
+ readonly property: "paddingRight";
79
+ readonly scale: "space";
80
+ };
81
+ readonly px: {
82
+ readonly property: "paddingInline";
83
+ readonly scale: "space";
84
+ };
85
+ readonly py: {
86
+ readonly property: "paddingBlock";
87
+ readonly scale: "space";
88
+ };
89
+ readonly margin: {
90
+ readonly property: "margin";
91
+ readonly scale: "space";
92
+ };
93
+ readonly marginBottom: {
94
+ readonly property: "marginBottom";
95
+ readonly scale: "space";
96
+ };
97
+ readonly marginLeft: {
98
+ readonly property: "marginLeft";
99
+ readonly scale: "space";
100
+ };
101
+ readonly marginRight: {
102
+ readonly property: "marginRight";
103
+ readonly scale: "space";
104
+ };
105
+ readonly marginTop: {
106
+ readonly property: "marginTop";
107
+ readonly scale: "space";
108
+ };
109
+ readonly marginX: {
110
+ readonly property: "marginInline";
111
+ readonly scale: "space";
112
+ };
113
+ readonly marginY: {
114
+ readonly property: "marginBlock";
115
+ readonly scale: "space";
116
+ };
117
+ readonly padding: {
118
+ readonly property: "padding";
119
+ readonly scale: "space";
120
+ };
121
+ readonly paddingBottom: {
122
+ readonly property: "paddingBottom";
123
+ readonly scale: "space";
124
+ };
125
+ readonly paddingLeft: {
126
+ readonly property: "paddingLeft";
127
+ readonly scale: "space";
128
+ };
129
+ readonly paddingRight: {
130
+ readonly property: "paddingRight";
131
+ readonly scale: "space";
132
+ };
133
+ readonly paddingTop: {
134
+ readonly property: "paddingTop";
135
+ readonly scale: "space";
136
+ };
137
+ readonly paddingX: {
138
+ readonly property: "paddingInline";
139
+ readonly scale: "space";
140
+ };
141
+ readonly paddingY: {
142
+ readonly property: "paddingBlock";
143
+ readonly scale: "space";
144
+ };
145
+ readonly gap: {
146
+ readonly property: "gap";
147
+ readonly scale: "space";
148
+ };
149
+ };
150
+ declare const radii: {
151
+ readonly bbl: {
152
+ readonly property: "borderBottomLeftRadius";
153
+ readonly scale: "radii";
154
+ };
155
+ readonly bbr: {
156
+ readonly property: "borderBottomRightRadius";
157
+ readonly scale: "radii";
158
+ };
159
+ readonly btl: {
160
+ readonly property: "borderTopLeftRadius";
161
+ readonly scale: "radii";
162
+ };
163
+ readonly btr: {
164
+ readonly property: "borderTopRightRadius";
165
+ readonly scale: "radii";
166
+ };
167
+ readonly r: {
168
+ readonly property: "borderRadius";
169
+ readonly scale: "radii";
170
+ };
171
+ readonly radius: {
172
+ readonly property: "borderRadius";
173
+ readonly scale: "radii";
174
+ };
175
+ readonly borderBottomLeftRadius: {
176
+ readonly property: "borderBottomLeftRadius";
177
+ readonly scale: "radii";
178
+ };
179
+ readonly borderBottomRightRadius: {
180
+ readonly property: "borderBottomRightRadius";
181
+ readonly scale: "radii";
182
+ };
183
+ readonly borderTopLeftRadius: {
184
+ readonly property: "borderTopLeftRadius";
185
+ readonly scale: "radii";
186
+ };
187
+ readonly borderTopRightRadius: {
188
+ readonly property: "borderTopRightRadius";
189
+ readonly scale: "radii";
190
+ };
191
+ readonly borderRadius: {
192
+ readonly property: "borderRadius";
193
+ readonly scale: "radii";
194
+ };
195
+ };
196
+ declare const borderWidths: {
197
+ readonly b: {
198
+ readonly property: "borderWidth";
199
+ readonly scale: "borderWidths";
200
+ };
201
+ readonly bb: {
202
+ readonly property: "borderBottomWidth";
203
+ readonly scale: "borderWidths";
204
+ };
205
+ readonly bt: {
206
+ readonly property: "borderTopWidth";
207
+ readonly scale: "borderWidths";
208
+ };
209
+ readonly bl: {
210
+ readonly property: "borderLeftWidth";
211
+ readonly scale: "borderWidths";
212
+ };
213
+ readonly br: {
214
+ readonly property: "borderRightWidth";
215
+ readonly scale: "borderWidths";
216
+ };
217
+ readonly borderWidth: {
218
+ readonly property: "borderWidth";
219
+ readonly scale: "borderWidths";
220
+ };
221
+ readonly borderBottomWidth: {
222
+ readonly property: "borderBottomWidth";
223
+ readonly scale: "borderWidths";
224
+ };
225
+ readonly borderTopWidth: {
226
+ readonly property: "borderTopWidth";
227
+ readonly scale: "borderWidths";
228
+ };
229
+ readonly borderLeftWidth: {
230
+ readonly property: "borderLeftWidth";
231
+ readonly scale: "borderWidths";
232
+ };
233
+ readonly borderRightWidth: {
234
+ readonly property: "borderRightWidth";
235
+ readonly scale: "borderWidths";
236
+ };
237
+ };
238
+ declare const config: {
239
+ readonly b: {
240
+ readonly property: "borderWidth";
241
+ readonly scale: "borderWidths";
242
+ };
243
+ readonly bb: {
244
+ readonly property: "borderBottomWidth";
245
+ readonly scale: "borderWidths";
246
+ };
247
+ readonly bt: {
248
+ readonly property: "borderTopWidth";
249
+ readonly scale: "borderWidths";
250
+ };
251
+ readonly bl: {
252
+ readonly property: "borderLeftWidth";
253
+ readonly scale: "borderWidths";
254
+ };
255
+ readonly br: {
256
+ readonly property: "borderRightWidth";
257
+ readonly scale: "borderWidths";
258
+ };
259
+ readonly borderWidth: {
260
+ readonly property: "borderWidth";
261
+ readonly scale: "borderWidths";
262
+ };
263
+ readonly borderBottomWidth: {
264
+ readonly property: "borderBottomWidth";
265
+ readonly scale: "borderWidths";
266
+ };
267
+ readonly borderTopWidth: {
268
+ readonly property: "borderTopWidth";
269
+ readonly scale: "borderWidths";
270
+ };
271
+ readonly borderLeftWidth: {
272
+ readonly property: "borderLeftWidth";
273
+ readonly scale: "borderWidths";
274
+ };
275
+ readonly borderRightWidth: {
276
+ readonly property: "borderRightWidth";
277
+ readonly scale: "borderWidths";
278
+ };
279
+ readonly bbl: {
280
+ readonly property: "borderBottomLeftRadius";
281
+ readonly scale: "radii";
282
+ };
283
+ readonly bbr: {
284
+ readonly property: "borderBottomRightRadius";
285
+ readonly scale: "radii";
286
+ };
287
+ readonly btl: {
288
+ readonly property: "borderTopLeftRadius";
289
+ readonly scale: "radii";
290
+ };
291
+ readonly btr: {
292
+ readonly property: "borderTopRightRadius";
293
+ readonly scale: "radii";
294
+ };
295
+ readonly r: {
296
+ readonly property: "borderRadius";
297
+ readonly scale: "radii";
298
+ };
299
+ readonly radius: {
300
+ readonly property: "borderRadius";
301
+ readonly scale: "radii";
302
+ };
303
+ readonly borderBottomLeftRadius: {
304
+ readonly property: "borderBottomLeftRadius";
305
+ readonly scale: "radii";
306
+ };
307
+ readonly borderBottomRightRadius: {
308
+ readonly property: "borderBottomRightRadius";
309
+ readonly scale: "radii";
310
+ };
311
+ readonly borderTopLeftRadius: {
312
+ readonly property: "borderTopLeftRadius";
313
+ readonly scale: "radii";
314
+ };
315
+ readonly borderTopRightRadius: {
316
+ readonly property: "borderTopRightRadius";
317
+ readonly scale: "radii";
318
+ };
319
+ readonly borderRadius: {
320
+ readonly property: "borderRadius";
321
+ readonly scale: "radii";
322
+ };
323
+ readonly m: {
324
+ readonly property: "margin";
325
+ readonly scale: "space";
326
+ };
327
+ readonly mt: {
328
+ readonly property: "marginTop";
329
+ readonly scale: "space";
330
+ };
331
+ readonly mb: {
332
+ readonly property: "marginBottom";
333
+ readonly scale: "space";
334
+ };
335
+ readonly ml: {
336
+ readonly property: "marginLeft";
337
+ readonly scale: "space";
338
+ };
339
+ readonly mr: {
340
+ readonly property: "marginRight";
341
+ readonly scale: "space";
342
+ };
343
+ readonly mx: {
344
+ readonly property: "marginInline";
345
+ readonly scale: "space";
346
+ };
347
+ readonly my: {
348
+ readonly property: "marginBlock";
349
+ readonly scale: "space";
350
+ };
351
+ readonly p: {
352
+ readonly property: "padding";
353
+ readonly scale: "space";
354
+ };
355
+ readonly pt: {
356
+ readonly property: "paddingTop";
357
+ readonly scale: "space";
358
+ };
359
+ readonly pb: {
360
+ readonly property: "paddingBottom";
361
+ readonly scale: "space";
362
+ };
363
+ readonly pl: {
364
+ readonly property: "paddingLeft";
365
+ readonly scale: "space";
366
+ };
367
+ readonly pr: {
368
+ readonly property: "paddingRight";
369
+ readonly scale: "space";
370
+ };
371
+ readonly px: {
372
+ readonly property: "paddingInline";
373
+ readonly scale: "space";
374
+ };
375
+ readonly py: {
376
+ readonly property: "paddingBlock";
377
+ readonly scale: "space";
378
+ };
379
+ readonly margin: {
380
+ readonly property: "margin";
381
+ readonly scale: "space";
382
+ };
383
+ readonly marginBottom: {
384
+ readonly property: "marginBottom";
385
+ readonly scale: "space";
386
+ };
387
+ readonly marginLeft: {
388
+ readonly property: "marginLeft";
389
+ readonly scale: "space";
390
+ };
391
+ readonly marginRight: {
392
+ readonly property: "marginRight";
393
+ readonly scale: "space";
394
+ };
395
+ readonly marginTop: {
396
+ readonly property: "marginTop";
397
+ readonly scale: "space";
398
+ };
399
+ readonly marginX: {
400
+ readonly property: "marginInline";
401
+ readonly scale: "space";
402
+ };
403
+ readonly marginY: {
404
+ readonly property: "marginBlock";
405
+ readonly scale: "space";
406
+ };
407
+ readonly padding: {
408
+ readonly property: "padding";
409
+ readonly scale: "space";
410
+ };
411
+ readonly paddingBottom: {
412
+ readonly property: "paddingBottom";
413
+ readonly scale: "space";
414
+ };
415
+ readonly paddingLeft: {
416
+ readonly property: "paddingLeft";
417
+ readonly scale: "space";
418
+ };
419
+ readonly paddingRight: {
420
+ readonly property: "paddingRight";
421
+ readonly scale: "space";
422
+ };
423
+ readonly paddingTop: {
424
+ readonly property: "paddingTop";
425
+ readonly scale: "space";
426
+ };
427
+ readonly paddingX: {
428
+ readonly property: "paddingInline";
429
+ readonly scale: "space";
430
+ };
431
+ readonly paddingY: {
432
+ readonly property: "paddingBlock";
433
+ readonly scale: "space";
434
+ };
435
+ readonly gap: {
436
+ readonly property: "gap";
437
+ readonly scale: "space";
438
+ };
439
+ readonly bgColor: {
440
+ readonly property: "backgroundColor";
441
+ readonly scale: "colors";
442
+ };
443
+ readonly backgroundColor: {
444
+ readonly property: "backgroundColor";
445
+ readonly scale: "colors";
446
+ };
447
+ readonly borderColor: {
448
+ readonly property: "borderColor";
449
+ readonly scale: "colors";
450
+ };
451
+ readonly borderTopColor: {
452
+ readonly property: "borderTopColor";
453
+ readonly scale: "colors";
454
+ };
455
+ readonly borderBottomColor: {
456
+ readonly property: "borderBottomColor";
457
+ readonly scale: "colors";
458
+ };
459
+ readonly borderLeftColor: {
460
+ readonly property: "borderLeftColor";
461
+ readonly scale: "colors";
462
+ };
463
+ readonly borderRightColor: {
464
+ readonly property: "borderRightColor";
465
+ readonly scale: "colors";
466
+ };
467
+ };
468
+ export declare const flexPropsKey: readonly ["alignContent", "alignItems", "alignSelf", "display", "flex", "flexBasis", "flexDirection", "flexGrow", "flexShrink", "flexWrap", "justifyContent", "position", "top", "right", "bottom", "left", "overflow", "width", "minWidth", "maxWidth", "height", "minHeight", "maxHeight", "opacity"];
469
+ export declare const customBoxPropsKey: readonly ["fullWidth", "fullHeight", "fw", "fh"];
470
+ export type ColorPropsKeyType = keyof typeof colors;
471
+ export type SpacePropsKeyType = keyof typeof spaces;
472
+ export type RadiiPropsKeyType = keyof typeof radii;
473
+ export type BorderWidthsPropsKeyType = keyof typeof borderWidths;
474
+ export type ConfigType = typeof config;
475
+ export type FlexPropsKeyType = (typeof flexPropsKey)[number];
476
+ export type CustomBoxPropsKeyType = (typeof customBoxPropsKey)[number];
477
+ export declare const customBoxPropsConfig: Record<CustomBoxPropsKeyType, CSSProperties>;
478
+ export default config;
@@ -0,0 +1,9 @@
1
+ import { ForwardedRef } from 'react';
2
+ import { BoxProps } from './types';
3
+ declare function PlainBox({ children, style, 'data-testid': testId, ...otherProps }: BoxProps, ref: ForwardedRef<HTMLDivElement>): import("react/jsx-runtime").JSX.Element;
4
+ export declare const Box: (props: BoxProps & {
5
+ ref?: ForwardedRef<HTMLDivElement>;
6
+ }) => ReturnType<typeof PlainBox>;
7
+ export * from './config';
8
+ export * from './types';
9
+ export * from './StyledBox';
@@ -0,0 +1,49 @@
1
+ import { CSSProperties, HTMLAttributes } from 'react';
2
+ import { BorderWidth, Color, Radius, Space } from '../../theme';
3
+ import { ConfigType, FlexPropsKeyType } from './config';
4
+ export interface ThemeScale {
5
+ colors: Color;
6
+ space: Space;
7
+ radii: Radius;
8
+ borderWidths: BorderWidth;
9
+ }
10
+ type ConfigKeyType = keyof ConfigType;
11
+ export type StyleProps = {
12
+ [key in ConfigKeyType]?: ThemeScale[ConfigType[key]['scale']];
13
+ };
14
+ export type FlexStyleProps = Pick<CSSProperties, FlexPropsKeyType>;
15
+ export interface CustomBoxProps {
16
+ /**
17
+ * If true, the box will take the full width of its parent.
18
+ */
19
+ fullWidth?: boolean;
20
+ /**
21
+ * If true, the box will take the full height of its parent.
22
+ */
23
+ fullHeight?: boolean;
24
+ /**
25
+ * If true, the box will take the full width of its parent.
26
+ */
27
+ fw?: boolean;
28
+ /**
29
+ * If true, the box will take the full height of its parent.
30
+ */
31
+ fh?: boolean;
32
+ }
33
+ export interface BoxHTMLProps extends HTMLAttributes<HTMLDivElement> {
34
+ /**
35
+ * Box's content.
36
+ */
37
+ children?: React.ReactNode;
38
+ /**
39
+ * Additional styles.
40
+ */
41
+ style?: CSSProperties;
42
+ /**
43
+ * Testing id of the component.
44
+ */
45
+ 'data-testid'?: string;
46
+ }
47
+ export interface BoxProps extends StyleProps, FlexStyleProps, CustomBoxProps, BoxHTMLProps {
48
+ }
49
+ export {};
@@ -0,0 +1,25 @@
1
+ import { Color } from '../../theme/common';
2
+ type ButtonContainerProps = {
3
+ backgroundColor: Color | 'disabled';
4
+ borderRadius: string;
5
+ };
6
+ declare const StyledButtonContainer: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, ButtonContainerProps>> & string;
7
+ type ButtonTextProps = {
8
+ themeColor: Color | 'disabled';
9
+ themeTextColor?: Color;
10
+ disabled?: boolean;
11
+ };
12
+ declare const StyledButtonText: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('..').TextProps & {
13
+ useRichText?: boolean;
14
+ }, ButtonTextProps>> & string & Omit<(props: import('..').TextProps & {
15
+ useRichText?: boolean;
16
+ }) => import("react/jsx-runtime").JSX.Element, keyof import('react').Component<any, {}, any>>;
17
+ type ButtonIconWrapperProps = {
18
+ themePosition: 'left' | 'right';
19
+ };
20
+ declare const StyledButtonIconWrapper: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('..').BoxProps & {
21
+ ref?: import('react').ForwardedRef<HTMLDivElement>;
22
+ }, ButtonIconWrapperProps>> & string & Omit<(props: import('..').BoxProps & {
23
+ ref?: import('react').ForwardedRef<HTMLDivElement>;
24
+ }) => ReturnType<({ children, style, "data-testid": testId, ...otherProps }: import('..').BoxProps, ref: import('react').ForwardedRef<HTMLDivElement>) => import("react/jsx-runtime").JSX.Element>, keyof import('react').Component<any, {}, any>>;
25
+ export { StyledButtonContainer, StyledButtonText, StyledButtonIconWrapper, };
@@ -0,0 +1,54 @@
1
+ import { default as React } from 'react';
2
+ import { Color } from '../../theme/common';
3
+ export interface ButtonProps {
4
+ /**
5
+ * Disable state of button.
6
+ */
7
+ disabled?: boolean;
8
+ /**
9
+ * Places an icon within the button, before the button's text
10
+ */
11
+ icon?: React.ReactNode;
12
+ /**
13
+ * Visual color to apply to button.
14
+ */
15
+ color?: Color;
16
+ /**
17
+ * Visual color to apply to button's text.
18
+ */
19
+ textColor?: Color;
20
+ /**
21
+ * Loading state of button.
22
+ */
23
+ loading?: boolean;
24
+ /**
25
+ * Set the handler to handle click event.
26
+ */
27
+ onClick?: React.MouseEventHandler<HTMLButtonElement>;
28
+ /**
29
+ * Places an icon within the button, after the button's text
30
+ */
31
+ rightIcon?: React.ReactNode;
32
+ /**
33
+ * Corner style of button.
34
+ */
35
+ corner?: 'circle' | 'rounded' | 'square';
36
+ /**
37
+ * Additional style.
38
+ */
39
+ style?: React.CSSProperties;
40
+ /**
41
+ * Testing id of the component.
42
+ */
43
+ 'data-testid'?: string;
44
+ /**
45
+ * Button text.
46
+ */
47
+ text: React.ReactNode;
48
+ /**
49
+ * For flex layout
50
+ */
51
+ flex?: number | string;
52
+ }
53
+ export declare const Button: ({ disabled, icon, color, textColor, loading, onClick, rightIcon, corner, style, "data-testid": testId, text, ...rest }: ButtonProps) => React.ReactElement;
54
+ export * from './utils';
@@ -0,0 +1,3 @@
1
+ import { Theme } from '../../theme';
2
+ import { Color } from '../../theme/common';
3
+ export declare const getTextColor: (theme: Theme, backgroundColor: Color | "disabled", textColor?: Color) => string;
@@ -0,0 +1,10 @@
1
+ export declare const StyledLoadingContainer: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('..').BoxProps & {
2
+ ref?: import('react').ForwardedRef<HTMLDivElement>;
3
+ }, never>> & string & Omit<(props: import('..').BoxProps & {
4
+ ref?: import('react').ForwardedRef<HTMLDivElement>;
5
+ }) => ReturnType<({ children, style, "data-testid": testId, ...otherProps }: import('..').BoxProps, ref: import('react').ForwardedRef<HTMLDivElement>) => import("react/jsx-runtime").JSX.Element>, keyof import('react').Component<any, {}, any>>;
6
+ export declare const StyledSpinner: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
7
+ size: string;
8
+ color: string;
9
+ strokeWidth: string;
10
+ }>> & string;
@@ -0,0 +1,4 @@
1
+ import { default as React } from 'react';
2
+ import { LoadingProps } from './types';
3
+ export declare const Loading: React.FC<LoadingProps>;
4
+ export * from './types';
@@ -0,0 +1,28 @@
1
+ import { default as React } from 'react';
2
+ import { Color } from '../../theme';
3
+ import { LoadingSize } from '../../theme/components/loading';
4
+ import { BoxProps } from '../Box';
5
+ export interface LoadingProps extends BoxProps {
6
+ /**
7
+ * Size of the loading indicator
8
+ */
9
+ size: LoadingSize | string;
10
+ /**
11
+ * Loading state of the loading indicator
12
+ * @default true
13
+ */
14
+ loading?: boolean;
15
+ /**
16
+ * Color of the loading indicator
17
+ * @default 'primary'
18
+ */
19
+ color?: Color;
20
+ /**
21
+ * Children of the loading indicator (will be shown when loading is false)
22
+ */
23
+ children?: React.ReactNode;
24
+ /**
25
+ * Test ID for testing
26
+ */
27
+ 'data-testid'?: string;
28
+ }
@@ -0,0 +1,12 @@
1
+ import { Color, FontSize, FontWeight, Typeface } from '../../theme';
2
+ interface StyledTextProps {
3
+ themeFontSize: FontSize;
4
+ themeFontWeight: FontWeight;
5
+ themeColor: Color;
6
+ themeTypeface: Typeface;
7
+ textAlign?: 'left' | 'right' | 'center' | 'justify';
8
+ textTransform?: 'none' | 'capitalize' | 'uppercase' | 'lowercase';
9
+ textDecoration?: 'none' | 'underline' | 'line-through' | 'underline line-through';
10
+ }
11
+ declare const StyledText: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, StyledTextProps>> & string;
12
+ export { StyledText };
@@ -0,0 +1,2 @@
1
+ import { TagStyle } from './types';
2
+ export declare const SUPPORTED_RICH_TEXT_TAGS: TagStyle[];
@@ -0,0 +1,6 @@
1
+ import { TextProps } from './types';
2
+ export declare const Text: (props: TextProps & {
3
+ useRichText?: boolean;
4
+ }) => import("react/jsx-runtime").JSX.Element;
5
+ export type { TextProps };
6
+ export * from './constants';