orcs-design-system 2.0.77 → 2.0.78

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.
@@ -90,7 +90,15 @@ var defaultProps = {
90
90
  var DatePickerContainer = styled.div.withConfig({
91
91
  displayName: "DatePicker__DatePickerContainer",
92
92
  componentId: "sc-15292wq-0"
93
- })([".SingleDatePickerInput,.DateRangePickerInput{display:block;cursor:text;-moz-appearance:none;-webkit-appearance:none;appearance:none;box-shadow:none;font-family:\"Open Sans\",\"Helvetica Neue\",Helvetica,Arial,sans-serif;border:0;border-radius:0;background:transparent;}.SingleDatePickerInput__withBorder,.DateRangePickerInput__withBorder{border:none;border-radius:0;}.DateInput{width:auto;background:none;}.DateRangePickerInput_arrow_svg path{fill:", ";}.SingleDatePicker_picker,.DateRangePicker_picker{background:none;}.DateInput_input{display:block;cursor:text;-moz-appearance:none;-webkit-appearance:none;appearance:none;box-shadow:none;font-family:\"Open Sans\",\"Helvetica Neue\",Helvetica,Arial,sans-serif;font-size:1.4rem;z-index:1;transition:", ";background:", ";color:", ";height:40px;width:110px;padding:5px 12px 6px 12px;border-radius:", ";border:1px solid ", ";&:hover{border:1px solid ", ";}&:focus{outline:0;box-shadow:", " ", ";border:1px solid ", ";}}.DateInput_input__focused{outline:0;box-shadow:", " ", ";border:1px solid ", ";}.DayPickerKeyboardShortcuts_panel{color:", ";}.CalendarDay__default{transition:", ";}.CalendarDay__selected,.CalendarDay__selected:active,.CalendarDay__selected:hover{background:", ";border:1px solid ", ";}.DayPickerKeyboardShortcuts_show__bottomRight{border-radius:0 0 3px 0;overflow:hidden;}.DayPickerKeyboardShortcuts_show__topRight{border-radius:0 3px 0 0;overflow:hidden;}.DayPickerKeyboardShortcuts_show__bottomRight:before,.DayPickerKeyboardShortcuts_show__topRight:before{border-right:33px solid ", ";transition:", ";}.DayPickerKeyboardShortcuts_show__bottomRight:hover:before,.DayPickerKeyboardShortcuts_show__topRight:hover:before{border-right:33px solid ", ";}.CalendarDay__selected_span,.CalendarDay__hovered_span,.CalendarDay__hovered_span:active{background:", ";border:1px solid ", ";color:", ";}.CalendarDay__hovered_span:hover,.CalendarDay__default:hover{background:", ";border:1px double ", ";color:", ";}.CalendarDay__selected_span:active,.CalendarDay__selected_span:hover{background:", ";border:1px solid ", ";}.DateInput_fang{margin-top:1px;}"], themeGet("colors.greyLight"), themeGet("transition.transitionDefault"), themeGet("colors.white"), themeGet("colors.greyDarkest"), themeGet("radii.2"), themeGet("colors.black30"), themeGet("colors.primary"), themeGet("shadows.thinOutline"), themeGet("colors.primary30"), themeGet("colors.primary"), themeGet("shadows.thinOutline"), themeGet("colors.primary30"), themeGet("colors.primary"), themeGet("colors.greyDarkest"), themeGet("transition.transitionDefault"), themeGet("colors.primary"), themeGet("colors.primary"), themeGet("colors.primary"), themeGet("transition.transitionDefault"), themeGet("colors.primaryDark"), themeGet("colors.primaryLight"), themeGet("colors.primaryLight"), themeGet("colors.white"), themeGet("colors.primary"), themeGet("colors.primary"), themeGet("colors.white"), themeGet("colors.primaryDarker"), themeGet("colors.primaryDarker"));
93
+ })([".SingleDatePickerInput,.DateRangePickerInput{display:block;cursor:text;-moz-appearance:none;-webkit-appearance:none;appearance:none;box-shadow:none;font-family:\"Open Sans\",\"Helvetica Neue\",Helvetica,Arial,sans-serif;border:0;border-radius:0;background:transparent;}.SingleDatePickerInput__withBorder,.DateRangePickerInput__withBorder{border:none;border-radius:0;}.DateInput{width:auto;background:none;}.DateRangePickerInput_arrow_svg path{fill:", ";}.SingleDatePicker_picker,.DateRangePicker_picker{background:none;z-index:", ";}.DateInput_input{display:block;cursor:text;-moz-appearance:none;-webkit-appearance:none;appearance:none;box-shadow:none;font-family:\"Open Sans\",\"Helvetica Neue\",Helvetica,Arial,sans-serif;font-size:1.4rem;z-index:1;transition:", ";background:", ";color:", ";height:", ";width:", ";padding:5px 12px 6px 12px;border-radius:", ";border:1px solid ", ";&:hover{border:1px solid ", ";}&:focus{outline:0;box-shadow:", " ", ";border:1px solid ", ";}}.DateInput_input__focused{outline:0;box-shadow:", " ", ";border:1px solid ", ";}.DayPickerKeyboardShortcuts_panel{color:", ";}.CalendarDay__default{transition:", ";}.CalendarDay__selected,.CalendarDay__selected:active,.CalendarDay__selected:hover{background:", ";border:1px solid ", ";}.DayPickerKeyboardShortcuts_show__bottomRight{border-radius:0 0 3px 0;overflow:hidden;}.DayPickerKeyboardShortcuts_show__topRight{border-radius:0 3px 0 0;overflow:hidden;}.DayPickerKeyboardShortcuts_show__bottomRight:before,.DayPickerKeyboardShortcuts_show__topRight:before{border-right:33px solid ", ";transition:", ";}.DayPickerKeyboardShortcuts_show__bottomRight:hover:before,.DayPickerKeyboardShortcuts_show__topRight:hover:before{border-right:33px solid ", ";}.CalendarDay__selected_span,.CalendarDay__hovered_span,.CalendarDay__hovered_span:active{background:", ";border:1px solid ", ";color:", ";}.CalendarDay__hovered_span:hover,.CalendarDay__default:hover{background:", ";border:1px double ", ";color:", ";}.CalendarDay__selected_span:active,.CalendarDay__selected_span:hover{background:", ";border:1px solid ", ";}.DateInput_fang{margin-top:1px;z-index:", ";}"], themeGet("colors.greyLight"), function (props) {
94
+ return props.zIndex ? props.zIndex : "1";
95
+ }, themeGet("transition.transitionDefault"), themeGet("colors.white"), themeGet("colors.greyDarkest"), function (props) {
96
+ return props.height ? props.height : "40px";
97
+ }, function (props) {
98
+ return props.width ? props.width : "110px";
99
+ }, themeGet("radii.2"), themeGet("colors.black30"), themeGet("colors.primary"), themeGet("shadows.thinOutline"), themeGet("colors.primary30"), themeGet("colors.primary"), themeGet("shadows.thinOutline"), themeGet("colors.primary30"), themeGet("colors.primary"), themeGet("colors.greyDarkest"), themeGet("transition.transitionDefault"), themeGet("colors.primary"), themeGet("colors.primary"), themeGet("colors.primary"), themeGet("transition.transitionDefault"), themeGet("colors.primaryDark"), themeGet("colors.primaryLight"), themeGet("colors.primaryLight"), themeGet("colors.white"), themeGet("colors.primary"), themeGet("colors.primary"), themeGet("colors.white"), themeGet("colors.primaryDarker"), themeGet("colors.primaryDarker"), function (props) {
100
+ return props.zIndex ? props.zIndex + 1 : "2";
101
+ });
94
102
  /**
95
103
  *
96
104
  * Datepicker uses airbnb's react datepicker under the hood. This is just a wrapper to override styles, the only props you need to specify is either single or range. For all functionality and additional required props refer to documentation here: <https://github.com/airbnb/react-dates>
@@ -113,9 +121,16 @@ var DatePicker = /*#__PURE__*/function (_React$Component) {
113
121
  var _this$props = this.props,
114
122
  single = _this$props.single,
115
123
  range = _this$props.range,
116
- pickerProps = _objectWithoutProperties(_this$props, ["single", "range"]);
124
+ width = _this$props.width,
125
+ height = _this$props.height,
126
+ zIndex = _this$props.zIndex,
127
+ pickerProps = _objectWithoutProperties(_this$props, ["single", "range", "width", "height", "zIndex"]);
117
128
 
118
- return /*#__PURE__*/React.createElement(DatePickerContainer, null, single ? /*#__PURE__*/React.createElement(SingleDatePicker, pickerProps) : range ? /*#__PURE__*/React.createElement(DateRangePicker, pickerProps) : null);
129
+ return /*#__PURE__*/React.createElement(DatePickerContainer, {
130
+ width: width,
131
+ height: height,
132
+ zIndex: zIndex
133
+ }, single ? /*#__PURE__*/React.createElement(SingleDatePicker, pickerProps) : range ? /*#__PURE__*/React.createElement(DateRangePicker, pickerProps) : null);
119
134
  }
