@jamsrui/avatar 0.0.5 → 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,4 +1,4 @@
1
- import * as react from 'react';
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import { PropGetter, UIProps, SlotsToClassNames } from '@jamsrui/utils';
3
3
  import { AvatarFallback } from './avatar-fallback.mjs';
4
4
  import { AvatarImage } from './avatar-img.mjs';
@@ -26,7 +26,7 @@ declare namespace useAvatar {
26
26
  }
27
27
  }
28
28
 
29
- declare const Avatar: (props: Avatar.Props) => react.JSX.Element;
29
+ declare const Avatar: (props: Avatar.Props) => react_jsx_runtime.JSX.Element;
30
30
  declare namespace Avatar {
31
31
  interface Props extends useAvatar.Props {
32
32
  }
@@ -1,8 +1,9 @@
1
- import { A as Avatar } from './avatar-CYA1oDzH.mjs';
2
- import * as react from 'react';
1
+ import { A as Avatar } from './avatar-D0w5UPDn.mjs';
2
+ import * as react_jsx_runtime from 'react/jsx-runtime';
3
3
  import { GlobalConfigProps } from '@jamsrui/core';
4
4
  import '@jamsrui/utils';
5
5
  import './avatar-fallback.mjs';
6
+ import 'react';
6
7
  import './avatar-img.mjs';
7
8
  import './styles.mjs';
8
9
  import 'tailwind-variants';
@@ -10,7 +11,7 @@ import 'tailwind-variants';
10
11
  declare const useAvatarConfig: () => AvatarConfig.Props;
11
12
  declare const AvatarConfig: (props: AvatarConfig.Props & {
12
13
  merge?: boolean;
13
- }) => react.JSX.Element;
14
+ }) => react_jsx_runtime.JSX.Element;
14
15
  declare namespace AvatarConfig {
15
16
  interface Props extends Avatar.Props, GlobalConfigProps<Avatar.Props> {
16
17
  }
@@ -1,5 +1,6 @@
1
1
  import * as react from 'react';
2
- import { u as useAvatar } from './avatar-CYA1oDzH.mjs';
2
+ import { u as useAvatar } from './avatar-D0w5UPDn.mjs';
3
+ import 'react/jsx-runtime';
3
4
  import '@jamsrui/utils';
4
5
  import './avatar-fallback.mjs';
5
6
  import './avatar-img.mjs';
@@ -1 +1 @@
1
- import{useRenderElement as n}from"@jamsrui/hooks";import{AvatarIcon as s}from"@jamsrui/icons";import{useAvatarContext as p}from"./avatar-context";const f=r=>{const{getFallbackProps:a,fallBackString:t,hasImage:e}=p(),o=t||React.createElement(s,null),l=n("div",{props:[a(r),{children:o}]});return e?null:l};export{f as AvatarFallback};
1
+ import{jsx as c}from"react/jsx-runtime";import{useRenderElement as n}from"@jamsrui/hooks";import{AvatarIcon as p}from"@jamsrui/icons";import{useAvatarContext as s}from"./avatar-context";const v=r=>{const{getFallbackProps:a,fallBackString:t,hasImage:e}=s(),o=t||c(p,{}),l=n("div",{props:[a(r),{children:o}]});return e?null:l};export{v as AvatarFallback};
package/dist/avatar.d.mts CHANGED
@@ -1,7 +1,8 @@
1
- import 'react';
2
- export { A as Avatar } from './avatar-CYA1oDzH.mjs';
1
+ import 'react/jsx-runtime';
2
+ export { A as Avatar } from './avatar-D0w5UPDn.mjs';
3
3
  import '@jamsrui/utils';
4
4
  import './avatar-fallback.mjs';
5
+ import 'react';
5
6
  import './avatar-img.mjs';
6
7
  import './styles.mjs';
7
8
  import 'tailwind-variants';
package/dist/avatar.mjs CHANGED
@@ -1 +1 @@
1
- import{useRenderElement as p}from"@jamsrui/hooks";import{mergeConfigProps as c}from"@jamsrui/utils";import{useAvatarConfig as i}from"./avatar-config";import{AvatarContext as v}from"./avatar-context";import{AvatarFallback as f}from"./avatar-fallback";import{AvatarImage as A}from"./avatar-img";import{useAvatar as l}from"./use-avatar";const b=r=>{const{children:e}=r,t=i(),a=c(t,t,r),o=l(a),{getRootProps:n}=o,m=React.createElement(React.Fragment,null,React.createElement(A,null),React.createElement(f,null,e)),s=p("div",{props:[n({}),{children:m}]});return React.createElement(v,{value:o},s)};export{b as Avatar};
1
+ import{Fragment as g,jsx as r,jsxs as x}from"react/jsx-runtime";import{useRenderElement as c}from"@jamsrui/hooks";import{mergeConfigProps as i}from"@jamsrui/utils";import{useAvatarConfig as v}from"./avatar-config";import{AvatarContext as f}from"./avatar-context";import{AvatarFallback as A}from"./avatar-fallback";import{AvatarImage as l}from"./avatar-img";import{useAvatar as d}from"./use-avatar";const F=o=>{const{children:a}=o,t=v(),n=i(t,t,o),e=d(n),{getRootProps:m}=e,s=x(g,{children:[r(l,{}),r(A,{children:a})]}),p=c("div",{props:[m({}),{children:s}]});return r(f,{value:e,children:p})};export{F as Avatar};
package/dist/index.d.mts CHANGED
@@ -1,8 +1,9 @@
1
- export { A as Avatar } from './avatar-CYA1oDzH.mjs';
1
+ export { A as Avatar } from './avatar-D0w5UPDn.mjs';
2
2
  export { AvatarConfig, useAvatarConfig } from './avatar-config.mjs';
3
- import 'react';
3
+ import 'react/jsx-runtime';
4
4
  import '@jamsrui/utils';
5
5
  import './avatar-fallback.mjs';
6
+ import 'react';
6
7
  import './avatar-img.mjs';
7
8
  import './styles.mjs';
8
9
  import 'tailwind-variants';
@@ -1,7 +1,8 @@
1
1
  import '@jamsrui/utils';
2
- export { u as useAvatar } from './avatar-CYA1oDzH.mjs';
2
+ export { u as useAvatar } from './avatar-D0w5UPDn.mjs';
3
3
  import './avatar-fallback.mjs';
4
4
  import './avatar-img.mjs';
5
5
  import './styles.mjs';
6
+ import 'react/jsx-runtime';
6
7
  import 'react';
7
8
  import 'tailwind-variants';
package/dist/utils.d.mts CHANGED
@@ -1,7 +1,8 @@
1
- import { A as Avatar } from './avatar-CYA1oDzH.mjs';
2
- import 'react';
1
+ import { A as Avatar } from './avatar-D0w5UPDn.mjs';
2
+ import 'react/jsx-runtime';
3
3
  import '@jamsrui/utils';
4
4
  import './avatar-fallback.mjs';
5
+ import 'react';
5
6
  import './avatar-img.mjs';
6
7
  import './styles.mjs';
7
8
  import 'tailwind-variants';
package/package.json CHANGED
@@ -1,14 +1,14 @@
1
1
  {
2
2
  "name": "@jamsrui/avatar",
3
- "version": "0.0.5",
3
+ "version": "0.0.6",
4
4
  "peerDependencies": {
5
5
  "react": ">=19"
6
6
  },
7
7
  "dependencies": {
8
- "@jamsrui/hooks": "^0.0.5",
9
- "@jamsrui/icons": "^0.0.5",
10
- "@jamsrui/utils": "^0.0.5",
11
- "@jamsrui/core": "^0.0.5"
8
+ "@jamsrui/hooks": "^0.0.6",
9
+ "@jamsrui/core": "^0.0.6",
10
+ "@jamsrui/utils": "^0.0.6",
11
+ "@jamsrui/icons": "^0.0.6"
12
12
  },
13
13
  "exports": {
14
14
  ".": {