@stackshift-ui/section 6.0.11-beta.1 → 6.0.11

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 @@
1
- import{DefaultComponent as c,useStackShiftUIComponents as r}from"@stackshift-ui/system";import i from"classnames";import{jsx as x}from"react/jsx-runtime";var o="Section",d=({children:s,className:n,maxWidth:t="full",as:p,...l})=>{let{[o]:a=c}=r(),e=typeof t=="number"?`${t.toString()}px`:{sm:"384px",md:"448px",lg:"512px",xl:"576px","2xl":"672px",full:"100%"}[t],m=e!=null?e:"80rem";return x(a,{as:p,className:i("mx-auto w-full lg:px-4",n),style:{maxWidth:m},...l,"data-testid":o,children:s})};d.displayName=o;export{d as a};
1
+ import{DefaultComponent as c,useStackShiftUIComponents as r}from"@stackshift-ui/system";import i from"classnames";import{jsx as x}from"react/jsx-runtime";var o="Section",d=({children:s,className:n,maxWidth:t="full",as:p,...a})=>{let{[o]:l=c}=r(),e=typeof t=="number"?`${t.toString()}px`:{sm:"384px",md:"448px",lg:"512px",xl:"576px","2xl":"672px",full:"100%"}[t],m=e!=null?e:"80rem";return x(l,{as:p,className:i("mx-auto w-full px-4",n),style:{maxWidth:m},...a,"data-testid":o,children:s})};d.displayName=o;export{d as a};
package/dist/index.js CHANGED
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- "use strict";var u=Object.create;var p=Object.defineProperty;var y=Object.getOwnPropertyDescriptor;var S=Object.getOwnPropertyNames;var h=Object.getPrototypeOf,N=Object.prototype.hasOwnProperty;var g=(t,e)=>{for(var o in e)p(t,o,{get:e[o],enumerable:!0})},r=(t,e,o,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of S(e))!N.call(t,s)&&s!==o&&p(t,s,{get:()=>e[s],enumerable:!(n=y(e,s))||n.enumerable});return t};var T=(t,e,o)=>(o=t!=null?u(h(t)):{},r(e||!t||!t.__esModule?p(o,"default",{value:t,enumerable:!0}):o,t)),C=t=>r(p({},"__esModule",{value:!0}),t);var P={};g(P,{Section:()=>i});module.exports=C(P);var l=require("@stackshift-ui/system"),c=T(require("classnames")),x=require("react/jsx-runtime"),a="Section",i=({children:t,className:e,maxWidth:o="full",as:n,...s})=>{let{[a]:d=l.DefaultComponent}=(0,l.useStackShiftUIComponents)(),m=typeof o=="number"?`${o.toString()}px`:{sm:"384px",md:"448px",lg:"512px",xl:"576px","2xl":"672px",full:"100%"}[o],f=m!=null?m:"80rem";return(0,x.jsx)(d,{as:n,className:(0,c.default)("mx-auto w-full lg:px-4",e),style:{maxWidth:f},...s,"data-testid":a,children:t})};i.displayName=a;0&&(module.exports={Section});
2
+ "use strict";var u=Object.create;var p=Object.defineProperty;var y=Object.getOwnPropertyDescriptor;var S=Object.getOwnPropertyNames;var h=Object.getPrototypeOf,N=Object.prototype.hasOwnProperty;var T=(t,e)=>{for(var o in e)p(t,o,{get:e[o],enumerable:!0})},r=(t,e,o,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of S(e))!N.call(t,s)&&s!==o&&p(t,s,{get:()=>e[s],enumerable:!(n=y(e,s))||n.enumerable});return t};var g=(t,e,o)=>(o=t!=null?u(h(t)):{},r(e||!t||!t.__esModule?p(o,"default",{value:t,enumerable:!0}):o,t)),C=t=>r(p({},"__esModule",{value:!0}),t);var P={};T(P,{Section:()=>i});module.exports=C(P);var l=require("@stackshift-ui/system"),c=g(require("classnames")),x=require("react/jsx-runtime"),a="Section",i=({children:t,className:e,maxWidth:o="full",as:n,...s})=>{let{[a]:d=l.DefaultComponent}=(0,l.useStackShiftUIComponents)(),m=typeof o=="number"?`${o.toString()}px`:{sm:"384px",md:"448px",lg:"512px",xl:"576px","2xl":"672px",full:"100%"}[o],f=m!=null?m:"80rem";return(0,x.jsx)(d,{as:n,className:(0,c.default)("mx-auto w-full px-4",e),style:{maxWidth:f},...s,"data-testid":a,children:t})};i.displayName=a;0&&(module.exports={Section});
package/dist/index.mjs CHANGED
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- "use strict";import{a as e}from"./chunk-AWKIIJRP.mjs";export{e as Section};
2
+ "use strict";import{a as e}from"./chunk-ROXQZ2U5.mjs";export{e as Section};
package/dist/section.js CHANGED
@@ -1 +1 @@
1
- "use strict";var u=Object.create;var p=Object.defineProperty;var y=Object.getOwnPropertyDescriptor;var S=Object.getOwnPropertyNames;var h=Object.getPrototypeOf,N=Object.prototype.hasOwnProperty;var g=(t,e)=>{for(var o in e)p(t,o,{get:e[o],enumerable:!0})},c=(t,e,o,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of S(e))!N.call(t,s)&&s!==o&&p(t,s,{get:()=>e[s],enumerable:!(n=y(e,s))||n.enumerable});return t};var T=(t,e,o)=>(o=t!=null?u(h(t)):{},c(e||!t||!t.__esModule?p(o,"default",{value:t,enumerable:!0}):o,t)),C=t=>c(p({},"__esModule",{value:!0}),t);var P={};g(P,{Section:()=>i});module.exports=C(P);var l=require("@stackshift-ui/system"),r=T(require("classnames")),d=require("react/jsx-runtime"),m="Section",i=({children:t,className:e,maxWidth:o="full",as:n,...s})=>{let{[m]:x=l.DefaultComponent}=(0,l.useStackShiftUIComponents)(),a=typeof o=="number"?`${o.toString()}px`:{sm:"384px",md:"448px",lg:"512px",xl:"576px","2xl":"672px",full:"100%"}[o],f=a!=null?a:"80rem";return(0,d.jsx)(x,{as:n,className:(0,r.default)("mx-auto w-full lg:px-4",e),style:{maxWidth:f},...s,"data-testid":m,children:t})};i.displayName=m;0&&(module.exports={Section});
1
+ "use strict";var u=Object.create;var p=Object.defineProperty;var y=Object.getOwnPropertyDescriptor;var S=Object.getOwnPropertyNames;var h=Object.getPrototypeOf,N=Object.prototype.hasOwnProperty;var T=(t,e)=>{for(var o in e)p(t,o,{get:e[o],enumerable:!0})},c=(t,e,o,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of S(e))!N.call(t,s)&&s!==o&&p(t,s,{get:()=>e[s],enumerable:!(n=y(e,s))||n.enumerable});return t};var g=(t,e,o)=>(o=t!=null?u(h(t)):{},c(e||!t||!t.__esModule?p(o,"default",{value:t,enumerable:!0}):o,t)),C=t=>c(p({},"__esModule",{value:!0}),t);var P={};T(P,{Section:()=>i});module.exports=C(P);var a=require("@stackshift-ui/system"),r=g(require("classnames")),d=require("react/jsx-runtime"),m="Section",i=({children:t,className:e,maxWidth:o="full",as:n,...s})=>{let{[m]:x=a.DefaultComponent}=(0,a.useStackShiftUIComponents)(),l=typeof o=="number"?`${o.toString()}px`:{sm:"384px",md:"448px",lg:"512px",xl:"576px","2xl":"672px",full:"100%"}[o],f=l!=null?l:"80rem";return(0,d.jsx)(x,{as:n,className:(0,r.default)("mx-auto w-full px-4",e),style:{maxWidth:f},...s,"data-testid":m,children:t})};i.displayName=m;0&&(module.exports={Section});
package/dist/section.mjs CHANGED
@@ -1 +1 @@
1
- import{a}from"./chunk-AWKIIJRP.mjs";export{a as Section};
1
+ import{a}from"./chunk-ROXQZ2U5.mjs";export{a as Section};
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stackshift-ui/section",
3
3
  "description": "",
