@ovotech/element-native 5.3.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/d.d.ts +4 -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/Button/Button.js +2 -1
- package/dist/esm/src/components/Button/Button.styles.js +4 -1
- package/dist/esm/src/components/CurrencyField/CurrencyField.js +2 -2
- package/dist/esm/src/components/EmailField/EmailField.js +2 -2
- package/dist/esm/src/components/Grid/Col.js +14 -12
- package/dist/esm/src/components/Grid/Row.js +6 -10
- package/dist/esm/src/components/Heading/Heading.js +1 -1
- package/dist/esm/src/components/NavHeader/NavHeader.js +126 -29
- package/dist/esm/src/components/NavHeader/NavHeader.styles.js +84 -54
- package/dist/esm/src/components/NavHeader/NavHeaderComponents/ActionButtons.js +12 -0
- package/dist/esm/src/components/NavHeader/NavHeaderComponents/NavButton.js +23 -0
- package/dist/esm/src/components/NavHeader/NavHeaderComponents/StepCounterBars.js +5 -0
- package/dist/esm/src/components/NavHeader/utils.js +23 -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/PasswordField/PasswordField.js +2 -2
- package/dist/esm/src/components/PasswordInput/PasswordInput.js +1 -1
- package/dist/esm/src/components/PhoneField/PhoneField.js +2 -2
- package/dist/esm/src/components/ScreenView/ScreenView.js +33 -0
- package/dist/esm/src/components/ScreenView/index.js +1 -0
- package/dist/esm/src/components/SegmentedControls/components/SegmentButton.js +1 -1
- package/dist/esm/src/components/SelectField/Select.js +5 -4
- package/dist/esm/src/components/SelectField/SelectField.js +1 -1
- package/dist/esm/src/components/TextField/TextField.js +2 -2
- package/dist/esm/src/components/TextInput/TextInput.js +1 -1
- package/dist/esm/src/components/TextareaField/TextareaField.js +2 -2
- package/dist/esm/src/components/Toggle/styles.js +1 -1
- package/dist/esm/src/components/index.js +2 -0
- package/dist/esm/src/hooks/index.js +1 -1
- package/dist/esm/src/hooks/use-full-width.js +1 -1
- 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/Button/Button.d.ts +3 -2
- package/dist/src/components/Button/Button.js +2 -1
- package/dist/src/components/Button/Button.styles.d.ts +1 -1
- package/dist/src/components/Button/Button.styles.js +4 -1
- package/dist/src/components/Cards/IconDataCard/IconDataCard.styles.d.ts +2 -2
- package/dist/src/components/Cards/LinkTextCard/LinkTextCard.styles.d.ts +1 -1
- package/dist/src/components/CurrencyField/CurrencyField.d.ts +1 -1
- package/dist/src/components/CurrencyField/CurrencyField.js +2 -2
- package/dist/src/components/EmailField/EmailField.d.ts +1 -1
- package/dist/src/components/EmailField/EmailField.js +2 -2
- package/dist/src/components/Grid/Col.js +14 -12
- package/dist/src/components/Grid/Row.js +6 -10
- package/dist/src/components/Heading/Heading.d.ts +3 -1
- package/dist/src/components/Heading/Heading.js +1 -1
- package/dist/src/components/NavHeader/NavHeader.d.ts +24 -21
- package/dist/src/components/NavHeader/NavHeader.js +126 -29
- package/dist/src/components/NavHeader/NavHeader.styles.d.ts +2320 -20
- package/dist/src/components/NavHeader/NavHeader.styles.js +84 -54
- package/dist/src/components/NavHeader/NavHeaderComponents/ActionButtons.d.ts +3 -0
- package/dist/src/components/NavHeader/NavHeaderComponents/ActionButtons.js +12 -0
- package/dist/src/components/NavHeader/NavHeaderComponents/NavButton.d.ts +11 -0
- package/dist/src/components/NavHeader/NavHeaderComponents/NavButton.js +23 -0
- package/dist/src/components/NavHeader/NavHeaderComponents/StepCounterBars.d.ts +7 -0
- package/dist/src/components/NavHeader/NavHeaderComponents/StepCounterBars.js +5 -0
- package/dist/src/components/NavHeader/utils.d.ts +9 -0
- package/dist/src/components/NavHeader/utils.js +23 -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/PasswordField/PasswordField.d.ts +1 -1
- package/dist/src/components/PasswordField/PasswordField.js +2 -2
- package/dist/src/components/PasswordInput/PasswordInput.js +1 -1
- package/dist/src/components/PhoneField/PhoneField.d.ts +1 -1
- package/dist/src/components/PhoneField/PhoneField.js +2 -2
- package/dist/src/components/ScreenView/ScreenView.d.ts +5 -0
- package/dist/src/components/ScreenView/ScreenView.js +33 -0
- package/dist/src/components/ScreenView/index.d.ts +1 -0
- package/dist/src/components/ScreenView/index.js +1 -0
- package/dist/src/components/SegmentedControls/components/SegmentButton.js +1 -1
- package/dist/src/components/SelectField/Select.d.ts +3 -1
- package/dist/src/components/SelectField/Select.js +5 -4
- package/dist/src/components/SelectField/SelectField.d.ts +4 -1
- package/dist/src/components/SelectField/SelectField.js +1 -1
- package/dist/src/components/TextField/TextField.d.ts +1 -1
- package/dist/src/components/TextField/TextField.js +2 -2
- package/dist/src/components/TextInput/TextInput.d.ts +5 -3
- package/dist/src/components/TextInput/TextInput.js +1 -1
- package/dist/src/components/TextareaField/TextareaField.d.ts +1 -1
- package/dist/src/components/TextareaField/TextareaField.js +2 -2
- package/dist/src/components/Toggle/styles.js +1 -1
- package/dist/src/components/index.d.ts +2 -0
- package/dist/src/components/index.js +2 -0
- package/dist/src/hooks/index.d.ts +1 -1
- package/dist/src/hooks/index.js +1 -1
- package/dist/src/hooks/use-full-width.js +1 -1
- 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 +2 -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
- /package/dist/esm/src/hooks/{use-breakpoint.js → use-breakpoint.native.js} +0 -0
- /package/dist/src/hooks/{use-breakpoint.d.ts → use-breakpoint.native.d.ts} +0 -0
- /package/dist/src/hooks/{use-breakpoint.js → use-breakpoint.native.js} +0 -0
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import Svg, { Path } from 'react-native-svg';
|
|
3
|
+
export const Star = (props) => (_jsx(Svg, { viewBox: "0 0 16 16", ...props, children: _jsx(Path, { fill: "currentColor", d: "m8 5.013.782 1.394.303.539.595.169 1.752.499-1.037.904-.642.56.153.839.279 1.529-1.553-.721L8 10.43l-.632.294-1.553.721.279-1.53.153-.838-.642-.56-1.037-.905 1.752-.498.595-.169.303-.54L8 5.014ZM8 1.95 5.91 5.672 1.5 6.925l3.118 2.723-.799 4.38L8 12.085l4.18 1.942-.798-4.38 3.118-2.72-4.41-1.255-2.09-3.723H8Z" }) }));
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import Svg, { Path } from 'react-native-svg';
|
|
3
|
+
export const StarFilled = (props) => (_jsx(Svg, { viewBox: "0 0 16 16", ...props, children: _jsx(Path, { fill: "currentColor", d: "M8 1.948v.001l2.089 3.722 4.41 1.255-3.118 2.72.799 4.38L8 12.085l-4.18 1.943.798-4.38L1.5 6.924l4.41-1.253L8 1.95h-.001H8Z" }) }));
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import Svg, { Path } from 'react-native-svg';
|
|
3
|
+
export const Sun = (props) => (_jsx(Svg, { viewBox: "0 0 16 16", ...props, children: _jsx(Path, { fill: "currentColor", fillRule: "evenodd", d: "M8.75 1.5h-1.5v1.418h1.5V1.5Zm2.079 3.671A3.987 3.987 0 0 0 8 4a4 4 0 1 0 2.829 1.171ZM9.768 9.768c-.472.473-1.1.732-1.768.732-.667 0-1.295-.26-1.768-.732A2.484 2.484 0 0 1 5.5 8c0-.668.26-1.296.733-1.769A2.484 2.484 0 0 1 8.001 5.5c.667 0 1.295.26 1.768.731.472.473.732 1.1.732 1.769 0 .668-.26 1.295-.733 1.768ZM1.5 7.239h1.43v1.5H1.5v-1.5Zm5.75 5.821V14.5h1.5v-1.441h-1.5Zm5.82-5.82h1.43v1.5h-1.43v-1.5Zm-1.049-4.332-.966.966 1.061 1.06.966-.965-1.06-1.061Zm-9.103 1.06 1.06-1.06.967.966-1.061 1.06-.966-.966Zm.966 7.077-.966.966 1.061 1.06.966-.966-1.06-1.06Zm7.171 1.06 1.06-1.06.967.965-1.061 1.061-.966-.966Z", clipRule: "evenodd" }) }));
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import Svg, { Path } from 'react-native-svg';
|
|
3
|
+
export const Torch = (props) => (_jsxs(Svg, { viewBox: "0 0 16 16", ...props, children: [_jsx(Path, { fill: "currentColor", d: "M4.728 14V6.714L3.016 5.012 3 1h10v4.012L11.273 6.73v6.173l-1.5-.402L9.37 14H4.726ZM11.5 3.494V2.5H4.506l.004.994h6.99ZM9.773 12.5V6.105l.442-.44.675-.671H5.124l.66.656.442.44v6.41h3.547Z" }), _jsx(Path, { fill: "currentColor", d: "M7 10V8h2v2H7Z" })] }));
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import Svg, { Path } from 'react-native-svg';
|
|
3
|
+
export const Trees = (props) => (_jsx(Svg, { viewBox: "0 0 16 16", ...props, children: _jsx(Path, { fill: "currentColor", fillRule: "evenodd", d: "M9.755 2.7a3.093 3.093 0 0 1 3.043 2.542 3.093 3.093 0 0 1-2.047 5.785V14.5h-1.5v-2.877a3.093 3.093 0 0 1-2.565-5.456A3.093 3.093 0 0 1 9.755 2.7Zm1.218 6.836A1.595 1.595 0 0 0 13 8.003c0-.604-.336-1.149-.877-1.422l-.669-.337-.133-.737A1.589 1.589 0 0 0 9.755 4.2a1.595 1.595 0 0 0-1.58 1.787l.1.838-.664.522A1.585 1.585 0 0 0 7 8.599a1.595 1.595 0 0 0 2.25 1.453V7.89l1.5-.402v1.984l.223.063Zm-6.264.422.218-.18a3.71 3.71 0 0 0 1.472 1.945v2.788h-1.5v-2.96a2.543 2.543 0 0 1-2.424-4.397 2.543 2.543 0 0 1 3.662-2.582 3.689 3.689 0 0 0-.225 1.19l-.003.196-.135.14a.922.922 0 0 0-.011.012l-.011.012a1.043 1.043 0 0 0-1.788.851l.101.838-.664.521a1.045 1.045 0 1 0 1.308 1.626Z", clipRule: "evenodd" }) }));
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import Svg, { Path } from 'react-native-svg';
|
|
3
|
+
export const Tune = (props) => (_jsx(Svg, { viewBox: "0 0 16 16", ...props, children: _jsx(Path, { fill: "currentColor", fillRule: "evenodd", d: "m4 1.485-1.5.405V4.5h-1V6H5V4.5H4V1.485Zm3.25.42 1.5-.405v8.75h1v1.5h-3.5v-1.5h1V1.905Zm1.5 12.19-1.5.405v-1.75h1.5v1.345Zm3.25.39 1.5-.405V9.75H12v4.735Zm-8-.405-1.5.405V7H4v7.08Zm9.5-12.595V7.25h1v1.5H11v-1.5h1V1.89l1.5-.405Z", clipRule: "evenodd" }) }));
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import Svg, { Path } from 'react-native-svg';
|
|
3
|
+
export const User = (props) => (_jsx(Svg, { viewBox: "0 0 16 16", ...props, children: _jsx(Path, { fill: "currentColor", fillRule: "evenodd", d: "M11.255 4.756a3.255 3.255 0 1 1-6.51 0 3.255 3.255 0 0 1 6.51 0Zm-1.5 0C9.755 3.786 8.968 3 8 3c-.968 0-1.755.788-1.755 1.755 0 .968.787 1.756 1.755 1.756.968 0 1.755-.788 1.755-1.756ZM14.5 9.979v2.619l-1.5.401v-1.865L8 9.813l-5 1.321V13h9.999l.402 1.5H1.5V9.979L8 8.262l6.5 1.717Z", clipRule: "evenodd" }) }));
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import Svg, { Path } from 'react-native-svg';
|
|
3
|
+
export const UserFilled = (props) => (_jsx(Svg, { viewBox: "0 0 16 16", ...props, children: _jsx(Path, { fill: "currentColor", fillRule: "evenodd", d: "M11.255 4.756a3.255 3.255 0 1 1-6.51 0 3.255 3.255 0 0 1 6.51 0ZM14.5 14.5V9.979L8 8.262 1.5 9.979V14.5h13Zm0 0L12.999 13H3h10v-.001l1.5 1.501Z", clipRule: "evenodd" }) }));
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import Svg, { Path } from 'react-native-svg';
|
|
3
|
+
export const Wallet = (props) => (_jsx(Svg, { viewBox: "0 0 16 16", ...props, children: _jsx(Path, { fill: "currentColor", fillRule: "evenodd", d: "M14.5 3.025v8.073L13 11.5V4.525H9.126l-.003.013-.049-.013H3V11.5h10l.402 1.5H1.5V3.025h1.651l.41-1.53 5.71 1.53H14.5Zm-4.38 4.447 1.438-.381.381 1.437-1.437.381-.382-1.437Z", clipRule: "evenodd" }) }));
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import Svg, { Path } from 'react-native-svg';
|
|
3
|
+
export const WalletFilled = (props) => (_jsx(Svg, { viewBox: "0 0 21 20", ...props, children: _jsx(Path, { fill: "currentColor", d: "M18.325 3.781h-6.537L4.65 1.87 4.137 3.78H2.075V16.25h16.25V3.781ZM14.65 8.863l.475 1.793-1.794.475-.475-1.793 1.794-.475Z" }) }));
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import Svg, { Path } from 'react-native-svg';
|
|
3
|
+
export const WarmHome = (props) => (_jsxs(Svg, { viewBox: "0 0 16 16", ...props, children: [_jsx(Path, { fill: "currentColor", d: "m13 13 1.5-.402V5L8 1.5 1.5 5v9.5h11.902L13 13Zm0 0H3V5.896l5-2.692 5 2.692V13Z" }), _jsx(Path, { fill: "currentColor", d: "m9.604 11.804-.452-.599c-.406-.539-.928-1.878.004-3.091.497-.647-.024-1.444-.029-1.452L8.71 6.04l1.248-.833.416.623c.42.628.886 2.009-.029 3.199a.934.934 0 0 0-.179.855c.061.24.182.417.184.419l.451.598-1.197.903v.001ZM6.102 11.804l-.452-.599c-.405-.539-.928-1.878.004-3.091.498-.647-.023-1.444-.029-1.452L5.21 6.04l1.248-.833.416.623c.42.628.885 2.009-.029 3.199a.934.934 0 0 0-.179.855c.06.24.182.417.183.419l.452.598-1.198.903v.001Z" })] }));
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import Svg, { Path } from 'react-native-svg';
|
|
3
|
+
export const Warning = (props) => (_jsx(Svg, { viewBox: "0 0 16 16", ...props, children: _jsx(Path, { fill: "currentColor", fillRule: "evenodd", d: "M1.5 8a6.5 6.5 0 1 1 13 0 6.5 6.5 0 0 1-13 0ZM3 8c0 2.757 2.243 5 5 5s5-2.243 5-5-2.243-5-5-5-5 2.243-5 5Zm5.56 1.275.35-4.87H7.09l.35 4.87h1.12Zm-.02.46-1.47.39.39 1.47 1.47-.39-.39-1.47Z", clipRule: "evenodd" }) }));
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import Svg, { Path } from 'react-native-svg';
|
|
3
|
+
export const WebAddress = (props) => (_jsx(Svg, { viewBox: "0 0 16 16", ...props, children: _jsx(Path, { fill: "currentColor", d: "m11.644 10.805-.848.848-1.737-1.738-1.061-1.06-1.061 1.06-.244.244-1.41-4.873 4.885 1.399-.261.26-1.061 1.061 1.06 1.061 1.737 1.736.776-1.345-1.452-1.452 2.062-2.062-9.94-2.847 2.869 9.918 2.04-2.039 2.798 2.798 2.193-2.193-1.345-.776Z" }) }));
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import Svg, { Path } from 'react-native-svg';
|
|
3
|
+
export const WindPower = (props) => (_jsx(Svg, { viewBox: "0 0 16 16", ...props, children: _jsx(Path, { fill: "currentColor", d: "m9.548 8.401 3.674.029.344-.595-3.962-1.062A1.617 1.617 0 0 0 8.4 5.385v-.65L6.588 1.539h-.687l1.108 4.137a1.611 1.611 0 0 0-.592 1.585l-.555.32L4 10.748l.344.596 2.914-2.915-1.018 6.043h3.52L8.733 8.383c.13-.066.25-.15.356-.247l.458.264v.001Zm-2.125 5.072L8 10.048l.577 3.425H7.423ZM8.54 7.238a.614.614 0 0 1-.419.312l-.026.004a.613.613 0 1 1 .446-.316Z" }) }));
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
export * from './Address';
|
|
2
|
+
export * from './Advice';
|
|
3
|
+
export * from './Archive';
|
|
4
|
+
export * from './ArrowDown';
|
|
5
|
+
export * from './ArrowLeft';
|
|
6
|
+
export * from './ArrowRight';
|
|
7
|
+
export * from './ArrowUp';
|
|
8
|
+
export * from './Award';
|
|
9
|
+
export * from './Battery';
|
|
10
|
+
export * from './CalBook';
|
|
11
|
+
export * from './Cal';
|
|
12
|
+
export * from './CaretArrowDown';
|
|
13
|
+
export * from './CaretArrowLeft';
|
|
14
|
+
export * from './CaretArrowRight';
|
|
15
|
+
export * from './CaretArrowUp';
|
|
16
|
+
export * from './CaretDown';
|
|
17
|
+
export * from './CaretLeft';
|
|
18
|
+
export * from './CaretRight';
|
|
19
|
+
export * from './CaretUp';
|
|
20
|
+
export * from './ChartFilled';
|
|
21
|
+
export * from './Chart';
|
|
22
|
+
export * from './CheckCircle';
|
|
23
|
+
export * from './Check';
|
|
24
|
+
export * from './ChevronDown';
|
|
25
|
+
export * from './ChevronLeftSmallFirst';
|
|
26
|
+
export * from './ChevronLeftSmall';
|
|
27
|
+
export * from './ChevronLeft';
|
|
28
|
+
export * from './ChevronRightSmallLast';
|
|
29
|
+
export * from './ChevronRightSmall';
|
|
30
|
+
export * from './ChevronRight';
|
|
31
|
+
export * from './ChevronUp';
|
|
32
|
+
export * from './Circle';
|
|
33
|
+
export * from './CloseCircle';
|
|
34
|
+
export * from './Cross';
|
|
35
|
+
export * from './Doc';
|
|
36
|
+
export * from './Dollar';
|
|
37
|
+
export * from './Download';
|
|
38
|
+
export * from './EcoHome';
|
|
39
|
+
export * from './Eco';
|
|
40
|
+
export * from './Edit';
|
|
41
|
+
export * from './ElectricCar';
|
|
42
|
+
export * from './ElectricHome';
|
|
43
|
+
export * from './Electricity';
|
|
44
|
+
export * from './EnergyAdvice';
|
|
45
|
+
export * from './Equals';
|
|
46
|
+
export * from './Euro';
|
|
47
|
+
export * from './Gas';
|
|
48
|
+
export * from './GlobeAddress';
|
|
49
|
+
export * from './HelpFilled';
|
|
50
|
+
export * from './Help';
|
|
51
|
+
export * from './Hide';
|
|
52
|
+
export * from './HomeFilled';
|
|
53
|
+
export * from './Home';
|
|
54
|
+
export * from './HydroPower';
|
|
55
|
+
export * from './Info';
|
|
56
|
+
export * from './Link';
|
|
57
|
+
export * from './Logo';
|
|
58
|
+
export * from './MailOpen';
|
|
59
|
+
export * from './Mail';
|
|
60
|
+
export * from './Menu';
|
|
61
|
+
export * from './MessageFilled';
|
|
62
|
+
export * from './Message';
|
|
63
|
+
export * from './Minus';
|
|
64
|
+
export * from './Mobile';
|
|
65
|
+
export * from './NewWindow';
|
|
66
|
+
export * from './PaymentCardFilled';
|
|
67
|
+
export * from './PaymentCard';
|
|
68
|
+
export * from './Phone';
|
|
69
|
+
export * from './Plus';
|
|
70
|
+
export * from './Pound';
|
|
71
|
+
export * from './PricingFilled';
|
|
72
|
+
export * from './Pricing';
|
|
73
|
+
export * from './Search';
|
|
74
|
+
export * from './Security';
|
|
75
|
+
export * from './ShopFilled';
|
|
76
|
+
export * from './Shop';
|
|
77
|
+
export * from './Show';
|
|
78
|
+
export * from './SmartHome';
|
|
79
|
+
export * from './SmartMeter';
|
|
80
|
+
export * from './Solar';
|
|
81
|
+
export * from './StarFilled';
|
|
82
|
+
export * from './Star';
|
|
83
|
+
export * from './Sun';
|
|
84
|
+
export * from './Torch';
|
|
85
|
+
export * from './Trees';
|
|
86
|
+
export * from './Tune';
|
|
87
|
+
export * from './UserFilled';
|
|
88
|
+
export * from './User';
|
|
89
|
+
export * from './Wallet';
|
|
90
|
+
export * from './WarmHome';
|
|
91
|
+
export * from './Warning';
|
|
92
|
+
export * from './WebAddress';
|
|
93
|
+
export * from './WindPower';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { useBreakpoint } from '../../hooks';
|
|
3
3
|
import { StyledButtonIcon, StyledButtonText, StyledButtonWrapper, StyledInner, } from './Button.styles';
|
|
4
|
-
const
|
|
4
|
+
export const DEFAULT_BUTTON_VARIANT = 'surface';
|
|
5
|
+
const Button = ({ iconLeft, iconRight, children, fullWidth = false, variant = DEFAULT_BUTTON_VARIANT, inverted = false, size = 'default', accessibilityRole = 'button', activeOpacity = 0.8, ref, ...rest }) => {
|
|
5
6
|
const { smallAndUp } = useBreakpoint();
|
|
6
7
|
const isIconOnly = !children;
|
|
7
8
|
const iconSizes = {
|
|
@@ -94,7 +94,10 @@ const getBorderColor = (theme, variant, inverted) => {
|
|
|
94
94
|
if (variant === 'outline-variant') {
|
|
95
95
|
return button.surface.color.bgVariant;
|
|
96
96
|
}
|
|
97
|
-
|
|
97
|
+
if (inverted) {
|
|
98
|
+
return button.surface.color.bgInverted;
|
|
99
|
+
}
|
|
100
|
+
return button[variant].color.bg;
|
|
98
101
|
};
|
|
99
102
|
const getIconColor = (theme, inverted, variant) => {
|
|
100
103
|
const button = theme.button;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { CurrencyInput } from '../CurrencyInput';
|
|
3
3
|
import { Field } from '../Field';
|
|
4
|
-
export const CurrencyField = ({ ...props }) => {
|
|
5
|
-
return (_jsx(Field, { affixWidth: 40, ...props, children: _jsx(CurrencyInput, { ref:
|
|
4
|
+
export const CurrencyField = ({ ref, ...props }) => {
|
|
5
|
+
return (_jsx(Field, { affixWidth: 40, ...props, children: _jsx(CurrencyInput, { ref: ref }) }));
|
|
6
6
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { EmailInput } from '../EmailInput';
|
|
3
3
|
import { Field } from '../Field';
|
|
4
|
-
export const EmailField = ({ ...rest }) => {
|
|
5
|
-
return (_jsx(Field, { ...rest, children: _jsx(EmailInput, {}) }));
|
|
4
|
+
export const EmailField = ({ ref, ...rest }) => {
|
|
5
|
+
return (_jsx(Field, { ...rest, children: _jsx(EmailInput, { ref: ref }) }));
|
|
6
6
|
};
|
|
@@ -1,25 +1,27 @@
|
|
|
1
1
|
import { numToPx } from '@ovotech/element-core';
|
|
2
2
|
import styled, { css } from '../../styled.native';
|
|
3
3
|
import { styledComponentWithBreakpoints } from '../../utils';
|
|
4
|
-
const StyledCol = styled.View(({ theme, span
|
|
4
|
+
const StyledCol = styled.View(({ theme, span, xsmallAndUp, small, smallAndUp, medium, mediumAndUp }) => {
|
|
5
5
|
const COLS = 12;
|
|
6
|
-
const gutter = mediumAndUp ? theme.space[
|
|
7
|
-
const percentage = (span / COLS) * 100;
|
|
6
|
+
const gutter = mediumAndUp ? theme.space[600] : theme.space[400];
|
|
7
|
+
const percentage = span ? (span / COLS) * 100 : 100;
|
|
8
8
|
const smallPercentage = small ? (small / COLS) * 100 : percentage;
|
|
9
9
|
const mediumPercentage = medium ? (medium / COLS) * 100 : smallPercentage;
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
10
|
+
let maxWidth;
|
|
11
|
+
if (mediumAndUp) {
|
|
12
|
+
maxWidth = mediumPercentage;
|
|
13
|
+
}
|
|
14
|
+
else if (smallAndUp || xsmallAndUp) {
|
|
15
|
+
maxWidth = span ? 50 : 100;
|
|
16
|
+
}
|
|
17
|
+
else {
|
|
18
|
+
maxWidth = 100;
|
|
19
|
+
}
|
|
18
20
|
return css `
|
|
19
21
|
flex: 0 0 auto;
|
|
20
22
|
padding-left: ${numToPx(gutter / 2)};
|
|
21
23
|
padding-right: ${numToPx(gutter / 2)};
|
|
22
|
-
margin-bottom: ${numToPx(
|
|
24
|
+
margin-bottom: ${numToPx(theme.space[smallAndUp ? 800 : 600])};
|
|
23
25
|
max-width: ${maxWidth}%;
|
|
24
26
|
width: 100%;
|
|
25
27
|
`;
|
|
@@ -1,23 +1,19 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { numToPx } from '
|
|
2
|
+
import { numToPx } from '../..';
|
|
3
3
|
import styled, { css } from '../../styled.native';
|
|
4
4
|
import { styledComponentWithBreakpoints } from '../../utils';
|
|
5
5
|
const StyledRow = styled.View(({ theme, isNested, smallAndUp, mediumAndUp }) => {
|
|
6
|
-
const
|
|
7
|
-
const
|
|
8
|
-
/* We need to make up for the half gutter that is added to the left and right of a column, between the small and medium breakpoints */
|
|
9
|
-
const additionalMargin = smallAndUp ? (margin - gutter) / 2 : 0;
|
|
6
|
+
const rowGap = mediumAndUp || smallAndUp ? theme.space[800] : theme.space[600];
|
|
7
|
+
const colGap = mediumAndUp ? theme.space[600] : theme.space[400];
|
|
10
8
|
return css `
|
|
11
|
-
padding-left: ${numToPx(margin / 2 + additionalMargin)};
|
|
12
|
-
padding-right: ${numToPx(margin / 2 + additionalMargin)};
|
|
13
9
|
margin: 0 auto;
|
|
14
|
-
max-width: ${theme.breakpoint.large +
|
|
10
|
+
max-width: ${theme.breakpoint.large + rowGap}px;
|
|
15
11
|
width: 100%;
|
|
16
12
|
|
|
17
13
|
${isNested
|
|
18
14
|
? `
|
|
19
|
-
margin-left: -${numToPx(
|
|
20
|
-
margin-right: -${numToPx(
|
|
15
|
+
margin-left: -${numToPx(colGap / 2)};
|
|
16
|
+
margin-right: -${numToPx(colGap / 2)};
|
|
21
17
|
width: auto;
|
|
22
18
|
max-width: 200%; /* max width none not supported in RN */
|
|
23
19
|
`
|
|
@@ -21,7 +21,7 @@ const StyledHeading = styled.Text(({ theme, smallAndUp, inverted, level, variant
|
|
|
21
21
|
color: ${color};
|
|
22
22
|
`;
|
|
23
23
|
});
|
|
24
|
-
const Heading = ({ accessibilityRole = 'header', ...rest }) => {
|
|
24
|
+
export const Heading = ({ accessibilityRole = 'header', ...rest }) => {
|
|
25
25
|
const breakpoints = useBreakpoint();
|
|
26
26
|
return (_jsx(StyledHeading, { accessible: true, accessibilityRole: accessibilityRole, ...breakpoints, ...rest }));
|
|
27
27
|
};
|
|
@@ -1,33 +1,130 @@
|
|
|
1
|
-
import { jsx as _jsx,
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
+
import { useEffect, useMemo } from 'react';
|
|
3
|
+
import { Platform } from 'react-native';
|
|
4
|
+
import { ComplexAnimationBuilder, Easing, FadeInUp, LinearTransition, useAnimatedStyle, useSharedValue, withTiming, } from 'react-native-reanimated';
|
|
5
|
+
import { useBreakpoint } from '../../hooks';
|
|
6
|
+
import { Heading, Heading2, Heading3, Heading4, } from '../Heading/Heading';
|
|
7
|
+
import { P } from '../P';
|
|
8
|
+
import { Strong } from '../Strong';
|
|
9
|
+
import { HeaderContainer, NavBackButton, NavContainer, ShadowContainer, SideContainer, SkeletonNavHeading, TitleContainer, } from './NavHeader.styles';
|
|
10
|
+
import { ActionButtons } from './NavHeaderComponents/ActionButtons';
|
|
11
|
+
import { StepCounterBars } from './NavHeaderComponents/StepCounterBars';
|
|
12
|
+
import { getTitleLength } from './utils';
|
|
13
|
+
const baseStyle = {
|
|
14
|
+
hasDropShadow: false,
|
|
15
|
+
isCollapsed: false,
|
|
16
|
+
};
|
|
17
|
+
const hasDropShadowOnly = {
|
|
18
|
+
hasDropShadow: true,
|
|
19
|
+
isCollapsed: false,
|
|
20
|
+
};
|
|
21
|
+
const isCollapsedAndDropShadow = {
|
|
22
|
+
hasDropShadow: true,
|
|
23
|
+
isCollapsed: true,
|
|
24
|
+
};
|
|
25
|
+
const scrollStyleMap = {
|
|
26
|
+
0: {
|
|
27
|
+
initial: baseStyle,
|
|
28
|
+
scrollStart: baseStyle,
|
|
29
|
+
scrolling: isCollapsedAndDropShadow,
|
|
30
|
+
scrollBack: hasDropShadowOnly,
|
|
31
|
+
},
|
|
32
|
+
1: {
|
|
33
|
+
initial: baseStyle,
|
|
34
|
+
scrollStart: hasDropShadowOnly,
|
|
35
|
+
scrolling: isCollapsedAndDropShadow,
|
|
36
|
+
scrollBack: hasDropShadowOnly,
|
|
37
|
+
},
|
|
38
|
+
2: {
|
|
39
|
+
initial: hasDropShadowOnly,
|
|
40
|
+
scrollStart: hasDropShadowOnly,
|
|
41
|
+
scrolling: hasDropShadowOnly,
|
|
42
|
+
scrollBack: hasDropShadowOnly,
|
|
43
|
+
},
|
|
44
|
+
};
|
|
45
|
+
const LayerHeadingMap = {
|
|
46
|
+
0: '3xl',
|
|
47
|
+
1: '2xl',
|
|
48
|
+
2: 'xl',
|
|
49
|
+
3: 'xl',
|
|
50
|
+
4: 'xl',
|
|
51
|
+
};
|
|
52
|
+
const ANIMATION_DURATION = 300;
|
|
53
|
+
export const NavHeader = ({ layer, onBackPress, actionButtons, title, stepCounter, scrollState, loading = false, }) => {
|
|
54
|
+
const displayTitle = getTitleLength({ layer, title });
|
|
55
|
+
const platform = Platform.OS;
|
|
56
|
+
const titleIsCentreAligned = layer > 1 && platform === 'ios';
|
|
57
|
+
const { isCollapsed, hasDropShadow } = scrollStyleMap[Math.min(layer, 2)][scrollState];
|
|
58
|
+
const shadowOpacity = useSharedValue(0.5);
|
|
59
|
+
const elevation = useSharedValue(9);
|
|
60
|
+
const LT = LinearTransition.duration(ANIMATION_DURATION);
|
|
61
|
+
const FADE_IN_DISTANCE = layer === 0 ? -68 : -50;
|
|
62
|
+
const FADE_OUT_DISTANCE = layer === 0 ? -72 : -52;
|
|
63
|
+
const ExitAnimation = useMemo(() => {
|
|
64
|
+
var _a;
|
|
65
|
+
return _a = class FadeOutUp extends ComplexAnimationBuilder {
|
|
66
|
+
constructor() {
|
|
67
|
+
super(...arguments);
|
|
68
|
+
this.build = () => {
|
|
69
|
+
const delayFunction = this.getDelayFunction();
|
|
70
|
+
const [animation, config] = this.getAnimationAndConfig();
|
|
71
|
+
const callback = this.callbackV;
|
|
72
|
+
const initialValues = this.initialValues;
|
|
73
|
+
const delay = this.getDelay();
|
|
74
|
+
return () => {
|
|
75
|
+
'worklet';
|
|
76
|
+
return {
|
|
77
|
+
animations: {
|
|
78
|
+
opacity: delayFunction(delay, animation(0, config)),
|
|
79
|
+
transform: [
|
|
80
|
+
{
|
|
81
|
+
translateY: delayFunction(delay, animation(FADE_OUT_DISTANCE, config)),
|
|
82
|
+
},
|
|
83
|
+
],
|
|
84
|
+
},
|
|
85
|
+
initialValues: {
|
|
86
|
+
opacity: 1,
|
|
87
|
+
transform: [{ translateY: 0 }],
|
|
88
|
+
...initialValues,
|
|
89
|
+
},
|
|
90
|
+
callback,
|
|
91
|
+
};
|
|
92
|
+
};
|
|
93
|
+
};
|
|
94
|
+
}
|
|
95
|
+
static createInstance() {
|
|
96
|
+
return new _a();
|
|
97
|
+
}
|
|
98
|
+
},
|
|
99
|
+
_a.presetName = 'FadeOutUp',
|
|
100
|
+
_a;
|
|
101
|
+
}, [layer]);
|
|
102
|
+
const FadingAnimation = {
|
|
103
|
+
Enter: FadeInUp.duration(ANIMATION_DURATION)
|
|
104
|
+
.easing(Easing.ease)
|
|
105
|
+
.withInitialValues({ transform: [{ translateY: FADE_IN_DISTANCE }] }),
|
|
106
|
+
Exit: ExitAnimation.duration(ANIMATION_DURATION).easing(Easing.linear),
|
|
107
|
+
};
|
|
108
|
+
useEffect(() => {
|
|
109
|
+
shadowOpacity.value = withTiming(hasDropShadow ? 0.5 : 0, {
|
|
110
|
+
duration: ANIMATION_DURATION,
|
|
111
|
+
easing: Easing.ease,
|
|
112
|
+
});
|
|
113
|
+
elevation.value = withTiming(hasDropShadow ? 9 : 0, {
|
|
114
|
+
duration: ANIMATION_DURATION,
|
|
115
|
+
easing: Easing.ease,
|
|
116
|
+
});
|
|
117
|
+
}, [scrollState, shadowOpacity, hasDropShadow, elevation, isCollapsed]);
|
|
118
|
+
const animatedShadowStyle = useAnimatedStyle(() => {
|
|
12
119
|
return {
|
|
13
|
-
|
|
120
|
+
shadowOpacity: shadowOpacity.value,
|
|
121
|
+
elevation: elevation.value,
|
|
14
122
|
};
|
|
15
123
|
});
|
|
16
|
-
const
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
if (!scrolled) {
|
|
23
|
-
onHeaderHeightChange?.(height);
|
|
24
|
-
}
|
|
25
|
-
layoutHeight.value = withTiming(height, {
|
|
26
|
-
duration: FADE_ANIMATION_DURATION,
|
|
27
|
-
easing: Easing.linear,
|
|
28
|
-
});
|
|
29
|
-
};
|
|
30
|
-
// NavWrapper will recieve height of the NavContainer and animate it
|
|
31
|
-
// content inside NavContainer is the only dynamic part of NavHeader
|
|
32
|
-
return (_jsx(NavWrapper, { collapsed: scrolled, style: animatedHeightStyle, children: _jsxs(NavContainer, { topOffset: topOffset, hasTitle: hasTitle, onLayout: onLayout, children: [_jsx(BackActionWrapper, { collapsed: scrolled, hasBackButton: canGoBack, children: canGoBack && (_jsx(Action, { standalone: true, iconLeft: "chevron-left-small", onPress: onBackButtonPress, children: backButtonText })) }), scrolled ? (_jsxs(_Fragment, { children: [_jsx(CollapsedTitleWrapper, { entering: FadeInDown.delay(FADE_ANIMATION_DURATION), exiting: FadeOutDown.duration(FADE_ANIMATION_DURATION), children: _jsx(CollapsedTitle, { numberOfLines: 1, ellipsizeMode: "tail", children: title }) }), _jsx(HeaderGap, { hasRightAction: hasRightAction }), hasRightAction && (_jsx(_Fragment, { children: _jsx(Animated.View, { entering: FadeInDown.delay(FADE_ANIMATION_DURATION), exiting: FadeOutDown.duration(FADE_ANIMATION_DURATION), accessibilityRole: "button", accessibilityLabel: rightActionConfig?.accessibilityLabel, accessibilityHint: rightActionConfig?.accessibilityHint, children: _jsx(Button, { iconRight: rightActionConfig.iconName, onPress: rightActionConfig.onActionPress }) }) }))] })) : (_jsxs(_Fragment, { children: [_jsx(ExpandedTitle, { hasRightAction: !hasRightAction, hasTitle: hasTitle, numberOfLines: 2, ellipsizeMode: "tail", hasBackButton: canGoBack, entering: FadeInUp.delay(FADE_ANIMATION_DURATION), exiting: FadeOutUp.duration(FADE_ANIMATION_DURATION), children: title }), hasRightAction && (_jsx(Animated.View, { entering: FadeInUp.delay(FADE_ANIMATION_DURATION), exiting: FadeOutUp.duration(FADE_ANIMATION_DURATION), accessibilityRole: "button", accessibilityLabel: rightActionConfig?.accessibilityLabel, accessibilityHint: rightActionConfig?.accessibilityHint, children: _jsx(Button, { iconRight: rightActionConfig.iconName, onPress: rightActionConfig.onActionPress }) }))] }))] }) }));
|
|
124
|
+
const breakpoints = useBreakpoint();
|
|
125
|
+
return (_jsx(ShadowContainer, { style: [animatedShadowStyle], children: _jsx(NavContainer, { breakpoints: breakpoints, layer: layer, layout: LT, isCollapsed: isCollapsed, children: !isCollapsed && (_jsxs(_Fragment, { children: [_jsxs(HeaderContainer, { layout: LT, entering: FadingAnimation.Enter, exiting: FadingAnimation.Exit, children: [_jsx(SideContainer, { flex: titleIsCentreAligned ? 1 : 0, side: "start", children: layer > 1 && (_jsx(NavBackButton, { onPress: () => {
|
|
126
|
+
onBackPress && onBackPress();
|
|
127
|
+
}, variant: "bright", iconLeft: platform === 'ios' ? 'chevron-left' : 'arrow-left' })) }), _jsxs(TitleContainer, { layer: layer, isIOS: platform === 'ios', children: [loading ? (_jsx(SkeletonNavHeading, { size: "100%", headingComponent: layer === 0 ? Heading2 : layer === 1 ? Heading3 : Heading4 })) : layer < 2 ? (_jsx(Heading, { inverted: layer < 2, level: LayerHeadingMap[layer], children: displayTitle })) : (_jsx(P, { size: "md", children: _jsx(Strong, { maxLength: 23, children: displayTitle }) })), stepCounter && !loading && (_jsx(P, { size: "sm", children: `Step ${stepCounter.currentStep <= stepCounter.totalSteps
|
|
128
|
+
? stepCounter.currentStep
|
|
129
|
+
: stepCounter.totalSteps} of ${stepCounter.totalSteps}` }))] }), _jsx(SideContainer, { side: "end", children: actionButtons && (_jsx(ActionButtons, { loading: loading, layer: layer, actionButtons: actionButtons })) })] }), stepCounter && (_jsx(StepCounterBars, { loading: loading, totalSteps: stepCounter.totalSteps, currentStep: stepCounter.currentStep }))] })) }) }));
|
|
33
130
|
};
|
|
@@ -1,67 +1,97 @@
|
|
|
1
1
|
import { numToPx } from '@ovotech/element-core';
|
|
2
2
|
import Animated from 'react-native-reanimated';
|
|
3
3
|
import styled, { css } from '../../styled.native';
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
import { SkeletonButton } from '../SkeletonButton';
|
|
5
|
+
import { SkeletonHeading } from '../SkeletonHeading';
|
|
6
|
+
import { NavButton } from './NavHeaderComponents/NavButton';
|
|
7
|
+
export const ShadowContainer = styled(Animated.View)(({ theme }) => css `
|
|
8
|
+
shadow-color: ${theme.color.neutral.black};
|
|
9
|
+
shadow-offset: 0 ${numToPx(theme.space[100])};
|
|
10
|
+
shadow-radius: ${numToPx(theme.space[200])};
|
|
11
|
+
`);
|
|
12
|
+
export const NavContainer = styled(Animated.View)(({ theme, layer, isCollapsed, breakpoints }) => css `
|
|
13
|
+
z-index: 1;
|
|
14
|
+
display: flex;
|
|
15
|
+
flex-direction: column;
|
|
16
|
+
align-items: stretch;
|
|
6
17
|
width: 100%;
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
z-index: ${Z_INDEX};
|
|
11
|
-
background-color: ${theme.color.surface.surface};
|
|
18
|
+
padding-top: ${layer === 0 && !isCollapsed
|
|
19
|
+
? numToPx(theme.space[2000])
|
|
20
|
+
: numToPx(theme.space[1800])};
|
|
12
21
|
|
|
13
|
-
${
|
|
14
|
-
?
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
22
|
+
padding-left: ${breakpoints.largeAndUp
|
|
23
|
+
? numToPx(theme.space[2000])
|
|
24
|
+
: breakpoints.mediumAndUp
|
|
25
|
+
? numToPx(theme.space[800])
|
|
26
|
+
: numToPx(theme.space[400])};
|
|
27
|
+
padding-right: ${breakpoints.largeAndUp
|
|
28
|
+
? numToPx(theme.space[2000])
|
|
29
|
+
: breakpoints.mediumAndUp
|
|
30
|
+
? numToPx(theme.space[800])
|
|
31
|
+
: numToPx(theme.space[400])};
|
|
32
|
+
padding-bottom: ${layer === 0 || layer === 1
|
|
33
|
+
? numToPx(theme.space[400])
|
|
34
|
+
: 0};
|
|
35
|
+
background-color: ${layer < 2
|
|
36
|
+
? theme.color.brand.brand
|
|
37
|
+
: theme.color.surface.bright};
|
|
38
|
+
overflow: hidden;
|
|
20
39
|
`);
|
|
21
|
-
export const
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
/* NavWrapper zIndex + 1 so it is always on top of the wrapper */
|
|
25
|
-
z-index: ${Z_INDEX + 1};
|
|
26
|
-
width: 100%;
|
|
40
|
+
export const HeaderContainer = styled(Animated.View)(({ theme }) => css `
|
|
41
|
+
display: flex;
|
|
27
42
|
flex-direction: row;
|
|
28
|
-
|
|
43
|
+
width: 100%;
|
|
29
44
|
align-items: center;
|
|
30
|
-
|
|
31
|
-
padding-top: ${topOffset
|
|
32
|
-
? numToPx(topOffset)
|
|
33
|
-
: numToPx(theme.space[hasTitle ? 200 : 400])};
|
|
34
|
-
padding-bottom: ${numToPx(theme.space[hasTitle ? 200 : 400])};
|
|
35
|
-
padding-left: ${numToPx(theme.space[400])};
|
|
36
|
-
padding-right: ${numToPx(theme.space[400])};
|
|
45
|
+
gap: ${numToPx(theme.space[100])};
|
|
37
46
|
`);
|
|
38
|
-
export const
|
|
39
|
-
width:
|
|
40
|
-
|
|
41
|
-
font-size: ${numToPx(theme.font.size['4xl'].mediaQuery[hasBackButton ? 'sm' : 'lg'])};
|
|
42
|
-
line-height: ${numToPx(hasBackButton
|
|
43
|
-
? theme.font.lineHeight['4xl'].mediaQuery.sm
|
|
44
|
-
: theme.space[1300])};
|
|
45
|
-
color: ${theme.color.brand.brand};
|
|
46
|
-
${!hasTitle && 'height: 0;'};
|
|
47
|
+
export const SkeletonNavHeading = styled(SkeletonHeading)(({}) => css `
|
|
48
|
+
min-width: 70%;
|
|
49
|
+
height: 100%;
|
|
47
50
|
`);
|
|
48
|
-
export const
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
`;
|
|
52
|
-
export const CollapsedTitle = styled.Text(({ theme }) => css `
|
|
53
|
-
font-family: ${theme.native.font.family.bold};
|
|
54
|
-
font-size: ${numToPx(theme.font.size.xl.mediaQuery.sm)};
|
|
55
|
-
line-height: ${numToPx(theme.font.lineHeight.xl.mediaQuery.sm)};
|
|
56
|
-
color: ${theme.color.brand.brand};
|
|
51
|
+
export const SkeletonNavButton = styled(SkeletonButton)(({ theme }) => css `
|
|
52
|
+
width: ${numToPx(theme.space[1000])};
|
|
53
|
+
height: ${numToPx(theme.space[1000])};
|
|
57
54
|
`);
|
|
58
|
-
export const
|
|
59
|
-
|
|
55
|
+
export const SideContainer = styled.View(({ theme, side, flex = 1 }) => css `
|
|
56
|
+
display: flex;
|
|
57
|
+
gap: ${side === 'end' ? numToPx(theme.space[200]) : 0};
|
|
58
|
+
flex-direction: row;
|
|
59
|
+
flex: ${flex};
|
|
60
|
+
flex-basis: 0;
|
|
61
|
+
justify-content: ${side === 'start' ? 'flex-start' : 'flex-end'};
|
|
62
|
+
max-height: ${numToPx(theme.space[1000])};
|
|
60
63
|
`);
|
|
61
|
-
export const
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
64
|
+
export const TitleContainer = styled.View(({ theme, layer, isIOS }) => css `
|
|
65
|
+
display: flex;
|
|
66
|
+
flex-direction: column;
|
|
67
|
+
align-items: ${isIOS && layer > 1 ? 'center' : 'flex-start'};
|
|
68
|
+
max-height: ${numToPx(theme.space[1000])};
|
|
69
|
+
min-width: ${numToPx(theme.space[1000])};
|
|
70
|
+
`);
|
|
71
|
+
export const StepCounterBar = styled.View(({ theme, count, currentStep }) => css `
|
|
72
|
+
flex-grow: 1;
|
|
73
|
+
height: 2px;
|
|
74
|
+
max-width: 50%;
|
|
75
|
+
min-width: 10%;
|
|
76
|
+
background-color: ${count <= currentStep
|
|
77
|
+
? theme.color.brand.brand
|
|
78
|
+
: theme.color.surface.dim};
|
|
79
|
+
`);
|
|
80
|
+
export const SkeletonStepCounterBar = styled(SkeletonButton)(({ theme }) => css `
|
|
81
|
+
min-width: 100%;
|
|
82
|
+
height: ${numToPx(theme.space[50])};
|
|
83
|
+
`);
|
|
84
|
+
export const StepCounterContainer = styled.View(({ theme }) => css `
|
|
85
|
+
display: flex;
|
|
86
|
+
flex-direction: row;
|
|
87
|
+
justify-content: space-between;
|
|
88
|
+
width: 100%;
|
|
89
|
+
gap: ${numToPx(theme.space[100])};
|
|
90
|
+
padding-bottom: ${numToPx(theme.space[100])};
|
|
91
|
+
padding-top: ${numToPx(theme.space[200])};
|
|
92
|
+
max-height: ${numToPx(theme.space[100])};
|
|
93
|
+
min-width: 100%;
|
|
94
|
+
`);
|
|
95
|
+
export const NavBackButton = styled(NavButton)(({ theme }) => css `
|
|
96
|
+
margin-left: -${numToPx(theme.space[300])};
|
|
67
97
|
`);
|