@sikka/hawa 0.26.29 → 0.26.30
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/dist/Chip-H5BnuDdx.d.ts +36 -0
- package/dist/Chip-hr2gRBJ-.d.mts +36 -0
- package/dist/DropdownMenu-EUL-D3I3.d.mts +95 -0
- package/dist/DropdownMenu-SPisqCzV.d.ts +95 -0
- package/dist/Radio-K1WGpnGA.d.ts +75 -0
- package/dist/Radio-hsrLKNxE.d.mts +75 -0
- package/dist/Toast-VBd4UvlM.d.mts +26 -0
- package/dist/Toast-pOd4uGZz.d.ts +26 -0
- package/dist/accordion/index.d.mts +51 -0
- package/dist/accordion/index.d.ts +51 -0
- package/dist/accordion/index.js +272 -0
- package/dist/accordion/index.js.map +1 -0
- package/dist/accordion/index.mjs +228 -0
- package/dist/accordion/index.mjs.map +1 -0
- package/dist/alert/index.d.mts +29 -0
- package/dist/alert/index.d.ts +29 -0
- package/dist/alert/index.js +443 -0
- package/dist/alert/index.js.map +1 -0
- package/dist/alert/index.mjs +403 -0
- package/dist/alert/index.mjs.map +1 -0
- package/dist/appLayout/index.d.mts +126 -0
- package/dist/appLayout/index.d.ts +126 -0
- package/dist/appLayout/index.js +1326 -0
- package/dist/appLayout/index.js.map +1 -0
- package/dist/appLayout/index.mjs +1286 -0
- package/dist/appLayout/index.mjs.map +1 -0
- package/dist/appMenubar/index.d.mts +33 -0
- package/dist/appMenubar/index.d.ts +33 -0
- package/dist/appMenubar/index.js +282 -0
- package/dist/appMenubar/index.js.map +1 -0
- package/dist/appMenubar/index.mjs +225 -0
- package/dist/appMenubar/index.mjs.map +1 -0
- package/dist/appStores/index.d.mts +8 -0
- package/dist/appStores/index.d.ts +8 -0
- package/dist/appStores/index.js +76 -0
- package/dist/appStores/index.js.map +1 -0
- package/dist/appStores/index.mjs +39 -0
- package/dist/appStores/index.mjs.map +1 -0
- package/dist/appTabs/index.d.mts +18 -0
- package/dist/appTabs/index.d.ts +18 -0
- package/dist/appTabs/index.js +93 -0
- package/dist/appTabs/index.js.map +1 -0
- package/dist/appTabs/index.mjs +51 -0
- package/dist/appTabs/index.mjs.map +1 -0
- package/dist/appTopbar/index.d.mts +44 -0
- package/dist/appTopbar/index.d.ts +44 -0
- package/dist/appTopbar/index.js +484 -0
- package/dist/appTopbar/index.js.map +1 -0
- package/dist/appTopbar/index.mjs +442 -0
- package/dist/appTopbar/index.mjs.map +1 -0
- package/dist/avatar/index.d.mts +16 -0
- package/dist/avatar/index.d.ts +16 -0
- package/dist/avatar/index.js +162 -0
- package/dist/avatar/index.js.map +1 -0
- package/dist/avatar/index.mjs +122 -0
- package/dist/avatar/index.mjs.map +1 -0
- package/dist/backToTop/index.d.mts +15 -0
- package/dist/backToTop/index.d.ts +15 -0
- package/dist/backToTop/index.js +396 -0
- package/dist/backToTop/index.js.map +1 -0
- package/dist/backToTop/index.mjs +356 -0
- package/dist/backToTop/index.mjs.map +1 -0
- package/dist/badge/index.d.mts +13 -0
- package/dist/badge/index.d.ts +13 -0
- package/dist/badge/index.js +127 -0
- package/dist/badge/index.js.map +1 -0
- package/dist/badge/index.mjs +84 -0
- package/dist/badge/index.mjs.map +1 -0
- package/dist/blocks/auth/index.d.mts +202 -0
- package/dist/blocks/auth/index.d.ts +202 -0
- package/dist/blocks/auth/index.js +4197 -0
- package/dist/blocks/auth/index.mjs +3389 -0
- package/dist/blocks/feedback/index.d.mts +74 -0
- package/dist/blocks/feedback/index.d.ts +74 -0
- package/dist/blocks/feedback/index.js +1544 -0
- package/dist/blocks/feedback/index.mjs +558 -0
- package/dist/blocks/index.d.mts +480 -0
- package/dist/blocks/index.d.ts +480 -0
- package/dist/blocks/index.js +6700 -0
- package/dist/blocks/index.mjs +2550 -0
- package/dist/blocks/misc/index.d.mts +90 -0
- package/dist/blocks/misc/index.d.ts +90 -0
- package/dist/blocks/misc/index.js +1186 -0
- package/dist/blocks/misc/index.mjs +387 -0
- package/dist/blocks/pricing/index.d.mts +93 -0
- package/dist/blocks/pricing/index.d.ts +93 -0
- package/dist/blocks/pricing/index.js +1528 -0
- package/dist/blocks/pricing/index.mjs +677 -0
- package/dist/breadcrumb/index.d.mts +14 -0
- package/dist/breadcrumb/index.d.ts +14 -0
- package/dist/breadcrumb/index.js +64 -0
- package/dist/breadcrumb/index.js.map +1 -0
- package/dist/breadcrumb/index.mjs +27 -0
- package/dist/breadcrumb/index.mjs.map +1 -0
- package/dist/button/index.d.mts +16 -0
- package/dist/button/index.d.ts +16 -0
- package/dist/button/index.js +302 -0
- package/dist/button/index.js.map +1 -0
- package/dist/button/index.mjs +261 -0
- package/dist/button/index.mjs.map +1 -0
- package/dist/card/index.d.mts +17 -0
- package/dist/card/index.d.ts +17 -0
- package/dist/card/index.js +140 -0
- package/dist/card/index.js.map +1 -0
- package/dist/card/index.mjs +93 -0
- package/dist/card/index.mjs.map +1 -0
- package/dist/carousel/index.d.mts +15 -0
- package/dist/carousel/index.d.ts +15 -0
- package/dist/carousel/index.js +194 -0
- package/dist/carousel/index.js.map +1 -0
- package/dist/carousel/index.mjs +152 -0
- package/dist/carousel/index.mjs.map +1 -0
- package/dist/checkbox/index.d.mts +20 -0
- package/dist/checkbox/index.d.ts +20 -0
- package/dist/checkbox/index.js +185 -0
- package/dist/checkbox/index.js.map +1 -0
- package/dist/checkbox/index.mjs +143 -0
- package/dist/checkbox/index.mjs.map +1 -0
- package/dist/chip/index.d.mts +36 -0
- package/dist/chip/index.d.ts +36 -0
- package/dist/chip/index.js +130 -0
- package/dist/chip/index.js.map +1 -0
- package/dist/chip/index.mjs +88 -0
- package/dist/chip/index.mjs.map +1 -0
- package/dist/chunk-3ODWQVIA.mjs +12 -0
- package/dist/chunk-3ODWQVIA.mjs.map +1 -0
- package/dist/chunk-4EGKGSGY.mjs +129 -0
- package/dist/chunk-53OZVR57.mjs +108 -0
- package/dist/chunk-53OZVR57.mjs.map +1 -0
- package/dist/chunk-5YXZXYLH.mjs +67 -0
- package/dist/chunk-CBRGWUZG.mjs +11 -0
- package/dist/chunk-CBRGWUZG.mjs.map +1 -0
- package/dist/chunk-D22AALLE.mjs +22 -0
- package/dist/chunk-D36MPDGE.mjs +476 -0
- package/dist/chunk-F3DQJHTG.mjs +3113 -0
- package/dist/chunk-FQ6WVEHW.mjs +151 -0
- package/dist/chunk-GVJYACGA.mjs +189 -0
- package/dist/chunk-HYXZRCZW.mjs +265 -0
- package/dist/chunk-HYXZRCZW.mjs.map +1 -0
- package/dist/chunk-JNUGOUYJ.mjs +154 -0
- package/dist/chunk-JX5YLRCU.mjs +443 -0
- package/dist/chunk-JX5YLRCU.mjs.map +1 -0
- package/dist/chunk-MQUAGP7K.mjs +1098 -0
- package/dist/chunk-NMS5LCSQ.mjs +195 -0
- package/dist/chunk-NV3KR5Y7.mjs +82 -0
- package/dist/chunk-NV3KR5Y7.mjs.map +1 -0
- package/dist/chunk-OQ7MNEYW.mjs +151 -0
- package/dist/chunk-OQ7MNEYW.mjs.map +1 -0
- package/dist/chunk-OY66MBXP.mjs +163 -0
- package/dist/chunk-R4HAAT6R.mjs +131 -0
- package/dist/chunk-WUHNPHD5.mjs +0 -0
- package/dist/chunk-ZFXKCRJC.mjs +11 -0
- package/dist/chunk-ZS3FB3PO.mjs +12 -0
- package/dist/codeBlock/index.d.mts +24 -0
- package/dist/codeBlock/index.d.ts +24 -0
- package/dist/codeBlock/index.js +518 -0
- package/dist/codeBlock/index.js.map +1 -0
- package/dist/codeBlock/index.mjs +433 -0
- package/dist/codeBlock/index.mjs.map +1 -0
- package/dist/collapsible/index.d.mts +8 -0
- package/dist/collapsible/index.d.ts +8 -0
- package/dist/collapsible/index.js +50 -0
- package/dist/collapsible/index.js.map +1 -0
- package/dist/collapsible/index.mjs +13 -0
- package/dist/collapsible/index.mjs.map +1 -0
- package/dist/colorPicker/index.d.mts +34 -0
- package/dist/colorPicker/index.d.ts +34 -0
- package/dist/colorPicker/index.js +276 -0
- package/dist/colorPicker/index.js.map +1 -0
- package/dist/colorPicker/index.mjs +171 -0
- package/dist/colorPicker/index.mjs.map +1 -0
- package/dist/combobox/index.d.mts +41 -0
- package/dist/combobox/index.d.ts +41 -0
- package/dist/combobox/index.js +749 -0
- package/dist/combobox/index.js.map +1 -0
- package/dist/combobox/index.mjs +295 -0
- package/dist/combobox/index.mjs.map +1 -0
- package/dist/command/index.d.mts +48 -0
- package/dist/command/index.d.ts +48 -0
- package/dist/command/index.js +486 -0
- package/dist/command/index.js.map +1 -0
- package/dist/command/index.mjs +23 -0
- package/dist/command/index.mjs.map +1 -0
- package/dist/commonTypes-2IGtJ5cq.d.mts +3 -0
- package/dist/commonTypes-2IGtJ5cq.d.ts +3 -0
- package/dist/commonTypes-2k6FnHw5.d.mts +4 -0
- package/dist/commonTypes-2k6FnHw5.d.ts +4 -0
- package/dist/commonTypes-3k5cNB1s.d.mts +4 -0
- package/dist/commonTypes-3k5cNB1s.d.ts +4 -0
- package/dist/commonTypes-CKtkuNFH.d.mts +11 -0
- package/dist/commonTypes-CKtkuNFH.d.ts +11 -0
- package/dist/commonTypes-GhKAraJw.d.mts +4 -0
- package/dist/commonTypes-GhKAraJw.d.ts +4 -0
- package/dist/commonTypes-MxCJyrHv.d.mts +8 -0
- package/dist/commonTypes-MxCJyrHv.d.ts +8 -0
- package/dist/commonTypes-PBumfOBg.d.mts +3 -0
- package/dist/commonTypes-PBumfOBg.d.ts +3 -0
- package/dist/commonTypes-WPhcN3Vr.d.mts +5 -0
- package/dist/commonTypes-WPhcN3Vr.d.ts +5 -0
- package/dist/commonTypes-_11epZYh.d.mts +4 -0
- package/dist/commonTypes-_11epZYh.d.ts +4 -0
- package/dist/commonTypes-ko_NGEoT.d.mts +3 -0
- package/dist/commonTypes-ko_NGEoT.d.ts +3 -0
- package/dist/copyrights/index.d.mts +17 -0
- package/dist/copyrights/index.d.ts +17 -0
- package/dist/copyrights/index.js +46 -0
- package/dist/copyrights/index.js.map +1 -0
- package/dist/copyrights/index.mjs +9 -0
- package/dist/copyrights/index.mjs.map +1 -0
- package/dist/count/index.d.mts +11 -0
- package/dist/count/index.d.ts +11 -0
- package/dist/count/index.js +46 -0
- package/dist/count/index.js.map +1 -0
- package/dist/count/index.mjs +9 -0
- package/dist/count/index.mjs.map +1 -0
- package/dist/dataTable/index.d.mts +41 -0
- package/dist/dataTable/index.d.ts +41 -0
- package/dist/dataTable/index.js +1305 -0
- package/dist/dataTable/index.js.map +1 -0
- package/dist/dataTable/index.mjs +1273 -0
- package/dist/dataTable/index.mjs.map +1 -0
- package/dist/destroyableCard/index.d.mts +12 -0
- package/dist/destroyableCard/index.d.ts +12 -0
- package/dist/destroyableCard/index.js +204 -0
- package/dist/destroyableCard/index.js.map +1 -0
- package/dist/destroyableCard/index.mjs +164 -0
- package/dist/destroyableCard/index.mjs.map +1 -0
- package/dist/dialog/index.d.mts +57 -0
- package/dist/dialog/index.d.ts +57 -0
- package/dist/dialog/index.js +369 -0
- package/dist/dialog/index.js.map +1 -0
- package/dist/dialog/index.mjs +315 -0
- package/dist/dialog/index.mjs.map +1 -0
- package/dist/docsLayout/index.d.mts +37 -0
- package/dist/docsLayout/index.d.ts +37 -0
- package/dist/docsLayout/index.js +928 -0
- package/dist/docsLayout/index.js.map +1 -0
- package/dist/docsLayout/index.mjs +888 -0
- package/dist/docsLayout/index.mjs.map +1 -0
- package/dist/docsSidebar/index.d.mts +11 -0
- package/dist/docsSidebar/index.d.ts +11 -0
- package/dist/docsSidebar/index.js +112 -0
- package/dist/docsSidebar/index.js.map +1 -0
- package/dist/docsSidebar/index.mjs +70 -0
- package/dist/docsSidebar/index.mjs.map +1 -0
- package/dist/dropdownMenu/index.d.mts +96 -0
- package/dist/dropdownMenu/index.d.ts +96 -0
- package/dist/dropdownMenu/index.js +421 -0
- package/dist/dropdownMenu/index.js.map +1 -0
- package/dist/dropdownMenu/index.mjs +363 -0
- package/dist/dropdownMenu/index.mjs.map +1 -0
- package/dist/elements/index.d.mts +788 -0
- package/dist/elements/index.d.ts +788 -0
- package/dist/elements/index.js +7835 -0
- package/dist/elements/index.mjs +3418 -0
- package/dist/fileDropzone/index.d.mts +37 -0
- package/dist/fileDropzone/index.d.ts +37 -0
- package/dist/fileDropzone/index.js +665 -0
- package/dist/fileDropzone/index.js.map +1 -0
- package/dist/fileDropzone/index.mjs +625 -0
- package/dist/fileDropzone/index.mjs.map +1 -0
- package/dist/fileUploader/index.d.mts +5 -0
- package/dist/fileUploader/index.d.ts +5 -0
- package/dist/fileUploader/index.js +62 -0
- package/dist/fileUploader/index.js.map +1 -0
- package/dist/fileUploader/index.mjs +25 -0
- package/dist/fileUploader/index.mjs.map +1 -0
- package/dist/glow/index.d.mts +16 -0
- package/dist/glow/index.d.ts +16 -0
- package/dist/glow/index.js +149 -0
- package/dist/glow/index.js.map +1 -0
- package/dist/glow/index.mjs +111 -0
- package/dist/glow/index.mjs.map +1 -0
- package/dist/hooks/index.d.mts +108 -0
- package/dist/hooks/index.d.ts +108 -0
- package/dist/hooks/index.js +459 -0
- package/dist/hooks/index.mjs +255 -0
- package/dist/index.d.mts +1932 -0
- package/dist/index.d.ts +1932 -0
- package/dist/index.js +12126 -0
- package/dist/index.mjs +11911 -0
- package/dist/input/index.d.mts +43 -0
- package/dist/input/index.d.ts +43 -0
- package/dist/input/index.js +293 -0
- package/dist/input/index.js.map +1 -0
- package/dist/input/index.mjs +158 -0
- package/dist/input/index.mjs.map +1 -0
- package/dist/interfaceSettings/index.d.mts +18 -0
- package/dist/interfaceSettings/index.d.ts +18 -0
- package/dist/interfaceSettings/index.js +419 -0
- package/dist/interfaceSettings/index.js.map +1 -0
- package/dist/interfaceSettings/index.mjs +282 -0
- package/dist/interfaceSettings/index.mjs.map +1 -0
- package/dist/label/index.d.mts +13 -0
- package/dist/label/index.d.ts +13 -0
- package/dist/label/index.js +143 -0
- package/dist/label/index.js.map +1 -0
- package/dist/label/index.mjs +103 -0
- package/dist/label/index.mjs.map +1 -0
- package/dist/layout/index.d.mts +256 -0
- package/dist/layout/index.d.ts +256 -0
- package/dist/layout/index.js +2627 -0
- package/dist/layout/index.mjs +1393 -0
- package/dist/loading/index.d.mts +15 -0
- package/dist/loading/index.d.ts +15 -0
- package/dist/loading/index.js +226 -0
- package/dist/loading/index.js.map +1 -0
- package/dist/loading/index.mjs +184 -0
- package/dist/loading/index.mjs.map +1 -0
- package/dist/logos/index.d.mts +27 -0
- package/dist/logos/index.d.ts +27 -0
- package/dist/logos/index.js +245 -0
- package/dist/logos/index.js.map +1 -0
- package/dist/logos/index.mjs +208 -0
- package/dist/logos/index.mjs.map +1 -0
- package/dist/navbar/index.d.mts +17 -0
- package/dist/navbar/index.d.ts +17 -0
- package/dist/navbar/index.js +166 -0
- package/dist/navbar/index.js.map +1 -0
- package/dist/navbar/index.mjs +126 -0
- package/dist/navbar/index.mjs.map +1 -0
- package/dist/navigationMenu/index.d.mts +39 -0
- package/dist/navigationMenu/index.d.ts +39 -0
- package/dist/navigationMenu/index.js +222 -0
- package/dist/navigationMenu/index.js.map +1 -0
- package/dist/navigationMenu/index.mjs +170 -0
- package/dist/navigationMenu/index.mjs.map +1 -0
- package/dist/pagination/index.d.mts +11 -0
- package/dist/pagination/index.d.ts +11 -0
- package/dist/pagination/index.js +161 -0
- package/dist/pagination/index.js.map +1 -0
- package/dist/pagination/index.mjs +119 -0
- package/dist/pagination/index.mjs.map +1 -0
- package/dist/passwordInput/index.d.mts +13 -0
- package/dist/passwordInput/index.d.ts +13 -0
- package/dist/passwordInput/index.js +577 -0
- package/dist/passwordInput/index.js.map +1 -0
- package/dist/passwordInput/index.mjs +534 -0
- package/dist/passwordInput/index.mjs.map +1 -0
- package/dist/phoneInput/index.d.mts +23 -0
- package/dist/phoneInput/index.d.ts +23 -0
- package/dist/phoneInput/index.js +2081 -0
- package/dist/phoneInput/index.js.map +1 -0
- package/dist/phoneInput/index.mjs +2041 -0
- package/dist/phoneInput/index.mjs.map +1 -0
- package/dist/pinInput/index.d.mts +20 -0
- package/dist/pinInput/index.d.ts +20 -0
- package/dist/pinInput/index.js +132 -0
- package/dist/pinInput/index.js.map +1 -0
- package/dist/pinInput/index.mjs +90 -0
- package/dist/pinInput/index.mjs.map +1 -0
- package/dist/popover/index.d.mts +23 -0
- package/dist/popover/index.d.ts +23 -0
- package/dist/popover/index.js +113 -0
- package/dist/popover/index.js.map +1 -0
- package/dist/popover/index.mjs +69 -0
- package/dist/popover/index.mjs.map +1 -0
- package/dist/progress/index.d.mts +6 -0
- package/dist/progress/index.d.ts +6 -0
- package/dist/progress/index.js +72 -0
- package/dist/progress/index.js.map +1 -0
- package/dist/progress/index.mjs +30 -0
- package/dist/progress/index.mjs.map +1 -0
- package/dist/progressCircle/index.d.mts +16 -0
- package/dist/progressCircle/index.d.ts +16 -0
- package/dist/progressCircle/index.js +160 -0
- package/dist/progressCircle/index.js.map +1 -0
- package/dist/progressCircle/index.mjs +118 -0
- package/dist/progressCircle/index.mjs.map +1 -0
- package/dist/radio/index.d.mts +39 -0
- package/dist/radio/index.d.ts +39 -0
- package/dist/radio/index.js +330 -0
- package/dist/radio/index.js.map +1 -0
- package/dist/radio/index.mjs +290 -0
- package/dist/radio/index.mjs.map +1 -0
- package/dist/scrollArea/index.d.mts +10 -0
- package/dist/scrollArea/index.d.ts +10 -0
- package/dist/scrollArea/index.js +91 -0
- package/dist/scrollArea/index.js.map +1 -0
- package/dist/scrollArea/index.mjs +48 -0
- package/dist/scrollArea/index.mjs.map +1 -0
- package/dist/scrollIndicator/index.d.mts +9 -0
- package/dist/scrollIndicator/index.d.ts +9 -0
- package/dist/scrollIndicator/index.js +80 -0
- package/dist/scrollIndicator/index.js.map +1 -0
- package/dist/scrollIndicator/index.mjs +43 -0
- package/dist/scrollIndicator/index.mjs.map +1 -0
- package/dist/select/index.d.mts +50 -0
- package/dist/select/index.d.ts +50 -0
- package/dist/select/index.js +322 -0
- package/dist/select/index.js.map +1 -0
- package/dist/select/index.mjs +282 -0
- package/dist/select/index.mjs.map +1 -0
- package/dist/separator/index.d.mts +10 -0
- package/dist/separator/index.d.ts +10 -0
- package/dist/separator/index.js +67 -0
- package/dist/separator/index.js.map +1 -0
- package/dist/separator/index.mjs +25 -0
- package/dist/separator/index.mjs.map +1 -0
- package/dist/sheet/index.d.mts +30 -0
- package/dist/sheet/index.d.ts +30 -0
- package/dist/sheet/index.js +202 -0
- package/dist/sheet/index.js.map +1 -0
- package/dist/sheet/index.mjs +151 -0
- package/dist/sheet/index.mjs.map +1 -0
- package/dist/sidebar/index.d.mts +48 -0
- package/dist/sidebar/index.d.ts +48 -0
- package/dist/sidebar/index.js +342 -0
- package/dist/sidebar/index.js.map +1 -0
- package/dist/sidebar/index.mjs +299 -0
- package/dist/sidebar/index.mjs.map +1 -0
- package/dist/signature/index.d.mts +27 -0
- package/dist/signature/index.d.ts +27 -0
- package/dist/signature/index.js +242 -0
- package/dist/signature/index.js.map +1 -0
- package/dist/signature/index.mjs +200 -0
- package/dist/signature/index.mjs.map +1 -0
- package/dist/simpleTable/index.d.mts +30 -0
- package/dist/simpleTable/index.d.ts +30 -0
- package/dist/simpleTable/index.js +250 -0
- package/dist/simpleTable/index.js.map +1 -0
- package/dist/simpleTable/index.mjs +214 -0
- package/dist/simpleTable/index.mjs.map +1 -0
- package/dist/skeleton/index.d.mts +10 -0
- package/dist/skeleton/index.d.ts +10 -0
- package/dist/skeleton/index.js +76 -0
- package/dist/skeleton/index.js.map +1 -0
- package/dist/skeleton/index.mjs +34 -0
- package/dist/skeleton/index.mjs.map +1 -0
- package/dist/slider/index.d.mts +6 -0
- package/dist/slider/index.d.ts +6 -0
- package/dist/slider/index.js +67 -0
- package/dist/slider/index.js.map +1 -0
- package/dist/slider/index.mjs +25 -0
- package/dist/slider/index.mjs.map +1 -0
- package/dist/sortButton/index.d.mts +10 -0
- package/dist/sortButton/index.d.ts +10 -0
- package/dist/sortButton/index.js +337 -0
- package/dist/sortButton/index.js.map +1 -0
- package/dist/sortButton/index.mjs +43 -0
- package/dist/sortButton/index.mjs.map +1 -0
- package/dist/splitButton/index.d.mts +52 -0
- package/dist/splitButton/index.d.ts +52 -0
- package/dist/splitButton/index.js +693 -0
- package/dist/splitButton/index.js.map +1 -0
- package/dist/splitButton/index.mjs +401 -0
- package/dist/splitButton/index.mjs.map +1 -0
- package/dist/stats/index.d.mts +19 -0
- package/dist/stats/index.d.ts +19 -0
- package/dist/stats/index.js +192 -0
- package/dist/stats/index.js.map +1 -0
- package/dist/stats/index.mjs +155 -0
- package/dist/stats/index.mjs.map +1 -0
- package/dist/stopPropagationWrapper/index.d.mts +5 -0
- package/dist/stopPropagationWrapper/index.d.ts +5 -0
- package/dist/stopPropagationWrapper/index.js +49 -0
- package/dist/stopPropagationWrapper/index.js.map +1 -0
- package/dist/stopPropagationWrapper/index.mjs +12 -0
- package/dist/stopPropagationWrapper/index.mjs.map +1 -0
- package/dist/switch/index.d.mts +12 -0
- package/dist/switch/index.d.ts +12 -0
- package/dist/switch/index.js +125 -0
- package/dist/switch/index.js.map +1 -0
- package/dist/switch/index.mjs +83 -0
- package/dist/switch/index.mjs.map +1 -0
- package/dist/table/index.d.mts +21 -0
- package/dist/table/index.d.ts +21 -0
- package/dist/table/index.js +173 -0
- package/dist/table/index.js.map +1 -0
- package/dist/table/index.mjs +124 -0
- package/dist/table/index.mjs.map +1 -0
- package/dist/tabs/index.d.mts +33 -0
- package/dist/tabs/index.d.ts +33 -0
- package/dist/tabs/index.js +201 -0
- package/dist/tabs/index.js.map +1 -0
- package/dist/tabs/index.mjs +158 -0
- package/dist/tabs/index.mjs.map +1 -0
- package/dist/textTypes-559CaoOV.d.mts +88 -0
- package/dist/textTypes-559CaoOV.d.ts +88 -0
- package/dist/textarea/index.d.mts +27 -0
- package/dist/textarea/index.d.ts +27 -0
- package/dist/textarea/index.js +230 -0
- package/dist/textarea/index.js.map +1 -0
- package/dist/textarea/index.mjs +190 -0
- package/dist/textarea/index.mjs.map +1 -0
- package/dist/toast/index.d.mts +26 -0
- package/dist/toast/index.d.ts +26 -0
- package/dist/toast/index.js +198 -0
- package/dist/toast/index.js.map +1 -0
- package/dist/toast/index.mjs +20 -0
- package/dist/toast/index.mjs.map +1 -0
- package/dist/toaster/index.d.mts +9 -0
- package/dist/toaster/index.d.ts +9 -0
- package/dist/toaster/index.js +354 -0
- package/dist/toaster/index.js.map +1 -0
- package/dist/toaster/index.mjs +185 -0
- package/dist/toaster/index.mjs.map +1 -0
- package/dist/types/index.d.mts +115 -0
- package/dist/types/index.d.ts +115 -0
- package/dist/types/index.js +18 -0
- package/dist/types/index.mjs +0 -0
- package/package.json +1 -1
@@ -0,0 +1,151 @@
|
|
1
|
+
import {
|
2
|
+
cn
|
3
|
+
} from "./chunk-MQUAGP7K.mjs";
|
4
|
+
|
5
|
+
// elements/sheet/Sheet.tsx
|
6
|
+
import * as React from "react";
|
7
|
+
import * as SheetPrimitive from "@radix-ui/react-dialog";
|
8
|
+
import { cva } from "class-variance-authority";
|
9
|
+
var Sheet = SheetPrimitive.Root;
|
10
|
+
var SheetTrigger = SheetPrimitive.Trigger;
|
11
|
+
var SheetClose = SheetPrimitive.Close;
|
12
|
+
var SheetPortal = SheetPrimitive.Portal;
|
13
|
+
var SheetOverlay = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React.createElement(
|
14
|
+
SheetPrimitive.Overlay,
|
15
|
+
{
|
16
|
+
className: cn(
|
17
|
+
"hawa-fixed hawa-inset-0 hawa-z-50 hawa-bg-background/80 hawa-backdrop-blur-sm data-[state=open]:hawa-animate-in data-[state=closed]:hawa-animate-out data-[state=closed]:hawa-fade-out-0 data-[state=open]:hawa-fade-in-0",
|
18
|
+
className
|
19
|
+
),
|
20
|
+
...props,
|
21
|
+
ref
|
22
|
+
}
|
23
|
+
));
|
24
|
+
var sheetVariants = cva(
|
25
|
+
"hawa-fixed hawa-z-50 hawa-gap-4 hawa-bg-background hawa-p-2 hawa-shadow-lg hawa-transition hawa-ease-in-out data-[state=open]:hawa-animate-in data-[state=closed]:hawa-animate-out data-[state=closed]:hawa-duration-300 data-[state=open]:hawa-duration-300",
|
26
|
+
{
|
27
|
+
variants: {
|
28
|
+
side: {
|
29
|
+
top: "hawa-inset-x-0 hawa-top-0 hawa-border-b data-[state=closed]:hawa-slide-out-to-top data-[state=open]:hawa-slide-in-from-top",
|
30
|
+
bottom: "hawa-inset-x-0 hawa-bottom-0 hawa-border-t data-[state=closed]:hawa-slide-out-to-bottom data-[state=open]:hawa-slide-in-from-bottom",
|
31
|
+
left: "hawa-inset-y-0 hawa-left-0 hawa-h-full hawa-w-3/4 hawa-border-r data-[state=closed]:hawa-slide-out-to-left data-[state=open]:hawa-slide-in-from-left sm:hawa-max-w-sm",
|
32
|
+
right: "hawa-inset-y-0 hawa-right-0 hawa-h-full hawa-w-3/4 hawa-border-l data-[state=closed]:hawa-slide-out-to-right data-[state=open]:hawa-slide-in-from-right sm:hawa-max-w-sm"
|
33
|
+
}
|
34
|
+
},
|
35
|
+
defaultVariants: {
|
36
|
+
side: "right"
|
37
|
+
}
|
38
|
+
}
|
39
|
+
);
|
40
|
+
var SheetContent = React.forwardRef(
|
41
|
+
({ side = "right", className, children, persist, hideCloseButton, ...props }, ref) => /* @__PURE__ */ React.createElement(SheetPortal, null, /* @__PURE__ */ React.createElement(SheetOverlay, null), /* @__PURE__ */ React.createElement(
|
42
|
+
SheetPrimitive.Content,
|
43
|
+
{
|
44
|
+
ref,
|
45
|
+
className: cn(sheetVariants({ side }), className),
|
46
|
+
onPointerDownOutside: (e) => {
|
47
|
+
if (persist) {
|
48
|
+
e.preventDefault();
|
49
|
+
}
|
50
|
+
},
|
51
|
+
...props
|
52
|
+
},
|
53
|
+
children,
|
54
|
+
!hideCloseButton && /* @__PURE__ */ React.createElement(
|
55
|
+
SheetPrimitive.Close,
|
56
|
+
{
|
57
|
+
className: cn(
|
58
|
+
"hawa-absolute hawa-rounded-sm hawa-opacity-70 hawa-ring-offset-background hawa-transition-opacity hover:hawa-opacity-100 focus:hawa-outline-none focus:hawa-ring-2 focus:hawa-ring-ring focus:hawa-ring-offset-2 disabled:hawa-pointer-events-none data-[state=open]:hawa-bg-secondary",
|
59
|
+
{
|
60
|
+
"hawa-right-4 hawa-top-4": side === "left" || side === "bottom",
|
61
|
+
"hawa-left-4 hawa-top-4": side === "right",
|
62
|
+
"hawa-bottom-4 hawa-right-4": side === "top"
|
63
|
+
}
|
64
|
+
)
|
65
|
+
},
|
66
|
+
/* @__PURE__ */ React.createElement(
|
67
|
+
"svg",
|
68
|
+
{
|
69
|
+
"aria-label": "Close Icon",
|
70
|
+
"aria-hidden": "true",
|
71
|
+
className: "hawa-h-5 hawa-w-5",
|
72
|
+
fill: "currentColor",
|
73
|
+
viewBox: "0 0 20 20"
|
74
|
+
},
|
75
|
+
/* @__PURE__ */ React.createElement(
|
76
|
+
"path",
|
77
|
+
{
|
78
|
+
fillRule: "evenodd",
|
79
|
+
d: "M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z",
|
80
|
+
clipRule: "evenodd"
|
81
|
+
}
|
82
|
+
)
|
83
|
+
),
|
84
|
+
/* @__PURE__ */ React.createElement("span", { className: "hawa-sr-only" }, "Close")
|
85
|
+
)
|
86
|
+
))
|
87
|
+
);
|
88
|
+
var SheetHeader = ({
|
89
|
+
className,
|
90
|
+
...props
|
91
|
+
}) => /* @__PURE__ */ React.createElement(
|
92
|
+
"div",
|
93
|
+
{
|
94
|
+
className: cn(
|
95
|
+
"hawa-flex hawa-flex-col hawa-space-y-2 hawa-text-center sm:hawa-text-left",
|
96
|
+
className
|
97
|
+
),
|
98
|
+
...props
|
99
|
+
}
|
100
|
+
);
|
101
|
+
var SheetFooter = ({
|
102
|
+
className,
|
103
|
+
...props
|
104
|
+
}) => /* @__PURE__ */ React.createElement(
|
105
|
+
"div",
|
106
|
+
{
|
107
|
+
className: cn(
|
108
|
+
"hawa-flex hawa-flex-col-reverse sm:hawa-flex-row sm:hawa-justify-end sm:hawa-space-x-2",
|
109
|
+
className
|
110
|
+
),
|
111
|
+
...props
|
112
|
+
}
|
113
|
+
);
|
114
|
+
var SheetTitle = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React.createElement(
|
115
|
+
SheetPrimitive.Title,
|
116
|
+
{
|
117
|
+
ref,
|
118
|
+
className: cn(
|
119
|
+
"hawa-text-lg hawa-font-semibold hawa-text-foreground",
|
120
|
+
className
|
121
|
+
),
|
122
|
+
...props
|
123
|
+
}
|
124
|
+
));
|
125
|
+
var SheetDescription = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React.createElement(
|
126
|
+
SheetPrimitive.Description,
|
127
|
+
{
|
128
|
+
ref,
|
129
|
+
className: cn("hawa-text-sm hawa-text-muted-foreground", className),
|
130
|
+
...props
|
131
|
+
}
|
132
|
+
));
|
133
|
+
SheetDescription.displayName = SheetPrimitive.Description.displayName;
|
134
|
+
SheetOverlay.displayName = SheetPrimitive.Overlay.displayName;
|
135
|
+
SheetContent.displayName = SheetPrimitive.Content.displayName;
|
136
|
+
SheetHeader.displayName = "SheetHeader";
|
137
|
+
SheetFooter.displayName = "SheetFooter";
|
138
|
+
SheetTitle.displayName = SheetPrimitive.Title.displayName;
|
139
|
+
|
140
|
+
export {
|
141
|
+
Sheet,
|
142
|
+
SheetTrigger,
|
143
|
+
SheetClose,
|
144
|
+
SheetPortal,
|
145
|
+
SheetOverlay,
|
146
|
+
SheetContent,
|
147
|
+
SheetHeader,
|
148
|
+
SheetFooter,
|
149
|
+
SheetTitle,
|
150
|
+
SheetDescription
|
151
|
+
};
|
@@ -0,0 +1,189 @@
|
|
1
|
+
import {
|
2
|
+
cn
|
3
|
+
} from "./chunk-D36MPDGE.mjs";
|
4
|
+
|
5
|
+
// icons/Emojis.tsx
|
6
|
+
import React from "react";
|
7
|
+
var VeryGoodEmoji = () => /* @__PURE__ */ React.createElement(
|
8
|
+
"svg",
|
9
|
+
{
|
10
|
+
fill: "none",
|
11
|
+
height: "16",
|
12
|
+
viewBox: "0 0 16 16",
|
13
|
+
width: "16",
|
14
|
+
xmlns: "http://www.w3.org/2000/svg"
|
15
|
+
},
|
16
|
+
/* @__PURE__ */ React.createElement("g", { clipPath: "url(#clip0_53_166)" }, /* @__PURE__ */ React.createElement(
|
17
|
+
"path",
|
18
|
+
{
|
19
|
+
clipRule: "evenodd",
|
20
|
+
d: "M14.5 8C14.5 11.5899 11.5899 14.5 8 14.5C4.41015 14.5 1.5 11.5899 1.5 8C1.5 4.41015 4.41015 1.5 8 1.5C11.5899 1.5 14.5 4.41015 14.5 8ZM16 8C16 12.4183 12.4183 16 8 16C3.58172 16 0 12.4183 0 8C0 3.58172 3.58172 0 8 0C12.4183 0 16 3.58172 16 8ZM4.5 8.97498H3.875V9.59998C3.875 11.4747 5.81046 12.8637 7.99817 12.8637C10.1879 12.8637 12.125 11.4832 12.125 9.59998V8.97498H11.5H4.5ZM7.99817 11.6137C6.59406 11.6137 5.63842 10.9482 5.28118 10.225H10.7202C10.3641 10.9504 9.40797 11.6137 7.99817 11.6137Z",
|
21
|
+
fill: "currentColor",
|
22
|
+
fillRule: "evenodd"
|
23
|
+
}
|
24
|
+
), /* @__PURE__ */ React.createElement(
|
25
|
+
"path",
|
26
|
+
{
|
27
|
+
clipRule: "evenodd",
|
28
|
+
d: "M6.15295 4.92093L5.375 3.5L4.59705 4.92093L3 5.21885L4.11625 6.39495L3.90717 8L5.375 7.30593L6.84283 8L6.63375 6.39495L7.75 5.21885L6.15295 4.92093ZM11.403 4.92093L10.625 3.5L9.84705 4.92093L8.25 5.21885L9.36625 6.39495L9.15717 8L10.625 7.30593L12.0928 8L11.8837 6.39495L13 5.21885L11.403 4.92093Z",
|
29
|
+
fill: "#FF990A",
|
30
|
+
fillRule: "evenodd"
|
31
|
+
}
|
32
|
+
))
|
33
|
+
);
|
34
|
+
var GoodEmoji = () => /* @__PURE__ */ React.createElement(
|
35
|
+
"svg",
|
36
|
+
{
|
37
|
+
fill: "none",
|
38
|
+
height: "16",
|
39
|
+
viewBox: "0 0 16 16",
|
40
|
+
width: "16",
|
41
|
+
xmlns: "http://www.w3.org/2000/svg"
|
42
|
+
},
|
43
|
+
/* @__PURE__ */ React.createElement("g", { clipPath: "url(#clip0_53_167)" }, /* @__PURE__ */ React.createElement(
|
44
|
+
"path",
|
45
|
+
{
|
46
|
+
clipRule: "evenodd",
|
47
|
+
d: "M14.5 8C14.5 11.5899 11.5899 14.5 8 14.5C4.41015 14.5 1.5 11.5899 1.5 8C1.5 4.41015 4.41015 1.5 8 1.5C11.5899 1.5 14.5 4.41015 14.5 8ZM16 8C16 12.4183 12.4183 16 8 16C3.58172 16 0 12.4183 0 8C0 3.58172 3.58172 0 8 0C12.4183 0 16 3.58172 16 8ZM11.5249 10.8478L11.8727 10.3286L10.8342 9.6329L10.4863 10.1522C9.94904 10.9543 9.0363 11.4802 8.00098 11.4802C6.96759 11.4802 6.05634 10.9563 5.51863 10.1567L5.16986 9.63804L4.13259 10.3356L4.48137 10.8542C5.2414 11.9844 6.53398 12.7302 8.00098 12.7302C9.47073 12.7302 10.7654 11.9816 11.5249 10.8478ZM6.75 6.75C6.75 7.30228 6.30228 7.75 5.75 7.75C5.19772 7.75 4.75 7.30228 4.75 6.75C4.75 6.19772 5.19772 5.75 5.75 5.75C6.30228 5.75 6.75 6.19772 6.75 6.75ZM10.25 7.75C10.8023 7.75 11.25 7.30228 11.25 6.75C11.25 6.19772 10.8023 5.75 10.25 5.75C9.69771 5.75 9.25 6.19772 9.25 6.75C9.25 7.30228 9.69771 7.75 10.25 7.75Z",
|
48
|
+
fill: "currentColor",
|
49
|
+
fillRule: "evenodd"
|
50
|
+
}
|
51
|
+
))
|
52
|
+
);
|
53
|
+
var BadEmoji = () => /* @__PURE__ */ React.createElement(
|
54
|
+
"svg",
|
55
|
+
{
|
56
|
+
fill: "none",
|
57
|
+
height: "16",
|
58
|
+
viewBox: "0 0 16 16",
|
59
|
+
width: "16",
|
60
|
+
xmlns: "http://www.w3.org/2000/svg"
|
61
|
+
},
|
62
|
+
/* @__PURE__ */ React.createElement("g", { clipPath: "url(#clip0_53_152)" }, /* @__PURE__ */ React.createElement(
|
63
|
+
"path",
|
64
|
+
{
|
65
|
+
clipRule: "evenodd",
|
66
|
+
d: "M14.5 8C14.5 11.5899 11.5899 14.5 8 14.5C4.41015 14.5 1.5 11.5899 1.5 8C1.5 4.41015 4.41015 1.5 8 1.5C11.5899 1.5 14.5 4.41015 14.5 8ZM16 8C16 12.4183 12.4183 16 8 16C3.58172 16 0 12.4183 0 8C0 3.58172 3.58172 0 8 0C12.4183 0 16 3.58172 16 8ZM5.75 7.75C6.30228 7.75 6.75 7.30228 6.75 6.75C6.75 6.19772 6.30228 5.75 5.75 5.75C5.19772 5.75 4.75 6.19772 4.75 6.75C4.75 7.30228 5.19772 7.75 5.75 7.75ZM11.25 6.75C11.25 7.30228 10.8023 7.75 10.25 7.75C9.69771 7.75 9.25 7.30228 9.25 6.75C9.25 6.19772 9.69771 5.75 10.25 5.75C10.8023 5.75 11.25 6.19772 11.25 6.75ZM11.5249 11.2622L11.8727 11.7814L10.8342 12.4771L10.4863 11.9578C9.94904 11.1557 9.0363 10.6298 8.00098 10.6298C6.96759 10.6298 6.05634 11.1537 5.51863 11.9533L5.16986 12.4719L4.13259 11.7744L4.48137 11.2558C5.2414 10.1256 6.53398 9.37982 8.00098 9.37982C9.47073 9.37982 10.7654 10.1284 11.5249 11.2622Z",
|
67
|
+
fill: "currentColor",
|
68
|
+
fillRule: "evenodd"
|
69
|
+
}
|
70
|
+
))
|
71
|
+
);
|
72
|
+
var VeryBadEmoji = () => /* @__PURE__ */ React.createElement(
|
73
|
+
"svg",
|
74
|
+
{
|
75
|
+
fill: "none",
|
76
|
+
height: "16",
|
77
|
+
viewBox: "0 0 16 16",
|
78
|
+
width: "16",
|
79
|
+
xmlns: "http://www.w3.org/2000/svg"
|
80
|
+
},
|
81
|
+
/* @__PURE__ */ React.createElement("g", { clipPath: "url(#clip0_53_151)" }, /* @__PURE__ */ React.createElement(
|
82
|
+
"path",
|
83
|
+
{
|
84
|
+
d: "M11.841 12.0225C12.7197 12.9324 12.7197 14.4077 11.841 15.3176C10.9623 16.2275 9.53769 16.2275 8.65901 15.3176C7.78033 14.4077 7.78033 12.9324 8.65901 12.0225L10.25 10.375L11.841 12.0225Z",
|
85
|
+
fill: "#0070F3"
|
86
|
+
}
|
87
|
+
), /* @__PURE__ */ React.createElement(
|
88
|
+
"path",
|
89
|
+
{
|
90
|
+
clipRule: "evenodd",
|
91
|
+
d: "M8 1.5C4.41015 1.5 1.5 4.41015 1.5 8C1.5 10.9668 3.48826 13.4711 6.20649 14.2496L5.79351 15.6916C2.44895 14.7338 0 11.6539 0 8C0 3.58172 3.58172 0 8 0C12.4183 0 16 3.58172 16 8C16 9.4652 15.6054 10.8405 14.9162 12.023L13.6203 11.2677C14.1794 10.3083 14.5 9.19272 14.5 8C14.5 4.41015 11.5899 1.5 8 1.5ZM6.75 6.75C6.75 7.30228 6.30228 7.75 5.75 7.75C5.19772 7.75 4.75 7.30228 4.75 6.75C4.75 6.19772 5.19772 5.75 5.75 5.75C6.30228 5.75 6.75 6.19772 6.75 6.75ZM10.25 7.75C10.8023 7.75 11.25 7.30228 11.25 6.75C11.25 6.19772 10.8023 5.75 10.25 5.75C9.69771 5.75 9.25 6.19772 9.25 6.75C9.25 7.30228 9.69771 7.75 10.25 7.75Z",
|
92
|
+
fill: "currentColor",
|
93
|
+
fillRule: "evenodd"
|
94
|
+
}
|
95
|
+
))
|
96
|
+
);
|
97
|
+
|
98
|
+
// icons/InputIcons.tsx
|
99
|
+
import React2 from "react";
|
100
|
+
var EyeIcon = (props) => /* @__PURE__ */ React2.createElement("div", { className: cn("hawa-h-5 hawa-w-5", props.className) }, /* @__PURE__ */ React2.createElement(
|
101
|
+
"svg",
|
102
|
+
{
|
103
|
+
xmlns: "http://www.w3.org/2000/svg",
|
104
|
+
viewBox: "0 0 24 24",
|
105
|
+
fill: "none",
|
106
|
+
stroke: "currentColor",
|
107
|
+
strokeWidth: "2",
|
108
|
+
strokeLinecap: "round",
|
109
|
+
strokeLinejoin: "round"
|
110
|
+
},
|
111
|
+
/* @__PURE__ */ React2.createElement("path", { d: "M2 12s3-7 10-7 10 7 10 7-3 7-10 7-10-7-10-7Z" }),
|
112
|
+
/* @__PURE__ */ React2.createElement("circle", { cx: "12", cy: "12", r: "3" })
|
113
|
+
));
|
114
|
+
var HiddenEyeIcon = (props) => /* @__PURE__ */ React2.createElement("div", { className: cn("hawa-h-5 hawa-w-5", props.className) }, /* @__PURE__ */ React2.createElement(
|
115
|
+
"svg",
|
116
|
+
{
|
117
|
+
xmlns: "http://www.w3.org/2000/svg",
|
118
|
+
viewBox: "0 0 24 24",
|
119
|
+
fill: "none",
|
120
|
+
stroke: "currentColor",
|
121
|
+
strokeWidth: "2",
|
122
|
+
strokeLinecap: "round",
|
123
|
+
strokeLinejoin: "round"
|
124
|
+
},
|
125
|
+
/* @__PURE__ */ React2.createElement("path", { d: "M9.88 9.88a3 3 0 1 0 4.24 4.24" }),
|
126
|
+
/* @__PURE__ */ React2.createElement("path", { d: "M10.73 5.08A10.43 10.43 0 0 1 12 5c7 0 10 7 10 7a13.16 13.16 0 0 1-1.67 2.68" }),
|
127
|
+
/* @__PURE__ */ React2.createElement("path", { d: "M6.61 6.61A13.526 13.526 0 0 0 2 12s3 7 10 7a9.74 9.74 0 0 0 5.39-1.61" }),
|
128
|
+
/* @__PURE__ */ React2.createElement("line", { x1: "2", x2: "22", y1: "2", y2: "22" })
|
129
|
+
));
|
130
|
+
|
131
|
+
// icons/CommonIcons.tsx
|
132
|
+
import React3 from "react";
|
133
|
+
var CheckMark = ({ size = "default", className }) => {
|
134
|
+
let sizeStyles = {
|
135
|
+
default: "hawa-h-5 hawa-w-5",
|
136
|
+
sm: "hawa-h-3 hawa-w-3"
|
137
|
+
};
|
138
|
+
return /* @__PURE__ */ React3.createElement(
|
139
|
+
"svg",
|
140
|
+
{
|
141
|
+
className: cn(sizeStyles[size], className),
|
142
|
+
"aria-hidden": "true",
|
143
|
+
fill: "currentColor",
|
144
|
+
viewBox: "0 0 20 20"
|
145
|
+
},
|
146
|
+
/* @__PURE__ */ React3.createElement(
|
147
|
+
"path",
|
148
|
+
{
|
149
|
+
fillRule: "evenodd",
|
150
|
+
d: "M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z",
|
151
|
+
clipRule: "evenodd"
|
152
|
+
}
|
153
|
+
)
|
154
|
+
);
|
155
|
+
};
|
156
|
+
var UncheckMark = ({ size = "default", className }) => {
|
157
|
+
let sizeStyles = {
|
158
|
+
default: "hawa-h-5 hawa-w-5",
|
159
|
+
sm: "hawa-h-3 hawa-w-3"
|
160
|
+
};
|
161
|
+
return /* @__PURE__ */ React3.createElement(
|
162
|
+
"svg",
|
163
|
+
{
|
164
|
+
className: cn(sizeStyles[size], className),
|
165
|
+
"aria-hidden": "true",
|
166
|
+
fill: "currentColor",
|
167
|
+
viewBox: "0 0 20 20"
|
168
|
+
},
|
169
|
+
/* @__PURE__ */ React3.createElement(
|
170
|
+
"path",
|
171
|
+
{
|
172
|
+
fillRule: "evenodd",
|
173
|
+
d: "M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z",
|
174
|
+
clipRule: "evenodd"
|
175
|
+
}
|
176
|
+
)
|
177
|
+
);
|
178
|
+
};
|
179
|
+
|
180
|
+
export {
|
181
|
+
VeryGoodEmoji,
|
182
|
+
GoodEmoji,
|
183
|
+
BadEmoji,
|
184
|
+
VeryBadEmoji,
|
185
|
+
EyeIcon,
|
186
|
+
HiddenEyeIcon,
|
187
|
+
CheckMark,
|
188
|
+
UncheckMark
|
189
|
+
};
|
@@ -0,0 +1,265 @@
|
|
1
|
+
// util/index.ts
|
2
|
+
import { clsx } from "clsx";
|
3
|
+
import { twMerge } from "tailwind-merge";
|
4
|
+
function cn(...inputs) {
|
5
|
+
return twMerge(clsx(inputs));
|
6
|
+
}
|
7
|
+
|
8
|
+
// elements/button/Button.tsx
|
9
|
+
import * as React2 from "react";
|
10
|
+
import { cva } from "class-variance-authority";
|
11
|
+
|
12
|
+
// elements/loading/Loading.tsx
|
13
|
+
import React from "react";
|
14
|
+
var Loading = ({
|
15
|
+
design = "spinner",
|
16
|
+
size = "sm",
|
17
|
+
themeMode = "light",
|
18
|
+
color,
|
19
|
+
...props
|
20
|
+
}) => {
|
21
|
+
let sizeStyles = {
|
22
|
+
button: "hawa-h-4 hawa-w-4",
|
23
|
+
xs: "hawa-h-1 hawa-w-1",
|
24
|
+
sm: "hawa-h-6 hawa-w-6",
|
25
|
+
normal: "hawa-h-8 hawa-w-8",
|
26
|
+
lg: "hawa-h-14 hawa-w-14",
|
27
|
+
xl: "hawa-h-24 hawa-w-24"
|
28
|
+
};
|
29
|
+
let animationStyles = {
|
30
|
+
pulse: "hawa-animate-in hawa-fade-in hawa-duration-1000",
|
31
|
+
bounce: "hawa-animate-bounce"
|
32
|
+
};
|
33
|
+
switch (design.split("-")[0]) {
|
34
|
+
case "dots":
|
35
|
+
return /* @__PURE__ */ React.createElement(
|
36
|
+
"div",
|
37
|
+
{
|
38
|
+
className: cn("hawa-flex hawa-flex-row hawa-gap-2", props.className)
|
39
|
+
},
|
40
|
+
/* @__PURE__ */ React.createElement(
|
41
|
+
"div",
|
42
|
+
{
|
43
|
+
className: cn(
|
44
|
+
"hawa-animate-bounce hawa-rounded-full hawa-delay-100 hawa-repeat-infinite",
|
45
|
+
size === "button" ? "hawa-h-2 hawa-w-2" : sizeStyles[size],
|
46
|
+
animationStyles[design.split("-")[1]],
|
47
|
+
color ? color : "hawa-bg-primary"
|
48
|
+
)
|
49
|
+
}
|
50
|
+
),
|
51
|
+
/* @__PURE__ */ React.createElement(
|
52
|
+
"div",
|
53
|
+
{
|
54
|
+
className: cn(
|
55
|
+
"hawa-animate-bounce hawa-rounded-full hawa-delay-200 hawa-repeat-infinite",
|
56
|
+
size === "button" ? "hawa-h-2 hawa-w-2" : sizeStyles[size],
|
57
|
+
animationStyles[design.split("-")[1]],
|
58
|
+
color ? color : "hawa-bg-primary"
|
59
|
+
)
|
60
|
+
}
|
61
|
+
),
|
62
|
+
/* @__PURE__ */ React.createElement(
|
63
|
+
"div",
|
64
|
+
{
|
65
|
+
className: cn(
|
66
|
+
"hawa-animate-bounce hawa-rounded-full hawa-delay-300 hawa-repeat-infinite",
|
67
|
+
size === "button" ? "hawa-h-2 hawa-w-2" : sizeStyles[size],
|
68
|
+
animationStyles[design.split("-")[1]],
|
69
|
+
color ? color : "hawa-bg-primary"
|
70
|
+
)
|
71
|
+
}
|
72
|
+
)
|
73
|
+
);
|
74
|
+
case "square":
|
75
|
+
return /* @__PURE__ */ React.createElement(
|
76
|
+
"svg",
|
77
|
+
{
|
78
|
+
className: cn("squircle-container", sizeStyles[size]),
|
79
|
+
viewBox: "0 0 35 35",
|
80
|
+
height: "35",
|
81
|
+
width: "35"
|
82
|
+
},
|
83
|
+
/* @__PURE__ */ React.createElement(
|
84
|
+
"rect",
|
85
|
+
{
|
86
|
+
className: "squircle-track",
|
87
|
+
x: "2.5",
|
88
|
+
y: "2.5",
|
89
|
+
fill: "none",
|
90
|
+
strokeWidth: "5px",
|
91
|
+
width: "32.5",
|
92
|
+
height: "32.5"
|
93
|
+
}
|
94
|
+
),
|
95
|
+
/* @__PURE__ */ React.createElement(
|
96
|
+
"rect",
|
97
|
+
{
|
98
|
+
className: "square-car",
|
99
|
+
x: "2.5",
|
100
|
+
y: "2.5",
|
101
|
+
fill: "none",
|
102
|
+
strokeWidth: "5px",
|
103
|
+
width: "32.5",
|
104
|
+
height: "32.5",
|
105
|
+
pathLength: "100"
|
106
|
+
}
|
107
|
+
)
|
108
|
+
);
|
109
|
+
case "squircle":
|
110
|
+
return /* @__PURE__ */ React.createElement(
|
111
|
+
"svg",
|
112
|
+
{
|
113
|
+
className: cn("squircle-container", sizeStyles[size]),
|
114
|
+
x: "0px",
|
115
|
+
y: "0px",
|
116
|
+
viewBox: "0 0 37 37",
|
117
|
+
height: "37",
|
118
|
+
width: "37",
|
119
|
+
preserveAspectRatio: "xMidYMid meet"
|
120
|
+
},
|
121
|
+
/* @__PURE__ */ React.createElement(
|
122
|
+
"path",
|
123
|
+
{
|
124
|
+
className: "squircle-track",
|
125
|
+
fill: "none",
|
126
|
+
strokeWidth: "5",
|
127
|
+
pathLength: "100",
|
128
|
+
d: "M0.37 18.5 C0.37 5.772 5.772 0.37 18.5 0.37 S36.63 5.772 36.63 18.5 S31.228 36.63 18.5 36.63 S0.37 31.228 0.37 18.5"
|
129
|
+
}
|
130
|
+
),
|
131
|
+
/* @__PURE__ */ React.createElement(
|
132
|
+
"path",
|
133
|
+
{
|
134
|
+
className: "squircle-car",
|
135
|
+
fill: "none",
|
136
|
+
strokeWidth: "5",
|
137
|
+
pathLength: "100",
|
138
|
+
d: "M0.37 18.5 C0.37 5.772 5.772 0.37 18.5 0.37 S36.63 5.772 36.63 18.5 S31.228 36.63 18.5 36.63 S0.37 31.228 0.37 18.5"
|
139
|
+
}
|
140
|
+
)
|
141
|
+
);
|
142
|
+
case "progress":
|
143
|
+
return /* @__PURE__ */ React.createElement("div", { className: "progress-loading" });
|
144
|
+
case "orbit":
|
145
|
+
return /* @__PURE__ */ React.createElement("div", { className: "orbit-container" });
|
146
|
+
default:
|
147
|
+
return /* @__PURE__ */ React.createElement(
|
148
|
+
"svg",
|
149
|
+
{
|
150
|
+
className: cn("circle-container", sizeStyles[size]),
|
151
|
+
viewBox: "0 0 40 40",
|
152
|
+
height: "40",
|
153
|
+
width: "40"
|
154
|
+
},
|
155
|
+
/* @__PURE__ */ React.createElement(
|
156
|
+
"circle",
|
157
|
+
{
|
158
|
+
className: cn("circle-track", {
|
159
|
+
"hawa-stroke-primary-foreground": themeMode === "dark",
|
160
|
+
"hawa-stroke-primary": themeMode === "light"
|
161
|
+
}),
|
162
|
+
cx: "20",
|
163
|
+
cy: "20",
|
164
|
+
r: "17.5",
|
165
|
+
pathLength: "100",
|
166
|
+
strokeWidth: "5px",
|
167
|
+
fill: "none"
|
168
|
+
}
|
169
|
+
),
|
170
|
+
/* @__PURE__ */ React.createElement(
|
171
|
+
"circle",
|
172
|
+
{
|
173
|
+
className: cn("circle-car", {
|
174
|
+
"hawa-stroke-primary-foreground": themeMode === "dark",
|
175
|
+
"hawa-stroke-primary": themeMode === "light"
|
176
|
+
}),
|
177
|
+
cx: "20",
|
178
|
+
cy: "20",
|
179
|
+
r: "17.5",
|
180
|
+
pathLength: "100",
|
181
|
+
strokeWidth: "5px",
|
182
|
+
fill: "none"
|
183
|
+
}
|
184
|
+
)
|
185
|
+
);
|
186
|
+
}
|
187
|
+
};
|
188
|
+
|
189
|
+
// elements/button/Button.tsx
|
190
|
+
var buttonVariants = cva(
|
191
|
+
"hawa-inline-flex hawa-items-center hawa-select-none hawa-rounded-md hawa-text-sm hawa-font-medium hawa-ring-offset-background hawa-transition-colors focus-visible:hawa-outline-none focus-visible:hawa-ring-2 focus-visible:hawa-ring-ring focus-visible:hawa-ring-offset-2 disabled:hawa-pointer-events-none disabled:hawa-opacity-50",
|
192
|
+
{
|
193
|
+
variants: {
|
194
|
+
variant: {
|
195
|
+
default: "hawa-bg-primary hawa-text-primary-foreground hover:hawa-bg-primary/90",
|
196
|
+
light: "hawa-bg-primary/20 hawa-text-primary hover:hawa-bg-primary/40",
|
197
|
+
destructive: "hawa-bg-destructive hawa-text-destructive-foreground hover:hawa-bg-destructive/90",
|
198
|
+
outline: "hawa-border hawa-border-input hawa-bg-transparent hover:hawa-bg-accent hover:hawa-text-accent-foreground",
|
199
|
+
secondary: "hawa-bg-secondary hawa-text-secondary-foreground hover:hawa-bg-secondary/80",
|
200
|
+
ghost: "hover:hawa-bg-accent hover:hawa-text-accent-foreground",
|
201
|
+
link: "hawa-text-primary hawa-underline-offset-4 hover:hawa-underline",
|
202
|
+
combobox: "hawa-bg-background hawa-border",
|
203
|
+
neoBrutalism: "neo-brutalism"
|
204
|
+
// "hawa-cursor-pointer hawa-transition-all hawa-uppercase hawa-font-mono dark:hawa-bg-black hawa-font-bold hawa-py-2 hawa-px-4 hawa-rounded hawa-border-2 hawa-border-primary hawa-shadow-color-primary hawa-transition-[hawa-transform_50ms, hawa-box-shadow_50ms] active:hawa-translate-x-0.5 active:hawa-translate-y-0.5 active:hawa-shadow-color-primary-active shadow-color-primary active:shadow-color-primary-active",
|
205
|
+
},
|
206
|
+
size: {
|
207
|
+
default: "hawa-h-10 hawa-px-4 hawa-py-2",
|
208
|
+
heightless: "hawa-px-4 hawa-py-4",
|
209
|
+
xs: "hawa-h-fit hawa-min-h-[25px] hawa-py-1 hawa-text-[10px] hawa-px-2 ",
|
210
|
+
sm: "hawa-h-9 hawa-text-[11px] hawa-rounded-md hawa-px-3",
|
211
|
+
lg: "hawa-h-11 hawa-rounded-md hawa-px-8",
|
212
|
+
xl: "hawa-h-14 hawa-rounded-md hawa-px-10",
|
213
|
+
icon: "hawa-h-10 hawa-w-10",
|
214
|
+
smallIcon: "hawa-h-7 hawa-w-7"
|
215
|
+
}
|
216
|
+
},
|
217
|
+
defaultVariants: {
|
218
|
+
variant: "default",
|
219
|
+
size: "default"
|
220
|
+
}
|
221
|
+
}
|
222
|
+
);
|
223
|
+
var Button = React2.forwardRef(
|
224
|
+
({
|
225
|
+
className,
|
226
|
+
variant,
|
227
|
+
size,
|
228
|
+
asChild = false,
|
229
|
+
centered = true,
|
230
|
+
isLoading,
|
231
|
+
children,
|
232
|
+
...props
|
233
|
+
}, ref) => {
|
234
|
+
const Comp = "button";
|
235
|
+
const loadingColor = variant === "outline" || variant === "ghost" || variant === "neoBrutalism" ? "hawa-bg-primary" : "hawa-bg-primary-foreground";
|
236
|
+
return /* @__PURE__ */ React2.createElement(
|
237
|
+
Comp,
|
238
|
+
{
|
239
|
+
className: cn(
|
240
|
+
buttonVariants({ variant, size, className }),
|
241
|
+
centered && "hawa-justify-center"
|
242
|
+
// "hawa-bg-red-500"
|
243
|
+
),
|
244
|
+
ref,
|
245
|
+
...props
|
246
|
+
},
|
247
|
+
isLoading ? /* @__PURE__ */ React2.createElement(
|
248
|
+
Loading,
|
249
|
+
{
|
250
|
+
design: size === "icon" || size === "smallIcon" ? "spinner" : "dots-pulse",
|
251
|
+
themeMode: variant === "outline" ? "light" : "dark",
|
252
|
+
color: loadingColor,
|
253
|
+
size: size === "sm" || size === "xs" ? "xs" : "button"
|
254
|
+
}
|
255
|
+
) : children
|
256
|
+
);
|
257
|
+
}
|
258
|
+
);
|
259
|
+
Button.displayName = "Button";
|
260
|
+
|
261
|
+
export {
|
262
|
+
cn,
|
263
|
+
Button
|
264
|
+
};
|
265
|
+
//# sourceMappingURL=chunk-HYXZRCZW.mjs.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"sources":["../util/index.ts","../elements/button/Button.tsx","../elements/loading/Loading.tsx"],"sourcesContent":["import { clsx, type ClassValue } from \"clsx\";\nimport { twMerge } from \"tailwind-merge\";\n\nexport function cn(...inputs: ClassValue[]) {\n return twMerge(clsx(inputs));\n}\n\ntype Palette = {\n name: string;\n colors: {\n [key: number]: string;\n };\n};\ntype Rgb = {\n r: number;\n g: number;\n b: number;\n};\nfunction hexToRgb(hex: string): Rgb | null {\n const sanitizedHex = hex.replaceAll(\"##\", \"#\");\n const colorParts = /^#?([a-f\\d]{2})([a-f\\d]{2})([a-f\\d]{2})$/i.exec(\n sanitizedHex\n );\n\n if (!colorParts) {\n return null;\n }\n\n const [, r, g, b] = colorParts;\n\n return {\n r: parseInt(r, 16),\n g: parseInt(g, 16),\n b: parseInt(b, 16)\n } as Rgb;\n}\n\nfunction rgbToHex(r: number, g: number, b: number): string {\n const toHex = (c: number) => `0${c.toString(16)}`.slice(-2);\n return `#${toHex(r)}${toHex(g)}${toHex(b)}`;\n}\n\nexport function getTextColor(color: string): \"#FFF\" | \"#333\" {\n const rgbColor = hexToRgb(color);\n\n if (!rgbColor) {\n return \"#333\";\n }\n\n const { r, g, b } = rgbColor;\n const luma = 0.2126 * r + 0.7152 * g + 0.0722 * b;\n\n return luma < 120 ? \"#FFF\" : \"#333\";\n}\n\nfunction lighten(hex: string, intensity: number): string {\n const color = hexToRgb(`#${hex}`);\n\n if (!color) {\n return \"\";\n }\n\n const r = Math.round(color.r + (255 - color.r) * intensity);\n const g = Math.round(color.g + (255 - color.g) * intensity);\n const b = Math.round(color.b + (255 - color.b) * intensity);\n\n return rgbToHex(r, g, b);\n}\n\nfunction darken(hex: string, intensity: number): string {\n const color = hexToRgb(hex);\n\n if (!color) {\n return \"\";\n }\n\n const r = Math.round(color.r * intensity);\n const g = Math.round(color.g * intensity);\n const b = Math.round(color.b * intensity);\n\n return rgbToHex(r, g, b);\n}\nconst parseColor = (color: any) => {\n if (color.startsWith(\"#\")) {\n // Convert hex to RGB\n let r = parseInt(color.slice(1, 3), 16);\n let g = parseInt(color.slice(3, 5), 16);\n let b = parseInt(color.slice(5, 7), 16);\n return [r, g, b];\n } else if (color.startsWith(\"rgb\")) {\n // Extract RGB values from rgb() format\n return color.match(/\\d+/g).map(Number);\n }\n // Default to white if format is unrecognized\n return [255, 255, 255];\n};\nexport const calculateLuminance = (color: any) => {\n const [r, g, b] = parseColor(color)?.map((c: any) => {\n c /= 255;\n return c <= 0.03928 ? c / 12.92 : ((c + 0.055) / 1.055) ** 2.4;\n });\n return 0.2126 * r + 0.7152 * g + 0.0722 * b;\n};\n\nfunction getPallette(baseColor: string): Palette {\n const name = baseColor;\n\n const response: Palette = {\n name,\n colors: {\n 500: `#${baseColor}`.replace(\"##\", \"#\")\n }\n };\n\n const intensityMap: {\n [key: number]: number;\n } = {\n 50: 0.95,\n 100: 0.9,\n 200: 0.75,\n 300: 0.6,\n 400: 0.3,\n 600: 0.9,\n 700: 0.75,\n 800: 0.6,\n 900: 0.49\n };\n\n [50, 100, 200, 300, 400].forEach((level) => {\n response.colors[level] = lighten(baseColor, intensityMap[level]);\n });\n [600, 700, 800, 900].forEach((level) => {\n response.colors[level] = darken(baseColor, intensityMap[level]);\n });\n\n return response as Palette;\n}\n\nexport { getPallette };\n\n// const hexToRgb = (hex) => {\n// let d = hex?.split(\"#\")[1];\n// var aRgbHex = d?.match(/.{1,2}/g);\n// var aRgb = [\n// parseInt(aRgbHex[0], 16),\n// parseInt(aRgbHex[1], 16),\n// parseInt(aRgbHex[2], 16)\n// ];\n// return aRgb;\n// };\n// const getTextColor = (backColor) => {\n// let rgbArray = hexToRgb(backColor);\n// if (rgbArray[0] * 0.299 + rgbArray[1] * 0.587 + rgbArray[2] * 0.114 > 186) {\n// return \"#000000\";\n// } else {\n// return \"#ffffff\";\n// }\n// };\n// const replaceAt = function (string, index, replacement) {\n// // if (replacement == \"\" || replacement == \" \") {\n// // return (\n// // string.substring(0, index) +\n// // string.substring(index + replacement.length )\n// // );\n// // }\n// const replaced = string.substring(0, index) + replacement + string.substring(index + 1)\n// return replaced\n// };\n\n// export { hexToRgb, getTextColor, replaceAt };\n","import * as React from \"react\";\n\nimport { cva, type VariantProps } from \"class-variance-authority\";\n\nimport { cn } from \"@util/index\";\nimport { Loading } from \"../loading/Loading\";\n\nconst buttonVariants = cva(\n \"hawa-inline-flex hawa-items-center hawa-select-none hawa-rounded-md hawa-text-sm hawa-font-medium hawa-ring-offset-background hawa-transition-colors focus-visible:hawa-outline-none focus-visible:hawa-ring-2 focus-visible:hawa-ring-ring focus-visible:hawa-ring-offset-2 disabled:hawa-pointer-events-none disabled:hawa-opacity-50\",\n {\n variants: {\n variant: {\n default:\n \"hawa-bg-primary hawa-text-primary-foreground hover:hawa-bg-primary/90\",\n light: \"hawa-bg-primary/20 hawa-text-primary hover:hawa-bg-primary/40\",\n destructive:\n \"hawa-bg-destructive hawa-text-destructive-foreground hover:hawa-bg-destructive/90\",\n outline:\n \"hawa-border hawa-border-input hawa-bg-transparent hover:hawa-bg-accent hover:hawa-text-accent-foreground\",\n secondary:\n \"hawa-bg-secondary hawa-text-secondary-foreground hover:hawa-bg-secondary/80\",\n ghost: \"hover:hawa-bg-accent hover:hawa-text-accent-foreground\",\n link: \"hawa-text-primary hawa-underline-offset-4 hover:hawa-underline\",\n combobox: \"hawa-bg-background hawa-border\",\n neoBrutalism: \"neo-brutalism\"\n // \"hawa-cursor-pointer hawa-transition-all hawa-uppercase hawa-font-mono dark:hawa-bg-black hawa-font-bold hawa-py-2 hawa-px-4 hawa-rounded hawa-border-2 hawa-border-primary hawa-shadow-color-primary hawa-transition-[hawa-transform_50ms, hawa-box-shadow_50ms] active:hawa-translate-x-0.5 active:hawa-translate-y-0.5 active:hawa-shadow-color-primary-active shadow-color-primary active:shadow-color-primary-active\",\n },\n size: {\n default: \"hawa-h-10 hawa-px-4 hawa-py-2\",\n heightless: \"hawa-px-4 hawa-py-4\",\n xs: \"hawa-h-fit hawa-min-h-[25px] hawa-py-1 hawa-text-[10px] hawa-px-2 \",\n sm: \"hawa-h-9 hawa-text-[11px] hawa-rounded-md hawa-px-3\",\n lg: \"hawa-h-11 hawa-rounded-md hawa-px-8\",\n xl: \"hawa-h-14 hawa-rounded-md hawa-px-10\",\n icon: \"hawa-h-10 hawa-w-10\",\n smallIcon: \"hawa-h-7 hawa-w-7\"\n }\n },\n defaultVariants: {\n variant: \"default\",\n size: \"default\"\n }\n }\n);\n\nexport interface ButtonProps\n extends React.ButtonHTMLAttributes<HTMLButtonElement>,\n VariantProps<typeof buttonVariants> {\n asChild?: boolean;\n centered?: boolean;\n isLoading?: boolean;\n}\n\nconst Button = React.forwardRef<HTMLButtonElement, ButtonProps>(\n (\n {\n className,\n variant,\n size,\n asChild = false,\n centered = true,\n isLoading,\n children,\n ...props\n },\n ref\n ) => {\n const Comp = \"button\";\n\n // Determine the color for the HawaLoading component based on the variant\n const loadingColor =\n variant === \"outline\" || variant === \"ghost\" || variant === \"neoBrutalism\"\n ? \"hawa-bg-primary\"\n : \"hawa-bg-primary-foreground\";\n\n return (\n <Comp\n className={cn(\n buttonVariants({ variant, size, className }),\n centered && \"hawa-justify-center\",\n // \"hawa-bg-red-500\"\n )}\n ref={ref}\n {...props}\n >\n {isLoading ? (\n <Loading\n design={\n size === \"icon\" || size === \"smallIcon\" ? \"spinner\" : \"dots-pulse\"\n }\n themeMode={variant === \"outline\" ? \"light\" : \"dark\"}\n color={loadingColor}\n size={size === \"sm\" || size === \"xs\" ? \"xs\" : \"button\"}\n />\n ) : (\n children\n )}\n </Comp>\n );\n }\n);\n\nButton.displayName = \"Button\";\n\nexport { Button, buttonVariants };\n","import React, { FC } from \"react\";\n\nimport { cn } from \"@util/index\";\n\ntype LoadingTypes = {\n /** Specifies the size of the loading component.*/\n size?: \"button\" | \"xs\" | \"sm\" | \"normal\" | \"lg\" | \"xl\";\n /** Determines the design of the loading animation.*/\n design?:\n | \"spinner\"\n | \"dots-bounce\"\n | \"dots-pulse\"\n | \"pulse\"\n | \"spinner-dots\"\n | \"squircle\"\n | \"square\"\n | \"progress\"\n | \"orbit\";\n /** Specifies the color of the loading component. By default it will inherit the value of <span className=\"inline-code\">--primary</span> global CSS variable*/\n color?: string;\n className?: string;\n themeMode?: \"dark\" | \"light\";\n};\n\nexport const Loading: FC<LoadingTypes> = ({\n design = \"spinner\",\n size = \"sm\",\n themeMode = \"light\",\n color,\n ...props\n}) => {\n let sizeStyles = {\n button: \"hawa-h-4 hawa-w-4\",\n xs: \"hawa-h-1 hawa-w-1\",\n sm: \"hawa-h-6 hawa-w-6\",\n normal: \"hawa-h-8 hawa-w-8\",\n lg: \"hawa-h-14 hawa-w-14\",\n xl: \"hawa-h-24 hawa-w-24\"\n };\n\n let animationStyles: any = {\n pulse: \"hawa-animate-in hawa-fade-in hawa-duration-1000\",\n bounce: \"hawa-animate-bounce\"\n };\n switch (design.split(\"-\")[0]) {\n case \"dots\":\n return (\n <div\n className={cn(\"hawa-flex hawa-flex-row hawa-gap-2\", props.className)}\n >\n <div\n className={cn(\n \"hawa-animate-bounce hawa-rounded-full hawa-delay-100 hawa-repeat-infinite\",\n size === \"button\" ? \"hawa-h-2 hawa-w-2\" : sizeStyles[size],\n animationStyles[design.split(\"-\")[1]],\n color ? color : \"hawa-bg-primary\"\n )}\n ></div>\n <div\n className={cn(\n \"hawa-animate-bounce hawa-rounded-full hawa-delay-200 hawa-repeat-infinite\",\n size === \"button\" ? \"hawa-h-2 hawa-w-2\" : sizeStyles[size],\n animationStyles[design.split(\"-\")[1]],\n color ? color : \"hawa-bg-primary\"\n )}\n ></div>\n <div\n className={cn(\n \"hawa-animate-bounce hawa-rounded-full hawa-delay-300 hawa-repeat-infinite\",\n size === \"button\" ? \"hawa-h-2 hawa-w-2\" : sizeStyles[size],\n animationStyles[design.split(\"-\")[1]],\n color ? color : \"hawa-bg-primary\"\n )}\n ></div>\n </div>\n );\n case \"square\":\n return (\n <svg\n className={cn(\"squircle-container\", sizeStyles[size])}\n viewBox=\"0 0 35 35\"\n height=\"35\"\n width=\"35\"\n >\n <rect\n className=\"squircle-track\"\n x=\"2.5\"\n y=\"2.5\"\n fill=\"none\"\n strokeWidth=\"5px\"\n width=\"32.5\"\n height=\"32.5\"\n />\n <rect\n className=\"square-car\"\n x=\"2.5\"\n y=\"2.5\"\n fill=\"none\"\n strokeWidth=\"5px\"\n width=\"32.5\"\n height=\"32.5\"\n pathLength=\"100\"\n />\n </svg>\n );\n case \"squircle\":\n return (\n <svg\n className={cn(\"squircle-container\", sizeStyles[size])}\n x=\"0px\"\n y=\"0px\"\n viewBox=\"0 0 37 37\"\n height=\"37\"\n width=\"37\"\n preserveAspectRatio=\"xMidYMid meet\"\n >\n <path\n className=\"squircle-track\"\n fill=\"none\"\n strokeWidth=\"5\"\n pathLength=\"100\"\n d=\"M0.37 18.5 C0.37 5.772 5.772 0.37 18.5 0.37 S36.63 5.772 36.63 18.5 S31.228 36.63 18.5 36.63 S0.37 31.228 0.37 18.5\"\n ></path>\n <path\n className=\"squircle-car\"\n fill=\"none\"\n strokeWidth=\"5\"\n pathLength=\"100\"\n d=\"M0.37 18.5 C0.37 5.772 5.772 0.37 18.5 0.37 S36.63 5.772 36.63 18.5 S31.228 36.63 18.5 36.63 S0.37 31.228 0.37 18.5\"\n ></path>\n </svg>\n );\n case \"progress\":\n return <div className=\"progress-loading\"></div>;\n case \"orbit\":\n return <div className=\"orbit-container\"></div>;\n\n default:\n return (\n <svg\n className={cn(\"circle-container\", sizeStyles[size])}\n viewBox=\"0 0 40 40\"\n height=\"40\"\n width=\"40\"\n >\n <circle\n className={cn(\"circle-track\", {\n \"hawa-stroke-primary-foreground\": themeMode === \"dark\",\n \"hawa-stroke-primary\": themeMode === \"light\"\n })}\n cx=\"20\"\n cy=\"20\"\n r=\"17.5\"\n pathLength=\"100\"\n strokeWidth=\"5px\"\n fill=\"none\"\n />\n <circle\n className={cn(\"circle-car\", {\n \"hawa-stroke-primary-foreground\": themeMode === \"dark\",\n \"hawa-stroke-primary\": themeMode === \"light\"\n })}\n cx=\"20\"\n cy=\"20\"\n r=\"17.5\"\n pathLength=\"100\"\n strokeWidth=\"5px\"\n fill=\"none\"\n />\n </svg>\n );\n // return (\n // <div\n // className={cn(\n // \"hawa-flex hawa-flex-row hawa-gap-x-3\",\n // props.className\n // )}\n // >\n // <div aria-label=\"Loading...\" role=\"status\">\n // <svg\n // className={cn(sizeStyles[size], \"hawa-animate-spin\")}\n // viewBox=\"3 3 18 18\"\n // >\n // <path\n // className=\"hawa-fill-primary/20\"\n // d=\"M12 5C8.13401 5 5 8.13401 5 12C5 15.866 8.13401 19 12 19C15.866 19 19 15.866 19 12C19 8.13401 15.866 5 12 5ZM3 12C3 7.02944 7.02944 3 12 3C16.9706 3 21 7.02944 21 12C21 16.9706 16.9706 21 12 21C7.02944 21 3 16.9706 3 12Z\"\n // ></path>\n // <path\n // className={color ? color : \"hawa-fill-primary\"}\n // d=\"M16.9497 7.05015C14.2161 4.31648 9.78392 4.31648 7.05025 7.05015C6.65973 7.44067 6.02656 7.44067 5.63604 7.05015C5.24551 6.65962 5.24551 6.02646 5.63604 5.63593C9.15076 2.12121 14.8492 2.12121 18.364 5.63593C18.7545 6.02646 18.7545 6.65962 18.364 7.05015C17.9734 7.44067 17.3403 7.44067 16.9497 7.05015Z\"\n // ></path>\n // </svg>\n // </div>\n // </div>\n // );\n }\n};\n"],"mappings":"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","names":["React"]}
|