@sima-land/moleculas 16.0.0-alpha.2 → 16.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 +23 -0
- package/common/components/badge/badge.d.ts +8 -0
- package/common/components/badge/badge.js +55 -0
- package/common/components/badge/badge.js.map +1 -0
- package/common/components/badge/badge.m.scss +81 -0
- package/common/components/badge/index.d.ts +2 -19
- package/common/components/badge/index.js +3 -80
- package/common/components/badge/index.js.map +1 -0
- package/common/components/badge/types.d.ts +26 -0
- package/common/components/{intractive-image → badge}/types.js +1 -0
- package/common/components/badge/types.js.map +1 -0
- package/common/components/badge-list/badge-list.d.ts +29 -0
- package/common/components/badge-list/badge-list.js +38 -0
- package/common/components/badge-list/badge-list.js.map +1 -0
- package/common/components/badge-list/index.d.ts +1 -29
- package/common/components/badge-list/index.js +3 -56
- package/common/components/badge-list/index.js.map +1 -0
- package/common/components/breadcrumbs/breadcrumbs.d.ts +46 -0
- package/common/components/breadcrumbs/breadcrumbs.js +83 -0
- package/common/components/breadcrumbs/breadcrumbs.js.map +1 -0
- package/common/components/breadcrumbs/breadcrumbs.m.scss +113 -0
- package/common/components/breadcrumbs/index.d.ts +2 -0
- package/common/components/breadcrumbs/index.js +7 -0
- package/common/components/breadcrumbs/index.js.map +1 -0
- package/common/components/breadcrumbs/types.d.ts +8 -0
- package/common/{types.js → components/breadcrumbs/types.js} +1 -0
- package/common/components/breadcrumbs/types.js.map +1 -0
- package/common/components/img-stub/img-stub.d.ts +14 -0
- package/common/components/img-stub/img-stub.js +21 -0
- package/common/components/img-stub/img-stub.js.map +1 -0
- package/common/components/img-stub/img-stub.m.scss +36 -0
- package/common/components/img-stub/index.d.ts +1 -0
- package/common/components/img-stub/index.js +6 -0
- package/common/components/img-stub/index.js.map +1 -0
- package/common/components/{intractive-image → interactive-image}/index.js +1 -0
- package/common/components/interactive-image/index.js.map +1 -0
- package/common/components/interactive-image/interactive-image.d.ts +15 -0
- package/common/components/interactive-image/interactive-image.js +56 -0
- package/common/components/interactive-image/interactive-image.js.map +1 -0
- package/common/components/{intractive-image → interactive-image}/types.d.ts +4 -4
- package/common/components/interactive-image/types.js +3 -0
- package/common/components/interactive-image/types.js.map +1 -0
- package/common/components/media-gallery/index.d.ts +2 -0
- package/common/components/media-gallery/index.js +7 -0
- package/common/components/media-gallery/index.js.map +1 -0
- package/common/components/media-gallery/media-gallery.d.ts +16 -0
- package/common/components/media-gallery/media-gallery.js +90 -0
- package/common/components/media-gallery/media-gallery.js.map +1 -0
- package/common/components/media-gallery/media-gallery.m.scss +35 -0
- package/common/components/media-gallery/types.d.ts +12 -0
- package/common/components/media-gallery/types.js +3 -0
- package/common/components/media-gallery/types.js.map +1 -0
- package/common/components/media-gallery/utils.d.ts +38 -0
- package/common/components/media-gallery/utils.js +102 -0
- package/common/components/media-gallery/utils.js.map +1 -0
- package/common/components/media-modal/__mocks__/images/armchair.jpg +0 -0
- package/common/components/media-modal/__mocks__/images/cup.jpg +0 -0
- package/common/components/media-modal/__mocks__/images/plant.jpg +0 -0
- package/common/components/media-modal/__mocks__/images/stump.jpg +0 -0
- package/common/components/media-modal/__mocks__/images/table.jpg +0 -0
- package/common/components/media-modal/__mocks__/images/vase.jpg +0 -0
- package/common/components/media-modal/__mocks__/index.d.ts +3 -0
- package/common/components/media-modal/__mocks__/index.js +251 -0
- package/common/components/media-modal/__mocks__/index.js.map +1 -0
- package/common/components/media-modal/__mocks__/thumbnails/armchair.jpg +0 -0
- package/common/components/media-modal/__mocks__/thumbnails/cup.jpg +0 -0
- package/common/components/media-modal/__mocks__/thumbnails/plant.jpg +0 -0
- package/common/components/media-modal/__mocks__/thumbnails/stump.jpg +0 -0
- package/common/components/media-modal/__mocks__/thumbnails/table.jpg +0 -0
- package/common/components/media-modal/__mocks__/thumbnails/vase.jpg +0 -0
- package/common/components/media-modal/__mocks__/thumbnails/video3404953.jpg +0 -0
- package/common/components/media-modal/__mocks__/thumbnails/video3619217.jpg +0 -0
- package/common/components/media-modal/__mocks__/thumbnails/video4093038.jpg +0 -0
- package/common/components/media-modal/__mocks__/thumbnails/video6907296.jpg +0 -0
- package/common/components/media-modal/index.d.ts +11 -0
- package/common/components/media-modal/index.js +29 -0
- package/common/components/media-modal/index.js.map +1 -0
- package/common/components/media-modal/layout.d.ts +36 -0
- package/common/components/media-modal/layout.js +81 -0
- package/common/components/media-modal/layout.js.map +1 -0
- package/common/components/media-modal/layout.m.scss +78 -0
- package/common/components/media-modal/parts/all-round-view.d.ts +7 -0
- package/common/components/media-modal/parts/all-round-view.js +42 -0
- package/common/components/media-modal/parts/all-round-view.js.map +1 -0
- package/common/components/media-modal/parts/all-round-view.m.scss +30 -0
- package/common/components/media-modal/parts/index.d.ts +36 -0
- package/common/components/media-modal/parts/index.js +65 -0
- package/common/components/media-modal/parts/index.js.map +1 -0
- package/common/components/media-modal/parts/media-area.d.ts +25 -0
- package/common/components/media-modal/parts/media-area.js +61 -0
- package/common/components/media-modal/parts/media-area.js.map +1 -0
- package/common/components/media-modal/parts/media-area.m.scss +21 -0
- package/common/components/media-modal/parts/media-view.d.ts +20 -0
- package/common/components/media-modal/parts/media-view.js +46 -0
- package/common/components/media-modal/parts/media-view.js.map +1 -0
- package/common/components/media-modal/parts/media-view.m.scss +34 -0
- package/common/components/media-modal/parts/parts.m.scss +21 -0
- package/common/components/media-modal/parts/product-brief.d.ts +20 -0
- package/common/components/media-modal/parts/product-brief.js +40 -0
- package/common/components/media-modal/parts/product-brief.js.map +1 -0
- package/common/components/media-modal/parts/product-brief.m.scss +149 -0
- package/common/components/media-modal/parts/review.d.ts +15 -0
- package/common/components/media-modal/parts/review.js +32 -0
- package/common/components/media-modal/parts/review.js.map +1 -0
- package/common/components/media-modal/parts/review.m.scss +86 -0
- package/common/components/media-modal/parts/scroll-section.d.ts +11 -0
- package/common/components/media-modal/parts/scroll-section.js +20 -0
- package/common/components/media-modal/parts/scroll-section.js.map +1 -0
- package/common/components/media-modal/parts/scroll-section.m.scss +32 -0
- package/common/components/media-modal/parts/thumbnail.d.ts +22 -0
- package/common/components/media-modal/parts/thumbnail.js +36 -0
- package/common/components/media-modal/parts/thumbnail.js.map +1 -0
- package/common/components/media-modal/parts/thumbnail.m.scss +156 -0
- package/common/components/media-modal/parts/thumbnails.d.ts +13 -0
- package/common/components/media-modal/parts/thumbnails.js +60 -0
- package/common/components/media-modal/parts/thumbnails.js.map +1 -0
- package/common/components/media-modal/parts/thumbnails.m.scss +16 -0
- package/common/components/media-modal/types.d.ts +18 -0
- package/common/components/media-modal/types.js +3 -0
- package/common/components/media-modal/types.js.map +1 -0
- package/common/components/media-modal/utils.d.ts +42 -0
- package/common/components/media-modal/utils.js +110 -0
- package/common/components/media-modal/utils.js.map +1 -0
- package/common/components/modifier/index.d.ts +2 -46
- package/common/components/modifier/index.js +4 -99
- package/common/components/modifier/index.js.map +1 -0
- package/common/components/modifier/modifier.d.ts +13 -0
- package/common/components/modifier/modifier.js +74 -0
- package/common/components/modifier/modifier.js.map +1 -0
- package/common/components/modifier/{modifiers.module.scss → modifier.m.scss} +61 -0
- package/common/components/modifier/types.d.ts +35 -0
- package/common/components/modifier/types.js +3 -0
- package/common/components/modifier/types.js.map +1 -0
- package/common/components/pagination-controls/index.d.ts +2 -0
- package/common/components/pagination-controls/index.js +9 -0
- package/common/components/pagination-controls/index.js.map +1 -0
- package/common/components/pagination-controls/pagination-controls.d.ts +30 -0
- package/common/components/pagination-controls/pagination-controls.js +72 -0
- package/common/components/pagination-controls/pagination-controls.js.map +1 -0
- package/common/components/pagination-controls/pagination-controls.m.scss +70 -0
- package/common/components/pagination-controls/types.d.ts +20 -0
- package/common/components/pagination-controls/types.js +3 -0
- package/common/components/pagination-controls/types.js.map +1 -0
- package/common/components/product-info/index.d.ts +1 -16
- package/common/components/product-info/index.js +5 -41
- package/common/components/product-info/index.js.map +1 -0
- package/common/components/product-info/parts.d.ts +22 -21
- package/common/components/product-info/parts.js +35 -83
- package/common/components/product-info/parts.js.map +1 -0
- package/common/components/product-info/product-info.d.ts +15 -0
- package/common/components/product-info/product-info.js +33 -0
- package/common/components/product-info/product-info.js.map +1 -0
- package/common/components/product-info/{product-info.module.scss → product-info.m.scss} +9 -0
- package/common/components/product-info/types.d.ts +2 -2
- package/common/components/product-info/types.js +1 -0
- package/common/components/product-info/types.js.map +1 -0
- package/common/components/product-info/utils.js +1 -0
- package/common/components/product-info/utils.js.map +1 -0
- package/common/components/rating-counter/index.d.ts +1 -25
- package/common/components/rating-counter/index.js +3 -35
- package/common/components/rating-counter/index.js.map +1 -0
- package/common/components/rating-counter/rating-counter-util.scss +1 -1
- package/common/components/rating-counter/rating-counter.d.ts +35 -0
- package/common/components/rating-counter/rating-counter.js +24 -0
- package/common/components/rating-counter/rating-counter.js.map +1 -0
- package/common/hooks/index.d.ts +19 -0
- package/common/hooks/index.js +39 -0
- package/common/hooks/index.js.map +1 -0
- package/desktop/components/breadcrumbs/breadcrumbs.d.ts +31 -0
- package/desktop/components/breadcrumbs/breadcrumbs.js +56 -0
- package/desktop/components/breadcrumbs/breadcrumbs.js.map +1 -0
- package/desktop/components/breadcrumbs/{breadcrumbs.module.scss → breadcrumbs.m.scss} +36 -1
- package/desktop/components/breadcrumbs/index.d.ts +1 -28
- package/desktop/components/breadcrumbs/index.js +3 -80
- package/desktop/components/breadcrumbs/index.js.map +1 -0
- package/desktop/components/gallery-modal/__mocks__/index.js +1 -0
- package/desktop/components/gallery-modal/__mocks__/index.js.map +1 -0
- package/desktop/components/gallery-modal/components/all-round-view.d.ts +5 -2
- package/desktop/components/gallery-modal/components/all-round-view.js +47 -62
- package/desktop/components/gallery-modal/components/all-round-view.js.map +1 -0
- package/desktop/components/gallery-modal/components/{all-round-view.module.scss → all-round-view.m.scss} +5 -0
- package/desktop/components/gallery-modal/components/gallery-modal.d.ts +4 -5
- package/desktop/components/gallery-modal/components/gallery-modal.js +16 -66
- package/desktop/components/gallery-modal/components/gallery-modal.js.map +1 -0
- package/desktop/components/gallery-modal/components/{gallery-modal.module.scss → gallery-modal.m.scss} +5 -3
- package/desktop/components/gallery-modal/components/image-overlay.d.ts +3 -3
- package/desktop/components/gallery-modal/components/image-overlay.js +4 -17
- package/desktop/components/gallery-modal/components/image-overlay.js.map +1 -0
- package/desktop/components/gallery-modal/components/{image-overlay.module.scss → image-overlay.m.scss} +1 -0
- package/desktop/components/gallery-modal/components/review-info.d.ts +1 -1
- package/desktop/components/gallery-modal/components/review-info.js +11 -52
- package/desktop/components/gallery-modal/components/review-info.js.map +1 -0
- package/desktop/components/gallery-modal/components/thumbnail.d.ts +3 -3
- package/desktop/components/gallery-modal/components/thumbnail.js +7 -10
- package/desktop/components/gallery-modal/components/thumbnail.js.map +1 -0
- package/desktop/components/gallery-modal/index.js +1 -0
- package/desktop/components/gallery-modal/index.js.map +1 -0
- package/desktop/components/gallery-modal/types.js +1 -0
- package/desktop/components/gallery-modal/types.js.map +1 -0
- package/desktop/components/gallery-modal/utils.d.ts +5 -3
- package/desktop/components/gallery-modal/utils.js +18 -8
- package/desktop/components/gallery-modal/utils.js.map +1 -0
- package/desktop/components/person-info/index.d.ts +1 -41
- package/desktop/components/person-info/index.js +3 -43
- package/desktop/components/person-info/index.js.map +1 -0
- package/desktop/components/person-info/person-info.d.ts +42 -0
- package/desktop/components/person-info/person-info.js +24 -0
- package/desktop/components/person-info/person-info.js.map +1 -0
- package/desktop/components/person-info/{person-info.module.scss → person-info.m.scss} +1 -1
- package/desktop/components/product-card/index.d.ts +2 -26
- package/desktop/components/product-card/index.js +7 -103
- package/desktop/components/product-card/index.js.map +1 -0
- package/desktop/components/product-card/product-card.d.ts +23 -0
- package/desktop/components/product-card/product-card.js +94 -0
- package/desktop/components/product-card/product-card.js.map +1 -0
- package/desktop/components/product-card/types.d.ts +19 -0
- package/desktop/components/product-card/types.js +3 -0
- package/desktop/components/product-card/types.js.map +1 -0
- package/desktop/components/product-carousel/hover-card.d.ts +2 -7
- package/desktop/components/product-carousel/hover-card.js +13 -49
- package/desktop/components/product-carousel/hover-card.js.map +1 -0
- package/desktop/components/product-carousel/{hover-card.module.scss → hover-card.m.scss} +2 -2
- package/desktop/components/product-carousel/index.d.ts +2 -31
- package/desktop/components/product-carousel/index.js +3 -133
- package/desktop/components/product-carousel/index.js.map +1 -0
- package/desktop/components/product-carousel/product-carousel.d.ts +7 -0
- package/desktop/components/product-carousel/product-carousel.js +95 -0
- package/desktop/components/product-carousel/product-carousel.js.map +1 -0
- package/desktop/components/product-carousel/{product-carousel.module.scss → product-carousel.m.scss} +1 -1
- package/desktop/components/product-carousel/types.d.ts +33 -0
- package/desktop/components/product-carousel/types.js +3 -0
- package/desktop/components/product-carousel/types.js.map +1 -0
- package/desktop/components/product-carousel/utils.d.ts +4 -4
- package/desktop/components/product-carousel/utils.js +8 -7
- package/desktop/components/product-carousel/utils.js.map +1 -0
- package/desktop/components/promotion-card/banner-title.d.ts +2 -3
- package/desktop/components/promotion-card/banner-title.js +9 -19
- package/desktop/components/promotion-card/banner-title.js.map +1 -0
- package/desktop/components/promotion-card/estimate.d.ts +1 -2
- package/desktop/components/promotion-card/estimate.js +3 -5
- package/desktop/components/promotion-card/estimate.js.map +1 -0
- package/desktop/components/promotion-card/index.d.ts +4 -31
- package/desktop/components/promotion-card/index.js +10 -83
- package/desktop/components/promotion-card/index.js.map +1 -0
- package/desktop/components/promotion-card/placeholder.d.ts +4 -2
- package/desktop/components/promotion-card/placeholder.js +4 -6
- package/desktop/components/promotion-card/placeholder.js.map +1 -0
- package/desktop/components/promotion-card/promotion-card.d.ts +32 -0
- package/desktop/components/promotion-card/promotion-card.js +39 -0
- package/desktop/components/promotion-card/promotion-card.js.map +1 -0
- package/desktop/components/promotion-card/{index.module.scss → promotion-card.m.scss} +8 -6
- package/desktop/components/promotion-card/types.js +1 -0
- package/desktop/components/promotion-card/types.js.map +1 -0
- package/mobile/components/action-circles/action-circles.d.ts +22 -0
- package/mobile/components/action-circles/action-circles.js +31 -0
- package/mobile/components/action-circles/action-circles.js.map +1 -0
- package/mobile/components/action-circles/index.d.ts +1 -22
- package/mobile/components/action-circles/index.js +3 -29
- package/mobile/components/action-circles/index.js.map +1 -0
- package/mobile/components/action-list/action-list.d.ts +29 -0
- package/mobile/components/action-list/action-list.js +40 -0
- package/mobile/components/action-list/action-list.js.map +1 -0
- package/mobile/components/action-list/index.d.ts +1 -23
- package/mobile/components/action-list/index.js +5 -34
- package/mobile/components/action-list/index.js.map +1 -0
- package/mobile/components/breadcrumbs/breadcrumbs.d.ts +12 -0
- package/mobile/components/breadcrumbs/breadcrumbs.js +17 -0
- package/mobile/components/breadcrumbs/breadcrumbs.js.map +1 -0
- package/mobile/components/breadcrumbs/index.d.ts +1 -13
- package/mobile/components/breadcrumbs/index.js +3 -13
- package/mobile/components/breadcrumbs/index.js.map +1 -0
- package/mobile/components/person-info/index.d.ts +1 -44
- package/mobile/components/person-info/index.js +4 -55
- package/mobile/components/person-info/index.js.map +1 -0
- package/mobile/components/person-info/person-info.d.ts +46 -0
- package/mobile/components/person-info/person-info.js +41 -0
- package/mobile/components/person-info/person-info.js.map +1 -0
- package/mobile/components/person-info/{person-info.module.scss → person-info.m.scss} +9 -16
- package/mobile/components/product-row/index.d.ts +1 -41
- package/mobile/components/product-row/index.js +3 -56
- package/mobile/components/product-row/index.js.map +1 -0
- package/mobile/components/product-row/product-row.d.ts +40 -0
- package/mobile/components/product-row/product-row.js +29 -0
- package/mobile/components/product-row/product-row.js.map +1 -0
- package/mobile/components/product-slider/index.d.ts +1 -17
- package/mobile/components/product-slider/index.js +3 -57
- package/mobile/components/product-slider/index.js.map +1 -0
- package/mobile/components/product-slider/product-slider.d.ts +17 -0
- package/mobile/components/product-slider/product-slider.js +37 -0
- package/mobile/components/product-slider/product-slider.js.map +1 -0
- package/mobile/components/search-bar/index.d.ts +1 -39
- package/mobile/components/search-bar/index.js +4 -104
- package/mobile/components/search-bar/index.js.map +1 -0
- package/mobile/components/search-bar/search-bar.d.ts +39 -0
- package/mobile/components/search-bar/search-bar.js +64 -0
- package/mobile/components/search-bar/search-bar.js.map +1 -0
- package/mobile/components/search-bar/{search-bar.module.scss → search-bar.m.scss} +6 -6
- package/mobile/components/select-screen/index.d.ts +1 -20
- package/mobile/components/select-screen/index.js +4 -65
- package/mobile/components/select-screen/index.js.map +1 -0
- package/mobile/components/select-screen/select-screen.d.ts +20 -0
- package/mobile/components/select-screen/select-screen.js +31 -0
- package/mobile/components/select-screen/select-screen.js.map +1 -0
- package/package.json +40 -52
- package/common/components/badge/badge.module.scss +0 -40
- package/common/components/intractive-image/interactive-image.d.ts +0 -15
- package/common/components/intractive-image/interactive-image.js +0 -96
- package/common/components/rating-counter/star.svg +0 -5
- package/common/constants.d.ts +0 -2
- package/common/constants.js +0 -8
- package/common/icons/eighteen-plus.svg +0 -5
- package/common/types.d.ts +0 -1
- package/desktop/components/breadcrumbs/square-arrow-down.svg +0 -8
- package/desktop/components/gallery-modal/icons/360.svg +0 -3
- package/desktop/components/gallery-modal/icons/pause.svg +0 -3
- package/desktop/components/gallery-modal/icons/turn-left.svg +0 -10
- package/desktop/components/gallery-modal/icons/turn-right.svg +0 -10
- package/desktop/components/modifiers/button/index.d.ts +0 -22
- package/desktop/components/modifiers/button/index.js +0 -48
- package/desktop/components/modifiers/button/modifier-button.module.scss +0 -85
- package/desktop/components/modifiers/group/index.d.ts +0 -15
- package/desktop/components/modifiers/group/index.js +0 -70
- package/desktop/components/modifiers/group/modifiers-group.module.scss +0 -33
- package/desktop/components/modifiers/group/utils.d.ts +0 -20
- package/desktop/components/modifiers/group/utils.js +0 -73
- package/desktop/components/modifiers/modifiers.scss +0 -8
- package/mobile/components/modifiers-list/index.d.ts +0 -22
- package/mobile/components/modifiers-list/index.js +0 -25
- package/mobile/components/modifiers-list/modifier-item/index.d.ts +0 -29
- package/mobile/components/modifiers-list/modifier-item/index.js +0 -38
- package/mobile/components/modifiers-list/modifier-item/modifier-item.module.scss +0 -70
- package/mobile/components/modifiers-list/modifiers-list.module.scss +0 -21
- package/mobile/components/pseudo-input/index.d.ts +0 -11
- package/mobile/components/pseudo-input/index.js +0 -34
- package/mobile/components/pseudo-input/pseudo-input.module.scss +0 -24
- /package/common/components/badge-list/{badge-list.module.scss → badge-list.m.scss} +0 -0
- /package/common/components/{intractive-image → interactive-image}/index.d.ts +0 -0
- /package/common/components/{intractive-image → interactive-image}/interactive-image-util.scss +0 -0
- /package/common/components/{intractive-image/interactive-image.module.scss → interactive-image/interactive-image.m.scss} +0 -0
- /package/common/components/rating-counter/{rating-counter.module.scss → rating-counter.m.scss} +0 -0
- /package/desktop/components/gallery-modal/components/{review-info.module.scss → review-info.m.scss} +0 -0
- /package/desktop/components/gallery-modal/components/{thumbnail.module.scss → thumbnail.m.scss} +0 -0
- /package/desktop/components/product-card/{product-card.module.scss → product-card.m.scss} +0 -0
- /package/desktop/components/promotion-card/{banner-title.module.scss → banner-title.m.scss} +0 -0
- /package/desktop/components/promotion-card/{placeholder.module.scss → placeholder.m.scss} +0 -0
- /package/mobile/components/action-circles/{action-circles.module.scss → action-circles.m.scss} +0 -0
- /package/mobile/components/action-list/{action-list.module.scss → action-list.m.scss} +0 -0
- /package/mobile/components/breadcrumbs/{breadcrumbs.module.scss → breadcrumbs.m.scss} +0 -0
- /package/mobile/components/product-row/{product-row.module.scss → product-row.m.scss} +0 -0
- /package/mobile/components/product-slider/{product-slider.module.scss → product-slider.m.scss} +0 -0
- /package/mobile/components/select-screen/{select-screen.module.scss → select-screen.m.scss} +0 -0
|
@@ -1,10 +1,7 @@
|
|
|
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.Estimate = void 0;
|
|
7
|
-
const
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
8
5
|
const date_fns_1 = require("date-fns");
|
|
9
6
|
const MONTH_SHORT_NAME = [
|
|
10
7
|
'янв',
|
|
@@ -43,6 +40,7 @@ const Estimate = ({ dueDate }) => {
|
|
|
43
40
|
else {
|
|
44
41
|
content = `До ${(0, date_fns_1.getDate)(dueDate)} ${MONTH_SHORT_NAME[(0, date_fns_1.getMonth)(dueDate)]}`;
|
|
45
42
|
}
|
|
46
|
-
return
|
|
43
|
+
return (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: content });
|
|
47
44
|
};
|
|
48
45
|
exports.Estimate = Estimate;
|
|
46
|
+
//# sourceMappingURL=estimate.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"estimate.js","sourceRoot":"","sources":["../../../../src/desktop/components/promotion-card/estimate.tsx"],"names":[],"mappings":";;;;AAAA,uCAAsD;AAOtD,MAAM,gBAAgB,GAAG;IACvB,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;CACG,CAAC;AAEX;;;;GAIG;AACH,MAAM,UAAU,GAAG,CAAC,CAAS,EAAU,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,QAAQ,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC;AAElE;;;;GAIG;AACI,MAAM,QAAQ,GAAG,CAAC,EAAE,OAAO,EAAiB,EAAE,EAAE;IACrD,MAAM,GAAG,GAAG,IAAI,IAAI,EAAE,CAAC;IAEvB,IAAI,OAAO,GAAc,IAAI,CAAC;IAE9B,IAAI,IAAA,kBAAO,EAAC,OAAO,CAAC,KAAK,IAAA,kBAAO,EAAC,GAAG,CAAC,EAAE,CAAC;QACtC,MAAM,IAAI,GAAG,CAAC,kBAAO,EAAE,CAAC,CAAO,EAAE,EAAE,CAAC,IAAA,mBAAQ,EAAC,CAAC,CAAC,GAAG,CAAC,EAAE,kBAAO,CAAC;aAC1D,GAAG,CAAC,EAAE,CAAC,EAAE,CAAC,UAAU,CAAC,EAAE,CAAC,OAAO,CAAC,CAAC,CAAC;aAClC,IAAI,CAAC,GAAG,CAAC,CAAC;QAEb,OAAO,GAAG,MAAM,IAAI,EAAE,CAAC;IACzB,CAAC;SAAM,CAAC;QACN,OAAO,GAAG,MAAM,IAAA,kBAAO,EAAC,OAAO,CAAC,IAAI,gBAAgB,CAAC,IAAA,mBAAQ,EAAC,OAAO,CAAC,CAAC,EAAE,CAAC;IAC5E,CAAC;IAED,OAAO,2DAAG,OAAO,GAAI,CAAC;AACxB,CAAC,CAAC;AAhBW,QAAA,QAAQ,YAgBnB"}
|
|
@@ -1,31 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
export
|
|
4
|
-
|
|
5
|
-
href?: string;
|
|
6
|
-
/** Заголовок, выводится под баннером. */
|
|
7
|
-
title: string;
|
|
8
|
-
/** Подзаголовок. */
|
|
9
|
-
subtitle?: string;
|
|
10
|
-
/** Дополнительный текст, выводится в правом нижнем углу. */
|
|
11
|
-
postfix?: string;
|
|
12
|
-
/** Путь к изображению для баннера. */
|
|
13
|
-
imageSrc: string;
|
|
14
|
-
/** Дата окончания акции. */
|
|
15
|
-
dueDate: Date;
|
|
16
|
-
/** Тип акции. */
|
|
17
|
-
promotionType?: PromotionType;
|
|
18
|
-
/** Скидка за объем, указывается при соответствующем типе акции. */
|
|
19
|
-
volumeDiscount?: number;
|
|
20
|
-
/** Идентификатор для систем автоматизированного тестирования. */
|
|
21
|
-
'data-testid'?: string;
|
|
22
|
-
}
|
|
23
|
-
/**
|
|
24
|
-
* Карточка акции.
|
|
25
|
-
* @param props Свойства.
|
|
26
|
-
* @return Элемент.
|
|
27
|
-
*/
|
|
28
|
-
export declare const PromotionCard: {
|
|
29
|
-
({ promotionType, href, imageSrc, title, subtitle, dueDate, volumeDiscount, postfix, className, "data-testid": testId, ...restProps }: PromotionCardProps): JSX.Element;
|
|
30
|
-
Placeholder: (props: React.HTMLAttributes<HTMLDivElement>) => JSX.Element;
|
|
31
|
-
};
|
|
1
|
+
export { type BannerTitleProps, BannerTitle } from './banner-title';
|
|
2
|
+
export { type EstimateProps, Estimate } from './estimate';
|
|
3
|
+
export { type PromotionCardPlaceholderProps, PromotionCardPlaceholder } from './placeholder';
|
|
4
|
+
export { type PromotionCardProps, PromotionCard } from './promotion-card';
|
|
@@ -1,85 +1,12 @@
|
|
|
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
|
-
exports.PromotionCard = void 0;
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
special: 'Спецпредложение',
|
|
51
|
-
'3-by-2': '3 по цене 2',
|
|
52
|
-
'volume-discount': 'Скидка за объём',
|
|
53
|
-
};
|
|
54
|
-
/**
|
|
55
|
-
* Карточка акции.
|
|
56
|
-
* @param props Свойства.
|
|
57
|
-
* @return Элемент.
|
|
58
|
-
*/
|
|
59
|
-
const PromotionCard = (_a) => {
|
|
60
|
-
var { promotionType, href, imageSrc, title, subtitle, dueDate, volumeDiscount, postfix = promotionType ? PromotionName[promotionType] : undefined,
|
|
61
|
-
// div props
|
|
62
|
-
className, 'data-testid': testId = 'promotion-card' } = _a, restProps = __rest(_a, ["promotionType", "href", "imageSrc", "title", "subtitle", "dueDate", "volumeDiscount", "postfix", "className", 'data-testid']);
|
|
63
|
-
// время нужно выводить только на клиенте - вводим состояние
|
|
64
|
-
const [mounted, setMounted] = (0, react_1.useState)(false);
|
|
65
|
-
(0, react_1.useEffect)(() => {
|
|
66
|
-
setMounted(true);
|
|
67
|
-
}, []);
|
|
68
|
-
return (react_1.default.createElement("div", Object.assign({ className: (0, classnames_1.default)(className, index_module_scss_1.default.root) }, restProps, { "data-testid": testId }),
|
|
69
|
-
react_1.default.createElement("a", { href: href, className: index_module_scss_1.default.link },
|
|
70
|
-
react_1.default.createElement("div", { className: index_module_scss_1.default.banner },
|
|
71
|
-
react_1.default.createElement("img", { src: imageSrc, alt: title, className: index_module_scss_1.default.image }),
|
|
72
|
-
promotionType && (mounted || promotionType !== 'special') && (react_1.default.createElement("div", { className: index_module_scss_1.default['banner-content'] },
|
|
73
|
-
react_1.default.createElement(banner_title_1.BannerTitle, { promotionType: promotionType, volumeDiscount: volumeDiscount, dueDate: dueDate })))),
|
|
74
|
-
react_1.default.createElement("div", { className: index_module_scss_1.default.info },
|
|
75
|
-
react_1.default.createElement("div", { className: index_module_scss_1.default.header },
|
|
76
|
-
react_1.default.createElement("h4", { className: index_module_scss_1.default.title }, title),
|
|
77
|
-
subtitle && react_1.default.createElement("p", { className: index_module_scss_1.default.subtitle }, subtitle)),
|
|
78
|
-
react_1.default.createElement("div", { className: index_module_scss_1.default.footer },
|
|
79
|
-
mounted && (react_1.default.createElement("time", { className: index_module_scss_1.default.timer, "data-testid": 'promotion-card:due-date' },
|
|
80
|
-
react_1.default.createElement(watch_1.default, { className: index_module_scss_1.default['timer-svg'] }),
|
|
81
|
-
react_1.default.createElement(estimate_1.Estimate, { dueDate: dueDate }))),
|
|
82
|
-
postfix && (react_1.default.createElement("div", { "data-testid": 'promotion-card:postfix', className: index_module_scss_1.default.postfix }, postfix)))))));
|
|
83
|
-
};
|
|
84
|
-
exports.PromotionCard = PromotionCard;
|
|
85
|
-
exports.PromotionCard.Placeholder = placeholder_1.PromotionCardPlaceholder;
|
|
3
|
+
exports.PromotionCard = exports.PromotionCardPlaceholder = exports.Estimate = exports.BannerTitle = void 0;
|
|
4
|
+
var banner_title_1 = require("./banner-title");
|
|
5
|
+
Object.defineProperty(exports, "BannerTitle", { enumerable: true, get: function () { return banner_title_1.BannerTitle; } });
|
|
6
|
+
var estimate_1 = require("./estimate");
|
|
7
|
+
Object.defineProperty(exports, "Estimate", { enumerable: true, get: function () { return estimate_1.Estimate; } });
|
|
8
|
+
var placeholder_1 = require("./placeholder");
|
|
9
|
+
Object.defineProperty(exports, "PromotionCardPlaceholder", { enumerable: true, get: function () { return placeholder_1.PromotionCardPlaceholder; } });
|
|
10
|
+
var promotion_card_1 = require("./promotion-card");
|
|
11
|
+
Object.defineProperty(exports, "PromotionCard", { enumerable: true, get: function () { return promotion_card_1.PromotionCard; } });
|
|
12
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/desktop/components/promotion-card/index.ts"],"names":[],"mappings":";;;AAAA,+CAAoE;AAApC,2GAAA,WAAW,OAAA;AAC3C,uCAA0D;AAA7B,oGAAA,QAAQ,OAAA;AACrC,6CAA6F;AAAhD,uHAAA,wBAAwB,OAAA;AACrE,mDAA0E;AAAxC,+GAAA,aAAa,OAAA"}
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { HTMLAttributes } from 'react';
|
|
2
|
+
export interface PromotionCardPlaceholderProps extends HTMLAttributes<HTMLDivElement> {
|
|
3
|
+
}
|
|
2
4
|
/**
|
|
3
5
|
* Компонент отображения состояния загрузки карточки акции.
|
|
4
6
|
* @param props Свойства div.
|
|
5
7
|
* @return Элемент.
|
|
6
8
|
*/
|
|
7
|
-
export declare const PromotionCardPlaceholder: (props:
|
|
9
|
+
export declare const PromotionCardPlaceholder: (props: PromotionCardPlaceholderProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -4,16 +4,14 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.PromotionCardPlaceholder = void 0;
|
|
7
|
-
const
|
|
8
|
-
const
|
|
7
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
8
|
+
const placeholder_m_scss_1 = __importDefault(require("./placeholder.m.scss"));
|
|
9
9
|
const classnames_1 = __importDefault(require("classnames"));
|
|
10
10
|
/**
|
|
11
11
|
* Компонент отображения состояния загрузки карточки акции.
|
|
12
12
|
* @param props Свойства div.
|
|
13
13
|
* @return Элемент.
|
|
14
14
|
*/
|
|
15
|
-
const PromotionCardPlaceholder = (props) => (
|
|
16
|
-
react_1.default.createElement("div", { className: (0, classnames_1.default)(placeholder_module_scss_1.default.part, placeholder_module_scss_1.default.banner) }),
|
|
17
|
-
react_1.default.createElement("div", { className: (0, classnames_1.default)(placeholder_module_scss_1.default.part, placeholder_module_scss_1.default.text) }),
|
|
18
|
-
react_1.default.createElement("div", { className: (0, classnames_1.default)(placeholder_module_scss_1.default.part, placeholder_module_scss_1.default.text) })));
|
|
15
|
+
const PromotionCardPlaceholder = (props) => ((0, jsx_runtime_1.jsxs)("div", { "data-testid": 'promotion-card:placeholder', ...props, children: [(0, jsx_runtime_1.jsx)("div", { className: (0, classnames_1.default)(placeholder_m_scss_1.default.part, placeholder_m_scss_1.default.banner) }), (0, jsx_runtime_1.jsx)("div", { className: (0, classnames_1.default)(placeholder_m_scss_1.default.part, placeholder_m_scss_1.default.text) }), (0, jsx_runtime_1.jsx)("div", { className: (0, classnames_1.default)(placeholder_m_scss_1.default.part, placeholder_m_scss_1.default.text) })] }));
|
|
19
16
|
exports.PromotionCardPlaceholder = PromotionCardPlaceholder;
|
|
17
|
+
//# sourceMappingURL=placeholder.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"placeholder.js","sourceRoot":"","sources":["../../../../src/desktop/components/promotion-card/placeholder.tsx"],"names":[],"mappings":";;;;;;;AACA,8EAA0C;AAC1C,4DAA4B;AAI5B;;;;GAIG;AACI,MAAM,wBAAwB,GAAG,CAAC,KAAoC,EAAE,EAAE,CAAC,CAChF,gDAAiB,4BAA4B,KAAK,KAAK,aACrD,gCAAK,SAAS,EAAE,IAAA,oBAAE,EAAC,4BAAM,CAAC,IAAI,EAAE,4BAAM,CAAC,MAAM,CAAC,GAAI,EAClD,gCAAK,SAAS,EAAE,IAAA,oBAAE,EAAC,4BAAM,CAAC,IAAI,EAAE,4BAAM,CAAC,IAAI,CAAC,GAAI,EAChD,gCAAK,SAAS,EAAE,IAAA,oBAAE,EAAC,4BAAM,CAAC,IAAI,EAAE,4BAAM,CAAC,IAAI,CAAC,GAAI,IAC5C,CACP,CAAC;AANW,QAAA,wBAAwB,4BAMnC"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { HTMLAttributes } from 'react';
|
|
2
|
+
import { PromotionType } from './types';
|
|
3
|
+
export interface PromotionCardProps extends HTMLAttributes<HTMLDivElement> {
|
|
4
|
+
/** Ссылка, переход по которой будет произведён при нажатии на карточку. */
|
|
5
|
+
href?: string;
|
|
6
|
+
/** Заголовок, выводится под баннером. */
|
|
7
|
+
title: string;
|
|
8
|
+
/** Подзаголовок. */
|
|
9
|
+
subtitle?: string;
|
|
10
|
+
/** Дополнительный текст, выводится в правом нижнем углу. */
|
|
11
|
+
postfix?: string;
|
|
12
|
+
/** Путь к изображению для баннера. */
|
|
13
|
+
imageSrc: string;
|
|
14
|
+
/** Дата окончания акции. */
|
|
15
|
+
dueDate: Date;
|
|
16
|
+
/** Тип акции. */
|
|
17
|
+
promotionType?: PromotionType;
|
|
18
|
+
/** Скидка за объем, указывается при соответствующем типе акции. */
|
|
19
|
+
volumeDiscount?: number;
|
|
20
|
+
/** Идентификатор для систем автоматизированного тестирования. */
|
|
21
|
+
'data-testid'?: string;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Карточка акции.
|
|
25
|
+
* @param props Свойства.
|
|
26
|
+
* @return Элемент.
|
|
27
|
+
*/
|
|
28
|
+
export declare const PromotionCard: {
|
|
29
|
+
({ promotionType, href, imageSrc, title, subtitle, dueDate, volumeDiscount, postfix, className, "data-testid": testId, ...restProps }: PromotionCardProps): import("react/jsx-runtime").JSX.Element;
|
|
30
|
+
/** @deprecated Лучше использовать прямой импорт PromotionCardPlaceholder. */
|
|
31
|
+
Placeholder: (props: import("./placeholder").PromotionCardPlaceholderProps) => import("react/jsx-runtime").JSX.Element;
|
|
32
|
+
};
|
|
@@ -0,0 +1,39 @@
|
|
|
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.PromotionCard = void 0;
|
|
7
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
8
|
+
const react_1 = require("react");
|
|
9
|
+
const banner_title_1 = require("./banner-title");
|
|
10
|
+
const estimate_1 = require("./estimate");
|
|
11
|
+
const Watch_1 = __importDefault(require("@sima-land/ui-quarks/icons/16x16/Stroked/Watch"));
|
|
12
|
+
const classnames_1 = __importDefault(require("classnames"));
|
|
13
|
+
const promotion_card_m_scss_1 = __importDefault(require("./promotion-card.m.scss"));
|
|
14
|
+
const placeholder_1 = require("./placeholder");
|
|
15
|
+
const PromotionName = {
|
|
16
|
+
gift: 'Подарок',
|
|
17
|
+
special: 'Спецпредложение',
|
|
18
|
+
'3-by-2': '3 по цене 2',
|
|
19
|
+
'volume-discount': 'Скидка за объём',
|
|
20
|
+
};
|
|
21
|
+
/**
|
|
22
|
+
* Карточка акции.
|
|
23
|
+
* @param props Свойства.
|
|
24
|
+
* @return Элемент.
|
|
25
|
+
*/
|
|
26
|
+
const PromotionCard = ({ promotionType, href, imageSrc, title, subtitle, dueDate, volumeDiscount, postfix = promotionType ? PromotionName[promotionType] : undefined,
|
|
27
|
+
// div props
|
|
28
|
+
className, 'data-testid': testId = 'promotion-card', ...restProps }) => {
|
|
29
|
+
// время нужно выводить только на клиенте - вводим состояние
|
|
30
|
+
const [mounted, setMounted] = (0, react_1.useState)(false);
|
|
31
|
+
(0, react_1.useEffect)(() => {
|
|
32
|
+
setMounted(true);
|
|
33
|
+
}, []);
|
|
34
|
+
return ((0, jsx_runtime_1.jsx)("div", { className: (0, classnames_1.default)(className, promotion_card_m_scss_1.default.root), ...restProps, "data-testid": testId, children: (0, jsx_runtime_1.jsxs)("a", { href: href, className: promotion_card_m_scss_1.default.link, children: [(0, jsx_runtime_1.jsxs)("div", { className: promotion_card_m_scss_1.default.banner, children: [(0, jsx_runtime_1.jsx)("img", { src: imageSrc, alt: title, className: promotion_card_m_scss_1.default.image }), promotionType && (mounted || promotionType !== 'special') && ((0, jsx_runtime_1.jsx)("div", { className: promotion_card_m_scss_1.default['banner-content'], children: (0, jsx_runtime_1.jsx)(banner_title_1.BannerTitle, { promotionType: promotionType, volumeDiscount: volumeDiscount, dueDate: dueDate }) }))] }), (0, jsx_runtime_1.jsxs)("div", { className: promotion_card_m_scss_1.default.info, children: [(0, jsx_runtime_1.jsxs)("div", { className: promotion_card_m_scss_1.default.header, children: [(0, jsx_runtime_1.jsx)("h4", { className: promotion_card_m_scss_1.default.title, children: title }), subtitle && (0, jsx_runtime_1.jsx)("p", { className: promotion_card_m_scss_1.default.subtitle, children: subtitle })] }), (0, jsx_runtime_1.jsxs)("div", { className: promotion_card_m_scss_1.default.footer, children: [mounted && ((0, jsx_runtime_1.jsxs)("time", { className: promotion_card_m_scss_1.default.timer, "data-testid": 'promotion-card:due-date', children: [(0, jsx_runtime_1.jsx)(Watch_1.default, { className: promotion_card_m_scss_1.default['timer-svg'] }), (0, jsx_runtime_1.jsx)(estimate_1.Estimate, { dueDate: dueDate })] })), postfix && ((0, jsx_runtime_1.jsx)("div", { "data-testid": 'promotion-card:postfix', className: promotion_card_m_scss_1.default.postfix, children: postfix }))] })] })] }) }));
|
|
35
|
+
};
|
|
36
|
+
exports.PromotionCard = PromotionCard;
|
|
37
|
+
/** @deprecated Лучше использовать прямой импорт PromotionCardPlaceholder. */
|
|
38
|
+
exports.PromotionCard.Placeholder = placeholder_1.PromotionCardPlaceholder;
|
|
39
|
+
//# sourceMappingURL=promotion-card.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"promotion-card.js","sourceRoot":"","sources":["../../../../src/desktop/components/promotion-card/promotion-card.tsx"],"names":[],"mappings":";;;;;;;AAAA,iCAA4D;AAE5D,iDAA6C;AAC7C,yCAAsC;AACtC,2FAAsE;AACtE,4DAAoC;AACpC,oFAA6C;AAC7C,+CAAyD;AA+BzD,MAAM,aAAa,GAAkC;IACnD,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,iBAAiB;IAC1B,QAAQ,EAAE,aAAa;IACvB,iBAAiB,EAAE,iBAAiB;CAC5B,CAAC;AAEX;;;;GAIG;AACI,MAAM,aAAa,GAAG,CAAC,EAC5B,aAAa,EACb,IAAI,EACJ,QAAQ,EACR,KAAK,EACL,QAAQ,EACR,OAAO,EACP,cAAc,EACd,OAAO,GAAG,aAAa,CAAC,CAAC,CAAC,aAAa,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC,SAAS;AAElE,YAAY;AACZ,SAAS,EACT,aAAa,EAAE,MAAM,GAAG,gBAAgB,EACxC,GAAG,SAAS,EACO,EAAE,EAAE;IACvB,4DAA4D;IAC5D,MAAM,CAAC,OAAO,EAAE,UAAU,CAAC,GAAG,IAAA,gBAAQ,EAAU,KAAK,CAAC,CAAC;IAEvD,IAAA,iBAAS,EAAC,GAAG,EAAE;QACb,UAAU,CAAC,IAAI,CAAC,CAAC;IACnB,CAAC,EAAE,EAAE,CAAC,CAAC;IAEP,OAAO,CACL,gCAAK,SAAS,EAAE,IAAA,oBAAU,EAAC,SAAS,EAAE,+BAAM,CAAC,IAAI,CAAC,KAAM,SAAS,iBAAe,MAAM,YACpF,+BAAG,IAAI,EAAE,IAAI,EAAE,SAAS,EAAE,+BAAM,CAAC,IAAI,aACnC,iCAAK,SAAS,EAAE,+BAAM,CAAC,MAAM,aAC3B,gCAAK,GAAG,EAAE,QAAQ,EAAE,GAAG,EAAE,KAAK,EAAE,SAAS,EAAE,+BAAM,CAAC,KAAK,GAAI,EAE1D,aAAa,IAAI,CAAC,OAAO,IAAI,aAAa,KAAK,SAAS,CAAC,IAAI,CAC5D,gCAAK,SAAS,EAAE,+BAAM,CAAC,gBAAgB,CAAC,YACtC,uBAAC,0BAAW,IACV,aAAa,EAAE,aAAa,EAC5B,cAAc,EAAE,cAAc,EAC9B,OAAO,EAAE,OAAO,GAChB,GACE,CACP,IACG,EAEN,iCAAK,SAAS,EAAE,+BAAM,CAAC,IAAI,aACzB,iCAAK,SAAS,EAAE,+BAAM,CAAC,MAAM,aAC3B,+BAAI,SAAS,EAAE,+BAAM,CAAC,KAAK,YAAG,KAAK,GAAM,EAExC,QAAQ,IAAI,8BAAG,SAAS,EAAE,+BAAM,CAAC,QAAQ,YAAG,QAAQ,GAAK,IACtD,EAEN,iCAAK,SAAS,EAAE,+BAAM,CAAC,MAAM,aAC1B,OAAO,IAAI,CACV,kCAAM,SAAS,EAAE,+BAAM,CAAC,KAAK,iBAAc,yBAAyB,aAClE,uBAAC,eAAQ,IAAC,SAAS,EAAE,+BAAM,CAAC,WAAW,CAAC,GAAI,EAC5C,uBAAC,mBAAQ,IAAC,OAAO,EAAE,OAAO,GAAI,IACzB,CACR,EAEA,OAAO,IAAI,CACV,+CAAiB,wBAAwB,EAAC,SAAS,EAAE,+BAAM,CAAC,OAAO,YAChE,OAAO,GACJ,CACP,IACG,IACF,IACJ,GACA,CACP,CAAC;AACJ,CAAC,CAAC;AAhEW,QAAA,aAAa,iBAgExB;AAEF,6EAA6E;AAC7E,qBAAa,CAAC,WAAW,GAAG,sCAAwB,CAAC"}
|
|
@@ -1,16 +1,18 @@
|
|
|
1
1
|
@use 'node_modules/@sima-land/ui-nucleons/colors';
|
|
2
2
|
@use 'node_modules/@sima-land/ui-nucleons/breakpoints';
|
|
3
|
+
@use 'node_modules/@sima-land/ui-nucleons/shadows';
|
|
3
4
|
@use './variables';
|
|
4
|
-
@import 'node_modules/@sima-land/ui-nucleons/styling/shadows.module';
|
|
5
5
|
|
|
6
6
|
.root {
|
|
7
7
|
background: #fff;
|
|
8
8
|
border-radius: 8px;
|
|
9
|
-
transition:
|
|
10
|
-
|
|
9
|
+
transition:
|
|
10
|
+
transform 0.2s ease-out,
|
|
11
|
+
box-shadow 0.2s ease-out;
|
|
12
|
+
@include shadows.box-shadow('z3');
|
|
11
13
|
&:hover {
|
|
12
14
|
transform: translateY(-8px);
|
|
13
|
-
@
|
|
15
|
+
@include shadows.box-shadow('z4');
|
|
14
16
|
.image {
|
|
15
17
|
transform: scale(1.05);
|
|
16
18
|
}
|
|
@@ -69,7 +71,7 @@
|
|
|
69
71
|
}
|
|
70
72
|
|
|
71
73
|
.title {
|
|
72
|
-
font-weight:
|
|
74
|
+
font-weight: 600;
|
|
73
75
|
font-size: 16px;
|
|
74
76
|
line-height: 24px;
|
|
75
77
|
display: -webkit-box;
|
|
@@ -94,7 +96,7 @@
|
|
|
94
96
|
display: flex;
|
|
95
97
|
flex-wrap: nowrap;
|
|
96
98
|
margin-top: 16px;
|
|
97
|
-
font-weight:
|
|
99
|
+
font-weight: 600;
|
|
98
100
|
font-size: 14px;
|
|
99
101
|
line-height: 20px;
|
|
100
102
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/desktop/components/promotion-card/types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { LinkProps } from '@sima-land/ui-nucleons/link';
|
|
3
|
+
export interface ActionCirclesProps {
|
|
4
|
+
/** Кнопки. */
|
|
5
|
+
children?: ReactNode;
|
|
6
|
+
}
|
|
7
|
+
export interface ActionCircleItemProps extends Pick<LinkProps, 'href' | 'pseudo' | 'onClick'> {
|
|
8
|
+
/** Название. */
|
|
9
|
+
title: string;
|
|
10
|
+
/** Иконка. */
|
|
11
|
+
icon: ReactNode;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Кнопки действий с иконками.
|
|
15
|
+
* Используется вместе с `Alert`.
|
|
16
|
+
* @param props Свойства.
|
|
17
|
+
* @return Элемент.
|
|
18
|
+
*/
|
|
19
|
+
export declare function ActionCircles({ children }: ActionCirclesProps): import("react/jsx-runtime").JSX.Element;
|
|
20
|
+
export declare namespace ActionCircles {
|
|
21
|
+
var Item: ({ icon, title, href, onClick, }: ActionCircleItemProps) => import("react/jsx-runtime").JSX.Element;
|
|
22
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
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.ActionCircles = void 0;
|
|
7
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
8
|
+
const link_1 = require("@sima-land/ui-nucleons/link");
|
|
9
|
+
const bind_1 = __importDefault(require("classnames/bind"));
|
|
10
|
+
const action_circles_m_scss_1 = __importDefault(require("./action-circles.m.scss"));
|
|
11
|
+
const cx = bind_1.default.bind(action_circles_m_scss_1.default);
|
|
12
|
+
/**
|
|
13
|
+
* Кнопки действий с иконками.
|
|
14
|
+
* Используется вместе с `Alert`.
|
|
15
|
+
* @param props Свойства.
|
|
16
|
+
* @return Элемент.
|
|
17
|
+
*/
|
|
18
|
+
function ActionCircles({ children }) {
|
|
19
|
+
return (0, jsx_runtime_1.jsx)("div", { className: cx('circles'), children: children });
|
|
20
|
+
}
|
|
21
|
+
exports.ActionCircles = ActionCircles;
|
|
22
|
+
/**
|
|
23
|
+
* Кнопка действия с иконкой.
|
|
24
|
+
* @param props Свойства.
|
|
25
|
+
* @return Элемент.
|
|
26
|
+
*/
|
|
27
|
+
ActionCircles.Item = function ActionCircleItem({ icon, title, href, onClick, }) {
|
|
28
|
+
// @todo перейти на TextButton из нуклонов
|
|
29
|
+
return ((0, jsx_runtime_1.jsxs)(link_1.Link, { href: href, className: cx('circles-item'), color: 'basic-gray87', onClick: onClick, "data-testid": 'action-circles:item', children: [(0, jsx_runtime_1.jsx)("span", { className: cx('icon-wrapper'), children: icon }), title] }));
|
|
30
|
+
};
|
|
31
|
+
//# sourceMappingURL=action-circles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"action-circles.js","sourceRoot":"","sources":["../../../../src/mobile/components/action-circles/action-circles.tsx"],"names":[],"mappings":";;;;;;;AACA,sDAA8D;AAC9D,2DAAyC;AACzC,oFAA6C;AAe7C,MAAM,EAAE,GAAG,cAAU,CAAC,IAAI,CAAC,+BAAM,CAAC,CAAC;AAEnC;;;;;GAKG;AACH,SAAgB,aAAa,CAAC,EAAE,QAAQ,EAAsB;IAC5D,OAAO,gCAAK,SAAS,EAAE,EAAE,CAAC,SAAS,CAAC,YAAG,QAAQ,GAAO,CAAC;AACzD,CAAC;AAFD,sCAEC;AAED;;;;GAIG;AACH,aAAa,CAAC,IAAI,GAAG,SAAS,gBAAgB,CAAC,EAC7C,IAAI,EACJ,KAAK,EACL,IAAI,EACJ,OAAO,GACe;IACtB,0CAA0C;IAC1C,OAAO,CACL,wBAAC,WAAI,IACH,IAAI,EAAE,IAAI,EACV,SAAS,EAAE,EAAE,CAAC,cAAc,CAAC,EAC7B,KAAK,EAAC,cAAc,EACpB,OAAO,EAAE,OAAO,iBACJ,qBAAqB,aAEjC,iCAAM,SAAS,EAAE,EAAE,CAAC,cAAc,CAAC,YAAG,IAAI,GAAQ,EACjD,KAAK,IACD,CACR,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -1,22 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import { LinkProps } from '@sima-land/ui-nucleons/link';
|
|
3
|
-
export interface ActionCirclesProps {
|
|
4
|
-
/** Кнопки. */
|
|
5
|
-
children?: ReactNode;
|
|
6
|
-
}
|
|
7
|
-
export interface ActionCircleItemProps extends Pick<LinkProps, 'href' | 'pseudo' | 'onClick'> {
|
|
8
|
-
/** Название. */
|
|
9
|
-
title: string;
|
|
10
|
-
/** Иконка. */
|
|
11
|
-
icon: ReactNode;
|
|
12
|
-
}
|
|
13
|
-
/**
|
|
14
|
-
* Кнопки действий с иконками.
|
|
15
|
-
* Используется вместе с `Alert`.
|
|
16
|
-
* @param props Свойства.
|
|
17
|
-
* @return Элемент.
|
|
18
|
-
*/
|
|
19
|
-
export declare function ActionCircles({ children }: ActionCirclesProps): JSX.Element;
|
|
20
|
-
export declare namespace ActionCircles {
|
|
21
|
-
var Item: ({ icon, title, href, onClick, }: ActionCircleItemProps) => JSX.Element;
|
|
22
|
-
}
|
|
1
|
+
export { type ActionCirclesProps, type ActionCircleItemProps, ActionCircles, } from './action-circles';
|
|
@@ -1,32 +1,6 @@
|
|
|
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.ActionCircles = void 0;
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
const action_circles_module_scss_1 = __importDefault(require("./action-circles.module.scss"));
|
|
11
|
-
const cx = bind_1.default.bind(action_circles_module_scss_1.default);
|
|
12
|
-
/**
|
|
13
|
-
* Кнопки действий с иконками.
|
|
14
|
-
* Используется вместе с `Alert`.
|
|
15
|
-
* @param props Свойства.
|
|
16
|
-
* @return Элемент.
|
|
17
|
-
*/
|
|
18
|
-
function ActionCircles({ children }) {
|
|
19
|
-
return react_1.default.createElement("div", { className: cx('circles') }, children);
|
|
20
|
-
}
|
|
21
|
-
exports.ActionCircles = ActionCircles;
|
|
22
|
-
/**
|
|
23
|
-
* Кнопка действия с иконкой.
|
|
24
|
-
* @param props Свойства.
|
|
25
|
-
* @return Элемент.
|
|
26
|
-
*/
|
|
27
|
-
ActionCircles.Item = function ActionCircleItem({ icon, title, href, onClick, }) {
|
|
28
|
-
// @todo перейти на TextButton из нуклонов
|
|
29
|
-
return (react_1.default.createElement(link_1.Link, { href: href, className: cx('circles-item'), color: 'basic-gray87', onClick: onClick, "data-testid": 'action-circles:item' },
|
|
30
|
-
react_1.default.createElement("span", { className: cx('icon-wrapper') }, icon),
|
|
31
|
-
title));
|
|
32
|
-
};
|
|
4
|
+
var action_circles_1 = require("./action-circles");
|
|
5
|
+
Object.defineProperty(exports, "ActionCircles", { enumerable: true, get: function () { return action_circles_1.ActionCircles; } });
|
|
6
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/mobile/components/action-circles/index.ts"],"names":[],"mappings":";;;AAAA,mDAI0B;AADxB,+GAAA,aAAa,OAAA"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { MouseEventHandler, ReactNode } from 'react';
|
|
2
|
+
import { Token } from '@sima-land/ui-nucleons/colors';
|
|
3
|
+
export interface ActionsListProps {
|
|
4
|
+
/** Кнопки. */
|
|
5
|
+
children?: ReactNode;
|
|
6
|
+
}
|
|
7
|
+
export interface ActionsListItemProps {
|
|
8
|
+
children?: ReactNode;
|
|
9
|
+
as?: 'anchor' | 'button';
|
|
10
|
+
href?: string;
|
|
11
|
+
onClick?: MouseEventHandler;
|
|
12
|
+
color?: Extract<Token, 'basic-gray87' | 'additional-red'>;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Список действий.
|
|
16
|
+
* Используется вместе с `Alert`.
|
|
17
|
+
* @param props Свойства.
|
|
18
|
+
* @return Элемент.
|
|
19
|
+
*/
|
|
20
|
+
export declare function ActionList({ children }: ActionsListProps): import("react/jsx-runtime").JSX.Element;
|
|
21
|
+
export declare namespace ActionList {
|
|
22
|
+
var Item: typeof ActionListItem;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Элемент списка действий.
|
|
26
|
+
* @param props Свойства.
|
|
27
|
+
* @return Элемент.
|
|
28
|
+
*/
|
|
29
|
+
export declare function ActionListItem({ children, as, href, onClick, color, }: ActionsListItemProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,40 @@
|
|
|
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.ActionListItem = exports.ActionList = void 0;
|
|
7
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
8
|
+
const bind_1 = __importDefault(require("classnames/bind"));
|
|
9
|
+
const action_list_m_scss_1 = __importDefault(require("./action-list.m.scss"));
|
|
10
|
+
const cx = bind_1.default.bind(action_list_m_scss_1.default);
|
|
11
|
+
/**
|
|
12
|
+
* Список действий.
|
|
13
|
+
* Используется вместе с `Alert`.
|
|
14
|
+
* @param props Свойства.
|
|
15
|
+
* @return Элемент.
|
|
16
|
+
*/
|
|
17
|
+
function ActionList({ children }) {
|
|
18
|
+
return (0, jsx_runtime_1.jsx)("div", { className: cx('list'), children: children });
|
|
19
|
+
}
|
|
20
|
+
exports.ActionList = ActionList;
|
|
21
|
+
/** @deprecated Стоит использовать прямой импорт ActionListItem. */
|
|
22
|
+
ActionList.Item = ActionListItem;
|
|
23
|
+
/**
|
|
24
|
+
* Элемент списка действий.
|
|
25
|
+
* @param props Свойства.
|
|
26
|
+
* @return Элемент.
|
|
27
|
+
*/
|
|
28
|
+
function ActionListItem({ children, as = 'button', href, onClick, color = 'basic-gray87', }) {
|
|
29
|
+
const className = cx('list-item', { [color]: color });
|
|
30
|
+
const testId = 'action-list:item';
|
|
31
|
+
// @todo перейти на TextButton из нуклонов
|
|
32
|
+
if (as === 'anchor') {
|
|
33
|
+
return ((0, jsx_runtime_1.jsx)("a", { className: className, "data-testid": testId, href: href, onClick: onClick, children: children }));
|
|
34
|
+
}
|
|
35
|
+
else {
|
|
36
|
+
return ((0, jsx_runtime_1.jsx)("button", { type: 'button', className: className, "data-testid": testId, onClick: onClick, children: children }));
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
exports.ActionListItem = ActionListItem;
|
|
40
|
+
//# sourceMappingURL=action-list.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"action-list.js","sourceRoot":"","sources":["../../../../src/mobile/components/action-list/action-list.tsx"],"names":[],"mappings":";;;;;;;AAEA,2DAAyC;AACzC,8EAA0C;AAe1C,MAAM,EAAE,GAAG,cAAU,CAAC,IAAI,CAAC,4BAAM,CAAC,CAAC;AAEnC;;;;;GAKG;AACH,SAAgB,UAAU,CAAC,EAAE,QAAQ,EAAoB;IACvD,OAAO,gCAAK,SAAS,EAAE,EAAE,CAAC,MAAM,CAAC,YAAG,QAAQ,GAAO,CAAC;AACtD,CAAC;AAFD,gCAEC;AAED,mEAAmE;AACnE,UAAU,CAAC,IAAI,GAAG,cAAc,CAAC;AAEjC;;;;GAIG;AACH,SAAgB,cAAc,CAAC,EAC7B,QAAQ,EACR,EAAE,GAAG,QAAQ,EACb,IAAI,EACJ,OAAO,EACP,KAAK,GAAG,cAAc,GACD;IACrB,MAAM,SAAS,GAAG,EAAE,CAAC,WAAW,EAAE,EAAE,CAAC,KAAK,CAAC,EAAE,KAAK,EAAE,CAAC,CAAC;IACtD,MAAM,MAAM,GAAG,kBAAkB,CAAC;IAElC,0CAA0C;IAC1C,IAAI,EAAE,KAAK,QAAQ,EAAE,CAAC;QACpB,OAAO,CACL,8BAAG,SAAS,EAAE,SAAS,iBAAe,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,YACvE,QAAQ,GACP,CACL,CAAC;IACJ,CAAC;SAAM,CAAC;QACN,OAAO,CACL,mCAAQ,IAAI,EAAC,QAAQ,EAAC,SAAS,EAAE,SAAS,iBAAe,MAAM,EAAE,OAAO,EAAE,OAAO,YAC9E,QAAQ,GACF,CACV,CAAC;IACJ,CAAC;AACH,CAAC;AAxBD,wCAwBC"}
|
|
@@ -1,23 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import { Token } from '@sima-land/ui-nucleons/colors';
|
|
3
|
-
export interface ActionsListProps {
|
|
4
|
-
/** Кнопки. */
|
|
5
|
-
children?: ReactNode;
|
|
6
|
-
}
|
|
7
|
-
export interface ActionsListItemProps {
|
|
8
|
-
children?: ReactNode;
|
|
9
|
-
as?: 'anchor' | 'button';
|
|
10
|
-
href?: string;
|
|
11
|
-
onClick?: MouseEventHandler;
|
|
12
|
-
color?: Extract<Token, 'basic-gray87' | 'additional-red'>;
|
|
13
|
-
}
|
|
14
|
-
/**
|
|
15
|
-
* Список действий.
|
|
16
|
-
* Используется вместе с `Alert`.
|
|
17
|
-
* @param props Свойства.
|
|
18
|
-
* @return Элемент.
|
|
19
|
-
*/
|
|
20
|
-
export declare function ActionList({ children }: ActionsListProps): JSX.Element;
|
|
21
|
-
export declare namespace ActionList {
|
|
22
|
-
var Item: ({ children, as, href, onClick, color, }: ActionsListItemProps) => JSX.Element;
|
|
23
|
-
}
|
|
1
|
+
export { type ActionsListProps, type ActionsListItemProps, ActionList, ActionListItem, } from './action-list';
|
|
@@ -1,36 +1,7 @@
|
|
|
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
|
-
exports.ActionList = void 0;
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
/**
|
|
12
|
-
* Список действий.
|
|
13
|
-
* Используется вместе с `Alert`.
|
|
14
|
-
* @param props Свойства.
|
|
15
|
-
* @return Элемент.
|
|
16
|
-
*/
|
|
17
|
-
function ActionList({ children }) {
|
|
18
|
-
return react_1.default.createElement("div", { className: cx('list') }, children);
|
|
19
|
-
}
|
|
20
|
-
exports.ActionList = ActionList;
|
|
21
|
-
/**
|
|
22
|
-
* Элемент списка действий.
|
|
23
|
-
* @param props Свойства.
|
|
24
|
-
* @return Элемент.
|
|
25
|
-
*/
|
|
26
|
-
ActionList.Item = function ActionListItem({ children, as = 'button', href, onClick, color = 'basic-gray87', }) {
|
|
27
|
-
const className = cx('list-item', { [color]: color });
|
|
28
|
-
const testId = 'action-list:item';
|
|
29
|
-
// @todo перейти на TextButton из нуклонов
|
|
30
|
-
if (as === 'anchor') {
|
|
31
|
-
return (react_1.default.createElement("a", { className: className, "data-testid": testId, href: href, onClick: onClick }, children));
|
|
32
|
-
}
|
|
33
|
-
else {
|
|
34
|
-
return (react_1.default.createElement("button", { type: 'button', className: className, "data-testid": testId, onClick: onClick }, children));
|
|
35
|
-
}
|
|
36
|
-
};
|
|
3
|
+
exports.ActionListItem = exports.ActionList = void 0;
|
|
4
|
+
var action_list_1 = require("./action-list");
|
|
5
|
+
Object.defineProperty(exports, "ActionList", { enumerable: true, get: function () { return action_list_1.ActionList; } });
|
|
6
|
+
Object.defineProperty(exports, "ActionListItem", { enumerable: true, get: function () { return action_list_1.ActionListItem; } });
|
|
7
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/mobile/components/action-list/index.ts"],"names":[],"mappings":";;;AAAA,6CAKuB;AAFrB,yGAAA,UAAU,OAAA;AACV,6GAAA,cAAc,OAAA"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export interface BreadcrumbsProps {
|
|
2
|
+
items: {
|
|
3
|
+
name: string;
|
|
4
|
+
url?: string;
|
|
5
|
+
}[];
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* Хлебные крошки.
|
|
9
|
+
* @param props Свойства.
|
|
10
|
+
* @return Элемент.
|
|
11
|
+
*/
|
|
12
|
+
export declare const Breadcrumbs: ({ items }: BreadcrumbsProps) => import("react/jsx-runtime").JSX.Element;
|