@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.
@@ -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) => react.JSX.Element;
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
  }
@@ -1,8 +1,9 @@
1
- import { A as Alert } from './alert-BDsf5fsF.mjs';
2
- import * as react from 'react';
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
- }) => react.JSX.Element;
17
+ }) => react_jsx_runtime.JSX.Element;
17
18
  declare namespace AlertConfig {
18
19
  interface Props extends Alert.Props {
19
20
  merge?: boolean;
@@ -1,7 +1,7 @@
1
- import * as react from 'react';
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) => react.JSX.Element;
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
  }
@@ -1 +1 @@
1
- import{mergeProps as s}from"@jamsrui/utils";import{useAlertContext as p}from"./alert-context";const l=t=>{const{slotProps:e,getContentProps:o}=p(),{children:r,...n}=s(e?.content??{},t);return React.createElement("div",{...o(n)},r)};export{l as AlertContent};
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};
@@ -1,5 +1,6 @@
1
- import * as react from 'react';
2
- import { u as useAlert } from './alert-BDsf5fsF.mjs';
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) => react.JSX.Element;
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
  }
@@ -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 React.createElement(t,{value:o},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
+ 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 react from 'react';
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) => react.JSX.Element;
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 p}from"@jamsrui/text";import{useAlertContext as n}from"./alert-context";const c=e=>{const{getDescriptionProps:r}=n(),{children:t,...o}=e;return React.createElement(p,{render:React.createElement("p",null),...r(o)},t)};export{c as AlertDescription};
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};
@@ -1,7 +1,7 @@
1
- import * as react from 'react';
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) => react.JSX.Element;
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
  }
@@ -1 +1 @@
1
- import{Text as n}from"@jamsrui/text";import{useAlertContext as p}from"./alert-context";const i=e=>{const{getTitleProps:t}=p(),{children:r,...o}=e;return React.createElement(n,{render:React.createElement("h3",null),...t(o)},r)};export{i as AlertTitle};
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-BDsf5fsF.mjs';
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 l}from"@jamsrui/utils";import{useAlertConfig as d}from"./alert-config";import{AlertContent as f}from"./alert-content";import{AlertContextProvider as A}from"./alert-context";import{AlertIcon as P}from"./alert-icon";import{useAlert as x}from"./use-alert";const E=r=>{const{children:o}=r,e=d(),n=l(e,e,r),t=x(n),{endContent:s,getRootProps:m}=t,p=React.createElement(React.Fragment,null,React.createElement(P,null),React.createElement(f,null,o),s),i=c("div",{props:[m({}),{children:p}]});return React.createElement(A,{ctx:t},i)};export{E as Alert};
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 o,InfoIcon as n,SuccessIcon as t,WarningIcon as e}from"@jamsrui/icons";const 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 as iconMappingDefault};
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-BDsf5fsF.mjs';
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';
@@ -1,11 +1,12 @@
1
1
  import 'react';
2
2
  import '@jamsrui/utils';
3
- export { u as useAlert } from './alert-BDsf5fsF.mjs';
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.4",
3
+ "version": "0.0.6",
4
4
  "peerDependencies": {
5
5
  "react": ">=19"
6
6
  },
7
7
  "dependencies": {
8
- "@jamsrui/hooks": "^0.0.4",
9
- "@jamsrui/core": "^0.0.4",
10
- "@jamsrui/text": "^0.0.4",
11
- "@jamsrui/utils": "^0.0.4",
12
- "@jamsrui/icons": "^0.0.4"
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
  ".": {