@maelstrom-futurism/core 0.8.1 → 0.9.0
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/{@emotion-C2NDvExs.mjs → @emotion-DDqJX_w5.mjs} +1 -1
- package/dist/components/LogoMark.d.ts +5 -0
- package/dist/components/LogoMark.d.ts.map +1 -0
- package/dist/components/LogoMarkFlat.d.ts +5 -0
- package/dist/components/LogoMarkFlat.d.ts.map +1 -0
- package/dist/components/Pill.d.ts +12 -0
- package/dist/components/Pill.d.ts.map +1 -0
- package/dist/hoist-non-react-statics-BeAhdTaE.mjs +1 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +748 -17
- package/dist/motion.d.ts +2 -0
- package/dist/motion.d.ts.map +1 -0
- package/dist/themes/ThemeProvider.d.ts.map +1 -1
- package/dist/themes/createTheme.d.ts +20 -1
- package/dist/themes/createTheme.d.ts.map +1 -1
- package/dist/themes/theme.d.ts +15 -21
- package/dist/themes/theme.d.ts.map +1 -1
- package/dist/tokens.d.ts +32 -0
- package/dist/tokens.d.ts.map +1 -0
- package/package.json +2 -2
- package/dist/_exports.module.scss +0 -8
- package/dist/_variables.module.scss +0 -28
- package/dist/hoist-non-react-statics-DyJq81SJ.mjs +0 -1
package/dist/motion.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"motion.d.ts","sourceRoot":"","sources":["../lib/motion.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,aAAa,mCAAmC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ThemeProvider.d.ts","sourceRoot":"","sources":["../../lib/themes/ThemeProvider.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,SAAS,EAA6B,MAAM,OAAO,CAAC;AASpE,OAAO,KAAK,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"ThemeProvider.d.ts","sourceRoot":"","sources":["../../lib/themes/ThemeProvider.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,SAAS,EAA6B,MAAM,OAAO,CAAC;AASpE,OAAO,KAAK,MAAM,SAAS,CAAC;AAK5B,eAAO,MAAM,QAAQ,aAAiC,CAAC;AAEvD,UAAU,kBAAkB;IACxB,KAAK,EAAE,KAAK,CAAC;IACb,QAAQ,EAAE,SAAS,CAAC;CACvB;AAED,eAAO,MAAM,aAAa,GAAI,qBAAqB,kBAAkB,KAAG,SAiOvE,CAAC"}
|
|
@@ -1,4 +1,23 @@
|
|
|
1
|
+
import { ColorSet } from '../interfaces';
|
|
1
2
|
import { default as Theme } from './theme';
|
|
2
3
|
export type ColorSetName = 'nordDark' | 'nordLight';
|
|
3
|
-
export
|
|
4
|
+
export interface ThemeOverrides {
|
|
5
|
+
colors?: Partial<ColorSet>;
|
|
6
|
+
radii?: {
|
|
7
|
+
input?: string;
|
|
8
|
+
button?: string;
|
|
9
|
+
card?: string;
|
|
10
|
+
pill?: string;
|
|
11
|
+
};
|
|
12
|
+
sizes?: {
|
|
13
|
+
base?: string;
|
|
14
|
+
sm?: string;
|
|
15
|
+
normal?: string;
|
|
16
|
+
md?: string;
|
|
17
|
+
lg?: string;
|
|
18
|
+
xl?: string;
|
|
19
|
+
xxl?: string;
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
export declare const createTheme: (colorSetName: ColorSetName, overrides?: ThemeOverrides) => Theme;
|
|
4
23
|
//# sourceMappingURL=createTheme.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createTheme.d.ts","sourceRoot":"","sources":["../../lib/themes/createTheme.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"createTheme.d.ts","sourceRoot":"","sources":["../../lib/themes/createTheme.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAEzC,OAAO,KAAK,MAAM,SAAS,CAAC;AAE5B,MAAM,MAAM,YAAY,GAAG,UAAU,GAAG,WAAW,CAAC;AAEpD,MAAM,WAAW,cAAc;IAC3B,MAAM,CAAC,EAAE,OAAO,CAAC,QAAQ,CAAC,CAAC;IAC3B,KAAK,CAAC,EAAE;QACJ,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,MAAM,CAAC,EAAE,MAAM,CAAC;QAChB,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,IAAI,CAAC,EAAE,MAAM,CAAC;KACjB,CAAC;IACF,KAAK,CAAC,EAAE;QACJ,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,EAAE,CAAC,EAAE,MAAM,CAAC;QACZ,MAAM,CAAC,EAAE,MAAM,CAAC;QAChB,EAAE,CAAC,EAAE,MAAM,CAAC;QACZ,EAAE,CAAC,EAAE,MAAM,CAAC;QACZ,EAAE,CAAC,EAAE,MAAM,CAAC;QACZ,GAAG,CAAC,EAAE,MAAM,CAAC;KAChB,CAAC;CACL;AA4CD,eAAO,MAAM,WAAW,GAAI,cAAc,YAAY,EAAE,YAAY,cAAc,KAAG,KAoBpF,CAAC"}
|
package/dist/themes/theme.d.ts
CHANGED
|
@@ -1,35 +1,29 @@
|
|
|
1
1
|
import { ColorSet, ThemeInterface } from '../interfaces';
|
|
2
|
+
import { SIZES } from '../tokens';
|
|
2
3
|
export type ColorMode = "Light" | "Dark" | "User";
|
|
3
4
|
declare class Theme {
|
|
4
5
|
readonly colors: ColorSet;
|
|
5
|
-
sizes:
|
|
6
|
-
base: string;
|
|
7
|
-
sm: string;
|
|
8
|
-
normal: string;
|
|
9
|
-
md: string;
|
|
10
|
-
lg: string;
|
|
11
|
-
xl: string;
|
|
12
|
-
xxl: string;
|
|
13
|
-
};
|
|
6
|
+
sizes: Record<keyof typeof SIZES, string>;
|
|
14
7
|
breakpoints: {
|
|
15
|
-
xs:
|
|
16
|
-
sm:
|
|
17
|
-
md:
|
|
18
|
-
lg:
|
|
8
|
+
xs: "0px";
|
|
9
|
+
sm: "576px";
|
|
10
|
+
md: "992px";
|
|
11
|
+
lg: "1200px";
|
|
19
12
|
};
|
|
20
|
-
space:
|
|
13
|
+
space: ("0" | "4" | "8" | "16" | "24" | "32" | "40" | "48" | "64")[];
|
|
21
14
|
heights: {
|
|
22
|
-
bottom:
|
|
23
|
-
low:
|
|
24
|
-
sunk:
|
|
25
|
-
normal:
|
|
26
|
-
raised:
|
|
27
|
-
high:
|
|
28
|
-
top:
|
|
15
|
+
bottom: "-1000";
|
|
16
|
+
low: "-100";
|
|
17
|
+
sunk: "-10";
|
|
18
|
+
normal: "0";
|
|
19
|
+
raised: "10";
|
|
20
|
+
high: "100";
|
|
21
|
+
top: "1000";
|
|
29
22
|
};
|
|
30
23
|
borderRadius: string;
|
|
31
24
|
inputRadius: string;
|
|
32
25
|
buttonRadius: string;
|
|
26
|
+
pillRadius: string;
|
|
33
27
|
size(name: string): string;
|
|
34
28
|
color: (name: keyof typeof this.colors) => string;
|
|
35
29
|
bp: (name: keyof typeof this.breakpoints) => string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../../lib/themes/theme.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../../lib/themes/theme.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AACzD,OAAO,EAAE,KAAK,EAAuC,MAAM,WAAW,CAAC;AAEvE,MAAM,MAAM,SAAS,GAAG,OAAO,GAAG,MAAM,GAAG,MAAM,CAAC;AAElD,cAAM,KAAK;IACT,QAAQ,CAAC,MAAM,EAAE,QAAQ,CAAC;IAE1B,KAAK,EAAE,MAAM,CAAC,MAAM,OAAO,KAAK,EAAE,MAAM,CAAC,CAAgB;IAEzD,WAAW;;;;;MAAsB;IAEjC,KAAK,gEAAe;IAEpB,OAAO;;;;;;;;MAAkB;IAEzB,YAAY,EAAE,MAAM,CAAc;IAClC,WAAW,EAAE,MAAM,CAAgB;IACnC,YAAY,EAAE,MAAM,CAAgB;IACpC,UAAU,EAAE,MAAM,CAAgB;IAElC,IAAI,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM;IAI1B,KAAK,GAAI,MAAM,MAAM,OAAO,IAAI,CAAC,MAAM,KAAG,MAAM,CAAsB;IACtE,EAAE,GAAI,MAAM,MAAM,OAAO,IAAI,CAAC,WAAW,KAAG,MAAM,CAA2B;IAC7E,MAAM,GAAI,MAAM,MAAM,KAAG,MAAM,CAAoD;gBAEvE,WAAW,EAAE,cAAc;CAGxC;AAED,eAAe,KAAK,CAAC"}
|
package/dist/tokens.d.ts
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
export declare const SIZES: {
|
|
2
|
+
readonly base: "16px";
|
|
3
|
+
readonly sm: "0.707em";
|
|
4
|
+
readonly normal: "1em";
|
|
5
|
+
readonly md: "1.414em";
|
|
6
|
+
readonly lg: "2em";
|
|
7
|
+
readonly xl: "2.827em";
|
|
8
|
+
readonly xxl: "4em";
|
|
9
|
+
};
|
|
10
|
+
export declare const SPACES: readonly ["0", "4", "8", "16", "24", "32", "40", "48", "64"];
|
|
11
|
+
export declare const BREAKPOINTS: {
|
|
12
|
+
readonly xs: "0px";
|
|
13
|
+
readonly sm: "576px";
|
|
14
|
+
readonly md: "992px";
|
|
15
|
+
readonly lg: "1200px";
|
|
16
|
+
};
|
|
17
|
+
export declare const HEIGHTS: {
|
|
18
|
+
readonly bottom: "-1000";
|
|
19
|
+
readonly low: "-100";
|
|
20
|
+
readonly sunk: "-10";
|
|
21
|
+
readonly normal: "0";
|
|
22
|
+
readonly raised: "10";
|
|
23
|
+
readonly high: "100";
|
|
24
|
+
readonly top: "1000";
|
|
25
|
+
};
|
|
26
|
+
export declare const RADII: {
|
|
27
|
+
readonly input: "8px";
|
|
28
|
+
readonly button: "16px";
|
|
29
|
+
readonly card: "24px";
|
|
30
|
+
readonly pill: "9999px";
|
|
31
|
+
};
|
|
32
|
+
//# sourceMappingURL=tokens.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tokens.d.ts","sourceRoot":"","sources":["../lib/tokens.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,KAAK;;;;;;;;CAQR,CAAC;AAEX,eAAO,MAAM,MAAM,8DAA+D,CAAC;AAEnF,eAAO,MAAM,WAAW;;;;;CAKd,CAAC;AAEX,eAAO,MAAM,OAAO;;;;;;;;CAQV,CAAC;AAEX,eAAO,MAAM,KAAK;;;;;CAKR,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@maelstrom-futurism/core",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.9.0",
|
|
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": "
|
|
32
|
+
"gitHead": "5034af01ee5ea4d23abc4b678e0c66c73bae417a"
|
|
33
33
|
}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
@use 'sass:list';
|
|
2
|
-
|
|
3
|
-
$spaces: (0, 4, 8, 16, 24, 32, 40, 48, 64);
|
|
4
|
-
|
|
5
|
-
$sizes-base: 16px;
|
|
6
|
-
$sizes-sm: 0.707em;
|
|
7
|
-
$sizes-normal: 1em;
|
|
8
|
-
$sizes-md: 1.414em;
|
|
9
|
-
$sizes-lg: 2em;
|
|
10
|
-
$sizes-xl: 2.827em;
|
|
11
|
-
$sizes-xxl: 4em;
|
|
12
|
-
|
|
13
|
-
$bp-xs: 0px;
|
|
14
|
-
$bp-sm: 576px;
|
|
15
|
-
$bp-md: 992px;
|
|
16
|
-
$bp-lg: 1200px;
|
|
17
|
-
|
|
18
|
-
$height-bottom: -1000;
|
|
19
|
-
$height-low: -100;
|
|
20
|
-
$height-sunk: -10;
|
|
21
|
-
$height-normal: 0;
|
|
22
|
-
$height-raised: 10;
|
|
23
|
-
$height-high: 100;
|
|
24
|
-
$height-top: 1000;
|
|
25
|
-
|
|
26
|
-
$border-radius: #{list.nth($spaces, 5)}px;
|
|
27
|
-
$input-radius: #{list.nth($spaces, 4)}px;
|
|
28
|
-
$button-radius: #{list.nth($spaces, 3)}px;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var e,t={exports:{}},r={};var o,n,c,f,a={};function s(){return n||(n=1,"production"===process.env.NODE_ENV?t.exports=function(){if(e)return r;e=1;var t="function"==typeof Symbol&&Symbol.for,o=t?Symbol.for("react.element"):60103,n=t?Symbol.for("react.portal"):60106,c=t?Symbol.for("react.fragment"):60107,f=t?Symbol.for("react.strict_mode"):60108,a=t?Symbol.for("react.profiler"):60114,s=t?Symbol.for("react.provider"):60109,i=t?Symbol.for("react.context"):60110,u=t?Symbol.for("react.async_mode"):60111,y=t?Symbol.for("react.concurrent_mode"):60111,p=t?Symbol.for("react.forward_ref"):60112,l=t?Symbol.for("react.suspense"):60113,m=t?Symbol.for("react.suspense_list"):60120,d=t?Symbol.for("react.memo"):60115,b=t?Symbol.for("react.lazy"):60116,$=t?Symbol.for("react.block"):60121,S=t?Symbol.for("react.fundamental"):60117,v=t?Symbol.for("react.responder"):60118,P=t?Symbol.for("react.scope"):60119;function M(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case o:switch(e=e.type){case u:case y:case c:case a:case f:case l:return e;default:switch(e=e&&e.$$typeof){case i:case p:case b:case d:case s:return e;default:return t}}case n:return t}}}function g(e){return M(e)===y}return r.AsyncMode=u,r.ConcurrentMode=y,r.ContextConsumer=i,r.ContextProvider=s,r.Element=o,r.ForwardRef=p,r.Fragment=c,r.Lazy=b,r.Memo=d,r.Portal=n,r.Profiler=a,r.StrictMode=f,r.Suspense=l,r.isAsyncMode=function(e){return g(e)||M(e)===u},r.isConcurrentMode=g,r.isContextConsumer=function(e){return M(e)===i},r.isContextProvider=function(e){return M(e)===s},r.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===o},r.isForwardRef=function(e){return M(e)===p},r.isFragment=function(e){return M(e)===c},r.isLazy=function(e){return M(e)===b},r.isMemo=function(e){return M(e)===d},r.isPortal=function(e){return M(e)===n},r.isProfiler=function(e){return M(e)===a},r.isStrictMode=function(e){return M(e)===f},r.isSuspense=function(e){return M(e)===l},r.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===c||e===y||e===a||e===f||e===l||e===m||"object"==typeof e&&null!==e&&(e.$$typeof===b||e.$$typeof===d||e.$$typeof===s||e.$$typeof===i||e.$$typeof===p||e.$$typeof===S||e.$$typeof===v||e.$$typeof===P||e.$$typeof===$)},r.typeOf=M,r}():t.exports=(o||(o=1,"production"!==process.env.NODE_ENV&&function(){var e="function"==typeof Symbol&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,o=e?Symbol.for("react.fragment"):60107,n=e?Symbol.for("react.strict_mode"):60108,c=e?Symbol.for("react.profiler"):60114,f=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,i=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,y=e?Symbol.for("react.forward_ref"):60112,p=e?Symbol.for("react.suspense"):60113,l=e?Symbol.for("react.suspense_list"):60120,m=e?Symbol.for("react.memo"):60115,d=e?Symbol.for("react.lazy"):60116,b=e?Symbol.for("react.block"):60121,$=e?Symbol.for("react.fundamental"):60117,S=e?Symbol.for("react.responder"):60118,v=e?Symbol.for("react.scope"):60119;function P(e){if("object"==typeof e&&null!==e){var a=e.$$typeof;switch(a){case t:var l=e.type;switch(l){case i:case u:case o:case c:case n:case p:return l;default:var b=l&&l.$$typeof;switch(b){case s:case y:case d:case m:case f:return b;default:return a}}case r:return a}}}var M=i,g=u,x=s,w=f,C=t,h=y,O=o,j=d,_=m,E=r,F=c,T=n,N=p,R=!1;function z(e){return P(e)===u}a.AsyncMode=M,a.ConcurrentMode=g,a.ContextConsumer=x,a.ContextProvider=w,a.Element=C,a.ForwardRef=h,a.Fragment=O,a.Lazy=j,a.Memo=_,a.Portal=E,a.Profiler=F,a.StrictMode=T,a.Suspense=N,a.isAsyncMode=function(e){return R||(R=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),z(e)||P(e)===i},a.isConcurrentMode=z,a.isContextConsumer=function(e){return P(e)===s},a.isContextProvider=function(e){return P(e)===f},a.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},a.isForwardRef=function(e){return P(e)===y},a.isFragment=function(e){return P(e)===o},a.isLazy=function(e){return P(e)===d},a.isMemo=function(e){return P(e)===m},a.isPortal=function(e){return P(e)===r},a.isProfiler=function(e){return P(e)===c},a.isStrictMode=function(e){return P(e)===n},a.isSuspense=function(e){return P(e)===p},a.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===o||e===u||e===c||e===n||e===p||e===l||"object"==typeof e&&null!==e&&(e.$$typeof===d||e.$$typeof===m||e.$$typeof===f||e.$$typeof===s||e.$$typeof===y||e.$$typeof===$||e.$$typeof===S||e.$$typeof===v||e.$$typeof===b)},a.typeOf=P}()),a)),t.exports}!function(){if(f)return c;f=1;var e=s(),t={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},r={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},o={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},n={};function a(r){return e.isMemo(r)?o:n[r.$$typeof]||t}n[e.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},n[e.Memo]=o;var i=Object.defineProperty,u=Object.getOwnPropertyNames,y=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,l=Object.getPrototypeOf,m=Object.prototype;c=function e(t,o,n){if("string"!=typeof o){if(m){var c=l(o);c&&c!==m&&e(t,c,n)}var f=u(o);y&&(f=f.concat(y(o)));for(var s=a(t),d=a(o),b=0;b<f.length;++b){var $=f[b];if(!(r[$]||n&&n[$]||d&&d[$]||s&&s[$])){var S=p(o,$);try{i(t,$,S)}catch(v){}}}}return t}}();
|