@stackshift-ui/features 6.0.2 → 6.0.4
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-D7JAVEFI.mjs → chunk-5WUEW27K.mjs} +1 -1
- package/dist/chunk-BD6NAK3H.mjs +1 -0
- package/dist/chunk-GL45B7XR.mjs +1 -0
- package/dist/chunk-L75Y6DJF.mjs +1 -0
- package/dist/features.js +1 -1
- package/dist/features.mjs +1 -1
- package/dist/features_e.js +1 -1
- package/dist/features_e.mjs +1 -1
- package/dist/features_f.js +1 -1
- package/dist/features_f.mjs +1 -1
- package/dist/features_g.js +1 -1
- package/dist/features_g.mjs +1 -1
- package/dist/features_h.js +1 -1
- package/dist/features_h.mjs +1 -1
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +12 -11
- package/src/features.test.tsx +13 -0
- package/src/features.tsx +64 -0
- package/src/features_a.tsx +95 -0
- package/src/features_b.tsx +119 -0
- package/src/features_c.tsx +76 -0
- package/src/features_d.tsx +74 -0
- package/src/features_e.tsx +143 -0
- package/src/features_f.tsx +120 -0
- package/src/features_g.tsx +138 -0
- package/src/features_h.tsx +135 -0
- package/src/index.ts +12 -0
- package/src/types.ts +412 -0
- package/dist/chunk-CUE2SXLU.mjs +0 -1
- package/dist/chunk-LXDA6H5R.mjs +0 -1
- package/dist/chunk-N5NYGJGG.mjs +0 -1
- /package/dist/{chunk-LL2JDB7J.mjs → chunk-KVUWMIYP.mjs} +0 -0
package/dist/chunk-N5NYGJGG.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import v from"react";import{Heading as x}from"@stackshift-ui/heading";import{Text as s}from"@stackshift-ui/text";import{Image as w}from"@stackshift-ui/image";import{Section as h}from"@stackshift-ui/section";import{Container as d}from"@stackshift-ui/container";import{Flex as u}from"@stackshift-ui/flex";import{jsx as l,jsxs as a}from"react/jsx-runtime";function b({caption:e,title:t,description:r,images:n,tags:i}){return l(h,{className:"py-20 bg-background",children:l(d,{maxWidth:1280,children:a(u,{wrap:!0,align:"center",children:[l("div",{className:"w-full px-4 mb-12 lg:mb-0 lg:w-1/2",children:a(d,{maxWidth:448,children:[l(N,{caption:e,title:t,description:r}),l(F,{tags:i})]})}),l(I,{images:n})]})})})}function N({caption:e,title:t,description:r}){return a(v.Fragment,{children:[e&&l(s,{weight:"bold",className:"text-secondary",children:e}),t&&l(x,{fontSize:"3xl",className:"mb-3",children:t}),r&&l(s,{muted:!0,className:"mb-6 leading-loose ",children:r})]})}function F({tags:e}){return e?l("ul",{className:"font-bold text-gray-500",children:e.map(t=>l(y,{item:t}))}):null}function y({item:e}){return e?a(u,{as:"li",align:"center",className:"mb-2 ",children:[l("svg",{className:"w-5 h-5 mr-2 text-primary-foreground",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",children:l("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z",clipRule:"evenodd"})}),l("span",{children:e})]}):null}function I({images:e}){var r,n,i,o;if(!e||(e==null?void 0:e.length)===0)return null;function t(g,m,c,f,p){return l("div",{className:`overflow-hidden rounded ${p}`,children:l(w,{className:"object-cover w-full h-auto",src:g,sizes:"100vw",width:c,height:f,alt:m!=null?m:"feature-image"})})}return a("div",{className:"w-full lg:w-1/2",children:[a("div",{className:"items-end mb-4 lg:flex lg:flex-wrap",children:[l("div",{className:"h-full px-3 mb-4 lg:mb-0 lg:w-2/3",children:((r=e[0])==null?void 0:r.image)&&t(e[0].image,e[0].alt,356,192,"h-[269px]")}),l("div",{className:"h-full px-3 lg:w-1/3",children:((n=e[1])==null?void 0:n.image)&&t(e[1].image,e[1].alt,166,128,"")})]}),a("div",{className:"items-start mb-4 lg:flex lg:flex-wrap",children:[l("div",{className:"h-full px-3 mb-4 lg:mb-0 lg:w-1/3",children:((i=e[2])==null?void 0:i.image)&&t(e[2].image,e[2].alt,166,128,"h-[269px] lg:h-[126px]")}),l("div",{className:"h-full px-3 lg:w-2/3",children:((o=e[3])==null?void 0:o.image)&&t(e[3].image,e[3].alt,356,192,"")})]})]})}export{b as a};
|
|
File without changes
|