@pelatform/ui 1.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (107) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +10 -0
  3. package/css/components/apexcharts.css +101 -0
  4. package/css/components/book.css +19 -0
  5. package/css/components/extra.css +12 -0
  6. package/css/components/image-input.css +51 -0
  7. package/css/components/leaflet.css +25 -0
  8. package/css/components/patterns.css +34 -0
  9. package/css/components/rating.css +89 -0
  10. package/css/components/scrollable.css +118 -0
  11. package/css/components/theme-transition.css +51 -0
  12. package/css/theme.css +237 -0
  13. package/dist/animation.cjs +1936 -0
  14. package/dist/animation.d.cts +379 -0
  15. package/dist/animation.d.ts +379 -0
  16. package/dist/animation.js +1936 -0
  17. package/dist/aria.cjs +139 -0
  18. package/dist/aria.d.cts +31 -0
  19. package/dist/aria.d.ts +31 -0
  20. package/dist/aria.js +139 -0
  21. package/dist/badge-BtI4BMea.d.cts +33 -0
  22. package/dist/badge-BtI4BMea.d.ts +33 -0
  23. package/dist/base.cjs +5559 -0
  24. package/dist/base.d.cts +651 -0
  25. package/dist/base.d.ts +651 -0
  26. package/dist/base.js +5559 -0
  27. package/dist/chunk-3N75YA6Q.cjs +60 -0
  28. package/dist/chunk-CD2BCCQU.js +180 -0
  29. package/dist/chunk-CJXIPSTG.cjs +10 -0
  30. package/dist/chunk-CYFW37N5.js +1355 -0
  31. package/dist/chunk-EZW5GNS4.js +6 -0
  32. package/dist/chunk-HW52LCWN.js +22 -0
  33. package/dist/chunk-I46SELBA.cjs +22 -0
  34. package/dist/chunk-J4JGE3U5.cjs +180 -0
  35. package/dist/chunk-KNS6QRVB.cjs +28 -0
  36. package/dist/chunk-OMPNDLGS.js +576 -0
  37. package/dist/chunk-RQHJBTEU.js +10 -0
  38. package/dist/chunk-S3QFGYE6.js +28 -0
  39. package/dist/chunk-SK6SSJHC.js +9 -0
  40. package/dist/chunk-T74DBLYY.js +60 -0
  41. package/dist/chunk-UP53DCYH.cjs +6 -0
  42. package/dist/chunk-VECBSKBC.cjs +576 -0
  43. package/dist/chunk-VSLPH2IR.cjs +1355 -0
  44. package/dist/chunk-ZDR3OZ7Z.cjs +9 -0
  45. package/dist/colors-CUDWvz1g.d.cts +42 -0
  46. package/dist/colors-CUDWvz1g.d.ts +42 -0
  47. package/dist/components-BgbIL9EW.d.cts +42 -0
  48. package/dist/components-BgbIL9EW.d.ts +42 -0
  49. package/dist/components.cjs +2276 -0
  50. package/dist/components.d.cts +2762 -0
  51. package/dist/components.d.ts +2762 -0
  52. package/dist/components.js +2276 -0
  53. package/dist/default.cjs +9081 -0
  54. package/dist/default.d.cts +1322 -0
  55. package/dist/default.d.ts +1322 -0
  56. package/dist/default.js +9081 -0
  57. package/dist/hooks.cjs +666 -0
  58. package/dist/hooks.d.cts +1176 -0
  59. package/dist/hooks.d.ts +1176 -0
  60. package/dist/hooks.js +666 -0
  61. package/dist/index.cjs +234 -0
  62. package/dist/index.d.cts +298 -0
  63. package/dist/index.d.ts +298 -0
  64. package/dist/index.js +234 -0
  65. package/dist/input-AwYIskrX.d.cts +22 -0
  66. package/dist/input-AwYIskrX.d.ts +22 -0
  67. package/dist/menu-GmSRfRGB.d.cts +43 -0
  68. package/dist/menu-GmSRfRGB.d.ts +43 -0
  69. package/dist/metafile-cjs.json +1 -0
  70. package/dist/metafile-esm.json +1 -0
  71. package/dist/re-export/cva.cjs +6 -0
  72. package/dist/re-export/cva.d.cts +9 -0
  73. package/dist/re-export/cva.d.ts +9 -0
  74. package/dist/re-export/cva.js +6 -0
  75. package/dist/re-export/motion.cjs +2 -0
  76. package/dist/re-export/motion.d.cts +1 -0
  77. package/dist/re-export/motion.d.ts +1 -0
  78. package/dist/re-export/motion.js +2 -0
  79. package/dist/re-export/next-themes.cjs +2 -0
  80. package/dist/re-export/next-themes.d.cts +1 -0
  81. package/dist/re-export/next-themes.d.ts +1 -0
  82. package/dist/re-export/next-themes.js +2 -0
  83. package/dist/re-export/react-day-picker.cjs +2 -0
  84. package/dist/re-export/react-day-picker.d.cts +1 -0
  85. package/dist/re-export/react-day-picker.d.ts +1 -0
  86. package/dist/re-export/react-day-picker.js +2 -0
  87. package/dist/re-export/react-hook-form.cjs +2 -0
  88. package/dist/re-export/react-hook-form.d.cts +1 -0
  89. package/dist/re-export/react-hook-form.d.ts +1 -0
  90. package/dist/re-export/react-hook-form.js +2 -0
  91. package/dist/re-export/sonner.cjs +2 -0
  92. package/dist/re-export/sonner.d.cts +1 -0
  93. package/dist/re-export/sonner.d.ts +1 -0
  94. package/dist/re-export/sonner.js +2 -0
  95. package/dist/re-export/tanstack-query.cjs +2 -0
  96. package/dist/re-export/tanstack-query.d.cts +1 -0
  97. package/dist/re-export/tanstack-query.d.ts +1 -0
  98. package/dist/re-export/tanstack-query.js +2 -0
  99. package/dist/re-export/tanstack-table.cjs +2 -0
  100. package/dist/re-export/tanstack-table.d.cts +1 -0
  101. package/dist/re-export/tanstack-table.d.ts +1 -0
  102. package/dist/re-export/tanstack-table.js +2 -0
  103. package/dist/re-export/zod.cjs +2 -0
  104. package/dist/re-export/zod.d.cts +1 -0
  105. package/dist/re-export/zod.d.ts +1 -0
  106. package/dist/re-export/zod.js +2 -0
  107. package/package.json +171 -0
