@widergy/energy-ui 3.18.2 → 3.18.4

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.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,17 @@
1
+ ## [3.18.4](https://github.com/widergy/energy-ui/compare/v3.18.3...v3.18.4) (2024-08-29)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * added new energy icon ([#483](https://github.com/widergy/energy-ui/issues/483)) ([e064212](https://github.com/widergy/energy-ui/commit/e064212d0a13f2ea3d24b0414e4b6c92dc9e4b81))
7
+
8
+ ## [3.18.3](https://github.com/widergy/energy-ui/compare/v3.18.2...v3.18.3) (2024-08-28)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * dynamic margins ([#482](https://github.com/widergy/energy-ui/issues/482)) ([f8c37af](https://github.com/widergy/energy-ui/commit/f8c37afe45efde531b05b4e2a0344a139ecd822e))
14
+
1
15
  ## [3.18.2](https://github.com/widergy/energy-ui/compare/v3.18.1...v3.18.2) (2024-08-27)
2
16
 
3
17
 
@@ -21,11 +21,11 @@ const useDynamicMargins = (center, options) => {
21
21
  const marginBottomRef = (0, _react.useRef)();
22
22
  const marginTopRef = (0, _react.useRef)();
23
23
  (0, _react.useEffect)(() => {
24
- setMarginLeft(Math.ceil(marginLeftRef.current?.getBoundingClientRect().width) || lateralMargin || LATERAL_DEFAULT_MARGIN);
25
- setMarginRight(Math.ceil(marginRightRef.current?.getBoundingClientRect().width) || lateralMargin || LATERAL_DEFAULT_MARGIN);
26
- setMarginBottom(Math.ceil(marginBottomRef.current?.getBoundingClientRect().height) || verticalMargin || VERTICAL_DEFAULT_MARGIN);
27
- setMarginTop(Math.ceil(marginTopRef.current?.getBoundingClientRect().height) || verticalMargin || VERTICAL_DEFAULT_MARGIN);
28
- }, []);
24
+ setMarginLeft(Math.ceil(lateralMargin || marginLeftRef.current?.getBoundingClientRect().width) || LATERAL_DEFAULT_MARGIN);
25
+ setMarginRight(Math.ceil(lateralMargin || marginRightRef.current?.getBoundingClientRect().width) || LATERAL_DEFAULT_MARGIN);
26
+ setMarginBottom(Math.ceil(verticalMargin || marginBottomRef.current?.getBoundingClientRect().height) || VERTICAL_DEFAULT_MARGIN);
27
+ setMarginTop(Math.ceil(verticalMargin || marginTopRef.current?.getBoundingClientRect().height) || VERTICAL_DEFAULT_MARGIN);
28
+ }, [marginLeftRef.current, marginRightRef.current, marginBottomRef.current, marginTopRef.current]);
29
29
  return {
30
30
  marginLeftRef,
31
31
  marginRightRef,
@@ -0,0 +1,3 @@
1
+ <svg width="30" height="30" viewBox="0 0 30 30" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M26.0209 13.4301L4.9125 3.13232C4.70965 3.03347 4.48498 2.98786 4.25965 2.99978C4.03431 3.0117 3.81571 3.08077 3.62442 3.20047C3.43314 3.32018 3.27546 3.48658 3.16622 3.68403C3.05698 3.88148 2.99978 4.10348 3 4.32913V4.36732C3.00011 4.54571 3.02209 4.72341 3.06546 4.89644L5.09033 12.9959C5.11747 13.1038 5.17696 13.2008 5.26081 13.274C5.34466 13.3471 5.44887 13.3928 5.55945 13.405L14.4586 14.3946C14.6067 14.4124 14.7431 14.4838 14.8421 14.5954C14.941 14.707 14.9957 14.8509 14.9957 15.0001C14.9957 15.1492 14.941 15.2932 14.8421 15.4047C14.7431 15.5163 14.6067 15.5877 14.4586 15.6056L5.55945 16.5951C5.44887 16.6073 5.34466 16.653 5.26081 16.7262C5.17696 16.7993 5.11747 16.8963 5.09033 17.0042L3.06546 25.1026C3.02209 25.2756 3.00011 25.4533 3 25.6317V25.6699C2.99997 25.8955 3.0573 26.1173 3.16662 26.3146C3.27593 26.5119 3.43363 26.6782 3.62489 26.7978C3.81614 26.9173 4.03467 26.9863 4.25992 26.9982C4.48517 27.01 4.70973 26.9644 4.9125 26.8656L26.0198 16.5678C26.3137 16.4244 26.5615 16.2013 26.7348 15.9239C26.9081 15.6465 27 15.326 27 14.999C27 14.6719 26.9081 14.3514 26.7348 14.074C26.5615 13.7966 26.3148 13.5735 26.0209 13.4301Z" fill="currentColor"/>
3
+ </svg>
@@ -111,6 +111,19 @@ EnergyIconHome.defaultProps = {
111
111
  stroke: "currentColor",
112
112
  xmlns: "http://www.w3.org/2000/svg"
113
113
  };
114
+ var EnergyIconSendFilled = function EnergyIconSendFilled(props) {
115
+ return /*#__PURE__*/_react.default.createElement("svg", props, /*#__PURE__*/_react.default.createElement("path", {
116
+ d: "M26.02 13.43 4.913 3.132A1.33 1.33 0 0 0 3 4.33v.038c0 .179.022.356.065.53l2.025 8.099a.546.546 0 0 0 .47.409l8.899.99a.61.61 0 0 1 0 1.21l-8.9.99a.545.545 0 0 0-.469.41l-2.025 8.098c-.043.173-.065.35-.065.529v.038a1.33 1.33 0 0 0 1.912 1.196L26.02 16.568a1.746 1.746 0 0 0 0-3.138Z",
117
+ fill: "currentColor"
118
+ }));
119
+ };
120
+ EnergyIconSendFilled.defaultProps = {
121
+ width: "30",
122
+ height: "30",
123
+ viewBox: "0 0 30 30",
124
+ fill: "none",
125
+ xmlns: "http://www.w3.org/2000/svg"
126
+ };
114
127
  var EnergyIconTruck = function EnergyIconTruck(props) {
115
128
  return /*#__PURE__*/_react.default.createElement("svg", props, /*#__PURE__*/_react.default.createElement("path", {
116
129
  d: "M8 45.333v-32h26.667V16H48l8 13.333v16h-4c-2.134 4.236-3.616 5.301-6.667 5.334-3.599-.425-4.786-1.6-5.333-5.334H24c-.368 3.882-1.607 4.975-5.333 5.334-3.698-.845-5.033-1.904-5.334-5.334H8Z",
@@ -148,5 +161,6 @@ const ENERGY_ICONS = exports.ENERGY_ICONS = {
148
161
  EnergyIconCar,
149
162
  EnergyIconCart,
150
163
  EnergyIconHome,
164
+ EnergyIconSendFilled,
151
165
  EnergyIconTruck
152
166
  };
@@ -78,4 +78,4 @@ UTImageRadio.propTypes = {
78
78
  classNames: (0, _propTypes.objectOf)(_propTypes.string),
79
79
  classes: (0, _propTypes.objectOf)(_propTypes.string)
80
80
  };
81
- var _default = exports.default = (0, _WithTheme.default)(_theme.retrieveStyle)( /*#__PURE__*/(0, _react.memo)(UTImageRadio));
81
+ var _default = exports.default = (0, _WithTheme.default)(_theme.retrieveStyle)(/*#__PURE__*/(0, _react.memo)(UTImageRadio));
@@ -65,4 +65,4 @@ UTPagination.propTypes = {
65
65
  totalRows: _propTypes.number,
66
66
  totalRowsLabel: _propTypes.string
67
67
  };
68
- var _default = exports.default = (0, _WithTheme.default)(_theme.retrieveStyle)( /*#__PURE__*/(0, _react.memo)(UTPagination));
68
+ var _default = exports.default = (0, _WithTheme.default)(_theme.retrieveStyle)(/*#__PURE__*/(0, _react.memo)(UTPagination));
@@ -21,7 +21,7 @@ const ActionButton = _ref => {
21
21
  isHidden,
22
22
  buttonProps
23
23
  } = _ref;
24
- return /*#__PURE__*/(0, _react.isValidElement)(button) ? ( /*#__PURE__*/(0, _react.cloneElement)(button, {
24
+ return /*#__PURE__*/(0, _react.isValidElement)(button) ? (/*#__PURE__*/(0, _react.cloneElement)(button, {
25
25
  className: `${button.props.className} ${isHidden && _stylesModule.default.hiddenButton}`
26
26
  })) : /*#__PURE__*/_react.default.createElement(_UTButton.default, _extends({
27
27
  disabled: button.disabled,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@widergy/energy-ui",
3
- "version": "3.18.2",
3
+ "version": "3.18.4",
4
4
  "description": "Widergy Web Components",
5
5
  "author": "widergy",
6
6
  "license": "MIT",