@snapcall/design-system 1.21.2 → 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 +7 -3
- package/dist/components/MediaCard/index.d.ts +7 -3
- package/dist/components/MediaCard/index.js +21 -15
- package/dist/components/MediaCard/index.mjs +21 -15
- 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 +169 -100
- package/dist/index.d.ts +169 -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
|
@@ -0,0 +1,152 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __create = Object.create;
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __defProps = Object.defineProperties;
|
|
5
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
6
|
+
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
7
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
8
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
9
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
10
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
11
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
12
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
13
|
+
var __spreadValues = (a, b) => {
|
|
14
|
+
for (var prop in b || (b = {}))
|
|
15
|
+
if (__hasOwnProp.call(b, prop))
|
|
16
|
+
__defNormalProp(a, prop, b[prop]);
|
|
17
|
+
if (__getOwnPropSymbols)
|
|
18
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
19
|
+
if (__propIsEnum.call(b, prop))
|
|
20
|
+
__defNormalProp(a, prop, b[prop]);
|
|
21
|
+
}
|
|
22
|
+
return a;
|
|
23
|
+
};
|
|
24
|
+
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
25
|
+
var __objRest = (source, exclude) => {
|
|
26
|
+
var target = {};
|
|
27
|
+
for (var prop in source)
|
|
28
|
+
if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
29
|
+
target[prop] = source[prop];
|
|
30
|
+
if (source != null && __getOwnPropSymbols)
|
|
31
|
+
for (var prop of __getOwnPropSymbols(source)) {
|
|
32
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
|
|
33
|
+
target[prop] = source[prop];
|
|
34
|
+
}
|
|
35
|
+
return target;
|
|
36
|
+
};
|
|
37
|
+
var __export = (target, all) => {
|
|
38
|
+
for (var name in all)
|
|
39
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
40
|
+
};
|
|
41
|
+
var __copyProps = (to, from, except, desc) => {
|
|
42
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
43
|
+
for (let key of __getOwnPropNames(from))
|
|
44
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
45
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
46
|
+
}
|
|
47
|
+
return to;
|
|
48
|
+
};
|
|
49
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
50
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
51
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
52
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
53
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
54
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
55
|
+
mod
|
|
56
|
+
));
|
|
57
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
58
|
+
|
|
59
|
+
// src/components/Banner/index.ts
|
|
60
|
+
var Banner_exports = {};
|
|
61
|
+
__export(Banner_exports, {
|
|
62
|
+
Banner: () => Banner
|
|
63
|
+
});
|
|
64
|
+
module.exports = __toCommonJS(Banner_exports);
|
|
65
|
+
|
|
66
|
+
// src/components/Banner/Banner.tsx
|
|
67
|
+
var React = __toESM(require("react"));
|
|
68
|
+
var import_cva = require("cva");
|
|
69
|
+
|
|
70
|
+
// src/utils/cn.ts
|
|
71
|
+
var import_clsx = require("clsx");
|
|
72
|
+
var import_tailwind_merge = require("tailwind-merge");
|
|
73
|
+
function cn(...inputs) {
|
|
74
|
+
return (0, import_tailwind_merge.twMerge)((0, import_clsx.clsx)(inputs));
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
// src/components/Banner/Banner.tsx
|
|
78
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
79
|
+
var bannerVariants = (0, import_cva.cva)({
|
|
80
|
+
variants: {
|
|
81
|
+
color: {
|
|
82
|
+
gray: "bg-gray-50 ring-gray-200 text-gray-200",
|
|
83
|
+
blue: "bg-blue-100 ring-blue-700 text-blue-700",
|
|
84
|
+
green: "bg-green-100 ring-green-700 text-green-700",
|
|
85
|
+
amber: "bg-amber-100 ring-amber-700 text-amber-700",
|
|
86
|
+
red: "bg-red-100 ring-red-700 text-red-700",
|
|
87
|
+
unset: ""
|
|
88
|
+
}
|
|
89
|
+
},
|
|
90
|
+
defaultVariants: {
|
|
91
|
+
color: "gray"
|
|
92
|
+
}
|
|
93
|
+
});
|
|
94
|
+
function Banner(_a) {
|
|
95
|
+
var _b = _a, {
|
|
96
|
+
title,
|
|
97
|
+
text,
|
|
98
|
+
icon,
|
|
99
|
+
action,
|
|
100
|
+
color,
|
|
101
|
+
className
|
|
102
|
+
} = _b, props = __objRest(_b, [
|
|
103
|
+
"title",
|
|
104
|
+
"text",
|
|
105
|
+
"icon",
|
|
106
|
+
"action",
|
|
107
|
+
"color",
|
|
108
|
+
"className"
|
|
109
|
+
]);
|
|
110
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
111
|
+
"div",
|
|
112
|
+
__spreadProps(__spreadValues({
|
|
113
|
+
className: cn(
|
|
114
|
+
"flex gap-2 items-center w-fit max-w-full ring-1 ring-inset rounded-lg min-w-0",
|
|
115
|
+
bannerVariants({ color }),
|
|
116
|
+
{
|
|
117
|
+
"pl-2 py-1 pr-1": !title && Boolean(action),
|
|
118
|
+
"p-2": !title && !action,
|
|
119
|
+
"p-4": title
|
|
120
|
+
},
|
|
121
|
+
className
|
|
122
|
+
)
|
|
123
|
+
}, props), {
|
|
124
|
+
children: title ? /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "flex flex-col gap-2 min-w-0", children: [
|
|
125
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "flex gap-2 items-center", children: [
|
|
126
|
+
icon && React.cloneElement(icon, {
|
|
127
|
+
size: 16,
|
|
128
|
+
className: cn("shrink-0", icon.props.className)
|
|
129
|
+
}),
|
|
130
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: "text-sm text-black font-semibold truncate", children: title })
|
|
131
|
+
] }),
|
|
132
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: cn("flex flex-col gap-2", { "pl-6": Boolean(icon) }), children: [
|
|
133
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: "text-sm text-black", children: text }),
|
|
134
|
+
action && React.cloneElement(action, {
|
|
135
|
+
className: cn("self-start", action.props.className)
|
|
136
|
+
})
|
|
137
|
+
] })
|
|
138
|
+
] }) : /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
|
|
139
|
+
icon && React.cloneElement(icon, {
|
|
140
|
+
size: 16,
|
|
141
|
+
className: cn("shrink-0", icon.props.className)
|
|
142
|
+
}),
|
|
143
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: "text-sm text-black", children: text }),
|
|
144
|
+
action && React.cloneElement(action)
|
|
145
|
+
] })
|
|
146
|
+
})
|
|
147
|
+
);
|
|
148
|
+
}
|
|
149
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
150
|
+
0 && (module.exports = {
|
|
151
|
+
Banner
|
|
152
|
+
});
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import {
|
|
2
|
+
__objRest,
|
|
3
|
+
__spreadProps,
|
|
4
|
+
__spreadValues,
|
|
5
|
+
cn
|
|
6
|
+
} from "../../chunk-BOWIL6WZ.mjs";
|
|
7
|
+
|
|
8
|
+
// src/components/Banner/Banner.tsx
|
|
9
|
+
import * as React from "react";
|
|
10
|
+
import { cva } from "cva";
|
|
11
|
+
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
12
|
+
var bannerVariants = cva({
|
|
13
|
+
variants: {
|
|
14
|
+
color: {
|
|
15
|
+
gray: "bg-gray-50 ring-gray-200 text-gray-200",
|
|
16
|
+
blue: "bg-blue-100 ring-blue-700 text-blue-700",
|
|
17
|
+
green: "bg-green-100 ring-green-700 text-green-700",
|
|
18
|
+
amber: "bg-amber-100 ring-amber-700 text-amber-700",
|
|
19
|
+
red: "bg-red-100 ring-red-700 text-red-700",
|
|
20
|
+
unset: ""
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
defaultVariants: {
|
|
24
|
+
color: "gray"
|
|
25
|
+
}
|
|
26
|
+
});
|
|
27
|
+
function Banner(_a) {
|
|
28
|
+
var _b = _a, {
|
|
29
|
+
title,
|
|
30
|
+
text,
|
|
31
|
+
icon,
|
|
32
|
+
action,
|
|
33
|
+
color,
|
|
34
|
+
className
|
|
35
|
+
} = _b, props = __objRest(_b, [
|
|
36
|
+
"title",
|
|
37
|
+
"text",
|
|
38
|
+
"icon",
|
|
39
|
+
"action",
|
|
40
|
+
"color",
|
|
41
|
+
"className"
|
|
42
|
+
]);
|
|
43
|
+
return /* @__PURE__ */ jsx(
|
|
44
|
+
"div",
|
|
45
|
+
__spreadProps(__spreadValues({
|
|
46
|
+
className: cn(
|
|
47
|
+
"flex gap-2 items-center w-fit max-w-full ring-1 ring-inset rounded-lg min-w-0",
|
|
48
|
+
bannerVariants({ color }),
|
|
49
|
+
{
|
|
50
|
+
"pl-2 py-1 pr-1": !title && Boolean(action),
|
|
51
|
+
"p-2": !title && !action,
|
|
52
|
+
"p-4": title
|
|
53
|
+
},
|
|
54
|
+
className
|
|
55
|
+
)
|
|
56
|
+
}, props), {
|
|
57
|
+
children: title ? /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-2 min-w-0", children: [
|
|
58
|
+
/* @__PURE__ */ jsxs("div", { className: "flex gap-2 items-center", children: [
|
|
59
|
+
icon && React.cloneElement(icon, {
|
|
60
|
+
size: 16,
|
|
61
|
+
className: cn("shrink-0", icon.props.className)
|
|
62
|
+
}),
|
|
63
|
+
/* @__PURE__ */ jsx("span", { className: "text-sm text-black font-semibold truncate", children: title })
|
|
64
|
+
] }),
|
|
65
|
+
/* @__PURE__ */ jsxs("div", { className: cn("flex flex-col gap-2", { "pl-6": Boolean(icon) }), children: [
|
|
66
|
+
/* @__PURE__ */ jsx("span", { className: "text-sm text-black", children: text }),
|
|
67
|
+
action && React.cloneElement(action, {
|
|
68
|
+
className: cn("self-start", action.props.className)
|
|
69
|
+
})
|
|
70
|
+
] })
|
|
71
|
+
] }) : /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
72
|
+
icon && React.cloneElement(icon, {
|
|
73
|
+
size: 16,
|
|
74
|
+
className: cn("shrink-0", icon.props.className)
|
|
75
|
+
}),
|
|
76
|
+
/* @__PURE__ */ jsx("span", { className: "text-sm text-black", children: text }),
|
|
77
|
+
action && React.cloneElement(action)
|
|
78
|
+
] })
|
|
79
|
+
})
|
|
80
|
+
);
|
|
81
|
+
}
|
|
82
|
+
export {
|
|
83
|
+
Banner
|
|
84
|
+
};
|
|
@@ -4,7 +4,7 @@ import { VariantProps } from 'cva';
|
|
|
4
4
|
declare const buttonVariants: (props?: ({
|
|
5
5
|
variant?: "primary" | "secondary" | "tertiary" | "outline" | "outlineBlue" | "destructive" | "ghostBlue" | "ghostRed" | "ghostGray" | "roundedFill" | "roundedGlass" | undefined;
|
|
6
6
|
} & ({
|
|
7
|
-
class?: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | any | {
|
|
7
|
+
class?: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/ any | {
|
|
8
8
|
[x: string]: any;
|
|
9
9
|
} | null | undefined)[] | {
|
|
10
10
|
[x: string]: any;
|
|
@@ -29,10 +29,10 @@ declare const buttonVariants: (props?: ({
|
|
|
29
29
|
} | null | undefined)[] | {
|
|
30
30
|
[x: string]: any;
|
|
31
31
|
} | null | undefined;
|
|
32
|
-
className?:
|
|
32
|
+
className?: never;
|
|
33
33
|
} | {
|
|
34
|
-
class?:
|
|
35
|
-
className?: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | any | {
|
|
34
|
+
class?: never;
|
|
35
|
+
className?: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/ any | {
|
|
36
36
|
[x: string]: any;
|
|
37
37
|
} | null | undefined)[] | {
|
|
38
38
|
[x: string]: any;
|
|
@@ -61,7 +61,7 @@ declare const buttonVariants: (props?: ({
|
|
|
61
61
|
declare const buttonSizes: (props?: ({
|
|
62
62
|
size?: "xs" | "sm" | "md" | "lg" | undefined;
|
|
63
63
|
} & ({
|
|
64
|
-
class?: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | any | {
|
|
64
|
+
class?: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/ any | {
|
|
65
65
|
[x: string]: any;
|
|
66
66
|
} | null | undefined)[] | {
|
|
67
67
|
[x: string]: any;
|
|
@@ -86,10 +86,10 @@ declare const buttonSizes: (props?: ({
|
|
|
86
86
|
} | null | undefined)[] | {
|
|
87
87
|
[x: string]: any;
|
|
88
88
|
} | null | undefined;
|
|
89
|
-
className?:
|
|
89
|
+
className?: never;
|
|
90
90
|
} | {
|
|
91
|
-
class?:
|
|
92
|
-
className?: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | any | {
|
|
91
|
+
class?: never;
|
|
92
|
+
className?: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/ any | {
|
|
93
93
|
[x: string]: any;
|
|
94
94
|
} | null | undefined)[] | {
|
|
95
95
|
[x: string]: any;
|
|
@@ -118,7 +118,7 @@ declare const buttonSizes: (props?: ({
|
|
|
118
118
|
declare const iconButtonSizes: (props?: ({
|
|
119
119
|
size?: "xs" | "sm" | "md" | "lg" | undefined;
|
|
120
120
|
} & ({
|
|
121
|
-
class?: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | any | {
|
|
121
|
+
class?: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/ any | {
|
|
122
122
|
[x: string]: any;
|
|
123
123
|
} | null | undefined)[] | {
|
|
124
124
|
[x: string]: any;
|
|
@@ -143,10 +143,10 @@ declare const iconButtonSizes: (props?: ({
|
|
|
143
143
|
} | null | undefined)[] | {
|
|
144
144
|
[x: string]: any;
|
|
145
145
|
} | null | undefined;
|
|
146
|
-
className?:
|
|
146
|
+
className?: never;
|
|
147
147
|
} | {
|
|
148
|
-
class?:
|
|
149
|
-
className?: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | any | {
|
|
148
|
+
class?: never;
|
|
149
|
+
className?: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/ any | {
|
|
150
150
|
[x: string]: any;
|
|
151
151
|
} | null | undefined)[] | {
|
|
152
152
|
[x: string]: any;
|
|
@@ -4,7 +4,7 @@ import { VariantProps } from 'cva';
|
|
|
4
4
|
declare const buttonVariants: (props?: ({
|
|
5
5
|
variant?: "primary" | "secondary" | "tertiary" | "outline" | "outlineBlue" | "destructive" | "ghostBlue" | "ghostRed" | "ghostGray" | "roundedFill" | "roundedGlass" | undefined;
|
|
6
6
|
} & ({
|
|
7
|
-
class?: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | any | {
|
|
7
|
+
class?: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/ any | {
|
|
8
8
|
[x: string]: any;
|
|
9
9
|
} | null | undefined)[] | {
|
|
10
10
|
[x: string]: any;
|
|
@@ -29,10 +29,10 @@ declare const buttonVariants: (props?: ({
|
|
|
29
29
|
} | null | undefined)[] | {
|
|
30
30
|
[x: string]: any;
|
|
31
31
|
} | null | undefined;
|
|
32
|
-
className?:
|
|
32
|
+
className?: never;
|
|
33
33
|
} | {
|
|
34
|
-
class?:
|
|
35
|
-
className?: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | any | {
|
|
34
|
+
class?: never;
|
|
35
|
+
className?: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/ any | {
|
|
36
36
|
[x: string]: any;
|
|
37
37
|
} | null | undefined)[] | {
|
|
38
38
|
[x: string]: any;
|
|
@@ -61,7 +61,7 @@ declare const buttonVariants: (props?: ({
|
|
|
61
61
|
declare const buttonSizes: (props?: ({
|
|
62
62
|
size?: "xs" | "sm" | "md" | "lg" | undefined;
|
|
63
63
|
} & ({
|
|
64
|
-
class?: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | any | {
|
|
64
|
+
class?: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/ any | {
|
|
65
65
|
[x: string]: any;
|
|
66
66
|
} | null | undefined)[] | {
|
|
67
67
|
[x: string]: any;
|
|
@@ -86,10 +86,10 @@ declare const buttonSizes: (props?: ({
|
|
|
86
86
|
} | null | undefined)[] | {
|
|
87
87
|
[x: string]: any;
|
|
88
88
|
} | null | undefined;
|
|
89
|
-
className?:
|
|
89
|
+
className?: never;
|
|
90
90
|
} | {
|
|
91
|
-
class?:
|
|
92
|
-
className?: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | any | {
|
|
91
|
+
class?: never;
|
|
92
|
+
className?: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/ any | {
|
|
93
93
|
[x: string]: any;
|
|
94
94
|
} | null | undefined)[] | {
|
|
95
95
|
[x: string]: any;
|
|
@@ -118,7 +118,7 @@ declare const buttonSizes: (props?: ({
|
|
|
118
118
|
declare const iconButtonSizes: (props?: ({
|
|
119
119
|
size?: "xs" | "sm" | "md" | "lg" | undefined;
|
|
120
120
|
} & ({
|
|
121
|
-
class?: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | any | {
|
|
121
|
+
class?: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/ any | {
|
|
122
122
|
[x: string]: any;
|
|
123
123
|
} | null | undefined)[] | {
|
|
124
124
|
[x: string]: any;
|
|
@@ -143,10 +143,10 @@ declare const iconButtonSizes: (props?: ({
|
|
|
143
143
|
} | null | undefined)[] | {
|
|
144
144
|
[x: string]: any;
|
|
145
145
|
} | null | undefined;
|
|
146
|
-
className?:
|
|
146
|
+
className?: never;
|
|
147
147
|
} | {
|
|
148
|
-
class?:
|
|
149
|
-
className?: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | any | {
|
|
148
|
+
class?: never;
|
|
149
|
+
className?: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/ any | {
|
|
150
150
|
[x: string]: any;
|
|
151
151
|
} | null | undefined)[] | {
|
|
152
152
|
[x: string]: any;
|
|
@@ -120,15 +120,15 @@ function cn(...inputs) {
|
|
|
120
120
|
// src/components/Button/Button.tsx
|
|
121
121
|
var import_jsx_runtime2 = require("react/jsx-runtime");
|
|
122
122
|
var buttonVariants = (0, import_cva.cva)({
|
|
123
|
-
base: "inline-flex items-center justify-center gap-2 rounded-md text-sm font-medium ring-offset-background transition-colors relative focus-visible:outline-
|
|
123
|
+
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",
|
|
124
124
|
variants: {
|
|
125
125
|
variant: {
|
|
126
|
-
primary: "bg-blue-700 text-white [&>svg]:text-white dark:text-black [&>svg]:
|
|
126
|
+
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",
|
|
127
127
|
secondary: "bg-gray-50 text-black [&>svg]:text-black hover:bg-gray-100 active:bg-gray-500 focus-visible:ring-black",
|
|
128
128
|
tertiary: "bg-gray-50 text-blue-700 [&>svg]:text-blue-700 hover:bg-blue-100 active:bg-blue-200 focus-visible:ring-blue-700",
|
|
129
129
|
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",
|
|
130
130
|
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 ",
|
|
131
|
-
destructive: "bg-red-700 text-white [&>svg]:text-white dark:text-black [&>svg]:
|
|
131
|
+
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",
|
|
132
132
|
ghostBlue: "bg-transparent text-blue-700 [&>svg]:text-blue-700 hover:bg-blue-100 active:bg-blue-200 focus-visible:ring-blue-700",
|
|
133
133
|
ghostRed: "bg-transparent text-red-700 [&>svg]:text-red-700 hover:bg-red-100 active:bg-red-200 focus-visible:ring-red-700",
|
|
134
134
|
ghostGray: "bg-transparent text-black [&>svg]:text-black hover:bg-gray-100 active:bg-gray-200 focus-visible:ring-black",
|
|
@@ -184,15 +184,15 @@ var SpinnerIcon = (0, import_react3.forwardRef)(
|
|
|
184
184
|
// src/components/Button/Button.tsx
|
|
185
185
|
var import_jsx_runtime4 = require("react/jsx-runtime");
|
|
186
186
|
var buttonVariants = (0, import_cva.cva)({
|
|
187
|
-
base: "inline-flex items-center justify-center gap-2 rounded-md text-sm font-medium ring-offset-background transition-colors relative focus-visible:outline-
|
|
187
|
+
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",
|
|
188
188
|
variants: {
|
|
189
189
|
variant: {
|
|
190
|
-
primary: "bg-blue-700 text-white [&>svg]:text-white dark:text-black [&>svg]:
|
|
190
|
+
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",
|
|
191
191
|
secondary: "bg-gray-50 text-black [&>svg]:text-black hover:bg-gray-100 active:bg-gray-500 focus-visible:ring-black",
|
|
192
192
|
tertiary: "bg-gray-50 text-blue-700 [&>svg]:text-blue-700 hover:bg-blue-100 active:bg-blue-200 focus-visible:ring-blue-700",
|
|
193
193
|
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",
|
|
194
194
|
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 ",
|
|
195
|
-
destructive: "bg-red-700 text-white [&>svg]:text-white dark:text-black [&>svg]:
|
|
195
|
+
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",
|
|
196
196
|
ghostBlue: "bg-transparent text-blue-700 [&>svg]:text-blue-700 hover:bg-blue-100 active:bg-blue-200 focus-visible:ring-blue-700",
|
|
197
197
|
ghostRed: "bg-transparent text-red-700 [&>svg]:text-red-700 hover:bg-red-100 active:bg-red-200 focus-visible:ring-red-700",
|
|
198
198
|
ghostGray: "bg-transparent text-black [&>svg]:text-black hover:bg-gray-100 active:bg-gray-200 focus-visible:ring-black",
|
|
@@ -331,9 +331,9 @@ function Calendar(_a) {
|
|
|
331
331
|
),
|
|
332
332
|
day_button: "h-8 w-8 p-0 cursor-pointer rounded-md text-black",
|
|
333
333
|
range_start: "day-range-start",
|
|
334
|
-
range_middle: "day-range-middle
|
|
334
|
+
range_middle: "day-range-middle aria-selected:*:bg-blue-100 aria-selected:*:text-blue-700",
|
|
335
335
|
range_end: "day-range-end",
|
|
336
|
-
selected: "day-selected *:bg-blue-700 *:text-white dark:*:text-black
|
|
336
|
+
selected: "day-selected *:bg-blue-700 *:text-white dark:*:text-black hover:*:bg-blue-700 hover:*:text-white dark:hover:*:text-black focus:*:bg-blue-700 focus:*:text-white dark:focus:*:text-black *:opacity-100",
|
|
337
337
|
outside: "text-gray-700 opacity-50",
|
|
338
338
|
disabled: "text-gray-700 opacity-50",
|
|
339
339
|
hidden: "invisible"
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
import {
|
|
8
8
|
buttonVariants,
|
|
9
9
|
iconButtonSizes
|
|
10
|
-
} from "../../chunk-
|
|
10
|
+
} from "../../chunk-R6W6SKNR.mjs";
|
|
11
11
|
import "../../chunk-N65I4EXR.mjs";
|
|
12
12
|
import {
|
|
13
13
|
__objRest,
|
|
@@ -60,9 +60,9 @@ function Calendar(_a) {
|
|
|
60
60
|
),
|
|
61
61
|
day_button: "h-8 w-8 p-0 cursor-pointer rounded-md text-black",
|
|
62
62
|
range_start: "day-range-start",
|
|
63
|
-
range_middle: "day-range-middle
|
|
63
|
+
range_middle: "day-range-middle aria-selected:*:bg-blue-100 aria-selected:*:text-blue-700",
|
|
64
64
|
range_end: "day-range-end",
|
|
65
|
-
selected: "day-selected *:bg-blue-700 *:text-white dark:*:text-black
|
|
65
|
+
selected: "day-selected *:bg-blue-700 *:text-white dark:*:text-black hover:*:bg-blue-700 hover:*:text-white dark:hover:*:text-black focus:*:bg-blue-700 focus:*:text-white dark:focus:*:text-black *:opacity-100",
|
|
66
66
|
outside: "text-gray-700 opacity-50",
|
|
67
67
|
disabled: "text-gray-700 opacity-50",
|
|
68
68
|
hidden: "invisible"
|
|
@@ -253,15 +253,15 @@ var SpinnerIcon = (0, import_react5.forwardRef)(
|
|
|
253
253
|
// src/components/Button/Button.tsx
|
|
254
254
|
var import_jsx_runtime6 = require("react/jsx-runtime");
|
|
255
255
|
var buttonVariants = (0, import_cva.cva)({
|
|
256
|
-
base: "inline-flex items-center justify-center gap-2 rounded-md text-sm font-medium ring-offset-background transition-colors relative focus-visible:outline-
|
|
256
|
+
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",
|
|
257
257
|
variants: {
|
|
258
258
|
variant: {
|
|
259
|
-
primary: "bg-blue-700 text-white [&>svg]:text-white dark:text-black [&>svg]:
|
|
259
|
+
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",
|
|
260
260
|
secondary: "bg-gray-50 text-black [&>svg]:text-black hover:bg-gray-100 active:bg-gray-500 focus-visible:ring-black",
|
|
261
261
|
tertiary: "bg-gray-50 text-blue-700 [&>svg]:text-blue-700 hover:bg-blue-100 active:bg-blue-200 focus-visible:ring-blue-700",
|
|
262
262
|
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",
|
|
263
263
|
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 ",
|
|
264
|
-
destructive: "bg-red-700 text-white [&>svg]:text-white dark:text-black [&>svg]:
|
|
264
|
+
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",
|
|
265
265
|
ghostBlue: "bg-transparent text-blue-700 [&>svg]:text-blue-700 hover:bg-blue-100 active:bg-blue-200 focus-visible:ring-blue-700",
|
|
266
266
|
ghostRed: "bg-transparent text-red-700 [&>svg]:text-red-700 hover:bg-red-100 active:bg-red-200 focus-visible:ring-red-700",
|
|
267
267
|
ghostGray: "bg-transparent text-black [&>svg]:text-black hover:bg-gray-100 active:bg-gray-200 focus-visible:ring-black",
|
|
@@ -114,7 +114,7 @@ var Checkbox = React.forwardRef((_a, ref) => {
|
|
|
114
114
|
CheckboxPrimitive.Root,
|
|
115
115
|
__spreadProps(__spreadValues({
|
|
116
116
|
className: cn(
|
|
117
|
-
"flex h-4 w-4 appearance-none items-center justify-center rounded bg-gray-50 border-gray-200 border outline-
|
|
117
|
+
"flex h-4 w-4 appearance-none items-center justify-center rounded-sm bg-gray-50 border-gray-200 border outline-hidden data-[state=checked]:bg-blue-700 data-[state=checked]:border-blue-700 data-disabled:opacity-40 data-disabled:cursor-not-allowed",
|
|
118
118
|
className
|
|
119
119
|
)
|
|
120
120
|
}, props), {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { a as Command, b as CommandEmpty, c as CommandGroup, d as CommandInput, e as CommandItem, f as CommandList, g as CommandLoading, h as CommandSeparator } from '../index-
|
|
1
|
+
export { a as Command, b as CommandEmpty, c as CommandGroup, d as CommandInput, e as CommandItem, f as CommandList, g as CommandLoading, h as CommandSeparator } from '../index-CMWfBd0H.mjs';
|
|
2
2
|
import 'react';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { a as Command, b as CommandEmpty, c as CommandGroup, d as CommandInput, e as CommandItem, f as CommandList, g as CommandLoading, h as CommandSeparator } from '../index-
|
|
1
|
+
export { a as Command, b as CommandEmpty, c as CommandGroup, d as CommandInput, e as CommandItem, f as CommandList, g as CommandLoading, h as CommandSeparator } from '../index-CMWfBd0H.js';
|
|
2
2
|
import 'react';
|
|
@@ -201,15 +201,15 @@ var import_react_slot = require("@radix-ui/react-slot");
|
|
|
201
201
|
var import_cva = require("cva");
|
|
202
202
|
var import_jsx_runtime4 = require("react/jsx-runtime");
|
|
203
203
|
var buttonVariants = (0, import_cva.cva)({
|
|
204
|
-
base: "inline-flex items-center justify-center gap-2 rounded-md text-sm font-medium ring-offset-background transition-colors relative focus-visible:outline-
|
|
204
|
+
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",
|
|
205
205
|
variants: {
|
|
206
206
|
variant: {
|
|
207
|
-
primary: "bg-blue-700 text-white [&>svg]:text-white dark:text-black [&>svg]:
|
|
207
|
+
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",
|
|
208
208
|
secondary: "bg-gray-50 text-black [&>svg]:text-black hover:bg-gray-100 active:bg-gray-500 focus-visible:ring-black",
|
|
209
209
|
tertiary: "bg-gray-50 text-blue-700 [&>svg]:text-blue-700 hover:bg-blue-100 active:bg-blue-200 focus-visible:ring-blue-700",
|
|
210
210
|
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",
|
|
211
211
|
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 ",
|
|
212
|
-
destructive: "bg-red-700 text-white [&>svg]:text-white dark:text-black [&>svg]:
|
|
212
|
+
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",
|
|
213
213
|
ghostBlue: "bg-transparent text-blue-700 [&>svg]:text-blue-700 hover:bg-blue-100 active:bg-blue-200 focus-visible:ring-blue-700",
|
|
214
214
|
ghostRed: "bg-transparent text-red-700 [&>svg]:text-red-700 hover:bg-red-100 active:bg-red-200 focus-visible:ring-red-700",
|
|
215
215
|
ghostGray: "bg-transparent text-black [&>svg]:text-black hover:bg-gray-100 active:bg-gray-200 focus-visible:ring-black",
|
|
@@ -348,7 +348,7 @@ var Checkbox = React2.forwardRef((_a, ref) => {
|
|
|
348
348
|
CheckboxPrimitive.Root,
|
|
349
349
|
__spreadProps(__spreadValues({
|
|
350
350
|
className: cn(
|
|
351
|
-
"flex h-4 w-4 appearance-none items-center justify-center rounded bg-gray-50 border-gray-200 border outline-
|
|
351
|
+
"flex h-4 w-4 appearance-none items-center justify-center rounded-sm bg-gray-50 border-gray-200 border outline-hidden data-[state=checked]:bg-blue-700 data-[state=checked]:border-blue-700 data-disabled:opacity-40 data-disabled:cursor-not-allowed",
|
|
352
352
|
className
|
|
353
353
|
)
|
|
354
354
|
}, props), {
|
|
@@ -380,7 +380,7 @@ var CommandInput = React3.forwardRef((_a, ref) => {
|
|
|
380
380
|
const [val, setVal] = (0, import_react5.useState)(value);
|
|
381
381
|
const clearInput = () => {
|
|
382
382
|
setVal("");
|
|
383
|
-
onValueChange
|
|
383
|
+
onValueChange == null ? void 0 : onValueChange("");
|
|
384
384
|
};
|
|
385
385
|
return /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(
|
|
386
386
|
"div",
|
|
@@ -395,12 +395,12 @@ var CommandInput = React3.forwardRef((_a, ref) => {
|
|
|
395
395
|
ref,
|
|
396
396
|
value: val,
|
|
397
397
|
className: cn(
|
|
398
|
-
"flex w-full py-2 rounded-md bg-transparent text-sm font-normal text-black outline-
|
|
398
|
+
"flex w-full py-2 rounded-md bg-transparent text-sm font-normal text-black outline-hidden placeholder:text-gray-900 disabled:cursor-not-allowed disabled:opacity-50",
|
|
399
399
|
className
|
|
400
400
|
),
|
|
401
401
|
onValueChange: (val2) => {
|
|
402
402
|
setVal(val2);
|
|
403
|
-
onValueChange
|
|
403
|
+
onValueChange == null ? void 0 : onValueChange(val2);
|
|
404
404
|
}
|
|
405
405
|
}, props)
|
|
406
406
|
),
|
|
@@ -499,7 +499,7 @@ var CommandItem = React3.forwardRef(
|
|
|
499
499
|
checkbox && /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Checkbox, { checked }),
|
|
500
500
|
icon && React3.cloneElement(icon, {
|
|
501
501
|
size: 16,
|
|
502
|
-
className: cn("
|
|
502
|
+
className: cn("shrink-0", icon.props.className)
|
|
503
503
|
}),
|
|
504
504
|
children
|
|
505
505
|
] }),
|
|
@@ -7,12 +7,12 @@ import {
|
|
|
7
7
|
CommandList,
|
|
8
8
|
CommandLoading,
|
|
9
9
|
CommandSeparator
|
|
10
|
-
} from "../../chunk-
|
|
10
|
+
} from "../../chunk-CBQRH67Z.mjs";
|
|
11
11
|
import "../../chunk-FMJFBQTF.mjs";
|
|
12
|
-
import "../../chunk-
|
|
13
|
-
import "../../chunk-N65I4EXR.mjs";
|
|
14
|
-
import "../../chunk-ZMQWNJ3B.mjs";
|
|
12
|
+
import "../../chunk-TU6HU32A.mjs";
|
|
15
13
|
import "../../chunk-AFJWE6PJ.mjs";
|
|
14
|
+
import "../../chunk-R6W6SKNR.mjs";
|
|
15
|
+
import "../../chunk-N65I4EXR.mjs";
|
|
16
16
|
import "../../chunk-BOWIL6WZ.mjs";
|
|
17
17
|
export {
|
|
18
18
|
Command,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import React__default from 'react';
|
|
3
|
-
import { C as CommandItemExtension } from '../index-
|
|
3
|
+
import { C as CommandItemExtension } from '../index-CMWfBd0H.mjs';
|
|
4
4
|
|
|
5
5
|
type StringKeys<T> = {
|
|
6
6
|
[K in keyof T]: T[K] extends string ? K : never;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import React__default from 'react';
|
|
3
|
-
import { C as CommandItemExtension } from '../index-
|
|
3
|
+
import { C as CommandItemExtension } from '../index-CMWfBd0H.js';
|
|
4
4
|
|
|
5
5
|
type StringKeys<T> = {
|
|
6
6
|
[K in keyof T]: T[K] extends string ? K : never;
|