@ovotech/element-native 3.7.0 → 3.8.0-canary-9bfdab2-202
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 +33 -6
- package/dist/components/ActionCard/ActionCard.js +1 -1
- package/dist/components/ActionList/ActionList.d.ts +1 -1
- package/dist/components/ActionList/ActionList.js +2 -1
- package/dist/components/ActionList/styled.d.ts +66 -12
- package/dist/components/Badge/Badge.d.ts +12 -3
- package/dist/components/Card/Card.d.ts +14 -3
- package/dist/components/Card/Card.js +2 -4
- package/dist/components/DataTable/styles.d.ts +143 -26
- package/dist/components/DescriptionList/styled.d.ts +11 -2
- package/dist/components/Em/Em.d.ts +11 -2
- package/dist/components/ErrorText/ErrorText.d.ts +11 -2
- package/dist/components/Grid/Col.d.ts +11 -2
- package/dist/components/Grid/Row.d.ts +11 -2
- package/dist/components/Heading1/Heading1.d.ts +3 -1
- package/dist/components/Heading1/Heading1.js +4 -2
- package/dist/components/Heading2/Heading2.d.ts +3 -1
- package/dist/components/Heading2/Heading2.js +4 -2
- package/dist/components/Heading3/Heading3.d.ts +3 -1
- package/dist/components/Heading3/Heading3.js +4 -2
- package/dist/components/Heading4/Heading4.d.ts +3 -1
- package/dist/components/Heading4/Heading4.js +4 -2
- package/dist/components/HintText/HintText.d.ts +11 -2
- package/dist/components/HorizontalCarousel/HorizontalCarousel.d.ts +13 -0
- package/dist/components/HorizontalCarousel/HorizontalCarousel.js +92 -0
- package/dist/components/HorizontalCarousel/NavigationDots.d.ts +5 -0
- package/dist/components/HorizontalCarousel/NavigationDots.js +88 -0
- package/dist/components/HorizontalCarousel/index.d.ts +1 -0
- package/dist/components/HorizontalCarousel/index.js +17 -0
- package/dist/components/Label/Label.d.ts +5 -241
- package/dist/components/Label/Label.js +16 -4
- package/dist/components/LabelText/LabelText.d.ts +11 -2
- package/dist/components/Lead/Lead.d.ts +5 -241
- package/dist/components/Lead/Lead.js +18 -4
- package/dist/components/LineThrough/LineThrough.d.ts +11 -2
- package/dist/components/List/styled.d.ts +44 -8
- package/dist/components/Margin/Margin.d.ts +11 -2
- package/dist/components/NavHeader/NavHeader.styles.d.ts +88 -16
- package/dist/components/Notification/Notification.d.ts +23 -5
- package/dist/components/Notification/Notification.js +14 -14
- package/dist/components/P/P.d.ts +2 -0
- package/dist/components/P/P.js +2 -2
- package/dist/components/PasswordInput/PasswordInput.styled.d.ts +11 -2
- package/dist/components/SelectField/Select.d.ts +11 -2
- package/dist/components/Small/Small.d.ts +11 -2
- package/dist/components/Strong/Strong.d.ts +11 -2
- package/dist/components/SubLabelText/SubLabelText.d.ts +11 -2
- package/dist/components/Tabs/Tab.js +6 -6
- package/dist/components/Toggle/styles.d.ts +44 -8
- package/dist/esm/components/ActionCard/ActionCard.js +1 -1
- package/dist/esm/components/ActionList/ActionList.js +2 -1
- package/dist/esm/components/Card/Card.js +2 -4
- package/dist/esm/components/Heading1/Heading1.js +4 -2
- package/dist/esm/components/Heading2/Heading2.js +4 -2
- package/dist/esm/components/Heading3/Heading3.js +4 -2
- package/dist/esm/components/Heading4/Heading4.js +4 -2
- package/dist/esm/components/HorizontalCarousel/HorizontalCarousel.js +62 -0
- package/dist/esm/components/HorizontalCarousel/NavigationDots.js +61 -0
- package/dist/esm/components/HorizontalCarousel/index.js +1 -0
- package/dist/esm/components/Label/Label.js +16 -4
- package/dist/esm/components/Lead/Lead.js +18 -4
- package/dist/esm/components/Notification/Notification.js +14 -14
- package/dist/esm/components/P/P.js +2 -2
- package/dist/esm/components/Tabs/Tab.js +7 -7
- package/dist/esm/index.js +1 -0
- package/dist/esm/theme/index.js +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/styled.native.d.ts +66 -12
- package/dist/theme/index.d.ts +1 -0
- package/dist/theme/index.js +17 -0
- package/package.json +4 -3
|
@@ -5,6 +5,7 @@ export declare const NavContainer: import("styled-components").StyledComponent<t
|
|
|
5
5
|
borderWidth: Record<"small" | "medium" | "large", string>;
|
|
6
6
|
breakpoint: Record<"small" | "medium" | "large", string | number>;
|
|
7
7
|
mediaQuery: Record<"small" | "medium" | "large", string>;
|
|
8
|
+
customMediaQuery: Record<"small-and-up" | "medium-and-up" | "large-and-up", string>;
|
|
8
9
|
space: Record<0 | 2 | 1 | 3 | 4 | 5 | 10 | 6 | 7 | 8 | 9 | 11 | 12 | 13 | 14 | 15, string>;
|
|
9
10
|
transition: Record<"medium" | "slow" | "fast", string>;
|
|
10
11
|
opacity: Record<"solid" | "transparent" | "translucent", string | number>;
|
|
@@ -36,12 +37,20 @@ export declare const NavContainer: import("styled-components").StyledComponent<t
|
|
|
36
37
|
};
|
|
37
38
|
semantic: {
|
|
38
39
|
surface: Record<"base" | "cutout" | "elevated", string>;
|
|
39
|
-
message: Record<"base" | "link" | "secondary" | "
|
|
40
|
+
message: Record<"base" | "link" | "secondary" | "branded" | "error", string>;
|
|
41
|
+
branded: Record<"message" | "heading" | "surface", string>;
|
|
40
42
|
border: Record<"graphic" | "differentiated" | "functional", string>;
|
|
41
43
|
focus: Record<"surface" | "outline" | "hover", string>;
|
|
42
|
-
inverted: Record<"surface" | "border", string> & {
|
|
44
|
+
inverted: Record<"surface" | "surfaceAlt" | "border" | "borderAlt", string> & {
|
|
43
45
|
message: Record<"base" | "link" | "secondary" | "branded", string>;
|
|
44
46
|
};
|
|
47
|
+
neutral: {
|
|
48
|
+
border: string;
|
|
49
|
+
surface: string;
|
|
50
|
+
surfaceEmphasis: string;
|
|
51
|
+
message: string;
|
|
52
|
+
messageOnEmphasis: string;
|
|
53
|
+
};
|
|
45
54
|
success: {
|
|
46
55
|
border: string;
|
|
47
56
|
surface: string;
|
|
@@ -239,6 +248,7 @@ export declare const ExpandedTitle: import("styled-components").StyledComponent<
|
|
|
239
248
|
borderWidth: Record<"small" | "medium" | "large", string>;
|
|
240
249
|
breakpoint: Record<"small" | "medium" | "large", string | number>;
|
|
241
250
|
mediaQuery: Record<"small" | "medium" | "large", string>;
|
|
251
|
+
customMediaQuery: Record<"small-and-up" | "medium-and-up" | "large-and-up", string>;
|
|
242
252
|
space: Record<0 | 2 | 1 | 3 | 4 | 5 | 10 | 6 | 7 | 8 | 9 | 11 | 12 | 13 | 14 | 15, string>;
|
|
243
253
|
transition: Record<"medium" | "slow" | "fast", string>;
|
|
244
254
|
opacity: Record<"solid" | "transparent" | "translucent", string | number>;
|
|
@@ -270,12 +280,20 @@ export declare const ExpandedTitle: import("styled-components").StyledComponent<
|
|
|
270
280
|
};
|
|
271
281
|
semantic: {
|
|
272
282
|
surface: Record<"base" | "cutout" | "elevated", string>;
|
|
273
|
-
message: Record<"base" | "link" | "secondary" | "
|
|
283
|
+
message: Record<"base" | "link" | "secondary" | "branded" | "error", string>;
|
|
284
|
+
branded: Record<"message" | "heading" | "surface", string>;
|
|
274
285
|
border: Record<"graphic" | "differentiated" | "functional", string>;
|
|
275
286
|
focus: Record<"surface" | "outline" | "hover", string>;
|
|
276
|
-
inverted: Record<"surface" | "border", string> & {
|
|
287
|
+
inverted: Record<"surface" | "surfaceAlt" | "border" | "borderAlt", string> & {
|
|
277
288
|
message: Record<"base" | "link" | "secondary" | "branded", string>;
|
|
278
289
|
};
|
|
290
|
+
neutral: {
|
|
291
|
+
border: string;
|
|
292
|
+
surface: string;
|
|
293
|
+
surfaceEmphasis: string;
|
|
294
|
+
message: string;
|
|
295
|
+
messageOnEmphasis: string;
|
|
296
|
+
};
|
|
279
297
|
success: {
|
|
280
298
|
border: string;
|
|
281
299
|
surface: string;
|
|
@@ -474,6 +492,7 @@ export declare const CollapsedTitleWrapper: import("styled-components").StyledCo
|
|
|
474
492
|
borderWidth: Record<"small" | "medium" | "large", string>;
|
|
475
493
|
breakpoint: Record<"small" | "medium" | "large", string | number>;
|
|
476
494
|
mediaQuery: Record<"small" | "medium" | "large", string>;
|
|
495
|
+
customMediaQuery: Record<"small-and-up" | "medium-and-up" | "large-and-up", string>;
|
|
477
496
|
space: Record<0 | 2 | 1 | 3 | 4 | 5 | 10 | 6 | 7 | 8 | 9 | 11 | 12 | 13 | 14 | 15, string>;
|
|
478
497
|
transition: Record<"medium" | "slow" | "fast", string>;
|
|
479
498
|
opacity: Record<"solid" | "transparent" | "translucent", string | number>;
|
|
@@ -505,12 +524,20 @@ export declare const CollapsedTitleWrapper: import("styled-components").StyledCo
|
|
|
505
524
|
};
|
|
506
525
|
semantic: {
|
|
507
526
|
surface: Record<"base" | "cutout" | "elevated", string>;
|
|
508
|
-
message: Record<"base" | "link" | "secondary" | "
|
|
527
|
+
message: Record<"base" | "link" | "secondary" | "branded" | "error", string>;
|
|
528
|
+
branded: Record<"message" | "heading" | "surface", string>;
|
|
509
529
|
border: Record<"graphic" | "differentiated" | "functional", string>;
|
|
510
530
|
focus: Record<"surface" | "outline" | "hover", string>;
|
|
511
|
-
inverted: Record<"surface" | "border", string> & {
|
|
531
|
+
inverted: Record<"surface" | "surfaceAlt" | "border" | "borderAlt", string> & {
|
|
512
532
|
message: Record<"base" | "link" | "secondary" | "branded", string>;
|
|
513
533
|
};
|
|
534
|
+
neutral: {
|
|
535
|
+
border: string;
|
|
536
|
+
surface: string;
|
|
537
|
+
surfaceEmphasis: string;
|
|
538
|
+
message: string;
|
|
539
|
+
messageOnEmphasis: string;
|
|
540
|
+
};
|
|
514
541
|
success: {
|
|
515
542
|
border: string;
|
|
516
543
|
surface: string;
|
|
@@ -706,6 +733,7 @@ export declare const CollapsedTitle: import("styled-components").StyledComponent
|
|
|
706
733
|
borderWidth: Record<"small" | "medium" | "large", string>;
|
|
707
734
|
breakpoint: Record<"small" | "medium" | "large", string | number>;
|
|
708
735
|
mediaQuery: Record<"small" | "medium" | "large", string>;
|
|
736
|
+
customMediaQuery: Record<"small-and-up" | "medium-and-up" | "large-and-up", string>;
|
|
709
737
|
space: Record<0 | 2 | 1 | 3 | 4 | 5 | 10 | 6 | 7 | 8 | 9 | 11 | 12 | 13 | 14 | 15, string>;
|
|
710
738
|
transition: Record<"medium" | "slow" | "fast", string>;
|
|
711
739
|
opacity: Record<"solid" | "transparent" | "translucent", string | number>;
|
|
@@ -737,12 +765,20 @@ export declare const CollapsedTitle: import("styled-components").StyledComponent
|
|
|
737
765
|
};
|
|
738
766
|
semantic: {
|
|
739
767
|
surface: Record<"base" | "cutout" | "elevated", string>;
|
|
740
|
-
message: Record<"base" | "link" | "secondary" | "
|
|
768
|
+
message: Record<"base" | "link" | "secondary" | "branded" | "error", string>;
|
|
769
|
+
branded: Record<"message" | "heading" | "surface", string>;
|
|
741
770
|
border: Record<"graphic" | "differentiated" | "functional", string>;
|
|
742
771
|
focus: Record<"surface" | "outline" | "hover", string>;
|
|
743
|
-
inverted: Record<"surface" | "border", string> & {
|
|
772
|
+
inverted: Record<"surface" | "surfaceAlt" | "border" | "borderAlt", string> & {
|
|
744
773
|
message: Record<"base" | "link" | "secondary" | "branded", string>;
|
|
745
774
|
};
|
|
775
|
+
neutral: {
|
|
776
|
+
border: string;
|
|
777
|
+
surface: string;
|
|
778
|
+
surfaceEmphasis: string;
|
|
779
|
+
message: string;
|
|
780
|
+
messageOnEmphasis: string;
|
|
781
|
+
};
|
|
746
782
|
success: {
|
|
747
783
|
border: string;
|
|
748
784
|
surface: string;
|
|
@@ -938,6 +974,7 @@ export declare const IconButtonWrapper: import("styled-components").StyledCompon
|
|
|
938
974
|
borderWidth: Record<"small" | "medium" | "large", string>;
|
|
939
975
|
breakpoint: Record<"small" | "medium" | "large", string | number>;
|
|
940
976
|
mediaQuery: Record<"small" | "medium" | "large", string>;
|
|
977
|
+
customMediaQuery: Record<"small-and-up" | "medium-and-up" | "large-and-up", string>;
|
|
941
978
|
space: Record<0 | 2 | 1 | 3 | 4 | 5 | 10 | 6 | 7 | 8 | 9 | 11 | 12 | 13 | 14 | 15, string>;
|
|
942
979
|
transition: Record<"medium" | "slow" | "fast", string>;
|
|
943
980
|
opacity: Record<"solid" | "transparent" | "translucent", string | number>;
|
|
@@ -969,12 +1006,20 @@ export declare const IconButtonWrapper: import("styled-components").StyledCompon
|
|
|
969
1006
|
};
|
|
970
1007
|
semantic: {
|
|
971
1008
|
surface: Record<"base" | "cutout" | "elevated", string>;
|
|
972
|
-
message: Record<"base" | "link" | "secondary" | "
|
|
1009
|
+
message: Record<"base" | "link" | "secondary" | "branded" | "error", string>;
|
|
1010
|
+
branded: Record<"message" | "heading" | "surface", string>;
|
|
973
1011
|
border: Record<"graphic" | "differentiated" | "functional", string>;
|
|
974
1012
|
focus: Record<"surface" | "outline" | "hover", string>;
|
|
975
|
-
inverted: Record<"surface" | "border", string> & {
|
|
1013
|
+
inverted: Record<"surface" | "surfaceAlt" | "border" | "borderAlt", string> & {
|
|
976
1014
|
message: Record<"base" | "link" | "secondary" | "branded", string>;
|
|
977
1015
|
};
|
|
1016
|
+
neutral: {
|
|
1017
|
+
border: string;
|
|
1018
|
+
surface: string;
|
|
1019
|
+
surfaceEmphasis: string;
|
|
1020
|
+
message: string;
|
|
1021
|
+
messageOnEmphasis: string;
|
|
1022
|
+
};
|
|
978
1023
|
success: {
|
|
979
1024
|
border: string;
|
|
980
1025
|
surface: string;
|
|
@@ -1170,6 +1215,7 @@ export declare const StyledIconButtonS: import("styled-components").StyledCompon
|
|
|
1170
1215
|
borderWidth: Record<"small" | "medium" | "large", string>;
|
|
1171
1216
|
breakpoint: Record<"small" | "medium" | "large", string | number>;
|
|
1172
1217
|
mediaQuery: Record<"small" | "medium" | "large", string>;
|
|
1218
|
+
customMediaQuery: Record<"small-and-up" | "medium-and-up" | "large-and-up", string>;
|
|
1173
1219
|
space: Record<0 | 2 | 1 | 3 | 4 | 5 | 10 | 6 | 7 | 8 | 9 | 11 | 12 | 13 | 14 | 15, string>;
|
|
1174
1220
|
transition: Record<"medium" | "slow" | "fast", string>;
|
|
1175
1221
|
opacity: Record<"solid" | "transparent" | "translucent", string | number>;
|
|
@@ -1201,12 +1247,20 @@ export declare const StyledIconButtonS: import("styled-components").StyledCompon
|
|
|
1201
1247
|
};
|
|
1202
1248
|
semantic: {
|
|
1203
1249
|
surface: Record<"base" | "cutout" | "elevated", string>;
|
|
1204
|
-
message: Record<"base" | "link" | "secondary" | "
|
|
1250
|
+
message: Record<"base" | "link" | "secondary" | "branded" | "error", string>;
|
|
1251
|
+
branded: Record<"message" | "heading" | "surface", string>;
|
|
1205
1252
|
border: Record<"graphic" | "differentiated" | "functional", string>;
|
|
1206
1253
|
focus: Record<"surface" | "outline" | "hover", string>;
|
|
1207
|
-
inverted: Record<"surface" | "border", string> & {
|
|
1254
|
+
inverted: Record<"surface" | "surfaceAlt" | "border" | "borderAlt", string> & {
|
|
1208
1255
|
message: Record<"base" | "link" | "secondary" | "branded", string>;
|
|
1209
1256
|
};
|
|
1257
|
+
neutral: {
|
|
1258
|
+
border: string;
|
|
1259
|
+
surface: string;
|
|
1260
|
+
surfaceEmphasis: string;
|
|
1261
|
+
message: string;
|
|
1262
|
+
messageOnEmphasis: string;
|
|
1263
|
+
};
|
|
1210
1264
|
success: {
|
|
1211
1265
|
border: string;
|
|
1212
1266
|
surface: string;
|
|
@@ -1404,6 +1458,7 @@ export declare const StyledIconButtonL: import("styled-components").StyledCompon
|
|
|
1404
1458
|
borderWidth: Record<"small" | "medium" | "large", string>;
|
|
1405
1459
|
breakpoint: Record<"small" | "medium" | "large", string | number>;
|
|
1406
1460
|
mediaQuery: Record<"small" | "medium" | "large", string>;
|
|
1461
|
+
customMediaQuery: Record<"small-and-up" | "medium-and-up" | "large-and-up", string>;
|
|
1407
1462
|
space: Record<0 | 2 | 1 | 3 | 4 | 5 | 10 | 6 | 7 | 8 | 9 | 11 | 12 | 13 | 14 | 15, string>;
|
|
1408
1463
|
transition: Record<"medium" | "slow" | "fast", string>;
|
|
1409
1464
|
opacity: Record<"solid" | "transparent" | "translucent", string | number>;
|
|
@@ -1435,12 +1490,20 @@ export declare const StyledIconButtonL: import("styled-components").StyledCompon
|
|
|
1435
1490
|
};
|
|
1436
1491
|
semantic: {
|
|
1437
1492
|
surface: Record<"base" | "cutout" | "elevated", string>;
|
|
1438
|
-
message: Record<"base" | "link" | "secondary" | "
|
|
1493
|
+
message: Record<"base" | "link" | "secondary" | "branded" | "error", string>;
|
|
1494
|
+
branded: Record<"message" | "heading" | "surface", string>;
|
|
1439
1495
|
border: Record<"graphic" | "differentiated" | "functional", string>;
|
|
1440
1496
|
focus: Record<"surface" | "outline" | "hover", string>;
|
|
1441
|
-
inverted: Record<"surface" | "border", string> & {
|
|
1497
|
+
inverted: Record<"surface" | "surfaceAlt" | "border" | "borderAlt", string> & {
|
|
1442
1498
|
message: Record<"base" | "link" | "secondary" | "branded", string>;
|
|
1443
1499
|
};
|
|
1500
|
+
neutral: {
|
|
1501
|
+
border: string;
|
|
1502
|
+
surface: string;
|
|
1503
|
+
surfaceEmphasis: string;
|
|
1504
|
+
message: string;
|
|
1505
|
+
messageOnEmphasis: string;
|
|
1506
|
+
};
|
|
1444
1507
|
success: {
|
|
1445
1508
|
border: string;
|
|
1446
1509
|
surface: string;
|
|
@@ -1638,6 +1701,7 @@ export declare const ActionWrapper: import("styled-components").StyledComponent<
|
|
|
1638
1701
|
borderWidth: Record<"small" | "medium" | "large", string>;
|
|
1639
1702
|
breakpoint: Record<"small" | "medium" | "large", string | number>;
|
|
1640
1703
|
mediaQuery: Record<"small" | "medium" | "large", string>;
|
|
1704
|
+
customMediaQuery: Record<"small-and-up" | "medium-and-up" | "large-and-up", string>;
|
|
1641
1705
|
space: Record<0 | 2 | 1 | 3 | 4 | 5 | 10 | 6 | 7 | 8 | 9 | 11 | 12 | 13 | 14 | 15, string>;
|
|
1642
1706
|
transition: Record<"medium" | "slow" | "fast", string>;
|
|
1643
1707
|
opacity: Record<"solid" | "transparent" | "translucent", string | number>;
|
|
@@ -1669,12 +1733,20 @@ export declare const ActionWrapper: import("styled-components").StyledComponent<
|
|
|
1669
1733
|
};
|
|
1670
1734
|
semantic: {
|
|
1671
1735
|
surface: Record<"base" | "cutout" | "elevated", string>;
|
|
1672
|
-
message: Record<"base" | "link" | "secondary" | "
|
|
1736
|
+
message: Record<"base" | "link" | "secondary" | "branded" | "error", string>;
|
|
1737
|
+
branded: Record<"message" | "heading" | "surface", string>;
|
|
1673
1738
|
border: Record<"graphic" | "differentiated" | "functional", string>;
|
|
1674
1739
|
focus: Record<"surface" | "outline" | "hover", string>;
|
|
1675
|
-
inverted: Record<"surface" | "border", string> & {
|
|
1740
|
+
inverted: Record<"surface" | "surfaceAlt" | "border" | "borderAlt", string> & {
|
|
1676
1741
|
message: Record<"base" | "link" | "secondary" | "branded", string>;
|
|
1677
1742
|
};
|
|
1743
|
+
neutral: {
|
|
1744
|
+
border: string;
|
|
1745
|
+
surface: string;
|
|
1746
|
+
surfaceEmphasis: string;
|
|
1747
|
+
message: string;
|
|
1748
|
+
messageOnEmphasis: string;
|
|
1749
|
+
};
|
|
1678
1750
|
success: {
|
|
1679
1751
|
border: string;
|
|
1680
1752
|
surface: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ComponentProps, ReactNode } from 'react';
|
|
2
2
|
import { View } from 'react-native';
|
|
3
|
-
export declare type NotificationVariantName = 'error' | 'success' | 'info' | 'warning';
|
|
3
|
+
export declare type NotificationVariantName = 'error' | 'success' | 'info' | 'warning' | 'neutral';
|
|
4
4
|
declare type NotificationProps = Omit<ComponentProps<typeof Notification>, 'variant'>;
|
|
5
5
|
export declare const NotificationContentBox: import("styled-components").StyledComponent<typeof import("react-native").View, {
|
|
6
6
|
core: {
|
|
@@ -8,6 +8,7 @@ export declare const NotificationContentBox: import("styled-components").StyledC
|
|
|
8
8
|
borderWidth: Record<"small" | "medium" | "large", string>;
|
|
9
9
|
breakpoint: Record<"small" | "medium" | "large", string | number>;
|
|
10
10
|
mediaQuery: Record<"small" | "medium" | "large", string>;
|
|
11
|
+
customMediaQuery: Record<"small-and-up" | "medium-and-up" | "large-and-up", string>;
|
|
11
12
|
space: Record<0 | 2 | 1 | 3 | 4 | 5 | 10 | 6 | 7 | 8 | 9 | 11 | 12 | 13 | 14 | 15, string>;
|
|
12
13
|
transition: Record<"medium" | "slow" | "fast", string>;
|
|
13
14
|
opacity: Record<"solid" | "transparent" | "translucent", string | number>;
|
|
@@ -39,12 +40,20 @@ export declare const NotificationContentBox: import("styled-components").StyledC
|
|
|
39
40
|
};
|
|
40
41
|
semantic: {
|
|
41
42
|
surface: Record<"base" | "cutout" | "elevated", string>;
|
|
42
|
-
message: Record<"base" | "link" | "secondary" | "
|
|
43
|
+
message: Record<"base" | "link" | "secondary" | "branded" | "error", string>;
|
|
44
|
+
branded: Record<"message" | "heading" | "surface", string>;
|
|
43
45
|
border: Record<"graphic" | "differentiated" | "functional", string>;
|
|
44
46
|
focus: Record<"surface" | "outline" | "hover", string>;
|
|
45
|
-
inverted: Record<"surface" | "border", string> & {
|
|
47
|
+
inverted: Record<"surface" | "surfaceAlt" | "border" | "borderAlt", string> & {
|
|
46
48
|
message: Record<"base" | "link" | "secondary" | "branded", string>;
|
|
47
49
|
};
|
|
50
|
+
neutral: {
|
|
51
|
+
border: string;
|
|
52
|
+
surface: string;
|
|
53
|
+
surfaceEmphasis: string;
|
|
54
|
+
message: string;
|
|
55
|
+
messageOnEmphasis: string;
|
|
56
|
+
};
|
|
48
57
|
success: {
|
|
49
58
|
border: string;
|
|
50
59
|
surface: string;
|
|
@@ -240,6 +249,7 @@ export declare const NotificationTitleBox: import("styled-components").StyledCom
|
|
|
240
249
|
borderWidth: Record<"small" | "medium" | "large", string>;
|
|
241
250
|
breakpoint: Record<"small" | "medium" | "large", string | number>;
|
|
242
251
|
mediaQuery: Record<"small" | "medium" | "large", string>;
|
|
252
|
+
customMediaQuery: Record<"small-and-up" | "medium-and-up" | "large-and-up", string>;
|
|
243
253
|
space: Record<0 | 2 | 1 | 3 | 4 | 5 | 10 | 6 | 7 | 8 | 9 | 11 | 12 | 13 | 14 | 15, string>;
|
|
244
254
|
transition: Record<"medium" | "slow" | "fast", string>;
|
|
245
255
|
opacity: Record<"solid" | "transparent" | "translucent", string | number>;
|
|
@@ -271,12 +281,20 @@ export declare const NotificationTitleBox: import("styled-components").StyledCom
|
|
|
271
281
|
};
|
|
272
282
|
semantic: {
|
|
273
283
|
surface: Record<"base" | "cutout" | "elevated", string>;
|
|
274
|
-
message: Record<"base" | "link" | "secondary" | "
|
|
284
|
+
message: Record<"base" | "link" | "secondary" | "branded" | "error", string>;
|
|
285
|
+
branded: Record<"message" | "heading" | "surface", string>;
|
|
275
286
|
border: Record<"graphic" | "differentiated" | "functional", string>;
|
|
276
287
|
focus: Record<"surface" | "outline" | "hover", string>;
|
|
277
|
-
inverted: Record<"surface" | "border", string> & {
|
|
288
|
+
inverted: Record<"surface" | "surfaceAlt" | "border" | "borderAlt", string> & {
|
|
278
289
|
message: Record<"base" | "link" | "secondary" | "branded", string>;
|
|
279
290
|
};
|
|
291
|
+
neutral: {
|
|
292
|
+
border: string;
|
|
293
|
+
surface: string;
|
|
294
|
+
surfaceEmphasis: string;
|
|
295
|
+
message: string;
|
|
296
|
+
messageOnEmphasis: string;
|
|
297
|
+
};
|
|
280
298
|
success: {
|
|
281
299
|
border: string;
|
|
282
300
|
surface: string;
|
|
@@ -56,46 +56,46 @@ var react_native_1 = require("react-native");
|
|
|
56
56
|
var styled_native_1 = __importStar(require("../../styled.native"));
|
|
57
57
|
var Icon_1 = require("../Icon");
|
|
58
58
|
var NotificationBox = styled_native_1.default.View(function (_a) {
|
|
59
|
-
var
|
|
60
|
-
return (0, styled_native_1.css)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n position: relative;\n border: ", " solid ", ";\n border-radius: ", ";\n
|
|
59
|
+
var _b = _a.theme, core = _b.core, semantic = _b.semantic, noMargin = _a.noMargin;
|
|
60
|
+
return (0, styled_native_1.css)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n position: relative;\n margin-bottom: ", ";\n border: ", " solid ", ";\n border-radius: ", ";\n overflow: hidden;\n "], ["\n position: relative;\n margin-bottom: ", ";\n border: ", " solid ", ";\n border-radius: ", ";\n overflow: hidden;\n "])), noMargin ? 0 : core.space[4], core.borderWidth.small, semantic.surface.elevated, core.radius.max);
|
|
61
61
|
});
|
|
62
62
|
exports.NotificationContentBox = styled_native_1.default.View(function (_a) {
|
|
63
|
-
var
|
|
64
|
-
return (0, styled_native_1.css)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n
|
|
63
|
+
var _b = _a.theme, core = _b.core, semantic = _b.semantic;
|
|
64
|
+
return (0, styled_native_1.css)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n background-color: ", ";\n padding-top: ", ";\n padding-bottom: ", ";\n padding-left: ", ";\n padding-right: ", ";\n "], ["\n background-color: ", ";\n padding-top: ", ";\n padding-bottom: ", ";\n padding-left: ", ";\n padding-right: ", ";\n "])), semantic.surface.elevated, core.space[2], core.space[3], core.space[4], core.space[4]);
|
|
65
65
|
});
|
|
66
66
|
exports.NotificationTitleBox = styled_native_1.default.View(function (_a) {
|
|
67
67
|
var _b = _a.theme, core = _b.core, semantic = _b.semantic, variant = _a.variant, dismissible = _a.dismissible;
|
|
68
68
|
var currentVariant = semantic[variant];
|
|
69
|
-
return (0, styled_native_1.css)(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n flex-direction: row;\n align-items: center;\n background-color: ", ";\n padding-top: ", ";\n padding-bottom: ", ";\n padding-left: ", ";\n padding-right: ", ";\n "], ["\n flex-direction: row;\n align-items: center;\n background-color: ", ";\n padding-top: ", ";\n padding-bottom: ", ";\n padding-left: ", ";\n padding-right: ", ";\n "])), currentVariant.surface, core.space[2], core.space[2], core.space[4], dismissible ? core.space[3] : core.space[4]);
|
|
69
|
+
return (0, styled_native_1.css)(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n flex-direction: row;\n align-items: center;\n justify-content: space-between;\n background-color: ", ";\n padding-top: ", ";\n padding-bottom: ", ";\n padding-left: ", ";\n padding-right: ", ";\n min-height: 44px;\n "], ["\n flex-direction: row;\n align-items: center;\n justify-content: space-between;\n background-color: ", ";\n padding-top: ", ";\n padding-bottom: ", ";\n padding-left: ", ";\n padding-right: ", ";\n min-height: 44px;\n "])), currentVariant.surface, core.space[2], core.space[2], core.space[4], dismissible ? core.space[3] : core.space[4]);
|
|
70
70
|
});
|
|
71
71
|
var NotificationTitleText = styled_native_1.default.Text(function (_a) {
|
|
72
72
|
var _b = _a.theme, core = _b.core, semantic = _b.semantic, variant = _a.variant;
|
|
73
73
|
var currentVariant = semantic[variant];
|
|
74
74
|
return (0, styled_native_1.css)(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n font-size: ", ";\n font-family: ", ";\n color: ", ";\n "], ["\n font-size: ", ";\n font-family: ", ";\n color: ", ";\n "])), core.fontSize.body.small, core.fontFamily.bodyBold.native, currentVariant.message);
|
|
75
75
|
});
|
|
76
|
-
var DismissButton = styled_native_1.default.TouchableOpacity(function () {
|
|
77
|
-
|
|
76
|
+
var DismissButton = styled_native_1.default.TouchableOpacity(function (_a) {
|
|
77
|
+
var _b = _a.theme, core = _b.core, semantic = _b.semantic;
|
|
78
|
+
return (0, styled_native_1.css)(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n display: flex;\n justify-content: center;\n align-items: center;\n width: 28px;\n height: 28px;\n background: ", ";\n border: ", " solid ", ";\n border-radius: ", ";\n "], ["\n display: flex;\n justify-content: center;\n align-items: center;\n width: 28px;\n height: 28px;\n background: ", ";\n border: ", " solid ", ";\n border-radius: ", ";\n "])), semantic.inverted.surface, core.borderWidth.small, core.color.brand.forest, core.radius.max);
|
|
78
79
|
});
|
|
79
80
|
var StyledIcon = (0, styled_native_1.default)(Icon_1.Icon)(function (_a) {
|
|
80
|
-
var semantic = _a.theme.semantic
|
|
81
|
-
|
|
82
|
-
return (0, styled_native_1.css)(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n color: ", ";\n "], ["\n color: ", ";\n "])), currentVariant.message);
|
|
81
|
+
var semantic = _a.theme.semantic;
|
|
82
|
+
return "\n color: ".concat(semantic.inverted.message.base, ";\n ");
|
|
83
83
|
});
|
|
84
84
|
exports.Notification = (0, react_1.forwardRef)(function (_a, ref) {
|
|
85
|
-
var _b = _a.variant, variant = _b === void 0 ? '
|
|
85
|
+
var _b = _a.variant, variant = _b === void 0 ? 'neutral' : _b, children = _a.children, title = _a.title, noMargin = _a.noMargin, dismissible = _a.dismissible, onDismiss = _a.onDismiss, rest = __rest(_a, ["variant", "children", "title", "noMargin", "dismissible", "onDismiss"]);
|
|
86
86
|
var _c = (0, react_1.useState)(false), dismissed = _c[0], setDismissed = _c[1];
|
|
87
87
|
if (dismissed || (!title && !children)) {
|
|
88
88
|
return null;
|
|
89
89
|
}
|
|
90
|
-
return ((0, jsx_runtime_1.jsx)(react_native_1.View, __assign({ ref: ref }, rest, { children: (0, jsx_runtime_1.jsxs)(NotificationBox, __assign({ noMargin: noMargin, testID: "nb-notification" }, { children: [(0, jsx_runtime_1.jsxs)(exports.NotificationTitleBox, __assign({ variant: variant, dismissible: dismissible }, { children: [(0, jsx_runtime_1.jsx)(NotificationTitleText, __assign({ variant: variant }, { children: title })), dismissible ? ((0, jsx_runtime_1.jsx)(DismissButton, __assign({ accessibilityLabel: "Dismiss", testID: "nb-notification-dismiss", onPress: function () {
|
|
90
|
+
return ((0, jsx_runtime_1.jsx)(react_native_1.View, __assign({ ref: ref }, rest, { children: (0, jsx_runtime_1.jsxs)(NotificationBox, __assign({ noMargin: noMargin, testID: "nb-notification" }, { children: [(0, jsx_runtime_1.jsxs)(exports.NotificationTitleBox, __assign({ variant: variant, dismissible: dismissible }, { children: [(0, jsx_runtime_1.jsx)(NotificationTitleText, __assign({ variant: variant }, { children: title })), dismissible ? ((0, jsx_runtime_1.jsx)(DismissButton, __assign({ accessible: true, accessibilityLabel: "Dismiss", testID: "nb-notification-dismiss", onPress: function () {
|
|
91
91
|
setDismissed(true);
|
|
92
92
|
if (onDismiss) {
|
|
93
93
|
onDismiss();
|
|
94
94
|
}
|
|
95
|
-
} }, { children: (0, jsx_runtime_1.jsx)(StyledIcon, {
|
|
95
|
+
} }, { children: (0, jsx_runtime_1.jsx)(StyledIcon, { name: "cross", size: "16" }) }))) : null] })), children ? ((0, jsx_runtime_1.jsx)(exports.NotificationContentBox, __assign({ "data-testid": "el-notification-box" }, { children: children }))) : null] })) })));
|
|
96
96
|
});
|
|
97
97
|
exports.ErrorNotification = (0, react_1.forwardRef)(function (props, ref) { return (0, jsx_runtime_1.jsx)(exports.Notification, __assign({ ref: ref, variant: "error" }, props)); });
|
|
98
98
|
exports.SuccessNotification = (0, react_1.forwardRef)(function (props, ref) { return ((0, jsx_runtime_1.jsx)(exports.Notification, __assign({ ref: ref, variant: "success" }, props))); });
|
|
99
99
|
exports.InfoNotification = (0, react_1.forwardRef)(function (props, ref) { return (0, jsx_runtime_1.jsx)(exports.Notification, __assign({ ref: ref, variant: "info" }, props)); });
|
|
100
100
|
exports.WarningNotification = (0, react_1.forwardRef)(function (props, ref) { return (0, jsx_runtime_1.jsx)(exports.Notification, __assign({ ref: ref, variant: "warning" }, props)); });
|
|
101
|
-
var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5
|
|
101
|
+
var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5;
|
package/dist/components/P/P.d.ts
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { TextProps } from 'react-native';
|
|
3
3
|
export declare const P: import("react").ForwardRefExoticComponent<TextProps & {
|
|
4
|
+
inverted?: boolean | undefined;
|
|
5
|
+
} & {
|
|
4
6
|
children?: import("react").ReactNode;
|
|
5
7
|
} & import("react").RefAttributes<unknown>>;
|
package/dist/components/P/P.js
CHANGED
|
@@ -44,8 +44,8 @@ var react_1 = require("react");
|
|
|
44
44
|
var hooks_1 = require("../../hooks");
|
|
45
45
|
var styled_native_1 = __importStar(require("../../styled.native"));
|
|
46
46
|
var StyledP = styled_native_1.default.Text(function (_a) {
|
|
47
|
-
var _b = _a.theme, core = _b.core, semantic = _b.semantic, smallAndUp = _a.smallAndUp;
|
|
48
|
-
return (0, styled_native_1.css)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n font-family: ", ";\n font-size: ", ";\n line-height: ", ";\n color: ", ";\n "], ["\n font-family: ", ";\n font-size: ", ";\n line-height: ", ";\n color: ", ";\n "])), core.fontFamily.body.native, core.fontSize.body[smallAndUp ? 'large' : 'small'], core.lineHeight.body[smallAndUp ? 'large' : 'small'], semantic.message.base);
|
|
47
|
+
var _b = _a.theme, core = _b.core, semantic = _b.semantic, smallAndUp = _a.smallAndUp, inverted = _a.inverted;
|
|
48
|
+
return (0, styled_native_1.css)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n font-family: ", ";\n font-size: ", ";\n line-height: ", ";\n color: ", ";\n "], ["\n font-family: ", ";\n font-size: ", ";\n line-height: ", ";\n color: ", ";\n "])), core.fontFamily.body.native, core.fontSize.body[smallAndUp ? 'large' : 'small'], core.lineHeight.body[smallAndUp ? 'large' : 'small'], inverted ? semantic.inverted.message.base : semantic.message.base);
|
|
49
49
|
});
|
|
50
50
|
exports.P = (0, react_1.forwardRef)(function (props, ref) {
|
|
51
51
|
var breakpoints = (0, hooks_1.useBreakpoint)();
|
|
@@ -5,6 +5,7 @@ export declare const StyledPressable: import("styled-components").StyledComponen
|
|
|
5
5
|
borderWidth: Record<"small" | "medium" | "large", string>;
|
|
6
6
|
breakpoint: Record<"small" | "medium" | "large", string | number>;
|
|
7
7
|
mediaQuery: Record<"small" | "medium" | "large", string>;
|
|
8
|
+
customMediaQuery: Record<"small-and-up" | "medium-and-up" | "large-and-up", string>;
|
|
8
9
|
space: Record<0 | 2 | 1 | 3 | 4 | 5 | 10 | 6 | 7 | 8 | 9 | 11 | 12 | 13 | 14 | 15, string>;
|
|
9
10
|
transition: Record<"medium" | "slow" | "fast", string>;
|
|
10
11
|
opacity: Record<"solid" | "transparent" | "translucent", string | number>;
|
|
@@ -36,12 +37,20 @@ export declare const StyledPressable: import("styled-components").StyledComponen
|
|
|
36
37
|
};
|
|
37
38
|
semantic: {
|
|
38
39
|
surface: Record<"base" | "cutout" | "elevated", string>;
|
|
39
|
-
message: Record<"base" | "link" | "secondary" | "
|
|
40
|
+
message: Record<"base" | "link" | "secondary" | "branded" | "error", string>;
|
|
41
|
+
branded: Record<"message" | "heading" | "surface", string>;
|
|
40
42
|
border: Record<"graphic" | "differentiated" | "functional", string>;
|
|
41
43
|
focus: Record<"surface" | "outline" | "hover", string>;
|
|
42
|
-
inverted: Record<"surface" | "border", string> & {
|
|
44
|
+
inverted: Record<"surface" | "surfaceAlt" | "border" | "borderAlt", string> & {
|
|
43
45
|
message: Record<"base" | "link" | "secondary" | "branded", string>;
|
|
44
46
|
};
|
|
47
|
+
neutral: {
|
|
48
|
+
border: string;
|
|
49
|
+
surface: string;
|
|
50
|
+
surfaceEmphasis: string;
|
|
51
|
+
message: string;
|
|
52
|
+
messageOnEmphasis: string;
|
|
53
|
+
};
|
|
45
54
|
success: {
|
|
46
55
|
border: string;
|
|
47
56
|
surface: string;
|
|
@@ -17,6 +17,7 @@ declare const SelectOption: import("styled-components").StyledComponent<typeof i
|
|
|
17
17
|
borderWidth: Record<"small" | "medium" | "large", string>;
|
|
18
18
|
breakpoint: Record<"small" | "medium" | "large", string | number>;
|
|
19
19
|
mediaQuery: Record<"small" | "medium" | "large", string>;
|
|
20
|
+
customMediaQuery: Record<"small-and-up" | "medium-and-up" | "large-and-up", string>;
|
|
20
21
|
space: Record<0 | 2 | 1 | 3 | 4 | 5 | 10 | 6 | 7 | 8 | 9 | 11 | 12 | 13 | 14 | 15, string>;
|
|
21
22
|
transition: Record<"medium" | "slow" | "fast", string>;
|
|
22
23
|
opacity: Record<"solid" | "transparent" | "translucent", string | number>;
|
|
@@ -48,12 +49,20 @@ declare const SelectOption: import("styled-components").StyledComponent<typeof i
|
|
|
48
49
|
};
|
|
49
50
|
semantic: {
|
|
50
51
|
surface: Record<"base" | "cutout" | "elevated", string>;
|
|
51
|
-
message: Record<"base" | "link" | "secondary" | "
|
|
52
|
+
message: Record<"base" | "link" | "secondary" | "branded" | "error", string>;
|
|
53
|
+
branded: Record<"message" | "heading" | "surface", string>;
|
|
52
54
|
border: Record<"graphic" | "differentiated" | "functional", string>;
|
|
53
55
|
focus: Record<"surface" | "outline" | "hover", string>;
|
|
54
|
-
inverted: Record<"surface" | "border", string> & {
|
|
56
|
+
inverted: Record<"surface" | "surfaceAlt" | "border" | "borderAlt", string> & {
|
|
55
57
|
message: Record<"base" | "link" | "secondary" | "branded", string>;
|
|
56
58
|
};
|
|
59
|
+
neutral: {
|
|
60
|
+
border: string;
|
|
61
|
+
surface: string;
|
|
62
|
+
surfaceEmphasis: string;
|
|
63
|
+
message: string;
|
|
64
|
+
messageOnEmphasis: string;
|
|
65
|
+
};
|
|
57
66
|
success: {
|
|
58
67
|
border: string;
|
|
59
68
|
surface: string;
|
|
@@ -11,6 +11,7 @@ export declare const Small: import("react").ForwardRefExoticComponent<Pick<Omit<
|
|
|
11
11
|
borderWidth: Record<"small" | "medium" | "large", string>;
|
|
12
12
|
breakpoint: Record<"small" | "medium" | "large", string | number>;
|
|
13
13
|
mediaQuery: Record<"small" | "medium" | "large", string>;
|
|
14
|
+
customMediaQuery: Record<"small-and-up" | "medium-and-up" | "large-and-up", string>;
|
|
14
15
|
space: Record<0 | 2 | 1 | 3 | 4 | 5 | 10 | 6 | 7 | 8 | 9 | 11 | 12 | 13 | 14 | 15, string>;
|
|
15
16
|
transition: Record<"medium" | "slow" | "fast", string>;
|
|
16
17
|
opacity: Record<"solid" | "transparent" | "translucent", string | number>;
|
|
@@ -42,12 +43,20 @@ export declare const Small: import("react").ForwardRefExoticComponent<Pick<Omit<
|
|
|
42
43
|
};
|
|
43
44
|
semantic: {
|
|
44
45
|
surface: Record<"base" | "cutout" | "elevated", string>;
|
|
45
|
-
message: Record<"base" | "link" | "secondary" | "
|
|
46
|
+
message: Record<"base" | "link" | "secondary" | "branded" | "error", string>;
|
|
47
|
+
branded: Record<"message" | "heading" | "surface", string>;
|
|
46
48
|
border: Record<"graphic" | "differentiated" | "functional", string>;
|
|
47
49
|
focus: Record<"surface" | "outline" | "hover", string>;
|
|
48
|
-
inverted: Record<"surface" | "border", string> & {
|
|
50
|
+
inverted: Record<"surface" | "surfaceAlt" | "border" | "borderAlt", string> & {
|
|
49
51
|
message: Record<"base" | "link" | "secondary" | "branded", string>;
|
|
50
52
|
};
|
|
53
|
+
neutral: {
|
|
54
|
+
border: string;
|
|
55
|
+
surface: string;
|
|
56
|
+
surfaceEmphasis: string;
|
|
57
|
+
message: string;
|
|
58
|
+
messageOnEmphasis: string;
|
|
59
|
+
};
|
|
51
60
|
success: {
|
|
52
61
|
border: string;
|
|
53
62
|
surface: string;
|
|
@@ -4,6 +4,7 @@ export declare const Strong: import("styled-components").StyledComponent<typeof
|
|
|
4
4
|
borderWidth: Record<"small" | "medium" | "large", string>;
|
|
5
5
|
breakpoint: Record<"small" | "medium" | "large", string | number>;
|
|
6
6
|
mediaQuery: Record<"small" | "medium" | "large", string>;
|
|
7
|
+
customMediaQuery: Record<"small-and-up" | "medium-and-up" | "large-and-up", string>;
|
|
7
8
|
space: Record<0 | 2 | 1 | 3 | 4 | 5 | 10 | 6 | 7 | 8 | 9 | 11 | 12 | 13 | 14 | 15, string>;
|
|
8
9
|
transition: Record<"medium" | "slow" | "fast", string>;
|
|
9
10
|
opacity: Record<"solid" | "transparent" | "translucent", string | number>;
|
|
@@ -35,12 +36,20 @@ export declare const Strong: import("styled-components").StyledComponent<typeof
|
|
|
35
36
|
};
|
|
36
37
|
semantic: {
|
|
37
38
|
surface: Record<"base" | "cutout" | "elevated", string>;
|
|
38
|
-
message: Record<"base" | "link" | "secondary" | "
|
|
39
|
+
message: Record<"base" | "link" | "secondary" | "branded" | "error", string>;
|
|
40
|
+
branded: Record<"message" | "heading" | "surface", string>;
|
|
39
41
|
border: Record<"graphic" | "differentiated" | "functional", string>;
|
|
40
42
|
focus: Record<"surface" | "outline" | "hover", string>;
|
|
41
|
-
inverted: Record<"surface" | "border", string> & {
|
|
43
|
+
inverted: Record<"surface" | "surfaceAlt" | "border" | "borderAlt", string> & {
|
|
42
44
|
message: Record<"base" | "link" | "secondary" | "branded", string>;
|
|
43
45
|
};
|
|
46
|
+
neutral: {
|
|
47
|
+
border: string;
|
|
48
|
+
surface: string;
|
|
49
|
+
surfaceEmphasis: string;
|
|
50
|
+
message: string;
|
|
51
|
+
messageOnEmphasis: string;
|
|
52
|
+
};
|
|
44
53
|
success: {
|
|
45
54
|
border: string;
|
|
46
55
|
surface: string;
|
|
@@ -11,6 +11,7 @@ declare const SubLabelText: import("react").ForwardRefExoticComponent<Pick<Omit<
|
|
|
11
11
|
borderWidth: Record<"small" | "medium" | "large", string>;
|
|
12
12
|
breakpoint: Record<"small" | "medium" | "large", string | number>;
|
|
13
13
|
mediaQuery: Record<"small" | "medium" | "large", string>;
|
|
14
|
+
customMediaQuery: Record<"small-and-up" | "medium-and-up" | "large-and-up", string>;
|
|
14
15
|
space: Record<0 | 2 | 1 | 3 | 4 | 5 | 10 | 6 | 7 | 8 | 9 | 11 | 12 | 13 | 14 | 15, string>;
|
|
15
16
|
transition: Record<"medium" | "slow" | "fast", string>;
|
|
16
17
|
opacity: Record<"solid" | "transparent" | "translucent", string | number>;
|
|
@@ -42,12 +43,20 @@ declare const SubLabelText: import("react").ForwardRefExoticComponent<Pick<Omit<
|
|
|
42
43
|
};
|
|
43
44
|
semantic: {
|
|
44
45
|
surface: Record<"base" | "cutout" | "elevated", string>;
|
|
45
|
-
message: Record<"base" | "link" | "secondary" | "
|
|
46
|
+
message: Record<"base" | "link" | "secondary" | "branded" | "error", string>;
|
|
47
|
+
branded: Record<"message" | "heading" | "surface", string>;
|
|
46
48
|
border: Record<"graphic" | "differentiated" | "functional", string>;
|
|
47
49
|
focus: Record<"surface" | "outline" | "hover", string>;
|
|
48
|
-
inverted: Record<"surface" | "border", string> & {
|
|
50
|
+
inverted: Record<"surface" | "surfaceAlt" | "border" | "borderAlt", string> & {
|
|
49
51
|
message: Record<"base" | "link" | "secondary" | "branded", string>;
|
|
50
52
|
};
|
|
53
|
+
neutral: {
|
|
54
|
+
border: string;
|
|
55
|
+
surface: string;
|
|
56
|
+
surfaceEmphasis: string;
|
|
57
|
+
message: string;
|
|
58
|
+
messageOnEmphasis: string;
|
|
59
|
+
};
|
|
51
60
|
success: {
|
|
52
61
|
border: string;
|
|
53
62
|
surface: string;
|
|
@@ -55,18 +55,18 @@ var react_1 = require("react");
|
|
|
55
55
|
var hooks_1 = require("../../hooks");
|
|
56
56
|
var styled_native_1 = __importStar(require("../../styled.native"));
|
|
57
57
|
var TabText = styled_native_1.default.Text(function (_a) {
|
|
58
|
-
var _b = _a.theme, core = _b.core, semantic = _b.semantic,
|
|
59
|
-
return (0, styled_native_1.css)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n font-size: ", ";\n font-family: ", ";\n line-height: ", ";\n color: ", ";\n text-align: center;\n padding: ", " ", ";\n "], ["\n font-size: ", ";\n font-family: ", ";\n line-height: ", ";\n color: ", ";\n text-align: center;\n padding: ", " ", ";\n "])), core.fontSize.body.small, core.fontFamily.bodyBold.native, core.lineHeight.body.small, semantic.message.base, core.space[3], core.space[
|
|
58
|
+
var _b = _a.theme, core = _b.core, semantic = _b.semantic, _c = _a.active, active = _c === void 0 ? false : _c;
|
|
59
|
+
return (0, styled_native_1.css)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n font-size: ", ";\n font-family: ", ";\n line-height: ", ";\n color: ", ";\n text-align: center;\n padding: ", " ", ";\n "], ["\n font-size: ", ";\n font-family: ", ";\n line-height: ", ";\n color: ", ";\n text-align: center;\n padding: ", " ", ";\n "])), core.fontSize.body.small, core.fontFamily.bodyBold.native, core.lineHeight.body.small, active ? semantic.focus.outline : semantic.message.base, core.space[3], core.space[2]);
|
|
60
60
|
});
|
|
61
61
|
var TabTouchable = styled_native_1.default.TouchableOpacity(function (_a) {
|
|
62
62
|
var _b = _a.active, active = _b === void 0 ? false : _b, _c = _a.first, first = _c === void 0 ? false : _c, _d = _a.last, last = _d === void 0 ? false : _d, _e = _a.stretch, stretch = _e === void 0 ? false : _e, _f = _a.theme, core = _f.core, semantic = _f.semantic, inline = _a.inline;
|
|
63
63
|
return (0, styled_native_1.css)(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n flex-grow: ", ";\n border: ", " solid ", ";\n ", "\n ", "\n ", "\n ", "\n "], ["\n flex-grow: ", ";\n border: ", " solid ", ";\n ", "\n ", "\n ", "\n ", "\n "])), stretch ? 1 : 0, core.borderWidth.small, semantic.border.differentiated, active
|
|
64
|
-
? (0, styled_native_1.css)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n
|
|
65
|
-
? (0, styled_native_1.css)(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n
|
|
64
|
+
? (0, styled_native_1.css)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n border-bottom-color: ", ";\n border-bottom-width: ", ";\n "], ["\n border-bottom-color: ", ";\n border-bottom-width: ", ";\n "])), semantic.focus.outline, core.borderWidth.medium) : '', !inline
|
|
65
|
+
? (0, styled_native_1.css)(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n border-top-color: transparent;\n border-top-width: 0;\n "], ["\n border-top-color: transparent;\n border-top-width: 0;\n "]))) : '', last && inline
|
|
66
66
|
? ''
|
|
67
|
-
: (0, styled_native_1.css)(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n
|
|
67
|
+
: (0, styled_native_1.css)(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n border-right-color: transparent;\n border-right-width: 0;\n "], ["\n border-right-color: transparent;\n border-right-width: 0;\n "]))), first && inline
|
|
68
68
|
? ''
|
|
69
|
-
: (0, styled_native_1.css)(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n
|
|
69
|
+
: (0, styled_native_1.css)(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n border-left-color: transparent;\n border-left-width: 0;\n "], ["\n border-left-color: transparent;\n border-left-width: 0;\n "]))));
|
|
70
70
|
});
|
|
71
71
|
exports.Tab = (0, react_1.forwardRef)(function (_a, ref) {
|
|
72
72
|
var active = _a.active, fullWidth = _a.fullWidth, children = _a.children, rest = __rest(_a, ["active", "fullWidth", "children"]);
|