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