@maelstrom-futurism/core 0.8.0 → 0.8.2

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.
@@ -24,5 +24,5 @@ $height-high: 100;
24
24
  $height-top: 1000;
25
25
 
26
26
  $border-radius: #{list.nth($spaces, 5)}px;
27
- $input-radius: #{list.nth($spaces, 4)}px;
27
+ $input-radius: #{list.nth($spaces, 2)}px;
28
28
  $button-radius: #{list.nth($spaces, 3)}px;
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import{c as A,j as B,a as Q,G as E}from"./@emotion-C2NDvExs.mjs";import{createContext as M,useContext as I}from"react";var g=/* @__PURE__ */(A=>(A[A.LOW=0]="LOW",A[A.MEDIUM=1]="MEDIUM",A[A.HIGH=2]="HIGH",A))(g||{}),C=/* @__PURE__ */(A=>(A[A.NORTH=0]="NORTH",A[A.NORTHEAST=1]="NORTHEAST",A[A.EAST=2]="EAST",A[A.SOUTHEAST=3]="SOUTHEAST",A[A.SOUTH=4]="SOUTH",A[A.SOUTHWEST=5]="SOUTHWEST",A[A.WEST=6]="WEST",A[A.NORTHWEST=7]="NORTHWEST",A))(C||{});const w={spaces:"0, 4, 8, 16, 24, 32, 40, 48, 64",sizesBase:"16px",sizesSm:"0.707em",sizesNormal:"1em",sizesMd:"1.414em",sizesLg:"2em",sizesXl:"2.827em",sizesXxl:"4em",bpXs:"0px",bpSm:"576px",bpMd:"992px",bpLg:"1200px",heightBottom:"-1000",heightLow:"-100",heightSunk:"-10",heightNormal:"0",heightRaised:"10",heightHigh:"100",heightTop:"1000",borderRadius:"24px",inputRadius:"16px",buttonRadius:"8px"};class Y{colors;sizes={base:w.sizesBase,sm:w.sizesSm,normal:w.sizesNormal,md:w.sizesMd,lg:w.sizesLg,xl:w.sizesXl,xxl:w.sizesXxl};breakpoints={xs:w.bpXs,sm:w.bpSm,md:w.bpMd,lg:w.bpLg};space=w.spaces.split(", ");heights={bottom:w.heightBottom,low:w.heightLow,sunk:w.heightSunk,normal:w.heightNormal,raised:w.heightRaised,high:w.heightHigh,top:w.heightTop};borderRadius=w.borderRadius;inputRadius=w.inputRadius;buttonRadius=w.buttonRadius;size(A){return this.sizes[A]}color=A=>this.colors[A];bp=A=>this.breakpoints[A];height=A=>this.heights[A];constructor(A){this.colors=A.colorSet}}const F={nordDark:{background:"#242933",borderMuted:"#303744",border:"#2e3440",content:"#2e3440",textColor:"#eceff4",linkColor:"#88c0d0",primary:"#5e81ac",secondary:"#81a1c1",alert:"#bf616a",warning:"#ebcb8b",success:"#a3be8c",info:"#5e81ac"},nordLight:{background:"#eceff4",borderMuted:"#303744",border:"#2e3440",content:"#eceff4",textColor:"#242933",linkColor:"#88c0d0",primary:"#5e81ac",secondary:"#81a1c1",alert:"#bf616a",warning:"#ebcb8b",success:"#a3be8c",info:"#5e81ac"}},U=A=>new Y({colorSet:F[A]}),D=M(U("nordDark")),N=()=>I(D),R=({theme:M,children:I})=>{const g=M,C=A`
1
+ import{c as A,j as B,a as Q,G as E}from"./@emotion-C2NDvExs.mjs";import{createContext as M,useContext as I}from"react";var g=/* @__PURE__ */(A=>(A[A.LOW=0]="LOW",A[A.MEDIUM=1]="MEDIUM",A[A.HIGH=2]="HIGH",A))(g||{}),C=/* @__PURE__ */(A=>(A[A.NORTH=0]="NORTH",A[A.NORTHEAST=1]="NORTHEAST",A[A.EAST=2]="EAST",A[A.SOUTHEAST=3]="SOUTHEAST",A[A.SOUTH=4]="SOUTH",A[A.SOUTHWEST=5]="SOUTHWEST",A[A.WEST=6]="WEST",A[A.NORTHWEST=7]="NORTHWEST",A))(C||{});const w={spaces:"0, 4, 8, 16, 24, 32, 40, 48, 64",sizesBase:"16px",sizesSm:"0.707em",sizesNormal:"1em",sizesMd:"1.414em",sizesLg:"2em",sizesXl:"2.827em",sizesXxl:"4em",bpXs:"0px",bpSm:"576px",bpMd:"992px",bpLg:"1200px",heightBottom:"-1000",heightLow:"-100",heightSunk:"-10",heightNormal:"0",heightRaised:"10",heightHigh:"100",heightTop:"1000",borderRadius:"24px",inputRadius:"4px",buttonRadius:"8px"};class Y{colors;sizes={base:w.sizesBase,sm:w.sizesSm,normal:w.sizesNormal,md:w.sizesMd,lg:w.sizesLg,xl:w.sizesXl,xxl:w.sizesXxl};breakpoints={xs:w.bpXs,sm:w.bpSm,md:w.bpMd,lg:w.bpLg};space=w.spaces.split(", ");heights={bottom:w.heightBottom,low:w.heightLow,sunk:w.heightSunk,normal:w.heightNormal,raised:w.heightRaised,high:w.heightHigh,top:w.heightTop};borderRadius=w.borderRadius;inputRadius=w.inputRadius;buttonRadius=w.buttonRadius;size(A){return this.sizes[A]}color=A=>this.colors[A];bp=A=>this.breakpoints[A];height=A=>this.heights[A];constructor(A){this.colors=A.colorSet}}const F={nordDark:{background:"#242933",borderMuted:"#303744",border:"#2e3440",content:"#2e3440",textColor:"#eceff4",linkColor:"#88c0d0",primary:"#5e81ac",secondary:"#81a1c1",alert:"#bf616a",warning:"#ebcb8b",success:"#a3be8c",info:"#5e81ac"},nordLight:{background:"#eceff4",borderMuted:"#303744",border:"#2e3440",content:"#eceff4",textColor:"#242933",linkColor:"#88c0d0",primary:"#5e81ac",secondary:"#81a1c1",alert:"#bf616a",warning:"#ebcb8b",success:"#a3be8c",info:"#5e81ac"}},U=A=>new Y({colorSet:F[A]}),D=M(U("nordDark")),N=()=>I(D),R=({theme:M,children:I})=>{const g=M,C=A`
2
2
  html {
3
3
  box-sizing: border-box;
4
4
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maelstrom-futurism/core",
3
- "version": "0.8.0",
3
+ "version": "0.8.2",
4
4
  "description": "Core package for shared resources in Maelstrom Futurism",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -29,5 +29,5 @@
29
29
  "url": "https://github.com/DawsonG/maelstrom-futurism/issues"
30
30
  },
31
31
  "homepage": "https://github.com/DawsonG/maelstrom-futurism#readme",
32
- "gitHead": "38c4e6dff8d93b52e28b3ead27b9a187c6f4d365"
32
+ "gitHead": "c3d50c9a2715902356717c42dacb4db12295e633"
33
33
  }