@qiwi/pijma-mobile 1.149.3 → 1.150.2
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/lib/{es5 → dts}/actions/Actions.d.ts +0 -0
- package/lib/{es6 → dts}/actions/index.d.ts +0 -0
- package/lib/{es5 → dts}/alert/Alert.d.ts +0 -0
- package/lib/{es6 → dts}/alert/index.d.ts +0 -0
- package/lib/{es5 → dts}/block-accordion/BlockAccordion.d.ts +0 -0
- package/lib/{es6 → dts}/block-accordion/index.d.ts +0 -0
- package/lib/{es5 → dts}/block-content/BlockContent.d.ts +0 -0
- package/lib/{es6 → dts}/block-content/index.d.ts +0 -0
- package/lib/{es5 → dts}/block-tabs/BlockTabs.d.ts +0 -0
- package/lib/{es6 → dts}/block-tabs/index.d.ts +0 -0
- package/lib/{es6 → dts}/breadcrumbs/Breadcrumbs.d.ts +0 -0
- package/lib/{es6 → dts}/breadcrumbs/index.d.ts +0 -0
- package/lib/{es5 → dts}/button/Button.d.ts +0 -0
- package/lib/{es6 → dts}/button/index.d.ts +0 -0
- package/lib/{es6 → dts}/checkbox/Checkbox.d.ts +0 -0
- package/lib/{es5 → dts}/checkbox/CheckboxProps.d.ts +0 -0
- package/lib/{es6 → dts}/checkbox/index.d.ts +0 -0
- package/lib/{es6 → dts}/checkbox-field/CheckboxField.d.ts +0 -0
- package/lib/{es5 → dts}/checkbox-field/CheckboxFieldOptionModel.d.ts +0 -0
- package/lib/{es5 → dts}/checkbox-field/CheckboxFieldProps.d.ts +0 -0
- package/lib/{es6 → dts}/checkbox-field/index.d.ts +0 -0
- package/lib/{es6 → dts}/code-field/CodeField.d.ts +0 -0
- package/lib/{es5 → dts}/code-field/CodeFieldProps.d.ts +0 -0
- package/lib/{es6 → dts}/code-field/index.d.ts +0 -0
- package/lib/{es6 → dts}/content-suggest/ContentSuggest.d.ts +1 -1
- package/lib/{es5 → dts}/content-suggest/ContentSuggestOptionModel.d.ts +0 -0
- package/lib/{es6 → dts}/content-suggest/ContentSuggestProps.d.ts +0 -0
- package/lib/{es6 → dts}/content-suggest/index.d.ts +0 -0
- package/lib/{es5 → dts}/drop-up/DropUp.d.ts +0 -0
- package/lib/{es6 → dts}/drop-up/index.d.ts +0 -0
- package/lib/{es5 → dts}/footer-app/FooterApp.d.ts +0 -0
- package/lib/{es6 → dts}/footer-app/index.d.ts +0 -0
- package/lib/{es6 → dts}/footer-nav/FooterNav.d.ts +0 -0
- package/lib/{es6 → dts}/footer-nav/index.d.ts +0 -0
- package/lib/{es5 → dts}/footer-out/FooterOut.d.ts +0 -0
- package/lib/{es6 → dts}/footer-out/index.d.ts +0 -0
- package/lib/{es5 → dts}/glossary/Glossary.d.ts +0 -0
- package/lib/{es6 → dts}/glossary/index.d.ts +0 -0
- package/lib/{es5 → dts}/header/Header.d.ts +0 -0
- package/lib/{es5 → dts}/header/HeaderMenu.d.ts +0 -0
- package/lib/{es6 → dts}/header/index.d.ts +0 -0
- package/lib/{es6 → dts}/index.d.ts +0 -0
- package/lib/{es5 → dts}/input-modal/InputModal.d.ts +0 -0
- package/lib/{es6 → dts}/input-modal/index.d.ts +0 -0
- package/lib/{es5 → dts}/link/BlockLink.d.ts +0 -0
- package/lib/{es5 → dts}/link/FileLink.d.ts +0 -0
- package/lib/{es5 → dts}/link/Link.d.ts +0 -0
- package/lib/{es5 → dts}/link/SectionLink.d.ts +0 -0
- package/lib/{es6 → dts}/link/index.d.ts +0 -0
- package/lib/{es5 → dts}/list/List.d.ts +0 -0
- package/lib/{es6 → dts}/list/index.d.ts +0 -0
- package/lib/{es5 → dts}/logo-block-link/LogoBlockLink.d.ts +0 -0
- package/lib/{es6 → dts}/logo-block-link/index.d.ts +0 -0
- package/lib/{es5 → dts}/logo-link/LogoLink.d.ts +0 -0
- package/lib/{es6 → dts}/logo-link/index.d.ts +0 -0
- package/lib/{es5 → dts}/markdown/Markdown.d.ts +0 -0
- package/lib/{es6 → dts}/markdown/index.d.ts +0 -0
- package/lib/{es5 → dts}/menu/MenuCaption.d.ts +0 -0
- package/lib/{es5 → dts}/menu/MenuContainer.d.ts +0 -0
- package/lib/{es5 → dts}/menu/MenuItem.d.ts +0 -0
- package/lib/{es5 → dts}/menu/MenuLink.d.ts +0 -0
- package/lib/{es6 → dts}/menu/index.d.ts +0 -0
- package/lib/{es5 → dts}/modal/SimpleModal.d.ts +0 -0
- package/lib/{es6 → dts}/modal/index.d.ts +0 -0
- package/lib/{es5 → dts}/nav-link/NavLink.d.ts +0 -0
- package/lib/{es6 → dts}/nav-link/index.d.ts +0 -0
- package/lib/{es5 → dts}/notice/Notice.d.ts +0 -0
- package/lib/{es6 → dts}/notice/index.d.ts +0 -0
- package/lib/{es5 → dts}/oops/Oops.d.ts +0 -0
- package/lib/{es6 → dts}/oops/index.d.ts +0 -0
- package/lib/{es5 → dts}/pagination/Pagination.d.ts +0 -0
- package/lib/{es5 → dts}/pagination/PaginationLink.d.ts +0 -0
- package/lib/{es6 → dts}/pagination/index.d.ts +0 -0
- package/lib/{es6 → dts}/password-field/PasswordField.d.ts +0 -0
- package/lib/{es5 → dts}/password-field/PasswordFieldProps.d.ts +0 -0
- package/lib/{es6 → dts}/password-field/index.d.ts +0 -0
- package/lib/{es6 → dts}/phone-field/PhoneField.d.ts +0 -0
- package/lib/{es5 → dts}/phone-field/PhoneFieldProps.d.ts +0 -0
- package/lib/{es6 → dts}/phone-field/index.d.ts +0 -0
- package/lib/{es5 → dts}/progress-bar/ProgressBar.d.ts +0 -0
- package/lib/{es6 → dts}/progress-bar/index.d.ts +0 -0
- package/lib/{es6 → dts}/radio-field/RadioField.d.ts +0 -0
- package/lib/{es5 → dts}/radio-field/RadioFieldOptionModel.d.ts +0 -0
- package/lib/{es5 → dts}/radio-field/RadioFieldProps.d.ts +0 -0
- package/lib/{es6 → dts}/radio-field/index.d.ts +0 -0
- package/lib/{es5 → dts}/rating/Rating.d.ts +0 -0
- package/lib/{es6 → dts}/rating/index.d.ts +0 -0
- package/lib/{es5 → dts}/select-field/SelectField.d.ts +0 -0
- package/lib/{es6 → dts}/select-field/index.d.ts +0 -0
- package/lib/{es5 → dts}/status/Status.d.ts +0 -0
- package/lib/{es6 → dts}/status/index.d.ts +0 -0
- package/lib/{es6 → dts}/suggest-field/SuggestField.d.ts +1 -1
- package/lib/{es5 → dts}/suggest-field/SuggestFieldOptionModel.d.ts +0 -0
- package/lib/{es6 → dts}/suggest-field/SuggestFieldProps.d.ts +0 -0
- package/lib/{es6 → dts}/suggest-field/index.d.ts +0 -0
- package/lib/{es6 → dts}/switch/Switch.d.ts +0 -0
- package/lib/{es5 → dts}/switch/SwitchProps.d.ts +0 -0
- package/lib/{es6 → dts}/switch/index.d.ts +0 -0
- package/lib/{es6 → dts}/switch-field/SwitchField.d.ts +0 -0
- package/lib/{es5 → dts}/switch-field/SwitchFieldOptionModel.d.ts +0 -0
- package/lib/{es5 → dts}/switch-field/SwitchFieldProps.d.ts +0 -0
- package/lib/{es6 → dts}/switch-field/index.d.ts +0 -0
- package/lib/{es5 → dts}/tabs/Tabs.d.ts +0 -0
- package/lib/{es6 → dts}/tabs/index.d.ts +0 -0
- package/lib/{es5 → dts}/text-area-field/TextAreaField.d.ts +0 -0
- package/lib/{es6 → dts}/text-area-field/index.d.ts +0 -0
- package/lib/{es6 → dts}/text-field/TextField.d.ts +0 -0
- package/lib/{es5 → dts}/text-field/TextFieldProps.d.ts +0 -0
- package/lib/{es6 → dts}/text-field/index.d.ts +0 -0
- package/lib/{es5 → dts}/typography/Caption.d.ts +0 -0
- package/lib/{es5 → dts}/typography/Heading.d.ts +0 -0
- package/lib/{es5 → dts}/typography/Paragraph.d.ts +0 -0
- package/lib/{es5 → dts}/typography/Text.d.ts +0 -0
- package/lib/{es5 → dts}/typography/Title.d.ts +0 -0
- package/lib/{es6 → dts}/typography/index.d.ts +0 -0
- package/lib/es5/actions/Actions.js +29 -10
- package/lib/es5/actions/index.js +5 -3
- package/lib/es5/alert/Alert.js +79 -31
- package/lib/es5/alert/index.js +5 -3
- package/lib/es5/block-accordion/BlockAccordion.js +80 -18
- package/lib/es5/block-accordion/index.js +5 -3
- package/lib/es5/block-content/BlockContent.js +23 -13
- package/lib/es5/block-content/index.js +5 -3
- package/lib/es5/block-tabs/BlockTabs.js +174 -43
- package/lib/es5/block-tabs/index.js +5 -3
- package/lib/es5/breadcrumbs/Breadcrumbs.js +47 -17
- package/lib/es5/breadcrumbs/index.js +5 -3
- package/lib/es5/button/Button.js +150 -68
- package/lib/es5/button/index.js +5 -3
- package/lib/es5/checkbox/Checkbox.js +47 -9
- package/lib/es5/checkbox/CheckboxProps.js +3 -1
- package/lib/es5/checkbox/index.js +11 -5
- package/lib/es5/checkbox-field/CheckboxField.js +104 -14
- package/lib/es5/checkbox-field/CheckboxFieldOptionModel.js +3 -1
- package/lib/es5/checkbox-field/CheckboxFieldProps.js +3 -1
- package/lib/es5/checkbox-field/index.js +11 -5
- package/lib/es5/code-field/CodeField.js +119 -31
- package/lib/es5/code-field/CodeFieldProps.js +3 -1
- package/lib/es5/code-field/index.js +6 -4
- package/lib/es5/content-suggest/ContentSuggest.js +176 -39
- package/lib/es5/content-suggest/ContentSuggestOptionModel.js +3 -1
- package/lib/es5/content-suggest/ContentSuggestProps.js +3 -1
- package/lib/es5/content-suggest/index.js +5 -3
- package/lib/es5/drop-up/DropUp.js +170 -63
- package/lib/es5/drop-up/index.js +5 -3
- package/lib/es5/footer-app/FooterApp.js +67 -13
- package/lib/es5/footer-app/index.js +5 -3
- package/lib/es5/footer-nav/FooterNav.js +46 -16
- package/lib/es5/footer-nav/index.js +5 -3
- package/lib/es5/footer-out/FooterOut.js +85 -24
- package/lib/es5/footer-out/index.js +5 -3
- package/lib/es5/glossary/Glossary.js +95 -23
- package/lib/es5/glossary/index.js +5 -3
- package/lib/es5/header/Header.js +38 -12
- package/lib/es5/header/HeaderMenu.js +147 -61
- package/lib/es5/header/index.js +6 -4
- package/lib/es5/index.js +60 -50
- package/lib/es5/input-modal/InputModal.js +117 -31
- package/lib/es5/input-modal/index.js +11 -5
- package/lib/es5/link/BlockLink.js +52 -14
- package/lib/es5/link/FileLink.js +67 -17
- package/lib/es5/link/Link.js +61 -26
- package/lib/es5/link/SectionLink.js +54 -14
- package/lib/es5/link/index.js +8 -6
- package/lib/es5/list/List.js +136 -32
- package/lib/es5/list/index.js +5 -3
- package/lib/es5/logo-block-link/LogoBlockLink.js +227 -44
- package/lib/es5/logo-block-link/index.js +5 -3
- package/lib/es5/logo-link/LogoLink.js +114 -25
- package/lib/es5/logo-link/index.js +5 -3
- package/lib/es5/markdown/Markdown.js +159 -87
- package/lib/es5/markdown/index.js +5 -3
- package/lib/es5/menu/MenuCaption.js +24 -12
- package/lib/es5/menu/MenuContainer.js +20 -10
- package/lib/es5/menu/MenuItem.js +128 -25
- package/lib/es5/menu/MenuLink.js +60 -12
- package/lib/es5/menu/index.js +8 -6
- package/lib/es5/modal/SimpleModal.js +117 -39
- package/lib/es5/modal/index.js +11 -5
- package/lib/es5/nav-link/NavLink.js +54 -9
- package/lib/es5/nav-link/index.js +5 -3
- package/lib/es5/notice/Notice.js +41 -16
- package/lib/es5/notice/index.js +5 -3
- package/lib/es5/oops/Oops.js +71 -24
- package/lib/es5/oops/index.js +5 -3
- package/lib/es5/pagination/Pagination.js +84 -23
- package/lib/es5/pagination/PaginationLink.js +56 -15
- package/lib/es5/pagination/index.js +6 -4
- package/lib/es5/password-field/PasswordField.js +66 -10
- package/lib/es5/password-field/PasswordFieldProps.js +3 -1
- package/lib/es5/password-field/index.js +6 -4
- package/lib/es5/phone-field/PhoneField.js +147 -30
- package/lib/es5/phone-field/PhoneFieldProps.js +3 -1
- package/lib/es5/phone-field/index.js +6 -4
- package/lib/es5/progress-bar/ProgressBar.js +34 -11
- package/lib/es5/progress-bar/index.js +5 -3
- package/lib/es5/radio-field/RadioField.js +105 -14
- package/lib/es5/radio-field/RadioFieldOptionModel.js +3 -1
- package/lib/es5/radio-field/RadioFieldProps.js +3 -1
- package/lib/es5/radio-field/index.js +11 -5
- package/lib/es5/rating/Rating.js +59 -17
- package/lib/es5/rating/index.js +5 -3
- package/lib/es5/select-field/SelectField.js +115 -21
- package/lib/es5/select-field/index.js +5 -3
- package/lib/es5/status/Status.js +53 -16
- package/lib/es5/status/index.js +5 -3
- package/lib/es5/suggest-field/SuggestField.js +188 -42
- package/lib/es5/suggest-field/SuggestFieldOptionModel.js +3 -1
- package/lib/es5/suggest-field/SuggestFieldProps.js +3 -1
- package/lib/es5/suggest-field/index.js +5 -3
- package/lib/es5/switch/Switch.js +83 -15
- package/lib/es5/switch/SwitchProps.js +3 -1
- package/lib/es5/switch/index.js +5 -3
- package/lib/es5/switch-field/SwitchField.js +114 -16
- package/lib/es5/switch-field/SwitchFieldOptionModel.js +3 -1
- package/lib/es5/switch-field/SwitchFieldProps.js +3 -1
- package/lib/es5/switch-field/index.js +11 -5
- package/lib/es5/tabs/Tabs.js +111 -32
- package/lib/es5/tabs/index.js +5 -3
- package/lib/es5/text-area-field/TextAreaField.js +54 -18
- package/lib/es5/text-area-field/index.js +5 -3
- package/lib/es5/text-field/TextField.js +65 -10
- package/lib/es5/text-field/TextFieldProps.js +3 -1
- package/lib/es5/text-field/index.js +6 -4
- package/lib/es5/typography/Caption.js +47 -16
- package/lib/es5/typography/Heading.js +61 -28
- package/lib/es5/typography/Paragraph.js +61 -28
- package/lib/es5/typography/Text.js +57 -30
- package/lib/es5/typography/Title.js +54 -25
- package/lib/es5/typography/index.js +9 -7
- package/lib/es6/actions/Actions.js +18 -19
- package/lib/es6/actions/index.js +1 -2
- package/lib/es6/alert/Alert.js +64 -62
- package/lib/es6/alert/index.js +1 -2
- package/lib/es6/block-accordion/BlockAccordion.js +63 -58
- package/lib/es6/block-accordion/index.js +1 -2
- package/lib/es6/block-content/BlockContent.js +11 -14
- package/lib/es6/block-content/index.js +1 -2
- package/lib/es6/block-tabs/BlockTabs.js +157 -139
- package/lib/es6/block-tabs/index.js +1 -2
- package/lib/es6/breadcrumbs/Breadcrumbs.js +34 -40
- package/lib/es6/breadcrumbs/index.js +1 -2
- package/lib/es6/button/Button.js +147 -148
- package/lib/es6/button/index.js +1 -2
- package/lib/es6/checkbox/Checkbox.js +30 -35
- package/lib/es6/checkbox/CheckboxProps.js +1 -1
- package/lib/es6/checkbox/index.js +1 -2
- package/lib/es6/checkbox-field/CheckboxField.js +84 -81
- package/lib/es6/checkbox-field/CheckboxFieldOptionModel.js +1 -1
- package/lib/es6/checkbox-field/CheckboxFieldProps.js +1 -1
- package/lib/es6/checkbox-field/index.js +1 -2
- package/lib/es6/code-field/CodeField.js +85 -111
- package/lib/es6/code-field/CodeFieldProps.js +1 -1
- package/lib/es6/code-field/index.js +2 -3
- package/lib/es6/content-suggest/ContentSuggest.js +147 -144
- package/lib/es6/content-suggest/ContentSuggestOptionModel.js +1 -1
- package/lib/es6/content-suggest/ContentSuggestProps.js +1 -1
- package/lib/es6/content-suggest/index.js +1 -2
- package/lib/es6/drop-up/DropUp.js +150 -147
- package/lib/es6/drop-up/index.js +1 -2
- package/lib/es6/footer-app/FooterApp.js +50 -64
- package/lib/es6/footer-app/index.js +1 -2
- package/lib/es6/footer-nav/FooterNav.js +31 -42
- package/lib/es6/footer-nav/index.js +1 -2
- package/lib/es6/footer-out/FooterOut.js +69 -89
- package/lib/es6/footer-out/index.js +1 -2
- package/lib/es6/glossary/Glossary.js +75 -59
- package/lib/es6/glossary/index.js +1 -2
- package/lib/es6/header/Header.js +26 -28
- package/lib/es6/header/HeaderMenu.js +123 -131
- package/lib/es6/header/index.js +2 -3
- package/lib/es6/index.js +45 -46
- package/lib/es6/input-modal/InputModal.js +104 -116
- package/lib/es6/input-modal/index.js +1 -2
- package/lib/es6/link/BlockLink.js +37 -42
- package/lib/es6/link/FileLink.js +53 -47
- package/lib/es6/link/Link.js +61 -61
- package/lib/es6/link/SectionLink.js +39 -44
- package/lib/es6/link/index.js +4 -5
- package/lib/es6/list/List.js +138 -117
- package/lib/es6/list/index.js +1 -2
- package/lib/es6/logo-block-link/LogoBlockLink.js +203 -195
- package/lib/es6/logo-block-link/index.js +1 -2
- package/lib/es6/logo-link/LogoLink.js +94 -108
- package/lib/es6/logo-link/index.js +1 -2
- package/lib/es6/markdown/Markdown.js +133 -126
- package/lib/es6/markdown/index.js +1 -2
- package/lib/es6/menu/MenuCaption.js +12 -9
- package/lib/es6/menu/MenuContainer.js +8 -7
- package/lib/es6/menu/MenuItem.js +103 -141
- package/lib/es6/menu/MenuLink.js +46 -46
- package/lib/es6/menu/index.js +4 -5
- package/lib/es6/modal/SimpleModal.js +107 -123
- package/lib/es6/modal/index.js +1 -2
- package/lib/es6/nav-link/NavLink.js +41 -41
- package/lib/es6/nav-link/index.js +1 -2
- package/lib/es6/notice/Notice.js +29 -18
- package/lib/es6/notice/index.js +1 -2
- package/lib/es6/oops/Oops.js +59 -54
- package/lib/es6/oops/index.js +1 -2
- package/lib/es6/pagination/Pagination.js +61 -65
- package/lib/es6/pagination/PaginationLink.js +41 -40
- package/lib/es6/pagination/index.js +2 -3
- package/lib/es6/password-field/PasswordField.js +52 -58
- package/lib/es6/password-field/PasswordFieldProps.js +1 -1
- package/lib/es6/password-field/index.js +2 -3
- package/lib/es6/phone-field/PhoneField.js +123 -143
- package/lib/es6/phone-field/PhoneFieldProps.js +1 -1
- package/lib/es6/phone-field/index.js +2 -3
- package/lib/es6/progress-bar/ProgressBar.js +22 -25
- package/lib/es6/progress-bar/index.js +1 -2
- package/lib/es6/radio-field/RadioField.js +85 -82
- package/lib/es6/radio-field/RadioFieldOptionModel.js +1 -1
- package/lib/es6/radio-field/RadioFieldProps.js +1 -1
- package/lib/es6/radio-field/index.js +1 -2
- package/lib/es6/rating/Rating.js +45 -50
- package/lib/es6/rating/index.js +1 -2
- package/lib/es6/select-field/SelectField.js +96 -99
- package/lib/es6/select-field/index.js +1 -2
- package/lib/es6/status/Status.js +41 -39
- package/lib/es6/status/index.js +1 -2
- package/lib/es6/suggest-field/SuggestField.js +158 -159
- package/lib/es6/suggest-field/SuggestFieldOptionModel.js +1 -1
- package/lib/es6/suggest-field/SuggestFieldProps.js +1 -1
- package/lib/es6/suggest-field/index.js +1 -2
- package/lib/es6/switch/Switch.js +68 -70
- package/lib/es6/switch/SwitchProps.js +1 -1
- package/lib/es6/switch/index.js +1 -2
- package/lib/es6/switch-field/SwitchField.js +94 -91
- package/lib/es6/switch-field/SwitchFieldOptionModel.js +1 -1
- package/lib/es6/switch-field/SwitchFieldProps.js +1 -1
- package/lib/es6/switch-field/index.js +1 -2
- package/lib/es6/tabs/Tabs.js +92 -91
- package/lib/es6/tabs/index.js +1 -2
- package/lib/es6/text-area-field/TextAreaField.js +39 -43
- package/lib/es6/text-area-field/index.js +1 -2
- package/lib/es6/text-field/TextField.js +50 -54
- package/lib/es6/text-field/TextFieldProps.js +1 -1
- package/lib/es6/text-field/index.js +2 -3
- package/lib/es6/typography/Caption.js +34 -39
- package/lib/es6/typography/Heading.js +62 -68
- package/lib/es6/typography/Paragraph.js +62 -70
- package/lib/es6/typography/Text.js +59 -72
- package/lib/es6/typography/Title.js +46 -53
- package/lib/es6/typography/index.js +5 -6
- package/package.json +11 -14
- package/lib/es5/actions/index.d.ts +0 -1
- package/lib/es5/alert/index.d.ts +0 -1
- package/lib/es5/block-accordion/index.d.ts +0 -1
- package/lib/es5/block-content/index.d.ts +0 -1
- package/lib/es5/block-tabs/index.d.ts +0 -1
- package/lib/es5/breadcrumbs/Breadcrumbs.d.ts +0 -7
- package/lib/es5/breadcrumbs/index.d.ts +0 -1
- package/lib/es5/button/index.d.ts +0 -1
- package/lib/es5/checkbox/Checkbox.d.ts +0 -4
- package/lib/es5/checkbox/index.d.ts +0 -2
- package/lib/es5/checkbox-field/CheckboxField.d.ts +0 -5
- package/lib/es5/checkbox-field/index.d.ts +0 -2
- package/lib/es5/code-field/CodeField.d.ts +0 -3
- package/lib/es5/code-field/index.d.ts +0 -2
- package/lib/es5/content-suggest/ContentSuggest.d.ts +0 -10
- package/lib/es5/content-suggest/ContentSuggestProps.d.ts +0 -24
- package/lib/es5/content-suggest/index.d.ts +0 -1
- package/lib/es5/drop-up/index.d.ts +0 -1
- package/lib/es5/footer-app/index.d.ts +0 -1
- package/lib/es5/footer-nav/FooterNav.d.ts +0 -7
- package/lib/es5/footer-nav/index.d.ts +0 -1
- package/lib/es5/footer-out/index.d.ts +0 -1
- package/lib/es5/glossary/index.d.ts +0 -1
- package/lib/es5/header/index.d.ts +0 -2
- package/lib/es5/index.d.ts +0 -45
- package/lib/es5/input-modal/index.d.ts +0 -2
- package/lib/es5/link/index.d.ts +0 -4
- package/lib/es5/list/index.d.ts +0 -1
- package/lib/es5/logo-block-link/index.d.ts +0 -1
- package/lib/es5/logo-link/index.d.ts +0 -1
- package/lib/es5/markdown/index.d.ts +0 -1
- package/lib/es5/menu/index.d.ts +0 -4
- package/lib/es5/modal/index.d.ts +0 -2
- package/lib/es5/nav-link/index.d.ts +0 -1
- package/lib/es5/notice/index.d.ts +0 -1
- package/lib/es5/oops/index.d.ts +0 -1
- package/lib/es5/pagination/index.d.ts +0 -2
- package/lib/es5/password-field/PasswordField.d.ts +0 -3
- package/lib/es5/password-field/index.d.ts +0 -2
- package/lib/es5/phone-field/PhoneField.d.ts +0 -3
- package/lib/es5/phone-field/index.d.ts +0 -2
- package/lib/es5/progress-bar/index.d.ts +0 -1
- package/lib/es5/radio-field/RadioField.d.ts +0 -5
- package/lib/es5/radio-field/index.d.ts +0 -2
- package/lib/es5/rating/index.d.ts +0 -1
- package/lib/es5/select-field/index.d.ts +0 -1
- package/lib/es5/status/index.d.ts +0 -1
- package/lib/es5/suggest-field/SuggestField.d.ts +0 -10
- package/lib/es5/suggest-field/SuggestFieldProps.d.ts +0 -32
- package/lib/es5/suggest-field/index.d.ts +0 -1
- package/lib/es5/switch/Switch.d.ts +0 -3
- package/lib/es5/switch/index.d.ts +0 -1
- package/lib/es5/switch-field/SwitchField.d.ts +0 -5
- package/lib/es5/switch-field/index.d.ts +0 -2
- package/lib/es5/tabs/index.d.ts +0 -1
- package/lib/es5/text-area-field/index.d.ts +0 -1
- package/lib/es5/text-field/TextField.d.ts +0 -3
- package/lib/es5/text-field/index.d.ts +0 -2
- package/lib/es5/typography/index.d.ts +0 -5
- package/lib/es6/actions/Actions.d.ts +0 -5
- package/lib/es6/alert/Alert.d.ts +0 -9
- package/lib/es6/block-accordion/BlockAccordion.d.ts +0 -12
- package/lib/es6/block-content/BlockContent.d.ts +0 -5
- package/lib/es6/block-tabs/BlockTabs.d.ts +0 -20
- package/lib/es6/button/Button.d.ts +0 -17
- package/lib/es6/checkbox/CheckboxProps.d.ts +0 -10
- package/lib/es6/checkbox-field/CheckboxFieldOptionModel.d.ts +0 -6
- package/lib/es6/checkbox-field/CheckboxFieldProps.d.ts +0 -16
- package/lib/es6/code-field/CodeFieldProps.d.ts +0 -16
- package/lib/es6/content-suggest/ContentSuggestOptionModel.d.ts +0 -6
- package/lib/es6/drop-up/DropUp.d.ts +0 -13
- package/lib/es6/footer-app/FooterApp.d.ts +0 -19
- package/lib/es6/footer-out/FooterOut.d.ts +0 -20
- package/lib/es6/glossary/Glossary.d.ts +0 -11
- package/lib/es6/header/Header.d.ts +0 -7
- package/lib/es6/header/HeaderMenu.d.ts +0 -12
- package/lib/es6/input-modal/InputModal.d.ts +0 -23
- package/lib/es6/link/BlockLink.d.ts +0 -20
- package/lib/es6/link/FileLink.d.ts +0 -13
- package/lib/es6/link/Link.d.ts +0 -18
- package/lib/es6/link/SectionLink.d.ts +0 -21
- package/lib/es6/list/List.d.ts +0 -8
- package/lib/es6/logo-block-link/LogoBlockLink.d.ts +0 -19
- package/lib/es6/logo-link/LogoLink.d.ts +0 -17
- package/lib/es6/markdown/Markdown.d.ts +0 -6
- package/lib/es6/menu/MenuCaption.d.ts +0 -6
- package/lib/es6/menu/MenuContainer.d.ts +0 -2
- package/lib/es6/menu/MenuItem.d.ts +0 -15
- package/lib/es6/menu/MenuLink.d.ts +0 -21
- package/lib/es6/modal/SimpleModal.d.ts +0 -13
- package/lib/es6/nav-link/NavLink.d.ts +0 -14
- package/lib/es6/notice/Notice.d.ts +0 -6
- package/lib/es6/oops/Oops.d.ts +0 -9
- package/lib/es6/pagination/Pagination.d.ts +0 -11
- package/lib/es6/pagination/PaginationLink.d.ts +0 -16
- package/lib/es6/password-field/PasswordFieldProps.d.ts +0 -27
- package/lib/es6/phone-field/PhoneFieldProps.d.ts +0 -24
- package/lib/es6/progress-bar/ProgressBar.d.ts +0 -7
- package/lib/es6/radio-field/RadioFieldOptionModel.d.ts +0 -6
- package/lib/es6/radio-field/RadioFieldProps.d.ts +0 -16
- package/lib/es6/rating/Rating.d.ts +0 -10
- package/lib/es6/select-field/SelectField.d.ts +0 -23
- package/lib/es6/status/Status.d.ts +0 -8
- package/lib/es6/suggest-field/SuggestFieldOptionModel.d.ts +0 -8
- package/lib/es6/switch/SwitchProps.d.ts +0 -12
- package/lib/es6/switch-field/SwitchFieldOptionModel.d.ts +0 -6
- package/lib/es6/switch-field/SwitchFieldProps.d.ts +0 -17
- package/lib/es6/tabs/Tabs.d.ts +0 -16
- package/lib/es6/text-area-field/TextAreaField.d.ts +0 -22
- package/lib/es6/text-field/TextFieldProps.d.ts +0 -28
- package/lib/es6/typography/Caption.d.ts +0 -9
- package/lib/es6/typography/Heading.d.ts +0 -11
- package/lib/es6/typography/Paragraph.d.ts +0 -13
- package/lib/es6/typography/Text.d.ts +0 -16
- package/lib/es6/typography/Title.d.ts +0 -11
|
@@ -1,43 +1,38 @@
|
|
|
1
|
-
|
|
2
|
-
import { Box, Breaker, Stub, Typo } from
|
|
3
|
-
import React from
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { Box, Breaker, Stub, Typo } from '@qiwi/pijma-core';
|
|
3
|
+
import React from 'react';
|
|
4
4
|
const CaptionColor = {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
default: '#000',
|
|
6
|
+
support: '#666',
|
|
7
|
+
inverse: '#fff'
|
|
8
8
|
};
|
|
9
|
-
export const Caption = ({
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
children: /* @__PURE__ */ React.createElement(Breaker, {
|
|
37
|
-
children
|
|
38
|
-
})
|
|
39
|
-
});
|
|
9
|
+
export const Caption = ({ color ='support' , align , stub , clamp , children , })=>stub ? /*#__PURE__*/ _jsx(Box, {
|
|
10
|
+
ml: align === 'center' || align === 'right' ? 'auto' : undefined,
|
|
11
|
+
mr: align === 'center' ? 'auto' : undefined,
|
|
12
|
+
width: 50,
|
|
13
|
+
maxWidth: 1,
|
|
14
|
+
children: /*#__PURE__*/ _jsx(Stub, {
|
|
15
|
+
top: 1,
|
|
16
|
+
bottom: 1,
|
|
17
|
+
width: 50,
|
|
18
|
+
height: 3
|
|
19
|
+
})
|
|
20
|
+
}) : /*#__PURE__*/ _jsx(Typo, {
|
|
21
|
+
as: "h6",
|
|
22
|
+
display: "block",
|
|
23
|
+
size: 3.5,
|
|
24
|
+
height: 5,
|
|
25
|
+
weight: 500,
|
|
26
|
+
color: CaptionColor[color],
|
|
27
|
+
transform: "uppercase",
|
|
28
|
+
spacing: 1.5,
|
|
29
|
+
align: align,
|
|
30
|
+
clamp: clamp,
|
|
31
|
+
children: /*#__PURE__*/ _jsx(Breaker, {
|
|
32
|
+
children: children
|
|
33
|
+
})
|
|
34
|
+
});
|
|
35
|
+
Caption.displayName = 'Caption';
|
|
40
36
|
Caption.defaultProps = {
|
|
41
|
-
|
|
37
|
+
color: 'support'
|
|
42
38
|
};
|
|
43
|
-
Caption.displayName = "Caption";
|
|
@@ -1,86 +1,80 @@
|
|
|
1
|
-
|
|
2
|
-
import { Box, Breaker, Stub, Typo } from
|
|
3
|
-
import React, { Fragment } from
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { Box, Breaker, Stub, Typo } from '@qiwi/pijma-core';
|
|
3
|
+
import React, { Fragment } from 'react';
|
|
4
4
|
const HeadingSize = {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
5
|
+
1: 7,
|
|
6
|
+
2: 6,
|
|
7
|
+
3: 5,
|
|
8
|
+
4: 4
|
|
9
9
|
};
|
|
10
10
|
const HeadingHeight = {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
11
|
+
1: 8,
|
|
12
|
+
2: 7,
|
|
13
|
+
3: 6,
|
|
14
|
+
4: 5
|
|
15
15
|
};
|
|
16
16
|
const HeadingTag = {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
17
|
+
1: 'h1',
|
|
18
|
+
2: 'h2',
|
|
19
|
+
3: 'h3',
|
|
20
|
+
4: 'h4'
|
|
21
21
|
};
|
|
22
22
|
const HeadingWeight = {
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
23
|
+
1: 900,
|
|
24
|
+
2: 900,
|
|
25
|
+
3: 900,
|
|
26
|
+
4: 700
|
|
27
27
|
};
|
|
28
28
|
const StubOffsetTop = {
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
29
|
+
1: 2,
|
|
30
|
+
2: 2,
|
|
31
|
+
3: 2,
|
|
32
|
+
4: 1
|
|
33
33
|
};
|
|
34
34
|
const StubOffsetBottom = {
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
35
|
+
1: 1,
|
|
36
|
+
2: 1,
|
|
37
|
+
3: 1,
|
|
38
|
+
4: 1
|
|
39
39
|
};
|
|
40
40
|
const StubHeight = {
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
41
|
+
1: 5,
|
|
42
|
+
2: 4,
|
|
43
|
+
3: 3,
|
|
44
|
+
4: 3
|
|
45
45
|
};
|
|
46
46
|
const HeadingColor = {
|
|
47
|
-
|
|
48
|
-
|
|
47
|
+
default: '#000',
|
|
48
|
+
inverse: '#fff'
|
|
49
49
|
};
|
|
50
|
-
export const Heading = ({
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
clamp,
|
|
79
|
-
children: /* @__PURE__ */ React.createElement(Breaker, {
|
|
80
|
-
children
|
|
81
|
-
})
|
|
82
|
-
});
|
|
50
|
+
export const Heading = ({ tag , size , color ='default' , align , stub , clamp , children , })=>stub ? /*#__PURE__*/ _jsx(Fragment, {
|
|
51
|
+
children: new Array(clamp === undefined ? 1 : clamp).fill(0).map((_, i)=>i % 3 === 0 ? 0.5 : i % 3 === 1 ? 0.6 : 0.4).map((width, id)=>/*#__PURE__*/ _jsx(Box, {
|
|
52
|
+
ml: align === 'center' || align === 'right' ? 'auto' : 'none',
|
|
53
|
+
mr: align === 'center' ? 'auto' : 'none',
|
|
54
|
+
width: width,
|
|
55
|
+
maxWidth: 1,
|
|
56
|
+
children: /*#__PURE__*/ _jsx(Stub, {
|
|
57
|
+
top: StubOffsetTop[size],
|
|
58
|
+
bottom: StubOffsetBottom[size],
|
|
59
|
+
width: 1,
|
|
60
|
+
height: StubHeight[size],
|
|
61
|
+
inverse: color === 'inverse'
|
|
62
|
+
})
|
|
63
|
+
}, id))
|
|
64
|
+
}) : /*#__PURE__*/ _jsx(Typo, {
|
|
65
|
+
as: tag || HeadingTag[size],
|
|
66
|
+
display: "block",
|
|
67
|
+
size: HeadingSize[size],
|
|
68
|
+
height: HeadingHeight[size],
|
|
69
|
+
weight: HeadingWeight[size],
|
|
70
|
+
color: HeadingColor[color],
|
|
71
|
+
align: align,
|
|
72
|
+
clamp: clamp,
|
|
73
|
+
children: /*#__PURE__*/ _jsx(Breaker, {
|
|
74
|
+
children: children
|
|
75
|
+
})
|
|
76
|
+
});
|
|
77
|
+
Heading.displayName = 'Heading';
|
|
83
78
|
Heading.defaultProps = {
|
|
84
|
-
|
|
79
|
+
color: 'default'
|
|
85
80
|
};
|
|
86
|
-
Heading.displayName = "Heading";
|
|
@@ -1,90 +1,82 @@
|
|
|
1
|
-
|
|
2
|
-
import { Box, Breaker, Stub, Typo } from
|
|
3
|
-
import React, { Fragment } from
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { Box, Breaker, Stub, Typo } from '@qiwi/pijma-core';
|
|
3
|
+
import React, { Fragment } from 'react';
|
|
4
4
|
const ParagraphSize = {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
s: 3.5,
|
|
6
|
+
m: 4,
|
|
7
|
+
l: 5
|
|
8
8
|
};
|
|
9
9
|
const ParagraphHeight = {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
10
|
+
s: 5,
|
|
11
|
+
m: 6,
|
|
12
|
+
l: 8
|
|
13
13
|
};
|
|
14
14
|
const ParagraphHeightCompact = {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
15
|
+
s: 4,
|
|
16
|
+
m: 5,
|
|
17
|
+
l: 7
|
|
18
18
|
};
|
|
19
19
|
const StubOffsetTop = {
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
20
|
+
s: 2,
|
|
21
|
+
m: 1,
|
|
22
|
+
l: 3
|
|
23
23
|
};
|
|
24
24
|
const StubOffsetBottom = {
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
25
|
+
s: 1,
|
|
26
|
+
m: 2,
|
|
27
|
+
l: 2
|
|
28
28
|
};
|
|
29
29
|
const StubOffsetCompactTop = {
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
30
|
+
s: 1,
|
|
31
|
+
m: 1,
|
|
32
|
+
l: 3
|
|
33
33
|
};
|
|
34
34
|
const StubOffsetCompactBottom = {
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
35
|
+
s: 1,
|
|
36
|
+
m: 1,
|
|
37
|
+
l: 1
|
|
38
38
|
};
|
|
39
39
|
const StubHeight = {
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
40
|
+
s: 2,
|
|
41
|
+
m: 3,
|
|
42
|
+
l: 3
|
|
43
43
|
};
|
|
44
44
|
const ParagraphColor = {
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
45
|
+
default: '#000',
|
|
46
|
+
support: '#666',
|
|
47
|
+
inverse: '#fff'
|
|
48
48
|
};
|
|
49
|
-
export const Paragraph = ({
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
transform,
|
|
78
|
-
align,
|
|
79
|
-
clamp,
|
|
80
|
-
children: /* @__PURE__ */ React.createElement(Breaker, {
|
|
81
|
-
children
|
|
82
|
-
})
|
|
83
|
-
});
|
|
49
|
+
export const Paragraph = ({ size ='m' , bold =false , compact =false , color ='default' , transform , align , stub , clamp , children , })=>stub ? /*#__PURE__*/ _jsx(Fragment, {
|
|
50
|
+
children: new Array(clamp === undefined ? 3 : clamp).fill(0).map((_, i)=>i % 3 === 0 ? 0.8 : i % 3 === 1 ? 0.9 : 0.7).map((width, id)=>/*#__PURE__*/ _jsx(Box, {
|
|
51
|
+
width: width,
|
|
52
|
+
ml: align === 'center' || align === 'right' ? 'auto' : undefined,
|
|
53
|
+
mr: align === 'center' || align === 'left' ? 'auto' : undefined,
|
|
54
|
+
children: /*#__PURE__*/ _jsx(Stub, {
|
|
55
|
+
top: compact ? StubOffsetCompactTop[size] : StubOffsetTop[size],
|
|
56
|
+
bottom: compact ? StubOffsetCompactBottom[size] : StubOffsetBottom[size],
|
|
57
|
+
height: StubHeight[size],
|
|
58
|
+
width: 1,
|
|
59
|
+
inverse: color === 'inverse'
|
|
60
|
+
})
|
|
61
|
+
}, id))
|
|
62
|
+
}) : /*#__PURE__*/ _jsx(Typo, {
|
|
63
|
+
as: "p",
|
|
64
|
+
display: "block",
|
|
65
|
+
size: ParagraphSize[size],
|
|
66
|
+
height: compact ? ParagraphHeightCompact[size] : ParagraphHeight[size],
|
|
67
|
+
weight: bold ? 500 : 300,
|
|
68
|
+
color: ParagraphColor[color],
|
|
69
|
+
transform: transform,
|
|
70
|
+
align: align,
|
|
71
|
+
clamp: clamp,
|
|
72
|
+
children: /*#__PURE__*/ _jsx(Breaker, {
|
|
73
|
+
children: children
|
|
74
|
+
})
|
|
75
|
+
});
|
|
76
|
+
Paragraph.displayName = 'Paragraph';
|
|
84
77
|
Paragraph.defaultProps = {
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
78
|
+
size: 'm',
|
|
79
|
+
bold: false,
|
|
80
|
+
compact: false,
|
|
81
|
+
color: 'default'
|
|
89
82
|
};
|
|
90
|
-
Paragraph.displayName = "Paragraph";
|
|
@@ -1,90 +1,77 @@
|
|
|
1
|
-
|
|
2
|
-
import { Box, Breaker, Stub, Typo } from
|
|
3
|
-
import React from
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { Box, Breaker, Stub, Typo } from '@qiwi/pijma-core';
|
|
3
|
+
import React from 'react';
|
|
4
4
|
const TextSize = {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
s: 3.5,
|
|
6
|
+
m: 4,
|
|
7
|
+
l: 5
|
|
8
8
|
};
|
|
9
9
|
const TextHeight = {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
10
|
+
s: 5,
|
|
11
|
+
m: 6,
|
|
12
|
+
l: 8
|
|
13
13
|
};
|
|
14
14
|
const TextHeightCompact = {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
15
|
+
s: 4,
|
|
16
|
+
m: 5,
|
|
17
|
+
l: 7
|
|
18
18
|
};
|
|
19
19
|
const StubHeight = {
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
20
|
+
s: 2,
|
|
21
|
+
m: 3,
|
|
22
|
+
l: 3
|
|
23
23
|
};
|
|
24
24
|
const StubOffsetTop = {
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
25
|
+
s: 1.5,
|
|
26
|
+
m: 1.5,
|
|
27
|
+
l: 2.5
|
|
28
28
|
};
|
|
29
29
|
const StubOffsetBottom = {
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
30
|
+
s: 1.5,
|
|
31
|
+
m: 1.5,
|
|
32
|
+
l: 2.5
|
|
33
33
|
};
|
|
34
34
|
const StubOffsetCompactTop = {
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
35
|
+
s: 1,
|
|
36
|
+
m: 1,
|
|
37
|
+
l: 2
|
|
38
38
|
};
|
|
39
39
|
const StubOffsetCompactBottom = {
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
40
|
+
s: 1,
|
|
41
|
+
m: 1,
|
|
42
|
+
l: 2
|
|
43
43
|
};
|
|
44
44
|
const TextColor = {
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
45
|
+
default: '#000',
|
|
46
|
+
support: '#666',
|
|
47
|
+
inverse: '#fff',
|
|
48
|
+
success: '#4bbd5c',
|
|
49
|
+
failure: '#d0021b',
|
|
50
|
+
warning: '#ff8c00'
|
|
51
51
|
};
|
|
52
|
-
export const Text = ({
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
height: size === void 0 ? void 0 : compact ? TextHeightCompact[size] : TextHeight[size],
|
|
79
|
-
weight: bold === void 0 ? void 0 : bold ? 500 : 300,
|
|
80
|
-
color: color === void 0 ? void 0 : TextColor[color],
|
|
81
|
-
decoration,
|
|
82
|
-
transform,
|
|
83
|
-
transition,
|
|
84
|
-
align,
|
|
85
|
-
clamp,
|
|
86
|
-
children: /* @__PURE__ */ React.createElement(Breaker, {
|
|
87
|
-
children
|
|
88
|
-
})
|
|
89
|
-
});
|
|
90
|
-
Text.displayName = "Text";
|
|
52
|
+
export const Text = ({ display , compact , size , bold , color , decoration , transform , transition , align , clamp , children , stub =false , })=>stub ? size === undefined || display === undefined ? null : /*#__PURE__*/ _jsx(Box, {
|
|
53
|
+
as: "span",
|
|
54
|
+
display: display,
|
|
55
|
+
children: new Array(clamp === undefined ? 1 : clamp).fill(1).map((width, index)=>/*#__PURE__*/ _jsx(Stub, {
|
|
56
|
+
height: StubHeight[size],
|
|
57
|
+
width: width,
|
|
58
|
+
top: compact ? StubOffsetCompactTop[size] : StubOffsetTop[size],
|
|
59
|
+
bottom: compact ? StubOffsetCompactBottom[size] : StubOffsetBottom[size]
|
|
60
|
+
}, index))
|
|
61
|
+
}) : /*#__PURE__*/ _jsx(Typo, {
|
|
62
|
+
as: "span",
|
|
63
|
+
display: display,
|
|
64
|
+
size: size === undefined ? undefined : TextSize[size],
|
|
65
|
+
height: size === undefined ? undefined : compact ? TextHeightCompact[size] : TextHeight[size],
|
|
66
|
+
weight: bold === undefined ? undefined : bold ? 500 : 300,
|
|
67
|
+
color: color === undefined ? undefined : TextColor[color],
|
|
68
|
+
decoration: decoration,
|
|
69
|
+
transform: transform,
|
|
70
|
+
transition: transition,
|
|
71
|
+
align: align,
|
|
72
|
+
clamp: clamp,
|
|
73
|
+
children: /*#__PURE__*/ _jsx(Breaker, {
|
|
74
|
+
children: children
|
|
75
|
+
})
|
|
76
|
+
});
|
|
77
|
+
Text.displayName = 'Text';
|
|
@@ -1,70 +1,63 @@
|
|
|
1
|
-
|
|
2
|
-
import { Box, Breaker, Stub, Typo } from
|
|
3
|
-
import React from
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { Box, Breaker, Stub, Typo } from '@qiwi/pijma-core';
|
|
3
|
+
import React from 'react';
|
|
4
4
|
const TitleSize = {
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
1: 11,
|
|
6
|
+
2: 9
|
|
7
7
|
};
|
|
8
8
|
const TitleHeight = {
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
1: 13,
|
|
10
|
+
2: 10
|
|
11
11
|
};
|
|
12
12
|
const TitleTag = {
|
|
13
|
-
|
|
14
|
-
|
|
13
|
+
1: 'h1',
|
|
14
|
+
2: 'h2'
|
|
15
15
|
};
|
|
16
16
|
const TitleWeight = {
|
|
17
|
-
|
|
18
|
-
|
|
17
|
+
1: 900,
|
|
18
|
+
2: 900
|
|
19
19
|
};
|
|
20
20
|
const StubOffsetTop = {
|
|
21
|
-
|
|
22
|
-
|
|
21
|
+
1: 4,
|
|
22
|
+
2: 3
|
|
23
23
|
};
|
|
24
24
|
const StubOffsetBottom = {
|
|
25
|
-
|
|
26
|
-
|
|
25
|
+
1: 3,
|
|
26
|
+
2: 2
|
|
27
27
|
};
|
|
28
28
|
const StubHeight = {
|
|
29
|
-
|
|
30
|
-
|
|
29
|
+
1: 6,
|
|
30
|
+
2: 5
|
|
31
31
|
};
|
|
32
32
|
const TitleColor = {
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
};
|
|
36
|
-
export const Title = ({
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
align,
|
|
62
|
-
clamp,
|
|
63
|
-
children: /* @__PURE__ */ React.createElement(Breaker, {
|
|
64
|
-
children
|
|
65
|
-
})
|
|
66
|
-
});
|
|
33
|
+
default: '#000',
|
|
34
|
+
inverse: '#fff'
|
|
35
|
+
};
|
|
36
|
+
export const Title = ({ tag , size , color ='default' , align , stub , clamp , children , })=>stub ? /*#__PURE__*/ _jsx(Box, {
|
|
37
|
+
ml: align === 'center' || align === 'right' ? 'auto' : 'none',
|
|
38
|
+
mr: align === 'center' ? 'auto' : 'none',
|
|
39
|
+
width: 50,
|
|
40
|
+
children: /*#__PURE__*/ _jsx(Stub, {
|
|
41
|
+
top: StubOffsetTop[size],
|
|
42
|
+
bottom: StubOffsetBottom[size],
|
|
43
|
+
height: StubHeight[size],
|
|
44
|
+
width: 50,
|
|
45
|
+
inverse: color === 'inverse'
|
|
46
|
+
})
|
|
47
|
+
}) : /*#__PURE__*/ _jsx(Typo, {
|
|
48
|
+
as: tag || TitleTag[size],
|
|
49
|
+
display: "block",
|
|
50
|
+
size: TitleSize[size],
|
|
51
|
+
height: TitleHeight[size],
|
|
52
|
+
weight: TitleWeight[size],
|
|
53
|
+
color: TitleColor[color],
|
|
54
|
+
align: align,
|
|
55
|
+
clamp: clamp,
|
|
56
|
+
children: /*#__PURE__*/ _jsx(Breaker, {
|
|
57
|
+
children: children
|
|
58
|
+
})
|
|
59
|
+
});
|
|
60
|
+
Title.displayName = 'Title';
|
|
67
61
|
Title.defaultProps = {
|
|
68
|
-
|
|
62
|
+
color: 'default'
|
|
69
63
|
};
|
|
70
|
-
Title.displayName = "Title";
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
export * from
|
|
3
|
-
export * from
|
|
4
|
-
export * from
|
|
5
|
-
export * from
|
|
6
|
-
export * from "./Caption.js";
|
|
1
|
+
export * from './Text.js';
|
|
2
|
+
export * from './Paragraph.js';
|
|
3
|
+
export * from './Heading.js';
|
|
4
|
+
export * from './Title.js';
|
|
5
|
+
export * from './Caption.js';
|