@alfalab/core-components 43.1.3-beta.0 → 43.2.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/bottom-sheet/component.js +2 -2
- package/bottom-sheet/cssm/component.js +2 -2
- package/bottom-sheet/cssm/index.module.css +3 -2
- package/bottom-sheet/cssm/types.d.ts +4 -0
- package/bottom-sheet/esm/component.js +2 -2
- package/bottom-sheet/esm/index.css +3 -2
- package/bottom-sheet/esm/types.d.ts +4 -0
- package/bottom-sheet/index.css +3 -2
- package/bottom-sheet/modern/component.js +2 -1
- package/bottom-sheet/modern/index.css +3 -2
- package/bottom-sheet/modern/types.d.ts +4 -0
- package/bottom-sheet/types.d.ts +4 -0
- package/confirmation/component.responsive.js +1 -1
- package/confirmation/components/base-confirmation/component.js +1 -1
- package/confirmation/components/base-confirmation/index.js +1 -1
- package/confirmation/components/index.js +1 -1
- package/confirmation/components/screens/index.js +1 -1
- package/confirmation/components/screens/initial/component.js +1 -1
- package/confirmation/components/screens/initial/countdown-section.js +1 -1
- package/confirmation/components/screens/initial/index.js +1 -1
- package/confirmation/desktop/component.desktop.js +1 -1
- package/confirmation/desktop/index.js +1 -1
- package/confirmation/esm/component.responsive.js +1 -1
- package/confirmation/esm/components/base-confirmation/component.js +1 -1
- package/confirmation/esm/components/base-confirmation/index.js +1 -1
- package/confirmation/esm/components/index.js +1 -1
- package/confirmation/esm/components/screens/index.js +1 -1
- package/confirmation/esm/components/screens/initial/component.js +1 -1
- package/confirmation/esm/components/screens/initial/countdown-section.js +1 -1
- package/confirmation/esm/components/screens/initial/index.js +1 -1
- package/confirmation/esm/desktop/component.desktop.js +1 -1
- package/confirmation/esm/desktop/index.js +1 -1
- package/confirmation/esm/index.js +1 -1
- package/confirmation/esm/mobile/component.mobile.js +1 -1
- package/confirmation/esm/mobile/index.js +1 -1
- package/confirmation/esm/shared/index.js +1 -1
- package/confirmation/index.js +1 -1
- package/confirmation/mobile/component.mobile.js +1 -1
- package/confirmation/mobile/index.js +1 -1
- package/confirmation/modern/component.responsive.js +1 -1
- package/confirmation/modern/components/base-confirmation/component.js +1 -1
- package/confirmation/modern/components/base-confirmation/index.js +1 -1
- package/confirmation/modern/components/index.js +1 -1
- package/confirmation/modern/components/screens/index.js +1 -1
- package/confirmation/modern/components/screens/initial/component.js +1 -1
- package/confirmation/modern/components/screens/initial/countdown-section.js +1 -1
- package/confirmation/modern/components/screens/initial/index.js +1 -1
- package/confirmation/modern/desktop/component.desktop.js +1 -1
- package/confirmation/modern/desktop/index.js +1 -1
- package/confirmation/modern/index.js +1 -1
- package/confirmation/modern/mobile/component.mobile.js +1 -1
- package/confirmation/modern/mobile/index.js +1 -1
- package/confirmation/modern/shared/index.js +1 -1
- package/confirmation/shared/index.js +1 -1
- package/form-control/components/base-form-control/default.css +2 -2
- package/form-control/components/base-form-control/inverted.css +2 -2
- package/form-control/cssm/components/base-form-control/default.module.css +2 -2
- package/form-control/cssm/components/base-form-control/inverted.module.css +2 -2
- package/form-control/esm/components/base-form-control/default.css +2 -2
- package/form-control/esm/components/base-form-control/inverted.css +2 -2
- package/form-control/modern/components/base-form-control/default.css +2 -2
- package/form-control/modern/components/base-form-control/inverted.css +2 -2
- package/gallery/Component.js +2 -2
- package/gallery/components/header/Component.js +1 -1
- package/gallery/components/header/buttons.js +1 -1
- package/gallery/components/header/index.js +1 -1
- package/gallery/components/image-viewer/component.js +1 -1
- package/gallery/components/image-viewer/index.js +1 -1
- package/gallery/components/image-viewer/slide.js +1 -1
- package/gallery/components/index.js +2 -2
- package/gallery/esm/Component.js +2 -2
- package/gallery/esm/components/header/Component.js +1 -1
- package/gallery/esm/components/header/buttons.js +1 -1
- package/gallery/esm/components/header/index.js +1 -1
- package/gallery/esm/components/image-viewer/component.js +1 -1
- package/gallery/esm/components/image-viewer/index.js +1 -1
- package/gallery/esm/components/image-viewer/slide.js +1 -1
- package/gallery/esm/components/index.js +2 -2
- package/gallery/esm/index.js +2 -2
- package/gallery/index.js +2 -2
- package/gallery/modern/Component.js +2 -2
- package/gallery/modern/components/header/Component.js +1 -1
- package/gallery/modern/components/header/buttons.js +1 -1
- package/gallery/modern/components/header/index.js +1 -1
- package/gallery/modern/components/image-viewer/component.js +1 -1
- package/gallery/modern/components/image-viewer/index.js +1 -1
- package/gallery/modern/components/image-viewer/slide.js +1 -1
- package/gallery/modern/components/index.js +2 -2
- package/gallery/modern/index.js +2 -2
- package/international-phone-input/cssm/typings-e63ec8aa.d.ts +31 -24
- package/international-phone-input/esm/typings-e63ec8aa.d.ts +31 -24
- package/international-phone-input/modern/typings-e63ec8aa.d.ts +31 -24
- package/international-phone-input/typings-e63ec8aa.d.ts +31 -24
- package/navigation-bar/Component.js +2 -2
- package/navigation-bar/cssm/Component.js +2 -2
- package/navigation-bar/cssm/types.d.ts +5 -0
- package/navigation-bar/esm/Component.js +2 -2
- package/navigation-bar/esm/types.d.ts +5 -0
- package/navigation-bar/modern/Component.js +2 -2
- package/navigation-bar/modern/types.d.ts +5 -0
- package/navigation-bar/types.d.ts +5 -0
- package/package.json +1 -1
- package/picker-button/{esm/types-1c79e231.d.ts → cssm/types-667e33fd.d.ts} +5 -1
- package/picker-button/cssm/typings-e63ec8aa.d.ts +5 -1
- package/picker-button/{types-1c79e231.d.ts → esm/types-667e33fd.d.ts} +5 -1
- package/picker-button/esm/typings-e63ec8aa.d.ts +5 -1
- package/picker-button/modern/{types-1c79e231.d.ts → types-667e33fd.d.ts} +5 -1
- package/picker-button/modern/typings-e63ec8aa.d.ts +5 -1
- package/picker-button/{cssm/types-1c79e231.d.ts → types-667e33fd.d.ts} +5 -1
- package/picker-button/typings-e63ec8aa.d.ts +5 -1
- package/pure-cell/component.js +1 -1
- package/pure-cell/components/content/component.js +1 -1
- package/pure-cell/components/content/index.d.ts +1 -1
- package/pure-cell/components/content/index.js +1 -1
- package/pure-cell/components/main/component.js +1 -1
- package/pure-cell/components/main/index.d.ts +1 -1
- package/pure-cell/components/main/index.js +1 -1
- package/pure-cell/components/text/component.js +1 -1
- package/pure-cell/components/text/index.d.ts +1 -1
- package/pure-cell/components/text/index.js +1 -1
- package/pure-cell/esm/component.js +1 -1
- package/pure-cell/esm/components/content/component.js +1 -1
- package/pure-cell/esm/components/content/index.d.ts +1 -1
- package/pure-cell/esm/components/content/index.js +1 -1
- package/pure-cell/esm/components/main/component.js +1 -1
- package/pure-cell/esm/components/main/index.d.ts +1 -1
- package/pure-cell/esm/components/main/index.js +1 -1
- package/pure-cell/esm/components/text/component.js +1 -1
- package/pure-cell/esm/components/text/index.d.ts +1 -1
- package/pure-cell/esm/components/text/index.js +1 -1
- package/pure-cell/esm/index.js +1 -1
- package/pure-cell/index.js +1 -1
- package/pure-cell/modern/component.js +1 -1
- package/pure-cell/modern/components/content/component.js +1 -1
- package/pure-cell/modern/components/content/index.d.ts +1 -1
- package/pure-cell/modern/components/content/index.js +1 -1
- package/pure-cell/modern/components/main/component.js +1 -1
- package/pure-cell/modern/components/main/index.d.ts +1 -1
- package/pure-cell/modern/components/main/index.js +1 -1
- package/pure-cell/modern/components/text/component.js +1 -1
- package/pure-cell/modern/components/text/index.d.ts +1 -1
- package/pure-cell/modern/components/text/index.js +1 -1
- package/pure-cell/modern/index.js +1 -1
- package/select/Component.responsive.js +1 -1
- package/select/esm/Component.responsive.js +1 -1
- package/select/esm/index.js +1 -1
- package/select/esm/mobile/Component.mobile.js +1 -1
- package/select/esm/mobile/Component.modal.mobile.js +1 -1
- package/select/esm/mobile/index.js +1 -1
- package/select/esm/presets/index.js +1 -1
- package/select/esm/presets/useSelectWithApply/hook.js +1 -1
- package/select/esm/presets/useSelectWithApply/options-list-with-apply/Component.js +1 -1
- package/select/esm/presets/useSelectWithApply/options-list-with-apply/index.d.ts +1 -1
- package/select/esm/presets/useSelectWithApply/options-list-with-apply/index.js +1 -1
- package/select/esm/shared/index.js +1 -1
- package/select/index.js +1 -1
- package/select/mobile/Component.mobile.js +1 -1
- package/select/mobile/Component.modal.mobile.js +1 -1
- package/select/mobile/index.js +1 -1
- package/select/modern/Component.responsive.js +1 -1
- package/select/modern/index.js +1 -1
- package/select/modern/mobile/Component.mobile.js +1 -1
- package/select/modern/mobile/Component.modal.mobile.js +1 -1
- package/select/modern/mobile/index.js +1 -1
- package/select/modern/presets/index.js +1 -1
- package/select/modern/presets/useSelectWithApply/hook.js +1 -1
- package/select/modern/presets/useSelectWithApply/options-list-with-apply/Component.js +1 -1
- package/select/modern/presets/useSelectWithApply/options-list-with-apply/index.d.ts +1 -1
- package/select/modern/presets/useSelectWithApply/options-list-with-apply/index.js +1 -1
- package/select/modern/shared/index.js +1 -1
- package/select/presets/index.js +1 -1
- package/select/presets/useSelectWithApply/hook.js +1 -1
- package/select/presets/useSelectWithApply/options-list-with-apply/Component.js +1 -1
- package/select/presets/useSelectWithApply/options-list-with-apply/index.d.ts +1 -1
- package/select/presets/useSelectWithApply/options-list-with-apply/index.js +1 -1
- package/select/shared/index.js +1 -1
- package/select-with-tags/component.d.ts +1 -1
- package/tabs/collapsible/index.js +1 -1
- package/tabs/components/primary-tablist/Component.collapsible.js +1 -1
- package/tabs/components/primary-tablist/Component.desktop.js +1 -1
- package/tabs/components/primary-tablist/Component.mobile.js +1 -1
- package/tabs/components/primary-tablist/Component.responsive.js +1 -1
- package/tabs/components/secondary-tablist/Component.desktop.js +1 -1
- package/tabs/components/secondary-tablist/Component.mobile.js +1 -1
- package/tabs/components/secondary-tablist/Component.responsive.js +1 -1
- package/tabs/components/tabs/Component.collapsible.js +1 -1
- package/tabs/components/tabs/Component.desktop.js +2 -2
- package/tabs/components/tabs/Component.mobile.js +2 -2
- package/tabs/components/tabs/Component.responsive.js +2 -2
- package/tabs/desktop/index.js +2 -2
- package/tabs/esm/collapsible/index.js +1 -1
- package/tabs/esm/components/primary-tablist/Component.collapsible.js +1 -1
- package/tabs/esm/components/primary-tablist/Component.desktop.js +1 -1
- package/tabs/esm/components/primary-tablist/Component.mobile.js +1 -1
- package/tabs/esm/components/primary-tablist/Component.responsive.js +1 -1
- package/tabs/esm/components/secondary-tablist/Component.desktop.js +1 -1
- package/tabs/esm/components/secondary-tablist/Component.mobile.js +1 -1
- package/tabs/esm/components/secondary-tablist/Component.responsive.js +1 -1
- package/tabs/esm/components/tabs/Component.collapsible.js +1 -1
- package/tabs/esm/components/tabs/Component.desktop.js +2 -2
- package/tabs/esm/components/tabs/Component.mobile.js +2 -2
- package/tabs/esm/components/tabs/Component.responsive.js +2 -2
- package/tabs/esm/desktop/index.js +2 -2
- package/tabs/esm/index.js +2 -2
- package/tabs/esm/mobile/index.js +2 -2
- package/tabs/index.js +2 -2
- package/tabs/mobile/index.js +2 -2
- package/tabs/modern/collapsible/index.js +1 -1
- package/tabs/modern/components/primary-tablist/Component.collapsible.js +1 -1
- package/tabs/modern/components/primary-tablist/Component.desktop.js +1 -1
- package/tabs/modern/components/primary-tablist/Component.mobile.js +1 -1
- package/tabs/modern/components/primary-tablist/Component.responsive.js +1 -1
- package/tabs/modern/components/secondary-tablist/Component.desktop.js +1 -1
- package/tabs/modern/components/secondary-tablist/Component.mobile.js +1 -1
- package/tabs/modern/components/secondary-tablist/Component.responsive.js +1 -1
- package/tabs/modern/components/tabs/Component.collapsible.js +1 -1
- package/tabs/modern/components/tabs/Component.desktop.js +2 -2
- package/tabs/modern/components/tabs/Component.mobile.js +2 -2
- package/tabs/modern/components/tabs/Component.responsive.js +2 -2
- package/tabs/modern/desktop/index.js +2 -2
- package/tabs/modern/index.js +2 -2
- package/tabs/modern/mobile/index.js +2 -2
- package/textarea/Component.js +1 -1
- package/textarea/components/PseudoTextArea.js +1 -1
- package/textarea/components/index.d.ts +1 -1
- package/textarea/components/index.js +1 -1
- package/textarea/esm/Component.js +1 -1
- package/textarea/esm/components/PseudoTextArea.js +1 -1
- package/textarea/esm/components/index.d.ts +1 -1
- package/textarea/esm/components/index.js +1 -1
- package/textarea/esm/index.js +1 -1
- package/textarea/index.js +1 -1
- package/textarea/modern/Component.js +1 -1
- package/textarea/modern/components/PseudoTextArea.js +1 -1
- package/textarea/modern/components/index.d.ts +1 -1
- package/textarea/modern/components/index.js +1 -1
- package/textarea/modern/index.js +1 -1
- package/themes/compiled/mobile-dark-bluetint.css +21 -21
- package/themes/dist/compiled/mobile-dark-bluetint.css +121 -121
- package/typography/component.js +2 -2
- package/typography/esm/component.js +2 -2
- package/typography/esm/index.js +2 -2
- package/typography/esm/text/component.js +1 -1
- package/typography/esm/text/index.js +1 -1
- package/typography/esm/title/component.js +1 -1
- package/typography/esm/title/index.js +2 -2
- package/typography/esm/title-mobile/component.js +2 -2
- package/typography/esm/title-mobile/index.js +2 -2
- package/typography/esm/title-responsive/component.js +2 -2
- package/typography/esm/title-responsive/index.js +2 -2
- package/typography/index.js +2 -2
- package/typography/modern/component.js +2 -2
- package/typography/modern/index.js +2 -2
- package/typography/modern/text/component.js +1 -1
- package/typography/modern/text/index.js +1 -1
- package/typography/modern/title/component.js +1 -1
- package/typography/modern/title/index.js +2 -2
- package/typography/modern/title-mobile/component.js +2 -2
- package/typography/modern/title-mobile/index.js +2 -2
- package/typography/modern/title-responsive/component.js +2 -2
- package/typography/modern/title-responsive/index.js +2 -2
- package/typography/text/component.js +1 -1
- package/typography/text/index.js +1 -1
- package/typography/title/component.js +1 -1
- package/typography/title/index.js +2 -2
- package/typography/title-mobile/component.js +2 -2
- package/typography/title-mobile/index.js +2 -2
- package/typography/title-responsive/component.js +2 -2
- package/typography/title-responsive/index.js +2 -2
- package/universal-date-input/cssm/index-5712fce2.d.ts +27 -24
- package/universal-date-input/esm/index-5712fce2.d.ts +27 -24
- package/universal-date-input/index-5712fce2.d.ts +27 -24
- package/universal-date-input/modern/index-5712fce2.d.ts +27 -24
- /package/confirmation/{countdown-section-840dd98a.d.ts → countdown-section-c3df4486.d.ts} +0 -0
- /package/confirmation/{countdown-section-840dd98a.js → countdown-section-c3df4486.js} +0 -0
- /package/confirmation/esm/{countdown-section-0db0e4ed.d.ts → countdown-section-7359cc39.d.ts} +0 -0
- /package/confirmation/esm/{countdown-section-0db0e4ed.js → countdown-section-7359cc39.js} +0 -0
- /package/confirmation/modern/{countdown-section-9c20403c.d.ts → countdown-section-afd7b569.d.ts} +0 -0
- /package/confirmation/modern/{countdown-section-9c20403c.js → countdown-section-afd7b569.js} +0 -0
- /package/gallery/{buttons-4f5e6d04.d.ts → buttons-916b2ace.d.ts} +0 -0
- /package/gallery/{buttons-4f5e6d04.js → buttons-916b2ace.js} +0 -0
- /package/gallery/esm/{buttons-b69133ee.d.ts → buttons-9fe1d28e.d.ts} +0 -0
- /package/gallery/esm/{buttons-b69133ee.js → buttons-9fe1d28e.js} +0 -0
- /package/gallery/esm/{slide-d3262e3b.d.ts → slide-cfd8bfe0.d.ts} +0 -0
- /package/gallery/esm/{slide-d3262e3b.js → slide-cfd8bfe0.js} +0 -0
- /package/gallery/modern/{buttons-86d05dcd.d.ts → buttons-95ecfff9.d.ts} +0 -0
- /package/gallery/modern/{buttons-86d05dcd.js → buttons-95ecfff9.js} +0 -0
- /package/gallery/modern/{slide-aa765790.d.ts → slide-026ef04b.d.ts} +0 -0
- /package/gallery/modern/{slide-aa765790.js → slide-026ef04b.js} +0 -0
- /package/gallery/{slide-c5cb565d.d.ts → slide-36063e76.d.ts} +0 -0
- /package/gallery/{slide-c5cb565d.js → slide-36063e76.js} +0 -0
- /package/pure-cell/{component-e1553bc3.d.ts → component-a5dfdddd.d.ts} +0 -0
- /package/pure-cell/{component-e1553bc3.js → component-a5dfdddd.js} +0 -0
- /package/pure-cell/esm/{component-17015bb0.d.ts → component-a5b5f2d1.d.ts} +0 -0
- /package/pure-cell/esm/{component-17015bb0.js → component-a5b5f2d1.js} +0 -0
- /package/pure-cell/modern/{component-d9b0a296.d.ts → component-591761ce.d.ts} +0 -0
- /package/pure-cell/modern/{component-d9b0a296.js → component-591761ce.js} +0 -0
- /package/select/esm/{hook-b7e947a3.d.ts → hook-a287da6c.d.ts} +0 -0
- /package/select/esm/{hook-b7e947a3.js → hook-a287da6c.js} +0 -0
- /package/select/{hook-c20445cd.d.ts → hook-d8cd1702.d.ts} +0 -0
- /package/select/{hook-c20445cd.js → hook-d8cd1702.js} +0 -0
- /package/select/modern/{hook-3b1b5c82.d.ts → hook-14cdb84d.d.ts} +0 -0
- /package/select/modern/{hook-3b1b5c82.js → hook-14cdb84d.js} +0 -0
- /package/tabs/esm/{index.module-b52b9e17.js → index.module-4151daf2.js} +0 -0
- /package/tabs/esm/{index.module-be3bfbff.js → index.module-525943f3.js} +0 -0
- /package/tabs/{index.module-711e02ae.js → index.module-0382cb1b.js} +0 -0
- /package/tabs/{index.module-05b34f7e.js → index.module-6325dd03.js} +0 -0
- /package/tabs/modern/{index.module-1bf1a955.js → index.module-86f8baa2.js} +0 -0
- /package/tabs/modern/{index.module-810908b2.js → index.module-efbe6ab6.js} +0 -0
- /package/textarea/{PseudoTextArea-e28d5626.d.ts → PseudoTextArea-6e620af2.d.ts} +0 -0
- /package/textarea/{PseudoTextArea-e28d5626.js → PseudoTextArea-6e620af2.js} +0 -0
- /package/textarea/esm/{PseudoTextArea-377a9459.d.ts → PseudoTextArea-a3994a4b.d.ts} +0 -0
- /package/textarea/esm/{PseudoTextArea-377a9459.js → PseudoTextArea-a3994a4b.js} +0 -0
- /package/textarea/modern/{PseudoTextArea-5d699ede.d.ts → PseudoTextArea-7787d54a.d.ts} +0 -0
- /package/textarea/modern/{PseudoTextArea-5d699ede.js → PseudoTextArea-7787d54a.js} +0 -0
- /package/typography/{colors.module-88798512.js → colors.module-49eb285f.js} +0 -0
- /package/typography/{common.module-60c4edff.js → common.module-7275f428.js} +0 -0
- /package/typography/esm/{colors.module-5d0e5d81.js → colors.module-0752fba9.js} +0 -0
- /package/typography/esm/{common.module-980459cf.js → common.module-a41f9d6b.js} +0 -0
- /package/typography/modern/{colors.module-76bf7d31.js → colors.module-bae7f7cd.js} +0 -0
- /package/typography/modern/{common.module-a42461d1.js → common.module-b8a90806.js} +0 -0
|
@@ -202,6 +202,28 @@ type BaseModalContext = {
|
|
|
202
202
|
};
|
|
203
203
|
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
|
204
204
|
declare const BaseModalContext: React.Context<BaseModalContext>;
|
|
205
|
+
interface BackArrowAddonProps extends React.HTMLAttributes<HTMLButtonElement> {
|
|
206
|
+
/**
|
|
207
|
+
* Текст после иконки
|
|
208
|
+
*/
|
|
209
|
+
text?: string;
|
|
210
|
+
/**
|
|
211
|
+
* Дополнительный класс
|
|
212
|
+
*/
|
|
213
|
+
className?: string;
|
|
214
|
+
/**
|
|
215
|
+
* Вид компонента
|
|
216
|
+
*/
|
|
217
|
+
view: "mobile" | "desktop";
|
|
218
|
+
/**
|
|
219
|
+
* Прозрачность текста
|
|
220
|
+
*/
|
|
221
|
+
textOpacity?: number;
|
|
222
|
+
/**
|
|
223
|
+
* Обработчик клика
|
|
224
|
+
*/
|
|
225
|
+
onClick?: () => void;
|
|
226
|
+
}
|
|
205
227
|
interface CloserProps extends ButtonHTMLAttributes<HTMLButtonElement> {
|
|
206
228
|
/**
|
|
207
229
|
* Вид компонента
|
|
@@ -281,6 +303,10 @@ type NavigationBarProps = {
|
|
|
281
303
|
* Дополнительный класс для правого аддона
|
|
282
304
|
*/
|
|
283
305
|
backButtonClassName?: string;
|
|
306
|
+
/**
|
|
307
|
+
* Дополнительные пропсы для кнопки "Назад"
|
|
308
|
+
*/
|
|
309
|
+
backButtonProps?: Omit<BackArrowAddonProps, "view" | "textOpacity" | "onClick">;
|
|
284
310
|
/**
|
|
285
311
|
* Дополнительный класс
|
|
286
312
|
*/
|
|
@@ -472,6 +498,10 @@ type BottomSheetProps = {
|
|
|
472
498
|
* Наличие компонента стрелки назад
|
|
473
499
|
*/
|
|
474
500
|
hasBacker?: boolean;
|
|
501
|
+
/**
|
|
502
|
+
* Дополнительные пропсы для кнопки "Назад"
|
|
503
|
+
*/
|
|
504
|
+
backButtonProps?: NavigationBarProps["backButtonProps"];
|
|
475
505
|
/**
|
|
476
506
|
* Выравнивание заголовка
|
|
477
507
|
*/
|
|
@@ -894,29 +924,6 @@ declare class GlobalStore {
|
|
|
894
924
|
constructor();
|
|
895
925
|
getModalStore: () => ModalStore;
|
|
896
926
|
}
|
|
897
|
-
interface BackArrowAddonProps extends React.HTMLAttributes<HTMLButtonElement> {
|
|
898
|
-
/**
|
|
899
|
-
* Текст после иконки
|
|
900
|
-
*/
|
|
901
|
-
text?: string;
|
|
902
|
-
/**
|
|
903
|
-
* Дополнительный класс
|
|
904
|
-
*/
|
|
905
|
-
className?: string;
|
|
906
|
-
/**
|
|
907
|
-
* Вид компонента
|
|
908
|
-
*/
|
|
909
|
-
view: "mobile" | "desktop";
|
|
910
|
-
/**
|
|
911
|
-
* Прозрачность текста
|
|
912
|
-
*/
|
|
913
|
-
textOpacity?: number;
|
|
914
|
-
/**
|
|
915
|
-
* Обработчик клика
|
|
916
|
-
*/
|
|
917
|
-
onClick?: () => void;
|
|
918
|
-
}
|
|
919
|
-
declare const BackArrowAddon: React.FC<BackArrowAddonProps>;
|
|
920
927
|
declare const colors: readonly [
|
|
921
928
|
"tertiary",
|
|
922
929
|
"disabled",
|
|
@@ -1805,7 +1812,7 @@ type SelectProps = BaseSelectProps & AdditionalMobileProps & ConditionalMobilePr
|
|
|
1805
1812
|
*/
|
|
1806
1813
|
defaultMatchMediaValue?: boolean | (() => boolean);
|
|
1807
1814
|
};
|
|
1808
|
-
export { BottomSheet, CLOSE_OFFSET, HEADER_OFFSET, FormControlProps, FormControl, ModalResponsive as Modal, ModalResponsiveProps as ModalProps, ModalContext, Position, PopoverProps, Popover, FooterProps$0 as FooterProps, Footer$0 as Footer, HeaderProps$0 as HeaderProps, Header$0 as Header, SwipeableBackdropProps, SwipeableBackdrop, stackingOrder, StackingContext, StackProps, Stack, PORTAL_CONTAINER_ATTRIBUTE, getDefaultPortalContainer, setRef, getModalStore, GlobalStore,
|
|
1815
|
+
export { BottomSheet, CLOSE_OFFSET, HEADER_OFFSET, FormControlProps, FormControl, ModalResponsive as Modal, ModalResponsiveProps as ModalProps, ModalContext, Position, PopoverProps, Popover, FooterProps$0 as FooterProps, Footer$0 as Footer, HeaderProps$0 as HeaderProps, Header$0 as Header, SwipeableBackdropProps, SwipeableBackdrop, stackingOrder, StackingContext, StackProps, Stack, PORTAL_CONTAINER_ATTRIBUTE, getDefaultPortalContainer, setRef, getModalStore, GlobalStore, Typography, typographyPresets, TitleResponsive, IconButtonProps, IconButton, Content, ResponsiveContext, AnyObject, OptionShape, GroupShape, BaseSelectChangePayload, BaseSelectProps, FieldProps, ArrowProps, OptionsListProps, OptgroupProps, OptionProps, CheckmarkProps, SearchProps, SelectFieldProps, AdditionalMobileProps, BottomSheetSelectMobileProps, ModalSelectMobileProps, SelectModalMobileProps, SelectMobileProps, SelectDesktopProps, SelectProps };
|
|
1809
1816
|
export type { BottomSheetProps, BottomSheetTitleAlign, HeaderProps as ModalHeaderProps, FooterProps as ModalFooterProps, ContentProps as ModalContentProps, SavedStyle, TitleProps, TextProps, Color };
|
|
1810
1817
|
export * from "./useSkeleton-1b036d4b";
|
|
1811
1818
|
export * from "./Component.desktop-ebda875c";
|
|
@@ -202,6 +202,28 @@ type BaseModalContext = {
|
|
|
202
202
|
};
|
|
203
203
|
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
|
204
204
|
declare const BaseModalContext: React.Context<BaseModalContext>;
|
|
205
|
+
interface BackArrowAddonProps extends React.HTMLAttributes<HTMLButtonElement> {
|
|
206
|
+
/**
|
|
207
|
+
* Текст после иконки
|
|
208
|
+
*/
|
|
209
|
+
text?: string;
|
|
210
|
+
/**
|
|
211
|
+
* Дополнительный класс
|
|
212
|
+
*/
|
|
213
|
+
className?: string;
|
|
214
|
+
/**
|
|
215
|
+
* Вид компонента
|
|
216
|
+
*/
|
|
217
|
+
view: "mobile" | "desktop";
|
|
218
|
+
/**
|
|
219
|
+
* Прозрачность текста
|
|
220
|
+
*/
|
|
221
|
+
textOpacity?: number;
|
|
222
|
+
/**
|
|
223
|
+
* Обработчик клика
|
|
224
|
+
*/
|
|
225
|
+
onClick?: () => void;
|
|
226
|
+
}
|
|
205
227
|
interface CloserProps extends ButtonHTMLAttributes<HTMLButtonElement> {
|
|
206
228
|
/**
|
|
207
229
|
* Вид компонента
|
|
@@ -281,6 +303,10 @@ type NavigationBarProps = {
|
|
|
281
303
|
* Дополнительный класс для правого аддона
|
|
282
304
|
*/
|
|
283
305
|
backButtonClassName?: string;
|
|
306
|
+
/**
|
|
307
|
+
* Дополнительные пропсы для кнопки "Назад"
|
|
308
|
+
*/
|
|
309
|
+
backButtonProps?: Omit<BackArrowAddonProps, "view" | "textOpacity" | "onClick">;
|
|
284
310
|
/**
|
|
285
311
|
* Дополнительный класс
|
|
286
312
|
*/
|
|
@@ -472,6 +498,10 @@ type BottomSheetProps = {
|
|
|
472
498
|
* Наличие компонента стрелки назад
|
|
473
499
|
*/
|
|
474
500
|
hasBacker?: boolean;
|
|
501
|
+
/**
|
|
502
|
+
* Дополнительные пропсы для кнопки "Назад"
|
|
503
|
+
*/
|
|
504
|
+
backButtonProps?: NavigationBarProps["backButtonProps"];
|
|
475
505
|
/**
|
|
476
506
|
* Выравнивание заголовка
|
|
477
507
|
*/
|
|
@@ -894,29 +924,6 @@ declare class GlobalStore {
|
|
|
894
924
|
constructor();
|
|
895
925
|
getModalStore: () => ModalStore;
|
|
896
926
|
}
|
|
897
|
-
interface BackArrowAddonProps extends React.HTMLAttributes<HTMLButtonElement> {
|
|
898
|
-
/**
|
|
899
|
-
* Текст после иконки
|
|
900
|
-
*/
|
|
901
|
-
text?: string;
|
|
902
|
-
/**
|
|
903
|
-
* Дополнительный класс
|
|
904
|
-
*/
|
|
905
|
-
className?: string;
|
|
906
|
-
/**
|
|
907
|
-
* Вид компонента
|
|
908
|
-
*/
|
|
909
|
-
view: "mobile" | "desktop";
|
|
910
|
-
/**
|
|
911
|
-
* Прозрачность текста
|
|
912
|
-
*/
|
|
913
|
-
textOpacity?: number;
|
|
914
|
-
/**
|
|
915
|
-
* Обработчик клика
|
|
916
|
-
*/
|
|
917
|
-
onClick?: () => void;
|
|
918
|
-
}
|
|
919
|
-
declare const BackArrowAddon: React.FC<BackArrowAddonProps>;
|
|
920
927
|
declare const colors: readonly [
|
|
921
928
|
"tertiary",
|
|
922
929
|
"disabled",
|
|
@@ -1805,7 +1812,7 @@ type SelectProps = BaseSelectProps & AdditionalMobileProps & ConditionalMobilePr
|
|
|
1805
1812
|
*/
|
|
1806
1813
|
defaultMatchMediaValue?: boolean | (() => boolean);
|
|
1807
1814
|
};
|
|
1808
|
-
export { BottomSheet, CLOSE_OFFSET, HEADER_OFFSET, FormControlProps, FormControl, ModalResponsive as Modal, ModalResponsiveProps as ModalProps, ModalContext, Position, PopoverProps, Popover, FooterProps$0 as FooterProps, Footer$0 as Footer, HeaderProps$0 as HeaderProps, Header$0 as Header, SwipeableBackdropProps, SwipeableBackdrop, stackingOrder, StackingContext, StackProps, Stack, PORTAL_CONTAINER_ATTRIBUTE, getDefaultPortalContainer, setRef, getModalStore, GlobalStore,
|
|
1815
|
+
export { BottomSheet, CLOSE_OFFSET, HEADER_OFFSET, FormControlProps, FormControl, ModalResponsive as Modal, ModalResponsiveProps as ModalProps, ModalContext, Position, PopoverProps, Popover, FooterProps$0 as FooterProps, Footer$0 as Footer, HeaderProps$0 as HeaderProps, Header$0 as Header, SwipeableBackdropProps, SwipeableBackdrop, stackingOrder, StackingContext, StackProps, Stack, PORTAL_CONTAINER_ATTRIBUTE, getDefaultPortalContainer, setRef, getModalStore, GlobalStore, Typography, typographyPresets, TitleResponsive, IconButtonProps, IconButton, Content, ResponsiveContext, AnyObject, OptionShape, GroupShape, BaseSelectChangePayload, BaseSelectProps, FieldProps, ArrowProps, OptionsListProps, OptgroupProps, OptionProps, CheckmarkProps, SearchProps, SelectFieldProps, AdditionalMobileProps, BottomSheetSelectMobileProps, ModalSelectMobileProps, SelectModalMobileProps, SelectMobileProps, SelectDesktopProps, SelectProps };
|
|
1809
1816
|
export type { BottomSheetProps, BottomSheetTitleAlign, HeaderProps as ModalHeaderProps, FooterProps as ModalFooterProps, ContentProps as ModalContentProps, SavedStyle, TitleProps, TextProps, Color };
|
|
1810
1817
|
export * from "./useSkeleton-1b036d4b";
|
|
1811
1818
|
export * from "./Component.desktop-ebda875c";
|
|
@@ -202,6 +202,28 @@ type BaseModalContext = {
|
|
|
202
202
|
};
|
|
203
203
|
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
|
204
204
|
declare const BaseModalContext: React.Context<BaseModalContext>;
|
|
205
|
+
interface BackArrowAddonProps extends React.HTMLAttributes<HTMLButtonElement> {
|
|
206
|
+
/**
|
|
207
|
+
* Текст после иконки
|
|
208
|
+
*/
|
|
209
|
+
text?: string;
|
|
210
|
+
/**
|
|
211
|
+
* Дополнительный класс
|
|
212
|
+
*/
|
|
213
|
+
className?: string;
|
|
214
|
+
/**
|
|
215
|
+
* Вид компонента
|
|
216
|
+
*/
|
|
217
|
+
view: "mobile" | "desktop";
|
|
218
|
+
/**
|
|
219
|
+
* Прозрачность текста
|
|
220
|
+
*/
|
|
221
|
+
textOpacity?: number;
|
|
222
|
+
/**
|
|
223
|
+
* Обработчик клика
|
|
224
|
+
*/
|
|
225
|
+
onClick?: () => void;
|
|
226
|
+
}
|
|
205
227
|
interface CloserProps extends ButtonHTMLAttributes<HTMLButtonElement> {
|
|
206
228
|
/**
|
|
207
229
|
* Вид компонента
|
|
@@ -281,6 +303,10 @@ type NavigationBarProps = {
|
|
|
281
303
|
* Дополнительный класс для правого аддона
|
|
282
304
|
*/
|
|
283
305
|
backButtonClassName?: string;
|
|
306
|
+
/**
|
|
307
|
+
* Дополнительные пропсы для кнопки "Назад"
|
|
308
|
+
*/
|
|
309
|
+
backButtonProps?: Omit<BackArrowAddonProps, "view" | "textOpacity" | "onClick">;
|
|
284
310
|
/**
|
|
285
311
|
* Дополнительный класс
|
|
286
312
|
*/
|
|
@@ -472,6 +498,10 @@ type BottomSheetProps = {
|
|
|
472
498
|
* Наличие компонента стрелки назад
|
|
473
499
|
*/
|
|
474
500
|
hasBacker?: boolean;
|
|
501
|
+
/**
|
|
502
|
+
* Дополнительные пропсы для кнопки "Назад"
|
|
503
|
+
*/
|
|
504
|
+
backButtonProps?: NavigationBarProps["backButtonProps"];
|
|
475
505
|
/**
|
|
476
506
|
* Выравнивание заголовка
|
|
477
507
|
*/
|
|
@@ -894,29 +924,6 @@ declare class GlobalStore {
|
|
|
894
924
|
constructor();
|
|
895
925
|
getModalStore: () => ModalStore;
|
|
896
926
|
}
|
|
897
|
-
interface BackArrowAddonProps extends React.HTMLAttributes<HTMLButtonElement> {
|
|
898
|
-
/**
|
|
899
|
-
* Текст после иконки
|
|
900
|
-
*/
|
|
901
|
-
text?: string;
|
|
902
|
-
/**
|
|
903
|
-
* Дополнительный класс
|
|
904
|
-
*/
|
|
905
|
-
className?: string;
|
|
906
|
-
/**
|
|
907
|
-
* Вид компонента
|
|
908
|
-
*/
|
|
909
|
-
view: "mobile" | "desktop";
|
|
910
|
-
/**
|
|
911
|
-
* Прозрачность текста
|
|
912
|
-
*/
|
|
913
|
-
textOpacity?: number;
|
|
914
|
-
/**
|
|
915
|
-
* Обработчик клика
|
|
916
|
-
*/
|
|
917
|
-
onClick?: () => void;
|
|
918
|
-
}
|
|
919
|
-
declare const BackArrowAddon: React.FC<BackArrowAddonProps>;
|
|
920
927
|
declare const colors: readonly [
|
|
921
928
|
"tertiary",
|
|
922
929
|
"disabled",
|
|
@@ -1805,7 +1812,7 @@ type SelectProps = BaseSelectProps & AdditionalMobileProps & ConditionalMobilePr
|
|
|
1805
1812
|
*/
|
|
1806
1813
|
defaultMatchMediaValue?: boolean | (() => boolean);
|
|
1807
1814
|
};
|
|
1808
|
-
export { BottomSheet, CLOSE_OFFSET, HEADER_OFFSET, FormControlProps, FormControl, ModalResponsive as Modal, ModalResponsiveProps as ModalProps, ModalContext, Position, PopoverProps, Popover, FooterProps$0 as FooterProps, Footer$0 as Footer, HeaderProps$0 as HeaderProps, Header$0 as Header, SwipeableBackdropProps, SwipeableBackdrop, stackingOrder, StackingContext, StackProps, Stack, PORTAL_CONTAINER_ATTRIBUTE, getDefaultPortalContainer, setRef, getModalStore, GlobalStore,
|
|
1815
|
+
export { BottomSheet, CLOSE_OFFSET, HEADER_OFFSET, FormControlProps, FormControl, ModalResponsive as Modal, ModalResponsiveProps as ModalProps, ModalContext, Position, PopoverProps, Popover, FooterProps$0 as FooterProps, Footer$0 as Footer, HeaderProps$0 as HeaderProps, Header$0 as Header, SwipeableBackdropProps, SwipeableBackdrop, stackingOrder, StackingContext, StackProps, Stack, PORTAL_CONTAINER_ATTRIBUTE, getDefaultPortalContainer, setRef, getModalStore, GlobalStore, Typography, typographyPresets, TitleResponsive, IconButtonProps, IconButton, Content, ResponsiveContext, AnyObject, OptionShape, GroupShape, BaseSelectChangePayload, BaseSelectProps, FieldProps, ArrowProps, OptionsListProps, OptgroupProps, OptionProps, CheckmarkProps, SearchProps, SelectFieldProps, AdditionalMobileProps, BottomSheetSelectMobileProps, ModalSelectMobileProps, SelectModalMobileProps, SelectMobileProps, SelectDesktopProps, SelectProps };
|
|
1809
1816
|
export type { BottomSheetProps, BottomSheetTitleAlign, HeaderProps as ModalHeaderProps, FooterProps as ModalFooterProps, ContentProps as ModalContentProps, SavedStyle, TitleProps, TextProps, Color };
|
|
1810
1817
|
export * from "./useSkeleton-1b036d4b";
|
|
1811
1818
|
export * from "./Component.desktop-ebda875c";
|
|
@@ -202,6 +202,28 @@ type BaseModalContext = {
|
|
|
202
202
|
};
|
|
203
203
|
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
|
204
204
|
declare const BaseModalContext: React.Context<BaseModalContext>;
|
|
205
|
+
interface BackArrowAddonProps extends React.HTMLAttributes<HTMLButtonElement> {
|
|
206
|
+
/**
|
|
207
|
+
* Текст после иконки
|
|
208
|
+
*/
|
|
209
|
+
text?: string;
|
|
210
|
+
/**
|
|
211
|
+
* Дополнительный класс
|
|
212
|
+
*/
|
|
213
|
+
className?: string;
|
|
214
|
+
/**
|
|
215
|
+
* Вид компонента
|
|
216
|
+
*/
|
|
217
|
+
view: "mobile" | "desktop";
|
|
218
|
+
/**
|
|
219
|
+
* Прозрачность текста
|
|
220
|
+
*/
|
|
221
|
+
textOpacity?: number;
|
|
222
|
+
/**
|
|
223
|
+
* Обработчик клика
|
|
224
|
+
*/
|
|
225
|
+
onClick?: () => void;
|
|
226
|
+
}
|
|
205
227
|
interface CloserProps extends ButtonHTMLAttributes<HTMLButtonElement> {
|
|
206
228
|
/**
|
|
207
229
|
* Вид компонента
|
|
@@ -281,6 +303,10 @@ type NavigationBarProps = {
|
|
|
281
303
|
* Дополнительный класс для правого аддона
|
|
282
304
|
*/
|
|
283
305
|
backButtonClassName?: string;
|
|
306
|
+
/**
|
|
307
|
+
* Дополнительные пропсы для кнопки "Назад"
|
|
308
|
+
*/
|
|
309
|
+
backButtonProps?: Omit<BackArrowAddonProps, "view" | "textOpacity" | "onClick">;
|
|
284
310
|
/**
|
|
285
311
|
* Дополнительный класс
|
|
286
312
|
*/
|
|
@@ -472,6 +498,10 @@ type BottomSheetProps = {
|
|
|
472
498
|
* Наличие компонента стрелки назад
|
|
473
499
|
*/
|
|
474
500
|
hasBacker?: boolean;
|
|
501
|
+
/**
|
|
502
|
+
* Дополнительные пропсы для кнопки "Назад"
|
|
503
|
+
*/
|
|
504
|
+
backButtonProps?: NavigationBarProps["backButtonProps"];
|
|
475
505
|
/**
|
|
476
506
|
* Выравнивание заголовка
|
|
477
507
|
*/
|
|
@@ -894,29 +924,6 @@ declare class GlobalStore {
|
|
|
894
924
|
constructor();
|
|
895
925
|
getModalStore: () => ModalStore;
|
|
896
926
|
}
|
|
897
|
-
interface BackArrowAddonProps extends React.HTMLAttributes<HTMLButtonElement> {
|
|
898
|
-
/**
|
|
899
|
-
* Текст после иконки
|
|
900
|
-
*/
|
|
901
|
-
text?: string;
|
|
902
|
-
/**
|
|
903
|
-
* Дополнительный класс
|
|
904
|
-
*/
|
|
905
|
-
className?: string;
|
|
906
|
-
/**
|
|
907
|
-
* Вид компонента
|
|
908
|
-
*/
|
|
909
|
-
view: "mobile" | "desktop";
|
|
910
|
-
/**
|
|
911
|
-
* Прозрачность текста
|
|
912
|
-
*/
|
|
913
|
-
textOpacity?: number;
|
|
914
|
-
/**
|
|
915
|
-
* Обработчик клика
|
|
916
|
-
*/
|
|
917
|
-
onClick?: () => void;
|
|
918
|
-
}
|
|
919
|
-
declare const BackArrowAddon: React.FC<BackArrowAddonProps>;
|
|
920
927
|
declare const colors: readonly [
|
|
921
928
|
"tertiary",
|
|
922
929
|
"disabled",
|
|
@@ -1805,7 +1812,7 @@ type SelectProps = BaseSelectProps & AdditionalMobileProps & ConditionalMobilePr
|
|
|
1805
1812
|
*/
|
|
1806
1813
|
defaultMatchMediaValue?: boolean | (() => boolean);
|
|
1807
1814
|
};
|
|
1808
|
-
export { BottomSheet, CLOSE_OFFSET, HEADER_OFFSET, FormControlProps, FormControl, ModalResponsive as Modal, ModalResponsiveProps as ModalProps, ModalContext, Position, PopoverProps, Popover, FooterProps$0 as FooterProps, Footer$0 as Footer, HeaderProps$0 as HeaderProps, Header$0 as Header, SwipeableBackdropProps, SwipeableBackdrop, stackingOrder, StackingContext, StackProps, Stack, PORTAL_CONTAINER_ATTRIBUTE, getDefaultPortalContainer, setRef, getModalStore, GlobalStore,
|
|
1815
|
+
export { BottomSheet, CLOSE_OFFSET, HEADER_OFFSET, FormControlProps, FormControl, ModalResponsive as Modal, ModalResponsiveProps as ModalProps, ModalContext, Position, PopoverProps, Popover, FooterProps$0 as FooterProps, Footer$0 as Footer, HeaderProps$0 as HeaderProps, Header$0 as Header, SwipeableBackdropProps, SwipeableBackdrop, stackingOrder, StackingContext, StackProps, Stack, PORTAL_CONTAINER_ATTRIBUTE, getDefaultPortalContainer, setRef, getModalStore, GlobalStore, Typography, typographyPresets, TitleResponsive, IconButtonProps, IconButton, Content, ResponsiveContext, AnyObject, OptionShape, GroupShape, BaseSelectChangePayload, BaseSelectProps, FieldProps, ArrowProps, OptionsListProps, OptgroupProps, OptionProps, CheckmarkProps, SearchProps, SelectFieldProps, AdditionalMobileProps, BottomSheetSelectMobileProps, ModalSelectMobileProps, SelectModalMobileProps, SelectMobileProps, SelectDesktopProps, SelectProps };
|
|
1809
1816
|
export type { BottomSheetProps, BottomSheetTitleAlign, HeaderProps as ModalHeaderProps, FooterProps as ModalFooterProps, ContentProps as ModalContentProps, SavedStyle, TitleProps, TextProps, Color };
|
|
1810
1817
|
export * from "./useSkeleton-1b036d4b";
|
|
1811
1818
|
export * from "./Component.desktop-ebda875c";
|
|
@@ -28,7 +28,7 @@ require('./index.css');
|
|
|
28
28
|
var ADDONS_HEIGHT = 48;
|
|
29
29
|
var NavigationBar = React.forwardRef(function (_a, ref) {
|
|
30
30
|
var _b, _c, _d;
|
|
31
|
-
var addonClassName = _a.addonClassName, className = _a.className, contentClassName = _a.contentClassName, closerClassName = _a.closerClassName, leftAddons = _a.leftAddons, rightAddons = _a.rightAddons, bottomAddons = _a.bottomAddons, bottomAddonsClassName = _a.bottomAddonsClassName, children = _a.children, _e = _a.align, align = _e === void 0 ? 'left' : _e, _f = _a.trim, trim = _f === void 0 ? true : _f, title = _a.title, _g = _a.titleSize, titleSize = _g === void 0 ? 'default' : _g, subtitle = _a.subtitle, hasCloser = _a.hasCloser, hasBackButton = _a.hasBackButton, backButtonClassName = _a.backButtonClassName, dataTestId = _a.dataTestId, imageUrl = _a.imageUrl, closerIcon = _a.closerIcon, onClose = _a.onClose, view = _a.view, scrollableParentRef = _a.scrollableParentRef, sticky = _a.sticky, onBack = _a.onBack;
|
|
31
|
+
var addonClassName = _a.addonClassName, className = _a.className, contentClassName = _a.contentClassName, closerClassName = _a.closerClassName, leftAddons = _a.leftAddons, rightAddons = _a.rightAddons, bottomAddons = _a.bottomAddons, bottomAddonsClassName = _a.bottomAddonsClassName, children = _a.children, _e = _a.align, align = _e === void 0 ? 'left' : _e, _f = _a.trim, trim = _f === void 0 ? true : _f, title = _a.title, _g = _a.titleSize, titleSize = _g === void 0 ? 'default' : _g, subtitle = _a.subtitle, hasCloser = _a.hasCloser, hasBackButton = _a.hasBackButton, backButtonClassName = _a.backButtonClassName, backButtonProps = _a.backButtonProps, dataTestId = _a.dataTestId, imageUrl = _a.imageUrl, closerIcon = _a.closerIcon, onClose = _a.onClose, view = _a.view, scrollableParentRef = _a.scrollableParentRef, sticky = _a.sticky, onBack = _a.onBack;
|
|
32
32
|
var _h = React.useState(0), scrollTop = _h[0], setScrollTop = _h[1];
|
|
33
33
|
var _j = React.useState({ left: 0, right: 0 }), titleMargin = _j[0], setTitleMargin = _j[1];
|
|
34
34
|
var bottomContentRef = React.useRef(null);
|
|
@@ -96,7 +96,7 @@ var NavigationBar = React.forwardRef(function (_a, ref) {
|
|
|
96
96
|
textOpacity = 0;
|
|
97
97
|
}
|
|
98
98
|
return (React__default.default.createElement("div", { className: cn__default.default(styles.addon, backButtonClassName) },
|
|
99
|
-
React__default.default.createElement(components_backArrowAddon_Component.BackArrowAddon, {
|
|
99
|
+
React__default.default.createElement(components_backArrowAddon_Component.BackArrowAddon, tslib.__assign({ "data-test-id": coreComponentsShared.getDataTestId(dataTestId, 'back-button') }, backButtonProps, { textOpacity: textOpacity, view: view, onClick: onBack }))));
|
|
100
100
|
};
|
|
101
101
|
var renderContent = function (args) {
|
|
102
102
|
var _a;
|
|
@@ -29,7 +29,7 @@ var styles__default = /*#__PURE__*/_interopDefaultCompat(styles);
|
|
|
29
29
|
var ADDONS_HEIGHT = 48;
|
|
30
30
|
var NavigationBar = React.forwardRef(function (_a, ref) {
|
|
31
31
|
var _b, _c, _d;
|
|
32
|
-
var addonClassName = _a.addonClassName, className = _a.className, contentClassName = _a.contentClassName, closerClassName = _a.closerClassName, leftAddons = _a.leftAddons, rightAddons = _a.rightAddons, bottomAddons = _a.bottomAddons, bottomAddonsClassName = _a.bottomAddonsClassName, children = _a.children, _e = _a.align, align = _e === void 0 ? 'left' : _e, _f = _a.trim, trim = _f === void 0 ? true : _f, title = _a.title, _g = _a.titleSize, titleSize = _g === void 0 ? 'default' : _g, subtitle = _a.subtitle, hasCloser = _a.hasCloser, hasBackButton = _a.hasBackButton, backButtonClassName = _a.backButtonClassName, dataTestId = _a.dataTestId, imageUrl = _a.imageUrl, closerIcon = _a.closerIcon, onClose = _a.onClose, view = _a.view, scrollableParentRef = _a.scrollableParentRef, sticky = _a.sticky, onBack = _a.onBack;
|
|
32
|
+
var addonClassName = _a.addonClassName, className = _a.className, contentClassName = _a.contentClassName, closerClassName = _a.closerClassName, leftAddons = _a.leftAddons, rightAddons = _a.rightAddons, bottomAddons = _a.bottomAddons, bottomAddonsClassName = _a.bottomAddonsClassName, children = _a.children, _e = _a.align, align = _e === void 0 ? 'left' : _e, _f = _a.trim, trim = _f === void 0 ? true : _f, title = _a.title, _g = _a.titleSize, titleSize = _g === void 0 ? 'default' : _g, subtitle = _a.subtitle, hasCloser = _a.hasCloser, hasBackButton = _a.hasBackButton, backButtonClassName = _a.backButtonClassName, backButtonProps = _a.backButtonProps, dataTestId = _a.dataTestId, imageUrl = _a.imageUrl, closerIcon = _a.closerIcon, onClose = _a.onClose, view = _a.view, scrollableParentRef = _a.scrollableParentRef, sticky = _a.sticky, onBack = _a.onBack;
|
|
33
33
|
var _h = React.useState(0), scrollTop = _h[0], setScrollTop = _h[1];
|
|
34
34
|
var _j = React.useState({ left: 0, right: 0 }), titleMargin = _j[0], setTitleMargin = _j[1];
|
|
35
35
|
var bottomContentRef = React.useRef(null);
|
|
@@ -97,7 +97,7 @@ var NavigationBar = React.forwardRef(function (_a, ref) {
|
|
|
97
97
|
textOpacity = 0;
|
|
98
98
|
}
|
|
99
99
|
return (React__default.default.createElement("div", { className: cn__default.default(styles__default.default.addon, backButtonClassName) },
|
|
100
|
-
React__default.default.createElement(components_backArrowAddon_Component.BackArrowAddon, {
|
|
100
|
+
React__default.default.createElement(components_backArrowAddon_Component.BackArrowAddon, tslib.__assign({ "data-test-id": coreComponentsShared.getDataTestId(dataTestId, 'back-button') }, backButtonProps, { textOpacity: textOpacity, view: view, onClick: onBack }))));
|
|
101
101
|
};
|
|
102
102
|
var renderContent = function (args) {
|
|
103
103
|
var _a;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { ReactNode } from "react";
|
|
4
|
+
import { BackArrowAddonProps } from "./components/back-arrow-addon/index";
|
|
4
5
|
import { CloserProps } from "./components/closer/index";
|
|
5
6
|
type NavigationBarProps = {
|
|
6
7
|
/**
|
|
@@ -51,6 +52,10 @@ type NavigationBarProps = {
|
|
|
51
52
|
* Дополнительный класс для правого аддона
|
|
52
53
|
*/
|
|
53
54
|
backButtonClassName?: string;
|
|
55
|
+
/**
|
|
56
|
+
* Дополнительные пропсы для кнопки "Назад"
|
|
57
|
+
*/
|
|
58
|
+
backButtonProps?: Omit<BackArrowAddonProps, 'view' | 'textOpacity' | 'onClick'>;
|
|
54
59
|
/**
|
|
55
60
|
* Дополнительный класс
|
|
56
61
|
*/
|
|
@@ -20,7 +20,7 @@ require('./index.css');
|
|
|
20
20
|
var ADDONS_HEIGHT = 48;
|
|
21
21
|
var NavigationBar = forwardRef(function (_a, ref) {
|
|
22
22
|
var _b, _c, _d;
|
|
23
|
-
var addonClassName = _a.addonClassName, className = _a.className, contentClassName = _a.contentClassName, closerClassName = _a.closerClassName, leftAddons = _a.leftAddons, rightAddons = _a.rightAddons, bottomAddons = _a.bottomAddons, bottomAddonsClassName = _a.bottomAddonsClassName, children = _a.children, _e = _a.align, align = _e === void 0 ? 'left' : _e, _f = _a.trim, trim = _f === void 0 ? true : _f, title = _a.title, _g = _a.titleSize, titleSize = _g === void 0 ? 'default' : _g, subtitle = _a.subtitle, hasCloser = _a.hasCloser, hasBackButton = _a.hasBackButton, backButtonClassName = _a.backButtonClassName, dataTestId = _a.dataTestId, imageUrl = _a.imageUrl, closerIcon = _a.closerIcon, onClose = _a.onClose, view = _a.view, scrollableParentRef = _a.scrollableParentRef, sticky = _a.sticky, onBack = _a.onBack;
|
|
23
|
+
var addonClassName = _a.addonClassName, className = _a.className, contentClassName = _a.contentClassName, closerClassName = _a.closerClassName, leftAddons = _a.leftAddons, rightAddons = _a.rightAddons, bottomAddons = _a.bottomAddons, bottomAddonsClassName = _a.bottomAddonsClassName, children = _a.children, _e = _a.align, align = _e === void 0 ? 'left' : _e, _f = _a.trim, trim = _f === void 0 ? true : _f, title = _a.title, _g = _a.titleSize, titleSize = _g === void 0 ? 'default' : _g, subtitle = _a.subtitle, hasCloser = _a.hasCloser, hasBackButton = _a.hasBackButton, backButtonClassName = _a.backButtonClassName, backButtonProps = _a.backButtonProps, dataTestId = _a.dataTestId, imageUrl = _a.imageUrl, closerIcon = _a.closerIcon, onClose = _a.onClose, view = _a.view, scrollableParentRef = _a.scrollableParentRef, sticky = _a.sticky, onBack = _a.onBack;
|
|
24
24
|
var _h = useState(0), scrollTop = _h[0], setScrollTop = _h[1];
|
|
25
25
|
var _j = useState({ left: 0, right: 0 }), titleMargin = _j[0], setTitleMargin = _j[1];
|
|
26
26
|
var bottomContentRef = useRef(null);
|
|
@@ -88,7 +88,7 @@ var NavigationBar = forwardRef(function (_a, ref) {
|
|
|
88
88
|
textOpacity = 0;
|
|
89
89
|
}
|
|
90
90
|
return (React.createElement("div", { className: cn(styles.addon, backButtonClassName) },
|
|
91
|
-
React.createElement(BackArrowAddon, {
|
|
91
|
+
React.createElement(BackArrowAddon, __assign({ "data-test-id": getDataTestId(dataTestId, 'back-button') }, backButtonProps, { textOpacity: textOpacity, view: view, onClick: onBack }))));
|
|
92
92
|
};
|
|
93
93
|
var renderContent = function (args) {
|
|
94
94
|
var _a;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { ReactNode } from "react";
|
|
4
|
+
import { BackArrowAddonProps } from "./components/back-arrow-addon/index";
|
|
4
5
|
import { CloserProps } from "./components/closer/index";
|
|
5
6
|
type NavigationBarProps = {
|
|
6
7
|
/**
|
|
@@ -51,6 +52,10 @@ type NavigationBarProps = {
|
|
|
51
52
|
* Дополнительный класс для правого аддона
|
|
52
53
|
*/
|
|
53
54
|
backButtonClassName?: string;
|
|
55
|
+
/**
|
|
56
|
+
* Дополнительные пропсы для кнопки "Назад"
|
|
57
|
+
*/
|
|
58
|
+
backButtonProps?: Omit<BackArrowAddonProps, 'view' | 'textOpacity' | 'onClick'>;
|
|
54
59
|
/**
|
|
55
60
|
* Дополнительный класс
|
|
56
61
|
*/
|
|
@@ -18,7 +18,7 @@ require('./index.css');
|
|
|
18
18
|
|
|
19
19
|
/* eslint-disable complexity */
|
|
20
20
|
const ADDONS_HEIGHT = 48;
|
|
21
|
-
const NavigationBar = forwardRef(({ addonClassName, className, contentClassName, closerClassName, leftAddons, rightAddons, bottomAddons, bottomAddonsClassName, children, align = 'left', trim = true, title, titleSize = 'default', subtitle, hasCloser, hasBackButton, backButtonClassName, dataTestId, imageUrl, closerIcon, onClose, view, scrollableParentRef, sticky, onBack, }, ref) => {
|
|
21
|
+
const NavigationBar = forwardRef(({ addonClassName, className, contentClassName, closerClassName, leftAddons, rightAddons, bottomAddons, bottomAddonsClassName, children, align = 'left', trim = true, title, titleSize = 'default', subtitle, hasCloser, hasBackButton, backButtonClassName, backButtonProps, dataTestId, imageUrl, closerIcon, onClose, view, scrollableParentRef, sticky, onBack, }, ref) => {
|
|
22
22
|
const [scrollTop, setScrollTop] = useState(0);
|
|
23
23
|
const [titleMargin, setTitleMargin] = useState({ left: 0, right: 0 });
|
|
24
24
|
const bottomContentRef = useRef(null);
|
|
@@ -85,7 +85,7 @@ const NavigationBar = forwardRef(({ addonClassName, className, contentClassName,
|
|
|
85
85
|
textOpacity = 0;
|
|
86
86
|
}
|
|
87
87
|
return (React.createElement("div", { className: cn(styles.addon, backButtonClassName) },
|
|
88
|
-
React.createElement(BackArrowAddon, {
|
|
88
|
+
React.createElement(BackArrowAddon, { "data-test-id": getDataTestId(dataTestId, 'back-button'), ...backButtonProps, textOpacity: textOpacity, view: view, onClick: onBack })));
|
|
89
89
|
};
|
|
90
90
|
const renderContent = (args = {}) => {
|
|
91
91
|
const { extraClassName, wrapperRef, style, hidden } = args;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { ReactNode } from "react";
|
|
4
|
+
import { BackArrowAddonProps } from "./components/back-arrow-addon/index";
|
|
4
5
|
import { CloserProps } from "./components/closer/index";
|
|
5
6
|
type NavigationBarProps = {
|
|
6
7
|
/**
|
|
@@ -51,6 +52,10 @@ type NavigationBarProps = {
|
|
|
51
52
|
* Дополнительный класс для правого аддона
|
|
52
53
|
*/
|
|
53
54
|
backButtonClassName?: string;
|
|
55
|
+
/**
|
|
56
|
+
* Дополнительные пропсы для кнопки "Назад"
|
|
57
|
+
*/
|
|
58
|
+
backButtonProps?: Omit<BackArrowAddonProps, 'view' | 'textOpacity' | 'onClick'>;
|
|
54
59
|
/**
|
|
55
60
|
* Дополнительный класс
|
|
56
61
|
*/
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { ReactNode } from "react";
|
|
4
|
+
import { BackArrowAddonProps } from "./components/back-arrow-addon/index";
|
|
4
5
|
import { CloserProps } from "./components/closer/index";
|
|
5
6
|
type NavigationBarProps = {
|
|
6
7
|
/**
|
|
@@ -51,6 +52,10 @@ type NavigationBarProps = {
|
|
|
51
52
|
* Дополнительный класс для правого аддона
|
|
52
53
|
*/
|
|
53
54
|
backButtonClassName?: string;
|
|
55
|
+
/**
|
|
56
|
+
* Дополнительные пропсы для кнопки "Назад"
|
|
57
|
+
*/
|
|
58
|
+
backButtonProps?: Omit<BackArrowAddonProps, 'view' | 'textOpacity' | 'onClick'>;
|
|
54
59
|
/**
|
|
55
60
|
* Дополнительный класс
|
|
56
61
|
*/
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { ReactNode } from "react";
|
|
4
|
-
import { CloserProps } from "./index-ebda875c";
|
|
4
|
+
import { BackArrowAddonProps, CloserProps } from "./index-ebda875c";
|
|
5
5
|
type NavigationBarProps = {
|
|
6
6
|
/**
|
|
7
7
|
* Контент шапки
|
|
@@ -51,6 +51,10 @@ type NavigationBarProps = {
|
|
|
51
51
|
* Дополнительный класс для правого аддона
|
|
52
52
|
*/
|
|
53
53
|
backButtonClassName?: string;
|
|
54
|
+
/**
|
|
55
|
+
* Дополнительные пропсы для кнопки "Назад"
|
|
56
|
+
*/
|
|
57
|
+
backButtonProps?: Omit<BackArrowAddonProps, 'view' | 'textOpacity' | 'onClick'>;
|
|
54
58
|
/**
|
|
55
59
|
* Дополнительный класс
|
|
56
60
|
*/
|
|
@@ -5,7 +5,7 @@ import { HTMLAttributes, ReactElement, ReactNode, RefObject, FC, KeyboardEvent,
|
|
|
5
5
|
import { HandledEvents } from "react-swipeable/es/types";
|
|
6
6
|
import { TransitionProps } from "react-transition-group/Transition";
|
|
7
7
|
import { CSSTransitionClassNames } from "react-transition-group/CSSTransition";
|
|
8
|
-
import { NavigationBarProps } from "./types-
|
|
8
|
+
import { NavigationBarProps } from "./types-667e33fd";
|
|
9
9
|
import { BackgroundColorType } from "./index-72dda473";
|
|
10
10
|
import { BaseInputProps } from "./index-ebda875c";
|
|
11
11
|
import { SwipeableHandlers } from "react-swipeable";
|
|
@@ -340,6 +340,10 @@ type BottomSheetProps = {
|
|
|
340
340
|
* Наличие компонента стрелки назад
|
|
341
341
|
*/
|
|
342
342
|
hasBacker?: boolean;
|
|
343
|
+
/**
|
|
344
|
+
* Дополнительные пропсы для кнопки "Назад"
|
|
345
|
+
*/
|
|
346
|
+
backButtonProps?: NavigationBarProps["backButtonProps"];
|
|
343
347
|
/**
|
|
344
348
|
* Выравнивание заголовка
|
|
345
349
|
*/
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { ReactNode } from "react";
|
|
4
|
-
import { CloserProps } from "./index-ebda875c";
|
|
4
|
+
import { BackArrowAddonProps, CloserProps } from "./index-ebda875c";
|
|
5
5
|
type NavigationBarProps = {
|
|
6
6
|
/**
|
|
7
7
|
* Контент шапки
|
|
@@ -51,6 +51,10 @@ type NavigationBarProps = {
|
|
|
51
51
|
* Дополнительный класс для правого аддона
|
|
52
52
|
*/
|
|
53
53
|
backButtonClassName?: string;
|
|
54
|
+
/**
|
|
55
|
+
* Дополнительные пропсы для кнопки "Назад"
|
|
56
|
+
*/
|
|
57
|
+
backButtonProps?: Omit<BackArrowAddonProps, 'view' | 'textOpacity' | 'onClick'>;
|
|
54
58
|
/**
|
|
55
59
|
* Дополнительный класс
|
|
56
60
|
*/
|
|
@@ -5,7 +5,7 @@ import { HTMLAttributes, ReactElement, ReactNode, RefObject, FC, KeyboardEvent,
|
|
|
5
5
|
import { HandledEvents } from "react-swipeable/es/types";
|
|
6
6
|
import { TransitionProps } from "react-transition-group/Transition";
|
|
7
7
|
import { CSSTransitionClassNames } from "react-transition-group/CSSTransition";
|
|
8
|
-
import { NavigationBarProps } from "./types-
|
|
8
|
+
import { NavigationBarProps } from "./types-667e33fd";
|
|
9
9
|
import { BackgroundColorType } from "./index-72dda473";
|
|
10
10
|
import { BaseInputProps } from "./index-ebda875c";
|
|
11
11
|
import { SwipeableHandlers } from "react-swipeable";
|
|
@@ -340,6 +340,10 @@ type BottomSheetProps = {
|
|
|
340
340
|
* Наличие компонента стрелки назад
|
|
341
341
|
*/
|
|
342
342
|
hasBacker?: boolean;
|
|
343
|
+
/**
|
|
344
|
+
* Дополнительные пропсы для кнопки "Назад"
|
|
345
|
+
*/
|
|
346
|
+
backButtonProps?: NavigationBarProps["backButtonProps"];
|
|
343
347
|
/**
|
|
344
348
|
* Выравнивание заголовка
|
|
345
349
|
*/
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { ReactNode } from "react";
|
|
4
|
-
import { CloserProps } from "./index-ebda875c";
|
|
4
|
+
import { BackArrowAddonProps, CloserProps } from "./index-ebda875c";
|
|
5
5
|
type NavigationBarProps = {
|
|
6
6
|
/**
|
|
7
7
|
* Контент шапки
|
|
@@ -51,6 +51,10 @@ type NavigationBarProps = {
|
|
|
51
51
|
* Дополнительный класс для правого аддона
|
|
52
52
|
*/
|
|
53
53
|
backButtonClassName?: string;
|
|
54
|
+
/**
|
|
55
|
+
* Дополнительные пропсы для кнопки "Назад"
|
|
56
|
+
*/
|
|
57
|
+
backButtonProps?: Omit<BackArrowAddonProps, 'view' | 'textOpacity' | 'onClick'>;
|
|
54
58
|
/**
|
|
55
59
|
* Дополнительный класс
|
|
56
60
|
*/
|