@ovotech/element-native 3.4.1 → 3.5.0-canary-8ac6eb7-155
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 -0
- package/dist/components/ActionCard/ActionCard.js +1 -1
- package/dist/components/ActionList/ActionList.d.ts +2 -1
- package/dist/components/ActionList/ActionList.js +4 -4
- package/dist/components/ActionList/styled.d.ts +263 -2
- package/dist/components/ActionList/styled.js +12 -10
- package/dist/components/Badge/Badge.d.ts +4 -0
- package/dist/components/Card/Card.d.ts +4 -0
- package/dist/components/DataTable/TableRow.js +7 -1
- package/dist/components/DataTable/styles.d.ts +510 -0
- package/dist/components/DataTable/styles.js +16 -5
- package/dist/components/DataTable/types.d.ts +8 -2
- package/dist/components/DescriptionList/styled.d.ts +4 -0
- package/dist/components/Em/Em.d.ts +4 -0
- package/dist/components/ErrorText/ErrorText.d.ts +4 -0
- package/dist/components/FilterSelect/FilterSelect.d.ts +14 -0
- package/dist/components/FilterSelect/FilterSelect.js +89 -0
- package/dist/components/FilterSelect/index.d.ts +1 -0
- package/dist/components/FilterSelect/index.js +5 -0
- package/dist/components/Grid/Col.d.ts +4 -0
- package/dist/components/Grid/Row.d.ts +4 -0
- package/dist/components/HintText/HintText.d.ts +4 -0
- package/dist/components/LabelText/LabelText.d.ts +4 -0
- package/dist/components/LineThrough/LineThrough.d.ts +4 -0
- package/dist/components/List/List.d.ts +4 -0
- package/dist/components/List/List.js +30 -24
- package/dist/components/List/styled.d.ts +24 -0
- package/dist/components/List/styled.js +2 -2
- package/dist/components/Margin/Margin.d.ts +4 -0
- package/dist/components/NavHeader/NavHeader.styles.d.ts +28 -0
- package/dist/components/Notification/Notification.d.ts +8 -0
- package/dist/components/P/P.d.ts +4 -0
- package/dist/components/PasswordInput/PasswordInput.styled.d.ts +4 -0
- package/dist/components/SelectField/Select.d.ts +4 -0
- package/dist/components/Small/Small.d.ts +4 -0
- package/dist/components/Strong/Strong.d.ts +4 -0
- package/dist/components/SubLabelText/SubLabelText.d.ts +4 -0
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.js +1 -0
- package/dist/esm/components/ActionCard/ActionCard.js +1 -1
- package/dist/esm/components/ActionList/ActionList.js +4 -4
- package/dist/esm/components/ActionList/styled.js +12 -10
- package/dist/esm/components/DataTable/TableRow.js +8 -2
- package/dist/esm/components/DataTable/styles.js +15 -4
- package/dist/esm/components/FilterSelect/FilterSelect.js +62 -0
- package/dist/esm/components/FilterSelect/index.js +1 -0
- package/dist/esm/components/List/List.js +31 -25
- package/dist/esm/components/List/styled.js +2 -2
- package/dist/esm/components/index.js +1 -0
- package/dist/esm/providers/IconsProvider.js +2 -1
- package/dist/esm/providers/icons/Logo.js +3 -3
- package/dist/esm/providers/icons/Torch.js +14 -0
- package/dist/esm/providers/icons/index.js +1 -0
- package/dist/providers/IconsProvider.js +1 -0
- package/dist/providers/icons/Logo.js +1 -1
- package/dist/providers/icons/Torch.d.ts +2 -0
- package/dist/providers/icons/Torch.js +41 -0
- package/dist/providers/icons/index.d.ts +1 -0
- package/dist/providers/icons/index.js +1 -0
- package/dist/providers/types.d.ts +1 -1
- package/dist/styled.native.d.ts +24 -0
- package/package.json +2 -2
|
@@ -203,6 +203,10 @@ export declare const StyledTableContainer: import("styled-components").StyledCom
|
|
|
203
203
|
};
|
|
204
204
|
badge: {
|
|
205
205
|
variants: {
|
|
206
|
+
neutral: {
|
|
207
|
+
foreground: string;
|
|
208
|
+
background: string;
|
|
209
|
+
};
|
|
206
210
|
red: {
|
|
207
211
|
foreground: string;
|
|
208
212
|
background: string;
|
|
@@ -431,6 +435,10 @@ export declare const TableHeader: import("styled-components").StyledComponent<ty
|
|
|
431
435
|
};
|
|
432
436
|
badge: {
|
|
433
437
|
variants: {
|
|
438
|
+
neutral: {
|
|
439
|
+
foreground: string;
|
|
440
|
+
background: string;
|
|
441
|
+
};
|
|
434
442
|
red: {
|
|
435
443
|
foreground: string;
|
|
436
444
|
background: string;
|
|
@@ -661,6 +669,10 @@ export declare const TableHeaderText: import("styled-components").StyledComponen
|
|
|
661
669
|
};
|
|
662
670
|
badge: {
|
|
663
671
|
variants: {
|
|
672
|
+
neutral: {
|
|
673
|
+
foreground: string;
|
|
674
|
+
background: string;
|
|
675
|
+
};
|
|
664
676
|
red: {
|
|
665
677
|
foreground: string;
|
|
666
678
|
background: string;
|
|
@@ -889,6 +901,10 @@ export declare const TableCaptionText: import("styled-components").StyledCompone
|
|
|
889
901
|
};
|
|
890
902
|
badge: {
|
|
891
903
|
variants: {
|
|
904
|
+
neutral: {
|
|
905
|
+
foreground: string;
|
|
906
|
+
background: string;
|
|
907
|
+
};
|
|
892
908
|
red: {
|
|
893
909
|
foreground: string;
|
|
894
910
|
background: string;
|
|
@@ -1117,6 +1133,10 @@ export declare const CellText: import("styled-components").StyledComponent<typeo
|
|
|
1117
1133
|
};
|
|
1118
1134
|
badge: {
|
|
1119
1135
|
variants: {
|
|
1136
|
+
neutral: {
|
|
1137
|
+
foreground: string;
|
|
1138
|
+
background: string;
|
|
1139
|
+
};
|
|
1120
1140
|
red: {
|
|
1121
1141
|
foreground: string;
|
|
1122
1142
|
background: string;
|
|
@@ -1345,6 +1365,10 @@ export declare const TableCaption: import("styled-components").StyledComponent<t
|
|
|
1345
1365
|
};
|
|
1346
1366
|
badge: {
|
|
1347
1367
|
variants: {
|
|
1368
|
+
neutral: {
|
|
1369
|
+
foreground: string;
|
|
1370
|
+
background: string;
|
|
1371
|
+
};
|
|
1348
1372
|
red: {
|
|
1349
1373
|
foreground: string;
|
|
1350
1374
|
background: string;
|
|
@@ -1573,6 +1597,10 @@ export declare const TableRow: import("styled-components").StyledComponent<typeo
|
|
|
1573
1597
|
};
|
|
1574
1598
|
badge: {
|
|
1575
1599
|
variants: {
|
|
1600
|
+
neutral: {
|
|
1601
|
+
foreground: string;
|
|
1602
|
+
background: string;
|
|
1603
|
+
};
|
|
1576
1604
|
red: {
|
|
1577
1605
|
foreground: string;
|
|
1578
1606
|
background: string;
|
|
@@ -1803,6 +1831,10 @@ export declare const TableRowHeading: import("styled-components").StyledComponen
|
|
|
1803
1831
|
};
|
|
1804
1832
|
badge: {
|
|
1805
1833
|
variants: {
|
|
1834
|
+
neutral: {
|
|
1835
|
+
foreground: string;
|
|
1836
|
+
background: string;
|
|
1837
|
+
};
|
|
1806
1838
|
red: {
|
|
1807
1839
|
foreground: string;
|
|
1808
1840
|
background: string;
|
|
@@ -2031,6 +2063,10 @@ export declare const TableBody: import("styled-components").StyledComponent<type
|
|
|
2031
2063
|
};
|
|
2032
2064
|
badge: {
|
|
2033
2065
|
variants: {
|
|
2066
|
+
neutral: {
|
|
2067
|
+
foreground: string;
|
|
2068
|
+
background: string;
|
|
2069
|
+
};
|
|
2034
2070
|
red: {
|
|
2035
2071
|
foreground: string;
|
|
2036
2072
|
background: string;
|
|
@@ -2259,6 +2295,10 @@ export declare const TableCell: import("styled-components").StyledComponent<type
|
|
|
2259
2295
|
};
|
|
2260
2296
|
badge: {
|
|
2261
2297
|
variants: {
|
|
2298
|
+
neutral: {
|
|
2299
|
+
foreground: string;
|
|
2300
|
+
background: string;
|
|
2301
|
+
};
|
|
2262
2302
|
red: {
|
|
2263
2303
|
foreground: string;
|
|
2264
2304
|
background: string;
|
|
@@ -2489,6 +2529,10 @@ export declare const RowHeading: import("styled-components").StyledComponent<typ
|
|
|
2489
2529
|
};
|
|
2490
2530
|
badge: {
|
|
2491
2531
|
variants: {
|
|
2532
|
+
neutral: {
|
|
2533
|
+
foreground: string;
|
|
2534
|
+
background: string;
|
|
2535
|
+
};
|
|
2492
2536
|
red: {
|
|
2493
2537
|
foreground: string;
|
|
2494
2538
|
background: string;
|
|
@@ -2515,3 +2559,469 @@ export declare const RowHeading: import("styled-components").StyledComponent<typ
|
|
|
2515
2559
|
}, {
|
|
2516
2560
|
cellWidth: string;
|
|
2517
2561
|
} & Breakpoints, never>;
|
|
2562
|
+
export declare const StyledSeparatorRow: import("styled-components").StyledComponent<typeof import("react-native").View, {
|
|
2563
|
+
core: {
|
|
2564
|
+
radius: Record<"small" | "medium" | "large" | "max", string>;
|
|
2565
|
+
borderWidth: Record<"small" | "medium" | "large", string>;
|
|
2566
|
+
breakpoint: Record<"small" | "medium" | "large", string | number>;
|
|
2567
|
+
mediaQuery: Record<"small" | "medium" | "large", string>;
|
|
2568
|
+
space: Record<0 | 2 | 1 | 3 | 4 | 5 | 10 | 6 | 7 | 8 | 9 | 11 | 12 | 13 | 14 | 15, string>;
|
|
2569
|
+
transition: Record<"medium" | "slow" | "fast", string>;
|
|
2570
|
+
opacity: Record<"solid" | "transparent" | "translucent", string | number>;
|
|
2571
|
+
color: Record<"neutral" | "red" | "orange" | "yellow" | "green" | "blue", {
|
|
2572
|
+
lightest: string;
|
|
2573
|
+
lighter: string;
|
|
2574
|
+
light: string;
|
|
2575
|
+
base: string;
|
|
2576
|
+
dark: string;
|
|
2577
|
+
darker: string;
|
|
2578
|
+
darkest: string;
|
|
2579
|
+
}> & {
|
|
2580
|
+
brand: Record<string, string>;
|
|
2581
|
+
};
|
|
2582
|
+
fontFamily: Record<"body" | "mono" | "heading" | "bodyBold", {
|
|
2583
|
+
native: string;
|
|
2584
|
+
web: string;
|
|
2585
|
+
}>;
|
|
2586
|
+
fontWeight: Record<"bold" | "book" | "black", string | number>;
|
|
2587
|
+
fontSize: Record<"small" | "body" | "label" | "heading1" | "heading2" | "heading3" | "heading4" | "lead", {
|
|
2588
|
+
small: string | number;
|
|
2589
|
+
large: string | number;
|
|
2590
|
+
}>;
|
|
2591
|
+
lineHeight: Record<"small" | "body" | "label" | "heading1" | "heading2" | "heading3" | "heading4" | "lead", {
|
|
2592
|
+
small: string | number;
|
|
2593
|
+
large: string | number;
|
|
2594
|
+
}>;
|
|
2595
|
+
letterSpacing: Record<"base" | "compressed" | "extraCompressed", number>;
|
|
2596
|
+
};
|
|
2597
|
+
semantic: {
|
|
2598
|
+
surface: Record<"base" | "cutout" | "elevated", string>;
|
|
2599
|
+
message: Record<"base" | "link" | "secondary" | "error" | "branded", string>;
|
|
2600
|
+
border: Record<"graphic" | "differentiated" | "functional", string>;
|
|
2601
|
+
focus: Record<"surface" | "outline" | "hover", string>;
|
|
2602
|
+
inverted: Record<"surface" | "border", string> & {
|
|
2603
|
+
message: Record<"base" | "link" | "secondary" | "branded", string>;
|
|
2604
|
+
};
|
|
2605
|
+
success: {
|
|
2606
|
+
border: string;
|
|
2607
|
+
surface: string;
|
|
2608
|
+
surfaceEmphasis: string;
|
|
2609
|
+
message: string;
|
|
2610
|
+
messageOnEmphasis: string;
|
|
2611
|
+
};
|
|
2612
|
+
warning: {
|
|
2613
|
+
border: string;
|
|
2614
|
+
surface: string;
|
|
2615
|
+
surfaceEmphasis: string;
|
|
2616
|
+
message: string;
|
|
2617
|
+
messageOnEmphasis: string;
|
|
2618
|
+
};
|
|
2619
|
+
error: {
|
|
2620
|
+
border: string;
|
|
2621
|
+
surface: string;
|
|
2622
|
+
surfaceEmphasis: string;
|
|
2623
|
+
message: string;
|
|
2624
|
+
messageOnEmphasis: string;
|
|
2625
|
+
};
|
|
2626
|
+
info: {
|
|
2627
|
+
border: string;
|
|
2628
|
+
surface: string;
|
|
2629
|
+
surfaceEmphasis: string;
|
|
2630
|
+
message: string;
|
|
2631
|
+
messageOnEmphasis: string;
|
|
2632
|
+
};
|
|
2633
|
+
data: Record<"branded" | "gas" | "electric", Record<2 | 1 | 3 | 4, string>>;
|
|
2634
|
+
};
|
|
2635
|
+
component: {
|
|
2636
|
+
heading1: {
|
|
2637
|
+
fontFamily: string;
|
|
2638
|
+
fontWeight: string | number;
|
|
2639
|
+
fontSize: {
|
|
2640
|
+
small: string | number;
|
|
2641
|
+
large: string | number;
|
|
2642
|
+
};
|
|
2643
|
+
lineHeight: {
|
|
2644
|
+
small: string | number;
|
|
2645
|
+
large: string | number;
|
|
2646
|
+
};
|
|
2647
|
+
};
|
|
2648
|
+
heading2: {
|
|
2649
|
+
fontFamily: string;
|
|
2650
|
+
fontWeight: string | number;
|
|
2651
|
+
fontSize: {
|
|
2652
|
+
small: string | number;
|
|
2653
|
+
large: string | number;
|
|
2654
|
+
};
|
|
2655
|
+
lineHeight: {
|
|
2656
|
+
small: string | number;
|
|
2657
|
+
large: string | number;
|
|
2658
|
+
};
|
|
2659
|
+
};
|
|
2660
|
+
heading3: {
|
|
2661
|
+
fontFamily: string;
|
|
2662
|
+
fontWeight: string | number;
|
|
2663
|
+
fontSize: {
|
|
2664
|
+
small: string | number;
|
|
2665
|
+
large: string | number;
|
|
2666
|
+
};
|
|
2667
|
+
lineHeight: {
|
|
2668
|
+
small: string | number;
|
|
2669
|
+
large: string | number;
|
|
2670
|
+
};
|
|
2671
|
+
};
|
|
2672
|
+
heading4: {
|
|
2673
|
+
fontFamily: string;
|
|
2674
|
+
fontWeight: string | number;
|
|
2675
|
+
fontSize: {
|
|
2676
|
+
small: string | number;
|
|
2677
|
+
large: string | number;
|
|
2678
|
+
};
|
|
2679
|
+
lineHeight: {
|
|
2680
|
+
small: string | number;
|
|
2681
|
+
large: string | number;
|
|
2682
|
+
};
|
|
2683
|
+
};
|
|
2684
|
+
lead: {
|
|
2685
|
+
fontFamily: string;
|
|
2686
|
+
fontWeight: string | number;
|
|
2687
|
+
fontSize: {
|
|
2688
|
+
small: string | number;
|
|
2689
|
+
large: string | number;
|
|
2690
|
+
};
|
|
2691
|
+
lineHeight: {
|
|
2692
|
+
small: string | number;
|
|
2693
|
+
large: string | number;
|
|
2694
|
+
};
|
|
2695
|
+
};
|
|
2696
|
+
body: {
|
|
2697
|
+
fontFamily: string;
|
|
2698
|
+
fontWeight: string | number;
|
|
2699
|
+
fontSize: {
|
|
2700
|
+
small: string | number;
|
|
2701
|
+
large: string | number;
|
|
2702
|
+
};
|
|
2703
|
+
lineHeight: {
|
|
2704
|
+
small: string | number;
|
|
2705
|
+
large: string | number;
|
|
2706
|
+
};
|
|
2707
|
+
};
|
|
2708
|
+
small: {
|
|
2709
|
+
fontFamily: string;
|
|
2710
|
+
fontWeight: string | number;
|
|
2711
|
+
fontSize: {
|
|
2712
|
+
small: string | number;
|
|
2713
|
+
large: string | number;
|
|
2714
|
+
};
|
|
2715
|
+
lineHeight: {
|
|
2716
|
+
small: string | number;
|
|
2717
|
+
large: string | number;
|
|
2718
|
+
};
|
|
2719
|
+
};
|
|
2720
|
+
label: {
|
|
2721
|
+
fontFamily: string;
|
|
2722
|
+
fontWeight: string | number;
|
|
2723
|
+
fontSize: {
|
|
2724
|
+
small: string | number;
|
|
2725
|
+
large: string | number;
|
|
2726
|
+
};
|
|
2727
|
+
lineHeight: {
|
|
2728
|
+
small: string | number;
|
|
2729
|
+
large: string | number;
|
|
2730
|
+
};
|
|
2731
|
+
};
|
|
2732
|
+
cta: {
|
|
2733
|
+
primary: {
|
|
2734
|
+
message: string;
|
|
2735
|
+
surface: string;
|
|
2736
|
+
messageHover: string;
|
|
2737
|
+
surfaceHover: string;
|
|
2738
|
+
messageFocused: string;
|
|
2739
|
+
surfaceFocused: string;
|
|
2740
|
+
outlineFocused: string;
|
|
2741
|
+
backgroundFocused: string;
|
|
2742
|
+
};
|
|
2743
|
+
secondary: {
|
|
2744
|
+
message: string;
|
|
2745
|
+
surface: string;
|
|
2746
|
+
messageHover: string;
|
|
2747
|
+
surfaceHover: string;
|
|
2748
|
+
messageFocused: string;
|
|
2749
|
+
surfaceFocused: string;
|
|
2750
|
+
outlineFocused: string;
|
|
2751
|
+
backgroundFocused: string;
|
|
2752
|
+
};
|
|
2753
|
+
destructive: {
|
|
2754
|
+
message: string;
|
|
2755
|
+
surface: string;
|
|
2756
|
+
messageHover: string;
|
|
2757
|
+
surfaceHover: string;
|
|
2758
|
+
messageFocused: string;
|
|
2759
|
+
surfaceFocused: string;
|
|
2760
|
+
outlineFocused: string;
|
|
2761
|
+
backgroundFocused: string;
|
|
2762
|
+
};
|
|
2763
|
+
};
|
|
2764
|
+
badge: {
|
|
2765
|
+
variants: {
|
|
2766
|
+
neutral: {
|
|
2767
|
+
foreground: string;
|
|
2768
|
+
background: string;
|
|
2769
|
+
};
|
|
2770
|
+
red: {
|
|
2771
|
+
foreground: string;
|
|
2772
|
+
background: string;
|
|
2773
|
+
};
|
|
2774
|
+
orange: {
|
|
2775
|
+
foreground: string;
|
|
2776
|
+
background: string;
|
|
2777
|
+
};
|
|
2778
|
+
yellow: {
|
|
2779
|
+
foreground: string;
|
|
2780
|
+
background: string;
|
|
2781
|
+
};
|
|
2782
|
+
green: {
|
|
2783
|
+
foreground: string;
|
|
2784
|
+
background: string;
|
|
2785
|
+
};
|
|
2786
|
+
blue: {
|
|
2787
|
+
foreground: string;
|
|
2788
|
+
background: string;
|
|
2789
|
+
};
|
|
2790
|
+
};
|
|
2791
|
+
};
|
|
2792
|
+
};
|
|
2793
|
+
}, {
|
|
2794
|
+
width?: number | undefined;
|
|
2795
|
+
}, never>;
|
|
2796
|
+
export declare const SeparatorRowText: import("styled-components").StyledComponent<typeof import("react-native").Text, {
|
|
2797
|
+
core: {
|
|
2798
|
+
radius: Record<"small" | "medium" | "large" | "max", string>;
|
|
2799
|
+
borderWidth: Record<"small" | "medium" | "large", string>;
|
|
2800
|
+
breakpoint: Record<"small" | "medium" | "large", string | number>;
|
|
2801
|
+
mediaQuery: Record<"small" | "medium" | "large", string>;
|
|
2802
|
+
space: Record<0 | 2 | 1 | 3 | 4 | 5 | 10 | 6 | 7 | 8 | 9 | 11 | 12 | 13 | 14 | 15, string>;
|
|
2803
|
+
transition: Record<"medium" | "slow" | "fast", string>;
|
|
2804
|
+
opacity: Record<"solid" | "transparent" | "translucent", string | number>;
|
|
2805
|
+
color: Record<"neutral" | "red" | "orange" | "yellow" | "green" | "blue", {
|
|
2806
|
+
lightest: string;
|
|
2807
|
+
lighter: string;
|
|
2808
|
+
light: string;
|
|
2809
|
+
base: string;
|
|
2810
|
+
dark: string;
|
|
2811
|
+
darker: string;
|
|
2812
|
+
darkest: string;
|
|
2813
|
+
}> & {
|
|
2814
|
+
brand: Record<string, string>;
|
|
2815
|
+
};
|
|
2816
|
+
fontFamily: Record<"body" | "mono" | "heading" | "bodyBold", {
|
|
2817
|
+
native: string;
|
|
2818
|
+
web: string;
|
|
2819
|
+
}>;
|
|
2820
|
+
fontWeight: Record<"bold" | "book" | "black", string | number>;
|
|
2821
|
+
fontSize: Record<"small" | "body" | "label" | "heading1" | "heading2" | "heading3" | "heading4" | "lead", {
|
|
2822
|
+
small: string | number;
|
|
2823
|
+
large: string | number;
|
|
2824
|
+
}>;
|
|
2825
|
+
lineHeight: Record<"small" | "body" | "label" | "heading1" | "heading2" | "heading3" | "heading4" | "lead", {
|
|
2826
|
+
small: string | number;
|
|
2827
|
+
large: string | number;
|
|
2828
|
+
}>;
|
|
2829
|
+
letterSpacing: Record<"base" | "compressed" | "extraCompressed", number>;
|
|
2830
|
+
};
|
|
2831
|
+
semantic: {
|
|
2832
|
+
surface: Record<"base" | "cutout" | "elevated", string>;
|
|
2833
|
+
message: Record<"base" | "link" | "secondary" | "error" | "branded", string>;
|
|
2834
|
+
border: Record<"graphic" | "differentiated" | "functional", string>;
|
|
2835
|
+
focus: Record<"surface" | "outline" | "hover", string>;
|
|
2836
|
+
inverted: Record<"surface" | "border", string> & {
|
|
2837
|
+
message: Record<"base" | "link" | "secondary" | "branded", string>;
|
|
2838
|
+
};
|
|
2839
|
+
success: {
|
|
2840
|
+
border: string;
|
|
2841
|
+
surface: string;
|
|
2842
|
+
surfaceEmphasis: string;
|
|
2843
|
+
message: string;
|
|
2844
|
+
messageOnEmphasis: string;
|
|
2845
|
+
};
|
|
2846
|
+
warning: {
|
|
2847
|
+
border: string;
|
|
2848
|
+
surface: string;
|
|
2849
|
+
surfaceEmphasis: string;
|
|
2850
|
+
message: string;
|
|
2851
|
+
messageOnEmphasis: string;
|
|
2852
|
+
};
|
|
2853
|
+
error: {
|
|
2854
|
+
border: string;
|
|
2855
|
+
surface: string;
|
|
2856
|
+
surfaceEmphasis: string;
|
|
2857
|
+
message: string;
|
|
2858
|
+
messageOnEmphasis: string;
|
|
2859
|
+
};
|
|
2860
|
+
info: {
|
|
2861
|
+
border: string;
|
|
2862
|
+
surface: string;
|
|
2863
|
+
surfaceEmphasis: string;
|
|
2864
|
+
message: string;
|
|
2865
|
+
messageOnEmphasis: string;
|
|
2866
|
+
};
|
|
2867
|
+
data: Record<"branded" | "gas" | "electric", Record<2 | 1 | 3 | 4, string>>;
|
|
2868
|
+
};
|
|
2869
|
+
component: {
|
|
2870
|
+
heading1: {
|
|
2871
|
+
fontFamily: string;
|
|
2872
|
+
fontWeight: string | number;
|
|
2873
|
+
fontSize: {
|
|
2874
|
+
small: string | number;
|
|
2875
|
+
large: string | number;
|
|
2876
|
+
};
|
|
2877
|
+
lineHeight: {
|
|
2878
|
+
small: string | number;
|
|
2879
|
+
large: string | number;
|
|
2880
|
+
};
|
|
2881
|
+
};
|
|
2882
|
+
heading2: {
|
|
2883
|
+
fontFamily: string;
|
|
2884
|
+
fontWeight: string | number;
|
|
2885
|
+
fontSize: {
|
|
2886
|
+
small: string | number;
|
|
2887
|
+
large: string | number;
|
|
2888
|
+
};
|
|
2889
|
+
lineHeight: {
|
|
2890
|
+
small: string | number;
|
|
2891
|
+
large: string | number;
|
|
2892
|
+
};
|
|
2893
|
+
};
|
|
2894
|
+
heading3: {
|
|
2895
|
+
fontFamily: string;
|
|
2896
|
+
fontWeight: string | number;
|
|
2897
|
+
fontSize: {
|
|
2898
|
+
small: string | number;
|
|
2899
|
+
large: string | number;
|
|
2900
|
+
};
|
|
2901
|
+
lineHeight: {
|
|
2902
|
+
small: string | number;
|
|
2903
|
+
large: string | number;
|
|
2904
|
+
};
|
|
2905
|
+
};
|
|
2906
|
+
heading4: {
|
|
2907
|
+
fontFamily: string;
|
|
2908
|
+
fontWeight: string | number;
|
|
2909
|
+
fontSize: {
|
|
2910
|
+
small: string | number;
|
|
2911
|
+
large: string | number;
|
|
2912
|
+
};
|
|
2913
|
+
lineHeight: {
|
|
2914
|
+
small: string | number;
|
|
2915
|
+
large: string | number;
|
|
2916
|
+
};
|
|
2917
|
+
};
|
|
2918
|
+
lead: {
|
|
2919
|
+
fontFamily: string;
|
|
2920
|
+
fontWeight: string | number;
|
|
2921
|
+
fontSize: {
|
|
2922
|
+
small: string | number;
|
|
2923
|
+
large: string | number;
|
|
2924
|
+
};
|
|
2925
|
+
lineHeight: {
|
|
2926
|
+
small: string | number;
|
|
2927
|
+
large: string | number;
|
|
2928
|
+
};
|
|
2929
|
+
};
|
|
2930
|
+
body: {
|
|
2931
|
+
fontFamily: string;
|
|
2932
|
+
fontWeight: string | number;
|
|
2933
|
+
fontSize: {
|
|
2934
|
+
small: string | number;
|
|
2935
|
+
large: string | number;
|
|
2936
|
+
};
|
|
2937
|
+
lineHeight: {
|
|
2938
|
+
small: string | number;
|
|
2939
|
+
large: string | number;
|
|
2940
|
+
};
|
|
2941
|
+
};
|
|
2942
|
+
small: {
|
|
2943
|
+
fontFamily: string;
|
|
2944
|
+
fontWeight: string | number;
|
|
2945
|
+
fontSize: {
|
|
2946
|
+
small: string | number;
|
|
2947
|
+
large: string | number;
|
|
2948
|
+
};
|
|
2949
|
+
lineHeight: {
|
|
2950
|
+
small: string | number;
|
|
2951
|
+
large: string | number;
|
|
2952
|
+
};
|
|
2953
|
+
};
|
|
2954
|
+
label: {
|
|
2955
|
+
fontFamily: string;
|
|
2956
|
+
fontWeight: string | number;
|
|
2957
|
+
fontSize: {
|
|
2958
|
+
small: string | number;
|
|
2959
|
+
large: string | number;
|
|
2960
|
+
};
|
|
2961
|
+
lineHeight: {
|
|
2962
|
+
small: string | number;
|
|
2963
|
+
large: string | number;
|
|
2964
|
+
};
|
|
2965
|
+
};
|
|
2966
|
+
cta: {
|
|
2967
|
+
primary: {
|
|
2968
|
+
message: string;
|
|
2969
|
+
surface: string;
|
|
2970
|
+
messageHover: string;
|
|
2971
|
+
surfaceHover: string;
|
|
2972
|
+
messageFocused: string;
|
|
2973
|
+
surfaceFocused: string;
|
|
2974
|
+
outlineFocused: string;
|
|
2975
|
+
backgroundFocused: string;
|
|
2976
|
+
};
|
|
2977
|
+
secondary: {
|
|
2978
|
+
message: string;
|
|
2979
|
+
surface: string;
|
|
2980
|
+
messageHover: string;
|
|
2981
|
+
surfaceHover: string;
|
|
2982
|
+
messageFocused: string;
|
|
2983
|
+
surfaceFocused: string;
|
|
2984
|
+
outlineFocused: string;
|
|
2985
|
+
backgroundFocused: string;
|
|
2986
|
+
};
|
|
2987
|
+
destructive: {
|
|
2988
|
+
message: string;
|
|
2989
|
+
surface: string;
|
|
2990
|
+
messageHover: string;
|
|
2991
|
+
surfaceHover: string;
|
|
2992
|
+
messageFocused: string;
|
|
2993
|
+
surfaceFocused: string;
|
|
2994
|
+
outlineFocused: string;
|
|
2995
|
+
backgroundFocused: string;
|
|
2996
|
+
};
|
|
2997
|
+
};
|
|
2998
|
+
badge: {
|
|
2999
|
+
variants: {
|
|
3000
|
+
neutral: {
|
|
3001
|
+
foreground: string;
|
|
3002
|
+
background: string;
|
|
3003
|
+
};
|
|
3004
|
+
red: {
|
|
3005
|
+
foreground: string;
|
|
3006
|
+
background: string;
|
|
3007
|
+
};
|
|
3008
|
+
orange: {
|
|
3009
|
+
foreground: string;
|
|
3010
|
+
background: string;
|
|
3011
|
+
};
|
|
3012
|
+
yellow: {
|
|
3013
|
+
foreground: string;
|
|
3014
|
+
background: string;
|
|
3015
|
+
};
|
|
3016
|
+
green: {
|
|
3017
|
+
foreground: string;
|
|
3018
|
+
background: string;
|
|
3019
|
+
};
|
|
3020
|
+
blue: {
|
|
3021
|
+
foreground: string;
|
|
3022
|
+
background: string;
|
|
3023
|
+
};
|
|
3024
|
+
};
|
|
3025
|
+
};
|
|
3026
|
+
};
|
|
3027
|
+
}, Breakpoints, never>;
|
|
@@ -27,7 +27,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
27
27
|
return result;
|
|
28
28
|
};
|
|
29
29
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
30
|
-
exports.RowHeading = exports.TableCell = exports.TableBody = exports.TableRowHeading = exports.TableRow = exports.TableCaption = exports.CellText = exports.TableCaptionText = exports.TableHeaderText = exports.TableHeader = exports.StyledTableContainer = void 0;
|
|
30
|
+
exports.SeparatorRowText = exports.StyledSeparatorRow = exports.RowHeading = exports.TableCell = exports.TableBody = exports.TableRowHeading = exports.TableRow = exports.TableCaption = exports.CellText = exports.TableCaptionText = exports.TableHeaderText = exports.TableHeader = exports.StyledTableContainer = void 0;
|
|
31
31
|
var styled_native_1 = __importStar(require("../../styled.native"));
|
|
32
32
|
exports.StyledTableContainer = styled_native_1.default.View(function (_a) {
|
|
33
33
|
var _b = _a.theme, core = _b.core, semantic = _b.semantic;
|
|
@@ -47,11 +47,11 @@ exports.TableCaptionText = styled_native_1.default.Text(function (_a) {
|
|
|
47
47
|
});
|
|
48
48
|
exports.CellText = styled_native_1.default.Text(function (_a) {
|
|
49
49
|
var core = _a.theme.core, smallAndUp = _a.smallAndUp;
|
|
50
|
-
return (0, styled_native_1.css)(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n font-family: ", ";\n line-height: ", ";\n
|
|
50
|
+
return (0, styled_native_1.css)(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n font-family: ", ";\n line-height: ", ";\n font-size: ", ";\n "], ["\n font-family: ", ";\n line-height: ", ";\n font-size: ", ";\n "])), core.fontFamily.body.native, core.lineHeight.body.large, core.fontSize.body[smallAndUp ? 'large' : 'small']);
|
|
51
51
|
});
|
|
52
52
|
exports.TableCaption = styled_native_1.default.View(function (_a) {
|
|
53
53
|
var core = _a.theme.core;
|
|
54
|
-
return (0, styled_native_1.css)(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n padding: ", " ", ";\n "], ["\n padding: ", " ", ";\n "])), core.space[4], core.space[
|
|
54
|
+
return (0, styled_native_1.css)(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n padding: ", " ", ";\n "], ["\n padding: ", " ", ";\n "])), core.space[4], core.space[2]);
|
|
55
55
|
});
|
|
56
56
|
exports.TableRow = styled_native_1.default.View(function (_a) {
|
|
57
57
|
var _b = _a.theme, semantic = _b.semantic, core = _b.core, stripe = _a.stripe;
|
|
@@ -68,10 +68,21 @@ exports.TableRowHeading = styled_native_1.default.View(function (_a) {
|
|
|
68
68
|
exports.TableBody = styled_native_1.default.View(templateObject_9 || (templateObject_9 = __makeTemplateObject(["\n flex-direction: column;\n flex-wrap: nowrap;\n"], ["\n flex-direction: column;\n flex-wrap: nowrap;\n"])));
|
|
69
69
|
exports.TableCell = styled_native_1.default.View(function (_a) {
|
|
70
70
|
var core = _a.theme.core, cellWidth = _a.cellWidth, smallAndUp = _a.smallAndUp;
|
|
71
|
-
return (0, styled_native_1.css)(templateObject_10 || (templateObject_10 = __makeTemplateObject(["\n padding: ", " ", ";\n width: ", ";\n flex: ", ";\n "], ["\n padding: ", " ", ";\n width: ", ";\n flex: ", ";\n "])), core.space[smallAndUp ? 3 : 2], core.space[
|
|
71
|
+
return (0, styled_native_1.css)(templateObject_10 || (templateObject_10 = __makeTemplateObject(["\n padding: ", " ", ";\n width: ", ";\n flex: ", ";\n "], ["\n padding: ", " ", ";\n width: ", ";\n flex: ", ";\n "])), core.space[smallAndUp ? 3 : 2], core.space[2], cellWidth, cellWidth === 'auto' ? 1 : 0);
|
|
72
72
|
});
|
|
73
73
|
exports.RowHeading = styled_native_1.default.View(function (_a) {
|
|
74
74
|
var core = _a.theme.core, cellWidth = _a.cellWidth, smallAndUp = _a.smallAndUp;
|
|
75
|
-
return (0, styled_native_1.css)(templateObject_11 || (templateObject_11 = __makeTemplateObject(["\n padding: ", " ", ";\n width: ", ";\n flex: ", ";\n "], ["\n padding: ", " ", ";\n width: ", ";\n flex: ", ";\n "])), core.space[smallAndUp ? 3 : 2], core.space[
|
|
75
|
+
return (0, styled_native_1.css)(templateObject_11 || (templateObject_11 = __makeTemplateObject(["\n padding: ", " ", ";\n width: ", ";\n flex: ", ";\n "], ["\n padding: ", " ", ";\n width: ", ";\n flex: ", ";\n "])), core.space[smallAndUp ? 3 : 2], core.space[2], cellWidth, cellWidth === 'auto' ? 1 : 0);
|
|
76
|
+
});
|
|
77
|
+
exports.StyledSeparatorRow = styled_native_1.default.View(function (_a) {
|
|
78
|
+
var _b = _a.theme, core = _b.core, semantic = _b.semantic, width = _a.width;
|
|
79
|
+
var minWidth = width
|
|
80
|
+
? "".concat(width - parseInt(core.space[2]) * 2, "px")
|
|
81
|
+
: '100%';
|
|
82
|
+
return "\n min-width: ".concat(minWidth, ";\n flex: 1;\n flex-direction: row;\n background-color: ").concat(semantic.surface.elevated, ";\n padding: ").concat(core.space[1], " ").concat(core.space[2], ";\n ");
|
|
83
|
+
});
|
|
84
|
+
exports.SeparatorRowText = styled_native_1.default.Text(function (_a) {
|
|
85
|
+
var _b = _a.theme, core = _b.core, semantic = _b.semantic, smallAndUp = _a.smallAndUp;
|
|
86
|
+
return "\n flex: 1;\n font-family: ".concat(core.fontFamily.body.native, ";\n font-size: ").concat(core.fontSize.small[smallAndUp ? 'large' : 'small'], ";\n line-height: ").concat(core.lineHeight.small[smallAndUp ? 'large' : 'small'], ";\n color: ").concat(semantic.message.secondary, ";\n");
|
|
76
87
|
});
|
|
77
88
|
var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7, templateObject_8, templateObject_9, templateObject_10, templateObject_11;
|
|
@@ -1,7 +1,12 @@
|
|
|
1
1
|
import { ReactNode, Ref } from 'react';
|
|
2
2
|
import { View } from 'react-native';
|
|
3
|
+
export declare type SeparatorRow = {
|
|
4
|
+
content: string;
|
|
5
|
+
isSeparator: boolean;
|
|
6
|
+
};
|
|
7
|
+
declare type Item = ReactNode | SeparatorRow;
|
|
3
8
|
export declare type TableProps = {
|
|
4
|
-
items:
|
|
9
|
+
items: Item[][];
|
|
5
10
|
columnHeadings?: ReactNode[];
|
|
6
11
|
caption?: ReactNode;
|
|
7
12
|
rowHeadings?: boolean;
|
|
@@ -10,6 +15,7 @@ export declare type TableProps = {
|
|
|
10
15
|
ref: Ref<View>;
|
|
11
16
|
};
|
|
12
17
|
export declare type TableRowProps = Pick<TableProps, 'rowHeadings' | 'striped' | 'columnWidths'> & {
|
|
13
|
-
data:
|
|
18
|
+
data: Item[];
|
|
14
19
|
index: number;
|
|
15
20
|
};
|
|
21
|
+
export {};
|