@stackshift-ui/logo-cloud 6.0.5 → 6.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 +1,7 @@
1
- import{a}from"./chunk-GGOHIST3.mjs";export{a as LogoCloud_C,a as default};
1
+ import {
2
+ LogoCloud_C
3
+ } from "./chunk-ZFA2DQJY.mjs";
4
+ export {
5
+ LogoCloud_C,
6
+ LogoCloud_C as default
7
+ };
@@ -1 +1,61 @@
1
- "use strict";var e=Object.defineProperty;var x=Object.getOwnPropertyDescriptor;var m=Object.getOwnPropertyNames;var a=Object.prototype.hasOwnProperty;var i=(o,r)=>{for(var t in r)e(o,t,{get:r[t],enumerable:!0})},w=(o,r,t,p)=>{if(r&&typeof r=="object"||typeof r=="function")for(let n of m(r))!a.call(o,n)&&n!==t&&e(o,n,{get:()=>r[n],enumerable:!(p=x(r,n))||p.enumerable});return o};var b=o=>w(e({},"__esModule",{value:!0}),o);var C={};i(C,{LogoCloud_D:()=>s,default:()=>s});module.exports=b(C);var c=require("@stackshift-ui/container"),u=require("@stackshift-ui/flex"),d=require("@stackshift-ui/image"),f=require("@stackshift-ui/section"),l=require("react/jsx-runtime");function s({images:o}){return(0,l.jsx)(f.Section,{className:"py-20 bg-background",children:(0,l.jsx)(c.Container,{maxWidth:1280,children:(0,l.jsx)(u.Flex,{wrap:!0,justify:"center",align:"center",children:o&&(o==null?void 0:o.map((r,t)=>(0,l.jsx)(h,{image:r})))})})})}function h({image:o}){var r;return o?(0,l.jsx)("div",{className:"w-full px-2 mb-4 md:w-1/3 lg:mr-10 lg:w-1/6 xl:mr-0",children:(o==null?void 0:o.image)&&(0,l.jsx)(u.Flex,{align:"center",justify:"center",className:"mx-auto h-[192px] w-[192px] rounded-global bg-gray-50",children:(0,l.jsx)(d.Image,{className:"object-scale-down w-full h-full",src:`${o==null?void 0:o.image}`,sizes:"192px",width:192,height:192,alt:(r=o==null?void 0:o.alt)!=null?r:"logoCloud-image"})})}):null}0&&(module.exports={LogoCloud_D});
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+
20
+ // src/logo-cloud_d.tsx
21
+ var logo_cloud_d_exports = {};
22
+ __export(logo_cloud_d_exports, {
23
+ LogoCloud_D: () => LogoCloud_D,
24
+ default: () => LogoCloud_D
25
+ });
26
+ module.exports = __toCommonJS(logo_cloud_d_exports);
27
+ var import_container = require("@stackshift-ui/container");
28
+ var import_flex = require("@stackshift-ui/flex");
29
+ var import_image = require("@stackshift-ui/image");
30
+ var import_section = require("@stackshift-ui/section");
31
+ var import_jsx_runtime = require("react/jsx-runtime");
32
+ function LogoCloud_D({ images }) {
33
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_section.Section, { className: "py-20 bg-background", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_container.Container, { maxWidth: 1280, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_flex.Flex, { wrap: true, justify: "center", align: "center", children: images && (images == null ? void 0 : images.map((image, index) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(LogoItem, { image }))) }) }) });
34
+ }
35
+ function LogoItem({ image }) {
36
+ var _a;
37
+ if (!image) return null;
38
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "w-full px-2 mb-4 md:w-1/3 lg:mr-10 lg:w-1/6 xl:mr-0", children: (image == null ? void 0 : image.image) && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
39
+ import_flex.Flex,
40
+ {
41
+ align: "center",
42
+ justify: "center",
43
+ className: "mx-auto h-[192px] w-[192px] rounded-global bg-gray-50",
44
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
45
+ import_image.Image,
46
+ {
47
+ className: "object-scale-down w-full h-full",
48
+ src: `${image == null ? void 0 : image.image}`,
49
+ sizes: "192px",
50
+ width: 192,
51
+ height: 192,
52
+ alt: (_a = image == null ? void 0 : image.alt) != null ? _a : `logoCloud-image`
53
+ }
54
+ )
55
+ }
56
+ ) });
57
+ }
58
+ // Annotate the CommonJS export names for ESM import in node:
59
+ 0 && (module.exports = {
60
+ LogoCloud_D
61
+ });
@@ -1 +1,7 @@
1
- import{a}from"./chunk-J6G7MDDQ.mjs";export{a as LogoCloud_D,a as default};
1
+ import {
2
+ LogoCloud_D
3
+ } from "./chunk-YP376ODG.mjs";
4
+ export {
5
+ LogoCloud_D,
6
+ LogoCloud_D as default
7
+ };
package/dist/types.js CHANGED
@@ -1 +1,18 @@
1
- "use strict";var l=Object.defineProperty;var s=Object.getOwnPropertyDescriptor;var a=Object.getOwnPropertyNames;var o=Object.prototype.hasOwnProperty;var g=(n,t,r,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let e of a(t))!o.call(n,e)&&e!==r&&l(n,e,{get:()=>t[e],enumerable:!(i=s(t,e))||i.enumerable});return n};var u=n=>g(l({},"__esModule",{value:!0}),n);var c={};module.exports=u(c);
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __copyProps = (to, from, except, desc) => {
7
+ if (from && typeof from === "object" || typeof from === "function") {
8
+ for (let key of __getOwnPropNames(from))
9
+ if (!__hasOwnProp.call(to, key) && key !== except)
10
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
11
+ }
12
+ return to;
13
+ };
14
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
15
+
16
+ // src/types.ts
17
+ var types_exports = {};
18
+ module.exports = __toCommonJS(types_exports);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stackshift-ui/logo-cloud",
3
3
  "description": "",
