@de-kit/st-ui 0.1.2 → 0.1.3
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 +16 -0
- package/dist/components/button/button.cjs +64 -12
- package/dist/components/button/button.cjs.map +1 -1
- package/dist/components/button/button.d.cts +3 -0
- package/dist/components/button/button.d.ts +3 -0
- package/dist/components/button/button.js +64 -12
- package/dist/components/button/button.js.map +1 -1
- package/dist/components/button/button.scss +24 -0
- package/dist/components/button/index.d.cts +2 -2
- package/dist/components/button/index.d.ts +2 -2
- package/dist/icons/control-mark-checkbox.cjs +14 -0
- package/dist/icons/control-mark-checkbox.cjs.map +1 -0
- package/dist/icons/control-mark-checkbox.d.cts +3 -0
- package/dist/icons/control-mark-checkbox.d.ts +3 -0
- package/dist/icons/control-mark-checkbox.js +14 -0
- package/dist/icons/control-mark-checkbox.js.map +1 -0
- package/dist/icons/control-mark-radiobutton.cjs +18 -0
- package/dist/icons/control-mark-radiobutton.cjs.map +1 -0
- package/dist/icons/control-mark-radiobutton.d.cts +3 -0
- package/dist/icons/control-mark-radiobutton.d.ts +3 -0
- package/dist/icons/control-mark-radiobutton.js +18 -0
- package/dist/icons/control-mark-radiobutton.js.map +1 -0
- package/dist/icons/icon-adult.cjs +14 -0
- package/dist/icons/icon-adult.cjs.map +1 -0
- package/dist/icons/icon-adult.d.cts +3 -0
- package/dist/icons/icon-adult.d.ts +3 -0
- package/dist/icons/icon-adult.js +14 -0
- package/dist/icons/icon-adult.js.map +1 -0
- package/dist/icons/icon-arrow-down.cjs +14 -0
- package/dist/icons/icon-arrow-down.cjs.map +1 -0
- package/dist/icons/icon-arrow-down.d.cts +3 -0
- package/dist/icons/icon-arrow-down.d.ts +3 -0
- package/dist/icons/icon-arrow-down.js +14 -0
- package/dist/icons/icon-arrow-down.js.map +1 -0
- package/dist/icons/icon-arrow-left.cjs +14 -0
- package/dist/icons/icon-arrow-left.cjs.map +1 -0
- package/dist/icons/icon-arrow-left.d.cts +3 -0
- package/dist/icons/icon-arrow-left.d.ts +3 -0
- package/dist/icons/icon-arrow-left.js +14 -0
- package/dist/icons/icon-arrow-left.js.map +1 -0
- package/dist/icons/icon-arrow-right.cjs +14 -0
- package/dist/icons/icon-arrow-right.cjs.map +1 -0
- package/dist/icons/icon-arrow-right.d.cts +3 -0
- package/dist/icons/icon-arrow-right.d.ts +3 -0
- package/dist/icons/icon-arrow-right.js +14 -0
- package/dist/icons/icon-arrow-right.js.map +1 -0
- package/dist/icons/icon-arrow-up.cjs +14 -0
- package/dist/icons/icon-arrow-up.cjs.map +1 -0
- package/dist/icons/icon-arrow-up.d.cts +3 -0
- package/dist/icons/icon-arrow-up.d.ts +3 -0
- package/dist/icons/icon-arrow-up.js +14 -0
- package/dist/icons/icon-arrow-up.js.map +1 -0
- package/dist/icons/icon-audio.cjs +14 -0
- package/dist/icons/icon-audio.cjs.map +1 -0
- package/dist/icons/icon-audio.d.cts +3 -0
- package/dist/icons/icon-audio.d.ts +3 -0
- package/dist/icons/icon-audio.js +14 -0
- package/dist/icons/icon-audio.js.map +1 -0
- package/dist/icons/icon-barchart.cjs +14 -0
- package/dist/icons/icon-barchart.cjs.map +1 -0
- package/dist/icons/icon-barchart.d.cts +3 -0
- package/dist/icons/icon-barchart.d.ts +3 -0
- package/dist/icons/icon-barchart.js +14 -0
- package/dist/icons/icon-barchart.js.map +1 -0
- package/dist/icons/icon-bell.cjs +14 -0
- package/dist/icons/icon-bell.cjs.map +1 -0
- package/dist/icons/icon-bell.d.cts +3 -0
- package/dist/icons/icon-bell.d.ts +3 -0
- package/dist/icons/icon-bell.js +14 -0
- package/dist/icons/icon-bell.js.map +1 -0
- package/dist/icons/icon-box.cjs +14 -0
- package/dist/icons/icon-box.cjs.map +1 -0
- package/dist/icons/icon-box.d.cts +3 -0
- package/dist/icons/icon-box.d.ts +3 -0
- package/dist/icons/icon-box.js +14 -0
- package/dist/icons/icon-box.js.map +1 -0
- package/dist/icons/icon-burger.cjs +14 -0
- package/dist/icons/icon-burger.cjs.map +1 -0
- package/dist/icons/icon-burger.d.cts +3 -0
- package/dist/icons/icon-burger.d.ts +3 -0
- package/dist/icons/icon-burger.js +14 -0
- package/dist/icons/icon-burger.js.map +1 -0
- package/dist/icons/icon-calendar.cjs +14 -0
- package/dist/icons/icon-calendar.cjs.map +1 -0
- package/dist/icons/icon-calendar.d.cts +3 -0
- package/dist/icons/icon-calendar.d.ts +3 -0
- package/dist/icons/icon-calendar.js +14 -0
- package/dist/icons/icon-calendar.js.map +1 -0
- package/dist/icons/icon-camera.cjs +14 -0
- package/dist/icons/icon-camera.cjs.map +1 -0
- package/dist/icons/icon-camera.d.cts +3 -0
- package/dist/icons/icon-camera.d.ts +3 -0
- package/dist/icons/icon-camera.js +14 -0
- package/dist/icons/icon-camera.js.map +1 -0
- package/dist/icons/icon-card.cjs +14 -0
- package/dist/icons/icon-card.cjs.map +1 -0
- package/dist/icons/icon-card.d.cts +3 -0
- package/dist/icons/icon-card.d.ts +3 -0
- package/dist/icons/icon-card.js +14 -0
- package/dist/icons/icon-card.js.map +1 -0
- package/dist/icons/icon-cart.cjs +14 -0
- package/dist/icons/icon-cart.cjs.map +1 -0
- package/dist/icons/icon-cart.d.cts +3 -0
- package/dist/icons/icon-cart.d.ts +3 -0
- package/dist/icons/icon-cart.js +14 -0
- package/dist/icons/icon-cart.js.map +1 -0
- package/dist/icons/icon-charmap.cjs +14 -0
- package/dist/icons/icon-charmap.cjs.map +1 -0
- package/dist/icons/icon-charmap.d.cts +3 -0
- package/dist/icons/icon-charmap.d.ts +3 -0
- package/dist/icons/icon-charmap.js +14 -0
- package/dist/icons/icon-charmap.js.map +1 -0
- package/dist/icons/icon-claim-full.cjs +14 -0
- package/dist/icons/icon-claim-full.cjs.map +1 -0
- package/dist/icons/icon-claim-full.d.cts +3 -0
- package/dist/icons/icon-claim-full.d.ts +3 -0
- package/dist/icons/icon-claim-full.js +14 -0
- package/dist/icons/icon-claim-full.js.map +1 -0
- package/dist/icons/icon-claim.cjs +14 -0
- package/dist/icons/icon-claim.cjs.map +1 -0
- package/dist/icons/icon-claim.d.cts +3 -0
- package/dist/icons/icon-claim.d.ts +3 -0
- package/dist/icons/icon-claim.js +14 -0
- package/dist/icons/icon-claim.js.map +1 -0
- package/dist/icons/icon-clock.cjs +14 -0
- package/dist/icons/icon-clock.cjs.map +1 -0
- package/dist/icons/icon-clock.d.cts +3 -0
- package/dist/icons/icon-clock.d.ts +3 -0
- package/dist/icons/icon-clock.js +14 -0
- package/dist/icons/icon-clock.js.map +1 -0
- package/dist/icons/icon-close.cjs +14 -0
- package/dist/icons/icon-close.cjs.map +1 -0
- package/dist/icons/icon-close.d.cts +3 -0
- package/dist/icons/icon-close.d.ts +3 -0
- package/dist/icons/icon-close.js +14 -0
- package/dist/icons/icon-close.js.map +1 -0
- package/dist/icons/icon-code.cjs +14 -0
- package/dist/icons/icon-code.cjs.map +1 -0
- package/dist/icons/icon-code.d.cts +3 -0
- package/dist/icons/icon-code.d.ts +3 -0
- package/dist/icons/icon-code.js +14 -0
- package/dist/icons/icon-code.js.map +1 -0
- package/dist/icons/icon-comment.cjs +14 -0
- package/dist/icons/icon-comment.cjs.map +1 -0
- package/dist/icons/icon-comment.d.cts +3 -0
- package/dist/icons/icon-comment.d.ts +3 -0
- package/dist/icons/icon-comment.js +14 -0
- package/dist/icons/icon-comment.js.map +1 -0
- package/dist/icons/icon-conveyor.cjs +14 -0
- package/dist/icons/icon-conveyor.cjs.map +1 -0
- package/dist/icons/icon-conveyor.d.cts +3 -0
- package/dist/icons/icon-conveyor.d.ts +3 -0
- package/dist/icons/icon-conveyor.js +14 -0
- package/dist/icons/icon-conveyor.js.map +1 -0
- package/dist/icons/icon-copy.cjs +14 -0
- package/dist/icons/icon-copy.cjs.map +1 -0
- package/dist/icons/icon-copy.d.cts +3 -0
- package/dist/icons/icon-copy.d.ts +3 -0
- package/dist/icons/icon-copy.js +14 -0
- package/dist/icons/icon-copy.js.map +1 -0
- package/dist/icons/icon-correct.cjs +14 -0
- package/dist/icons/icon-correct.cjs.map +1 -0
- package/dist/icons/icon-correct.d.cts +3 -0
- package/dist/icons/icon-correct.d.ts +3 -0
- package/dist/icons/icon-correct.js +14 -0
- package/dist/icons/icon-correct.js.map +1 -0
- package/dist/icons/icon-crop.cjs +14 -0
- package/dist/icons/icon-crop.cjs.map +1 -0
- package/dist/icons/icon-crop.d.cts +3 -0
- package/dist/icons/icon-crop.d.ts +3 -0
- package/dist/icons/icon-crop.js +14 -0
- package/dist/icons/icon-crop.js.map +1 -0
- package/dist/icons/icon-cross.cjs +14 -0
- package/dist/icons/icon-cross.cjs.map +1 -0
- package/dist/icons/icon-cross.d.cts +3 -0
- package/dist/icons/icon-cross.d.ts +3 -0
- package/dist/icons/icon-cross.js +14 -0
- package/dist/icons/icon-cross.js.map +1 -0
- package/dist/icons/icon-cycle.cjs +14 -0
- package/dist/icons/icon-cycle.cjs.map +1 -0
- package/dist/icons/icon-cycle.d.cts +3 -0
- package/dist/icons/icon-cycle.d.ts +3 -0
- package/dist/icons/icon-cycle.js +14 -0
- package/dist/icons/icon-cycle.js.map +1 -0
- package/dist/icons/icon-divide.cjs +14 -0
- package/dist/icons/icon-divide.cjs.map +1 -0
- package/dist/icons/icon-divide.d.cts +3 -0
- package/dist/icons/icon-divide.d.ts +3 -0
- package/dist/icons/icon-divide.js +14 -0
- package/dist/icons/icon-divide.js.map +1 -0
- package/dist/icons/icon-download.cjs +14 -0
- package/dist/icons/icon-download.cjs.map +1 -0
- package/dist/icons/icon-download.d.cts +3 -0
- package/dist/icons/icon-download.d.ts +3 -0
- package/dist/icons/icon-download.js +14 -0
- package/dist/icons/icon-download.js.map +1 -0
- package/dist/icons/icon-drop.cjs +14 -0
- package/dist/icons/icon-drop.cjs.map +1 -0
- package/dist/icons/icon-drop.d.cts +3 -0
- package/dist/icons/icon-drop.d.ts +3 -0
- package/dist/icons/icon-drop.js +14 -0
- package/dist/icons/icon-drop.js.map +1 -0
- package/dist/icons/icon-edit.cjs +14 -0
- package/dist/icons/icon-edit.cjs.map +1 -0
- package/dist/icons/icon-edit.d.cts +3 -0
- package/dist/icons/icon-edit.d.ts +3 -0
- package/dist/icons/icon-edit.js +14 -0
- package/dist/icons/icon-edit.js.map +1 -0
- package/dist/icons/icon-elama.cjs +25 -0
- package/dist/icons/icon-elama.cjs.map +1 -0
- package/dist/icons/icon-elama.d.cts +3 -0
- package/dist/icons/icon-elama.d.ts +3 -0
- package/dist/icons/icon-elama.js +25 -0
- package/dist/icons/icon-elama.js.map +1 -0
- package/dist/icons/icon-eraser.cjs +14 -0
- package/dist/icons/icon-eraser.cjs.map +1 -0
- package/dist/icons/icon-eraser.d.cts +3 -0
- package/dist/icons/icon-eraser.d.ts +3 -0
- package/dist/icons/icon-eraser.js +14 -0
- package/dist/icons/icon-eraser.js.map +1 -0
- package/dist/icons/icon-file.cjs +14 -0
- package/dist/icons/icon-file.cjs.map +1 -0
- package/dist/icons/icon-file.d.cts +3 -0
- package/dist/icons/icon-file.d.ts +3 -0
- package/dist/icons/icon-file.js +14 -0
- package/dist/icons/icon-file.js.map +1 -0
- package/dist/icons/icon-folder.cjs +14 -0
- package/dist/icons/icon-folder.cjs.map +1 -0
- package/dist/icons/icon-folder.d.cts +3 -0
- package/dist/icons/icon-folder.d.ts +3 -0
- package/dist/icons/icon-folder.js +14 -0
- package/dist/icons/icon-folder.js.map +1 -0
- package/dist/icons/icon-funnel.cjs +14 -0
- package/dist/icons/icon-funnel.cjs.map +1 -0
- package/dist/icons/icon-funnel.d.cts +3 -0
- package/dist/icons/icon-funnel.d.ts +3 -0
- package/dist/icons/icon-funnel.js +14 -0
- package/dist/icons/icon-funnel.js.map +1 -0
- package/dist/icons/icon-gallery-next.cjs +18 -0
- package/dist/icons/icon-gallery-next.cjs.map +1 -0
- package/dist/icons/icon-gallery-next.d.cts +3 -0
- package/dist/icons/icon-gallery-next.d.ts +3 -0
- package/dist/icons/icon-gallery-next.js +18 -0
- package/dist/icons/icon-gallery-next.js.map +1 -0
- package/dist/icons/icon-gallery-prev.cjs +14 -0
- package/dist/icons/icon-gallery-prev.cjs.map +1 -0
- package/dist/icons/icon-gallery-prev.d.cts +3 -0
- package/dist/icons/icon-gallery-prev.d.ts +3 -0
- package/dist/icons/icon-gallery-prev.js +14 -0
- package/dist/icons/icon-gallery-prev.js.map +1 -0
- package/dist/icons/icon-heart-full.cjs +14 -0
- package/dist/icons/icon-heart-full.cjs.map +1 -0
- package/dist/icons/icon-heart-full.d.cts +3 -0
- package/dist/icons/icon-heart-full.d.ts +3 -0
- package/dist/icons/icon-heart-full.js +14 -0
- package/dist/icons/icon-heart-full.js.map +1 -0
- package/dist/icons/icon-heart.cjs +14 -0
- package/dist/icons/icon-heart.cjs.map +1 -0
- package/dist/icons/icon-heart.d.cts +3 -0
- package/dist/icons/icon-heart.d.ts +3 -0
- package/dist/icons/icon-heart.js +14 -0
- package/dist/icons/icon-heart.js.map +1 -0
- package/dist/icons/icon-image.cjs +14 -0
- package/dist/icons/icon-image.cjs.map +1 -0
- package/dist/icons/icon-image.d.cts +3 -0
- package/dist/icons/icon-image.d.ts +3 -0
- package/dist/icons/icon-image.js +14 -0
- package/dist/icons/icon-image.js.map +1 -0
- package/dist/icons/icon-indicator-donut.cjs +14 -0
- package/dist/icons/icon-indicator-donut.cjs.map +1 -0
- package/dist/icons/icon-indicator-donut.d.cts +3 -0
- package/dist/icons/icon-indicator-donut.d.ts +3 -0
- package/dist/icons/icon-indicator-donut.js +14 -0
- package/dist/icons/icon-indicator-donut.js.map +1 -0
- package/dist/icons/icon-indicator-dot.cjs +18 -0
- package/dist/icons/icon-indicator-dot.cjs.map +1 -0
- package/dist/icons/icon-indicator-dot.d.cts +3 -0
- package/dist/icons/icon-indicator-dot.d.ts +3 -0
- package/dist/icons/icon-indicator-dot.js +18 -0
- package/dist/icons/icon-indicator-dot.js.map +1 -0
- package/dist/icons/icon-indicator-down.cjs +14 -0
- package/dist/icons/icon-indicator-down.cjs.map +1 -0
- package/dist/icons/icon-indicator-down.d.cts +3 -0
- package/dist/icons/icon-indicator-down.d.ts +3 -0
- package/dist/icons/icon-indicator-down.js +14 -0
- package/dist/icons/icon-indicator-down.js.map +1 -0
- package/dist/icons/icon-indicator-progress.cjs +18 -0
- package/dist/icons/icon-indicator-progress.cjs.map +1 -0
- package/dist/icons/icon-indicator-progress.d.cts +3 -0
- package/dist/icons/icon-indicator-progress.d.ts +3 -0
- package/dist/icons/icon-indicator-progress.js +18 -0
- package/dist/icons/icon-indicator-progress.js.map +1 -0
- package/dist/icons/icon-indicator-star-big.cjs +14 -0
- package/dist/icons/icon-indicator-star-big.cjs.map +1 -0
- package/dist/icons/icon-indicator-star-big.d.cts +3 -0
- package/dist/icons/icon-indicator-star-big.d.ts +3 -0
- package/dist/icons/icon-indicator-star-big.js +14 -0
- package/dist/icons/icon-indicator-star-big.js.map +1 -0
- package/dist/icons/icon-indicator-star.cjs +14 -0
- package/dist/icons/icon-indicator-star.cjs.map +1 -0
- package/dist/icons/icon-indicator-star.d.cts +3 -0
- package/dist/icons/icon-indicator-star.d.ts +3 -0
- package/dist/icons/icon-indicator-star.js +14 -0
- package/dist/icons/icon-indicator-star.js.map +1 -0
- package/dist/icons/icon-indicator-tick.cjs +14 -0
- package/dist/icons/icon-indicator-tick.cjs.map +1 -0
- package/dist/icons/icon-indicator-tick.d.cts +3 -0
- package/dist/icons/icon-indicator-tick.d.ts +3 -0
- package/dist/icons/icon-indicator-tick.js +14 -0
- package/dist/icons/icon-indicator-tick.js.map +1 -0
- package/dist/icons/icon-indicator-up.cjs +14 -0
- package/dist/icons/icon-indicator-up.cjs.map +1 -0
- package/dist/icons/icon-indicator-up.d.cts +3 -0
- package/dist/icons/icon-indicator-up.d.ts +3 -0
- package/dist/icons/icon-indicator-up.js +14 -0
- package/dist/icons/icon-indicator-up.js.map +1 -0
- package/dist/icons/icon-info.cjs +14 -0
- package/dist/icons/icon-info.cjs.map +1 -0
- package/dist/icons/icon-info.d.cts +3 -0
- package/dist/icons/icon-info.d.ts +3 -0
- package/dist/icons/icon-info.js +14 -0
- package/dist/icons/icon-info.js.map +1 -0
- package/dist/icons/icon-instagram.cjs +14 -0
- package/dist/icons/icon-instagram.cjs.map +1 -0
- package/dist/icons/icon-instagram.d.cts +3 -0
- package/dist/icons/icon-instagram.d.ts +3 -0
- package/dist/icons/icon-instagram.js +14 -0
- package/dist/icons/icon-instagram.js.map +1 -0
- package/dist/icons/icon-key.cjs +14 -0
- package/dist/icons/icon-key.cjs.map +1 -0
- package/dist/icons/icon-key.d.cts +3 -0
- package/dist/icons/icon-key.d.ts +3 -0
- package/dist/icons/icon-key.js +14 -0
- package/dist/icons/icon-key.js.map +1 -0
- package/dist/icons/icon-label-ozon.cjs +30 -0
- package/dist/icons/icon-label-ozon.cjs.map +1 -0
- package/dist/icons/icon-label-ozon.d.cts +3 -0
- package/dist/icons/icon-label-ozon.d.ts +3 -0
- package/dist/icons/icon-label-ozon.js +30 -0
- package/dist/icons/icon-label-ozon.js.map +1 -0
- package/dist/icons/icon-label-wildberries.cjs +36 -0
- package/dist/icons/icon-label-wildberries.cjs.map +1 -0
- package/dist/icons/icon-label-wildberries.d.cts +3 -0
- package/dist/icons/icon-label-wildberries.d.ts +3 -0
- package/dist/icons/icon-label-wildberries.js +36 -0
- package/dist/icons/icon-label-wildberries.js.map +1 -0
- package/dist/icons/icon-label-yandex.cjs +21 -0
- package/dist/icons/icon-label-yandex.cjs.map +1 -0
- package/dist/icons/icon-label-yandex.d.cts +3 -0
- package/dist/icons/icon-label-yandex.d.ts +3 -0
- package/dist/icons/icon-label-yandex.js +21 -0
- package/dist/icons/icon-label-yandex.js.map +1 -0
- package/dist/icons/icon-link.cjs +14 -0
- package/dist/icons/icon-link.cjs.map +1 -0
- package/dist/icons/icon-link.d.cts +3 -0
- package/dist/icons/icon-link.d.ts +3 -0
- package/dist/icons/icon-link.js +14 -0
- package/dist/icons/icon-link.js.map +1 -0
- package/dist/icons/icon-list-ordered.cjs +14 -0
- package/dist/icons/icon-list-ordered.cjs.map +1 -0
- package/dist/icons/icon-list-ordered.d.cts +3 -0
- package/dist/icons/icon-list-ordered.d.ts +3 -0
- package/dist/icons/icon-list-ordered.js +14 -0
- package/dist/icons/icon-list-ordered.js.map +1 -0
- package/dist/icons/icon-list-unordered.cjs +14 -0
- package/dist/icons/icon-list-unordered.cjs.map +1 -0
- package/dist/icons/icon-list-unordered.d.cts +3 -0
- package/dist/icons/icon-list-unordered.d.ts +3 -0
- package/dist/icons/icon-list-unordered.js +14 -0
- package/dist/icons/icon-list-unordered.js.map +1 -0
- package/dist/icons/icon-lock.cjs +18 -0
- package/dist/icons/icon-lock.cjs.map +1 -0
- package/dist/icons/icon-lock.d.cts +3 -0
- package/dist/icons/icon-lock.d.ts +3 -0
- package/dist/icons/icon-lock.js +18 -0
- package/dist/icons/icon-lock.js.map +1 -0
- package/dist/icons/icon-magic.cjs +14 -0
- package/dist/icons/icon-magic.cjs.map +1 -0
- package/dist/icons/icon-magic.d.cts +3 -0
- package/dist/icons/icon-magic.d.ts +3 -0
- package/dist/icons/icon-magic.js +14 -0
- package/dist/icons/icon-magic.js.map +1 -0
- package/dist/icons/icon-mail.cjs +14 -0
- package/dist/icons/icon-mail.cjs.map +1 -0
- package/dist/icons/icon-mail.d.cts +3 -0
- package/dist/icons/icon-mail.d.ts +3 -0
- package/dist/icons/icon-mail.js +14 -0
- package/dist/icons/icon-mail.js.map +1 -0
- package/dist/icons/icon-minus.cjs +14 -0
- package/dist/icons/icon-minus.cjs.map +1 -0
- package/dist/icons/icon-minus.d.cts +3 -0
- package/dist/icons/icon-minus.d.ts +3 -0
- package/dist/icons/icon-minus.js +14 -0
- package/dist/icons/icon-minus.js.map +1 -0
- package/dist/icons/icon-multiselect.cjs +14 -0
- package/dist/icons/icon-multiselect.cjs.map +1 -0
- package/dist/icons/icon-multiselect.d.cts +3 -0
- package/dist/icons/icon-multiselect.d.ts +3 -0
- package/dist/icons/icon-multiselect.js +14 -0
- package/dist/icons/icon-multiselect.js.map +1 -0
- package/dist/icons/icon-newwindow.cjs +14 -0
- package/dist/icons/icon-newwindow.cjs.map +1 -0
- package/dist/icons/icon-newwindow.d.cts +3 -0
- package/dist/icons/icon-newwindow.d.ts +3 -0
- package/dist/icons/icon-newwindow.js +14 -0
- package/dist/icons/icon-newwindow.js.map +1 -0
- package/dist/icons/icon-options.cjs +14 -0
- package/dist/icons/icon-options.cjs.map +1 -0
- package/dist/icons/icon-options.d.cts +3 -0
- package/dist/icons/icon-options.d.ts +3 -0
- package/dist/icons/icon-options.js +14 -0
- package/dist/icons/icon-options.js.map +1 -0
- package/dist/icons/icon-ozon.cjs +14 -0
- package/dist/icons/icon-ozon.cjs.map +1 -0
- package/dist/icons/icon-ozon.d.cts +3 -0
- package/dist/icons/icon-ozon.d.ts +3 -0
- package/dist/icons/icon-ozon.js +14 -0
- package/dist/icons/icon-ozon.js.map +1 -0
- package/dist/icons/icon-piechart.cjs +14 -0
- package/dist/icons/icon-piechart.cjs.map +1 -0
- package/dist/icons/icon-piechart.d.cts +3 -0
- package/dist/icons/icon-piechart.d.ts +3 -0
- package/dist/icons/icon-piechart.js +14 -0
- package/dist/icons/icon-piechart.js.map +1 -0
- package/dist/icons/icon-plus.cjs +14 -0
- package/dist/icons/icon-plus.cjs.map +1 -0
- package/dist/icons/icon-plus.d.cts +3 -0
- package/dist/icons/icon-plus.d.ts +3 -0
- package/dist/icons/icon-plus.js +14 -0
- package/dist/icons/icon-plus.js.map +1 -0
- package/dist/icons/icon-preview.cjs +14 -0
- package/dist/icons/icon-preview.cjs.map +1 -0
- package/dist/icons/icon-preview.d.cts +3 -0
- package/dist/icons/icon-preview.d.ts +3 -0
- package/dist/icons/icon-preview.js +14 -0
- package/dist/icons/icon-preview.js.map +1 -0
- package/dist/icons/icon-regulator.cjs +14 -0
- package/dist/icons/icon-regulator.cjs.map +1 -0
- package/dist/icons/icon-regulator.d.cts +3 -0
- package/dist/icons/icon-regulator.d.ts +3 -0
- package/dist/icons/icon-regulator.js +14 -0
- package/dist/icons/icon-regulator.js.map +1 -0
- package/dist/icons/icon-rotate-90-ccw.cjs +14 -0
- package/dist/icons/icon-rotate-90-ccw.cjs.map +1 -0
- package/dist/icons/icon-rotate-90-ccw.d.cts +3 -0
- package/dist/icons/icon-rotate-90-ccw.d.ts +3 -0
- package/dist/icons/icon-rotate-90-ccw.js +14 -0
- package/dist/icons/icon-rotate-90-ccw.js.map +1 -0
- package/dist/icons/icon-screen-big.cjs +14 -0
- package/dist/icons/icon-screen-big.cjs.map +1 -0
- package/dist/icons/icon-screen-big.d.cts +3 -0
- package/dist/icons/icon-screen-big.d.ts +3 -0
- package/dist/icons/icon-screen-big.js +14 -0
- package/dist/icons/icon-screen-big.js.map +1 -0
- package/dist/icons/icon-screen-small.cjs +14 -0
- package/dist/icons/icon-screen-small.cjs.map +1 -0
- package/dist/icons/icon-screen-small.d.cts +3 -0
- package/dist/icons/icon-screen-small.d.ts +3 -0
- package/dist/icons/icon-screen-small.js +14 -0
- package/dist/icons/icon-screen-small.js.map +1 -0
- package/dist/icons/icon-search.cjs +14 -0
- package/dist/icons/icon-search.cjs.map +1 -0
- package/dist/icons/icon-search.d.cts +3 -0
- package/dist/icons/icon-search.d.ts +3 -0
- package/dist/icons/icon-search.js +14 -0
- package/dist/icons/icon-search.js.map +1 -0
- package/dist/icons/icon-shield.cjs +14 -0
- package/dist/icons/icon-shield.cjs.map +1 -0
- package/dist/icons/icon-shield.d.cts +3 -0
- package/dist/icons/icon-shield.d.ts +3 -0
- package/dist/icons/icon-shield.js +14 -0
- package/dist/icons/icon-shield.js.map +1 -0
- package/dist/icons/icon-sms-code.cjs +14 -0
- package/dist/icons/icon-sms-code.cjs.map +1 -0
- package/dist/icons/icon-sms-code.d.cts +3 -0
- package/dist/icons/icon-sms-code.d.ts +3 -0
- package/dist/icons/icon-sms-code.js +14 -0
- package/dist/icons/icon-sms-code.js.map +1 -0
- package/dist/icons/icon-sort.cjs +14 -0
- package/dist/icons/icon-sort.cjs.map +1 -0
- package/dist/icons/icon-sort.d.cts +3 -0
- package/dist/icons/icon-sort.d.ts +3 -0
- package/dist/icons/icon-sort.js +14 -0
- package/dist/icons/icon-sort.js.map +1 -0
- package/dist/icons/icon-spinner.cjs +44 -0
- package/dist/icons/icon-spinner.cjs.map +1 -0
- package/dist/icons/icon-spinner.d.cts +3 -0
- package/dist/icons/icon-spinner.d.ts +3 -0
- package/dist/icons/icon-spinner.js +44 -0
- package/dist/icons/icon-spinner.js.map +1 -0
- package/dist/icons/icon-star.cjs +14 -0
- package/dist/icons/icon-star.cjs.map +1 -0
- package/dist/icons/icon-star.d.cts +3 -0
- package/dist/icons/icon-star.d.ts +3 -0
- package/dist/icons/icon-star.js +14 -0
- package/dist/icons/icon-star.js.map +1 -0
- package/dist/icons/icon-switch-off.cjs +14 -0
- package/dist/icons/icon-switch-off.cjs.map +1 -0
- package/dist/icons/icon-switch-off.d.cts +3 -0
- package/dist/icons/icon-switch-off.d.ts +3 -0
- package/dist/icons/icon-switch-off.js +14 -0
- package/dist/icons/icon-switch-off.js.map +1 -0
- package/dist/icons/icon-switch-on.cjs +14 -0
- package/dist/icons/icon-switch-on.cjs.map +1 -0
- package/dist/icons/icon-switch-on.d.cts +3 -0
- package/dist/icons/icon-switch-on.d.ts +3 -0
- package/dist/icons/icon-switch-on.js +14 -0
- package/dist/icons/icon-switch-on.js.map +1 -0
- package/dist/icons/icon-table.cjs +14 -0
- package/dist/icons/icon-table.cjs.map +1 -0
- package/dist/icons/icon-table.d.cts +3 -0
- package/dist/icons/icon-table.d.ts +3 -0
- package/dist/icons/icon-table.js +14 -0
- package/dist/icons/icon-table.js.map +1 -0
- package/dist/icons/icon-telegram.cjs +14 -0
- package/dist/icons/icon-telegram.cjs.map +1 -0
- package/dist/icons/icon-telegram.d.cts +3 -0
- package/dist/icons/icon-telegram.d.ts +3 -0
- package/dist/icons/icon-telegram.js +14 -0
- package/dist/icons/icon-telegram.js.map +1 -0
- package/dist/icons/icon-text.cjs +14 -0
- package/dist/icons/icon-text.cjs.map +1 -0
- package/dist/icons/icon-text.d.cts +3 -0
- package/dist/icons/icon-text.d.ts +3 -0
- package/dist/icons/icon-text.js +14 -0
- package/dist/icons/icon-text.js.map +1 -0
- package/dist/icons/icon-trash.cjs +14 -0
- package/dist/icons/icon-trash.cjs.map +1 -0
- package/dist/icons/icon-trash.d.cts +3 -0
- package/dist/icons/icon-trash.d.ts +3 -0
- package/dist/icons/icon-trash.js +14 -0
- package/dist/icons/icon-trash.js.map +1 -0
- package/dist/icons/icon-typograph.cjs +14 -0
- package/dist/icons/icon-typograph.cjs.map +1 -0
- package/dist/icons/icon-typograph.d.cts +3 -0
- package/dist/icons/icon-typograph.d.ts +3 -0
- package/dist/icons/icon-typograph.js +14 -0
- package/dist/icons/icon-typograph.js.map +1 -0
- package/dist/icons/icon-undo.cjs +14 -0
- package/dist/icons/icon-undo.cjs.map +1 -0
- package/dist/icons/icon-undo.d.cts +3 -0
- package/dist/icons/icon-undo.d.ts +3 -0
- package/dist/icons/icon-undo.js +14 -0
- package/dist/icons/icon-undo.js.map +1 -0
- package/dist/icons/icon-unite.cjs +14 -0
- package/dist/icons/icon-unite.cjs.map +1 -0
- package/dist/icons/icon-unite.d.cts +3 -0
- package/dist/icons/icon-unite.d.ts +3 -0
- package/dist/icons/icon-unite.js +14 -0
- package/dist/icons/icon-unite.js.map +1 -0
- package/dist/icons/icon-unlink.cjs +14 -0
- package/dist/icons/icon-unlink.cjs.map +1 -0
- package/dist/icons/icon-unlink.d.cts +3 -0
- package/dist/icons/icon-unlink.d.ts +3 -0
- package/dist/icons/icon-unlink.js +14 -0
- package/dist/icons/icon-unlink.js.map +1 -0
- package/dist/icons/icon-upload.cjs +14 -0
- package/dist/icons/icon-upload.cjs.map +1 -0
- package/dist/icons/icon-upload.d.cts +3 -0
- package/dist/icons/icon-upload.d.ts +3 -0
- package/dist/icons/icon-upload.js +14 -0
- package/dist/icons/icon-upload.js.map +1 -0
- package/dist/icons/icon-user.cjs +14 -0
- package/dist/icons/icon-user.cjs.map +1 -0
- package/dist/icons/icon-user.d.cts +3 -0
- package/dist/icons/icon-user.d.ts +3 -0
- package/dist/icons/icon-user.js +14 -0
- package/dist/icons/icon-user.js.map +1 -0
- package/dist/icons/icon-video.cjs +14 -0
- package/dist/icons/icon-video.cjs.map +1 -0
- package/dist/icons/icon-video.d.cts +3 -0
- package/dist/icons/icon-video.d.ts +3 -0
- package/dist/icons/icon-video.js +14 -0
- package/dist/icons/icon-video.js.map +1 -0
- package/dist/icons/icon-vk.cjs +14 -0
- package/dist/icons/icon-vk.cjs.map +1 -0
- package/dist/icons/icon-vk.d.cts +3 -0
- package/dist/icons/icon-vk.d.ts +3 -0
- package/dist/icons/icon-vk.js +14 -0
- package/dist/icons/icon-vk.js.map +1 -0
- package/dist/icons/icon-youtube.cjs +14 -0
- package/dist/icons/icon-youtube.cjs.map +1 -0
- package/dist/icons/icon-youtube.d.cts +3 -0
- package/dist/icons/icon-youtube.d.ts +3 -0
- package/dist/icons/icon-youtube.js +14 -0
- package/dist/icons/icon-youtube.js.map +1 -0
- package/dist/icons/illustration-test-best.cjs +128 -0
- package/dist/icons/illustration-test-best.cjs.map +1 -0
- package/dist/icons/illustration-test-best.d.cts +3 -0
- package/dist/icons/illustration-test-best.d.ts +3 -0
- package/dist/icons/illustration-test-best.js +128 -0
- package/dist/icons/illustration-test-best.js.map +1 -0
- package/dist/icons/illustration-test-heatmap.cjs +97 -0
- package/dist/icons/illustration-test-heatmap.cjs.map +1 -0
- package/dist/icons/illustration-test-heatmap.d.cts +3 -0
- package/dist/icons/illustration-test-heatmap.d.ts +3 -0
- package/dist/icons/illustration-test-heatmap.js +97 -0
- package/dist/icons/illustration-test-heatmap.js.map +1 -0
- package/dist/icons/illustration-test-multiple.cjs +275 -0
- package/dist/icons/illustration-test-multiple.cjs.map +1 -0
- package/dist/icons/illustration-test-multiple.d.cts +3 -0
- package/dist/icons/illustration-test-multiple.d.ts +3 -0
- package/dist/icons/illustration-test-multiple.js +275 -0
- package/dist/icons/illustration-test-multiple.js.map +1 -0
- package/dist/icons/illustration-test-one.cjs +243 -0
- package/dist/icons/illustration-test-one.cjs.map +1 -0
- package/dist/icons/illustration-test-one.d.cts +3 -0
- package/dist/icons/illustration-test-one.d.ts +3 -0
- package/dist/icons/illustration-test-one.js +243 -0
- package/dist/icons/illustration-test-one.js.map +1 -0
- package/dist/icons/illustration-test-order.cjs +167 -0
- package/dist/icons/illustration-test-order.cjs.map +1 -0
- package/dist/icons/illustration-test-order.d.cts +3 -0
- package/dist/icons/illustration-test-order.d.ts +3 -0
- package/dist/icons/illustration-test-order.js +167 -0
- package/dist/icons/illustration-test-order.js.map +1 -0
- package/dist/icons/illustration-test-quest.cjs +271 -0
- package/dist/icons/illustration-test-quest.cjs.map +1 -0
- package/dist/icons/illustration-test-quest.d.cts +3 -0
- package/dist/icons/illustration-test-quest.d.ts +3 -0
- package/dist/icons/illustration-test-quest.js +271 -0
- package/dist/icons/illustration-test-quest.js.map +1 -0
- package/dist/icons/illustration-test-question.cjs +272 -0
- package/dist/icons/illustration-test-question.cjs.map +1 -0
- package/dist/icons/illustration-test-question.d.cts +3 -0
- package/dist/icons/illustration-test-question.d.ts +3 -0
- package/dist/icons/illustration-test-question.js +272 -0
- package/dist/icons/illustration-test-question.js.map +1 -0
- package/dist/icons/illustration-test-stars.cjs +332 -0
- package/dist/icons/illustration-test-stars.cjs.map +1 -0
- package/dist/icons/illustration-test-stars.d.cts +3 -0
- package/dist/icons/illustration-test-stars.d.ts +3 -0
- package/dist/icons/illustration-test-stars.js +332 -0
- package/dist/icons/illustration-test-stars.js.map +1 -0
- package/dist/icons/illustration-test-tournament.cjs +157 -0
- package/dist/icons/illustration-test-tournament.cjs.map +1 -0
- package/dist/icons/illustration-test-tournament.d.cts +3 -0
- package/dist/icons/illustration-test-tournament.d.ts +3 -0
- package/dist/icons/illustration-test-tournament.js +157 -0
- package/dist/icons/illustration-test-tournament.js.map +1 -0
- package/dist/icons/index.cjs +225 -0
- package/dist/icons/index.d.cts +114 -0
- package/dist/icons/index.d.ts +114 -0
- package/dist/icons/index.js +113 -0
- package/dist/icons/logo-mastercard.cjs +13 -0
- package/dist/icons/logo-mastercard.cjs.map +1 -0
- package/dist/icons/logo-mastercard.d.cts +3 -0
- package/dist/icons/logo-mastercard.d.ts +3 -0
- package/dist/icons/logo-mastercard.js +13 -0
- package/dist/icons/logo-mastercard.js.map +1 -0
- package/dist/icons/logo-mir.cjs +13 -0
- package/dist/icons/logo-mir.cjs.map +1 -0
- package/dist/icons/logo-mir.d.cts +3 -0
- package/dist/icons/logo-mir.d.ts +3 -0
- package/dist/icons/logo-mir.js +13 -0
- package/dist/icons/logo-mir.js.map +1 -0
- package/dist/icons/logo-paykeeper.cjs +13 -0
- package/dist/icons/logo-paykeeper.cjs.map +1 -0
- package/dist/icons/logo-paykeeper.d.cts +3 -0
- package/dist/icons/logo-paykeeper.d.ts +3 -0
- package/dist/icons/logo-paykeeper.js +13 -0
- package/dist/icons/logo-paykeeper.js.map +1 -0
- package/dist/icons/logo-splittest-ru.cjs +24 -0
- package/dist/icons/logo-splittest-ru.cjs.map +1 -0
- package/dist/icons/logo-splittest-ru.d.cts +3 -0
- package/dist/icons/logo-splittest-ru.d.ts +3 -0
- package/dist/icons/logo-splittest-ru.js +24 -0
- package/dist/icons/logo-splittest-ru.js.map +1 -0
- package/dist/icons/logo-splittest.cjs +24 -0
- package/dist/icons/logo-splittest.cjs.map +1 -0
- package/dist/icons/logo-splittest.d.cts +3 -0
- package/dist/icons/logo-splittest.d.ts +3 -0
- package/dist/icons/logo-splittest.js +24 -0
- package/dist/icons/logo-splittest.js.map +1 -0
- package/dist/icons/logo-unionpay.cjs +13 -0
- package/dist/icons/logo-unionpay.cjs.map +1 -0
- package/dist/icons/logo-unionpay.d.cts +3 -0
- package/dist/icons/logo-unionpay.d.ts +3 -0
- package/dist/icons/logo-unionpay.js +13 -0
- package/dist/icons/logo-unionpay.js.map +1 -0
- package/dist/icons/logo-visa.cjs +13 -0
- package/dist/icons/logo-visa.cjs.map +1 -0
- package/dist/icons/logo-visa.d.cts +3 -0
- package/dist/icons/logo-visa.d.ts +3 -0
- package/dist/icons/logo-visa.js +13 -0
- package/dist/icons/logo-visa.js.map +1 -0
- package/dist/icons/svg.cjs +17 -0
- package/dist/icons/svg.cjs.map +1 -0
- package/dist/icons/svg.d.cts +5 -0
- package/dist/icons/svg.d.ts +5 -0
- package/dist/icons/svg.js +17 -0
- package/dist/icons/svg.js.map +1 -0
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/package.json +16 -5
package/README.md
CHANGED
|
@@ -17,6 +17,17 @@ import {
|
|
|
17
17
|
} from '@de-kit/st-ui';
|
|
18
18
|
```
|
|
19
19
|
|
|
20
|
+
Иконки — отдельный вход, в бандл попадают только импортированные:
|
|
21
|
+
|
|
22
|
+
```tsx
|
|
23
|
+
import { IconClose, LogoVisa } from '@de-kit/st-ui/icons';
|
|
24
|
+
|
|
25
|
+
<IconClose />
|
|
26
|
+
<IconClose width={16} height={16} aria-label="Закрыть" />
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
`icon_*` и `control_*` — 20×20 и `currentColor` (галерея 20×40). Размер меняется пропом `width`/`height` или CSS, он перекрывает дефолт. `icon_label-*` сохраняют заливку. `logo_*` и `illustration_*` — размер из SVG, у иллюстраций чёрный stroke заменён на `currentColor`. Новый svg кладётся в `src/icons/svg`, дальше `pnpm build:icons` (его же зовут `dev` и `build`).
|
|
30
|
+
|
|
20
31
|
`global.scss` — база приложения (body, заголовки, таблицы, `.wrapper`). В чужой странице его не подключать. Шрифт Inter библиотека не везёт, его по-прежнему грузит фронтенд.
|
|
21
32
|
|
|
22
33
|
Токены подключаются один раз вместе с пакетом (`import './styles/vars.scss'` в `src/index.ts`). В своих scss это обычные `var()`, `@use` не нужен. `@use '@de-kit/st-ui/vars.scss'` — только если стили собираются без JS. Миксины отдельно:
|
|
@@ -41,6 +52,9 @@ import {
|
|
|
41
52
|
<Button size="sm">Маленькая</Button>
|
|
42
53
|
<Button size="lg">Крупная</Button>
|
|
43
54
|
<Button fullWidth>Дальше</Button>
|
|
55
|
+
<Button icon="back">Назад</Button>
|
|
56
|
+
<Button icon="forward">Дальше</Button>
|
|
57
|
+
<Button loading>Сохранение</Button>
|
|
44
58
|
```
|
|
45
59
|
|
|
46
60
|
| Prop | По умолчанию | |
|
|
@@ -49,6 +63,8 @@ import {
|
|
|
49
63
|
| `size` | `md` | `sm` компактная, `md` обычная, `lg` крупная |
|
|
50
64
|
| `fullWidth` | `false` | ширина 100%, не зависит от `size` |
|
|
51
65
|
| `href` | — | рендер `<a>`, не `<Link>` |
|
|
66
|
+
| `icon` | — | `back` стрелка слева, `forward` справа |
|
|
67
|
+
| `loading` | `false` | спиннер на месте стрелки, клик не проходит |
|
|
52
68
|
|
|
53
69
|
`variant="link"` — это вид кнопки (`font-weight: 400`), не тип элемента. Ссылка — отдельный проп `href`.
|
|
54
70
|
|
|
@@ -1,15 +1,44 @@
|
|
|
1
|
+
const require_icon_arrow_left = require("../../icons/icon-arrow-left.cjs");
|
|
2
|
+
const require_icon_arrow_right = require("../../icons/icon-arrow-right.cjs");
|
|
3
|
+
const require_icon_spinner = require("../../icons/icon-spinner.cjs");
|
|
1
4
|
const require_cn = require("../../lib/cn.cjs");
|
|
2
5
|
let react = require("react");
|
|
3
|
-
require("./button.scss");
|
|
4
6
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
7
|
+
require("./button.scss");
|
|
5
8
|
// src/components/button/button.tsx
|
|
6
9
|
const styleKeys = [
|
|
7
10
|
"variant",
|
|
8
11
|
"size",
|
|
9
12
|
"fullWidth",
|
|
13
|
+
"icon",
|
|
14
|
+
"loading",
|
|
10
15
|
"className"
|
|
11
16
|
];
|
|
12
|
-
const
|
|
17
|
+
const iconSize = {
|
|
18
|
+
sm: 16,
|
|
19
|
+
md: 20,
|
|
20
|
+
lg: 24
|
|
21
|
+
};
|
|
22
|
+
const getClassName = ({ variant = "default", size = "md", fullWidth = false, loading = false, className, disabled }) => require_cn.cn("button", className, `button--${variant}`, `button--${size}`, require_cn.when(fullWidth, "button--full-width"), require_cn.when(disabled, "button--disabled"), require_cn.when(loading, "button--loading"));
|
|
23
|
+
const renderGlyph = (icon, loading, size) => {
|
|
24
|
+
const px = iconSize[size];
|
|
25
|
+
if (loading) return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_icon_spinner.IconSpinner, {
|
|
26
|
+
className: "button__icon button__icon--spin",
|
|
27
|
+
width: px,
|
|
28
|
+
height: px
|
|
29
|
+
});
|
|
30
|
+
if (icon === "back") return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_icon_arrow_left.IconArrowLeft, {
|
|
31
|
+
className: "button__icon",
|
|
32
|
+
width: px,
|
|
33
|
+
height: px
|
|
34
|
+
});
|
|
35
|
+
if (icon === "forward") return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_icon_arrow_right.IconArrowRight, {
|
|
36
|
+
className: "button__icon",
|
|
37
|
+
width: px,
|
|
38
|
+
height: px
|
|
39
|
+
});
|
|
40
|
+
return null;
|
|
41
|
+
};
|
|
13
42
|
const omitStyleProps = (props) => {
|
|
14
43
|
const next = {};
|
|
15
44
|
const skipped = new Set(styleKeys);
|
|
@@ -17,18 +46,40 @@ const omitStyleProps = (props) => {
|
|
|
17
46
|
return next;
|
|
18
47
|
};
|
|
19
48
|
const Button = (0, react.forwardRef)(function Button(props, ref) {
|
|
49
|
+
const size = props.size ?? "md";
|
|
50
|
+
const { icon, loading } = props;
|
|
20
51
|
const className = getClassName(props);
|
|
21
52
|
const { children, href, ...domProps } = omitStyleProps(props);
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
});
|
|
53
|
+
const glyph = renderGlyph(icon, loading, size);
|
|
54
|
+
const before = icon !== "forward";
|
|
55
|
+
const content = /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [
|
|
56
|
+
before ? glyph : null,
|
|
57
|
+
children,
|
|
58
|
+
before ? null : glyph
|
|
59
|
+
] });
|
|
60
|
+
if (typeof href === "string") {
|
|
61
|
+
const { onClick, ...anchorProps } = domProps;
|
|
62
|
+
const handleClick = (event) => {
|
|
63
|
+
if (loading) {
|
|
64
|
+
event.preventDefault();
|
|
65
|
+
return;
|
|
66
|
+
}
|
|
67
|
+
onClick?.(event);
|
|
68
|
+
};
|
|
69
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("a", {
|
|
70
|
+
ref,
|
|
71
|
+
href,
|
|
72
|
+
className,
|
|
73
|
+
...anchorProps,
|
|
74
|
+
"aria-busy": loading || void 0,
|
|
75
|
+
"aria-disabled": loading || void 0,
|
|
76
|
+
onClick: handleClick,
|
|
77
|
+
children: content
|
|
78
|
+
});
|
|
79
|
+
}
|
|
29
80
|
const { type = "button", disabled, onClick, ...buttonProps } = domProps;
|
|
30
81
|
const handleClick = (event) => {
|
|
31
|
-
if (disabled) return;
|
|
82
|
+
if (disabled || loading) return;
|
|
32
83
|
onClick?.(event);
|
|
33
84
|
};
|
|
34
85
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
|
|
@@ -36,9 +87,10 @@ const Button = (0, react.forwardRef)(function Button(props, ref) {
|
|
|
36
87
|
className,
|
|
37
88
|
type,
|
|
38
89
|
disabled,
|
|
39
|
-
onClick: handleClick,
|
|
40
90
|
...buttonProps,
|
|
41
|
-
|
|
91
|
+
"aria-busy": loading || void 0,
|
|
92
|
+
onClick: handleClick,
|
|
93
|
+
children: content
|
|
42
94
|
});
|
|
43
95
|
});
|
|
44
96
|
exports.Button = Button;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"button.cjs","names":["cn","when","forwardRef"],"sources":["../../../src/components/button/button.tsx"],"sourcesContent":["import {\n forwardRef,\n type AnchorHTMLAttributes,\n type ButtonHTMLAttributes,\n type MouseEventHandler,\n type ReactNode,\n type Ref,\n} from 'react';\n\nimport { cn, when } from '../../lib/cn';\nimport './button.scss';\n\nexport type ButtonVariant = 'default' | 'outline' | 'link';\nexport type ButtonSize = 'sm' | 'md' | 'lg';\n\ninterface ButtonStyleProps {\n variant?: ButtonVariant;\n size?: ButtonSize;\n fullWidth?: boolean;\n className?: string;\n children?: ReactNode;\n}\n\nexport interface ButtonProps\n extends ButtonHTMLAttributes<HTMLButtonElement>, ButtonStyleProps {\n href?: undefined;\n}\n\nexport interface ButtonLinkProps\n extends\n Omit<AnchorHTMLAttributes<HTMLAnchorElement>, 'href'>,\n ButtonStyleProps {\n href: string;\n}\n\nexport type ButtonComponentProps = ButtonProps | ButtonLinkProps;\n\nconst styleKeys = ['variant'
|
|
1
|
+
{"version":3,"file":"button.cjs","names":["cn","when","IconSpinner","IconArrowLeft","IconArrowRight","forwardRef"],"sources":["../../../src/components/button/button.tsx"],"sourcesContent":["import {\n forwardRef,\n type AnchorHTMLAttributes,\n type ButtonHTMLAttributes,\n type MouseEventHandler,\n type ReactNode,\n type Ref,\n} from 'react';\n\nimport { IconArrowLeft } from '../../icons/icon-arrow-left';\nimport { IconArrowRight } from '../../icons/icon-arrow-right';\nimport { IconSpinner } from '../../icons/icon-spinner';\nimport { cn, when } from '../../lib/cn';\nimport './button.scss';\n\nexport type ButtonVariant = 'default' | 'outline' | 'link';\nexport type ButtonSize = 'sm' | 'md' | 'lg';\nexport type ButtonIcon = 'back' | 'forward';\n\ninterface ButtonStyleProps {\n variant?: ButtonVariant;\n size?: ButtonSize;\n fullWidth?: boolean;\n icon?: ButtonIcon;\n loading?: boolean;\n className?: string;\n children?: ReactNode;\n}\n\nexport interface ButtonProps\n extends ButtonHTMLAttributes<HTMLButtonElement>, ButtonStyleProps {\n href?: undefined;\n}\n\nexport interface ButtonLinkProps\n extends\n Omit<AnchorHTMLAttributes<HTMLAnchorElement>, 'href'>,\n ButtonStyleProps {\n href: string;\n}\n\nexport type ButtonComponentProps = ButtonProps | ButtonLinkProps;\n\nconst styleKeys = [\n 'variant',\n 'size',\n 'fullWidth',\n 'icon',\n 'loading',\n 'className',\n] as const;\n\nconst iconSize = {\n sm: 16,\n md: 20,\n lg: 24,\n} as const;\n\nconst getClassName = ({\n variant = 'default',\n size = 'md',\n fullWidth = false,\n loading = false,\n className,\n disabled,\n}: ButtonStyleProps & { disabled?: boolean }) =>\n cn(\n 'button',\n className,\n `button--${variant}`,\n `button--${size}`,\n when(fullWidth, 'button--full-width'),\n when(disabled, 'button--disabled'),\n when(loading, 'button--loading'),\n );\n\nconst renderGlyph = (\n icon: ButtonIcon | undefined,\n loading: boolean | undefined,\n size: ButtonSize,\n) => {\n const px = iconSize[size];\n\n if (loading) {\n return (\n <IconSpinner\n className=\"button__icon button__icon--spin\"\n width={px}\n height={px}\n />\n );\n }\n\n if (icon === 'back') {\n return <IconArrowLeft className=\"button__icon\" width={px} height={px} />;\n }\n\n if (icon === 'forward') {\n return <IconArrowRight className=\"button__icon\" width={px} height={px} />;\n }\n\n return null;\n};\n\nconst omitStyleProps = <T extends ButtonStyleProps>(\n props: T,\n): Omit<T, (typeof styleKeys)[number]> => {\n const next: Record<string, unknown> = {};\n const skipped = new Set<string>(styleKeys);\n\n for (const [key, value] of Object.entries(props)) {\n if (!skipped.has(key)) next[key] = value;\n }\n\n return next as Omit<T, (typeof styleKeys)[number]>;\n};\n\nexport const Button = forwardRef<\n HTMLButtonElement | HTMLAnchorElement,\n ButtonComponentProps\n>(function Button(props, ref) {\n const size = props.size ?? 'md';\n const { icon, loading } = props;\n const className = getClassName(props);\n const { children, href, ...domProps } = omitStyleProps(props);\n const glyph = renderGlyph(icon, loading, size);\n const before = icon !== 'forward';\n const content = (\n <>\n {before ? glyph : null}\n {children}\n {before ? null : glyph}\n </>\n );\n\n if (typeof href === 'string') {\n const { onClick, ...anchorProps } =\n domProps as AnchorHTMLAttributes<HTMLAnchorElement>;\n\n const handleClick: MouseEventHandler<HTMLAnchorElement> = event => {\n if (loading) {\n event.preventDefault();\n return;\n }\n onClick?.(event);\n };\n\n return (\n <a\n ref={ref as Ref<HTMLAnchorElement>}\n href={href}\n className={className}\n {...anchorProps}\n aria-busy={loading || undefined}\n aria-disabled={loading || undefined}\n onClick={handleClick}\n >\n {content}\n </a>\n );\n }\n\n const {\n type = 'button',\n disabled,\n onClick,\n ...buttonProps\n } = domProps as ButtonHTMLAttributes<HTMLButtonElement>;\n\n const handleClick: MouseEventHandler<HTMLButtonElement> = event => {\n if (disabled || loading) return;\n onClick?.(event);\n };\n\n return (\n <button\n ref={ref as Ref<HTMLButtonElement>}\n className={className}\n type={type}\n disabled={disabled}\n {...buttonProps}\n aria-busy={loading || undefined}\n onClick={handleClick}\n >\n {content}\n </button>\n );\n});\n"],"mappings":";;;;;;;;AA2CA,MAAM,YAAY;CAChB;CACA;CACA;CACA;CACA;CACA;AACF;AAEA,MAAM,WAAW;CACf,IAAI;CACJ,IAAI;CACJ,IAAI;AACN;AAEA,MAAM,gBAAgB,EACpB,UAAU,WACV,OAAO,MACP,YAAY,OACZ,UAAU,OACV,WACA,eAEAA,WAAAA,GACE,UACA,WACA,WAAW,WACX,WAAW,QACXC,WAAAA,KAAK,WAAW,oBAAoB,GACpCA,WAAAA,KAAK,UAAU,kBAAkB,GACjCA,WAAAA,KAAK,SAAS,iBAAiB,CACjC;AAEF,MAAM,eACJ,MACA,SACA,SACG;CACH,MAAM,KAAK,SAAS;CAEpB,IAAI,SACF,OACE,iBAAA,GAAA,kBAAA,IAAA,CAACC,qBAAAA,aAAD;EACE,WAAU;EACV,OAAO;EACP,QAAQ;CACT,CAAA;CAIL,IAAI,SAAS,QACX,OAAO,iBAAA,GAAA,kBAAA,IAAA,CAACC,wBAAAA,eAAD;EAAe,WAAU;EAAe,OAAO;EAAI,QAAQ;CAAK,CAAA;CAGzE,IAAI,SAAS,WACX,OAAO,iBAAA,GAAA,kBAAA,IAAA,CAACC,yBAAAA,gBAAD;EAAgB,WAAU;EAAe,OAAO;EAAI,QAAQ;CAAK,CAAA;CAG1E,OAAO;AACT;AAEA,MAAM,kBACJ,UACwC;CACxC,MAAM,OAAgC,CAAC;CACvC,MAAM,UAAU,IAAI,IAAY,SAAS;CAEzC,KAAK,MAAM,CAAC,KAAK,UAAU,OAAO,QAAQ,KAAK,GAC7C,IAAI,CAAC,QAAQ,IAAI,GAAG,GAAG,KAAK,OAAO;CAGrC,OAAO;AACT;AAEA,MAAa,UAAA,GAASC,MAAAA,WAAAA,CAGpB,SAAS,OAAO,OAAO,KAAK;CAC5B,MAAM,OAAO,MAAM,QAAQ;CAC3B,MAAM,EAAE,MAAM,YAAY;CAC1B,MAAM,YAAY,aAAa,KAAK;CACpC,MAAM,EAAE,UAAU,MAAM,GAAG,aAAa,eAAe,KAAK;CAC5D,MAAM,QAAQ,YAAY,MAAM,SAAS,IAAI;CAC7C,MAAM,SAAS,SAAS;CACxB,MAAM,UACJ,iBAAA,GAAA,kBAAA,KAAA,CAAA,kBAAA,UAAA,EAAA,UAAA;EACG,SAAS,QAAQ;EACjB;EACA,SAAS,OAAO;CACjB,EAAA,CAAA;CAGJ,IAAI,OAAO,SAAS,UAAU;EAC5B,MAAM,EAAE,SAAS,GAAG,gBAClB;EAEF,MAAM,eAAoD,UAAS;GACjE,IAAI,SAAS;IACX,MAAM,eAAe;IACrB;GACF;GACA,UAAU,KAAK;EACjB;EAEA,OACE,iBAAA,GAAA,kBAAA,IAAA,CAAC,KAAD;GACO;GACC;GACK;GACX,GAAI;GACJ,aAAW,WAAW,KAAA;GACtB,iBAAe,WAAW,KAAA;GAC1B,SAAS;GAER,UAAA;EACA,CAAA;CAEP;CAEA,MAAM,EACJ,OAAO,UACP,UACA,SACA,GAAG,gBACD;CAEJ,MAAM,eAAoD,UAAS;EACjE,IAAI,YAAY,SAAS;EACzB,UAAU,KAAK;CACjB;CAEA,OACE,iBAAA,GAAA,kBAAA,IAAA,CAAC,UAAD;EACO;EACM;EACL;EACI;EACV,GAAI;EACJ,aAAW,WAAW,KAAA;EACtB,SAAS;EAER,UAAA;CACK,CAAA;AAEZ,CAAC"}
|
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
import { AnchorHTMLAttributes, ButtonHTMLAttributes, ReactNode } from "react";
|
|
2
2
|
export type ButtonVariant = 'default' | 'outline' | 'link';
|
|
3
3
|
export type ButtonSize = 'sm' | 'md' | 'lg';
|
|
4
|
+
export type ButtonIcon = 'back' | 'forward';
|
|
4
5
|
interface ButtonStyleProps {
|
|
5
6
|
variant?: ButtonVariant;
|
|
6
7
|
size?: ButtonSize;
|
|
7
8
|
fullWidth?: boolean;
|
|
9
|
+
icon?: ButtonIcon;
|
|
10
|
+
loading?: boolean;
|
|
8
11
|
className?: string;
|
|
9
12
|
children?: ReactNode;
|
|
10
13
|
}
|
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
import { AnchorHTMLAttributes, ButtonHTMLAttributes, ReactNode } from "react";
|
|
2
2
|
export type ButtonVariant = 'default' | 'outline' | 'link';
|
|
3
3
|
export type ButtonSize = 'sm' | 'md' | 'lg';
|
|
4
|
+
export type ButtonIcon = 'back' | 'forward';
|
|
4
5
|
interface ButtonStyleProps {
|
|
5
6
|
variant?: ButtonVariant;
|
|
6
7
|
size?: ButtonSize;
|
|
7
8
|
fullWidth?: boolean;
|
|
9
|
+
icon?: ButtonIcon;
|
|
10
|
+
loading?: boolean;
|
|
8
11
|
className?: string;
|
|
9
12
|
children?: ReactNode;
|
|
10
13
|
}
|
|
@@ -1,15 +1,44 @@
|
|
|
1
|
+
import { IconArrowLeft } from "../../icons/icon-arrow-left.js";
|
|
2
|
+
import { IconArrowRight } from "../../icons/icon-arrow-right.js";
|
|
3
|
+
import { IconSpinner } from "../../icons/icon-spinner.js";
|
|
1
4
|
import { cn, when } from "../../lib/cn.js";
|
|
2
5
|
import { forwardRef } from "react";
|
|
6
|
+
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
3
7
|
import "./button.scss";
|
|
4
|
-
import { jsx } from "react/jsx-runtime";
|
|
5
8
|
// src/components/button/button.tsx
|
|
6
9
|
const styleKeys = [
|
|
7
10
|
"variant",
|
|
8
11
|
"size",
|
|
9
12
|
"fullWidth",
|
|
13
|
+
"icon",
|
|
14
|
+
"loading",
|
|
10
15
|
"className"
|
|
11
16
|
];
|
|
12
|
-
const
|
|
17
|
+
const iconSize = {
|
|
18
|
+
sm: 16,
|
|
19
|
+
md: 20,
|
|
20
|
+
lg: 24
|
|
21
|
+
};
|
|
22
|
+
const getClassName = ({ variant = "default", size = "md", fullWidth = false, loading = false, className, disabled }) => cn("button", className, `button--${variant}`, `button--${size}`, when(fullWidth, "button--full-width"), when(disabled, "button--disabled"), when(loading, "button--loading"));
|
|
23
|
+
const renderGlyph = (icon, loading, size) => {
|
|
24
|
+
const px = iconSize[size];
|
|
25
|
+
if (loading) return /* @__PURE__ */ jsx(IconSpinner, {
|
|
26
|
+
className: "button__icon button__icon--spin",
|
|
27
|
+
width: px,
|
|
28
|
+
height: px
|
|
29
|
+
});
|
|
30
|
+
if (icon === "back") return /* @__PURE__ */ jsx(IconArrowLeft, {
|
|
31
|
+
className: "button__icon",
|
|
32
|
+
width: px,
|
|
33
|
+
height: px
|
|
34
|
+
});
|
|
35
|
+
if (icon === "forward") return /* @__PURE__ */ jsx(IconArrowRight, {
|
|
36
|
+
className: "button__icon",
|
|
37
|
+
width: px,
|
|
38
|
+
height: px
|
|
39
|
+
});
|
|
40
|
+
return null;
|
|
41
|
+
};
|
|
13
42
|
const omitStyleProps = (props) => {
|
|
14
43
|
const next = {};
|
|
15
44
|
const skipped = new Set(styleKeys);
|
|
@@ -17,18 +46,40 @@ const omitStyleProps = (props) => {
|
|
|
17
46
|
return next;
|
|
18
47
|
};
|
|
19
48
|
const Button = forwardRef(function Button(props, ref) {
|
|
49
|
+
const size = props.size ?? "md";
|
|
50
|
+
const { icon, loading } = props;
|
|
20
51
|
const className = getClassName(props);
|
|
21
52
|
const { children, href, ...domProps } = omitStyleProps(props);
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
});
|
|
53
|
+
const glyph = renderGlyph(icon, loading, size);
|
|
54
|
+
const before = icon !== "forward";
|
|
55
|
+
const content = /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
56
|
+
before ? glyph : null,
|
|
57
|
+
children,
|
|
58
|
+
before ? null : glyph
|
|
59
|
+
] });
|
|
60
|
+
if (typeof href === "string") {
|
|
61
|
+
const { onClick, ...anchorProps } = domProps;
|
|
62
|
+
const handleClick = (event) => {
|
|
63
|
+
if (loading) {
|
|
64
|
+
event.preventDefault();
|
|
65
|
+
return;
|
|
66
|
+
}
|
|
67
|
+
onClick?.(event);
|
|
68
|
+
};
|
|
69
|
+
return /* @__PURE__ */ jsx("a", {
|
|
70
|
+
ref,
|
|
71
|
+
href,
|
|
72
|
+
className,
|
|
73
|
+
...anchorProps,
|
|
74
|
+
"aria-busy": loading || void 0,
|
|
75
|
+
"aria-disabled": loading || void 0,
|
|
76
|
+
onClick: handleClick,
|
|
77
|
+
children: content
|
|
78
|
+
});
|
|
79
|
+
}
|
|
29
80
|
const { type = "button", disabled, onClick, ...buttonProps } = domProps;
|
|
30
81
|
const handleClick = (event) => {
|
|
31
|
-
if (disabled) return;
|
|
82
|
+
if (disabled || loading) return;
|
|
32
83
|
onClick?.(event);
|
|
33
84
|
};
|
|
34
85
|
return /* @__PURE__ */ jsx("button", {
|
|
@@ -36,9 +87,10 @@ const Button = forwardRef(function Button(props, ref) {
|
|
|
36
87
|
className,
|
|
37
88
|
type,
|
|
38
89
|
disabled,
|
|
39
|
-
onClick: handleClick,
|
|
40
90
|
...buttonProps,
|
|
41
|
-
|
|
91
|
+
"aria-busy": loading || void 0,
|
|
92
|
+
onClick: handleClick,
|
|
93
|
+
children: content
|
|
42
94
|
});
|
|
43
95
|
});
|
|
44
96
|
export { Button };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"button.js","names":[],"sources":["../../../src/components/button/button.tsx"],"sourcesContent":["import {\n forwardRef,\n type AnchorHTMLAttributes,\n type ButtonHTMLAttributes,\n type MouseEventHandler,\n type ReactNode,\n type Ref,\n} from 'react';\n\nimport { cn, when } from '../../lib/cn';\nimport './button.scss';\n\nexport type ButtonVariant = 'default' | 'outline' | 'link';\nexport type ButtonSize = 'sm' | 'md' | 'lg';\n\ninterface ButtonStyleProps {\n variant?: ButtonVariant;\n size?: ButtonSize;\n fullWidth?: boolean;\n className?: string;\n children?: ReactNode;\n}\n\nexport interface ButtonProps\n extends ButtonHTMLAttributes<HTMLButtonElement>, ButtonStyleProps {\n href?: undefined;\n}\n\nexport interface ButtonLinkProps\n extends\n Omit<AnchorHTMLAttributes<HTMLAnchorElement>, 'href'>,\n ButtonStyleProps {\n href: string;\n}\n\nexport type ButtonComponentProps = ButtonProps | ButtonLinkProps;\n\nconst styleKeys = ['variant'
|
|
1
|
+
{"version":3,"file":"button.js","names":[],"sources":["../../../src/components/button/button.tsx"],"sourcesContent":["import {\n forwardRef,\n type AnchorHTMLAttributes,\n type ButtonHTMLAttributes,\n type MouseEventHandler,\n type ReactNode,\n type Ref,\n} from 'react';\n\nimport { IconArrowLeft } from '../../icons/icon-arrow-left';\nimport { IconArrowRight } from '../../icons/icon-arrow-right';\nimport { IconSpinner } from '../../icons/icon-spinner';\nimport { cn, when } from '../../lib/cn';\nimport './button.scss';\n\nexport type ButtonVariant = 'default' | 'outline' | 'link';\nexport type ButtonSize = 'sm' | 'md' | 'lg';\nexport type ButtonIcon = 'back' | 'forward';\n\ninterface ButtonStyleProps {\n variant?: ButtonVariant;\n size?: ButtonSize;\n fullWidth?: boolean;\n icon?: ButtonIcon;\n loading?: boolean;\n className?: string;\n children?: ReactNode;\n}\n\nexport interface ButtonProps\n extends ButtonHTMLAttributes<HTMLButtonElement>, ButtonStyleProps {\n href?: undefined;\n}\n\nexport interface ButtonLinkProps\n extends\n Omit<AnchorHTMLAttributes<HTMLAnchorElement>, 'href'>,\n ButtonStyleProps {\n href: string;\n}\n\nexport type ButtonComponentProps = ButtonProps | ButtonLinkProps;\n\nconst styleKeys = [\n 'variant',\n 'size',\n 'fullWidth',\n 'icon',\n 'loading',\n 'className',\n] as const;\n\nconst iconSize = {\n sm: 16,\n md: 20,\n lg: 24,\n} as const;\n\nconst getClassName = ({\n variant = 'default',\n size = 'md',\n fullWidth = false,\n loading = false,\n className,\n disabled,\n}: ButtonStyleProps & { disabled?: boolean }) =>\n cn(\n 'button',\n className,\n `button--${variant}`,\n `button--${size}`,\n when(fullWidth, 'button--full-width'),\n when(disabled, 'button--disabled'),\n when(loading, 'button--loading'),\n );\n\nconst renderGlyph = (\n icon: ButtonIcon | undefined,\n loading: boolean | undefined,\n size: ButtonSize,\n) => {\n const px = iconSize[size];\n\n if (loading) {\n return (\n <IconSpinner\n className=\"button__icon button__icon--spin\"\n width={px}\n height={px}\n />\n );\n }\n\n if (icon === 'back') {\n return <IconArrowLeft className=\"button__icon\" width={px} height={px} />;\n }\n\n if (icon === 'forward') {\n return <IconArrowRight className=\"button__icon\" width={px} height={px} />;\n }\n\n return null;\n};\n\nconst omitStyleProps = <T extends ButtonStyleProps>(\n props: T,\n): Omit<T, (typeof styleKeys)[number]> => {\n const next: Record<string, unknown> = {};\n const skipped = new Set<string>(styleKeys);\n\n for (const [key, value] of Object.entries(props)) {\n if (!skipped.has(key)) next[key] = value;\n }\n\n return next as Omit<T, (typeof styleKeys)[number]>;\n};\n\nexport const Button = forwardRef<\n HTMLButtonElement | HTMLAnchorElement,\n ButtonComponentProps\n>(function Button(props, ref) {\n const size = props.size ?? 'md';\n const { icon, loading } = props;\n const className = getClassName(props);\n const { children, href, ...domProps } = omitStyleProps(props);\n const glyph = renderGlyph(icon, loading, size);\n const before = icon !== 'forward';\n const content = (\n <>\n {before ? glyph : null}\n {children}\n {before ? null : glyph}\n </>\n );\n\n if (typeof href === 'string') {\n const { onClick, ...anchorProps } =\n domProps as AnchorHTMLAttributes<HTMLAnchorElement>;\n\n const handleClick: MouseEventHandler<HTMLAnchorElement> = event => {\n if (loading) {\n event.preventDefault();\n return;\n }\n onClick?.(event);\n };\n\n return (\n <a\n ref={ref as Ref<HTMLAnchorElement>}\n href={href}\n className={className}\n {...anchorProps}\n aria-busy={loading || undefined}\n aria-disabled={loading || undefined}\n onClick={handleClick}\n >\n {content}\n </a>\n );\n }\n\n const {\n type = 'button',\n disabled,\n onClick,\n ...buttonProps\n } = domProps as ButtonHTMLAttributes<HTMLButtonElement>;\n\n const handleClick: MouseEventHandler<HTMLButtonElement> = event => {\n if (disabled || loading) return;\n onClick?.(event);\n };\n\n return (\n <button\n ref={ref as Ref<HTMLButtonElement>}\n className={className}\n type={type}\n disabled={disabled}\n {...buttonProps}\n aria-busy={loading || undefined}\n onClick={handleClick}\n >\n {content}\n </button>\n );\n});\n"],"mappings":";;;;;;;;AA2CA,MAAM,YAAY;CAChB;CACA;CACA;CACA;CACA;CACA;AACF;AAEA,MAAM,WAAW;CACf,IAAI;CACJ,IAAI;CACJ,IAAI;AACN;AAEA,MAAM,gBAAgB,EACpB,UAAU,WACV,OAAO,MACP,YAAY,OACZ,UAAU,OACV,WACA,eAEA,GACE,UACA,WACA,WAAW,WACX,WAAW,QACX,KAAK,WAAW,oBAAoB,GACpC,KAAK,UAAU,kBAAkB,GACjC,KAAK,SAAS,iBAAiB,CACjC;AAEF,MAAM,eACJ,MACA,SACA,SACG;CACH,MAAM,KAAK,SAAS;CAEpB,IAAI,SACF,OACE,oBAAC,aAAD;EACE,WAAU;EACV,OAAO;EACP,QAAQ;CACT,CAAA;CAIL,IAAI,SAAS,QACX,OAAO,oBAAC,eAAD;EAAe,WAAU;EAAe,OAAO;EAAI,QAAQ;CAAK,CAAA;CAGzE,IAAI,SAAS,WACX,OAAO,oBAAC,gBAAD;EAAgB,WAAU;EAAe,OAAO;EAAI,QAAQ;CAAK,CAAA;CAG1E,OAAO;AACT;AAEA,MAAM,kBACJ,UACwC;CACxC,MAAM,OAAgC,CAAC;CACvC,MAAM,UAAU,IAAI,IAAY,SAAS;CAEzC,KAAK,MAAM,CAAC,KAAK,UAAU,OAAO,QAAQ,KAAK,GAC7C,IAAI,CAAC,QAAQ,IAAI,GAAG,GAAG,KAAK,OAAO;CAGrC,OAAO;AACT;AAEA,MAAa,SAAS,WAGpB,SAAS,OAAO,OAAO,KAAK;CAC5B,MAAM,OAAO,MAAM,QAAQ;CAC3B,MAAM,EAAE,MAAM,YAAY;CAC1B,MAAM,YAAY,aAAa,KAAK;CACpC,MAAM,EAAE,UAAU,MAAM,GAAG,aAAa,eAAe,KAAK;CAC5D,MAAM,QAAQ,YAAY,MAAM,SAAS,IAAI;CAC7C,MAAM,SAAS,SAAS;CACxB,MAAM,UACJ,qBAAA,UAAA,EAAA,UAAA;EACG,SAAS,QAAQ;EACjB;EACA,SAAS,OAAO;CACjB,EAAA,CAAA;CAGJ,IAAI,OAAO,SAAS,UAAU;EAC5B,MAAM,EAAE,SAAS,GAAG,gBAClB;EAEF,MAAM,eAAoD,UAAS;GACjE,IAAI,SAAS;IACX,MAAM,eAAe;IACrB;GACF;GACA,UAAU,KAAK;EACjB;EAEA,OACE,oBAAC,KAAD;GACO;GACC;GACK;GACX,GAAI;GACJ,aAAW,WAAW,KAAA;GACtB,iBAAe,WAAW,KAAA;GAC1B,SAAS;GAER,UAAA;EACA,CAAA;CAEP;CAEA,MAAM,EACJ,OAAO,UACP,UACA,SACA,GAAG,gBACD;CAEJ,MAAM,eAAoD,UAAS;EACjE,IAAI,YAAY,SAAS;EACzB,UAAU,KAAK;CACjB;CAEA,OACE,oBAAC,UAAD;EACO;EACM;EACL;EACI;EACV,GAAI;EACJ,aAAW,WAAW,KAAA;EACtB,SAAS;EAER,UAAA;CACK,CAAA;AAEZ,CAAC"}
|
|
@@ -91,4 +91,28 @@
|
|
|
91
91
|
pointer-events: none;
|
|
92
92
|
user-select: none;
|
|
93
93
|
}
|
|
94
|
+
|
|
95
|
+
&--loading {
|
|
96
|
+
cursor: progress;
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
.button__icon {
|
|
101
|
+
flex-shrink: 0;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
.button__icon--spin {
|
|
105
|
+
animation: button-spin 0.8s linear infinite;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
@keyframes button-spin {
|
|
109
|
+
to {
|
|
110
|
+
transform: rotate(360deg);
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
@media (prefers-reduced-motion: reduce) {
|
|
115
|
+
.button__icon--spin {
|
|
116
|
+
animation: none;
|
|
117
|
+
}
|
|
94
118
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Button, ButtonComponentProps, ButtonLinkProps, ButtonProps, ButtonSize, ButtonVariant } from "./button.cjs";
|
|
2
|
-
export { Button, type ButtonComponentProps, type ButtonLinkProps, type ButtonProps, type ButtonSize, type ButtonVariant };
|
|
1
|
+
import { Button, ButtonComponentProps, ButtonIcon, ButtonLinkProps, ButtonProps, ButtonSize, ButtonVariant } from "./button.cjs";
|
|
2
|
+
export { Button, type ButtonComponentProps, type ButtonIcon, type ButtonLinkProps, type ButtonProps, type ButtonSize, type ButtonVariant };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Button, ButtonComponentProps, ButtonLinkProps, ButtonProps, ButtonSize, ButtonVariant } from "./button.js";
|
|
2
|
-
export { Button, type ButtonComponentProps, type ButtonLinkProps, type ButtonProps, type ButtonSize, type ButtonVariant };
|
|
1
|
+
import { Button, ButtonComponentProps, ButtonIcon, ButtonLinkProps, ButtonProps, ButtonSize, ButtonVariant } from "./button.js";
|
|
2
|
+
export { Button, type ButtonComponentProps, type ButtonIcon, type ButtonLinkProps, type ButtonProps, type ButtonSize, type ButtonVariant };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
const require_svg = require("./svg.cjs");
|
|
2
|
+
let react_jsx_runtime = require("react/jsx-runtime");
|
|
3
|
+
// src/icons/control-mark-checkbox.tsx
|
|
4
|
+
const ControlMarkCheckbox = (props) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_svg.Svg, {
|
|
5
|
+
viewBox: "0 0 20 20",
|
|
6
|
+
width: 20,
|
|
7
|
+
height: 20,
|
|
8
|
+
fill: "currentColor",
|
|
9
|
+
...props,
|
|
10
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", { d: "M15.71,6.29c-0.39-0.39-1.02-0.39-1.41,0c-0.31,0.31-3.76,3.76-5.29,5.29c-0.81-0.81-2.01-2.01-2.29-2.29c-0.39-0.39-1.02-0.39-1.41,0c-0.39,0.39-0.39,1.02,0,1.41c0.39,0.39,2.61,2.61,3,3c0.39,0.39,1.02,0.39,1.41,0c0.39-0.39,5.61-5.61,6-6C16.1,7.32,16.1,6.68,15.71,6.29z" })
|
|
11
|
+
});
|
|
12
|
+
exports.ControlMarkCheckbox = ControlMarkCheckbox;
|
|
13
|
+
|
|
14
|
+
//# sourceMappingURL=control-mark-checkbox.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"control-mark-checkbox.cjs","names":["Svg"],"sources":["../../src/icons/control-mark-checkbox.tsx"],"sourcesContent":["// Generated by scripts/build-icons.mjs. Do not edit.\nimport { Svg, type IconProps } from './svg';\n\nexport const ControlMarkCheckbox = (props: IconProps) => (\n <Svg\n viewBox=\"0 0 20 20\"\n width={20}\n height={20}\n fill=\"currentColor\"\n {...props}\n >\n <path d=\"M15.71,6.29c-0.39-0.39-1.02-0.39-1.41,0c-0.31,0.31-3.76,3.76-5.29,5.29c-0.81-0.81-2.01-2.01-2.29-2.29c-0.39-0.39-1.02-0.39-1.41,0c-0.39,0.39-0.39,1.02,0,1.41c0.39,0.39,2.61,2.61,3,3c0.39,0.39,1.02,0.39,1.41,0c0.39-0.39,5.61-5.61,6-6C16.1,7.32,16.1,6.68,15.71,6.29z\" />\n </Svg>\n);\n"],"mappings":";;;AAGA,MAAa,uBAAuB,UAClC,iBAAA,GAAA,kBAAA,IAAA,CAACA,YAAAA,KAAD;CACE,SAAQ;CACR,OAAO;CACP,QAAQ;CACR,MAAK;CACL,GAAI;CAEJ,UAAA,iBAAA,GAAA,kBAAA,IAAA,CAAC,QAAD,EAAM,GAAE,2QAA4Q,CAAA;AACjR,CAAA"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Svg } from "./svg.js";
|
|
2
|
+
import { jsx } from "react/jsx-runtime";
|
|
3
|
+
// src/icons/control-mark-checkbox.tsx
|
|
4
|
+
const ControlMarkCheckbox = (props) => /* @__PURE__ */ jsx(Svg, {
|
|
5
|
+
viewBox: "0 0 20 20",
|
|
6
|
+
width: 20,
|
|
7
|
+
height: 20,
|
|
8
|
+
fill: "currentColor",
|
|
9
|
+
...props,
|
|
10
|
+
children: /* @__PURE__ */ jsx("path", { d: "M15.71,6.29c-0.39-0.39-1.02-0.39-1.41,0c-0.31,0.31-3.76,3.76-5.29,5.29c-0.81-0.81-2.01-2.01-2.29-2.29c-0.39-0.39-1.02-0.39-1.41,0c-0.39,0.39-0.39,1.02,0,1.41c0.39,0.39,2.61,2.61,3,3c0.39,0.39,1.02,0.39,1.41,0c0.39-0.39,5.61-5.61,6-6C16.1,7.32,16.1,6.68,15.71,6.29z" })
|
|
11
|
+
});
|
|
12
|
+
export { ControlMarkCheckbox };
|
|
13
|
+
|
|
14
|
+
//# sourceMappingURL=control-mark-checkbox.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"control-mark-checkbox.js","names":[],"sources":["../../src/icons/control-mark-checkbox.tsx"],"sourcesContent":["// Generated by scripts/build-icons.mjs. Do not edit.\nimport { Svg, type IconProps } from './svg';\n\nexport const ControlMarkCheckbox = (props: IconProps) => (\n <Svg\n viewBox=\"0 0 20 20\"\n width={20}\n height={20}\n fill=\"currentColor\"\n {...props}\n >\n <path d=\"M15.71,6.29c-0.39-0.39-1.02-0.39-1.41,0c-0.31,0.31-3.76,3.76-5.29,5.29c-0.81-0.81-2.01-2.01-2.29-2.29c-0.39-0.39-1.02-0.39-1.41,0c-0.39,0.39-0.39,1.02,0,1.41c0.39,0.39,2.61,2.61,3,3c0.39,0.39,1.02,0.39,1.41,0c0.39-0.39,5.61-5.61,6-6C16.1,7.32,16.1,6.68,15.71,6.29z\" />\n </Svg>\n);\n"],"mappings":";;;AAGA,MAAa,uBAAuB,UAClC,oBAAC,KAAD;CACE,SAAQ;CACR,OAAO;CACP,QAAQ;CACR,MAAK;CACL,GAAI;CAEJ,UAAA,oBAAC,QAAD,EAAM,GAAE,2QAA4Q,CAAA;AACjR,CAAA"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
const require_svg = require("./svg.cjs");
|
|
2
|
+
let react_jsx_runtime = require("react/jsx-runtime");
|
|
3
|
+
// src/icons/control-mark-radiobutton.tsx
|
|
4
|
+
const ControlMarkRadiobutton = (props) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_svg.Svg, {
|
|
5
|
+
viewBox: "0 0 20 20",
|
|
6
|
+
width: 20,
|
|
7
|
+
height: 20,
|
|
8
|
+
fill: "currentColor",
|
|
9
|
+
...props,
|
|
10
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("circle", {
|
|
11
|
+
cx: "10",
|
|
12
|
+
cy: "10",
|
|
13
|
+
r: "3"
|
|
14
|
+
})
|
|
15
|
+
});
|
|
16
|
+
exports.ControlMarkRadiobutton = ControlMarkRadiobutton;
|
|
17
|
+
|
|
18
|
+
//# sourceMappingURL=control-mark-radiobutton.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"control-mark-radiobutton.cjs","names":["Svg"],"sources":["../../src/icons/control-mark-radiobutton.tsx"],"sourcesContent":["// Generated by scripts/build-icons.mjs. Do not edit.\nimport { Svg, type IconProps } from './svg';\n\nexport const ControlMarkRadiobutton = (props: IconProps) => (\n <Svg\n viewBox=\"0 0 20 20\"\n width={20}\n height={20}\n fill=\"currentColor\"\n {...props}\n >\n <circle cx=\"10\" cy=\"10\" r=\"3\" />\n </Svg>\n);\n"],"mappings":";;;AAGA,MAAa,0BAA0B,UACrC,iBAAA,GAAA,kBAAA,IAAA,CAACA,YAAAA,KAAD;CACE,SAAQ;CACR,OAAO;CACP,QAAQ;CACR,MAAK;CACL,GAAI;CAEJ,UAAA,iBAAA,GAAA,kBAAA,IAAA,CAAC,UAAD;EAAQ,IAAG;EAAK,IAAG;EAAK,GAAE;CAAK,CAAA;AAC5B,CAAA"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { Svg } from "./svg.js";
|
|
2
|
+
import { jsx } from "react/jsx-runtime";
|
|
3
|
+
// src/icons/control-mark-radiobutton.tsx
|
|
4
|
+
const ControlMarkRadiobutton = (props) => /* @__PURE__ */ jsx(Svg, {
|
|
5
|
+
viewBox: "0 0 20 20",
|
|
6
|
+
width: 20,
|
|
7
|
+
height: 20,
|
|
8
|
+
fill: "currentColor",
|
|
9
|
+
...props,
|
|
10
|
+
children: /* @__PURE__ */ jsx("circle", {
|
|
11
|
+
cx: "10",
|
|
12
|
+
cy: "10",
|
|
13
|
+
r: "3"
|
|
14
|
+
})
|
|
15
|
+
});
|
|
16
|
+
export { ControlMarkRadiobutton };
|
|
17
|
+
|
|
18
|
+
//# sourceMappingURL=control-mark-radiobutton.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"control-mark-radiobutton.js","names":[],"sources":["../../src/icons/control-mark-radiobutton.tsx"],"sourcesContent":["// Generated by scripts/build-icons.mjs. Do not edit.\nimport { Svg, type IconProps } from './svg';\n\nexport const ControlMarkRadiobutton = (props: IconProps) => (\n <Svg\n viewBox=\"0 0 20 20\"\n width={20}\n height={20}\n fill=\"currentColor\"\n {...props}\n >\n <circle cx=\"10\" cy=\"10\" r=\"3\" />\n </Svg>\n);\n"],"mappings":";;;AAGA,MAAa,0BAA0B,UACrC,oBAAC,KAAD;CACE,SAAQ;CACR,OAAO;CACP,QAAQ;CACR,MAAK;CACL,GAAI;CAEJ,UAAA,oBAAC,UAAD;EAAQ,IAAG;EAAK,IAAG;EAAK,GAAE;CAAK,CAAA;AAC5B,CAAA"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
const require_svg = require("./svg.cjs");
|
|
2
|
+
let react_jsx_runtime = require("react/jsx-runtime");
|
|
3
|
+
// src/icons/icon-adult.tsx
|
|
4
|
+
const IconAdult = (props) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_svg.Svg, {
|
|
5
|
+
viewBox: "0 0 20 20",
|
|
6
|
+
width: 20,
|
|
7
|
+
height: 20,
|
|
8
|
+
fill: "currentColor",
|
|
9
|
+
...props,
|
|
10
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", { d: "M4.4,4.1C4,3.9,3.6,4,3.3,4.3l-1,1c-0.4,0.4-0.4,1,0,1.4C2.5,6.9,2.7,7,3,7v8c0,0.6,0.4,1,1,1s1-0.4,1-1V5C5,4.6,4.8,4.2,4.4,4.1z M9,4C7.3,4,6,5.3,6,7v1c0,0.8,0.3,1.5,0.8,2C6.3,10.5,6,11.2,6,12v1c0,1.7,1.3,3,3,3s3-1.3,3-3v-1c0-0.8-0.3-1.5-0.8-2C11.7,9.5,12,8.8,12,8V7C12,5.3,10.7,4,9,4z M10,13c0,0.6-0.4,1-1,1s-1-0.4-1-1v-1c0-0.6,0.4-1,1-1s1,0.4,1,1V13z M10,8c0,0.6-0.4,1-1,1S8,8.6,8,8V7c0-0.6,0.4-1,1-1s1,0.4,1,1V8z M18,9h-1V8c0-0.6-0.4-1-1-1s-1,0.4-1,1v1h-1c-0.6,0-1,0.4-1,1s0.4,1,1,1h1v1c0,0.6,0.4,1,1,1s1-0.4,1-1v-1h1c0.6,0,1-0.4,1-1S18.6,9,18,9z" })
|
|
11
|
+
});
|
|
12
|
+
exports.IconAdult = IconAdult;
|
|
13
|
+
|
|
14
|
+
//# sourceMappingURL=icon-adult.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"icon-adult.cjs","names":["Svg"],"sources":["../../src/icons/icon-adult.tsx"],"sourcesContent":["// Generated by scripts/build-icons.mjs. Do not edit.\nimport { Svg, type IconProps } from './svg';\n\nexport const IconAdult = (props: IconProps) => (\n <Svg\n viewBox=\"0 0 20 20\"\n width={20}\n height={20}\n fill=\"currentColor\"\n {...props}\n >\n <path d=\"M4.4,4.1C4,3.9,3.6,4,3.3,4.3l-1,1c-0.4,0.4-0.4,1,0,1.4C2.5,6.9,2.7,7,3,7v8c0,0.6,0.4,1,1,1s1-0.4,1-1V5C5,4.6,4.8,4.2,4.4,4.1z M9,4C7.3,4,6,5.3,6,7v1c0,0.8,0.3,1.5,0.8,2C6.3,10.5,6,11.2,6,12v1c0,1.7,1.3,3,3,3s3-1.3,3-3v-1c0-0.8-0.3-1.5-0.8-2C11.7,9.5,12,8.8,12,8V7C12,5.3,10.7,4,9,4z M10,13c0,0.6-0.4,1-1,1s-1-0.4-1-1v-1c0-0.6,0.4-1,1-1s1,0.4,1,1V13z M10,8c0,0.6-0.4,1-1,1S8,8.6,8,8V7c0-0.6,0.4-1,1-1s1,0.4,1,1V8z M18,9h-1V8c0-0.6-0.4-1-1-1s-1,0.4-1,1v1h-1c-0.6,0-1,0.4-1,1s0.4,1,1,1h1v1c0,0.6,0.4,1,1,1s1-0.4,1-1v-1h1c0.6,0,1-0.4,1-1S18.6,9,18,9z\" />\n </Svg>\n);\n"],"mappings":";;;AAGA,MAAa,aAAa,UACxB,iBAAA,GAAA,kBAAA,IAAA,CAACA,YAAAA,KAAD;CACE,SAAQ;CACR,OAAO;CACP,QAAQ;CACR,MAAK;CACL,GAAI;CAEJ,UAAA,iBAAA,GAAA,kBAAA,IAAA,CAAC,QAAD,EAAM,GAAE,qiBAAsiB,CAAA;AAC3iB,CAAA"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Svg } from "./svg.js";
|
|
2
|
+
import { jsx } from "react/jsx-runtime";
|
|
3
|
+
// src/icons/icon-adult.tsx
|
|
4
|
+
const IconAdult = (props) => /* @__PURE__ */ jsx(Svg, {
|
|
5
|
+
viewBox: "0 0 20 20",
|
|
6
|
+
width: 20,
|
|
7
|
+
height: 20,
|
|
8
|
+
fill: "currentColor",
|
|
9
|
+
...props,
|
|
10
|
+
children: /* @__PURE__ */ jsx("path", { d: "M4.4,4.1C4,3.9,3.6,4,3.3,4.3l-1,1c-0.4,0.4-0.4,1,0,1.4C2.5,6.9,2.7,7,3,7v8c0,0.6,0.4,1,1,1s1-0.4,1-1V5C5,4.6,4.8,4.2,4.4,4.1z M9,4C7.3,4,6,5.3,6,7v1c0,0.8,0.3,1.5,0.8,2C6.3,10.5,6,11.2,6,12v1c0,1.7,1.3,3,3,3s3-1.3,3-3v-1c0-0.8-0.3-1.5-0.8-2C11.7,9.5,12,8.8,12,8V7C12,5.3,10.7,4,9,4z M10,13c0,0.6-0.4,1-1,1s-1-0.4-1-1v-1c0-0.6,0.4-1,1-1s1,0.4,1,1V13z M10,8c0,0.6-0.4,1-1,1S8,8.6,8,8V7c0-0.6,0.4-1,1-1s1,0.4,1,1V8z M18,9h-1V8c0-0.6-0.4-1-1-1s-1,0.4-1,1v1h-1c-0.6,0-1,0.4-1,1s0.4,1,1,1h1v1c0,0.6,0.4,1,1,1s1-0.4,1-1v-1h1c0.6,0,1-0.4,1-1S18.6,9,18,9z" })
|
|
11
|
+
});
|
|
12
|
+
export { IconAdult };
|
|
13
|
+
|
|
14
|
+
//# sourceMappingURL=icon-adult.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"icon-adult.js","names":[],"sources":["../../src/icons/icon-adult.tsx"],"sourcesContent":["// Generated by scripts/build-icons.mjs. Do not edit.\nimport { Svg, type IconProps } from './svg';\n\nexport const IconAdult = (props: IconProps) => (\n <Svg\n viewBox=\"0 0 20 20\"\n width={20}\n height={20}\n fill=\"currentColor\"\n {...props}\n >\n <path d=\"M4.4,4.1C4,3.9,3.6,4,3.3,4.3l-1,1c-0.4,0.4-0.4,1,0,1.4C2.5,6.9,2.7,7,3,7v8c0,0.6,0.4,1,1,1s1-0.4,1-1V5C5,4.6,4.8,4.2,4.4,4.1z M9,4C7.3,4,6,5.3,6,7v1c0,0.8,0.3,1.5,0.8,2C6.3,10.5,6,11.2,6,12v1c0,1.7,1.3,3,3,3s3-1.3,3-3v-1c0-0.8-0.3-1.5-0.8-2C11.7,9.5,12,8.8,12,8V7C12,5.3,10.7,4,9,4z M10,13c0,0.6-0.4,1-1,1s-1-0.4-1-1v-1c0-0.6,0.4-1,1-1s1,0.4,1,1V13z M10,8c0,0.6-0.4,1-1,1S8,8.6,8,8V7c0-0.6,0.4-1,1-1s1,0.4,1,1V8z M18,9h-1V8c0-0.6-0.4-1-1-1s-1,0.4-1,1v1h-1c-0.6,0-1,0.4-1,1s0.4,1,1,1h1v1c0,0.6,0.4,1,1,1s1-0.4,1-1v-1h1c0.6,0,1-0.4,1-1S18.6,9,18,9z\" />\n </Svg>\n);\n"],"mappings":";;;AAGA,MAAa,aAAa,UACxB,oBAAC,KAAD;CACE,SAAQ;CACR,OAAO;CACP,QAAQ;CACR,MAAK;CACL,GAAI;CAEJ,UAAA,oBAAC,QAAD,EAAM,GAAE,qiBAAsiB,CAAA;AAC3iB,CAAA"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
const require_svg = require("./svg.cjs");
|
|
2
|
+
let react_jsx_runtime = require("react/jsx-runtime");
|
|
3
|
+
// src/icons/icon-arrow-down.tsx
|
|
4
|
+
const IconArrowDown = (props) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_svg.Svg, {
|
|
5
|
+
viewBox: "0 0 20 20",
|
|
6
|
+
width: 20,
|
|
7
|
+
height: 20,
|
|
8
|
+
fill: "currentColor",
|
|
9
|
+
...props,
|
|
10
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", { d: "M9,4v9.586c-0.578-0.578-1.118-1.117-1.292-1.293c-0.391-0.391-1.024-0.391-1.415,0s-0.391,1.023,0,1.414l3,3c0.39,0.391,1.023,0.391,1.414,0l3-3c0.391-0.391,0.391-1.023,0-1.414s-1.023-0.391-1.414,0c-0.175,0.176-0.715,0.715-1.293,1.293V4c0-0.553-0.448-1-1-1S9,3.448,9,4z" })
|
|
11
|
+
});
|
|
12
|
+
exports.IconArrowDown = IconArrowDown;
|
|
13
|
+
|
|
14
|
+
//# sourceMappingURL=icon-arrow-down.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"icon-arrow-down.cjs","names":["Svg"],"sources":["../../src/icons/icon-arrow-down.tsx"],"sourcesContent":["// Generated by scripts/build-icons.mjs. Do not edit.\nimport { Svg, type IconProps } from './svg';\n\nexport const IconArrowDown = (props: IconProps) => (\n <Svg\n viewBox=\"0 0 20 20\"\n width={20}\n height={20}\n fill=\"currentColor\"\n {...props}\n >\n <path d=\"M9,4v9.586c-0.578-0.578-1.118-1.117-1.292-1.293c-0.391-0.391-1.024-0.391-1.415,0s-0.391,1.023,0,1.414l3,3c0.39,0.391,1.023,0.391,1.414,0l3-3c0.391-0.391,0.391-1.023,0-1.414s-1.023-0.391-1.414,0c-0.175,0.176-0.715,0.715-1.293,1.293V4c0-0.553-0.448-1-1-1S9,3.448,9,4z\" />\n </Svg>\n);\n"],"mappings":";;;AAGA,MAAa,iBAAiB,UAC5B,iBAAA,GAAA,kBAAA,IAAA,CAACA,YAAAA,KAAD;CACE,SAAQ;CACR,OAAO;CACP,QAAQ;CACR,MAAK;CACL,GAAI;CAEJ,UAAA,iBAAA,GAAA,kBAAA,IAAA,CAAC,QAAD,EAAM,GAAE,4QAA6Q,CAAA;AAClR,CAAA"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Svg } from "./svg.js";
|
|
2
|
+
import { jsx } from "react/jsx-runtime";
|
|
3
|
+
// src/icons/icon-arrow-down.tsx
|
|
4
|
+
const IconArrowDown = (props) => /* @__PURE__ */ jsx(Svg, {
|
|
5
|
+
viewBox: "0 0 20 20",
|
|
6
|
+
width: 20,
|
|
7
|
+
height: 20,
|
|
8
|
+
fill: "currentColor",
|
|
9
|
+
...props,
|
|
10
|
+
children: /* @__PURE__ */ jsx("path", { d: "M9,4v9.586c-0.578-0.578-1.118-1.117-1.292-1.293c-0.391-0.391-1.024-0.391-1.415,0s-0.391,1.023,0,1.414l3,3c0.39,0.391,1.023,0.391,1.414,0l3-3c0.391-0.391,0.391-1.023,0-1.414s-1.023-0.391-1.414,0c-0.175,0.176-0.715,0.715-1.293,1.293V4c0-0.553-0.448-1-1-1S9,3.448,9,4z" })
|
|
11
|
+
});
|
|
12
|
+
export { IconArrowDown };
|
|
13
|
+
|
|
14
|
+
//# sourceMappingURL=icon-arrow-down.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"icon-arrow-down.js","names":[],"sources":["../../src/icons/icon-arrow-down.tsx"],"sourcesContent":["// Generated by scripts/build-icons.mjs. Do not edit.\nimport { Svg, type IconProps } from './svg';\n\nexport const IconArrowDown = (props: IconProps) => (\n <Svg\n viewBox=\"0 0 20 20\"\n width={20}\n height={20}\n fill=\"currentColor\"\n {...props}\n >\n <path d=\"M9,4v9.586c-0.578-0.578-1.118-1.117-1.292-1.293c-0.391-0.391-1.024-0.391-1.415,0s-0.391,1.023,0,1.414l3,3c0.39,0.391,1.023,0.391,1.414,0l3-3c0.391-0.391,0.391-1.023,0-1.414s-1.023-0.391-1.414,0c-0.175,0.176-0.715,0.715-1.293,1.293V4c0-0.553-0.448-1-1-1S9,3.448,9,4z\" />\n </Svg>\n);\n"],"mappings":";;;AAGA,MAAa,iBAAiB,UAC5B,oBAAC,KAAD;CACE,SAAQ;CACR,OAAO;CACP,QAAQ;CACR,MAAK;CACL,GAAI;CAEJ,UAAA,oBAAC,QAAD,EAAM,GAAE,4QAA6Q,CAAA;AAClR,CAAA"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
const require_svg = require("./svg.cjs");
|
|
2
|
+
let react_jsx_runtime = require("react/jsx-runtime");
|
|
3
|
+
// src/icons/icon-arrow-left.tsx
|
|
4
|
+
const IconArrowLeft = (props) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_svg.Svg, {
|
|
5
|
+
viewBox: "0 0 20 20",
|
|
6
|
+
width: 20,
|
|
7
|
+
height: 20,
|
|
8
|
+
fill: "currentColor",
|
|
9
|
+
...props,
|
|
10
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", { d: "M16,9H6.414c0.578-0.578,1.118-1.118,1.293-1.292c0.391-0.391,0.391-1.024,0-1.415s-1.023-0.391-1.414,0l-3,3c-0.391,0.39-0.391,1.023,0,1.414l3,3c0.391,0.391,1.023,0.391,1.414,0s0.391-1.023,0-1.414C7.532,12.119,6.992,11.579,6.414,11H16c0.553,0,1-0.448,1-1S16.553,9,16,9z" })
|
|
11
|
+
});
|
|
12
|
+
exports.IconArrowLeft = IconArrowLeft;
|
|
13
|
+
|
|
14
|
+
//# sourceMappingURL=icon-arrow-left.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"icon-arrow-left.cjs","names":["Svg"],"sources":["../../src/icons/icon-arrow-left.tsx"],"sourcesContent":["// Generated by scripts/build-icons.mjs. Do not edit.\nimport { Svg, type IconProps } from './svg';\n\nexport const IconArrowLeft = (props: IconProps) => (\n <Svg\n viewBox=\"0 0 20 20\"\n width={20}\n height={20}\n fill=\"currentColor\"\n {...props}\n >\n <path d=\"M16,9H6.414c0.578-0.578,1.118-1.118,1.293-1.292c0.391-0.391,0.391-1.024,0-1.415s-1.023-0.391-1.414,0l-3,3c-0.391,0.39-0.391,1.023,0,1.414l3,3c0.391,0.391,1.023,0.391,1.414,0s0.391-1.023,0-1.414C7.532,12.119,6.992,11.579,6.414,11H16c0.553,0,1-0.448,1-1S16.553,9,16,9z\" />\n </Svg>\n);\n"],"mappings":";;;AAGA,MAAa,iBAAiB,UAC5B,iBAAA,GAAA,kBAAA,IAAA,CAACA,YAAAA,KAAD;CACE,SAAQ;CACR,OAAO;CACP,QAAQ;CACR,MAAK;CACL,GAAI;CAEJ,UAAA,iBAAA,GAAA,kBAAA,IAAA,CAAC,QAAD,EAAM,GAAE,6QAA8Q,CAAA;AACnR,CAAA"}
|