@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
|
@@ -2,7 +2,7 @@ import { PropsWithChildren } from 'react';
|
|
|
2
2
|
import { TextProps, ViewProps } from 'react-native';
|
|
3
3
|
declare const Li: ({ children }: PropsWithChildren<TextProps>) => JSX.Element;
|
|
4
4
|
declare const Ul: (props: PropsWithChildren<ViewProps & {
|
|
5
|
-
showBullets?: boolean;
|
|
5
|
+
showBullets?: boolean | undefined;
|
|
6
6
|
}>) => JSX.Element;
|
|
7
7
|
declare const Ol: (props: PropsWithChildren<ViewProps>) => JSX.Element;
|
|
8
8
|
export { Li, Ol, Ul };
|
|
@@ -1,40 +1,34 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
prefix: o
|
|
15
|
-
}) => /* @__PURE__ */ m(d, { children: [
|
|
16
|
-
o ? /* @__PURE__ */ e(h, { children: o }) : /* @__PURE__ */ e(f, { visible: t }),
|
|
17
|
-
/* @__PURE__ */ e(a, { children: r })
|
|
18
|
-
] }), l = ({
|
|
19
|
-
children: r,
|
|
20
|
-
listType: t,
|
|
21
|
-
showBullets: o
|
|
22
|
-
}) => p.map(r, (c, s) => /* @__PURE__ */ e(
|
|
23
|
-
x,
|
|
24
|
-
{
|
|
25
|
-
prefix: t === "ol" ? `${s + 1}.` : void 0,
|
|
26
|
-
showBullets: o,
|
|
27
|
-
children: c
|
|
28
|
-
}
|
|
29
|
-
)), g = ({ children: r }) => /* @__PURE__ */ e(u, { style: { flexDirection: "column" }, children: r }), k = (r) => {
|
|
30
|
-
const { children: t, showBullets: o } = r;
|
|
31
|
-
return /* @__PURE__ */ e(i, { top: 2, children: /* @__PURE__ */ e(n, { spaceBetween: 2, children: l({ children: t, listType: "ul", showBullets: o }) }) });
|
|
32
|
-
}, q = (r) => {
|
|
33
|
-
const { children: t } = r;
|
|
34
|
-
return /* @__PURE__ */ e(i, { top: 2, children: /* @__PURE__ */ e(n, { spaceBetween: 2, children: l({ children: t, listType: "ol" }) }) });
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Ul = exports.Ol = exports.Li = void 0;
|
|
4
|
+
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
var react_1 = require("react");
|
|
6
|
+
var react_native_1 = require("react-native");
|
|
7
|
+
var utils_1 = require("../../utils");
|
|
8
|
+
var Margin_1 = require("../Margin");
|
|
9
|
+
var Stack_1 = require("../Stack");
|
|
10
|
+
var styled_1 = require("./styled");
|
|
11
|
+
var ListItem = function (_a) {
|
|
12
|
+
var children = _a.children, _b = _a.showBullets, showBullets = _b === void 0 ? true : _b, prefix = _a.prefix;
|
|
13
|
+
return ((0, jsx_runtime_1.jsxs)(styled_1.FlexRow, { children: [prefix ? ((0, jsx_runtime_1.jsx)(styled_1.TextBullet, { children: prefix })) : ((0, jsx_runtime_1.jsx)(styled_1.SquareBullet, { visible: showBullets })), (0, jsx_runtime_1.jsx)(styled_1.LiContent, { children: children })] }));
|
|
35
14
|
};
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
15
|
+
var renderList = function (_a) {
|
|
16
|
+
var children = _a.children, listType = _a.listType, showBullets = _a.showBullets;
|
|
17
|
+
var validChildren = (0, utils_1.getValidChildren)(children);
|
|
18
|
+
return react_1.Children.map(validChildren, function (child, index) { return ((0, jsx_runtime_1.jsx)(ListItem, { prefix: listType === 'ol' ? "".concat(index + 1, ".") : undefined, showBullets: showBullets, children: child })); });
|
|
40
19
|
};
|
|
20
|
+
var Li = function (_a) {
|
|
21
|
+
var children = _a.children;
|
|
22
|
+
return (0, jsx_runtime_1.jsx)(react_native_1.View, { style: { flexDirection: 'column' }, children: children });
|
|
23
|
+
};
|
|
24
|
+
exports.Li = Li;
|
|
25
|
+
var Ul = function (props) {
|
|
26
|
+
var children = props.children, showBullets = props.showBullets;
|
|
27
|
+
return ((0, jsx_runtime_1.jsx)(Margin_1.Margin, { top: 2, children: (0, jsx_runtime_1.jsx)(Stack_1.Stack, { spaceBetween: 2, children: renderList({ children: children, listType: 'ul', showBullets: showBullets }) }) }));
|
|
28
|
+
};
|
|
29
|
+
exports.Ul = Ul;
|
|
30
|
+
var Ol = function (props) {
|
|
31
|
+
var children = props.children;
|
|
32
|
+
return ((0, jsx_runtime_1.jsx)(Margin_1.Margin, { top: 2, children: (0, jsx_runtime_1.jsx)(Stack_1.Stack, { spaceBetween: 2, children: renderList({ children: children, listType: 'ol' }) }) }));
|
|
33
|
+
};
|
|
34
|
+
exports.Ol = Ol;
|
|
@@ -1,16 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
import "../../styled.native-KEscfVp7.js";
|
|
9
|
-
import "../../utils/utils.js";
|
|
10
|
-
import "../Stack/Stack.js";
|
|
11
|
-
import "./styled.js";
|
|
12
|
-
export {
|
|
13
|
-
U as Li,
|
|
14
|
-
a as Ol,
|
|
15
|
-
b as Ul
|
|
16
|
-
};
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Li = exports.Ul = exports.Ol = void 0;
|
|
4
|
+
var List_1 = require("./List");
|
|
5
|
+
Object.defineProperty(exports, "Ol", { enumerable: true, get: function () { return List_1.Ol; } });
|
|
6
|
+
Object.defineProperty(exports, "Ul", { enumerable: true, get: function () { return List_1.Ul; } });
|
|
7
|
+
Object.defineProperty(exports, "Li", { enumerable: true, get: function () { return List_1.Li; } });
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import { ViewProps } from 'react-native';
|
|
2
3
|
import { Breakpoints } from '../../hooks';
|
|
3
4
|
export declare const SquareBullet: import("styled-components").StyledComponent<typeof import("react-native").View, {
|
|
@@ -359,6 +360,8 @@ export declare const SquareBullet: import("styled-components").StyledComponent<t
|
|
|
359
360
|
surfaceFocused: string;
|
|
360
361
|
outlineFocused: string;
|
|
361
362
|
backgroundFocused: string;
|
|
363
|
+
messageInverted: string;
|
|
364
|
+
surfaceInverted: string;
|
|
362
365
|
};
|
|
363
366
|
secondary: {
|
|
364
367
|
message: string;
|
|
@@ -369,6 +372,8 @@ export declare const SquareBullet: import("styled-components").StyledComponent<t
|
|
|
369
372
|
surfaceFocused: string;
|
|
370
373
|
outlineFocused: string;
|
|
371
374
|
backgroundFocused: string;
|
|
375
|
+
messageInverted: string;
|
|
376
|
+
surfaceInverted: string;
|
|
372
377
|
};
|
|
373
378
|
destructive: {
|
|
374
379
|
message: string;
|
|
@@ -379,6 +384,8 @@ export declare const SquareBullet: import("styled-components").StyledComponent<t
|
|
|
379
384
|
surfaceFocused: string;
|
|
380
385
|
outlineFocused: string;
|
|
381
386
|
backgroundFocused: string;
|
|
387
|
+
messageInverted: string;
|
|
388
|
+
surfaceInverted: string;
|
|
382
389
|
};
|
|
383
390
|
};
|
|
384
391
|
heading1: {
|
|
@@ -840,6 +847,8 @@ export declare const TextBullet: import("styled-components").StyledComponent<typ
|
|
|
840
847
|
surfaceFocused: string;
|
|
841
848
|
outlineFocused: string;
|
|
842
849
|
backgroundFocused: string;
|
|
850
|
+
messageInverted: string;
|
|
851
|
+
surfaceInverted: string;
|
|
843
852
|
};
|
|
844
853
|
secondary: {
|
|
845
854
|
message: string;
|
|
@@ -850,6 +859,8 @@ export declare const TextBullet: import("styled-components").StyledComponent<typ
|
|
|
850
859
|
surfaceFocused: string;
|
|
851
860
|
outlineFocused: string;
|
|
852
861
|
backgroundFocused: string;
|
|
862
|
+
messageInverted: string;
|
|
863
|
+
surfaceInverted: string;
|
|
853
864
|
};
|
|
854
865
|
destructive: {
|
|
855
866
|
message: string;
|
|
@@ -860,6 +871,8 @@ export declare const TextBullet: import("styled-components").StyledComponent<typ
|
|
|
860
871
|
surfaceFocused: string;
|
|
861
872
|
outlineFocused: string;
|
|
862
873
|
backgroundFocused: string;
|
|
874
|
+
messageInverted: string;
|
|
875
|
+
surfaceInverted: string;
|
|
863
876
|
};
|
|
864
877
|
};
|
|
865
878
|
heading1: {
|
|
@@ -1319,6 +1332,8 @@ export declare const FlexRow: import("styled-components").StyledComponent<typeof
|
|
|
1319
1332
|
surfaceFocused: string;
|
|
1320
1333
|
outlineFocused: string;
|
|
1321
1334
|
backgroundFocused: string;
|
|
1335
|
+
messageInverted: string;
|
|
1336
|
+
surfaceInverted: string;
|
|
1322
1337
|
};
|
|
1323
1338
|
secondary: {
|
|
1324
1339
|
message: string;
|
|
@@ -1329,6 +1344,8 @@ export declare const FlexRow: import("styled-components").StyledComponent<typeof
|
|
|
1329
1344
|
surfaceFocused: string;
|
|
1330
1345
|
outlineFocused: string;
|
|
1331
1346
|
backgroundFocused: string;
|
|
1347
|
+
messageInverted: string;
|
|
1348
|
+
surfaceInverted: string;
|
|
1332
1349
|
};
|
|
1333
1350
|
destructive: {
|
|
1334
1351
|
message: string;
|
|
@@ -1339,6 +1356,8 @@ export declare const FlexRow: import("styled-components").StyledComponent<typeof
|
|
|
1339
1356
|
surfaceFocused: string;
|
|
1340
1357
|
outlineFocused: string;
|
|
1341
1358
|
backgroundFocused: string;
|
|
1359
|
+
messageInverted: string;
|
|
1360
|
+
surfaceInverted: string;
|
|
1342
1361
|
};
|
|
1343
1362
|
};
|
|
1344
1363
|
heading1: {
|
|
@@ -1798,6 +1817,8 @@ export declare const LiContent: import("styled-components").StyledComponent<type
|
|
|
1798
1817
|
surfaceFocused: string;
|
|
1799
1818
|
outlineFocused: string;
|
|
1800
1819
|
backgroundFocused: string;
|
|
1820
|
+
messageInverted: string;
|
|
1821
|
+
surfaceInverted: string;
|
|
1801
1822
|
};
|
|
1802
1823
|
secondary: {
|
|
1803
1824
|
message: string;
|
|
@@ -1808,6 +1829,8 @@ export declare const LiContent: import("styled-components").StyledComponent<type
|
|
|
1808
1829
|
surfaceFocused: string;
|
|
1809
1830
|
outlineFocused: string;
|
|
1810
1831
|
backgroundFocused: string;
|
|
1832
|
+
messageInverted: string;
|
|
1833
|
+
surfaceInverted: string;
|
|
1811
1834
|
};
|
|
1812
1835
|
destructive: {
|
|
1813
1836
|
message: string;
|
|
@@ -1818,6 +1841,8 @@ export declare const LiContent: import("styled-components").StyledComponent<type
|
|
|
1818
1841
|
surfaceFocused: string;
|
|
1819
1842
|
outlineFocused: string;
|
|
1820
1843
|
backgroundFocused: string;
|
|
1844
|
+
messageInverted: string;
|
|
1845
|
+
surfaceInverted: string;
|
|
1821
1846
|
};
|
|
1822
1847
|
};
|
|
1823
1848
|
heading1: {
|
|
@@ -1,38 +1,53 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
const g = ((l ? e.lineHeight.body.large : e.lineHeight.body.small) - e.space[2]) / 2;
|
|
6
|
-
return o`
|
|
7
|
-
align-self: flex-start;
|
|
8
|
-
width: ${t(e.space[2])};
|
|
9
|
-
height: ${t(e.space[2])};
|
|
10
|
-
margin-right: ${t(e.space[2])};
|
|
11
|
-
margin-top: ${t(g)};
|
|
12
|
-
background-color: ${i ? s.message.base : "transparent"};
|
|
13
|
-
`;
|
|
14
|
-
}), c = n.Text(
|
|
15
|
-
({ theme: { core: e, semantic: s }, smallAndUp: i }) => {
|
|
16
|
-
const l = i ? e.fontSize.body.large : e.fontSize.body.small, a = i ? e.lineHeight.body.large : e.lineHeight.body.small;
|
|
17
|
-
return o`
|
|
18
|
-
margin-right: ${t(e.space[1])};
|
|
19
|
-
min-width: ${t(e.space[3])};
|
|
20
|
-
min-height: ${t(e.space[3])};
|
|
21
|
-
font-size: ${t(l)};
|
|
22
|
-
line-height: ${t(a)};
|
|
23
|
-
text-align: left;
|
|
24
|
-
color: ${s.message.base};
|
|
25
|
-
`;
|
|
26
|
-
}
|
|
27
|
-
), f = n.View`
|
|
28
|
-
flex-direction: row;
|
|
29
|
-
`, d = n.View`
|
|
30
|
-
flex-direction: column;
|
|
31
|
-
flex: 1;
|
|
32
|
-
`;
|
|
33
|
-
export {
|
|
34
|
-
f as FlexRow,
|
|
35
|
-
d as LiContent,
|
|
36
|
-
p as SquareBullet,
|
|
37
|
-
c as TextBullet
|
|
1
|
+
"use strict";
|
|
2
|
+
var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
|
|
3
|
+
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
|
4
|
+
return cooked;
|
|
38
5
|
};
|
|
6
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
7
|
+
if (k2 === undefined) k2 = k;
|
|
8
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
9
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
10
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
11
|
+
}
|
|
12
|
+
Object.defineProperty(o, k2, desc);
|
|
13
|
+
}) : (function(o, m, k, k2) {
|
|
14
|
+
if (k2 === undefined) k2 = k;
|
|
15
|
+
o[k2] = m[k];
|
|
16
|
+
}));
|
|
17
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
18
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
19
|
+
}) : function(o, v) {
|
|
20
|
+
o["default"] = v;
|
|
21
|
+
});
|
|
22
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
23
|
+
if (mod && mod.__esModule) return mod;
|
|
24
|
+
var result = {};
|
|
25
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
26
|
+
__setModuleDefault(result, mod);
|
|
27
|
+
return result;
|
|
28
|
+
};
|
|
29
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
30
|
+
exports.LiContent = exports.FlexRow = exports.TextBullet = exports.SquareBullet = void 0;
|
|
31
|
+
var element_core_1 = require("@ovotech/element-core");
|
|
32
|
+
var styled_native_1 = __importStar(require("../../styled.native"));
|
|
33
|
+
exports.SquareBullet = styled_native_1.default.View(function (_a) {
|
|
34
|
+
var _b = _a.theme, core = _b.core, semantic = _b.semantic, visible = _a.visible, smallAndUp = _a.smallAndUp;
|
|
35
|
+
var lineHeight = smallAndUp
|
|
36
|
+
? core.lineHeight.body.large
|
|
37
|
+
: core.lineHeight.body.small;
|
|
38
|
+
var topMargin = (lineHeight - core.space[2]) / 2;
|
|
39
|
+
return (0, styled_native_1.css)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n align-self: flex-start;\n width: ", ";\n height: ", ";\n margin-right: ", ";\n margin-top: ", ";\n background-color: ", ";\n "], ["\n align-self: flex-start;\n width: ", ";\n height: ", ";\n margin-right: ", ";\n margin-top: ", ";\n background-color: ", ";\n "])), (0, element_core_1.numToPx)(core.space[2]), (0, element_core_1.numToPx)(core.space[2]), (0, element_core_1.numToPx)(core.space[2]), (0, element_core_1.numToPx)(topMargin), visible ? semantic.message.base : 'transparent');
|
|
40
|
+
});
|
|
41
|
+
exports.TextBullet = styled_native_1.default.Text(function (_a) {
|
|
42
|
+
var _b = _a.theme, core = _b.core, semantic = _b.semantic, smallAndUp = _a.smallAndUp;
|
|
43
|
+
var fontSize = smallAndUp
|
|
44
|
+
? core.fontSize.body.large
|
|
45
|
+
: core.fontSize.body.small;
|
|
46
|
+
var lineHeight = smallAndUp
|
|
47
|
+
? core.lineHeight.body.large
|
|
48
|
+
: core.lineHeight.body.small;
|
|
49
|
+
return (0, styled_native_1.css)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n margin-right: ", ";\n min-width: ", ";\n min-height: ", ";\n font-size: ", ";\n line-height: ", ";\n text-align: left;\n color: ", ";\n "], ["\n margin-right: ", ";\n min-width: ", ";\n min-height: ", ";\n font-size: ", ";\n line-height: ", ";\n text-align: left;\n color: ", ";\n "])), (0, element_core_1.numToPx)(core.space[1]), (0, element_core_1.numToPx)(core.space[3]), (0, element_core_1.numToPx)(core.space[3]), (0, element_core_1.numToPx)(fontSize), (0, element_core_1.numToPx)(lineHeight), semantic.message.base);
|
|
50
|
+
});
|
|
51
|
+
exports.FlexRow = styled_native_1.default.View(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n flex-direction: row;\n"], ["\n flex-direction: row;\n"])));
|
|
52
|
+
exports.LiContent = styled_native_1.default.View(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n flex-direction: column;\n flex: 1;\n"], ["\n flex-direction: column;\n flex: 1;\n"])));
|
|
53
|
+
var templateObject_1, templateObject_2, templateObject_3, templateObject_4;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { SpaceKey } from '@ovotech/element-core';
|
|
2
2
|
import { ComponentProps } from 'react';
|
|
3
3
|
import { Breakpoints } from '../../hooks';
|
|
4
|
-
|
|
4
|
+
type MProps = {
|
|
5
5
|
mTop?: SpaceKey | SpaceKey[];
|
|
6
6
|
mBottom?: SpaceKey | SpaceKey[];
|
|
7
7
|
mLeft?: SpaceKey | SpaceKey[];
|
|
@@ -370,6 +370,8 @@ declare const StyledMargin: import("styled-components").StyledComponent<typeof i
|
|
|
370
370
|
surfaceFocused: string;
|
|
371
371
|
outlineFocused: string;
|
|
372
372
|
backgroundFocused: string;
|
|
373
|
+
messageInverted: string;
|
|
374
|
+
surfaceInverted: string;
|
|
373
375
|
};
|
|
374
376
|
secondary: {
|
|
375
377
|
message: string;
|
|
@@ -380,6 +382,8 @@ declare const StyledMargin: import("styled-components").StyledComponent<typeof i
|
|
|
380
382
|
surfaceFocused: string;
|
|
381
383
|
outlineFocused: string;
|
|
382
384
|
backgroundFocused: string;
|
|
385
|
+
messageInverted: string;
|
|
386
|
+
surfaceInverted: string;
|
|
383
387
|
};
|
|
384
388
|
destructive: {
|
|
385
389
|
message: string;
|
|
@@ -390,6 +394,8 @@ declare const StyledMargin: import("styled-components").StyledComponent<typeof i
|
|
|
390
394
|
surfaceFocused: string;
|
|
391
395
|
outlineFocused: string;
|
|
392
396
|
backgroundFocused: string;
|
|
397
|
+
messageInverted: string;
|
|
398
|
+
surfaceInverted: string;
|
|
393
399
|
};
|
|
394
400
|
};
|
|
395
401
|
heading1: {
|
|
@@ -490,7 +496,7 @@ declare const StyledMargin: import("styled-components").StyledComponent<typeof i
|
|
|
490
496
|
};
|
|
491
497
|
};
|
|
492
498
|
}, MProps, never>;
|
|
493
|
-
|
|
499
|
+
type Props = Omit<ComponentProps<typeof StyledMargin>, 'mTop' | 'mBottom' | 'mLeft' | 'mRight' | 'breakpoints'> & {
|
|
494
500
|
top?: SpaceKey | SpaceKey[];
|
|
495
501
|
bottom?: SpaceKey | SpaceKey[];
|
|
496
502
|
left?: SpaceKey | SpaceKey[];
|
|
@@ -1,70 +1,52 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
},
|
|
13
|
-
mTop: g,
|
|
14
|
-
mBottom: i,
|
|
15
|
-
mLeft: n,
|
|
16
|
-
mRight: $,
|
|
17
|
-
horizontal: o,
|
|
18
|
-
vertical: f,
|
|
19
|
-
all: p,
|
|
20
|
-
breakpoints: m
|
|
21
|
-
}) => {
|
|
22
|
-
const r = (s) => a(e[s]);
|
|
23
|
-
return `
|
|
24
|
-
${o ? `
|
|
25
|
-
${t(
|
|
26
|
-
"margin-left",
|
|
27
|
-
o,
|
|
28
|
-
m,
|
|
29
|
-
r
|
|
30
|
-
)}
|
|
31
|
-
${t(
|
|
32
|
-
"margin-right",
|
|
33
|
-
o,
|
|
34
|
-
m,
|
|
35
|
-
r
|
|
36
|
-
)}
|
|
37
|
-
` : ""}
|
|
38
|
-
${f ? `
|
|
39
|
-
${t("margin-top", f, m, r)}
|
|
40
|
-
${t(
|
|
41
|
-
"margin-bottom",
|
|
42
|
-
f,
|
|
43
|
-
m,
|
|
44
|
-
r
|
|
45
|
-
)}
|
|
46
|
-
` : ""}
|
|
47
|
-
${g ? t("margin-top", g, m, r) : ""}
|
|
48
|
-
${i ? t("margin-bottom", i, m, r) : ""}
|
|
49
|
-
${n ? t("margin-left", n, m, r) : ""}
|
|
50
|
-
${$ ? t("margin-right", $, m, r) : ""}
|
|
51
|
-
${p ? t("margin", p, m, r) : ""}
|
|
52
|
-
`;
|
|
53
|
-
}
|
|
54
|
-
), P = ({ top: e, bottom: g, left: i, right: n, ...$ }) => {
|
|
55
|
-
const o = c();
|
|
56
|
-
return /* @__PURE__ */ u(
|
|
57
|
-
y,
|
|
58
|
-
{
|
|
59
|
-
...$,
|
|
60
|
-
breakpoints: o,
|
|
61
|
-
mTop: e,
|
|
62
|
-
mBottom: g,
|
|
63
|
-
mLeft: i,
|
|
64
|
-
mRight: n
|
|
65
|
-
}
|
|
66
|
-
);
|
|
1
|
+
"use strict";
|
|
2
|
+
var __assign = (this && this.__assign) || function () {
|
|
3
|
+
__assign = Object.assign || function(t) {
|
|
4
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
+
s = arguments[i];
|
|
6
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
+
t[p] = s[p];
|
|
8
|
+
}
|
|
9
|
+
return t;
|
|
10
|
+
};
|
|
11
|
+
return __assign.apply(this, arguments);
|
|
67
12
|
};
|
|
68
|
-
|
|
69
|
-
|
|
13
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
14
|
+
var t = {};
|
|
15
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
16
|
+
t[p] = s[p];
|
|
17
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
18
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
19
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
20
|
+
t[p[i]] = s[p[i]];
|
|
21
|
+
}
|
|
22
|
+
return t;
|
|
70
23
|
};
|
|
24
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
25
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
26
|
+
};
|
|
27
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
28
|
+
exports.Margin = void 0;
|
|
29
|
+
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
30
|
+
var element_core_1 = require("@ovotech/element-core");
|
|
31
|
+
var hooks_1 = require("../../hooks");
|
|
32
|
+
var styled_native_1 = __importDefault(require("../../styled.native"));
|
|
33
|
+
var utils_1 = require("../../utils");
|
|
34
|
+
var StyledMargin = styled_native_1.default.View(function (_a) {
|
|
35
|
+
var space = _a.theme.core.space, mTop = _a.mTop, mBottom = _a.mBottom, mLeft = _a.mLeft, mRight = _a.mRight, horizontal = _a.horizontal, vertical = _a.vertical, all = _a.all, breakpoints = _a.breakpoints;
|
|
36
|
+
var formatter = function (spaceKey) { return (0, element_core_1.numToPx)(space[spaceKey]); };
|
|
37
|
+
return "\n ".concat(horizontal
|
|
38
|
+
? "\n ".concat((0, utils_1.responsiveStyle)('margin-left', horizontal, breakpoints, formatter), "\n ").concat((0, utils_1.responsiveStyle)('margin-right', horizontal, breakpoints, formatter), "\n ")
|
|
39
|
+
: '', "\n ").concat(vertical
|
|
40
|
+
? "\n ".concat((0, utils_1.responsiveStyle)('margin-top', vertical, breakpoints, formatter), "\n ").concat((0, utils_1.responsiveStyle)('margin-bottom', vertical, breakpoints, formatter), "\n ")
|
|
41
|
+
: '', "\n ").concat(mTop ? (0, utils_1.responsiveStyle)('margin-top', mTop, breakpoints, formatter) : '', "\n ").concat(mBottom
|
|
42
|
+
? (0, utils_1.responsiveStyle)('margin-bottom', mBottom, breakpoints, formatter)
|
|
43
|
+
: '', "\n ").concat(mLeft ? (0, utils_1.responsiveStyle)('margin-left', mLeft, breakpoints, formatter) : '', "\n ").concat(mRight
|
|
44
|
+
? (0, utils_1.responsiveStyle)('margin-right', mRight, breakpoints, formatter)
|
|
45
|
+
: '', "\n ").concat(all ? (0, utils_1.responsiveStyle)('margin', all, breakpoints, formatter) : '', "\n ");
|
|
46
|
+
});
|
|
47
|
+
var Margin = function (_a) {
|
|
48
|
+
var top = _a.top, bottom = _a.bottom, left = _a.left, right = _a.right, rest = __rest(_a, ["top", "bottom", "left", "right"]);
|
|
49
|
+
var breakpoints = (0, hooks_1.useBreakpoint)();
|
|
50
|
+
return ((0, jsx_runtime_1.jsx)(StyledMargin, __assign({}, rest, { breakpoints: breakpoints, mTop: top, mBottom: bottom, mLeft: left, mRight: right })));
|
|
51
|
+
};
|
|
52
|
+
exports.Margin = Margin;
|
|
@@ -1,11 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
import "react-native";
|
|
7
|
-
import "../../styled.native-KEscfVp7.js";
|
|
8
|
-
import "../../utils/utils.js";
|
|
9
|
-
export {
|
|
10
|
-
g as Margin
|
|
11
|
-
};
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Margin = void 0;
|
|
4
|
+
var Margin_1 = require("./Margin");
|
|
5
|
+
Object.defineProperty(exports, "Margin", { enumerable: true, get: function () { return Margin_1.Margin; } });
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { ComplexAnimationBuilder } from 'react-native-reanimated';
|
|
2
2
|
import { IconNameExtended } from '../../providers';
|
|
3
|
-
export
|
|
3
|
+
export type RightActionConfig = {
|
|
4
4
|
iconName?: IconNameExtended;
|
|
5
5
|
onActionPress?: () => void;
|
|
6
6
|
};
|
|
7
|
-
|
|
7
|
+
type IconButtonProps = {
|
|
8
8
|
size: 'small' | 'large';
|
|
9
9
|
animation: ComplexAnimationBuilder;
|
|
10
10
|
rightActionConfig?: RightActionConfig;
|
|
@@ -1,121 +1,20 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
import "../../providers/icons/ArrowRight.js";
|
|
15
|
-
import "../../providers/icons/ArrowUp.js";
|
|
16
|
-
import "../../providers/icons/Award.js";
|
|
17
|
-
import "../../providers/icons/Battery.js";
|
|
18
|
-
import "../../providers/icons/Cal.js";
|
|
19
|
-
import "../../providers/icons/CalBook.js";
|
|
20
|
-
import "../../providers/icons/CaretDown.js";
|
|
21
|
-
import "../../providers/icons/CaretLeft.js";
|
|
22
|
-
import "../../providers/icons/CaretRight.js";
|
|
23
|
-
import "../../providers/icons/CaretUp.js";
|
|
24
|
-
import "../../providers/icons/Chart.js";
|
|
25
|
-
import "../../providers/icons/ChartFilled.js";
|
|
26
|
-
import "../../providers/icons/Check.js";
|
|
27
|
-
import "../../providers/icons/CheckCircle.js";
|
|
28
|
-
import "../../providers/icons/ChevronDown.js";
|
|
29
|
-
import "../../providers/icons/ChevronLeft.js";
|
|
30
|
-
import "../../providers/icons/ChevronLeftSmall.js";
|
|
31
|
-
import "../../providers/icons/ChevronLeftSmallFirst.js";
|
|
32
|
-
import "../../providers/icons/ChevronRight.js";
|
|
33
|
-
import "../../providers/icons/ChevronRightSmall.js";
|
|
34
|
-
import "../../providers/icons/ChevronRightSmallLast.js";
|
|
35
|
-
import "../../providers/icons/ChevronUp.js";
|
|
36
|
-
import "../../providers/icons/Circle.js";
|
|
37
|
-
import "../../providers/icons/CloseCircle.js";
|
|
38
|
-
import "../../providers/icons/Cross.js";
|
|
39
|
-
import "../../providers/icons/Doc.js";
|
|
40
|
-
import "../../providers/icons/Dollar.js";
|
|
41
|
-
import "../../providers/icons/Download.js";
|
|
42
|
-
import "../../providers/icons/Eco.js";
|
|
43
|
-
import "../../providers/icons/EcoHome.js";
|
|
44
|
-
import "../../providers/icons/Edit.js";
|
|
45
|
-
import "../../providers/icons/ElectricCar.js";
|
|
46
|
-
import "../../providers/icons/ElectricHome.js";
|
|
47
|
-
import "../../providers/icons/Electricity.js";
|
|
48
|
-
import "../../providers/icons/EnergyAdvice.js";
|
|
49
|
-
import "../../providers/icons/Equals.js";
|
|
50
|
-
import "../../providers/icons/Euro.js";
|
|
51
|
-
import "../../providers/icons/Gas.js";
|
|
52
|
-
import "../../providers/icons/GlobeAddress.js";
|
|
53
|
-
import "../../providers/icons/Help.js";
|
|
54
|
-
import "../../providers/icons/Hide.js";
|
|
55
|
-
import "../../providers/icons/Home.js";
|
|
56
|
-
import "../../providers/icons/HomeFilled.js";
|
|
57
|
-
import "../../providers/icons/HydroPower.js";
|
|
58
|
-
import "../../providers/icons/Info.js";
|
|
59
|
-
import "../../providers/icons/Link.js";
|
|
60
|
-
import "../../providers/icons/Logo.js";
|
|
61
|
-
import "../../providers/icons/Mail.js";
|
|
62
|
-
import "../../providers/icons/MailOpen.js";
|
|
63
|
-
import "../../providers/icons/Menu.js";
|
|
64
|
-
import "../../providers/icons/Message.js";
|
|
65
|
-
import "../../providers/icons/MessageFilled.js";
|
|
66
|
-
import "../../providers/icons/Minus.js";
|
|
67
|
-
import "../../providers/icons/Mobile.js";
|
|
68
|
-
import "../../providers/icons/NewWindow.js";
|
|
69
|
-
import "../../providers/icons/PaymentCard.js";
|
|
70
|
-
import "../../providers/icons/Phone.js";
|
|
71
|
-
import "../../providers/icons/Plus.js";
|
|
72
|
-
import "../../providers/icons/Pound.js";
|
|
73
|
-
import "../../providers/icons/Pricing.js";
|
|
74
|
-
import "../../providers/icons/Search.js";
|
|
75
|
-
import "../../providers/icons/Security.js";
|
|
76
|
-
import "../../providers/icons/Show.js";
|
|
77
|
-
import "../../providers/icons/SmartHome.js";
|
|
78
|
-
import "../../providers/icons/SmartMeter.js";
|
|
79
|
-
import "../../providers/icons/Solar.js";
|
|
80
|
-
import "../../providers/icons/Star.js";
|
|
81
|
-
import "../../providers/icons/Sun.js";
|
|
82
|
-
import "../../providers/icons/Torch.js";
|
|
83
|
-
import "../../providers/icons/Trees.js";
|
|
84
|
-
import "../../providers/icons/Tune.js";
|
|
85
|
-
import "../../providers/icons/User.js";
|
|
86
|
-
import "../../providers/icons/UserFilled.js";
|
|
87
|
-
import "../../providers/icons/Wallet.js";
|
|
88
|
-
import "../../providers/icons/WalletFilled.js";
|
|
89
|
-
import "../../providers/icons/WarmHome.js";
|
|
90
|
-
import "../../providers/icons/Warning.js";
|
|
91
|
-
import "../../providers/icons/WebAddress.js";
|
|
92
|
-
import "../../providers/icons/WindPower.js";
|
|
93
|
-
import "../../styled.native-KEscfVp7.js";
|
|
94
|
-
import "../../utils-HsZygzDh.js";
|
|
95
|
-
import "react-native-reanimated";
|
|
96
|
-
const Cm = ({
|
|
97
|
-
size: p,
|
|
98
|
-
animation: t,
|
|
99
|
-
rightActionConfig: m
|
|
100
|
-
}) => {
|
|
101
|
-
const o = p === "small" ? a : d;
|
|
102
|
-
return !m || !(m != null && m.iconName) ? null : /* @__PURE__ */ r(
|
|
103
|
-
s,
|
|
104
|
-
{
|
|
105
|
-
hitSlop: 44,
|
|
106
|
-
pressRetentionOffset: 44,
|
|
107
|
-
onPress: m == null ? void 0 : m.onActionPress,
|
|
108
|
-
children: ({ pressed: i }) => /* @__PURE__ */ r(o, { entering: t, $pressed: i, children: /* @__PURE__ */ r(
|
|
109
|
-
l,
|
|
110
|
-
{
|
|
111
|
-
name: m.iconName,
|
|
112
|
-
size: p === "small" ? 16 : 18,
|
|
113
|
-
color: e.semantic.inverted.message.base
|
|
114
|
-
}
|
|
115
|
-
) })
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.IconButton = void 0;
|
|
4
|
+
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
var element_core_1 = require("@ovotech/element-core");
|
|
6
|
+
var react_native_1 = require("react-native");
|
|
7
|
+
var Icon_1 = require("../Icon");
|
|
8
|
+
var NavHeader_styles_1 = require("./NavHeader.styles");
|
|
9
|
+
var IconButton = function (_a) {
|
|
10
|
+
var size = _a.size, animation = _a.animation, rightActionConfig = _a.rightActionConfig;
|
|
11
|
+
var ButtonStyled = size === 'small' ? NavHeader_styles_1.StyledIconButtonS : NavHeader_styles_1.StyledIconButtonL;
|
|
12
|
+
if (!rightActionConfig || !(rightActionConfig === null || rightActionConfig === void 0 ? void 0 : rightActionConfig.iconName)) {
|
|
13
|
+
return null;
|
|
116
14
|
}
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
15
|
+
return ((0, jsx_runtime_1.jsx)(react_native_1.Pressable, { hitSlop: 44, pressRetentionOffset: 44, onPress: rightActionConfig === null || rightActionConfig === void 0 ? void 0 : rightActionConfig.onActionPress, children: function (_a) {
|
|
16
|
+
var pressed = _a.pressed;
|
|
17
|
+
return ((0, jsx_runtime_1.jsx)(ButtonStyled, { entering: animation, "$pressed": pressed, children: (0, jsx_runtime_1.jsx)(Icon_1.Icon, { name: rightActionConfig.iconName, size: size === 'small' ? 16 : 18, color: element_core_1.theme.semantic.inverted.message.base }) }));
|
|
18
|
+
} }));
|
|
121
19
|
};
|
|
20
|
+
exports.IconButton = IconButton;
|