120
135
  }]);
121
136
 
@@ -157,6 +172,12 @@ DatePicker.propTypes = _objectSpread({
157
172
  /** Date format */
158
173
  displayFormat: PropTypes.oneOfType([PropTypes.string, PropTypes.func]),
159
174
 
175
+ /** For specifying width of input (specify units) */
176
+ width: PropTypes.string,
177
+
178
+ /** For specifying height of input (specify units) */
179
+ height: PropTypes.string,
180
+
160
181
  /**
161
182
  * Should not be visible
162
183
  * @ignore
@@ -608,6 +629,20 @@ DatePicker.__docgenInfo = {
608
629
  },
609
630
  "required": false,
610
631
  "description": "Input focused state"
632
+ },
633
+ "width": {
634
+ "type": {
635
+ "name": "string"
636
+ },
637
+ "required": false,
638
+ "description": "For specifying width of input (specify units)"
639
+ },
640
+ "height": {
641
+ "type": {
642
+ "name": "string"
643
+ },
644
+ "required": false,
645
+ "description": "For specifying height of input (specify units)"
611
646
  }
612
647
  },
613
648
  "composes": ["lodash/omit"]
@@ -40,9 +40,11 @@ var Label = styled("label").withConfig({
40
40
  componentId: "bfi43f-1"
41
41
  })(function (props) {
42
42
  return css({
43
+ display: "block",
43
44
  color: props.inverted ? "white" : "greyDarkest",
44
- fontWeight: "2",
45
- fontSize: "1"
45
+ fontSize: "1",
46
+ fontWeight: props.bold ? "2" : "1",
47
+ mb: "xs"
46
48
  });
47
49
  });
48
50
  /**
@@ -108,7 +110,6 @@ var Select = /*#__PURE__*/forwardRef(function (props, ref) {
108
110
  return _objectSpread(_objectSpread({}, provided), {}, {
109
111
  opacity: state.isDisabled ? 0.7 : 1,
110
112
  color: props.inverted ? themeGet("colors.greyLighter") : themeGet("colors.grey")(props),
111
- marginTop: props.label ? themeGet("space.s")(props) : "0",
112
113
  fontSize: themeGet("fontSizes.1")(props)
113
114
  });
114
115
  },
@@ -206,6 +207,7 @@ var Select = /*#__PURE__*/forwardRef(function (props, ref) {
206
207
  "data-testid": props["data-testid"]
207
208
  }, SelectStyles), props.label && /*#__PURE__*/React.createElement(Label, {
208
209
  inverted: props.inverted,
210
+ bold: props.bold,
209
211
  htmlFor: props.inputId
210
212
  }, props.label), props.selectType === "createable" ? /*#__PURE__*/React.createElement(ReactCreateableSelect, _extends({
211
213
  ref: ref,
@@ -234,6 +236,9 @@ Select.propTypes = {
234
236
  /** Specifies the label for the `Select` */
235
237
  label: PropTypes.string,
236
238
 
239
+ /** Makes label bold */
240
+ bold: PropTypes.bool,
241
+
237
242
  /** Specifies the ID for the rendered Select box. If you use the label prop label will automatically point to this ID. */
238
243
  inputId: PropTypes.string,
239
244
 
@@ -329,6 +334,13 @@ Select.__docgenInfo = {
329
334
  "required": false,
330
335
  "description": "Specifies the label for the `Select`"
331
336
  },
337
+ "bold": {
338
+ "type": {
339
+ "name": "bool"
340
+ },
341
+ "required": false,
342
+ "description": "Makes label bold"
343
+ },
332
344
  "inputId": {
333
345
  "type": {
334
346
  "name": "string"
@@ -74,7 +74,9 @@ var NumberInput = styled(NumberFormat).attrs(function (props) {
74
74
  var Label = styled.label.withConfig({
75
75
  displayName: "TextInput__Label",
76
76
  componentId: "shde0o-3"
77
- })(["display:block;z-index:2;text-align:left;font-size:1.4rem;transition:", ";padding-right:", ";margin-bottom:", ";color:", ";", ";", ";"], themeGet("transition.transitionDefault"), function (props) {
77
+ })(["display:block;z-index:2;text-align:left;font-size:", ";font-weight:", ";transition:", ";padding-right:", ";margin-bottom:", ";color:", ";", ";", ";"], themeGet("fontSizes.1"), function (props) {
78
+ return props.bold ? themeGet("fontWeights.2") : themeGet("fontWeights.1");
79
+ }, themeGet("transition.transitionDefault"), function (props) {
78
80
  return props.floating && props.iconRight ? "40px" : "12px";
79
81
  }, function (props) {
80
82
  return props.floating ? 0 : themeGet("space.xs");
@@ -93,6 +95,7 @@ var TextInput = /*#__PURE__*/React.forwardRef(function (props, ref) {
93
95
  var inverted = props.inverted,
94
96
  floating = props.floating,
95
97
  id = props.id,
98
+ bold = props.bold,
96
99
  label = props.label,
97
100
  invalid = props.invalid,
98
101
  valid = props.valid,
@@ -118,6 +121,7 @@ var TextInput = /*#__PURE__*/React.forwardRef(function (props, ref) {
118
121
  inverted: inverted,
119
122
  invalid: invalid,
120
123
  valid: valid,
124
+ bold: bold,
121
125
  htmlFor: id,
122
126
  mandatory: mandatory
123
127
  }, label) : null, numberProps ? /*#__PURE__*/React.createElement(NumberInput, _extends({
@@ -130,6 +134,7 @@ var TextInput = /*#__PURE__*/React.forwardRef(function (props, ref) {
130
134
  floating: floating,
131
135
  invalid: invalid,
132
136
  valid: valid,
137
+ bold: bold,
133
138
  htmlFor: id,
134
139
  mandatory: mandatory,
135
140
  iconRight: iconRight,
@@ -159,6 +164,9 @@ TextInput.propTypes = {
159
164
  /** Specifies the text for the label. */
160
165
  label: PropTypes.string,
161
166
 
167
+ /** Makes label text bold */
168
+ bold: PropTypes.bool,
169
+
162
170
  /** Specifies the helper/example text for the placeholder. */
163
171
  placeholder: PropTypes.string,
164
172
 
@@ -217,6 +225,13 @@ TextInput.__docgenInfo = {
217
225
  "required": false,
218
226
  "description": "Specifies the text for the label."
219
227
  },
228
+ "bold": {
229
+ "type": {
230
+ "name": "bool"
231
+ },
232
+ "required": false,
233
+ "description": "Makes label text bold"
234
+ },
220
235
  "placeholder": {
221
236
  "type": {
222
237
  "name": "string"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "orcs-design-system",
3
- "version": "2.0.77",
3
+ "version": "2.0.78",
4
4
  "description": "Orchestrated's Design System, aka: ORCS",
5
5
  "keywords": [
6
6
  "design",