pelatform-ui 1.1.21 → 1.2.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 (46) hide show
  1. package/README.md +60 -42
  2. package/css/animations.css +48 -0
  3. package/css/shadcn/gray.css +105 -0
  4. package/css/shadcn/neutral.css +105 -0
  5. package/css/shadcn/slate.css +105 -0
  6. package/css/shadcn/stone.css +105 -0
  7. package/css/shadcn/zinc.css +105 -0
  8. package/css/styles/style-lyra.css +1335 -0
  9. package/css/styles/style-maia.css +1360 -0
  10. package/css/styles/style-mira.css +1362 -0
  11. package/css/styles/style-nova.css +1360 -0
  12. package/css/styles/style-vega.css +1356 -0
  13. package/css/theme.css +122 -182
  14. package/dist/animation.d.ts +3 -7
  15. package/dist/animation.js +1 -1
  16. package/dist/base.d.ts +1 -1
  17. package/dist/base.js +1 -1
  18. package/dist/chunk-7EOSDFS3.js +10 -0
  19. package/dist/chunk-HW52LCWN.js +22 -0
  20. package/dist/{chunk-M2YFAZ2T.js → chunk-NOAZYT3J.js} +5 -1
  21. package/dist/colors-CUDWvz1g.d.ts +42 -0
  22. package/dist/components-B1rw2xzN.d.ts +46 -0
  23. package/dist/components.d.ts +23 -224
  24. package/dist/components.js +2283 -619
  25. package/dist/hooks.d.ts +2 -2
  26. package/dist/hooks.js +2 -1
  27. package/dist/index.d.ts +130 -2
  28. package/dist/index.js +636 -3
  29. package/dist/radix.d.ts +1 -0
  30. package/dist/radix.js +2 -0
  31. package/package.json +49 -33
  32. package/css/components/apexcharts.css +0 -101
  33. package/css/components/book.css +0 -19
  34. package/css/components/extra.css +0 -12
  35. package/css/components/image-input.css +0 -51
  36. package/css/components/leaflet.css +0 -25
  37. package/css/components/patterns.css +0 -34
  38. package/css/components/rating.css +0 -89
  39. package/css/components/scrollable.css +0 -118
  40. package/css/components/theme-transition.css +0 -51
  41. package/dist/aria.d.ts +0 -1
  42. package/dist/aria.js +0 -2
  43. package/dist/default.d.ts +0 -1
  44. package/dist/default.js +0 -2
  45. package/dist/server.d.ts +0 -1
  46. package/dist/server.js +0 -2
package/dist/hooks.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  export * from '@pelatform/ui.hook';
2
- import { META_THEME_COLORS } from '@pelatform/utils';
2
+ import { M as META_THEME_COLORS } from './colors-CUDWvz1g.js';
3
3
 
4
4
  /**
5
5
  * Meta theme color management hook for React components
@@ -85,7 +85,7 @@ import { META_THEME_COLORS } from '@pelatform/utils';
85
85
  */
86
86
  declare function useMetaColor(defaultColors?: typeof META_THEME_COLORS): {
87
87
  /** Current meta theme color based on resolved theme */
88
- metaColor: "#09090b" | "#ffffff";
88
+ metaColor: "#ffffff" | "#09090b";
89
89
  /** Function to manually set meta theme color */
90
90
  setMetaColor: (color: string) => void;
91
91
  };
package/dist/hooks.js CHANGED
@@ -1,6 +1,7 @@
1
1
  import {
2
2
  useMetaColor
3
- } from "./chunk-M2YFAZ2T.js";
3
+ } from "./chunk-NOAZYT3J.js";
4
+ import "./chunk-HW52LCWN.js";
4
5
 
5
6
  // src/hooks.ts
6
7
  export * from "@pelatform/ui.hook";
