asta-ui 0.0.0-stage → 0.2.0
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/LICENSE +21 -0
- package/README.md +69 -2
- package/bin/asta-ui.mjs +218 -0
- package/dist/accordion.d.ts +2 -0
- package/dist/accordion.js +9 -0
- package/dist/add-to-cart.d.ts +2 -0
- package/dist/add-to-cart.js +7 -0
- package/dist/avatar.d.ts +2 -0
- package/dist/avatar.js +13 -0
- package/dist/badge.d.ts +2 -0
- package/dist/badge.js +11 -0
- package/dist/base/accordion.d.ts +2 -0
- package/dist/base/accordion.js +9 -0
- package/dist/base/add-to-cart.d.ts +2 -0
- package/dist/base/add-to-cart.js +7 -0
- package/dist/base/avatar.d.ts +2 -0
- package/dist/base/avatar.js +13 -0
- package/dist/base/badge.d.ts +2 -0
- package/dist/base/badge.js +11 -0
- package/dist/base/bubble-wrap.d.ts +2 -0
- package/dist/base/bubble-wrap.js +7 -0
- package/dist/base/button.d.ts +2 -0
- package/dist/base/button.js +13 -0
- package/dist/base/candlestick.d.ts +2 -0
- package/dist/base/candlestick.js +7 -0
- package/dist/base/card-checkout.d.ts +2 -0
- package/dist/base/card-checkout.js +7 -0
- package/dist/base/cart-drawer.d.ts +2 -0
- package/dist/base/cart-drawer.js +7 -0
- package/dist/base/checkbox.d.ts +2 -0
- package/dist/base/checkbox.js +9 -0
- package/dist/base/combo-lock.d.ts +2 -0
- package/dist/base/combo-lock.js +7 -0
- package/dist/base/command-palette.d.ts +2 -0
- package/dist/base/command-palette.js +11 -0
- package/dist/base/dial-knob.d.ts +2 -0
- package/dist/base/dial-knob.js +7 -0
- package/dist/base/dialog.d.ts +2 -0
- package/dist/base/dialog.js +9 -0
- package/dist/base/dropdown-menu.d.ts +2 -0
- package/dist/base/dropdown-menu.js +10 -0
- package/dist/base/elastic-string.d.ts +2 -0
- package/dist/base/elastic-string.js +7 -0
- package/dist/base/field.d.ts +2 -0
- package/dist/base/field.js +11 -0
- package/dist/base/footer.d.ts +2 -0
- package/dist/base/footer.js +12 -0
- package/dist/base/gravity-pills.d.ts +2 -0
- package/dist/base/gravity-pills.js +7 -0
- package/dist/base/hold-to-confirm.d.ts +2 -0
- package/dist/base/hold-to-confirm.js +7 -0
- package/dist/base/ink-trail.d.ts +2 -0
- package/dist/base/ink-trail.js +7 -0
- package/dist/base/input.d.ts +2 -0
- package/dist/base/input.js +11 -0
- package/dist/base/kbd.d.ts +2 -0
- package/dist/base/kbd.js +11 -0
- package/dist/base/morse-tap.d.ts +2 -0
- package/dist/base/morse-tap.js +7 -0
- package/dist/base/motion-button.d.ts +2 -0
- package/dist/base/motion-button.js +23 -0
- package/dist/base/navbar.d.ts +2 -0
- package/dist/base/navbar.js +10 -0
- package/dist/base/needle-field.d.ts +2 -0
- package/dist/base/needle-field.js +7 -0
- package/dist/base/number-input.d.ts +2 -0
- package/dist/base/number-input.js +9 -0
- package/dist/base/order-book.d.ts +2 -0
- package/dist/base/order-book.js +7 -0
- package/dist/base/pay-methods.d.ts +2 -0
- package/dist/base/pay-methods.js +7 -0
- package/dist/base/payment-status.d.ts +2 -0
- package/dist/base/payment-status.js +7 -0
- package/dist/base/pixel-reveal.d.ts +2 -0
- package/dist/base/pixel-reveal.js +7 -0
- package/dist/base/price-chart.d.ts +2 -0
- package/dist/base/price-chart.js +7 -0
- package/dist/base/pricing.d.ts +2 -0
- package/dist/base/pricing.js +14 -0
- package/dist/base/radio-group.d.ts +2 -0
- package/dist/base/radio-group.js +11 -0
- package/dist/base/scramble-text.d.ts +2 -0
- package/dist/base/scramble-text.js +7 -0
- package/dist/base/segmented-control.d.ts +2 -0
- package/dist/base/segmented-control.js +9 -0
- package/dist/base/select.d.ts +2 -0
- package/dist/base/select.js +9 -0
- package/dist/base/settings-panel.d.ts +2 -0
- package/dist/base/settings-panel.js +10 -0
- package/dist/base/sign-in.d.ts +2 -0
- package/dist/base/sign-in.js +10 -0
- package/dist/base/skeleton.d.ts +2 -0
- package/dist/base/skeleton.js +13 -0
- package/dist/base/slider.d.ts +2 -0
- package/dist/base/slider.js +9 -0
- package/dist/base/snap-grid.d.ts +2 -0
- package/dist/base/snap-grid.js +7 -0
- package/dist/base/spinner.d.ts +2 -0
- package/dist/base/spinner.js +11 -0
- package/dist/base/split-flap.d.ts +2 -0
- package/dist/base/split-flap.js +7 -0
- package/dist/base/spotlight-grid.d.ts +2 -0
- package/dist/base/spotlight-grid.js +7 -0
- package/dist/base/switch.d.ts +2 -0
- package/dist/base/switch.js +9 -0
- package/dist/base/tabs.d.ts +2 -0
- package/dist/base/tabs.js +9 -0
- package/dist/base/tag-input.d.ts +2 -0
- package/dist/base/tag-input.js +9 -0
- package/dist/base/textarea-aui-001.d.ts +2 -0
- package/dist/base/textarea-aui-001.js +9 -0
- package/dist/base/textarea-aui-002.d.ts +2 -0
- package/dist/base/textarea-aui-002.js +9 -0
- package/dist/base/textarea-aui-003.d.ts +2 -0
- package/dist/base/textarea-aui-003.js +9 -0
- package/dist/base/textarea-aui-004.d.ts +2 -0
- package/dist/base/textarea-aui-004.js +9 -0
- package/dist/base/textarea-aui-005.d.ts +2 -0
- package/dist/base/textarea-aui-005.js +9 -0
- package/dist/base/textarea-aui-006.d.ts +2 -0
- package/dist/base/textarea-aui-006.js +9 -0
- package/dist/base/textarea-aui-007.d.ts +2 -0
- package/dist/base/textarea-aui-007.js +9 -0
- package/dist/base/textarea-aui-008.d.ts +2 -0
- package/dist/base/textarea-aui-008.js +9 -0
- package/dist/base/textarea.d.ts +2 -0
- package/dist/base/textarea.js +9 -0
- package/dist/base/toast.d.ts +2 -0
- package/dist/base/toast.js +11 -0
- package/dist/base/tooltip.d.ts +2 -0
- package/dist/base/tooltip.js +9 -0
- package/dist/base/trade-ticket.d.ts +2 -0
- package/dist/base/trade-ticket.js +7 -0
- package/dist/base/variant-picker.d.ts +2 -0
- package/dist/base/variant-picker.js +7 -0
- package/dist/base.d.ts +1 -0
- package/dist/base.js +315 -0
- package/dist/bubble-wrap.d.ts +2 -0
- package/dist/bubble-wrap.js +7 -0
- package/dist/button.d.ts +2 -0
- package/dist/button.js +13 -0
- package/dist/candlestick.d.ts +2 -0
- package/dist/candlestick.js +7 -0
- package/dist/card-checkout.d.ts +2 -0
- package/dist/card-checkout.js +7 -0
- package/dist/cart-drawer.d.ts +2 -0
- package/dist/cart-drawer.js +7 -0
- package/dist/checkbox.d.ts +2 -0
- package/dist/checkbox.js +9 -0
- package/dist/chunk-2KJNBHUV.js +137 -0
- package/dist/chunk-2OGTIQVU.js +237 -0
- package/dist/chunk-2Z5Z4YYZ.js +57 -0
- package/dist/chunk-37JQA6PI.js +98 -0
- package/dist/chunk-3JNUC3FU.js +92 -0
- package/dist/chunk-4L4EKC46.js +360 -0
- package/dist/chunk-4WK3F76T.js +57 -0
- package/dist/chunk-56BEMYK3.js +36 -0
- package/dist/chunk-5A36JYGI.js +71 -0
- package/dist/chunk-5RPJPL2V.js +102 -0
- package/dist/chunk-6322OCI4.js +189 -0
- package/dist/chunk-66OZ7CBK.js +153 -0
- package/dist/chunk-6AZKJUL4.js +67 -0
- package/dist/chunk-7L4YE6HM.js +56 -0
- package/dist/chunk-7MGB7FVD.js +221 -0
- package/dist/chunk-7RCBOTWL.js +138 -0
- package/dist/chunk-7TK42PS3.js +247 -0
- package/dist/chunk-7UMBKY3H.js +105 -0
- package/dist/chunk-AS6RA64I.js +53 -0
- package/dist/chunk-B7V4ZTKI.js +53 -0
- package/dist/chunk-BH2DLHFW.js +145 -0
- package/dist/chunk-BOJCW7Z7.js +131 -0
- package/dist/chunk-C2G5BUEG.js +197 -0
- package/dist/chunk-CLCP2GFW.js +93 -0
- package/dist/chunk-CNY76NHF.js +92 -0
- package/dist/chunk-CTO36MY2.js +87 -0
- package/dist/chunk-DK2BM32V.js +71 -0
- package/dist/chunk-DQWKBQBT.js +68 -0
- package/dist/chunk-DUGKLVQJ.js +89 -0
- package/dist/chunk-E4MX3E3B.js +66 -0
- package/dist/chunk-EG7NXGDD.js +109 -0
- package/dist/chunk-EVSTTLOT.js +141 -0
- package/dist/chunk-F5I6EK7F.js +55 -0
- package/dist/chunk-FATLQKRY.js +88 -0
- package/dist/chunk-FK2LKLRN.js +89 -0
- package/dist/chunk-FT7WZV3D.js +184 -0
- package/dist/chunk-FUNXYRSG.js +198 -0
- package/dist/chunk-H4URFOQC.js +69 -0
- package/dist/chunk-H5C7HOQJ.js +84 -0
- package/dist/chunk-JAQANAOP.js +247 -0
- package/dist/chunk-JIVLBHHE.js +266 -0
- package/dist/chunk-KEMMI76V.js +94 -0
- package/dist/chunk-N6FMS47F.js +225 -0
- package/dist/chunk-NDBLIYMX.js +62 -0
- package/dist/chunk-OBU2UOYI.js +96 -0
- package/dist/chunk-OLNMOTAD.js +141 -0
- package/dist/chunk-OQU6KGVR.js +70 -0
- package/dist/chunk-PIC5ZIR3.js +55 -0
- package/dist/chunk-PSTMF66E.js +79 -0
- package/dist/chunk-Q7OHWQP2.js +108 -0
- package/dist/chunk-QDRBMWRX.js +190 -0
- package/dist/chunk-R3LWG23K.js +138 -0
- package/dist/chunk-RS3XHHDE.js +77 -0
- package/dist/chunk-SAJ4D3Z2.js +206 -0
- package/dist/chunk-SATIWCJQ.js +141 -0
- package/dist/chunk-SRGDJSW7.js +107 -0
- package/dist/chunk-T4SOPNM5.js +107 -0
- package/dist/chunk-TCID6NNE.js +69 -0
- package/dist/chunk-TIAKMX7U.js +49 -0
- package/dist/chunk-TRIXMWR3.js +74 -0
- package/dist/chunk-TRR3J5NJ.js +28 -0
- package/dist/chunk-U7BYEW3Y.js +115 -0
- package/dist/chunk-U7VX6A6K.js +136 -0
- package/dist/chunk-UAP47MSR.js +230 -0
- package/dist/chunk-UXRTPEH7.js +57 -0
- package/dist/chunk-VGBP42IZ.js +84 -0
- package/dist/chunk-VWYX5IRP.js +92 -0
- package/dist/chunk-WRB66XD3.js +31 -0
- package/dist/chunk-WSL4JGEA.js +87 -0
- package/dist/chunk-WVIV4JBH.js +69 -0
- package/dist/chunk-WWQV7LE7.js +198 -0
- package/dist/chunk-XIU7K2YE.js +60 -0
- package/dist/chunk-XNL5BLUR.js +283 -0
- package/dist/chunk-XRVVZA2Y.js +360 -0
- package/dist/chunk-XYNJQGYX.js +107 -0
- package/dist/chunk-YON5SU2G.js +156 -0
- package/dist/chunk-Z6IAITZJ.js +214 -0
- package/dist/chunk-ZE7BT2K4.js +173 -0
- package/dist/chunk-ZN3W5PAI.js +107 -0
- package/dist/chunk-ZQV2GAWY.js +178 -0
- package/dist/chunk-ZRGPSYW6.js +237 -0
- package/dist/chunk-ZWBJUJTR.js +83 -0
- package/dist/combo-lock.d.ts +2 -0
- package/dist/combo-lock.js +7 -0
- package/dist/command-palette.d.ts +2 -0
- package/dist/command-palette.js +11 -0
- package/dist/dial-knob.d.ts +2 -0
- package/dist/dial-knob.js +7 -0
- package/dist/dialog.d.ts +2 -0
- package/dist/dialog.js +9 -0
- package/dist/dropdown-menu.d.ts +2 -0
- package/dist/dropdown-menu.js +10 -0
- package/dist/elastic-string.d.ts +2 -0
- package/dist/elastic-string.js +7 -0
- package/dist/field.d.ts +2 -0
- package/dist/field.js +11 -0
- package/dist/footer.d.ts +2 -0
- package/dist/footer.js +12 -0
- package/dist/gravity-pills.d.ts +2 -0
- package/dist/gravity-pills.js +7 -0
- package/dist/hold-to-confirm.d.ts +2 -0
- package/dist/hold-to-confirm.js +7 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +315 -0
- package/dist/ink-trail.d.ts +2 -0
- package/dist/ink-trail.js +7 -0
- package/dist/input.d.ts +2 -0
- package/dist/input.js +11 -0
- package/dist/kbd.d.ts +2 -0
- package/dist/kbd.js +11 -0
- package/dist/morse-tap.d.ts +2 -0
- package/dist/morse-tap.js +7 -0
- package/dist/motion-button.d.ts +2 -0
- package/dist/motion-button.js +23 -0
- package/dist/navbar.d.ts +2 -0
- package/dist/navbar.js +10 -0
- package/dist/needle-field.d.ts +2 -0
- package/dist/needle-field.js +7 -0
- package/dist/number-input.d.ts +2 -0
- package/dist/number-input.js +9 -0
- package/dist/order-book.d.ts +2 -0
- package/dist/order-book.js +7 -0
- package/dist/pay-methods.d.ts +2 -0
- package/dist/pay-methods.js +7 -0
- package/dist/payment-status.d.ts +2 -0
- package/dist/payment-status.js +7 -0
- package/dist/pixel-reveal.d.ts +2 -0
- package/dist/pixel-reveal.js +7 -0
- package/dist/price-chart.d.ts +2 -0
- package/dist/price-chart.js +7 -0
- package/dist/pricing.d.ts +2 -0
- package/dist/pricing.js +14 -0
- package/dist/radio-group.d.ts +2 -0
- package/dist/radio-group.js +11 -0
- package/dist/scramble-text.d.ts +2 -0
- package/dist/scramble-text.js +7 -0
- package/dist/segmented-control.d.ts +2 -0
- package/dist/segmented-control.js +9 -0
- package/dist/select.d.ts +2 -0
- package/dist/select.js +9 -0
- package/dist/settings-panel.d.ts +2 -0
- package/dist/settings-panel.js +10 -0
- package/dist/sign-in.d.ts +2 -0
- package/dist/sign-in.js +10 -0
- package/dist/skeleton.d.ts +2 -0
- package/dist/skeleton.js +13 -0
- package/dist/slider.d.ts +2 -0
- package/dist/slider.js +9 -0
- package/dist/snap-grid.d.ts +2 -0
- package/dist/snap-grid.js +7 -0
- package/dist/spinner.d.ts +2 -0
- package/dist/spinner.js +11 -0
- package/dist/split-flap.d.ts +2 -0
- package/dist/split-flap.js +7 -0
- package/dist/spotlight-grid.d.ts +2 -0
- package/dist/spotlight-grid.js +7 -0
- package/dist/styles.css +46 -0
- package/dist/switch.d.ts +2 -0
- package/dist/switch.js +9 -0
- package/dist/tabs.d.ts +2 -0
- package/dist/tabs.js +9 -0
- package/dist/tag-input.d.ts +2 -0
- package/dist/tag-input.js +9 -0
- package/dist/textarea-aui-001.d.ts +2 -0
- package/dist/textarea-aui-001.js +9 -0
- package/dist/textarea-aui-002.d.ts +2 -0
- package/dist/textarea-aui-002.js +9 -0
- package/dist/textarea-aui-003.d.ts +2 -0
- package/dist/textarea-aui-003.js +9 -0
- package/dist/textarea-aui-004.d.ts +2 -0
- package/dist/textarea-aui-004.js +9 -0
- package/dist/textarea-aui-005.d.ts +2 -0
- package/dist/textarea-aui-005.js +9 -0
- package/dist/textarea-aui-006.d.ts +2 -0
- package/dist/textarea-aui-006.js +9 -0
- package/dist/textarea-aui-007.d.ts +2 -0
- package/dist/textarea-aui-007.js +9 -0
- package/dist/textarea-aui-008.d.ts +2 -0
- package/dist/textarea-aui-008.js +9 -0
- package/dist/textarea.d.ts +2 -0
- package/dist/textarea.js +9 -0
- package/dist/toast.d.ts +2 -0
- package/dist/toast.js +11 -0
- package/dist/tooltip.d.ts +2 -0
- package/dist/tooltip.js +9 -0
- package/dist/trade-ticket.d.ts +2 -0
- package/dist/trade-ticket.js +7 -0
- package/dist/types/components/kit/accordion.d.ts +19 -0
- package/dist/types/components/kit/avatar.d.ts +32 -0
- package/dist/types/components/kit/badge.d.ts +23 -0
- package/dist/types/components/kit/base/accordion.d.ts +19 -0
- package/dist/types/components/kit/base/avatar.d.ts +32 -0
- package/dist/types/components/kit/base/button.d.ts +38 -0
- package/dist/types/components/kit/base/checkbox.d.ts +19 -0
- package/dist/types/components/kit/base/command-palette.d.ts +38 -0
- package/dist/types/components/kit/base/dialog.d.ts +21 -0
- package/dist/types/components/kit/base/dropdown-menu.d.ts +32 -0
- package/dist/types/components/kit/base/footer.d.ts +29 -0
- package/dist/types/components/kit/base/navbar.d.ts +54 -0
- package/dist/types/components/kit/base/pricing.d.ts +39 -0
- package/dist/types/components/kit/base/radio-group.d.ts +29 -0
- package/dist/types/components/kit/base/segmented-control.d.ts +23 -0
- package/dist/types/components/kit/base/select.d.ts +29 -0
- package/dist/types/components/kit/base/settings-panel.d.ts +29 -0
- package/dist/types/components/kit/base/sign-in.d.ts +17 -0
- package/dist/types/components/kit/base/slider.d.ts +27 -0
- package/dist/types/components/kit/base/switch.d.ts +22 -0
- package/dist/types/components/kit/base/tabs.d.ts +23 -0
- package/dist/types/components/kit/base/tooltip.d.ts +20 -0
- package/dist/types/components/kit/base/variants/textarea-aui-008.d.ts +23 -0
- package/dist/types/components/kit/button.d.ts +38 -0
- package/dist/types/components/kit/checkbox.d.ts +19 -0
- package/dist/types/components/kit/command-palette.d.ts +38 -0
- package/dist/types/components/kit/dialog.d.ts +21 -0
- package/dist/types/components/kit/dropdown-menu.d.ts +32 -0
- package/dist/types/components/kit/field.d.ts +19 -0
- package/dist/types/components/kit/footer.d.ts +29 -0
- package/dist/types/components/kit/input.d.ts +19 -0
- package/dist/types/components/kit/kbd.d.ts +26 -0
- package/dist/types/components/kit/motion-button.d.ts +30 -0
- package/dist/types/components/kit/navbar.d.ts +54 -0
- package/dist/types/components/kit/number-input.d.ts +20 -0
- package/dist/types/components/kit/pricing.d.ts +39 -0
- package/dist/types/components/kit/radio-group.d.ts +29 -0
- package/dist/types/components/kit/segmented-control.d.ts +23 -0
- package/dist/types/components/kit/select.d.ts +29 -0
- package/dist/types/components/kit/settings-panel.d.ts +29 -0
- package/dist/types/components/kit/sign-in.d.ts +17 -0
- package/dist/types/components/kit/skeleton.d.ts +20 -0
- package/dist/types/components/kit/slider.d.ts +27 -0
- package/dist/types/components/kit/spinner.d.ts +18 -0
- package/dist/types/components/kit/switch.d.ts +22 -0
- package/dist/types/components/kit/tabs.d.ts +23 -0
- package/dist/types/components/kit/tag-input.d.ts +16 -0
- package/dist/types/components/kit/textarea.d.ts +11 -0
- package/dist/types/components/kit/toast.d.ts +32 -0
- package/dist/types/components/kit/tooltip.d.ts +20 -0
- package/dist/types/components/kit/variants/textarea-aui-001.d.ts +13 -0
- package/dist/types/components/kit/variants/textarea-aui-002.d.ts +13 -0
- package/dist/types/components/kit/variants/textarea-aui-003.d.ts +16 -0
- package/dist/types/components/kit/variants/textarea-aui-004.d.ts +7 -0
- package/dist/types/components/kit/variants/textarea-aui-005.d.ts +8 -0
- package/dist/types/components/kit/variants/textarea-aui-006.d.ts +21 -0
- package/dist/types/components/kit/variants/textarea-aui-007.d.ts +20 -0
- package/dist/types/components/kit/variants/textarea-aui-008.d.ts +23 -0
- package/dist/types/components/lab/blocks/AddToCart.d.ts +10 -0
- package/dist/types/components/lab/blocks/BubbleWrap.d.ts +2 -0
- package/dist/types/components/lab/blocks/Candlestick.d.ts +2 -0
- package/dist/types/components/lab/blocks/CardCheckout.d.ts +5 -0
- package/dist/types/components/lab/blocks/CartDrawer.d.ts +2 -0
- package/dist/types/components/lab/blocks/ComboLock.d.ts +2 -0
- package/dist/types/components/lab/blocks/DialKnob.d.ts +2 -0
- package/dist/types/components/lab/blocks/ElasticString.d.ts +2 -0
- package/dist/types/components/lab/blocks/GravityPills.d.ts +2 -0
- package/dist/types/components/lab/blocks/HoldToConfirm.d.ts +6 -0
- package/dist/types/components/lab/blocks/InkTrail.d.ts +2 -0
- package/dist/types/components/lab/blocks/MorseTap.d.ts +2 -0
- package/dist/types/components/lab/blocks/NeedleField.d.ts +2 -0
- package/dist/types/components/lab/blocks/OrderBook.d.ts +2 -0
- package/dist/types/components/lab/blocks/PayMethods.d.ts +2 -0
- package/dist/types/components/lab/blocks/PaymentStatus.d.ts +2 -0
- package/dist/types/components/lab/blocks/PixelReveal.d.ts +2 -0
- package/dist/types/components/lab/blocks/PriceChart.d.ts +2 -0
- package/dist/types/components/lab/blocks/ScrambleText.d.ts +1 -0
- package/dist/types/components/lab/blocks/SnapGrid.d.ts +2 -0
- package/dist/types/components/lab/blocks/SplitFlap.d.ts +2 -0
- package/dist/types/components/lab/blocks/SpotlightGrid.d.ts +1 -0
- package/dist/types/components/lab/blocks/TradeTicket.d.ts +2 -0
- package/dist/types/components/lab/blocks/VariantPicker.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/accordion.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/add-to-cart.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/avatar.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/badge.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/base/accordion.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/base/add-to-cart.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/base/avatar.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/base/badge.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/base/bubble-wrap.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/base/button.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/base/candlestick.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/base/card-checkout.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/base/cart-drawer.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/base/checkbox.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/base/combo-lock.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/base/command-palette.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/base/dial-knob.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/base/dialog.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/base/dropdown-menu.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/base/elastic-string.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/base/field.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/base/footer.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/base/gravity-pills.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/base/hold-to-confirm.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/base/ink-trail.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/base/input.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/base/kbd.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/base/morse-tap.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/base/motion-button.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/base/navbar.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/base/needle-field.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/base/number-input.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/base/order-book.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/base/pay-methods.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/base/payment-status.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/base/pixel-reveal.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/base/price-chart.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/base/pricing.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/base/radio-group.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/base/scramble-text.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/base/segmented-control.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/base/select.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/base/settings-panel.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/base/sign-in.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/base/skeleton.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/base/slider.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/base/snap-grid.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/base/spinner.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/base/split-flap.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/base/spotlight-grid.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/base/switch.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/base/tabs.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/base/tag-input.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/base/textarea-aui-001.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/base/textarea-aui-002.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/base/textarea-aui-003.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/base/textarea-aui-004.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/base/textarea-aui-005.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/base/textarea-aui-006.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/base/textarea-aui-007.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/base/textarea-aui-008.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/base/textarea.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/base/toast.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/base/tooltip.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/base/trade-ticket.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/base/variant-picker.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/base.d.ts +100 -0
- package/dist/types/packages/asta-ui/src/bubble-wrap.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/button.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/candlestick.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/card-checkout.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/cart-drawer.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/checkbox.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/combo-lock.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/command-palette.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/dial-knob.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/dialog.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/dropdown-menu.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/elastic-string.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/field.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/footer.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/gravity-pills.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/hold-to-confirm.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/index.d.ts +100 -0
- package/dist/types/packages/asta-ui/src/ink-trail.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/input.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/kbd.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/morse-tap.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/motion-button.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/navbar.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/needle-field.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/number-input.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/order-book.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/pay-methods.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/payment-status.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/pixel-reveal.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/price-chart.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/pricing.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/radio-group.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/scramble-text.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/segmented-control.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/select.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/settings-panel.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/sign-in.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/skeleton.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/slider.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/snap-grid.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/spinner.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/split-flap.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/spotlight-grid.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/switch.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/tabs.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/tag-input.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/textarea-aui-001.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/textarea-aui-002.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/textarea-aui-003.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/textarea-aui-004.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/textarea-aui-005.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/textarea-aui-006.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/textarea-aui-007.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/textarea-aui-008.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/textarea.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/toast.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/tooltip.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/trade-ticket.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/variant-picker.d.ts +2 -0
- package/dist/variant-picker.d.ts +2 -0
- package/dist/variant-picker.js +7 -0
- package/package.json +86 -4
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { type ReactNode, type RefObject } from "react";
|
|
2
|
+
export interface NavTile {
|
|
3
|
+
title: string;
|
|
4
|
+
description?: string;
|
|
5
|
+
href: string;
|
|
6
|
+
icon?: ReactNode;
|
|
7
|
+
/** Big tiles get a small mock preview in the corner. */
|
|
8
|
+
preview?: "chart" | "list" | "code";
|
|
9
|
+
}
|
|
10
|
+
export interface NavMenu {
|
|
11
|
+
/** Panel width in px (clamped to the space available). */
|
|
12
|
+
width?: number;
|
|
13
|
+
tiles?: NavTile[];
|
|
14
|
+
columns?: {
|
|
15
|
+
heading: string;
|
|
16
|
+
links: NavTile[];
|
|
17
|
+
}[];
|
|
18
|
+
feature?: {
|
|
19
|
+
title: string;
|
|
20
|
+
description: string;
|
|
21
|
+
href: string;
|
|
22
|
+
cta: string;
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
export interface NavItem {
|
|
26
|
+
label: string;
|
|
27
|
+
href?: string;
|
|
28
|
+
menu?: NavMenu;
|
|
29
|
+
}
|
|
30
|
+
export interface NavbarProps {
|
|
31
|
+
brand: ReactNode;
|
|
32
|
+
brandHref?: string;
|
|
33
|
+
items: NavItem[];
|
|
34
|
+
/** Quiet link that folds away once the page scrolls. */
|
|
35
|
+
docs?: {
|
|
36
|
+
label: string;
|
|
37
|
+
href: string;
|
|
38
|
+
};
|
|
39
|
+
cta: {
|
|
40
|
+
label: string;
|
|
41
|
+
href: string;
|
|
42
|
+
};
|
|
43
|
+
/** Element whose scroll drives the folded state (defaults to the window). */
|
|
44
|
+
scrollRoot?: RefObject<HTMLElement | null>;
|
|
45
|
+
className?: string;
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* Site header with a mega menu. One shared panel sits under the bar and morphs its size between
|
|
49
|
+
* sections while the new content slides in from the side you moved toward. Hovering a tile dims the
|
|
50
|
+
* rest. Below 560px of container width it collapses to a burger and a sheet of accordion sections.
|
|
51
|
+
* Wrap it in an element with `@container` (the demo does) or it falls back to the viewport width.
|
|
52
|
+
*/
|
|
53
|
+
export declare function Navbar({ brand, brandHref, items, docs, cta, scrollRoot, className }: NavbarProps): import("react").JSX.Element;
|
|
54
|
+
export default Navbar;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { type ReactNode } from "react";
|
|
2
|
+
export interface NumberInputProps {
|
|
3
|
+
value?: number;
|
|
4
|
+
defaultValue?: number;
|
|
5
|
+
onChange?: (value: number) => void;
|
|
6
|
+
min?: number;
|
|
7
|
+
max?: number;
|
|
8
|
+
step?: number;
|
|
9
|
+
label?: string;
|
|
10
|
+
/** Text after the number, e.g. "seats" or "kg". */
|
|
11
|
+
suffix?: ReactNode;
|
|
12
|
+
size?: "sm" | "md";
|
|
13
|
+
className?: string;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* A stepper. Hold − or + and it repeats, faster the longer you hold. Arrow keys step, Page Up/Down step by
|
|
17
|
+
* ten, Home/End jump to min/max, and typing digits enters a value.
|
|
18
|
+
*/
|
|
19
|
+
export declare function NumberInput({ value, defaultValue, onChange, min, max, step, label, suffix, size, className }: NumberInputProps): import("react").JSX.Element;
|
|
20
|
+
export default NumberInput;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
export type Billing = "monthly" | "yearly";
|
|
2
|
+
export interface Plan {
|
|
3
|
+
name: string;
|
|
4
|
+
description: string;
|
|
5
|
+
/** Price per month for each billing period. */
|
|
6
|
+
price: Record<Billing, number>;
|
|
7
|
+
features: string[];
|
|
8
|
+
cta: {
|
|
9
|
+
label: string;
|
|
10
|
+
href: string;
|
|
11
|
+
};
|
|
12
|
+
/** The recommended plan gets the dark card and a badge. */
|
|
13
|
+
highlight?: string;
|
|
14
|
+
}
|
|
15
|
+
export interface PricingProps {
|
|
16
|
+
plans: Plan[];
|
|
17
|
+
currency?: string;
|
|
18
|
+
/** Badge next to "Yearly", e.g. "−20%". */
|
|
19
|
+
saving?: string;
|
|
20
|
+
defaultBilling?: Billing;
|
|
21
|
+
className?: string;
|
|
22
|
+
}
|
|
23
|
+
/** A number whose digits roll, right to left, when it changes. Screen readers get the plain value. */
|
|
24
|
+
export declare function RollingNumber({ value, className }: {
|
|
25
|
+
value: number;
|
|
26
|
+
className?: string;
|
|
27
|
+
}): import("react").JSX.Element;
|
|
28
|
+
/** Two options with a pill that slides between them. */
|
|
29
|
+
export declare function BillingSwitch({ value, onChange, saving }: {
|
|
30
|
+
value: Billing;
|
|
31
|
+
onChange: (b: Billing) => void;
|
|
32
|
+
saving?: string;
|
|
33
|
+
}): import("react").JSX.Element;
|
|
34
|
+
/**
|
|
35
|
+
* Plans with a monthly / yearly switch. Prices roll digit by digit to the new amount; the highlighted
|
|
36
|
+
* plan sits on an inverted card. Cards stack below 540px of container width (wrap it in `@container`).
|
|
37
|
+
*/
|
|
38
|
+
export declare function Pricing({ plans, currency, saving, defaultBilling, className }: PricingProps): import("react").JSX.Element;
|
|
39
|
+
export default Pricing;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { type ReactNode } from "react";
|
|
2
|
+
export interface RadioOption {
|
|
3
|
+
value: string;
|
|
4
|
+
label: ReactNode;
|
|
5
|
+
description?: ReactNode;
|
|
6
|
+
/** Shown on the right of a card, e.g. a price. */
|
|
7
|
+
aside?: ReactNode;
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
}
|
|
10
|
+
export interface RadioGroupProps {
|
|
11
|
+
options: RadioOption[];
|
|
12
|
+
value?: string;
|
|
13
|
+
defaultValue?: string;
|
|
14
|
+
onChange?: (value: string) => void;
|
|
15
|
+
/** `cards` (default): option cards with a ring that glides to the selection. `list`: compact rows. */
|
|
16
|
+
variant?: "cards" | "list";
|
|
17
|
+
/** Cards per row on wider screens. */
|
|
18
|
+
columns?: 1 | 2 | 3;
|
|
19
|
+
label?: string;
|
|
20
|
+
name?: string;
|
|
21
|
+
className?: string;
|
|
22
|
+
}
|
|
23
|
+
/** Choose one, on Radix Radio Group: arrow keys move and select (roving focus) like native radios, and `name` submits with a form. */
|
|
24
|
+
export declare function RadioGroup({ options, value, defaultValue, onChange, variant, columns, label, name, className }: RadioGroupProps): import("react").JSX.Element;
|
|
25
|
+
/** The radio circle: the inner dot pops in with a small overshoot. */
|
|
26
|
+
export declare function Dot({ on }: {
|
|
27
|
+
on: boolean;
|
|
28
|
+
}): import("react").JSX.Element;
|
|
29
|
+
export default RadioGroup;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { type ReactNode } from "react";
|
|
2
|
+
export interface Segment {
|
|
3
|
+
value: string;
|
|
4
|
+
label: ReactNode;
|
|
5
|
+
icon?: ReactNode;
|
|
6
|
+
}
|
|
7
|
+
export interface SegmentedControlProps {
|
|
8
|
+
segments: Segment[];
|
|
9
|
+
value?: string;
|
|
10
|
+
defaultValue?: string;
|
|
11
|
+
onChange?: (value: string) => void;
|
|
12
|
+
size?: "sm" | "md";
|
|
13
|
+
/** Stretch to the parent's width, segments sharing it evenly. */
|
|
14
|
+
full?: boolean;
|
|
15
|
+
label?: string;
|
|
16
|
+
className?: string;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* A pill slides between options. While it travels it stretches toward the target and settles back,
|
|
20
|
+
* which reads as a small squash rather than a plain slide. Built on Radix Radio Group, so ← → move and select.
|
|
21
|
+
*/
|
|
22
|
+
export declare function SegmentedControl({ segments, value, defaultValue, onChange, size, full, label, className }: SegmentedControlProps): import("react").JSX.Element;
|
|
23
|
+
export default SegmentedControl;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { type ReactNode } from "react";
|
|
2
|
+
export interface SelectOption {
|
|
3
|
+
value: string;
|
|
4
|
+
label: string;
|
|
5
|
+
icon?: ReactNode;
|
|
6
|
+
hint?: string;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
}
|
|
9
|
+
export interface SelectProps {
|
|
10
|
+
options: SelectOption[];
|
|
11
|
+
value?: string;
|
|
12
|
+
defaultValue?: string;
|
|
13
|
+
onChange?: (value: string) => void;
|
|
14
|
+
placeholder?: string;
|
|
15
|
+
/** Adds a filter box at the top of the list. */
|
|
16
|
+
searchable?: boolean;
|
|
17
|
+
label?: string;
|
|
18
|
+
size?: "sm" | "md";
|
|
19
|
+
/** Form field name (submits the value with a form). */
|
|
20
|
+
name?: string;
|
|
21
|
+
disabled?: boolean;
|
|
22
|
+
className?: string;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* A select. Without `searchable` it is Radix Select: arrows, Home/End, type-ahead, Escape, form support
|
|
26
|
+
* and collision handling. With `searchable` it is a Radix Popover holding a filter box and a listbox.
|
|
27
|
+
*/
|
|
28
|
+
export declare function Select(props: SelectProps): import("react").JSX.Element;
|
|
29
|
+
export default Select;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
export interface Settings {
|
|
2
|
+
name: string;
|
|
3
|
+
email: string;
|
|
4
|
+
notify: {
|
|
5
|
+
product: boolean;
|
|
6
|
+
mentions: boolean;
|
|
7
|
+
digest: boolean;
|
|
8
|
+
};
|
|
9
|
+
theme: "light" | "dark" | "system";
|
|
10
|
+
language: string;
|
|
11
|
+
}
|
|
12
|
+
export interface SettingsPanelHandle {
|
|
13
|
+
/** Returns false (and nudges the save bar) when there are unsaved changes. */
|
|
14
|
+
requestLeave: () => boolean;
|
|
15
|
+
}
|
|
16
|
+
export interface SettingsPanelProps {
|
|
17
|
+
initial: Settings;
|
|
18
|
+
/** Persist the settings; the bar shows a spinner until it resolves. */
|
|
19
|
+
onSave?: (s: Settings) => Promise<void>;
|
|
20
|
+
languages?: string[];
|
|
21
|
+
className?: string;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* A settings form whose save bar slides up as soon as anything differs from the saved values. Reset puts
|
|
25
|
+
* everything back; Save shows progress, then "Saved", then the bar slides away. `requestLeave()` (via ref)
|
|
26
|
+
* shakes the bar when there are unsaved changes.
|
|
27
|
+
*/
|
|
28
|
+
export declare const SettingsPanel: import("react").ForwardRefExoticComponent<SettingsPanelProps & import("react").RefAttributes<SettingsPanelHandle>>;
|
|
29
|
+
export default SettingsPanel;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export interface SignInCardProps {
|
|
2
|
+
title?: string;
|
|
3
|
+
subtitle?: string;
|
|
4
|
+
/** Called with the credentials; resolve to finish, reject (with a message) to show an error. */
|
|
5
|
+
onSubmit?: (data: {
|
|
6
|
+
email: string;
|
|
7
|
+
password: string;
|
|
8
|
+
}) => Promise<void>;
|
|
9
|
+
onSocial?: (provider: "google" | "github") => void;
|
|
10
|
+
className?: string;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* An email + password card with social sign-in, inline validation (errors appear on blur or submit and the
|
|
14
|
+
* field shakes once), a submit that shows progress and a success state that morphs in.
|
|
15
|
+
*/
|
|
16
|
+
export declare function SignInCard({ title, subtitle, onSubmit, onSocial, className }: SignInCardProps): import("react").JSX.Element;
|
|
17
|
+
export default SignInCard;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { CSSProperties } from "react";
|
|
2
|
+
export interface SkeletonProps {
|
|
3
|
+
/** `line` (text), `circle` (avatar) or `block` (image, card). */
|
|
4
|
+
shape?: "line" | "circle" | "block";
|
|
5
|
+
width?: CSSProperties["width"];
|
|
6
|
+
height?: CSSProperties["height"];
|
|
7
|
+
className?: string;
|
|
8
|
+
}
|
|
9
|
+
/** A placeholder with a soft light sweeping across it. Hidden from screen readers. */
|
|
10
|
+
export declare function Skeleton({ shape, width, height, className }: SkeletonProps): import("react").JSX.Element;
|
|
11
|
+
/** Several lines of text; the last one is shorter, like a real paragraph. */
|
|
12
|
+
export declare function SkeletonText({ lines, className }: {
|
|
13
|
+
lines?: number;
|
|
14
|
+
className?: string;
|
|
15
|
+
}): import("react").JSX.Element;
|
|
16
|
+
/** A ready-made card placeholder: image, avatar, title and two lines. */
|
|
17
|
+
export declare function SkeletonCard({ className }: {
|
|
18
|
+
className?: string;
|
|
19
|
+
}): import("react").JSX.Element;
|
|
20
|
+
export default Skeleton;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
export interface SliderProps {
|
|
2
|
+
value?: number;
|
|
3
|
+
defaultValue?: number;
|
|
4
|
+
onValueChange?: (v: number) => void;
|
|
5
|
+
/** Fires once when the user lets go (pointer up or a key press). */
|
|
6
|
+
onValueCommit?: (v: number) => void;
|
|
7
|
+
min?: number;
|
|
8
|
+
max?: number;
|
|
9
|
+
step?: number;
|
|
10
|
+
/** Draw a tick for every step (true) or this many evenly spaced ticks. */
|
|
11
|
+
ticks?: boolean | number;
|
|
12
|
+
/** Format the value in the bubble and for screen readers. */
|
|
13
|
+
format?: (v: number) => string;
|
|
14
|
+
disabled?: boolean;
|
|
15
|
+
/** Form field name. */
|
|
16
|
+
name?: string;
|
|
17
|
+
"aria-label"?: string;
|
|
18
|
+
"aria-labelledby"?: string;
|
|
19
|
+
className?: string;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* A range slider on Radix Slider (pointer, touch, arrows, Page Up/Down, Home/End, ARIA, form value) with a
|
|
23
|
+
* value bubble that pops up while you drag, hover or focus it. Clicks and key presses glide; drags follow
|
|
24
|
+
* the pointer exactly.
|
|
25
|
+
*/
|
|
26
|
+
export declare function Slider({ value, defaultValue, onValueChange, onValueCommit, min, max, step, ticks, format, disabled, name, className, ...aria }: SliderProps): import("react").JSX.Element;
|
|
27
|
+
export default Slider;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export type SpinnerVariant = "ring" | "dots" | "bars" | "orbit";
|
|
2
|
+
/** Loaders in currentColor, sized by font-size (1em) unless you pass a class. */
|
|
3
|
+
export declare function Spinner({ variant, label, className }: {
|
|
4
|
+
variant?: SpinnerVariant;
|
|
5
|
+
label?: string;
|
|
6
|
+
className?: string;
|
|
7
|
+
}): import("react").JSX.Element;
|
|
8
|
+
/**
|
|
9
|
+
* A progress bar. Pass `value` (0–100) for determinate progress; leave it out for an indeterminate
|
|
10
|
+
* sweep.
|
|
11
|
+
*/
|
|
12
|
+
export declare function Progress({ value, label, showValue, className }: {
|
|
13
|
+
value?: number;
|
|
14
|
+
label?: string;
|
|
15
|
+
showValue?: boolean;
|
|
16
|
+
className?: string;
|
|
17
|
+
}): import("react").JSX.Element;
|
|
18
|
+
export default Spinner;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { type ReactNode } from "react";
|
|
2
|
+
export type SwitchSize = "sm" | "md" | "lg";
|
|
3
|
+
export interface SwitchProps {
|
|
4
|
+
checked?: boolean;
|
|
5
|
+
defaultChecked?: boolean;
|
|
6
|
+
onCheckedChange?: (checked: boolean) => void;
|
|
7
|
+
size?: SwitchSize;
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
label?: ReactNode;
|
|
10
|
+
description?: ReactNode;
|
|
11
|
+
id?: string;
|
|
12
|
+
/** Form field name. */
|
|
13
|
+
name?: string;
|
|
14
|
+
"aria-label"?: string;
|
|
15
|
+
className?: string;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* An on/off switch on Radix Switch (ARIA, Space/Enter, native form value through `name`). While pressed the
|
|
19
|
+
* thumb stretches toward where it's about to go.
|
|
20
|
+
*/
|
|
21
|
+
export declare function Switch({ checked, defaultChecked, onCheckedChange, size, disabled, label, description, id, name, className, "aria-label": ariaLabel }: SwitchProps): import("react").JSX.Element;
|
|
22
|
+
export default Switch;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { type ReactNode } from "react";
|
|
2
|
+
export interface Tab {
|
|
3
|
+
value: string;
|
|
4
|
+
label: ReactNode;
|
|
5
|
+
content: ReactNode;
|
|
6
|
+
count?: number;
|
|
7
|
+
}
|
|
8
|
+
export interface TabsProps {
|
|
9
|
+
tabs: Tab[];
|
|
10
|
+
value?: string;
|
|
11
|
+
defaultValue?: string;
|
|
12
|
+
onChange?: (value: string) => void;
|
|
13
|
+
/** `underline` (default): a bar that stretches between tabs. `pill`: a soft slab behind the active tab. */
|
|
14
|
+
variant?: "underline" | "pill";
|
|
15
|
+
label?: string;
|
|
16
|
+
className?: string;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Tabs on Radix Tabs (roving focus, arrows, Home/End, ARIA wiring). The indicator stretches across the gap
|
|
20
|
+
* before snapping to the new tab (the leading edge moves first, the trailing edge follows), and panels cross-fade.
|
|
21
|
+
*/
|
|
22
|
+
export declare function Tabs({ tabs, value, defaultValue, onChange, variant, label, className }: TabsProps): import("react").JSX.Element;
|
|
23
|
+
export default Tabs;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export interface TagInputProps {
|
|
2
|
+
value?: string[];
|
|
3
|
+
defaultValue?: string[];
|
|
4
|
+
onChange?: (tags: string[]) => void;
|
|
5
|
+
/** Most tags allowed. */
|
|
6
|
+
max?: number;
|
|
7
|
+
placeholder?: string;
|
|
8
|
+
label?: string;
|
|
9
|
+
className?: string;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Type and press Enter or comma to add a tag. Backspace on an empty field marks the last tag, a second
|
|
13
|
+
* Backspace removes it. Pasting "a, b, c" adds all three. A duplicate makes the existing tag shake.
|
|
14
|
+
*/
|
|
15
|
+
export declare function TagInput({ value, defaultValue, onChange, max, placeholder, label, className }: TagInputProps): import("react").JSX.Element;
|
|
16
|
+
export default TagInput;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { type TextareaHTMLAttributes } from "react";
|
|
2
|
+
export interface TextareaProps extends TextareaHTMLAttributes<HTMLTextAreaElement> {
|
|
3
|
+
/** Soft character limit: the counter warns near it and turns red past it. */
|
|
4
|
+
limit?: number;
|
|
5
|
+
/** Grow with the content up to this many rows (then scroll). */
|
|
6
|
+
maxRows?: number;
|
|
7
|
+
className?: string;
|
|
8
|
+
}
|
|
9
|
+
/** Grows as you type and counts down the characters left with a little ring. */
|
|
10
|
+
export declare function Textarea({ limit, maxRows, rows, className, ...rest }: TextareaProps): import("react").JSX.Element;
|
|
11
|
+
export default Textarea;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { type ReactNode } from "react";
|
|
2
|
+
export type ToastTone = "default" | "success" | "error";
|
|
3
|
+
export interface ToastInput {
|
|
4
|
+
title: string;
|
|
5
|
+
description?: string;
|
|
6
|
+
tone?: ToastTone;
|
|
7
|
+
action?: {
|
|
8
|
+
label: string;
|
|
9
|
+
onClick: () => void;
|
|
10
|
+
};
|
|
11
|
+
/** Milliseconds before it leaves on its own. Default 4000. */
|
|
12
|
+
duration?: number;
|
|
13
|
+
}
|
|
14
|
+
interface Ctx {
|
|
15
|
+
toast: (t: ToastInput) => string;
|
|
16
|
+
dismiss: (id: string) => void;
|
|
17
|
+
}
|
|
18
|
+
/** `const { toast } = useToast(); toast({ title: "Saved", tone: "success" })` inside a `<Toaster>`. */
|
|
19
|
+
export declare function useToast(): Ctx;
|
|
20
|
+
export interface ToasterProps {
|
|
21
|
+
children: ReactNode;
|
|
22
|
+
/** How many stay visible in the stack. */
|
|
23
|
+
max?: number;
|
|
24
|
+
/** Position inside the nearest positioned parent instead of the viewport. */
|
|
25
|
+
contained?: boolean;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Provider + viewport. Toasts stack at the bottom right, tucked behind each other; hover or focus the
|
|
29
|
+
* stack to fan it out (timers pause meanwhile). Swipe one sideways to dismiss it.
|
|
30
|
+
*/
|
|
31
|
+
export declare function Toaster({ children, max, contained }: ToasterProps): import("react").JSX.Element;
|
|
32
|
+
export default Toaster;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { type ReactNode } from "react";
|
|
2
|
+
export type TooltipSide = "top" | "right" | "bottom" | "left";
|
|
3
|
+
export interface TooltipProps {
|
|
4
|
+
content: ReactNode;
|
|
5
|
+
side?: TooltipSide;
|
|
6
|
+
/** First-open delay in ms. Later tooltips open instantly while "warm". */
|
|
7
|
+
delay?: number;
|
|
8
|
+
/** Optional shortcut shown at the end, e.g. "⌘S". */
|
|
9
|
+
shortcut?: string;
|
|
10
|
+
/** A focusable element (a button, a link). Anything else gets wrapped in a span. */
|
|
11
|
+
children: ReactNode;
|
|
12
|
+
/** Extra classes for the tooltip bubble. */
|
|
13
|
+
className?: string;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* A tooltip on Radix Tooltip: shows on hover or keyboard focus, hides on leave, blur, press or Escape, and
|
|
17
|
+
* flips to the other side when it would leave the screen. After one has been shown, the next opens instantly.
|
|
18
|
+
*/
|
|
19
|
+
export declare function Tooltip({ content, side, delay, shortcut, children, className }: TooltipProps): import("react").JSX.Element;
|
|
20
|
+
export default Tooltip;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { type TextareaHTMLAttributes } from "react";
|
|
2
|
+
export interface TextareaFieldProps extends Omit<TextareaHTMLAttributes<HTMLTextAreaElement>, "maxLength"> {
|
|
3
|
+
label: string;
|
|
4
|
+
/** Helper text under the field. */
|
|
5
|
+
hint?: string;
|
|
6
|
+
/** Character limit. The counter turns amber near it; typing stops at it. */
|
|
7
|
+
maxLength?: number;
|
|
8
|
+
/** Shows "Optional" next to the label. */
|
|
9
|
+
optional?: boolean;
|
|
10
|
+
}
|
|
11
|
+
/** aui-001 · A labelled textarea with a hint and a live character count. */
|
|
12
|
+
export declare function TextareaField({ label, hint, maxLength, optional, className, rows, id, ...rest }: TextareaFieldProps): import("react").JSX.Element;
|
|
13
|
+
export default TextareaField;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { type TextareaHTMLAttributes } from "react";
|
|
2
|
+
export interface AutoGrowTextareaProps extends TextareaHTMLAttributes<HTMLTextAreaElement> {
|
|
3
|
+
/** Smallest height, in rows. */
|
|
4
|
+
minRows?: number;
|
|
5
|
+
/** Tallest height before it scrolls, in rows. */
|
|
6
|
+
maxRows?: number;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* aui-002 · Grows with its content and eases to the new height. A hidden mirror measures the text, so the
|
|
10
|
+
* textarea never snaps to `height: auto` and the transition stays smooth.
|
|
11
|
+
*/
|
|
12
|
+
export declare function AutoGrowTextarea({ minRows, maxRows, className, ...rest }: AutoGrowTextareaProps): import("react").JSX.Element;
|
|
13
|
+
export default AutoGrowTextarea;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export interface ChatComposerProps {
|
|
2
|
+
placeholder?: string;
|
|
3
|
+
/** Called with the text and attached files when the user sends (button or ⌘/Ctrl + Enter). */
|
|
4
|
+
onSend?: (message: {
|
|
5
|
+
text: string;
|
|
6
|
+
files: File[];
|
|
7
|
+
}) => void;
|
|
8
|
+
/** `accept` for the attach button, e.g. "image/*,.pdf". */
|
|
9
|
+
accept?: string;
|
|
10
|
+
maxRows?: number;
|
|
11
|
+
disabled?: boolean;
|
|
12
|
+
className?: string;
|
|
13
|
+
}
|
|
14
|
+
/** aui-003 · A chat composer: grows as you type, takes attachments as chips, sends on ⌘/Ctrl + Enter. */
|
|
15
|
+
export declare function ChatComposer({ placeholder, onSend, accept, maxRows, disabled, className }: ChatComposerProps): import("react").JSX.Element;
|
|
16
|
+
export default ChatComposer;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { type TextareaHTMLAttributes } from "react";
|
|
2
|
+
export interface FloatingLabelTextareaProps extends Omit<TextareaHTMLAttributes<HTMLTextAreaElement>, "placeholder"> {
|
|
3
|
+
label: string;
|
|
4
|
+
}
|
|
5
|
+
/** aui-004 · The label sits inside the field and floats up once you focus or type. Pure CSS, no state. */
|
|
6
|
+
export declare function FloatingLabelTextarea({ label, className, rows, id, ...rest }: FloatingLabelTextareaProps): import("react").JSX.Element;
|
|
7
|
+
export default FloatingLabelTextarea;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { type TextareaHTMLAttributes } from "react";
|
|
2
|
+
export interface MarkdownTextareaProps extends TextareaHTMLAttributes<HTMLTextAreaElement> {
|
|
3
|
+
/** Tools to show, by id: bold, italic, code, link, quote, list. */
|
|
4
|
+
tools?: string[];
|
|
5
|
+
}
|
|
6
|
+
/** aui-005 · A textarea with a formatting toolbar that wraps the selection in Markdown. ⌘/Ctrl + B, I, E, K work too. */
|
|
7
|
+
export declare function MarkdownTextarea({ tools, className, rows, ...rest }: MarkdownTextareaProps): import("react").JSX.Element;
|
|
8
|
+
export default MarkdownTextarea;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { type TextareaHTMLAttributes } from "react";
|
|
2
|
+
export interface Suggestion {
|
|
3
|
+
/** Inserted after the trigger, e.g. "maya" → "@maya ". */
|
|
4
|
+
value: string;
|
|
5
|
+
label: string;
|
|
6
|
+
/** Second line, e.g. a role or a command description. */
|
|
7
|
+
detail?: string;
|
|
8
|
+
}
|
|
9
|
+
export interface MentionTextareaProps extends Omit<TextareaHTMLAttributes<HTMLTextAreaElement>, "onChange" | "value" | "defaultValue"> {
|
|
10
|
+
/** Trigger character → suggestions, e.g. { "@": people, "/": commands }. */
|
|
11
|
+
suggestions: Record<string, Suggestion[]>;
|
|
12
|
+
value?: string;
|
|
13
|
+
defaultValue?: string;
|
|
14
|
+
onChange?: (value: string) => void;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* aui-006 · Type @ to mention someone or / for a command. The list opens at the caret, filters as you type and is
|
|
18
|
+
* fully keyboard driven (↑ ↓, Enter or Tab to insert, Esc to close).
|
|
19
|
+
*/
|
|
20
|
+
export declare function MentionTextarea({ suggestions, value: valueProp, defaultValue, onChange, className, rows, ...rest }: MentionTextareaProps): import("react").JSX.Element;
|
|
21
|
+
export default MentionTextarea;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { type TextareaHTMLAttributes } from "react";
|
|
2
|
+
export interface Rule {
|
|
3
|
+
label: string;
|
|
4
|
+
test: (value: string) => boolean;
|
|
5
|
+
}
|
|
6
|
+
export interface ValidatedTextareaProps extends Omit<TextareaHTMLAttributes<HTMLTextAreaElement>, "onChange" | "value" | "defaultValue"> {
|
|
7
|
+
label: string;
|
|
8
|
+
rules: Rule[];
|
|
9
|
+
value?: string;
|
|
10
|
+
defaultValue?: string;
|
|
11
|
+
onChange?: (value: string, valid: boolean) => void;
|
|
12
|
+
/** Message shown once every rule passes. */
|
|
13
|
+
success?: string;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* aui-007 · Checks the text against a list of rules. It stays quiet while you type, shows what's missing when you
|
|
17
|
+
* leave the field (with one small shake), and ticks rules off live after that.
|
|
18
|
+
*/
|
|
19
|
+
export declare function ValidatedTextarea({ label, rules, value: valueProp, defaultValue, onChange, success, className, rows, id, ...rest }: ValidatedTextareaProps): import("react").JSX.Element;
|
|
20
|
+
export default ValidatedTextarea;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export interface PromptModel {
|
|
2
|
+
id: string;
|
|
3
|
+
label: string;
|
|
4
|
+
detail?: string;
|
|
5
|
+
}
|
|
6
|
+
export interface PromptBoxProps {
|
|
7
|
+
models: PromptModel[];
|
|
8
|
+
defaultModel?: string;
|
|
9
|
+
placeholder?: string;
|
|
10
|
+
/** Rough token budget for the counter (≈ 4 characters per token). */
|
|
11
|
+
maxTokens?: number;
|
|
12
|
+
/** True while a response is being generated: the button becomes Stop. */
|
|
13
|
+
busy?: boolean;
|
|
14
|
+
onSubmit?: (prompt: {
|
|
15
|
+
text: string;
|
|
16
|
+
model: string;
|
|
17
|
+
}) => void;
|
|
18
|
+
onStop?: () => void;
|
|
19
|
+
className?: string;
|
|
20
|
+
}
|
|
21
|
+
/** aui-008 · A prompt box for AI features: model picker, token counter, and a Generate button that turns into Stop. */
|
|
22
|
+
export declare function PromptBox({ models, defaultModel, placeholder, maxTokens, busy, onSubmit, onStop, className }: PromptBoxProps): import("react").JSX.Element;
|
|
23
|
+
export default PromptBox;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/** One focused moment: a dot arcs into the cart, the badge pops and the button becomes a stepper. Loops until you take over. */
|
|
2
|
+
export interface AddToCartProps {
|
|
3
|
+
/** Product photo. Defaults to a neutral Unsplash photo hosted on ui.astabyte.com. */
|
|
4
|
+
image?: string;
|
|
5
|
+
imageAlt?: string;
|
|
6
|
+
name?: string;
|
|
7
|
+
meta?: string;
|
|
8
|
+
price?: string;
|
|
9
|
+
}
|
|
10
|
+
export default function AddToCart({ image, imageAlt, name, meta, price, }?: AddToCartProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A two-card stack: an illustrated card that fills in as you type, with the back of the card behind it.
|
|
3
|
+
* For the CVC the front card slides aside and the back comes forward. The stack leans toward the pointer.
|
|
4
|
+
*/
|
|
5
|
+
export default function CardCheckout(): import("react").JSX.Element;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Destructive actions ask for commitment. Hold (pointer, Space or Enter) to fill: the label flips colour
|
|
3
|
+
* exactly at the fill edge, a ruler of ticks lights up, and the button trembles harder near the end.
|
|
4
|
+
* Let go early and it drains away.
|
|
5
|
+
*/
|
|
6
|
+
export default function HoldToConfirm(): import("react").JSX.Element;
|