4
- "version": "6.0.11-beta.1",
4
+ "version": "6.0.11",
5
5
  "private": false,
6
6
  "sideEffects": false,
7
7
  "main": "./dist/index.js",
@@ -29,16 +29,16 @@
29
29
  "typescript": "^5.6.2",
30
30
  "vite-tsconfig-paths": "^5.0.1",
31
31
  "vitest": "^2.1.1",
32
- "@stackshift-ui/typescript-config": "6.0.10-beta.1",
33
- "@stackshift-ui/eslint-config": "6.0.10-beta.1"
32
+ "@stackshift-ui/eslint-config": "6.0.10",
33
+ "@stackshift-ui/typescript-config": "6.0.10"
34
34
  },
35
35
  "dependencies": {
36
36
  "classnames": "^2.5.1",
37
- "@stackshift-ui/scripts": "6.0.10-beta.1",
38
- "@stackshift-ui/system": "6.0.11-beta.1"
37
+ "@stackshift-ui/scripts": "6.0.10",
38
+ "@stackshift-ui/system": "6.0.11"
39
39
  },
40
40
  "peerDependencies": {
41
- "@stackshift-ui/system": ">=6.0.11-beta.1",
41
+ "@stackshift-ui/system": ">=6.0.11",
42
42
  "@types/react": "16.8 - 19",
43
43
  "next": "10 - 14",
44
44
  "react": "16.8 - 19",
package/src/section.tsx CHANGED
@@ -36,7 +36,7 @@ export const Section: React.FC<SectionProps> = ({
36
36
 
37
37
  const width = widthClass ?? "80rem";
38
38
 
39
- const classes = "mx-auto w-full lg:px-4";
39
+ const classes = "mx-auto w-full px-4";
40
40
 
41
41
  return (
42
42
  <Component