@jamsrui/card 0.0.2
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/README.md +40 -0
- package/dist/card-5sVffXQJ.d.ts +49 -0
- package/dist/card-DnwdUhkq.d.mts +49 -0
- package/dist/card-config.d.mts +24 -0
- package/dist/card-config.d.ts +24 -0
- package/dist/card-config.js +1 -0
- package/dist/card-config.mjs +1 -0
- package/dist/card-content.d.mts +10 -0
- package/dist/card-content.d.ts +10 -0
- package/dist/card-content.js +1 -0
- package/dist/card-content.mjs +1 -0
- package/dist/card-context.d.mts +25 -0
- package/dist/card-context.d.ts +25 -0
- package/dist/card-context.js +1 -0
- package/dist/card-context.mjs +1 -0
- package/dist/card-description.d.mts +10 -0
- package/dist/card-description.d.ts +10 -0
- package/dist/card-description.js +1 -0
- package/dist/card-description.mjs +1 -0
- package/dist/card-footer.d.mts +10 -0
- package/dist/card-footer.d.ts +10 -0
- package/dist/card-footer.js +1 -0
- package/dist/card-footer.mjs +1 -0
- package/dist/card-header-content.d.mts +10 -0
- package/dist/card-header-content.d.ts +10 -0
- package/dist/card-header-content.js +1 -0
- package/dist/card-header-content.mjs +1 -0
- package/dist/card-header.d.mts +12 -0
- package/dist/card-header.d.ts +12 -0
- package/dist/card-header.js +1 -0
- package/dist/card-header.mjs +1 -0
- package/dist/card-title.d.mts +10 -0
- package/dist/card-title.d.ts +10 -0
- package/dist/card-title.js +1 -0
- package/dist/card-title.mjs +1 -0
- package/dist/card.d.mts +12 -0
- package/dist/card.d.ts +12 -0
- package/dist/card.js +1 -0
- package/dist/card.mjs +1 -0
- package/dist/chunk-45VTUQXB.mjs +1 -0
- package/dist/chunk-47BXQA6O.mjs +1 -0
- package/dist/chunk-4K62ALVP.mjs +1 -0
- package/dist/chunk-547EDOKX.js +1 -0
- package/dist/chunk-5ZOALMLU.js +1 -0
- package/dist/chunk-6WYJDAPY.mjs +1 -0
- package/dist/chunk-7R23DK24.js +1 -0
- package/dist/chunk-7WI2IDEJ.js +1 -0
- package/dist/chunk-A54L5YEX.mjs +1 -0
- package/dist/chunk-DC66E2RE.mjs +1 -0
- package/dist/chunk-FUDVPSH7.js +1 -0
- package/dist/chunk-HPZIIMR4.mjs +1 -0
- package/dist/chunk-IEIHXQD2.js +1 -0
- package/dist/chunk-KYWEZMME.js +1 -0
- package/dist/chunk-KZLHPF2A.mjs +1 -0
- package/dist/chunk-OPD6HY7H.js +1 -0
- package/dist/chunk-QVGFHM7Y.mjs +1 -0
- package/dist/chunk-R3SDYAKK.mjs +1 -0
- package/dist/chunk-RKPZHHST.js +1 -0
- package/dist/chunk-RWPPOJ4V.js +1 -0
- package/dist/chunk-WGAHLL77.mjs +1 -0
- package/dist/chunk-YSLZ66A4.js +1 -0
- package/dist/index.d.mts +14 -0
- package/dist/index.d.ts +14 -0
- package/dist/index.js +1 -0
- package/dist/index.mjs +1 -0
- package/dist/styles.d.mts +108 -0
- package/dist/styles.d.ts +108 -0
- package/dist/styles.js +1 -0
- package/dist/styles.mjs +1 -0
- package/dist/use-card.d.mts +12 -0
- package/dist/use-card.d.ts +12 -0
- package/dist/use-card.js +1 -0
- package/dist/use-card.mjs +1 -0
- package/package.json +49 -0
package/README.md
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
# 🚀 **JamsrUI**
|
|
2
|
+
|
|
3
|
+
**A comprehensive React UI component library designed for developers, with Tailwind CSS integration for seamless styling.**
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
## 📖 **Overview**
|
|
7
|
+
|
|
8
|
+
[JamsrUI](https://jamsr-ui.jamsrworld.com) is designed to help developers build modern, fast and visually appealing web applications with ease.
|
|
9
|
+
|
|
10
|
+
## 🚀 Getting Started
|
|
11
|
+
|
|
12
|
+
Boost & Build your websites using [JamsrUI](https://jamsr-ui.jamsrworld.com).
|
|
13
|
+
|
|
14
|
+
## ✨ Features
|
|
15
|
+
|
|
16
|
+
- 🚀 **Production-Ready**: Optimized for modern React projects.
|
|
17
|
+
- 🎨 **Customizable**: Easily override styles and themes.
|
|
18
|
+
- 🛠️ **Reusable Components**: Save time with prebuilt, efficient UI elements.
|
|
19
|
+
- ⚡ **Developer-Friendly**: Simple API and well-documented usage.
|
|
20
|
+
- 📦 **Lightweight**: Minimal dependencies for fast performance.
|
|
21
|
+
- 🖥️ **Modern Design**: Clean, responsive, and user-friendly components.
|
|
22
|
+
|
|
23
|
+
## 🌱 Community
|
|
24
|
+
|
|
25
|
+
We’re thrilled to see the community actively engage with **JamsrUI**! Whether you're sharing feedback, reporting bugs, requesting features, or showcasing projects built with JamsrUI, your involvement helps us grow and improve.
|
|
26
|
+
|
|
27
|
+
### How to Engage
|
|
28
|
+
|
|
29
|
+
- 💬 **Report Bugs**: [GitHub Issues](https://github.com/jamsrworld/jamsr-ui/issues)
|
|
30
|
+
- 🚀 **Request Features**: Share ideas for new components.
|
|
31
|
+
- 🤝 **Showcase Projects**: Let us know how you use JamsrUI.
|
|
32
|
+
|
|
33
|
+
## Contributing
|
|
34
|
+
|
|
35
|
+
We welcome contributions from developers of all skill levels!
|
|
36
|
+
|
|
37
|
+
## ⭐ Support the Project
|
|
38
|
+
|
|
39
|
+
If you find **JamsrUI** helpful, consider giving it a ⭐ on [GitHub](https://github.com/jamsrworld/jamsr-ui).
|
|
40
|
+
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import * as react from 'react';
|
|
2
|
+
import { Text } from '@jamsrui/text';
|
|
3
|
+
import { PropGetter, UIProps, SlotsToClassNames } from '@jamsrui/utils';
|
|
4
|
+
import { CardContent } from './card-content.js';
|
|
5
|
+
import { CardDescription } from './card-description.js';
|
|
6
|
+
import { CardFooter } from './card-footer.js';
|
|
7
|
+
import { CardHeader } from './card-header.js';
|
|
8
|
+
import { CardHeaderContent } from './card-header-content.js';
|
|
9
|
+
import { CardTitle } from './card-title.js';
|
|
10
|
+
import { CardVariants, CardSlots } from './styles.js';
|
|
11
|
+
|
|
12
|
+
declare const useCard: (props: useCard.Props) => {
|
|
13
|
+
slotProps: {
|
|
14
|
+
header?: CardHeader.Props;
|
|
15
|
+
headerContent?: CardHeader.Props;
|
|
16
|
+
title?: Text.Props;
|
|
17
|
+
description?: Text.Props;
|
|
18
|
+
content?: CardContent.Props;
|
|
19
|
+
footer?: CardFooter.Props;
|
|
20
|
+
} | undefined;
|
|
21
|
+
getRootProps: PropGetter<Card.Props>;
|
|
22
|
+
getHeaderProps: PropGetter<CardHeader.Props>;
|
|
23
|
+
getHeaderContentProps: PropGetter<CardHeaderContent.Props>;
|
|
24
|
+
getTitleProps: PropGetter<CardTitle.Props>;
|
|
25
|
+
getDescriptionProps: PropGetter<CardDescription.Props>;
|
|
26
|
+
getContentProps: PropGetter<CardContent.Props>;
|
|
27
|
+
getFooterProps: PropGetter<CardFooter.Props>;
|
|
28
|
+
};
|
|
29
|
+
declare namespace useCard {
|
|
30
|
+
interface Props extends UIProps<"div">, CardVariants {
|
|
31
|
+
classNames?: SlotsToClassNames<CardSlots>;
|
|
32
|
+
slotProps?: {
|
|
33
|
+
header?: CardHeader.Props;
|
|
34
|
+
headerContent?: CardHeader.Props;
|
|
35
|
+
title?: Text.Props;
|
|
36
|
+
description?: Text.Props;
|
|
37
|
+
content?: CardContent.Props;
|
|
38
|
+
footer?: CardFooter.Props;
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
declare const Card: (props: Card.Props) => react.JSX.Element;
|
|
44
|
+
declare namespace Card {
|
|
45
|
+
interface Props extends useCard.Props {
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export { Card as C, useCard as u };
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import * as react from 'react';
|
|
2
|
+
import { Text } from '@jamsrui/text';
|
|
3
|
+
import { PropGetter, UIProps, SlotsToClassNames } from '@jamsrui/utils';
|
|
4
|
+
import { CardContent } from './card-content.mjs';
|
|
5
|
+
import { CardDescription } from './card-description.mjs';
|
|
6
|
+
import { CardFooter } from './card-footer.mjs';
|
|
7
|
+
import { CardHeader } from './card-header.mjs';
|
|
8
|
+
import { CardHeaderContent } from './card-header-content.mjs';
|
|
9
|
+
import { CardTitle } from './card-title.mjs';
|
|
10
|
+
import { CardVariants, CardSlots } from './styles.mjs';
|
|
11
|
+
|
|
12
|
+
declare const useCard: (props: useCard.Props) => {
|
|
13
|
+
slotProps: {
|
|
14
|
+
header?: CardHeader.Props;
|
|
15
|
+
headerContent?: CardHeader.Props;
|
|
16
|
+
title?: Text.Props;
|
|
17
|
+
description?: Text.Props;
|
|
18
|
+
content?: CardContent.Props;
|
|
19
|
+
footer?: CardFooter.Props;
|
|
20
|
+
} | undefined;
|
|
21
|
+
getRootProps: PropGetter<Card.Props>;
|
|
22
|
+
getHeaderProps: PropGetter<CardHeader.Props>;
|
|
23
|
+
getHeaderContentProps: PropGetter<CardHeaderContent.Props>;
|
|
24
|
+
getTitleProps: PropGetter<CardTitle.Props>;
|
|
25
|
+
getDescriptionProps: PropGetter<CardDescription.Props>;
|
|
26
|
+
getContentProps: PropGetter<CardContent.Props>;
|
|
27
|
+
getFooterProps: PropGetter<CardFooter.Props>;
|
|
28
|
+
};
|
|
29
|
+
declare namespace useCard {
|
|
30
|
+
interface Props extends UIProps<"div">, CardVariants {
|
|
31
|
+
classNames?: SlotsToClassNames<CardSlots>;
|
|
32
|
+
slotProps?: {
|
|
33
|
+
header?: CardHeader.Props;
|
|
34
|
+
headerContent?: CardHeader.Props;
|
|
35
|
+
title?: Text.Props;
|
|
36
|
+
description?: Text.Props;
|
|
37
|
+
content?: CardContent.Props;
|
|
38
|
+
footer?: CardFooter.Props;
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
declare const Card: (props: Card.Props) => react.JSX.Element;
|
|
44
|
+
declare namespace Card {
|
|
45
|
+
interface Props extends useCard.Props {
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export { Card as C, useCard as u };
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { C as Card } from './card-DnwdUhkq.mjs';
|
|
2
|
+
import * as react from 'react';
|
|
3
|
+
import { GlobalConfigProps } from '@jamsrui/core';
|
|
4
|
+
import './card-content.mjs';
|
|
5
|
+
import './card-description.mjs';
|
|
6
|
+
import './card-footer.mjs';
|
|
7
|
+
import './card-header.mjs';
|
|
8
|
+
import './card-title.mjs';
|
|
9
|
+
import '@jamsrui/text';
|
|
10
|
+
import '@jamsrui/utils';
|
|
11
|
+
import './card-header-content.mjs';
|
|
12
|
+
import './styles.mjs';
|
|
13
|
+
import 'tailwind-variants';
|
|
14
|
+
|
|
15
|
+
declare const useCardConfig: () => CardConfig.Props;
|
|
16
|
+
declare const CardConfig: (props: CardConfig.Props & {
|
|
17
|
+
merge?: boolean;
|
|
18
|
+
}) => react.JSX.Element;
|
|
19
|
+
declare namespace CardConfig {
|
|
20
|
+
interface Props extends Card.Props, GlobalConfigProps<Card.Props> {
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export { CardConfig, useCardConfig };
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { C as Card } from './card-5sVffXQJ.js';
|
|
2
|
+
import * as react from 'react';
|
|
3
|
+
import { GlobalConfigProps } from '@jamsrui/core';
|
|
4
|
+
import './card-content.js';
|
|
5
|
+
import './card-description.js';
|
|
6
|
+
import './card-footer.js';
|
|
7
|
+
import './card-header.js';
|
|
8
|
+
import './card-title.js';
|
|
9
|
+
import '@jamsrui/text';
|
|
10
|
+
import '@jamsrui/utils';
|
|
11
|
+
import './card-header-content.js';
|
|
12
|
+
import './styles.js';
|
|
13
|
+
import 'tailwind-variants';
|
|
14
|
+
|
|
15
|
+
declare const useCardConfig: () => CardConfig.Props;
|
|
16
|
+
declare const CardConfig: (props: CardConfig.Props & {
|
|
17
|
+
merge?: boolean;
|
|
18
|
+
}) => react.JSX.Element;
|
|
19
|
+
declare namespace CardConfig {
|
|
20
|
+
interface Props extends Card.Props, GlobalConfigProps<Card.Props> {
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export { CardConfig, useCardConfig };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkOPD6HY7Hjs = require('./chunk-OPD6HY7H.js');exports.CardConfig = _chunkOPD6HY7Hjs.a; exports.useCardConfig = _chunkOPD6HY7Hjs.b;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a,b}from"./chunk-HPZIIMR4.mjs";export{a as CardConfig,b as useCardConfig};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as react from 'react';
|
|
2
|
+
import { UIProps } from '@jamsrui/utils';
|
|
3
|
+
|
|
4
|
+
declare const CardContent: (props: CardContent.Props) => react.ReactElement<unknown, string | react.JSXElementConstructor<any>>;
|
|
5
|
+
declare namespace CardContent {
|
|
6
|
+
interface Props extends UIProps<"div"> {
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export { CardContent };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as react from 'react';
|
|
2
|
+
import { UIProps } from '@jamsrui/utils';
|
|
3
|
+
|
|
4
|
+
declare const CardContent: (props: CardContent.Props) => react.ReactElement<unknown, string | react.JSXElementConstructor<any>>;
|
|
5
|
+
declare namespace CardContent {
|
|
6
|
+
interface Props extends UIProps<"div"> {
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export { CardContent };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunk547EDOKXjs = require('./chunk-547EDOKX.js');require('./chunk-RWPPOJ4V.js');exports.CardContent = _chunk547EDOKXjs.a;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a}from"./chunk-DC66E2RE.mjs";import"./chunk-47BXQA6O.mjs";export{a as CardContent};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import * as react from 'react';
|
|
2
|
+
import { u as useCard } from './card-DnwdUhkq.mjs';
|
|
3
|
+
import '@jamsrui/text';
|
|
4
|
+
import '@jamsrui/utils';
|
|
5
|
+
import './card-content.mjs';
|
|
6
|
+
import './card-description.mjs';
|
|
7
|
+
import './card-footer.mjs';
|
|
8
|
+
import './card-header.mjs';
|
|
9
|
+
import './card-header-content.mjs';
|
|
10
|
+
import './card-title.mjs';
|
|
11
|
+
import './styles.mjs';
|
|
12
|
+
import 'tailwind-variants';
|
|
13
|
+
|
|
14
|
+
declare const CardContextProvider: (props: CardContext.Props) => react.JSX.Element;
|
|
15
|
+
declare const useCardContext: () => CardContext.Type;
|
|
16
|
+
declare namespace CardContext {
|
|
17
|
+
interface Type extends ReturnType<typeof useCard> {
|
|
18
|
+
}
|
|
19
|
+
interface Props {
|
|
20
|
+
ctx: Type;
|
|
21
|
+
children: React.ReactNode;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export { CardContext, CardContextProvider, useCardContext };
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import * as react from 'react';
|
|
2
|
+
import { u as useCard } from './card-5sVffXQJ.js';
|
|
3
|
+
import '@jamsrui/text';
|
|
4
|
+
import '@jamsrui/utils';
|
|
5
|
+
import './card-content.js';
|
|
6
|
+
import './card-description.js';
|
|
7
|
+
import './card-footer.js';
|
|
8
|
+
import './card-header.js';
|
|
9
|
+
import './card-header-content.js';
|
|
10
|
+
import './card-title.js';
|
|
11
|
+
import './styles.js';
|
|
12
|
+
import 'tailwind-variants';
|
|
13
|
+
|
|
14
|
+
declare const CardContextProvider: (props: CardContext.Props) => react.JSX.Element;
|
|
15
|
+
declare const useCardContext: () => CardContext.Type;
|
|
16
|
+
declare namespace CardContext {
|
|
17
|
+
interface Type extends ReturnType<typeof useCard> {
|
|
18
|
+
}
|
|
19
|
+
interface Props {
|
|
20
|
+
ctx: Type;
|
|
21
|
+
children: React.ReactNode;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export { CardContext, CardContextProvider, useCardContext };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkRWPPOJ4Vjs = require('./chunk-RWPPOJ4V.js');exports.CardContextProvider = _chunkRWPPOJ4Vjs.a; exports.useCardContext = _chunkRWPPOJ4Vjs.b;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a,b}from"./chunk-47BXQA6O.mjs";export{a as CardContextProvider,b as useCardContext};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as react from 'react';
|
|
2
|
+
import { Text } from '@jamsrui/text';
|
|
3
|
+
|
|
4
|
+
declare const CardDescription: (props: CardDescription.Props) => react.JSX.Element;
|
|
5
|
+
declare namespace CardDescription {
|
|
6
|
+
interface Props extends Text.Props {
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export { CardDescription };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as react from 'react';
|
|
2
|
+
import { Text } from '@jamsrui/text';
|
|
3
|
+
|
|
4
|
+
declare const CardDescription: (props: CardDescription.Props) => react.JSX.Element;
|
|
5
|
+
declare namespace CardDescription {
|
|
6
|
+
interface Props extends Text.Props {
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export { CardDescription };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkYSLZ66A4js = require('./chunk-YSLZ66A4.js');require('./chunk-RWPPOJ4V.js');exports.CardDescription = _chunkYSLZ66A4js.a;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a}from"./chunk-6WYJDAPY.mjs";import"./chunk-47BXQA6O.mjs";export{a as CardDescription};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as react from 'react';
|
|
2
|
+
import { UIProps } from '@jamsrui/utils';
|
|
3
|
+
|
|
4
|
+
declare const CardFooter: (props: CardFooter.Props) => react.ReactElement<unknown, string | react.JSXElementConstructor<any>>;
|
|
5
|
+
declare namespace CardFooter {
|
|
6
|
+
interface Props extends UIProps<"div"> {
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export { CardFooter };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as react from 'react';
|
|
2
|
+
import { UIProps } from '@jamsrui/utils';
|
|
3
|
+
|
|
4
|
+
declare const CardFooter: (props: CardFooter.Props) => react.ReactElement<unknown, string | react.JSXElementConstructor<any>>;
|
|
5
|
+
declare namespace CardFooter {
|
|
6
|
+
interface Props extends UIProps<"div"> {
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export { CardFooter };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkKYWEZMMEjs = require('./chunk-KYWEZMME.js');require('./chunk-RWPPOJ4V.js');exports.CardFooter = _chunkKYWEZMMEjs.a;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a}from"./chunk-WGAHLL77.mjs";import"./chunk-47BXQA6O.mjs";export{a as CardFooter};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as react from 'react';
|
|
2
|
+
import { UIProps } from '@jamsrui/utils';
|
|
3
|
+
|
|
4
|
+
declare const CardHeaderContent: (props: CardHeaderContent.Props) => react.ReactElement<unknown, string | react.JSXElementConstructor<any>>;
|
|
5
|
+
declare namespace CardHeaderContent {
|
|
6
|
+
interface Props extends UIProps<"div"> {
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export { CardHeaderContent };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as react from 'react';
|
|
2
|
+
import { UIProps } from '@jamsrui/utils';
|
|
3
|
+
|
|
4
|
+
declare const CardHeaderContent: (props: CardHeaderContent.Props) => react.ReactElement<unknown, string | react.JSXElementConstructor<any>>;
|
|
5
|
+
declare namespace CardHeaderContent {
|
|
6
|
+
interface Props extends UIProps<"div"> {
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export { CardHeaderContent };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunk7WI2IDEJjs = require('./chunk-7WI2IDEJ.js');require('./chunk-RWPPOJ4V.js');exports.CardHeaderContent = _chunk7WI2IDEJjs.a;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a}from"./chunk-A54L5YEX.mjs";import"./chunk-47BXQA6O.mjs";export{a as CardHeaderContent};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as react from 'react';
|
|
2
|
+
import { UIProps } from '@jamsrui/utils';
|
|
3
|
+
|
|
4
|
+
declare const CardHeader: (props: CardHeader.Props) => react.ReactElement<unknown, string | react.JSXElementConstructor<any>>;
|
|
5
|
+
declare namespace CardHeader {
|
|
6
|
+
interface Props extends UIProps<"div"> {
|
|
7
|
+
startContent?: React.ReactNode;
|
|
8
|
+
endContent?: React.ReactNode;
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export { CardHeader };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as react from 'react';
|
|
2
|
+
import { UIProps } from '@jamsrui/utils';
|
|
3
|
+
|
|
4
|
+
declare const CardHeader: (props: CardHeader.Props) => react.ReactElement<unknown, string | react.JSXElementConstructor<any>>;
|
|
5
|
+
declare namespace CardHeader {
|
|
6
|
+
interface Props extends UIProps<"div"> {
|
|
7
|
+
startContent?: React.ReactNode;
|
|
8
|
+
endContent?: React.ReactNode;
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export { CardHeader };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkIEIHXQD2js = require('./chunk-IEIHXQD2.js');require('./chunk-7WI2IDEJ.js');require('./chunk-RWPPOJ4V.js');exports.CardHeader = _chunkIEIHXQD2js.a;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a}from"./chunk-KZLHPF2A.mjs";import"./chunk-A54L5YEX.mjs";import"./chunk-47BXQA6O.mjs";export{a as CardHeader};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkFUDVPSH7js = require('./chunk-FUDVPSH7.js');require('./chunk-RWPPOJ4V.js');exports.CardTitle = _chunkFUDVPSH7js.a;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a}from"./chunk-45VTUQXB.mjs";import"./chunk-47BXQA6O.mjs";export{a as CardTitle};
|
package/dist/card.d.mts
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import 'react';
|
|
2
|
+
export { C as Card } from './card-DnwdUhkq.mjs';
|
|
3
|
+
import '@jamsrui/text';
|
|
4
|
+
import '@jamsrui/utils';
|
|
5
|
+
import './card-content.mjs';
|
|
6
|
+
import './card-description.mjs';
|
|
7
|
+
import './card-footer.mjs';
|
|
8
|
+
import './card-header.mjs';
|
|
9
|
+
import './card-header-content.mjs';
|
|
10
|
+
import './card-title.mjs';
|
|
11
|
+
import './styles.mjs';
|
|
12
|
+
import 'tailwind-variants';
|
package/dist/card.d.ts
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import 'react';
|
|
2
|
+
export { C as Card } from './card-5sVffXQJ.js';
|
|
3
|
+
import '@jamsrui/text';
|
|
4
|
+
import '@jamsrui/utils';
|
|
5
|
+
import './card-content.js';
|
|
6
|
+
import './card-description.js';
|
|
7
|
+
import './card-footer.js';
|
|
8
|
+
import './card-header.js';
|
|
9
|
+
import './card-header-content.js';
|
|
10
|
+
import './card-title.js';
|
|
11
|
+
import './styles.js';
|
|
12
|
+
import 'tailwind-variants';
|
package/dist/card.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunk7R23DK24js = require('./chunk-7R23DK24.js');require('./chunk-RKPZHHST.js');require('./chunk-5ZOALMLU.js');require('./chunk-OPD6HY7H.js');require('./chunk-RWPPOJ4V.js');exports.Card = _chunk7R23DK24js.a;
|
package/dist/card.mjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a}from"./chunk-QVGFHM7Y.mjs";import"./chunk-4K62ALVP.mjs";import"./chunk-R3SDYAKK.mjs";import"./chunk-HPZIIMR4.mjs";import"./chunk-47BXQA6O.mjs";export{a as Card};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{b as e}from"./chunk-47BXQA6O.mjs";import{Text as n}from"@jamsrui/text";import{mergeProps as i}from"@jamsrui/utils";var a=r=>{let{getTitleProps:t,slotProps:o}=e(),{children:p,...s}=i(o?.title??{},r);return React.createElement(n,{render:React.createElement("h3",null),...t(s)},p)};export{a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{createContext as n,use as a}from"react";var t=n(null),d=e=>{let{children:r,ctx:o}=e;return React.createElement(t,{value:o},r)},x=()=>{let e=a(t);if(!e)throw new Error("useCardContext must be used within a CardProvider");return e};export{d as a,x as b};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{b as s}from"./chunk-R3SDYAKK.mjs";import{useCallback as r}from"react";import{cn as h,dataAttrDev as a,mapPropsVariants as u}from"@jamsrui/utils";var T=n=>{let[p,c]=u(n,s.variantKeys),e=s(c),{classNames:d,slotProps:m,...o}=p,l=r(()=>({"data-slot":a("root"),...o,className:e.root({className:h(d?.root,o.className)})}),[o,d?.root,e]),i=r(t=>({"data-slot":a("header"),...t,className:e.header({className:t.className})}),[e]),C=r(t=>({"data-slot":a("title"),...t,className:e.title({className:t.className}),variant:"h5"}),[e]),P=r(t=>({"data-slot":a("description"),variant:"caption",...t,className:e.description({className:t.className})}),[e]),N=r(t=>({"data-slot":a("header-content"),...t,className:e.headerContent({className:t.className})}),[e]),f=r(t=>({"data-slot":a("content"),...t,className:e.content({className:t.className})}),[e]),y=r(t=>({"data-slot":a("footer"),...t,className:e.footer({className:t.className})}),[e]);return{slotProps:m,getRootProps:l,getHeaderProps:i,getHeaderContentProps:N,getTitleProps:C,getDescriptionProps:P,getContentProps:f,getFooterProps:y}};export{T as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }var _chunkRWPPOJ4Vjs = require('./chunk-RWPPOJ4V.js');var _hooks = require('@jamsrui/hooks');var _utils = require('@jamsrui/utils');var a=r=>{let{getContentProps:t,slotProps:o}=_chunkRWPPOJ4Vjs.b.call(void 0, ),n=_utils.mergeProps.call(void 0, _nullishCoalesce(_optionalChain([o, 'optionalAccess', _ => _.content]), () => ({})),r);return _hooks.useRenderElement.call(void 0, "div",{props:t(n)})};exports.a = a;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _utils = require('@jamsrui/utils');var o="",a= exports.b =_utils.tv.call(void 0, {slots:{root:"relative flex flex-col overflow-hidden transition-colo",header:"relative flex items-center gap-2 px-4 pt-4",headerContent:"flex flex-col grow gap-1",title:"font-medium",description:"text-foreground-secondary",footer:"flex justify-end gap-2 px-4 pb-4",content:"h-full p-4"},variants:{bg:{default:{root:"bg-surface"},secondary:{root:"bg-surface"}},isBordered:{true:"border border-divider-dark"},isElevated:{true:"shadow-sm"},radius:_utils.radiusVariant.call(void 0, "root")},defaultVariants:{bg:"default",variant:"solid",radius:"md"}});exports.a = o; exports.b = a;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{b as e}from"./chunk-47BXQA6O.mjs";import{Text as n}from"@jamsrui/text";var c=r=>{let{children:t,...o}=r,{getDescriptionProps:p}=e();return React.createElement(n,{render:React.createElement("p",null),...p(o)},t)};export{c as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkRKPZHHSTjs = require('./chunk-RKPZHHST.js');var _chunkOPD6HY7Hjs = require('./chunk-OPD6HY7H.js');var _chunkRWPPOJ4Vjs = require('./chunk-RWPPOJ4V.js');var _hooks = require('@jamsrui/hooks');var _utils = require('@jamsrui/utils');var P=s=>{let r=_chunkOPD6HY7Hjs.b.call(void 0, ),p=_utils.mergeConfigProps.call(void 0, r,r,s),o=_chunkRKPZHHSTjs.a.call(void 0, p),d=_hooks.useRenderElement.call(void 0, "div",{props:o.getRootProps({})});return React.createElement(_chunkRWPPOJ4Vjs.a,{ctx:o},d)};exports.a = P;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }var _chunkRWPPOJ4Vjs = require('./chunk-RWPPOJ4V.js');var _hooks = require('@jamsrui/hooks');var _utils = require('@jamsrui/utils');var i=r=>{let{getHeaderContentProps:t,slotProps:o}=_chunkRWPPOJ4Vjs.b.call(void 0, ),n=_utils.mergeProps.call(void 0, _nullishCoalesce(_optionalChain([o, 'optionalAccess', _ => _.headerContent]), () => ({})),r);return _hooks.useRenderElement.call(void 0, "div",{props:t(n)})};exports.a = i;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{b as e}from"./chunk-47BXQA6O.mjs";import{useRenderElement as s}from"@jamsrui/hooks";import{mergeProps as p}from"@jamsrui/utils";var i=r=>{let{getHeaderContentProps:t,slotProps:o}=e(),n=p(o?.headerContent??{},r);return s("div",{props:t(n)})};export{i as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{b as e}from"./chunk-47BXQA6O.mjs";import{useRenderElement as s}from"@jamsrui/hooks";import{mergeProps as p}from"@jamsrui/utils";var a=r=>{let{getContentProps:t,slotProps:o}=e(),n=p(o?.content??{},r);return s("div",{props:t(n)})};export{a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }var _chunkRWPPOJ4Vjs = require('./chunk-RWPPOJ4V.js');var _text = require('@jamsrui/text');var _utils = require('@jamsrui/utils');var a=r=>{let{getTitleProps:t,slotProps:o}=_chunkRWPPOJ4Vjs.b.call(void 0, ),{children:p,...s}=_utils.mergeProps.call(void 0, _nullishCoalesce(_optionalChain([o, 'optionalAccess', _ => _.title]), () => ({})),r);return React.createElement(_text.Text,{render:React.createElement("h3",null),...t(s)},p)};exports.a = a;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{createConfigContext as o}from"@jamsrui/utils";var[a,e]=o({displayName:"CardConfigContext"});export{a,e as b};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }var _chunk7WI2IDEJjs = require('./chunk-7WI2IDEJ.js');var _chunkRWPPOJ4Vjs = require('./chunk-RWPPOJ4V.js');var _hooks = require('@jamsrui/hooks');var _utils = require('@jamsrui/utils');var u=t=>{let{getHeaderProps:o,slotProps:n}=_chunkRWPPOJ4Vjs.b.call(void 0, ),{startContent:d,endContent:s,children:a,...p}=_utils.mergeProps.call(void 0, _nullishCoalesce(_optionalChain([n, 'optionalAccess', _ => _.header]), () => ({})),t),m=React.createElement(React.Fragment,null,d,React.createElement(_chunk7WI2IDEJjs.a,null,a),s);return _hooks.useRenderElement.call(void 0, "div",{props:[o(p),{children:m}]})};exports.a = u;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }var _chunkRWPPOJ4Vjs = require('./chunk-RWPPOJ4V.js');var _hooks = require('@jamsrui/hooks');var _utils = require('@jamsrui/utils');var P=e=>{let{getFooterProps:o,slotProps:t}=_chunkRWPPOJ4Vjs.b.call(void 0, ),s=_utils.mergeProps.call(void 0, _nullishCoalesce(_optionalChain([t, 'optionalAccess', _ => _.footer]), () => ({})),e);return _hooks.useRenderElement.call(void 0, "div",{props:o(s)})};exports.a = P;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as r}from"./chunk-A54L5YEX.mjs";import{b as e}from"./chunk-47BXQA6O.mjs";import{useRenderElement as c}from"@jamsrui/hooks";import{mergeProps as C}from"@jamsrui/utils";var u=t=>{let{getHeaderProps:o,slotProps:n}=e(),{startContent:d,endContent:s,children:a,...p}=C(n?.header??{},t),m=React.createElement(React.Fragment,null,d,React.createElement(r,null,a),s);return c("div",{props:[o(p),{children:m}]})};export{u as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _utils = require('@jamsrui/utils');var[a,e]=_utils.createConfigContext.call(void 0, {displayName:"CardConfigContext"});exports.a = a; exports.b = e;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as n}from"./chunk-4K62ALVP.mjs";import{b as e}from"./chunk-HPZIIMR4.mjs";import{a as t}from"./chunk-47BXQA6O.mjs";import{useRenderElement as m}from"@jamsrui/hooks";import{mergeConfigProps as i}from"@jamsrui/utils";var P=s=>{let r=e(),p=i(r,r,s),o=n(p),d=m("div",{props:o.getRootProps({})});return React.createElement(t,{ctx:o},d)};export{P as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{radiusVariant as r,tv as t}from"@jamsrui/utils";var o="",a=t({slots:{root:"relative flex flex-col overflow-hidden transition-colo",header:"relative flex items-center gap-2 px-4 pt-4",headerContent:"flex flex-col grow gap-1",title:"font-medium",description:"text-foreground-secondary",footer:"flex justify-end gap-2 px-4 pb-4",content:"h-full p-4"},variants:{bg:{default:{root:"bg-surface"},secondary:{root:"bg-surface"}},isBordered:{true:"border border-divider-dark"},isElevated:{true:"shadow-sm"},radius:r("root")},defaultVariants:{bg:"default",variant:"solid",radius:"md"}});export{o as a,a as b};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }var _chunk5ZOALMLUjs = require('./chunk-5ZOALMLU.js');var _react = require('react');var _utils = require('@jamsrui/utils');var T=n=>{let[p,c]=_utils.mapPropsVariants.call(void 0, n,_chunk5ZOALMLUjs.b.variantKeys),e=_chunk5ZOALMLUjs.b.call(void 0, c),{classNames:d,slotProps:m,...o}=p,l=_react.useCallback.call(void 0, ()=>({"data-slot":_utils.dataAttrDev.call(void 0, "root"),...o,className:e.root({className:_utils.cn.call(void 0, _optionalChain([d, 'optionalAccess', _ => _.root]),o.className)})}),[o,_optionalChain([d, 'optionalAccess', _2 => _2.root]),e]),i=_react.useCallback.call(void 0, t=>({"data-slot":_utils.dataAttrDev.call(void 0, "header"),...t,className:e.header({className:t.className})}),[e]),C=_react.useCallback.call(void 0, t=>({"data-slot":_utils.dataAttrDev.call(void 0, "title"),...t,className:e.title({className:t.className}),variant:"h5"}),[e]),P=_react.useCallback.call(void 0, t=>({"data-slot":_utils.dataAttrDev.call(void 0, "description"),variant:"caption",...t,className:e.description({className:t.className})}),[e]),N=_react.useCallback.call(void 0, t=>({"data-slot":_utils.dataAttrDev.call(void 0, "header-content"),...t,className:e.headerContent({className:t.className})}),[e]),f=_react.useCallback.call(void 0, t=>({"data-slot":_utils.dataAttrDev.call(void 0, "content"),...t,className:e.content({className:t.className})}),[e]),y=_react.useCallback.call(void 0, t=>({"data-slot":_utils.dataAttrDev.call(void 0, "footer"),...t,className:e.footer({className:t.className})}),[e]);return{slotProps:m,getRootProps:l,getHeaderProps:i,getHeaderContentProps:N,getTitleProps:C,getDescriptionProps:P,getContentProps:f,getFooterProps:y}};exports.a = T;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _react = require('react');var t=_react.createContext.call(void 0, null),d= exports.a =e=>{let{children:r,ctx:o}=e;return React.createElement(t,{value:o},r)},x= exports.b =()=>{let e=_react.use.call(void 0, t);if(!e)throw new Error("useCardContext must be used within a CardProvider");return e};exports.a = d; exports.b = x;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{b as r}from"./chunk-47BXQA6O.mjs";import{useRenderElement as p}from"@jamsrui/hooks";import{mergeProps as m}from"@jamsrui/utils";var P=e=>{let{getFooterProps:o,slotProps:t}=r(),s=m(t?.footer??{},e);return p("div",{props:o(s)})};export{P as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkRWPPOJ4Vjs = require('./chunk-RWPPOJ4V.js');var _text = require('@jamsrui/text');var c=r=>{let{children:t,...o}=r,{getDescriptionProps:p}=_chunkRWPPOJ4Vjs.b.call(void 0, );return React.createElement(_text.Text,{render:React.createElement("p",null),...p(o)},t)};exports.a = c;
|
package/dist/index.d.mts
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export { C as Card } from './card-DnwdUhkq.mjs';
|
|
2
|
+
export { CardConfig, useCardConfig } from './card-config.mjs';
|
|
3
|
+
export { CardContent } from './card-content.mjs';
|
|
4
|
+
export { CardDescription } from './card-description.mjs';
|
|
5
|
+
export { CardFooter } from './card-footer.mjs';
|
|
6
|
+
export { CardHeader } from './card-header.mjs';
|
|
7
|
+
export { CardTitle } from './card-title.mjs';
|
|
8
|
+
import 'react';
|
|
9
|
+
import '@jamsrui/text';
|
|
10
|
+
import '@jamsrui/utils';
|
|
11
|
+
import './card-header-content.mjs';
|
|
12
|
+
import './styles.mjs';
|
|
13
|
+
import 'tailwind-variants';
|
|
14
|
+
import '@jamsrui/core';
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export { C as Card } from './card-5sVffXQJ.js';
|
|
2
|
+
export { CardConfig, useCardConfig } from './card-config.js';
|
|
3
|
+
export { CardContent } from './card-content.js';
|
|
4
|
+
export { CardDescription } from './card-description.js';
|
|
5
|
+
export { CardFooter } from './card-footer.js';
|
|
6
|
+
export { CardHeader } from './card-header.js';
|
|
7
|
+
export { CardTitle } from './card-title.js';
|
|
8
|
+
import 'react';
|
|
9
|
+
import '@jamsrui/text';
|
|
10
|
+
import '@jamsrui/utils';
|
|
11
|
+
import './card-header-content.js';
|
|
12
|
+
import './styles.js';
|
|
13
|
+
import 'tailwind-variants';
|
|
14
|
+
import '@jamsrui/core';
|
package/dist/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client";var _chunk7R23DK24js = require('./chunk-7R23DK24.js');require('./chunk-RKPZHHST.js');require('./chunk-5ZOALMLU.js');var _chunkOPD6HY7Hjs = require('./chunk-OPD6HY7H.js');var _chunk547EDOKXjs = require('./chunk-547EDOKX.js');var _chunkYSLZ66A4js = require('./chunk-YSLZ66A4.js');var _chunkKYWEZMMEjs = require('./chunk-KYWEZMME.js');var _chunkIEIHXQD2js = require('./chunk-IEIHXQD2.js');require('./chunk-7WI2IDEJ.js');var _chunkFUDVPSH7js = require('./chunk-FUDVPSH7.js');require('./chunk-RWPPOJ4V.js');exports.Card = _chunk7R23DK24js.a; exports.CardConfig = _chunkOPD6HY7Hjs.a; exports.CardContent = _chunk547EDOKXjs.a; exports.CardDescription = _chunkYSLZ66A4js.a; exports.CardFooter = _chunkKYWEZMMEjs.a; exports.CardHeader = _chunkIEIHXQD2js.a; exports.CardTitle = _chunkFUDVPSH7js.a; exports.useCardConfig = _chunkOPD6HY7Hjs.b;
|
package/dist/index.mjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";import{a as f}from"./chunk-QVGFHM7Y.mjs";import"./chunk-4K62ALVP.mjs";import"./chunk-R3SDYAKK.mjs";import{a as r,b as o}from"./chunk-HPZIIMR4.mjs";import{a as e}from"./chunk-DC66E2RE.mjs";import{a as t}from"./chunk-6WYJDAPY.mjs";import{a as C}from"./chunk-WGAHLL77.mjs";import{a}from"./chunk-KZLHPF2A.mjs";import"./chunk-A54L5YEX.mjs";import{a as d}from"./chunk-45VTUQXB.mjs";import"./chunk-47BXQA6O.mjs";export{f as Card,r as CardConfig,e as CardContent,t as CardDescription,C as CardFooter,a as CardHeader,d as CardTitle,o as useCardConfig};
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
import * as tailwind_variants from 'tailwind-variants';
|
|
2
|
+
import { VariantProps } from '@jamsrui/utils';
|
|
3
|
+
|
|
4
|
+
declare const test = "";
|
|
5
|
+
declare const cardVariants: tailwind_variants.TVReturnType<{
|
|
6
|
+
bg: {
|
|
7
|
+
default: {
|
|
8
|
+
root: string;
|
|
9
|
+
};
|
|
10
|
+
secondary: {
|
|
11
|
+
root: string;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
isBordered: {
|
|
15
|
+
true: string;
|
|
16
|
+
};
|
|
17
|
+
isElevated: {
|
|
18
|
+
true: string;
|
|
19
|
+
};
|
|
20
|
+
radius: {
|
|
21
|
+
sm: {};
|
|
22
|
+
md: {};
|
|
23
|
+
lg: {};
|
|
24
|
+
xl: {};
|
|
25
|
+
"2xl": {};
|
|
26
|
+
"3xl": {};
|
|
27
|
+
full: {};
|
|
28
|
+
none: {};
|
|
29
|
+
};
|
|
30
|
+
}, {
|
|
31
|
+
root: string;
|
|
32
|
+
header: string;
|
|
33
|
+
headerContent: string;
|
|
34
|
+
title: string;
|
|
35
|
+
description: string;
|
|
36
|
+
footer: string;
|
|
37
|
+
content: string;
|
|
38
|
+
}, undefined, {
|
|
39
|
+
bg: {
|
|
40
|
+
default: {
|
|
41
|
+
root: string;
|
|
42
|
+
};
|
|
43
|
+
secondary: {
|
|
44
|
+
root: string;
|
|
45
|
+
};
|
|
46
|
+
};
|
|
47
|
+
isBordered: {
|
|
48
|
+
true: string;
|
|
49
|
+
};
|
|
50
|
+
isElevated: {
|
|
51
|
+
true: string;
|
|
52
|
+
};
|
|
53
|
+
radius: {
|
|
54
|
+
sm: {};
|
|
55
|
+
md: {};
|
|
56
|
+
lg: {};
|
|
57
|
+
xl: {};
|
|
58
|
+
"2xl": {};
|
|
59
|
+
"3xl": {};
|
|
60
|
+
full: {};
|
|
61
|
+
none: {};
|
|
62
|
+
};
|
|
63
|
+
}, {
|
|
64
|
+
root: string;
|
|
65
|
+
header: string;
|
|
66
|
+
headerContent: string;
|
|
67
|
+
title: string;
|
|
68
|
+
description: string;
|
|
69
|
+
footer: string;
|
|
70
|
+
content: string;
|
|
71
|
+
}, tailwind_variants.TVReturnType<{
|
|
72
|
+
bg: {
|
|
73
|
+
default: {
|
|
74
|
+
root: string;
|
|
75
|
+
};
|
|
76
|
+
secondary: {
|
|
77
|
+
root: string;
|
|
78
|
+
};
|
|
79
|
+
};
|
|
80
|
+
isBordered: {
|
|
81
|
+
true: string;
|
|
82
|
+
};
|
|
83
|
+
isElevated: {
|
|
84
|
+
true: string;
|
|
85
|
+
};
|
|
86
|
+
radius: {
|
|
87
|
+
sm: {};
|
|
88
|
+
md: {};
|
|
89
|
+
lg: {};
|
|
90
|
+
xl: {};
|
|
91
|
+
"2xl": {};
|
|
92
|
+
"3xl": {};
|
|
93
|
+
full: {};
|
|
94
|
+
none: {};
|
|
95
|
+
};
|
|
96
|
+
}, {
|
|
97
|
+
root: string;
|
|
98
|
+
header: string;
|
|
99
|
+
headerContent: string;
|
|
100
|
+
title: string;
|
|
101
|
+
description: string;
|
|
102
|
+
footer: string;
|
|
103
|
+
content: string;
|
|
104
|
+
}, undefined, unknown, unknown, undefined>>;
|
|
105
|
+
type CardVariants = VariantProps<typeof cardVariants>;
|
|
106
|
+
type CardSlots = keyof ReturnType<typeof cardVariants>;
|
|
107
|
+
|
|
108
|
+
export { type CardSlots, type CardVariants, cardVariants, test };
|
package/dist/styles.d.ts
ADDED
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
import * as tailwind_variants from 'tailwind-variants';
|
|
2
|
+
import { VariantProps } from '@jamsrui/utils';
|
|
3
|
+
|
|
4
|
+
declare const test = "";
|
|
5
|
+
declare const cardVariants: tailwind_variants.TVReturnType<{
|
|
6
|
+
bg: {
|
|
7
|
+
default: {
|
|
8
|
+
root: string;
|
|
9
|
+
};
|
|
10
|
+
secondary: {
|
|
11
|
+
root: string;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
isBordered: {
|
|
15
|
+
true: string;
|
|
16
|
+
};
|
|
17
|
+
isElevated: {
|
|
18
|
+
true: string;
|
|
19
|
+
};
|
|
20
|
+
radius: {
|
|
21
|
+
sm: {};
|
|
22
|
+
md: {};
|
|
23
|
+
lg: {};
|
|
24
|
+
xl: {};
|
|
25
|
+
"2xl": {};
|
|
26
|
+
"3xl": {};
|
|
27
|
+
full: {};
|
|
28
|
+
none: {};
|
|
29
|
+
};
|
|
30
|
+
}, {
|
|
31
|
+
root: string;
|
|
32
|
+
header: string;
|
|
33
|
+
headerContent: string;
|
|
34
|
+
title: string;
|
|
35
|
+
description: string;
|
|
36
|
+
footer: string;
|
|
37
|
+
content: string;
|
|
38
|
+
}, undefined, {
|
|
39
|
+
bg: {
|
|
40
|
+
default: {
|
|
41
|
+
root: string;
|
|
42
|
+
};
|
|
43
|
+
secondary: {
|
|
44
|
+
root: string;
|
|
45
|
+
};
|
|
46
|
+
};
|
|
47
|
+
isBordered: {
|
|
48
|
+
true: string;
|
|
49
|
+
};
|
|
50
|
+
isElevated: {
|
|
51
|
+
true: string;
|
|
52
|
+
};
|
|
53
|
+
radius: {
|
|
54
|
+
sm: {};
|
|
55
|
+
md: {};
|
|
56
|
+
lg: {};
|
|
57
|
+
xl: {};
|
|
58
|
+
"2xl": {};
|
|
59
|
+
"3xl": {};
|
|
60
|
+
full: {};
|
|
61
|
+
none: {};
|
|
62
|
+
};
|
|
63
|
+
}, {
|
|
64
|
+
root: string;
|
|
65
|
+
header: string;
|
|
66
|
+
headerContent: string;
|
|
67
|
+
title: string;
|
|
68
|
+
description: string;
|
|
69
|
+
footer: string;
|
|
70
|
+
content: string;
|
|
71
|
+
}, tailwind_variants.TVReturnType<{
|
|
72
|
+
bg: {
|
|
73
|
+
default: {
|
|
74
|
+
root: string;
|
|
75
|
+
};
|
|
76
|
+
secondary: {
|
|
77
|
+
root: string;
|
|
78
|
+
};
|
|
79
|
+
};
|
|
80
|
+
isBordered: {
|
|
81
|
+
true: string;
|
|
82
|
+
};
|
|
83
|
+
isElevated: {
|
|
84
|
+
true: string;
|
|
85
|
+
};
|
|
86
|
+
radius: {
|
|
87
|
+
sm: {};
|
|
88
|
+
md: {};
|
|
89
|
+
lg: {};
|
|
90
|
+
xl: {};
|
|
91
|
+
"2xl": {};
|
|
92
|
+
"3xl": {};
|
|
93
|
+
full: {};
|
|
94
|
+
none: {};
|
|
95
|
+
};
|
|
96
|
+
}, {
|
|
97
|
+
root: string;
|
|
98
|
+
header: string;
|
|
99
|
+
headerContent: string;
|
|
100
|
+
title: string;
|
|
101
|
+
description: string;
|
|
102
|
+
footer: string;
|
|
103
|
+
content: string;
|
|
104
|
+
}, undefined, unknown, unknown, undefined>>;
|
|
105
|
+
type CardVariants = VariantProps<typeof cardVariants>;
|
|
106
|
+
type CardSlots = keyof ReturnType<typeof cardVariants>;
|
|
107
|
+
|
|
108
|
+
export { type CardSlots, type CardVariants, cardVariants, test };
|
package/dist/styles.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunk5ZOALMLUjs = require('./chunk-5ZOALMLU.js');exports.cardVariants = _chunk5ZOALMLUjs.b; exports.test = _chunk5ZOALMLUjs.a;
|
package/dist/styles.mjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a,b}from"./chunk-R3SDYAKK.mjs";export{b as cardVariants,a as test};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import '@jamsrui/text';
|
|
2
|
+
import '@jamsrui/utils';
|
|
3
|
+
export { u as useCard } from './card-DnwdUhkq.mjs';
|
|
4
|
+
import './card-content.mjs';
|
|
5
|
+
import './card-description.mjs';
|
|
6
|
+
import './card-footer.mjs';
|
|
7
|
+
import './card-header.mjs';
|
|
8
|
+
import './card-header-content.mjs';
|
|
9
|
+
import './card-title.mjs';
|
|
10
|
+
import './styles.mjs';
|
|
11
|
+
import 'react';
|
|
12
|
+
import 'tailwind-variants';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import '@jamsrui/text';
|
|
2
|
+
import '@jamsrui/utils';
|
|
3
|
+
export { u as useCard } from './card-5sVffXQJ.js';
|
|
4
|
+
import './card-content.js';
|
|
5
|
+
import './card-description.js';
|
|
6
|
+
import './card-footer.js';
|
|
7
|
+
import './card-header.js';
|
|
8
|
+
import './card-header-content.js';
|
|
9
|
+
import './card-title.js';
|
|
10
|
+
import './styles.js';
|
|
11
|
+
import 'react';
|
|
12
|
+
import 'tailwind-variants';
|
package/dist/use-card.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkRKPZHHSTjs = require('./chunk-RKPZHHST.js');require('./chunk-5ZOALMLU.js');exports.useCard = _chunkRKPZHHSTjs.a;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a}from"./chunk-4K62ALVP.mjs";import"./chunk-R3SDYAKK.mjs";export{a as useCard};
|
package/package.json
ADDED
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@jamsrui/card",
|
|
3
|
+
"version": "0.0.2",
|
|
4
|
+
"peerDependencies": {
|
|
5
|
+
"react": ">=19"
|
|
6
|
+
},
|
|
7
|
+
"dependencies": {
|
|
8
|
+
"@jamsrui/hooks": "^0.0.2",
|
|
9
|
+
"@jamsrui/core": "^0.0.2",
|
|
10
|
+
"@jamsrui/text": "^0.0.2",
|
|
11
|
+
"@jamsrui/utils": "^0.0.2"
|
|
12
|
+
},
|
|
13
|
+
"exports": {
|
|
14
|
+
".": {
|
|
15
|
+
"types": "./dist/index.d.ts",
|
|
16
|
+
"import": "./dist/index.mjs",
|
|
17
|
+
"require": "./dist/index.js"
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
"description": "A modern and beautiful Next.js UI components library.",
|
|
21
|
+
"keywords": [
|
|
22
|
+
"react",
|
|
23
|
+
"ui",
|
|
24
|
+
"UI components",
|
|
25
|
+
"Next.js",
|
|
26
|
+
"React",
|
|
27
|
+
"JamsrUI",
|
|
28
|
+
"jamsr-ui",
|
|
29
|
+
"TypeScript"
|
|
30
|
+
],
|
|
31
|
+
"sideEffects": false,
|
|
32
|
+
"license": "MIT",
|
|
33
|
+
"author": "@jamsrworld",
|
|
34
|
+
"repository": {
|
|
35
|
+
"type": "git",
|
|
36
|
+
"url": "https://github.com/jamsrworld/jamsr-ui"
|
|
37
|
+
},
|
|
38
|
+
"bugs": {
|
|
39
|
+
"url": "https://github.com/jamsrworld/jamsr-ui/issues"
|
|
40
|
+
},
|
|
41
|
+
"homepage": "https://jamsr-ui.jamsrworld.com",
|
|
42
|
+
"files": [
|
|
43
|
+
"dist",
|
|
44
|
+
"README",
|
|
45
|
+
"README.md",
|
|
46
|
+
"package.json",
|
|
47
|
+
"LICENSE"
|
|
48
|
+
]
|
|
49
|
+
}
|