glints-aries 4.1.30 → 4.1.31
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.
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
declare const badgeStatusVariant: readonly ["neutral", "success", "successBright", "information", "warning", "critical", "promotion", "enticing", "attention", "primary"];
|
|
2
|
+
declare const badgeStatusVariant: readonly ["neutral", "success", "successBright", "information", "warning", "critical", "promotion", "enticing", "attention", "primary", "branding"];
|
|
3
3
|
export declare type BadgeStatusVariant = (typeof badgeStatusVariant)[number];
|
|
4
4
|
export interface BadgeProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
5
5
|
children?: React.ReactNode;
|
package/es/@next/Badge/Badge.js
CHANGED
|
@@ -4,7 +4,7 @@ var _excluded = ["children", "hasBorder", "status", "textColor"];
|
|
|
4
4
|
import React from 'react';
|
|
5
5
|
import { Typography } from '../Typography';
|
|
6
6
|
import { BadgeStyle, badgeTextColor } from './BadgeStyle';
|
|
7
|
-
var badgeStatusVariant = ['neutral', 'success', 'successBright', 'information', 'warning', 'critical', 'promotion', 'enticing', 'attention', 'primary'];
|
|
7
|
+
var badgeStatusVariant = ['neutral', 'success', 'successBright', 'information', 'warning', 'critical', 'promotion', 'enticing', 'attention', 'primary', 'branding'];
|
|
8
8
|
var renderTextColor = function renderTextColor(textColor, status) {
|
|
9
9
|
if (textColor) {
|
|
10
10
|
return textColor;
|
|
@@ -3,8 +3,8 @@ import styled from 'styled-components';
|
|
|
3
3
|
import { borderRadius20 } from '../utilities/borderRadius';
|
|
4
4
|
import { Blue, Green, Neutral, Orange, Red, Yellow } from '../utilities/colors';
|
|
5
5
|
import { space8 } from '../utilities/spacing';
|
|
6
|
-
var badgeBackgroundColor = (_badgeBackgroundColor = {}, _badgeBackgroundColor['neutral'] = Neutral.B95, _badgeBackgroundColor['success'] = Green.B89, _badgeBackgroundColor['successBright'] = Green.B61, _badgeBackgroundColor['information'] = Blue.S08, _badgeBackgroundColor['warning'] = Orange.S21, _badgeBackgroundColor['critical'] = Red.B100, _badgeBackgroundColor['promotion'] = Yellow.S75, _badgeBackgroundColor['enticing'] = Orange.S87, _badgeBackgroundColor['attention'] = Red.B93, _badgeBackgroundColor['primary'] = Blue.S99, _badgeBackgroundColor);
|
|
7
|
-
export var badgeTextColor = (_badgeTextColor = {}, _badgeTextColor['neutral'] = Neutral.B18, _badgeTextColor['success'] = Neutral.B18, _badgeTextColor['successBright'] = Neutral.B100, _badgeTextColor['information'] = Neutral.B18, _badgeTextColor['warning'] = Neutral.B18, _badgeTextColor['critical'] = Neutral.B18, _badgeTextColor['promotion'] = Neutral.B18, _badgeTextColor['enticing'] = Neutral.B100, _badgeTextColor['attention'] = Neutral.B100, _badgeTextColor['primary'] = Neutral.B100, _badgeTextColor);
|
|
6
|
+
var badgeBackgroundColor = (_badgeBackgroundColor = {}, _badgeBackgroundColor['neutral'] = Neutral.B95, _badgeBackgroundColor['success'] = Green.B89, _badgeBackgroundColor['successBright'] = Green.B61, _badgeBackgroundColor['information'] = Blue.S08, _badgeBackgroundColor['warning'] = Orange.S21, _badgeBackgroundColor['critical'] = Red.B100, _badgeBackgroundColor['promotion'] = Yellow.S75, _badgeBackgroundColor['enticing'] = Orange.S87, _badgeBackgroundColor['attention'] = Red.B93, _badgeBackgroundColor['primary'] = Blue.S99, _badgeBackgroundColor['branding'] = Blue.Brand, _badgeBackgroundColor);
|
|
7
|
+
export var badgeTextColor = (_badgeTextColor = {}, _badgeTextColor['neutral'] = Neutral.B18, _badgeTextColor['success'] = Neutral.B18, _badgeTextColor['successBright'] = Neutral.B100, _badgeTextColor['information'] = Neutral.B18, _badgeTextColor['warning'] = Neutral.B18, _badgeTextColor['critical'] = Neutral.B18, _badgeTextColor['promotion'] = Neutral.B18, _badgeTextColor['enticing'] = Neutral.B100, _badgeTextColor['attention'] = Neutral.B100, _badgeTextColor['primary'] = Neutral.B100, _badgeTextColor['branding'] = Neutral.B100, _badgeTextColor);
|
|
8
8
|
var getBadgeBackgroundColor = function getBadgeBackgroundColor(status) {
|
|
9
9
|
if (!(status in badgeBackgroundColor)) {
|
|
10
10
|
console.warn(status + " is not a valid status, default will be used");
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
declare const badgeStatusVariant: readonly ["neutral", "success", "successBright", "information", "warning", "critical", "promotion", "enticing", "attention", "primary"];
|
|
2
|
+
declare const badgeStatusVariant: readonly ["neutral", "success", "successBright", "information", "warning", "critical", "promotion", "enticing", "attention", "primary", "branding"];
|
|
3
3
|
export declare type BadgeStatusVariant = (typeof badgeStatusVariant)[number];
|
|
4
4
|
export interface BadgeProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
5
5
|
children?: React.ReactNode;
|
package/lib/@next/Badge/Badge.js
CHANGED
|
@@ -9,7 +9,7 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
9
9
|
var _Typography = require("../Typography");
|
|
10
10
|
var _BadgeStyle = require("./BadgeStyle");
|
|
11
11
|
var _excluded = ["children", "hasBorder", "status", "textColor"];
|
|
12
|
-
var badgeStatusVariant = ['neutral', 'success', 'successBright', 'information', 'warning', 'critical', 'promotion', 'enticing', 'attention', 'primary'];
|
|
12
|
+
var badgeStatusVariant = ['neutral', 'success', 'successBright', 'information', 'warning', 'critical', 'promotion', 'enticing', 'attention', 'primary', 'branding'];
|
|
13
13
|
var renderTextColor = function renderTextColor(textColor, status) {
|
|
14
14
|
if (textColor) {
|
|
15
15
|
return textColor;
|
|
@@ -8,8 +8,8 @@ var _borderRadius = require("../utilities/borderRadius");
|
|
|
8
8
|
var _colors = require("../utilities/colors");
|
|
9
9
|
var _spacing = require("../utilities/spacing");
|
|
10
10
|
var _badgeBackgroundColor, _badgeTextColor;
|
|
11
|
-
var badgeBackgroundColor = (_badgeBackgroundColor = {}, _badgeBackgroundColor['neutral'] = _colors.Neutral.B95, _badgeBackgroundColor['success'] = _colors.Green.B89, _badgeBackgroundColor['successBright'] = _colors.Green.B61, _badgeBackgroundColor['information'] = _colors.Blue.S08, _badgeBackgroundColor['warning'] = _colors.Orange.S21, _badgeBackgroundColor['critical'] = _colors.Red.B100, _badgeBackgroundColor['promotion'] = _colors.Yellow.S75, _badgeBackgroundColor['enticing'] = _colors.Orange.S87, _badgeBackgroundColor['attention'] = _colors.Red.B93, _badgeBackgroundColor['primary'] = _colors.Blue.S99, _badgeBackgroundColor);
|
|
12
|
-
var badgeTextColor = (_badgeTextColor = {}, _badgeTextColor['neutral'] = _colors.Neutral.B18, _badgeTextColor['success'] = _colors.Neutral.B18, _badgeTextColor['successBright'] = _colors.Neutral.B100, _badgeTextColor['information'] = _colors.Neutral.B18, _badgeTextColor['warning'] = _colors.Neutral.B18, _badgeTextColor['critical'] = _colors.Neutral.B18, _badgeTextColor['promotion'] = _colors.Neutral.B18, _badgeTextColor['enticing'] = _colors.Neutral.B100, _badgeTextColor['attention'] = _colors.Neutral.B100, _badgeTextColor['primary'] = _colors.Neutral.B100, _badgeTextColor);
|
|
11
|
+
var badgeBackgroundColor = (_badgeBackgroundColor = {}, _badgeBackgroundColor['neutral'] = _colors.Neutral.B95, _badgeBackgroundColor['success'] = _colors.Green.B89, _badgeBackgroundColor['successBright'] = _colors.Green.B61, _badgeBackgroundColor['information'] = _colors.Blue.S08, _badgeBackgroundColor['warning'] = _colors.Orange.S21, _badgeBackgroundColor['critical'] = _colors.Red.B100, _badgeBackgroundColor['promotion'] = _colors.Yellow.S75, _badgeBackgroundColor['enticing'] = _colors.Orange.S87, _badgeBackgroundColor['attention'] = _colors.Red.B93, _badgeBackgroundColor['primary'] = _colors.Blue.S99, _badgeBackgroundColor['branding'] = _colors.Blue.Brand, _badgeBackgroundColor);
|
|
12
|
+
var badgeTextColor = (_badgeTextColor = {}, _badgeTextColor['neutral'] = _colors.Neutral.B18, _badgeTextColor['success'] = _colors.Neutral.B18, _badgeTextColor['successBright'] = _colors.Neutral.B100, _badgeTextColor['information'] = _colors.Neutral.B18, _badgeTextColor['warning'] = _colors.Neutral.B18, _badgeTextColor['critical'] = _colors.Neutral.B18, _badgeTextColor['promotion'] = _colors.Neutral.B18, _badgeTextColor['enticing'] = _colors.Neutral.B100, _badgeTextColor['attention'] = _colors.Neutral.B100, _badgeTextColor['primary'] = _colors.Neutral.B100, _badgeTextColor['branding'] = _colors.Neutral.B100, _badgeTextColor);
|
|
13
13
|
exports.badgeTextColor = badgeTextColor;
|
|
14
14
|
var getBadgeBackgroundColor = function getBadgeBackgroundColor(status) {
|
|
15
15
|
if (!(status in badgeBackgroundColor)) {
|