arkenstone-ui 0.0.16 → 0.0.18

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 (121) hide show
  1. package/dist/arkenstone-ui.es.js +11672 -180
  2. package/dist/arkenstone-ui.umd.js +112 -4
  3. package/dist/style.css +1 -1
  4. package/dist/types/components/access-gate.d.ts +11 -0
  5. package/dist/types/components/arkestone.d.ts +25 -0
  6. package/dist/types/components/custom/breadcrumb.d.ts +7 -0
  7. package/dist/types/components/custom/button.d.ts +4 -0
  8. package/dist/types/components/custom/index.d.ts +8 -0
  9. package/dist/types/components/custom/input.d.ts +3 -0
  10. package/dist/types/components/custom/mode-toggle.d.ts +1 -0
  11. package/dist/types/components/custom/search.d.ts +23 -0
  12. package/dist/types/components/index.d.ts +2 -0
  13. package/dist/types/components/sidebar/app-sidebar.d.ts +3 -0
  14. package/dist/types/components/sidebar/nav-main.d.ts +14 -0
  15. package/dist/types/components/sidebar/nav-secondary.d.ts +10 -0
  16. package/dist/types/components/sidebar/nav-slot2.d.ts +15 -0
  17. package/dist/types/components/sidebar/nav-user.d.ts +21 -0
  18. package/dist/types/components/tables/default-table.d.ts +17 -0
  19. package/dist/types/components/ui/accordion.d.ts +7 -0
  20. package/dist/types/components/ui/alert.d.ts +9 -0
  21. package/dist/types/components/ui/avatar.d.ts +6 -0
  22. package/dist/types/components/ui/badge.d.ts +9 -0
  23. package/dist/types/components/ui/breadcrumb.d.ts +11 -0
  24. package/dist/types/components/ui/button.d.ts +10 -0
  25. package/dist/types/components/ui/calendar.d.ts +8 -0
  26. package/dist/types/components/ui/card.d.ts +8 -0
  27. package/dist/types/components/ui/chart.d.ts +40 -0
  28. package/dist/types/components/ui/checkbox.d.ts +4 -0
  29. package/dist/types/components/ui/collapsible.d.ts +5 -0
  30. package/dist/types/components/ui/dialog.d.ts +13 -0
  31. package/dist/types/components/ui/dropdown-menu.d.ts +25 -0
  32. package/dist/types/components/ui/form.d.ts +24 -0
  33. package/dist/types/components/ui/hover-card.d.ts +6 -0
  34. package/dist/types/components/ui/icon.d.ts +7 -0
  35. package/dist/types/components/ui/input.d.ts +3 -0
  36. package/dist/types/components/ui/label.d.ts +4 -0
  37. package/dist/types/components/ui/navigation-menu.d.ts +14 -0
  38. package/dist/types/components/ui/placeholder-pattern.d.ts +5 -0
  39. package/dist/types/components/ui/popover.d.ts +6 -0
  40. package/dist/types/components/ui/scroll-area.d.ts +5 -0
  41. package/dist/types/components/ui/select.d.ts +15 -0
  42. package/dist/types/components/ui/separator.d.ts +4 -0
  43. package/dist/types/components/ui/sheet.d.ts +13 -0
  44. package/dist/types/components/ui/sidebar.d.ts +70 -0
  45. package/dist/types/components/ui/skeleton.d.ts +2 -0
  46. package/dist/types/components/ui/sonner.d.ts +3 -0
  47. package/dist/types/components/ui/table.d.ts +10 -0
  48. package/dist/types/components/ui/tabs.d.ts +7 -0
  49. package/dist/types/components/ui/toggle-group.d.ts +7 -0
  50. package/dist/types/components/ui/toggle.d.ts +9 -0
  51. package/dist/types/components/ui/tooltip.d.ts +7 -0
  52. package/dist/types/components/workspace/workspace.d.ts +1 -0
  53. package/dist/types/config/config.d.ts +41 -0
  54. package/dist/types/e-commerce/index.d.ts +1 -0
  55. package/dist/types/e-commerce/product/components/catelog/components/category-filter.d.ts +14 -0
  56. package/dist/types/e-commerce/product/components/catelog/components/filter.d.ts +60 -0
  57. package/dist/types/e-commerce/product/components/catelog/components/index.d.ts +6 -0
  58. package/dist/types/e-commerce/product/components/catelog/components/listing-controls.d.ts +12 -0
  59. package/dist/types/e-commerce/product/components/catelog/components/pagination.d.ts +37 -0
  60. package/dist/types/e-commerce/product/components/catelog/components/sort-bar.d.ts +33 -0
  61. package/dist/types/e-commerce/product/components/catelog/components/view-mode.d.ts +22 -0
  62. package/dist/types/e-commerce/product/components/catelog/index.d.ts +3 -0
  63. package/dist/types/e-commerce/product/components/catelog/layouts/catelog-content-layout.d.ts +9 -0
  64. package/dist/types/e-commerce/product/components/catelog/layouts/index.d.ts +2 -0
  65. package/dist/types/e-commerce/product/components/catelog/layouts/listings-layout.d.ts +13 -0
  66. package/dist/types/e-commerce/product/components/catelog/pages/default-catelog.d.ts +1 -0
  67. package/dist/types/e-commerce/product/components/catelog/pages/index.d.ts +1 -0
  68. package/dist/types/e-commerce/product/components/index.d.ts +2 -0
  69. package/dist/types/e-commerce/product/components/product-card/components/add-to-cart-button.d.ts +19 -0
  70. package/dist/types/e-commerce/product/components/product-card/components/brand-title.d.ts +16 -0
  71. package/dist/types/e-commerce/product/components/product-card/components/categories.d.ts +19 -0
  72. package/dist/types/e-commerce/product/components/product-card/components/discount-badge.d.ts +13 -0
  73. package/dist/types/e-commerce/product/components/product-card/components/index.d.ts +8 -0
  74. package/dist/types/e-commerce/product/components/product-card/components/price-card.d.ts +21 -0
  75. package/dist/types/e-commerce/product/components/product-card/components/product-image.d.ts +15 -0
  76. package/dist/types/e-commerce/product/components/product-card/components/view-details-button.d.ts +8 -0
  77. package/dist/types/e-commerce/product/components/product-card/components/wishlist-button.d.ts +15 -0
  78. package/dist/types/e-commerce/product/components/product-card/index.d.ts +4 -0
  79. package/dist/types/e-commerce/product/components/product-card/layouts/index.d.ts +2 -0
  80. package/dist/types/e-commerce/product/components/product-card/layouts/product-card-image-layout.d.ts +35 -0
  81. package/dist/types/e-commerce/product/components/product-card/layouts/product-card-layout.d.ts +16 -0
  82. package/dist/types/e-commerce/product/components/product-card/page/index.d.ts +1 -0
  83. package/dist/types/e-commerce/product/components/product-card/page/product-card-listing.d.ts +2 -0
  84. package/dist/types/e-commerce/product/components/product-card/product-card.d.ts +16 -0
  85. package/dist/types/e-commerce/product/index.d.ts +3 -0
  86. package/dist/types/e-commerce/product/service/brand-service.d.ts +67 -0
  87. package/dist/types/e-commerce/product/service/category-service.d.ts +68 -0
  88. package/dist/types/e-commerce/product/service/index.d.ts +7 -0
  89. package/dist/types/e-commerce/product/service/product-image-service.d.ts +44 -0
  90. package/dist/types/e-commerce/product/service/product-service.d.ts +67 -0
  91. package/dist/types/e-commerce/product/service/product-taxonomy-service.d.ts +49 -0
  92. package/dist/types/e-commerce/product/service/taxonomy-service.d.ts +69 -0
  93. package/dist/types/e-commerce/product/service/taxonomy-type-service.d.ts +68 -0
  94. package/dist/types/e-commerce/product/types/index.d.ts +87 -0
  95. package/dist/types/generics/generic-service.d.ts +0 -0
  96. package/dist/types/hooks/api.d.ts +15 -0
  97. package/dist/types/hooks/index.d.ts +1 -0
  98. package/dist/types/hooks/use-access.d.ts +7 -0
  99. package/dist/types/hooks/use-mobile.d.ts +1 -0
  100. package/dist/types/index.d.ts +7 -3
  101. package/dist/types/layouts/index.d.ts +0 -0
  102. package/dist/types/layouts/panels/default-panel-layout.d.ts +5 -0
  103. package/dist/types/lib/utils.d.ts +2 -0
  104. package/dist/types/provider/index.d.ts +1 -0
  105. package/dist/types/provider/theme-provider.d.ts +13 -0
  106. package/dist/types/stores/acl.store.d.ts +8 -0
  107. package/dist/types/stores/config.store.d.ts +10 -0
  108. package/dist/types/stores/index.d.ts +4 -0
  109. package/dist/types/stores/store-factory.d.ts +17 -0
  110. package/dist/types/stores/useStore.d.ts +43 -0
  111. package/dist/types/types/acl.d.ts +31 -0
  112. package/dist/types/types/config.d.ts +12 -0
  113. package/dist/types/types/index.d.ts +2 -0
  114. package/dist/types/util/currency-code/currency-symbols.json.d.ts +17 -0
  115. package/dist/types/util/currency-code/index.d.ts +6 -0
  116. package/dist/types/util/index.d.ts +2 -0
  117. package/dist/types/util/text-filter.d.ts +6 -0
  118. package/package.json +39 -6
  119. package/dist/types/components/button.d.ts +0 -5
  120. package/dist/types/components/janith-nirmal.d.ts +0 -3
  121. package/dist/types/pages/home.d.ts +0 -1
