@arch-ui/alert
Advanced tools
Comparing version 0.0.18 to 0.0.19
# @arch-ui/alert | ||
## 0.0.19 | ||
### Patch Changes | ||
- [`04bf1e4bb`](https://github.com/keystonejs/keystone-5/commit/04bf1e4bb0223f4e2e06664bbc9e95c51118eb84) [#2](https://github.com/keystonejs/keystone-5/pull/2) Thanks [@bladey](https://github.com/bladey)! - Updated repository URL in package.json. | ||
- Updated dependencies [[`04bf1e4bb`](https://github.com/keystonejs/keystone-5/commit/04bf1e4bb0223f4e2e06664bbc9e95c51118eb84)]: | ||
- @arch-ui/theme@0.0.12 | ||
## 0.0.18 | ||
@@ -7,7 +16,7 @@ | ||
- [`5935b89f8`](https://github.com/keystonejs/keystone/commit/5935b89f8862b36f14d09da68f056f759a860f3e) [#3477](https://github.com/keystonejs/keystone/pull/3477) Thanks [@Noviny](https://github.com/Noviny)! - Updating dependencies: | ||
- [`5935b89f8`](https://github.com/keystonejs/keystone-5/commit/5935b89f8862b36f14d09da68f056f759a860f3e) [#3477](https://github.com/keystonejs/keystone-5/pull/3477) Thanks [@Noviny](https://github.com/Noviny)! - Updating dependencies: | ||
These changes bring the keystone dev experience inline with installing keystone from npm :D | ||
- Updated dependencies [[`0fc878fa9`](https://github.com/keystonejs/keystone/commit/0fc878fa918c3196196f943f195ffaa62fce504b)]: | ||
- Updated dependencies [[`0fc878fa9`](https://github.com/keystonejs/keystone-5/commit/0fc878fa918c3196196f943f195ffaa62fce504b)]: | ||
- @arch-ui/theme@0.0.11 | ||
@@ -19,3 +28,3 @@ | ||
- [`577b5e69`](https://github.com/keystonejs/keystone/commit/577b5e69ac4f949d1be2a80d8f391cb0a4b1333a) [#2799](https://github.com/keystonejs/keystone/pull/2799) Thanks [@MadeByMike](https://github.com/MadeByMike)! - Upgraded React and Emotion packages. | ||
- [`577b5e69`](https://github.com/keystonejs/keystone-5/commit/577b5e69ac4f949d1be2a80d8f391cb0a4b1333a) [#2799](https://github.com/keystonejs/keystone-5/pull/2799) Thanks [@MadeByMike](https://github.com/MadeByMike)! - Upgraded React and Emotion packages. | ||
@@ -26,3 +35,3 @@ ## 0.0.16 | ||
- [`63169b6a`](https://github.com/keystonejs/keystone/commit/63169b6a6b6a4dc286cd224b7f871960f2d4b0ad) [#2638](https://github.com/keystonejs/keystone/pull/2638) Thanks [@Vultraz](https://github.com/Vultraz)! - Removed uses of defaultProps for functional components. | ||
- [`63169b6a`](https://github.com/keystonejs/keystone-5/commit/63169b6a6b6a4dc286cd224b7f871960f2d4b0ad) [#2638](https://github.com/keystonejs/keystone-5/pull/2638) Thanks [@Vultraz](https://github.com/Vultraz)! - Removed uses of defaultProps for functional components. | ||
@@ -33,3 +42,3 @@ ## 0.0.15 | ||
- Updated dependencies [[`0de5f232`](https://github.com/keystonejs/keystone/commit/0de5f2321ef8f9fe6dd247c3201372a4156e61e9)]: | ||
- Updated dependencies [[`0de5f232`](https://github.com/keystonejs/keystone-5/commit/0de5f2321ef8f9fe6dd247c3201372a4156e61e9)]: | ||
- @arch-ui/theme@0.0.10 | ||
@@ -41,7 +50,7 @@ | ||
- [`6b353eff`](https://github.com/keystonejs/keystone/commit/6b353effc8b617137a3978b2c845e01403889722) Thanks [@timleslie](https://github.com/timleslie)! - Upgraded React to 16.13.0. | ||
- [`6b353eff`](https://github.com/keystonejs/keystone-5/commit/6b353effc8b617137a3978b2c845e01403889722) Thanks [@timleslie](https://github.com/timleslie)! - Upgraded React to 16.13.0. | ||
* [`5ba330b8`](https://github.com/keystonejs/keystone/commit/5ba330b8b2609ea0033a636daf9a215a5a192c20) [#2487](https://github.com/keystonejs/keystone/pull/2487) Thanks [@Noviny](https://github.com/Noviny)! - Small changes to package.json (mostly adding a repository field) | ||
* [`5ba330b8`](https://github.com/keystonejs/keystone-5/commit/5ba330b8b2609ea0033a636daf9a215a5a192c20) [#2487](https://github.com/keystonejs/keystone-5/pull/2487) Thanks [@Noviny](https://github.com/Noviny)! - Small changes to package.json (mostly adding a repository field) | ||
* Updated dependencies [[`5ba330b8`](https://github.com/keystonejs/keystone/commit/5ba330b8b2609ea0033a636daf9a215a5a192c20)]: | ||
* Updated dependencies [[`5ba330b8`](https://github.com/keystonejs/keystone-5/commit/5ba330b8b2609ea0033a636daf9a215a5a192c20)]: | ||
- @arch-ui/theme@0.0.9 | ||
@@ -53,5 +62,5 @@ | ||
- [`d8a7b8a2`](https://github.com/keystonejs/keystone/commit/d8a7b8a23b4c3e1545d101a92323be165ad362e2) [#2395](https://github.com/keystonejs/keystone/pull/2395) Thanks [@timleslie](https://github.com/timleslie)! - Upgraded all `@emotion.*` dependencies. | ||
- [`d8a7b8a2`](https://github.com/keystonejs/keystone-5/commit/d8a7b8a23b4c3e1545d101a92323be165ad362e2) [#2395](https://github.com/keystonejs/keystone-5/pull/2395) Thanks [@timleslie](https://github.com/timleslie)! - Upgraded all `@emotion.*` dependencies. | ||
- Updated dependencies [[`dcdd8ed9`](https://github.com/keystonejs/keystone/commit/dcdd8ed9142cf3328a7af80bc167ef93c7669b09)]: | ||
- Updated dependencies [[`dcdd8ed9`](https://github.com/keystonejs/keystone-5/commit/dcdd8ed9142cf3328a7af80bc167ef93c7669b09)]: | ||
- @arch-ui/theme@0.0.8 | ||
@@ -63,3 +72,3 @@ | ||
- Updated dependencies [[`38f88b62`](https://github.com/keystonejs/keystone/commit/38f88b62d9592d91b56528d4d9c40e9399440c4a)]: | ||
- Updated dependencies [[`38f88b62`](https://github.com/keystonejs/keystone-5/commit/38f88b62d9592d91b56528d4d9c40e9399440c4a)]: | ||
- @arch-ui/theme@0.0.7 | ||
@@ -71,3 +80,3 @@ | ||
- Updated dependencies [[`129b0f6`](https://github.com/keystonejs/keystone/commit/129b0f61f34adb7482901d2da4ddb14ce1aedd62)]: | ||
- Updated dependencies [[`129b0f6`](https://github.com/keystonejs/keystone-5/commit/129b0f61f34adb7482901d2da4ddb14ce1aedd62)]: | ||
- @arch-ui/theme@0.0.6 | ||
@@ -79,3 +88,3 @@ | ||
- [`33d22c7`](https://github.com/keystonejs/keystone/commit/33d22c70971eb047aa670b1cd170248cbd663290) [#2078](https://github.com/keystonejs/keystone/pull/2078) - Fixed several issues with the CalendarDay field: | ||
- [`33d22c7`](https://github.com/keystonejs/keystone-5/commit/33d22c70971eb047aa670b1cd170248cbd663290) [#2078](https://github.com/keystonejs/keystone-5/pull/2078) - Fixed several issues with the CalendarDay field: | ||
@@ -91,3 +100,3 @@ - Ensured format, yearRangeFrom, and yearRangeTo defaults are set correctly | ||
- [`946a52fd`](https://github.com/keystonejs/keystone/commit/946a52fd7057bb73f4ffd465ef51498172926866) [#1995](https://github.com/keystonejs/keystone/pull/1995) Thanks [@Vultraz](https://github.com/Vultraz)! - Updated `react` and `react-dom` to 16.12.0. | ||
- [`946a52fd`](https://github.com/keystonejs/keystone-5/commit/946a52fd7057bb73f4ffd465ef51498172926866) [#1995](https://github.com/keystonejs/keystone-5/pull/1995) Thanks [@Vultraz](https://github.com/Vultraz)! - Updated `react` and `react-dom` to 16.12.0. | ||
@@ -98,3 +107,3 @@ ## 0.0.8 | ||
- [`8226eb47`](https://github.com/keystonejs/keystone/commit/8226eb4709ea8ad5773c900eaaa96068d3cb6bad) [#1819](https://github.com/keystonejs/keystone/pull/1819) Thanks [@w01fgang](https://github.com/w01fgang)! - Upgraded `@emotion/core` and `@emotion/styled`. | ||
- [`8226eb47`](https://github.com/keystonejs/keystone-5/commit/8226eb4709ea8ad5773c900eaaa96068d3cb6bad) [#1819](https://github.com/keystonejs/keystone-5/pull/1819) Thanks [@w01fgang](https://github.com/w01fgang)! - Upgraded `@emotion/core` and `@emotion/styled`. | ||
@@ -105,3 +114,3 @@ ## 0.0.7 | ||
- [42c3fbc9](https://github.com/keystonejs/keystone/commit/42c3fbc9): Upgrade emotion to 10.0.14 | ||
- [42c3fbc9](https://github.com/keystonejs/keystone-5/commit/42c3fbc9): Upgrade emotion to 10.0.14 | ||
@@ -112,3 +121,3 @@ ## 0.0.6 | ||
- [19fe6c1b](https://github.com/keystonejs/keystone/commit/19fe6c1b): | ||
- [19fe6c1b](https://github.com/keystonejs/keystone-5/commit/19fe6c1b): | ||
@@ -121,3 +130,3 @@ Move frontmatter in docs into comments | ||
- [81dc0be5](https://github.com/keystonejs/keystone/commit/81dc0be5): | ||
- [81dc0be5](https://github.com/keystonejs/keystone-5/commit/81dc0be5): | ||
@@ -128,3 +137,3 @@ - Update dependencies | ||
- Updated dependencies [e75c105c](https://github.com/keystonejs/keystone/commit/e75c105c): | ||
- Updated dependencies [e75c105c](https://github.com/keystonejs/keystone-5/commit/e75c105c): | ||
- @arch-ui/theme@0.0.3 | ||
@@ -134,3 +143,3 @@ | ||
- [patch][7417ea3a](https://github.com/keystonejs/keystone/commit/7417ea3a): | ||
- [patch][7417ea3a](https://github.com/keystonejs/keystone-5/commit/7417ea3a): | ||
@@ -137,0 +146,0 @@ - Update patch-level dependencies |
@@ -1,16 +0,11 @@ | ||
"use strict"; | ||
'use strict'; | ||
Object.defineProperty(exports, "__esModule", { | ||
value: !0 | ||
}); | ||
Object.defineProperty(exports, '__esModule', { value: true }); | ||
var styled = require("@emotion/styled"), theme = require("@arch-ui/theme"); | ||
var styled = require('@emotion/styled'); | ||
var theme = require('@arch-ui/theme'); | ||
function _interopDefault(e) { | ||
return e && e.__esModule ? e : { | ||
default: e | ||
}; | ||
} | ||
function _interopDefault (e) { return e && e.__esModule ? e : { 'default': e }; } | ||
var styled__default = _interopDefault(styled); | ||
var styled__default = /*#__PURE__*/_interopDefault(styled); | ||
@@ -22,8 +17,10 @@ const boldBackgroundColor = { | ||
danger: theme.colors.danger | ||
}, boldTextColor = { | ||
info: "white", | ||
success: "white", | ||
warning: "white", | ||
danger: "white" | ||
}, subtleBackgroundColor = { | ||
}; | ||
const boldTextColor = { | ||
info: 'white', | ||
success: 'white', | ||
warning: 'white', | ||
danger: 'white' | ||
}; | ||
const subtleBackgroundColor = { | ||
info: theme.colors.B.L80, | ||
@@ -33,3 +30,4 @@ success: theme.colors.G.L80, | ||
danger: theme.colors.R.L80 | ||
}, subtleTextColor = { | ||
}; | ||
const subtleTextColor = { | ||
info: theme.colors.B.D20, | ||
@@ -39,14 +37,18 @@ success: theme.colors.G.D20, | ||
danger: theme.colors.R.D20 | ||
}, Alert = styled__default.default.div(({appearance: appearance = "info", variant: variant = "subtle"}) => ({ | ||
backgroundColor: "bold" === variant ? boldBackgroundColor[appearance] : subtleBackgroundColor[appearance], | ||
color: "bold" === variant ? boldTextColor[appearance] : subtleTextColor[appearance], | ||
}; | ||
const Alert = styled__default['default'].div(({ | ||
appearance = 'info', | ||
variant = 'subtle' | ||
}) => ({ | ||
backgroundColor: variant === 'bold' ? boldBackgroundColor[appearance] : subtleBackgroundColor[appearance], | ||
color: variant === 'bold' ? boldTextColor[appearance] : subtleTextColor[appearance], | ||
borderRadius: theme.borderRadius, | ||
display: "flex", | ||
fontWeight: "bold" === variant ? 500 : null, | ||
display: 'flex', | ||
fontWeight: variant === 'bold' ? 500 : null, | ||
minWidth: 1, | ||
padding: "0.9em 1.2em", | ||
margin: "0.9em 0", | ||
"& a": { | ||
color: "bold" === variant ? boldTextColor[appearance] : subtleTextColor[appearance], | ||
textDecoration: "underline" | ||
padding: '0.9em 1.2em', | ||
margin: '0.9em 0', | ||
'& a': { | ||
color: variant === 'bold' ? boldTextColor[appearance] : subtleTextColor[appearance], | ||
textDecoration: 'underline' | ||
} | ||
@@ -53,0 +55,0 @@ })); |
{ | ||
"name": "@arch-ui/alert", | ||
"description": "Alert component as used in @keystonejs Admin UI.", | ||
"version": "0.0.18", | ||
"version": "0.0.19", | ||
"author": "Jed Watson", | ||
@@ -9,14 +9,14 @@ "license": "MIT", | ||
"peerDependencies": { | ||
"react": "^16.13.1" | ||
"react": "^17.0.1" | ||
}, | ||
"devDependencies": { | ||
"react": "^16.13.1" | ||
"react": "^17.0.1" | ||
}, | ||
"dependencies": { | ||
"@arch-ui/theme": "^0.0.11", | ||
"@emotion/core": "^10.0.35", | ||
"@arch-ui/theme": "^0.0.12", | ||
"@emotion/core": "^10.1.1", | ||
"@emotion/styled": "^10.0.27" | ||
}, | ||
"module": "dist/alert.esm.js", | ||
"repository": "https://github.com/keystonejs/keystone/tree/master/packages/arch/packages/alert" | ||
"repository": "https://github.com/keystonejs/keystone-5/tree/master/packages/arch/packages/alert" | ||
} |
@@ -147,3 +147,3 @@ <!--[meta] | ||
[source]: https://github.com/keystonejs/keystone/tree/master/packages/arch | ||
[source]: https://github.com/keystonejs/keystone-5/tree/master/packages/arch | ||
@@ -150,0 +150,0 @@ [npm]: https://www.npmjs.com/package/@arch-ui/alert |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
14550
187
1
+ Added@arch-ui/color-utils@0.0.3(transitive)
+ Added@arch-ui/theme@0.0.12(transitive)
+ Addedreact@17.0.2(transitive)
- Removed@arch-ui/color-utils@0.0.2(transitive)
- Removed@arch-ui/theme@0.0.11(transitive)
- Removedprop-types@15.8.1(transitive)
- Removedreact@16.14.0(transitive)
- Removedreact-is@16.13.1(transitive)
Updated@arch-ui/theme@^0.0.12
Updated@emotion/core@^10.1.1