@sima-land/ui-nucleons 45.0.0-alpha.4 → 45.0.0-alpha.40
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/README.md +138 -0
- package/_internal/custom-scrollbar/custom-scrollbar.d.ts +13 -0
- package/_internal/custom-scrollbar/custom-scrollbar.js +86 -0
- package/_internal/custom-scrollbar/custom-scrollbar.js.map +1 -0
- package/_internal/custom-scrollbar/custom-scrollbar.m.scss +49 -0
- package/_internal/custom-scrollbar/index.d.ts +2 -42
- package/_internal/custom-scrollbar/index.js +4 -76
- package/_internal/custom-scrollbar/index.js.map +1 -0
- package/_internal/custom-scrollbar/types.d.ts +18 -0
- package/{hooks/breakpoint → _internal/custom-scrollbar}/types.js +1 -0
- package/_internal/custom-scrollbar/types.js.map +1 -0
- package/_internal/lifecycle/index.d.ts +11 -0
- package/_internal/lifecycle/index.js +22 -0
- package/_internal/lifecycle/index.js.map +1 -0
- package/_internal/page-scroll-lock/adapters/body-scroll-lock.d.ts +8 -5
- package/_internal/page-scroll-lock/adapters/body-scroll-lock.js +15 -8
- package/_internal/page-scroll-lock/adapters/body-scroll-lock.js.map +1 -0
- package/_internal/page-scroll-lock/adapters/ui-nucleons.d.ts +30 -5
- package/_internal/page-scroll-lock/adapters/ui-nucleons.js +11 -7
- package/_internal/page-scroll-lock/adapters/ui-nucleons.js.map +1 -0
- package/_internal/page-scroll-lock/context.d.ts +2 -13
- package/_internal/page-scroll-lock/context.js +6 -51
- package/_internal/page-scroll-lock/context.js.map +1 -0
- package/_internal/page-scroll-lock/hook.d.ts +2 -2
- package/_internal/page-scroll-lock/hook.js +9 -7
- package/_internal/page-scroll-lock/hook.js.map +1 -0
- package/_internal/page-scroll-lock/index.d.ts +4 -3
- package/_internal/page-scroll-lock/index.js +8 -4
- package/_internal/page-scroll-lock/index.js.map +1 -0
- package/_internal/page-scroll-lock/types.d.ts +1 -1
- package/_internal/page-scroll-lock/types.js +1 -0
- package/_internal/page-scroll-lock/types.js.map +1 -0
- package/accordion/accordion-provider.d.ts +17 -0
- package/accordion/accordion-provider.js +45 -0
- package/accordion/accordion-provider.js.map +1 -0
- package/accordion/accordion.d.ts +27 -0
- package/accordion/accordion.js +47 -0
- package/accordion/accordion.js.map +1 -0
- package/accordion/accordion.m.scss +89 -0
- package/accordion/index.d.ts +3 -0
- package/accordion/index.js +8 -0
- package/accordion/index.js.map +1 -0
- package/alert/alert-body.d.ts +7 -0
- package/alert/alert-body.js +24 -0
- package/alert/alert-body.js.map +1 -0
- package/alert/alert-body.m.scss +3 -0
- package/alert/alert.d.ts +8 -0
- package/alert/alert.js +33 -0
- package/alert/alert.js.map +1 -0
- package/alert/index.d.ts +3 -21
- package/alert/index.js +5 -68
- package/alert/index.js.map +1 -0
- package/alert/types.d.ts +10 -0
- package/{types.js → alert/types.js} +1 -0
- package/alert/types.js.map +1 -0
- package/arrow-button/arrow-button.d.ts +7 -0
- package/arrow-button/arrow-button.js +42 -0
- package/arrow-button/arrow-button.js.map +1 -0
- package/arrow-button/{arrow-button.module.scss → arrow-button.m.scss} +3 -0
- package/arrow-button/index.d.ts +2 -17
- package/arrow-button/index.js +3 -52
- package/arrow-button/index.js.map +1 -0
- package/arrow-button/types.d.ts +10 -0
- package/arrow-button/types.js +3 -0
- package/arrow-button/types.js.map +1 -0
- package/autocomplete/autocomplete.d.ts +10 -2
- package/autocomplete/autocomplete.js +152 -114
- package/autocomplete/autocomplete.js.map +1 -0
- package/autocomplete/index.d.ts +1 -1
- package/autocomplete/index.js +1 -0
- package/autocomplete/index.js.map +1 -0
- package/autocomplete/menu.d.ts +8 -0
- package/autocomplete/menu.js +20 -0
- package/autocomplete/menu.js.map +1 -0
- package/autocomplete/types.d.ts +18 -6
- package/autocomplete/types.js +1 -0
- package/autocomplete/types.js.map +1 -0
- package/autocomplete/utils.d.ts +36 -0
- package/autocomplete/utils.js +65 -0
- package/autocomplete/utils.js.map +1 -0
- package/avatar/avatar.d.ts +7 -0
- package/avatar/avatar.js +25 -0
- package/avatar/avatar.js.map +1 -0
- package/avatar/{avatar.module.scss → avatar.m.scss} +17 -40
- package/avatar/index.d.ts +3 -30
- package/avatar/index.js +9 -63
- package/avatar/index.js.map +1 -0
- package/avatar/types.d.ts +19 -0
- package/avatar/types.js +3 -0
- package/avatar/types.js.map +1 -0
- package/avatar/utils.d.ts +28 -4
- package/avatar/utils.js +75 -13
- package/avatar/utils.js.map +1 -0
- package/avatar/utils.m.scss +10 -0
- package/base-input/base-input.d.ts +2 -3
- package/base-input/base-input.js +15 -55
- package/base-input/base-input.js.map +1 -0
- package/base-input/{base-input.module.scss → base-input.m.scss} +18 -6
- package/base-input/index.js +1 -0
- package/base-input/index.js.map +1 -0
- package/base-input/types.d.ts +7 -6
- package/base-input/types.js +1 -0
- package/base-input/types.js.map +1 -0
- package/base-input/utils.js +3 -3
- package/base-input/utils.js.map +1 -0
- package/bottom-bar/bottom-bar.d.ts +2 -3
- package/bottom-bar/bottom-bar.js +11 -24
- package/bottom-bar/bottom-bar.js.map +1 -0
- package/bottom-bar/{bottom-bar.module.scss → bottom-bar.m.scss} +12 -1
- package/bottom-bar/index.d.ts +1 -1
- package/bottom-bar/index.js +1 -0
- package/bottom-bar/index.js.map +1 -0
- package/bottom-bar/types.d.ts +10 -4
- package/bottom-bar/types.js +1 -0
- package/bottom-bar/types.js.map +1 -0
- package/box/box.d.ts +8 -0
- package/box/box.js +159 -0
- package/box/box.js.map +1 -0
- package/box/index.d.ts +2 -66
- package/box/index.js +3 -154
- package/box/index.js.map +1 -0
- package/box/types.d.ts +60 -0
- package/box/types.js +3 -0
- package/box/types.js.map +1 -0
- package/breakpoints.scss +14 -8
- package/button/button-util.scss +55 -0
- package/button/button.d.ts +7 -0
- package/button/button.js +54 -0
- package/button/button.js.map +1 -0
- package/button/{button.module.scss → button.m.scss} +29 -26
- package/button/index.d.ts +2 -40
- package/button/index.js +3 -69
- package/button/index.js.map +1 -0
- package/button/types.d.ts +43 -0
- package/button/types.js +3 -0
- package/button/types.js.map +1 -0
- package/carousel/carousel.d.ts +262 -0
- package/carousel/carousel.js +630 -0
- package/carousel/carousel.js.map +1 -0
- package/carousel/{carousel.module.scss → carousel.m.scss} +1 -0
- package/carousel/draggable.d.ts +14 -11
- package/carousel/draggable.js +56 -54
- package/carousel/draggable.js.map +1 -0
- package/carousel/helpers/draggable-event.d.ts +1 -4
- package/carousel/helpers/draggable-event.js +4 -4
- package/carousel/helpers/draggable-event.js.map +1 -0
- package/carousel/index.d.ts +2 -311
- package/carousel/index.js +3 -628
- package/carousel/index.js.map +1 -0
- package/carousel/types.d.ts +51 -0
- package/carousel/types.js +3 -0
- package/carousel/types.js.map +1 -0
- package/checkbox/checkbox.d.ts +4 -0
- package/checkbox/checkbox.js +19 -0
- package/checkbox/checkbox.js.map +1 -0
- package/checkbox/index.d.ts +2 -7
- package/checkbox/index.js +3 -55
- package/checkbox/index.js.map +1 -0
- package/checkbox/types.d.ts +2 -0
- package/checkbox/types.js +3 -0
- package/checkbox/types.js.map +1 -0
- package/chip/chip-util.scss +53 -0
- package/chip/chip.d.ts +14 -0
- package/chip/chip.js +38 -0
- package/chip/chip.js.map +1 -0
- package/chip/chip.m.scss +157 -0
- package/chip/index.d.ts +3 -0
- package/chip/index.js +9 -0
- package/chip/index.js.map +1 -0
- package/chip/types.d.ts +53 -0
- package/chip/types.js +3 -0
- package/chip/types.js.map +1 -0
- package/chip/utils.d.ts +9 -0
- package/chip/utils.js +22 -0
- package/chip/utils.js.map +1 -0
- package/clean-buttons/clean-button.d.ts +7 -0
- package/clean-buttons/clean-button.js +24 -0
- package/clean-buttons/clean-button.js.map +1 -0
- package/clean-buttons/{clean-buttons.module.scss → clean-button.m.scss} +0 -16
- package/clean-buttons/clean-group.d.ts +8 -0
- package/clean-buttons/clean-group.js +25 -0
- package/clean-buttons/clean-group.js.map +1 -0
- package/clean-buttons/clean-group.m.scss +16 -0
- package/clean-buttons/index.d.ts +3 -33
- package/clean-buttons/index.js +6 -72
- package/clean-buttons/index.js.map +1 -0
- package/clean-buttons/types.d.ts +13 -0
- package/clean-buttons/types.js +1 -0
- package/clean-buttons/types.js.map +1 -0
- package/clean-buttons/utils.d.ts +2 -3
- package/clean-buttons/utils.js +3 -2
- package/clean-buttons/utils.js.map +1 -0
- package/colors/index.d.ts +8 -4
- package/colors/index.js +9 -3
- package/colors/index.js.map +1 -0
- package/colors.scss +50 -0
- package/context/index.d.ts +9 -0
- package/context/index.js +26 -0
- package/context/index.js.map +1 -0
- package/context/viewport.js +1 -0
- package/context/viewport.js.map +1 -0
- package/dot-nav/dot-nav.d.ts +7 -0
- package/dot-nav/dot-nav.js +61 -0
- package/dot-nav/dot-nav.js.map +1 -0
- package/dot-nav/{dot-nav.module.scss → dot-nav.m.scss} +3 -1
- package/dot-nav/index.d.ts +2 -18
- package/dot-nav/index.js +3 -79
- package/dot-nav/index.js.map +1 -0
- package/dot-nav/types.d.ts +11 -0
- package/dot-nav/types.js +3 -0
- package/dot-nav/types.js.map +1 -0
- package/dropdown/dropdown-loading.d.ts +7 -0
- package/dropdown/dropdown-loading.js +20 -0
- package/dropdown/dropdown-loading.js.map +1 -0
- package/dropdown/dropdown.d.ts +7 -0
- package/dropdown/dropdown.js +21 -0
- package/dropdown/dropdown.js.map +1 -0
- package/dropdown/{dropdown.module.scss → dropdown.m.scss} +8 -3
- package/dropdown/index.d.ts +4 -18
- package/dropdown/index.js +10 -53
- package/dropdown/index.js.map +1 -0
- package/dropdown/types.d.ts +16 -0
- package/dropdown/types.js +3 -0
- package/dropdown/types.js.map +1 -0
- package/dropdown/utils.d.ts +24 -5
- package/dropdown/utils.js +66 -19
- package/dropdown/utils.js.map +1 -0
- package/dropdown-item/dropdown-item.d.ts +8 -0
- package/dropdown-item/dropdown-item.js +23 -0
- package/dropdown-item/dropdown-item.js.map +1 -0
- package/dropdown-item/index.d.ts +2 -34
- package/dropdown-item/index.js +3 -36
- package/dropdown-item/index.js.map +1 -0
- package/dropdown-item/types.d.ts +28 -3
- package/dropdown-item/types.js +1 -0
- package/dropdown-item/types.js.map +1 -0
- package/dropdown-item/utils.d.ts +1 -2
- package/dropdown-item/utils.js +5 -2
- package/dropdown-item/utils.js.map +1 -0
- package/expandable/expandable-group.d.ts +12 -0
- package/expandable/expandable-group.js +114 -0
- package/expandable/expandable-group.js.map +1 -0
- package/expandable/{expandable-group.module.scss → expandable-group.m.scss} +1 -5
- package/expandable/index.d.ts +2 -42
- package/expandable/index.js +6 -83
- package/expandable/index.js.map +1 -0
- package/expandable/types.d.ts +39 -0
- package/expandable/types.js +3 -0
- package/expandable/types.js.map +1 -0
- package/expandable/utils.d.ts +22 -23
- package/expandable/utils.js +75 -79
- package/expandable/utils.js.map +1 -0
- package/field-block/field-block.d.ts +11 -0
- package/field-block/field-block.js +37 -0
- package/field-block/field-block.js.map +1 -0
- package/field-block/{field-block.module.scss → field-block.m.scss} +6 -1
- package/field-block/index.d.ts +2 -63
- package/field-block/index.js +6 -41
- package/field-block/index.js.map +1 -0
- package/field-block/types.d.ts +52 -0
- package/field-block/types.js +3 -0
- package/field-block/types.js.map +1 -0
- package/file-icon/file-icon.d.ts +8 -0
- package/file-icon/file-icon.js +45 -0
- package/file-icon/file-icon.js.map +1 -0
- package/file-icon/file-icon.m.scss +74 -0
- package/file-icon/index.d.ts +2 -11
- package/file-icon/index.js +3 -40
- package/file-icon/index.js.map +1 -0
- package/file-icon/types.d.ts +12 -0
- package/file-icon/types.js +3 -0
- package/file-icon/types.js.map +1 -0
- package/gradients/index.d.ts +14 -0
- package/gradients/index.js +19 -0
- package/gradients/index.js.map +1 -0
- package/gradients.scss +25 -0
- package/group-overflow/group-overflow.d.ts +7 -0
- package/group-overflow/group-overflow.js +27 -0
- package/group-overflow/group-overflow.js.map +1 -0
- package/group-overflow/index.d.ts +2 -16
- package/group-overflow/index.js +3 -60
- package/group-overflow/index.js.map +1 -0
- package/group-overflow/types.d.ts +10 -0
- package/group-overflow/types.js +3 -0
- package/group-overflow/types.js.map +1 -0
- package/group-overflow/utils.js +3 -3
- package/group-overflow/utils.js.map +1 -0
- package/helpers/bounds-of.d.ts +0 -4
- package/helpers/bounds-of.js +2 -6
- package/helpers/bounds-of.js.map +1 -0
- package/helpers/center-of.d.ts +0 -4
- package/helpers/center-of.js +4 -11
- package/helpers/center-of.js.map +1 -0
- package/helpers/create-container.d.ts +1 -4
- package/helpers/create-container.js +3 -7
- package/helpers/create-container.js.map +1 -0
- package/helpers/define-slots.d.ts +4 -4
- package/helpers/define-slots.js +2 -2
- package/helpers/define-slots.js.map +1 -0
- package/helpers/events.d.ts +3 -3
- package/helpers/events.js +9 -10
- package/helpers/events.js.map +1 -0
- package/helpers/{find-child-element.d.ts → find-child-index.d.ts} +0 -4
- package/helpers/{find-child-element.js → find-child-index.js} +2 -6
- package/helpers/find-child-index.js.map +1 -0
- package/helpers/find-offset-parent.js +2 -2
- package/helpers/find-offset-parent.js.map +1 -0
- package/helpers/find-sibling-index.d.ts +3 -7
- package/helpers/find-sibling-index.js +7 -12
- package/helpers/find-sibling-index.js.map +1 -0
- package/helpers/fit-element-height.js +2 -2
- package/helpers/fit-element-height.js.map +1 -0
- package/helpers/format-date.d.ts +2 -7
- package/helpers/format-date.js +14 -17
- package/helpers/format-date.js.map +1 -0
- package/helpers/get-date-interval-data.d.ts +0 -4
- package/helpers/get-date-interval-data.js +18 -25
- package/helpers/get-date-interval-data.js.map +1 -0
- package/helpers/get-declination.d.ts +0 -4
- package/helpers/get-declination.js +2 -6
- package/helpers/get-declination.js.map +1 -0
- package/helpers/get-fraction-depth.js +2 -2
- package/helpers/get-fraction-depth.js.map +1 -0
- package/helpers/get-positioned-parent-offset.d.ts +15 -0
- package/helpers/get-positioned-parent-offset.js +40 -0
- package/helpers/get-positioned-parent-offset.js.map +1 -0
- package/helpers/get-relative-pos.d.ts +0 -4
- package/helpers/get-relative-pos.js +5 -9
- package/helpers/get-relative-pos.js.map +1 -0
- package/helpers/get-scroll-parent.js +2 -2
- package/helpers/get-scroll-parent.js.map +1 -0
- package/helpers/index.d.ts +14 -0
- package/helpers/index.js +35 -0
- package/helpers/index.js.map +1 -0
- package/helpers/is-browser.d.ts +0 -4
- package/helpers/is-browser.js +2 -6
- package/helpers/is-browser.js.map +1 -0
- package/helpers/is-fully-scrolled.js +2 -2
- package/helpers/is-fully-scrolled.js.map +1 -0
- package/helpers/is-touch-device.js +2 -2
- package/helpers/is-touch-device.js.map +1 -0
- package/helpers/layer.d.ts +0 -1
- package/helpers/layer.js +3 -2
- package/helpers/layer.js.map +1 -0
- package/helpers/max-index-of.d.ts +0 -4
- package/helpers/max-index-of.js +2 -6
- package/helpers/max-index-of.js.map +1 -0
- package/helpers/media-query-list.js +2 -2
- package/helpers/media-query-list.js.map +1 -0
- package/helpers/merge-refs.d.ts +8 -0
- package/helpers/merge-refs.js +22 -0
- package/helpers/merge-refs.js.map +1 -0
- package/helpers/on.d.ts +2 -6
- package/helpers/on.js +8 -10
- package/helpers/on.js.map +1 -0
- package/helpers/point.d.ts +0 -4
- package/helpers/point.js +3 -6
- package/helpers/point.js.map +1 -0
- package/helpers/scroll-to-child.js +4 -8
- package/helpers/scroll-to-child.js.map +1 -0
- package/helpers/styles.d.ts +2 -6
- package/helpers/styles.js +5 -14
- package/helpers/styles.js.map +1 -0
- package/hint/hint-view.d.ts +2 -2
- package/hint/hint-view.js +10 -22
- package/hint/hint-view.js.map +1 -0
- package/hint/hint.d.ts +1 -1
- package/hint/hint.js +10 -25
- package/hint/hint.js.map +1 -0
- package/hint/index.js +1 -0
- package/hint/index.js.map +1 -0
- package/hint/utils.d.ts +6 -14
- package/hint/utils.js +48 -25
- package/hint/utils.js.map +1 -0
- package/hooks/index.d.ts +9 -29
- package/hooks/index.js +21 -76
- package/hooks/index.js.map +1 -0
- package/hooks/{breakpoint → use-breakpoint}/index.d.ts +1 -1
- package/hooks/{breakpoint → use-breakpoint}/index.js +12 -34
- package/hooks/use-breakpoint/index.js.map +1 -0
- package/hooks/use-breakpoint/types.js +3 -0
- package/hooks/use-breakpoint/types.js.map +1 -0
- package/hooks/{breakpoint → use-breakpoint}/utils.d.ts +3 -1
- package/hooks/{breakpoint → use-breakpoint}/utils.js +8 -8
- package/hooks/use-breakpoint/utils.js.map +1 -0
- package/hooks/{identity.d.ts → use-identity-ref/index.d.ts} +1 -2
- package/hooks/{identity.js → use-identity-ref/index.js} +4 -4
- package/hooks/use-identity-ref/index.js.map +1 -0
- package/hooks/use-infinite-scroll/index.d.ts +13 -0
- package/hooks/use-infinite-scroll/index.js +29 -0
- package/hooks/use-infinite-scroll/index.js.map +1 -0
- package/hooks/{intersection → use-intersection}/index.js +9 -8
- package/hooks/use-intersection/index.js.map +1 -0
- package/hooks/{intersection → use-intersection}/test-utils.d.ts +6 -0
- package/hooks/{intersection → use-intersection}/test-utils.js +24 -11
- package/hooks/use-intersection/test-utils.js.map +1 -0
- package/hooks/use-is-touch-device/index.d.ts +5 -0
- package/hooks/use-is-touch-device/index.js +17 -0
- package/hooks/use-is-touch-device/index.js.map +1 -0
- package/hooks/use-isomorphic-layout-effect/index.d.ts +6 -0
- package/hooks/use-isomorphic-layout-effect/index.js +10 -0
- package/hooks/use-isomorphic-layout-effect/index.js.map +1 -0
- package/hooks/{keydown.js → use-keydown/index.js} +6 -6
- package/hooks/use-keydown/index.js.map +1 -0
- package/hooks/{media.d.ts → use-media/index.d.ts} +1 -1
- package/hooks/{media.js → use-media/index.js} +11 -8
- package/hooks/use-media/index.js.map +1 -0
- package/hooks/use-outside-click/index.d.ts +7 -0
- package/hooks/use-outside-click/index.js +35 -0
- package/hooks/use-outside-click/index.js.map +1 -0
- package/info-text/index.d.ts +2 -23
- package/info-text/index.js +3 -57
- package/info-text/index.js.map +1 -0
- package/info-text/info-text.d.ts +8 -0
- package/info-text/info-text.js +33 -0
- package/info-text/info-text.js.map +1 -0
- package/info-text/{info-text.module.scss → info-text.m.scss} +3 -0
- package/info-text/types.d.ts +16 -0
- package/info-text/types.js +3 -0
- package/info-text/types.js.map +1 -0
- package/input/index.d.ts +2 -32
- package/input/index.js +3 -93
- package/input/index.js.map +1 -0
- package/input/input.d.ts +7 -0
- package/input/input.js +72 -0
- package/input/input.js.map +1 -0
- package/input/input.m.scss +27 -0
- package/input/types.d.ts +26 -0
- package/input/types.js +3 -0
- package/input/types.js.map +1 -0
- package/input/utils.js +7 -8
- package/input/utils.js.map +1 -0
- package/layout/index.js +1 -0
- package/layout/index.js.map +1 -0
- package/layout/layout.d.ts +2 -5
- package/layout/layout.js +8 -20
- package/layout/layout.js.map +1 -0
- package/layout/layout.m.scss +87 -0
- package/layout/legacy.d.ts +6 -7
- package/layout/legacy.js +6 -41
- package/layout/legacy.js.map +1 -0
- package/layout/types.d.ts +4 -2
- package/layout/types.js +1 -0
- package/layout/types.js.map +1 -0
- package/link/index.d.ts +2 -24
- package/link/index.js +3 -65
- package/link/index.js.map +1 -0
- package/link/link.d.ts +8 -0
- package/link/link.js +27 -0
- package/link/link.js.map +1 -0
- package/link/types.d.ts +14 -0
- package/link/types.js +3 -0
- package/link/types.js.map +1 -0
- package/masked-input/index.d.ts +3 -5
- package/masked-input/index.js +4 -3
- package/masked-input/index.js.map +1 -0
- package/masked-input/masked-input.d.ts +1 -2
- package/masked-input/masked-input.js +49 -56
- package/masked-input/masked-input.js.map +1 -0
- package/masked-input/types.d.ts +9 -6
- package/masked-input/types.js +1 -0
- package/masked-input/types.js.map +1 -0
- package/masked-input/use-input-mask.d.ts +9 -0
- package/masked-input/use-input-mask.js +64 -0
- package/masked-input/use-input-mask.js.map +1 -0
- package/masked-input/utils.d.ts +1 -1
- package/masked-input/utils.js +29 -25
- package/masked-input/utils.js.map +1 -0
- package/modal/index.d.ts +4 -32
- package/modal/index.js +10 -52
- package/modal/index.js.map +1 -0
- package/modal/modal-util.scss +45 -0
- package/modal/modal.d.ts +7 -0
- package/modal/modal.js +30 -0
- package/modal/modal.js.map +1 -0
- package/modal/modal.m.scss +79 -0
- package/modal/slots.d.ts +8 -25
- package/modal/slots.js +21 -75
- package/modal/slots.js.map +1 -0
- package/modal/types.d.ts +37 -0
- package/modal/types.js +3 -0
- package/modal/types.js.map +1 -0
- package/modal/utils.d.ts +9 -8
- package/modal/utils.js +27 -3
- package/modal/utils.js.map +1 -0
- package/modal/utils.m.scss +45 -0
- package/modal-overlay/index.d.ts +3 -13
- package/modal-overlay/index.js +7 -58
- package/modal-overlay/index.js.map +1 -0
- package/modal-overlay/modal-overlay.d.ts +7 -0
- package/modal-overlay/modal-overlay.js +29 -0
- package/modal-overlay/modal-overlay.js.map +1 -0
- package/modal-overlay/types.d.ts +7 -0
- package/modal-overlay/types.js +3 -0
- package/modal-overlay/types.js.map +1 -0
- package/modal-overlay/utils.d.ts +11 -3
- package/modal-overlay/utils.js +52 -6
- package/modal-overlay/utils.js.map +1 -0
- package/no-index/index.d.ts +4 -11
- package/no-index/index.js +9 -16
- package/no-index/index.js.map +1 -0
- package/no-index/no-index-mark.d.ts +7 -0
- package/no-index/no-index-mark.js +15 -0
- package/no-index/no-index-mark.js.map +1 -0
- package/no-index/no-index.d.ts +7 -0
- package/no-index/no-index.js +14 -0
- package/no-index/no-index.js.map +1 -0
- package/no-index/types.d.ts +9 -0
- package/no-index/types.js +3 -0
- package/no-index/types.js.map +1 -0
- package/no-index/utils.d.ts +13 -0
- package/no-index/utils.js +28 -0
- package/no-index/utils.js.map +1 -0
- package/package.json +122 -68
- package/pagination/index.d.ts +4 -20
- package/pagination/index.js +10 -15
- package/pagination/index.js.map +1 -0
- package/pagination/pagination-item.d.ts +7 -0
- package/pagination/pagination-item.js +19 -0
- package/pagination/pagination-item.js.map +1 -0
- package/pagination/pagination-item.m.scss +49 -0
- package/pagination/pagination.d.ts +7 -0
- package/pagination/pagination.js +96 -0
- package/pagination/pagination.js.map +1 -0
- package/pagination/pagination.m.scss +21 -0
- package/pagination/types.d.ts +28 -0
- package/pagination/types.js +3 -0
- package/pagination/types.js.map +1 -0
- package/pagination/utils.d.ts +25 -41
- package/pagination/utils.js +50 -85
- package/pagination/utils.js.map +1 -0
- package/panel/index.d.ts +2 -38
- package/panel/index.js +6 -56
- package/panel/index.js.map +1 -0
- package/panel/panel.d.ts +20 -0
- package/panel/panel.js +57 -0
- package/panel/panel.js.map +1 -0
- package/panel/types.d.ts +17 -0
- package/panel/types.js +3 -0
- package/panel/types.js.map +1 -0
- package/phone-input/images/armenia.d.ts +2 -0
- package/phone-input/images/armenia.js +5 -0
- package/phone-input/images/armenia.js.map +1 -0
- package/phone-input/images/armenia.png +0 -0
- package/phone-input/images/azerbaijan.d.ts +2 -0
- package/phone-input/images/azerbaijan.js +5 -0
- package/phone-input/images/azerbaijan.js.map +1 -0
- package/phone-input/images/azerbaijan.png +0 -0
- package/phone-input/images/belarus.d.ts +2 -0
- package/phone-input/images/belarus.js +5 -0
- package/phone-input/images/belarus.js.map +1 -0
- package/phone-input/images/belarus.png +0 -0
- package/phone-input/images/georgia.d.ts +2 -0
- package/phone-input/images/georgia.js +5 -0
- package/phone-input/images/georgia.js.map +1 -0
- package/phone-input/images/georgia.png +0 -0
- package/phone-input/images/kazakhstan.d.ts +2 -0
- package/phone-input/images/kazakhstan.js +5 -0
- package/phone-input/images/kazakhstan.js.map +1 -0
- package/phone-input/images/kazakhstan.png +0 -0
- package/phone-input/images/kyrgyzstan.d.ts +2 -0
- package/phone-input/images/kyrgyzstan.js +5 -0
- package/phone-input/images/kyrgyzstan.js.map +1 -0
- package/phone-input/images/kyrgyzstan.png +0 -0
- package/phone-input/images/moldova.d.ts +2 -0
- package/phone-input/images/moldova.js +5 -0
- package/phone-input/images/moldova.js.map +1 -0
- package/phone-input/images/moldova.png +0 -0
- package/phone-input/images/other.d.ts +2 -0
- package/phone-input/images/other.js +5 -0
- package/phone-input/images/other.js.map +1 -0
- package/phone-input/images/other.png +0 -0
- package/phone-input/images/russia.d.ts +2 -0
- package/phone-input/images/russia.js +5 -0
- package/phone-input/images/russia.js.map +1 -0
- package/phone-input/images/russia.png +0 -0
- package/phone-input/images/tajikistan.d.ts +2 -0
- package/phone-input/images/tajikistan.js +5 -0
- package/phone-input/images/tajikistan.js.map +1 -0
- package/phone-input/images/tajikistan.png +0 -0
- package/phone-input/images/turkmenistan.d.ts +2 -0
- package/phone-input/images/turkmenistan.js +5 -0
- package/phone-input/images/turkmenistan.js.map +1 -0
- package/phone-input/images/turkmenistan.png +0 -0
- package/phone-input/images/ukraine.d.ts +2 -0
- package/phone-input/images/ukraine.js +5 -0
- package/phone-input/images/ukraine.js.map +1 -0
- package/phone-input/images/ukraine.png +0 -0
- package/phone-input/images/uzbekistan.d.ts +2 -0
- package/phone-input/images/uzbekistan.js +5 -0
- package/phone-input/images/uzbekistan.js.map +1 -0
- package/phone-input/images/uzbekistan.png +0 -0
- package/phone-input/index.d.ts +4 -4
- package/phone-input/index.js +21 -2
- package/phone-input/index.js.map +1 -0
- package/phone-input/menu-opener.d.ts +14 -0
- package/phone-input/menu-opener.js +22 -0
- package/phone-input/menu-opener.js.map +1 -0
- package/phone-input/{phone-input.module.scss → menu-opener.m.scss} +4 -3
- package/phone-input/phone-input.d.ts +2 -3
- package/phone-input/phone-input.js +106 -104
- package/phone-input/phone-input.js.map +1 -0
- package/phone-input/phone-input.m.scss +9 -0
- package/phone-input/preset/defaults-import-png.d.ts +2 -0
- package/phone-input/preset/defaults-import-png.js +114 -0
- package/phone-input/preset/defaults-import-png.js.map +1 -0
- package/phone-input/preset/defaults.d.ts +5 -0
- package/phone-input/preset/defaults.js +117 -0
- package/phone-input/preset/defaults.js.map +1 -0
- package/phone-input/types.d.ts +33 -3
- package/phone-input/types.js +1 -0
- package/phone-input/types.js.map +1 -0
- package/phone-input/utils.d.ts +14 -9
- package/phone-input/utils.js +21 -17
- package/phone-input/utils.js.map +1 -0
- package/plate/index.d.ts +2 -15
- package/plate/index.js +3 -50
- package/plate/index.js.map +1 -0
- package/plate/plate.d.ts +6 -0
- package/plate/plate.js +21 -0
- package/plate/plate.js.map +1 -0
- package/plate/types.d.ts +9 -0
- package/plate/types.js +3 -0
- package/plate/types.js.map +1 -0
- package/popup/index.d.ts +4 -5
- package/popup/index.js +4 -3
- package/popup/index.js.map +1 -0
- package/popup/popup-view.d.ts +3 -10
- package/popup/popup-view.js +9 -24
- package/popup/popup-view.js.map +1 -0
- package/popup/{popup-view.module.scss → popup-view.m.scss} +12 -6
- package/popup/popup.d.ts +2 -12
- package/popup/popup.js +17 -46
- package/popup/popup.js.map +1 -0
- package/popup/types.d.ts +34 -0
- package/popup/types.js +3 -0
- package/popup/types.js.map +1 -0
- package/popup/utils.d.ts +8 -8
- package/popup/utils.js +28 -24
- package/popup/utils.js.map +1 -0
- package/portal/index.d.ts +2 -13
- package/portal/index.js +3 -23
- package/portal/index.js.map +1 -0
- package/portal/portal.d.ts +7 -0
- package/portal/portal.js +33 -0
- package/portal/portal.js.map +1 -0
- package/portal/types.d.ts +9 -0
- package/portal/types.js +3 -0
- package/portal/types.js.map +1 -0
- package/price/index.d.ts +3 -21
- package/price/index.js +6 -21
- package/price/index.js.map +1 -0
- package/price/price.d.ts +7 -0
- package/price/price.js +24 -0
- package/price/price.js.map +1 -0
- package/price/types.d.ts +13 -0
- package/price/types.js +3 -0
- package/price/types.js.map +1 -0
- package/price/utils.js +15 -13
- package/price/utils.js.map +1 -0
- package/radio-button/index.d.ts +2 -10
- package/radio-button/index.js +3 -30
- package/radio-button/index.js.map +1 -0
- package/radio-button/radio-button.d.ts +7 -0
- package/radio-button/radio-button.js +19 -0
- package/radio-button/radio-button.js.map +1 -0
- package/radio-button/types.d.ts +4 -0
- package/radio-button/types.js +3 -0
- package/radio-button/types.js.map +1 -0
- package/range/index.d.ts +2 -108
- package/range/index.js +3 -284
- package/range/index.js.map +1 -0
- package/range/range.d.ts +84 -0
- package/range/range.js +270 -0
- package/range/range.js.map +1 -0
- package/range/types.d.ts +26 -0
- package/range/types.js +3 -0
- package/range/types.js.map +1 -0
- package/rating/index.d.ts +2 -16
- package/rating/index.js +3 -41
- package/rating/index.js.map +1 -0
- package/rating/rating.d.ts +7 -0
- package/rating/rating.js +26 -0
- package/rating/rating.js.map +1 -0
- package/rating/types.d.ts +9 -0
- package/rating/types.js +1 -0
- package/rating/types.js.map +1 -0
- package/rating/utils.js +1 -0
- package/rating/utils.js.map +1 -0
- package/select/index.d.ts +2 -0
- package/select/index.js +6 -1
- package/select/index.js.map +1 -0
- package/select/parts/field-block.d.ts +7 -0
- package/select/parts/field-block.js +70 -0
- package/select/parts/field-block.js.map +1 -0
- package/select/parts/menu.d.ts +2 -3
- package/select/parts/menu.js +135 -85
- package/select/parts/menu.js.map +1 -0
- package/select/parts/text-button.d.ts +7 -0
- package/select/parts/text-button.js +48 -0
- package/select/parts/text-button.js.map +1 -0
- package/select/select.d.ts +1 -8
- package/select/select.js +52 -126
- package/select/select.js.map +1 -0
- package/select/types.d.ts +22 -23
- package/select/types.js +1 -0
- package/select/types.js.map +1 -0
- package/select/utils.d.ts +3 -3
- package/select/utils.js +17 -10
- package/select/utils.js.map +1 -0
- package/shadows.scss +40 -4
- package/side-page/index.d.ts +4 -39
- package/side-page/index.js +9 -89
- package/side-page/index.js.map +1 -0
- package/side-page/side-page-body.d.ts +7 -0
- package/side-page/side-page-body.js +27 -0
- package/side-page/side-page-body.js.map +1 -0
- package/side-page/side-page-body.m.scss +4 -0
- package/side-page/side-page-util.scss +9 -0
- package/side-page/side-page.d.ts +7 -0
- package/side-page/side-page.js +30 -0
- package/side-page/side-page.js.map +1 -0
- package/side-page/side-page.m.scss +23 -0
- package/side-page/types.d.ts +15 -0
- package/side-page/types.js +3 -0
- package/side-page/types.js.map +1 -0
- package/side-page/utils.d.ts +26 -0
- package/side-page/utils.js +69 -0
- package/side-page/utils.js.map +1 -0
- package/side-page/utils.m.scss +67 -0
- package/skeleton/index.d.ts +2 -0
- package/skeleton/index.js +6 -0
- package/skeleton/index.js.map +1 -0
- package/skeleton/skeleton.d.ts +7 -0
- package/skeleton/skeleton.js +19 -0
- package/skeleton/skeleton.js.map +1 -0
- package/skeleton/skeleton.m.scss +75 -0
- package/skeleton/types.d.ts +17 -0
- package/skeleton/types.js +3 -0
- package/skeleton/types.js.map +1 -0
- package/snack-bar/context.d.ts +17 -0
- package/snack-bar/context.js +17 -0
- package/snack-bar/context.js.map +1 -0
- package/snack-bar/index.d.ts +5 -0
- package/snack-bar/index.js +16 -0
- package/snack-bar/index.js.map +1 -0
- package/snack-bar/slots.d.ts +32 -0
- package/snack-bar/slots.js +64 -0
- package/snack-bar/slots.js.map +1 -0
- package/snack-bar/snack-bar.d.ts +7 -0
- package/snack-bar/snack-bar.js +38 -0
- package/snack-bar/snack-bar.js.map +1 -0
- package/snack-bar/snack-bar.m.scss +102 -0
- package/snack-bar/types.d.ts +12 -0
- package/snack-bar/types.js +3 -0
- package/snack-bar/types.js.map +1 -0
- package/snack-bar/utils.d.ts +302 -0
- package/snack-bar/utils.js +164 -0
- package/snack-bar/utils.js.map +1 -0
- package/snack-bar/utils.m.scss +7 -0
- package/spinner/index.d.ts +2 -34
- package/spinner/index.js +6 -45
- package/spinner/index.js.map +1 -0
- package/spinner/spinner.d.ts +15 -0
- package/spinner/spinner.js +41 -0
- package/spinner/spinner.js.map +1 -0
- package/spinner/{spinner.module.scss → spinner.m.scss} +15 -5
- package/spinner/types.d.ts +15 -0
- package/spinner/types.js +3 -0
- package/spinner/types.js.map +1 -0
- package/stepper/index.d.ts +2 -38
- package/stepper/index.js +3 -73
- package/stepper/index.js.map +1 -0
- package/stepper/stepper.d.ts +7 -0
- package/stepper/stepper.js +37 -0
- package/stepper/stepper.js.map +1 -0
- package/stepper/types.d.ts +31 -0
- package/stepper/types.js +3 -0
- package/stepper/types.js.map +1 -0
- package/stroked-svg/index.d.ts +2 -17
- package/stroked-svg/index.js +3 -53
- package/stroked-svg/index.js.map +1 -0
- package/stroked-svg/stroked-svg.d.ts +7 -0
- package/stroked-svg/stroked-svg.js +19 -0
- package/stroked-svg/stroked-svg.js.map +1 -0
- package/stroked-svg/types.d.ts +12 -0
- package/stroked-svg/types.js +3 -0
- package/stroked-svg/types.js.map +1 -0
- package/styling/borders.js +3 -2
- package/styling/borders.js.map +1 -0
- package/styling/{borders.module.scss → borders.m.scss} +3 -1
- package/styling/colors.d.ts +5 -5
- package/styling/colors.js +7 -6
- package/styling/colors.js.map +1 -0
- package/styling/{colors.module.scss → colors.m.scss} +2 -1
- package/styling/fonts.js +5 -4
- package/styling/fonts.js.map +1 -0
- package/styling/index.d.ts +6 -0
- package/styling/index.js +31 -0
- package/styling/index.js.map +1 -0
- package/styling/shadows.js +7 -6
- package/styling/shadows.js.map +1 -0
- package/styling/shadows.m.scss +27 -0
- package/styling/shapes.js +20 -19
- package/styling/shapes.js.map +1 -0
- package/styling/sizes.js +10 -9
- package/styling/sizes.js.map +1 -0
- package/styling/{sizes.module.scss → sizes.m.scss} +3 -1
- package/styling/utils.d.ts +1 -1
- package/styling/utils.js +2 -1
- package/styling/utils.js.map +1 -0
- package/super-ellipse-clip-path/index.d.ts +2 -11
- package/super-ellipse-clip-path/index.js +3 -14
- package/super-ellipse-clip-path/index.js.map +1 -0
- package/super-ellipse-clip-path/super-ellipse-clip-path.d.ts +7 -0
- package/super-ellipse-clip-path/super-ellipse-clip-path.js +13 -0
- package/super-ellipse-clip-path/super-ellipse-clip-path.js.map +1 -0
- package/super-ellipse-clip-path/types.d.ts +4 -0
- package/super-ellipse-clip-path/types.js +3 -0
- package/super-ellipse-clip-path/types.js.map +1 -0
- package/switcher-row/index.d.ts +2 -42
- package/switcher-row/index.js +3 -57
- package/switcher-row/index.js.map +1 -0
- package/switcher-row/switcher-row.d.ts +29 -0
- package/switcher-row/switcher-row.js +54 -0
- package/switcher-row/switcher-row.js.map +1 -0
- package/switcher-row/types.d.ts +14 -0
- package/switcher-row/types.js +3 -0
- package/switcher-row/types.js.map +1 -0
- package/tabs/index.d.ts +2 -36
- package/tabs/index.js +5 -45
- package/tabs/index.js.map +1 -0
- package/tabs/tabs.d.ts +16 -0
- package/tabs/tabs.js +30 -0
- package/tabs/tabs.js.map +1 -0
- package/tabs/{tabs.module.scss → tabs.m.scss} +1 -0
- package/tabs/types.d.ts +35 -0
- package/tabs/types.js +3 -0
- package/tabs/types.js.map +1 -0
- package/test-utils/dom-rect-read-only-mock.d.ts +23 -0
- package/test-utils/dom-rect-read-only-mock.js +49 -0
- package/test-utils/dom-rect-read-only-mock.js.map +1 -0
- package/test-utils/index.d.ts +4 -0
- package/test-utils/index.js +12 -0
- package/test-utils/index.js.map +1 -0
- package/test-utils/intersection-observer-mock.d.ts +74 -0
- package/test-utils/intersection-observer-mock.js +152 -0
- package/test-utils/intersection-observer-mock.js.map +1 -0
- package/test-utils/match-media-mock.d.ts +90 -0
- package/test-utils/match-media-mock.js +128 -0
- package/test-utils/match-media-mock.js.map +1 -0
- package/test-utils/resize-observer-mock.d.ts +56 -0
- package/test-utils/resize-observer-mock.js +114 -0
- package/test-utils/resize-observer-mock.js.map +1 -0
- package/text/index.d.ts +2 -37
- package/text/index.js +6 -68
- package/text/index.js.map +1 -0
- package/text/text.d.ts +11 -0
- package/text/text.js +50 -0
- package/text/text.js.map +1 -0
- package/text/types.d.ts +28 -0
- package/text/types.js +3 -0
- package/text/types.js.map +1 -0
- package/text-button/index.d.ts +2 -42
- package/text-button/index.js +3 -43
- package/text-button/index.js.map +1 -0
- package/text-button/text-button.d.ts +8 -0
- package/text-button/text-button.js +37 -0
- package/text-button/text-button.js.map +1 -0
- package/text-button/{text-button.module.scss → text-button.m.scss} +3 -0
- package/text-button/types.d.ts +40 -0
- package/text-button/types.js +3 -0
- package/text-button/types.js.map +1 -0
- package/textarea/index.d.ts +2 -21
- package/textarea/index.js +3 -82
- package/textarea/index.js.map +1 -0
- package/textarea/textarea.d.ts +7 -0
- package/textarea/textarea.js +60 -0
- package/textarea/textarea.js.map +1 -0
- package/textarea/types.d.ts +15 -0
- package/textarea/types.js +3 -0
- package/textarea/types.js.map +1 -0
- package/timer/index.d.ts +2 -16
- package/timer/index.js +3 -42
- package/timer/index.js.map +1 -0
- package/timer/timer.d.ts +7 -0
- package/timer/timer.js +23 -0
- package/timer/timer.js.map +1 -0
- package/timer/types.d.ts +10 -1
- package/timer/types.js +1 -0
- package/timer/types.js.map +1 -0
- package/timer/utils.d.ts +3 -3
- package/timer/utils.js +15 -16
- package/timer/utils.js.map +1 -0
- package/toggle/index.d.ts +2 -7
- package/toggle/index.js +3 -53
- package/toggle/index.js.map +1 -0
- package/toggle/toggle.d.ts +4 -0
- package/toggle/toggle.js +21 -0
- package/toggle/toggle.js.map +1 -0
- package/toggle/{toggle.module.scss → toggle.m.scss} +4 -4
- package/toggle/types.d.ts +2 -0
- package/toggle/types.js +3 -0
- package/toggle/types.js.map +1 -0
- package/top-bar/index.js +1 -0
- package/top-bar/index.js.map +1 -0
- package/top-bar/top-bar.d.ts +2 -3
- package/top-bar/top-bar.js +20 -67
- package/top-bar/top-bar.js.map +1 -0
- package/top-bar/{top-bar.module.scss → top-bar.m.scss} +25 -11
- package/top-bar/types.d.ts +19 -8
- package/top-bar/types.js +1 -0
- package/top-bar/types.js.map +1 -0
- package/top-bar/utils.d.ts +2 -3
- package/top-bar/utils.js +24 -41
- package/top-bar/utils.js.map +1 -0
- package/touch-slider/index.d.ts +2 -13
- package/touch-slider/index.js +3 -18
- package/touch-slider/index.js.map +1 -0
- package/touch-slider/touch-slider.d.ts +9 -0
- package/touch-slider/touch-slider.js +21 -0
- package/touch-slider/touch-slider.js.map +1 -0
- package/touch-slider/types.d.ts +5 -0
- package/touch-slider/types.js +3 -0
- package/touch-slider/types.js.map +1 -0
- package/{types.d.ts → types/index.d.ts} +1 -1
- package/types/index.js +3 -0
- package/types/index.js.map +1 -0
- package/unknown-content/index.d.ts +2 -13
- package/unknown-content/index.js +3 -43
- package/unknown-content/index.js.map +1 -0
- package/unknown-content/types.d.ts +7 -0
- package/unknown-content/types.js +3 -0
- package/unknown-content/types.js.map +1 -0
- package/unknown-content/unknown-content.d.ts +8 -0
- package/unknown-content/unknown-content.js +25 -0
- package/unknown-content/unknown-content.js.map +1 -0
- package/unknown-content/utils.js +3 -2
- package/unknown-content/utils.js.map +1 -0
- package/upload-area/index.d.ts +2 -1
- package/upload-area/index.js +4 -1
- package/upload-area/index.js.map +1 -0
- package/upload-area/types.d.ts +14 -11
- package/upload-area/types.js +1 -0
- package/upload-area/types.js.map +1 -0
- package/upload-area/upload-area-util.scss +2 -0
- package/upload-area/upload-area.d.ts +1 -2
- package/upload-area/upload-area.js +23 -70
- package/upload-area/upload-area.js.map +1 -0
- package/upload-area/{upload-area.module.scss → upload-area.m.scss} +4 -1
- package/upload-area/utils.d.ts +7 -0
- package/upload-area/utils.js +23 -4
- package/upload-area/utils.js.map +1 -0
- package/_internal/custom-scrollbar/custom-scrollbar.module.scss +0 -54
- package/_internal/dropdown-loading/index.d.ts +0 -9
- package/_internal/dropdown-loading/index.js +0 -19
- package/_internal/readme.md +0 -5
- package/_internal/utils/dropdown.d.ts +0 -12
- package/_internal/utils/dropdown.js +0 -16
- package/autocomplete-deprecated/autocomplete.module.scss +0 -20
- package/autocomplete-deprecated/index.d.ts +0 -28
- package/autocomplete-deprecated/index.js +0 -130
- package/avatar/user.d.ts +0 -10
- package/avatar/user.js +0 -61
- package/base-input-deprecated/base-input.module.scss +0 -66
- package/base-input-deprecated/index.d.ts +0 -24
- package/base-input-deprecated/index.js +0 -80
- package/bordered-layout/bordered-layout.module.scss +0 -7
- package/bordered-layout/index.d.ts +0 -16
- package/bordered-layout/index.js +0 -33
- package/card/card.module.scss +0 -8
- package/card/index.d.ts +0 -17
- package/card/index.js +0 -63
- package/card/slots.d.ts +0 -41
- package/card/slots.js +0 -86
- package/card/utils.d.ts +0 -3
- package/card/utils.js +0 -5
- package/checkbox-field/checkbox-field.module.scss +0 -56
- package/checkbox-field/index.d.ts +0 -19
- package/checkbox-field/index.js +0 -62
- package/chips/chips.module.scss +0 -75
- package/chips/index.d.ts +0 -16
- package/chips/index.js +0 -56
- package/chips/item.d.ts +0 -15
- package/chips/item.js +0 -20
- package/field-grid/field-grid.module.scss +0 -30
- package/field-grid/index.d.ts +0 -59
- package/field-grid/index.js +0 -138
- package/file-icon/unknown.svg +0 -9
- package/helpers/format-number.d.ts +0 -7
- package/helpers/format-number.js +0 -29
- package/helpers/get-no-index.d.ts +0 -8
- package/helpers/get-no-index.js +0 -12
- package/helpers/rename.d.ts +0 -13
- package/helpers/rename.js +0 -14
- package/helpers/with-prevent.d.ts +0 -11
- package/helpers/with-prevent.js +0 -20
- package/hint-deprecated/hint.module.scss +0 -61
- package/hint-deprecated/index.d.ts +0 -11
- package/hint-deprecated/index.js +0 -53
- package/hooks/intersection/readme.md +0 -55
- package/hooks/styles.d.ts +0 -6
- package/hooks/styles.js +0 -26
- package/input/input.module.scss +0 -20
- package/layout/layout.module.scss +0 -56
- package/loading-overlay/index.d.ts +0 -19
- package/loading-overlay/index.js +0 -20
- package/loading-overlay/loading-overlay.module.scss +0 -14
- package/masked-field/index.d.ts +0 -23
- package/masked-field/index.js +0 -71
- package/masked-input/hook.d.ts +0 -8
- package/masked-input/hook.js +0 -72
- package/modal/modal.module.scss +0 -134
- package/no-index-mark/index.d.ts +0 -11
- package/no-index-mark/index.js +0 -14
- package/pagination/base-pagination.d.ts +0 -51
- package/pagination/base-pagination.js +0 -105
- package/pagination/page-button.d.ts +0 -15
- package/pagination/page-button.js +0 -32
- package/pagination/pagination.module.scss +0 -76
- package/phone-input/presets.d.ts +0 -25
- package/phone-input/presets.js +0 -118
- package/phone-input-deprecated/index.d.ts +0 -29
- package/phone-input-deprecated/index.js +0 -124
- package/phone-input-deprecated/phone-input.module.scss +0 -41
- package/rating/star.svg +0 -3
- package/readme.md +0 -183
- package/screen/index.d.ts +0 -25
- package/screen/index.js +0 -74
- package/screen/screen.module.scss +0 -31
- package/screen/slots.d.ts +0 -26
- package/screen/slots.js +0 -101
- package/screen/utils.d.ts +0 -14
- package/screen/utils.js +0 -5
- package/select/parts/block.d.ts +0 -8
- package/select/parts/block.js +0 -70
- package/select/parts/button.d.ts +0 -8
- package/select/parts/button.js +0 -69
- package/select/parts/menu.module.scss +0 -4
- package/select-deprecated/index.d.ts +0 -34
- package/select-deprecated/index.js +0 -112
- package/select-deprecated/select.module.scss +0 -26
- package/side-page/side-page.module.scss +0 -89
- package/side-page/slots.d.ts +0 -26
- package/side-page/slots.js +0 -52
- package/styling/shadows.module.scss +0 -19
- package/text-field/index.d.ts +0 -69
- package/text-field/index.js +0 -108
- package/text-field/text-field.module.scss +0 -205
- package/tooltip/index.d.ts +0 -18
- package/tooltip/index.js +0 -43
- package/tooltip/tooltip.module.scss +0 -49
- package/upload-area/upload.svg +0 -6
- package/with-hint/index.d.ts +0 -31
- package/with-hint/index.js +0 -73
- package/with-hint/positioning-hint.d.ts +0 -12
- package/with-hint/positioning-hint.js +0 -53
- package/with-hint/positioning-hint.module.scss +0 -10
- package/with-hint/utils.d.ts +0 -17
- package/with-hint/utils.js +0 -50
- package/with-tooltip/index.d.ts +0 -18
- package/with-tooltip/index.js +0 -48
- package/with-tooltip/positioning-tooltip.d.ts +0 -15
- package/with-tooltip/positioning-tooltip.js +0 -80
- package/with-tooltip/utils.d.ts +0 -38
- package/with-tooltip/utils.js +0 -162
- /package/alert/{alert.module.scss → alert.m.scss} +0 -0
- /package/autocomplete/{autocomplete.module.scss → autocomplete.m.scss} +0 -0
- /package/box/{box.module.scss → box.m.scss} +0 -0
- /package/carousel/{draggable.module.scss → draggable.m.scss} +0 -0
- /package/checkbox/{checkbox.module.scss → checkbox.m.scss} +0 -0
- /package/{_internal/dropdown-loading/index.module.scss → dropdown/dropdown-loading.m.scss} +0 -0
- /package/dropdown-item/{dropdown-item.module.scss → dropdown-item.m.scss} +0 -0
- /package/group-overflow/{group-overflow.module.scss → group-overflow.m.scss} +0 -0
- /package/hint/{hint-view.module.scss → hint-view.m.scss} +0 -0
- /package/hooks/{breakpoint → use-breakpoint}/types.d.ts +0 -0
- /package/hooks/{intersection → use-intersection}/index.d.ts +0 -0
- /package/hooks/{keydown.d.ts → use-keydown/index.d.ts} +0 -0
- /package/layout/{legacy.module.scss → legacy.m.scss} +0 -0
- /package/link/{link.module.scss → link.m.scss} +0 -0
- /package/modal-overlay/{modal-overlay.module.scss → modal-overlay.m.scss} +0 -0
- /package/panel/{panel.module.scss → panel.m.scss} +0 -0
- /package/plate/{plate.module.scss → plate.m.scss} +0 -0
- /package/price/{price.module.scss → price.m.scss} +0 -0
- /package/radio-button/{radio-button.module.scss → radio-button.m.scss} +0 -0
- /package/range/{range.module.scss → range.m.scss} +0 -0
- /package/rating/{rating.module.scss → rating.m.scss} +0 -0
- /package/select/parts/{block.module.scss → field-block.m.scss} +0 -0
- /package/stepper/{stepper.module.scss → stepper.m.scss} +0 -0
- /package/stroked-svg/{index.module.scss → stroked-svg.m.scss} +0 -0
- /package/styling/{fonts.module.scss → fonts.m.scss} +0 -0
- /package/styling/{shapes.module.scss → shapes.m.scss} +0 -0
- /package/switcher-row/{switcher-row.module.scss → switcher-row.m.scss} +0 -0
- /package/text/{text.module.scss → text.m.scss} +0 -0
- /package/textarea/{textarea.module.scss → textarea.m.scss} +0 -0
- /package/timer/{timer.module.scss → timer.m.scss} +0 -0
- /package/touch-slider/{touch-slider.module.scss → touch-slider.m.scss} +0 -0
- /package/unknown-content/{unknown-content.module.scss → unknown-content.m.scss} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"side-page.js","sourceRoot":"","sources":["../../src/side-page/side-page.tsx"],"names":[],"mappings":";;;;;AAaA,4BA+BC;;AA3CD,oDAAgD;AAChD,kDAAuD;AACvD,2DAAyC;AACzC,0EAAwC;AAExC,MAAM,EAAE,GAAG,cAAU,CAAC,IAAI,CAAC,0BAAM,CAAC,CAAC;AAEnC;;;;GAIG;AACH,SAAgB,QAAQ,CAAC,EACvB,IAAI,GAAG,GAAG,EACV,SAAS,EACT,QAAQ,EACR,OAAO,EACP,YAAY,EACZ,aAAa,EAAE,MAAM,GAAG,WAAW,EACnC,GAAG,SAAS,EACE;IACd,MAAM,iBAAiB,GAAG,IAAA,qBAAa,EAAC,OAAO,EAAE;QAC/C,WAAW,EAAE,YAAY,EAAE,WAAW;QACtC,SAAS,EAAE,YAAY,EAAE,SAAS;KACnC,CAAC,CAAC;IAEH,MAAM,gBAAgB,GAAG,EAAE,CACzB,SAAS;IACT,kGAAkG;IAClG,uDAAuD;IACvD,IAAI,KAAK,OAAO,IAAI,QAAQ,IAAI,EAAE,EAClC,YAAY,EAAE,SAAS,CACxB,CAAC;IAEF,MAAM,iBAAiB,GAAG,EAAE,CAAC,WAAW,EAAE,SAAS,CAAC,CAAC;IAErD,OAAO,CACL,uBAAC,4BAAY,OAAK,YAAY,EAAE,SAAS,EAAE,gBAAgB,KAAM,iBAAiB,YAChF,gCAAK,SAAS,EAAE,iBAAiB,iBAAe,MAAM,KAAM,SAAS,YAClE,QAAQ,GACL,GACO,CAChB,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
@use '../breakpoints';
|
|
2
|
+
@use './side-page-util';
|
|
3
|
+
@use '../modal-overlay/modal-overlay-util';
|
|
4
|
+
|
|
5
|
+
.side-page {
|
|
6
|
+
position: absolute;
|
|
7
|
+
top: 0;
|
|
8
|
+
right: 0;
|
|
9
|
+
height: 100%;
|
|
10
|
+
width: 100%;
|
|
11
|
+
display: flex;
|
|
12
|
+
flex-direction: column;
|
|
13
|
+
background: #fff;
|
|
14
|
+
max-width: var(--side-page-max-width, auto);
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.size-s {
|
|
18
|
+
@include side-page-util.size-s;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.size-m {
|
|
22
|
+
@include side-page-util.size-m;
|
|
23
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { HTMLAttributes, Ref } from 'react';
|
|
2
|
+
import type { WithTestId } from '../types';
|
|
3
|
+
import type { ModalOverlayProps } from '../modal-overlay';
|
|
4
|
+
import type { WithPageScrollLock } from '../_internal/page-scroll-lock';
|
|
5
|
+
export interface SidePageProps extends HTMLAttributes<HTMLDivElement>, WithTestId {
|
|
6
|
+
/** Ширина. */
|
|
7
|
+
size?: 's' | 'm' | 'unset';
|
|
8
|
+
/** Будет вызвана при закрытии. */
|
|
9
|
+
onClose?: () => void;
|
|
10
|
+
/** Свойства компонента ModalOverlay. */
|
|
11
|
+
overlayProps?: ModalOverlayProps;
|
|
12
|
+
}
|
|
13
|
+
export interface SidePageBodyProps extends HTMLAttributes<HTMLDivElement>, WithTestId, WithPageScrollLock {
|
|
14
|
+
rootRef?: Ref<HTMLDivElement>;
|
|
15
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/side-page/types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type { SidePageProps } from './types';
|
|
2
|
+
import { type TransitionOptions, type TransitionState } from 'react-transition-state';
|
|
3
|
+
/**
|
|
4
|
+
* Вернет свойства SidePage для формирования отзывчивого дизайна по гайдам.
|
|
5
|
+
* @param props Свойства SidePage.
|
|
6
|
+
* Неиспользуемые свойства будут выведены в результат без изменений.
|
|
7
|
+
* @param props.size Размер на desktop-разрешениях.
|
|
8
|
+
* @return Свойства SidePage.
|
|
9
|
+
*/
|
|
10
|
+
export declare function getResponsiveSidePageProps(props: SidePageProps): SidePageProps;
|
|
11
|
+
/**
|
|
12
|
+
* Хук для формирования перехода (плавного появления/исчезания) SidePage.
|
|
13
|
+
* @param config Конфиг.
|
|
14
|
+
* @param config.extraProps Свойства SidePage и свойства состояния (shown).
|
|
15
|
+
* Неиспользуемые свойства будут выведены в результат без изменений.
|
|
16
|
+
* @return Состояние перехода и Свойства SidePage.
|
|
17
|
+
*/
|
|
18
|
+
export declare function useSidePageTransition({ shown, timeout, onStateChange, extraProps, }: {
|
|
19
|
+
shown?: boolean;
|
|
20
|
+
timeout?: number;
|
|
21
|
+
onStateChange?: TransitionOptions['onStateChange'];
|
|
22
|
+
extraProps?: SidePageProps;
|
|
23
|
+
}): {
|
|
24
|
+
state: TransitionState;
|
|
25
|
+
sidePageProps: SidePageProps;
|
|
26
|
+
};
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.getResponsiveSidePageProps = getResponsiveSidePageProps;
|
|
7
|
+
exports.useSidePageTransition = useSidePageTransition;
|
|
8
|
+
const hooks_1 = require("../hooks");
|
|
9
|
+
const react_transition_state_1 = require("react-transition-state");
|
|
10
|
+
const classnames_1 = __importDefault(require("classnames"));
|
|
11
|
+
const utils_m_scss_1 = __importDefault(require("./utils.m.scss"));
|
|
12
|
+
/**
|
|
13
|
+
* Вернет свойства SidePage для формирования отзывчивого дизайна по гайдам.
|
|
14
|
+
* @param props Свойства SidePage.
|
|
15
|
+
* Неиспользуемые свойства будут выведены в результат без изменений.
|
|
16
|
+
* @param props.size Размер на desktop-разрешениях.
|
|
17
|
+
* @return Свойства SidePage.
|
|
18
|
+
*/
|
|
19
|
+
function getResponsiveSidePageProps(props) {
|
|
20
|
+
const { size, overlayProps, ...restProps } = props;
|
|
21
|
+
return {
|
|
22
|
+
...restProps,
|
|
23
|
+
size: 'unset',
|
|
24
|
+
// ВАЖНО: накидываем класс именно на ModalOverlay так как размер влияет и на него в том числе
|
|
25
|
+
overlayProps: {
|
|
26
|
+
...overlayProps,
|
|
27
|
+
className: (0, classnames_1.default)(utils_m_scss_1.default[`size-${size}`], overlayProps?.className),
|
|
28
|
+
},
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Хук для формирования перехода (плавного появления/исчезания) SidePage.
|
|
33
|
+
* @param config Конфиг.
|
|
34
|
+
* @param config.extraProps Свойства SidePage и свойства состояния (shown).
|
|
35
|
+
* Неиспользуемые свойства будут выведены в результат без изменений.
|
|
36
|
+
* @return Состояние перехода и Свойства SidePage.
|
|
37
|
+
*/
|
|
38
|
+
function useSidePageTransition({ shown, timeout = 300, onStateChange, extraProps, }) {
|
|
39
|
+
const [state, toggle] = (0, react_transition_state_1.useTransition)({
|
|
40
|
+
initialEntered: shown,
|
|
41
|
+
preEnter: true,
|
|
42
|
+
mountOnEnter: true,
|
|
43
|
+
unmountOnExit: true,
|
|
44
|
+
timeout,
|
|
45
|
+
onStateChange,
|
|
46
|
+
});
|
|
47
|
+
(0, hooks_1.useIsomorphicLayoutEffect)(() => {
|
|
48
|
+
toggle(shown);
|
|
49
|
+
}, [shown]);
|
|
50
|
+
return {
|
|
51
|
+
state,
|
|
52
|
+
sidePageProps: {
|
|
53
|
+
...extraProps,
|
|
54
|
+
className: (0, classnames_1.default)(extraProps?.className, utils_m_scss_1.default['side-page']),
|
|
55
|
+
onClose: state.status === 'entering' ? undefined : extraProps?.onClose,
|
|
56
|
+
overlayProps: {
|
|
57
|
+
...extraProps?.overlayProps,
|
|
58
|
+
className: (0, classnames_1.default)(extraProps?.overlayProps?.className, utils_m_scss_1.default[state.status]),
|
|
59
|
+
style: timeout !== 300
|
|
60
|
+
? {
|
|
61
|
+
'--side-page-transition-duration': `${timeout}ms`,
|
|
62
|
+
...extraProps?.overlayProps?.style,
|
|
63
|
+
}
|
|
64
|
+
: extraProps?.overlayProps?.style,
|
|
65
|
+
},
|
|
66
|
+
},
|
|
67
|
+
};
|
|
68
|
+
}
|
|
69
|
+
//# sourceMappingURL=utils.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../src/side-page/utils.ts"],"names":[],"mappings":";;;;;AAkBA,gEAeC;AASD,sDAoDC;AA5FD,oCAAqD;AACrD,mEAIgC;AAChC,4DAAoC;AACpC,kEAAoC;AAEpC;;;;;;GAMG;AACH,SAAgB,0BAA0B,CAAC,KAAoB;IAC7D,MAAM,EAAE,IAAI,EAAE,YAAY,EAAE,GAAG,SAAS,EAAE,GAAG,KAAK,CAAC;IAEnD,OAAO;QACL,GAAG,SAAS;QAEZ,IAAI,EAAE,OAAO;QAEb,6FAA6F;QAC7F,YAAY,EAAE;YACZ,GAAG,YAAY;YAEf,SAAS,EAAE,IAAA,oBAAU,EAAC,sBAAM,CAAC,QAAQ,IAAI,EAAE,CAAC,EAAE,YAAY,EAAE,SAAS,CAAC;SACvE;KACF,CAAC;AACJ,CAAC;AAED;;;;;;GAMG;AACH,SAAgB,qBAAqB,CAAC,EACpC,KAAK,EACL,OAAO,GAAG,GAAG,EACb,aAAa,EACb,UAAU,GAMX;IAIC,MAAM,CAAC,KAAK,EAAE,MAAM,CAAC,GAAG,IAAA,sCAAa,EAAC;QACpC,cAAc,EAAE,KAAK;QACrB,QAAQ,EAAE,IAAI;QACd,YAAY,EAAE,IAAI;QAClB,aAAa,EAAE,IAAI;QACnB,OAAO;QACP,aAAa;KACd,CAAC,CAAC;IAEH,IAAA,iCAAyB,EAAC,GAAG,EAAE;QAC7B,MAAM,CAAC,KAAK,CAAC,CAAC;IAChB,CAAC,EAAE,CAAC,KAAK,CAAC,CAAC,CAAC;IAEZ,OAAO;QACL,KAAK;QAEL,aAAa,EAAE;YACb,GAAG,UAAU;YAEb,SAAS,EAAE,IAAA,oBAAU,EAAC,UAAU,EAAE,SAAS,EAAE,sBAAM,CAAC,WAAW,CAAC,CAAC;YAEjE,OAAO,EAAE,KAAK,CAAC,MAAM,KAAK,UAAU,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,UAAU,EAAE,OAAO;YAEtE,YAAY,EAAE;gBACZ,GAAG,UAAU,EAAE,YAAY;gBAE3B,SAAS,EAAE,IAAA,oBAAU,EAAC,UAAU,EAAE,YAAY,EAAE,SAAS,EAAE,sBAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;gBAEhF,KAAK,EACH,OAAO,KAAK,GAAG;oBACb,CAAC,CAAE;wBACC,iCAAiC,EAAE,GAAG,OAAO,IAAI;wBACjD,GAAG,UAAU,EAAE,YAAY,EAAE,KAAK;qBACjB;oBACrB,CAAC,CAAC,UAAU,EAAE,YAAY,EAAE,KAAK;aACtC;SACF;KACF,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
@use '../breakpoints';
|
|
2
|
+
@use './side-page-util';
|
|
3
|
+
@use '../top-bar/top-bar-util';
|
|
4
|
+
@use '../bottom-bar/bottom-bar-util';
|
|
5
|
+
@use '../modal-overlay/modal-overlay-util';
|
|
6
|
+
|
|
7
|
+
@include breakpoints.lt('xs') {
|
|
8
|
+
.size-s {
|
|
9
|
+
@include top-bar-util.size-m;
|
|
10
|
+
@include bottom-bar-util.size-m;
|
|
11
|
+
}
|
|
12
|
+
.size-m {
|
|
13
|
+
@include top-bar-util.size-m;
|
|
14
|
+
@include bottom-bar-util.size-m;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
@include breakpoints.gte('xs') {
|
|
19
|
+
.size-s {
|
|
20
|
+
@include side-page-util.size-s;
|
|
21
|
+
@include top-bar-util.size-xl;
|
|
22
|
+
@include bottom-bar-util.size-l;
|
|
23
|
+
}
|
|
24
|
+
.size-m {
|
|
25
|
+
@include side-page-util.size-m;
|
|
26
|
+
@include top-bar-util.size-xl;
|
|
27
|
+
@include bottom-bar-util.size-l;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
// transitions
|
|
32
|
+
|
|
33
|
+
/* stylelint-disable-next-line selector-class-pattern */
|
|
34
|
+
.preEnter {
|
|
35
|
+
background-color: transparent;
|
|
36
|
+
.side-page {
|
|
37
|
+
transform: translateX(100%);
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.entering {
|
|
42
|
+
transition: background-color var(--side-page-transition-duration, 300ms) ease-in-out;
|
|
43
|
+
background-color: modal-overlay-util.$overlay-color;
|
|
44
|
+
overflow: hidden;
|
|
45
|
+
.side-page {
|
|
46
|
+
transition: transform var(--side-page-transition-duration, 300ms) ease-in-out;
|
|
47
|
+
transform: translateX(0);
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
/* stylelint-disable-next-line selector-class-pattern */
|
|
52
|
+
.preExit {
|
|
53
|
+
background-color: modal-overlay-util.$overlay-color;
|
|
54
|
+
.side-page {
|
|
55
|
+
transform: translateX(0);
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.exiting {
|
|
60
|
+
transition: background-color var(--side-page-transition-duration, 300ms) ease-in-out;
|
|
61
|
+
background-color: transparent;
|
|
62
|
+
overflow: hidden;
|
|
63
|
+
.side-page {
|
|
64
|
+
transition: transform var(--side-page-transition-duration, 300ms) ease-in-out;
|
|
65
|
+
transform: translateX(100%);
|
|
66
|
+
}
|
|
67
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Skeleton = void 0;
|
|
4
|
+
var skeleton_1 = require("./skeleton");
|
|
5
|
+
Object.defineProperty(exports, "Skeleton", { enumerable: true, get: function () { return skeleton_1.Skeleton; } });
|
|
6
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/skeleton/index.ts"],"names":[],"mappings":";;;AACA,uCAAsC;AAA7B,oGAAA,QAAQ,OAAA"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { SkeletonProps } from './types';
|
|
2
|
+
/**
|
|
3
|
+
* Скелетон - блок с анимацией загрузки.
|
|
4
|
+
* @param props Свойства.
|
|
5
|
+
* @return Элемент.
|
|
6
|
+
*/
|
|
7
|
+
export declare function Skeleton({ theme, shining, children, className, rootRef, ...restProps }: SkeletonProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.Skeleton = Skeleton;
|
|
7
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
8
|
+
const classnames_1 = __importDefault(require("classnames"));
|
|
9
|
+
const skeleton_m_scss_1 = __importDefault(require("./skeleton.m.scss"));
|
|
10
|
+
/**
|
|
11
|
+
* Скелетон - блок с анимацией загрузки.
|
|
12
|
+
* @param props Свойства.
|
|
13
|
+
* @return Элемент.
|
|
14
|
+
*/
|
|
15
|
+
function Skeleton({ theme = 'light', shining = true, children, className, rootRef, ...restProps }) {
|
|
16
|
+
const rootClassName = (0, classnames_1.default)(skeleton_m_scss_1.default.skeleton, theme === 'light' && skeleton_m_scss_1.default['theme-light'], theme === 'dark' && skeleton_m_scss_1.default['theme-dark'], shining && skeleton_m_scss_1.default.shining, className);
|
|
17
|
+
return ((0, jsx_runtime_1.jsx)("div", { ref: rootRef, ...restProps, className: rootClassName, children: children }));
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=skeleton.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"skeleton.js","sourceRoot":"","sources":["../../src/skeleton/skeleton.tsx"],"names":[],"mappings":";;;;;AASA,4BAqBC;;AA7BD,4DAAoC;AACpC,wEAAuC;AAEvC;;;;GAIG;AACH,SAAgB,QAAQ,CAAC,EACvB,KAAK,GAAG,OAAO,EACf,OAAO,GAAG,IAAI,EACd,QAAQ,EACR,SAAS,EACT,OAAO,EACP,GAAG,SAAS,EACE;IACd,MAAM,aAAa,GAAG,IAAA,oBAAU,EAC9B,yBAAM,CAAC,QAAQ,EACf,KAAK,KAAK,OAAO,IAAI,yBAAM,CAAC,aAAa,CAAC,EAC1C,KAAK,KAAK,MAAM,IAAI,yBAAM,CAAC,YAAY,CAAC,EACxC,OAAO,IAAI,yBAAM,CAAC,OAAO,EACzB,SAAS,CACV,CAAC;IAEF,OAAO,CACL,gCAAK,GAAG,EAAE,OAAO,KAAM,SAAS,EAAE,SAAS,EAAE,aAAa,YACvD,QAAQ,GACL,CACP,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
@use 'sass:color';
|
|
2
|
+
@use 'sass:math';
|
|
3
|
+
@use '../colors';
|
|
4
|
+
|
|
5
|
+
// точка на единичной окружности над координатой x=0.5
|
|
6
|
+
$intermediate: math.sqrt(math.pow(1, 2) - math.pow(0.5, 2));
|
|
7
|
+
|
|
8
|
+
.skeleton {
|
|
9
|
+
position: relative;
|
|
10
|
+
width: var(--skeleton-width, 320px);
|
|
11
|
+
height: var(--skeleton-height, 240px);
|
|
12
|
+
overflow: hidden;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.theme-light {
|
|
16
|
+
background-color: colors.$basic-gray4;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.theme-dark {
|
|
20
|
+
background-color: colors.$basic-gray76;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.shining::before {
|
|
24
|
+
content: '';
|
|
25
|
+
display: block;
|
|
26
|
+
position: absolute;
|
|
27
|
+
top: calc(-1 * (var(--skeleton-shine-size, 200px) / 2));
|
|
28
|
+
left: calc(-1 * (var(--skeleton-shine-size, 200px) / 2));
|
|
29
|
+
width: var(--skeleton-shine-size, 200px);
|
|
30
|
+
height: calc(max(250%, 100vh, 320px));
|
|
31
|
+
transform: translate(-50%, -50%) rotate(30deg);
|
|
32
|
+
animation-duration: 2000ms;
|
|
33
|
+
animation-timing-function: linear;
|
|
34
|
+
animation-iteration-count: infinite;
|
|
35
|
+
animation-name: skeletonShineMoving;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.shining.theme-light::before {
|
|
39
|
+
opacity: 0.6;
|
|
40
|
+
background-image: linear-gradient(
|
|
41
|
+
90deg,
|
|
42
|
+
#{color.adjust(#fff, $alpha: -1)},
|
|
43
|
+
#{color.adjust(#fff, $alpha: -$intermediate)},
|
|
44
|
+
#{color.adjust(#fff, $alpha: 0)},
|
|
45
|
+
#{color.adjust(#fff, $alpha: -$intermediate)},
|
|
46
|
+
#{color.adjust(#fff, $alpha: -1)}
|
|
47
|
+
);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.shining.theme-dark::before {
|
|
51
|
+
opacity: 0.3;
|
|
52
|
+
background-image: linear-gradient(
|
|
53
|
+
90deg,
|
|
54
|
+
#{color.adjust(colors.$basic-gray66, $alpha: -1)},
|
|
55
|
+
#{color.adjust(colors.$basic-gray66, $alpha: -$intermediate)},
|
|
56
|
+
#{color.adjust(colors.$basic-gray66, $alpha: 0)},
|
|
57
|
+
#{color.adjust(colors.$basic-gray66, $alpha: -$intermediate)},
|
|
58
|
+
#{color.adjust(colors.$basic-gray66, $alpha: -1)}
|
|
59
|
+
);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
@keyframes skeletonShineMoving {
|
|
63
|
+
0% {
|
|
64
|
+
left: calc(-1 * (var(--skeleton-shine-size, 200px) / 2));
|
|
65
|
+
top: calc(-1 * (var(--skeleton-shine-size, 200px) / 2));
|
|
66
|
+
}
|
|
67
|
+
25% {
|
|
68
|
+
left: calc(-1 * (var(--skeleton-shine-size, 200px) / 2));
|
|
69
|
+
top: calc(-1 * (var(--skeleton-shine-size, 200px) / 2));
|
|
70
|
+
}
|
|
71
|
+
100% {
|
|
72
|
+
left: calc(100% + (var(--skeleton-shine-size, 200px) / 2));
|
|
73
|
+
top: calc(100% + (var(--skeleton-shine-size, 200px) / 2));
|
|
74
|
+
}
|
|
75
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { CSSProperties, HTMLAttributes, Ref } from 'react';
|
|
2
|
+
import type { WithTestId } from '../types';
|
|
3
|
+
export interface SkeletonStyle extends CSSProperties {
|
|
4
|
+
'--skeleton-width'?: string;
|
|
5
|
+
'--skeleton-height'?: string;
|
|
6
|
+
'--skeleton-shine-size'?: string;
|
|
7
|
+
}
|
|
8
|
+
export interface SkeletonProps extends HTMLAttributes<HTMLDivElement>, WithTestId {
|
|
9
|
+
/** Нужно ли включить анимацию блеска. */
|
|
10
|
+
shining?: boolean;
|
|
11
|
+
/** Стили. */
|
|
12
|
+
style?: SkeletonStyle;
|
|
13
|
+
/** Тема. */
|
|
14
|
+
theme?: 'dark' | 'light' | 'unset';
|
|
15
|
+
/** Ref корневого элемента. */
|
|
16
|
+
rootRef?: Ref<HTMLDivElement>;
|
|
17
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/skeleton/types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Dispatch, ReactNode, SetStateAction } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* Провайдер контекста для вывода нескольких снекбаров.
|
|
4
|
+
* @param props Параметры.
|
|
5
|
+
* @return Элемент.
|
|
6
|
+
*/
|
|
7
|
+
export declare function SnackbarContextProvider({ children }: {
|
|
8
|
+
children?: ReactNode;
|
|
9
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export declare const SnackbarContext: import("react").Context<ContextProps>;
|
|
11
|
+
interface ContextProps {
|
|
12
|
+
closePrevious?: VoidFunction;
|
|
13
|
+
setClose?: Dispatch<SetStateAction<{
|
|
14
|
+
closePrevious?: VoidFunction;
|
|
15
|
+
}>>;
|
|
16
|
+
}
|
|
17
|
+
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SnackbarContext = void 0;
|
|
4
|
+
exports.SnackbarContextProvider = SnackbarContextProvider;
|
|
5
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
6
|
+
const react_1 = require("react");
|
|
7
|
+
/**
|
|
8
|
+
* Провайдер контекста для вывода нескольких снекбаров.
|
|
9
|
+
* @param props Параметры.
|
|
10
|
+
* @return Элемент.
|
|
11
|
+
*/
|
|
12
|
+
function SnackbarContextProvider({ children }) {
|
|
13
|
+
const [value, setClose] = (0, react_1.useState)({});
|
|
14
|
+
return ((0, jsx_runtime_1.jsx)(exports.SnackbarContext.Provider, { value: { ...value, setClose }, children: children }));
|
|
15
|
+
}
|
|
16
|
+
exports.SnackbarContext = (0, react_1.createContext)({});
|
|
17
|
+
//# sourceMappingURL=context.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"context.js","sourceRoot":"","sources":["../../src/snack-bar/context.tsx"],"names":[],"mappings":";;;AAOA,0DAMC;;AAbD,iCAAqF;AAErF;;;;GAIG;AACH,SAAgB,uBAAuB,CAAC,EAAE,QAAQ,EAA4B;IAC5E,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC,GAAG,IAAA,gBAAQ,EAAmC,EAAE,CAAC,CAAC;IAEzE,OAAO,CACL,uBAAC,uBAAe,CAAC,QAAQ,IAAC,KAAK,EAAE,EAAE,GAAG,KAAK,EAAE,QAAQ,EAAE,YAAG,QAAQ,GAA4B,CAC/F,CAAC;AACJ,CAAC;AAEY,QAAA,eAAe,GAAG,IAAA,qBAAa,EAAe,EAAE,CAAC,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { SnackBarImage, SnackBarStartIcon, SnackBarEndIcon, SnackBarTitle, SnackBarSubtitle, } from './slots';
|
|
2
|
+
export { SnackBar } from './snack-bar';
|
|
3
|
+
export { useSnackBarPositioning } from './utils';
|
|
4
|
+
export { SnackbarContextProvider } from './context';
|
|
5
|
+
export type { SnackBarProps } from './types';
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SnackbarContextProvider = exports.useSnackBarPositioning = exports.SnackBar = exports.SnackBarSubtitle = exports.SnackBarTitle = exports.SnackBarEndIcon = exports.SnackBarStartIcon = exports.SnackBarImage = void 0;
|
|
4
|
+
var slots_1 = require("./slots");
|
|
5
|
+
Object.defineProperty(exports, "SnackBarImage", { enumerable: true, get: function () { return slots_1.SnackBarImage; } });
|
|
6
|
+
Object.defineProperty(exports, "SnackBarStartIcon", { enumerable: true, get: function () { return slots_1.SnackBarStartIcon; } });
|
|
7
|
+
Object.defineProperty(exports, "SnackBarEndIcon", { enumerable: true, get: function () { return slots_1.SnackBarEndIcon; } });
|
|
8
|
+
Object.defineProperty(exports, "SnackBarTitle", { enumerable: true, get: function () { return slots_1.SnackBarTitle; } });
|
|
9
|
+
Object.defineProperty(exports, "SnackBarSubtitle", { enumerable: true, get: function () { return slots_1.SnackBarSubtitle; } });
|
|
10
|
+
var snack_bar_1 = require("./snack-bar");
|
|
11
|
+
Object.defineProperty(exports, "SnackBar", { enumerable: true, get: function () { return snack_bar_1.SnackBar; } });
|
|
12
|
+
var utils_1 = require("./utils");
|
|
13
|
+
Object.defineProperty(exports, "useSnackBarPositioning", { enumerable: true, get: function () { return utils_1.useSnackBarPositioning; } });
|
|
14
|
+
var context_1 = require("./context");
|
|
15
|
+
Object.defineProperty(exports, "SnackbarContextProvider", { enumerable: true, get: function () { return context_1.SnackbarContextProvider; } });
|
|
16
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/snack-bar/index.tsx"],"names":[],"mappings":";;;AAAA,iCAMiB;AALf,sGAAA,aAAa,OAAA;AACb,0GAAA,iBAAiB,OAAA;AACjB,wGAAA,eAAe,OAAA;AACf,sGAAA,aAAa,OAAA;AACb,yGAAA,gBAAgB,OAAA;AAElB,yCAAuC;AAA9B,qGAAA,QAAQ,OAAA;AACjB,iCAAiD;AAAxC,+GAAA,sBAAsB,OAAA;AAC/B,qCAAoD;AAA3C,kHAAA,uBAAuB,OAAA"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { HTMLAttributes } from 'react';
|
|
2
|
+
import { SnackBarIconProps, SnackBarImageProps } from './types';
|
|
3
|
+
/**
|
|
4
|
+
* Компонент для вывода изображения в Snackbar.
|
|
5
|
+
* @param props Параметры.
|
|
6
|
+
* @return Элемент.
|
|
7
|
+
*/
|
|
8
|
+
export declare function SnackBarImage(props: SnackBarImageProps): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
/**
|
|
10
|
+
* Компонент для вывода иконки в начале контента Snackbar.
|
|
11
|
+
* @param props Параметры.
|
|
12
|
+
* @return Элемент.
|
|
13
|
+
*/
|
|
14
|
+
export declare const SnackBarStartIcon: (props: SnackBarIconProps) => import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
/**
|
|
16
|
+
* Компонент для вывода иконки в конце контента Snackbar.
|
|
17
|
+
* @param props Параметры.
|
|
18
|
+
* @return Элемент.
|
|
19
|
+
*/
|
|
20
|
+
export declare const SnackBarEndIcon: (props: SnackBarIconProps) => import("react/jsx-runtime").JSX.Element;
|
|
21
|
+
/**
|
|
22
|
+
* Компонент для вывода заголовка в Snackbar.
|
|
23
|
+
* @param props Параметры.
|
|
24
|
+
* @return Элемент.
|
|
25
|
+
*/
|
|
26
|
+
export declare function SnackBarTitle({ children, className, ...props }: HTMLAttributes<HTMLDivElement>): import("react/jsx-runtime").JSX.Element;
|
|
27
|
+
/**
|
|
28
|
+
* Компонент для вывода подзаголовка в Snackbar.
|
|
29
|
+
* @param props Параметры.
|
|
30
|
+
* @return Элемент.
|
|
31
|
+
*/
|
|
32
|
+
export declare function SnackBarSubtitle({ children, className, ...props }: HTMLAttributes<HTMLDivElement>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.SnackBarEndIcon = exports.SnackBarStartIcon = void 0;
|
|
7
|
+
exports.SnackBarImage = SnackBarImage;
|
|
8
|
+
exports.SnackBarTitle = SnackBarTitle;
|
|
9
|
+
exports.SnackBarSubtitle = SnackBarSubtitle;
|
|
10
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
11
|
+
const snack_bar_m_scss_1 = __importDefault(require("./snack-bar.m.scss"));
|
|
12
|
+
const classnames_1 = __importDefault(require("classnames"));
|
|
13
|
+
/**
|
|
14
|
+
* Компонент для вывода изображения в Snackbar.
|
|
15
|
+
* @param props Параметры.
|
|
16
|
+
* @return Элемент.
|
|
17
|
+
*/
|
|
18
|
+
function SnackBarImage(props) {
|
|
19
|
+
return ((0, jsx_runtime_1.jsx)("div", { className: snack_bar_m_scss_1.default.image, children: (0, jsx_runtime_1.jsx)("img", { ...props }) }));
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Компонент для вывода иконки в Snackbar.
|
|
23
|
+
* @param props Параметры.
|
|
24
|
+
* @return Элемент.
|
|
25
|
+
*/
|
|
26
|
+
function Icon({ icon, onClick, className, ...props }) {
|
|
27
|
+
return ((0, jsx_runtime_1.jsx)("div", { className: (0, classnames_1.default)(snack_bar_m_scss_1.default.icon, className), onClick: onClick
|
|
28
|
+
? event => {
|
|
29
|
+
event.stopPropagation();
|
|
30
|
+
onClick(event);
|
|
31
|
+
}
|
|
32
|
+
: undefined, ...props, children: icon }));
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* Компонент для вывода иконки в начале контента Snackbar.
|
|
36
|
+
* @param props Параметры.
|
|
37
|
+
* @return Элемент.
|
|
38
|
+
*/
|
|
39
|
+
const SnackBarStartIcon = (props) => (0, jsx_runtime_1.jsx)(Icon, { ...props });
|
|
40
|
+
exports.SnackBarStartIcon = SnackBarStartIcon;
|
|
41
|
+
/**
|
|
42
|
+
* Компонент для вывода иконки в конце контента Snackbar.
|
|
43
|
+
* @param props Параметры.
|
|
44
|
+
* @return Элемент.
|
|
45
|
+
*/
|
|
46
|
+
const SnackBarEndIcon = (props) => (0, jsx_runtime_1.jsx)(Icon, { ...props });
|
|
47
|
+
exports.SnackBarEndIcon = SnackBarEndIcon;
|
|
48
|
+
/**
|
|
49
|
+
* Компонент для вывода заголовка в Snackbar.
|
|
50
|
+
* @param props Параметры.
|
|
51
|
+
* @return Элемент.
|
|
52
|
+
*/
|
|
53
|
+
function SnackBarTitle({ children, className, ...props }) {
|
|
54
|
+
return ((0, jsx_runtime_1.jsx)("div", { className: (0, classnames_1.default)(snack_bar_m_scss_1.default.title, className), ...props, children: children }));
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* Компонент для вывода подзаголовка в Snackbar.
|
|
58
|
+
* @param props Параметры.
|
|
59
|
+
* @return Элемент.
|
|
60
|
+
*/
|
|
61
|
+
function SnackBarSubtitle({ children, className, ...props }) {
|
|
62
|
+
return ((0, jsx_runtime_1.jsx)("div", { className: (0, classnames_1.default)(snack_bar_m_scss_1.default.subtitle, className), ...props, children: children }));
|
|
63
|
+
}
|
|
64
|
+
//# sourceMappingURL=slots.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"slots.js","sourceRoot":"","sources":["../../src/snack-bar/slots.tsx"],"names":[],"mappings":";;;;;;AAUA,sCAMC;AA6CD,sCAMC;AAOD,4CAUC;;AApFD,0EAAwC;AAExC,4DAA4B;AAG5B;;;;GAIG;AACH,SAAgB,aAAa,CAAC,KAAyB;IACrD,OAAO,CACL,gCAAK,SAAS,EAAE,0BAAM,CAAC,KAAK,YAC1B,mCAAS,KAAK,GAAI,GACd,CACP,CAAC;AACJ,CAAC;AAED;;;;GAIG;AACH,SAAS,IAAI,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,SAAS,EAAE,GAAG,KAAK,EAAqB;IACrE,OAAO,CACL,gCACE,SAAS,EAAE,IAAA,oBAAE,EAAC,0BAAM,CAAC,IAAI,EAAE,SAAS,CAAC,EACrC,OAAO,EACL,OAAO;YACL,CAAC,CAAC,KAAK,CAAC,EAAE;gBACN,KAAK,CAAC,eAAe,EAAE,CAAC;gBACxB,OAAO,CAAC,KAAK,CAAC,CAAC;YACjB,CAAC;YACH,CAAC,CAAC,SAAS,KAEX,KAAK,YAER,IAAI,GACD,CACP,CAAC;AACJ,CAAC;AAED;;;;GAIG;AACI,MAAM,iBAAiB,GAAG,CAAC,KAAwB,EAAE,EAAE,CAAC,uBAAC,IAAI,OAAK,KAAK,GAAI,CAAC;AAAtE,QAAA,iBAAiB,qBAAqD;AAEnF;;;;GAIG;AACI,MAAM,eAAe,GAAG,CAAC,KAAwB,EAAE,EAAE,CAAC,uBAAC,IAAI,OAAK,KAAK,GAAI,CAAC;AAApE,QAAA,eAAe,mBAAqD;AAEjF;;;;GAIG;AACH,SAAgB,aAAa,CAAC,EAAE,QAAQ,EAAE,SAAS,EAAE,GAAG,KAAK,EAAkC;IAC7F,OAAO,CACL,gCAAK,SAAS,EAAE,IAAA,oBAAE,EAAC,0BAAM,CAAC,KAAK,EAAE,SAAS,CAAC,KAAM,KAAK,YACnD,QAAQ,GACL,CACP,CAAC;AACJ,CAAC;AAED;;;;GAIG;AACH,SAAgB,gBAAgB,CAAC,EAC/B,QAAQ,EACR,SAAS,EACT,GAAG,KAAK,EACuB;IAC/B,OAAO,CACL,gCAAK,SAAS,EAAE,IAAA,oBAAE,EAAC,0BAAM,CAAC,QAAQ,EAAE,SAAS,CAAC,KAAM,KAAK,YACtD,QAAQ,GACL,CACP,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { SnackBarProps } from './types';
|
|
2
|
+
/**
|
|
3
|
+
* Компонент Snackbar.
|
|
4
|
+
* @param props Параметры.
|
|
5
|
+
* @return Элемент.
|
|
6
|
+
*/
|
|
7
|
+
export declare function SnackBar({ onClick, children, className, onMount, ...props }: SnackBarProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.SnackBar = SnackBar;
|
|
7
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
8
|
+
const button_1 = require("../button");
|
|
9
|
+
const helpers_1 = require("../helpers");
|
|
10
|
+
const text_button_1 = require("../text-button");
|
|
11
|
+
const snack_bar_m_scss_1 = __importDefault(require("./snack-bar.m.scss"));
|
|
12
|
+
const slots_1 = require("./slots");
|
|
13
|
+
const react_1 = require("react");
|
|
14
|
+
const classnames_1 = __importDefault(require("classnames"));
|
|
15
|
+
/**
|
|
16
|
+
* Компонент Snackbar.
|
|
17
|
+
* @param props Параметры.
|
|
18
|
+
* @return Элемент.
|
|
19
|
+
*/
|
|
20
|
+
function SnackBar({ onClick, children, className, onMount, ...props }) {
|
|
21
|
+
const ref = (0, react_1.useRef)(null);
|
|
22
|
+
const { image, title, subtitle, startIcon, button, textButton, endIcon } = (0, helpers_1.defineSlots)(children, {
|
|
23
|
+
image: slots_1.SnackBarImage,
|
|
24
|
+
startIcon: slots_1.SnackBarStartIcon,
|
|
25
|
+
title: slots_1.SnackBarTitle,
|
|
26
|
+
subtitle: slots_1.SnackBarSubtitle,
|
|
27
|
+
button: button_1.Button,
|
|
28
|
+
textButton: text_button_1.TextButton,
|
|
29
|
+
endIcon: slots_1.SnackBarEndIcon,
|
|
30
|
+
});
|
|
31
|
+
(0, react_1.useEffect)(() => {
|
|
32
|
+
onMount?.();
|
|
33
|
+
}, []);
|
|
34
|
+
const asButtonProps = { tabIndex: props.tabIndex || 0, role: props.role || 'button' };
|
|
35
|
+
const hasButton = Boolean(button || textButton);
|
|
36
|
+
return ((0, jsx_runtime_1.jsxs)("div", { className: (0, classnames_1.default)(snack_bar_m_scss_1.default.root, snack_bar_m_scss_1.default.shown, className), onClick: !hasButton ? onClick : undefined, ref: ref, ...(!hasButton && asButtonProps), ...props, children: [image || startIcon, title && ((0, jsx_runtime_1.jsxs)("div", { className: snack_bar_m_scss_1.default.content, children: [title, subtitle] })), hasButton && ((0, jsx_runtime_1.jsx)("div", { onClick: onClick, className: snack_bar_m_scss_1.default.button, ...asButtonProps, children: button || textButton })), endIcon] }));
|
|
37
|
+
}
|
|
38
|
+
//# sourceMappingURL=snack-bar.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"snack-bar.js","sourceRoot":"","sources":["../../src/snack-bar/snack-bar.tsx"],"names":[],"mappings":";;;;;AAoBA,4BA2CC;;AA/DD,sCAAmC;AACnC,wCAAyC;AACzC,gDAA4C;AAE5C,0EAAwC;AACxC,mCAMiB;AACjB,iCAA0C;AAC1C,4DAA4B;AAE5B;;;;GAIG;AACH,SAAgB,QAAQ,CAAC,EAAE,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,OAAO,EAAE,GAAG,KAAK,EAAiB;IACzF,MAAM,GAAG,GAAG,IAAA,cAAM,EAAiB,IAAI,CAAC,CAAC;IACzC,MAAM,EAAE,KAAK,EAAE,KAAK,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,GAAG,IAAA,qBAAW,EAAC,QAAQ,EAAE;QAC/F,KAAK,EAAE,qBAAa;QACpB,SAAS,EAAE,yBAAiB;QAC5B,KAAK,EAAE,qBAAa;QACpB,QAAQ,EAAE,wBAAgB;QAC1B,MAAM,EAAE,eAAM;QACd,UAAU,EAAE,wBAAU;QACtB,OAAO,EAAE,uBAAe;KACzB,CAAC,CAAC;IAEH,IAAA,iBAAS,EAAC,GAAG,EAAE;QACb,OAAO,EAAE,EAAE,CAAC;IACd,CAAC,EAAE,EAAE,CAAC,CAAC;IAEP,MAAM,aAAa,GAAG,EAAE,QAAQ,EAAE,KAAK,CAAC,QAAQ,IAAI,CAAC,EAAE,IAAI,EAAE,KAAK,CAAC,IAAI,IAAI,QAAQ,EAAE,CAAC;IAEtF,MAAM,SAAS,GAAG,OAAO,CAAC,MAAM,IAAI,UAAU,CAAC,CAAC;IAEhD,OAAO,CACL,iCACE,SAAS,EAAE,IAAA,oBAAE,EAAC,0BAAM,CAAC,IAAI,EAAE,0BAAM,CAAC,KAAK,EAAE,SAAS,CAAC,EACnD,OAAO,EAAE,CAAC,SAAS,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,EACzC,GAAG,EAAE,GAAG,KACJ,CAAC,CAAC,SAAS,IAAI,aAAa,CAAC,KAC7B,KAAK,aAER,KAAK,IAAI,SAAS,EAClB,KAAK,IAAI,CACR,iCAAK,SAAS,EAAE,0BAAM,CAAC,OAAO,aAC3B,KAAK,EACL,QAAQ,IACL,CACP,EACA,SAAS,IAAI,CACZ,gCAAK,OAAO,EAAE,OAAO,EAAE,SAAS,EAAE,0BAAM,CAAC,MAAM,KAAM,aAAa,YAC/D,MAAM,IAAI,UAAU,GACjB,CACP,EACA,OAAO,IACJ,CACP,CAAC;AACJ,CAAC"}
|