@jamsrui/alert 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/alert-BDsf5fsF.d.mts +49 -0
- package/dist/alert-DCHL_lSn.d.ts +49 -0
- package/dist/alert-config.d.mts +23 -0
- package/dist/alert-config.d.ts +23 -0
- package/dist/alert-config.js +1 -0
- package/dist/alert-config.mjs +1 -0
- package/dist/alert-content.d.mts +10 -0
- package/dist/alert-content.d.ts +10 -0
- package/dist/alert-content.js +1 -0
- package/dist/alert-content.mjs +1 -0
- package/dist/alert-context.d.mts +24 -0
- package/dist/alert-context.d.ts +24 -0
- package/dist/alert-context.js +1 -0
- package/dist/alert-context.mjs +1 -0
- package/dist/alert-description.d.mts +10 -0
- package/dist/alert-description.d.ts +10 -0
- package/dist/alert-description.js +1 -0
- package/dist/alert-description.mjs +1 -0
- package/dist/alert-icon.d.mts +10 -0
- package/dist/alert-icon.d.ts +10 -0
- package/dist/alert-icon.js +1 -0
- package/dist/alert-icon.mjs +1 -0
- package/dist/alert-title.d.mts +10 -0
- package/dist/alert-title.d.ts +10 -0
- package/dist/alert-title.js +1 -0
- package/dist/alert-title.mjs +1 -0
- package/dist/alert.d.mts +11 -0
- package/dist/alert.d.ts +11 -0
- package/dist/alert.js +1 -0
- package/dist/alert.mjs +1 -0
- package/dist/chunk-2253UOG4.js +1 -0
- package/dist/chunk-2S66RWZY.mjs +1 -0
- package/dist/chunk-BEHN2POV.mjs +1 -0
- package/dist/chunk-BFVY6P7K.js +1 -0
- package/dist/chunk-BGORSZHJ.js +1 -0
- package/dist/chunk-CLJAVER4.mjs +1 -0
- package/dist/chunk-GWXWPJJP.mjs +1 -0
- package/dist/chunk-HIMAS4DN.js +1 -0
- package/dist/chunk-I7JQNHMU.js +1 -0
- package/dist/chunk-J7R3UTPX.js +1 -0
- package/dist/chunk-SO2IDXD2.mjs +1 -0
- package/dist/chunk-TZUDWVDC.mjs +1 -0
- package/dist/chunk-UOY3WTFK.mjs +1 -0
- package/dist/chunk-UXA32HBZ.js +1 -0
- package/dist/chunk-VAJNPJO7.mjs +1 -0
- package/dist/chunk-Y6N7OTGB.mjs +1 -0
- package/dist/chunk-Z6DPTKIT.mjs +1 -0
- package/dist/chunk-ZASYRU5T.js +1 -0
- package/dist/chunk-ZIK7FRXG.js +1 -0
- package/dist/chunk-ZUNNR43L.js +1 -0
- package/dist/icons.d.mts +8 -0
- package/dist/icons.d.ts +8 -0
- package/dist/icons.js +1 -0
- package/dist/icons.mjs +1 -0
- package/dist/index.d.mts +12 -0
- package/dist/index.d.ts +12 -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-alert.d.mts +11 -0
- package/dist/use-alert.d.ts +11 -0
- package/dist/use-alert.js +1 -0
- package/dist/use-alert.mjs +1 -0
- package/package.json +50 -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 { PropGetter, UIProps, SlotsToClassNames, UnknownTV } from '@jamsrui/utils';
|
|
3
|
+
import { AlertContent } from './alert-content.mjs';
|
|
4
|
+
import { AlertDescription } from './alert-description.mjs';
|
|
5
|
+
import { AlertIcon } from './alert-icon.mjs';
|
|
6
|
+
import { AlertTitle } from './alert-title.mjs';
|
|
7
|
+
import { IconMapping } from './icons.mjs';
|
|
8
|
+
import { AlertVariants, AlertSlots } from './styles.mjs';
|
|
9
|
+
|
|
10
|
+
declare const useAlert: (props: useAlert.Props) => {
|
|
11
|
+
hideIcon: boolean | undefined;
|
|
12
|
+
icon: react.ReactNode;
|
|
13
|
+
endContent: react.ReactNode;
|
|
14
|
+
slotProps: {
|
|
15
|
+
title?: AlertTitle.Props;
|
|
16
|
+
content?: AlertContent.Props;
|
|
17
|
+
description?: AlertDescription.Props;
|
|
18
|
+
icon?: AlertIcon.Props;
|
|
19
|
+
} | undefined;
|
|
20
|
+
getRootProps: PropGetter<Alert.Props>;
|
|
21
|
+
getTitleProps: PropGetter<AlertTitle.Props>;
|
|
22
|
+
getDescriptionProps: PropGetter<AlertDescription.Props>;
|
|
23
|
+
getContentProps: PropGetter<AlertContent.Props>;
|
|
24
|
+
getIconProps: PropGetter<AlertIcon.Props>;
|
|
25
|
+
};
|
|
26
|
+
declare namespace useAlert {
|
|
27
|
+
interface Props extends UIProps<"div">, AlertVariants {
|
|
28
|
+
classNames?: SlotsToClassNames<AlertSlots>;
|
|
29
|
+
endContent?: React.ReactNode;
|
|
30
|
+
icon?: React.ReactNode;
|
|
31
|
+
iconMapping?: Partial<IconMapping>;
|
|
32
|
+
slotProps?: {
|
|
33
|
+
title?: AlertTitle.Props;
|
|
34
|
+
content?: AlertContent.Props;
|
|
35
|
+
description?: AlertDescription.Props;
|
|
36
|
+
icon?: AlertIcon.Props;
|
|
37
|
+
};
|
|
38
|
+
tv?: UnknownTV;
|
|
39
|
+
hideIcon?: boolean;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
declare const Alert: (props: Alert.Props) => react.JSX.Element;
|
|
44
|
+
declare namespace Alert {
|
|
45
|
+
interface Props extends UIProps<"div">, useAlert.Props {
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export { Alert as A, useAlert as u };
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import * as react from 'react';
|
|
2
|
+
import { PropGetter, UIProps, SlotsToClassNames, UnknownTV } from '@jamsrui/utils';
|
|
3
|
+
import { AlertContent } from './alert-content.js';
|
|
4
|
+
import { AlertDescription } from './alert-description.js';
|
|
5
|
+
import { AlertIcon } from './alert-icon.js';
|
|
6
|
+
import { AlertTitle } from './alert-title.js';
|
|
7
|
+
import { IconMapping } from './icons.js';
|
|
8
|
+
import { AlertVariants, AlertSlots } from './styles.js';
|
|
9
|
+
|
|
10
|
+
declare const useAlert: (props: useAlert.Props) => {
|
|
11
|
+
hideIcon: boolean | undefined;
|
|
12
|
+
icon: react.ReactNode;
|
|
13
|
+
endContent: react.ReactNode;
|
|
14
|
+
slotProps: {
|
|
15
|
+
title?: AlertTitle.Props;
|
|
16
|
+
content?: AlertContent.Props;
|
|
17
|
+
description?: AlertDescription.Props;
|
|
18
|
+
icon?: AlertIcon.Props;
|
|
19
|
+
} | undefined;
|
|
20
|
+
getRootProps: PropGetter<Alert.Props>;
|
|
21
|
+
getTitleProps: PropGetter<AlertTitle.Props>;
|
|
22
|
+
getDescriptionProps: PropGetter<AlertDescription.Props>;
|
|
23
|
+
getContentProps: PropGetter<AlertContent.Props>;
|
|
24
|
+
getIconProps: PropGetter<AlertIcon.Props>;
|
|
25
|
+
};
|
|
26
|
+
declare namespace useAlert {
|
|
27
|
+
interface Props extends UIProps<"div">, AlertVariants {
|
|
28
|
+
classNames?: SlotsToClassNames<AlertSlots>;
|
|
29
|
+
endContent?: React.ReactNode;
|
|
30
|
+
icon?: React.ReactNode;
|
|
31
|
+
iconMapping?: Partial<IconMapping>;
|
|
32
|
+
slotProps?: {
|
|
33
|
+
title?: AlertTitle.Props;
|
|
34
|
+
content?: AlertContent.Props;
|
|
35
|
+
description?: AlertDescription.Props;
|
|
36
|
+
icon?: AlertIcon.Props;
|
|
37
|
+
};
|
|
38
|
+
tv?: UnknownTV;
|
|
39
|
+
hideIcon?: boolean;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
declare const Alert: (props: Alert.Props) => react.JSX.Element;
|
|
44
|
+
declare namespace Alert {
|
|
45
|
+
interface Props extends UIProps<"div">, useAlert.Props {
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export { Alert as A, useAlert as u };
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { A as Alert } from './alert-BDsf5fsF.mjs';
|
|
2
|
+
import * as react from 'react';
|
|
3
|
+
import './alert-description.mjs';
|
|
4
|
+
import './alert-title.mjs';
|
|
5
|
+
import './styles.mjs';
|
|
6
|
+
import '@jamsrui/utils';
|
|
7
|
+
import './alert-content.mjs';
|
|
8
|
+
import './alert-icon.mjs';
|
|
9
|
+
import './icons.mjs';
|
|
10
|
+
import 'tailwind-variants';
|
|
11
|
+
import '@jamsrui/text';
|
|
12
|
+
|
|
13
|
+
declare const useAlertConfig: () => AlertConfig.Props;
|
|
14
|
+
declare const AlertConfig: (props: AlertConfig.Props & {
|
|
15
|
+
merge?: boolean;
|
|
16
|
+
}) => react.JSX.Element;
|
|
17
|
+
declare namespace AlertConfig {
|
|
18
|
+
interface Props extends Alert.Props {
|
|
19
|
+
merge?: boolean;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export { AlertConfig, useAlertConfig };
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { A as Alert } from './alert-DCHL_lSn.js';
|
|
2
|
+
import * as react from 'react';
|
|
3
|
+
import './alert-description.js';
|
|
4
|
+
import './alert-title.js';
|
|
5
|
+
import './styles.js';
|
|
6
|
+
import '@jamsrui/utils';
|
|
7
|
+
import './alert-content.js';
|
|
8
|
+
import './alert-icon.js';
|
|
9
|
+
import './icons.js';
|
|
10
|
+
import 'tailwind-variants';
|
|
11
|
+
import '@jamsrui/text';
|
|
12
|
+
|
|
13
|
+
declare const useAlertConfig: () => AlertConfig.Props;
|
|
14
|
+
declare const AlertConfig: (props: AlertConfig.Props & {
|
|
15
|
+
merge?: boolean;
|
|
16
|
+
}) => react.JSX.Element;
|
|
17
|
+
declare namespace AlertConfig {
|
|
18
|
+
interface Props extends Alert.Props {
|
|
19
|
+
merge?: boolean;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export { AlertConfig, useAlertConfig };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkZIK7FRXGjs = require('./chunk-ZIK7FRXG.js');exports.AlertConfig = _chunkZIK7FRXGjs.a; exports.useAlertConfig = _chunkZIK7FRXGjs.b;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a,b}from"./chunk-SO2IDXD2.mjs";export{a as AlertConfig,b as useAlertConfig};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as react from 'react';
|
|
2
|
+
import { UIProps } from '@jamsrui/utils';
|
|
3
|
+
|
|
4
|
+
declare const AlertContent: (props: AlertContent.Props) => react.JSX.Element;
|
|
5
|
+
declare namespace AlertContent {
|
|
6
|
+
interface Props extends UIProps<"div"> {
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export { AlertContent };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as react from 'react';
|
|
2
|
+
import { UIProps } from '@jamsrui/utils';
|
|
3
|
+
|
|
4
|
+
declare const AlertContent: (props: AlertContent.Props) => react.JSX.Element;
|
|
5
|
+
declare namespace AlertContent {
|
|
6
|
+
interface Props extends UIProps<"div"> {
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export { AlertContent };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunk2253UOG4js = require('./chunk-2253UOG4.js');require('./chunk-BFVY6P7K.js');exports.AlertContent = _chunk2253UOG4js.a;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a}from"./chunk-CLJAVER4.mjs";import"./chunk-UOY3WTFK.mjs";export{a as AlertContent};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import * as react from 'react';
|
|
2
|
+
import { u as useAlert } from './alert-BDsf5fsF.mjs';
|
|
3
|
+
import '@jamsrui/utils';
|
|
4
|
+
import './alert-content.mjs';
|
|
5
|
+
import './alert-description.mjs';
|
|
6
|
+
import '@jamsrui/text';
|
|
7
|
+
import './alert-icon.mjs';
|
|
8
|
+
import './alert-title.mjs';
|
|
9
|
+
import './icons.mjs';
|
|
10
|
+
import './styles.mjs';
|
|
11
|
+
import 'tailwind-variants';
|
|
12
|
+
|
|
13
|
+
declare const useAlertContext: () => AlertContextProvider.Type;
|
|
14
|
+
declare const AlertContextProvider: (props: AlertContextProvider.Props) => react.JSX.Element;
|
|
15
|
+
declare namespace AlertContextProvider {
|
|
16
|
+
interface Type extends ReturnType<typeof useAlert> {
|
|
17
|
+
}
|
|
18
|
+
interface Props {
|
|
19
|
+
ctx: Type;
|
|
20
|
+
children: React.ReactNode;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export { AlertContextProvider, useAlertContext };
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import * as react from 'react';
|
|
2
|
+
import { u as useAlert } from './alert-DCHL_lSn.js';
|
|
3
|
+
import '@jamsrui/utils';
|
|
4
|
+
import './alert-content.js';
|
|
5
|
+
import './alert-description.js';
|
|
6
|
+
import '@jamsrui/text';
|
|
7
|
+
import './alert-icon.js';
|
|
8
|
+
import './alert-title.js';
|
|
9
|
+
import './icons.js';
|
|
10
|
+
import './styles.js';
|
|
11
|
+
import 'tailwind-variants';
|
|
12
|
+
|
|
13
|
+
declare const useAlertContext: () => AlertContextProvider.Type;
|
|
14
|
+
declare const AlertContextProvider: (props: AlertContextProvider.Props) => react.JSX.Element;
|
|
15
|
+
declare namespace AlertContextProvider {
|
|
16
|
+
interface Type extends ReturnType<typeof useAlert> {
|
|
17
|
+
}
|
|
18
|
+
interface Props {
|
|
19
|
+
ctx: Type;
|
|
20
|
+
children: React.ReactNode;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export { AlertContextProvider, useAlertContext };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkBFVY6P7Kjs = require('./chunk-BFVY6P7K.js');exports.AlertContextProvider = _chunkBFVY6P7Kjs.a; exports.useAlertContext = _chunkBFVY6P7Kjs.b;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a,b}from"./chunk-UOY3WTFK.mjs";export{a as AlertContextProvider,b as useAlertContext};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as react from 'react';
|
|
2
|
+
import { Text } from '@jamsrui/text';
|
|
3
|
+
|
|
4
|
+
declare const AlertDescription: (props: AlertDescription.Props) => react.JSX.Element;
|
|
5
|
+
declare namespace AlertDescription {
|
|
6
|
+
interface Props extends Text.Props {
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export { AlertDescription };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as react from 'react';
|
|
2
|
+
import { Text } from '@jamsrui/text';
|
|
3
|
+
|
|
4
|
+
declare const AlertDescription: (props: AlertDescription.Props) => react.JSX.Element;
|
|
5
|
+
declare namespace AlertDescription {
|
|
6
|
+
interface Props extends Text.Props {
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export { AlertDescription };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkJ7R3UTPXjs = require('./chunk-J7R3UTPX.js');require('./chunk-BFVY6P7K.js');exports.AlertDescription = _chunkJ7R3UTPXjs.a;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a}from"./chunk-2S66RWZY.mjs";import"./chunk-UOY3WTFK.mjs";export{a as AlertDescription};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as react from 'react';
|
|
2
|
+
import { UIProps } from '@jamsrui/utils';
|
|
3
|
+
|
|
4
|
+
declare const AlertIcon: (props: AlertIcon.Props) => react.ReactElement<unknown, string | react.JSXElementConstructor<any>> | null;
|
|
5
|
+
declare namespace AlertIcon {
|
|
6
|
+
interface Props extends UIProps<"span"> {
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export { AlertIcon };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as react from 'react';
|
|
2
|
+
import { UIProps } from '@jamsrui/utils';
|
|
3
|
+
|
|
4
|
+
declare const AlertIcon: (props: AlertIcon.Props) => react.ReactElement<unknown, string | react.JSXElementConstructor<any>> | null;
|
|
5
|
+
declare namespace AlertIcon {
|
|
6
|
+
interface Props extends UIProps<"span"> {
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export { AlertIcon };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkBGORSZHJjs = require('./chunk-BGORSZHJ.js');require('./chunk-BFVY6P7K.js');exports.AlertIcon = _chunkBGORSZHJjs.a;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a}from"./chunk-VAJNPJO7.mjs";import"./chunk-UOY3WTFK.mjs";export{a as AlertIcon};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkZASYRU5Tjs = require('./chunk-ZASYRU5T.js');require('./chunk-BFVY6P7K.js');exports.AlertTitle = _chunkZASYRU5Tjs.a;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a}from"./chunk-TZUDWVDC.mjs";import"./chunk-UOY3WTFK.mjs";export{a as AlertTitle};
|
package/dist/alert.d.mts
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import 'react';
|
|
2
|
+
export { A as Alert } from './alert-BDsf5fsF.mjs';
|
|
3
|
+
import '@jamsrui/utils';
|
|
4
|
+
import './alert-content.mjs';
|
|
5
|
+
import './alert-description.mjs';
|
|
6
|
+
import '@jamsrui/text';
|
|
7
|
+
import './alert-icon.mjs';
|
|
8
|
+
import './alert-title.mjs';
|
|
9
|
+
import './icons.mjs';
|
|
10
|
+
import './styles.mjs';
|
|
11
|
+
import 'tailwind-variants';
|
package/dist/alert.d.ts
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import 'react';
|
|
2
|
+
export { A as Alert } from './alert-DCHL_lSn.js';
|
|
3
|
+
import '@jamsrui/utils';
|
|
4
|
+
import './alert-content.js';
|
|
5
|
+
import './alert-description.js';
|
|
6
|
+
import '@jamsrui/text';
|
|
7
|
+
import './alert-icon.js';
|
|
8
|
+
import './alert-title.js';
|
|
9
|
+
import './icons.js';
|
|
10
|
+
import './styles.js';
|
|
11
|
+
import 'tailwind-variants';
|
package/dist/alert.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkI7JQNHMUjs = require('./chunk-I7JQNHMU.js');require('./chunk-ZUNNR43L.js');require('./chunk-UXA32HBZ.js');require('./chunk-ZIK7FRXG.js');require('./chunk-2253UOG4.js');require('./chunk-BGORSZHJ.js');require('./chunk-BFVY6P7K.js');require('./chunk-HIMAS4DN.js');exports.Alert = _chunkI7JQNHMUjs.a;
|
package/dist/alert.mjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a}from"./chunk-GWXWPJJP.mjs";import"./chunk-BEHN2POV.mjs";import"./chunk-Z6DPTKIT.mjs";import"./chunk-SO2IDXD2.mjs";import"./chunk-CLJAVER4.mjs";import"./chunk-VAJNPJO7.mjs";import"./chunk-UOY3WTFK.mjs";import"./chunk-Y6N7OTGB.mjs";export{a as Alert};
|
|
@@ -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 _chunkBFVY6P7Kjs = require('./chunk-BFVY6P7K.js');var _utils = require('@jamsrui/utils');var l=e=>{let{slotProps:o,getContentProps:r}=_chunkBFVY6P7Kjs.b.call(void 0, ),{children:n,...s}=_utils.mergeProps.call(void 0, _nullishCoalesce(_optionalChain([o, 'optionalAccess', _ => _.content]), () => ({})),e);return React.createElement("div",{...r(s)},n)};exports.a = l;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{b as e}from"./chunk-UOY3WTFK.mjs";import{Text as n}from"@jamsrui/text";var c=r=>{let{getDescriptionProps:t}=e(),{children:o,...p}=r;return React.createElement(n,{render:React.createElement("p",null),...t(p)},o)};export{c as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{b as c}from"./chunk-Z6DPTKIT.mjs";import{a as I}from"./chunk-Y6N7OTGB.mjs";import{useCallback as r,useMemo as M}from"react";import{cn as n,dataAttrDev as a,mapPropsVariants as S,mergeProps as l}from"@jamsrui/utils";var h=C=>{let[T,i]=S(C,c.variantKeys),{classNames:o,slotProps:t,tv:v=c,endContent:p,icon:D,iconMapping:G,hideIcon:m,...P}=T,s=v(i),{status:N="default"}=i,d=D??G?.[N]??I[N],A=r(e=>({"data-slot":a("root"),role:"alert",...P,...e,className:s.root({className:n(o?.root,e.className)})}),[o?.root,P,s]),f=r(e=>({...l(t?.title,e),"data-slot":a("title"),className:s.title({className:n(t?.title?.className,o?.title,e.className)}),variant:"h6"}),[o?.title,t?.title,s]),y=r(e=>({...l(t?.description,e),"data-slot":a("description"),className:s.description({className:n(t?.description?.className,o?.description,e.className)})}),[o?.description,t?.description,s]),g=r(e=>({...l(t?.content,e),"data-slot":a("content"),className:s.content({className:n(t?.content?.className,o?.content,e.className)})}),[o?.content,t?.content,s]),u=r(e=>({...l(t?.icon,e),"data-slot":a("icon"),className:s.icon({className:n(t?.icon?.className,o?.icon,e.className)})}),[o?.icon,t?.icon,s]);return M(()=>({hideIcon:m,icon:d,endContent:p,slotProps:t,getRootProps:A,getTitleProps:f,getDescriptionProps:y,getContentProps:g,getIconProps:u}),[p,g,y,A,f,m,d,t,u])};export{h as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _react = require('react');var t=_react.createContext.call(void 0, null),s= exports.a =e=>{let{children:r,ctx:o}=e;return React.createElement(t,{value:o},r)},c= exports.b =()=>{let e=_react.use.call(void 0, t);if(!e)throw new Error("useAlertContext must be used within AlertContextProvider");return e};exports.a = s; exports.b = c;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkBFVY6P7Kjs = require('./chunk-BFVY6P7K.js');var _hooks = require('@jamsrui/hooks');var m=r=>{let{getIconProps:o,hideIcon:t,icon:n}=_chunkBFVY6P7Kjs.b.call(void 0, ),s=n,p=_hooks.useRenderElement.call(void 0, "span",{props:[o(r),{children:s}]});return t?null:p};exports.a = m;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{b as t}from"./chunk-UOY3WTFK.mjs";import{mergeProps as p}from"@jamsrui/utils";var l=e=>{let{slotProps:o,getContentProps:r}=t(),{children:n,...s}=p(o?.content??{},e);return React.createElement("div",{...r(s)},n)};export{l as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as p}from"./chunk-BEHN2POV.mjs";import{b as o}from"./chunk-SO2IDXD2.mjs";import{a as s}from"./chunk-CLJAVER4.mjs";import{a as m}from"./chunk-VAJNPJO7.mjs";import{a as n}from"./chunk-UOY3WTFK.mjs";import{useRenderElement as P}from"@jamsrui/hooks";import{mergeConfigProps as x}from"@jamsrui/utils";var E=r=>{let{children:i}=r,e=o(),c=x(e,e,r),t=p(c),{endContent:l,getRootProps:d}=t,f=React.createElement(React.Fragment,null,React.createElement(m,null),React.createElement(s,null,i),l),A=P("div",{props:[d({}),{children:f}]});return React.createElement(n,{ctx:t},A)};export{E as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _icons = require('@jamsrui/icons');var a={danger:React.createElement(_icons.ErrorIcon,null),info:React.createElement(_icons.InfoIcon,null),success:React.createElement(_icons.SuccessIcon,null),warning:React.createElement(_icons.WarningIcon,null),default:React.createElement(_icons.InfoIcon,null)};exports.a = a;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkZUNNR43Ljs = require('./chunk-ZUNNR43L.js');var _chunkZIK7FRXGjs = require('./chunk-ZIK7FRXG.js');var _chunk2253UOG4js = require('./chunk-2253UOG4.js');var _chunkBGORSZHJjs = require('./chunk-BGORSZHJ.js');var _chunkBFVY6P7Kjs = require('./chunk-BFVY6P7K.js');var _hooks = require('@jamsrui/hooks');var _utils = require('@jamsrui/utils');var E=r=>{let{children:i}=r,e=_chunkZIK7FRXGjs.b.call(void 0, ),c=_utils.mergeConfigProps.call(void 0, e,e,r),t=_chunkZUNNR43Ljs.a.call(void 0, c),{endContent:l,getRootProps:d}=t,f=React.createElement(React.Fragment,null,React.createElement(_chunkBGORSZHJjs.a,null),React.createElement(_chunk2253UOG4js.a,null,i),l),A=_hooks.useRenderElement.call(void 0, "div",{props:[d({}),{children:f}]});return React.createElement(_chunkBFVY6P7Kjs.a,{ctx:t},A)};exports.a = E;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkBFVY6P7Kjs = require('./chunk-BFVY6P7K.js');var _text = require('@jamsrui/text');var c=r=>{let{getDescriptionProps:t}=_chunkBFVY6P7Kjs.b.call(void 0, ),{children:o,...p}=r;return React.createElement(_text.Text,{render:React.createElement("p",null),...t(p)},o)};exports.a = c;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{createConfigContext as e}from"@jamsrui/utils";var[r,t]=e({displayName:"AlertConfigContext"});export{r as a,t as b};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{b as e}from"./chunk-UOY3WTFK.mjs";import{Text as p}from"@jamsrui/text";var i=t=>{let{getTitleProps:r}=e(),{children:o,...n}=t;return React.createElement(p,{render:React.createElement("h3",null),...r(n)},o)};export{i as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{createContext as n,use as l}from"react";var t=n(null),s=e=>{let{children:r,ctx:o}=e;return React.createElement(t,{value:o},r)},c=()=>{let e=l(t);if(!e)throw new Error("useAlertContext must be used within AlertContextProvider");return e};export{s as a,c as b};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _utils = require('@jamsrui/utils');var s="",e= exports.b =_utils.tv.call(void 0, {slots:{root:"relative flex gap-2 px-4 py-1.5 text-sm",icon:"shrink-0 py-2",title:"",description:"",content:"flex flex-col grow py-2 gap-1"},variants:{variant:{bordered:{root:"border"},solid:{root:"font-medium"},flat:{}},status:{success:{},warning:{},danger:{},info:{},default:{}},radius:_utils.radiusVariant.call(void 0, "root")},compoundVariants:[{status:"danger",variant:"solid",className:{root:"bg-danger text-danger-foreground"}},{status:"success",variant:"solid",className:{root:"bg-success text-success-foreground"}},{status:"info",variant:"solid",className:{root:"bg-primary text-primary-foreground"}},{status:"warning",variant:"solid",className:{root:"bg-warning text-warning-foreground"}},{status:"default",variant:"solid",className:{root:"bg-default text-default-foreground"}},{status:"success",variant:"flat",className:{root:"bg-success-subtle text-success"}},{status:"info",variant:"flat",className:{root:"bg-primary-subtle text-primary"}},{status:"warning",variant:"flat",className:{root:"bg-warning-subtle text-warning"}},{status:"danger",variant:"flat",className:{root:"bg-danger-subtle text-danger"}},{status:"default",variant:"flat",className:{root:"bg-default-subtle text-foreground"}},{status:"danger",variant:"bordered",className:{root:"border-danger-stroke text-danger"}},{status:"success",variant:"bordered",className:{root:"border-success-stroke text-success"}},{status:"info",variant:"bordered",className:{root:"border-primary-stroke text-primary"}},{status:"warning",variant:"bordered",className:{root:"border-warning-stroke text-warning"}},{status:"default",variant:"bordered",className:{root:"border-default-stroke text-foreground"}}],defaultVariants:{status:"success",variant:"flat",radius:"md"}});exports.a = s; exports.b = e;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{b as e}from"./chunk-UOY3WTFK.mjs";import{useRenderElement as c}from"@jamsrui/hooks";var m=r=>{let{getIconProps:o,hideIcon:t,icon:n}=e(),s=n,p=c("span",{props:[o(r),{children:s}]});return t?null:p};export{m as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{ErrorIcon as o,InfoIcon as n,SuccessIcon as t,WarningIcon as e}from"@jamsrui/icons";var a={danger:React.createElement(o,null),info:React.createElement(n,null),success:React.createElement(t,null),warning:React.createElement(e,null),default:React.createElement(n,null)};export{a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{radiusVariant as t,tv as a}from"@jamsrui/utils";var s="",e=a({slots:{root:"relative flex gap-2 px-4 py-1.5 text-sm",icon:"shrink-0 py-2",title:"",description:"",content:"flex flex-col grow py-2 gap-1"},variants:{variant:{bordered:{root:"border"},solid:{root:"font-medium"},flat:{}},status:{success:{},warning:{},danger:{},info:{},default:{}},radius:t("root")},compoundVariants:[{status:"danger",variant:"solid",className:{root:"bg-danger text-danger-foreground"}},{status:"success",variant:"solid",className:{root:"bg-success text-success-foreground"}},{status:"info",variant:"solid",className:{root:"bg-primary text-primary-foreground"}},{status:"warning",variant:"solid",className:{root:"bg-warning text-warning-foreground"}},{status:"default",variant:"solid",className:{root:"bg-default text-default-foreground"}},{status:"success",variant:"flat",className:{root:"bg-success-subtle text-success"}},{status:"info",variant:"flat",className:{root:"bg-primary-subtle text-primary"}},{status:"warning",variant:"flat",className:{root:"bg-warning-subtle text-warning"}},{status:"danger",variant:"flat",className:{root:"bg-danger-subtle text-danger"}},{status:"default",variant:"flat",className:{root:"bg-default-subtle text-foreground"}},{status:"danger",variant:"bordered",className:{root:"border-danger-stroke text-danger"}},{status:"success",variant:"bordered",className:{root:"border-success-stroke text-success"}},{status:"info",variant:"bordered",className:{root:"border-primary-stroke text-primary"}},{status:"warning",variant:"bordered",className:{root:"border-warning-stroke text-warning"}},{status:"default",variant:"bordered",className:{root:"border-default-stroke text-foreground"}}],defaultVariants:{status:"success",variant:"flat",radius:"md"}});export{s as a,e as b};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkBFVY6P7Kjs = require('./chunk-BFVY6P7K.js');var _text = require('@jamsrui/text');var i=t=>{let{getTitleProps:r}=_chunkBFVY6P7Kjs.b.call(void 0, ),{children:o,...n}=t;return React.createElement(_text.Text,{render:React.createElement("h3",null),...r(n)},o)};exports.a = i;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _utils = require('@jamsrui/utils');var[r,t]=_utils.createConfigContext.call(void 0, {displayName:"AlertConfigContext"});exports.a = r; exports.b = t;
|
|
@@ -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 _chunkUXA32HBZjs = require('./chunk-UXA32HBZ.js');var _chunkHIMAS4DNjs = require('./chunk-HIMAS4DN.js');var _react = require('react');var _utils = require('@jamsrui/utils');var h=C=>{let[T,i]=_utils.mapPropsVariants.call(void 0, C,_chunkUXA32HBZjs.b.variantKeys),{classNames:o,slotProps:t,tv:v=_chunkUXA32HBZjs.b,endContent:p,icon:D,iconMapping:G,hideIcon:m,...P}=T,s=v(i),{status:N="default"}=i,d=_nullishCoalesce(_nullishCoalesce(D, () => (_optionalChain([G, 'optionalAccess', _ => _[N]]))), () => (_chunkHIMAS4DNjs.a[N])),A=_react.useCallback.call(void 0, e=>({"data-slot":_utils.dataAttrDev.call(void 0, "root"),role:"alert",...P,...e,className:s.root({className:_utils.cn.call(void 0, _optionalChain([o, 'optionalAccess', _2 => _2.root]),e.className)})}),[_optionalChain([o, 'optionalAccess', _3 => _3.root]),P,s]),f=_react.useCallback.call(void 0, e=>({..._utils.mergeProps.call(void 0, _optionalChain([t, 'optionalAccess', _4 => _4.title]),e),"data-slot":_utils.dataAttrDev.call(void 0, "title"),className:s.title({className:_utils.cn.call(void 0, _optionalChain([t, 'optionalAccess', _5 => _5.title, 'optionalAccess', _6 => _6.className]),_optionalChain([o, 'optionalAccess', _7 => _7.title]),e.className)}),variant:"h6"}),[_optionalChain([o, 'optionalAccess', _8 => _8.title]),_optionalChain([t, 'optionalAccess', _9 => _9.title]),s]),y=_react.useCallback.call(void 0, e=>({..._utils.mergeProps.call(void 0, _optionalChain([t, 'optionalAccess', _10 => _10.description]),e),"data-slot":_utils.dataAttrDev.call(void 0, "description"),className:s.description({className:_utils.cn.call(void 0, _optionalChain([t, 'optionalAccess', _11 => _11.description, 'optionalAccess', _12 => _12.className]),_optionalChain([o, 'optionalAccess', _13 => _13.description]),e.className)})}),[_optionalChain([o, 'optionalAccess', _14 => _14.description]),_optionalChain([t, 'optionalAccess', _15 => _15.description]),s]),g=_react.useCallback.call(void 0, e=>({..._utils.mergeProps.call(void 0, _optionalChain([t, 'optionalAccess', _16 => _16.content]),e),"data-slot":_utils.dataAttrDev.call(void 0, "content"),className:s.content({className:_utils.cn.call(void 0, _optionalChain([t, 'optionalAccess', _17 => _17.content, 'optionalAccess', _18 => _18.className]),_optionalChain([o, 'optionalAccess', _19 => _19.content]),e.className)})}),[_optionalChain([o, 'optionalAccess', _20 => _20.content]),_optionalChain([t, 'optionalAccess', _21 => _21.content]),s]),u=_react.useCallback.call(void 0, e=>({..._utils.mergeProps.call(void 0, _optionalChain([t, 'optionalAccess', _22 => _22.icon]),e),"data-slot":_utils.dataAttrDev.call(void 0, "icon"),className:s.icon({className:_utils.cn.call(void 0, _optionalChain([t, 'optionalAccess', _23 => _23.icon, 'optionalAccess', _24 => _24.className]),_optionalChain([o, 'optionalAccess', _25 => _25.icon]),e.className)})}),[_optionalChain([o, 'optionalAccess', _26 => _26.icon]),_optionalChain([t, 'optionalAccess', _27 => _27.icon]),s]);return _react.useMemo.call(void 0, ()=>({hideIcon:m,icon:d,endContent:p,slotProps:t,getRootProps:A,getTitleProps:f,getDescriptionProps:y,getContentProps:g,getIconProps:u}),[p,g,y,A,f,m,d,t,u])};exports.a = h;
|
package/dist/icons.d.mts
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { AlertVariants } from './styles.mjs';
|
|
2
|
+
import 'tailwind-variants';
|
|
3
|
+
import '@jamsrui/utils';
|
|
4
|
+
|
|
5
|
+
type IconMapping = Record<NonNullable<AlertVariants["status"]>, React.ReactNode>;
|
|
6
|
+
declare const iconMappingDefault: IconMapping;
|
|
7
|
+
|
|
8
|
+
export { type IconMapping, iconMappingDefault };
|
package/dist/icons.d.ts
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { AlertVariants } from './styles.js';
|
|
2
|
+
import 'tailwind-variants';
|
|
3
|
+
import '@jamsrui/utils';
|
|
4
|
+
|
|
5
|
+
type IconMapping = Record<NonNullable<AlertVariants["status"]>, React.ReactNode>;
|
|
6
|
+
declare const iconMappingDefault: IconMapping;
|
|
7
|
+
|
|
8
|
+
export { type IconMapping, iconMappingDefault };
|
package/dist/icons.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkHIMAS4DNjs = require('./chunk-HIMAS4DN.js');exports.iconMappingDefault = _chunkHIMAS4DNjs.a;
|
package/dist/icons.mjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a}from"./chunk-Y6N7OTGB.mjs";export{a as iconMappingDefault};
|
package/dist/index.d.mts
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export { A as Alert, u as useAlert } from './alert-BDsf5fsF.mjs';
|
|
2
|
+
export { AlertConfig, useAlertConfig } from './alert-config.mjs';
|
|
3
|
+
export { AlertDescription } from './alert-description.mjs';
|
|
4
|
+
export { AlertTitle } from './alert-title.mjs';
|
|
5
|
+
export { alertStyles } from './styles.mjs';
|
|
6
|
+
import 'react';
|
|
7
|
+
import '@jamsrui/utils';
|
|
8
|
+
import './alert-content.mjs';
|
|
9
|
+
import './alert-icon.mjs';
|
|
10
|
+
import './icons.mjs';
|
|
11
|
+
import 'tailwind-variants';
|
|
12
|
+
import '@jamsrui/text';
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export { A as Alert, u as useAlert } from './alert-DCHL_lSn.js';
|
|
2
|
+
export { AlertConfig, useAlertConfig } from './alert-config.js';
|
|
3
|
+
export { AlertDescription } from './alert-description.js';
|
|
4
|
+
export { AlertTitle } from './alert-title.js';
|
|
5
|
+
export { alertStyles } from './styles.js';
|
|
6
|
+
import 'react';
|
|
7
|
+
import '@jamsrui/utils';
|
|
8
|
+
import './alert-content.js';
|
|
9
|
+
import './alert-icon.js';
|
|
10
|
+
import './icons.js';
|
|
11
|
+
import 'tailwind-variants';
|
|
12
|
+
import '@jamsrui/text';
|
package/dist/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client";var _chunkJ7R3UTPXjs = require('./chunk-J7R3UTPX.js');var _chunkZASYRU5Tjs = require('./chunk-ZASYRU5T.js');var _chunkI7JQNHMUjs = require('./chunk-I7JQNHMU.js');var _chunkZUNNR43Ljs = require('./chunk-ZUNNR43L.js');var _chunkUXA32HBZjs = require('./chunk-UXA32HBZ.js');var _chunkZIK7FRXGjs = require('./chunk-ZIK7FRXG.js');require('./chunk-2253UOG4.js');require('./chunk-BGORSZHJ.js');require('./chunk-BFVY6P7K.js');require('./chunk-HIMAS4DN.js');exports.Alert = _chunkI7JQNHMUjs.a; exports.AlertConfig = _chunkZIK7FRXGjs.a; exports.AlertDescription = _chunkJ7R3UTPXjs.a; exports.AlertTitle = _chunkZASYRU5Tjs.a; exports.alertStyles = _chunkUXA32HBZjs.b; exports.useAlert = _chunkZUNNR43Ljs.a; exports.useAlertConfig = _chunkZIK7FRXGjs.b;
|
package/dist/index.mjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";import{a as t}from"./chunk-2S66RWZY.mjs";import{a as o}from"./chunk-TZUDWVDC.mjs";import{a as p}from"./chunk-GWXWPJJP.mjs";import{a as f}from"./chunk-BEHN2POV.mjs";import{b as l}from"./chunk-Z6DPTKIT.mjs";import{a as e,b as r}from"./chunk-SO2IDXD2.mjs";import"./chunk-CLJAVER4.mjs";import"./chunk-VAJNPJO7.mjs";import"./chunk-UOY3WTFK.mjs";import"./chunk-Y6N7OTGB.mjs";export{p as Alert,e as AlertConfig,t as AlertDescription,o as AlertTitle,l as alertStyles,f as useAlert,r as useAlertConfig};
|
|
@@ -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 alertStyles: tailwind_variants.TVReturnType<{
|
|
6
|
+
variant: {
|
|
7
|
+
bordered: {
|
|
8
|
+
root: string;
|
|
9
|
+
};
|
|
10
|
+
solid: {
|
|
11
|
+
root: string;
|
|
12
|
+
};
|
|
13
|
+
flat: {};
|
|
14
|
+
};
|
|
15
|
+
status: {
|
|
16
|
+
success: {};
|
|
17
|
+
warning: {};
|
|
18
|
+
danger: {};
|
|
19
|
+
info: {};
|
|
20
|
+
default: {};
|
|
21
|
+
};
|
|
22
|
+
radius: {
|
|
23
|
+
sm: {};
|
|
24
|
+
md: {};
|
|
25
|
+
lg: {};
|
|
26
|
+
xl: {};
|
|
27
|
+
"2xl": {};
|
|
28
|
+
"3xl": {};
|
|
29
|
+
full: {};
|
|
30
|
+
none: {};
|
|
31
|
+
};
|
|
32
|
+
}, {
|
|
33
|
+
root: string;
|
|
34
|
+
icon: string;
|
|
35
|
+
title: string;
|
|
36
|
+
description: string;
|
|
37
|
+
content: string;
|
|
38
|
+
}, undefined, {
|
|
39
|
+
variant: {
|
|
40
|
+
bordered: {
|
|
41
|
+
root: string;
|
|
42
|
+
};
|
|
43
|
+
solid: {
|
|
44
|
+
root: string;
|
|
45
|
+
};
|
|
46
|
+
flat: {};
|
|
47
|
+
};
|
|
48
|
+
status: {
|
|
49
|
+
success: {};
|
|
50
|
+
warning: {};
|
|
51
|
+
danger: {};
|
|
52
|
+
info: {};
|
|
53
|
+
default: {};
|
|
54
|
+
};
|
|
55
|
+
radius: {
|
|
56
|
+
sm: {};
|
|
57
|
+
md: {};
|
|
58
|
+
lg: {};
|
|
59
|
+
xl: {};
|
|
60
|
+
"2xl": {};
|
|
61
|
+
"3xl": {};
|
|
62
|
+
full: {};
|
|
63
|
+
none: {};
|
|
64
|
+
};
|
|
65
|
+
}, {
|
|
66
|
+
root: string;
|
|
67
|
+
icon: string;
|
|
68
|
+
title: string;
|
|
69
|
+
description: string;
|
|
70
|
+
content: string;
|
|
71
|
+
}, tailwind_variants.TVReturnType<{
|
|
72
|
+
variant: {
|
|
73
|
+
bordered: {
|
|
74
|
+
root: string;
|
|
75
|
+
};
|
|
76
|
+
solid: {
|
|
77
|
+
root: string;
|
|
78
|
+
};
|
|
79
|
+
flat: {};
|
|
80
|
+
};
|
|
81
|
+
status: {
|
|
82
|
+
success: {};
|
|
83
|
+
warning: {};
|
|
84
|
+
danger: {};
|
|
85
|
+
info: {};
|
|
86
|
+
default: {};
|
|
87
|
+
};
|
|
88
|
+
radius: {
|
|
89
|
+
sm: {};
|
|
90
|
+
md: {};
|
|
91
|
+
lg: {};
|
|
92
|
+
xl: {};
|
|
93
|
+
"2xl": {};
|
|
94
|
+
"3xl": {};
|
|
95
|
+
full: {};
|
|
96
|
+
none: {};
|
|
97
|
+
};
|
|
98
|
+
}, {
|
|
99
|
+
root: string;
|
|
100
|
+
icon: string;
|
|
101
|
+
title: string;
|
|
102
|
+
description: string;
|
|
103
|
+
content: string;
|
|
104
|
+
}, undefined, unknown, unknown, undefined>>;
|
|
105
|
+
type AlertVariants = VariantProps<typeof alertStyles>;
|
|
106
|
+
type AlertSlots = keyof ReturnType<typeof alertStyles>;
|
|
107
|
+
|
|
108
|
+
export { type AlertSlots, type AlertVariants, alertStyles, 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 alertStyles: tailwind_variants.TVReturnType<{
|
|
6
|
+
variant: {
|
|
7
|
+
bordered: {
|
|
8
|
+
root: string;
|
|
9
|
+
};
|
|
10
|
+
solid: {
|
|
11
|
+
root: string;
|
|
12
|
+
};
|
|
13
|
+
flat: {};
|
|
14
|
+
};
|
|
15
|
+
status: {
|
|
16
|
+
success: {};
|
|
17
|
+
warning: {};
|
|
18
|
+
danger: {};
|
|
19
|
+
info: {};
|
|
20
|
+
default: {};
|
|
21
|
+
};
|
|
22
|
+
radius: {
|
|
23
|
+
sm: {};
|
|
24
|
+
md: {};
|
|
25
|
+
lg: {};
|
|
26
|
+
xl: {};
|
|
27
|
+
"2xl": {};
|
|
28
|
+
"3xl": {};
|
|
29
|
+
full: {};
|
|
30
|
+
none: {};
|
|
31
|
+
};
|
|
32
|
+
}, {
|
|
33
|
+
root: string;
|
|
34
|
+
icon: string;
|
|
35
|
+
title: string;
|
|
36
|
+
description: string;
|
|
37
|
+
content: string;
|
|
38
|
+
}, undefined, {
|
|
39
|
+
variant: {
|
|
40
|
+
bordered: {
|
|
41
|
+
root: string;
|
|
42
|
+
};
|
|
43
|
+
solid: {
|
|
44
|
+
root: string;
|
|
45
|
+
};
|
|
46
|
+
flat: {};
|
|
47
|
+
};
|
|
48
|
+
status: {
|
|
49
|
+
success: {};
|
|
50
|
+
warning: {};
|
|
51
|
+
danger: {};
|
|
52
|
+
info: {};
|
|
53
|
+
default: {};
|
|
54
|
+
};
|
|
55
|
+
radius: {
|
|
56
|
+
sm: {};
|
|
57
|
+
md: {};
|
|
58
|
+
lg: {};
|
|
59
|
+
xl: {};
|
|
60
|
+
"2xl": {};
|
|
61
|
+
"3xl": {};
|
|
62
|
+
full: {};
|
|
63
|
+
none: {};
|
|
64
|
+
};
|
|
65
|
+
}, {
|
|
66
|
+
root: string;
|
|
67
|
+
icon: string;
|
|
68
|
+
title: string;
|
|
69
|
+
description: string;
|
|
70
|
+
content: string;
|
|
71
|
+
}, tailwind_variants.TVReturnType<{
|
|
72
|
+
variant: {
|
|
73
|
+
bordered: {
|
|
74
|
+
root: string;
|
|
75
|
+
};
|
|
76
|
+
solid: {
|
|
77
|
+
root: string;
|
|
78
|
+
};
|
|
79
|
+
flat: {};
|
|
80
|
+
};
|
|
81
|
+
status: {
|
|
82
|
+
success: {};
|
|
83
|
+
warning: {};
|
|
84
|
+
danger: {};
|
|
85
|
+
info: {};
|
|
86
|
+
default: {};
|
|
87
|
+
};
|
|
88
|
+
radius: {
|
|
89
|
+
sm: {};
|
|
90
|
+
md: {};
|
|
91
|
+
lg: {};
|
|
92
|
+
xl: {};
|
|
93
|
+
"2xl": {};
|
|
94
|
+
"3xl": {};
|
|
95
|
+
full: {};
|
|
96
|
+
none: {};
|
|
97
|
+
};
|
|
98
|
+
}, {
|
|
99
|
+
root: string;
|
|
100
|
+
icon: string;
|
|
101
|
+
title: string;
|
|
102
|
+
description: string;
|
|
103
|
+
content: string;
|
|
104
|
+
}, undefined, unknown, unknown, undefined>>;
|
|
105
|
+
type AlertVariants = VariantProps<typeof alertStyles>;
|
|
106
|
+
type AlertSlots = keyof ReturnType<typeof alertStyles>;
|
|
107
|
+
|
|
108
|
+
export { type AlertSlots, type AlertVariants, alertStyles, test };
|
package/dist/styles.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkUXA32HBZjs = require('./chunk-UXA32HBZ.js');exports.alertStyles = _chunkUXA32HBZjs.b; exports.test = _chunkUXA32HBZjs.a;
|
package/dist/styles.mjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a,b}from"./chunk-Z6DPTKIT.mjs";export{b as alertStyles,a as test};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import 'react';
|
|
2
|
+
import '@jamsrui/utils';
|
|
3
|
+
export { u as useAlert } from './alert-BDsf5fsF.mjs';
|
|
4
|
+
import './alert-content.mjs';
|
|
5
|
+
import './alert-description.mjs';
|
|
6
|
+
import './alert-icon.mjs';
|
|
7
|
+
import './alert-title.mjs';
|
|
8
|
+
import './icons.mjs';
|
|
9
|
+
import './styles.mjs';
|
|
10
|
+
import '@jamsrui/text';
|
|
11
|
+
import 'tailwind-variants';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import 'react';
|
|
2
|
+
import '@jamsrui/utils';
|
|
3
|
+
export { u as useAlert } from './alert-DCHL_lSn.js';
|
|
4
|
+
import './alert-content.js';
|
|
5
|
+
import './alert-description.js';
|
|
6
|
+
import './alert-icon.js';
|
|
7
|
+
import './alert-title.js';
|
|
8
|
+
import './icons.js';
|
|
9
|
+
import './styles.js';
|
|
10
|
+
import '@jamsrui/text';
|
|
11
|
+
import 'tailwind-variants';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkZUNNR43Ljs = require('./chunk-ZUNNR43L.js');require('./chunk-UXA32HBZ.js');require('./chunk-HIMAS4DN.js');exports.useAlert = _chunkZUNNR43Ljs.a;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a}from"./chunk-BEHN2POV.mjs";import"./chunk-Z6DPTKIT.mjs";import"./chunk-Y6N7OTGB.mjs";export{a as useAlert};
|
package/package.json
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@jamsrui/alert",
|
|
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/icons": "^0.0.2",
|
|
11
|
+
"@jamsrui/text": "^0.0.2",
|
|
12
|
+
"@jamsrui/utils": "^0.0.2"
|
|
13
|
+
},
|
|
14
|
+
"exports": {
|
|
15
|
+
".": {
|
|
16
|
+
"types": "./dist/index.d.ts",
|
|
17
|
+
"import": "./dist/index.mjs",
|
|
18
|
+
"require": "./dist/index.js"
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
"description": "A modern and beautiful Next.js UI components library.",
|
|
22
|
+
"keywords": [
|
|
23
|
+
"react",
|
|
24
|
+
"ui",
|
|
25
|
+
"UI components",
|
|
26
|
+
"Next.js",
|
|
27
|
+
"React",
|
|
28
|
+
"JamsrUI",
|
|
29
|
+
"jamsr-ui",
|
|
30
|
+
"TypeScript"
|
|
31
|
+
],
|
|
32
|
+
"sideEffects": false,
|
|
33
|
+
"license": "MIT",
|
|
34
|
+
"author": "@jamsrworld",
|
|
35
|
+
"repository": {
|
|
36
|
+
"type": "git",
|
|
37
|
+
"url": "https://github.com/jamsrworld/jamsr-ui"
|
|
38
|
+
},
|
|
39
|
+
"bugs": {
|
|
40
|
+
"url": "https://github.com/jamsrworld/jamsr-ui/issues"
|
|
41
|
+
},
|
|
42
|
+
"homepage": "https://jamsr-ui.jamsrworld.com",
|
|
43
|
+
"files": [
|
|
44
|
+
"dist",
|
|
45
|
+
"README",
|
|
46
|
+
"README.md",
|
|
47
|
+
"package.json",
|
|
48
|
+
"LICENSE"
|
|
49
|
+
]
|
|
50
|
+
}
|