@ovotech/element-native 4.4.2 → 4.4.3-canary-a2e1e61-317
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/ActionList/ActionList.js +1 -1
- package/dist/components/Stretch/Stretch.js +1 -1
- package/dist/esm/components/ActionList/ActionList.js +1 -1
- package/dist/esm/components/Stretch/Stretch.js +1 -1
- package/package.json +3 -3
- package/dist/components/Accordion/hooks.d.ts +0 -9
- package/dist/components/Accordion/hooks.js +0 -20
- package/dist/components/Heading/Heading.d.ts +0 -18
- package/dist/components/Heading/Heading.js +0 -104
- package/dist/components/Heading/index.d.ts +0 -1
- package/dist/components/Heading/index.js +0 -8
- package/dist/components/HorizontalCarousel/HorizontalCarousel.d.ts +0 -23
- package/dist/components/HorizontalCarousel/HorizontalCarousel.js +0 -92
- package/dist/components/HorizontalCarousel/NavigationDots.d.ts +0 -8
- package/dist/components/HorizontalCarousel/NavigationDots.js +0 -88
- package/dist/components/HorizontalCarousel/index.d.ts +0 -1
- package/dist/components/HorizontalCarousel/index.js +0 -17
- package/dist/components/Input/CurrencyInput.d.ts +0 -18
- package/dist/components/Input/CurrencyInput.js +0 -37
- package/dist/components/Input/EmailInput.d.ts +0 -12
- package/dist/components/Input/EmailInput.js +0 -19
- package/dist/components/Input/NumberInput.d.ts +0 -12
- package/dist/components/Input/NumberInput.js +0 -19
- package/dist/components/Input/PasswordInput.d.ts +0 -14
- package/dist/components/Input/PasswordInput.js +0 -35
- package/dist/components/Input/PasswordInput.styled.d.ts +0 -274
- package/dist/components/Input/PasswordInput.styled.js +0 -37
- package/dist/components/Input/PasswordVisibilityToggle.d.ts +0 -16
- package/dist/components/Input/PasswordVisibilityToggle.js +0 -39
- package/dist/components/Input/PhoneInput.d.ts +0 -12
- package/dist/components/Input/PhoneInput.js +0 -19
- package/dist/components/Input/TelInput.d.ts +0 -12
- package/dist/components/Input/TelInput.js +0 -41
- package/dist/components/Input/TextInput.d.ts +0 -12
- package/dist/components/Input/TextInput.js +0 -19
- package/dist/components/Input/TextareaInput.d.ts +0 -18
- package/dist/components/Input/TextareaInput.js +0 -67
- package/dist/components/Input/index.d.ts +0 -7
- package/dist/components/Input/index.js +0 -17
- package/dist/components/SegmentedControls/constants.d.ts +0 -28
- package/dist/components/SegmentedControls/constants.js +0 -2
- package/dist/components/SkeletonLoading/Skeleton.d.ts +0 -268
- package/dist/components/SkeletonLoading/Skeleton.js +0 -13
- package/dist/components/SkeletonLoading/SkeletonAnimation.d.ts +0 -10
- package/dist/components/SkeletonLoading/SkeletonAnimation.js +0 -46
- package/dist/components/SkeletonLoading/SkeletonCTA.d.ts +0 -6
- package/dist/components/SkeletonLoading/SkeletonCTA.js +0 -42
- package/dist/components/SkeletonLoading/SkeletonCircle.d.ts +0 -6
- package/dist/components/SkeletonLoading/SkeletonCircle.js +0 -46
- package/dist/components/SkeletonLoading/SkeletonHeading.d.ts +0 -12
- package/dist/components/SkeletonLoading/SkeletonHeading.js +0 -42
- package/dist/components/SkeletonLoading/SkeletonText.d.ts +0 -6
- package/dist/components/SkeletonLoading/SkeletonText.js +0 -48
- package/dist/components/SkeletonLoading/index.d.ts +0 -5
- package/dist/components/SkeletonLoading/index.js +0 -21
- package/dist/components/SummaryList/SummaryList.d.ts +0 -22
- package/dist/components/SummaryList/SummaryList.js +0 -47
- package/dist/components/SummaryList/index.d.ts +0 -1
- package/dist/components/SummaryList/index.js +0 -6
- package/dist/components/Text/Text.d.ts +0 -1436
- package/dist/components/Text/Text.js +0 -93
- package/dist/components/Text/index.d.ts +0 -1
- package/dist/components/Text/index.js +0 -10
- package/dist/components/TextField/CurrencyField.d.ts +0 -15
- package/dist/components/TextField/CurrencyField.js +0 -33
- package/dist/components/TextField/EmailField.d.ts +0 -13
- package/dist/components/TextField/EmailField.js +0 -33
- package/dist/components/TextField/NumberField.d.ts +0 -13
- package/dist/components/TextField/NumberField.js +0 -33
- package/dist/components/TextField/PasswordField.d.ts +0 -15
- package/dist/components/TextField/PasswordField.js +0 -33
- package/dist/components/TextField/PhoneField.d.ts +0 -13
- package/dist/components/TextField/PhoneField.js +0 -33
- package/dist/components/TextField/TelField.d.ts +0 -17
- package/dist/components/TextField/TelField.js +0 -38
- package/dist/components/TextField/TextareaField.d.ts +0 -15
- package/dist/components/TextField/TextareaField.js +0 -33
- package/dist/esm/components/Accordion/hooks.js +0 -16
- package/dist/esm/components/Heading/Heading.js +0 -74
- package/dist/esm/components/Heading/index.js +0 -1
- package/dist/esm/components/HorizontalCarousel/HorizontalCarousel.js +0 -62
- package/dist/esm/components/HorizontalCarousel/NavigationDots.js +0 -61
- package/dist/esm/components/HorizontalCarousel/index.js +0 -1
- package/dist/esm/components/Input/CurrencyInput.js +0 -34
- package/dist/esm/components/Input/EmailInput.js +0 -16
- package/dist/esm/components/Input/NumberInput.js +0 -16
- package/dist/esm/components/Input/PasswordInput.js +0 -32
- package/dist/esm/components/Input/PasswordInput.styled.js +0 -11
- package/dist/esm/components/Input/PasswordVisibilityToggle.js +0 -34
- package/dist/esm/components/Input/PhoneInput.js +0 -16
- package/dist/esm/components/Input/TelInput.js +0 -15
- package/dist/esm/components/Input/TextInput.js +0 -16
- package/dist/esm/components/Input/TextareaInput.js +0 -41
- package/dist/esm/components/Input/index.js +0 -7
- package/dist/esm/components/SegmentedControls/constants.js +0 -1
- package/dist/esm/components/SkeletonLoading/Skeleton.js +0 -7
- package/dist/esm/components/SkeletonLoading/SkeletonAnimation.js +0 -42
- package/dist/esm/components/SkeletonLoading/SkeletonCTA.js +0 -35
- package/dist/esm/components/SkeletonLoading/SkeletonCircle.js +0 -39
- package/dist/esm/components/SkeletonLoading/SkeletonHeading.js +0 -35
- package/dist/esm/components/SkeletonLoading/SkeletonText.js +0 -41
- package/dist/esm/components/SkeletonLoading/index.js +0 -5
- package/dist/esm/components/SummaryList/SummaryList.js +0 -43
- package/dist/esm/components/SummaryList/index.js +0 -1
- package/dist/esm/components/Text/Text.js +0 -66
- package/dist/esm/components/Text/index.js +0 -1
- package/dist/esm/components/TextField/CurrencyField.js +0 -30
- package/dist/esm/components/TextField/EmailField.js +0 -30
- package/dist/esm/components/TextField/NumberField.js +0 -30
- package/dist/esm/components/TextField/PasswordField.js +0 -30
- package/dist/esm/components/TextField/PhoneField.js +0 -30
- package/dist/esm/components/TextField/TelField.js +0 -35
- package/dist/esm/components/TextField/TextareaField.js +0 -30
- package/dist/esm/providers/icons/HidePassword.js +0 -15
- package/dist/esm/providers/icons/Payment.js +0 -15
- package/dist/esm/providers/icons/ShowPassword.js +0 -15
- package/dist/esm/providers/icons/Usage.js +0 -15
- package/dist/esm/theme/create-theme.js +0 -330
- package/dist/esm/theme/theme.js +0 -1
- package/dist/providers/icons/HidePassword.d.ts +0 -2
- package/dist/providers/icons/HidePassword.js +0 -22
- package/dist/providers/icons/Payment.d.ts +0 -2
- package/dist/providers/icons/Payment.js +0 -22
- package/dist/providers/icons/ShowPassword.d.ts +0 -2
- package/dist/providers/icons/ShowPassword.js +0 -22
- package/dist/providers/icons/Usage.d.ts +0 -2
- package/dist/providers/icons/Usage.js +0 -22
- package/dist/theme/create-theme.d.ts +0 -34
- package/dist/theme/create-theme.js +0 -337
- package/dist/theme/theme.d.ts +0 -235
- package/dist/theme/theme.js +0 -2
|
@@ -1,35 +0,0 @@
|
|
|
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 __rest = (this && this.__rest) || function (s, e) {
|
|
14
|
-
var t = {};
|
|
15
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
16
|
-
t[p] = s[p];
|
|
17
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
18
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
19
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
20
|
-
t[p[i]] = s[p[i]];
|
|
21
|
-
}
|
|
22
|
-
return t;
|
|
23
|
-
};
|
|
24
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
-
exports.PasswordInput = void 0;
|
|
26
|
-
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
27
|
-
var react_1 = require("react");
|
|
28
|
-
var Input_1 = require("./Input");
|
|
29
|
-
var PasswordVisibilityToggle_1 = require("./PasswordVisibilityToggle");
|
|
30
|
-
var PasswordInput = (0, react_1.forwardRef)(function (_a, ref) {
|
|
31
|
-
var props = __rest(_a, []);
|
|
32
|
-
var _b = (0, PasswordVisibilityToggle_1.useTogglePasswordVisibility)(), isPasswordVisible = _b.isPasswordVisible, handlePasswordVisibility = _b.handlePasswordVisibility;
|
|
33
|
-
return ((0, jsx_runtime_1.jsx)(Input_1.Input, __assign({}, props, { rightSlot: props.hasVisibilityToggle ? ((0, jsx_runtime_1.jsx)(PasswordVisibilityToggle_1.PasswordVisibilityToggle, { iconName: isPasswordVisible ? 'hide' : 'show', visibilityToggleLabel: isPasswordVisible ? 'Hide password' : 'Show password', handlePasswordVisibility: handlePasswordVisibility })) : null, keyboardType: "default", autoCapitalize: "none", autoCorrect: false, blurOnSubmit: false, secureTextEntry: !isPasswordVisible, ref: ref })));
|
|
34
|
-
});
|
|
35
|
-
exports.PasswordInput = PasswordInput;
|
|
@@ -1,274 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
export declare const StyledPressable: import('styled-components').StyledComponent<
|
|
3
|
-
import('react').ForwardRefExoticComponent<
|
|
4
|
-
import('react-native/types').PressableProps &
|
|
5
|
-
import('react').RefAttributes<import('react-native/types').View>
|
|
6
|
-
>,
|
|
7
|
-
{
|
|
8
|
-
core: {
|
|
9
|
-
radius: Record<'small' | 'medium' | 'large' | 'max', string>;
|
|
10
|
-
borderWidth: Record<'small' | 'medium' | 'large', string>;
|
|
11
|
-
breakpoint: Record<'small' | 'medium' | 'large', string | number>;
|
|
12
|
-
mediaQuery: Record<'small' | 'medium' | 'large', string>;
|
|
13
|
-
space: Record<
|
|
14
|
-
0 | 2 | 1 | 3 | 4 | 10 | 5 | 6 | 7 | 8 | 9 | 11 | 12 | 13 | 14 | 15,
|
|
15
|
-
string
|
|
16
|
-
>;
|
|
17
|
-
transition: Record<'medium' | 'slow' | 'fast', string>;
|
|
18
|
-
opacity: Record<'solid' | 'transparent' | 'translucent', string | number>;
|
|
19
|
-
color: Record<
|
|
20
|
-
'neutral' | 'red' | 'orange' | 'yellow' | 'green' | 'blue',
|
|
21
|
-
{
|
|
22
|
-
lightest: string;
|
|
23
|
-
lighter: string;
|
|
24
|
-
light: string;
|
|
25
|
-
base: string;
|
|
26
|
-
dark: string;
|
|
27
|
-
darker: string;
|
|
28
|
-
darkest: string;
|
|
29
|
-
}
|
|
30
|
-
> & {
|
|
31
|
-
brand: Record<string, string>;
|
|
32
|
-
};
|
|
33
|
-
fontFamily: Record<
|
|
34
|
-
'body' | 'mono' | 'heading' | 'bodyBold',
|
|
35
|
-
{
|
|
36
|
-
native: string;
|
|
37
|
-
web: string;
|
|
38
|
-
}
|
|
39
|
-
>;
|
|
40
|
-
fontWeight: Record<'bold' | 'book' | 'black', string | number>;
|
|
41
|
-
fontSize: Record<
|
|
42
|
-
| 'small'
|
|
43
|
-
| 'body'
|
|
44
|
-
| 'label'
|
|
45
|
-
| 'heading1'
|
|
46
|
-
| 'heading2'
|
|
47
|
-
| 'heading3'
|
|
48
|
-
| 'heading4'
|
|
49
|
-
| 'lead',
|
|
50
|
-
{
|
|
51
|
-
small: string | number;
|
|
52
|
-
large: string | number;
|
|
53
|
-
}
|
|
54
|
-
>;
|
|
55
|
-
lineHeight: Record<
|
|
56
|
-
| 'small'
|
|
57
|
-
| 'body'
|
|
58
|
-
| 'label'
|
|
59
|
-
| 'heading1'
|
|
60
|
-
| 'heading2'
|
|
61
|
-
| 'heading3'
|
|
62
|
-
| 'heading4'
|
|
63
|
-
| 'lead',
|
|
64
|
-
{
|
|
65
|
-
small: string | number;
|
|
66
|
-
large: string | number;
|
|
67
|
-
}
|
|
68
|
-
>;
|
|
69
|
-
letterSpacing: Record<'base' | 'compressed' | 'extraCompressed', number>;
|
|
70
|
-
};
|
|
71
|
-
semantic: {
|
|
72
|
-
surface: Record<'base' | 'cutout' | 'elevated', string>;
|
|
73
|
-
message: Record<
|
|
74
|
-
'base' | 'link' | 'secondary' | 'error' | 'branded',
|
|
75
|
-
string
|
|
76
|
-
>;
|
|
77
|
-
border: Record<'graphic' | 'differentiated' | 'functional', string>;
|
|
78
|
-
focus: Record<'surface' | 'outline' | 'hover', string>;
|
|
79
|
-
inverted: Record<'surface' | 'border', string> & {
|
|
80
|
-
message: Record<'base' | 'link' | 'secondary' | 'branded', string>;
|
|
81
|
-
};
|
|
82
|
-
success: {
|
|
83
|
-
border: string;
|
|
84
|
-
surface: string;
|
|
85
|
-
surfaceEmphasis: string;
|
|
86
|
-
message: string;
|
|
87
|
-
messageOnEmphasis: string;
|
|
88
|
-
};
|
|
89
|
-
warning: {
|
|
90
|
-
border: string;
|
|
91
|
-
surface: string;
|
|
92
|
-
surfaceEmphasis: string;
|
|
93
|
-
message: string;
|
|
94
|
-
messageOnEmphasis: string;
|
|
95
|
-
};
|
|
96
|
-
error: {
|
|
97
|
-
border: string;
|
|
98
|
-
surface: string;
|
|
99
|
-
surfaceEmphasis: string;
|
|
100
|
-
message: string;
|
|
101
|
-
messageOnEmphasis: string;
|
|
102
|
-
};
|
|
103
|
-
info: {
|
|
104
|
-
border: string;
|
|
105
|
-
surface: string;
|
|
106
|
-
surfaceEmphasis: string;
|
|
107
|
-
message: string;
|
|
108
|
-
messageOnEmphasis: string;
|
|
109
|
-
};
|
|
110
|
-
data: Record<
|
|
111
|
-
'branded' | 'gas' | 'electric',
|
|
112
|
-
Record<2 | 1 | 3 | 4, string>
|
|
113
|
-
>;
|
|
114
|
-
};
|
|
115
|
-
component: {
|
|
116
|
-
heading1: {
|
|
117
|
-
fontFamily: string;
|
|
118
|
-
fontWeight: string | number;
|
|
119
|
-
fontSize: {
|
|
120
|
-
small: string | number;
|
|
121
|
-
large: string | number;
|
|
122
|
-
};
|
|
123
|
-
lineHeight: {
|
|
124
|
-
small: string | number;
|
|
125
|
-
large: string | number;
|
|
126
|
-
};
|
|
127
|
-
};
|
|
128
|
-
heading2: {
|
|
129
|
-
fontFamily: string;
|
|
130
|
-
fontWeight: string | number;
|
|
131
|
-
fontSize: {
|
|
132
|
-
small: string | number;
|
|
133
|
-
large: string | number;
|
|
134
|
-
};
|
|
135
|
-
lineHeight: {
|
|
136
|
-
small: string | number;
|
|
137
|
-
large: string | number;
|
|
138
|
-
};
|
|
139
|
-
};
|
|
140
|
-
heading3: {
|
|
141
|
-
fontFamily: string;
|
|
142
|
-
fontWeight: string | number;
|
|
143
|
-
fontSize: {
|
|
144
|
-
small: string | number;
|
|
145
|
-
large: string | number;
|
|
146
|
-
};
|
|
147
|
-
lineHeight: {
|
|
148
|
-
small: string | number;
|
|
149
|
-
large: string | number;
|
|
150
|
-
};
|
|
151
|
-
};
|
|
152
|
-
heading4: {
|
|
153
|
-
fontFamily: string;
|
|
154
|
-
fontWeight: string | number;
|
|
155
|
-
fontSize: {
|
|
156
|
-
small: string | number;
|
|
157
|
-
large: string | number;
|
|
158
|
-
};
|
|
159
|
-
lineHeight: {
|
|
160
|
-
small: string | number;
|
|
161
|
-
large: string | number;
|
|
162
|
-
};
|
|
163
|
-
};
|
|
164
|
-
lead: {
|
|
165
|
-
fontFamily: string;
|
|
166
|
-
fontWeight: string | number;
|
|
167
|
-
fontSize: {
|
|
168
|
-
small: string | number;
|
|
169
|
-
large: string | number;
|
|
170
|
-
};
|
|
171
|
-
lineHeight: {
|
|
172
|
-
small: string | number;
|
|
173
|
-
large: string | number;
|
|
174
|
-
};
|
|
175
|
-
};
|
|
176
|
-
body: {
|
|
177
|
-
fontFamily: string;
|
|
178
|
-
fontWeight: string | number;
|
|
179
|
-
fontSize: {
|
|
180
|
-
small: string | number;
|
|
181
|
-
large: string | number;
|
|
182
|
-
};
|
|
183
|
-
lineHeight: {
|
|
184
|
-
small: string | number;
|
|
185
|
-
large: string | number;
|
|
186
|
-
};
|
|
187
|
-
};
|
|
188
|
-
small: {
|
|
189
|
-
fontFamily: string;
|
|
190
|
-
fontWeight: string | number;
|
|
191
|
-
fontSize: {
|
|
192
|
-
small: string | number;
|
|
193
|
-
large: string | number;
|
|
194
|
-
};
|
|
195
|
-
lineHeight: {
|
|
196
|
-
small: string | number;
|
|
197
|
-
large: string | number;
|
|
198
|
-
};
|
|
199
|
-
};
|
|
200
|
-
label: {
|
|
201
|
-
fontFamily: string;
|
|
202
|
-
fontWeight: string | number;
|
|
203
|
-
fontSize: {
|
|
204
|
-
small: string | number;
|
|
205
|
-
large: string | number;
|
|
206
|
-
};
|
|
207
|
-
lineHeight: {
|
|
208
|
-
small: string | number;
|
|
209
|
-
large: string | number;
|
|
210
|
-
};
|
|
211
|
-
};
|
|
212
|
-
cta: {
|
|
213
|
-
primary: {
|
|
214
|
-
message: string;
|
|
215
|
-
surface: string;
|
|
216
|
-
messageHover: string;
|
|
217
|
-
surfaceHover: string;
|
|
218
|
-
messageFocused: string;
|
|
219
|
-
surfaceFocused: string;
|
|
220
|
-
outlineFocused: string;
|
|
221
|
-
backgroundFocused: string;
|
|
222
|
-
};
|
|
223
|
-
secondary: {
|
|
224
|
-
message: string;
|
|
225
|
-
surface: string;
|
|
226
|
-
messageHover: string;
|
|
227
|
-
surfaceHover: string;
|
|
228
|
-
messageFocused: string;
|
|
229
|
-
surfaceFocused: string;
|
|
230
|
-
outlineFocused: string;
|
|
231
|
-
backgroundFocused: string;
|
|
232
|
-
};
|
|
233
|
-
destructive: {
|
|
234
|
-
message: string;
|
|
235
|
-
surface: string;
|
|
236
|
-
messageHover: string;
|
|
237
|
-
surfaceHover: string;
|
|
238
|
-
messageFocused: string;
|
|
239
|
-
surfaceFocused: string;
|
|
240
|
-
outlineFocused: string;
|
|
241
|
-
backgroundFocused: string;
|
|
242
|
-
};
|
|
243
|
-
};
|
|
244
|
-
badge: {
|
|
245
|
-
variants: {
|
|
246
|
-
red: {
|
|
247
|
-
foreground: string;
|
|
248
|
-
background: string;
|
|
249
|
-
};
|
|
250
|
-
orange: {
|
|
251
|
-
foreground: string;
|
|
252
|
-
background: string;
|
|
253
|
-
};
|
|
254
|
-
yellow: {
|
|
255
|
-
foreground: string;
|
|
256
|
-
background: string;
|
|
257
|
-
};
|
|
258
|
-
green: {
|
|
259
|
-
foreground: string;
|
|
260
|
-
background: string;
|
|
261
|
-
};
|
|
262
|
-
blue: {
|
|
263
|
-
foreground: string;
|
|
264
|
-
background: string;
|
|
265
|
-
};
|
|
266
|
-
};
|
|
267
|
-
};
|
|
268
|
-
};
|
|
269
|
-
},
|
|
270
|
-
{
|
|
271
|
-
focused: boolean;
|
|
272
|
-
},
|
|
273
|
-
never
|
|
274
|
-
>;
|
|
@@ -1,37 +0,0 @@
|
|
|
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 __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
7
|
-
if (k2 === undefined) k2 = k;
|
|
8
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
9
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
10
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
11
|
-
}
|
|
12
|
-
Object.defineProperty(o, k2, desc);
|
|
13
|
-
}) : (function(o, m, k, k2) {
|
|
14
|
-
if (k2 === undefined) k2 = k;
|
|
15
|
-
o[k2] = m[k];
|
|
16
|
-
}));
|
|
17
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
18
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
19
|
-
}) : function(o, v) {
|
|
20
|
-
o["default"] = v;
|
|
21
|
-
});
|
|
22
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
23
|
-
if (mod && mod.__esModule) return mod;
|
|
24
|
-
var result = {};
|
|
25
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
26
|
-
__setModuleDefault(result, mod);
|
|
27
|
-
return result;
|
|
28
|
-
};
|
|
29
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
30
|
-
exports.StyledPressable = void 0;
|
|
31
|
-
var react_native_1 = require("react-native");
|
|
32
|
-
var styled_native_1 = __importStar(require("../../styled.native"));
|
|
33
|
-
exports.StyledPressable = (0, styled_native_1.default)(react_native_1.Pressable)(function (_a) {
|
|
34
|
-
var core = _a.theme.core, focused = _a.focused;
|
|
35
|
-
return (0, styled_native_1.css)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n display: flex;\n align-items: center;\n position: absolute;\n width: ", ";\n z-index: 1;\n top: ", ";\n right: ", ";\n "], ["\n display: flex;\n align-items: center;\n position: absolute;\n width: ", ";\n z-index: 1;\n top: ", ";\n right: ", ";\n "])), core.space[4], focused ? '16px' : '14px', core.space[3]);
|
|
36
|
-
});
|
|
37
|
-
var templateObject_1;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { IconNameExtended } from '../../providers';
|
|
2
|
-
export declare const useTogglePasswordVisibility: () => {
|
|
3
|
-
isPasswordVisible: boolean;
|
|
4
|
-
handlePasswordVisibility: () => void;
|
|
5
|
-
};
|
|
6
|
-
declare type PasswordVisibilityToggleProps = {
|
|
7
|
-
iconName: IconNameExtended;
|
|
8
|
-
visibilityToggleLabel: string;
|
|
9
|
-
handlePasswordVisibility: () => void;
|
|
10
|
-
};
|
|
11
|
-
export declare const PasswordVisibilityToggle: ({
|
|
12
|
-
iconName,
|
|
13
|
-
visibilityToggleLabel,
|
|
14
|
-
handlePasswordVisibility,
|
|
15
|
-
}: PasswordVisibilityToggleProps) => JSX.Element;
|
|
16
|
-
export {};
|
|
@@ -1,39 +0,0 @@
|
|
|
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
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
-
exports.PasswordVisibilityToggle = exports.useTogglePasswordVisibility = void 0;
|
|
15
|
-
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
16
|
-
var react_1 = require("react");
|
|
17
|
-
var Icon_1 = require("../Icon");
|
|
18
|
-
var PasswordInput_styled_1 = require("./PasswordInput.styled");
|
|
19
|
-
var useTogglePasswordVisibility = function () {
|
|
20
|
-
var _a = (0, react_1.useState)(false), isPasswordVisible = _a[0], setIsPasswordVisible = _a[1];
|
|
21
|
-
var handlePasswordVisibility = function () {
|
|
22
|
-
setIsPasswordVisible(!isPasswordVisible);
|
|
23
|
-
};
|
|
24
|
-
return {
|
|
25
|
-
isPasswordVisible: isPasswordVisible,
|
|
26
|
-
handlePasswordVisibility: handlePasswordVisibility,
|
|
27
|
-
};
|
|
28
|
-
};
|
|
29
|
-
exports.useTogglePasswordVisibility = useTogglePasswordVisibility;
|
|
30
|
-
var PasswordVisibilityToggle = function (_a) {
|
|
31
|
-
var iconName = _a.iconName, visibilityToggleLabel = _a.visibilityToggleLabel, handlePasswordVisibility = _a.handlePasswordVisibility;
|
|
32
|
-
var _b = (0, react_1.useState)(false), focused = _b[0], setFocused = _b[1];
|
|
33
|
-
return ((0, jsx_runtime_1.jsx)(PasswordInput_styled_1.StyledPressable, __assign({ testID: "password-input-visibility-toggle", focused: focused, accessibilityRole: "button", accessibilityLabel: visibilityToggleLabel, onPress: handlePasswordVisibility, hitSlop: 16, onFocus: function () {
|
|
34
|
-
setFocused(true);
|
|
35
|
-
}, onBlur: function () {
|
|
36
|
-
setFocused(false);
|
|
37
|
-
} }, { children: (0, jsx_runtime_1.jsx)(Icon_1.Icon, { name: iconName, size: 16, pointerEvents: "none" }) })));
|
|
38
|
-
};
|
|
39
|
-
exports.PasswordVisibilityToggle = PasswordVisibilityToggle;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { TextInput } from 'react-native';
|
|
3
|
-
declare const PhoneInput: import('react').ForwardRefExoticComponent<
|
|
4
|
-
import('react-native/types').TextInputProps & {
|
|
5
|
-
invalid?: boolean | undefined;
|
|
6
|
-
stretch?: boolean | undefined;
|
|
7
|
-
iconLeft?: string | undefined;
|
|
8
|
-
iconRight?: string | undefined;
|
|
9
|
-
rightSlot?: import('react').ReactNode;
|
|
10
|
-
} & import('react').RefAttributes<TextInput>
|
|
11
|
-
>;
|
|
12
|
-
export { PhoneInput };
|
|
@@ -1,19 +0,0 @@
|
|
|
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
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
-
exports.PhoneInput = void 0;
|
|
15
|
-
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
16
|
-
var react_1 = require("react");
|
|
17
|
-
var Input_1 = require("./Input");
|
|
18
|
-
var PhoneInput = (0, react_1.forwardRef)(function (props, ref) { return ((0, jsx_runtime_1.jsx)(Input_1.Input, __assign({}, props, { keyboardType: "phone-pad", autoCapitalize: "none", autoCorrect: false, ref: ref }))); });
|
|
19
|
-
exports.PhoneInput = PhoneInput;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { TextInput } from 'react-native';
|
|
3
|
-
declare const TelInput: React.ForwardRefExoticComponent<
|
|
4
|
-
import('react-native/types').TextInputProps & {
|
|
5
|
-
invalid?: boolean | undefined;
|
|
6
|
-
stretch?: boolean | undefined;
|
|
7
|
-
iconLeft?: (string & {}) | import('../../providers').IconName | undefined;
|
|
8
|
-
iconRight?: (string & {}) | import('../../providers').IconName | undefined;
|
|
9
|
-
rightSlot?: React.ReactNode;
|
|
10
|
-
} & React.RefAttributes<TextInput>
|
|
11
|
-
>;
|
|
12
|
-
export { TelInput };
|
|
@@ -1,41 +0,0 @@
|
|
|
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.TelInput = void 0;
|
|
38
|
-
var react_1 = __importStar(require("react"));
|
|
39
|
-
var Input_1 = require("./Input");
|
|
40
|
-
var TelInput = (0, react_1.forwardRef)(function (props, ref) { return (react_1.default.createElement(Input_1.Input, __assign({}, props, { keyboardType: "phone-pad", autoCapitalize: "none", autoCorrect: false, ref: ref }))); });
|
|
41
|
-
exports.TelInput = TelInput;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { TextInput as RNTextInput } from 'react-native';
|
|
3
|
-
declare const TextInput: import('react').ForwardRefExoticComponent<
|
|
4
|
-
import('react-native/types').TextInputProps & {
|
|
5
|
-
invalid?: boolean | undefined;
|
|
6
|
-
stretch?: boolean | undefined;
|
|
7
|
-
iconLeft?: string | undefined;
|
|
8
|
-
iconRight?: string | undefined;
|
|
9
|
-
rightSlot?: import('react').ReactNode;
|
|
10
|
-
} & import('react').RefAttributes<RNTextInput>
|
|
11
|
-
>;
|
|
12
|
-
export { TextInput };
|
|
@@ -1,19 +0,0 @@
|
|
|
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
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
-
exports.TextInput = void 0;
|
|
15
|
-
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
16
|
-
var react_1 = require("react");
|
|
17
|
-
var Input_1 = require("./Input");
|
|
18
|
-
var TextInput = (0, react_1.forwardRef)(function (props, ref) { return ((0, jsx_runtime_1.jsx)(Input_1.Input, __assign({}, props, { keyboardType: "default", ref: ref }))); });
|
|
19
|
-
exports.TextInput = TextInput;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { TextInput as RNTextInput } from 'react-native';
|
|
3
|
-
import { InputProps } from './Input';
|
|
4
|
-
declare type TextareaInputProps = InputProps & {
|
|
5
|
-
rows?: number;
|
|
6
|
-
};
|
|
7
|
-
declare const TextareaInput: import('react').ForwardRefExoticComponent<
|
|
8
|
-
import('react-native/types').TextInputProps & {
|
|
9
|
-
invalid?: boolean | undefined;
|
|
10
|
-
stretch?: boolean | undefined;
|
|
11
|
-
iconLeft?: string | undefined;
|
|
12
|
-
iconRight?: string | undefined;
|
|
13
|
-
rightSlot?: import('react').ReactNode;
|
|
14
|
-
} & {
|
|
15
|
-
rows?: number | undefined;
|
|
16
|
-
} & import('react').RefAttributes<RNTextInput>
|
|
17
|
-
>;
|
|
18
|
-
export { TextareaInput, TextareaInputProps };
|
|
@@ -1,67 +0,0 @@
|
|
|
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
|
-
var __rest = (this && this.__rest) || function (s, e) {
|
|
41
|
-
var t = {};
|
|
42
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
43
|
-
t[p] = s[p];
|
|
44
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
45
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
46
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
47
|
-
t[p[i]] = s[p[i]];
|
|
48
|
-
}
|
|
49
|
-
return t;
|
|
50
|
-
};
|
|
51
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
52
|
-
exports.TextareaInput = void 0;
|
|
53
|
-
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
54
|
-
var react_1 = require("react");
|
|
55
|
-
var styled_native_1 = __importStar(require("../../styled.native"));
|
|
56
|
-
var utils_1 = require("../../utils");
|
|
57
|
-
var Input_1 = require("./Input");
|
|
58
|
-
var StyledInput = (0, styled_native_1.default)(Input_1.Input)(function (_a) {
|
|
59
|
-
var core = _a.theme.core, rows = _a.rows;
|
|
60
|
-
return (0, styled_native_1.css)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n padding: ", " ", " ", " ", ";\n height: ", "px;\n "], ["\n padding: ", " ", " ", " ", ";\n height: ", "px;\n "])), core.space[3], core.space[2], core.space[2], core.space[2], (0, utils_1.pxToNumber)(core.space[8]) * rows);
|
|
61
|
-
});
|
|
62
|
-
var TextareaInput = (0, react_1.forwardRef)(function (_a, ref) {
|
|
63
|
-
var _b = _a.rows, rows = _b === void 0 ? 3 : _b, rest = __rest(_a, ["rows"]);
|
|
64
|
-
return ((0, jsx_runtime_1.jsx)(StyledInput, __assign({}, rest, { keyboardType: "default", multiline: true, textAlignVertical: "top", rows: rows, ref: ref })));
|
|
65
|
-
});
|
|
66
|
-
exports.TextareaInput = TextareaInput;
|
|
67
|
-
var templateObject_1;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export { CurrencyInput } from './CurrencyInput';
|
|
2
|
-
export { EmailInput } from './EmailInput';
|
|
3
|
-
export { NumberInput } from './NumberInput';
|
|
4
|
-
export { PhoneInput } from './PhoneInput';
|
|
5
|
-
export { TextInput } from './TextInput';
|
|
6
|
-
export { PasswordInput } from './PasswordInput';
|
|
7
|
-
export { TextareaInput } from './TextareaInput';
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.TextareaInput = exports.PasswordInput = exports.TextInput = exports.PhoneInput = exports.NumberInput = exports.EmailInput = exports.CurrencyInput = void 0;
|
|
4
|
-
var CurrencyInput_1 = require("./CurrencyInput");
|
|
5
|
-
Object.defineProperty(exports, "CurrencyInput", { enumerable: true, get: function () { return CurrencyInput_1.CurrencyInput; } });
|
|
6
|
-
var EmailInput_1 = require("./EmailInput");
|
|
7
|
-
Object.defineProperty(exports, "EmailInput", { enumerable: true, get: function () { return EmailInput_1.EmailInput; } });
|
|
8
|
-
var NumberInput_1 = require("./NumberInput");
|
|
9
|
-
Object.defineProperty(exports, "NumberInput", { enumerable: true, get: function () { return NumberInput_1.NumberInput; } });
|
|
10
|
-
var PhoneInput_1 = require("./PhoneInput");
|
|
11
|
-
Object.defineProperty(exports, "PhoneInput", { enumerable: true, get: function () { return PhoneInput_1.PhoneInput; } });
|
|
12
|
-
var TextInput_1 = require("./TextInput");
|
|
13
|
-
Object.defineProperty(exports, "TextInput", { enumerable: true, get: function () { return TextInput_1.TextInput; } });
|
|
14
|
-
var PasswordInput_1 = require("./PasswordInput");
|
|
15
|
-
Object.defineProperty(exports, "PasswordInput", { enumerable: true, get: function () { return PasswordInput_1.PasswordInput; } });
|
|
16
|
-
var TextareaInput_1 = require("./TextareaInput");
|
|
17
|
-
Object.defineProperty(exports, "TextareaInput", { enumerable: true, get: function () { return TextareaInput_1.TextareaInput; } });
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
export type EnergyUseFilters = 'total' | 'electricity' | 'gas';
|
|
2
|
-
export type PeriodFilters = 'day' | 'week' | 'month' | 'year';
|
|
3
|
-
export type MeasurementFilters = 'consumption' | 'cost';
|
|
4
|
-
export type ComparisonFilters = 'similar' | 'previous' | 'none';
|
|
5
|
-
export type MeasurementUnit = '£' | 'kWh';
|
|
6
|
-
export type Filters = {
|
|
7
|
-
ENERGY_USE: {
|
|
8
|
-
key: EnergyUseFilters;
|
|
9
|
-
label: string;
|
|
10
|
-
mainScreenLabel?: string;
|
|
11
|
-
}[];
|
|
12
|
-
PERIOD: {
|
|
13
|
-
key: PeriodFilters;
|
|
14
|
-
label: string;
|
|
15
|
-
mainScreenLabel?: string;
|
|
16
|
-
}[];
|
|
17
|
-
MEASUREMENT: {
|
|
18
|
-
key: MeasurementFilters;
|
|
19
|
-
label: string;
|
|
20
|
-
mainScreenLabel?: string;
|
|
21
|
-
unit: MeasurementUnit;
|
|
22
|
-
}[];
|
|
23
|
-
COMPARISON: {
|
|
24
|
-
key: ComparisonFilters;
|
|
25
|
-
label: string;
|
|
26
|
-
mainScreenLabel?: string;
|
|
27
|
-
}[];
|
|
28
|
-
};
|