@@ -0,0 +1,87 @@
1
+ export interface Brand {
2
+ id: number;
3
+ name: string;
4
+ slug: string;
5
+ description: string | null;
6
+ logo: string | null;
7
+ is_active: boolean;
8
+ product_count: number;
9
+ created_at: string;
10
+ updated_at: string;
11
+ }
12
+ export interface ProductImage {
13
+ id: number;
14
+ product_id: number;
15
+ image_url: string;
16
+ alt_text: string | null;
17
+ is_primary: boolean;
18
+ sort_order: number;
19
+ }
20
+ export interface Category {
21
+ id: number;
22
+ parent_id?: number | null;
23
+ name: string;
24
+ slug: string;
25
+ description: string | null;
26
+ children?: Category[];
27
+ products_count?: number;
28
+ created_at: string;
29
+ updated_at: string;
30
+ }
31
+ export interface TaxonomyType {
32
+ id: number;
33
+ name: string;
34
+ slug: string;
35
+ description: string | null;
36
+ is_active: boolean;
37
+ taxonomies_count: number;
38
+ taxonomies?: Taxonomy[];
39
+ created_at: string;
40
+ updated_at: string;
41
+ }
42
+ export interface Taxonomy {
43
+ id: number;
44
+ taxonomy_type_id: number;
45
+ parent_id: number | null;
46
+ name: string;
47
+ slug: string;
48
+ description: string | null;
49
+ sort_order: number;
50
+ meta: Record<string, any> | null;
51
+ is_active: boolean;
52
+ type?: TaxonomyType | null;
53
+ parent?: Taxonomy | null;
54
+ children?: Taxonomy[];
55
+ products_count?: number;
56
+ created_at: string;
57
+ updated_at: string;
58
+ }
59
+ export interface ProductTaxonomy {
60
+ product_id: number;
61
+ taxonomy_id: number;
62
+ product?: Product | null;
63
+ taxonomy?: Taxonomy | null;
64
+ created_at: string;
65
+ updated_at: string;
66
+ }
67
+ export interface Product {
68
+ id: number;
69
+ name: string;
70
+ slug: string;
71
+ description: string | null;
72
+ price: number | null;
73
+ discount_type: string | null;
74
+ discount_value: number | null;
75
+ sale_price: number | null;
76
+ has_discount: boolean;
77
+ sku: string | null;
78
+ quantity: number | null;
79
+ is_active: boolean;
80
+ brand: Brand | null;
81
+ categories: Category[] | null;
82
+ taxonomies: Taxonomy[] | null;
83
+ images: ProductImage[] | null;
84
+ primary_image: ProductImage | null;
85
+ created_at: string;
86
+ updated_at: string;
87
+ }
File without changes
@@ -0,0 +1,15 @@
1
+ export interface ApiOptions {
2
+ data?: any;
3
+ params?: any;
4
+ headers?: any;
5
+ displayError?: boolean;
6
+ displaySuccess?: boolean;
7
+ isMultipart?: boolean;
8
+ isDownload?: boolean;
9
+ onSuccess?: (data: any) => void;
10
+ onError?: (error: any) => void;
11
+ }
12
+ export declare const apiGet: (url: string, options?: ApiOptions) => Promise<any>;
13
+ export declare const apiPost: (url: string, options?: ApiOptions) => Promise<any>;
14
+ export declare const apiPut: (url: string, options?: ApiOptions) => Promise<any>;
15
+ export declare const apiDelete: (url: string, options?: ApiOptions) => Promise<any>;
@@ -0,0 +1 @@
1
+ export * from './api';
@@ -0,0 +1,7 @@
1
+ import { Accessor, Role } from '../types/acl';
2
+ export declare const useAccess: (userRoles?: Role[]) => {
3
+ can: (accessor: Accessor | Accessor[], matchAll?: boolean) => boolean;
4
+ must: (accessor: Accessor | Accessor[], message?: string) => void;
5
+ isReady: boolean;
6
+ canRender: (component: React.ReactNode, accessor: Accessor | Accessor[], matchAll?: boolean) => React.ReactNode;
7
+ };
@@ -0,0 +1 @@
1
+ export declare function useIsMobile(): boolean;
@@ -1,3 +1,7 @@
1
- export * from './components/button';
2
- export * from './components/janith-nirmal';
3
- export * from './pages/home';
1
+ export * from './components';
2
+ export * from './hooks';
3
+ export * from './provider';
4
+ export * from './stores';
5
+ export * from './types';
6
+ export * from './util';
7
+ export * from './e-commerce';
File without changes
@@ -0,0 +1,5 @@
1
+ import { BreadcrumbItemType } from '../../components/custom/breadcrumb';
2
+ export default function DefaultPanelLayout({ children, breadcrumbs, }: {
3
+ children: React.ReactNode;
4
+ breadcrumbs?: BreadcrumbItemType[];
5
+ }): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,2 @@
1
+ import { ClassValue } from 'clsx';
2
+ export declare function cn(...inputs: ClassValue[]): string;
@@ -0,0 +1 @@
1
+ export * from './theme-provider';
@@ -0,0 +1,13 @@
1
+ type Theme = "dark" | "light" | "system";
2
+ type ThemeProviderProps = {
3
+ children: React.ReactNode;
4
+ defaultTheme?: Theme;
5
+ storageKey?: string;
6
+ };
7
+ type ThemeProviderState = {
8
+ theme: Theme;
9
+ setTheme: (theme: Theme) => void;
10
+ };
11
+ export declare function ThemeProvider({ children, defaultTheme, storageKey, ...props }: ThemeProviderProps): import("react/jsx-runtime").JSX.Element;
12
+ export declare const useTheme: () => ThemeProviderState;
13
+ export {};
@@ -0,0 +1,8 @@
1
+ import { ACLState, ACLActions } from '../types/acl';
2
+ /**
3
+ * ACL Store for managing the access related configrations and checks
4
+ */
5
+ export declare const useACLStore: import('zustand').UseBoundStore<Omit<import('zustand').StoreApi<ACLState & import('../../lib/stores/store-factory').BaseActions<ACLState> & ACLActions>, "setState"> & {
6
+ setState(nextStateOrUpdater: (ACLState & import('../../lib/stores/store-factory').BaseActions<ACLState> & ACLActions) | Partial<ACLState & import('../../lib/stores/store-factory').BaseActions<ACLState> & ACLActions> | ((state: import('immer').WritableDraft<ACLState & import('../../lib/stores/store-factory').BaseActions<ACLState> & ACLActions>) => void), shouldReplace?: false): void;
7
+ setState(nextStateOrUpdater: (ACLState & import('../../lib/stores/store-factory').BaseActions<ACLState> & ACLActions) | ((state: import('immer').WritableDraft<ACLState & import('../../lib/stores/store-factory').BaseActions<ACLState> & ACLActions>) => void), shouldReplace: true): void;
8
+ }>;
@@ -0,0 +1,10 @@
1
+ import { AppConfig } from '../types/config';
2
+ interface ConfigActions {
3
+ toggleTheme: (theme?: AppConfig["theme"]) => void;
4
+ toggleFeature: (key: keyof AppConfig["features"]) => void;
5
+ }
6
+ export declare const useConfigStore: import('zustand').UseBoundStore<Omit<import('zustand').StoreApi<AppConfig & import('./store-factory').BaseActions<AppConfig> & ConfigActions>, "setState"> & {
7
+ setState(nextStateOrUpdater: (AppConfig & import('./store-factory').BaseActions<AppConfig> & ConfigActions) | Partial<AppConfig & import('./store-factory').BaseActions<AppConfig> & ConfigActions> | ((state: import('immer').WritableDraft<AppConfig & import('./store-factory').BaseActions<AppConfig> & ConfigActions>) => void), shouldReplace?: false): void;
8
+ setState(nextStateOrUpdater: (AppConfig & import('./store-factory').BaseActions<AppConfig> & ConfigActions) | ((state: import('immer').WritableDraft<AppConfig & import('./store-factory').BaseActions<AppConfig> & ConfigActions>) => void), shouldReplace: true): void;
9
+ }>;
10
+ export {};
@@ -0,0 +1,4 @@
1
+ export * from './acl.store';
2
+ export * from './config.store';
3
+ export * from './store-factory';
4
+ export * from './useStore';
@@ -0,0 +1,17 @@
1
+ /**
2
+ * Define Base Actions for the factory
3
+ */
4
+ export interface BaseActions<T> {
5
+ update: (fn: (state: T) => void) => void;
6
+ reset: () => void;
7
+ }
8
+ /**
9
+ * Generic store factory that will be used to create a store.
10
+ */
11
+ export declare const createGenericStore: <TState extends object, TCustomActions = {}>(initialState: TState, options?: {
12
+ name?: string;
13
+ methods?: (set: (fn: (state: TState) => void) => void, get: () => TState & BaseActions<TState> & TCustomActions) => TCustomActions;
14
+ }) => import('zustand').UseBoundStore<Omit<import('zustand').StoreApi<TState & BaseActions<TState> & TCustomActions>, "setState"> & {
15
+ setState(nextStateOrUpdater: Exclude<TState & BaseActions<TState> & TCustomActions, (...args: any[]) => any> | Partial<Exclude<TState & BaseActions<TState> & TCustomActions, (...args: any[]) => any>> | ((state: import('immer').Draft<Exclude<TState & BaseActions<TState> & TCustomActions, (...args: any[]) => any>>) => void), shouldReplace?: false): void;
16
+ setState(nextStateOrUpdater: Exclude<TState & BaseActions<TState> & TCustomActions, (...args: any[]) => any> | ((state: import('immer').Draft<Exclude<TState & BaseActions<TState> & TCustomActions, (...args: any[]) => any>>) => void), shouldReplace: true): void;
17
+ }>;
@@ -0,0 +1,43 @@
1
+ import { Product, Category } from '../e-commerce/product/types';
2
+ interface CatalogState {
3
+ products: Product[];
4
+ total: number;
5
+ loading: boolean;
6
+ searchQuery: string;
7
+ filters: Record<string, any>;
8
+ sortOrder: "asc" | "desc";
9
+ sortBy: string;
10
+ viewMode: "list" | "card" | "table";
11
+ page: number;
12
+ pageSize: number;
13
+ setSearchQuery: (query: string) => void;
14
+ setFilters: (filters: Record<string, any>) => void;
15
+ setSortOrder: (order: "asc" | "desc") => void;
16
+ setSortBy: (by: string) => void;
17
+ setViewMode: (mode: "list" | "card" | "table") => void;
18
+ setPage: (page: number) => void;
19
+ fetchProducts: () => Promise<void>;
20
+ }
21
+ interface ProductCardState {
22
+ wishlist: number[];
23
+ activeProductId?: number | null;
24
+ toggleWishlist: (productId: number) => void;
25
+ isWishlisted: (productId: number) => boolean;
26
+ viewDetails: (productId: number) => void;
27
+ closeDetails: () => void;
28
+ }
29
+ interface CartState {
30
+ cart: Record<number, number>;
31
+ addToCart: (productId: number, qty?: number) => void;
32
+ removeFromCart: (productId: number) => void;
33
+ getCartQuantity: (productId: number) => number;
34
+ }
35
+ interface CategoryState {
36
+ selectedCategory: Category | null;
37
+ setSelectedCategory: (cat: Category | Record<string, any>) => void;
38
+ }
39
+ export declare const useCatalogStore: import('zustand').UseBoundStore<import('zustand').StoreApi<CatalogState>>;
40
+ export declare const useProductCardStore: import('zustand').UseBoundStore<import('zustand').StoreApi<ProductCardState>>;
41
+ export declare const useCartStore: import('zustand').UseBoundStore<import('zustand').StoreApi<CartState>>;
42
+ export declare const useCategoryStore: import('zustand').UseBoundStore<import('zustand').StoreApi<CategoryState>>;
43
+ export {};
@@ -0,0 +1,31 @@
1
+ export type Role = string;
2
+ export type Permission = string;
3
+ export type Accessor = Role | Permission | string;
4
+ export interface ACLConfig {
5
+ mode: 'local' | 'remote';
6
+ /**
7
+ * Group definitions.
8
+ * Example: { "staff": ["admin", "manager"], "public": ["guest"] }
9
+ */
10
+ groups?: Record<string, Role[]>;
11
+ /**
12
+ * Permission definitions.
13
+ * Example: { "manager": ["product.create", "product.edit"] }
14
+ */
15
+ permissions?: Record<Role, Permission[]>;
16
+ /**
17
+ * Optional fetcher for remote mode
18
+ */
19
+ fetchRemoteConfig?: () => Promise<{
20
+ groups?: Record<string, Role[]>;
21
+ permissions?: Record<Role, Permission[]>;
22
+ }>;
23
+ }
24
+ export interface ACLState {
25
+ config: ACLConfig;
26
+ isReady: boolean;
27
+ }
28
+ export interface ACLActions {
29
+ configure: (config: ACLConfig) => Promise<void>;
30
+ check: (userRoles: Role[], accessor: Accessor | Accessor[], matchAll?: boolean) => boolean;
31
+ }
@@ -0,0 +1,12 @@
1
+ /**
2
+ * Global configuration for the framework
3
+ */
4
+ export interface AppConfig {
5
+ theme: "light" | "dark";
6
+ currency: "USD" | "LKR" | "EUR";
7
+ features: {
8
+ reviewsEnabled: boolean;
9
+ wishlistEnabled: boolean;
10
+ productZoom: boolean;
11
+ };
12
+ }
@@ -0,0 +1,2 @@
1
+ export * from './config';
2
+ export * from './acl';
@@ -0,0 +1,17 @@
1
+ declare const _default: {
2
+ "$": "USD",
3
+ "€": "EUR",
4
+ "£": "GBP",
5
+ "¥": "JPY",
6
+ "₹": "INR",
7
+ "₽": "RUB",
8
+ "₩": "KRW",
9
+ "₪": "ILS",
10
+ "฿": "THB",
11
+ "₫": "VND",
12
+ "₺": "TRY",
13
+ "₱": "PHP",
14
+ "Fr": "CHF"
15
+ };
16
+
17
+ export default _default;
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Resolves a currency code to the symbol from a given currency code.
3
+ * @param code The code string to resolve the currency code from.
4
+ * @returns The resolved currency code.
5
+ */
6
+ export default function resolveCurrencySymbol(code?: string): string;
@@ -0,0 +1,2 @@
1
+ export * from './currency-code';
2
+ export * from './text-filter';
@@ -0,0 +1,6 @@
1
+ /**
2
+ * generate a fallback letter for avatar using the first 2 letters of each word. if only a single word exisits the first 2 letters or single letter
3
+ * @param name
4
+ * @returns
5
+ */
6
+ export declare function AvatarFallbackLetter(name: string): string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "arkenstone-ui",
3
- "version": "0.0.16",
3
+ "version": "0.0.18",
4
4
  "type": "module",
