@bricks-toolkit/toolkit 0.1.0 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +9 -9
- package/dist/{components/Button/Button.types.d.ts → Button.types-BsQYqZml.d.ts} +8 -5
- package/dist/Button.types-D-srlWFf.d.mts +27 -0
- package/dist/{components/TextInput/TextInput.types.d.ts → TextInput.types-DRI8HQza.d.mts} +8 -5
- package/dist/TextInput.types-DRI8HQza.d.ts +32 -0
- package/dist/{components/Tooltip/Tooltip.types.d.ts → Tooltip.types-PbUasE3C.d.mts} +9 -6
- package/dist/Tooltip.types-PbUasE3C.d.ts +36 -0
- package/dist/avatar/index.cjs +11 -0
- package/dist/{components/Avatar/Avatar.types.d.ts → avatar/index.d.mts} +10 -5
- package/dist/avatar/index.d.ts +29 -0
- package/dist/avatar/index.mjs +2 -0
- package/dist/badge/index.cjs +11 -0
- package/dist/{components/Badge/Badge.types.d.ts → badge/index.d.mts} +20 -6
- package/dist/badge/index.d.ts +57 -0
- package/dist/badge/index.mjs +2 -0
- package/dist/breadcrumbs/index.cjs +11 -0
- package/dist/{components/Breadcrumbs/Breadcrumbs.types.d.ts → breadcrumbs/index.d.mts} +10 -5
- package/dist/breadcrumbs/index.d.ts +32 -0
- package/dist/breadcrumbs/index.mjs +2 -0
- package/dist/button/index.cjs +13 -0
- package/dist/button/index.d.mts +8 -0
- package/dist/button/index.d.ts +8 -0
- package/dist/button/index.mjs +4 -0
- package/dist/card/index.cjs +31 -0
- package/dist/card/index.d.mts +42 -0
- package/dist/card/index.d.ts +42 -0
- package/dist/card/index.mjs +2 -0
- package/dist/checkbox/index.cjs +11 -0
- package/dist/{components/Checkbox/Checkbox.types.d.ts → checkbox/index.d.mts} +9 -4
- package/dist/checkbox/index.d.ts +36 -0
- package/dist/checkbox/index.mjs +2 -0
- package/dist/chunk-2POU3NX4.mjs +192 -0
- package/dist/chunk-32SKYPQW.mjs +156 -0
- package/dist/chunk-446OJWC6.mjs +285 -0
- package/dist/chunk-4DA7CRNV.mjs +376 -0
- package/dist/chunk-4DR57X7U.mjs +182 -0
- package/dist/chunk-4QSDPHPI.mjs +285 -0
- package/dist/chunk-56ILK7Y4.cjs +315 -0
- package/dist/chunk-5J3OMAO4.cjs +222 -0
- package/dist/chunk-5RKET2JO.cjs +287 -0
- package/dist/chunk-65UZC3FK.mjs +312 -0
- package/dist/chunk-6CC5KIA5.cjs +148 -0
- package/dist/chunk-6R3OYBQ6.cjs +209 -0
- package/dist/chunk-6UO72EJA.cjs +2 -0
- package/dist/chunk-6ZCY4O5M.mjs +63 -0
- package/dist/chunk-7364SUK6.mjs +359 -0
- package/dist/chunk-7DDDQ3RH.cjs +66 -0
- package/dist/chunk-7PDGAIC3.cjs +189 -0
- package/dist/chunk-7R5JRJ2W.cjs +255 -0
- package/dist/chunk-7WNJ7L4Z.mjs +335 -0
- package/dist/chunk-AJXVELXK.cjs +218 -0
- package/dist/chunk-ARTXRQO6.mjs +1 -0
- package/dist/chunk-B4OV5GRT.cjs +510 -0
- package/dist/chunk-B5MYGYJY.mjs +122 -0
- package/dist/chunk-BBVWG5GH.cjs +75 -0
- package/dist/chunk-BVBCAAES.mjs +35 -0
- package/dist/chunk-CBA54EY4.mjs +508 -0
- package/dist/chunk-CMER5LO3.mjs +330 -0
- package/dist/chunk-DHC5LI2P.cjs +338 -0
- package/dist/chunk-DMLPA65B.mjs +107 -0
- package/dist/chunk-DN2GFJF4.mjs +175 -0
- package/dist/chunk-ECLNLPOR.cjs +70 -0
- package/dist/chunk-EV463QT5.cjs +53 -0
- package/dist/chunk-FOVJHEWH.mjs +51 -0
- package/dist/chunk-G4HVY6FM.mjs +203 -0
- package/dist/chunk-H77YWN3L.mjs +220 -0
- package/dist/chunk-HIWJDLIS.cjs +124 -0
- package/dist/chunk-HQGDSOSN.mjs +274 -0
- package/dist/chunk-JKPNJ4PZ.mjs +313 -0
- package/dist/chunk-JV6AWBN5.mjs +113 -0
- package/dist/chunk-KA35BV7V.mjs +207 -0
- package/dist/chunk-KLBABQEJ.cjs +378 -0
- package/dist/chunk-L5VQZZVR.cjs +3197 -0
- package/dist/chunk-LTG6YP5I.cjs +69 -0
- package/dist/chunk-MVUNJPGH.cjs +184 -0
- package/dist/chunk-NMJ5CVZH.cjs +2 -0
- package/dist/chunk-NRCNRHXL.cjs +109 -0
- package/dist/chunk-NRZIXK35.cjs +276 -0
- package/dist/chunk-OCPFOFJ4.mjs +3195 -0
- package/dist/chunk-OEU5VG3D.cjs +362 -0
- package/dist/chunk-OPOCCRJG.cjs +193 -0
- package/dist/chunk-OQPCL5XX.mjs +187 -0
- package/dist/chunk-PCYGJNEQ.cjs +280 -0
- package/dist/chunk-PJH2KEWK.mjs +200 -0
- package/dist/chunk-PJWELBN2.cjs +115 -0
- package/dist/chunk-Q3IFXFFD.cjs +202 -0
- package/dist/chunk-R72GDCWE.cjs +314 -0
- package/dist/chunk-RAD5VJHR.mjs +146 -0
- package/dist/chunk-RYWDZHKG.mjs +274 -0
- package/dist/chunk-S7VEND5Z.cjs +162 -0
- package/dist/chunk-SBNNV6FE.mjs +1 -0
- package/dist/chunk-SFUOCZJY.mjs +187 -0
- package/dist/chunk-SHQ2MPBE.mjs +73 -0
- package/dist/chunk-TIVSMCXZ.mjs +253 -0
- package/dist/chunk-TNGW5YHA.cjs +37 -0
- package/dist/chunk-VC7MOPU6.cjs +287 -0
- package/dist/chunk-VHVFRWF5.mjs +64 -0
- package/dist/chunk-VKQDW7C2.mjs +336 -0
- package/dist/chunk-VRZFAKSV.cjs +177 -0
- package/dist/chunk-W2ZAPLQH.cjs +337 -0
- package/dist/chunk-XFNRKHHF.cjs +332 -0
- package/dist/chunk-Y3NTKFUE.mjs +66 -0
- package/dist/chunk-Y6AN7AWX.cjs +205 -0
- package/dist/chunk-YMMNWJT6.cjs +134 -0
- package/dist/chunk-YOTCXSXL.mjs +132 -0
- package/dist/combo-box/index.cjs +11 -0
- package/dist/{components/ComboBox/ComboBox.types.d.ts → combo-box/index.d.mts} +10 -5
- package/dist/combo-box/index.d.ts +62 -0
- package/dist/combo-box/index.mjs +2 -0
- package/dist/date-picker/index.cjs +11 -0
- package/dist/date-picker/index.d.mts +32 -0
- package/dist/date-picker/index.d.ts +32 -0
- package/dist/date-picker/index.mjs +2 -0
- package/dist/dialog/index.cjs +27 -0
- package/dist/{components/Dialog/Dialog.types.d.ts → dialog/index.d.mts} +16 -7
- package/dist/dialog/index.d.ts +61 -0
- package/dist/dialog/index.mjs +2 -0
- package/dist/dropdown-menu/index.cjs +27 -0
- package/dist/dropdown-menu/index.d.mts +34 -0
- package/dist/dropdown-menu/index.d.ts +34 -0
- package/dist/dropdown-menu/index.mjs +2 -0
- package/dist/email/index.cjs +11 -0
- package/dist/{components/Email/Email.types.d.ts → email/index.d.mts} +10 -5
- package/dist/email/index.d.ts +38 -0
- package/dist/email/index.mjs +2 -0
- package/dist/file-upload/index.cjs +11 -0
- package/dist/file-upload/index.d.mts +27 -0
- package/dist/file-upload/index.d.ts +27 -0
- package/dist/file-upload/index.mjs +2 -0
- package/dist/header/index.cjs +14 -0
- package/dist/{components/Header/Header.types.d.ts → header/index.d.mts} +11 -2
- package/dist/header/index.d.ts +28 -0
- package/dist/header/index.mjs +5 -0
- package/dist/icon-button/index.cjs +13 -0
- package/dist/icon-button/index.d.mts +16 -0
- package/dist/icon-button/index.d.ts +16 -0
- package/dist/icon-button/index.mjs +4 -0
- package/dist/image/index.cjs +12 -0
- package/dist/{components/Image/Image.types.d.ts → image/index.d.mts} +10 -2
- package/dist/image/index.d.ts +48 -0
- package/dist/image/index.mjs +3 -0
- package/dist/index.cjs +839 -0
- package/dist/index.d.mts +141 -0
- package/dist/index.d.ts +141 -75
- package/dist/index.mjs +601 -0
- package/dist/link/index.cjs +11 -0
- package/dist/{components/Link/Link.types.d.ts → link/index.d.mts} +10 -5
- package/dist/link/index.d.ts +25 -0
- package/dist/link/index.mjs +2 -0
- package/dist/loader/index.cjs +11 -0
- package/dist/{components/Loader/Loader.types.d.ts → loader/index.d.mts} +8 -4
- package/dist/loader/index.d.ts +21 -0
- package/dist/loader/index.mjs +2 -0
- package/dist/modal/index.cjs +27 -0
- package/dist/{components/Modal/Modal.types.d.ts → modal/index.d.mts} +25 -9
- package/dist/modal/index.d.ts +116 -0
- package/dist/modal/index.mjs +2 -0
- package/dist/multi-select/index.cjs +11 -0
- package/dist/{components/MultiSelect/MultiSelect.types.d.ts → multi-select/index.d.mts} +9 -5
- package/dist/multi-select/index.d.ts +59 -0
- package/dist/multi-select/index.mjs +2 -0
- package/dist/otp-input/index.cjs +11 -0
- package/dist/{components/OtpInput/OtpInput.types.d.ts → otp-input/index.d.mts} +8 -4
- package/dist/otp-input/index.d.ts +57 -0
- package/dist/otp-input/index.mjs +2 -0
- package/dist/password-input/index.cjs +11 -0
- package/dist/password-input/index.d.mts +32 -0
- package/dist/password-input/index.d.ts +32 -0
- package/dist/password-input/index.mjs +2 -0
- package/dist/phone/index.cjs +11 -0
- package/dist/{components/Phone/Phone.types.d.ts → phone/index.d.mts} +11 -6
- package/dist/phone/index.d.ts +41 -0
- package/dist/phone/index.mjs +2 -0
- package/dist/radio-button/index.cjs +11 -0
- package/dist/{components/RadioButton/RadioButton.types.d.ts → radio-button/index.d.mts} +9 -4
- package/dist/radio-button/index.d.ts +56 -0
- package/dist/radio-button/index.mjs +2 -0
- package/dist/search-input/index.cjs +12 -0
- package/dist/search-input/index.d.mts +22 -0
- package/dist/search-input/index.d.ts +22 -0
- package/dist/search-input/index.mjs +3 -0
- package/dist/select/index.cjs +11 -0
- package/dist/{components/Select/Select.types.d.ts → select/index.d.mts} +11 -6
- package/dist/select/index.d.ts +36 -0
- package/dist/select/index.mjs +2 -0
- package/dist/sidebar/index.cjs +11 -0
- package/dist/{components/Sidebar/Sidebar.types.d.ts → sidebar/index.d.mts} +15 -6
- package/dist/sidebar/index.d.ts +96 -0
- package/dist/sidebar/index.mjs +2 -0
- package/dist/skeleton/index.cjs +27 -0
- package/dist/skeleton/index.d.mts +76 -0
- package/dist/skeleton/index.d.ts +76 -0
- package/dist/skeleton/index.mjs +2 -0
- package/dist/styles.css +5075 -0
- package/dist/styles.d.mts +2 -0
- package/dist/styles.d.ts +2 -0
- package/dist/table/index.cjs +15 -0
- package/dist/{components/Table/Table.types.d.ts → table/index.d.mts} +16 -9
- package/dist/table/index.d.ts +92 -0
- package/dist/table/index.mjs +2 -0
- package/dist/tabs/index.cjs +14 -0
- package/dist/tabs/index.d.mts +26 -0
- package/dist/tabs/index.d.ts +26 -0
- package/dist/tabs/index.mjs +5 -0
- package/dist/text-input/index.cjs +11 -0
- package/dist/text-input/index.d.mts +7 -0
- package/dist/text-input/index.d.ts +7 -0
- package/dist/text-input/index.mjs +2 -0
- package/dist/theme-provider/index.cjs +14 -0
- package/dist/{components/ThemeProvider/ThemeProvider.types.d.ts → theme-provider/index.d.mts} +16 -6
- package/dist/theme-provider/index.d.ts +122 -0
- package/dist/theme-provider/index.mjs +1 -0
- package/dist/time-picker/index.cjs +11 -0
- package/dist/time-picker/index.d.mts +32 -0
- package/dist/time-picker/index.d.ts +32 -0
- package/dist/time-picker/index.mjs +2 -0
- package/dist/toaster/index.cjs +11 -0
- package/dist/{components/Toaster/Toaster.types.d.ts → toaster/index.d.mts} +9 -4
- package/dist/toaster/index.d.ts +28 -0
- package/dist/toaster/index.mjs +2 -0
- package/dist/tooltip/index.cjs +12 -0
- package/dist/tooltip/index.d.mts +7 -0
- package/dist/tooltip/index.d.ts +7 -0
- package/dist/tooltip/index.mjs +3 -0
- package/package.json +78 -95
- package/dist/components/Accordion/Accordion.d.ts +0 -5
- package/dist/components/Accordion/Accordion.types.d.ts +0 -32
- package/dist/components/Accordion/index.d.ts +0 -2
- package/dist/components/Avatar/Avatar.d.ts +0 -2
- package/dist/components/Avatar/Avatar.stories.d.ts +0 -11
- package/dist/components/Avatar/Avatar.test.d.ts +0 -1
- package/dist/components/Avatar/index.d.ts +0 -2
- package/dist/components/Badge/Badge.d.ts +0 -11
- package/dist/components/Badge/Badge.stories.d.ts +0 -21
- package/dist/components/Badge/Badge.test.d.ts +0 -1
- package/dist/components/Badge/index.d.ts +0 -2
- package/dist/components/Breadcrumbs/Breadcrumbs.d.ts +0 -2
- package/dist/components/Breadcrumbs/Breadcrumbs.stories.d.ts +0 -13
- package/dist/components/Breadcrumbs/Breadcrumbs.test.d.ts +0 -1
- package/dist/components/Breadcrumbs/index.d.ts +0 -2
- package/dist/components/Button/Button.d.ts +0 -2
- package/dist/components/Button/Button.stories.d.ts +0 -20
- package/dist/components/Button/Button.test.d.ts +0 -1
- package/dist/components/Button/index.d.ts +0 -2
- package/dist/components/Card/Card.d.ts +0 -25
- package/dist/components/Card/Card.stories.d.ts +0 -8
- package/dist/components/Card/Card.test.d.ts +0 -1
- package/dist/components/Card/Card.types.d.ts +0 -14
- package/dist/components/Card/index.d.ts +0 -2
- package/dist/components/Checkbox/Checkbox.d.ts +0 -2
- package/dist/components/Checkbox/Checkbox.stories.d.ts +0 -16
- package/dist/components/Checkbox/Checkbox.test.d.ts +0 -1
- package/dist/components/Checkbox/index.d.ts +0 -2
- package/dist/components/ComboBox/ComboBox.d.ts +0 -2
- package/dist/components/ComboBox/ComboBox.stories.d.ts +0 -12
- package/dist/components/ComboBox/ComboBox.test.d.ts +0 -1
- package/dist/components/ComboBox/index.d.ts +0 -2
- package/dist/components/DatePicker/DatePicker.d.ts +0 -2
- package/dist/components/DatePicker/DatePicker.stories.d.ts +0 -25
- package/dist/components/DatePicker/DatePicker.test.d.ts +0 -1
- package/dist/components/DatePicker/DatePicker.types.d.ts +0 -27
- package/dist/components/DatePicker/index.d.ts +0 -2
- package/dist/components/Dialog/Dialog.d.ts +0 -6
- package/dist/components/Dialog/Dialog.stories.d.ts +0 -9
- package/dist/components/Dialog/Dialog.test.d.ts +0 -1
- package/dist/components/Dialog/index.d.ts +0 -2
- package/dist/components/DropdownMenu/DropdownMenu.d.ts +0 -7
- package/dist/components/DropdownMenu/DropdownMenu.stories.d.ts +0 -9
- package/dist/components/DropdownMenu/DropdownMenu.test.d.ts +0 -1
- package/dist/components/DropdownMenu/DropdownMenu.types.d.ts +0 -24
- package/dist/components/DropdownMenu/index.d.ts +0 -2
- package/dist/components/Email/Email.d.ts +0 -2
- package/dist/components/Email/Email.stories.d.ts +0 -11
- package/dist/components/Email/Email.test.d.ts +0 -1
- package/dist/components/Email/index.d.ts +0 -2
- package/dist/components/FileUpload/FileUpload.d.ts +0 -2
- package/dist/components/FileUpload/FileUpload.stories.d.ts +0 -10
- package/dist/components/FileUpload/FileUpload.test.d.ts +0 -1
- package/dist/components/FileUpload/FileUpload.types.d.ts +0 -22
- package/dist/components/FileUpload/index.d.ts +0 -2
- package/dist/components/Header/Header.d.ts +0 -7
- package/dist/components/Header/Header.stories.d.ts +0 -8
- package/dist/components/Header/Header.test.d.ts +0 -1
- package/dist/components/Header/index.d.ts +0 -2
- package/dist/components/IconButton/IconButton.d.ts +0 -2
- package/dist/components/IconButton/IconButton.stories.d.ts +0 -17
- package/dist/components/IconButton/IconButton.types.d.ts +0 -10
- package/dist/components/IconButton/index.d.ts +0 -2
- package/dist/components/Image/Image.d.ts +0 -6
- package/dist/components/Image/Image.stories.d.ts +0 -13
- package/dist/components/Image/Image.test.d.ts +0 -1
- package/dist/components/Image/index.d.ts +0 -2
- package/dist/components/Link/Link.d.ts +0 -2
- package/dist/components/Link/Link.stories.d.ts +0 -15
- package/dist/components/Link/Link.test.d.ts +0 -1
- package/dist/components/Link/index.d.ts +0 -2
- package/dist/components/Loader/Loader.d.ts +0 -2
- package/dist/components/Loader/Loader.stories.d.ts +0 -12
- package/dist/components/Loader/Loader.test.d.ts +0 -1
- package/dist/components/Loader/index.d.ts +0 -2
- package/dist/components/Modal/Modal.d.ts +0 -14
- package/dist/components/Modal/Modal.stories.d.ts +0 -14
- package/dist/components/Modal/Modal.test.d.ts +0 -1
- package/dist/components/Modal/index.d.ts +0 -2
- package/dist/components/MultiSelect/MultiSelect.d.ts +0 -2
- package/dist/components/MultiSelect/MultiSelect.stories.d.ts +0 -15
- package/dist/components/MultiSelect/MultiSelect.test.d.ts +0 -1
- package/dist/components/MultiSelect/index.d.ts +0 -2
- package/dist/components/OtpInput/OtpInput.d.ts +0 -2
- package/dist/components/OtpInput/OtpInput.stories.d.ts +0 -10
- package/dist/components/OtpInput/OtpInput.test.d.ts +0 -1
- package/dist/components/OtpInput/index.d.ts +0 -2
- package/dist/components/PasswordInput/PasswordInput.d.ts +0 -2
- package/dist/components/PasswordInput/PasswordInput.stories.d.ts +0 -23
- package/dist/components/PasswordInput/PasswordInput.test.d.ts +0 -1
- package/dist/components/PasswordInput/PasswordInput.types.d.ts +0 -27
- package/dist/components/PasswordInput/index.d.ts +0 -2
- package/dist/components/Phone/Phone.d.ts +0 -2
- package/dist/components/Phone/Phone.stories.d.ts +0 -11
- package/dist/components/Phone/Phone.test.d.ts +0 -1
- package/dist/components/Phone/countries.d.ts +0 -8
- package/dist/components/Phone/index.d.ts +0 -2
- package/dist/components/RadioButton/RadioButton.d.ts +0 -2
- package/dist/components/RadioButton/RadioButton.stories.d.ts +0 -21
- package/dist/components/RadioButton/RadioButton.test.d.ts +0 -1
- package/dist/components/RadioButton/index.d.ts +0 -2
- package/dist/components/SearchInput/SearchInput.d.ts +0 -6
- package/dist/components/SearchInput/SearchInput.stories.d.ts +0 -8
- package/dist/components/SearchInput/SearchInput.test.d.ts +0 -1
- package/dist/components/SearchInput/SearchInput.types.d.ts +0 -12
- package/dist/components/SearchInput/index.d.ts +0 -2
- package/dist/components/Select/Select.d.ts +0 -2
- package/dist/components/Select/Select.stories.d.ts +0 -12
- package/dist/components/Select/Select.test.d.ts +0 -1
- package/dist/components/Select/index.d.ts +0 -2
- package/dist/components/Sidebar/Sidebar.d.ts +0 -7
- package/dist/components/Sidebar/Sidebar.stories.d.ts +0 -10
- package/dist/components/Sidebar/Sidebar.test.d.ts +0 -1
- package/dist/components/Sidebar/index.d.ts +0 -2
- package/dist/components/Skeleton/Skeleton.d.ts +0 -26
- package/dist/components/Skeleton/Skeleton.stories.d.ts +0 -13
- package/dist/components/Skeleton/Skeleton.types.d.ts +0 -47
- package/dist/components/Skeleton/index.d.ts +0 -2
- package/dist/components/Stepper/Stepper.d.ts +0 -2
- package/dist/components/Stepper/Stepper.stories.d.ts +0 -23
- package/dist/components/Stepper/Stepper.test.d.ts +0 -1
- package/dist/components/Stepper/Stepper.types.d.ts +0 -47
- package/dist/components/Stepper/index.d.ts +0 -2
- package/dist/components/Table/Pagination.d.ts +0 -3
- package/dist/components/Table/Table.d.ts +0 -3
- package/dist/components/Table/Table.stories.d.ts +0 -13
- package/dist/components/Table/Table.test.d.ts +0 -1
- package/dist/components/Table/index.d.ts +0 -3
- package/dist/components/Tabs/Tabs.d.ts +0 -2
- package/dist/components/Tabs/Tabs.stories.d.ts +0 -17
- package/dist/components/Tabs/Tabs.test.d.ts +0 -1
- package/dist/components/Tabs/Tabs.types.d.ts +0 -21
- package/dist/components/Tabs/index.d.ts +0 -2
- package/dist/components/TextInput/TextInput.d.ts +0 -2
- package/dist/components/TextInput/TextInput.stories.d.ts +0 -25
- package/dist/components/TextInput/TextInput.test.d.ts +0 -1
- package/dist/components/TextInput/index.d.ts +0 -2
- package/dist/components/ThemeProvider/ThemeProvider.d.ts +0 -8
- package/dist/components/ThemeProvider/ThemeProvider.stories.d.ts +0 -16
- package/dist/components/ThemeProvider/ThemeProvider.test.d.ts +0 -1
- package/dist/components/ThemeProvider/index.d.ts +0 -2
- package/dist/components/TimePicker/TimePicker.d.ts +0 -2
- package/dist/components/TimePicker/TimePicker.stories.d.ts +0 -23
- package/dist/components/TimePicker/TimePicker.test.d.ts +0 -1
- package/dist/components/TimePicker/TimePicker.types.d.ts +0 -27
- package/dist/components/TimePicker/index.d.ts +0 -2
- package/dist/components/Toaster/Toaster.d.ts +0 -2
- package/dist/components/Toaster/Toaster.stories.d.ts +0 -13
- package/dist/components/Toaster/Toaster.test.d.ts +0 -1
- package/dist/components/Toaster/index.d.ts +0 -2
- package/dist/components/Toggle/Toggle.d.ts +0 -2
- package/dist/components/Toggle/Toggle.stories.d.ts +0 -11
- package/dist/components/Toggle/Toggle.types.d.ts +0 -10
- package/dist/components/Toggle/index.d.ts +0 -2
- package/dist/components/Tooltip/Tooltip.d.ts +0 -2
- package/dist/components/Tooltip/Tooltip.stories.d.ts +0 -13
- package/dist/components/Tooltip/Tooltip.test.d.ts +0 -1
- package/dist/components/Tooltip/index.d.ts +0 -2
- package/dist/utils/cn.d.ts +0 -2
- package/dist/utils/index.d.ts +0 -1
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { InputHTMLAttributes, ReactNode } from 'react';
|
|
2
|
+
|
|
3
|
+
type RadioButtonSize = 'sm' | 'md' | 'lg';
|
|
4
|
+
type RadioButtonState = 'default' | 'error' | 'success' | 'warning';
|
|
5
|
+
interface RadioButtonProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'size' | 'type'> {
|
|
5
6
|
/**
|
|
6
7
|
* Optional label displayed next to the radio button.
|
|
7
8
|
*/
|
|
@@ -49,3 +50,7 @@ export interface RadioButtonProps extends Omit<InputHTMLAttributes<HTMLInputElem
|
|
|
49
50
|
*/
|
|
50
51
|
helperClassName?: string;
|
|
51
52
|
}
|
|
53
|
+
|
|
54
|
+
declare const RadioButton: React.ForwardRefExoticComponent<RadioButtonProps & React.RefAttributes<HTMLInputElement>>;
|
|
55
|
+
|
|
56
|
+
export { RadioButton, type RadioButtonProps, type RadioButtonSize, type RadioButtonState };
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { InputHTMLAttributes, ReactNode } from 'react';
|
|
2
|
+
|
|
3
|
+
type RadioButtonSize = 'sm' | 'md' | 'lg';
|
|
4
|
+
type RadioButtonState = 'default' | 'error' | 'success' | 'warning';
|
|
5
|
+
interface RadioButtonProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'size' | 'type'> {
|
|
6
|
+
/**
|
|
7
|
+
* Optional label displayed next to the radio button.
|
|
8
|
+
*/
|
|
9
|
+
label?: ReactNode;
|
|
10
|
+
/**
|
|
11
|
+
* Helper text displayed below the radio button.
|
|
12
|
+
*/
|
|
13
|
+
helperText?: string;
|
|
14
|
+
/**
|
|
15
|
+
* Error message displayed when state is 'error'.
|
|
16
|
+
*/
|
|
17
|
+
errorMessage?: string;
|
|
18
|
+
/**
|
|
19
|
+
* Success message displayed when state is 'success'.
|
|
20
|
+
*/
|
|
21
|
+
successMessage?: string;
|
|
22
|
+
/**
|
|
23
|
+
* Warning message displayed when state is 'warning'.
|
|
24
|
+
*/
|
|
25
|
+
warningMessage?: string;
|
|
26
|
+
/**
|
|
27
|
+
* The size of the radio button and label.
|
|
28
|
+
* @default 'md'
|
|
29
|
+
*/
|
|
30
|
+
size?: RadioButtonSize;
|
|
31
|
+
/**
|
|
32
|
+
* The validation state of the radio button.
|
|
33
|
+
* @default 'default'
|
|
34
|
+
*/
|
|
35
|
+
state?: RadioButtonState;
|
|
36
|
+
/**
|
|
37
|
+
* Additional class applied to the outer wrapper element.
|
|
38
|
+
*/
|
|
39
|
+
wrapperClassName?: string;
|
|
40
|
+
/**
|
|
41
|
+
* Additional class applied to the input element itself.
|
|
42
|
+
*/
|
|
43
|
+
inputClassName?: string;
|
|
44
|
+
/**
|
|
45
|
+
* Additional class applied to the label text element.
|
|
46
|
+
*/
|
|
47
|
+
labelClassName?: string;
|
|
48
|
+
/**
|
|
49
|
+
* Additional class applied to the helper/state message element.
|
|
50
|
+
*/
|
|
51
|
+
helperClassName?: string;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
declare const RadioButton: React.ForwardRefExoticComponent<RadioButtonProps & React.RefAttributes<HTMLInputElement>>;
|
|
55
|
+
|
|
56
|
+
export { RadioButton, type RadioButtonProps, type RadioButtonSize, type RadioButtonState };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunk7DDDQ3RH_cjs = require('../chunk-7DDDQ3RH.cjs');
|
|
4
|
+
require('../chunk-XFNRKHHF.cjs');
|
|
5
|
+
require('../chunk-L5VQZZVR.cjs');
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
Object.defineProperty(exports, "SearchInput", {
|
|
10
|
+
enumerable: true,
|
|
11
|
+
get: function () { return chunk7DDDQ3RH_cjs.SearchInput; }
|
|
12
|
+
});
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { T as TextInputProps } from '../TextInput.types-DRI8HQza.mjs';
|
|
2
|
+
import 'react';
|
|
3
|
+
|
|
4
|
+
interface SearchInputProps extends TextInputProps {
|
|
5
|
+
/**
|
|
6
|
+
* The delay in milliseconds before the onDebouncedChange callback is called.
|
|
7
|
+
* @default 300
|
|
8
|
+
*/
|
|
9
|
+
debounce?: number;
|
|
10
|
+
/**
|
|
11
|
+
* Callback function called after the debounce delay with the current input value.
|
|
12
|
+
*/
|
|
13
|
+
onDebouncedChange?: (value: string) => void;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* SearchInput component - A debounced input field for search functionality.
|
|
18
|
+
* Built on top of TextInput, it includes a search icon by default and handles debouncing.
|
|
19
|
+
*/
|
|
20
|
+
declare const SearchInput: React.ForwardRefExoticComponent<SearchInputProps & React.RefAttributes<HTMLInputElement>>;
|
|
21
|
+
|
|
22
|
+
export { SearchInput, type SearchInputProps };
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { T as TextInputProps } from '../TextInput.types-DRI8HQza.js';
|
|
2
|
+
import 'react';
|
|
3
|
+
|
|
4
|
+
interface SearchInputProps extends TextInputProps {
|
|
5
|
+
/**
|
|
6
|
+
* The delay in milliseconds before the onDebouncedChange callback is called.
|
|
7
|
+
* @default 300
|
|
8
|
+
*/
|
|
9
|
+
debounce?: number;
|
|
10
|
+
/**
|
|
11
|
+
* Callback function called after the debounce delay with the current input value.
|
|
12
|
+
*/
|
|
13
|
+
onDebouncedChange?: (value: string) => void;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* SearchInput component - A debounced input field for search functionality.
|
|
18
|
+
* Built on top of TextInput, it includes a search icon by default and handles debouncing.
|
|
19
|
+
*/
|
|
20
|
+
declare const SearchInput: React.ForwardRefExoticComponent<SearchInputProps & React.RefAttributes<HTMLInputElement>>;
|
|
21
|
+
|
|
22
|
+
export { SearchInput, type SearchInputProps };
|
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import { SelectHTMLAttributes, ReactNode } from 'react';
|
|
2
|
+
|
|
3
|
+
type SelectVariant = 'default' | 'filled' | 'flushed' | 'unstyled';
|
|
4
|
+
type SelectSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
5
|
+
type SelectState = 'default' | 'error' | 'success' | 'warning';
|
|
6
|
+
interface SelectOption {
|
|
6
7
|
label: string;
|
|
7
8
|
value: string | number;
|
|
8
9
|
disabled?: boolean;
|
|
9
10
|
}
|
|
10
|
-
|
|
11
|
+
interface SelectProps extends Omit<SelectHTMLAttributes<HTMLSelectElement>, 'size'> {
|
|
11
12
|
label?: string;
|
|
12
13
|
required?: boolean;
|
|
13
14
|
helperText?: string;
|
|
@@ -29,3 +30,7 @@ export interface SelectProps extends Omit<SelectHTMLAttributes<HTMLSelectElement
|
|
|
29
30
|
options?: SelectOption[];
|
|
30
31
|
placeholder?: string;
|
|
31
32
|
}
|
|
33
|
+
|
|
34
|
+
declare const Select: React.ForwardRefExoticComponent<SelectProps & React.RefAttributes<HTMLSelectElement>>;
|
|
35
|
+
|
|
36
|
+
export { Select, type SelectOption, type SelectProps, type SelectSize, type SelectState, type SelectVariant };
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { SelectHTMLAttributes, ReactNode } from 'react';
|
|
2
|
+
|
|
3
|
+
type SelectVariant = 'default' | 'filled' | 'flushed' | 'unstyled';
|
|
4
|
+
type SelectSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
5
|
+
type SelectState = 'default' | 'error' | 'success' | 'warning';
|
|
6
|
+
interface SelectOption {
|
|
7
|
+
label: string;
|
|
8
|
+
value: string | number;
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
}
|
|
11
|
+
interface SelectProps extends Omit<SelectHTMLAttributes<HTMLSelectElement>, 'size'> {
|
|
12
|
+
label?: string;
|
|
13
|
+
required?: boolean;
|
|
14
|
+
helperText?: string;
|
|
15
|
+
errorMessage?: string;
|
|
16
|
+
successMessage?: string;
|
|
17
|
+
warningMessage?: string;
|
|
18
|
+
variant?: SelectVariant;
|
|
19
|
+
size?: SelectSize;
|
|
20
|
+
state?: SelectState;
|
|
21
|
+
fullWidth?: boolean;
|
|
22
|
+
leftElement?: ReactNode;
|
|
23
|
+
rightElement?: ReactNode;
|
|
24
|
+
wrapperClassName?: string;
|
|
25
|
+
inputGroupClassName?: string;
|
|
26
|
+
inputClassName?: string;
|
|
27
|
+
labelClassName?: string;
|
|
28
|
+
helperClassName?: string;
|
|
29
|
+
isLoading?: boolean;
|
|
30
|
+
options?: SelectOption[];
|
|
31
|
+
placeholder?: string;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
declare const Select: React.ForwardRefExoticComponent<SelectProps & React.RefAttributes<HTMLSelectElement>>;
|
|
35
|
+
|
|
36
|
+
export { Select, type SelectOption, type SelectProps, type SelectSize, type SelectState, type SelectVariant };
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
1
|
+
import { ReactNode, ElementType, CSSProperties } from 'react';
|
|
2
|
+
|
|
3
|
+
interface SidebarItem {
|
|
3
4
|
id: string;
|
|
4
5
|
label: string;
|
|
5
6
|
icon?: ReactNode;
|
|
@@ -18,14 +19,14 @@ export interface SidebarItem {
|
|
|
18
19
|
/** Whether the item should be hidden */
|
|
19
20
|
hidden?: boolean;
|
|
20
21
|
}
|
|
21
|
-
|
|
22
|
+
interface SidebarGroup {
|
|
22
23
|
id: string;
|
|
23
24
|
label?: string;
|
|
24
25
|
items: SidebarItem[];
|
|
25
26
|
/** Whether the group should be hidden */
|
|
26
27
|
hidden?: boolean;
|
|
27
28
|
}
|
|
28
|
-
|
|
29
|
+
interface SidebarClassNames {
|
|
29
30
|
root?: string;
|
|
30
31
|
header?: string;
|
|
31
32
|
content?: string;
|
|
@@ -39,7 +40,7 @@ export interface SidebarClassNames {
|
|
|
39
40
|
itemCollapsed?: string;
|
|
40
41
|
toggleButton?: string;
|
|
41
42
|
}
|
|
42
|
-
|
|
43
|
+
interface SidebarStyles {
|
|
43
44
|
root?: CSSProperties;
|
|
44
45
|
header?: CSSProperties;
|
|
45
46
|
content?: CSSProperties;
|
|
@@ -51,7 +52,7 @@ export interface SidebarStyles {
|
|
|
51
52
|
itemLabel?: CSSProperties;
|
|
52
53
|
toggleButton?: CSSProperties;
|
|
53
54
|
}
|
|
54
|
-
|
|
55
|
+
interface SidebarProps {
|
|
55
56
|
/** Groups of navigation items to display in the sidebar. */
|
|
56
57
|
groups: SidebarGroup[];
|
|
57
58
|
/** Whether the sidebar is in its collapsed state. */
|
|
@@ -85,3 +86,11 @@ export interface SidebarProps {
|
|
|
85
86
|
/** Custom render function for items */
|
|
86
87
|
renderItem?: (item: SidebarItem, isCollapsed: boolean) => ReactNode;
|
|
87
88
|
}
|
|
89
|
+
|
|
90
|
+
interface SidebarComponent {
|
|
91
|
+
(props: SidebarProps): React.JSX.Element;
|
|
92
|
+
displayName?: string;
|
|
93
|
+
}
|
|
94
|
+
declare const Sidebar: SidebarComponent;
|
|
95
|
+
|
|
96
|
+
export { Sidebar, type SidebarGroup, type SidebarItem, type SidebarProps };
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import { ReactNode, ElementType, CSSProperties } from 'react';
|
|
2
|
+
|
|
3
|
+
interface SidebarItem {
|
|
4
|
+
id: string;
|
|
5
|
+
label: string;
|
|
6
|
+
icon?: ReactNode;
|
|
7
|
+
href?: string;
|
|
8
|
+
onClick?: () => void;
|
|
9
|
+
isActive?: boolean;
|
|
10
|
+
badge?: ReactNode;
|
|
11
|
+
/** Optional component to use for the item (e.g., NavLink) */
|
|
12
|
+
component?: ElementType;
|
|
13
|
+
/** Optional props for the custom component */
|
|
14
|
+
componentProps?: Record<string, unknown>;
|
|
15
|
+
/** Optional nested items */
|
|
16
|
+
items?: SidebarItem[];
|
|
17
|
+
/** Whether the item is currently expanded (for nested items) */
|
|
18
|
+
isExpanded?: boolean;
|
|
19
|
+
/** Whether the item should be hidden */
|
|
20
|
+
hidden?: boolean;
|
|
21
|
+
}
|
|
22
|
+
interface SidebarGroup {
|
|
23
|
+
id: string;
|
|
24
|
+
label?: string;
|
|
25
|
+
items: SidebarItem[];
|
|
26
|
+
/** Whether the group should be hidden */
|
|
27
|
+
hidden?: boolean;
|
|
28
|
+
}
|
|
29
|
+
interface SidebarClassNames {
|
|
30
|
+
root?: string;
|
|
31
|
+
header?: string;
|
|
32
|
+
content?: string;
|
|
33
|
+
footer?: string;
|
|
34
|
+
group?: string;
|
|
35
|
+
groupLabel?: string;
|
|
36
|
+
item?: string;
|
|
37
|
+
itemIcon?: string;
|
|
38
|
+
itemLabel?: string;
|
|
39
|
+
itemActive?: string;
|
|
40
|
+
itemCollapsed?: string;
|
|
41
|
+
toggleButton?: string;
|
|
42
|
+
}
|
|
43
|
+
interface SidebarStyles {
|
|
44
|
+
root?: CSSProperties;
|
|
45
|
+
header?: CSSProperties;
|
|
46
|
+
content?: CSSProperties;
|
|
47
|
+
footer?: CSSProperties;
|
|
48
|
+
group?: CSSProperties;
|
|
49
|
+
groupLabel?: CSSProperties;
|
|
50
|
+
item?: CSSProperties;
|
|
51
|
+
itemIcon?: CSSProperties;
|
|
52
|
+
itemLabel?: CSSProperties;
|
|
53
|
+
toggleButton?: CSSProperties;
|
|
54
|
+
}
|
|
55
|
+
interface SidebarProps {
|
|
56
|
+
/** Groups of navigation items to display in the sidebar. */
|
|
57
|
+
groups: SidebarGroup[];
|
|
58
|
+
/** Whether the sidebar is in its collapsed state. */
|
|
59
|
+
isCollapsed?: boolean;
|
|
60
|
+
/** Callback triggered when the collapsed state changes. */
|
|
61
|
+
onToggleCollapse?: (isCollapsed: boolean) => void;
|
|
62
|
+
/** Optional logo or brand element to display at the top. */
|
|
63
|
+
logo?: ReactNode;
|
|
64
|
+
/** Optional footer content. */
|
|
65
|
+
footer?: ReactNode;
|
|
66
|
+
/** Additional CSS classes for the container. */
|
|
67
|
+
className?: string;
|
|
68
|
+
/** Whether to show the glass effect. */
|
|
69
|
+
glass?: boolean;
|
|
70
|
+
/** Custom width for expanded state (default: 288px / 72rem) */
|
|
71
|
+
width?: string | number;
|
|
72
|
+
/** Custom width for collapsed state (default: 80px / 20rem) */
|
|
73
|
+
collapsedWidth?: string | number;
|
|
74
|
+
/** Whether to show the built-in collapse toggle button */
|
|
75
|
+
showToggleButton?: boolean;
|
|
76
|
+
/** Position of the toggle button ('top' | 'bottom' | 'center') */
|
|
77
|
+
togglePosition?: 'top' | 'bottom' | 'center';
|
|
78
|
+
/** Placement of the sidebar */
|
|
79
|
+
position?: 'left' | 'right';
|
|
80
|
+
/** Whether icons should be centered when collapsed */
|
|
81
|
+
centerIcons?: boolean;
|
|
82
|
+
/** Deep customization of CSS classes */
|
|
83
|
+
classNames?: SidebarClassNames;
|
|
84
|
+
/** Deep customization of inline styles */
|
|
85
|
+
styles?: SidebarStyles;
|
|
86
|
+
/** Custom render function for items */
|
|
87
|
+
renderItem?: (item: SidebarItem, isCollapsed: boolean) => ReactNode;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
interface SidebarComponent {
|
|
91
|
+
(props: SidebarProps): React.JSX.Element;
|
|
92
|
+
displayName?: string;
|
|
93
|
+
}
|
|
94
|
+
declare const Sidebar: SidebarComponent;
|
|
95
|
+
|
|
96
|
+
export { Sidebar, type SidebarGroup, type SidebarItem, type SidebarProps };
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkS7VEND5Z_cjs = require('../chunk-S7VEND5Z.cjs');
|
|
4
|
+
require('../chunk-L5VQZZVR.cjs');
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
Object.defineProperty(exports, "Skeleton", {
|
|
9
|
+
enumerable: true,
|
|
10
|
+
get: function () { return chunkS7VEND5Z_cjs.Skeleton; }
|
|
11
|
+
});
|
|
12
|
+
Object.defineProperty(exports, "SkeletonAvatar", {
|
|
13
|
+
enumerable: true,
|
|
14
|
+
get: function () { return chunkS7VEND5Z_cjs.SkeletonAvatar; }
|
|
15
|
+
});
|
|
16
|
+
Object.defineProperty(exports, "SkeletonCard", {
|
|
17
|
+
enumerable: true,
|
|
18
|
+
get: function () { return chunkS7VEND5Z_cjs.SkeletonCard; }
|
|
19
|
+
});
|
|
20
|
+
Object.defineProperty(exports, "SkeletonTable", {
|
|
21
|
+
enumerable: true,
|
|
22
|
+
get: function () { return chunkS7VEND5Z_cjs.SkeletonTable; }
|
|
23
|
+
});
|
|
24
|
+
Object.defineProperty(exports, "SkeletonText", {
|
|
25
|
+
enumerable: true,
|
|
26
|
+
get: function () { return chunkS7VEND5Z_cjs.SkeletonText; }
|
|
27
|
+
});
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import { HTMLAttributes } from 'react';
|
|
2
|
+
|
|
3
|
+
type SkeletonVariant = 'default' | 'wave' | 'pulse';
|
|
4
|
+
type SkeletonShape = 'rectangle' | 'circle' | 'rounded';
|
|
5
|
+
interface SkeletonProps extends HTMLAttributes<HTMLDivElement> {
|
|
6
|
+
/** Animation style of the skeleton. Defaults to 'wave'. */
|
|
7
|
+
variant?: SkeletonVariant;
|
|
8
|
+
/** Shape of the skeleton block. Defaults to 'rectangle'. */
|
|
9
|
+
shape?: SkeletonShape;
|
|
10
|
+
/** Explicit width (e.g. '100%', '200px'). Falls back to the element's natural width. */
|
|
11
|
+
width?: string | number;
|
|
12
|
+
/** Explicit height (e.g. '1rem', 48). Falls back to the element's natural height. */
|
|
13
|
+
height?: string | number;
|
|
14
|
+
}
|
|
15
|
+
interface SkeletonTextProps extends HTMLAttributes<HTMLDivElement> {
|
|
16
|
+
/** Number of text lines to render. Defaults to 3. */
|
|
17
|
+
lines?: number;
|
|
18
|
+
/** Animation variant forwarded to each line. Defaults to 'wave'. */
|
|
19
|
+
variant?: SkeletonVariant;
|
|
20
|
+
/** When true the last line is shorter (≈ 60 %) to look like natural prose. Defaults to true. */
|
|
21
|
+
shortLast?: boolean;
|
|
22
|
+
}
|
|
23
|
+
interface SkeletonAvatarProps extends HTMLAttributes<HTMLDivElement> {
|
|
24
|
+
/** Diameter of the avatar circle in pixels. Defaults to 40. */
|
|
25
|
+
size?: number;
|
|
26
|
+
/** Animation variant. Defaults to 'wave'. */
|
|
27
|
+
variant?: SkeletonVariant;
|
|
28
|
+
}
|
|
29
|
+
interface SkeletonCardProps extends HTMLAttributes<HTMLDivElement> {
|
|
30
|
+
/** Show a header image placeholder at the top of the card. Defaults to true. */
|
|
31
|
+
showImage?: boolean;
|
|
32
|
+
/** Height of the image placeholder in pixels. Defaults to 160. */
|
|
33
|
+
imageHeight?: number;
|
|
34
|
+
/** Number of text-line skeletons in the body. Defaults to 3. */
|
|
35
|
+
lines?: number;
|
|
36
|
+
/** Animation variant forwarded to all children. Defaults to 'wave'. */
|
|
37
|
+
variant?: SkeletonVariant;
|
|
38
|
+
}
|
|
39
|
+
interface SkeletonTableProps extends HTMLAttributes<HTMLDivElement> {
|
|
40
|
+
/** Number of rows to render. Defaults to 5. */
|
|
41
|
+
rows?: number;
|
|
42
|
+
/** Number of columns to render. Defaults to 4. */
|
|
43
|
+
columns?: number;
|
|
44
|
+
/** Animation variant. Defaults to 'wave'. */
|
|
45
|
+
variant?: SkeletonVariant;
|
|
46
|
+
/** Show a header row above the body rows. Defaults to true. */
|
|
47
|
+
showHeader?: boolean;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* Primitive skeleton block. Use this as the building brick for any custom
|
|
52
|
+
* layout skeleton you need.
|
|
53
|
+
*/
|
|
54
|
+
declare const Skeleton: React.ForwardRefExoticComponent<SkeletonProps & React.RefAttributes<HTMLDivElement>>;
|
|
55
|
+
/**
|
|
56
|
+
* Multi-line text placeholder. The last line is intentionally shorter to
|
|
57
|
+
* mimic natural prose paragraph endings.
|
|
58
|
+
*/
|
|
59
|
+
declare const SkeletonText: React.ForwardRefExoticComponent<SkeletonTextProps & React.RefAttributes<HTMLDivElement>>;
|
|
60
|
+
/**
|
|
61
|
+
* Circular avatar placeholder. Pairs naturally with SkeletonText to build
|
|
62
|
+
* user-card or comment-thread loaders.
|
|
63
|
+
*/
|
|
64
|
+
declare const SkeletonAvatar: React.ForwardRefExoticComponent<SkeletonAvatarProps & React.RefAttributes<HTMLDivElement>>;
|
|
65
|
+
/**
|
|
66
|
+
* Pre-composed card skeleton mirroring the Card component structure:
|
|
67
|
+
* optional hero image → title → description lines → action bar.
|
|
68
|
+
*/
|
|
69
|
+
declare const SkeletonCard: React.ForwardRefExoticComponent<SkeletonCardProps & React.RefAttributes<HTMLDivElement>>;
|
|
70
|
+
/**
|
|
71
|
+
* Full table placeholder matching the Table component's visual grid.
|
|
72
|
+
* Renders a configurable number of column headers and body rows.
|
|
73
|
+
*/
|
|
74
|
+
declare const SkeletonTable: React.ForwardRefExoticComponent<SkeletonTableProps & React.RefAttributes<HTMLDivElement>>;
|
|
75
|
+
|
|
76
|
+
export { Skeleton, SkeletonAvatar, type SkeletonAvatarProps, SkeletonCard, type SkeletonCardProps, type SkeletonProps, type SkeletonShape, SkeletonTable, type SkeletonTableProps, SkeletonText, type SkeletonTextProps, type SkeletonVariant };
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import { HTMLAttributes } from 'react';
|
|
2
|
+
|
|
3
|
+
type SkeletonVariant = 'default' | 'wave' | 'pulse';
|
|
4
|
+
type SkeletonShape = 'rectangle' | 'circle' | 'rounded';
|
|
5
|
+
interface SkeletonProps extends HTMLAttributes<HTMLDivElement> {
|
|
6
|
+
/** Animation style of the skeleton. Defaults to 'wave'. */
|
|
7
|
+
variant?: SkeletonVariant;
|
|
8
|
+
/** Shape of the skeleton block. Defaults to 'rectangle'. */
|
|
9
|
+
shape?: SkeletonShape;
|
|
10
|
+
/** Explicit width (e.g. '100%', '200px'). Falls back to the element's natural width. */
|
|
11
|
+
width?: string | number;
|
|
12
|
+
/** Explicit height (e.g. '1rem', 48). Falls back to the element's natural height. */
|
|
13
|
+
height?: string | number;
|
|
14
|
+
}
|
|
15
|
+
interface SkeletonTextProps extends HTMLAttributes<HTMLDivElement> {
|
|
16
|
+
/** Number of text lines to render. Defaults to 3. */
|
|
17
|
+
lines?: number;
|
|
18
|
+
/** Animation variant forwarded to each line. Defaults to 'wave'. */
|
|
19
|
+
variant?: SkeletonVariant;
|
|
20
|
+
/** When true the last line is shorter (≈ 60 %) to look like natural prose. Defaults to true. */
|
|
21
|
+
shortLast?: boolean;
|
|
22
|
+
}
|
|
23
|
+
interface SkeletonAvatarProps extends HTMLAttributes<HTMLDivElement> {
|
|
24
|
+
/** Diameter of the avatar circle in pixels. Defaults to 40. */
|
|
25
|
+
size?: number;
|
|
26
|
+
/** Animation variant. Defaults to 'wave'. */
|
|
27
|
+
variant?: SkeletonVariant;
|
|
28
|
+
}
|
|
29
|
+
interface SkeletonCardProps extends HTMLAttributes<HTMLDivElement> {
|
|
30
|
+
/** Show a header image placeholder at the top of the card. Defaults to true. */
|
|
31
|
+
showImage?: boolean;
|
|
32
|
+
/** Height of the image placeholder in pixels. Defaults to 160. */
|
|
33
|
+
imageHeight?: number;
|
|
34
|
+
/** Number of text-line skeletons in the body. Defaults to 3. */
|
|
35
|
+
lines?: number;
|
|
36
|
+
/** Animation variant forwarded to all children. Defaults to 'wave'. */
|
|
37
|
+
variant?: SkeletonVariant;
|
|
38
|
+
}
|
|
39
|
+
interface SkeletonTableProps extends HTMLAttributes<HTMLDivElement> {
|
|
40
|
+
/** Number of rows to render. Defaults to 5. */
|
|
41
|
+
rows?: number;
|
|
42
|
+
/** Number of columns to render. Defaults to 4. */
|
|
43
|
+
columns?: number;
|
|
44
|
+
/** Animation variant. Defaults to 'wave'. */
|
|
45
|
+
variant?: SkeletonVariant;
|
|
46
|
+
/** Show a header row above the body rows. Defaults to true. */
|
|
47
|
+
showHeader?: boolean;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* Primitive skeleton block. Use this as the building brick for any custom
|
|
52
|
+
* layout skeleton you need.
|
|
53
|
+
*/
|
|
54
|
+
declare const Skeleton: React.ForwardRefExoticComponent<SkeletonProps & React.RefAttributes<HTMLDivElement>>;
|
|
55
|
+
/**
|
|
56
|
+
* Multi-line text placeholder. The last line is intentionally shorter to
|
|
57
|
+
* mimic natural prose paragraph endings.
|
|
58
|
+
*/
|
|
59
|
+
declare const SkeletonText: React.ForwardRefExoticComponent<SkeletonTextProps & React.RefAttributes<HTMLDivElement>>;
|
|
60
|
+
/**
|
|
61
|
+
* Circular avatar placeholder. Pairs naturally with SkeletonText to build
|
|
62
|
+
* user-card or comment-thread loaders.
|
|
63
|
+
*/
|
|
64
|
+
declare const SkeletonAvatar: React.ForwardRefExoticComponent<SkeletonAvatarProps & React.RefAttributes<HTMLDivElement>>;
|
|
65
|
+
/**
|
|
66
|
+
* Pre-composed card skeleton mirroring the Card component structure:
|
|
67
|
+
* optional hero image → title → description lines → action bar.
|
|
68
|
+
*/
|
|
69
|
+
declare const SkeletonCard: React.ForwardRefExoticComponent<SkeletonCardProps & React.RefAttributes<HTMLDivElement>>;
|
|
70
|
+
/**
|
|
71
|
+
* Full table placeholder matching the Table component's visual grid.
|
|
72
|
+
* Renders a configurable number of column headers and body rows.
|
|
73
|
+
*/
|
|
74
|
+
declare const SkeletonTable: React.ForwardRefExoticComponent<SkeletonTableProps & React.RefAttributes<HTMLDivElement>>;
|
|
75
|
+
|
|
76
|
+
export { Skeleton, SkeletonAvatar, type SkeletonAvatarProps, SkeletonCard, type SkeletonCardProps, type SkeletonProps, type SkeletonShape, SkeletonTable, type SkeletonTableProps, SkeletonText, type SkeletonTextProps, type SkeletonVariant };
|