@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,511 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.createTheme = exports.defaultTokens = void 0;
|
|
7
|
+
var deepmerge_1 = __importDefault(require("deepmerge"));
|
|
8
|
+
var brand = {
|
|
9
|
+
focus: { base: '#3F64E6' },
|
|
10
|
+
primary: {
|
|
11
|
+
muted: '#E7F3EA',
|
|
12
|
+
lightest: '#B6D727',
|
|
13
|
+
lighter: '#9DC431',
|
|
14
|
+
light: '#6CBD27',
|
|
15
|
+
base: '#0D8426',
|
|
16
|
+
dark: '#0D8426',
|
|
17
|
+
darker: '#006945',
|
|
18
|
+
},
|
|
19
|
+
grey: {
|
|
20
|
+
lightest: '#FFFFFF',
|
|
21
|
+
lighter: '#F9F9F9',
|
|
22
|
+
light: '#F3F3F3',
|
|
23
|
+
base: '#D1D6DE',
|
|
24
|
+
dark: '#666D78',
|
|
25
|
+
darker: '#2F3749',
|
|
26
|
+
darkest: '#111111',
|
|
27
|
+
},
|
|
28
|
+
mission: {
|
|
29
|
+
base: '#DE1D8D',
|
|
30
|
+
dark: '#C6187D',
|
|
31
|
+
},
|
|
32
|
+
complementary: {
|
|
33
|
+
base: '#197278',
|
|
34
|
+
},
|
|
35
|
+
electricity: {
|
|
36
|
+
base: '#E7A234',
|
|
37
|
+
dark: '#D1760A',
|
|
38
|
+
},
|
|
39
|
+
gas: {
|
|
40
|
+
base: '#26ADE4',
|
|
41
|
+
dark: '#3F64E6',
|
|
42
|
+
},
|
|
43
|
+
error: {
|
|
44
|
+
lightest: '#FAE8EC',
|
|
45
|
+
base: '#C7153E',
|
|
46
|
+
dark: '#8C0A28',
|
|
47
|
+
},
|
|
48
|
+
};
|
|
49
|
+
exports.defaultTokens = {
|
|
50
|
+
borderWidths: {
|
|
51
|
+
standard: '1px',
|
|
52
|
+
heavy: '2px',
|
|
53
|
+
heavier: '4px',
|
|
54
|
+
},
|
|
55
|
+
radii: {
|
|
56
|
+
small: '4px',
|
|
57
|
+
medium: '8px',
|
|
58
|
+
large: '12px',
|
|
59
|
+
},
|
|
60
|
+
shadows: {
|
|
61
|
+
standard: {
|
|
62
|
+
color: '#000',
|
|
63
|
+
offset: '1px',
|
|
64
|
+
opacity: 0.15,
|
|
65
|
+
radius: '4px',
|
|
66
|
+
elevation: 3,
|
|
67
|
+
},
|
|
68
|
+
},
|
|
69
|
+
breakpoints: { small: 576, medium: 768, large: 1200 },
|
|
70
|
+
space: {
|
|
71
|
+
1: '4px',
|
|
72
|
+
2: '8px',
|
|
73
|
+
3: '12px',
|
|
74
|
+
4: '16px',
|
|
75
|
+
5: '20px',
|
|
76
|
+
6: '24px',
|
|
77
|
+
7: '28px',
|
|
78
|
+
8: '32px',
|
|
79
|
+
9: '36px',
|
|
80
|
+
10: '40px',
|
|
81
|
+
11: '44px',
|
|
82
|
+
12: '48px',
|
|
83
|
+
},
|
|
84
|
+
fonts: {
|
|
85
|
+
body: 'OVOCircularTT-Book',
|
|
86
|
+
bold: 'OVOCircularTT-Bold',
|
|
87
|
+
heading: 'OVOCircularTT-Black',
|
|
88
|
+
},
|
|
89
|
+
lineHeights: {
|
|
90
|
+
standard: 1.5,
|
|
91
|
+
},
|
|
92
|
+
fontSizes: ['12px', '14px', '16px', '20px', '24px', '28px', '32px', '48px'],
|
|
93
|
+
fontWeights: {
|
|
94
|
+
normal: 400,
|
|
95
|
+
bold: 700,
|
|
96
|
+
semiBold: 600,
|
|
97
|
+
heading: 900,
|
|
98
|
+
},
|
|
99
|
+
colors: {
|
|
100
|
+
primary: brand.primary.base,
|
|
101
|
+
primaryAlt: brand.primary.darker,
|
|
102
|
+
primaryContrast: '#FFFFFF',
|
|
103
|
+
primaryMuted: brand.primary.muted,
|
|
104
|
+
error: '#C7153E',
|
|
105
|
+
errorAlt: '#8C0A28',
|
|
106
|
+
errorContrast: '#FFFFFF',
|
|
107
|
+
errorMuted: '#FAE8EC',
|
|
108
|
+
focus: '#3F64E6',
|
|
109
|
+
focusMuted: '#C6D1F8',
|
|
110
|
+
canvas: '#FFFFFF',
|
|
111
|
+
body: brand.grey.darker,
|
|
112
|
+
heading: brand.grey.darker,
|
|
113
|
+
border: brand.grey.dark,
|
|
114
|
+
canvasMuted: '#F0F2F5',
|
|
115
|
+
borderMuted: brand.grey.base,
|
|
116
|
+
info: '#3F64E6',
|
|
117
|
+
infoAlt: '#004CA0',
|
|
118
|
+
infoContrast: '#FFFFFF',
|
|
119
|
+
infoMuted: '#ECF0FD',
|
|
120
|
+
warning: '#BE5409',
|
|
121
|
+
warningAlt: '#8A3C05',
|
|
122
|
+
warningContrast: '#FFFFFF',
|
|
123
|
+
warningMuted: '#F7F0E7',
|
|
124
|
+
success: brand.primary.base,
|
|
125
|
+
successAlt: brand.primary.darker,
|
|
126
|
+
successContrast: '#FFFFFF',
|
|
127
|
+
successMuted: brand.primary.muted,
|
|
128
|
+
mission: '#DE1D8D',
|
|
129
|
+
missionMuted: '#FDF4F9',
|
|
130
|
+
missionAlt: '#C6187D',
|
|
131
|
+
missionContrast: '#FFFFFF',
|
|
132
|
+
brand: brand,
|
|
133
|
+
},
|
|
134
|
+
responsiveFontSizes: {
|
|
135
|
+
label: ['11px', '14px'],
|
|
136
|
+
small: ['14px', '14px'],
|
|
137
|
+
body: ['16px', '16px'],
|
|
138
|
+
level1: ['28px', '48px'],
|
|
139
|
+
level2: ['24px', '32px'],
|
|
140
|
+
level3: ['20px', '28px'],
|
|
141
|
+
level4: ['16px', '22px'],
|
|
142
|
+
lead: ['18px', '22px'],
|
|
143
|
+
},
|
|
144
|
+
responsiveLineHeights: {
|
|
145
|
+
label: ['20px', '20px'],
|
|
146
|
+
small: ['20px', '20px'],
|
|
147
|
+
body: ['24px', '24px'],
|
|
148
|
+
level1: ['36px', '52px'],
|
|
149
|
+
level2: ['32px', '40px'],
|
|
150
|
+
level3: ['24px', '36px'],
|
|
151
|
+
level4: ['20px', '28px'],
|
|
152
|
+
lead: ['24px', '28px'],
|
|
153
|
+
},
|
|
154
|
+
};
|
|
155
|
+
function createTheme(customTheme, additional) {
|
|
156
|
+
var mergeOptions = { arrayMerge: function (_, source) { return source; } };
|
|
157
|
+
var customThemeWithAdditional = (0, deepmerge_1.default)(customTheme, additional || {}, mergeOptions);
|
|
158
|
+
var theme = (0, deepmerge_1.default)(exports.defaultTokens, customThemeWithAdditional, mergeOptions);
|
|
159
|
+
var fontSizes = theme.fontSizes, breakpoints = theme.breakpoints, colors = theme.colors, fontWeights = theme.fontWeights, fonts = theme.fonts, lineHeights = theme.lineHeights, space = theme.space, radii = theme.radii, shadows = theme.shadows, borderWidths = theme.borderWidths, responsiveFontSizes = theme.responsiveFontSizes, responsiveLineHeights = theme.responsiveLineHeights;
|
|
160
|
+
return (0, deepmerge_1.default)({
|
|
161
|
+
field: {
|
|
162
|
+
fontFamily: fonts.body,
|
|
163
|
+
fontSize: responsiveFontSizes.body,
|
|
164
|
+
lineHeight: lineHeights.standard,
|
|
165
|
+
dateWidth: '265px',
|
|
166
|
+
gap: space[2],
|
|
167
|
+
error: {
|
|
168
|
+
color: colors.error,
|
|
169
|
+
fontWeight: fontWeights.bold,
|
|
170
|
+
fontFamily: fonts.bold,
|
|
171
|
+
},
|
|
172
|
+
hint: {
|
|
173
|
+
fontWeight: fontWeights.normal,
|
|
174
|
+
color: colors.border,
|
|
175
|
+
},
|
|
176
|
+
label: {
|
|
177
|
+
color: colors.heading,
|
|
178
|
+
fontWeight: fontWeights.bold,
|
|
179
|
+
fontFamily: fonts.bold,
|
|
180
|
+
},
|
|
181
|
+
subLabel: {
|
|
182
|
+
color: colors.border,
|
|
183
|
+
fontWeight: fontWeights.normal,
|
|
184
|
+
},
|
|
185
|
+
legend: {
|
|
186
|
+
marginBottom: space[1],
|
|
187
|
+
},
|
|
188
|
+
errorIndent: {
|
|
189
|
+
borderWidth: space[1],
|
|
190
|
+
borderRadius: radii.small,
|
|
191
|
+
},
|
|
192
|
+
},
|
|
193
|
+
focusRing: {
|
|
194
|
+
color: colors.focus,
|
|
195
|
+
width: borderWidths.heavy,
|
|
196
|
+
distance: borderWidths.heavy,
|
|
197
|
+
},
|
|
198
|
+
input: {
|
|
199
|
+
fontFamily: fonts.body,
|
|
200
|
+
fontSize: responsiveFontSizes.body,
|
|
201
|
+
color: colors.body,
|
|
202
|
+
lineHeight: lineHeights.standard,
|
|
203
|
+
fontWeight: fontWeights.normal,
|
|
204
|
+
height: space[11],
|
|
205
|
+
borderColor: colors.border,
|
|
206
|
+
borderWidth: borderWidths.standard,
|
|
207
|
+
background: colors.canvas,
|
|
208
|
+
padding: space[2],
|
|
209
|
+
borderRadius: radii.small,
|
|
210
|
+
error: {
|
|
211
|
+
borderWidth: borderWidths.heavy,
|
|
212
|
+
color: colors.error,
|
|
213
|
+
},
|
|
214
|
+
icon: {
|
|
215
|
+
size: space[4],
|
|
216
|
+
},
|
|
217
|
+
},
|
|
218
|
+
card: {
|
|
219
|
+
background: colors.canvas,
|
|
220
|
+
borderWidth: borderWidths.standard,
|
|
221
|
+
borderColor: colors.borderMuted,
|
|
222
|
+
padding: [space[3], space[6], space[9]],
|
|
223
|
+
},
|
|
224
|
+
badge: {
|
|
225
|
+
fontWeight: fontWeights.bold,
|
|
226
|
+
fontFamily: fonts.bold,
|
|
227
|
+
lineHeight: lineHeights.standard,
|
|
228
|
+
paddingHorizontal: space[2],
|
|
229
|
+
borderRadius: radii.small,
|
|
230
|
+
fontSize: responsiveFontSizes.body,
|
|
231
|
+
variants: {
|
|
232
|
+
default: {
|
|
233
|
+
background: colors.primaryMuted,
|
|
234
|
+
foreground: colors.primaryAlt,
|
|
235
|
+
},
|
|
236
|
+
error: {
|
|
237
|
+
background: colors.errorMuted,
|
|
238
|
+
foreground: colors.errorAlt,
|
|
239
|
+
},
|
|
240
|
+
success: {
|
|
241
|
+
background: colors.successMuted,
|
|
242
|
+
foreground: colors.successAlt,
|
|
243
|
+
},
|
|
244
|
+
info: {
|
|
245
|
+
background: colors.infoMuted,
|
|
246
|
+
foreground: colors.infoAlt,
|
|
247
|
+
},
|
|
248
|
+
warning: {
|
|
249
|
+
background: colors.warningMuted,
|
|
250
|
+
foreground: colors.warningAlt,
|
|
251
|
+
},
|
|
252
|
+
},
|
|
253
|
+
},
|
|
254
|
+
cta: {
|
|
255
|
+
fontSize: responsiveFontSizes.body,
|
|
256
|
+
fontWeight: fontWeights.bold,
|
|
257
|
+
fontFamily: fonts.bold,
|
|
258
|
+
lineHeight: lineHeights.standard,
|
|
259
|
+
paddingVertical: space[2],
|
|
260
|
+
paddingHorizontal: space[3],
|
|
261
|
+
borderRadius: radii.small,
|
|
262
|
+
borderWidth: borderWidths.standard,
|
|
263
|
+
iconGap: space[1],
|
|
264
|
+
minHeight: space[11],
|
|
265
|
+
variants: {
|
|
266
|
+
primary: {
|
|
267
|
+
background: colors.primary,
|
|
268
|
+
foreground: colors.primaryContrast,
|
|
269
|
+
border: colors.primary,
|
|
270
|
+
},
|
|
271
|
+
secondary: {
|
|
272
|
+
background: colors.primaryContrast,
|
|
273
|
+
foreground: colors.primary,
|
|
274
|
+
border: colors.primary,
|
|
275
|
+
},
|
|
276
|
+
destructive: {
|
|
277
|
+
background: colors.error,
|
|
278
|
+
foreground: colors.errorContrast,
|
|
279
|
+
border: colors.error,
|
|
280
|
+
},
|
|
281
|
+
missionPrimary: {
|
|
282
|
+
background: colors.mission,
|
|
283
|
+
foreground: colors.missionContrast,
|
|
284
|
+
border: colors.mission,
|
|
285
|
+
},
|
|
286
|
+
missionSecondary: {
|
|
287
|
+
background: colors.primaryContrast,
|
|
288
|
+
foreground: colors.primary,
|
|
289
|
+
border: colors.primary,
|
|
290
|
+
},
|
|
291
|
+
},
|
|
292
|
+
},
|
|
293
|
+
checkbox: {
|
|
294
|
+
touchSize: space[11],
|
|
295
|
+
size: space[6],
|
|
296
|
+
checkSize: space[5],
|
|
297
|
+
gap: space[2],
|
|
298
|
+
paddingTop: space[3],
|
|
299
|
+
borderWidth: borderWidths.standard,
|
|
300
|
+
borderColor: colors.border,
|
|
301
|
+
borderRadius: radii.small,
|
|
302
|
+
background: colors.canvas,
|
|
303
|
+
checkedBackground: colors.infoMuted,
|
|
304
|
+
checkColor: colors.info,
|
|
305
|
+
errorColor: colors.error,
|
|
306
|
+
},
|
|
307
|
+
notification: {
|
|
308
|
+
borderRadius: radii.small,
|
|
309
|
+
borderWidth: borderWidths.heavy,
|
|
310
|
+
borderColor: colors.error,
|
|
311
|
+
background: colors.errorMuted,
|
|
312
|
+
paddingX: [space[2], space[2]],
|
|
313
|
+
paddingY: [space[3], space[6]],
|
|
314
|
+
dismiss: {
|
|
315
|
+
touchSize: space[6],
|
|
316
|
+
size: space[4],
|
|
317
|
+
icon: 'cross',
|
|
318
|
+
},
|
|
319
|
+
variants: {
|
|
320
|
+
error: {
|
|
321
|
+
borderColor: colors.errorMuted,
|
|
322
|
+
background: colors.errorMuted,
|
|
323
|
+
textColor: colors.errorAlt,
|
|
324
|
+
},
|
|
325
|
+
success: {
|
|
326
|
+
borderColor: colors.successMuted,
|
|
327
|
+
background: colors.successMuted,
|
|
328
|
+
textColor: colors.successAlt,
|
|
329
|
+
},
|
|
330
|
+
info: {
|
|
331
|
+
borderColor: colors.infoMuted,
|
|
332
|
+
background: colors.infoMuted,
|
|
333
|
+
textColor: colors.infoAlt,
|
|
334
|
+
},
|
|
335
|
+
warning: {
|
|
336
|
+
borderColor: colors.warningMuted,
|
|
337
|
+
background: colors.warningMuted,
|
|
338
|
+
textColor: colors.warningAlt,
|
|
339
|
+
},
|
|
340
|
+
},
|
|
341
|
+
},
|
|
342
|
+
text: {
|
|
343
|
+
fontFamily: fonts.body,
|
|
344
|
+
fontWeight: fontWeights.normal,
|
|
345
|
+
lineHeight: 1,
|
|
346
|
+
color: colors.body,
|
|
347
|
+
p: {
|
|
348
|
+
fontSize: responsiveFontSizes.body,
|
|
349
|
+
lineHeight: responsiveLineHeights.body,
|
|
350
|
+
marginTop: [space[3], space[3]],
|
|
351
|
+
marginBottom: [space[3], space[3]],
|
|
352
|
+
},
|
|
353
|
+
small: {
|
|
354
|
+
fontSize: responsiveFontSizes.small,
|
|
355
|
+
lineHeight: responsiveLineHeights.small,
|
|
356
|
+
},
|
|
357
|
+
strong: {
|
|
358
|
+
fontWeight: fontWeights.bold,
|
|
359
|
+
fontFamily: fonts.bold,
|
|
360
|
+
},
|
|
361
|
+
},
|
|
362
|
+
list: {
|
|
363
|
+
marginTop: [space[2], space[3]],
|
|
364
|
+
marginBottom: [space[2], space[3]],
|
|
365
|
+
marginLeft: space[6],
|
|
366
|
+
listItem: {
|
|
367
|
+
fontSize: responsiveFontSizes.body,
|
|
368
|
+
lineHeight: responsiveLineHeights.body,
|
|
369
|
+
marginVertical: 2,
|
|
370
|
+
bulletGap: space[2],
|
|
371
|
+
bulletWidth: space[2],
|
|
372
|
+
},
|
|
373
|
+
descriptionTerm: {
|
|
374
|
+
color: colors.heading,
|
|
375
|
+
fontWeight: fontWeights.bold,
|
|
376
|
+
fontFamily: fonts.bold,
|
|
377
|
+
marginTop: [space[3], space[4]],
|
|
378
|
+
marginBottom: [space[1], space[1]],
|
|
379
|
+
},
|
|
380
|
+
},
|
|
381
|
+
textLink: {
|
|
382
|
+
color: colors.primary,
|
|
383
|
+
fontWeight: fontWeights.normal,
|
|
384
|
+
},
|
|
385
|
+
heading: {
|
|
386
|
+
fontFamily: fonts.heading,
|
|
387
|
+
fontWeight: fontWeights.heading,
|
|
388
|
+
color: colors.heading,
|
|
389
|
+
heading1: {
|
|
390
|
+
fontSize: responsiveFontSizes.level1,
|
|
391
|
+
lineHeight: responsiveLineHeights.level1,
|
|
392
|
+
marginTop: [space[8], space[12]],
|
|
393
|
+
marginBottom: [space[3], space[4]],
|
|
394
|
+
},
|
|
395
|
+
heading2: {
|
|
396
|
+
fontSize: responsiveFontSizes.level2,
|
|
397
|
+
lineHeight: responsiveLineHeights.level2,
|
|
398
|
+
marginTop: [space[6], space[8]],
|
|
399
|
+
marginBottom: [space[3], space[4]],
|
|
400
|
+
},
|
|
401
|
+
heading3: {
|
|
402
|
+
fontSize: responsiveFontSizes.level3,
|
|
403
|
+
lineHeight: responsiveLineHeights.level3,
|
|
404
|
+
marginTop: [space[4], space[6]],
|
|
405
|
+
marginBottom: [space[3], space[4]],
|
|
406
|
+
},
|
|
407
|
+
heading4: {
|
|
408
|
+
fontSize: responsiveFontSizes.level4,
|
|
409
|
+
lineHeight: responsiveLineHeights.level4,
|
|
410
|
+
marginTop: [space[3], space[4]],
|
|
411
|
+
marginBottom: [space[3], space[4]],
|
|
412
|
+
},
|
|
413
|
+
},
|
|
414
|
+
shadows: shadows,
|
|
415
|
+
radii: radii,
|
|
416
|
+
radio: {
|
|
417
|
+
touchSize: space[11],
|
|
418
|
+
size: space[8],
|
|
419
|
+
dotSize: space[5],
|
|
420
|
+
gap: space[2],
|
|
421
|
+
paddingTop: space[3],
|
|
422
|
+
borderWidth: borderWidths.standard,
|
|
423
|
+
borderColor: colors.border,
|
|
424
|
+
background: colors.canvas,
|
|
425
|
+
dotColor: colors.info,
|
|
426
|
+
checkedBackground: colors.infoMuted,
|
|
427
|
+
errorColor: colors.error,
|
|
428
|
+
},
|
|
429
|
+
fontWeights: fontWeights,
|
|
430
|
+
fontSizes: fontSizes,
|
|
431
|
+
fonts: fonts,
|
|
432
|
+
responsiveFontSizes: responsiveFontSizes,
|
|
433
|
+
responsiveLineHeights: responsiveLineHeights,
|
|
434
|
+
colors: colors,
|
|
435
|
+
borderWidths: borderWidths,
|
|
436
|
+
breakpoints: breakpoints,
|
|
437
|
+
lineHeights: lineHeights,
|
|
438
|
+
space: space,
|
|
439
|
+
grid: {
|
|
440
|
+
maxWidth: breakpoints.large + 'px',
|
|
441
|
+
gutter: [space[4], space[8]],
|
|
442
|
+
},
|
|
443
|
+
disclosure: {
|
|
444
|
+
iconGap: [space[1], space[2]],
|
|
445
|
+
panelGap: [space[2], space[3]],
|
|
446
|
+
},
|
|
447
|
+
dataTable: {
|
|
448
|
+
borderWidth: borderWidths.standard,
|
|
449
|
+
borderRadius: radii.small,
|
|
450
|
+
borderColor: colors.canvasMuted,
|
|
451
|
+
responsivePadding: {
|
|
452
|
+
vertical: [space[2], space[3]],
|
|
453
|
+
horizontal: [space[1], space[1]],
|
|
454
|
+
},
|
|
455
|
+
tableHeader: {
|
|
456
|
+
color: colors.heading,
|
|
457
|
+
backgroundColor: colors.canvas,
|
|
458
|
+
borderWidth: borderWidths.standard,
|
|
459
|
+
borderColor: colors.border,
|
|
460
|
+
fontWeight: fontWeights.bold,
|
|
461
|
+
fontFamily: fonts.bold,
|
|
462
|
+
},
|
|
463
|
+
tableCaption: {
|
|
464
|
+
color: colors.heading,
|
|
465
|
+
fontWeight: fontWeights.bold,
|
|
466
|
+
fontFamily: fonts.bold,
|
|
467
|
+
},
|
|
468
|
+
tableCell: {
|
|
469
|
+
color: colors.body,
|
|
470
|
+
},
|
|
471
|
+
tableRow: {
|
|
472
|
+
backgroundColor: colors.canvas,
|
|
473
|
+
stripeColor: colors.canvasMuted,
|
|
474
|
+
},
|
|
475
|
+
},
|
|
476
|
+
accordion: {
|
|
477
|
+
header: {
|
|
478
|
+
color: colors.primary,
|
|
479
|
+
paddingVertical: [space[3], space[5]],
|
|
480
|
+
iconSize: space[4],
|
|
481
|
+
iconGap: space[3],
|
|
482
|
+
},
|
|
483
|
+
},
|
|
484
|
+
tabs: {
|
|
485
|
+
tab: {
|
|
486
|
+
borderTopWidth: borderWidths.heavy,
|
|
487
|
+
borderBottomWidth: borderWidths.heavy,
|
|
488
|
+
borderColor: colors.canvas,
|
|
489
|
+
fontSize: responsiveFontSizes.body,
|
|
490
|
+
fontWeight: fontWeights.bold,
|
|
491
|
+
fontFamily: fonts.bold,
|
|
492
|
+
lineHeight: lineHeights.standard,
|
|
493
|
+
paddingHorizontal: [space[4], space[4]],
|
|
494
|
+
paddingVertical: [space[3], space[3]],
|
|
495
|
+
active: {
|
|
496
|
+
borderColor: colors.primary,
|
|
497
|
+
foregroundColor: colors.primary,
|
|
498
|
+
backgroundColor: colors.canvas,
|
|
499
|
+
},
|
|
500
|
+
inactive: {
|
|
501
|
+
foregroundColor: colors.heading,
|
|
502
|
+
backgroundColor: colors.canvas,
|
|
503
|
+
},
|
|
504
|
+
hover: {
|
|
505
|
+
foregroundColor: colors.primaryAlt,
|
|
506
|
+
},
|
|
507
|
+
},
|
|
508
|
+
},
|
|
509
|
+
}, theme, mergeOptions);
|
|
510
|
+
}
|
|
511
|
+
exports.createTheme = createTheme;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
exports.calculateLineHeight = exports.theme = void 0;
|
|
18
|
+
var utils_1 = require("../utils");
|
|
19
|
+
var create_theme_1 = require("./create-theme");
|
|
20
|
+
__exportStar(require("./theme"), exports);
|
|
21
|
+
__exportStar(require("./create-theme"), exports);
|
|
22
|
+
exports.theme = (0, create_theme_1.createTheme)({});
|
|
23
|
+
var calculateLineHeight = function (size, lineHeight) {
|
|
24
|
+
return (0, utils_1.pxToNumber)(size) * (lineHeight || 1) + 'px';
|
|
25
|
+
};
|
|
26
|
+
exports.calculateLineHeight = calculateLineHeight;
|