@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,268 +0,0 @@
|
|
|
1
|
-
export declare const Skeleton: import('styled-components').StyledComponent<
|
|
2
|
-
typeof import('react-native').View,
|
|
3
|
-
{
|
|
4
|
-
core: {
|
|
5
|
-
radius: Record<'small' | 'medium' | 'large' | 'max', string>;
|
|
6
|
-
borderWidth: Record<'small' | 'medium' | 'large', string>;
|
|
7
|
-
breakpoint: Record<'small' | 'medium' | 'large', string | number>;
|
|
8
|
-
mediaQuery: Record<'small' | 'medium' | 'large', string>;
|
|
9
|
-
space: Record<
|
|
10
|
-
0 | 2 | 1 | 3 | 4 | 10 | 5 | 6 | 7 | 8 | 9 | 11 | 12 | 13 | 14 | 15,
|
|
11
|
-
string
|
|
12
|
-
>;
|
|
13
|
-
transition: Record<'medium' | 'slow' | 'fast', string>;
|
|
14
|
-
opacity: Record<'solid' | 'transparent' | 'translucent', string | number>;
|
|
15
|
-
color: Record<
|
|
16
|
-
'neutral' | 'red' | 'orange' | 'yellow' | 'green' | 'blue',
|
|
17
|
-
{
|
|
18
|
-
lightest: string;
|
|
19
|
-
lighter: string;
|
|
20
|
-
light: string;
|
|
21
|
-
base: string;
|
|
22
|
-
dark: string;
|
|
23
|
-
darker: string;
|
|
24
|
-
darkest: string;
|
|
25
|
-
}
|
|
26
|
-
> & {
|
|
27
|
-
brand: Record<string, string>;
|
|
28
|
-
};
|
|
29
|
-
fontFamily: Record<
|
|
30
|
-
'body' | 'mono' | 'heading' | 'bodyBold',
|
|
31
|
-
{
|
|
32
|
-
native: string;
|
|
33
|
-
web: string;
|
|
34
|
-
}
|
|
35
|
-
>;
|
|
36
|
-
fontWeight: Record<'bold' | 'book' | 'black', string | number>;
|
|
37
|
-
fontSize: Record<
|
|
38
|
-
| 'small'
|
|
39
|
-
| 'body'
|
|
40
|
-
| 'label'
|
|
41
|
-
| 'heading1'
|
|
42
|
-
| 'heading2'
|
|
43
|
-
| 'heading3'
|
|
44
|
-
| 'heading4'
|
|
45
|
-
| 'lead',
|
|
46
|
-
{
|
|
47
|
-
small: string | number;
|
|
48
|
-
large: string | number;
|
|
49
|
-
}
|
|
50
|
-
>;
|
|
51
|
-
lineHeight: Record<
|
|
52
|
-
| 'small'
|
|
53
|
-
| 'body'
|
|
54
|
-
| 'label'
|
|
55
|
-
| 'heading1'
|
|
56
|
-
| 'heading2'
|
|
57
|
-
| 'heading3'
|
|
58
|
-
| 'heading4'
|
|
59
|
-
| 'lead',
|
|
60
|
-
{
|
|
61
|
-
small: string | number;
|
|
62
|
-
large: string | number;
|
|
63
|
-
}
|
|
64
|
-
>;
|
|
65
|
-
letterSpacing: Record<'base' | 'compressed' | 'extraCompressed', number>;
|
|
66
|
-
};
|
|
67
|
-
semantic: {
|
|
68
|
-
surface: Record<'base' | 'cutout' | 'elevated', string>;
|
|
69
|
-
message: Record<
|
|
70
|
-
'base' | 'link' | 'secondary' | 'error' | 'branded',
|
|
71
|
-
string
|
|
72
|
-
>;
|
|
73
|
-
border: Record<'graphic' | 'differentiated' | 'functional', string>;
|
|
74
|
-
focus: Record<'surface' | 'outline' | 'hover', string>;
|
|
75
|
-
inverted: Record<'surface' | 'border', string> & {
|
|
76
|
-
message: Record<'base' | 'link' | 'secondary' | 'branded', string>;
|
|
77
|
-
};
|
|
78
|
-
success: {
|
|
79
|
-
border: string;
|
|
80
|
-
surface: string;
|
|
81
|
-
surfaceEmphasis: string;
|
|
82
|
-
message: string;
|
|
83
|
-
messageOnEmphasis: string;
|
|
84
|
-
};
|
|
85
|
-
warning: {
|
|
86
|
-
border: string;
|
|
87
|
-
surface: string;
|
|
88
|
-
surfaceEmphasis: string;
|
|
89
|
-
message: string;
|
|
90
|
-
messageOnEmphasis: string;
|
|
91
|
-
};
|
|
92
|
-
error: {
|
|
93
|
-
border: string;
|
|
94
|
-
surface: string;
|
|
95
|
-
surfaceEmphasis: string;
|
|
96
|
-
message: string;
|
|
97
|
-
messageOnEmphasis: string;
|
|
98
|
-
};
|
|
99
|
-
info: {
|
|
100
|
-
border: string;
|
|
101
|
-
surface: string;
|
|
102
|
-
surfaceEmphasis: string;
|
|
103
|
-
message: string;
|
|
104
|
-
messageOnEmphasis: string;
|
|
105
|
-
};
|
|
106
|
-
data: Record<
|
|
107
|
-
'branded' | 'gas' | 'electric',
|
|
108
|
-
Record<2 | 1 | 3 | 4, string>
|
|
109
|
-
>;
|
|
110
|
-
};
|
|
111
|
-
component: {
|
|
112
|
-
heading1: {
|
|
113
|
-
fontFamily: string;
|
|
114
|
-
fontWeight: string | number;
|
|
115
|
-
fontSize: {
|
|
116
|
-
small: string | number;
|
|
117
|
-
large: string | number;
|
|
118
|
-
};
|
|
119
|
-
lineHeight: {
|
|
120
|
-
small: string | number;
|
|
121
|
-
large: string | number;
|
|
122
|
-
};
|
|
123
|
-
};
|
|
124
|
-
heading2: {
|
|
125
|
-
fontFamily: string;
|
|
126
|
-
fontWeight: string | number;
|
|
127
|
-
fontSize: {
|
|
128
|
-
small: string | number;
|
|
129
|
-
large: string | number;
|
|
130
|
-
};
|
|
131
|
-
lineHeight: {
|
|
132
|
-
small: string | number;
|
|
133
|
-
large: string | number;
|
|
134
|
-
};
|
|
135
|
-
};
|
|
136
|
-
heading3: {
|
|
137
|
-
fontFamily: string;
|
|
138
|
-
fontWeight: string | number;
|
|
139
|
-
fontSize: {
|
|
140
|
-
small: string | number;
|
|
141
|
-
large: string | number;
|
|
142
|
-
};
|
|
143
|
-
lineHeight: {
|
|
144
|
-
small: string | number;
|
|
145
|
-
large: string | number;
|
|
146
|
-
};
|
|
147
|
-
};
|
|
148
|
-
heading4: {
|
|
149
|
-
fontFamily: string;
|
|
150
|
-
fontWeight: string | number;
|
|
151
|
-
fontSize: {
|
|
152
|
-
small: string | number;
|
|
153
|
-
large: string | number;
|
|
154
|
-
};
|
|
155
|
-
lineHeight: {
|
|
156
|
-
small: string | number;
|
|
157
|
-
large: string | number;
|
|
158
|
-
};
|
|
159
|
-
};
|
|
160
|
-
lead: {
|
|
161
|
-
fontFamily: string;
|
|
162
|
-
fontWeight: string | number;
|
|
163
|
-
fontSize: {
|
|
164
|
-
small: string | number;
|
|
165
|
-
large: string | number;
|
|
166
|
-
};
|
|
167
|
-
lineHeight: {
|
|
168
|
-
small: string | number;
|
|
169
|
-
large: string | number;
|
|
170
|
-
};
|
|
171
|
-
};
|
|
172
|
-
body: {
|
|
173
|
-
fontFamily: string;
|
|
174
|
-
fontWeight: string | number;
|
|
175
|
-
fontSize: {
|
|
176
|
-
small: string | number;
|
|
177
|
-
large: string | number;
|
|
178
|
-
};
|
|
179
|
-
lineHeight: {
|
|
180
|
-
small: string | number;
|
|
181
|
-
large: string | number;
|
|
182
|
-
};
|
|
183
|
-
};
|
|
184
|
-
small: {
|
|
185
|
-
fontFamily: string;
|
|
186
|
-
fontWeight: string | number;
|
|
187
|
-
fontSize: {
|
|
188
|
-
small: string | number;
|
|
189
|
-
large: string | number;
|
|
190
|
-
};
|
|
191
|
-
lineHeight: {
|
|
192
|
-
small: string | number;
|
|
193
|
-
large: string | number;
|
|
194
|
-
};
|
|
195
|
-
};
|
|
196
|
-
label: {
|
|
197
|
-
fontFamily: string;
|
|
198
|
-
fontWeight: string | number;
|
|
199
|
-
fontSize: {
|
|
200
|
-
small: string | number;
|
|
201
|
-
large: string | number;
|
|
202
|
-
};
|
|
203
|
-
lineHeight: {
|
|
204
|
-
small: string | number;
|
|
205
|
-
large: string | number;
|
|
206
|
-
};
|
|
207
|
-
};
|
|
208
|
-
cta: {
|
|
209
|
-
primary: {
|
|
210
|
-
message: string;
|
|
211
|
-
surface: string;
|
|
212
|
-
messageHover: string;
|
|
213
|
-
surfaceHover: string;
|
|
214
|
-
messageFocused: string;
|
|
215
|
-
surfaceFocused: string;
|
|
216
|
-
outlineFocused: string;
|
|
217
|
-
backgroundFocused: string;
|
|
218
|
-
};
|
|
219
|
-
secondary: {
|
|
220
|
-
message: string;
|
|
221
|
-
surface: string;
|
|
222
|
-
messageHover: string;
|
|
223
|
-
surfaceHover: string;
|
|
224
|
-
messageFocused: string;
|
|
225
|
-
surfaceFocused: string;
|
|
226
|
-
outlineFocused: string;
|
|
227
|
-
backgroundFocused: string;
|
|
228
|
-
};
|
|
229
|
-
destructive: {
|
|
230
|
-
message: string;
|
|
231
|
-
surface: string;
|
|
232
|
-
messageHover: string;
|
|
233
|
-
surfaceHover: string;
|
|
234
|
-
messageFocused: string;
|
|
235
|
-
surfaceFocused: string;
|
|
236
|
-
outlineFocused: string;
|
|
237
|
-
backgroundFocused: string;
|
|
238
|
-
};
|
|
239
|
-
};
|
|
240
|
-
badge: {
|
|
241
|
-
variants: {
|
|
242
|
-
red: {
|
|
243
|
-
foreground: string;
|
|
244
|
-
background: string;
|
|
245
|
-
};
|
|
246
|
-
orange: {
|
|
247
|
-
foreground: string;
|
|
248
|
-
background: string;
|
|
249
|
-
};
|
|
250
|
-
yellow: {
|
|
251
|
-
foreground: string;
|
|
252
|
-
background: string;
|
|
253
|
-
};
|
|
254
|
-
green: {
|
|
255
|
-
foreground: string;
|
|
256
|
-
background: string;
|
|
257
|
-
};
|
|
258
|
-
blue: {
|
|
259
|
-
foreground: string;
|
|
260
|
-
background: string;
|
|
261
|
-
};
|
|
262
|
-
};
|
|
263
|
-
};
|
|
264
|
-
};
|
|
265
|
-
},
|
|
266
|
-
{},
|
|
267
|
-
never
|
|
268
|
-
>;
|
|
@@ -1,13 +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 __importDefault = (this && this.__importDefault) || function (mod) {
|
|
7
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
8
|
-
};
|
|
9
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
-
exports.Skeleton = void 0;
|
|
11
|
-
var styled_native_1 = __importDefault(require("../../styled.native"));
|
|
12
|
-
exports.Skeleton = styled_native_1.default.View(templateObject_1 || (templateObject_1 = __makeTemplateObject([""], [""])));
|
|
13
|
-
var templateObject_1;
|
|
@@ -1,46 +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.SkeletonAnimation = void 0;
|
|
15
|
-
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
16
|
-
var react_1 = require("react");
|
|
17
|
-
var react_native_1 = require("react-native");
|
|
18
|
-
var SkeletonAnimation = function (_a) {
|
|
19
|
-
var children = _a.children, _b = _a.animation, animation = _b === void 0 ? 'pulse' : _b, testID = _a.testID;
|
|
20
|
-
var animationRef = (0, react_1.useRef)(new react_native_1.Animated.Value(0));
|
|
21
|
-
var animationLoop = (0, react_1.useRef)();
|
|
22
|
-
(0, react_1.useEffect)(function () {
|
|
23
|
-
animationLoop.current = react_native_1.Animated.timing(animationRef.current, {
|
|
24
|
-
toValue: 2,
|
|
25
|
-
delay: 400,
|
|
26
|
-
duration: 1500,
|
|
27
|
-
useNativeDriver: !!react_native_1.Platform.select({
|
|
28
|
-
web: false,
|
|
29
|
-
native: true,
|
|
30
|
-
}),
|
|
31
|
-
});
|
|
32
|
-
animationRef.current.setValue(0);
|
|
33
|
-
react_native_1.Animated.loop(animationLoop.current).start();
|
|
34
|
-
}, []);
|
|
35
|
-
return ((0, jsx_runtime_1.jsx)(react_native_1.View, __assign({ accessibilityRole: "none", accessibilityLabel: "loading...", accessible: false, testID: testID }, { children: animation === 'pulse' ? ((0, jsx_runtime_1.jsx)(react_native_1.Animated.View, __assign({ style: [
|
|
36
|
-
{
|
|
37
|
-
height: '100%',
|
|
38
|
-
width: '100%',
|
|
39
|
-
opacity: animationRef.current.interpolate({
|
|
40
|
-
inputRange: [0.25, 1, 2],
|
|
41
|
-
outputRange: [1, 0.25, 1],
|
|
42
|
-
}),
|
|
43
|
-
},
|
|
44
|
-
] }, { children: children }))) : ((0, jsx_runtime_1.jsx)(react_native_1.View, { children: children })) })));
|
|
45
|
-
};
|
|
46
|
-
exports.SkeletonAnimation = SkeletonAnimation;
|
|
@@ -1,42 +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
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
25
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
26
|
-
};
|
|
27
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
28
|
-
exports.SkeletonCTA = void 0;
|
|
29
|
-
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
30
|
-
var styled_native_1 = __importDefault(require("../../styled.native"));
|
|
31
|
-
var Text_1 = require("../Text");
|
|
32
|
-
var Skeleton_1 = require("./Skeleton");
|
|
33
|
-
var SkeletonAnimation_1 = require("./SkeletonAnimation");
|
|
34
|
-
var StyledSkeletonCTA = (0, styled_native_1.default)(Skeleton_1.Skeleton)(function (_a) {
|
|
35
|
-
var core = _a.theme.core, size = _a.size;
|
|
36
|
-
return "\n background-color: ".concat(core.color.neutral.light, ";\n width: ").concat(size, ";\n height: ").concat(core.space[12], ";\n ");
|
|
37
|
-
});
|
|
38
|
-
var SkeletonCTA = function (_a) {
|
|
39
|
-
var _b = _a.size, size = _b === void 0 ? '250px' : _b, rest = __rest(_a, ["size"]);
|
|
40
|
-
return ((0, jsx_runtime_1.jsx)(SkeletonAnimation_1.SkeletonAnimation, { children: (0, jsx_runtime_1.jsx)(StyledSkeletonCTA, __assign({ as: Text_1.P, size: size }, rest)) }));
|
|
41
|
-
};
|
|
42
|
-
exports.SkeletonCTA = SkeletonCTA;
|
|
@@ -1,46 +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
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
25
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
26
|
-
};
|
|
27
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
28
|
-
exports.SkeletonCircle = void 0;
|
|
29
|
-
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
30
|
-
var styled_native_1 = __importDefault(require("../../styled.native"));
|
|
31
|
-
var utils_1 = require("../../utils");
|
|
32
|
-
var Skeleton_1 = require("./Skeleton");
|
|
33
|
-
var SkeletonAnimation_1 = require("./SkeletonAnimation");
|
|
34
|
-
var StyledSkeletonCircleWrapper = (0, styled_native_1.default)(Skeleton_1.Skeleton)(function (_a) {
|
|
35
|
-
var size = _a.size;
|
|
36
|
-
return "width: ".concat(size, "; max-width: 100%;");
|
|
37
|
-
});
|
|
38
|
-
var StyledSkeletonCircle = (0, styled_native_1.default)(Skeleton_1.Skeleton)(function (_a) {
|
|
39
|
-
var core = _a.theme.core, size = _a.size;
|
|
40
|
-
return "\n background-color: ".concat(core.color.neutral.light, ";\n height: 0;\n padding-bottom: 100%;\n border-radius: ").concat((0, utils_1.pxToNumber)(size) / 2, "px;\n ");
|
|
41
|
-
});
|
|
42
|
-
var SkeletonCircle = function (_a) {
|
|
43
|
-
var _b = _a.size, size = _b === void 0 ? '120px' : _b, rest = __rest(_a, ["size"]);
|
|
44
|
-
return ((0, jsx_runtime_1.jsx)(SkeletonAnimation_1.SkeletonAnimation, { children: (0, jsx_runtime_1.jsx)(StyledSkeletonCircleWrapper, __assign({ size: size }, rest, { children: (0, jsx_runtime_1.jsx)(StyledSkeletonCircle, { size: size }) })) }));
|
|
45
|
-
};
|
|
46
|
-
exports.SkeletonCircle = SkeletonCircle;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { ComponentType } from 'react';
|
|
2
|
-
import { ViewProps } from 'react-native';
|
|
3
|
-
declare type Props = ViewProps & {
|
|
4
|
-
size?: string;
|
|
5
|
-
headingComponent?: ComponentType<any>;
|
|
6
|
-
};
|
|
7
|
-
export declare const SkeletonHeading: ({
|
|
8
|
-
size,
|
|
9
|
-
headingComponent: Heading,
|
|
10
|
-
...rest
|
|
11
|
-
}: Props) => JSX.Element;
|
|
12
|
-
export {};
|
|
@@ -1,42 +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
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
25
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
26
|
-
};
|
|
27
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
28
|
-
exports.SkeletonHeading = void 0;
|
|
29
|
-
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
30
|
-
var styled_native_1 = __importDefault(require("../../styled.native"));
|
|
31
|
-
var Heading_1 = require("../Heading");
|
|
32
|
-
var Skeleton_1 = require("./Skeleton");
|
|
33
|
-
var SkeletonAnimation_1 = require("./SkeletonAnimation");
|
|
34
|
-
var StyledSkeletonHeading = (0, styled_native_1.default)(Skeleton_1.Skeleton)(function (_a) {
|
|
35
|
-
var core = _a.theme.core, size = _a.size;
|
|
36
|
-
return "\n background-color: ".concat(core.color.neutral.light, ";\n width: ").concat(size, ";\n ");
|
|
37
|
-
});
|
|
38
|
-
var SkeletonHeading = function (_a) {
|
|
39
|
-
var _b = _a.size, size = _b === void 0 ? '70%' : _b, _c = _a.headingComponent, Heading = _c === void 0 ? Heading_1.Heading3 : _c, rest = __rest(_a, ["size", "headingComponent"]);
|
|
40
|
-
return ((0, jsx_runtime_1.jsx)(SkeletonAnimation_1.SkeletonAnimation, { children: (0, jsx_runtime_1.jsx)(StyledSkeletonHeading, __assign({ "aria-hidden": "true", size: size, as: Heading }, rest, { children: "\u00A0" })) }));
|
|
41
|
-
};
|
|
42
|
-
exports.SkeletonHeading = SkeletonHeading;
|
|
@@ -1,48 +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
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
25
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
26
|
-
};
|
|
27
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
28
|
-
exports.SkeletonText = void 0;
|
|
29
|
-
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
30
|
-
var hooks_1 = require("../../hooks");
|
|
31
|
-
var styled_native_1 = __importDefault(require("../../styled.native"));
|
|
32
|
-
var Text_1 = require("../Text");
|
|
33
|
-
var Skeleton_1 = require("./Skeleton");
|
|
34
|
-
var SkeletonAnimation_1 = require("./SkeletonAnimation");
|
|
35
|
-
var StyledSkeletonText = (0, styled_native_1.default)(Skeleton_1.Skeleton)(function (_a) {
|
|
36
|
-
var core = _a.theme.core, aboveSmallBreakpoint = _a.aboveSmallBreakpoint, short = _a.short;
|
|
37
|
-
return "\n background-color: ".concat(core.color.neutral.light, ";\n margin-bottom: ").concat(core.space[2], ";\n height: ").concat(aboveSmallBreakpoint ? core.fontSize.body.large : core.fontSize.body.small, ";\n\n ").concat(short ? 'width: 50%' : '', ";\n ");
|
|
38
|
-
});
|
|
39
|
-
var SkeletonText = function (_a) {
|
|
40
|
-
var _b = _a.lines, lines = _b === void 0 ? 1 : _b, rest = __rest(_a, ["lines"]);
|
|
41
|
-
var generatedLines = [];
|
|
42
|
-
var smallAndUp = (0, hooks_1.useBreakpoint)().smallAndUp;
|
|
43
|
-
for (var i = 1; i <= lines; i++) {
|
|
44
|
-
generatedLines.push((0, jsx_runtime_1.jsx)(StyledSkeletonText, { short: i === lines, aboveSmallBreakpoint: smallAndUp }, "line-".concat(i)));
|
|
45
|
-
}
|
|
46
|
-
return ((0, jsx_runtime_1.jsx)(Text_1.P, __assign({ as: SkeletonAnimation_1.SkeletonAnimation }, rest, { children: generatedLines })));
|
|
47
|
-
};
|
|
48
|
-
exports.SkeletonText = SkeletonText;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./Skeleton"), exports);
|
|
18
|
-
__exportStar(require("./SkeletonCircle"), exports);
|
|
19
|
-
__exportStar(require("./SkeletonCTA"), exports);
|
|
20
|
-
__exportStar(require("./SkeletonHeading"), exports);
|
|
21
|
-
__exportStar(require("./SkeletonText"), exports);
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { ComponentProps, ReactNode } from 'react';
|
|
2
|
-
import { Dd, Dl } from '../List';
|
|
3
|
-
declare type SummaryListProps = ComponentProps<typeof Dl>;
|
|
4
|
-
/**
|
|
5
|
-
* @deprecated This component has been deprecated and will be removed in a future release.
|
|
6
|
-
* Please use the Description List (List/Dl) component instead.
|
|
7
|
-
* */
|
|
8
|
-
declare const SummaryList: ({
|
|
9
|
-
children,
|
|
10
|
-
...rest
|
|
11
|
-
}: SummaryListProps) => JSX.Element;
|
|
12
|
-
declare type SummaryItemProps = ComponentProps<typeof Dd> & {
|
|
13
|
-
label: ReactNode;
|
|
14
|
-
index?: number;
|
|
15
|
-
};
|
|
16
|
-
declare const SummaryItem: ({
|
|
17
|
-
label,
|
|
18
|
-
children,
|
|
19
|
-
index,
|
|
20
|
-
...rest
|
|
21
|
-
}: SummaryItemProps) => JSX.Element;
|
|
22
|
-
export { SummaryList, SummaryItem };
|
|
@@ -1,47 +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.SummaryItem = exports.SummaryList = void 0;
|
|
26
|
-
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
27
|
-
var react_1 = require("react");
|
|
28
|
-
var List_1 = require("../List");
|
|
29
|
-
/**
|
|
30
|
-
* @deprecated This component has been deprecated and will be removed in a future release.
|
|
31
|
-
* Please use the Description List (List/Dl) component instead.
|
|
32
|
-
* */
|
|
33
|
-
var SummaryList = function (_a) {
|
|
34
|
-
var children = _a.children, rest = __rest(_a, ["children"]);
|
|
35
|
-
console.warn('SummaryList component has been deprecated and will be removed in a future release. Please use the DescriptionList component instead.');
|
|
36
|
-
return ((0, jsx_runtime_1.jsx)(List_1.Dl, __assign({}, rest, { children: react_1.Children.map(children, function (child, index) {
|
|
37
|
-
return (0, react_1.cloneElement)(child, {
|
|
38
|
-
index: index,
|
|
39
|
-
});
|
|
40
|
-
}) })));
|
|
41
|
-
};
|
|
42
|
-
exports.SummaryList = SummaryList;
|
|
43
|
-
var SummaryItem = function (_a) {
|
|
44
|
-
var label = _a.label, children = _a.children, index = _a.index, rest = __rest(_a, ["label", "children", "index"]);
|
|
45
|
-
return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(List_1.Dt, __assign({ style: index === 0 ? { marginTop: 0 } : undefined }, { children: label })), (0, jsx_runtime_1.jsx)(List_1.Dd, __assign({}, rest, { children: children }))] }));
|
|
46
|
-
};
|
|
47
|
-
exports.SummaryItem = SummaryItem;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { SummaryList, SummaryItem } from './SummaryList';
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.SummaryItem = exports.SummaryList = void 0;
|
|
4
|
-
var SummaryList_1 = require("./SummaryList");
|
|
5
|
-
Object.defineProperty(exports, "SummaryList", { enumerable: true, get: function () { return SummaryList_1.SummaryList; } });
|
|
6
|
-
Object.defineProperty(exports, "SummaryItem", { enumerable: true, get: function () { return SummaryList_1.SummaryItem; } });
|