orcs-design-system 3.1.11 → 3.1.12
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.
|
@@ -201,13 +201,11 @@ export var smallVariant = function smallVariant() {
|
|
|
201
201
|
}, "Agile Coach");
|
|
202
202
|
};
|
|
203
203
|
export var highlightedVariant = function highlightedVariant() {
|
|
204
|
-
return /*#__PURE__*/React.createElement(
|
|
205
|
-
m: "2px"
|
|
206
|
-
}, /*#__PURE__*/React.createElement(Tag, {
|
|
204
|
+
return /*#__PURE__*/React.createElement(Tag, {
|
|
207
205
|
selected: true,
|
|
208
206
|
highlighted: true,
|
|
209
207
|
tagType: "specialist"
|
|
210
|
-
}, "Agile Coach")
|
|
208
|
+
}, "Agile Coach");
|
|
211
209
|
};
|
|
212
210
|
export var personTag = function personTag() {
|
|
213
211
|
return /*#__PURE__*/React.createElement(Spacer, {
|
|
@@ -13,7 +13,7 @@ var TagWrapper = styled.div.withConfig({
|
|
|
13
13
|
displayName: "Tag__TagWrapper",
|
|
14
14
|
componentId: "sc-1dh2aa8-0"
|
|
15
15
|
})(["", " ", " display:flex;align-items:stretch;height:100%;min-height:", ";justify-content:center;> button{margin:0;}"], space, layout, function (props) {
|
|
16
|
-
return props.small ? "
|
|
16
|
+
return props.small ? themeGet("tagScale.tagHeightSmall") : themeGet("tagScale.tagHeightDefault");
|
|
17
17
|
});
|
|
18
18
|
var TagValue = styled.button.attrs(function (props) {
|
|
19
19
|
return {
|
|
@@ -37,7 +37,7 @@ var TagValue = styled.button.attrs(function (props) {
|
|
|
37
37
|
}, function (props) {
|
|
38
38
|
return props.disabled ? themeGet("colors.greyLight")(props) : props.selected && props.highlighted ? themeGet("colors.warningDark")(props) : themeGet("colors.primary")(props);
|
|
39
39
|
}, function (props) {
|
|
40
|
-
return
|
|
40
|
+
return props.small ? themeGet("tagScale.tagPaddingSmall") : themeGet("tagScale.tagPaddingDefault");
|
|
41
41
|
}, function (props) {
|
|
42
42
|
return props.disabled ? themeGet("colors.greyLighter")(props) : props.selected && props.highlighted ? themeGet("colors.warningDark")(props) : props.selected ? themeGet("colors.primary")(props) : themeGet("colors.white")(props);
|
|
43
43
|
}, function (props) {
|
|
@@ -69,7 +69,7 @@ var TagActionIconWrapper = styled(TagValue).withConfig({
|
|
|
69
69
|
})(["border-radius:", ";padding:", ";&:focus{z-index:2;}> span{line-height:0;}", ""], function (props) {
|
|
70
70
|
return props.showRemove ? "0" : "0 15px 15px 0";
|
|
71
71
|
}, function (props) {
|
|
72
|
-
return props.showRemove ? "0 7px 0 7px" : props.showInfo ? "0 12px 0 11px" : "0 8px 0 8px";
|
|
72
|
+
return props.showRemove && props.small ? "0 5px 0 6px" : props.showRemove ? "0 7px 0 7px" : props.showInfo && props.small ? "0 10px 0 9px" : props.showInfo ? "0 12px 0 11px" : props.small ? "0 6px 0 6px" : "0 8px 0 8px";
|
|
73
73
|
}, function (props) {
|
|
74
74
|
return props.selected ? css(["border-left:", ";&:hover{border-left:", ";}"], function (props) {
|
|
75
75
|
return props.selected && props.highlighted ? "solid 1px ".concat(themeGet("colors.warningDarker")(props)) : "solid 1px ".concat(themeGet("colors.primaryDark")(props));
|
|
@@ -80,7 +80,9 @@ var TagActionIconWrapper = styled(TagValue).withConfig({
|
|
|
80
80
|
var TagRemoveIconWrapper = styled(TagValue).withConfig({
|
|
81
81
|
displayName: "Tag__TagRemoveIconWrapper",
|
|
82
82
|
componentId: "sc-1dh2aa8-4"
|
|
83
|
-
})(["border-radius:0 15px 15px 0;padding:
|
|
83
|
+
})(["border-radius:0 15px 15px 0;padding:", ";&:focus{z-index:2;}", ""], function (props) {
|
|
84
|
+
return props.small ? "0 8px 3px 7px" : "0 10px 3px 9px";
|
|
85
|
+
}, function (props) {
|
|
84
86
|
return props.selected ? css(["border-left:", ";&:hover{border-left:", ";}"], function (props) {
|
|
85
87
|
return props.selected && props.highlighted ? "solid 1px ".concat(themeGet("colors.warningDarker")(props)) : "solid 1px ".concat(themeGet("colors.primaryDark")(props));
|
|
86
88
|
}, function (props) {
|
|
@@ -93,7 +95,7 @@ var TagType = styled.div.withConfig({
|
|
|
93
95
|
})(["text-transform:uppercase;margin-left:", ";padding:", ";line-height:1;white-space:normal;text-align:left;flex:1 1 auto;border-radius:", ";font-size:", ";background-color:", ";color:", ";"], function (props) {
|
|
94
96
|
return props.small ? "6px" : "10px";
|
|
95
97
|
}, function (props) {
|
|
96
|
-
return props.small ? themeGet("space.
|
|
98
|
+
return props.small ? themeGet("space.2")(props) : themeGet("space.2")(props);
|
|
97
99
|
}, function (props) {
|
|
98
100
|
return themeGet("radii.1")(props);
|
|
99
101
|
}, function (props) {
|
|
@@ -107,13 +109,13 @@ var TagAvatar = styled(Avatar).withConfig({
|
|
|
107
109
|
displayName: "Tag__TagAvatar",
|
|
108
110
|
componentId: "sc-1dh2aa8-6"
|
|
109
111
|
})(["img[class*=\"Avatar__Image\"],div[class*=\"Avatar__Shape\"]{width:", ";height:", ";text-transform:uppercase;margin-right:", ";margin-left:", ";font-size:", ";background-color:", ";color:", ";}"], function (props) {
|
|
110
|
-
return props.small ? "
|
|
112
|
+
return props.small ? themeGet("tagScale.tagAvatarSizeSmall") : themeGet("tagScale.tagAvatarSizeDefault");
|
|
111
113
|
}, function (props) {
|
|
112
|
-
return props.small ? "
|
|
114
|
+
return props.small ? themeGet("tagScale.tagAvatarSizeSmall") : themeGet("tagScale.tagAvatarSizeDefault");
|
|
113
115
|
}, themeGet("space.xs"), function (props) {
|
|
114
|
-
return props.small ? "
|
|
116
|
+
return props.small ? themeGet("tagScale.tagAvatarMarginLeftSmall") : themeGet("tagScale.tagAvatarMarginLeftDefault");
|
|
115
117
|
}, function (props) {
|
|
116
|
-
return props.small ? "
|
|
118
|
+
return props.small ? themeGet("tagScale.tagAvatarFontSizeSmall") : themeGet("tagScale.tagAvatarFontSizeDefault");
|
|
117
119
|
}, function (props) {
|
|
118
120
|
return props.disabled ? themeGet("colors.grey")(props) : props.selected && props.highlighted ? "rgba(0,0,0,0.2)" : props.selected ? "rgba(0,0,0,0.25)" : themeGet("colors.primaryLightest")(props);
|
|
119
121
|
}, function (props) {
|
|
@@ -155,7 +157,9 @@ export default function Tag(_ref) {
|
|
|
155
157
|
showInfo: showInfo,
|
|
156
158
|
showRemove: showRemove,
|
|
157
159
|
onClick: onSelect,
|
|
158
|
-
small: small
|
|
160
|
+
small: small,
|
|
161
|
+
"aria-label": "Navigate to tag",
|
|
162
|
+
title: "Navigate to tag"
|
|
159
163
|
}, personEntity && /*#__PURE__*/React.createElement(TagAvatar, {
|
|
160
164
|
selected: selected,
|
|
161
165
|
highlighted: highlighted,
|
|
@@ -180,7 +184,10 @@ export default function Tag(_ref) {
|
|
|
180
184
|
highlighted: highlighted,
|
|
181
185
|
disabled: disabled,
|
|
182
186
|
showRemove: showRemove,
|
|
183
|
-
onClick: onEdit
|
|
187
|
+
onClick: onEdit,
|
|
188
|
+
small: small,
|
|
189
|
+
"aria-label": "Edit tag",
|
|
190
|
+
title: "Edit tag"
|
|
184
191
|
}, /*#__PURE__*/React.createElement(Icon, {
|
|
185
192
|
icon: ["fas", "pen"],
|
|
186
193
|
size: "xs"
|
|
@@ -189,7 +196,10 @@ export default function Tag(_ref) {
|
|
|
189
196
|
highlighted: highlighted,
|
|
190
197
|
disabled: disabled,
|
|
191
198
|
onClick: onInfo,
|
|
192
|
-
showInfo: showInfo
|
|
199
|
+
showInfo: showInfo,
|
|
200
|
+
small: small,
|
|
201
|
+
"aria-label": "View tag details",
|
|
202
|
+
title: "View tag details"
|
|
193
203
|
}, /*#__PURE__*/React.createElement(Icon, {
|
|
194
204
|
icon: ["fas", "info"],
|
|
195
205
|
size: "xs"
|
|
@@ -197,7 +207,10 @@ export default function Tag(_ref) {
|
|
|
197
207
|
selected: selected,
|
|
198
208
|
highlighted: highlighted,
|
|
199
209
|
disabled: disabled,
|
|
200
|
-
onClick: onRemove
|
|
210
|
+
onClick: onRemove,
|
|
211
|
+
small: small,
|
|
212
|
+
"aria-label": "Remove tag",
|
|
213
|
+
title: "Remove tag"
|
|
201
214
|
}, /*#__PURE__*/React.createElement(Icon, {
|
|
202
215
|
icon: ["fas", "times"],
|
|
203
216
|
size: "xs"
|
|
@@ -235,6 +235,18 @@ export var appScale = {
|
|
|
235
235
|
inputHeightDefault: "32px",
|
|
236
236
|
inputHeightLarge: "52px"
|
|
237
237
|
};
|
|
238
|
+
export var tagScale = {
|
|
239
|
+
tagHeightDefault: "22px",
|
|
240
|
+
tagHeightSmall: "18px",
|
|
241
|
+
tagPaddingDefault: "0 8px",
|
|
242
|
+
tagPaddingSmall: "0 6px",
|
|
243
|
+
tagAvatarSizeDefault: "16px",
|
|
244
|
+
tagAvatarSizeSmall: "14px",
|
|
245
|
+
tagAvatarMarginLeftDefault: "-6px",
|
|
246
|
+
tagAvatarMarginLeftSmall: "-5px",
|
|
247
|
+
tagAvatarFontSizeDefault: "0.8rem",
|
|
248
|
+
tagAvatarFontSizeSmall: "0.7rem"
|
|
249
|
+
};
|
|
238
250
|
export default {
|
|
239
251
|
fonts: fonts,
|
|
240
252
|
font: font,
|
|
@@ -251,5 +263,6 @@ export default {
|
|
|
251
263
|
breakpoints: breakpoints,
|
|
252
264
|
transition: transition,
|
|
253
265
|
zIndices: zIndices,
|
|
254
|
-
appScale: appScale
|
|
266
|
+
appScale: appScale,
|
|
267
|
+
tagScale: tagScale
|
|
255
268
|
};
|
package/es/systemtheme.js
CHANGED
|
@@ -234,6 +234,18 @@ export var appScale = {
|
|
|
234
234
|
inputHeightDefault: "38px",
|
|
235
235
|
inputHeightLarge: "58px"
|
|
236
236
|
};
|
|
237
|
+
export var tagScale = {
|
|
238
|
+
tagHeightDefault: "28px",
|
|
239
|
+
tagHeightSmall: "24px",
|
|
240
|
+
tagPaddingDefault: "0 10px",
|
|
241
|
+
tagPaddingSmall: "0 8px",
|
|
242
|
+
tagAvatarSizeDefault: "20px",
|
|
243
|
+
tagAvatarSizeSmall: "18px",
|
|
244
|
+
tagAvatarMarginLeftDefault: "-7px",
|
|
245
|
+
tagAvatarMarginLeftSmall: "-6px",
|
|
246
|
+
tagAvatarFontSizeDefault: "0.9rem",
|
|
247
|
+
tagAvatarFontSizeSmall: "0.8rem"
|
|
248
|
+
};
|
|
237
249
|
export default {
|
|
238
250
|
fonts: fonts,
|
|
239
251
|
font: font,
|
|
@@ -250,5 +262,6 @@ export default {
|
|
|
250
262
|
breakpoints: breakpoints,
|
|
251
263
|
transition: transition,
|
|
252
264
|
zIndices: zIndices,
|
|
253
|
-
appScale: appScale
|
|
265
|
+
appScale: appScale,
|
|
266
|
+
tagScale: tagScale
|
|
254
267
|
};
|