@cascivo/react 0.1.0 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (256) hide show
  1. package/README.md +226 -168
  2. package/dist/cascivo.css +1 -1
  3. package/dist/index.d.ts +2619 -1
  4. package/dist/index.js +942 -760
  5. package/package.json +8 -8
  6. package/readme.body.md +225 -5
  7. package/dist/types/packages/components/src/_all-metas.d.ts +0 -2
  8. package/dist/types/packages/components/src/accordion/accordion.d.ts +0 -16
  9. package/dist/types/packages/components/src/accordion/accordion.meta.d.ts +0 -2
  10. package/dist/types/packages/components/src/alert/alert.d.ts +0 -13
  11. package/dist/types/packages/components/src/alert/alert.meta.d.ts +0 -2
  12. package/dist/types/packages/components/src/alert-dialog/alert-dialog.d.ts +0 -14
  13. package/dist/types/packages/components/src/alert-dialog/alert-dialog.meta.d.ts +0 -2
  14. package/dist/types/packages/components/src/aspect-ratio/aspect-ratio.d.ts +0 -7
  15. package/dist/types/packages/components/src/aspect-ratio/aspect-ratio.meta.d.ts +0 -2
  16. package/dist/types/packages/components/src/avatar/avatar.d.ts +0 -9
  17. package/dist/types/packages/components/src/avatar/avatar.meta.d.ts +0 -2
  18. package/dist/types/packages/components/src/badge/badge.d.ts +0 -6
  19. package/dist/types/packages/components/src/badge/badge.meta.d.ts +0 -2
  20. package/dist/types/packages/components/src/blockquote/blockquote.d.ts +0 -5
  21. package/dist/types/packages/components/src/blockquote/blockquote.meta.d.ts +0 -2
  22. package/dist/types/packages/components/src/blocks/app-shell/app-shell.d.ts +0 -1
  23. package/dist/types/packages/components/src/blocks/app-shell/app-shell.meta.d.ts +0 -2
  24. package/dist/types/packages/components/src/blocks/auth-login/auth-login.d.ts +0 -1
  25. package/dist/types/packages/components/src/blocks/auth-login/auth-login.meta.d.ts +0 -2
  26. package/dist/types/packages/components/src/blocks/auth-signup/auth-signup.d.ts +0 -1
  27. package/dist/types/packages/components/src/blocks/auth-signup/auth-signup.meta.d.ts +0 -2
  28. package/dist/types/packages/components/src/blocks/dashboard-overview/dashboard-overview.d.ts +0 -1
  29. package/dist/types/packages/components/src/blocks/dashboard-overview/dashboard-overview.meta.d.ts +0 -2
  30. package/dist/types/packages/components/src/blocks/dashboard-table/dashboard-table.d.ts +0 -2
  31. package/dist/types/packages/components/src/blocks/dashboard-table/dashboard-table.meta.d.ts +0 -2
  32. package/dist/types/packages/components/src/blocks/marketing-features/marketing-features.d.ts +0 -1
  33. package/dist/types/packages/components/src/blocks/marketing-features/marketing-features.meta.d.ts +0 -2
  34. package/dist/types/packages/components/src/blocks/marketing-hero/marketing-hero.d.ts +0 -1
  35. package/dist/types/packages/components/src/blocks/marketing-hero/marketing-hero.meta.d.ts +0 -2
  36. package/dist/types/packages/components/src/blocks/settings-profile/settings-profile.d.ts +0 -1
  37. package/dist/types/packages/components/src/blocks/settings-profile/settings-profile.meta.d.ts +0 -2
  38. package/dist/types/packages/components/src/blocks/types.d.ts +0 -12
  39. package/dist/types/packages/components/src/breadcrumb/breadcrumb.d.ts +0 -12
  40. package/dist/types/packages/components/src/breadcrumb/breadcrumb.meta.d.ts +0 -2
  41. package/dist/types/packages/components/src/button/button.d.ts +0 -7
  42. package/dist/types/packages/components/src/button/button.meta.d.ts +0 -2
  43. package/dist/types/packages/components/src/button-group/button-group.d.ts +0 -9
  44. package/dist/types/packages/components/src/button-group/button-group.meta.d.ts +0 -2
  45. package/dist/types/packages/components/src/calendar/calendar.d.ts +0 -35
  46. package/dist/types/packages/components/src/calendar/calendar.meta.d.ts +0 -2
  47. package/dist/types/packages/components/src/card/card.d.ts +0 -18
  48. package/dist/types/packages/components/src/card/card.meta.d.ts +0 -2
  49. package/dist/types/packages/components/src/carousel/carousel.d.ts +0 -17
  50. package/dist/types/packages/components/src/carousel/carousel.meta.d.ts +0 -2
  51. package/dist/types/packages/components/src/chat-bubble/chat-bubble.d.ts +0 -10
  52. package/dist/types/packages/components/src/chat-bubble/chat-bubble.meta.d.ts +0 -2
  53. package/dist/types/packages/components/src/checkbox/checkbox.d.ts +0 -6
  54. package/dist/types/packages/components/src/checkbox/checkbox.meta.d.ts +0 -2
  55. package/dist/types/packages/components/src/checkbox-card/checkbox-card.d.ts +0 -8
  56. package/dist/types/packages/components/src/checkbox-card/checkbox-card.meta.d.ts +0 -2
  57. package/dist/types/packages/components/src/checkbox-card/index.d.ts +0 -2
  58. package/dist/types/packages/components/src/code/code.d.ts +0 -5
  59. package/dist/types/packages/components/src/code/code.meta.d.ts +0 -2
  60. package/dist/types/packages/components/src/code-snippet/code-snippet.d.ts +0 -21
  61. package/dist/types/packages/components/src/code-snippet/code-snippet.meta.d.ts +0 -2
  62. package/dist/types/packages/components/src/collapsible/collapsible.d.ts +0 -16
  63. package/dist/types/packages/components/src/collapsible/collapsible.meta.d.ts +0 -2
  64. package/dist/types/packages/components/src/color-picker/color-picker.d.ts +0 -19
  65. package/dist/types/packages/components/src/color-picker/color-picker.meta.d.ts +0 -2
  66. package/dist/types/packages/components/src/combobox/combobox.d.ts +0 -27
  67. package/dist/types/packages/components/src/combobox/combobox.meta.d.ts +0 -2
  68. package/dist/types/packages/components/src/command-menu/command-menu.d.ts +0 -39
  69. package/dist/types/packages/components/src/command-menu/command-menu.meta.d.ts +0 -2
  70. package/dist/types/packages/components/src/contained-list/contained-list.d.ts +0 -11
  71. package/dist/types/packages/components/src/contained-list/contained-list.meta.d.ts +0 -2
  72. package/dist/types/packages/components/src/context-menu/context-menu.d.ts +0 -11
  73. package/dist/types/packages/components/src/context-menu/context-menu.meta.d.ts +0 -2
  74. package/dist/types/packages/components/src/copy-button/copy-button.d.ts +0 -11
  75. package/dist/types/packages/components/src/copy-button/copy-button.meta.d.ts +0 -2
  76. package/dist/types/packages/components/src/data-list/data-list.d.ts +0 -13
  77. package/dist/types/packages/components/src/data-list/data-list.meta.d.ts +0 -2
  78. package/dist/types/packages/components/src/data-table/data-table.d.ts +0 -60
  79. package/dist/types/packages/components/src/data-table/data-table.meta.d.ts +0 -2
  80. package/dist/types/packages/components/src/date-picker/date-picker.d.ts +0 -23
  81. package/dist/types/packages/components/src/date-picker/date-picker.meta.d.ts +0 -2
  82. package/dist/types/packages/components/src/date-range-picker/date-range-picker.d.ts +0 -32
  83. package/dist/types/packages/components/src/date-range-picker/date-range-picker.meta.d.ts +0 -2
  84. package/dist/types/packages/components/src/dock/dock.d.ts +0 -12
  85. package/dist/types/packages/components/src/dock/dock.meta.d.ts +0 -2
  86. package/dist/types/packages/components/src/drawer/drawer.d.ts +0 -29
  87. package/dist/types/packages/components/src/drawer/drawer.meta.d.ts +0 -2
  88. package/dist/types/packages/components/src/dropdown/dropdown.d.ts +0 -17
  89. package/dist/types/packages/components/src/dropdown/dropdown.meta.d.ts +0 -2
  90. package/dist/types/packages/components/src/editable/editable.d.ts +0 -10
  91. package/dist/types/packages/components/src/editable/editable.meta.d.ts +0 -2
  92. package/dist/types/packages/components/src/empty-state/empty-state.d.ts +0 -9
  93. package/dist/types/packages/components/src/empty-state/empty-state.meta.d.ts +0 -2
  94. package/dist/types/packages/components/src/field/field.d.ts +0 -24
  95. package/dist/types/packages/components/src/field/field.meta.d.ts +0 -2
  96. package/dist/types/packages/components/src/file-uploader/file-uploader.d.ts +0 -30
  97. package/dist/types/packages/components/src/file-uploader/file-uploader.meta.d.ts +0 -2
  98. package/dist/types/packages/components/src/filter/filter.d.ts +0 -16
  99. package/dist/types/packages/components/src/filter/filter.meta.d.ts +0 -2
  100. package/dist/types/packages/components/src/form/form.d.ts +0 -37
  101. package/dist/types/packages/components/src/form/form.meta.d.ts +0 -2
  102. package/dist/types/packages/components/src/form/standard-schema.d.ts +0 -24
  103. package/dist/types/packages/components/src/header/header.d.ts +0 -17
  104. package/dist/types/packages/components/src/header/header.meta.d.ts +0 -2
  105. package/dist/types/packages/components/src/header-panel/header-panel.d.ts +0 -13
  106. package/dist/types/packages/components/src/header-panel/header-panel.meta.d.ts +0 -2
  107. package/dist/types/packages/components/src/header-panel/index.d.ts +0 -2
  108. package/dist/types/packages/components/src/heading/heading.d.ts +0 -8
  109. package/dist/types/packages/components/src/heading/heading.meta.d.ts +0 -2
  110. package/dist/types/packages/components/src/hover-card/hover-card.d.ts +0 -16
  111. package/dist/types/packages/components/src/hover-card/hover-card.meta.d.ts +0 -2
  112. package/dist/types/packages/components/src/icon-button/icon-button.d.ts +0 -12
  113. package/dist/types/packages/components/src/icon-button/icon-button.meta.d.ts +0 -2
  114. package/dist/types/packages/components/src/indicator/indicator.d.ts +0 -8
  115. package/dist/types/packages/components/src/indicator/indicator.meta.d.ts +0 -2
  116. package/dist/types/packages/components/src/inline-loading/inline-loading.d.ts +0 -12
  117. package/dist/types/packages/components/src/inline-loading/inline-loading.meta.d.ts +0 -2
  118. package/dist/types/packages/components/src/input/input.d.ts +0 -8
  119. package/dist/types/packages/components/src/input/input.meta.d.ts +0 -2
  120. package/dist/types/packages/components/src/input-group/input-group.d.ts +0 -18
  121. package/dist/types/packages/components/src/input-group/input-group.meta.d.ts +0 -2
  122. package/dist/types/packages/components/src/item/item.d.ts +0 -22
  123. package/dist/types/packages/components/src/item/item.meta.d.ts +0 -2
  124. package/dist/types/packages/components/src/join/join.d.ts +0 -7
  125. package/dist/types/packages/components/src/join/join.meta.d.ts +0 -2
  126. package/dist/types/packages/components/src/kbd/kbd.d.ts +0 -5
  127. package/dist/types/packages/components/src/kbd/kbd.meta.d.ts +0 -2
  128. package/dist/types/packages/components/src/label/label.d.ts +0 -15
  129. package/dist/types/packages/components/src/label/label.meta.d.ts +0 -2
  130. package/dist/types/packages/components/src/link/link.d.ts +0 -7
  131. package/dist/types/packages/components/src/link/link.meta.d.ts +0 -2
  132. package/dist/types/packages/components/src/list/list.d.ts +0 -8
  133. package/dist/types/packages/components/src/list/list.meta.d.ts +0 -2
  134. package/dist/types/packages/components/src/menu/menu.d.ts +0 -17
  135. package/dist/types/packages/components/src/menu/menu.meta.d.ts +0 -2
  136. package/dist/types/packages/components/src/menu-button/menu-button.d.ts +0 -20
  137. package/dist/types/packages/components/src/menu-button/menu-button.meta.d.ts +0 -2
  138. package/dist/types/packages/components/src/menubar/menubar.d.ts +0 -18
  139. package/dist/types/packages/components/src/menubar/menubar.meta.d.ts +0 -2
  140. package/dist/types/packages/components/src/modal/modal.d.ts +0 -11
  141. package/dist/types/packages/components/src/modal/modal.meta.d.ts +0 -2
  142. package/dist/types/packages/components/src/multi-select/multi-select.d.ts +0 -21
  143. package/dist/types/packages/components/src/multi-select/multi-select.meta.d.ts +0 -2
  144. package/dist/types/packages/components/src/native-select/native-select.d.ts +0 -23
  145. package/dist/types/packages/components/src/native-select/native-select.meta.d.ts +0 -2
  146. package/dist/types/packages/components/src/navigation-menu/navigation-menu.d.ts +0 -15
  147. package/dist/types/packages/components/src/navigation-menu/navigation-menu.meta.d.ts +0 -2
  148. package/dist/types/packages/components/src/notification/notification.d.ts +0 -15
  149. package/dist/types/packages/components/src/notification/notification.meta.d.ts +0 -2
  150. package/dist/types/packages/components/src/number-input/number-input.d.ts +0 -18
  151. package/dist/types/packages/components/src/number-input/number-input.meta.d.ts +0 -2
  152. package/dist/types/packages/components/src/otp-input/otp-input.d.ts +0 -9
  153. package/dist/types/packages/components/src/otp-input/otp-input.meta.d.ts +0 -2
  154. package/dist/types/packages/components/src/overflow-menu/overflow-menu.d.ts +0 -18
  155. package/dist/types/packages/components/src/overflow-menu/overflow-menu.meta.d.ts +0 -2
  156. package/dist/types/packages/components/src/pagination/pagination.d.ts +0 -19
  157. package/dist/types/packages/components/src/pagination/pagination.meta.d.ts +0 -2
  158. package/dist/types/packages/components/src/password-input/password-input.d.ts +0 -12
  159. package/dist/types/packages/components/src/password-input/password-input.meta.d.ts +0 -2
  160. package/dist/types/packages/components/src/popover/index.d.ts +0 -4
  161. package/dist/types/packages/components/src/popover/popover.d.ts +0 -16
  162. package/dist/types/packages/components/src/popover/popover.meta.d.ts +0 -2
  163. package/dist/types/packages/components/src/popover/use-popover.d.ts +0 -17
  164. package/dist/types/packages/components/src/progress/progress.d.ts +0 -12
  165. package/dist/types/packages/components/src/progress/progress.meta.d.ts +0 -2
  166. package/dist/types/packages/components/src/progress-bar/progress-bar.d.ts +0 -11
  167. package/dist/types/packages/components/src/progress-bar/progress-bar.meta.d.ts +0 -2
  168. package/dist/types/packages/components/src/progress-circle/progress-circle.d.ts +0 -12
  169. package/dist/types/packages/components/src/progress-circle/progress-circle.meta.d.ts +0 -2
  170. package/dist/types/packages/components/src/progress-indicator/progress-indicator.d.ts +0 -11
  171. package/dist/types/packages/components/src/progress-indicator/progress-indicator.meta.d.ts +0 -2
  172. package/dist/types/packages/components/src/prose/prose.d.ts +0 -3
  173. package/dist/types/packages/components/src/prose/prose.meta.d.ts +0 -2
  174. package/dist/types/packages/components/src/radial-progress/radial-progress.d.ts +0 -11
  175. package/dist/types/packages/components/src/radial-progress/radial-progress.meta.d.ts +0 -2
  176. package/dist/types/packages/components/src/radio/radio.d.ts +0 -16
  177. package/dist/types/packages/components/src/radio/radio.meta.d.ts +0 -2
  178. package/dist/types/packages/components/src/radio-card/index.d.ts +0 -2
  179. package/dist/types/packages/components/src/radio-card/radio-card.d.ts +0 -19
  180. package/dist/types/packages/components/src/radio-card/radio-card.meta.d.ts +0 -2
  181. package/dist/types/packages/components/src/rating-group/rating-group.d.ts +0 -14
  182. package/dist/types/packages/components/src/rating-group/rating-group.meta.d.ts +0 -2
  183. package/dist/types/packages/components/src/resizable/resizable.d.ts +0 -13
  184. package/dist/types/packages/components/src/resizable/resizable.meta.d.ts +0 -2
  185. package/dist/types/packages/components/src/scroll-area/scroll-area.d.ts +0 -11
  186. package/dist/types/packages/components/src/scroll-area/scroll-area.meta.d.ts +0 -2
  187. package/dist/types/packages/components/src/search/search.d.ts +0 -15
  188. package/dist/types/packages/components/src/search/search.meta.d.ts +0 -2
  189. package/dist/types/packages/components/src/segmented-control/segmented-control.d.ts +0 -14
  190. package/dist/types/packages/components/src/segmented-control/segmented-control.meta.d.ts +0 -2
  191. package/dist/types/packages/components/src/select/select.d.ts +0 -15
  192. package/dist/types/packages/components/src/select/select.meta.d.ts +0 -2
  193. package/dist/types/packages/components/src/separator/separator.d.ts +0 -6
  194. package/dist/types/packages/components/src/separator/separator.meta.d.ts +0 -2
  195. package/dist/types/packages/components/src/sheet/sheet.d.ts +0 -9
  196. package/dist/types/packages/components/src/sheet/sheet.meta.d.ts +0 -2
  197. package/dist/types/packages/components/src/shell-header/index.d.ts +0 -2
  198. package/dist/types/packages/components/src/shell-header/shell-header.d.ts +0 -46
  199. package/dist/types/packages/components/src/shell-header/shell-header.meta.d.ts +0 -2
  200. package/dist/types/packages/components/src/side-nav/side-nav.d.ts +0 -33
  201. package/dist/types/packages/components/src/side-nav/side-nav.meta.d.ts +0 -2
  202. package/dist/types/packages/components/src/skeleton/skeleton.d.ts +0 -8
  203. package/dist/types/packages/components/src/skeleton/skeleton.meta.d.ts +0 -2
  204. package/dist/types/packages/components/src/skip-nav/skip-nav.d.ts +0 -14
  205. package/dist/types/packages/components/src/skip-nav/skip-nav.meta.d.ts +0 -2
  206. package/dist/types/packages/components/src/slider/slider.d.ts +0 -5
  207. package/dist/types/packages/components/src/slider/slider.meta.d.ts +0 -2
  208. package/dist/types/packages/components/src/spinner/spinner.d.ts +0 -6
  209. package/dist/types/packages/components/src/spinner/spinner.meta.d.ts +0 -2
  210. package/dist/types/packages/components/src/stack/stack.d.ts +0 -6
  211. package/dist/types/packages/components/src/stack/stack.meta.d.ts +0 -2
  212. package/dist/types/packages/components/src/stat/stat.d.ts +0 -9
  213. package/dist/types/packages/components/src/stat/stat.meta.d.ts +0 -2
  214. package/dist/types/packages/components/src/status/status.d.ts +0 -7
  215. package/dist/types/packages/components/src/status/status.meta.d.ts +0 -2
  216. package/dist/types/packages/components/src/steps/steps.d.ts +0 -12
  217. package/dist/types/packages/components/src/steps/steps.meta.d.ts +0 -2
  218. package/dist/types/packages/components/src/structured-list/structured-list.d.ts +0 -17
  219. package/dist/types/packages/components/src/structured-list/structured-list.meta.d.ts +0 -2
  220. package/dist/types/packages/components/src/swap/swap.d.ts +0 -11
  221. package/dist/types/packages/components/src/swap/swap.meta.d.ts +0 -2
  222. package/dist/types/packages/components/src/switcher/index.d.ts +0 -2
  223. package/dist/types/packages/components/src/switcher/switcher.d.ts +0 -16
  224. package/dist/types/packages/components/src/switcher/switcher.meta.d.ts +0 -2
  225. package/dist/types/packages/components/src/tabs/tabs.d.ts +0 -19
  226. package/dist/types/packages/components/src/tabs/tabs.meta.d.ts +0 -2
  227. package/dist/types/packages/components/src/tag/tag.d.ts +0 -8
  228. package/dist/types/packages/components/src/tag/tag.meta.d.ts +0 -2
  229. package/dist/types/packages/components/src/tags-input/tags-input.d.ts +0 -10
  230. package/dist/types/packages/components/src/tags-input/tags-input.meta.d.ts +0 -2
  231. package/dist/types/packages/components/src/text/text.d.ts +0 -8
  232. package/dist/types/packages/components/src/text/text.meta.d.ts +0 -2
  233. package/dist/types/packages/components/src/textarea/textarea.d.ts +0 -8
  234. package/dist/types/packages/components/src/textarea/textarea.meta.d.ts +0 -2
  235. package/dist/types/packages/components/src/tile/tile.d.ts +0 -25
  236. package/dist/types/packages/components/src/tile/tile.meta.d.ts +0 -2
  237. package/dist/types/packages/components/src/time-picker/time-picker.d.ts +0 -14
  238. package/dist/types/packages/components/src/time-picker/time-picker.meta.d.ts +0 -2
  239. package/dist/types/packages/components/src/timeline/timeline.d.ts +0 -14
  240. package/dist/types/packages/components/src/timeline/timeline.meta.d.ts +0 -2
  241. package/dist/types/packages/components/src/toast/toast.d.ts +0 -17
  242. package/dist/types/packages/components/src/toast/toast.meta.d.ts +0 -2
  243. package/dist/types/packages/components/src/toggle/toggle.d.ts +0 -9
  244. package/dist/types/packages/components/src/toggle/toggle.meta.d.ts +0 -2
  245. package/dist/types/packages/components/src/toggle-group/toggle-group.d.ts +0 -18
  246. package/dist/types/packages/components/src/toggle-group/toggle-group.meta.d.ts +0 -2
  247. package/dist/types/packages/components/src/toggletip/toggletip.d.ts +0 -17
  248. package/dist/types/packages/components/src/toggletip/toggletip.meta.d.ts +0 -2
  249. package/dist/types/packages/components/src/tooltip/tooltip.d.ts +0 -8
  250. package/dist/types/packages/components/src/tooltip/tooltip.meta.d.ts +0 -2
  251. package/dist/types/packages/components/src/tree-view/tree-view.d.ts +0 -25
  252. package/dist/types/packages/components/src/tree-view/tree-view.meta.d.ts +0 -2
  253. package/dist/types/packages/components/src/visually-hidden/visually-hidden.d.ts +0 -5
  254. package/dist/types/packages/components/src/visually-hidden/visually-hidden.meta.d.ts +0 -2
  255. package/dist/types/packages/react/src/index.d.ts +0 -122
  256. package/dist/types/packages/react/src/setup.d.ts +0 -1
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@cascivo/react",
3
- "version": "0.1.0",
3
+ "version": "0.2.0",
4
4
  "private": false,
