@pactor-app/ui 0.1.0 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chunk-OH3U6PCM.js → chunk-BZSRLTQQ.js} +60 -66
- package/dist/{chunk-DMK6RSTK.js → chunk-D6G4J5XS.js} +18 -11
- package/dist/chunk-F3H23KYG.js +330 -0
- package/dist/chunk-FVZMNP5P.js +3222 -0
- package/dist/{chunk-SNFDI77B.js → chunk-GL7IO22L.js} +94 -5
- package/dist/chunk-TUXCPXPA.js +3085 -0
- package/dist/chunk-UR3I4WXQ.js +236 -0
- package/dist/components/index.cjs +5889 -546
- package/dist/components/index.d.cts +1477 -30
- package/dist/components/index.d.ts +1477 -30
- package/dist/components/index.js +124 -4
- package/dist/index.cjs +6194 -1083
- package/dist/index.d.cts +6 -1
- package/dist/index.d.ts +6 -1
- package/dist/index.js +126 -8
- package/dist/interaction/index.cjs +152 -77
- package/dist/interaction/index.d.cts +7 -5
- package/dist/interaction/index.d.ts +7 -5
- package/dist/interaction/index.js +2 -3
- package/dist/layout/index.cjs +217 -71
- package/dist/layout/index.js +3 -3
- package/dist/typography-DsGdDBc2.d.cts +24 -0
- package/dist/typography-DsGdDBc2.d.ts +24 -0
- package/dist/ui/index.cjs +2969 -172
- package/dist/ui/index.d.cts +416 -14
- package/dist/ui/index.d.ts +416 -14
- package/dist/ui/index.js +330 -126
- package/package.json +13 -5
- package/styles.css +1135 -20
- package/dist/chunk-57NRUZ5G.js +0 -95
- package/dist/chunk-OUTSIJMO.js +0 -442
- package/dist/chunk-QDTVOJ5P.js +0 -147
- package/dist/chunk-QWZ23QLS.js +0 -68
- package/dist/chunk-XGOTHOI6.js +0 -619
|
@@ -81,18 +81,100 @@ function AccordionContent({
|
|
|
81
81
|
);
|
|
82
82
|
}
|
|
83
83
|
|
|
84
|
+
// src/ui/card.tsx
|
|
85
|
+
import { jsx as jsx2 } from "react/jsx-runtime";
|
|
86
|
+
function Card({ className, ...props }) {
|
|
87
|
+
return /* @__PURE__ */ jsx2(
|
|
88
|
+
"div",
|
|
89
|
+
{
|
|
90
|
+
"data-slot": "card",
|
|
91
|
+
className: cn(
|
|
92
|
+
"flex flex-col gap-6 rounded-xl border border-border bg-card py-6 text-card-foreground shadow-sm",
|
|
93
|
+
className
|
|
94
|
+
),
|
|
95
|
+
...props
|
|
96
|
+
}
|
|
97
|
+
);
|
|
98
|
+
}
|
|
99
|
+
function CardHeader({ className, ...props }) {
|
|
100
|
+
return /* @__PURE__ */ jsx2(
|
|
101
|
+
"div",
|
|
102
|
+
{
|
|
103
|
+
"data-slot": "card-header",
|
|
104
|
+
className: cn(
|
|
105
|
+
"grid auto-rows-min grid-rows-[auto_auto] items-start gap-1.5 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6",
|
|
106
|
+
className
|
|
107
|
+
),
|
|
108
|
+
...props
|
|
109
|
+
}
|
|
110
|
+
);
|
|
111
|
+
}
|
|
112
|
+
function CardTitle({ className, ...props }) {
|
|
113
|
+
return /* @__PURE__ */ jsx2(
|
|
114
|
+
"div",
|
|
115
|
+
{
|
|
116
|
+
"data-slot": "card-title",
|
|
117
|
+
className: cn("leading-none font-semibold", className),
|
|
118
|
+
...props
|
|
119
|
+
}
|
|
120
|
+
);
|
|
121
|
+
}
|
|
122
|
+
function CardDescription({ className, ...props }) {
|
|
123
|
+
return /* @__PURE__ */ jsx2(
|
|
124
|
+
"div",
|
|
125
|
+
{
|
|
126
|
+
"data-slot": "card-description",
|
|
127
|
+
className: cn("text-sm text-muted-foreground", className),
|
|
128
|
+
...props
|
|
129
|
+
}
|
|
130
|
+
);
|
|
131
|
+
}
|
|
132
|
+
function CardAction({ className, ...props }) {
|
|
133
|
+
return /* @__PURE__ */ jsx2(
|
|
134
|
+
"div",
|
|
135
|
+
{
|
|
136
|
+
"data-slot": "card-action",
|
|
137
|
+
className: cn(
|
|
138
|
+
"col-start-2 row-span-2 row-start-1 self-start justify-self-end",
|
|
139
|
+
className
|
|
140
|
+
),
|
|
141
|
+
...props
|
|
142
|
+
}
|
|
143
|
+
);
|
|
144
|
+
}
|
|
145
|
+
function CardContent({ className, ...props }) {
|
|
146
|
+
return /* @__PURE__ */ jsx2(
|
|
147
|
+
"div",
|
|
148
|
+
{
|
|
149
|
+
"data-slot": "card-content",
|
|
150
|
+
className: cn("px-6", className),
|
|
151
|
+
...props
|
|
152
|
+
}
|
|
153
|
+
);
|
|
154
|
+
}
|
|
155
|
+
function CardFooter({ className, ...props }) {
|
|
156
|
+
return /* @__PURE__ */ jsx2(
|
|
157
|
+
"div",
|
|
158
|
+
{
|
|
159
|
+
"data-slot": "card-footer",
|
|
160
|
+
className: cn("flex items-center px-6 [.border-t]:pt-6", className),
|
|
161
|
+
...props
|
|
162
|
+
}
|
|
163
|
+
);
|
|
164
|
+
}
|
|
165
|
+
|
|
84
166
|
// src/ui/popover.tsx
|
|
85
167
|
import { Popover as PopoverPrimitive } from "@base-ui/react/popover";
|
|
86
|
-
import { jsx as
|
|
168
|
+
import { jsx as jsx3 } from "react/jsx-runtime";
|
|
87
169
|
function Popover({
|
|
88
170
|
...props
|
|
89
171
|
}) {
|
|
90
|
-
return /* @__PURE__ */
|
|
172
|
+
return /* @__PURE__ */ jsx3(PopoverPrimitive.Root, { "data-slot": "popover", ...props });
|
|
91
173
|
}
|
|
92
174
|
function PopoverTrigger({
|
|
93
175
|
...props
|
|
94
176
|
}) {
|
|
95
|
-
return /* @__PURE__ */
|
|
177
|
+
return /* @__PURE__ */ jsx3(PopoverPrimitive.Trigger, { "data-slot": "popover-trigger", ...props });
|
|
96
178
|
}
|
|
97
179
|
function PopoverContent({
|
|
98
180
|
className,
|
|
@@ -102,7 +184,7 @@ function PopoverContent({
|
|
|
102
184
|
anchor,
|
|
103
185
|
...props
|
|
104
186
|
}) {
|
|
105
|
-
return /* @__PURE__ */
|
|
187
|
+
return /* @__PURE__ */ jsx3(PopoverPrimitive.Portal, { children: /* @__PURE__ */ jsx3(
|
|
106
188
|
PopoverPrimitive.Positioner,
|
|
107
189
|
{
|
|
108
190
|
align,
|
|
@@ -110,7 +192,7 @@ function PopoverContent({
|
|
|
110
192
|
sideOffset,
|
|
111
193
|
anchor,
|
|
112
194
|
className: "isolate z-50",
|
|
113
|
-
children: /* @__PURE__ */
|
|
195
|
+
children: /* @__PURE__ */ jsx3(
|
|
114
196
|
PopoverPrimitive.Popup,
|
|
115
197
|
{
|
|
116
198
|
"data-slot": "popover-content",
|
|
@@ -130,6 +212,13 @@ export {
|
|
|
130
212
|
AccordionItem,
|
|
131
213
|
AccordionTrigger,
|
|
132
214
|
AccordionContent,
|
|
215
|
+
Card,
|
|
216
|
+
CardHeader,
|
|
217
|
+
CardTitle,
|
|
218
|
+
CardDescription,
|
|
219
|
+
CardAction,
|
|
220
|
+
CardContent,
|
|
221
|
+
CardFooter,
|
|
133
222
|
Popover,
|
|
134
223
|
PopoverTrigger,
|
|
135
224
|
PopoverContent
|