pelatform-ui 1.2.9 → 1.3.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 (42) hide show
  1. package/README.md +254 -120
  2. package/css/theme.css +1 -59
  3. package/dist/animation.d.ts +379 -3
  4. package/dist/animation.js +1785 -2
  5. package/dist/badge-Rr33PgV_.d.ts +15 -0
  6. package/dist/base.d.ts +1452 -1
  7. package/dist/base.js +12148 -2
  8. package/dist/button-Bc3N6jWT.d.ts +22 -0
  9. package/dist/chunk-4Z3DBWB6.js +193 -0
  10. package/dist/chunk-NW6KWHKZ.js +22 -0
  11. package/dist/chunk-Q2RH7YQE.js +857 -0
  12. package/dist/{chunk-NOAZYT3J.js → chunk-V3ET2B55.js} +2 -4
  13. package/dist/chunk-XKN6BR2K.js +59 -0
  14. package/dist/components.d.ts +472 -2129
  15. package/dist/components.js +969 -1421
  16. package/dist/hooks.d.ts +1197 -4
  17. package/dist/hooks.js +912 -5
  18. package/dist/index.d.ts +7 -84
  19. package/dist/index.js +1 -623
  20. package/dist/radix.d.ts +1440 -1
  21. package/dist/radix.js +11360 -2
  22. package/package.json +33 -22
  23. package/css/components/apexcharts.css +0 -101
  24. package/css/components/book.css +0 -19
  25. package/css/components/extra.css +0 -12
  26. package/css/components/image-input.css +0 -51
  27. package/css/components/leaflet.css +0 -25
  28. package/css/components/patterns.css +0 -34
  29. package/css/components/rating.css +0 -89
  30. package/css/components/scrollable.css +0 -118
  31. package/css/components/theme-transition.css +0 -51
  32. package/dist/chunk-HW52LCWN.js +0 -22
  33. package/dist/chunk-QEWGMDVY.js +0 -10
  34. package/dist/colors-CUDWvz1g.d.ts +0 -42
  35. package/dist/components-B1rw2xzN.d.ts +0 -46
  36. package/dist/utils.d.ts +0 -6
  37. package/dist/utils.js +0 -14
  38. /package/css/{shadcn → color}/gray.css +0 -0
  39. /package/css/{shadcn → color}/neutral.css +0 -0
  40. /package/css/{shadcn → color}/slate.css +0 -0
  41. /package/css/{shadcn → color}/stone.css +0 -0
  42. /package/css/{shadcn → color}/zinc.css +0 -0
@@ -1,22 +0,0 @@
1
- // src/lib/colors.ts
2
- var THEME_MODES = {
3
- LIGHT: "light",
4
- DARK: "dark",
5
- SYSTEM: "system"
6
- };
7
- var META_THEME_COLORS = {
8
- /** Light theme color - Pure white for clean, bright appearance */
9
- [THEME_MODES.LIGHT]: "#ffffff",
10
- /** Dark theme color - Near black with slight warmth to reduce eye strain */
11
- [THEME_MODES.DARK]: "#09090b",
12
- /** System theme - Will be determined by user's OS preference */
13
- [THEME_MODES.SYSTEM]: "auto"
14
- // Special value indicating system preference
15
- };
16
- var DEFAULT_THEME_MODE = THEME_MODES.SYSTEM;
17
-
18
- export {
19
- THEME_MODES,
20
- META_THEME_COLORS,
21
- DEFAULT_THEME_MODE
22
- };
@@ -1,10 +0,0 @@
1
- // src/lib/cn.ts
2
- import { clsx } from "clsx";
3
- import { twMerge } from "tailwind-merge";
4
- function cn(...inputs) {
5
- return twMerge(clsx(inputs));
6
- }
7
-
8
- export {
9
- cn
10
- };
@@ -1,42 +0,0 @@
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 };
@@ -1,46 +0,0 @@
1
- import { ComponentType, ReactNode } from 'react';
2
-
3
- /**
4
- * Base props interface for all components
5
- * Includes common properties used across multiple components
6
- */
7
- interface BaseComponentProps {
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 ImageComponentProps = 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
- /** Width of the image */
25
- width?: number;
26
- /** Height of the image */
27
- height?: number;
28
- }>;
29
- /**
30
- * Link component type definition
31
- * Defines the interface for link components used throughout the application
32
- */
33
- type LinkComponentProps = ComponentType<{
34
- /** Link content */
35
- children: ReactNode;
36
- /** Destination URL */
37
- href: string;
38
- /** Target attribute */
39
- target?: "_blank" | "_self" | "_parent" | "_top";
40
- /** Additional CSS classes */
41
- className?: string;
42
- /** Click handler */
43
- onClick?: (event: React.MouseEvent<HTMLAnchorElement>) => void;
44
- }>;
45
-
46
- export type { BaseComponentProps as B, ImageComponentProps as I, LinkComponentProps as L };
package/dist/utils.d.ts DELETED
@@ -1,6 +0,0 @@
1
- import { ClassValue } from 'clsx';
2
- export { D as DEFAULT_THEME_MODE, M as META_THEME_COLORS, T as THEME_MODES, a as ThemeMode } from './colors-CUDWvz1g.js';
3
-
4
- declare function cn(...inputs: ClassValue[]): string;
5
-
6
- export { cn };
package/dist/utils.js DELETED
@@ -1,14 +0,0 @@
1
- import {
2
- cn
3
- } from "./chunk-QEWGMDVY.js";
4
- import {
5
- DEFAULT_THEME_MODE,
6
- META_THEME_COLORS,
7
- THEME_MODES
8
- } from "./chunk-HW52LCWN.js";
9
- export {
10
- DEFAULT_THEME_MODE,
11
- META_THEME_COLORS,
12
- THEME_MODES,
13
- cn
14
- };
File without changes
File without changes
File without changes
File without changes
File without changes