5
- "description": "Prebuilt cascade design system components — use without copying source",
5
+ "description": "Prebuilt cascivo design system components — use without copying source",
6
6
  "keywords": [
7
7
  "cascivo",
8
8
  "components",
@@ -36,15 +36,15 @@
36
36
  "import": "./dist/index.js",
37
37
  "default": "./dist/index.js"
38
38
  },
39
- "./styles.css": "./dist/cascade.css"
39
+ "./styles.css": "./dist/cascivo.css"
40
40
  },
41
41
  "publishConfig": {
42
42
  "access": "public",
43
43
  "provenance": true
44
44
  },
45
45
  "dependencies": {
46
- "@cascivo/i18n": "^0.1.0",
47
- "@cascivo/core": "^0.1.0"
46
+ "@cascivo/core": "^0.1.0",
47
+ "@cascivo/i18n": "^0.1.0"
48
48
  },
49
49
  "devDependencies": {
50
50
  "@testing-library/jest-dom": "^6.9.1",
@@ -55,8 +55,8 @@
55
55
  "react": "^19.2.7",
56
56
  "react-dom": "^19.2.7",
57
57
  "typescript": "^5",
58
- "vite-plus": "^0.1.24",
59
- "vitest": "npm:@voidzero-dev/vite-plus-test@0.1.24",
58
+ "vite-plus": "^0.2.1",
59
+ "vitest": "4.1.9",
60
60
  "@cascivo/components": "0.0.0"
61
61
  },
