@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.
Files changed (62) hide show
  1. package/dist/components/Accordion/styles.d.ts +12 -0
  2. package/dist/components/ActionCard/ActionCard.js +1 -1
  3. package/dist/components/ActionList/ActionList.d.ts +2 -1
  4. package/dist/components/ActionList/ActionList.js +4 -4
  5. package/dist/components/ActionList/styled.d.ts +263 -2
  6. package/dist/components/ActionList/styled.js +12 -10
  7. package/dist/components/Badge/Badge.d.ts +4 -0
  8. package/dist/components/Card/Card.d.ts +4 -0
  9. package/dist/components/DataTable/TableRow.js +7 -1
  10. package/dist/components/DataTable/styles.d.ts +510 -0
  11. package/dist/components/DataTable/styles.js +16 -5
  12. package/dist/components/DataTable/types.d.ts +8 -2
  13. package/dist/components/DescriptionList/styled.d.ts +4 -0
  14. package/dist/components/Em/Em.d.ts +4 -0
  15. package/dist/components/ErrorText/ErrorText.d.ts +4 -0
  16. package/dist/components/FilterSelect/FilterSelect.d.ts +14 -0
  17. package/dist/components/FilterSelect/FilterSelect.js +89 -0
  18. package/dist/components/FilterSelect/index.d.ts +1 -0
  19. package/dist/components/FilterSelect/index.js +5 -0
  20. package/dist/components/Grid/Col.d.ts +4 -0
  21. package/dist/components/Grid/Row.d.ts +4 -0
  22. package/dist/components/HintText/HintText.d.ts +4 -0
  23. package/dist/components/LabelText/LabelText.d.ts +4 -0
  24. package/dist/components/LineThrough/LineThrough.d.ts +4 -0
  25. package/dist/components/List/List.d.ts +4 -0
  26. package/dist/components/List/List.js +30 -24
  27. package/dist/components/List/styled.d.ts +24 -0
  28. package/dist/components/List/styled.js +2 -2
  29. package/dist/components/Margin/Margin.d.ts +4 -0
  30. package/dist/components/NavHeader/NavHeader.styles.d.ts +28 -0
  31. package/dist/components/Notification/Notification.d.ts +8 -0
  32. package/dist/components/P/P.d.ts +4 -0
  33. package/dist/components/PasswordInput/PasswordInput.styled.d.ts +4 -0
  34. package/dist/components/SelectField/Select.d.ts +4 -0
  35. package/dist/components/Small/Small.d.ts +4 -0
  36. package/dist/components/Strong/Strong.d.ts +4 -0
  37. package/dist/components/SubLabelText/SubLabelText.d.ts +4 -0
  38. package/dist/components/index.d.ts +1 -0
  39. package/dist/components/index.js +1 -0
  40. package/dist/esm/components/ActionCard/ActionCard.js +1 -1
  41. package/dist/esm/components/ActionList/ActionList.js +4 -4
  42. package/dist/esm/components/ActionList/styled.js +12 -10
  43. package/dist/esm/components/DataTable/TableRow.js +8 -2
  44. package/dist/esm/components/DataTable/styles.js +15 -4
  45. package/dist/esm/components/FilterSelect/FilterSelect.js +62 -0
  46. package/dist/esm/components/FilterSelect/index.js +1 -0
  47. package/dist/esm/components/List/List.js +31 -25
  48. package/dist/esm/components/List/styled.js +2 -2
  49. package/dist/esm/components/index.js +1 -0
  50. package/dist/esm/providers/IconsProvider.js +2 -1
  51. package/dist/esm/providers/icons/Logo.js +3 -3
  52. package/dist/esm/providers/icons/Torch.js +14 -0
  53. package/dist/esm/providers/icons/index.js +1 -0
  54. package/dist/providers/IconsProvider.js +1 -0
  55. package/dist/providers/icons/Logo.js +1 -1
  56. package/dist/providers/icons/Torch.d.ts +2 -0
  57. package/dist/providers/icons/Torch.js +41 -0
  58. package/dist/providers/icons/index.d.ts +1 -0
  59. package/dist/providers/icons/index.js +1 -0
  60. package/dist/providers/types.d.ts +1 -1
  61. package/dist/styled.native.d.ts +24 -0
  62. package/package.json +2 -2
