@ovotech/element-native 3.8.1-canary-0c92e13-244 → 3.8.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/Accordion/Accordion.d.ts +3 -2
- package/dist/components/Accordion/Accordion.js +97 -130
- package/dist/components/Accordion/Group.js +21 -21
- package/dist/components/Accordion/Icon.js +59 -60
- package/dist/components/Accordion/index.d.ts +1 -1
- package/dist/components/Accordion/index.js +19 -9
- package/dist/components/Accordion/styles.d.ts +2 -20
- package/dist/components/Accordion/styles.js +50 -59
- package/dist/components/Accordion/types.d.ts +2 -2
- package/dist/components/Accordion/types.js +1 -2
- package/dist/components/ActionCard/ActionCard.d.ts +1 -1
- package/dist/components/ActionCard/ActionCard.js +376 -104
- package/dist/components/ActionCard/CloseIconShape.js +14 -40
- package/dist/components/ActionCard/IndicatorIconShape.js +11 -40
- package/dist/components/ActionCard/index.js +185 -5
- package/dist/components/ActionList/ActionList.d.ts +4 -3
- package/dist/components/ActionList/ActionList.js +202 -56
- package/dist/components/ActionList/index.js +100 -6
- package/dist/components/ActionList/styled.d.ts +5 -523
- package/dist/components/ActionList/styled.js +152 -65
- package/dist/components/Badge/Badge.d.ts +3 -9
- package/dist/components/Badge/Badge.js +39 -96
- package/dist/components/Badge/index.js +8 -5
- package/dist/components/CTAButton/CTAButton.d.ts +8 -9
- package/dist/components/CTAButton/CTAButton.js +181 -118
- package/dist/components/CTAButton/index.js +100 -8
- package/dist/components/CTALink/CTALink.d.ts +5 -5
- package/dist/components/CTALink/CTALink.js +105 -22
- package/dist/components/CTALink/index.js +100 -7
- package/dist/components/Card/Card.d.ts +0 -6
- package/dist/components/Card/Card.js +17 -13
- package/dist/components/Card/index.js +7 -5
- package/dist/components/Checkbox/Checkbox.js +173 -78
- package/dist/components/Checkbox/CheckboxField.d.ts +1 -1
- package/dist/components/Checkbox/CheckboxField.js +39 -43
- package/dist/components/Checkbox/index.js +105 -7
- package/dist/components/CurrencyField/CurrencyField.d.ts +1 -1
- package/dist/components/CurrencyField/CurrencyField.js +109 -32
- package/dist/components/CurrencyField/index.js +108 -5
- package/dist/components/CurrencyInput/CurrencyInput.d.ts +2 -2
- package/dist/components/CurrencyInput/CurrencyInput.js +118 -36
- package/dist/components/CurrencyInput/index.d.ts +1 -1
- package/dist/components/CurrencyInput/index.js +100 -5
- package/dist/components/DataTable/DataTable.js +62 -45
- package/dist/components/DataTable/TableRow.js +44 -35
- package/dist/components/DataTable/index.js +25 -20
- package/dist/components/DataTable/styles.d.ts +0 -78
- package/dist/components/DataTable/styles.js +119 -86
- package/dist/components/DataTable/types.d.ts +4 -4
- package/dist/components/DataTable/types.js +1 -2
- package/dist/components/DateField/DateField.d.ts +4 -3
- package/dist/components/DateField/DateField.js +229 -87
- package/dist/components/DateField/index.js +107 -5
- package/dist/components/DescriptionList/DescriptionList.d.ts +2 -2
- package/dist/components/DescriptionList/DescriptionList.js +25 -43
- package/dist/components/DescriptionList/index.js +13 -6
- package/dist/components/DescriptionList/styled.d.ts +0 -6
- package/dist/components/DescriptionList/styled.js +42 -85
- package/dist/components/Disclosure/Disclosure.js +153 -79
- package/dist/components/Disclosure/index.js +96 -16
- package/dist/components/Divider/Divider.d.ts +1 -1
- package/dist/components/Divider/Divider.js +12 -43
- package/dist/components/Divider/index.js +7 -5
- package/dist/components/Em/Em.d.ts +0 -6
- package/dist/components/Em/Em.js +8 -12
- package/dist/components/Em/index.js +6 -5
- package/dist/components/EmailField/EmailField.d.ts +1 -1
- package/dist/components/EmailField/EmailField.js +108 -32
- package/dist/components/EmailField/index.js +107 -5
- package/dist/components/EmailInput/EmailInput.d.ts +1 -1
- package/dist/components/EmailInput/EmailInput.js +106 -18
- package/dist/components/EmailInput/index.js +98 -5
- package/dist/components/ErrorSummaryNotification/ErrorSummaryNotification.d.ts +2 -2
- package/dist/components/ErrorSummaryNotification/ErrorSummaryNotification.js +115 -50
- package/dist/components/ErrorSummaryNotification/index.js +104 -5
- package/dist/components/ErrorText/ErrorText.d.ts +0 -6
- package/dist/components/ErrorText/ErrorText.js +22 -42
- package/dist/components/ErrorText/index.js +11 -5
- package/dist/components/Field/Field.d.ts +2 -2
- package/dist/components/Field/Field.js +62 -58
- package/dist/components/Field/index.js +16 -16
- package/dist/components/FilterSelect/FilterSelect.d.ts +2 -2
- package/dist/components/FilterSelect/FilterSelect.js +201 -77
- package/dist/components/FilterSelect/index.js +102 -5
- package/dist/components/FormGroup/FormGroup.d.ts +1 -1
- package/dist/components/FormGroup/FormGroup.js +9 -42
- package/dist/components/FormGroup/index.js +8 -5
- package/dist/components/Grid/Col.d.ts +1 -7
- package/dist/components/Grid/Col.js +32 -58
- package/dist/components/Grid/Row.d.ts +0 -6
- package/dist/components/Grid/Row.js +34 -72
- package/dist/components/Grid/index.js +13 -7
- package/dist/components/Heading1/Heading1.js +36 -70
- package/dist/components/Heading1/index.js +10 -5
- package/dist/components/Heading2/Heading2.js +36 -70
- package/dist/components/Heading2/index.js +10 -5
- package/dist/components/Heading3/Heading3.js +36 -70
- package/dist/components/Heading3/index.js +10 -5
- package/dist/components/Heading4/Heading4.js +36 -70
- package/dist/components/Heading4/index.js +10 -5
- package/dist/components/HintText/HintText.d.ts +0 -6
- package/dist/components/HintText/HintText.js +22 -42
- package/dist/components/HintText/index.js +11 -5
- package/dist/components/Icon/Icon.d.ts +2 -2
- package/dist/components/Icon/Icon.js +103 -38
- package/dist/components/Icon/index.js +93 -5
- package/dist/components/Input/Input.d.ts +1 -1
- package/dist/components/Input/Input.js +198 -97
- package/dist/components/Label/Label.js +18 -50
- package/dist/components/Label/index.js +8 -5
- package/dist/components/LabelText/LabelText.d.ts +0 -6
- package/dist/components/LabelText/LabelText.js +20 -42
- package/dist/components/LabelText/index.js +11 -5
- package/dist/components/Lead/Lead.js +18 -52
- package/dist/components/Lead/index.js +8 -5
- package/dist/components/LineThrough/LineThrough.d.ts +0 -6
- package/dist/components/LineThrough/LineThrough.js +7 -12
- package/dist/components/LineThrough/index.js +6 -5
- package/dist/components/List/List.d.ts +1 -1
- package/dist/components/List/List.js +38 -32
- package/dist/components/List/index.js +16 -7
- package/dist/components/List/styled.d.ts +0 -25
- package/dist/components/List/styled.js +37 -52
- package/dist/components/Margin/Margin.d.ts +2 -8
- package/dist/components/Margin/Margin.js +68 -50
- package/dist/components/Margin/index.js +11 -5
- package/dist/components/NavHeader/IconButton.d.ts +2 -2
- package/dist/components/NavHeader/IconButton.js +119 -18
- package/dist/components/NavHeader/NavHeader.d.ts +3 -11
- package/dist/components/NavHeader/NavHeader.js +181 -65
- package/dist/components/NavHeader/NavHeader.styles.d.ts +7 -543
- package/dist/components/NavHeader/NavHeader.styles.js +81 -72
- package/dist/components/NavHeader/index.d.ts +1 -1
- package/dist/components/NavHeader/index.js +104 -5
- package/dist/components/Notification/Notification.d.ts +2 -14
- package/dist/components/Notification/Notification.js +190 -103
- package/dist/components/Notification/index.js +100 -9
- package/dist/components/NumberField/NumberField.d.ts +1 -1
- package/dist/components/NumberField/NumberField.js +108 -32
- package/dist/components/NumberField/index.js +107 -5
- package/dist/components/NumberInput/NumberInput.d.ts +1 -1
- package/dist/components/NumberInput/NumberInput.js +106 -18
- package/dist/components/NumberInput/index.js +98 -5
- package/dist/components/P/P.js +23 -54
- package/dist/components/P/index.js +10 -5
- package/dist/components/PasswordField/PasswordField.d.ts +1 -1
- package/dist/components/PasswordField/PasswordField.js +110 -32
- package/dist/components/PasswordField/index.js +109 -5
- package/dist/components/PasswordInput/PasswordInput.d.ts +1 -1
- package/dist/components/PasswordInput/PasswordInput.js +123 -33
- package/dist/components/PasswordInput/PasswordInput.styled.d.ts +1 -7
- package/dist/components/PasswordInput/PasswordInput.styled.js +18 -37
- package/dist/components/PasswordInput/PasswordVisibilityToggle.d.ts +1 -1
- package/dist/components/PasswordInput/PasswordVisibilityToggle.js +128 -26
- package/dist/components/PasswordInput/index.js +100 -5
- package/dist/components/PhoneField/PhoneField.d.ts +1 -1
- package/dist/components/PhoneField/PhoneField.js +108 -32
- package/dist/components/PhoneField/index.js +107 -5
- package/dist/components/PhoneInput/PhoneInput.d.ts +1 -1
- package/dist/components/PhoneInput/PhoneInput.js +106 -17
- package/dist/components/PhoneInput/index.js +98 -5
- package/dist/components/ProductCarousel/NavigationDots.js +57 -74
- package/dist/components/ProductCarousel/ProductCarousel.js +2174 -126
- package/dist/components/ProductCarousel/anchor-point.js +31 -51
- package/dist/components/ProductCarousel/index.js +101 -5
- package/dist/components/Radio/Radio.js +69 -67
- package/dist/components/Radio/RadioField.d.ts +1 -1
- package/dist/components/Radio/RadioField.js +46 -47
- package/dist/components/Radio/index.js +18 -7
- package/dist/components/RadioCard/RadioCard.js +68 -71
- package/dist/components/RadioCard/index.js +13 -5
- package/dist/components/SelectField/Select.d.ts +2 -8
- package/dist/components/SelectField/Select.js +852 -93
- package/dist/components/SelectField/SelectField.d.ts +1 -1
- package/dist/components/SelectField/SelectField.js +125 -32
- package/dist/components/SelectField/index.js +108 -5
- package/dist/components/SkeletonAnimation/SkeletonAnimation.js +47 -34
- package/dist/components/SkeletonAnimation/index.js +7 -5
- package/dist/components/SkeletonCTA/SkeletonCTA.d.ts +1 -1
- package/dist/components/SkeletonCTA/SkeletonCTA.js +17 -41
- package/dist/components/SkeletonCTA/index.js +12 -5
- package/dist/components/SkeletonCircle/SkeletonCircle.d.ts +1 -1
- package/dist/components/SkeletonCircle/SkeletonCircle.js +16 -44
- package/dist/components/SkeletonCircle/index.js +10 -5
- package/dist/components/SkeletonHeading/SkeletonHeading.d.ts +1 -1
- package/dist/components/SkeletonHeading/SkeletonHeading.js +29 -40
- package/dist/components/SkeletonHeading/index.js +12 -5
- package/dist/components/SkeletonText/SkeletonText.d.ts +1 -1
- package/dist/components/SkeletonText/SkeletonText.js +33 -50
- package/dist/components/SkeletonText/index.js +12 -5
- package/dist/components/Small/Small.d.ts +0 -6
- package/dist/components/Small/Small.js +17 -38
- package/dist/components/Small/index.js +11 -5
- package/dist/components/Spinner/Spinner.d.ts +2 -2
- package/dist/components/Spinner/Spinner.js +61 -68
- package/dist/components/Spinner/index.js +9 -5
- package/dist/components/Stack/Stack.d.ts +1 -1
- package/dist/components/Stack/Stack.js +30 -48
- package/dist/components/Stack/index.js +11 -5
- package/dist/components/Stretch/Stretch.d.ts +1 -1
- package/dist/components/Stretch/Stretch.js +11 -55
- package/dist/components/Stretch/index.js +8 -16
- package/dist/components/Strong/Strong.d.ts +0 -6
- package/dist/components/Strong/Strong.js +9 -10
- package/dist/components/Strong/index.js +6 -5
- package/dist/components/SubLabelText/SubLabelText.d.ts +0 -6
- package/dist/components/SubLabelText/SubLabelText.js +20 -42
- package/dist/components/SubLabelText/index.js +11 -5
- package/dist/components/Tabs/Tab.d.ts +2 -1
- package/dist/components/Tabs/Tab.js +60 -76
- package/dist/components/Tabs/TabList.d.ts +2 -2
- package/dist/components/Tabs/TabList.js +37 -77
- package/dist/components/Tabs/TabPanel.js +15 -64
- package/dist/components/Tabs/Tabs.d.ts +3 -2
- package/dist/components/Tabs/Tabs.js +46 -97
- package/dist/components/Tabs/index.js +19 -11
- package/dist/components/TextField/TextField.d.ts +1 -1
- package/dist/components/TextField/TextField.js +108 -32
- package/dist/components/TextField/index.js +107 -5
- package/dist/components/TextGroup/TextGroup.js +23 -40
- package/dist/components/TextGroup/index.js +7 -5
- package/dist/components/TextInput/TextInput.d.ts +1 -1
- package/dist/components/TextInput/TextInput.js +97 -18
- package/dist/components/TextInput/index.js +98 -5
- package/dist/components/TextLink/TextLink.js +118 -74
- package/dist/components/TextLink/index.js +97 -5
- package/dist/components/TextareaField/TextareaField.d.ts +1 -1
- package/dist/components/TextareaField/TextareaField.js +108 -32
- package/dist/components/TextareaField/index.js +107 -5
- package/dist/components/TextareaInput/TextareaInput.d.ts +2 -2
- package/dist/components/TextareaInput/TextareaInput.js +114 -65
- package/dist/components/TextareaInput/index.d.ts +1 -1
- package/dist/components/TextareaInput/index.js +98 -5
- package/dist/components/Toast/Toast.d.ts +1 -1
- package/dist/components/Toast/Toast.js +730 -159
- package/dist/components/Toast/index.js +105 -6
- package/dist/components/Toggle/Toggle.d.ts +1 -1
- package/dist/components/Toggle/Toggle.js +73 -55
- package/dist/components/Toggle/index.js +14 -5
- package/dist/components/Toggle/styles.d.ts +1 -25
- package/dist/components/Toggle/styles.js +38 -28
- package/dist/components/components.spec.native.js +199 -0
- package/dist/components/index.d.ts +3 -0
- package/dist/components/index.js +296 -77
- package/dist/hooks/index.js +8 -17
- 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 +16 -19
- package/dist/hooks/use-layout.js +17 -19
- package/dist/index-zQHKJ0fC.js +180 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +320 -18
- package/dist/providers/IconsProvider.js +189 -118
- package/dist/providers/icons/Address.js +13 -40
- package/dist/providers/icons/Advice.js +11 -40
- package/dist/providers/icons/Archive.js +13 -40
- package/dist/providers/icons/ArrowDown.js +11 -40
- package/dist/providers/icons/ArrowLeft.js +11 -40
- package/dist/providers/icons/ArrowRight.js +11 -40
- package/dist/providers/icons/ArrowUp.js +11 -40
- package/dist/providers/icons/Award.js +13 -40
- package/dist/providers/icons/Battery.js +13 -40
- package/dist/providers/icons/Cal.js +11 -40
- package/dist/providers/icons/CalBook.js +13 -40
- package/dist/providers/icons/CaretDown.js +5 -40
- package/dist/providers/icons/CaretLeft.js +5 -40
- package/dist/providers/icons/CaretRight.js +5 -40
- package/dist/providers/icons/CaretUp.js +5 -40
- package/dist/providers/icons/Chart.js +13 -40
- package/dist/providers/icons/ChartFilled.js +11 -40
- package/dist/providers/icons/Check.js +11 -40
- package/dist/providers/icons/CheckCircle.js +13 -40
- package/dist/providers/icons/ChevronDown.js +11 -40
- package/dist/providers/icons/ChevronLeft.js +11 -40
- package/dist/providers/icons/ChevronLeftSmall.js +11 -40
- package/dist/providers/icons/ChevronLeftSmallFirst.js +13 -40
- package/dist/providers/icons/ChevronRight.js +11 -40
- package/dist/providers/icons/ChevronRightSmall.js +11 -40
- package/dist/providers/icons/ChevronRightSmallLast.js +13 -40
- package/dist/providers/icons/ChevronUp.js +11 -40
- package/dist/providers/icons/Circle.js +5 -17
- package/dist/providers/icons/CloseCircle.js +13 -40
- package/dist/providers/icons/Cross.js +11 -40
- package/dist/providers/icons/Doc.js +11 -40
- package/dist/providers/icons/Dollar.js +13 -40
- package/dist/providers/icons/Download.js +13 -40
- package/dist/providers/icons/Eco.js +11 -40
- package/dist/providers/icons/EcoHome.js +13 -40
- package/dist/providers/icons/Edit.js +13 -40
- package/dist/providers/icons/ElectricCar.js +13 -40
- package/dist/providers/icons/ElectricHome.js +13 -40
- package/dist/providers/icons/Electricity.js +11 -40
- package/dist/providers/icons/EnergyAdvice.js +13 -40
- package/dist/providers/icons/Equals.js +13 -40
- package/dist/providers/icons/Euro.js +13 -40
- package/dist/providers/icons/Gas.js +11 -40
- package/dist/providers/icons/GlobeAddress.js +11 -40
- package/dist/providers/icons/Help.js +13 -40
- package/dist/providers/icons/Hide.js +11 -40
- package/dist/providers/icons/Home.js +11 -40
- package/dist/providers/icons/HomeFilled.js +11 -40
- package/dist/providers/icons/HydroPower.js +13 -40
- package/dist/providers/icons/Info.js +13 -40
- package/dist/providers/icons/Link.js +40 -39
- package/dist/providers/icons/Logo.js +11 -17
- package/dist/providers/icons/Mail.js +11 -40
- package/dist/providers/icons/MailOpen.js +11 -40
- package/dist/providers/icons/Menu.js +13 -40
- package/dist/providers/icons/Message.js +11 -40
- package/dist/providers/icons/MessageFilled.js +11 -40
- package/dist/providers/icons/Minus.js +5 -40
- package/dist/providers/icons/Mobile.js +13 -40
- package/dist/providers/icons/NewWindow.js +22 -39
- package/dist/providers/icons/PaymentCard.js +13 -40
- package/dist/providers/icons/Phone.js +11 -40
- package/dist/providers/icons/Plus.js +11 -40
- package/dist/providers/icons/Pound.js +13 -40
- package/dist/providers/icons/Pricing.js +11 -40
- package/dist/providers/icons/Search.js +11 -40
- package/dist/providers/icons/Security.js +13 -40
- package/dist/providers/icons/Show.js +13 -40
- package/dist/providers/icons/SmartHome.js +13 -40
- package/dist/providers/icons/SmartMeter.js +13 -40
- package/dist/providers/icons/Solar.js +11 -40
- package/dist/providers/icons/Star.js +11 -40
- package/dist/providers/icons/Sun.js +13 -40
- package/dist/providers/icons/Torch.js +13 -39
- package/dist/providers/icons/Trees.js +13 -40
- package/dist/providers/icons/Tune.js +13 -40
- package/dist/providers/icons/User.js +13 -40
- package/dist/providers/icons/UserFilled.js +11 -40
- package/dist/providers/icons/Wallet.js +13 -40
- package/dist/providers/icons/WalletFilled.js +11 -40
- package/dist/providers/icons/WarmHome.js +13 -40
- package/dist/providers/icons/Warning.js +13 -40
- package/dist/providers/icons/WebAddress.js +11 -40
- package/dist/providers/icons/WindPower.js +11 -40
- package/dist/providers/icons/index.d.ts +0 -3
- package/dist/providers/icons/index.js +171 -102
- package/dist/providers/index.js +92 -17
- package/dist/providers/types.d.ts +3 -3
- package/dist/providers/types.js +1 -2
- package/dist/styled.native-KEscfVp7.js +3872 -0
- package/dist/styled.native.d.ts +0 -36
- package/dist/styled.native.js +8 -32
- package/dist/test/utils.d.ts +4 -0
- package/dist/test/utils.js +16127 -0
- package/dist/theme/index.js +970 -15
- package/dist/theme-native--5aKgQLJ.js +482 -0
- package/dist/theme-web-MrdqV6Ln.js +482 -0
- package/dist/utils/index.js +14 -16
- package/dist/utils/utils.d.ts +1 -2
- package/dist/utils/utils.js +57 -104
- package/dist/utils-HsZygzDh.js +26 -0
- package/package.json +21 -13
- package/components/package.json +0 -6
- package/dist/esm/components/Accordion/Accordion.js +0 -106
- package/dist/esm/components/Accordion/Group.js +0 -18
- package/dist/esm/components/Accordion/Icon.js +0 -35
- package/dist/esm/components/Accordion/index.js +0 -3
- package/dist/esm/components/Accordion/styles.js +0 -31
- package/dist/esm/components/ActionCard/ActionCard.js +0 -77
- package/dist/esm/components/ActionCard/CloseIconShape.js +0 -11
- package/dist/esm/components/ActionCard/IndicatorIconShape.js +0 -11
- package/dist/esm/components/ActionCard/index.js +0 -1
- package/dist/esm/components/ActionList/ActionList.js +0 -54
- package/dist/esm/components/ActionList/index.js +0 -1
- package/dist/esm/components/ActionList/styled.js +0 -40
- package/dist/esm/components/Badge/Badge.js +0 -70
- package/dist/esm/components/Badge/index.js +0 -1
- package/dist/esm/components/CTAButton/CTAButton.js +0 -90
- package/dist/esm/components/CTAButton/index.js +0 -1
- package/dist/esm/components/CTALink/CTALink.js +0 -18
- package/dist/esm/components/CTALink/index.js +0 -1
- package/dist/esm/components/Card/Card.js +0 -8
- package/dist/esm/components/Card/index.js +0 -1
- package/dist/esm/components/Checkbox/Checkbox.js +0 -74
- package/dist/esm/components/Checkbox/CheckboxField.js +0 -42
- package/dist/esm/components/Checkbox/index.js +0 -2
- package/dist/esm/components/CurrencyField/CurrencyField.js +0 -30
- package/dist/esm/components/CurrencyField/index.js +0 -1
- package/dist/esm/components/CurrencyInput/CurrencyInput.js +0 -34
- package/dist/esm/components/CurrencyInput/index.js +0 -1
- package/dist/esm/components/DataTable/DataTable.js +0 -43
- package/dist/esm/components/DataTable/TableRow.js +0 -33
- package/dist/esm/components/DataTable/index.js +0 -3
- package/dist/esm/components/DataTable/styles.js +0 -61
- package/dist/esm/components/DataTable/types.js +0 -1
- package/dist/esm/components/DateField/DateField.js +0 -63
- package/dist/esm/components/DateField/index.js +0 -1
- package/dist/esm/components/DescriptionList/DescriptionList.js +0 -40
- package/dist/esm/components/DescriptionList/index.js +0 -1
- package/dist/esm/components/DescriptionList/styled.js +0 -58
- package/dist/esm/components/Disclosure/Disclosure.js +0 -55
- package/dist/esm/components/Disclosure/index.js +0 -1
- package/dist/esm/components/Divider/Divider.js +0 -17
- package/dist/esm/components/Divider/index.js +0 -1
- package/dist/esm/components/Em/Em.js +0 -7
- package/dist/esm/components/Em/index.js +0 -1
- package/dist/esm/components/EmailField/EmailField.js +0 -30
- package/dist/esm/components/EmailField/index.js +0 -1
- package/dist/esm/components/EmailInput/EmailInput.js +0 -16
- package/dist/esm/components/EmailInput/index.js +0 -1
- package/dist/esm/components/ErrorSummaryNotification/ErrorSummaryNotification.js +0 -49
- package/dist/esm/components/ErrorSummaryNotification/index.js +0 -1
- package/dist/esm/components/ErrorText/ErrorText.js +0 -17
- package/dist/esm/components/ErrorText/index.js +0 -1
- package/dist/esm/components/Field/Field.js +0 -58
- package/dist/esm/components/Field/index.js +0 -1
- package/dist/esm/components/FilterSelect/FilterSelect.js +0 -52
- package/dist/esm/components/FilterSelect/index.js +0 -1
- package/dist/esm/components/FormGroup/FormGroup.js +0 -37
- package/dist/esm/components/FormGroup/index.js +0 -1
- package/dist/esm/components/Grid/Col.js +0 -33
- package/dist/esm/components/Grid/Row.js +0 -47
- package/dist/esm/components/Grid/index.js +0 -2
- package/dist/esm/components/Heading1/Heading1.js +0 -46
- package/dist/esm/components/Heading1/index.js +0 -1
- package/dist/esm/components/Heading2/Heading2.js +0 -46
- package/dist/esm/components/Heading2/index.js +0 -1
- package/dist/esm/components/Heading3/Heading3.js +0 -46
- package/dist/esm/components/Heading3/index.js +0 -1
- package/dist/esm/components/Heading4/Heading4.js +0 -46
- package/dist/esm/components/Heading4/index.js +0 -1
- package/dist/esm/components/HintText/HintText.js +0 -17
- package/dist/esm/components/HintText/index.js +0 -1
- package/dist/esm/components/Icon/Icon.js +0 -36
- package/dist/esm/components/Icon/index.js +0 -1
- package/dist/esm/components/Input/Input.js +0 -74
- package/dist/esm/components/Label/Label.js +0 -25
- package/dist/esm/components/Label/index.js +0 -1
- package/dist/esm/components/LabelText/LabelText.js +0 -17
- package/dist/esm/components/LabelText/index.js +0 -1
- package/dist/esm/components/Lead/Lead.js +0 -27
- package/dist/esm/components/Lead/index.js +0 -1
- package/dist/esm/components/LineThrough/LineThrough.js +0 -7
- package/dist/esm/components/LineThrough/index.js +0 -1
- package/dist/esm/components/List/List.js +0 -29
- package/dist/esm/components/List/index.js +0 -1
- package/dist/esm/components/List/styled.js +0 -27
- package/dist/esm/components/Margin/Margin.js +0 -46
- package/dist/esm/components/Margin/index.js +0 -1
- package/dist/esm/components/NavHeader/IconButton.js +0 -16
- package/dist/esm/components/NavHeader/NavHeader.js +0 -42
- package/dist/esm/components/NavHeader/NavHeader.styles.js +0 -44
- package/dist/esm/components/NavHeader/index.js +0 -1
- package/dist/esm/components/Notification/Notification.js +0 -78
- package/dist/esm/components/Notification/index.js +0 -1
- package/dist/esm/components/NumberField/NumberField.js +0 -30
- package/dist/esm/components/NumberField/index.js +0 -1
- package/dist/esm/components/NumberInput/NumberInput.js +0 -16
- package/dist/esm/components/NumberInput/index.js +0 -1
- package/dist/esm/components/P/P.js +0 -29
- package/dist/esm/components/P/index.js +0 -1
- package/dist/esm/components/PasswordField/PasswordField.js +0 -30
- package/dist/esm/components/PasswordField/index.js +0 -1
- package/dist/esm/components/PasswordInput/PasswordInput.js +0 -32
- package/dist/esm/components/PasswordInput/PasswordInput.styled.js +0 -12
- package/dist/esm/components/PasswordInput/PasswordVisibilityToggle.js +0 -23
- package/dist/esm/components/PasswordInput/index.js +0 -1
- package/dist/esm/components/PhoneField/PhoneField.js +0 -30
- package/dist/esm/components/PhoneField/index.js +0 -1
- package/dist/esm/components/PhoneInput/PhoneInput.js +0 -15
- package/dist/esm/components/PhoneInput/index.js +0 -1
- package/dist/esm/components/ProductCarousel/NavigationDots.js +0 -50
- package/dist/esm/components/ProductCarousel/ProductCarousel.js +0 -98
- package/dist/esm/components/ProductCarousel/anchor-point.js +0 -49
- package/dist/esm/components/ProductCarousel/index.js +0 -1
- package/dist/esm/components/Radio/Radio.js +0 -62
- package/dist/esm/components/Radio/RadioField.js +0 -46
- package/dist/esm/components/Radio/index.js +0 -2
- package/dist/esm/components/RadioCard/RadioCard.js +0 -66
- package/dist/esm/components/RadioCard/index.js +0 -1
- package/dist/esm/components/SelectField/Select.js +0 -66
- package/dist/esm/components/SelectField/SelectField.js +0 -29
- package/dist/esm/components/SelectField/index.js +0 -1
- package/dist/esm/components/SkeletonAnimation/SkeletonAnimation.js +0 -31
- package/dist/esm/components/SkeletonAnimation/index.js +0 -1
- package/dist/esm/components/SkeletonCTA/SkeletonCTA.js +0 -35
- package/dist/esm/components/SkeletonCTA/index.js +0 -1
- package/dist/esm/components/SkeletonCircle/SkeletonCircle.js +0 -38
- package/dist/esm/components/SkeletonCircle/index.js +0 -1
- package/dist/esm/components/SkeletonHeading/SkeletonHeading.js +0 -34
- package/dist/esm/components/SkeletonHeading/index.js +0 -1
- package/dist/esm/components/SkeletonText/SkeletonText.js +0 -45
- package/dist/esm/components/SkeletonText/index.js +0 -1
- package/dist/esm/components/Small/Small.js +0 -13
- package/dist/esm/components/Small/index.js +0 -1
- package/dist/esm/components/Spinner/Spinner.js +0 -44
- package/dist/esm/components/Spinner/index.js +0 -1
- package/dist/esm/components/Stack/Stack.js +0 -43
- package/dist/esm/components/Stack/index.js +0 -1
- package/dist/esm/components/Stretch/Stretch.js +0 -29
- package/dist/esm/components/Stretch/index.js +0 -1
- package/dist/esm/components/Strong/Strong.js +0 -5
- package/dist/esm/components/Strong/index.js +0 -1
- package/dist/esm/components/SubLabelText/SubLabelText.js +0 -17
- package/dist/esm/components/SubLabelText/index.js +0 -1
- package/dist/esm/components/Tabs/Tab.js +0 -53
- package/dist/esm/components/Tabs/TabList.js +0 -51
- package/dist/esm/components/Tabs/TabPanel.js +0 -38
- package/dist/esm/components/Tabs/Tabs.js +0 -72
- package/dist/esm/components/Tabs/index.js +0 -4
- package/dist/esm/components/TextField/TextField.js +0 -30
- package/dist/esm/components/TextField/index.js +0 -1
- package/dist/esm/components/TextGroup/TextGroup.js +0 -39
- package/dist/esm/components/TextGroup/index.js +0 -1
- package/dist/esm/components/TextInput/TextInput.js +0 -16
- package/dist/esm/components/TextInput/index.js +0 -1
- package/dist/esm/components/TextLink/TextLink.js +0 -49
- package/dist/esm/components/TextLink/index.js +0 -1
- package/dist/esm/components/TextareaField/TextareaField.js +0 -30
- package/dist/esm/components/TextareaField/index.js +0 -1
- package/dist/esm/components/TextareaInput/TextareaInput.js +0 -41
- package/dist/esm/components/TextareaInput/index.js +0 -1
- package/dist/esm/components/Toast/Toast.js +0 -141
- package/dist/esm/components/Toast/index.js +0 -1
- package/dist/esm/components/Toggle/Toggle.js +0 -53
- package/dist/esm/components/Toggle/index.js +0 -1
- package/dist/esm/components/Toggle/styles.js +0 -23
- package/dist/esm/components/index.js +0 -62
- package/dist/esm/hooks/index.js +0 -2
- package/dist/esm/hooks/use-breakpoint.js +0 -12
- package/dist/esm/hooks/use-full-width.js +0 -16
- package/dist/esm/hooks/use-layout.js +0 -16
- package/dist/esm/index.js +0 -3
- package/dist/esm/providers/IconsProvider.js +0 -115
- package/dist/esm/providers/icons/Address.js +0 -14
- package/dist/esm/providers/icons/Advice.js +0 -14
- package/dist/esm/providers/icons/Archive.js +0 -14
- package/dist/esm/providers/icons/ArrowDown.js +0 -14
- package/dist/esm/providers/icons/ArrowLeft.js +0 -14
- package/dist/esm/providers/icons/ArrowRight.js +0 -14
- package/dist/esm/providers/icons/ArrowUp.js +0 -14
- package/dist/esm/providers/icons/Award.js +0 -14
- package/dist/esm/providers/icons/Battery.js +0 -14
- package/dist/esm/providers/icons/Cal.js +0 -14
- package/dist/esm/providers/icons/CalBook.js +0 -14
- package/dist/esm/providers/icons/CaretDown.js +0 -14
- package/dist/esm/providers/icons/CaretLeft.js +0 -14
- package/dist/esm/providers/icons/CaretRight.js +0 -14
- package/dist/esm/providers/icons/CaretUp.js +0 -14
- package/dist/esm/providers/icons/Chart.js +0 -14
- package/dist/esm/providers/icons/ChartFilled.js +0 -14
- package/dist/esm/providers/icons/Check.js +0 -14
- package/dist/esm/providers/icons/CheckCircle.js +0 -14
- package/dist/esm/providers/icons/ChevronDown.js +0 -14
- package/dist/esm/providers/icons/ChevronLeft.js +0 -14
- package/dist/esm/providers/icons/ChevronLeftSmall.js +0 -14
- package/dist/esm/providers/icons/ChevronLeftSmallFirst.js +0 -14
- package/dist/esm/providers/icons/ChevronRight.js +0 -14
- package/dist/esm/providers/icons/ChevronRightSmall.js +0 -14
- package/dist/esm/providers/icons/ChevronRightSmallLast.js +0 -14
- package/dist/esm/providers/icons/ChevronUp.js +0 -14
- package/dist/esm/providers/icons/Circle.js +0 -14
- package/dist/esm/providers/icons/CloseCircle.js +0 -14
- package/dist/esm/providers/icons/Cross.js +0 -14
- package/dist/esm/providers/icons/Doc.js +0 -14
- package/dist/esm/providers/icons/Dollar.js +0 -14
- package/dist/esm/providers/icons/Download.js +0 -14
- package/dist/esm/providers/icons/Eco.js +0 -14
- package/dist/esm/providers/icons/EcoHome.js +0 -14
- package/dist/esm/providers/icons/Edit.js +0 -14
- package/dist/esm/providers/icons/ElectricCar.js +0 -14
- package/dist/esm/providers/icons/ElectricHome.js +0 -14
- package/dist/esm/providers/icons/Electricity.js +0 -14
- package/dist/esm/providers/icons/EnergyAdvice.js +0 -14
- package/dist/esm/providers/icons/Equals.js +0 -14
- package/dist/esm/providers/icons/Euro.js +0 -14
- package/dist/esm/providers/icons/Gas.js +0 -14
- package/dist/esm/providers/icons/GlobeAddress.js +0 -14
- package/dist/esm/providers/icons/Help.js +0 -14
- package/dist/esm/providers/icons/HelpFilled.js +0 -14
- package/dist/esm/providers/icons/Hide.js +0 -14
- package/dist/esm/providers/icons/Home.js +0 -14
- package/dist/esm/providers/icons/HomeFilled.js +0 -14
- package/dist/esm/providers/icons/HydroPower.js +0 -14
- package/dist/esm/providers/icons/Info.js +0 -14
- package/dist/esm/providers/icons/Link.js +0 -14
- package/dist/esm/providers/icons/Logo.js +0 -14
- package/dist/esm/providers/icons/Mail.js +0 -14
- package/dist/esm/providers/icons/MailOpen.js +0 -14
- package/dist/esm/providers/icons/Menu.js +0 -14
- package/dist/esm/providers/icons/Message.js +0 -14
- package/dist/esm/providers/icons/MessageFilled.js +0 -14
- package/dist/esm/providers/icons/Minus.js +0 -14
- package/dist/esm/providers/icons/Mobile.js +0 -14
- package/dist/esm/providers/icons/NewWindow.js +0 -14
- package/dist/esm/providers/icons/PaymentCard.js +0 -14
- package/dist/esm/providers/icons/PaymentCardFilled.js +0 -14
- package/dist/esm/providers/icons/Phone.js +0 -14
- package/dist/esm/providers/icons/Plus.js +0 -14
- package/dist/esm/providers/icons/Pound.js +0 -14
- package/dist/esm/providers/icons/Pricing.js +0 -14
- package/dist/esm/providers/icons/Search.js +0 -14
- package/dist/esm/providers/icons/Security.js +0 -14
- package/dist/esm/providers/icons/Show.js +0 -14
- package/dist/esm/providers/icons/SmartHome.js +0 -14
- package/dist/esm/providers/icons/SmartMeter.js +0 -14
- package/dist/esm/providers/icons/Solar.js +0 -14
- package/dist/esm/providers/icons/Star.js +0 -14
- package/dist/esm/providers/icons/StarFilled.js +0 -14
- package/dist/esm/providers/icons/Sun.js +0 -14
- package/dist/esm/providers/icons/Torch.js +0 -14
- package/dist/esm/providers/icons/Trees.js +0 -14
- package/dist/esm/providers/icons/Tune.js +0 -14
- package/dist/esm/providers/icons/User.js +0 -14
- package/dist/esm/providers/icons/UserFilled.js +0 -14
- package/dist/esm/providers/icons/Wallet.js +0 -14
- package/dist/esm/providers/icons/WalletFilled.js +0 -14
- package/dist/esm/providers/icons/WarmHome.js +0 -14
- package/dist/esm/providers/icons/Warning.js +0 -14
- package/dist/esm/providers/icons/WebAddress.js +0 -14
- package/dist/esm/providers/icons/WindPower.js +0 -14
- package/dist/esm/providers/icons/index.js +0 -87
- package/dist/esm/providers/index.js +0 -2
- package/dist/esm/providers/types.js +0 -1
- package/dist/esm/styled.native.js +0 -4
- package/dist/esm/theme/index.js +0 -1
- package/dist/esm/utils/index.js +0 -1
- package/dist/esm/utils/utils.js +0 -95
- package/dist/providers/icons/HelpFilled.d.ts +0 -2
- package/dist/providers/icons/HelpFilled.js +0 -41
- package/dist/providers/icons/PaymentCardFilled.d.ts +0 -2
- package/dist/providers/icons/PaymentCardFilled.js +0 -41
- package/dist/providers/icons/StarFilled.d.ts +0 -2
- package/dist/providers/icons/StarFilled.js +0 -41
- /package/dist/{esm/components/Accordion/types.js → components/components.spec.native.d.ts} +0 -0
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { ComponentType } from 'react';
|
|
1
|
+
import { ComponentClass, ComponentType } from 'react';
|
|
2
|
+
import { AnimateProps } from 'react-native-reanimated';
|
|
2
3
|
import { AccordionProps } from './types';
|
|
3
|
-
export declare function withAnimated<T extends object>(WrappedComponent: ComponentType<T>):
|
|
4
|
+
export declare function withAnimated<T extends object>(WrappedComponent: ComponentType<T>): ComponentClass<AnimateProps<T>>;
|
|
4
5
|
export declare const Accordion: ({ expanded, first, last, title, children, onToggle, }: AccordionProps) => JSX.Element;
|
|
@@ -1,134 +1,101 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
__assign = Object.assign || function(t) {
|
|
19
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
20
|
-
s = arguments[i];
|
|
21
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
22
|
-
t[p] = s[p];
|
|
23
|
-
}
|
|
24
|
-
return t;
|
|
25
|
-
};
|
|
26
|
-
return __assign.apply(this, arguments);
|
|
27
|
-
};
|
|
28
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
29
|
-
if (k2 === undefined) k2 = k;
|
|
30
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
31
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
32
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
1
|
+
import { jsx as s, jsxs as g } from "react/jsx-runtime";
|
|
2
|
+
import { Component as V, useContext as A, useMemo as d, useState as j, useEffect as S, useCallback as D } from "react";
|
|
3
|
+
import x, { useSharedValue as E, runOnUI as l, useDerivedValue as L, withTiming as z, useAnimatedStyle as v, interpolateColor as B } from "react-native-reanimated";
|
|
4
|
+
import { useLayout as G } from "../../hooks/use-layout.js";
|
|
5
|
+
import { T as M } from "../../styled.native-KEscfVp7.js";
|
|
6
|
+
import { Heading4 as P } from "../Heading4/Heading4.js";
|
|
7
|
+
import { AccordionGroupContext as R } from "./Group.js";
|
|
8
|
+
import { AccordionIcon as U } from "./Icon.js";
|
|
9
|
+
import { StyledAccordion as $, StyledAccordionHeader as q, StyledContainer as F } from "./styles.js";
|
|
10
|
+
import "../../utils-HsZygzDh.js";
|
|
11
|
+
import "../../hooks/use-breakpoint.js";
|
|
12
|
+
import "react-native";
|
|
13
|
+
import "react-native-svg";
|
|
14
|
+
function J(o) {
|
|
15
|
+
const a = o.displayName || o.name || "Component", n = class n extends V {
|
|
16
|
+
render() {
|
|
17
|
+
return /* @__PURE__ */ s(o, { ...this.props });
|
|
33
18
|
}
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
}));
|
|
39
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
40
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
41
|
-
}) : function(o, v) {
|
|
42
|
-
o["default"] = v;
|
|
43
|
-
});
|
|
44
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
45
|
-
if (mod && mod.__esModule) return mod;
|
|
46
|
-
var result = {};
|
|
47
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
48
|
-
__setModuleDefault(result, mod);
|
|
49
|
-
return result;
|
|
50
|
-
};
|
|
51
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
52
|
-
exports.Accordion = exports.withAnimated = void 0;
|
|
53
|
-
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
54
|
-
var react_1 = require("react");
|
|
55
|
-
var react_native_reanimated_1 = __importStar(require("react-native-reanimated"));
|
|
56
|
-
var use_layout_1 = require("../../hooks/use-layout");
|
|
57
|
-
var styled_native_1 = require("../../styled.native");
|
|
58
|
-
var Heading4_1 = require("../Heading4");
|
|
59
|
-
var Group_1 = require("./Group");
|
|
60
|
-
var Icon_1 = require("./Icon");
|
|
61
|
-
var styles_1 = require("./styles");
|
|
62
|
-
function withAnimated(WrappedComponent) {
|
|
63
|
-
var displayName = WrappedComponent.displayName || WrappedComponent.name || 'Component';
|
|
64
|
-
// eslint-disable-next-line react/prefer-stateless-function
|
|
65
|
-
var WithAnimated = /** @class */ (function (_super) {
|
|
66
|
-
__extends(WithAnimated, _super);
|
|
67
|
-
function WithAnimated() {
|
|
68
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
69
|
-
}
|
|
70
|
-
WithAnimated.prototype.render = function () {
|
|
71
|
-
return (0, jsx_runtime_1.jsx)(WrappedComponent, __assign({}, this.props));
|
|
72
|
-
};
|
|
73
|
-
WithAnimated.displayName = "WithAnimated(".concat(displayName, ")");
|
|
74
|
-
return WithAnimated;
|
|
75
|
-
}(react_1.Component));
|
|
76
|
-
return react_native_reanimated_1.default.createAnimatedComponent(WithAnimated);
|
|
19
|
+
};
|
|
20
|
+
n.displayName = `WithAnimated(${a})`;
|
|
21
|
+
let i = n;
|
|
22
|
+
return x.createAnimatedComponent(i);
|
|
77
23
|
}
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
24
|
+
const se = ({
|
|
25
|
+
expanded: o = !1,
|
|
26
|
+
first: a,
|
|
27
|
+
last: i,
|
|
28
|
+
title: n,
|
|
29
|
+
children: C,
|
|
30
|
+
onToggle: c
|
|
31
|
+
}) => {
|
|
32
|
+
const { core: p, semantic: u } = A(M), { Header: w } = A(R), h = w ?? P, H = d(
|
|
33
|
+
() => J(h),
|
|
34
|
+
[h]
|
|
35
|
+
), [f, k] = G(0), [r, b] = j(o), e = d(
|
|
36
|
+
() => f.height || 100,
|
|
37
|
+
[f.height]
|
|
38
|
+
), t = E(e);
|
|
39
|
+
S(() => {
|
|
40
|
+
l(() => {
|
|
41
|
+
"worklet";
|
|
42
|
+
o && e && (t.value = e);
|
|
43
|
+
})();
|
|
44
|
+
}, [e, o, t]), S(() => {
|
|
45
|
+
l(() => {
|
|
46
|
+
"worklet";
|
|
47
|
+
e && (t.value = e);
|
|
48
|
+
})();
|
|
49
|
+
}, [e, t]);
|
|
50
|
+
const m = L(() => z(r ? 1 : 0)), y = v(() => ({
|
|
51
|
+
height: t.value * m.value + 1
|
|
52
|
+
})), I = D(() => {
|
|
53
|
+
c == null || c(!r), t.value === 0 && l(() => {
|
|
54
|
+
"worklet";
|
|
55
|
+
t.value = e;
|
|
56
|
+
})(), b((T) => !T);
|
|
57
|
+
}, [e, r, t]), N = d(
|
|
58
|
+
() => [{ overflow: "hidden" }, y],
|
|
59
|
+
[y]
|
|
60
|
+
), O = v(() => ({
|
|
61
|
+
color: B(
|
|
62
|
+
m.value,
|
|
63
|
+
[0, 1],
|
|
64
|
+
[u.message.branded, u.message.base]
|
|
65
|
+
)
|
|
66
|
+
}));
|
|
67
|
+
return /* @__PURE__ */ g($, { first: a, last: i, isExpanded: r, children: [
|
|
68
|
+
/* @__PURE__ */ g(
|
|
69
|
+
q,
|
|
70
|
+
{
|
|
71
|
+
accessibilityState: { expanded: r },
|
|
72
|
+
onPress: I,
|
|
73
|
+
testID: "accordionTitle",
|
|
74
|
+
children: [
|
|
75
|
+
/* @__PURE__ */ s(
|
|
76
|
+
H,
|
|
77
|
+
{
|
|
78
|
+
style: [
|
|
79
|
+
O,
|
|
80
|
+
{
|
|
81
|
+
paddingTop: p.space[1],
|
|
82
|
+
paddingRight: p.space[3],
|
|
83
|
+
marginTop: 0,
|
|
84
|
+
marginBottom: 0,
|
|
85
|
+
flexShrink: 1
|
|
86
|
+
}
|
|
87
|
+
],
|
|
88
|
+
children: n
|
|
94
89
|
}
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
var style = (0, react_native_reanimated_1.useAnimatedStyle)(function () { return ({
|
|
107
|
-
height: size.value * progress.value + 1,
|
|
108
|
-
}); }, [progress, size]);
|
|
109
|
-
var toggleOpen = (0, react_1.useCallback)(function () {
|
|
110
|
-
onToggle === null || onToggle === void 0 ? void 0 : onToggle(!open);
|
|
111
|
-
if (size.value === 0) {
|
|
112
|
-
(0, react_native_reanimated_1.runOnUI)(function () {
|
|
113
|
-
'worklet';
|
|
114
|
-
size.value = handleHeightContent;
|
|
115
|
-
})();
|
|
116
|
-
}
|
|
117
|
-
setOpen(function (o) { return !o; });
|
|
118
|
-
}, [handleHeightContent, open, size]);
|
|
119
|
-
var containerAnimatedStyle = (0, react_1.useMemo)(function () { return [{ overflow: 'hidden' }, style]; }, [style]);
|
|
120
|
-
var headerStyle = (0, react_native_reanimated_1.useAnimatedStyle)(function () { return ({
|
|
121
|
-
color: (0, react_native_reanimated_1.interpolateColor)(progress.value, [0, 1], [semantic.message.branded, semantic.message.base]),
|
|
122
|
-
}); }, [progress]);
|
|
123
|
-
return ((0, jsx_runtime_1.jsxs)(styles_1.StyledAccordion, { first: first, last: last, isExpanded: open, children: [(0, jsx_runtime_1.jsxs)(styles_1.StyledAccordionHeader, { accessibilityState: { expanded: open }, onPress: toggleOpen, testID: "accordionTitle", children: [(0, jsx_runtime_1.jsx)(AnimatedHeading, { style: [
|
|
124
|
-
headerStyle,
|
|
125
|
-
{
|
|
126
|
-
paddingTop: core.space[1],
|
|
127
|
-
paddingRight: core.space[3],
|
|
128
|
-
marginTop: 0,
|
|
129
|
-
marginBottom: 0,
|
|
130
|
-
flexShrink: 1,
|
|
131
|
-
},
|
|
132
|
-
], children: title }), (0, jsx_runtime_1.jsx)(Icon_1.AccordionIcon, { animationTiming: progress })] }), (0, jsx_runtime_1.jsx)(react_native_reanimated_1.default.View, { style: containerAnimatedStyle, children: (0, jsx_runtime_1.jsx)(styles_1.StyledContainer, { onLayout: onLayout, children: children }) })] }));
|
|
90
|
+
),
|
|
91
|
+
/* @__PURE__ */ s(U, { animationTiming: m })
|
|
92
|
+
]
|
|
93
|
+
}
|
|
94
|
+
),
|
|
95
|
+
/* @__PURE__ */ s(x.View, { style: N, children: /* @__PURE__ */ s(F, { onLayout: k, children: C }) })
|
|
96
|
+
] });
|
|
97
|
+
};
|
|
98
|
+
export {
|
|
99
|
+
se as Accordion,
|
|
100
|
+
J as withAnimated
|
|
133
101
|
};
|
|
134
|
-
exports.Accordion = Accordion;
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
})
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
1
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import { createContext as m, Children as n, isValidElement as d, cloneElement as a } from "react";
|
|
3
|
+
import { View as l } from "react-native";
|
|
4
|
+
const p = m({
|
|
5
|
+
Header: void 0
|
|
6
|
+
}), x = ({
|
|
7
|
+
children: r,
|
|
8
|
+
headingComponent: i
|
|
9
|
+
}) => {
|
|
10
|
+
const c = n.count(r);
|
|
11
|
+
return /* @__PURE__ */ t(p.Provider, { value: { Header: i }, children: /* @__PURE__ */ t(l, { children: n.map(
|
|
12
|
+
r,
|
|
13
|
+
(o, e) => d(o) ? a(o, {
|
|
14
|
+
first: e === 0,
|
|
15
|
+
last: e === c - 1
|
|
16
|
+
}) : o
|
|
17
|
+
) }) });
|
|
18
|
+
};
|
|
19
|
+
export {
|
|
20
|
+
x as AccordionGroup,
|
|
21
|
+
p as AccordionGroupContext
|
|
21
22
|
};
|
|
22
|
-
exports.AccordionGroup = AccordionGroup;
|
|
@@ -1,62 +1,61 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
import { jsx as o, jsxs as i } from "react/jsx-runtime";
|
|
2
|
+
import { useContext as f } from "react";
|
|
3
|
+
import r, { useAnimatedStyle as s, interpolateColor as h, useAnimatedProps as a } from "react-native-reanimated";
|
|
4
|
+
import { Path as A, Svg as V } from "react-native-svg";
|
|
5
|
+
import { T as v } from "../../styled.native-KEscfVp7.js";
|
|
6
|
+
const c = 105, n = r.createAnimatedComponent(A);
|
|
7
|
+
function g({
|
|
8
|
+
animationTiming: e
|
|
9
|
+
}) {
|
|
10
|
+
const { core: d, semantic: t } = f(v), l = s(() => ({
|
|
11
|
+
backgroundColor: h(
|
|
12
|
+
e.value,
|
|
13
|
+
[0, 1],
|
|
14
|
+
[t.surface.cutout, t.message.branded]
|
|
15
|
+
),
|
|
16
|
+
height: 36 - e.value * 4,
|
|
17
|
+
margin: 2 * e.value,
|
|
18
|
+
transform: [{ rotateZ: e.value * -c + "deg" }]
|
|
19
|
+
})), u = s(() => ({
|
|
20
|
+
transform: [{ rotateZ: e.value * c + "deg" }]
|
|
21
|
+
})), m = a(() => ({
|
|
22
|
+
opacity: 1 - e.value
|
|
23
|
+
})), p = a(() => ({
|
|
24
|
+
opacity: e.value
|
|
25
|
+
}));
|
|
26
|
+
return /* @__PURE__ */ o(
|
|
27
|
+
r.View,
|
|
28
|
+
{
|
|
29
|
+
style: [
|
|
30
|
+
{
|
|
31
|
+
backgroundColor: t.surface.cutout,
|
|
32
|
+
aspectRatio: 1,
|
|
33
|
+
alignItems: "center",
|
|
34
|
+
justifyContent: "center"
|
|
35
|
+
},
|
|
36
|
+
l
|
|
37
|
+
],
|
|
38
|
+
children: /* @__PURE__ */ o(r.View, { style: u, children: /* @__PURE__ */ i(V, { width: "16", height: "16", viewBox: "0 0 16 16", children: [
|
|
39
|
+
/* @__PURE__ */ o(
|
|
40
|
+
n,
|
|
41
|
+
{
|
|
42
|
+
animatedProps: m,
|
|
43
|
+
d: "M9 9H16V6.99H9V0H6.99V7H0V9.01H7V16.01H9.01V9.01L9 9Z",
|
|
44
|
+
fill: t.message.secondary
|
|
45
|
+
}
|
|
46
|
+
),
|
|
47
|
+
/* @__PURE__ */ o(
|
|
48
|
+
n,
|
|
49
|
+
{
|
|
50
|
+
animatedProps: p,
|
|
51
|
+
d: "M16.3826 9.66663V7.66663H0.462646V9.66663H16.3826Z",
|
|
52
|
+
fill: d.color.brand.white
|
|
53
|
+
}
|
|
54
|
+
)
|
|
55
|
+
] }) })
|
|
7
56
|
}
|
|
8
|
-
|
|
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;
|
|
24
|
-
};
|
|
25
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
exports.AccordionIcon = void 0;
|
|
27
|
-
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
28
|
-
var react_1 = require("react");
|
|
29
|
-
var react_native_reanimated_1 = __importStar(require("react-native-reanimated"));
|
|
30
|
-
var react_native_svg_1 = require("react-native-svg");
|
|
31
|
-
var styled_native_1 = require("../../styled.native");
|
|
32
|
-
var OVO_LOGO_ANGLE = 105;
|
|
33
|
-
var AnimatedPath = react_native_reanimated_1.default.createAnimatedComponent(react_native_svg_1.Path);
|
|
34
|
-
function AccordionIcon(_a) {
|
|
35
|
-
var animationTiming = _a.animationTiming;
|
|
36
|
-
var _b = (0, react_1.useContext)(styled_native_1.ThemeContext), core = _b.core, semantic = _b.semantic;
|
|
37
|
-
var outerAnimatedStyles = (0, react_native_reanimated_1.useAnimatedStyle)(function () { return ({
|
|
38
|
-
backgroundColor: (0, react_native_reanimated_1.interpolateColor)(animationTiming.value, [0, 1], [semantic.surface.cutout, semantic.message.branded]),
|
|
39
|
-
height: 36 - animationTiming.value * 4,
|
|
40
|
-
margin: 2 * animationTiming.value,
|
|
41
|
-
transform: [{ rotateZ: animationTiming.value * -OVO_LOGO_ANGLE + 'deg' }],
|
|
42
|
-
}); }, [animationTiming]);
|
|
43
|
-
var innerAnimatedStyles = (0, react_native_reanimated_1.useAnimatedStyle)(function () { return ({
|
|
44
|
-
transform: [{ rotateZ: animationTiming.value * OVO_LOGO_ANGLE + 'deg' }],
|
|
45
|
-
}); }, [animationTiming]);
|
|
46
|
-
var plusAnimatedProps = (0, react_native_reanimated_1.useAnimatedProps)(function () { return ({
|
|
47
|
-
opacity: 1 - animationTiming.value,
|
|
48
|
-
}); }, [animationTiming]);
|
|
49
|
-
var minusAnimatedProps = (0, react_native_reanimated_1.useAnimatedProps)(function () { return ({
|
|
50
|
-
opacity: animationTiming.value,
|
|
51
|
-
}); }, [animationTiming]);
|
|
52
|
-
return ((0, jsx_runtime_1.jsx)(react_native_reanimated_1.default.View, { style: [
|
|
53
|
-
{
|
|
54
|
-
backgroundColor: semantic.surface.cutout,
|
|
55
|
-
aspectRatio: 1,
|
|
56
|
-
alignItems: 'center',
|
|
57
|
-
justifyContent: 'center',
|
|
58
|
-
},
|
|
59
|
-
outerAnimatedStyles,
|
|
60
|
-
], children: (0, jsx_runtime_1.jsx)(react_native_reanimated_1.default.View, { style: innerAnimatedStyles, children: (0, jsx_runtime_1.jsxs)(react_native_svg_1.Svg, { width: "16", height: "16", viewBox: "0 0 16 16", children: [(0, jsx_runtime_1.jsx)(AnimatedPath, { animatedProps: plusAnimatedProps, d: "M9 9H16V6.99H9V0H6.99V7H0V9.01H7V16.01H9.01V9.01L9 9Z", fill: semantic.message.secondary }), (0, jsx_runtime_1.jsx)(AnimatedPath, { animatedProps: minusAnimatedProps, d: "M16.3826 9.66663V7.66663H0.462646V9.66663H16.3826Z", fill: core.color.brand.white })] }) }) }));
|
|
57
|
+
);
|
|
61
58
|
}
|
|
62
|
-
|
|
59
|
+
export {
|
|
60
|
+
g as AccordionIcon
|
|
61
|
+
};
|
|
@@ -1,9 +1,19 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
import { Accordion as u } from "./Accordion.js";
|
|
2
|
+
import { AccordionGroup as I } from "./Group.js";
|
|
3
|
+
import { AccordionIcon as b } from "./Icon.js";
|
|
4
|
+
import "react/jsx-runtime";
|
|
5
|
+
import "react";
|
|
6
|
+
import "react-native-reanimated";
|
|
7
|
+
import "../../hooks/use-layout.js";
|
|
8
|
+
import "../../styled.native-KEscfVp7.js";
|
|
9
|
+
import "../Heading4/Heading4.js";
|
|
10
|
+
import "../../utils-HsZygzDh.js";
|
|
11
|
+
import "../../hooks/use-breakpoint.js";
|
|
12
|
+
import "react-native";
|
|
13
|
+
import "./styles.js";
|
|
14
|
+
import "react-native-svg";
|
|
15
|
+
export {
|
|
16
|
+
u as Accordion,
|
|
17
|
+
I as AccordionGroup,
|
|
18
|
+
b as AccordionIcon
|
|
19
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const StyledAccordion: import("styled-components").StyledComponent<
|
|
1
|
+
import Animated from 'react-native-reanimated';
|
|
2
|
+
export declare const StyledAccordion: import("styled-components").StyledComponent<typeof Animated.View, {
|
|
3
3
|
core: {
|
|
4
4
|
color: {
|
|
5
5
|
brand: {
|
|
@@ -358,8 +358,6 @@ export declare const StyledAccordion: import("styled-components").StyledComponen
|
|
|
358
358
|
surfaceFocused: string;
|
|
359
359
|
outlineFocused: string;
|
|
360
360
|
backgroundFocused: string;
|
|
361
|
-
messageInverted: string;
|
|
362
|
-
surfaceInverted: string;
|
|
363
361
|
};
|
|
364
362
|
secondary: {
|
|
365
363
|
message: string;
|
|
@@ -370,8 +368,6 @@ export declare const StyledAccordion: import("styled-components").StyledComponen
|
|
|
370
368
|
surfaceFocused: string;
|
|
371
369
|
outlineFocused: string;
|
|
372
370
|
backgroundFocused: string;
|
|
373
|
-
messageInverted: string;
|
|
374
|
-
surfaceInverted: string;
|
|
375
371
|
};
|
|
376
372
|
destructive: {
|
|
377
373
|
message: string;
|
|
@@ -382,8 +378,6 @@ export declare const StyledAccordion: import("styled-components").StyledComponen
|
|
|
382
378
|
surfaceFocused: string;
|
|
383
379
|
outlineFocused: string;
|
|
384
380
|
backgroundFocused: string;
|
|
385
|
-
messageInverted: string;
|
|
386
|
-
surfaceInverted: string;
|
|
387
381
|
};
|
|
388
382
|
};
|
|
389
383
|
heading1: {
|
|
@@ -847,8 +841,6 @@ export declare const StyledAccordionHeader: import("styled-components").StyledCo
|
|
|
847
841
|
surfaceFocused: string;
|
|
848
842
|
outlineFocused: string;
|
|
849
843
|
backgroundFocused: string;
|
|
850
|
-
messageInverted: string;
|
|
851
|
-
surfaceInverted: string;
|
|
852
844
|
};
|
|
853
845
|
secondary: {
|
|
854
846
|
message: string;
|
|
@@ -859,8 +851,6 @@ export declare const StyledAccordionHeader: import("styled-components").StyledCo
|
|
|
859
851
|
surfaceFocused: string;
|
|
860
852
|
outlineFocused: string;
|
|
861
853
|
backgroundFocused: string;
|
|
862
|
-
messageInverted: string;
|
|
863
|
-
surfaceInverted: string;
|
|
864
854
|
};
|
|
865
855
|
destructive: {
|
|
866
856
|
message: string;
|
|
@@ -871,8 +861,6 @@ export declare const StyledAccordionHeader: import("styled-components").StyledCo
|
|
|
871
861
|
surfaceFocused: string;
|
|
872
862
|
outlineFocused: string;
|
|
873
863
|
backgroundFocused: string;
|
|
874
|
-
messageInverted: string;
|
|
875
|
-
surfaceInverted: string;
|
|
876
864
|
};
|
|
877
865
|
};
|
|
878
866
|
heading1: {
|
|
@@ -1332,8 +1320,6 @@ export declare const StyledContainer: import("styled-components").StyledComponen
|
|
|
1332
1320
|
surfaceFocused: string;
|
|
1333
1321
|
outlineFocused: string;
|
|
1334
1322
|
backgroundFocused: string;
|
|
1335
|
-
messageInverted: string;
|
|
1336
|
-
surfaceInverted: string;
|
|
1337
1323
|
};
|
|
1338
1324
|
secondary: {
|
|
1339
1325
|
message: string;
|
|
@@ -1344,8 +1330,6 @@ export declare const StyledContainer: import("styled-components").StyledComponen
|
|
|
1344
1330
|
surfaceFocused: string;
|
|
1345
1331
|
outlineFocused: string;
|
|
1346
1332
|
backgroundFocused: string;
|
|
1347
|
-
messageInverted: string;
|
|
1348
|
-
surfaceInverted: string;
|
|
1349
1333
|
};
|
|
1350
1334
|
destructive: {
|
|
1351
1335
|
message: string;
|
|
@@ -1356,8 +1340,6 @@ export declare const StyledContainer: import("styled-components").StyledComponen
|
|
|
1356
1340
|
surfaceFocused: string;
|
|
1357
1341
|
outlineFocused: string;
|
|
1358
1342
|
backgroundFocused: string;
|
|
1359
|
-
messageInverted: string;
|
|
1360
|
-
surfaceInverted: string;
|
|
1361
1343
|
};
|
|
1362
1344
|
};
|
|
1363
1345
|
heading1: {
|
|
@@ -1,60 +1,51 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { n as o } from "../../utils-HsZygzDh.js";
|
|
2
|
+
import n from "react-native-reanimated";
|
|
3
|
+
import { s as i, c as a } from "../../styled.native-KEscfVp7.js";
|
|
4
|
+
import "react";
|
|
5
|
+
const g = i(n.View)(
|
|
6
|
+
({ theme: { semantic: t, core: d }, first: r, last: e, isExpanded: s }) => a`
|
|
7
|
+
width: 100%;
|
|
8
|
+
border-width: ${o(d.borderWidth.small)};
|
|
9
|
+
border-color: ${t.border.differentiated};
|
|
10
|
+
border-bottom-width: 0;
|
|
11
|
+
background-color: ${s ? d.color.brand.white : "transparent"};
|
|
12
|
+
transition: background-color ${d.transition.fast};
|
|
13
|
+
|
|
14
|
+
${r ? {
|
|
15
|
+
borderTopLeftRadius: d.radius.small,
|
|
16
|
+
borderTopRightRadius: d.radius.small
|
|
17
|
+
} : null}
|
|
18
|
+
|
|
19
|
+
${e ? {
|
|
20
|
+
borderBottomLeftRadius: d.radius.small,
|
|
21
|
+
borderBottomRightRadius: d.radius.small,
|
|
22
|
+
borderBottomWidth: d.borderWidth.small
|
|
23
|
+
} : null}
|
|
24
|
+
`
|
|
25
|
+
), h = i.TouchableOpacity(
|
|
26
|
+
({ theme: { core: t } }) => a`
|
|
27
|
+
padding-top: ${o(t.space[5])};
|
|
28
|
+
padding-left: ${o(t.space[3])};
|
|
29
|
+
padding-right: 18px;
|
|
30
|
+
padding-bottom: 18px;
|
|
31
|
+
flex-direction: row;
|
|
32
|
+
align-items: flex-start;
|
|
33
|
+
justify-content: space-between;
|
|
34
|
+
`
|
|
35
|
+
), u = i.View(
|
|
36
|
+
({ theme: { core: t } }) => a`
|
|
37
|
+
position: absolute;
|
|
38
|
+
top: 0;
|
|
39
|
+
left: 0;
|
|
40
|
+
right: 0;
|
|
41
|
+
padding-top: 0;
|
|
42
|
+
padding-right: ${o(t.space[12])};
|
|
43
|
+
padding-bottom: ${o(t.space[6])};
|
|
44
|
+
padding-left: ${o(t.space[3])};
|
|
45
|
+
`
|
|
46
|
+
);
|
|
47
|
+
export {
|
|
48
|
+
g as StyledAccordion,
|
|
49
|
+
h as StyledAccordionHeader,
|
|
50
|
+
u as StyledContainer
|
|
5
51
|
};
|
|
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
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
30
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
31
|
-
};
|
|
32
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
33
|
-
exports.StyledContainer = exports.StyledAccordionHeader = exports.StyledAccordion = void 0;
|
|
34
|
-
var element_core_1 = require("@ovotech/element-core");
|
|
35
|
-
var react_native_reanimated_1 = __importDefault(require("react-native-reanimated"));
|
|
36
|
-
var styled_native_1 = __importStar(require("../../styled.native"));
|
|
37
|
-
exports.StyledAccordion = (0, styled_native_1.default)(react_native_reanimated_1.default.View)(function (_a) {
|
|
38
|
-
var _b = _a.theme, semantic = _b.semantic, core = _b.core, first = _a.first, last = _a.last, isExpanded = _a.isExpanded;
|
|
39
|
-
return (0, styled_native_1.css)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n width: 100%;\n border-width: ", ";\n border-color: ", ";\n border-bottom-width: 0;\n background-color: ", ";\n transition: background-color ", ";\n\n ", "\n\n ", "\n "], ["\n width: 100%;\n border-width: ", ";\n border-color: ", ";\n border-bottom-width: 0;\n background-color: ", ";\n transition: background-color ", ";\n\n ", "\n\n ", "\n "])), (0, element_core_1.numToPx)(core.borderWidth.small), semantic.border.differentiated, isExpanded ? core.color.brand.white : 'transparent', core.transition.fast, first
|
|
40
|
-
? {
|
|
41
|
-
borderTopLeftRadius: core.radius.small,
|
|
42
|
-
borderTopRightRadius: core.radius.small,
|
|
43
|
-
}
|
|
44
|
-
: null, last
|
|
45
|
-
? {
|
|
46
|
-
borderBottomLeftRadius: core.radius.small,
|
|
47
|
-
borderBottomRightRadius: core.radius.small,
|
|
48
|
-
borderBottomWidth: core.borderWidth.small,
|
|
49
|
-
}
|
|
50
|
-
: null);
|
|
51
|
-
});
|
|
52
|
-
exports.StyledAccordionHeader = styled_native_1.default.TouchableOpacity(function (_a) {
|
|
53
|
-
var core = _a.theme.core;
|
|
54
|
-
return (0, styled_native_1.css)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n padding-top: ", ";\n padding-left: ", ";\n padding-right: 18px;\n padding-bottom: 18px;\n flex-direction: row;\n align-items: flex-start;\n justify-content: space-between;\n "], ["\n padding-top: ", ";\n padding-left: ", ";\n padding-right: 18px;\n padding-bottom: 18px;\n flex-direction: row;\n align-items: flex-start;\n justify-content: space-between;\n "])), (0, element_core_1.numToPx)(core.space[5]), (0, element_core_1.numToPx)(core.space[3]));
|
|
55
|
-
});
|
|
56
|
-
exports.StyledContainer = styled_native_1.default.View(function (_a) {
|
|
57
|
-
var core = _a.theme.core;
|
|
58
|
-
return (0, styled_native_1.css)(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n padding-top: 0;\n padding-right: ", ";\n padding-bottom: ", ";\n padding-left: ", ";\n "], ["\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n padding-top: 0;\n padding-right: ", ";\n padding-bottom: ", ";\n padding-left: ", ";\n "])), (0, element_core_1.numToPx)(core.space[12]), (0, element_core_1.numToPx)(core.space[6]), (0, element_core_1.numToPx)(core.space[3]));
|
|
59
|
-
});
|
|
60
|
-
var templateObject_1, templateObject_2, templateObject_3;
|