62
62
  "peerDependencies": {
@@ -65,7 +65,7 @@
65
65
  "react-dom": ">=18.0.0"
66
66
  },
67
67
  "scripts": {
68
- "build": "vp build && tsc -p tsconfig.build.json && node scripts/flatten-types.mjs",
68
+ "build": "vp build && node scripts/flatten-types.mjs && node scripts/check-types-flat.mjs",
69
69
  "check": "tsc --noEmit",
70
70
  "test": "vp test"
71
71
  }
package/readme.body.md CHANGED
@@ -7,9 +7,9 @@ can coexist in one project.
7
7
  ## Use
8
8
 
9
9
  ```tsx
10
- // once, in your entry file
11
- import '@cascivo/react/styles.css'
12
- import '@cascivo/themes/light'
10
+ // once, in your entry file — two imports get you a fully themed setup
11
+ import '@cascivo/react/styles.css' // component styles
12
+ import '@cascivo/themes/all' // tokens (once) + base typography + light & dark
13
13
 
14
14
  // anywhere
15
15
  import { Button, Card, CardContent, Toggle } from '@cascivo/react'
@@ -28,10 +28,230 @@ export function App() {
28
28
  }
29
29
  ```
30
30
 
31
- Theming works exactly like the copy-paste flow: import a theme stylesheet and
32
- scope it with `data-theme="light" | "dark" | "warm"` on any container. Brand
31
+ `@cascivo/themes/all` is the recommended single import: it loads `@cascivo/tokens`
32
+ **once**, applies the base typography layer (so plain markup uses the sans font,
33
+ not the browser serif default), and ships both the `light` and `dark` themes.
34
+
35
+ Prefer à-la-carte? Import only the themes you need — each self-imports the tokens
36
+ (deduped by URL, so light + dark load tokens once):
37
+
38
+ ```tsx
39
+ import '@cascivo/react/styles.css'
40
+ import '@cascivo/themes/base' // base typography (font/line-height/color)
41
+ import '@cascivo/themes/light'
42
+ import '@cascivo/themes/dark'
43
+ ```
44
+
45
+ Scope a theme with `data-theme="light" | "dark" | "warm"` on any container. Brand
33
46
  adaptation happens by overriding `--cascivo-*` custom properties — no rebuild