@@ -0,0 +1,14 @@
1
+ declare type Option = {
2
+ label: string;
3
+ value: string;
4
+ };
5
+ export declare type FilterSelect = {
6
+ defaultSelected?: Option;
7
+ options: Array<Option>;
8
+ onSelected?(value: Option): void;
9
+ testID?: string;
10
+ rightText?: string;
11
+ leftText?: string;
12
+ };
13
+ export declare const FilterSelect: ({ options, defaultSelected, onSelected, testID, rightText, leftText, }: FilterSelect) => JSX.Element;
14
+ export {};
@@ -0,0 +1,89 @@
1
+ "use strict";
2
+ var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
3
+ if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
4
+ return cooked;
5
+ };
6
+ var __assign = (this && this.__assign) || function () {
7
+ __assign = Object.assign || function(t) {
8
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
9
+ s = arguments[i];
10
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
11
+ t[p] = s[p];
12
+ }
13
+ return t;
14
+ };
15
+ return __assign.apply(this, arguments);
16
+ };
17
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
18
+ if (k2 === undefined) k2 = k;
19
+ var desc = Object.getOwnPropertyDescriptor(m, k);
20
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
21
+ desc = { enumerable: true, get: function() { return m[k]; } };
22
+ }
23
+ Object.defineProperty(o, k2, desc);
24
+ }) : (function(o, m, k, k2) {
25
+ if (k2 === undefined) k2 = k;
26
+ o[k2] = m[k];
27
+ }));
28
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
29
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
30
+ }) : function(o, v) {
31
+ o["default"] = v;
32
+ });
33
+ var __importStar = (this && this.__importStar) || function (mod) {
34
+ if (mod && mod.__esModule) return mod;
35
+ var result = {};
36
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
37
+ __setModuleDefault(result, mod);
38
+ return result;
39
+ };
40
+ Object.defineProperty(exports, "__esModule", { value: true });
41
+ exports.FilterSelect = void 0;
42
+ var jsx_runtime_1 = require("react/jsx-runtime");
43
+ var react_1 = require("react");
44
+ var react_native_1 = require("react-native");
45
+ var styled_native_1 = __importStar(require("../../styled.native"));
46
+ var Divider_1 = require("../Divider");
47
+ var Icon_1 = require("../Icon");
48
+ var Margin_1 = require("../Margin");
49
+ var P_1 = require("../P");
50
+ var Strong_1 = require("../Strong");
51
+ var SelectInput = styled_native_1.default.TouchableOpacity(function (_a) {
52
+ var core = _a.theme.core;
53
+ return (0, styled_native_1.css)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n flex-direction: row;\n align-items: center;\n background-color: ", ";\n border-radius: ", ";\n padding-left: ", ";\n padding-right: ", ";\n "], ["\n flex-direction: row;\n align-items: center;\n background-color: ", ";\n border-radius: ", ";\n padding-left: ", ";\n padding-right: ", ";\n "])), core.color.brand.white, core.radius.max, core.space[2], core.space[1]);
54
+ });
55
+ var DropdownWrapper = styled_native_1.default.View(function (_a) {
56
+ var core = _a.theme.core;
57
+ return (0, styled_native_1.css)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n width: 100%;\n height: 100%;\n // 40 is an opacity for hex https://gist.github.com/lopspower/03fb1cc0ac9f32ef38f4\n background-color: ", "40;\n "], ["\n width: 100%;\n height: 100%;\n // 40 is an opacity for hex https://gist.github.com/lopspower/03fb1cc0ac9f32ef38f4\n background-color: ", "40;\n "])), core.color.neutral.darkest);
58
+ });
59
+ var DropdownContainer = styled_native_1.default.View(function (_a) {
60
+ var core = _a.theme.core;
61
+ return (0, styled_native_1.css)(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n flex: 1;\n min-width: 25%;\n max-height: 100%;\n border-radius: ", ";\n background-color: ", ";\n position: absolute;\n "], ["\n flex: 1;\n min-width: 25%;\n max-height: 100%;\n border-radius: ", ";\n background-color: ", ";\n position: absolute;\n "])), core.radius.large, core.color.brand.white);
62
+ });
63
+ var SelectOption = styled_native_1.default.TouchableOpacity(function (_a) {
64
+ var core = _a.theme.core;
65
+ return (0, styled_native_1.css)(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n flex-direction: row;\n align-items: center;\n padding-horizontal: ", ";\n "], ["\n flex-direction: row;\n align-items: center;\n padding-horizontal: ", ";\n "])), core.space[2]);
66
+ });
67
+ var FilterSelect = function (_a) {
68
+ var _b = _a.options, options = _b === void 0 ? [] : _b, _c = _a.defaultSelected, defaultSelected = _c === void 0 ? { label: '', value: 'default' } : _c, _d = _a.onSelected, onSelected = _d === void 0 ? function () { return null; } : _d, _e = _a.testID, testID = _e === void 0 ? 'select' : _e, rightText = _a.rightText, leftText = _a.leftText;
69
+ var selectRef = (0, react_1.useRef)(null);
70
+ var _f = (0, react_1.useState)(false), isOpen = _f[0], setOpen = _f[1];
71
+ var _g = (0, react_1.useState)(defaultSelected), selected = _g[0], setSelected = _g[1];
72
+ var _h = (0, react_1.useState)(null), measure = _h[0], setMeasure = _h[1];
73
+ var handleOptionPress = function (val) {
74
+ onSelected(val);
75
+ setOpen(false);
76
+ setSelected(val);
77
+ };
78
+ return ((0, jsx_runtime_1.jsxs)(react_native_1.View, __assign({ style: { flexDirection: 'row' } }, { children: [leftText ? (0, jsx_runtime_1.jsxs)(P_1.P, { children: [leftText, " "] }) : null, (0, jsx_runtime_1.jsxs)(SelectInput, __assign({ ref: selectRef, testID: testID, onPress: function () { return setOpen(!isOpen); }, onLayout: function () {
79
+ var _a;
80
+ (_a = selectRef.current) === null || _a === void 0 ? void 0 : _a.measureInWindow(function (x, y) {
81
+ setMeasure({ top: y - 12, left: x });
82
+ });
83
+ } }, { children: [(0, jsx_runtime_1.jsx)(P_1.P, { children: (0, jsx_runtime_1.jsx)(Strong_1.Strong, { children: selected.value === 'default' ? '' : selected.label }) }), (0, jsx_runtime_1.jsx)(Icon_1.Icon, { name: "caret-down", size: 14, style: { marginLeft: 2 } })] }), String(isOpen)), rightText ? (0, jsx_runtime_1.jsxs)(P_1.P, { children: [" ", rightText] }) : null, (0, jsx_runtime_1.jsx)(react_native_1.Modal, __assign({ transparent: true, visible: isOpen, animationType: "fade", onRequestClose: function () { return setOpen(false); } }, { children: (0, jsx_runtime_1.jsx)(DropdownWrapper, { children: (0, jsx_runtime_1.jsx)(DropdownContainer, __assign({ style: {
84
+ top: measure === null || measure === void 0 ? void 0 : measure.top,
85
+ left: measure === null || measure === void 0 ? void 0 : measure.left,
86
+ } }, { children: (0, jsx_runtime_1.jsx)(react_native_1.ScrollView, __assign({ nestedScrollEnabled: true }, { children: options.map(function (option, i) { return ((0, jsx_runtime_1.jsxs)(react_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(SelectOption, __assign({ accessible: true, accessibilityRole: "option", onPress: function () { return handleOptionPress(option); } }, { children: (0, jsx_runtime_1.jsx)(Margin_1.Margin, __assign({ vertical: 3 }, { children: (0, jsx_runtime_1.jsx)(P_1.P, { children: (0, jsx_runtime_1.jsx)(Strong_1.Strong, { children: option.label }) }) })) })), i === options.length - 1 ? null : ((0, jsx_runtime_1.jsx)(Divider_1.Divider, { type: "differentiated" }))] }, option.label)); }) })) })) }) }))] })));
87
+ };
88
+ exports.FilterSelect = FilterSelect;
89
+ var templateObject_1, templateObject_2, templateObject_3, templateObject_4;
@@ -0,0 +1 @@
1
+ export { FilterSelect } from './FilterSelect';
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.FilterSelect = void 0;
4
+ var FilterSelect_1 = require("./FilterSelect");
5
+ Object.defineProperty(exports, "FilterSelect", { enumerable: true, get: function () { return FilterSelect_1.FilterSelect; } });
@@ -208,6 +208,10 @@ declare const Col: import("react").ForwardRefExoticComponent<Pick<Omit<{
208
208
  };
