@keepfy/styleguide
Advanced tools
Comparing version 0.0.1-alpha.2 to 0.0.1-alpha.3
{ | ||
"name": "@keepfy/styleguide", | ||
"version": "0.0.1-alpha.2", | ||
"version": "0.0.1-alpha.3", | ||
"description": "A minimalist styleguide for the keepfy", | ||
@@ -14,8 +14,9 @@ "main": "lib/index.js", | ||
"scripts": { | ||
"demo": "start-storybook", | ||
"now-build": "rm -rf public && build-storybook --docs -o public", | ||
"docs": "start-storybook", | ||
"docs:build": "build-storybook --docs -o public", | ||
"now-build": "rm -rf public && npm run docs:build", | ||
"build": "npm run build:types && npm run build:js", | ||
"build:types": "tsc --emitDeclarationOnly", | ||
"build:js": "babel src --out-dir lib --extensions \".ts,.tsx\" --source-maps inline", | ||
"publish:alpha": "rm -rf lib && npm run build && cp package.json lib && npm publish lib --tag alpha --access public" | ||
"publish:alpha": "node pre-publish && npm run build && npm publish lib --tag alpha" | ||
}, | ||
@@ -31,2 +32,3 @@ "devDependencies": { | ||
"@babel/preset-typescript": "7.7.4", | ||
"@material-ui/core": "4.8.1", | ||
"@storybook/addon-docs": "5.3.0-beta.21", | ||
@@ -40,2 +42,3 @@ "@storybook/react": "5.3.0-beta.21", | ||
"flipper-ui": "0.21.15", | ||
"fs-extra": "8.1.0", | ||
"react": "16.12.0", | ||
@@ -46,8 +49,5 @@ "react-dom": "16.12.0", | ||
}, | ||
"dependencies": { | ||
"@material-ui/core": "4.8.0" | ||
}, | ||
"peer-dependencies": { | ||
"@material-ui/core": "^4.5.0" | ||
"publishConfig": { | ||
"access": "public" | ||
} | ||
} |
@@ -1,2 +0,1 @@ | ||
import { Theme as ThemeMuiDefault } from '@material-ui/core/styles'; | ||
import colors from './colors'; | ||
@@ -59,2 +58,5 @@ export declare const theme: { | ||
}; | ||
/** | ||
* Options to createMuiTheme | ||
* */ | ||
export declare const muiThemeOptions: { | ||
@@ -74,80 +76,10 @@ palette: { | ||
}; | ||
}; | ||
}; | ||
export declare const muiTheme: { | ||
shape: import("@material-ui/core/styles/shape").Shape; | ||
breakpoints: import("@material-ui/core/styles/createBreakpoints").Breakpoints; | ||
direction: import("@material-ui/core/styles").Direction; | ||
mixins: import("@material-ui/core/styles/createMixins").Mixins; | ||
overrides?: import("@material-ui/core/styles/overrides").Overrides | undefined; | ||
palette: import("@material-ui/core/styles/createPalette").Palette; | ||
props?: import("@material-ui/core/styles/props").ComponentsProps | undefined; | ||
shadows: import("@material-ui/core/styles/shadows").Shadows; | ||
spacing: import("@material-ui/core/styles/createSpacing").Spacing; | ||
transitions: import("@material-ui/core/styles").Transitions; | ||
typography: import("@material-ui/core/styles/createTypography").Typography; | ||
zIndex: import("@material-ui/core/styles/zIndex").ZIndex; | ||
colors: { | ||
primary: { | ||
main: string; | ||
dark: string; | ||
light: string; | ||
contrast: string; | ||
text: { | ||
primary: string; | ||
}; | ||
secondary: { | ||
main: string; | ||
dark: string; | ||
light: string; | ||
contrast: string; | ||
}; | ||
app: { | ||
border: string; | ||
background: { | ||
main: string; | ||
lighter: string; | ||
}; | ||
text: { | ||
main: string; | ||
light: string; | ||
disabled: string; | ||
}; | ||
}; | ||
priority: Record<import("./presets").Priority, { | ||
main: string; | ||
light: string; | ||
}>; | ||
feedback: Record<import("./presets").Feedback, string>; | ||
criticality: Record<import("./presets").Criticality, string>; | ||
neutral: { | ||
black: string; | ||
white: string; | ||
transparent: string; | ||
}; | ||
grays: { | ||
g0: string; | ||
g1: string; | ||
g2: string; | ||
g3: string; | ||
g4: string; | ||
g5: string; | ||
g6: string; | ||
g7: string; | ||
g8: string; | ||
g9: string; | ||
}; | ||
action: { | ||
confirm: string; | ||
cancel: string; | ||
neutral: string; | ||
}; | ||
}; | ||
}; | ||
export interface ThemeMui extends ThemeMuiDefault { | ||
palette: ThemeMuiDefault['palette']; | ||
colors: Colors; | ||
} | ||
export interface StyledThemeMui { | ||
theme: ThemeMui; | ||
} | ||
export declare type WithThemeMui<Props extends object> = Props & StyledThemeMui; | ||
/** | ||
* Raw colors | ||
* */ | ||
export declare type Colors = typeof colors; | ||
@@ -159,2 +91,5 @@ export interface Theme { | ||
} | ||
/** | ||
* Util interface to extend (Props + Theme) | ||
* */ | ||
export declare type WithTheme<Props extends object> = Props & Theme; |
33
theme.js
@@ -6,6 +6,4 @@ "use strict"; | ||
}); | ||
exports.muiTheme = exports.muiThemeOptions = exports.theme = void 0; | ||
exports.muiThemeOptions = exports.theme = void 0; | ||
var _styles = require("@material-ui/core/styles"); | ||
var _colors = _interopRequireDefault(require("./colors")); | ||
@@ -15,11 +13,9 @@ | ||
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; } | ||
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } | ||
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } | ||
var theme = { | ||
colors: _colors["default"] | ||
}; | ||
/** | ||
* Options to createMuiTheme | ||
* */ | ||
exports.theme = theme; | ||
@@ -39,16 +35,13 @@ var muiThemeOptions = { | ||
"default": _colors["default"].app.background.main | ||
}, | ||
text: { | ||
primary: _colors["default"].app.text.main | ||
} | ||
} | ||
}; // Material ui theme extended | ||
}; | ||
/** | ||
* Raw colors | ||
* */ | ||
exports.muiThemeOptions = muiThemeOptions; | ||
var muiTheme = _objectSpread({ | ||
colors: _colors["default"] | ||
}, (0, _styles.createMuiTheme)(muiThemeOptions)); | ||
exports.muiTheme = muiTheme; | ||
console.log({ | ||
muiTheme: muiTheme | ||
}); // Material UI Interface theme extesion | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy90aGVtZS50cyJdLCJuYW1lcyI6WyJ0aGVtZSIsImNvbG9ycyIsIm11aVRoZW1lT3B0aW9ucyIsInBhbGV0dGUiLCJwcmltYXJ5IiwibWFpbiIsInNlY29uZGFyeSIsImVycm9yIiwiZmVlZGJhY2siLCJkYW5nZXIiLCJiYWNrZ3JvdW5kIiwiYXBwIiwibXVpVGhlbWUiLCJjb25zb2xlIiwibG9nIl0sIm1hcHBpbmdzIjoiOzs7Ozs7O0FBQUE7O0FBQ0E7Ozs7Ozs7Ozs7QUFFTyxJQUFNQSxLQUFLLEdBQUc7QUFBRUMsRUFBQUEsTUFBTSxFQUFOQTtBQUFGLENBQWQ7O0FBRUEsSUFBTUMsZUFBZSxHQUFHO0FBQzNCQyxFQUFBQSxPQUFPLEVBQUU7QUFDTEMsSUFBQUEsT0FBTyxFQUFFO0FBQ0xDLE1BQUFBLElBQUksRUFBRUosbUJBQU9HLE9BQVAsQ0FBZUM7QUFEaEIsS0FESjtBQUlMQyxJQUFBQSxTQUFTLEVBQUU7QUFDUEQsTUFBQUEsSUFBSSxFQUFFSixtQkFBT0ssU0FBUCxDQUFpQkQ7QUFEaEIsS0FKTjtBQU9MRSxJQUFBQSxLQUFLLEVBQUU7QUFDSEYsTUFBQUEsSUFBSSxFQUFFSixtQkFBT08sUUFBUCxDQUFnQkM7QUFEbkIsS0FQRjtBQVVMQyxJQUFBQSxVQUFVLEVBQUU7QUFDUixpQkFBU1QsbUJBQU9VLEdBQVAsQ0FBV0QsVUFBWCxDQUFzQkw7QUFEdkI7QUFWUDtBQURrQixDQUF4QixDLENBaUJQOzs7O0FBQ08sSUFBTU8sUUFBUTtBQUNqQlgsRUFBQUEsTUFBTSxFQUFOQTtBQURpQixHQUV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4gICAgICAgIH0sXG4gICAgICAgIGVycm9yOiB7XG4gICAgICAgICAgICBtYWluOiBjb2xvcnMuZmVlZGJhY2suZGFuZ2VyXG4gICAgICAgIH0sXG4gICAgICAgIGJhY2tncm91bmQ6IHtcbiAgICAgICAgICAgIGRlZmF1bHQ6IGNvbG9ycy5hcHAuYmFja2dyb3VuZC5tYWluXG4gICAgICAgIH0sXG4gICAgICAgIHRleHQ6IHtcbiAgICAgICAgICAgIHByaW1hcnk6IGNvbG9ycy5hcHAudGV4dC5tYWluXG4gICAgICAgIH1cbiAgICB9XG59XG5cbi8qKlxuICogUmF3IGNvbG9yc1xuICogKi8gXG5leHBvcnQgdHlwZSBDb2xvcnMgPSB0eXBlb2YgY29sb3JzXG5cbmV4cG9ydCBpbnRlcmZhY2UgVGhlbWUge1xuICAgIHRoZW1lOiB7XG4gICAgICAgIGNvbG9yczogQ29sb3JzXG4gICAgfVxufVxuXG4vKipcbiAqIFV0aWwgaW50ZXJmYWNlIHRvIGV4dGVuZCAoUHJvcHMgKyBUaGVtZSlcbiAqICovIFxuZXhwb3J0IHR5cGUgV2l0aFRoZW1lPFByb3BzIGV4dGVuZHMgb2JqZWN0PiA9IFByb3BzICYgVGhlbWVcbiJdfQ== |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
No README
QualityPackage does not have a README. This may indicate a failed publish or a low quality package.
Found 1 instance in 1 package
0
13
1
95
0
24956
22
389
- Removed@material-ui/core@4.8.0
- Removed@babel/runtime@7.26.9(transitive)
- Removed@emotion/hash@0.8.0(transitive)
- Removed@material-ui/core@4.8.0(transitive)
- Removed@material-ui/styles@4.11.5(transitive)
- Removed@material-ui/system@4.12.2(transitive)
- Removed@material-ui/types@4.1.15.1.0(transitive)
- Removed@material-ui/utils@4.11.3(transitive)
- Removed@types/react@19.0.10(transitive)
- Removed@types/react-transition-group@4.4.12(transitive)
- Removedclsx@1.2.1(transitive)
- Removedconvert-css-length@2.0.1(transitive)
- Removedcss-vendor@2.0.8(transitive)
- Removedcsstype@2.6.213.1.3(transitive)
- Removeddom-helpers@5.2.1(transitive)
- Removedhoist-non-react-statics@3.3.2(transitive)
- Removedhyphenate-style-name@1.1.0(transitive)
- Removedis-in-browser@1.1.3(transitive)
- Removedjs-tokens@4.0.0(transitive)
- Removedjss@10.10.0(transitive)
- Removedjss-plugin-camel-case@10.10.0(transitive)
- Removedjss-plugin-default-unit@10.10.0(transitive)
- Removedjss-plugin-global@10.10.0(transitive)
- Removedjss-plugin-nested@10.10.0(transitive)
- Removedjss-plugin-props-sort@10.10.0(transitive)
- Removedjss-plugin-rule-value-function@10.10.0(transitive)
- Removedjss-plugin-vendor-prefixer@10.10.0(transitive)
- Removedloose-envify@1.4.0(transitive)
- Removednormalize-scroll-left@0.2.1(transitive)
- Removedobject-assign@4.1.1(transitive)
- Removedpopper.js@1.16.1(transitive)
- Removedprop-types@15.8.1(transitive)
- Removedreact@16.14.0(transitive)
- Removedreact-dom@16.14.0(transitive)
- Removedreact-is@16.13.1(transitive)
- Removedreact-transition-group@4.4.5(transitive)
- Removedregenerator-runtime@0.14.1(transitive)
- Removedscheduler@0.19.1(transitive)
- Removedtiny-warning@1.0.3(transitive)