@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.
@@ -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 jsx2 } from "react/jsx-runtime";
168
+ import { jsx as jsx3 } from "react/jsx-runtime";
87
169
  function Popover({
88
170
  ...props
89
171
  }) {
90
- return /* @__PURE__ */ jsx2(PopoverPrimitive.Root, { "data-slot": "popover", ...props });
172
+ return /* @__PURE__ */ jsx3(PopoverPrimitive.Root, { "data-slot": "popover", ...props });
91
173
  }
92
174
  function PopoverTrigger({
93
175
  ...props
94
176
  }) {
95
- return /* @__PURE__ */ jsx2(PopoverPrimitive.Trigger, { "data-slot": "popover-trigger", ...props });
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__ */ jsx2(PopoverPrimitive.Portal, { children: /* @__PURE__ */ jsx2(
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__ */ jsx2(
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