@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,12 @@
|
|
|
1
|
+
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { SkeletonNavButton } from '../NavHeader.styles';
|
|
3
|
+
import { checkHasAccount } from '../utils';
|
|
4
|
+
import { NavButton } from './NavButton';
|
|
5
|
+
export const ActionButtons = (props) => {
|
|
6
|
+
const variant = props.layer > 1 ? 'dim' : 'bright';
|
|
7
|
+
const inverted = props.layer < 2;
|
|
8
|
+
return (_jsxs(_Fragment, { children: [checkHasAccount(props) &&
|
|
9
|
+
props.actionButtons.account?.onPress &&
|
|
10
|
+
(props.loading ? (_jsx(SkeletonNavButton, {})) : (_jsx(NavButton, { variant: variant, inverted: inverted, layer: props.layer, onPress: props.actionButtons.account.onPress, iconLeft: props.actionButtons.account.icon || 'user' }))), !!props.actionButtons.help?.onPress &&
|
|
11
|
+
(props.loading ? (_jsx(SkeletonNavButton, {})) : (_jsx(NavButton, { variant: variant, inverted: inverted, layer: props.layer, onPress: props.actionButtons.help.onPress, iconLeft: props.actionButtons.help.icon || 'message' })))] }));
|
|
12
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import styled, { css } from '../../../styled.native';
|
|
3
|
+
import { DEFAULT_BUTTON_VARIANT } from '../../Button/Button';
|
|
4
|
+
import { StyledButtonIcon, StyledButtonWrapper, StyledInner, } from '../../Button/Button.styles';
|
|
5
|
+
const ButtonWrapper = ({ children, accessibilityRole = 'button', activeOpacity = 0.8, ...rest }) => (_jsx(StyledButtonWrapper, { accessible: true, accessibilityRole: accessibilityRole, activeOpacity: activeOpacity, ...rest, children: children }));
|
|
6
|
+
const NavStyledButtonInner = styled(StyledInner)(({ theme, navVariant }) => {
|
|
7
|
+
const backgroundAndBorderColor = navVariant === 'bright'
|
|
8
|
+
? theme.color.surface.bright
|
|
9
|
+
: theme.color.surface.dim;
|
|
10
|
+
return css `
|
|
11
|
+
background-color: ${backgroundAndBorderColor};
|
|
12
|
+
border-color: ${backgroundAndBorderColor};
|
|
13
|
+
color: ${theme.button.surface.color.fgInverted};
|
|
14
|
+
`;
|
|
15
|
+
});
|
|
16
|
+
const NavStyledButtonIcon = styled(StyledButtonIcon)(({ theme, navVariant }) => css `
|
|
17
|
+
color: ${navVariant === 'bright' || navVariant === 'dim'
|
|
18
|
+
? theme.button.surface.color.fgInverted
|
|
19
|
+
: 'transparent'};
|
|
20
|
+
`);
|
|
21
|
+
export const NavButton = ({ layer, iconLeft, iconRight, fullWidth = false, variant = 'bright', inverted = true, size = 'default', ...rest }) => {
|
|
22
|
+
return (_jsx(ButtonWrapper, { ...rest, children: _jsxs(NavStyledButtonInner, { fullWidth: fullWidth, variant: DEFAULT_BUTTON_VARIANT, navVariant: variant, inverted: inverted, size: size, iconLeft: iconLeft, iconRight: iconRight, iconOnly: true, layer: layer, children: [iconLeft && (_jsx(NavStyledButtonIcon, { iconLeft: true, iconOnly: true, name: iconLeft, inverted: inverted, navVariant: variant, variant: DEFAULT_BUTTON_VARIANT, size: 20 })), iconRight && (_jsx(NavStyledButtonIcon, { iconRight: true, iconOnly: true, name: iconRight, inverted: inverted, navVariant: variant, variant: DEFAULT_BUTTON_VARIANT, size: 20 }))] }) }));
|
|
23
|
+
};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { SkeletonStepCounterBar, StepCounterBar, StepCounterContainer, } from '../NavHeader.styles';
|
|
3
|
+
export const StepCounterBars = ({ totalSteps, currentStep, loading = false, }) => {
|
|
4
|
+
return (_jsx(StepCounterContainer, { children: loading ? (_jsx(SkeletonStepCounterBar, {})) : (Array.from({ length: totalSteps }).map((_, index) => (_jsx(StepCounterBar, { count: index + 1, currentStep: currentStep }, index + 1)))) }));
|
|
5
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export const checkHasAccount = (props) => {
|
|
2
|
+
return props.layer === 0 || props.layer === 1;
|
|
3
|
+
};
|
|
4
|
+
export const getTitleLength = ({ layer, title }) => {
|
|
5
|
+
const TITLE_HOME_MAX_LENGTH = 14;
|
|
6
|
+
const TITLE_LAYER_1_MAX_LENGTH = 21;
|
|
7
|
+
const TITLE_LAYER_2_PLUS_MAX_LENGTH = 28;
|
|
8
|
+
if (layer === 0) {
|
|
9
|
+
return title.length > TITLE_HOME_MAX_LENGTH
|
|
10
|
+
? title.slice(0, TITLE_HOME_MAX_LENGTH) + '...'
|
|
11
|
+
: title;
|
|
12
|
+
}
|
|
13
|
+
if (layer === 1) {
|
|
14
|
+
return title.length > TITLE_LAYER_1_MAX_LENGTH
|
|
15
|
+
? title.slice(0, TITLE_LAYER_1_MAX_LENGTH)
|
|
16
|
+
: title;
|
|
17
|
+
}
|
|
18
|
+
if (layer > 1) {
|
|
19
|
+
return title.length > TITLE_LAYER_2_PLUS_MAX_LENGTH
|
|
20
|
+
? title.slice(0, TITLE_LAYER_2_PLUS_MAX_LENGTH) + '...'
|
|
21
|
+
: title;
|
|
22
|
+
}
|
|
23
|
+
};
|
|
@@ -23,7 +23,7 @@ const RedDotContainer = styled.View `
|
|
|
23
23
|
height: 0;
|
|
24
24
|
z-index: 1;
|
|
25
25
|
`;
|
|
26
|
-
export const
|
|
26
|
+
export const NavIcon = ({ label, iconName, focused, isStatusDotEnabled = false, onPress, size = 24, tintColor, style, accessibilityState, }) => {
|
|
27
27
|
const isFocused = focused ?? accessibilityState?.selected ?? false;
|
|
28
28
|
const testID = `${label.toLowerCase()}-tab`;
|
|
29
29
|
const theme = useTheme();
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { NavIcon } from './NavIcon';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { Field } from '../Field';
|
|
3
3
|
import { PasswordInput } from '../PasswordInput';
|
|
4
|
-
export const PasswordField = ({ hasVisibilityToggle, ...rest }) => {
|
|
5
|
-
return (_jsx(Field, { ...rest, children: _jsx(PasswordInput, { hasVisibilityToggle: hasVisibilityToggle }) }));
|
|
4
|
+
export const PasswordField = ({ hasVisibilityToggle, ref, ...rest }) => {
|
|
5
|
+
return (_jsx(Field, { ...rest, children: _jsx(PasswordInput, { ref: ref, hasVisibilityToggle: hasVisibilityToggle }) }));
|
|
6
6
|
};
|
|
@@ -3,6 +3,6 @@ import { Input } from '../Input/Input';
|
|
|
3
3
|
import { PasswordVisibilityToggle, useTogglePasswordVisibility, } from './PasswordVisibilityToggle';
|
|
4
4
|
const PasswordInput = (props) => {
|
|
5
5
|
const { isPasswordVisible, handlePasswordVisibility } = useTogglePasswordVisibility();
|
|
6
|
-
return (_jsx(Input, { rightSlot: props.hasVisibilityToggle ? (_jsx(PasswordVisibilityToggle, { iconName: isPasswordVisible ? 'hide' : 'show', visibilityToggleLabel: isPasswordVisible ? 'Hide password' : 'Show password', handlePasswordVisibility: handlePasswordVisibility })) : null, keyboardType: "default", autoCapitalize: "none", autoCorrect: false,
|
|
6
|
+
return (_jsx(Input, { rightSlot: props.hasVisibilityToggle ? (_jsx(PasswordVisibilityToggle, { iconName: isPasswordVisible ? 'hide' : 'show', visibilityToggleLabel: isPasswordVisible ? 'Hide password' : 'Show password', handlePasswordVisibility: handlePasswordVisibility })) : null, keyboardType: "default", autoCapitalize: "none", autoCorrect: false, submitBehavior: "submit", secureTextEntry: !isPasswordVisible, ...props }));
|
|
7
7
|
};
|
|
8
8
|
export { PasswordInput };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { Field } from '../Field';
|
|
3
3
|
import { PhoneInput } from '../PhoneInput';
|
|
4
|
-
export const PhoneField = ({ ...props }) => {
|
|
5
|
-
return (_jsx(Field, { ...props, children: _jsx(PhoneInput, {}) }));
|
|
4
|
+
export const PhoneField = ({ ref, ...props }) => {
|
|
5
|
+
return (_jsx(Field, { ...props, children: _jsx(PhoneInput, { ref: ref }) }));
|
|
6
6
|
};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { useWindowDimensions, View } from 'react-native';
|
|
3
|
+
import { useBreakpoint } from '../../hooks';
|
|
4
|
+
import styled, { useTheme } from '../../styled.native';
|
|
5
|
+
const BackgroundWrapper = styled(View)({
|
|
6
|
+
width: '100%',
|
|
7
|
+
alignItems: 'center',
|
|
8
|
+
});
|
|
9
|
+
const ContentContainer = styled(View)(({ paddingHorizontal, minWidth, maxWidth }) => ({
|
|
10
|
+
width: '100%',
|
|
11
|
+
paddingHorizontal,
|
|
12
|
+
minWidth,
|
|
13
|
+
maxWidth,
|
|
14
|
+
}));
|
|
15
|
+
export const ScreenView = ({ children }) => {
|
|
16
|
+
const { xsmallAndUp, smallAndUp, mediumAndUp } = useBreakpoint();
|
|
17
|
+
const { width } = useWindowDimensions();
|
|
18
|
+
const theme = useTheme();
|
|
19
|
+
let maxWidth = width;
|
|
20
|
+
let paddingHorizontal = theme.space[400];
|
|
21
|
+
if (mediumAndUp) {
|
|
22
|
+
maxWidth = 1024;
|
|
23
|
+
paddingHorizontal = theme.space[800];
|
|
24
|
+
}
|
|
25
|
+
else if (smallAndUp || xsmallAndUp) {
|
|
26
|
+
maxWidth = 484;
|
|
27
|
+
paddingHorizontal = theme.space[500];
|
|
28
|
+
}
|
|
29
|
+
else if (width < 359) {
|
|
30
|
+
paddingHorizontal = theme.space[400];
|
|
31
|
+
}
|
|
32
|
+
return (_jsx(BackgroundWrapper, { children: _jsx(ContentContainer, { paddingHorizontal: paddingHorizontal, maxWidth: maxWidth, children: children }) }));
|
|
33
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './ScreenView';
|
|
@@ -47,7 +47,7 @@ export const SegmentButton = ({ accessibilityLabel, accessibilityHint, inline, i
|
|
|
47
47
|
// choices go on the second row. The only way I could get it to work
|
|
48
48
|
// was to hardcode the denominator to 3 for the single row ones
|
|
49
49
|
// and 1.1 for the multiple row ones.
|
|
50
|
-
yRef.current = y - height / (multipleRows ?
|
|
50
|
+
yRef.current = y - height / (multipleRows ? 2.5 : 3 * fontScale);
|
|
51
51
|
heightRef.current = height;
|
|
52
52
|
widthRef.current = width;
|
|
53
53
|
onLayout(width, height, x, yRef.current);
|
|
@@ -2,7 +2,8 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
2
2
|
import { numToPx } from '@ovotech/element-core';
|
|
3
3
|
import groupBy from 'lodash.groupby';
|
|
4
4
|
import { Fragment, useState } from 'react';
|
|
5
|
-
import { Dimensions, Modal, ScrollView, View } from 'react-native';
|
|
5
|
+
import { Dimensions, Modal, ScrollView, View, } from 'react-native';
|
|
6
|
+
import { SafeAreaView } from 'react-native-safe-area-context';
|
|
6
7
|
import styled, { css } from '../../styled.native';
|
|
7
8
|
import { Icon } from '../Icon';
|
|
8
9
|
import { P } from '../P';
|
|
@@ -30,7 +31,7 @@ const DropdownWrapper = styled.TouchableOpacity(({ theme }) => css `
|
|
|
30
31
|
/* 80 is an opacity for hex https://gist.github.com/lopspower/03fb1cc0ac9f32ef38f4 */
|
|
31
32
|
background-color: ${theme.color.brand.dark}80;
|
|
32
33
|
`);
|
|
33
|
-
const DropdownContainer = styled
|
|
34
|
+
const DropdownContainer = styled(SafeAreaView)(({ theme }) => css `
|
|
34
35
|
width: 95%;
|
|
35
36
|
max-height: 70%;
|
|
36
37
|
border-radius: ${numToPx(theme.border.radius.sm)};
|
|
@@ -74,7 +75,7 @@ const StyledCategory = styled(P)(({ theme }) => css `
|
|
|
74
75
|
background-color: ${theme.color.surface.surface};
|
|
75
76
|
padding: ${numToPx(theme.space[100])} ${numToPx(theme.space[400])};
|
|
76
77
|
`);
|
|
77
|
-
export const Select = ({ options = [], defaultSelected = { label: '', value: 'default' }, noOptionMessage = 'No option selected', onSelected = () => null, hasError = false, testID = 'select', }) => {
|
|
78
|
+
export const Select = ({ options = [], defaultSelected = { label: '', value: 'default' }, noOptionMessage = 'No option selected', onSelected = () => null, hasError = false, testID = 'select', ref, }) => {
|
|
78
79
|
const [isOpen, setOpen] = useState(false);
|
|
79
80
|
const [selected, setSelected] = useState(defaultSelected);
|
|
80
81
|
const height = Dimensions.get('window').height;
|
|
@@ -89,5 +90,5 @@ export const Select = ({ options = [], defaultSelected = { label: '', value: 'de
|
|
|
89
90
|
label: `-- ${noOptionMessage} --`,
|
|
90
91
|
value: 'default',
|
|
91
92
|
};
|
|
92
|
-
return (_jsxs(View, { children: [_jsxs(SelectInput, { testID: testID, hasError: hasError, onPress: () => setOpen(!isOpen), children: [_jsx(P, { style: { marginTop: 0, marginBottom: 0 }, children: selected.value === 'default' ? '' : selected.label }), _jsx(Icon, { name: "chevron-down", size: 16, style: { marginLeft: 'auto' } })] }), _jsx(Modal, { transparent: true, visible: isOpen, animationType: "fade", onRequestClose: () => setOpen(false), children: _jsx(DropdownWrapper, { onPress: () => setOpen(false), children: _jsx(DropdownContainer, { style: { maxHeight: dropdownContainerMaxHeight }, children: _jsxs(ScrollView, { nestedScrollEnabled: true, testID: `${testID}-OptionsScrollView`, children: [_jsxs(SelectOption, { accessible: true, accessibilityRole: "radio", onPress: () => handleOptionPress(requiredOption), children: [_jsx(StyledP, { children: _jsx(Strong, { children: requiredOption.label }) }), _jsx(Radio, { isChecked: selected.value === requiredOption.value, children: _jsx(RadioDot, { isChecked: selected.value === requiredOption.value }) })] }), Object.keys(optionsByCategories).map(category => (_jsxs(Fragment, { children: [category !== 'undefined' ? (_jsx(StyledCategory, { children: category })) : null, optionsByCategories[category].map((option, i) => (_jsxs(SelectOption, { accessible: true, accessibilityRole: "radio", isLastOption: i === optionsByCategories[category].length - 1, onPress: () => handleOptionPress(option), children: [_jsx(StyledP, { children: _jsx(Strong, { children: option.label }) }), _jsx(Radio, { isChecked: selected.value === option.value, children: _jsx(RadioDot, { isChecked: selected.value === option.value }) })] }, option.label)))] }, category)))] }) }) }) })] }));
|
|
93
|
+
return (_jsxs(View, { children: [_jsxs(SelectInput, { testID: testID, hasError: hasError, onPress: () => setOpen(!isOpen), ref: ref, children: [_jsx(P, { style: { marginTop: 0, marginBottom: 0 }, children: selected.value === 'default' ? '' : selected.label }), _jsx(Icon, { name: "chevron-down", size: 16, style: { marginLeft: 'auto' } })] }), _jsx(Modal, { transparent: true, visible: isOpen, animationType: "fade", onRequestClose: () => setOpen(false), children: _jsx(DropdownWrapper, { onPress: () => setOpen(false), children: _jsx(DropdownContainer, { style: { maxHeight: dropdownContainerMaxHeight }, children: _jsxs(ScrollView, { nestedScrollEnabled: true, testID: `${testID}-OptionsScrollView`, children: [_jsxs(SelectOption, { accessible: true, accessibilityRole: "radio", onPress: () => handleOptionPress(requiredOption), children: [_jsx(StyledP, { children: _jsx(Strong, { children: requiredOption.label }) }), _jsx(Radio, { isChecked: selected.value === requiredOption.value, children: _jsx(RadioDot, { isChecked: selected.value === requiredOption.value }) })] }), Object.keys(optionsByCategories).map(category => (_jsxs(Fragment, { children: [category !== 'undefined' ? (_jsx(StyledCategory, { children: category })) : null, optionsByCategories[category].map((option, i) => (_jsxs(SelectOption, { accessible: true, accessibilityRole: "radio", isLastOption: i === optionsByCategories[category].length - 1, onPress: () => handleOptionPress(option), children: [_jsx(StyledP, { children: _jsx(Strong, { children: option.label }) }), _jsx(Radio, { isChecked: selected.value === option.value, children: _jsx(RadioDot, { isChecked: selected.value === option.value }) })] }, option.label)))] }, category)))] }) }) }) })] }));
|
|
93
94
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { jsx as _jsx, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
2
|
import { Field } from '../Field';
|
|
3
3
|
import { Select } from './Select';
|
|
4
|
-
export const SelectField = ({ error, options, onSelected, noOptionMessage, defaultSelected, testID, ...rest }) => (_jsx(Field, { affixWidth: 20, error: error, ...rest, children: _jsx(_Fragment, { children: _jsx(Select, { onSelected: onSelected, options: options, noOptionMessage: noOptionMessage, defaultSelected: defaultSelected, hasError: Boolean(error), testID: testID }) }) }));
|
|
4
|
+
export const SelectField = ({ error, options, onSelected, noOptionMessage, defaultSelected, testID, ref, ...rest }) => (_jsx(Field, { affixWidth: 20, error: error, ...rest, children: _jsx(_Fragment, { children: _jsx(Select, { onSelected: onSelected, options: options, noOptionMessage: noOptionMessage, defaultSelected: defaultSelected, hasError: Boolean(error), testID: testID, ref: ref }) }) }));
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { Field } from '../Field';
|
|
3
3
|
import { TextInput } from '../TextInput';
|
|
4
|
-
export const TextField = (props) => {
|
|
5
|
-
return (_jsx(Field, { ...props, children: _jsx(TextInput, {}) }));
|
|
4
|
+
export const TextField = ({ ref, ...props }) => {
|
|
5
|
+
return (_jsx(Field, { ...props, children: _jsx(TextInput, { ref: ref }) }));
|
|
6
6
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { Input } from '../Input/Input';
|
|
3
|
-
const TextInput = (props) => _jsx(Input, { ...props, keyboardType: "default", ref:
|
|
3
|
+
const TextInput = ({ ref, ...props }) => (_jsx(Input, { ...props, keyboardType: "default", ref: ref }));
|
|
4
4
|
export { TextInput };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { Field } from '../Field';
|
|
3
3
|
import { TextareaInput } from '../TextareaInput';
|
|
4
|
-
export const TextareaField = ({ ...props }) => {
|
|
5
|
-
return (_jsx(Field, { ...props, children: _jsx(TextareaInput, {}) }));
|
|
4
|
+
export const TextareaField = ({ ref, ...props }) => {
|
|
5
|
+
return (_jsx(Field, { ...props, children: _jsx(TextareaInput, { ref: ref }) }));
|
|
6
6
|
};
|
|
@@ -16,7 +16,7 @@ export const StyledToggleInputWrapper = styled.View(({ theme, labelPosition }) =
|
|
|
16
16
|
? labelPosition === 'left'
|
|
17
17
|
? 'margin-left: 10px;'
|
|
18
18
|
: 'margin-right: 10px;'
|
|
19
|
-
:
|
|
19
|
+
: ''}
|
|
20
20
|
`;
|
|
21
21
|
});
|
|
22
22
|
export const StyledToggleInput = styled.View(({ theme, checked }) => {
|
|
@@ -25,6 +25,7 @@ export * from './Link';
|
|
|
25
25
|
export * from './List';
|
|
26
26
|
export * from './Margin';
|
|
27
27
|
export * from './NavHeader';
|
|
28
|
+
export * from './NavIcon';
|
|
28
29
|
export * from './Notification';
|
|
29
30
|
export * from './NumberField';
|
|
30
31
|
export * from './NumberInput';
|
|
@@ -36,6 +37,7 @@ export * from './PhoneInput';
|
|
|
36
37
|
export * from './Pictogram';
|
|
37
38
|
export * from './Radio';
|
|
38
39
|
export * from './RadioCard';
|
|
40
|
+
export * from './ScreenView';
|
|
39
41
|
export * from './RemoteImage';
|
|
40
42
|
export * from './SegmentedControls';
|
|
41
43
|
export * from './SelectField';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './use-breakpoint';
|
|
1
|
+
export * from './use-breakpoint.native';
|
|
2
2
|
export * from './use-full-width';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useEffect, useState } from 'react';
|
|
2
|
-
import { useBreakpoint } from './use-breakpoint';
|
|
2
|
+
import { useBreakpoint } from './use-breakpoint.native';
|
|
3
3
|
export const useFullWidth = (fullWidth = 'small') => {
|
|
4
4
|
const [isFullWidth, setIsfullWidth] = useState(true);
|
|
5
5
|
const { smallAndUp } = useBreakpoint();
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '@ovotech/element-core';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './utils';
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { Children, } from 'react';
|
|
3
|
+
import { useBreakpoint } from '../hooks';
|
|
4
|
+
function mergeRefs(...refs) {
|
|
5
|
+
return value => {
|
|
6
|
+
refs.forEach(ref => {
|
|
7
|
+
assignRef(ref, value);
|
|
8
|
+
});
|
|
9
|
+
};
|
|
10
|
+
}
|
|
11
|
+
function assignRef(ref, element) {
|
|
12
|
+
if (typeof ref === 'function') {
|
|
13
|
+
ref(element);
|
|
14
|
+
}
|
|
15
|
+
else if (ref) {
|
|
16
|
+
ref.current = element;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
function getText(children) {
|
|
20
|
+
if (!Boolean(children) && typeof children !== 'number') {
|
|
21
|
+
return '';
|
|
22
|
+
}
|
|
23
|
+
if (typeof children === 'object' &&
|
|
24
|
+
children.props) {
|
|
25
|
+
return Children.map(children.props.children, child => getText(child)).join('');
|
|
26
|
+
}
|
|
27
|
+
return String(children);
|
|
28
|
+
}
|
|
29
|
+
function styledComponentWithBreakpoints(Component) {
|
|
30
|
+
return (props) => {
|
|
31
|
+
const breakpoints = useBreakpoint();
|
|
32
|
+
// @ts-ignore.
|
|
33
|
+
return _jsx(Component, { ...props, ...breakpoints, ref: props.ref });
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
function responsiveStyle(property, value, breakpoints, formatter) {
|
|
37
|
+
let values;
|
|
38
|
+
if (Array.isArray(value)) {
|
|
39
|
+
values = value;
|
|
40
|
+
}
|
|
41
|
+
else {
|
|
42
|
+
values = [value];
|
|
43
|
+
}
|
|
44
|
+
const ascMediaQueries = [
|
|
45
|
+
breakpoints.smallAndUp,
|
|
46
|
+
breakpoints.mediumAndUp,
|
|
47
|
+
breakpoints.largeAndUp,
|
|
48
|
+
];
|
|
49
|
+
const [base, ...rest] = values;
|
|
50
|
+
return rest.reduce((acc, val, i) => ascMediaQueries[i]
|
|
51
|
+
? `${property}: ${formatter ? formatter(val) : val};`
|
|
52
|
+
: acc, `${property}: ${formatter ? formatter(base) : base};`);
|
|
53
|
+
}
|
|
54
|
+
function getErrorMessage(id, errors) {
|
|
55
|
+
return (errors.find(({ id: errorId }) => id === errorId) || { message: null })
|
|
56
|
+
.message;
|
|
57
|
+
}
|
|
58
|
+
// eslint-disable-next-line @typescript-eslint/ban-types
|
|
59
|
+
function callAll(...fns) {
|
|
60
|
+
return (...args) => fns.forEach(fn => fn && fn(...args));
|
|
61
|
+
}
|
|
62
|
+
function filterChildrenByType(children, type) {
|
|
63
|
+
return Children.toArray(children).filter(child => child?.type === type);
|
|
64
|
+
}
|
|
65
|
+
function getValidChildren(children) {
|
|
66
|
+
return Children.toArray(children).filter(Boolean);
|
|
67
|
+
}
|
|
68
|
+
export { callAll, filterChildrenByType, getErrorMessage, getValidChildren, getText, mergeRefs, responsiveStyle, styledComponentWithBreakpoints, };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { useContext } from 'react';
|
|
2
|
+
import { useWindowDimensions } from 'react-native';
|
|
3
|
+
import { ThemeContext } from '../styled.native';
|
|
4
|
+
export const useBreakpoint = () => {
|
|
5
|
+
const { core: { breakpoint }, } = useContext(ThemeContext);
|
|
6
|
+
const { width } = useWindowDimensions();
|
|
7
|
+
return {
|
|
8
|
+
smallAndUp: width > Number(breakpoint.small),
|
|
9
|
+
mediumAndUp: width > Number(breakpoint.medium),
|
|
10
|
+
largeAndUp: width > Number(breakpoint.large),
|
|
11
|
+
};
|
|
12
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { useState, useEffect } from 'react';
|
|
2
|
+
import { useBreakpoint } from './use-breakpoint';
|
|
3
|
+
export const useFullWidth = (fullWidth = 'small') => {
|
|
4
|
+
const [isFullWidth, setIsfullWidth] = useState(true);
|
|
5
|
+
const { smallAndUp } = useBreakpoint();
|
|
6
|
+
useEffect(() => {
|
|
7
|
+
const values = {
|
|
8
|
+
small: !smallAndUp,
|
|
9
|
+
always: true,
|
|
10
|
+
never: false,
|
|
11
|
+
};
|
|
12
|
+
setIsfullWidth(values[fullWidth]);
|
|
13
|
+
}, [isFullWidth, smallAndUp, setIsfullWidth]);
|
|
14
|
+
return isFullWidth;
|
|
15
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { useCallback, useState } from 'react';
|
|
2
|
+
export const useLayout = (defaultHeight) => {
|
|
3
|
+
const [layout, setLayout] = useState({ height: defaultHeight || 0, width: 0, measured: false });
|
|
4
|
+
const onLayout = useCallback((e) => {
|
|
5
|
+
const { height, width } = e.nativeEvent.layout;
|
|
6
|
+
if (height === layout.height && width === layout.width) {
|
|
7
|
+
return;
|
|
8
|
+
}
|
|
9
|
+
setLayout({
|
|
10
|
+
height,
|
|
11
|
+
width,
|
|
12
|
+
measured: true,
|
|
13
|
+
});
|
|
14
|
+
}, [layout.height, layout.width]);
|
|
15
|
+
return [layout, onLayout];
|
|
16
|
+
};
|
package/dist/index.d.ts
ADDED
package/dist/index.js
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { PropsWithChildren } from 'react';
|
|
2
|
+
import { IconsType } from './types';
|
|
3
|
+
declare const defaultIcons: IconsType;
|
|
4
|
+
declare function useIcons<T extends IconsType = string & object>(): IconsType & T;
|
|
5
|
+
declare function IconsProvider({ children, icons, }: PropsWithChildren<{
|
|
6
|
+
icons?: IconsType;
|
|
7
|
+
}>): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export { useIcons, IconsProvider, defaultIcons };
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { createContext, useContext } from 'react';
|
|
3
|
+
import { Address, Advice, Archive, ArrowDown, ArrowLeft, ArrowRight, ArrowUp, Award, Battery, CalBook, Cal, CaretArrowDown, CaretArrowLeft, CaretArrowRight, CaretArrowUp, CaretDown, CaretLeft, CaretRight, CaretUp, ChartFilled, Chart, CheckCircle, Check, ChevronDown, ChevronLeftSmallFirst, ChevronLeftSmall, ChevronLeft, ChevronRightSmallLast, ChevronRightSmall, ChevronRight, ChevronUp, Circle, CloseCircle, Cross, Doc, Dollar, Download, EcoHome, Eco, Edit, ElectricCar, ElectricHome, Electricity, EnergyAdvice, Equals, Euro, Gas, GlobeAddress, HelpFilled, Help, Hide, HomeFilled, Home, HydroPower, Info, Link, Logo, MailOpen, Mail, Menu, MessageFilled, Message, Minus, Mobile, NewWindow, PaymentCardFilled, PaymentCard, Phone, Plus, Pound, PricingFilled, Pricing, Search, Security, ShopFilled, Shop, Show, SmartHome, SmartMeter, Solar, StarFilled, Star, Sun, Torch, Trees, Tune, UserFilled, User, Wallet, WarmHome, Warning, WebAddress, WindPower, } from './icons';
|
|
4
|
+
const defaultIcons = {
|
|
5
|
+
address: Address,
|
|
6
|
+
advice: Advice,
|
|
7
|
+
archive: Archive,
|
|
8
|
+
'arrow-down': ArrowDown,
|
|
9
|
+
'arrow-left': ArrowLeft,
|
|
10
|
+
'arrow-right': ArrowRight,
|
|
11
|
+
'arrow-up': ArrowUp,
|
|
12
|
+
award: Award,
|
|
13
|
+
battery: Battery,
|
|
14
|
+
'cal-book': CalBook,
|
|
15
|
+
cal: Cal,
|
|
16
|
+
'caret-arrow-down': CaretArrowDown,
|
|
17
|
+
'caret-arrow-left': CaretArrowLeft,
|
|
18
|
+
'caret-arrow-right': CaretArrowRight,
|
|
19
|
+
'caret-arrow-up': CaretArrowUp,
|
|
20
|
+
'caret-down': CaretDown,
|
|
21
|
+
'caret-left': CaretLeft,
|
|
22
|
+
'caret-right': CaretRight,
|
|
23
|
+
'caret-up': CaretUp,
|
|
24
|
+
'chart-filled': ChartFilled,
|
|
25
|
+
chart: Chart,
|
|
26
|
+
'check-circle': CheckCircle,
|
|
27
|
+
check: Check,
|
|
28
|
+
'chevron-down': ChevronDown,
|
|
29
|
+
'chevron-left-small-first': ChevronLeftSmallFirst,
|
|
30
|
+
'chevron-left-small': ChevronLeftSmall,
|
|
31
|
+
'chevron-left': ChevronLeft,
|
|
32
|
+
'chevron-right-small-last': ChevronRightSmallLast,
|
|
33
|
+
'chevron-right-small': ChevronRightSmall,
|
|
34
|
+
'chevron-right': ChevronRight,
|
|
35
|
+
'chevron-up': ChevronUp,
|
|
36
|
+
circle: Circle,
|
|
37
|
+
'close-circle': CloseCircle,
|
|
38
|
+
cross: Cross,
|
|
39
|
+
doc: Doc,
|
|
40
|
+
dollar: Dollar,
|
|
41
|
+
download: Download,
|
|
42
|
+
'eco-home': EcoHome,
|
|
43
|
+
eco: Eco,
|
|
44
|
+
edit: Edit,
|
|
45
|
+
'electric-car': ElectricCar,
|
|
46
|
+
'electric-home': ElectricHome,
|
|
47
|
+
electricity: Electricity,
|
|
48
|
+
'energy-advice': EnergyAdvice,
|
|
49
|
+
equals: Equals,
|
|
50
|
+
euro: Euro,
|
|
51
|
+
gas: Gas,
|
|
52
|
+
'globe-address': GlobeAddress,
|
|
53
|
+
'help-filled': HelpFilled,
|
|
54
|
+
help: Help,
|
|
55
|
+
hide: Hide,
|
|
56
|
+
'home-filled': HomeFilled,
|
|
57
|
+
home: Home,
|
|
58
|
+
'hydro-power': HydroPower,
|
|
59
|
+
info: Info,
|
|
60
|
+
link: Link,
|
|
61
|
+
logo: Logo,
|
|
62
|
+
'mail-open': MailOpen,
|
|
63
|
+
mail: Mail,
|
|
64
|
+
menu: Menu,
|
|
65
|
+
'message-filled': MessageFilled,
|
|
66
|
+
message: Message,
|
|
67
|
+
minus: Minus,
|
|
68
|
+
mobile: Mobile,
|
|
69
|
+
'new-window': NewWindow,
|
|
70
|
+
'payment-card-filled': PaymentCardFilled,
|
|
71
|
+
'payment-card': PaymentCard,
|
|
72
|
+
phone: Phone,
|
|
73
|
+
plus: Plus,
|
|
74
|
+
pound: Pound,
|
|
75
|
+
'pricing-filled': PricingFilled,
|
|
76
|
+
pricing: Pricing,
|
|
77
|
+
search: Search,
|
|
78
|
+
security: Security,
|
|
79
|
+
'shop-filled': ShopFilled,
|
|
80
|
+
shop: Shop,
|
|
81
|
+
show: Show,
|
|
82
|
+
'smart-home': SmartHome,
|
|
83
|
+
'smart-meter': SmartMeter,
|
|
84
|
+
solar: Solar,
|
|
85
|
+
'star-filled': StarFilled,
|
|
86
|
+
star: Star,
|
|
87
|
+
sun: Sun,
|
|
88
|
+
torch: Torch,
|
|
89
|
+
trees: Trees,
|
|
90
|
+
tune: Tune,
|
|
91
|
+
'user-filled': UserFilled,
|
|
92
|
+
user: User,
|
|
93
|
+
wallet: Wallet,
|
|
94
|
+
'warm-home': WarmHome,
|
|
95
|
+
warning: Warning,
|
|
96
|
+
'web-address': WebAddress,
|
|
97
|
+
'wind-power': WindPower,
|
|
98
|
+
};
|
|
99
|
+
const IconsContext = createContext(null);
|
|
100
|
+
function useIcons() {
|
|
101
|
+
const icons = useContext(IconsContext) || defaultIcons;
|
|
102
|
+
return icons;
|
|
103
|
+
}
|
|
104
|
+
function IconsProvider({ children, icons = {}, }) {
|
|
105
|
+
const baseIcons = useContext(IconsContext) || defaultIcons;
|
|
106
|
+
const mergedIcons = {
|
|
107
|
+
...baseIcons,
|
|
108
|
+
...icons,
|
|
109
|
+
};
|
|
110
|
+
return (_jsx(IconsContext.Provider, { value: mergedIcons, children: children }));
|
|
111
|
+
}
|
|
112
|
+
export { useIcons, IconsProvider, defaultIcons };
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import Svg, { Path } from 'react-native-svg';
|
|
3
|
+
export const Address = (props) => (_jsx(Svg, { viewBox: "0 0 16 16", ...props, children: _jsx(Path, { fill: "currentColor", fillRule: "evenodd", d: "M2.5 6.45C2.5 2.853 5.76 1.5 8 1.5s5.5 1.478 5.5 4.95C13.5 9.922 8 14.5 8 14.5s-5.5-4.454-5.5-8.05Zm7.145 4.313c.723-.835 1.295-1.623 1.697-2.34.43-.77.658-1.452.658-1.973 0-1.072-.437-1.936-1.297-2.568-.886-.65-1.958-.881-2.703-.881-.745 0-1.85.222-2.714.844C4.421 4.466 4 5.319 4 6.45c0 .624.305 2.02 2.349 4.353a24.081 24.081 0 0 0 1.64 1.686 25.59 25.59 0 0 0 1.656-1.726ZM7.09 5.385l1.437-.381.381 1.437-1.437.381-.381-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 Advice = (props) => (_jsx(Svg, { viewBox: "0 0 16 16", ...props, children: _jsx(Path, { fill: "currentColor", d: "M14.5 5.5h-1.59c-.441-2.275-2.475-4-4.91-4s-4.469 1.725-4.91 4H1.5v5H5v-5h-.369C5.046 4.06 6.4 3 8 3c1.601 0 2.954 1.06 3.368 2.5H11v4.983h.502a2.757 2.757 0 0 1-1.99 2.42V12.2h-1.5v2.307h.75a4.256 4.256 0 0 0 4.244-4.024h1.495V5.498L14.5 5.5ZM3.5 9H3V7h.5v2Zm9-2h.5v1.983h-.5V7Z" }) }));
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import Svg, { Path } from 'react-native-svg';
|
|
3
|
+
export const Archive = (props) => (_jsx(Svg, { viewBox: "0 0 16 16", ...props, children: _jsx(Path, { fill: "currentColor", fillRule: "evenodd", d: "M1.5 7V3h13v4h-.75v4.1l-1.5.402.402 1.498H2.25V7H1.5Zm2.25 4.5h8.5V7h-8.5v4.5ZM3 5.5h10v-1H3v1Zm4.09 3.222 1.438-.382.381 1.437-1.437.382-.381-1.438Z", 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 ArrowDown = (props) => (_jsx(Svg, { viewBox: "0 0 16 16", ...props, children: _jsx(Path, { fill: "currentColor", d: "m9.051 13.402 3.62-3.62-.449-1.672-3.481 3.481V1.53l-1.5.402v9.659L3.766 8.117 3.318 9.79l3.612 3.612 1.06 1.06 1.061-1.06Z" }) }));
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import Svg, { Path } from 'react-native-svg';
|
|
3
|
+
export const ArrowLeft = (props) => (_jsx(Svg, { viewBox: "0 0 16 16", ...props, children: _jsx(Path, { fill: "currentColor", d: "m2.589 6.94 3.619-3.62 1.673.449L4.399 7.25H14.46l-.402 1.5H4.4l3.474 3.474-1.673.448L2.59 9.061 1.528 8l1.061-1.06Z" }) }));
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import Svg, { Path } from 'react-native-svg';
|
|
3
|
+
export const ArrowRight = (props) => (_jsx(Svg, { viewBox: "0 0 16 16", ...props, children: _jsx(Path, { fill: "currentColor", d: "M13.4 6.94 9.78 3.32l-1.672.449 3.481 3.481H1.528l.402 1.5h9.66l-3.474 3.474 1.673.448L13.4 9.061 14.46 8 13.4 6.94Z" }) }));
|