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.
- package/package.json +28 -29
- package/packages/ai/README.md +66 -0
- package/packages/core/README.md +57 -0
- package/packages/shell/README.md +8 -32
- package/packages/shell/package.json +5 -6
- package/packages/shell/scripts/copy-assets.mjs +14 -0
- package/packages/shell/src/components/ShellHeader.tsx +2 -0
- package/packages/shell/src/components/ShellMobileNav.tsx +2 -0
- package/packages/shell/src/context/ShellProvider.tsx +2 -0
- package/packages/shell/src/hooks/useBreakpoint.ts +2 -0
- package/packages/shell/src/hooks/useShell.ts +2 -0
- package/packages/shell/src/hooks/useSidebar.ts +2 -0
- package/packages/shell/src/layouts/DashboardShell.tsx +2 -0
- package/packages/shell/src/styles/shell.css +6 -31
- package/packages/ui/README.md +0 -12
- package/packages/ui/package.json +4 -6
- package/packages/ui/scripts/copy-assets.mjs +61 -0
- package/packages/ui/scripts/generate-icons.mjs +45 -0
- package/packages/ui/src/components/charts/BarChart/components/Bar.tsx +2 -0
- package/packages/ui/src/components/charts/BarChart/hooks/useResizeObserver.ts +2 -0
- package/packages/ui/src/components/charts/BarChart/hooks/useTooltip.ts +2 -0
- package/packages/ui/src/components/data-display/Accordion/Accordion.tsx +2 -0
- package/packages/ui/src/components/data-display/AnimatedNumber/AnimatedNumber.tsx +2 -1
- package/packages/ui/src/components/data-display/Avatar/Avatar.tsx +2 -0
- package/packages/ui/src/components/data-display/Calendar/Calendar.tsx +2 -1
- package/packages/ui/src/components/data-display/Chip/Chip.tsx +2 -0
- package/packages/ui/src/components/data-display/DataGrid/DataGrid.tsx +3 -1
- package/packages/ui/src/components/data-display/List/List.tsx +2 -0
- package/packages/ui/src/components/data-display/TreeView/TreeView.tsx +2 -1
- package/packages/ui/src/components/feedback/Alert/Alert.tsx +2 -1
- package/packages/ui/src/components/feedback/ConfirmDialog/ConfirmDialog.tsx +2 -0
- package/packages/ui/src/components/feedback/Dialog/Dialog.tsx +2 -1
- package/packages/ui/src/components/feedback/Modal/Modal.tsx +2 -0
- package/packages/ui/src/components/feedback/Notification/Notification.tsx +2 -1
- package/packages/ui/src/components/feedback/Popover/Popover.tsx +2 -0
- package/packages/ui/src/components/feedback/Toast/Toast.tsx +2 -1
- package/packages/ui/src/components/forms/Autocomplete/Autocomplete.tsx +3 -1
- package/packages/ui/src/components/forms/DatePicker/DatePicker.tsx +2 -0
- package/packages/ui/src/components/forms/DateRangePicker/DateRangePicker.tsx +2 -1
- package/packages/ui/src/components/forms/FileUpload/FileUpload.tsx +2 -0
- package/packages/ui/src/components/forms/NumberInput/NumberInput.tsx +2 -1
- package/packages/ui/src/components/forms/OtpInput/OtpInput.tsx +2 -1
- package/packages/ui/src/components/forms/PasswordInput/PasswordInput.tsx +2 -1
- package/packages/ui/src/components/forms/Select/Select.tsx +2 -0
- package/packages/ui/src/components/forms/Textarea/Textarea.tsx +2 -1
- package/packages/ui/src/components/foundation/Link/Link.tsx +2 -0
- package/packages/ui/src/components/media/Carousel/Carousel.tsx +2 -0
- package/packages/ui/src/components/media/ImageCropper/ImageCropper.tsx +2 -0
- package/packages/ui/src/components/media/ImageCropper/ImageCropperModal.tsx +2 -1
- package/packages/ui/src/components/media/ImageCropper/hooks.ts +2 -0
- package/packages/ui/src/components/navigation/menu/MenuItem.tsx +49 -2
- package/packages/ui/src/components/navigation/navbar/NavbarItem.tsx +53 -2
- package/packages/ui/src/components/navigation/pagination/Pagination.tsx +2 -0
- package/packages/ui/src/components/navigation/pagination/PaginationItem.tsx +41 -1
- package/packages/ui/src/components/navigation/sidebar/SidebarItem.tsx +53 -2
- package/packages/ui/src/components/navigation/stepper/Step.tsx +2 -0
- package/packages/ui/src/components/navigation/stepper/Stepper.tsx +2 -1
- package/packages/ui/src/components/navigation/tabs/Tab.tsx +45 -1
- package/packages/ui/src/components/navigation/tabs/Tabs.tsx +2 -1
- package/packages/ui/src/components/overlays/CommandPalette/CommandPalette.tsx +85 -89
- package/packages/ui/src/components/overlays/ContextMenu/ContextMenu.tsx +69 -70
- package/packages/ui/src/components/overlays/Drawer/Drawer.tsx +2 -0
- package/packages/ui/src/components/overlays/Sheet/Sheet.tsx +81 -92
- package/packages/ui/src/components/utilities/ClickAwayListener/ClickAwayListener.tsx +2 -0
- package/packages/ui/src/components/utilities/CopyButton/CopyButton.tsx +2 -1
- package/packages/ui/src/components/utilities/FocusTrap/FocusTrap.tsx +2 -0
- package/packages/ui/src/components/utilities/Portal/Portal.tsx +2 -0
- package/packages/ui/src/icons/icons/AccessibilityIcon.tsx +13 -0
- package/packages/ui/src/icons/icons/ActiveUsersIcon.tsx +12 -0
- package/packages/ui/src/icons/icons/ActivityIcon.tsx +12 -0
- package/packages/ui/src/icons/icons/AlertCircleIcon.tsx +10 -0
- package/packages/ui/src/icons/icons/AnalyticsIcon.tsx +14 -0
- package/packages/ui/src/icons/icons/AppsIcon.tsx +13 -0
- package/packages/ui/src/icons/icons/ArchiveIcon.tsx +16 -0
- package/packages/ui/src/icons/icons/ArrowDownIcon.tsx +10 -0
- package/packages/ui/src/icons/icons/ArrowLeftIcon.tsx +10 -0
- package/packages/ui/src/icons/icons/ArrowRightIcon.tsx +11 -0
- package/packages/ui/src/icons/icons/ArrowUpIcon.tsx +10 -0
- package/packages/ui/src/icons/icons/ArrowUpRightIcon.tsx +10 -0
- package/packages/ui/src/icons/icons/AspectRatioIcon.tsx +14 -0
- package/packages/ui/src/icons/icons/BadgeIcon.tsx +11 -0
- package/packages/ui/src/icons/icons/BeakerIcon.tsx +16 -0
- package/packages/ui/src/icons/icons/BellIcon.tsx +11 -0
- package/packages/ui/src/icons/icons/BoltIcon.tsx +10 -0
- package/packages/ui/src/icons/icons/BoxIcon.tsx +12 -0
- package/packages/ui/src/icons/icons/BuildingIcon.tsx +56 -0
- package/packages/ui/src/icons/icons/CalendarIcon.tsx +19 -0
- package/packages/ui/src/icons/icons/CalendarRangeIcon.tsx +15 -0
- package/packages/ui/src/icons/icons/CardIcon.tsx +11 -0
- package/packages/ui/src/icons/icons/CarouselIcon.tsx +12 -0
- package/packages/ui/src/icons/icons/ChartBarIcon.tsx +13 -0
- package/packages/ui/src/icons/icons/ChartPieIcon.tsx +16 -0
- package/packages/ui/src/icons/icons/CheckCircleIcon.tsx +10 -0
- package/packages/ui/src/icons/icons/CheckIcon.tsx +10 -0
- package/packages/ui/src/icons/icons/ChevronDownIcon.tsx +10 -0
- package/packages/ui/src/icons/icons/ChevronLeftIcon.tsx +10 -0
- package/packages/ui/src/icons/icons/ChevronRightIcon.tsx +10 -0
- package/packages/ui/src/icons/icons/ChevronUpIcon.tsx +10 -0
- package/packages/ui/src/icons/icons/ChipIcon.tsx +16 -0
- package/packages/ui/src/icons/icons/ClipboardIcon.tsx +12 -0
- package/packages/ui/src/icons/icons/ClockIcon.tsx +11 -0
- package/packages/ui/src/icons/icons/CloudSyncIcon.tsx +13 -0
- package/packages/ui/src/icons/icons/CodeIcon.tsx +10 -0
- package/packages/ui/src/icons/icons/CommandPaletteIcon.tsx +13 -0
- package/packages/ui/src/icons/icons/CompassIcon.tsx +11 -0
- package/packages/ui/src/icons/icons/ContainerIcon.tsx +12 -0
- package/packages/ui/src/icons/icons/ContextMenuIcon.tsx +12 -0
- package/packages/ui/src/icons/icons/ContrastIcon.tsx +11 -0
- package/packages/ui/src/icons/icons/CopyIcon.tsx +11 -0
- package/packages/ui/src/icons/icons/CpuIcon.tsx +19 -0
- package/packages/ui/src/icons/icons/CropIcon.tsx +22 -0
- package/packages/ui/src/icons/icons/CubeIcon.tsx +12 -0
- package/packages/ui/src/icons/icons/CursorClickIcon.tsx +14 -0
- package/packages/ui/src/icons/icons/CursorIcon.tsx +10 -0
- package/packages/ui/src/icons/icons/DashboardIcon.tsx +48 -0
- package/packages/ui/src/icons/icons/DataGridIcon.tsx +14 -0
- package/packages/ui/src/icons/icons/DeleteIcon.tsx +14 -0
- package/packages/ui/src/icons/icons/DeviceMobileIcon.tsx +29 -0
- package/packages/ui/src/icons/icons/DialogIcon.tsx +12 -0
- package/packages/ui/src/icons/icons/DiskIoIcon.tsx +15 -0
- package/packages/ui/src/icons/icons/DiskUsageIcon.tsx +15 -0
- package/packages/ui/src/icons/icons/DonutIcon.tsx +23 -0
- package/packages/ui/src/icons/icons/DownloadIcon.tsx +10 -0
- package/packages/ui/src/icons/icons/DrawerIcon.tsx +12 -0
- package/packages/ui/src/icons/icons/ERPIcon.tsx +18 -0
- package/packages/ui/src/icons/icons/EditIcon.tsx +11 -0
- package/packages/ui/src/icons/icons/EmptyStateIcon.tsx +12 -0
- package/packages/ui/src/icons/icons/ErrorIcon.tsx +12 -0
- package/packages/ui/src/icons/icons/ExpandIcon.tsx +23 -0
- package/packages/ui/src/icons/icons/ExpensesIcon.tsx +16 -0
- package/packages/ui/src/icons/icons/EyeIcon.tsx +15 -0
- package/packages/ui/src/icons/icons/EyeOffIcon.tsx +13 -0
- package/packages/ui/src/icons/icons/FavoriteIcon.tsx +10 -0
- package/packages/ui/src/icons/icons/FileTextIcon.tsx +14 -0
- package/packages/ui/src/icons/icons/FilterIcon.tsx +10 -0
- package/packages/ui/src/icons/icons/FlexIcon.tsx +12 -0
- package/packages/ui/src/icons/icons/FocusIcon.tsx +14 -0
- package/packages/ui/src/icons/icons/FolderIcon.tsx +10 -0
- package/packages/ui/src/icons/icons/FolderOpenIcon.tsx +10 -0
- package/packages/ui/src/icons/icons/FoundationIcon.tsx +23 -0
- package/packages/ui/src/icons/icons/GlobeIcon.tsx +24 -0
- package/packages/ui/src/icons/icons/GoalIcon.tsx +12 -0
- package/packages/ui/src/icons/icons/GridIcon.tsx +13 -0
- package/packages/ui/src/icons/icons/HashIcon.tsx +16 -0
- package/packages/ui/src/icons/icons/HelpIcon.tsx +12 -0
- package/packages/ui/src/icons/icons/HistoryIcon.tsx +12 -0
- package/packages/ui/src/icons/icons/HomeIcon.tsx +14 -0
- package/packages/ui/src/icons/icons/ImageIcon.tsx +12 -0
- package/packages/ui/src/icons/icons/ImagesIcon.tsx +36 -0
- package/packages/ui/src/icons/icons/InfoCircleIcon.tsx +10 -0
- package/packages/ui/src/icons/icons/ItemsIcon.tsx +13 -0
- package/packages/ui/src/icons/icons/KeyIcon.tsx +23 -0
- package/packages/ui/src/icons/icons/KeyboardIcon.tsx +18 -0
- package/packages/ui/src/icons/icons/LayersIcon.tsx +12 -0
- package/packages/ui/src/icons/icons/LayoutIcon.tsx +25 -0
- package/packages/ui/src/icons/icons/LinkIcon.tsx +12 -0
- package/packages/ui/src/icons/icons/ListIcon.tsx +16 -0
- package/packages/ui/src/icons/icons/ListsIcon.tsx +15 -0
- package/packages/ui/src/icons/icons/LiveVisitorsIcon.tsx +13 -0
- package/packages/ui/src/icons/icons/LoadAverageIcon.tsx +11 -0
- package/packages/ui/src/icons/icons/LoaderIcon.tsx +17 -0
- package/packages/ui/src/icons/icons/LockIcon.tsx +17 -0
- package/packages/ui/src/icons/icons/LoginIcon.tsx +12 -0
- package/packages/ui/src/icons/icons/LogoIcon.tsx +18 -0
- package/packages/ui/src/icons/icons/LogoutIcon.tsx +12 -0
- package/packages/ui/src/icons/icons/LogsIcon.tsx +24 -0
- package/packages/ui/src/icons/icons/MailIcon.tsx +17 -0
- package/packages/ui/src/icons/icons/MapPinIcon.tsx +16 -0
- package/packages/ui/src/icons/icons/MemoryIcon.tsx +18 -0
- package/packages/ui/src/icons/icons/MenuIcon.tsx +12 -0
- package/packages/ui/src/icons/icons/MessagesIcon.tsx +12 -0
- package/packages/ui/src/icons/icons/MinusIcon.tsx +10 -0
- package/packages/ui/src/icons/icons/ModalIcon.tsx +11 -0
- package/packages/ui/src/icons/icons/MonitorIcon.tsx +20 -0
- package/packages/ui/src/icons/icons/MoonIcon.tsx +16 -0
- package/packages/ui/src/icons/icons/MoreVerticalIcon.tsx +12 -0
- package/packages/ui/src/icons/icons/MousePointerClickIcon.tsx +13 -0
- package/packages/ui/src/icons/icons/MousePointerIcon.tsx +16 -0
- package/packages/ui/src/icons/icons/NavbarIcon.tsx +42 -0
- package/packages/ui/src/icons/icons/NetProfitIcon.tsx +14 -0
- package/packages/ui/src/icons/icons/NetworkIcon.tsx +44 -0
- package/packages/ui/src/icons/icons/NewOrdersIcon.tsx +15 -0
- package/packages/ui/src/icons/icons/NotesIcon.tsx +13 -0
- package/packages/ui/src/icons/icons/NotificationIcon.tsx +11 -0
- package/packages/ui/src/icons/icons/NumberIcon.tsx +13 -0
- package/packages/ui/src/icons/icons/OrdersIcon.tsx +14 -0
- package/packages/ui/src/icons/icons/PaginationIcon.tsx +12 -0
- package/packages/ui/src/icons/icons/PanelBottomIcon.tsx +24 -0
- package/packages/ui/src/icons/icons/PanelLeftIcon.tsx +24 -0
- package/packages/ui/src/icons/icons/PanelRightIcon.tsx +24 -0
- package/packages/ui/src/icons/icons/PanelTopIcon.tsx +24 -0
- package/packages/ui/src/icons/icons/PartnerIcon.tsx +14 -0
- package/packages/ui/src/icons/icons/PendingUpdatesIcon.tsx +13 -0
- package/packages/ui/src/icons/icons/PlusIcon.tsx +11 -0
- package/packages/ui/src/icons/icons/PopoverIcon.tsx +11 -0
- package/packages/ui/src/icons/icons/ProcessesIcon.tsx +17 -0
- package/packages/ui/src/icons/icons/PulseIcon.tsx +10 -0
- package/packages/ui/src/icons/icons/QuestionMarkCircleIcon.tsx +29 -0
- package/packages/ui/src/icons/icons/RadioIcon.tsx +11 -0
- package/packages/ui/src/icons/icons/RamIcon.tsx +21 -0
- package/packages/ui/src/icons/icons/RefreshIcon.tsx +12 -0
- package/packages/ui/src/icons/icons/ReminderIcon.tsx +11 -0
- package/packages/ui/src/icons/icons/ReportsIcon.tsx +13 -0
- package/packages/ui/src/icons/icons/RestoreIcon.tsx +11 -0
- package/packages/ui/src/icons/icons/RevenueIcon.tsx +12 -0
- package/packages/ui/src/icons/icons/ScreenReaderIcon.tsx +19 -0
- package/packages/ui/src/icons/icons/ScrollIcon.tsx +11 -0
- package/packages/ui/src/icons/icons/SearchIcon.tsx +11 -0
- package/packages/ui/src/icons/icons/SendIcon.tsx +10 -0
- package/packages/ui/src/icons/icons/ServerIcon.tsx +40 -0
- package/packages/ui/src/icons/icons/ServerUsersIcon.tsx +15 -0
- package/packages/ui/src/icons/icons/SettingsIcon.tsx +24 -0
- package/packages/ui/src/icons/icons/ShareIcon.tsx +10 -0
- package/packages/ui/src/icons/icons/ShieldCheckIcon.tsx +11 -0
- package/packages/ui/src/icons/icons/ShivanyaLogoIcon.tsx +10 -0
- package/packages/ui/src/icons/icons/SidebarIcon.tsx +11 -0
- package/packages/ui/src/icons/icons/SmartphoneIcon.tsx +12 -0
- package/packages/ui/src/icons/icons/SortIcon.tsx +10 -0
- package/packages/ui/src/icons/icons/SpacerIcon.tsx +12 -0
- package/packages/ui/src/icons/icons/SparklesIcon.tsx +14 -0
- package/packages/ui/src/icons/icons/SquareIcon.tsx +17 -0
- package/packages/ui/src/icons/icons/StackIcon.tsx +12 -0
- package/packages/ui/src/icons/icons/StepperIcon.tsx +14 -0
- package/packages/ui/src/icons/icons/StocksIcon.tsx +18 -0
- package/packages/ui/src/icons/icons/SunIcon.tsx +22 -0
- package/packages/ui/src/icons/icons/SwitchIcon.tsx +11 -0
- package/packages/ui/src/icons/icons/TableIcon.tsx +13 -0
- package/packages/ui/src/icons/icons/TabsIcon.tsx +14 -0
- package/packages/ui/src/icons/icons/TagIcon.tsx +11 -0
- package/packages/ui/src/icons/icons/TagsIcon.tsx +12 -0
- package/packages/ui/src/icons/icons/TasksIcon.tsx +13 -0
- package/packages/ui/src/icons/icons/ThemeIcon.tsx +10 -0
- package/packages/ui/src/icons/icons/TimelineIcon.tsx +12 -0
- package/packages/ui/src/icons/icons/ToastIcon.tsx +12 -0
- package/packages/ui/src/icons/icons/ToggleIcon.tsx +24 -0
- package/packages/ui/src/icons/icons/ToolsIcon.tsx +12 -0
- package/packages/ui/src/icons/icons/TooltipIcon.tsx +12 -0
- package/packages/ui/src/icons/icons/TrafficIcon.tsx +13 -0
- package/packages/ui/src/icons/icons/TransactionsIcon.tsx +13 -0
- package/packages/ui/src/icons/icons/TreeViewIcon.tsx +16 -0
- package/packages/ui/src/icons/icons/TrendingDownIcon.tsx +11 -0
- package/packages/ui/src/icons/icons/TrendingUpIcon.tsx +11 -0
- package/packages/ui/src/icons/icons/TypeIcon.tsx +16 -0
- package/packages/ui/src/icons/icons/TypographyIcon.tsx +16 -0
- package/packages/ui/src/icons/icons/UnlockIcon.tsx +18 -0
- package/packages/ui/src/icons/icons/UploadIcon.tsx +12 -0
- package/packages/ui/src/icons/icons/UserCheckIcon.tsx +12 -0
- package/packages/ui/src/icons/icons/UserIcon.tsx +11 -0
- package/packages/ui/src/icons/icons/UserMinusIcon.tsx +10 -0
- package/packages/ui/src/icons/icons/UserPlusIcon.tsx +10 -0
- package/packages/ui/src/icons/icons/UserXIcon.tsx +10 -0
- package/packages/ui/src/icons/icons/UsersIcon.tsx +20 -0
- package/packages/ui/src/icons/icons/VaultIcon.tsx +16 -0
- package/packages/ui/src/icons/icons/VideoIcon.tsx +12 -0
- package/packages/ui/src/icons/icons/WalletIcon.tsx +22 -0
- package/packages/ui/src/icons/icons/WifiIcon.tsx +22 -0
- package/packages/ui/src/icons/icons/WindowIcon.tsx +15 -0
- package/packages/ui/src/icons/icons/WrenchIcon.tsx +10 -0
- package/packages/ui/src/icons/icons/XCircleIcon.tsx +10 -0
- package/packages/ui/src/icons/icons/index.ts +193 -0
- package/packages/ui/src/icons/index.ts +1 -3
- package/packages/ui/src/index.ts +3 -0
- package/packages/ui/src/styles.d.ts +1 -0
- package/playground/README.md +0 -6
- package/playground/src/App.tsx +8 -0
- package/playground/src/config/component-icons.ts +573 -0
- package/playground/src/demos/shell/Layouts/AppShellDemo.tsx +16 -19
- package/playground/src/demos/shell/Layouts/BlankShellDemo.tsx +38 -5
- package/playground/src/demos/shell/Layouts/CenteredShellDemo.tsx +42 -6
- package/playground/src/demos/shell/Layouts/DashboardShellDemo.tsx +35 -30
- package/playground/src/demos/shell/Layouts/WebsiteShellDemo.tsx +47 -6
- package/playground/src/demos/shell/previews/AppShellPreview.tsx +28 -0
- package/playground/src/demos/shell/previews/BlankShellPreview.tsx +17 -0
- package/playground/src/demos/shell/previews/CenteredShellPreview.tsx +19 -0
- package/playground/src/demos/shell/previews/DashboardShellPreview.tsx +30 -0
- package/playground/src/demos/shell/previews/WebsiteShellPreview.tsx +22 -0
- package/playground/src/demos/ui/icons/IconsDemo.tsx +28 -0
- package/playground/src/demos/ui/icons/icons-demo.css +845 -0
- package/playground/src/discovery/previewDiscovery.ts +50 -0
- package/playground/src/discovery/sdkDiscovery.ts +121 -22
- package/playground/src/index.css +96 -0
- package/playground/src/pages/CategoryPage.tsx +116 -15
- package/playground/src/pages/ComponentPage.tsx +37 -1
- package/playground/src/pages/PackagePage.tsx +125 -13
- package/pnpm-workspace.yaml +1 -1
package/package.json
CHANGED
|
@@ -1,30 +1,29 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "shivanya-sdk",
|
|
3
|
-
"version": "0.1.
|
|
4
|
-
"description": "Shivanya SDK monorepo",
|
|
5
|
-
"
|
|
6
|
-
"
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
"
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
"
|
|
14
|
-
"
|
|
15
|
-
"
|
|
16
|
-
"
|
|
17
|
-
"
|
|
18
|
-
"
|
|
19
|
-
"
|
|
20
|
-
"
|
|
21
|
-
"
|
|
22
|
-
"
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
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
|
package/packages/shell/README.md
CHANGED
|
@@ -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
|
-
<
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
</PageContainer>
|
|
27
|
-
</AppShell>
|
|
18
|
+
<DashboardShell>
|
|
19
|
+
Your application content
|
|
20
|
+
</DashboardShell>
|
|
28
21
|
);
|
|
29
22
|
}
|
|
30
23
|
```
|
|
31
24
|
|
|
32
|
-
##
|
|
33
|
-
|
|
34
|
-
Current components:
|
|
25
|
+
## Dependency
|
|
35
26
|
|
|
36
|
-
- `
|
|
37
|
-
- `PageContainer`
|
|
38
|
-
- `LayoutProvider`
|
|
39
|
-
- `LayoutContext`
|
|
40
|
-
- `useLayout`
|
|
27
|
+
`shivanya-shell` uses `shivanya-ui` as a package dependency.
|
|
41
28
|
|
|
42
|
-
|
|
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.
|
|
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": "./
|
|
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 &&
|
|
19
|
+
"build": "tsc && node scripts/copy-assets.mjs"
|
|
21
20
|
},
|
|
22
21
|
"dependencies": {
|
|
23
|
-
"shivanya-ui": "^1.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,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
|
-
|
|
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:
|
|
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
|
|
package/packages/ui/README.md
CHANGED
|
@@ -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
|
package/packages/ui/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "shivanya-ui",
|
|
3
|
-
"version": "1.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": "./
|
|
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
|
+
|