@ovotech/element-native 2.0.0-beta.1 → 2.0.0
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/package.json +1 -1
- package/dist/components/Accordion/Accordion.d.ts +0 -5
- package/dist/components/Accordion/Accordion.js +0 -139
- package/dist/components/Accordion/Group.d.ts +0 -3
- package/dist/components/Accordion/Group.js +0 -41
- package/dist/components/Accordion/Icon.d.ts +0 -4
- package/dist/components/Accordion/Icon.js +0 -68
- package/dist/components/Accordion/hooks.d.ts +0 -6
- package/dist/components/Accordion/hooks.js +0 -43
- package/dist/components/Accordion/index.d.ts +0 -4
- package/dist/components/Accordion/index.js +0 -9
- package/dist/components/Accordion/styles.d.ts +0 -46
- package/dist/components/Accordion/styles.js +0 -52
- package/dist/components/Accordion/types.d.ts +0 -20
- package/dist/components/Accordion/types.js +0 -2
- package/dist/components/Badge/Badge.d.ts +0 -12
- package/dist/components/Badge/Badge.js +0 -79
- package/dist/components/Badge/index.d.ts +0 -1
- package/dist/components/Badge/index.js +0 -5
- package/dist/components/CTAButton/CTAButton.d.ts +0 -24
- package/dist/components/CTAButton/CTAButton.js +0 -107
- package/dist/components/CTAButton/index.d.ts +0 -1
- package/dist/components/CTAButton/index.js +0 -8
- package/dist/components/CTALink/CTALink.d.ts +0 -12
- package/dist/components/CTALink/CTALink.js +0 -45
- package/dist/components/CTALink/index.d.ts +0 -1
- package/dist/components/CTALink/index.js +0 -7
- package/dist/components/Card/Card.d.ts +0 -7
- package/dist/components/Card/Card.js +0 -33
- package/dist/components/Card/index.d.ts +0 -1
- package/dist/components/Card/index.js +0 -5
- package/dist/components/Checkbox/Checkbox.d.ts +0 -12
- package/dist/components/Checkbox/Checkbox.js +0 -121
- package/dist/components/Checkbox/CheckboxField.d.ts +0 -9
- package/dist/components/Checkbox/CheckboxField.js +0 -73
- package/dist/components/Checkbox/index.d.ts +0 -2
- package/dist/components/Checkbox/index.js +0 -7
- package/dist/components/DataTable/DataTable.d.ts +0 -13
- package/dist/components/DataTable/DataTable.js +0 -134
- package/dist/components/DataTable/index.d.ts +0 -1
- package/dist/components/DataTable/index.js +0 -5
- package/dist/components/DateField/DateField.d.ts +0 -21
- package/dist/components/DateField/DateField.js +0 -109
- package/dist/components/DateField/index.d.ts +0 -1
- package/dist/components/DateField/index.js +0 -5
- package/dist/components/Disclosure/Disclosure.d.ts +0 -8
- package/dist/components/Disclosure/Disclosure.js +0 -86
- package/dist/components/Disclosure/index.d.ts +0 -1
- package/dist/components/Disclosure/index.js +0 -17
- package/dist/components/ErrorSummaryNotification/ErrorSummaryNotification.d.ts +0 -18
- package/dist/components/ErrorSummaryNotification/ErrorSummaryNotification.js +0 -73
- package/dist/components/ErrorSummaryNotification/index.d.ts +0 -1
- package/dist/components/ErrorSummaryNotification/index.js +0 -5
- package/dist/components/ErrorText/ErrorText.d.ts +0 -13
- package/dist/components/ErrorText/ErrorText.js +0 -41
- package/dist/components/ErrorText/index.d.ts +0 -1
- package/dist/components/ErrorText/index.js +0 -5
- package/dist/components/Field/Field.d.ts +0 -13
- package/dist/components/Field/Field.js +0 -94
- package/dist/components/Field/index.d.ts +0 -1
- package/dist/components/Field/index.js +0 -17
- package/dist/components/FormGroup/FormGroup.d.ts +0 -8
- package/dist/components/FormGroup/FormGroup.js +0 -43
- package/dist/components/FormGroup/index.d.ts +0 -1
- package/dist/components/FormGroup/index.js +0 -5
- package/dist/components/Grid/Col.d.ts +0 -12
- package/dist/components/Grid/Col.js +0 -58
- package/dist/components/Grid/Row.d.ts +0 -9
- package/dist/components/Grid/Row.js +0 -76
- package/dist/components/Grid/index.d.ts +0 -2
- package/dist/components/Grid/index.js +0 -7
- package/dist/components/Heading/Heading.d.ts +0 -6
- package/dist/components/Heading/Heading.js +0 -115
- package/dist/components/Heading/index.d.ts +0 -1
- package/dist/components/Heading/index.js +0 -8
- package/dist/components/HintText/HintText.d.ts +0 -13
- package/dist/components/HintText/HintText.js +0 -41
- package/dist/components/HintText/index.d.ts +0 -1
- package/dist/components/HintText/index.js +0 -5
- package/dist/components/Icon/Icon.d.ts +0 -11
- package/dist/components/Icon/Icon.js +0 -62
- package/dist/components/Icon/index.d.ts +0 -1
- package/dist/components/Icon/index.js +0 -5
- package/dist/components/Input/CurrencyInput.d.ts +0 -15
- package/dist/components/Input/CurrencyInput.js +0 -59
- package/dist/components/Input/EmailInput.d.ts +0 -9
- package/dist/components/Input/EmailInput.js +0 -41
- package/dist/components/Input/Input.d.ts +0 -16
- package/dist/components/Input/Input.js +0 -102
- package/dist/components/Input/NumberInput.d.ts +0 -9
- package/dist/components/Input/NumberInput.js +0 -41
- package/dist/components/Input/PasswordInput.d.ts +0 -9
- package/dist/components/Input/PasswordInput.js +0 -55
- package/dist/components/Input/TelInput.d.ts +0 -9
- package/dist/components/Input/TelInput.js +0 -41
- package/dist/components/Input/TextInput.d.ts +0 -9
- package/dist/components/Input/TextInput.js +0 -41
- package/dist/components/Input/TextareaInput.d.ts +0 -15
- package/dist/components/Input/TextareaInput.js +0 -64
- package/dist/components/Input/index.d.ts +0 -7
- package/dist/components/Input/index.js +0 -17
- package/dist/components/LabelText/LabelText.d.ts +0 -13
- package/dist/components/LabelText/LabelText.js +0 -41
- package/dist/components/LabelText/index.d.ts +0 -1
- package/dist/components/LabelText/index.js +0 -5
- package/dist/components/List/List.d.ts +0 -29
- package/dist/components/List/List.js +0 -154
- package/dist/components/List/index.d.ts +0 -1
- package/dist/components/List/index.js +0 -10
- package/dist/components/Margin/Margin.d.ts +0 -23
- package/dist/components/Margin/Margin.js +0 -53
- package/dist/components/Margin/index.d.ts +0 -1
- package/dist/components/Margin/index.js +0 -5
- package/dist/components/NavHeader/NavHeader.d.ts +0 -15
- package/dist/components/NavHeader/NavHeader.js +0 -93
- package/dist/components/NavHeader/index.d.ts +0 -1
- package/dist/components/NavHeader/index.js +0 -5
- package/dist/components/Notification/Notification.d.ts +0 -31
- package/dist/components/Notification/Notification.js +0 -123
- package/dist/components/Notification/index.d.ts +0 -1
- package/dist/components/Notification/index.js +0 -9
- package/dist/components/Radio/Radio.d.ts +0 -12
- package/dist/components/Radio/Radio.js +0 -114
- package/dist/components/Radio/RadioField.d.ts +0 -11
- package/dist/components/Radio/RadioField.js +0 -78
- package/dist/components/Radio/index.d.ts +0 -2
- package/dist/components/Radio/index.js +0 -7
- package/dist/components/SkeletonLoading/Skeleton.d.ts +0 -1
- package/dist/components/SkeletonLoading/Skeleton.js +0 -33
- package/dist/components/SkeletonLoading/SkeletonCTA.d.ts +0 -6
- package/dist/components/SkeletonLoading/SkeletonCTA.js +0 -41
- package/dist/components/SkeletonLoading/SkeletonCircle.d.ts +0 -6
- package/dist/components/SkeletonLoading/SkeletonCircle.js +0 -46
- package/dist/components/SkeletonLoading/SkeletonHeading.d.ts +0 -8
- package/dist/components/SkeletonLoading/SkeletonHeading.js +0 -41
- package/dist/components/SkeletonLoading/SkeletonText.d.ts +0 -6
- package/dist/components/SkeletonLoading/SkeletonText.js +0 -49
- package/dist/components/SkeletonLoading/index.d.ts +0 -5
- package/dist/components/SkeletonLoading/index.js +0 -21
- package/dist/components/Stack/Stack.d.ts +0 -10
- package/dist/components/Stack/Stack.js +0 -75
- package/dist/components/Stack/index.d.ts +0 -1
- package/dist/components/Stack/index.js +0 -5
- package/dist/components/Stretch/Stretch.d.ts +0 -7
- package/dist/components/Stretch/Stretch.js +0 -31
- package/dist/components/Stretch/index.d.ts +0 -1
- package/dist/components/Stretch/index.js +0 -17
- package/dist/components/SubLabelText/SubLabelText.d.ts +0 -13
- package/dist/components/SubLabelText/SubLabelText.js +0 -41
- package/dist/components/SubLabelText/index.d.ts +0 -1
- package/dist/components/SubLabelText/index.js +0 -5
- package/dist/components/SummaryList/SummaryList.d.ts +0 -10
- package/dist/components/SummaryList/SummaryList.js +0 -66
- package/dist/components/SummaryList/index.d.ts +0 -1
- package/dist/components/SummaryList/index.js +0 -6
- package/dist/components/Tabs/Tab.d.ts +0 -11
- package/dist/components/Tabs/Tab.js +0 -74
- package/dist/components/Tabs/TabList.d.ts +0 -1
- package/dist/components/Tabs/TabList.js +0 -74
- package/dist/components/Tabs/TabPanel.d.ts +0 -3
- package/dist/components/Tabs/TabPanel.js +0 -41
- package/dist/components/Tabs/Tabs.d.ts +0 -9
- package/dist/components/Tabs/Tabs.js +0 -95
- package/dist/components/Tabs/index.d.ts +0 -4
- package/dist/components/Tabs/index.js +0 -11
- package/dist/components/Text/Text.d.ts +0 -26
- package/dist/components/Text/Text.js +0 -96
- package/dist/components/Text/index.d.ts +0 -1
- package/dist/components/Text/index.js +0 -10
- package/dist/components/TextField/CurrencyField.d.ts +0 -11
- package/dist/components/TextField/CurrencyField.js +0 -56
- package/dist/components/TextField/EmailField.d.ts +0 -9
- package/dist/components/TextField/EmailField.js +0 -56
- package/dist/components/TextField/NumberField.d.ts +0 -9
- package/dist/components/TextField/NumberField.js +0 -56
- package/dist/components/TextField/PasswordField.d.ts +0 -9
- package/dist/components/TextField/PasswordField.js +0 -56
- package/dist/components/TextField/TelField.d.ts +0 -9
- package/dist/components/TextField/TelField.js +0 -56
- package/dist/components/TextField/TextField.d.ts +0 -9
- package/dist/components/TextField/TextField.js +0 -56
- package/dist/components/TextField/TextareaField.d.ts +0 -11
- package/dist/components/TextField/TextareaField.js +0 -56
- package/dist/components/TextField/index.d.ts +0 -7
- package/dist/components/TextField/index.js +0 -17
- package/dist/components/TextLink/TextLink.d.ts +0 -8
- package/dist/components/TextLink/TextLink.js +0 -75
- package/dist/components/TextLink/index.d.ts +0 -1
- package/dist/components/TextLink/index.js +0 -5
- package/dist/components/index.d.ts +0 -27
- package/dist/components/index.js +0 -43
- package/dist/esm/components/Accordion/Accordion.js +0 -111
- package/dist/esm/components/Accordion/Group.js +0 -14
- package/dist/esm/components/Accordion/Icon.js +0 -38
- package/dist/esm/components/Accordion/hooks.js +0 -16
- package/dist/esm/components/Accordion/index.js +0 -3
- package/dist/esm/components/Accordion/styles.js +0 -49
- package/dist/esm/components/Accordion/types.js +0 -1
- package/dist/esm/components/Badge/Badge.js +0 -49
- package/dist/esm/components/Badge/index.js +0 -1
- package/dist/esm/components/CTAButton/CTAButton.js +0 -78
- package/dist/esm/components/CTAButton/index.js +0 -1
- package/dist/esm/components/CTALink/CTALink.js +0 -17
- package/dist/esm/components/CTALink/index.js +0 -1
- package/dist/esm/components/Card/Card.js +0 -27
- package/dist/esm/components/Card/index.js +0 -1
- package/dist/esm/components/Checkbox/Checkbox.js +0 -95
- package/dist/esm/components/Checkbox/CheckboxField.js +0 -47
- package/dist/esm/components/Checkbox/index.js +0 -2
- package/dist/esm/components/DataTable/DataTable.js +0 -108
- package/dist/esm/components/DataTable/index.js +0 -1
- package/dist/esm/components/DateField/DateField.js +0 -83
- package/dist/esm/components/DateField/index.js +0 -1
- package/dist/esm/components/Disclosure/Disclosure.js +0 -60
- package/dist/esm/components/Disclosure/index.js +0 -1
- package/dist/esm/components/ErrorSummaryNotification/ErrorSummaryNotification.js +0 -47
- package/dist/esm/components/ErrorSummaryNotification/index.js +0 -1
- package/dist/esm/components/ErrorText/ErrorText.js +0 -15
- package/dist/esm/components/ErrorText/index.js +0 -1
- package/dist/esm/components/Field/Field.js +0 -68
- package/dist/esm/components/Field/index.js +0 -1
- package/dist/esm/components/FormGroup/FormGroup.js +0 -37
- package/dist/esm/components/FormGroup/index.js +0 -1
- package/dist/esm/components/Grid/Col.js +0 -32
- package/dist/esm/components/Grid/Row.js +0 -47
- package/dist/esm/components/Grid/index.js +0 -2
- package/dist/esm/components/Heading/Heading.js +0 -82
- package/dist/esm/components/Heading/index.js +0 -1
- package/dist/esm/components/HintText/HintText.js +0 -15
- package/dist/esm/components/HintText/index.js +0 -1
- package/dist/esm/components/Icon/Icon.js +0 -35
- package/dist/esm/components/Icon/index.js +0 -1
- package/dist/esm/components/Input/CurrencyInput.js +0 -33
- package/dist/esm/components/Input/EmailInput.js +0 -15
- package/dist/esm/components/Input/Input.js +0 -76
- package/dist/esm/components/Input/NumberInput.js +0 -15
- package/dist/esm/components/Input/PasswordInput.js +0 -29
- package/dist/esm/components/Input/TelInput.js +0 -15
- package/dist/esm/components/Input/TextInput.js +0 -15
- package/dist/esm/components/Input/TextareaInput.js +0 -38
- package/dist/esm/components/Input/index.js +0 -7
- package/dist/esm/components/LabelText/LabelText.js +0 -15
- package/dist/esm/components/LabelText/index.js +0 -1
- package/dist/esm/components/List/List.js +0 -123
- package/dist/esm/components/List/index.js +0 -1
- package/dist/esm/components/Margin/Margin.js +0 -47
- package/dist/esm/components/Margin/index.js +0 -1
- package/dist/esm/components/NavHeader/NavHeader.js +0 -63
- package/dist/esm/components/NavHeader/index.js +0 -1
- package/dist/esm/components/Notification/Notification.js +0 -97
- package/dist/esm/components/Notification/index.js +0 -1
- package/dist/esm/components/Radio/Radio.js +0 -85
- package/dist/esm/components/Radio/RadioField.js +0 -52
- package/dist/esm/components/Radio/index.js +0 -2
- package/dist/esm/components/SkeletonLoading/Skeleton.js +0 -7
- package/dist/esm/components/SkeletonLoading/SkeletonCTA.js +0 -34
- package/dist/esm/components/SkeletonLoading/SkeletonCircle.js +0 -39
- package/dist/esm/components/SkeletonLoading/SkeletonHeading.js +0 -34
- package/dist/esm/components/SkeletonLoading/SkeletonText.js +0 -42
- package/dist/esm/components/SkeletonLoading/index.js +0 -5
- package/dist/esm/components/Stack/Stack.js +0 -46
- package/dist/esm/components/Stack/index.js +0 -1
- package/dist/esm/components/Stretch/Stretch.js +0 -24
- package/dist/esm/components/Stretch/index.js +0 -1
- package/dist/esm/components/SubLabelText/SubLabelText.js +0 -15
- package/dist/esm/components/SubLabelText/index.js +0 -1
- package/dist/esm/components/SummaryList/SummaryList.js +0 -39
- package/dist/esm/components/SummaryList/index.js +0 -1
- package/dist/esm/components/Tabs/Tab.js +0 -45
- package/dist/esm/components/Tabs/TabList.js +0 -48
- package/dist/esm/components/Tabs/TabPanel.js +0 -34
- package/dist/esm/components/Tabs/Tabs.js +0 -69
- package/dist/esm/components/Tabs/index.js +0 -4
- package/dist/esm/components/Text/Text.js +0 -69
- package/dist/esm/components/Text/index.js +0 -1
- package/dist/esm/components/TextField/CurrencyField.js +0 -30
- package/dist/esm/components/TextField/EmailField.js +0 -30
- package/dist/esm/components/TextField/NumberField.js +0 -30
- package/dist/esm/components/TextField/PasswordField.js +0 -30
- package/dist/esm/components/TextField/TelField.js +0 -30
- package/dist/esm/components/TextField/TextField.js +0 -30
- package/dist/esm/components/TextField/TextareaField.js +0 -30
- package/dist/esm/components/TextField/index.js +0 -7
- package/dist/esm/components/TextLink/TextLink.js +0 -49
- package/dist/esm/components/TextLink/index.js +0 -1
- package/dist/esm/components/index.js +0 -27
- package/dist/esm/hooks/index.js +0 -2
- package/dist/esm/hooks/use-breakpoint.js +0 -12
- package/dist/esm/hooks/use-full-width.js +0 -16
- package/dist/esm/index.js +0 -3
- package/dist/esm/providers/IconsProvider.js +0 -65
- package/dist/esm/providers/icons/ArrowDown.js +0 -15
- package/dist/esm/providers/icons/ArrowLeft.js +0 -15
- package/dist/esm/providers/icons/ArrowRight.js +0 -15
- package/dist/esm/providers/icons/ArrowUp.js +0 -15
- package/dist/esm/providers/icons/CaretDown.js +0 -15
- package/dist/esm/providers/icons/CaretLeft.js +0 -15
- package/dist/esm/providers/icons/CaretRight.js +0 -15
- package/dist/esm/providers/icons/CaretUp.js +0 -15
- package/dist/esm/providers/icons/Chart.js +0 -15
- package/dist/esm/providers/icons/Check.js +0 -15
- package/dist/esm/providers/icons/ChevronDown.js +0 -15
- package/dist/esm/providers/icons/ChevronLeft.js +0 -15
- package/dist/esm/providers/icons/ChevronLeftSmall.js +0 -15
- package/dist/esm/providers/icons/ChevronLeftSmallFirst.js +0 -15
- package/dist/esm/providers/icons/ChevronRight.js +0 -15
- package/dist/esm/providers/icons/ChevronRightSmall.js +0 -15
- package/dist/esm/providers/icons/ChevronRightSmallLast.js +0 -15
- package/dist/esm/providers/icons/ChevronUp.js +0 -15
- package/dist/esm/providers/icons/Cross.js +0 -15
- package/dist/esm/providers/icons/Dollar.js +0 -15
- package/dist/esm/providers/icons/Download.js +0 -15
- package/dist/esm/providers/icons/Electricity.js +0 -15
- package/dist/esm/providers/icons/Euro.js +0 -15
- package/dist/esm/providers/icons/Gas.js +0 -16
- package/dist/esm/providers/icons/Help.js +0 -15
- package/dist/esm/providers/icons/Hide.js +0 -15
- package/dist/esm/providers/icons/HidePassword.js +0 -15
- package/dist/esm/providers/icons/Home.js +0 -15
- package/dist/esm/providers/icons/Info.js +0 -15
- package/dist/esm/providers/icons/Link.js +0 -16
- package/dist/esm/providers/icons/Logo.js +0 -15
- package/dist/esm/providers/icons/Minus.js +0 -15
- package/dist/esm/providers/icons/NewWindow.js +0 -15
- package/dist/esm/providers/icons/Payment.js +0 -15
- package/dist/esm/providers/icons/PaymentCard.js +0 -15
- package/dist/esm/providers/icons/Plus.js +0 -15
- package/dist/esm/providers/icons/Pound.js +0 -15
- package/dist/esm/providers/icons/Search.js +0 -15
- package/dist/esm/providers/icons/Show.js +0 -15
- package/dist/esm/providers/icons/ShowPassword.js +0 -15
- package/dist/esm/providers/icons/Usage.js +0 -15
- package/dist/esm/providers/icons/User.js +0 -15
- package/dist/esm/providers/icons/index.js +0 -38
- package/dist/esm/providers/index.js +0 -2
- package/dist/esm/providers/types.js +0 -1
- package/dist/esm/styled.native.js +0 -4
- package/dist/esm/theme/create-theme.js +0 -503
- package/dist/esm/theme/index.js +0 -8
- package/dist/esm/theme/theme.js +0 -1
- package/dist/esm/utils/index.js +0 -1
- package/dist/esm/utils/utils.js +0 -93
- package/dist/hooks/index.d.ts +0 -2
- package/dist/hooks/index.js +0 -18
- package/dist/hooks/use-breakpoint.d.ts +0 -7
- package/dist/hooks/use-breakpoint.js +0 -16
- package/dist/hooks/use-full-width.d.ts +0 -2
- package/dist/hooks/use-full-width.js +0 -20
- package/dist/index.d.ts +0 -3
- package/dist/index.js +0 -19
- package/dist/providers/IconsProvider.d.ts +0 -8
- package/dist/providers/IconsProvider.js +0 -93
- package/dist/providers/icons/ArrowDown.d.ts +0 -2
- package/dist/providers/icons/ArrowDown.js +0 -22
- package/dist/providers/icons/ArrowLeft.d.ts +0 -2
- package/dist/providers/icons/ArrowLeft.js +0 -22
- package/dist/providers/icons/ArrowRight.d.ts +0 -2
- package/dist/providers/icons/ArrowRight.js +0 -22
- package/dist/providers/icons/ArrowUp.d.ts +0 -2
- package/dist/providers/icons/ArrowUp.js +0 -22
- package/dist/providers/icons/CaretDown.d.ts +0 -2
- package/dist/providers/icons/CaretDown.js +0 -22
- package/dist/providers/icons/CaretLeft.d.ts +0 -2
- package/dist/providers/icons/CaretLeft.js +0 -22
- package/dist/providers/icons/CaretRight.d.ts +0 -2
- package/dist/providers/icons/CaretRight.js +0 -22
- package/dist/providers/icons/CaretUp.d.ts +0 -2
- package/dist/providers/icons/CaretUp.js +0 -22
- package/dist/providers/icons/Chart.d.ts +0 -2
- package/dist/providers/icons/Chart.js +0 -22
- package/dist/providers/icons/Check.d.ts +0 -2
- package/dist/providers/icons/Check.js +0 -22
- package/dist/providers/icons/ChevronDown.d.ts +0 -2
- package/dist/providers/icons/ChevronDown.js +0 -22
- package/dist/providers/icons/ChevronLeft.d.ts +0 -2
- package/dist/providers/icons/ChevronLeft.js +0 -22
- package/dist/providers/icons/ChevronLeftSmall.d.ts +0 -2
- package/dist/providers/icons/ChevronLeftSmall.js +0 -22
- package/dist/providers/icons/ChevronLeftSmallFirst.d.ts +0 -2
- package/dist/providers/icons/ChevronLeftSmallFirst.js +0 -22
- package/dist/providers/icons/ChevronRight.d.ts +0 -2
- package/dist/providers/icons/ChevronRight.js +0 -22
- package/dist/providers/icons/ChevronRightSmall.d.ts +0 -2
- package/dist/providers/icons/ChevronRightSmall.js +0 -22
- package/dist/providers/icons/ChevronRightSmallLast.d.ts +0 -2
- package/dist/providers/icons/ChevronRightSmallLast.js +0 -22
- package/dist/providers/icons/ChevronUp.d.ts +0 -2
- package/dist/providers/icons/ChevronUp.js +0 -22
- package/dist/providers/icons/Cross.d.ts +0 -2
- package/dist/providers/icons/Cross.js +0 -22
- package/dist/providers/icons/Dollar.d.ts +0 -2
- package/dist/providers/icons/Dollar.js +0 -22
- package/dist/providers/icons/Download.d.ts +0 -2
- package/dist/providers/icons/Download.js +0 -22
- package/dist/providers/icons/Electricity.d.ts +0 -2
- package/dist/providers/icons/Electricity.js +0 -22
- package/dist/providers/icons/Euro.d.ts +0 -2
- package/dist/providers/icons/Euro.js +0 -22
- package/dist/providers/icons/Gas.d.ts +0 -2
- package/dist/providers/icons/Gas.js +0 -23
- package/dist/providers/icons/Help.d.ts +0 -2
- package/dist/providers/icons/Help.js +0 -22
- package/dist/providers/icons/Hide.d.ts +0 -2
- package/dist/providers/icons/Hide.js +0 -22
- package/dist/providers/icons/HidePassword.d.ts +0 -2
- package/dist/providers/icons/HidePassword.js +0 -22
- package/dist/providers/icons/Home.d.ts +0 -2
- package/dist/providers/icons/Home.js +0 -22
- package/dist/providers/icons/Info.d.ts +0 -2
- package/dist/providers/icons/Info.js +0 -22
- package/dist/providers/icons/Link.d.ts +0 -2
- package/dist/providers/icons/Link.js +0 -23
- package/dist/providers/icons/Logo.d.ts +0 -2
- package/dist/providers/icons/Logo.js +0 -22
- package/dist/providers/icons/Minus.d.ts +0 -2
- package/dist/providers/icons/Minus.js +0 -22
- package/dist/providers/icons/NewWindow.d.ts +0 -2
- package/dist/providers/icons/NewWindow.js +0 -22
- package/dist/providers/icons/Payment.d.ts +0 -2
- package/dist/providers/icons/Payment.js +0 -22
- package/dist/providers/icons/PaymentCard.d.ts +0 -2
- package/dist/providers/icons/PaymentCard.js +0 -22
- package/dist/providers/icons/Plus.d.ts +0 -2
- package/dist/providers/icons/Plus.js +0 -22
- package/dist/providers/icons/Pound.d.ts +0 -2
- package/dist/providers/icons/Pound.js +0 -22
- package/dist/providers/icons/Search.d.ts +0 -2
- package/dist/providers/icons/Search.js +0 -22
- package/dist/providers/icons/Show.d.ts +0 -2
- package/dist/providers/icons/Show.js +0 -22
- package/dist/providers/icons/ShowPassword.d.ts +0 -2
- package/dist/providers/icons/ShowPassword.js +0 -22
- package/dist/providers/icons/Usage.d.ts +0 -2
- package/dist/providers/icons/Usage.js +0 -22
- package/dist/providers/icons/User.d.ts +0 -2
- package/dist/providers/icons/User.js +0 -22
- package/dist/providers/icons/index.d.ts +0 -38
- package/dist/providers/icons/index.js +0 -54
- package/dist/providers/index.d.ts +0 -2
- package/dist/providers/index.js +0 -18
- package/dist/providers/types.d.ts +0 -4
- package/dist/providers/types.js +0 -2
- package/dist/styled.native.d.ts +0 -6
- package/dist/styled.native.js +0 -33
- package/dist/theme/create-theme.d.ts +0 -18
- package/dist/theme/create-theme.js +0 -510
- package/dist/theme/index.d.ts +0 -5
- package/dist/theme/index.js +0 -26
- package/dist/theme/theme.d.ts +0 -301
- package/dist/theme/theme.js +0 -2
- package/dist/utils/index.d.ts +0 -1
- package/dist/utils/index.js +0 -17
- package/dist/utils/utils.d.ts +0 -15
- package/dist/utils/utils.js +0 -126
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
|
|
2
|
-
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
|
3
|
-
return cooked;
|
|
4
|
-
};
|
|
5
|
-
import styled, { css } from '../../styled.native';
|
|
6
|
-
import { calculateLineHeight } from '../../theme';
|
|
7
|
-
import { styledComponentWithBreakpoints } from '../../utils';
|
|
8
|
-
var StyledHintText = styled.Text(function (_a) {
|
|
9
|
-
var field = _a.theme.field, smallAndUp = _a.smallAndUp;
|
|
10
|
-
var fontSize = smallAndUp ? field.fontSize[1] : field.fontSize[0];
|
|
11
|
-
return css(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n font-family: ", ";\n font-weight: ", ";\n font-size: ", ";\n line-height: ", ";\n color: ", ";\n "], ["\n font-family: ", ";\n font-weight: ", ";\n font-size: ", ";\n line-height: ", ";\n color: ", ";\n "])), field.fontFamily, field.hint.fontWeight, fontSize, calculateLineHeight(fontSize, field.lineHeight), field.hint.color);
|
|
12
|
-
});
|
|
13
|
-
var HintText = styledComponentWithBreakpoints(StyledHintText);
|
|
14
|
-
export { HintText };
|
|
15
|
-
var templateObject_1;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { HintText } from './HintText';
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
var __assign = (this && this.__assign) || function () {
|
|
2
|
-
__assign = Object.assign || function(t) {
|
|
3
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
-
s = arguments[i];
|
|
5
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
-
t[p] = s[p];
|
|
7
|
-
}
|
|
8
|
-
return t;
|
|
9
|
-
};
|
|
10
|
-
return __assign.apply(this, arguments);
|
|
11
|
-
};
|
|
12
|
-
var __rest = (this && this.__rest) || function (s, e) {
|
|
13
|
-
var t = {};
|
|
14
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
15
|
-
t[p] = s[p];
|
|
16
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
17
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
18
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
19
|
-
t[p[i]] = s[p[i]];
|
|
20
|
-
}
|
|
21
|
-
return t;
|
|
22
|
-
};
|
|
23
|
-
import React, { useContext } from 'react';
|
|
24
|
-
import { useIcons } from '../../providers';
|
|
25
|
-
import { ThemeContext } from '../../styled.native';
|
|
26
|
-
export var Icon = function (_a) {
|
|
27
|
-
var name = _a.name, size = _a.size, color = _a.color, testID = _a.testID, rest = __rest(_a, ["name", "size", "color", "testID"]);
|
|
28
|
-
var icons = useIcons();
|
|
29
|
-
var colors = useContext(ThemeContext).colors;
|
|
30
|
-
// @ts-ignore to support additional icons.
|
|
31
|
-
var Svg = name && icons[name];
|
|
32
|
-
return Svg ? (React.createElement(Svg, __assign({ testID: testID ? testID : "element-icon".concat(name ? "-".concat(name) : ''),
|
|
33
|
-
// @ts-ignore this is valid.
|
|
34
|
-
color: color !== null && color !== void 0 ? color : colors.body, width: size, height: size }, rest))) : null;
|
|
35
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { Icon } from './Icon';
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
var __assign = (this && this.__assign) || function () {
|
|
2
|
-
__assign = Object.assign || function(t) {
|
|
3
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
-
s = arguments[i];
|
|
5
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
-
t[p] = s[p];
|
|
7
|
-
}
|
|
8
|
-
return t;
|
|
9
|
-
};
|
|
10
|
-
return __assign.apply(this, arguments);
|
|
11
|
-
};
|
|
12
|
-
var __rest = (this && this.__rest) || function (s, e) {
|
|
13
|
-
var t = {};
|
|
14
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
15
|
-
t[p] = s[p];
|
|
16
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
17
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
18
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
19
|
-
t[p[i]] = s[p[i]];
|
|
20
|
-
}
|
|
21
|
-
return t;
|
|
22
|
-
};
|
|
23
|
-
import React, { forwardRef, createRef } from 'react';
|
|
24
|
-
import { mergeRefs } from '../../utils';
|
|
25
|
-
import { NumberInput } from './NumberInput';
|
|
26
|
-
var CurrencyInput = forwardRef(function (_a, ref) {
|
|
27
|
-
var _b = _a.currency, currency = _b === void 0 ? 'GBP' : _b, invalid = _a.invalid, _c = _a.accessibilityLabel, accessibilityLabel = _c === void 0 ? '' : _c, rest = __rest(_a, ["currency", "invalid", "accessibilityLabel"]);
|
|
28
|
-
var inputRef = createRef();
|
|
29
|
-
var updatedAccessibilityLabel = "".concat(accessibilityLabel, " ").concat(currency === 'GBP' ? 'pounds' : currency === 'EUR' ? 'euro' : 'dollar').trim();
|
|
30
|
-
var iconName = currency === 'GBP' ? 'pound' : currency === 'EUR' ? 'euro' : 'dollar';
|
|
31
|
-
return (React.createElement(NumberInput, __assign({}, rest, { invalid: invalid, accessibilityLabel: updatedAccessibilityLabel, ref: mergeRefs(ref, inputRef), iconLeft: iconName })));
|
|
32
|
-
});
|
|
33
|
-
export { CurrencyInput };
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
var __assign = (this && this.__assign) || function () {
|
|
2
|
-
__assign = Object.assign || function(t) {
|
|
3
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
-
s = arguments[i];
|
|
5
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
-
t[p] = s[p];
|
|
7
|
-
}
|
|
8
|
-
return t;
|
|
9
|
-
};
|
|
10
|
-
return __assign.apply(this, arguments);
|
|
11
|
-
};
|
|
12
|
-
import React, { forwardRef } from 'react';
|
|
13
|
-
import { Input } from './Input';
|
|
14
|
-
var EmailInput = forwardRef(function (props, ref) { return (React.createElement(Input, __assign({}, props, { keyboardType: "email-address", autoCapitalize: "none", autoCorrect: false, ref: ref }))); });
|
|
15
|
-
export { EmailInput };
|
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
|
|
2
|
-
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
|
3
|
-
return cooked;
|
|
4
|
-
};
|
|
5
|
-
var __assign = (this && this.__assign) || function () {
|
|
6
|
-
__assign = Object.assign || function(t) {
|
|
7
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
8
|
-
s = arguments[i];
|
|
9
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
10
|
-
t[p] = s[p];
|
|
11
|
-
}
|
|
12
|
-
return t;
|
|
13
|
-
};
|
|
14
|
-
return __assign.apply(this, arguments);
|
|
15
|
-
};
|
|
16
|
-
var __rest = (this && this.__rest) || function (s, e) {
|
|
17
|
-
var t = {};
|
|
18
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
19
|
-
t[p] = s[p];
|
|
20
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
21
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
22
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
23
|
-
t[p[i]] = s[p[i]];
|
|
24
|
-
}
|
|
25
|
-
return t;
|
|
26
|
-
};
|
|
27
|
-
import React, { useState, forwardRef, useContext } from 'react';
|
|
28
|
-
import { useBreakpoint } from '../../hooks';
|
|
29
|
-
import styled, { css, ThemeContext } from '../../styled.native';
|
|
30
|
-
import { pxToNumber } from '../../utils';
|
|
31
|
-
import { Icon } from '../Icon/Icon';
|
|
32
|
-
var StyledIcon = styled(Icon)(function (_a) {
|
|
33
|
-
var _b = _a.theme, input = _b.input, focusRing = _b.focusRing, side = _a.side, focused = _a.focused;
|
|
34
|
-
var distance = (pxToNumber(input.height) - pxToNumber(input.icon.size)) / 2 +
|
|
35
|
-
(focused ? pxToNumber(focusRing.distance) : 0);
|
|
36
|
-
return 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") : '');
|
|
37
|
-
});
|
|
38
|
-
var Input = forwardRef(function (_a, ref) {
|
|
39
|
-
var onFocus = _a.onFocus, onBlur = _a.onBlur, style = _a.style, iconLeft = _a.iconLeft, iconRight = _a.iconRight, rest = __rest(_a, ["onFocus", "onBlur", "style", "iconLeft", "iconRight"]);
|
|
40
|
-
var _b = useState(false), focused = _b[0], setFocused = _b[1];
|
|
41
|
-
var breakpoints = useBreakpoint();
|
|
42
|
-
var input = useContext(ThemeContext).input;
|
|
43
|
-
return (React.createElement(InputWrapper, { focused: focused },
|
|
44
|
-
iconLeft ? (React.createElement(StyledIcon, { name: iconLeft, size: pxToNumber(input.icon.size), focused: focused, pointerEvents: "none", side: "left" })) : null,
|
|
45
|
-
React.createElement(StyledInput, __assign({}, rest, breakpoints, { iconLeft: !!iconLeft, iconRight: !!iconRight, style: style,
|
|
46
|
-
// @ts-ignore
|
|
47
|
-
ref: ref, onFocus: function (event) {
|
|
48
|
-
setFocused(true);
|
|
49
|
-
if (onFocus) {
|
|
50
|
-
onFocus(event);
|
|
51
|
-
}
|
|
52
|
-
}, onBlur: function (event) {
|
|
53
|
-
setFocused(false);
|
|
54
|
-
if (onBlur) {
|
|
55
|
-
onBlur(event);
|
|
56
|
-
}
|
|
57
|
-
} })),
|
|
58
|
-
iconRight ? (React.createElement(StyledIcon, { name: iconRight, size: pxToNumber(input.icon.size), focused: focused, pointerEvents: "none", side: "right" })) : null));
|
|
59
|
-
});
|
|
60
|
-
var InputWrapper = styled.View(function (_a) {
|
|
61
|
-
var _b = _a.theme, input = _b.input, focusRing = _b.focusRing, focused = _a.focused;
|
|
62
|
-
return 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
|
|
63
|
-
? "\n border-width: ".concat(focusRing.width, ";\n padding: ").concat(focusRing.distance, ";\n margin: -").concat(pxToNumber(focusRing.width) +
|
|
64
|
-
pxToNumber(focusRing.distance), "px;")
|
|
65
|
-
: null);
|
|
66
|
-
});
|
|
67
|
-
var StyledInput = styled.TextInput(function (_a) {
|
|
68
|
-
var input = _a.theme.input, invalid = _a.invalid, smallAndUp = _a.smallAndUp, iconLeft = _a.iconLeft, iconRight = _a.iconRight;
|
|
69
|
-
var fontSize = smallAndUp ? input.fontSize[1] : input.fontSize[0];
|
|
70
|
-
var errorStyles = invalid
|
|
71
|
-
? "\n border-width: ".concat(input.error.borderWidth, ";\n border-color: ").concat(input.error.color, ";\n ")
|
|
72
|
-
: '';
|
|
73
|
-
return 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);
|
|
74
|
-
});
|
|
75
|
-
export { Input };
|
|
76
|
-
var templateObject_1, templateObject_2, templateObject_3;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
var __assign = (this && this.__assign) || function () {
|
|
2
|
-
__assign = Object.assign || function(t) {
|
|
3
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
-
s = arguments[i];
|
|
5
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
-
t[p] = s[p];
|
|
7
|
-
}
|
|
8
|
-
return t;
|
|
9
|
-
};
|
|
10
|
-
return __assign.apply(this, arguments);
|
|
11
|
-
};
|
|
12
|
-
import React, { forwardRef } from 'react';
|
|
13
|
-
import { Input } from './Input';
|
|
14
|
-
var NumberInput = forwardRef(function (props, ref) { return (React.createElement(Input, __assign({}, props, { keyboardType: "numeric", autoCapitalize: "none", autoCorrect: false, ref: ref }))); });
|
|
15
|
-
export { NumberInput };
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
var __assign = (this && this.__assign) || function () {
|
|
2
|
-
__assign = Object.assign || function(t) {
|
|
3
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
-
s = arguments[i];
|
|
5
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
-
t[p] = s[p];
|
|
7
|
-
}
|
|
8
|
-
return t;
|
|
9
|
-
};
|
|
10
|
-
return __assign.apply(this, arguments);
|
|
11
|
-
};
|
|
12
|
-
var __rest = (this && this.__rest) || function (s, e) {
|
|
13
|
-
var t = {};
|
|
14
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
15
|
-
t[p] = s[p];
|
|
16
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
17
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
18
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
19
|
-
t[p[i]] = s[p[i]];
|
|
20
|
-
}
|
|
21
|
-
return t;
|
|
22
|
-
};
|
|
23
|
-
import React, { forwardRef } from 'react';
|
|
24
|
-
import { Input } from './Input';
|
|
25
|
-
var PasswordInput = forwardRef(function (_a, ref) {
|
|
26
|
-
var _b = _a.secureTextEntry, secureTextEntry = _b === void 0 ? true : _b, props = __rest(_a, ["secureTextEntry"]);
|
|
27
|
-
return (React.createElement(Input, __assign({}, props, { keyboardType: "default", autoCapitalize: "none", autoCorrect: false, secureTextEntry: secureTextEntry, ref: ref })));
|
|
28
|
-
});
|
|
29
|
-
export { PasswordInput };
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
var __assign = (this && this.__assign) || function () {
|
|
2
|
-
__assign = Object.assign || function(t) {
|
|
3
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
-
s = arguments[i];
|
|
5
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
-
t[p] = s[p];
|
|
7
|
-
}
|
|
8
|
-
return t;
|
|
9
|
-
};
|
|
10
|
-
return __assign.apply(this, arguments);
|
|
11
|
-
};
|
|
12
|
-
import React, { forwardRef } from 'react';
|
|
13
|
-
import { Input } from './Input';
|
|
14
|
-
var TelInput = forwardRef(function (props, ref) { return (React.createElement(Input, __assign({}, props, { keyboardType: "phone-pad", autoCapitalize: "none", autoCorrect: false, ref: ref }))); });
|
|
15
|
-
export { TelInput };
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
var __assign = (this && this.__assign) || function () {
|
|
2
|
-
__assign = Object.assign || function(t) {
|
|
3
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
-
s = arguments[i];
|
|
5
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
-
t[p] = s[p];
|
|
7
|
-
}
|
|
8
|
-
return t;
|
|
9
|
-
};
|
|
10
|
-
return __assign.apply(this, arguments);
|
|
11
|
-
};
|
|
12
|
-
import React, { forwardRef } from 'react';
|
|
13
|
-
import { Input } from './Input';
|
|
14
|
-
var TextInput = forwardRef(function (props, ref) { return (React.createElement(Input, __assign({}, props, { keyboardType: "default", ref: ref }))); });
|
|
15
|
-
export { TextInput };
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
var __assign = (this && this.__assign) || function () {
|
|
2
|
-
__assign = Object.assign || function(t) {
|
|
3
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
-
s = arguments[i];
|
|
5
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
-
t[p] = s[p];
|
|
7
|
-
}
|
|
8
|
-
return t;
|
|
9
|
-
};
|
|
10
|
-
return __assign.apply(this, arguments);
|
|
11
|
-
};
|
|
12
|
-
var __rest = (this && this.__rest) || function (s, e) {
|
|
13
|
-
var t = {};
|
|
14
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
15
|
-
t[p] = s[p];
|
|
16
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
17
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
18
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
19
|
-
t[p[i]] = s[p[i]];
|
|
20
|
-
}
|
|
21
|
-
return t;
|
|
22
|
-
};
|
|
23
|
-
import React, { forwardRef } from 'react';
|
|
24
|
-
import { useBreakpoint } from '../../hooks';
|
|
25
|
-
import { useTheme } from '../../styled.native';
|
|
26
|
-
import { calculateLineHeight } from '../../theme';
|
|
27
|
-
import { pxToNumber } from '../../utils';
|
|
28
|
-
import { Input } from './Input';
|
|
29
|
-
var TextareaInput = forwardRef(function (_a, ref) {
|
|
30
|
-
var _b = _a.rows, rows = _b === void 0 ? 3 : _b, rest = __rest(_a, ["rows"]);
|
|
31
|
-
var input = useTheme().input;
|
|
32
|
-
var smallAndUp = useBreakpoint().smallAndUp;
|
|
33
|
-
var height = pxToNumber(input.padding) * 2 +
|
|
34
|
-
pxToNumber(calculateLineHeight(smallAndUp ? input.fontSize[1] : input.fontSize[0], input.lineHeight)) *
|
|
35
|
-
rows;
|
|
36
|
-
return (React.createElement(Input, __assign({}, rest, { keyboardType: "default", multiline: true, textAlignVertical: "top", style: { height: height }, ref: ref })));
|
|
37
|
-
});
|
|
38
|
-
export { TextareaInput };
|
|
@@ -1,7 +0,0 @@
|
|
|
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';
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
|
|
2
|
-
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
|
3
|
-
return cooked;
|
|
4
|
-
};
|
|
5
|
-
import styled, { css } from '../../styled.native';
|
|
6
|
-
import { calculateLineHeight } from '../../theme';
|
|
7
|
-
import { styledComponentWithBreakpoints } from '../../utils';
|
|
8
|
-
var StyledLabelText = styled.Text(function (_a) {
|
|
9
|
-
var field = _a.theme.field, smallAndUp = _a.smallAndUp;
|
|
10
|
-
var fontSize = smallAndUp ? field.fontSize[1] : field.fontSize[0];
|
|
11
|
-
return 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, calculateLineHeight(fontSize, field.lineHeight), field.label.fontWeight, field.label.color, fontSize);
|
|
12
|
-
});
|
|
13
|
-
var LabelText = styledComponentWithBreakpoints(StyledLabelText);
|
|
14
|
-
export { LabelText };
|
|
15
|
-
var templateObject_1;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { LabelText } from './LabelText';
|
|
@@ -1,123 +0,0 @@
|
|
|
1
|
-
var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
|
|
2
|
-
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
|
3
|
-
return cooked;
|
|
4
|
-
};
|
|
5
|
-
var __assign = (this && this.__assign) || function () {
|
|
6
|
-
__assign = Object.assign || function(t) {
|
|
7
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
8
|
-
s = arguments[i];
|
|
9
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
10
|
-
t[p] = s[p];
|
|
11
|
-
}
|
|
12
|
-
return t;
|
|
13
|
-
};
|
|
14
|
-
return __assign.apply(this, arguments);
|
|
15
|
-
};
|
|
16
|
-
var __rest = (this && this.__rest) || function (s, e) {
|
|
17
|
-
var t = {};
|
|
18
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
19
|
-
t[p] = s[p];
|
|
20
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
21
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
22
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
23
|
-
t[p[i]] = s[p[i]];
|
|
24
|
-
}
|
|
25
|
-
return t;
|
|
26
|
-
};
|
|
27
|
-
import React, { Children, useContext, } from 'react';
|
|
28
|
-
import { View } from 'react-native';
|
|
29
|
-
import { useBreakpoint } from '../../hooks';
|
|
30
|
-
import styled, { css, ThemeContext } from '../../styled.native';
|
|
31
|
-
import { calculateLineHeight } from '../../theme';
|
|
32
|
-
import { styledComponentWithBreakpoints } from '../../utils';
|
|
33
|
-
import { Stack } from '../Stack';
|
|
34
|
-
var UlBullet = styled.View(function (_a) {
|
|
35
|
-
var _b = _a.theme, colors = _b.colors, list = _b.list, _c = _a.visible, visible = _c === void 0 ? true : _c;
|
|
36
|
-
return css(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n margin-right: ", ";\n width: ", ";\n height: ", ";\n background-color: ", ";\n "], ["\n margin-right: ", ";\n width: ", ";\n height: ", ";\n background-color: ", ";\n "])), list.listItem.bulletGap, list.listItem.bulletWidth, list.listItem.bulletWidth, visible ? colors.body : 'transparent');
|
|
37
|
-
});
|
|
38
|
-
var StyledBullet = styled.Text(function (_a) {
|
|
39
|
-
var _b = _a.theme, text = _b.text, list = _b.list, space = _b.space, smallAndUp = _a.smallAndUp;
|
|
40
|
-
var fontSize = smallAndUp
|
|
41
|
-
? list.listItem.fontSize[1]
|
|
42
|
-
: list.listItem.fontSize[0];
|
|
43
|
-
return css(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n font-family: ", ";\n line-height: ", ";\n font-weight: ", ";\n color: ", ";\n font-size: ", ";\n margin-right: ", ";\n width: ", ";\n text-align: right;\n "], ["\n font-family: ", ";\n line-height: ", ";\n font-weight: ", ";\n color: ", ";\n font-size: ", ";\n margin-right: ", ";\n width: ", ";\n text-align: right;\n "])), text.fontFamily, calculateLineHeight(fontSize, text.lineHeight), text.fontWeight, text.color, fontSize, list.listItem.bulletGap, space[4]);
|
|
44
|
-
});
|
|
45
|
-
var StyledUlItem = styled.View(function () { return css(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n flex-direction: row;\n align-items: center;\n justify-content: center;\n "], ["\n flex-direction: row;\n align-items: center;\n justify-content: center;\n "]))); });
|
|
46
|
-
var Bullet = styledComponentWithBreakpoints(StyledBullet);
|
|
47
|
-
var ListBulletItem = function (_a) {
|
|
48
|
-
var children = _a.children, _b = _a.showBullets, showBullets = _b === void 0 ? true : _b;
|
|
49
|
-
return (React.createElement(StyledUlItem, null,
|
|
50
|
-
React.createElement(UlBullet, { visible: showBullets }),
|
|
51
|
-
children));
|
|
52
|
-
};
|
|
53
|
-
var ListNumberedItem = function (_a) {
|
|
54
|
-
var children = _a.children, prefix = _a.prefix;
|
|
55
|
-
return (React.createElement(View, { style: { flexDirection: 'row' } },
|
|
56
|
-
React.createElement(Bullet, null, prefix),
|
|
57
|
-
children));
|
|
58
|
-
};
|
|
59
|
-
var StyledList = styled.View(function (_a) {
|
|
60
|
-
var list = _a.theme.list, smallAndUp = _a.smallAndUp;
|
|
61
|
-
return css(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n margin-top: ", ";\n margin-bottom: ", ";\n "], ["\n margin-top: ", ";\n margin-bottom: ", ";\n "])), smallAndUp ? list.marginTop[1] : list.marginTop[0], smallAndUp ? list.marginBottom[1] : list.marginBottom[0]);
|
|
62
|
-
});
|
|
63
|
-
var ListWrapper = styledComponentWithBreakpoints(StyledList);
|
|
64
|
-
var Ul = function (_a) {
|
|
65
|
-
var children = _a.children, _b = _a.showBullets, showBullets = _b === void 0 ? true : _b, rest = __rest(_a, ["children", "showBullets"]);
|
|
66
|
-
var list = useContext(ThemeContext).list;
|
|
67
|
-
return (React.createElement(ListWrapper, __assign({}, rest),
|
|
68
|
-
React.createElement(Stack, { spaceBetween: list.listItem.marginVertical }, Children.map(children, function (child) { return (React.createElement(ListBulletItem, { showBullets: showBullets }, child)); }))));
|
|
69
|
-
};
|
|
70
|
-
var Ol = function (_a) {
|
|
71
|
-
var children = _a.children, rest = __rest(_a, ["children"]);
|
|
72
|
-
var list = useContext(ThemeContext).list;
|
|
73
|
-
return (React.createElement(ListWrapper, __assign({}, rest),
|
|
74
|
-
React.createElement(Stack, { spaceBetween: list.listItem.marginVertical }, Children.map(children, function (child, index) { return (React.createElement(ListNumberedItem, { prefix: index + 1 + '.' }, child)); }))));
|
|
75
|
-
};
|
|
76
|
-
var StyledLi = styled.Text(function (_a) {
|
|
77
|
-
var _b = _a.theme, text = _b.text, list = _b.list, smallAndUp = _a.smallAndUp;
|
|
78
|
-
var fontSize = smallAndUp
|
|
79
|
-
? list.listItem.fontSize[1]
|
|
80
|
-
: list.listItem.fontSize[0];
|
|
81
|
-
return css(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n font-family: ", ";\n line-height: ", ";\n font-weight: ", ";\n color: ", ";\n font-size: ", ";\n flex: 1;\n "], ["\n font-family: ", ";\n line-height: ", ";\n font-weight: ", ";\n color: ", ";\n font-size: ", ";\n flex: 1;\n "])), text.fontFamily, calculateLineHeight(fontSize, text.lineHeight), text.fontWeight, text.color, fontSize);
|
|
82
|
-
});
|
|
83
|
-
var Li = styledComponentWithBreakpoints(StyledLi);
|
|
84
|
-
var Dl = ListWrapper;
|
|
85
|
-
var StyledDtText = styled.Text(function (_a) {
|
|
86
|
-
var _b = _a.theme, text = _b.text, list = _b.list, smallAndUp = _a.smallAndUp;
|
|
87
|
-
var fontSize = smallAndUp
|
|
88
|
-
? list.listItem.fontSize[1]
|
|
89
|
-
: list.listItem.fontSize[0];
|
|
90
|
-
return css(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n font-family: ", ";\n font-weight: ", ";\n line-height: ", ";\n color: ", ";\n font-size: ", ";\n flex: 1;\n "], ["\n font-family: ", ";\n font-weight: ", ";\n line-height: ", ";\n color: ", ";\n font-size: ", ";\n flex: 1;\n "])), list.descriptionTerm.fontFamily, list.descriptionTerm.fontWeight, calculateLineHeight(fontSize, text.lineHeight), list.descriptionTerm.color, fontSize);
|
|
91
|
-
});
|
|
92
|
-
var DtText = styledComponentWithBreakpoints(StyledDtText);
|
|
93
|
-
var StyledDtItem = styled.View(function (_a) {
|
|
94
|
-
var list = _a.theme.list, smallAndUp = _a.smallAndUp;
|
|
95
|
-
var marginTop = smallAndUp
|
|
96
|
-
? list.descriptionTerm.marginTop[1]
|
|
97
|
-
: list.descriptionTerm.marginTop[0];
|
|
98
|
-
var marginBottom = smallAndUp
|
|
99
|
-
? list.descriptionTerm.marginBottom[1]
|
|
100
|
-
: list.descriptionTerm.marginBottom[0];
|
|
101
|
-
return css(templateObject_7 || (templateObject_7 = __makeTemplateObject(["\n margin-top: ", ";\n margin-bottom: ", ";\n flex-direction: row;\n "], ["\n margin-top: ", ";\n margin-bottom: ", ";\n flex-direction: row;\n "])), marginTop, marginBottom);
|
|
102
|
-
});
|
|
103
|
-
var DtItem = styledComponentWithBreakpoints(StyledDtItem);
|
|
104
|
-
var Dt = function (_a) {
|
|
105
|
-
var children = _a.children, rest = __rest(_a, ["children"]);
|
|
106
|
-
return (React.createElement(DtItem, __assign({}, rest),
|
|
107
|
-
React.createElement(DtText, null, children)));
|
|
108
|
-
};
|
|
109
|
-
var StyledDdText = styled.Text(function (_a) {
|
|
110
|
-
var _b = _a.theme, text = _b.text, list = _b.list, smallAndUp = _a.smallAndUp;
|
|
111
|
-
var fontSize = smallAndUp
|
|
112
|
-
? list.listItem.fontSize[1]
|
|
113
|
-
: list.listItem.fontSize[0];
|
|
114
|
-
return css(templateObject_8 || (templateObject_8 = __makeTemplateObject(["\n font-family: ", ";\n line-height: ", ";\n font-weight: ", ";\n color: ", ";\n font-size: ", ";\n flex: 1;\n "], ["\n font-family: ", ";\n line-height: ", ";\n font-weight: ", ";\n color: ", ";\n font-size: ", ";\n flex: 1;\n "])), text.fontFamily, calculateLineHeight(fontSize, text.lineHeight), text.fontWeight, text.color, fontSize);
|
|
115
|
-
});
|
|
116
|
-
var Dd = function (_a) {
|
|
117
|
-
var children = _a.children, rest = __rest(_a, ["children"]);
|
|
118
|
-
var breakpoints = useBreakpoint();
|
|
119
|
-
return (React.createElement(View, __assign({ style: { flexDirection: 'row' } }, rest),
|
|
120
|
-
React.createElement(StyledDdText, __assign({}, breakpoints), children)));
|
|
121
|
-
};
|
|
122
|
-
export { Ul, Ol, Li, Dl, Dt, Dd };
|
|
123
|
-
var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7, templateObject_8;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { Ol, Ul, Li, Dl, Dt, Dd } from './List';
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
var __assign = (this && this.__assign) || function () {
|
|
2
|
-
__assign = Object.assign || function(t) {
|
|
3
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
-
s = arguments[i];
|
|
5
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
-
t[p] = s[p];
|
|
7
|
-
}
|
|
8
|
-
return t;
|
|
9
|
-
};
|
|
10
|
-
return __assign.apply(this, arguments);
|
|
11
|
-
};
|
|
12
|
-
var __rest = (this && this.__rest) || function (s, e) {
|
|
13
|
-
var t = {};
|
|
14
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
15
|
-
t[p] = s[p];
|
|
16
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
17
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
18
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
19
|
-
t[p[i]] = s[p[i]];
|
|
20
|
-
}
|
|
21
|
-
return t;
|
|
22
|
-
};
|
|
23
|
-
import React from 'react';
|
|
24
|
-
import { useBreakpoint } from '../../hooks';
|
|
25
|
-
import styled from '../../styled.native';
|
|
26
|
-
import { responsiveStyle } from '../../utils';
|
|
27
|
-
var StyledMargin = styled.View(function (_a) {
|
|
28
|
-
var space = _a.theme.space, mTop = _a.mTop, mBottom = _a.mBottom, mLeft = _a.mLeft, mRight = _a.mRight, horizontal = _a.horizontal, vertical = _a.vertical, all = _a.all, breakpoints = _a.breakpoints;
|
|
29
|
-
var formatter = function (spaceKey) {
|
|
30
|
-
return spaceKey === 0 ? '0' : space[spaceKey];
|
|
31
|
-
};
|
|
32
|
-
return "\n ".concat(horizontal
|
|
33
|
-
? "\n ".concat(responsiveStyle('margin-left', horizontal, breakpoints, formatter), "\n ").concat(responsiveStyle('margin-right', horizontal, breakpoints, formatter), "\n ")
|
|
34
|
-
: '', "\n ").concat(vertical
|
|
35
|
-
? "\n ".concat(responsiveStyle('margin-top', vertical, breakpoints, formatter), "\n ").concat(responsiveStyle('margin-bottom', vertical, breakpoints, formatter), "\n ")
|
|
36
|
-
: '', "\n ").concat(mTop ? responsiveStyle('margin-top', mTop, breakpoints, formatter) : '', "\n ").concat(mBottom
|
|
37
|
-
? responsiveStyle('margin-bottom', mBottom, breakpoints, formatter)
|
|
38
|
-
: '', "\n ").concat(mLeft ? responsiveStyle('margin-left', mLeft, breakpoints, formatter) : '', "\n ").concat(mRight
|
|
39
|
-
? responsiveStyle('margin-right', mRight, breakpoints, formatter)
|
|
40
|
-
: '', "\n ").concat(all ? responsiveStyle('margin', all, breakpoints, formatter) : '', "\n ");
|
|
41
|
-
});
|
|
42
|
-
var Margin = function (_a) {
|
|
43
|
-
var top = _a.top, bottom = _a.bottom, left = _a.left, right = _a.right, rest = __rest(_a, ["top", "bottom", "left", "right"]);
|
|
44
|
-
var breakpoints = useBreakpoint();
|
|
45
|
-
return (React.createElement(StyledMargin, __assign({}, rest, { breakpoints: breakpoints, mTop: top, mBottom: bottom, mLeft: left, mRight: right })));
|
|
46
|
-
};
|
|
47
|
-
export { Margin };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { Margin } from './Margin';
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
|
|
2
|
-
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
|
3
|
-
return cooked;
|
|
4
|
-
};
|
|
5
|
-
import React from 'react';
|
|
6
|
-
import { TouchableOpacity } from 'react-native';
|
|
7
|
-
import Animated, { FadeIn, FadeOut, Layout } from 'react-native-reanimated';
|
|
8
|
-
import { Path, Svg } from 'react-native-svg';
|
|
9
|
-
import styled, { css } from '../../styled.native';
|
|
10
|
-
import { Heading3, Heading4 } from '../Heading';
|
|
11
|
-
var BackIcon = function () {
|
|
12
|
-
return (React.createElement(Svg, { width: "10", height: "16", viewBox: "0 0 10 16" },
|
|
13
|
-
React.createElement(Path, { d: "M0.579956 8L8.57996 16L9.99996 14.58L3.41996 8L9.99996 1.42L8.57996 0L0.579956 8Z", fill: "white" })));
|
|
14
|
-
};
|
|
15
|
-
var StyledText = styled.Text(function (_a) {
|
|
16
|
-
var _b = _a.theme, colors = _b.colors, fonts = _b.fonts, fontWeights = _b.fontWeights, fontSizes = _b.fontSizes;
|
|
17
|
-
return css(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n color: ", ";\n font-size: ", ";\n font-weight: ", ";\n font-family: ", ";\n "], ["\n color: ", ";\n font-size: ", ";\n font-weight: ", ";\n font-family: ", ";\n "])), colors.primaryContrast, fontSizes[1], fontWeights.normal, fonts.body);
|
|
18
|
-
});
|
|
19
|
-
var LeftHeaderText = styled(StyledText)(function (_a) {
|
|
20
|
-
var space = _a.theme.space;
|
|
21
|
-
return css(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n padding-left: ", ";\n "], ["\n padding-left: ", ";\n "])), space[2]);
|
|
22
|
-
});
|
|
23
|
-
var FeedbackText = styled(StyledText)(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n text-align: right;\n"], ["\n text-align: right;\n"])));
|
|
24
|
-
var HeadlineView = styled(Animated.View)(function (_a) {
|
|
25
|
-
var space = _a.theme.space;
|
|
26
|
-
return css(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n padding: 0 ", " ", ";\n "], ["\n padding: 0 ", " ", ";\n "])), space[3], space[3]);
|
|
27
|
-
});
|
|
28
|
-
var RootView = styled.View(function (_a) {
|
|
29
|
-
var colors = _a.theme.colors;
|
|
30
|
-
return css(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n background-color: ", ";\n overflow: hidden;\n "], ["\n background-color: ", ";\n overflow: hidden;\n "])), colors.primary);
|
|
31
|
-
});
|
|
32
|
-
var StyledView = styled(Animated.View)(function (_a) {
|
|
33
|
-
var space = _a.theme.space, marginTop = _a.marginTop;
|
|
34
|
-
return css(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n padding: ", ";\n padding-bottom: ", ";\n flex-direction: row;\n justify-content: space-between;\n align-items: center;\n margin-top: ", ";\n "], ["\n padding: ", ";\n padding-bottom: ", ";\n flex-direction: row;\n justify-content: space-between;\n align-items: center;\n margin-top: ", ";\n "])), space[3], space[2], marginTop !== null && marginTop !== void 0 ? marginTop : 0);
|
|
35
|
-
});
|
|
36
|
-
var StyledHeading4 = styled(Heading4)(function (_a) {
|
|
37
|
-
var _b = _a.theme, fonts = _b.fonts, fontWeights = _b.fontWeights, colors = _b.colors, textAlign = _a.textAlign;
|
|
38
|
-
return css(templateObject_7 || (templateObject_7 = __makeTemplateObject(["\n font-family: ", ";\n font-weight: ", ";\n margin-top: 0;\n margin-bottom: 0;\n color: ", ";\n text-align: ", ";\n "], ["\n font-family: ", ";\n font-weight: ", ";\n margin-top: 0;\n margin-bottom: 0;\n color: ", ";\n text-align: ", ";\n "])), fonts.bold, fontWeights.bold, colors.primaryContrast, textAlign);
|
|
39
|
-
});
|
|
40
|
-
var StyledHeading3 = styled(Heading3)(function (_a) {
|
|
41
|
-
var colors = _a.theme.colors;
|
|
42
|
-
return css(templateObject_8 || (templateObject_8 = __makeTemplateObject(["\n margin-top: 0;\n margin-bottom: 0;\n padding-top: 0;\n color: ", ";\n text-align: left;\n "], ["\n margin-top: 0;\n margin-bottom: 0;\n padding-top: 0;\n color: ", ";\n text-align: left;\n "])), colors.primaryContrast);
|
|
43
|
-
});
|
|
44
|
-
export var NavHeader = function (_a) {
|
|
45
|
-
var options = _a.options, headline = _a.headline;
|
|
46
|
-
return (React.createElement(RootView, { layout: Layout.duration(150) },
|
|
47
|
-
React.createElement(StyledView, { marginTop: options === null || options === void 0 ? void 0 : options.statusBarHeight },
|
|
48
|
-
(options === null || options === void 0 ? void 0 : options.headerLeft) ? (options === null || options === void 0 ? void 0 : options.headerLeft()) : (options === null || options === void 0 ? void 0 : options.canGoBack()) ? (React.createElement(TouchableOpacity, { style: {
|
|
49
|
-
flexDirection: 'row',
|
|
50
|
-
alignItems: 'center',
|
|
51
|
-
flex: 1,
|
|
52
|
-
flexGrow: 1,
|
|
53
|
-
flexShrink: 1,
|
|
54
|
-
}, onPress: options === null || options === void 0 ? void 0 : options.goBack },
|
|
55
|
-
React.createElement(BackIcon, null),
|
|
56
|
-
React.createElement(LeftHeaderText, null, "Back"))) : null,
|
|
57
|
-
React.createElement(Animated.View, { entering: FadeIn, exiting: FadeOut, style: { flex: 1, flexGrow: 3, flexShrink: 1 } },
|
|
58
|
-
React.createElement(StyledHeading4, { textAlign: (options === null || options === void 0 ? void 0 : options.canGoBack()) ? 'center' : 'left', numberOfLines: 1 }, !headline ? options === null || options === void 0 ? void 0 : options.title : ' ')),
|
|
59
|
-
React.createElement(TouchableOpacity, { style: { flex: 1, flexGrow: 1, flexShrink: 1 } },
|
|
60
|
-
React.createElement(FeedbackText, null, "Feedback"))),
|
|
61
|
-
headline ? (React.createElement(HeadlineView, { entering: FadeIn, exiting: FadeOut }, (options === null || options === void 0 ? void 0 : options.title) ? (React.createElement(StyledHeading3, null, options.title)) : null)) : null));
|
|
62
|
-
};
|
|
63
|
-
var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7, templateObject_8;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { NavHeader } from './NavHeader';
|