orcs-design-system 2.1.20 → 2.1.21

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.
@@ -113,6 +113,22 @@ export var disabled = function disabled() {
113
113
  tagType: "skill"
114
114
  }, "product design"));
115
115
  };
116
+ export var strikethrough = function strikethrough() {
117
+ return /*#__PURE__*/React.createElement(Spacer, {
118
+ m: "2px"
119
+ }, /*#__PURE__*/React.createElement(Tag, {
120
+ showStrikeThrough: true
121
+ }, "devops"), /*#__PURE__*/React.createElement(Tag, {
122
+ showStrikeThrough: true
123
+ }, "software engineering"), /*#__PURE__*/React.createElement(Tag, {
124
+ showStrikeThrough: true,
125
+ tagType: "skill"
126
+ }, "product design"), /*#__PURE__*/React.createElement(Tag, {
127
+ showStrikeThrough: true,
128
+ disabled: true,
129
+ tagType: "skill"
130
+ }, "digital transformation"));
131
+ };
116
132
  export var withTagType = function withTagType() {
117
133
  return /*#__PURE__*/React.createElement(Spacer, {
118
134
  m: "2px"
@@ -179,6 +195,11 @@ disabled.__docgenInfo = {
179
195
  "methods": [],
180
196
  "displayName": "disabled"
181
197
  };
198
+ strikethrough.__docgenInfo = {
199
+ "description": "",
200
+ "methods": [],
201
+ "displayName": "strikethrough"
202
+ };
182
203
  withTagType.__docgenInfo = {
183
204
  "description": "",
184
205
  "methods": [],
@@ -45,7 +45,9 @@ var TagValue = styled.button.withConfig({
45
45
  var TagValueText = styled.div.withConfig({
46
46
  displayName: "Tag__TagValueText",
47
47
  componentId: "sc-1dh2aa8-2"
48
- })(["text-overflow:ellipsis;white-space:normal;text-align:left;"]);
48
+ })(["text-decoration:", ";text-overflow:ellipsis;white-space:normal;text-align:left;"], function (props) {
49
+ return props.showStrikeThrough ? "line-through" : "none";
50
+ });
49
51
  var TagEdit = styled(TagValue).withConfig({
50
52
  displayName: "Tag__TagEdit",
51
53
  componentId: "sc-1dh2aa8-3"
@@ -92,9 +94,10 @@ export default function Tag(_ref) {
92
94
  tagType = _ref.tagType,
93
95
  showEdit = _ref.showEdit,
94
96
  onEdit = _ref.onEdit,
97
+ showStrikeThrough = _ref.showStrikeThrough,
95
98
  children = _ref.children,
96
99
  isPending = _ref.isPending,
97
- props = _objectWithoutProperties(_ref, ["selected", "onSelect", "disabled", "showRemove", "onRemove", "theme", "tagType", "showEdit", "onEdit", "children", "isPending"]);
100
+ props = _objectWithoutProperties(_ref, ["selected", "onSelect", "disabled", "showRemove", "onRemove", "theme", "tagType", "showEdit", "onEdit", "showStrikeThrough", "children", "isPending"]);
98
101
 
99
102
  var component = /*#__PURE__*/React.createElement(TagWrapper, props, /*#__PURE__*/React.createElement(TagValue, {
100
103
  selected: selected,
@@ -102,7 +105,9 @@ export default function Tag(_ref) {
102
105
  showEdit: showEdit,
103
106
  showRemove: showRemove,
104
107
  onClick: onSelect
105
- }, /*#__PURE__*/React.createElement(TagValueText, null, children), tagType && /*#__PURE__*/React.createElement(TagType, {
108
+ }, /*#__PURE__*/React.createElement(TagValueText, {
109
+ showStrikeThrough: showStrikeThrough
110
+ }, children), tagType && /*#__PURE__*/React.createElement(TagType, {
106
111
  selected: selected,
107
112
  disabled: disabled
108
113
  }, tagType), isPending && /*#__PURE__*/React.createElement(Loading, {
@@ -158,13 +163,17 @@ Tag.propTypes = {
158
163
  isPending: PropTypes.bool,
159
164
 
160
165
  /** Specifies the design theme */
161
- theme: PropTypes.object
166
+ theme: PropTypes.object,
167
+
168
+ /** Add a strikethrough to a tag value text */
169
+ showStrikeThrough: PropTypes.bool
162
170
  };
163
171
  Tag.defaultProps = {
164
172
  selected: false,
165
173
  disabled: false,
166
174
  showEdit: false,
167
- showRemove: false
175
+ showRemove: false,
176
+ showStrikeThrough: false
168
177
  };
169
178
  Tag.__docgenInfo = {
170
179
  "description": "The top two rows are an example of how tags should be used when they are selectable/unselectable. There is the option to display the cross icon or not.\n\nThe bottom row is when you want to show tags that aren't editable.",
@@ -215,6 +224,17 @@ Tag.__docgenInfo = {
215
224
  "required": false,
216
225
  "description": "Shows the remove button"
217
226
  },
227
+ "showStrikeThrough": {
228
+ "defaultValue": {
229
+ "value": "false",
230
+ "computed": false
231
+ },
232
+ "type": {
233
+ "name": "bool"
234
+ },
235
+ "required": false,
236
+ "description": "Add a strikethrough to a tag value text"
237
+ },
218
238
  "children": {
219
239
  "type": {
220
240
  "name": "union",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "orcs-design-system",
3
- "version": "2.1.20",
3
+ "version": "2.1.21",
4
4
  "description": "Orchestrated's Design System, aka: ORCS",
5
5
  "keywords": [
6
6
  "design",