@kopexa/card 17.1.7 → 17.2.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/card.d.mts +11 -1
- package/dist/card.d.ts +11 -1
- package/dist/card.js +12 -0
- package/dist/card.mjs +3 -1
- package/dist/{chunk-BSNWXCNX.mjs → chunk-HMEHVSP2.mjs} +12 -7
- package/dist/index.d.mts +1 -2
- package/dist/index.d.ts +1 -2
- package/dist/index.js +28 -15
- package/dist/index.mjs +19 -4
- package/package.json +4 -4
- package/dist/chunk-I2M2HM2L.mjs +0 -29
- package/dist/namespace.d.mts +0 -10
- package/dist/namespace.d.ts +0 -10
- package/dist/namespace.js +0 -185
- package/dist/namespace.mjs +0 -22
package/dist/card.d.mts
CHANGED
|
@@ -26,5 +26,15 @@ type CardTitleProps = ComponentProps<"h3">;
|
|
|
26
26
|
declare function CardTitle({ className, ...props }: CardTitleProps): react_jsx_runtime.JSX.Element;
|
|
27
27
|
type CardSubtitleProps = ComponentProps<"p">;
|
|
28
28
|
declare function CardSubtitle({ className, ...props }: CardSubtitleProps): react_jsx_runtime.JSX.Element;
|
|
29
|
+
declare const Card: ((props: CardRootProps) => react_jsx_runtime.JSX.Element) & {
|
|
30
|
+
Root: (props: CardRootProps) => react_jsx_runtime.JSX.Element;
|
|
31
|
+
Header: typeof CardHeader;
|
|
32
|
+
Body: typeof CardBody;
|
|
33
|
+
Footer: typeof CardFooter;
|
|
34
|
+
Heading: typeof CardHeading;
|
|
35
|
+
Toolbar: typeof CardToolbar;
|
|
36
|
+
Title: typeof CardTitle;
|
|
37
|
+
Subtitle: typeof CardSubtitle;
|
|
38
|
+
};
|
|
29
39
|
|
|
30
|
-
export { CardBody, type CardBodyProps, CardFooter, type CardFooterProps, CardHeader, type CardHeaderProps, CardHeading, type CardHeadingProps, CardRoot, type CardRootProps, CardSubtitle, type CardSubtitleProps, CardTitle, type CardTitleProps, CardToolbar, type CardToolbarProps };
|
|
40
|
+
export { Card, CardBody, type CardBodyProps, CardFooter, type CardFooterProps, CardHeader, type CardHeaderProps, CardHeading, type CardHeadingProps, CardRoot, type CardRootProps, CardSubtitle, type CardSubtitleProps, CardTitle, type CardTitleProps, CardToolbar, type CardToolbarProps };
|
package/dist/card.d.ts
CHANGED
|
@@ -26,5 +26,15 @@ type CardTitleProps = ComponentProps<"h3">;
|
|
|
26
26
|
declare function CardTitle({ className, ...props }: CardTitleProps): react_jsx_runtime.JSX.Element;
|
|
27
27
|
type CardSubtitleProps = ComponentProps<"p">;
|
|
28
28
|
declare function CardSubtitle({ className, ...props }: CardSubtitleProps): react_jsx_runtime.JSX.Element;
|
|
29
|
+
declare const Card: ((props: CardRootProps) => react_jsx_runtime.JSX.Element) & {
|
|
30
|
+
Root: (props: CardRootProps) => react_jsx_runtime.JSX.Element;
|
|
31
|
+
Header: typeof CardHeader;
|
|
32
|
+
Body: typeof CardBody;
|
|
33
|
+
Footer: typeof CardFooter;
|
|
34
|
+
Heading: typeof CardHeading;
|
|
35
|
+
Toolbar: typeof CardToolbar;
|
|
36
|
+
Title: typeof CardTitle;
|
|
37
|
+
Subtitle: typeof CardSubtitle;
|
|
38
|
+
};
|
|
29
39
|
|
|
30
|
-
export { CardBody, type CardBodyProps, CardFooter, type CardFooterProps, CardHeader, type CardHeaderProps, CardHeading, type CardHeadingProps, CardRoot, type CardRootProps, CardSubtitle, type CardSubtitleProps, CardTitle, type CardTitleProps, CardToolbar, type CardToolbarProps };
|
|
40
|
+
export { Card, CardBody, type CardBodyProps, CardFooter, type CardFooterProps, CardHeader, type CardHeaderProps, CardHeading, type CardHeadingProps, CardRoot, type CardRootProps, CardSubtitle, type CardSubtitleProps, CardTitle, type CardTitleProps, CardToolbar, type CardToolbarProps };
|
package/dist/card.js
CHANGED
|
@@ -32,6 +32,7 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
32
32
|
// src/card.tsx
|
|
33
33
|
var card_exports = {};
|
|
34
34
|
__export(card_exports, {
|
|
35
|
+
Card: () => Card,
|
|
35
36
|
CardBody: () => CardBody,
|
|
36
37
|
CardFooter: () => CardFooter,
|
|
37
38
|
CardHeader: () => CardHeader,
|
|
@@ -171,8 +172,19 @@ function CardSubtitle({ className, ...props }) {
|
|
|
171
172
|
}
|
|
172
173
|
);
|
|
173
174
|
}
|
|
175
|
+
var Card = Object.assign(CardRoot, {
|
|
176
|
+
Root: CardRoot,
|
|
177
|
+
Header: CardHeader,
|
|
178
|
+
Body: CardBody,
|
|
179
|
+
Footer: CardFooter,
|
|
180
|
+
Heading: CardHeading,
|
|
181
|
+
Toolbar: CardToolbar,
|
|
182
|
+
Title: CardTitle,
|
|
183
|
+
Subtitle: CardSubtitle
|
|
184
|
+
});
|
|
174
185
|
// Annotate the CommonJS export names for ESM import in node:
|
|
175
186
|
0 && (module.exports = {
|
|
187
|
+
Card,
|
|
176
188
|
CardBody,
|
|
177
189
|
CardFooter,
|
|
178
190
|
CardHeader,
|
package/dist/card.mjs
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
"use client";
|
|
3
3
|
import {
|
|
4
|
+
Card,
|
|
4
5
|
CardBody,
|
|
5
6
|
CardFooter,
|
|
6
7
|
CardHeader,
|
|
@@ -9,8 +10,9 @@ import {
|
|
|
9
10
|
CardSubtitle,
|
|
10
11
|
CardTitle,
|
|
11
12
|
CardToolbar
|
|
12
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-HMEHVSP2.mjs";
|
|
13
14
|
export {
|
|
15
|
+
Card,
|
|
14
16
|
CardBody,
|
|
15
17
|
CardFooter,
|
|
16
18
|
CardHeader,
|
|
@@ -1,9 +1,4 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __export = (target, all) => {
|
|
4
|
-
for (var name in all)
|
|
5
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
6
|
-
};
|
|
7
2
|
|
|
8
3
|
// src/card.tsx
|
|
9
4
|
import { createContext } from "@kopexa/react-utils";
|
|
@@ -135,9 +130,18 @@ function CardSubtitle({ className, ...props }) {
|
|
|
135
130
|
}
|
|
136
131
|
);
|
|
137
132
|
}
|
|
133
|
+
var Card = Object.assign(CardRoot, {
|
|
134
|
+
Root: CardRoot,
|
|
135
|
+
Header: CardHeader,
|
|
136
|
+
Body: CardBody,
|
|
137
|
+
Footer: CardFooter,
|
|
138
|
+
Heading: CardHeading,
|
|
139
|
+
Toolbar: CardToolbar,
|
|
140
|
+
Title: CardTitle,
|
|
141
|
+
Subtitle: CardSubtitle
|
|
142
|
+
});
|
|
138
143
|
|
|
139
144
|
export {
|
|
140
|
-
__export,
|
|
141
145
|
CardRoot,
|
|
142
146
|
CardHeader,
|
|
143
147
|
CardBody,
|
|
@@ -145,5 +149,6 @@ export {
|
|
|
145
149
|
CardHeading,
|
|
146
150
|
CardToolbar,
|
|
147
151
|
CardTitle,
|
|
148
|
-
CardSubtitle
|
|
152
|
+
CardSubtitle,
|
|
153
|
+
Card
|
|
149
154
|
};
|
package/dist/index.d.mts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
export {
|
|
2
|
-
import './card.mjs';
|
|
1
|
+
export { Card, CardBody, CardBodyProps, CardFooter, CardFooterProps, CardHeader, CardHeaderProps, CardHeading, CardHeadingProps, CardRoot, CardRootProps, CardSubtitle, CardSubtitleProps, CardTitle, CardTitleProps, CardToolbar, CardToolbarProps } from './card.mjs';
|
|
3
2
|
import 'react/jsx-runtime';
|
|
4
3
|
import '@kopexa/theme';
|
|
5
4
|
import 'react';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
export {
|
|
2
|
-
import './card.js';
|
|
1
|
+
export { Card, CardBody, CardBodyProps, CardFooter, CardFooterProps, CardHeader, CardHeaderProps, CardHeading, CardHeadingProps, CardRoot, CardRootProps, CardSubtitle, CardSubtitleProps, CardTitle, CardTitleProps, CardToolbar, CardToolbarProps } from './card.js';
|
|
3
2
|
import 'react/jsx-runtime';
|
|
4
3
|
import '@kopexa/theme';
|
|
5
4
|
import 'react';
|
package/dist/index.js
CHANGED
|
@@ -31,23 +31,18 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
31
31
|
// src/index.ts
|
|
32
32
|
var index_exports = {};
|
|
33
33
|
__export(index_exports, {
|
|
34
|
-
Card: () =>
|
|
34
|
+
Card: () => Card,
|
|
35
|
+
CardBody: () => CardBody,
|
|
36
|
+
CardFooter: () => CardFooter,
|
|
37
|
+
CardHeader: () => CardHeader,
|
|
38
|
+
CardHeading: () => CardHeading,
|
|
39
|
+
CardRoot: () => CardRoot,
|
|
40
|
+
CardSubtitle: () => CardSubtitle,
|
|
41
|
+
CardTitle: () => CardTitle,
|
|
42
|
+
CardToolbar: () => CardToolbar
|
|
35
43
|
});
|
|
36
44
|
module.exports = __toCommonJS(index_exports);
|
|
37
45
|
|
|
38
|
-
// src/namespace.ts
|
|
39
|
-
var namespace_exports = {};
|
|
40
|
-
__export(namespace_exports, {
|
|
41
|
-
Body: () => CardBody,
|
|
42
|
-
Footer: () => CardFooter,
|
|
43
|
-
Header: () => CardHeader,
|
|
44
|
-
Heading: () => CardHeading,
|
|
45
|
-
Root: () => CardRoot,
|
|
46
|
-
Subtitle: () => CardSubtitle,
|
|
47
|
-
Title: () => CardTitle,
|
|
48
|
-
Toolbar: () => CardToolbar
|
|
49
|
-
});
|
|
50
|
-
|
|
51
46
|
// src/card.tsx
|
|
52
47
|
var import_react_utils = require("@kopexa/react-utils");
|
|
53
48
|
var import_shared_utils = require("@kopexa/shared-utils");
|
|
@@ -178,7 +173,25 @@ function CardSubtitle({ className, ...props }) {
|
|
|
178
173
|
}
|
|
179
174
|
);
|
|
180
175
|
}
|
|
176
|
+
var Card = Object.assign(CardRoot, {
|
|
177
|
+
Root: CardRoot,
|
|
178
|
+
Header: CardHeader,
|
|
179
|
+
Body: CardBody,
|
|
180
|
+
Footer: CardFooter,
|
|
181
|
+
Heading: CardHeading,
|
|
182
|
+
Toolbar: CardToolbar,
|
|
183
|
+
Title: CardTitle,
|
|
184
|
+
Subtitle: CardSubtitle
|
|
185
|
+
});
|
|
181
186
|
// Annotate the CommonJS export names for ESM import in node:
|
|
182
187
|
0 && (module.exports = {
|
|
183
|
-
Card
|
|
188
|
+
Card,
|
|
189
|
+
CardBody,
|
|
190
|
+
CardFooter,
|
|
191
|
+
CardHeader,
|
|
192
|
+
CardHeading,
|
|
193
|
+
CardRoot,
|
|
194
|
+
CardSubtitle,
|
|
195
|
+
CardTitle,
|
|
196
|
+
CardToolbar
|
|
184
197
|
});
|
package/dist/index.mjs
CHANGED
|
@@ -1,8 +1,23 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
Card,
|
|
4
|
+
CardBody,
|
|
5
|
+
CardFooter,
|
|
6
|
+
CardHeader,
|
|
7
|
+
CardHeading,
|
|
8
|
+
CardRoot,
|
|
9
|
+
CardSubtitle,
|
|
10
|
+
CardTitle,
|
|
11
|
+
CardToolbar
|
|
12
|
+
} from "./chunk-HMEHVSP2.mjs";
|
|
6
13
|
export {
|
|
7
|
-
|
|
14
|
+
Card,
|
|
15
|
+
CardBody,
|
|
16
|
+
CardFooter,
|
|
17
|
+
CardHeader,
|
|
18
|
+
CardHeading,
|
|
19
|
+
CardRoot,
|
|
20
|
+
CardSubtitle,
|
|
21
|
+
CardTitle,
|
|
22
|
+
CardToolbar
|
|
8
23
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kopexa/card",
|
|
3
|
-
"version": "17.
|
|
3
|
+
"version": "17.2.0",
|
|
4
4
|
"description": "A card to be used as container",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"card"
|
|
@@ -28,12 +28,12 @@
|
|
|
28
28
|
"motion": ">=12.23.6",
|
|
29
29
|
"react": ">=19.0.0-rc.0",
|
|
30
30
|
"react-dom": ">=19.0.0-rc.0",
|
|
31
|
-
"@kopexa/theme": "17.8.
|
|
31
|
+
"@kopexa/theme": "17.8.2"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"@radix-ui/react-slot": "^1.2.4",
|
|
35
|
-
"@kopexa/
|
|
36
|
-
"@kopexa/
|
|
35
|
+
"@kopexa/react-utils": "17.0.16",
|
|
36
|
+
"@kopexa/shared-utils": "17.0.16"
|
|
37
37
|
},
|
|
38
38
|
"clean-package": "../../../clean-package.config.json",
|
|
39
39
|
"module": "dist/index.mjs",
|
package/dist/chunk-I2M2HM2L.mjs
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import {
|
|
3
|
-
CardBody,
|
|
4
|
-
CardFooter,
|
|
5
|
-
CardHeader,
|
|
6
|
-
CardHeading,
|
|
7
|
-
CardRoot,
|
|
8
|
-
CardSubtitle,
|
|
9
|
-
CardTitle,
|
|
10
|
-
CardToolbar,
|
|
11
|
-
__export
|
|
12
|
-
} from "./chunk-BSNWXCNX.mjs";
|
|
13
|
-
|
|
14
|
-
// src/namespace.ts
|
|
15
|
-
var namespace_exports = {};
|
|
16
|
-
__export(namespace_exports, {
|
|
17
|
-
Body: () => CardBody,
|
|
18
|
-
Footer: () => CardFooter,
|
|
19
|
-
Header: () => CardHeader,
|
|
20
|
-
Heading: () => CardHeading,
|
|
21
|
-
Root: () => CardRoot,
|
|
22
|
-
Subtitle: () => CardSubtitle,
|
|
23
|
-
Title: () => CardTitle,
|
|
24
|
-
Toolbar: () => CardToolbar
|
|
25
|
-
});
|
|
26
|
-
|
|
27
|
-
export {
|
|
28
|
-
namespace_exports
|
|
29
|
-
};
|
package/dist/namespace.d.mts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { CardBody, CardBodyProps, CardFooter, CardFooterProps, CardHeader, CardHeaderProps, CardHeading, CardHeadingProps, CardRoot, CardRootProps, CardSubtitle, CardSubtitleProps, CardTitle, CardTitleProps, CardToolbar, CardToolbarProps } from './card.mjs';
|
|
2
|
-
import 'react/jsx-runtime';
|
|
3
|
-
import '@kopexa/theme';
|
|
4
|
-
import 'react';
|
|
5
|
-
|
|
6
|
-
declare namespace namespace {
|
|
7
|
-
export { CardBody as Body, CardBodyProps as BodyProps, CardFooter as Footer, CardFooterProps as FooterProps, CardHeader as Header, CardHeaderProps as HeaderProps, CardHeading as Heading, CardHeadingProps as HeadingProps, CardRoot as Root, CardRootProps as RootProps, CardSubtitle as Subtitle, CardSubtitleProps as SubtitleProps, CardTitle as Title, CardTitleProps as TitleProps, CardToolbar as Toolbar, CardToolbarProps as ToolbarProps };
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
export { CardBody as Body, CardBodyProps as BodyProps, CardFooter as Footer, CardFooterProps as FooterProps, CardHeader as Header, CardHeaderProps as HeaderProps, CardHeading as Heading, CardHeadingProps as HeadingProps, CardRoot as Root, CardRootProps as RootProps, CardSubtitle as Subtitle, CardSubtitleProps as SubtitleProps, CardTitle as Title, CardTitleProps as TitleProps, CardToolbar as Toolbar, CardToolbarProps as ToolbarProps, namespace as n };
|
package/dist/namespace.d.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { CardBody, CardBodyProps, CardFooter, CardFooterProps, CardHeader, CardHeaderProps, CardHeading, CardHeadingProps, CardRoot, CardRootProps, CardSubtitle, CardSubtitleProps, CardTitle, CardTitleProps, CardToolbar, CardToolbarProps } from './card.js';
|
|
2
|
-
import 'react/jsx-runtime';
|
|
3
|
-
import '@kopexa/theme';
|
|
4
|
-
import 'react';
|
|
5
|
-
|
|
6
|
-
declare namespace namespace {
|
|
7
|
-
export { CardBody as Body, CardBodyProps as BodyProps, CardFooter as Footer, CardFooterProps as FooterProps, CardHeader as Header, CardHeaderProps as HeaderProps, CardHeading as Heading, CardHeadingProps as HeadingProps, CardRoot as Root, CardRootProps as RootProps, CardSubtitle as Subtitle, CardSubtitleProps as SubtitleProps, CardTitle as Title, CardTitleProps as TitleProps, CardToolbar as Toolbar, CardToolbarProps as ToolbarProps };
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
export { CardBody as Body, CardBodyProps as BodyProps, CardFooter as Footer, CardFooterProps as FooterProps, CardHeader as Header, CardHeaderProps as HeaderProps, CardHeading as Heading, CardHeadingProps as HeadingProps, CardRoot as Root, CardRootProps as RootProps, CardSubtitle as Subtitle, CardSubtitleProps as SubtitleProps, CardTitle as Title, CardTitleProps as TitleProps, CardToolbar as Toolbar, CardToolbarProps as ToolbarProps, namespace as n };
|
package/dist/namespace.js
DELETED
|
@@ -1,185 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
"use strict";
|
|
3
|
-
var __create = Object.create;
|
|
4
|
-
var __defProp = Object.defineProperty;
|
|
5
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
6
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
7
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
8
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
9
|
-
var __export = (target, all) => {
|
|
10
|
-
for (var name in all)
|
|
11
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
12
|
-
};
|
|
13
|
-
var __copyProps = (to, from, except, desc) => {
|
|
14
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
15
|
-
for (let key of __getOwnPropNames(from))
|
|
16
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
17
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
18
|
-
}
|
|
19
|
-
return to;
|
|
20
|
-
};
|
|
21
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
22
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
23
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
24
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
25
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
26
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
27
|
-
mod
|
|
28
|
-
));
|
|
29
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
30
|
-
|
|
31
|
-
// src/namespace.ts
|
|
32
|
-
var namespace_exports = {};
|
|
33
|
-
__export(namespace_exports, {
|
|
34
|
-
Body: () => CardBody,
|
|
35
|
-
Footer: () => CardFooter,
|
|
36
|
-
Header: () => CardHeader,
|
|
37
|
-
Heading: () => CardHeading,
|
|
38
|
-
Root: () => CardRoot,
|
|
39
|
-
Subtitle: () => CardSubtitle,
|
|
40
|
-
Title: () => CardTitle,
|
|
41
|
-
Toolbar: () => CardToolbar
|
|
42
|
-
});
|
|
43
|
-
module.exports = __toCommonJS(namespace_exports);
|
|
44
|
-
|
|
45
|
-
// src/card.tsx
|
|
46
|
-
var import_react_utils = require("@kopexa/react-utils");
|
|
47
|
-
var import_shared_utils = require("@kopexa/shared-utils");
|
|
48
|
-
var import_theme = require("@kopexa/theme");
|
|
49
|
-
var Slot = __toESM(require("@radix-ui/react-slot"));
|
|
50
|
-
var import_jsx_runtime = require("react/jsx-runtime");
|
|
51
|
-
var [Provider, useCardContext] = (0, import_react_utils.createContext)();
|
|
52
|
-
var CardRoot = (props) => {
|
|
53
|
-
const {
|
|
54
|
-
className,
|
|
55
|
-
children,
|
|
56
|
-
variant,
|
|
57
|
-
shadow,
|
|
58
|
-
radius,
|
|
59
|
-
isHoverable,
|
|
60
|
-
isPressable,
|
|
61
|
-
isBlurred,
|
|
62
|
-
fullWidth,
|
|
63
|
-
isDisabled,
|
|
64
|
-
border,
|
|
65
|
-
bleed,
|
|
66
|
-
spacing,
|
|
67
|
-
asChild,
|
|
68
|
-
...rest
|
|
69
|
-
} = props;
|
|
70
|
-
const Component = asChild ? Slot.Root : "div";
|
|
71
|
-
const styles = (0, import_theme.card)({
|
|
72
|
-
variant,
|
|
73
|
-
shadow,
|
|
74
|
-
radius,
|
|
75
|
-
isHoverable,
|
|
76
|
-
isPressable,
|
|
77
|
-
isBlurred,
|
|
78
|
-
fullWidth,
|
|
79
|
-
isDisabled,
|
|
80
|
-
border,
|
|
81
|
-
bleed,
|
|
82
|
-
spacing
|
|
83
|
-
});
|
|
84
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Provider, { value: { styles }, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
85
|
-
Component,
|
|
86
|
-
{
|
|
87
|
-
className: styles.root({ className }),
|
|
88
|
-
tabIndex: isPressable ? 0 : -1,
|
|
89
|
-
"data-disabled": (0, import_shared_utils.dataAttr)(isDisabled),
|
|
90
|
-
role: isPressable ? "button" : void 0,
|
|
91
|
-
"data-slot": "card",
|
|
92
|
-
...rest,
|
|
93
|
-
children
|
|
94
|
-
}
|
|
95
|
-
) });
|
|
96
|
-
};
|
|
97
|
-
function CardHeader(props) {
|
|
98
|
-
const { className, children, asChild, ...rest } = props;
|
|
99
|
-
const Component = asChild ? Slot.Root : "div";
|
|
100
|
-
const { styles } = useCardContext();
|
|
101
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
102
|
-
Component,
|
|
103
|
-
{
|
|
104
|
-
"data-slot": "card-header",
|
|
105
|
-
className: styles.header({ className }),
|
|
106
|
-
...rest,
|
|
107
|
-
children
|
|
108
|
-
}
|
|
109
|
-
);
|
|
110
|
-
}
|
|
111
|
-
function CardBody(props) {
|
|
112
|
-
const { className, children, asChild, ...rest } = props;
|
|
113
|
-
const Component = asChild ? Slot.Root : "div";
|
|
114
|
-
const { styles } = useCardContext();
|
|
115
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
116
|
-
Component,
|
|
117
|
-
{
|
|
118
|
-
className: styles.body({ className }),
|
|
119
|
-
"data-slot": "card-body",
|
|
120
|
-
...rest,
|
|
121
|
-
children
|
|
122
|
-
}
|
|
123
|
-
);
|
|
124
|
-
}
|
|
125
|
-
function CardFooter(props) {
|
|
126
|
-
const { className, children, asChild, ...rest } = props;
|
|
127
|
-
const Component = asChild ? Slot.Root : "div";
|
|
128
|
-
const { styles } = useCardContext();
|
|
129
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Component, { className: styles.footer({ className }), ...rest, children });
|
|
130
|
-
}
|
|
131
|
-
function CardHeading({ className, ...props }) {
|
|
132
|
-
const { styles } = useCardContext();
|
|
133
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
134
|
-
"div",
|
|
135
|
-
{
|
|
136
|
-
"data-slot": "card-heading",
|
|
137
|
-
className: (0, import_shared_utils.cn)(styles.heading(), className),
|
|
138
|
-
...props
|
|
139
|
-
}
|
|
140
|
-
);
|
|
141
|
-
}
|
|
142
|
-
function CardToolbar({ className, ...props }) {
|
|
143
|
-
const { styles } = useCardContext();
|
|
144
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
145
|
-
"div",
|
|
146
|
-
{
|
|
147
|
-
"data-slot": "card-toolbar",
|
|
148
|
-
className: (0, import_shared_utils.cn)(styles.toolbar(), className),
|
|
149
|
-
...props
|
|
150
|
-
}
|
|
151
|
-
);
|
|
152
|
-
}
|
|
153
|
-
function CardTitle({ className, ...props }) {
|
|
154
|
-
const { styles } = useCardContext();
|
|
155
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
156
|
-
"h3",
|
|
157
|
-
{
|
|
158
|
-
"data-slot": "card-title",
|
|
159
|
-
className: (0, import_shared_utils.cn)(styles.title(), className),
|
|
160
|
-
...props
|
|
161
|
-
}
|
|
162
|
-
);
|
|
163
|
-
}
|
|
164
|
-
function CardSubtitle({ className, ...props }) {
|
|
165
|
-
const { styles } = useCardContext();
|
|
166
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
167
|
-
"p",
|
|
168
|
-
{
|
|
169
|
-
"data-slot": "card-subtitle",
|
|
170
|
-
className: (0, import_shared_utils.cn)(styles.subtitle(), className),
|
|
171
|
-
...props
|
|
172
|
-
}
|
|
173
|
-
);
|
|
174
|
-
}
|
|
175
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
176
|
-
0 && (module.exports = {
|
|
177
|
-
Body,
|
|
178
|
-
Footer,
|
|
179
|
-
Header,
|
|
180
|
-
Heading,
|
|
181
|
-
Root,
|
|
182
|
-
Subtitle,
|
|
183
|
-
Title,
|
|
184
|
-
Toolbar
|
|
185
|
-
});
|
package/dist/namespace.mjs
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import "./chunk-I2M2HM2L.mjs";
|
|
3
|
-
import {
|
|
4
|
-
CardBody,
|
|
5
|
-
CardFooter,
|
|
6
|
-
CardHeader,
|
|
7
|
-
CardHeading,
|
|
8
|
-
CardRoot,
|
|
9
|
-
CardSubtitle,
|
|
10
|
-
CardTitle,
|
|
11
|
-
CardToolbar
|
|
12
|
-
} from "./chunk-BSNWXCNX.mjs";
|
|
13
|
-
export {
|
|
14
|
-
CardBody as Body,
|
|
15
|
-
CardFooter as Footer,
|
|
16
|
-
CardHeader as Header,
|
|
17
|
-
CardHeading as Heading,
|
|
18
|
-
CardRoot as Root,
|
|
19
|
-
CardSubtitle as Subtitle,
|
|
20
|
-
CardTitle as Title,
|
|
21
|
-
CardToolbar as Toolbar
|
|
22
|
-
};
|