shivanya-sdk 0.1.0 → 0.1.1

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 (285) hide show
  1. package/package.json +28 -29
  2. package/packages/ai/README.md +66 -0
  3. package/packages/core/README.md +57 -0
  4. package/packages/shell/README.md +8 -32
  5. package/packages/shell/package.json +5 -6
  6. package/packages/shell/scripts/copy-assets.mjs +14 -0
  7. package/packages/shell/src/components/ShellHeader.tsx +2 -0
  8. package/packages/shell/src/components/ShellMobileNav.tsx +2 -0
  9. package/packages/shell/src/context/ShellProvider.tsx +2 -0
  10. package/packages/shell/src/hooks/useBreakpoint.ts +2 -0
  11. package/packages/shell/src/hooks/useShell.ts +2 -0
  12. package/packages/shell/src/hooks/useSidebar.ts +2 -0
  13. package/packages/shell/src/layouts/DashboardShell.tsx +2 -0
  14. package/packages/shell/src/styles/shell.css +6 -31
  15. package/packages/ui/README.md +0 -12
  16. package/packages/ui/package.json +4 -6
  17. package/packages/ui/scripts/copy-assets.mjs +61 -0
  18. package/packages/ui/scripts/generate-icons.mjs +45 -0
  19. package/packages/ui/src/components/charts/BarChart/components/Bar.tsx +2 -0
  20. package/packages/ui/src/components/charts/BarChart/hooks/useResizeObserver.ts +2 -0
  21. package/packages/ui/src/components/charts/BarChart/hooks/useTooltip.ts +2 -0
  22. package/packages/ui/src/components/data-display/Accordion/Accordion.tsx +2 -0
  23. package/packages/ui/src/components/data-display/AnimatedNumber/AnimatedNumber.tsx +2 -1
  24. package/packages/ui/src/components/data-display/Avatar/Avatar.tsx +2 -0
  25. package/packages/ui/src/components/data-display/Calendar/Calendar.tsx +2 -1
  26. package/packages/ui/src/components/data-display/Chip/Chip.tsx +2 -0
  27. package/packages/ui/src/components/data-display/DataGrid/DataGrid.tsx +3 -1
  28. package/packages/ui/src/components/data-display/List/List.tsx +2 -0
  29. package/packages/ui/src/components/data-display/TreeView/TreeView.tsx +2 -1
  30. package/packages/ui/src/components/feedback/Alert/Alert.tsx +2 -1
  31. package/packages/ui/src/components/feedback/ConfirmDialog/ConfirmDialog.tsx +2 -0
  32. package/packages/ui/src/components/feedback/Dialog/Dialog.tsx +2 -1
  33. package/packages/ui/src/components/feedback/Modal/Modal.tsx +2 -0
  34. package/packages/ui/src/components/feedback/Notification/Notification.tsx +2 -1
  35. package/packages/ui/src/components/feedback/Popover/Popover.tsx +2 -0
  36. package/packages/ui/src/components/feedback/Toast/Toast.tsx +2 -1
  37. package/packages/ui/src/components/forms/Autocomplete/Autocomplete.tsx +3 -1
  38. package/packages/ui/src/components/forms/DatePicker/DatePicker.tsx +2 -0
  39. package/packages/ui/src/components/forms/DateRangePicker/DateRangePicker.tsx +2 -1
  40. package/packages/ui/src/components/forms/FileUpload/FileUpload.tsx +2 -0
  41. package/packages/ui/src/components/forms/NumberInput/NumberInput.tsx +2 -1
  42. package/packages/ui/src/components/forms/OtpInput/OtpInput.tsx +2 -1
  43. package/packages/ui/src/components/forms/PasswordInput/PasswordInput.tsx +2 -1
  44. package/packages/ui/src/components/forms/Select/Select.tsx +2 -0
  45. package/packages/ui/src/components/forms/Textarea/Textarea.tsx +2 -1
  46. package/packages/ui/src/components/foundation/Link/Link.tsx +2 -0
  47. package/packages/ui/src/components/media/Carousel/Carousel.tsx +2 -0
  48. package/packages/ui/src/components/media/ImageCropper/ImageCropper.tsx +2 -0
  49. package/packages/ui/src/components/media/ImageCropper/ImageCropperModal.tsx +2 -1
  50. package/packages/ui/src/components/media/ImageCropper/hooks.ts +2 -0
  51. package/packages/ui/src/components/navigation/menu/MenuItem.tsx +49 -2
  52. package/packages/ui/src/components/navigation/navbar/NavbarItem.tsx +53 -2
  53. package/packages/ui/src/components/navigation/pagination/Pagination.tsx +2 -0
  54. package/packages/ui/src/components/navigation/pagination/PaginationItem.tsx +41 -1
  55. package/packages/ui/src/components/navigation/sidebar/SidebarItem.tsx +53 -2
  56. package/packages/ui/src/components/navigation/stepper/Step.tsx +2 -0
  57. package/packages/ui/src/components/navigation/stepper/Stepper.tsx +2 -1
  58. package/packages/ui/src/components/navigation/tabs/Tab.tsx +45 -1
  59. package/packages/ui/src/components/navigation/tabs/Tabs.tsx +2 -1
  60. package/packages/ui/src/components/overlays/CommandPalette/CommandPalette.tsx +85 -89
  61. package/packages/ui/src/components/overlays/ContextMenu/ContextMenu.tsx +69 -70
  62. package/packages/ui/src/components/overlays/Drawer/Drawer.tsx +2 -0
  63. package/packages/ui/src/components/overlays/Sheet/Sheet.tsx +81 -92
  64. package/packages/ui/src/components/utilities/ClickAwayListener/ClickAwayListener.tsx +2 -0
  65. package/packages/ui/src/components/utilities/CopyButton/CopyButton.tsx +2 -1
  66. package/packages/ui/src/components/utilities/FocusTrap/FocusTrap.tsx +2 -0
  67. package/packages/ui/src/components/utilities/Portal/Portal.tsx +2 -0
  68. package/packages/ui/src/icons/icons/AccessibilityIcon.tsx +13 -0
  69. package/packages/ui/src/icons/icons/ActiveUsersIcon.tsx +12 -0
  70. package/packages/ui/src/icons/icons/ActivityIcon.tsx +12 -0
  71. package/packages/ui/src/icons/icons/AlertCircleIcon.tsx +10 -0
  72. package/packages/ui/src/icons/icons/AnalyticsIcon.tsx +14 -0
  73. package/packages/ui/src/icons/icons/AppsIcon.tsx +13 -0
  74. package/packages/ui/src/icons/icons/ArchiveIcon.tsx +16 -0
  75. package/packages/ui/src/icons/icons/ArrowDownIcon.tsx +10 -0
  76. package/packages/ui/src/icons/icons/ArrowLeftIcon.tsx +10 -0
  77. package/packages/ui/src/icons/icons/ArrowRightIcon.tsx +11 -0
  78. package/packages/ui/src/icons/icons/ArrowUpIcon.tsx +10 -0
  79. package/packages/ui/src/icons/icons/ArrowUpRightIcon.tsx +10 -0
  80. package/packages/ui/src/icons/icons/AspectRatioIcon.tsx +14 -0
  81. package/packages/ui/src/icons/icons/BadgeIcon.tsx +11 -0
  82. package/packages/ui/src/icons/icons/BeakerIcon.tsx +16 -0
  83. package/packages/ui/src/icons/icons/BellIcon.tsx +11 -0
  84. package/packages/ui/src/icons/icons/BoltIcon.tsx +10 -0
  85. package/packages/ui/src/icons/icons/BoxIcon.tsx +12 -0
  86. package/packages/ui/src/icons/icons/BuildingIcon.tsx +56 -0
  87. package/packages/ui/src/icons/icons/CalendarIcon.tsx +19 -0
  88. package/packages/ui/src/icons/icons/CalendarRangeIcon.tsx +15 -0
  89. package/packages/ui/src/icons/icons/CardIcon.tsx +11 -0
  90. package/packages/ui/src/icons/icons/CarouselIcon.tsx +12 -0
  91. package/packages/ui/src/icons/icons/ChartBarIcon.tsx +13 -0
  92. package/packages/ui/src/icons/icons/ChartPieIcon.tsx +16 -0
  93. package/packages/ui/src/icons/icons/CheckCircleIcon.tsx +10 -0
  94. package/packages/ui/src/icons/icons/CheckIcon.tsx +10 -0
  95. package/packages/ui/src/icons/icons/ChevronDownIcon.tsx +10 -0
  96. package/packages/ui/src/icons/icons/ChevronLeftIcon.tsx +10 -0
  97. package/packages/ui/src/icons/icons/ChevronRightIcon.tsx +10 -0
  98. package/packages/ui/src/icons/icons/ChevronUpIcon.tsx +10 -0
  99. package/packages/ui/src/icons/icons/ChipIcon.tsx +16 -0
  100. package/packages/ui/src/icons/icons/ClipboardIcon.tsx +12 -0
  101. package/packages/ui/src/icons/icons/ClockIcon.tsx +11 -0
  102. package/packages/ui/src/icons/icons/CloudSyncIcon.tsx +13 -0
  103. package/packages/ui/src/icons/icons/CodeIcon.tsx +10 -0
  104. package/packages/ui/src/icons/icons/CommandPaletteIcon.tsx +13 -0
  105. package/packages/ui/src/icons/icons/CompassIcon.tsx +11 -0
  106. package/packages/ui/src/icons/icons/ContainerIcon.tsx +12 -0
  107. package/packages/ui/src/icons/icons/ContextMenuIcon.tsx +12 -0
  108. package/packages/ui/src/icons/icons/ContrastIcon.tsx +11 -0
  109. package/packages/ui/src/icons/icons/CopyIcon.tsx +11 -0
  110. package/packages/ui/src/icons/icons/CpuIcon.tsx +19 -0
  111. package/packages/ui/src/icons/icons/CropIcon.tsx +22 -0
  112. package/packages/ui/src/icons/icons/CubeIcon.tsx +12 -0
  113. package/packages/ui/src/icons/icons/CursorClickIcon.tsx +14 -0
  114. package/packages/ui/src/icons/icons/CursorIcon.tsx +10 -0
  115. package/packages/ui/src/icons/icons/DashboardIcon.tsx +48 -0
  116. package/packages/ui/src/icons/icons/DataGridIcon.tsx +14 -0
  117. package/packages/ui/src/icons/icons/DeleteIcon.tsx +14 -0
  118. package/packages/ui/src/icons/icons/DeviceMobileIcon.tsx +29 -0
  119. package/packages/ui/src/icons/icons/DialogIcon.tsx +12 -0
  120. package/packages/ui/src/icons/icons/DiskIoIcon.tsx +15 -0
  121. package/packages/ui/src/icons/icons/DiskUsageIcon.tsx +15 -0
  122. package/packages/ui/src/icons/icons/DonutIcon.tsx +23 -0
  123. package/packages/ui/src/icons/icons/DownloadIcon.tsx +10 -0
  124. package/packages/ui/src/icons/icons/DrawerIcon.tsx +12 -0
  125. package/packages/ui/src/icons/icons/ERPIcon.tsx +18 -0
  126. package/packages/ui/src/icons/icons/EditIcon.tsx +11 -0
  127. package/packages/ui/src/icons/icons/EmptyStateIcon.tsx +12 -0
  128. package/packages/ui/src/icons/icons/ErrorIcon.tsx +12 -0
  129. package/packages/ui/src/icons/icons/ExpandIcon.tsx +23 -0
  130. package/packages/ui/src/icons/icons/ExpensesIcon.tsx +16 -0
  131. package/packages/ui/src/icons/icons/EyeIcon.tsx +15 -0
  132. package/packages/ui/src/icons/icons/EyeOffIcon.tsx +13 -0
  133. package/packages/ui/src/icons/icons/FavoriteIcon.tsx +10 -0
  134. package/packages/ui/src/icons/icons/FileTextIcon.tsx +14 -0
  135. package/packages/ui/src/icons/icons/FilterIcon.tsx +10 -0
  136. package/packages/ui/src/icons/icons/FlexIcon.tsx +12 -0
  137. package/packages/ui/src/icons/icons/FocusIcon.tsx +14 -0
  138. package/packages/ui/src/icons/icons/FolderIcon.tsx +10 -0
  139. package/packages/ui/src/icons/icons/FolderOpenIcon.tsx +10 -0
  140. package/packages/ui/src/icons/icons/FoundationIcon.tsx +23 -0
  141. package/packages/ui/src/icons/icons/GlobeIcon.tsx +24 -0
  142. package/packages/ui/src/icons/icons/GoalIcon.tsx +12 -0
  143. package/packages/ui/src/icons/icons/GridIcon.tsx +13 -0
  144. package/packages/ui/src/icons/icons/HashIcon.tsx +16 -0
  145. package/packages/ui/src/icons/icons/HelpIcon.tsx +12 -0
  146. package/packages/ui/src/icons/icons/HistoryIcon.tsx +12 -0
  147. package/packages/ui/src/icons/icons/HomeIcon.tsx +14 -0
  148. package/packages/ui/src/icons/icons/ImageIcon.tsx +12 -0
  149. package/packages/ui/src/icons/icons/ImagesIcon.tsx +36 -0
  150. package/packages/ui/src/icons/icons/InfoCircleIcon.tsx +10 -0
  151. package/packages/ui/src/icons/icons/ItemsIcon.tsx +13 -0
  152. package/packages/ui/src/icons/icons/KeyIcon.tsx +23 -0
  153. package/packages/ui/src/icons/icons/KeyboardIcon.tsx +18 -0
  154. package/packages/ui/src/icons/icons/LayersIcon.tsx +12 -0
  155. package/packages/ui/src/icons/icons/LayoutIcon.tsx +25 -0
  156. package/packages/ui/src/icons/icons/LinkIcon.tsx +12 -0
  157. package/packages/ui/src/icons/icons/ListIcon.tsx +16 -0
  158. package/packages/ui/src/icons/icons/ListsIcon.tsx +15 -0
  159. package/packages/ui/src/icons/icons/LiveVisitorsIcon.tsx +13 -0
  160. package/packages/ui/src/icons/icons/LoadAverageIcon.tsx +11 -0
  161. package/packages/ui/src/icons/icons/LoaderIcon.tsx +17 -0
  162. package/packages/ui/src/icons/icons/LockIcon.tsx +17 -0
  163. package/packages/ui/src/icons/icons/LoginIcon.tsx +12 -0
  164. package/packages/ui/src/icons/icons/LogoIcon.tsx +18 -0
  165. package/packages/ui/src/icons/icons/LogoutIcon.tsx +12 -0
  166. package/packages/ui/src/icons/icons/LogsIcon.tsx +24 -0
  167. package/packages/ui/src/icons/icons/MailIcon.tsx +17 -0
  168. package/packages/ui/src/icons/icons/MapPinIcon.tsx +16 -0
  169. package/packages/ui/src/icons/icons/MemoryIcon.tsx +18 -0
  170. package/packages/ui/src/icons/icons/MenuIcon.tsx +12 -0
  171. package/packages/ui/src/icons/icons/MessagesIcon.tsx +12 -0
  172. package/packages/ui/src/icons/icons/MinusIcon.tsx +10 -0
  173. package/packages/ui/src/icons/icons/ModalIcon.tsx +11 -0
  174. package/packages/ui/src/icons/icons/MonitorIcon.tsx +20 -0
  175. package/packages/ui/src/icons/icons/MoonIcon.tsx +16 -0
  176. package/packages/ui/src/icons/icons/MoreVerticalIcon.tsx +12 -0
  177. package/packages/ui/src/icons/icons/MousePointerClickIcon.tsx +13 -0
  178. package/packages/ui/src/icons/icons/MousePointerIcon.tsx +16 -0
  179. package/packages/ui/src/icons/icons/NavbarIcon.tsx +42 -0
  180. package/packages/ui/src/icons/icons/NetProfitIcon.tsx +14 -0
  181. package/packages/ui/src/icons/icons/NetworkIcon.tsx +44 -0
  182. package/packages/ui/src/icons/icons/NewOrdersIcon.tsx +15 -0
  183. package/packages/ui/src/icons/icons/NotesIcon.tsx +13 -0
  184. package/packages/ui/src/icons/icons/NotificationIcon.tsx +11 -0
  185. package/packages/ui/src/icons/icons/NumberIcon.tsx +13 -0
  186. package/packages/ui/src/icons/icons/OrdersIcon.tsx +14 -0
  187. package/packages/ui/src/icons/icons/PaginationIcon.tsx +12 -0
  188. package/packages/ui/src/icons/icons/PanelBottomIcon.tsx +24 -0
  189. package/packages/ui/src/icons/icons/PanelLeftIcon.tsx +24 -0
  190. package/packages/ui/src/icons/icons/PanelRightIcon.tsx +24 -0
  191. package/packages/ui/src/icons/icons/PanelTopIcon.tsx +24 -0
  192. package/packages/ui/src/icons/icons/PartnerIcon.tsx +14 -0
  193. package/packages/ui/src/icons/icons/PendingUpdatesIcon.tsx +13 -0
  194. package/packages/ui/src/icons/icons/PlusIcon.tsx +11 -0
  195. package/packages/ui/src/icons/icons/PopoverIcon.tsx +11 -0
  196. package/packages/ui/src/icons/icons/ProcessesIcon.tsx +17 -0
  197. package/packages/ui/src/icons/icons/PulseIcon.tsx +10 -0
  198. package/packages/ui/src/icons/icons/QuestionMarkCircleIcon.tsx +29 -0
  199. package/packages/ui/src/icons/icons/RadioIcon.tsx +11 -0
  200. package/packages/ui/src/icons/icons/RamIcon.tsx +21 -0
  201. package/packages/ui/src/icons/icons/RefreshIcon.tsx +12 -0
  202. package/packages/ui/src/icons/icons/ReminderIcon.tsx +11 -0
  203. package/packages/ui/src/icons/icons/ReportsIcon.tsx +13 -0
  204. package/packages/ui/src/icons/icons/RestoreIcon.tsx +11 -0
  205. package/packages/ui/src/icons/icons/RevenueIcon.tsx +12 -0
  206. package/packages/ui/src/icons/icons/ScreenReaderIcon.tsx +19 -0
  207. package/packages/ui/src/icons/icons/ScrollIcon.tsx +11 -0
  208. package/packages/ui/src/icons/icons/SearchIcon.tsx +11 -0
  209. package/packages/ui/src/icons/icons/SendIcon.tsx +10 -0
  210. package/packages/ui/src/icons/icons/ServerIcon.tsx +40 -0
  211. package/packages/ui/src/icons/icons/ServerUsersIcon.tsx +15 -0
  212. package/packages/ui/src/icons/icons/SettingsIcon.tsx +24 -0
  213. package/packages/ui/src/icons/icons/ShareIcon.tsx +10 -0
  214. package/packages/ui/src/icons/icons/ShieldCheckIcon.tsx +11 -0
  215. package/packages/ui/src/icons/icons/ShivanyaLogoIcon.tsx +10 -0
  216. package/packages/ui/src/icons/icons/SidebarIcon.tsx +11 -0
  217. package/packages/ui/src/icons/icons/SmartphoneIcon.tsx +12 -0
  218. package/packages/ui/src/icons/icons/SortIcon.tsx +10 -0
  219. package/packages/ui/src/icons/icons/SpacerIcon.tsx +12 -0
  220. package/packages/ui/src/icons/icons/SparklesIcon.tsx +14 -0
  221. package/packages/ui/src/icons/icons/SquareIcon.tsx +17 -0
  222. package/packages/ui/src/icons/icons/StackIcon.tsx +12 -0
  223. package/packages/ui/src/icons/icons/StepperIcon.tsx +14 -0
  224. package/packages/ui/src/icons/icons/StocksIcon.tsx +18 -0
  225. package/packages/ui/src/icons/icons/SunIcon.tsx +22 -0
  226. package/packages/ui/src/icons/icons/SwitchIcon.tsx +11 -0
  227. package/packages/ui/src/icons/icons/TableIcon.tsx +13 -0
  228. package/packages/ui/src/icons/icons/TabsIcon.tsx +14 -0
  229. package/packages/ui/src/icons/icons/TagIcon.tsx +11 -0
  230. package/packages/ui/src/icons/icons/TagsIcon.tsx +12 -0
  231. package/packages/ui/src/icons/icons/TasksIcon.tsx +13 -0
  232. package/packages/ui/src/icons/icons/ThemeIcon.tsx +10 -0
  233. package/packages/ui/src/icons/icons/TimelineIcon.tsx +12 -0
  234. package/packages/ui/src/icons/icons/ToastIcon.tsx +12 -0
  235. package/packages/ui/src/icons/icons/ToggleIcon.tsx +24 -0
  236. package/packages/ui/src/icons/icons/ToolsIcon.tsx +12 -0
  237. package/packages/ui/src/icons/icons/TooltipIcon.tsx +12 -0
  238. package/packages/ui/src/icons/icons/TrafficIcon.tsx +13 -0
  239. package/packages/ui/src/icons/icons/TransactionsIcon.tsx +13 -0
  240. package/packages/ui/src/icons/icons/TreeViewIcon.tsx +16 -0
  241. package/packages/ui/src/icons/icons/TrendingDownIcon.tsx +11 -0
  242. package/packages/ui/src/icons/icons/TrendingUpIcon.tsx +11 -0
  243. package/packages/ui/src/icons/icons/TypeIcon.tsx +16 -0
  244. package/packages/ui/src/icons/icons/TypographyIcon.tsx +16 -0
  245. package/packages/ui/src/icons/icons/UnlockIcon.tsx +18 -0
  246. package/packages/ui/src/icons/icons/UploadIcon.tsx +12 -0
  247. package/packages/ui/src/icons/icons/UserCheckIcon.tsx +12 -0
  248. package/packages/ui/src/icons/icons/UserIcon.tsx +11 -0
  249. package/packages/ui/src/icons/icons/UserMinusIcon.tsx +10 -0
  250. package/packages/ui/src/icons/icons/UserPlusIcon.tsx +10 -0
  251. package/packages/ui/src/icons/icons/UserXIcon.tsx +10 -0
  252. package/packages/ui/src/icons/icons/UsersIcon.tsx +20 -0
  253. package/packages/ui/src/icons/icons/VaultIcon.tsx +16 -0
  254. package/packages/ui/src/icons/icons/VideoIcon.tsx +12 -0
  255. package/packages/ui/src/icons/icons/WalletIcon.tsx +22 -0
  256. package/packages/ui/src/icons/icons/WifiIcon.tsx +22 -0
  257. package/packages/ui/src/icons/icons/WindowIcon.tsx +15 -0
  258. package/packages/ui/src/icons/icons/WrenchIcon.tsx +10 -0
  259. package/packages/ui/src/icons/icons/XCircleIcon.tsx +10 -0
  260. package/packages/ui/src/icons/icons/index.ts +193 -0
  261. package/packages/ui/src/icons/index.ts +1 -3
  262. package/packages/ui/src/index.ts +3 -0
  263. package/packages/ui/src/styles.d.ts +1 -0
  264. package/playground/README.md +0 -6
  265. package/playground/src/App.tsx +8 -0
  266. package/playground/src/config/component-icons.ts +573 -0
  267. package/playground/src/demos/shell/Layouts/AppShellDemo.tsx +16 -19
  268. package/playground/src/demos/shell/Layouts/BlankShellDemo.tsx +38 -5
  269. package/playground/src/demos/shell/Layouts/CenteredShellDemo.tsx +42 -6
  270. package/playground/src/demos/shell/Layouts/DashboardShellDemo.tsx +35 -30
  271. package/playground/src/demos/shell/Layouts/WebsiteShellDemo.tsx +47 -6
  272. package/playground/src/demos/shell/previews/AppShellPreview.tsx +28 -0
  273. package/playground/src/demos/shell/previews/BlankShellPreview.tsx +17 -0
  274. package/playground/src/demos/shell/previews/CenteredShellPreview.tsx +19 -0
  275. package/playground/src/demos/shell/previews/DashboardShellPreview.tsx +30 -0
  276. package/playground/src/demos/shell/previews/WebsiteShellPreview.tsx +22 -0
  277. package/playground/src/demos/ui/icons/IconsDemo.tsx +28 -0
  278. package/playground/src/demos/ui/icons/icons-demo.css +845 -0
  279. package/playground/src/discovery/previewDiscovery.ts +50 -0
  280. package/playground/src/discovery/sdkDiscovery.ts +121 -22
  281. package/playground/src/index.css +96 -0
  282. package/playground/src/pages/CategoryPage.tsx +116 -15
  283. package/playground/src/pages/ComponentPage.tsx +37 -1
  284. package/playground/src/pages/PackagePage.tsx +125 -13
  285. package/pnpm-workspace.yaml +1 -1
package/package.json CHANGED
@@ -1,30 +1,29 @@
1
- {
2
- "name": "shivanya-sdk",
3
- "version": "0.1.0",
4
- "description": "Shivanya SDK monorepo",
5
- "scripts": {
6
- "build": "pnpm -r build"
7
- },
8
- "repository": {
9
- "type": "git",
10
- "url": "git+https://github.com/adityathute/shivanya-sdk.git"
11
- },
12
- "keywords": [
13
- "shivanya",
14
- "shivanya-sdk",
15
- "sdk",
16
- "typescript",
17
- "react",
18
- "react-components",
19
- "frontend",
20
- "ui",
21
- "shell",
22
- "authentication",
23
- "analytics",
24
- "developer-tools",
25
- "open-source"
26
- ],
27
- "author": "Aditya Thute",
28
- "license": "ISC",
29
- "packageManager": "pnpm@11.9.0"
1
+ {
2
+ "name": "shivanya-sdk",
3
+ "version": "0.1.1",
4
+ "description": "Shivanya SDK monorepo",
5
+ "repository": {
6
+ "type": "git",
7
+ "url": "git+https://github.com/adityathute/shivanya-sdk.git"
8
+ },
9
+ "keywords": [
10
+ "shivanya",
11
+ "shivanya-sdk",
12
+ "sdk",
13
+ "typescript",
14
+ "react",
15
+ "react-components",
16
+ "frontend",
17
+ "ui",
18
+ "shell",
19
+ "authentication",
20
+ "analytics",
21
+ "developer-tools",
22
+ "open-source"
23
+ ],
24
+ "author": "Aditya Thute",
25
+ "license": "ISC",
26
+ "scripts": {
27
+ "build": "pnpm -r build"
28
+ }
30
29
  }
@@ -0,0 +1,66 @@
1
+ # shivanya-ai
2
+
3
+ AI client for the Shivanya platform.
4
+
5
+ ## Installation
6
+
7
+ ```bash
8
+ npm install shivanya-ai
9
+ ```
10
+
11
+ ## Usage
12
+
13
+ ```ts
14
+ import { ShivanyaAI } from "shivanya-ai";
15
+ import { ShivanyaClient } from "shivanya-core";
16
+
17
+ const client = new ShivanyaClient({
18
+ baseURL: "https://api.shivanyams.com",
19
+ });
20
+
21
+ const ai = new ShivanyaAI(client);
22
+
23
+ const response = await ai.chat({
24
+ message: "Hello",
25
+ });
26
+ ```
27
+
28
+ ## Dependency
29
+
30
+ `shivanya-ai` uses `shivanya-core` as a package dependency.
31
+
32
+ ## Development
33
+
34
+ This package is developed inside the Shivanya SDK pnpm workspace.
35
+
36
+ From the SDK root:
37
+
38
+ ```bash
39
+ pnpm install
40
+ ```
41
+
42
+ Build the package:
43
+
44
+ ```bash
45
+ pnpm --filter shivanya-ai build
46
+ ```
47
+
48
+ ## Package Structure
49
+
50
+ ```text
51
+ packages/ai/
52
+ ├── src/
53
+ │ ├── ai.ts
54
+ │ ├── types.ts
55
+ │ └── index.ts
56
+ ├── package.json
57
+ └── tsconfig.json
58
+ ```
59
+
60
+ ## Contributing
61
+
62
+ Make changes in the package source, build the package, and submit a pull request.
63
+
64
+ ## License
65
+
66
+ ISC
@@ -0,0 +1,57 @@
1
+ # shivanya-core
2
+
3
+ Core TypeScript client for the Shivanya platform.
4
+
5
+ ## Installation
6
+
7
+ ```bash
8
+ npm install shivanya-core
9
+ ```
10
+
11
+ ## Usage
12
+
13
+ ```ts
14
+ import { ShivanyaClient } from "shivanya-core";
15
+
16
+ const client = new ShivanyaClient({
17
+ baseURL: "https://api.shivanyams.com",
18
+ });
19
+
20
+ const data = await client.request("/api/example");
21
+ ```
22
+
23
+ ## Development
24
+
25
+ This package is developed inside the Shivanya SDK pnpm workspace.
26
+
27
+ From the SDK root:
28
+
29
+ ```bash
30
+ pnpm install
31
+ ```
32
+
33
+ Build the package:
34
+
35
+ ```bash
36
+ pnpm --filter shivanya-core build
37
+ ```
38
+
39
+ ## Package Structure
40
+
41
+ ```text
42
+ packages/core/
43
+ ├── src/
44
+ │ ├── client.ts
45
+ │ ├── errors.ts
46
+ │ └── index.ts
47
+ ├── package.json
48
+ └── tsconfig.json
49
+ ```
50
+
51
+ ## Contributing
52
+
53
+ Make changes in the package source, build the package, and submit a pull request.
54
+
55
+ ## License
56
+
57
+ ISC
@@ -2,8 +2,6 @@
2
2
 
3
3
  Reusable application shell and layout components for Shivanya applications.
4
4
 
5
- The package provides common layout infrastructure that can be shared across different Shivanya applications without coupling the shell to a specific application.
6
-
7
5
  ## Installation
8
6
 
9
7
  ```bash
@@ -13,33 +11,22 @@ npm install shivanya-shell
13
11
  ## Usage
14
12
 
15
13
  ```tsx
16
- import {
17
- AppShell,
18
- PageContainer,
19
- } from "shivanya-shell";
14
+ import { DashboardShell } from "shivanya-shell";
20
15
 
21
16
  export function App() {
22
17
  return (
23
- <AppShell>
24
- <PageContainer>
25
- Your application content
26
- </PageContainer>
27
- </AppShell>
18
+ <DashboardShell>
19
+ Your application content
20
+ </DashboardShell>
28
21
  );
29
22
  }
30
23
  ```
31
24
 
32
- ## Available Components
33
-
34
- Current components:
25
+ ## Dependency
35
26
 
36
- - `AppShell`
37
- - `PageContainer`
38
- - `LayoutProvider`
39
- - `LayoutContext`
40
- - `useLayout`
27
+ `shivanya-shell` uses `shivanya-ui` as a package dependency.
41
28
 
42
- Additional reusable shell components will be added as the SDK develops.
29
+ React and React DOM are peer dependencies.
43
30
 
44
31
  ## Development
45
32
 
@@ -63,23 +50,12 @@ Test changes using the SDK playground:
63
50
  pnpm --filter playground dev
64
51
  ```
65
52
 
66
- ## Dependencies
67
-
68
- `shivanya-shell` uses:
69
-
70
- ```text
71
- shivanya-ui
72
- ```
73
-
74
- as a package dependency.
75
-
76
- React and React DOM are peer dependencies.
77
-
78
53
  ## Package Structure
79
54
 
80
55
  ```text
81
56
  packages/shell/
82
57
  ├── src/
58
+ │ ├── components/
83
59
  │ ├── context/
84
60
  │ ├── hooks/
85
61
  │ ├── layouts/
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "shivanya-shell",
3
- "version": "1.0.1",
3
+ "version": "1.0.4",
4
4
  "type": "module",
5
5
  "description": "Reusable React shell, layout, and application structure components for Shivanya applications",
6
6
  "main": "dist/index.js",
@@ -10,17 +10,16 @@
10
10
  "types": "./dist/index.d.ts",
11
11
  "import": "./dist/index.js"
12
12
  },
13
- "./styles": "./src/styles/shell.css"
13
+ "./styles": "./dist/styles/shell.css"
14
14
  },
15
15
  "files": [
16
- "dist",
17
- "src/styles"
16
+ "dist"
18
17
  ],
19
18
  "scripts": {
20
- "build": "tsc && shx mkdir -p dist/styles && shx cp src/styles/shell.css dist/styles/shell.css"
19
+ "build": "tsc && node scripts/copy-assets.mjs"
21
20
  },
22
21
  "dependencies": {
23
- "shivanya-ui": "^1.0.0"
22
+ "shivanya-ui": "^1.0.5"
24
23
  },
25
24
  "peerDependencies": {
26
25
  "react": "^18.0.0 || ^19.0.0",
@@ -0,0 +1,14 @@
1
+ import fs from "node:fs";
2
+ import path from "node:path";
3
+ import { fileURLToPath } from "node:url";
4
+
5
+ const currentFile = fileURLToPath(import.meta.url);
6
+ const root = path.resolve(path.dirname(currentFile), "..");
7
+
8
+ const source = path.join(root, "src", "styles", "shell.css");
9
+ const target = path.join(root, "dist", "styles", "shell.css");
10
+
11
+ fs.mkdirSync(path.dirname(target), { recursive: true });
12
+ fs.copyFileSync(source, target);
13
+
14
+ console.log("Shivanya Shell CSS copied.");
@@ -1,3 +1,5 @@
1
+ "use client"
2
+
1
3
  import type { CSSProperties } from "react";
2
4
  import type { ShellHeaderProps } from "../types/shell.js";
3
5
  import { useShell } from "../hooks/useShell.js";
@@ -1,3 +1,5 @@
1
+ "use client"
2
+
1
3
  import { useEffect } from "react";
2
4
  import type { ShellMobileNavProps } from "../types/shell.js";
3
5
  import { ShellSidebar } from "./ShellSidebar.js";
@@ -1,3 +1,5 @@
1
+ "use client";
2
+
1
3
  import { useCallback, useMemo, useState, type ReactNode } from "react";
2
4
  import { ShellContext } from "./ShellContext.js";
3
5
  import type { ShellProviderProps } from "../types/shell.js";
@@ -1,3 +1,5 @@
1
+ "use client"
2
+
1
3
  import { useEffect, useState } from "react";
2
4
 
3
5
  export function useBreakpoint(query: string) {
@@ -1,3 +1,5 @@
1
+ "use client"
2
+
1
3
  import { useContext } from "react";
2
4
  import { ShellContext } from "../context/ShellContext.js";
3
5
 
@@ -1,3 +1,5 @@
1
+ "use client"
2
+
1
3
  import { useShell } from "./useShell.js";
2
4
 
3
5
  export function useSidebar() {
@@ -1,3 +1,5 @@
1
+ "use client"
2
+
1
3
  import type { CSSProperties } from "react";
2
4
  import type { ShellLayoutProps } from "../types/shell.js";
3
5
  import { AppShell } from "./AppShell.js";
@@ -1,12 +1,15 @@
1
1
  .shivanya-shell {
2
2
  min-height: 100dvh;
3
3
  width: 100%;
4
+ display: flex;
5
+ flex-direction: column;
4
6
  background: var(--shivanya-color-background);
5
7
  color: var(--shivanya-color-text-primary);
6
8
  }
7
9
 
8
10
  .shivanya-shell-body {
9
- min-height: calc(100dvh - 64px);
11
+ flex: 1;
12
+ min-height: 0;
10
13
  display: grid;
11
14
  grid-template-columns: 240px minmax(0, 1fr);
12
15
  }
@@ -73,35 +76,10 @@
73
76
  ------------------------------------------------------------- */
74
77
 
75
78
  .shivanya-shell-menu-button,
76
- .shivanya-shell-mobile-close,
77
- .shivanya-shell-drawer-header button {
78
- width: 38px;
79
- height: 38px;
80
- display: inline-grid;
81
- place-items: center;
82
-
83
- border: 1px solid var(--shivanya-color-border);
84
- border-radius: var(--shivanya-radius-md);
85
-
86
- background: var(--shivanya-color-surface);
87
- color: var(--shivanya-color-text-primary);
88
-
79
+ .shivanya-shell-mobile-close {
89
80
  cursor: pointer;
90
81
  }
91
82
 
92
- .shivanya-shell-menu-button:hover,
93
- .shivanya-shell-mobile-close:hover,
94
- .shivanya-shell-drawer-header button:hover {
95
- background: var(--shivanya-color-surface-hover);
96
- }
97
-
98
- .shivanya-shell-menu-button:focus-visible,
99
- .shivanya-shell-mobile-close:focus-visible,
100
- .shivanya-shell-drawer-header button:focus-visible {
101
- outline: 2px solid var(--shivanya-color-focus);
102
- outline-offset: 2px;
103
- }
104
-
105
83
  /* -------------------------------------------------------------
106
84
  Brand
107
85
  ------------------------------------------------------------- */
@@ -337,13 +315,10 @@
337
315
 
338
316
  .shivanya-shell-main {
339
317
  min-width: 0;
340
- min-height: calc(100dvh - 64px);
341
-
318
+ min-height: 0;
342
319
  padding: 24px;
343
-
344
320
  box-sizing: border-box;
345
321
  overflow-x: auto;
346
-
347
322
  background: var(--shivanya-color-background);
348
323
  }
349
324
 
@@ -30,16 +30,6 @@ export function Example() {
30
30
  }
31
31
  ```
32
32
 
33
- ## Available Components
34
-
35
- Current components:
36
-
37
- - `Button`
38
- - `Input`
39
- - `Typography`
40
-
41
- More reusable components will be added as the SDK grows.
42
-
43
33
  ## Development
44
34
 
45
35
  This package is developed inside the Shivanya SDK pnpm workspace.
@@ -62,8 +52,6 @@ Test changes using the SDK playground:
62
52
  pnpm --filter playground dev
63
53
  ```
64
54
 
65
- The playground consumes `shivanya-ui` directly from the workspace.
66
-
67
55
  ## Package Structure
68
56
 
69
57
  ```text
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "shivanya-ui",
3
- "version": "1.0.0",
3
+ "version": "1.0.6",
4
4
  "type": "module",
5
5
  "description": "Reusable React UI components for Shivanya applications",
6
6
  "main": "dist/index.js",
@@ -14,15 +14,13 @@
14
14
  "types": "./dist/icons/index.d.ts",
15
15
  "import": "./dist/icons/index.js"
16
16
  },