209
209
  badge: {
210
210
  variants: {
211
+ neutral: {
212
+ foreground: string;
213
+ background: string;
214
+ };
211
215
  red: {
212
216
  foreground: string;
213
217
  background: string;
@@ -204,6 +204,10 @@ declare const StyledRow: import("styled-components").StyledComponent<typeof impo
204
204
  };
205
205
  badge: {
206
206
  variants: {
207
+ neutral: {
208
+ foreground: string;
209
+ background: string;
210
+ };
207
211
  red: {
208
212
  foreground: string;
209
213
  background: string;
@@ -209,6 +209,10 @@ declare const HintText: import("react").ForwardRefExoticComponent<Pick<Omit<{
209
209
  };
210
210
  badge: {
211
211
  variants: {
212
+ neutral: {
213
+ foreground: string;
214
+ background: string;
215
+ };
212
216
  red: {
213
217
  foreground: string;
214
218
  background: string;
@@ -209,6 +209,10 @@ declare const LabelText: import("react").ForwardRefExoticComponent<Pick<Omit<{
209
209
  };
210
210
  badge: {
211
211
  variants: {
212
+ neutral: {
213
+ foreground: string;
214
+ background: string;
215
+ };
212
216
  red: {
213
217
  foreground: string;
214
218
  background: string;
@@ -202,6 +202,10 @@ export declare const LineThrough: import("styled-components").StyledComponent<ty
202
202
  };
203
203
  badge: {
204
204
  variants: {
205
+ neutral: {
206
+ foreground: string;
207
+ background: string;
208
+ };
205
209
  red: {
206
210
  foreground: string;
207
211
  background: string;
@@ -209,6 +209,10 @@ declare const ListWrapper: import("react").ForwardRefExoticComponent<Pick<Omit<{
209
209
  };
210
210
  badge: {
211
211
  variants: {
212
+ neutral: {
213
+ foreground: string;
214
+ background: string;
215
+ };
212
216
  red: {
213
217
  foreground: string;
214
218
  background: string;
@@ -26,6 +26,7 @@ exports.ListWrapper = exports.Li = exports.Ol = exports.Ul = void 0;
26
26
  var jsx_runtime_1 = require("react/jsx-runtime");
27
27
  var react_1 = require("react");
28
28
  var utils_1 = require("../../utils");
29
+ var P_1 = require("../P");
29
30
  var Stack_1 = require("../Stack");
30
31
  var styled_1 = require("./styled");
31
32
  var Bullet = (0, utils_1.styledComponentWithBreakpoints)(styled_1.StyledBullet);
@@ -42,33 +43,38 @@ var ListNumberedItem = function (_a) {
42
43
  var renderList = function (_a) {
43
44
  var arrayChildren = _a.arrayChildren, _b = _a.level, level = _b === void 0 ? 0 : _b, showBullets = _a.showBullets, listType = _a.listType;
44
45
  return react_1.Children.map(arrayChildren, function (child, index) {
45
- var _a, _b, _c, _d;
46
- // Checking if there are any child types, i.e. nodes
47
- if (
48
- // @ts-ignore
49
- Array.isArray((_a = child === null || child === void 0 ? void 0 : child.props) === null || _a === void 0 ? void 0 : _a.children) &&
50
- // @ts-ignore
51
- (child.type.name === 'Ul' || child.type.name === 'Ol')) {
52
- var lvl = level;
53
- var PADDING = 3;
54
- lvl = lvl + PADDING;
55
- return renderList({
56
- // @ts-ignore It complains that child props doesn't exist. Weird.
57
- arrayChildren: (_b = child === null || child === void 0 ? void 0 : child.props) === null || _b === void 0 ? void 0 : _b.children,
58
- // @ts-ignore It complains that child props doesn't exist. Weird.
59
- listType: (_d = (_c = child === null || child === void 0 ? void 0 : child.type) === null || _c === void 0 ? void 0 : _c.name) === null || _d === void 0 ? void 0 : _d.toLowerCase(),
60
- showBullets: showBullets,
61
- level: lvl,
62
- });
63
- }
64
- else {
65
- if (listType === 'ul') {
66
- return ((0, jsx_runtime_1.jsx)(ListBulletItem, __assign({ showBullets: showBullets, level: level }, { children: child })));
46
+ var _a;
47
+ var lvl = level;
48
+ var PADDING = 3;
49
+ lvl = lvl + PADDING;
50
+ // @ts-ignore doesn't recognise child props.
51
+ var nestedChildren = ((_a = child === null || child === void 0 ? void 0 : child.props) === null || _a === void 0 ? void 0 : _a.children) || {};
52
+ var nestedLists = [];
53
+ var childrenToRender = Array.from(nestedChildren).filter(function (ch) {
54
+ var _a, _b;
55
+ if (typeof ch == 'object' &&
56
+ // @ts-ignore Missing types for React Children
57
+ (((_a = ch === null || ch === void 0 ? void 0 : ch.type) === null || _a === void 0 ? void 0 : _a.name) === 'Ul' || ((_b = ch === null || ch === void 0 ? void 0 : ch.type) === null || _b === void 0 ? void 0 : _b.name) === 'Ol')) {
58
+ nestedLists.push(ch);
59
+ return false;
67
60
  }
68
61
  else {
69
- return ((0, jsx_runtime_1.jsx)(ListNumberedItem, __assign({ level: level, prefix: "".concat(index + 1, ".") }, { children: child })));
62
+ return true;
70
63
  }
71
- }
64
+ });
65
+ return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [childrenToRender.length > 0 && listType === 'ul' ? ((0, jsx_runtime_1.jsx)(ListBulletItem, __assign({ showBullets: showBullets, level: level }, { children: (0, jsx_runtime_1.jsx)(P_1.P, { children: childrenToRender }) }))) : null, childrenToRender.length > 0 && listType === 'ol' ? ((0, jsx_runtime_1.jsx)(ListNumberedItem, __assign({ level: level, prefix: "".concat(index + 1, ".") }, { children: (0, jsx_runtime_1.jsx)(P_1.P, { children: childrenToRender }) }))) : null, nestedLists.length > 0
66
+ ? nestedLists.map(function (obj) {
67
+ var _a, _b, _c, _d;
68
+ return renderList({
69
+ //@ts-ignore
70
+ arrayChildren: (_b = (_a = obj === null || obj === void 0 ? void 0 : obj.props) === null || _a === void 0 ? void 0 : _a.children) !== null && _b !== void 0 ? _b : obj,
71
+ level: lvl,
72
+ showBullets: showBullets,
73
+ //@ts-ignore
74
+ listType: (_d = (_c = obj.type) === null || _c === void 0 ? void 0 : _c.name) === null || _d === void 0 ? void 0 : _d.toLowerCase(),
75
+ });
76
+ })
77
+ : null] }));
72
78
  });
73
79
  };
74
80
  var Li = function (_a) {
@@ -205,6 +205,10 @@ export declare const UlBullet: import("styled-components").StyledComponent<typeo
205
205
  };
206
206
  badge: {
207
207
  variants: {
208
+ neutral: {
209
+ foreground: string;
210
+ background: string;
211
+ };
208
212
  red: {
209
213
  foreground: string;
210
214
  background: string;
@@ -435,6 +439,10 @@ export declare const StyledBullet: import("styled-components").StyledComponent<t
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 StyledUlItem: import("styled-components").StyledComponent<t
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;
@@ -893,6 +905,10 @@ export declare const StyledOlItem: import("styled-components").StyledComponent<t
893
905
  };
894
906
  badge: {
895
907
  variants: {
908
+ neutral: {
909
+ foreground: string;
910
+ background: string;
911
+ };
896
912
  red: {
897
913
  foreground: string;
898
914
  background: string;
@@ -1123,6 +1139,10 @@ export declare const StyledList: import("styled-components").StyledComponent<typ
1123
1139
  };
1124
1140
  badge: {
1125
1141
  variants: {
1142
+ neutral: {
1143
+ foreground: string;
1144
+ background: string;
1145
+ };
1126
1146
  red: {
1127
1147
  foreground: string;
1128
1148
  background: string;
@@ -1351,6 +1371,10 @@ export declare const StyledLi: import("styled-components").StyledComponent<typeo
1351
1371
  };
1352
1372
  badge: {
1353
1373
  variants: {
1374
+ neutral: {
1375
+ foreground: string;
1376
+ background: string;
1377
+ };
1354
1378
  red: {
1355
1379
  foreground: string;
1356
1380
  background: string;
@@ -46,11 +46,11 @@ exports.StyledBullet = styled_native_1.default.Text(function (_a) {
46
46
  var lineHeight = smallAndUp
47
47
  ? core.lineHeight.body.large
48
48
  : core.lineHeight.body.small;
49
- return (0, styled_native_1.css)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n font-family: ", ";\n line-height: ", ";\n color: ", ";\n font-size: ", ";\n margin-right: ", ";\n width: ", ";\n text-align: right;\n "], ["\n font-family: ", ";\n line-height: ", ";\n color: ", ";\n font-size: ", ";\n margin-right: ", ";\n width: ", ";\n text-align: right;\n "])), core.fontFamily.body.native, lineHeight, semantic.message.base, fontSize, core.space[2], core.space[4]);
49
+ return (0, styled_native_1.css)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n font-family: ", ";\n line-height: ", ";\n color: ", ";\n font-size: ", ";\n margin-right: ", ";\n text-align: left;\n "], ["\n font-family: ", ";\n line-height: ", ";\n color: ", ";\n font-size: ", ";\n margin-right: ", ";\n text-align: left;\n "])), core.fontFamily.body.native, lineHeight, semantic.message.base, fontSize, core.space[1]);
50
50
  });
51
51
  exports.StyledUlItem = styled_native_1.default.View(function (_a) {
52
52
  var core = _a.theme.core, level = _a.level;
53
- return (0, styled_native_1.css)(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n flex-direction: row;\n align-items: flex-start;\n justify-content: center;\n padding-left: ", ";\n "], ["\n flex-direction: row;\n align-items: flex-start;\n justify-content: center;\n padding-left: ", ";\n "])), core.space[level]);
53
+ return (0, styled_native_1.css)(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n flex-direction: row;\n align-items: flex-start;\n justify-content: flex-start;\n padding-left: ", ";\n "], ["\n flex-direction: row;\n align-items: flex-start;\n justify-content: flex-start;\n padding-left: ", ";\n "])), core.space[level]);
54
54
  });
55
55
  exports.StyledOlItem = exports.StyledUlItem;
56
56
  exports.StyledList = styled_native_1.default.View(function (_a) {
@@ -216,6 +216,10 @@ declare const StyledMargin: import("styled-components").StyledComponent<typeof i
216
216
  };
217
217
  badge: {
218
218
  variants: {
219
+ neutral: {
220
+ foreground: string;
221
+ background: string;
222
+ };
219
223
  red: {
220
224
  foreground: string;
221
225
  background: string;
@@ -204,6 +204,10 @@ export declare const NavContainer: import("styled-components").StyledComponent<t
204
204
  };
205
205
  badge: {
206
206
  variants: {
207
+ neutral: {
208
+ foreground: string;
209
+ background: string;
210
+ };
207
211
  red: {
208
212
  foreground: string;
209
213
  background: string;
@@ -432,6 +436,10 @@ export declare const ExpandedTitle: import("styled-components").StyledComponent<
432
436
  };
433
437
  badge: {
434
438
  variants: {
439
+ neutral: {
440
+ foreground: string;
441
+ background: string;
442
+ };
435
443
  red: {
436
444
  foreground: string;
437
445
  background: string;
@@ -663,6 +671,10 @@ export declare const CollapsedTitleWrapper: import("styled-components").StyledCo
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;
@@ -891,6 +903,10 @@ export declare const CollapsedTitle: import("styled-components").StyledComponent
891
903
  };
892
904
  badge: {
893
905
  variants: {
906
+ neutral: {
907
+ foreground: string;
908
+ background: string;
909
+ };
894
910
  red: {
895
911
  foreground: string;
896
912
  background: string;
@@ -1119,6 +1135,10 @@ export declare const IconButtonWrapper: import("styled-components").StyledCompon
1119
1135
  };
1120
1136
  badge: {
1121
1137
  variants: {
1138
+ neutral: {
1139
+ foreground: string;
1140
+ background: string;
1141
+ };
1122
1142
  red: {
1123
1143
  foreground: string;
1124
1144
  background: string;
@@ -1347,6 +1367,10 @@ export declare const StyledIconButtonS: import("styled-components").StyledCompon
1347
1367
  };
1348
1368
  badge: {
1349
1369
  variants: {
1370
+ neutral: {
1371
+ foreground: string;
1372
+ background: string;
1373
+ };
1350
1374
  red: {
1351
1375
  foreground: string;
1352
1376
  background: string;
@@ -1577,6 +1601,10 @@ export declare const StyledIconButtonL: import("styled-components").StyledCompon
1577
1601
  };
1578
1602
  badge: {
1579
1603
  variants: {
1604
+ neutral: {
1605
+ foreground: string;
1606
+ background: string;
1607
+ };
1580
1608
  red: {
1581
1609
  foreground: string;
1582
1610
  background: string;
@@ -206,6 +206,10 @@ export declare const NotificationContentBox: import("styled-components").StyledC
206
206
  };
207
207
  badge: {
208
208
  variants: {
209
+ neutral: {
210
+ foreground: string;
211
+ background: string;
212
+ };
209
213
  red: {
210
214
  foreground: string;
211
215
  background: string;
@@ -434,6 +438,10 @@ export declare const NotificationTitleBox: import("styled-components").StyledCom
434
438
  };
435
439
  badge: {
436
440
  variants: {
441
+ neutral: {
442
+ foreground: string;
443
+ background: string;
444
+ };
437
445
  red: {
438
446
  foreground: string;
439
447
  background: string;
@@ -209,6 +209,10 @@ export declare const P: import("react").ForwardRefExoticComponent<Pick<Omit<{
209
209
  };
210
210
  badge: {
211
211
  variants: {
212
+ neutral: {
213
+ foreground: string;
214
+ background: string;
215
+ };
212
216
  red: {
213
217
  foreground: string;
214
218
  background: string;
@@ -203,6 +203,10 @@ export declare const StyledPressable: 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;
@@ -215,6 +215,10 @@ declare const SelectOption: import("styled-components").StyledComponent<typeof i
215
215
  };
216
216
  badge: {
217
217
  variants: {
218
+ neutral: {
219
+ foreground: string;
220
+ background: string;
221
+ };
218
222
  red: {
219
223
  foreground: string;
220
224
  background: string;
@@ -209,6 +209,10 @@ export declare const Small: import("react").ForwardRefExoticComponent<Pick<Omit<
209
209
  };
210
210
  badge: {
211
211
  variants: {
212
+ neutral: {
213
+ foreground: string;
214
+ background: string;
215
+ };
212
216
  red: {
213
217
  foreground: string;
214
218
  background: string;
@@ -202,6 +202,10 @@ export declare const Strong: import("styled-components").StyledComponent<typeof
202
202
  };
203
203
  badge: {
204
204
  variants: {
205
+ neutral: {
206
+ foreground: string;
207
+ background: string;
208
+ };
205
209
  red: {
206
210
  foreground: string;
207
211
  background: string;
@@ -209,6 +209,10 @@ declare const SubLabelText: import("react").ForwardRefExoticComponent<Pick<Omit<
209
209
  };
210
210
  badge: {
211
211
  variants: {
212
+ neutral: {
213
+ foreground: string;
214
+ background: string;
215
+ };
212
216
  red: {
213
217
  foreground: string;
214
218
  background: string;
@@ -52,3 +52,4 @@ export * from './SkeletonCircle';
52
52
  export * from './SkeletonCTA';
53
53
  export * from './SkeletonHeading';
54
54
  export * from './SkeletonText';
55
+ export * from './FilterSelect';
@@ -68,3 +68,4 @@ __exportStar(require("./SkeletonCircle"), exports);
68
68
  __exportStar(require("./SkeletonCTA"), exports);
69
69
  __exportStar(require("./SkeletonHeading"), exports);
70
70
  __exportStar(require("./SkeletonText"), exports);
71
+ __exportStar(require("./FilterSelect"), exports);
@@ -44,7 +44,7 @@ export var ActionCard = function (_a) {
44
44
  paddingRight: !image && !title && onPressCloseButton
45
45
  ? parseInt(core.space[6])
46
46
  : 0,
47
- } }, { children: _jsx(StyledP, __assign({ inverted: inverted }, { children: body })) }))) : (body), buttonTitle && onPressActionButton && !onPressIndicator ? (!ctaVariant ? (_jsx(Action, __assign({ inverted: inverted, onPress: onPressActionButton, testID: "".concat(testID, "-button") }, { children: buttonTitle }))) : (_jsx(Margin, __assign({ top: 4 }, { children: _jsx(CTAButton, __assign({ onPress: onPressActionButton, testID: "".concat(testID, "-button"), variant: ctaVariant }, { children: buttonTitle })) })))) : null] })] })) })), image ? (_jsx(MaskedView, __assign({ style: {
47
+ } }, { children: _jsx(StyledP, __assign({ inverted: inverted }, { children: body })) }))) : (body), buttonTitle && onPressActionButton && !onPressIndicator ? (!ctaVariant ? (_jsx(Margin, __assign({ top: 2 }, { children: _jsx(Action, __assign({ inverted: inverted, inline: true, onPress: onPressActionButton, testID: "".concat(testID, "-button") }, { children: buttonTitle })) }))) : (_jsx(Margin, __assign({ top: 4 }, { children: _jsx(CTAButton, __assign({ onPress: onPressActionButton, testID: "".concat(testID, "-button"), variant: ctaVariant }, { children: buttonTitle })) })))) : null] })] })) })), image ? (_jsx(MaskedView, __assign({ style: {
48
48
  flex: 1,
49
49
  flexDirection: 'row',
50
50
  height: '100%',
@@ -46,11 +46,11 @@ var ActionList = function (_a) {
46
46
  }) })));
47
47
  };
48
48
  var ActionWrapper = function (_a) {
49
- 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"]);
50
- return (_jsx(StyledActionWrapper, __assign({ hasBorder: hasBorder, inverted: inverted, testID: testID }, rest, { children: _jsx(TouchableOpacity, __assign({ activeOpacity: activeOpacity, accessibilityRole: accessibilityRole, onPress: onPress }, { children: _jsx(StyledActionInner, __assign({ fullWidth: fullWidth, inList: rest === null || rest === void 0 ? void 0 : rest.inList }, { children: children })) })) })));
49
+ 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"]);
50
+ return (_jsx(StyledActionWrapper, __assign({ hasBorder: hasBorder, inverted: inverted, testID: testID }, rest, { children: _jsx(TouchableOpacity, __assign({ hitSlop: inline ? 24 : null, activeOpacity: activeOpacity, accessibilityRole: accessibilityRole, onPress: onPress }, { children: _jsx(StyledActionInner, __assign({ fullWidth: fullWidth, inList: inList, inline: inline }, { children: children })) })) })));
51
51
  };
52
52
  var Action = function (_a) {
53
- 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"]);
53
+ 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"]);
54
54
  var smallAndUp = useBreakpoint().smallAndUp;
55
55
  var isBackAction = actionType === 'back';
56
56
  var updatedIconRight = null;
@@ -60,6 +60,6 @@ var Action = function (_a) {
60
60
  if (fullWidth === 'small') {
61
61
  fullWidth = smallAndUp ? 'never' : 'always';
62
62
  }
63
- return (_jsxs(ActionWrapper, __assign({ accessibilityRole: accessibilityRole, fullWidth: fullWidth, inverted: inverted, onPress: onPress, testID: testID }, rest, { children: [isBackAction ? (_jsx(StyledLeftIcon, { inverted: inverted, name: ACTION_TYPES.back, size: 16 })) : null, _jsx(StyledActionText, __assign({ smallAndUp: smallAndUp, inverted: inverted, inList: rest === null || rest === void 0 ? void 0 : rest.inList }, { children: children })), updatedIconRight ? (_jsx(StyledRightIcon, { inverted: inverted, name: updatedIconRight, marginTop: actionType === 'link' ? 1 : 0, size: 16 })) : null] })));
63
+ return (_jsxs(ActionWrapper, __assign({ accessibilityRole: accessibilityRole, fullWidth: fullWidth, inverted: inverted, inline: inline, onPress: onPress, testID: testID }, rest, { children: [isBackAction ? (_jsx(StyledLeftIcon, { inverted: inverted, name: ACTION_TYPES.back, size: 16 })) : null, _jsx(StyledActionText, __assign({ smallAndUp: smallAndUp, inverted: inverted, inList: rest === null || rest === void 0 ? void 0 : rest.inList }, { children: children })), updatedIconRight ? (_jsx(StyledRightIcon, { inverted: inverted, name: updatedIconRight, marginTop: actionType === 'link' ? 1 : 0, size: 16 })) : null] })));
64
64
  };
65
65
  export { ActionList, Action };
@@ -3,34 +3,36 @@ var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cook
3
3
  return cooked;
4
4
  };
5
5
  import styled, { css } from '../../styled.native';
6
+ import { styledComponentWithBreakpoints } from '../../utils';
6
7
  import { Icon } from '../Icon';
7
- import { ListWrapper } from '../List/List';
8
- export var StyledActionList = ListWrapper;
8
+ var StyledList = styled.View(function (_a) {
9
+ var core = _a.theme.core, smallAndUp = _a.smallAndUp;
10
+ return 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]);
11
+ });
12
+ export var StyledActionList = styledComponentWithBreakpoints(StyledList);
9
13
  export var StyledActionWrapper = styled.View(function (_a) {
10
14
  var _b = _a.theme, core = _b.core, semantic = _b.semantic, hasBorder = _a.hasBorder, inverted = _a.inverted;
11
15
  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");
12
16
  });
13
17
  export var StyledActionInner = styled.View(function (_a) {
14
- var fullWidth = _a.fullWidth;
15
- return "\n display: flex;\n flex-direction: row;\n justify-content: ".concat(fullWidth === 'always' ? 'space-between' : 'flex-start', ";\n align-items: center;\n min-height: 44px;\n");
18
+ var fullWidth = _a.fullWidth, inline = _a.inline;
19
+ return 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' : '');
16
20
  });
17
21
  export var StyledActionText = styled.Text(function (_a) {
18
22
  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;
19
23
  var fontSize = smallAndUp
20
24
  ? core.fontSize.body.large
21
25
  : core.fontSize.body.small;
22
- return css(templateObject_1 || (templateObject_1 = __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
26
+ return 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
23
27
  ? semantic.inverted.message.base
24
28
  : semantic.message.base, core.fontFamily.bodyBold.native, fontSize, core.lineHeight.body.small, inList ? 1 : 'none');
25
29
  });
26
30
  export var StyledRightIcon = styled(Icon)(function (_a) {
27
31
  var _b = _a.theme, core = _b.core, semantic = _b.semantic, inverted = _a.inverted, marginTop = _a.marginTop;
28
- return css(templateObject_2 || (templateObject_2 = __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]);
32
+ return 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]);
29
33
  });
30
34
  export var StyledLeftIcon = styled(Icon)(function (_a) {
31
35
  var _b = _a.theme, core = _b.core, semantic = _b.semantic, inverted = _a.inverted;
32
- return css(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n color: ", ";\n margin-right: ", ";\n "], ["\n color: ", ";\n margin-right: ", ";\n "])), inverted
33
- ? semantic.inverted.message.base
34
- : semantic.message.base, core.space[1]);
36
+ return 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]);
35
37
  });
36
- var templateObject_1, templateObject_2, templateObject_3;
38
+ var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5;