@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,48 +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, cloneElement } from 'react';
|
|
28
|
-
import { View } from 'react-native';
|
|
29
|
-
import styled, { css } from '../../styled.native';
|
|
30
|
-
import { callAll } from '../../utils';
|
|
31
|
-
export var TabList = styled(function (_a) {
|
|
32
|
-
var children = _a.children, setActiveTab = _a.setActiveTab, activeTab = _a.activeTab, tabRefs = _a.tabRefs, fullWidth = _a.fullWidth, inline = _a.inline, rest = __rest(_a, ["children", "setActiveTab", "activeTab", "tabRefs", "fullWidth", "inline"]);
|
|
33
|
-
return (React.createElement(View, __assign({ accessibilityRole: "tablist" }, rest), Children.map(children, function (child, i) {
|
|
34
|
-
return cloneElement(child, {
|
|
35
|
-
onPress: callAll(function () { return setActiveTab && setActiveTab(i); }, child.props.onPress),
|
|
36
|
-
active: activeTab === i,
|
|
37
|
-
fullWidth: fullWidth,
|
|
38
|
-
ref: tabRefs[i],
|
|
39
|
-
first: i === 0,
|
|
40
|
-
last: Children.count(children) - 1 === i,
|
|
41
|
-
inline: inline,
|
|
42
|
-
});
|
|
43
|
-
})));
|
|
44
|
-
})(function (_a) {
|
|
45
|
-
var card = _a.theme.card;
|
|
46
|
-
return css(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n flex-direction: row;\n margin: -", ";\n "], ["\n flex-direction: row;\n margin: -", ";\n "])), card.borderWidth);
|
|
47
|
-
});
|
|
48
|
-
var templateObject_1;
|
|
@@ -1,34 +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
|
-
var StyledView = styled.View(function (_a) {
|
|
27
|
-
var card = _a.theme.card, smallAndUp = _a.smallAndUp;
|
|
28
|
-
return "\n padding: ".concat(card.padding[smallAndUp ? 1 : 0], ";\n border-top-width: ").concat(card.borderWidth, ";\n border-style: solid;\n border-color: ").concat(card.borderColor, ";\n z-index: -1;\n ");
|
|
29
|
-
});
|
|
30
|
-
export var TabPanel = function (_a) {
|
|
31
|
-
var rest = __rest(_a, []);
|
|
32
|
-
var breakpoints = useBreakpoint();
|
|
33
|
-
return React.createElement(StyledView, __assign({}, breakpoints, rest));
|
|
34
|
-
};
|
|
@@ -1,69 +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, cloneElement, useEffect, createRef, useRef, } from 'react';
|
|
28
|
-
import styled, { css } from '../../styled.native';
|
|
29
|
-
import { filterChildrenByType } from '../../utils';
|
|
30
|
-
import { Card } from '../Card';
|
|
31
|
-
import { TabList } from './TabList';
|
|
32
|
-
import { TabPanel } from './TabPanel';
|
|
33
|
-
export var Tabs = styled(function (_a) {
|
|
34
|
-
var children = _a.children, _b = _a.defaultSelected, defaultSelected = _b === void 0 ? 0 : _b, onSelected = _a.onSelected, fullWidth = _a.fullWidth, inline = _a.inline, rest = __rest(_a, ["children", "defaultSelected", "onSelected", "fullWidth", "inline"]);
|
|
35
|
-
var _c = useState(defaultSelected), activeTab = _c[0], setActiveTab = _c[1];
|
|
36
|
-
var tabList = filterChildrenByType(children, TabList);
|
|
37
|
-
var tabPanels = filterChildrenByType(children, TabPanel);
|
|
38
|
-
var tabRefs = tabPanels.map(function () { return createRef(); });
|
|
39
|
-
var loaded = useRef(false);
|
|
40
|
-
useEffect(function () {
|
|
41
|
-
if (loaded.current) {
|
|
42
|
-
onSelected && onSelected(activeTab);
|
|
43
|
-
}
|
|
44
|
-
else {
|
|
45
|
-
loaded.current = true;
|
|
46
|
-
}
|
|
47
|
-
}, [onSelected, activeTab]);
|
|
48
|
-
return (React.createElement(Card, __assign({}, rest),
|
|
49
|
-
tabList.map(function (child) {
|
|
50
|
-
return cloneElement(child, {
|
|
51
|
-
setActiveTab: setActiveTab,
|
|
52
|
-
activeTab: activeTab,
|
|
53
|
-
tabRefs: tabRefs,
|
|
54
|
-
fullWidth: fullWidth,
|
|
55
|
-
inline: inline,
|
|
56
|
-
});
|
|
57
|
-
}),
|
|
58
|
-
tabPanels
|
|
59
|
-
.filter(function (_, index) { return index === activeTab; })
|
|
60
|
-
.map(function (child, index) {
|
|
61
|
-
return cloneElement(child, {
|
|
62
|
-
hidden: activeTab !== index,
|
|
63
|
-
});
|
|
64
|
-
})));
|
|
65
|
-
})(function (_a) {
|
|
66
|
-
var _b = _a.theme, card = _b.card, tabs = _b.tabs, inline = _a.inline;
|
|
67
|
-
return css(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n padding: 0;\n border: ", " solid\n ", ";\n "], ["\n padding: 0;\n border: ", " solid\n ", ";\n "])), card.borderWidth, inline ? card.borderColor : tabs.tab.borderColor);
|
|
68
|
-
});
|
|
69
|
-
var templateObject_1;
|
|
@@ -1,69 +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, isValidElement, cloneElement, } from 'react';
|
|
28
|
-
import { View } from 'react-native';
|
|
29
|
-
import styled, { css } from '../../styled.native';
|
|
30
|
-
import { styledComponentWithBreakpoints } from '../../utils';
|
|
31
|
-
var StyledP = styled.Text(function (_a) {
|
|
32
|
-
var text = _a.theme.text, smallAndUp = _a.smallAndUp;
|
|
33
|
-
var fontSize = smallAndUp ? text.p.fontSize[1] : text.p.fontSize[0];
|
|
34
|
-
var lineHeight = smallAndUp ? text.p.lineHeight[1] : text.p.lineHeight[0];
|
|
35
|
-
return css(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n font-family: ", ";\n font-weight: ", ";\n font-size: ", ";\n line-height: ", ";\n color: ", ";\n margin-top: ", ";\n margin-bottom: ", ";\n "], ["\n font-family: ", ";\n font-weight: ", ";\n font-size: ", ";\n line-height: ", ";\n color: ", ";\n margin-top: ", ";\n margin-bottom: ", ";\n "])), text.fontFamily, text.fontWeight, fontSize, lineHeight, text.color, smallAndUp ? text.p.marginTop[1] : text.p.marginTop[0], smallAndUp
|
|
36
|
-
? text.p.marginBottom[1]
|
|
37
|
-
: text.p.marginBottom[0]);
|
|
38
|
-
});
|
|
39
|
-
export var P = styledComponentWithBreakpoints(StyledP);
|
|
40
|
-
var StyledSmall = styled.Text(function (_a) {
|
|
41
|
-
var text = _a.theme.text, smallAndUp = _a.smallAndUp;
|
|
42
|
-
return css(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n font-size: ", ";\n "], ["\n font-size: ", ";\n "])), smallAndUp ? text.small.fontSize[1] : text.small.fontSize[0]);
|
|
43
|
-
});
|
|
44
|
-
export var Small = styledComponentWithBreakpoints(StyledSmall);
|
|
45
|
-
export var Strong = styled.Text(function (_a) {
|
|
46
|
-
var text = _a.theme.text;
|
|
47
|
-
return "\n font-family: ".concat(text.strong.fontFamily, ";\n font-weight: ").concat(text.strong.fontWeight, ";\n ");
|
|
48
|
-
});
|
|
49
|
-
export var Em = styled.Text(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n font-style: italic;\n"], ["\n font-style: italic;\n"])));
|
|
50
|
-
export var LineThrough = styled.Text(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n text-decoration: line-through;\n"], ["\n text-decoration: line-through;\n"])));
|
|
51
|
-
export var TextGroup = function (_a) {
|
|
52
|
-
var children = _a.children, rest = __rest(_a, ["children"]);
|
|
53
|
-
var filteredChildren = [];
|
|
54
|
-
Children.forEach(children, function (child) {
|
|
55
|
-
if (isValidElement(child)) {
|
|
56
|
-
filteredChildren.push(child);
|
|
57
|
-
}
|
|
58
|
-
});
|
|
59
|
-
return (React.createElement(View, __assign({}, rest), Children.map(filteredChildren, function (child, index) {
|
|
60
|
-
if (!isValidElement(child)) {
|
|
61
|
-
return;
|
|
62
|
-
}
|
|
63
|
-
var style = __assign(__assign(__assign({}, child.props.style), (index === 0 ? { marginTop: 0 } : {})), { marginBottom: 0 });
|
|
64
|
-
return cloneElement(child, {
|
|
65
|
-
style: style,
|
|
66
|
-
});
|
|
67
|
-
})));
|
|
68
|
-
};
|
|
69
|
-
var templateObject_1, templateObject_2, templateObject_3, templateObject_4;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { P, Strong, Em, Small, LineThrough, TextGroup } from './Text';
|
|
@@ -1,30 +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 { Field } from '../Field';
|
|
25
|
-
import { CurrencyInput } from '../Input/CurrencyInput';
|
|
26
|
-
export var CurrencyField = forwardRef(function (_a, ref) {
|
|
27
|
-
var rest = __rest(_a, []);
|
|
28
|
-
return (React.createElement(Field, __assign({ affixWidth: 40 }, rest, { ref: ref }),
|
|
29
|
-
React.createElement(CurrencyInput, null)));
|
|
30
|
-
});
|
|
@@ -1,30 +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 { Field } from '../Field';
|
|
25
|
-
import { EmailInput } from '../Input/EmailInput';
|
|
26
|
-
export var EmailField = forwardRef(function (_a, ref) {
|
|
27
|
-
var rest = __rest(_a, []);
|
|
28
|
-
return (React.createElement(Field, __assign({}, rest, { ref: ref }),
|
|
29
|
-
React.createElement(EmailInput, null)));
|
|
30
|
-
});
|
|
@@ -1,30 +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 { Field } from '../Field';
|
|
25
|
-
import { NumberInput } from '../Input/NumberInput';
|
|
26
|
-
export var NumberField = forwardRef(function (_a, ref) {
|
|
27
|
-
var rest = __rest(_a, []);
|
|
28
|
-
return (React.createElement(Field, __assign({}, rest, { ref: ref }),
|
|
29
|
-
React.createElement(NumberInput, null)));
|
|
30
|
-
});
|
|
@@ -1,30 +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 { Field } from '../Field';
|
|
25
|
-
import { PasswordInput } from '../Input/PasswordInput';
|
|
26
|
-
export var PasswordField = forwardRef(function (_a, ref) {
|
|
27
|
-
var rest = __rest(_a, []);
|
|
28
|
-
return (React.createElement(Field, __assign({}, rest, { ref: ref }),
|
|
29
|
-
React.createElement(PasswordInput, null)));
|
|
30
|
-
});
|
|
@@ -1,30 +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 { Field } from '../Field';
|
|
25
|
-
import { TelInput } from '../Input/TelInput';
|
|
26
|
-
export var TelField = forwardRef(function (_a, ref) {
|
|
27
|
-
var rest = __rest(_a, []);
|
|
28
|
-
return (React.createElement(Field, __assign({}, rest, { ref: ref }),
|
|
29
|
-
React.createElement(TelInput, null)));
|
|
30
|
-
});
|
|
@@ -1,30 +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 { Field } from '../Field';
|
|
25
|
-
import { TextInput } from '../Input/TextInput';
|
|
26
|
-
export var TextField = forwardRef(function (_a, ref) {
|
|
27
|
-
var rest = __rest(_a, []);
|
|
28
|
-
return (React.createElement(Field, __assign({}, rest, { ref: ref }),
|
|
29
|
-
React.createElement(TextInput, null)));
|
|
30
|
-
});
|
|
@@ -1,30 +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 { Field } from '../Field';
|
|
25
|
-
import { TextareaInput } from '../Input/TextareaInput';
|
|
26
|
-
export var TextareaField = forwardRef(function (_a, ref) {
|
|
27
|
-
var rest = __rest(_a, []);
|
|
28
|
-
return (React.createElement(Field, __assign({}, rest, { ref: ref }),
|
|
29
|
-
React.createElement(TextareaInput, null)));
|
|
30
|
-
});
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export { CurrencyField } from './CurrencyField';
|
|
2
|
-
export { TextField } from './TextField';
|
|
3
|
-
export { NumberField } from './NumberField';
|
|
4
|
-
export { TelField } from './TelField';
|
|
5
|
-
export { EmailField } from './EmailField';
|
|
6
|
-
export { PasswordField } from './PasswordField';
|
|
7
|
-
export { TextareaField } from './TextareaField';
|
|
@@ -1,49 +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, { forwardRef, useContext } from 'react';
|
|
28
|
-
import { Text } from 'react-native';
|
|
29
|
-
import styled, { css, ThemeContext } from '../../styled.native';
|
|
30
|
-
import { getText } from '../../utils/utils';
|
|
31
|
-
import { Icon } from '../Icon';
|
|
32
|
-
var StyledText = styled.Text(function (_a) {
|
|
33
|
-
var textLink = _a.theme.textLink;
|
|
34
|
-
return css(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n color: ", ";\n text-decoration: underline;\n text-decoration-color: ", ";\n font-weight: ", ";\n "], ["\n color: ", ";\n text-decoration: underline;\n text-decoration-color: ", ";\n font-weight: ", ";\n "])), textLink.color, textLink.color, textLink.fontWeight);
|
|
35
|
-
});
|
|
36
|
-
var TextLink = forwardRef(function (_a, ref) {
|
|
37
|
-
var children = _a.children, _b = _a.opensInNewWindow, opensInNewWindow = _b === void 0 ? false : _b, accessibilityLabel = _a.accessibilityLabel, rest = __rest(_a, ["children", "opensInNewWindow", "accessibilityLabel"]);
|
|
38
|
-
var textLink = useContext(ThemeContext).textLink;
|
|
39
|
-
var updatedAccessibilityLabel = opensInNewWindow
|
|
40
|
-
? "".concat(accessibilityLabel ? accessibilityLabel : getText(children), " (opens in new window)")
|
|
41
|
-
: accessibilityLabel;
|
|
42
|
-
return (React.createElement(Text, __assign({}, rest, { accessibilityLabel: updatedAccessibilityLabel, ref: ref }),
|
|
43
|
-
React.createElement(StyledText, null, children),
|
|
44
|
-
opensInNewWindow && (React.createElement(React.Fragment, null,
|
|
45
|
-
"\u00A0",
|
|
46
|
-
React.createElement(Icon, { color: textLink.color, size: 12, name: "new-window" })))));
|
|
47
|
-
});
|
|
48
|
-
export { TextLink };
|
|
49
|
-
var templateObject_1;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { TextLink } from './TextLink';
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
export * from './Accordion';
|
|
2
|
-
export * from './Badge';
|
|
3
|
-
export * from './Card';
|
|
4
|
-
export * from './Checkbox';
|
|
5
|
-
export * from './CTAButton';
|
|
6
|
-
export * from './CTALink';
|
|
7
|
-
export * from './DateField';
|
|
8
|
-
export * from './Disclosure';
|
|
9
|
-
export * from './ErrorSummaryNotification';
|
|
10
|
-
export * from './Field';
|
|
11
|
-
export * from './Grid';
|
|
12
|
-
export * from './NavHeader';
|
|
13
|
-
export * from './Heading';
|
|
14
|
-
export * from './Icon';
|
|
15
|
-
export * from './Input';
|
|
16
|
-
export * from './List';
|
|
17
|
-
export * from './Margin';
|
|
18
|
-
export * from './Notification';
|
|
19
|
-
export * from './Radio';
|
|
20
|
-
export * from './SummaryList';
|
|
21
|
-
export * from './Stack';
|
|
22
|
-
export * from './Tabs';
|
|
23
|
-
export * from './Text';
|
|
24
|
-
export * from './TextField';
|
|
25
|
-
export * from './TextLink';
|
|
26
|
-
export * from './DataTable';
|
|
27
|
-
export * from './SkeletonLoading';
|
package/dist/esm/hooks/index.js
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { useContext } from 'react';
|
|
2
|
-
import { useWindowDimensions } from 'react-native';
|
|
3
|
-
import { ThemeContext } from '../styled.native';
|
|
4
|
-
export var useBreakpoint = function () {
|
|
5
|
-
var breakpoints = useContext(ThemeContext).breakpoints;
|
|
6
|
-
var width = useWindowDimensions().width;
|
|
7
|
-
return {
|
|
8
|
-
smallAndUp: width >= breakpoints.small,
|
|
9
|
-
mediumAndUp: width >= breakpoints.medium,
|
|
10
|
-
largeAndUp: width >= breakpoints.large,
|
|
11
|
-
};
|
|
12
|
-
};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { useState, useEffect } from 'react';
|
|
2
|
-
import { useBreakpoint } from './use-breakpoint';
|
|
3
|
-
export var useFullWidth = function (fullWidth) {
|
|
4
|
-
if (fullWidth === void 0) { fullWidth = 'small'; }
|
|
5
|
-
var _a = useState(true), isFullWidth = _a[0], setIsfullWidth = _a[1];
|
|
6
|
-
var smallAndUp = useBreakpoint().smallAndUp;
|
|
7
|
-
useEffect(function () {
|
|
8
|
-
var values = {
|
|
9
|
-
small: !smallAndUp,
|
|
10
|
-
always: true,
|
|
11
|
-
never: false,
|
|
12
|
-
};
|
|
13
|
-
setIsfullWidth(values[fullWidth]);
|
|
14
|
-
}, [isFullWidth, smallAndUp, setIsfullWidth]);
|
|
15
|
-
return isFullWidth;
|
|
16
|
-
};
|
package/dist/esm/index.js
DELETED
|
@@ -1,65 +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, { createContext, useContext } from 'react';
|
|
13
|
-
import { ArrowDown, ArrowLeft, ArrowRight, ArrowUp, CaretDown, CaretLeft, CaretRight, CaretUp, Chart, Check, ChevronDown, ChevronLeft, ChevronLeftSmall, ChevronLeftSmallFirst, ChevronRight, ChevronRightSmall, ChevronRightSmallLast, ChevronUp, Cross, Dollar, Download, Electricity, Euro, Gas, Help, Hide, Home, Info, Link, Logo, Minus, NewWindow, PaymentCard, Plus, Pound, Search, Show, User, } from './icons';
|
|
14
|
-
var defaultIcons = {
|
|
15
|
-
'arrow-down': ArrowDown,
|
|
16
|
-
'arrow-left': ArrowLeft,
|
|
17
|
-
'arrow-right': ArrowRight,
|
|
18
|
-
'arrow-up': ArrowUp,
|
|
19
|
-
'caret-down': CaretDown,
|
|
20
|
-
'caret-left': CaretLeft,
|
|
21
|
-
'caret-right': CaretRight,
|
|
22
|
-
'caret-up': CaretUp,
|
|
23
|
-
chart: Chart,
|
|
24
|
-
check: Check,
|
|
25
|
-
'chevron-left': ChevronLeft,
|
|
26
|
-
'chevron-left-small': ChevronLeftSmall,
|
|
27
|
-
'chevron-left-small-first': ChevronLeftSmallFirst,
|
|
28
|
-
'chevron-right': ChevronRight,
|
|
29
|
-
'chevron-right-small': ChevronRightSmall,
|
|
30
|
-
'chevron-right-small-last': ChevronRightSmallLast,
|
|
31
|
-
'chevron-up': ChevronUp,
|
|
32
|
-
'chevron-down': ChevronDown,
|
|
33
|
-
cross: Cross,
|
|
34
|
-
dollar: Dollar,
|
|
35
|
-
download: Download,
|
|
36
|
-
electricity: Electricity,
|
|
37
|
-
euro: Euro,
|
|
38
|
-
gas: Gas,
|
|
39
|
-
help: Help,
|
|
40
|
-
hide: Hide,
|
|
41
|
-
home: Home,
|
|
42
|
-
info: Info,
|
|
43
|
-
'new-window': NewWindow,
|
|
44
|
-
link: Link,
|
|
45
|
-
logo: Logo,
|
|
46
|
-
minus: Minus,
|
|
47
|
-
'payment-card': PaymentCard,
|
|
48
|
-
plus: Plus,
|
|
49
|
-
pound: Pound,
|
|
50
|
-
search: Search,
|
|
51
|
-
show: Show,
|
|
52
|
-
user: User,
|
|
53
|
-
};
|
|
54
|
-
var IconsContext = createContext(null);
|
|
55
|
-
function useIcons() {
|
|
56
|
-
var icons = useContext(IconsContext) || defaultIcons;
|
|
57
|
-
return icons;
|
|
58
|
-
}
|
|
59
|
-
function IconsProvider(_a) {
|
|
60
|
-
var children = _a.children, _b = _a.icons, icons = _b === void 0 ? {} : _b;
|
|
61
|
-
var baseIcons = useContext(IconsContext) || defaultIcons;
|
|
62
|
-
var mergedIcons = __assign(__assign({}, baseIcons), icons);
|
|
63
|
-
return (React.createElement(IconsContext.Provider, { value: mergedIcons }, children));
|
|
64
|
-
}
|
|
65
|
-
export { useIcons, IconsProvider, defaultIcons };
|