@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 StyledAccordion: import("styled-components").StyledComponen
|
|
|
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;
|
|
@@ -435,6 +439,10 @@ export declare const StyledAccordionHeader: import("styled-components").StyledCo
|
|
|
435
439
|
};
|
|
436
440
|
badge: {
|
|
437
441
|
variants: {
|
|
442
|
+
neutral: {
|
|
443
|
+
foreground: string;
|
|
444
|
+
background: string;
|
|
445
|
+
};
|
|
438
446
|
red: {
|
|
439
447
|
foreground: string;
|
|
440
448
|
background: string;
|
|
@@ -663,6 +671,10 @@ export declare const StyledContainer: import("styled-components").StyledComponen
|
|
|
663
671
|
};
|
|
664
672
|
badge: {
|
|
665
673
|
variants: {
|
|
674
|
+
neutral: {
|
|
675
|
+
foreground: string;
|
|
676
|
+
background: string;
|
|
677
|
+
};
|
|
666
678
|
red: {
|
|
667
679
|
foreground: string;
|
|
668
680
|
background: string;
|
|
@@ -73,7 +73,7 @@ var ActionCard = function (_a) {
|
|
|
73
73
|
paddingRight: !image && !title && onPressCloseButton
|
|
74
74
|
? parseInt(core.space[6])
|
|
75
75
|
: 0,
|
|
76
|
-
} }, { children: (0, jsx_runtime_1.jsx)(StyledP, __assign({ inverted: inverted }, { children: body })) }))) : (body), buttonTitle && onPressActionButton && !onPressIndicator ? (!ctaVariant ? ((0, jsx_runtime_1.jsx)(__1.Action, __assign({ inverted: inverted, onPress: onPressActionButton, testID: "".concat(testID, "-button") }, { children: buttonTitle }))) : ((0, jsx_runtime_1.jsx)(__1.Margin, __assign({ top: 4 }, { children: (0, jsx_runtime_1.jsx)(__1.CTAButton, __assign({ onPress: onPressActionButton, testID: "".concat(testID, "-button"), variant: ctaVariant }, { children: buttonTitle })) })))) : null] })] })) })), image ? ((0, jsx_runtime_1.jsx)(masked_view_1.default, __assign({ style: {
|
|
76
|
+
} }, { children: (0, jsx_runtime_1.jsx)(StyledP, __assign({ inverted: inverted }, { children: body })) }))) : (body), buttonTitle && onPressActionButton && !onPressIndicator ? (!ctaVariant ? ((0, jsx_runtime_1.jsx)(__1.Margin, __assign({ top: 2 }, { children: (0, jsx_runtime_1.jsx)(__1.Action, __assign({ inverted: inverted, inline: true, onPress: onPressActionButton, testID: "".concat(testID, "-button") }, { children: buttonTitle })) }))) : ((0, jsx_runtime_1.jsx)(__1.Margin, __assign({ top: 4 }, { children: (0, jsx_runtime_1.jsx)(__1.CTAButton, __assign({ onPress: onPressActionButton, testID: "".concat(testID, "-button"), variant: ctaVariant }, { children: buttonTitle })) })))) : null] })] })) })), image ? ((0, jsx_runtime_1.jsx)(masked_view_1.default, __assign({ style: {
|
|
77
77
|
flex: 1,
|
|
78
78
|
flexDirection: 'row',
|
|
79
79
|
height: '100%',
|
|
@@ -13,6 +13,7 @@ declare type ActionProps = PropsWithChildren<ViewProps & {
|
|
|
13
13
|
iconLeft?: IconName | 'off';
|
|
14
14
|
iconRight?: IconName | 'off';
|
|
15
15
|
inverted?: boolean;
|
|
16
|
+
inline?: boolean;
|
|
16
17
|
onPress?: () => void;
|
|
17
18
|
fullWidth?: FullWidthOptions;
|
|
18
19
|
ref?: Ref<View>;
|
|
@@ -20,5 +21,5 @@ declare type ActionProps = PropsWithChildren<ViewProps & {
|
|
|
20
21
|
inList?: boolean;
|
|
21
22
|
}>;
|
|
22
23
|
declare const ActionList: ({ children, inverted, ...rest }: ActionListProps) => JSX.Element;
|
|
23
|
-
declare const Action: ({ accessibilityRole, actionType, children, fullWidth, inverted, onPress, testID, ...rest }: ActionProps) => JSX.Element;
|
|
24
|
+
declare const Action: ({ accessibilityRole, actionType, children, fullWidth, inverted, inline, onPress, testID, ...rest }: ActionProps) => JSX.Element;
|
|
24
25
|
export { ActionList, Action };
|
|
@@ -50,11 +50,11 @@ var ActionList = function (_a) {
|
|
|
50
50
|
};
|
|
51
51
|
exports.ActionList = ActionList;
|
|
52
52
|
var ActionWrapper = function (_a) {
|
|
53
|
-
var children = _a.children, accessibilityRole = _a.accessibilityRole, _b = _a.activeOpacity, activeOpacity = _b === void 0 ? 0.75 : _b, fullWidth = _a.fullWidth, _c = _a.hasBorder, hasBorder = _c === void 0 ? false : _c, _d = _a.inverted, inverted = _d === void 0 ? false : _d, onPress = _a.onPress, testID = _a.testID, rest = __rest(_a, ["children", "accessibilityRole", "activeOpacity", "fullWidth", "hasBorder", "inverted", "onPress", "testID"]);
|
|
54
|
-
return ((0, jsx_runtime_1.jsx)(styled_1.StyledActionWrapper, __assign({ hasBorder: hasBorder, inverted: inverted, testID: testID }, rest, { children: (0, jsx_runtime_1.jsx)(react_native_1.TouchableOpacity, __assign({ activeOpacity: activeOpacity, accessibilityRole: accessibilityRole, onPress: onPress }, { children: (0, jsx_runtime_1.jsx)(styled_1.StyledActionInner, __assign({ fullWidth: fullWidth, inList:
|
|
53
|
+
var children = _a.children, accessibilityRole = _a.accessibilityRole, _b = _a.activeOpacity, activeOpacity = _b === void 0 ? 0.75 : _b, fullWidth = _a.fullWidth, _c = _a.hasBorder, hasBorder = _c === void 0 ? false : _c, _d = _a.inverted, inverted = _d === void 0 ? false : _d, _e = _a.inline, inline = _e === void 0 ? false : _e, inList = _a.inList, onPress = _a.onPress, testID = _a.testID, rest = __rest(_a, ["children", "accessibilityRole", "activeOpacity", "fullWidth", "hasBorder", "inverted", "inline", "inList", "onPress", "testID"]);
|
|
54
|
+
return ((0, jsx_runtime_1.jsx)(styled_1.StyledActionWrapper, __assign({ hasBorder: hasBorder, inverted: inverted, testID: testID }, rest, { children: (0, jsx_runtime_1.jsx)(react_native_1.TouchableOpacity, __assign({ hitSlop: inline ? 24 : null, activeOpacity: activeOpacity, accessibilityRole: accessibilityRole, onPress: onPress }, { children: (0, jsx_runtime_1.jsx)(styled_1.StyledActionInner, __assign({ fullWidth: fullWidth, inList: inList, inline: inline }, { children: children })) })) })));
|
|
55
55
|
};
|
|
56
56
|
var Action = function (_a) {
|
|
57
|
-
var _b = _a.accessibilityRole, accessibilityRole = _b === void 0 ? 'link' : _b, _c = _a.actionType, actionType = _c === void 0 ? 'link' : _c, children = _a.children, _d = _a.fullWidth, fullWidth = _d === void 0 ? 'never' : _d, _e = _a.inverted, inverted = _e === void 0 ? false : _e, onPress = _a.onPress, testID = _a.testID, rest = __rest(_a, ["accessibilityRole", "actionType", "children", "fullWidth", "inverted", "onPress", "testID"]);
|
|
57
|
+
var _b = _a.accessibilityRole, accessibilityRole = _b === void 0 ? 'link' : _b, _c = _a.actionType, actionType = _c === void 0 ? 'link' : _c, children = _a.children, _d = _a.fullWidth, fullWidth = _d === void 0 ? 'never' : _d, _e = _a.inverted, inverted = _e === void 0 ? false : _e, _f = _a.inline, inline = _f === void 0 ? false : _f, onPress = _a.onPress, testID = _a.testID, rest = __rest(_a, ["accessibilityRole", "actionType", "children", "fullWidth", "inverted", "inline", "onPress", "testID"]);
|
|
58
58
|
var smallAndUp = (0, hooks_1.useBreakpoint)().smallAndUp;
|
|
59
59
|
var isBackAction = actionType === 'back';
|
|
60
60
|
var updatedIconRight = null;
|
|
@@ -64,6 +64,6 @@ var Action = function (_a) {
|
|
|
64
64
|
if (fullWidth === 'small') {
|
|
65
65
|
fullWidth = smallAndUp ? 'never' : 'always';
|
|
66
66
|
}
|
|
67
|
-
return ((0, jsx_runtime_1.jsxs)(ActionWrapper, __assign({ accessibilityRole: accessibilityRole, fullWidth: fullWidth, inverted: inverted, onPress: onPress, testID: testID }, rest, { children: [isBackAction ? ((0, jsx_runtime_1.jsx)(styled_1.StyledLeftIcon, { inverted: inverted, name: ACTION_TYPES.back, size: 16 })) : null, (0, jsx_runtime_1.jsx)(styled_1.StyledActionText, __assign({ smallAndUp: smallAndUp, inverted: inverted, inList: rest === null || rest === void 0 ? void 0 : rest.inList }, { children: children })), updatedIconRight ? ((0, jsx_runtime_1.jsx)(styled_1.StyledRightIcon, { inverted: inverted, name: updatedIconRight, marginTop: actionType === 'link' ? 1 : 0, size: 16 })) : null] })));
|
|
67
|
+
return ((0, jsx_runtime_1.jsxs)(ActionWrapper, __assign({ accessibilityRole: accessibilityRole, fullWidth: fullWidth, inverted: inverted, inline: inline, onPress: onPress, testID: testID }, rest, { children: [isBackAction ? ((0, jsx_runtime_1.jsx)(styled_1.StyledLeftIcon, { inverted: inverted, name: ACTION_TYPES.back, size: 16 })) : null, (0, jsx_runtime_1.jsx)(styled_1.StyledActionText, __assign({ smallAndUp: smallAndUp, inverted: inverted, inList: rest === null || rest === void 0 ? void 0 : rest.inList }, { children: children })), updatedIconRight ? ((0, jsx_runtime_1.jsx)(styled_1.StyledRightIcon, { inverted: inverted, name: updatedIconRight, marginTop: actionType === 'link' ? 1 : 0, size: 16 })) : null] })));
|
|
68
68
|
};
|
|
69
69
|
exports.Action = Action;
|
|
@@ -1,7 +1,247 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import { Theme } from '@ovotech/element-core';
|
|
2
3
|
import { FullWidthOptions } from '../../hooks';
|
|
3
|
-
|
|
4
|
-
|
|
4
|
+
export declare const StyledActionList: import("react").ForwardRefExoticComponent<Pick<Omit<{
|
|
5
|
+
[x: string]: any;
|
|
6
|
+
[x: number]: any;
|
|
7
|
+
[x: symbol]: any;
|
|
8
|
+
} & {
|
|
9
|
+
theme?: {
|
|
10
|
+
core: {
|
|
11
|
+
radius: Record<"small" | "medium" | "large" | "max", string>;
|
|
12
|
+
borderWidth: Record<"small" | "medium" | "large", string>;
|
|
13
|
+
breakpoint: Record<"small" | "medium" | "large", string | number>;
|
|
14
|
+
mediaQuery: Record<"small" | "medium" | "large", string>;
|
|
15
|
+
space: Record<0 | 2 | 1 | 3 | 4 | 5 | 10 | 6 | 7 | 8 | 9 | 11 | 12 | 13 | 14 | 15, string>;
|
|
16
|
+
transition: Record<"medium" | "slow" | "fast", string>;
|
|
17
|
+
opacity: Record<"solid" | "transparent" | "translucent", string | number>;
|
|
18
|
+
color: Record<"neutral" | "red" | "orange" | "yellow" | "green" | "blue", {
|
|
19
|
+
lightest: string;
|
|
20
|
+
lighter: string;
|
|
21
|
+
light: string;
|
|
22
|
+
base: string;
|
|
23
|
+
dark: string;
|
|
24
|
+
darker: string;
|
|
25
|
+
darkest: string;
|
|
26
|
+
}> & {
|
|
27
|
+
brand: Record<string, string>;
|
|
28
|
+
};
|
|
29
|
+
fontFamily: Record<"body" | "mono" | "heading" | "bodyBold", {
|
|
30
|
+
native: string;
|
|
31
|
+
web: string;
|
|
32
|
+
}>;
|
|
33
|
+
fontWeight: Record<"bold" | "book" | "black", string | number>;
|
|
34
|
+
fontSize: Record<"small" | "body" | "label" | "heading1" | "heading2" | "heading3" | "heading4" | "lead", {
|
|
35
|
+
small: string | number;
|
|
36
|
+
large: string | number;
|
|
37
|
+
}>;
|
|
38
|
+
lineHeight: Record<"small" | "body" | "label" | "heading1" | "heading2" | "heading3" | "heading4" | "lead", {
|
|
39
|
+
small: string | number;
|
|
40
|
+
large: string | number;
|
|
41
|
+
}>;
|
|
42
|
+
letterSpacing: Record<"base" | "compressed" | "extraCompressed", number>;
|
|
43
|
+
};
|
|
44
|
+
semantic: {
|
|
45
|
+
surface: Record<"base" | "cutout" | "elevated", string>;
|
|
46
|
+
message: Record<"base" | "link" | "secondary" | "error" | "branded", string>;
|
|
47
|
+
border: Record<"graphic" | "differentiated" | "functional", string>;
|
|
48
|
+
focus: Record<"surface" | "outline" | "hover", string>;
|
|
49
|
+
inverted: Record<"surface" | "border", string> & {
|
|
50
|
+
message: Record<"base" | "link" | "secondary" | "branded", string>;
|
|
51
|
+
};
|
|
52
|
+
success: {
|
|
53
|
+
border: string;
|
|
54
|
+
surface: string;
|
|
55
|
+
surfaceEmphasis: string;
|
|
56
|
+
message: string;
|
|
57
|
+
messageOnEmphasis: string;
|
|
58
|
+
};
|
|
59
|
+
warning: {
|
|
60
|
+
border: string;
|
|
61
|
+
surface: string;
|
|
62
|
+
surfaceEmphasis: string;
|
|
63
|
+
message: string;
|
|
64
|
+
messageOnEmphasis: string;
|
|
65
|
+
};
|
|
66
|
+
error: {
|
|
67
|
+
border: string;
|
|
68
|
+
surface: string;
|
|
69
|
+
surfaceEmphasis: string;
|
|
70
|
+
message: string;
|
|
71
|
+
messageOnEmphasis: string;
|
|
72
|
+
};
|
|
73
|
+
info: {
|
|
74
|
+
border: string;
|
|
75
|
+
surface: string;
|
|
76
|
+
surfaceEmphasis: string;
|
|
77
|
+
message: string;
|
|
78
|
+
messageOnEmphasis: string;
|
|
79
|
+
};
|
|
80
|
+
data: Record<"branded" | "gas" | "electric", Record<2 | 1 | 3 | 4, string>>;
|
|
81
|
+
};
|
|
82
|
+
component: {
|
|
83
|
+
heading1: {
|
|
84
|
+
fontFamily: string;
|
|
85
|
+
fontWeight: string | number;
|
|
86
|
+
fontSize: {
|
|
87
|
+
small: string | number;
|
|
88
|
+
large: string | number;
|
|
89
|
+
};
|
|
90
|
+
lineHeight: {
|
|
91
|
+
small: string | number;
|
|
92
|
+
large: string | number;
|
|
93
|
+
};
|
|
94
|
+
};
|
|
95
|
+
heading2: {
|
|
96
|
+
fontFamily: string;
|
|
97
|
+
fontWeight: string | number;
|
|
98
|
+
fontSize: {
|
|
99
|
+
small: string | number;
|
|
100
|
+
large: string | number;
|
|
101
|
+
};
|
|
102
|
+
lineHeight: {
|
|
103
|
+
small: string | number;
|
|
104
|
+
large: string | number;
|
|
105
|
+
};
|
|
106
|
+
};
|
|
107
|
+
heading3: {
|
|
108
|
+
fontFamily: string;
|
|
109
|
+
fontWeight: string | number;
|
|
110
|
+
fontSize: {
|
|
111
|
+
small: string | number;
|
|
112
|
+
large: string | number;
|
|
113
|
+
};
|
|
114
|
+
lineHeight: {
|
|
115
|
+
small: string | number;
|
|
116
|
+
large: string | number;
|
|
117
|
+
};
|
|
118
|
+
};
|
|
119
|
+
heading4: {
|
|
120
|
+
fontFamily: string;
|
|
121
|
+
fontWeight: string | number;
|
|
122
|
+
fontSize: {
|
|
123
|
+
small: string | number;
|
|
124
|
+
large: string | number;
|
|
125
|
+
};
|
|
126
|
+
lineHeight: {
|
|
127
|
+
small: string | number;
|
|
128
|
+
large: string | number;
|
|
129
|
+
};
|
|
130
|
+
};
|
|
131
|
+
lead: {
|
|
132
|
+
fontFamily: string;
|
|
133
|
+
fontWeight: string | number;
|
|
134
|
+
fontSize: {
|
|
135
|
+
small: string | number;
|
|
136
|
+
large: string | number;
|
|
137
|
+
};
|
|
138
|
+
lineHeight: {
|
|
139
|
+
small: string | number;
|
|
140
|
+
large: string | number;
|
|
141
|
+
};
|
|
142
|
+
};
|
|
143
|
+
body: {
|
|
144
|
+
fontFamily: string;
|
|
145
|
+
fontWeight: string | number;
|
|
146
|
+
fontSize: {
|
|
147
|
+
small: string | number;
|
|
148
|
+
large: string | number;
|
|
149
|
+
};
|
|
150
|
+
lineHeight: {
|
|
151
|
+
small: string | number;
|
|
152
|
+
large: string | number;
|
|
153
|
+
};
|
|
154
|
+
};
|
|
155
|
+
small: {
|
|
156
|
+
fontFamily: string;
|
|
157
|
+
fontWeight: string | number;
|
|
158
|
+
fontSize: {
|
|
159
|
+
small: string | number;
|
|
160
|
+
large: string | number;
|
|
161
|
+
};
|
|
162
|
+
lineHeight: {
|
|
163
|
+
small: string | number;
|
|
164
|
+
large: string | number;
|
|
165
|
+
};
|
|
166
|
+
};
|
|
167
|
+
label: {
|
|
168
|
+
fontFamily: string;
|
|
169
|
+
fontWeight: string | number;
|
|
170
|
+
fontSize: {
|
|
171
|
+
small: string | number;
|
|
172
|
+
large: string | number;
|
|
173
|
+
};
|
|
174
|
+
lineHeight: {
|
|
175
|
+
small: string | number;
|
|
176
|
+
large: string | number;
|
|
177
|
+
};
|
|
178
|
+
};
|
|
179
|
+
cta: {
|
|
180
|
+
primary: {
|
|
181
|
+
message: string;
|
|
182
|
+
surface: string;
|
|
183
|
+
messageHover: string;
|
|
184
|
+
surfaceHover: string;
|
|
185
|
+
messageFocused: string;
|
|
186
|
+
surfaceFocused: string;
|
|
187
|
+
outlineFocused: string;
|
|
188
|
+
backgroundFocused: string;
|
|
189
|
+
};
|
|
190
|
+
secondary: {
|
|
191
|
+
message: string;
|
|
192
|
+
surface: string;
|
|
193
|
+
messageHover: string;
|
|
194
|
+
surfaceHover: string;
|
|
195
|
+
messageFocused: string;
|
|
196
|
+
surfaceFocused: string;
|
|
197
|
+
outlineFocused: string;
|
|
198
|
+
backgroundFocused: string;
|
|
199
|
+
};
|
|
200
|
+
destructive: {
|
|
201
|
+
message: string;
|
|
202
|
+
surface: string;
|
|
203
|
+
messageHover: string;
|
|
204
|
+
surfaceHover: string;
|
|
205
|
+
messageFocused: string;
|
|
206
|
+
surfaceFocused: string;
|
|
207
|
+
outlineFocused: string;
|
|
208
|
+
backgroundFocused: string;
|
|
209
|
+
};
|
|
210
|
+
};
|
|
211
|
+
badge: {
|
|
212
|
+
variants: {
|
|
213
|
+
neutral: {
|
|
214
|
+
foreground: string;
|
|
215
|
+
background: string;
|
|
216
|
+
};
|
|
217
|
+
red: {
|
|
218
|
+
foreground: string;
|
|
219
|
+
background: string;
|
|
220
|
+
};
|
|
221
|
+
orange: {
|
|
222
|
+
foreground: string;
|
|
223
|
+
background: string;
|
|
224
|
+
};
|
|
225
|
+
yellow: {
|
|
226
|
+
foreground: string;
|
|
227
|
+
background: string;
|
|
228
|
+
};
|
|
229
|
+
green: {
|
|
230
|
+
foreground: string;
|
|
231
|
+
background: string;
|
|
232
|
+
};
|
|
233
|
+
blue: {
|
|
234
|
+
foreground: string;
|
|
235
|
+
background: string;
|
|
236
|
+
};
|
|
237
|
+
};
|
|
238
|
+
};
|
|
239
|
+
};
|
|
240
|
+
} | undefined;
|
|
241
|
+
} & {
|
|
242
|
+
as?: string | import("react").ComponentType<any> | undefined;
|
|
243
|
+
forwardedAs?: string | import("react").ComponentType<any> | undefined;
|
|
244
|
+
}, import("../../hooks").BreakpointNames>, string | number | symbol> & import("react").RefAttributes<import("react-native/types").View>>;
|
|
5
245
|
export declare const StyledActionWrapper: import("styled-components").StyledComponent<typeof import("react-native").View, {
|
|
6
246
|
core: {
|
|
7
247
|
radius: Record<"small" | "medium" | "large" | "max", string>;
|
|
@@ -206,6 +446,10 @@ export declare const StyledActionWrapper: import("styled-components").StyledComp
|
|
|
206
446
|
};
|
|
207
447
|
badge: {
|
|
208
448
|
variants: {
|
|
449
|
+
neutral: {
|
|
450
|
+
foreground: string;
|
|
451
|
+
background: string;
|
|
452
|
+
};
|
|
209
453
|
red: {
|
|
210
454
|
foreground: string;
|
|
211
455
|
background: string;
|
|
@@ -437,6 +681,10 @@ export declare const StyledActionInner: import("styled-components").StyledCompon
|
|
|
437
681
|
};
|
|
438
682
|
badge: {
|
|
439
683
|
variants: {
|
|
684
|
+
neutral: {
|
|
685
|
+
foreground: string;
|
|
686
|
+
background: string;
|
|
687
|
+
};
|
|
440
688
|
red: {
|
|
441
689
|
foreground: string;
|
|
442
690
|
background: string;
|
|
@@ -462,6 +710,7 @@ export declare const StyledActionInner: import("styled-components").StyledCompon
|
|
|
462
710
|
};
|
|
463
711
|
}, {
|
|
464
712
|
fullWidth?: FullWidthOptions | undefined;
|
|
713
|
+
inline?: boolean | undefined;
|
|
465
714
|
}, never>;
|
|
466
715
|
export declare const StyledActionText: import("styled-components").StyledComponent<typeof import("react-native").Text, {
|
|
467
716
|
core: {
|
|
@@ -667,6 +916,10 @@ export declare const StyledActionText: import("styled-components").StyledCompone
|
|
|
667
916
|
};
|
|
668
917
|
badge: {
|
|
669
918
|
variants: {
|
|
919
|
+
neutral: {
|
|
920
|
+
foreground: string;
|
|
921
|
+
background: string;
|
|
922
|
+
};
|
|
670
923
|
red: {
|
|
671
924
|
foreground: string;
|
|
672
925
|
background: string;
|
|
@@ -899,6 +1152,10 @@ export declare const StyledRightIcon: import("styled-components").StyledComponen
|
|
|
899
1152
|
};
|
|
900
1153
|
badge: {
|
|
901
1154
|
variants: {
|
|
1155
|
+
neutral: {
|
|
1156
|
+
foreground: string;
|
|
1157
|
+
background: string;
|
|
1158
|
+
};
|
|
902
1159
|
red: {
|
|
903
1160
|
foreground: string;
|
|
904
1161
|
background: string;
|
|
@@ -1130,6 +1387,10 @@ export declare const StyledLeftIcon: import("styled-components").StyledComponent
|
|
|
1130
1387
|
};
|
|
1131
1388
|
badge: {
|
|
1132
1389
|
variants: {
|
|
1390
|
+
neutral: {
|
|
1391
|
+
foreground: string;
|
|
1392
|
+
background: string;
|
|
1393
|
+
};
|
|
1133
1394
|
red: {
|
|
1134
1395
|
foreground: string;
|
|
1135
1396
|
background: string;
|
|
@@ -29,34 +29,36 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
29
29
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
30
30
|
exports.StyledLeftIcon = exports.StyledRightIcon = exports.StyledActionText = exports.StyledActionInner = exports.StyledActionWrapper = exports.StyledActionList = void 0;
|
|
31
31
|
var styled_native_1 = __importStar(require("../../styled.native"));
|
|
32
|
+
var utils_1 = require("../../utils");
|
|
32
33
|
var Icon_1 = require("../Icon");
|
|
33
|
-
var
|
|
34
|
-
|
|
34
|
+
var StyledList = styled_native_1.default.View(function (_a) {
|
|
35
|
+
var core = _a.theme.core, smallAndUp = _a.smallAndUp;
|
|
36
|
+
return (0, styled_native_1.css)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n flex-direction: column;\n margin-top: ", ";\n margin-bottom: ", ";\n "], ["\n flex-direction: column;\n margin-top: ", ";\n margin-bottom: ", ";\n "])), smallAndUp ? core.space[3] : core.space[2], smallAndUp ? core.space[3] : core.space[2]);
|
|
37
|
+
});
|
|
38
|
+
exports.StyledActionList = (0, utils_1.styledComponentWithBreakpoints)(StyledList);
|
|
35
39
|
exports.StyledActionWrapper = styled_native_1.default.View(function (_a) {
|
|
36
40
|
var _b = _a.theme, core = _b.core, semantic = _b.semantic, hasBorder = _a.hasBorder, inverted = _a.inverted;
|
|
37
41
|
return "\n width: 100%;\n align-self: flex-start;\n border-bottom-width: ".concat(hasBorder ? core.borderWidth.small : 0, ";\n border-bottom-style: solid;\n border-bottom-color: ").concat(inverted ? semantic.inverted.border : semantic.border.graphic, ";\n");
|
|
38
42
|
});
|
|
39
43
|
exports.StyledActionInner = styled_native_1.default.View(function (_a) {
|
|
40
|
-
var fullWidth = _a.fullWidth;
|
|
41
|
-
return "\n
|
|
44
|
+
var fullWidth = _a.fullWidth, inline = _a.inline;
|
|
45
|
+
return (0, styled_native_1.css)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n display: flex;\n flex-direction: row;\n justify-content: ", ";\n align-items: center;\n ", ";\n "], ["\n display: flex;\n flex-direction: row;\n justify-content: ", ";\n align-items: center;\n ", ";\n "])), fullWidth === 'always' ? 'space-between' : 'flex-start', !inline ? 'min-height: 44px' : '');
|
|
42
46
|
});
|
|
43
47
|
exports.StyledActionText = styled_native_1.default.Text(function (_a) {
|
|
44
48
|
var _b = _a.theme, core = _b.core, semantic = _b.semantic, smallAndUp = _a.smallAndUp, _c = _a.inverted, inverted = _c === void 0 ? false : _c, _d = _a.inList, inList = _d === void 0 ? false : _d;
|
|
45
49
|
var fontSize = smallAndUp
|
|
46
50
|
? core.fontSize.body.large
|
|
47
51
|
: core.fontSize.body.small;
|
|
48
|
-
return (0, styled_native_1.css)(
|
|
52
|
+
return (0, styled_native_1.css)(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n color: ", ";\n font-family: ", ";\n font-size: ", ";\n line-height: ", ";\n flex: ", ";\n "], ["\n color: ", ";\n font-family: ", ";\n font-size: ", ";\n line-height: ", ";\n flex: ", ";\n "])), inverted
|
|
49
53
|
? semantic.inverted.message.base
|
|
50
54
|
: semantic.message.base, core.fontFamily.bodyBold.native, fontSize, core.lineHeight.body.small, inList ? 1 : 'none');
|
|
51
55
|
});
|
|
52
56
|
exports.StyledRightIcon = (0, styled_native_1.default)(Icon_1.Icon)(function (_a) {
|
|
53
57
|
var _b = _a.theme, core = _b.core, semantic = _b.semantic, inverted = _a.inverted, marginTop = _a.marginTop;
|
|
54
|
-
return (0, styled_native_1.css)(
|
|
58
|
+
return (0, styled_native_1.css)(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n color: ", ";\n margin-left: ", ";\n margin-top: ", ";\n "], ["\n color: ", ";\n margin-left: ", ";\n margin-top: ", ";\n "])), inverted ? semantic.inverted.message.base : semantic.message.base, core.space[1], core.space[marginTop]);
|
|
55
59
|
});
|
|
56
60
|
exports.StyledLeftIcon = (0, styled_native_1.default)(Icon_1.Icon)(function (_a) {
|
|
57
61
|
var _b = _a.theme, core = _b.core, semantic = _b.semantic, inverted = _a.inverted;
|
|
58
|
-
return (0, styled_native_1.css)(
|
|
59
|
-
? semantic.inverted.message.base
|
|
60
|
-
: semantic.message.base, core.space[1]);
|
|
62
|
+
return (0, styled_native_1.css)(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n color: ", ";\n margin-right: ", ";\n "], ["\n color: ", ";\n margin-right: ", ";\n "])), inverted ? semantic.inverted.message.base : semantic.message.base, core.space[1]);
|
|
61
63
|
});
|
|
62
|
-
var templateObject_1, templateObject_2, templateObject_3;
|
|
64
|
+
var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5;
|
|
@@ -12,15 +12,21 @@ var __assign = (this && this.__assign) || function () {
|
|
|
12
12
|
};
|
|
13
13
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
14
|
exports.TableRow = void 0;
|
|
15
|
-
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
16
15
|
var react_1 = require("react");
|
|
16
|
+
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
17
17
|
var react_is_1 = require("react-is");
|
|
18
|
+
var react_native_1 = require("react-native");
|
|
18
19
|
var hooks_1 = require("../../hooks");
|
|
19
20
|
var styles_1 = require("./styles");
|
|
20
21
|
var TableRow = function (_a) {
|
|
21
22
|
var data = _a.data, index = _a.index, striped = _a.striped, rowHeadings = _a.rowHeadings, columnWidths = _a.columnWidths;
|
|
22
23
|
var breakpoints = (0, hooks_1.useBreakpoint)();
|
|
23
24
|
var cells = data.map(function (cellData, i) {
|
|
25
|
+
if (typeof cellData === 'object' &&
|
|
26
|
+
(cellData === null || cellData === void 0 ? void 0 : cellData.hasOwnProperty('isSeparator')) &&
|
|
27
|
+
(cellData === null || cellData === void 0 ? void 0 : cellData.hasOwnProperty('content'))) {
|
|
28
|
+
return ((0, jsx_runtime_1.jsx)(styles_1.StyledSeparatorRow, __assign({ testID: "separatorRow", width: react_native_1.Dimensions.get('window').width }, { children: (0, jsx_runtime_1.jsx)(styles_1.SeparatorRowText, __assign({}, breakpoints, { children: cellData === null || cellData === void 0 ? void 0 : cellData.content })) }), i));
|
|
29
|
+
}
|
|
24
30
|
if (rowHeadings && i === 0) {
|
|
25
31
|
return ((0, react_1.createElement)(styles_1.RowHeading, __assign({}, breakpoints, { key: i, testID: "rowHeader", cellWidth: columnWidths[i] }), (0, react_is_1.isElement)(cellData) ? (cellData) : ((0, jsx_runtime_1.jsx)(styles_1.TableHeaderText, __assign({}, breakpoints, { children: cellData })))));
|
|
26
32
|
}
|