sag_components 1.0.171 → 1.0.173

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.
@@ -26,7 +26,8 @@ var Datepicker = function Datepicker(_ref) {
26
26
  format = _ref$format === void 0 ? "MMM DD, YYYY" : _ref$format,
27
27
  shape = _ref.shape,
28
28
  _onChange = _ref.onChange,
29
- value = _ref.value;
29
+ value = _ref.value,
30
+ disableClearable = _ref.disableClearable;
30
31
  /**
31
32
  * SAG Datepicker
32
33
  */
@@ -49,23 +50,31 @@ var Datepicker = function Datepicker(_ref) {
49
50
  return {
50
51
  "& .MuiOutlinedInput-root": {
51
52
  borderRadius: "12px",
53
+ fontFamily: "Lato",
52
54
  fontSize: "14px",
55
+ fontWidth: 400,
53
56
  width: width,
54
57
  legend: {
55
58
  marginLeft: "6px"
56
59
  }
57
60
  },
58
61
  "& .MuiAutocomplete-inputRoot": {
62
+ fontFamily: "Lato",
59
63
  fontSize: "14px",
64
+ fontWidth: 400,
60
65
  paddingLeft: "10px !important",
61
66
  borderRadius: "12px"
62
67
  },
63
68
  "& .MuiInputLabel-outlined": {
69
+ fontFamily: "Lato",
64
70
  fontSize: "14px",
71
+ fontWidth: 400,
65
72
  paddingLeft: "10px"
66
73
  },
67
74
  "& .MuiInputLabel-shrink": {
75
+ fontFamily: "Lato",
68
76
  fontSize: "14px",
77
+ fontWidth: 400,
69
78
  marginLeft: "1px",
70
79
  paddingLeft: "4px",
71
80
  paddingRight: 0,
@@ -85,6 +94,7 @@ var Datepicker = function Datepicker(_ref) {
85
94
  components: ["DatePicker"]
86
95
  }, /*#__PURE__*/_react.default.createElement(_DatePicker.DatePicker, {
87
96
  value: valueState,
97
+ clearable: true,
88
98
  onChange: function onChange(newValue) {
89
99
  setvalueState(newValue);
90
100
  console.log("newValue", newValue.format("YYYY-MM-DD").toString());
@@ -59,7 +59,9 @@ var Dropdown = function Dropdown(_ref) {
59
59
  _ref$allowedInput = _ref.allowedInput,
60
60
  allowedInput = _ref$allowedInput === void 0 ? "all" : _ref$allowedInput,
61
61
  _ref$reset = _ref.reset,
62
- reset = _ref$reset === void 0 ? false : _ref$reset;
62
+ reset = _ref$reset === void 0 ? false : _ref$reset,
63
+ _ref$disableClearable = _ref.disableClearable,
64
+ disableClearable = _ref$disableClearable === void 0 ? false : _ref$disableClearable;
63
65
  /**
64
66
  * SAG Dropdown
65
67
  */
@@ -183,7 +185,8 @@ var Dropdown = function Dropdown(_ref) {
183
185
  onInputChange: function onInputChange(event, newInputValue) {
184
186
  onInputChangeHandler(event, newInputValue);
185
187
  },
186
- disablePortal: true
188
+ disablePortal: true,
189
+ disableClearable: disableClearable
187
190
  // value={defaultValue && !currentOption?.newValue ? defaultValue : currentOption?.newValue}
188
191
  // value={
189
192
  // defaultValue && !defaultValueSetFlag
@@ -263,6 +266,7 @@ var Dropdown = function Dropdown(_ref) {
263
266
  id: "checkboxes-tags",
264
267
  options: options,
265
268
  disableCloseOnSelect: true,
269
+ disableClearable: disableClearable,
266
270
  getOptionLabel: function getOptionLabel(option) {
267
271
  return option.label;
268
272
  },
@@ -94,22 +94,7 @@ var TitleDescription = function TitleDescription(_ref) {
94
94
  height: "12"
95
95
  }), /*#__PURE__*/_react.default.createElement(_TitleDescriptionStyle.ViewCreativeTextField, {
96
96
  id: "ViewCreativeTextField"
97
- }, "View creative"))), /*#__PURE__*/_react.default.createElement(_TitleDescriptionStyle.BottonsContainer, {
98
- id: "BottonsContainer"
99
- }, /*#__PURE__*/_react.default.createElement(_TitleDescriptionStyle.DownloadButtonContainer, {
100
- id: "DownloadButtonContainer"
101
- }, /*#__PURE__*/_react.default.createElement(_IconButton.IconButton, {
102
- id: "IconButton",
103
- height: 20,
104
- width: 20,
105
- iconName: "download",
106
- onClick: function onClick(event) {
107
- downloadButtonOnClick({
108
- eventName: "downloadButtonOnClick",
109
- event: event
110
- });
111
- }
112
- })))), /*#__PURE__*/_react.default.createElement(_TitleDescriptionStyle.FilterValuesContainer, {
97
+ }, "View creative")))), /*#__PURE__*/_react.default.createElement(_TitleDescriptionStyle.FilterValuesContainer, {
113
98
  id: "FilterValuesContainer"
114
99
  }, showRetailerIcon && /*#__PURE__*/_react.default.createElement(_TitleDescriptionStyle.Retailer, {
115
100
  id: "Retailer"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sag_components",
3
- "version": "1.0.171",
3
+ "version": "1.0.173",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {