@ovotech/element-native 3.8.1 → 4.0.0-canary-a872093-246
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/components/package.json +6 -0
- package/dist/components/Accordion/Accordion.d.ts +2 -3
- package/dist/components/Accordion/Accordion.js +130 -97
- package/dist/components/Accordion/Group.js +21 -21
- package/dist/components/Accordion/Icon.js +60 -59
- package/dist/components/Accordion/index.d.ts +1 -1
- package/dist/components/Accordion/index.js +9 -19
- package/dist/components/Accordion/styles.d.ts +20 -2
- package/dist/components/Accordion/styles.js +59 -50
- package/dist/components/Accordion/types.d.ts +2 -2
- package/dist/components/Accordion/types.js +2 -1
- package/dist/components/ActionCard/ActionCard.d.ts +1 -1
- package/dist/components/ActionCard/ActionCard.js +104 -376
- package/dist/components/ActionCard/CloseIconShape.js +40 -14
- package/dist/components/ActionCard/IndicatorIconShape.js +40 -11
- package/dist/components/ActionCard/index.js +5 -185
- package/dist/components/ActionList/ActionList.d.ts +3 -4
- package/dist/components/ActionList/ActionList.js +56 -202
- package/dist/components/ActionList/index.js +6 -100
- package/dist/components/ActionList/styled.d.ts +523 -5
- package/dist/components/ActionList/styled.js +65 -152
- package/dist/components/Badge/Badge.d.ts +9 -3
- package/dist/components/Badge/Badge.js +96 -39
- package/dist/components/Badge/index.js +5 -8
- package/dist/components/CTAButton/CTAButton.d.ts +9 -8
- package/dist/components/CTAButton/CTAButton.js +118 -181
- package/dist/components/CTAButton/index.js +8 -100
- package/dist/components/CTALink/CTALink.d.ts +5 -5
- package/dist/components/CTALink/CTALink.js +22 -105
- package/dist/components/CTALink/index.js +7 -100
- package/dist/components/Card/Card.d.ts +7 -483
- package/dist/components/Card/Card.js +43 -17
- package/dist/components/Card/index.js +5 -7
- package/dist/components/Checkbox/Checkbox.js +78 -173
- package/dist/components/Checkbox/CheckboxField.d.ts +1 -1
- package/dist/components/Checkbox/CheckboxField.js +43 -39
- package/dist/components/Checkbox/index.js +7 -105
- package/dist/components/CurrencyField/CurrencyField.d.ts +1 -1
- package/dist/components/CurrencyField/CurrencyField.js +32 -109
- package/dist/components/CurrencyField/index.js +5 -108
- package/dist/components/CurrencyInput/CurrencyInput.d.ts +2 -2
- package/dist/components/CurrencyInput/CurrencyInput.js +36 -118
- package/dist/components/CurrencyInput/index.d.ts +1 -1
- package/dist/components/CurrencyInput/index.js +5 -100
- package/dist/components/DataTable/DataTable.js +45 -62
- package/dist/components/DataTable/TableRow.js +35 -44
- package/dist/components/DataTable/index.js +20 -25
- package/dist/components/DataTable/styles.d.ts +78 -0
- package/dist/components/DataTable/styles.js +86 -119
- package/dist/components/DataTable/types.d.ts +4 -4
- package/dist/components/DataTable/types.js +2 -1
- package/dist/components/DateField/DateField.d.ts +3 -4
- package/dist/components/DateField/DateField.js +87 -229
- package/dist/components/DateField/index.js +5 -107
- package/dist/components/DescriptionList/DescriptionList.d.ts +2 -2
- package/dist/components/DescriptionList/DescriptionList.js +43 -25
- package/dist/components/DescriptionList/index.js +6 -13
- package/dist/components/DescriptionList/styled.d.ts +6 -0
- package/dist/components/DescriptionList/styled.js +85 -42
- package/dist/components/Disclosure/Disclosure.js +79 -153
- package/dist/components/Disclosure/index.js +16 -96
- package/dist/components/Divider/Divider.d.ts +1 -1
- package/dist/components/Divider/Divider.js +43 -12
- package/dist/components/Divider/index.js +5 -7
- package/dist/components/Em/Em.d.ts +6 -0
- package/dist/components/Em/Em.js +12 -8
- package/dist/components/Em/index.js +5 -6
- package/dist/components/EmailField/EmailField.d.ts +1 -1
- package/dist/components/EmailField/EmailField.js +32 -108
- package/dist/components/EmailField/index.js +5 -107
- package/dist/components/EmailInput/EmailInput.d.ts +1 -1
- package/dist/components/EmailInput/EmailInput.js +18 -106
- package/dist/components/EmailInput/index.js +5 -98
- package/dist/components/ErrorSummaryNotification/ErrorSummaryNotification.d.ts +2 -2
- package/dist/components/ErrorSummaryNotification/ErrorSummaryNotification.js +50 -115
- package/dist/components/ErrorSummaryNotification/index.js +5 -104
- package/dist/components/ErrorText/ErrorText.d.ts +6 -0
- package/dist/components/ErrorText/ErrorText.js +42 -22
- package/dist/components/ErrorText/index.js +5 -11
- package/dist/components/Field/Field.d.ts +2 -2
- package/dist/components/Field/Field.js +58 -62
- package/dist/components/Field/index.js +16 -16
- package/dist/components/FilterSelect/FilterSelect.d.ts +2 -2
- package/dist/components/FilterSelect/FilterSelect.js +77 -201
- package/dist/components/FilterSelect/index.js +5 -102
- package/dist/components/FormGroup/FormGroup.d.ts +1 -1
- package/dist/components/FormGroup/FormGroup.js +42 -9
- package/dist/components/FormGroup/index.js +5 -8
- package/dist/components/Grid/Col.d.ts +7 -1
- package/dist/components/Grid/Col.js +58 -32
- package/dist/components/Grid/Row.d.ts +6 -0
- package/dist/components/Grid/Row.js +72 -34
- package/dist/components/Grid/index.js +7 -13
- package/dist/components/Heading1/Heading1.js +70 -36
- package/dist/components/Heading1/index.js +5 -10
- package/dist/components/Heading2/Heading2.js +70 -36
- package/dist/components/Heading2/index.js +5 -10
- package/dist/components/Heading3/Heading3.js +70 -36
- package/dist/components/Heading3/index.js +5 -10
- package/dist/components/Heading4/Heading4.js +70 -36
- package/dist/components/Heading4/index.js +5 -10
- package/dist/components/HintText/HintText.d.ts +6 -0
- package/dist/components/HintText/HintText.js +42 -22
- package/dist/components/HintText/index.js +5 -11
- package/dist/components/Icon/Icon.d.ts +2 -2
- package/dist/components/Icon/Icon.js +38 -103
- package/dist/components/Icon/index.js +5 -93
- package/dist/components/Input/Input.d.ts +1 -1
- package/dist/components/Input/Input.js +97 -198
- package/dist/components/Label/Label.js +50 -18
- package/dist/components/Label/index.js +5 -8
- package/dist/components/LabelText/LabelText.d.ts +6 -0
- package/dist/components/LabelText/LabelText.js +42 -20
- package/dist/components/LabelText/index.js +5 -11
- package/dist/components/Lead/Lead.js +52 -18
- package/dist/components/Lead/index.js +5 -8
- package/dist/components/LineThrough/LineThrough.d.ts +6 -0
- package/dist/components/LineThrough/LineThrough.js +12 -7
- package/dist/components/LineThrough/index.js +5 -6
- package/dist/components/List/List.d.ts +1 -1
- package/dist/components/List/List.js +32 -38
- package/dist/components/List/index.js +7 -16
- package/dist/components/List/styled.d.ts +25 -0
- package/dist/components/List/styled.js +52 -37
- package/dist/components/Margin/Margin.d.ts +8 -2
- package/dist/components/Margin/Margin.js +50 -68
- package/dist/components/Margin/index.js +5 -11
- package/dist/components/NavHeader/IconButton.d.ts +2 -2
- package/dist/components/NavHeader/IconButton.js +18 -119
- package/dist/components/NavHeader/NavHeader.d.ts +11 -3
- package/dist/components/NavHeader/NavHeader.js +65 -181
- package/dist/components/NavHeader/NavHeader.styles.d.ts +543 -7
- package/dist/components/NavHeader/NavHeader.styles.js +72 -81
- package/dist/components/NavHeader/index.d.ts +1 -1
- package/dist/components/NavHeader/index.js +5 -104
- package/dist/components/Notification/Notification.d.ts +14 -2
- package/dist/components/Notification/Notification.js +103 -190
- package/dist/components/Notification/index.js +9 -100
- package/dist/components/NumberField/NumberField.d.ts +1 -1
- package/dist/components/NumberField/NumberField.js +32 -108
- package/dist/components/NumberField/index.js +5 -107
- package/dist/components/NumberInput/NumberInput.d.ts +1 -1
- package/dist/components/NumberInput/NumberInput.js +18 -106
- package/dist/components/NumberInput/index.js +5 -98
- package/dist/components/P/P.js +54 -23
- package/dist/components/P/index.js +5 -10
- package/dist/components/PasswordField/PasswordField.d.ts +1 -1
- package/dist/components/PasswordField/PasswordField.js +32 -110
- package/dist/components/PasswordField/index.js +5 -109
- package/dist/components/PasswordInput/PasswordInput.d.ts +1 -1
- package/dist/components/PasswordInput/PasswordInput.js +33 -123
- package/dist/components/PasswordInput/PasswordInput.styled.d.ts +7 -1
- package/dist/components/PasswordInput/PasswordInput.styled.js +37 -18
- package/dist/components/PasswordInput/PasswordVisibilityToggle.d.ts +1 -1
- package/dist/components/PasswordInput/PasswordVisibilityToggle.js +26 -128
- package/dist/components/PasswordInput/index.js +5 -100
- package/dist/components/PhoneField/PhoneField.d.ts +1 -1
- package/dist/components/PhoneField/PhoneField.js +32 -108
- package/dist/components/PhoneField/index.js +5 -107
- package/dist/components/PhoneInput/PhoneInput.d.ts +1 -1
- package/dist/components/PhoneInput/PhoneInput.js +17 -106
- package/dist/components/PhoneInput/index.js +5 -98
- package/dist/components/ProductCarousel/NavigationDots.js +74 -57
- package/dist/components/ProductCarousel/ProductCarousel.js +126 -2174
- package/dist/components/ProductCarousel/anchor-point.js +51 -31
- package/dist/components/ProductCarousel/index.js +5 -101
- package/dist/components/Radio/Radio.js +67 -69
- package/dist/components/Radio/RadioField.d.ts +1 -1
- package/dist/components/Radio/RadioField.js +47 -46
- package/dist/components/Radio/index.js +7 -18
- package/dist/components/RadioCard/RadioCard.js +71 -68
- package/dist/components/RadioCard/index.js +5 -13
- package/dist/components/SelectField/Select.d.ts +8 -2
- package/dist/components/SelectField/Select.js +93 -852
- package/dist/components/SelectField/SelectField.d.ts +1 -1
- package/dist/components/SelectField/SelectField.js +32 -125
- package/dist/components/SelectField/index.js +5 -108
- package/dist/components/SkeletonAnimation/SkeletonAnimation.js +34 -47
- package/dist/components/SkeletonAnimation/index.js +5 -7
- package/dist/components/SkeletonCTA/SkeletonCTA.d.ts +1 -1
- package/dist/components/SkeletonCTA/SkeletonCTA.js +41 -17
- package/dist/components/SkeletonCTA/index.js +5 -12
- package/dist/components/SkeletonCircle/SkeletonCircle.d.ts +1 -1
- package/dist/components/SkeletonCircle/SkeletonCircle.js +44 -16
- package/dist/components/SkeletonCircle/index.js +5 -10
- package/dist/components/SkeletonHeading/SkeletonHeading.d.ts +1 -1
- package/dist/components/SkeletonHeading/SkeletonHeading.js +40 -29
- package/dist/components/SkeletonHeading/index.js +5 -12
- package/dist/components/SkeletonText/SkeletonText.d.ts +1 -1
- package/dist/components/SkeletonText/SkeletonText.js +50 -33
- package/dist/components/SkeletonText/index.js +5 -12
- package/dist/components/Small/Small.d.ts +6 -0
- package/dist/components/Small/Small.js +38 -17
- package/dist/components/Small/index.js +5 -11
- package/dist/components/Spinner/Spinner.d.ts +2 -2
- package/dist/components/Spinner/Spinner.js +68 -61
- package/dist/components/Spinner/index.js +5 -9
- package/dist/components/Stack/Stack.d.ts +1 -1
- package/dist/components/Stack/Stack.js +48 -30
- package/dist/components/Stack/index.js +5 -11
- package/dist/components/Stretch/Stretch.d.ts +1 -1
- package/dist/components/Stretch/Stretch.js +55 -11
- package/dist/components/Stretch/index.js +16 -8
- package/dist/components/Strong/Strong.d.ts +6 -0
- package/dist/components/Strong/Strong.js +10 -9
- package/dist/components/Strong/index.js +5 -6
- package/dist/components/SubLabelText/SubLabelText.d.ts +6 -0
- package/dist/components/SubLabelText/SubLabelText.js +42 -20
- package/dist/components/SubLabelText/index.js +5 -11
- package/dist/components/Tabs/Tab.d.ts +1 -2
- package/dist/components/Tabs/Tab.js +76 -60
- package/dist/components/Tabs/TabList.d.ts +2 -2
- package/dist/components/Tabs/TabList.js +77 -37
- package/dist/components/Tabs/TabPanel.js +64 -15
- package/dist/components/Tabs/Tabs.d.ts +2 -3
- package/dist/components/Tabs/Tabs.js +97 -46
- package/dist/components/Tabs/index.js +11 -19
- package/dist/components/TextField/TextField.d.ts +1 -1
- package/dist/components/TextField/TextField.js +32 -108
- package/dist/components/TextField/index.js +5 -107
- package/dist/components/TextGroup/TextGroup.js +40 -23
- package/dist/components/TextGroup/index.js +5 -7
- package/dist/components/TextInput/TextInput.d.ts +1 -1
- package/dist/components/TextInput/TextInput.js +18 -97
- package/dist/components/TextInput/index.js +5 -98
- package/dist/components/TextLink/TextLink.js +74 -118
- package/dist/components/TextLink/index.js +5 -97
- package/dist/components/TextareaField/TextareaField.d.ts +1 -1
- package/dist/components/TextareaField/TextareaField.js +32 -108
- package/dist/components/TextareaField/index.js +5 -107
- package/dist/components/TextareaInput/TextareaInput.d.ts +2 -2
- package/dist/components/TextareaInput/TextareaInput.js +65 -114
- package/dist/components/TextareaInput/index.d.ts +1 -1
- package/dist/components/TextareaInput/index.js +5 -98
- package/dist/components/Toast/Toast.d.ts +1 -1
- package/dist/components/Toast/Toast.js +159 -730
- package/dist/components/Toast/index.js +6 -105
- package/dist/components/Toggle/Toggle.d.ts +1 -1
- package/dist/components/Toggle/Toggle.js +55 -73
- package/dist/components/Toggle/index.js +5 -14
- package/dist/components/Toggle/styles.d.ts +25 -1
- package/dist/components/Toggle/styles.js +28 -38
- package/dist/components/index.d.ts +0 -3
- package/dist/components/index.js +77 -296
- package/dist/esm/components/Accordion/Accordion.js +106 -0
- package/dist/esm/components/Accordion/Group.js +18 -0
- package/dist/esm/components/Accordion/Icon.js +35 -0
- package/dist/esm/components/Accordion/index.js +3 -0
- package/dist/esm/components/Accordion/styles.js +31 -0
- package/dist/esm/components/ActionCard/ActionCard.js +77 -0
- package/dist/esm/components/ActionCard/CloseIconShape.js +11 -0
- package/dist/esm/components/ActionCard/IndicatorIconShape.js +11 -0
- package/dist/esm/components/ActionCard/index.js +1 -0
- package/dist/esm/components/ActionList/ActionList.js +54 -0
- package/dist/esm/components/ActionList/index.js +1 -0
- package/dist/esm/components/ActionList/styled.js +40 -0
- package/dist/esm/components/Badge/Badge.js +70 -0
- package/dist/esm/components/Badge/index.js +1 -0
- package/dist/esm/components/CTAButton/CTAButton.js +90 -0
- package/dist/esm/components/CTAButton/index.js +1 -0
- package/dist/esm/components/CTALink/CTALink.js +18 -0
- package/dist/esm/components/CTALink/index.js +1 -0
- package/dist/esm/components/Card/Card.js +37 -0
- package/dist/esm/components/Card/index.js +1 -0
- package/dist/esm/components/Checkbox/Checkbox.js +74 -0
- package/dist/esm/components/Checkbox/CheckboxField.js +42 -0
- package/dist/esm/components/Checkbox/index.js +2 -0
- package/dist/esm/components/CurrencyField/CurrencyField.js +30 -0
- package/dist/esm/components/CurrencyField/index.js +1 -0
- package/dist/esm/components/CurrencyInput/CurrencyInput.js +34 -0
- package/dist/esm/components/CurrencyInput/index.js +1 -0
- package/dist/esm/components/DataTable/DataTable.js +43 -0
- package/dist/esm/components/DataTable/TableRow.js +33 -0
- package/dist/esm/components/DataTable/index.js +3 -0
- package/dist/esm/components/DataTable/styles.js +61 -0
- package/dist/esm/components/DataTable/types.js +1 -0
- package/dist/esm/components/DateField/DateField.js +63 -0
- package/dist/esm/components/DateField/index.js +1 -0
- package/dist/esm/components/DescriptionList/DescriptionList.js +40 -0
- package/dist/esm/components/DescriptionList/index.js +1 -0
- package/dist/esm/components/DescriptionList/styled.js +58 -0
- package/dist/esm/components/Disclosure/Disclosure.js +55 -0
- package/dist/esm/components/Disclosure/index.js +1 -0
- package/dist/esm/components/Divider/Divider.js +17 -0
- package/dist/esm/components/Divider/index.js +1 -0
- package/dist/esm/components/Em/Em.js +7 -0
- package/dist/esm/components/Em/index.js +1 -0
- package/dist/esm/components/EmailField/EmailField.js +30 -0
- package/dist/esm/components/EmailField/index.js +1 -0
- package/dist/esm/components/EmailInput/EmailInput.js +16 -0
- package/dist/esm/components/EmailInput/index.js +1 -0
- package/dist/esm/components/ErrorSummaryNotification/ErrorSummaryNotification.js +49 -0
- package/dist/esm/components/ErrorSummaryNotification/index.js +1 -0
- package/dist/esm/components/ErrorText/ErrorText.js +17 -0
- package/dist/esm/components/ErrorText/index.js +1 -0
- package/dist/esm/components/Field/Field.js +58 -0
- package/dist/esm/components/Field/index.js +1 -0
- package/dist/esm/components/FilterSelect/FilterSelect.js +52 -0
- package/dist/esm/components/FilterSelect/index.js +1 -0
- package/dist/esm/components/FormGroup/FormGroup.js +37 -0
- package/dist/esm/components/FormGroup/index.js +1 -0
- package/dist/esm/components/Grid/Col.js +33 -0
- package/dist/esm/components/Grid/Row.js +47 -0
- package/dist/esm/components/Grid/index.js +2 -0
- package/dist/esm/components/Heading1/Heading1.js +46 -0
- package/dist/esm/components/Heading1/index.js +1 -0
- package/dist/esm/components/Heading2/Heading2.js +46 -0
- package/dist/esm/components/Heading2/index.js +1 -0
- package/dist/esm/components/Heading3/Heading3.js +46 -0
- package/dist/esm/components/Heading3/index.js +1 -0
- package/dist/esm/components/Heading4/Heading4.js +46 -0
- package/dist/esm/components/Heading4/index.js +1 -0
- package/dist/esm/components/HintText/HintText.js +17 -0
- package/dist/esm/components/HintText/index.js +1 -0
- package/dist/esm/components/Icon/Icon.js +36 -0
- package/dist/esm/components/Icon/index.js +1 -0
- package/dist/esm/components/Input/Input.js +74 -0
- package/dist/esm/components/Label/Label.js +25 -0
- package/dist/esm/components/Label/index.js +1 -0
- package/dist/esm/components/LabelText/LabelText.js +17 -0
- package/dist/esm/components/LabelText/index.js +1 -0
- package/dist/esm/components/Lead/Lead.js +27 -0
- package/dist/esm/components/Lead/index.js +1 -0
- package/dist/esm/components/LineThrough/LineThrough.js +7 -0
- package/dist/esm/components/LineThrough/index.js +1 -0
- package/dist/esm/components/List/List.js +29 -0
- package/dist/esm/components/List/index.js +1 -0
- package/dist/esm/components/List/styled.js +27 -0
- package/dist/esm/components/Margin/Margin.js +46 -0
- package/dist/esm/components/Margin/index.js +1 -0
- package/dist/esm/components/NavHeader/IconButton.js +16 -0
- package/dist/esm/components/NavHeader/NavHeader.js +42 -0
- package/dist/esm/components/NavHeader/NavHeader.styles.js +44 -0
- package/dist/esm/components/NavHeader/index.js +1 -0
- package/dist/esm/components/Notification/Notification.js +78 -0
- package/dist/esm/components/Notification/index.js +1 -0
- package/dist/esm/components/NumberField/NumberField.js +30 -0
- package/dist/esm/components/NumberField/index.js +1 -0
- package/dist/esm/components/NumberInput/NumberInput.js +16 -0
- package/dist/esm/components/NumberInput/index.js +1 -0
- package/dist/esm/components/P/P.js +29 -0
- package/dist/esm/components/P/index.js +1 -0
- package/dist/esm/components/PasswordField/PasswordField.js +30 -0
- package/dist/esm/components/PasswordField/index.js +1 -0
- package/dist/esm/components/PasswordInput/PasswordInput.js +32 -0
- package/dist/esm/components/PasswordInput/PasswordInput.styled.js +12 -0
- package/dist/esm/components/PasswordInput/PasswordVisibilityToggle.js +23 -0
- package/dist/esm/components/PasswordInput/index.js +1 -0
- package/dist/esm/components/PhoneField/PhoneField.js +30 -0
- package/dist/esm/components/PhoneField/index.js +1 -0
- package/dist/esm/components/PhoneInput/PhoneInput.js +15 -0
- package/dist/esm/components/PhoneInput/index.js +1 -0
- package/dist/esm/components/ProductCarousel/NavigationDots.js +50 -0
- package/dist/esm/components/ProductCarousel/ProductCarousel.js +98 -0
- package/dist/esm/components/ProductCarousel/anchor-point.js +49 -0
- package/dist/esm/components/ProductCarousel/index.js +1 -0
- package/dist/esm/components/Radio/Radio.js +62 -0
- package/dist/esm/components/Radio/RadioField.js +46 -0
- package/dist/esm/components/Radio/index.js +2 -0
- package/dist/esm/components/RadioCard/RadioCard.js +66 -0
- package/dist/esm/components/RadioCard/index.js +1 -0
- package/dist/esm/components/SelectField/Select.js +66 -0
- package/dist/esm/components/SelectField/SelectField.js +29 -0
- package/dist/esm/components/SelectField/index.js +1 -0
- package/dist/esm/components/SkeletonAnimation/SkeletonAnimation.js +31 -0
- package/dist/esm/components/SkeletonAnimation/index.js +1 -0
- package/dist/esm/components/SkeletonCTA/SkeletonCTA.js +35 -0
- package/dist/esm/components/SkeletonCTA/index.js +1 -0
- package/dist/esm/components/SkeletonCircle/SkeletonCircle.js +38 -0
- package/dist/esm/components/SkeletonCircle/index.js +1 -0
- package/dist/esm/components/SkeletonHeading/SkeletonHeading.js +34 -0
- package/dist/esm/components/SkeletonHeading/index.js +1 -0
- package/dist/esm/components/SkeletonText/SkeletonText.js +45 -0
- package/dist/esm/components/SkeletonText/index.js +1 -0
- package/dist/esm/components/Small/Small.js +13 -0
- package/dist/esm/components/Small/index.js +1 -0
- package/dist/esm/components/Spinner/Spinner.js +44 -0
- package/dist/esm/components/Spinner/index.js +1 -0
- package/dist/esm/components/Stack/Stack.js +43 -0
- package/dist/esm/components/Stack/index.js +1 -0
- package/dist/esm/components/Stretch/Stretch.js +29 -0
- package/dist/esm/components/Stretch/index.js +1 -0
- package/dist/esm/components/Strong/Strong.js +5 -0
- package/dist/esm/components/Strong/index.js +1 -0
- package/dist/esm/components/SubLabelText/SubLabelText.js +17 -0
- package/dist/esm/components/SubLabelText/index.js +1 -0
- package/dist/esm/components/Tabs/Tab.js +53 -0
- package/dist/esm/components/Tabs/TabList.js +51 -0
- package/dist/esm/components/Tabs/TabPanel.js +38 -0
- package/dist/esm/components/Tabs/Tabs.js +72 -0
- package/dist/esm/components/Tabs/index.js +4 -0
- package/dist/esm/components/TextField/TextField.js +30 -0
- package/dist/esm/components/TextField/index.js +1 -0
- package/dist/esm/components/TextGroup/TextGroup.js +39 -0
- package/dist/esm/components/TextGroup/index.js +1 -0
- package/dist/esm/components/TextInput/TextInput.js +16 -0
- package/dist/esm/components/TextInput/index.js +1 -0
- package/dist/esm/components/TextLink/TextLink.js +49 -0
- package/dist/esm/components/TextLink/index.js +1 -0
- package/dist/esm/components/TextareaField/TextareaField.js +30 -0
- package/dist/esm/components/TextareaField/index.js +1 -0
- package/dist/esm/components/TextareaInput/TextareaInput.js +41 -0
- package/dist/esm/components/TextareaInput/index.js +1 -0
- package/dist/esm/components/Toast/Toast.js +141 -0
- package/dist/esm/components/Toast/index.js +1 -0
- package/dist/esm/components/Toggle/Toggle.js +53 -0
- package/dist/esm/components/Toggle/index.js +1 -0
- package/dist/esm/components/Toggle/styles.js +23 -0
- package/dist/esm/components/index.js +62 -0
- package/dist/esm/hooks/index.js +2 -0
- package/dist/esm/hooks/use-breakpoint.js +12 -0
- package/dist/esm/hooks/use-full-width.js +16 -0
- package/dist/esm/hooks/use-layout.js +16 -0
- package/dist/esm/index.js +3 -0
- package/dist/esm/providers/IconsProvider.js +115 -0
- package/dist/esm/providers/icons/Address.js +14 -0
- package/dist/esm/providers/icons/Advice.js +14 -0
- package/dist/esm/providers/icons/Archive.js +14 -0
- package/dist/esm/providers/icons/ArrowDown.js +14 -0
- package/dist/esm/providers/icons/ArrowLeft.js +14 -0
- package/dist/esm/providers/icons/ArrowRight.js +14 -0
- package/dist/esm/providers/icons/ArrowUp.js +14 -0
- package/dist/esm/providers/icons/Award.js +14 -0
- package/dist/esm/providers/icons/Battery.js +14 -0
- package/dist/esm/providers/icons/Cal.js +14 -0
- package/dist/esm/providers/icons/CalBook.js +14 -0
- package/dist/esm/providers/icons/CaretDown.js +14 -0
- package/dist/esm/providers/icons/CaretLeft.js +14 -0
- package/dist/esm/providers/icons/CaretRight.js +14 -0
- package/dist/esm/providers/icons/CaretUp.js +14 -0
- package/dist/esm/providers/icons/Chart.js +14 -0
- package/dist/esm/providers/icons/ChartFilled.js +14 -0
- package/dist/esm/providers/icons/Check.js +14 -0
- package/dist/esm/providers/icons/CheckCircle.js +14 -0
- package/dist/esm/providers/icons/ChevronDown.js +14 -0
- package/dist/esm/providers/icons/ChevronLeft.js +14 -0
- package/dist/esm/providers/icons/ChevronLeftSmall.js +14 -0
- package/dist/esm/providers/icons/ChevronLeftSmallFirst.js +14 -0
- package/dist/esm/providers/icons/ChevronRight.js +14 -0
- package/dist/esm/providers/icons/ChevronRightSmall.js +14 -0
- package/dist/esm/providers/icons/ChevronRightSmallLast.js +14 -0
- package/dist/esm/providers/icons/ChevronUp.js +14 -0
- package/dist/esm/providers/icons/Circle.js +14 -0
- package/dist/esm/providers/icons/CloseCircle.js +14 -0
- package/dist/esm/providers/icons/Cross.js +14 -0
- package/dist/esm/providers/icons/Doc.js +14 -0
- package/dist/esm/providers/icons/Dollar.js +14 -0
- package/dist/esm/providers/icons/Download.js +14 -0
- package/dist/esm/providers/icons/Eco.js +14 -0
- package/dist/esm/providers/icons/EcoHome.js +14 -0
- package/dist/esm/providers/icons/Edit.js +14 -0
- package/dist/esm/providers/icons/ElectricCar.js +14 -0
- package/dist/esm/providers/icons/ElectricHome.js +14 -0
- package/dist/esm/providers/icons/Electricity.js +14 -0
- package/dist/esm/providers/icons/EnergyAdvice.js +14 -0
- package/dist/esm/providers/icons/Equals.js +14 -0
- package/dist/esm/providers/icons/Euro.js +14 -0
- package/dist/esm/providers/icons/Gas.js +14 -0
- package/dist/esm/providers/icons/GlobeAddress.js +14 -0
- package/dist/esm/providers/icons/Help.js +14 -0
- package/dist/esm/providers/icons/HelpFilled.js +14 -0
- package/dist/esm/providers/icons/Hide.js +14 -0
- package/dist/esm/providers/icons/Home.js +14 -0
- package/dist/esm/providers/icons/HomeFilled.js +14 -0
- package/dist/esm/providers/icons/HydroPower.js +14 -0
- package/dist/esm/providers/icons/Info.js +14 -0
- package/dist/esm/providers/icons/Link.js +14 -0
- package/dist/esm/providers/icons/Logo.js +14 -0
- package/dist/esm/providers/icons/Mail.js +14 -0
- package/dist/esm/providers/icons/MailOpen.js +14 -0
- package/dist/esm/providers/icons/Menu.js +14 -0
- package/dist/esm/providers/icons/Message.js +14 -0
- package/dist/esm/providers/icons/MessageFilled.js +14 -0
- package/dist/esm/providers/icons/Minus.js +14 -0
- package/dist/esm/providers/icons/Mobile.js +14 -0
- package/dist/esm/providers/icons/NewWindow.js +14 -0
- package/dist/esm/providers/icons/PaymentCard.js +14 -0
- package/dist/esm/providers/icons/PaymentCardFilled.js +14 -0
- package/dist/esm/providers/icons/Phone.js +14 -0
- package/dist/esm/providers/icons/Plus.js +14 -0
- package/dist/esm/providers/icons/Pound.js +14 -0
- package/dist/esm/providers/icons/Pricing.js +14 -0
- package/dist/esm/providers/icons/Search.js +14 -0
- package/dist/esm/providers/icons/Security.js +14 -0
- package/dist/esm/providers/icons/Show.js +14 -0
- package/dist/esm/providers/icons/SmartHome.js +14 -0
- package/dist/esm/providers/icons/SmartMeter.js +14 -0
- package/dist/esm/providers/icons/Solar.js +14 -0
- package/dist/esm/providers/icons/Star.js +14 -0
- package/dist/esm/providers/icons/StarFilled.js +14 -0
- package/dist/esm/providers/icons/Sun.js +14 -0
- package/dist/esm/providers/icons/Torch.js +14 -0
- package/dist/esm/providers/icons/Trees.js +14 -0
- package/dist/esm/providers/icons/Tune.js +14 -0
- package/dist/esm/providers/icons/User.js +14 -0
- package/dist/esm/providers/icons/UserFilled.js +14 -0
- package/dist/esm/providers/icons/Wallet.js +14 -0
- package/dist/esm/providers/icons/WalletFilled.js +14 -0
- package/dist/esm/providers/icons/WarmHome.js +14 -0
- package/dist/esm/providers/icons/Warning.js +14 -0
- package/dist/esm/providers/icons/WebAddress.js +14 -0
- package/dist/esm/providers/icons/WindPower.js +14 -0
- package/dist/esm/providers/icons/index.js +87 -0
- package/dist/esm/providers/index.js +2 -0
- package/dist/esm/providers/types.js +1 -0
- package/dist/esm/styled.native.js +4 -0
- package/dist/esm/theme/index.js +1 -0
- package/dist/esm/utils/index.js +1 -0
- package/dist/esm/utils/utils.js +95 -0
- package/dist/hooks/index.js +17 -8
- package/dist/hooks/use-breakpoint.d.ts +2 -2
- package/dist/hooks/use-breakpoint.js +15 -15
- package/dist/hooks/use-full-width.d.ts +1 -1
- package/dist/hooks/use-full-width.js +19 -16
- package/dist/hooks/use-layout.js +19 -17
- package/dist/index.d.ts +0 -2
- package/dist/index.js +18 -320
- package/dist/providers/IconsProvider.js +118 -189
- package/dist/providers/icons/Address.js +40 -13
- package/dist/providers/icons/Advice.js +40 -11
- package/dist/providers/icons/Archive.js +40 -13
- package/dist/providers/icons/ArrowDown.js +40 -11
- package/dist/providers/icons/ArrowLeft.js +40 -11
- package/dist/providers/icons/ArrowRight.js +40 -11
- package/dist/providers/icons/ArrowUp.js +40 -11
- package/dist/providers/icons/Award.js +40 -13
- package/dist/providers/icons/Battery.js +40 -13
- package/dist/providers/icons/Cal.js +40 -11
- package/dist/providers/icons/CalBook.js +40 -13
- package/dist/providers/icons/CaretDown.js +40 -5
- package/dist/providers/icons/CaretLeft.js +40 -5
- package/dist/providers/icons/CaretRight.js +40 -5
- package/dist/providers/icons/CaretUp.js +40 -5
- package/dist/providers/icons/Chart.js +40 -13
- package/dist/providers/icons/ChartFilled.js +40 -11
- package/dist/providers/icons/Check.js +40 -11
- package/dist/providers/icons/CheckCircle.js +40 -13
- package/dist/providers/icons/ChevronDown.js +40 -11
- package/dist/providers/icons/ChevronLeft.js +40 -11
- package/dist/providers/icons/ChevronLeftSmall.js +40 -11
- package/dist/providers/icons/ChevronLeftSmallFirst.js +40 -13
- package/dist/providers/icons/ChevronRight.js +40 -11
- package/dist/providers/icons/ChevronRightSmall.js +40 -11
- package/dist/providers/icons/ChevronRightSmallLast.js +40 -13
- package/dist/providers/icons/ChevronUp.js +40 -11
- package/dist/providers/icons/Circle.js +17 -5
- package/dist/providers/icons/CloseCircle.js +40 -13
- package/dist/providers/icons/Cross.js +40 -11
- package/dist/providers/icons/Doc.js +40 -11
- package/dist/providers/icons/Dollar.js +40 -13
- package/dist/providers/icons/Download.js +40 -13
- package/dist/providers/icons/Eco.js +40 -11
- package/dist/providers/icons/EcoHome.js +40 -13
- package/dist/providers/icons/Edit.js +40 -13
- package/dist/providers/icons/ElectricCar.js +40 -13
- package/dist/providers/icons/ElectricHome.js +40 -13
- package/dist/providers/icons/Electricity.js +40 -11
- package/dist/providers/icons/EnergyAdvice.js +40 -13
- package/dist/providers/icons/Equals.js +40 -13
- package/dist/providers/icons/Euro.js +40 -13
- package/dist/providers/icons/Gas.js +40 -11
- package/dist/providers/icons/GlobeAddress.js +40 -11
- package/dist/providers/icons/Help.js +40 -13
- package/dist/providers/icons/HelpFilled.d.ts +2 -0
- package/dist/providers/icons/HelpFilled.js +41 -0
- package/dist/providers/icons/Hide.js +40 -11
- package/dist/providers/icons/Home.js +40 -11
- package/dist/providers/icons/HomeFilled.js +40 -11
- package/dist/providers/icons/HydroPower.js +40 -13
- package/dist/providers/icons/Info.js +40 -13
- package/dist/providers/icons/Link.js +39 -40
- package/dist/providers/icons/Logo.js +17 -11
- package/dist/providers/icons/Mail.js +40 -11
- package/dist/providers/icons/MailOpen.js +40 -11
- package/dist/providers/icons/Menu.js +40 -13
- package/dist/providers/icons/Message.js +40 -11
- package/dist/providers/icons/MessageFilled.js +40 -11
- package/dist/providers/icons/Minus.js +40 -5
- package/dist/providers/icons/Mobile.js +40 -13
- package/dist/providers/icons/NewWindow.js +39 -22
- package/dist/providers/icons/PaymentCard.js +40 -13
- package/dist/providers/icons/PaymentCardFilled.d.ts +2 -0
- package/dist/providers/icons/PaymentCardFilled.js +41 -0
- package/dist/providers/icons/Phone.js +40 -11
- package/dist/providers/icons/Plus.js +40 -11
- package/dist/providers/icons/Pound.js +40 -13
- package/dist/providers/icons/Pricing.js +40 -11
- package/dist/providers/icons/Search.js +40 -11
- package/dist/providers/icons/Security.js +40 -13
- package/dist/providers/icons/Show.js +40 -13
- package/dist/providers/icons/SmartHome.js +40 -13
- package/dist/providers/icons/SmartMeter.js +40 -13
- package/dist/providers/icons/Solar.js +40 -11
- package/dist/providers/icons/Star.js +40 -11
- package/dist/providers/icons/StarFilled.d.ts +2 -0
- package/dist/providers/icons/StarFilled.js +41 -0
- package/dist/providers/icons/Sun.js +40 -13
- package/dist/providers/icons/Torch.js +39 -13
- package/dist/providers/icons/Trees.js +40 -13
- package/dist/providers/icons/Tune.js +40 -13
- package/dist/providers/icons/User.js +40 -13
- package/dist/providers/icons/UserFilled.js +40 -11
- package/dist/providers/icons/Wallet.js +40 -13
- package/dist/providers/icons/WalletFilled.js +40 -11
- package/dist/providers/icons/WarmHome.js +40 -13
- package/dist/providers/icons/Warning.js +40 -13
- package/dist/providers/icons/WebAddress.js +40 -11
- package/dist/providers/icons/WindPower.js +40 -11
- package/dist/providers/icons/index.d.ts +3 -0
- package/dist/providers/icons/index.js +102 -171
- package/dist/providers/index.js +17 -92
- package/dist/providers/types.d.ts +3 -3
- package/dist/providers/types.js +2 -1
- package/dist/styled.native.d.ts +36 -0
- package/dist/styled.native.js +32 -8
- package/dist/theme/index.js +15 -970
- package/dist/utils/index.js +16 -14
- package/dist/utils/utils.d.ts +2 -1
- package/dist/utils/utils.js +104 -57
- package/package.json +13 -21
- package/dist/components/components.spec.native.js +0 -199
- package/dist/index-zQHKJ0fC.js +0 -180
- package/dist/styled.native-KEscfVp7.js +0 -3872
- package/dist/test/utils.d.ts +0 -4
- package/dist/test/utils.js +0 -16127
- package/dist/theme-native--5aKgQLJ.js +0 -482
- package/dist/theme-web-MrdqV6Ln.js +0 -482
- package/dist/utils-HsZygzDh.js +0 -26
- /package/dist/{components/components.spec.native.d.ts → esm/components/Accordion/types.js} +0 -0
package/dist/components/index.js
CHANGED
|
@@ -1,297 +1,78 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
import { CellText as Yr, RowHeading as Zr, SeparatorRowText as _r, StyledSeparatorRow as $r, StyledTableContainer as ot, TableBody as rt, TableCaption as tt, TableCaptionText as pt, TableCell as mt, TableHeader as it, TableHeaderText as et, TableRow as xt, TableRowHeading as ft } from "./DataTable/styles.js";
|
|
16
|
-
import { DateField as nt } from "./DateField/DateField.js";
|
|
17
|
-
import { DescriptionItem as dt, DescriptionList as Tt } from "./DescriptionList/DescriptionList.js";
|
|
18
|
-
import { Disclosure as ut } from "./Disclosure/Disclosure.js";
|
|
19
|
-
import { Divider as bt } from "./Divider/Divider.js";
|
|
20
|
-
import { Em as St } from "./Em/Em.js";
|
|
21
|
-
import { EmailField as At } from "./EmailField/EmailField.js";
|
|
22
|
-
import { EmailInput as Lt } from "./EmailInput/EmailInput.js";
|
|
23
|
-
import { ErrorSummaryNotification as It } from "./ErrorSummaryNotification/ErrorSummaryNotification.js";
|
|
24
|
-
import { Field as Ht } from "./Field/Field.js";
|
|
25
|
-
import { FilterSelect as Nt } from "./FilterSelect/FilterSelect.js";
|
|
26
|
-
import { Row as Rt } from "./Grid/Row.js";
|
|
27
|
-
import { Col as Dt } from "./Grid/Col.js";
|
|
28
|
-
import { Heading1 as Et } from "./Heading1/Heading1.js";
|
|
29
|
-
import { Heading2 as Gt } from "./Heading2/Heading2.js";
|
|
30
|
-
import { Heading3 as Ot } from "./Heading3/Heading3.js";
|
|
31
|
-
import { Heading4 as Wt } from "./Heading4/Heading4.js";
|
|
32
|
-
import { Icon as qt } from "./Icon/Icon.js";
|
|
33
|
-
import { Label as Jt } from "./Label/Label.js";
|
|
34
|
-
import { Lead as Qt } from "./Lead/Lead.js";
|
|
35
|
-
import { LineThrough as Xt } from "./LineThrough/LineThrough.js";
|
|
36
|
-
import { Li as Zt, Ol as _t, Ul as $t } from "./List/List.js";
|
|
37
|
-
import { Margin as rp } from "./Margin/Margin.js";
|
|
38
|
-
import { NavHeader as pp } from "./NavHeader/NavHeader.js";
|
|
39
|
-
import { ErrorNotification as ip, InfoNotification as ep, Notification as xp, SuccessNotification as fp, WarningNotification as ap } from "./Notification/Notification.js";
|
|
40
|
-
import { NumberField as lp } from "./NumberField/NumberField.js";
|
|
41
|
-
import { NumberInput as Tp } from "./NumberInput/NumberInput.js";
|
|
42
|
-
import { P as up } from "./P/P.js";
|
|
43
|
-
import { PasswordField as bp } from "./PasswordField/PasswordField.js";
|
|
44
|
-
import { PasswordInput as Sp } from "./PasswordInput/PasswordInput.js";
|
|
45
|
-
import { PhoneField as Ap } from "./PhoneField/PhoneField.js";
|
|
46
|
-
import { PhoneInput as Lp } from "./PhoneInput/PhoneInput.js";
|
|
47
|
-
import { Radio as Ip } from "./Radio/Radio.js";
|
|
48
|
-
import { RadioField as Hp } from "./Radio/RadioField.js";
|
|
49
|
-
import { SelectField as Np } from "./SelectField/SelectField.js";
|
|
50
|
-
import { SkeletonCircle as Rp } from "./SkeletonCircle/SkeletonCircle.js";
|
|
51
|
-
import { SkeletonCTA as Dp } from "./SkeletonCTA/SkeletonCTA.js";
|
|
52
|
-
import { SkeletonHeading as Ep } from "./SkeletonHeading/SkeletonHeading.js";
|
|
53
|
-
import { SkeletonText as Gp } from "./SkeletonText/SkeletonText.js";
|
|
54
|
-
import { Small as Op } from "./Small/Small.js";
|
|
55
|
-
import { Spinner as Wp } from "./Spinner/Spinner.js";
|
|
56
|
-
import { Stack as qp } from "./Stack/Stack.js";
|
|
57
|
-
import { Strong as Jp } from "./Strong/Strong.js";
|
|
58
|
-
import { Tabs as Qp } from "./Tabs/Tabs.js";
|
|
59
|
-
import { Tab as Xp } from "./Tabs/Tab.js";
|
|
60
|
-
import { TabList as Zp } from "./Tabs/TabList.js";
|
|
61
|
-
import { TabPanel as $p } from "./Tabs/TabPanel.js";
|
|
62
|
-
import { TextareaField as rm } from "./TextareaField/TextareaField.js";
|
|
63
|
-
import { TextareaInput as pm } from "./TextareaInput/TextareaInput.js";
|
|
64
|
-
import { TextField as im } from "./TextField/TextField.js";
|
|
65
|
-
import { TextGroup as xm } from "./TextGroup/TextGroup.js";
|
|
66
|
-
import { TextInput as am } from "./TextInput/TextInput.js";
|
|
67
|
-
import { TextLink as lm } from "./TextLink/TextLink.js";
|
|
68
|
-
import { Toggle as Tm } from "./Toggle/Toggle.js";
|
|
69
|
-
import { ToastsContainer as um, showToast as Cm } from "./Toast/Toast.js";
|
|
70
|
-
import { ProductCarousel as sm } from "./ProductCarousel/ProductCarousel.js";
|
|
71
|
-
import { RadioCard as gm } from "./RadioCard/RadioCard.js";
|
|
72
|
-
import { FormGroup as Fm } from "./FormGroup/FormGroup.js";
|
|
73
|
-
import { ErrorText as km } from "./ErrorText/ErrorText.js";
|
|
74
|
-
import { LabelText as ym } from "./LabelText/LabelText.js";
|
|
75
|
-
import "react/jsx-runtime";
|
|
76
|
-
import "react";
|
|
77
|
-
import "react-native-reanimated";
|
|
78
|
-
import "../hooks/use-layout.js";
|
|
79
|
-
import "../styled.native-KEscfVp7.js";
|
|
80
|
-
import "./Accordion/styles.js";
|
|
81
|
-
import "../utils-HsZygzDh.js";
|
|
82
|
-
import "../hooks/use-breakpoint.js";
|
|
83
|
-
import "react-native";
|
|
84
|
-
import "react-native-svg";
|
|
85
|
-
import "@react-native-masked-view/masked-view";
|
|
86
|
-
import "./HintText/HintText.js";
|
|
87
|
-
import "../utils/utils.js";
|
|
88
|
-
import "./DescriptionList/styled.js";
|
|
89
|
-
import "./List/styled.js";
|
|
90
|
-
import "./NavHeader/NavHeader.styles.js";
|
|
91
|
-
import "./SelectField/Select.js";
|
|
92
|
-
import "../providers/IconsProvider.js";
|
|
93
|
-
import "../providers/icons/Address.js";
|
|
94
|
-
import "../providers/icons/Advice.js";
|
|
95
|
-
import "../providers/icons/Archive.js";
|
|
96
|
-
import "../providers/icons/ArrowDown.js";
|
|
97
|
-
import "../providers/icons/ArrowLeft.js";
|
|
98
|
-
import "../providers/icons/ArrowRight.js";
|
|
99
|
-
import "../providers/icons/ArrowUp.js";
|
|
100
|
-
import "../providers/icons/Award.js";
|
|
101
|
-
import "../providers/icons/Battery.js";
|
|
102
|
-
import "../providers/icons/Cal.js";
|
|
103
|
-
import "../providers/icons/CalBook.js";
|
|
104
|
-
import "../providers/icons/CaretDown.js";
|
|
105
|
-
import "../providers/icons/CaretLeft.js";
|
|
106
|
-
import "../providers/icons/CaretRight.js";
|
|
107
|
-
import "../providers/icons/CaretUp.js";
|
|
108
|
-
import "../providers/icons/Chart.js";
|
|
109
|
-
import "../providers/icons/ChartFilled.js";
|
|
110
|
-
import "../providers/icons/Check.js";
|
|
111
|
-
import "../providers/icons/CheckCircle.js";
|
|
112
|
-
import "../providers/icons/ChevronDown.js";
|
|
113
|
-
import "../providers/icons/ChevronLeft.js";
|
|
114
|
-
import "../providers/icons/ChevronLeftSmall.js";
|
|
115
|
-
import "../providers/icons/ChevronLeftSmallFirst.js";
|
|
116
|
-
import "../providers/icons/ChevronRight.js";
|
|
117
|
-
import "../providers/icons/ChevronRightSmall.js";
|
|
118
|
-
import "../providers/icons/ChevronRightSmallLast.js";
|
|
119
|
-
import "../providers/icons/ChevronUp.js";
|
|
120
|
-
import "../providers/icons/Circle.js";
|
|
121
|
-
import "../providers/icons/CloseCircle.js";
|
|
122
|
-
import "../providers/icons/Cross.js";
|
|
123
|
-
import "../providers/icons/Doc.js";
|
|
124
|
-
import "../providers/icons/Dollar.js";
|
|
125
|
-
import "../providers/icons/Download.js";
|
|
126
|
-
import "../providers/icons/Eco.js";
|
|
127
|
-
import "../providers/icons/EcoHome.js";
|
|
128
|
-
import "../providers/icons/Edit.js";
|
|
129
|
-
import "../providers/icons/ElectricCar.js";
|
|
130
|
-
import "../providers/icons/ElectricHome.js";
|
|
131
|
-
import "../providers/icons/Electricity.js";
|
|
132
|
-
import "../providers/icons/EnergyAdvice.js";
|
|
133
|
-
import "../providers/icons/Equals.js";
|
|
134
|
-
import "../providers/icons/Euro.js";
|
|
135
|
-
import "../providers/icons/Gas.js";
|
|
136
|
-
import "../providers/icons/GlobeAddress.js";
|
|
137
|
-
import "../providers/icons/Help.js";
|
|
138
|
-
import "../providers/icons/Hide.js";
|
|
139
|
-
import "../providers/icons/Home.js";
|
|
140
|
-
import "../providers/icons/HomeFilled.js";
|
|
141
|
-
import "../providers/icons/HydroPower.js";
|
|
142
|
-
import "../providers/icons/Info.js";
|
|
143
|
-
import "../providers/icons/Link.js";
|
|
144
|
-
import "../providers/icons/Logo.js";
|
|
145
|
-
import "../providers/icons/Mail.js";
|
|
146
|
-
import "../providers/icons/MailOpen.js";
|
|
147
|
-
import "../providers/icons/Menu.js";
|
|
148
|
-
import "../providers/icons/Message.js";
|
|
149
|
-
import "../providers/icons/MessageFilled.js";
|
|
150
|
-
import "../providers/icons/Minus.js";
|
|
151
|
-
import "../providers/icons/Mobile.js";
|
|
152
|
-
import "../providers/icons/NewWindow.js";
|
|
153
|
-
import "../providers/icons/PaymentCard.js";
|
|
154
|
-
import "../providers/icons/Phone.js";
|
|
155
|
-
import "../providers/icons/Plus.js";
|
|
156
|
-
import "../providers/icons/Pound.js";
|
|
157
|
-
import "../providers/icons/Pricing.js";
|
|
158
|
-
import "../providers/icons/Search.js";
|
|
159
|
-
import "../providers/icons/Security.js";
|
|
160
|
-
import "../providers/icons/Show.js";
|
|
161
|
-
import "../providers/icons/SmartHome.js";
|
|
162
|
-
import "../providers/icons/SmartMeter.js";
|
|
163
|
-
import "../providers/icons/Solar.js";
|
|
164
|
-
import "../providers/icons/Star.js";
|
|
165
|
-
import "../providers/icons/Sun.js";
|
|
166
|
-
import "../providers/icons/Torch.js";
|
|
167
|
-
import "../providers/icons/Trees.js";
|
|
168
|
-
import "../providers/icons/Tune.js";
|
|
169
|
-
import "../providers/icons/User.js";
|
|
170
|
-
import "../providers/icons/UserFilled.js";
|
|
171
|
-
import "../providers/icons/Wallet.js";
|
|
172
|
-
import "../providers/icons/WalletFilled.js";
|
|
173
|
-
import "../providers/icons/WarmHome.js";
|
|
174
|
-
import "../providers/icons/Warning.js";
|
|
175
|
-
import "../providers/icons/WebAddress.js";
|
|
176
|
-
import "../providers/icons/WindPower.js";
|
|
177
|
-
import "./ActionCard/CloseIconShape.js";
|
|
178
|
-
import "./ActionCard/IndicatorIconShape.js";
|
|
179
|
-
import "./ActionList/styled.js";
|
|
180
|
-
import "./Stretch/Stretch.js";
|
|
181
|
-
import "./Input/Input.js";
|
|
182
|
-
import "./DataTable/TableRow.js";
|
|
183
|
-
import "../hooks/use-full-width.js";
|
|
184
|
-
import "./SubLabelText/SubLabelText.js";
|
|
185
|
-
import "./PasswordInput/PasswordVisibilityToggle.js";
|
|
186
|
-
import "./PasswordInput/PasswordInput.styled.js";
|
|
187
|
-
import "./SkeletonAnimation/SkeletonAnimation.js";
|
|
188
|
-
import "./Toggle/styles.js";
|
|
189
|
-
import "react-native-safe-area-context";
|
|
190
|
-
import "react-native-gesture-handler";
|
|
191
|
-
import "./ProductCarousel/NavigationDots.js";
|
|
192
|
-
import "./ProductCarousel/anchor-point.js";
|
|
193
|
-
import "styled-components";
|
|
194
|
-
import "../theme-web-MrdqV6Ln.js";
|
|
195
|
-
import "./NavHeader/IconButton.js";
|
|
196
|
-
export {
|
|
197
|
-
Cr as Accordion,
|
|
198
|
-
sr as AccordionGroup,
|
|
199
|
-
gr as AccordionIcon,
|
|
200
|
-
kr as Action,
|
|
201
|
-
Fr as ActionCard,
|
|
202
|
-
Ir as ActionList,
|
|
203
|
-
Hr as Badge,
|
|
204
|
-
Er as CTAButton,
|
|
205
|
-
Ur as CTALink,
|
|
206
|
-
Nr as Card,
|
|
207
|
-
Yr as CellText,
|
|
208
|
-
Rr as Checkbox,
|
|
209
|
-
Dr as CheckboxField,
|
|
210
|
-
Dt as Col,
|
|
211
|
-
zr as CurrencyField,
|
|
212
|
-
Kr as CurrencyInput,
|
|
213
|
-
Vr as DataTable,
|
|
214
|
-
nt as DateField,
|
|
215
|
-
dt as DescriptionItem,
|
|
216
|
-
Tt as DescriptionList,
|
|
217
|
-
vr as DestructiveCTAButton,
|
|
218
|
-
ut as Disclosure,
|
|
219
|
-
bt as Divider,
|
|
220
|
-
St as Em,
|
|
221
|
-
At as EmailField,
|
|
222
|
-
Lt as EmailInput,
|
|
223
|
-
ip as ErrorNotification,
|
|
224
|
-
It as ErrorSummaryNotification,
|
|
225
|
-
km as ErrorText,
|
|
226
|
-
Ht as Field,
|
|
227
|
-
Nt as FilterSelect,
|
|
228
|
-
Fm as FormGroup,
|
|
229
|
-
Et as Heading1,
|
|
230
|
-
Gt as Heading2,
|
|
231
|
-
Ot as Heading3,
|
|
232
|
-
Wt as Heading4,
|
|
233
|
-
qt as Icon,
|
|
234
|
-
ep as InfoNotification,
|
|
235
|
-
Jt as Label,
|
|
236
|
-
ym as LabelText,
|
|
237
|
-
Qt as Lead,
|
|
238
|
-
Zt as Li,
|
|
239
|
-
Xt as LineThrough,
|
|
240
|
-
rp as Margin,
|
|
241
|
-
pp as NavHeader,
|
|
242
|
-
xp as Notification,
|
|
243
|
-
lp as NumberField,
|
|
244
|
-
Tp as NumberInput,
|
|
245
|
-
_t as Ol,
|
|
246
|
-
up as P,
|
|
247
|
-
bp as PasswordField,
|
|
248
|
-
Sp as PasswordInput,
|
|
249
|
-
Ap as PhoneField,
|
|
250
|
-
Lp as PhoneInput,
|
|
251
|
-
Gr as PrimaryCTAButton,
|
|
252
|
-
Wr as PrimaryCTALink,
|
|
253
|
-
sm as ProductCarousel,
|
|
254
|
-
Ip as Radio,
|
|
255
|
-
gm as RadioCard,
|
|
256
|
-
Hp as RadioField,
|
|
257
|
-
Rt as Row,
|
|
258
|
-
Zr as RowHeading,
|
|
259
|
-
Mr as SecondaryCTAButton,
|
|
260
|
-
jr as SecondaryCTALink,
|
|
261
|
-
Np as SelectField,
|
|
262
|
-
_r as SeparatorRowText,
|
|
263
|
-
Dp as SkeletonCTA,
|
|
264
|
-
Rp as SkeletonCircle,
|
|
265
|
-
Ep as SkeletonHeading,
|
|
266
|
-
Gp as SkeletonText,
|
|
267
|
-
Op as Small,
|
|
268
|
-
Wp as Spinner,
|
|
269
|
-
qp as Stack,
|
|
270
|
-
Jp as Strong,
|
|
271
|
-
$r as StyledSeparatorRow,
|
|
272
|
-
ot as StyledTableContainer,
|
|
273
|
-
fp as SuccessNotification,
|
|
274
|
-
Xp as Tab,
|
|
275
|
-
Zp as TabList,
|
|
276
|
-
$p as TabPanel,
|
|
277
|
-
rt as TableBody,
|
|
278
|
-
tt as TableCaption,
|
|
279
|
-
pt as TableCaptionText,
|
|
280
|
-
mt as TableCell,
|
|
281
|
-
it as TableHeader,
|
|
282
|
-
et as TableHeaderText,
|
|
283
|
-
xt as TableRow,
|
|
284
|
-
ft as TableRowHeading,
|
|
285
|
-
Qp as Tabs,
|
|
286
|
-
im as TextField,
|
|
287
|
-
xm as TextGroup,
|
|
288
|
-
am as TextInput,
|
|
289
|
-
lm as TextLink,
|
|
290
|
-
rm as TextareaField,
|
|
291
|
-
pm as TextareaInput,
|
|
292
|
-
um as ToastsContainer,
|
|
293
|
-
Tm as Toggle,
|
|
294
|
-
$t as Ul,
|
|
295
|
-
ap as WarningNotification,
|
|
296
|
-
Cm as showToast
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
297
15
|
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./Accordion"), exports);
|
|
18
|
+
__exportStar(require("./ActionCard"), exports);
|
|
19
|
+
__exportStar(require("./ActionList"), exports);
|
|
20
|
+
__exportStar(require("./Badge"), exports);
|
|
21
|
+
__exportStar(require("./Card"), exports);
|
|
22
|
+
__exportStar(require("./Checkbox"), exports);
|
|
23
|
+
__exportStar(require("./CTAButton"), exports);
|
|
24
|
+
__exportStar(require("./CTALink"), exports);
|
|
25
|
+
__exportStar(require("./CurrencyField"), exports);
|
|
26
|
+
__exportStar(require("./CurrencyInput"), exports);
|
|
27
|
+
__exportStar(require("./DataTable"), exports);
|
|
28
|
+
__exportStar(require("./DateField"), exports);
|
|
29
|
+
__exportStar(require("./DescriptionList"), exports);
|
|
30
|
+
__exportStar(require("./Disclosure"), exports);
|
|
31
|
+
__exportStar(require("./Divider"), exports);
|
|
32
|
+
__exportStar(require("./Em"), exports);
|
|
33
|
+
__exportStar(require("./EmailField"), exports);
|
|
34
|
+
__exportStar(require("./EmailInput"), exports);
|
|
35
|
+
__exportStar(require("./ErrorSummaryNotification"), exports);
|
|
36
|
+
__exportStar(require("./Field"), exports);
|
|
37
|
+
__exportStar(require("./FilterSelect"), exports);
|
|
38
|
+
__exportStar(require("./Grid"), exports);
|
|
39
|
+
__exportStar(require("./Heading1"), exports);
|
|
40
|
+
__exportStar(require("./Heading2"), exports);
|
|
41
|
+
__exportStar(require("./Heading3"), exports);
|
|
42
|
+
__exportStar(require("./Heading4"), exports);
|
|
43
|
+
__exportStar(require("./Icon"), exports);
|
|
44
|
+
__exportStar(require("./Label"), exports);
|
|
45
|
+
__exportStar(require("./Lead"), exports);
|
|
46
|
+
__exportStar(require("./LineThrough"), exports);
|
|
47
|
+
__exportStar(require("./List"), exports);
|
|
48
|
+
__exportStar(require("./Margin"), exports);
|
|
49
|
+
__exportStar(require("./NavHeader"), exports);
|
|
50
|
+
__exportStar(require("./Notification"), exports);
|
|
51
|
+
__exportStar(require("./NumberField"), exports);
|
|
52
|
+
__exportStar(require("./NumberInput"), exports);
|
|
53
|
+
__exportStar(require("./P"), exports);
|
|
54
|
+
__exportStar(require("./PasswordField"), exports);
|
|
55
|
+
__exportStar(require("./PasswordInput"), exports);
|
|
56
|
+
__exportStar(require("./PhoneField"), exports);
|
|
57
|
+
__exportStar(require("./PhoneInput"), exports);
|
|
58
|
+
__exportStar(require("./Radio"), exports);
|
|
59
|
+
__exportStar(require("./SelectField"), exports);
|
|
60
|
+
__exportStar(require("./SkeletonCircle"), exports);
|
|
61
|
+
__exportStar(require("./SkeletonCTA"), exports);
|
|
62
|
+
__exportStar(require("./SkeletonHeading"), exports);
|
|
63
|
+
__exportStar(require("./SkeletonText"), exports);
|
|
64
|
+
__exportStar(require("./Small"), exports);
|
|
65
|
+
__exportStar(require("./Spinner"), exports);
|
|
66
|
+
__exportStar(require("./Stack"), exports);
|
|
67
|
+
__exportStar(require("./Strong"), exports);
|
|
68
|
+
__exportStar(require("./Tabs"), exports);
|
|
69
|
+
__exportStar(require("./TextareaField"), exports);
|
|
70
|
+
__exportStar(require("./TextareaInput"), exports);
|
|
71
|
+
__exportStar(require("./TextField"), exports);
|
|
72
|
+
__exportStar(require("./TextGroup"), exports);
|
|
73
|
+
__exportStar(require("./TextInput"), exports);
|
|
74
|
+
__exportStar(require("./TextLink"), exports);
|
|
75
|
+
__exportStar(require("./Toggle"), exports);
|
|
76
|
+
__exportStar(require("./Toast"), exports);
|
|
77
|
+
__exportStar(require("./ProductCarousel"), exports);
|
|
78
|
+
__exportStar(require("./RadioCard"), exports);
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
var __extends = (this && this.__extends) || (function () {
|
|
2
|
+
var extendStatics = function (d, b) {
|
|
3
|
+
extendStatics = Object.setPrototypeOf ||
|
|
4
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
5
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
6
|
+
return extendStatics(d, b);
|
|
7
|
+
};
|
|
8
|
+
return function (d, b) {
|
|
9
|
+
if (typeof b !== "function" && b !== null)
|
|
10
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
11
|
+
extendStatics(d, b);
|
|
12
|
+
function __() { this.constructor = d; }
|
|
13
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
14
|
+
};
|
|
15
|
+
})();
|
|
16
|
+
var __assign = (this && this.__assign) || function () {
|
|
17
|
+
__assign = Object.assign || function(t) {
|
|
18
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
19
|
+
s = arguments[i];
|
|
20
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
21
|
+
t[p] = s[p];
|
|
22
|
+
}
|
|
23
|
+
return t;
|
|
24
|
+
};
|
|
25
|
+
return __assign.apply(this, arguments);
|
|
26
|
+
};
|
|
27
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
28
|
+
import { Component, useCallback, useContext, useEffect, useMemo, useState, } from 'react';
|
|
29
|
+
import Animated, { interpolateColor, runOnUI, useAnimatedStyle, useDerivedValue, useSharedValue, withTiming, } from 'react-native-reanimated';
|
|
30
|
+
import { useLayout } from '../../hooks/use-layout';
|
|
31
|
+
import { ThemeContext } from '../../styled.native';
|
|
32
|
+
import { Heading4 } from '../Heading4';
|
|
33
|
+
import { AccordionGroupContext } from './Group';
|
|
34
|
+
import { AccordionIcon } from './Icon';
|
|
35
|
+
import { StyledAccordion, StyledAccordionHeader, StyledContainer, } from './styles';
|
|
36
|
+
export function withAnimated(WrappedComponent) {
|
|
37
|
+
var displayName = WrappedComponent.displayName || WrappedComponent.name || 'Component';
|
|
38
|
+
// eslint-disable-next-line react/prefer-stateless-function
|
|
39
|
+
var WithAnimated = /** @class */ (function (_super) {
|
|
40
|
+
__extends(WithAnimated, _super);
|
|
41
|
+
function WithAnimated() {
|
|
42
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
43
|
+
}
|
|
44
|
+
WithAnimated.prototype.render = function () {
|
|
45
|
+
return _jsx(WrappedComponent, __assign({}, this.props));
|
|
46
|
+
};
|
|
47
|
+
WithAnimated.displayName = "WithAnimated(".concat(displayName, ")");
|
|
48
|
+
return WithAnimated;
|
|
49
|
+
}(Component));
|
|
50
|
+
return Animated.createAnimatedComponent(WithAnimated);
|
|
51
|
+
}
|
|
52
|
+
export var Accordion = function (_a) {
|
|
53
|
+
var _b = _a.expanded, expanded = _b === void 0 ? false : _b, first = _a.first, last = _a.last, title = _a.title, children = _a.children, onToggle = _a.onToggle;
|
|
54
|
+
var _c = useContext(ThemeContext), core = _c.core, semantic = _c.semantic;
|
|
55
|
+
var Header = useContext(AccordionGroupContext).Header;
|
|
56
|
+
var AccordionHeading = Header !== null && Header !== void 0 ? Header : Heading4;
|
|
57
|
+
var AnimatedHeading = useMemo(function () { return withAnimated(AccordionHeading); }, [AccordionHeading]);
|
|
58
|
+
var _d = useLayout(0), layout = _d[0], onLayout = _d[1];
|
|
59
|
+
var _e = useState(expanded), open = _e[0], setOpen = _e[1];
|
|
60
|
+
var handleHeightContent = useMemo(function () { return layout.height || 100; }, [layout.height]);
|
|
61
|
+
var size = useSharedValue(handleHeightContent);
|
|
62
|
+
useEffect(function () {
|
|
63
|
+
runOnUI(function () {
|
|
64
|
+
'worklet';
|
|
65
|
+
if (expanded && handleHeightContent) {
|
|
66
|
+
size.value = handleHeightContent;
|
|
67
|
+
}
|
|
68
|
+
})();
|
|
69
|
+
}, [handleHeightContent, expanded, size]);
|
|
70
|
+
useEffect(function () {
|
|
71
|
+
runOnUI(function () {
|
|
72
|
+
'worklet';
|
|
73
|
+
if (handleHeightContent) {
|
|
74
|
+
size.value = handleHeightContent;
|
|
75
|
+
}
|
|
76
|
+
})();
|
|
77
|
+
}, [handleHeightContent, size]);
|
|
78
|
+
var progress = useDerivedValue(function () { return withTiming(open ? 1 : 0); });
|
|
79
|
+
var style = useAnimatedStyle(function () { return ({
|
|
80
|
+
height: size.value * progress.value + 1,
|
|
81
|
+
}); }, [progress, size]);
|
|
82
|
+
var toggleOpen = useCallback(function () {
|
|
83
|
+
onToggle === null || onToggle === void 0 ? void 0 : onToggle(!open);
|
|
84
|
+
if (size.value === 0) {
|
|
85
|
+
runOnUI(function () {
|
|
86
|
+
'worklet';
|
|
87
|
+
size.value = handleHeightContent;
|
|
88
|
+
})();
|
|
89
|
+
}
|
|
90
|
+
setOpen(function (o) { return !o; });
|
|
91
|
+
}, [handleHeightContent, open, size]);
|
|
92
|
+
var containerAnimatedStyle = useMemo(function () { return [{ overflow: 'hidden' }, style]; }, [style]);
|
|
93
|
+
var headerStyle = useAnimatedStyle(function () { return ({
|
|
94
|
+
color: interpolateColor(progress.value, [0, 1], [semantic.message.branded, semantic.message.base]),
|
|
95
|
+
}); }, [progress]);
|
|
96
|
+
return (_jsxs(StyledAccordion, { first: first, last: last, isExpanded: open, children: [_jsxs(StyledAccordionHeader, { accessibilityState: { expanded: open }, onPress: toggleOpen, testID: "accordionTitle", children: [_jsx(AnimatedHeading, { style: [
|
|
97
|
+
headerStyle,
|
|
98
|
+
{
|
|
99
|
+
paddingTop: core.space[1],
|
|
100
|
+
paddingRight: core.space[3],
|
|
101
|
+
marginTop: 0,
|
|
102
|
+
marginBottom: 0,
|
|
103
|
+
flexShrink: 1,
|
|
104
|
+
},
|
|
105
|
+
], children: title }), _jsx(AccordionIcon, { animationTiming: progress })] }), _jsx(Animated.View, { style: containerAnimatedStyle, children: _jsx(StyledContainer, { onLayout: onLayout, children: children }) })] }));
|
|
106
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { Children, cloneElement, createContext, isValidElement, } from 'react';
|
|
3
|
+
import { View } from 'react-native';
|
|
4
|
+
export var AccordionGroupContext = createContext({
|
|
5
|
+
Header: undefined,
|
|
6
|
+
});
|
|
7
|
+
export var AccordionGroup = function (_a) {
|
|
8
|
+
var children = _a.children, headingComponent = _a.headingComponent;
|
|
9
|
+
var childCount = Children.count(children);
|
|
10
|
+
return (_jsx(AccordionGroupContext.Provider, { value: { Header: headingComponent }, children: _jsx(View, { children: Children.map(children, function (child, i) {
|
|
11
|
+
return isValidElement(child)
|
|
12
|
+
? cloneElement(child, {
|
|
13
|
+
first: i === 0,
|
|
14
|
+
last: i === childCount - 1,
|
|
15
|
+
})
|
|
16
|
+
: child;
|
|
17
|
+
}) }) }));
|
|
18
|
+
};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { useContext } from 'react';
|
|
3
|
+
import Animated, { interpolateColor, useAnimatedProps, useAnimatedStyle, } from 'react-native-reanimated';
|
|
4
|
+
import { Path, Svg } from 'react-native-svg';
|
|
5
|
+
import { ThemeContext } from '../../styled.native';
|
|
6
|
+
var OVO_LOGO_ANGLE = 105;
|
|
7
|
+
var AnimatedPath = Animated.createAnimatedComponent(Path);
|
|
8
|
+
export function AccordionIcon(_a) {
|
|
9
|
+
var animationTiming = _a.animationTiming;
|
|
10
|
+
var _b = useContext(ThemeContext), core = _b.core, semantic = _b.semantic;
|
|
11
|
+
var outerAnimatedStyles = useAnimatedStyle(function () { return ({
|
|
12
|
+
backgroundColor: interpolateColor(animationTiming.value, [0, 1], [semantic.surface.cutout, semantic.message.branded]),
|
|
13
|
+
height: 36 - animationTiming.value * 4,
|
|
14
|
+
margin: 2 * animationTiming.value,
|
|
15
|
+
transform: [{ rotateZ: animationTiming.value * -OVO_LOGO_ANGLE + 'deg' }],
|
|
16
|
+
}); }, [animationTiming]);
|
|
17
|
+
var innerAnimatedStyles = useAnimatedStyle(function () { return ({
|
|
18
|
+
transform: [{ rotateZ: animationTiming.value * OVO_LOGO_ANGLE + 'deg' }],
|
|
19
|
+
}); }, [animationTiming]);
|
|
20
|
+
var plusAnimatedProps = useAnimatedProps(function () { return ({
|
|
21
|
+
opacity: 1 - animationTiming.value,
|
|
22
|
+
}); }, [animationTiming]);
|
|
23
|
+
var minusAnimatedProps = useAnimatedProps(function () { return ({
|
|
24
|
+
opacity: animationTiming.value,
|
|
25
|
+
}); }, [animationTiming]);
|
|
26
|
+
return (_jsx(Animated.View, { style: [
|
|
27
|
+
{
|
|
28
|
+
backgroundColor: semantic.surface.cutout,
|
|
29
|
+
aspectRatio: 1,
|
|
30
|
+
alignItems: 'center',
|
|
31
|
+
justifyContent: 'center',
|
|
32
|
+
},
|
|
33
|
+
outerAnimatedStyles,
|
|
34
|
+
], children: _jsx(Animated.View, { style: innerAnimatedStyles, children: _jsxs(Svg, { width: "16", height: "16", viewBox: "0 0 16 16", children: [_jsx(AnimatedPath, { animatedProps: plusAnimatedProps, d: "M9 9H16V6.99H9V0H6.99V7H0V9.01H7V16.01H9.01V9.01L9 9Z", fill: semantic.message.secondary }), _jsx(AnimatedPath, { animatedProps: minusAnimatedProps, d: "M16.3826 9.66663V7.66663H0.462646V9.66663H16.3826Z", fill: core.color.brand.white })] }) }) }));
|
|
35
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
|
|
2
|
+
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
|
3
|
+
return cooked;
|
|
4
|
+
};
|
|
5
|
+
import { numToPx } from '@ovotech/element-core';
|
|
6
|
+
import Animated from 'react-native-reanimated';
|
|
7
|
+
import styled, { css } from '../../styled.native';
|
|
8
|
+
export var StyledAccordion = styled(Animated.View)(function (_a) {
|
|
9
|
+
var _b = _a.theme, semantic = _b.semantic, core = _b.core, first = _a.first, last = _a.last, isExpanded = _a.isExpanded;
|
|
10
|
+
return css(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n width: 100%;\n border-width: ", ";\n border-color: ", ";\n border-bottom-width: 0;\n background-color: ", ";\n transition: background-color ", ";\n\n ", "\n\n ", "\n "], ["\n width: 100%;\n border-width: ", ";\n border-color: ", ";\n border-bottom-width: 0;\n background-color: ", ";\n transition: background-color ", ";\n\n ", "\n\n ", "\n "])), numToPx(core.borderWidth.small), semantic.border.differentiated, isExpanded ? core.color.brand.white : 'transparent', core.transition.fast, first
|
|
11
|
+
? {
|
|
12
|
+
borderTopLeftRadius: core.radius.small,
|
|
13
|
+
borderTopRightRadius: core.radius.small,
|
|
14
|
+
}
|
|
15
|
+
: null, last
|
|
16
|
+
? {
|
|
17
|
+
borderBottomLeftRadius: core.radius.small,
|
|
18
|
+
borderBottomRightRadius: core.radius.small,
|
|
19
|
+
borderBottomWidth: core.borderWidth.small,
|
|
20
|
+
}
|
|
21
|
+
: null);
|
|
22
|
+
});
|
|
23
|
+
export var StyledAccordionHeader = styled.TouchableOpacity(function (_a) {
|
|
24
|
+
var core = _a.theme.core;
|
|
25
|
+
return css(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n padding-top: ", ";\n padding-left: ", ";\n padding-right: 18px;\n padding-bottom: 18px;\n flex-direction: row;\n align-items: flex-start;\n justify-content: space-between;\n "], ["\n padding-top: ", ";\n padding-left: ", ";\n padding-right: 18px;\n padding-bottom: 18px;\n flex-direction: row;\n align-items: flex-start;\n justify-content: space-between;\n "])), numToPx(core.space[5]), numToPx(core.space[3]));
|
|
26
|
+
});
|
|
27
|
+
export var StyledContainer = styled.View(function (_a) {
|
|
28
|
+
var core = _a.theme.core;
|
|
29
|
+
return css(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n padding-top: 0;\n padding-right: ", ";\n padding-bottom: ", ";\n padding-left: ", ";\n "], ["\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n padding-top: 0;\n padding-right: ", ";\n padding-bottom: ", ";\n padding-left: ", ";\n "])), numToPx(core.space[12]), numToPx(core.space[6]), numToPx(core.space[3]));
|
|
30
|
+
});
|
|
31
|
+
var templateObject_1, templateObject_2, templateObject_3;
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { numToPx } from '@ovotech/element-core';
|
|
3
|
+
import MaskedView from '@react-native-masked-view/masked-view';
|
|
4
|
+
import { useContext, useEffect } from 'react';
|
|
5
|
+
import { Image, Pressable, View } from 'react-native';
|
|
6
|
+
import { Action, CTAButton, Heading2, Heading3, Icon, Margin, Stack, } from '../';
|
|
7
|
+
import styled, { ThemeContext } from '../../styled.native';
|
|
8
|
+
import { P } from '../P';
|
|
9
|
+
import { CloseIconShape } from './CloseIconShape';
|
|
10
|
+
import { IndicatorIconShape } from './IndicatorIconShape';
|
|
11
|
+
var StyledCard = styled.Pressable(function (_a) {
|
|
12
|
+
var _b = _a.theme, core = _b.core, semantic = _b.semantic, inline = _a.inline, inverted = _a.inverted, reducedBottomPadding = _a.reducedBottomPadding;
|
|
13
|
+
var paddingVal = inline ? core.space[4] : core.space[6];
|
|
14
|
+
var reducedBottomPaddingVal = inline ? core.space[3] : core.space[5];
|
|
15
|
+
return "\n border-radius: ".concat(inline ? numToPx(core.space[6]) : 0, ";\n background-color: ").concat(inverted ? semantic.inverted.surface : semantic.surface.elevated, ";\n padding: ").concat(numToPx(paddingVal), ";\n padding-bottom: ").concat(numToPx(reducedBottomPadding ? reducedBottomPaddingVal : paddingVal), ";\n overflow: hidden;\n border-width: 0;\n width: 100%;\n ");
|
|
16
|
+
});
|
|
17
|
+
var StyledP = styled(P)(function (_a) {
|
|
18
|
+
var semantic = _a.theme.semantic, inverted = _a.inverted;
|
|
19
|
+
return "\n color: ".concat(inverted ? semantic.inverted.message.base : semantic.message.base, ";\n");
|
|
20
|
+
});
|
|
21
|
+
export var ActionCard = function (_a) {
|
|
22
|
+
var onPressCloseButton = _a.onPressCloseButton, onPressActionButton = _a.onPressActionButton, onPressIndicator = _a.onPressIndicator, onMount = _a.onMount, body = _a.body, title = _a.title, buttonTitle = _a.buttonTitle, ctaVariant = _a.ctaVariant, image = _a.image, testID = _a.testID, _b = _a.accessibilityLabel, accessibilityLabel = _b === void 0 ? 'image' : _b, _c = _a.inverted, inverted = _c === void 0 ? true : _c, _d = _a.inline, inline = _d === void 0 ? false : _d;
|
|
23
|
+
var _e = useContext(ThemeContext), core = _e.core, semantic = _e.semantic;
|
|
24
|
+
useEffect(function () {
|
|
25
|
+
if (onMount) {
|
|
26
|
+
onMount();
|
|
27
|
+
}
|
|
28
|
+
}, []);
|
|
29
|
+
var Heading = inline ? Heading3 : Heading2;
|
|
30
|
+
var cardPadding = core.space[inline ? 4 : 6];
|
|
31
|
+
var negativeMarginAdjustment = -cardPadding;
|
|
32
|
+
return (_jsx(StyledCard, { onPress: onPressIndicator, inline: inline, inverted: inverted, reducedBottomPadding: Boolean(buttonTitle && !ctaVariant), testID: "".concat(testID, "-card"), children: _jsxs(View, { style: { flexDirection: 'row' }, children: [_jsx(View, { style: { flex: 1 }, children: _jsxs(Stack, { spaceBetween: 2, children: [_jsx(Heading, { style: {
|
|
33
|
+
color: inverted
|
|
34
|
+
? semantic.inverted.message.link
|
|
35
|
+
: semantic.message.branded,
|
|
36
|
+
paddingRight: image || !onPressCloseButton ? 0 : cardPadding,
|
|
37
|
+
}, testID: "".concat(testID, "-heading"), children: title }), _jsxs(View, { children: [typeof body === 'string' ? (_jsx(View, { style: {
|
|
38
|
+
paddingRight: !image && !title && onPressCloseButton ? cardPadding : 0,
|
|
39
|
+
}, children: _jsx(StyledP, { inverted: inverted, children: body }) })) : (body), buttonTitle && onPressActionButton && !onPressIndicator ? (!ctaVariant ? (_jsx(Margin, { top: 2, children: _jsx(Action, { inverted: inverted, inline: true, onPress: onPressActionButton, testID: "".concat(testID, "-button"), iconRight: "chevron-right-small", children: buttonTitle }) })) : (_jsx(Margin, { top: 4, children: _jsx(CTAButton, { onPress: onPressActionButton, testID: "".concat(testID, "-button"), variant: ctaVariant, children: buttonTitle }) }))) : null] })] }) }), image ? (_jsx(MaskedView, { style: {
|
|
40
|
+
flex: 1,
|
|
41
|
+
flexDirection: 'row',
|
|
42
|
+
height: '100%',
|
|
43
|
+
marginTop: negativeMarginAdjustment,
|
|
44
|
+
marginRight: negativeMarginAdjustment,
|
|
45
|
+
}, maskElement: _jsx(View, { style: {
|
|
46
|
+
width: '100%',
|
|
47
|
+
height: 165,
|
|
48
|
+
backgroundColor: 'olive',
|
|
49
|
+
transform: [
|
|
50
|
+
{ rotate: '-16deg' },
|
|
51
|
+
{ translateX: 40 },
|
|
52
|
+
{ translateY: 25 },
|
|
53
|
+
],
|
|
54
|
+
} }), children: _jsx(Image, { resizeMode: "cover", source: image, style: {
|
|
55
|
+
width: '100%',
|
|
56
|
+
height: 200,
|
|
57
|
+
position: 'absolute',
|
|
58
|
+
top: 0,
|
|
59
|
+
right: 0,
|
|
60
|
+
}, accessible: true, accessibilityRole: "image", accessibilityLabel: accessibilityLabel }) })) : null, onPressIndicator ? (_jsxs(Pressable, { style: {
|
|
61
|
+
position: 'absolute',
|
|
62
|
+
right: negativeMarginAdjustment,
|
|
63
|
+
bottom: negativeMarginAdjustment,
|
|
64
|
+
}, onPress: onPressIndicator, testID: "".concat(testID, "-indicator-button"), children: [_jsx(IndicatorIconShape, {}), _jsx(Icon, { size: 14, style: {
|
|
65
|
+
position: 'absolute',
|
|
66
|
+
right: inline ? 8 : 6,
|
|
67
|
+
bottom: 16,
|
|
68
|
+
}, color: semantic.surface.elevated, name: "chevron-right", accessibilityLabel: "chevron-right" })] })) : null, onPressCloseButton && !onPressIndicator ? (_jsxs(Pressable, { style: {
|
|
69
|
+
position: 'absolute',
|
|
70
|
+
right: negativeMarginAdjustment,
|
|
71
|
+
top: negativeMarginAdjustment,
|
|
72
|
+
}, onPress: onPressCloseButton, testID: "".concat(testID, "-close-button"), children: [_jsx(CloseIconShape, {}), _jsx(Icon, { size: 14, style: {
|
|
73
|
+
position: 'absolute',
|
|
74
|
+
top: inline ? 14 : 12,
|
|
75
|
+
right: inline ? 14 : 12,
|
|
76
|
+
}, color: semantic.surface.elevated, name: "cross", accessibilityLabel: "close" })] })) : null] }) }));
|
|
77
|
+
};
|