@sima-land/ui-nucleons 45.0.0-alpha.2 → 45.0.0-alpha.21
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 -51
- 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 +7 -4
- package/_internal/page-scroll-lock/adapters/body-scroll-lock.js +11 -4
- 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 +1 -1
- 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.js +1 -0
- package/_internal/page-scroll-lock/types.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/alert/types.js +3 -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} +8 -5
- 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 +1 -2
- package/autocomplete/autocomplete.js +116 -112
- package/autocomplete/autocomplete.js.map +1 -0
- 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 +15 -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.m.scss +52 -0
- 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 +79 -15
- 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 +6 -2
- 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} +23 -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 +628 -0
- package/carousel/carousel.js.map +1 -0
- package/carousel/{carousel.module.scss → carousel.m.scss} +1 -0
- package/carousel/draggable.d.ts +8 -11
- package/carousel/draggable.js +36 -52
- 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 +154 -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 +20 -0
- package/dropdown/dropdown.js.map +1 -0
- package/dropdown/{dropdown.module.scss → dropdown.m.scss} +6 -2
- 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 +16 -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 +7 -0
- package/file-icon/file-icon.js +35 -0
- package/file-icon/file-icon.js.map +1 -0
- package/file-icon/file-icon.m.scss +62 -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 +13 -0
- package/gradients/index.js +18 -0
- package/gradients/index.js.map +1 -0
- package/gradients.scss +23 -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/group-overflow.m.scss +24 -0
- package/group-overflow/index.d.ts +2 -0
- package/group-overflow/index.js +6 -0
- 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.d.ts +20 -0
- package/group-overflow/utils.js +74 -0
- 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 +11 -15
- package/hint/utils.js +49 -27
- 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/readme.md → use-intersection/README.md} +5 -5
- 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 +22 -9
- 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 +42 -53
- package/masked-input/masked-input.js.map +1 -0
- package/masked-input/types.d.ts +7 -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 -30
- 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 +33 -64
- 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 +2 -4
- package/phone-input/index.js +2 -1
- 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 +113 -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 +116 -0
- package/phone-input/preset/defaults.js.map +1 -0
- package/phone-input/types.d.ts +29 -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 +138 -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 +48 -127
- 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 +3 -39
- package/side-page/index.js +8 -89
- package/side-page/index.js.map +1 -0
- package/side-page/side-page.d.ts +13 -0
- package/side-page/side-page.js +57 -0
- package/side-page/side-page.js.map +1 -0
- package/side-page/slots.d.ts +3 -3
- package/side-page/slots.js +11 -24
- package/side-page/slots.js.map +1 -0
- package/side-page/types.d.ts +27 -0
- package/side-page/types.js +3 -0
- package/side-page/types.js.map +1 -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/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.d.ts +1 -0
- package/styling/borders.js +4 -2
- package/styling/borders.js.map +1 -0
- package/styling/{borders.module.scss → borders.m.scss} +3 -1
- package/styling/colors.d.ts +10 -5
- package/styling/colors.js +12 -6
- package/styling/colors.js.map +1 -0
- package/styling/fonts.d.ts +3 -0
- package/styling/fonts.js +8 -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.d.ts +1 -0
- package/styling/shadows.js +8 -6
- package/styling/shadows.js.map +1 -0
- package/styling/shadows.m.scss +27 -0
- package/styling/shapes.d.ts +2 -0
- package/styling/shapes.js +22 -19
- package/styling/shapes.js.map +1 -0
- package/styling/sizes.d.ts +10 -0
- package/styling/sizes.js +20 -9
- package/styling/sizes.js.map +1 -0
- package/styling/{sizes.module.scss → sizes.m.scss} +3 -1
- package/styling/utils.d.ts +2 -1
- package/styling/utils.js +3 -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} +4 -1
- 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.d.ts +1 -1
- package/top-bar/index.js +4 -1
- 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 +21 -10
- 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 +1 -1
- package/types.js +1 -0
- package/types.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 +12 -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/utils.scss +8 -1
- 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/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/avatar.module.scss +0 -72
- 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/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/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/_internal/{readme.md → README.md} +0 -0
- /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/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/side-page/{side-page.module.scss → side-page.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/{colors.module.scss → colors.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
package/layout/legacy.js
CHANGED
|
@@ -1,47 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
-
if (mod && mod.__esModule) return mod;
|
|
20
|
-
var result = {};
|
|
21
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
-
__setModuleDefault(result, mod);
|
|
23
|
-
return result;
|
|
24
|
-
};
|
|
25
|
-
var __rest = (this && this.__rest) || function (s, e) {
|
|
26
|
-
var t = {};
|
|
27
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
28
|
-
t[p] = s[p];
|
|
29
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
30
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
31
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
32
|
-
t[p[i]] = s[p[i]];
|
|
33
|
-
}
|
|
34
|
-
return t;
|
|
35
|
-
};
|
|
36
2
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
37
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
38
4
|
};
|
|
39
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
40
6
|
exports.MobileLayout = exports.DesktopLayout = void 0;
|
|
41
|
-
const
|
|
7
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
8
|
+
const react_1 = require("react");
|
|
42
9
|
const bind_1 = __importDefault(require("classnames/bind"));
|
|
43
|
-
const
|
|
44
|
-
const cx = bind_1.default.bind(
|
|
10
|
+
const legacy_m_scss_1 = __importDefault(require("./legacy.m.scss"));
|
|
11
|
+
const cx = bind_1.default.bind(legacy_m_scss_1.default);
|
|
45
12
|
/**
|
|
46
13
|
* Возвращает созданный функциональный компонент, формирующий Layout.
|
|
47
14
|
* @param specificClass Специальный класс.
|
|
@@ -49,10 +16,7 @@ const cx = bind_1.default.bind(legacy_module_scss_1.default);
|
|
|
49
16
|
* @return Элемент.
|
|
50
17
|
*/
|
|
51
18
|
const createLayout = (specificClass, displayName) => {
|
|
52
|
-
const Component = (0, react_1.forwardRef)((
|
|
53
|
-
var { className, element: Element = 'div', disabledOn = [] } = _a, restProps = __rest(_a, ["className", "element", "disabledOn"]);
|
|
54
|
-
return (react_1.default.createElement(Element, Object.assign({}, restProps, { ref: ref, className: cx('layout', specificClass, className, disabledOn.map(key => `disabled-${key}`)) })));
|
|
55
|
-
});
|
|
19
|
+
const Component = (0, react_1.forwardRef)(({ className, element: Element = 'div', disabledOn = [], ...restProps }, ref) => ((0, jsx_runtime_1.jsx)(Element, { ...restProps, ref: ref, className: cx('layout', specificClass, className, disabledOn.map(key => `disabled-${key}`)) })));
|
|
56
20
|
Component.displayName = displayName;
|
|
57
21
|
return Component;
|
|
58
22
|
};
|
|
@@ -66,3 +30,4 @@ exports.DesktopLayout = DesktopLayout;
|
|
|
66
30
|
*/
|
|
67
31
|
const MobileLayout = createLayout('mobile', 'MobileLayout');
|
|
68
32
|
exports.MobileLayout = MobileLayout;
|
|
33
|
+
//# sourceMappingURL=legacy.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"legacy.js","sourceRoot":"","sources":["../../src/layout/legacy.tsx"],"names":[],"mappings":";;;;;;;AAAA,iCAAmC;AAEnC,2DAAyC;AACzC,oEAAsC;AAEtC,MAAM,EAAE,GAAG,cAAU,CAAC,IAAI,CAAC,uBAAO,CAAC,CAAC;AAEpC;;;;;GAKG;AACH,MAAM,YAAY,GAAG,CAAC,aAAqB,EAAE,WAAmB,EAAE,EAAE;IAClE,MAAM,SAAS,GAAG,IAAA,kBAAU,EAC1B,CAAC,EAAE,SAAS,EAAE,OAAO,EAAE,OAAO,GAAG,KAAK,EAAE,UAAU,GAAG,EAAE,EAAE,GAAG,SAAS,EAAE,EAAE,GAAG,EAAE,EAAE,CAAC,CAC/E,uBAAC,OAAO,OACD,SAAiB,EACtB,GAAG,EAAE,GAAG,EACR,SAAS,EAAE,EAAE,CACX,QAAQ,EACR,aAAa,EACb,SAAS,EACT,UAAU,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE,CAAC,YAAY,GAAG,EAAE,CAAC,CACzC,GACD,CACH,CACF,CAAC;IAEF,SAAS,CAAC,WAAW,GAAG,WAAW,CAAC;IAEpC,OAAO,SAAS,CAAC;AACnB,CAAC,CAAC;AAEF;;GAEG;AACH,MAAM,aAAa,GAAG,YAAY,CAAC,SAAS,EAAE,eAAe,CAAC,CAAC;AAOtD,sCAAa;AALtB;;GAEG;AACH,MAAM,YAAY,GAAG,YAAY,CAAC,QAAQ,EAAE,cAAc,CAAC,CAAC;AAEpC,oCAAY"}
|
package/layout/types.d.ts
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
import { HTMLAttributes } from 'react';
|
|
2
|
-
import { Breakpoint } from '../types';
|
|
1
|
+
import type { HTMLAttributes, Ref } from 'react';
|
|
2
|
+
import type { Breakpoint } from '../types';
|
|
3
3
|
export interface LayoutProps extends HTMLAttributes<HTMLElement> {
|
|
4
4
|
/** Список точек остановки на которых необходимо отключить ограничение ширины. */
|
|
5
5
|
disabledOn?: Breakpoint[];
|
|
6
|
+
/** Реф корневого элемента. */
|
|
7
|
+
rootRef?: Ref<HTMLDivElement>;
|
|
6
8
|
}
|
package/layout/types.js
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/layout/types.ts"],"names":[],"mappings":""}
|
package/link/index.d.ts
CHANGED
|
@@ -1,24 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
export type LinkColor = Extract<Token, 'basic-blue' | 'basic-gray87' | 'basic-gray38' | 'basic-white' | 'additional-red' | 'additional-teal'>;
|
|
4
|
-
export interface LinkProps extends React.AnchorHTMLAttributes<HTMLAnchorElement> {
|
|
5
|
-
/** Цвет (название токена). */
|
|
6
|
-
color?: LinkColor;
|
|
7
|
-
/** Нужно ли оборачивать содержимое комментариями no-index. */
|
|
8
|
-
noIndex?: boolean;
|
|
9
|
-
/** Выводить как псевдо-ссылку. */
|
|
10
|
-
pseudo?: boolean;
|
|
11
|
-
/** Отключает ссылку подобно кнопке. */
|
|
12
|
-
disabled?: boolean;
|
|
13
|
-
/** Идентификатор для систем автоматизированного тестирования. */
|
|
14
|
-
'data-testid'?: string;
|
|
15
|
-
/** Нужно ли подчеркивание. */
|
|
16
|
-
underline?: boolean;
|
|
17
|
-
}
|
|
18
|
-
/**
|
|
19
|
-
* Компонент ссылки.
|
|
20
|
-
* @param props Свойства компонента. Поддерживаются свойства span/a.
|
|
21
|
-
* @param ref Реф для DOM-элемента ссылки.
|
|
22
|
-
* @return Элемент.
|
|
23
|
-
*/
|
|
24
|
-
export declare const Link: React.ForwardRefExoticComponent<LinkProps & React.RefAttributes<HTMLAnchorElement>>;
|
|
1
|
+
export type { LinkColor, LinkProps } from './types';
|
|
2
|
+
export { Link } from './link';
|
package/link/index.js
CHANGED
|
@@ -1,68 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
-
if (mod && mod.__esModule) return mod;
|
|
20
|
-
var result = {};
|
|
21
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
-
__setModuleDefault(result, mod);
|
|
23
|
-
return result;
|
|
24
|
-
};
|
|
25
|
-
var __rest = (this && this.__rest) || function (s, e) {
|
|
26
|
-
var t = {};
|
|
27
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
28
|
-
t[p] = s[p];
|
|
29
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
30
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
31
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
32
|
-
t[p[i]] = s[p[i]];
|
|
33
|
-
}
|
|
34
|
-
return t;
|
|
35
|
-
};
|
|
36
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
37
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
38
|
-
};
|
|
39
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
40
3
|
exports.Link = void 0;
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
const link_module_scss_1 = __importDefault(require("./link.module.scss"));
|
|
45
|
-
const cx = bind_1.default.bind(link_module_scss_1.default);
|
|
46
|
-
/**
|
|
47
|
-
* Возвращает объект со свойствами, формирующими содержимое.
|
|
48
|
-
* @param children Содержимое линка.
|
|
49
|
-
* @param noIndex Флаг запрета индексации.
|
|
50
|
-
* @return Объект со свойствами, формирующими содержимое.
|
|
51
|
-
*/
|
|
52
|
-
const getContentProps = (children, noIndex) => noIndex ? { dangerouslySetInnerHTML: (0, get_no_index_1.getNoIndex)(children) } : { children };
|
|
53
|
-
/**
|
|
54
|
-
* Компонент ссылки.
|
|
55
|
-
* @param props Свойства компонента. Поддерживаются свойства span/a.
|
|
56
|
-
* @param ref Реф для DOM-элемента ссылки.
|
|
57
|
-
* @return Элемент.
|
|
58
|
-
*/
|
|
59
|
-
exports.Link = (0, react_1.forwardRef)(function Link(_a, ref) {
|
|
60
|
-
var { children, className, color = 'basic-blue', disabled, noIndex = false, pseudo, role, tabIndex, underline, 'data-testid': testId = 'anchor' } = _a, restProps = __rest(_a, ["children", "className", "color", "disabled", "noIndex", "pseudo", "role", "tabIndex", "underline", 'data-testid']);
|
|
61
|
-
const baseProps = pseudo
|
|
62
|
-
? {
|
|
63
|
-
role: role || 'button',
|
|
64
|
-
tabIndex: disabled ? undefined : tabIndex || 0,
|
|
65
|
-
}
|
|
66
|
-
: { role, tabIndex };
|
|
67
|
-
return (react_1.default.createElement("a", Object.assign({}, baseProps, restProps, { "data-testid": testId, ref: ref, className: cx('link', className, color, { disabled, underline }) }, getContentProps(children, noIndex))));
|
|
68
|
-
});
|
|
4
|
+
var link_1 = require("./link");
|
|
5
|
+
Object.defineProperty(exports, "Link", { enumerable: true, get: function () { return link_1.Link; } });
|
|
6
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/link/index.ts"],"names":[],"mappings":";;;AACA,+BAA8B;AAArB,4FAAA,IAAI,OAAA"}
|
package/link/link.d.ts
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { LinkProps } from './types';
|
|
2
|
+
/**
|
|
3
|
+
* Ссылка.
|
|
4
|
+
* @param props Свойства компонента. Поддерживаются свойства span/a.
|
|
5
|
+
* @param ref Реф для DOM-элемента ссылки.
|
|
6
|
+
* @return Элемент.
|
|
7
|
+
*/
|
|
8
|
+
export declare const Link: import("react").ForwardRefExoticComponent<LinkProps & import("react").RefAttributes<HTMLAnchorElement>>;
|
package/link/link.js
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
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.Link = void 0;
|
|
7
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
8
|
+
const react_1 = require("react");
|
|
9
|
+
const bind_1 = __importDefault(require("classnames/bind"));
|
|
10
|
+
const link_m_scss_1 = __importDefault(require("./link.m.scss"));
|
|
11
|
+
const cx = bind_1.default.bind(link_m_scss_1.default);
|
|
12
|
+
/**
|
|
13
|
+
* Ссылка.
|
|
14
|
+
* @param props Свойства компонента. Поддерживаются свойства span/a.
|
|
15
|
+
* @param ref Реф для DOM-элемента ссылки.
|
|
16
|
+
* @return Элемент.
|
|
17
|
+
*/
|
|
18
|
+
exports.Link = (0, react_1.forwardRef)(function Link({ children, className, color = 'basic-blue', disabled, pseudo, role, tabIndex, underline, 'data-testid': testId = 'anchor', ...restProps }, ref) {
|
|
19
|
+
const baseProps = pseudo
|
|
20
|
+
? {
|
|
21
|
+
role: role || 'button',
|
|
22
|
+
tabIndex: disabled ? undefined : tabIndex || 0,
|
|
23
|
+
}
|
|
24
|
+
: { role, tabIndex };
|
|
25
|
+
return ((0, jsx_runtime_1.jsx)("a", { ...baseProps, ...restProps, "data-testid": testId, ref: ref, className: cx('link', className, color, { disabled, underline }), children: children }));
|
|
26
|
+
});
|
|
27
|
+
//# sourceMappingURL=link.js.map
|
package/link/link.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"link.js","sourceRoot":"","sources":["../../src/link/link.tsx"],"names":[],"mappings":";;;;;;;AACA,iCAAmC;AACnC,2DAAyC;AACzC,gEAAmC;AAEnC,MAAM,EAAE,GAAG,cAAU,CAAC,IAAI,CAAC,qBAAM,CAAC,CAAC;AAEnC;;;;;GAKG;AACU,QAAA,IAAI,GAAG,IAAA,kBAAU,EAA+B,SAAS,IAAI,CACxE,EACE,QAAQ,EACR,SAAS,EACT,KAAK,GAAG,YAAY,EACpB,QAAQ,EACR,MAAM,EACN,IAAI,EACJ,QAAQ,EACR,SAAS,EACT,aAAa,EAAE,MAAM,GAAG,QAAQ,EAChC,GAAG,SAAS,EACb,EACD,GAAG;IAEH,MAAM,SAAS,GAAG,MAAM;QACtB,CAAC,CAAC;YACE,IAAI,EAAE,IAAI,IAAI,QAAQ;YACtB,QAAQ,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,QAAQ,IAAI,CAAC;SAC/C;QACH,CAAC,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAC;IAEvB,OAAO,CACL,iCACM,SAAS,KACT,SAAS,iBACA,MAAM,EACnB,GAAG,EAAE,GAAG,EACR,SAAS,EAAE,EAAE,CAAC,MAAM,EAAE,SAAS,EAAE,KAAK,EAAE,EAAE,QAAQ,EAAE,SAAS,EAAE,CAAC,YAE/D,QAAQ,GACP,CACL,CAAC;AACJ,CAAC,CAAC,CAAC"}
|
package/link/types.d.ts
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { AnchorHTMLAttributes } from 'react';
|
|
2
|
+
import type { Token } from '../colors';
|
|
3
|
+
import type { WithTestId } from '../types';
|
|
4
|
+
export type LinkColor = Extract<Token, 'basic-blue' | 'basic-gray87' | 'basic-gray38' | 'basic-white' | 'additional-red' | 'additional-teal'>;
|
|
5
|
+
export interface LinkProps extends AnchorHTMLAttributes<HTMLAnchorElement>, WithTestId {
|
|
6
|
+
/** Цвет (название токена). */
|
|
7
|
+
color?: LinkColor;
|
|
8
|
+
/** Выводить как псевдо-ссылку. */
|
|
9
|
+
pseudo?: boolean;
|
|
10
|
+
/** Отключает ссылку подобно кнопке. */
|
|
11
|
+
disabled?: boolean;
|
|
12
|
+
/** Нужно ли подчеркивание. */
|
|
13
|
+
underline?: boolean;
|
|
14
|
+
}
|
package/link/types.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/link/types.ts"],"names":[],"mappings":""}
|
package/masked-input/index.d.ts
CHANGED
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
export type { MaskedInputProps, MaskData, UseInputMaskOptions, UseInputMaskResult };
|
|
5
|
-
export { MaskedInput, useInputMask };
|
|
1
|
+
export type { MaskedInputProps, MaskData, UseInputMaskOptions, UseInputMaskResult } from './types';
|
|
2
|
+
export { MaskedInput } from './masked-input';
|
|
3
|
+
export { useInputMask } from './use-input-mask';
|
package/masked-input/index.js
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.useInputMask = exports.MaskedInput = void 0;
|
|
4
|
-
|
|
4
|
+
var masked_input_1 = require("./masked-input");
|
|
5
5
|
Object.defineProperty(exports, "MaskedInput", { enumerable: true, get: function () { return masked_input_1.MaskedInput; } });
|
|
6
|
-
|
|
7
|
-
Object.defineProperty(exports, "useInputMask", { enumerable: true, get: function () { return
|
|
6
|
+
var use_input_mask_1 = require("./use-input-mask");
|
|
7
|
+
Object.defineProperty(exports, "useInputMask", { enumerable: true, get: function () { return use_input_mask_1.useInputMask; } });
|
|
8
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/masked-input/index.ts"],"names":[],"mappings":";;;AACA,+CAA6C;AAApC,2GAAA,WAAW,OAAA;AACpB,mDAAgD;AAAvC,8GAAA,YAAY,OAAA"}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { MaskedInputProps } from './types';
|
|
3
2
|
/**
|
|
4
3
|
* Поле ввода текста по маске.
|
|
5
4
|
* @param props Свойства.
|
|
6
5
|
* @return Элемент.
|
|
7
6
|
*/
|
|
8
|
-
export declare function MaskedInput({
|
|
7
|
+
export declare function MaskedInput({ value, defaultValue, onChange, ...restProps }: MaskedInputProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,73 +1,62 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
-
if (mod && mod.__esModule) return mod;
|
|
20
|
-
var result = {};
|
|
21
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
-
__setModuleDefault(result, mod);
|
|
23
|
-
return result;
|
|
24
|
-
};
|
|
25
|
-
var __rest = (this && this.__rest) || function (s, e) {
|
|
26
|
-
var t = {};
|
|
27
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
28
|
-
t[p] = s[p];
|
|
29
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
30
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
31
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
32
|
-
t[p[i]] = s[p[i]];
|
|
33
|
-
}
|
|
34
|
-
return t;
|
|
35
|
-
};
|
|
36
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37
|
-
exports.MaskedInput =
|
|
38
|
-
const
|
|
3
|
+
exports.MaskedInput = MaskedInput;
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
const react_1 = require("react");
|
|
39
6
|
const input_1 = require("../input");
|
|
40
|
-
const
|
|
41
|
-
const
|
|
7
|
+
const dom_1 = require("@krutoo/input-mask/dom");
|
|
8
|
+
const use_input_mask_1 = require("./use-input-mask");
|
|
9
|
+
/**
|
|
10
|
+
* Поле ввода текста по маске.
|
|
11
|
+
* @param props Свойства.
|
|
12
|
+
* @return Элемент.
|
|
13
|
+
*/
|
|
14
|
+
function MaskedInput({ value, defaultValue, onChange, ...restProps }) {
|
|
15
|
+
const stateless = (0, react_1.useMemo)(() => typeof value !== 'undefined', []);
|
|
16
|
+
// ВАЖНО: при defaultValue состояние должно быть именно здесь (на уровень выше хука маски) для корректной работы
|
|
17
|
+
const [currentValue, setCurrentValue] = (0, react_1.useState)(() => value ?? defaultValue ?? '');
|
|
18
|
+
if (stateless) {
|
|
19
|
+
return (0, jsx_runtime_1.jsx)(StatelessMaskedInput, { ...restProps, value: value, onChange: onChange });
|
|
20
|
+
}
|
|
21
|
+
return ((0, jsx_runtime_1.jsx)(StatelessMaskedInput, { ...restProps, value: currentValue, onChange: (event, data) => {
|
|
22
|
+
setCurrentValue(data.cleanValue);
|
|
23
|
+
onChange?.(event, data);
|
|
24
|
+
} }));
|
|
25
|
+
}
|
|
42
26
|
/**
|
|
43
27
|
* Поле ввода текста по маске.
|
|
28
|
+
* Не имеет собственного состояния введенного значения.
|
|
44
29
|
* @param props Свойства.
|
|
45
30
|
* @return Элемент.
|
|
46
31
|
*/
|
|
47
|
-
function
|
|
48
|
-
|
|
49
|
-
var { mask, placeholder = '_', pattern = '\\d', value, defaultValue, baseInputProps, onFocus, onChange, onBlur, inputRef } = _a, props = __rest(_a, ["mask", "placeholder", "pattern", "value", "defaultValue", "baseInputProps", "onFocus", "onChange", "onBlur", "inputRef"]);
|
|
50
|
-
const { store, bind } = (0, hook_1.useInputMask)({
|
|
32
|
+
function StatelessMaskedInput({ mask, placeholder = '_', pattern = '\\d', value = '', baseInputProps, onFocus, onChange, onInput, onBlur, inputRef, ...restProps }) {
|
|
33
|
+
const { store, bind } = (0, use_input_mask_1.useInputMask)({
|
|
51
34
|
value,
|
|
52
|
-
defaultValue,
|
|
53
35
|
maskOptions: { mask, pattern, placeholder },
|
|
54
36
|
});
|
|
55
37
|
(0, react_1.useImperativeHandle)(inputRef, () => bind.ref.current);
|
|
56
|
-
const
|
|
38
|
+
const getMaskData = (0, react_1.useCallback)(() => ({
|
|
57
39
|
value: store.getState().value,
|
|
58
|
-
cleanValue:
|
|
40
|
+
cleanValue: dom_1.ValueUtil.maskedToClean({ mask, placeholder }, store.getState().value),
|
|
59
41
|
completed: store.getState().value.length === mask.length,
|
|
60
42
|
}), [store, mask, placeholder]);
|
|
61
|
-
return (
|
|
43
|
+
return ((0, jsx_runtime_1.jsx)(input_1.Input, { ...restProps, baseInputProps: {
|
|
44
|
+
...baseInputProps,
|
|
45
|
+
restPlaceholder: baseInputProps?.restPlaceholder ?? {
|
|
62
46
|
value: mask.slice(store.getState().value.length),
|
|
63
47
|
shiftValue: store.getState().value,
|
|
64
|
-
}
|
|
65
|
-
|
|
48
|
+
},
|
|
49
|
+
}, inputRef: bind.ref, value: bind.value, onFocus: event => {
|
|
50
|
+
onFocus?.(event, getMaskData());
|
|
51
|
+
}, onInput: event => {
|
|
52
|
+
bind.onInput(event);
|
|
53
|
+
onInput?.(event, getMaskData());
|
|
66
54
|
}, onChange: event => {
|
|
67
|
-
|
|
68
|
-
|
|
55
|
+
// @todo следующая строка нужна чтобы в testing-library работал fireEvent.change, решить как быть
|
|
56
|
+
// bind.onInput(event);
|
|
57
|
+
onChange?.(event, getMaskData());
|
|
69
58
|
}, onBlur: event => {
|
|
70
|
-
onBlur
|
|
71
|
-
} }))
|
|
59
|
+
onBlur?.(event, getMaskData());
|
|
60
|
+
} }));
|
|
72
61
|
}
|
|
73
|
-
|
|
62
|
+
//# sourceMappingURL=masked-input.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"masked-input.js","sourceRoot":"","sources":["../../src/masked-input/masked-input.tsx"],"names":[],"mappings":";;AAWA,kCAoBC;;AA/BD,iCAA4E;AAC5E,oCAAiC;AACjC,gDAAmD;AACnD,qDAAgD;AAGhD;;;;GAIG;AACH,SAAgB,WAAW,CAAC,EAAE,KAAK,EAAE,YAAY,EAAE,QAAQ,EAAE,GAAG,SAAS,EAAoB;IAC3F,MAAM,SAAS,GAAG,IAAA,eAAO,EAAC,GAAG,EAAE,CAAC,OAAO,KAAK,KAAK,WAAW,EAAE,EAAE,CAAC,CAAC;IAElE,gHAAgH;IAChH,MAAM,CAAC,YAAY,EAAE,eAAe,CAAC,GAAG,IAAA,gBAAQ,EAAC,GAAG,EAAE,CAAC,KAAK,IAAI,YAAY,IAAI,EAAE,CAAC,CAAC;IAEpF,IAAI,SAAS,EAAE,CAAC;QACd,OAAO,uBAAC,oBAAoB,OAAK,SAAS,EAAE,KAAK,EAAE,KAAK,EAAE,QAAQ,EAAE,QAAQ,GAAI,CAAC;IACnF,CAAC;IAED,OAAO,CACL,uBAAC,oBAAoB,OACf,SAAS,EACb,KAAK,EAAE,YAAY,EACnB,QAAQ,EAAE,CAAC,KAAK,EAAE,IAAI,EAAE,EAAE;YACxB,eAAe,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;YACjC,QAAQ,EAAE,CAAC,KAAK,EAAE,IAAI,CAAC,CAAC;QAC1B,CAAC,GACD,CACH,CAAC;AACJ,CAAC;AAED;;;;;GAKG;AACH,SAAS,oBAAoB,CAAC,EAC5B,IAAI,EACJ,WAAW,GAAG,GAAG,EACjB,OAAO,GAAG,KAAK,EACf,KAAK,GAAG,EAAE,EACV,cAAc,EACd,OAAO,EACP,QAAQ,EACR,OAAO,EACP,MAAM,EACN,QAAQ,EACR,GAAG,SAAS,EAC2B;IACvC,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,GAAG,IAAA,6BAAY,EAAC;QACnC,KAAK;QACL,WAAW,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,WAAW,EAAE;KAC5C,CAAC,CAAC;IAEH,IAAA,2BAAmB,EACjB,QAAQ,EACR,GAAG,EAAE,CAAC,IAAI,CAAC,GAAG,CAAC,OAAO,CACvB,CAAC;IAEF,MAAM,WAAW,GAAG,IAAA,mBAAW,EAC7B,GAAa,EAAE,CAAC,CAAC;QACf,KAAK,EAAE,KAAK,CAAC,QAAQ,EAAE,CAAC,KAAK;QAC7B,UAAU,EAAE,eAAS,CAAC,aAAa,CAAC,EAAE,IAAI,EAAE,WAAW,EAAE,EAAE,KAAK,CAAC,QAAQ,EAAE,CAAC,KAAK,CAAC;QAClF,SAAS,EAAE,KAAK,CAAC,QAAQ,EAAE,CAAC,KAAK,CAAC,MAAM,KAAK,IAAI,CAAC,MAAM;KACzD,CAAC,EACF,CAAC,KAAK,EAAE,IAAI,EAAE,WAAW,CAAC,CAC3B,CAAC;IAEF,OAAO,CACL,uBAAC,aAAK,OACA,SAAS,EACb,cAAc,EAAE;YACd,GAAG,cAAc;YACjB,eAAe,EAAE,cAAc,EAAE,eAAe,IAAI;gBAClD,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,QAAQ,EAAE,CAAC,KAAK,CAAC,MAAM,CAAC;gBAChD,UAAU,EAAE,KAAK,CAAC,QAAQ,EAAE,CAAC,KAAK;aACnC;SACF,EACD,QAAQ,EAAE,IAAI,CAAC,GAAG,EAClB,KAAK,EAAE,IAAI,CAAC,KAAK,EACjB,OAAO,EAAE,KAAK,CAAC,EAAE;YACf,OAAO,EAAE,CAAC,KAAK,EAAE,WAAW,EAAE,CAAC,CAAC;QAClC,CAAC,EACD,OAAO,EAAE,KAAK,CAAC,EAAE;YACf,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;YACpB,OAAO,EAAE,CAAC,KAAK,EAAE,WAAW,EAAE,CAAC,CAAC;QAClC,CAAC,EACD,QAAQ,EAAE,KAAK,CAAC,EAAE;YAChB,iGAAiG;YACjG,uBAAuB;YACvB,QAAQ,EAAE,CAAC,KAAK,EAAE,WAAW,EAAE,CAAC,CAAC;QACnC,CAAC,EACD,MAAM,EAAE,KAAK,CAAC,EAAE;YACd,MAAM,EAAE,CAAC,KAAK,EAAE,WAAW,EAAE,CAAC,CAAC;QACjC,CAAC,GACD,CACH,CAAC;AACJ,CAAC"}
|
package/masked-input/types.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Action, Store } from 'redux';
|
|
2
|
-
import type { InputState } from '@krutoo/input-mask/
|
|
2
|
+
import type { InputState } from '@krutoo/input-mask/core';
|
|
3
3
|
import type { InputProps } from '../input';
|
|
4
|
-
import type { ChangeEvent,
|
|
4
|
+
import type { ChangeEvent, FocusEvent, FormEvent, FormEventHandler, RefObject } from 'react';
|
|
5
5
|
export interface InputMaskReactOptions {
|
|
6
6
|
/** Строковое представление маски. */
|
|
7
7
|
mask: string;
|
|
@@ -10,11 +10,13 @@ export interface InputMaskReactOptions {
|
|
|
10
10
|
/** Строковое представление регулярного выражения только доступных для ввода символов. */
|
|
11
11
|
pattern: string;
|
|
12
12
|
}
|
|
13
|
-
export interface MaskedInputProps extends Omit<InputProps, 'onFocus' | 'onChange' | 'onBlur'>, Pick<InputMaskReactOptions, 'mask'>, Partial<Omit<InputMaskReactOptions, 'mask'>> {
|
|
13
|
+
export interface MaskedInputProps extends Omit<InputProps, 'onFocus' | 'onChange' | 'onBlur' | 'onInput'>, Pick<InputMaskReactOptions, 'mask'>, Partial<Omit<InputMaskReactOptions, 'mask'>> {
|
|
14
14
|
/** Сработает при фокусе. Вторым аргументом получит данные поля с маской. */
|
|
15
15
|
onFocus?: (event: FocusEvent<HTMLInputElement>, data: MaskData) => void;
|
|
16
16
|
/** Сработает при вводе. Вторым аргументом получит данные поля с маской. */
|
|
17
17
|
onChange?: (event: ChangeEvent<HTMLInputElement>, data: MaskData) => void;
|
|
18
|
+
/** Сработает при вводе. Вторым аргументом получит данные поля с маской. */
|
|
19
|
+
onInput?: (event: FormEvent<HTMLInputElement>, data: MaskData) => void;
|
|
18
20
|
/** Сработает при "blur". Вторым аргументом получит данные поля с маской. */
|
|
19
21
|
onBlur?: (event: FocusEvent<HTMLInputElement>, data: MaskData) => void;
|
|
20
22
|
}
|
|
@@ -27,9 +29,8 @@ export interface MaskData {
|
|
|
27
29
|
completed: boolean;
|
|
28
30
|
}
|
|
29
31
|
export interface UseInputMaskOptions {
|
|
32
|
+
value: string;
|
|
30
33
|
maskOptions: InputMaskReactOptions;
|
|
31
|
-
value?: string;
|
|
32
|
-
defaultValue?: string;
|
|
33
34
|
}
|
|
34
35
|
export interface UseInputMaskResult {
|
|
35
36
|
/** Хранилище состояния поля. */
|
|
@@ -38,7 +39,7 @@ export interface UseInputMaskResult {
|
|
|
38
39
|
bind: {
|
|
39
40
|
ref: RefObject<HTMLInputElement>;
|
|
40
41
|
value: string;
|
|
41
|
-
|
|
42
|
+
onInput: FormEventHandler<HTMLInputElement>;
|
|
42
43
|
};
|
|
43
44
|
}
|
|
44
45
|
export interface ActionCreator<P = never> {
|
package/masked-input/types.js
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/masked-input/types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { UseInputMaskOptions, UseInputMaskResult } from './types';
|
|
2
|
+
/**
|
|
3
|
+
* Хук для задания маски для поля ввода текста.
|
|
4
|
+
* ВАЖНО: этот хук не имеет и не должен иметь собственного состояния, которое бы не зависело от переданных аргументов.
|
|
5
|
+
* @todo Возможно стоит перенести в `@krutoo/input-mask`.
|
|
6
|
+
* @param props Опции.
|
|
7
|
+
* @return Интерфейс работы с маской.
|
|
8
|
+
*/
|
|
9
|
+
export declare function useInputMask({ value, maskOptions: maskOptionsProp, }: UseInputMaskOptions): UseInputMaskResult;
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.useInputMask = useInputMask;
|
|
4
|
+
const react_1 = require("react");
|
|
5
|
+
const hooks_1 = require("../hooks");
|
|
6
|
+
const on_1 = require("../helpers/on");
|
|
7
|
+
const utils_1 = require("./utils");
|
|
8
|
+
const dom_1 = require("@krutoo/input-mask/dom");
|
|
9
|
+
/**
|
|
10
|
+
* Хук для задания маски для поля ввода текста.
|
|
11
|
+
* ВАЖНО: этот хук не имеет и не должен иметь собственного состояния, которое бы не зависело от переданных аргументов.
|
|
12
|
+
* @todo Возможно стоит перенести в `@krutoo/input-mask`.
|
|
13
|
+
* @param props Опции.
|
|
14
|
+
* @return Интерфейс работы с маской.
|
|
15
|
+
*/
|
|
16
|
+
function useInputMask({ value, maskOptions: maskOptionsProp, }) {
|
|
17
|
+
const inputRef = (0, react_1.useRef)(null);
|
|
18
|
+
// ВАЖНО: запоминаем опции тк RegExp - объект и при использовании литерала он будет каждый раз новым
|
|
19
|
+
const maskOptions = (0, react_1.useMemo)(() => ({
|
|
20
|
+
mask: maskOptionsProp.mask,
|
|
21
|
+
pattern: new RegExp(maskOptionsProp.pattern),
|
|
22
|
+
placeholder: maskOptionsProp.placeholder,
|
|
23
|
+
}), [maskOptionsProp.mask, maskOptionsProp.pattern, maskOptionsProp.placeholder]);
|
|
24
|
+
const createStore = (0, react_1.useCallback)(() => {
|
|
25
|
+
const newStore = (0, utils_1.createInputMaskStore)(maskOptions);
|
|
26
|
+
newStore.dispatch(utils_1.actions.manualChange({ value }));
|
|
27
|
+
return newStore;
|
|
28
|
+
}, [value, maskOptions]);
|
|
29
|
+
// ВАЖНО: store меняется только при изменении maskOptions поэтому createStore вынесен в useCallback
|
|
30
|
+
const store = (0, react_1.useMemo)(createStore, [maskOptions]);
|
|
31
|
+
(0, hooks_1.useIsomorphicLayoutEffect)(() => {
|
|
32
|
+
const offList = [
|
|
33
|
+
store.subscribe(() => {
|
|
34
|
+
if (inputRef.current) {
|
|
35
|
+
dom_1.StateUtil.applyDiff(store.getState(), inputRef.current);
|
|
36
|
+
}
|
|
37
|
+
}),
|
|
38
|
+
(0, on_1.on)(document, 'selectionchange', () => {
|
|
39
|
+
if (inputRef.current && inputRef.current === document.activeElement) {
|
|
40
|
+
store.dispatch(utils_1.actions.inputSelectionChange({ input: inputRef.current }));
|
|
41
|
+
}
|
|
42
|
+
}),
|
|
43
|
+
];
|
|
44
|
+
return () => offList.forEach(fn => fn());
|
|
45
|
+
}, [store, inputRef]);
|
|
46
|
+
// each render: update state if value prop and state.value not equals
|
|
47
|
+
if (value !== dom_1.ValueUtil.maskedToClean(maskOptions, store.getState().value)) {
|
|
48
|
+
store.dispatch(utils_1.actions.manualChange({ value }));
|
|
49
|
+
}
|
|
50
|
+
// input field "input" event: update state
|
|
51
|
+
const onInput = (0, react_1.useCallback)(event => {
|
|
52
|
+
store.dispatch(utils_1.actions.inputChange({ input: event.currentTarget }));
|
|
53
|
+
}, [store]);
|
|
54
|
+
return {
|
|
55
|
+
store,
|
|
56
|
+
bind: {
|
|
57
|
+
ref: inputRef,
|
|
58
|
+
value: store.getState().value,
|
|
59
|
+
// ВАЖНО: именно onInput а не onChange потому что onInput срабатывает раньше
|
|
60
|
+
onInput,
|
|
61
|
+
},
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
//# sourceMappingURL=use-input-mask.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-input-mask.js","sourceRoot":"","sources":["../../src/masked-input/use-input-mask.ts"],"names":[],"mappings":";;AAeA,oCAmEC;AAlFD,iCAAuE;AACvE,oCAAqD;AACrD,sCAAmC;AAEnC,mCAAwD;AAExD,gDAA8D;AAE9D;;;;;;GAMG;AACH,SAAgB,YAAY,CAAC,EAC3B,KAAK,EACL,WAAW,EAAE,eAAe,GACR;IACpB,MAAM,QAAQ,GAAG,IAAA,cAAM,EAAmB,IAAI,CAAC,CAAC;IAEhD,oGAAoG;IACpG,MAAM,WAAW,GAAG,IAAA,eAAO,EACzB,GAAG,EAAE,CAAC,CAAC;QACL,IAAI,EAAE,eAAe,CAAC,IAAI;QAC1B,OAAO,EAAE,IAAI,MAAM,CAAC,eAAe,CAAC,OAAO,CAAC;QAC5C,WAAW,EAAE,eAAe,CAAC,WAAW;KACzC,CAAC,EACF,CAAC,eAAe,CAAC,IAAI,EAAE,eAAe,CAAC,OAAO,EAAE,eAAe,CAAC,WAAW,CAAC,CAC7E,CAAC;IAEF,MAAM,WAAW,GAAG,IAAA,mBAAW,EAAC,GAAG,EAAE;QACnC,MAAM,QAAQ,GAAG,IAAA,4BAAoB,EAAC,WAAW,CAAC,CAAC;QAEnD,QAAQ,CAAC,QAAQ,CAAC,eAAO,CAAC,YAAY,CAAC,EAAE,KAAK,EAAE,CAAC,CAAC,CAAC;QAEnD,OAAO,QAAQ,CAAC;IAClB,CAAC,EAAE,CAAC,KAAK,EAAE,WAAW,CAAC,CAAC,CAAC;IAEzB,mGAAmG;IACnG,MAAM,KAAK,GAAG,IAAA,eAAO,EAAC,WAAW,EAAE,CAAC,WAAW,CAAC,CAAC,CAAC;IAElD,IAAA,iCAAyB,EAAC,GAAG,EAAE;QAC7B,MAAM,OAAO,GAAmB;YAC9B,KAAK,CAAC,SAAS,CAAC,GAAG,EAAE;gBACnB,IAAI,QAAQ,CAAC,OAAO,EAAE,CAAC;oBACrB,eAAS,CAAC,SAAS,CAAC,KAAK,CAAC,QAAQ,EAAE,EAAE,QAAQ,CAAC,OAAO,CAAC,CAAC;gBAC1D,CAAC;YACH,CAAC,CAAC;YACF,IAAA,OAAE,EAAC,QAAQ,EAAE,iBAAiB,EAAE,GAAG,EAAE;gBACnC,IAAI,QAAQ,CAAC,OAAO,IAAI,QAAQ,CAAC,OAAO,KAAK,QAAQ,CAAC,aAAa,EAAE,CAAC;oBACpE,KAAK,CAAC,QAAQ,CAAC,eAAO,CAAC,oBAAoB,CAAC,EAAE,KAAK,EAAE,QAAQ,CAAC,OAAO,EAAE,CAAC,CAAC,CAAC;gBAC5E,CAAC;YACH,CAAC,CAAC;SACH,CAAC;QAEF,OAAO,GAAG,EAAE,CAAC,OAAO,CAAC,OAAO,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;IAC3C,CAAC,EAAE,CAAC,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC;IAEtB,qEAAqE;IACrE,IAAI,KAAK,KAAK,eAAS,CAAC,aAAa,CAAC,WAAW,EAAE,KAAK,CAAC,QAAQ,EAAE,CAAC,KAAK,CAAC,EAAE,CAAC;QAC3E,KAAK,CAAC,QAAQ,CAAC,eAAO,CAAC,YAAY,CAAC,EAAE,KAAK,EAAE,CAAC,CAAC,CAAC;IAClD,CAAC;IAED,0CAA0C;IAC1C,MAAM,OAAO,GAAG,IAAA,mBAAW,EACzB,KAAK,CAAC,EAAE;QACN,KAAK,CAAC,QAAQ,CAAC,eAAO,CAAC,WAAW,CAAC,EAAE,KAAK,EAAE,KAAK,CAAC,aAAa,EAAE,CAAC,CAAC,CAAC;IACtE,CAAC,EACD,CAAC,KAAK,CAAC,CACR,CAAC;IAEF,OAAO;QACL,KAAK;QACL,IAAI,EAAE;YACJ,GAAG,EAAE,QAAQ;YACb,KAAK,EAAE,KAAK,CAAC,QAAQ,EAAE,CAAC,KAAK;YAE7B,4EAA4E;YAC5E,OAAO;SACR;KACF,CAAC;AACJ,CAAC"}
|
package/masked-input/utils.d.ts
CHANGED