@incognia/cosmik 2.0.0-alpha.1 → 2.0.0-alpha.2
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/index.cjs +1 -1
- package/dist/index.js +34 -34
- package/dist/index10.cjs +1 -1
- package/dist/index10.cjs.map +1 -1
- package/dist/index10.js +69 -9
- package/dist/index10.js.map +1 -1
- package/dist/index11.cjs +1 -1
- package/dist/index11.cjs.map +1 -1
- package/dist/index11.js +91 -54
- package/dist/index11.js.map +1 -1
- package/dist/index12.cjs +1 -1
- package/dist/index12.cjs.map +1 -1
- package/dist/index12.js +51 -151
- package/dist/index12.js.map +1 -1
- package/dist/index13.cjs +1 -1
- package/dist/index13.cjs.map +1 -1
- package/dist/index13.js +16 -86
- package/dist/index13.js.map +1 -1
- package/dist/index14.cjs +1 -1
- package/dist/index14.cjs.map +1 -1
- package/dist/index14.js +83 -66
- package/dist/index14.js.map +1 -1
- package/dist/index15.cjs +1 -1
- package/dist/index15.cjs.map +1 -1
- package/dist/index15.js +81 -98
- package/dist/index15.js.map +1 -1
- package/dist/index16.cjs +1 -1
- package/dist/index16.cjs.map +1 -1
- package/dist/index16.js +105 -38
- package/dist/index16.js.map +1 -1
- package/dist/index17.cjs +1 -1
- package/dist/index17.cjs.map +1 -1
- package/dist/index17.js +34 -17
- package/dist/index17.js.map +1 -1
- package/dist/index18.cjs +1 -1
- package/dist/index18.cjs.map +1 -1
- package/dist/index18.js +68 -82
- package/dist/index18.js.map +1 -1
- package/dist/index19.cjs +1 -1
- package/dist/index19.cjs.map +1 -1
- package/dist/index19.js +63 -84
- package/dist/index19.js.map +1 -1
- package/dist/index2.cjs +1 -1
- package/dist/index20.cjs +1 -1
- package/dist/index20.cjs.map +1 -1
- package/dist/index20.js +19 -114
- package/dist/index20.js.map +1 -1
- package/dist/index21.cjs +1 -1
- package/dist/index21.cjs.map +1 -1
- package/dist/index21.js +10 -36
- package/dist/index21.js.map +1 -1
- package/dist/index22.cjs +1 -1
- package/dist/index22.cjs.map +1 -1
- package/dist/index22.js +12 -72
- package/dist/index22.js.map +1 -1
- package/dist/index23.cjs +1 -1
- package/dist/index23.cjs.map +1 -1
- package/dist/index23.js +46 -64
- package/dist/index23.js.map +1 -1
- package/dist/index24.cjs +1 -1
- package/dist/index24.cjs.map +1 -1
- package/dist/index24.js +6 -28
- package/dist/index24.js.map +1 -1
- package/dist/index25.cjs +1 -1
- package/dist/index25.cjs.map +1 -1
- package/dist/index25.js +19 -12
- package/dist/index25.js.map +1 -1
- package/dist/index26.cjs +1 -1
- package/dist/index26.cjs.map +1 -1
- package/dist/index26.js +62 -11
- package/dist/index26.js.map +1 -1
- package/dist/index27.cjs +1 -1
- package/dist/index27.cjs.map +1 -1
- package/dist/index27.js +16 -46
- package/dist/index27.js.map +1 -1
- package/dist/index28.cjs +1 -1
- package/dist/index28.cjs.map +1 -1
- package/dist/index28.js +26 -7
- package/dist/index28.js.map +1 -1
- package/dist/index29.cjs +1 -1
- package/dist/index29.cjs.map +1 -1
- package/dist/index29.js +92 -20
- package/dist/index29.js.map +1 -1
- package/dist/index3.js +18 -0
- package/dist/index3.js.map +1 -0
- package/dist/index30.cjs +1 -1
- package/dist/index30.cjs.map +1 -1
- package/dist/index30.js +13 -64
- package/dist/index30.js.map +1 -1
- package/dist/index31.cjs +1 -1
- package/dist/index31.cjs.map +1 -1
- package/dist/index31.js +77 -16
- package/dist/index31.js.map +1 -1
- package/dist/index32.cjs +1 -1
- package/dist/index32.cjs.map +1 -1
- package/dist/index32.js +8 -26
- package/dist/index32.js.map +1 -1
- package/dist/index33.cjs +1 -1
- package/dist/index33.cjs.map +1 -1
- package/dist/index33.js +40 -94
- package/dist/index33.js.map +1 -1
- package/dist/index34.cjs +1 -1
- package/dist/index34.cjs.map +1 -1
- package/dist/index34.js +14 -13
- package/dist/index34.js.map +1 -1
- package/dist/index35.cjs +1 -1
- package/dist/index35.cjs.map +1 -1
- package/dist/index35.js +44 -59
- package/dist/index35.js.map +1 -1
- package/dist/index36.cjs +1 -1
- package/dist/index36.cjs.map +1 -1
- package/dist/index36.js +32 -8
- package/dist/index36.js.map +1 -1
- package/dist/index37.cjs +1 -1
- package/dist/index37.cjs.map +1 -1
- package/dist/index37.js +69 -40
- package/dist/index37.js.map +1 -1
- package/dist/index38.cjs +1 -1
- package/dist/index38.cjs.map +1 -1
- package/dist/index38.js +9 -16
- package/dist/index38.js.map +1 -1
- package/dist/index39.cjs +1 -1
- package/dist/index39.cjs.map +1 -1
- package/dist/index39.js +81 -65
- package/dist/index39.js.map +1 -1
- package/dist/index4.js +32 -15
- package/dist/index4.js.map +1 -1
- package/dist/index40.cjs +1 -1
- package/dist/index40.cjs.map +1 -1
- package/dist/index40.js +45 -31
- package/dist/index40.js.map +1 -1
- package/dist/index41.cjs +1 -1
- package/dist/index41.cjs.map +1 -1
- package/dist/index41.js +43 -68
- package/dist/index41.js.map +1 -1
- package/dist/index42.cjs +1 -1
- package/dist/index42.cjs.map +1 -1
- package/dist/index42.js +78 -10
- package/dist/index42.js.map +1 -1
- package/dist/index43.cjs +1 -1
- package/dist/index43.cjs.map +1 -1
- package/dist/index5.js +1584 -31
- package/dist/index5.js.map +1 -1
- package/dist/index6.js +10 -1582
- package/dist/index6.js.map +1 -1
- package/dist/index7.js +57 -11
- package/dist/index7.js.map +1 -1
- package/dist/index8.cjs +1 -1
- package/dist/index8.cjs.map +1 -1
- package/dist/index8.js +153 -19
- package/dist/index8.js.map +1 -1
- package/dist/index9.cjs +1 -6
- package/dist/index9.cjs.map +1 -1
- package/dist/index9.js +89 -159
- package/dist/index9.js.map +1 -1
- package/package.json +1 -1
- package/dist/index2.js +0 -7
- package/dist/index43.js +0 -87
- package/dist/index43.js.map +0 -1
- package/dist/index44.cjs +0 -2
- package/dist/index44.cjs.map +0 -1
- package/dist/index44.js +0 -53
- package/dist/index44.js.map +0 -1
- package/dist/index45.cjs +0 -2
- package/dist/index45.cjs.map +0 -1
- package/dist/index45.js +0 -49
- package/dist/index45.js.map +0 -1
- package/dist/index46.cjs +0 -2
- package/dist/index46.cjs.map +0 -1
- package/dist/index46.js +0 -85
- package/dist/index46.js.map +0 -1
package/dist/index12.js
CHANGED
|
@@ -1,157 +1,57 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { cn as t } from "./index7.js";
|
|
3
|
-
import { require_jsx_runtime as n } from "./index10.js";
|
|
1
|
+
import { cn as e } from "./index6.js";
|
|
4
2
|
import "react";
|
|
5
|
-
import {
|
|
6
|
-
//#region src/
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
},
|
|
55
|
-
{
|
|
56
|
-
variant: "outline",
|
|
57
|
-
intent: "primary",
|
|
58
|
-
className: "text-purple-700 fill-purple-700 border-purple-700"
|
|
59
|
-
},
|
|
60
|
-
{
|
|
61
|
-
variant: "outline",
|
|
62
|
-
intent: "secondary",
|
|
63
|
-
className: "text-gray-700 fill-gray-700 border-gray-900/24 hover:bg-gray-900/8 focus:bg-gray-900/8 data-[state=open]:bg-gray-900/8 active:bg-gray-900/12"
|
|
64
|
-
},
|
|
65
|
-
{
|
|
66
|
-
variant: "outline",
|
|
67
|
-
intent: "warning",
|
|
68
|
-
className: "text-orange-500 fill-orange-500 border-orange-500"
|
|
69
|
-
},
|
|
70
|
-
{
|
|
71
|
-
variant: "outline",
|
|
72
|
-
intent: "danger",
|
|
73
|
-
className: "text-red-500 fill-red-500 border-red-500"
|
|
74
|
-
},
|
|
75
|
-
{
|
|
76
|
-
variant: "outline",
|
|
77
|
-
intent: "filter",
|
|
78
|
-
className: "text-purple-600 fill-purple-600 border-purple-400"
|
|
79
|
-
},
|
|
80
|
-
{
|
|
81
|
-
variant: ["outline", "ghost"],
|
|
82
|
-
intent: "primary",
|
|
83
|
-
className: "hover:bg-purple-50 focus:bg-purple-50 data-[state=open]:bg-purple-50 active:bg-purple-100"
|
|
84
|
-
},
|
|
85
|
-
{
|
|
86
|
-
variant: ["outline", "ghost"],
|
|
87
|
-
intent: "secondary",
|
|
88
|
-
className: "hover:bg-gray-900/8 focus:bg-gray-900/8 data-[state=open]:bg-gray-900/8 active:bg-gray-900/12"
|
|
89
|
-
},
|
|
90
|
-
{
|
|
91
|
-
variant: ["outline", "ghost"],
|
|
92
|
-
intent: "warning",
|
|
93
|
-
className: "bg-orange-500 bg-opacity-0 hover:bg-opacity-8 focus:bg-opacity-8 data-[state=open]:bg-opacity-8 active:bg-opacity-12"
|
|
94
|
-
},
|
|
95
|
-
{
|
|
96
|
-
variant: ["outline", "ghost"],
|
|
97
|
-
intent: "danger",
|
|
98
|
-
className: "bg-red-500 bg-opacity-0 hover:bg-opacity-8 focus:bg-opacity-8 data-[state=open]:bg-opacity-8 active:bg-opacity-12"
|
|
99
|
-
},
|
|
100
|
-
{
|
|
101
|
-
variant: ["outline", "ghost"],
|
|
102
|
-
intent: "filter",
|
|
103
|
-
className: "bg-purple-500 bg-opacity-0 hover:bg-opacity-8 focus:bg-opacity-8 data-[state=open]:bg-opacity-8 active:bg-opacity-12"
|
|
104
|
-
},
|
|
105
|
-
{
|
|
106
|
-
variant: "ghost",
|
|
107
|
-
intent: "primary",
|
|
108
|
-
className: "text-purple-700 fill-purple-700 hover:text-purple-800 hover:fill-purple-800 focus:text-purple-800 focus:fill-purple-800 data-[state=open]:text-purple-800 data-[state=open]:fill-purple-800 active:text-purple-900 active:fill-purple-900"
|
|
109
|
-
},
|
|
110
|
-
{
|
|
111
|
-
variant: "link",
|
|
112
|
-
intent: "primary",
|
|
113
|
-
className: "text-robinblue-500 fill-robinblue-500 hover:text-robinblue-600 hover:fill-robinblue-600 focus:text-robinblue-600 focus:fill-robinblue-600 data-[state=open]:text-robinblue-600 data-[state=open]:fill-robinblue-600 active:text-robinblue-700 active:fill-robinblue-700"
|
|
114
|
-
},
|
|
115
|
-
{
|
|
116
|
-
variant: ["ghost", "link"],
|
|
117
|
-
intent: "secondary",
|
|
118
|
-
className: "text-gray-700 fill-gray-700 hover:text-gray-800 hover:fill-gray-800 focus:text-gray-800 focus:fill-gray-800 data-[state=open]:text-gray-800 data-[state=open]:fill-gray-800 active:text-gray-900 active:fill-gray-900 "
|
|
119
|
-
},
|
|
120
|
-
{
|
|
121
|
-
variant: ["ghost", "link"],
|
|
122
|
-
intent: "warning",
|
|
123
|
-
className: "text-orange-500 fill-orange-500 hover:text-orange-600 hover:fill-orange-600 focus:text-orange-600 focus:fill-orange-600 data-[state=open]:text-orange-600 data-[state=open]:fill-orange-600 active:text-orange-700 active:fill-orange-700"
|
|
124
|
-
},
|
|
125
|
-
{
|
|
126
|
-
variant: ["ghost", "link"],
|
|
127
|
-
intent: "danger",
|
|
128
|
-
className: "text-red-500 fill-red-500 hover:text-red-600 hover:fill-red-600 focus:text-red-600 focus:fill-red-600 data-[state=open]:text-red-600 data-[state=open]:fill-red-600 active:text-red-700 active:fill-red-700"
|
|
129
|
-
},
|
|
130
|
-
{
|
|
131
|
-
variant: ["ghost", "link"],
|
|
132
|
-
intent: "filter",
|
|
133
|
-
className: "text-purple-600 fill-purple-600 hover:text-purple-700 hover:fill-purple-700 focus:text-purple-700 focus:fill-purple-700 data-[state=open]:text-purple-700 data-[state=open]:fill-purple-700 active:text-purple-800 active:fill-purple-800"
|
|
134
|
-
}
|
|
135
|
-
],
|
|
136
|
-
defaultVariants: {
|
|
137
|
-
variant: "filled",
|
|
138
|
-
intent: "primary",
|
|
139
|
-
size: "md"
|
|
140
|
-
}
|
|
141
|
-
});
|
|
142
|
-
function o({ className: e, variant: n, size: o, intent: s, asChild: c = !1, ...l }) {
|
|
143
|
-
return /* @__PURE__ */ (0, i.jsx)(c ? r : "button", {
|
|
144
|
-
"data-slot": "button",
|
|
145
|
-
className: t(a({
|
|
146
|
-
variant: n,
|
|
147
|
-
size: o,
|
|
148
|
-
intent: s,
|
|
149
|
-
className: e
|
|
150
|
-
})),
|
|
151
|
-
...l
|
|
3
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
4
|
+
//#region src/Card/index.tsx
|
|
5
|
+
function n({ className: n, ...r }) {
|
|
6
|
+
return /* @__PURE__ */ t("div", {
|
|
7
|
+
"data-slot": "card",
|
|
8
|
+
className: e("bg-white flex flex-col gap-24 rounded border border-gray-900/8 py-24", n),
|
|
9
|
+
...r
|
|
10
|
+
});
|
|
11
|
+
}
|
|
12
|
+
function r({ className: n, ...r }) {
|
|
13
|
+
return /* @__PURE__ */ t("div", {
|
|
14
|
+
"data-slot": "card-header",
|
|
15
|
+
className: e("@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start px-24 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-24", n),
|
|
16
|
+
...r
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
function i({ className: n, ...r }) {
|
|
20
|
+
return /* @__PURE__ */ t("h3", {
|
|
21
|
+
"data-slot": "card-title",
|
|
22
|
+
className: e("leading-none font-semibold", n),
|
|
23
|
+
...r
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
function a({ className: n, ...r }) {
|
|
27
|
+
return /* @__PURE__ */ t("div", {
|
|
28
|
+
"data-slot": "card-description",
|
|
29
|
+
className: e("text-gray-700 text-sm mt-4", n),
|
|
30
|
+
...r
|
|
31
|
+
});
|
|
32
|
+
}
|
|
33
|
+
function o({ className: n, ...r }) {
|
|
34
|
+
return /* @__PURE__ */ t("div", {
|
|
35
|
+
"data-slot": "card-action",
|
|
36
|
+
className: e("col-start-2 row-span-2 row-start-1 self-start justify-self-end", n),
|
|
37
|
+
...r
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
function s({ className: n, ...r }) {
|
|
41
|
+
return /* @__PURE__ */ t("div", {
|
|
42
|
+
"data-slot": "card-content",
|
|
43
|
+
className: e("px-24", n),
|
|
44
|
+
...r
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
function c({ className: n, ...r }) {
|
|
48
|
+
return /* @__PURE__ */ t("div", {
|
|
49
|
+
"data-slot": "card-footer",
|
|
50
|
+
className: e("flex items-center px-24 [.border-t]:pt-24", n),
|
|
51
|
+
...r
|
|
152
52
|
});
|
|
153
53
|
}
|
|
154
54
|
//#endregion
|
|
155
|
-
export { o as
|
|
55
|
+
export { n as Card, o as CardAction, s as CardContent, a as CardDescription, c as CardFooter, r as CardHeader, i as CardTitle };
|
|
156
56
|
|
|
157
57
|
//# sourceMappingURL=index12.js.map
|
package/dist/index12.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index12.js","names":[],"sources":["../src/
|
|
1
|
+
{"version":3,"file":"index12.js","names":[],"sources":["../src/Card/index.tsx"],"sourcesContent":["import * as React from 'react'\nimport { cn } from '../lib/utils'\n\nfunction Card({ className, ...props }: React.ComponentProps<'div'>) {\n return (\n <div\n data-slot=\"card\"\n className={cn(\n 'bg-white flex flex-col gap-24 rounded border border-gray-900/8 py-24',\n className\n )}\n {...props}\n />\n )\n}\n\nfunction CardHeader({ className, ...props }: React.ComponentProps<'div'>) {\n return (\n <div\n data-slot=\"card-header\"\n className={cn(\n '@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start px-24 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-24',\n className\n )}\n {...props}\n />\n )\n}\n\nfunction CardTitle({ className, ...props }: React.ComponentProps<'h3'>) {\n return (\n <h3\n data-slot=\"card-title\"\n className={cn('leading-none font-semibold', className)}\n {...props}\n />\n )\n}\n\nfunction CardDescription({ className, ...props }: React.ComponentProps<'div'>) {\n return (\n <div\n data-slot=\"card-description\"\n className={cn('text-gray-700 text-sm mt-4', className)}\n {...props}\n />\n )\n}\n\nfunction CardAction({ className, ...props }: React.ComponentProps<'div'>) {\n return (\n <div\n data-slot=\"card-action\"\n className={cn(\n 'col-start-2 row-span-2 row-start-1 self-start justify-self-end',\n className\n )}\n {...props}\n />\n )\n}\n\nfunction CardContent({ className, ...props }: React.ComponentProps<'div'>) {\n return (\n <div\n data-slot=\"card-content\"\n className={cn('px-24', className)}\n {...props}\n />\n )\n}\n\nfunction CardFooter({ className, ...props }: React.ComponentProps<'div'>) {\n return (\n <div\n data-slot=\"card-footer\"\n className={cn('flex items-center px-24 [.border-t]:pt-24', className)}\n {...props}\n />\n )\n}\n\nexport {\n Card,\n CardAction,\n CardContent,\n CardDescription,\n CardFooter,\n CardHeader,\n CardTitle\n}\n"],"mappings":";;;;AAGA,SAAS,EAAK,EAAE,cAAW,GAAG,KAAsC;CAClE,OACE,kBAAC,OAAD;EACE,aAAU;EACV,WAAW,EACT,wEACA,CACF;EACA,GAAI;CACL,CAAA;AAEL;AAEA,SAAS,EAAW,EAAE,cAAW,GAAG,KAAsC;CACxE,OACE,kBAAC,OAAD;EACE,aAAU;EACV,WAAW,EACT,wJACA,CACF;EACA,GAAI;CACL,CAAA;AAEL;AAEA,SAAS,EAAU,EAAE,cAAW,GAAG,KAAqC;CACtE,OACE,kBAAC,MAAD;EACE,aAAU;EACV,WAAW,EAAG,8BAA8B,CAAS;EACrD,GAAI;CACL,CAAA;AAEL;AAEA,SAAS,EAAgB,EAAE,cAAW,GAAG,KAAsC;CAC7E,OACE,kBAAC,OAAD;EACE,aAAU;EACV,WAAW,EAAG,8BAA8B,CAAS;EACrD,GAAI;CACL,CAAA;AAEL;AAEA,SAAS,EAAW,EAAE,cAAW,GAAG,KAAsC;CACxE,OACE,kBAAC,OAAD;EACE,aAAU;EACV,WAAW,EACT,kEACA,CACF;EACA,GAAI;CACL,CAAA;AAEL;AAEA,SAAS,EAAY,EAAE,cAAW,GAAG,KAAsC;CACzE,OACE,kBAAC,OAAD;EACE,aAAU;EACV,WAAW,EAAG,SAAS,CAAS;EAChC,GAAI;CACL,CAAA;AAEL;AAEA,SAAS,EAAW,EAAE,cAAW,GAAG,KAAsC;CACxE,OACE,kBAAC,OAAD;EACE,aAAU;EACV,WAAW,EAAG,6CAA6C,CAAS;EACpE,GAAI;CACL,CAAA;AAEL"}
|
package/dist/index13.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
const e=require("./index2.cjs"),t=require("./index7.cjs");let n=require("react");n=e.__toESM(n,1);let r=require("react/jsx-runtime");function i({className:e,...n}){return(0,r.jsx)(`div`,{"data-slot":`card`,className:t.cn(`bg-white flex flex-col gap-24 rounded border border-gray-900/8 py-24`,e),...n})}function a({className:e,...n}){return(0,r.jsx)(`div`,{"data-slot":`card-header`,className:t.cn(`@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start px-24 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-24`,e),...n})}function o({className:e,...n}){return(0,r.jsx)(`h3`,{"data-slot":`card-title`,className:t.cn(`leading-none font-semibold`,e),...n})}function s({className:e,...n}){return(0,r.jsx)(`div`,{"data-slot":`card-description`,className:t.cn(`text-gray-700 text-sm mt-4`,e),...n})}function c({className:e,...n}){return(0,r.jsx)(`div`,{"data-slot":`card-action`,className:t.cn(`col-start-2 row-span-2 row-start-1 self-start justify-self-end`,e),...n})}function l({className:e,...n}){return(0,r.jsx)(`div`,{"data-slot":`card-content`,className:t.cn(`px-24`,e),...n})}function u({className:e,...n}){return(0,r.jsx)(`div`,{"data-slot":`card-footer`,className:t.cn(`flex items-center px-24 [.border-t]:pt-24`,e),...n})}exports.Card=i,exports.CardAction=c,exports.CardContent=l,exports.CardDescription=s,exports.CardFooter=u,exports.CardHeader=a,exports.CardTitle=o;
|
|
2
2
|
//# sourceMappingURL=index13.cjs.map
|
package/dist/index13.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index13.cjs","names":[],"sources":["../src/
|
|
1
|
+
{"version":3,"file":"index13.cjs","names":[],"sources":["../src/Card/index.tsx"],"sourcesContent":["import * as React from 'react'\nimport { cn } from '../lib/utils'\n\nfunction Card({ className, ...props }: React.ComponentProps<'div'>) {\n return (\n <div\n data-slot=\"card\"\n className={cn(\n 'bg-white flex flex-col gap-24 rounded border border-gray-900/8 py-24',\n className\n )}\n {...props}\n />\n )\n}\n\nfunction CardHeader({ className, ...props }: React.ComponentProps<'div'>) {\n return (\n <div\n data-slot=\"card-header\"\n className={cn(\n '@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start px-24 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-24',\n className\n )}\n {...props}\n />\n )\n}\n\nfunction CardTitle({ className, ...props }: React.ComponentProps<'h3'>) {\n return (\n <h3\n data-slot=\"card-title\"\n className={cn('leading-none font-semibold', className)}\n {...props}\n />\n )\n}\n\nfunction CardDescription({ className, ...props }: React.ComponentProps<'div'>) {\n return (\n <div\n data-slot=\"card-description\"\n className={cn('text-gray-700 text-sm mt-4', className)}\n {...props}\n />\n )\n}\n\nfunction CardAction({ className, ...props }: React.ComponentProps<'div'>) {\n return (\n <div\n data-slot=\"card-action\"\n className={cn(\n 'col-start-2 row-span-2 row-start-1 self-start justify-self-end',\n className\n )}\n {...props}\n />\n )\n}\n\nfunction CardContent({ className, ...props }: React.ComponentProps<'div'>) {\n return (\n <div\n data-slot=\"card-content\"\n className={cn('px-24', className)}\n {...props}\n />\n )\n}\n\nfunction CardFooter({ className, ...props }: React.ComponentProps<'div'>) {\n return (\n <div\n data-slot=\"card-footer\"\n className={cn('flex items-center px-24 [.border-t]:pt-24', className)}\n {...props}\n />\n )\n}\n\nexport {\n Card,\n CardAction,\n CardContent,\n CardDescription,\n CardFooter,\n CardHeader,\n CardTitle\n}\n"],"mappings":"qIAGA,SAAS,EAAK,CAAE,YAAW,GAAG,GAAsC,CAClE,OACE,EAAA,EAAA,KAAC,MAAD,CACE,YAAU,OACV,UAAW,EAAA,GACT,uEACA,CACF,EACA,GAAI,CACL,CAAA,CAEL,CAEA,SAAS,EAAW,CAAE,YAAW,GAAG,GAAsC,CACxE,OACE,EAAA,EAAA,KAAC,MAAD,CACE,YAAU,cACV,UAAW,EAAA,GACT,uJACA,CACF,EACA,GAAI,CACL,CAAA,CAEL,CAEA,SAAS,EAAU,CAAE,YAAW,GAAG,GAAqC,CACtE,OACE,EAAA,EAAA,KAAC,KAAD,CACE,YAAU,aACV,UAAW,EAAA,GAAG,6BAA8B,CAAS,EACrD,GAAI,CACL,CAAA,CAEL,CAEA,SAAS,EAAgB,CAAE,YAAW,GAAG,GAAsC,CAC7E,OACE,EAAA,EAAA,KAAC,MAAD,CACE,YAAU,mBACV,UAAW,EAAA,GAAG,6BAA8B,CAAS,EACrD,GAAI,CACL,CAAA,CAEL,CAEA,SAAS,EAAW,CAAE,YAAW,GAAG,GAAsC,CACxE,OACE,EAAA,EAAA,KAAC,MAAD,CACE,YAAU,cACV,UAAW,EAAA,GACT,iEACA,CACF,EACA,GAAI,CACL,CAAA,CAEL,CAEA,SAAS,EAAY,CAAE,YAAW,GAAG,GAAsC,CACzE,OACE,EAAA,EAAA,KAAC,MAAD,CACE,YAAU,eACV,UAAW,EAAA,GAAG,QAAS,CAAS,EAChC,GAAI,CACL,CAAA,CAEL,CAEA,SAAS,EAAW,CAAE,YAAW,GAAG,GAAsC,CACxE,OACE,EAAA,EAAA,KAAC,MAAD,CACE,YAAU,cACV,UAAW,EAAA,GAAG,4CAA6C,CAAS,EACpE,GAAI,CACL,CAAA,CAEL"}
|
package/dist/index13.js
CHANGED
|
@@ -1,93 +1,23 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { require_jsx_runtime as n } from "./index10.js";
|
|
5
|
-
import { buttonVariants as r } from "./index12.js";
|
|
2
|
+
import { cn as e } from "./index6.js";
|
|
3
|
+
import { Check as t, Minus as n } from "lucide-react";
|
|
6
4
|
import "react";
|
|
7
|
-
import
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
function
|
|
11
|
-
return /* @__PURE__ */ (
|
|
12
|
-
"data-slot": "
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
});
|
|
21
|
-
}
|
|
22
|
-
function c({ ...e }) {
|
|
23
|
-
return /* @__PURE__ */ (0, a.jsx)(i.Portal, {
|
|
24
|
-
"data-slot": "alert-dialog-portal",
|
|
25
|
-
...e
|
|
26
|
-
});
|
|
27
|
-
}
|
|
28
|
-
function l({ className: e, ...n }) {
|
|
29
|
-
return /* @__PURE__ */ (0, a.jsx)(i.Overlay, {
|
|
30
|
-
"data-slot": "alert-dialog-overlay",
|
|
31
|
-
className: t("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-gray-900/48", e),
|
|
32
|
-
...n
|
|
33
|
-
});
|
|
34
|
-
}
|
|
35
|
-
function u({ className: e, ...n }) {
|
|
36
|
-
return /* @__PURE__ */ (0, a.jsxs)(c, { children: [/* @__PURE__ */ (0, a.jsx)(l, {}), /* @__PURE__ */ (0, a.jsx)(i.Content, {
|
|
37
|
-
"data-slot": "alert-dialog-content",
|
|
38
|
-
className: t("bg-white data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed left-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] gap-24 border-0 p-24 top-24 shadow-200 duration-200 sm:max-w-lg min-w-[384px]", e),
|
|
39
|
-
...n
|
|
40
|
-
})] });
|
|
41
|
-
}
|
|
42
|
-
function d({ className: e, ...n }) {
|
|
43
|
-
return /* @__PURE__ */ (0, a.jsx)("div", {
|
|
44
|
-
"data-slot": "alert-dialog-header",
|
|
45
|
-
className: t("flex flex-col gap-8 text-left font-display", e),
|
|
46
|
-
...n
|
|
47
|
-
});
|
|
48
|
-
}
|
|
49
|
-
function f({ className: e, ...n }) {
|
|
50
|
-
return /* @__PURE__ */ (0, a.jsx)("div", {
|
|
51
|
-
"data-slot": "alert-dialog-footer",
|
|
52
|
-
className: t("flex gap-8 flex-row justify-end", e),
|
|
53
|
-
...n
|
|
54
|
-
});
|
|
55
|
-
}
|
|
56
|
-
var p = e("flex items-center text-lg font-semibold", {
|
|
57
|
-
variants: { intent: {
|
|
58
|
-
default: "text-gray-800",
|
|
59
|
-
warning: "text-orange-600",
|
|
60
|
-
danger: "text-red-600"
|
|
61
|
-
} },
|
|
62
|
-
defaultVariants: { intent: "default" }
|
|
63
|
-
});
|
|
64
|
-
function m({ className: e, intent: n, ...r }) {
|
|
65
|
-
return /* @__PURE__ */ (0, a.jsx)(i.Title, {
|
|
66
|
-
"data-slot": "alert-dialog-title",
|
|
67
|
-
className: t(p({ intent: n }), e),
|
|
68
|
-
...r
|
|
69
|
-
});
|
|
70
|
-
}
|
|
71
|
-
function h({ className: e, ...n }) {
|
|
72
|
-
return /* @__PURE__ */ (0, a.jsx)(i.Description, {
|
|
73
|
-
"data-slot": "alert-dialog-description",
|
|
74
|
-
className: t("text-md text-gray-900", e),
|
|
75
|
-
...n
|
|
76
|
-
});
|
|
77
|
-
}
|
|
78
|
-
function g({ className: e, intent: n, ...o }) {
|
|
79
|
-
return /* @__PURE__ */ (0, a.jsx)(i.Action, {
|
|
80
|
-
className: t(r({ intent: n }), e),
|
|
81
|
-
...o
|
|
82
|
-
});
|
|
83
|
-
}
|
|
84
|
-
function _({ className: e, ...n }) {
|
|
85
|
-
return /* @__PURE__ */ (0, a.jsx)(i.Cancel, {
|
|
86
|
-
className: t(r({ intent: "secondary" }), e),
|
|
87
|
-
...n
|
|
5
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
6
|
+
import * as i from "@radix-ui/react-checkbox";
|
|
7
|
+
//#region src/Checkbox/index.tsx
|
|
8
|
+
function a({ className: a, ...o }) {
|
|
9
|
+
return /* @__PURE__ */ r(i.Root, {
|
|
10
|
+
"data-slot": "checkbox",
|
|
11
|
+
className: e("peer h-16 w-16 shrink-0 rounded border border-gray-900/24", "disabled:cursor-not-allowed disabled:bg-transparent", "disabled:data-[state=checked]:bg-gray-900/8 disabled:data-[state=checked]:text-gray-800 disabled:opacity-64", "disabled:data-[state=indeterminate]:bg-gray-900/8 disabled:data-[state=indeterminate]:text-gray-800", "data-[state=checked]:bg-purple-700 data-[state=checked]:text-white", "data-[state=indeterminate]:bg-purple-700 data-[state=indeterminate]:text-white", "hover:bg-gray-900/8 hover:data-[state=checked]:bg-purple-800 hover:data-[state=indeterminate]:bg-purple-800", "focus-visible:outline-none focus:bg-gray-900/16 focus:data-[state=checked]:bg-purple-900 focus:data-[state=indeterminate]:bg-purple-900", "active:bg-gray-900/16 active:data-[state=checked]:bg-purple-900 active:data-[state=indeterminate]:bg-purple-900", a),
|
|
12
|
+
...o,
|
|
13
|
+
children: /* @__PURE__ */ r(i.Indicator, {
|
|
14
|
+
"data-slot": "checkbox-indicator",
|
|
15
|
+
className: "flex items-center justify-center text-current transition-none",
|
|
16
|
+
children: o.checked == "indeterminate" ? /* @__PURE__ */ r(n, { className: "h-[14px] w-[14px]" }) : /* @__PURE__ */ r(t, { className: "h-[14px] w-[14px]" })
|
|
17
|
+
})
|
|
88
18
|
});
|
|
89
19
|
}
|
|
90
20
|
//#endregion
|
|
91
|
-
export {
|
|
21
|
+
export { a as Checkbox };
|
|
92
22
|
|
|
93
23
|
//# sourceMappingURL=index13.js.map
|
package/dist/index13.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index13.js","names":[],"sources":["../src/
|
|
1
|
+
{"version":3,"file":"index13.js","names":[],"sources":["../src/Checkbox/index.tsx"],"sourcesContent":["'use client'\n\nimport * as CheckboxPrimitive from '@radix-ui/react-checkbox'\nimport { Check, Minus } from 'lucide-react'\nimport * as React from 'react'\nimport { cn } from '../lib/utils'\n\nfunction Checkbox({\n className,\n ...props\n}: React.ComponentProps<typeof CheckboxPrimitive.Root>) {\n return (\n <CheckboxPrimitive.Root\n data-slot=\"checkbox\"\n className={cn(\n 'peer h-16 w-16 shrink-0 rounded border border-gray-900/24',\n 'disabled:cursor-not-allowed disabled:bg-transparent',\n 'disabled:data-[state=checked]:bg-gray-900/8 disabled:data-[state=checked]:text-gray-800 disabled:opacity-64',\n 'disabled:data-[state=indeterminate]:bg-gray-900/8 disabled:data-[state=indeterminate]:text-gray-800',\n 'data-[state=checked]:bg-purple-700 data-[state=checked]:text-white',\n 'data-[state=indeterminate]:bg-purple-700 data-[state=indeterminate]:text-white',\n 'hover:bg-gray-900/8 hover:data-[state=checked]:bg-purple-800 hover:data-[state=indeterminate]:bg-purple-800',\n 'focus-visible:outline-none focus:bg-gray-900/16 focus:data-[state=checked]:bg-purple-900 focus:data-[state=indeterminate]:bg-purple-900',\n 'active:bg-gray-900/16 active:data-[state=checked]:bg-purple-900 active:data-[state=indeterminate]:bg-purple-900',\n className\n )}\n {...props}\n >\n <CheckboxPrimitive.Indicator\n data-slot=\"checkbox-indicator\"\n className=\"flex items-center justify-center text-current transition-none\"\n >\n {props.checked == 'indeterminate' ? (\n <Minus className=\"h-[14px] w-[14px]\" />\n ) : (\n <Check className=\"h-[14px] w-[14px]\" />\n )}\n </CheckboxPrimitive.Indicator>\n </CheckboxPrimitive.Root>\n )\n}\nexport { Checkbox }\n"],"mappings":";;;;;;;AAOA,SAAS,EAAS,EAChB,cACA,GAAG,KACmD;CACtD,OACE,kBAAC,EAAkB,MAAnB;EACE,aAAU;EACV,WAAW,EACT,6DACA,uDACA,+GACA,uGACA,sEACA,kFACA,+GACA,2IACA,mHACA,CACF;EACA,GAAI;YAEJ,kBAAC,EAAkB,WAAnB;GACE,aAAU;GACV,WAAU;aAET,EAAM,WAAW,kBAChB,kBAAC,GAAD,EAAO,WAAU,oBAAqB,CAAA,IAEtC,kBAAC,GAAD,EAAO,WAAU,oBAAqB,CAAA;EAEb,CAAA;CACP,CAAA;AAE5B"}
|
package/dist/index14.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const e=require("./index2.cjs"),t=require("./
|
|
1
|
+
"use client";const e=require("./index2.cjs"),t=require("./index7.cjs");let n=require("lucide-react"),r=require("react");r=e.__toESM(r,1);let i=require("react/jsx-runtime"),a=require("@radix-ui/react-checkbox");a=e.__toESM(a,1);function o({className:e,...r}){return(0,i.jsx)(a.Root,{"data-slot":`checkbox`,className:t.cn(`peer h-16 w-16 shrink-0 rounded border border-gray-900/24`,`disabled:cursor-not-allowed disabled:bg-transparent`,`disabled:data-[state=checked]:bg-gray-900/8 disabled:data-[state=checked]:text-gray-800 disabled:opacity-64`,`disabled:data-[state=indeterminate]:bg-gray-900/8 disabled:data-[state=indeterminate]:text-gray-800`,`data-[state=checked]:bg-purple-700 data-[state=checked]:text-white`,`data-[state=indeterminate]:bg-purple-700 data-[state=indeterminate]:text-white`,`hover:bg-gray-900/8 hover:data-[state=checked]:bg-purple-800 hover:data-[state=indeterminate]:bg-purple-800`,`focus-visible:outline-none focus:bg-gray-900/16 focus:data-[state=checked]:bg-purple-900 focus:data-[state=indeterminate]:bg-purple-900`,`active:bg-gray-900/16 active:data-[state=checked]:bg-purple-900 active:data-[state=indeterminate]:bg-purple-900`,e),...r,children:(0,i.jsx)(a.Indicator,{"data-slot":`checkbox-indicator`,className:`flex items-center justify-center text-current transition-none`,children:r.checked==`indeterminate`?(0,i.jsx)(n.Minus,{className:`h-[14px] w-[14px]`}):(0,i.jsx)(n.Check,{className:`h-[14px] w-[14px]`})})})}exports.Checkbox=o;
|
|
2
2
|
//# sourceMappingURL=index14.cjs.map
|
package/dist/index14.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index14.cjs","names":[],"sources":["../src/
|
|
1
|
+
{"version":3,"file":"index14.cjs","names":[],"sources":["../src/Checkbox/index.tsx"],"sourcesContent":["'use client'\n\nimport * as CheckboxPrimitive from '@radix-ui/react-checkbox'\nimport { Check, Minus } from 'lucide-react'\nimport * as React from 'react'\nimport { cn } from '../lib/utils'\n\nfunction Checkbox({\n className,\n ...props\n}: React.ComponentProps<typeof CheckboxPrimitive.Root>) {\n return (\n <CheckboxPrimitive.Root\n data-slot=\"checkbox\"\n className={cn(\n 'peer h-16 w-16 shrink-0 rounded border border-gray-900/24',\n 'disabled:cursor-not-allowed disabled:bg-transparent',\n 'disabled:data-[state=checked]:bg-gray-900/8 disabled:data-[state=checked]:text-gray-800 disabled:opacity-64',\n 'disabled:data-[state=indeterminate]:bg-gray-900/8 disabled:data-[state=indeterminate]:text-gray-800',\n 'data-[state=checked]:bg-purple-700 data-[state=checked]:text-white',\n 'data-[state=indeterminate]:bg-purple-700 data-[state=indeterminate]:text-white',\n 'hover:bg-gray-900/8 hover:data-[state=checked]:bg-purple-800 hover:data-[state=indeterminate]:bg-purple-800',\n 'focus-visible:outline-none focus:bg-gray-900/16 focus:data-[state=checked]:bg-purple-900 focus:data-[state=indeterminate]:bg-purple-900',\n 'active:bg-gray-900/16 active:data-[state=checked]:bg-purple-900 active:data-[state=indeterminate]:bg-purple-900',\n className\n )}\n {...props}\n >\n <CheckboxPrimitive.Indicator\n data-slot=\"checkbox-indicator\"\n className=\"flex items-center justify-center text-current transition-none\"\n >\n {props.checked == 'indeterminate' ? (\n <Minus className=\"h-[14px] w-[14px]\" />\n ) : (\n <Check className=\"h-[14px] w-[14px]\" />\n )}\n </CheckboxPrimitive.Indicator>\n </CheckboxPrimitive.Root>\n )\n}\nexport { Checkbox }\n"],"mappings":"mOAOA,SAAS,EAAS,CAChB,YACA,GAAG,GACmD,CACtD,OACE,EAAA,EAAA,KAAC,EAAkB,KAAnB,CACE,YAAU,WACV,UAAW,EAAA,GACT,4DACA,sDACA,8GACA,sGACA,qEACA,iFACA,8GACA,0IACA,kHACA,CACF,EACA,GAAI,YAEJ,EAAA,EAAA,KAAC,EAAkB,UAAnB,CACE,YAAU,qBACV,UAAU,yEAET,EAAM,SAAW,iBAChB,EAAA,EAAA,KAAC,EAAA,MAAD,CAAO,UAAU,mBAAqB,CAAA,GAEtC,EAAA,EAAA,KAAC,EAAA,MAAD,CAAO,UAAU,mBAAqB,CAAA,CAEb,CAAA,CACP,CAAA,CAE5B"}
|