sccoreui 3.5.7 → 3.5.9

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.
@@ -1742,7 +1742,7 @@ a {
1742
1742
  }
1743
1743
  .p-multiselect .p-multiselect-label {
1744
1744
  padding: 0px 16px;
1745
- height: 40px;
1745
+ height: 38px;
1746
1746
  line-height: 40px;
1747
1747
  transition: background-color 0.2s, color 0.2s, border-color 0.2s,
1748
1748
  box-shadow 0.2s;
@@ -128,6 +128,6 @@ const DatePicker = (props) => {
128
128
  }
129
129
  setPropsState(datePickerProps);
130
130
  }, []);
131
- return ((0, jsx_runtime_1.jsx)("div", Object.assign({ className: "flex justify-content-center w-full my-2" }, { children: (0, jsx_runtime_1.jsx)(calendar_1.Calendar, Object.assign({ showIcon: true, value: fromDate, onChange: (e) => onChangeDate(e), footerTemplate: template, className: "custom_date_picker" }, propsState)) })));
131
+ return ((0, jsx_runtime_1.jsx)("div", Object.assign({ className: "flex justify-content-center w-full" }, { children: (0, jsx_runtime_1.jsx)(calendar_1.Calendar, Object.assign({ showIcon: true, value: fromDate, onChange: (e) => onChangeDate(e), footerTemplate: template, className: "custom_date_picker" }, propsState)) })));
132
132
  };
133
133
  exports.default = DatePicker;
@@ -21,7 +21,12 @@ const MultiSelectDropDown = (props) => {
21
21
  (0, jsx_runtime_1.jsx)(svg_component_1.default, { className: "propile_icon icon_left left_section_item absolute z-5 ", icon: props.leftIcon, size: 20 }, Math.floor(Math.random() * 1000)) }));
22
22
  };
23
23
  const clearIcon = () => {
24
- return ((0, jsx_runtime_1.jsx)("div", Object.assign({ onClick: () => setItems([]), className: "flex align-items-center" }, { children: (0, jsx_runtime_1.jsx)(svg_component_1.default, { className: "propile_icon icon_right right_section_item absolute z-5 ", icon: props.clear, size: 20 }, Math.floor(Math.random() * 1000)) })));
24
+ const onClear = () => {
25
+ setItems([]);
26
+ if (props.onClear)
27
+ props.onClear();
28
+ };
29
+ return ((0, jsx_runtime_1.jsx)("div", Object.assign({ onClick: onClear, className: "flex align-items-center" }, { children: (0, jsx_runtime_1.jsx)(svg_component_1.default, { className: "propile_icon icon_right right_section_item absolute z-5 ", icon: props.clear, size: 20 }, Math.floor(Math.random() * 1000)) })));
25
30
  };
26
31
  const onChange = (e) => {
27
32
  setItems(e.value);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sccoreui",
3
- "version": "3.5.7",
3
+ "version": "3.5.9",
4
4
  "description": "ui-sccore",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",