@snapcall/design-system 1.21.3 → 1.22.0-beta.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.
- package/dist/{chunk-RN2FGOFK.mjs → chunk-CBQRH67Z.mjs} +8 -8
- package/dist/{chunk-XI3KELZM.mjs → chunk-R6W6SKNR.mjs} +3 -3
- package/dist/{chunk-ZMQWNJ3B.mjs → chunk-TU6HU32A.mjs} +1 -1
- package/dist/components/Accordion/index.d.mts +2 -7
- package/dist/components/Accordion/index.d.ts +2 -7
- package/dist/components/Accordion/index.js +2 -2
- package/dist/components/Accordion/index.mjs +2 -2
- package/dist/components/AlertDialog/index.js +5 -5
- package/dist/components/AlertDialog/index.mjs +3 -3
- package/dist/components/Avatar/index.d.mts +10 -10
- package/dist/components/Avatar/index.d.ts +10 -10
- package/dist/components/Badge/index.d.mts +4 -4
- package/dist/components/Badge/index.d.ts +4 -4
- package/dist/components/Banner/index.d.mts +70 -0
- package/dist/components/Banner/index.d.ts +70 -0
- package/dist/components/Banner/index.js +152 -0
- package/dist/components/Banner/index.mjs +84 -0
- package/dist/components/Button/index.d.mts +12 -12
- package/dist/components/Button/index.d.ts +12 -12
- package/dist/components/Button/index.js +3 -3
- package/dist/components/Button/index.mjs +1 -1
- package/dist/components/Calendar/index.js +5 -5
- package/dist/components/Calendar/index.mjs +3 -3
- package/dist/components/Carousel/index.js +3 -3
- package/dist/components/Carousel/index.mjs +1 -1
- package/dist/components/Checkbox/index.js +1 -1
- package/dist/components/Checkbox/index.mjs +1 -1
- package/dist/components/Command/index.d.mts +1 -1
- package/dist/components/Command/index.d.ts +1 -1
- package/dist/components/Command/index.js +8 -8
- package/dist/components/Command/index.mjs +4 -4
- package/dist/components/CreatableSelect/index.d.mts +1 -1
- package/dist/components/CreatableSelect/index.d.ts +1 -1
- package/dist/components/CreatableSelect/index.js +14 -12
- package/dist/components/CreatableSelect/index.mjs +10 -8
- package/dist/components/Dialog/index.d.mts +2 -2
- package/dist/components/Dialog/index.d.ts +2 -2
- package/dist/components/Dialog/index.js +7 -7
- package/dist/components/Dialog/index.mjs +5 -5
- package/dist/components/DropdownMenu/index.d.mts +2 -2
- package/dist/components/DropdownMenu/index.d.ts +2 -2
- package/dist/components/DropdownMenu/index.js +9 -9
- package/dist/components/DropdownMenu/index.mjs +12 -12
- package/dist/components/FilterButton/index.js +3 -3
- package/dist/components/FilterButton/index.mjs +1 -1
- package/dist/components/Form/index.d.mts +2 -1
- package/dist/components/Form/index.d.ts +2 -1
- package/dist/components/Input/index.d.mts +3 -3
- package/dist/components/Input/index.d.ts +3 -3
- package/dist/components/Input/index.js +2 -2
- package/dist/components/Input/index.mjs +2 -2
- package/dist/components/MediaCard/index.d.mts +3 -3
- package/dist/components/MediaCard/index.d.ts +3 -3
- package/dist/components/MediaCard/index.js +2 -2
- package/dist/components/MediaCard/index.mjs +2 -2
- package/dist/components/Pagination/index.js +3 -3
- package/dist/components/Pagination/index.mjs +1 -1
- package/dist/components/Popover/index.js +1 -1
- package/dist/components/Popover/index.mjs +1 -1
- package/dist/components/RadioGroup/index.js +1 -1
- package/dist/components/RadioGroup/index.mjs +1 -1
- package/dist/components/Select/index.js +3 -3
- package/dist/components/Select/index.mjs +3 -3
- package/dist/components/Sheet/index.d.mts +6 -5
- package/dist/components/Sheet/index.d.ts +6 -5
- package/dist/components/Sheet/index.js +4 -4
- package/dist/components/Sheet/index.mjs +2 -2
- package/dist/components/Switch/index.js +1 -1
- package/dist/components/Switch/index.mjs +1 -1
- package/dist/components/Table/index.d.mts +4 -4
- package/dist/components/Table/index.d.ts +4 -4
- package/dist/components/Table/index.js +2 -2
- package/dist/components/Table/index.mjs +2 -2
- package/dist/components/Tabs/index.js +3 -3
- package/dist/components/Tabs/index.mjs +3 -3
- package/dist/components/Textarea/index.js +1 -1
- package/dist/components/Textarea/index.mjs +1 -1
- package/dist/components/Toaster/index.d.mts +12 -11
- package/dist/components/Toaster/index.d.ts +12 -11
- package/dist/components/Toaster/index.js +7 -7
- package/dist/components/Toaster/index.mjs +5 -5
- package/dist/components/ToggleGroup/index.d.mts +1 -1
- package/dist/components/ToggleGroup/index.d.ts +1 -1
- package/dist/components/ToggleGroup/index.js +4 -4
- package/dist/components/ToggleGroup/index.mjs +4 -4
- package/dist/components/Tooltip/index.js +1 -1
- package/dist/components/Tooltip/index.mjs +1 -1
- package/dist/components/{index-Btj0VOSP.d.ts → index-CMWfBd0H.d.mts} +39 -39
- package/dist/components/{index-Btj0VOSP.d.mts → index-CMWfBd0H.d.ts} +39 -39
- package/dist/components/types-DBpSTFQy.d.mts +9 -0
- package/dist/components/types-DBpSTFQy.d.ts +9 -0
- package/dist/index.d.mts +165 -100
- package/dist/index.d.ts +165 -100
- package/dist/index.js +33 -31
- package/dist/index.mjs +1 -0
- package/dist/style.css +1 -1
- package/dist/tailwind.css +2 -3
- package/package.json +60 -59
- package/dist/tailwind.config.js +0 -449
|
@@ -165,15 +165,15 @@ var SpinnerIcon = (0, import_react2.forwardRef)(
|
|
|
165
165
|
// src/components/Button/Button.tsx
|
|
166
166
|
var import_jsx_runtime3 = require("react/jsx-runtime");
|
|
167
167
|
var buttonVariants = (0, import_cva.cva)({
|
|
168
|
-
base: "inline-flex items-center justify-center gap-2 rounded-md text-sm font-medium ring-offset-background transition-colors relative focus-visible:outline-
|
|
168
|
+
base: "inline-flex items-center justify-center gap-2 rounded-md text-sm font-medium ring-offset-background transition-colors relative focus-visible:outline-hidden focus-visible:ring-2 disabled:select-none disabled:pointer-events-none disabled:opacity-40",
|
|
169
169
|
variants: {
|
|
170
170
|
variant: {
|
|
171
|
-
primary: "bg-blue-700 text-white [&>svg]:text-white dark:text-black [&>svg]:
|
|
171
|
+
primary: "bg-blue-700 text-white [&>svg]:text-white dark:text-black dark:[&>svg]:text-black hover:bg-blue-800 active:bg-blue-900 focus-visible:ring-blue-1000",
|
|
172
172
|
secondary: "bg-gray-50 text-black [&>svg]:text-black hover:bg-gray-100 active:bg-gray-500 focus-visible:ring-black",
|
|
173
173
|
tertiary: "bg-gray-50 text-blue-700 [&>svg]:text-blue-700 hover:bg-blue-100 active:bg-blue-200 focus-visible:ring-blue-700",
|
|
174
174
|
outline: "bg-white text-black [&>svg]:text-black ring-1 ring-offset-0 ring-gray-200 hover:bg-gray-50 active:bg-gray-200 focus-visible:ring-black",
|
|
175
175
|
outlineBlue: "bg-transparent text-blue-700 [&>svg]:text-blue-700 ring-1 ring-inset ring-offset-0 ring-blue-700 hover:bg-blue-50 active:bg-blue-200 focus-visible:ring-blue-700 ",
|
|
176
|
-
destructive: "bg-red-700 text-white [&>svg]:text-white dark:text-black [&>svg]:
|
|
176
|
+
destructive: "bg-red-700 text-white [&>svg]:text-white dark:text-black dark:[&>svg]:text-black hover:bg-red-800 active:bg-red-900 focus-visible:ring-red-1000",
|
|
177
177
|
ghostBlue: "bg-transparent text-blue-700 [&>svg]:text-blue-700 hover:bg-blue-100 active:bg-blue-200 focus-visible:ring-blue-700",
|
|
178
178
|
ghostRed: "bg-transparent text-red-700 [&>svg]:text-red-700 hover:bg-red-100 active:bg-red-200 focus-visible:ring-red-700",
|
|
179
179
|
ghostGray: "bg-transparent text-black [&>svg]:text-black hover:bg-gray-100 active:bg-gray-200 focus-visible:ring-black",
|
|
@@ -278,7 +278,7 @@ var ToastViewport = React2.forwardRef((_a, ref) => {
|
|
|
278
278
|
__spreadValues({
|
|
279
279
|
ref,
|
|
280
280
|
className: cn(
|
|
281
|
-
"fixed top-8 left-1/2 -translate-x-1/2 z-
|
|
281
|
+
"fixed top-8 left-1/2 -translate-x-1/2 z-100 flex max-h-screen flex-col-reverse sm:flex-col w-max max-w-[90vw] md:max-w-[420px]",
|
|
282
282
|
className
|
|
283
283
|
)
|
|
284
284
|
}, props)
|
|
@@ -286,7 +286,7 @@ var ToastViewport = React2.forwardRef((_a, ref) => {
|
|
|
286
286
|
});
|
|
287
287
|
ToastViewport.displayName = ToastPrimitives.Viewport.displayName;
|
|
288
288
|
var toastVariants = (0, import_cva2.cva)({
|
|
289
|
-
base: "group pointer-events-auto relative flex w-full shadow-
|
|
289
|
+
base: "group pointer-events-auto relative flex w-full shadow-xs items-center justify-between gap-4 overflow-hidden rounded-md px-4 py-2 transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:fade-out data-[state=open]:slide-in-from-top-full sm:data-[state=open]:slide-in-from-bottom-full",
|
|
290
290
|
variants: {
|
|
291
291
|
variant: {
|
|
292
292
|
default: "bg-gray-100 text-black",
|
|
@@ -334,7 +334,7 @@ var ToastClose = React2.forwardRef((_a, ref) => {
|
|
|
334
334
|
ToastPrimitives.Close,
|
|
335
335
|
__spreadProps(__spreadValues({
|
|
336
336
|
ref,
|
|
337
|
-
className: cn("focus:outline-
|
|
337
|
+
className: cn("focus:outline-hidden focus:ring-1", className),
|
|
338
338
|
"toast-close": ""
|
|
339
339
|
}, props), {
|
|
340
340
|
children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(XCloseIcon, { className: "text-current", size: 16 })
|
|
@@ -505,7 +505,7 @@ var ToastContent = ({
|
|
|
505
505
|
}) => {
|
|
506
506
|
return /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("div", { className: "flex flex-col gap-2 w-full overflow-hidden", children: [
|
|
507
507
|
/* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("div", { className: "flex items-center gap-4", children: [
|
|
508
|
-
/* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("div", { className: "flex items-center
|
|
508
|
+
/* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("div", { className: "flex items-center grow gap-2 overflow-hidden", children: [
|
|
509
509
|
icon && import_react3.default.cloneElement(icon, {
|
|
510
510
|
size: 16,
|
|
511
511
|
className: cn("shrink-0", icon.props.className)
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
} from "../../chunk-FMJFBQTF.mjs";
|
|
4
4
|
import {
|
|
5
5
|
Button
|
|
6
|
-
} from "../../chunk-
|
|
6
|
+
} from "../../chunk-R6W6SKNR.mjs";
|
|
7
7
|
import "../../chunk-N65I4EXR.mjs";
|
|
8
8
|
import {
|
|
9
9
|
__objRest,
|
|
@@ -25,7 +25,7 @@ var ToastViewport = React.forwardRef((_a, ref) => {
|
|
|
25
25
|
__spreadValues({
|
|
26
26
|
ref,
|
|
27
27
|
className: cn(
|
|
28
|
-
"fixed top-8 left-1/2 -translate-x-1/2 z-
|
|
28
|
+
"fixed top-8 left-1/2 -translate-x-1/2 z-100 flex max-h-screen flex-col-reverse sm:flex-col w-max max-w-[90vw] md:max-w-[420px]",
|
|
29
29
|
className
|
|
30
30
|
)
|
|
31
31
|
}, props)
|
|
@@ -33,7 +33,7 @@ var ToastViewport = React.forwardRef((_a, ref) => {
|
|
|
33
33
|
});
|
|
34
34
|
ToastViewport.displayName = ToastPrimitives.Viewport.displayName;
|
|
35
35
|
var toastVariants = cva({
|
|
36
|
-
base: "group pointer-events-auto relative flex w-full shadow-
|
|
36
|
+
base: "group pointer-events-auto relative flex w-full shadow-xs items-center justify-between gap-4 overflow-hidden rounded-md px-4 py-2 transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:fade-out data-[state=open]:slide-in-from-top-full sm:data-[state=open]:slide-in-from-bottom-full",
|
|
37
37
|
variants: {
|
|
38
38
|
variant: {
|
|
39
39
|
default: "bg-gray-100 text-black",
|
|
@@ -81,7 +81,7 @@ var ToastClose = React.forwardRef((_a, ref) => {
|
|
|
81
81
|
ToastPrimitives.Close,
|
|
82
82
|
__spreadProps(__spreadValues({
|
|
83
83
|
ref,
|
|
84
|
-
className: cn("focus:outline-
|
|
84
|
+
className: cn("focus:outline-hidden focus:ring-1", className),
|
|
85
85
|
"toast-close": ""
|
|
86
86
|
}, props), {
|
|
87
87
|
children: /* @__PURE__ */ jsx(XCloseIcon, { className: "text-current", size: 16 })
|
|
@@ -252,7 +252,7 @@ var ToastContent = ({
|
|
|
252
252
|
}) => {
|
|
253
253
|
return /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-2 w-full overflow-hidden", children: [
|
|
254
254
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-4", children: [
|
|
255
|
-
/* @__PURE__ */ jsxs("div", { className: "flex items-center
|
|
255
|
+
/* @__PURE__ */ jsxs("div", { className: "flex items-center grow gap-2 overflow-hidden", children: [
|
|
256
256
|
icon && React3.cloneElement(icon, {
|
|
257
257
|
size: 16,
|
|
258
258
|
className: cn("shrink-0", icon.props.className)
|
|
@@ -9,7 +9,7 @@ declare const ToggleGroup: React.ForwardRefExoticComponent<((Omit<ToggleGroupPri
|
|
|
9
9
|
type ToggleGroupItemProps = {
|
|
10
10
|
title?: string;
|
|
11
11
|
description?: string;
|
|
12
|
-
icon?: JSX.Element;
|
|
12
|
+
icon?: React.JSX.Element;
|
|
13
13
|
image?: React.ReactNode;
|
|
14
14
|
};
|
|
15
15
|
declare const ToggleGroupItem: React.ForwardRefExoticComponent<Omit<ToggleGroupPrimitive.ToggleGroupItemProps & React.RefAttributes<HTMLButtonElement>, "ref"> & ToggleGroupItemProps & React.RefAttributes<HTMLButtonElement>>;
|
|
@@ -9,7 +9,7 @@ declare const ToggleGroup: React.ForwardRefExoticComponent<((Omit<ToggleGroupPri
|
|
|
9
9
|
type ToggleGroupItemProps = {
|
|
10
10
|
title?: string;
|
|
11
11
|
description?: string;
|
|
12
|
-
icon?: JSX.Element;
|
|
12
|
+
icon?: React.JSX.Element;
|
|
13
13
|
image?: React.ReactNode;
|
|
14
14
|
};
|
|
15
15
|
declare const ToggleGroupItem: React.ForwardRefExoticComponent<Omit<ToggleGroupPrimitive.ToggleGroupItemProps & React.RefAttributes<HTMLButtonElement>, "ref"> & ToggleGroupItemProps & React.RefAttributes<HTMLButtonElement>>;
|
|
@@ -141,7 +141,7 @@ var ToggleGroupItem = React.forwardRef((_a, ref) => {
|
|
|
141
141
|
ref,
|
|
142
142
|
className: cn(
|
|
143
143
|
"flex border-2 border-gray-200 data-[state=on]:border-blue-700 p-2 rounded-lg group",
|
|
144
|
-
"focus-visible:outline-
|
|
144
|
+
"focus-visible:outline-hidden focus-visible:ring-blue-300 focus-visible:ring-2 focus-visible:ring-offset-2",
|
|
145
145
|
isRow ? "gap-2" : "gap-2.5",
|
|
146
146
|
className
|
|
147
147
|
)
|
|
@@ -160,12 +160,12 @@ var ToggleGroupItem = React.forwardRef((_a, ref) => {
|
|
|
160
160
|
"div",
|
|
161
161
|
{
|
|
162
162
|
className: cn(
|
|
163
|
-
"flex justify-center items-center w-8 h-8 border-gray-200 rounded shrink-0",
|
|
163
|
+
"flex justify-center items-center w-8 h-8 border-gray-200 rounded-sm shrink-0",
|
|
164
164
|
{ border: !isRow }
|
|
165
165
|
),
|
|
166
166
|
children: [
|
|
167
167
|
icon && React.cloneElement(icon, { size: isRow ? 24 : 16 }),
|
|
168
|
-
image && /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("div", { className: "w-full h-full border border-gray-200 rounded min-w-0 overflow-hidden", children: image })
|
|
168
|
+
image && /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("div", { className: "w-full h-full border border-gray-200 rounded-sm min-w-0 overflow-hidden", children: image })
|
|
169
169
|
]
|
|
170
170
|
}
|
|
171
171
|
),
|
|
@@ -190,7 +190,7 @@ var ToggleGroupItem = React.forwardRef((_a, ref) => {
|
|
|
190
190
|
{
|
|
191
191
|
className: cn(
|
|
192
192
|
"flex items-center justify-center w-4 h-4 bg-gray-50 border border-gray-200 group-data-[state=on]:border-blue-700",
|
|
193
|
-
type === "single" ? "rounded-full" : "rounded"
|
|
193
|
+
type === "single" ? "rounded-full" : "rounded-sm"
|
|
194
194
|
),
|
|
195
195
|
children: type === "single" ? /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("span", { className: "h-2 w-2 rounded-full bg-blue-700 group-data-[state=off]:bg-transparent" }) : /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("div", { className: "flex justify-center items-center w-full h-full bg-blue-700 group-data-[state=off]:bg-transparent", children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
|
196
196
|
CheckIcon,
|
|
@@ -44,7 +44,7 @@ var ToggleGroupItem = React.forwardRef((_a, ref) => {
|
|
|
44
44
|
ref,
|
|
45
45
|
className: cn(
|
|
46
46
|
"flex border-2 border-gray-200 data-[state=on]:border-blue-700 p-2 rounded-lg group",
|
|
47
|
-
"focus-visible:outline-
|
|
47
|
+
"focus-visible:outline-hidden focus-visible:ring-blue-300 focus-visible:ring-2 focus-visible:ring-offset-2",
|
|
48
48
|
isRow ? "gap-2" : "gap-2.5",
|
|
49
49
|
className
|
|
50
50
|
)
|
|
@@ -63,12 +63,12 @@ var ToggleGroupItem = React.forwardRef((_a, ref) => {
|
|
|
63
63
|
"div",
|
|
64
64
|
{
|
|
65
65
|
className: cn(
|
|
66
|
-
"flex justify-center items-center w-8 h-8 border-gray-200 rounded shrink-0",
|
|
66
|
+
"flex justify-center items-center w-8 h-8 border-gray-200 rounded-sm shrink-0",
|
|
67
67
|
{ border: !isRow }
|
|
68
68
|
),
|
|
69
69
|
children: [
|
|
70
70
|
icon && React.cloneElement(icon, { size: isRow ? 24 : 16 }),
|
|
71
|
-
image && /* @__PURE__ */ jsx("div", { className: "w-full h-full border border-gray-200 rounded min-w-0 overflow-hidden", children: image })
|
|
71
|
+
image && /* @__PURE__ */ jsx("div", { className: "w-full h-full border border-gray-200 rounded-sm min-w-0 overflow-hidden", children: image })
|
|
72
72
|
]
|
|
73
73
|
}
|
|
74
74
|
),
|
|
@@ -93,7 +93,7 @@ var ToggleGroupItem = React.forwardRef((_a, ref) => {
|
|
|
93
93
|
{
|
|
94
94
|
className: cn(
|
|
95
95
|
"flex items-center justify-center w-4 h-4 bg-gray-50 border border-gray-200 group-data-[state=on]:border-blue-700",
|
|
96
|
-
type === "single" ? "rounded-full" : "rounded"
|
|
96
|
+
type === "single" ? "rounded-full" : "rounded-sm"
|
|
97
97
|
),
|
|
98
98
|
children: type === "single" ? /* @__PURE__ */ jsx("span", { className: "h-2 w-2 rounded-full bg-blue-700 group-data-[state=off]:bg-transparent" }) : /* @__PURE__ */ jsx("div", { className: "flex justify-center items-center w-full h-full bg-blue-700 group-data-[state=off]:bg-transparent", children: /* @__PURE__ */ jsx(
|
|
99
99
|
CheckIcon,
|
|
@@ -94,7 +94,7 @@ var TooltipContent = React.forwardRef((_a, ref) => {
|
|
|
94
94
|
ref,
|
|
95
95
|
sideOffset,
|
|
96
96
|
className: cn(
|
|
97
|
-
"z-50 overflow-hidden rounded-md
|
|
97
|
+
"z-50 overflow-hidden rounded-md bg-black px-3 py-1.5 text-sm text-white font-medium animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
|
|
98
98
|
className
|
|
99
99
|
)
|
|
100
100
|
}, props)
|
|
@@ -26,7 +26,7 @@ var TooltipContent = React.forwardRef((_a, ref) => {
|
|
|
26
26
|
ref,
|
|
27
27
|
sideOffset,
|
|
28
28
|
className: cn(
|
|
29
|
-
"z-50 overflow-hidden rounded-md
|
|
29
|
+
"z-50 overflow-hidden rounded-md bg-black px-3 py-1.5 text-sm text-white font-medium animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
|
|
30
30
|
className
|
|
31
31
|
)
|
|
32
32
|
}, props)
|
|
@@ -3,36 +3,36 @@ import * as React from 'react';
|
|
|
3
3
|
declare const Command: React.ForwardRefExoticComponent<Omit<{
|
|
4
4
|
children?: React.ReactNode;
|
|
5
5
|
} & Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
|
6
|
-
ref?: React.Ref<HTMLDivElement
|
|
6
|
+
ref?: React.Ref<HTMLDivElement>;
|
|
7
7
|
} & {
|
|
8
|
-
asChild?: boolean
|
|
8
|
+
asChild?: boolean;
|
|
9
9
|
}, "key" | "asChild" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
|
10
|
-
label?: string
|
|
11
|
-
shouldFilter?: boolean
|
|
12
|
-
filter?: (
|
|
13
|
-
defaultValue?: string
|
|
14
|
-
value?: string
|
|
15
|
-
onValueChange?: (
|
|
16
|
-
loop?: boolean
|
|
17
|
-
disablePointerSelection?: boolean
|
|
18
|
-
vimBindings?: boolean
|
|
10
|
+
label?: string;
|
|
11
|
+
shouldFilter?: boolean;
|
|
12
|
+
filter?: (value: string, search: string, keywords?: string[]) => number;
|
|
13
|
+
defaultValue?: string;
|
|
14
|
+
value?: string;
|
|
15
|
+
onValueChange?: (value: string) => void;
|
|
16
|
+
loop?: boolean;
|
|
17
|
+
disablePointerSelection?: boolean;
|
|
18
|
+
vimBindings?: boolean;
|
|
19
19
|
} & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
20
20
|
declare const CommandInput: React.ForwardRefExoticComponent<Omit<Omit<Pick<Pick<React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "key" | keyof React.InputHTMLAttributes<HTMLInputElement>> & {
|
|
21
|
-
ref?: React.Ref<HTMLInputElement
|
|
21
|
+
ref?: React.Ref<HTMLInputElement>;
|
|
22
22
|
} & {
|
|
23
|
-
asChild?: boolean
|
|
23
|
+
asChild?: boolean;
|
|
24
24
|
}, "key" | "asChild" | keyof React.InputHTMLAttributes<HTMLInputElement>>, "type" | "onChange" | "value"> & {
|
|
25
|
-
value?: string
|
|
26
|
-
onValueChange?: (
|
|
25
|
+
value?: string;
|
|
26
|
+
onValueChange?: (search: string) => void;
|
|
27
27
|
} & React.RefAttributes<HTMLInputElement>, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
28
28
|
declare const CommandList: React.ForwardRefExoticComponent<Omit<{
|
|
29
29
|
children?: React.ReactNode;
|
|
30
30
|
} & Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
|
31
|
-
ref?: React.Ref<HTMLDivElement
|
|
31
|
+
ref?: React.Ref<HTMLDivElement>;
|
|
32
32
|
} & {
|
|
33
|
-
asChild?: boolean
|
|
33
|
+
asChild?: boolean;
|
|
34
34
|
}, "key" | "asChild" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
|
35
|
-
label?: string
|
|
35
|
+
label?: string;
|
|
36
36
|
} & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
37
37
|
interface CommandEmptyExtension {
|
|
38
38
|
title?: string;
|
|
@@ -41,40 +41,40 @@ interface CommandEmptyExtension {
|
|
|
41
41
|
declare const CommandEmpty: React.ForwardRefExoticComponent<Omit<{
|
|
42
42
|
children?: React.ReactNode;
|
|
43
43
|
} & Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
|
44
|
-
ref?: React.Ref<HTMLDivElement
|
|
44
|
+
ref?: React.Ref<HTMLDivElement>;
|
|
45
45
|
} & {
|
|
46
|
-
asChild?: boolean
|
|
46
|
+
asChild?: boolean;
|
|
47
47
|
}, "key" | "asChild" | keyof React.HTMLAttributes<HTMLDivElement>> & React.RefAttributes<HTMLDivElement>, "ref"> & CommandEmptyExtension & React.RefAttributes<HTMLDivElement & CommandEmptyExtension>>;
|
|
48
48
|
declare const CommandLoading: React.ForwardRefExoticComponent<Omit<{
|
|
49
49
|
children?: React.ReactNode;
|
|
50
50
|
} & Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
|
51
|
-
ref?: React.Ref<HTMLDivElement
|
|
51
|
+
ref?: React.Ref<HTMLDivElement>;
|
|
52
52
|
} & {
|
|
53
|
-
asChild?: boolean
|
|
53
|
+
asChild?: boolean;
|
|
54
54
|
}, "key" | "asChild" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
|
55
|
-
progress?: number
|
|
56
|
-
label?: string
|
|
55
|
+
progress?: number;
|
|
56
|
+
label?: string;
|
|
57
57
|
} & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
58
58
|
declare const CommandGroup: React.ForwardRefExoticComponent<Omit<{
|
|
59
59
|
children?: React.ReactNode;
|
|
60
60
|
} & Omit<Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
|
61
|
-
ref?: React.Ref<HTMLDivElement
|
|
61
|
+
ref?: React.Ref<HTMLDivElement>;
|
|
62
62
|
} & {
|
|
63
|
-
asChild?: boolean
|
|
63
|
+
asChild?: boolean;
|
|
64
64
|
}, "key" | "asChild" | keyof React.HTMLAttributes<HTMLDivElement>>, "heading" | "value"> & {
|
|
65
65
|
heading?: React.ReactNode;
|
|
66
|
-
value?: string
|
|
67
|
-
forceMount?: boolean
|
|
66
|
+
value?: string;
|
|
67
|
+
forceMount?: boolean;
|
|
68
68
|
} & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
69
69
|
declare const CommandSeparator: React.ForwardRefExoticComponent<Omit<Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
|
70
|
-
ref?: React.Ref<HTMLDivElement
|
|
70
|
+
ref?: React.Ref<HTMLDivElement>;
|
|
71
71
|
} & {
|
|
72
|
-
asChild?: boolean
|
|
72
|
+
asChild?: boolean;
|
|
73
73
|
}, "key" | "asChild" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
|
74
|
-
alwaysRender?: boolean
|
|
74
|
+
alwaysRender?: boolean;
|
|
75
75
|
} & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
76
76
|
type CommandItemExtension = {
|
|
77
|
-
icon?: JSX.Element;
|
|
77
|
+
icon?: React.JSX.Element;
|
|
78
78
|
checkbox?: boolean;
|
|
79
79
|
checked?: boolean;
|
|
80
80
|
description?: string;
|
|
@@ -82,15 +82,15 @@ type CommandItemExtension = {
|
|
|
82
82
|
declare const CommandItem: React.ForwardRefExoticComponent<Omit<{
|
|
83
83
|
children?: React.ReactNode;
|
|
84
84
|
} & Omit<Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
|
85
|
-
ref?: React.Ref<HTMLDivElement
|
|
85
|
+
ref?: React.Ref<HTMLDivElement>;
|
|
86
86
|
} & {
|
|
87
|
-
asChild?: boolean
|
|
87
|
+
asChild?: boolean;
|
|
88
88
|
}, "key" | "asChild" | keyof React.HTMLAttributes<HTMLDivElement>>, "onSelect" | "disabled" | "value"> & {
|
|
89
|
-
disabled?: boolean
|
|
90
|
-
onSelect?: (
|
|
91
|
-
value?: string
|
|
92
|
-
keywords?: string[]
|
|
93
|
-
forceMount?: boolean
|
|
89
|
+
disabled?: boolean;
|
|
90
|
+
onSelect?: (value: string) => void;
|
|
91
|
+
value?: string;
|
|
92
|
+
keywords?: string[];
|
|
93
|
+
forceMount?: boolean;
|
|
94
94
|
} & React.RefAttributes<HTMLDivElement>, "ref"> & CommandItemExtension & React.RefAttributes<HTMLDivElement & CommandItemExtension>>;
|
|
95
95
|
|
|
96
96
|
export { type CommandItemExtension as C, Command as a, CommandEmpty as b, CommandGroup as c, CommandInput as d, CommandItem as e, CommandList as f, CommandLoading as g, CommandSeparator as h };
|
|
@@ -3,36 +3,36 @@ import * as React from 'react';
|
|
|
3
3
|
declare const Command: React.ForwardRefExoticComponent<Omit<{
|
|
4
4
|
children?: React.ReactNode;
|
|
5
5
|
} & Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
|
6
|
-
ref?: React.Ref<HTMLDivElement
|
|
6
|
+
ref?: React.Ref<HTMLDivElement>;
|
|
7
7
|
} & {
|
|
8
|
-
asChild?: boolean
|
|
8
|
+
asChild?: boolean;
|
|
9
9
|
}, "key" | "asChild" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
|
10
|
-
label?: string
|
|
11
|
-
shouldFilter?: boolean
|
|
12
|
-
filter?: (
|
|
13
|
-
defaultValue?: string
|
|
14
|
-
value?: string
|
|
15
|
-
onValueChange?: (
|
|
16
|
-
loop?: boolean
|
|
17
|
-
disablePointerSelection?: boolean
|
|
18
|
-
vimBindings?: boolean
|
|
10
|
+
label?: string;
|
|
11
|
+
shouldFilter?: boolean;
|
|
12
|
+
filter?: (value: string, search: string, keywords?: string[]) => number;
|
|
13
|
+
defaultValue?: string;
|
|
14
|
+
value?: string;
|
|
15
|
+
onValueChange?: (value: string) => void;
|
|
16
|
+
loop?: boolean;
|
|
17
|
+
disablePointerSelection?: boolean;
|
|
18
|
+
vimBindings?: boolean;
|
|
19
19
|
} & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
20
20
|
declare const CommandInput: React.ForwardRefExoticComponent<Omit<Omit<Pick<Pick<React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "key" | keyof React.InputHTMLAttributes<HTMLInputElement>> & {
|
|
21
|
-
ref?: React.Ref<HTMLInputElement
|
|
21
|
+
ref?: React.Ref<HTMLInputElement>;
|
|
22
22
|
} & {
|
|
23
|
-
asChild?: boolean
|
|
23
|
+
asChild?: boolean;
|
|
24
24
|
}, "key" | "asChild" | keyof React.InputHTMLAttributes<HTMLInputElement>>, "type" | "onChange" | "value"> & {
|
|
25
|
-
value?: string
|
|
26
|
-
onValueChange?: (
|
|
25
|
+
value?: string;
|
|
26
|
+
onValueChange?: (search: string) => void;
|
|
27
27
|
} & React.RefAttributes<HTMLInputElement>, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
28
28
|
declare const CommandList: React.ForwardRefExoticComponent<Omit<{
|
|
29
29
|
children?: React.ReactNode;
|
|
30
30
|
} & Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
|
31
|
-
ref?: React.Ref<HTMLDivElement
|
|
31
|
+
ref?: React.Ref<HTMLDivElement>;
|
|
32
32
|
} & {
|
|
33
|
-
asChild?: boolean
|
|
33
|
+
asChild?: boolean;
|
|
34
34
|
}, "key" | "asChild" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
|
35
|
-
label?: string
|
|
35
|
+
label?: string;
|
|
36
36
|
} & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
37
37
|
interface CommandEmptyExtension {
|
|
38
38
|
title?: string;
|
|
@@ -41,40 +41,40 @@ interface CommandEmptyExtension {
|
|
|
41
41
|
declare const CommandEmpty: React.ForwardRefExoticComponent<Omit<{
|
|
42
42
|
children?: React.ReactNode;
|
|
43
43
|
} & Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
|
44
|
-
ref?: React.Ref<HTMLDivElement
|
|
44
|
+
ref?: React.Ref<HTMLDivElement>;
|
|
45
45
|
} & {
|
|
46
|
-
asChild?: boolean
|
|
46
|
+
asChild?: boolean;
|
|
47
47
|
}, "key" | "asChild" | keyof React.HTMLAttributes<HTMLDivElement>> & React.RefAttributes<HTMLDivElement>, "ref"> & CommandEmptyExtension & React.RefAttributes<HTMLDivElement & CommandEmptyExtension>>;
|
|
48
48
|
declare const CommandLoading: React.ForwardRefExoticComponent<Omit<{
|
|
49
49
|
children?: React.ReactNode;
|
|
50
50
|
} & Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
|
51
|
-
ref?: React.Ref<HTMLDivElement
|
|
51
|
+
ref?: React.Ref<HTMLDivElement>;
|
|
52
52
|
} & {
|
|
53
|
-
asChild?: boolean
|
|
53
|
+
asChild?: boolean;
|
|
54
54
|
}, "key" | "asChild" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
|
55
|
-
progress?: number
|
|
56
|
-
label?: string
|
|
55
|
+
progress?: number;
|
|
56
|
+
label?: string;
|
|
57
57
|
} & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
58
58
|
declare const CommandGroup: React.ForwardRefExoticComponent<Omit<{
|
|
59
59
|
children?: React.ReactNode;
|
|
60
60
|
} & Omit<Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
|
61
|
-
ref?: React.Ref<HTMLDivElement
|
|
61
|
+
ref?: React.Ref<HTMLDivElement>;
|
|
62
62
|
} & {
|
|
63
|
-
asChild?: boolean
|
|
63
|
+
asChild?: boolean;
|
|
64
64
|
}, "key" | "asChild" | keyof React.HTMLAttributes<HTMLDivElement>>, "heading" | "value"> & {
|
|
65
65
|
heading?: React.ReactNode;
|
|
66
|
-
value?: string
|
|
67
|
-
forceMount?: boolean
|
|
66
|
+
value?: string;
|
|
67
|
+
forceMount?: boolean;
|
|
68
68
|
} & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
69
69
|
declare const CommandSeparator: React.ForwardRefExoticComponent<Omit<Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
|
70
|
-
ref?: React.Ref<HTMLDivElement
|
|
70
|
+
ref?: React.Ref<HTMLDivElement>;
|
|
71
71
|
} & {
|
|
72
|
-
asChild?: boolean
|
|
72
|
+
asChild?: boolean;
|
|
73
73
|
}, "key" | "asChild" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
|
74
|
-
alwaysRender?: boolean
|
|
74
|
+
alwaysRender?: boolean;
|
|
75
75
|
} & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
76
76
|
type CommandItemExtension = {
|
|
77
|
-
icon?: JSX.Element;
|
|
77
|
+
icon?: React.JSX.Element;
|
|
78
78
|
checkbox?: boolean;
|
|
79
79
|
checked?: boolean;
|
|
80
80
|
description?: string;
|
|
@@ -82,15 +82,15 @@ type CommandItemExtension = {
|
|
|
82
82
|
declare const CommandItem: React.ForwardRefExoticComponent<Omit<{
|
|
83
83
|
children?: React.ReactNode;
|
|
84
84
|
} & Omit<Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
|
85
|
-
ref?: React.Ref<HTMLDivElement
|
|
85
|
+
ref?: React.Ref<HTMLDivElement>;
|
|
86
86
|
} & {
|
|
87
|
-
asChild?: boolean
|
|
87
|
+
asChild?: boolean;
|
|
88
88
|
}, "key" | "asChild" | keyof React.HTMLAttributes<HTMLDivElement>>, "onSelect" | "disabled" | "value"> & {
|
|
89
|
-
disabled?: boolean
|
|
90
|
-
onSelect?: (
|
|
91
|
-
value?: string
|
|
92
|
-
keywords?: string[]
|
|
93
|
-
forceMount?: boolean
|
|
89
|
+
disabled?: boolean;
|
|
90
|
+
onSelect?: (value: string) => void;
|
|
91
|
+
value?: string;
|
|
92
|
+
keywords?: string[];
|
|
93
|
+
forceMount?: boolean;
|
|
94
94
|
} & React.RefAttributes<HTMLDivElement>, "ref"> & CommandItemExtension & React.RefAttributes<HTMLDivElement & CommandItemExtension>>;
|
|
95
95
|
|
|
96
96
|
export { type CommandItemExtension as C, Command as a, CommandEmpty as b, CommandGroup as c, CommandInput as d, CommandItem as e, CommandList as f, CommandLoading as g, CommandSeparator as h };
|