orcs-design-system 3.1.10 → 3.1.11
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,3 +1,4 @@
|
|
|
1
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
1
2
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
2
3
|
var _excluded = ["selected", "onSelect", "disabled", "showRemove", "onRemove", "theme", "tagType", "showEdit", "onEdit", "showInfo", "onInfo", "showStrikeThrough", "children", "isPending", "small", "highlighted", "personEntity"];
|
|
3
4
|
import React from "react";
|
|
@@ -11,7 +12,9 @@ import { themeGet } from "@styled-system/theme-get";
|
|
|
11
12
|
var TagWrapper = styled.div.withConfig({
|
|
12
13
|
displayName: "Tag__TagWrapper",
|
|
13
14
|
componentId: "sc-1dh2aa8-0"
|
|
14
|
-
})(["", " ", " display:flex;align-items:stretch;height:100%;justify-content:center;> button{margin:0;}"], space, layout)
|
|
15
|
+
})(["", " ", " display:flex;align-items:stretch;height:100%;min-height:", ";justify-content:center;> button{margin:0;}"], space, layout, function (props) {
|
|
16
|
+
return props.small ? "26px" : "30px";
|
|
17
|
+
});
|
|
15
18
|
var TagValue = styled.button.attrs(function (props) {
|
|
16
19
|
return {
|
|
17
20
|
"aria-pressed": props.selected
|
|
@@ -142,7 +145,9 @@ export default function Tag(_ref) {
|
|
|
142
145
|
highlighted = _ref.highlighted,
|
|
143
146
|
personEntity = _ref.personEntity,
|
|
144
147
|
props = _objectWithoutProperties(_ref, _excluded);
|
|
145
|
-
var component = /*#__PURE__*/React.createElement(TagWrapper,
|
|
148
|
+
var component = /*#__PURE__*/React.createElement(TagWrapper, _extends({
|
|
149
|
+
small: small
|
|
150
|
+
}, props), /*#__PURE__*/React.createElement(TagValue, {
|
|
146
151
|
selected: selected,
|
|
147
152
|
highlighted: highlighted,
|
|
148
153
|
disabled: disabled,
|