4
- "version": "6.0.5",
4
+ "version": "6.0.6",
5
5
  "private": false,
6
6
  "sideEffects": false,
7
7
  "main": "./dist/index.js",
@@ -29,18 +29,18 @@
29
29
  "typescript": "^5.6.2",
30
30
  "vite-tsconfig-paths": "^5.0.1",
31
31
  "vitest": "^2.1.1",
32
- "@stackshift-ui/eslint-config": "6.0.2",
33
- "@stackshift-ui/typescript-config": "6.0.2"
32
+ "@stackshift-ui/typescript-config": "6.0.2",
33
+ "@stackshift-ui/eslint-config": "6.0.2"
34
34
  },
35
35
  "dependencies": {
36
- "@stackshift-ui/scripts": "6.0.2",
36
+ "@stackshift-ui/heading": "6.0.3",
37
37
  "@stackshift-ui/system": "6.0.3",
38
+ "@stackshift-ui/section": "6.0.3",
39
+ "@stackshift-ui/scripts": "6.0.2",
38
40
  "@stackshift-ui/button": "6.0.3",
39
- "@stackshift-ui/heading": "6.0.3",
40
41
  "@stackshift-ui/text": "6.0.3",
41
- "@stackshift-ui/image": "6.0.3",
42
- "@stackshift-ui/section": "6.0.3",
43
42
  "@stackshift-ui/container": "6.0.3",
43
+ "@stackshift-ui/image": "6.0.3",
44
44
  "@stackshift-ui/flex": "6.0.3"
45
45
  },
46
46
  "peerDependencies": {
@@ -12,7 +12,7 @@ export default function LogoCloud_A({ title, images }: LogoCloudProps) {
12
12
  <Section className="py-20 bg-background">
13
13
  <Container maxWidth={1280}>
14
14
  <Title title={title} />
15
- <Flex wrap justify="center" align="center">
15
+ <Flex wrap justify="center" align="center" gap={3}>
16
16
  <LogoCloudImages images={images} />
17
17
  </Flex>
18
18
  </Container>
@@ -36,12 +36,12 @@ function LogoCloudImages({ images }: { images?: Images[] }) {
36
36
  return (
37
37
  <React.Fragment>
38
38
  {images?.map((image, index) => (
39
- <div className="w-full px-2 mb-4 md:w-1/3 lg:mr-10 lg:w-1/6 xl:mr-0" key={index}>
39
+ <div key={index}>
40
40
  {image?.image ? (
41
41
  <Flex
42
42
  align="center"
43
43
  justify="center"
44
- className="mx-auto h-[192px] w-[192px] rounded-global bg-gray-50">
44
+ className="h-[192px] w-[192px] rounded-global bg-gray-50">
45
45
  <Image
46
46
  className="object-scale-down"
47
47
  src={`${image?.image}`}
@@ -1 +0,0 @@
1
- import{Container as u}from"@stackshift-ui/container";import{Flex as e}from"@stackshift-ui/flex";import{Heading as a}from"@stackshift-ui/heading";import{Image as c}from"@stackshift-ui/image";import{Section as m}from"@stackshift-ui/section";import p from"react";import{jsx as r,jsxs as d}from"react/jsx-runtime";function f({title:t,images:o}){return r(m,{className:"py-20 bg-background",children:d(u,{maxWidth:1280,children:[r(s,{title:t}),r(e,{wrap:!0,justify:"center",align:"center",children:r(i,{images:o})})]})})}function s({title:t}){return t?r(a,{className:"mb-12 text-center",fontSize:"2xl",children:t}):null}function i({images:t}){return t?r(p.Fragment,{children:t==null?void 0:t.map((o,l)=>{var n;return r("div",{className:"w-full px-2 mb-4 md:w-1/3 lg:mr-10 lg:w-1/6 xl:mr-0",children:o!=null&&o.image?r(e,{align:"center",justify:"center",className:"mx-auto h-[192px] w-[192px] rounded-global bg-gray-50",children:r(c,{className:"object-scale-down",src:`${o==null?void 0:o.image}`,sizes:"192px",width:192,height:192,alt:(n=o==null?void 0:o.alt)!=null?n:`logoCloud-image${l}`})}):null},l)})}):null}export{f as a};
File without changes