@ovotech/element-native 5.4.0 → 5.4.1
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 +65 -0
- package/dist/components/Accordion/Group.d.ts +6 -0
- package/dist/components/Accordion/Group.js +15 -0
- package/dist/components/Accordion/Icon.d.ts +4 -0
- package/dist/components/Accordion/Icon.js +34 -0
- package/dist/components/Accordion/index.d.ts +4 -0
- package/dist/components/Accordion/index.js +3 -0
- package/dist/components/Accordion/styles.d.ts +1699 -0
- package/dist/components/Accordion/styles.js +45 -0
- package/dist/components/Accordion/types.d.ts +21 -0
- package/dist/components/Accordion/types.js +1 -0
- package/dist/components/ActionCard/ActionCard.d.ts +21 -0
- package/dist/components/ActionCard/ActionCard.js +103 -0
- package/dist/components/ActionCard/CloseIconShape.d.ts +3 -0
- package/dist/components/ActionCard/CloseIconShape.js +7 -0
- package/dist/components/ActionCard/IndicatorIconShape.d.ts +3 -0
- package/dist/components/ActionCard/IndicatorIconShape.js +7 -0
- package/dist/components/ActionCard/index.d.ts +1 -0
- package/dist/components/ActionCard/index.js +1 -0
- package/dist/components/ActionList/ActionList.d.ts +25 -0
- package/dist/components/ActionList/ActionList.js +24 -0
- package/dist/components/ActionList/index.d.ts +1 -0
- package/dist/components/ActionList/index.js +1 -0
- package/dist/components/ActionList/styled.d.ts +3979 -0
- package/dist/components/ActionList/styled.js +58 -0
- package/dist/components/Badge/Badge.d.ts +579 -0
- package/dist/components/Badge/Badge.js +52 -0
- package/dist/components/Badge/index.d.ts +1 -0
- package/dist/components/Badge/index.js +1 -0
- package/dist/components/CTAButton/CTAButton.d.ts +18 -0
- package/dist/components/CTAButton/CTAButton.js +81 -0
- package/dist/components/CTAButton/index.d.ts +1 -0
- package/dist/components/CTAButton/index.js +1 -0
- package/dist/components/CTALink/CTALink.d.ts +8 -0
- package/dist/components/CTALink/CTALink.js +6 -0
- package/dist/components/CTALink/index.d.ts +1 -0
- package/dist/components/CTALink/index.js +1 -0
- package/dist/components/Card/Card.d.ts +7 -0
- package/dist/components/Card/Card.js +15 -0
- package/dist/components/Card/index.d.ts +1 -0
- package/dist/components/Card/index.js +1 -0
- package/dist/components/Checkbox/Checkbox.d.ts +14 -0
- package/dist/components/Checkbox/Checkbox.js +58 -0
- package/dist/components/Checkbox/CheckboxField.d.ts +9 -0
- package/dist/components/Checkbox/CheckboxField.js +17 -0
- package/dist/components/Checkbox/index.d.ts +2 -0
- package/dist/components/Checkbox/index.js +2 -0
- package/dist/components/CurrencyField/CurrencyField.d.ts +5 -0
- package/dist/components/CurrencyField/CurrencyField.js +6 -0
- package/dist/components/CurrencyField/index.d.ts +1 -0
- package/dist/components/CurrencyField/index.js +1 -0
- package/dist/components/CurrencyInput/CurrencyInput.d.ts +9 -0
- package/dist/components/CurrencyInput/CurrencyInput.js +11 -0
- package/dist/components/CurrencyInput/index.d.ts +1 -0
- package/dist/components/CurrencyInput/index.js +1 -0
- package/dist/components/DataTable/DataTable.d.ts +2 -0
- package/dist/components/DataTable/DataTable.js +19 -0
- package/dist/components/DataTable/TableRow.d.ts +2 -0
- package/dist/components/DataTable/TableRow.js +21 -0
- package/dist/components/DataTable/index.d.ts +3 -0
- package/dist/components/DataTable/index.js +3 -0
- package/dist/components/DataTable/styles.d.ts +7356 -0
- package/dist/components/DataTable/styles.js +100 -0
- package/dist/components/DataTable/types.d.ts +21 -0
- package/dist/components/DataTable/types.js +1 -0
- package/dist/components/DateField/DateField.d.ts +22 -0
- package/dist/components/DateField/DateField.js +68 -0
- package/dist/components/DateField/index.d.ts +1 -0
- package/dist/components/DateField/index.js +1 -0
- package/dist/components/DescriptionList/DescriptionList.d.ts +10 -0
- package/dist/components/DescriptionList/DescriptionList.js +12 -0
- package/dist/components/DescriptionList/index.d.ts +1 -0
- package/dist/components/DescriptionList/index.js +1 -0
- package/dist/components/DescriptionList/styled.d.ts +570 -0
- package/dist/components/DescriptionList/styled.js +35 -0
- package/dist/components/Disclosure/Disclosure.d.ts +576 -0
- package/dist/components/Disclosure/Disclosure.js +36 -0
- package/dist/components/Disclosure/index.d.ts +1 -0
- package/dist/components/Disclosure/index.js +1 -0
- package/dist/components/Display0/Display0.d.ts +5 -0
- package/dist/components/Display0/Display0.js +23 -0
- package/dist/components/Display0/index.d.ts +1 -0
- package/dist/components/Display0/index.js +1 -0
- package/dist/components/Display1/Display1.d.ts +5 -0
- package/dist/components/Display1/Display1.js +23 -0
- package/dist/components/Display1/index.d.ts +1 -0
- package/dist/components/Display1/index.js +1 -0
- package/dist/components/Display2/Display2.d.ts +5 -0
- package/dist/components/Display2/Display2.js +23 -0
- package/dist/components/Display2/index.d.ts +1 -0
- package/dist/components/Display2/index.js +1 -0
- package/dist/components/Display3/Display3.d.ts +5 -0
- package/dist/components/Display3/Display3.js +23 -0
- package/dist/components/Display3/index.d.ts +1 -0
- package/dist/components/Display3/index.js +1 -0
- package/dist/components/Divider/Divider.d.ts +5 -0
- package/dist/components/Divider/Divider.js +14 -0
- package/dist/components/Divider/index.d.ts +1 -0
- package/dist/components/Divider/index.js +1 -0
- package/dist/components/Em/Em.d.ts +565 -0
- package/dist/components/Em/Em.js +6 -0
- package/dist/components/Em/index.d.ts +1 -0
- package/dist/components/Em/index.js +1 -0
- package/dist/components/EmailField/EmailField.d.ts +5 -0
- package/dist/components/EmailField/EmailField.js +6 -0
- package/dist/components/EmailField/index.d.ts +1 -0
- package/dist/components/EmailField/index.js +1 -0
- package/dist/components/EmailInput/EmailInput.d.ts +3 -0
- package/dist/components/EmailInput/EmailInput.js +4 -0
- package/dist/components/EmailInput/index.d.ts +1 -0
- package/dist/components/EmailInput/index.js +1 -0
- package/dist/components/ErrorSummaryNotification/ErrorSummaryNotification.d.ts +18 -0
- package/dist/components/ErrorSummaryNotification/ErrorSummaryNotification.js +23 -0
- package/dist/components/ErrorSummaryNotification/index.d.ts +1 -0
- package/dist/components/ErrorSummaryNotification/index.js +1 -0
- package/dist/components/ErrorText/ErrorText.d.ts +575 -0
- package/dist/components/ErrorText/ErrorText.js +18 -0
- package/dist/components/ErrorText/index.d.ts +1 -0
- package/dist/components/ErrorText/index.js +1 -0
- package/dist/components/Field/Field.d.ts +14 -0
- package/dist/components/Field/Field.js +38 -0
- package/dist/components/Field/index.d.ts +1 -0
- package/dist/components/Field/index.js +1 -0
- package/dist/components/FilterSelect/FilterSelect.d.ts +17 -0
- package/dist/components/FilterSelect/FilterSelect.js +67 -0
- package/dist/components/FilterSelect/index.d.ts +1 -0
- package/dist/components/FilterSelect/index.js +1 -0
- package/dist/components/FormGroup/FormGroup.d.ts +8 -0
- package/dist/components/FormGroup/FormGroup.js +9 -0
- package/dist/components/FormGroup/index.d.ts +1 -0
- package/dist/components/FormGroup/index.js +1 -0
- package/dist/components/Grid/Col.d.ts +575 -0
- package/dist/components/Grid/Col.js +35 -0
- package/dist/components/Grid/Row.d.ts +7 -0
- package/dist/components/Grid/Row.js +35 -0
- package/dist/components/Grid/index.d.ts +2 -0
- package/dist/components/Grid/index.js +2 -0
- package/dist/components/Heading1/Heading1.d.ts +5 -0
- package/dist/components/Heading1/Heading1.js +23 -0
- package/dist/components/Heading1/index.d.ts +1 -0
- package/dist/components/Heading1/index.js +1 -0
- package/dist/components/Heading2/Heading2.d.ts +5 -0
- package/dist/components/Heading2/Heading2.js +23 -0
- package/dist/components/Heading2/index.d.ts +1 -0
- package/dist/components/Heading2/index.js +1 -0
- package/dist/components/Heading3/Heading3.d.ts +5 -0
- package/dist/components/Heading3/Heading3.js +23 -0
- package/dist/components/Heading3/index.d.ts +1 -0
- package/dist/components/Heading3/index.js +1 -0
- package/dist/components/Heading4/Heading4.d.ts +5 -0
- package/dist/components/Heading4/Heading4.js +23 -0
- package/dist/components/Heading4/index.d.ts +1 -0
- package/dist/components/Heading4/index.js +1 -0
- package/dist/components/HintText/HintText.d.ts +575 -0
- package/dist/components/HintText/HintText.js +18 -0
- package/dist/components/HintText/index.d.ts +1 -0
- package/dist/components/HintText/index.js +1 -0
- package/dist/components/Icon/Icon.d.ts +9 -0
- package/dist/components/Icon/Icon.js +13 -0
- package/dist/components/Icon/index.d.ts +1 -0
- package/dist/components/Icon/index.js +1 -0
- package/dist/components/Input/Input.d.ts +13 -0
- package/dist/components/Input/Input.js +78 -0
- package/dist/components/Label/Label.d.ts +8 -0
- package/dist/components/Label/Label.js +10 -0
- package/dist/components/Label/index.d.ts +1 -0
- package/dist/components/Label/index.js +1 -0
- package/dist/components/LabelText/LabelText.d.ts +575 -0
- package/dist/components/LabelText/LabelText.js +16 -0
- package/dist/components/LabelText/index.d.ts +1 -0
- package/dist/components/LabelText/index.js +1 -0
- package/dist/components/Lead/Lead.d.ts +8 -0
- package/dist/components/Lead/Lead.js +12 -0
- package/dist/components/Lead/index.d.ts +1 -0
- package/dist/components/Lead/index.js +1 -0
- package/dist/components/LineThrough/LineThrough.d.ts +565 -0
- package/dist/components/LineThrough/LineThrough.js +4 -0
- package/dist/components/LineThrough/index.d.ts +1 -0
- package/dist/components/LineThrough/index.js +1 -0
- package/dist/components/List/List.d.ts +8 -0
- package/dist/components/List/List.js +26 -0
- package/dist/components/List/index.d.ts +1 -0
- package/dist/components/List/index.js +1 -0
- package/dist/components/List/styled.d.ts +2266 -0
- package/dist/components/List/styled.js +40 -0
- package/dist/components/Margin/Margin.d.ts +589 -0
- package/dist/components/Margin/Margin.js +36 -0
- package/dist/components/Margin/index.d.ts +1 -0
- package/dist/components/Margin/index.js +1 -0
- package/dist/components/NavHeader/IconButton.d.ts +15 -0
- package/dist/components/NavHeader/IconButton.js +13 -0
- package/dist/components/NavHeader/NavHeader.d.ts +18 -0
- package/dist/components/NavHeader/NavHeader.js +43 -0
- package/dist/components/NavHeader/NavHeader.styles.d.ts +5102 -0
- package/dist/components/NavHeader/NavHeader.styles.js +82 -0
- package/dist/components/NavHeader/index.d.ts +1 -0
- package/dist/components/NavHeader/index.js +1 -0
- package/dist/components/Notification/Notification.d.ts +1153 -0
- package/dist/components/Notification/Notification.js +81 -0
- package/dist/components/Notification/index.d.ts +1 -0
- package/dist/components/Notification/index.js +1 -0
- package/dist/components/NumberField/NumberField.d.ts +5 -0
- package/dist/components/NumberField/NumberField.js +6 -0
- package/dist/components/NumberField/index.d.ts +1 -0
- package/dist/components/NumberField/index.js +1 -0
- package/dist/components/NumberInput/NumberInput.d.ts +3 -0
- package/dist/components/NumberInput/NumberInput.js +4 -0
- package/dist/components/NumberInput/index.d.ts +1 -0
- package/dist/components/NumberInput/index.js +1 -0
- package/dist/components/P/P.d.ts +8 -0
- package/dist/components/P/P.js +14 -0
- package/dist/components/P/index.d.ts +1 -0
- package/dist/components/P/index.js +1 -0
- package/dist/components/PasswordField/PasswordField.d.ts +7 -0
- package/dist/components/PasswordField/PasswordField.js +6 -0
- package/dist/components/PasswordField/index.d.ts +1 -0
- package/dist/components/PasswordField/index.js +1 -0
- package/dist/components/PasswordInput/PasswordInput.d.ts +6 -0
- package/dist/components/PasswordInput/PasswordInput.js +8 -0
- package/dist/components/PasswordInput/PasswordInput.styled.d.ts +567 -0
- package/dist/components/PasswordInput/PasswordInput.styled.js +14 -0
- package/dist/components/PasswordInput/PasswordVisibilityToggle.d.ts +12 -0
- package/dist/components/PasswordInput/PasswordVisibilityToggle.js +22 -0
- package/dist/components/PasswordInput/index.d.ts +1 -0
- package/dist/components/PasswordInput/index.js +1 -0
- package/dist/components/PhoneField/PhoneField.d.ts +5 -0
- package/dist/components/PhoneField/PhoneField.js +6 -0
- package/dist/components/PhoneField/index.d.ts +1 -0
- package/dist/components/PhoneField/index.js +1 -0
- package/dist/components/PhoneInput/PhoneInput.d.ts +2 -0
- package/dist/components/PhoneInput/PhoneInput.js +3 -0
- package/dist/components/PhoneInput/index.d.ts +1 -0
- package/dist/components/PhoneInput/index.js +1 -0
- package/dist/components/ProductCarousel/NavigationDots.d.ts +5 -0
- package/dist/components/ProductCarousel/NavigationDots.js +48 -0
- package/dist/components/ProductCarousel/ProductCarousel.d.ts +14 -0
- package/dist/components/ProductCarousel/ProductCarousel.js +81 -0
- package/dist/components/ProductCarousel/anchor-point.d.ts +207 -0
- package/dist/components/ProductCarousel/anchor-point.js +43 -0
- package/dist/components/ProductCarousel/index.d.ts +1 -0
- package/dist/components/ProductCarousel/index.js +1 -0
- package/dist/components/Radio/Radio.d.ts +14 -0
- package/dist/components/Radio/Radio.js +52 -0
- package/dist/components/Radio/RadioField.d.ts +11 -0
- package/dist/components/Radio/RadioField.js +21 -0
- package/dist/components/Radio/index.d.ts +2 -0
- package/dist/components/Radio/index.js +2 -0
- package/dist/components/RadioCard/RadioCard.d.ts +12 -0
- package/dist/components/RadioCard/RadioCard.js +57 -0
- package/dist/components/RadioCard/index.d.ts +1 -0
- package/dist/components/RadioCard/index.js +1 -0
- package/dist/components/SegmentedControls/SegmentedControls.d.ts +18 -0
- package/dist/components/SegmentedControls/SegmentedControls.js +48 -0
- package/dist/components/SegmentedControls/components/SegmentButton.d.ts +17 -0
- package/dist/components/SegmentedControls/components/SegmentButton.js +78 -0
- package/dist/components/SegmentedControls/index.d.ts +2 -0
- package/dist/components/SegmentedControls/index.js +2 -0
- package/dist/components/SelectField/Select.d.ts +582 -0
- package/dist/components/SelectField/Select.js +93 -0
- package/dist/components/SelectField/SelectField.d.ts +7 -0
- package/dist/components/SelectField/SelectField.js +4 -0
- package/dist/components/SelectField/index.d.ts +1 -0
- package/dist/components/SelectField/index.js +1 -0
- package/dist/components/SkeletonAnimation/SkeletonAnimation.d.ts +6 -0
- package/dist/components/SkeletonAnimation/SkeletonAnimation.js +30 -0
- package/dist/components/SkeletonAnimation/index.d.ts +1 -0
- package/dist/components/SkeletonAnimation/index.js +1 -0
- package/dist/components/SkeletonCTA/SkeletonCTA.d.ts +6 -0
- package/dist/components/SkeletonCTA/SkeletonCTA.js +11 -0
- package/dist/components/SkeletonCTA/index.d.ts +1 -0
- package/dist/components/SkeletonCTA/index.js +1 -0
- package/dist/components/SkeletonCircle/SkeletonCircle.d.ts +6 -0
- package/dist/components/SkeletonCircle/SkeletonCircle.js +12 -0
- package/dist/components/SkeletonCircle/index.d.ts +1 -0
- package/dist/components/SkeletonCircle/index.js +1 -0
- package/dist/components/SkeletonHeading/SkeletonHeading.d.ts +8 -0
- package/dist/components/SkeletonHeading/SkeletonHeading.js +9 -0
- package/dist/components/SkeletonHeading/index.d.ts +1 -0
- package/dist/components/SkeletonHeading/index.js +1 -0
- package/dist/components/SkeletonText/SkeletonText.d.ts +6 -0
- package/dist/components/SkeletonText/SkeletonText.js +27 -0
- package/dist/components/SkeletonText/index.d.ts +1 -0
- package/dist/components/SkeletonText/index.js +1 -0
- package/dist/components/Small/Small.d.ts +574 -0
- package/dist/components/Small/Small.js +8 -0
- package/dist/components/Small/index.d.ts +1 -0
- package/dist/components/Small/index.js +1 -0
- package/dist/components/Spinner/Spinner.d.ts +8 -0
- package/dist/components/Spinner/Spinner.js +43 -0
- package/dist/components/Spinner/index.d.ts +1 -0
- package/dist/components/Spinner/index.js +1 -0
- package/dist/components/Stack/Stack.d.ts +9 -0
- package/dist/components/Stack/Stack.js +17 -0
- package/dist/components/Stack/index.d.ts +1 -0
- package/dist/components/Stack/index.js +1 -0
- package/dist/components/Stretch/Stretch.d.ts +7 -0
- package/dist/components/Stretch/Stretch.js +13 -0
- package/dist/components/Stretch/index.d.ts +1 -0
- package/dist/components/Stretch/index.js +1 -0
- package/dist/components/Strong/Strong.d.ts +565 -0
- package/dist/components/Strong/Strong.js +4 -0
- package/dist/components/Strong/index.d.ts +1 -0
- package/dist/components/Strong/index.js +1 -0
- package/dist/components/SubLabelText/SubLabelText.d.ts +575 -0
- package/dist/components/SubLabelText/SubLabelText.js +16 -0
- package/dist/components/SubLabelText/index.d.ts +1 -0
- package/dist/components/SubLabelText/index.js +1 -0
- package/dist/components/Tabs/Tab.d.ts +582 -0
- package/dist/components/Tabs/Tab.js +67 -0
- package/dist/components/Tabs/TabList.d.ts +10 -0
- package/dist/components/Tabs/TabList.js +21 -0
- package/dist/components/Tabs/TabPanel.d.ts +3 -0
- package/dist/components/Tabs/TabPanel.js +13 -0
- package/dist/components/Tabs/Tabs.d.ts +10 -0
- package/dist/components/Tabs/Tabs.js +42 -0
- package/dist/components/Tabs/index.d.ts +4 -0
- package/dist/components/Tabs/index.js +4 -0
- package/dist/components/TextField/TextField.d.ts +5 -0
- package/dist/components/TextField/TextField.js +6 -0
- package/dist/components/TextField/index.d.ts +1 -0
- package/dist/components/TextField/index.js +1 -0
- package/dist/components/TextGroup/TextGroup.d.ts +3 -0
- package/dist/components/TextGroup/TextGroup.js +20 -0
- package/dist/components/TextGroup/index.d.ts +1 -0
- package/dist/components/TextGroup/index.js +1 -0
- package/dist/components/TextInput/TextInput.d.ts +8 -0
- package/dist/components/TextInput/TextInput.js +4 -0
- package/dist/components/TextInput/index.d.ts +1 -0
- package/dist/components/TextInput/index.js +1 -0
- package/dist/components/TextLink/TextLink.d.ts +8 -0
- package/dist/components/TextLink/TextLink.js +21 -0
- package/dist/components/TextLink/index.d.ts +1 -0
- package/dist/components/TextLink/index.js +1 -0
- package/dist/components/TextareaField/TextareaField.d.ts +5 -0
- package/dist/components/TextareaField/TextareaField.js +6 -0
- package/dist/components/TextareaField/index.d.ts +1 -0
- package/dist/components/TextareaField/index.js +1 -0
- package/dist/components/TextareaInput/TextareaInput.d.ts +6 -0
- package/dist/components/TextareaInput/TextareaInput.js +13 -0
- package/dist/components/TextareaInput/index.d.ts +1 -0
- package/dist/components/TextareaInput/index.js +1 -0
- package/dist/components/Toast/Toast.d.ts +13 -0
- package/dist/components/Toast/Toast.js +126 -0
- package/dist/components/Toast/index.d.ts +1 -0
- package/dist/components/Toast/index.js +1 -0
- package/dist/components/Toggle/Toggle.d.ts +13 -0
- package/dist/components/Toggle/Toggle.js +25 -0
- package/dist/components/Toggle/index.d.ts +1 -0
- package/dist/components/Toggle/index.js +1 -0
- package/dist/components/Toggle/styles.d.ts +2272 -0
- package/dist/components/Toggle/styles.js +37 -0
- package/dist/components/index.d.ts +67 -0
- package/dist/components/index.js +67 -0
- package/dist/esm/components/Accordion/Accordion.js +65 -0
- package/dist/esm/components/Accordion/Group.js +15 -0
- package/dist/esm/components/Accordion/Icon.js +34 -0
- package/dist/esm/components/Accordion/index.js +3 -0
- package/dist/esm/components/Accordion/styles.js +45 -0
- package/dist/esm/components/Accordion/types.js +1 -0
- package/dist/esm/components/ActionCard/ActionCard.js +103 -0
- package/dist/esm/components/ActionCard/CloseIconShape.js +7 -0
- package/dist/esm/components/ActionCard/IndicatorIconShape.js +7 -0
- package/dist/esm/components/ActionCard/index.js +1 -0
- package/dist/esm/components/ActionList/ActionList.js +24 -0
- package/dist/esm/components/ActionList/index.js +1 -0
- package/dist/esm/components/ActionList/styled.js +58 -0
- package/dist/esm/components/Badge/Badge.js +52 -0
- package/dist/esm/components/Badge/index.js +1 -0
- package/dist/esm/components/CTAButton/CTAButton.js +81 -0
- package/dist/esm/components/CTAButton/index.js +1 -0
- package/dist/esm/components/CTALink/CTALink.js +6 -0
- package/dist/esm/components/CTALink/index.js +1 -0
- package/dist/esm/components/Card/Card.js +15 -0
- package/dist/esm/components/Card/index.js +1 -0
- package/dist/esm/components/Checkbox/Checkbox.js +58 -0
- package/dist/esm/components/Checkbox/CheckboxField.js +17 -0
- package/dist/esm/components/Checkbox/index.js +2 -0
- package/dist/esm/components/CurrencyField/CurrencyField.js +6 -0
- package/dist/esm/components/CurrencyField/index.js +1 -0
- package/dist/esm/components/CurrencyInput/CurrencyInput.js +11 -0
- package/dist/esm/components/CurrencyInput/index.js +1 -0
- package/dist/esm/components/DataTable/DataTable.js +19 -0
- package/dist/esm/components/DataTable/TableRow.js +21 -0
- package/dist/esm/components/DataTable/index.js +3 -0
- package/dist/esm/components/DataTable/styles.js +100 -0
- package/dist/esm/components/DataTable/types.js +1 -0
- package/dist/esm/components/DateField/DateField.js +68 -0
- package/dist/esm/components/DateField/index.js +1 -0
- package/dist/esm/components/DescriptionList/DescriptionList.js +12 -0
- package/dist/esm/components/DescriptionList/index.js +1 -0
- package/dist/esm/components/DescriptionList/styled.js +35 -0
- package/dist/esm/components/Disclosure/Disclosure.js +36 -0
- package/dist/esm/components/Disclosure/index.js +1 -0
- package/dist/esm/components/Display0/Display0.js +23 -0
- package/dist/esm/components/Display0/index.js +1 -0
- package/dist/esm/components/Display1/Display1.js +23 -0
- package/dist/esm/components/Display1/index.js +1 -0
- package/dist/esm/components/Display2/Display2.js +23 -0
- package/dist/esm/components/Display2/index.js +1 -0
- package/dist/esm/components/Display3/Display3.js +23 -0
- package/dist/esm/components/Display3/index.js +1 -0
- package/dist/esm/components/Divider/Divider.js +14 -0
- package/dist/esm/components/Divider/index.js +1 -0
- package/dist/esm/components/Em/Em.js +6 -0
- package/dist/esm/components/Em/index.js +1 -0
- package/dist/esm/components/EmailField/EmailField.js +6 -0
- package/dist/esm/components/EmailField/index.js +1 -0
- package/dist/esm/components/EmailInput/EmailInput.js +4 -0
- package/dist/esm/components/EmailInput/index.js +1 -0
- package/dist/esm/components/ErrorSummaryNotification/ErrorSummaryNotification.js +23 -0
- package/dist/esm/components/ErrorSummaryNotification/index.js +1 -0
- package/dist/esm/components/ErrorText/ErrorText.js +18 -0
- package/dist/esm/components/ErrorText/index.js +1 -0
- package/dist/esm/components/Field/Field.js +38 -0
- package/dist/esm/components/Field/index.js +1 -0
- package/dist/esm/components/FilterSelect/FilterSelect.js +67 -0
- package/dist/esm/components/FilterSelect/index.js +1 -0
- package/dist/esm/components/FormGroup/FormGroup.js +9 -0
- package/dist/esm/components/FormGroup/index.js +1 -0
- package/dist/esm/components/Grid/Col.js +35 -0
- package/dist/esm/components/Grid/Row.js +35 -0
- package/dist/esm/components/Grid/index.js +2 -0
- package/dist/esm/components/Heading1/Heading1.js +23 -0
- package/dist/esm/components/Heading1/index.js +1 -0
- package/dist/esm/components/Heading2/Heading2.js +23 -0
- package/dist/esm/components/Heading2/index.js +1 -0
- package/dist/esm/components/Heading3/Heading3.js +23 -0
- package/dist/esm/components/Heading3/index.js +1 -0
- package/dist/esm/components/Heading4/Heading4.js +23 -0
- package/dist/esm/components/Heading4/index.js +1 -0
- package/dist/esm/components/HintText/HintText.js +18 -0
- package/dist/esm/components/HintText/index.js +1 -0
- package/dist/esm/components/Icon/Icon.js +13 -0
- package/dist/esm/components/Icon/index.js +1 -0
- package/dist/esm/components/Input/Input.js +78 -0
- package/dist/esm/components/Label/Label.js +10 -0
- package/dist/esm/components/Label/index.js +1 -0
- package/dist/esm/components/LabelText/LabelText.js +16 -0
- package/dist/esm/components/LabelText/index.js +1 -0
- package/dist/esm/components/Lead/Lead.js +12 -0
- package/dist/esm/components/Lead/index.js +1 -0
- package/dist/esm/components/LineThrough/LineThrough.js +4 -0
- package/dist/esm/components/LineThrough/index.js +1 -0
- package/dist/esm/components/List/List.js +26 -0
- package/dist/esm/components/List/index.js +1 -0
- package/dist/esm/components/List/styled.js +40 -0
- package/dist/esm/components/Margin/Margin.js +36 -0
- package/dist/esm/components/Margin/index.js +1 -0
- package/dist/esm/components/NavHeader/IconButton.js +13 -0
- package/dist/esm/components/NavHeader/NavHeader.js +43 -0
- package/dist/esm/components/NavHeader/NavHeader.styles.js +82 -0
- package/dist/esm/components/NavHeader/index.js +1 -0
- package/dist/esm/components/Notification/Notification.js +81 -0
- package/dist/esm/components/Notification/index.js +1 -0
- package/dist/esm/components/NumberField/NumberField.js +6 -0
- package/dist/esm/components/NumberField/index.js +1 -0
- package/dist/esm/components/NumberInput/NumberInput.js +4 -0
- package/dist/esm/components/NumberInput/index.js +1 -0
- package/dist/esm/components/P/P.js +14 -0
- package/dist/esm/components/P/index.js +1 -0
- package/dist/esm/components/PasswordField/PasswordField.js +6 -0
- package/dist/esm/components/PasswordField/index.js +1 -0
- package/dist/esm/components/PasswordInput/PasswordInput.js +8 -0
- package/dist/esm/components/PasswordInput/PasswordInput.styled.js +14 -0
- package/dist/esm/components/PasswordInput/PasswordVisibilityToggle.js +22 -0
- package/dist/esm/components/PasswordInput/index.js +1 -0
- package/dist/esm/components/PhoneField/PhoneField.js +6 -0
- package/dist/esm/components/PhoneField/index.js +1 -0
- package/dist/esm/components/PhoneInput/PhoneInput.js +3 -0
- package/dist/esm/components/PhoneInput/index.js +1 -0
- package/dist/esm/components/ProductCarousel/NavigationDots.js +48 -0
- package/dist/esm/components/ProductCarousel/ProductCarousel.js +81 -0
- package/dist/esm/components/ProductCarousel/anchor-point.js +43 -0
- package/dist/esm/components/ProductCarousel/index.js +1 -0
- package/dist/esm/components/Radio/Radio.js +52 -0
- package/dist/esm/components/Radio/RadioField.js +21 -0
- package/dist/esm/components/Radio/index.js +2 -0
- package/dist/esm/components/RadioCard/RadioCard.js +57 -0
- package/dist/esm/components/RadioCard/index.js +1 -0
- package/dist/esm/components/SegmentedControls/SegmentedControls.js +48 -0
- package/dist/esm/components/SegmentedControls/components/SegmentButton.js +78 -0
- package/dist/esm/components/SegmentedControls/index.js +2 -0
- package/dist/esm/components/SelectField/Select.js +93 -0
- package/dist/esm/components/SelectField/SelectField.js +4 -0
- package/dist/esm/components/SelectField/index.js +1 -0
- package/dist/esm/components/SkeletonAnimation/SkeletonAnimation.js +30 -0
- package/dist/esm/components/SkeletonAnimation/index.js +1 -0
- package/dist/esm/components/SkeletonCTA/SkeletonCTA.js +11 -0
- package/dist/esm/components/SkeletonCTA/index.js +1 -0
- package/dist/esm/components/SkeletonCircle/SkeletonCircle.js +12 -0
- package/dist/esm/components/SkeletonCircle/index.js +1 -0
- package/dist/esm/components/SkeletonHeading/SkeletonHeading.js +9 -0
- package/dist/esm/components/SkeletonHeading/index.js +1 -0
- package/dist/esm/components/SkeletonText/SkeletonText.js +27 -0
- package/dist/esm/components/SkeletonText/index.js +1 -0
- package/dist/esm/components/Small/Small.js +8 -0
- package/dist/esm/components/Small/index.js +1 -0
- package/dist/esm/components/Spinner/Spinner.js +43 -0
- package/dist/esm/components/Spinner/index.js +1 -0
- package/dist/esm/components/Stack/Stack.js +17 -0
- package/dist/esm/components/Stack/index.js +1 -0
- package/dist/esm/components/Stretch/Stretch.js +13 -0
- package/dist/esm/components/Stretch/index.js +1 -0
- package/dist/esm/components/Strong/Strong.js +4 -0
- package/dist/esm/components/Strong/index.js +1 -0
- package/dist/esm/components/SubLabelText/SubLabelText.js +16 -0
- package/dist/esm/components/SubLabelText/index.js +1 -0
- package/dist/esm/components/Tabs/Tab.js +67 -0
- package/dist/esm/components/Tabs/TabList.js +21 -0
- package/dist/esm/components/Tabs/TabPanel.js +13 -0
- package/dist/esm/components/Tabs/Tabs.js +42 -0
- package/dist/esm/components/Tabs/index.js +4 -0
- package/dist/esm/components/TextField/TextField.js +6 -0
- package/dist/esm/components/TextField/index.js +1 -0
- package/dist/esm/components/TextGroup/TextGroup.js +20 -0
- package/dist/esm/components/TextGroup/index.js +1 -0
- package/dist/esm/components/TextInput/TextInput.js +4 -0
- package/dist/esm/components/TextInput/index.js +1 -0
- package/dist/esm/components/TextLink/TextLink.js +21 -0
- package/dist/esm/components/TextLink/index.js +1 -0
- package/dist/esm/components/TextareaField/TextareaField.js +6 -0
- package/dist/esm/components/TextareaField/index.js +1 -0
- package/dist/esm/components/TextareaInput/TextareaInput.js +13 -0
- package/dist/esm/components/TextareaInput/index.js +1 -0
- package/dist/esm/components/Toast/Toast.js +126 -0
- package/dist/esm/components/Toast/index.js +1 -0
- package/dist/esm/components/Toggle/Toggle.js +25 -0
- package/dist/esm/components/Toggle/index.js +1 -0
- package/dist/esm/components/Toggle/styles.js +37 -0
- package/dist/esm/components/index.js +67 -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 +15 -0
- package/dist/esm/hooks/use-layout.js +16 -0
- package/dist/esm/index.js +3 -0
- package/dist/esm/providers/IconsProvider.js +112 -0
- package/dist/esm/providers/icons/Address.js +3 -0
- package/dist/esm/providers/icons/Advice.js +3 -0
- package/dist/esm/providers/icons/Archive.js +3 -0
- package/dist/esm/providers/icons/ArrowDown.js +3 -0
- package/dist/esm/providers/icons/ArrowLeft.js +3 -0
- package/dist/esm/providers/icons/ArrowRight.js +3 -0
- package/dist/esm/providers/icons/ArrowUp.js +3 -0
- package/dist/esm/providers/icons/Award.js +3 -0
- package/dist/esm/providers/icons/Battery.js +3 -0
- package/dist/esm/providers/icons/Cal.js +3 -0
- package/dist/esm/providers/icons/CalBook.js +3 -0
- package/dist/esm/providers/icons/CaretArrowDown.js +3 -0
- package/dist/esm/providers/icons/CaretArrowLeft.js +3 -0
- package/dist/esm/providers/icons/CaretArrowRight.js +3 -0
- package/dist/esm/providers/icons/CaretArrowUp.js +3 -0
- package/dist/esm/providers/icons/CaretDown.js +3 -0
- package/dist/esm/providers/icons/CaretLeft.js +3 -0
- package/dist/esm/providers/icons/CaretRight.js +3 -0
- package/dist/esm/providers/icons/CaretUp.js +3 -0
- package/dist/esm/providers/icons/Chart.js +3 -0
- package/dist/esm/providers/icons/ChartFilled.js +3 -0
- package/dist/esm/providers/icons/Check.js +3 -0
- package/dist/esm/providers/icons/CheckCircle.js +3 -0
- package/dist/esm/providers/icons/ChevronDown.js +3 -0
- package/dist/esm/providers/icons/ChevronLeft.js +3 -0
- package/dist/esm/providers/icons/ChevronLeftSmall.js +3 -0
- package/dist/esm/providers/icons/ChevronLeftSmallFirst.js +3 -0
- package/dist/esm/providers/icons/ChevronRight.js +3 -0
- package/dist/esm/providers/icons/ChevronRightSmall.js +3 -0
- package/dist/esm/providers/icons/ChevronRightSmallLast.js +3 -0
- package/dist/esm/providers/icons/ChevronUp.js +3 -0
- package/dist/esm/providers/icons/Circle.js +3 -0
- package/dist/esm/providers/icons/CloseCircle.js +3 -0
- package/dist/esm/providers/icons/Cross.js +3 -0
- package/dist/esm/providers/icons/Doc.js +3 -0
- package/dist/esm/providers/icons/Dollar.js +3 -0
- package/dist/esm/providers/icons/Download.js +3 -0
- package/dist/esm/providers/icons/Eco.js +3 -0
- package/dist/esm/providers/icons/EcoHome.js +3 -0
- package/dist/esm/providers/icons/Edit.js +3 -0
- package/dist/esm/providers/icons/ElectricCar.js +3 -0
- package/dist/esm/providers/icons/ElectricHome.js +3 -0
- package/dist/esm/providers/icons/Electricity.js +3 -0
- package/dist/esm/providers/icons/EnergyAdvice.js +3 -0
- package/dist/esm/providers/icons/Equals.js +3 -0
- package/dist/esm/providers/icons/Euro.js +3 -0
- package/dist/esm/providers/icons/Gas.js +3 -0
- package/dist/esm/providers/icons/GlobeAddress.js +3 -0
- package/dist/esm/providers/icons/Help.js +3 -0
- package/dist/esm/providers/icons/HelpFilled.js +3 -0
- package/dist/esm/providers/icons/Hide.js +3 -0
- package/dist/esm/providers/icons/Home.js +3 -0
- package/dist/esm/providers/icons/HomeFilled.js +3 -0
- package/dist/esm/providers/icons/HydroPower.js +3 -0
- package/dist/esm/providers/icons/Info.js +3 -0
- package/dist/esm/providers/icons/Link.js +3 -0
- package/dist/esm/providers/icons/Logo.js +3 -0
- package/dist/esm/providers/icons/Mail.js +3 -0
- package/dist/esm/providers/icons/MailOpen.js +3 -0
- package/dist/esm/providers/icons/Menu.js +3 -0
- package/dist/esm/providers/icons/Message.js +3 -0
- package/dist/esm/providers/icons/MessageFilled.js +3 -0
- package/dist/esm/providers/icons/Minus.js +3 -0
- package/dist/esm/providers/icons/Mobile.js +3 -0
- package/dist/esm/providers/icons/NewWindow.js +3 -0
- package/dist/esm/providers/icons/PaymentCard.js +3 -0
- package/dist/esm/providers/icons/PaymentCardFilled.js +3 -0
- package/dist/esm/providers/icons/Phone.js +3 -0
- package/dist/esm/providers/icons/Plus.js +3 -0
- package/dist/esm/providers/icons/Pound.js +3 -0
- package/dist/esm/providers/icons/Pricing.js +3 -0
- package/dist/esm/providers/icons/PricingFilled.js +3 -0
- package/dist/esm/providers/icons/Search.js +3 -0
- package/dist/esm/providers/icons/Security.js +3 -0
- package/dist/esm/providers/icons/Shop.js +3 -0
- package/dist/esm/providers/icons/ShopFilled.js +3 -0
- package/dist/esm/providers/icons/Show.js +3 -0
- package/dist/esm/providers/icons/SmartHome.js +3 -0
- package/dist/esm/providers/icons/SmartMeter.js +3 -0
- package/dist/esm/providers/icons/Solar.js +3 -0
- package/dist/esm/providers/icons/Star.js +3 -0
- package/dist/esm/providers/icons/StarFilled.js +3 -0
- package/dist/esm/providers/icons/Sun.js +3 -0
- package/dist/esm/providers/icons/Torch.js +3 -0
- package/dist/esm/providers/icons/Trees.js +3 -0
- package/dist/esm/providers/icons/Tune.js +3 -0
- package/dist/esm/providers/icons/User.js +3 -0
- package/dist/esm/providers/icons/UserFilled.js +3 -0
- package/dist/esm/providers/icons/Wallet.js +3 -0
- package/dist/esm/providers/icons/WalletFilled.js +3 -0
- package/dist/esm/providers/icons/WarmHome.js +3 -0
- package/dist/esm/providers/icons/Warning.js +3 -0
- package/dist/esm/providers/icons/WebAddress.js +3 -0
- package/dist/esm/providers/icons/WindPower.js +3 -0
- package/dist/esm/providers/icons/index.js +93 -0
- package/dist/esm/providers/index.js +2 -0
- package/dist/esm/providers/types.js +1 -0
- package/dist/esm/src/components/{NavigationIcon/NavigationIcon.js → NavIcon/NavIcon.js} +1 -1
- package/dist/esm/src/components/NavIcon/index.js +1 -0
- package/dist/esm/src/components/index.js +1 -0
- package/dist/esm/styled.native.js +4 -0
- package/dist/esm/theme/index.js +1 -0
- package/dist/esm/utils/index.js +1 -0
- package/dist/esm/utils/utils.js +68 -0
- package/dist/hooks/index.d.ts +2 -0
- package/dist/hooks/index.js +2 -0
- package/dist/hooks/use-breakpoint.d.ts +7 -0
- package/dist/hooks/use-breakpoint.js +12 -0
- package/dist/hooks/use-full-width.d.ts +2 -0
- package/dist/hooks/use-full-width.js +15 -0
- package/dist/hooks/use-layout.d.ts +6 -0
- package/dist/hooks/use-layout.js +16 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +3 -0
- package/dist/providers/IconsProvider.d.ts +8 -0
- package/dist/providers/IconsProvider.js +112 -0
- package/dist/providers/icons/Address.d.ts +2 -0
- package/dist/providers/icons/Address.js +3 -0
- package/dist/providers/icons/Advice.d.ts +2 -0
- package/dist/providers/icons/Advice.js +3 -0
- package/dist/providers/icons/Archive.d.ts +2 -0
- package/dist/providers/icons/Archive.js +3 -0
- package/dist/providers/icons/ArrowDown.d.ts +2 -0
- package/dist/providers/icons/ArrowDown.js +3 -0
- package/dist/providers/icons/ArrowLeft.d.ts +2 -0
- package/dist/providers/icons/ArrowLeft.js +3 -0
- package/dist/providers/icons/ArrowRight.d.ts +2 -0
- package/dist/providers/icons/ArrowRight.js +3 -0
- package/dist/providers/icons/ArrowUp.d.ts +2 -0
- package/dist/providers/icons/ArrowUp.js +3 -0
- package/dist/providers/icons/Award.d.ts +2 -0
- package/dist/providers/icons/Award.js +3 -0
- package/dist/providers/icons/Battery.d.ts +2 -0
- package/dist/providers/icons/Battery.js +3 -0
- package/dist/providers/icons/Cal.d.ts +2 -0
- package/dist/providers/icons/Cal.js +3 -0
- package/dist/providers/icons/CalBook.d.ts +2 -0
- package/dist/providers/icons/CalBook.js +3 -0
- package/dist/providers/icons/CaretArrowDown.d.ts +2 -0
- package/dist/providers/icons/CaretArrowDown.js +3 -0
- package/dist/providers/icons/CaretArrowLeft.d.ts +2 -0
- package/dist/providers/icons/CaretArrowLeft.js +3 -0
- package/dist/providers/icons/CaretArrowRight.d.ts +2 -0
- package/dist/providers/icons/CaretArrowRight.js +3 -0
- package/dist/providers/icons/CaretArrowUp.d.ts +2 -0
- package/dist/providers/icons/CaretArrowUp.js +3 -0
- package/dist/providers/icons/CaretDown.d.ts +2 -0
- package/dist/providers/icons/CaretDown.js +3 -0
- package/dist/providers/icons/CaretLeft.d.ts +2 -0
- package/dist/providers/icons/CaretLeft.js +3 -0
- package/dist/providers/icons/CaretRight.d.ts +2 -0
- package/dist/providers/icons/CaretRight.js +3 -0
- package/dist/providers/icons/CaretUp.d.ts +2 -0
- package/dist/providers/icons/CaretUp.js +3 -0
- package/dist/providers/icons/Chart.d.ts +2 -0
- package/dist/providers/icons/Chart.js +3 -0
- package/dist/providers/icons/ChartFilled.d.ts +2 -0
- package/dist/providers/icons/ChartFilled.js +3 -0
- package/dist/providers/icons/Check.d.ts +2 -0
- package/dist/providers/icons/Check.js +3 -0
- package/dist/providers/icons/CheckCircle.d.ts +2 -0
- package/dist/providers/icons/CheckCircle.js +3 -0
- package/dist/providers/icons/ChevronDown.d.ts +2 -0
- package/dist/providers/icons/ChevronDown.js +3 -0
- package/dist/providers/icons/ChevronLeft.d.ts +2 -0
- package/dist/providers/icons/ChevronLeft.js +3 -0
- package/dist/providers/icons/ChevronLeftSmall.d.ts +2 -0
- package/dist/providers/icons/ChevronLeftSmall.js +3 -0
- package/dist/providers/icons/ChevronLeftSmallFirst.d.ts +2 -0
- package/dist/providers/icons/ChevronLeftSmallFirst.js +3 -0
- package/dist/providers/icons/ChevronRight.d.ts +2 -0
- package/dist/providers/icons/ChevronRight.js +3 -0
- package/dist/providers/icons/ChevronRightSmall.d.ts +2 -0
- package/dist/providers/icons/ChevronRightSmall.js +3 -0
- package/dist/providers/icons/ChevronRightSmallLast.d.ts +2 -0
- package/dist/providers/icons/ChevronRightSmallLast.js +3 -0
- package/dist/providers/icons/ChevronUp.d.ts +2 -0
- package/dist/providers/icons/ChevronUp.js +3 -0
- package/dist/providers/icons/Circle.d.ts +2 -0
- package/dist/providers/icons/Circle.js +3 -0
- package/dist/providers/icons/CloseCircle.d.ts +2 -0
- package/dist/providers/icons/CloseCircle.js +3 -0
- package/dist/providers/icons/Cross.d.ts +2 -0
- package/dist/providers/icons/Cross.js +3 -0
- package/dist/providers/icons/Doc.d.ts +2 -0
- package/dist/providers/icons/Doc.js +3 -0
- package/dist/providers/icons/Dollar.d.ts +2 -0
- package/dist/providers/icons/Dollar.js +3 -0
- package/dist/providers/icons/Download.d.ts +2 -0
- package/dist/providers/icons/Download.js +3 -0
- package/dist/providers/icons/Eco.d.ts +2 -0
- package/dist/providers/icons/Eco.js +3 -0
- package/dist/providers/icons/EcoHome.d.ts +2 -0
- package/dist/providers/icons/EcoHome.js +3 -0
- package/dist/providers/icons/Edit.d.ts +2 -0
- package/dist/providers/icons/Edit.js +3 -0
- package/dist/providers/icons/ElectricCar.d.ts +2 -0
- package/dist/providers/icons/ElectricCar.js +3 -0
- package/dist/providers/icons/ElectricHome.d.ts +2 -0
- package/dist/providers/icons/ElectricHome.js +3 -0
- package/dist/providers/icons/Electricity.d.ts +2 -0
- package/dist/providers/icons/Electricity.js +3 -0
- package/dist/providers/icons/EnergyAdvice.d.ts +2 -0
- package/dist/providers/icons/EnergyAdvice.js +3 -0
- package/dist/providers/icons/Equals.d.ts +2 -0
- package/dist/providers/icons/Equals.js +3 -0
- package/dist/providers/icons/Euro.d.ts +2 -0
- package/dist/providers/icons/Euro.js +3 -0
- package/dist/providers/icons/Gas.d.ts +2 -0
- package/dist/providers/icons/Gas.js +3 -0
- package/dist/providers/icons/GlobeAddress.d.ts +2 -0
- package/dist/providers/icons/GlobeAddress.js +3 -0
- package/dist/providers/icons/Help.d.ts +2 -0
- package/dist/providers/icons/Help.js +3 -0
- package/dist/providers/icons/HelpFilled.d.ts +2 -0
- package/dist/providers/icons/HelpFilled.js +3 -0
- package/dist/providers/icons/Hide.d.ts +2 -0
- package/dist/providers/icons/Hide.js +3 -0
- package/dist/providers/icons/Home.d.ts +2 -0
- package/dist/providers/icons/Home.js +3 -0
- package/dist/providers/icons/HomeFilled.d.ts +2 -0
- package/dist/providers/icons/HomeFilled.js +3 -0
- package/dist/providers/icons/HydroPower.d.ts +2 -0
- package/dist/providers/icons/HydroPower.js +3 -0
- package/dist/providers/icons/Info.d.ts +2 -0
- package/dist/providers/icons/Info.js +3 -0
- package/dist/providers/icons/Link.d.ts +2 -0
- package/dist/providers/icons/Link.js +3 -0
- package/dist/providers/icons/Logo.d.ts +2 -0
- package/dist/providers/icons/Logo.js +3 -0
- package/dist/providers/icons/Mail.d.ts +2 -0
- package/dist/providers/icons/Mail.js +3 -0
- package/dist/providers/icons/MailOpen.d.ts +2 -0
- package/dist/providers/icons/MailOpen.js +3 -0
- package/dist/providers/icons/Menu.d.ts +2 -0
- package/dist/providers/icons/Menu.js +3 -0
- package/dist/providers/icons/Message.d.ts +2 -0
- package/dist/providers/icons/Message.js +3 -0
- package/dist/providers/icons/MessageFilled.d.ts +2 -0
- package/dist/providers/icons/MessageFilled.js +3 -0
- package/dist/providers/icons/Minus.d.ts +2 -0
- package/dist/providers/icons/Minus.js +3 -0
- package/dist/providers/icons/Mobile.d.ts +2 -0
- package/dist/providers/icons/Mobile.js +3 -0
- package/dist/providers/icons/NewWindow.d.ts +2 -0
- package/dist/providers/icons/NewWindow.js +3 -0
- package/dist/providers/icons/PaymentCard.d.ts +2 -0
- package/dist/providers/icons/PaymentCard.js +3 -0
- package/dist/providers/icons/PaymentCardFilled.d.ts +2 -0
- package/dist/providers/icons/PaymentCardFilled.js +3 -0
- package/dist/providers/icons/Phone.d.ts +2 -0
- package/dist/providers/icons/Phone.js +3 -0
- package/dist/providers/icons/Plus.d.ts +2 -0
- package/dist/providers/icons/Plus.js +3 -0
- package/dist/providers/icons/Pound.d.ts +2 -0
- package/dist/providers/icons/Pound.js +3 -0
- package/dist/providers/icons/Pricing.d.ts +2 -0
- package/dist/providers/icons/Pricing.js +3 -0
- package/dist/providers/icons/PricingFilled.d.ts +2 -0
- package/dist/providers/icons/PricingFilled.js +3 -0
- package/dist/providers/icons/Search.d.ts +2 -0
- package/dist/providers/icons/Search.js +3 -0
- package/dist/providers/icons/Security.d.ts +2 -0
- package/dist/providers/icons/Security.js +3 -0
- package/dist/providers/icons/Shop.d.ts +2 -0
- package/dist/providers/icons/Shop.js +3 -0
- package/dist/providers/icons/ShopFilled.d.ts +2 -0
- package/dist/providers/icons/ShopFilled.js +3 -0
- package/dist/providers/icons/Show.d.ts +2 -0
- package/dist/providers/icons/Show.js +3 -0
- package/dist/providers/icons/SmartHome.d.ts +2 -0
- package/dist/providers/icons/SmartHome.js +3 -0
- package/dist/providers/icons/SmartMeter.d.ts +2 -0
- package/dist/providers/icons/SmartMeter.js +3 -0
- package/dist/providers/icons/Solar.d.ts +2 -0
- package/dist/providers/icons/Solar.js +3 -0
- package/dist/providers/icons/Star.d.ts +2 -0
- package/dist/providers/icons/Star.js +3 -0
- package/dist/providers/icons/StarFilled.d.ts +2 -0
- package/dist/providers/icons/StarFilled.js +3 -0
- package/dist/providers/icons/Sun.d.ts +2 -0
- package/dist/providers/icons/Sun.js +3 -0
- package/dist/providers/icons/Torch.d.ts +2 -0
- package/dist/providers/icons/Torch.js +3 -0
- package/dist/providers/icons/Trees.d.ts +2 -0
- package/dist/providers/icons/Trees.js +3 -0
- package/dist/providers/icons/Tune.d.ts +2 -0
- package/dist/providers/icons/Tune.js +3 -0
- package/dist/providers/icons/User.d.ts +2 -0
- package/dist/providers/icons/User.js +3 -0
- package/dist/providers/icons/UserFilled.d.ts +2 -0
- package/dist/providers/icons/UserFilled.js +3 -0
- package/dist/providers/icons/Wallet.d.ts +2 -0
- package/dist/providers/icons/Wallet.js +3 -0
- package/dist/providers/icons/WalletFilled.d.ts +2 -0
- package/dist/providers/icons/WalletFilled.js +3 -0
- package/dist/providers/icons/WarmHome.d.ts +2 -0
- package/dist/providers/icons/WarmHome.js +3 -0
- package/dist/providers/icons/Warning.d.ts +2 -0
- package/dist/providers/icons/Warning.js +3 -0
- package/dist/providers/icons/WebAddress.d.ts +2 -0
- package/dist/providers/icons/WebAddress.js +3 -0
- package/dist/providers/icons/WindPower.d.ts +2 -0
- package/dist/providers/icons/WindPower.js +3 -0
- package/dist/providers/icons/index.d.ts +93 -0
- package/dist/providers/icons/index.js +93 -0
- package/dist/providers/index.d.ts +2 -0
- package/dist/providers/index.js +2 -0
- package/dist/providers/types.d.ts +5 -0
- package/dist/providers/types.js +1 -0
- package/dist/src/components/{NavigationIcon/NavigationIcon.d.ts → NavIcon/NavIcon.d.ts} +2 -2
- package/dist/src/components/{NavigationIcon/NavigationIcon.js → NavIcon/NavIcon.js} +1 -1
- package/dist/src/components/NavIcon/index.d.ts +1 -0
- package/dist/src/components/NavIcon/index.js +1 -0
- package/dist/src/components/index.d.ts +1 -0
- package/dist/src/components/index.js +1 -0
- package/dist/styled.native.d.ts +3388 -0
- package/dist/styled.native.js +4 -0
- package/dist/theme/index.d.ts +1 -0
- package/dist/theme/index.js +1 -0
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/index.js +1 -0
- package/dist/utils/utils.d.ts +15 -0
- package/dist/utils/utils.js +68 -0
- package/package.json +1 -1
- package/dist/esm/src/components/NavigationIcon/index.js +0 -1
- package/dist/src/components/NavigationIcon/index.d.ts +0 -1
- package/dist/src/components/NavigationIcon/index.js +0 -1
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { Children } from 'react';
|
|
3
|
+
import { View } from 'react-native';
|
|
4
|
+
import { getValidChildren } from '../../utils';
|
|
5
|
+
import { Margin } from '../Margin';
|
|
6
|
+
import { Stack } from '../Stack';
|
|
7
|
+
import { FlexRow, LiContent, SquareBullet, TextBullet } from './styled';
|
|
8
|
+
const ListItem = ({ children, showBullets = true, prefix, }) => {
|
|
9
|
+
return (_jsxs(FlexRow, { children: [prefix ? (_jsx(TextBullet, { children: prefix })) : (_jsx(SquareBullet, { visible: showBullets })), _jsx(LiContent, { children: children })] }));
|
|
10
|
+
};
|
|
11
|
+
const renderList = ({ children, listType, showBullets, }) => {
|
|
12
|
+
const validChildren = getValidChildren(children);
|
|
13
|
+
return Children.map(validChildren, (child, index) => (_jsx(ListItem, { prefix: listType === 'ol' ? `${index + 1}.` : undefined, showBullets: showBullets, children: child })));
|
|
14
|
+
};
|
|
15
|
+
const Li = ({ children }) => {
|
|
16
|
+
return _jsx(View, { style: { flexDirection: 'column' }, children: children });
|
|
17
|
+
};
|
|
18
|
+
const Ul = (props) => {
|
|
19
|
+
const { children, showBullets } = props;
|
|
20
|
+
return (_jsx(Margin, { top: 2, children: _jsx(Stack, { spaceBetween: 2, children: renderList({ children, listType: 'ul', showBullets }) }) }));
|
|
21
|
+
};
|
|
22
|
+
const Ol = (props) => {
|
|
23
|
+
const { children } = props;
|
|
24
|
+
return (_jsx(Margin, { top: 2, children: _jsx(Stack, { spaceBetween: 2, children: renderList({ children, listType: 'ol' }) }) }));
|
|
25
|
+
};
|
|
26
|
+
export { Li, Ol, Ul };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Ol, Ul, Li } from './List';
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { numToPx } from '@ovotech/element-core';
|
|
2
|
+
import styled, { css } from '../../styled.native';
|
|
3
|
+
export const SquareBullet = styled.View(({ theme: { core, semantic }, visible, smallAndUp }) => {
|
|
4
|
+
const lineHeight = smallAndUp
|
|
5
|
+
? core.lineHeight.body.large
|
|
6
|
+
: core.lineHeight.body.small;
|
|
7
|
+
const topMargin = (lineHeight - core.space[2]) / 2;
|
|
8
|
+
return css `
|
|
9
|
+
align-self: flex-start;
|
|
10
|
+
width: ${numToPx(core.space[2])};
|
|
11
|
+
height: ${numToPx(core.space[2])};
|
|
12
|
+
margin-right: ${numToPx(core.space[2])};
|
|
13
|
+
margin-top: ${numToPx(topMargin)};
|
|
14
|
+
background-color: ${visible ? semantic.message.base : 'transparent'};
|
|
15
|
+
`;
|
|
16
|
+
});
|
|
17
|
+
export const TextBullet = styled.Text(({ theme: { core, semantic }, smallAndUp }) => {
|
|
18
|
+
const fontSize = smallAndUp
|
|
19
|
+
? core.fontSize.body.large
|
|
20
|
+
: core.fontSize.body.small;
|
|
21
|
+
const lineHeight = smallAndUp
|
|
22
|
+
? core.lineHeight.body.large
|
|
23
|
+
: core.lineHeight.body.small;
|
|
24
|
+
return css `
|
|
25
|
+
margin-right: ${numToPx(core.space[1])};
|
|
26
|
+
min-width: ${numToPx(core.space[3])};
|
|
27
|
+
min-height: ${numToPx(core.space[3])};
|
|
28
|
+
font-size: ${numToPx(fontSize)};
|
|
29
|
+
line-height: ${numToPx(lineHeight)};
|
|
30
|
+
text-align: left;
|
|
31
|
+
color: ${semantic.message.base};
|
|
32
|
+
`;
|
|
33
|
+
});
|
|
34
|
+
export const FlexRow = styled.View `
|
|
35
|
+
flex-direction: row;
|
|
36
|
+
`;
|
|
37
|
+
export const LiContent = styled.View `
|
|
38
|
+
flex-direction: column;
|
|
39
|
+
flex: 1;
|
|
40
|
+
`;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { numToPx } from '@ovotech/element-core';
|
|
3
|
+
import { useBreakpoint } from '../../hooks';
|
|
4
|
+
import styled from '../../styled.native';
|
|
5
|
+
import { responsiveStyle } from '../../utils';
|
|
6
|
+
const StyledMargin = styled.View(({ theme: { core: { space }, }, mTop, mBottom, mLeft, mRight, horizontal, vertical, all, breakpoints, }) => {
|
|
7
|
+
const formatter = (spaceKey) => numToPx(space[spaceKey]);
|
|
8
|
+
return `
|
|
9
|
+
${horizontal
|
|
10
|
+
? `
|
|
11
|
+
${responsiveStyle('margin-left', horizontal, breakpoints, formatter)}
|
|
12
|
+
${responsiveStyle('margin-right', horizontal, breakpoints, formatter)}
|
|
13
|
+
`
|
|
14
|
+
: ''}
|
|
15
|
+
${vertical
|
|
16
|
+
? `
|
|
17
|
+
${responsiveStyle('margin-top', vertical, breakpoints, formatter)}
|
|
18
|
+
${responsiveStyle('margin-bottom', vertical, breakpoints, formatter)}
|
|
19
|
+
`
|
|
20
|
+
: ''}
|
|
21
|
+
${mTop ? responsiveStyle('margin-top', mTop, breakpoints, formatter) : ''}
|
|
22
|
+
${mBottom
|
|
23
|
+
? responsiveStyle('margin-bottom', mBottom, breakpoints, formatter)
|
|
24
|
+
: ''}
|
|
25
|
+
${mLeft ? responsiveStyle('margin-left', mLeft, breakpoints, formatter) : ''}
|
|
26
|
+
${mRight
|
|
27
|
+
? responsiveStyle('margin-right', mRight, breakpoints, formatter)
|
|
28
|
+
: ''}
|
|
29
|
+
${all ? responsiveStyle('margin', all, breakpoints, formatter) : ''}
|
|
30
|
+
`;
|
|
31
|
+
});
|
|
32
|
+
const Margin = ({ top, bottom, left, right, ...rest }) => {
|
|
33
|
+
const breakpoints = useBreakpoint();
|
|
34
|
+
return (_jsx(StyledMargin, { ...rest, breakpoints: breakpoints, mTop: top, mBottom: bottom, mLeft: left, mRight: right }));
|
|
35
|
+
};
|
|
36
|
+
export { Margin };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Margin } from './Margin';
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { Pressable } from 'react-native';
|
|
3
|
+
import { useTheme } from '../../styled.native';
|
|
4
|
+
import { Icon } from '../Icon';
|
|
5
|
+
import { StyledIconButtonL, StyledIconButtonS } from './NavHeader.styles';
|
|
6
|
+
export const IconButton = ({ size, animation, rightActionConfig, }) => {
|
|
7
|
+
const ButtonStyled = size === 'small' ? StyledIconButtonS : StyledIconButtonL;
|
|
8
|
+
const theme = useTheme();
|
|
9
|
+
if (!rightActionConfig || !rightActionConfig?.iconName) {
|
|
10
|
+
return null;
|
|
11
|
+
}
|
|
12
|
+
return (_jsx(Pressable, { hitSlop: theme.core.space[2], pressRetentionOffset: theme.core.space[2], onPress: rightActionConfig?.onActionPress, accessibilityRole: "button", accessibilityLabel: rightActionConfig?.accessibilityLabel, accessibilityHint: rightActionConfig?.accessibilityHint, children: ({ pressed }) => (_jsx(ButtonStyled, { entering: animation, "$pressed": pressed, children: _jsx(Icon, { name: rightActionConfig.iconName, size: size === 'small' ? 16 : 18, color: theme.semantic.inverted.message.base }) })) }));
|
|
13
|
+
};
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import Animated, { Easing, FadeInDown, FadeInUp, FadeOutDown, FadeOutUp, useAnimatedStyle, useSharedValue, withTiming, } from 'react-native-reanimated';
|
|
3
|
+
import { useTheme } from '../../styled.native';
|
|
4
|
+
import { Action } from '../ActionList';
|
|
5
|
+
import { IconButton } from './IconButton';
|
|
6
|
+
import { ActionWrapper, CollapsedTitle, CollapsedTitleWrapper, ExpandedTitle, IconButtonWrapper, NavContainer, NavWrapper, } from './NavHeader.styles';
|
|
7
|
+
const FADE_ANIMATION_DURATION = 200;
|
|
8
|
+
export const NavHeader = ({ title, scrolled, canGoBack, rightActionConfig, topOffset = 0, backButtonText = 'Back', onHeaderHeightChange, onBackButtonPress, }) => {
|
|
9
|
+
const hasRightAction = !!rightActionConfig;
|
|
10
|
+
const hasTitle = title !== undefined && title?.length > 0;
|
|
11
|
+
const theme = useTheme();
|
|
12
|
+
const layoutHeight = useSharedValue(0);
|
|
13
|
+
const animatedHeightStyle = useAnimatedStyle(() => {
|
|
14
|
+
return {
|
|
15
|
+
height: layoutHeight.value,
|
|
16
|
+
};
|
|
17
|
+
});
|
|
18
|
+
const onLayout = (e) => {
|
|
19
|
+
const { height } = e.nativeEvent.layout;
|
|
20
|
+
if (height === layoutHeight.value) {
|
|
21
|
+
return;
|
|
22
|
+
}
|
|
23
|
+
// we want to only update height of the expanded header to set content offset on the client side
|
|
24
|
+
if (!scrolled) {
|
|
25
|
+
onHeaderHeightChange?.(height);
|
|
26
|
+
}
|
|
27
|
+
layoutHeight.value = withTiming(height, {
|
|
28
|
+
duration: FADE_ANIMATION_DURATION,
|
|
29
|
+
easing: Easing.linear,
|
|
30
|
+
});
|
|
31
|
+
};
|
|
32
|
+
// NavWrapper will recieve height of the NavContainer and animate it
|
|
33
|
+
// content inside NavContainer is the only dynamic part of NavHeader
|
|
34
|
+
return (_jsx(NavWrapper, { collapsed: scrolled, style: animatedHeightStyle, children: _jsxs(NavContainer, { topOffset: topOffset, onLayout: onLayout, titleVisible: hasTitle, children: [_jsx(Animated.View, { style: {
|
|
35
|
+
width: scrolled ? '33.3%' : '100%',
|
|
36
|
+
// Important for maintaining white space above the title on main app screens.
|
|
37
|
+
height: !canGoBack ? theme.core.space[10] : undefined,
|
|
38
|
+
}, children: canGoBack && (_jsx(ActionWrapper, { collapsed: scrolled, children: _jsx(Action, { iconLeft: "chevron-left-small", inline: true, onPress: onBackButtonPress, children: backButtonText }) })) }), scrolled ? (_jsxs(_Fragment, { children: [_jsx(CollapsedTitleWrapper, { titleVisible: hasTitle, children: _jsx(CollapsedTitle, { numberOfLines: 1, ellipsizeMode: "tail", entering: FadeInDown.delay(FADE_ANIMATION_DURATION), exiting: FadeOutDown.duration(FADE_ANIMATION_DURATION), children: title }) }), _jsx(IconButtonWrapper, { children: _jsx(IconButton, { rightActionConfig: rightActionConfig, size: "small", animation: FadeInDown.delay(FADE_ANIMATION_DURATION) }) })] })) : (_jsxs(_Fragment, { children: [_jsx(ExpandedTitle
|
|
39
|
+
// if we don't have right action leave more space for the title text in expanded state
|
|
40
|
+
, {
|
|
41
|
+
// if we don't have right action leave more space for the title text in expanded state
|
|
42
|
+
fullWidth: !scrolled && !hasRightAction, numberOfLines: 2, ellipsizeMode: "tail", hasBackButton: canGoBack, titleVisible: hasTitle, entering: FadeInUp.delay(FADE_ANIMATION_DURATION), exiting: FadeOutUp.duration(FADE_ANIMATION_DURATION), children: title }), _jsx(IconButtonWrapper, { children: _jsx(IconButton, { rightActionConfig: rightActionConfig, size: "large", animation: FadeInUp.delay(FADE_ANIMATION_DURATION) }) })] }))] }) }));
|
|
43
|
+
};
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import { numToPx } from '@ovotech/element-core';
|
|
2
|
+
import Animated from 'react-native-reanimated';
|
|
3
|
+
import styled, { css } from '../../styled.native';
|
|
4
|
+
const Z_INDEX = 1000;
|
|
5
|
+
export const NavWrapper = styled(Animated.View)(({ theme: { semantic, core }, collapsed }) => css `
|
|
6
|
+
width: 100%;
|
|
7
|
+
position: absolute;
|
|
8
|
+
|
|
9
|
+
/* yes, it is not a good move, but we want header to be the topmost element on the screen and we can't control app zIndex */
|
|
10
|
+
z-index: ${Z_INDEX};
|
|
11
|
+
background-color: ${semantic.surface.base};
|
|
12
|
+
|
|
13
|
+
${collapsed
|
|
14
|
+
? css `
|
|
15
|
+
border-bottom-width: ${numToPx(core.borderWidth.small)};
|
|
16
|
+
border-bottom-style: solid;
|
|
17
|
+
border-bottom-color: ${semantic.border.differentiated};
|
|
18
|
+
`
|
|
19
|
+
: ''}
|
|
20
|
+
`);
|
|
21
|
+
export const NavContainer = styled.View(({ theme: { core }, topOffset, titleVisible }) => css `
|
|
22
|
+
position: absolute;
|
|
23
|
+
|
|
24
|
+
/* NavWrapper zIndex + 1 so it is always on top of the wrapper */
|
|
25
|
+
z-index: ${Z_INDEX + 1};
|
|
26
|
+
width: ${titleVisible ? '100%' : '50%'};
|
|
27
|
+
flex-direction: row;
|
|
28
|
+
justify-content: space-between;
|
|
29
|
+
align-items: center;
|
|
30
|
+
flex-wrap: wrap;
|
|
31
|
+
padding-top: ${topOffset
|
|
32
|
+
? topOffset
|
|
33
|
+
: numToPx(core.space[titleVisible ? 2 : 4])};
|
|
34
|
+
padding-bottom: ${numToPx(core.space[titleVisible ? 2 : 4])};
|
|
35
|
+
padding-left: ${numToPx(core.space[4])};
|
|
36
|
+
padding-right: ${numToPx(core.space[4])};
|
|
37
|
+
`);
|
|
38
|
+
export const ExpandedTitle = styled(Animated.Text)(({ theme: { core, semantic }, hasBackButton, fullWidth, titleVisible, }) => css `
|
|
39
|
+
width: ${fullWidth ? '100%' : '65%'};
|
|
40
|
+
font-family: ${core.fontFamily.heading.native};
|
|
41
|
+
font-size: ${numToPx(core.fontSize.heading1[hasBackButton ? 'small' : 'large'])};
|
|
42
|
+
line-height: ${numToPx(hasBackButton ? core.lineHeight.heading1.small : core.space[13])};
|
|
43
|
+
color: ${semantic.message.branded};
|
|
44
|
+
${!titleVisible && 'height: 0;'};
|
|
45
|
+
`);
|
|
46
|
+
export const CollapsedTitleWrapper = styled(Animated.View)(({ titleVisible }) => `
|
|
47
|
+
width: ${titleVisible ? '33.3%' : '0'};
|
|
48
|
+
align-items: center;
|
|
49
|
+
justify-content: center;
|
|
50
|
+
`);
|
|
51
|
+
export const CollapsedTitle = styled(Animated.Text)(({ theme: { core, semantic } }) => css `
|
|
52
|
+
font-family: ${core.fontFamily.heading.native};
|
|
53
|
+
font-size: ${numToPx(core.fontSize.heading4.small)};
|
|
54
|
+
line-height: ${numToPx(core.lineHeight.heading4.small)};
|
|
55
|
+
color: ${semantic.message.branded};
|
|
56
|
+
`);
|
|
57
|
+
export const IconButtonWrapper = styled.View `
|
|
58
|
+
width: 33.3%;
|
|
59
|
+
flex-direction: row;
|
|
60
|
+
justify-content: flex-end;
|
|
61
|
+
`;
|
|
62
|
+
const iconButtonSharedStyles = css(({ theme: { semantic } }) => `
|
|
63
|
+
border-radius: 100px;
|
|
64
|
+
background-color: ${semantic.inverted.surface};
|
|
65
|
+
align-items: center;
|
|
66
|
+
justify-content: center;
|
|
67
|
+
`);
|
|
68
|
+
export const StyledIconButtonS = styled(Animated.View) `
|
|
69
|
+
width: 28px;
|
|
70
|
+
height: 28px;
|
|
71
|
+
opacity: ${({ $pressed }) => ($pressed ? 0.8 : 1)};
|
|
72
|
+
${iconButtonSharedStyles};
|
|
73
|
+
`;
|
|
74
|
+
export const StyledIconButtonL = styled(Animated.View) `
|
|
75
|
+
width: 36px;
|
|
76
|
+
height: 36px;
|
|
77
|
+
opacity: ${({ $pressed }) => ($pressed ? 0.8 : 1)};
|
|
78
|
+
${iconButtonSharedStyles};
|
|
79
|
+
`;
|
|
80
|
+
export const ActionWrapper = styled.View(({ theme: { core }, collapsed }) => css `
|
|
81
|
+
margin-bottom: ${collapsed ? '0' : numToPx(core.space[2])};
|
|
82
|
+
`);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { NavHeader } from './NavHeader';
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { numToPx } from '@ovotech/element-core';
|
|
3
|
+
import { useState } from 'react';
|
|
4
|
+
import { View } from 'react-native';
|
|
5
|
+
import styled, { css } from '../../styled.native';
|
|
6
|
+
import { Icon } from '../Icon';
|
|
7
|
+
const NotificationBox = styled.View(({ theme: { core, semantic }, noMargin }) => {
|
|
8
|
+
return css `
|
|
9
|
+
position: relative;
|
|
10
|
+
margin-bottom: ${noMargin ? 0 : numToPx(core.space[4])};
|
|
11
|
+
border: ${numToPx(core.borderWidth.small)} solid
|
|
12
|
+
${semantic.surface.elevated};
|
|
13
|
+
border-radius: ${numToPx(core.radius.max)};
|
|
14
|
+
overflow: hidden;
|
|
15
|
+
`;
|
|
16
|
+
});
|
|
17
|
+
export const NotificationContentBox = styled.View(({ theme: { core, semantic } }) => {
|
|
18
|
+
return css `
|
|
19
|
+
background-color: ${semantic.surface.elevated};
|
|
20
|
+
padding-top: ${numToPx(core.space[2])};
|
|
21
|
+
padding-bottom: ${numToPx(core.space[3])};
|
|
22
|
+
padding-left: ${numToPx(core.space[4])};
|
|
23
|
+
padding-right: ${numToPx(core.space[4])};
|
|
24
|
+
`;
|
|
25
|
+
});
|
|
26
|
+
export const NotificationTitleBox = styled.View(({ theme: { core, semantic }, variant, dismissible }) => {
|
|
27
|
+
const currentVariant = semantic[variant];
|
|
28
|
+
return css `
|
|
29
|
+
flex-direction: row;
|
|
30
|
+
align-items: center;
|
|
31
|
+
justify-content: space-between;
|
|
32
|
+
background-color: ${currentVariant.surface};
|
|
33
|
+
padding-top: ${numToPx(core.space[2])};
|
|
34
|
+
padding-bottom: ${numToPx(core.space[2])};
|
|
35
|
+
padding-left: ${numToPx(core.space[4])};
|
|
36
|
+
padding-right: ${dismissible
|
|
37
|
+
? numToPx(core.space[3])
|
|
38
|
+
: numToPx(core.space[4])};
|
|
39
|
+
min-height: 44px;
|
|
40
|
+
`;
|
|
41
|
+
});
|
|
42
|
+
const NotificationTitleText = styled.Text(({ theme: { core, semantic }, variant }) => {
|
|
43
|
+
const currentVariant = semantic[variant];
|
|
44
|
+
return css `
|
|
45
|
+
font-size: ${numToPx(core.fontSize.body.small)};
|
|
46
|
+
font-family: ${core.fontFamily.bodyBold.native};
|
|
47
|
+
color: ${currentVariant.message};
|
|
48
|
+
`;
|
|
49
|
+
});
|
|
50
|
+
const DismissButton = styled.TouchableOpacity(({ theme: { core, semantic } }) => {
|
|
51
|
+
return css `
|
|
52
|
+
display: flex;
|
|
53
|
+
justify-content: center;
|
|
54
|
+
align-items: center;
|
|
55
|
+
width: 28px;
|
|
56
|
+
height: 28px;
|
|
57
|
+
background: ${semantic.inverted.surface};
|
|
58
|
+
border: ${numToPx(core.borderWidth.small)} solid
|
|
59
|
+
${core.color.brand.forest};
|
|
60
|
+
border-radius: ${numToPx(core.radius.max)};
|
|
61
|
+
`;
|
|
62
|
+
});
|
|
63
|
+
const StyledIcon = styled(Icon)(({ theme: { semantic } }) => `
|
|
64
|
+
color: ${semantic.inverted.message.base};
|
|
65
|
+
`);
|
|
66
|
+
export const Notification = ({ variant = 'neutral', children, title, noMargin, dismissible, onDismiss, ref, ...rest }) => {
|
|
67
|
+
const [dismissed, setDismissed] = useState(false);
|
|
68
|
+
if (dismissed || (!title && !children)) {
|
|
69
|
+
return null;
|
|
70
|
+
}
|
|
71
|
+
return (_jsx(View, { ref: ref, ...rest, children: _jsxs(NotificationBox, { noMargin: noMargin, testID: "nb-notification", children: [_jsxs(NotificationTitleBox, { variant: variant, dismissible: dismissible, children: [_jsx(NotificationTitleText, { variant: variant, children: title }), dismissible ? (_jsx(DismissButton, { accessible: true, accessibilityLabel: "Dismiss", testID: "nb-notification-dismiss", onPress: () => {
|
|
72
|
+
setDismissed(true);
|
|
73
|
+
if (onDismiss) {
|
|
74
|
+
onDismiss();
|
|
75
|
+
}
|
|
76
|
+
}, children: _jsx(StyledIcon, { name: "cross", size: "16" }) })) : null] }), children ? (_jsx(NotificationContentBox, { "data-testid": "el-notification-box", children: children })) : null] }) }));
|
|
77
|
+
};
|
|
78
|
+
export const ErrorNotification = (props) => (_jsx(Notification, { variant: "error", ...props }));
|
|
79
|
+
export const SuccessNotification = (props) => (_jsx(Notification, { variant: "success", ...props }));
|
|
80
|
+
export const InfoNotification = (props) => (_jsx(Notification, { variant: "info", ...props }));
|
|
81
|
+
export const WarningNotification = (props) => (_jsx(Notification, { variant: "warning", ...props }));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Notification, ErrorNotification, InfoNotification, WarningNotification, SuccessNotification, } from './Notification';
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { Field } from '../Field';
|
|
3
|
+
import { NumberInput } from '../NumberInput';
|
|
4
|
+
export const NumberField = ({ ref, ...rest }) => {
|
|
5
|
+
return (_jsx(Field, { ...rest, children: _jsx(NumberInput, { ref: ref }) }));
|
|
6
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { NumberField } from './NumberField';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { NumberInput } from './NumberInput';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { numToPx } from '@ovotech/element-core';
|
|
3
|
+
import { useBreakpoint } from '../../hooks';
|
|
4
|
+
import styled, { css } from '../../styled.native';
|
|
5
|
+
const StyledP = styled.Text(({ theme: { core, semantic }, smallAndUp, inverted }) => css `
|
|
6
|
+
font-family: ${core.fontFamily.body.native};
|
|
7
|
+
font-size: ${numToPx(core.fontSize.body[smallAndUp ? 'large' : 'small'])};
|
|
8
|
+
line-height: ${numToPx(core.lineHeight.body[smallAndUp ? 'large' : 'small'])};
|
|
9
|
+
color: ${inverted ? semantic.inverted.message.base : semantic.message.base};
|
|
10
|
+
`);
|
|
11
|
+
export const P = (props) => {
|
|
12
|
+
const breakpoints = useBreakpoint();
|
|
13
|
+
return _jsx(StyledP, { ...props, ...breakpoints });
|
|
14
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { P } from './P';
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { Field } from '../Field';
|
|
3
|
+
import { PasswordInput } from '../PasswordInput';
|
|
4
|
+
export const PasswordField = ({ hasVisibilityToggle, ref, ...rest }) => {
|
|
5
|
+
return (_jsx(Field, { ...rest, children: _jsx(PasswordInput, { hasVisibilityToggle: hasVisibilityToggle, ref: ref }) }));
|
|
6
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { PasswordField } from './PasswordField';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { Input } from '../Input/Input';
|
|
3
|
+
import { PasswordVisibilityToggle, useTogglePasswordVisibility, } from './PasswordVisibilityToggle';
|
|
4
|
+
const PasswordInput = ({ hasVisibilityToggle, ...props }) => {
|
|
5
|
+
const { isPasswordVisible, handlePasswordVisibility } = useTogglePasswordVisibility();
|
|
6
|
+
return (_jsx(Input, { rightSlot: hasVisibilityToggle ? (_jsx(PasswordVisibilityToggle, { iconName: isPasswordVisible ? 'hide' : 'show', visibilityToggleLabel: isPasswordVisible ? 'Hide password' : 'Show password', handlePasswordVisibility: handlePasswordVisibility })) : null, keyboardType: "default", autoCapitalize: "none", autoCorrect: false, blurOnSubmit: false, secureTextEntry: !isPasswordVisible, ...props }));
|
|
7
|
+
};
|
|
8
|
+
export { PasswordInput };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { numToPx } from '@ovotech/element-core';
|
|
2
|
+
import { Pressable } from 'react-native';
|
|
3
|
+
import styled, { css } from '../../styled.native';
|
|
4
|
+
export const StyledPressable = styled(Pressable)(({ theme: { core }, focused, }) => {
|
|
5
|
+
return css `
|
|
6
|
+
display: flex;
|
|
7
|
+
align-items: center;
|
|
8
|
+
position: absolute;
|
|
9
|
+
width: ${numToPx(core.space[4])};
|
|
10
|
+
z-index: 1;
|
|
11
|
+
top: ${focused ? '16px' : '14px'};
|
|
12
|
+
right: ${numToPx(core.space[3])};
|
|
13
|
+
`;
|
|
14
|
+
});
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { useState } from 'react';
|
|
3
|
+
import { Icon } from '../Icon';
|
|
4
|
+
import { StyledPressable } from './PasswordInput.styled';
|
|
5
|
+
export const useTogglePasswordVisibility = () => {
|
|
6
|
+
const [isPasswordVisible, setIsPasswordVisible] = useState(false);
|
|
7
|
+
const handlePasswordVisibility = () => {
|
|
8
|
+
setIsPasswordVisible(!isPasswordVisible);
|
|
9
|
+
};
|
|
10
|
+
return {
|
|
11
|
+
isPasswordVisible,
|
|
12
|
+
handlePasswordVisibility,
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
export const PasswordVisibilityToggle = ({ iconName, visibilityToggleLabel, handlePasswordVisibility, }) => {
|
|
16
|
+
const [focused, setFocused] = useState(false);
|
|
17
|
+
return (_jsx(StyledPressable, { testID: "password-input-visibility-toggle", focused: focused, accessible: true, accessibilityRole: "button", accessibilityLabel: visibilityToggleLabel, onPress: handlePasswordVisibility, hitSlop: 16, onFocus: () => {
|
|
18
|
+
setFocused(true);
|
|
19
|
+
}, onBlur: () => {
|
|
20
|
+
setFocused(false);
|
|
21
|
+
}, children: _jsx(Icon, { name: iconName, size: 16, pointerEvents: "none" }) }));
|
|
22
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { PasswordInput } from './PasswordInput';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { PhoneField } from './PhoneField';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { PhoneInput } from './PhoneInput';
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import Animated, { Extrapolate, interpolate, interpolateColor, useAnimatedStyle, } from 'react-native-reanimated';
|
|
3
|
+
import styled, { useTheme } from '../../styled.native';
|
|
4
|
+
export function NavigationDots({ data, animatedValue, }) {
|
|
5
|
+
return (_jsx(SDotsContainer, { children: data.map((_, index) => (_jsx(Dot, { index: index, length: data.length, animatedValue: animatedValue }, index))) }));
|
|
6
|
+
}
|
|
7
|
+
const Dot = ({ animatedValue, index, length, width = 10 }) => {
|
|
8
|
+
const theme = useTheme();
|
|
9
|
+
const animatedStyle = useAnimatedStyle(() => {
|
|
10
|
+
let inputRange = [index - 1, index, index + 1];
|
|
11
|
+
let outputRange = [-width, 0, width];
|
|
12
|
+
if (index === 0 && animatedValue?.value > length - 1) {
|
|
13
|
+
inputRange = [length - 1, length, length + 1];
|
|
14
|
+
outputRange = [-width, 0, width];
|
|
15
|
+
}
|
|
16
|
+
const backgroundColor = interpolateColor(animatedValue?.value, inputRange, [
|
|
17
|
+
theme.core.color.brand.forest,
|
|
18
|
+
theme.core.color.brand.energised,
|
|
19
|
+
theme.core.color.brand.forest,
|
|
20
|
+
]);
|
|
21
|
+
return {
|
|
22
|
+
transform: [
|
|
23
|
+
{
|
|
24
|
+
translateX: interpolate(animatedValue?.value, inputRange, outputRange, Extrapolate.CLAMP),
|
|
25
|
+
},
|
|
26
|
+
],
|
|
27
|
+
backgroundColor,
|
|
28
|
+
};
|
|
29
|
+
}, [animatedValue, index, length]);
|
|
30
|
+
return (_jsx(SDot, { "$width": width, children: _jsx(SAnimatedDot, { style: animatedStyle }) }));
|
|
31
|
+
};
|
|
32
|
+
const SDotsContainer = styled.View `
|
|
33
|
+
position: absolute;
|
|
34
|
+
bottom: 20px;
|
|
35
|
+
flex-direction: row;
|
|
36
|
+
gap: 10px;
|
|
37
|
+
`;
|
|
38
|
+
const SDot = styled.View `
|
|
39
|
+
background-color: ${({ theme }) => theme.core.color.brand.forest};
|
|
40
|
+
width: ${({ $width }) => $width}px;
|
|
41
|
+
height: ${({ $width }) => $width}px;
|
|
42
|
+
border-radius: 50px;
|
|
43
|
+
overflow: hidden;
|
|
44
|
+
`;
|
|
45
|
+
const SAnimatedDot = styled(Animated.View) `
|
|
46
|
+
border-radius: 20px;
|
|
47
|
+
flex: 1;
|
|
48
|
+
`;
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { numToPx } from '@ovotech/element-core';
|
|
3
|
+
import { useRef } from 'react';
|
|
4
|
+
import { useWindowDimensions, View } from 'react-native';
|
|
5
|
+
import Animated, { Extrapolation, interpolate, useAnimatedStyle, useSharedValue, } from 'react-native-reanimated';
|
|
6
|
+
import Carousel from 'react-native-reanimated-carousel';
|
|
7
|
+
import Svg, { Path } from 'react-native-svg';
|
|
8
|
+
import { useBreakpoint } from '../../hooks';
|
|
9
|
+
import styled, { useTheme } from '../../styled.native';
|
|
10
|
+
import { Icon } from '../Icon';
|
|
11
|
+
import { NavigationDots } from './NavigationDots';
|
|
12
|
+
import { withAnchorPoint } from './anchor-point';
|
|
13
|
+
export function ProductCarousel({ data, children, width, height, fullWidth, showArrows = true, showDots = false, loop = true, arrowsDistanceFromTop, }) {
|
|
14
|
+
const theme = useTheme();
|
|
15
|
+
const { mediumAndUp } = useBreakpoint();
|
|
16
|
+
const carouselRef = useRef(null);
|
|
17
|
+
const progressValue = useSharedValue(0);
|
|
18
|
+
const windowWidth = useWindowDimensions().width;
|
|
19
|
+
const carouselWidth = fullWidth ? windowWidth : width || windowWidth;
|
|
20
|
+
return (_jsxs(View, { children: [mediumAndUp ? null : _jsx(SkewLine, {}), _jsxs(SCarouselContainer, { children: [_jsx(Carousel, { ref: carouselRef, data: data, renderItem: ({ item, animationValue }) => (_jsx(Card, { animationValue: animationValue, height: height, width: carouselWidth, children: children(item) })), vertical: false, width: carouselWidth, height: height, onProgressChange: (_, absoluteProgress) => (progressValue.value = absoluteProgress), panGestureHandlerProps: {
|
|
21
|
+
activeOffsetX: [-20, 20],
|
|
22
|
+
}, loop: loop, testID: "carousel", scrollAnimationDuration: 700 }), showArrows && data.length > 1 && (_jsxs(_Fragment, { children: [_jsx(SActionPressable, { onPress: () => carouselRef.current?.prev(), "$top": arrowsDistanceFromTop, mediumAndUp: mediumAndUp, hitSlop: {
|
|
23
|
+
top: 32,
|
|
24
|
+
bottom: 32,
|
|
25
|
+
left: 16,
|
|
26
|
+
right: 16,
|
|
27
|
+
}, children: _jsx(Icon, { name: "arrow-left", size: 32, color: theme.core.color.brand.white }) }), _jsx(SActionPressable, { "$next": true, onPress: () => carouselRef.current?.next(), "$top": arrowsDistanceFromTop, mediumAndUp: mediumAndUp, hitSlop: {
|
|
28
|
+
top: 32,
|
|
29
|
+
bottom: 32,
|
|
30
|
+
left: 16,
|
|
31
|
+
right: 16,
|
|
32
|
+
}, children: _jsx(Icon, { name: "arrow-right", size: 32, color: theme.core.color.brand.white }) })] })), showDots && data.length > 1 && (_jsx(NavigationDots, { data: data, animatedValue: progressValue }))] })] }));
|
|
33
|
+
}
|
|
34
|
+
const Card = ({ children, animationValue, height, width, }) => {
|
|
35
|
+
const WIDTH = width / 1.3;
|
|
36
|
+
const HEIGHT = height / 1.3;
|
|
37
|
+
const cardStyle = useAnimatedStyle(() => {
|
|
38
|
+
const scale = interpolate(animationValue.value, [-0.1, 0, 1], [0.95, 1, 1], Extrapolation.CLAMP);
|
|
39
|
+
const opacity = interpolate(animationValue.value, [-0.75, 0, 1], [0, 1, 0]);
|
|
40
|
+
const translateX = interpolate(animationValue.value, [-1, -0.2, 0, 1], [0, WIDTH * 0.3, 0, 0]);
|
|
41
|
+
const transform = {
|
|
42
|
+
transform: [
|
|
43
|
+
{ scale },
|
|
44
|
+
{ translateX },
|
|
45
|
+
{ perspective: 200 },
|
|
46
|
+
{
|
|
47
|
+
rotateY: `${interpolate(animationValue.value, [-1, 0, 0.4, 1], [30, 0, -25, -25], Extrapolation.CLAMP)}deg`,
|
|
48
|
+
},
|
|
49
|
+
],
|
|
50
|
+
};
|
|
51
|
+
return {
|
|
52
|
+
...withAnchorPoint(transform, { x: 0.5, y: 0.5 }, { width: WIDTH, height: HEIGHT }),
|
|
53
|
+
opacity,
|
|
54
|
+
};
|
|
55
|
+
}, []);
|
|
56
|
+
return (_jsx(Animated.View, { style: {
|
|
57
|
+
flex: 1,
|
|
58
|
+
justifyContent: 'center',
|
|
59
|
+
alignItems: 'center',
|
|
60
|
+
}, children: _jsx(Animated.View, { style: [
|
|
61
|
+
{
|
|
62
|
+
width: WIDTH,
|
|
63
|
+
height: HEIGHT,
|
|
64
|
+
},
|
|
65
|
+
cardStyle,
|
|
66
|
+
], children: children }) }));
|
|
67
|
+
};
|
|
68
|
+
const SCarouselContainer = styled.View `
|
|
69
|
+
align-items: center;
|
|
70
|
+
background-color: #0a9828;
|
|
71
|
+
overflow: hidden;
|
|
72
|
+
margin-top: -0.5px;
|
|
73
|
+
`;
|
|
74
|
+
const SActionPressable = styled.Pressable `
|
|
75
|
+
position: absolute;
|
|
76
|
+
top: ${({ $top }) => ($top ? `${$top}px` : '30%')};
|
|
77
|
+
${({ theme, $next, mediumAndUp }) => $next
|
|
78
|
+
? `right: ${mediumAndUp ? '25%' : numToPx(theme.core.space[14])}`
|
|
79
|
+
: `left: ${mediumAndUp ? '25%' : numToPx(theme.core.space[14])}`};
|
|
80
|
+
`;
|
|
81
|
+
const SkewLine = (props) => (_jsx(Svg, { width: "100%", height: 69, ...props, children: _jsx(Path, { fill: "#0A9828", d: "M768 0 0 68.776h768V0Z" }) }));
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
const isValidSize = (size) => {
|
|
2
|
+
'worklet';
|
|
3
|
+
return size && size.width > 0 && size.height > 0;
|
|
4
|
+
};
|
|
5
|
+
const defaultAnchorPoint = { x: 0.5, y: 0.5 };
|
|
6
|
+
export const withAnchorPoint = (transform, anchorPoint, size) => {
|
|
7
|
+
'worklet';
|
|
8
|
+
if (!isValidSize(size))
|
|
9
|
+
return transform;
|
|
10
|
+
let injectedTransform = transform.transform;
|
|
11
|
+
if (!injectedTransform)
|
|
12
|
+
return transform;
|
|
13
|
+
if (anchorPoint.x !== defaultAnchorPoint.x && size.width) {
|
|
14
|
+
const shiftTranslateX = [];
|
|
15
|
+
// shift before rotation
|
|
16
|
+
shiftTranslateX.push({
|
|
17
|
+
translateX: size.width * (anchorPoint.x - defaultAnchorPoint.x),
|
|
18
|
+
});
|
|
19
|
+
injectedTransform = [
|
|
20
|
+
...shiftTranslateX,
|
|
21
|
+
...injectedTransform,
|
|
22
|
+
];
|
|
23
|
+
// shift after rotation
|
|
24
|
+
injectedTransform.push({
|
|
25
|
+
translateX: size.width * (defaultAnchorPoint.x - anchorPoint.x),
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
if (!Array.isArray(injectedTransform))
|
|
29
|
+
return { transform: injectedTransform };
|
|
30
|
+
if (anchorPoint.y !== defaultAnchorPoint.y && size.height) {
|
|
31
|
+
const shiftTranslateY = [];
|
|
32
|
+
// shift before rotation
|
|
33
|
+
shiftTranslateY.push({
|
|
34
|
+
translateY: size.height * (anchorPoint.y - defaultAnchorPoint.y),
|
|
35
|
+
});
|
|
36
|
+
injectedTransform = [...shiftTranslateY, ...injectedTransform];
|
|
37
|
+
// shift after rotation
|
|
38
|
+
injectedTransform.push({
|
|
39
|
+
translateY: size.height * (defaultAnchorPoint.y - anchorPoint.y),
|
|
40
|
+
});
|
|
41
|
+
}
|
|
42
|
+
return { transform: injectedTransform };
|
|
43
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { ProductCarousel } from './ProductCarousel';
|