5
5
  "main": "./dist/arkenstone-ui.umd.js",
6
6
  "module": "./dist/arkenstone-ui.es.js",
@@ -25,8 +25,7 @@
25
25
  },
26
26
  "peerDependencies": {
27
27
  "react": "^19.2.0",
28
- "react-dom": "^19.2.0",
29
- "tailwindcss": "^4.0.0"
28
+ "react-dom": "^19.2.0"
30
29
  },
31
30
  "devDependencies": {
32
31
  "@chromatic-com/storybook": "^4.1.2",
@@ -35,21 +34,55 @@
35
34
  "@storybook/addon-onboarding": "^10.0.7",
36
35
  "@storybook/addon-vitest": "^10.0.7",
37
36
  "@storybook/react-vite": "^10.0.7",
37
+ "@tailwindcss/vite": "^4.1.17",
38
38
  "@types/node": "^24.10.1",
39
39
  "@types/react": "^19.2.2",
40
40
  "@types/react-dom": "^19.2.2",
41
41
  "@vitejs/plugin-react": "^5.1.0",
42
42
  "@vitest/browser-playwright": "^4.0.9",
43
43
  "@vitest/coverage-v8": "^4.0.9",
44
- "autoprefixer": "^10.4.22",
45
44
  "eslint-plugin-storybook": "^10.0.7",
46
45
  "playwright": "^1.56.1",
47
- "postcss": "^8.5.6",
48
46
  "storybook": "^10.0.7",
49
- "tailwindcss": "^4.1.17",
47
+ "tw-animate-css": "^1.4.0",
50
48
  "typescript": "^5.4.0",
51
49
  "vite": "^5.4.10",
52
50
  "vite-plugin-dts": "^4.5.4",
53
51
  "vitest": "^4.0.9"
52
+ },
53
+ "dependencies": {
54
+ "@inertiajs/react": "^2.2.18",
55
+ "@radix-ui/react-avatar": "^1.1.11",
56
+ "@radix-ui/react-collapsible": "^1.1.12",
57
+ "@radix-ui/react-dialog": "^1.1.15",
58
+ "@radix-ui/react-dropdown-menu": "^2.1.16",
59
+ "@radix-ui/react-hover-card": "^1.1.15",
60
+ "@radix-ui/react-separator": "^1.1.8",
61
+ "@radix-ui/react-slot": "^1.2.4",
62
+ "@radix-ui/react-tooltip": "^1.2.8",
63
+ "@radix-ui/react-accordion": "^1.2.8",
64
+ "@radix-ui/react-checkbox": "^1.1.4",
65
+ "@radix-ui/react-label": "^2.1.3",
66
+ "@radix-ui/react-navigation-menu": "^1.2.5",
67
+ "@radix-ui/react-popover": "^1.1.15",
68
+ "@radix-ui/react-scroll-area": "^1.2.3",
69
+ "@radix-ui/react-select": "^2.1.7",
70
+ "@radix-ui/react-tabs": "^1.1.3",
71
+ "@radix-ui/react-toggle": "^1.1.2",
72
+ "@radix-ui/react-toggle-group": "^1.1.2",
73
+ "@tanstack/react-table": "^8.21.3",
74
+ "axios": "^1.13.2",
75
+ "class-variance-authority": "^0.7.1",
76
+ "clsx": "^2.1.1",
77
+ "immer": "^11.0.0",
78
+ "lucide-react": "^0.553.0",
79
+ "sonner": "^2.0.7",
80
+ "tailwind-merge": "^3.4.0",
81
+ "tailwindcss": "^4.1.17",
82
+ "react-day-picker": "^9.9.0",
83
+ "next-themes": "^0.4.6",
84
+ "recharts": "^2.15.3",
85
+ "react-hook-form": "^7.62.0",
86
+ "zustand": "^5.0.8"
54
87
  }
55
88
  }
@@ -1,5 +0,0 @@
1
- export declare function Button({ children, className, active }: {
2
- children: React.ReactNode;
3
- className?: string;
4
- active?: boolean;
5
- }): import("react/jsx-runtime").JSX.Element;
@@ -1,3 +0,0 @@
1
- export declare function JanithNirmal({ name }: {
2
- name: string;
3
- }): import("react/jsx-runtime").JSX.Element;
@@ -1 +0,0 @@
1
- export default function Home(): import("react/jsx-runtime").JSX.Element;