@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,67 +1,100 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
2
|
+
Object.defineProperty(exports, "__esModule", {
|
|
3
|
+
value: true
|
|
4
|
+
});
|
|
5
|
+
Object.defineProperty(exports, "Paragraph", {
|
|
6
|
+
enumerable: true,
|
|
7
|
+
get: function() {
|
|
8
|
+
return Paragraph;
|
|
9
|
+
}
|
|
10
|
+
});
|
|
11
|
+
var _interopRequireWildcard = require("@swc/helpers/lib/_interop_require_wildcard.js").default;
|
|
12
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
13
|
+
var _pijmaCore = require("@qiwi/pijma-core");
|
|
14
|
+
var _react = /*#__PURE__*/ _interopRequireWildcard(require("react"));
|
|
7
15
|
var ParagraphSize = {
|
|
8
16
|
s: 3.5,
|
|
9
17
|
m: 4,
|
|
10
|
-
l: 5
|
|
18
|
+
l: 5
|
|
11
19
|
};
|
|
12
20
|
var ParagraphHeight = {
|
|
13
21
|
s: 5,
|
|
14
22
|
m: 6,
|
|
15
|
-
l: 8
|
|
23
|
+
l: 8
|
|
16
24
|
};
|
|
17
25
|
var ParagraphHeightCompact = {
|
|
18
26
|
s: 4,
|
|
19
27
|
m: 5,
|
|
20
|
-
l: 7
|
|
28
|
+
l: 7
|
|
21
29
|
};
|
|
22
30
|
var StubOffsetTop = {
|
|
23
31
|
s: 2,
|
|
24
32
|
m: 1,
|
|
25
|
-
l: 3
|
|
33
|
+
l: 3
|
|
26
34
|
};
|
|
27
35
|
var StubOffsetBottom = {
|
|
28
36
|
s: 1,
|
|
29
37
|
m: 2,
|
|
30
|
-
l: 2
|
|
38
|
+
l: 2
|
|
31
39
|
};
|
|
32
40
|
var StubOffsetCompactTop = {
|
|
33
41
|
s: 1,
|
|
34
42
|
m: 1,
|
|
35
|
-
l: 3
|
|
43
|
+
l: 3
|
|
36
44
|
};
|
|
37
45
|
var StubOffsetCompactBottom = {
|
|
38
46
|
s: 1,
|
|
39
47
|
m: 1,
|
|
40
|
-
l: 1
|
|
48
|
+
l: 1
|
|
41
49
|
};
|
|
42
50
|
var StubHeight = {
|
|
43
51
|
s: 2,
|
|
44
52
|
m: 3,
|
|
45
|
-
l: 3
|
|
53
|
+
l: 3
|
|
46
54
|
};
|
|
47
55
|
var ParagraphColor = {
|
|
48
|
-
default:
|
|
49
|
-
support:
|
|
50
|
-
inverse:
|
|
56
|
+
default: "#000",
|
|
57
|
+
support: "#666",
|
|
58
|
+
inverse: "#fff"
|
|
51
59
|
};
|
|
52
|
-
var Paragraph = function
|
|
53
|
-
var
|
|
54
|
-
return stub ? (
|
|
55
|
-
.fill(0)
|
|
56
|
-
|
|
57
|
-
.map(function
|
|
58
|
-
|
|
60
|
+
var Paragraph = function(param) {
|
|
61
|
+
var _size = param.size, size = _size === void 0 ? "m" : _size, _bold = param.bold, bold = _bold === void 0 ? false : _bold, _compact = param.compact, compact = _compact === void 0 ? false : _compact, _color = param.color, color = _color === void 0 ? "default" : _color, transform = param.transform, align = param.align, stub = param.stub, clamp = param.clamp, children = param.children;
|
|
62
|
+
return stub ? /*#__PURE__*/ (0, _jsxRuntime.jsx)(_react.Fragment, {
|
|
63
|
+
children: new Array(clamp === undefined ? 3 : clamp).fill(0).map(function(_, i) {
|
|
64
|
+
return i % 3 === 0 ? 0.8 : i % 3 === 1 ? 0.9 : 0.7;
|
|
65
|
+
}).map(function(width, id) {
|
|
66
|
+
return /*#__PURE__*/ (0, _jsxRuntime.jsx)(_pijmaCore.Box, {
|
|
67
|
+
width: width,
|
|
68
|
+
ml: align === "center" || align === "right" ? "auto" : undefined,
|
|
69
|
+
mr: align === "center" || align === "left" ? "auto" : undefined,
|
|
70
|
+
children: /*#__PURE__*/ (0, _jsxRuntime.jsx)(_pijmaCore.Stub, {
|
|
71
|
+
top: compact ? StubOffsetCompactTop[size] : StubOffsetTop[size],
|
|
72
|
+
bottom: compact ? StubOffsetCompactBottom[size] : StubOffsetBottom[size],
|
|
73
|
+
height: StubHeight[size],
|
|
74
|
+
width: 1,
|
|
75
|
+
inverse: color === "inverse"
|
|
76
|
+
})
|
|
77
|
+
}, id);
|
|
78
|
+
})
|
|
79
|
+
}) : /*#__PURE__*/ (0, _jsxRuntime.jsx)(_pijmaCore.Typo, {
|
|
80
|
+
as: "p",
|
|
81
|
+
display: "block",
|
|
82
|
+
size: ParagraphSize[size],
|
|
83
|
+
height: compact ? ParagraphHeightCompact[size] : ParagraphHeight[size],
|
|
84
|
+
weight: bold ? 500 : 300,
|
|
85
|
+
color: ParagraphColor[color],
|
|
86
|
+
transform: transform,
|
|
87
|
+
align: align,
|
|
88
|
+
clamp: clamp,
|
|
89
|
+
children: /*#__PURE__*/ (0, _jsxRuntime.jsx)(_pijmaCore.Breaker, {
|
|
90
|
+
children: children
|
|
91
|
+
})
|
|
92
|
+
});
|
|
59
93
|
};
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
size: 'm',
|
|
94
|
+
Paragraph.displayName = "Paragraph";
|
|
95
|
+
Paragraph.defaultProps = {
|
|
96
|
+
size: "m",
|
|
64
97
|
bold: false,
|
|
65
98
|
compact: false,
|
|
66
|
-
color:
|
|
99
|
+
color: "default"
|
|
67
100
|
};
|
|
@@ -1,66 +1,93 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
2
|
+
Object.defineProperty(exports, "__esModule", {
|
|
3
|
+
value: true
|
|
4
|
+
});
|
|
5
|
+
Object.defineProperty(exports, "Text", {
|
|
6
|
+
enumerable: true,
|
|
7
|
+
get: function() {
|
|
8
|
+
return Text;
|
|
9
|
+
}
|
|
10
|
+
});
|
|
11
|
+
var _interopRequireDefault = require("@swc/helpers/lib/_interop_require_default.js").default;
|
|
12
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
13
|
+
var _pijmaCore = require("@qiwi/pijma-core");
|
|
14
|
+
var _react = /*#__PURE__*/ _interopRequireDefault(require("react"));
|
|
7
15
|
var TextSize = {
|
|
8
16
|
s: 3.5,
|
|
9
17
|
m: 4,
|
|
10
|
-
l: 5
|
|
18
|
+
l: 5
|
|
11
19
|
};
|
|
12
20
|
var TextHeight = {
|
|
13
21
|
s: 5,
|
|
14
22
|
m: 6,
|
|
15
|
-
l: 8
|
|
23
|
+
l: 8
|
|
16
24
|
};
|
|
17
25
|
var TextHeightCompact = {
|
|
18
26
|
s: 4,
|
|
19
27
|
m: 5,
|
|
20
|
-
l: 7
|
|
28
|
+
l: 7
|
|
21
29
|
};
|
|
22
30
|
var StubHeight = {
|
|
23
31
|
s: 2,
|
|
24
32
|
m: 3,
|
|
25
|
-
l: 3
|
|
33
|
+
l: 3
|
|
26
34
|
};
|
|
27
35
|
var StubOffsetTop = {
|
|
28
36
|
s: 1.5,
|
|
29
37
|
m: 1.5,
|
|
30
|
-
l: 2.5
|
|
38
|
+
l: 2.5
|
|
31
39
|
};
|
|
32
40
|
var StubOffsetBottom = {
|
|
33
41
|
s: 1.5,
|
|
34
42
|
m: 1.5,
|
|
35
|
-
l: 2.5
|
|
43
|
+
l: 2.5
|
|
36
44
|
};
|
|
37
45
|
var StubOffsetCompactTop = {
|
|
38
46
|
s: 1,
|
|
39
47
|
m: 1,
|
|
40
|
-
l: 2
|
|
48
|
+
l: 2
|
|
41
49
|
};
|
|
42
50
|
var StubOffsetCompactBottom = {
|
|
43
51
|
s: 1,
|
|
44
52
|
m: 1,
|
|
45
|
-
l: 2
|
|
53
|
+
l: 2
|
|
46
54
|
};
|
|
47
55
|
var TextColor = {
|
|
48
|
-
default:
|
|
49
|
-
support:
|
|
50
|
-
inverse:
|
|
51
|
-
success:
|
|
52
|
-
failure:
|
|
53
|
-
warning:
|
|
56
|
+
default: "#000",
|
|
57
|
+
support: "#666",
|
|
58
|
+
inverse: "#fff",
|
|
59
|
+
success: "#4bbd5c",
|
|
60
|
+
failure: "#d0021b",
|
|
61
|
+
warning: "#ff8c00"
|
|
54
62
|
};
|
|
55
|
-
var Text = function
|
|
56
|
-
var display =
|
|
57
|
-
return stub ?
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
:
|
|
63
|
+
var Text = function(param) {
|
|
64
|
+
var display = param.display, compact = param.compact, size = param.size, bold = param.bold, color = param.color, decoration = param.decoration, transform = param.transform, transition = param.transition, align = param.align, clamp = param.clamp, children = param.children, _stub = param.stub, stub = _stub === void 0 ? false : _stub;
|
|
65
|
+
return stub ? size === undefined || display === undefined ? null : /*#__PURE__*/ (0, _jsxRuntime.jsx)(_pijmaCore.Box, {
|
|
66
|
+
as: "span",
|
|
67
|
+
display: display,
|
|
68
|
+
children: new Array(clamp === undefined ? 1 : clamp).fill(1).map(function(width, index) {
|
|
69
|
+
return /*#__PURE__*/ (0, _jsxRuntime.jsx)(_pijmaCore.Stub, {
|
|
70
|
+
height: StubHeight[size],
|
|
71
|
+
width: width,
|
|
72
|
+
top: compact ? StubOffsetCompactTop[size] : StubOffsetTop[size],
|
|
73
|
+
bottom: compact ? StubOffsetCompactBottom[size] : StubOffsetBottom[size]
|
|
74
|
+
}, index);
|
|
75
|
+
})
|
|
76
|
+
}) : /*#__PURE__*/ (0, _jsxRuntime.jsx)(_pijmaCore.Typo, {
|
|
77
|
+
as: "span",
|
|
78
|
+
display: display,
|
|
79
|
+
size: size === undefined ? undefined : TextSize[size],
|
|
80
|
+
height: size === undefined ? undefined : compact ? TextHeightCompact[size] : TextHeight[size],
|
|
81
|
+
weight: bold === undefined ? undefined : bold ? 500 : 300,
|
|
82
|
+
color: color === undefined ? undefined : TextColor[color],
|
|
83
|
+
decoration: decoration,
|
|
84
|
+
transform: transform,
|
|
85
|
+
transition: transition,
|
|
86
|
+
align: align,
|
|
87
|
+
clamp: clamp,
|
|
88
|
+
children: /*#__PURE__*/ (0, _jsxRuntime.jsx)(_pijmaCore.Breaker, {
|
|
89
|
+
children: children
|
|
90
|
+
})
|
|
91
|
+
});
|
|
64
92
|
};
|
|
65
|
-
|
|
66
|
-
exports.Text.displayName = "Text"
|
|
93
|
+
Text.displayName = "Text";
|
|
@@ -1,48 +1,77 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
2
|
+
Object.defineProperty(exports, "__esModule", {
|
|
3
|
+
value: true
|
|
4
|
+
});
|
|
5
|
+
Object.defineProperty(exports, "Title", {
|
|
6
|
+
enumerable: true,
|
|
7
|
+
get: function() {
|
|
8
|
+
return Title;
|
|
9
|
+
}
|
|
10
|
+
});
|
|
11
|
+
var _interopRequireDefault = require("@swc/helpers/lib/_interop_require_default.js").default;
|
|
12
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
13
|
+
var _pijmaCore = require("@qiwi/pijma-core");
|
|
14
|
+
var _react = /*#__PURE__*/ _interopRequireDefault(require("react"));
|
|
7
15
|
var TitleSize = {
|
|
8
16
|
1: 11,
|
|
9
|
-
2: 9
|
|
17
|
+
2: 9
|
|
10
18
|
};
|
|
11
19
|
var TitleHeight = {
|
|
12
20
|
1: 13,
|
|
13
|
-
2: 10
|
|
21
|
+
2: 10
|
|
14
22
|
};
|
|
15
23
|
var TitleTag = {
|
|
16
|
-
1:
|
|
17
|
-
2:
|
|
24
|
+
1: "h1",
|
|
25
|
+
2: "h2"
|
|
18
26
|
};
|
|
19
27
|
var TitleWeight = {
|
|
20
28
|
1: 900,
|
|
21
|
-
2: 900
|
|
29
|
+
2: 900
|
|
22
30
|
};
|
|
23
31
|
var StubOffsetTop = {
|
|
24
32
|
1: 4,
|
|
25
|
-
2: 3
|
|
33
|
+
2: 3
|
|
26
34
|
};
|
|
27
35
|
var StubOffsetBottom = {
|
|
28
36
|
1: 3,
|
|
29
|
-
2: 2
|
|
37
|
+
2: 2
|
|
30
38
|
};
|
|
31
39
|
var StubHeight = {
|
|
32
40
|
1: 6,
|
|
33
|
-
2: 5
|
|
41
|
+
2: 5
|
|
34
42
|
};
|
|
35
43
|
var TitleColor = {
|
|
36
|
-
default:
|
|
37
|
-
inverse:
|
|
38
|
-
};
|
|
39
|
-
var Title = function
|
|
40
|
-
var tag =
|
|
41
|
-
return stub ? (
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
44
|
+
default: "#000",
|
|
45
|
+
inverse: "#fff"
|
|
46
|
+
};
|
|
47
|
+
var Title = function(param) {
|
|
48
|
+
var tag = param.tag, size = param.size, _color = param.color, color = _color === void 0 ? "default" : _color, align = param.align, stub = param.stub, clamp = param.clamp, children = param.children;
|
|
49
|
+
return stub ? /*#__PURE__*/ (0, _jsxRuntime.jsx)(_pijmaCore.Box, {
|
|
50
|
+
ml: align === "center" || align === "right" ? "auto" : "none",
|
|
51
|
+
mr: align === "center" ? "auto" : "none",
|
|
52
|
+
width: 50,
|
|
53
|
+
children: /*#__PURE__*/ (0, _jsxRuntime.jsx)(_pijmaCore.Stub, {
|
|
54
|
+
top: StubOffsetTop[size],
|
|
55
|
+
bottom: StubOffsetBottom[size],
|
|
56
|
+
height: StubHeight[size],
|
|
57
|
+
width: 50,
|
|
58
|
+
inverse: color === "inverse"
|
|
59
|
+
})
|
|
60
|
+
}) : /*#__PURE__*/ (0, _jsxRuntime.jsx)(_pijmaCore.Typo, {
|
|
61
|
+
as: tag || TitleTag[size],
|
|
62
|
+
display: "block",
|
|
63
|
+
size: TitleSize[size],
|
|
64
|
+
height: TitleHeight[size],
|
|
65
|
+
weight: TitleWeight[size],
|
|
66
|
+
color: TitleColor[color],
|
|
67
|
+
align: align,
|
|
68
|
+
clamp: clamp,
|
|
69
|
+
children: /*#__PURE__*/ (0, _jsxRuntime.jsx)(_pijmaCore.Breaker, {
|
|
70
|
+
children: children
|
|
71
|
+
})
|
|
72
|
+
});
|
|
73
|
+
};
|
|
74
|
+
Title.displayName = "Title";
|
|
75
|
+
Title.defaultProps = {
|
|
76
|
+
color: "default"
|
|
48
77
|
};
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
(
|
|
7
|
-
(
|
|
8
|
-
(
|
|
2
|
+
Object.defineProperty(exports, "__esModule", {
|
|
3
|
+
value: true
|
|
4
|
+
});
|
|
5
|
+
var _exportStar = require("@swc/helpers/lib/_export_star.js").default;
|
|
6
|
+
_exportStar(require("./Text.js"), exports);
|
|
7
|
+
_exportStar(require("./Paragraph.js"), exports);
|
|
8
|
+
_exportStar(require("./Heading.js"), exports);
|
|
9
|
+
_exportStar(require("./Title.js"), exports);
|
|
10
|
+
_exportStar(require("./Caption.js"), exports);
|
|
@@ -1,20 +1,19 @@
|
|
|
1
|
-
|
|
2
|
-
import { Box } from
|
|
3
|
-
import React, { Children } from
|
|
4
|
-
export const Actions = (props)
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
})
|
|
18
|
-
});
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { Box } from '@qiwi/pijma-core';
|
|
3
|
+
import React, { Children } from 'react';
|
|
4
|
+
export const Actions = (props)=>{
|
|
5
|
+
const elements = Children.toArray(props.children).filter((child)=>!!child);
|
|
6
|
+
if (elements.length === 0) {
|
|
7
|
+
return null;
|
|
8
|
+
}
|
|
9
|
+
return /*#__PURE__*/ _jsx(Box, {
|
|
10
|
+
width: 1,
|
|
11
|
+
children: Children.map(elements, (child, key)=>/*#__PURE__*/ _jsx(Box, {
|
|
12
|
+
width: 1,
|
|
13
|
+
maxWidth: 1,
|
|
14
|
+
mt: key === 0 ? undefined : 4,
|
|
15
|
+
children: child
|
|
16
|
+
}, key))
|
|
17
|
+
});
|
|
19
18
|
};
|
|
20
|
-
Actions.displayName =
|
|
19
|
+
Actions.displayName = 'Actions';
|
package/lib/es6/actions/index.js
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export * from "./Actions.js";
|
|
1
|
+
export * from './Actions.js';
|
package/lib/es6/alert/Alert.js
CHANGED
|
@@ -1,68 +1,70 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
FlexItem,
|
|
7
|
-
Icon
|
|
8
|
-
} from "@qiwi/pijma-core";
|
|
9
|
-
import React from "react";
|
|
10
|
-
import { Link } from "../link/index.js";
|
|
11
|
-
import { Paragraph } from "../typography/index.js";
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { AlertControl, Box, Flex, FlexItem, Icon } from '@qiwi/pijma-core';
|
|
3
|
+
import React from 'react';
|
|
4
|
+
import { Link } from '../link/index.js';
|
|
5
|
+
import { Paragraph } from '../typography/index.js';
|
|
12
6
|
const AlertIconColor = {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
7
|
+
success: '#4bbd5c',
|
|
8
|
+
warning: '#ff8c00',
|
|
9
|
+
failure: '#d0021b',
|
|
10
|
+
general: '#666666'
|
|
17
11
|
};
|
|
18
12
|
const AlertIconName = {
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
13
|
+
success: 'success',
|
|
14
|
+
warning: 'warning',
|
|
15
|
+
failure: 'attention',
|
|
16
|
+
general: 'info'
|
|
23
17
|
};
|
|
24
|
-
export const Alert = ({
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
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
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
18
|
+
export const Alert = ({ type ='general' , text , action , onHide , onClick , })=>/*#__PURE__*/ _jsx(AlertControl, {
|
|
19
|
+
onHide: onHide,
|
|
20
|
+
children: (renderProps)=>/*#__PURE__*/ _jsxs(Flex, {
|
|
21
|
+
minHeight: 14,
|
|
22
|
+
justify: "flex-start",
|
|
23
|
+
p: 4,
|
|
24
|
+
children: [
|
|
25
|
+
/*#__PURE__*/ _jsx(FlexItem, {
|
|
26
|
+
mr: 3,
|
|
27
|
+
children: /*#__PURE__*/ _jsx(Icon, {
|
|
28
|
+
name: AlertIconName[type],
|
|
29
|
+
color: AlertIconColor[type]
|
|
30
|
+
})
|
|
31
|
+
}),
|
|
32
|
+
/*#__PURE__*/ _jsxs(FlexItem, {
|
|
33
|
+
mr: onHide ? 4 : 0,
|
|
34
|
+
overflow: "hidden",
|
|
35
|
+
children: [
|
|
36
|
+
/*#__PURE__*/ _jsx(Paragraph, {
|
|
37
|
+
children: text
|
|
38
|
+
}),
|
|
39
|
+
action ? /*#__PURE__*/ _jsx(Box, {
|
|
40
|
+
mt: 1,
|
|
41
|
+
children: /*#__PURE__*/ _jsx(Paragraph, {
|
|
42
|
+
children: /*#__PURE__*/ _jsx(Link, {
|
|
43
|
+
bold: true,
|
|
44
|
+
onClick: onClick,
|
|
45
|
+
children: action
|
|
46
|
+
})
|
|
47
|
+
})
|
|
48
|
+
}) : null
|
|
49
|
+
]
|
|
50
|
+
}),
|
|
51
|
+
onHide ? /*#__PURE__*/ _jsx(FlexItem, {
|
|
52
|
+
ml: "auto",
|
|
53
|
+
cursor: "pointer",
|
|
54
|
+
opacity: renderProps.hover ? 0.7 : 1,
|
|
55
|
+
transition: "all 300ms cubic-bezier(0.4, 0.0, 0.2, 1)",
|
|
56
|
+
onClick: renderProps.onClick,
|
|
57
|
+
onMouseMove: renderProps.onMouseEnter,
|
|
58
|
+
onMouseOut: renderProps.onMouseLeave,
|
|
59
|
+
children: /*#__PURE__*/ _jsx(Icon, {
|
|
60
|
+
name: "cross-small",
|
|
61
|
+
color: "#666666"
|
|
62
|
+
})
|
|
63
|
+
}) : null
|
|
64
|
+
]
|
|
65
|
+
})
|
|
66
|
+
});
|
|
67
|
+
Alert.displayName = 'Alert';
|
|
65
68
|
Alert.defaultProps = {
|
|
66
|
-
|
|
69
|
+
type: 'general'
|
|
67
70
|
};
|
|
68
|
-
Alert.displayName = "Alert";
|
package/lib/es6/alert/index.js
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export * from "./Alert.js";
|
|
1
|
+
export * from './Alert.js';
|