17
- "./styles": "./src/styles/index.css"
17
+ "./styles": "./dist/styles/index.css"
18
18
  },
19
19
  "files": [
20
- "dist",
21
- "src/styles",
22
- "src/assets/fonts"
20
+ "dist"
23
21
  ],
24
22
  "scripts": {
25
- "build": "tsc"
23
+ "build": "node scripts/generate-icons.mjs && tsc && node scripts/copy-assets.mjs"
26
24
  },
27
25
  "peerDependencies": {
28
26
  "react": "^18.0.0 || ^19.0.0",
@@ -0,0 +1,61 @@
1
+ import fs from "node:fs";
2
+ import path from "node:path";
3
+ import { fileURLToPath } from "node:url";
4
+
5
+ const currentFile = fileURLToPath(import.meta.url);
6
+ const root = path.resolve(path.dirname(currentFile), "..");
7
+ const src = path.join(root, "src");
8
+ const dist = path.join(root, "dist");
9
+
10
+ function copyCssFiles(sourceDir, targetDir) {
11
+ if (!fs.existsSync(sourceDir)) return;
12
+
13
+ for (const entry of fs.readdirSync(sourceDir, { withFileTypes: true })) {
14
+ const sourcePath = path.join(sourceDir, entry.name);
15
+ const targetPath = path.join(
16
+ targetDir,
17
+ path.relative(sourceDir, sourcePath)
18
+ );
19
+
20
+ if (entry.isDirectory()) {
21
+ copyCssFiles(sourcePath, targetPath);
22
+ continue;
23
+ }
24
+
25
+ if (entry.isFile() && entry.name.endsWith(".css")) {
26
+ fs.mkdirSync(path.dirname(targetPath), { recursive: true });
27
+ fs.copyFileSync(sourcePath, targetPath);
28
+ }
29
+ }
30
+ }
31
+
32
+ function copyDirectory(sourceDir, targetDir) {
33
+ if (!fs.existsSync(sourceDir)) return;
34
+
35
+ fs.cpSync(sourceDir, targetDir, {
36
+ recursive: true,
37
+ force: true
38
+ });
39
+ }
40
+
41
+ copyCssFiles(
42
+ path.join(src, "styles"),
43
+ path.join(dist, "styles")
44
+ );
45
+
46
+ copyCssFiles(
47
+ path.join(src, "components"),
48
+ path.join(dist, "components")
49
+ );
50
+
51
+ copyCssFiles(
52
+ path.join(src, "icons"),
53
+ path.join(dist, "icons")
54
+ );
55
+
56
+ copyDirectory(
57
+ path.join(src, "assets", "fonts"),
58
+ path.join(dist, "assets", "fonts")
59
+ );
60
+
61
+ console.log("Shivanya UI CSS and assets copied.");
@@ -0,0 +1,45 @@
1
+ import fs from "node:fs";
2
+ import path from "node:path";
3
+ import { fileURLToPath } from "node:url";
4
+
5
+ const __filename = fileURLToPath(import.meta.url);
6
+ const __dirname = path.dirname(__filename);
7
+
8
+ const iconsDirectory = path.resolve(
9
+ __dirname,
10
+ "../src/icons/icons",
11
+ );
12
+
13
+ const outputFile = path.join(
14
+ iconsDirectory,
15
+ "index.ts",
16
+ );
17
+
18
+ const iconFiles = fs
19
+ .readdirSync(iconsDirectory)
20
+ .filter(
21
+ (file) =>
22
+ file.endsWith(".tsx") &&
23
+ file !== "index.ts",
24
+ )
25
+ .sort((a, b) => a.localeCompare(b));
26
+
27
+ const exports = iconFiles
28
+ .map((file) => {
29
+ const name = path.basename(file, ".tsx");
30
+
31
+ return `export { ${name} } from "./${name}";`;
32
+ })
33
+ .join("\n");
34
+
35
+ const content = `${exports}\n`;
36
+
37
+ fs.writeFileSync(
38
+ outputFile,
39
+ content,
40
+ "utf8",
41
+ );
42
+
43
+ console.log(
44
+ `Generated ${iconFiles.length} icon exports.`,
45
+ );
@@ -1,3 +1,4 @@
1
+ "use client";
1
2
  import { memo, useEffect, useState, type MouseEventHandler } from "react";
2
3
  interface BarProps { x:number;y:number;width:number;height:number;radius?:number;color?:string;duration?:number;orientation?:"horizontal"|"vertical";onClick?:MouseEventHandler<SVGRectElement>;onMouseEnter?:MouseEventHandler<SVGRectElement>;onMouseMove?:MouseEventHandler<SVGRectElement>;onMouseLeave?:MouseEventHandler<SVGRectElement>; }
3
4
  function Bar({x,y,width,height,radius=999,color,duration=700,orientation="horizontal",onClick,onMouseEnter,onMouseMove,onMouseLeave}:BarProps){
@@ -8,3 +9,4 @@ function Bar({x,y,width,height,radius=999,color,duration=700,orientation="horizo
8
9
  return <rect className="shivanya-chart-bar" x={x} y={animatedY} width={orientation==="horizontal"?safeSize:safeWidth} height={orientation==="vertical"?safeSize:safeHeight} rx={radius} ry={radius} fill={color} onClick={onClick} onMouseEnter={onMouseEnter} onMouseMove={onMouseMove} onMouseLeave={onMouseLeave} style={{transition:`width ${duration}ms cubic-bezier(.22,.61,.36,1),height ${duration}ms cubic-bezier(.22,.61,.36,1),y ${duration}ms cubic-bezier(.22,.61,.36,1)`}}/>;
9
10
  }
10
11
  export default memo(Bar);
12
+
@@ -1,3 +1,5 @@
1
+ "use client";
2
+
1
3
  import { useEffect, useState, type RefObject } from "react";
2
4
  export default function useResizeObserver(ref: RefObject<HTMLElement | null>) {
3
5
  const [size, setSize] = useState({ width: 0, height: 0 });
@@ -1,3 +1,5 @@
1
+ "use client";
2
+
1
3
  import { useCallback, useState } from "react";
2
4
  export default function useTooltip<T>() {
3
5
  const [tooltip, setTooltip] = useState<T | null>(null);
@@ -1,3 +1,4 @@
1
+ "use client";
1
2
  import {
2
3
  Children,
3
4
  cloneElement,
@@ -216,3 +217,4 @@ const Accordion = Object.assign(
216
217
  Accordion.displayName = "Accordion";
217
218
 
218
219
  export { Accordion, AccordionItem };
220
+
@@ -1,3 +1,4 @@
1
+ "use client";
1
2
  import {
2
3
  forwardRef,
3
4
  useEffect,
@@ -134,4 +135,4 @@ export const AnimatedNumber = forwardRef<
134
135
  );
135
136
  });
136
137
 
137
- AnimatedNumber.displayName = "AnimatedNumber";
138
+ AnimatedNumber.displayName = "AnimatedNumber";
@@ -1,3 +1,5 @@
1
+ "use client";
2
+
1
3
  import {
2
4
  forwardRef,
3
5
  type ButtonHTMLAttributes,
@@ -1,3 +1,4 @@
1
+ "use client";
1
2
  import {
2
3
  forwardRef,
3
4
  useEffect,
@@ -586,4 +587,4 @@ export const Calendar = forwardRef<
586
587
  );
587
588
  });
588
589
 
589
- Calendar.displayName = "Calendar";
590
+ Calendar.displayName = "Calendar";
@@ -1,3 +1,5 @@
1
+ "use client";
2
+
1
3
  import {
2
4
  forwardRef,
3
5
  type ButtonHTMLAttributes,
@@ -1,3 +1,5 @@
1
+ "use client";
2
+
1
3
  import {
2
4
  useEffect,
3
5
  useMemo,
@@ -627,4 +629,4 @@ export function DataGrid<
627
629
  );
628
630
  }
629
631
 
630
- DataGrid.displayName = "DataGrid";
632
+ DataGrid.displayName = "DataGrid";
@@ -1,3 +1,5 @@
1
+ "use client";
2
+
1
3
  import {
2
4
  forwardRef,
3
5
  useCallback,