34
47
  needed.
35
48
 
49
+ ### CSS layer ordering
50
+
51
+ cascivo ships its styles in cascade layers, ordered lowest → highest priority:
52
+
53
+ ```
54
+ cascivo.base < cascivo.theme < cascivo.component
55
+ ```
56
+
57
+ **Unlayered** CSS in your app always beats every cascivo layer regardless of
58
+ specificity, so your own (unlayered) styles win by default. To override cascivo
59
+ from within a layer, declare a layer ordered after `cascivo.component`. See
60
+ `CSS-LAYERS-PITFALL.md` for the full story and the recommended `@layer`
61
+ declaration. Token names and aliases are documented in `TOKENS.md`.
62
+
36
63
  All components are client components (`'use client'` is preserved in the
37
64
  bundle), so the package works in Next.js App Router projects out of the box.
65
+
66
+ ## Migrating from shadcn/ui?
67
+
68
+ See [`MIGRATING-FROM-SHADCN.md`](https://github.com/urbanisierung/cascivo/blob/main/docs/MIGRATING-FROM-SHADCN.md)
69
+ for the variant/prop mapping (e.g. Button `default/outline` → `primary/secondary`,
70
+ there is no `outline`) and the CSS-setup delta vs Tailwind.
71
+
72
+ <!-- COMPONENT_INDEX:START -->
73
+
74
+ ## Component index
75
+
76
+ 158 components, exported from `@cascivo/react`. Full props, examples, and live demos at [docs.cascivo.com](https://docs.cascivo.com).
77
+
78
+ ### Inputs
79
+
80
+ - **Button** — Triggers an action or event
81
+ - **ButtonGroup** — Visually joins a set of related buttons into a single segmented control
82
+ - **Calendar** — An accessible standalone month-grid date picker.
83
+ - **Checkbox** — Binary toggle for forms, with indeterminate support
84
+ - **CheckboxCard** — Multi-selectable card backed by a native checkbox. Use multiple independent CheckboxCards for multi-select scenarios.
85
+ - **ColorPicker** — Interactive color selection widget with saturation/lightness area, hue and alpha sliders
86
+ - **Combobox** — Filterable single-select with an animated custom listbox, built on the dropdown open/close machine
87
+ - **CopyButton** — Icon button that copies a value to the clipboard with copied feedback
88
+ - **DatePicker** — An accessible date-picker with a calendar popover.
89
+ - **DateRangePicker** — A dual-calendar picker for selecting a contiguous date range.
90
+ - **Editable** — Inline click-to-edit text field
91
+ - **Field** — Form-field wrapper composing label, control, description, and error
92
+ - **FileUploader** — Drag-and-drop file upload zone with file list and status indicators.
93
+ - **Filter** — A group of toggleable pill or outline buttons for filtering content by category
94
+ - **Form** — Typed signal-based form store (createForm/useForm) with sync/async validation and a thin Form element wrapper
95
+ - **IconButton** — Square, icon-only button with a required accessible label
96
+ - **Input** — Text input field with optional label, hint, and error state
97
+ - **InputGroup** — Prefix/suffix addon wrapper for Input; InputGroupAddon renders inline icons/units inside the field border; ButtonGroup collapses adjacent button borders
98
+ - **Label** — Accessible caption for a form control
99
+ - **MultiSelect** — Searchable multi-value select with popover listbox
100
+ - **NativeSelect** — A styled native <select> that keeps platform form/keyboard behavior with a custom chevron and focus ring
101
+ - **NumberInput** — Numeric input with stepper buttons, clamping, precision, and locale formatting
102
+ - **OtpInput** — Segmented one-time code input
103
+ - **PasswordInput** — Password input with reveal toggle and optional strength meter
104
+ - **Radio** — Single choice from a set, grouped with RadioGroup
105
+ - **RadioCard** — Selectable card backed by a native radio input. Use RadioCardGroup for single-select groups.
106
+ - **RatingGroup** — Star rating input with accessible radio group pattern
107
+ - **Search** — Search input with debounced search callback and clear button
108
+ - **SegmentedControl** — Mutually exclusive toggle group
109
+ - **Select** — Native select menu styled to match the design system
110
+ - **Slider** — Range input for selecting a value within bounds
111
+ - **Swap** — Animated toggle between two icon/content states with rotate or flip transition
112
+ - **TagsInput** — Free-form multi-value chip input
113
+ - **Textarea** — Multi-line text input with optional label, hint, and error state
114
+ - **Tile** — A selectable card with radio (single) or checkbox (multi) semantics, toggled by click or keyboard
115
+ - **TimePicker** — Native time input wrapper with label, hint, error, and size variants
116
+ - **Toggle** — On/off switch built as an accessible button
117
+ - **ToggleGroup** — A set of toggle buttons for single or multiple selection
118
+
119
+ ### Display
120
+
121
+ - **Alert** — Highlights a short, important message inline
122
+ - **Avatar** — Displays a user image with initials fallback
123
+ - **Badge** — Small status label or category indicator
124
+ - **Blockquote** — Quoted passage with optional attribution footer
125
+ - **Card** — Container for grouping related content
126
+ - **Carousel** — Scroll-snap slide deck with previous/next controls and dot indicators
127
+ - **ChatBubble** — Message bubble for chat and messaging UIs with avatar, name, and timestamp support
128
+ - **Code** — Inline code span for identifiers, commands, and short snippets
129
+ - **CodeSnippet** — Displays code (inline, single-line, or multi-line) with an optional copy button, lightweight built-in syntax highlighting for bash/css/js/ts, and an optional terminal-window look
130
+ - **Collapsible** — A single disclosure region toggled open and closed by its trigger
131
+ - **ConsoleApp** — Carbon-parity console shell: ShellHeader + icon-rail SideNav + HeaderPanel notifications/switcher + collapsible aside + main content.
132
+ - **ContainedList** — Labelled list of rows inside a bordered container
133
+ - **DashboardCharts** — Dashboard layout with KPI tiles, line chart, bar chart, and pie chart.
134
+ - **DataList** — Key-value pairs rendered as a description list
135
+ - **DataTable** — Signal-driven data table with client/server sort, filter, pagination, multi-selection, expandable rows, and CSS content-visibility row containment for large datasets
136
+ - **EmptyDashboard** — Dashboard page showing an empty state with a call-to-action button.
137
+ - **EmptyState** — Placeholder for views that have no data to display
138
+ - **Heading** — Section heading with semantic level decoupled from visual size
139
+ - **Item** — Generic content row primitive with media, content, and action regions
140
+ - **Kbd** — Displays a keyboard key or shortcut
141
+ - **List** — Styled unordered or ordered list with ListItem
142
+ - **LoginPage** — Authentication login page with email and password form.
143
+ - **NotificationCenter** — A list of notification alerts with a mark-all-read action.
144
+ - **PageWithBreadcrumb** — A centered content page with a breadcrumb navigation and page header.
145
+ - **Prose** — Wrapper that styles raw descendant HTML — headings, lists, code, quotes, tables
146
+ - **Separator** — Visual or semantic divider between content
147
+ - **SettingsFormPage** — Settings page with profile form inside a two-column settings layout.
148
+ - **SidebarApp** — Full app shell with collapsible side navigation and top header.
149
+ - **Skeleton** — Animated loading placeholder that mirrors the shape of pending content
150
+ - **Stat** — Displays a key metric with optional delta, trend direction and help text
151
+ - **StatsCards** — Grid of KPI stat cards with trend badges.
152
+ - **Status** — Colored dot with a label communicating the state of a system or entity
153
+ - **StructuredList** — Tabular row list for scannable data, optionally single-selectable
154
+ - **Tag** — Compact chip for labeling, categorizing, or filtering content
155
+ - **Text** — Body text with size, weight, and muted variants
156
+ - **Timeline** — Ordered sequence of events with status markers and a connector line
157
+ - **TreeView** — Hierarchical, expandable tree of nodes with keyboard navigation and selection
158
+ - **UsersTablePage** — Full users management page with table, search, and invite action.
159
+ - **VisuallyHidden** — Hides content visually while keeping it available to screen readers
160
+
161
+ ### Overlay
162
+
163
+ - **AlertDialog** — Confirmation dialog requiring explicit user action; no light-dismiss
164
+ - **CommandMenu** — Cmd+K command palette with fuzzy search over grouped commands
165
+ - **ContextMenu** — Right-click context menu anchored at pointer coordinates via CSS custom properties
166
+ - **Drawer** — Edge-anchored dialog panel that slides in from a screen edge with CSS-only enter/exit motion
167
+ - **Dropdown** — Menu of actions revealed from a trigger
168
+ - **HoverCard** — Hover-triggered popover with configurable open/close delay
169
+ - **Menu** — Dropdown menu with keyboard navigation, built on usePopover
170
+ - **Modal** — Accessible dialog overlay using native <dialog> element
171
+ - **OverflowMenu** — Kebab icon button revealing a menu of row-level actions
172
+ - **Popover** — Anchored floating panel built on CSS Anchor Positioning + Popover API
173
+ - **Sheet** — Slide-in panel from any edge, using popover=manual and @starting-style animations
174
+ - **Toast** — Transient notification surfaced via the useToast hook
175
+ - **Toggletip** — A click-triggered info popover for supplementary, selectable content
176
+ - **Tooltip** — Contextual label shown on hover or focus
177
+
178
+ ### Navigation
179
+
180
+ - **Accordion** — Vertically stacked, collapsible content sections
181
+ - **Breadcrumb** — Shows the current page location within a navigation hierarchy
182
+ - **Dock** — Fixed bottom navigation bar for mobile app shells with up to 5 items
183
+ - **Header** — App top bar with brand, primary navigation links, and an actions slot
184
+ - **HeaderPanel** — Non-modal panel anchored below the shell header at the inline-end edge — hosts notifications, app switcher, user settings
185
+ - **Link** — Styled anchor for navigation, standalone or inline within prose
186
+ - **Menubar** — Horizontal application menu bar with keyboard-navigable dropdown menus
187
+ - **MenuButton** — A button that opens an anchored action menu of one-shot commands
188
+ - **NavigationMenu** — Site navigation bar with links and dropdown flyout panels
189
+ - **Pagination** — Controls for navigating paged data sets, with page size selection
190
+ - **ProgressIndicator** — Shows progress through the steps of a multi-step flow
191
+ - **ShellHeader** — Console application header: brand with prefix, dropdown nav menus, global icon actions, hamburger, skip-to-content
192
+ - **SideNav** — Collapsible sidebar navigation with optional icons and one level of grouping
193
+ - **SkipNav** — Skip link that jumps keyboard users past the navigation to the main content
194
+ - **Steps** — Visual progress indicator for multi-step flows with horizontal and vertical orientations
195
+ - **Switcher** — App/product switcher list — lives inside HeaderPanel, renders links with active indicator and optional dividers
196
+ - **Tabs** — Switch between related panels of content
197
+
198
+ ### Layout
199
+
200
+ - **AppShell** — Sticky-header + full-height side-nav + single-scroll-container layout with an animated, accessible nav toggle.
201
+ - **AppShell** — Full-page application shell with persisted collapsible sidebar. Includes a signal-driven top progress bar with determinate progress, error state, and dismissible error strip.
202
+ - **AspectRatio** — Constrains content to a fixed width-to-height ratio
203
+ - **AuthLayout** — Centered card layout for authentication pages (login, register, forgot password).
204
+ - **AutoGrid** — Media-query-free responsive grid — columns auto-fill based on available space.
205
+ - **Center** — Horizontally centered container with a configurable max-width.
206
+ - **Columns** — Equal-width multi-column layout that collapses to single column on narrow viewports.
207
+ - **Cta** — Call-to-action band — quiet hairline-bordered section with title, description, and centered actions. Replace demo content before shipping.
208
+ - **DashboardLayout** — Dashboard page layout with stats strip, main content area, and optional aside.
209
+ - **FeatureGrid** — Feature section — AutoGrid of items with optional title, description, and icon slots. Icons are optional; the grid works text-only. Replace demo content before shipping.
210
+ - **Grid** — CSS grid layout primitive with responsive column collapsing.
211
+ - **Hero** — Page hero section — centered or split layout with eyebrow, title, description, actions and media slots. Replace demo content before shipping.
212
+ - **Indicator** — Positions an overlay element (badge, dot, count) at a corner of its child
213
+ - **Join** — Groups adjacent children into a seamless joined element by removing interior borders and radii
214
+ - **Masonry** — Masonry layout — native CSS masonry where supported, multi-column fallback elsewhere (fallback orders items top-to-bottom per column).
215
+ - **MediaMasonry** — Masonry gallery section — native CSS masonry where supported, multi-column fallback elsewhere (fallback orders tiles top-to-bottom per column). Tiles style themselves; section provides only the layout shell.
216
+ - **PageFooter** — Site footer — AutoGrid of link groups with a brand/meta bottom row. Renders a <footer> element with a <nav aria-label="Footer"> wrapping the link columns.
217
+ - **PageHeader** — Page-level header with title, description, breadcrumb, and actions slots.
218
+ - **Resizable** — Two-pane splitter whose divider can be dragged or keyboard-nudged to reallocate space
219
+ - **ScrollArea** — A scroll container with styled, slim scrollbars and overflow shadows
220
+ - **Section** — Page-section shell with block padding, centered inner width, and stack gap.
221
+ - **SettingsLayout** — Two-column settings page layout with a fixed-width menu and fluid content area.
222
+ - **Spacer** — Fixed-height spacing block using design token steps.
223
+ - **SplitView** — Resizable two-pane split layout with keyboard and pointer drag support.
224
+ - **Stack** — Overlaps children in a CSS grid stack with a configurable offset to create a card-pile effect
225
+ - **Stack** — Flex layout primitive for vertical or horizontal stacking with gap control.
226
+ - **StatsBand** — KPI strip — horizontal band of stats with optional delta and inline sparkline trend. Wraps via AutoGrid on narrow containers. No visible heading; provide aria-label for accessibility.
227
+
228
+ ### Feedback
229
+
230
+ - **InlineLoading** — Compact inline status indicator that pairs a label with a loading, success, or error state
231
+ - **Notification** — Inline, actionable notification banner that surfaces a titled message with an optional recovery action
232
+ - **Progress** — Horizontal bar showing the completion progress of a tracked operation
233
+ - **ProgressBar** — Shows determinate or indeterminate progress of a task
234
+ - **ProgressCircle** — Circular determinate progress indicator rendered as an SVG arc
235
+ - **RadialProgress** — Circular progress indicator using conic-gradient, with percentage label and variant colors
236
+ - **Spinner** — Indeterminate loading indicator
237
+
238
+ ### Charts
239
+
240
+ - **AreaChart** — Area chart with optional stacking, multi-series support, and hover tooltip.
241
+ - **BarChart** — Bar chart with vertical/horizontal orientation, grouped or stacked modes, and multi-series support.
242
+ - **Boxplot** — Box-and-whisker plot with five-number summary and outlier dots per series.
243
+ - **BubbleChart** — Bubble chart mapping x, y, and size dimensions; radius is area-proportional via sqrt scale.
244
+ - **Bullet** — Bullet chart with background range bands, measure bar, and target tick.
245
+ - **ComboChart** — Combination bar + line chart on shared or dual y-axes.
246
+ - **Heatmap** — Two-dimensional heatmap with band scales and color-mix cell interpolation.
247
+ - **Histogram** — Frequency histogram using Freedman–Diaconis binning with hover tooltips.
248
+ - **Kpi** — KPI card showing a primary metric with optional delta indicator, icon, and sparkline.
249
+ - **LineChart** — Time-series or numeric line chart with multi-series support, hover tooltip, and legend.
250
+ - **Meter** — Progress meter in bar or gauge variant with threshold coloring.
251
+ - **PieChart** — Pie or donut chart with hover segments and optional legend.
252
+ - **Radar** — Radar / spider chart with polar grid rings, spokes, and multi-series polygon overlays.
253
+ - **ScatterChart** — Scatter plot with variable point radius, multi-series, and hover tooltip.
254
+ - **Sparkline** — Compact inline sparkline for embedding trend data in dashboards or KPI cards.
255
+ - **Treemap** — Squarified treemap for visualizing part-to-whole hierarchical data.
256
+
257
+ <!-- COMPONENT_INDEX:END -->
@@ -1,2 +0,0 @@
1
- import type { ComponentMeta } from '@cascivo/core';
2
- export declare const allMetas: ComponentMeta[];
@@ -1,16 +0,0 @@
1
- import { type HTMLAttributes, type ReactNode } from 'react';
2
- export interface AccordionProps {
3
- type?: 'single' | 'multiple';
4
- defaultValue?: string | string[];
5
- value?: string | string[];
6
- onValueChange?: (value: string | string[]) => void;
7
- className?: string;
8
- children: ReactNode;
9
- }
10
- export declare function Accordion({ type, defaultValue, value, onValueChange, className, children, }: AccordionProps): import("react").JSX.Element;
11
- export interface AccordionItemProps extends HTMLAttributes<HTMLDivElement> {
12
- value: string;
13
- }
14
- export declare function AccordionItem({ value, className, children, ...props }: AccordionItemProps): import("react").JSX.Element;
15
- export declare function AccordionTrigger(props: HTMLAttributes<HTMLButtonElement>): import("react").JSX.Element;
16
- export declare function AccordionContent(props: HTMLAttributes<HTMLDivElement>): import("react").JSX.Element;
@@ -1,2 +0,0 @@
1
- import type { ComponentMeta } from '@cascivo/core';
2
- export declare const meta: ComponentMeta;
@@ -1,13 +0,0 @@
1
- import type { HTMLAttributes, ReactNode } from 'react';
2
- export interface AlertProps extends Omit<HTMLAttributes<HTMLDivElement>, 'title'> {
3
- variant?: 'default' | 'info' | 'success' | 'warning' | 'destructive';
4
- title?: string;
5
- icon?: ReactNode;
6
- dismissible?: boolean;
7
- onDismiss?: () => void;
8
- action?: {
9
- label: string;
10
- onClick: () => void;
11
- };
12
- }
13
- export declare function Alert({ variant, title, icon, dismissible, onDismiss, action, className, children, ...props }: AlertProps): import("react").JSX.Element | null;
@@ -1,2 +0,0 @@
1
- import type { ComponentMeta } from '@cascivo/core';
2
- export declare const meta: ComponentMeta;
@@ -1,14 +0,0 @@
1
- export interface AlertDialogLabels {
2
- confirm?: string;
3
- cancel?: string;
4
- }
5
- export interface AlertDialogProps {
6
- open: boolean;
7
- title: string;
8
- description: string;
9
- onConfirm: () => void;
10
- onCancel: () => void;
11
- labels?: AlertDialogLabels;
12
- variant?: 'destructive' | 'default';
13
- }
14
- export declare function AlertDialog({ open, title, description, onConfirm, onCancel, labels, variant, }: AlertDialogProps): import("react").JSX.Element;
@@ -1,2 +0,0 @@
1
- import type { ComponentMeta } from '@cascivo/core';
2
- export declare const meta: ComponentMeta;
@@ -1,7 +0,0 @@
1
- import type { HTMLAttributes, ReactNode } from 'react';
2
- export interface AspectRatioProps extends HTMLAttributes<HTMLDivElement> {
3
- /** Width-to-height ratio (e.g. 16 / 9). Defaults to 16/9. */
4
- ratio?: number;
5
- children?: ReactNode;
6
- }
7
- export declare function AspectRatio({ ratio, className, style, children, ...props }: AspectRatioProps): import("react").JSX.Element;
@@ -1,2 +0,0 @@
1
- import type { ComponentMeta } from '@cascivo/core';
2
- export declare const meta: ComponentMeta;
@@ -1,9 +0,0 @@
1
- import type { HTMLAttributes } from 'react';
2
- export interface AvatarProps extends HTMLAttributes<HTMLSpanElement> {
3
- src?: string;
4
- alt?: string;
5
- fallback?: string;
6
- size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
7
- status?: 'online' | 'offline' | 'busy';
8
- }
9
- export declare function Avatar({ src, alt, fallback, size, status, className, ...props }: AvatarProps): import("react").JSX.Element;
@@ -1,2 +0,0 @@
1
- import type { ComponentMeta } from '@cascivo/core';
2
- export declare const meta: ComponentMeta;
@@ -1,6 +0,0 @@
1
- import type { HTMLAttributes } from 'react';
2
- export interface BadgeProps extends HTMLAttributes<HTMLSpanElement> {
3
- variant?: 'default' | 'secondary' | 'success' | 'warning' | 'destructive' | 'outline';
4
- size?: 'sm' | 'md';
5
- }
6
- export declare function Badge({ variant, size, className, children, ...props }: BadgeProps): import("react").JSX.Element;
@@ -1,2 +0,0 @@
1
- import type { ComponentMeta } from '@cascivo/core';
2
- export declare const meta: ComponentMeta;
@@ -1,5 +0,0 @@
1
- import type { HTMLAttributes } from 'react';
2
- export interface BlockquoteProps extends HTMLAttributes<HTMLQuoteElement> {
3
- cite?: string;
4
- }
5
- export declare function Blockquote({ cite, className, children, ...props }: BlockquoteProps): import("react").JSX.Element;
@@ -1,2 +0,0 @@
1
- import type { ComponentMeta } from '@cascivo/core';
2
- export declare const meta: ComponentMeta;
@@ -1 +0,0 @@
1
- export declare function AppShell(): import("react").JSX.Element;
@@ -1,2 +0,0 @@
1
- import type { BlockMeta } from '../types';
2
- export declare const meta: BlockMeta;
@@ -1 +0,0 @@
1
- export declare function AuthLogin(): import("react").JSX.Element;
@@ -1,2 +0,0 @@
1
- import type { BlockMeta } from '../types';
2
- export declare const meta: BlockMeta;
@@ -1 +0,0 @@
1
- export declare function AuthSignup(): import("react").JSX.Element;
@@ -1,2 +0,0 @@
1
- import type { BlockMeta } from '../types';
2
- export declare const meta: BlockMeta;
@@ -1 +0,0 @@
1
- export declare function DashboardOverview(): import("react").JSX.Element;
@@ -1,2 +0,0 @@
1
- import type { BlockMeta } from '../types';
2
- export declare const meta: BlockMeta;
@@ -1,2 +0,0 @@
1
- import type React from 'react';
2
- export declare function DashboardTable(): React.JSX.Element;
@@ -1,2 +0,0 @@
1
- import type { BlockMeta } from '../types';
2
- export declare const meta: BlockMeta;
@@ -1 +0,0 @@
1
- export declare function MarketingFeatures(): import("react").JSX.Element;
@@ -1,2 +0,0 @@
1
- import type { BlockMeta } from '../types';
2
- export declare const meta: BlockMeta;
@@ -1 +0,0 @@
1
- export declare function MarketingHero(): import("react").JSX.Element;
@@ -1,2 +0,0 @@
1
- import type { BlockMeta } from '../types';
2
- export declare const meta: BlockMeta;
@@ -1 +0,0 @@
1
- export declare function SettingsProfile(): import("react").JSX.Element;
@@ -1,2 +0,0 @@
1
- import type { BlockMeta } from '../types';
2
- export declare const meta: BlockMeta;
@@ -1,12 +0,0 @@
1
- export type BlockCategory = 'auth' | 'dashboard' | 'marketing' | 'shell';
2
- export type BlockMeta = {
3
- name: string;
4
- displayName: string;
5
- description: string;
6
- category: BlockCategory;
7
- tags: string[];
8
- screenshot: {
9
- light: string;
10
- dark: string;
11
- };
12
- };
@@ -1,12 +0,0 @@
1
- export interface BreadcrumbItem {
2
- label: string;
3
- href?: string;
4
- }
5
- export interface BreadcrumbProps {
6
- items: BreadcrumbItem[];
7
- maxVisible?: number;
8
- className?: string;
9
- /** Accessible label for the nav landmark */
10
- ariaLabel?: string;
11
- }
12
- export declare function Breadcrumb({ items, maxVisible, className, ariaLabel }: BreadcrumbProps): import("react").JSX.Element;
@@ -1,2 +0,0 @@
1
- import type { ComponentMeta } from '@cascivo/core';
2
- export declare const meta: ComponentMeta;
@@ -1,7 +0,0 @@
1
- import type { ButtonHTMLAttributes } from 'react';
2
- export interface ButtonProps extends ButtonHTMLAttributes<HTMLButtonElement> {
3
- variant?: 'primary' | 'secondary' | 'ghost' | 'destructive';
4
- size?: 'sm' | 'md' | 'lg';
5
- loading?: boolean;
6
- }
7
- export declare function Button({ variant, size, loading, className, disabled, children, ...props }: ButtonProps): import("react").JSX.Element;
@@ -1,2 +0,0 @@
1
- import type { ComponentMeta } from '@cascivo/core';
2
- export declare const meta: ComponentMeta;
@@ -1,9 +0,0 @@
1
- import { type HTMLAttributes } from 'react';
2
- export interface ButtonGroupProps extends HTMLAttributes<HTMLDivElement> {
3
- orientation?: 'horizontal' | 'vertical';
4
- size?: 'sm' | 'md' | 'lg';
5
- /** Enable arrow-key roving focus across the group's focusable buttons. */
6
- roving?: boolean;
7
- loop?: boolean;
8
- }
9
- export declare const ButtonGroup: import("react").ForwardRefExoticComponent<ButtonGroupProps & import("react").RefAttributes<HTMLDivElement>>;
@@ -1,2 +0,0 @@
1
- import type { ComponentMeta } from '@cascivo/core';
2
- export declare const meta: ComponentMeta;
@@ -1,35 +0,0 @@
1
- export interface CalendarLabels {
2
- previousMonth?: string;
3
- nextMonth?: string;
4
- }
5
- export interface CalendarProps {
6
- value?: Date | null;
7
- defaultValue?: Date;
8
- onValueChange?: (date: Date) => void;
9
- min?: Date;
10
- max?: Date;
11
- disabled?: (date: Date) => boolean;
12
- locale?: string;
13
- size?: 'sm' | 'md' | 'lg';
14
- labels?: CalendarLabels;
15
- className?: string;
16
- /** Highlight predicate for range previews (date-range-picker). */
17
- isInRange?: (date: Date) => boolean;
18
- /** Range endpoint markers for styling. */
19
- isRangeStart?: (date: Date) => boolean;
20
- isRangeEnd?: (date: Date) => boolean;
21
- /** Hover handler for range preview. */
22
- onDayHover?: (date: Date | null) => void;
23
- /** Controlled view month (0-11). When set, the calendar's displayed month is owned by the parent. */
24
- month?: number;
25
- /** Controlled view year. */
26
- year?: number;
27
- /** Called when the user navigates months (prev/next or keyboard). */
28
- onViewChange?: (view: {
29
- month: number;
30
- year: number;
31
- }) => void;
32
- /** Hide the prev/next header nav (parent drives navigation). */
33
- hideNav?: boolean;
34
- }
35
- export declare function Calendar({ value, defaultValue, onValueChange, min, max, disabled, locale: localeProp, size, labels, className, isInRange, isRangeStart, isRangeEnd, onDayHover, month, year, onViewChange, hideNav, }: CalendarProps): import("react").JSX.Element;
@@ -1,2 +0,0 @@
1
- import type { ComponentMeta } from '@cascivo/core';
2
- export declare const meta: ComponentMeta;
@@ -1,18 +0,0 @@
1
- import type { HTMLAttributes } from 'react';
2
- export interface CardProps extends HTMLAttributes<HTMLDivElement> {
3
- variant?: 'default' | 'outlined' | 'elevated';
4
- padding?: 'none' | 'sm' | 'md' | 'lg';
5
- }
6
- export declare function Card({ variant, padding, className, children, ...props }: CardProps): import("react").JSX.Element;
7
- export interface CardHeaderProps extends HTMLAttributes<HTMLDivElement> {
8
- }
9
- export declare function CardHeader({ className, children, ...props }: CardHeaderProps): import("react").JSX.Element;
10
- export interface CardTitleProps extends HTMLAttributes<HTMLHeadingElement> {
11
- }
12
- export declare function CardTitle({ className, children, ...props }: CardTitleProps): import("react").JSX.Element;
13
- export interface CardContentProps extends HTMLAttributes<HTMLDivElement> {
14
- }
15
- export declare function CardContent({ className, children, ...props }: CardContentProps): import("react").JSX.Element;
16
- export interface CardFooterProps extends HTMLAttributes<HTMLDivElement> {
17
- }
18
- export declare function CardFooter({ className, children, ...props }: CardFooterProps): import("react").JSX.Element;
@@ -1,2 +0,0 @@
1
- import type { ComponentMeta } from '@cascivo/core';
2
- export declare const meta: ComponentMeta;
@@ -1,17 +0,0 @@
1
- import { type ReactNode } from 'react';
2
- export interface CarouselLabels {
3
- region?: string;
4
- previous?: string;
5
- next?: string;
6
- }
7
- export interface CarouselProps {
8
- children?: ReactNode;
9
- slides?: ReactNode[];
10
- index?: number;
11
- defaultIndex?: number;
12
- onIndexChange?: (index: number) => void;
13
- loop?: boolean;
14
- className?: string;
15
- labels?: CarouselLabels;
16
- }
17
- export declare function Carousel({ children, slides, index, defaultIndex, onIndexChange, loop, className, labels, }: CarouselProps): import("react").JSX.Element;
@@ -1,2 +0,0 @@
1
- import type { ComponentMeta } from '@cascivo/core';
2
- export declare const meta: ComponentMeta;