orcs-design-system 2.1.0 → 2.1.2
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.
|
@@ -115,7 +115,7 @@ var Modal = function Modal(_ref) {
|
|
|
115
115
|
p: "r",
|
|
116
116
|
id: modalID
|
|
117
117
|
}, headerContent ? /*#__PURE__*/React.createElement(HeaderContent, null, /*#__PURE__*/React.createElement(Box, {
|
|
118
|
-
mr: "
|
|
118
|
+
mr: "xl",
|
|
119
119
|
width: "100%"
|
|
120
120
|
}, headerContent), /*#__PURE__*/React.createElement(CloseButton, {
|
|
121
121
|
onClick: onClose,
|
|
@@ -67,6 +67,17 @@ export var defaultSelect = function defaultSelect() {
|
|
|
67
67
|
defaultSelect.story = {
|
|
68
68
|
name: "Default"
|
|
69
69
|
};
|
|
70
|
+
export var disabledSelect = function disabledSelect() {
|
|
71
|
+
return /*#__PURE__*/React.createElement(Select, {
|
|
72
|
+
options: options,
|
|
73
|
+
label: "Select label",
|
|
74
|
+
inputId: "defaultSelect",
|
|
75
|
+
isDisabled: true
|
|
76
|
+
});
|
|
77
|
+
};
|
|
78
|
+
defaultSelect.story = {
|
|
79
|
+
name: "Disabled"
|
|
80
|
+
};
|
|
70
81
|
export var SpecificHeightSelect = function SpecificHeightSelect() {
|
|
71
82
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Spacer, {
|
|
72
83
|
mb: "l"
|
|
@@ -208,6 +219,11 @@ defaultSelect.__docgenInfo = {
|
|
|
208
219
|
"methods": [],
|
|
209
220
|
"displayName": "defaultSelect"
|
|
210
221
|
};
|
|
222
|
+
disabledSelect.__docgenInfo = {
|
|
223
|
+
"description": "",
|
|
224
|
+
"methods": [],
|
|
225
|
+
"displayName": "disabledSelect"
|
|
226
|
+
};
|
|
211
227
|
SpecificHeightSelect.__docgenInfo = {
|
|
212
228
|
"description": "",
|
|
213
229
|
"methods": [],
|
|
@@ -376,6 +376,9 @@ Select.propTypes = {
|
|
|
376
376
|
/** Makes label bold */
|
|
377
377
|
bold: PropTypes.bool,
|
|
378
378
|
|
|
379
|
+
/** Makes select disabled */
|
|
380
|
+
isDisabled: PropTypes.bool,
|
|
381
|
+
|
|
379
382
|
/** Specifies the ID for the rendered Select box. If you use the label prop label will automatically point to this ID. */
|
|
380
383
|
inputId: PropTypes.string,
|
|
381
384
|
|
|
@@ -469,6 +472,13 @@ Select.__docgenInfo = {
|
|
|
469
472
|
"required": false,
|
|
470
473
|
"description": "Makes label bold"
|
|
471
474
|
},
|
|
475
|
+
"isDisabled": {
|
|
476
|
+
"type": {
|
|
477
|
+
"name": "bool"
|
|
478
|
+
},
|
|
479
|
+
"required": false,
|
|
480
|
+
"description": "Makes select disabled"
|
|
481
|
+
},
|
|
472
482
|
"inputId": {
|
|
473
483
|
"type": {
|
|
474
484
|
"name": "string"
|
|
@@ -44,7 +44,7 @@ var TagValue = styled.button.withConfig({
|
|
|
44
44
|
var TagValueText = styled.div.withConfig({
|
|
45
45
|
displayName: "Tag__TagValueText",
|
|
46
46
|
componentId: "sc-1dh2aa8-2"
|
|
47
|
-
})(["max-width:40ch;overflow:hidden;text-overflow:ellipsis;"]);
|
|
47
|
+
})(["max-width:40ch;overflow:hidden;text-overflow:ellipsis;white-space:normal;text-align:left;"]);
|
|
48
48
|
var TagEdit = styled(TagValue).withConfig({
|
|
49
49
|
displayName: "Tag__TagEdit",
|
|
50
50
|
componentId: "sc-1dh2aa8-3"
|