@classic-homes/theme-react 0.1.48 → 0.1.50
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.d.mts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +31 -19
- package/dist/index.mjs +31 -19
- package/package.json +4 -3
package/dist/index.d.mts
CHANGED
|
@@ -2,10 +2,10 @@ import * as class_variance_authority_types from 'class-variance-authority/types'
|
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
import { VariantProps } from 'class-variance-authority';
|
|
4
4
|
import * as LabelPrimitive from '@radix-ui/react-label';
|
|
5
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
6
5
|
import * as SeparatorPrimitive from '@radix-ui/react-separator';
|
|
7
6
|
import * as SwitchPrimitives from '@radix-ui/react-switch';
|
|
8
7
|
import * as AvatarPrimitive from '@radix-ui/react-avatar';
|
|
8
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
9
9
|
import * as DialogPrimitive from '@radix-ui/react-dialog';
|
|
10
10
|
import { ClassValue } from 'clsx';
|
|
11
11
|
|
|
@@ -20,7 +20,7 @@ declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAtt
|
|
|
20
20
|
|
|
21
21
|
declare const Card: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
22
22
|
declare const CardHeader: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
23
|
-
declare const CardTitle: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLHeadingElement> & React.RefAttributes<
|
|
23
|
+
declare const CardTitle: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLHeadingElement> & React.RefAttributes<HTMLHeadingElement>>;
|
|
24
24
|
declare const CardDescription: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLParagraphElement> & React.RefAttributes<HTMLParagraphElement>>;
|
|
25
25
|
declare const CardContent: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
26
26
|
declare const CardFooter: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -36,7 +36,7 @@ declare const badgeVariants: (props?: ({
|
|
|
36
36
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
37
37
|
interface BadgeProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof badgeVariants> {
|
|
38
38
|
}
|
|
39
|
-
declare
|
|
39
|
+
declare const Badge: React.ForwardRefExoticComponent<BadgeProps & React.RefAttributes<HTMLDivElement>>;
|
|
40
40
|
|
|
41
41
|
declare const Separator: React.ForwardRefExoticComponent<Omit<SeparatorPrimitive.SeparatorProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
42
42
|
|
package/dist/index.d.ts
CHANGED
|
@@ -2,10 +2,10 @@ import * as class_variance_authority_types from 'class-variance-authority/types'
|
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
import { VariantProps } from 'class-variance-authority';
|
|
4
4
|
import * as LabelPrimitive from '@radix-ui/react-label';
|
|
5
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
6
5
|
import * as SeparatorPrimitive from '@radix-ui/react-separator';
|
|
7
6
|
import * as SwitchPrimitives from '@radix-ui/react-switch';
|
|
8
7
|
import * as AvatarPrimitive from '@radix-ui/react-avatar';
|
|
8
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
9
9
|
import * as DialogPrimitive from '@radix-ui/react-dialog';
|
|
10
10
|
import { ClassValue } from 'clsx';
|
|
11
11
|
|
|
@@ -20,7 +20,7 @@ declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAtt
|
|
|
20
20
|
|
|
21
21
|
declare const Card: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
22
22
|
declare const CardHeader: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
23
|
-
declare const CardTitle: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLHeadingElement> & React.RefAttributes<
|
|
23
|
+
declare const CardTitle: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLHeadingElement> & React.RefAttributes<HTMLHeadingElement>>;
|
|
24
24
|
declare const CardDescription: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLParagraphElement> & React.RefAttributes<HTMLParagraphElement>>;
|
|
25
25
|
declare const CardContent: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
26
26
|
declare const CardFooter: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -36,7 +36,7 @@ declare const badgeVariants: (props?: ({
|
|
|
36
36
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
37
37
|
interface BadgeProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof badgeVariants> {
|
|
38
38
|
}
|
|
39
|
-
declare
|
|
39
|
+
declare const Badge: React.ForwardRefExoticComponent<BadgeProps & React.RefAttributes<HTMLDivElement>>;
|
|
40
40
|
|
|
41
41
|
declare const Separator: React.ForwardRefExoticComponent<Omit<SeparatorPrimitive.SeparatorProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
42
42
|
|
package/dist/index.js
CHANGED
|
@@ -190,6 +190,7 @@ var Label = React4.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
|
|
|
190
190
|
Label.displayName = LabelPrimitive.Root.displayName;
|
|
191
191
|
|
|
192
192
|
// src/components/Badge.tsx
|
|
193
|
+
var React5 = __toESM(require("react"));
|
|
193
194
|
var import_class_variance_authority3 = require("class-variance-authority");
|
|
194
195
|
var import_jsx_runtime5 = require("react/jsx-runtime");
|
|
195
196
|
var badgeVariants = (0, import_class_variance_authority3.cva)(
|
|
@@ -208,15 +209,26 @@ var badgeVariants = (0, import_class_variance_authority3.cva)(
|
|
|
208
209
|
}
|
|
209
210
|
}
|
|
210
211
|
);
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
212
|
+
var Badge = React5.forwardRef(
|
|
213
|
+
({ className, variant, ...props }, ref) => {
|
|
214
|
+
return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
|
|
215
|
+
"div",
|
|
216
|
+
{
|
|
217
|
+
ref,
|
|
218
|
+
role: "status",
|
|
219
|
+
className: cn(badgeVariants({ variant }), className),
|
|
220
|
+
...props
|
|
221
|
+
}
|
|
222
|
+
);
|
|
223
|
+
}
|
|
224
|
+
);
|
|
225
|
+
Badge.displayName = "Badge";
|
|
214
226
|
|
|
215
227
|
// src/components/Separator.tsx
|
|
216
|
-
var
|
|
228
|
+
var React6 = __toESM(require("react"));
|
|
217
229
|
var SeparatorPrimitive = __toESM(require("@radix-ui/react-separator"));
|
|
218
230
|
var import_jsx_runtime6 = require("react/jsx-runtime");
|
|
219
|
-
var Separator =
|
|
231
|
+
var Separator = React6.forwardRef(({ className, orientation = "horizontal", decorative = true, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
220
232
|
SeparatorPrimitive.Root,
|
|
221
233
|
{
|
|
222
234
|
ref,
|
|
@@ -233,10 +245,10 @@ var Separator = React5.forwardRef(({ className, orientation = "horizontal", deco
|
|
|
233
245
|
Separator.displayName = SeparatorPrimitive.Root.displayName;
|
|
234
246
|
|
|
235
247
|
// src/components/Switch.tsx
|
|
236
|
-
var
|
|
248
|
+
var React7 = __toESM(require("react"));
|
|
237
249
|
var SwitchPrimitives = __toESM(require("@radix-ui/react-switch"));
|
|
238
250
|
var import_jsx_runtime7 = require("react/jsx-runtime");
|
|
239
|
-
var Switch =
|
|
251
|
+
var Switch = React7.forwardRef(
|
|
240
252
|
({ className, size = "default", ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
|
|
241
253
|
SwitchPrimitives.Root,
|
|
242
254
|
{
|
|
@@ -264,10 +276,10 @@ var Switch = React6.forwardRef(
|
|
|
264
276
|
Switch.displayName = SwitchPrimitives.Root.displayName;
|
|
265
277
|
|
|
266
278
|
// src/components/Avatar.tsx
|
|
267
|
-
var
|
|
279
|
+
var React8 = __toESM(require("react"));
|
|
268
280
|
var AvatarPrimitive = __toESM(require("@radix-ui/react-avatar"));
|
|
269
281
|
var import_jsx_runtime8 = require("react/jsx-runtime");
|
|
270
|
-
var Avatar =
|
|
282
|
+
var Avatar = React8.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
271
283
|
AvatarPrimitive.Root,
|
|
272
284
|
{
|
|
273
285
|
ref,
|
|
@@ -276,16 +288,16 @@ var Avatar = React7.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
|
|
|
276
288
|
}
|
|
277
289
|
));
|
|
278
290
|
Avatar.displayName = AvatarPrimitive.Root.displayName;
|
|
279
|
-
var AvatarImage =
|
|
291
|
+
var AvatarImage = React8.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
280
292
|
AvatarPrimitive.Image,
|
|
281
293
|
{
|
|
282
294
|
ref,
|
|
283
|
-
className: cn("aspect-square h-full w-full", className),
|
|
295
|
+
className: cn("aspect-square h-full w-full object-cover", className),
|
|
284
296
|
...props
|
|
285
297
|
}
|
|
286
298
|
));
|
|
287
299
|
AvatarImage.displayName = AvatarPrimitive.Image.displayName;
|
|
288
|
-
var AvatarFallback =
|
|
300
|
+
var AvatarFallback = React8.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
289
301
|
AvatarPrimitive.Fallback,
|
|
290
302
|
{
|
|
291
303
|
ref,
|
|
@@ -299,14 +311,14 @@ var AvatarFallback = React7.forwardRef(({ className, ...props }, ref) => /* @__P
|
|
|
299
311
|
AvatarFallback.displayName = AvatarPrimitive.Fallback.displayName;
|
|
300
312
|
|
|
301
313
|
// src/components/Dialog.tsx
|
|
302
|
-
var
|
|
314
|
+
var React9 = __toESM(require("react"));
|
|
303
315
|
var DialogPrimitive = __toESM(require("@radix-ui/react-dialog"));
|
|
304
316
|
var import_jsx_runtime9 = require("react/jsx-runtime");
|
|
305
317
|
var Dialog = DialogPrimitive.Root;
|
|
306
318
|
var DialogTrigger = DialogPrimitive.Trigger;
|
|
307
319
|
var DialogPortal = DialogPrimitive.Portal;
|
|
308
320
|
var DialogClose = DialogPrimitive.Close;
|
|
309
|
-
var DialogOverlay =
|
|
321
|
+
var DialogOverlay = React9.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
|
|
310
322
|
DialogPrimitive.Overlay,
|
|
311
323
|
{
|
|
312
324
|
ref,
|
|
@@ -318,7 +330,7 @@ var DialogOverlay = React8.forwardRef(({ className, ...props }, ref) => /* @__PU
|
|
|
318
330
|
}
|
|
319
331
|
));
|
|
320
332
|
DialogOverlay.displayName = DialogPrimitive.Overlay.displayName;
|
|
321
|
-
var DialogContent =
|
|
333
|
+
var DialogContent = React9.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(DialogPortal, { children: [
|
|
322
334
|
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)(DialogOverlay, {}),
|
|
323
335
|
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
|
|
324
336
|
DialogPrimitive.Content,
|
|
@@ -344,7 +356,7 @@ var DialogFooter = ({ className, ...props }) => /* @__PURE__ */ (0, import_jsx_r
|
|
|
344
356
|
}
|
|
345
357
|
);
|
|
346
358
|
DialogFooter.displayName = "DialogFooter";
|
|
347
|
-
var DialogTitle =
|
|
359
|
+
var DialogTitle = React9.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
|
|
348
360
|
DialogPrimitive.Title,
|
|
349
361
|
{
|
|
350
362
|
ref,
|
|
@@ -353,7 +365,7 @@ var DialogTitle = React8.forwardRef(({ className, ...props }, ref) => /* @__PURE
|
|
|
353
365
|
}
|
|
354
366
|
));
|
|
355
367
|
DialogTitle.displayName = DialogPrimitive.Title.displayName;
|
|
356
|
-
var DialogDescription =
|
|
368
|
+
var DialogDescription = React9.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
|
|
357
369
|
DialogPrimitive.Description,
|
|
358
370
|
{
|
|
359
371
|
ref,
|
|
@@ -364,7 +376,7 @@ var DialogDescription = React8.forwardRef(({ className, ...props }, ref) => /* @
|
|
|
364
376
|
DialogDescription.displayName = DialogPrimitive.Description.displayName;
|
|
365
377
|
|
|
366
378
|
// src/components/PageHeader.tsx
|
|
367
|
-
var
|
|
379
|
+
var React10 = __toESM(require("react"));
|
|
368
380
|
var import_class_variance_authority4 = require("class-variance-authority");
|
|
369
381
|
var import_jsx_runtime10 = require("react/jsx-runtime");
|
|
370
382
|
var pageHeaderContainerVariants = (0, import_class_variance_authority4.cva)("", {
|
|
@@ -415,7 +427,7 @@ var pageHeaderActionsVariants = (0, import_class_variance_authority4.cva)("flex
|
|
|
415
427
|
variant: "default"
|
|
416
428
|
}
|
|
417
429
|
});
|
|
418
|
-
var PageHeader =
|
|
430
|
+
var PageHeader = React10.forwardRef(
|
|
419
431
|
({ className, variant, title, subtitle, actions, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)(
|
|
420
432
|
"header",
|
|
421
433
|
{
|
package/dist/index.mjs
CHANGED
|
@@ -122,6 +122,7 @@ var Label = React4.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
|
|
|
122
122
|
Label.displayName = LabelPrimitive.Root.displayName;
|
|
123
123
|
|
|
124
124
|
// src/components/Badge.tsx
|
|
125
|
+
import * as React5 from "react";
|
|
125
126
|
import { cva as cva3 } from "class-variance-authority";
|
|
126
127
|
import { jsx as jsx5 } from "react/jsx-runtime";
|
|
127
128
|
var badgeVariants = cva3(
|
|
@@ -140,15 +141,26 @@ var badgeVariants = cva3(
|
|
|
140
141
|
}
|
|
141
142
|
}
|
|
142
143
|
);
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
144
|
+
var Badge = React5.forwardRef(
|
|
145
|
+
({ className, variant, ...props }, ref) => {
|
|
146
|
+
return /* @__PURE__ */ jsx5(
|
|
147
|
+
"div",
|
|
148
|
+
{
|
|
149
|
+
ref,
|
|
150
|
+
role: "status",
|
|
151
|
+
className: cn(badgeVariants({ variant }), className),
|
|
152
|
+
...props
|
|
153
|
+
}
|
|
154
|
+
);
|
|
155
|
+
}
|
|
156
|
+
);
|
|
157
|
+
Badge.displayName = "Badge";
|
|
146
158
|
|
|
147
159
|
// src/components/Separator.tsx
|
|
148
|
-
import * as
|
|
160
|
+
import * as React6 from "react";
|
|
149
161
|
import * as SeparatorPrimitive from "@radix-ui/react-separator";
|
|
150
162
|
import { jsx as jsx6 } from "react/jsx-runtime";
|
|
151
|
-
var Separator =
|
|
163
|
+
var Separator = React6.forwardRef(({ className, orientation = "horizontal", decorative = true, ...props }, ref) => /* @__PURE__ */ jsx6(
|
|
152
164
|
SeparatorPrimitive.Root,
|
|
153
165
|
{
|
|
154
166
|
ref,
|
|
@@ -165,10 +177,10 @@ var Separator = React5.forwardRef(({ className, orientation = "horizontal", deco
|
|
|
165
177
|
Separator.displayName = SeparatorPrimitive.Root.displayName;
|
|
166
178
|
|
|
167
179
|
// src/components/Switch.tsx
|
|
168
|
-
import * as
|
|
180
|
+
import * as React7 from "react";
|
|
169
181
|
import * as SwitchPrimitives from "@radix-ui/react-switch";
|
|
170
182
|
import { jsx as jsx7 } from "react/jsx-runtime";
|
|
171
|
-
var Switch =
|
|
183
|
+
var Switch = React7.forwardRef(
|
|
172
184
|
({ className, size = "default", ...props }, ref) => /* @__PURE__ */ jsx7(
|
|
173
185
|
SwitchPrimitives.Root,
|
|
174
186
|
{
|
|
@@ -196,10 +208,10 @@ var Switch = React6.forwardRef(
|
|
|
196
208
|
Switch.displayName = SwitchPrimitives.Root.displayName;
|
|
197
209
|
|
|
198
210
|
// src/components/Avatar.tsx
|
|
199
|
-
import * as
|
|
211
|
+
import * as React8 from "react";
|
|
200
212
|
import * as AvatarPrimitive from "@radix-ui/react-avatar";
|
|
201
213
|
import { jsx as jsx8 } from "react/jsx-runtime";
|
|
202
|
-
var Avatar =
|
|
214
|
+
var Avatar = React8.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx8(
|
|
203
215
|
AvatarPrimitive.Root,
|
|
204
216
|
{
|
|
205
217
|
ref,
|
|
@@ -208,16 +220,16 @@ var Avatar = React7.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
|
|
|
208
220
|
}
|
|
209
221
|
));
|
|
210
222
|
Avatar.displayName = AvatarPrimitive.Root.displayName;
|
|
211
|
-
var AvatarImage =
|
|
223
|
+
var AvatarImage = React8.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx8(
|
|
212
224
|
AvatarPrimitive.Image,
|
|
213
225
|
{
|
|
214
226
|
ref,
|
|
215
|
-
className: cn("aspect-square h-full w-full", className),
|
|
227
|
+
className: cn("aspect-square h-full w-full object-cover", className),
|
|
216
228
|
...props
|
|
217
229
|
}
|
|
218
230
|
));
|
|
219
231
|
AvatarImage.displayName = AvatarPrimitive.Image.displayName;
|
|
220
|
-
var AvatarFallback =
|
|
232
|
+
var AvatarFallback = React8.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx8(
|
|
221
233
|
AvatarPrimitive.Fallback,
|
|
222
234
|
{
|
|
223
235
|
ref,
|
|
@@ -231,14 +243,14 @@ var AvatarFallback = React7.forwardRef(({ className, ...props }, ref) => /* @__P
|
|
|
231
243
|
AvatarFallback.displayName = AvatarPrimitive.Fallback.displayName;
|
|
232
244
|
|
|
233
245
|
// src/components/Dialog.tsx
|
|
234
|
-
import * as
|
|
246
|
+
import * as React9 from "react";
|
|
235
247
|
import * as DialogPrimitive from "@radix-ui/react-dialog";
|
|
236
248
|
import { jsx as jsx9, jsxs } from "react/jsx-runtime";
|
|
237
249
|
var Dialog = DialogPrimitive.Root;
|
|
238
250
|
var DialogTrigger = DialogPrimitive.Trigger;
|
|
239
251
|
var DialogPortal = DialogPrimitive.Portal;
|
|
240
252
|
var DialogClose = DialogPrimitive.Close;
|
|
241
|
-
var DialogOverlay =
|
|
253
|
+
var DialogOverlay = React9.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx9(
|
|
242
254
|
DialogPrimitive.Overlay,
|
|
243
255
|
{
|
|
244
256
|
ref,
|
|
@@ -250,7 +262,7 @@ var DialogOverlay = React8.forwardRef(({ className, ...props }, ref) => /* @__PU
|
|
|
250
262
|
}
|
|
251
263
|
));
|
|
252
264
|
DialogOverlay.displayName = DialogPrimitive.Overlay.displayName;
|
|
253
|
-
var DialogContent =
|
|
265
|
+
var DialogContent = React9.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs(DialogPortal, { children: [
|
|
254
266
|
/* @__PURE__ */ jsx9(DialogOverlay, {}),
|
|
255
267
|
/* @__PURE__ */ jsx9(
|
|
256
268
|
DialogPrimitive.Content,
|
|
@@ -276,7 +288,7 @@ var DialogFooter = ({ className, ...props }) => /* @__PURE__ */ jsx9(
|
|
|
276
288
|
}
|
|
277
289
|
);
|
|
278
290
|
DialogFooter.displayName = "DialogFooter";
|
|
279
|
-
var DialogTitle =
|
|
291
|
+
var DialogTitle = React9.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx9(
|
|
280
292
|
DialogPrimitive.Title,
|
|
281
293
|
{
|
|
282
294
|
ref,
|
|
@@ -285,7 +297,7 @@ var DialogTitle = React8.forwardRef(({ className, ...props }, ref) => /* @__PURE
|
|
|
285
297
|
}
|
|
286
298
|
));
|
|
287
299
|
DialogTitle.displayName = DialogPrimitive.Title.displayName;
|
|
288
|
-
var DialogDescription =
|
|
300
|
+
var DialogDescription = React9.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx9(
|
|
289
301
|
DialogPrimitive.Description,
|
|
290
302
|
{
|
|
291
303
|
ref,
|
|
@@ -296,7 +308,7 @@ var DialogDescription = React8.forwardRef(({ className, ...props }, ref) => /* @
|
|
|
296
308
|
DialogDescription.displayName = DialogPrimitive.Description.displayName;
|
|
297
309
|
|
|
298
310
|
// src/components/PageHeader.tsx
|
|
299
|
-
import * as
|
|
311
|
+
import * as React10 from "react";
|
|
300
312
|
import { cva as cva4 } from "class-variance-authority";
|
|
301
313
|
import { jsx as jsx10, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
302
314
|
var pageHeaderContainerVariants = cva4("", {
|
|
@@ -347,7 +359,7 @@ var pageHeaderActionsVariants = cva4("flex gap-4", {
|
|
|
347
359
|
variant: "default"
|
|
348
360
|
}
|
|
349
361
|
});
|
|
350
|
-
var PageHeader =
|
|
362
|
+
var PageHeader = React10.forwardRef(
|
|
351
363
|
({ className, variant, title, subtitle, actions, ...props }, ref) => /* @__PURE__ */ jsxs2(
|
|
352
364
|
"header",
|
|
353
365
|
{
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@classic-homes/theme-react",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.50",
|
|
4
4
|
"description": "React components for the Classic theme system",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
},
|
|
14
14
|
"./styles.css": "./dist/styles.css"
|
|
15
15
|
},
|
|
16
|
+
"sideEffects": false,
|
|
16
17
|
"files": [
|
|
17
18
|
"dist"
|
|
18
19
|
],
|
|
@@ -37,8 +38,8 @@
|
|
|
37
38
|
"access": "public"
|
|
38
39
|
},
|
|
39
40
|
"peerDependencies": {
|
|
40
|
-
"react": "^18.0.0",
|
|
41
|
-
"react-dom": "^18.0.0"
|
|
41
|
+
"react": "^18.0.0 || ^19.0.0",
|
|
42
|
+
"react-dom": "^18.0.0 || ^19.0.0"
|
|
42
43
|
},
|
|
43
44
|
"dependencies": {
|
|
44
45
|
"@classic-homes/theme-tokens": "*",
|