glints-aries 4.0.311 → 4.0.313
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/ActionList/ActionItem.d.ts +1 -1
- package/es/@next/ActionList/ActionItem.js +8 -4
- package/es/@next/ActionList/ActionList.d.ts +1 -0
- package/es/@next/ActionList/ActionListStyle.js +1 -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/ActionList/ActionItem.d.ts +1 -1
- package/lib/@next/ActionList/ActionItem.js +8 -4
- package/lib/@next/ActionList/ActionList.d.ts +1 -0
- package/lib/@next/ActionList/ActionListStyle.js +1 -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
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { Item } from './ActionList';
|
|
3
|
-
export declare const ActionItem: ({ content, description, icon, action }: Item) => JSX.Element;
|
|
3
|
+
export declare const ActionItem: ({ content, description, icon, action, disabled, }: Item) => JSX.Element;
|
|
@@ -6,7 +6,8 @@ export var ActionItem = function ActionItem(_ref) {
|
|
|
6
6
|
var content = _ref.content,
|
|
7
7
|
description = _ref.description,
|
|
8
8
|
icon = _ref.icon,
|
|
9
|
-
action = _ref.action
|
|
9
|
+
action = _ref.action,
|
|
10
|
+
disabled = _ref.disabled;
|
|
10
11
|
var hasDescription = !!description;
|
|
11
12
|
return /*#__PURE__*/React.createElement(StyledActionListItemWrapper, {
|
|
12
13
|
tabIndex: 0,
|
|
@@ -16,13 +17,16 @@ export var ActionItem = function ActionItem(_ref) {
|
|
|
16
17
|
},
|
|
17
18
|
onClick: function onClick() {
|
|
18
19
|
return action == null ? void 0 : action();
|
|
19
|
-
}
|
|
20
|
+
},
|
|
21
|
+
"data-disabled": disabled
|
|
20
22
|
}, /*#__PURE__*/React.createElement(StyledActionListItem, null, icon, /*#__PURE__*/React.createElement(Typography, {
|
|
21
23
|
as: "div",
|
|
22
|
-
variant: "body1"
|
|
24
|
+
variant: "body1",
|
|
25
|
+
className: "action-item-content"
|
|
23
26
|
}, content)), hasDescription && /*#__PURE__*/React.createElement(StyledActionListItemDescription, null, /*#__PURE__*/React.createElement(Typography, {
|
|
24
27
|
as: "div",
|
|
25
28
|
variant: "body1",
|
|
26
|
-
color: Neutral.B40
|
|
29
|
+
color: Neutral.B40,
|
|
30
|
+
className: "action-item-description"
|
|
27
31
|
}, description)));
|
|
28
32
|
};
|
|
@@ -14,7 +14,7 @@ export var StyledActionListSection = styled.div.withConfig({
|
|
|
14
14
|
export var StyledActionListItemWrapper = styled.div.withConfig({
|
|
15
15
|
displayName: "ActionListStyle__StyledActionListItemWrapper",
|
|
16
16
|
componentId: "sc-2x4nd5-2"
|
|
17
|
-
})(["margin:0 ", ";cursor:pointer;&:hover{background:", ";border-radius:", ";}&:active{background:", ";border-radius:", ";}&&&{&:active{border:0;}}&:focus{outline:none;border:2px solid ", ";border-radius:", ";}"], space8, Neutral.B99, borderRadius4, Neutral.B95, borderRadius4, Blue.S54, borderRadius4);
|
|
17
|
+
})(["margin:0 ", ";cursor:pointer;&:hover{background:", ";border-radius:", ";}&:active{background:", ";border-radius:", ";}&&&{&:active{border:0;}}&:focus{outline:none;border:2px solid ", ";border-radius:", ";}&[data-disabled='true']{pointer-events:none;svg{fill:", ";}.action-item-content,.action-item-description{color:", ";}}"], space8, Neutral.B99, borderRadius4, Neutral.B95, borderRadius4, Blue.S54, borderRadius4, Neutral.B85, Neutral.B85);
|
|
18
18
|
export var StyledActionListItem = styled.div.withConfig({
|
|
19
19
|
displayName: "ActionListStyle__StyledActionListItem",
|
|
20
20
|
componentId: "sc-2x4nd5-3"
|
|
@@ -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"
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { Item } from './ActionList';
|
|
3
|
-
export declare const ActionItem: ({ content, description, icon, action }: Item) => JSX.Element;
|
|
3
|
+
export declare const ActionItem: ({ content, description, icon, action, disabled, }: Item) => JSX.Element;
|
|
@@ -11,7 +11,8 @@ var ActionItem = function ActionItem(_ref) {
|
|
|
11
11
|
var content = _ref.content,
|
|
12
12
|
description = _ref.description,
|
|
13
13
|
icon = _ref.icon,
|
|
14
|
-
action = _ref.action
|
|
14
|
+
action = _ref.action,
|
|
15
|
+
disabled = _ref.disabled;
|
|
15
16
|
var hasDescription = !!description;
|
|
16
17
|
return /*#__PURE__*/_react["default"].createElement(_ActionListStyle.StyledActionListItemWrapper, {
|
|
17
18
|
tabIndex: 0,
|
|
@@ -21,14 +22,17 @@ var ActionItem = function ActionItem(_ref) {
|
|
|
21
22
|
},
|
|
22
23
|
onClick: function onClick() {
|
|
23
24
|
return action == null ? void 0 : action();
|
|
24
|
-
}
|
|
25
|
+
},
|
|
26
|
+
"data-disabled": disabled
|
|
25
27
|
}, /*#__PURE__*/_react["default"].createElement(_ActionListStyle.StyledActionListItem, null, icon, /*#__PURE__*/_react["default"].createElement(_Typography.Typography, {
|
|
26
28
|
as: "div",
|
|
27
|
-
variant: "body1"
|
|
29
|
+
variant: "body1",
|
|
30
|
+
className: "action-item-content"
|
|
28
31
|
}, content)), hasDescription && /*#__PURE__*/_react["default"].createElement(_ActionListStyle.StyledActionListItemDescription, null, /*#__PURE__*/_react["default"].createElement(_Typography.Typography, {
|
|
29
32
|
as: "div",
|
|
30
33
|
variant: "body1",
|
|
31
|
-
color: _colors.Neutral.B40
|
|
34
|
+
color: _colors.Neutral.B40,
|
|
35
|
+
className: "action-item-description"
|
|
32
36
|
}, description)));
|
|
33
37
|
};
|
|
34
38
|
exports.ActionItem = ActionItem;
|
|
@@ -23,7 +23,7 @@ exports.StyledActionListSection = StyledActionListSection;
|
|
|
23
23
|
var StyledActionListItemWrapper = _styledComponents["default"].div.withConfig({
|
|
24
24
|
displayName: "ActionListStyle__StyledActionListItemWrapper",
|
|
25
25
|
componentId: "sc-2x4nd5-2"
|
|
26
|
-
})(["margin:0 ", ";cursor:pointer;&:hover{background:", ";border-radius:", ";}&:active{background:", ";border-radius:", ";}&&&{&:active{border:0;}}&:focus{outline:none;border:2px solid ", ";border-radius:", ";}"], _spacing.space8, _colors.Neutral.B99, _borderRadius.borderRadius4, _colors.Neutral.B95, _borderRadius.borderRadius4, _colors.Blue.S54, _borderRadius.borderRadius4);
|
|
26
|
+
})(["margin:0 ", ";cursor:pointer;&:hover{background:", ";border-radius:", ";}&:active{background:", ";border-radius:", ";}&&&{&:active{border:0;}}&:focus{outline:none;border:2px solid ", ";border-radius:", ";}&[data-disabled='true']{pointer-events:none;svg{fill:", ";}.action-item-content,.action-item-description{color:", ";}}"], _spacing.space8, _colors.Neutral.B99, _borderRadius.borderRadius4, _colors.Neutral.B95, _borderRadius.borderRadius4, _colors.Blue.S54, _borderRadius.borderRadius4, _colors.Neutral.B85, _colors.Neutral.B85);
|
|
27
27
|
exports.StyledActionListItemWrapper = StyledActionListItemWrapper;
|
|
28
28
|
var StyledActionListItem = _styledComponents["default"].div.withConfig({
|
|
29
29
|
displayName: "ActionListStyle__StyledActionListItem",
|
|
@@ -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",
|