@ovotech/element-native 3.5.0 → 3.6.0-canary-0ed6e33-174
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/ActionCard/ActionCard.js +13 -11
- package/dist/components/CTALink/CTALink.d.ts +1 -1
- package/dist/components/DescriptionList/styled.d.ts +214 -222
- package/dist/components/DescriptionList/styled.js +4 -2
- package/dist/components/ErrorSummaryNotification/ErrorSummaryNotification.js +2 -1
- package/dist/components/Label/Label.d.ts +243 -0
- package/dist/components/Label/Label.js +38 -0
- package/dist/components/Label/index.d.ts +1 -0
- package/dist/components/Label/index.js +5 -0
- package/dist/components/Lead/Lead.d.ts +243 -0
- package/dist/components/Lead/Lead.js +38 -0
- package/dist/components/Lead/index.d.ts +1 -0
- package/dist/components/Lead/index.js +5 -0
- package/dist/components/List/List.d.ts +4 -245
- package/dist/components/List/List.js +17 -66
- package/dist/components/List/styled.d.ts +7 -473
- package/dist/components/List/styled.js +9 -26
- package/dist/components/SelectField/Select.js +5 -3
- package/dist/components/Spinner/Spinner.d.ts +8 -0
- package/dist/components/Spinner/Spinner.js +82 -0
- package/dist/components/Spinner/index.d.ts +1 -0
- package/dist/components/Spinner/index.js +5 -0
- package/dist/components/Toggle/Toggle.d.ts +10 -0
- package/dist/components/Toggle/Toggle.js +56 -0
- package/dist/components/Toggle/index.d.ts +1 -0
- package/dist/components/Toggle/index.js +5 -0
- package/dist/components/Toggle/styles.d.ts +939 -0
- package/dist/components/Toggle/styles.js +28 -0
- package/dist/components/index.d.ts +29 -25
- package/dist/components/index.js +29 -25
- package/dist/esm/components/ActionCard/ActionCard.js +13 -11
- package/dist/esm/components/DescriptionList/styled.js +4 -2
- package/dist/esm/components/ErrorSummaryNotification/ErrorSummaryNotification.js +2 -1
- package/dist/esm/components/Label/Label.js +12 -0
- package/dist/esm/components/Label/index.js +1 -0
- package/dist/esm/components/Lead/Lead.js +12 -0
- package/dist/esm/components/Lead/index.js +1 -0
- package/dist/esm/components/List/List.js +19 -67
- package/dist/esm/components/List/styled.js +8 -25
- package/dist/esm/components/SelectField/Select.js +5 -3
- package/dist/esm/components/Spinner/Spinner.js +55 -0
- package/dist/esm/components/Spinner/index.js +1 -0
- package/dist/esm/components/Toggle/Toggle.js +53 -0
- package/dist/esm/components/Toggle/index.js +1 -0
- package/dist/esm/components/Toggle/styles.js +22 -0
- package/dist/esm/components/index.js +29 -25
- 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/package.json +2 -2
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
var __assign = (this && this.__assign) || function () {
|
|
2
|
+
__assign = Object.assign || function(t) {
|
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
+
s = arguments[i];
|
|
5
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
+
t[p] = s[p];
|
|
7
|
+
}
|
|
8
|
+
return t;
|
|
9
|
+
};
|
|
10
|
+
return __assign.apply(this, arguments);
|
|
11
|
+
};
|
|
12
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
13
|
+
var t = {};
|
|
14
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
15
|
+
t[p] = s[p];
|
|
16
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
17
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
18
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
19
|
+
t[p[i]] = s[p[i]];
|
|
20
|
+
}
|
|
21
|
+
return t;
|
|
22
|
+
};
|
|
23
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
24
|
+
import { forwardRef, useContext, useEffect, useRef } from 'react';
|
|
25
|
+
import { Animated, View, } from 'react-native';
|
|
26
|
+
import { ThemeContext } from 'styled-components/native';
|
|
27
|
+
import { HintText } from '../HintText/HintText';
|
|
28
|
+
import { LabelText } from '../LabelText';
|
|
29
|
+
import { StyledToggleDot, StyledToggleInputWrapper, StyledToggleInput, StyledWrapper, } from './styles';
|
|
30
|
+
var Input = function (_a) {
|
|
31
|
+
var checked = _a.checked, labelPosition = _a.labelPosition, testID = _a.testID, rest = __rest(_a, ["checked", "labelPosition", "testID"]);
|
|
32
|
+
var core = useContext(ThemeContext).core;
|
|
33
|
+
var leftVal = useRef(new Animated.Value(checked ? parseInt(core.space[6]) : parseInt(core.space[1]))).current;
|
|
34
|
+
useEffect(function () {
|
|
35
|
+
Animated.timing(leftVal, {
|
|
36
|
+
toValue: checked ? parseInt(core.space[6]) : parseInt(core.space[1]),
|
|
37
|
+
duration: 150,
|
|
38
|
+
useNativeDriver: true,
|
|
39
|
+
}).start();
|
|
40
|
+
}, [checked]);
|
|
41
|
+
return (_jsx(StyledToggleInputWrapper, __assign({ labelPosition: labelPosition }, rest, { children: _jsx(StyledToggleInput, __assign({ checked: checked, testID: testID }, { children: _jsx(StyledToggleDot, { style: {
|
|
42
|
+
transform: [{ translateX: leftVal }],
|
|
43
|
+
}, checked: checked }) })) })));
|
|
44
|
+
};
|
|
45
|
+
export var Toggle = forwardRef(function (_a, ref) {
|
|
46
|
+
var label = _a.label, hint = _a.hint, _b = _a.checked, checked = _b === void 0 ? false : _b,
|
|
47
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
48
|
+
_c = _a.activeOpacity,
|
|
49
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
50
|
+
activeOpacity = _c === void 0 ? 0.8 : _c, testID = _a.testID, _d = _a.labelPosition, labelPosition = _d === void 0 ? 'left' : _d, rest = __rest(_a, ["label", "hint", "checked", "activeOpacity", "testID", "labelPosition"]);
|
|
51
|
+
var hasLabel = label !== undefined;
|
|
52
|
+
return (_jsxs(StyledWrapper, __assign({ ref: ref, accessibilityRole: "checkbox", activeOpacity: activeOpacity, accessibilityState: { checked: checked }, hitSlop: 10, hasLabel: hasLabel, labelPosition: labelPosition }, rest, { children: [hasLabel ? (_jsxs(View, __assign({ style: { flexShrink: 1 } }, { children: [_jsx(LabelText, { children: label }), hint ? _jsx(HintText, { children: hint }) : null] }))) : null, _jsx(Input, { checked: checked, testID: testID, labelPosition: hasLabel ? labelPosition : undefined })] })));
|
|
53
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Toggle } from './Toggle';
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { Animated } from 'react-native';
|
|
2
|
+
import styled from '../../styled.native';
|
|
3
|
+
export var StyledWrapper = styled.TouchableOpacity(function (_a) {
|
|
4
|
+
var core = _a.theme.core, hasLabel = _a.hasLabel, labelPosition = _a.labelPosition;
|
|
5
|
+
return "\n width: ".concat(hasLabel ? '100%' : core.space[11], ";\n display: flex;\n flex-direction: row").concat(labelPosition === 'left' ? '' : '-reverse', ";\n justify-content: space-between;\n position: relative;\n ");
|
|
6
|
+
});
|
|
7
|
+
export var StyledToggleInputWrapper = styled.View(function (_a) {
|
|
8
|
+
var core = _a.theme.core, labelPosition = _a.labelPosition;
|
|
9
|
+
return "\n width: ".concat(core.space[11], ";\n height: ").concat(core.space[6], ";\n ").concat(labelPosition
|
|
10
|
+
? labelPosition === 'left'
|
|
11
|
+
? 'margin-left: 10px;'
|
|
12
|
+
: 'margin-right: 10px;'
|
|
13
|
+
: null, "\n ");
|
|
14
|
+
});
|
|
15
|
+
export var StyledToggleInput = styled.View(function (_a) {
|
|
16
|
+
var core = _a.theme.core, checked = _a.checked;
|
|
17
|
+
return "\n width: ".concat(core.space[11], ";\n height: ").concat(core.space[6], ";\n justify-content: center;\n border-radius: ").concat(core.radius.large, ";\n background: ").concat(checked ? core.color.brand.ovo : core.color.neutral.lighter, ";\n ");
|
|
18
|
+
});
|
|
19
|
+
export var StyledToggleDot = styled(Animated.View)(function (_a) {
|
|
20
|
+
var core = _a.theme.core, checked = _a.checked;
|
|
21
|
+
return "\n position: absolute;\n width: ".concat(core.space[4], ";\n height: ").concat(core.space[4], ";\n border-radius: ").concat(core.space[4], ";\n background-color: ").concat(checked ? core.color.brand.white : core.color.neutral.dark, ";\n");
|
|
22
|
+
});
|
|
@@ -1,55 +1,59 @@
|
|
|
1
1
|
export * from './Accordion';
|
|
2
|
-
export * from './ActionList';
|
|
3
2
|
export * from './ActionCard';
|
|
3
|
+
export * from './ActionList';
|
|
4
4
|
export * from './Badge';
|
|
5
5
|
export * from './Card';
|
|
6
6
|
export * from './Checkbox';
|
|
7
7
|
export * from './CTAButton';
|
|
8
8
|
export * from './CTALink';
|
|
9
|
+
export * from './CurrencyField';
|
|
10
|
+
export * from './CurrencyInput';
|
|
11
|
+
export * from './DataTable';
|
|
9
12
|
export * from './DateField';
|
|
10
13
|
export * from './DescriptionList';
|
|
11
14
|
export * from './Disclosure';
|
|
12
15
|
export * from './Divider';
|
|
16
|
+
export * from './Em';
|
|
17
|
+
export * from './EmailField';
|
|
18
|
+
export * from './EmailInput';
|
|
13
19
|
export * from './ErrorSummaryNotification';
|
|
14
20
|
export * from './Field';
|
|
21
|
+
export * from './FilterSelect';
|
|
15
22
|
export * from './Grid';
|
|
16
|
-
export * from './NavHeader';
|
|
17
23
|
export * from './Heading1';
|
|
18
24
|
export * from './Heading2';
|
|
19
25
|
export * from './Heading3';
|
|
20
26
|
export * from './Heading4';
|
|
21
27
|
export * from './Icon';
|
|
28
|
+
export * from './Label';
|
|
29
|
+
export * from './Lead';
|
|
30
|
+
export * from './LineThrough';
|
|
22
31
|
export * from './List';
|
|
23
32
|
export * from './Margin';
|
|
33
|
+
export * from './NavHeader';
|
|
24
34
|
export * from './Notification';
|
|
25
|
-
export * from './
|
|
26
|
-
export * from './
|
|
27
|
-
export * from './Tabs';
|
|
28
|
-
export * from './TextGroup';
|
|
35
|
+
export * from './NumberField';
|
|
36
|
+
export * from './NumberInput';
|
|
29
37
|
export * from './P';
|
|
30
|
-
export * from './Strong';
|
|
31
|
-
export * from './Small';
|
|
32
|
-
export * from './Em';
|
|
33
|
-
export * from './LineThrough';
|
|
34
|
-
export * from './TextField';
|
|
35
|
-
export * from './TextLink';
|
|
36
|
-
export * from './DataTable';
|
|
37
|
-
export * from './SelectField';
|
|
38
|
-
export * from './CurrencyField';
|
|
39
38
|
export * from './PasswordField';
|
|
40
|
-
export * from './
|
|
41
|
-
export * from './TextareaField';
|
|
42
|
-
export * from './NumberField';
|
|
39
|
+
export * from './PasswordInput';
|
|
43
40
|
export * from './PhoneField';
|
|
44
41
|
export * from './PhoneInput';
|
|
45
|
-
export * from './
|
|
46
|
-
export * from './
|
|
47
|
-
export * from './NumberInput';
|
|
48
|
-
export * from './TextareaInput';
|
|
49
|
-
export * from './PasswordInput';
|
|
50
|
-
export * from './CurrencyInput';
|
|
42
|
+
export * from './Radio';
|
|
43
|
+
export * from './SelectField';
|
|
51
44
|
export * from './SkeletonCircle';
|
|
52
45
|
export * from './SkeletonCTA';
|
|
53
46
|
export * from './SkeletonHeading';
|
|
54
47
|
export * from './SkeletonText';
|
|
55
|
-
export * from './
|
|
48
|
+
export * from './Small';
|
|
49
|
+
export * from './Spinner';
|
|
50
|
+
export * from './Stack';
|
|
51
|
+
export * from './Strong';
|
|
52
|
+
export * from './Tabs';
|
|
53
|
+
export * from './TextareaField';
|
|
54
|
+
export * from './TextareaInput';
|
|
55
|
+
export * from './TextField';
|
|
56
|
+
export * from './TextGroup';
|
|
57
|
+
export * from './TextInput';
|
|
58
|
+
export * from './TextLink';
|
|
59
|
+
export * from './Toggle';
|
|
@@ -11,7 +11,7 @@ var __assign = (this && this.__assign) || function () {
|
|
|
11
11
|
};
|
|
12
12
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
13
|
import { createContext, useContext } from 'react';
|
|
14
|
-
import { Address, Advice, Archive, ArrowDown, ArrowLeft, ArrowRight, ArrowUp, Award, Battery, Cal, CalBook, CaretDown, CaretLeft, CaretRight, CaretUp, Chart, ChartFilled, Check, CheckCircle, ChevronDown, ChevronLeft, ChevronLeftSmall, ChevronLeftSmallFirst, ChevronRight, ChevronRightSmall, ChevronRightSmallLast, ChevronUp, Circle, CloseCircle, Cross, Doc, Dollar, Download, Eco, EcoHome, Edit, ElectricCar, ElectricHome, Electricity, EnergyAdvice, Equals, Euro, Gas, GlobeAddress, Help, Hide, Home, HomeFilled, HydroPower, Info, Link, Logo, Mail, MailOpen, Menu, Message, MessageFilled, Minus, Mobile, NewWindow, PaymentCard, Phone, Plus, Pound, Pricing, Search, Security, Show, SmartHome, SmartMeter, Solar, Star, Sun, Trees, Tune, User, UserFilled, Wallet, WalletFilled, WarmHome, Warning, WebAddress, WindPower, } from './icons';
|
|
14
|
+
import { Address, Advice, Archive, ArrowDown, ArrowLeft, ArrowRight, ArrowUp, Award, Battery, Cal, CalBook, CaretDown, CaretLeft, CaretRight, CaretUp, Chart, ChartFilled, Check, CheckCircle, ChevronDown, ChevronLeft, ChevronLeftSmall, ChevronLeftSmallFirst, ChevronRight, ChevronRightSmall, ChevronRightSmallLast, ChevronUp, Circle, CloseCircle, Cross, Doc, Dollar, Download, Eco, EcoHome, Edit, ElectricCar, ElectricHome, Electricity, EnergyAdvice, Equals, Euro, Gas, GlobeAddress, Help, Hide, Home, HomeFilled, HydroPower, Info, Link, Logo, Mail, MailOpen, Menu, Message, MessageFilled, Minus, Mobile, NewWindow, PaymentCard, Phone, Plus, Pound, Pricing, Search, Security, Show, SmartHome, SmartMeter, Solar, Star, Sun, Torch, Trees, Tune, User, UserFilled, Wallet, WalletFilled, WarmHome, Warning, WebAddress, WindPower, } from './icons';
|
|
15
15
|
var defaultIcons = {
|
|
16
16
|
address: Address,
|
|
17
17
|
advice: Advice,
|
|
@@ -86,6 +86,7 @@ var defaultIcons = {
|
|
|
86
86
|
solar: Solar,
|
|
87
87
|
star: Star,
|
|
88
88
|
sun: Sun,
|
|
89
|
+
torch: Torch,
|
|
89
90
|
trees: Trees,
|
|
90
91
|
tune: Tune,
|
|
91
92
|
user: User,
|
|
@@ -9,6 +9,6 @@ var __assign = (this && this.__assign) || function () {
|
|
|
9
9
|
};
|
|
10
10
|
return __assign.apply(this, arguments);
|
|
11
11
|
};
|
|
12
|
-
import { jsx as _jsx
|
|
13
|
-
import { Path, Svg
|
|
14
|
-
export var Logo = function (props) { return (
|
|
12
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
|
+
import { Path, Svg } from 'react-native-svg';
|
|
14
|
+
export var Logo = function (props) { return (_jsx(Svg, __assign({ viewBox: "0 0 48 48", width: 48, height: 48 }, props, { children: _jsx(Path, { fill: "#0A9828", d: "M14.316 16.104c-1.837-1.34-4.186-2.084-6.733-2.084-2.262 0-4.364.589-6.1 1.66L0 10.143 37.861 0l3.767 14.063a12.37 12.37 0 00-1.054-.045c-2.562 0-4.924.752-6.771 2.109l.697-1.803h-7.311l-2.562 8.771c-.278.95-.565 1.982-.565 1.982l-.557-1.982-2.56-8.77h-7.316l.687 1.779zm22.654 8.023c0-2.05 1.382-3.76 3.606-3.76 1.711 0 2.919 1.013 3.387 2.414l.127.472c.058.28.092.57.092.873 0 2.2-1.484 3.71-3.606 3.71s-3.606-1.51-3.606-3.71zm-25.781 0c0-2.05-1.384-3.76-3.606-3.76-2.224 0-3.61 1.71-3.61 3.76 0 2.2 1.489 3.71 3.61 3.71 2.122 0 3.606-1.51 3.606-3.71zm18.866 1.69c.835 5.104 5.232 8.101 10.521 8.101 2.209 0 4.265-.52 5.972-1.5l1.456 5.44L10.143 48 6.357 33.865c.401.036.814.055 1.226.055 5.27 0 9.659-2.98 10.515-8.057l3 7.753h5.934l3.023-7.8z" }) }))); };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
var __assign = (this && this.__assign) || function () {
|
|
2
|
+
__assign = Object.assign || function(t) {
|
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
+
s = arguments[i];
|
|
5
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
+
t[p] = s[p];
|
|
7
|
+
}
|
|
8
|
+
return t;
|
|
9
|
+
};
|
|
10
|
+
return __assign.apply(this, arguments);
|
|
11
|
+
};
|
|
12
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
|
+
import Svg, { Path } from 'react-native-svg';
|
|
14
|
+
export var Torch = function (props) { return (_jsxs(Svg, __assign({ viewBox: "0 0 16 16" }, props, { children: [_jsx(Path, { fill: "currentColor", d: "M4.728 14V6.714L3.016 5.012 3 1h10v4.012L11.273 6.73v6.173l-1.5-.402L9.37 14H4.726ZM11.5 3.494V2.5H4.506l.004.994h6.99ZM9.773 12.5V6.105l.442-.44.675-.671H5.124l.66.656.442.44v6.41h3.547Z" }), _jsx(Path, { fill: "currentColor", d: "M7 10V8h2v2H7Z" })] }))); };
|
|
@@ -14,5 +14,5 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
14
14
|
exports.Logo = void 0;
|
|
15
15
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
16
16
|
var react_native_svg_1 = require("react-native-svg");
|
|
17
|
-
var Logo = function (props) { return ((0, jsx_runtime_1.
|
|
17
|
+
var Logo = function (props) { return ((0, jsx_runtime_1.jsx)(react_native_svg_1.Svg, __assign({ viewBox: "0 0 48 48", width: 48, height: 48 }, props, { children: (0, jsx_runtime_1.jsx)(react_native_svg_1.Path, { fill: "#0A9828", d: "M14.316 16.104c-1.837-1.34-4.186-2.084-6.733-2.084-2.262 0-4.364.589-6.1 1.66L0 10.143 37.861 0l3.767 14.063a12.37 12.37 0 00-1.054-.045c-2.562 0-4.924.752-6.771 2.109l.697-1.803h-7.311l-2.562 8.771c-.278.95-.565 1.982-.565 1.982l-.557-1.982-2.56-8.77h-7.316l.687 1.779zm22.654 8.023c0-2.05 1.382-3.76 3.606-3.76 1.711 0 2.919 1.013 3.387 2.414l.127.472c.058.28.092.57.092.873 0 2.2-1.484 3.71-3.606 3.71s-3.606-1.51-3.606-3.71zm-25.781 0c0-2.05-1.384-3.76-3.606-3.76-2.224 0-3.61 1.71-3.61 3.76 0 2.2 1.489 3.71 3.61 3.71 2.122 0 3.606-1.51 3.606-3.71zm18.866 1.69c.835 5.104 5.232 8.101 10.521 8.101 2.209 0 4.265-.52 5.972-1.5l1.456 5.44L10.143 48 6.357 33.865c.401.036.814.055 1.226.055 5.27 0 9.659-2.98 10.515-8.057l3 7.753h5.934l3.023-7.8z" }) }))); };
|
|
18
18
|
exports.Logo = Logo;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __assign = (this && this.__assign) || function () {
|
|
3
|
+
__assign = Object.assign || function(t) {
|
|
4
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
+
s = arguments[i];
|
|
6
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
+
t[p] = s[p];
|
|
8
|
+
}
|
|
9
|
+
return t;
|
|
10
|
+
};
|
|
11
|
+
return __assign.apply(this, arguments);
|
|
12
|
+
};
|
|
13
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
14
|
+
if (k2 === undefined) k2 = k;
|
|
15
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
16
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
17
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
18
|
+
}
|
|
19
|
+
Object.defineProperty(o, k2, desc);
|
|
20
|
+
}) : (function(o, m, k, k2) {
|
|
21
|
+
if (k2 === undefined) k2 = k;
|
|
22
|
+
o[k2] = m[k];
|
|
23
|
+
}));
|
|
24
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
25
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
26
|
+
}) : function(o, v) {
|
|
27
|
+
o["default"] = v;
|
|
28
|
+
});
|
|
29
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
30
|
+
if (mod && mod.__esModule) return mod;
|
|
31
|
+
var result = {};
|
|
32
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
33
|
+
__setModuleDefault(result, mod);
|
|
34
|
+
return result;
|
|
35
|
+
};
|
|
36
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37
|
+
exports.Torch = void 0;
|
|
38
|
+
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
39
|
+
var react_native_svg_1 = __importStar(require("react-native-svg"));
|
|
40
|
+
var Torch = function (props) { return ((0, jsx_runtime_1.jsxs)(react_native_svg_1.default, __assign({ viewBox: "0 0 16 16" }, props, { children: [(0, jsx_runtime_1.jsx)(react_native_svg_1.Path, { fill: "currentColor", d: "M4.728 14V6.714L3.016 5.012 3 1h10v4.012L11.273 6.73v6.173l-1.5-.402L9.37 14H4.726ZM11.5 3.494V2.5H4.506l.004.994h6.99ZM9.773 12.5V6.105l.442-.44.675-.671H5.124l.66.656.442.44v6.41h3.547Z" }), (0, jsx_runtime_1.jsx)(react_native_svg_1.Path, { fill: "currentColor", d: "M7 10V8h2v2H7Z" })] }))); };
|
|
41
|
+
exports.Torch = Torch;
|
|
@@ -87,6 +87,7 @@ __exportStar(require("./SmartMeter"), exports);
|
|
|
87
87
|
__exportStar(require("./Solar"), exports);
|
|
88
88
|
__exportStar(require("./Star"), exports);
|
|
89
89
|
__exportStar(require("./Sun"), exports);
|
|
90
|
+
__exportStar(require("./Torch"), exports);
|
|
90
91
|
__exportStar(require("./Trees"), exports);
|
|
91
92
|
__exportStar(require("./Tune"), exports);
|
|
92
93
|
__exportStar(require("./User"), exports);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FunctionComponent } from 'react';
|
|
2
2
|
import { SvgProps } from 'react-native-svg';
|
|
3
|
-
export declare type IconName = 'address' | 'advice' | 'archive' | 'arrow-down' | 'arrow-left' | 'arrow-right' | 'arrow-up' | 'award' | 'battery' | 'cal' | 'cal-book' | 'caret-down' | 'caret-left' | 'caret-right' | 'caret-up' | 'chart' | 'chart-filled' | 'check' | 'check-circle' | 'chevron-down' | 'chevron-left' | 'chevron-left-small' | 'chevron-left-small-first' | 'chevron-right' | 'chevron-right-small' | 'chevron-right-small-last' | 'chevron-up' | 'circle' | 'close-circle' | 'cross' | 'doc' | 'dollar' | 'download' | 'eco' | 'eco-home' | 'edit' | 'electric-car' | 'electric-home' | 'electricity' | 'energy-advice' | 'equals' | 'euro' | 'gas' | 'globe-address' | 'help' | 'hide' | 'home' | 'home-filled' | 'hydro-power' | 'info' | 'link' | 'logo' | 'mail' | 'mail-open' | 'menu' | 'message' | 'message-filled' | 'minus' | 'mobile' | 'new-window' | 'payment-card' | 'phone' | 'plus' | 'pound' | 'pricing' | 'search' | 'security' | 'show' | 'smart-home' | 'smart-meter' | 'solar' | 'star' | 'sun' | 'trees' | 'tune' | 'user' | 'user-filled' | 'wallet' | 'wallet-filled' | 'warm-home' | 'warning' | 'web-address' | 'wind-power';
|
|
3
|
+
export declare type IconName = 'address' | 'advice' | 'archive' | 'arrow-down' | 'arrow-left' | 'arrow-right' | 'arrow-up' | 'award' | 'battery' | 'cal' | 'cal-book' | 'caret-down' | 'caret-left' | 'caret-right' | 'caret-up' | 'chart' | 'chart-filled' | 'check' | 'check-circle' | 'chevron-down' | 'chevron-left' | 'chevron-left-small' | 'chevron-left-small-first' | 'chevron-right' | 'chevron-right-small' | 'chevron-right-small-last' | 'chevron-up' | 'circle' | 'close-circle' | 'cross' | 'doc' | 'dollar' | 'download' | 'eco' | 'eco-home' | 'edit' | 'electric-car' | 'electric-home' | 'electricity' | 'energy-advice' | 'equals' | 'euro' | 'gas' | 'globe-address' | 'help' | 'hide' | 'home' | 'home-filled' | 'hydro-power' | 'info' | 'link' | 'logo' | 'mail' | 'mail-open' | 'menu' | 'message' | 'message-filled' | 'minus' | 'mobile' | 'new-window' | 'payment-card' | 'phone' | 'plus' | 'pound' | 'pricing' | 'search' | 'security' | 'show' | 'smart-home' | 'smart-meter' | 'solar' | 'star' | 'sun' | 'torch' | 'trees' | 'tune' | 'user' | 'user-filled' | 'wallet' | 'wallet-filled' | 'warm-home' | 'warning' | 'web-address' | 'wind-power';
|
|
4
4
|
export declare type IconNameExtended = IconName | string;
|
|
5
5
|
export declare type IconsType = Record<string, FunctionComponent<SvgProps>>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ovotech/element-native",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.6.0-canary-0ed6e33-174",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"module": "dist/esm/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"url": "@ovotech/element"
|
|
14
14
|
},
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"@ovotech/element-core": "^2.2.0",
|
|
16
|
+
"@ovotech/element-core": "^2.2.0-canary-0ed6e33-174",
|
|
17
17
|
"deepmerge": "^4.2.2",
|
|
18
18
|
"lodash.groupby": "^4.6.0"
|
|
19
19
|
},
|