smooth-components 1.0.7 → 1.0.9

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,6 +1,4 @@
1
- import { FC } from 'react';
2
1
  import { JSX } from 'react';
3
- import { PropsWithChildren } from 'react';
4
2
 
5
3
  export declare const Poster: ({ alt, src, styles }: PosterProps) => JSX.Element;
6
4
 
@@ -14,6 +12,4 @@ declare type PosterProps = {
14
12
  };
15
13
  };
16
14
 
17
- export declare const Title: FC<PropsWithChildren>;
18
-
19
15
  export { }
@@ -1,31 +1,27 @@
1
1
  (function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode(".poster-container{position:relative;z-index:30;margin-bottom:6rem;border-radius:3px;overflow:hidden;border:25px solid black;background-color:#6b728080;opacity:.8;cursor:pointer;transform:translateY(0) scale(1);transition:all .3s ease-out;box-shadow:0 20px 25px -5px #000000e6,0 8px 10px -6px #0000001a;filter:grayscale(.1) contrast(.99) sepia(.05) blur(0px)}.poster-container.group{display:none}@media (min-width: 1024px){.poster-container{margin-bottom:0}}.poster-container:hover{transform:scale(1.01) translateY(-.25rem);box-shadow:0 25px 50px -12px #00000040,0 0 20px #ffffff4d}.poster-image{width:100%;height:100%;object-fit:cover;-webkit-user-select:none;user-select:none;pointer-events:none;filter:blur(.4px);transition:all .3s ease-in-out;display:block}.poster-container:hover .poster-image{filter:blur(.2px);transform:scale(1.01)}.poster-image-glint{position:absolute;top:0;left:-100%;width:100%;height:100%;pointer-events:none;z-index:10;background:linear-gradient(to right,transparent,rgba(255,255,255,.4),transparent);transform:skew(-12deg);transition:all .6s ease-in-out}.poster-container:hover .poster-image-glint{left:100%}")),document.head.appendChild(e)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}})();
2
- import { jsxs as s, jsx as e } from "react/jsx-runtime";
3
- const d = ({ children: t }) => /* @__PURE__ */ s("h1", { style: { color: "red" }, children: [
4
- "alexa",
5
- t
6
- ] }), n = 0.91, l = "auto", m = "auto", h = ({ alt: t, src: o, styles: r }) => {
2
+ import { jsxs as r, jsx as t } from "react/jsx-runtime";
3
+ const n = 0.91, m = "auto", l = "auto", T = ({ alt: s, src: o, styles: e }) => {
7
4
  const {
8
5
  opacity: a = n,
9
- height: c = m,
10
- width: i = l
11
- } = r ?? {};
12
- return /* @__PURE__ */ s(
6
+ height: i = l,
7
+ width: c = m
8
+ } = e ?? {};
9
+ return /* @__PURE__ */ r(
13
10
  "div",
14
11
  {
15
12
  className: "poster-container",
16
13
  style: {
17
14
  opacity: a,
18
- height: c,
19
- width: i
15
+ height: i,
16
+ width: c
20
17
  },
21
18
  children: [
22
- /* @__PURE__ */ e("img", { alt: t, src: o, className: "poster-image" }),
23
- /* @__PURE__ */ e("div", { className: "poster-image-glint" })
19
+ /* @__PURE__ */ t("img", { alt: s, src: o, className: "poster-image" }),
20
+ /* @__PURE__ */ t("div", { className: "poster-image-glint" })
24
21
  ]
25
22
  }
26
23
  );
27
24
  };
28
25
  export {
29
- h as Poster,
30
- d as Title
26
+ T as Poster
31
27
  };
@@ -1,2 +1,2 @@
1
1
  (function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode(".poster-container{position:relative;z-index:30;margin-bottom:6rem;border-radius:3px;overflow:hidden;border:25px solid black;background-color:#6b728080;opacity:.8;cursor:pointer;transform:translateY(0) scale(1);transition:all .3s ease-out;box-shadow:0 20px 25px -5px #000000e6,0 8px 10px -6px #0000001a;filter:grayscale(.1) contrast(.99) sepia(.05) blur(0px)}.poster-container.group{display:none}@media (min-width: 1024px){.poster-container{margin-bottom:0}}.poster-container:hover{transform:scale(1.01) translateY(-.25rem);box-shadow:0 25px 50px -12px #00000040,0 0 20px #ffffff4d}.poster-image{width:100%;height:100%;object-fit:cover;-webkit-user-select:none;user-select:none;pointer-events:none;filter:blur(.4px);transition:all .3s ease-in-out;display:block}.poster-container:hover .poster-image{filter:blur(.2px);transform:scale(1.01)}.poster-image-glint{position:absolute;top:0;left:-100%;width:100%;height:100%;pointer-events:none;z-index:10;background:linear-gradient(to right,transparent,rgba(255,255,255,.4),transparent);transform:skew(-12deg);transition:all .6s ease-in-out}.poster-container:hover .poster-image-glint{left:100%}")),document.head.appendChild(e)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}})();
2
- (function(e,t){typeof exports=="object"&&typeof module<"u"?t(exports,require("react/jsx-runtime")):typeof define=="function"&&define.amd?define(["exports","react/jsx-runtime"],t):(e=typeof globalThis<"u"?globalThis:e||self,t(e.FaztComponents={},e["react/jsx-runtime"]))})(this,function(e,t){"use strict";const n=({children:s})=>t.jsxs("h1",{style:{color:"red"},children:["alexa",s]}),o="auto",i="auto",r=({alt:s,src:c,styles:a})=>{const{opacity:d=.91,height:l=i,width:u=o}=a??{};return t.jsxs("div",{className:"poster-container",style:{opacity:d,height:l,width:u},children:[t.jsx("img",{alt:s,src:c,className:"poster-image"}),t.jsx("div",{className:"poster-image-glint"})]})};e.Poster=r,e.Title=n,Object.defineProperty(e,Symbol.toStringTag,{value:"Module"})});
2
+ (function(e,t){typeof exports=="object"&&typeof module<"u"?t(exports,require("react/jsx-runtime")):typeof define=="function"&&define.amd?define(["exports","react/jsx-runtime"],t):(e=typeof globalThis<"u"?globalThis:e||self,t(e.FaztComponents={},e["react/jsx-runtime"]))})(this,function(e,t){"use strict";const s="auto",n="auto",o=({alt:i,src:r,styles:c})=>{const{opacity:a=.91,height:d=n,width:u=s}=c??{};return t.jsxs("div",{className:"poster-container",style:{opacity:a,height:d,width:u},children:[t.jsx("img",{alt:i,src:r,className:"poster-image"}),t.jsx("div",{className:"poster-image-glint"})]})};e.Poster=o,Object.defineProperty(e,Symbol.toStringTag,{value:"Module"})});
package/package.json CHANGED
@@ -1,6 +1,7 @@
1
1
  {
2
2
  "name": "smooth-components",
3
- "version": "1.0.7",
3
+ "description": "A collection of smooth and elegant React components for building modern web applications",
4
+ "version": "1.0.9",
4
5
  "type": "module",
5
6
  "files": [
6
7
  "dist"