@ovotech/element-native 2.0.0 → 2.0.2
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 +5 -0
- package/dist/components/Accordion/Accordion.js +139 -0
- package/dist/components/Accordion/Group.d.ts +3 -0
- package/dist/components/Accordion/Group.js +41 -0
- package/dist/components/Accordion/Icon.d.ts +4 -0
- package/dist/components/Accordion/Icon.js +68 -0
- package/dist/components/Accordion/hooks.d.ts +6 -0
- package/dist/components/Accordion/hooks.js +43 -0
- package/dist/components/Accordion/index.d.ts +4 -0
- package/dist/components/Accordion/index.js +9 -0
- package/dist/components/Accordion/styles.d.ts +46 -0
- package/dist/components/Accordion/styles.js +52 -0
- package/dist/components/Accordion/types.d.ts +20 -0
- package/dist/components/Accordion/types.js +2 -0
- package/dist/components/Badge/Badge.d.ts +12 -0
- package/dist/components/Badge/Badge.js +79 -0
- package/dist/components/Badge/index.d.ts +1 -0
- package/dist/components/Badge/index.js +5 -0
- package/dist/components/CTAButton/CTAButton.d.ts +24 -0
- package/dist/components/CTAButton/CTAButton.js +107 -0
- package/dist/components/CTAButton/index.d.ts +1 -0
- package/dist/components/CTAButton/index.js +8 -0
- package/dist/components/CTALink/CTALink.d.ts +12 -0
- package/dist/components/CTALink/CTALink.js +45 -0
- package/dist/components/CTALink/index.d.ts +1 -0
- package/dist/components/CTALink/index.js +7 -0
- package/dist/components/Card/Card.d.ts +7 -0
- package/dist/components/Card/Card.js +33 -0
- package/dist/components/Card/index.d.ts +1 -0
- package/dist/components/Card/index.js +5 -0
- package/dist/components/Checkbox/Checkbox.d.ts +12 -0
- package/dist/components/Checkbox/Checkbox.js +121 -0
- package/dist/components/Checkbox/CheckboxField.d.ts +9 -0
- package/dist/components/Checkbox/CheckboxField.js +73 -0
- package/dist/components/Checkbox/index.d.ts +2 -0
- package/dist/components/Checkbox/index.js +7 -0
- package/dist/components/DataTable/DataTable.d.ts +13 -0
- package/dist/components/DataTable/DataTable.js +134 -0
- package/dist/components/DataTable/index.d.ts +1 -0
- package/dist/components/DataTable/index.js +5 -0
- package/dist/components/DateField/DateField.d.ts +21 -0
- package/dist/components/DateField/DateField.js +109 -0
- package/dist/components/DateField/index.d.ts +1 -0
- package/dist/components/DateField/index.js +5 -0
- package/dist/components/Disclosure/Disclosure.d.ts +8 -0
- package/dist/components/Disclosure/Disclosure.js +86 -0
- package/dist/components/Disclosure/index.d.ts +1 -0
- package/dist/components/Disclosure/index.js +17 -0
- package/dist/components/ErrorSummaryNotification/ErrorSummaryNotification.d.ts +18 -0
- package/dist/components/ErrorSummaryNotification/ErrorSummaryNotification.js +73 -0
- package/dist/components/ErrorSummaryNotification/index.d.ts +1 -0
- package/dist/components/ErrorSummaryNotification/index.js +5 -0
- package/dist/components/ErrorText/ErrorText.d.ts +13 -0
- package/dist/components/ErrorText/ErrorText.js +41 -0
- package/dist/components/ErrorText/index.d.ts +1 -0
- package/dist/components/ErrorText/index.js +5 -0
- package/dist/components/Field/Field.d.ts +13 -0
- package/dist/components/Field/Field.js +94 -0
- package/dist/components/Field/index.d.ts +1 -0
- package/dist/components/Field/index.js +17 -0
- package/dist/components/FormGroup/FormGroup.d.ts +8 -0
- package/dist/components/FormGroup/FormGroup.js +43 -0
- package/dist/components/FormGroup/index.d.ts +1 -0
- package/dist/components/FormGroup/index.js +5 -0
- package/dist/components/Grid/Col.d.ts +12 -0
- package/dist/components/Grid/Col.js +58 -0
- package/dist/components/Grid/Row.d.ts +9 -0
- package/dist/components/Grid/Row.js +76 -0
- package/dist/components/Grid/index.d.ts +2 -0
- package/dist/components/Grid/index.js +7 -0
- package/dist/components/Heading/Heading.d.ts +6 -0
- package/dist/components/Heading/Heading.js +115 -0
- package/dist/components/Heading/index.d.ts +1 -0
- package/dist/components/Heading/index.js +8 -0
- package/dist/components/HintText/HintText.d.ts +13 -0
- package/dist/components/HintText/HintText.js +41 -0
- package/dist/components/HintText/index.d.ts +1 -0
- package/dist/components/HintText/index.js +5 -0
- package/dist/components/Icon/Icon.d.ts +11 -0
- package/dist/components/Icon/Icon.js +62 -0
- package/dist/components/Icon/index.d.ts +1 -0
- package/dist/components/Icon/index.js +5 -0
- package/dist/components/Input/CurrencyInput.d.ts +15 -0
- package/dist/components/Input/CurrencyInput.js +59 -0
- package/dist/components/Input/EmailInput.d.ts +9 -0
- package/dist/components/Input/EmailInput.js +41 -0
- package/dist/components/Input/Input.d.ts +16 -0
- package/dist/components/Input/Input.js +102 -0
- package/dist/components/Input/NumberInput.d.ts +9 -0
- package/dist/components/Input/NumberInput.js +41 -0
- package/dist/components/Input/PasswordInput.d.ts +9 -0
- package/dist/components/Input/PasswordInput.js +55 -0
- package/dist/components/Input/TelInput.d.ts +9 -0
- package/dist/components/Input/TelInput.js +41 -0
- package/dist/components/Input/TextInput.d.ts +9 -0
- package/dist/components/Input/TextInput.js +41 -0
- package/dist/components/Input/TextareaInput.d.ts +15 -0
- package/dist/components/Input/TextareaInput.js +64 -0
- package/dist/components/Input/index.d.ts +7 -0
- package/dist/components/Input/index.js +17 -0
- package/dist/components/LabelText/LabelText.d.ts +13 -0
- package/dist/components/LabelText/LabelText.js +41 -0
- package/dist/components/LabelText/index.d.ts +1 -0
- package/dist/components/LabelText/index.js +5 -0
- package/dist/components/List/List.d.ts +29 -0
- package/dist/components/List/List.js +169 -0
- package/dist/components/List/index.d.ts +1 -0
- package/dist/components/List/index.js +10 -0
- package/dist/components/Margin/Margin.d.ts +23 -0
- package/dist/components/Margin/Margin.js +53 -0
- package/dist/components/Margin/index.d.ts +1 -0
- package/dist/components/Margin/index.js +5 -0
- package/dist/components/NavHeader/NavHeader.d.ts +15 -0
- package/dist/components/NavHeader/NavHeader.js +93 -0
- package/dist/components/NavHeader/index.d.ts +1 -0
- package/dist/components/NavHeader/index.js +5 -0
- package/dist/components/Notification/Notification.d.ts +31 -0
- package/dist/components/Notification/Notification.js +118 -0
- package/dist/components/Notification/index.d.ts +1 -0
- package/dist/components/Notification/index.js +9 -0
- package/dist/components/Radio/Radio.d.ts +12 -0
- package/dist/components/Radio/Radio.js +114 -0
- package/dist/components/Radio/RadioField.d.ts +11 -0
- package/dist/components/Radio/RadioField.js +78 -0
- package/dist/components/Radio/index.d.ts +2 -0
- package/dist/components/Radio/index.js +7 -0
- package/dist/components/SkeletonLoading/Skeleton.d.ts +1 -0
- package/dist/components/SkeletonLoading/Skeleton.js +13 -0
- package/dist/components/SkeletonLoading/SkeletonCTA.d.ts +6 -0
- package/dist/components/SkeletonLoading/SkeletonCTA.js +41 -0
- package/dist/components/SkeletonLoading/SkeletonCircle.d.ts +6 -0
- package/dist/components/SkeletonLoading/SkeletonCircle.js +46 -0
- package/dist/components/SkeletonLoading/SkeletonHeading.d.ts +8 -0
- package/dist/components/SkeletonLoading/SkeletonHeading.js +41 -0
- package/dist/components/SkeletonLoading/SkeletonText.d.ts +6 -0
- package/dist/components/SkeletonLoading/SkeletonText.js +49 -0
- package/dist/components/SkeletonLoading/index.d.ts +5 -0
- package/dist/components/SkeletonLoading/index.js +21 -0
- package/dist/components/Stack/Stack.d.ts +10 -0
- package/dist/components/Stack/Stack.js +75 -0
- package/dist/components/Stack/index.d.ts +1 -0
- package/dist/components/Stack/index.js +5 -0
- package/dist/components/Stretch/Stretch.d.ts +7 -0
- package/dist/components/Stretch/Stretch.js +31 -0
- package/dist/components/Stretch/index.d.ts +1 -0
- package/dist/components/Stretch/index.js +17 -0
- package/dist/components/SubLabelText/SubLabelText.d.ts +13 -0
- package/dist/components/SubLabelText/SubLabelText.js +41 -0
- package/dist/components/SubLabelText/index.d.ts +1 -0
- package/dist/components/SubLabelText/index.js +5 -0
- package/dist/components/SummaryList/SummaryList.d.ts +10 -0
- package/dist/components/SummaryList/SummaryList.js +66 -0
- package/dist/components/SummaryList/index.d.ts +1 -0
- package/dist/components/SummaryList/index.js +6 -0
- package/dist/components/Tabs/Tab.d.ts +11 -0
- package/dist/components/Tabs/Tab.js +74 -0
- package/dist/components/Tabs/TabList.d.ts +1 -0
- package/dist/components/Tabs/TabList.js +74 -0
- package/dist/components/Tabs/TabPanel.d.ts +3 -0
- package/dist/components/Tabs/TabPanel.js +41 -0
- package/dist/components/Tabs/Tabs.d.ts +9 -0
- package/dist/components/Tabs/Tabs.js +95 -0
- package/dist/components/Tabs/index.d.ts +4 -0
- package/dist/components/Tabs/index.js +11 -0
- package/dist/components/Text/Text.d.ts +26 -0
- package/dist/components/Text/Text.js +96 -0
- package/dist/components/Text/index.d.ts +1 -0
- package/dist/components/Text/index.js +10 -0
- package/dist/components/TextField/CurrencyField.d.ts +11 -0
- package/dist/components/TextField/CurrencyField.js +56 -0
- package/dist/components/TextField/EmailField.d.ts +9 -0
- package/dist/components/TextField/EmailField.js +56 -0
- package/dist/components/TextField/NumberField.d.ts +9 -0
- package/dist/components/TextField/NumberField.js +56 -0
- package/dist/components/TextField/PasswordField.d.ts +9 -0
- package/dist/components/TextField/PasswordField.js +56 -0
- package/dist/components/TextField/TelField.d.ts +9 -0
- package/dist/components/TextField/TelField.js +56 -0
- package/dist/components/TextField/TextField.d.ts +9 -0
- package/dist/components/TextField/TextField.js +56 -0
- package/dist/components/TextField/TextareaField.d.ts +11 -0
- package/dist/components/TextField/TextareaField.js +56 -0
- package/dist/components/TextField/index.d.ts +7 -0
- package/dist/components/TextField/index.js +17 -0
- package/dist/components/TextLink/TextLink.d.ts +8 -0
- package/dist/components/TextLink/TextLink.js +75 -0
- package/dist/components/TextLink/index.d.ts +1 -0
- package/dist/components/TextLink/index.js +5 -0
- package/dist/components/index.d.ts +27 -0
- package/dist/components/index.js +43 -0
- package/dist/esm/components/Accordion/Accordion.js +111 -0
- package/dist/esm/components/Accordion/Group.js +14 -0
- package/dist/esm/components/Accordion/Icon.js +38 -0
- package/dist/esm/components/Accordion/hooks.js +16 -0
- package/dist/esm/components/Accordion/index.js +3 -0
- package/dist/esm/components/Accordion/styles.js +49 -0
- package/dist/esm/components/Accordion/types.js +1 -0
- package/dist/esm/components/Badge/Badge.js +49 -0
- package/dist/esm/components/Badge/index.js +1 -0
- package/dist/esm/components/CTAButton/CTAButton.js +78 -0
- package/dist/esm/components/CTAButton/index.js +1 -0
- package/dist/esm/components/CTALink/CTALink.js +17 -0
- package/dist/esm/components/CTALink/index.js +1 -0
- package/dist/esm/components/Card/Card.js +27 -0
- package/dist/esm/components/Card/index.js +1 -0
- package/dist/esm/components/Checkbox/Checkbox.js +95 -0
- package/dist/esm/components/Checkbox/CheckboxField.js +47 -0
- package/dist/esm/components/Checkbox/index.js +2 -0
- package/dist/esm/components/DataTable/DataTable.js +108 -0
- package/dist/esm/components/DataTable/index.js +1 -0
- package/dist/esm/components/DateField/DateField.js +83 -0
- package/dist/esm/components/DateField/index.js +1 -0
- package/dist/esm/components/Disclosure/Disclosure.js +60 -0
- package/dist/esm/components/Disclosure/index.js +1 -0
- package/dist/esm/components/ErrorSummaryNotification/ErrorSummaryNotification.js +47 -0
- package/dist/esm/components/ErrorSummaryNotification/index.js +1 -0
- package/dist/esm/components/ErrorText/ErrorText.js +15 -0
- package/dist/esm/components/ErrorText/index.js +1 -0
- package/dist/esm/components/Field/Field.js +68 -0
- package/dist/esm/components/Field/index.js +1 -0
- package/dist/esm/components/FormGroup/FormGroup.js +37 -0
- package/dist/esm/components/FormGroup/index.js +1 -0
- package/dist/esm/components/Grid/Col.js +32 -0
- package/dist/esm/components/Grid/Row.js +47 -0
- package/dist/esm/components/Grid/index.js +2 -0
- package/dist/esm/components/Heading/Heading.js +82 -0
- package/dist/esm/components/Heading/index.js +1 -0
- package/dist/esm/components/HintText/HintText.js +15 -0
- package/dist/esm/components/HintText/index.js +1 -0
- package/dist/esm/components/Icon/Icon.js +35 -0
- package/dist/esm/components/Icon/index.js +1 -0
- package/dist/esm/components/Input/CurrencyInput.js +33 -0
- package/dist/esm/components/Input/EmailInput.js +15 -0
- package/dist/esm/components/Input/Input.js +76 -0
- package/dist/esm/components/Input/NumberInput.js +15 -0
- package/dist/esm/components/Input/PasswordInput.js +29 -0
- package/dist/esm/components/Input/TelInput.js +15 -0
- package/dist/esm/components/Input/TextInput.js +15 -0
- package/dist/esm/components/Input/TextareaInput.js +38 -0
- package/dist/esm/components/Input/index.js +7 -0
- package/dist/esm/components/LabelText/LabelText.js +15 -0
- package/dist/esm/components/LabelText/index.js +1 -0
- package/dist/esm/components/List/List.js +138 -0
- package/dist/esm/components/List/index.js +1 -0
- package/dist/esm/components/Margin/Margin.js +47 -0
- package/dist/esm/components/Margin/index.js +1 -0
- package/dist/esm/components/NavHeader/NavHeader.js +63 -0
- package/dist/esm/components/NavHeader/index.js +1 -0
- package/dist/esm/components/Notification/Notification.js +92 -0
- package/dist/esm/components/Notification/index.js +1 -0
- package/dist/esm/components/Radio/Radio.js +85 -0
- package/dist/esm/components/Radio/RadioField.js +52 -0
- package/dist/esm/components/Radio/index.js +2 -0
- package/dist/esm/components/SkeletonLoading/Skeleton.js +7 -0
- package/dist/esm/components/SkeletonLoading/SkeletonCTA.js +34 -0
- package/dist/esm/components/SkeletonLoading/SkeletonCircle.js +39 -0
- package/dist/esm/components/SkeletonLoading/SkeletonHeading.js +34 -0
- package/dist/esm/components/SkeletonLoading/SkeletonText.js +42 -0
- package/dist/esm/components/SkeletonLoading/index.js +5 -0
- package/dist/esm/components/Stack/Stack.js +46 -0
- package/dist/esm/components/Stack/index.js +1 -0
- package/dist/esm/components/Stretch/Stretch.js +24 -0
- package/dist/esm/components/Stretch/index.js +1 -0
- package/dist/esm/components/SubLabelText/SubLabelText.js +15 -0
- package/dist/esm/components/SubLabelText/index.js +1 -0
- package/dist/esm/components/SummaryList/SummaryList.js +39 -0
- package/dist/esm/components/SummaryList/index.js +1 -0
- package/dist/esm/components/Tabs/Tab.js +45 -0
- package/dist/esm/components/Tabs/TabList.js +48 -0
- package/dist/esm/components/Tabs/TabPanel.js +34 -0
- package/dist/esm/components/Tabs/Tabs.js +69 -0
- package/dist/esm/components/Tabs/index.js +4 -0
- package/dist/esm/components/Text/Text.js +69 -0
- package/dist/esm/components/Text/index.js +1 -0
- package/dist/esm/components/TextField/CurrencyField.js +30 -0
- package/dist/esm/components/TextField/EmailField.js +30 -0
- package/dist/esm/components/TextField/NumberField.js +30 -0
- package/dist/esm/components/TextField/PasswordField.js +30 -0
- package/dist/esm/components/TextField/TelField.js +30 -0
- package/dist/esm/components/TextField/TextField.js +30 -0
- package/dist/esm/components/TextField/TextareaField.js +30 -0
- package/dist/esm/components/TextField/index.js +7 -0
- package/dist/esm/components/TextLink/TextLink.js +49 -0
- package/dist/esm/components/TextLink/index.js +1 -0
- package/dist/esm/components/index.js +27 -0
- package/dist/esm/hooks/index.js +2 -0
- package/dist/esm/hooks/use-breakpoint.js +12 -0
- package/dist/esm/hooks/use-full-width.js +16 -0
- package/dist/esm/index.js +3 -0
- package/dist/esm/providers/IconsProvider.js +65 -0
- package/dist/esm/providers/icons/ArrowDown.js +15 -0
- package/dist/esm/providers/icons/ArrowLeft.js +15 -0
- package/dist/esm/providers/icons/ArrowRight.js +15 -0
- package/dist/esm/providers/icons/ArrowUp.js +15 -0
- package/dist/esm/providers/icons/CaretDown.js +15 -0
- package/dist/esm/providers/icons/CaretLeft.js +15 -0
- package/dist/esm/providers/icons/CaretRight.js +15 -0
- package/dist/esm/providers/icons/CaretUp.js +15 -0
- package/dist/esm/providers/icons/Chart.js +15 -0
- package/dist/esm/providers/icons/Check.js +15 -0
- package/dist/esm/providers/icons/ChevronDown.js +15 -0
- package/dist/esm/providers/icons/ChevronLeft.js +15 -0
- package/dist/esm/providers/icons/ChevronLeftSmall.js +15 -0
- package/dist/esm/providers/icons/ChevronLeftSmallFirst.js +15 -0
- package/dist/esm/providers/icons/ChevronRight.js +15 -0
- package/dist/esm/providers/icons/ChevronRightSmall.js +15 -0
- package/dist/esm/providers/icons/ChevronRightSmallLast.js +15 -0
- package/dist/esm/providers/icons/ChevronUp.js +15 -0
- package/dist/esm/providers/icons/Cross.js +15 -0
- package/dist/esm/providers/icons/Dollar.js +15 -0
- package/dist/esm/providers/icons/Download.js +15 -0
- package/dist/esm/providers/icons/Electricity.js +15 -0
- package/dist/esm/providers/icons/Euro.js +15 -0
- package/dist/esm/providers/icons/Gas.js +16 -0
- package/dist/esm/providers/icons/Help.js +15 -0
- package/dist/esm/providers/icons/Hide.js +15 -0
- package/dist/esm/providers/icons/Home.js +15 -0
- package/dist/esm/providers/icons/Info.js +15 -0
- package/dist/esm/providers/icons/Link.js +16 -0
- package/dist/esm/providers/icons/Logo.js +15 -0
- package/dist/esm/providers/icons/Minus.js +15 -0
- package/dist/esm/providers/icons/NewWindow.js +15 -0
- package/dist/esm/providers/icons/PaymentCard.js +15 -0
- package/dist/esm/providers/icons/Plus.js +15 -0
- package/dist/esm/providers/icons/Pound.js +15 -0
- package/dist/esm/providers/icons/Search.js +15 -0
- package/dist/esm/providers/icons/Show.js +15 -0
- package/dist/esm/providers/icons/User.js +15 -0
- package/dist/esm/providers/icons/index.js +38 -0
- package/dist/esm/providers/index.js +2 -0
- package/dist/esm/providers/types.js +1 -0
- package/dist/esm/styled.native.js +4 -0
- package/dist/esm/theme/create-theme.js +504 -0
- package/dist/esm/theme/index.js +8 -0
- package/dist/esm/theme/theme.js +1 -0
- package/dist/esm/utils/index.js +1 -0
- package/dist/esm/utils/utils.js +93 -0
- package/dist/hooks/index.d.ts +2 -0
- package/dist/hooks/index.js +18 -0
- package/dist/hooks/use-breakpoint.d.ts +7 -0
- package/dist/hooks/use-breakpoint.js +16 -0
- package/dist/hooks/use-full-width.d.ts +2 -0
- package/dist/hooks/use-full-width.js +20 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +19 -0
- package/dist/providers/IconsProvider.d.ts +8 -0
- package/dist/providers/IconsProvider.js +93 -0
- package/dist/providers/icons/ArrowDown.d.ts +2 -0
- package/dist/providers/icons/ArrowDown.js +22 -0
- package/dist/providers/icons/ArrowLeft.d.ts +2 -0
- package/dist/providers/icons/ArrowLeft.js +22 -0
- package/dist/providers/icons/ArrowRight.d.ts +2 -0
- package/dist/providers/icons/ArrowRight.js +22 -0
- package/dist/providers/icons/ArrowUp.d.ts +2 -0
- package/dist/providers/icons/ArrowUp.js +22 -0
- package/dist/providers/icons/CaretDown.d.ts +2 -0
- package/dist/providers/icons/CaretDown.js +22 -0
- package/dist/providers/icons/CaretLeft.d.ts +2 -0
- package/dist/providers/icons/CaretLeft.js +22 -0
- package/dist/providers/icons/CaretRight.d.ts +2 -0
- package/dist/providers/icons/CaretRight.js +22 -0
- package/dist/providers/icons/CaretUp.d.ts +2 -0
- package/dist/providers/icons/CaretUp.js +22 -0
- package/dist/providers/icons/Chart.d.ts +2 -0
- package/dist/providers/icons/Chart.js +22 -0
- package/dist/providers/icons/Check.d.ts +2 -0
- package/dist/providers/icons/Check.js +22 -0
- package/dist/providers/icons/ChevronDown.d.ts +2 -0
- package/dist/providers/icons/ChevronDown.js +22 -0
- package/dist/providers/icons/ChevronLeft.d.ts +2 -0
- package/dist/providers/icons/ChevronLeft.js +22 -0
- package/dist/providers/icons/ChevronLeftSmall.d.ts +2 -0
- package/dist/providers/icons/ChevronLeftSmall.js +22 -0
- package/dist/providers/icons/ChevronLeftSmallFirst.d.ts +2 -0
- package/dist/providers/icons/ChevronLeftSmallFirst.js +22 -0
- package/dist/providers/icons/ChevronRight.d.ts +2 -0
- package/dist/providers/icons/ChevronRight.js +22 -0
- package/dist/providers/icons/ChevronRightSmall.d.ts +2 -0
- package/dist/providers/icons/ChevronRightSmall.js +22 -0
- package/dist/providers/icons/ChevronRightSmallLast.d.ts +2 -0
- package/dist/providers/icons/ChevronRightSmallLast.js +22 -0
- package/dist/providers/icons/ChevronUp.d.ts +2 -0
- package/dist/providers/icons/ChevronUp.js +22 -0
- package/dist/providers/icons/Cross.d.ts +2 -0
- package/dist/providers/icons/Cross.js +22 -0
- package/dist/providers/icons/Dollar.d.ts +2 -0
- package/dist/providers/icons/Dollar.js +22 -0
- package/dist/providers/icons/Download.d.ts +2 -0
- package/dist/providers/icons/Download.js +22 -0
- package/dist/providers/icons/Electricity.d.ts +2 -0
- package/dist/providers/icons/Electricity.js +22 -0
- package/dist/providers/icons/Euro.d.ts +2 -0
- package/dist/providers/icons/Euro.js +22 -0
- package/dist/providers/icons/Gas.d.ts +2 -0
- package/dist/providers/icons/Gas.js +23 -0
- package/dist/providers/icons/Help.d.ts +2 -0
- package/dist/providers/icons/Help.js +22 -0
- package/dist/providers/icons/Hide.d.ts +2 -0
- package/dist/providers/icons/Hide.js +22 -0
- package/dist/providers/icons/Home.d.ts +2 -0
- package/dist/providers/icons/Home.js +22 -0
- package/dist/providers/icons/Info.d.ts +2 -0
- package/dist/providers/icons/Info.js +22 -0
- package/dist/providers/icons/Link.d.ts +2 -0
- package/dist/providers/icons/Link.js +23 -0
- package/dist/providers/icons/Logo.d.ts +2 -0
- package/dist/providers/icons/Logo.js +22 -0
- package/dist/providers/icons/Minus.d.ts +2 -0
- package/dist/providers/icons/Minus.js +22 -0
- package/dist/providers/icons/NewWindow.d.ts +2 -0
- package/dist/providers/icons/NewWindow.js +22 -0
- package/dist/providers/icons/PaymentCard.d.ts +2 -0
- package/dist/providers/icons/PaymentCard.js +22 -0
- package/dist/providers/icons/Plus.d.ts +2 -0
- package/dist/providers/icons/Plus.js +22 -0
- package/dist/providers/icons/Pound.d.ts +2 -0
- package/dist/providers/icons/Pound.js +22 -0
- package/dist/providers/icons/Search.d.ts +2 -0
- package/dist/providers/icons/Search.js +22 -0
- package/dist/providers/icons/Show.d.ts +2 -0
- package/dist/providers/icons/Show.js +22 -0
- package/dist/providers/icons/User.d.ts +2 -0
- package/dist/providers/icons/User.js +22 -0
- package/dist/providers/icons/index.d.ts +38 -0
- package/dist/providers/icons/index.js +54 -0
- package/dist/providers/index.d.ts +2 -0
- package/dist/providers/index.js +18 -0
- package/dist/providers/types.d.ts +4 -0
- package/dist/providers/types.js +2 -0
- package/dist/styled.native.d.ts +6 -0
- package/dist/styled.native.js +33 -0
- package/dist/theme/create-theme.d.ts +18 -0
- package/dist/theme/create-theme.js +511 -0
- package/dist/theme/index.d.ts +5 -0
- package/dist/theme/index.js +26 -0
- package/dist/theme/theme.d.ts +302 -0
- package/dist/theme/theme.js +2 -0
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/index.js +17 -0
- package/dist/utils/utils.d.ts +15 -0
- package/dist/utils/utils.js +126 -0
- package/package.json +1 -1
|
@@ -0,0 +1,102 @@
|
|
|
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.Input = void 0;
|
|
53
|
+
var react_1 = __importStar(require("react"));
|
|
54
|
+
var hooks_1 = require("../../hooks");
|
|
55
|
+
var styled_native_1 = __importStar(require("../../styled.native"));
|
|
56
|
+
var utils_1 = require("../../utils");
|
|
57
|
+
var Icon_1 = require("../Icon/Icon");
|
|
58
|
+
var StyledIcon = (0, styled_native_1.default)(Icon_1.Icon)(function (_a) {
|
|
59
|
+
var _b = _a.theme, input = _b.input, focusRing = _b.focusRing, side = _a.side, focused = _a.focused;
|
|
60
|
+
var distance = ((0, utils_1.pxToNumber)(input.height) - (0, utils_1.pxToNumber)(input.icon.size)) / 2 +
|
|
61
|
+
(focused ? (0, utils_1.pxToNumber)(focusRing.distance) : 0);
|
|
62
|
+
return (0, styled_native_1.css)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n position: absolute;\n width: ", ";\n z-index: 1;\n top: ", "px;\n ", ";\n ", ";\n "], ["\n position: absolute;\n width: ", ";\n z-index: 1;\n top: ", "px;\n ", ";\n ", ";\n "])), input.icon.size, distance, side === 'left' ? "left: ".concat(distance, "px") : '', side === 'right' ? "right: ".concat(distance, "px") : '');
|
|
63
|
+
});
|
|
64
|
+
var Input = (0, react_1.forwardRef)(function (_a, ref) {
|
|
65
|
+
var onFocus = _a.onFocus, onBlur = _a.onBlur, style = _a.style, iconLeft = _a.iconLeft, iconRight = _a.iconRight, rest = __rest(_a, ["onFocus", "onBlur", "style", "iconLeft", "iconRight"]);
|
|
66
|
+
var _b = (0, react_1.useState)(false), focused = _b[0], setFocused = _b[1];
|
|
67
|
+
var breakpoints = (0, hooks_1.useBreakpoint)();
|
|
68
|
+
var input = (0, react_1.useContext)(styled_native_1.ThemeContext).input;
|
|
69
|
+
return (react_1.default.createElement(InputWrapper, { focused: focused },
|
|
70
|
+
iconLeft ? (react_1.default.createElement(StyledIcon, { name: iconLeft, size: (0, utils_1.pxToNumber)(input.icon.size), focused: focused, pointerEvents: "none", side: "left" })) : null,
|
|
71
|
+
react_1.default.createElement(StyledInput, __assign({}, rest, breakpoints, { iconLeft: !!iconLeft, iconRight: !!iconRight, style: style,
|
|
72
|
+
// @ts-ignore
|
|
73
|
+
ref: ref, onFocus: function (event) {
|
|
74
|
+
setFocused(true);
|
|
75
|
+
if (onFocus) {
|
|
76
|
+
onFocus(event);
|
|
77
|
+
}
|
|
78
|
+
}, onBlur: function (event) {
|
|
79
|
+
setFocused(false);
|
|
80
|
+
if (onBlur) {
|
|
81
|
+
onBlur(event);
|
|
82
|
+
}
|
|
83
|
+
} })),
|
|
84
|
+
iconRight ? (react_1.default.createElement(StyledIcon, { name: iconRight, size: (0, utils_1.pxToNumber)(input.icon.size), focused: focused, pointerEvents: "none", side: "right" })) : null));
|
|
85
|
+
});
|
|
86
|
+
exports.Input = Input;
|
|
87
|
+
var InputWrapper = styled_native_1.default.View(function (_a) {
|
|
88
|
+
var _b = _a.theme, input = _b.input, focusRing = _b.focusRing, focused = _a.focused;
|
|
89
|
+
return (0, styled_native_1.css)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n align-self: stretch;\n background-color: ", ";\n border-radius: ", ";\n border-width: 0px;\n border-style: solid;\n border-color: ", ";\n flex-direction: row;\n\n ", "\n "], ["\n align-self: stretch;\n background-color: ", ";\n border-radius: ", ";\n border-width: 0px;\n border-style: solid;\n border-color: ", ";\n flex-direction: row;\n\n ", "\n "])), input.background, input.borderRadius, focusRing.color, focused
|
|
90
|
+
? "\n border-width: ".concat(focusRing.width, ";\n padding: ").concat(focusRing.distance, ";\n margin: -").concat((0, utils_1.pxToNumber)(focusRing.width) +
|
|
91
|
+
(0, utils_1.pxToNumber)(focusRing.distance), "px;")
|
|
92
|
+
: null);
|
|
93
|
+
});
|
|
94
|
+
var StyledInput = styled_native_1.default.TextInput(function (_a) {
|
|
95
|
+
var input = _a.theme.input, invalid = _a.invalid, smallAndUp = _a.smallAndUp, iconLeft = _a.iconLeft, iconRight = _a.iconRight;
|
|
96
|
+
var fontSize = smallAndUp ? input.fontSize[1] : input.fontSize[0];
|
|
97
|
+
var errorStyles = invalid
|
|
98
|
+
? "\n border-width: ".concat(input.error.borderWidth, ";\n border-color: ").concat(input.error.color, ";\n ")
|
|
99
|
+
: '';
|
|
100
|
+
return (0, styled_native_1.css)(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n font-family: ", ";\n font-weight: ", ";\n color: ", ";\n font-size: ", ";\n height: ", ";\n line-height: 18px; /* Corrects for responsive line height in fixed height input */\n border: ", " solid ", ";\n background: ", ";\n border-radius: ", ";\n padding: ", ";\n flex: 1;\n\n ", "\n ", "\n\n ", "\n "], ["\n font-family: ", ";\n font-weight: ", ";\n color: ", ";\n font-size: ", ";\n height: ", ";\n line-height: 18px; /* Corrects for responsive line height in fixed height input */\n border: ", " solid ", ";\n background: ", ";\n border-radius: ", ";\n padding: ", ";\n flex: 1;\n\n ", "\n ", "\n\n ", "\n "])), input.fontFamily, input.fontWeight, input.color, fontSize, input.height, input.borderWidth, input.borderColor, input.background, input.borderRadius, input.padding, iconLeft ? "padding-left: ".concat(input.height, ";") : '', iconRight ? "padding-right: ".concat(input.height, ";") : '', errorStyles);
|
|
101
|
+
});
|
|
102
|
+
var templateObject_1, templateObject_2, templateObject_3;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { TextInput as RNTextInput } from 'react-native';
|
|
3
|
+
declare const NumberInput: React.ForwardRefExoticComponent<import("react-native").TextInputProps & {
|
|
4
|
+
invalid?: boolean | undefined;
|
|
5
|
+
stretch?: boolean | undefined;
|
|
6
|
+
iconLeft?: (string & {}) | import("../../providers").IconName | undefined;
|
|
7
|
+
iconRight?: (string & {}) | import("../../providers").IconName | undefined;
|
|
8
|
+
} & React.RefAttributes<RNTextInput>>;
|
|
9
|
+
export { NumberInput };
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __assign = (this && this.__assign) || function () {
|
|
3
|
+
__assign = Object.assign || function(t) {
|
|
4
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
+
s = arguments[i];
|
|
6
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
+
t[p] = s[p];
|
|
8
|
+
}
|
|
9
|
+
return t;
|
|
10
|
+
};
|
|
11
|
+
return __assign.apply(this, arguments);
|
|
12
|
+
};
|
|
13
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
14
|
+
if (k2 === undefined) k2 = k;
|
|
15
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
16
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
17
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
18
|
+
}
|
|
19
|
+
Object.defineProperty(o, k2, desc);
|
|
20
|
+
}) : (function(o, m, k, k2) {
|
|
21
|
+
if (k2 === undefined) k2 = k;
|
|
22
|
+
o[k2] = m[k];
|
|
23
|
+
}));
|
|
24
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
25
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
26
|
+
}) : function(o, v) {
|
|
27
|
+
o["default"] = v;
|
|
28
|
+
});
|
|
29
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
30
|
+
if (mod && mod.__esModule) return mod;
|
|
31
|
+
var result = {};
|
|
32
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
33
|
+
__setModuleDefault(result, mod);
|
|
34
|
+
return result;
|
|
35
|
+
};
|
|
36
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37
|
+
exports.NumberInput = void 0;
|
|
38
|
+
var react_1 = __importStar(require("react"));
|
|
39
|
+
var Input_1 = require("./Input");
|
|
40
|
+
var NumberInput = (0, react_1.forwardRef)(function (props, ref) { return (react_1.default.createElement(Input_1.Input, __assign({}, props, { keyboardType: "numeric", autoCapitalize: "none", autoCorrect: false, ref: ref }))); });
|
|
41
|
+
exports.NumberInput = NumberInput;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { TextInput as RNTextInput } from 'react-native';
|
|
3
|
+
declare const PasswordInput: React.ForwardRefExoticComponent<import("react-native").TextInputProps & {
|
|
4
|
+
invalid?: boolean | undefined;
|
|
5
|
+
stretch?: boolean | undefined;
|
|
6
|
+
iconLeft?: (string & {}) | import("../../providers").IconName | undefined;
|
|
7
|
+
iconRight?: (string & {}) | import("../../providers").IconName | undefined;
|
|
8
|
+
} & React.RefAttributes<RNTextInput>>;
|
|
9
|
+
export { PasswordInput };
|
|
@@ -0,0 +1,55 @@
|
|
|
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
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
37
|
+
var t = {};
|
|
38
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
39
|
+
t[p] = s[p];
|
|
40
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
41
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
42
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
43
|
+
t[p[i]] = s[p[i]];
|
|
44
|
+
}
|
|
45
|
+
return t;
|
|
46
|
+
};
|
|
47
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
48
|
+
exports.PasswordInput = void 0;
|
|
49
|
+
var react_1 = __importStar(require("react"));
|
|
50
|
+
var Input_1 = require("./Input");
|
|
51
|
+
var PasswordInput = (0, react_1.forwardRef)(function (_a, ref) {
|
|
52
|
+
var _b = _a.secureTextEntry, secureTextEntry = _b === void 0 ? true : _b, props = __rest(_a, ["secureTextEntry"]);
|
|
53
|
+
return (react_1.default.createElement(Input_1.Input, __assign({}, props, { keyboardType: "default", autoCapitalize: "none", autoCorrect: false, secureTextEntry: secureTextEntry, ref: ref })));
|
|
54
|
+
});
|
|
55
|
+
exports.PasswordInput = PasswordInput;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { TextInput } from 'react-native';
|
|
3
|
+
declare const TelInput: React.ForwardRefExoticComponent<import("react-native").TextInputProps & {
|
|
4
|
+
invalid?: boolean | undefined;
|
|
5
|
+
stretch?: boolean | undefined;
|
|
6
|
+
iconLeft?: (string & {}) | import("../../providers").IconName | undefined;
|
|
7
|
+
iconRight?: (string & {}) | import("../../providers").IconName | undefined;
|
|
8
|
+
} & React.RefAttributes<TextInput>>;
|
|
9
|
+
export { TelInput };
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __assign = (this && this.__assign) || function () {
|
|
3
|
+
__assign = Object.assign || function(t) {
|
|
4
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
+
s = arguments[i];
|
|
6
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
+
t[p] = s[p];
|
|
8
|
+
}
|
|
9
|
+
return t;
|
|
10
|
+
};
|
|
11
|
+
return __assign.apply(this, arguments);
|
|
12
|
+
};
|
|
13
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
14
|
+
if (k2 === undefined) k2 = k;
|
|
15
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
16
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
17
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
18
|
+
}
|
|
19
|
+
Object.defineProperty(o, k2, desc);
|
|
20
|
+
}) : (function(o, m, k, k2) {
|
|
21
|
+
if (k2 === undefined) k2 = k;
|
|
22
|
+
o[k2] = m[k];
|
|
23
|
+
}));
|
|
24
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
25
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
26
|
+
}) : function(o, v) {
|
|
27
|
+
o["default"] = v;
|
|
28
|
+
});
|
|
29
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
30
|
+
if (mod && mod.__esModule) return mod;
|
|
31
|
+
var result = {};
|
|
32
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
33
|
+
__setModuleDefault(result, mod);
|
|
34
|
+
return result;
|
|
35
|
+
};
|
|
36
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37
|
+
exports.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;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { TextInput as RNTextInput } from 'react-native';
|
|
3
|
+
declare const TextInput: React.ForwardRefExoticComponent<import("react-native").TextInputProps & {
|
|
4
|
+
invalid?: boolean | undefined;
|
|
5
|
+
stretch?: boolean | undefined;
|
|
6
|
+
iconLeft?: (string & {}) | import("../../providers").IconName | undefined;
|
|
7
|
+
iconRight?: (string & {}) | import("../../providers").IconName | undefined;
|
|
8
|
+
} & React.RefAttributes<RNTextInput>>;
|
|
9
|
+
export { TextInput };
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __assign = (this && this.__assign) || function () {
|
|
3
|
+
__assign = Object.assign || function(t) {
|
|
4
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
+
s = arguments[i];
|
|
6
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
+
t[p] = s[p];
|
|
8
|
+
}
|
|
9
|
+
return t;
|
|
10
|
+
};
|
|
11
|
+
return __assign.apply(this, arguments);
|
|
12
|
+
};
|
|
13
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
14
|
+
if (k2 === undefined) k2 = k;
|
|
15
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
16
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
17
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
18
|
+
}
|
|
19
|
+
Object.defineProperty(o, k2, desc);
|
|
20
|
+
}) : (function(o, m, k, k2) {
|
|
21
|
+
if (k2 === undefined) k2 = k;
|
|
22
|
+
o[k2] = m[k];
|
|
23
|
+
}));
|
|
24
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
25
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
26
|
+
}) : function(o, v) {
|
|
27
|
+
o["default"] = v;
|
|
28
|
+
});
|
|
29
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
30
|
+
if (mod && mod.__esModule) return mod;
|
|
31
|
+
var result = {};
|
|
32
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
33
|
+
__setModuleDefault(result, mod);
|
|
34
|
+
return result;
|
|
35
|
+
};
|
|
36
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37
|
+
exports.TextInput = void 0;
|
|
38
|
+
var react_1 = __importStar(require("react"));
|
|
39
|
+
var Input_1 = require("./Input");
|
|
40
|
+
var TextInput = (0, react_1.forwardRef)(function (props, ref) { return (react_1.default.createElement(Input_1.Input, __assign({}, props, { keyboardType: "default", ref: ref }))); });
|
|
41
|
+
exports.TextInput = TextInput;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React from '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: React.ForwardRefExoticComponent<import("react-native").TextInputProps & {
|
|
8
|
+
invalid?: boolean | undefined;
|
|
9
|
+
stretch?: boolean | undefined;
|
|
10
|
+
iconLeft?: (string & {}) | import("../../providers").IconName | undefined;
|
|
11
|
+
iconRight?: (string & {}) | import("../../providers").IconName | undefined;
|
|
12
|
+
} & {
|
|
13
|
+
rows?: number | undefined;
|
|
14
|
+
} & React.RefAttributes<RNTextInput>>;
|
|
15
|
+
export { TextareaInput, TextareaInputProps };
|
|
@@ -0,0 +1,64 @@
|
|
|
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
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
37
|
+
var t = {};
|
|
38
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
39
|
+
t[p] = s[p];
|
|
40
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
41
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
42
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
43
|
+
t[p[i]] = s[p[i]];
|
|
44
|
+
}
|
|
45
|
+
return t;
|
|
46
|
+
};
|
|
47
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
48
|
+
exports.TextareaInput = void 0;
|
|
49
|
+
var react_1 = __importStar(require("react"));
|
|
50
|
+
var hooks_1 = require("../../hooks");
|
|
51
|
+
var styled_native_1 = require("../../styled.native");
|
|
52
|
+
var theme_1 = require("../../theme");
|
|
53
|
+
var utils_1 = require("../../utils");
|
|
54
|
+
var Input_1 = require("./Input");
|
|
55
|
+
var TextareaInput = (0, react_1.forwardRef)(function (_a, ref) {
|
|
56
|
+
var _b = _a.rows, rows = _b === void 0 ? 3 : _b, rest = __rest(_a, ["rows"]);
|
|
57
|
+
var input = (0, styled_native_1.useTheme)().input;
|
|
58
|
+
var smallAndUp = (0, hooks_1.useBreakpoint)().smallAndUp;
|
|
59
|
+
var height = (0, utils_1.pxToNumber)(input.padding) * 2 +
|
|
60
|
+
(0, utils_1.pxToNumber)((0, theme_1.calculateLineHeight)(smallAndUp ? input.fontSize[1] : input.fontSize[0], input.lineHeight)) *
|
|
61
|
+
rows;
|
|
62
|
+
return (react_1.default.createElement(Input_1.Input, __assign({}, rest, { keyboardType: "default", multiline: true, textAlignVertical: "top", style: { height: height }, ref: ref })));
|
|
63
|
+
});
|
|
64
|
+
exports.TextareaInput = TextareaInput;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export { CurrencyInput } from './CurrencyInput';
|
|
2
|
+
export { EmailInput } from './EmailInput';
|
|
3
|
+
export { NumberInput } from './NumberInput';
|
|
4
|
+
export { TelInput } from './TelInput';
|
|
5
|
+
export { TextInput } from './TextInput';
|
|
6
|
+
export { PasswordInput } from './PasswordInput';
|
|
7
|
+
export { TextareaInput } from './TextareaInput';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TextareaInput = exports.PasswordInput = exports.TextInput = exports.TelInput = 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 TelInput_1 = require("./TelInput");
|
|
11
|
+
Object.defineProperty(exports, "TelInput", { enumerable: true, get: function () { return TelInput_1.TelInput; } });
|
|
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; } });
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { Text } from 'react-native';
|
|
3
|
+
declare const LabelText: import("react").ForwardRefExoticComponent<Pick<Omit<{
|
|
4
|
+
[x: string]: any;
|
|
5
|
+
[x: number]: any;
|
|
6
|
+
[x: symbol]: any;
|
|
7
|
+
} & {
|
|
8
|
+
theme?: import("../../theme/theme").Theme | undefined;
|
|
9
|
+
} & {
|
|
10
|
+
as?: string | import("react").ComponentType<any> | undefined;
|
|
11
|
+
forwardedAs?: string | import("react").ComponentType<any> | undefined;
|
|
12
|
+
}, import("../../hooks").BreakpointNames>, string | number | symbol> & import("react").RefAttributes<Text>>;
|
|
13
|
+
export { LabelText };
|
|
@@ -0,0 +1,41 @@
|
|
|
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.LabelText = void 0;
|
|
31
|
+
var styled_native_1 = __importStar(require("../../styled.native"));
|
|
32
|
+
var theme_1 = require("../../theme");
|
|
33
|
+
var utils_1 = require("../../utils");
|
|
34
|
+
var StyledLabelText = styled_native_1.default.Text(function (_a) {
|
|
35
|
+
var field = _a.theme.field, smallAndUp = _a.smallAndUp;
|
|
36
|
+
var fontSize = smallAndUp ? field.fontSize[1] : field.fontSize[0];
|
|
37
|
+
return (0, styled_native_1.css)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n font-family: ", ";\n line-height: ", ";\n font-weight: ", ";\n color: ", ";\n font-size: ", ";\n "], ["\n font-family: ", ";\n line-height: ", ";\n font-weight: ", ";\n color: ", ";\n font-size: ", ";\n "])), field.label.fontFamily, (0, theme_1.calculateLineHeight)(fontSize, field.lineHeight), field.label.fontWeight, field.label.color, fontSize);
|
|
38
|
+
});
|
|
39
|
+
var LabelText = (0, utils_1.styledComponentWithBreakpoints)(StyledLabelText);
|
|
40
|
+
exports.LabelText = LabelText;
|
|
41
|
+
var templateObject_1;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { LabelText } from './LabelText';
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.LabelText = void 0;
|
|
4
|
+
var LabelText_1 = require("./LabelText");
|
|
5
|
+
Object.defineProperty(exports, "LabelText", { enumerable: true, get: function () { return LabelText_1.LabelText; } });
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import React, { PropsWithChildren } from 'react';
|
|
2
|
+
import { Text, View, ViewProps } from 'react-native';
|
|
3
|
+
declare const Ul: ({ children, showBullets, ...rest }: React.PropsWithChildren<ViewProps & {
|
|
4
|
+
showBullets?: boolean | undefined;
|
|
5
|
+
}>) => JSX.Element;
|
|
6
|
+
declare const Ol: ({ children, ...rest }: PropsWithChildren<ViewProps>) => JSX.Element;
|
|
7
|
+
declare const Li: React.ForwardRefExoticComponent<Pick<Omit<{
|
|
8
|
+
[x: string]: any;
|
|
9
|
+
[x: number]: any;
|
|
10
|
+
[x: symbol]: any;
|
|
11
|
+
} & {
|
|
12
|
+
theme?: import("../../theme/theme").Theme | undefined;
|
|
13
|
+
} & {
|
|
14
|
+
as?: string | React.ComponentType<any> | undefined;
|
|
15
|
+
forwardedAs?: string | React.ComponentType<any> | undefined;
|
|
16
|
+
}, import("../../hooks").BreakpointNames>, string | number | symbol> & React.RefAttributes<Text>>;
|
|
17
|
+
declare const Dl: React.ForwardRefExoticComponent<Pick<Omit<{
|
|
18
|
+
[x: string]: any;
|
|
19
|
+
[x: number]: any;
|
|
20
|
+
[x: symbol]: any;
|
|
21
|
+
} & {
|
|
22
|
+
theme?: import("../../theme/theme").Theme | undefined;
|
|
23
|
+
} & {
|
|
24
|
+
as?: string | React.ComponentType<any> | undefined;
|
|
25
|
+
forwardedAs?: string | React.ComponentType<any> | undefined;
|
|
26
|
+
}, import("../../hooks").BreakpointNames>, string | number | symbol> & React.RefAttributes<View>>;
|
|
27
|
+
declare const Dt: ({ children, ...rest }: PropsWithChildren<ViewProps>) => JSX.Element;
|
|
28
|
+
declare const Dd: ({ children, ...rest }: PropsWithChildren<ViewProps>) => JSX.Element;
|
|
29
|
+
export { Ul, Ol, Li, Dl, Dt, Dd };
|