@me1a/ui 2.0.15 → 2.0.16

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 (91) hide show
  1. package/dist/index.d.mts +1480 -22
  2. package/dist/index.d.ts +1480 -22
  3. package/dist/index.js +1 -1
  4. package/dist/index.js.map +1 -1
  5. package/dist/index.mjs +1 -1
  6. package/dist/index.mjs.map +1 -1
  7. package/package.json +2 -32
  8. package/dist/chunk-472YNZU2.mjs +0 -2
  9. package/dist/chunk-472YNZU2.mjs.map +0 -1
  10. package/dist/chunk-7ID4QLIR.js +0 -2
  11. package/dist/chunk-7ID4QLIR.js.map +0 -1
  12. package/dist/chunk-7NSRDJ5C.mjs +0 -2
  13. package/dist/chunk-7NSRDJ5C.mjs.map +0 -1
  14. package/dist/chunk-FWZYVYLU.mjs +0 -2
  15. package/dist/chunk-FWZYVYLU.mjs.map +0 -1
  16. package/dist/chunk-GATZOHQ6.js +0 -2
  17. package/dist/chunk-GATZOHQ6.js.map +0 -1
  18. package/dist/chunk-GH5JAZCC.js +0 -2
  19. package/dist/chunk-GH5JAZCC.js.map +0 -1
  20. package/dist/chunk-H3TEQK57.mjs +0 -2
  21. package/dist/chunk-H3TEQK57.mjs.map +0 -1
  22. package/dist/chunk-IPKT3LIP.js +0 -2
  23. package/dist/chunk-IPKT3LIP.js.map +0 -1
  24. package/dist/chunk-K7EIJSYQ.js +0 -2
  25. package/dist/chunk-K7EIJSYQ.js.map +0 -1
  26. package/dist/chunk-KITWXTCP.js +0 -2
  27. package/dist/chunk-KITWXTCP.js.map +0 -1
  28. package/dist/chunk-MD23GXSI.mjs +0 -2
  29. package/dist/chunk-MD23GXSI.mjs.map +0 -1
  30. package/dist/chunk-NCY2ZNET.js +0 -2
  31. package/dist/chunk-NCY2ZNET.js.map +0 -1
  32. package/dist/chunk-OAVWSSYJ.mjs +0 -2
  33. package/dist/chunk-OAVWSSYJ.mjs.map +0 -1
  34. package/dist/chunk-Q6STEQO7.js +0 -2
  35. package/dist/chunk-Q6STEQO7.js.map +0 -1
  36. package/dist/chunk-QY2HB6BB.mjs +0 -2
  37. package/dist/chunk-QY2HB6BB.mjs.map +0 -1
  38. package/dist/chunk-RMPK4VVB.js +0 -2
  39. package/dist/chunk-RMPK4VVB.js.map +0 -1
  40. package/dist/chunk-SWBVTAUB.mjs +0 -2
  41. package/dist/chunk-SWBVTAUB.mjs.map +0 -1
  42. package/dist/chunk-SXXL472R.mjs +0 -2
  43. package/dist/chunk-SXXL472R.mjs.map +0 -1
  44. package/dist/chunk-T26KLXLH.mjs +0 -2
  45. package/dist/chunk-T26KLXLH.mjs.map +0 -1
  46. package/dist/chunk-V6ISJWM6.js +0 -2
  47. package/dist/chunk-V6ISJWM6.js.map +0 -1
  48. package/dist/chunk-XY7LUWOK.mjs +0 -2
  49. package/dist/chunk-XY7LUWOK.mjs.map +0 -1
  50. package/dist/chunk-ZEUOBWG4.js +0 -2
  51. package/dist/chunk-ZEUOBWG4.js.map +0 -1
  52. package/dist/components/atoms/index.d.mts +0 -483
  53. package/dist/components/atoms/index.d.ts +0 -483
  54. package/dist/components/atoms/index.js +0 -2
  55. package/dist/components/atoms/index.js.map +0 -1
  56. package/dist/components/atoms/index.mjs +0 -2
  57. package/dist/components/atoms/index.mjs.map +0 -1
  58. package/dist/components/molecules/index.d.mts +0 -368
  59. package/dist/components/molecules/index.d.ts +0 -368
  60. package/dist/components/molecules/index.js +0 -2
  61. package/dist/components/molecules/index.js.map +0 -1
  62. package/dist/components/molecules/index.mjs +0 -2
  63. package/dist/components/molecules/index.mjs.map +0 -1
  64. package/dist/components/organisms/index.d.mts +0 -531
  65. package/dist/components/organisms/index.d.ts +0 -531
  66. package/dist/components/organisms/index.js +0 -2
  67. package/dist/components/organisms/index.js.map +0 -1
  68. package/dist/components/organisms/index.mjs +0 -2
  69. package/dist/components/organisms/index.mjs.map +0 -1
  70. package/dist/hooks/index.d.mts +0 -3
  71. package/dist/hooks/index.d.ts +0 -3
  72. package/dist/hooks/index.js +0 -2
  73. package/dist/hooks/index.js.map +0 -1
  74. package/dist/hooks/index.mjs +0 -2
  75. package/dist/hooks/index.mjs.map +0 -1
  76. package/dist/input-TJ_d3ROF.d.mts +0 -12
  77. package/dist/input-TJ_d3ROF.d.ts +0 -12
  78. package/dist/tooltip-Vd-UgSJF.d.mts +0 -104
  79. package/dist/tooltip-Vd-UgSJF.d.ts +0 -104
  80. package/dist/types/index.d.mts +0 -2
  81. package/dist/types/index.d.ts +0 -2
  82. package/dist/types/index.js +0 -2
  83. package/dist/types/index.js.map +0 -1
  84. package/dist/types/index.mjs +0 -2
  85. package/dist/types/index.mjs.map +0 -1
  86. package/dist/utils/index.d.mts +0 -5
  87. package/dist/utils/index.d.ts +0 -5
  88. package/dist/utils/index.js +0 -2
  89. package/dist/utils/index.js.map +0 -1
  90. package/dist/utils/index.mjs +0 -2
  91. package/dist/utils/index.mjs.map +0 -1
