@hi-ui/alert
Advanced tools
Comparing version 4.1.3 to 4.1.4-alpha.0
# @hi-ui/alert | ||
## 4.1.4-alpha.0 | ||
### Patch Changes | ||
- 1a00f9fc4: build: style-inject(node 环境下有问题) 替换为 @hi-ui/style-inject | ||
- Updated dependencies [1a00f9fc4] | ||
- @hi-ui/env@4.0.5-alpha.0 | ||
- @hi-ui/icons@4.0.19-alpha.0 | ||
- @hi-ui/icon-button@4.0.9-alpha.0 | ||
- @hi-ui/classname@4.0.5-alpha.0 | ||
- @hi-ui/core@4.0.9-alpha.0 | ||
## 4.1.3 | ||
@@ -4,0 +16,0 @@ |
@@ -25,3 +25,3 @@ /** @LICENSE | ||
var icons = require('./icons.js'); | ||
function _interopDefaultLegacy(e) { | ||
function _interopDefaultCompat(e) { | ||
return e && _typeof(e) === 'object' && 'default' in e ? e : { | ||
@@ -31,3 +31,3 @@ 'default': e | ||
} | ||
var React__default = /*#__PURE__*/_interopDefaultLegacy(React); | ||
var React__default = /*#__PURE__*/_interopDefaultCompat(React); | ||
var _prefix = classname.getPrefixCls('alert'); | ||
@@ -34,0 +34,0 @@ /** |
@@ -19,3 +19,3 @@ /** @LICENSE | ||
var types = require('./types.js'); | ||
function _interopDefaultLegacy(e) { | ||
function _interopDefaultCompat(e) { | ||
return e && _typeof(e) === 'object' && 'default' in e ? e : { | ||
@@ -25,3 +25,3 @@ 'default': e | ||
} | ||
var React__default = /*#__PURE__*/_interopDefaultLegacy(React); | ||
var React__default = /*#__PURE__*/_interopDefaultCompat(React); | ||
var _alertIconMap; | ||
@@ -28,0 +28,0 @@ var alertIconMap = (_alertIconMap = {}, _alertIconMap[types.AlertTypeEnum.SUCCESS] = /*#__PURE__*/React__default["default"].createElement(icons.CheckCircleFilled, null), _alertIconMap[types.AlertTypeEnum.DANGER] = /*#__PURE__*/React__default["default"].createElement(icons.CloseCircleFilled, null), _alertIconMap[types.AlertTypeEnum.WARNING] = /*#__PURE__*/React__default["default"].createElement(icons.ExclamationCircleFilled, null), _alertIconMap[types.AlertTypeEnum.PRIMARY] = /*#__PURE__*/React__default["default"].createElement(icons.InfoCircleFilled, null), _alertIconMap); |
@@ -16,4 +16,4 @@ /** @LICENSE | ||
var css_248z = ".hi-v4-alert {position: relative;border-radius: var(--hi-v4-border-radius-lg, 6px);font-size: var(--hi-v4-text-size-md, 0.875rem);color: var(--hi-v4-color-gray-600, #5f6a7a);line-height: var(--hi-v4-text-lineheight-sm, 1.25rem);display: -webkit-box;display: -ms-flexbox;display: flex;-webkit-box-align: start;-ms-flex-align: start;align-items: flex-start;width: 100%;-webkit-box-sizing: border-box;box-sizing: border-box;}.hi-v4-alert.hi-v4-alert--with-content .hi-v4-alert__title {font-size: var(--hi-v4-text-size-lg, 1rem);font-weight: var(--hi-v4-text-weight-semibold, 600);}.hi-v4-alert.hi-v4-alert--with-content .hi-v4-alert__icon {font-size: 20px;}.hi-v4-alert--size-lg {padding: var(--hi-v4-spacing-6, 12px) var(--hi-v4-spacing-8, 16px);}.hi-v4-alert--size-lg.hi-v4-alert--with-content {padding: var(--hi-v4-spacing-10, 20px);}.hi-v4-alert--size-lg.hi-v4-alert--with-content .hi-v4-alert__title {margin-bottom: var(--hi-v4-spacing-4, 8px);}.hi-v4-alert--size-lg.hi-v4-alert--with-content .hi-v4-alert__icon {-webkit-margin-end: var(--hi-v4-spacing-6, 12px);margin-inline-end: var(--hi-v4-spacing-6, 12px);}.hi-v4-alert--size-md {padding: var(--hi-v4-spacing-5, 10px) var(--hi-v4-spacing-6, 12px);}.hi-v4-alert--size-md.hi-v4-alert--with-content {padding: var(--hi-v4-spacing-8, 16px);}.hi-v4-alert--size-md.hi-v4-alert--with-content .hi-v4-alert__title {margin-bottom: var(--hi-v4-spacing-3, 6px);}.hi-v4-alert--size-md.hi-v4-alert--with-content .hi-v4-alert__icon {-webkit-margin-end: var(--hi-v4-spacing-5, 10px);margin-inline-end: var(--hi-v4-spacing-5, 10px);}.hi-v4-alert--size-sm {padding: var(--hi-v4-spacing-4, 8px);}.hi-v4-alert--size-sm.hi-v4-alert--with-content {padding: var(--hi-v4-spacing-6, 12px);}.hi-v4-alert--size-sm.hi-v4-alert--with-content .hi-v4-alert__title {margin-bottom: var(--hi-v4-spacing-3, 6px);}.hi-v4-alert--size-sm.hi-v4-alert--with-content .hi-v4-alert__icon {-webkit-margin-end: var(--hi-v4-spacing-4, 8px);margin-inline-end: var(--hi-v4-spacing-4, 8px);}.hi-v4-alert__icon {font-size: var(--hi-v4-text-size-lg, 1rem);-ms-flex-negative: 0;flex-shrink: 0;}.hi-v4-alert--size-lg .hi-v4-alert__icon {-webkit-margin-end: var(--hi-v4-spacing-5, 10px);margin-inline-end: var(--hi-v4-spacing-5, 10px);}.hi-v4-alert--size-md .hi-v4-alert__icon {-webkit-margin-end: var(--hi-v4-spacing-4, 8px);margin-inline-end: var(--hi-v4-spacing-4, 8px);}.hi-v4-alert--size-sm .hi-v4-alert__icon {-webkit-margin-end: var(--hi-v4-spacing-3, 6px);margin-inline-end: var(--hi-v4-spacing-3, 6px);}.hi-v4-alert__message {-webkit-box-flex: 1;-ms-flex: 1 1;flex: 1 1;width: 100%;}.hi-v4-alert__title {font-size: var(--hi-v4-text-size-md, 0.875rem);color: var(--hi-v4-color-gray-700, #1f2733);}.hi-v4-alert .hi-v4-alert__close {line-height: inherit;height: var(--hi-v4-text-lineheight-sm, 1.25rem);-webkit-margin-start: var(--hi-v4-spacing-4, 8px);margin-inline-start: var(--hi-v4-spacing-4, 8px);}.hi-v4-alert--type-primary {background-color: var(--hi-v4-color-primary-50, var(--hi-v4-color-brandblue-50, #e2f3fe));}.hi-v4-alert--type-primary .hi-v4-alert__icon {color: var(--hi-v4-color-primary-500, var(--hi-v4-color-brandblue-500, #237ffa));}.hi-v4-alert--type-warning {background-color: var(--hi-v4-color-warning-50, var(--hi-v4-color-yellow-50, #fefae0));}.hi-v4-alert--type-warning .hi-v4-alert__icon {color: var(--hi-v4-color-warning-500, var(--hi-v4-color-yellow-500, #fab007));}.hi-v4-alert--type-success {background-color: var(--hi-v4-color-success-50, var(--hi-v4-color-green-50, #e5feeb));}.hi-v4-alert--type-success .hi-v4-alert__icon {color: var(--hi-v4-color-success-500, var(--hi-v4-color-green-500, #14ca64));}.hi-v4-alert--type-danger {background-color: var(--hi-v4-color-danger-50, var(--hi-v4-color-red-50, #fee9e5));}.hi-v4-alert--type-danger .hi-v4-alert__icon {color: var(--hi-v4-color-danger-500, var(--hi-v4-color-red-500, #ff5959));}"; | ||
var __styleInject__ = require('style-inject')["default"]; | ||
var __styleInject__ = require('@hi-ui/style-inject')["default"]; | ||
__styleInject__(css_248z); | ||
exports["default"] = css_248z; |
@@ -10,5 +10,5 @@ /** @LICENSE | ||
*/ | ||
import __styleInject__ from 'style-inject'; | ||
import __styleInject__ from '@hi-ui/style-inject'; | ||
var css_248z = ".hi-v4-alert {position: relative;border-radius: var(--hi-v4-border-radius-lg, 6px);font-size: var(--hi-v4-text-size-md, 0.875rem);color: var(--hi-v4-color-gray-600, #5f6a7a);line-height: var(--hi-v4-text-lineheight-sm, 1.25rem);display: -webkit-box;display: -ms-flexbox;display: flex;-webkit-box-align: start;-ms-flex-align: start;align-items: flex-start;width: 100%;-webkit-box-sizing: border-box;box-sizing: border-box;}.hi-v4-alert.hi-v4-alert--with-content .hi-v4-alert__title {font-size: var(--hi-v4-text-size-lg, 1rem);font-weight: var(--hi-v4-text-weight-semibold, 600);}.hi-v4-alert.hi-v4-alert--with-content .hi-v4-alert__icon {font-size: 20px;}.hi-v4-alert--size-lg {padding: var(--hi-v4-spacing-6, 12px) var(--hi-v4-spacing-8, 16px);}.hi-v4-alert--size-lg.hi-v4-alert--with-content {padding: var(--hi-v4-spacing-10, 20px);}.hi-v4-alert--size-lg.hi-v4-alert--with-content .hi-v4-alert__title {margin-bottom: var(--hi-v4-spacing-4, 8px);}.hi-v4-alert--size-lg.hi-v4-alert--with-content .hi-v4-alert__icon {-webkit-margin-end: var(--hi-v4-spacing-6, 12px);margin-inline-end: var(--hi-v4-spacing-6, 12px);}.hi-v4-alert--size-md {padding: var(--hi-v4-spacing-5, 10px) var(--hi-v4-spacing-6, 12px);}.hi-v4-alert--size-md.hi-v4-alert--with-content {padding: var(--hi-v4-spacing-8, 16px);}.hi-v4-alert--size-md.hi-v4-alert--with-content .hi-v4-alert__title {margin-bottom: var(--hi-v4-spacing-3, 6px);}.hi-v4-alert--size-md.hi-v4-alert--with-content .hi-v4-alert__icon {-webkit-margin-end: var(--hi-v4-spacing-5, 10px);margin-inline-end: var(--hi-v4-spacing-5, 10px);}.hi-v4-alert--size-sm {padding: var(--hi-v4-spacing-4, 8px);}.hi-v4-alert--size-sm.hi-v4-alert--with-content {padding: var(--hi-v4-spacing-6, 12px);}.hi-v4-alert--size-sm.hi-v4-alert--with-content .hi-v4-alert__title {margin-bottom: var(--hi-v4-spacing-3, 6px);}.hi-v4-alert--size-sm.hi-v4-alert--with-content .hi-v4-alert__icon {-webkit-margin-end: var(--hi-v4-spacing-4, 8px);margin-inline-end: var(--hi-v4-spacing-4, 8px);}.hi-v4-alert__icon {font-size: var(--hi-v4-text-size-lg, 1rem);-ms-flex-negative: 0;flex-shrink: 0;}.hi-v4-alert--size-lg .hi-v4-alert__icon {-webkit-margin-end: var(--hi-v4-spacing-5, 10px);margin-inline-end: var(--hi-v4-spacing-5, 10px);}.hi-v4-alert--size-md .hi-v4-alert__icon {-webkit-margin-end: var(--hi-v4-spacing-4, 8px);margin-inline-end: var(--hi-v4-spacing-4, 8px);}.hi-v4-alert--size-sm .hi-v4-alert__icon {-webkit-margin-end: var(--hi-v4-spacing-3, 6px);margin-inline-end: var(--hi-v4-spacing-3, 6px);}.hi-v4-alert__message {-webkit-box-flex: 1;-ms-flex: 1 1;flex: 1 1;width: 100%;}.hi-v4-alert__title {font-size: var(--hi-v4-text-size-md, 0.875rem);color: var(--hi-v4-color-gray-700, #1f2733);}.hi-v4-alert .hi-v4-alert__close {line-height: inherit;height: var(--hi-v4-text-lineheight-sm, 1.25rem);-webkit-margin-start: var(--hi-v4-spacing-4, 8px);margin-inline-start: var(--hi-v4-spacing-4, 8px);}.hi-v4-alert--type-primary {background-color: var(--hi-v4-color-primary-50, var(--hi-v4-color-brandblue-50, #e2f3fe));}.hi-v4-alert--type-primary .hi-v4-alert__icon {color: var(--hi-v4-color-primary-500, var(--hi-v4-color-brandblue-500, #237ffa));}.hi-v4-alert--type-warning {background-color: var(--hi-v4-color-warning-50, var(--hi-v4-color-yellow-50, #fefae0));}.hi-v4-alert--type-warning .hi-v4-alert__icon {color: var(--hi-v4-color-warning-500, var(--hi-v4-color-yellow-500, #fab007));}.hi-v4-alert--type-success {background-color: var(--hi-v4-color-success-50, var(--hi-v4-color-green-50, #e5feeb));}.hi-v4-alert--type-success .hi-v4-alert__icon {color: var(--hi-v4-color-success-500, var(--hi-v4-color-green-500, #14ca64));}.hi-v4-alert--type-danger {background-color: var(--hi-v4-color-danger-50, var(--hi-v4-color-red-50, #fee9e5));}.hi-v4-alert--type-danger .hi-v4-alert__icon {color: var(--hi-v4-color-danger-500, var(--hi-v4-color-red-500, #ff5959));}"; | ||
__styleInject__(css_248z); | ||
export { css_248z as default }; |
{ | ||
"name": "@hi-ui/alert", | ||
"version": "4.1.3", | ||
"version": "4.1.4-alpha.0", | ||
"description": "A sub-package for @hi-ui/hiui.", | ||
@@ -46,6 +46,6 @@ "keywords": [], | ||
"dependencies": { | ||
"@hi-ui/classname": "^4.0.4", | ||
"@hi-ui/env": "^4.0.4", | ||
"@hi-ui/icon-button": "^4.0.8", | ||
"@hi-ui/icons": "^4.0.18", | ||
"@hi-ui/classname": "^4.0.5-alpha.0", | ||
"@hi-ui/env": "^4.0.5-alpha.0", | ||
"@hi-ui/icon-button": "^4.0.9-alpha.0", | ||
"@hi-ui/icons": "^4.0.19-alpha.0", | ||
"@hi-ui/use-latest": "^4.0.4", | ||
@@ -55,3 +55,3 @@ "@hi-ui/use-timeout": "^4.0.4" | ||
"peerDependencies": { | ||
"@hi-ui/core": ">=4.0.8", | ||
"@hi-ui/core": ">=4.0.9-alpha.0", | ||
"react": ">=16.8.6", | ||
@@ -61,3 +61,3 @@ "react-dom": ">=16.8.6" | ||
"devDependencies": { | ||
"@hi-ui/core": "^4.0.8", | ||
"@hi-ui/core": "^4.0.9-alpha.0", | ||
"@hi-ui/core-css": "^4.1.5", | ||
@@ -64,0 +64,0 @@ "react": "^17.0.1", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
27409
1
+ Added@hi-ui/core@4.0.9-alpha.0(transitive)
Updated@hi-ui/env@^4.0.5-alpha.0
Updated@hi-ui/icons@^4.0.19-alpha.0