@ovotech/element-native 2.2.0 → 3.0.0-canary-edaf96f-93
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/Accordion/Accordion.d.ts +2 -2
- package/dist/components/Accordion/Accordion.js +22 -25
- package/dist/components/Accordion/Group.js +10 -32
- package/dist/components/Accordion/Icon.js +19 -14
- package/dist/components/Accordion/hooks.d.ts +1 -1
- package/dist/components/Accordion/hooks.js +3 -26
- package/dist/components/Accordion/styles.d.ts +688 -46
- package/dist/components/Accordion/styles.js +56 -49
- package/dist/components/Badge/Badge.d.ts +54 -46
- package/dist/components/Badge/Badge.js +35 -20
- package/dist/components/CTAButton/CTAButton.d.ts +7 -12
- package/dist/components/CTAButton/CTAButton.js +23 -27
- package/dist/components/CTALink/CTALink.d.ts +4 -4
- package/dist/components/CTALink/CTALink.js +5 -27
- package/dist/components/Card/Card.d.ts +47 -45
- package/dist/components/Card/Card.js +5 -25
- package/dist/components/Checkbox/Checkbox.d.ts +3 -3
- package/dist/components/Checkbox/Checkbox.js +18 -57
- package/dist/components/Checkbox/CheckboxField.js +7 -37
- package/dist/components/DataTable/DataTable.d.ts +3 -12
- package/dist/components/DataTable/DataTable.js +11 -98
- package/dist/components/DataTable/TableRow.d.ts +2 -0
- package/dist/components/DataTable/TableRow.js +31 -0
- package/dist/components/DataTable/index.d.ts +2 -0
- package/dist/components/DataTable/index.js +16 -0
- package/dist/components/DataTable/styles.d.ts +2517 -0
- package/dist/components/DataTable/styles.js +77 -0
- package/dist/components/DataTable/types.d.ts +15 -0
- package/dist/components/DataTable/types.js +2 -0
- package/dist/components/DateField/DateField.d.ts +2 -2
- package/dist/components/DateField/DateField.js +9 -28
- package/dist/components/DescriptionList/DescriptionList.js +8 -32
- package/dist/components/DescriptionList/styled.d.ts +50 -44
- package/dist/components/DescriptionList/styled.js +9 -34
- package/dist/components/Disclosure/Disclosure.d.ts +3 -3
- package/dist/components/Disclosure/Disclosure.js +12 -18
- package/dist/components/Divider/Divider.js +4 -7
- package/dist/components/ErrorSummaryNotification/ErrorSummaryNotification.d.ts +1 -1
- package/dist/components/ErrorSummaryNotification/ErrorSummaryNotification.js +6 -28
- package/dist/components/ErrorText/ErrorText.d.ts +45 -39
- package/dist/components/ErrorText/ErrorText.js +7 -4
- package/dist/components/Field/Field.d.ts +2 -2
- package/dist/components/Field/Field.js +18 -49
- package/dist/components/FormGroup/FormGroup.js +2 -3
- package/dist/components/Grid/Col.d.ts +45 -39
- package/dist/components/Grid/Col.js +4 -3
- package/dist/components/Grid/Row.d.ts +47 -41
- package/dist/components/Grid/Row.js +7 -10
- package/dist/components/Heading/Heading.js +21 -32
- package/dist/components/HintText/HintText.d.ts +45 -39
- package/dist/components/HintText/HintText.js +7 -4
- package/dist/components/Icon/Icon.d.ts +3 -4
- package/dist/components/Icon/Icon.js +5 -27
- package/dist/components/Input/CurrencyInput.d.ts +6 -6
- package/dist/components/Input/CurrencyInput.js +3 -25
- package/dist/components/Input/EmailInput.d.ts +6 -6
- package/dist/components/Input/EmailInput.js +3 -25
- package/dist/components/Input/Input.d.ts +8 -8
- package/dist/components/Input/Input.js +26 -32
- package/dist/components/Input/NumberInput.d.ts +6 -6
- package/dist/components/Input/NumberInput.js +3 -25
- package/dist/components/Input/PasswordInput.d.ts +6 -6
- package/dist/components/Input/PasswordInput.js +3 -25
- package/dist/components/Input/PasswordInput.styled.d.ts +45 -39
- package/dist/components/Input/PasswordInput.styled.js +2 -5
- package/dist/components/Input/PasswordVisibilityToggle.js +14 -29
- package/dist/components/Input/PhoneInput.d.ts +10 -0
- package/dist/components/Input/PhoneInput.js +19 -0
- package/dist/components/Input/TextInput.d.ts +6 -6
- package/dist/components/Input/TextInput.js +3 -25
- package/dist/components/Input/TextareaInput.d.ts +6 -6
- package/dist/components/Input/TextareaInput.js +13 -10
- package/dist/components/Input/index.d.ts +1 -1
- package/dist/components/Input/index.js +3 -3
- package/dist/components/LabelText/LabelText.d.ts +45 -39
- package/dist/components/LabelText/LabelText.js +5 -4
- package/dist/components/List/List.d.ts +149 -131
- package/dist/components/List/List.js +30 -44
- package/dist/components/Margin/Margin.d.ts +45 -39
- package/dist/components/Margin/Margin.js +3 -3
- package/dist/components/NavHeader/NavHeader.d.ts +1 -1
- package/dist/components/NavHeader/NavHeader.js +34 -35
- package/dist/components/Notification/Notification.d.ts +104 -100
- package/dist/components/Notification/Notification.js +32 -49
- package/dist/components/Radio/Radio.d.ts +3 -3
- package/dist/components/Radio/Radio.js +16 -61
- package/dist/components/Radio/RadioField.js +11 -41
- package/dist/components/SelectField/Select.d.ts +244 -0
- package/dist/components/SelectField/Select.js +102 -0
- package/dist/components/SelectField/SelectField.d.ts +7 -0
- package/dist/components/SelectField/SelectField.js +33 -0
- package/dist/components/SelectField/index.d.ts +1 -0
- package/dist/components/SelectField/index.js +5 -0
- package/dist/components/SkeletonLoading/Skeleton.d.ts +45 -39
- package/dist/components/SkeletonLoading/SkeletonAnimation.js +22 -33
- package/dist/components/SkeletonLoading/SkeletonCTA.js +4 -5
- package/dist/components/SkeletonLoading/SkeletonCircle.js +4 -6
- package/dist/components/SkeletonLoading/SkeletonHeading.js +4 -5
- package/dist/components/SkeletonLoading/SkeletonText.js +5 -5
- package/dist/components/Stack/Stack.js +6 -28
- package/dist/components/Stretch/Stretch.js +2 -2
- package/dist/components/SubLabelText/SubLabelText.d.ts +45 -39
- package/dist/components/SubLabelText/SubLabelText.js +5 -4
- package/dist/components/SummaryList/SummaryList.js +8 -32
- package/dist/components/Tabs/Tab.d.ts +4 -4
- package/dist/components/Tabs/Tab.js +23 -20
- package/dist/components/Tabs/TabList.d.ts +11 -222
- package/dist/components/Tabs/TabList.js +22 -18
- package/dist/components/Tabs/TabPanel.js +33 -10
- package/dist/components/Tabs/Tabs.d.ts +8 -227
- package/dist/components/Tabs/Tabs.js +26 -23
- package/dist/components/Text/Text.d.ts +234 -204
- package/dist/components/Text/Text.js +17 -20
- package/dist/components/TextField/CurrencyField.d.ts +6 -6
- package/dist/components/TextField/CurrencyField.js +3 -26
- package/dist/components/TextField/EmailField.d.ts +6 -6
- package/dist/components/TextField/EmailField.js +3 -26
- package/dist/components/TextField/NumberField.d.ts +6 -6
- package/dist/components/TextField/NumberField.js +3 -26
- package/dist/components/TextField/PasswordField.d.ts +6 -6
- package/dist/components/TextField/PasswordField.js +3 -26
- package/dist/components/TextField/PhoneField.d.ts +10 -0
- package/dist/components/TextField/PhoneField.js +33 -0
- package/dist/components/TextField/TelField.d.ts +10 -6
- package/dist/components/TextField/TelField.js +9 -27
- package/dist/components/TextField/TextField.d.ts +6 -6
- package/dist/components/TextField/TextField.js +3 -26
- package/dist/components/TextField/TextareaField.d.ts +6 -6
- package/dist/components/TextField/TextareaField.js +3 -26
- package/dist/components/TextField/index.d.ts +1 -0
- package/dist/components/TextField/index.js +3 -1
- package/dist/components/TextLink/TextLink.d.ts +4 -4
- package/dist/components/TextLink/TextLink.js +5 -8
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.js +1 -0
- package/dist/esm/components/Accordion/Accordion.js +25 -28
- package/dist/esm/components/Accordion/Group.js +10 -9
- package/dist/esm/components/Accordion/Icon.js +20 -12
- package/dist/esm/components/Accordion/hooks.js +3 -3
- package/dist/esm/components/Accordion/styles.js +29 -48
- package/dist/esm/components/Badge/Badge.js +35 -17
- package/dist/esm/components/CTAButton/CTAButton.js +24 -28
- package/dist/esm/components/CTALink/CTALink.js +5 -4
- package/dist/esm/components/Card/Card.js +5 -25
- package/dist/esm/components/Checkbox/Checkbox.js +15 -34
- package/dist/esm/components/Checkbox/CheckboxField.js +7 -14
- package/dist/esm/components/DataTable/DataTable.js +10 -74
- package/dist/esm/components/DataTable/TableRow.js +27 -0
- package/dist/esm/components/DataTable/index.js +2 -0
- package/dist/esm/components/DataTable/styles.js +51 -0
- package/dist/esm/components/DataTable/types.js +1 -0
- package/dist/esm/components/DateField/DateField.js +9 -28
- package/dist/esm/components/DescriptionList/DescriptionList.js +8 -9
- package/dist/esm/components/DescriptionList/styled.js +9 -31
- package/dist/esm/components/Disclosure/Disclosure.js +13 -19
- package/dist/esm/components/Divider/Divider.js +4 -4
- package/dist/esm/components/ErrorSummaryNotification/ErrorSummaryNotification.js +6 -5
- package/dist/esm/components/ErrorText/ErrorText.js +7 -4
- package/dist/esm/components/Field/Field.js +18 -26
- package/dist/esm/components/FormGroup/FormGroup.js +2 -3
- package/dist/esm/components/Grid/Col.js +4 -3
- package/dist/esm/components/Grid/Row.js +7 -7
- package/dist/esm/components/Heading/Heading.js +21 -29
- package/dist/esm/components/HintText/HintText.js +7 -4
- package/dist/esm/components/Icon/Icon.js +5 -4
- package/dist/esm/components/Input/CurrencyInput.js +3 -2
- package/dist/esm/components/Input/EmailInput.js +3 -2
- package/dist/esm/components/Input/Input.js +27 -33
- package/dist/esm/components/Input/NumberInput.js +3 -2
- package/dist/esm/components/Input/PasswordInput.js +3 -2
- package/dist/esm/components/Input/PasswordInput.styled.js +2 -5
- package/dist/esm/components/Input/PasswordVisibilityToggle.js +15 -7
- package/dist/esm/components/Input/{TelInput.js → PhoneInput.js} +4 -3
- package/dist/esm/components/Input/TextInput.js +3 -2
- package/dist/esm/components/Input/TextareaInput.js +13 -10
- package/dist/esm/components/Input/index.js +1 -1
- package/dist/esm/components/LabelText/LabelText.js +5 -4
- package/dist/esm/components/List/List.js +31 -45
- package/dist/esm/components/Margin/Margin.js +3 -3
- package/dist/esm/components/NavHeader/NavHeader.js +34 -32
- package/dist/esm/components/Notification/Notification.js +33 -50
- package/dist/esm/components/Radio/Radio.js +16 -38
- package/dist/esm/components/Radio/RadioField.js +11 -18
- package/dist/esm/components/SelectField/Select.js +75 -0
- package/dist/esm/components/SelectField/SelectField.js +29 -0
- package/dist/esm/components/SelectField/index.js +1 -0
- package/dist/esm/components/SkeletonLoading/SkeletonAnimation.js +23 -11
- package/dist/esm/components/SkeletonLoading/SkeletonCTA.js +4 -5
- package/dist/esm/components/SkeletonLoading/SkeletonCircle.js +4 -6
- package/dist/esm/components/SkeletonLoading/SkeletonHeading.js +4 -5
- package/dist/esm/components/SkeletonLoading/SkeletonText.js +5 -5
- package/dist/esm/components/Stack/Stack.js +6 -5
- package/dist/esm/components/Stretch/Stretch.js +2 -2
- package/dist/esm/components/SubLabelText/SubLabelText.js +5 -4
- package/dist/esm/components/SummaryList/SummaryList.js +8 -9
- package/dist/esm/components/Tabs/Tab.js +23 -17
- package/dist/esm/components/Tabs/TabList.js +21 -18
- package/dist/esm/components/Tabs/TabPanel.js +10 -7
- package/dist/esm/components/Tabs/Tabs.js +25 -23
- package/dist/esm/components/Text/Text.js +17 -20
- package/dist/esm/components/TextField/CurrencyField.js +3 -3
- package/dist/esm/components/TextField/EmailField.js +3 -3
- package/dist/esm/components/TextField/NumberField.js +3 -3
- package/dist/esm/components/TextField/PasswordField.js +3 -3
- package/dist/esm/components/TextField/PhoneField.js +30 -0
- package/dist/esm/components/TextField/TelField.js +9 -4
- package/dist/esm/components/TextField/TextField.js +3 -3
- package/dist/esm/components/TextField/TextareaField.js +3 -3
- package/dist/esm/components/TextField/index.js +1 -0
- package/dist/esm/components/TextLink/TextLink.js +5 -8
- package/dist/esm/components/index.js +1 -0
- package/dist/esm/hooks/use-breakpoint.js +4 -4
- package/dist/esm/providers/IconsProvider.js +3 -2
- package/dist/esm/providers/icons/ArrowDown.js +2 -3
- package/dist/esm/providers/icons/ArrowLeft.js +2 -3
- package/dist/esm/providers/icons/ArrowRight.js +2 -3
- package/dist/esm/providers/icons/ArrowUp.js +2 -3
- package/dist/esm/providers/icons/CaretDown.js +2 -3
- package/dist/esm/providers/icons/CaretLeft.js +2 -3
- package/dist/esm/providers/icons/CaretRight.js +2 -3
- package/dist/esm/providers/icons/CaretUp.js +2 -3
- package/dist/esm/providers/icons/Chart.js +2 -3
- package/dist/esm/providers/icons/Check.js +2 -3
- package/dist/esm/providers/icons/ChevronDown.js +2 -3
- package/dist/esm/providers/icons/ChevronLeft.js +2 -3
- package/dist/esm/providers/icons/ChevronLeftSmall.js +2 -3
- package/dist/esm/providers/icons/ChevronLeftSmallFirst.js +2 -3
- package/dist/esm/providers/icons/ChevronRight.js +2 -3
- package/dist/esm/providers/icons/ChevronRightSmall.js +2 -3
- package/dist/esm/providers/icons/ChevronRightSmallLast.js +2 -3
- package/dist/esm/providers/icons/ChevronUp.js +2 -3
- package/dist/esm/providers/icons/Cross.js +2 -3
- package/dist/esm/providers/icons/Dollar.js +2 -3
- package/dist/esm/providers/icons/Download.js +2 -3
- package/dist/esm/providers/icons/Electricity.js +2 -3
- package/dist/esm/providers/icons/Euro.js +2 -3
- package/dist/esm/providers/icons/Gas.js +2 -4
- package/dist/esm/providers/icons/Help.js +2 -3
- package/dist/esm/providers/icons/Hide.js +2 -3
- package/dist/esm/providers/icons/Home.js +2 -3
- package/dist/esm/providers/icons/Info.js +2 -3
- package/dist/esm/providers/icons/Link.js +2 -4
- package/dist/esm/providers/icons/Logo.js +3 -4
- package/dist/esm/providers/icons/Minus.js +2 -3
- package/dist/esm/providers/icons/NewWindow.js +2 -3
- package/dist/esm/providers/icons/PaymentCard.js +2 -3
- package/dist/esm/providers/icons/Plus.js +2 -3
- package/dist/esm/providers/icons/Pound.js +2 -3
- package/dist/esm/providers/icons/Search.js +2 -3
- package/dist/esm/providers/icons/Show.js +2 -3
- package/dist/esm/providers/icons/User.js +2 -3
- package/dist/esm/theme/create-theme.js +0 -153
- package/dist/esm/utils/utils.js +7 -3
- package/dist/hooks/use-breakpoint.js +4 -4
- package/dist/providers/IconsProvider.js +3 -25
- package/dist/providers/icons/ArrowDown.js +2 -6
- package/dist/providers/icons/ArrowLeft.js +2 -6
- package/dist/providers/icons/ArrowRight.js +2 -6
- package/dist/providers/icons/ArrowUp.js +2 -6
- package/dist/providers/icons/CaretDown.js +2 -6
- package/dist/providers/icons/CaretLeft.js +2 -6
- package/dist/providers/icons/CaretRight.js +2 -6
- package/dist/providers/icons/CaretUp.js +2 -6
- package/dist/providers/icons/Chart.js +2 -6
- package/dist/providers/icons/Check.js +2 -6
- package/dist/providers/icons/ChevronDown.js +2 -6
- package/dist/providers/icons/ChevronLeft.js +2 -6
- package/dist/providers/icons/ChevronLeftSmall.js +2 -6
- package/dist/providers/icons/ChevronLeftSmallFirst.js +2 -6
- package/dist/providers/icons/ChevronRight.js +2 -6
- package/dist/providers/icons/ChevronRightSmall.js +2 -6
- package/dist/providers/icons/ChevronRightSmallLast.js +2 -6
- package/dist/providers/icons/ChevronUp.js +2 -6
- package/dist/providers/icons/Cross.js +2 -6
- package/dist/providers/icons/Dollar.js +2 -6
- package/dist/providers/icons/Download.js +2 -6
- package/dist/providers/icons/Electricity.js +2 -6
- package/dist/providers/icons/Euro.js +2 -6
- package/dist/providers/icons/Gas.js +2 -7
- package/dist/providers/icons/Help.js +2 -6
- package/dist/providers/icons/Hide.js +2 -6
- package/dist/providers/icons/Home.js +2 -6
- package/dist/providers/icons/Info.js +2 -6
- package/dist/providers/icons/Link.js +2 -7
- package/dist/providers/icons/Logo.js +2 -6
- package/dist/providers/icons/Minus.js +2 -6
- package/dist/providers/icons/NewWindow.js +2 -6
- package/dist/providers/icons/PaymentCard.js +2 -6
- package/dist/providers/icons/Plus.js +2 -6
- package/dist/providers/icons/Pound.js +2 -6
- package/dist/providers/icons/Search.js +2 -6
- package/dist/providers/icons/Show.js +2 -6
- package/dist/providers/icons/User.js +2 -6
- package/dist/styled.native.d.ts +270 -234
- package/dist/theme/create-theme.js +0 -153
- package/dist/theme/index.d.ts +45 -39
- package/dist/theme/theme.d.ts +0 -90
- package/dist/utils/utils.d.ts +5 -4
- package/dist/utils/utils.js +8 -26
- package/package.json +6 -5
- package/dist/components/Input/TelInput.d.ts +0 -10
- package/dist/components/Input/TelInput.js +0 -41
|
@@ -210,73 +210,6 @@ function createTheme(customTheme, additional) {
|
|
|
210
210
|
borderColor: colors.borderMuted,
|
|
211
211
|
padding: [space[3], space[6], space[9]],
|
|
212
212
|
},
|
|
213
|
-
badge: {
|
|
214
|
-
fontFamily: fonts.bold,
|
|
215
|
-
lineHeight: lineHeights.standard,
|
|
216
|
-
paddingHorizontal: space[2],
|
|
217
|
-
borderRadius: radii.small,
|
|
218
|
-
fontSize: responsiveFontSizes.body,
|
|
219
|
-
variants: {
|
|
220
|
-
default: {
|
|
221
|
-
background: colors.primaryMuted,
|
|
222
|
-
foreground: colors.primaryAlt,
|
|
223
|
-
},
|
|
224
|
-
error: {
|
|
225
|
-
background: colors.errorMuted,
|
|
226
|
-
foreground: colors.errorAlt,
|
|
227
|
-
},
|
|
228
|
-
success: {
|
|
229
|
-
background: colors.successMuted,
|
|
230
|
-
foreground: colors.successAlt,
|
|
231
|
-
},
|
|
232
|
-
info: {
|
|
233
|
-
background: colors.infoMuted,
|
|
234
|
-
foreground: colors.infoAlt,
|
|
235
|
-
},
|
|
236
|
-
warning: {
|
|
237
|
-
background: colors.warningMuted,
|
|
238
|
-
foreground: colors.warningAlt,
|
|
239
|
-
},
|
|
240
|
-
},
|
|
241
|
-
},
|
|
242
|
-
cta: {
|
|
243
|
-
fontSize: responsiveFontSizes.body,
|
|
244
|
-
fontFamily: fonts.bold,
|
|
245
|
-
lineHeight: lineHeights.standard,
|
|
246
|
-
paddingVertical: space[2],
|
|
247
|
-
paddingHorizontal: space[3],
|
|
248
|
-
borderRadius: radii.small,
|
|
249
|
-
borderWidth: borderWidths.standard,
|
|
250
|
-
iconGap: space[1],
|
|
251
|
-
minHeight: space[11],
|
|
252
|
-
variants: {
|
|
253
|
-
primary: {
|
|
254
|
-
background: colors.primary,
|
|
255
|
-
foreground: colors.primaryContrast,
|
|
256
|
-
border: colors.primary,
|
|
257
|
-
},
|
|
258
|
-
secondary: {
|
|
259
|
-
background: colors.primaryContrast,
|
|
260
|
-
foreground: colors.primary,
|
|
261
|
-
border: colors.primary,
|
|
262
|
-
},
|
|
263
|
-
destructive: {
|
|
264
|
-
background: colors.error,
|
|
265
|
-
foreground: colors.errorContrast,
|
|
266
|
-
border: colors.error,
|
|
267
|
-
},
|
|
268
|
-
missionPrimary: {
|
|
269
|
-
background: colors.mission,
|
|
270
|
-
foreground: colors.missionContrast,
|
|
271
|
-
border: colors.mission,
|
|
272
|
-
},
|
|
273
|
-
missionSecondary: {
|
|
274
|
-
background: colors.primaryContrast,
|
|
275
|
-
foreground: colors.primary,
|
|
276
|
-
border: colors.primary,
|
|
277
|
-
},
|
|
278
|
-
},
|
|
279
|
-
},
|
|
280
213
|
checkbox: {
|
|
281
214
|
touchSize: space[11],
|
|
282
215
|
size: space[6],
|
|
@@ -291,41 +224,6 @@ function createTheme(customTheme, additional) {
|
|
|
291
224
|
checkColor: colors.info,
|
|
292
225
|
errorColor: colors.error,
|
|
293
226
|
},
|
|
294
|
-
notification: {
|
|
295
|
-
borderRadius: radii.small,
|
|
296
|
-
borderWidth: borderWidths.heavy,
|
|
297
|
-
borderColor: colors.error,
|
|
298
|
-
background: colors.errorMuted,
|
|
299
|
-
paddingX: [space[2], space[2]],
|
|
300
|
-
paddingY: [space[3], space[6]],
|
|
301
|
-
dismiss: {
|
|
302
|
-
touchSize: space[6],
|
|
303
|
-
size: space[4],
|
|
304
|
-
icon: 'cross',
|
|
305
|
-
},
|
|
306
|
-
variants: {
|
|
307
|
-
error: {
|
|
308
|
-
borderColor: colors.errorMuted,
|
|
309
|
-
background: colors.errorMuted,
|
|
310
|
-
textColor: colors.errorAlt,
|
|
311
|
-
},
|
|
312
|
-
success: {
|
|
313
|
-
borderColor: colors.successMuted,
|
|
314
|
-
background: colors.successMuted,
|
|
315
|
-
textColor: colors.successAlt,
|
|
316
|
-
},
|
|
317
|
-
info: {
|
|
318
|
-
borderColor: colors.infoMuted,
|
|
319
|
-
background: colors.infoMuted,
|
|
320
|
-
textColor: colors.infoAlt,
|
|
321
|
-
},
|
|
322
|
-
warning: {
|
|
323
|
-
borderColor: colors.warningMuted,
|
|
324
|
-
background: colors.warningMuted,
|
|
325
|
-
textColor: colors.warningAlt,
|
|
326
|
-
},
|
|
327
|
-
},
|
|
328
|
-
},
|
|
329
227
|
text: {
|
|
330
228
|
fontFamily: fonts.body,
|
|
331
229
|
lineHeight: 1,
|
|
@@ -426,33 +324,6 @@ function createTheme(customTheme, additional) {
|
|
|
426
324
|
iconGap: [space[1], space[2]],
|
|
427
325
|
panelGap: [space[2], space[3]],
|
|
428
326
|
},
|
|
429
|
-
dataTable: {
|
|
430
|
-
borderWidth: borderWidths.standard,
|
|
431
|
-
borderRadius: radii.small,
|
|
432
|
-
borderColor: colors.canvasMuted,
|
|
433
|
-
responsivePadding: {
|
|
434
|
-
vertical: [space[2], space[3]],
|
|
435
|
-
horizontal: [space[1], space[1]],
|
|
436
|
-
},
|
|
437
|
-
tableHeader: {
|
|
438
|
-
color: colors.heading,
|
|
439
|
-
backgroundColor: colors.canvas,
|
|
440
|
-
borderWidth: borderWidths.standard,
|
|
441
|
-
borderColor: colors.border,
|
|
442
|
-
fontFamily: fonts.bold,
|
|
443
|
-
},
|
|
444
|
-
tableCaption: {
|
|
445
|
-
color: colors.heading,
|
|
446
|
-
fontFamily: fonts.bold,
|
|
447
|
-
},
|
|
448
|
-
tableCell: {
|
|
449
|
-
color: colors.body,
|
|
450
|
-
},
|
|
451
|
-
tableRow: {
|
|
452
|
-
backgroundColor: colors.canvas,
|
|
453
|
-
stripeColor: colors.canvasMuted,
|
|
454
|
-
},
|
|
455
|
-
},
|
|
456
327
|
accordion: {
|
|
457
328
|
header: {
|
|
458
329
|
color: colors.primary,
|
|
@@ -461,30 +332,6 @@ function createTheme(customTheme, additional) {
|
|
|
461
332
|
iconGap: space[3],
|
|
462
333
|
},
|
|
463
334
|
},
|
|
464
|
-
tabs: {
|
|
465
|
-
tab: {
|
|
466
|
-
borderTopWidth: borderWidths.heavy,
|
|
467
|
-
borderBottomWidth: borderWidths.heavy,
|
|
468
|
-
borderColor: colors.canvas,
|
|
469
|
-
fontSize: responsiveFontSizes.body,
|
|
470
|
-
fontFamily: fonts.bold,
|
|
471
|
-
lineHeight: lineHeights.standard,
|
|
472
|
-
paddingHorizontal: [space[4], space[4]],
|
|
473
|
-
paddingVertical: [space[3], space[3]],
|
|
474
|
-
active: {
|
|
475
|
-
borderColor: colors.primary,
|
|
476
|
-
foregroundColor: colors.primary,
|
|
477
|
-
backgroundColor: colors.canvas,
|
|
478
|
-
},
|
|
479
|
-
inactive: {
|
|
480
|
-
foregroundColor: colors.heading,
|
|
481
|
-
backgroundColor: colors.canvas,
|
|
482
|
-
},
|
|
483
|
-
hover: {
|
|
484
|
-
foregroundColor: colors.primaryAlt,
|
|
485
|
-
},
|
|
486
|
-
},
|
|
487
|
-
},
|
|
488
335
|
}, theme, mergeOptions);
|
|
489
336
|
}
|
|
490
337
|
exports.createTheme = createTheme;
|
package/dist/theme/index.d.ts
CHANGED
|
@@ -5,10 +5,10 @@ export declare const theme: import("./theme").Theme & {
|
|
|
5
5
|
borderWidth: Record<"small" | "medium" | "large", string>;
|
|
6
6
|
breakpoint: Record<"small" | "medium" | "large", string | number>;
|
|
7
7
|
mediaQuery: Record<"small" | "medium" | "large", string>;
|
|
8
|
-
space: Record<0 | 2 | 1 |
|
|
8
|
+
space: Record<0 | 2 | 1 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15, string>;
|
|
9
9
|
transition: Record<"medium" | "slow" | "fast", string>;
|
|
10
|
-
opacity: Record<"
|
|
11
|
-
color: Record<"
|
|
10
|
+
opacity: Record<"solid" | "transparent" | "translucent", string | number>;
|
|
11
|
+
color: Record<"neutral" | "red" | "orange" | "yellow" | "green" | "blue", {
|
|
12
12
|
lightest: string;
|
|
13
13
|
lighter: string;
|
|
14
14
|
light: string;
|
|
@@ -24,71 +24,53 @@ export declare const theme: import("./theme").Theme & {
|
|
|
24
24
|
web: string;
|
|
25
25
|
}>;
|
|
26
26
|
fontWeight: Record<"bold" | "book" | "black", string | number>;
|
|
27
|
-
fontSize: Record<"small" | "body" | "label" | "
|
|
27
|
+
fontSize: Record<"small" | "body" | "label" | "lead" | "heading1" | "heading2" | "heading3" | "heading4", {
|
|
28
28
|
small: string | number;
|
|
29
29
|
large: string | number;
|
|
30
30
|
}>;
|
|
31
|
-
lineHeight: Record<"small" | "body" | "label" | "
|
|
31
|
+
lineHeight: Record<"small" | "body" | "label" | "lead" | "heading1" | "heading2" | "heading3" | "heading4", {
|
|
32
32
|
small: string | number;
|
|
33
33
|
large: string | number;
|
|
34
34
|
}>;
|
|
35
|
+
letterSpacing: Record<"base" | "compressed" | "extraCompressed", number>;
|
|
35
36
|
};
|
|
36
37
|
semantic: {
|
|
37
38
|
surface: Record<"base" | "cutout" | "elevated", string>;
|
|
38
39
|
message: Record<"base" | "link" | "error" | "secondary" | "branded", string>;
|
|
39
40
|
border: Record<"graphic" | "differentiated" | "functional", string>;
|
|
40
|
-
focus: Record<"outline" | "
|
|
41
|
-
inverted: Record<"
|
|
41
|
+
focus: Record<"surface" | "outline" | "hover", string>;
|
|
42
|
+
inverted: Record<"border" | "surface", string> & {
|
|
42
43
|
message: Record<"base" | "link" | "secondary" | "branded", string>;
|
|
43
44
|
};
|
|
44
45
|
success: {
|
|
45
46
|
border: string;
|
|
46
47
|
surface: string;
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
};
|
|
48
|
+
surfaceEmphasis: string;
|
|
49
|
+
message: string;
|
|
50
|
+
messageOnEmphasis: string;
|
|
51
51
|
};
|
|
52
52
|
warning: {
|
|
53
53
|
border: string;
|
|
54
54
|
surface: string;
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
};
|
|
55
|
+
surfaceEmphasis: string;
|
|
56
|
+
message: string;
|
|
57
|
+
messageOnEmphasis: string;
|
|
59
58
|
};
|
|
60
59
|
error: {
|
|
61
60
|
border: string;
|
|
62
61
|
surface: string;
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
};
|
|
62
|
+
surfaceEmphasis: string;
|
|
63
|
+
message: string;
|
|
64
|
+
messageOnEmphasis: string;
|
|
67
65
|
};
|
|
68
66
|
info: {
|
|
69
67
|
border: string;
|
|
70
68
|
surface: string;
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
};
|
|
75
|
-
};
|
|
76
|
-
electricity: {
|
|
77
|
-
border: string;
|
|
78
|
-
surface: string;
|
|
79
|
-
message: {
|
|
80
|
-
base: string;
|
|
81
|
-
secondary: string;
|
|
82
|
-
};
|
|
83
|
-
};
|
|
84
|
-
gas: {
|
|
85
|
-
border: string;
|
|
86
|
-
surface: string;
|
|
87
|
-
message: {
|
|
88
|
-
base: string;
|
|
89
|
-
secondary: string;
|
|
90
|
-
};
|
|
69
|
+
surfaceEmphasis: string;
|
|
70
|
+
message: string;
|
|
71
|
+
messageOnEmphasis: string;
|
|
91
72
|
};
|
|
73
|
+
data: Record<"gas" | "branded" | "electric", Record<2 | 1 | 3 | 4, string>>;
|
|
92
74
|
};
|
|
93
75
|
component: {
|
|
94
76
|
heading1: {
|
|
@@ -219,6 +201,30 @@ export declare const theme: import("./theme").Theme & {
|
|
|
219
201
|
backgroundFocused: string;
|
|
220
202
|
};
|
|
221
203
|
};
|
|
204
|
+
badge: {
|
|
205
|
+
variants: {
|
|
206
|
+
red: {
|
|
207
|
+
foreground: string;
|
|
208
|
+
background: string;
|
|
209
|
+
};
|
|
210
|
+
orange: {
|
|
211
|
+
foreground: string;
|
|
212
|
+
background: string;
|
|
213
|
+
};
|
|
214
|
+
yellow: {
|
|
215
|
+
foreground: string;
|
|
216
|
+
background: string;
|
|
217
|
+
};
|
|
218
|
+
green: {
|
|
219
|
+
foreground: string;
|
|
220
|
+
background: string;
|
|
221
|
+
};
|
|
222
|
+
blue: {
|
|
223
|
+
foreground: string;
|
|
224
|
+
background: string;
|
|
225
|
+
};
|
|
226
|
+
};
|
|
227
|
+
};
|
|
222
228
|
};
|
|
223
229
|
};
|
|
224
230
|
export declare type Theme = typeof theme;
|
package/dist/theme/theme.d.ts
CHANGED
|
@@ -1,7 +1,3 @@
|
|
|
1
|
-
import { BadgeVariantName, BadgeVariant } from '../components/Badge/Badge';
|
|
2
|
-
import { CTAVariantName, CTAVariant } from '../components/CTAButton/CTAButton';
|
|
3
|
-
import { NotificationVariant, NotificationVariantName } from '../components/Notification/Notification';
|
|
4
|
-
import { IconName } from '../providers';
|
|
5
1
|
declare type Shadow = {
|
|
6
2
|
color: string;
|
|
7
3
|
offset: string;
|
|
@@ -24,26 +20,6 @@ export declare type Theme = {
|
|
|
24
20
|
radii: Record<'small' | 'medium' | 'large', string>;
|
|
25
21
|
shadows: Record<'standard', Shadow>;
|
|
26
22
|
borderWidths: Record<'standard' | 'heavy' | 'heavier', string>;
|
|
27
|
-
badge: {
|
|
28
|
-
fontFamily: string;
|
|
29
|
-
lineHeight: number;
|
|
30
|
-
paddingHorizontal: string;
|
|
31
|
-
borderRadius: string;
|
|
32
|
-
fontSize: string[];
|
|
33
|
-
variants: Record<BadgeVariantName, BadgeVariant>;
|
|
34
|
-
};
|
|
35
|
-
cta: {
|
|
36
|
-
fontSize: string[];
|
|
37
|
-
fontFamily: string;
|
|
38
|
-
lineHeight: number;
|
|
39
|
-
paddingVertical: string;
|
|
40
|
-
paddingHorizontal: string;
|
|
41
|
-
borderRadius: number | string;
|
|
42
|
-
borderWidth: string;
|
|
43
|
-
iconGap: string;
|
|
44
|
-
minHeight: string;
|
|
45
|
-
variants: Record<CTAVariantName, CTAVariant>;
|
|
46
|
-
};
|
|
47
23
|
text: {
|
|
48
24
|
fontFamily: string;
|
|
49
25
|
lineHeight: number;
|
|
@@ -112,21 +88,6 @@ export declare type Theme = {
|
|
|
112
88
|
marginBottom: string[];
|
|
113
89
|
};
|
|
114
90
|
};
|
|
115
|
-
notification: {
|
|
116
|
-
borderRadius: string;
|
|
117
|
-
borderWidth: string;
|
|
118
|
-
borderColor: string;
|
|
119
|
-
background: string;
|
|
120
|
-
paddingX: string[];
|
|
121
|
-
paddingY: string[];
|
|
122
|
-
variants: Record<NotificationVariantName, NotificationVariant>;
|
|
123
|
-
dismiss: {
|
|
124
|
-
icon: IconName;
|
|
125
|
-
size: string;
|
|
126
|
-
color: string;
|
|
127
|
-
touchSize: string;
|
|
128
|
-
};
|
|
129
|
-
};
|
|
130
91
|
radio: {
|
|
131
92
|
touchSize: string;
|
|
132
93
|
size: string;
|
|
@@ -220,33 +181,6 @@ export declare type Theme = {
|
|
|
220
181
|
maxWidth: string;
|
|
221
182
|
gutter: string[];
|
|
222
183
|
};
|
|
223
|
-
dataTable: {
|
|
224
|
-
borderWidth: string;
|
|
225
|
-
borderRadius: string;
|
|
226
|
-
borderColor: string;
|
|
227
|
-
responsivePadding: {
|
|
228
|
-
vertical: [string, string];
|
|
229
|
-
horizontal: [string, string];
|
|
230
|
-
};
|
|
231
|
-
tableHeader: {
|
|
232
|
-
color: string;
|
|
233
|
-
backgroundColor: string;
|
|
234
|
-
borderWidth: string;
|
|
235
|
-
borderColor: string;
|
|
236
|
-
fontFamily: string;
|
|
237
|
-
};
|
|
238
|
-
tableCaption: {
|
|
239
|
-
color: string;
|
|
240
|
-
fontFamily: string;
|
|
241
|
-
};
|
|
242
|
-
tableCell: {
|
|
243
|
-
color: string;
|
|
244
|
-
};
|
|
245
|
-
tableRow: {
|
|
246
|
-
backgroundColor: string;
|
|
247
|
-
stripeColor: string;
|
|
248
|
-
};
|
|
249
|
-
};
|
|
250
184
|
accordion: {
|
|
251
185
|
header: {
|
|
252
186
|
color: string;
|
|
@@ -255,29 +189,5 @@ export declare type Theme = {
|
|
|
255
189
|
paddingVertical: string[];
|
|
256
190
|
};
|
|
257
191
|
};
|
|
258
|
-
tabs: {
|
|
259
|
-
tab: {
|
|
260
|
-
fontSize: string[];
|
|
261
|
-
fontFamily: string;
|
|
262
|
-
lineHeight: number;
|
|
263
|
-
borderTopWidth: string;
|
|
264
|
-
borderBottomWidth: string;
|
|
265
|
-
borderColor: string;
|
|
266
|
-
paddingVertical: string[];
|
|
267
|
-
paddingHorizontal: string[];
|
|
268
|
-
active: {
|
|
269
|
-
backgroundColor: string;
|
|
270
|
-
foregroundColor: string;
|
|
271
|
-
borderColor: string;
|
|
272
|
-
};
|
|
273
|
-
inactive: {
|
|
274
|
-
backgroundColor: string;
|
|
275
|
-
foregroundColor: string;
|
|
276
|
-
};
|
|
277
|
-
hover: {
|
|
278
|
-
foregroundColor: string;
|
|
279
|
-
};
|
|
280
|
-
};
|
|
281
|
-
};
|
|
282
192
|
};
|
|
283
193
|
export {};
|
package/dist/utils/utils.d.ts
CHANGED
|
@@ -1,15 +1,16 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { Ref, ReactNode, ReactElement, ComponentType } from 'react';
|
|
2
2
|
import { ViewProps, View } from 'react-native';
|
|
3
3
|
import { BreakpointNames, Breakpoints } from '../hooks';
|
|
4
4
|
declare function mergeRefs<T>(ref1: undefined | Ref<T>, ref2: undefined | Ref<T>): (element: T) => void;
|
|
5
5
|
declare function getText(children: ReactNode): string;
|
|
6
6
|
declare function pxToNumber(px: string): number;
|
|
7
|
-
declare function
|
|
7
|
+
declare function numToPx(num: number): string;
|
|
8
|
+
declare function styledComponentWithBreakpoints<T = ViewProps, C = View>(Component: ComponentType<T>): import("react").ForwardRefExoticComponent<import("react").PropsWithoutRef<Omit<T, BreakpointNames>> & import("react").RefAttributes<C>>;
|
|
8
9
|
declare function responsiveStyle(property: string, value: any, breakpoints: Breakpoints, formatter?: (v: any) => string): any;
|
|
9
10
|
declare function getErrorMessage(id: string, errors: Array<{
|
|
10
11
|
id: string;
|
|
11
12
|
message: ReactNode;
|
|
12
13
|
}>): null | ReactNode;
|
|
13
14
|
declare function callAll(...fns: Array<Function | undefined>): (...args: any[]) => void;
|
|
14
|
-
declare function filterChildrenByType(children: ReactNode, type: ComponentType):
|
|
15
|
-
export { styledComponentWithBreakpoints, responsiveStyle, pxToNumber, mergeRefs, getText, getErrorMessage, callAll, filterChildrenByType, };
|
|
15
|
+
declare function filterChildrenByType(children: ReactNode, type: ComponentType): ReactElement<any, string | import("react").JSXElementConstructor<any>>[];
|
|
16
|
+
export { styledComponentWithBreakpoints, responsiveStyle, pxToNumber, numToPx, mergeRefs, getText, getErrorMessage, callAll, filterChildrenByType, };
|
package/dist/utils/utils.js
CHANGED
|
@@ -10,32 +10,10 @@ var __assign = (this && this.__assign) || function () {
|
|
|
10
10
|
};
|
|
11
11
|
return __assign.apply(this, arguments);
|
|
12
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
13
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37
|
-
exports.filterChildrenByType = exports.callAll = exports.getErrorMessage = exports.getText = exports.mergeRefs = exports.pxToNumber = exports.responsiveStyle = exports.styledComponentWithBreakpoints = void 0;
|
|
38
|
-
var
|
|
14
|
+
exports.filterChildrenByType = exports.callAll = exports.getErrorMessage = exports.getText = exports.mergeRefs = exports.numToPx = exports.pxToNumber = exports.responsiveStyle = exports.styledComponentWithBreakpoints = void 0;
|
|
15
|
+
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
16
|
+
var react_1 = require("react");
|
|
39
17
|
var hooks_1 = require("../hooks");
|
|
40
18
|
function mergeRefs(ref1, ref2) {
|
|
41
19
|
return function (element) {
|
|
@@ -69,11 +47,15 @@ function pxToNumber(px) {
|
|
|
69
47
|
return parseFloat(px);
|
|
70
48
|
}
|
|
71
49
|
exports.pxToNumber = pxToNumber;
|
|
50
|
+
function numToPx(num) {
|
|
51
|
+
return "".concat(num, "px");
|
|
52
|
+
}
|
|
53
|
+
exports.numToPx = numToPx;
|
|
72
54
|
function styledComponentWithBreakpoints(Component) {
|
|
73
55
|
return (0, react_1.forwardRef)(function (props, ref) {
|
|
74
56
|
var breakpoints = (0, hooks_1.useBreakpoint)();
|
|
75
57
|
// @ts-ignore.
|
|
76
|
-
return
|
|
58
|
+
return (0, jsx_runtime_1.jsx)(Component, __assign({}, props, breakpoints, { ref: ref }));
|
|
77
59
|
});
|
|
78
60
|
}
|
|
79
61
|
exports.styledComponentWithBreakpoints = styledComponentWithBreakpoints;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ovotech/element-native",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.0.0-canary-edaf96f-93",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"module": "dist/esm/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -13,7 +13,8 @@
|
|
|
13
13
|
"url": "@ovotech/element"
|
|
14
14
|
},
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"@ovotech/element-core": "^
|
|
16
|
+
"@ovotech/element-core": "^2.0.0-canary-edaf96f-93",
|
|
17
|
+
"deepmerge": "^4.2.2"
|
|
17
18
|
},
|
|
18
19
|
"devDependencies": {
|
|
19
20
|
"@babel/core": "^7.11.5",
|
|
@@ -32,10 +33,10 @@
|
|
|
32
33
|
"babel-plugin-require-context-hook": "^1.0.0",
|
|
33
34
|
"jest": "^28.1.1",
|
|
34
35
|
"jest-styled-components": "^7.0.3",
|
|
35
|
-
"metro-react-native-babel-preset": "^0.
|
|
36
|
+
"metro-react-native-babel-preset": "^0.77.0",
|
|
36
37
|
"react": "18.2.0",
|
|
37
38
|
"react-is": "^16.13.0",
|
|
38
|
-
"react-native": "0.
|
|
39
|
+
"react-native": "0.72.3",
|
|
39
40
|
"react-native-reanimated": "^2.10.0",
|
|
40
41
|
"react-native-svg": "9.2.4",
|
|
41
42
|
"react-router-dom": "^5.1.2",
|
|
@@ -47,7 +48,7 @@
|
|
|
47
48
|
},
|
|
48
49
|
"peerDependencies": {
|
|
49
50
|
"react": "^16.9.0 || ^17.0.0",
|
|
50
|
-
"react-native": "^0.63.3 || ^0.71.0",
|
|
51
|
+
"react-native": "^0.63.3 || ^0.71.0 || ^0.72.0",
|
|
51
52
|
"react-native-reanimated": "^2.10.0",
|
|
52
53
|
"react-native-svg": "^13.5.0",
|
|
53
54
|
"styled-components": "^5.1.3"
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { TextInput } from 'react-native';
|
|
3
|
-
declare const TelInput: React.ForwardRefExoticComponent<import("react-native/types").TextInputProps & {
|
|
4
|
-
invalid?: boolean | undefined;
|
|
5
|
-
stretch?: boolean | undefined;
|
|
6
|
-
iconLeft?: (string & {}) | import("../../providers").IconName | undefined;
|
|
7
|
-
iconRight?: (string & {}) | import("../../providers").IconName | undefined;
|
|
8
|
-
rightSlot?: React.ReactNode;
|
|
9
|
-
} & React.RefAttributes<TextInput>>;
|
|
10
|
-
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;
|