@@ -1,104 +0,0 @@
1
- import * as class_variance_authority_types from 'class-variance-authority/types';
2
- import * as React from 'react';
3
- import { VariantProps } from 'class-variance-authority';
4
- import * as TooltipPrimitive from '@radix-ui/react-tooltip';
5
-
6
- /**
7
- * Props interface for the Button component.
8
- * Extends the native button HTML attributes and adds support for variants and asChild prop.
9
- * Implements proper accessibility features and follows WCAG 2.1 Level AA guidelines.
10
- *
11
- * @interface ButtonProps
12
- * @extends {React.ButtonHTMLAttributes<HTMLButtonElement>}
13
- * @extends {VariantProps<typeof buttonVariants>}
14
- *
15
- * @property {boolean} [asChild] - When true, renders the button as a child component using Radix UI's Slot.
16
- * @property {ButtonVariant} [variant] - The visual style variant of the button.
17
- * @property {ButtonSize} [size] - The size variant of the button.
18
- * @property {string} [className] - Additional CSS classes to apply to the button.
19
- * @property {React.ReactNode} [startIcon] - Icon to display before the button text.
20
- * @property {React.ReactNode} [endIcon] - Icon to display after the button text.
21
- * @property {boolean} [loading] - Whether the button is in a loading state.
22
- * @property {string} [type] - The type of button (button, submit, reset). Defaults to "button".
23
- * @property {string} [aria-label] - Accessible label for the button. Falls back to button text if not provided.
24
- */
25
- interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
26
- asChild?: boolean;
27
- startIcon?: React.ReactNode;
28
- endIcon?: React.ReactNode;
29
- loading?: boolean;
30
- type?: "button" | "submit" | "reset";
31
- "aria-label"?: string;
32
- }
33
-
34
- /**
35
- * Button variant styles using class-variance-authority.
36
- * Defines the visual styles for different button variants and sizes.
37
- * Follows WCAG 2.1 Level AA guidelines for accessibility.
38
- *
39
- * @example
40
- * ```tsx
41
- * <Button variant="primary" size="lg">Click me</Button>
42
- * ```
43
- */
44
- declare const buttonVariants: (props?: ({
45
- variant?: "default" | "destructive" | "outline" | "secondary" | "ghost" | "link" | null | undefined;
46
- size?: "default" | "sm" | "lg" | "icon" | null | undefined;
47
- } & class_variance_authority_types.ClassProp) | undefined) => string;
48
- /**
49
- * A versatile button component that supports multiple variants, sizes, and can be rendered as a child component.
50
- * Built on top of Radix UI's Slot primitive for maximum flexibility.
51
- * Implements proper accessibility features and follows WCAG 2.1 Level AA guidelines.
52
- *
53
- * @url https://segiimelnykov.github.io/ui/?path=/docs/atoms-button--docs
54
- *
55
- * @component
56
- * @example
57
- * ```tsx
58
- * // Default button
59
- * <Button>Click me</Button>
60
- *
61
- * // Destructive button with small size
62
- * <Button variant="destructive" size="sm">Delete</Button>
63
- *
64
- * // As a link
65
- * <Button variant="link" asChild>
66
- * <a href="/about">About</a>
67
- * </Button>
68
- *
69
- * // With icons
70
- * <Button startIcon={<Icon />}>With Start Icon</Button>
71
- * <Button endIcon={<Icon />}>With End Icon</Button>
72
- *
73
- * // Loading state
74
- * <Button loading>Loading</Button>
75
- * ```
76
- *
77
- * @param {ButtonProps} props - The component props
78
- * @param {React.Ref<HTMLButtonElement>} ref - Forwarded ref
79
- * @returns {JSX.Element} A button element
80
- */
81
- declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>;
82
-
83
- /**
84
- * TooltipProvider component for creating accessible tooltips.
85
- * Built on top of Radix UI's Tooltip primitive.
86
- *
87
- * @url https://segiimelnykov.github.io/ui/?path=/docs/atoms-tooltip--docs
88
- *
89
- * @example
90
- * ```tsx
91
- * <TooltipProvider>
92
- * <Tooltip>
93
- * <TooltipTrigger>Hover me</TooltipTrigger>
94
- * <TooltipContent>Tooltip content</TooltipContent>
95
- * </Tooltip>
96
- * </TooltipProvider>
97
- * ```
98
- */
99
- declare const TooltipProvider: React.FC<TooltipPrimitive.TooltipProviderProps>;
100
- declare const Tooltip: React.FC<TooltipPrimitive.TooltipProps>;
101
- declare const TooltipTrigger: React.ForwardRefExoticComponent<TooltipPrimitive.TooltipTriggerProps & React.RefAttributes<HTMLButtonElement>>;
102
- declare const TooltipContent: React.ForwardRefExoticComponent<Omit<TooltipPrimitive.TooltipContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
103
-
104
- export { Button as B, Tooltip as T, type ButtonProps as a, buttonVariants as b, TooltipTrigger as c, TooltipContent as d, TooltipProvider as e };
@@ -1,104 +0,0 @@
1
- import * as class_variance_authority_types from 'class-variance-authority/types';
2
- import * as React from 'react';
3
- import { VariantProps } from 'class-variance-authority';
4
- import * as TooltipPrimitive from '@radix-ui/react-tooltip';
5
-
6
- /**
7
- * Props interface for the Button component.
8
- * Extends the native button HTML attributes and adds support for variants and asChild prop.
9
- * Implements proper accessibility features and follows WCAG 2.1 Level AA guidelines.
10
- *
11
- * @interface ButtonProps
12
- * @extends {React.ButtonHTMLAttributes<HTMLButtonElement>}
13
- * @extends {VariantProps<typeof buttonVariants>}
14
- *
15
- * @property {boolean} [asChild] - When true, renders the button as a child component using Radix UI's Slot.
16
- * @property {ButtonVariant} [variant] - The visual style variant of the button.
17
- * @property {ButtonSize} [size] - The size variant of the button.
18
- * @property {string} [className] - Additional CSS classes to apply to the button.
19
- * @property {React.ReactNode} [startIcon] - Icon to display before the button text.
20
- * @property {React.ReactNode} [endIcon] - Icon to display after the button text.
21
- * @property {boolean} [loading] - Whether the button is in a loading state.
22
- * @property {string} [type] - The type of button (button, submit, reset). Defaults to "button".
23
- * @property {string} [aria-label] - Accessible label for the button. Falls back to button text if not provided.
24
- */
25
- interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
26
- asChild?: boolean;
27
- startIcon?: React.ReactNode;
28
- endIcon?: React.ReactNode;
29
- loading?: boolean;
30
- type?: "button" | "submit" | "reset";
31
- "aria-label"?: string;
32
- }
33
-
34
- /**
35
- * Button variant styles using class-variance-authority.
36
- * Defines the visual styles for different button variants and sizes.
37
- * Follows WCAG 2.1 Level AA guidelines for accessibility.
38
- *
39
- * @example
40
- * ```tsx
41
- * <Button variant="primary" size="lg">Click me</Button>
42
- * ```
43
- */
44
- declare const buttonVariants: (props?: ({
45
- variant?: "default" | "destructive" | "outline" | "secondary" | "ghost" | "link" | null | undefined;
46
- size?: "default" | "sm" | "lg" | "icon" | null | undefined;
47
- } & class_variance_authority_types.ClassProp) | undefined) => string;
48
- /**
49
- * A versatile button component that supports multiple variants, sizes, and can be rendered as a child component.
50
- * Built on top of Radix UI's Slot primitive for maximum flexibility.
51
- * Implements proper accessibility features and follows WCAG 2.1 Level AA guidelines.
52
- *
53
- * @url https://segiimelnykov.github.io/ui/?path=/docs/atoms-button--docs
54
- *
55
- * @component
56
- * @example
57
- * ```tsx
58
- * // Default button
59
- * <Button>Click me</Button>
60
- *
61
- * // Destructive button with small size
62
- * <Button variant="destructive" size="sm">Delete</Button>
63
- *
64
- * // As a link
65
- * <Button variant="link" asChild>
66
- * <a href="/about">About</a>
67
- * </Button>
68
- *
69
- * // With icons
70
- * <Button startIcon={<Icon />}>With Start Icon</Button>
71
- * <Button endIcon={<Icon />}>With End Icon</Button>
72
- *
73
- * // Loading state
74
- * <Button loading>Loading</Button>
75
- * ```
76
- *
77
- * @param {ButtonProps} props - The component props
78
- * @param {React.Ref<HTMLButtonElement>} ref - Forwarded ref
79
- * @returns {JSX.Element} A button element
80
- */
81
- declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>;
82
-
83
- /**
84
- * TooltipProvider component for creating accessible tooltips.
85
- * Built on top of Radix UI's Tooltip primitive.
86
- *
87
- * @url https://segiimelnykov.github.io/ui/?path=/docs/atoms-tooltip--docs
88
- *
89
- * @example
90
- * ```tsx
91
- * <TooltipProvider>
92
- * <Tooltip>
93
- * <TooltipTrigger>Hover me</TooltipTrigger>
94
- * <TooltipContent>Tooltip content</TooltipContent>
95
- * </Tooltip>
96
- * </TooltipProvider>
97
- * ```
98
- */
99
- declare const TooltipProvider: React.FC<TooltipPrimitive.TooltipProviderProps>;
100
- declare const Tooltip: React.FC<TooltipPrimitive.TooltipProps>;
101
- declare const TooltipTrigger: React.ForwardRefExoticComponent<TooltipPrimitive.TooltipTriggerProps & React.RefAttributes<HTMLButtonElement>>;
102
- declare const TooltipContent: React.ForwardRefExoticComponent<Omit<TooltipPrimitive.TooltipContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
103
-
104
- export { Button as B, Tooltip as T, type ButtonProps as a, buttonVariants as b, TooltipTrigger as c, TooltipContent as d, TooltipProvider as e };
@@ -1,2 +0,0 @@
1
-
2
- export { }
@@ -1,2 +0,0 @@
1
-
2
- export { }
@@ -1,2 +0,0 @@
1
- 'use strict';require('../chunk-K7EIJSYQ.js');//# sourceMappingURL=index.js.map
2
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":[],"names":[],"mappings":"","file":"index.js"}
@@ -1,2 +0,0 @@
1
- import'../chunk-7NSRDJ5C.mjs';//# sourceMappingURL=index.mjs.map
2
- //# sourceMappingURL=index.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":[],"names":[],"mappings":"","file":"index.mjs"}
@@ -1,5 +0,0 @@
1
- import { ClassValue } from 'clsx';
2
-
3
- declare function cn(...inputs: ClassValue[]): string;
4
-
5
- export { cn };
@@ -1,5 +0,0 @@
1
- import { ClassValue } from 'clsx';
2
-
3
- declare function cn(...inputs: ClassValue[]): string;
4
-
5
- export { cn };
@@ -1,2 +0,0 @@
1
- 'use strict';var chunkKITWXTCP_js=require('../chunk-KITWXTCP.js');require('../chunk-NCY2ZNET.js');Object.defineProperty(exports,"cn",{enumerable:true,get:function(){return chunkKITWXTCP_js.a}});//# sourceMappingURL=index.js.map
2
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":[],"names":[],"mappings":"","file":"index.js"}
@@ -1,2 +0,0 @@
1
- export{a as cn}from'../chunk-OAVWSSYJ.mjs';import'../chunk-H3TEQK57.mjs';//# sourceMappingURL=index.mjs.map
2
- //# sourceMappingURL=index.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":[],"names":[],"mappings":"","file":"index.mjs"}