@ovotech/element-native 2.0.0-beta.1 → 2.0.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/package.json +1 -1
- package/dist/components/Accordion/Accordion.d.ts +0 -5
- package/dist/components/Accordion/Accordion.js +0 -139
- package/dist/components/Accordion/Group.d.ts +0 -3
- package/dist/components/Accordion/Group.js +0 -41
- package/dist/components/Accordion/Icon.d.ts +0 -4
- package/dist/components/Accordion/Icon.js +0 -68
- package/dist/components/Accordion/hooks.d.ts +0 -6
- package/dist/components/Accordion/hooks.js +0 -43
- package/dist/components/Accordion/index.d.ts +0 -4
- package/dist/components/Accordion/index.js +0 -9
- package/dist/components/Accordion/styles.d.ts +0 -46
- package/dist/components/Accordion/styles.js +0 -52
- package/dist/components/Accordion/types.d.ts +0 -20
- package/dist/components/Accordion/types.js +0 -2
- package/dist/components/Badge/Badge.d.ts +0 -12
- package/dist/components/Badge/Badge.js +0 -79
- package/dist/components/Badge/index.d.ts +0 -1
- package/dist/components/Badge/index.js +0 -5
- package/dist/components/CTAButton/CTAButton.d.ts +0 -24
- package/dist/components/CTAButton/CTAButton.js +0 -107
- package/dist/components/CTAButton/index.d.ts +0 -1
- package/dist/components/CTAButton/index.js +0 -8
- package/dist/components/CTALink/CTALink.d.ts +0 -12
- package/dist/components/CTALink/CTALink.js +0 -45
- package/dist/components/CTALink/index.d.ts +0 -1
- package/dist/components/CTALink/index.js +0 -7
- package/dist/components/Card/Card.d.ts +0 -7
- package/dist/components/Card/Card.js +0 -33
- package/dist/components/Card/index.d.ts +0 -1
- package/dist/components/Card/index.js +0 -5
- package/dist/components/Checkbox/Checkbox.d.ts +0 -12
- package/dist/components/Checkbox/Checkbox.js +0 -121
- package/dist/components/Checkbox/CheckboxField.d.ts +0 -9
- package/dist/components/Checkbox/CheckboxField.js +0 -73
- package/dist/components/Checkbox/index.d.ts +0 -2
- package/dist/components/Checkbox/index.js +0 -7
- package/dist/components/DataTable/DataTable.d.ts +0 -13
- package/dist/components/DataTable/DataTable.js +0 -134
- package/dist/components/DataTable/index.d.ts +0 -1
- package/dist/components/DataTable/index.js +0 -5
- package/dist/components/DateField/DateField.d.ts +0 -21
- package/dist/components/DateField/DateField.js +0 -109
- package/dist/components/DateField/index.d.ts +0 -1
- package/dist/components/DateField/index.js +0 -5
- package/dist/components/Disclosure/Disclosure.d.ts +0 -8
- package/dist/components/Disclosure/Disclosure.js +0 -86
- package/dist/components/Disclosure/index.d.ts +0 -1
- package/dist/components/Disclosure/index.js +0 -17
- package/dist/components/ErrorSummaryNotification/ErrorSummaryNotification.d.ts +0 -18
- package/dist/components/ErrorSummaryNotification/ErrorSummaryNotification.js +0 -73
- package/dist/components/ErrorSummaryNotification/index.d.ts +0 -1
- package/dist/components/ErrorSummaryNotification/index.js +0 -5
- package/dist/components/ErrorText/ErrorText.d.ts +0 -13
- package/dist/components/ErrorText/ErrorText.js +0 -41
- package/dist/components/ErrorText/index.d.ts +0 -1
- package/dist/components/ErrorText/index.js +0 -5
- package/dist/components/Field/Field.d.ts +0 -13
- package/dist/components/Field/Field.js +0 -94
- package/dist/components/Field/index.d.ts +0 -1
- package/dist/components/Field/index.js +0 -17
- package/dist/components/FormGroup/FormGroup.d.ts +0 -8
- package/dist/components/FormGroup/FormGroup.js +0 -43
- package/dist/components/FormGroup/index.d.ts +0 -1
- package/dist/components/FormGroup/index.js +0 -5
- package/dist/components/Grid/Col.d.ts +0 -12
- package/dist/components/Grid/Col.js +0 -58
- package/dist/components/Grid/Row.d.ts +0 -9
- package/dist/components/Grid/Row.js +0 -76
- package/dist/components/Grid/index.d.ts +0 -2
- package/dist/components/Grid/index.js +0 -7
- package/dist/components/Heading/Heading.d.ts +0 -6
- package/dist/components/Heading/Heading.js +0 -115
- package/dist/components/Heading/index.d.ts +0 -1
- package/dist/components/Heading/index.js +0 -8
- package/dist/components/HintText/HintText.d.ts +0 -13
- package/dist/components/HintText/HintText.js +0 -41
- package/dist/components/HintText/index.d.ts +0 -1
- package/dist/components/HintText/index.js +0 -5
- package/dist/components/Icon/Icon.d.ts +0 -11
- package/dist/components/Icon/Icon.js +0 -62
- package/dist/components/Icon/index.d.ts +0 -1
- package/dist/components/Icon/index.js +0 -5
- package/dist/components/Input/CurrencyInput.d.ts +0 -15
- package/dist/components/Input/CurrencyInput.js +0 -59
- package/dist/components/Input/EmailInput.d.ts +0 -9
- package/dist/components/Input/EmailInput.js +0 -41
- package/dist/components/Input/Input.d.ts +0 -16
- package/dist/components/Input/Input.js +0 -102
- package/dist/components/Input/NumberInput.d.ts +0 -9
- package/dist/components/Input/NumberInput.js +0 -41
- package/dist/components/Input/PasswordInput.d.ts +0 -9
- package/dist/components/Input/PasswordInput.js +0 -55
- package/dist/components/Input/TelInput.d.ts +0 -9
- package/dist/components/Input/TelInput.js +0 -41
- package/dist/components/Input/TextInput.d.ts +0 -9
- package/dist/components/Input/TextInput.js +0 -41
- package/dist/components/Input/TextareaInput.d.ts +0 -15
- package/dist/components/Input/TextareaInput.js +0 -64
- package/dist/components/Input/index.d.ts +0 -7
- package/dist/components/Input/index.js +0 -17
- package/dist/components/LabelText/LabelText.d.ts +0 -13
- package/dist/components/LabelText/LabelText.js +0 -41
- package/dist/components/LabelText/index.d.ts +0 -1
- package/dist/components/LabelText/index.js +0 -5
- package/dist/components/List/List.d.ts +0 -29
- package/dist/components/List/List.js +0 -154
- package/dist/components/List/index.d.ts +0 -1
- package/dist/components/List/index.js +0 -10
- package/dist/components/Margin/Margin.d.ts +0 -23
- package/dist/components/Margin/Margin.js +0 -53
- package/dist/components/Margin/index.d.ts +0 -1
- package/dist/components/Margin/index.js +0 -5
- package/dist/components/NavHeader/NavHeader.d.ts +0 -15
- package/dist/components/NavHeader/NavHeader.js +0 -93
- package/dist/components/NavHeader/index.d.ts +0 -1
- package/dist/components/NavHeader/index.js +0 -5
- package/dist/components/Notification/Notification.d.ts +0 -31
- package/dist/components/Notification/Notification.js +0 -123
- package/dist/components/Notification/index.d.ts +0 -1
- package/dist/components/Notification/index.js +0 -9
- package/dist/components/Radio/Radio.d.ts +0 -12
- package/dist/components/Radio/Radio.js +0 -114
- package/dist/components/Radio/RadioField.d.ts +0 -11
- package/dist/components/Radio/RadioField.js +0 -78
- package/dist/components/Radio/index.d.ts +0 -2
- package/dist/components/Radio/index.js +0 -7
- package/dist/components/SkeletonLoading/Skeleton.d.ts +0 -1
- package/dist/components/SkeletonLoading/Skeleton.js +0 -33
- package/dist/components/SkeletonLoading/SkeletonCTA.d.ts +0 -6
- package/dist/components/SkeletonLoading/SkeletonCTA.js +0 -41
- package/dist/components/SkeletonLoading/SkeletonCircle.d.ts +0 -6
- package/dist/components/SkeletonLoading/SkeletonCircle.js +0 -46
- package/dist/components/SkeletonLoading/SkeletonHeading.d.ts +0 -8
- package/dist/components/SkeletonLoading/SkeletonHeading.js +0 -41
- package/dist/components/SkeletonLoading/SkeletonText.d.ts +0 -6
- package/dist/components/SkeletonLoading/SkeletonText.js +0 -49
- package/dist/components/SkeletonLoading/index.d.ts +0 -5
- package/dist/components/SkeletonLoading/index.js +0 -21
- package/dist/components/Stack/Stack.d.ts +0 -10
- package/dist/components/Stack/Stack.js +0 -75
- package/dist/components/Stack/index.d.ts +0 -1
- package/dist/components/Stack/index.js +0 -5
- package/dist/components/Stretch/Stretch.d.ts +0 -7
- package/dist/components/Stretch/Stretch.js +0 -31
- package/dist/components/Stretch/index.d.ts +0 -1
- package/dist/components/Stretch/index.js +0 -17
- package/dist/components/SubLabelText/SubLabelText.d.ts +0 -13
- package/dist/components/SubLabelText/SubLabelText.js +0 -41
- package/dist/components/SubLabelText/index.d.ts +0 -1
- package/dist/components/SubLabelText/index.js +0 -5
- package/dist/components/SummaryList/SummaryList.d.ts +0 -10
- package/dist/components/SummaryList/SummaryList.js +0 -66
- package/dist/components/SummaryList/index.d.ts +0 -1
- package/dist/components/SummaryList/index.js +0 -6
- package/dist/components/Tabs/Tab.d.ts +0 -11
- package/dist/components/Tabs/Tab.js +0 -74
- package/dist/components/Tabs/TabList.d.ts +0 -1
- package/dist/components/Tabs/TabList.js +0 -74
- package/dist/components/Tabs/TabPanel.d.ts +0 -3
- package/dist/components/Tabs/TabPanel.js +0 -41
- package/dist/components/Tabs/Tabs.d.ts +0 -9
- package/dist/components/Tabs/Tabs.js +0 -95
- package/dist/components/Tabs/index.d.ts +0 -4
- package/dist/components/Tabs/index.js +0 -11
- package/dist/components/Text/Text.d.ts +0 -26
- package/dist/components/Text/Text.js +0 -96
- package/dist/components/Text/index.d.ts +0 -1
- package/dist/components/Text/index.js +0 -10
- package/dist/components/TextField/CurrencyField.d.ts +0 -11
- package/dist/components/TextField/CurrencyField.js +0 -56
- package/dist/components/TextField/EmailField.d.ts +0 -9
- package/dist/components/TextField/EmailField.js +0 -56
- package/dist/components/TextField/NumberField.d.ts +0 -9
- package/dist/components/TextField/NumberField.js +0 -56
- package/dist/components/TextField/PasswordField.d.ts +0 -9
- package/dist/components/TextField/PasswordField.js +0 -56
- package/dist/components/TextField/TelField.d.ts +0 -9
- package/dist/components/TextField/TelField.js +0 -56
- package/dist/components/TextField/TextField.d.ts +0 -9
- package/dist/components/TextField/TextField.js +0 -56
- package/dist/components/TextField/TextareaField.d.ts +0 -11
- package/dist/components/TextField/TextareaField.js +0 -56
- package/dist/components/TextField/index.d.ts +0 -7
- package/dist/components/TextField/index.js +0 -17
- package/dist/components/TextLink/TextLink.d.ts +0 -8
- package/dist/components/TextLink/TextLink.js +0 -75
- package/dist/components/TextLink/index.d.ts +0 -1
- package/dist/components/TextLink/index.js +0 -5
- package/dist/components/index.d.ts +0 -27
- package/dist/components/index.js +0 -43
- package/dist/esm/components/Accordion/Accordion.js +0 -111
- package/dist/esm/components/Accordion/Group.js +0 -14
- package/dist/esm/components/Accordion/Icon.js +0 -38
- package/dist/esm/components/Accordion/hooks.js +0 -16
- package/dist/esm/components/Accordion/index.js +0 -3
- package/dist/esm/components/Accordion/styles.js +0 -49
- package/dist/esm/components/Accordion/types.js +0 -1
- package/dist/esm/components/Badge/Badge.js +0 -49
- package/dist/esm/components/Badge/index.js +0 -1
- package/dist/esm/components/CTAButton/CTAButton.js +0 -78
- package/dist/esm/components/CTAButton/index.js +0 -1
- package/dist/esm/components/CTALink/CTALink.js +0 -17
- package/dist/esm/components/CTALink/index.js +0 -1
- package/dist/esm/components/Card/Card.js +0 -27
- package/dist/esm/components/Card/index.js +0 -1
- package/dist/esm/components/Checkbox/Checkbox.js +0 -95
- package/dist/esm/components/Checkbox/CheckboxField.js +0 -47
- package/dist/esm/components/Checkbox/index.js +0 -2
- package/dist/esm/components/DataTable/DataTable.js +0 -108
- package/dist/esm/components/DataTable/index.js +0 -1
- package/dist/esm/components/DateField/DateField.js +0 -83
- package/dist/esm/components/DateField/index.js +0 -1
- package/dist/esm/components/Disclosure/Disclosure.js +0 -60
- package/dist/esm/components/Disclosure/index.js +0 -1
- package/dist/esm/components/ErrorSummaryNotification/ErrorSummaryNotification.js +0 -47
- package/dist/esm/components/ErrorSummaryNotification/index.js +0 -1
- package/dist/esm/components/ErrorText/ErrorText.js +0 -15
- package/dist/esm/components/ErrorText/index.js +0 -1
- package/dist/esm/components/Field/Field.js +0 -68
- package/dist/esm/components/Field/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 -32
- package/dist/esm/components/Grid/Row.js +0 -47
- package/dist/esm/components/Grid/index.js +0 -2
- package/dist/esm/components/Heading/Heading.js +0 -82
- package/dist/esm/components/Heading/index.js +0 -1
- package/dist/esm/components/HintText/HintText.js +0 -15
- package/dist/esm/components/HintText/index.js +0 -1
- package/dist/esm/components/Icon/Icon.js +0 -35
- package/dist/esm/components/Icon/index.js +0 -1
- package/dist/esm/components/Input/CurrencyInput.js +0 -33
- package/dist/esm/components/Input/EmailInput.js +0 -15
- package/dist/esm/components/Input/Input.js +0 -76
- package/dist/esm/components/Input/NumberInput.js +0 -15
- package/dist/esm/components/Input/PasswordInput.js +0 -29
- package/dist/esm/components/Input/TelInput.js +0 -15
- package/dist/esm/components/Input/TextInput.js +0 -15
- package/dist/esm/components/Input/TextareaInput.js +0 -38
- package/dist/esm/components/Input/index.js +0 -7
- package/dist/esm/components/LabelText/LabelText.js +0 -15
- package/dist/esm/components/LabelText/index.js +0 -1
- package/dist/esm/components/List/List.js +0 -123
- package/dist/esm/components/List/index.js +0 -1
- package/dist/esm/components/Margin/Margin.js +0 -47
- package/dist/esm/components/Margin/index.js +0 -1
- package/dist/esm/components/NavHeader/NavHeader.js +0 -63
- package/dist/esm/components/NavHeader/index.js +0 -1
- package/dist/esm/components/Notification/Notification.js +0 -97
- package/dist/esm/components/Notification/index.js +0 -1
- package/dist/esm/components/Radio/Radio.js +0 -85
- package/dist/esm/components/Radio/RadioField.js +0 -52
- package/dist/esm/components/Radio/index.js +0 -2
- package/dist/esm/components/SkeletonLoading/Skeleton.js +0 -7
- package/dist/esm/components/SkeletonLoading/SkeletonCTA.js +0 -34
- package/dist/esm/components/SkeletonLoading/SkeletonCircle.js +0 -39
- package/dist/esm/components/SkeletonLoading/SkeletonHeading.js +0 -34
- package/dist/esm/components/SkeletonLoading/SkeletonText.js +0 -42
- package/dist/esm/components/SkeletonLoading/index.js +0 -5
- package/dist/esm/components/Stack/Stack.js +0 -46
- package/dist/esm/components/Stack/index.js +0 -1
- package/dist/esm/components/Stretch/Stretch.js +0 -24
- package/dist/esm/components/Stretch/index.js +0 -1
- package/dist/esm/components/SubLabelText/SubLabelText.js +0 -15
- package/dist/esm/components/SubLabelText/index.js +0 -1
- package/dist/esm/components/SummaryList/SummaryList.js +0 -39
- package/dist/esm/components/SummaryList/index.js +0 -1
- package/dist/esm/components/Tabs/Tab.js +0 -45
- package/dist/esm/components/Tabs/TabList.js +0 -48
- package/dist/esm/components/Tabs/TabPanel.js +0 -34
- package/dist/esm/components/Tabs/Tabs.js +0 -69
- package/dist/esm/components/Tabs/index.js +0 -4
- package/dist/esm/components/Text/Text.js +0 -69
- package/dist/esm/components/Text/index.js +0 -1
- package/dist/esm/components/TextField/CurrencyField.js +0 -30
- package/dist/esm/components/TextField/EmailField.js +0 -30
- package/dist/esm/components/TextField/NumberField.js +0 -30
- package/dist/esm/components/TextField/PasswordField.js +0 -30
- package/dist/esm/components/TextField/TelField.js +0 -30
- package/dist/esm/components/TextField/TextField.js +0 -30
- package/dist/esm/components/TextField/TextareaField.js +0 -30
- package/dist/esm/components/TextField/index.js +0 -7
- package/dist/esm/components/TextLink/TextLink.js +0 -49
- package/dist/esm/components/TextLink/index.js +0 -1
- package/dist/esm/components/index.js +0 -27
- 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/index.js +0 -3
- package/dist/esm/providers/IconsProvider.js +0 -65
- package/dist/esm/providers/icons/ArrowDown.js +0 -15
- package/dist/esm/providers/icons/ArrowLeft.js +0 -15
- package/dist/esm/providers/icons/ArrowRight.js +0 -15
- package/dist/esm/providers/icons/ArrowUp.js +0 -15
- package/dist/esm/providers/icons/CaretDown.js +0 -15
- package/dist/esm/providers/icons/CaretLeft.js +0 -15
- package/dist/esm/providers/icons/CaretRight.js +0 -15
- package/dist/esm/providers/icons/CaretUp.js +0 -15
- package/dist/esm/providers/icons/Chart.js +0 -15
- package/dist/esm/providers/icons/Check.js +0 -15
- package/dist/esm/providers/icons/ChevronDown.js +0 -15
- package/dist/esm/providers/icons/ChevronLeft.js +0 -15
- package/dist/esm/providers/icons/ChevronLeftSmall.js +0 -15
- package/dist/esm/providers/icons/ChevronLeftSmallFirst.js +0 -15
- package/dist/esm/providers/icons/ChevronRight.js +0 -15
- package/dist/esm/providers/icons/ChevronRightSmall.js +0 -15
- package/dist/esm/providers/icons/ChevronRightSmallLast.js +0 -15
- package/dist/esm/providers/icons/ChevronUp.js +0 -15
- package/dist/esm/providers/icons/Cross.js +0 -15
- package/dist/esm/providers/icons/Dollar.js +0 -15
- package/dist/esm/providers/icons/Download.js +0 -15
- package/dist/esm/providers/icons/Electricity.js +0 -15
- package/dist/esm/providers/icons/Euro.js +0 -15
- package/dist/esm/providers/icons/Gas.js +0 -16
- package/dist/esm/providers/icons/Help.js +0 -15
- package/dist/esm/providers/icons/Hide.js +0 -15
- package/dist/esm/providers/icons/HidePassword.js +0 -15
- package/dist/esm/providers/icons/Home.js +0 -15
- package/dist/esm/providers/icons/Info.js +0 -15
- package/dist/esm/providers/icons/Link.js +0 -16
- package/dist/esm/providers/icons/Logo.js +0 -15
- package/dist/esm/providers/icons/Minus.js +0 -15
- package/dist/esm/providers/icons/NewWindow.js +0 -15
- package/dist/esm/providers/icons/Payment.js +0 -15
- package/dist/esm/providers/icons/PaymentCard.js +0 -15
- package/dist/esm/providers/icons/Plus.js +0 -15
- package/dist/esm/providers/icons/Pound.js +0 -15
- package/dist/esm/providers/icons/Search.js +0 -15
- package/dist/esm/providers/icons/Show.js +0 -15
- package/dist/esm/providers/icons/ShowPassword.js +0 -15
- package/dist/esm/providers/icons/Usage.js +0 -15
- package/dist/esm/providers/icons/User.js +0 -15
- package/dist/esm/providers/icons/index.js +0 -38
- 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/create-theme.js +0 -503
- package/dist/esm/theme/index.js +0 -8
- package/dist/esm/theme/theme.js +0 -1
- package/dist/esm/utils/index.js +0 -1
- package/dist/esm/utils/utils.js +0 -93
- package/dist/hooks/index.d.ts +0 -2
- package/dist/hooks/index.js +0 -18
- package/dist/hooks/use-breakpoint.d.ts +0 -7
- package/dist/hooks/use-breakpoint.js +0 -16
- package/dist/hooks/use-full-width.d.ts +0 -2
- package/dist/hooks/use-full-width.js +0 -20
- package/dist/index.d.ts +0 -3
- package/dist/index.js +0 -19
- package/dist/providers/IconsProvider.d.ts +0 -8
- package/dist/providers/IconsProvider.js +0 -93
- package/dist/providers/icons/ArrowDown.d.ts +0 -2
- package/dist/providers/icons/ArrowDown.js +0 -22
- package/dist/providers/icons/ArrowLeft.d.ts +0 -2
- package/dist/providers/icons/ArrowLeft.js +0 -22
- package/dist/providers/icons/ArrowRight.d.ts +0 -2
- package/dist/providers/icons/ArrowRight.js +0 -22
- package/dist/providers/icons/ArrowUp.d.ts +0 -2
- package/dist/providers/icons/ArrowUp.js +0 -22
- package/dist/providers/icons/CaretDown.d.ts +0 -2
- package/dist/providers/icons/CaretDown.js +0 -22
- package/dist/providers/icons/CaretLeft.d.ts +0 -2
- package/dist/providers/icons/CaretLeft.js +0 -22
- package/dist/providers/icons/CaretRight.d.ts +0 -2
- package/dist/providers/icons/CaretRight.js +0 -22
- package/dist/providers/icons/CaretUp.d.ts +0 -2
- package/dist/providers/icons/CaretUp.js +0 -22
- package/dist/providers/icons/Chart.d.ts +0 -2
- package/dist/providers/icons/Chart.js +0 -22
- package/dist/providers/icons/Check.d.ts +0 -2
- package/dist/providers/icons/Check.js +0 -22
- package/dist/providers/icons/ChevronDown.d.ts +0 -2
- package/dist/providers/icons/ChevronDown.js +0 -22
- package/dist/providers/icons/ChevronLeft.d.ts +0 -2
- package/dist/providers/icons/ChevronLeft.js +0 -22
- package/dist/providers/icons/ChevronLeftSmall.d.ts +0 -2
- package/dist/providers/icons/ChevronLeftSmall.js +0 -22
- package/dist/providers/icons/ChevronLeftSmallFirst.d.ts +0 -2
- package/dist/providers/icons/ChevronLeftSmallFirst.js +0 -22
- package/dist/providers/icons/ChevronRight.d.ts +0 -2
- package/dist/providers/icons/ChevronRight.js +0 -22
- package/dist/providers/icons/ChevronRightSmall.d.ts +0 -2
- package/dist/providers/icons/ChevronRightSmall.js +0 -22
- package/dist/providers/icons/ChevronRightSmallLast.d.ts +0 -2
- package/dist/providers/icons/ChevronRightSmallLast.js +0 -22
- package/dist/providers/icons/ChevronUp.d.ts +0 -2
- package/dist/providers/icons/ChevronUp.js +0 -22
- package/dist/providers/icons/Cross.d.ts +0 -2
- package/dist/providers/icons/Cross.js +0 -22
- package/dist/providers/icons/Dollar.d.ts +0 -2
- package/dist/providers/icons/Dollar.js +0 -22
- package/dist/providers/icons/Download.d.ts +0 -2
- package/dist/providers/icons/Download.js +0 -22
- package/dist/providers/icons/Electricity.d.ts +0 -2
- package/dist/providers/icons/Electricity.js +0 -22
- package/dist/providers/icons/Euro.d.ts +0 -2
- package/dist/providers/icons/Euro.js +0 -22
- package/dist/providers/icons/Gas.d.ts +0 -2
- package/dist/providers/icons/Gas.js +0 -23
- package/dist/providers/icons/Help.d.ts +0 -2
- package/dist/providers/icons/Help.js +0 -22
- package/dist/providers/icons/Hide.d.ts +0 -2
- package/dist/providers/icons/Hide.js +0 -22
- package/dist/providers/icons/HidePassword.d.ts +0 -2
- package/dist/providers/icons/HidePassword.js +0 -22
- package/dist/providers/icons/Home.d.ts +0 -2
- package/dist/providers/icons/Home.js +0 -22
- package/dist/providers/icons/Info.d.ts +0 -2
- package/dist/providers/icons/Info.js +0 -22
- package/dist/providers/icons/Link.d.ts +0 -2
- package/dist/providers/icons/Link.js +0 -23
- package/dist/providers/icons/Logo.d.ts +0 -2
- package/dist/providers/icons/Logo.js +0 -22
- package/dist/providers/icons/Minus.d.ts +0 -2
- package/dist/providers/icons/Minus.js +0 -22
- package/dist/providers/icons/NewWindow.d.ts +0 -2
- package/dist/providers/icons/NewWindow.js +0 -22
- package/dist/providers/icons/Payment.d.ts +0 -2
- package/dist/providers/icons/Payment.js +0 -22
- package/dist/providers/icons/PaymentCard.d.ts +0 -2
- package/dist/providers/icons/PaymentCard.js +0 -22
- package/dist/providers/icons/Plus.d.ts +0 -2
- package/dist/providers/icons/Plus.js +0 -22
- package/dist/providers/icons/Pound.d.ts +0 -2
- package/dist/providers/icons/Pound.js +0 -22
- package/dist/providers/icons/Search.d.ts +0 -2
- package/dist/providers/icons/Search.js +0 -22
- package/dist/providers/icons/Show.d.ts +0 -2
- package/dist/providers/icons/Show.js +0 -22
- package/dist/providers/icons/ShowPassword.d.ts +0 -2
- package/dist/providers/icons/ShowPassword.js +0 -22
- package/dist/providers/icons/Usage.d.ts +0 -2
- package/dist/providers/icons/Usage.js +0 -22
- package/dist/providers/icons/User.d.ts +0 -2
- package/dist/providers/icons/User.js +0 -22
- package/dist/providers/icons/index.d.ts +0 -38
- package/dist/providers/icons/index.js +0 -54
- package/dist/providers/index.d.ts +0 -2
- package/dist/providers/index.js +0 -18
- package/dist/providers/types.d.ts +0 -4
- package/dist/providers/types.js +0 -2
- package/dist/styled.native.d.ts +0 -6
- package/dist/styled.native.js +0 -33
- package/dist/theme/create-theme.d.ts +0 -18
- package/dist/theme/create-theme.js +0 -510
- package/dist/theme/index.d.ts +0 -5
- package/dist/theme/index.js +0 -26
- package/dist/theme/theme.d.ts +0 -301
- package/dist/theme/theme.js +0 -2
- package/dist/utils/index.d.ts +0 -1
- package/dist/utils/index.js +0 -17
- package/dist/utils/utils.d.ts +0 -15
- package/dist/utils/utils.js +0 -126
package/dist/theme/theme.d.ts
DELETED
|
@@ -1,301 +0,0 @@
|
|
|
1
|
-
import { BadgeVariantName, BadgeVariant } from '../components/Badge/Badge';
|
|
2
|
-
import { CTAVariantName, CTAVariant } from '../components/CTAButton/CTAButton';
|
|
3
|
-
import { NotificationVariant, NotificationVariantName } from '../components/Notification/Notification';
|
|
4
|
-
import { IconName } from '../providers';
|
|
5
|
-
declare type Shadow = {
|
|
6
|
-
color: string;
|
|
7
|
-
offset: string;
|
|
8
|
-
opacity: number;
|
|
9
|
-
radius: string;
|
|
10
|
-
elevation: number;
|
|
11
|
-
};
|
|
12
|
-
declare type FontNames = 'body' | 'small' | 'label' | 'level1' | 'level2' | 'level3' | 'level4' | 'lead';
|
|
13
|
-
export declare type Theme = {
|
|
14
|
-
space: Record<1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12, string>;
|
|
15
|
-
colors: Record<'primary' | 'primaryAlt' | 'primaryContrast' | 'primaryMuted' | 'error' | 'errorAlt' | 'errorContrast' | 'errorMuted' | 'info' | 'infoAlt' | 'infoContrast' | 'infoMuted' | 'warning' | 'warningAlt' | 'warningContrast' | 'warningMuted' | 'success' | 'successAlt' | 'successContrast' | 'successMuted' | 'focus' | 'focusMuted' | 'body' | 'heading' | 'border' | 'borderMuted' | 'canvas' | 'canvasMuted' | 'mission' | 'missionMuted' | 'missionAlt' | 'missionContrast', string> & {
|
|
16
|
-
brand: Record<string, Record<string, string>>;
|
|
17
|
-
};
|
|
18
|
-
fonts: Record<'body' | 'bold' | 'heading', string>;
|
|
19
|
-
lineHeights: Record<'standard', number>;
|
|
20
|
-
fontSizes: string[];
|
|
21
|
-
responsiveFontSizes: Record<FontNames, string[]>;
|
|
22
|
-
responsiveLineHeights: Record<FontNames, string[]>;
|
|
23
|
-
breakpoints: Record<'small' | 'medium' | 'large', number>;
|
|
24
|
-
radii: Record<'small' | 'medium' | 'large', string>;
|
|
25
|
-
shadows: Record<'standard', Shadow>;
|
|
26
|
-
borderWidths: Record<'standard' | 'heavy' | 'heavier', string>;
|
|
27
|
-
fontWeights: Record<'normal' | 'bold' | 'semiBold' | 'heading', number>;
|
|
28
|
-
badge: {
|
|
29
|
-
fontWeight: number;
|
|
30
|
-
fontFamily: string;
|
|
31
|
-
lineHeight: number;
|
|
32
|
-
paddingHorizontal: string;
|
|
33
|
-
borderRadius: string;
|
|
34
|
-
fontSize: string[];
|
|
35
|
-
variants: Record<BadgeVariantName, BadgeVariant>;
|
|
36
|
-
};
|
|
37
|
-
cta: {
|
|
38
|
-
fontSize: string[];
|
|
39
|
-
fontWeight: number;
|
|
40
|
-
fontFamily: string;
|
|
41
|
-
lineHeight: number;
|
|
42
|
-
paddingVertical: string;
|
|
43
|
-
paddingHorizontal: string;
|
|
44
|
-
borderRadius: number | string;
|
|
45
|
-
borderWidth: string;
|
|
46
|
-
iconGap: string;
|
|
47
|
-
minHeight: string;
|
|
48
|
-
variants: Record<CTAVariantName, CTAVariant>;
|
|
49
|
-
};
|
|
50
|
-
text: {
|
|
51
|
-
fontFamily: string;
|
|
52
|
-
fontWeight: number;
|
|
53
|
-
lineHeight: number;
|
|
54
|
-
color: string;
|
|
55
|
-
p: {
|
|
56
|
-
fontSize: string[];
|
|
57
|
-
lineHeight: string[];
|
|
58
|
-
marginTop: string[];
|
|
59
|
-
marginBottom: string[];
|
|
60
|
-
};
|
|
61
|
-
small: {
|
|
62
|
-
fontSize: string[];
|
|
63
|
-
lineHeight: string[];
|
|
64
|
-
};
|
|
65
|
-
strong: {
|
|
66
|
-
fontWeight: number;
|
|
67
|
-
fontFamily: string;
|
|
68
|
-
};
|
|
69
|
-
};
|
|
70
|
-
list: {
|
|
71
|
-
marginTop: string[];
|
|
72
|
-
marginBottom: string[];
|
|
73
|
-
marginLeft: string;
|
|
74
|
-
listItem: {
|
|
75
|
-
fontSize: string[];
|
|
76
|
-
marginVertical: keyof Theme['space'];
|
|
77
|
-
bulletGap: string;
|
|
78
|
-
bulletWidth: string;
|
|
79
|
-
};
|
|
80
|
-
descriptionTerm: {
|
|
81
|
-
fontWeight: number | string;
|
|
82
|
-
fontFamily: string;
|
|
83
|
-
color: string;
|
|
84
|
-
marginTop: string[];
|
|
85
|
-
marginBottom: string[];
|
|
86
|
-
};
|
|
87
|
-
};
|
|
88
|
-
textLink: {
|
|
89
|
-
color: string;
|
|
90
|
-
fontWeight: number;
|
|
91
|
-
};
|
|
92
|
-
heading: {
|
|
93
|
-
fontFamily: string;
|
|
94
|
-
fontWeight: number;
|
|
95
|
-
color: string;
|
|
96
|
-
heading1: {
|
|
97
|
-
fontSize: string[];
|
|
98
|
-
lineHeight: string[];
|
|
99
|
-
marginTop: string[];
|
|
100
|
-
marginBottom: string[];
|
|
101
|
-
fontWeight?: number;
|
|
102
|
-
};
|
|
103
|
-
heading2: {
|
|
104
|
-
fontSize: string[];
|
|
105
|
-
lineHeight: string[];
|
|
106
|
-
marginTop: string[];
|
|
107
|
-
marginBottom: string[];
|
|
108
|
-
fontWeight?: number;
|
|
109
|
-
};
|
|
110
|
-
heading3: {
|
|
111
|
-
fontSize: string[];
|
|
112
|
-
lineHeight: string[];
|
|
113
|
-
marginTop: string[];
|
|
114
|
-
marginBottom: string[];
|
|
115
|
-
fontWeight?: number;
|
|
116
|
-
};
|
|
117
|
-
heading4: {
|
|
118
|
-
fontSize: string[];
|
|
119
|
-
lineHeight: string[];
|
|
120
|
-
marginTop: string[];
|
|
121
|
-
marginBottom: string[];
|
|
122
|
-
fontWeight?: number;
|
|
123
|
-
};
|
|
124
|
-
};
|
|
125
|
-
notification: {
|
|
126
|
-
borderRadius: string;
|
|
127
|
-
borderWidth: string;
|
|
128
|
-
borderColor: string;
|
|
129
|
-
background: string;
|
|
130
|
-
paddingX: string[];
|
|
131
|
-
paddingY: string[];
|
|
132
|
-
variants: Record<NotificationVariantName, NotificationVariant>;
|
|
133
|
-
dismiss: {
|
|
134
|
-
icon: IconName;
|
|
135
|
-
size: string;
|
|
136
|
-
color: string;
|
|
137
|
-
touchSize: string;
|
|
138
|
-
};
|
|
139
|
-
};
|
|
140
|
-
radio: {
|
|
141
|
-
touchSize: string;
|
|
142
|
-
size: string;
|
|
143
|
-
dotSize: string;
|
|
144
|
-
gap: string;
|
|
145
|
-
paddingTop: string;
|
|
146
|
-
borderWidth: string;
|
|
147
|
-
borderColor: string;
|
|
148
|
-
background: string;
|
|
149
|
-
dotColor: string;
|
|
150
|
-
checkedBackground: string;
|
|
151
|
-
errorColor: string;
|
|
152
|
-
};
|
|
153
|
-
checkbox: {
|
|
154
|
-
touchSize: string;
|
|
155
|
-
size: string;
|
|
156
|
-
checkSize: string;
|
|
157
|
-
gap: string;
|
|
158
|
-
paddingTop: string;
|
|
159
|
-
borderWidth: string;
|
|
160
|
-
borderColor: string;
|
|
161
|
-
borderRadius: string;
|
|
162
|
-
background: string;
|
|
163
|
-
checkedBackground: string;
|
|
164
|
-
checkColor: string;
|
|
165
|
-
errorColor: string;
|
|
166
|
-
};
|
|
167
|
-
input: {
|
|
168
|
-
fontFamily: string;
|
|
169
|
-
fontSize: string[];
|
|
170
|
-
color: string;
|
|
171
|
-
lineHeight: number;
|
|
172
|
-
fontWeight: number;
|
|
173
|
-
height: string;
|
|
174
|
-
borderColor: string;
|
|
175
|
-
borderWidth: string;
|
|
176
|
-
background: string;
|
|
177
|
-
borderRadius: string;
|
|
178
|
-
padding: string;
|
|
179
|
-
error: {
|
|
180
|
-
borderWidth: string;
|
|
181
|
-
color: string;
|
|
182
|
-
};
|
|
183
|
-
icon: {
|
|
184
|
-
size: string;
|
|
185
|
-
};
|
|
186
|
-
};
|
|
187
|
-
focusRing: {
|
|
188
|
-
color: string;
|
|
189
|
-
width: string;
|
|
190
|
-
distance: string;
|
|
191
|
-
};
|
|
192
|
-
field: {
|
|
193
|
-
fontFamily: string;
|
|
194
|
-
fontSize: string[];
|
|
195
|
-
lineHeight: number;
|
|
196
|
-
dateWidth: string;
|
|
197
|
-
gap: string;
|
|
198
|
-
error: {
|
|
199
|
-
fontWeight: number;
|
|
200
|
-
fontFamily: string;
|
|
201
|
-
color: string;
|
|
202
|
-
};
|
|
203
|
-
hint: {
|
|
204
|
-
fontWeight: number;
|
|
205
|
-
color: string;
|
|
206
|
-
};
|
|
207
|
-
label: {
|
|
208
|
-
fontWeight: number;
|
|
209
|
-
fontFamily: string;
|
|
210
|
-
color: string;
|
|
211
|
-
};
|
|
212
|
-
subLabel: {
|
|
213
|
-
fontWeight: number;
|
|
214
|
-
color: string;
|
|
215
|
-
};
|
|
216
|
-
legend: {
|
|
217
|
-
marginBottom: string;
|
|
218
|
-
};
|
|
219
|
-
errorIndent: {
|
|
220
|
-
borderWidth: string;
|
|
221
|
-
borderRadius: string;
|
|
222
|
-
};
|
|
223
|
-
};
|
|
224
|
-
card: {
|
|
225
|
-
background: string;
|
|
226
|
-
borderWidth: string;
|
|
227
|
-
borderColor: string;
|
|
228
|
-
padding: string[];
|
|
229
|
-
};
|
|
230
|
-
disclosure: {
|
|
231
|
-
iconGap: string[];
|
|
232
|
-
panelGap: string[];
|
|
233
|
-
};
|
|
234
|
-
grid: {
|
|
235
|
-
maxWidth: string;
|
|
236
|
-
gutter: string[];
|
|
237
|
-
};
|
|
238
|
-
dataTable: {
|
|
239
|
-
borderWidth: string;
|
|
240
|
-
borderRadius: string;
|
|
241
|
-
borderColor: string;
|
|
242
|
-
responsivePadding: {
|
|
243
|
-
vertical: [string, string];
|
|
244
|
-
horizontal: [string, string];
|
|
245
|
-
};
|
|
246
|
-
tableHeader: {
|
|
247
|
-
color: string;
|
|
248
|
-
backgroundColor: string;
|
|
249
|
-
borderWidth: string;
|
|
250
|
-
borderColor: string;
|
|
251
|
-
fontWeight: number;
|
|
252
|
-
fontFamily: string;
|
|
253
|
-
};
|
|
254
|
-
tableCaption: {
|
|
255
|
-
color: string;
|
|
256
|
-
fontWeight: number;
|
|
257
|
-
fontFamily: string;
|
|
258
|
-
};
|
|
259
|
-
tableCell: {
|
|
260
|
-
color: string;
|
|
261
|
-
};
|
|
262
|
-
tableRow: {
|
|
263
|
-
backgroundColor: string;
|
|
264
|
-
stripeColor: string;
|
|
265
|
-
};
|
|
266
|
-
};
|
|
267
|
-
accordion: {
|
|
268
|
-
header: {
|
|
269
|
-
color: string;
|
|
270
|
-
iconSize: string;
|
|
271
|
-
iconGap: string;
|
|
272
|
-
paddingVertical: string[];
|
|
273
|
-
};
|
|
274
|
-
};
|
|
275
|
-
tabs: {
|
|
276
|
-
tab: {
|
|
277
|
-
fontSize: string[];
|
|
278
|
-
fontWeight: number;
|
|
279
|
-
fontFamily: string;
|
|
280
|
-
lineHeight: number;
|
|
281
|
-
borderTopWidth: string;
|
|
282
|
-
borderBottomWidth: string;
|
|
283
|
-
borderColor: string;
|
|
284
|
-
paddingVertical: string[];
|
|
285
|
-
paddingHorizontal: string[];
|
|
286
|
-
active: {
|
|
287
|
-
backgroundColor: string;
|
|
288
|
-
foregroundColor: string;
|
|
289
|
-
borderColor: string;
|
|
290
|
-
};
|
|
291
|
-
inactive: {
|
|
292
|
-
backgroundColor: string;
|
|
293
|
-
foregroundColor: string;
|
|
294
|
-
};
|
|
295
|
-
hover: {
|
|
296
|
-
foregroundColor: string;
|
|
297
|
-
};
|
|
298
|
-
};
|
|
299
|
-
};
|
|
300
|
-
};
|
|
301
|
-
export {};
|
package/dist/theme/theme.js
DELETED
package/dist/utils/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './utils';
|
package/dist/utils/index.js
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./utils"), exports);
|
package/dist/utils/utils.d.ts
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import React, { Ref, ReactNode, ComponentType } from 'react';
|
|
2
|
-
import { ViewProps, View } from 'react-native';
|
|
3
|
-
import { BreakpointNames, Breakpoints } from '../hooks';
|
|
4
|
-
declare function mergeRefs<T>(ref1: undefined | Ref<T>, ref2: undefined | Ref<T>): (element: T) => void;
|
|
5
|
-
declare function getText(children: ReactNode): string;
|
|
6
|
-
declare function pxToNumber(px: string): number;
|
|
7
|
-
declare function styledComponentWithBreakpoints<T = ViewProps, C = View>(Component: ComponentType<T>): React.ForwardRefExoticComponent<React.PropsWithoutRef<Omit<T, BreakpointNames>> & React.RefAttributes<C>>;
|
|
8
|
-
declare function responsiveStyle(property: string, value: any, breakpoints: Breakpoints, formatter?: (v: any) => string): any;
|
|
9
|
-
declare function getErrorMessage(id: string, errors: Array<{
|
|
10
|
-
id: string;
|
|
11
|
-
message: ReactNode;
|
|
12
|
-
}>): null | ReactNode;
|
|
13
|
-
declare function callAll(...fns: Array<Function | undefined>): (...args: any[]) => void;
|
|
14
|
-
declare function filterChildrenByType(children: ReactNode, type: ComponentType): React.ReactElement<any, string | React.JSXElementConstructor<any>>[];
|
|
15
|
-
export { styledComponentWithBreakpoints, responsiveStyle, pxToNumber, mergeRefs, getText, getErrorMessage, callAll, filterChildrenByType, };
|
package/dist/utils/utils.js
DELETED
|
@@ -1,126 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __assign = (this && this.__assign) || function () {
|
|
3
|
-
__assign = Object.assign || function(t) {
|
|
4
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
-
s = arguments[i];
|
|
6
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
-
t[p] = s[p];
|
|
8
|
-
}
|
|
9
|
-
return t;
|
|
10
|
-
};
|
|
11
|
-
return __assign.apply(this, arguments);
|
|
12
|
-
};
|
|
13
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
14
|
-
if (k2 === undefined) k2 = k;
|
|
15
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
16
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
17
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
18
|
-
}
|
|
19
|
-
Object.defineProperty(o, k2, desc);
|
|
20
|
-
}) : (function(o, m, k, k2) {
|
|
21
|
-
if (k2 === undefined) k2 = k;
|
|
22
|
-
o[k2] = m[k];
|
|
23
|
-
}));
|
|
24
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
25
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
26
|
-
}) : function(o, v) {
|
|
27
|
-
o["default"] = v;
|
|
28
|
-
});
|
|
29
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
30
|
-
if (mod && mod.__esModule) return mod;
|
|
31
|
-
var result = {};
|
|
32
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
33
|
-
__setModuleDefault(result, mod);
|
|
34
|
-
return result;
|
|
35
|
-
};
|
|
36
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37
|
-
exports.filterChildrenByType = exports.callAll = exports.getErrorMessage = exports.getText = exports.mergeRefs = exports.pxToNumber = exports.responsiveStyle = exports.styledComponentWithBreakpoints = void 0;
|
|
38
|
-
var react_1 = __importStar(require("react"));
|
|
39
|
-
var hooks_1 = require("../hooks");
|
|
40
|
-
function mergeRefs(ref1, ref2) {
|
|
41
|
-
return function (element) {
|
|
42
|
-
assignRef(ref1, element);
|
|
43
|
-
assignRef(ref2, element);
|
|
44
|
-
};
|
|
45
|
-
}
|
|
46
|
-
exports.mergeRefs = mergeRefs;
|
|
47
|
-
function assignRef(ref, element) {
|
|
48
|
-
if (typeof ref === 'function') {
|
|
49
|
-
ref(element);
|
|
50
|
-
}
|
|
51
|
-
else if (ref) {
|
|
52
|
-
// @ts-ignore
|
|
53
|
-
ref.current = element;
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
function getText(children) {
|
|
57
|
-
if (!Boolean(children) && typeof children !== 'number') {
|
|
58
|
-
return '';
|
|
59
|
-
}
|
|
60
|
-
if (typeof children === 'object' && children.props) {
|
|
61
|
-
return react_1.Children.map(children.props.children, function (child) {
|
|
62
|
-
return getText(child);
|
|
63
|
-
}).join('');
|
|
64
|
-
}
|
|
65
|
-
return String(children);
|
|
66
|
-
}
|
|
67
|
-
exports.getText = getText;
|
|
68
|
-
function pxToNumber(px) {
|
|
69
|
-
return parseFloat(px);
|
|
70
|
-
}
|
|
71
|
-
exports.pxToNumber = pxToNumber;
|
|
72
|
-
function styledComponentWithBreakpoints(Component) {
|
|
73
|
-
return (0, react_1.forwardRef)(function (props, ref) {
|
|
74
|
-
var breakpoints = (0, hooks_1.useBreakpoint)();
|
|
75
|
-
// @ts-ignore.
|
|
76
|
-
return react_1.default.createElement(Component, __assign({}, props, breakpoints, { ref: ref }));
|
|
77
|
-
});
|
|
78
|
-
}
|
|
79
|
-
exports.styledComponentWithBreakpoints = styledComponentWithBreakpoints;
|
|
80
|
-
function responsiveStyle(property, value, breakpoints, formatter) {
|
|
81
|
-
var values;
|
|
82
|
-
if (Array.isArray(value)) {
|
|
83
|
-
values = value;
|
|
84
|
-
}
|
|
85
|
-
else {
|
|
86
|
-
values = [value];
|
|
87
|
-
}
|
|
88
|
-
var ascMediaQueries = [
|
|
89
|
-
breakpoints.smallAndUp,
|
|
90
|
-
breakpoints.mediumAndUp,
|
|
91
|
-
breakpoints.largeAndUp,
|
|
92
|
-
];
|
|
93
|
-
var base = values[0], rest = values.slice(1);
|
|
94
|
-
return rest.reduce(function (acc, val, i) {
|
|
95
|
-
return ascMediaQueries[i]
|
|
96
|
-
? "".concat(property, ": ").concat(formatter ? formatter(val) : val, ";")
|
|
97
|
-
: acc;
|
|
98
|
-
}, "".concat(property, ": ").concat(formatter ? formatter(base) : base, ";"));
|
|
99
|
-
}
|
|
100
|
-
exports.responsiveStyle = responsiveStyle;
|
|
101
|
-
function getErrorMessage(id, errors) {
|
|
102
|
-
return (errors.find(function (_a) {
|
|
103
|
-
var errorId = _a.id;
|
|
104
|
-
return id === errorId;
|
|
105
|
-
}) || { message: null })
|
|
106
|
-
.message;
|
|
107
|
-
}
|
|
108
|
-
exports.getErrorMessage = getErrorMessage;
|
|
109
|
-
function callAll() {
|
|
110
|
-
var fns = [];
|
|
111
|
-
for (var _i = 0; _i < arguments.length; _i++) {
|
|
112
|
-
fns[_i] = arguments[_i];
|
|
113
|
-
}
|
|
114
|
-
return function () {
|
|
115
|
-
var args = [];
|
|
116
|
-
for (var _i = 0; _i < arguments.length; _i++) {
|
|
117
|
-
args[_i] = arguments[_i];
|
|
118
|
-
}
|
|
119
|
-
return fns.forEach(function (fn) { return fn && fn.apply(void 0, args); });
|
|
120
|
-
};
|
|
121
|
-
}
|
|
122
|
-
exports.callAll = callAll;
|
|
123
|
-
function filterChildrenByType(children, type) {
|
|
124
|
-
return react_1.Children.toArray(children).filter(function (child) { return (child === null || child === void 0 ? void 0 : child.type) === type; });
|
|
125
|
-
}
|
|
126
|
-
exports.filterChildrenByType = filterChildrenByType;
|