@jamsrui/alert 0.0.4 → 0.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{alert-BDsf5fsF.d.mts → alert-BWQLCpUd.d.mts} +2 -1
- package/dist/alert-config.d.mts +4 -3
- package/dist/alert-content.d.mts +2 -2
- package/dist/alert-content.mjs +1 -1
- package/dist/alert-context.d.mts +4 -3
- package/dist/alert-context.mjs +1 -1
- package/dist/alert-description.d.mts +2 -2
- package/dist/alert-description.mjs +1 -1
- package/dist/alert-title.d.mts +2 -2
- package/dist/alert-title.mjs +1 -1
- package/dist/alert.d.mts +3 -2
- package/dist/alert.mjs +1 -1
- package/dist/icons.mjs +1 -1
- package/dist/index.d.mts +2 -1
- package/dist/use-alert.d.mts +2 -1
- package/package.json +6 -6
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
1
2
|
import * as react from 'react';
|
|
2
3
|
import { PropGetter, UIProps, SlotsToClassNames, UnknownTV } from '@jamsrui/utils';
|
|
3
4
|
import { AlertContent } from './alert-content.mjs';
|
|
@@ -40,7 +41,7 @@ declare namespace useAlert {
|
|
|
40
41
|
}
|
|
41
42
|
}
|
|
42
43
|
|
|
43
|
-
declare const Alert: (props: Alert.Props) =>
|
|
44
|
+
declare const Alert: (props: Alert.Props) => react_jsx_runtime.JSX.Element;
|
|
44
45
|
declare namespace Alert {
|
|
45
46
|
interface Props extends UIProps<"div">, useAlert.Props {
|
|
46
47
|
}
|
package/dist/alert-config.d.mts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { A as Alert } from './alert-
|
|
2
|
-
import * as
|
|
1
|
+
import { A as Alert } from './alert-BWQLCpUd.mjs';
|
|
2
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
3
3
|
import './alert-description.mjs';
|
|
4
4
|
import './alert-title.mjs';
|
|
5
5
|
import './styles.mjs';
|
|
6
|
+
import 'react';
|
|
6
7
|
import '@jamsrui/utils';
|
|
7
8
|
import './alert-content.mjs';
|
|
8
9
|
import './alert-icon.mjs';
|
|
@@ -13,7 +14,7 @@ import '@jamsrui/text';
|
|
|
13
14
|
declare const useAlertConfig: () => AlertConfig.Props;
|
|
14
15
|
declare const AlertConfig: (props: AlertConfig.Props & {
|
|
15
16
|
merge?: boolean;
|
|
16
|
-
}) =>
|
|
17
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
17
18
|
declare namespace AlertConfig {
|
|
18
19
|
interface Props extends Alert.Props {
|
|
19
20
|
merge?: boolean;
|
package/dist/alert-content.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import { UIProps } from '@jamsrui/utils';
|
|
3
3
|
|
|
4
|
-
declare const AlertContent: (props: AlertContent.Props) =>
|
|
4
|
+
declare const AlertContent: (props: AlertContent.Props) => react_jsx_runtime.JSX.Element;
|
|
5
5
|
declare namespace AlertContent {
|
|
6
6
|
interface Props extends UIProps<"div"> {
|
|
7
7
|
}
|
package/dist/alert-content.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{mergeProps as
|
|
1
|
+
import{jsx as i}from"react/jsx-runtime";import{mergeProps as p}from"@jamsrui/utils";import{useAlertContext as s}from"./alert-context";const P=t=>{const{slotProps:e,getContentProps:o}=s(),{children:r,...n}=p(e?.content??{},t);return i("div",{...o(n),children:r})};export{P as AlertContent};
|
package/dist/alert-context.d.mts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import { u as useAlert } from './alert-
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import { u as useAlert } from './alert-BWQLCpUd.mjs';
|
|
3
|
+
import 'react';
|
|
3
4
|
import '@jamsrui/utils';
|
|
4
5
|
import './alert-content.mjs';
|
|
5
6
|
import './alert-description.mjs';
|
|
@@ -11,7 +12,7 @@ import './styles.mjs';
|
|
|
11
12
|
import 'tailwind-variants';
|
|
12
13
|
|
|
13
14
|
declare const useAlertContext: () => AlertContextProvider.Type;
|
|
14
|
-
declare const AlertContextProvider: (props: AlertContextProvider.Props) =>
|
|
15
|
+
declare const AlertContextProvider: (props: AlertContextProvider.Props) => react_jsx_runtime.JSX.Element;
|
|
15
16
|
declare namespace AlertContextProvider {
|
|
16
17
|
interface Type extends ReturnType<typeof useAlert> {
|
|
17
18
|
}
|
package/dist/alert-context.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{createContext as n,use as l}from"react";const t=n(null),s=e=>{const{children:r,ctx:o}=e;return
|
|
1
|
+
import{jsx as x}from"react/jsx-runtime";import{createContext as n,use as l}from"react";const t=n(null),s=e=>{const{children:r,ctx:o}=e;return x(t,{value:o,children:r})},c=()=>{const e=l(t);if(!e)throw new Error("useAlertContext must be used within AlertContextProvider");return e};export{s as AlertContextProvider,c as useAlertContext};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import { Text } from '@jamsrui/text';
|
|
3
3
|
|
|
4
|
-
declare const AlertDescription: (props: AlertDescription.Props) =>
|
|
4
|
+
declare const AlertDescription: (props: AlertDescription.Props) => react_jsx_runtime.JSX.Element;
|
|
5
5
|
declare namespace AlertDescription {
|
|
6
6
|
interface Props extends Text.Props {
|
|
7
7
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Text as
|
|
1
|
+
import{jsx as e}from"react/jsx-runtime";import{Text as n}from"@jamsrui/text";import{useAlertContext as s}from"./alert-context";const x=r=>{const{getDescriptionProps:t}=s(),{children:o,...p}=r;return e(n,{render:e("p",{}),...t(p),children:o})};export{x as AlertDescription};
|
package/dist/alert-title.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import { Text } from '@jamsrui/text';
|
|
3
3
|
|
|
4
|
-
declare const AlertTitle: (props: AlertTitle.Props) =>
|
|
4
|
+
declare const AlertTitle: (props: AlertTitle.Props) => react_jsx_runtime.JSX.Element;
|
|
5
5
|
declare namespace AlertTitle {
|
|
6
6
|
interface Props extends Text.Props {
|
|
7
7
|
}
|
package/dist/alert-title.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Text as
|
|
1
|
+
import{jsx as e}from"react/jsx-runtime";import{Text as l}from"@jamsrui/text";import{useAlertContext as n}from"./alert-context";const x=t=>{const{getTitleProps:r}=n(),{children:o,...p}=t;return e(l,{render:e("h3",{}),...r(p),children:o})};export{x as AlertTitle};
|
package/dist/alert.d.mts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import 'react';
|
|
2
|
-
export { A as Alert } from './alert-
|
|
1
|
+
import 'react/jsx-runtime';
|
|
2
|
+
export { A as Alert } from './alert-BWQLCpUd.mjs';
|
|
3
3
|
import '@jamsrui/utils';
|
|
4
|
+
import 'react';
|
|
4
5
|
import './alert-content.mjs';
|
|
5
6
|
import './alert-description.mjs';
|
|
6
7
|
import '@jamsrui/text';
|
package/dist/alert.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{useRenderElement as c}from"@jamsrui/hooks";import{mergeConfigProps as
|
|
1
|
+
import{Fragment as g,jsx as r,jsxs as u}from"react/jsx-runtime";import{useRenderElement as c}from"@jamsrui/hooks";import{mergeConfigProps as d}from"@jamsrui/utils";import{useAlertConfig as f}from"./alert-config";import{AlertContent as A}from"./alert-content";import{AlertContextProvider as P}from"./alert-context";import{AlertIcon as C}from"./alert-icon";import{useAlert as x}from"./use-alert";const y=o=>{const{children:n}=o,e=f(),s=d(e,e,o),t=x(s),{endContent:m,getRootProps:p}=t,i=u(g,{children:[r(C,{}),r(A,{children:n}),m]}),l=c("div",{props:[p({}),{children:i}]});return r(P,{ctx:t,children:l})};export{y as Alert};
|
package/dist/icons.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{ErrorIcon as
|
|
1
|
+
import{jsx as n}from"react/jsx-runtime";import{ErrorIcon as t,InfoIcon as o,SuccessIcon as a,WarningIcon as e}from"@jamsrui/icons";const c={danger:n(t,{}),info:n(o,{}),success:n(a,{}),warning:n(e,{}),default:n(o,{})};export{c as iconMappingDefault};
|
package/dist/index.d.mts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
export { A as Alert, u as useAlert } from './alert-
|
|
1
|
+
export { A as Alert, u as useAlert } from './alert-BWQLCpUd.mjs';
|
|
2
2
|
export { AlertConfig, useAlertConfig } from './alert-config.mjs';
|
|
3
3
|
export { AlertDescription } from './alert-description.mjs';
|
|
4
4
|
export { AlertTitle } from './alert-title.mjs';
|
|
5
5
|
export { alertStyles } from './styles.mjs';
|
|
6
|
+
import 'react/jsx-runtime';
|
|
6
7
|
import 'react';
|
|
7
8
|
import '@jamsrui/utils';
|
|
8
9
|
import './alert-content.mjs';
|
package/dist/use-alert.d.mts
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import 'react';
|
|
2
2
|
import '@jamsrui/utils';
|
|
3
|
-
export { u as useAlert } from './alert-
|
|
3
|
+
export { u as useAlert } from './alert-BWQLCpUd.mjs';
|
|
4
4
|
import './alert-content.mjs';
|
|
5
5
|
import './alert-description.mjs';
|
|
6
6
|
import './alert-icon.mjs';
|
|
7
7
|
import './alert-title.mjs';
|
|
8
8
|
import './icons.mjs';
|
|
9
9
|
import './styles.mjs';
|
|
10
|
+
import 'react/jsx-runtime';
|
|
10
11
|
import '@jamsrui/text';
|
|
11
12
|
import 'tailwind-variants';
|
package/package.json
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jamsrui/alert",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.6",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"react": ">=19"
|
|
6
6
|
},
|
|
7
7
|
"dependencies": {
|
|
8
|
-
"@jamsrui/
|
|
9
|
-
"@jamsrui/
|
|
10
|
-
"@jamsrui/
|
|
11
|
-
"@jamsrui/
|
|
12
|
-
"@jamsrui/
|
|
8
|
+
"@jamsrui/utils": "^0.0.6",
|
|
9
|
+
"@jamsrui/hooks": "^0.0.6",
|
|
10
|
+
"@jamsrui/icons": "^0.0.6",
|
|
11
|
+
"@jamsrui/core": "^0.0.6",
|
|
12
|
+
"@jamsrui/text": "^0.0.6"
|
|
13
13
|
},
|
|
14
14
|
"exports": {
|
|
15
15
|
".": {
|