creactive 0.0.134 → 0.0.136
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/build/classic.js +56 -56
- package/build/components/atoms/index.d.ts +3 -1
- package/build/components/atoms/text/index.d.ts +2 -2
- package/build/components/atoms/text/text.types.d.ts +2 -2
- package/build/components/atoms/view/constants/border.d.ts +40 -0
- package/build/components/atoms/view/constants/color.d.ts +25 -0
- package/build/components/{view → atoms/view}/constants/flex.d.ts +12 -3
- package/build/components/atoms/view/constants/index.d.ts +8 -0
- package/build/components/{view → atoms/view}/constants/overflow.d.ts +1 -0
- package/build/components/{view → atoms/view}/constants/position.d.ts +1 -0
- package/build/components/{view → atoms/view}/constants/shadow.d.ts +1 -0
- package/build/components/atoms/view/constants/spacing.d.ts +22 -0
- package/build/components/{view → atoms/view}/constants/tag.d.ts +2 -11
- package/build/components/atoms/view/index.d.ts +3 -0
- package/build/components/{view → atoms/view}/view.types.d.ts +77 -63
- package/build/components/index.d.ts +2 -4
- package/build/contexts/theme/constants/color.d.ts +27 -27
- package/build/contexts/theme/hooks/use-theme-style-sheet.d.ts +20 -20
- package/build/default.js +1 -1
- package/build/helpers/dimension/constants/index.d.ts +1 -0
- package/build/helpers/dimension/constants/unit.d.ts +4 -0
- package/build/helpers/dimension/dimension.d.ts +9 -0
- package/build/helpers/dimension/dimension.types.d.ts +1 -0
- package/build/helpers/dimension/index.d.ts +5 -0
- package/build/helpers/fraction/fraction.d.ts +2 -1
- package/build/helpers/fraction/fraction.types.d.ts +1 -0
- package/build/helpers/fraction/index.d.ts +5 -1
- package/build/helpers/index.d.ts +4 -5
- package/build/index.d.ts +4 -13
- package/package.json +3 -1
- package/build/components/view/constants/border.d.ts +0 -82
- package/build/components/view/constants/color.d.ts +0 -70
- package/build/components/view/constants/index.d.ts +0 -8
- package/build/components/view/constants/spacing.d.ts +0 -174
- package/build/components/view/index.d.ts +0 -3
- package/build/constants/dimension.d.ts +0 -8
- package/build/constants/fraction.d.ts +0 -3
- package/build/constants/position.d.ts +0 -3
- package/build/constants/size.d.ts +0 -2
- package/build/helpers/position/index.d.ts +0 -2
- package/build/helpers/position/position.d.ts +0 -15
- package/build/helpers/position/position.types.d.ts +0 -1
- package/build/helpers/size/index.d.ts +0 -2
- package/build/helpers/size/size.d.ts +0 -15
- package/build/helpers/size/size.types.d.ts +0 -1
|
@@ -1,2 +1,4 @@
|
|
|
1
1
|
export { Text } from './text';
|
|
2
|
-
export type { TextComponent, TextProperties, TextReference } from './text';
|
|
2
|
+
export type { TextComponent, TextMeasureCallback, TextProperties, TextReference, } from './text';
|
|
3
|
+
export { View } from './view';
|
|
4
|
+
export type { ViewComponent, ViewLayoutEvent, ViewProperties } from './view';
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type { TextComponent
|
|
1
|
+
import type { TextComponent } from './text.types';
|
|
2
2
|
export declare const Text: TextComponent;
|
|
3
|
-
export type { TextComponent, TextProperties, TextReference };
|
|
3
|
+
export type { TextComponent, TextMeasureCallback, TextProperties, TextReference, } from './text.types';
|
|
@@ -5,7 +5,7 @@ import type { TextAlign, TextColor, TextDecoration, TextFontFamily, TextFontSize
|
|
|
5
5
|
/**
|
|
6
6
|
* Provided by component reference object measure callback.
|
|
7
7
|
* Allows to access component layout element position and size.
|
|
8
|
-
* TODO:
|
|
8
|
+
* TODO: Describe arguments...
|
|
9
9
|
*/
|
|
10
10
|
export type TextMeasureCallback = (x: number, y: number, width: number, height: number) => void;
|
|
11
11
|
/**
|
|
@@ -97,7 +97,7 @@ export type TextComponent = ForwardRefExoticComponent<PropsWithoutRef<TextProper
|
|
|
97
97
|
* Used to render text component on web.
|
|
98
98
|
*/
|
|
99
99
|
export type TextStyledProperties = {
|
|
100
|
-
|
|
100
|
+
values: {
|
|
101
101
|
textAlign: 'left' | 'center' | 'right';
|
|
102
102
|
textDecoration: 'none' | 'underline';
|
|
103
103
|
fontFamily: string;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* View border color enumerated constants.
|
|
3
|
+
* Should be used to control view border color with property.
|
|
4
|
+
* @see View.BorderColor
|
|
5
|
+
*/
|
|
6
|
+
export declare enum ViewBorderColor {
|
|
7
|
+
BASE_100 = 0,
|
|
8
|
+
BASE_200 = 1,
|
|
9
|
+
BASE_300 = 2,
|
|
10
|
+
BASE_400 = 3,
|
|
11
|
+
BASE_500 = 4,
|
|
12
|
+
BASE_600 = 5,
|
|
13
|
+
BASE_700 = 6,
|
|
14
|
+
BASE_800 = 7,
|
|
15
|
+
BASE_900 = 8
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Border width enumerated constants.
|
|
19
|
+
* Should be used to control themed border width.
|
|
20
|
+
* Includes matches for all theme base border width tokens.
|
|
21
|
+
* @see View.BorderWidth
|
|
22
|
+
*/
|
|
23
|
+
export declare enum ViewBorderWidth {
|
|
24
|
+
SM = 0,
|
|
25
|
+
MD = 1,
|
|
26
|
+
LG = 2
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* View component supported border radius enumerated constants.
|
|
30
|
+
* Includes matches for all theme base border radius tokens and maximum one.
|
|
31
|
+
* @see View.BorderRadius
|
|
32
|
+
*/
|
|
33
|
+
export declare enum ViewBorderRadius {
|
|
34
|
+
XS = 0,
|
|
35
|
+
SM = 1,
|
|
36
|
+
MD = 2,
|
|
37
|
+
LG = 3,
|
|
38
|
+
XL = 4,
|
|
39
|
+
MAX = 5
|
|
40
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* View themed background color enumerated constants.
|
|
3
|
+
* Allows to pass theme background colors as component property.
|
|
4
|
+
* @see View.BackgroundColor
|
|
5
|
+
*/
|
|
6
|
+
export declare enum ViewBackgroundColor {
|
|
7
|
+
BASE_100 = 0,
|
|
8
|
+
BASE_200 = 1,
|
|
9
|
+
BASE_300 = 2,
|
|
10
|
+
BASE_400 = 3,
|
|
11
|
+
BASE_500 = 4,
|
|
12
|
+
BASE_600 = 5,
|
|
13
|
+
BASE_700 = 6,
|
|
14
|
+
BASE_800 = 7,
|
|
15
|
+
BASE_900 = 8,
|
|
16
|
+
PRIMARY_100 = 9,
|
|
17
|
+
PRIMARY_200 = 10,
|
|
18
|
+
PRIMARY_300 = 11,
|
|
19
|
+
PRIMARY_400 = 12,
|
|
20
|
+
PRIMARY_500 = 13,
|
|
21
|
+
PRIMARY_600 = 14,
|
|
22
|
+
PRIMARY_700 = 15,
|
|
23
|
+
PRIMARY_800 = 16,
|
|
24
|
+
PRIMARY_900 = 17
|
|
25
|
+
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* View flex wrap enumerated constants.
|
|
3
|
-
*
|
|
3
|
+
* Controls how children are wrapped in the flex container.
|
|
4
|
+
* @see View.FlexWrap
|
|
4
5
|
*/
|
|
5
6
|
export declare enum ViewFlexWrap {
|
|
6
7
|
NONE = 0,
|
|
@@ -9,15 +10,19 @@ export declare enum ViewFlexWrap {
|
|
|
9
10
|
/**
|
|
10
11
|
* View flex direction enumerated constants.
|
|
11
12
|
* Should be used to define flex container primary axis.
|
|
13
|
+
* @see View.FlexDirection
|
|
12
14
|
*/
|
|
13
15
|
export declare enum ViewFlexDirection {
|
|
14
16
|
COLUMN = 0,
|
|
15
|
-
ROW = 1
|
|
17
|
+
ROW = 1,
|
|
18
|
+
COLUMN_REVERSE = 2,
|
|
19
|
+
ROW_REVERSE = 3
|
|
16
20
|
}
|
|
17
21
|
/**
|
|
18
22
|
* Supported justify content values.
|
|
19
23
|
* Should be used to control spacing between and around items.
|
|
20
24
|
* Allows to define how children are distributed along the main axis.
|
|
25
|
+
* @see Text.JustifyContent
|
|
21
26
|
*/
|
|
22
27
|
export declare enum ViewJustifyContent {
|
|
23
28
|
FLEX_START = 0,
|
|
@@ -31,6 +36,7 @@ export declare enum ViewJustifyContent {
|
|
|
31
36
|
* View align items enumerated constants.
|
|
32
37
|
* Should be used to control how children are aligned along the cross axis.
|
|
33
38
|
* Affects the vertical alignment in a row and horizontal alignment in a column.
|
|
39
|
+
* @see View.AlignItems
|
|
34
40
|
*/
|
|
35
41
|
export declare enum ViewAlignItems {
|
|
36
42
|
FLEX_START = 0,
|
|
@@ -43,6 +49,7 @@ export declare enum ViewAlignItems {
|
|
|
43
49
|
* View align self constants.
|
|
44
50
|
* Should be used to override individual child alignment along the cross axis.
|
|
45
51
|
* Takes precedence over the container's alignItems setting.
|
|
52
|
+
* @see View.AlignSelf
|
|
46
53
|
*/
|
|
47
54
|
export declare enum ViewAlignSelf {
|
|
48
55
|
FLEX_START = 0,
|
|
@@ -55,6 +62,7 @@ export declare enum ViewAlignSelf {
|
|
|
55
62
|
* Supported align content enumerated values.
|
|
56
63
|
* Should be used when there are multiple lines of items.
|
|
57
64
|
* Controls how lines are distributed along the cross axis.
|
|
65
|
+
* @see View.AlignContent
|
|
58
66
|
*/
|
|
59
67
|
export declare enum ViewAlignContent {
|
|
60
68
|
FLEX_START = 0,
|
|
@@ -62,5 +70,6 @@ export declare enum ViewAlignContent {
|
|
|
62
70
|
CENTER = 2,
|
|
63
71
|
STRETCH = 3,
|
|
64
72
|
SPACE_BETWEEN = 4,
|
|
65
|
-
SPACE_AROUND = 5
|
|
73
|
+
SPACE_AROUND = 5,
|
|
74
|
+
SPACE_EVENLY = 6
|
|
66
75
|
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export { ViewBorderColor, ViewBorderRadius, ViewBorderWidth } from './border';
|
|
2
|
+
export { ViewBackgroundColor } from './color';
|
|
3
|
+
export { ViewAlignContent, ViewAlignItems, ViewAlignSelf, ViewFlexDirection, ViewFlexWrap, ViewJustifyContent, } from './flex';
|
|
4
|
+
export { ViewOverflow } from './overflow';
|
|
5
|
+
export { ViewPosition } from './position';
|
|
6
|
+
export { ViewBoxShadow } from './shadow';
|
|
7
|
+
export { ViewSpacing } from './spacing';
|
|
8
|
+
export { ViewTag } from './tag';
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* View component spacing enumerated contstants.
|
|
3
|
+
* Allows to control view margin and padding with properties.
|
|
4
|
+
* @see View.Spacing
|
|
5
|
+
*/
|
|
6
|
+
export declare enum ViewSpacing {
|
|
7
|
+
X6S = 0,
|
|
8
|
+
X5S = 1,
|
|
9
|
+
X4S = 2,
|
|
10
|
+
X3S = 3,
|
|
11
|
+
X2S = 4,
|
|
12
|
+
XS = 5,
|
|
13
|
+
SM = 6,
|
|
14
|
+
MD = 7,
|
|
15
|
+
LG = 8,
|
|
16
|
+
XL = 9,
|
|
17
|
+
X2L = 10,
|
|
18
|
+
X3L = 11,
|
|
19
|
+
X4L = 12,
|
|
20
|
+
X5L = 13,
|
|
21
|
+
X6L = 14
|
|
22
|
+
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Supported by view component
|
|
2
|
+
* Supported by view component enumerated tag constants.
|
|
3
3
|
* All possible layout tags should be listed here.
|
|
4
|
+
* @see View.Tag
|
|
4
5
|
*/
|
|
5
6
|
export declare enum ViewTag {
|
|
6
7
|
DIV = 0,
|
|
@@ -12,13 +13,3 @@ export declare enum ViewTag {
|
|
|
12
13
|
MAIN = 6,
|
|
13
14
|
FOOTER = 7
|
|
14
15
|
}
|
|
15
|
-
export declare const VIEW_HTML_TAG: {
|
|
16
|
-
0: "div";
|
|
17
|
-
1: "figure";
|
|
18
|
-
2: "figcaption";
|
|
19
|
-
3: "article";
|
|
20
|
-
4: "section";
|
|
21
|
-
5: "header";
|
|
22
|
-
6: "main";
|
|
23
|
-
7: "footer";
|
|
24
|
-
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type { Color } from '
|
|
1
|
+
import type { Dimension, DimensionValue, Fraction, FractionValue } from '../../../helpers';
|
|
2
|
+
import type { Color } from '../../../types';
|
|
3
3
|
import type { FunctionComponent, PropsWithChildren } from 'react';
|
|
4
4
|
import type { ViewAlignContent, ViewAlignItems, ViewAlignSelf, ViewBackgroundColor, ViewBorderColor, ViewBorderRadius, ViewBorderWidth, ViewBoxShadow, ViewFlexDirection, ViewFlexWrap, ViewJustifyContent, ViewOverflow, ViewPosition, ViewSpacing, ViewTag } from './constants';
|
|
5
5
|
/**
|
|
@@ -10,7 +10,7 @@ export interface ViewLayoutEvent {
|
|
|
10
10
|
width: number;
|
|
11
11
|
height: number;
|
|
12
12
|
}
|
|
13
|
-
export interface
|
|
13
|
+
export interface ViewProperties extends PropsWithChildren {
|
|
14
14
|
/**
|
|
15
15
|
* Allows to select view in tests.
|
|
16
16
|
* @default undefined
|
|
@@ -32,28 +32,28 @@ export interface ViewProps extends PropsWithChildren {
|
|
|
32
32
|
position?: ViewPosition;
|
|
33
33
|
/**
|
|
34
34
|
* Top position.
|
|
35
|
-
* @see
|
|
35
|
+
* @see Dimension
|
|
36
36
|
* @default undefined
|
|
37
37
|
*/
|
|
38
|
-
top?:
|
|
38
|
+
top?: Dimension;
|
|
39
39
|
/**
|
|
40
40
|
* Left position.
|
|
41
|
-
* @see
|
|
41
|
+
* @see Dimension
|
|
42
42
|
* @default undefined
|
|
43
43
|
*/
|
|
44
|
-
left?:
|
|
44
|
+
left?: Dimension;
|
|
45
45
|
/**
|
|
46
46
|
* Right position.
|
|
47
|
-
* @see
|
|
47
|
+
* @see Dimension
|
|
48
48
|
* @default undefined
|
|
49
49
|
*/
|
|
50
|
-
right?:
|
|
50
|
+
right?: Dimension;
|
|
51
51
|
/**
|
|
52
52
|
* Bottom position.
|
|
53
|
-
* @see
|
|
53
|
+
* @see Dimension
|
|
54
54
|
* @default undefined
|
|
55
55
|
*/
|
|
56
|
-
bottom?:
|
|
56
|
+
bottom?: Dimension;
|
|
57
57
|
/**
|
|
58
58
|
* View opacity.
|
|
59
59
|
* Controls the transparency of the view.
|
|
@@ -85,10 +85,10 @@ export interface ViewProps extends PropsWithChildren {
|
|
|
85
85
|
/**
|
|
86
86
|
* View flex basis property.
|
|
87
87
|
* Controls the initial size of a component before space distribution.
|
|
88
|
-
* @see
|
|
88
|
+
* @see Dimension
|
|
89
89
|
* @default undefined
|
|
90
90
|
*/
|
|
91
|
-
flexBasis?:
|
|
91
|
+
flexBasis?: Dimension;
|
|
92
92
|
/**
|
|
93
93
|
* View flex wrap property.
|
|
94
94
|
* Controls whether children should wrap onto multiple lines.
|
|
@@ -128,7 +128,7 @@ export interface ViewProps extends PropsWithChildren {
|
|
|
128
128
|
* Only applies when there is wrapping in the container.
|
|
129
129
|
* Defines how multiple lines are spaced along the cross axis.
|
|
130
130
|
* @see View.AlignContent
|
|
131
|
-
* @default
|
|
131
|
+
* @default undefined
|
|
132
132
|
*/
|
|
133
133
|
alignContent?: ViewAlignContent;
|
|
134
134
|
/**
|
|
@@ -181,40 +181,40 @@ export interface ViewProps extends PropsWithChildren {
|
|
|
181
181
|
paddingBottom?: ViewSpacing;
|
|
182
182
|
/**
|
|
183
183
|
* Minimum width of the component.
|
|
184
|
-
* @see
|
|
184
|
+
* @see Dimension
|
|
185
185
|
* @default undefined
|
|
186
186
|
*/
|
|
187
|
-
minWidth?:
|
|
187
|
+
minWidth?: Dimension;
|
|
188
188
|
/**
|
|
189
189
|
* Width of the component.
|
|
190
|
-
* @see
|
|
190
|
+
* @see Dimension
|
|
191
191
|
* @default undefined
|
|
192
192
|
*/
|
|
193
|
-
width?:
|
|
193
|
+
width?: Dimension;
|
|
194
194
|
/**
|
|
195
195
|
* Maximum width of the component.
|
|
196
196
|
* @see Size
|
|
197
197
|
* @default undefined
|
|
198
198
|
*/
|
|
199
|
-
maxWidth?:
|
|
199
|
+
maxWidth?: Dimension;
|
|
200
200
|
/**
|
|
201
201
|
* Minimum height of the component.
|
|
202
|
-
* @see
|
|
202
|
+
* @see Dimension
|
|
203
203
|
* @default undefined
|
|
204
204
|
*/
|
|
205
|
-
minHeight?:
|
|
205
|
+
minHeight?: Dimension;
|
|
206
206
|
/**
|
|
207
207
|
* Height of the component.
|
|
208
|
-
* @see
|
|
208
|
+
* @see Dimension
|
|
209
209
|
* @default undefined
|
|
210
210
|
*/
|
|
211
|
-
height?:
|
|
211
|
+
height?: Dimension;
|
|
212
212
|
/**
|
|
213
213
|
* Maximum height of the component.
|
|
214
|
-
* @see
|
|
214
|
+
* @see Dimension
|
|
215
215
|
* @default undefined
|
|
216
216
|
*/
|
|
217
|
-
maxHeight?:
|
|
217
|
+
maxHeight?: Dimension;
|
|
218
218
|
/**
|
|
219
219
|
* View component box shadow.
|
|
220
220
|
* React Native's "New Architecture" is required on native.
|
|
@@ -295,14 +295,14 @@ export interface ViewProps extends PropsWithChildren {
|
|
|
295
295
|
* @see View.BackgroundColor
|
|
296
296
|
* @default View.BackgroundColor.TRANSPARENT
|
|
297
297
|
*/
|
|
298
|
-
backgroundColor?: ViewBackgroundColor
|
|
298
|
+
backgroundColor?: ViewBackgroundColor;
|
|
299
299
|
/**
|
|
300
300
|
* Callback function that is called when the layout of the view changes.
|
|
301
301
|
* @param event Event containing the width and height of the view.
|
|
302
302
|
*/
|
|
303
303
|
onLayout?(event: ViewLayoutEvent): void;
|
|
304
304
|
}
|
|
305
|
-
export type ViewComponent = FunctionComponent<
|
|
305
|
+
export type ViewComponent = FunctionComponent<ViewProperties> & {
|
|
306
306
|
Tag: Record<keyof typeof ViewTag, ViewTag>;
|
|
307
307
|
Position: Record<keyof typeof ViewPosition, ViewPosition>;
|
|
308
308
|
Overflow: Record<keyof typeof ViewOverflow, ViewOverflow>;
|
|
@@ -319,40 +319,54 @@ export type ViewComponent = FunctionComponent<ViewProps> & {
|
|
|
319
319
|
BorderRadius: Record<keyof typeof ViewBorderRadius, ViewBorderRadius>;
|
|
320
320
|
BackgroundColor: Record<keyof typeof ViewBackgroundColor, ViewBackgroundColor>;
|
|
321
321
|
};
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
322
|
+
/**
|
|
323
|
+
* Styled view properties type.
|
|
324
|
+
* Used to render view component on web.
|
|
325
|
+
*/
|
|
326
|
+
export type ViewStyledProperties = {
|
|
327
|
+
values: {
|
|
328
|
+
position: 'relative' | 'absolute';
|
|
329
|
+
top?: DimensionValue;
|
|
330
|
+
left?: DimensionValue;
|
|
331
|
+
right?: DimensionValue;
|
|
332
|
+
bottom?: DimensionValue;
|
|
333
|
+
opacity?: FractionValue;
|
|
334
|
+
overflow: 'visible' | 'hidden';
|
|
335
|
+
flexGrow?: number;
|
|
336
|
+
flexShrink?: number;
|
|
337
|
+
flexBasis?: DimensionValue;
|
|
338
|
+
flexWrap: 'nowrap' | 'wrap';
|
|
339
|
+
flexDirection: 'column' | 'row' | 'column-reverse' | 'row-reverse';
|
|
340
|
+
justifyContent: 'flex-start' | 'flex-end' | 'center' | 'space-between' | 'space-around' | 'space-evenly';
|
|
341
|
+
alignItems: 'flex-start' | 'flex-end' | 'center' | 'stretch' | 'baseline';
|
|
342
|
+
alignSelf: 'flex-start' | 'flex-end' | 'center' | 'stretch' | 'baseline';
|
|
343
|
+
alignContent: 'flex-start' | 'flex-end' | 'center' | 'stretch' | 'space-between' | 'space-around' | 'space-evenly';
|
|
344
|
+
marginTop?: number;
|
|
345
|
+
paddingTop?: number;
|
|
346
|
+
marginLeft?: number;
|
|
347
|
+
paddingLeft?: number;
|
|
348
|
+
marginRight?: number;
|
|
349
|
+
paddingRight?: number;
|
|
350
|
+
marginBottom?: number;
|
|
351
|
+
paddingBottom?: number;
|
|
352
|
+
minWidth?: DimensionValue;
|
|
353
|
+
width?: DimensionValue;
|
|
354
|
+
maxWidth?: DimensionValue;
|
|
355
|
+
minHeight?: DimensionValue;
|
|
356
|
+
height?: DimensionValue;
|
|
357
|
+
maxHeight?: DimensionValue;
|
|
358
|
+
boxShadow?: string;
|
|
359
|
+
borderColor?: Color;
|
|
360
|
+
borderWidth: number;
|
|
361
|
+
borderWidthTop?: number;
|
|
362
|
+
borderWidthLeft?: number;
|
|
363
|
+
borderWidthRight?: number;
|
|
364
|
+
borderWidthBottom?: number;
|
|
365
|
+
borderRadius?: number | '50%';
|
|
366
|
+
borderRadiusTopLeft?: number | '50%';
|
|
367
|
+
borderRadiusTopRight?: number | '50%';
|
|
368
|
+
borderRadiusBottomLeft?: number | '50%';
|
|
369
|
+
borderRadiusBottomRight?: number | '50%';
|
|
370
|
+
backgroundColor?: Color;
|
|
371
|
+
};
|
|
358
372
|
};
|
|
@@ -2,7 +2,5 @@ export { Gradient } from '../components/gradient';
|
|
|
2
2
|
export type { GradientLinearComponent, GradientLinearProps, GradientObject, GradientStopComponent, GradientStopProps, } from '../components/gradient';
|
|
3
3
|
export { Overlay } from '../components/overlay';
|
|
4
4
|
export type { OverlayComponent, OverlayProps } from '../components/overlay';
|
|
5
|
-
export { View } from '
|
|
6
|
-
export type { ViewComponent, ViewLayoutEvent,
|
|
7
|
-
export { Text } from './atoms';
|
|
8
|
-
export type { TextComponent, TextProperties, TextReference } from './atoms';
|
|
5
|
+
export { Text, View } from './atoms';
|
|
6
|
+
export type { TextComponent, TextMeasureCallback, TextProperties, TextReference, ViewComponent, ViewLayoutEvent, ViewProperties, } from './atoms';
|
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
export declare const COLOR_BACKGROUND_BASE_100 = "rgb(
|
|
2
|
-
export declare const COLOR_BACKGROUND_BASE_200 = "rgb(
|
|
3
|
-
export declare const COLOR_BACKGROUND_BASE_300 = "rgb(
|
|
4
|
-
export declare const COLOR_BACKGROUND_BASE_400 = "rgb(
|
|
5
|
-
export declare const COLOR_BACKGROUND_BASE_500 = "rgb(
|
|
6
|
-
export declare const COLOR_BACKGROUND_BASE_600 = "rgb(
|
|
7
|
-
export declare const COLOR_BACKGROUND_BASE_700 = "rgb(
|
|
8
|
-
export declare const COLOR_BACKGROUND_BASE_800 = "rgb(
|
|
9
|
-
export declare const COLOR_BACKGROUND_BASE_900 = "rgb(
|
|
10
|
-
export declare const COLOR_BACKGROUND_PRIMARY_100 = "rgb(
|
|
11
|
-
export declare const COLOR_BACKGROUND_PRIMARY_200 = "rgb(
|
|
12
|
-
export declare const COLOR_BACKGROUND_PRIMARY_300 = "rgb(
|
|
13
|
-
export declare const COLOR_BACKGROUND_PRIMARY_400 = "rgb(
|
|
14
|
-
export declare const COLOR_BACKGROUND_PRIMARY_500 = "rgb(
|
|
15
|
-
export declare const COLOR_BACKGROUND_PRIMARY_600 = "rgb(
|
|
16
|
-
export declare const COLOR_BACKGROUND_PRIMARY_700 = "rgb(
|
|
17
|
-
export declare const COLOR_BACKGROUND_PRIMARY_800 = "rgb(
|
|
18
|
-
export declare const COLOR_BACKGROUND_PRIMARY_900 = "rgb(
|
|
19
|
-
export declare const COLOR_BORDER_BASE_100 = "rgb(
|
|
20
|
-
export declare const COLOR_BORDER_BASE_200 = "rgb(
|
|
21
|
-
export declare const COLOR_BORDER_BASE_300 = "rgb(
|
|
22
|
-
export declare const COLOR_BORDER_BASE_400 = "rgb(
|
|
23
|
-
export declare const COLOR_BORDER_BASE_500 = "rgb(
|
|
24
|
-
export declare const COLOR_BORDER_BASE_600 = "rgb(
|
|
25
|
-
export declare const COLOR_BORDER_BASE_700 = "rgb(
|
|
26
|
-
export declare const COLOR_BORDER_BASE_800 = "rgb(
|
|
27
|
-
export declare const COLOR_BORDER_BASE_900 = "rgb(
|
|
1
|
+
export declare const COLOR_BACKGROUND_BASE_100 = "rgb(215,215,220)";
|
|
2
|
+
export declare const COLOR_BACKGROUND_BASE_200 = "rgb(220,220,225)";
|
|
3
|
+
export declare const COLOR_BACKGROUND_BASE_300 = "rgb(225,225,230)";
|
|
4
|
+
export declare const COLOR_BACKGROUND_BASE_400 = "rgb(230,230,235)";
|
|
5
|
+
export declare const COLOR_BACKGROUND_BASE_500 = "rgb(235,235,240)";
|
|
6
|
+
export declare const COLOR_BACKGROUND_BASE_600 = "rgb(240,240,245)";
|
|
7
|
+
export declare const COLOR_BACKGROUND_BASE_700 = "rgb(245,245,250)";
|
|
8
|
+
export declare const COLOR_BACKGROUND_BASE_800 = "rgb(250,250,255)";
|
|
9
|
+
export declare const COLOR_BACKGROUND_BASE_900 = "rgb(255,255,255)";
|
|
10
|
+
export declare const COLOR_BACKGROUND_PRIMARY_100 = "rgb(40,40,45)";
|
|
11
|
+
export declare const COLOR_BACKGROUND_PRIMARY_200 = "rgb(35,35,40)";
|
|
12
|
+
export declare const COLOR_BACKGROUND_PRIMARY_300 = "rgb(30,30,35)";
|
|
13
|
+
export declare const COLOR_BACKGROUND_PRIMARY_400 = "rgb(25,25,30)";
|
|
14
|
+
export declare const COLOR_BACKGROUND_PRIMARY_500 = "rgb(20,20,25)";
|
|
15
|
+
export declare const COLOR_BACKGROUND_PRIMARY_600 = "rgb(15,15,20)";
|
|
16
|
+
export declare const COLOR_BACKGROUND_PRIMARY_700 = "rgb(10,10,15)";
|
|
17
|
+
export declare const COLOR_BACKGROUND_PRIMARY_800 = "rgb(5,5,10)";
|
|
18
|
+
export declare const COLOR_BACKGROUND_PRIMARY_900 = "rgb(0,0,5)";
|
|
19
|
+
export declare const COLOR_BORDER_BASE_100 = "rgb(235,235,240)";
|
|
20
|
+
export declare const COLOR_BORDER_BASE_200 = "rgb(230,230,235)";
|
|
21
|
+
export declare const COLOR_BORDER_BASE_300 = "rgb(225,225,230)";
|
|
22
|
+
export declare const COLOR_BORDER_BASE_400 = "rgb(220,220,225)";
|
|
23
|
+
export declare const COLOR_BORDER_BASE_500 = "rgb(215,215,220)";
|
|
24
|
+
export declare const COLOR_BORDER_BASE_600 = "rgb(210,210,215)";
|
|
25
|
+
export declare const COLOR_BORDER_BASE_700 = "rgb(205,205,210)";
|
|
26
|
+
export declare const COLOR_BORDER_BASE_800 = "rgb(200,200,205)";
|
|
27
|
+
export declare const COLOR_BORDER_BASE_900 = "rgb(195,195,200)";
|
|
28
28
|
export declare const COLOR_FOREGROUND_BASE_100 = "rgb(200,200,205)";
|
|
29
29
|
export declare const COLOR_FOREGROUND_BASE_200 = "rgb(175,175,180)";
|
|
30
30
|
export declare const COLOR_FOREGROUND_BASE_300 = "rgb(150,150,155)";
|
|
@@ -644,64 +644,64 @@ export declare const useThemeStyleSheet: () => {
|
|
|
644
644
|
borderRadiusBaseXL: {
|
|
645
645
|
borderRadius: number;
|
|
646
646
|
};
|
|
647
|
-
|
|
647
|
+
borderTopLeftRadiusBaseXS: {
|
|
648
648
|
borderTopLeftRadius: number;
|
|
649
649
|
};
|
|
650
|
-
|
|
650
|
+
borderTopLeftRadiusBaseSM: {
|
|
651
651
|
borderTopLeftRadius: number;
|
|
652
652
|
};
|
|
653
|
-
|
|
653
|
+
borderTopLeftRadiusBaseMD: {
|
|
654
654
|
borderTopLeftRadius: number;
|
|
655
655
|
};
|
|
656
|
-
|
|
656
|
+
borderTopLeftRadiusBaseLG: {
|
|
657
657
|
borderTopLeftRadius: number;
|
|
658
658
|
};
|
|
659
|
-
|
|
659
|
+
borderTopLeftRadiusBaseXL: {
|
|
660
660
|
borderTopLeftRadius: number;
|
|
661
661
|
};
|
|
662
|
-
|
|
662
|
+
borderTopRightRadiusBaseXS: {
|
|
663
663
|
borderTopRightRadius: number;
|
|
664
664
|
};
|
|
665
|
-
|
|
665
|
+
borderTopRightRadiusBaseSM: {
|
|
666
666
|
borderTopRightRadius: number;
|
|
667
667
|
};
|
|
668
|
-
|
|
668
|
+
borderTopRightRadiusBaseMD: {
|
|
669
669
|
borderTopRightRadius: number;
|
|
670
670
|
};
|
|
671
|
-
|
|
671
|
+
borderTopRightRadiusBaseLG: {
|
|
672
672
|
borderTopRightRadius: number;
|
|
673
673
|
};
|
|
674
|
-
|
|
674
|
+
borderTopRightRadiusBaseXL: {
|
|
675
675
|
borderTopRightRadius: number;
|
|
676
676
|
};
|
|
677
|
-
|
|
677
|
+
borderBottomLeftRadiusBaseXS: {
|
|
678
678
|
borderBottomLeftRadius: number;
|
|
679
679
|
};
|
|
680
|
-
|
|
680
|
+
borderBottomLeftRadiusBaseSM: {
|
|
681
681
|
borderBottomLeftRadius: number;
|
|
682
682
|
};
|
|
683
|
-
|
|
683
|
+
borderBottomLeftRadiusBaseMD: {
|
|
684
684
|
borderBottomLeftRadius: number;
|
|
685
685
|
};
|
|
686
|
-
|
|
686
|
+
borderBottomLeftRadiusBaseLG: {
|
|
687
687
|
borderBottomLeftRadius: number;
|
|
688
688
|
};
|
|
689
|
-
|
|
689
|
+
borderBottomLeftRadiusBaseXL: {
|
|
690
690
|
borderBottomLeftRadius: number;
|
|
691
691
|
};
|
|
692
|
-
|
|
692
|
+
borderBottomRightRadiusBaseXS: {
|
|
693
693
|
borderBottomRightRadius: number;
|
|
694
694
|
};
|
|
695
|
-
|
|
695
|
+
borderBottomRightRadiusBaseSM: {
|
|
696
696
|
borderBottomRightRadius: number;
|
|
697
697
|
};
|
|
698
|
-
|
|
698
|
+
borderBottomRightRadiusBaseMD: {
|
|
699
699
|
borderBottomRightRadius: number;
|
|
700
700
|
};
|
|
701
|
-
|
|
701
|
+
borderBottomRightRadiusBaseLG: {
|
|
702
702
|
borderBottomRightRadius: number;
|
|
703
703
|
};
|
|
704
|
-
|
|
704
|
+
borderBottomRightRadiusBaseXL: {
|
|
705
705
|
borderBottomRightRadius: number;
|
|
706
706
|
};
|
|
707
707
|
};
|