@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
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PropsWithChildren, ReactNode } from 'react';
|
|
2
|
-
export
|
|
2
|
+
export type AccordionProps = PropsWithChildren<{
|
|
3
3
|
title: ReactNode;
|
|
4
4
|
expanded?: boolean;
|
|
5
5
|
children?: ReactNode;
|
|
@@ -12,7 +12,7 @@ export declare type AccordionProps = PropsWithChildren<{
|
|
|
12
12
|
last?: boolean;
|
|
13
13
|
testId?: string;
|
|
14
14
|
}>;
|
|
15
|
-
export
|
|
15
|
+
export type AccordionGroupProps = {
|
|
16
16
|
/**
|
|
17
17
|
* @deprecated inline prop is no longer affects styling
|
|
18
18
|
*/
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ReactElement } from 'react';
|
|
2
2
|
import { ImageSourcePropType } from 'react-native';
|
|
3
3
|
import { CTAVariantName } from '../CTAButton/CTAButton';
|
|
4
|
-
export
|
|
4
|
+
export type ActionCardProps = {
|
|
5
5
|
title: string;
|
|
6
6
|
body?: string | ReactElement;
|
|
7
7
|
onPressCloseButton?: () => void;
|
|
@@ -1,379 +1,107 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
import { s as x, T as D } from "../../styled.native-KEscfVp7.js";
|
|
8
|
-
import "../Heading4/Heading4.js";
|
|
9
|
-
import "../Accordion/Group.js";
|
|
10
|
-
import "../Accordion/Icon.js";
|
|
11
|
-
import "../Accordion/styles.js";
|
|
12
|
-
import { Action as H } from "../ActionList/ActionList.js";
|
|
13
|
-
import "../Badge/Badge.js";
|
|
14
|
-
import "../Card/Card.js";
|
|
15
|
-
import "../Checkbox/Checkbox.js";
|
|
16
|
-
import "../ErrorText/ErrorText.js";
|
|
17
|
-
import "../FormGroup/FormGroup.js";
|
|
18
|
-
import "../HintText/HintText.js";
|
|
19
|
-
import "../LabelText/LabelText.js";
|
|
20
|
-
import { Stack as M } from "../Stack/Stack.js";
|
|
21
|
-
import { CTAButton as A } from "../CTAButton/CTAButton.js";
|
|
22
|
-
import "../CTALink/CTALink.js";
|
|
23
|
-
import "../CurrencyField/CurrencyField.js";
|
|
24
|
-
import "../CurrencyInput/CurrencyInput.js";
|
|
25
|
-
import "../DataTable/DataTable.js";
|
|
26
|
-
import "../DataTable/styles.js";
|
|
27
|
-
import "../DateField/DateField.js";
|
|
28
|
-
import "../DescriptionList/styled.js";
|
|
29
|
-
import "../Disclosure/Disclosure.js";
|
|
30
|
-
import "../Divider/Divider.js";
|
|
31
|
-
import "../Em/Em.js";
|
|
32
|
-
import "../EmailField/EmailField.js";
|
|
33
|
-
import "../EmailInput/EmailInput.js";
|
|
34
|
-
import { Margin as $ } from "../Margin/Margin.js";
|
|
35
|
-
import "../List/styled.js";
|
|
36
|
-
import "../Notification/Notification.js";
|
|
37
|
-
import { P as E } from "../P/P.js";
|
|
38
|
-
import "../Field/Field.js";
|
|
39
|
-
import "../FilterSelect/FilterSelect.js";
|
|
40
|
-
import "../Grid/Row.js";
|
|
41
|
-
import "../Grid/Col.js";
|
|
42
|
-
import "../Heading1/Heading1.js";
|
|
43
|
-
import { Heading2 as I } from "../Heading2/Heading2.js";
|
|
44
|
-
import { Heading3 as L } from "../Heading3/Heading3.js";
|
|
45
|
-
import { Icon as w } from "../Icon/Icon.js";
|
|
46
|
-
import "../Label/Label.js";
|
|
47
|
-
import "../Lead/Lead.js";
|
|
48
|
-
import "../LineThrough/LineThrough.js";
|
|
49
|
-
import "../NavHeader/NavHeader.styles.js";
|
|
50
|
-
import "../NumberField/NumberField.js";
|
|
51
|
-
import "../NumberInput/NumberInput.js";
|
|
52
|
-
import "../PasswordField/PasswordField.js";
|
|
53
|
-
import "../PasswordInput/PasswordInput.js";
|
|
54
|
-
import "../PhoneField/PhoneField.js";
|
|
55
|
-
import "../PhoneInput/PhoneInput.js";
|
|
56
|
-
import "../Radio/Radio.js";
|
|
57
|
-
import "../SelectField/Select.js";
|
|
58
|
-
import "../SkeletonCircle/SkeletonCircle.js";
|
|
59
|
-
import "../SkeletonCTA/SkeletonCTA.js";
|
|
60
|
-
import "../SkeletonHeading/SkeletonHeading.js";
|
|
61
|
-
import "../SkeletonText/SkeletonText.js";
|
|
62
|
-
import "../Small/Small.js";
|
|
63
|
-
import "react-native-svg";
|
|
64
|
-
import "../Strong/Strong.js";
|
|
65
|
-
import "../Tabs/Tabs.js";
|
|
66
|
-
import "../Tabs/Tab.js";
|
|
67
|
-
import "../Tabs/TabList.js";
|
|
68
|
-
import "../Tabs/TabPanel.js";
|
|
69
|
-
import "../TextareaField/TextareaField.js";
|
|
70
|
-
import "../TextareaInput/TextareaInput.js";
|
|
71
|
-
import "../TextField/TextField.js";
|
|
72
|
-
import "../TextInput/TextInput.js";
|
|
73
|
-
import "../TextLink/TextLink.js";
|
|
74
|
-
import "../Toggle/Toggle.js";
|
|
75
|
-
import "../Toast/Toast.js";
|
|
76
|
-
import "../ProductCarousel/ProductCarousel.js";
|
|
77
|
-
import "../RadioCard/RadioCard.js";
|
|
78
|
-
import { CloseIconShape as T } from "./CloseIconShape.js";
|
|
79
|
-
import { IndicatorIconShape as V } from "./IndicatorIconShape.js";
|
|
80
|
-
import "../../hooks/use-breakpoint.js";
|
|
81
|
-
import "../ActionList/styled.js";
|
|
82
|
-
import "../../utils/utils.js";
|
|
83
|
-
import "../../providers/IconsProvider.js";
|
|
84
|
-
import "../../providers/icons/Address.js";
|
|
85
|
-
import "../../providers/icons/Advice.js";
|
|
86
|
-
import "../../providers/icons/Archive.js";
|
|
87
|
-
import "../../providers/icons/ArrowDown.js";
|
|
88
|
-
import "../../providers/icons/ArrowLeft.js";
|
|
89
|
-
import "../../providers/icons/ArrowRight.js";
|
|
90
|
-
import "../../providers/icons/ArrowUp.js";
|
|
91
|
-
import "../../providers/icons/Award.js";
|
|
92
|
-
import "../../providers/icons/Battery.js";
|
|
93
|
-
import "../../providers/icons/Cal.js";
|
|
94
|
-
import "../../providers/icons/CalBook.js";
|
|
95
|
-
import "../../providers/icons/CaretDown.js";
|
|
96
|
-
import "../../providers/icons/CaretLeft.js";
|
|
97
|
-
import "../../providers/icons/CaretRight.js";
|
|
98
|
-
import "../../providers/icons/CaretUp.js";
|
|
99
|
-
import "../../providers/icons/Chart.js";
|
|
100
|
-
import "../../providers/icons/ChartFilled.js";
|
|
101
|
-
import "../../providers/icons/Check.js";
|
|
102
|
-
import "../../providers/icons/CheckCircle.js";
|
|
103
|
-
import "../../providers/icons/ChevronDown.js";
|
|
104
|
-
import "../../providers/icons/ChevronLeft.js";
|
|
105
|
-
import "../../providers/icons/ChevronLeftSmall.js";
|
|
106
|
-
import "../../providers/icons/ChevronLeftSmallFirst.js";
|
|
107
|
-
import "../../providers/icons/ChevronRight.js";
|
|
108
|
-
import "../../providers/icons/ChevronRightSmall.js";
|
|
109
|
-
import "../../providers/icons/ChevronRightSmallLast.js";
|
|
110
|
-
import "../../providers/icons/ChevronUp.js";
|
|
111
|
-
import "../../providers/icons/Circle.js";
|
|
112
|
-
import "../../providers/icons/CloseCircle.js";
|
|
113
|
-
import "../../providers/icons/Cross.js";
|
|
114
|
-
import "../../providers/icons/Doc.js";
|
|
115
|
-
import "../../providers/icons/Dollar.js";
|
|
116
|
-
import "../../providers/icons/Download.js";
|
|
117
|
-
import "../../providers/icons/Eco.js";
|
|
118
|
-
import "../../providers/icons/EcoHome.js";
|
|
119
|
-
import "../../providers/icons/Edit.js";
|
|
120
|
-
import "../../providers/icons/ElectricCar.js";
|
|
121
|
-
import "../../providers/icons/ElectricHome.js";
|
|
122
|
-
import "../../providers/icons/Electricity.js";
|
|
123
|
-
import "../../providers/icons/EnergyAdvice.js";
|
|
124
|
-
import "../../providers/icons/Equals.js";
|
|
125
|
-
import "../../providers/icons/Euro.js";
|
|
126
|
-
import "../../providers/icons/Gas.js";
|
|
127
|
-
import "../../providers/icons/GlobeAddress.js";
|
|
128
|
-
import "../../providers/icons/Help.js";
|
|
129
|
-
import "../../providers/icons/Hide.js";
|
|
130
|
-
import "../../providers/icons/Home.js";
|
|
131
|
-
import "../../providers/icons/HomeFilled.js";
|
|
132
|
-
import "../../providers/icons/HydroPower.js";
|
|
133
|
-
import "../../providers/icons/Info.js";
|
|
134
|
-
import "../../providers/icons/Link.js";
|
|
135
|
-
import "../../providers/icons/Logo.js";
|
|
136
|
-
import "../../providers/icons/Mail.js";
|
|
137
|
-
import "../../providers/icons/MailOpen.js";
|
|
138
|
-
import "../../providers/icons/Menu.js";
|
|
139
|
-
import "../../providers/icons/Message.js";
|
|
140
|
-
import "../../providers/icons/MessageFilled.js";
|
|
141
|
-
import "../../providers/icons/Minus.js";
|
|
142
|
-
import "../../providers/icons/Mobile.js";
|
|
143
|
-
import "../../providers/icons/NewWindow.js";
|
|
144
|
-
import "../../providers/icons/PaymentCard.js";
|
|
145
|
-
import "../../providers/icons/Phone.js";
|
|
146
|
-
import "../../providers/icons/Plus.js";
|
|
147
|
-
import "../../providers/icons/Pound.js";
|
|
148
|
-
import "../../providers/icons/Pricing.js";
|
|
149
|
-
import "../../providers/icons/Search.js";
|
|
150
|
-
import "../../providers/icons/Security.js";
|
|
151
|
-
import "../../providers/icons/Show.js";
|
|
152
|
-
import "../../providers/icons/SmartHome.js";
|
|
153
|
-
import "../../providers/icons/SmartMeter.js";
|
|
154
|
-
import "../../providers/icons/Solar.js";
|
|
155
|
-
import "../../providers/icons/Star.js";
|
|
156
|
-
import "../../providers/icons/Sun.js";
|
|
157
|
-
import "../../providers/icons/Torch.js";
|
|
158
|
-
import "../../providers/icons/Trees.js";
|
|
159
|
-
import "../../providers/icons/Tune.js";
|
|
160
|
-
import "../../providers/icons/User.js";
|
|
161
|
-
import "../../providers/icons/UserFilled.js";
|
|
162
|
-
import "../../providers/icons/Wallet.js";
|
|
163
|
-
import "../../providers/icons/WalletFilled.js";
|
|
164
|
-
import "../../providers/icons/WarmHome.js";
|
|
165
|
-
import "../../providers/icons/Warning.js";
|
|
166
|
-
import "../../providers/icons/WebAddress.js";
|
|
167
|
-
import "../../providers/icons/WindPower.js";
|
|
168
|
-
import "../Stretch/Stretch.js";
|
|
169
|
-
import "../Input/Input.js";
|
|
170
|
-
import "../DataTable/TableRow.js";
|
|
171
|
-
import "../../hooks/use-full-width.js";
|
|
172
|
-
import "../SubLabelText/SubLabelText.js";
|
|
173
|
-
import "../PasswordInput/PasswordVisibilityToggle.js";
|
|
174
|
-
import "../PasswordInput/PasswordInput.styled.js";
|
|
175
|
-
import "../SkeletonAnimation/SkeletonAnimation.js";
|
|
176
|
-
import "../Toggle/styles.js";
|
|
177
|
-
import "react-native-safe-area-context";
|
|
178
|
-
import "react-native-gesture-handler";
|
|
179
|
-
import "../ProductCarousel/NavigationDots.js";
|
|
180
|
-
import "../ProductCarousel/anchor-point.js";
|
|
181
|
-
import "styled-components";
|
|
182
|
-
const X = x.Pressable(({ theme: { core: r, semantic: i }, inline: o, inverted: n, reducedBottomPadding: a }) => {
|
|
183
|
-
const l = o ? r.space[4] : r.space[6], m = o ? r.space[3] : r.space[5];
|
|
184
|
-
return `
|
|
185
|
-
border-radius: ${o ? y(r.space[6]) : 0};
|
|
186
|
-
background-color: ${n ? i.inverted.surface : i.surface.elevated};
|
|
187
|
-
padding: ${y(l)};
|
|
188
|
-
padding-bottom: ${y(
|
|
189
|
-
a ? m : l
|
|
190
|
-
)};
|
|
191
|
-
overflow: hidden;
|
|
192
|
-
border-width: 0;
|
|
193
|
-
width: 100%;
|
|
194
|
-
`;
|
|
195
|
-
}), Y = x(E)(
|
|
196
|
-
({ theme: { semantic: r }, inverted: i }) => `
|
|
197
|
-
color: ${i ? r.inverted.message.base : r.message.base};
|
|
198
|
-
`
|
|
199
|
-
), si = ({
|
|
200
|
-
onPressCloseButton: r,
|
|
201
|
-
onPressActionButton: i,
|
|
202
|
-
onPressIndicator: o,
|
|
203
|
-
onMount: n,
|
|
204
|
-
body: a,
|
|
205
|
-
title: l,
|
|
206
|
-
buttonTitle: m,
|
|
207
|
-
ctaVariant: u,
|
|
208
|
-
image: h,
|
|
209
|
-
testID: p,
|
|
210
|
-
accessibilityLabel: k = "image",
|
|
211
|
-
inverted: g = !0,
|
|
212
|
-
inline: e = !1
|
|
213
|
-
}) => {
|
|
214
|
-
const { core: R, semantic: f } = P(D);
|
|
215
|
-
j(() => {
|
|
216
|
-
n && n();
|
|
217
|
-
}, []);
|
|
218
|
-
const S = e ? L : I, b = R.space[e ? 4 : 6], s = -b;
|
|
219
|
-
return /* @__PURE__ */ t(
|
|
220
|
-
X,
|
|
221
|
-
{
|
|
222
|
-
onPress: o,
|
|
223
|
-
inline: e,
|
|
224
|
-
inverted: g,
|
|
225
|
-
reducedBottomPadding: !!(m && !u),
|
|
226
|
-
testID: `${p}-card`,
|
|
227
|
-
children: /* @__PURE__ */ c(d, { style: { flexDirection: "row" }, children: [
|
|
228
|
-
/* @__PURE__ */ t(d, { style: { flex: 1 }, children: /* @__PURE__ */ c(M, { spaceBetween: 2, children: [
|
|
229
|
-
/* @__PURE__ */ t(
|
|
230
|
-
S,
|
|
231
|
-
{
|
|
232
|
-
style: {
|
|
233
|
-
color: g ? f.inverted.message.link : f.message.branded,
|
|
234
|
-
paddingRight: h || !r ? 0 : b
|
|
235
|
-
},
|
|
236
|
-
testID: `${p}-heading`,
|
|
237
|
-
children: l
|
|
238
|
-
}
|
|
239
|
-
),
|
|
240
|
-
/* @__PURE__ */ c(d, { children: [
|
|
241
|
-
typeof a == "string" ? /* @__PURE__ */ t(
|
|
242
|
-
d,
|
|
243
|
-
{
|
|
244
|
-
style: {
|
|
245
|
-
paddingRight: !h && !l && r ? b : 0
|
|
246
|
-
},
|
|
247
|
-
children: /* @__PURE__ */ t(Y, { inverted: g, children: a })
|
|
248
|
-
}
|
|
249
|
-
) : a,
|
|
250
|
-
m && i && !o ? u ? /* @__PURE__ */ t($, { top: 4, children: /* @__PURE__ */ t(
|
|
251
|
-
A,
|
|
252
|
-
{
|
|
253
|
-
onPress: i,
|
|
254
|
-
testID: `${p}-button`,
|
|
255
|
-
variant: u,
|
|
256
|
-
children: m
|
|
257
|
-
}
|
|
258
|
-
) }) : /* @__PURE__ */ t($, { top: 2, children: /* @__PURE__ */ t(
|
|
259
|
-
H,
|
|
260
|
-
{
|
|
261
|
-
inverted: g,
|
|
262
|
-
inline: !0,
|
|
263
|
-
onPress: i,
|
|
264
|
-
testID: `${p}-button`,
|
|
265
|
-
iconRight: "chevron-right-small",
|
|
266
|
-
children: m
|
|
267
|
-
}
|
|
268
|
-
) }) : null
|
|
269
|
-
] })
|
|
270
|
-
] }) }),
|
|
271
|
-
h ? /* @__PURE__ */ t(
|
|
272
|
-
C,
|
|
273
|
-
{
|
|
274
|
-
style: {
|
|
275
|
-
flex: 1,
|
|
276
|
-
flexDirection: "row",
|
|
277
|
-
height: "100%",
|
|
278
|
-
marginTop: s,
|
|
279
|
-
marginRight: s
|
|
280
|
-
},
|
|
281
|
-
maskElement: /* @__PURE__ */ t(
|
|
282
|
-
d,
|
|
283
|
-
{
|
|
284
|
-
style: {
|
|
285
|
-
width: "100%",
|
|
286
|
-
height: 165,
|
|
287
|
-
backgroundColor: "olive",
|
|
288
|
-
transform: [
|
|
289
|
-
{ rotate: "-16deg" },
|
|
290
|
-
{ translateX: 40 },
|
|
291
|
-
{ translateY: 25 }
|
|
292
|
-
]
|
|
293
|
-
}
|
|
294
|
-
}
|
|
295
|
-
),
|
|
296
|
-
children: /* @__PURE__ */ t(
|
|
297
|
-
z,
|
|
298
|
-
{
|
|
299
|
-
resizeMode: "cover",
|
|
300
|
-
source: h,
|
|
301
|
-
style: {
|
|
302
|
-
width: "100%",
|
|
303
|
-
height: 200,
|
|
304
|
-
position: "absolute",
|
|
305
|
-
top: 0,
|
|
306
|
-
right: 0
|
|
307
|
-
},
|
|
308
|
-
accessible: !0,
|
|
309
|
-
accessibilityRole: "image",
|
|
310
|
-
accessibilityLabel: k
|
|
311
|
-
}
|
|
312
|
-
)
|
|
313
|
-
}
|
|
314
|
-
) : null,
|
|
315
|
-
o ? /* @__PURE__ */ c(
|
|
316
|
-
v,
|
|
317
|
-
{
|
|
318
|
-
style: {
|
|
319
|
-
position: "absolute",
|
|
320
|
-
right: s,
|
|
321
|
-
bottom: s
|
|
322
|
-
},
|
|
323
|
-
onPress: o,
|
|
324
|
-
testID: `${p}-indicator-button`,
|
|
325
|
-
children: [
|
|
326
|
-
/* @__PURE__ */ t(V, {}),
|
|
327
|
-
/* @__PURE__ */ t(
|
|
328
|
-
w,
|
|
329
|
-
{
|
|
330
|
-
size: 14,
|
|
331
|
-
style: {
|
|
332
|
-
position: "absolute",
|
|
333
|
-
right: e ? 8 : 6,
|
|
334
|
-
bottom: 16
|
|
335
|
-
},
|
|
336
|
-
color: f.surface.elevated,
|
|
337
|
-
name: "chevron-right",
|
|
338
|
-
accessibilityLabel: "chevron-right"
|
|
339
|
-
}
|
|
340
|
-
)
|
|
341
|
-
]
|
|
342
|
-
}
|
|
343
|
-
) : null,
|
|
344
|
-
r && !o ? /* @__PURE__ */ c(
|
|
345
|
-
v,
|
|
346
|
-
{
|
|
347
|
-
style: {
|
|
348
|
-
position: "absolute",
|
|
349
|
-
right: s,
|
|
350
|
-
top: s
|
|
351
|
-
},
|
|
352
|
-
onPress: r,
|
|
353
|
-
testID: `${p}-close-button`,
|
|
354
|
-
children: [
|
|
355
|
-
/* @__PURE__ */ t(T, {}),
|
|
356
|
-
/* @__PURE__ */ t(
|
|
357
|
-
w,
|
|
358
|
-
{
|
|
359
|
-
size: 14,
|
|
360
|
-
style: {
|
|
361
|
-
position: "absolute",
|
|
362
|
-
top: e ? 14 : 12,
|
|
363
|
-
right: e ? 14 : 12
|
|
364
|
-
},
|
|
365
|
-
color: f.surface.elevated,
|
|
366
|
-
name: "cross",
|
|
367
|
-
accessibilityLabel: "close"
|
|
368
|
-
}
|
|
369
|
-
)
|
|
370
|
-
]
|
|
371
|
-
}
|
|
372
|
-
) : null
|
|
373
|
-
] })
|
|
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]; } };
|
|
374
7
|
}
|
|
375
|
-
|
|
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 __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
376
24
|
};
|
|
377
|
-
|
|
378
|
-
|
|
25
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
26
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
379
27
|
};
|
|
28
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.ActionCard = void 0;
|
|
30
|
+
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
31
|
+
var element_core_1 = require("@ovotech/element-core");
|
|
32
|
+
var masked_view_1 = __importDefault(require("@react-native-masked-view/masked-view"));
|
|
33
|
+
var react_1 = require("react");
|
|
34
|
+
var react_native_1 = require("react-native");
|
|
35
|
+
var __1 = require("../");
|
|
36
|
+
var styled_native_1 = __importStar(require("../../styled.native"));
|
|
37
|
+
var P_1 = require("../P");
|
|
38
|
+
var CloseIconShape_1 = require("./CloseIconShape");
|
|
39
|
+
var IndicatorIconShape_1 = require("./IndicatorIconShape");
|
|
40
|
+
var StyledCard = styled_native_1.default.Pressable(function (_a) {
|
|
41
|
+
var _b = _a.theme, core = _b.core, semantic = _b.semantic, inline = _a.inline, inverted = _a.inverted, reducedBottomPadding = _a.reducedBottomPadding;
|
|
42
|
+
var paddingVal = inline ? core.space[4] : core.space[6];
|
|
43
|
+
var reducedBottomPaddingVal = inline ? core.space[3] : core.space[5];
|
|
44
|
+
return "\n border-radius: ".concat(inline ? (0, element_core_1.numToPx)(core.space[6]) : 0, ";\n background-color: ").concat(inverted ? semantic.inverted.surface : semantic.surface.elevated, ";\n padding: ").concat((0, element_core_1.numToPx)(paddingVal), ";\n padding-bottom: ").concat((0, element_core_1.numToPx)(reducedBottomPadding ? reducedBottomPaddingVal : paddingVal), ";\n overflow: hidden;\n border-width: 0;\n width: 100%;\n ");
|
|
45
|
+
});
|
|
46
|
+
var StyledP = (0, styled_native_1.default)(P_1.P)(function (_a) {
|
|
47
|
+
var semantic = _a.theme.semantic, inverted = _a.inverted;
|
|
48
|
+
return "\n color: ".concat(inverted ? semantic.inverted.message.base : semantic.message.base, ";\n");
|
|
49
|
+
});
|
|
50
|
+
var ActionCard = function (_a) {
|
|
51
|
+
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;
|
|
52
|
+
var _e = (0, react_1.useContext)(styled_native_1.ThemeContext), core = _e.core, semantic = _e.semantic;
|
|
53
|
+
(0, react_1.useEffect)(function () {
|
|
54
|
+
if (onMount) {
|
|
55
|
+
onMount();
|
|
56
|
+
}
|
|
57
|
+
}, []);
|
|
58
|
+
var Heading = inline ? __1.Heading3 : __1.Heading2;
|
|
59
|
+
var cardPadding = core.space[inline ? 4 : 6];
|
|
60
|
+
var negativeMarginAdjustment = -cardPadding;
|
|
61
|
+
return ((0, jsx_runtime_1.jsx)(StyledCard, { onPress: onPressIndicator, inline: inline, inverted: inverted, reducedBottomPadding: Boolean(buttonTitle && !ctaVariant), testID: "".concat(testID, "-card"), children: (0, jsx_runtime_1.jsxs)(react_native_1.View, { style: { flexDirection: 'row' }, children: [(0, jsx_runtime_1.jsx)(react_native_1.View, { style: { flex: 1 }, children: (0, jsx_runtime_1.jsxs)(__1.Stack, { spaceBetween: 2, children: [(0, jsx_runtime_1.jsx)(Heading, { style: {
|
|
62
|
+
color: inverted
|
|
63
|
+
? semantic.inverted.message.link
|
|
64
|
+
: semantic.message.branded,
|
|
65
|
+
paddingRight: image || !onPressCloseButton ? 0 : cardPadding,
|
|
66
|
+
}, testID: "".concat(testID, "-heading"), children: title }), (0, jsx_runtime_1.jsxs)(react_native_1.View, { children: [typeof body === 'string' ? ((0, jsx_runtime_1.jsx)(react_native_1.View, { style: {
|
|
67
|
+
paddingRight: !image && !title && onPressCloseButton ? cardPadding : 0,
|
|
68
|
+
}, children: (0, jsx_runtime_1.jsx)(StyledP, { inverted: inverted, children: body }) })) : (body), buttonTitle && onPressActionButton && !onPressIndicator ? (!ctaVariant ? ((0, jsx_runtime_1.jsx)(__1.Margin, { top: 2, children: (0, jsx_runtime_1.jsx)(__1.Action, { inverted: inverted, inline: true, onPress: onPressActionButton, testID: "".concat(testID, "-button"), iconRight: "chevron-right-small", children: buttonTitle }) })) : ((0, jsx_runtime_1.jsx)(__1.Margin, { top: 4, children: (0, jsx_runtime_1.jsx)(__1.CTAButton, { onPress: onPressActionButton, testID: "".concat(testID, "-button"), variant: ctaVariant, children: buttonTitle }) }))) : null] })] }) }), image ? ((0, jsx_runtime_1.jsx)(masked_view_1.default, { style: {
|
|
69
|
+
flex: 1,
|
|
70
|
+
flexDirection: 'row',
|
|
71
|
+
height: '100%',
|
|
72
|
+
marginTop: negativeMarginAdjustment,
|
|
73
|
+
marginRight: negativeMarginAdjustment,
|
|
74
|
+
}, maskElement: (0, jsx_runtime_1.jsx)(react_native_1.View, { style: {
|
|
75
|
+
width: '100%',
|
|
76
|
+
height: 165,
|
|
77
|
+
backgroundColor: 'olive',
|
|
78
|
+
transform: [
|
|
79
|
+
{ rotate: '-16deg' },
|
|
80
|
+
{ translateX: 40 },
|
|
81
|
+
{ translateY: 25 },
|
|
82
|
+
],
|
|
83
|
+
} }), children: (0, jsx_runtime_1.jsx)(react_native_1.Image, { resizeMode: "cover", source: image, style: {
|
|
84
|
+
width: '100%',
|
|
85
|
+
height: 200,
|
|
86
|
+
position: 'absolute',
|
|
87
|
+
top: 0,
|
|
88
|
+
right: 0,
|
|
89
|
+
}, accessible: true, accessibilityRole: "image", accessibilityLabel: accessibilityLabel }) })) : null, onPressIndicator ? ((0, jsx_runtime_1.jsxs)(react_native_1.Pressable, { style: {
|
|
90
|
+
position: 'absolute',
|
|
91
|
+
right: negativeMarginAdjustment,
|
|
92
|
+
bottom: negativeMarginAdjustment,
|
|
93
|
+
}, onPress: onPressIndicator, testID: "".concat(testID, "-indicator-button"), children: [(0, jsx_runtime_1.jsx)(IndicatorIconShape_1.IndicatorIconShape, {}), (0, jsx_runtime_1.jsx)(__1.Icon, { size: 14, style: {
|
|
94
|
+
position: 'absolute',
|
|
95
|
+
right: inline ? 8 : 6,
|
|
96
|
+
bottom: 16,
|
|
97
|
+
}, color: semantic.surface.elevated, name: "chevron-right", accessibilityLabel: "chevron-right" })] })) : null, onPressCloseButton && !onPressIndicator ? ((0, jsx_runtime_1.jsxs)(react_native_1.Pressable, { style: {
|
|
98
|
+
position: 'absolute',
|
|
99
|
+
right: negativeMarginAdjustment,
|
|
100
|
+
top: negativeMarginAdjustment,
|
|
101
|
+
}, onPress: onPressCloseButton, testID: "".concat(testID, "-close-button"), children: [(0, jsx_runtime_1.jsx)(CloseIconShape_1.CloseIconShape, {}), (0, jsx_runtime_1.jsx)(__1.Icon, { size: 14, style: {
|
|
102
|
+
position: 'absolute',
|
|
103
|
+
top: inline ? 14 : 12,
|
|
104
|
+
right: inline ? 14 : 12,
|
|
105
|
+
}, color: semantic.surface.elevated, name: "cross", accessibilityLabel: "close" })] })) : null] }) }));
|
|
106
|
+
};
|
|
107
|
+
exports.ActionCard = ActionCard;
|
|
@@ -1,15 +1,41 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
)
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
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 __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
15
24
|
};
|
|
25
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
26
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
|
+
};
|
|
28
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.CloseIconShape = void 0;
|
|
30
|
+
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
31
|
+
var react_native_svg_1 = __importStar(require("react-native-svg"));
|
|
32
|
+
var styled_native_1 = __importDefault(require("../../styled.native"));
|
|
33
|
+
var StyledPath = (0, styled_native_1.default)(react_native_svg_1.Path)(function (_a) {
|
|
34
|
+
var semantic = _a.theme.semantic, color = _a.color;
|
|
35
|
+
return "\n fill: ".concat(color !== null && color !== void 0 ? color : semantic.message.branded, "\n");
|
|
36
|
+
});
|
|
37
|
+
var CloseIconShape = function (_a) {
|
|
38
|
+
var color = _a.color;
|
|
39
|
+
return ((0, jsx_runtime_1.jsxs)(react_native_svg_1.default, { width: 44, height: 44, children: [(0, jsx_runtime_1.jsx)(StyledPath, { color: color, d: "M11.632 44 0 0h44v35.402L11.632 44Z" }), (0, jsx_runtime_1.jsx)(react_native_svg_1.Defs, { children: (0, jsx_runtime_1.jsx)(react_native_svg_1.ClipPath, { id: "a", children: (0, jsx_runtime_1.jsx)(react_native_svg_1.Path, { fill: "#fff", d: "M16 16h12v12H16z" }) }) })] }));
|
|
40
|
+
};
|
|
41
|
+
exports.CloseIconShape = CloseIconShape;
|
|
@@ -1,12 +1,41 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
)
|
|
10
|
-
|
|
11
|
-
|
|
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 __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
12
24
|
};
|
|
25
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
26
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
|
+
};
|
|
28
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.IndicatorIconShape = void 0;
|
|
30
|
+
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
31
|
+
var react_native_svg_1 = __importStar(require("react-native-svg"));
|
|
32
|
+
var styled_native_1 = __importDefault(require("../../styled.native"));
|
|
33
|
+
var StyledPath = (0, styled_native_1.default)(react_native_svg_1.Path)(function (_a) {
|
|
34
|
+
var semantic = _a.theme.semantic, color = _a.color;
|
|
35
|
+
return "\n fill: ".concat(color !== null && color !== void 0 ? color : semantic.message.branded, "\n");
|
|
36
|
+
});
|
|
37
|
+
var IndicatorIconShape = function (_a) {
|
|
38
|
+
var color = _a.color;
|
|
39
|
+
return ((0, jsx_runtime_1.jsx)(react_native_svg_1.default, { width: 32, height: 48, children: (0, jsx_runtime_1.jsx)(StyledPath, { color: color, d: "M0 9.5 32 1v47H10.5L0 9.5Z" }) }));
|
|
40
|
+
};
|
|
41
|
+
exports.IndicatorIconShape = IndicatorIconShape;
|