@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
package/dist/aria.cjs ADDED
@@ -0,0 +1,139 @@
1
+ "use client";
2
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});'use client';
3
+
4
+
5
+
6
+
7
+ var _chunkVECBSKBCcjs = require('./chunk-VECBSKBC.cjs');
8
+
9
+
10
+ var _chunkCJXIPSTGcjs = require('./chunk-CJXIPSTG.cjs');
11
+
12
+ // src/ui/aria/datefield.tsx
13
+
14
+
15
+
16
+
17
+
18
+
19
+ var _reactariacomponents = require('react-aria-components');
20
+ var _jsxruntime = require('react/jsx-runtime');
21
+ function DateField({ className, children, ...props }) {
22
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
23
+ _reactariacomponents.DateField,
24
+ {
25
+ className: _reactariacomponents.composeRenderProps.call(void 0, className, (className2) => _chunkCJXIPSTGcjs.cn.call(void 0, className2)),
26
+ "data-slot": "datefield",
27
+ ...props,
28
+ children
29
+ }
30
+ );
31
+ }
32
+ function TimeField({ className, children, ...props }) {
33
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
34
+ _reactariacomponents.TimeField,
35
+ {
36
+ className: _reactariacomponents.composeRenderProps.call(void 0, className, (className2) => _chunkCJXIPSTGcjs.cn.call(void 0, className2)),
37
+ "data-slot": "datefield",
38
+ ...props,
39
+ children
40
+ }
41
+ );
42
+ }
43
+ function DateSegment({ className, ...props }) {
44
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
45
+ _reactariacomponents.DateSegment,
46
+ {
47
+ className: _reactariacomponents.composeRenderProps.call(void 0,
48
+ className,
49
+ (className2) => _chunkCJXIPSTGcjs.cn.call(void 0,
50
+ `inline-flex rounded px-0.5 text-foreground caret-transparent outline-hidden data-invalid:data-focused:bg-destructive data-focused:data-placeholder:text-foreground data-invalid:data-focused:text-destructive-foreground data-invalid:data-placeholder:text-destructive data-disabled:cursor-not-allowed data-focused:bg-accent data-[type=literal]:px-0 data-[type=literal]:text-muted-foreground/70 data-focused:text-foreground data-invalid:data-focused:data-placeholder:text-destructive-foreground data-invalid:text-destructive data-placeholder:text-muted-foreground/70 data-disabled:opacity-50`,
51
+ className2
52
+ )
53
+ ),
54
+ ...props,
55
+ "data-invalid": true
56
+ }
57
+ );
58
+ }
59
+ var dateInputStyles = `
60
+ relative inline-flex items-center overflow-hidden whitespace-nowrap
61
+ data-focus-within:ring-ring/30 data-focus-within:border-ring data-focus-within:outline-none data-focus-within:ring-[3px]
62
+ data-focus-within:has-aria-invalid:ring-destructive/20 dark:data-focus-within:has-aria-invalid:ring-destructive/40 data-focus-within:has-aria-invalid:border-destructive
63
+ `;
64
+ function DateInput({ className, variant = "md", ...props }) {
65
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
66
+ _reactariacomponents.DateInput,
67
+ {
68
+ "data-slot": "input",
69
+ className: _reactariacomponents.composeRenderProps.call(void 0,
70
+ className,
71
+ (className2) => _chunkCJXIPSTGcjs.cn.call(void 0, _chunkVECBSKBCcjs.inputVariants.call(void 0, { variant }), dateInputStyles, className2)
72
+ ),
73
+ ...props,
74
+ children: (segment) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, DateSegment, { segment })
75
+ }
76
+ );
77
+ }
78
+
79
+ // src/ui/aria/show-more.tsx
80
+ var _classvarianceauthority = require('class-variance-authority');
81
+
82
+
83
+ var showMoreStyles = _classvarianceauthority.cva.call(void 0, "text-sm leading-6 before:border-border after:border-border", {
84
+ variants: {
85
+ orientation: {
86
+ vertical: "mx-1 h-auto self-stretch",
87
+ horizontal: "my-0.5 h-px w-full self-stretch"
88
+ }
89
+ },
90
+ compoundVariants: [
91
+ {
92
+ orientation: "vertical",
93
+ className: "mx-2 flex flex-col items-center before:mb-2 before:flex-1 before:border-l after:mt-2 after:flex-1 after:border-r"
94
+ },
95
+ {
96
+ orientation: "horizontal",
97
+ className: "my-2 flex items-center self-stretch before:mr-2 before:flex-1 before:border-t after:ml-2 after:flex-1 after:border-t"
98
+ }
99
+ ],
100
+ defaultVariants: {
101
+ orientation: "horizontal"
102
+ }
103
+ });
104
+ var ShowMore = ({
105
+ as = "button",
106
+ children,
107
+ orientation = "horizontal",
108
+ className,
109
+ ...props
110
+ }) => {
111
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunkCJXIPSTGcjs.cn.call(void 0, showMoreStyles({ orientation }), className), children: as === "button" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
112
+ _reactariacomponents.ToggleButton,
113
+ {
114
+ ...props,
115
+ className: _chunkVECBSKBCcjs.buttonVariants.call(void 0, {
116
+ variant: "outline",
117
+ size: "sm"
118
+ }),
119
+ children: _reactariacomponents.composeRenderProps.call(void 0, children, (children2) => children2)
120
+ }
121
+ ) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactariacomponents.Text, { slot: "description", children: props.text }) });
122
+ };
123
+
124
+ // src/ui/aria/visually-hidden.tsx
125
+ var _reactaria = require('react-aria');
126
+
127
+ var VisuallyHidden = ({ children }) => {
128
+ const { visuallyHiddenProps } = _reactaria.useVisuallyHidden.call(void 0, );
129
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { ...visuallyHiddenProps, children });
130
+ };
131
+
132
+
133
+
134
+
135
+
136
+
137
+
138
+
139
+ exports.DateField = DateField; exports.DateInput = DateInput; exports.DateSegment = DateSegment; exports.ShowMore = ShowMore; exports.TimeField = TimeField; exports.VisuallyHidden = VisuallyHidden; exports.dateInputStyles = dateInputStyles;
@@ -0,0 +1,31 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import { VariantProps } from 'class-variance-authority';
3
+ import { DateValue, DateFieldProps, DateInputProps as DateInputProps$1, DateSegmentProps, TimeValue, TimeFieldProps, ToggleButton } from 'react-aria-components';
4
+ import { i as inputVariants } from './input-AwYIskrX.cjs';
5
+ import { ReactNode } from 'react';
6
+ import 'class-variance-authority/types';
7
+
8
+ declare function DateField<T extends DateValue>({ className, children, ...props }: DateFieldProps<T>): react_jsx_runtime.JSX.Element;
9
+ declare function TimeField<T extends TimeValue>({ className, children, ...props }: TimeFieldProps<T>): react_jsx_runtime.JSX.Element;
10
+ declare function DateSegment({ className, ...props }: DateSegmentProps): react_jsx_runtime.JSX.Element;
11
+ declare const dateInputStyles = "\n relative inline-flex items-center overflow-hidden whitespace-nowrap\n data-focus-within:ring-ring/30 data-focus-within:border-ring data-focus-within:outline-none data-focus-within:ring-[3px] \n data-focus-within:has-aria-invalid:ring-destructive/20 dark:data-focus-within:has-aria-invalid:ring-destructive/40 data-focus-within:has-aria-invalid:border-destructive\n";
12
+ interface DateInputProps extends DateInputProps$1, VariantProps<typeof inputVariants> {
13
+ className?: string;
14
+ variant?: VariantProps<typeof inputVariants>['variant'];
15
+ }
16
+ declare function DateInput({ className, variant, ...props }: Omit<DateInputProps, 'children'>): react_jsx_runtime.JSX.Element;
17
+
18
+ interface ShowMoreProps extends React.ComponentProps<typeof ToggleButton> {
19
+ className?: string;
20
+ orientation?: 'horizontal' | 'vertical';
21
+ as?: 'text' | 'button';
22
+ text?: string;
23
+ }
24
+ declare const ShowMore: ({ as, children, orientation, className, ...props }: ShowMoreProps) => react_jsx_runtime.JSX.Element;
25
+
26
+ type VisuallyHiddenSpanProps = {
27
+ children: ReactNode;
28
+ };
29
+ declare const VisuallyHidden: ({ children }: VisuallyHiddenSpanProps) => react_jsx_runtime.JSX.Element;
30
+
31
+ export { DateField, DateInput, type DateInputProps, DateSegment, ShowMore, type ShowMoreProps, TimeField, VisuallyHidden, dateInputStyles };
package/dist/aria.d.ts ADDED
@@ -0,0 +1,31 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import { VariantProps } from 'class-variance-authority';
3
+ import { DateValue, DateFieldProps, DateInputProps as DateInputProps$1, DateSegmentProps, TimeValue, TimeFieldProps, ToggleButton } from 'react-aria-components';
4
+ import { i as inputVariants } from './input-AwYIskrX.js';
5
+ import { ReactNode } from 'react';
6
+ import 'class-variance-authority/types';
7
+
8
+ declare function DateField<T extends DateValue>({ className, children, ...props }: DateFieldProps<T>): react_jsx_runtime.JSX.Element;
9
+ declare function TimeField<T extends TimeValue>({ className, children, ...props }: TimeFieldProps<T>): react_jsx_runtime.JSX.Element;
10
+ declare function DateSegment({ className, ...props }: DateSegmentProps): react_jsx_runtime.JSX.Element;
11
+ declare const dateInputStyles = "\n relative inline-flex items-center overflow-hidden whitespace-nowrap\n data-focus-within:ring-ring/30 data-focus-within:border-ring data-focus-within:outline-none data-focus-within:ring-[3px] \n data-focus-within:has-aria-invalid:ring-destructive/20 dark:data-focus-within:has-aria-invalid:ring-destructive/40 data-focus-within:has-aria-invalid:border-destructive\n";
12
+ interface DateInputProps extends DateInputProps$1, VariantProps<typeof inputVariants> {
13
+ className?: string;
14
+ variant?: VariantProps<typeof inputVariants>['variant'];
15
+ }
16
+ declare function DateInput({ className, variant, ...props }: Omit<DateInputProps, 'children'>): react_jsx_runtime.JSX.Element;
17
+
18
+ interface ShowMoreProps extends React.ComponentProps<typeof ToggleButton> {
19
+ className?: string;
20
+ orientation?: 'horizontal' | 'vertical';
21
+ as?: 'text' | 'button';
22
+ text?: string;
23
+ }
24
+ declare const ShowMore: ({ as, children, orientation, className, ...props }: ShowMoreProps) => react_jsx_runtime.JSX.Element;
25
+
26
+ type VisuallyHiddenSpanProps = {
27
+ children: ReactNode;
28
+ };
29
+ declare const VisuallyHidden: ({ children }: VisuallyHiddenSpanProps) => react_jsx_runtime.JSX.Element;
30
+
31
+ export { DateField, DateInput, type DateInputProps, DateSegment, ShowMore, type ShowMoreProps, TimeField, VisuallyHidden, dateInputStyles };
package/dist/aria.js ADDED
@@ -0,0 +1,139 @@
1
+ "use client";
2
+ 'use client';
3
+
4
+ import {
5
+ buttonVariants,
6
+ inputVariants
7
+ } from "./chunk-OMPNDLGS.js";
8
+ import {
9
+ cn
10
+ } from "./chunk-RQHJBTEU.js";
11
+
12
+ // src/ui/aria/datefield.tsx
13
+ import {
14
+ composeRenderProps,
15
+ DateField as DateFieldRa,
16
+ DateInput as DateInputRa,
17
+ DateSegment as DateSegmentRa,
18
+ TimeField as TimeFieldRa
19
+ } from "react-aria-components";
20
+ import { jsx } from "react/jsx-runtime";
21
+ function DateField({ className, children, ...props }) {
22
+ return /* @__PURE__ */ jsx(
23
+ DateFieldRa,
24
+ {
25
+ className: composeRenderProps(className, (className2) => cn(className2)),
26
+ "data-slot": "datefield",
27
+ ...props,
28
+ children
29
+ }
30
+ );
31
+ }
32
+ function TimeField({ className, children, ...props }) {
33
+ return /* @__PURE__ */ jsx(
34
+ TimeFieldRa,
35
+ {
36
+ className: composeRenderProps(className, (className2) => cn(className2)),
37
+ "data-slot": "datefield",
38
+ ...props,
39
+ children
40
+ }
41
+ );
42
+ }
43
+ function DateSegment({ className, ...props }) {
44
+ return /* @__PURE__ */ jsx(
45
+ DateSegmentRa,
46
+ {
47
+ className: composeRenderProps(
48
+ className,
49
+ (className2) => cn(
50
+ `inline-flex rounded px-0.5 text-foreground caret-transparent outline-hidden data-invalid:data-focused:bg-destructive data-focused:data-placeholder:text-foreground data-invalid:data-focused:text-destructive-foreground data-invalid:data-placeholder:text-destructive data-disabled:cursor-not-allowed data-focused:bg-accent data-[type=literal]:px-0 data-[type=literal]:text-muted-foreground/70 data-focused:text-foreground data-invalid:data-focused:data-placeholder:text-destructive-foreground data-invalid:text-destructive data-placeholder:text-muted-foreground/70 data-disabled:opacity-50`,
51
+ className2
52
+ )
53
+ ),
54
+ ...props,
55
+ "data-invalid": true
56
+ }
57
+ );
58
+ }
59
+ var dateInputStyles = `
60
+ relative inline-flex items-center overflow-hidden whitespace-nowrap
61
+ data-focus-within:ring-ring/30 data-focus-within:border-ring data-focus-within:outline-none data-focus-within:ring-[3px]
62
+ data-focus-within:has-aria-invalid:ring-destructive/20 dark:data-focus-within:has-aria-invalid:ring-destructive/40 data-focus-within:has-aria-invalid:border-destructive
63
+ `;
64
+ function DateInput({ className, variant = "md", ...props }) {
65
+ return /* @__PURE__ */ jsx(
66
+ DateInputRa,
67
+ {
68
+ "data-slot": "input",
69
+ className: composeRenderProps(
70
+ className,
71
+ (className2) => cn(inputVariants({ variant }), dateInputStyles, className2)
72
+ ),
73
+ ...props,
74
+ children: (segment) => /* @__PURE__ */ jsx(DateSegment, { segment })
75
+ }
76
+ );
77
+ }
78
+
79
+ // src/ui/aria/show-more.tsx
80
+ import { cva } from "class-variance-authority";
81
+ import { composeRenderProps as composeRenderProps2, Text, ToggleButton } from "react-aria-components";
82
+ import { jsx as jsx2 } from "react/jsx-runtime";
83
+ var showMoreStyles = cva("text-sm leading-6 before:border-border after:border-border", {
84
+ variants: {
85
+ orientation: {
86
+ vertical: "mx-1 h-auto self-stretch",
87
+ horizontal: "my-0.5 h-px w-full self-stretch"
88
+ }
89
+ },
90
+ compoundVariants: [
91
+ {
92
+ orientation: "vertical",
93
+ className: "mx-2 flex flex-col items-center before:mb-2 before:flex-1 before:border-l after:mt-2 after:flex-1 after:border-r"
94
+ },
95
+ {
96
+ orientation: "horizontal",
97
+ className: "my-2 flex items-center self-stretch before:mr-2 before:flex-1 before:border-t after:ml-2 after:flex-1 after:border-t"
98
+ }
99
+ ],
100
+ defaultVariants: {
101
+ orientation: "horizontal"
102
+ }
103
+ });
104
+ var ShowMore = ({
105
+ as = "button",
106
+ children,
107
+ orientation = "horizontal",
108
+ className,
109
+ ...props
110
+ }) => {
111
+ return /* @__PURE__ */ jsx2("div", { className: cn(showMoreStyles({ orientation }), className), children: as === "button" ? /* @__PURE__ */ jsx2(
112
+ ToggleButton,
113
+ {
114
+ ...props,
115
+ className: buttonVariants({
116
+ variant: "outline",
117
+ size: "sm"
118
+ }),
119
+ children: composeRenderProps2(children, (children2) => children2)
120
+ }
121
+ ) : /* @__PURE__ */ jsx2(Text, { slot: "description", children: props.text }) });
122
+ };
123
+
124
+ // src/ui/aria/visually-hidden.tsx
125
+ import { useVisuallyHidden } from "react-aria";
126
+ import { jsx as jsx3 } from "react/jsx-runtime";
127
+ var VisuallyHidden = ({ children }) => {
128
+ const { visuallyHiddenProps } = useVisuallyHidden();
129
+ return /* @__PURE__ */ jsx3("span", { ...visuallyHiddenProps, children });
130
+ };
131
+ export {
132
+ DateField,
133
+ DateInput,
134
+ DateSegment,
135
+ ShowMore,
136
+ TimeField,
137
+ VisuallyHidden,
138
+ dateInputStyles
139
+ };
@@ -0,0 +1,33 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import * as class_variance_authority_types from 'class-variance-authority/types';
3
+ import * as React from 'react';
4
+ import { VariantProps } from 'class-variance-authority';
5
+
6
+ interface BadgeProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof badgeVariants> {
7
+ asChild?: boolean;
8
+ dotClassName?: string;
9
+ disabled?: boolean;
10
+ }
11
+ interface BadgeButtonProps extends React.ButtonHTMLAttributes<HTMLDivElement>, VariantProps<typeof badgeButtonVariants> {
12
+ asChild?: boolean;
13
+ }
14
+ type BadgeDotProps = React.HTMLAttributes<HTMLSpanElement>;
15
+ declare const badgeVariants: (props?: ({
16
+ variant?: "primary" | "destructive" | "secondary" | "outline" | "success" | "warning" | "info" | null | undefined;
17
+ appearance?: "default" | "outline" | "ghost" | "light" | null | undefined;
18
+ disabled?: boolean | null | undefined;
19
+ size?: "lg" | "md" | "sm" | "xs" | null | undefined;
20
+ shape?: "default" | "circle" | null | undefined;
21
+ } & class_variance_authority_types.ClassProp) | undefined) => string;
22
+ declare const badgeButtonVariants: (props?: ({
23
+ variant?: "default" | null | undefined;
24
+ } & class_variance_authority_types.ClassProp) | undefined) => string;
25
+ declare function Badge({ className, variant, size, appearance, shape, asChild, disabled, ...props }: React.ComponentProps<'span'> & VariantProps<typeof badgeVariants> & {
26
+ asChild?: boolean;
27
+ }): react_jsx_runtime.JSX.Element;
28
+ declare function BadgeButton({ className, variant, asChild, ...props }: React.ComponentProps<'button'> & VariantProps<typeof badgeButtonVariants> & {
29
+ asChild?: boolean;
30
+ }): react_jsx_runtime.JSX.Element;
31
+ declare function BadgeDot({ className, ...props }: React.ComponentProps<'span'>): react_jsx_runtime.JSX.Element;
32
+
33
+ export { Badge as B, BadgeButton as a, badgeVariants as b, BadgeDot as c, type BadgeProps as d, type BadgeButtonProps as e, type BadgeDotProps as f };
@@ -0,0 +1,33 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import * as class_variance_authority_types from 'class-variance-authority/types';
3
+ import * as React from 'react';
4
+ import { VariantProps } from 'class-variance-authority';
5
+
6
+ interface BadgeProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof badgeVariants> {
7
+ asChild?: boolean;
8
+ dotClassName?: string;
9
+ disabled?: boolean;
10
+ }
11
+ interface BadgeButtonProps extends React.ButtonHTMLAttributes<HTMLDivElement>, VariantProps<typeof badgeButtonVariants> {
12
+ asChild?: boolean;
13
+ }
14
+ type BadgeDotProps = React.HTMLAttributes<HTMLSpanElement>;
15
+ declare const badgeVariants: (props?: ({
16
+ variant?: "primary" | "destructive" | "secondary" | "outline" | "success" | "warning" | "info" | null | undefined;
17
+ appearance?: "default" | "outline" | "ghost" | "light" | null | undefined;
18
+ disabled?: boolean | null | undefined;
19
+ size?: "lg" | "md" | "sm" | "xs" | null | undefined;
20
+ shape?: "default" | "circle" | null | undefined;
21
+ } & class_variance_authority_types.ClassProp) | undefined) => string;
22
+ declare const badgeButtonVariants: (props?: ({
23
+ variant?: "default" | null | undefined;
24
+ } & class_variance_authority_types.ClassProp) | undefined) => string;
25
+ declare function Badge({ className, variant, size, appearance, shape, asChild, disabled, ...props }: React.ComponentProps<'span'> & VariantProps<typeof badgeVariants> & {
26
+ asChild?: boolean;
27
+ }): react_jsx_runtime.JSX.Element;
28
+ declare function BadgeButton({ className, variant, asChild, ...props }: React.ComponentProps<'button'> & VariantProps<typeof badgeButtonVariants> & {
29
+ asChild?: boolean;
30
+ }): react_jsx_runtime.JSX.Element;
31
+ declare function BadgeDot({ className, ...props }: React.ComponentProps<'span'>): react_jsx_runtime.JSX.Element;
32
+
33
+ export { Badge as B, BadgeButton as a, badgeVariants as b, BadgeDot as c, type BadgeProps as d, type BadgeButtonProps as e, type BadgeDotProps as f };