@ovotech/element-native 2.0.0 → 2.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/Accordion/Accordion.d.ts +5 -0
- package/dist/components/Accordion/Accordion.js +139 -0
- package/dist/components/Accordion/Group.d.ts +3 -0
- package/dist/components/Accordion/Group.js +41 -0
- package/dist/components/Accordion/Icon.d.ts +4 -0
- package/dist/components/Accordion/Icon.js +68 -0
- package/dist/components/Accordion/hooks.d.ts +6 -0
- package/dist/components/Accordion/hooks.js +43 -0
- package/dist/components/Accordion/index.d.ts +4 -0
- package/dist/components/Accordion/index.js +9 -0
- package/dist/components/Accordion/styles.d.ts +46 -0
- package/dist/components/Accordion/styles.js +52 -0
- package/dist/components/Accordion/types.d.ts +20 -0
- package/dist/components/Accordion/types.js +2 -0
- package/dist/components/Badge/Badge.d.ts +12 -0
- package/dist/components/Badge/Badge.js +79 -0
- package/dist/components/Badge/index.d.ts +1 -0
- package/dist/components/Badge/index.js +5 -0
- package/dist/components/CTAButton/CTAButton.d.ts +24 -0
- package/dist/components/CTAButton/CTAButton.js +107 -0
- package/dist/components/CTAButton/index.d.ts +1 -0
- package/dist/components/CTAButton/index.js +8 -0
- package/dist/components/CTALink/CTALink.d.ts +12 -0
- package/dist/components/CTALink/CTALink.js +45 -0
- package/dist/components/CTALink/index.d.ts +1 -0
- package/dist/components/CTALink/index.js +7 -0
- package/dist/components/Card/Card.d.ts +7 -0
- package/dist/components/Card/Card.js +33 -0
- package/dist/components/Card/index.d.ts +1 -0
- package/dist/components/Card/index.js +5 -0
- package/dist/components/Checkbox/Checkbox.d.ts +12 -0
- package/dist/components/Checkbox/Checkbox.js +121 -0
- package/dist/components/Checkbox/CheckboxField.d.ts +9 -0
- package/dist/components/Checkbox/CheckboxField.js +73 -0
- package/dist/components/Checkbox/index.d.ts +2 -0
- package/dist/components/Checkbox/index.js +7 -0
- package/dist/components/DataTable/DataTable.d.ts +13 -0
- package/dist/components/DataTable/DataTable.js +134 -0
- package/dist/components/DataTable/index.d.ts +1 -0
- package/dist/components/DataTable/index.js +5 -0
- package/dist/components/DateField/DateField.d.ts +21 -0
- package/dist/components/DateField/DateField.js +109 -0
- package/dist/components/DateField/index.d.ts +1 -0
- package/dist/components/DateField/index.js +5 -0
- package/dist/components/Disclosure/Disclosure.d.ts +8 -0
- package/dist/components/Disclosure/Disclosure.js +86 -0
- package/dist/components/Disclosure/index.d.ts +1 -0
- package/dist/components/Disclosure/index.js +17 -0
- package/dist/components/ErrorSummaryNotification/ErrorSummaryNotification.d.ts +18 -0
- package/dist/components/ErrorSummaryNotification/ErrorSummaryNotification.js +73 -0
- package/dist/components/ErrorSummaryNotification/index.d.ts +1 -0
- package/dist/components/ErrorSummaryNotification/index.js +5 -0
- package/dist/components/ErrorText/ErrorText.d.ts +13 -0
- package/dist/components/ErrorText/ErrorText.js +41 -0
- package/dist/components/ErrorText/index.d.ts +1 -0
- package/dist/components/ErrorText/index.js +5 -0
- package/dist/components/Field/Field.d.ts +13 -0
- package/dist/components/Field/Field.js +94 -0
- package/dist/components/Field/index.d.ts +1 -0
- package/dist/components/Field/index.js +17 -0
- package/dist/components/FormGroup/FormGroup.d.ts +8 -0
- package/dist/components/FormGroup/FormGroup.js +43 -0
- package/dist/components/FormGroup/index.d.ts +1 -0
- package/dist/components/FormGroup/index.js +5 -0
- package/dist/components/Grid/Col.d.ts +12 -0
- package/dist/components/Grid/Col.js +58 -0
- package/dist/components/Grid/Row.d.ts +9 -0
- package/dist/components/Grid/Row.js +76 -0
- package/dist/components/Grid/index.d.ts +2 -0
- package/dist/components/Grid/index.js +7 -0
- package/dist/components/Heading/Heading.d.ts +6 -0
- package/dist/components/Heading/Heading.js +115 -0
- package/dist/components/Heading/index.d.ts +1 -0
- package/dist/components/Heading/index.js +8 -0
- package/dist/components/HintText/HintText.d.ts +13 -0
- package/dist/components/HintText/HintText.js +41 -0
- package/dist/components/HintText/index.d.ts +1 -0
- package/dist/components/HintText/index.js +5 -0
- package/dist/components/Icon/Icon.d.ts +11 -0
- package/dist/components/Icon/Icon.js +62 -0
- package/dist/components/Icon/index.d.ts +1 -0
- package/dist/components/Icon/index.js +5 -0
- package/dist/components/Input/CurrencyInput.d.ts +15 -0
- package/dist/components/Input/CurrencyInput.js +59 -0
- package/dist/components/Input/EmailInput.d.ts +9 -0
- package/dist/components/Input/EmailInput.js +41 -0
- package/dist/components/Input/Input.d.ts +16 -0
- package/dist/components/Input/Input.js +102 -0
- package/dist/components/Input/NumberInput.d.ts +9 -0
- package/dist/components/Input/NumberInput.js +41 -0
- package/dist/components/Input/PasswordInput.d.ts +9 -0
- package/dist/components/Input/PasswordInput.js +55 -0
- package/dist/components/Input/TelInput.d.ts +9 -0
- package/dist/components/Input/TelInput.js +41 -0
- package/dist/components/Input/TextInput.d.ts +9 -0
- package/dist/components/Input/TextInput.js +41 -0
- package/dist/components/Input/TextareaInput.d.ts +15 -0
- package/dist/components/Input/TextareaInput.js +64 -0
- package/dist/components/Input/index.d.ts +7 -0
- package/dist/components/Input/index.js +17 -0
- package/dist/components/LabelText/LabelText.d.ts +13 -0
- package/dist/components/LabelText/LabelText.js +41 -0
- package/dist/components/LabelText/index.d.ts +1 -0
- package/dist/components/LabelText/index.js +5 -0
- package/dist/components/List/List.d.ts +29 -0
- package/dist/components/List/List.js +169 -0
- package/dist/components/List/index.d.ts +1 -0
- package/dist/components/List/index.js +10 -0
- package/dist/components/Margin/Margin.d.ts +23 -0
- package/dist/components/Margin/Margin.js +53 -0
- package/dist/components/Margin/index.d.ts +1 -0
- package/dist/components/Margin/index.js +5 -0
- package/dist/components/NavHeader/NavHeader.d.ts +15 -0
- package/dist/components/NavHeader/NavHeader.js +93 -0
- package/dist/components/NavHeader/index.d.ts +1 -0
- package/dist/components/NavHeader/index.js +5 -0
- package/dist/components/Notification/Notification.d.ts +31 -0
- package/dist/components/Notification/Notification.js +118 -0
- package/dist/components/Notification/index.d.ts +1 -0
- package/dist/components/Notification/index.js +9 -0
- package/dist/components/Radio/Radio.d.ts +12 -0
- package/dist/components/Radio/Radio.js +114 -0
- package/dist/components/Radio/RadioField.d.ts +11 -0
- package/dist/components/Radio/RadioField.js +78 -0
- package/dist/components/Radio/index.d.ts +2 -0
- package/dist/components/Radio/index.js +7 -0
- package/dist/components/SkeletonLoading/Skeleton.d.ts +1 -0
- package/dist/components/SkeletonLoading/Skeleton.js +13 -0
- package/dist/components/SkeletonLoading/SkeletonCTA.d.ts +6 -0
- package/dist/components/SkeletonLoading/SkeletonCTA.js +41 -0
- package/dist/components/SkeletonLoading/SkeletonCircle.d.ts +6 -0
- package/dist/components/SkeletonLoading/SkeletonCircle.js +46 -0
- package/dist/components/SkeletonLoading/SkeletonHeading.d.ts +8 -0
- package/dist/components/SkeletonLoading/SkeletonHeading.js +41 -0
- package/dist/components/SkeletonLoading/SkeletonText.d.ts +6 -0
- package/dist/components/SkeletonLoading/SkeletonText.js +49 -0
- package/dist/components/SkeletonLoading/index.d.ts +5 -0
- package/dist/components/SkeletonLoading/index.js +21 -0
- package/dist/components/Stack/Stack.d.ts +10 -0
- package/dist/components/Stack/Stack.js +75 -0
- package/dist/components/Stack/index.d.ts +1 -0
- package/dist/components/Stack/index.js +5 -0
- package/dist/components/Stretch/Stretch.d.ts +7 -0
- package/dist/components/Stretch/Stretch.js +31 -0
- package/dist/components/Stretch/index.d.ts +1 -0
- package/dist/components/Stretch/index.js +17 -0
- package/dist/components/SubLabelText/SubLabelText.d.ts +13 -0
- package/dist/components/SubLabelText/SubLabelText.js +41 -0
- package/dist/components/SubLabelText/index.d.ts +1 -0
- package/dist/components/SubLabelText/index.js +5 -0
- package/dist/components/SummaryList/SummaryList.d.ts +10 -0
- package/dist/components/SummaryList/SummaryList.js +66 -0
- package/dist/components/SummaryList/index.d.ts +1 -0
- package/dist/components/SummaryList/index.js +6 -0
- package/dist/components/Tabs/Tab.d.ts +11 -0
- package/dist/components/Tabs/Tab.js +74 -0
- package/dist/components/Tabs/TabList.d.ts +1 -0
- package/dist/components/Tabs/TabList.js +74 -0
- package/dist/components/Tabs/TabPanel.d.ts +3 -0
- package/dist/components/Tabs/TabPanel.js +41 -0
- package/dist/components/Tabs/Tabs.d.ts +9 -0
- package/dist/components/Tabs/Tabs.js +95 -0
- package/dist/components/Tabs/index.d.ts +4 -0
- package/dist/components/Tabs/index.js +11 -0
- package/dist/components/Text/Text.d.ts +26 -0
- package/dist/components/Text/Text.js +96 -0
- package/dist/components/Text/index.d.ts +1 -0
- package/dist/components/Text/index.js +10 -0
- package/dist/components/TextField/CurrencyField.d.ts +11 -0
- package/dist/components/TextField/CurrencyField.js +56 -0
- package/dist/components/TextField/EmailField.d.ts +9 -0
- package/dist/components/TextField/EmailField.js +56 -0
- package/dist/components/TextField/NumberField.d.ts +9 -0
- package/dist/components/TextField/NumberField.js +56 -0
- package/dist/components/TextField/PasswordField.d.ts +9 -0
- package/dist/components/TextField/PasswordField.js +56 -0
- package/dist/components/TextField/TelField.d.ts +9 -0
- package/dist/components/TextField/TelField.js +56 -0
- package/dist/components/TextField/TextField.d.ts +9 -0
- package/dist/components/TextField/TextField.js +56 -0
- package/dist/components/TextField/TextareaField.d.ts +11 -0
- package/dist/components/TextField/TextareaField.js +56 -0
- package/dist/components/TextField/index.d.ts +7 -0
- package/dist/components/TextField/index.js +17 -0
- package/dist/components/TextLink/TextLink.d.ts +8 -0
- package/dist/components/TextLink/TextLink.js +75 -0
- package/dist/components/TextLink/index.d.ts +1 -0
- package/dist/components/TextLink/index.js +5 -0
- package/dist/components/index.d.ts +27 -0
- package/dist/components/index.js +43 -0
- package/dist/esm/components/Accordion/Accordion.js +111 -0
- package/dist/esm/components/Accordion/Group.js +14 -0
- package/dist/esm/components/Accordion/Icon.js +38 -0
- package/dist/esm/components/Accordion/hooks.js +16 -0
- package/dist/esm/components/Accordion/index.js +3 -0
- package/dist/esm/components/Accordion/styles.js +49 -0
- package/dist/esm/components/Accordion/types.js +1 -0
- package/dist/esm/components/Badge/Badge.js +49 -0
- package/dist/esm/components/Badge/index.js +1 -0
- package/dist/esm/components/CTAButton/CTAButton.js +78 -0
- package/dist/esm/components/CTAButton/index.js +1 -0
- package/dist/esm/components/CTALink/CTALink.js +17 -0
- package/dist/esm/components/CTALink/index.js +1 -0
- package/dist/esm/components/Card/Card.js +27 -0
- package/dist/esm/components/Card/index.js +1 -0
- package/dist/esm/components/Checkbox/Checkbox.js +95 -0
- package/dist/esm/components/Checkbox/CheckboxField.js +47 -0
- package/dist/esm/components/Checkbox/index.js +2 -0
- package/dist/esm/components/DataTable/DataTable.js +108 -0
- package/dist/esm/components/DataTable/index.js +1 -0
- package/dist/esm/components/DateField/DateField.js +83 -0
- package/dist/esm/components/DateField/index.js +1 -0
- package/dist/esm/components/Disclosure/Disclosure.js +60 -0
- package/dist/esm/components/Disclosure/index.js +1 -0
- package/dist/esm/components/ErrorSummaryNotification/ErrorSummaryNotification.js +47 -0
- package/dist/esm/components/ErrorSummaryNotification/index.js +1 -0
- package/dist/esm/components/ErrorText/ErrorText.js +15 -0
- package/dist/esm/components/ErrorText/index.js +1 -0
- package/dist/esm/components/Field/Field.js +68 -0
- package/dist/esm/components/Field/index.js +1 -0
- package/dist/esm/components/FormGroup/FormGroup.js +37 -0
- package/dist/esm/components/FormGroup/index.js +1 -0
- package/dist/esm/components/Grid/Col.js +32 -0
- package/dist/esm/components/Grid/Row.js +47 -0
- package/dist/esm/components/Grid/index.js +2 -0
- package/dist/esm/components/Heading/Heading.js +82 -0
- package/dist/esm/components/Heading/index.js +1 -0
- package/dist/esm/components/HintText/HintText.js +15 -0
- package/dist/esm/components/HintText/index.js +1 -0
- package/dist/esm/components/Icon/Icon.js +35 -0
- package/dist/esm/components/Icon/index.js +1 -0
- package/dist/esm/components/Input/CurrencyInput.js +33 -0
- package/dist/esm/components/Input/EmailInput.js +15 -0
- package/dist/esm/components/Input/Input.js +76 -0
- package/dist/esm/components/Input/NumberInput.js +15 -0
- package/dist/esm/components/Input/PasswordInput.js +29 -0
- package/dist/esm/components/Input/TelInput.js +15 -0
- package/dist/esm/components/Input/TextInput.js +15 -0
- package/dist/esm/components/Input/TextareaInput.js +38 -0
- package/dist/esm/components/Input/index.js +7 -0
- package/dist/esm/components/LabelText/LabelText.js +15 -0
- package/dist/esm/components/LabelText/index.js +1 -0
- package/dist/esm/components/List/List.js +138 -0
- package/dist/esm/components/List/index.js +1 -0
- package/dist/esm/components/Margin/Margin.js +47 -0
- package/dist/esm/components/Margin/index.js +1 -0
- package/dist/esm/components/NavHeader/NavHeader.js +63 -0
- package/dist/esm/components/NavHeader/index.js +1 -0
- package/dist/esm/components/Notification/Notification.js +92 -0
- package/dist/esm/components/Notification/index.js +1 -0
- package/dist/esm/components/Radio/Radio.js +85 -0
- package/dist/esm/components/Radio/RadioField.js +52 -0
- package/dist/esm/components/Radio/index.js +2 -0
- package/dist/esm/components/SkeletonLoading/Skeleton.js +7 -0
- package/dist/esm/components/SkeletonLoading/SkeletonCTA.js +34 -0
- package/dist/esm/components/SkeletonLoading/SkeletonCircle.js +39 -0
- package/dist/esm/components/SkeletonLoading/SkeletonHeading.js +34 -0
- package/dist/esm/components/SkeletonLoading/SkeletonText.js +42 -0
- package/dist/esm/components/SkeletonLoading/index.js +5 -0
- package/dist/esm/components/Stack/Stack.js +46 -0
- package/dist/esm/components/Stack/index.js +1 -0
- package/dist/esm/components/Stretch/Stretch.js +24 -0
- package/dist/esm/components/Stretch/index.js +1 -0
- package/dist/esm/components/SubLabelText/SubLabelText.js +15 -0
- package/dist/esm/components/SubLabelText/index.js +1 -0
- package/dist/esm/components/SummaryList/SummaryList.js +39 -0
- package/dist/esm/components/SummaryList/index.js +1 -0
- package/dist/esm/components/Tabs/Tab.js +45 -0
- package/dist/esm/components/Tabs/TabList.js +48 -0
- package/dist/esm/components/Tabs/TabPanel.js +34 -0
- package/dist/esm/components/Tabs/Tabs.js +69 -0
- package/dist/esm/components/Tabs/index.js +4 -0
- package/dist/esm/components/Text/Text.js +69 -0
- package/dist/esm/components/Text/index.js +1 -0
- package/dist/esm/components/TextField/CurrencyField.js +30 -0
- package/dist/esm/components/TextField/EmailField.js +30 -0
- package/dist/esm/components/TextField/NumberField.js +30 -0
- package/dist/esm/components/TextField/PasswordField.js +30 -0
- package/dist/esm/components/TextField/TelField.js +30 -0
- package/dist/esm/components/TextField/TextField.js +30 -0
- package/dist/esm/components/TextField/TextareaField.js +30 -0
- package/dist/esm/components/TextField/index.js +7 -0
- package/dist/esm/components/TextLink/TextLink.js +49 -0
- package/dist/esm/components/TextLink/index.js +1 -0
- package/dist/esm/components/index.js +27 -0
- package/dist/esm/hooks/index.js +2 -0
- package/dist/esm/hooks/use-breakpoint.js +12 -0
- package/dist/esm/hooks/use-full-width.js +16 -0
- package/dist/esm/index.js +3 -0
- package/dist/esm/providers/IconsProvider.js +65 -0
- package/dist/esm/providers/icons/ArrowDown.js +15 -0
- package/dist/esm/providers/icons/ArrowLeft.js +15 -0
- package/dist/esm/providers/icons/ArrowRight.js +15 -0
- package/dist/esm/providers/icons/ArrowUp.js +15 -0
- package/dist/esm/providers/icons/CaretDown.js +15 -0
- package/dist/esm/providers/icons/CaretLeft.js +15 -0
- package/dist/esm/providers/icons/CaretRight.js +15 -0
- package/dist/esm/providers/icons/CaretUp.js +15 -0
- package/dist/esm/providers/icons/Chart.js +15 -0
- package/dist/esm/providers/icons/Check.js +15 -0
- package/dist/esm/providers/icons/ChevronDown.js +15 -0
- package/dist/esm/providers/icons/ChevronLeft.js +15 -0
- package/dist/esm/providers/icons/ChevronLeftSmall.js +15 -0
- package/dist/esm/providers/icons/ChevronLeftSmallFirst.js +15 -0
- package/dist/esm/providers/icons/ChevronRight.js +15 -0
- package/dist/esm/providers/icons/ChevronRightSmall.js +15 -0
- package/dist/esm/providers/icons/ChevronRightSmallLast.js +15 -0
- package/dist/esm/providers/icons/ChevronUp.js +15 -0
- package/dist/esm/providers/icons/Cross.js +15 -0
- package/dist/esm/providers/icons/Dollar.js +15 -0
- package/dist/esm/providers/icons/Download.js +15 -0
- package/dist/esm/providers/icons/Electricity.js +15 -0
- package/dist/esm/providers/icons/Euro.js +15 -0
- package/dist/esm/providers/icons/Gas.js +16 -0
- package/dist/esm/providers/icons/Help.js +15 -0
- package/dist/esm/providers/icons/Hide.js +15 -0
- package/dist/esm/providers/icons/Home.js +15 -0
- package/dist/esm/providers/icons/Info.js +15 -0
- package/dist/esm/providers/icons/Link.js +16 -0
- package/dist/esm/providers/icons/Logo.js +15 -0
- package/dist/esm/providers/icons/Minus.js +15 -0
- package/dist/esm/providers/icons/NewWindow.js +15 -0
- package/dist/esm/providers/icons/PaymentCard.js +15 -0
- package/dist/esm/providers/icons/Plus.js +15 -0
- package/dist/esm/providers/icons/Pound.js +15 -0
- package/dist/esm/providers/icons/Search.js +15 -0
- package/dist/esm/providers/icons/Show.js +15 -0
- package/dist/esm/providers/icons/User.js +15 -0
- package/dist/esm/providers/icons/index.js +38 -0
- package/dist/esm/providers/index.js +2 -0
- package/dist/esm/providers/types.js +1 -0
- package/dist/esm/styled.native.js +4 -0
- package/dist/esm/theme/create-theme.js +504 -0
- package/dist/esm/theme/index.js +8 -0
- package/dist/esm/theme/theme.js +1 -0
- package/dist/esm/utils/index.js +1 -0
- package/dist/esm/utils/utils.js +93 -0
- package/dist/hooks/index.d.ts +2 -0
- package/dist/hooks/index.js +18 -0
- package/dist/hooks/use-breakpoint.d.ts +7 -0
- package/dist/hooks/use-breakpoint.js +16 -0
- package/dist/hooks/use-full-width.d.ts +2 -0
- package/dist/hooks/use-full-width.js +20 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +19 -0
- package/dist/providers/IconsProvider.d.ts +8 -0
- package/dist/providers/IconsProvider.js +93 -0
- package/dist/providers/icons/ArrowDown.d.ts +2 -0
- package/dist/providers/icons/ArrowDown.js +22 -0
- package/dist/providers/icons/ArrowLeft.d.ts +2 -0
- package/dist/providers/icons/ArrowLeft.js +22 -0
- package/dist/providers/icons/ArrowRight.d.ts +2 -0
- package/dist/providers/icons/ArrowRight.js +22 -0
- package/dist/providers/icons/ArrowUp.d.ts +2 -0
- package/dist/providers/icons/ArrowUp.js +22 -0
- package/dist/providers/icons/CaretDown.d.ts +2 -0
- package/dist/providers/icons/CaretDown.js +22 -0
- package/dist/providers/icons/CaretLeft.d.ts +2 -0
- package/dist/providers/icons/CaretLeft.js +22 -0
- package/dist/providers/icons/CaretRight.d.ts +2 -0
- package/dist/providers/icons/CaretRight.js +22 -0
- package/dist/providers/icons/CaretUp.d.ts +2 -0
- package/dist/providers/icons/CaretUp.js +22 -0
- package/dist/providers/icons/Chart.d.ts +2 -0
- package/dist/providers/icons/Chart.js +22 -0
- package/dist/providers/icons/Check.d.ts +2 -0
- package/dist/providers/icons/Check.js +22 -0
- package/dist/providers/icons/ChevronDown.d.ts +2 -0
- package/dist/providers/icons/ChevronDown.js +22 -0
- package/dist/providers/icons/ChevronLeft.d.ts +2 -0
- package/dist/providers/icons/ChevronLeft.js +22 -0
- package/dist/providers/icons/ChevronLeftSmall.d.ts +2 -0
- package/dist/providers/icons/ChevronLeftSmall.js +22 -0
- package/dist/providers/icons/ChevronLeftSmallFirst.d.ts +2 -0
- package/dist/providers/icons/ChevronLeftSmallFirst.js +22 -0
- package/dist/providers/icons/ChevronRight.d.ts +2 -0
- package/dist/providers/icons/ChevronRight.js +22 -0
- package/dist/providers/icons/ChevronRightSmall.d.ts +2 -0
- package/dist/providers/icons/ChevronRightSmall.js +22 -0
- package/dist/providers/icons/ChevronRightSmallLast.d.ts +2 -0
- package/dist/providers/icons/ChevronRightSmallLast.js +22 -0
- package/dist/providers/icons/ChevronUp.d.ts +2 -0
- package/dist/providers/icons/ChevronUp.js +22 -0
- package/dist/providers/icons/Cross.d.ts +2 -0
- package/dist/providers/icons/Cross.js +22 -0
- package/dist/providers/icons/Dollar.d.ts +2 -0
- package/dist/providers/icons/Dollar.js +22 -0
- package/dist/providers/icons/Download.d.ts +2 -0
- package/dist/providers/icons/Download.js +22 -0
- package/dist/providers/icons/Electricity.d.ts +2 -0
- package/dist/providers/icons/Electricity.js +22 -0
- package/dist/providers/icons/Euro.d.ts +2 -0
- package/dist/providers/icons/Euro.js +22 -0
- package/dist/providers/icons/Gas.d.ts +2 -0
- package/dist/providers/icons/Gas.js +23 -0
- package/dist/providers/icons/Help.d.ts +2 -0
- package/dist/providers/icons/Help.js +22 -0
- package/dist/providers/icons/Hide.d.ts +2 -0
- package/dist/providers/icons/Hide.js +22 -0
- package/dist/providers/icons/Home.d.ts +2 -0
- package/dist/providers/icons/Home.js +22 -0
- package/dist/providers/icons/Info.d.ts +2 -0
- package/dist/providers/icons/Info.js +22 -0
- package/dist/providers/icons/Link.d.ts +2 -0
- package/dist/providers/icons/Link.js +23 -0
- package/dist/providers/icons/Logo.d.ts +2 -0
- package/dist/providers/icons/Logo.js +22 -0
- package/dist/providers/icons/Minus.d.ts +2 -0
- package/dist/providers/icons/Minus.js +22 -0
- package/dist/providers/icons/NewWindow.d.ts +2 -0
- package/dist/providers/icons/NewWindow.js +22 -0
- package/dist/providers/icons/PaymentCard.d.ts +2 -0
- package/dist/providers/icons/PaymentCard.js +22 -0
- package/dist/providers/icons/Plus.d.ts +2 -0
- package/dist/providers/icons/Plus.js +22 -0
- package/dist/providers/icons/Pound.d.ts +2 -0
- package/dist/providers/icons/Pound.js +22 -0
- package/dist/providers/icons/Search.d.ts +2 -0
- package/dist/providers/icons/Search.js +22 -0
- package/dist/providers/icons/Show.d.ts +2 -0
- package/dist/providers/icons/Show.js +22 -0
- package/dist/providers/icons/User.d.ts +2 -0
- package/dist/providers/icons/User.js +22 -0
- package/dist/providers/icons/index.d.ts +38 -0
- package/dist/providers/icons/index.js +54 -0
- package/dist/providers/index.d.ts +2 -0
- package/dist/providers/index.js +18 -0
- package/dist/providers/types.d.ts +4 -0
- package/dist/providers/types.js +2 -0
- package/dist/styled.native.d.ts +6 -0
- package/dist/styled.native.js +33 -0
- package/dist/theme/create-theme.d.ts +18 -0
- package/dist/theme/create-theme.js +511 -0
- package/dist/theme/index.d.ts +5 -0
- package/dist/theme/index.js +26 -0
- package/dist/theme/theme.d.ts +302 -0
- package/dist/theme/theme.js +2 -0
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/index.js +17 -0
- package/dist/utils/utils.d.ts +15 -0
- package/dist/utils/utils.js +126 -0
- package/package.json +1 -1
|
@@ -0,0 +1,92 @@
|
|
|
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, useState, } from 'react';
|
|
28
|
+
import { View } from 'react-native';
|
|
29
|
+
import { useBreakpoint } from '../../hooks';
|
|
30
|
+
import styled, { css, ThemeContext } from '../../styled.native';
|
|
31
|
+
import { Icon } from '../Icon';
|
|
32
|
+
var pxToNumber = function (value) { return parseInt(value.replace('px', '')); };
|
|
33
|
+
var numberToPx = function (value) { return "".concat(value, "px"); };
|
|
34
|
+
var NotificationBox = styled.View(function (_a) {
|
|
35
|
+
var _b = _a.theme, notification = _b.notification, space = _b.space, variant = _a.variant, noMargin = _a.noMargin;
|
|
36
|
+
// @ts-ignore
|
|
37
|
+
var currentVariant = notification.variants[variant];
|
|
38
|
+
return css(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n position: relative;\n border: ", " solid ", ";\n border-radius: ", ";\n margin-bottom: ", ";\n "], ["\n position: relative;\n border: ", " solid ", ";\n border-radius: ", ";\n margin-bottom: ", ";\n "])), notification.borderWidth, currentVariant.borderColor, notification.borderRadius, noMargin ? 0 : space[4]);
|
|
39
|
+
});
|
|
40
|
+
export var NotificationContentBox = styled.View(function (_a) {
|
|
41
|
+
var _b = _a.theme, colors = _b.colors, _c = _b.notification, paddingX = _c.paddingX, paddingY = _c.paddingY, variants = _c.variants, smallAndUp = _a.smallAndUp, variant = _a.variant;
|
|
42
|
+
// @ts-ignore
|
|
43
|
+
var currentVariant = variants[variant];
|
|
44
|
+
return css(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n padding: ", " ", ";\n\n a {\n color: ", ";\n :hover {\n color: ", ";\n }\n }\n ul {\n list-style-type: square;\n }\n li {\n color: ", ";\n }\n "], ["\n padding: ", " ", ";\n\n a {\n color: ", ";\n :hover {\n color: ", ";\n }\n }\n ul {\n list-style-type: square;\n }\n li {\n color: ", ";\n }\n "])), paddingX[smallAndUp ? 1 : 0], paddingY[smallAndUp ? 1 : 0], currentVariant.textColor, colors.body, currentVariant.textColor);
|
|
45
|
+
});
|
|
46
|
+
export var NotificationTitleBox = styled.View(function (_a) {
|
|
47
|
+
var notification = _a.theme.notification, variant = _a.variant, dismissable = _a.dismissable, smallAndUp = _a.smallAndUp;
|
|
48
|
+
// @ts-ignore to support additional palettes.
|
|
49
|
+
var currentVariant = notification.variants[variant];
|
|
50
|
+
return css(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n flex-direction: row;\n justify-content: space-between;\n align-items: center;\n background-color: ", ";\n padding-top: ", ";\n padding-bottom: ", ";\n padding-left: ", ";\n padding-right: ", ";\n "], ["\n flex-direction: row;\n justify-content: space-between;\n align-items: center;\n background-color: ", ";\n padding-top: ", ";\n padding-bottom: ", ";\n padding-left: ", ";\n padding-right: ", ";\n "])), currentVariant.background, notification.paddingX[smallAndUp ? 1 : 0], notification.paddingX[smallAndUp ? 1 : 0], notification.paddingY[smallAndUp ? 1 : 0], dismissable
|
|
51
|
+
? numberToPx(pxToNumber(notification.dismiss.touchSize) -
|
|
52
|
+
pxToNumber(notification.dismiss.size))
|
|
53
|
+
: notification.paddingY[smallAndUp ? 1 : 0]);
|
|
54
|
+
});
|
|
55
|
+
var NotificationTitleText = styled.Text(function (_a) {
|
|
56
|
+
var _b = _a.theme, fonts = _b.fonts, fontWeights = _b.fontWeights, responsiveFontSizes = _b.responsiveFontSizes, notification = _b.notification, variant = _a.variant;
|
|
57
|
+
// @ts-ignore
|
|
58
|
+
var currentVariant = notification.variants[variant];
|
|
59
|
+
return css(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n color: ", ";\n font-family: ", ";\n font-weight: ", ";\n font-size: ", ";\n "], ["\n color: ", ";\n font-family: ", ";\n font-weight: ", ";\n font-size: ", ";\n "])), currentVariant.textColor, fonts.bold, fontWeights.bold, responsiveFontSizes.body[0]);
|
|
60
|
+
});
|
|
61
|
+
var DismissButton = styled.TouchableOpacity(function (_a) {
|
|
62
|
+
var notification = _a.theme.notification;
|
|
63
|
+
return css(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n position: absolute;\n top: 0;\n right: 0;\n width: ", ";\n height: ", ";\n align-items: center;\n justify-content: center;\n "], ["\n position: absolute;\n top: 0;\n right: 0;\n width: ", ";\n height: ", ";\n align-items: center;\n justify-content: center;\n "])), notification.dismiss.touchSize, notification.dismiss.touchSize);
|
|
64
|
+
});
|
|
65
|
+
export var Notification = forwardRef(function (_a, ref) {
|
|
66
|
+
var _b = _a.variant, variant = _b === void 0 ? 'info' : _b, children = _a.children, title = _a.title, noMargin = _a.noMargin, dismissable = _a.dismissable, onDismiss = _a.onDismiss, rest = __rest(_a, ["variant", "children", "title", "noMargin", "dismissable", "onDismiss"]);
|
|
67
|
+
var breakpoints = useBreakpoint();
|
|
68
|
+
var theme = useContext(ThemeContext);
|
|
69
|
+
var _c = useState(false), dismissed = _c[0], setDismissed = _c[1];
|
|
70
|
+
if (dismissed || (!title && !children)) {
|
|
71
|
+
return null;
|
|
72
|
+
}
|
|
73
|
+
return (React.createElement(View, __assign({ ref: ref }, rest),
|
|
74
|
+
React.createElement(NotificationBox, __assign({ variant: variant, noMargin: noMargin, testID: "nb-notification" }, breakpoints),
|
|
75
|
+
!!title ? (React.createElement(NotificationTitleBox, __assign({ variant: variant, dismissable: dismissable }, breakpoints),
|
|
76
|
+
React.createElement(View, null, typeof title === 'string' ? (React.createElement(NotificationTitleText, { variant: variant }, title)) : (title)))) : null,
|
|
77
|
+
dismissable ? (React.createElement(DismissButton, { accessibilityLabel: "Dismiss", testID: "nb-notification-dismiss", onPress: function () {
|
|
78
|
+
setDismissed(true);
|
|
79
|
+
if (onDismiss) {
|
|
80
|
+
onDismiss();
|
|
81
|
+
}
|
|
82
|
+
} },
|
|
83
|
+
React.createElement(Icon, { name: theme.notification.dismiss.icon, size: theme.notification.dismiss.size,
|
|
84
|
+
// @ts-ignore
|
|
85
|
+
color: theme.notification.variants[variant].textColor }))) : null,
|
|
86
|
+
children ? (React.createElement(NotificationContentBox, __assign({ "data-testid": "el-notification-box", variant: variant }, breakpoints), children)) : null)));
|
|
87
|
+
});
|
|
88
|
+
export var ErrorNotification = forwardRef(function (props, ref) { return (React.createElement(Notification, __assign({ ref: ref, variant: "error", title: "Oops, there\u2019s a problem\u2026" }, props))); });
|
|
89
|
+
export var SuccessNotification = forwardRef(function (props, ref) { return (React.createElement(Notification, __assign({ ref: ref, variant: "success" }, props))); });
|
|
90
|
+
export var InfoNotification = forwardRef(function (props, ref) { return React.createElement(Notification, __assign({ ref: ref, variant: "info" }, props)); });
|
|
91
|
+
export var WarningNotification = forwardRef(function (props, ref) { return React.createElement(Notification, __assign({ ref: ref, variant: "warning" }, props)); });
|
|
92
|
+
var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Notification, ErrorNotification, InfoNotification, WarningNotification, SuccessNotification, } from './Notification';
|
|
@@ -0,0 +1,85 @@
|
|
|
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 } from 'react';
|
|
28
|
+
import { TouchableOpacity, View, } from 'react-native';
|
|
29
|
+
import styled from '../../styled.native';
|
|
30
|
+
import { pxToNumber } from '../../utils';
|
|
31
|
+
import { HintText } from '../HintText';
|
|
32
|
+
import { LabelText } from '../LabelText';
|
|
33
|
+
var StyledRadioInputWrapper = styled.View(function (_a) {
|
|
34
|
+
var radio = _a.theme.radio;
|
|
35
|
+
var radioSize = pxToNumber(radio.size);
|
|
36
|
+
var gap = pxToNumber(radio.gap);
|
|
37
|
+
return "\n width: ".concat(radioSize + gap, "px;\n height: ").concat(radio.touchSize, ";\n ");
|
|
38
|
+
});
|
|
39
|
+
var StyledRadioInput = styled.View(function (_a) {
|
|
40
|
+
var radio = _a.theme.radio, invalid = _a.invalid, checked = _a.checked;
|
|
41
|
+
var touchSize = pxToNumber(radio.touchSize);
|
|
42
|
+
var radioSize = pxToNumber(radio.size);
|
|
43
|
+
var radioDistance = (touchSize - radioSize) / 2;
|
|
44
|
+
return "\n width: ".concat(radio.size, ";\n height: ").concat(radio.size, ";\n border: ").concat(radio.borderWidth, " solid;\n margin-top: ").concat(radioDistance, "px;\n border-radius: ").concat(radioSize / 2, "px;\n border-color: ").concat(invalid
|
|
45
|
+
? radio.errorColor
|
|
46
|
+
: checked
|
|
47
|
+
? radio.dotColor
|
|
48
|
+
: radio.borderColor, ";\n background: ").concat(radio.background, ";\n background: ").concat(checked ? radio.checkedBackground : radio.background, ";\n ");
|
|
49
|
+
});
|
|
50
|
+
var StyledRadioInputDot = styled.View(function (_a) {
|
|
51
|
+
var radio = _a.theme.radio, checked = _a.checked;
|
|
52
|
+
var radioSize = pxToNumber(radio.size);
|
|
53
|
+
var dotSize = pxToNumber(radio.dotSize);
|
|
54
|
+
var borderWidth = pxToNumber(radio.borderWidth);
|
|
55
|
+
var dotDistance = (radioSize - dotSize) / 2 - borderWidth;
|
|
56
|
+
return "\n width: ".concat(radio.dotSize, ";\n height: ").concat(radio.dotSize, ";\n margin: ").concat(dotDistance, "px;\n border-radius: ").concat(radioSize / 2, "px;\n background: ").concat(radio.dotColor, ";\n opacity: ").concat(checked ? 1 : 0, ";\n ");
|
|
57
|
+
});
|
|
58
|
+
var Input = function (_a) {
|
|
59
|
+
var checked = _a.checked, invalid = _a.invalid, rest = __rest(_a, ["checked", "invalid"]);
|
|
60
|
+
return (React.createElement(StyledRadioInputWrapper, __assign({}, rest),
|
|
61
|
+
React.createElement(StyledRadioInput, { invalid: invalid, checked: checked },
|
|
62
|
+
React.createElement(StyledRadioInputDot, { checked: checked }))));
|
|
63
|
+
};
|
|
64
|
+
var RadioLabelText = styled(LabelText)(function (_a) {
|
|
65
|
+
var space = _a.theme.space;
|
|
66
|
+
return "\n padding-top: ".concat(space[3], ";\n ");
|
|
67
|
+
});
|
|
68
|
+
var StyledWrapper = styled.View(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n flex-direction: row;\n"], ["\n flex-direction: row;\n"])));
|
|
69
|
+
var Radio = forwardRef(function (_a, ref) {
|
|
70
|
+
var label = _a.label, hint = _a.hint, checked = _a.checked, invalid = _a.invalid,
|
|
71
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
72
|
+
value = _a.value, // "value" is needed for RadioGroup, but isn't actually used in the radio anywhere
|
|
73
|
+
_b = _a.activeOpacity, // "value" is needed for RadioGroup, but isn't actually used in the radio anywhere
|
|
74
|
+
activeOpacity = _b === void 0 ? 0.8 : _b, rest = __rest(_a, ["label", "hint", "checked", "invalid", "value", "activeOpacity"]);
|
|
75
|
+
return (React.createElement(TouchableOpacity, __assign({ ref: ref, accessibilityRole: "radio", activeOpacity: activeOpacity, accessibilityState: { checked: checked },
|
|
76
|
+
// @ts-ignore
|
|
77
|
+
invalid: invalid }, rest),
|
|
78
|
+
React.createElement(StyledWrapper, null,
|
|
79
|
+
React.createElement(Input, { checked: checked, invalid: invalid }),
|
|
80
|
+
React.createElement(View, { style: { flexShrink: 1 } },
|
|
81
|
+
React.createElement(RadioLabelText, null, label),
|
|
82
|
+
hint ? React.createElement(HintText, null, hint) : null))));
|
|
83
|
+
});
|
|
84
|
+
export { Radio };
|
|
85
|
+
var templateObject_1;
|
|
@@ -0,0 +1,52 @@
|
|
|
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, { Children, cloneElement, } from 'react';
|
|
24
|
+
import { View } from 'react-native';
|
|
25
|
+
import { callAll } from '../../utils';
|
|
26
|
+
import { ErrorText } from '../ErrorText';
|
|
27
|
+
import { FormGroup } from '../FormGroup';
|
|
28
|
+
import { HintText } from '../HintText';
|
|
29
|
+
import { LabelText } from '../LabelText';
|
|
30
|
+
import { Stack } from '../Stack';
|
|
31
|
+
var RadioField = function (_a) {
|
|
32
|
+
var label = _a.label, hint = _a.hint, error = _a.error, children = _a.children, _b = _a.optional, optional = _b === void 0 ? false : _b, value = _a.value, onValueChange = _a.onValueChange, rest = __rest(_a, ["label", "hint", "error", "children", "optional", "value", "onValueChange"]);
|
|
33
|
+
var hasError = !!error;
|
|
34
|
+
return (React.createElement(FormGroup, __assign({}, rest, { error: hasError }),
|
|
35
|
+
React.createElement(Stack, { spaceBetween: 1 },
|
|
36
|
+
React.createElement(View, null,
|
|
37
|
+
React.createElement(LabelText, null,
|
|
38
|
+
label,
|
|
39
|
+
optional ? ' (optional)' : null),
|
|
40
|
+
hint ? React.createElement(HintText, null, hint) : null,
|
|
41
|
+
error ? React.createElement(ErrorText, null, error) : null),
|
|
42
|
+
React.createElement(View, { accessibilityRole: "radiogroup" }, Children.map(children, function (child) {
|
|
43
|
+
return cloneElement(child, {
|
|
44
|
+
invalid: hasError ? true : child.props.invalid,
|
|
45
|
+
checked: child.props.checked != null
|
|
46
|
+
? child.props.checked
|
|
47
|
+
: value && (value === child.props.value ? true : false),
|
|
48
|
+
onPress: callAll(onValueChange && (function () { return onValueChange(child.props.value); }), child.props.onPress),
|
|
49
|
+
});
|
|
50
|
+
})))));
|
|
51
|
+
};
|
|
52
|
+
export { RadioField };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
|
|
2
|
+
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
|
3
|
+
return cooked;
|
|
4
|
+
};
|
|
5
|
+
import styled from '../../styled.native';
|
|
6
|
+
export var Skeleton = styled.View(templateObject_1 || (templateObject_1 = __makeTemplateObject([""], [""])));
|
|
7
|
+
var templateObject_1;
|
|
@@ -0,0 +1,34 @@
|
|
|
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 styled from '../../styled.native';
|
|
25
|
+
import { P } from '../Text';
|
|
26
|
+
import { Skeleton } from './Skeleton';
|
|
27
|
+
var StyledSkeletonCTA = styled(Skeleton)(function (_a) {
|
|
28
|
+
var _b = _a.theme, colors = _b.colors, space = _b.space, size = _a.size;
|
|
29
|
+
return "\n background-color: ".concat(colors.borderMuted, ";\n width: ").concat(size, ";\n height: ").concat(space[12], ";\n ");
|
|
30
|
+
});
|
|
31
|
+
export var SkeletonCTA = function (_a) {
|
|
32
|
+
var _b = _a.size, size = _b === void 0 ? '250px' : _b, rest = __rest(_a, ["size"]);
|
|
33
|
+
return (React.createElement(StyledSkeletonCTA, __assign({ as: P, size: size }, rest)));
|
|
34
|
+
};
|
|
@@ -0,0 +1,39 @@
|
|
|
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 styled from '../../styled.native';
|
|
25
|
+
import { pxToNumber } from '../../utils';
|
|
26
|
+
import { Skeleton } from './Skeleton';
|
|
27
|
+
var StyledSkeletonCircleWrapper = styled(Skeleton)(function (_a) {
|
|
28
|
+
var size = _a.size;
|
|
29
|
+
return "width: ".concat(size, "; max-width: 100%;");
|
|
30
|
+
});
|
|
31
|
+
var StyledSkeletonCircle = styled(Skeleton)(function (_a) {
|
|
32
|
+
var colors = _a.theme.colors, size = _a.size;
|
|
33
|
+
return "\n background-color: ".concat(colors.borderMuted, ";\n height: 0;\n padding-bottom: 100%;\n border-radius: ").concat(pxToNumber(size) / 2, "px;\n ");
|
|
34
|
+
});
|
|
35
|
+
export var SkeletonCircle = function (_a) {
|
|
36
|
+
var _b = _a.size, size = _b === void 0 ? '120px' : _b, rest = __rest(_a, ["size"]);
|
|
37
|
+
return (React.createElement(StyledSkeletonCircleWrapper, __assign({ size: size }, rest),
|
|
38
|
+
React.createElement(StyledSkeletonCircle, { size: size })));
|
|
39
|
+
};
|
|
@@ -0,0 +1,34 @@
|
|
|
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 styled from '../../styled.native';
|
|
25
|
+
import { Heading3 } from '../Heading';
|
|
26
|
+
import { Skeleton } from './Skeleton';
|
|
27
|
+
var StyledSkeletonHeading = styled(Skeleton)(function (_a) {
|
|
28
|
+
var colors = _a.theme.colors, size = _a.size;
|
|
29
|
+
return "\n background-color: ".concat(colors.borderMuted, ";\n width: ").concat(size, ";\n ");
|
|
30
|
+
});
|
|
31
|
+
export var SkeletonHeading = function (_a) {
|
|
32
|
+
var _b = _a.size, size = _b === void 0 ? '70%' : _b, _c = _a.headingComponent, Heading = _c === void 0 ? Heading3 : _c, rest = __rest(_a, ["size", "headingComponent"]);
|
|
33
|
+
return (React.createElement(StyledSkeletonHeading, __assign({ "aria-hidden": "true", size: size, as: Heading }, rest), "\u00A0"));
|
|
34
|
+
};
|
|
@@ -0,0 +1,42 @@
|
|
|
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 { View } from 'react-native';
|
|
25
|
+
import { useBreakpoint } from '../../hooks';
|
|
26
|
+
import styled from '../../styled.native';
|
|
27
|
+
import { responsiveStyle } from '../../utils';
|
|
28
|
+
import { P } from '../Text';
|
|
29
|
+
import { Skeleton } from './Skeleton';
|
|
30
|
+
var StyledSkeletonText = styled(Skeleton)(function (_a) {
|
|
31
|
+
var _b = _a.theme, colors = _b.colors, space = _b.space, responsiveFontSizes = _b.responsiveFontSizes, short = _a.short, breakpoints = _a.breakpoints;
|
|
32
|
+
return "\n background-color: ".concat(colors.borderMuted, ";\n margin-bottom: ").concat(space[2], ";\n ").concat(responsiveStyle('height', responsiveFontSizes.body, breakpoints), "\n\n ").concat(short ? 'width: 50%' : '', ";\n ");
|
|
33
|
+
});
|
|
34
|
+
export var SkeletonText = function (_a) {
|
|
35
|
+
var _b = _a.lines, lines = _b === void 0 ? 1 : _b, rest = __rest(_a, ["lines"]);
|
|
36
|
+
var breakpoints = useBreakpoint();
|
|
37
|
+
var generatedLines = [];
|
|
38
|
+
for (var i = 1; i <= lines; i++) {
|
|
39
|
+
generatedLines.push(React.createElement(StyledSkeletonText, { key: "line-".concat(i), short: i === lines, breakpoints: breakpoints }));
|
|
40
|
+
}
|
|
41
|
+
return (React.createElement(P, __assign({ as: View }, rest), generatedLines));
|
|
42
|
+
};
|
|
@@ -0,0 +1,46 @@
|
|
|
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, { Children } from 'react';
|
|
24
|
+
import { View } from 'react-native';
|
|
25
|
+
import styled from '../../styled.native';
|
|
26
|
+
import { responsiveStyle, styledComponentWithBreakpoints } from '../../utils';
|
|
27
|
+
var Stack = function (_a) {
|
|
28
|
+
var children = _a.children, spaceBetween = _a.spaceBetween, rest = __rest(_a, ["children", "spaceBetween"]);
|
|
29
|
+
var filteredChildren = [];
|
|
30
|
+
Children.forEach(children, function (child) {
|
|
31
|
+
if (child != null) {
|
|
32
|
+
filteredChildren.push(child);
|
|
33
|
+
}
|
|
34
|
+
});
|
|
35
|
+
return (React.createElement(View, __assign({}, rest), Children.map(filteredChildren, function (child, index) {
|
|
36
|
+
return index === 0 ? (child) : (React.createElement(StackItem, { spaceBetween: spaceBetween }, child));
|
|
37
|
+
})));
|
|
38
|
+
};
|
|
39
|
+
var StyledStackItem = styled.View(function (_a) {
|
|
40
|
+
var space = _a.theme.space, spaceBetween = _a.spaceBetween, smallAndUp = _a.smallAndUp, mediumAndUp = _a.mediumAndUp, largeAndUp = _a.largeAndUp;
|
|
41
|
+
var formatter = function (spaceKey) { return space[spaceKey]; };
|
|
42
|
+
var breakpoints = { smallAndUp: smallAndUp, mediumAndUp: mediumAndUp, largeAndUp: largeAndUp };
|
|
43
|
+
return responsiveStyle('margin-top', spaceBetween, breakpoints, formatter);
|
|
44
|
+
});
|
|
45
|
+
var StackItem = styledComponentWithBreakpoints(StyledStackItem);
|
|
46
|
+
export { Stack };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Stack } from './Stack';
|
|
@@ -0,0 +1,24 @@
|
|
|
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 from 'react';
|
|
13
|
+
import { useBreakpoint } from '../../hooks';
|
|
14
|
+
import styled from '../../styled.native';
|
|
15
|
+
var StyledStretch = styled.View(function (_a) {
|
|
16
|
+
var smallAndUp = _a.smallAndUp, fullWidth = _a.fullWidth, defaultWidth = _a.defaultWidth;
|
|
17
|
+
return (smallAndUp && fullWidth === 'small') || fullWidth === 'never'
|
|
18
|
+
? "width: ".concat(defaultWidth, ";")
|
|
19
|
+
: "width: 100%;";
|
|
20
|
+
});
|
|
21
|
+
export var Stretch = function (props) {
|
|
22
|
+
var smallAndUp = useBreakpoint().smallAndUp;
|
|
23
|
+
return React.createElement(StyledStretch, __assign({ smallAndUp: smallAndUp }, props));
|
|
24
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Stretch';
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
|
|
2
|
+
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
|
3
|
+
return cooked;
|
|
4
|
+
};
|
|
5
|
+
import styled, { css } from '../../styled.native';
|
|
6
|
+
import { calculateLineHeight } from '../../theme';
|
|
7
|
+
import { styledComponentWithBreakpoints } from '../../utils';
|
|
8
|
+
var StyledSubLabelText = styled.Text(function (_a) {
|
|
9
|
+
var field = _a.theme.field, smallAndUp = _a.smallAndUp;
|
|
10
|
+
var fontSize = smallAndUp ? field.fontSize[1] : field.fontSize[0];
|
|
11
|
+
return css(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n font-family: ", ";\n line-height: ", ";\n font-weight: ", ";\n color: ", ";\n font-size: ", ";\n "], ["\n font-family: ", ";\n line-height: ", ";\n font-weight: ", ";\n color: ", ";\n font-size: ", ";\n "])), field.fontFamily, calculateLineHeight(fontSize, field.lineHeight), field.subLabel.fontWeight, field.subLabel.color, fontSize);
|
|
12
|
+
});
|
|
13
|
+
var SubLabelText = styledComponentWithBreakpoints(StyledSubLabelText);
|
|
14
|
+
export { SubLabelText };
|
|
15
|
+
var templateObject_1;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { SubLabelText } from './SubLabelText';
|
|
@@ -0,0 +1,39 @@
|
|
|
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, { Children, cloneElement, } from 'react';
|
|
24
|
+
import { Dd, Dl, Dt } from '../List';
|
|
25
|
+
var SummaryList = function (_a) {
|
|
26
|
+
var children = _a.children, rest = __rest(_a, ["children"]);
|
|
27
|
+
return (React.createElement(Dl, __assign({}, rest), Children.map(children, function (child, index) {
|
|
28
|
+
return cloneElement(child, {
|
|
29
|
+
index: index,
|
|
30
|
+
});
|
|
31
|
+
})));
|
|
32
|
+
};
|
|
33
|
+
var SummaryItem = function (_a) {
|
|
34
|
+
var label = _a.label, children = _a.children, index = _a.index, rest = __rest(_a, ["label", "children", "index"]);
|
|
35
|
+
return (React.createElement(React.Fragment, null,
|
|
36
|
+
React.createElement(Dt, { style: index === 0 ? { marginTop: 0 } : undefined }, label),
|
|
37
|
+
React.createElement(Dd, __assign({}, rest), children)));
|
|
38
|
+
};
|
|
39
|
+
export { SummaryList, SummaryItem };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { SummaryList, SummaryItem } from './SummaryList';
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
var __assign = (this && this.__assign) || function () {
|
|
2
|
+
__assign = Object.assign || function(t) {
|
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
+
s = arguments[i];
|
|
5
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
+
t[p] = s[p];
|
|
7
|
+
}
|
|
8
|
+
return t;
|
|
9
|
+
};
|
|
10
|
+
return __assign.apply(this, arguments);
|
|
11
|
+
};
|
|
12
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
13
|
+
var t = {};
|
|
14
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
15
|
+
t[p] = s[p];
|
|
16
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
17
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
18
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
19
|
+
t[p[i]] = s[p[i]];
|
|
20
|
+
}
|
|
21
|
+
return t;
|
|
22
|
+
};
|
|
23
|
+
import React, { forwardRef } from 'react';
|
|
24
|
+
import { useBreakpoint, useFullWidth, } from '../../hooks';
|
|
25
|
+
import styled from '../../styled.native';
|
|
26
|
+
import { pxToNumber } from '../../utils';
|
|
27
|
+
var StyledText = styled.Text(function (_a) {
|
|
28
|
+
var tabs = _a.theme.tabs, smallAndUp = _a.smallAndUp, active = _a.active;
|
|
29
|
+
return "\n font-size: ".concat(tabs.tab.fontSize[smallAndUp ? 1 : 0], ";\n font-family: ").concat(tabs.tab.fontFamily, ";\n font-weight: ").concat(tabs.tab.fontWeight, ";\n background-color: ").concat(active ? tabs.tab.active.backgroundColor : tabs.tab.inactive.backgroundColor, ";\n line-height: ").concat("".concat(tabs.tab.lineHeight * pxToNumber(tabs.tab.fontSize[0]), "px"), ";\n color: ").concat(active ? tabs.tab.active.foregroundColor : tabs.tab.inactive.foregroundColor, ";\n text-align: center;\n padding: ").concat("".concat(tabs.tab.paddingVertical[smallAndUp ? 1 : 0], " ").concat(tabs.tab.paddingHorizontal[smallAndUp ? 1 : 0]), ";\n");
|
|
30
|
+
});
|
|
31
|
+
var StyledTouchableOpacity = styled.TouchableOpacity(function (_a) {
|
|
32
|
+
var _b = _a.active, active = _b === void 0 ? false : _b, _c = _a.first, first = _c === void 0 ? false : _c, _d = _a.last, last = _d === void 0 ? false : _d, _e = _a.stretch, stretch = _e === void 0 ? false : _e, _f = _a.theme, card = _f.card, tabs = _f.tabs, inline = _a.inline;
|
|
33
|
+
return "flex-grow: ".concat(stretch ? 1 : 0, ";\n border: ").concat(card.borderWidth, " solid ").concat(tabs.tab.borderColor, ";\n border-bottom-color: ").concat(active ? tabs.tab.active.backgroundColor : card.borderColor, ";\n border-top-color: ").concat(inline ? card.borderColor : tabs.tab.borderColor, ";\n border-right-color: ").concat(last && inline ? card.borderColor : tabs.tab.borderColor, "};\n border-left-color: ").concat(first && inline ? card.borderColor : tabs.tab.borderColor, "};\n border-right-width: ").concat(card.borderWidth, ";\n border-left-width: ").concat(first ? card.borderWidth : 0, ";\n background-color: ").concat(active ? tabs.tab.active.borderColor : tabs.tab.inactive.backgroundColor, ";\n padding-bottom: ").concat(tabs.tab.borderBottomWidth, ";\n");
|
|
34
|
+
});
|
|
35
|
+
export var Tab = forwardRef(function (
|
|
36
|
+
// eslint-disable-next-line
|
|
37
|
+
_a, ref) {
|
|
38
|
+
var active = _a.active, fullWidth = _a.fullWidth, children = _a.children, rest = __rest(_a,
|
|
39
|
+
// eslint-disable-next-line
|
|
40
|
+
["active", "fullWidth", "children"]);
|
|
41
|
+
var stretch = useFullWidth(fullWidth);
|
|
42
|
+
var breakpoints = useBreakpoint();
|
|
43
|
+
return (React.createElement(StyledTouchableOpacity, __assign({ accessibilityRole: "tab", accessibilityState: { selected: active }, active: active, stretch: stretch, ref: ref }, rest),
|
|
44
|
+
React.createElement(StyledText, __assign({ active: active }, breakpoints), children)));
|
|
45
|
+
});
|