@stackshift-ui/avatar 7.0.0-beta.4 → 7.0.0-beta.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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stackshift-ui/avatar",
3
3
  "description": "",
4
- "version": "7.0.0-beta.4",
4
+ "version": "7.0.0-beta.6",
5
5
  "private": false,
6
6
  "sideEffects": false,
7
7
  "main": "./dist/index.js",
@@ -37,13 +37,13 @@
37
37
  "dependencies": {
38
38
  "@radix-ui/react-avatar": "^1.1.10",
39
39
  "classnames": "^2.5.1",
40
- "@stackshift-ui/system": "6.1.0-beta.3",
41
- "@stackshift-ui/scripts": "6.1.0-beta.2",
42
- "@stackshift-ui/image": "6.1.0-beta.4",
43
- "@stackshift-ui/flex": "7.0.0-beta.3"
40
+ "@stackshift-ui/flex": "7.0.0-beta.5",
41
+ "@stackshift-ui/image": "7.0.0-beta.6",
42
+ "@stackshift-ui/scripts": "7.0.0-beta.4",
43
+ "@stackshift-ui/system": "7.0.0-beta.5"
44
44
  },
45
45
  "peerDependencies": {
46
- "@stackshift-ui/system": ">=6.1.0-beta.3",
46
+ "@stackshift-ui/system": ">=7.0.0-beta.5",
47
47
  "@types/react": "16.8 - 19",
48
48
  "next": "10 - 14",
49
49
  "react": "16.8 - 19",
package/dist/avatar.d.ts DELETED
@@ -1,6 +0,0 @@
1
- import * as AvatarPrimitive from "@radix-ui/react-avatar";
2
- import * as React from "react";
3
- declare const Avatar: React.ForwardRefExoticComponent<Omit<AvatarPrimitive.AvatarProps & React.RefAttributes<HTMLSpanElement>, "ref"> & React.RefAttributes<HTMLSpanElement>>;
4
- declare const AvatarImage: React.ForwardRefExoticComponent<Omit<AvatarPrimitive.AvatarImageProps & React.RefAttributes<HTMLImageElement>, "ref"> & React.RefAttributes<HTMLImageElement>>;
5
- declare const AvatarFallback: React.ForwardRefExoticComponent<Omit<AvatarPrimitive.AvatarFallbackProps & React.RefAttributes<HTMLSpanElement>, "ref"> & React.RefAttributes<HTMLSpanElement>>;
6
- export { Avatar, AvatarFallback, AvatarImage };
package/dist/avatar.js DELETED
@@ -1 +0,0 @@
1
- "use strict";var y=Object.create;var l=Object.defineProperty;var P=Object.getOwnPropertyDescriptor;var h=Object.getOwnPropertyNames;var N=Object.getPrototypeOf,k=Object.prototype.hasOwnProperty;var C=(a,t)=>{for(var e in t)l(a,e,{get:t[e],enumerable:!0})},s=(a,t,e,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let m of h(t))!k.call(a,m)&&m!==e&&l(a,m,{get:()=>t[m],enumerable:!(o=P(t,m))||o.enumerable});return a};var c=(a,t,e)=>(e=a!=null?y(N(a)):{},s(t||!a||!a.__esModule?l(e,"default",{value:a,enumerable:!0}):e,a)),b=a=>s(l({},"__esModule",{value:!0}),a);var g={};C(g,{Avatar:()=>A,AvatarFallback:()=>d,AvatarImage:()=>u});module.exports=b(g);var i=c(require("@radix-ui/react-avatar")),r=require("@stackshift-ui/system"),n=c(require("react")),f=require("react/jsx-runtime"),v="Avatar",p="AvatarImage",R="AvatarFallback",A=n.forwardRef(({className:a,...t},e)=>{let{[v]:o=r.DefaultComponent}=(0,r.useStackShiftUIComponents)();return(0,f.jsx)(o,{as:i.Root,ref:e,className:(0,r.cn)("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",a),...t})});A.displayName=v;var u=n.forwardRef(({className:a,...t},e)=>{let{[p]:o=r.DefaultComponent}=(0,r.useStackShiftUIComponents)();return(0,f.jsx)(o,{as:i.Image,ref:e,className:(0,r.cn)("aspect-square h-full w-full",a),...t})});u.displayName=p;var d=n.forwardRef(({className:a,...t},e)=>{let{[R]:o=r.DefaultComponent}=(0,r.useStackShiftUIComponents)();return(0,f.jsx)(o,{as:i.Fallback,ref:e,className:(0,r.cn)("flex h-full w-full items-center justify-center rounded-full bg-muted",a),...t})});d.displayName=R;0&&(module.exports={Avatar,AvatarFallback,AvatarImage});
package/dist/avatar.mjs DELETED
@@ -1 +0,0 @@
1
- import{a,b,c}from"./chunk-FFRWVVUZ.mjs";import"./chunk-3EYN2AKU.mjs";export{a as Avatar,c as AvatarFallback,b as AvatarImage};
@@ -1 +0,0 @@
1
- var g=Object.create;var f=Object.defineProperty;var h=Object.getOwnPropertyDescriptor;var i=Object.getOwnPropertyNames;var j=Object.getPrototypeOf,k=Object.prototype.hasOwnProperty;var m=(a=>typeof require!="undefined"?require:typeof Proxy!="undefined"?new Proxy(a,{get:(b,c)=>(typeof require!="undefined"?require:b)[c]}):a)(function(a){if(typeof require!="undefined")return require.apply(this,arguments);throw Error('Dynamic require of "'+a+'" is not supported')});var n=(a,b)=>()=>(b||a((b={exports:{}}).exports,b),b.exports);var l=(a,b,c,e)=>{if(b&&typeof b=="object"||typeof b=="function")for(let d of i(b))!k.call(a,d)&&d!==c&&f(a,d,{get:()=>b[d],enumerable:!(e=h(b,d))||e.enumerable});return a};var o=(a,b,c)=>(c=a!=null?g(j(a)):{},l(b||!a||!a.__esModule?f(c,"default",{value:a,enumerable:!0}):c,a));export{m as a,n as b,o as c};
@@ -1 +0,0 @@
1
- import*as a from"@radix-ui/react-avatar";import{cn as m,DefaultComponent as l,useStackShiftUIComponents as n}from"@stackshift-ui/system";import*as i from"react";import{jsx as f}from"react/jsx-runtime";var s="Avatar",c="AvatarImage",v="AvatarFallback",p=i.forwardRef(({className:t,...e},r)=>{let{[s]:o=l}=n();return f(o,{as:a.Root,ref:r,className:m("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",t),...e})});p.displayName=s;var R=i.forwardRef(({className:t,...e},r)=>{let{[c]:o=l}=n();return f(o,{as:a.Image,ref:r,className:m("aspect-square h-full w-full",t),...e})});R.displayName=c;var A=i.forwardRef(({className:t,...e},r)=>{let{[v]:o=l}=n();return f(o,{as:a.Fallback,ref:r,className:m("flex h-full w-full items-center justify-center rounded-full bg-muted",t),...e})});A.displayName=v;export{p as a,R as b,A as c};
package/dist/index.d.ts DELETED
@@ -1 +0,0 @@
1
- export * from "./avatar";
package/dist/index.js DELETED
@@ -1,2 +0,0 @@
1
- "use client";
2
- "use strict";var y=Object.create;var l=Object.defineProperty;var P=Object.getOwnPropertyDescriptor;var h=Object.getOwnPropertyNames;var N=Object.getPrototypeOf,k=Object.prototype.hasOwnProperty;var C=(a,t)=>{for(var e in t)l(a,e,{get:t[e],enumerable:!0})},s=(a,t,e,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let m of h(t))!k.call(a,m)&&m!==e&&l(a,m,{get:()=>t[m],enumerable:!(o=P(t,m))||o.enumerable});return a};var c=(a,t,e)=>(e=a!=null?y(N(a)):{},s(t||!a||!a.__esModule?l(e,"default",{value:a,enumerable:!0}):e,a)),b=a=>s(l({},"__esModule",{value:!0}),a);var g={};C(g,{Avatar:()=>u,AvatarFallback:()=>d,AvatarImage:()=>A});module.exports=b(g);var i=c(require("@radix-ui/react-avatar")),r=require("@stackshift-ui/system"),n=c(require("react")),f=require("react/jsx-runtime"),v="Avatar",p="AvatarImage",R="AvatarFallback",u=n.forwardRef(({className:a,...t},e)=>{let{[v]:o=r.DefaultComponent}=(0,r.useStackShiftUIComponents)();return(0,f.jsx)(o,{as:i.Root,ref:e,className:(0,r.cn)("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",a),...t})});u.displayName=v;var A=n.forwardRef(({className:a,...t},e)=>{let{[p]:o=r.DefaultComponent}=(0,r.useStackShiftUIComponents)();return(0,f.jsx)(o,{as:i.Image,ref:e,className:(0,r.cn)("aspect-square h-full w-full",a),...t})});A.displayName=p;var d=n.forwardRef(({className:a,...t},e)=>{let{[R]:o=r.DefaultComponent}=(0,r.useStackShiftUIComponents)();return(0,f.jsx)(o,{as:i.Fallback,ref:e,className:(0,r.cn)("flex h-full w-full items-center justify-center rounded-full bg-muted",a),...t})});d.displayName=R;0&&(module.exports={Avatar,AvatarFallback,AvatarImage});
package/dist/index.mjs DELETED
@@ -1,2 +0,0 @@
1
- "use client";
2
- "use strict";import{a as e,b as o,c as r}from"./chunk-FFRWVVUZ.mjs";import"./chunk-3EYN2AKU.mjs";export{e as Avatar,r as AvatarFallback,o as AvatarImage};
@@ -1,2 +0,0 @@
1
- import '@testing-library/jest-dom';
2
- export {};