@ovotech/element-native 4.4.8 → 4.5.0
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 +2 -1
- package/dist/components/Accordion/Accordion.js +47 -116
- package/dist/components/Accordion/Group.d.ts +1 -1
- package/dist/components/Accordion/Group.js +12 -19
- package/dist/components/Accordion/Icon.js +20 -48
- package/dist/components/Accordion/index.js +3 -9
- package/dist/components/Accordion/styles.d.ts +95 -96
- package/dist/components/Accordion/styles.js +44 -59
- package/dist/components/Accordion/types.js +1 -2
- package/dist/components/ActionCard/ActionCard.d.ts +1 -1
- package/dist/components/ActionCard/ActionCard.js +59 -87
- package/dist/components/ActionCard/CloseIconShape.d.ts +1 -1
- package/dist/components/ActionCard/CloseIconShape.js +7 -41
- package/dist/components/ActionCard/IndicatorIconShape.d.ts +1 -1
- package/dist/components/ActionCard/IndicatorIconShape.js +7 -41
- package/dist/components/ActionCard/index.js +1 -5
- package/dist/components/ActionList/ActionList.d.ts +9 -7
- package/dist/components/ActionList/ActionList.js +22 -56
- package/dist/components/ActionList/index.js +1 -6
- package/dist/components/ActionList/styled.d.ts +228 -229
- package/dist/components/ActionList/styled.js +52 -60
- package/dist/components/Badge/Badge.d.ts +34 -34
- package/dist/components/Badge/Badge.js +27 -72
- package/dist/components/Badge/index.js +1 -5
- package/dist/components/CTAButton/CTAButton.d.ts +9 -11
- package/dist/components/CTAButton/CTAButton.js +62 -100
- package/dist/components/CTAButton/index.js +1 -8
- package/dist/components/CTALink/CTALink.d.ts +5 -8
- package/dist/components/CTALink/CTALink.js +6 -23
- package/dist/components/CTALink/index.js +1 -7
- package/dist/components/Card/Card.js +14 -43
- package/dist/components/Card/index.js +1 -5
- package/dist/components/Checkbox/Checkbox.d.ts +9 -7
- package/dist/components/Checkbox/Checkbox.js +50 -72
- package/dist/components/Checkbox/CheckboxField.js +16 -44
- package/dist/components/Checkbox/index.js +2 -7
- package/dist/components/CurrencyField/CurrencyField.d.ts +4 -11
- package/dist/components/CurrencyField/CurrencyField.js +5 -32
- package/dist/components/CurrencyField/index.js +1 -5
- package/dist/components/CurrencyInput/CurrencyInput.d.ts +4 -11
- package/dist/components/CurrencyInput/CurrencyInput.js +10 -36
- package/dist/components/CurrencyInput/index.js +1 -5
- package/dist/components/DataTable/DataTable.d.ts +1 -3
- package/dist/components/DataTable/DataTable.js +17 -44
- package/dist/components/DataTable/TableRow.js +15 -31
- package/dist/components/DataTable/index.js +3 -21
- package/dist/components/DataTable/styles.d.ts +404 -404
- package/dist/components/DataTable/styles.js +97 -84
- package/dist/components/DataTable/types.d.ts +1 -1
- package/dist/components/DataTable/types.js +1 -2
- package/dist/components/DateField/DateField.d.ts +8 -6
- package/dist/components/DateField/DateField.js +61 -82
- package/dist/components/DateField/index.js +1 -5
- package/dist/components/DescriptionList/DescriptionList.js +12 -44
- package/dist/components/DescriptionList/index.js +1 -6
- package/dist/components/DescriptionList/styled.d.ts +31 -31
- package/dist/components/DescriptionList/styled.js +34 -85
- package/dist/components/Disclosure/Disclosure.d.ts +574 -6
- package/dist/components/Disclosure/Disclosure.js +34 -79
- package/dist/components/Disclosure/index.js +1 -17
- package/dist/components/Display0/Display0.js +19 -69
- package/dist/components/Display0/index.js +1 -5
- package/dist/components/Display1/Display1.js +19 -69
- package/dist/components/Display1/index.js +1 -5
- package/dist/components/Display2/Display2.js +19 -69
- package/dist/components/Display2/index.js +1 -5
- package/dist/components/Display3/Display3.js +19 -69
- package/dist/components/Display3/index.js +1 -5
- package/dist/components/Divider/Divider.js +11 -41
- package/dist/components/Divider/index.js +1 -5
- package/dist/components/Em/Em.d.ts +31 -31
- package/dist/components/Em/Em.js +6 -13
- package/dist/components/Em/index.js +1 -5
- package/dist/components/EmailField/EmailField.d.ts +4 -9
- package/dist/components/EmailField/EmailField.js +5 -32
- package/dist/components/EmailField/index.js +1 -5
- package/dist/components/EmailInput/EmailInput.d.ts +2 -9
- package/dist/components/EmailInput/EmailInput.js +4 -19
- package/dist/components/EmailInput/index.js +1 -5
- package/dist/components/ErrorSummaryNotification/ErrorSummaryNotification.d.ts +1 -1
- package/dist/components/ErrorSummaryNotification/ErrorSummaryNotification.js +14 -43
- package/dist/components/ErrorSummaryNotification/index.js +1 -5
- package/dist/components/ErrorText/ErrorText.d.ts +33 -35
- package/dist/components/ErrorText/ErrorText.js +15 -40
- package/dist/components/ErrorText/index.js +1 -5
- package/dist/components/Field/Field.d.ts +9 -8
- package/dist/components/Field/Field.js +25 -48
- package/dist/components/Field/index.js +1 -17
- package/dist/components/FilterSelect/FilterSelect.js +55 -76
- package/dist/components/FilterSelect/index.js +1 -5
- package/dist/components/FormGroup/FormGroup.js +8 -42
- package/dist/components/FormGroup/index.js +1 -5
- package/dist/components/Grid/Col.d.ts +33 -34
- package/dist/components/Grid/Col.js +24 -48
- package/dist/components/Grid/Row.d.ts +6 -572
- package/dist/components/Grid/Row.js +34 -72
- package/dist/components/Grid/index.d.ts +1 -1
- package/dist/components/Grid/index.js +2 -7
- package/dist/components/Heading1/Heading1.js +19 -69
- package/dist/components/Heading1/index.js +1 -5
- package/dist/components/Heading2/Heading2.js +19 -69
- package/dist/components/Heading2/index.js +1 -5
- package/dist/components/Heading3/Heading3.js +19 -69
- package/dist/components/Heading3/index.js +1 -5
- package/dist/components/Heading4/Heading4.js +19 -69
- package/dist/components/Heading4/index.js +1 -5
- package/dist/components/HintText/HintText.d.ts +33 -35
- package/dist/components/HintText/HintText.js +15 -40
- package/dist/components/HintText/index.js +1 -5
- package/dist/components/Icon/Icon.d.ts +0 -1
- package/dist/components/Icon/Icon.js +10 -37
- package/dist/components/Icon/index.js +1 -5
- package/dist/components/Input/Input.d.ts +3 -8
- package/dist/components/Input/Input.js +64 -86
- package/dist/components/Label/Label.d.ts +7 -6
- package/dist/components/Label/Label.js +10 -51
- package/dist/components/Label/index.js +1 -5
- package/dist/components/LabelText/LabelText.d.ts +33 -35
- package/dist/components/LabelText/LabelText.js +13 -40
- package/dist/components/LabelText/index.js +1 -5
- package/dist/components/Lead/Lead.d.ts +7 -6
- package/dist/components/Lead/Lead.js +12 -53
- package/dist/components/Lead/index.js +1 -5
- package/dist/components/LineThrough/LineThrough.d.ts +31 -31
- package/dist/components/LineThrough/LineThrough.js +4 -13
- package/dist/components/LineThrough/index.js +1 -5
- package/dist/components/List/List.d.ts +1 -1
- package/dist/components/List/List.js +21 -29
- package/dist/components/List/index.js +1 -7
- package/dist/components/List/styled.d.ts +126 -127
- package/dist/components/List/styled.js +32 -45
- package/dist/components/Margin/Margin.d.ts +31 -31
- package/dist/components/Margin/Margin.js +34 -50
- package/dist/components/Margin/index.js +1 -5
- package/dist/components/NavHeader/IconButton.js +10 -18
- package/dist/components/NavHeader/NavHeader.js +21 -49
- package/dist/components/NavHeader/NavHeader.styles.d.ts +283 -284
- package/dist/components/NavHeader/NavHeader.styles.js +82 -78
- package/dist/components/NavHeader/index.js +1 -5
- package/dist/components/Notification/Notification.d.ts +79 -77
- package/dist/components/Notification/Notification.js +69 -92
- package/dist/components/Notification/index.js +1 -9
- package/dist/components/NumberField/NumberField.d.ts +4 -9
- package/dist/components/NumberField/NumberField.js +5 -32
- package/dist/components/NumberField/index.js +1 -5
- package/dist/components/NumberInput/NumberInput.d.ts +2 -9
- package/dist/components/NumberInput/NumberInput.js +4 -19
- package/dist/components/NumberInput/index.js +1 -5
- package/dist/components/P/P.d.ts +8 -7
- package/dist/components/P/P.js +13 -54
- package/dist/components/P/index.js +1 -5
- package/dist/components/PasswordField/PasswordField.d.ts +6 -11
- package/dist/components/PasswordField/PasswordField.js +5 -32
- package/dist/components/PasswordField/index.js +1 -5
- package/dist/components/PasswordInput/PasswordInput.d.ts +5 -11
- package/dist/components/PasswordInput/PasswordInput.js +7 -34
- package/dist/components/PasswordInput/PasswordInput.styled.d.ts +31 -32
- package/dist/components/PasswordInput/PasswordInput.styled.js +13 -37
- package/dist/components/PasswordInput/PasswordVisibilityToggle.js +14 -20
- package/dist/components/PasswordInput/index.js +1 -5
- package/dist/components/PhoneField/PhoneField.d.ts +4 -9
- package/dist/components/PhoneField/PhoneField.js +5 -32
- package/dist/components/PhoneField/index.js +1 -5
- package/dist/components/PhoneInput/PhoneInput.d.ts +2 -9
- package/dist/components/PhoneInput/PhoneInput.js +3 -18
- package/dist/components/PhoneInput/index.js +1 -5
- package/dist/components/ProductCarousel/NavigationDots.js +32 -61
- package/dist/components/ProductCarousel/ProductCarousel.d.ts +1 -0
- package/dist/components/ProductCarousel/ProductCarousel.js +54 -101
- package/dist/components/ProductCarousel/anchor-point.d.ts +198 -1
- package/dist/components/ProductCarousel/anchor-point.js +11 -21
- package/dist/components/ProductCarousel/index.js +1 -5
- package/dist/components/Radio/Radio.d.ts +10 -8
- package/dist/components/Radio/Radio.js +45 -61
- package/dist/components/Radio/RadioField.js +20 -48
- package/dist/components/Radio/index.js +2 -7
- package/dist/components/RadioCard/RadioCard.d.ts +11 -8
- package/dist/components/RadioCard/RadioCard.js +50 -65
- package/dist/components/RadioCard/index.js +1 -5
- package/dist/components/SegmentedControls/SegmentedControls.d.ts +1 -0
- package/dist/components/SegmentedControls/SegmentedControls.js +37 -89
- package/dist/components/SegmentedControls/components/SegmentButton.d.ts +1 -0
- package/dist/components/SegmentedControls/components/SegmentButton.js +41 -82
- package/dist/components/SegmentedControls/index.js +2 -5
- package/dist/components/SelectField/Select.d.ts +31 -31
- package/dist/components/SelectField/Select.js +84 -87
- package/dist/components/SelectField/SelectField.js +4 -33
- package/dist/components/SelectField/index.js +1 -5
- package/dist/components/SkeletonAnimation/SkeletonAnimation.d.ts +2 -2
- package/dist/components/SkeletonAnimation/SkeletonAnimation.js +12 -17
- package/dist/components/SkeletonAnimation/index.js +1 -5
- package/dist/components/SkeletonCTA/SkeletonCTA.js +11 -42
- package/dist/components/SkeletonCTA/index.js +1 -5
- package/dist/components/SkeletonCircle/SkeletonCircle.js +12 -45
- package/dist/components/SkeletonCircle/index.js +1 -5
- package/dist/components/SkeletonHeading/SkeletonHeading.js +9 -41
- package/dist/components/SkeletonHeading/index.js +1 -5
- package/dist/components/SkeletonText/SkeletonText.js +22 -47
- package/dist/components/SkeletonText/index.js +1 -5
- package/dist/components/Small/Small.d.ts +33 -35
- package/dist/components/Small/Small.js +8 -39
- package/dist/components/Small/index.js +1 -5
- package/dist/components/Spinner/Spinner.js +35 -63
- package/dist/components/Spinner/index.js +1 -5
- package/dist/components/Stack/Stack.js +15 -47
- package/dist/components/Stack/index.js +1 -5
- package/dist/components/Stretch/Stretch.js +11 -54
- package/dist/components/Stretch/index.js +1 -17
- package/dist/components/Strong/Strong.d.ts +31 -31
- package/dist/components/Strong/Strong.js +4 -11
- package/dist/components/Strong/index.js +1 -5
- package/dist/components/SubLabelText/SubLabelText.d.ts +33 -35
- package/dist/components/SubLabelText/SubLabelText.js +13 -40
- package/dist/components/SubLabelText/index.js +1 -5
- package/dist/components/Tabs/Tab.d.ts +582 -10
- package/dist/components/Tabs/Tab.js +64 -76
- package/dist/components/Tabs/TabList.d.ts +0 -1
- package/dist/components/Tabs/TabList.js +20 -77
- package/dist/components/Tabs/TabPanel.js +12 -64
- package/dist/components/Tabs/Tabs.js +32 -89
- package/dist/components/Tabs/index.js +4 -11
- package/dist/components/TextField/TextField.d.ts +4 -9
- package/dist/components/TextField/TextField.js +5 -32
- package/dist/components/TextField/index.js +1 -5
- package/dist/components/TextGroup/TextGroup.js +16 -39
- package/dist/components/TextGroup/index.js +1 -5
- package/dist/components/TextInput/TextInput.d.ts +6 -8
- package/dist/components/TextInput/TextInput.js +4 -19
- package/dist/components/TextInput/index.js +1 -5
- package/dist/components/TextLink/TextLink.d.ts +6 -6
- package/dist/components/TextLink/TextLink.js +20 -74
- package/dist/components/TextLink/index.js +1 -5
- package/dist/components/TextareaField/TextareaField.d.ts +4 -11
- package/dist/components/TextareaField/TextareaField.js +5 -32
- package/dist/components/TextareaField/index.js +1 -5
- package/dist/components/TextareaInput/TextareaInput.d.ts +1 -11
- package/dist/components/TextareaInput/TextareaInput.js +13 -67
- package/dist/components/TextareaInput/index.js +1 -5
- package/dist/components/Toast/Toast.d.ts +5 -5
- package/dist/components/Toast/Toast.js +88 -131
- package/dist/components/Toast/index.js +1 -6
- package/dist/components/Toggle/Toggle.d.ts +10 -7
- package/dist/components/Toggle/Toggle.js +18 -49
- package/dist/components/Toggle/index.js +1 -5
- package/dist/components/Toggle/styles.d.ts +130 -130
- package/dist/components/Toggle/styles.js +32 -24
- package/dist/components/index.js +67 -83
- package/dist/esm/components/Accordion/Accordion.js +35 -76
- package/dist/esm/components/Accordion/Group.js +9 -12
- package/dist/esm/components/Accordion/Icon.js +12 -13
- package/dist/esm/components/Accordion/styles.js +42 -28
- package/dist/esm/components/ActionCard/ActionCard.js +48 -46
- package/dist/esm/components/ActionCard/CloseIconShape.js +4 -8
- package/dist/esm/components/ActionCard/IndicatorIconShape.js +4 -8
- package/dist/esm/components/ActionList/ActionList.js +17 -47
- package/dist/esm/components/ActionList/styled.js +48 -30
- package/dist/esm/components/Badge/Badge.js +24 -42
- package/dist/esm/components/CTAButton/CTAButton.js +56 -65
- package/dist/esm/components/CTALink/CTALink.js +3 -15
- package/dist/esm/components/Card/Card.js +10 -32
- package/dist/esm/components/Checkbox/Checkbox.js +39 -55
- package/dist/esm/components/Checkbox/CheckboxField.js +7 -32
- package/dist/esm/components/CurrencyField/CurrencyField.js +3 -27
- package/dist/esm/components/CurrencyInput/CurrencyInput.js +7 -30
- package/dist/esm/components/DataTable/DataTable.js +8 -32
- package/dist/esm/components/DataTable/TableRow.js +8 -20
- package/dist/esm/components/DataTable/styles.js +95 -56
- package/dist/esm/components/DateField/DateField.js +49 -44
- package/dist/esm/components/DescriptionList/DescriptionList.js +7 -35
- package/dist/esm/components/DescriptionList/styled.js +29 -52
- package/dist/esm/components/Disclosure/Disclosure.js +29 -48
- package/dist/esm/components/Display0/Display0.js +14 -37
- package/dist/esm/components/Display1/Display1.js +14 -37
- package/dist/esm/components/Display2/Display2.js +14 -37
- package/dist/esm/components/Display3/Display3.js +14 -37
- package/dist/esm/components/Divider/Divider.js +8 -11
- package/dist/esm/components/Em/Em.js +5 -6
- package/dist/esm/components/EmailField/EmailField.js +3 -27
- package/dist/esm/components/EmailInput/EmailInput.js +1 -13
- package/dist/esm/components/ErrorSummaryNotification/ErrorSummaryNotification.js +6 -32
- package/dist/esm/components/ErrorText/ErrorText.js +11 -10
- package/dist/esm/components/Field/Field.js +16 -36
- package/dist/esm/components/FilterSelect/FilterSelect.js +43 -37
- package/dist/esm/components/FormGroup/FormGroup.js +4 -32
- package/dist/esm/components/Grid/Col.js +20 -18
- package/dist/esm/components/Grid/Row.js +29 -41
- package/dist/esm/components/Grid/index.js +1 -1
- package/dist/esm/components/Heading1/Heading1.js +14 -37
- package/dist/esm/components/Heading2/Heading2.js +14 -37
- package/dist/esm/components/Heading3/Heading3.js +14 -37
- package/dist/esm/components/Heading4/Heading4.js +14 -37
- package/dist/esm/components/HintText/HintText.js +11 -10
- package/dist/esm/components/Icon/Icon.js +6 -29
- package/dist/esm/components/Input/Input.js +58 -54
- package/dist/esm/components/Label/Label.js +7 -22
- package/dist/esm/components/LabelText/LabelText.js +9 -10
- package/dist/esm/components/Lead/Lead.js +9 -24
- package/dist/esm/components/LineThrough/LineThrough.js +3 -6
- package/dist/esm/components/List/List.js +11 -14
- package/dist/esm/components/List/styled.js +30 -17
- package/dist/esm/components/Margin/Margin.js +26 -36
- package/dist/esm/components/NavHeader/IconButton.js +5 -9
- package/dist/esm/components/NavHeader/NavHeader.js +10 -11
- package/dist/esm/components/NavHeader/NavHeader.styles.js +79 -46
- package/dist/esm/components/Notification/Notification.js +63 -60
- package/dist/esm/components/NumberField/NumberField.js +3 -27
- package/dist/esm/components/NumberInput/NumberInput.js +1 -13
- package/dist/esm/components/P/P.js +10 -25
- package/dist/esm/components/PasswordField/PasswordField.js +3 -27
- package/dist/esm/components/PasswordInput/PasswordInput.js +4 -28
- package/dist/esm/components/PasswordInput/PasswordInput.styled.js +10 -8
- package/dist/esm/components/PasswordInput/PasswordVisibilityToggle.js +9 -10
- package/dist/esm/components/PhoneField/PhoneField.js +3 -27
- package/dist/esm/components/PhoneInput/PhoneInput.js +1 -13
- package/dist/esm/components/ProductCarousel/NavigationDots.js +28 -30
- package/dist/esm/components/ProductCarousel/ProductCarousel.js +40 -57
- package/dist/esm/components/ProductCarousel/anchor-point.js +11 -17
- package/dist/esm/components/Radio/Radio.js +38 -48
- package/dist/esm/components/Radio/RadioField.js +10 -35
- package/dist/esm/components/RadioCard/RadioCard.js +44 -53
- package/dist/esm/components/SegmentedControls/SegmentedControls.js +33 -58
- package/dist/esm/components/SegmentedControls/components/SegmentButton.js +33 -44
- package/dist/esm/components/SelectField/Select.js +76 -49
- package/dist/esm/components/SelectField/SelectField.js +1 -26
- package/dist/esm/components/SkeletonAnimation/SkeletonAnimation.js +4 -5
- package/dist/esm/components/SkeletonCTA/SkeletonCTA.js +6 -30
- package/dist/esm/components/SkeletonCircle/SkeletonCircle.js +8 -34
- package/dist/esm/components/SkeletonHeading/SkeletonHeading.js +5 -30
- package/dist/esm/components/SkeletonText/SkeletonText.js +15 -33
- package/dist/esm/components/Small/Small.js +5 -10
- package/dist/esm/components/Spinner/Spinner.js +30 -31
- package/dist/esm/components/Stack/Stack.js +7 -33
- package/dist/esm/components/Stretch/Stretch.js +8 -24
- package/dist/esm/components/Strong/Strong.js +3 -4
- package/dist/esm/components/SubLabelText/SubLabelText.js +9 -10
- package/dist/esm/components/Tabs/Tab.js +60 -46
- package/dist/esm/components/Tabs/TabList.js +15 -45
- package/dist/esm/components/Tabs/TabPanel.js +9 -34
- package/dist/esm/components/Tabs/Tabs.js +24 -54
- package/dist/esm/components/TextField/TextField.js +3 -27
- package/dist/esm/components/TextGroup/TextGroup.js +11 -30
- package/dist/esm/components/TextInput/TextInput.js +1 -13
- package/dist/esm/components/TextLink/TextLink.js +14 -42
- package/dist/esm/components/TextareaField/TextareaField.js +3 -27
- package/dist/esm/components/TextareaInput/TextareaInput.js +8 -36
- package/dist/esm/components/Toast/Toast.js +67 -82
- package/dist/esm/components/Toggle/Toggle.js +13 -41
- package/dist/esm/components/Toggle/styles.js +29 -15
- package/dist/esm/hooks/use-breakpoint.js +3 -3
- package/dist/esm/hooks/use-full-width.js +5 -6
- package/dist/esm/hooks/use-layout.js +6 -6
- package/dist/esm/providers/IconsProvider.js +9 -18
- package/dist/esm/providers/icons/Address.js +1 -12
- package/dist/esm/providers/icons/Advice.js +1 -12
- package/dist/esm/providers/icons/Archive.js +1 -12
- package/dist/esm/providers/icons/ArrowDown.js +1 -12
- package/dist/esm/providers/icons/ArrowLeft.js +1 -12
- package/dist/esm/providers/icons/ArrowRight.js +1 -12
- package/dist/esm/providers/icons/ArrowUp.js +1 -12
- package/dist/esm/providers/icons/Award.js +1 -12
- package/dist/esm/providers/icons/Battery.js +1 -12
- package/dist/esm/providers/icons/Cal.js +1 -12
- package/dist/esm/providers/icons/CalBook.js +1 -12
- package/dist/esm/providers/icons/CaretArrowDown.js +1 -12
- package/dist/esm/providers/icons/CaretArrowLeft.js +1 -12
- package/dist/esm/providers/icons/CaretArrowRight.js +1 -12
- package/dist/esm/providers/icons/CaretArrowUp.js +1 -12
- package/dist/esm/providers/icons/CaretDown.js +1 -12
- package/dist/esm/providers/icons/CaretLeft.js +1 -12
- package/dist/esm/providers/icons/CaretRight.js +1 -12
- package/dist/esm/providers/icons/CaretUp.js +1 -12
- package/dist/esm/providers/icons/Chart.js +1 -12
- package/dist/esm/providers/icons/ChartFilled.js +1 -12
- package/dist/esm/providers/icons/Check.js +1 -12
- package/dist/esm/providers/icons/CheckCircle.js +1 -12
- package/dist/esm/providers/icons/ChevronDown.js +1 -12
- package/dist/esm/providers/icons/ChevronLeft.js +1 -12
- package/dist/esm/providers/icons/ChevronLeftSmall.js +1 -12
- package/dist/esm/providers/icons/ChevronLeftSmallFirst.js +1 -12
- package/dist/esm/providers/icons/ChevronRight.js +1 -12
- package/dist/esm/providers/icons/ChevronRightSmall.js +1 -12
- package/dist/esm/providers/icons/ChevronRightSmallLast.js +1 -12
- package/dist/esm/providers/icons/ChevronUp.js +1 -12
- package/dist/esm/providers/icons/Circle.js +1 -12
- package/dist/esm/providers/icons/CloseCircle.js +1 -12
- package/dist/esm/providers/icons/Cross.js +1 -12
- package/dist/esm/providers/icons/Doc.js +1 -12
- package/dist/esm/providers/icons/Dollar.js +1 -12
- package/dist/esm/providers/icons/Download.js +1 -12
- package/dist/esm/providers/icons/Eco.js +1 -12
- package/dist/esm/providers/icons/EcoHome.js +1 -12
- package/dist/esm/providers/icons/Edit.js +1 -12
- package/dist/esm/providers/icons/ElectricCar.js +1 -12
- package/dist/esm/providers/icons/ElectricHome.js +1 -12
- package/dist/esm/providers/icons/Electricity.js +1 -12
- package/dist/esm/providers/icons/EnergyAdvice.js +1 -12
- package/dist/esm/providers/icons/Equals.js +1 -12
- package/dist/esm/providers/icons/Euro.js +1 -12
- package/dist/esm/providers/icons/Gas.js +1 -12
- package/dist/esm/providers/icons/GlobeAddress.js +1 -12
- package/dist/esm/providers/icons/Help.js +1 -12
- package/dist/esm/providers/icons/HelpFilled.js +1 -12
- package/dist/esm/providers/icons/Hide.js +1 -12
- package/dist/esm/providers/icons/Home.js +1 -12
- package/dist/esm/providers/icons/HomeFilled.js +1 -12
- package/dist/esm/providers/icons/HydroPower.js +1 -12
- package/dist/esm/providers/icons/Info.js +1 -12
- package/dist/esm/providers/icons/Link.js +1 -12
- package/dist/esm/providers/icons/Logo.js +1 -12
- package/dist/esm/providers/icons/Mail.js +1 -12
- package/dist/esm/providers/icons/MailOpen.js +1 -12
- package/dist/esm/providers/icons/Menu.js +1 -12
- package/dist/esm/providers/icons/Message.js +1 -12
- package/dist/esm/providers/icons/MessageFilled.js +1 -12
- package/dist/esm/providers/icons/Minus.js +1 -12
- package/dist/esm/providers/icons/Mobile.js +1 -12
- package/dist/esm/providers/icons/NewWindow.js +1 -12
- package/dist/esm/providers/icons/PaymentCard.js +1 -12
- package/dist/esm/providers/icons/PaymentCardFilled.js +1 -12
- package/dist/esm/providers/icons/Phone.js +1 -12
- package/dist/esm/providers/icons/Plus.js +1 -12
- package/dist/esm/providers/icons/Pound.js +1 -12
- package/dist/esm/providers/icons/Pricing.js +1 -12
- package/dist/esm/providers/icons/PricingFilled.js +1 -12
- package/dist/esm/providers/icons/Search.js +1 -12
- package/dist/esm/providers/icons/Security.js +1 -12
- package/dist/esm/providers/icons/Shop.js +1 -12
- package/dist/esm/providers/icons/ShopFilled.js +1 -12
- package/dist/esm/providers/icons/Show.js +1 -12
- package/dist/esm/providers/icons/SmartHome.js +1 -12
- package/dist/esm/providers/icons/SmartMeter.js +1 -12
- package/dist/esm/providers/icons/Solar.js +1 -12
- package/dist/esm/providers/icons/Star.js +1 -12
- package/dist/esm/providers/icons/StarFilled.js +1 -12
- package/dist/esm/providers/icons/Sun.js +1 -12
- package/dist/esm/providers/icons/Torch.js +1 -12
- package/dist/esm/providers/icons/Trees.js +1 -12
- package/dist/esm/providers/icons/Tune.js +1 -12
- package/dist/esm/providers/icons/User.js +1 -12
- package/dist/esm/providers/icons/UserFilled.js +1 -12
- package/dist/esm/providers/icons/Wallet.js +1 -12
- package/dist/esm/providers/icons/WalletFilled.js +1 -12
- package/dist/esm/providers/icons/WarmHome.js +1 -12
- package/dist/esm/providers/icons/Warning.js +1 -12
- package/dist/esm/providers/icons/WebAddress.js +1 -12
- package/dist/esm/providers/icons/WindPower.js +1 -12
- package/dist/esm/styled.native.js +1 -1
- package/dist/esm/utils/utils.js +23 -50
- package/dist/hooks/index.js +2 -18
- package/dist/hooks/use-breakpoint.js +6 -10
- package/dist/hooks/use-full-width.js +7 -12
- package/dist/hooks/use-layout.js +7 -11
- package/dist/index.js +3 -19
- package/dist/providers/IconsProvider.js +107 -121
- package/dist/providers/icons/Address.js +3 -41
- package/dist/providers/icons/Advice.js +3 -41
- package/dist/providers/icons/Archive.js +3 -41
- package/dist/providers/icons/ArrowDown.js +3 -41
- package/dist/providers/icons/ArrowLeft.js +3 -41
- package/dist/providers/icons/ArrowRight.js +3 -41
- package/dist/providers/icons/ArrowUp.js +3 -41
- package/dist/providers/icons/Award.js +3 -41
- package/dist/providers/icons/Battery.js +3 -41
- package/dist/providers/icons/Cal.js +3 -41
- package/dist/providers/icons/CalBook.js +3 -41
- package/dist/providers/icons/CaretArrowDown.js +3 -41
- package/dist/providers/icons/CaretArrowLeft.js +3 -41
- package/dist/providers/icons/CaretArrowRight.js +3 -41
- package/dist/providers/icons/CaretArrowUp.js +3 -41
- package/dist/providers/icons/CaretDown.js +3 -41
- package/dist/providers/icons/CaretLeft.js +3 -41
- package/dist/providers/icons/CaretRight.js +3 -41
- package/dist/providers/icons/CaretUp.js +3 -41
- package/dist/providers/icons/Chart.js +3 -41
- package/dist/providers/icons/ChartFilled.js +3 -41
- package/dist/providers/icons/Check.js +3 -41
- package/dist/providers/icons/CheckCircle.js +3 -41
- package/dist/providers/icons/ChevronDown.js +3 -41
- package/dist/providers/icons/ChevronLeft.js +3 -41
- package/dist/providers/icons/ChevronLeftSmall.js +3 -41
- package/dist/providers/icons/ChevronLeftSmallFirst.js +3 -41
- package/dist/providers/icons/ChevronRight.js +3 -41
- package/dist/providers/icons/ChevronRightSmall.js +3 -41
- package/dist/providers/icons/ChevronRightSmallLast.js +3 -41
- package/dist/providers/icons/ChevronUp.js +3 -41
- package/dist/providers/icons/Circle.js +3 -41
- package/dist/providers/icons/CloseCircle.js +3 -41
- package/dist/providers/icons/Cross.js +3 -41
- package/dist/providers/icons/Doc.js +3 -41
- package/dist/providers/icons/Dollar.js +3 -41
- package/dist/providers/icons/Download.js +3 -41
- package/dist/providers/icons/Eco.js +3 -41
- package/dist/providers/icons/EcoHome.js +3 -41
- package/dist/providers/icons/Edit.js +3 -41
- package/dist/providers/icons/ElectricCar.js +3 -41
- package/dist/providers/icons/ElectricHome.js +3 -41
- package/dist/providers/icons/Electricity.js +3 -41
- package/dist/providers/icons/EnergyAdvice.js +3 -41
- package/dist/providers/icons/Equals.js +3 -41
- package/dist/providers/icons/Euro.js +3 -41
- package/dist/providers/icons/Gas.js +3 -41
- package/dist/providers/icons/GlobeAddress.js +3 -41
- package/dist/providers/icons/Help.js +3 -41
- package/dist/providers/icons/HelpFilled.js +3 -41
- package/dist/providers/icons/Hide.js +3 -41
- package/dist/providers/icons/Home.js +3 -41
- package/dist/providers/icons/HomeFilled.js +3 -41
- package/dist/providers/icons/HydroPower.js +3 -41
- package/dist/providers/icons/Info.js +3 -41
- package/dist/providers/icons/Link.js +3 -41
- package/dist/providers/icons/Logo.js +3 -41
- package/dist/providers/icons/Mail.js +3 -41
- package/dist/providers/icons/MailOpen.js +3 -41
- package/dist/providers/icons/Menu.js +3 -41
- package/dist/providers/icons/Message.js +3 -41
- package/dist/providers/icons/MessageFilled.js +3 -41
- package/dist/providers/icons/Minus.js +3 -41
- package/dist/providers/icons/Mobile.js +3 -41
- package/dist/providers/icons/NewWindow.js +3 -41
- package/dist/providers/icons/PaymentCard.js +3 -41
- package/dist/providers/icons/PaymentCardFilled.js +3 -41
- package/dist/providers/icons/Phone.js +3 -41
- package/dist/providers/icons/Plus.js +3 -41
- package/dist/providers/icons/Pound.js +3 -41
- package/dist/providers/icons/Pricing.js +3 -41
- package/dist/providers/icons/PricingFilled.js +3 -41
- package/dist/providers/icons/Search.js +3 -41
- package/dist/providers/icons/Security.js +3 -41
- package/dist/providers/icons/Shop.js +3 -41
- package/dist/providers/icons/ShopFilled.js +3 -41
- package/dist/providers/icons/Show.js +3 -41
- package/dist/providers/icons/SmartHome.js +3 -41
- package/dist/providers/icons/SmartMeter.js +3 -41
- package/dist/providers/icons/Solar.js +3 -41
- package/dist/providers/icons/Star.js +3 -41
- package/dist/providers/icons/StarFilled.js +3 -41
- package/dist/providers/icons/Sun.js +3 -41
- package/dist/providers/icons/Torch.js +3 -41
- package/dist/providers/icons/Trees.js +3 -41
- package/dist/providers/icons/Tune.js +3 -41
- package/dist/providers/icons/User.js +3 -41
- package/dist/providers/icons/UserFilled.js +3 -41
- package/dist/providers/icons/Wallet.js +3 -41
- package/dist/providers/icons/WalletFilled.js +3 -41
- package/dist/providers/icons/WarmHome.js +3 -41
- package/dist/providers/icons/Warning.js +3 -41
- package/dist/providers/icons/WebAddress.js +3 -41
- package/dist/providers/icons/WindPower.js +3 -41
- package/dist/providers/icons/index.js +93 -109
- package/dist/providers/index.js +2 -18
- package/dist/providers/types.js +1 -2
- package/dist/styled.native.d.ts +186 -188
- package/dist/styled.native.js +4 -33
- package/dist/theme/index.js +1 -17
- package/dist/utils/index.js +1 -17
- package/dist/utils/utils.d.ts +3 -3
- package/dist/utils/utils.js +27 -64
- package/package.json +37 -34
|
@@ -1,86 +1,35 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { numToPx } from '@ovotech/element-core';
|
|
3
|
+
import { View } from 'react-native';
|
|
4
|
+
import styled, { css } from '../../styled.native';
|
|
5
|
+
import { styledComponentWithBreakpoints } from '../../utils';
|
|
6
|
+
export const Dl = styled.View(({ theme: { core }, smallAndUp }) => `
|
|
7
|
+
flex-direction: column;
|
|
8
|
+
flex: 1;
|
|
9
|
+
margin-top: ${smallAndUp ? numToPx(core.space[3]) : numToPx(core.space[2])};
|
|
10
|
+
margin-bottom: ${smallAndUp ? numToPx(core.space[3]) : numToPx(core.space[2])};
|
|
11
|
+
`);
|
|
12
|
+
const StyledDtText = styled.Text(({ theme: { core, semantic } }) => css `
|
|
13
|
+
font-family: ${core.fontFamily.bodyBold.native};
|
|
14
|
+
line-height: ${numToPx(core.lineHeight.body.small)};
|
|
15
|
+
font-size: ${numToPx(core.fontSize.body.small)};
|
|
16
|
+
color: ${semantic.message.base};
|
|
17
|
+
flex: 1;
|
|
18
|
+
`);
|
|
19
|
+
const DtText = styledComponentWithBreakpoints(StyledDtText);
|
|
20
|
+
const StyledDtItem = styled.View(({ theme: { core }, smallAndUp }) => css `
|
|
21
|
+
margin-top: ${numToPx(core.space[smallAndUp ? 4 : 3])};
|
|
22
|
+
flex-direction: row;
|
|
23
|
+
`);
|
|
24
|
+
const DtItem = styledComponentWithBreakpoints(StyledDtItem);
|
|
25
|
+
export const Dt = ({ children, ...rest }) => (_jsx(DtItem, { ...rest, children: _jsx(DtText, { children: children }) }));
|
|
26
|
+
const StyledDdText = styled.Text(({ theme: { core, semantic } }) => css `
|
|
27
|
+
font-family: ${core.fontFamily.body.native};
|
|
28
|
+
line-height: ${numToPx(core.lineHeight.body.small)};
|
|
29
|
+
color: ${semantic.message.secondary};
|
|
30
|
+
font-size: ${numToPx(core.fontSize.body.small)};
|
|
31
|
+
flex: 1;
|
|
32
|
+
`);
|
|
33
|
+
export const Dd = ({ children, ...rest }) => {
|
|
34
|
+
return (_jsx(View, { style: { flexDirection: 'row' }, ...rest, children: _jsx(StyledDdText, { children: children }) }));
|
|
5
35
|
};
|
|
6
|
-
var __assign = (this && this.__assign) || function () {
|
|
7
|
-
__assign = Object.assign || function(t) {
|
|
8
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
9
|
-
s = arguments[i];
|
|
10
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
11
|
-
t[p] = s[p];
|
|
12
|
-
}
|
|
13
|
-
return t;
|
|
14
|
-
};
|
|
15
|
-
return __assign.apply(this, arguments);
|
|
16
|
-
};
|
|
17
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
18
|
-
if (k2 === undefined) k2 = k;
|
|
19
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
20
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
21
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
22
|
-
}
|
|
23
|
-
Object.defineProperty(o, k2, desc);
|
|
24
|
-
}) : (function(o, m, k, k2) {
|
|
25
|
-
if (k2 === undefined) k2 = k;
|
|
26
|
-
o[k2] = m[k];
|
|
27
|
-
}));
|
|
28
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
29
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
30
|
-
}) : function(o, v) {
|
|
31
|
-
o["default"] = v;
|
|
32
|
-
});
|
|
33
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
34
|
-
if (mod && mod.__esModule) return mod;
|
|
35
|
-
var result = {};
|
|
36
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
37
|
-
__setModuleDefault(result, mod);
|
|
38
|
-
return result;
|
|
39
|
-
};
|
|
40
|
-
var __rest = (this && this.__rest) || function (s, e) {
|
|
41
|
-
var t = {};
|
|
42
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
43
|
-
t[p] = s[p];
|
|
44
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
45
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
46
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
47
|
-
t[p[i]] = s[p[i]];
|
|
48
|
-
}
|
|
49
|
-
return t;
|
|
50
|
-
};
|
|
51
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
52
|
-
exports.Dd = exports.Dt = exports.Dl = void 0;
|
|
53
|
-
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
54
|
-
var element_core_1 = require("@ovotech/element-core");
|
|
55
|
-
var react_native_1 = require("react-native");
|
|
56
|
-
var styled_native_1 = __importStar(require("../../styled.native"));
|
|
57
|
-
var utils_1 = require("../../utils");
|
|
58
|
-
exports.Dl = styled_native_1.default.View(function (_a) {
|
|
59
|
-
var core = _a.theme.core, smallAndUp = _a.smallAndUp;
|
|
60
|
-
return "\n flex-direction: column;\n flex: 1;\n margin-vertical: ".concat(smallAndUp ? (0, element_core_1.numToPx)(core.space[3]) : (0, element_core_1.numToPx)(core.space[2]), ";\n");
|
|
61
|
-
});
|
|
62
|
-
var StyledDtText = styled_native_1.default.Text(function (_a) {
|
|
63
|
-
var _b = _a.theme, core = _b.core, semantic = _b.semantic;
|
|
64
|
-
return (0, styled_native_1.css)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n font-family: ", ";\n line-height: ", ";\n font-size: ", ";\n color: ", ";\n flex: 1;\n "], ["\n font-family: ", ";\n line-height: ", ";\n font-size: ", ";\n color: ", ";\n flex: 1;\n "])), core.fontFamily.bodyBold.native, (0, element_core_1.numToPx)(core.lineHeight.body.small), (0, element_core_1.numToPx)(core.fontSize.body.small), semantic.message.base);
|
|
65
|
-
});
|
|
66
|
-
var DtText = (0, utils_1.styledComponentWithBreakpoints)(StyledDtText);
|
|
67
|
-
var StyledDtItem = styled_native_1.default.View(function (_a) {
|
|
68
|
-
var core = _a.theme.core, smallAndUp = _a.smallAndUp;
|
|
69
|
-
return (0, styled_native_1.css)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n margin-top: ", ";\n flex-direction: row;\n "], ["\n margin-top: ", ";\n flex-direction: row;\n "])), (0, element_core_1.numToPx)(core.space[smallAndUp ? 4 : 3]));
|
|
70
|
-
});
|
|
71
|
-
var DtItem = (0, utils_1.styledComponentWithBreakpoints)(StyledDtItem);
|
|
72
|
-
var Dt = function (_a) {
|
|
73
|
-
var children = _a.children, rest = __rest(_a, ["children"]);
|
|
74
|
-
return ((0, jsx_runtime_1.jsx)(DtItem, __assign({}, rest, { children: (0, jsx_runtime_1.jsx)(DtText, { children: children }) })));
|
|
75
|
-
};
|
|
76
|
-
exports.Dt = Dt;
|
|
77
|
-
var StyledDdText = styled_native_1.default.Text(function (_a) {
|
|
78
|
-
var _b = _a.theme, core = _b.core, semantic = _b.semantic;
|
|
79
|
-
return (0, styled_native_1.css)(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n font-family: ", ";\n line-height: ", ";\n color: ", ";\n font-size: ", ";\n flex: 1;\n "], ["\n font-family: ", ";\n line-height: ", ";\n color: ", ";\n font-size: ", ";\n flex: 1;\n "])), core.fontFamily.body.native, (0, element_core_1.numToPx)(core.lineHeight.body.small), semantic.message.secondary, (0, element_core_1.numToPx)(core.fontSize.body.small));
|
|
80
|
-
});
|
|
81
|
-
var Dd = function (_a) {
|
|
82
|
-
var children = _a.children, rest = __rest(_a, ["children"]);
|
|
83
|
-
return ((0, jsx_runtime_1.jsx)(react_native_1.View, __assign({ style: { flexDirection: 'row' } }, rest, { children: (0, jsx_runtime_1.jsx)(StyledDdText, { children: children }) })));
|
|
84
|
-
};
|
|
85
|
-
exports.Dd = Dd;
|
|
86
|
-
var templateObject_1, templateObject_2, templateObject_3;
|
|
@@ -1,8 +1,576 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
import {
|
|
3
|
-
|
|
1
|
+
import { ReactNode, RefObject } from 'react';
|
|
2
|
+
import { TouchableOpacityProps } from 'react-native';
|
|
3
|
+
declare const DisclosureButton: import("styled-components").StyledComponent<typeof import("react-native").TouchableOpacity, {
|
|
4
|
+
core: {
|
|
5
|
+
color: {
|
|
6
|
+
brand: {
|
|
7
|
+
midnight: string;
|
|
8
|
+
midnightTint: string;
|
|
9
|
+
forest: string;
|
|
10
|
+
forestTint: string;
|
|
11
|
+
ovo: string;
|
|
12
|
+
ovoTint: string;
|
|
13
|
+
leaf: string;
|
|
14
|
+
leafTint: string;
|
|
15
|
+
energised: string;
|
|
16
|
+
energisedTint: string;
|
|
17
|
+
offwhite: string;
|
|
18
|
+
white: string;
|
|
19
|
+
black: string;
|
|
20
|
+
};
|
|
21
|
+
neutral: {
|
|
22
|
+
darkest: string;
|
|
23
|
+
darker: string;
|
|
24
|
+
dark: string;
|
|
25
|
+
base: string;
|
|
26
|
+
light: string;
|
|
27
|
+
lighter: string;
|
|
28
|
+
lightest: string;
|
|
29
|
+
};
|
|
30
|
+
red: {
|
|
31
|
+
darkest: string;
|
|
32
|
+
darker: string;
|
|
33
|
+
dark: string;
|
|
34
|
+
base: string;
|
|
35
|
+
light: string;
|
|
36
|
+
lighter: string;
|
|
37
|
+
lightest: string;
|
|
38
|
+
};
|
|
39
|
+
orange: {
|
|
40
|
+
darkest: string;
|
|
41
|
+
darker: string;
|
|
42
|
+
dark: string;
|
|
43
|
+
base: string;
|
|
44
|
+
light: string;
|
|
45
|
+
lighter: string;
|
|
46
|
+
lightest: string;
|
|
47
|
+
};
|
|
48
|
+
yellow: {
|
|
49
|
+
darkest: string;
|
|
50
|
+
darker: string;
|
|
51
|
+
dark: string;
|
|
52
|
+
base: string;
|
|
53
|
+
light: string;
|
|
54
|
+
lighter: string;
|
|
55
|
+
lightest: string;
|
|
56
|
+
};
|
|
57
|
+
green: {
|
|
58
|
+
darkest: string;
|
|
59
|
+
darker: string;
|
|
60
|
+
dark: string;
|
|
61
|
+
base: string;
|
|
62
|
+
light: string;
|
|
63
|
+
lighter: string;
|
|
64
|
+
lightest: string;
|
|
65
|
+
};
|
|
66
|
+
blue: {
|
|
67
|
+
darkest: string;
|
|
68
|
+
darker: string;
|
|
69
|
+
dark: string;
|
|
70
|
+
base: string;
|
|
71
|
+
light: string;
|
|
72
|
+
lighter: string;
|
|
73
|
+
lightest: string;
|
|
74
|
+
};
|
|
75
|
+
};
|
|
76
|
+
fontFamily: {
|
|
77
|
+
mono: {
|
|
78
|
+
native: string;
|
|
79
|
+
web: string;
|
|
80
|
+
};
|
|
81
|
+
heading: {
|
|
82
|
+
native: string;
|
|
83
|
+
web: string;
|
|
84
|
+
};
|
|
85
|
+
body: {
|
|
86
|
+
native: string;
|
|
87
|
+
web: string;
|
|
88
|
+
};
|
|
89
|
+
bodyBold: {
|
|
90
|
+
native: string;
|
|
91
|
+
web: string;
|
|
92
|
+
};
|
|
93
|
+
};
|
|
94
|
+
fontWeight: {
|
|
95
|
+
book: number;
|
|
96
|
+
bold: number;
|
|
97
|
+
black: number;
|
|
98
|
+
};
|
|
99
|
+
fontSize: {
|
|
100
|
+
display0: {
|
|
101
|
+
small: number;
|
|
102
|
+
large: number;
|
|
103
|
+
};
|
|
104
|
+
display1: {
|
|
105
|
+
small: number;
|
|
106
|
+
large: number;
|
|
107
|
+
};
|
|
108
|
+
display2: {
|
|
109
|
+
small: number;
|
|
110
|
+
large: number;
|
|
111
|
+
};
|
|
112
|
+
display3: {
|
|
113
|
+
small: number;
|
|
114
|
+
large: number;
|
|
115
|
+
};
|
|
116
|
+
heading1: {
|
|
117
|
+
small: number;
|
|
118
|
+
large: number;
|
|
119
|
+
};
|
|
120
|
+
heading2: {
|
|
121
|
+
small: number;
|
|
122
|
+
large: number;
|
|
123
|
+
};
|
|
124
|
+
heading3: {
|
|
125
|
+
small: number;
|
|
126
|
+
large: number;
|
|
127
|
+
};
|
|
128
|
+
heading4: {
|
|
129
|
+
small: number;
|
|
130
|
+
large: number;
|
|
131
|
+
};
|
|
132
|
+
lead: {
|
|
133
|
+
small: number;
|
|
134
|
+
large: number;
|
|
135
|
+
};
|
|
136
|
+
body: {
|
|
137
|
+
small: number;
|
|
138
|
+
large: number;
|
|
139
|
+
};
|
|
140
|
+
small: {
|
|
141
|
+
small: number;
|
|
142
|
+
large: number;
|
|
143
|
+
};
|
|
144
|
+
label: {
|
|
145
|
+
small: number;
|
|
146
|
+
large: number;
|
|
147
|
+
};
|
|
148
|
+
};
|
|
149
|
+
letterSpacing: {
|
|
150
|
+
base: number;
|
|
151
|
+
compressed: number;
|
|
152
|
+
extraCompressed: number;
|
|
153
|
+
};
|
|
154
|
+
lineHeight: {
|
|
155
|
+
display0: {
|
|
156
|
+
small: number;
|
|
157
|
+
large: number;
|
|
158
|
+
};
|
|
159
|
+
display1: {
|
|
160
|
+
small: number;
|
|
161
|
+
large: number;
|
|
162
|
+
};
|
|
163
|
+
display2: {
|
|
164
|
+
small: number;
|
|
165
|
+
large: number;
|
|
166
|
+
};
|
|
167
|
+
display3: {
|
|
168
|
+
small: number;
|
|
169
|
+
large: number;
|
|
170
|
+
};
|
|
171
|
+
heading1: {
|
|
172
|
+
small: number;
|
|
173
|
+
large: number;
|
|
174
|
+
};
|
|
175
|
+
heading2: {
|
|
176
|
+
small: number;
|
|
177
|
+
large: number;
|
|
178
|
+
};
|
|
179
|
+
heading3: {
|
|
180
|
+
small: number;
|
|
181
|
+
large: number;
|
|
182
|
+
};
|
|
183
|
+
heading4: {
|
|
184
|
+
small: number;
|
|
185
|
+
large: number;
|
|
186
|
+
};
|
|
187
|
+
lead: {
|
|
188
|
+
small: number;
|
|
189
|
+
large: number;
|
|
190
|
+
};
|
|
191
|
+
body: {
|
|
192
|
+
small: number;
|
|
193
|
+
large: number;
|
|
194
|
+
};
|
|
195
|
+
small: {
|
|
196
|
+
small: number;
|
|
197
|
+
large: number;
|
|
198
|
+
};
|
|
199
|
+
label: {
|
|
200
|
+
small: number;
|
|
201
|
+
large: number;
|
|
202
|
+
};
|
|
203
|
+
};
|
|
204
|
+
borderWidth: {
|
|
205
|
+
small: number;
|
|
206
|
+
medium: number;
|
|
207
|
+
large: number;
|
|
208
|
+
};
|
|
209
|
+
breakpoint: {
|
|
210
|
+
small: number;
|
|
211
|
+
medium: number;
|
|
212
|
+
large: number;
|
|
213
|
+
};
|
|
214
|
+
mediaQuery: {
|
|
215
|
+
small: number;
|
|
216
|
+
medium: number;
|
|
217
|
+
large: number;
|
|
218
|
+
};
|
|
219
|
+
customMediaQuery: {
|
|
220
|
+
"small-and-up": number;
|
|
221
|
+
"medium-and-up": number;
|
|
222
|
+
"large-and-up": number;
|
|
223
|
+
};
|
|
224
|
+
opacity: {
|
|
225
|
+
solid: number;
|
|
226
|
+
translucent: number;
|
|
227
|
+
transparent: number;
|
|
228
|
+
};
|
|
229
|
+
radius: {
|
|
230
|
+
small: number;
|
|
231
|
+
medium: number;
|
|
232
|
+
large: number;
|
|
233
|
+
max: number;
|
|
234
|
+
};
|
|
235
|
+
space: {
|
|
236
|
+
"0": number;
|
|
237
|
+
"1": number;
|
|
238
|
+
"2": number;
|
|
239
|
+
"3": number;
|
|
240
|
+
"4": number;
|
|
241
|
+
"5": number;
|
|
242
|
+
"6": number;
|
|
243
|
+
"7": number;
|
|
244
|
+
"8": number;
|
|
245
|
+
"9": number;
|
|
246
|
+
"10": number;
|
|
247
|
+
"11": number;
|
|
248
|
+
"12": number;
|
|
249
|
+
"13": number;
|
|
250
|
+
"14": number;
|
|
251
|
+
"15": number;
|
|
252
|
+
};
|
|
253
|
+
transition: {
|
|
254
|
+
slow: number;
|
|
255
|
+
medium: number;
|
|
256
|
+
fast: number;
|
|
257
|
+
};
|
|
258
|
+
};
|
|
259
|
+
semantic: {
|
|
260
|
+
border: {
|
|
261
|
+
graphic: string;
|
|
262
|
+
differentiated: string;
|
|
263
|
+
functional: string;
|
|
264
|
+
};
|
|
265
|
+
branded: {
|
|
266
|
+
surface: string;
|
|
267
|
+
message: string;
|
|
268
|
+
heading: string;
|
|
269
|
+
};
|
|
270
|
+
neutral: {
|
|
271
|
+
surface: string;
|
|
272
|
+
message: string;
|
|
273
|
+
surfaceEmphasis: string;
|
|
274
|
+
messageOnEmphasis: string;
|
|
275
|
+
border: string;
|
|
276
|
+
};
|
|
277
|
+
success: {
|
|
278
|
+
surface: string;
|
|
279
|
+
message: string;
|
|
280
|
+
surfaceEmphasis: string;
|
|
281
|
+
messageOnEmphasis: string;
|
|
282
|
+
border: string;
|
|
283
|
+
};
|
|
284
|
+
warning: {
|
|
285
|
+
surface: string;
|
|
286
|
+
message: string;
|
|
287
|
+
surfaceEmphasis: string;
|
|
288
|
+
messageOnEmphasis: string;
|
|
289
|
+
border: string;
|
|
290
|
+
};
|
|
291
|
+
error: {
|
|
292
|
+
surface: string;
|
|
293
|
+
message: string;
|
|
294
|
+
surfaceEmphasis: string;
|
|
295
|
+
messageOnEmphasis: string;
|
|
296
|
+
border: string;
|
|
297
|
+
};
|
|
298
|
+
info: {
|
|
299
|
+
surface: string;
|
|
300
|
+
message: string;
|
|
301
|
+
surfaceEmphasis: string;
|
|
302
|
+
messageOnEmphasis: string;
|
|
303
|
+
border: string;
|
|
304
|
+
};
|
|
305
|
+
data: {
|
|
306
|
+
branded: {
|
|
307
|
+
"1": string;
|
|
308
|
+
"2": string;
|
|
309
|
+
"3": string;
|
|
310
|
+
"4": string;
|
|
311
|
+
};
|
|
312
|
+
electric: {
|
|
313
|
+
"1": string;
|
|
314
|
+
"2": string;
|
|
315
|
+
"3": string;
|
|
316
|
+
"4": string;
|
|
317
|
+
};
|
|
318
|
+
gas: {
|
|
319
|
+
"1": string;
|
|
320
|
+
"2": string;
|
|
321
|
+
"3": string;
|
|
322
|
+
"4": string;
|
|
323
|
+
};
|
|
324
|
+
};
|
|
325
|
+
focus: {
|
|
326
|
+
outline: string;
|
|
327
|
+
hover: string;
|
|
328
|
+
surface: string;
|
|
329
|
+
};
|
|
330
|
+
inverted: {
|
|
331
|
+
surface: string;
|
|
332
|
+
surfaceAlt: string;
|
|
333
|
+
border: string;
|
|
334
|
+
borderAlt: string;
|
|
335
|
+
message: {
|
|
336
|
+
branded: string;
|
|
337
|
+
base: string;
|
|
338
|
+
secondary: string;
|
|
339
|
+
link: string;
|
|
340
|
+
};
|
|
341
|
+
};
|
|
342
|
+
message: {
|
|
343
|
+
base: string;
|
|
344
|
+
secondary: string;
|
|
345
|
+
link: string;
|
|
346
|
+
error: string;
|
|
347
|
+
branded: string;
|
|
348
|
+
};
|
|
349
|
+
surface: {
|
|
350
|
+
base: string;
|
|
351
|
+
cutout: string;
|
|
352
|
+
elevated: string;
|
|
353
|
+
};
|
|
354
|
+
};
|
|
355
|
+
component: {
|
|
356
|
+
badge: {
|
|
357
|
+
variants: {
|
|
358
|
+
neutral: {
|
|
359
|
+
background: string;
|
|
360
|
+
foreground: string;
|
|
361
|
+
};
|
|
362
|
+
red: {
|
|
363
|
+
background: string;
|
|
364
|
+
foreground: string;
|
|
365
|
+
};
|
|
366
|
+
orange: {
|
|
367
|
+
background: string;
|
|
368
|
+
foreground: string;
|
|
369
|
+
};
|
|
370
|
+
yellow: {
|
|
371
|
+
background: string;
|
|
372
|
+
foreground: string;
|
|
373
|
+
};
|
|
374
|
+
green: {
|
|
375
|
+
background: string;
|
|
376
|
+
foreground: string;
|
|
377
|
+
};
|
|
378
|
+
blue: {
|
|
379
|
+
background: string;
|
|
380
|
+
foreground: string;
|
|
381
|
+
};
|
|
382
|
+
};
|
|
383
|
+
};
|
|
384
|
+
cta: {
|
|
385
|
+
primary: {
|
|
386
|
+
message: string;
|
|
387
|
+
surface: string;
|
|
388
|
+
messageHover: string;
|
|
389
|
+
surfaceHover: string;
|
|
390
|
+
messageFocused: string;
|
|
391
|
+
surfaceFocused: string;
|
|
392
|
+
outlineFocused: string;
|
|
393
|
+
backgroundFocused: string;
|
|
394
|
+
messageInverted: string;
|
|
395
|
+
surfaceInverted: string;
|
|
396
|
+
};
|
|
397
|
+
secondary: {
|
|
398
|
+
message: string;
|
|
399
|
+
surface: string;
|
|
400
|
+
messageHover: string;
|
|
401
|
+
surfaceHover: string;
|
|
402
|
+
messageFocused: string;
|
|
403
|
+
surfaceFocused: string;
|
|
404
|
+
outlineFocused: string;
|
|
405
|
+
backgroundFocused: string;
|
|
406
|
+
messageInverted: string;
|
|
407
|
+
surfaceInverted: string;
|
|
408
|
+
};
|
|
409
|
+
destructive: {
|
|
410
|
+
message: string;
|
|
411
|
+
surface: string;
|
|
412
|
+
messageHover: string;
|
|
413
|
+
surfaceHover: string;
|
|
414
|
+
messageFocused: string;
|
|
415
|
+
surfaceFocused: string;
|
|
416
|
+
outlineFocused: string;
|
|
417
|
+
backgroundFocused: string;
|
|
418
|
+
messageInverted: string;
|
|
419
|
+
surfaceInverted: string;
|
|
420
|
+
};
|
|
421
|
+
};
|
|
422
|
+
display0: {
|
|
423
|
+
fontFamily: string;
|
|
424
|
+
fontWeight: number;
|
|
425
|
+
lineHeight: {
|
|
426
|
+
small: number;
|
|
427
|
+
large: number;
|
|
428
|
+
};
|
|
429
|
+
fontSize: {
|
|
430
|
+
small: number;
|
|
431
|
+
large: number;
|
|
432
|
+
};
|
|
433
|
+
};
|
|
434
|
+
display1: {
|
|
435
|
+
fontFamily: string;
|
|
436
|
+
fontWeight: number;
|
|
437
|
+
lineHeight: {
|
|
438
|
+
small: number;
|
|
439
|
+
large: number;
|
|
440
|
+
};
|
|
441
|
+
fontSize: {
|
|
442
|
+
small: number;
|
|
443
|
+
large: number;
|
|
444
|
+
};
|
|
445
|
+
};
|
|
446
|
+
display2: {
|
|
447
|
+
fontFamily: string;
|
|
448
|
+
fontWeight: number;
|
|
449
|
+
lineHeight: {
|
|
450
|
+
small: number;
|
|
451
|
+
large: number;
|
|
452
|
+
};
|
|
453
|
+
fontSize: {
|
|
454
|
+
small: number;
|
|
455
|
+
large: number;
|
|
456
|
+
};
|
|
457
|
+
};
|
|
458
|
+
display3: {
|
|
459
|
+
fontFamily: string;
|
|
460
|
+
fontWeight: number;
|
|
461
|
+
lineHeight: {
|
|
462
|
+
small: number;
|
|
463
|
+
large: number;
|
|
464
|
+
};
|
|
465
|
+
fontSize: {
|
|
466
|
+
small: number;
|
|
467
|
+
large: number;
|
|
468
|
+
};
|
|
469
|
+
};
|
|
470
|
+
heading1: {
|
|
471
|
+
fontFamily: string;
|
|
472
|
+
fontWeight: number;
|
|
473
|
+
lineHeight: {
|
|
474
|
+
small: number;
|
|
475
|
+
large: number;
|
|
476
|
+
};
|
|
477
|
+
fontSize: {
|
|
478
|
+
small: number;
|
|
479
|
+
large: number;
|
|
480
|
+
};
|
|
481
|
+
};
|
|
482
|
+
heading2: {
|
|
483
|
+
fontFamily: string;
|
|
484
|
+
fontWeight: number;
|
|
485
|
+
lineHeight: {
|
|
486
|
+
small: number;
|
|
487
|
+
large: number;
|
|
488
|
+
};
|
|
489
|
+
fontSize: {
|
|
490
|
+
small: number;
|
|
491
|
+
large: number;
|
|
492
|
+
};
|
|
493
|
+
};
|
|
494
|
+
heading3: {
|
|
495
|
+
fontFamily: string;
|
|
496
|
+
fontWeight: number;
|
|
497
|
+
lineHeight: {
|
|
498
|
+
small: number;
|
|
499
|
+
large: number;
|
|
500
|
+
};
|
|
501
|
+
fontSize: {
|
|
502
|
+
small: number;
|
|
503
|
+
large: number;
|
|
504
|
+
};
|
|
505
|
+
};
|
|
506
|
+
heading4: {
|
|
507
|
+
fontFamily: string;
|
|
508
|
+
fontWeight: number;
|
|
509
|
+
lineHeight: {
|
|
510
|
+
small: number;
|
|
511
|
+
large: number;
|
|
512
|
+
};
|
|
513
|
+
fontSize: {
|
|
514
|
+
small: number;
|
|
515
|
+
large: number;
|
|
516
|
+
};
|
|
517
|
+
};
|
|
518
|
+
lead: {
|
|
519
|
+
fontFamily: string;
|
|
520
|
+
fontWeight: number;
|
|
521
|
+
lineHeight: {
|
|
522
|
+
small: number;
|
|
523
|
+
large: number;
|
|
524
|
+
};
|
|
525
|
+
fontSize: {
|
|
526
|
+
small: number;
|
|
527
|
+
large: number;
|
|
528
|
+
};
|
|
529
|
+
};
|
|
530
|
+
body: {
|
|
531
|
+
fontFamily: string;
|
|
532
|
+
fontWeight: number;
|
|
533
|
+
lineHeight: {
|
|
534
|
+
small: number;
|
|
535
|
+
large: number;
|
|
536
|
+
};
|
|
537
|
+
fontSize: {
|
|
538
|
+
small: number;
|
|
539
|
+
large: number;
|
|
540
|
+
};
|
|
541
|
+
};
|
|
542
|
+
small: {
|
|
543
|
+
fontFamily: string;
|
|
544
|
+
fontWeight: number;
|
|
545
|
+
lineHeight: {
|
|
546
|
+
small: number;
|
|
547
|
+
large: number;
|
|
548
|
+
};
|
|
549
|
+
fontSize: {
|
|
550
|
+
small: number;
|
|
551
|
+
large: number;
|
|
552
|
+
};
|
|
553
|
+
};
|
|
554
|
+
label: {
|
|
555
|
+
fontFamily: string;
|
|
556
|
+
fontWeight: number;
|
|
557
|
+
lineHeight: {
|
|
558
|
+
small: number;
|
|
559
|
+
large: number;
|
|
560
|
+
};
|
|
561
|
+
fontSize: {
|
|
562
|
+
small: number;
|
|
563
|
+
large: number;
|
|
564
|
+
};
|
|
565
|
+
};
|
|
566
|
+
};
|
|
567
|
+
}, {}, never>;
|
|
568
|
+
type Props = TouchableOpacityProps & {
|
|
4
569
|
title: ReactNode;
|
|
5
|
-
expanded?: boolean
|
|
570
|
+
expanded?: boolean;
|
|
6
571
|
children?: ReactNode;
|
|
7
|
-
onToggle?: CallableFunction
|
|
8
|
-
|
|
572
|
+
onToggle?: CallableFunction;
|
|
573
|
+
ref?: RefObject<typeof DisclosureButton>;
|
|
574
|
+
};
|
|
575
|
+
export declare const Disclosure: ({ children, title, expanded, onToggle, ref, ...rest }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
576
|
+
export {};
|