@techzyapp/ui-library 1.0.4 → 1.0.9
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/{Alert-BQpA48PY.js → Alert-B3rDvpbO.js} +3 -3
- package/dist/{Alert-BQpA48PY.js.map → Alert-B3rDvpbO.js.map} +1 -1
- package/dist/{Alert-DKIjM-9x.cjs → Alert-D99G0StL.cjs} +2 -2
- package/dist/{Alert-DKIjM-9x.cjs.map → Alert-D99G0StL.cjs.map} +1 -1
- package/dist/{Breadcrumbs-CHONper7.cjs → Breadcrumbs-BnxhmyK5.cjs} +2 -2
- package/dist/{Breadcrumbs-CHONper7.cjs.map → Breadcrumbs-BnxhmyK5.cjs.map} +1 -1
- package/dist/{Breadcrumbs-Bx5UgwDy.js → Breadcrumbs-DvgctFLS.js} +3 -3
- package/dist/{Breadcrumbs-Bx5UgwDy.js.map → Breadcrumbs-DvgctFLS.js.map} +1 -1
- package/dist/{Button-DhEv0YFk.js → Button-CUsXYM-m.js} +2 -2
- package/dist/{Button-DhEv0YFk.js.map → Button-CUsXYM-m.js.map} +1 -1
- package/dist/{Button-D4bfVNNa.cjs → Button-Cj6pckNl.cjs} +2 -2
- package/dist/{Button-D4bfVNNa.cjs.map → Button-Cj6pckNl.cjs.map} +1 -1
- package/dist/{Calendar-C8uNezI-.cjs → Calendar-Br4C0x0n.cjs} +2 -2
- package/dist/{Calendar-C8uNezI-.cjs.map → Calendar-Br4C0x0n.cjs.map} +1 -1
- package/dist/{Calendar-Bh317SaV.js → Calendar-CE_9WNAB.js} +3 -3
- package/dist/{Calendar-Bh317SaV.js.map → Calendar-CE_9WNAB.js.map} +1 -1
- package/dist/{Card-CfyaerZZ.cjs → Card-DD9SWHzZ.cjs} +2 -2
- package/dist/{Card-CfyaerZZ.cjs.map → Card-DD9SWHzZ.cjs.map} +1 -1
- package/dist/{Card-DzClqJuu.js → Card-DhpudGvF.js} +2 -2
- package/dist/{Card-DzClqJuu.js.map → Card-DhpudGvF.js.map} +1 -1
- package/dist/{Chip-DSrdXLBU.cjs → Chip-B2lY4TJ0.cjs} +2 -2
- package/dist/{Chip-DSrdXLBU.cjs.map → Chip-B2lY4TJ0.cjs.map} +1 -1
- package/dist/{Chip-Cfo0v3Z8.js → Chip-DulHqhuf.js} +2 -2
- package/dist/{Chip-Cfo0v3Z8.js.map → Chip-DulHqhuf.js.map} +1 -1
- package/dist/{CodeBlock-BWxQyKRo.js → CodeBlock-DwBMghs2.js} +3 -3
- package/dist/{CodeBlock-BWxQyKRo.js.map → CodeBlock-DwBMghs2.js.map} +1 -1
- package/dist/{CodeBlock-CgXOjKS-.cjs → CodeBlock-EhB7v9-R.cjs} +2 -2
- package/dist/{CodeBlock-CgXOjKS-.cjs.map → CodeBlock-EhB7v9-R.cjs.map} +1 -1
- package/dist/{Col-D2TfZKiM.js → Col-B51RlwWP.js} +2 -2
- package/dist/{Col-D2TfZKiM.js.map → Col-B51RlwWP.js.map} +1 -1
- package/dist/{Col-R5mAy8T9.cjs → Col-BdQeyKEX.cjs} +2 -2
- package/dist/{Col-R5mAy8T9.cjs.map → Col-BdQeyKEX.cjs.map} +1 -1
- package/dist/{ColorPicker-2udt1ORM.js → ColorPicker-DJgTeHht.js} +3 -3
- package/dist/{ColorPicker-2udt1ORM.js.map → ColorPicker-DJgTeHht.js.map} +1 -1
- package/dist/{ColorPicker-BwmaXCOy.cjs → ColorPicker-Dc1y9Zuu.cjs} +2 -2
- package/dist/{ColorPicker-BwmaXCOy.cjs.map → ColorPicker-Dc1y9Zuu.cjs.map} +1 -1
- package/dist/{ColorPickerPanel-BM9OwDDE.js → ColorPickerPanel-9tOQUL38.js} +2 -2
- package/dist/{ColorPickerPanel-BM9OwDDE.js.map → ColorPickerPanel-9tOQUL38.js.map} +1 -1
- package/dist/{ColorPickerPanel-ByB1mLSi.cjs → ColorPickerPanel-nXEliruE.cjs} +2 -2
- package/dist/{ColorPickerPanel-ByB1mLSi.cjs.map → ColorPickerPanel-nXEliruE.cjs.map} +1 -1
- package/dist/ConfigProvider-BHNx-NHV.cjs +2 -0
- package/dist/ConfigProvider-BHNx-NHV.cjs.map +1 -0
- package/dist/ConfigProvider-BYruQYHC.js +296 -0
- package/dist/ConfigProvider-BYruQYHC.js.map +1 -0
- package/dist/CopyButton-B4-OYsYr.js +31 -0
- package/dist/CopyButton-B4-OYsYr.js.map +1 -0
- package/dist/CopyButton-D_DCLHhb.cjs +2 -0
- package/dist/CopyButton-D_DCLHhb.cjs.map +1 -0
- package/dist/DashedButton-DeiALUPA.js +59 -0
- package/dist/DashedButton-DeiALUPA.js.map +1 -0
- package/dist/DashedButton-q7AOqKUE.cjs +2 -0
- package/dist/DashedButton-q7AOqKUE.cjs.map +1 -0
- package/dist/{DatePicker-DF4Epkn8.cjs → DatePicker-CEczjGZy.cjs} +2 -2
- package/dist/{DatePicker-DF4Epkn8.cjs.map → DatePicker-CEczjGZy.cjs.map} +1 -1
- package/dist/{DatePicker-WM9TC6L_.js → DatePicker-DkvfSN1K.js} +4 -4
- package/dist/{DatePicker-WM9TC6L_.js.map → DatePicker-DkvfSN1K.js.map} +1 -1
- package/dist/{DateTimePicker-C557OjBU.cjs → DateTimePicker-CDyGxUBX.cjs} +2 -2
- package/dist/{DateTimePicker-C557OjBU.cjs.map → DateTimePicker-CDyGxUBX.cjs.map} +1 -1
- package/dist/{DateTimePicker-DBtcWK0F.js → DateTimePicker-DPomyrnN.js} +7 -7
- package/dist/{DateTimePicker-DBtcWK0F.js.map → DateTimePicker-DPomyrnN.js.map} +1 -1
- package/dist/{Dropdown-DKAXue5_.js → Dropdown-FfkmluRu.js} +2 -2
- package/dist/{Dropdown-DKAXue5_.js.map → Dropdown-FfkmluRu.js.map} +1 -1
- package/dist/{Dropdown-DygP50OB.cjs → Dropdown-Ui7h2TGd.cjs} +2 -2
- package/dist/{Dropdown-DygP50OB.cjs.map → Dropdown-Ui7h2TGd.cjs.map} +1 -1
- package/dist/{EmptyState-CCCpZ-ZA.cjs → EmptyState-B77utgEn.cjs} +2 -2
- package/dist/{EmptyState-CCCpZ-ZA.cjs.map → EmptyState-B77utgEn.cjs.map} +1 -1
- package/dist/{EmptyState-CetM49vk.js → EmptyState-CVyFXprK.js} +2 -2
- package/dist/{EmptyState-CetM49vk.js.map → EmptyState-CVyFXprK.js.map} +1 -1
- package/dist/FileCard-Cpc5frNm.js +148 -0
- package/dist/FileCard-Cpc5frNm.js.map +1 -0
- package/dist/FileCard-CsGW2sxE.cjs +2 -0
- package/dist/FileCard-CsGW2sxE.cjs.map +1 -0
- package/dist/{FileUploader-VtmmwUFE.js → FileUploader-B_nKMh_K.js} +5 -5
- package/dist/{FileUploader-VtmmwUFE.js.map → FileUploader-B_nKMh_K.js.map} +1 -1
- package/dist/{FileUploader-B4TJHyoi.cjs → FileUploader-DDi_uzIx.cjs} +2 -2
- package/dist/{FileUploader-B4TJHyoi.cjs.map → FileUploader-DDi_uzIx.cjs.map} +1 -1
- package/dist/{Flag-EPZOrH-U.cjs → Flag-BJLWKB9J.cjs} +2 -2
- package/dist/{Flag-EPZOrH-U.cjs.map → Flag-BJLWKB9J.cjs.map} +1 -1
- package/dist/{Flag-BWCX6oSR.js → Flag-Ck1xK22A.js} +2 -2
- package/dist/{Flag-BWCX6oSR.js.map → Flag-Ck1xK22A.js.map} +1 -1
- package/dist/Flex-BFn4P1tJ.js +52 -0
- package/dist/Flex-BFn4P1tJ.js.map +1 -0
- package/dist/Flex-C6tHC8n7.cjs +2 -0
- package/dist/Flex-C6tHC8n7.cjs.map +1 -0
- package/dist/{FullscreenToggle-oWzYqUPH.js → FullscreenToggle-DmC0jTay.js} +3 -3
- package/dist/{FullscreenToggle-oWzYqUPH.js.map → FullscreenToggle-DmC0jTay.js.map} +1 -1
- package/dist/{FullscreenToggle-DDKN5n8B.cjs → FullscreenToggle-MCxGzAEe.cjs} +2 -2
- package/dist/{FullscreenToggle-DDKN5n8B.cjs.map → FullscreenToggle-MCxGzAEe.cjs.map} +1 -1
- package/dist/Grid-5k6dy-F5.js +26 -0
- package/dist/Grid-5k6dy-F5.js.map +1 -0
- package/dist/Grid-frN0D9lR.cjs +2 -0
- package/dist/Grid-frN0D9lR.cjs.map +1 -0
- package/dist/{IconButton-CBusrDa9.js → IconButton-B8FPGgDn.js} +2 -2
- package/dist/{IconButton-CBusrDa9.js.map → IconButton-B8FPGgDn.js.map} +1 -1
- package/dist/{IconButton-D6TenQZ_.cjs → IconButton-BoY2y_pV.cjs} +2 -2
- package/dist/{IconButton-D6TenQZ_.cjs.map → IconButton-BoY2y_pV.cjs.map} +1 -1
- package/dist/{List-CNz2M3-q.cjs → List-ChXO0Hz-.cjs} +2 -2
- package/dist/{List-CNz2M3-q.cjs.map → List-ChXO0Hz-.cjs.map} +1 -1
- package/dist/{List-BHgFI9Ll.js → List-LqbfF6gU.js} +2 -2
- package/dist/{List-BHgFI9Ll.js.map → List-LqbfF6gU.js.map} +1 -1
- package/dist/{ListItem-B4yqZR-Z.js → ListItem-B4Upc0Hy.js} +2 -2
- package/dist/{ListItem-B4yqZR-Z.js.map → ListItem-B4Upc0Hy.js.map} +1 -1
- package/dist/{ListItem-RH-D-Wey.cjs → ListItem-DWQorRxG.cjs} +2 -2
- package/dist/{ListItem-RH-D-Wey.cjs.map → ListItem-DWQorRxG.cjs.map} +1 -1
- package/dist/{Loader-D1MtlQOH.cjs → Loader-Cwb1bOHj.cjs} +2 -2
- package/dist/{Loader-D1MtlQOH.cjs.map → Loader-Cwb1bOHj.cjs.map} +1 -1
- package/dist/{Loader-C4JoXOyA.js → Loader-UzzqvFyo.js} +2 -2
- package/dist/{Loader-C4JoXOyA.js.map → Loader-UzzqvFyo.js.map} +1 -1
- package/dist/Masonry-9LrJKlhI.cjs +2 -0
- package/dist/Masonry-9LrJKlhI.cjs.map +1 -0
- package/dist/Masonry-BsRWG-oN.js +92 -0
- package/dist/Masonry-BsRWG-oN.js.map +1 -0
- package/dist/{Modal-B2YSCVVt.cjs → Modal-CO3c3sGY.cjs} +2 -2
- package/dist/{Modal-B2YSCVVt.cjs.map → Modal-CO3c3sGY.cjs.map} +1 -1
- package/dist/{Modal-BuaPDlKV.js → Modal-XMRDPHvQ.js} +3 -3
- package/dist/{Modal-BuaPDlKV.js.map → Modal-XMRDPHvQ.js.map} +1 -1
- package/dist/{MultiSelect-BGRT_B60.js → MultiSelect-BPLctumx.js} +6 -6
- package/dist/{MultiSelect-BGRT_B60.js.map → MultiSelect-BPLctumx.js.map} +1 -1
- package/dist/{MultiSelect-CSJKSWpA.cjs → MultiSelect-DVOVHuIm.cjs} +2 -2
- package/dist/{MultiSelect-CSJKSWpA.cjs.map → MultiSelect-DVOVHuIm.cjs.map} +1 -1
- package/dist/{NumberField-DBpO-Z_7.cjs → NumberField-BH237Vt2.cjs} +2 -2
- package/dist/{NumberField-DBpO-Z_7.cjs.map → NumberField-BH237Vt2.cjs.map} +1 -1
- package/dist/{NumberField-DBvhSQCw.js → NumberField-X2HsSpu9.js} +3 -3
- package/dist/{NumberField-DBvhSQCw.js.map → NumberField-X2HsSpu9.js.map} +1 -1
- package/dist/{OtpField-CTq-CUbF.js → OtpField-CB05q0NX.js} +2 -2
- package/dist/{OtpField-CTq-CUbF.js.map → OtpField-CB05q0NX.js.map} +1 -1
- package/dist/{OtpField-BUBYyorC.cjs → OtpField-CXP59zM2.cjs} +2 -2
- package/dist/{OtpField-BUBYyorC.cjs.map → OtpField-CXP59zM2.cjs.map} +1 -1
- package/dist/{PageLayout-Dfbjw6jD.cjs → PageLayout-CuVuZEbR.cjs} +2 -2
- package/dist/{PageLayout-Dfbjw6jD.cjs.map → PageLayout-CuVuZEbR.cjs.map} +1 -1
- package/dist/{PageLayout-DddzYw2B.js → PageLayout-WKWnj5cw.js} +2 -2
- package/dist/{PageLayout-DddzYw2B.js.map → PageLayout-WKWnj5cw.js.map} +1 -1
- package/dist/PageNotFound-CmT-Wr9m.js +39 -0
- package/dist/PageNotFound-CmT-Wr9m.js.map +1 -0
- package/dist/PageNotFound-CxLUFoJa.cjs +2 -0
- package/dist/PageNotFound-CxLUFoJa.cjs.map +1 -0
- package/dist/{Pagination-CN9V8M5C.js → Pagination-BuP4N1bj.js} +2 -2
- package/dist/{Pagination-CN9V8M5C.js.map → Pagination-BuP4N1bj.js.map} +1 -1
- package/dist/{Pagination-DRwTLPh8.cjs → Pagination-Dcs_Znx3.cjs} +2 -2
- package/dist/{Pagination-DRwTLPh8.cjs.map → Pagination-Dcs_Znx3.cjs.map} +1 -1
- package/dist/{RemoveDialog-ClyZKyUG.cjs → RemoveDialog-Cwtq9wAt.cjs} +2 -2
- package/dist/{RemoveDialog-ClyZKyUG.cjs.map → RemoveDialog-Cwtq9wAt.cjs.map} +1 -1
- package/dist/{RemoveDialog-Bvt6sH79.js → RemoveDialog-DU6MqkO8.js} +4 -4
- package/dist/{RemoveDialog-Bvt6sH79.js.map → RemoveDialog-DU6MqkO8.js.map} +1 -1
- package/dist/{RichTextEditor-CAYt1Zm1.cjs → RichTextEditor-GxbnzLRe.cjs} +2 -2
- package/dist/{RichTextEditor-CAYt1Zm1.cjs.map → RichTextEditor-GxbnzLRe.cjs.map} +1 -1
- package/dist/{RichTextEditor-BTx8Py3I.js → RichTextEditor-k-NlWb4Y.js} +9 -9
- package/dist/{RichTextEditor-BTx8Py3I.js.map → RichTextEditor-k-NlWb4Y.js.map} +1 -1
- package/dist/RootLayout-4GV6dfdB.cjs +2 -0
- package/dist/RootLayout-4GV6dfdB.cjs.map +1 -0
- package/dist/{RootLayout-DCpfuFWF.js → RootLayout-BPSWgWlI.js} +16 -16
- package/dist/RootLayout-BPSWgWlI.js.map +1 -0
- package/dist/{Select-PbTyxB1Q.js → Select-D7KJ-YMU.js} +5 -5
- package/dist/{Select-PbTyxB1Q.js.map → Select-D7KJ-YMU.js.map} +1 -1
- package/dist/{Select-_6WogC0u.cjs → Select-DjMZec8c.cjs} +2 -2
- package/dist/{Select-_6WogC0u.cjs.map → Select-DjMZec8c.cjs.map} +1 -1
- package/dist/{Sidebar-AaIlRzgk.cjs → Sidebar-CT_NUo_7.cjs} +2 -2
- package/dist/{Sidebar-AaIlRzgk.cjs.map → Sidebar-CT_NUo_7.cjs.map} +1 -1
- package/dist/{Sidebar-DRCs2ygZ.js → Sidebar-Csd3iKbS.js} +7 -5
- package/dist/{Sidebar-DRCs2ygZ.js.map → Sidebar-Csd3iKbS.js.map} +1 -1
- package/dist/{SpeedDial-C4jxIXTr.cjs → SpeedDial-CyiPagdu.cjs} +2 -2
- package/dist/{SpeedDial-C4jxIXTr.cjs.map → SpeedDial-CyiPagdu.cjs.map} +1 -1
- package/dist/{SpeedDial-DgFj16BQ.js → SpeedDial-DEWzAGXi.js} +2 -2
- package/dist/{SpeedDial-DgFj16BQ.js.map → SpeedDial-DEWzAGXi.js.map} +1 -1
- package/dist/{Stepper-COKAyN1L.js → Stepper-CS6s0dMF.js} +2 -2
- package/dist/{Stepper-COKAyN1L.js.map → Stepper-CS6s0dMF.js.map} +1 -1
- package/dist/{Stepper-7pPEBRLI.cjs → Stepper-PW7c45PV.cjs} +2 -2
- package/dist/{Stepper-7pPEBRLI.cjs.map → Stepper-PW7c45PV.cjs.map} +1 -1
- package/dist/{Table-BeOumGng.cjs → Table-C_Ov-kvK.cjs} +2 -2
- package/dist/{Table-BeOumGng.cjs.map → Table-C_Ov-kvK.cjs.map} +1 -1
- package/dist/{Table-BjPLvMbf.js → Table-IIAKXYOh.js} +174 -174
- package/dist/{Table-BjPLvMbf.js.map → Table-IIAKXYOh.js.map} +1 -1
- package/dist/{Tabs-BZcMnjdC.cjs → Tabs-CaHTJ99w.cjs} +2 -2
- package/dist/{Tabs-BZcMnjdC.cjs.map → Tabs-CaHTJ99w.cjs.map} +1 -1
- package/dist/{Tabs--DDM-zKe.js → Tabs-D3wztVB1.js} +2 -2
- package/dist/{Tabs--DDM-zKe.js.map → Tabs-D3wztVB1.js.map} +1 -1
- package/dist/{TagsField-kknWiJZZ.cjs → TagsField-BQIwSX5m.cjs} +2 -2
- package/dist/{TagsField-kknWiJZZ.cjs.map → TagsField-BQIwSX5m.cjs.map} +1 -1
- package/dist/{TagsField-BTJcZS9P.js → TagsField-BR9Z5pik.js} +4 -4
- package/dist/{TagsField-BTJcZS9P.js.map → TagsField-BR9Z5pik.js.map} +1 -1
- package/dist/{TextField-DMI1X09n.js → TextField-Bg4TwkVD.js} +3 -3
- package/dist/{TextField-DMI1X09n.js.map → TextField-Bg4TwkVD.js.map} +1 -1
- package/dist/{TextField-BPefnD5M.cjs → TextField-fmt7aacg.cjs} +2 -2
- package/dist/{TextField-BPefnD5M.cjs.map → TextField-fmt7aacg.cjs.map} +1 -1
- package/dist/{ThemeToggle-DTal3RX5.cjs → ThemeToggle-Cz5I2-DL.cjs} +2 -2
- package/dist/{ThemeToggle-DTal3RX5.cjs.map → ThemeToggle-Cz5I2-DL.cjs.map} +1 -1
- package/dist/{ThemeToggle-Deh9j8pm.js → ThemeToggle-DEfXczDs.js} +3 -3
- package/dist/{ThemeToggle-Deh9j8pm.js.map → ThemeToggle-DEfXczDs.js.map} +1 -1
- package/dist/{TimeColumns-BCNmu4b_.js → TimeColumns-B-vtakk8.js} +2 -2
- package/dist/{TimeColumns-BCNmu4b_.js.map → TimeColumns-B-vtakk8.js.map} +1 -1
- package/dist/{TimeColumns-Duh4DcYJ.cjs → TimeColumns-IBmjExao.cjs} +2 -2
- package/dist/{TimeColumns-Duh4DcYJ.cjs.map → TimeColumns-IBmjExao.cjs.map} +1 -1
- package/dist/{TimePicker-CfGrCH9T.cjs → TimePicker-B-c6uIaY.cjs} +2 -2
- package/dist/{TimePicker-CfGrCH9T.cjs.map → TimePicker-B-c6uIaY.cjs.map} +1 -1
- package/dist/{TimePicker-3JgvK2on.js → TimePicker-i2RnZHV1.js} +5 -5
- package/dist/{TimePicker-3JgvK2on.js.map → TimePicker-i2RnZHV1.js.map} +1 -1
- package/dist/{Toaster-D-eG1xv7.js → Toaster-Da8F_SFV.js} +2 -2
- package/dist/{Toaster-D-eG1xv7.js.map → Toaster-Da8F_SFV.js.map} +1 -1
- package/dist/{Toaster-Bk5GtPjX.cjs → Toaster-qdS8Urgy.cjs} +2 -2
- package/dist/{Toaster-Bk5GtPjX.cjs.map → Toaster-qdS8Urgy.cjs.map} +1 -1
- package/dist/TranslatedFields-C30ww45c.cjs +2 -0
- package/dist/TranslatedFields-C30ww45c.cjs.map +1 -0
- package/dist/TranslatedFields-Ck9JTF27.js +86 -0
- package/dist/TranslatedFields-Ck9JTF27.js.map +1 -0
- package/dist/{UserCard-BhqtX1vU.js → UserCard-0ZF29bkK.js} +3 -3
- package/dist/{UserCard-BhqtX1vU.js.map → UserCard-0ZF29bkK.js.map} +1 -1
- package/dist/{UserCard-OlLeyyS0.cjs → UserCard-C8rC_gzD.cjs} +2 -2
- package/dist/{UserCard-OlLeyyS0.cjs.map → UserCard-C8rC_gzD.cjs.map} +1 -1
- package/dist/breakpoints-BbDakdqF.js +50 -0
- package/dist/breakpoints-BbDakdqF.js.map +1 -0
- package/dist/breakpoints-Dpnh6BbG.cjs +2 -0
- package/dist/breakpoints-Dpnh6BbG.cjs.map +1 -0
- package/dist/components/Alert/index.cjs +1 -1
- package/dist/components/Alert/index.js +1 -1
- package/dist/components/Breadcrumbs/index.cjs +1 -1
- package/dist/components/Breadcrumbs/index.js +1 -1
- package/dist/components/Button/index.cjs +1 -1
- package/dist/components/Button/index.js +1 -1
- package/dist/components/Card/index.cjs +1 -1
- package/dist/components/Card/index.js +1 -1
- package/dist/components/Chip/index.cjs +1 -1
- package/dist/components/Chip/index.js +1 -1
- package/dist/components/CodeBlock/index.cjs +1 -1
- package/dist/components/CodeBlock/index.js +1 -1
- package/dist/components/ColorPicker/index.cjs +1 -1
- package/dist/components/ColorPicker/index.js +1 -1
- package/dist/components/CopyButton/CopyButton.d.cts +32 -0
- package/dist/components/CopyButton/CopyButton.d.ts +32 -0
- package/dist/components/CopyButton/index.cjs +2 -0
- package/dist/components/CopyButton/index.cjs.map +1 -0
- package/dist/components/CopyButton/index.d.cts +2 -0
- package/dist/components/CopyButton/index.d.ts +2 -0
- package/dist/components/CopyButton/index.js +6 -0
- package/dist/components/CopyButton/index.js.map +1 -0
- package/dist/components/DashedButton/DashedButton.d.cts +33 -0
- package/dist/components/DashedButton/DashedButton.d.ts +33 -0
- package/dist/components/DashedButton/index.cjs +2 -0
- package/dist/components/DashedButton/index.cjs.map +1 -0
- package/dist/components/DashedButton/index.d.cts +2 -0
- package/dist/components/DashedButton/index.d.ts +2 -0
- package/dist/components/DashedButton/index.js +6 -0
- package/dist/components/DashedButton/index.js.map +1 -0
- package/dist/components/DatePicker/index.cjs +1 -1
- package/dist/components/DatePicker/index.js +1 -1
- package/dist/components/DateTimePicker/index.cjs +1 -1
- package/dist/components/DateTimePicker/index.js +1 -1
- package/dist/components/Dropdown/index.cjs +1 -1
- package/dist/components/Dropdown/index.js +1 -1
- package/dist/components/EmptyState/index.cjs +1 -1
- package/dist/components/EmptyState/index.js +1 -1
- package/dist/components/FileCard/FileCard.d.cts +45 -0
- package/dist/components/FileCard/FileCard.d.ts +45 -0
- package/dist/components/FileCard/index.cjs +2 -0
- package/dist/components/FileCard/index.cjs.map +1 -0
- package/dist/components/FileCard/index.d.cts +2 -0
- package/dist/components/FileCard/index.d.ts +2 -0
- package/dist/components/FileCard/index.js +6 -0
- package/dist/components/FileCard/index.js.map +1 -0
- package/dist/components/FileUploader/index.cjs +1 -1
- package/dist/components/FileUploader/index.js +1 -1
- package/dist/components/Flag/index.cjs +1 -1
- package/dist/components/Flag/index.js +1 -1
- package/dist/components/Flex/Flex.d.cts +16 -13
- package/dist/components/Flex/Flex.d.ts +16 -13
- package/dist/components/Flex/Grid.d.cts +11 -9
- package/dist/components/Flex/Grid.d.ts +11 -9
- package/dist/components/Flex/index.cjs +1 -1
- package/dist/components/Flex/index.js +3 -3
- package/dist/components/FullscreenToggle/index.cjs +1 -1
- package/dist/components/FullscreenToggle/index.js +1 -1
- package/dist/components/IconButton/index.cjs +1 -1
- package/dist/components/IconButton/index.js +1 -1
- package/dist/components/List/index.cjs +1 -1
- package/dist/components/List/index.js +2 -2
- package/dist/components/Loader/index.cjs +1 -1
- package/dist/components/Loader/index.js +1 -1
- package/dist/components/Masonry/Masonry.d.cts +22 -15
- package/dist/components/Masonry/Masonry.d.ts +22 -15
- package/dist/components/Masonry/index.cjs +1 -1
- package/dist/components/Masonry/index.js +1 -1
- package/dist/components/Modal/index.cjs +1 -1
- package/dist/components/Modal/index.js +1 -1
- package/dist/components/MultiSelect/index.cjs +1 -1
- package/dist/components/MultiSelect/index.js +1 -1
- package/dist/components/NumberField/index.cjs +1 -1
- package/dist/components/NumberField/index.js +1 -1
- package/dist/components/OtpField/index.cjs +1 -1
- package/dist/components/OtpField/index.js +1 -1
- package/dist/components/PageLayout/index.cjs +1 -1
- package/dist/components/PageLayout/index.js +1 -1
- package/dist/components/PageNotFound/PageNotFound.d.cts +34 -0
- package/dist/components/PageNotFound/PageNotFound.d.ts +34 -0
- package/dist/components/PageNotFound/index.cjs +2 -0
- package/dist/components/PageNotFound/index.cjs.map +1 -0
- package/dist/components/PageNotFound/index.d.cts +2 -0
- package/dist/components/PageNotFound/index.d.ts +2 -0
- package/dist/components/PageNotFound/index.js +6 -0
- package/dist/components/PageNotFound/index.js.map +1 -0
- package/dist/components/Pagination/index.cjs +1 -1
- package/dist/components/Pagination/index.js +1 -1
- package/dist/components/RemoveDialog/index.cjs +1 -1
- package/dist/components/RemoveDialog/index.js +1 -1
- package/dist/components/RichTextEditor/index.cjs +1 -1
- package/dist/components/RichTextEditor/index.js +1 -1
- package/dist/components/RootLayout/index.cjs +1 -1
- package/dist/components/RootLayout/index.js +1 -1
- package/dist/components/Select/index.cjs +1 -1
- package/dist/components/Select/index.js +1 -1
- package/dist/components/Sidebar/index.cjs +1 -1
- package/dist/components/Sidebar/index.js +1 -1
- package/dist/components/SpeedDial/index.cjs +1 -1
- package/dist/components/SpeedDial/index.js +1 -1
- package/dist/components/Stepper/index.cjs +1 -1
- package/dist/components/Stepper/index.js +1 -1
- package/dist/components/Table/index.cjs +1 -1
- package/dist/components/Table/index.js +1 -1
- package/dist/components/Tabs/index.cjs +1 -1
- package/dist/components/Tabs/index.js +1 -1
- package/dist/components/TagsField/index.cjs +1 -1
- package/dist/components/TagsField/index.js +1 -1
- package/dist/components/TextField/index.cjs +1 -1
- package/dist/components/TextField/index.js +1 -1
- package/dist/components/ThemeToggle/index.cjs +1 -1
- package/dist/components/ThemeToggle/index.js +1 -1
- package/dist/components/TimePicker/index.cjs +1 -1
- package/dist/components/TimePicker/index.js +1 -1
- package/dist/components/Toast/index.cjs +1 -1
- package/dist/components/Toast/index.js +1 -1
- package/dist/components/TranslatedFields/TranslatedFields.d.cts +9 -2
- package/dist/components/TranslatedFields/TranslatedFields.d.ts +9 -2
- package/dist/components/TranslatedFields/index.cjs +1 -1
- package/dist/components/TranslatedFields/index.js +1 -1
- package/dist/components/UserCard/index.cjs +1 -1
- package/dist/components/UserCard/index.js +1 -1
- package/dist/components/index.d.cts +4 -0
- package/dist/components/index.d.ts +4 -0
- package/dist/entries/components.cjs +1 -1
- package/dist/entries/components.js +135 -127
- package/dist/entries/components.js.map +1 -1
- package/dist/entries/hooks.cjs +1 -1
- package/dist/entries/hooks.d.cts +3 -1
- package/dist/entries/hooks.d.ts +3 -1
- package/dist/entries/hooks.js +7 -4
- package/dist/entries/hooks.js.map +1 -1
- package/dist/entries/i18n.cjs +1 -1
- package/dist/entries/i18n.js +2 -2
- package/dist/entries/theme.cjs +1 -1
- package/dist/entries/theme.d.cts +2 -2
- package/dist/entries/theme.d.ts +2 -2
- package/dist/entries/theme.js +16 -14
- package/dist/hooks/index.d.cts +3 -1
- package/dist/hooks/index.d.ts +3 -1
- package/dist/hooks/useClipboard.d.cts +28 -0
- package/dist/hooks/useClipboard.d.ts +28 -0
- package/dist/hooks/useMediaQuery.d.cts +21 -8
- package/dist/hooks/useMediaQuery.d.ts +21 -8
- package/dist/i18n/messages.d.cts +6 -0
- package/dist/i18n/messages.d.ts +6 -0
- package/dist/index.cjs +1 -1
- package/dist/index.css +1 -1
- package/dist/index.js +197 -184
- package/dist/index.js.map +1 -1
- package/dist/{messages-C-zecFBE.js → messages-BOKick2l.js} +52 -10
- package/dist/messages-BOKick2l.js.map +1 -0
- package/dist/messages-Jxz2YMcA.cjs +36 -0
- package/dist/messages-Jxz2YMcA.cjs.map +1 -0
- package/dist/theme/ConfigProvider.d.cts +9 -0
- package/dist/theme/ConfigProvider.d.ts +9 -0
- package/dist/theme/breakpoints.d.cts +48 -13
- package/dist/theme/breakpoints.d.ts +48 -13
- package/dist/theme/index.d.cts +2 -2
- package/dist/theme/index.d.ts +2 -2
- package/dist/useClipboard-BjTIX-4g.cjs +2 -0
- package/dist/useClipboard-BjTIX-4g.cjs.map +1 -0
- package/dist/useClipboard-CEw_Juiq.js +23 -0
- package/dist/useClipboard-CEw_Juiq.js.map +1 -0
- package/dist/useMediaQuery-CHMrI6Dy.cjs +2 -0
- package/dist/useMediaQuery-CHMrI6Dy.cjs.map +1 -0
- package/dist/useMediaQuery-DrDUrkmJ.js +32 -0
- package/dist/useMediaQuery-DrDUrkmJ.js.map +1 -0
- package/package.json +4 -3
- package/dist/ConfigProvider-2c94kUOk.js +0 -291
- package/dist/ConfigProvider-2c94kUOk.js.map +0 -1
- package/dist/ConfigProvider-ByOFXVyP.cjs +0 -2
- package/dist/ConfigProvider-ByOFXVyP.cjs.map +0 -1
- package/dist/Flex-Bj3mMF5A.js +0 -50
- package/dist/Flex-Bj3mMF5A.js.map +0 -1
- package/dist/Flex-CqL3Ghda.cjs +0 -2
- package/dist/Flex-CqL3Ghda.cjs.map +0 -1
- package/dist/Grid-Bw95bKkJ.cjs +0 -2
- package/dist/Grid-Bw95bKkJ.cjs.map +0 -1
- package/dist/Grid-CY-syhTX.js +0 -24
- package/dist/Grid-CY-syhTX.js.map +0 -1
- package/dist/Masonry-BTvtDdnt.js +0 -104
- package/dist/Masonry-BTvtDdnt.js.map +0 -1
- package/dist/Masonry-Bl1Mlzqw.cjs +0 -2
- package/dist/Masonry-Bl1Mlzqw.cjs.map +0 -1
- package/dist/RootLayout-Cp-9CVjP.cjs +0 -2
- package/dist/RootLayout-Cp-9CVjP.cjs.map +0 -1
- package/dist/RootLayout-DCpfuFWF.js.map +0 -1
- package/dist/TranslatedFields-CI0F9bHw.js +0 -82
- package/dist/TranslatedFields-CI0F9bHw.js.map +0 -1
- package/dist/TranslatedFields-DT3bYse6.cjs +0 -2
- package/dist/TranslatedFields-DT3bYse6.cjs.map +0 -1
- package/dist/breakpoints-BNPC2_Te.cjs +0 -2
- package/dist/breakpoints-BNPC2_Te.cjs.map +0 -1
- package/dist/breakpoints-o3dzSzrU.js +0 -12
- package/dist/breakpoints-o3dzSzrU.js.map +0 -1
- package/dist/messages-C-zecFBE.js.map +0 -1
- package/dist/messages-Cy-qK5xU.cjs +0 -36
- package/dist/messages-Cy-qK5xU.cjs.map +0 -1
- package/dist/useMediaQuery-BCsNfMA1.cjs +0 -2
- package/dist/useMediaQuery-BCsNfMA1.cjs.map +0 -1
- package/dist/useMediaQuery-_1EcFoC5.js +0 -17
- package/dist/useMediaQuery-_1EcFoC5.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UserCard-
|
|
1
|
+
{"version":3,"file":"UserCard-C8rC_gzD.cjs","sources":["../src/components/UserCard/UserCard.tsx"],"sourcesContent":["import { forwardRef, type CSSProperties, type HTMLAttributes, type ReactNode } from 'react'\nimport { clsx } from 'clsx'\nimport { useT, type ThemeColor } from '../../theme'\nimport type { IconName } from '../../icons/names'\nimport { Avatar } from '../Avatar'\nimport { Button } from '../Button'\nimport { Icon } from '../Icon'\nimport { Typography } from '../Typography'\nimport styles from './UserCard.module.css'\n\nexport type UserCardSize = 'sm' | 'md' | 'lg'\n\nexport interface UserCardProps extends Omit<HTMLAttributes<HTMLDivElement>, 'color'> {\n /** Display name — the primary line, and the source of the avatar initials. */\n name?: string\n /** Secondary line under the name (usually the email). */\n email?: ReactNode\n /** Avatar image URL (falls back to the initials from `name`, else the `icon`). */\n avatar?: string\n /** Fallback avatar icon when there's no image or name. Defaults to `'User'`. */\n icon?: IconName\n /** Theme palette token tinting the avatar. Defaults to `'primary'`. */\n color?: ThemeColor\n /** Preset size (avatar + fonts + button). Defaults to `'md'`. */\n size?: UserCardSize\n /** When provided, a **Sign out** button is shown that calls this. */\n onLogout?: () => void\n /** Sign-out button label. Defaults to `'Sign out'`. */\n logoutLabel?: ReactNode\n /** Extra content between the identity row and the sign-out button (e.g. a link or menu). */\n children?: ReactNode\n}\n\n/**\n * A compact account card — an `Avatar` + name/email and an optional **Sign out** button. Drop it into\n * the `RootLayout` `sidebarFooter` (or anywhere) for a consistent signed-in-user block across apps,\n * instead of hand-rolling the markup each time. Shows the image (`avatar`) → initials (from `name`) →\n * `icon` (default `User`) in priority order; renders the sign-out `Button` (filled `error`) only when\n * `onLogout` is given. `size` (`sm`/`md`/`lg`) scales the avatar + type; `color` (default `primary`)\n * tints the avatar. Own CSS module (token-only).\n */\nexport const UserCard = forwardRef<HTMLDivElement, UserCardProps>(function UserCard(\n {\n name,\n email,\n avatar,\n icon = 'User',\n color = 'primary',\n size = 'md',\n onLogout,\n logoutLabel,\n children,\n className,\n style,\n ...props\n },\n ref,\n) {\n const t = useT()\n // the identity row + the sign-out button share the same visual size step\n const avatarSize = size === 'lg' ? 'lg' : size === 'sm' ? 'sm' : 'md'\n const buttonSize = size === 'lg' ? 'md' : 'sm'\n\n return (\n <div\n ref={ref}\n className={clsx(styles.card, styles[size], className)}\n style={style as CSSProperties}\n {...props}\n >\n <div className={styles.identity}>\n {/* Avatar priority is image → icon → initials, so pass `icon` only as the last resort (no\n name), otherwise a name would still show the icon instead of its initials */}\n <Avatar\n size={avatarSize}\n name={name}\n src={avatar}\n icon={name ? undefined : icon}\n color={color}\n />\n {(name != null || email != null) && (\n <div className={styles.text}>\n {name != null && (\n <Typography variant=\"bodySmall\" truncate>\n {name}\n </Typography>\n )}\n {email != null && (\n <Typography variant=\"caption\" color=\"muted\" truncate>\n {email}\n </Typography>\n )}\n </div>\n )}\n </div>\n\n {children}\n\n {onLogout ? (\n <Button\n variant=\"filled\"\n color=\"error\"\n size={buttonSize}\n fullWidth\n startIcon={<Icon name=\"Logout2\" />}\n onClick={onLogout}\n >\n {logoutLabel ?? t('userCard.signOut')}\n </Button>\n ) : null}\n </div>\n )\n})\n"],"names":["UserCard","forwardRef","name","email","avatar","icon","color","size","onLogout","logoutLabel","children","className","style","props","ref","t","useT","avatarSize","buttonSize","jsxs","clsx","styles","jsx","Avatar","Typography","Button","Icon"],"mappings":"qZAyCaA,EAAWC,EAAAA,WAA0C,SAChE,CACE,KAAAC,EACA,MAAAC,EACA,OAAAC,EACA,KAAAC,EAAO,OACP,MAAAC,EAAQ,UACR,KAAAC,EAAO,KACP,SAAAC,EACA,YAAAC,EACA,SAAAC,EACA,UAAAC,EACA,MAAAC,EACA,GAAGC,CACL,EACAC,EACA,CACA,MAAMC,EAAIC,EAAAA,KAAA,EAEJC,EAAaV,IAAS,KAAO,KAAOA,IAAS,KAAO,KAAO,KAC3DW,EAAaX,IAAS,KAAO,KAAO,KAE1C,OACEY,EAAAA,KAAC,MAAA,CACC,IAAAL,EACA,UAAWM,EAAAA,KAAKC,EAAO,KAAMA,EAAOd,CAAI,EAAGI,CAAS,EACpD,MAAAC,EACC,GAAGC,EAEJ,SAAA,CAAAM,EAAAA,KAAC,MAAA,CAAI,UAAWE,EAAO,SAGrB,SAAA,CAAAC,EAAAA,IAACC,EAAAA,OAAA,CACC,KAAMN,EACN,KAAAf,EACA,IAAKE,EACL,KAAMF,EAAO,OAAYG,EACzB,MAAAC,CAAA,CAAA,GAEAJ,GAAQ,MAAQC,GAAS,cACxB,MAAA,CAAI,UAAWkB,EAAO,KACpB,SAAA,CAAAnB,GAAQ,MACPoB,MAACE,EAAAA,WAAA,CAAW,QAAQ,YAAY,SAAQ,GACrC,SAAAtB,CAAA,CACH,EAEDC,GAAS,MACRmB,EAAAA,IAACE,EAAAA,WAAA,CAAW,QAAQ,UAAU,MAAM,QAAQ,SAAQ,GACjD,SAAArB,CAAA,CACH,CAAA,CAAA,CAEJ,CAAA,EAEJ,EAECO,EAEAF,EACCc,EAAAA,IAACG,EAAAA,OAAA,CACC,QAAQ,SACR,MAAM,QACN,KAAMP,EACN,UAAS,GACT,UAAWI,EAAAA,IAACI,EAAAA,KAAA,CAAK,KAAK,SAAA,CAAU,EAChC,QAASlB,EAER,SAAAC,GAAeM,EAAE,kBAAkB,CAAA,CAAA,EAEpC,IAAA,CAAA,CAAA,CAGV,CAAC"}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
const f = {
|
|
2
|
+
xxs: 575.98,
|
|
3
|
+
xs: 767.98,
|
|
4
|
+
sm: 1023.98,
|
|
5
|
+
md: 1279.98,
|
|
6
|
+
lg: 1439.98,
|
|
7
|
+
xl: 1679.98,
|
|
8
|
+
xxl: 1919.98
|
|
9
|
+
}, o = ["xxs", "xs", "sm", "md", "lg", "xl", "xxl"];
|
|
10
|
+
function l(t, e = "down") {
|
|
11
|
+
const n = r[t];
|
|
12
|
+
return e === "up" ? `(min-width: ${Math.ceil(n)}px)` : `(max-width: ${n}px)`;
|
|
13
|
+
}
|
|
14
|
+
let r = { ...f }, u = 0;
|
|
15
|
+
const i = /* @__PURE__ */ new Set();
|
|
16
|
+
function x() {
|
|
17
|
+
return u;
|
|
18
|
+
}
|
|
19
|
+
function a(t) {
|
|
20
|
+
return i.add(t), () => {
|
|
21
|
+
i.delete(t);
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
function p(t) {
|
|
25
|
+
const e = { ...f };
|
|
26
|
+
if (t)
|
|
27
|
+
for (const n of o)
|
|
28
|
+
typeof t[n] == "number" && (e[n] = t[n]);
|
|
29
|
+
o.every((n) => e[n] === r[n]) || (r = e, u += 1, i.forEach((n) => n()));
|
|
30
|
+
}
|
|
31
|
+
function b(t, e) {
|
|
32
|
+
if (t == null || typeof t != "object") return t;
|
|
33
|
+
const n = t;
|
|
34
|
+
for (const s of o)
|
|
35
|
+
if (n[s] != null && e[s]) return n[s];
|
|
36
|
+
for (let s = o.length - 1; s >= 0; s--) {
|
|
37
|
+
const c = o[s];
|
|
38
|
+
if (n[c] != null) return n[c];
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
export {
|
|
42
|
+
f as B,
|
|
43
|
+
o as a,
|
|
44
|
+
l as b,
|
|
45
|
+
p as c,
|
|
46
|
+
x as g,
|
|
47
|
+
b as r,
|
|
48
|
+
a as s
|
|
49
|
+
};
|
|
50
|
+
//# sourceMappingURL=breakpoints-BbDakdqF.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"breakpoints-BbDakdqF.js","sources":["../src/theme/breakpoints.ts"],"sourcesContent":["/**\n * The library's shared responsive breakpoints — the single source of truth for width thresholds, so\n * every responsive check (JS + component props) keys off the same sizes.\n *\n * **Desktop-first / max-width** model: each key is the **upper bound** (in px) of that band — `sm` means\n * \"screens **at most** `1023.98px` wide\" (tablet-landscape-and-down), matching `useMediaQuery('sm')` →\n * `(max-width: 1023.98px)`. `xxs` is the small-phone bound; anything wider than `xxl` (>1919.98) is the\n * large-desktop base. The `.98` avoids overlap with the next band's integer start\n * (576 / 768 / 1024 / 1280 / 1440 / 1680 / 1920). `xxs` (575.98) matches the phone tweaks the component\n * CSS already keys off, so the two stay in sync.\n */\nexport const BREAKPOINTS = {\n xxs: 575.98,\n xs: 767.98,\n sm: 1023.98,\n md: 1279.98,\n lg: 1439.98,\n xl: 1679.98,\n xxl: 1919.98,\n} as const\n\n/** A responsive breakpoint key (`'xxs' | 'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'xxl'`). */\nexport type Breakpoint = keyof typeof BREAKPOINTS\n\n/** Breakpoint keys ascending (narrowest → widest). */\nexport const BREAKPOINT_ORDER: readonly Breakpoint[] = ['xxs', 'xs', 'sm', 'md', 'lg', 'xl', 'xxl']\n\n/**\n * A value that may vary by breakpoint — either a single value or a **desktop-first** map keyed by\n * breakpoint (e.g. `{ xs: 1, md: 3 }`): each entry applies at that breakpoint's max-width and below,\n * until a smaller one overrides; the largest defined key is the base for anything wider.\n */\nexport type Responsive<T> = T | Partial<Record<Breakpoint, T>>\n\n/**\n * Build the media-query string for a breakpoint, using the **active** bounds (see the config store\n * below). `down` (default) → `(max-width: <bound>px)` (that band and narrower); `up` →\n * `(min-width: <next whole px>px)` (wider than the band).\n */\nexport function breakpointQuery(bp: Breakpoint, direction: 'down' | 'up' = 'down'): string {\n const bound = active[bp]\n // `up` starts just above the band's `.98` bound — the next whole px (e.g. md 1279.98 → min-width 1280)\n return direction === 'up' ? `(min-width: ${Math.ceil(bound)}px)` : `(max-width: ${bound}px)`\n}\n\n// ── active bounds — overridable from `ConfigProvider` (`config.theme.breakpoints`) ────────────────\n// The KEYS are fixed (`xxs…xxl`); an app overrides the pixel VALUES (a subset is fine). `BREAKPOINTS`\n// above stays the immutable defaults + the source of the `Breakpoint` type; these are the live values\n// the query builder / hooks read, so a config override flows through `useMediaQuery` / `Flex` / `Grid`\n// / `Masonry`. NOTE: this affects the **JS** responsive layer only — component CSS `@media` rules are\n// compiled into the stylesheet and can't follow a runtime override.\nlet active: Record<Breakpoint, number> = { ...BREAKPOINTS }\nlet version = 0\nconst listeners = new Set<() => void>()\n\n/** The live breakpoint bounds (defaults merged with any `config.theme.breakpoints` override). */\nexport function getBreakpoints(): Record<Breakpoint, number> {\n return active\n}\n\n/** A version counter that bumps on every change — feeds `useSyncExternalStore` for reactive reads. */\nexport function getBreakpointsVersion(): number {\n return version\n}\n\n/** Subscribe to override changes (used by `useMediaQuery` so token queries re-resolve live). */\nexport function subscribeBreakpoints(cb: () => void): () => void {\n listeners.add(cb)\n return () => {\n listeners.delete(cb)\n }\n}\n\n/**\n * Override the pixel bounds of (some) breakpoints — keys stay fixed, so pass any subset. `undefined` /\n * empty resets to the built-in defaults. `ConfigProvider` calls this from `config.theme.breakpoints`;\n * a no-op when nothing actually changed.\n */\nexport function setBreakpoints(overrides?: Partial<Record<Breakpoint, number>>): void {\n const next: Record<Breakpoint, number> = { ...BREAKPOINTS }\n if (overrides) {\n for (const bp of BREAKPOINT_ORDER) {\n if (typeof overrides[bp] === 'number') next[bp] = overrides[bp] as number\n }\n }\n if (BREAKPOINT_ORDER.every((bp) => next[bp] === active[bp])) return\n active = next\n version += 1\n listeners.forEach((l) => l())\n}\n\n/**\n * Resolve a possibly-responsive value against the currently matching breakpoints (a `{ bp: boolean }`\n * map of max-width matches). A plain value passes through; a breakpoint map is **desktop-first** — the\n * value of the **smallest matching** breakpoint wins (the tightest band the viewport falls into),\n * falling back to the **largest defined** key when none match (screens wider than every defined bound).\n */\nexport function resolveResponsive<T>(\n value: Responsive<T>,\n matches: Record<Breakpoint, boolean>,\n): T | undefined {\n if (value == null || typeof value !== 'object') return value as T | undefined\n const map = value as Partial<Record<Breakpoint, T>>\n // smallest matching band wins (ascending → first match is the tightest max-width the viewport is in)\n for (const bp of BREAKPOINT_ORDER) {\n if (map[bp] != null && matches[bp]) return map[bp]\n }\n // wider than every defined bound → the largest defined value is the base\n for (let i = BREAKPOINT_ORDER.length - 1; i >= 0; i--) {\n const bp = BREAKPOINT_ORDER[i]\n if (map[bp] != null) return map[bp]\n }\n return undefined\n}\n"],"names":["BREAKPOINTS","BREAKPOINT_ORDER","breakpointQuery","bp","direction","bound","active","version","listeners","getBreakpointsVersion","subscribeBreakpoints","cb","setBreakpoints","overrides","next","l","resolveResponsive","value","matches","map","i"],"mappings":"AAWO,MAAMA,IAAc;AAAA,EACzB,KAAK;AAAA,EACL,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,KAAK;AACP,GAMaC,IAA0C,CAAC,OAAO,MAAM,MAAM,MAAM,MAAM,MAAM,KAAK;AAc3F,SAASC,EAAgBC,GAAgBC,IAA2B,QAAgB;AACzF,QAAMC,IAAQC,EAAOH,CAAE;AAEvB,SAAOC,MAAc,OAAO,eAAe,KAAK,KAAKC,CAAK,CAAC,QAAQ,eAAeA,CAAK;AACzF;AAQA,IAAIC,IAAqC,EAAE,GAAGN,EAAA,GAC1CO,IAAU;AACd,MAAMC,wBAAgB,IAAA;AAQf,SAASC,IAAgC;AAC9C,SAAOF;AACT;AAGO,SAASG,EAAqBC,GAA4B;AAC/D,SAAAH,EAAU,IAAIG,CAAE,GACT,MAAM;AACX,IAAAH,EAAU,OAAOG,CAAE;AAAA,EACrB;AACF;AAOO,SAASC,EAAeC,GAAuD;AACpF,QAAMC,IAAmC,EAAE,GAAGd,EAAA;AAC9C,MAAIa;AACF,eAAWV,KAAMF;AACf,MAAI,OAAOY,EAAUV,CAAE,KAAM,aAAUW,EAAKX,CAAE,IAAIU,EAAUV,CAAE;AAGlE,EAAIF,EAAiB,MAAM,CAACE,MAAOW,EAAKX,CAAE,MAAMG,EAAOH,CAAE,CAAC,MAC1DG,IAASQ,GACTP,KAAW,GACXC,EAAU,QAAQ,CAACO,MAAMA,EAAA,CAAG;AAC9B;AAQO,SAASC,EACdC,GACAC,GACe;AACf,MAAID,KAAS,QAAQ,OAAOA,KAAU,SAAU,QAAOA;AACvD,QAAME,IAAMF;AAEZ,aAAWd,KAAMF;AACf,QAAIkB,EAAIhB,CAAE,KAAK,QAAQe,EAAQf,CAAE,EAAG,QAAOgB,EAAIhB,CAAE;AAGnD,WAASiB,IAAInB,EAAiB,SAAS,GAAGmB,KAAK,GAAGA,KAAK;AACrD,UAAMjB,IAAKF,EAAiBmB,CAAC;AAC7B,QAAID,EAAIhB,CAAE,KAAK,KAAM,QAAOgB,EAAIhB,CAAE;AAAA,EACpC;AAEF;"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";const u={xxs:575.98,xs:767.98,sm:1023.98,md:1279.98,lg:1439.98,xl:1679.98,xxl:1919.98},s=["xxs","xs","sm","md","lg","xl","xxl"];function l(t,e="down"){const n=r[t];return e==="up"?`(min-width: ${Math.ceil(n)}px)`:`(max-width: ${n}px)`}let r={...u},f=0;const i=new Set;function p(){return f}function x(t){return i.add(t),()=>{i.delete(t)}}function a(t){const e={...u};if(t)for(const n of s)typeof t[n]=="number"&&(e[n]=t[n]);s.every(n=>e[n]===r[n])||(r=e,f+=1,i.forEach(n=>n()))}function b(t,e){if(t==null||typeof t!="object")return t;const n=t;for(const o of s)if(n[o]!=null&&e[o])return n[o];for(let o=s.length-1;o>=0;o--){const c=s[o];if(n[c]!=null)return n[c]}}exports.BREAKPOINTS=u;exports.BREAKPOINT_ORDER=s;exports.breakpointQuery=l;exports.getBreakpointsVersion=p;exports.resolveResponsive=b;exports.setBreakpoints=a;exports.subscribeBreakpoints=x;
|
|
2
|
+
//# sourceMappingURL=breakpoints-Dpnh6BbG.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"breakpoints-Dpnh6BbG.cjs","sources":["../src/theme/breakpoints.ts"],"sourcesContent":["/**\n * The library's shared responsive breakpoints — the single source of truth for width thresholds, so\n * every responsive check (JS + component props) keys off the same sizes.\n *\n * **Desktop-first / max-width** model: each key is the **upper bound** (in px) of that band — `sm` means\n * \"screens **at most** `1023.98px` wide\" (tablet-landscape-and-down), matching `useMediaQuery('sm')` →\n * `(max-width: 1023.98px)`. `xxs` is the small-phone bound; anything wider than `xxl` (>1919.98) is the\n * large-desktop base. The `.98` avoids overlap with the next band's integer start\n * (576 / 768 / 1024 / 1280 / 1440 / 1680 / 1920). `xxs` (575.98) matches the phone tweaks the component\n * CSS already keys off, so the two stay in sync.\n */\nexport const BREAKPOINTS = {\n xxs: 575.98,\n xs: 767.98,\n sm: 1023.98,\n md: 1279.98,\n lg: 1439.98,\n xl: 1679.98,\n xxl: 1919.98,\n} as const\n\n/** A responsive breakpoint key (`'xxs' | 'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'xxl'`). */\nexport type Breakpoint = keyof typeof BREAKPOINTS\n\n/** Breakpoint keys ascending (narrowest → widest). */\nexport const BREAKPOINT_ORDER: readonly Breakpoint[] = ['xxs', 'xs', 'sm', 'md', 'lg', 'xl', 'xxl']\n\n/**\n * A value that may vary by breakpoint — either a single value or a **desktop-first** map keyed by\n * breakpoint (e.g. `{ xs: 1, md: 3 }`): each entry applies at that breakpoint's max-width and below,\n * until a smaller one overrides; the largest defined key is the base for anything wider.\n */\nexport type Responsive<T> = T | Partial<Record<Breakpoint, T>>\n\n/**\n * Build the media-query string for a breakpoint, using the **active** bounds (see the config store\n * below). `down` (default) → `(max-width: <bound>px)` (that band and narrower); `up` →\n * `(min-width: <next whole px>px)` (wider than the band).\n */\nexport function breakpointQuery(bp: Breakpoint, direction: 'down' | 'up' = 'down'): string {\n const bound = active[bp]\n // `up` starts just above the band's `.98` bound — the next whole px (e.g. md 1279.98 → min-width 1280)\n return direction === 'up' ? `(min-width: ${Math.ceil(bound)}px)` : `(max-width: ${bound}px)`\n}\n\n// ── active bounds — overridable from `ConfigProvider` (`config.theme.breakpoints`) ────────────────\n// The KEYS are fixed (`xxs…xxl`); an app overrides the pixel VALUES (a subset is fine). `BREAKPOINTS`\n// above stays the immutable defaults + the source of the `Breakpoint` type; these are the live values\n// the query builder / hooks read, so a config override flows through `useMediaQuery` / `Flex` / `Grid`\n// / `Masonry`. NOTE: this affects the **JS** responsive layer only — component CSS `@media` rules are\n// compiled into the stylesheet and can't follow a runtime override.\nlet active: Record<Breakpoint, number> = { ...BREAKPOINTS }\nlet version = 0\nconst listeners = new Set<() => void>()\n\n/** The live breakpoint bounds (defaults merged with any `config.theme.breakpoints` override). */\nexport function getBreakpoints(): Record<Breakpoint, number> {\n return active\n}\n\n/** A version counter that bumps on every change — feeds `useSyncExternalStore` for reactive reads. */\nexport function getBreakpointsVersion(): number {\n return version\n}\n\n/** Subscribe to override changes (used by `useMediaQuery` so token queries re-resolve live). */\nexport function subscribeBreakpoints(cb: () => void): () => void {\n listeners.add(cb)\n return () => {\n listeners.delete(cb)\n }\n}\n\n/**\n * Override the pixel bounds of (some) breakpoints — keys stay fixed, so pass any subset. `undefined` /\n * empty resets to the built-in defaults. `ConfigProvider` calls this from `config.theme.breakpoints`;\n * a no-op when nothing actually changed.\n */\nexport function setBreakpoints(overrides?: Partial<Record<Breakpoint, number>>): void {\n const next: Record<Breakpoint, number> = { ...BREAKPOINTS }\n if (overrides) {\n for (const bp of BREAKPOINT_ORDER) {\n if (typeof overrides[bp] === 'number') next[bp] = overrides[bp] as number\n }\n }\n if (BREAKPOINT_ORDER.every((bp) => next[bp] === active[bp])) return\n active = next\n version += 1\n listeners.forEach((l) => l())\n}\n\n/**\n * Resolve a possibly-responsive value against the currently matching breakpoints (a `{ bp: boolean }`\n * map of max-width matches). A plain value passes through; a breakpoint map is **desktop-first** — the\n * value of the **smallest matching** breakpoint wins (the tightest band the viewport falls into),\n * falling back to the **largest defined** key when none match (screens wider than every defined bound).\n */\nexport function resolveResponsive<T>(\n value: Responsive<T>,\n matches: Record<Breakpoint, boolean>,\n): T | undefined {\n if (value == null || typeof value !== 'object') return value as T | undefined\n const map = value as Partial<Record<Breakpoint, T>>\n // smallest matching band wins (ascending → first match is the tightest max-width the viewport is in)\n for (const bp of BREAKPOINT_ORDER) {\n if (map[bp] != null && matches[bp]) return map[bp]\n }\n // wider than every defined bound → the largest defined value is the base\n for (let i = BREAKPOINT_ORDER.length - 1; i >= 0; i--) {\n const bp = BREAKPOINT_ORDER[i]\n if (map[bp] != null) return map[bp]\n }\n return undefined\n}\n"],"names":["BREAKPOINTS","BREAKPOINT_ORDER","breakpointQuery","bp","direction","bound","active","version","listeners","getBreakpointsVersion","subscribeBreakpoints","cb","setBreakpoints","overrides","next","l","resolveResponsive","value","matches","map","i"],"mappings":"aAWO,MAAMA,EAAc,CACzB,IAAK,OACL,GAAI,OACJ,GAAI,QACJ,GAAI,QACJ,GAAI,QACJ,GAAI,QACJ,IAAK,OACP,EAMaC,EAA0C,CAAC,MAAO,KAAM,KAAM,KAAM,KAAM,KAAM,KAAK,EAc3F,SAASC,EAAgBC,EAAgBC,EAA2B,OAAgB,CACzF,MAAMC,EAAQC,EAAOH,CAAE,EAEvB,OAAOC,IAAc,KAAO,eAAe,KAAK,KAAKC,CAAK,CAAC,MAAQ,eAAeA,CAAK,KACzF,CAQA,IAAIC,EAAqC,CAAE,GAAGN,CAAA,EAC1CO,EAAU,EACd,MAAMC,MAAgB,IAQf,SAASC,GAAgC,CAC9C,OAAOF,CACT,CAGO,SAASG,EAAqBC,EAA4B,CAC/D,OAAAH,EAAU,IAAIG,CAAE,EACT,IAAM,CACXH,EAAU,OAAOG,CAAE,CACrB,CACF,CAOO,SAASC,EAAeC,EAAuD,CACpF,MAAMC,EAAmC,CAAE,GAAGd,CAAA,EAC9C,GAAIa,EACF,UAAWV,KAAMF,EACX,OAAOY,EAAUV,CAAE,GAAM,WAAUW,EAAKX,CAAE,EAAIU,EAAUV,CAAE,GAG9DF,EAAiB,MAAOE,GAAOW,EAAKX,CAAE,IAAMG,EAAOH,CAAE,CAAC,IAC1DG,EAASQ,EACTP,GAAW,EACXC,EAAU,QAASO,GAAMA,EAAA,CAAG,EAC9B,CAQO,SAASC,EACdC,EACAC,EACe,CACf,GAAID,GAAS,MAAQ,OAAOA,GAAU,SAAU,OAAOA,EACvD,MAAME,EAAMF,EAEZ,UAAWd,KAAMF,EACf,GAAIkB,EAAIhB,CAAE,GAAK,MAAQe,EAAQf,CAAE,EAAG,OAAOgB,EAAIhB,CAAE,EAGnD,QAASiB,EAAInB,EAAiB,OAAS,EAAGmB,GAAK,EAAGA,IAAK,CACrD,MAAMjB,EAAKF,EAAiBmB,CAAC,EAC7B,GAAID,EAAIhB,CAAE,GAAK,KAAM,OAAOgB,EAAIhB,CAAE,CACpC,CAEF"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../../Alert-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../../Alert-D99G0StL.cjs");exports.Alert=e.Alert;exports.default=e.Alert;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../../Breadcrumbs-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../../Breadcrumbs-BnxhmyK5.cjs");exports.Breadcrumbs=e.Breadcrumbs;exports.default=e.Breadcrumbs;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("../../Button-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("../../Button-Cj6pckNl.cjs");exports.Button=t.Button;exports.default=t.Button;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../../Card-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../../Card-DD9SWHzZ.cjs");exports.Card=e.Card;exports.default=e.Card;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../../Chip-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../../Chip-B2lY4TJ0.cjs");exports.Chip=e.Chip;exports.default=e.Chip;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../../CodeBlock-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../../CodeBlock-EhB7v9-R.cjs");exports.CodeBlock=e.CodeBlock;exports.default=e.CodeBlock;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../../ColorPicker-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../../ColorPicker-Dc1y9Zuu.cjs");exports.ColorPicker=e.ColorPicker;exports.default=e.ColorPicker;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { type IconButtonProps } from '../IconButton';
|
|
2
|
+
import type { IconName } from '../../icons/names';
|
|
3
|
+
export interface CopyButtonProps extends Omit<IconButtonProps, 'children' | 'aria-label' | 'onCopy'> {
|
|
4
|
+
/** The text copied to the clipboard on click. */
|
|
5
|
+
value: string;
|
|
6
|
+
/** Idle icon. Defaults to `'Copy'`. */
|
|
7
|
+
icon?: IconName;
|
|
8
|
+
/** Icon shown briefly after a successful copy. Defaults to `'CopySuccess'`. */
|
|
9
|
+
copiedIcon?: IconName;
|
|
10
|
+
/** Tooltip + accessible label while idle. Defaults to the localized `clipboard.copy` (`"Copy"`). */
|
|
11
|
+
copyLabel?: string;
|
|
12
|
+
/** Tooltip + accessible label right after copying. Defaults to the localized `clipboard.copied` (`"Copied!"`). */
|
|
13
|
+
copiedLabel?: string;
|
|
14
|
+
/** How long (ms) the copied state shows before reverting. Defaults to `1600`. */
|
|
15
|
+
timeout?: number;
|
|
16
|
+
/** Show the hover/focus tooltip. Defaults to `true`. */
|
|
17
|
+
tooltip?: boolean;
|
|
18
|
+
/** Called with `value` after a successful copy. */
|
|
19
|
+
onCopy?: (value: string) => void;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* A ready-made **click-to-copy** button — copies `value` to the clipboard and flips its icon to a tick
|
|
23
|
+
* (+ a tooltip that reads "Copied!") for a moment, then reverts. Wraps `IconButton` (defaults to the
|
|
24
|
+
* quiet `text` variant) with a `Tooltip`; labels come from the built-in i18n (`clipboard.copy` /
|
|
25
|
+
* `clipboard.copied`), so they localize with the panel. For a labeled button or a custom trigger, use
|
|
26
|
+
* the `useClipboard` hook instead. Built on `navigator.clipboard` (no-ops where unavailable).
|
|
27
|
+
*
|
|
28
|
+
* @example
|
|
29
|
+
* <CopyButton value={apiKey} />
|
|
30
|
+
* <CopyButton value={url} copyLabel="Copy link" size="sm" />
|
|
31
|
+
*/
|
|
32
|
+
export declare const CopyButton: import("react").ForwardRefExoticComponent<CopyButtonProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { type IconButtonProps } from '../IconButton';
|
|
2
|
+
import type { IconName } from '../../icons/names';
|
|
3
|
+
export interface CopyButtonProps extends Omit<IconButtonProps, 'children' | 'aria-label' | 'onCopy'> {
|
|
4
|
+
/** The text copied to the clipboard on click. */
|
|
5
|
+
value: string;
|
|
6
|
+
/** Idle icon. Defaults to `'Copy'`. */
|
|
7
|
+
icon?: IconName;
|
|
8
|
+
/** Icon shown briefly after a successful copy. Defaults to `'CopySuccess'`. */
|
|
9
|
+
copiedIcon?: IconName;
|
|
10
|
+
/** Tooltip + accessible label while idle. Defaults to the localized `clipboard.copy` (`"Copy"`). */
|
|
11
|
+
copyLabel?: string;
|
|
12
|
+
/** Tooltip + accessible label right after copying. Defaults to the localized `clipboard.copied` (`"Copied!"`). */
|
|
13
|
+
copiedLabel?: string;
|
|
14
|
+
/** How long (ms) the copied state shows before reverting. Defaults to `1600`. */
|
|
15
|
+
timeout?: number;
|
|
16
|
+
/** Show the hover/focus tooltip. Defaults to `true`. */
|
|
17
|
+
tooltip?: boolean;
|
|
18
|
+
/** Called with `value` after a successful copy. */
|
|
19
|
+
onCopy?: (value: string) => void;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* A ready-made **click-to-copy** button — copies `value` to the clipboard and flips its icon to a tick
|
|
23
|
+
* (+ a tooltip that reads "Copied!") for a moment, then reverts. Wraps `IconButton` (defaults to the
|
|
24
|
+
* quiet `text` variant) with a `Tooltip`; labels come from the built-in i18n (`clipboard.copy` /
|
|
25
|
+
* `clipboard.copied`), so they localize with the panel. For a labeled button or a custom trigger, use
|
|
26
|
+
* the `useClipboard` hook instead. Built on `navigator.clipboard` (no-ops where unavailable).
|
|
27
|
+
*
|
|
28
|
+
* @example
|
|
29
|
+
* <CopyButton value={apiKey} />
|
|
30
|
+
* <CopyButton value={url} copyLabel="Copy link" size="sm" />
|
|
31
|
+
*/
|
|
32
|
+
export declare const CopyButton: import("react").ForwardRefExoticComponent<CopyButtonProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { type ButtonHTMLAttributes, type ReactNode } from 'react';
|
|
2
|
+
import type { ThemeColor } from '../../theme';
|
|
3
|
+
import { type IconName } from '../../icons/names';
|
|
4
|
+
export type DashedButtonSize = 'sm' | 'md' | 'lg';
|
|
5
|
+
export interface DashedButtonProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'color'> {
|
|
6
|
+
/** Leading glyph shown in a soft circle — an `IconName`, any node, or `false` to drop it (label only). Defaults to `Add` (a plus). */
|
|
7
|
+
icon?: IconName | ReactNode | false;
|
|
8
|
+
/** Theme palette token that tints the border, icon and states. Defaults to `accent`. */
|
|
9
|
+
color?: ThemeColor;
|
|
10
|
+
/** Size — scales the padding, icon circle and label. Defaults to `md`. */
|
|
11
|
+
size?: DashedButtonSize;
|
|
12
|
+
/** Icon/label arrangement — `vertical` (icon stacked above the label) or `horizontal` (icon beside it). Defaults to `vertical`. */
|
|
13
|
+
orientation?: 'horizontal' | 'vertical';
|
|
14
|
+
/** Stretch to the container width. Defaults to `true` (these usually fill a row or grid cell). */
|
|
15
|
+
fullWidth?: boolean;
|
|
16
|
+
/** Active / selected look — solid border + stronger tint. Also reflected as `aria-pressed`. */
|
|
17
|
+
active?: boolean;
|
|
18
|
+
/** The label next to the icon (e.g. `"Add Item"`). Omit for an icon-only tile (pass `aria-label`). */
|
|
19
|
+
children?: ReactNode;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* A dashed, tinted, rounded **outline button** — the reusable affordance for "add a card / row / item"
|
|
23
|
+
* placeholders and any other custom action that wants that dashed-frame look, so it never has to be
|
|
24
|
+
* hand-styled. A plus (or any) glyph in a soft circle + an optional label. Tintable via `color` (the
|
|
25
|
+
* shared `--tz-btn-rgb` pattern), `fullWidth` by default so it fills its row or grid cell, laid out
|
|
26
|
+
* `vertical` (icon stacked above the label, default) or `horizontal`, with an optional `active`
|
|
27
|
+
* selected state. Renders a real `<button type="button">` (keyboard + focus for free). Token-only styling.
|
|
28
|
+
*
|
|
29
|
+
* @example
|
|
30
|
+
* {items.map((it, i) => <ItemCard key={i} … />)}
|
|
31
|
+
* <DashedButton onClick={addItem}>Add New Item</DashedButton>
|
|
32
|
+
*/
|
|
33
|
+
export declare const DashedButton: import("react").ForwardRefExoticComponent<DashedButtonProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { type ButtonHTMLAttributes, type ReactNode } from 'react';
|
|
2
|
+
import type { ThemeColor } from '../../theme';
|
|
3
|
+
import { type IconName } from '../../icons/names';
|
|
4
|
+
export type DashedButtonSize = 'sm' | 'md' | 'lg';
|
|
5
|
+
export interface DashedButtonProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'color'> {
|
|
6
|
+
/** Leading glyph shown in a soft circle — an `IconName`, any node, or `false` to drop it (label only). Defaults to `Add` (a plus). */
|
|
7
|
+
icon?: IconName | ReactNode | false;
|
|
8
|
+
/** Theme palette token that tints the border, icon and states. Defaults to `accent`. */
|
|
9
|
+
color?: ThemeColor;
|
|
10
|
+
/** Size — scales the padding, icon circle and label. Defaults to `md`. */
|
|
11
|
+
size?: DashedButtonSize;
|
|
12
|
+
/** Icon/label arrangement — `vertical` (icon stacked above the label) or `horizontal` (icon beside it). Defaults to `vertical`. */
|
|
13
|
+
orientation?: 'horizontal' | 'vertical';
|
|
14
|
+
/** Stretch to the container width. Defaults to `true` (these usually fill a row or grid cell). */
|
|
15
|
+
fullWidth?: boolean;
|
|
16
|
+
/** Active / selected look — solid border + stronger tint. Also reflected as `aria-pressed`. */
|
|
17
|
+
active?: boolean;
|
|
18
|
+
/** The label next to the icon (e.g. `"Add Item"`). Omit for an icon-only tile (pass `aria-label`). */
|
|
19
|
+
children?: ReactNode;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* A dashed, tinted, rounded **outline button** — the reusable affordance for "add a card / row / item"
|
|
23
|
+
* placeholders and any other custom action that wants that dashed-frame look, so it never has to be
|
|
24
|
+
* hand-styled. A plus (or any) glyph in a soft circle + an optional label. Tintable via `color` (the
|
|
25
|
+
* shared `--tz-btn-rgb` pattern), `fullWidth` by default so it fills its row or grid cell, laid out
|
|
26
|
+
* `vertical` (icon stacked above the label, default) or `horizontal`, with an optional `active`
|
|
27
|
+
* selected state. Renders a real `<button type="button">` (keyboard + focus for free). Token-only styling.
|
|
28
|
+
*
|
|
29
|
+
* @example
|
|
30
|
+
* {items.map((it, i) => <ItemCard key={i} … />)}
|
|
31
|
+
* <DashedButton onClick={addItem}>Add New Item</DashedButton>
|
|
32
|
+
*/
|
|
33
|
+
export declare const DashedButton: import("react").ForwardRefExoticComponent<DashedButtonProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../../DatePicker-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../../DatePicker-CEczjGZy.cjs");exports.DatePicker=e.DatePicker;exports.default=e.DatePicker;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../../DateTimePicker-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../../DateTimePicker-CDyGxUBX.cjs");exports.DateTimePicker=e.DateTimePicker;exports.default=e.DateTimePicker;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../../Dropdown-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../../Dropdown-Ui7h2TGd.cjs");exports.Dropdown=e.Dropdown;exports.default=e.Dropdown;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("../../EmptyState-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("../../EmptyState-B77utgEn.cjs");exports.EmptyState=t.EmptyState;exports.default=t.EmptyState;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { type HTMLAttributes, type ReactNode } from 'react';
|
|
2
|
+
import { type ThemeColor } from '../../theme';
|
|
3
|
+
import { type AvatarSize } from '../Avatar';
|
|
4
|
+
export type FileCardSize = AvatarSize;
|
|
5
|
+
export interface FileCardProps extends Omit<HTMLAttributes<HTMLDivElement>, 'title' | 'color'> {
|
|
6
|
+
/** File name — shown middle-truncated (`test-file-na….pdf`) so the extension always stays visible. */
|
|
7
|
+
name: string;
|
|
8
|
+
/** File URL — the download target and, for an image, the thumbnail `src`. */
|
|
9
|
+
src?: string;
|
|
10
|
+
/** File type — an extension (`'pdf'`) or MIME (`'image/png'`). Derived from `name` when omitted. */
|
|
11
|
+
type?: string;
|
|
12
|
+
/** Force image vs. file rendering. Inferred from `type` / `name` / `src` when omitted. */
|
|
13
|
+
image?: boolean;
|
|
14
|
+
/** File size — a **bytes** number (auto-formatted to `"2.3 MB"`) or a preformatted string. Shown after the type. */
|
|
15
|
+
fileSize?: number | string;
|
|
16
|
+
/**
|
|
17
|
+
* When no `fileSize` is given, fetch it from `src` via a `HEAD` request (reads `Content-Length`). Off
|
|
18
|
+
* by default — it's a network call and needs CORS to expose the header; prefer passing `fileSize` from
|
|
19
|
+
* the backend. Fails silently (no size shown) when unavailable.
|
|
20
|
+
*/
|
|
21
|
+
fetchSize?: boolean;
|
|
22
|
+
/** Meta line under the name — overrides the derived `TYPE · size`. */
|
|
23
|
+
meta?: ReactNode;
|
|
24
|
+
/** Theme token tinting the avatar / file-icon box. Defaults to `accent`. */
|
|
25
|
+
color?: ThemeColor;
|
|
26
|
+
/** Size — scales the avatar, text and padding. Defaults to `md`. */
|
|
27
|
+
size?: FileCardSize;
|
|
28
|
+
/** Show the download control (only when there's a `src` or `onDownload`). Defaults to `true`. */
|
|
29
|
+
downloadable?: boolean;
|
|
30
|
+
/** Custom download handler — replaces the default (a download of `src`). */
|
|
31
|
+
onDownload?: () => void;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* A compact, read-only **file card** for displaying a file that already exists (e.g. from the backend) —
|
|
35
|
+
* an image or a document (`pdf` / `docx` / `csv` / `svg` / …). Shows a leading **`Avatar`** (the image
|
|
36
|
+
* thumbnail via `src`, or a type-based file icon in a tinted square), the **name** middle-truncated so
|
|
37
|
+
* the extension is never lost, the **type** underneath, and a **download** control. Simple to drop in —
|
|
38
|
+
* pass `name` (+ `src` for the thumbnail/download). Not to be confused with `FileUploader` (which
|
|
39
|
+
* *collects* files to upload); this only *displays* one. Token-only styling.
|
|
40
|
+
*
|
|
41
|
+
* @example
|
|
42
|
+
* <FileCard name="annual-report.pdf" src="/files/annual-report.pdf" />
|
|
43
|
+
* <FileCard name="avatar.png" src={url} meta="240 KB" />
|
|
44
|
+
*/
|
|
45
|
+
export declare const FileCard: import("react").ForwardRefExoticComponent<FileCardProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { type HTMLAttributes, type ReactNode } from 'react';
|
|
2
|
+
import { type ThemeColor } from '../../theme';
|
|
3
|
+
import { type AvatarSize } from '../Avatar';
|
|
4
|
+
export type FileCardSize = AvatarSize;
|
|
5
|
+
export interface FileCardProps extends Omit<HTMLAttributes<HTMLDivElement>, 'title' | 'color'> {
|
|
6
|
+
/** File name — shown middle-truncated (`test-file-na….pdf`) so the extension always stays visible. */
|
|
7
|
+
name: string;
|
|
8
|
+
/** File URL — the download target and, for an image, the thumbnail `src`. */
|
|
9
|
+
src?: string;
|
|
10
|
+
/** File type — an extension (`'pdf'`) or MIME (`'image/png'`). Derived from `name` when omitted. */
|
|
11
|
+
type?: string;
|
|
12
|
+
/** Force image vs. file rendering. Inferred from `type` / `name` / `src` when omitted. */
|
|
13
|
+
image?: boolean;
|
|
14
|
+
/** File size — a **bytes** number (auto-formatted to `"2.3 MB"`) or a preformatted string. Shown after the type. */
|
|
15
|
+
fileSize?: number | string;
|
|
16
|
+
/**
|
|
17
|
+
* When no `fileSize` is given, fetch it from `src` via a `HEAD` request (reads `Content-Length`). Off
|
|
18
|
+
* by default — it's a network call and needs CORS to expose the header; prefer passing `fileSize` from
|
|
19
|
+
* the backend. Fails silently (no size shown) when unavailable.
|
|
20
|
+
*/
|
|
21
|
+
fetchSize?: boolean;
|
|
22
|
+
/** Meta line under the name — overrides the derived `TYPE · size`. */
|
|
23
|
+
meta?: ReactNode;
|
|
24
|
+
/** Theme token tinting the avatar / file-icon box. Defaults to `accent`. */
|
|
25
|
+
color?: ThemeColor;
|
|
26
|
+
/** Size — scales the avatar, text and padding. Defaults to `md`. */
|
|
27
|
+
size?: FileCardSize;
|
|
28
|
+
/** Show the download control (only when there's a `src` or `onDownload`). Defaults to `true`. */
|
|
29
|
+
downloadable?: boolean;
|
|
30
|
+
/** Custom download handler — replaces the default (a download of `src`). */
|
|
31
|
+
onDownload?: () => void;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* A compact, read-only **file card** for displaying a file that already exists (e.g. from the backend) —
|
|
35
|
+
* an image or a document (`pdf` / `docx` / `csv` / `svg` / …). Shows a leading **`Avatar`** (the image
|
|
36
|
+
* thumbnail via `src`, or a type-based file icon in a tinted square), the **name** middle-truncated so
|
|
37
|
+
* the extension is never lost, the **type** underneath, and a **download** control. Simple to drop in —
|
|
38
|
+
* pass `name` (+ `src` for the thumbnail/download). Not to be confused with `FileUploader` (which
|
|
39
|
+
* *collects* files to upload); this only *displays* one. Token-only styling.
|
|
40
|
+
*
|
|
41
|
+
* @example
|
|
42
|
+
* <FileCard name="annual-report.pdf" src="/files/annual-report.pdf" />
|
|
43
|
+
* <FileCard name="avatar.png" src={url} meta="240 KB" />
|
|
44
|
+
*/
|
|
45
|
+
export declare const FileCard: import("react").ForwardRefExoticComponent<FileCardProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../../FileUploader-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../../FileUploader-DDi_uzIx.cjs");exports.FileUploader=e.FileUploader;exports.default=e.FileUploader;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../../Flag-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../../Flag-BJLWKB9J.cjs");exports.Flag=e.Flag;exports.default=e.Flag;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|