package/dist/index.d.ts CHANGED
@@ -1,2 +1,130 @@
1
- export * from '@pelatform/ui.general';
2
- export * from '@pelatform/utils';
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import React__default, { ComponentType, SVGProps } from 'react';
3
+ import { ClassValue } from 'clsx';
4
+ export { D as DEFAULT_THEME_MODE, M as META_THEME_COLORS, T as THEME_MODES, a as ThemeMode } from './colors-CUDWvz1g.js';
5
+ export { B as BaseComponentProps, I as ImageComponentProps, L as LinkComponentProps } from './components-B1rw2xzN.js';
6
+
7
+ /**
8
+ * Props interface for icon components
9
+ * Extends standard HTML SVG element attributes for full customization
10
+ */
11
+ type IconProps = React__default.HTMLAttributes<SVGElement>;
12
+ /**
13
+ * Collection of brand and service icons
14
+ *
15
+ * This object contains SVG icons for popular brands, services, and technologies.
16
+ * All icons are designed to be scalable and themeable using CSS currentColor.
17
+ * Icon keys use PascalCase (capitalized first letter) for consistency.
18
+ *
19
+ * @example
20
+ * ```tsx
21
+ * // Basic usage
22
+ * <Icons.Google className="w-6 h-6" />
23
+ *
24
+ * // With custom styling
25
+ * <Icons.Github
26
+ * className="w-8 h-8 text-gray-600 hover:text-gray-900"
27
+ * onClick={handleGitHubClick}
28
+ * />
29
+ *
30
+ * // Colorful variants
31
+ * <Icons.GoogleColorful className="w-10 h-10" />
32
+ * <Icons.FacebookColorful className="w-10 h-10" />
33
+ * ```
34
+ */
35
+ declare const Icons: {
36
+ Anthropic: (props: IconProps) => react_jsx_runtime.JSX.Element;
37
+ Apple: (props: IconProps) => react_jsx_runtime.JSX.Element;
38
+ Aria: (props: IconProps) => react_jsx_runtime.JSX.Element;
39
+ Discord: (props: IconProps) => react_jsx_runtime.JSX.Element;
40
+ Dropbox: (props: IconProps) => react_jsx_runtime.JSX.Element;
41
+ Facebook: (props: IconProps) => react_jsx_runtime.JSX.Element;
42
+ FacebookColorful: (props: IconProps) => react_jsx_runtime.JSX.Element;
43
+ Github: (props: IconProps) => react_jsx_runtime.JSX.Element;
44
+ Gitlab: (props: IconProps) => react_jsx_runtime.JSX.Element;
45
+ Google: (props: IconProps) => react_jsx_runtime.JSX.Element;
46
+ GoogleColorful: (props: IconProps) => react_jsx_runtime.JSX.Element;
47
+ Huggingface: (props: IconProps) => react_jsx_runtime.JSX.Element;
48
+ Instagram: (props: IconProps) => react_jsx_runtime.JSX.Element;
49
+ Kick: (props: IconProps) => react_jsx_runtime.JSX.Element;
50
+ Linear: (props: IconProps) => react_jsx_runtime.JSX.Element;
51
+ Linkedin: (props: IconProps) => react_jsx_runtime.JSX.Element;
52
+ LinkedinColorful: (props: IconProps) => react_jsx_runtime.JSX.Element;
53
+ Microsoft: (props: IconProps) => react_jsx_runtime.JSX.Element;
54
+ Nextjs: (props: IconProps) => react_jsx_runtime.JSX.Element;
55
+ Notion: (props: IconProps) => react_jsx_runtime.JSX.Element;
56
+ Npm: (props: IconProps) => react_jsx_runtime.JSX.Element;
57
+ Openai: (props: IconProps) => react_jsx_runtime.JSX.Element;
58
+ Paypal: (props: IconProps) => react_jsx_runtime.JSX.Element;
59
+ Pelatform: (props: IconProps) => react_jsx_runtime.JSX.Element;
60
+ Pnpm: (props: IconProps) => react_jsx_runtime.JSX.Element;
61
+ Postgresql: (props: IconProps) => react_jsx_runtime.JSX.Element;
62
+ Prisma: (props: IconProps) => react_jsx_runtime.JSX.Element;
63
+ Radix: (props: IconProps) => react_jsx_runtime.JSX.Element;
64
+ Radixui: (props: IconProps) => react_jsx_runtime.JSX.Element;
65
+ React: (props: IconProps) => react_jsx_runtime.JSX.Element;
66
+ Reddit: (props: IconProps) => react_jsx_runtime.JSX.Element;
67
+ Roblox: (props: IconProps) => react_jsx_runtime.JSX.Element;
68
+ Scira: (props: IconProps) => react_jsx_runtime.JSX.Element;
69
+ Scribble: (props: IconProps) => react_jsx_runtime.JSX.Element;
70
+ Slack: (props: IconProps) => react_jsx_runtime.JSX.Element;
71
+ Spotify: (props: IconProps) => react_jsx_runtime.JSX.Element;
72
+ Supabase: (props: IconProps) => react_jsx_runtime.JSX.Element;
73
+ Tailwind: (props: IconProps) => react_jsx_runtime.JSX.Element;
74
+ Telegram: (props: IconProps) => react_jsx_runtime.JSX.Element;
75
+ Tiktok: (props: IconProps) => react_jsx_runtime.JSX.Element;
76
+ Twitch: (props: IconProps) => react_jsx_runtime.JSX.Element;
77
+ Twitter: (props: IconProps) => react_jsx_runtime.JSX.Element;
78
+ Vk: (props: IconProps) => react_jsx_runtime.JSX.Element;
79
+ WhatsApp: (props: IconProps) => react_jsx_runtime.JSX.Element;
80
+ X: (props: IconProps) => react_jsx_runtime.JSX.Element;
81
+ Yarn: (props: IconProps) => react_jsx_runtime.JSX.Element;
82
+ Youtube: (props: IconProps) => react_jsx_runtime.JSX.Element;
83
+ Zoom: (props: IconProps) => react_jsx_runtime.JSX.Element;
84
+ };
85
+
86
+ declare function cn(...inputs: ClassValue[]): string;
87
+
88
+ /**
89
+ * Menu item interface
90
+ */
91
+ interface MenuItem {
92
+ /** Heading text */
93
+ heading?: string;
94
+ /** Menu item title */
95
+ title?: string;
96
+ /** Navigation path */
97
+ path?: string;
98
+ /** Menu item icon component */
99
+ icon?: ComponentType<SVGProps<SVGSVGElement>>;
100
+ /** Whether to show separator */
101
+ separator?: boolean;
102
+ /** Root path for active state matching */
103
+ rootPath?: string;
104
+ /** Child menu items */
105
+ children?: MenuConfig;
106
+ /** Children index for nested items */
107
+ childrenIndex?: number;
108
+ /** Whether the item is external */
109
+ external?: boolean;
110
+ /** Whether the item is disabled */
111
+ disabled?: boolean;
112
+ /** Disable text */
113
+ disabledText?: string;
114
+ /** Badge text */
115
+ badge?: string;
116
+ /** Badge variant */
117
+ badgeVariant?: "primary" | "destructive" | "success" | "info" | "warning" | "secondary" | "outline";
118
+ /** Collapse configuration */
119
+ collapse?: boolean;
120
+ /** Title when collapsed */
121
+ collapseTitle?: string;
122
+ /** Title when expanded */
123
+ expandTitle?: string;
124
+ }
125
+ /**
126
+ * Type aliases for backward compatibility
127
+ */
128
+ type MenuConfig = MenuItem[];
129
+
130
+ export { Icons, type MenuConfig, type MenuItem, cn };