@@ -0,0 +1,9 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});// src/hooks/use-toast.ts
2
+ var _toast = require('@base-ui-components/react/toast');
3
+ var toastManager = _toast.Toast.createToastManager();
4
+ var useToast = _toast.Toast.useToastManager;
5
+
6
+
7
+
8
+
9
+ exports.toastManager = toastManager; exports.useToast = useToast;
@@ -0,0 +1,42 @@
1
+ /**
2
+ * Theme configuration for the application
3
+ * Handles light, dark, and system theme modes with their respective colors
4
+ */
5
+ /**
6
+ * Available theme modes in the application
7
+ * - light: Force light theme
8
+ * - dark: Force dark theme
9
+ * - system: Follow system/OS preference (auto-detect)
10
+ */
11
+ declare const THEME_MODES: {
12
+ readonly LIGHT: "light";
13
+ readonly DARK: "dark";
14
+ readonly SYSTEM: "system";
15
+ };
16
+ /**
17
+ * Type definition for theme modes
18
+ */
19
+ type ThemeMode = (typeof THEME_MODES)[keyof typeof THEME_MODES];
20
+ /**
21
+ * Meta theme colors for different theme modes
22
+ * Used for:
23
+ * - HTML meta theme-color tags
24
+ * - Browser address bar coloring
25
+ * - PWA theme colors
26
+ * - System theme integration
27
+ */
28
+ declare const META_THEME_COLORS: {
29
+ /** Light theme color - Pure white for clean, bright appearance */
30
+ readonly light: "#ffffff";
31
+ /** Dark theme color - Near black with slight warmth to reduce eye strain */
32
+ readonly dark: "#09090b";
33
+ /** System theme - Will be determined by user's OS preference */
34
+ readonly system: "auto";
35
+ };
36
+ /**
37
+ * Default theme mode when no preference is set
38
+ * Falls back to system preference to respect user's OS settings
39
+ */
40
+ declare const DEFAULT_THEME_MODE: ThemeMode;
41
+
42
+ export { DEFAULT_THEME_MODE as D, META_THEME_COLORS as M, THEME_MODES as T, type ThemeMode as a };
@@ -0,0 +1,42 @@
1
+ /**
2
+ * Theme configuration for the application
3
+ * Handles light, dark, and system theme modes with their respective colors
4
+ */
5
+ /**
6
+ * Available theme modes in the application
7
+ * - light: Force light theme
8
+ * - dark: Force dark theme
9
+ * - system: Follow system/OS preference (auto-detect)
10
+ */
11
+ declare const THEME_MODES: {
12
+ readonly LIGHT: "light";
13
+ readonly DARK: "dark";
14
+ readonly SYSTEM: "system";
15
+ };
16
+ /**
17
+ * Type definition for theme modes
18
+ */
19
+ type ThemeMode = (typeof THEME_MODES)[keyof typeof THEME_MODES];
20
+ /**
21
+ * Meta theme colors for different theme modes
22
+ * Used for:
23
+ * - HTML meta theme-color tags
24
+ * - Browser address bar coloring
25
+ * - PWA theme colors
26
+ * - System theme integration
27
+ */
28
+ declare const META_THEME_COLORS: {
29
+ /** Light theme color - Pure white for clean, bright appearance */
30
+ readonly light: "#ffffff";
31
+ /** Dark theme color - Near black with slight warmth to reduce eye strain */
32
+ readonly dark: "#09090b";
33
+ /** System theme - Will be determined by user's OS preference */
34
+ readonly system: "auto";
35
+ };
36
+ /**
37
+ * Default theme mode when no preference is set
38
+ * Falls back to system preference to respect user's OS settings
39
+ */
40
+ declare const DEFAULT_THEME_MODE: ThemeMode;
41
+
42
+ export { DEFAULT_THEME_MODE as D, META_THEME_COLORS as M, THEME_MODES as T, type ThemeMode as a };
@@ -0,0 +1,42 @@
1
+ import { ReactNode, ComponentType } from 'react';
2
+
3
+ /**
4
+ * Base props interface for all components
5
+ * Includes common properties used across multiple components
6
+ */
7
+ interface BaseProps {
8
+ /** Child elements to render inside the component */
9
+ children: ReactNode;
10
+ /** Additional CSS classes for the component */
11
+ className?: string;
12
+ }
13
+ /**
14
+ * Image component type definition
15
+ * Defines the interface for image components used throughout the application
16
+ */
17
+ type Image = ComponentType<{
18
+ /** Source URL of the image */
19
+ src: string;
20
+ /** Alt text for accessibility */
21
+ alt: string;
22
+ /** Additional CSS classes */
23
+ className?: string;
24
+ }>;
25
+ /**
26
+ * Link component type definition
27
+ * Defines the interface for link components used throughout the application
28
+ */
29
+ type Link = ComponentType<{
30
+ /** Link content */
31
+ children: ReactNode;
32
+ /** Destination URL */
33
+ href: string;
34
+ /** Target attribute */
35
+ target?: '_blank' | '_self' | '_parent' | '_top';
36
+ /** Additional CSS classes */
37
+ className?: string;
38
+ /** Click handler */
39
+ onClick?: (event: React.MouseEvent<HTMLAnchorElement>) => void;
40
+ }>;
41
+
42
+ export type { BaseProps as B, Image as I, Link as L };
@@ -0,0 +1,42 @@
1
+ import { ReactNode, ComponentType } from 'react';
2
+
3
+ /**
4
+ * Base props interface for all components
5
+ * Includes common properties used across multiple components
6
+ */
7
+ interface BaseProps {
8
+ /** Child elements to render inside the component */
9
+ children: ReactNode;
10
+ /** Additional CSS classes for the component */
11
+ className?: string;
12
+ }
13
+ /**
14
+ * Image component type definition
15
+ * Defines the interface for image components used throughout the application
16
+ */
17
+ type Image = ComponentType<{
18
+ /** Source URL of the image */
19
+ src: string;
20
+ /** Alt text for accessibility */
21
+ alt: string;
22
+ /** Additional CSS classes */
23
+ className?: string;
24
+ }>;
25
+ /**
26
+ * Link component type definition
27
+ * Defines the interface for link components used throughout the application
28
+ */
29
+ type Link = ComponentType<{
30
+ /** Link content */
31
+ children: ReactNode;
32
+ /** Destination URL */
33
+ href: string;
34
+ /** Target attribute */
35
+ target?: '_blank' | '_self' | '_parent' | '_top';
36
+ /** Additional CSS classes */
37
+ className?: string;
38
+ /** Click handler */
39
+ onClick?: (event: React.MouseEvent<HTMLAnchorElement>) => void;
40
+ }>;
41
+
42
+ export type { BaseProps as B, Image as I, Link as L };