@sima-land/ui-nucleons 45.0.0-alpha.4 → 45.0.0-alpha.6
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/_internal/custom-scrollbar/index.js +6 -27
- package/_internal/custom-scrollbar/index.js.map +1 -0
- package/_internal/dropdown-loading/index.js +3 -3
- package/_internal/dropdown-loading/index.js.map +1 -0
- package/_internal/page-scroll-lock/adapters/body-scroll-lock.js +5 -1
- package/_internal/page-scroll-lock/adapters/body-scroll-lock.js.map +1 -0
- package/_internal/page-scroll-lock/adapters/ui-nucleons.js +1 -0
- package/_internal/page-scroll-lock/adapters/ui-nucleons.js.map +1 -0
- package/_internal/page-scroll-lock/context.js +4 -25
- package/_internal/page-scroll-lock/context.js.map +1 -0
- package/_internal/page-scroll-lock/hook.js +1 -0
- package/_internal/page-scroll-lock/hook.js.map +1 -0
- package/_internal/page-scroll-lock/index.js +1 -0
- 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/_internal/utils/dropdown.js +1 -0
- package/_internal/utils/dropdown.js.map +1 -0
- package/alert/index.d.ts +2 -2
- package/alert/index.js +6 -31
- package/alert/index.js.map +1 -0
- package/arrow-button/index.js +20 -32
- package/arrow-button/index.js.map +1 -0
- package/autocomplete/autocomplete.js +60 -95
- package/autocomplete/autocomplete.js.map +1 -0
- package/autocomplete/index.js +1 -0
- package/autocomplete/index.js.map +1 -0
- package/autocomplete/types.js +1 -0
- package/autocomplete/types.js.map +1 -0
- package/autocomplete-deprecated/index.d.ts +1 -1
- package/autocomplete-deprecated/index.js +45 -80
- package/autocomplete-deprecated/index.js.map +1 -0
- package/avatar/avatar.module.scss +3 -1
- package/avatar/index.d.ts +1 -1
- package/avatar/index.js +12 -33
- package/avatar/index.js.map +1 -0
- package/avatar/user.d.ts +1 -1
- package/avatar/user.js +9 -29
- package/avatar/user.js.map +1 -0
- package/avatar/utils.js +1 -0
- package/avatar/utils.js.map +1 -0
- package/base-input/base-input.js +11 -48
- package/base-input/base-input.js.map +1 -0
- package/base-input/index.js +1 -0
- package/base-input/index.js.map +1 -0
- package/base-input/types.js +1 -0
- package/base-input/types.js.map +1 -0
- package/base-input/utils.js +2 -1
- package/base-input/utils.js.map +1 -0
- package/base-input-deprecated/index.d.ts +2 -2
- package/base-input-deprecated/index.js +11 -48
- package/base-input-deprecated/index.js.map +1 -0
- package/bordered-layout/index.d.ts +1 -1
- package/bordered-layout/index.js +3 -3
- package/bordered-layout/index.js.map +1 -0
- package/bottom-bar/bottom-bar.js +4 -16
- package/bottom-bar/bottom-bar.js.map +1 -0
- package/bottom-bar/index.js +1 -0
- package/bottom-bar/index.js.map +1 -0
- package/bottom-bar/types.js +1 -0
- package/bottom-bar/types.js.map +1 -0
- package/box/index.d.ts +1 -1
- package/box/index.js +3 -2
- package/box/index.js.map +1 -0
- package/button/index.d.ts +2 -2
- package/button/index.js +8 -45
- package/button/index.js.map +1 -0
- package/card/index.js +4 -21
- package/card/index.js.map +1 -0
- package/card/slots.d.ts +1 -1
- package/card/slots.js +12 -46
- package/card/slots.js.map +1 -0
- package/card/utils.js +1 -0
- package/card/utils.js.map +1 -0
- package/carousel/draggable.d.ts +1 -1
- package/carousel/draggable.js +6 -28
- package/carousel/draggable.js.map +1 -0
- package/carousel/helpers/draggable-event.js +1 -0
- package/carousel/helpers/draggable-event.js.map +1 -0
- package/carousel/index.d.ts +1 -1
- package/carousel/index.js +22 -43
- package/carousel/index.js.map +1 -0
- package/checkbox/index.d.ts +2 -2
- package/checkbox/index.js +6 -45
- package/checkbox/index.js.map +1 -0
- package/checkbox-field/index.d.ts +3 -2
- package/checkbox-field/index.js +8 -47
- package/checkbox-field/index.js.map +1 -0
- package/chips/index.d.ts +1 -1
- package/chips/index.js +4 -39
- package/chips/index.js.map +1 -0
- package/chips/item.d.ts +1 -1
- package/chips/item.js +4 -5
- package/chips/item.js.map +1 -0
- package/clean-buttons/index.d.ts +1 -0
- package/clean-buttons/index.js +8 -41
- package/clean-buttons/index.js.map +1 -0
- package/clean-buttons/types.js +1 -0
- package/clean-buttons/types.js.map +1 -0
- package/clean-buttons/utils.js +1 -0
- package/clean-buttons/utils.js.map +1 -0
- package/colors/index.js +1 -0
- package/colors/index.js.map +1 -0
- package/context/viewport.js +1 -0
- package/context/viewport.js.map +1 -0
- package/dot-nav/index.d.ts +1 -1
- package/dot-nav/index.js +13 -34
- package/dot-nav/index.js.map +1 -0
- package/dropdown/index.d.ts +2 -2
- package/dropdown/index.js +5 -39
- package/dropdown/index.js.map +1 -0
- package/dropdown/utils.js +1 -0
- package/dropdown/utils.js.map +1 -0
- package/dropdown-item/index.d.ts +1 -1
- package/dropdown-item/index.js +6 -22
- package/dropdown-item/index.js.map +1 -0
- package/dropdown-item/types.js +1 -0
- package/dropdown-item/types.js.map +1 -0
- package/dropdown-item/utils.js +1 -0
- package/dropdown-item/utils.js.map +1 -0
- package/expandable/index.d.ts +2 -2
- package/expandable/index.js +15 -36
- package/expandable/index.js.map +1 -0
- package/expandable/utils.js +1 -0
- package/expandable/utils.js.map +1 -0
- package/field-block/index.js +3 -9
- package/field-block/index.js.map +1 -0
- package/field-grid/index.d.ts +7 -1
- package/field-grid/index.js +50 -66
- package/field-grid/index.js.map +1 -0
- package/file-icon/index.d.ts +1 -1
- package/file-icon/index.js +7 -23
- package/file-icon/index.js.map +1 -0
- package/group-overflow/index.js +9 -44
- package/group-overflow/index.js.map +1 -0
- package/group-overflow/utils.js +1 -0
- package/group-overflow/utils.js.map +1 -0
- package/helpers/bounds-of.js +1 -0
- package/helpers/bounds-of.js.map +1 -0
- package/helpers/center-of.js +1 -0
- package/helpers/center-of.js.map +1 -0
- package/helpers/create-container.js +1 -0
- package/helpers/create-container.js.map +1 -0
- package/helpers/define-slots.d.ts +1 -1
- package/helpers/define-slots.js +1 -0
- package/helpers/define-slots.js.map +1 -0
- package/helpers/events.d.ts +1 -1
- package/helpers/events.js +1 -0
- package/helpers/events.js.map +1 -0
- package/helpers/find-child-element.js +1 -0
- package/helpers/find-child-element.js.map +1 -0
- package/helpers/find-offset-parent.js +1 -0
- package/helpers/find-offset-parent.js.map +1 -0
- package/helpers/find-sibling-index.js +1 -0
- package/helpers/find-sibling-index.js.map +1 -0
- package/helpers/fit-element-height.js +1 -0
- package/helpers/fit-element-height.js.map +1 -0
- package/helpers/format-date.js +1 -0
- package/helpers/format-date.js.map +1 -0
- package/helpers/format-number.js +1 -0
- package/helpers/format-number.js.map +1 -0
- package/helpers/get-date-interval-data.js +1 -0
- package/helpers/get-date-interval-data.js.map +1 -0
- package/helpers/get-declination.js +1 -0
- package/helpers/get-declination.js.map +1 -0
- package/helpers/get-fraction-depth.js +1 -0
- package/helpers/get-fraction-depth.js.map +1 -0
- package/helpers/get-no-index.js +1 -0
- package/helpers/get-no-index.js.map +1 -0
- package/helpers/get-relative-pos.js +1 -0
- package/helpers/get-relative-pos.js.map +1 -0
- package/helpers/get-scroll-parent.js +1 -0
- package/helpers/get-scroll-parent.js.map +1 -0
- package/helpers/is-browser.js +1 -0
- package/helpers/is-browser.js.map +1 -0
- package/helpers/is-fully-scrolled.js +1 -0
- package/helpers/is-fully-scrolled.js.map +1 -0
- package/helpers/is-touch-device.js +1 -0
- package/helpers/is-touch-device.js.map +1 -0
- package/helpers/layer.js +1 -0
- package/helpers/layer.js.map +1 -0
- package/helpers/max-index-of.js +1 -0
- package/helpers/max-index-of.js.map +1 -0
- package/helpers/media-query-list.js +1 -0
- package/helpers/media-query-list.js.map +1 -0
- package/helpers/on.d.ts +1 -1
- package/helpers/on.js +1 -0
- package/helpers/on.js.map +1 -0
- package/helpers/point.js +1 -0
- package/helpers/point.js.map +1 -0
- package/helpers/rename.js +1 -0
- package/helpers/rename.js.map +1 -0
- package/helpers/scroll-to-child.js +1 -0
- package/helpers/scroll-to-child.js.map +1 -0
- package/helpers/styles.js +1 -0
- package/helpers/styles.js.map +1 -0
- package/helpers/with-prevent.js +1 -0
- package/helpers/with-prevent.js.map +1 -0
- package/hint/hint-view.js +6 -18
- package/hint/hint-view.js.map +1 -0
- package/hint/hint.js +6 -23
- package/hint/hint.js.map +1 -0
- package/hint/index.js +1 -0
- package/hint/index.js.map +1 -0
- package/hint/utils.js +23 -4
- package/hint/utils.js.map +1 -0
- package/hint-deprecated/index.d.ts +2 -2
- package/hint-deprecated/index.js +4 -40
- package/hint-deprecated/index.js.map +1 -0
- package/hooks/breakpoint/index.js +4 -25
- package/hooks/breakpoint/index.js.map +1 -0
- package/hooks/breakpoint/types.js +1 -0
- package/hooks/breakpoint/types.js.map +1 -0
- package/hooks/breakpoint/utils.js +1 -0
- package/hooks/breakpoint/utils.js.map +1 -0
- package/hooks/identity.js +1 -0
- package/hooks/identity.js.map +1 -0
- package/hooks/index.js +1 -0
- package/hooks/index.js.map +1 -0
- package/hooks/intersection/index.js +1 -0
- package/hooks/intersection/index.js.map +1 -0
- package/hooks/intersection/test-utils.js +6 -2
- package/hooks/intersection/test-utils.js.map +1 -0
- package/hooks/keydown.js +1 -0
- package/hooks/keydown.js.map +1 -0
- package/hooks/media.js +1 -0
- package/hooks/media.js.map +1 -0
- package/hooks/styles.js +1 -0
- package/hooks/styles.js.map +1 -0
- package/info-text/index.js +16 -42
- package/info-text/index.js.map +1 -0
- package/input/index.js +34 -58
- package/input/index.js.map +1 -0
- package/input/utils.js +1 -0
- package/input/utils.js.map +1 -0
- package/layout/index.js +1 -0
- package/layout/index.js.map +1 -0
- package/layout/layout.js +4 -15
- package/layout/layout.js.map +1 -0
- package/layout/legacy.d.ts +5 -5
- package/layout/legacy.js +4 -39
- package/layout/legacy.js.map +1 -0
- package/layout/types.js +1 -0
- package/layout/types.js.map +1 -0
- package/link/index.d.ts +6 -3
- package/link/index.js +5 -38
- package/link/index.js.map +1 -0
- package/loading-overlay/index.d.ts +1 -1
- package/loading-overlay/index.js +3 -3
- package/loading-overlay/index.js.map +1 -0
- package/masked-field/index.d.ts +2 -2
- package/masked-field/index.js +11 -40
- package/masked-field/index.js.map +1 -0
- package/masked-input/hook.js +1 -0
- package/masked-input/hook.js.map +1 -0
- package/masked-input/index.js +1 -0
- package/masked-input/index.js.map +1 -0
- package/masked-input/masked-input.js +11 -41
- package/masked-input/masked-input.js.map +1 -0
- package/masked-input/types.js +1 -0
- package/masked-input/types.js.map +1 -0
- package/masked-input/utils.js +1 -0
- package/masked-input/utils.js.map +1 -0
- package/modal/index.d.ts +1 -1
- package/modal/index.js +4 -10
- package/modal/index.js.map +1 -0
- package/modal/slots.js +10 -45
- package/modal/slots.js.map +1 -0
- package/modal/utils.js +1 -0
- package/modal/utils.js.map +1 -0
- package/modal-overlay/index.js +8 -39
- package/modal-overlay/index.js.map +1 -0
- package/modal-overlay/utils.js +1 -0
- package/modal-overlay/utils.js.map +1 -0
- package/no-index/index.d.ts +3 -3
- package/no-index/index.js +5 -8
- package/no-index/index.js.map +1 -0
- package/no-index-mark/index.d.ts +2 -2
- package/no-index-mark/index.js +8 -6
- package/no-index-mark/index.js.map +1 -0
- package/package.json +7 -14
- 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 +8 -0
- package/pagination/pagination-item.js +20 -0
- package/pagination/pagination-item.js.map +1 -0
- package/pagination/pagination-item.module.scss +49 -0
- package/pagination/pagination.d.ts +8 -0
- package/pagination/pagination.js +98 -0
- package/pagination/pagination.js.map +1 -0
- package/pagination/pagination.module.scss +15 -70
- 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 +51 -85
- package/pagination/utils.js.map +1 -0
- package/{pagination → pagination-deprecated}/base-pagination.d.ts +6 -1
- package/{pagination → pagination-deprecated}/base-pagination.js +34 -47
- package/pagination-deprecated/base-pagination.js.map +1 -0
- package/pagination-deprecated/index.d.ts +22 -0
- package/pagination-deprecated/index.js +16 -0
- package/pagination-deprecated/index.js.map +1 -0
- package/{pagination → pagination-deprecated}/page-button.d.ts +2 -1
- package/pagination-deprecated/page-button.js +17 -0
- package/pagination-deprecated/page-button.js.map +1 -0
- package/pagination-deprecated/pagination.module.scss +76 -0
- package/pagination-deprecated/utils.d.ts +58 -0
- package/pagination-deprecated/utils.js +125 -0
- package/pagination-deprecated/utils.js.map +1 -0
- package/panel/index.js +4 -6
- package/panel/index.js.map +1 -0
- package/phone-input/images/armenia.png +0 -0
- package/phone-input/images/azerbaijan.png +0 -0
- package/phone-input/images/belarus.png +0 -0
- package/phone-input/images/georgia.png +0 -0
- package/phone-input/images/kazakhstan.png +0 -0
- package/phone-input/images/kyrgyzstan.png +0 -0
- package/phone-input/images/moldova.png +0 -0
- package/phone-input/images/other.png +0 -0
- package/phone-input/images/russia.png +0 -0
- package/phone-input/images/tajikistan.png +0 -0
- package/phone-input/images/turkmenistan.png +0 -0
- package/phone-input/images/ukraine.png +0 -0
- package/phone-input/images/uzbekistan.png +0 -0
- package/phone-input/index.js +1 -0
- package/phone-input/index.js.map +1 -0
- package/phone-input/phone-input.js +27 -56
- package/phone-input/phone-input.js.map +1 -0
- package/phone-input/presets.js +4 -1
- package/phone-input/presets.js.map +1 -0
- package/phone-input/types.js +1 -0
- package/phone-input/types.js.map +1 -0
- package/phone-input/utils.js +1 -0
- package/phone-input/utils.js.map +1 -0
- package/phone-input-deprecated/index.d.ts +1 -1
- package/phone-input-deprecated/index.js +43 -71
- package/phone-input-deprecated/index.js.map +1 -0
- package/plate/index.d.ts +2 -2
- package/plate/index.js +5 -38
- package/plate/index.js.map +1 -0
- package/popup/index.js +1 -0
- package/popup/index.js.map +1 -0
- package/popup/popup-view.js +5 -19
- package/popup/popup-view.js.map +1 -0
- package/popup/popup.js +11 -42
- package/popup/popup.js.map +1 -0
- package/popup/utils.js +1 -0
- package/popup/utils.js.map +1 -0
- package/portal/index.d.ts +1 -1
- package/portal/index.js +1 -0
- package/portal/index.js.map +1 -0
- package/price/index.js +3 -2
- package/price/index.js.map +1 -0
- package/price/utils.js +1 -0
- package/price/utils.js.map +1 -0
- package/radio-button/index.js +4 -17
- package/radio-button/index.js.map +1 -0
- package/range/index.d.ts +1 -1
- package/range/index.js +7 -33
- package/range/index.js.map +1 -0
- package/rating/index.d.ts +1 -1
- package/rating/index.js +5 -23
- package/rating/index.js.map +1 -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/screen/index.d.ts +5 -5
- package/screen/index.js +12 -37
- package/screen/index.js.map +1 -0
- package/screen/slots.d.ts +3 -3
- package/screen/slots.js +31 -62
- package/screen/slots.js.map +1 -0
- package/screen/utils.js +1 -0
- package/screen/utils.js.map +1 -0
- package/select/index.js +1 -0
- package/select/index.js.map +1 -0
- package/select/parts/block.js +20 -32
- package/select/parts/block.js.map +1 -0
- package/select/parts/button.js +9 -42
- package/select/parts/button.js.map +1 -0
- package/select/parts/menu.js +14 -46
- package/select/parts/menu.js.map +1 -0
- package/select/select.js +28 -47
- package/select/select.js.map +1 -0
- package/select/types.js +1 -0
- package/select/types.js.map +1 -0
- package/select/utils.js +1 -0
- package/select/utils.js.map +1 -0
- package/select-deprecated/index.d.ts +1 -1
- package/select-deprecated/index.js +34 -69
- package/select-deprecated/index.js.map +1 -0
- package/side-page/index.js +12 -45
- package/side-page/index.js.map +1 -0
- package/side-page/slots.js +7 -19
- package/side-page/slots.js.map +1 -0
- package/spinner/index.d.ts +1 -1
- package/spinner/index.js +4 -5
- package/spinner/index.js.map +1 -0
- package/spinner/spinner.module.scss +3 -1
- package/stepper/index.d.ts +2 -2
- package/stepper/index.js +14 -52
- package/stepper/index.js.map +1 -0
- package/stroked-svg/index.d.ts +2 -2
- package/stroked-svg/index.js +4 -41
- package/stroked-svg/index.js.map +1 -0
- package/styling/borders.js +1 -0
- package/styling/borders.js.map +1 -0
- package/styling/colors.js +1 -0
- package/styling/colors.js.map +1 -0
- package/styling/fonts.js +1 -0
- package/styling/fonts.js.map +1 -0
- package/styling/shadows.js +1 -0
- package/styling/shadows.js.map +1 -0
- package/styling/shapes.js +1 -0
- package/styling/shapes.js.map +1 -0
- package/styling/sizes.js +1 -0
- package/styling/sizes.js.map +1 -0
- package/styling/sizes.module.scss +3 -1
- package/styling/utils.js +1 -0
- package/styling/utils.js.map +1 -0
- package/super-ellipse-clip-path/index.js +3 -8
- package/super-ellipse-clip-path/index.js.map +1 -0
- package/switcher-row/index.js +6 -10
- package/switcher-row/index.js.map +1 -0
- package/tabs/index.d.ts +1 -1
- package/tabs/index.js +5 -26
- package/tabs/index.js.map +1 -0
- package/text/index.d.ts +2 -2
- package/text/index.js +4 -25
- package/text/index.js.map +1 -0
- package/text-button/index.d.ts +2 -2
- package/text-button/index.js +6 -20
- package/text-button/index.js.map +1 -0
- package/text-field/index.d.ts +2 -2
- package/text-field/index.js +26 -55
- package/text-field/index.js.map +1 -0
- package/textarea/index.js +24 -48
- package/textarea/index.js.map +1 -0
- package/timer/index.d.ts +1 -1
- package/timer/index.js +4 -25
- package/timer/index.js.map +1 -0
- package/timer/types.js +1 -0
- package/timer/types.js.map +1 -0
- package/timer/utils.js +1 -0
- package/timer/utils.js.map +1 -0
- package/toggle/index.d.ts +2 -2
- package/toggle/index.js +6 -43
- package/toggle/index.js.map +1 -0
- package/tooltip/index.d.ts +2 -2
- package/tooltip/index.js +5 -28
- package/tooltip/index.js.map +1 -0
- package/top-bar/index.js +1 -0
- package/top-bar/index.js.map +1 -0
- package/top-bar/top-bar.js +11 -58
- package/top-bar/top-bar.js.map +1 -0
- package/top-bar/types.js +1 -0
- package/top-bar/types.js.map +1 -0
- package/top-bar/utils.d.ts +2 -2
- package/top-bar/utils.js +22 -39
- package/top-bar/utils.js.map +1 -0
- package/touch-slider/index.d.ts +1 -1
- package/touch-slider/index.js +3 -4
- package/touch-slider/index.js.map +1 -0
- package/types.js +1 -0
- package/types.js.map +1 -0
- package/unknown-content/index.d.ts +1 -1
- package/unknown-content/index.js +4 -25
- package/unknown-content/index.js.map +1 -0
- package/unknown-content/utils.js +1 -0
- package/unknown-content/utils.js.map +1 -0
- package/upload-area/index.js +1 -0
- package/upload-area/index.js.map +1 -0
- package/upload-area/types.js +1 -0
- package/upload-area/types.js.map +1 -0
- package/upload-area/upload-area.js +9 -38
- package/upload-area/upload-area.js.map +1 -0
- package/upload-area/utils.js +1 -0
- package/upload-area/utils.js.map +1 -0
- package/with-hint/index.d.ts +1 -1
- package/with-hint/index.js +4 -28
- package/with-hint/index.js.map +1 -0
- package/with-hint/positioning-hint.d.ts +1 -1
- package/with-hint/positioning-hint.js +4 -25
- package/with-hint/positioning-hint.js.map +1 -0
- package/with-hint/utils.js +1 -0
- package/with-hint/utils.js.map +1 -0
- package/with-tooltip/index.d.ts +1 -1
- package/with-tooltip/index.js +7 -31
- package/with-tooltip/index.js.map +1 -0
- package/with-tooltip/positioning-tooltip.d.ts +1 -1
- package/with-tooltip/positioning-tooltip.js +5 -26
- package/with-tooltip/positioning-tooltip.js.map +1 -0
- package/with-tooltip/utils.js +1 -0
- package/with-tooltip/utils.js.map +1 -0
- package/file-icon/unknown.svg +0 -9
- package/pagination/page-button.js +0 -32
- package/rating/star.svg +0 -3
- package/readme.md +0 -183
- package/upload-area/upload.svg +0 -6
package/side-page/slots.js
CHANGED
|
@@ -1,21 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __rest = (this && this.__rest) || function (s, e) {
|
|
3
|
-
var t = {};
|
|
4
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
5
|
-
t[p] = s[p];
|
|
6
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
7
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
8
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
9
|
-
t[p[i]] = s[p[i]];
|
|
10
|
-
}
|
|
11
|
-
return t;
|
|
12
|
-
};
|
|
13
2
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
14
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
15
4
|
};
|
|
16
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
6
|
exports.SidePageFooter = exports.SidePageBody = exports.SidePageHeader = void 0;
|
|
18
|
-
const
|
|
7
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
19
8
|
const top_bar_1 = require("../top-bar");
|
|
20
9
|
const bottom_bar_1 = require("../bottom-bar");
|
|
21
10
|
const utils_1 = require("../top-bar/utils");
|
|
@@ -26,9 +15,8 @@ const side_page_module_scss_1 = __importDefault(require("./side-page.module.scss
|
|
|
26
15
|
* @param props Свойства.
|
|
27
16
|
* @return Элемент.
|
|
28
17
|
*/
|
|
29
|
-
function SidePageHeader(
|
|
30
|
-
|
|
31
|
-
return (react_1.default.createElement(top_bar_1.TopBar, Object.assign({}, topBarProps, { size: 'unset', className: side_page_module_scss_1.default.header, buttons: (0, utils_1.navigationButtons)({ buttons, onBack, onClose }) })));
|
|
18
|
+
function SidePageHeader({ onBack, onClose, buttons, ...topBarProps }) {
|
|
19
|
+
return ((0, jsx_runtime_1.jsx)(top_bar_1.TopBar, { ...topBarProps, size: 'unset', className: side_page_module_scss_1.default.header, buttons: (0, utils_1.navigationButtons)({ buttons, onBack, onClose }) }));
|
|
32
20
|
}
|
|
33
21
|
exports.SidePageHeader = SidePageHeader;
|
|
34
22
|
/**
|
|
@@ -37,7 +25,7 @@ exports.SidePageHeader = SidePageHeader;
|
|
|
37
25
|
* @return Элемент.
|
|
38
26
|
*/
|
|
39
27
|
function SidePageBody({ children }) {
|
|
40
|
-
return
|
|
28
|
+
return (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: children });
|
|
41
29
|
}
|
|
42
30
|
exports.SidePageBody = SidePageBody;
|
|
43
31
|
/**
|
|
@@ -45,8 +33,8 @@ exports.SidePageBody = SidePageBody;
|
|
|
45
33
|
* @param props Свойства.
|
|
46
34
|
* @return Элемент.
|
|
47
35
|
*/
|
|
48
|
-
function SidePageFooter(
|
|
49
|
-
|
|
50
|
-
return react_1.default.createElement(bottom_bar_1.BottomBar, Object.assign({}, props, { size: 'unset', className: (0, classnames_1.default)(side_page_module_scss_1.default.footer) }));
|
|
36
|
+
function SidePageFooter({ ...props }) {
|
|
37
|
+
return (0, jsx_runtime_1.jsx)(bottom_bar_1.BottomBar, { ...props, size: 'unset', className: (0, classnames_1.default)(side_page_module_scss_1.default.footer) });
|
|
51
38
|
}
|
|
52
39
|
exports.SidePageFooter = SidePageFooter;
|
|
40
|
+
//# sourceMappingURL=slots.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"slots.js","sourceRoot":"","sources":["../../src/side-page/slots.tsx"],"names":[],"mappings":";;;;;;;AACA,wCAAiD;AACjD,8CAA0D;AAC1D,4CAAqD;AACrD,4DAAoC;AACpC,oFAA6C;AAE7C;;;;GAIG;AACH,SAAgB,cAAc,CAAC,EAC7B,MAAM,EACN,OAAO,EACP,OAAO,EACP,GAAG,WAAW,EAIf;IACC,OAAO,CACL,uBAAC,gBAAM,OACD,WAAW,EACf,IAAI,EAAC,OAAO,EACZ,SAAS,EAAE,+BAAM,CAAC,MAAM,EACxB,OAAO,EAAE,IAAA,yBAAiB,EAAC,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,GACxD,CACH,CAAC;AACJ,CAAC;AAjBD,wCAiBC;AAED;;;;GAIG;AACH,SAAgB,YAAY,CAAC,EAAE,QAAQ,EAA4B;IACjE,OAAO,2DAAG,QAAQ,GAAI,CAAC;AACzB,CAAC;AAFD,oCAEC;AAED;;;;GAIG;AACH,SAAgB,cAAc,CAAC,EAAE,GAAG,KAAK,EAAkB;IACzD,OAAO,uBAAC,sBAAS,OAAK,KAAK,EAAE,IAAI,EAAC,OAAO,EAAC,SAAS,EAAE,IAAA,oBAAU,EAAC,+BAAM,CAAC,MAAM,CAAC,GAAI,CAAC;AACrF,CAAC;AAFD,wCAEC"}
|
package/spinner/index.d.ts
CHANGED
package/spinner/index.js
CHANGED
|
@@ -4,7 +4,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.SpinnerSVG = exports.Spinner = exports.DIAMETERS = void 0;
|
|
7
|
-
const
|
|
7
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
8
8
|
const lodash_1 = require("lodash");
|
|
9
9
|
const colors_1 = require("../colors");
|
|
10
10
|
const bind_1 = __importDefault(require("classnames/bind"));
|
|
@@ -28,8 +28,7 @@ const DEFAULT_COLOR = 'basic-blue';
|
|
|
28
28
|
function Spinner({ size = 'm', color = DEFAULT_COLOR, className, style, 'data-testid': testId = 'spinner', }) {
|
|
29
29
|
const readySize = (0, lodash_1.has)(exports.DIAMETERS, size) ? size : 'm';
|
|
30
30
|
const readyColor = colors_1.COLORS.has(color) ? color : DEFAULT_COLOR;
|
|
31
|
-
return (
|
|
32
|
-
react_1.default.createElement(SpinnerSVG, { size: readySize, color: readyColor, "data-testid": null })));
|
|
31
|
+
return ((0, jsx_runtime_1.jsx)("div", { className: className, style: style, "data-testid": testId, children: (0, jsx_runtime_1.jsx)(SpinnerSVG, { size: readySize, color: readyColor, "data-testid": null }) }));
|
|
33
32
|
}
|
|
34
33
|
exports.Spinner = Spinner;
|
|
35
34
|
/**
|
|
@@ -41,7 +40,7 @@ exports.Spinner = Spinner;
|
|
|
41
40
|
function SpinnerSVG({ size = 'm', color = DEFAULT_COLOR, className, style, 'data-testid': testId = 'spinner', }) {
|
|
42
41
|
const diameter = exports.DIAMETERS[size];
|
|
43
42
|
const radius = diameter / 2;
|
|
44
|
-
return (
|
|
45
|
-
react_1.default.createElement("circle", { className: cx('circle'), cx: radius, cy: radius, r: radius - 1 })));
|
|
43
|
+
return ((0, jsx_runtime_1.jsx)("svg", { style: style, className: cx('spinner', `size-${size}`, className), viewBox: `0 0 ${diameter} ${diameter}`, width: diameter, height: diameter, stroke: colors_1.COLORS.get(color), "data-testid": testId, children: (0, jsx_runtime_1.jsx)("circle", { className: cx('circle'), cx: radius, cy: radius, r: radius - 1 }) }));
|
|
46
44
|
}
|
|
47
45
|
exports.SpinnerSVG = SpinnerSVG;
|
|
46
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/spinner/index.tsx"],"names":[],"mappings":";;;;;;;AAAA,mCAA6B;AAC7B,sCAA0C;AAC1C,2DAAyC;AACzC,gFAA2C;AA0B3C,MAAM,EAAE,GAAG,cAAU,CAAC,IAAI,CAAC,6BAAM,CAAC,CAAC;AAEtB,QAAA,SAAS,GAAoD;IACxE,CAAC,EAAE,EAAE;IACL,CAAC,EAAE,EAAE;IACL,CAAC,EAAE,EAAE;IAEL,qCAAqC;IACrC,KAAK,EAAE,EAAE;IACT,MAAM,EAAE,EAAE;IACV,KAAK,EAAE,EAAE;CACD,CAAC;AAEX,MAAM,aAAa,GAAU,YAAY,CAAC;AAE1C;;;;GAIG;AACH,SAAgB,OAAO,CAAC,EACtB,IAAI,GAAG,GAAG,EACV,KAAK,GAAG,aAAa,EACrB,SAAS,EACT,KAAK,EACL,aAAa,EAAE,MAAM,GAAG,SAAS,GACpB;IACb,MAAM,SAAS,GAAoC,IAAA,YAAG,EAAC,iBAAS,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,GAAG,CAAC;IACrF,MAAM,UAAU,GAAG,eAAM,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,aAAa,CAAC;IAE7D,OAAO,CACL,gCAAK,SAAS,EAAE,SAAS,EAAE,KAAK,EAAE,KAAK,iBAAe,MAAM,YAC1D,uBAAC,UAAU,IAAC,IAAI,EAAE,SAAS,EAAE,KAAK,EAAE,UAAU,iBAAe,IAAI,GAAI,GACjE,CACP,CAAC;AACJ,CAAC;AAfD,0BAeC;AAED;;;;;GAKG;AACH,SAAgB,UAAU,CAAC,EACzB,IAAI,GAAG,GAAG,EACV,KAAK,GAAG,aAAa,EACrB,SAAS,EACT,KAAK,EACL,aAAa,EAAE,MAAM,GAAG,SAAS,GACpB;IACb,MAAM,QAAQ,GAAG,iBAAS,CAAC,IAAI,CAAC,CAAC;IACjC,MAAM,MAAM,GAAG,QAAQ,GAAG,CAAC,CAAC;IAE5B,OAAO,CACL,gCACE,KAAK,EAAE,KAAK,EACZ,SAAS,EAAE,EAAE,CAAC,SAAS,EAAE,QAAQ,IAAI,EAAE,EAAE,SAAS,CAAC,EACnD,OAAO,EAAE,OAAO,QAAQ,IAAI,QAAQ,EAAE,EACtC,KAAK,EAAE,QAAQ,EACf,MAAM,EAAE,QAAQ,EAChB,MAAM,EAAE,eAAM,CAAC,GAAG,CAAC,KAAK,CAAC,iBACZ,MAAM,YAEnB,mCACE,SAAS,EAAE,EAAE,CAAC,QAAQ,CAAC,EACvB,EAAE,EAAE,MAAM,EACV,EAAE,EAAE,MAAM,EACV,CAAC,EAAE,MAAM,GAAG,CAAC,GACb,GACE,CACP,CAAC;AACJ,CAAC;AA5BD,gCA4BC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
@use 'sass:map';
|
|
2
|
+
|
|
1
3
|
$pi: 3.141592653589793;
|
|
2
4
|
$sizes: (
|
|
3
5
|
s: 20,
|
|
@@ -32,7 +34,7 @@ $durations: (
|
|
|
32
34
|
width: #{$diameter}px;
|
|
33
35
|
height: #{$diameter}px;
|
|
34
36
|
.circle {
|
|
35
|
-
animation: dash-#{$sizeKey} map
|
|
37
|
+
animation: dash-#{$sizeKey} map.get($durations, $sizeKey) linear infinite;
|
|
36
38
|
}
|
|
37
39
|
@keyframes dash-#{$sizeKey} {
|
|
38
40
|
0% {
|
package/stepper/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { CSSProperties, InputHTMLAttributes, MouseEventHandler } from 'react';
|
|
2
2
|
/** Размер Stepper (влияет на высоту и минимальную ширину). */
|
|
3
3
|
export type StepperSize = 's' | 'm';
|
|
4
4
|
/** Стили Stepper. */
|
|
@@ -35,4 +35,4 @@ export interface StepperProps extends Omit<InputHTMLAttributes<HTMLInputElement>
|
|
|
35
35
|
* @param props Свойства.
|
|
36
36
|
* @return Элемент.
|
|
37
37
|
*/
|
|
38
|
-
export declare const Stepper:
|
|
38
|
+
export declare const Stepper: import("react").ForwardRefExoticComponent<StepperProps & import("react").RefAttributes<HTMLInputElement>>;
|
package/stepper/index.js
CHANGED
|
@@ -1,46 +1,13 @@
|
|
|
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.Stepper = void 0;
|
|
41
|
-
const
|
|
42
|
-
const
|
|
43
|
-
const
|
|
7
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
8
|
+
const react_1 = require("react");
|
|
9
|
+
const Plus_1 = __importDefault(require("@sima-land/ui-quarks/icons/16x16/Stroked/Plus"));
|
|
10
|
+
const Minus_1 = __importDefault(require("@sima-land/ui-quarks/icons/16x16/Stroked/Minus"));
|
|
44
11
|
const stepper_module_scss_1 = __importDefault(require("./stepper.module.scss"));
|
|
45
12
|
const bind_1 = __importDefault(require("classnames/bind"));
|
|
46
13
|
const cx = bind_1.default.bind(stepper_module_scss_1.default);
|
|
@@ -49,9 +16,8 @@ const cx = bind_1.default.bind(stepper_module_scss_1.default);
|
|
|
49
16
|
* @param props Свойства.
|
|
50
17
|
* @return Элемент.
|
|
51
18
|
*/
|
|
52
|
-
exports.Stepper = (0, react_1.forwardRef)(function Stepper(
|
|
53
|
-
var
|
|
54
|
-
var { buttonClickBehavior, canAdd = true, canSubtract = true, className, disabled, plusDisabled = disabled, minusDisabled = disabled, readOnly, onAdd, onBlur, onChange, onFocus, onSubtract, size = 'm', style, value, failed, 'data-testid': testId = 'stepper' } = _a, inputProps = __rest(_a, ["buttonClickBehavior", "canAdd", "canSubtract", "className", "disabled", "plusDisabled", "minusDisabled", "readOnly", "onAdd", "onBlur", "onChange", "onFocus", "onSubtract", "size", "style", "value", "failed", 'data-testid']);
|
|
19
|
+
exports.Stepper = (0, react_1.forwardRef)(function Stepper({ buttonClickBehavior, canAdd = true, canSubtract = true, className, disabled, plusDisabled = disabled, minusDisabled = disabled, readOnly, onAdd, onBlur, onChange, onFocus, onSubtract, size = 'm', style, value, failed, 'data-testid': testId = 'stepper', ...inputProps }, forwardedRef) {
|
|
20
|
+
var _a, _b;
|
|
55
21
|
const ref = (0, react_1.useRef)(null);
|
|
56
22
|
const [focused, setFocused] = (0, react_1.useState)(false);
|
|
57
23
|
(0, react_1.useImperativeHandle)(forwardedRef, () => ref.current);
|
|
@@ -61,16 +27,12 @@ exports.Stepper = (0, react_1.forwardRef)(function Stepper(_a, forwardedRef) {
|
|
|
61
27
|
}
|
|
62
28
|
}, [focused, buttonClickBehavior]);
|
|
63
29
|
const rootClassName = cx('root', `size-${size}`, { disabled, focused, failed }, className);
|
|
64
|
-
return (
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
setFocused(false);
|
|
72
|
-
onBlur === null || onBlur === void 0 ? void 0 : onBlur(e);
|
|
73
|
-
} })),
|
|
74
|
-
react_1.default.createElement("button", { tabIndex: -1, hidden: !canAdd, disabled: (_c = plusDisabled !== null && plusDisabled !== void 0 ? plusDisabled : disabled) !== null && _c !== void 0 ? _c : readOnly, className: cx('button'), "data-testid": 'stepper:plus', "aria-label": '\u0423\u0432\u0435\u043B\u0438\u0447\u0438\u0442\u044C', onMouseDown: noBlurOnMousedown, onClick: canAdd && !plusDisabled && !disabled && !readOnly ? onAdd : undefined },
|
|
75
|
-
react_1.default.createElement(plus_1.default, { className: stepper_module_scss_1.default.svg }))));
|
|
30
|
+
return ((0, jsx_runtime_1.jsxs)("div", { "data-testid": testId, style: style, className: rootClassName, onMouseDown: noBlurOnMousedown, children: [(0, jsx_runtime_1.jsx)("button", { tabIndex: -1, hidden: !canSubtract, disabled: (_a = minusDisabled !== null && minusDisabled !== void 0 ? minusDisabled : disabled) !== null && _a !== void 0 ? _a : readOnly, className: cx('button'), "data-testid": 'stepper:minus', "aria-label": '\u0423\u043C\u0435\u043D\u044C\u0448\u0438\u0442\u044C', onMouseDown: noBlurOnMousedown, onClick: canSubtract && !minusDisabled && !disabled && !readOnly ? onSubtract : undefined, children: (0, jsx_runtime_1.jsx)(Minus_1.default, { className: stepper_module_scss_1.default.svg }) }), (0, jsx_runtime_1.jsx)("input", { ...inputProps, ref: ref, readOnly: readOnly, "data-testid": 'stepper:input', className: cx('input'), value: value, disabled: disabled, onChange: onChange, onFocus: e => {
|
|
31
|
+
setFocused(true);
|
|
32
|
+
onFocus === null || onFocus === void 0 ? void 0 : onFocus(e);
|
|
33
|
+
}, onBlur: e => {
|
|
34
|
+
setFocused(false);
|
|
35
|
+
onBlur === null || onBlur === void 0 ? void 0 : onBlur(e);
|
|
36
|
+
} }), (0, jsx_runtime_1.jsx)("button", { tabIndex: -1, hidden: !canAdd, disabled: (_b = plusDisabled !== null && plusDisabled !== void 0 ? plusDisabled : disabled) !== null && _b !== void 0 ? _b : readOnly, className: cx('button'), "data-testid": 'stepper:plus', "aria-label": '\u0423\u0432\u0435\u043B\u0438\u0447\u0438\u0442\u044C', onMouseDown: noBlurOnMousedown, onClick: canAdd && !plusDisabled && !disabled && !readOnly ? onAdd : undefined, children: (0, jsx_runtime_1.jsx)(Plus_1.default, { className: stepper_module_scss_1.default.svg }) })] }));
|
|
76
37
|
});
|
|
38
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
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AAQ,EAC9C,SAAS,EAAE,EAAE,CAAC,QAAQ,CAAC,iBACX,cAAc,gBACf,wDAAW,EACtB,WAAW,EAAE,iBAAiB,EAC9B,OAAO,EAAE,MAAM,IAAI,CAAC,YAAY,IAAI,CAAC,QAAQ,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,YAE9E,uBAAC,cAAO,IAAC,SAAS,EAAE,6BAAM,CAAC,GAAG,GAAI,GAC3B,IACL,CACP,CAAC;AACJ,CAAC,CAAC,CAAC"}
|
package/stroked-svg/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
2
|
export interface StrokedSVGProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'children'> {
|
|
3
3
|
/** Компонент, выводящий svg-элемент. */
|
|
4
4
|
component: React.ComponentType<React.SVGAttributes<SVGSVGElement>>;
|
|
@@ -14,4 +14,4 @@ export interface StrokedSVGProps extends Omit<React.HTMLAttributes<HTMLDivElemen
|
|
|
14
14
|
* @param props Свойства.
|
|
15
15
|
* @return Элемент.
|
|
16
16
|
*/
|
|
17
|
-
export declare const StrokedSVG:
|
|
17
|
+
export declare const StrokedSVG: import("react").ForwardRefExoticComponent<StrokedSVGProps & import("react").RefAttributes<HTMLDivElement>>;
|
package/stroked-svg/index.js
CHANGED
|
@@ -1,44 +1,11 @@
|
|
|
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.StrokedSVG = void 0;
|
|
41
|
-
const
|
|
7
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
8
|
+
const react_1 = require("react");
|
|
42
9
|
const colors_1 = require("../colors");
|
|
43
10
|
const classnames_1 = __importDefault(require("classnames"));
|
|
44
11
|
const index_module_scss_1 = __importDefault(require("./index.module.scss"));
|
|
@@ -47,10 +14,6 @@ const index_module_scss_1 = __importDefault(require("./index.module.scss"));
|
|
|
47
14
|
* @param props Свойства.
|
|
48
15
|
* @return Элемент.
|
|
49
16
|
*/
|
|
50
|
-
exports.StrokedSVG = (0, react_1.forwardRef)((
|
|
51
|
-
var { component: Tag, fill, stroke = colors_1.COLORS.get('basic-gray4'), strokeWidth = 1, className } = _a, restProps = __rest(_a, ["component", "fill", "stroke", "strokeWidth", "className"]);
|
|
52
|
-
return (react_1.default.createElement("div", Object.assign({ ref: ref, className: (0, classnames_1.default)(index_module_scss_1.default.root, className) }, restProps),
|
|
53
|
-
react_1.default.createElement(Tag, { stroke: stroke, strokeWidth: `${strokeWidth * 2}px`, className: index_module_scss_1.default.stroke }),
|
|
54
|
-
react_1.default.createElement(Tag, { fill: fill, className: index_module_scss_1.default.svg })));
|
|
55
|
-
});
|
|
17
|
+
exports.StrokedSVG = (0, react_1.forwardRef)(({ component: Tag, fill, stroke = colors_1.COLORS.get('basic-gray4'), strokeWidth = 1, className, ...restProps }, ref) => ((0, jsx_runtime_1.jsxs)("div", { ref: ref, className: (0, classnames_1.default)(index_module_scss_1.default.root, className), ...restProps, children: [(0, jsx_runtime_1.jsx)(Tag, { stroke: stroke, strokeWidth: `${strokeWidth * 2}px`, className: index_module_scss_1.default.stroke }), (0, jsx_runtime_1.jsx)(Tag, { fill: fill, className: index_module_scss_1.default.svg })] })));
|
|
56
18
|
exports.StrokedSVG.displayName = 'StrokedSVG';
|
|
19
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/stroked-svg/index.tsx"],"names":[],"mappings":";;;;;;;AAAA,iCAAmC;AACnC,sCAAmC;AACnC,4DAAoC;AACpC,4EAAyC;AAgBzC;;;;GAIG;AACU,QAAA,UAAU,GAAG,IAAA,kBAAU,EAClC,CACE,EACE,SAAS,EAAE,GAAG,EACd,IAAI,EACJ,MAAM,GAAG,eAAM,CAAC,GAAG,CAAC,aAAa,CAAC,EAClC,WAAW,GAAG,CAAC,EACf,SAAS,EACT,GAAG,SAAS,EACb,EACD,GAAG,EACH,EAAE,CAAC,CACH,iCAAK,GAAG,EAAE,GAAG,EAAE,SAAS,EAAE,IAAA,oBAAU,EAAC,2BAAM,CAAC,IAAI,EAAE,SAAS,CAAC,KAAM,SAAS,aACzE,uBAAC,GAAG,IAAC,MAAM,EAAE,MAAM,EAAE,WAAW,EAAE,GAAG,WAAW,GAAG,CAAC,IAAI,EAAE,SAAS,EAAE,2BAAM,CAAC,MAAM,GAAI,EACtF,uBAAC,GAAG,IAAC,IAAI,EAAE,IAAI,EAAE,SAAS,EAAE,2BAAM,CAAC,GAAG,GAAI,IACtC,CACP,CACF,CAAC;AAEF,kBAAU,CAAC,WAAW,GAAG,YAAY,CAAC"}
|
package/styling/borders.js
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"borders.js","sourceRoot":"","sources":["../../src/styling/borders.ts"],"names":[],"mappings":";;;;;;AAAA,2DAAyC;AACzC,gFAA4C;AAE5C,MAAM,EAAE,GAAG,cAAU,CAAC,IAAI,CAAC,6BAAO,CAAC,CAAC;AAEpC,kBAAkB;AACL,QAAA,WAAW,GAAG;IACzB,CAAC,EAAE,EAAE,CAAC,gBAAgB,CAAC;IACvB,GAAG,EAAE,EAAE,CAAC,kBAAkB,CAAC;IAC3B,MAAM,EAAE,EAAE,CAAC,qBAAqB,CAAC;CAClC,CAAC"}
|
package/styling/colors.js
CHANGED
|
@@ -18,3 +18,4 @@ exports.bgColor = (0, utils_1.ClassGetter)(colors_module_scss_1.default, isColor
|
|
|
18
18
|
exports.stroke = (0, utils_1.ClassGetter)(colors_module_scss_1.default, isColorKey, 'stroke__');
|
|
19
19
|
/** @deprecated */
|
|
20
20
|
exports.fill = (0, utils_1.ClassGetter)(colors_module_scss_1.default, isColorKey, 'fill__');
|
|
21
|
+
//# sourceMappingURL=colors.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"colors.js","sourceRoot":"","sources":["../../src/styling/colors.ts"],"names":[],"mappings":";;;;;;AAAA,mCAAsC;AACtC,sCAA0C;AAC1C,8EAA2C;AAE3C,MAAM,UAAU,GAAG,eAAM,CAAC,GAAG,CAAC,IAAI,CAAC,eAAM,CAAC,CAAC;AAE3C,kBAAkB;AACL,QAAA,KAAK,GAAG,IAAA,mBAAW,EAAQ,4BAAO,EAAE,UAAU,EAAE,SAAS,CAAC,CAAC;AAExE,kBAAkB;AACL,QAAA,UAAU,GAAG,IAAA,mBAAW,EAAQ,4BAAO,EAAE,UAAU,EAAE,eAAe,CAAC,CAAC;AAEnF,kBAAkB;AACL,QAAA,OAAO,GAAG,IAAA,mBAAW,EAAQ,4BAAO,EAAE,UAAU,EAAE,YAAY,CAAC,CAAC;AAE7E,kBAAkB;AACL,QAAA,MAAM,GAAG,IAAA,mBAAW,EAAQ,4BAAO,EAAE,UAAU,EAAE,UAAU,CAAC,CAAC;AAE1E,kBAAkB;AACL,QAAA,IAAI,GAAG,IAAA,mBAAW,EAAQ,4BAAO,EAAE,UAAU,EAAE,QAAQ,CAAC,CAAC"}
|
package/styling/fonts.js
CHANGED
|
@@ -15,3 +15,4 @@ exports.size = (0, utils_1.ClassGetter)(fonts_module_scss_1.default, exports.SIZ
|
|
|
15
15
|
exports.lineHeight = (0, utils_1.ClassGetter)(fonts_module_scss_1.default, exports.LINE_HEIGHTS.has.bind(exports.LINE_HEIGHTS), 'line-height-');
|
|
16
16
|
/** @deprecated */
|
|
17
17
|
exports.weight = (0, utils_1.ClassGetter)(fonts_module_scss_1.default, exports.WEIGHTS.has.bind(exports.WEIGHTS), 'weight-');
|
|
18
|
+
//# sourceMappingURL=fonts.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fonts.js","sourceRoot":"","sources":["../../src/styling/fonts.ts"],"names":[],"mappings":";;;;;;AAAA,mCA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,EAAE,6BAAO,CAAC,WAAW,CAAC;CACzB,CAAC"}
|
package/styling/shapes.js
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"shapes.js","sourceRoot":"","sources":["../../src/styling/shapes.ts"],"names":[],"mappings":";;;;;;AAAA,8EAA2C;AAE3C,kBAAkB;AACL,QAAA,WAAW,GAAG;IACzB,GAAG,EAAE,4BAAO,CAAC,gBAAgB,CAAC;IAE9B,GAAG,EAAE,4BAAO,CAAC,cAAc,CAAC;IAC5B,KAAK,EAAE,4BAAO,CAAC,cAAc,CAAC;IAC9B,MAAM,EAAE,4BAAO,CAAC,cAAc,CAAC;IAC/B,IAAI,EAAE,4BAAO,CAAC,cAAc,CAAC;IAE7B,OAAO,EAAE,4BAAO,CAAC,gBAAgB,CAAC;IAClC,QAAQ,EAAE,4BAAO,CAAC,gBAAgB,CAAC;IACnC,UAAU,EAAE,4BAAO,CAAC,gBAAgB,CAAC;IACrC,WAAW,EAAE,4BAAO,CAAC,gBAAgB,CAAC;CACvC,CAAC;AAEF,kBAAkB;AACL,QAAA,YAAY,GAAG;IAC1B,GAAG,EAAE,4BAAO,CAAC,gBAAgB,CAAC;IAE9B,GAAG,EAAE,4BAAO,CAAC,cAAc,CAAC;IAC5B,KAAK,EAAE,4BAAO,CAAC,cAAc,CAAC;IAC9B,MAAM,EAAE,4BAAO,CAAC,cAAc,CAAC;IAC/B,IAAI,EAAE,4BAAO,CAAC,cAAc,CAAC;IAE7B,OAAO,EAAE,4BAAO,CAAC,gBAAgB,CAAC;IAClC,QAAQ,EAAE,4BAAO,CAAC,gBAAgB,CAAC;IACnC,UAAU,EAAE,4BAAO,CAAC,gBAAgB,CAAC;IACrC,WAAW,EAAE,4BAAO,CAAC,gBAAgB,CAAC;CACvC,CAAC"}
|
package/styling/sizes.js
CHANGED
|
@@ -38,3 +38,4 @@ exports.paddingRight = (0, utils_1.ClassGetter)(sizes_module_scss_1.default, exp
|
|
|
38
38
|
exports.paddingBottom = (0, utils_1.ClassGetter)(sizes_module_scss_1.default, exports.isPadding, 'P-b__');
|
|
39
39
|
/** @deprecated */
|
|
40
40
|
exports.paddingLeft = (0, utils_1.ClassGetter)(sizes_module_scss_1.default, exports.isPadding, 'P-l__');
|
|
41
|
+
//# sourceMappingURL=sizes.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sizes.js","sourceRoot":"","sources":["../../src/styling/sizes.ts"],"names":[],"mappings":";;;;;;AAAA,mCAAsC;AACtC,4EAA0C;AAE1C;;;;;GAKG;AACI,MAAM,QAAQ,GAAG,CAAC,KAAU,EAAE,EAAE,CAAC,MAAM,CAAC,SAAS,CAAC,KAAK,CAAC,IAAI,KAAK,IAAI,CAAC,CAAC,IAAI,KAAK,IAAI,EAAE,CAAC;AAAjF,QAAA,QAAQ,YAAyE;AAE9F;;;;;GAKG;AACI,MAAM,SAAS,GAAG,CAAC,KAAU,EAAE,EAAE,CAAC,MAAM,CAAC,SAAS,CAAC,KAAK,CAAC,IAAI,KAAK,IAAI,CAAC,IAAI,KAAK,IAAI,EAAE,CAAC;AAAjF,QAAA,SAAS,aAAwE;AAE9F,kBAAkB;AACL,QAAA,SAAS,GAAG,IAAA,mBAAW,EAAC,2BAAO,EAAE,gBAAQ,EAAE,OAAO,CAAC,CAAC;AAEjE,kBAAkB;AACL,QAAA,WAAW,GAAG,IAAA,mBAAW,EAAC,2BAAO,EAAE,gBAAQ,EAAE,OAAO,CAAC,CAAC;AAEnE,kBAAkB;AACL,QAAA,YAAY,GAAG,IAAA,mBAAW,EAAC,2BAAO,EAAE,gBAAQ,EAAE,OAAO,CAAC,CAAC;AAEpE,kBAAkB;AACL,QAAA,UAAU,GAAG,IAAA,mBAAW,EAAC,2BAAO,EAAE,gBAAQ,EAAE,OAAO,CAAC,CAAC;AAElE,kBAAkB;AACL,QAAA,UAAU,GAAG,IAAA,mBAAW,EAAC,2BAAO,EAAE,iBAAS,EAAE,OAAO,CAAC,CAAC;AAEnE,kBAAkB;AACL,QAAA,YAAY,GAAG,IAAA,mBAAW,EAAC,2BAAO,EAAE,iBAAS,EAAE,OAAO,CAAC,CAAC;AAErE,kBAAkB;AACL,QAAA,aAAa,GAAG,IAAA,mBAAW,EAAC,2BAAO,EAAE,iBAAS,EAAE,OAAO,CAAC,CAAC;AAEtE,kBAAkB;AACL,QAAA,WAAW,GAAG,IAAA,mBAAW,EAAC,2BAAO,EAAE,iBAAS,EAAE,OAAO,CAAC,CAAC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
@use 'sass:string';
|
|
2
|
+
|
|
1
3
|
$step: 4px;
|
|
2
4
|
|
|
3
5
|
$directions: 'top', 'right', 'bottom', 'left';
|
|
@@ -6,7 +8,7 @@ $directions: 'top', 'right', 'bottom', 'left';
|
|
|
6
8
|
@for $index from -8 through 32 {
|
|
7
9
|
@each $direction in $directions {
|
|
8
10
|
// ключи классов попадают в JS - сокращаем до одной буквы для экономии
|
|
9
|
-
$short:
|
|
11
|
+
$short: string.slice($direction, 0, 1);
|
|
10
12
|
|
|
11
13
|
// внешние отступы
|
|
12
14
|
.M-#{$short}__#{$index} {
|
package/styling/utils.js
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../src/styling/utils.ts"],"names":[],"mappings":";;;;;;AAAA,2DAAyC;AAEzC;;;;;;;GAOG;AACI,MAAM,WAAW,GAAG,CACzB,OAA+B,EAC/B,UAA6B,EAC7B,MAAM,GAAG,EAAE,EACX,EAAE;IACF,MAAM,EAAE,GAAG,cAAU,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAEpC,OAAO,CAAC,KAAQ,EAAE,EAAE,CAAC,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,GAAG,MAAM,GAAG,KAAK,EAAE,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC;AACjF,CAAC,CAAC;AARW,QAAA,WAAW,eAQtB"}
|
|
@@ -1,17 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
3
|
exports.SuperEllipseClipPath = void 0;
|
|
7
|
-
const
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
8
5
|
/**
|
|
9
6
|
* Выводит svg-элемент, содержащий clipPath в форме "супер-эллипса".
|
|
10
7
|
* @param props Свойства.
|
|
11
8
|
* @return Элемент.
|
|
12
9
|
*/
|
|
13
|
-
const SuperEllipseClipPath = ({ id }) => (
|
|
14
|
-
react_1.default.createElement("defs", null,
|
|
15
|
-
react_1.default.createElement("clipPath", { id: id, clipPathUnits: 'objectBoundingBox' },
|
|
16
|
-
react_1.default.createElement("path", { d: 'M1 0.5 C 1 0.856, 0.856 1, 0.5 1 S 0 0.856, 0 0.5 S 0.143 0, 0.5 0 S 1 0.143 1 0.5 Z' })))));
|
|
10
|
+
const SuperEllipseClipPath = ({ id }) => ((0, jsx_runtime_1.jsx)("svg", { width: 0, height: 0, style: { position: 'absolute' }, children: (0, jsx_runtime_1.jsx)("defs", { children: (0, jsx_runtime_1.jsx)("clipPath", { id: id, clipPathUnits: 'objectBoundingBox', children: (0, jsx_runtime_1.jsx)("path", { d: 'M1 0.5 C 1 0.856, 0.856 1, 0.5 1 S 0 0.856, 0 0.5 S 0.143 0, 0.5 0 S 1 0.143 1 0.5 Z' }) }) }) }));
|
|
17
11
|
exports.SuperEllipseClipPath = SuperEllipseClipPath;
|
|
12
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/super-ellipse-clip-path/index.tsx"],"names":[],"mappings":";;;;AAKA;;;;GAIG;AACI,MAAM,oBAAoB,GAAG,CAAC,EAAE,EAAE,EAA6B,EAAE,EAAE,CAAC,CACzE,gCAAK,KAAK,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,KAAK,EAAE,EAAE,QAAQ,EAAE,UAAU,EAAE,YACvD,2CACE,qCAAU,EAAE,EAAE,EAAE,EAAE,aAAa,EAAC,mBAAmB,YACjD,iCAAM,CAAC,EAAC,sFAAsF,GAAG,GACxF,GACN,GACH,CACP,CAAC;AARW,QAAA,oBAAoB,wBAQ/B"}
|
package/switcher-row/index.js
CHANGED
|
@@ -4,7 +4,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.SwitcherRow = void 0;
|
|
7
|
-
const
|
|
7
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
8
8
|
const checkbox_1 = require("../checkbox");
|
|
9
9
|
const define_slots_1 = require("../helpers/define-slots");
|
|
10
10
|
const radio_button_1 = require("../radio-button");
|
|
@@ -31,13 +31,8 @@ function SwitcherRow({ children, className, style, textAlign = 'left', fieldPosi
|
|
|
31
31
|
const disabled = input === null || input === void 0 ? void 0 : input.props.disabled;
|
|
32
32
|
const fieldId = input === null || input === void 0 ? void 0 : input.props.id;
|
|
33
33
|
// @todo в Safari position: relative ломает vertical-align
|
|
34
|
-
const fieldColumn = input && (
|
|
35
|
-
return (
|
|
36
|
-
fieldPosition === 'start' && fieldColumn,
|
|
37
|
-
react_1.default.createElement("label", { className: cx('col', 'main-col'), htmlFor: fieldId },
|
|
38
|
-
label && (react_1.default.createElement("span", { className: cx('label', { 'for-toggle': toggle }), "data-testid": 'switcher-row:label' }, label)),
|
|
39
|
-
comment && (react_1.default.createElement("span", { className: cx('comment'), "data-testid": 'switcher-row:comment' }, comment))),
|
|
40
|
-
fieldPosition === 'end' && fieldColumn));
|
|
34
|
+
const fieldColumn = input && ((0, jsx_runtime_1.jsx)("div", { className: cx('col', 'field-col', { 'toggle-col': toggle }), children: input }));
|
|
35
|
+
return ((0, jsx_runtime_1.jsxs)("div", { className: cx('root', `text-align-${textAlign}`, { failed, disabled }, className), style: style, "data-testid": testId, children: [fieldPosition === 'start' && fieldColumn, (0, jsx_runtime_1.jsxs)("label", { className: cx('col', 'main-col'), htmlFor: fieldId, children: [label && ((0, jsx_runtime_1.jsx)("span", { className: cx('label', { 'for-toggle': toggle }), "data-testid": 'switcher-row:label', children: label })), comment && ((0, jsx_runtime_1.jsx)("span", { className: cx('comment'), "data-testid": 'switcher-row:comment', children: comment }))] }), fieldPosition === 'end' && fieldColumn] }));
|
|
41
36
|
}
|
|
42
37
|
exports.SwitcherRow = SwitcherRow;
|
|
43
38
|
/**
|
|
@@ -46,7 +41,7 @@ exports.SwitcherRow = SwitcherRow;
|
|
|
46
41
|
* @return Элемент.
|
|
47
42
|
*/
|
|
48
43
|
function SwitcherRowLabel({ children }) {
|
|
49
|
-
return
|
|
44
|
+
return (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: children });
|
|
50
45
|
}
|
|
51
46
|
/**
|
|
52
47
|
* Слот комментария.
|
|
@@ -54,7 +49,8 @@ function SwitcherRowLabel({ children }) {
|
|
|
54
49
|
* @return Элемент.
|
|
55
50
|
*/
|
|
56
51
|
function SwitcherRowComment({ children }) {
|
|
57
|
-
return
|
|
52
|
+
return (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: children });
|
|
58
53
|
}
|
|
59
54
|
SwitcherRow.Label = SwitcherRowLabel;
|
|
60
55
|
SwitcherRow.Comment = SwitcherRowComment;
|
|
56
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/switcher-row/index.tsx"],"names":[],"mappings":";;;;;;;AACA,0CAAuC;AACvC,0DAAsD;AACtD,kDAA8C;AAC9C,sCAAmC;AACnC,2DAAyC;AACzC,0FAAgD;AAsBhD,MAAM,EAAE,GA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,SAAS,EAAE,EAAE,CAAC,KAAK,EAAE,UAAU,CAAC,EAAE,OAAO,EAAE,OAAO,aACtD,KAAK,IAAI,CACR,iCAAM,SAAS,EAAE,EAAE,CAAC,OAAO,EAAE,EAAE,YAAY,EAAE,MAAM,EAAE,CAAC,iBAAc,oBAAoB,YACrF,KAAK,GACD,CACR,EAEA,OAAO,IAAI,CACV,iCAAM,SAAS,EAAE,EAAE,CAAC,SAAS,CAAC,iBAAc,sBAAsB,YAC/D,OAAO,GACH,CACR,IACK,EAEP,aAAa,KAAK,KAAK,IAAI,WAAW,IACnC,CACP,CAAC;AACJ,CAAC;AAnDD,kCAmDC;AAED;;;;GAIG;AACH,SAAS,gBAAgB,CAAC,EAAE,QAAQ,EAA4B;IAC9D,OAAO,2DAAG,QAAQ,GAAI,CAAC;AACzB,CAAC;AAED;;;;GAIG;AACH,SAAS,kBAAkB,CAAC,EAAE,QAAQ,EAA4B;IAChE,OAAO,2DAAG,QAAQ,GAAI,CAAC;AACzB,CAAC;AAED,WAAW,CAAC,KAAK,GAAG,gBAAgB,CAAC;AACrC,WAAW,CAAC,OAAO,GAAG,kBAAkB,CAAC"}
|
package/tabs/index.d.ts
CHANGED
package/tabs/index.js
CHANGED
|
@@ -1,33 +1,11 @@
|
|
|
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
2
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
26
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
4
|
};
|
|
28
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
6
|
exports.Tabs = void 0;
|
|
30
|
-
const
|
|
7
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
8
|
+
const react_1 = require("react");
|
|
31
9
|
const bind_1 = __importDefault(require("classnames/bind"));
|
|
32
10
|
const tabs_module_scss_1 = __importDefault(require("./tabs.module.scss"));
|
|
33
11
|
const cx = bind_1.default.bind(tabs_module_scss_1.default);
|
|
@@ -36,12 +14,13 @@ const cx = bind_1.default.bind(tabs_module_scss_1.default);
|
|
|
36
14
|
* @param props Свойства.
|
|
37
15
|
* @return Элемент.
|
|
38
16
|
*/
|
|
39
|
-
const Tab = ({ name, selected, disabled, 'data-testid': testId = 'tab', onClick, }) => (
|
|
17
|
+
const Tab = ({ name, selected, disabled, 'data-testid': testId = 'tab', onClick, }) => ((0, jsx_runtime_1.jsx)("li", { className: cx('item', { selected, disabled }), "data-testid": testId, onClick: disabled ? undefined : onClick, children: String(name) }));
|
|
40
18
|
/**
|
|
41
19
|
* Компонент строки вкладок.
|
|
42
20
|
* @param props Свойства.
|
|
43
21
|
* @return Элемент.
|
|
44
22
|
*/
|
|
45
|
-
const Tabs = ({ children, view = 'clean', stretch = false, gapSize = 'm', className, 'data-testid': testId = 'tabs', }) => (
|
|
23
|
+
const Tabs = ({ children, view = 'clean', stretch = false, gapSize = 'm', className, 'data-testid': testId = 'tabs', }) => ((0, jsx_runtime_1.jsx)("ul", { "data-testid": testId, className: cx('root', `view-${view}`, `gap-${gapSize}`, { stretch }, className), children: react_1.Children.toArray(children).filter(child => (0, react_1.isValidElement)(child) && child.type === Tab) }));
|
|
46
24
|
exports.Tabs = Tabs;
|
|
47
25
|
exports.Tabs.Item = Tab;
|
|
26
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/tabs/index.tsx"],"names":[],"mappings":";;;;;;;AAAA,iCAAiD;AACjD,2DAAyC;AACzC,0EAAwC;AAuCxC,MAAM,EAAE,GAAG,cAAU,CAAC,IAAI,CAAC,0BAAM,CAAC,CAAC;AAEnC;;;;GAIG;AACH,MAAM,GAAG,GAAG,CAAC,EACX,IAAI,EACJ,QAAQ,EACR,QAAQ,EACR,aAAa,EAAE,MAAM,GAAG,KAAK,EAC7B,OAAO,GACO,EAAE,EAAE,CAAC,CACnB,+BACE,SAAS,EAAE,EAAE,CAAC,MAAM,EAAE,EAAE,QAAQ,EAAE,QAAQ,EAAE,CAAC,iBAChC,MAAM,EACnB,OAAO,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,OAAO,YAEtC,MAAM,CAAC,IAAI,CAAC,GACV,CACN,CAAC;AAEF;;;;GAIG;AACI,MAAM,IAAI,GAAG,CAAC,EACnB,QAAQ,EACR,IAAI,GAAG,OAAO,EACd,OAAO,GAAG,KAAK,EACf,OAAO,GAAG,GAAG,EACb,SAAS,EACT,aAAa,EAAE,MAAM,GAAG,MAAM,GACpB,EAAE,EAAE,CAAC,CACf,8CACe,MAAM,EACnB,SAAS,EAAE,EAAE,CAAC,MAAM,EAAE,QAAQ,IAAI,EAAE,EAAE,OAAO,OAAO,EAAE,EAAE,EAAE,OAAO,EAAE,EAAE,SAAS,CAAC,YAE9E,gBAAQ,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,EAAE,CAAC,IAAA,sBAAc,EAAC,KAAK,CAAC,IAAI,KAAK,CAAC,IAAI,KAAK,GAAG,CAAC,GACrF,CACN,CAAC;AAdW,QAAA,IAAI,QAcf;AAEF,YAAI,CAAC,IAAI,GAAG,GAAG,CAAC"}
|
package/text/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
2
|
import { Size, LineHeight, Weight } from '../styling/fonts';
|
|
3
3
|
import { Token } from '../colors';
|
|
4
4
|
type Align = 'left' | 'center' | 'right' | 'justify';
|
|
@@ -33,5 +33,5 @@ export declare const ALIGNS: Set<Align>;
|
|
|
33
33
|
* @param props Свойства.
|
|
34
34
|
* @return Элемент.
|
|
35
35
|
*/
|
|
36
|
-
export declare const Text:
|
|
36
|
+
export declare const Text: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<TextProps & import("react").RefAttributes<any>>>;
|
|
37
37
|
export {};
|
package/text/index.js
CHANGED
|
@@ -1,33 +1,11 @@
|
|
|
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
2
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
26
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
4
|
};
|
|
28
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
6
|
exports.Text = exports.ALIGNS = exports.defaultHeights = void 0;
|
|
30
|
-
const
|
|
7
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
8
|
+
const react_1 = require("react");
|
|
31
9
|
const bind_1 = __importDefault(require("classnames/bind"));
|
|
32
10
|
const text_module_scss_1 = __importDefault(require("./text.module.scss"));
|
|
33
11
|
const colors_1 = require("../styling/colors");
|
|
@@ -55,7 +33,7 @@ lineHeight = size ? exports.defaultHeights[size] : undefined,
|
|
|
55
33
|
// не устанавливаем значения по умолчанию, чтобы компонент вел себя предсказуемо
|
|
56
34
|
align, color, nowrap, truncate, weight, }, ref) {
|
|
57
35
|
const needLineClamp = typeof truncate === 'number' && truncate > 0;
|
|
58
|
-
return (
|
|
36
|
+
return ((0, jsx_runtime_1.jsx)(Container, { ref: ref, className: cx([
|
|
59
37
|
// styling
|
|
60
38
|
size && (0, fonts_1.size)(size),
|
|
61
39
|
lineHeight && (0, fonts_1.lineHeight)(lineHeight),
|
|
@@ -68,3 +46,4 @@ align, color, nowrap, truncate, weight, }, ref) {
|
|
|
68
46
|
needLineClamp && 'line-clamp',
|
|
69
47
|
]), style: needLineClamp ? { WebkitLineClamp: truncate } : {}, children: children }));
|
|
70
48
|
}));
|
|
49
|
+
//# sourceMappingURL=index.js.map
|