@stackshift-ui/image 7.0.0-beta.5 → 7.0.0-beta.7
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/chunk-UCU4ZDUX.mjs +1 -0
- package/dist/helper/index.d.ts +2 -0
- package/dist/helper/index.js +1 -0
- package/dist/helper/index.mjs +1 -0
- package/dist/image.d.ts +7 -0
- package/dist/image.js +1 -0
- package/dist/image.mjs +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +2 -0
- package/dist/index.mjs +2 -0
- package/dist/types.d.ts +10 -0
- package/dist/types.js +1 -0
- package/package.json +3 -3
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{useStackShiftUIComponents as i}from"@stackshift-ui/system";import{jsx as p}from"react/jsx-runtime";var m="Image",s=({children:o,loading:n="lazy",...e})=>{let t=i(),{[m]:a="img"}=t,r=e.priority?void 0:n;return p(a,{loading:r,...e,children:o})};export{s as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var L=Object.defineProperty;var a=Object.getOwnPropertyDescriptor;var k=Object.getOwnPropertyNames;var s=Object.prototype.hasOwnProperty;var u=(n,e)=>{for(var r in e)L(n,r,{get:e[r],enumerable:!0})},f=(n,e,r,t)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of k(e))!s.call(n,i)&&i!==r&&L(n,i,{get:()=>e[i],enumerable:!(t=a(e,i))||t.enumerable});return n};var p=n=>f(L({},"__esModule",{value:!0}),n);var m={};u(m,{logoLink:()=>x});module.exports=p(m);var x=n=>{var e,r,t;return n!=null&&n.internalLink&&(n==null?void 0:n.type)==="linkInternal"?(r=(e=n==null?void 0:n.internalLink)==null?void 0:e.toLowerCase())!=null&&r.includes("home")?"/":`/${n.internalLink}`:n!=null&&n.externalLink&&(n==null?void 0:n.type)==="linkExternal"&&(t=n==null?void 0:n.externalLink)!=null?t:"/"};0&&(module.exports={logoLink});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var i=n=>{var e,r,t;return n!=null&&n.internalLink&&(n==null?void 0:n.type)==="linkInternal"?(r=(e=n==null?void 0:n.internalLink)==null?void 0:e.toLowerCase())!=null&&r.includes("home")?"/":`/${n.internalLink}`:n!=null&&n.externalLink&&(n==null?void 0:n.type)==="linkExternal"&&(t=n==null?void 0:n.externalLink)!=null?t:"/"};export{i as logoLink};
|
package/dist/image.d.ts
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { HTMLProps, ReactNode } from "react";
|
|
2
|
+
export interface ImageProps extends HTMLProps<HTMLImageElement> {
|
|
3
|
+
priority?: boolean;
|
|
4
|
+
loading?: "lazy" | "eager" | undefined;
|
|
5
|
+
children?: ReactNode;
|
|
6
|
+
}
|
|
7
|
+
export declare const Image: ({ children, loading, ...props }: ImageProps) => import("react/jsx-runtime").JSX.Element;
|
package/dist/image.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var r=Object.defineProperty;var d=Object.getOwnPropertyDescriptor;var s=Object.getOwnPropertyNames;var c=Object.prototype.hasOwnProperty;var g=(o,e)=>{for(var n in e)r(o,n,{get:e[n],enumerable:!0})},l=(o,e,n,a)=>{if(e&&typeof e=="object"||typeof e=="function")for(let t of s(e))!c.call(o,t)&&t!==n&&r(o,t,{get:()=>e[t],enumerable:!(a=d(e,t))||a.enumerable});return o};var f=o=>l(r({},"__esModule",{value:!0}),o);var L={};g(L,{Image:()=>I});module.exports=f(L);var i=require("@stackshift-ui/system"),m=require("react/jsx-runtime"),y="Image",I=({children:o,loading:e="lazy",...n})=>{let a=(0,i.useStackShiftUIComponents)(),{[y]:t="img"}=a,p=n.priority?void 0:e;return(0,m.jsx)(t,{loading:p,...n,children:o})};0&&(module.exports={Image});
|
package/dist/image.mjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a}from"./chunk-UCU4ZDUX.mjs";export{a as Image};
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./image";
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
"use strict";var r=Object.defineProperty;var d=Object.getOwnPropertyDescriptor;var s=Object.getOwnPropertyNames;var c=Object.prototype.hasOwnProperty;var g=(o,e)=>{for(var n in e)r(o,n,{get:e[n],enumerable:!0})},l=(o,e,n,a)=>{if(e&&typeof e=="object"||typeof e=="function")for(let t of s(e))!c.call(o,t)&&t!==n&&r(o,t,{get:()=>e[t],enumerable:!(a=d(e,t))||a.enumerable});return o};var f=o=>l(r({},"__esModule",{value:!0}),o);var u={};g(u,{Image:()=>I});module.exports=f(u);var i=require("@stackshift-ui/system"),m=require("react/jsx-runtime"),y="Image",I=({children:o,loading:e="lazy",...n})=>{let a=(0,i.useStackShiftUIComponents)(),{[y]:t="img"}=a,p=n.priority?void 0:e;return(0,m.jsx)(t,{loading:p,...n,children:o})};0&&(module.exports={Image});
|
package/dist/index.mjs
ADDED
package/dist/types.d.ts
ADDED
package/dist/types.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var r=Object.defineProperty;var a=Object.getOwnPropertyDescriptor;var g=Object.getOwnPropertyNames;var o=Object.prototype.hasOwnProperty;var s=(i,n,l,e)=>{if(n&&typeof n=="object"||typeof n=="function")for(let t of g(n))!o.call(i,t)&&t!==l&&r(i,t,{get:()=>n[t],enumerable:!(e=a(n,t))||e.enumerable});return i};var k=i=>s(r({},"__esModule",{value:!0}),i);var L={};module.exports=k(L);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stackshift-ui/image",
|
|
3
|
-
"version": "7.0.0-beta.
|
|
3
|
+
"version": "7.0.0-beta.7",
|
|
4
4
|
"private": false,
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -31,8 +31,8 @@
|
|
|
31
31
|
"@stackshift-ui/typescript-config": "6.0.10"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@stackshift-ui/scripts": "7.0.0-beta.
|
|
35
|
-
"@stackshift-ui/system": "7.0.0-beta.
|
|
34
|
+
"@stackshift-ui/scripts": "7.0.0-beta.5",
|
|
35
|
+
"@stackshift-ui/system": "7.0.0-beta.6"
|
|
36
36
|
},
|
|
37
37
|
"peerDependencies": {
|
|
38
38
|
"@types/react": "16.8 - 19",
|