@ovotech/element-native 5.1.1 → 5.2.0-canary-9460c0f-363
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/dist/components/Accordion/styles.d.ts +12 -12
- package/dist/components/ActionList/styled.d.ts +40 -40
- package/dist/components/Badge/Badge.d.ts +4 -4
- package/dist/components/Button/Button.d.ts +1 -1
- package/dist/components/Button/Button.styles.d.ts +16 -16
- package/dist/components/DataTable/styles.d.ts +52 -52
- package/dist/components/Em/Em.d.ts +4 -4
- package/dist/components/ErrorText/ErrorText.d.ts +4 -4
- package/dist/components/Grid/Col.d.ts +4 -4
- package/dist/components/Grid/Row.d.ts +4 -4
- package/dist/components/HintText/HintText.d.ts +4 -4
- package/dist/components/LabelText/LabelText.d.ts +4 -4
- package/dist/components/LineThrough/LineThrough.d.ts +4 -4
- package/dist/components/List/styled.d.ts +16 -16
- package/dist/components/Margin/Margin.d.ts +4 -4
- package/dist/components/NavHeader/NavHeader.styles.d.ts +28 -28
- package/dist/components/Notification/Notification.d.ts +8 -8
- package/dist/components/PasswordInput/PasswordInput.styled.d.ts +4 -4
- package/dist/components/SelectField/Select.d.ts +4 -4
- package/dist/components/Stack/Stack.d.ts +4 -5
- package/dist/components/Stack/Stack.js +13 -14
- package/dist/components/Strong/Strong.d.ts +4 -4
- package/dist/components/SubLabelText/SubLabelText.d.ts +4 -4
- package/dist/components/Toggle/styles.d.ts +16 -16
- package/dist/components/index.d.ts +8 -8
- package/dist/components/index.js +8 -8
- package/dist/esm/components/Button/Button.js +1 -1
- package/dist/esm/components/Stack/Stack.js +13 -14
- package/dist/esm/components/index.js +8 -8
- package/dist/styled.native.d.ts +24 -24
- package/package.json +3 -3
|
@@ -57,10 +57,6 @@ declare const ErrorText: import("react").ForwardRefExoticComponent<Omit<Omit<{
|
|
|
57
57
|
"60": string;
|
|
58
58
|
"70": string;
|
|
59
59
|
};
|
|
60
|
-
outline: {
|
|
61
|
-
outer: string;
|
|
62
|
-
inner: string;
|
|
63
|
-
};
|
|
64
60
|
alert: {
|
|
65
61
|
success: string;
|
|
66
62
|
successTint: string;
|
|
@@ -97,6 +93,10 @@ declare const ErrorText: import("react").ForwardRefExoticComponent<Omit<Omit<{
|
|
|
97
93
|
onBrandVariant: string;
|
|
98
94
|
};
|
|
99
95
|
};
|
|
96
|
+
outline: {
|
|
97
|
+
outer: string;
|
|
98
|
+
inner: string;
|
|
99
|
+
};
|
|
100
100
|
surface: {
|
|
101
101
|
surface: string;
|
|
102
102
|
bright: string;
|
|
@@ -56,10 +56,6 @@ declare const Col: import("react").ForwardRefExoticComponent<Omit<Omit<{
|
|
|
56
56
|
"60": string;
|
|
57
57
|
"70": string;
|
|
58
58
|
};
|
|
59
|
-
outline: {
|
|
60
|
-
outer: string;
|
|
61
|
-
inner: string;
|
|
62
|
-
};
|
|
63
59
|
alert: {
|
|
64
60
|
success: string;
|
|
65
61
|
successTint: string;
|
|
@@ -96,6 +92,10 @@ declare const Col: import("react").ForwardRefExoticComponent<Omit<Omit<{
|
|
|
96
92
|
onBrandVariant: string;
|
|
97
93
|
};
|
|
98
94
|
};
|
|
95
|
+
outline: {
|
|
96
|
+
outer: string;
|
|
97
|
+
inner: string;
|
|
98
|
+
};
|
|
99
99
|
surface: {
|
|
100
100
|
surface: string;
|
|
101
101
|
bright: string;
|
|
@@ -52,10 +52,6 @@ declare const StyledRow: import("styled-components").StyledComponent<typeof impo
|
|
|
52
52
|
"60": string;
|
|
53
53
|
"70": string;
|
|
54
54
|
};
|
|
55
|
-
outline: {
|
|
56
|
-
outer: string;
|
|
57
|
-
inner: string;
|
|
58
|
-
};
|
|
59
55
|
alert: {
|
|
60
56
|
success: string;
|
|
61
57
|
successTint: string;
|
|
@@ -92,6 +88,10 @@ declare const StyledRow: import("styled-components").StyledComponent<typeof impo
|
|
|
92
88
|
onBrandVariant: string;
|
|
93
89
|
};
|
|
94
90
|
};
|
|
91
|
+
outline: {
|
|
92
|
+
outer: string;
|
|
93
|
+
inner: string;
|
|
94
|
+
};
|
|
95
95
|
surface: {
|
|
96
96
|
surface: string;
|
|
97
97
|
bright: string;
|
|
@@ -57,10 +57,6 @@ declare const HintText: import("react").ForwardRefExoticComponent<Omit<Omit<{
|
|
|
57
57
|
"60": string;
|
|
58
58
|
"70": string;
|
|
59
59
|
};
|
|
60
|
-
outline: {
|
|
61
|
-
outer: string;
|
|
62
|
-
inner: string;
|
|
63
|
-
};
|
|
64
60
|
alert: {
|
|
65
61
|
success: string;
|
|
66
62
|
successTint: string;
|
|
@@ -97,6 +93,10 @@ declare const HintText: import("react").ForwardRefExoticComponent<Omit<Omit<{
|
|
|
97
93
|
onBrandVariant: string;
|
|
98
94
|
};
|
|
99
95
|
};
|
|
96
|
+
outline: {
|
|
97
|
+
outer: string;
|
|
98
|
+
inner: string;
|
|
99
|
+
};
|
|
100
100
|
surface: {
|
|
101
101
|
surface: string;
|
|
102
102
|
bright: string;
|
|
@@ -57,10 +57,6 @@ declare const LabelText: import("react").ForwardRefExoticComponent<Omit<Omit<{
|
|
|
57
57
|
"60": string;
|
|
58
58
|
"70": string;
|
|
59
59
|
};
|
|
60
|
-
outline: {
|
|
61
|
-
outer: string;
|
|
62
|
-
inner: string;
|
|
63
|
-
};
|
|
64
60
|
alert: {
|
|
65
61
|
success: string;
|
|
66
62
|
successTint: string;
|
|
@@ -97,6 +93,10 @@ declare const LabelText: import("react").ForwardRefExoticComponent<Omit<Omit<{
|
|
|
97
93
|
onBrandVariant: string;
|
|
98
94
|
};
|
|
99
95
|
};
|
|
96
|
+
outline: {
|
|
97
|
+
outer: string;
|
|
98
|
+
inner: string;
|
|
99
|
+
};
|
|
100
100
|
surface: {
|
|
101
101
|
surface: string;
|
|
102
102
|
bright: string;
|
|
@@ -50,10 +50,6 @@ export declare const LineThrough: import("styled-components").StyledComponent<ty
|
|
|
50
50
|
"60": string;
|
|
51
51
|
"70": string;
|
|
52
52
|
};
|
|
53
|
-
outline: {
|
|
54
|
-
outer: string;
|
|
55
|
-
inner: string;
|
|
56
|
-
};
|
|
57
53
|
alert: {
|
|
58
54
|
success: string;
|
|
59
55
|
successTint: string;
|
|
@@ -90,6 +86,10 @@ export declare const LineThrough: import("styled-components").StyledComponent<ty
|
|
|
90
86
|
onBrandVariant: string;
|
|
91
87
|
};
|
|
92
88
|
};
|
|
89
|
+
outline: {
|
|
90
|
+
outer: string;
|
|
91
|
+
inner: string;
|
|
92
|
+
};
|
|
93
93
|
surface: {
|
|
94
94
|
surface: string;
|
|
95
95
|
bright: string;
|
|
@@ -53,10 +53,6 @@ export declare const SquareBullet: import("styled-components").StyledComponent<t
|
|
|
53
53
|
"60": string;
|
|
54
54
|
"70": string;
|
|
55
55
|
};
|
|
56
|
-
outline: {
|
|
57
|
-
outer: string;
|
|
58
|
-
inner: string;
|
|
59
|
-
};
|
|
60
56
|
alert: {
|
|
61
57
|
success: string;
|
|
62
58
|
successTint: string;
|
|
@@ -93,6 +89,10 @@ export declare const SquareBullet: import("styled-components").StyledComponent<t
|
|
|
93
89
|
onBrandVariant: string;
|
|
94
90
|
};
|
|
95
91
|
};
|
|
92
|
+
outline: {
|
|
93
|
+
outer: string;
|
|
94
|
+
inner: string;
|
|
95
|
+
};
|
|
96
96
|
surface: {
|
|
97
97
|
surface: string;
|
|
98
98
|
bright: string;
|
|
@@ -622,10 +622,6 @@ export declare const TextBullet: import("styled-components").StyledComponent<typ
|
|
|
622
622
|
"60": string;
|
|
623
623
|
"70": string;
|
|
624
624
|
};
|
|
625
|
-
outline: {
|
|
626
|
-
outer: string;
|
|
627
|
-
inner: string;
|
|
628
|
-
};
|
|
629
625
|
alert: {
|
|
630
626
|
success: string;
|
|
631
627
|
successTint: string;
|
|
@@ -662,6 +658,10 @@ export declare const TextBullet: import("styled-components").StyledComponent<typ
|
|
|
662
658
|
onBrandVariant: string;
|
|
663
659
|
};
|
|
664
660
|
};
|
|
661
|
+
outline: {
|
|
662
|
+
outer: string;
|
|
663
|
+
inner: string;
|
|
664
|
+
};
|
|
665
665
|
surface: {
|
|
666
666
|
surface: string;
|
|
667
667
|
bright: string;
|
|
@@ -1189,10 +1189,6 @@ export declare const FlexRow: import("styled-components").StyledComponent<typeof
|
|
|
1189
1189
|
"60": string;
|
|
1190
1190
|
"70": string;
|
|
1191
1191
|
};
|
|
1192
|
-
outline: {
|
|
1193
|
-
outer: string;
|
|
1194
|
-
inner: string;
|
|
1195
|
-
};
|
|
1196
1192
|
alert: {
|
|
1197
1193
|
success: string;
|
|
1198
1194
|
successTint: string;
|
|
@@ -1229,6 +1225,10 @@ export declare const FlexRow: import("styled-components").StyledComponent<typeof
|
|
|
1229
1225
|
onBrandVariant: string;
|
|
1230
1226
|
};
|
|
1231
1227
|
};
|
|
1228
|
+
outline: {
|
|
1229
|
+
outer: string;
|
|
1230
|
+
inner: string;
|
|
1231
|
+
};
|
|
1232
1232
|
surface: {
|
|
1233
1233
|
surface: string;
|
|
1234
1234
|
bright: string;
|
|
@@ -1756,10 +1756,6 @@ export declare const LiContent: import("styled-components").StyledComponent<type
|
|
|
1756
1756
|
"60": string;
|
|
1757
1757
|
"70": string;
|
|
1758
1758
|
};
|
|
1759
|
-
outline: {
|
|
1760
|
-
outer: string;
|
|
1761
|
-
inner: string;
|
|
1762
|
-
};
|
|
1763
1759
|
alert: {
|
|
1764
1760
|
success: string;
|
|
1765
1761
|
successTint: string;
|
|
@@ -1796,6 +1792,10 @@ export declare const LiContent: import("styled-components").StyledComponent<type
|
|
|
1796
1792
|
onBrandVariant: string;
|
|
1797
1793
|
};
|
|
1798
1794
|
};
|
|
1795
|
+
outline: {
|
|
1796
|
+
outer: string;
|
|
1797
|
+
inner: string;
|
|
1798
|
+
};
|
|
1799
1799
|
surface: {
|
|
1800
1800
|
surface: string;
|
|
1801
1801
|
bright: string;
|
|
@@ -63,10 +63,6 @@ declare const StyledMargin: import("styled-components").StyledComponent<typeof i
|
|
|
63
63
|
"60": string;
|
|
64
64
|
"70": string;
|
|
65
65
|
};
|
|
66
|
-
outline: {
|
|
67
|
-
outer: string;
|
|
68
|
-
inner: string;
|
|
69
|
-
};
|
|
70
66
|
alert: {
|
|
71
67
|
success: string;
|
|
72
68
|
successTint: string;
|
|
@@ -103,6 +99,10 @@ declare const StyledMargin: import("styled-components").StyledComponent<typeof i
|
|
|
103
99
|
onBrandVariant: string;
|
|
104
100
|
};
|
|
105
101
|
};
|
|
102
|
+
outline: {
|
|
103
|
+
outer: string;
|
|
104
|
+
inner: string;
|
|
105
|
+
};
|
|
106
106
|
surface: {
|
|
107
107
|
surface: string;
|
|
108
108
|
bright: string;
|
|
@@ -51,10 +51,6 @@ export declare const NavWrapper: import("styled-components").StyledComponent<imp
|
|
|
51
51
|
"60": string;
|
|
52
52
|
"70": string;
|
|
53
53
|
};
|
|
54
|
-
outline: {
|
|
55
|
-
outer: string;
|
|
56
|
-
inner: string;
|
|
57
|
-
};
|
|
58
54
|
alert: {
|
|
59
55
|
success: string;
|
|
60
56
|
successTint: string;
|
|
@@ -91,6 +87,10 @@ export declare const NavWrapper: import("styled-components").StyledComponent<imp
|
|
|
91
87
|
onBrandVariant: string;
|
|
92
88
|
};
|
|
93
89
|
};
|
|
90
|
+
outline: {
|
|
91
|
+
outer: string;
|
|
92
|
+
inner: string;
|
|
93
|
+
};
|
|
94
94
|
surface: {
|
|
95
95
|
surface: string;
|
|
96
96
|
bright: string;
|
|
@@ -620,10 +620,6 @@ export declare const NavContainer: import("styled-components").StyledComponent<t
|
|
|
620
620
|
"60": string;
|
|
621
621
|
"70": string;
|
|
622
622
|
};
|
|
623
|
-
outline: {
|
|
624
|
-
outer: string;
|
|
625
|
-
inner: string;
|
|
626
|
-
};
|
|
627
623
|
alert: {
|
|
628
624
|
success: string;
|
|
629
625
|
successTint: string;
|
|
@@ -660,6 +656,10 @@ export declare const NavContainer: import("styled-components").StyledComponent<t
|
|
|
660
656
|
onBrandVariant: string;
|
|
661
657
|
};
|
|
662
658
|
};
|
|
659
|
+
outline: {
|
|
660
|
+
outer: string;
|
|
661
|
+
inner: string;
|
|
662
|
+
};
|
|
663
663
|
surface: {
|
|
664
664
|
surface: string;
|
|
665
665
|
bright: string;
|
|
@@ -1190,10 +1190,6 @@ export declare const ExpandedTitle: import("styled-components").StyledComponent<
|
|
|
1190
1190
|
"60": string;
|
|
1191
1191
|
"70": string;
|
|
1192
1192
|
};
|
|
1193
|
-
outline: {
|
|
1194
|
-
outer: string;
|
|
1195
|
-
inner: string;
|
|
1196
|
-
};
|
|
1197
1193
|
alert: {
|
|
1198
1194
|
success: string;
|
|
1199
1195
|
successTint: string;
|
|
@@ -1230,6 +1226,10 @@ export declare const ExpandedTitle: import("styled-components").StyledComponent<
|
|
|
1230
1226
|
onBrandVariant: string;
|
|
1231
1227
|
};
|
|
1232
1228
|
};
|
|
1229
|
+
outline: {
|
|
1230
|
+
outer: string;
|
|
1231
|
+
inner: string;
|
|
1232
|
+
};
|
|
1233
1233
|
surface: {
|
|
1234
1234
|
surface: string;
|
|
1235
1235
|
bright: string;
|
|
@@ -1761,10 +1761,6 @@ export declare const CollapsedTitleWrapper: import("styled-components").StyledCo
|
|
|
1761
1761
|
"60": string;
|
|
1762
1762
|
"70": string;
|
|
1763
1763
|
};
|
|
1764
|
-
outline: {
|
|
1765
|
-
outer: string;
|
|
1766
|
-
inner: string;
|
|
1767
|
-
};
|
|
1768
1764
|
alert: {
|
|
1769
1765
|
success: string;
|
|
1770
1766
|
successTint: string;
|
|
@@ -1801,6 +1797,10 @@ export declare const CollapsedTitleWrapper: import("styled-components").StyledCo
|
|
|
1801
1797
|
onBrandVariant: string;
|
|
1802
1798
|
};
|
|
1803
1799
|
};
|
|
1800
|
+
outline: {
|
|
1801
|
+
outer: string;
|
|
1802
|
+
inner: string;
|
|
1803
|
+
};
|
|
1804
1804
|
surface: {
|
|
1805
1805
|
surface: string;
|
|
1806
1806
|
bright: string;
|
|
@@ -2328,10 +2328,6 @@ export declare const CollapsedTitle: import("styled-components").StyledComponent
|
|
|
2328
2328
|
"60": string;
|
|
2329
2329
|
"70": string;
|
|
2330
2330
|
};
|
|
2331
|
-
outline: {
|
|
2332
|
-
outer: string;
|
|
2333
|
-
inner: string;
|
|
2334
|
-
};
|
|
2335
2331
|
alert: {
|
|
2336
2332
|
success: string;
|
|
2337
2333
|
successTint: string;
|
|
@@ -2368,6 +2364,10 @@ export declare const CollapsedTitle: import("styled-components").StyledComponent
|
|
|
2368
2364
|
onBrandVariant: string;
|
|
2369
2365
|
};
|
|
2370
2366
|
};
|
|
2367
|
+
outline: {
|
|
2368
|
+
outer: string;
|
|
2369
|
+
inner: string;
|
|
2370
|
+
};
|
|
2371
2371
|
surface: {
|
|
2372
2372
|
surface: string;
|
|
2373
2373
|
bright: string;
|
|
@@ -2895,10 +2895,6 @@ export declare const HeaderGap: import("styled-components").StyledComponent<type
|
|
|
2895
2895
|
"60": string;
|
|
2896
2896
|
"70": string;
|
|
2897
2897
|
};
|
|
2898
|
-
outline: {
|
|
2899
|
-
outer: string;
|
|
2900
|
-
inner: string;
|
|
2901
|
-
};
|
|
2902
2898
|
alert: {
|
|
2903
2899
|
success: string;
|
|
2904
2900
|
successTint: string;
|
|
@@ -2935,6 +2931,10 @@ export declare const HeaderGap: import("styled-components").StyledComponent<type
|
|
|
2935
2931
|
onBrandVariant: string;
|
|
2936
2932
|
};
|
|
2937
2933
|
};
|
|
2934
|
+
outline: {
|
|
2935
|
+
outer: string;
|
|
2936
|
+
inner: string;
|
|
2937
|
+
};
|
|
2938
2938
|
surface: {
|
|
2939
2939
|
surface: string;
|
|
2940
2940
|
bright: string;
|
|
@@ -3464,10 +3464,6 @@ export declare const BackActionWrapper: import("styled-components").StyledCompon
|
|
|
3464
3464
|
"60": string;
|
|
3465
3465
|
"70": string;
|
|
3466
3466
|
};
|
|
3467
|
-
outline: {
|
|
3468
|
-
outer: string;
|
|
3469
|
-
inner: string;
|
|
3470
|
-
};
|
|
3471
3467
|
alert: {
|
|
3472
3468
|
success: string;
|
|
3473
3469
|
successTint: string;
|
|
@@ -3504,6 +3500,10 @@ export declare const BackActionWrapper: import("styled-components").StyledCompon
|
|
|
3504
3500
|
onBrandVariant: string;
|
|
3505
3501
|
};
|
|
3506
3502
|
};
|
|
3503
|
+
outline: {
|
|
3504
|
+
outer: string;
|
|
3505
|
+
inner: string;
|
|
3506
|
+
};
|
|
3507
3507
|
surface: {
|
|
3508
3508
|
surface: string;
|
|
3509
3509
|
bright: string;
|
|
@@ -54,10 +54,6 @@ export declare const NotificationContentBox: import("styled-components").StyledC
|
|
|
54
54
|
"60": string;
|
|
55
55
|
"70": string;
|
|
56
56
|
};
|
|
57
|
-
outline: {
|
|
58
|
-
outer: string;
|
|
59
|
-
inner: string;
|
|
60
|
-
};
|
|
61
57
|
alert: {
|
|
62
58
|
success: string;
|
|
63
59
|
successTint: string;
|
|
@@ -94,6 +90,10 @@ export declare const NotificationContentBox: import("styled-components").StyledC
|
|
|
94
90
|
onBrandVariant: string;
|
|
95
91
|
};
|
|
96
92
|
};
|
|
93
|
+
outline: {
|
|
94
|
+
outer: string;
|
|
95
|
+
inner: string;
|
|
96
|
+
};
|
|
97
97
|
surface: {
|
|
98
98
|
surface: string;
|
|
99
99
|
bright: string;
|
|
@@ -621,10 +621,6 @@ export declare const NotificationTitleBox: import("styled-components").StyledCom
|
|
|
621
621
|
"60": string;
|
|
622
622
|
"70": string;
|
|
623
623
|
};
|
|
624
|
-
outline: {
|
|
625
|
-
outer: string;
|
|
626
|
-
inner: string;
|
|
627
|
-
};
|
|
628
624
|
alert: {
|
|
629
625
|
success: string;
|
|
630
626
|
successTint: string;
|
|
@@ -661,6 +657,10 @@ export declare const NotificationTitleBox: import("styled-components").StyledCom
|
|
|
661
657
|
onBrandVariant: string;
|
|
662
658
|
};
|
|
663
659
|
};
|
|
660
|
+
outline: {
|
|
661
|
+
outer: string;
|
|
662
|
+
inner: string;
|
|
663
|
+
};
|
|
664
664
|
surface: {
|
|
665
665
|
surface: string;
|
|
666
666
|
bright: string;
|
|
@@ -51,10 +51,6 @@ export declare const StyledPressable: import("styled-components").StyledComponen
|
|
|
51
51
|
"60": string;
|
|
52
52
|
"70": string;
|
|
53
53
|
};
|
|
54
|
-
outline: {
|
|
55
|
-
outer: string;
|
|
56
|
-
inner: string;
|
|
57
|
-
};
|
|
58
54
|
alert: {
|
|
59
55
|
success: string;
|
|
60
56
|
successTint: string;
|
|
@@ -91,6 +87,10 @@ export declare const StyledPressable: import("styled-components").StyledComponen
|
|
|
91
87
|
onBrandVariant: string;
|
|
92
88
|
};
|
|
93
89
|
};
|
|
90
|
+
outline: {
|
|
91
|
+
outer: string;
|
|
92
|
+
inner: string;
|
|
93
|
+
};
|
|
94
94
|
surface: {
|
|
95
95
|
surface: string;
|
|
96
96
|
bright: string;
|
|
@@ -63,10 +63,6 @@ declare const SelectOption: import("styled-components").StyledComponent<typeof i
|
|
|
63
63
|
"60": string;
|
|
64
64
|
"70": string;
|
|
65
65
|
};
|
|
66
|
-
outline: {
|
|
67
|
-
outer: string;
|
|
68
|
-
inner: string;
|
|
69
|
-
};
|
|
70
66
|
alert: {
|
|
71
67
|
success: string;
|
|
72
68
|
successTint: string;
|
|
@@ -103,6 +99,10 @@ declare const SelectOption: import("styled-components").StyledComponent<typeof i
|
|
|
103
99
|
onBrandVariant: string;
|
|
104
100
|
};
|
|
105
101
|
};
|
|
102
|
+
outline: {
|
|
103
|
+
outer: string;
|
|
104
|
+
inner: string;
|
|
105
|
+
};
|
|
106
106
|
surface: {
|
|
107
107
|
surface: string;
|
|
108
108
|
bright: string;
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { SpaceKey } from '@ovotech/element-core';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
2
|
+
import { ComponentProps } from 'react';
|
|
3
|
+
import { View } from 'react-native';
|
|
4
|
+
interface Props extends ComponentProps<typeof View> {
|
|
5
5
|
spaceBetween: SpaceKey | SpaceKey[];
|
|
6
|
-
|
|
7
|
-
};
|
|
6
|
+
}
|
|
8
7
|
declare const Stack: ({ children, spaceBetween, ...rest }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
9
8
|
export { Stack };
|
|
@@ -28,24 +28,23 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
28
28
|
exports.Stack = void 0;
|
|
29
29
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
30
30
|
var element_core_1 = require("@ovotech/element-core");
|
|
31
|
-
var react_1 = require("react");
|
|
32
31
|
var react_native_1 = require("react-native");
|
|
33
|
-
var
|
|
32
|
+
var styled_components_1 = __importDefault(require("styled-components"));
|
|
33
|
+
var hooks_1 = require("../../hooks");
|
|
34
|
+
var styled_native_1 = require("../../styled.native");
|
|
34
35
|
var utils_1 = require("../../utils");
|
|
36
|
+
var StyledStack = (0, styled_components_1.default)(react_native_1.View)(function (_a) {
|
|
37
|
+
var gapStyle = _a.gapStyle;
|
|
38
|
+
return "\n ".concat(gapStyle, "\n");
|
|
39
|
+
});
|
|
35
40
|
var Stack = function (_a) {
|
|
36
41
|
var children = _a.children, spaceBetween = _a.spaceBetween, rest = __rest(_a, ["children", "spaceBetween"]);
|
|
37
|
-
var
|
|
38
|
-
|
|
39
|
-
return index === 0 ? (child) : ((0, jsx_runtime_1.jsx)(StackItem, { spaceBetween: spaceBetween, children: child }));
|
|
40
|
-
}) })));
|
|
41
|
-
};
|
|
42
|
-
exports.Stack = Stack;
|
|
43
|
-
var StyledStackItem = styled_native_1.default.View(function (_a) {
|
|
44
|
-
var theme = _a.theme, spaceBetween = _a.spaceBetween, smallAndUp = _a.smallAndUp, mediumAndUp = _a.mediumAndUp, largeAndUp = _a.largeAndUp;
|
|
42
|
+
var breakpoints = (0, hooks_1.useBreakpoint)();
|
|
43
|
+
var theme = (0, styled_native_1.useTheme)();
|
|
45
44
|
var formatter = function (spaceKey) {
|
|
46
45
|
return (0, element_core_1.numToPx)(theme.space[String(spaceKey * 100)]);
|
|
47
46
|
};
|
|
48
|
-
var
|
|
49
|
-
return (0,
|
|
50
|
-
}
|
|
51
|
-
|
|
47
|
+
var gapStyle = (0, utils_1.responsiveStyle)('gap', spaceBetween, breakpoints, formatter);
|
|
48
|
+
return ((0, jsx_runtime_1.jsx)(StyledStack, __assign({ gapStyle: gapStyle }, rest, { children: children })));
|
|
49
|
+
};
|
|
50
|
+
exports.Stack = Stack;
|
|
@@ -50,10 +50,6 @@ export declare const Strong: import("styled-components").StyledComponent<typeof
|
|
|
50
50
|
"60": string;
|
|
51
51
|
"70": string;
|
|
52
52
|
};
|
|
53
|
-
outline: {
|
|
54
|
-
outer: string;
|
|
55
|
-
inner: string;
|
|
56
|
-
};
|
|
57
53
|
alert: {
|
|
58
54
|
success: string;
|
|
59
55
|
successTint: string;
|
|
@@ -90,6 +86,10 @@ export declare const Strong: import("styled-components").StyledComponent<typeof
|
|
|
90
86
|
onBrandVariant: string;
|
|
91
87
|
};
|
|
92
88
|
};
|
|
89
|
+
outline: {
|
|
90
|
+
outer: string;
|
|
91
|
+
inner: string;
|
|
92
|
+
};
|
|
93
93
|
surface: {
|
|
94
94
|
surface: string;
|
|
95
95
|
bright: string;
|
|
@@ -57,10 +57,6 @@ declare const SubLabelText: import("react").ForwardRefExoticComponent<Omit<Omit<
|
|
|
57
57
|
"60": string;
|
|
58
58
|
"70": string;
|
|
59
59
|
};
|
|
60
|
-
outline: {
|
|
61
|
-
outer: string;
|
|
62
|
-
inner: string;
|
|
63
|
-
};
|
|
64
60
|
alert: {
|
|
65
61
|
success: string;
|
|
66
62
|
successTint: string;
|
|
@@ -97,6 +93,10 @@ declare const SubLabelText: import("react").ForwardRefExoticComponent<Omit<Omit<
|
|
|
97
93
|
onBrandVariant: string;
|
|
98
94
|
};
|
|
99
95
|
};
|
|
96
|
+
outline: {
|
|
97
|
+
outer: string;
|
|
98
|
+
inner: string;
|
|
99
|
+
};
|
|
100
100
|
surface: {
|
|
101
101
|
surface: string;
|
|
102
102
|
bright: string;
|
|
@@ -52,10 +52,6 @@ export declare const StyledWrapper: import("styled-components").StyledComponent<
|
|
|
52
52
|
"60": string;
|
|
53
53
|
"70": string;
|
|
54
54
|
};
|
|
55
|
-
outline: {
|
|
56
|
-
outer: string;
|
|
57
|
-
inner: string;
|
|
58
|
-
};
|
|
59
55
|
alert: {
|
|
60
56
|
success: string;
|
|
61
57
|
successTint: string;
|
|
@@ -92,6 +88,10 @@ export declare const StyledWrapper: import("styled-components").StyledComponent<
|
|
|
92
88
|
onBrandVariant: string;
|
|
93
89
|
};
|
|
94
90
|
};
|
|
91
|
+
outline: {
|
|
92
|
+
outer: string;
|
|
93
|
+
inner: string;
|
|
94
|
+
};
|
|
95
95
|
surface: {
|
|
96
96
|
surface: string;
|
|
97
97
|
bright: string;
|
|
@@ -623,10 +623,6 @@ export declare const StyledToggleInputWrapper: import("styled-components").Style
|
|
|
623
623
|
"60": string;
|
|
624
624
|
"70": string;
|
|
625
625
|
};
|
|
626
|
-
outline: {
|
|
627
|
-
outer: string;
|
|
628
|
-
inner: string;
|
|
629
|
-
};
|
|
630
626
|
alert: {
|
|
631
627
|
success: string;
|
|
632
628
|
successTint: string;
|
|
@@ -663,6 +659,10 @@ export declare const StyledToggleInputWrapper: import("styled-components").Style
|
|
|
663
659
|
onBrandVariant: string;
|
|
664
660
|
};
|
|
665
661
|
};
|
|
662
|
+
outline: {
|
|
663
|
+
outer: string;
|
|
664
|
+
inner: string;
|
|
665
|
+
};
|
|
666
666
|
surface: {
|
|
667
667
|
surface: string;
|
|
668
668
|
bright: string;
|
|
@@ -1192,10 +1192,6 @@ export declare const StyledToggleInput: import("styled-components").StyledCompon
|
|
|
1192
1192
|
"60": string;
|
|
1193
1193
|
"70": string;
|
|
1194
1194
|
};
|
|
1195
|
-
outline: {
|
|
1196
|
-
outer: string;
|
|
1197
|
-
inner: string;
|
|
1198
|
-
};
|
|
1199
1195
|
alert: {
|
|
1200
1196
|
success: string;
|
|
1201
1197
|
successTint: string;
|
|
@@ -1232,6 +1228,10 @@ export declare const StyledToggleInput: import("styled-components").StyledCompon
|
|
|
1232
1228
|
onBrandVariant: string;
|
|
1233
1229
|
};
|
|
1234
1230
|
};
|
|
1231
|
+
outline: {
|
|
1232
|
+
outer: string;
|
|
1233
|
+
inner: string;
|
|
1234
|
+
};
|
|
1235
1235
|
surface: {
|
|
1236
1236
|
surface: string;
|
|
1237
1237
|
bright: string;
|
|
@@ -1761,10 +1761,6 @@ export declare const StyledToggleDot: import("styled-components").StyledComponen
|
|
|
1761
1761
|
"60": string;
|
|
1762
1762
|
"70": string;
|
|
1763
1763
|
};
|
|
1764
|
-
outline: {
|
|
1765
|
-
outer: string;
|
|
1766
|
-
inner: string;
|
|
1767
|
-
};
|
|
1768
1764
|
alert: {
|
|
1769
1765
|
success: string;
|
|
1770
1766
|
successTint: string;
|
|
@@ -1801,6 +1797,10 @@ export declare const StyledToggleDot: import("styled-components").StyledComponen
|
|
|
1801
1797
|
onBrandVariant: string;
|
|
1802
1798
|
};
|
|
1803
1799
|
};
|
|
1800
|
+
outline: {
|
|
1801
|
+
outer: string;
|
|
1802
|
+
inner: string;
|
|
1803
|
+
};
|
|
1804
1804
|
surface: {
|
|
1805
1805
|
surface: string;
|
|
1806
1806
|
bright: string;
|