@kopexa/card 17.0.5 → 17.1.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 +5 -1
- package/dist/card.d.ts +5 -1
- package/dist/card.js +26 -0
- package/dist/card.mjs +5 -1
- package/dist/{chunk-4TZ4CO7Q.mjs → chunk-BSNWXCNX.mjs} +25 -1
- package/dist/{chunk-BZFCKMXJ.mjs → chunk-I2M2HM2L.mjs} +5 -1
- package/dist/index.js +24 -0
- package/dist/index.mjs +2 -2
- package/dist/namespace.d.mts +3 -3
- package/dist/namespace.d.ts +3 -3
- package/dist/namespace.js +26 -0
- package/dist/namespace.mjs +6 -2
- package/package.json +4 -4
package/dist/card.d.mts
CHANGED
|
@@ -22,5 +22,9 @@ type CardHeadingProps = ComponentProps<"div">;
|
|
|
22
22
|
declare function CardHeading({ className, ...props }: CardHeadingProps): react_jsx_runtime.JSX.Element;
|
|
23
23
|
type CardToolbarProps = ComponentProps<"div">;
|
|
24
24
|
declare function CardToolbar({ className, ...props }: CardToolbarProps): react_jsx_runtime.JSX.Element;
|
|
25
|
+
type CardTitleProps = ComponentProps<"h3">;
|
|
26
|
+
declare function CardTitle({ className, ...props }: CardTitleProps): react_jsx_runtime.JSX.Element;
|
|
27
|
+
type CardSubtitleProps = ComponentProps<"p">;
|
|
28
|
+
declare function CardSubtitle({ className, ...props }: CardSubtitleProps): react_jsx_runtime.JSX.Element;
|
|
25
29
|
|
|
26
|
-
export { CardBody, type CardBodyProps, CardFooter, type CardFooterProps, CardHeader, type CardHeaderProps, CardHeading, type CardHeadingProps, CardRoot, type CardRootProps, CardToolbar, type CardToolbarProps };
|
|
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 };
|
package/dist/card.d.ts
CHANGED
|
@@ -22,5 +22,9 @@ type CardHeadingProps = ComponentProps<"div">;
|
|
|
22
22
|
declare function CardHeading({ className, ...props }: CardHeadingProps): react_jsx_runtime.JSX.Element;
|
|
23
23
|
type CardToolbarProps = ComponentProps<"div">;
|
|
24
24
|
declare function CardToolbar({ className, ...props }: CardToolbarProps): react_jsx_runtime.JSX.Element;
|
|
25
|
+
type CardTitleProps = ComponentProps<"h3">;
|
|
26
|
+
declare function CardTitle({ className, ...props }: CardTitleProps): react_jsx_runtime.JSX.Element;
|
|
27
|
+
type CardSubtitleProps = ComponentProps<"p">;
|
|
28
|
+
declare function CardSubtitle({ className, ...props }: CardSubtitleProps): react_jsx_runtime.JSX.Element;
|
|
25
29
|
|
|
26
|
-
export { CardBody, type CardBodyProps, CardFooter, type CardFooterProps, CardHeader, type CardHeaderProps, CardHeading, type CardHeadingProps, CardRoot, type CardRootProps, CardToolbar, type CardToolbarProps };
|
|
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 };
|
package/dist/card.js
CHANGED
|
@@ -37,6 +37,8 @@ __export(card_exports, {
|
|
|
37
37
|
CardHeader: () => CardHeader,
|
|
38
38
|
CardHeading: () => CardHeading,
|
|
39
39
|
CardRoot: () => CardRoot,
|
|
40
|
+
CardSubtitle: () => CardSubtitle,
|
|
41
|
+
CardTitle: () => CardTitle,
|
|
40
42
|
CardToolbar: () => CardToolbar
|
|
41
43
|
});
|
|
42
44
|
module.exports = __toCommonJS(card_exports);
|
|
@@ -147,6 +149,28 @@ function CardToolbar({ className, ...props }) {
|
|
|
147
149
|
}
|
|
148
150
|
);
|
|
149
151
|
}
|
|
152
|
+
function CardTitle({ className, ...props }) {
|
|
153
|
+
const { styles } = useCardContext();
|
|
154
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
155
|
+
"h3",
|
|
156
|
+
{
|
|
157
|
+
"data-slot": "card-title",
|
|
158
|
+
className: (0, import_shared_utils.cn)(styles.title(), className),
|
|
159
|
+
...props
|
|
160
|
+
}
|
|
161
|
+
);
|
|
162
|
+
}
|
|
163
|
+
function CardSubtitle({ className, ...props }) {
|
|
164
|
+
const { styles } = useCardContext();
|
|
165
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
166
|
+
"p",
|
|
167
|
+
{
|
|
168
|
+
"data-slot": "card-subtitle",
|
|
169
|
+
className: (0, import_shared_utils.cn)(styles.subtitle(), className),
|
|
170
|
+
...props
|
|
171
|
+
}
|
|
172
|
+
);
|
|
173
|
+
}
|
|
150
174
|
// Annotate the CommonJS export names for ESM import in node:
|
|
151
175
|
0 && (module.exports = {
|
|
152
176
|
CardBody,
|
|
@@ -154,5 +178,7 @@ function CardToolbar({ className, ...props }) {
|
|
|
154
178
|
CardHeader,
|
|
155
179
|
CardHeading,
|
|
156
180
|
CardRoot,
|
|
181
|
+
CardSubtitle,
|
|
182
|
+
CardTitle,
|
|
157
183
|
CardToolbar
|
|
158
184
|
});
|
package/dist/card.mjs
CHANGED
|
@@ -6,13 +6,17 @@ import {
|
|
|
6
6
|
CardHeader,
|
|
7
7
|
CardHeading,
|
|
8
8
|
CardRoot,
|
|
9
|
+
CardSubtitle,
|
|
10
|
+
CardTitle,
|
|
9
11
|
CardToolbar
|
|
10
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-BSNWXCNX.mjs";
|
|
11
13
|
export {
|
|
12
14
|
CardBody,
|
|
13
15
|
CardFooter,
|
|
14
16
|
CardHeader,
|
|
15
17
|
CardHeading,
|
|
16
18
|
CardRoot,
|
|
19
|
+
CardSubtitle,
|
|
20
|
+
CardTitle,
|
|
17
21
|
CardToolbar
|
|
18
22
|
};
|
|
@@ -113,6 +113,28 @@ function CardToolbar({ className, ...props }) {
|
|
|
113
113
|
}
|
|
114
114
|
);
|
|
115
115
|
}
|
|
116
|
+
function CardTitle({ className, ...props }) {
|
|
117
|
+
const { styles } = useCardContext();
|
|
118
|
+
return /* @__PURE__ */ jsx(
|
|
119
|
+
"h3",
|
|
120
|
+
{
|
|
121
|
+
"data-slot": "card-title",
|
|
122
|
+
className: cn(styles.title(), className),
|
|
123
|
+
...props
|
|
124
|
+
}
|
|
125
|
+
);
|
|
126
|
+
}
|
|
127
|
+
function CardSubtitle({ className, ...props }) {
|
|
128
|
+
const { styles } = useCardContext();
|
|
129
|
+
return /* @__PURE__ */ jsx(
|
|
130
|
+
"p",
|
|
131
|
+
{
|
|
132
|
+
"data-slot": "card-subtitle",
|
|
133
|
+
className: cn(styles.subtitle(), className),
|
|
134
|
+
...props
|
|
135
|
+
}
|
|
136
|
+
);
|
|
137
|
+
}
|
|
116
138
|
|
|
117
139
|
export {
|
|
118
140
|
__export,
|
|
@@ -121,5 +143,7 @@ export {
|
|
|
121
143
|
CardBody,
|
|
122
144
|
CardFooter,
|
|
123
145
|
CardHeading,
|
|
124
|
-
CardToolbar
|
|
146
|
+
CardToolbar,
|
|
147
|
+
CardTitle,
|
|
148
|
+
CardSubtitle
|
|
125
149
|
};
|
|
@@ -5,9 +5,11 @@ import {
|
|
|
5
5
|
CardHeader,
|
|
6
6
|
CardHeading,
|
|
7
7
|
CardRoot,
|
|
8
|
+
CardSubtitle,
|
|
9
|
+
CardTitle,
|
|
8
10
|
CardToolbar,
|
|
9
11
|
__export
|
|
10
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-BSNWXCNX.mjs";
|
|
11
13
|
|
|
12
14
|
// src/namespace.ts
|
|
13
15
|
var namespace_exports = {};
|
|
@@ -17,6 +19,8 @@ __export(namespace_exports, {
|
|
|
17
19
|
Header: () => CardHeader,
|
|
18
20
|
Heading: () => CardHeading,
|
|
19
21
|
Root: () => CardRoot,
|
|
22
|
+
Subtitle: () => CardSubtitle,
|
|
23
|
+
Title: () => CardTitle,
|
|
20
24
|
Toolbar: () => CardToolbar
|
|
21
25
|
});
|
|
22
26
|
|
package/dist/index.js
CHANGED
|
@@ -43,6 +43,8 @@ __export(namespace_exports, {
|
|
|
43
43
|
Header: () => CardHeader,
|
|
44
44
|
Heading: () => CardHeading,
|
|
45
45
|
Root: () => CardRoot,
|
|
46
|
+
Subtitle: () => CardSubtitle,
|
|
47
|
+
Title: () => CardTitle,
|
|
46
48
|
Toolbar: () => CardToolbar
|
|
47
49
|
});
|
|
48
50
|
|
|
@@ -154,6 +156,28 @@ function CardToolbar({ className, ...props }) {
|
|
|
154
156
|
}
|
|
155
157
|
);
|
|
156
158
|
}
|
|
159
|
+
function CardTitle({ className, ...props }) {
|
|
160
|
+
const { styles } = useCardContext();
|
|
161
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
162
|
+
"h3",
|
|
163
|
+
{
|
|
164
|
+
"data-slot": "card-title",
|
|
165
|
+
className: (0, import_shared_utils.cn)(styles.title(), className),
|
|
166
|
+
...props
|
|
167
|
+
}
|
|
168
|
+
);
|
|
169
|
+
}
|
|
170
|
+
function CardSubtitle({ className, ...props }) {
|
|
171
|
+
const { styles } = useCardContext();
|
|
172
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
173
|
+
"p",
|
|
174
|
+
{
|
|
175
|
+
"data-slot": "card-subtitle",
|
|
176
|
+
className: (0, import_shared_utils.cn)(styles.subtitle(), className),
|
|
177
|
+
...props
|
|
178
|
+
}
|
|
179
|
+
);
|
|
180
|
+
}
|
|
157
181
|
// Annotate the CommonJS export names for ESM import in node:
|
|
158
182
|
0 && (module.exports = {
|
|
159
183
|
Card
|
package/dist/index.mjs
CHANGED
package/dist/namespace.d.mts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { CardBody, CardBodyProps, CardFooter, CardFooterProps, CardHeader, CardHeaderProps, CardHeading, CardHeadingProps, CardRoot, CardRootProps, CardToolbar, CardToolbarProps } from './card.mjs';
|
|
1
|
+
import { CardBody, CardBodyProps, CardFooter, CardFooterProps, CardHeader, CardHeaderProps, CardHeading, CardHeadingProps, CardRoot, CardRootProps, CardSubtitle, CardSubtitleProps, CardTitle, CardTitleProps, CardToolbar, CardToolbarProps } from './card.mjs';
|
|
2
2
|
import 'react/jsx-runtime';
|
|
3
3
|
import '@kopexa/theme';
|
|
4
4
|
import 'react';
|
|
5
5
|
|
|
6
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, CardToolbar as Toolbar, CardToolbarProps as ToolbarProps };
|
|
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
8
|
}
|
|
9
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, CardToolbar as Toolbar, CardToolbarProps as ToolbarProps, namespace as n };
|
|
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
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { CardBody, CardBodyProps, CardFooter, CardFooterProps, CardHeader, CardHeaderProps, CardHeading, CardHeadingProps, CardRoot, CardRootProps, CardToolbar, CardToolbarProps } from './card.js';
|
|
1
|
+
import { CardBody, CardBodyProps, CardFooter, CardFooterProps, CardHeader, CardHeaderProps, CardHeading, CardHeadingProps, CardRoot, CardRootProps, CardSubtitle, CardSubtitleProps, CardTitle, CardTitleProps, CardToolbar, CardToolbarProps } from './card.js';
|
|
2
2
|
import 'react/jsx-runtime';
|
|
3
3
|
import '@kopexa/theme';
|
|
4
4
|
import 'react';
|
|
5
5
|
|
|
6
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, CardToolbar as Toolbar, CardToolbarProps as ToolbarProps };
|
|
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
8
|
}
|
|
9
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, CardToolbar as Toolbar, CardToolbarProps as ToolbarProps, namespace as n };
|
|
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
CHANGED
|
@@ -36,6 +36,8 @@ __export(namespace_exports, {
|
|
|
36
36
|
Header: () => CardHeader,
|
|
37
37
|
Heading: () => CardHeading,
|
|
38
38
|
Root: () => CardRoot,
|
|
39
|
+
Subtitle: () => CardSubtitle,
|
|
40
|
+
Title: () => CardTitle,
|
|
39
41
|
Toolbar: () => CardToolbar
|
|
40
42
|
});
|
|
41
43
|
module.exports = __toCommonJS(namespace_exports);
|
|
@@ -148,6 +150,28 @@ function CardToolbar({ className, ...props }) {
|
|
|
148
150
|
}
|
|
149
151
|
);
|
|
150
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
|
+
}
|
|
151
175
|
// Annotate the CommonJS export names for ESM import in node:
|
|
152
176
|
0 && (module.exports = {
|
|
153
177
|
Body,
|
|
@@ -155,5 +179,7 @@ function CardToolbar({ className, ...props }) {
|
|
|
155
179
|
Header,
|
|
156
180
|
Heading,
|
|
157
181
|
Root,
|
|
182
|
+
Subtitle,
|
|
183
|
+
Title,
|
|
158
184
|
Toolbar
|
|
159
185
|
});
|
package/dist/namespace.mjs
CHANGED
|
@@ -1,18 +1,22 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import "./chunk-
|
|
2
|
+
import "./chunk-I2M2HM2L.mjs";
|
|
3
3
|
import {
|
|
4
4
|
CardBody,
|
|
5
5
|
CardFooter,
|
|
6
6
|
CardHeader,
|
|
7
7
|
CardHeading,
|
|
8
8
|
CardRoot,
|
|
9
|
+
CardSubtitle,
|
|
10
|
+
CardTitle,
|
|
9
11
|
CardToolbar
|
|
10
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-BSNWXCNX.mjs";
|
|
11
13
|
export {
|
|
12
14
|
CardBody as Body,
|
|
13
15
|
CardFooter as Footer,
|
|
14
16
|
CardHeader as Header,
|
|
15
17
|
CardHeading as Heading,
|
|
16
18
|
CardRoot as Root,
|
|
19
|
+
CardSubtitle as Subtitle,
|
|
20
|
+
CardTitle as Title,
|
|
17
21
|
CardToolbar as Toolbar
|
|
18
22
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kopexa/card",
|
|
3
|
-
"version": "17.0
|
|
3
|
+
"version": "17.1.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.
|
|
31
|
+
"@kopexa/theme": "17.3.0"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"@radix-ui/react-slot": "^1.2.4",
|
|
35
|
-
"@kopexa/react-utils": "17.0.
|
|
36
|
-
"@kopexa/shared-utils": "17.0.
|
|
35
|
+
"@kopexa/react-utils": "17.0.7",
|
|
36
|
+
"@kopexa/shared-utils": "17.0.7"
|
|
37
37
|
},
|
|
38
38
|
"clean-package": "../../../clean-package.config.json",
|
|
39
39
|
"module": "dist/index.mjs",
|