glints-aries 4.0.310 → 4.0.312
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/es/@next/Alert/Alert.d.ts +1 -0
- package/es/@next/Alert/Alert.js +3 -1
- package/es/@next/Alert/AlertStyle.d.ts +3 -1
- package/es/@next/Alert/AlertStyle.js +3 -1
- package/es/@next/Input/InputStyle.js +1 -1
- package/es/@next/Select/components/Activator/ActivatorSelect.js +1 -1
- package/es/@next/TextArea/TextAreaStyle.js +1 -1
- package/lib/@next/Alert/Alert.d.ts +1 -0
- package/lib/@next/Alert/Alert.js +3 -1
- package/lib/@next/Alert/AlertStyle.d.ts +3 -1
- package/lib/@next/Alert/AlertStyle.js +3 -1
- package/lib/@next/Input/InputStyle.js +1 -1
- package/lib/@next/Select/components/Activator/ActivatorSelect.js +1 -1
- package/lib/@next/TextArea/TextAreaStyle.js +1 -1
- package/package.json +1 -1
|
@@ -7,6 +7,7 @@ export declare type AlertProps = {
|
|
|
7
7
|
show?: boolean;
|
|
8
8
|
/** Duration of alert in miliseconds */
|
|
9
9
|
duration?: number;
|
|
10
|
+
zIndex?: number;
|
|
10
11
|
onDismissed?: () => void;
|
|
11
12
|
};
|
|
12
13
|
export declare const Alert: React.ForwardRefExoticComponent<AlertProps & React.RefAttributes<HTMLDivElement>>;
|
package/es/@next/Alert/Alert.js
CHANGED
|
@@ -16,6 +16,7 @@ export var Alert = /*#__PURE__*/React.forwardRef(function Alert(_ref, ref) {
|
|
|
16
16
|
_ref$duration = _ref.duration,
|
|
17
17
|
duration = _ref$duration === void 0 ? 4000 : _ref$duration,
|
|
18
18
|
children = _ref.children,
|
|
19
|
+
zIndex = _ref.zIndex,
|
|
19
20
|
onDismissed = _ref.onDismissed;
|
|
20
21
|
useEffect(function () {
|
|
21
22
|
if (!show) {
|
|
@@ -41,7 +42,8 @@ export var Alert = /*#__PURE__*/React.forwardRef(function Alert(_ref, ref) {
|
|
|
41
42
|
ref: ref,
|
|
42
43
|
role: "alert",
|
|
43
44
|
"data-titled": hasTitle,
|
|
44
|
-
"data-status": status || 'info'
|
|
45
|
+
"data-status": status || 'info',
|
|
46
|
+
zIndex: zIndex
|
|
45
47
|
}, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Icon, {
|
|
46
48
|
name: iconName
|
|
47
49
|
})), /*#__PURE__*/React.createElement("div", null, hasTitle && /*#__PURE__*/React.createElement(StyledAlertContentColumn, null, /*#__PURE__*/React.createElement(Typography, {
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
-
export declare const StyledAlertContainer: import("styled-components").StyledComponent<"div", any, {
|
|
1
|
+
export declare const StyledAlertContainer: import("styled-components").StyledComponent<"div", any, {
|
|
2
|
+
zIndex?: number;
|
|
3
|
+
}, never>;
|
|
2
4
|
export declare const StyledAlertCloseIconContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
3
5
|
export declare const StyledAlertContentColumn: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
@@ -6,7 +6,9 @@ import { space12, space8 } from '../utilities/spacing';
|
|
|
6
6
|
export var StyledAlertContainer = styled.div.withConfig({
|
|
7
7
|
displayName: "AlertStyle__StyledAlertContainer",
|
|
8
8
|
componentId: "sc-1e5i2kj-0"
|
|
9
|
-
})(["position:fixed;top:90px;right:24px;display:flex;padding:", ";gap:", ";max-width:640px;width:fit-content;border-radius:", ";box-shadow:0px 8px 20px rgba(71,71,71,0.2),0px 3px 6px -3px rgba(71,71,71,0.08);animation:slide-from-right 400ms cubic-bezier(0.35,0.8,1,0.86);z-index:
|
|
9
|
+
})(["position:fixed;top:90px;right:24px;display:flex;padding:", ";gap:", ";max-width:640px;width:fit-content;border-radius:", ";box-shadow:0px 8px 20px rgba(71,71,71,0.2),0px 3px 6px -3px rgba(71,71,71,0.08);animation:slide-from-right 400ms cubic-bezier(0.35,0.8,1,0.86);z-index:", ";color:", ";svg{display:block;height:24px;width:24px;}&[data-titled='true'] svg{margin-top:3px;}&[data-status='success']{background:", ";}&[data-status='success'] svg{fill:", ";}&[data-status='info']{background:", ";}&[data-status='info'] svg{fill:", ";}&[data-status='warning']{background:", ";}&[data-status='warning'] svg{fill:", ";}&[data-status='error']{background:", ";}&[data-status='error'] svg{fill:", ";}@media (max-width:", "){top:60px;&[data-titled='true']{margin-top:-1px;}&[data-titled='true'] svg{margin-top:0;}padding:", ";min-height:37px;}@media (max-width:480px){&[data-titled='true']{margin-top:-1px;}&[data-titled='true'] svg{margin-top:0;}max-width:calc(100vw - 48px);}@keyframes slide-from-right{0%{transform:translateX(50px);}50%{transform:translateX(0px);}75%{transform:translateX(-10px);}100%{transform:translateX(0px);}}"], space12, space8, borderRadius4, function (props) {
|
|
10
|
+
return props.zIndex ? props.zIndex : 100;
|
|
11
|
+
}, Neutral.B18, Green.B89, Green.B61, Blue.S08, Blue.S99, Orange.S21, Orange.S86, Red.B100, Red.B93, Breakpoints.large, space8);
|
|
10
12
|
export var StyledAlertCloseIconContainer = styled.div.withConfig({
|
|
11
13
|
displayName: "AlertStyle__StyledAlertCloseIconContainer",
|
|
12
14
|
componentId: "sc-1e5i2kj-1"
|
|
@@ -23,4 +23,4 @@ export var StyledSuffixContainer = styled(StyledPrefixContainer).withConfig({
|
|
|
23
23
|
export var StyledInput = styled.input.withConfig({
|
|
24
24
|
displayName: "InputStyle__StyledInput",
|
|
25
25
|
componentId: "sc-15z2mnd-3"
|
|
26
|
-
})(["background:", ";box-sizing:border-box;border:1px solid ", ";border-radius:", ";padding:0 12px;font-family:", ",sans-serif;font-style:normal;font-weight:400;font-size:16px;line-height:150%;color:", ";flex:none;order:1;align-self:stretch;flex-grow:0;height:36px;&::placeholder{color:", ";}&:focus{outline:none;box-shadow:0px 0px 0px 1px ", ",0px 0px 0px 3px #6ac9ec;}@media (max-width:", "){font-size:14px;}"], Neutral.B100, Neutral.B68, borderRadius4, NotoSans, Neutral.B18, Neutral.
|
|
26
|
+
})(["background:", ";box-sizing:border-box;border:1px solid ", ";border-radius:", ";padding:0 12px;font-family:", ",sans-serif;font-style:normal;font-weight:400;font-size:16px;line-height:150%;color:", ";flex:none;order:1;align-self:stretch;flex-grow:0;height:36px;&::placeholder{color:", ";}&:focus{outline:none;box-shadow:0px 0px 0px 1px ", ",0px 0px 0px 3px #6ac9ec;}@media (max-width:", "){font-size:14px;}"], Neutral.B100, Neutral.B68, borderRadius4, NotoSans, Neutral.B18, Neutral.B68, Neutral.B100, Breakpoints.large);
|
|
@@ -52,7 +52,7 @@ export var ActivatorSelect = function ActivatorSelect(_ref) {
|
|
|
52
52
|
var placeholderMarkup = /*#__PURE__*/React.createElement(Typography, {
|
|
53
53
|
variant: "body1",
|
|
54
54
|
as: "span",
|
|
55
|
-
color: disabled ? Neutral.B85 : Neutral.
|
|
55
|
+
color: disabled ? Neutral.B85 : Neutral.B68
|
|
56
56
|
}, placeholder);
|
|
57
57
|
var tagsMarkup = function tagsMarkup() {
|
|
58
58
|
if (!hasSelectedValues) {
|
|
@@ -11,7 +11,7 @@ export var StyledTextAreaContainer = styled.div.withConfig({
|
|
|
11
11
|
export var StyledTextArea = styled.textarea.withConfig({
|
|
12
12
|
displayName: "TextAreaStyle__StyledTextArea",
|
|
13
13
|
componentId: "sc-1cq0fhw-1"
|
|
14
|
-
})(["background:", ";box-sizing:border-box;border:none;", " color:", ";resize:none;width:100%;::-webkit-scrollbar{width:4px;}::-webkit-scrollbar-thumb{background-color:", ";border-radius:2px;}::-webkit-scrollbar-thumb:hover{background-color:", ";}&::placeholder{color:", ";}&:focus{outline:none;}:disabled{background:", ";::placeholder{color:", ";}}"], Neutral.B100, typographyBody1, Neutral.B18, Neutral.B68, Neutral.B40, Neutral.
|
|
14
|
+
})(["background:", ";box-sizing:border-box;border:none;", " color:", ";resize:none;width:100%;::-webkit-scrollbar{width:4px;}::-webkit-scrollbar-thumb{background-color:", ";border-radius:2px;}::-webkit-scrollbar-thumb:hover{background-color:", ";}&::placeholder{color:", ";}&:focus{outline:none;}:disabled{background:", ";::placeholder{color:", ";}}"], Neutral.B100, typographyBody1, Neutral.B18, Neutral.B68, Neutral.B40, Neutral.B68, Neutral.B95, Neutral.B85);
|
|
15
15
|
export var StyledWordCountContainer = styled.div.withConfig({
|
|
16
16
|
displayName: "TextAreaStyle__StyledWordCountContainer",
|
|
17
17
|
componentId: "sc-1cq0fhw-2"
|
|
@@ -7,6 +7,7 @@ export declare type AlertProps = {
|
|
|
7
7
|
show?: boolean;
|
|
8
8
|
/** Duration of alert in miliseconds */
|
|
9
9
|
duration?: number;
|
|
10
|
+
zIndex?: number;
|
|
10
11
|
onDismissed?: () => void;
|
|
11
12
|
};
|
|
12
13
|
export declare const Alert: React.ForwardRefExoticComponent<AlertProps & React.RefAttributes<HTMLDivElement>>;
|
package/lib/@next/Alert/Alert.js
CHANGED
|
@@ -22,6 +22,7 @@ var Alert = /*#__PURE__*/_react["default"].forwardRef(function Alert(_ref, ref)
|
|
|
22
22
|
_ref$duration = _ref.duration,
|
|
23
23
|
duration = _ref$duration === void 0 ? 4000 : _ref$duration,
|
|
24
24
|
children = _ref.children,
|
|
25
|
+
zIndex = _ref.zIndex,
|
|
25
26
|
onDismissed = _ref.onDismissed;
|
|
26
27
|
(0, _react.useEffect)(function () {
|
|
27
28
|
if (!show) {
|
|
@@ -47,7 +48,8 @@ var Alert = /*#__PURE__*/_react["default"].forwardRef(function Alert(_ref, ref)
|
|
|
47
48
|
ref: ref,
|
|
48
49
|
role: "alert",
|
|
49
50
|
"data-titled": hasTitle,
|
|
50
|
-
"data-status": status || 'info'
|
|
51
|
+
"data-status": status || 'info',
|
|
52
|
+
zIndex: zIndex
|
|
51
53
|
}, /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement(_Icon.Icon, {
|
|
52
54
|
name: iconName
|
|
53
55
|
})), /*#__PURE__*/_react["default"].createElement("div", null, hasTitle && /*#__PURE__*/_react["default"].createElement(_AlertStyle.StyledAlertContentColumn, null, /*#__PURE__*/_react["default"].createElement(_Typography.Typography, {
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
-
export declare const StyledAlertContainer: import("styled-components").StyledComponent<"div", any, {
|
|
1
|
+
export declare const StyledAlertContainer: import("styled-components").StyledComponent<"div", any, {
|
|
2
|
+
zIndex?: number;
|
|
3
|
+
}, never>;
|
|
2
4
|
export declare const StyledAlertCloseIconContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
3
5
|
export declare const StyledAlertContentColumn: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
@@ -13,7 +13,9 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
|
|
|
13
13
|
var StyledAlertContainer = _styledComponents["default"].div.withConfig({
|
|
14
14
|
displayName: "AlertStyle__StyledAlertContainer",
|
|
15
15
|
componentId: "sc-1e5i2kj-0"
|
|
16
|
-
})(["position:fixed;top:90px;right:24px;display:flex;padding:", ";gap:", ";max-width:640px;width:fit-content;border-radius:", ";box-shadow:0px 8px 20px rgba(71,71,71,0.2),0px 3px 6px -3px rgba(71,71,71,0.08);animation:slide-from-right 400ms cubic-bezier(0.35,0.8,1,0.86);z-index:
|
|
16
|
+
})(["position:fixed;top:90px;right:24px;display:flex;padding:", ";gap:", ";max-width:640px;width:fit-content;border-radius:", ";box-shadow:0px 8px 20px rgba(71,71,71,0.2),0px 3px 6px -3px rgba(71,71,71,0.08);animation:slide-from-right 400ms cubic-bezier(0.35,0.8,1,0.86);z-index:", ";color:", ";svg{display:block;height:24px;width:24px;}&[data-titled='true'] svg{margin-top:3px;}&[data-status='success']{background:", ";}&[data-status='success'] svg{fill:", ";}&[data-status='info']{background:", ";}&[data-status='info'] svg{fill:", ";}&[data-status='warning']{background:", ";}&[data-status='warning'] svg{fill:", ";}&[data-status='error']{background:", ";}&[data-status='error'] svg{fill:", ";}@media (max-width:", "){top:60px;&[data-titled='true']{margin-top:-1px;}&[data-titled='true'] svg{margin-top:0;}padding:", ";min-height:37px;}@media (max-width:480px){&[data-titled='true']{margin-top:-1px;}&[data-titled='true'] svg{margin-top:0;}max-width:calc(100vw - 48px);}@keyframes slide-from-right{0%{transform:translateX(50px);}50%{transform:translateX(0px);}75%{transform:translateX(-10px);}100%{transform:translateX(0px);}}"], _spacing.space12, _spacing.space8, _borderRadius.borderRadius4, function (props) {
|
|
17
|
+
return props.zIndex ? props.zIndex : 100;
|
|
18
|
+
}, _colors.Neutral.B18, _colors.Green.B89, _colors.Green.B61, _colors.Blue.S08, _colors.Blue.S99, _colors.Orange.S21, _colors.Orange.S86, _colors.Red.B100, _colors.Red.B93, Breakpoints.large, _spacing.space8);
|
|
17
19
|
exports.StyledAlertContainer = StyledAlertContainer;
|
|
18
20
|
var StyledAlertCloseIconContainer = _styledComponents["default"].div.withConfig({
|
|
19
21
|
displayName: "AlertStyle__StyledAlertCloseIconContainer",
|
|
@@ -33,5 +33,5 @@ exports.StyledSuffixContainer = StyledSuffixContainer;
|
|
|
33
33
|
var StyledInput = _styledComponents["default"].input.withConfig({
|
|
34
34
|
displayName: "InputStyle__StyledInput",
|
|
35
35
|
componentId: "sc-15z2mnd-3"
|
|
36
|
-
})(["background:", ";box-sizing:border-box;border:1px solid ", ";border-radius:", ";padding:0 12px;font-family:", ",sans-serif;font-style:normal;font-weight:400;font-size:16px;line-height:150%;color:", ";flex:none;order:1;align-self:stretch;flex-grow:0;height:36px;&::placeholder{color:", ";}&:focus{outline:none;box-shadow:0px 0px 0px 1px ", ",0px 0px 0px 3px #6ac9ec;}@media (max-width:", "){font-size:14px;}"], _colors.Neutral.B100, _colors.Neutral.B68, _borderRadius.borderRadius4, _fonts.NotoSans, _colors.Neutral.B18, _colors.Neutral.
|
|
36
|
+
})(["background:", ";box-sizing:border-box;border:1px solid ", ";border-radius:", ";padding:0 12px;font-family:", ",sans-serif;font-style:normal;font-weight:400;font-size:16px;line-height:150%;color:", ";flex:none;order:1;align-self:stretch;flex-grow:0;height:36px;&::placeholder{color:", ";}&:focus{outline:none;box-shadow:0px 0px 0px 1px ", ",0px 0px 0px 3px #6ac9ec;}@media (max-width:", "){font-size:14px;}"], _colors.Neutral.B100, _colors.Neutral.B68, _borderRadius.borderRadius4, _fonts.NotoSans, _colors.Neutral.B18, _colors.Neutral.B68, _colors.Neutral.B100, Breakpoints.large);
|
|
37
37
|
exports.StyledInput = StyledInput;
|
|
@@ -59,7 +59,7 @@ var ActivatorSelect = function ActivatorSelect(_ref) {
|
|
|
59
59
|
var placeholderMarkup = /*#__PURE__*/_react["default"].createElement(_Typography.Typography, {
|
|
60
60
|
variant: "body1",
|
|
61
61
|
as: "span",
|
|
62
|
-
color: disabled ? _colors.Neutral.B85 : _colors.Neutral.
|
|
62
|
+
color: disabled ? _colors.Neutral.B85 : _colors.Neutral.B68
|
|
63
63
|
}, placeholder);
|
|
64
64
|
var tagsMarkup = function tagsMarkup() {
|
|
65
65
|
if (!hasSelectedValues) {
|
|
@@ -17,7 +17,7 @@ exports.StyledTextAreaContainer = StyledTextAreaContainer;
|
|
|
17
17
|
var StyledTextArea = _styledComponents["default"].textarea.withConfig({
|
|
18
18
|
displayName: "TextAreaStyle__StyledTextArea",
|
|
19
19
|
componentId: "sc-1cq0fhw-1"
|
|
20
|
-
})(["background:", ";box-sizing:border-box;border:none;", " color:", ";resize:none;width:100%;::-webkit-scrollbar{width:4px;}::-webkit-scrollbar-thumb{background-color:", ";border-radius:2px;}::-webkit-scrollbar-thumb:hover{background-color:", ";}&::placeholder{color:", ";}&:focus{outline:none;}:disabled{background:", ";::placeholder{color:", ";}}"], _colors.Neutral.B100, _TypographyStyles.body1, _colors.Neutral.B18, _colors.Neutral.B68, _colors.Neutral.B40, _colors.Neutral.
|
|
20
|
+
})(["background:", ";box-sizing:border-box;border:none;", " color:", ";resize:none;width:100%;::-webkit-scrollbar{width:4px;}::-webkit-scrollbar-thumb{background-color:", ";border-radius:2px;}::-webkit-scrollbar-thumb:hover{background-color:", ";}&::placeholder{color:", ";}&:focus{outline:none;}:disabled{background:", ";::placeholder{color:", ";}}"], _colors.Neutral.B100, _TypographyStyles.body1, _colors.Neutral.B18, _colors.Neutral.B68, _colors.Neutral.B40, _colors.Neutral.B68, _colors.Neutral.B95, _colors.Neutral.B85);
|
|
21
21
|
exports.StyledTextArea = StyledTextArea;
|
|
22
22
|
var StyledWordCountContainer = _styledComponents["default"].div.withConfig({
|
|
23
23
|
displayName: "TextAreaStyle__StyledWordCountContainer",
|