@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
package/package.json
CHANGED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import React, { ComponentClass } from 'react';
|
|
2
|
-
import { AnimateProps } from 'react-native-reanimated';
|
|
3
|
-
import { AccordionProps } from './types';
|
|
4
|
-
export declare function withAnimated<T extends object>(WrappedComponent: React.ComponentType<T>): ComponentClass<AnimateProps<T>>;
|
|
5
|
-
export declare const Accordion: ({ expanded, first, headingComponent, last, title, children, onToggle, }: AccordionProps) => JSX.Element;
|
|
@@ -1,139 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __extends = (this && this.__extends) || (function () {
|
|
3
|
-
var extendStatics = function (d, b) {
|
|
4
|
-
extendStatics = Object.setPrototypeOf ||
|
|
5
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
-
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
|
-
return extendStatics(d, b);
|
|
8
|
-
};
|
|
9
|
-
return function (d, b) {
|
|
10
|
-
if (typeof b !== "function" && b !== null)
|
|
11
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
12
|
-
extendStatics(d, b);
|
|
13
|
-
function __() { this.constructor = d; }
|
|
14
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
15
|
-
};
|
|
16
|
-
})();
|
|
17
|
-
var __assign = (this && this.__assign) || function () {
|
|
18
|
-
__assign = Object.assign || function(t) {
|
|
19
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
20
|
-
s = arguments[i];
|
|
21
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
22
|
-
t[p] = s[p];
|
|
23
|
-
}
|
|
24
|
-
return t;
|
|
25
|
-
};
|
|
26
|
-
return __assign.apply(this, arguments);
|
|
27
|
-
};
|
|
28
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
29
|
-
if (k2 === undefined) k2 = k;
|
|
30
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
31
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
32
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
33
|
-
}
|
|
34
|
-
Object.defineProperty(o, k2, desc);
|
|
35
|
-
}) : (function(o, m, k, k2) {
|
|
36
|
-
if (k2 === undefined) k2 = k;
|
|
37
|
-
o[k2] = m[k];
|
|
38
|
-
}));
|
|
39
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
40
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
41
|
-
}) : function(o, v) {
|
|
42
|
-
o["default"] = v;
|
|
43
|
-
});
|
|
44
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
45
|
-
if (mod && mod.__esModule) return mod;
|
|
46
|
-
var result = {};
|
|
47
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
48
|
-
__setModuleDefault(result, mod);
|
|
49
|
-
return result;
|
|
50
|
-
};
|
|
51
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
52
|
-
exports.Accordion = exports.withAnimated = void 0;
|
|
53
|
-
var react_1 = __importStar(require("react"));
|
|
54
|
-
var react_native_1 = require("react-native");
|
|
55
|
-
var react_native_reanimated_1 = __importStar(require("react-native-reanimated"));
|
|
56
|
-
var theme_1 = require("../../theme");
|
|
57
|
-
var Heading_1 = require("../Heading");
|
|
58
|
-
var Icon_1 = require("./Icon");
|
|
59
|
-
var hooks_1 = require("./hooks");
|
|
60
|
-
var styles_1 = require("./styles");
|
|
61
|
-
var _a = theme_1.theme.colors, canvas = _a.canvas, canvasMuted = _a.canvasMuted, primary = _a.primary, greyDarker = _a.brand.grey.darker;
|
|
62
|
-
function withAnimated(WrappedComponent) {
|
|
63
|
-
var displayName = WrappedComponent.displayName || WrappedComponent.name || 'Component';
|
|
64
|
-
// eslint-disable-next-line react/prefer-stateless-function
|
|
65
|
-
var WithAnimated = /** @class */ (function (_super) {
|
|
66
|
-
__extends(WithAnimated, _super);
|
|
67
|
-
function WithAnimated() {
|
|
68
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
69
|
-
}
|
|
70
|
-
WithAnimated.prototype.render = function () {
|
|
71
|
-
return react_1.default.createElement(WrappedComponent, __assign({}, this.props));
|
|
72
|
-
};
|
|
73
|
-
WithAnimated.displayName = "WithAnimated(".concat(displayName, ")");
|
|
74
|
-
return WithAnimated;
|
|
75
|
-
}(react_1.default.Component));
|
|
76
|
-
return react_native_reanimated_1.default.createAnimatedComponent(WithAnimated);
|
|
77
|
-
}
|
|
78
|
-
exports.withAnimated = withAnimated;
|
|
79
|
-
var Accordion = function (_a) {
|
|
80
|
-
var _b = _a.expanded, expanded = _b === void 0 ? false : _b, first = _a.first, _c = _a.headingComponent, headingComponent = _c === void 0 ? Heading_1.Heading3 : _c, last = _a.last, title = _a.title, children = _a.children, onToggle = _a.onToggle;
|
|
81
|
-
var AnimatedHeading = (0, react_1.useMemo)(function () { return withAnimated(headingComponent); }, [
|
|
82
|
-
headingComponent,
|
|
83
|
-
]);
|
|
84
|
-
var _d = (0, hooks_1.useLayout)(0), layout = _d[0], onLayout = _d[1];
|
|
85
|
-
var open = (0, react_native_reanimated_1.useSharedValue)(expanded);
|
|
86
|
-
var handleHeightContent = (0, react_1.useMemo)(function () { return layout.height || 100; }, [
|
|
87
|
-
layout.height,
|
|
88
|
-
]);
|
|
89
|
-
var size = (0, react_native_reanimated_1.useSharedValue)(handleHeightContent);
|
|
90
|
-
(0, react_1.useEffect)(function () {
|
|
91
|
-
(0, react_native_reanimated_1.runOnUI)(function () {
|
|
92
|
-
'worklet';
|
|
93
|
-
if (expanded && handleHeightContent) {
|
|
94
|
-
size.value = handleHeightContent;
|
|
95
|
-
}
|
|
96
|
-
})();
|
|
97
|
-
}, [handleHeightContent, expanded, size]);
|
|
98
|
-
(0, react_1.useEffect)(function () {
|
|
99
|
-
(0, react_native_reanimated_1.runOnUI)(function () {
|
|
100
|
-
'worklet';
|
|
101
|
-
if (handleHeightContent) {
|
|
102
|
-
size.value = handleHeightContent;
|
|
103
|
-
}
|
|
104
|
-
})();
|
|
105
|
-
}, [handleHeightContent, size]);
|
|
106
|
-
var progress = (0, react_native_reanimated_1.useDerivedValue)(function () { return (0, react_native_reanimated_1.withTiming)(open.value ? 1 : 0); });
|
|
107
|
-
var style = (0, react_native_reanimated_1.useAnimatedStyle)(function () { return ({
|
|
108
|
-
height: size.value * progress.value + 1,
|
|
109
|
-
}); });
|
|
110
|
-
var toggleOpen = (0, react_1.useCallback)(function () {
|
|
111
|
-
onToggle === null || onToggle === void 0 ? void 0 : onToggle(!open.value);
|
|
112
|
-
if (size.value === 0) {
|
|
113
|
-
(0, react_native_reanimated_1.runOnUI)(function () {
|
|
114
|
-
'worklet';
|
|
115
|
-
size.value = handleHeightContent;
|
|
116
|
-
})();
|
|
117
|
-
}
|
|
118
|
-
open.value = !open.value;
|
|
119
|
-
}, [handleHeightContent, open, size]);
|
|
120
|
-
var containerAnimatedStyle = (0, react_1.useMemo)(function () { return [styles_1.styles.content, style]; }, [style]);
|
|
121
|
-
var headerStyle = (0, react_native_reanimated_1.useAnimatedStyle)(function () { return ({
|
|
122
|
-
color: (0, react_native_reanimated_1.interpolateColor)(progress.value, [0, 1], [greyDarker, primary]),
|
|
123
|
-
}); });
|
|
124
|
-
var backgroundStyle = (0, react_native_reanimated_1.useAnimatedStyle)(function () { return ({
|
|
125
|
-
backgroundColor: (0, react_native_reanimated_1.interpolateColor)(progress.value, [0, 1], [canvas, canvasMuted]),
|
|
126
|
-
}); });
|
|
127
|
-
return (react_1.default.createElement(react_native_reanimated_1.default.View, { style: [
|
|
128
|
-
backgroundStyle,
|
|
129
|
-
styles_1.styles.accordion,
|
|
130
|
-
first ? styles_1.styles.topItem : null,
|
|
131
|
-
last ? styles_1.styles.bottomItem : null,
|
|
132
|
-
] },
|
|
133
|
-
react_1.default.createElement(react_native_1.TouchableOpacity, { accessibilityState: { expanded: expanded }, onPress: toggleOpen, style: styles_1.styles.accordionHeader },
|
|
134
|
-
react_1.default.createElement(AnimatedHeading, { style: [headerStyle, styles_1.styles.accordionHeaderText] }, title),
|
|
135
|
-
react_1.default.createElement(Icon_1.AccordionIcon, { animationTiming: progress })),
|
|
136
|
-
react_1.default.createElement(react_native_reanimated_1.default.View, { style: containerAnimatedStyle },
|
|
137
|
-
react_1.default.createElement(react_native_1.View, { onLayout: onLayout, style: styles_1.styles.container }, children))));
|
|
138
|
-
};
|
|
139
|
-
exports.Accordion = Accordion;
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
-
if (mod && mod.__esModule) return mod;
|
|
20
|
-
var result = {};
|
|
21
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
-
__setModuleDefault(result, mod);
|
|
23
|
-
return result;
|
|
24
|
-
};
|
|
25
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
exports.AccordionGroup = void 0;
|
|
27
|
-
var react_1 = __importStar(require("react"));
|
|
28
|
-
var react_native_1 = require("react-native");
|
|
29
|
-
var AccordionGroup = function (_a) {
|
|
30
|
-
var children = _a.children;
|
|
31
|
-
var childCount = react_1.Children.count(children);
|
|
32
|
-
return (react_1.default.createElement(react_native_1.View, null, react_1.Children.map(children, function (child, i) {
|
|
33
|
-
return (0, react_1.isValidElement)(child)
|
|
34
|
-
? (0, react_1.cloneElement)(child, {
|
|
35
|
-
first: i === 0,
|
|
36
|
-
last: i === childCount - 1,
|
|
37
|
-
})
|
|
38
|
-
: child;
|
|
39
|
-
})));
|
|
40
|
-
};
|
|
41
|
-
exports.AccordionGroup = AccordionGroup;
|
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
-
if (mod && mod.__esModule) return mod;
|
|
20
|
-
var result = {};
|
|
21
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
-
__setModuleDefault(result, mod);
|
|
23
|
-
return result;
|
|
24
|
-
};
|
|
25
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
26
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
|
-
};
|
|
28
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.AccordionIcon = void 0;
|
|
30
|
-
var react_1 = __importDefault(require("react"));
|
|
31
|
-
var react_native_reanimated_1 = __importStar(require("react-native-reanimated"));
|
|
32
|
-
var react_native_svg_1 = require("react-native-svg");
|
|
33
|
-
var theme_1 = require("../../theme");
|
|
34
|
-
var _a = theme_1.theme.colors, canvas = _a.canvas, primary = _a.primary, primaryMuted = _a.primaryMuted;
|
|
35
|
-
var OVO_LOGO_ANGLE = 105;
|
|
36
|
-
var AnimatedPath = react_native_reanimated_1.default.createAnimatedComponent(react_native_svg_1.Path);
|
|
37
|
-
function AccordionIcon(_a) {
|
|
38
|
-
var animationTiming = _a.animationTiming;
|
|
39
|
-
var outerAnimatedStyles = (0, react_native_reanimated_1.useAnimatedStyle)(function () { return ({
|
|
40
|
-
backgroundColor: (0, react_native_reanimated_1.interpolateColor)(animationTiming.value, [0, 1], [primaryMuted, primary]),
|
|
41
|
-
height: 36 - animationTiming.value * 4,
|
|
42
|
-
margin: 2 * animationTiming.value,
|
|
43
|
-
transform: [{ rotateZ: animationTiming.value * -OVO_LOGO_ANGLE + 'deg' }],
|
|
44
|
-
}); });
|
|
45
|
-
var innerAnimatedStyles = (0, react_native_reanimated_1.useAnimatedStyle)(function () { return ({
|
|
46
|
-
transform: [{ rotateZ: animationTiming.value * OVO_LOGO_ANGLE + 'deg' }],
|
|
47
|
-
}); });
|
|
48
|
-
var plusAnimatedProps = (0, react_native_reanimated_1.useAnimatedProps)(function () { return ({
|
|
49
|
-
opacity: 1 - animationTiming.value,
|
|
50
|
-
}); });
|
|
51
|
-
var minusAnimatedProps = (0, react_native_reanimated_1.useAnimatedProps)(function () { return ({
|
|
52
|
-
opacity: animationTiming.value,
|
|
53
|
-
}); });
|
|
54
|
-
return (react_1.default.createElement(react_native_reanimated_1.default.View, { style: [
|
|
55
|
-
{
|
|
56
|
-
backgroundColor: primaryMuted,
|
|
57
|
-
aspectRatio: 1,
|
|
58
|
-
alignItems: 'center',
|
|
59
|
-
justifyContent: 'center',
|
|
60
|
-
},
|
|
61
|
-
outerAnimatedStyles,
|
|
62
|
-
] },
|
|
63
|
-
react_1.default.createElement(react_native_reanimated_1.default.View, { style: innerAnimatedStyles },
|
|
64
|
-
react_1.default.createElement(react_native_svg_1.Svg, { width: "16", height: "16", viewBox: "0 0 16 16" },
|
|
65
|
-
react_1.default.createElement(AnimatedPath, { animatedProps: plusAnimatedProps, d: "M9 9H16V6.99H9V0H6.99V7H0V9.01H7V16.01H9.01V9.01L9 9Z", fill: primary }),
|
|
66
|
-
react_1.default.createElement(AnimatedPath, { animatedProps: minusAnimatedProps, d: "M16.3826 9.66663V7.66663H0.462646V9.66663H16.3826Z", fill: canvas })))));
|
|
67
|
-
}
|
|
68
|
-
exports.AccordionIcon = AccordionIcon;
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
-
if (mod && mod.__esModule) return mod;
|
|
20
|
-
var result = {};
|
|
21
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
-
__setModuleDefault(result, mod);
|
|
23
|
-
return result;
|
|
24
|
-
};
|
|
25
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
exports.useLayout = void 0;
|
|
27
|
-
var react_1 = __importStar(require("react"));
|
|
28
|
-
var useLayout = function (defaultHeight) {
|
|
29
|
-
var _a = (0, react_1.useState)({ height: defaultHeight || 0, width: 0, measured: false }), layout = _a[0], setLayout = _a[1];
|
|
30
|
-
var onLayout = react_1.default.useCallback(function (e) {
|
|
31
|
-
var _a = e.nativeEvent.layout, height = _a.height, width = _a.width;
|
|
32
|
-
if (height === layout.height && width === layout.width) {
|
|
33
|
-
return;
|
|
34
|
-
}
|
|
35
|
-
setLayout({
|
|
36
|
-
height: height,
|
|
37
|
-
width: width,
|
|
38
|
-
measured: true
|
|
39
|
-
});
|
|
40
|
-
}, [layout.height, layout.width]);
|
|
41
|
-
return [layout, onLayout];
|
|
42
|
-
};
|
|
43
|
-
exports.useLayout = useLayout;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.AccordionIcon = exports.AccordionGroup = exports.Accordion = void 0;
|
|
4
|
-
var Accordion_1 = require("./Accordion");
|
|
5
|
-
Object.defineProperty(exports, "Accordion", { enumerable: true, get: function () { return Accordion_1.Accordion; } });
|
|
6
|
-
var Group_1 = require("./Group");
|
|
7
|
-
Object.defineProperty(exports, "AccordionGroup", { enumerable: true, get: function () { return Group_1.AccordionGroup; } });
|
|
8
|
-
var Icon_1 = require("./Icon");
|
|
9
|
-
Object.defineProperty(exports, "AccordionIcon", { enumerable: true, get: function () { return Icon_1.AccordionIcon; } });
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
declare const styles: {
|
|
2
|
-
accordion: {
|
|
3
|
-
width: string;
|
|
4
|
-
borderWidth: number;
|
|
5
|
-
borderBottomWidth: number;
|
|
6
|
-
borderColor: string;
|
|
7
|
-
};
|
|
8
|
-
topItem: {
|
|
9
|
-
borderTopLeftRadius: number;
|
|
10
|
-
borderTopRightRadius: number;
|
|
11
|
-
};
|
|
12
|
-
bottomItem: {
|
|
13
|
-
borderBottomLeftRadius: number;
|
|
14
|
-
borderBottomRightRadius: number;
|
|
15
|
-
borderBottomWidth: number;
|
|
16
|
-
};
|
|
17
|
-
accordionHeader: {
|
|
18
|
-
paddingTop: number;
|
|
19
|
-
paddingRight: number;
|
|
20
|
-
paddingBottom: number;
|
|
21
|
-
paddingLeft: number;
|
|
22
|
-
flexDirection: "row";
|
|
23
|
-
alignItems: "flex-start";
|
|
24
|
-
justifyContent: "space-between";
|
|
25
|
-
};
|
|
26
|
-
accordionHeaderText: {
|
|
27
|
-
paddingRight: number;
|
|
28
|
-
marginTop: number;
|
|
29
|
-
marginBottom: number;
|
|
30
|
-
flexShrink: number;
|
|
31
|
-
};
|
|
32
|
-
content: {
|
|
33
|
-
overflow: "hidden";
|
|
34
|
-
};
|
|
35
|
-
container: {
|
|
36
|
-
position: "absolute";
|
|
37
|
-
top: number;
|
|
38
|
-
left: number;
|
|
39
|
-
right: number;
|
|
40
|
-
paddingTop: number;
|
|
41
|
-
paddingRight: number;
|
|
42
|
-
paddingBottom: number;
|
|
43
|
-
paddingLeft: number;
|
|
44
|
-
};
|
|
45
|
-
};
|
|
46
|
-
export { styles };
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.styles = void 0;
|
|
4
|
-
var react_native_1 = require("react-native");
|
|
5
|
-
var theme_1 = require("../../theme");
|
|
6
|
-
var greyBase = theme_1.theme.colors.brand.grey.base;
|
|
7
|
-
var styles = react_native_1.StyleSheet.create({
|
|
8
|
-
accordion: {
|
|
9
|
-
width: '100%',
|
|
10
|
-
borderWidth: parseInt(theme_1.theme.borderWidths.standard),
|
|
11
|
-
borderBottomWidth: 0,
|
|
12
|
-
borderColor: greyBase,
|
|
13
|
-
},
|
|
14
|
-
topItem: {
|
|
15
|
-
borderTopLeftRadius: parseInt(theme_1.theme.radii.small),
|
|
16
|
-
borderTopRightRadius: parseInt(theme_1.theme.radii.small),
|
|
17
|
-
},
|
|
18
|
-
bottomItem: {
|
|
19
|
-
borderBottomLeftRadius: parseInt(theme_1.theme.radii.small),
|
|
20
|
-
borderBottomRightRadius: parseInt(theme_1.theme.radii.small),
|
|
21
|
-
borderBottomWidth: parseInt(theme_1.theme.borderWidths.standard),
|
|
22
|
-
},
|
|
23
|
-
accordionHeader: {
|
|
24
|
-
paddingTop: parseInt(theme_1.theme.space[5]),
|
|
25
|
-
paddingRight: 18,
|
|
26
|
-
paddingBottom: 18,
|
|
27
|
-
paddingLeft: parseInt(theme_1.theme.space[3]),
|
|
28
|
-
flexDirection: 'row',
|
|
29
|
-
alignItems: 'flex-start',
|
|
30
|
-
justifyContent: 'space-between',
|
|
31
|
-
},
|
|
32
|
-
accordionHeaderText: {
|
|
33
|
-
paddingRight: parseInt(theme_1.theme.space[3]),
|
|
34
|
-
marginTop: 0,
|
|
35
|
-
marginBottom: 0,
|
|
36
|
-
flexShrink: 1,
|
|
37
|
-
},
|
|
38
|
-
content: {
|
|
39
|
-
overflow: 'hidden',
|
|
40
|
-
},
|
|
41
|
-
container: {
|
|
42
|
-
position: 'absolute',
|
|
43
|
-
top: 0,
|
|
44
|
-
left: 0,
|
|
45
|
-
right: 0,
|
|
46
|
-
paddingTop: 0,
|
|
47
|
-
paddingRight: parseInt(theme_1.theme.space[12]),
|
|
48
|
-
paddingBottom: parseInt(theme_1.theme.space[6]),
|
|
49
|
-
paddingLeft: parseInt(theme_1.theme.space[3]),
|
|
50
|
-
},
|
|
51
|
-
});
|
|
52
|
-
exports.styles = styles;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { PropsWithChildren, ReactNode } from 'react';
|
|
2
|
-
export declare type AccordionProps = PropsWithChildren<{
|
|
3
|
-
title: ReactNode;
|
|
4
|
-
expanded?: boolean;
|
|
5
|
-
children?: ReactNode;
|
|
6
|
-
onToggle?: CallableFunction;
|
|
7
|
-
/**
|
|
8
|
-
* @deprecated as it no longer affects styling
|
|
9
|
-
*/
|
|
10
|
-
inline?: boolean;
|
|
11
|
-
headingComponent?: React.ComponentType<any>;
|
|
12
|
-
first?: boolean;
|
|
13
|
-
last?: boolean;
|
|
14
|
-
}>;
|
|
15
|
-
export declare type AccordionGroupProps = {
|
|
16
|
-
/**
|
|
17
|
-
* @deprecated as it no longer affects styling
|
|
18
|
-
*/
|
|
19
|
-
inline?: boolean;
|
|
20
|
-
};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { ComponentProps } from 'react';
|
|
2
|
-
export declare type BadgeVariantName = 'default' | 'error' | 'success' | 'warning' | 'info';
|
|
3
|
-
export declare type BadgeVariant = {
|
|
4
|
-
background: string;
|
|
5
|
-
foreground: string;
|
|
6
|
-
};
|
|
7
|
-
declare const StyledBadge: import("styled-components").StyledComponent<typeof import("react-native").View, import("../../theme/theme").Theme, {
|
|
8
|
-
variant?: BadgeVariantName | (string & {}) | undefined;
|
|
9
|
-
}, never>;
|
|
10
|
-
declare type BadgeProps = ComponentProps<typeof StyledBadge>;
|
|
11
|
-
export declare const Badge: ({ children, variant, ...rest }: BadgeProps) => JSX.Element;
|
|
12
|
-
export {};
|
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
|
|
3
|
-
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
|
4
|
-
return cooked;
|
|
5
|
-
};
|
|
6
|
-
var __assign = (this && this.__assign) || function () {
|
|
7
|
-
__assign = Object.assign || function(t) {
|
|
8
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
9
|
-
s = arguments[i];
|
|
10
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
11
|
-
t[p] = s[p];
|
|
12
|
-
}
|
|
13
|
-
return t;
|
|
14
|
-
};
|
|
15
|
-
return __assign.apply(this, arguments);
|
|
16
|
-
};
|
|
17
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
18
|
-
if (k2 === undefined) k2 = k;
|
|
19
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
20
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
21
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
22
|
-
}
|
|
23
|
-
Object.defineProperty(o, k2, desc);
|
|
24
|
-
}) : (function(o, m, k, k2) {
|
|
25
|
-
if (k2 === undefined) k2 = k;
|
|
26
|
-
o[k2] = m[k];
|
|
27
|
-
}));
|
|
28
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
29
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
30
|
-
}) : function(o, v) {
|
|
31
|
-
o["default"] = v;
|
|
32
|
-
});
|
|
33
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
34
|
-
if (mod && mod.__esModule) return mod;
|
|
35
|
-
var result = {};
|
|
36
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
37
|
-
__setModuleDefault(result, mod);
|
|
38
|
-
return result;
|
|
39
|
-
};
|
|
40
|
-
var __rest = (this && this.__rest) || function (s, e) {
|
|
41
|
-
var t = {};
|
|
42
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
43
|
-
t[p] = s[p];
|
|
44
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
45
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
46
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
47
|
-
t[p[i]] = s[p[i]];
|
|
48
|
-
}
|
|
49
|
-
return t;
|
|
50
|
-
};
|
|
51
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
52
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
53
|
-
};
|
|
54
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
55
|
-
exports.Badge = void 0;
|
|
56
|
-
var react_1 = __importDefault(require("react"));
|
|
57
|
-
var hooks_1 = require("../../hooks");
|
|
58
|
-
var styled_native_1 = __importStar(require("../../styled.native"));
|
|
59
|
-
var theme_1 = require("../../theme");
|
|
60
|
-
var StyledBadge = styled_native_1.default.View(function (_a) {
|
|
61
|
-
var badge = _a.theme.badge, _b = _a.variant, variant = _b === void 0 ? 'default' : _b;
|
|
62
|
-
// @ts-ignore to support additional palettes.
|
|
63
|
-
var currentVariant = badge.variants[variant];
|
|
64
|
-
return (0, styled_native_1.css)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n padding: 0 ", ";\n border-radius: ", ";\n background-color: ", ";\n align-self: flex-start;\n "], ["\n padding: 0 ", ";\n border-radius: ", ";\n background-color: ", ";\n align-self: flex-start;\n "])), badge.paddingHorizontal, badge.borderRadius, currentVariant.background);
|
|
65
|
-
});
|
|
66
|
-
var StyledBadgeText = styled_native_1.default.Text(function (_a) {
|
|
67
|
-
var badge = _a.theme.badge, _b = _a.variant, variant = _b === void 0 ? 'default' : _b;
|
|
68
|
-
// @ts-ignore to support additional palettes.
|
|
69
|
-
var currentVariant = badge.variants[variant];
|
|
70
|
-
return (0, styled_native_1.css)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n font-family: ", ";\n font-weight: ", ";\n line-height: ", ";\n color: ", ";\n font-size: ", ";\n "], ["\n font-family: ", ";\n font-weight: ", ";\n line-height: ", ";\n color: ", ";\n font-size: ", ";\n "])), badge.fontFamily, badge.fontWeight, (0, theme_1.calculateLineHeight)(badge.fontSize[1], badge.lineHeight), currentVariant.foreground, badge.fontSize[1]);
|
|
71
|
-
});
|
|
72
|
-
var Badge = function (_a) {
|
|
73
|
-
var children = _a.children, variant = _a.variant, rest = __rest(_a, ["children", "variant"]);
|
|
74
|
-
var smallAndUp = (0, hooks_1.useBreakpoint)().smallAndUp;
|
|
75
|
-
return (react_1.default.createElement(StyledBadge, __assign({}, rest, { variant: variant }),
|
|
76
|
-
react_1.default.createElement(StyledBadgeText, { variant: variant, smallAndUp: smallAndUp }, children)));
|
|
77
|
-
};
|
|
78
|
-
exports.Badge = Badge;
|
|
79
|
-
var templateObject_1, templateObject_2;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { Badge } from './Badge';
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import React, { PropsWithChildren, ComponentProps, Ref } from 'react';
|
|
2
|
-
import { TouchableOpacityProps, TouchableOpacity } from 'react-native';
|
|
3
|
-
import { IconName } from '../../providers/types';
|
|
4
|
-
export declare type CTAVariantName = 'primary' | 'secondary' | 'destructive' | 'missionPrimary' | 'missionSecondary';
|
|
5
|
-
export declare type CTAVariant = {
|
|
6
|
-
background: string;
|
|
7
|
-
foreground: string;
|
|
8
|
-
border: string;
|
|
9
|
-
};
|
|
10
|
-
declare type CTAButtonProps = PropsWithChildren<TouchableOpacityProps & {
|
|
11
|
-
iconLeft?: IconName | 'off';
|
|
12
|
-
iconRight?: IconName | 'off';
|
|
13
|
-
fullWidth?: 'always' | 'never' | 'small';
|
|
14
|
-
variant?: CTAVariantName | (string & {});
|
|
15
|
-
ref?: Ref<TouchableOpacity>;
|
|
16
|
-
}>;
|
|
17
|
-
declare const CTAButton: ({ iconLeft, iconRight, children, fullWidth, variant, ...rest }: CTAButtonProps) => JSX.Element;
|
|
18
|
-
declare type CTAProps = Omit<ComponentProps<typeof CTAButton>, 'variant' | 'ref'> & {
|
|
19
|
-
ref: Ref<TouchableOpacity>;
|
|
20
|
-
};
|
|
21
|
-
declare const PrimaryCTAButton: React.ForwardRefExoticComponent<Pick<CTAProps, "fullWidth" | "iconLeft" | "iconRight" | keyof TouchableOpacityProps> & React.RefAttributes<TouchableOpacity>>;
|
|
22
|
-
declare const SecondaryCTAButton: React.ForwardRefExoticComponent<Pick<CTAProps, "fullWidth" | "iconLeft" | "iconRight" | keyof TouchableOpacityProps> & React.RefAttributes<TouchableOpacity>>;
|
|
23
|
-
declare const DestructiveCTAButton: React.ForwardRefExoticComponent<Pick<CTAProps, "fullWidth" | "iconLeft" | "iconRight" | keyof TouchableOpacityProps> & React.RefAttributes<TouchableOpacity>>;
|
|
24
|
-
export { CTAButton, PrimaryCTAButton, SecondaryCTAButton, DestructiveCTAButton, };
|