@widergy/energy-ui 3.180.2 → 3.181.0

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.181.0](https://github.com/widergy/energy-ui/compare/v3.180.3...v3.181.0) (2026-08-31)
2
+
3
+
4
+ ### Features
5
+
6
+ * [CX-2943] add gradient prop to UTLabel and file text spark icon ([#854](https://github.com/widergy/energy-ui/issues/854)) ([9bec245](https://github.com/widergy/energy-ui/commit/9bec2455dc79221ea5be49b22dc46ba89a548e5c))
7
+
8
+ ## [3.180.3](https://github.com/widergy/energy-ui/compare/v3.180.2...v3.180.3) (2026-08-28)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * [AXCH-2209] fix UTStatusMessage ([#849](https://github.com/widergy/energy-ui/issues/849)) ([3c958a1](https://github.com/widergy/energy-ui/commit/3c958a1a4f5d81c7ffb5caf6c02792da76bb5751))
14
+
1
15
  ## [3.180.2](https://github.com/widergy/energy-ui/compare/v3.180.1...v3.180.2) (2026-08-25)
2
16
 
3
17
 
@@ -0,0 +1,3 @@
1
+ <svg width="24" height="24" viewBox="0 0 24 24" fill="currentColor" xmlns="http://www.w3.org/2000/svg">
2
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M5.92308 2.95349C5.66466 2.95349 5.41683 3.0564 5.2341 3.23957C5.05137 3.42274 4.94872 3.67118 4.94872 3.93023V17.6047C4.94872 17.8637 5.05137 18.1121 5.2341 18.2953C5.41683 18.4785 5.66466 18.5814 5.92308 18.5814H10.7949C11.333 18.5814 11.7692 19.0187 11.7692 19.5581C11.7692 20.0976 11.333 20.5349 10.7949 20.5349H5.92308C5.14783 20.5349 4.40433 20.2262 3.85615 19.6766C3.30797 19.1271 3 18.3818 3 17.6047V3.93023C3 3.15309 3.30797 2.40777 3.85615 1.85825C4.40433 1.30872 5.14783 1 5.92308 1H12.7436C13.002 1 13.2498 1.10291 13.4326 1.28608L18.3044 6.1698C18.4871 6.35298 18.5897 6.60142 18.5897 6.86047V10.2791C18.5897 10.8185 18.1535 11.2558 17.6154 11.2558C17.0773 11.2558 16.641 10.8185 16.641 10.2791V7.83721H13.7179C13.2011 7.83721 12.7055 7.6314 12.34 7.26505C11.9745 6.8987 11.7692 6.40182 11.7692 5.88372V2.95349H5.92308ZM13.7179 4.33481L15.2631 5.88372H13.7179V4.33481ZM6.89744 7.83721C6.89744 7.29777 7.33367 6.86047 7.87179 6.86047H8.84615C9.38428 6.86047 9.82051 7.29777 9.82051 7.83721C9.82051 8.37665 9.38428 8.81395 8.84615 8.81395H7.87179C7.33367 8.81395 6.89744 8.37665 6.89744 7.83721ZM6.89744 11.7442C6.89744 11.2047 7.33367 10.7674 7.87179 10.7674H13.7179C14.2561 10.7674 14.6923 11.2047 14.6923 11.7442C14.6923 12.2836 14.2561 12.7209 13.7179 12.7209H7.87179C7.33367 12.7209 6.89744 12.2836 6.89744 11.7442ZM17.6154 13.2093C18.0653 13.2093 18.4567 13.5181 18.5624 13.9564C18.7204 14.6109 19.0552 15.209 19.5302 15.6852C20.0052 16.1613 20.6019 16.497 21.2547 16.6553C21.692 16.7613 22 17.1537 22 17.6047C22 18.0556 21.692 18.448 21.2547 18.554C20.6019 18.7123 20.0052 19.048 19.5302 19.5241C19.0552 20.0003 18.7204 20.5984 18.5624 21.2529C18.4567 21.6912 18.0653 22 17.6154 22C17.1655 22 16.7741 21.6912 16.6683 21.2529C16.5104 20.5984 16.1756 20.0003 15.7006 19.5241C15.2256 19.048 14.6289 18.7123 13.976 18.554C13.5388 18.448 13.2308 18.0556 13.2308 17.6047C13.2308 17.1537 13.5388 16.7613 13.976 16.6553C14.6289 16.497 15.2256 16.1613 15.7006 15.6852C16.1756 15.209 16.5104 14.6109 16.6683 13.9564C16.7741 13.5181 17.1655 13.2093 17.6154 13.2093ZM17.6154 16.4429C17.4525 16.6629 17.2732 16.8714 17.0785 17.0665C16.8839 17.2616 16.6759 17.4414 16.4565 17.6047C16.6759 17.7679 16.8839 17.9477 17.0785 18.1428C17.2732 18.3379 17.4525 18.5464 17.6154 18.7664C17.7783 18.5464 17.9576 18.3379 18.1522 18.1428C18.3469 17.9477 18.5549 17.7679 18.7743 17.6047C18.5549 17.4414 18.3469 17.2616 18.1522 17.0665C17.9576 16.8714 17.7783 16.6629 17.6154 16.4429ZM6.89744 15.6512C6.89744 15.1117 7.33367 14.6744 7.87179 14.6744H10.7949C11.333 14.6744 11.7692 15.1117 11.7692 15.6512C11.7692 16.1906 11.333 16.6279 10.7949 16.6279H7.87179C7.33367 16.6279 6.89744 16.1906 6.89744 15.6512Z" />
3
+ </svg>
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.FILLED_ICON_SUFIX=exports.FILLED_ICON_COLOR=exports.ENERGY_ICON_PREFIX=exports.ENERGY_ICONS=exports.DEFAULT_VARIANT=exports.DEFAULT_INTERNAL_SHADE=exports.DEFAULT_ICON_SIZE=exports.DEFAULT_COLOR_THEME=exports.AREA_BORDER_WIDTH=void 0;var _react=_interopRequireDefault(require("react")),_Palette=require("../../constants/Palette");function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}var EnergyIconBottledGas=function(e){return _react.default.createElement("svg",e,_react.default.createElement("path",{d:"M14.955 8h-5.91A3.036 3.036 0 0 0 6 11.027v4.946A3.036 3.036 0 0 0 9.045 19h5.91A3.036 3.036 0 0 0 18 15.973v-4.946A3.036 3.036 0 0 0 14.955 8Z",strokeMiterlimit:"10"}),_react.default.createElement("path",{d:"M9.25 8V4.448c0-.524.42-.948.94-.948h3.62c.52 0 .94.424.94.948V8M8 19v1.016c0 .543.408.984.911.984h6.178c.503 0 .911-.44.911-.984V19M6 12h12",strokeMiterlimit:"10"}))};EnergyIconBottledGas.defaultProps={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",xmlns:"http://www.w3.org/2000/svg"};var EnergyIconBottledGasPlus=function(e){return _react.default.createElement("svg",e,_react.default.createElement("path",{d:"M6.786 9.357V6.313c0-.45.36-.813.806-.813h3.102a.81.81 0 0 1 .806.813v3.044m-5.786 9.429v.87c0 .466.35.844.781.844h5.295c.431 0 .781-.377.781-.843v-.871m-8.571-6h10.286m-2.61-3.429H6.61A2.603 2.603 0 0 0 4 11.952v4.239a2.603 2.603 0 0 0 2.61 2.595h5.066a2.603 2.603 0 0 0 2.61-2.595v-4.239a2.603 2.603 0 0 0-2.61-2.595Z",strokeWidth:"1.5",strokeMiterlimit:"10"}),_react.default.createElement("path",{d:"M15 6h6m-3-3v6",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}))};EnergyIconBottledGasPlus.defaultProps={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",xmlns:"http://www.w3.org/2000/svg"};var EnergyIconCar=function(e){return _react.default.createElement("svg",e,_react.default.createElement("path",{d:"M0 0h24v24H0z",stroke:"none"}),_react.default.createElement("path",{d:"M5 17H3v-6l2-5h9l4 5h1a2 2 0 0 1 2 2v4h-2m-4 0H9m-6-6h15m-6 0V6"}),_react.default.createElement("path",{d:"M5 17a2 2 0 1 0 4 0 2 2 0 1 0-4 0M15 17a2 2 0 1 0 4 0 2 2 0 1 0-4 0"}))};EnergyIconCar.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",className:"icon icon-tabler icons-tabler-outline icon-tabler-car"};var EnergyIconCarbonFootprint=function(e){return _react.default.createElement("svg",e,_react.default.createElement("path",{d:"M21.72 15.19c-.8 3.17-5.19 5.09-8.65 4.87-.66-.67-2.9-3.34-2.06-6.78.98-4.02 7-5.57 9.92-7.42.62-.39 1.8 5.35.79 9.33Z"}),_react.default.createElement("path",{d:"M18.52 11.16c-3.57 1.15-5.98 5.03-5.45 8.9M8.41 19.32c-2.05-.82-3.78-2.26-4.25-4.13-1.01-3.98.17-9.72.79-9.33M4.95 5.86c1.34.85 3.32 1.63 5.18 2.62"}))};EnergyIconCarbonFootprint.defaultProps={width:"26",height:"26",viewBox:"0 0 26 26",fill:"none",xmlns:"http://www.w3.org/2000/svg",strokeWidth:"2"};var EnergyIconCart=function(e){return _react.default.createElement("svg",e,_react.default.createElement("path",{d:"M4 19a2 2 0 1 0 4 0 2 2 0 0 0-4 0ZM15 19a2 2 0 1 0 4 0 2 2 0 0 0-4 0ZM6 5l14 1-1 7H6",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),_react.default.createElement("path",{d:"M4 3h2v14h11",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}))};EnergyIconCart.defaultProps={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",xmlns:"http://www.w3.org/2000/svg"};var EnergyIconChatSparkFilled=function(e){return _react.default.createElement("svg",e,_react.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.833 5c-.487 0-.954.193-1.297.535A1.819 1.819 0 0 0 4 6.824v7.529c0 .482.192.946.536 1.288.343.342.81.536 1.297.536h2.834a1 1 0 0 1 .706.291l2.833 2.824a1 1 0 1 1-1.412 1.416l-2.54-2.531h-2.42a3.838 3.838 0 0 1-2.71-1.12A3.819 3.819 0 0 1 2 14.354v-7.53c0-1.015.405-1.988 1.124-2.704A3.838 3.838 0 0 1 5.834 3h11.333c1.015 0 1.99.402 2.709 1.119A3.818 3.818 0 0 1 21 6.824v4.235a1 1 0 1 1-2 0V6.824c0-.483-.192-.946-.536-1.289A1.839 1.839 0 0 0 17.167 5H5.833Zm.89 3.706a1 1 0 0 1 1-1h7.555a1 1 0 1 1 0 2H7.722a1 1 0 0 1-1-1Zm0 3.765a1 1 0 0 1 1-1h4.721a1 1 0 1 1 0 2H7.722a1 1 0 0 1-1-1Zm10.62 1.196a1 1 0 0 1 .973.765c.113.469.352.897.691 1.237.339.34.764.58 1.229.693a1 1 0 0 1 0 1.943c-.465.113-.89.352-1.229.693-.339.34-.578.768-.691 1.236a1 1 0 0 1-1.944 0 2.622 2.622 0 0 0-.691-1.236 2.602 2.602 0 0 0-1.23-.693 1 1 0 0 1 0-1.943c.465-.113.89-.353 1.23-.693.338-.34.578-.768.69-1.237a1 1 0 0 1 .973-.765Zm0 3.146a4.608 4.608 0 0 1-.519.52 4.586 4.586 0 0 1 .52.52 4.603 4.603 0 0 1 .52-.52 4.553 4.553 0 0 1-.52-.52Z"}))};EnergyIconChatSparkFilled.defaultProps={width:"24",height:"24",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"};var EnergyIconConsumption=function(e){return _react.default.createElement("svg",e,_react.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18.645.828a.75.75 0 0 0-.72.54l-7.848 26.906a.75.75 0 0 0 .72.96h10.361L19.021 46.33a.75.75 0 0 0 1.369.509l17.937-26.906a.75.75 0 0 0-.624-1.166H27.574L33.922 1.84a.75.75 0 0 0-.702-1.013H18.645Z"}))};EnergyIconConsumption.defaultProps={width:"49",height:"48",viewBox:"0 0 49 48",stroke:"currentColor",xmlns:"http://www.w3.org/2000/svg"};var EnergyIconConsumptionBoxFilled=function(e){return _react.default.createElement("svg",e,_react.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M25 20.833A4.167 4.167 0 0 0 20.833 25v50A4.167 4.167 0 0 0 25 79.167h50A4.167 4.167 0 0 0 79.167 75V25A4.167 4.167 0 0 0 75 20.833H25ZM12.5 25c0-6.904 5.596-12.5 12.5-12.5h50c6.904 0 12.5 5.596 12.5 12.5v50c0 6.904-5.596 12.5-12.5 12.5H25c-6.904 0-12.5-5.596-12.5-12.5V25Z"}),_react.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M50.183 33.458c1.635.455 2.554 2.03 2.053 3.516l-3.286 9.747h6.287c1.017 0 1.97.454 2.548 1.215a2.6 2.6 0 0 1 .348 2.597L52.17 64.848c-.606 1.454-2.393 2.186-3.992 1.636-1.6-.551-2.405-2.176-1.8-3.63l4.375-10.503h-5.991c-.982 0-1.906-.424-2.49-1.142-.584-.717-.758-1.645-.47-2.498l4.512-13.387c.501-1.486 2.233-2.322 3.868-1.866Z"}))};EnergyIconConsumptionBoxFilled.defaultProps={width:"100",height:"100",viewBox:"0 0 100 100",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"};var EnergyIconConsumptionBoxPlusFilled=function(e){return _react.default.createElement("svg",e,_react.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.207 20a1 1 0 0 1-1 1H6a3 3 0 0 1-3-3V6a3 3 0 0 1 3-3h12a3 3 0 0 1 3 3v5.986a1 1 0 0 1-2 0V6a1 1 0 0 0-1-1H6a1 1 0 0 0-1 1v12a1 1 0 0 0 1 1h6.207a1 1 0 0 1 1 1Z"}),_react.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.549 7.702a.78.78 0 0 1 .349 1.047l-.836 1.67h.838a.78.78 0 0 1 .698 1.13l-1.4 2.8a.78.78 0 0 1-1.396-.698l.836-1.671H10.8a.78.78 0 0 1-.698-1.13l1.4-2.8a.78.78 0 0 1 1.047-.348Z"}),_react.default.createElement("path",{d:"M17.098 13.5c.483 0 .875.392.875.875v1.75h1.75a.875.875 0 1 1 0 1.75h-1.75v1.75a.875.875 0 0 1-1.75 0v-1.75h-1.75a.875.875 0 1 1 0-1.75h1.75v-1.75c0-.483.391-.875.875-.875Z"}))};EnergyIconConsumptionBoxPlusFilled.defaultProps={width:"24",height:"24",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"};var EnergyIconConsumptionBoxRightFilled=function(e){return _react.default.createElement("svg",e,_react.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.207 20a1 1 0 0 1-1 1H6a3 3 0 0 1-3-3V6a3 3 0 0 1 3-3h12a3 3 0 0 1 3 3v5.986a1 1 0 0 1-2 0V6a1 1 0 0 0-1-1H6a1 1 0 0 0-1 1v12a1 1 0 0 0 1 1h6.207a1 1 0 0 1 1 1Z"}),_react.default.createElement("path",{d:"M17.9 14.2a.78.78 0 1 0-1 1.2l.745.62H15a.78.78 0 1 0 0 1.56h2.647l-.746.62a.78.78 0 1 0 .998 1.2l2.4-2a.78.78 0 0 0 0-1.2l-2.4-2Z"}),_react.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.549 7.702a.78.78 0 0 1 .349 1.047l-.836 1.67h.838a.78.78 0 0 1 .698 1.13l-1.4 2.8a.78.78 0 0 1-1.396-.698l.836-1.671H10.8a.78.78 0 0 1-.698-1.13l1.4-2.8a.78.78 0 0 1 1.047-.348Z"}))};EnergyIconConsumptionBoxRightFilled.defaultProps={width:"24",height:"24",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"};var EnergyIconConsumptionBoxMinusFilled=function(e){return _react.default.createElement("svg",e,_react.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.207 20a1 1 0 0 1-1 1H6a3 3 0 0 1-3-3V6a3 3 0 0 1 3-3h12a3 3 0 0 1 3 3v5.986a1 1 0 0 1-2 0V6a1 1 0 0 0-1-1H6a1 1 0 0 0-1 1v12a1 1 0 0 0 1 1h6.207a1 1 0 0 1 1 1Z"}),_react.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.549 7.702a.78.78 0 0 1 .349 1.047l-.836 1.67h.838a.78.78 0 0 1 .698 1.13l-1.4 2.8a.78.78 0 0 1-1.396-.698l.836-1.671H10.8a.78.78 0 0 1-.698-1.13l1.4-2.8a.78.78 0 0 1 1.047-.348Z"}),_react.default.createElement("path",{d:"M15.086 14.697a1 1 0 0 1 1.414 0l1.293 1.293 1.293-1.293a1 1 0 0 1 1.414 1.415l-1.293 1.293 1.293 1.292a1 1 0 0 1-1.414 1.415l-1.293-1.293-1.293 1.293a1 1 0 0 1-1.414-1.415l1.293-1.293-1.293-1.292a1 1 0 0 1 0-1.415Z"}))};EnergyIconConsumptionBoxMinusFilled.defaultProps={width:"24",height:"24",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"};var EnergyIconEdit=function(e){return _react.default.createElement("svg",e,_react.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"m16.019 10.679-2.695-2.695 1.948-1.95 2.694 2.695-1.947 1.95Zm-6.94 6.946-2.976.27.264-2.955 5.617-5.617 2.696 2.696-5.6 5.606ZM19.405 7.338l-.001-.001-2.738-2.738c-.741-.74-2.014-.774-2.716-.07l-8.996 8.997a1.973 1.973 0 0 0-.57 1.214l-.38 4.17a1.002 1.002 0 0 0 1.088 1.086l4.17-.38a1.974 1.974 0 0 0 1.214-.567l8.997-8.997c.728-.73.697-1.948-.068-2.714Z"}))};EnergyIconEdit.defaultProps={width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"};var EnergyIconHome=function(e){return _react.default.createElement("svg",e,_react.default.createElement("path",{d:"m9.02 2.84-5.39 4.2C2.73 7.74 2 9.23 2 10.36v7.41c0 2.32 1.89 4.22 4.21 4.22h11.58c2.32 0 4.21-1.9 4.21-4.21V10.5c0-1.21-.81-2.76-1.8-3.45l-6.18-4.33c-1.4-.98-3.65-.93-5 .12Z",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),_react.default.createElement("path",{d:"M12 17.99v-3 3Z"}),_react.default.createElement("path",{d:"M12 17.99v-3",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}))};EnergyIconHome.defaultProps={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",xmlns:"http://www.w3.org/2000/svg"};var EnergyIconMessageEdit=function(e){return _react.default.createElement("svg",e,_react.default.createElement("path",{d:"M8 9h8M8 13h6M13 20l-1 1-3-3H6a3 3 0 0 1-3-3V7a3 3 0 0 1 3-3h12a3 3 0 0 1 3 3v5.5M18.93 15.522a1.797 1.797 0 0 1 2.933.583 1.8 1.8 0 0 1-.39 1.96l-2.903 2.93H16v-2.57l2.93-2.903Z"}))};EnergyIconMessageEdit.defaultProps={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};var EnergyIconQuestionFilled=function(e){return _react.default.createElement("svg",e,_react.default.createElement("path",{fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd",d:"M10 2.287a8 8 0 1 0 0 16 8 8 0 0 0 0-16Zm-10 8c0-5.523 4.477-10 10-10s10 4.477 10 10-4.477 10-10 10-10-4.477-10-10Zm8.475-5.655a3.6 3.6 0 1 1 2.857 6.598.5.5 0 0 0-.334.5 1 1 0 0 1-1.996.114 2.5 2.5 0 0 1 1.65-2.495 1.6 1.6 0 1 0-1.855-2.458 1 1 0 0 1-1.594-1.208 3.6 3.6 0 0 1 1.272-1.051ZM10 14.287a1 1 0 0 1 1 1v.01a1 1 0 1 1-2 0v-.01a1 1 0 0 1 1-1Z"}))};EnergyIconQuestionFilled.defaultProps={width:"20",height:"21",viewBox:"0 0 20 21",fill:"none",xmlns:"http://www.w3.org/2000/svg"};var EnergyIconSendFilled=function(e){return _react.default.createElement("svg",e,_react.default.createElement("path",{d:"M20.816 10.742 3.93 2.504a1.086 1.086 0 0 0-.524-.106 1.11 1.11 0 0 0-.508.16c-.152.098-.277.231-.367.387-.086.16-.133.336-.133.52v.027c0 .145.02.285.055.426l1.617 6.48c.024.086.07.165.137.223.07.055.152.094.242.102l7.117.793c.118.015.227.07.309.16a.49.49 0 0 1-.309.808l-7.117.793a.438.438 0 0 0-.379.325l-1.617 6.48a1.712 1.712 0 0 0-.055.422v.031c0 .18.047.36.137.516.086.16.211.293.363.387.157.097.329.152.508.16.184.011.364-.028.524-.106l16.886-8.238c.235-.113.434-.293.57-.516a1.378 1.378 0 0 0 0-1.48 1.426 1.426 0 0 0-.57-.516Zm0 0",fill:"currentColor"}))};EnergyIconSendFilled.defaultProps={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};var EnergyIconTruck=function(e){return _react.default.createElement("svg",e,_react.default.createElement("path",{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",strokeWidth:"4",strokeLinecap:"round",strokeLinejoin:"round"}),_react.default.createElement("path",{d:"M13.333 45.333a5.333 5.333 0 1 0 10.667 0 5.333 5.333 0 0 0-10.667 0ZM40 45.333a5.333 5.333 0 1 0 10.667 0 5.333 5.333 0 0 0-10.667 0Z",strokeWidth:"4",strokeLinecap:"round",strokeLinejoin:"round"}),_react.default.createElement("path",{d:"M13.333 45.333H8V34.667M5.333 13.333h29.334v32m-10.667 0h16m10.667 0H56v-16m0 0H34.667m21.333 0L48 16H34.667M8 24h10.667",strokeWidth:"4",strokeLinecap:"round",strokeLinejoin:"round"}))};EnergyIconTruck.defaultProps={width:"24",height:"24",viewBox:"0 0 64 64",fill:"none",stroke:"currentColor",xmlns:"http://www.w3.org/2000/svg"};var EnergyIconFlameFilled=function(e){return _react.default.createElement("svg",e,_react.default.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}),_react.default.createElement("path",{d:"M10 2c0-.88 1.056-1.331 1.692-.722 1.958 1.876 3.096 5.995 1.75 9.12l-.08.174.012.003c.625.133 1.203-.43 2.303-2.173l.14-.224a1 1 0 0 1 1.582-.153C18.733 9.46 20 12.402 20 14.295 20 18.56 16.409 22 12 22s-8-3.44-8-7.706c0-2.252 1.022-4.716 2.632-6.301l.605-.589c.241-.236.434-.43.618-.624C9.285 5.268 10 3.856 10 2"}))};EnergyIconFlameFilled.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"currentColor",className:"icon icon-tabler icons-tabler-filled icon-tabler-flame"};var EnergyIconBoltFilled=function(e){return _react.default.createElement("svg",e,_react.default.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}),_react.default.createElement("path",{d:"m13 2 .018.001.016.001.083.005.011.002h.011l.038.009.052.008.016.006.011.001.029.011.052.014.019.009.015.004.028.014.04.017.021.012.022.01.023.015.031.017.034.024.018.011.013.012.024.017.038.034.022.017.008.01.014.012.036.041.026.027.006.009c.12.147.196.322.218.513l.001.012.002.041L14 3v6h5a1 1 0 0 1 .868 1.497l-.06.091-8 11C11.24 22.371 10 21.968 10 21v-6H5a1 1 0 0 1-.868-1.497l.06-.091 8-11 .01-.013.018-.024.033-.038.018-.022.009-.008.013-.014.04-.036.028-.026.008-.006a1 1 0 0 1 .402-.199l.011-.001.027-.005.074-.013.011-.001.041-.002z"}))};EnergyIconBoltFilled.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"currentColor",className:"icon icon-tabler icons-tabler-filled icon-tabler-bolt"};var EnergyIconPresentationFilled=function(e){return _react.default.createElement("svg",e,_react.default.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}),_react.default.createElement("path",{d:"M21 3a1 1 0 0 1 0 2v9a3 3 0 0 1-3 3h-5v2h2a1 1 0 0 1 0 2H9a1 1 0 0 1 0-2h2v-2H6a3 3 0 0 1-3-3V5a1 1 0 1 1 0-2zm-4.293 4.293a1 1 0 0 0-1.414 0L13 9.585l-1.293-1.292a1 1 0 0 0-1.414 0l-3 3a1 1 0 0 0 0 1.414l.094.083a1 1 0 0 0 1.32-.083L11 10.415l1.293 1.292a1 1 0 0 0 1.414 0l3-3a1 1 0 0 0 0-1.414"}))};EnergyIconPresentationFilled.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"currentColor",className:"icon icon-tabler icons-tabler-filled icon-tabler-presentation"};var EnergyIconCreditCardsFilled=function(e){return _react.default.createElement("svg",e,_react.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"m13.172 4.39.823 1.427.017.03h2.76a2.395 2.395 0 0 1 2.395 2.395v5.113a2.395 2.395 0 0 1-2.395 2.395H8.341l-1.242.717c-1.194.69-2.766.365-3.473-.86l-2.47-4.279c-.708-1.224-.202-2.748.991-3.437L9.7 3.531c1.194-.689 2.766-.365 3.473.86Zm-1.444.834.36.623H9.021l.534-.308.978-.565a.916.916 0 0 1 .901-.032.75.75 0 0 1 .294.282Zm-8.747 4.11L6.07 7.55c-.065.22-.1.452-.1.692v5.113c0 .578.204 1.11.546 1.523l-.252.146c-.475.274-.993.101-1.195-.25l-2.471-4.28c-.203-.35-.093-.885.382-1.16Zm5.384-1.82a.728.728 0 0 0-.728.728v.385H17.5v-.385a.728.728 0 0 0-.728-.728H8.365Zm9.135 2.78H7.637v3.06c0 .403.326.729.728.729h8.407a.728.728 0 0 0 .728-.728v-3.061Z"}))};EnergyIconCreditCardsFilled.defaultProps={width:"20",height:"20",fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"};const FILLED_ICON_COLOR=exports.FILLED_ICON_COLOR="transparent",DEFAULT_INTERNAL_SHADE=exports.DEFAULT_INTERNAL_SHADE=_Palette.COLOR_SHADES.shade02,DEFAULT_COLOR_THEME=exports.DEFAULT_COLOR_THEME=_Palette.COLOR_THEMES.dark,DEFAULT_VARIANT=exports.DEFAULT_VARIANT="default",FILLED_ICON_SUFIX=exports.FILLED_ICON_SUFIX="Filled",ENERGY_ICON_PREFIX=exports.ENERGY_ICON_PREFIX="Energy",DEFAULT_ICON_SIZE=exports.DEFAULT_ICON_SIZE=24,AREA_BORDER_WIDTH=exports.AREA_BORDER_WIDTH="1px",ENERGY_ICONS=exports.ENERGY_ICONS={EnergyIconBottledGas:EnergyIconBottledGas,EnergyIconBottledGasPlus:EnergyIconBottledGasPlus,EnergyIconCar:EnergyIconCar,EnergyIconCarbonFootprint:EnergyIconCarbonFootprint,EnergyIconCart:EnergyIconCart,EnergyIconChatSparkFilled:EnergyIconChatSparkFilled,EnergyIconConsumption:EnergyIconConsumption,EnergyIconConsumptionBoxFilled:EnergyIconConsumptionBoxFilled,EnergyIconEdit:EnergyIconEdit,EnergyIconHome:EnergyIconHome,EnergyIconMessageEdit:EnergyIconMessageEdit,EnergyIconQuestionFilled:EnergyIconQuestionFilled,EnergyIconSendFilled:EnergyIconSendFilled,EnergyIconTruck:EnergyIconTruck,EnergyIconConsumptionBoxPlusFilled:EnergyIconConsumptionBoxPlusFilled,EnergyIconConsumptionBoxRightFilled:EnergyIconConsumptionBoxRightFilled,EnergyIconConsumptionBoxMinusFilled:EnergyIconConsumptionBoxMinusFilled,EnergyIconFlameFilled:EnergyIconFlameFilled,EnergyIconBoltFilled:EnergyIconBoltFilled,EnergyIconPresentationFilled:EnergyIconPresentationFilled,EnergyIconCreditCardsFilled:EnergyIconCreditCardsFilled};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.FILLED_ICON_SUFIX=exports.FILLED_ICON_COLOR=exports.ENERGY_ICON_PREFIX=exports.ENERGY_ICONS=exports.DEFAULT_VARIANT=exports.DEFAULT_INTERNAL_SHADE=exports.DEFAULT_ICON_SIZE=exports.DEFAULT_COLOR_THEME=exports.AREA_BORDER_WIDTH=void 0;var _react=_interopRequireDefault(require("react")),_Palette=require("../../constants/Palette");function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}var EnergyIconBottledGas=function(e){return _react.default.createElement("svg",e,_react.default.createElement("path",{d:"M14.955 8h-5.91A3.036 3.036 0 0 0 6 11.027v4.946A3.036 3.036 0 0 0 9.045 19h5.91A3.036 3.036 0 0 0 18 15.973v-4.946A3.036 3.036 0 0 0 14.955 8Z",strokeMiterlimit:"10"}),_react.default.createElement("path",{d:"M9.25 8V4.448c0-.524.42-.948.94-.948h3.62c.52 0 .94.424.94.948V8M8 19v1.016c0 .543.408.984.911.984h6.178c.503 0 .911-.44.911-.984V19M6 12h12",strokeMiterlimit:"10"}))};EnergyIconBottledGas.defaultProps={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",xmlns:"http://www.w3.org/2000/svg"};var EnergyIconBottledGasPlus=function(e){return _react.default.createElement("svg",e,_react.default.createElement("path",{d:"M6.786 9.357V6.313c0-.45.36-.813.806-.813h3.102a.81.81 0 0 1 .806.813v3.044m-5.786 9.429v.87c0 .466.35.844.781.844h5.295c.431 0 .781-.377.781-.843v-.871m-8.571-6h10.286m-2.61-3.429H6.61A2.603 2.603 0 0 0 4 11.952v4.239a2.603 2.603 0 0 0 2.61 2.595h5.066a2.603 2.603 0 0 0 2.61-2.595v-4.239a2.603 2.603 0 0 0-2.61-2.595Z",strokeWidth:"1.5",strokeMiterlimit:"10"}),_react.default.createElement("path",{d:"M15 6h6m-3-3v6",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}))};EnergyIconBottledGasPlus.defaultProps={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",xmlns:"http://www.w3.org/2000/svg"};var EnergyIconCar=function(e){return _react.default.createElement("svg",e,_react.default.createElement("path",{d:"M0 0h24v24H0z",stroke:"none"}),_react.default.createElement("path",{d:"M5 17H3v-6l2-5h9l4 5h1a2 2 0 0 1 2 2v4h-2m-4 0H9m-6-6h15m-6 0V6"}),_react.default.createElement("path",{d:"M5 17a2 2 0 1 0 4 0 2 2 0 1 0-4 0M15 17a2 2 0 1 0 4 0 2 2 0 1 0-4 0"}))};EnergyIconCar.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",className:"icon icon-tabler icons-tabler-outline icon-tabler-car"};var EnergyIconCarbonFootprint=function(e){return _react.default.createElement("svg",e,_react.default.createElement("path",{d:"M21.72 15.19c-.8 3.17-5.19 5.09-8.65 4.87-.66-.67-2.9-3.34-2.06-6.78.98-4.02 7-5.57 9.92-7.42.62-.39 1.8 5.35.79 9.33Z"}),_react.default.createElement("path",{d:"M18.52 11.16c-3.57 1.15-5.98 5.03-5.45 8.9M8.41 19.32c-2.05-.82-3.78-2.26-4.25-4.13-1.01-3.98.17-9.72.79-9.33M4.95 5.86c1.34.85 3.32 1.63 5.18 2.62"}))};EnergyIconCarbonFootprint.defaultProps={width:"26",height:"26",viewBox:"0 0 26 26",fill:"none",xmlns:"http://www.w3.org/2000/svg",strokeWidth:"2"};var EnergyIconCart=function(e){return _react.default.createElement("svg",e,_react.default.createElement("path",{d:"M4 19a2 2 0 1 0 4 0 2 2 0 0 0-4 0ZM15 19a2 2 0 1 0 4 0 2 2 0 0 0-4 0ZM6 5l14 1-1 7H6",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),_react.default.createElement("path",{d:"M4 3h2v14h11",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}))};EnergyIconCart.defaultProps={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",xmlns:"http://www.w3.org/2000/svg"};var EnergyIconChatSparkFilled=function(e){return _react.default.createElement("svg",e,_react.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.833 5c-.487 0-.954.193-1.297.535A1.819 1.819 0 0 0 4 6.824v7.529c0 .482.192.946.536 1.288.343.342.81.536 1.297.536h2.834a1 1 0 0 1 .706.291l2.833 2.824a1 1 0 1 1-1.412 1.416l-2.54-2.531h-2.42a3.838 3.838 0 0 1-2.71-1.12A3.819 3.819 0 0 1 2 14.354v-7.53c0-1.015.405-1.988 1.124-2.704A3.838 3.838 0 0 1 5.834 3h11.333c1.015 0 1.99.402 2.709 1.119A3.818 3.818 0 0 1 21 6.824v4.235a1 1 0 1 1-2 0V6.824c0-.483-.192-.946-.536-1.289A1.839 1.839 0 0 0 17.167 5H5.833Zm.89 3.706a1 1 0 0 1 1-1h7.555a1 1 0 1 1 0 2H7.722a1 1 0 0 1-1-1Zm0 3.765a1 1 0 0 1 1-1h4.721a1 1 0 1 1 0 2H7.722a1 1 0 0 1-1-1Zm10.62 1.196a1 1 0 0 1 .973.765c.113.469.352.897.691 1.237.339.34.764.58 1.229.693a1 1 0 0 1 0 1.943c-.465.113-.89.352-1.229.693-.339.34-.578.768-.691 1.236a1 1 0 0 1-1.944 0 2.622 2.622 0 0 0-.691-1.236 2.602 2.602 0 0 0-1.23-.693 1 1 0 0 1 0-1.943c.465-.113.89-.353 1.23-.693.338-.34.578-.768.69-1.237a1 1 0 0 1 .973-.765Zm0 3.146a4.608 4.608 0 0 1-.519.52 4.586 4.586 0 0 1 .52.52 4.603 4.603 0 0 1 .52-.52 4.553 4.553 0 0 1-.52-.52Z"}))};EnergyIconChatSparkFilled.defaultProps={width:"24",height:"24",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"};var EnergyIconConsumption=function(e){return _react.default.createElement("svg",e,_react.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18.645.828a.75.75 0 0 0-.72.54l-7.848 26.906a.75.75 0 0 0 .72.96h10.361L19.021 46.33a.75.75 0 0 0 1.369.509l17.937-26.906a.75.75 0 0 0-.624-1.166H27.574L33.922 1.84a.75.75 0 0 0-.702-1.013H18.645Z"}))};EnergyIconConsumption.defaultProps={width:"49",height:"48",viewBox:"0 0 49 48",stroke:"currentColor",xmlns:"http://www.w3.org/2000/svg"};var EnergyIconConsumptionBoxFilled=function(e){return _react.default.createElement("svg",e,_react.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M25 20.833A4.167 4.167 0 0 0 20.833 25v50A4.167 4.167 0 0 0 25 79.167h50A4.167 4.167 0 0 0 79.167 75V25A4.167 4.167 0 0 0 75 20.833H25ZM12.5 25c0-6.904 5.596-12.5 12.5-12.5h50c6.904 0 12.5 5.596 12.5 12.5v50c0 6.904-5.596 12.5-12.5 12.5H25c-6.904 0-12.5-5.596-12.5-12.5V25Z"}),_react.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M50.183 33.458c1.635.455 2.554 2.03 2.053 3.516l-3.286 9.747h6.287c1.017 0 1.97.454 2.548 1.215a2.6 2.6 0 0 1 .348 2.597L52.17 64.848c-.606 1.454-2.393 2.186-3.992 1.636-1.6-.551-2.405-2.176-1.8-3.63l4.375-10.503h-5.991c-.982 0-1.906-.424-2.49-1.142-.584-.717-.758-1.645-.47-2.498l4.512-13.387c.501-1.486 2.233-2.322 3.868-1.866Z"}))};EnergyIconConsumptionBoxFilled.defaultProps={width:"100",height:"100",viewBox:"0 0 100 100",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"};var EnergyIconConsumptionBoxPlusFilled=function(e){return _react.default.createElement("svg",e,_react.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.207 20a1 1 0 0 1-1 1H6a3 3 0 0 1-3-3V6a3 3 0 0 1 3-3h12a3 3 0 0 1 3 3v5.986a1 1 0 0 1-2 0V6a1 1 0 0 0-1-1H6a1 1 0 0 0-1 1v12a1 1 0 0 0 1 1h6.207a1 1 0 0 1 1 1Z"}),_react.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.549 7.702a.78.78 0 0 1 .349 1.047l-.836 1.67h.838a.78.78 0 0 1 .698 1.13l-1.4 2.8a.78.78 0 0 1-1.396-.698l.836-1.671H10.8a.78.78 0 0 1-.698-1.13l1.4-2.8a.78.78 0 0 1 1.047-.348Z"}),_react.default.createElement("path",{d:"M17.098 13.5c.483 0 .875.392.875.875v1.75h1.75a.875.875 0 1 1 0 1.75h-1.75v1.75a.875.875 0 0 1-1.75 0v-1.75h-1.75a.875.875 0 1 1 0-1.75h1.75v-1.75c0-.483.391-.875.875-.875Z"}))};EnergyIconConsumptionBoxPlusFilled.defaultProps={width:"24",height:"24",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"};var EnergyIconConsumptionBoxRightFilled=function(e){return _react.default.createElement("svg",e,_react.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.207 20a1 1 0 0 1-1 1H6a3 3 0 0 1-3-3V6a3 3 0 0 1 3-3h12a3 3 0 0 1 3 3v5.986a1 1 0 0 1-2 0V6a1 1 0 0 0-1-1H6a1 1 0 0 0-1 1v12a1 1 0 0 0 1 1h6.207a1 1 0 0 1 1 1Z"}),_react.default.createElement("path",{d:"M17.9 14.2a.78.78 0 1 0-1 1.2l.745.62H15a.78.78 0 1 0 0 1.56h2.647l-.746.62a.78.78 0 1 0 .998 1.2l2.4-2a.78.78 0 0 0 0-1.2l-2.4-2Z"}),_react.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.549 7.702a.78.78 0 0 1 .349 1.047l-.836 1.67h.838a.78.78 0 0 1 .698 1.13l-1.4 2.8a.78.78 0 0 1-1.396-.698l.836-1.671H10.8a.78.78 0 0 1-.698-1.13l1.4-2.8a.78.78 0 0 1 1.047-.348Z"}))};EnergyIconConsumptionBoxRightFilled.defaultProps={width:"24",height:"24",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"};var EnergyIconConsumptionBoxMinusFilled=function(e){return _react.default.createElement("svg",e,_react.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.207 20a1 1 0 0 1-1 1H6a3 3 0 0 1-3-3V6a3 3 0 0 1 3-3h12a3 3 0 0 1 3 3v5.986a1 1 0 0 1-2 0V6a1 1 0 0 0-1-1H6a1 1 0 0 0-1 1v12a1 1 0 0 0 1 1h6.207a1 1 0 0 1 1 1Z"}),_react.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.549 7.702a.78.78 0 0 1 .349 1.047l-.836 1.67h.838a.78.78 0 0 1 .698 1.13l-1.4 2.8a.78.78 0 0 1-1.396-.698l.836-1.671H10.8a.78.78 0 0 1-.698-1.13l1.4-2.8a.78.78 0 0 1 1.047-.348Z"}),_react.default.createElement("path",{d:"M15.086 14.697a1 1 0 0 1 1.414 0l1.293 1.293 1.293-1.293a1 1 0 0 1 1.414 1.415l-1.293 1.293 1.293 1.292a1 1 0 0 1-1.414 1.415l-1.293-1.293-1.293 1.293a1 1 0 0 1-1.414-1.415l1.293-1.293-1.293-1.292a1 1 0 0 1 0-1.415Z"}))};EnergyIconConsumptionBoxMinusFilled.defaultProps={width:"24",height:"24",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"};var EnergyIconEdit=function(e){return _react.default.createElement("svg",e,_react.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"m16.019 10.679-2.695-2.695 1.948-1.95 2.694 2.695-1.947 1.95Zm-6.94 6.946-2.976.27.264-2.955 5.617-5.617 2.696 2.696-5.6 5.606ZM19.405 7.338l-.001-.001-2.738-2.738c-.741-.74-2.014-.774-2.716-.07l-8.996 8.997a1.973 1.973 0 0 0-.57 1.214l-.38 4.17a1.002 1.002 0 0 0 1.088 1.086l4.17-.38a1.974 1.974 0 0 0 1.214-.567l8.997-8.997c.728-.73.697-1.948-.068-2.714Z"}))};EnergyIconEdit.defaultProps={width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"};var EnergyIconHome=function(e){return _react.default.createElement("svg",e,_react.default.createElement("path",{d:"m9.02 2.84-5.39 4.2C2.73 7.74 2 9.23 2 10.36v7.41c0 2.32 1.89 4.22 4.21 4.22h11.58c2.32 0 4.21-1.9 4.21-4.21V10.5c0-1.21-.81-2.76-1.8-3.45l-6.18-4.33c-1.4-.98-3.65-.93-5 .12Z",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),_react.default.createElement("path",{d:"M12 17.99v-3 3Z"}),_react.default.createElement("path",{d:"M12 17.99v-3",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}))};EnergyIconHome.defaultProps={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",xmlns:"http://www.w3.org/2000/svg"};var EnergyIconMessageEdit=function(e){return _react.default.createElement("svg",e,_react.default.createElement("path",{d:"M8 9h8M8 13h6M13 20l-1 1-3-3H6a3 3 0 0 1-3-3V7a3 3 0 0 1 3-3h12a3 3 0 0 1 3 3v5.5M18.93 15.522a1.797 1.797 0 0 1 2.933.583 1.8 1.8 0 0 1-.39 1.96l-2.903 2.93H16v-2.57l2.93-2.903Z"}))};EnergyIconMessageEdit.defaultProps={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};var EnergyIconQuestionFilled=function(e){return _react.default.createElement("svg",e,_react.default.createElement("path",{fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd",d:"M10 2.287a8 8 0 1 0 0 16 8 8 0 0 0 0-16Zm-10 8c0-5.523 4.477-10 10-10s10 4.477 10 10-4.477 10-10 10-10-4.477-10-10Zm8.475-5.655a3.6 3.6 0 1 1 2.857 6.598.5.5 0 0 0-.334.5 1 1 0 0 1-1.996.114 2.5 2.5 0 0 1 1.65-2.495 1.6 1.6 0 1 0-1.855-2.458 1 1 0 0 1-1.594-1.208 3.6 3.6 0 0 1 1.272-1.051ZM10 14.287a1 1 0 0 1 1 1v.01a1 1 0 1 1-2 0v-.01a1 1 0 0 1 1-1Z"}))};EnergyIconQuestionFilled.defaultProps={width:"20",height:"21",viewBox:"0 0 20 21",fill:"none",xmlns:"http://www.w3.org/2000/svg"};var EnergyIconSendFilled=function(e){return _react.default.createElement("svg",e,_react.default.createElement("path",{d:"M20.816 10.742 3.93 2.504a1.086 1.086 0 0 0-.524-.106 1.11 1.11 0 0 0-.508.16c-.152.098-.277.231-.367.387-.086.16-.133.336-.133.52v.027c0 .145.02.285.055.426l1.617 6.48c.024.086.07.165.137.223.07.055.152.094.242.102l7.117.793c.118.015.227.07.309.16a.49.49 0 0 1-.309.808l-7.117.793a.438.438 0 0 0-.379.325l-1.617 6.48a1.712 1.712 0 0 0-.055.422v.031c0 .18.047.36.137.516.086.16.211.293.363.387.157.097.329.152.508.16.184.011.364-.028.524-.106l16.886-8.238c.235-.113.434-.293.57-.516a1.378 1.378 0 0 0 0-1.48 1.426 1.426 0 0 0-.57-.516Zm0 0",fill:"currentColor"}))};EnergyIconSendFilled.defaultProps={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};var EnergyIconTruck=function(e){return _react.default.createElement("svg",e,_react.default.createElement("path",{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",strokeWidth:"4",strokeLinecap:"round",strokeLinejoin:"round"}),_react.default.createElement("path",{d:"M13.333 45.333a5.333 5.333 0 1 0 10.667 0 5.333 5.333 0 0 0-10.667 0ZM40 45.333a5.333 5.333 0 1 0 10.667 0 5.333 5.333 0 0 0-10.667 0Z",strokeWidth:"4",strokeLinecap:"round",strokeLinejoin:"round"}),_react.default.createElement("path",{d:"M13.333 45.333H8V34.667M5.333 13.333h29.334v32m-10.667 0h16m10.667 0H56v-16m0 0H34.667m21.333 0L48 16H34.667M8 24h10.667",strokeWidth:"4",strokeLinecap:"round",strokeLinejoin:"round"}))};EnergyIconTruck.defaultProps={width:"24",height:"24",viewBox:"0 0 64 64",fill:"none",stroke:"currentColor",xmlns:"http://www.w3.org/2000/svg"};var EnergyIconFileTextSparkFilled=function(e){return _react.default.createElement("svg",e,_react.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.923 2.953a.973.973 0 0 0-.974.977v13.675a.978.978 0 0 0 .974.976h4.872c.538 0 .974.438.974.977 0 .54-.436.977-.974.977H5.923a2.92 2.92 0 0 1-2.067-.858A2.934 2.934 0 0 1 3 17.605V3.93c0-.777.308-1.522.856-2.072A2.92 2.92 0 0 1 5.923 1h6.82c.259 0 .507.103.69.286l4.871 4.884a.978.978 0 0 1 .286.69v3.42a.976.976 0 1 1-1.949 0V7.836h-2.923a1.946 1.946 0 0 1-1.378-.572 1.956 1.956 0 0 1-.57-1.381v-2.93H5.922Zm7.795 1.382 1.545 1.549h-1.545v-1.55Zm-6.82 3.502c0-.54.436-.977.974-.977h.974c.538 0 .975.438.975.977 0 .54-.437.977-.975.977h-.974a.976.976 0 0 1-.975-.977Zm0 3.907c0-.54.436-.977.974-.977h5.846c.538 0 .974.438.974.977 0 .54-.436.977-.974.977H7.872a.976.976 0 0 1-.975-.977Zm10.717 1.465c.45 0 .842.31.947.747a3.666 3.666 0 0 0 2.693 2.7.976.976 0 0 1 0 1.898 3.652 3.652 0 0 0-2.693 2.699.975.975 0 0 1-1.894 0 3.665 3.665 0 0 0-2.692-2.699.976.976 0 0 1 0-1.899 3.652 3.652 0 0 0 2.692-2.699.975.975 0 0 1 .947-.747Zm0 3.234a5.602 5.602 0 0 1-1.159 1.162 5.596 5.596 0 0 1 1.16 1.161 5.612 5.612 0 0 1 1.158-1.161 5.617 5.617 0 0 1-1.159-1.162ZM6.897 15.65c0-.54.437-.977.975-.977h2.923c.538 0 .974.438.974.977 0 .54-.436.977-.974.977H7.872a.976.976 0 0 1-.975-.977Z"}))};EnergyIconFileTextSparkFilled.defaultProps={width:"24",height:"24",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"};var EnergyIconFlameFilled=function(e){return _react.default.createElement("svg",e,_react.default.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}),_react.default.createElement("path",{d:"M10 2c0-.88 1.056-1.331 1.692-.722 1.958 1.876 3.096 5.995 1.75 9.12l-.08.174.012.003c.625.133 1.203-.43 2.303-2.173l.14-.224a1 1 0 0 1 1.582-.153C18.733 9.46 20 12.402 20 14.295 20 18.56 16.409 22 12 22s-8-3.44-8-7.706c0-2.252 1.022-4.716 2.632-6.301l.605-.589c.241-.236.434-.43.618-.624C9.285 5.268 10 3.856 10 2"}))};EnergyIconFlameFilled.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"currentColor",className:"icon icon-tabler icons-tabler-filled icon-tabler-flame"};var EnergyIconBoltFilled=function(e){return _react.default.createElement("svg",e,_react.default.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}),_react.default.createElement("path",{d:"m13 2 .018.001.016.001.083.005.011.002h.011l.038.009.052.008.016.006.011.001.029.011.052.014.019.009.015.004.028.014.04.017.021.012.022.01.023.015.031.017.034.024.018.011.013.012.024.017.038.034.022.017.008.01.014.012.036.041.026.027.006.009c.12.147.196.322.218.513l.001.012.002.041L14 3v6h5a1 1 0 0 1 .868 1.497l-.06.091-8 11C11.24 22.371 10 21.968 10 21v-6H5a1 1 0 0 1-.868-1.497l.06-.091 8-11 .01-.013.018-.024.033-.038.018-.022.009-.008.013-.014.04-.036.028-.026.008-.006a1 1 0 0 1 .402-.199l.011-.001.027-.005.074-.013.011-.001.041-.002z"}))};EnergyIconBoltFilled.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"currentColor",className:"icon icon-tabler icons-tabler-filled icon-tabler-bolt"};var EnergyIconPresentationFilled=function(e){return _react.default.createElement("svg",e,_react.default.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}),_react.default.createElement("path",{d:"M21 3a1 1 0 0 1 0 2v9a3 3 0 0 1-3 3h-5v2h2a1 1 0 0 1 0 2H9a1 1 0 0 1 0-2h2v-2H6a3 3 0 0 1-3-3V5a1 1 0 1 1 0-2zm-4.293 4.293a1 1 0 0 0-1.414 0L13 9.585l-1.293-1.292a1 1 0 0 0-1.414 0l-3 3a1 1 0 0 0 0 1.414l.094.083a1 1 0 0 0 1.32-.083L11 10.415l1.293 1.292a1 1 0 0 0 1.414 0l3-3a1 1 0 0 0 0-1.414"}))};EnergyIconPresentationFilled.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"currentColor",className:"icon icon-tabler icons-tabler-filled icon-tabler-presentation"};var EnergyIconCreditCardsFilled=function(e){return _react.default.createElement("svg",e,_react.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"m13.172 4.39.823 1.427.017.03h2.76a2.395 2.395 0 0 1 2.395 2.395v5.113a2.395 2.395 0 0 1-2.395 2.395H8.341l-1.242.717c-1.194.69-2.766.365-3.473-.86l-2.47-4.279c-.708-1.224-.202-2.748.991-3.437L9.7 3.531c1.194-.689 2.766-.365 3.473.86Zm-1.444.834.36.623H9.021l.534-.308.978-.565a.916.916 0 0 1 .901-.032.75.75 0 0 1 .294.282Zm-8.747 4.11L6.07 7.55c-.065.22-.1.452-.1.692v5.113c0 .578.204 1.11.546 1.523l-.252.146c-.475.274-.993.101-1.195-.25l-2.471-4.28c-.203-.35-.093-.885.382-1.16Zm5.384-1.82a.728.728 0 0 0-.728.728v.385H17.5v-.385a.728.728 0 0 0-.728-.728H8.365Zm9.135 2.78H7.637v3.06c0 .403.326.729.728.729h8.407a.728.728 0 0 0 .728-.728v-3.061Z"}))};EnergyIconCreditCardsFilled.defaultProps={width:"20",height:"20",fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"};const FILLED_ICON_COLOR=exports.FILLED_ICON_COLOR="transparent",DEFAULT_INTERNAL_SHADE=exports.DEFAULT_INTERNAL_SHADE=_Palette.COLOR_SHADES.shade02,DEFAULT_COLOR_THEME=exports.DEFAULT_COLOR_THEME=_Palette.COLOR_THEMES.dark,DEFAULT_VARIANT=exports.DEFAULT_VARIANT="default",FILLED_ICON_SUFIX=exports.FILLED_ICON_SUFIX="Filled",ENERGY_ICON_PREFIX=exports.ENERGY_ICON_PREFIX="Energy",DEFAULT_ICON_SIZE=exports.DEFAULT_ICON_SIZE=24,AREA_BORDER_WIDTH=exports.AREA_BORDER_WIDTH="1px",ENERGY_ICONS=exports.ENERGY_ICONS={EnergyIconBottledGas:EnergyIconBottledGas,EnergyIconBottledGasPlus:EnergyIconBottledGasPlus,EnergyIconCar:EnergyIconCar,EnergyIconCarbonFootprint:EnergyIconCarbonFootprint,EnergyIconCart:EnergyIconCart,EnergyIconChatSparkFilled:EnergyIconChatSparkFilled,EnergyIconConsumption:EnergyIconConsumption,EnergyIconConsumptionBoxFilled:EnergyIconConsumptionBoxFilled,EnergyIconEdit:EnergyIconEdit,EnergyIconFileTextSparkFilled:EnergyIconFileTextSparkFilled,EnergyIconHome:EnergyIconHome,EnergyIconMessageEdit:EnergyIconMessageEdit,EnergyIconQuestionFilled:EnergyIconQuestionFilled,EnergyIconSendFilled:EnergyIconSendFilled,EnergyIconTruck:EnergyIconTruck,EnergyIconConsumptionBoxPlusFilled:EnergyIconConsumptionBoxPlusFilled,EnergyIconConsumptionBoxRightFilled:EnergyIconConsumptionBoxRightFilled,EnergyIconConsumptionBoxMinusFilled:EnergyIconConsumptionBoxMinusFilled,EnergyIconFlameFilled:EnergyIconFlameFilled,EnergyIconBoltFilled:EnergyIconBoltFilled,EnergyIconPresentationFilled:EnergyIconPresentationFilled,EnergyIconCreditCardsFilled:EnergyIconCreditCardsFilled};
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.WEIGHTS=exports.VARIANTS_SIZES=exports.VARIANTS_NAMES=exports.VARIANTS_LINE_HEIGHT=exports.VARIANTS=exports.DEFAULT_PROPS=void 0;var _Palette=require("../../constants/Palette");const VARIANTS_NAMES=exports.VARIANTS_NAMES={TITLE1:"title1",TITLE2:"title2",TITLE3:"title3",SUBTITLE1:"subtitle1",SUBTITLE2:"subtitle2",BODY:"body",SMALL:"small",XSMALL:"xsmall",TH:"th",TD:"td"},VARIANTS=exports.VARIANTS={[VARIANTS_NAMES.TITLE1]:"h1",[VARIANTS_NAMES.TITLE2]:"h2",[VARIANTS_NAMES.TITLE3]:"h3",[VARIANTS_NAMES.SUBTITLE1]:"h4",[VARIANTS_NAMES.SUBTITLE2]:"h5",[VARIANTS_NAMES.BODY]:"div",[VARIANTS_NAMES.SMALL]:"div",[VARIANTS_NAMES.XSMALL]:"div",[VARIANTS_NAMES.TH]:"th",[VARIANTS_NAMES.TD]:"td"},VARIANTS_SIZES=exports.VARIANTS_SIZES={[VARIANTS_NAMES.TITLE1]:"var(--UT-label-size-title-1, 1.875rem)",[VARIANTS_NAMES.TITLE2]:"var(--UT-label-size-title-2, 1.5rem)",[VARIANTS_NAMES.TITLE3]:"var(--UT-label-size-title-3, 1.375rem)",[VARIANTS_NAMES.SUBTITLE1]:"var(--UT-label-size-subtitle-1, 1.125rem)",[VARIANTS_NAMES.SUBTITLE2]:"var(--UT-label-size-subtitle-2, 1rem)",[VARIANTS_NAMES.BODY]:"var(--UT-label-size-body, 1rem)",[VARIANTS_NAMES.SMALL]:"var(--UT-label-size-small, 0.75rem)",[VARIANTS_NAMES.XSMALL]:"var(--UT-label-size-xsmall, 0.75rem)",[VARIANTS_NAMES.TH]:"var(--UT-label-size-body, 1rem)",[VARIANTS_NAMES.TD]:"var(--UT-label-size-body, 1rem)"},VARIANTS_LINE_HEIGHT=exports.VARIANTS_LINE_HEIGHT={[VARIANTS_NAMES.TITLE1]:"var(--UT-label-lh-heading, 1.2)",[VARIANTS_NAMES.TITLE2]:"var(--UT-label-lh-heading, 1.2)",[VARIANTS_NAMES.TITLE3]:"var(--UT-label-lh-heading, 1.2)",[VARIANTS_NAMES.SUBTITLE1]:"var(--UT-label-lh-subheading, 1.4)",[VARIANTS_NAMES.SUBTITLE2]:"var(--UT-label-lh-subheading, 1.4)",[VARIANTS_NAMES.BODY]:"var(--UT-label-lh-body, 1.4)",[VARIANTS_NAMES.SMALL]:"var(--UT-label-lh-small, 1.4)",[VARIANTS_NAMES.XSMALL]:"var(--UT-label-lh-xsmall, 1.5)",[VARIANTS_NAMES.TH]:"var(--UT-label-lh-body, 1.4)",[VARIANTS_NAMES.TD]:"var(--UT-label-lh-body, 1.4)"},WEIGHTS=exports.WEIGHTS={thin:"var(--UT-label-weight-thin, 100)",extralight:"var(--UT-label-weight-extralight, 200)",light:"var(--UT-label-weight-light, 300)",regular:"var(--UT-label-weight-regular, 400)",medium:"var(--UT-label-weight-medium, 500)",semibold:"var(--UT-label-weight-semibold, 600)",bold:"var(--UT-label-weight-bold, 700)",extrabold:"var(--UT-label-weight-extrabold, 800)",black:"var(--UT-label-weight-black, 900)"},DEFAULT_PROPS=exports.DEFAULT_PROPS={colorTheme:_Palette.COLOR_THEMES.dark,field:{},markdownExtended:!1,markdownRenderers:{},variant:"body",weight:"regular",withMarkdown:!1};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.getGradientTokenName=exports.WEIGHTS=exports.VARIANTS_SIZES=exports.VARIANTS_NAMES=exports.VARIANTS_LINE_HEIGHT=exports.VARIANTS=exports.GRADIENT_FALLBACKS=exports.DEFAULT_PROPS=exports.DEFAULT_GRADIENT_FALLBACK=void 0;var _Palette=require("../../constants/Palette");const VARIANTS_NAMES=exports.VARIANTS_NAMES={TITLE1:"title1",TITLE2:"title2",TITLE3:"title3",SUBTITLE1:"subtitle1",SUBTITLE2:"subtitle2",BODY:"body",SMALL:"small",XSMALL:"xsmall",TH:"th",TD:"td"},VARIANTS=exports.VARIANTS={[VARIANTS_NAMES.TITLE1]:"h1",[VARIANTS_NAMES.TITLE2]:"h2",[VARIANTS_NAMES.TITLE3]:"h3",[VARIANTS_NAMES.SUBTITLE1]:"h4",[VARIANTS_NAMES.SUBTITLE2]:"h5",[VARIANTS_NAMES.BODY]:"div",[VARIANTS_NAMES.SMALL]:"div",[VARIANTS_NAMES.XSMALL]:"div",[VARIANTS_NAMES.TH]:"th",[VARIANTS_NAMES.TD]:"td"},VARIANTS_SIZES=exports.VARIANTS_SIZES={[VARIANTS_NAMES.TITLE1]:"var(--UT-label-size-title-1, 1.875rem)",[VARIANTS_NAMES.TITLE2]:"var(--UT-label-size-title-2, 1.5rem)",[VARIANTS_NAMES.TITLE3]:"var(--UT-label-size-title-3, 1.375rem)",[VARIANTS_NAMES.SUBTITLE1]:"var(--UT-label-size-subtitle-1, 1.125rem)",[VARIANTS_NAMES.SUBTITLE2]:"var(--UT-label-size-subtitle-2, 1rem)",[VARIANTS_NAMES.BODY]:"var(--UT-label-size-body, 1rem)",[VARIANTS_NAMES.SMALL]:"var(--UT-label-size-small, 0.75rem)",[VARIANTS_NAMES.XSMALL]:"var(--UT-label-size-xsmall, 0.75rem)",[VARIANTS_NAMES.TH]:"var(--UT-label-size-body, 1rem)",[VARIANTS_NAMES.TD]:"var(--UT-label-size-body, 1rem)"},VARIANTS_LINE_HEIGHT=exports.VARIANTS_LINE_HEIGHT={[VARIANTS_NAMES.TITLE1]:"var(--UT-label-lh-heading, 1.2)",[VARIANTS_NAMES.TITLE2]:"var(--UT-label-lh-heading, 1.2)",[VARIANTS_NAMES.TITLE3]:"var(--UT-label-lh-heading, 1.2)",[VARIANTS_NAMES.SUBTITLE1]:"var(--UT-label-lh-subheading, 1.4)",[VARIANTS_NAMES.SUBTITLE2]:"var(--UT-label-lh-subheading, 1.4)",[VARIANTS_NAMES.BODY]:"var(--UT-label-lh-body, 1.4)",[VARIANTS_NAMES.SMALL]:"var(--UT-label-lh-small, 1.4)",[VARIANTS_NAMES.XSMALL]:"var(--UT-label-lh-xsmall, 1.5)",[VARIANTS_NAMES.TH]:"var(--UT-label-lh-body, 1.4)",[VARIANTS_NAMES.TD]:"var(--UT-label-lh-body, 1.4)"},WEIGHTS=exports.WEIGHTS={thin:"var(--UT-label-weight-thin, 100)",extralight:"var(--UT-label-weight-extralight, 200)",light:"var(--UT-label-weight-light, 300)",regular:"var(--UT-label-weight-regular, 400)",medium:"var(--UT-label-weight-medium, 500)",semibold:"var(--UT-label-weight-semibold, 600)",bold:"var(--UT-label-weight-bold, 700)",extrabold:"var(--UT-label-weight-extrabold, 800)",black:"var(--UT-label-weight-black, 900)"},DEFAULT_PROPS=exports.DEFAULT_PROPS={colorTheme:_Palette.COLOR_THEMES.dark,field:{},gradient:!1,markdownExtended:!1,markdownRenderers:{},variant:"body",weight:"regular",withMarkdown:!1},getGradientTokenName=e=>"decorative-".concat(e,"-gradient");exports.getGradientTokenName=getGradientTokenName;const GRADIENT_FALLBACKS=exports.GRADIENT_FALLBACKS={[_Palette.COLOR_THEMES.information]:"linear-gradient(88.75deg, #1291FF 0%, #67E8F9 100%)",[_Palette.COLOR_THEMES.warning]:"linear-gradient(88.75deg, #EC6707 0%, #FBCA3A 100%)"},DEFAULT_GRADIENT_FALLBACK=exports.DEFAULT_GRADIENT_FALLBACK=GRADIENT_FALLBACKS[_Palette.COLOR_THEMES.information];
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.retrieveStyle=exports.retrieveProps=exports.getFontStyles=void 0;var _merge=_interopRequireDefault(require("lodash/merge")),_Palette=require("../../constants/Palette"),_componentUtils=require("../../utils/componentUtils"),_colorsModule=_interopRequireDefault(require("../../scss/variables/colors.module.scss")),_constants=require("./constants");function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}const variantsColorTheme=(e,t,a)=>{var l;return(a.Palette[e]||(null===(l=a.Palette.actions)||void 0===l?void 0:l[e])||a.Palette[_constants.DEFAULT_PROPS.colorTheme])[Object.values(_Palette.COLOR_SHADES).includes(t)?t:(0,_componentUtils.getDefaultColorShade)(e)]||_colorsModule.default.black},linkColor=(e,t)=>{var a;const l=(null===(a=e.Palette)||void 0===a?void 0:a.actions)||e.Palette;return t===_Palette.COLOR_THEMES.light?l[_Palette.COLOR_THEMES.negative][_Palette.COLOR_SHADES.shade05]:t===_Palette.COLOR_THEMES.error?l[_Palette.COLOR_THEMES.error][_Palette.COLOR_SHADES.shade05]:l[_Palette.COLOR_THEMES.accent][_Palette.COLOR_SHADES.shade05]},getFontStyles=e=>{var t,a,l;let{theme:r,variant:i,weight:n,variantsSizes:o}=e;const d=o||(0,_merge.default)({},_constants.VARIANTS_SIZES,null==r||null===(t=r.UTLabel)||void 0===t?void 0:t.variantsSizes),s=(0,_merge.default)({},_constants.VARIANTS_LINE_HEIGHT,null==r||null===(a=r.UTLabel)||void 0===a?void 0:a.variantsLineHeights);return{fontFamily:null==r||null===(l=r.Fonts)||void 0===l?void 0:l.fontFamily,fontSize:d[i]||d[_constants.DEFAULT_PROPS.variant],fontWeight:_constants.WEIGHTS[n]||_constants.WEIGHTS[_constants.DEFAULT_PROPS.weight],lineHeight:s[i]||s[_constants.DEFAULT_PROPS.variant]}};exports.getFontStyles=getFontStyles;const retrieveStyle=e=>{var t,a,l,r,i,n,o,d;let{colorTheme:s,field:m,shade:_,theme:g,variant:v,weight:S,variantsSizes:u}=e;const T=s===_Palette.COLOR_THEMES.light?g.Palette[_Palette.COLOR_THEMES.light][_Palette.COLOR_SHADES.shade01]:g.Palette[_Palette.COLOR_THEMES.dark][_Palette.COLOR_SHADES.shade05],p=s===_Palette.COLOR_THEMES.light?g.Palette[_Palette.COLOR_THEMES.light][_Palette.COLOR_SHADES.shade01]:g.Palette[_Palette.COLOR_THEMES.gray][_Palette.COLOR_SHADES.shade04];return{root:{color:variantsColorTheme(null!==(t=null==m||null===(a=m.configuration)||void 0===a?void 0:a.colorTheme)&&void 0!==t?t:s,null!==(l=null==m||null===(r=m.configuration)||void 0===r?void 0:r.shade)&&void 0!==l?l:_,g),...getFontStyles({theme:g,variant:null!==(i=null==m||null===(n=m.configuration)||void 0===n?void 0:n.variant)&&void 0!==i?i:v,weight:null!==(o=null==m||null===(d=m.configuration)||void 0===d?void 0:d.weight)&&void 0!==o?o:S,variantsSizes:u}),letterSpacing:"normal",margin:0},markdown:{"& a":{color:linkColor(g,s)},"& h1, & h2, & h3, & h4, & h5, & h6":{color:T,fontWeight:_constants.WEIGHTS.medium,lineHeight:"var(--UT-label-lh-heading, 1.2)",margin:"0 0 var(--UT-label-markdown-margin-md, 8px) 0"},"& h1":{fontSize:"var(--UT-label-size-title-1, 1.875em)"},"& h2":{fontSize:"var(--UT-label-size-title-2, 1.5em)"},"& h3":{fontSize:"var(--UT-label-size-title-3, 1.375em)"},"& h4":{fontSize:"var(--UT-label-size-subtitle-1, 1.125em)"},"& h5":{fontSize:"var(--UT-label-size-subtitle-2, 1em)",margin:"0 0 var(--UT-label-markdown-margin-md, 12px) 0"},"& h6":{color:p,fontSize:"var(--UT-label-size-body, 1em)",margin:"0 0 var(--UT-label-markdown-margin-md, 12px) 0"},"& table":{border:"1px solid ".concat(g.Palette[_Palette.COLOR_THEMES.light][_Palette.COLOR_SHADES.shade04]),borderCollapse:"collapse",margin:"0 0 var(--UT-label-markdown-margin-xl, 24px) 0",width:"100%"},"& th, & td":{border:"1px solid ".concat(g.Palette[_Palette.COLOR_THEMES.light][_Palette.COLOR_SHADES.shade04]),padding:"var(--UT-label-markdown-padding-sm, 8px) var(--UT-label-markdown-padding-md, 12px)",textAlign:"left"},"& th":{backgroundColor:(g.Palette.actions||g.Palette)[_Palette.COLOR_THEMES.negative][_Palette.COLOR_SHADES.shade01],color:p,fontWeight:_constants.WEIGHTS.medium},"& p":{margin:"0 0 var(--UT-label-markdown-margin-md, 12px) 0"},"& ol":{paddingLeft:"var(--UT-label-markdown-padding-xl, 24px)",textAlign:"start"},"& ul, & ol":{margin:"0 0 var(--UT-label-markdown-margin-xl, 24px) 0"},"& ul:not(.contains-task-list)":{paddingLeft:"var(--UT-label-markdown-padding-xl, 24px)",textAlign:"start"},"& pre":{backgroundColor:g.Palette[_Palette.COLOR_THEMES.light][_Palette.COLOR_SHADES.shade03],borderRadius:"var(--UT-radius-md, 0.5rem)",fontSize:"var(--UT-label-size-small, 0.75em)",lineHeight:"var(--UT-label-lh-small, 1.4)",margin:"0 0 var(--UT-label-markdown-margin-xl, 24px) 0",padding:"var(--UT-label-markdown-padding-sm, 12px) var(--UT-label-markdown-padding-md, 16px)",whiteSpace:"pre-wrap"},"& dl":{margin:"0 0 var(--UT-label-markdown-margin-xl, 24px) 0"},"& dd":{fontSize:"inherit",margin:0},"& dt":{color:p,fontSize:_constants.VARIANTS_SIZES.small,fontWeight:_constants.WEIGHTS.semibold},"& dt + dt, & dt + dd, & dd + dd":{marginTop:12},"& hr":{borderColor:g.Palette[_Palette.COLOR_THEMES.gray][_Palette.COLOR_SHADES.shade01],borderTop:0,margin:"var(--UT-label-markdown-margin-sm, 8px) 0 var(--UT-label-markdown-margin-xl, 24px)"},"& li + li":{marginTop:"var(--UT-label-markdown-margin-md, 12px)"},"& li > ul":{marginTop:"var(--UT-label-markdown-margin-sm, 8px)"},"& li::marker":{color:g.Palette[_Palette.COLOR_THEMES.gray][_Palette.COLOR_SHADES.shade01]},"& li > ul > li + li":{marginTop:"var(--UT-label-markdown-margin-sm, 8px)"},"& li p":{margin:0},"& sup":{fontSize:"inherit"},"& sup > a":{fontSize:"var(--UT-label-size-xsmall, 0.75em)"},"& img, & video, & audio":{borderRadius:"var(--UT-radius-md, 0.5rem)",margin:"0 0 var(--UT-label-markdown-margin-xl, 24px) 0"},"& .contains-task-list":{display:"flex",flexDirection:"column",gridGap:"var(--gap-md, 12px)",margin:"0 0 var(--UT-label-markdown-margin-xl, 24px) 0",paddingLeft:0,"& li":{margin:0}},"& :last-child":{marginBottom:"0"}},blockquote:{color:p},customFootnotes:{"& span":{color:p}}}};exports.retrieveStyle=retrieveStyle;const retrieveProps=(e,t)=>({...(null==e?void 0:e.UTLabel)||{},...t});exports.retrieveProps=retrieveProps;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.retrieveStyle=exports.retrieveProps=exports.getFontStyles=void 0;var _merge=_interopRequireDefault(require("lodash/merge")),_Palette=require("../../constants/Palette"),_componentUtils=require("../../utils/componentUtils"),_colorsModule=_interopRequireDefault(require("../../scss/variables/colors.module.scss")),_constants=require("./constants");function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}const variantsColorTheme=(e,t,a)=>{var l;return(a.Palette[e]||(null===(l=a.Palette.actions)||void 0===l?void 0:l[e])||a.Palette[_constants.DEFAULT_PROPS.colorTheme])[Object.values(_Palette.COLOR_SHADES).includes(t)?t:(0,_componentUtils.getDefaultColorShade)(e)]||_colorsModule.default.black},linkColor=(e,t)=>{var a;const l=(null===(a=e.Palette)||void 0===a?void 0:a.actions)||e.Palette;return t===_Palette.COLOR_THEMES.light?l[_Palette.COLOR_THEMES.negative][_Palette.COLOR_SHADES.shade05]:t===_Palette.COLOR_THEMES.error?l[_Palette.COLOR_THEMES.error][_Palette.COLOR_SHADES.shade05]:l[_Palette.COLOR_THEMES.accent][_Palette.COLOR_SHADES.shade05]},getFontStyles=e=>{var t,a,l;let{theme:r,variant:n,weight:o,variantsSizes:i}=e;const s=i||(0,_merge.default)({},_constants.VARIANTS_SIZES,null==r||null===(t=r.UTLabel)||void 0===t?void 0:t.variantsSizes),d=(0,_merge.default)({},_constants.VARIANTS_LINE_HEIGHT,null==r||null===(a=r.UTLabel)||void 0===a?void 0:a.variantsLineHeights);return{fontFamily:null==r||null===(l=r.Fonts)||void 0===l?void 0:l.fontFamily,fontSize:s[n]||s[_constants.DEFAULT_PROPS.variant],fontWeight:_constants.WEIGHTS[o]||_constants.WEIGHTS[_constants.DEFAULT_PROPS.weight],lineHeight:d[n]||d[_constants.DEFAULT_PROPS.variant]}};exports.getFontStyles=getFontStyles;const gradientStyles=e=>{const t=_constants.GRADIENT_FALLBACKS[e]||_constants.DEFAULT_GRADIENT_FALLBACK;return{backgroundImage:"var(--".concat((0,_constants.getGradientTokenName)(e),", ").concat(t,")"),backgroundClip:"text",color:"transparent",width:"fit-content","-webkit-background-clip":"text","-webkit-text-fill-color":"transparent","@media (forced-colors: active)":{backgroundImage:"none",color:"CanvasText","-webkit-text-fill-color":"currentColor"}}},retrieveStyle=e=>{var t,a,l,r,n,o,i,s;let{colorTheme:d,field:m,gradient:g,shade:_,theme:c,variant:v,weight:S,variantsSizes:u}=e;const T=d===_Palette.COLOR_THEMES.light?c.Palette[_Palette.COLOR_THEMES.light][_Palette.COLOR_SHADES.shade01]:c.Palette[_Palette.COLOR_THEMES.dark][_Palette.COLOR_SHADES.shade05],p=d===_Palette.COLOR_THEMES.light?c.Palette[_Palette.COLOR_THEMES.light][_Palette.COLOR_SHADES.shade01]:c.Palette[_Palette.COLOR_THEMES.gray][_Palette.COLOR_SHADES.shade04],h=null!==(t=null==m||null===(a=m.configuration)||void 0===a?void 0:a.colorTheme)&&void 0!==t?t:d;return{root:{color:variantsColorTheme(h,null!==(l=null==m||null===(r=m.configuration)||void 0===r?void 0:r.shade)&&void 0!==l?l:_,c),...getFontStyles({theme:c,variant:null!==(n=null==m||null===(o=m.configuration)||void 0===o?void 0:o.variant)&&void 0!==n?n:v,weight:null!==(i=null==m||null===(s=m.configuration)||void 0===s?void 0:s.weight)&&void 0!==i?i:S,variantsSizes:u}),letterSpacing:"normal",margin:0,...g?gradientStyles(h):{}},markdown:{"& a":{color:linkColor(c,d)},"& h1, & h2, & h3, & h4, & h5, & h6":{color:T,fontWeight:_constants.WEIGHTS.medium,lineHeight:"var(--UT-label-lh-heading, 1.2)",margin:"0 0 var(--UT-label-markdown-margin-md, 8px) 0"},"& h1":{fontSize:"var(--UT-label-size-title-1, 1.875em)"},"& h2":{fontSize:"var(--UT-label-size-title-2, 1.5em)"},"& h3":{fontSize:"var(--UT-label-size-title-3, 1.375em)"},"& h4":{fontSize:"var(--UT-label-size-subtitle-1, 1.125em)"},"& h5":{fontSize:"var(--UT-label-size-subtitle-2, 1em)",margin:"0 0 var(--UT-label-markdown-margin-md, 12px) 0"},"& h6":{color:p,fontSize:"var(--UT-label-size-body, 1em)",margin:"0 0 var(--UT-label-markdown-margin-md, 12px) 0"},"& table":{border:"1px solid ".concat(c.Palette[_Palette.COLOR_THEMES.light][_Palette.COLOR_SHADES.shade04]),borderCollapse:"collapse",margin:"0 0 var(--UT-label-markdown-margin-xl, 24px) 0",width:"100%"},"& th, & td":{border:"1px solid ".concat(c.Palette[_Palette.COLOR_THEMES.light][_Palette.COLOR_SHADES.shade04]),padding:"var(--UT-label-markdown-padding-sm, 8px) var(--UT-label-markdown-padding-md, 12px)",textAlign:"left"},"& th":{backgroundColor:(c.Palette.actions||c.Palette)[_Palette.COLOR_THEMES.negative][_Palette.COLOR_SHADES.shade01],color:p,fontWeight:_constants.WEIGHTS.medium},"& p":{margin:"0 0 var(--UT-label-markdown-margin-md, 12px) 0"},"& ol":{paddingLeft:"var(--UT-label-markdown-padding-xl, 24px)",textAlign:"start"},"& ul, & ol":{margin:"0 0 var(--UT-label-markdown-margin-xl, 24px) 0"},"& ul:not(.contains-task-list)":{paddingLeft:"var(--UT-label-markdown-padding-xl, 24px)",textAlign:"start"},"& pre":{backgroundColor:c.Palette[_Palette.COLOR_THEMES.light][_Palette.COLOR_SHADES.shade03],borderRadius:"var(--UT-radius-md, 0.5rem)",fontSize:"var(--UT-label-size-small, 0.75em)",lineHeight:"var(--UT-label-lh-small, 1.4)",margin:"0 0 var(--UT-label-markdown-margin-xl, 24px) 0",padding:"var(--UT-label-markdown-padding-sm, 12px) var(--UT-label-markdown-padding-md, 16px)",whiteSpace:"pre-wrap"},"& dl":{margin:"0 0 var(--UT-label-markdown-margin-xl, 24px) 0"},"& dd":{fontSize:"inherit",margin:0},"& dt":{color:p,fontSize:_constants.VARIANTS_SIZES.small,fontWeight:_constants.WEIGHTS.semibold},"& dt + dt, & dt + dd, & dd + dd":{marginTop:12},"& hr":{borderColor:c.Palette[_Palette.COLOR_THEMES.gray][_Palette.COLOR_SHADES.shade01],borderTop:0,margin:"var(--UT-label-markdown-margin-sm, 8px) 0 var(--UT-label-markdown-margin-xl, 24px)"},"& li + li":{marginTop:"var(--UT-label-markdown-margin-md, 12px)"},"& li > ul":{marginTop:"var(--UT-label-markdown-margin-sm, 8px)"},"& li::marker":{color:c.Palette[_Palette.COLOR_THEMES.gray][_Palette.COLOR_SHADES.shade01]},"& li > ul > li + li":{marginTop:"var(--UT-label-markdown-margin-sm, 8px)"},"& li p":{margin:0},"& sup":{fontSize:"inherit"},"& sup > a":{fontSize:"var(--UT-label-size-xsmall, 0.75em)"},"& img, & video, & audio":{borderRadius:"var(--UT-radius-md, 0.5rem)",margin:"0 0 var(--UT-label-markdown-margin-xl, 24px) 0"},"& .contains-task-list":{display:"flex",flexDirection:"column",gridGap:"var(--gap-md, 12px)",margin:"0 0 var(--UT-label-markdown-margin-xl, 24px) 0",paddingLeft:0,"& li":{margin:0}},"& :last-child":{marginBottom:"0"}},blockquote:{color:p},customFootnotes:{"& span":{color:p}}}};exports.retrieveStyle=retrieveStyle;const retrieveProps=(e,t)=>({...(null==e?void 0:e.UTLabel)||{},...t});exports.retrieveProps=retrieveProps;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _propTypes=require("prop-types"),_react=_interopRequireDefault(require("react")),_UTButton=_interopRequireDefault(require("../UTButton")),_UTIcon=_interopRequireDefault(require("../UTIcon")),_UTLabel=_interopRequireDefault(require("../UTLabel")),_UTLoading=_interopRequireDefault(require("../UTLoading")),_WithTheme=_interopRequireDefault(require("../WithTheme")),_testIds=require("../../constants/testIds"),_constants=require("./constants"),_theme=require("./theme"),_stylesModule=_interopRequireDefault(require("./styles.module.scss"));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _extends(){return _extends=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var s in a)({}).hasOwnProperty.call(a,s)&&(e[s]=a[s])}return e},_extends.apply(null,arguments)}const{statusMessage:statusMessage}=_testIds.TEST_IDS,UTStatusMessage=e=>{let{area:t,children:a,classes:s,colorTheme:r=_constants.COLOR_THEMES.DEFAULT,contentMaxWidth:o=_constants.DEFAULT_CONTENT_MAX_WIDTH,description:n,descriptionProps:l,flag:c,HeaderComponent:p,helpText:i,helpTextProps:d,icon:u="IconInfoCircle",iconProps:_={size:40},loading:T,primaryAction:y,primaryActionProps:f,primaryActionText:m,secondaryAction:g,secondaryActionProps:h,secondaryActionText:M,showHeader:b=!0,title:x,titleProps:E}=e;return _react.default.createElement("div",{className:"".concat(_stylesModule.default.root," ").concat(t?_stylesModule.default.area:""," ").concat(s.root||"")},c&&_react.default.createElement("div",{className:s.flag||"","data-testid":statusMessage.flag}),_react.default.createElement("div",{className:"".concat(_stylesModule.default.container," ").concat(s.container," ").concat(t?_stylesModule.default.areaPadding:"")},T?_react.default.createElement(_UTLoading.default,{loading:!0,text:null}):b?_react.default.createElement("div",{className:s.banner},p?_react.default.createElement(p,null):_react.default.createElement("div",{className:s.iconContainer},_react.default.createElement(_UTIcon.default,_extends({name:u,colorTheme:_constants.ICON_COLOR_THEMES[r],dataTestId:statusMessage.icon},_)))):null,_react.default.createElement("div",{className:"".concat(_stylesModule.default.content," ").concat(s.content),style:{"--statusMessage-content-max-width":"number"==typeof o?"".concat(o,"px"):o}},(x||n||i)&&_react.default.createElement("div",{className:_stylesModule.default.section},x&&_react.default.createElement(_UTLabel.default,_extends({className:_stylesModule.default.label,dataTestId:statusMessage.title,variant:"title3",weight:"medium"},E),x),n&&_react.default.createElement(_UTLabel.default,_extends({className:_stylesModule.default.label,colorTheme:"gray",dataTestId:statusMessage.description,withMarkdown:!0,variant:"body"},l),n),i&&_react.default.createElement(_UTLabel.default,_extends({className:_stylesModule.default.label,colorTheme:"gray",dataTestId:statusMessage.helperText,variant:"small"},d),i)),a,(y||g)&&_react.default.createElement("div",{className:_stylesModule.default.section},y&&_react.default.createElement(_UTButton.default,_extends({onClick:y},f),m),g&&_react.default.createElement(_UTButton.default,_extends({onClick:g,variant:"text"},h),M)))))};UTStatusMessage.propTypes={area:_propTypes.bool,children:_propTypes.element,classes:_propTypes.object,colorTheme:_propTypes.string,contentMaxWidth:(0,_propTypes.oneOfType)([_propTypes.number,_propTypes.string]),description:_propTypes.string,descriptionProps:_propTypes.object,flag:_propTypes.bool,flagColor:_propTypes.string,HeaderComponent:_propTypes.element,helpText:_propTypes.string,helpTextProps:_propTypes.object,icon:_propTypes.string,iconBackgroundColor:_propTypes.string,iconProps:_propTypes.object,loading:_propTypes.bool,primaryAction:_propTypes.func,primaryActionProps:_propTypes.object,primaryActionText:_propTypes.string,secondaryAction:_propTypes.func,secondaryActionProps:_propTypes.object,secondaryActionText:_propTypes.string,showBanner:_propTypes.bool,showHeader:_propTypes.bool,title:_propTypes.string,titleProps:_propTypes.object};const UTStatusMessageWithTheme=(0,_WithTheme.default)(_theme.retrieveStyle)(UTStatusMessage);UTStatusMessageWithTheme.displayName="UTStatusMessage";var _default=exports.default=UTStatusMessageWithTheme;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _propTypes=require("prop-types"),_react=_interopRequireDefault(require("react")),_UTButton=_interopRequireDefault(require("../UTButton")),_UTIcon=_interopRequireDefault(require("../UTIcon")),_UTLabel=_interopRequireDefault(require("../UTLabel")),_UTLoading=_interopRequireDefault(require("../UTLoading")),_WithTheme=_interopRequireDefault(require("../WithTheme")),_testIds=require("../../constants/testIds"),_constants=require("./constants"),_theme=require("./theme"),_stylesModule=_interopRequireDefault(require("./styles.module.scss"));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _extends(){return _extends=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var s in a)({}).hasOwnProperty.call(a,s)&&(e[s]=a[s])}return e},_extends.apply(null,arguments)}const{statusMessage:statusMessage}=_testIds.TEST_IDS,UTStatusMessage=e=>{let{area:t,children:a,classes:s,colorTheme:r=_constants.COLOR_THEMES.DEFAULT,contentMaxWidth:o=_constants.DEFAULT_CONTENT_MAX_WIDTH,description:n,descriptionProps:l,flag:c,HeaderComponent:p,helpText:i,helpTextProps:d,icon:u="IconInfoCircle",iconProps:_={size:40},loading:T,primaryAction:y,primaryActionProps:f,primaryActionText:m,secondaryAction:g,secondaryActionProps:h,secondaryActionText:M,showHeader:x=!0,title:b,titleProps:E}=e;return _react.default.createElement("div",{className:"".concat(_stylesModule.default.root," ").concat(t?_stylesModule.default.area:""," ").concat(s.root||"")},c&&_react.default.createElement("div",{className:s.flag||"","data-testid":statusMessage.flag}),_react.default.createElement("div",{className:"".concat(_stylesModule.default.container," ").concat(s.container," ").concat(t?_stylesModule.default.areaPadding:"")},T?_react.default.createElement(_UTLoading.default,{loading:!0,text:null}):x?_react.default.createElement("div",{className:s.banner},p?_react.default.createElement(p,null):_react.default.createElement("div",{className:s.iconContainer},_react.default.createElement(_UTIcon.default,_extends({name:u,colorTheme:_constants.ICON_COLOR_THEMES[r],dataTestId:statusMessage.icon},_)))):null,_react.default.createElement("div",{className:"".concat(_stylesModule.default.content," ").concat(s.content),style:{"--statusMessage-content-max-width":"number"==typeof o?"".concat(o,"px"):o}},(b||n||i)&&_react.default.createElement("div",{className:_stylesModule.default.section},b&&_react.default.createElement(_UTLabel.default,_extends({align:"center",dataTestId:statusMessage.title,variant:"title3",weight:"medium"},E),b),n&&_react.default.createElement(_UTLabel.default,_extends({align:"center",colorTheme:"gray",dataTestId:statusMessage.description,variant:"body",withMarkdown:!0},l),n),i&&_react.default.createElement(_UTLabel.default,_extends({align:"center",colorTheme:"gray",dataTestId:statusMessage.helperText,variant:"small"},d),i)),a,(y||g)&&_react.default.createElement("div",{className:_stylesModule.default.section},y&&_react.default.createElement(_UTButton.default,_extends({onClick:y},f),m),g&&_react.default.createElement(_UTButton.default,_extends({onClick:g,variant:"text"},h),M)))))};UTStatusMessage.propTypes={area:_propTypes.bool,children:_propTypes.element,classes:_propTypes.object,colorTheme:_propTypes.string,contentMaxWidth:(0,_propTypes.oneOfType)([_propTypes.number,_propTypes.string]),description:_propTypes.string,descriptionProps:_propTypes.object,flag:_propTypes.bool,flagColor:_propTypes.string,HeaderComponent:_propTypes.element,helpText:_propTypes.string,helpTextProps:_propTypes.object,icon:_propTypes.string,iconBackgroundColor:_propTypes.string,iconProps:_propTypes.object,loading:_propTypes.bool,primaryAction:_propTypes.func,primaryActionProps:_propTypes.object,primaryActionText:_propTypes.string,secondaryAction:_propTypes.func,secondaryActionProps:_propTypes.object,secondaryActionText:_propTypes.string,showBanner:_propTypes.bool,showHeader:_propTypes.bool,title:_propTypes.string,titleProps:_propTypes.object};const UTStatusMessageWithTheme=(0,_WithTheme.default)(_theme.retrieveStyle)(UTStatusMessage);UTStatusMessageWithTheme.displayName="UTStatusMessage";var _default=exports.default=UTStatusMessageWithTheme;
@@ -58,10 +58,6 @@ $default-area-border-color: #E4E6EA;
58
58
  justify-content: center;
59
59
  }
60
60
 
61
- .label {
62
- text-align: center;
63
- }
64
-
65
61
  .image {
66
62
  height: 200px;
67
63
  width: 200px;
@@ -0,0 +1,3 @@
1
+ <svg width="24" height="24" viewBox="0 0 24 24" fill="currentColor" xmlns="http://www.w3.org/2000/svg">
2
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M5.92308 2.95349C5.66466 2.95349 5.41683 3.0564 5.2341 3.23957C5.05137 3.42274 4.94872 3.67118 4.94872 3.93023V17.6047C4.94872 17.8637 5.05137 18.1121 5.2341 18.2953C5.41683 18.4785 5.66466 18.5814 5.92308 18.5814H10.7949C11.333 18.5814 11.7692 19.0187 11.7692 19.5581C11.7692 20.0976 11.333 20.5349 10.7949 20.5349H5.92308C5.14783 20.5349 4.40433 20.2262 3.85615 19.6766C3.30797 19.1271 3 18.3818 3 17.6047V3.93023C3 3.15309 3.30797 2.40777 3.85615 1.85825C4.40433 1.30872 5.14783 1 5.92308 1H12.7436C13.002 1 13.2498 1.10291 13.4326 1.28608L18.3044 6.1698C18.4871 6.35298 18.5897 6.60142 18.5897 6.86047V10.2791C18.5897 10.8185 18.1535 11.2558 17.6154 11.2558C17.0773 11.2558 16.641 10.8185 16.641 10.2791V7.83721H13.7179C13.2011 7.83721 12.7055 7.6314 12.34 7.26505C11.9745 6.8987 11.7692 6.40182 11.7692 5.88372V2.95349H5.92308ZM13.7179 4.33481L15.2631 5.88372H13.7179V4.33481ZM6.89744 7.83721C6.89744 7.29777 7.33367 6.86047 7.87179 6.86047H8.84615C9.38428 6.86047 9.82051 7.29777 9.82051 7.83721C9.82051 8.37665 9.38428 8.81395 8.84615 8.81395H7.87179C7.33367 8.81395 6.89744 8.37665 6.89744 7.83721ZM6.89744 11.7442C6.89744 11.2047 7.33367 10.7674 7.87179 10.7674H13.7179C14.2561 10.7674 14.6923 11.2047 14.6923 11.7442C14.6923 12.2836 14.2561 12.7209 13.7179 12.7209H7.87179C7.33367 12.7209 6.89744 12.2836 6.89744 11.7442ZM17.6154 13.2093C18.0653 13.2093 18.4567 13.5181 18.5624 13.9564C18.7204 14.6109 19.0552 15.209 19.5302 15.6852C20.0052 16.1613 20.6019 16.497 21.2547 16.6553C21.692 16.7613 22 17.1537 22 17.6047C22 18.0556 21.692 18.448 21.2547 18.554C20.6019 18.7123 20.0052 19.048 19.5302 19.5241C19.0552 20.0003 18.7204 20.5984 18.5624 21.2529C18.4567 21.6912 18.0653 22 17.6154 22C17.1655 22 16.7741 21.6912 16.6683 21.2529C16.5104 20.5984 16.1756 20.0003 15.7006 19.5241C15.2256 19.048 14.6289 18.7123 13.976 18.554C13.5388 18.448 13.2308 18.0556 13.2308 17.6047C13.2308 17.1537 13.5388 16.7613 13.976 16.6553C14.6289 16.497 15.2256 16.1613 15.7006 15.6852C16.1756 15.209 16.5104 14.6109 16.6683 13.9564C16.7741 13.5181 17.1655 13.2093 17.6154 13.2093ZM17.6154 16.4429C17.4525 16.6629 17.2732 16.8714 17.0785 17.0665C16.8839 17.2616 16.6759 17.4414 16.4565 17.6047C16.6759 17.7679 16.8839 17.9477 17.0785 18.1428C17.2732 18.3379 17.4525 18.5464 17.6154 18.7664C17.7783 18.5464 17.9576 18.3379 18.1522 18.1428C18.3469 17.9477 18.5549 17.7679 18.7743 17.6047C18.5549 17.4414 18.3469 17.2616 18.1522 17.0665C17.9576 16.8714 17.7783 16.6629 17.6154 16.4429ZM6.89744 15.6512C6.89744 15.1117 7.33367 14.6744 7.87179 14.6744H10.7949C11.333 14.6744 11.7692 15.1117 11.7692 15.6512C11.7692 16.1906 11.333 16.6279 10.7949 16.6279H7.87179C7.33367 16.6279 6.89744 16.1906 6.89744 15.6512Z" />
3
+ </svg>
@@ -1 +1 @@
1
- import React from"react";import{COLOR_SHADES,COLOR_THEMES}from"../../constants/Palette";var EnergyIconBottledGas=function(e){return React.createElement("svg",e,React.createElement("path",{d:"M14.955 8h-5.91A3.036 3.036 0 0 0 6 11.027v4.946A3.036 3.036 0 0 0 9.045 19h5.91A3.036 3.036 0 0 0 18 15.973v-4.946A3.036 3.036 0 0 0 14.955 8Z",strokeMiterlimit:"10"}),React.createElement("path",{d:"M9.25 8V4.448c0-.524.42-.948.94-.948h3.62c.52 0 .94.424.94.948V8M8 19v1.016c0 .543.408.984.911.984h6.178c.503 0 .911-.44.911-.984V19M6 12h12",strokeMiterlimit:"10"}))};EnergyIconBottledGas.defaultProps={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",xmlns:"http://www.w3.org/2000/svg"};var EnergyIconBottledGasPlus=function(e){return React.createElement("svg",e,React.createElement("path",{d:"M6.786 9.357V6.313c0-.45.36-.813.806-.813h3.102a.81.81 0 0 1 .806.813v3.044m-5.786 9.429v.87c0 .466.35.844.781.844h5.295c.431 0 .781-.377.781-.843v-.871m-8.571-6h10.286m-2.61-3.429H6.61A2.603 2.603 0 0 0 4 11.952v4.239a2.603 2.603 0 0 0 2.61 2.595h5.066a2.603 2.603 0 0 0 2.61-2.595v-4.239a2.603 2.603 0 0 0-2.61-2.595Z",strokeWidth:"1.5",strokeMiterlimit:"10"}),React.createElement("path",{d:"M15 6h6m-3-3v6",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}))};EnergyIconBottledGasPlus.defaultProps={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",xmlns:"http://www.w3.org/2000/svg"};var EnergyIconCar=function(e){return React.createElement("svg",e,React.createElement("path",{d:"M0 0h24v24H0z",stroke:"none"}),React.createElement("path",{d:"M5 17H3v-6l2-5h9l4 5h1a2 2 0 0 1 2 2v4h-2m-4 0H9m-6-6h15m-6 0V6"}),React.createElement("path",{d:"M5 17a2 2 0 1 0 4 0 2 2 0 1 0-4 0M15 17a2 2 0 1 0 4 0 2 2 0 1 0-4 0"}))};EnergyIconCar.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",className:"icon icon-tabler icons-tabler-outline icon-tabler-car"};var EnergyIconCarbonFootprint=function(e){return React.createElement("svg",e,React.createElement("path",{d:"M21.72 15.19c-.8 3.17-5.19 5.09-8.65 4.87-.66-.67-2.9-3.34-2.06-6.78.98-4.02 7-5.57 9.92-7.42.62-.39 1.8 5.35.79 9.33Z"}),React.createElement("path",{d:"M18.52 11.16c-3.57 1.15-5.98 5.03-5.45 8.9M8.41 19.32c-2.05-.82-3.78-2.26-4.25-4.13-1.01-3.98.17-9.72.79-9.33M4.95 5.86c1.34.85 3.32 1.63 5.18 2.62"}))};EnergyIconCarbonFootprint.defaultProps={width:"26",height:"26",viewBox:"0 0 26 26",fill:"none",xmlns:"http://www.w3.org/2000/svg",strokeWidth:"2"};var EnergyIconCart=function(e){return React.createElement("svg",e,React.createElement("path",{d:"M4 19a2 2 0 1 0 4 0 2 2 0 0 0-4 0ZM15 19a2 2 0 1 0 4 0 2 2 0 0 0-4 0ZM6 5l14 1-1 7H6",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),React.createElement("path",{d:"M4 3h2v14h11",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}))};EnergyIconCart.defaultProps={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",xmlns:"http://www.w3.org/2000/svg"};var EnergyIconChatSparkFilled=function(e){return React.createElement("svg",e,React.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.833 5c-.487 0-.954.193-1.297.535A1.819 1.819 0 0 0 4 6.824v7.529c0 .482.192.946.536 1.288.343.342.81.536 1.297.536h2.834a1 1 0 0 1 .706.291l2.833 2.824a1 1 0 1 1-1.412 1.416l-2.54-2.531h-2.42a3.838 3.838 0 0 1-2.71-1.12A3.819 3.819 0 0 1 2 14.354v-7.53c0-1.015.405-1.988 1.124-2.704A3.838 3.838 0 0 1 5.834 3h11.333c1.015 0 1.99.402 2.709 1.119A3.818 3.818 0 0 1 21 6.824v4.235a1 1 0 1 1-2 0V6.824c0-.483-.192-.946-.536-1.289A1.839 1.839 0 0 0 17.167 5H5.833Zm.89 3.706a1 1 0 0 1 1-1h7.555a1 1 0 1 1 0 2H7.722a1 1 0 0 1-1-1Zm0 3.765a1 1 0 0 1 1-1h4.721a1 1 0 1 1 0 2H7.722a1 1 0 0 1-1-1Zm10.62 1.196a1 1 0 0 1 .973.765c.113.469.352.897.691 1.237.339.34.764.58 1.229.693a1 1 0 0 1 0 1.943c-.465.113-.89.352-1.229.693-.339.34-.578.768-.691 1.236a1 1 0 0 1-1.944 0 2.622 2.622 0 0 0-.691-1.236 2.602 2.602 0 0 0-1.23-.693 1 1 0 0 1 0-1.943c.465-.113.89-.353 1.23-.693.338-.34.578-.768.69-1.237a1 1 0 0 1 .973-.765Zm0 3.146a4.608 4.608 0 0 1-.519.52 4.586 4.586 0 0 1 .52.52 4.603 4.603 0 0 1 .52-.52 4.553 4.553 0 0 1-.52-.52Z"}))};EnergyIconChatSparkFilled.defaultProps={width:"24",height:"24",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"};var EnergyIconConsumption=function(e){return React.createElement("svg",e,React.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18.645.828a.75.75 0 0 0-.72.54l-7.848 26.906a.75.75 0 0 0 .72.96h10.361L19.021 46.33a.75.75 0 0 0 1.369.509l17.937-26.906a.75.75 0 0 0-.624-1.166H27.574L33.922 1.84a.75.75 0 0 0-.702-1.013H18.645Z"}))};EnergyIconConsumption.defaultProps={width:"49",height:"48",viewBox:"0 0 49 48",stroke:"currentColor",xmlns:"http://www.w3.org/2000/svg"};var EnergyIconConsumptionBoxFilled=function(e){return React.createElement("svg",e,React.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M25 20.833A4.167 4.167 0 0 0 20.833 25v50A4.167 4.167 0 0 0 25 79.167h50A4.167 4.167 0 0 0 79.167 75V25A4.167 4.167 0 0 0 75 20.833H25ZM12.5 25c0-6.904 5.596-12.5 12.5-12.5h50c6.904 0 12.5 5.596 12.5 12.5v50c0 6.904-5.596 12.5-12.5 12.5H25c-6.904 0-12.5-5.596-12.5-12.5V25Z"}),React.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M50.183 33.458c1.635.455 2.554 2.03 2.053 3.516l-3.286 9.747h6.287c1.017 0 1.97.454 2.548 1.215a2.6 2.6 0 0 1 .348 2.597L52.17 64.848c-.606 1.454-2.393 2.186-3.992 1.636-1.6-.551-2.405-2.176-1.8-3.63l4.375-10.503h-5.991c-.982 0-1.906-.424-2.49-1.142-.584-.717-.758-1.645-.47-2.498l4.512-13.387c.501-1.486 2.233-2.322 3.868-1.866Z"}))};EnergyIconConsumptionBoxFilled.defaultProps={width:"100",height:"100",viewBox:"0 0 100 100",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"};var EnergyIconConsumptionBoxPlusFilled=function(e){return React.createElement("svg",e,React.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.207 20a1 1 0 0 1-1 1H6a3 3 0 0 1-3-3V6a3 3 0 0 1 3-3h12a3 3 0 0 1 3 3v5.986a1 1 0 0 1-2 0V6a1 1 0 0 0-1-1H6a1 1 0 0 0-1 1v12a1 1 0 0 0 1 1h6.207a1 1 0 0 1 1 1Z"}),React.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.549 7.702a.78.78 0 0 1 .349 1.047l-.836 1.67h.838a.78.78 0 0 1 .698 1.13l-1.4 2.8a.78.78 0 0 1-1.396-.698l.836-1.671H10.8a.78.78 0 0 1-.698-1.13l1.4-2.8a.78.78 0 0 1 1.047-.348Z"}),React.createElement("path",{d:"M17.098 13.5c.483 0 .875.392.875.875v1.75h1.75a.875.875 0 1 1 0 1.75h-1.75v1.75a.875.875 0 0 1-1.75 0v-1.75h-1.75a.875.875 0 1 1 0-1.75h1.75v-1.75c0-.483.391-.875.875-.875Z"}))};EnergyIconConsumptionBoxPlusFilled.defaultProps={width:"24",height:"24",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"};var EnergyIconConsumptionBoxRightFilled=function(e){return React.createElement("svg",e,React.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.207 20a1 1 0 0 1-1 1H6a3 3 0 0 1-3-3V6a3 3 0 0 1 3-3h12a3 3 0 0 1 3 3v5.986a1 1 0 0 1-2 0V6a1 1 0 0 0-1-1H6a1 1 0 0 0-1 1v12a1 1 0 0 0 1 1h6.207a1 1 0 0 1 1 1Z"}),React.createElement("path",{d:"M17.9 14.2a.78.78 0 1 0-1 1.2l.745.62H15a.78.78 0 1 0 0 1.56h2.647l-.746.62a.78.78 0 1 0 .998 1.2l2.4-2a.78.78 0 0 0 0-1.2l-2.4-2Z"}),React.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.549 7.702a.78.78 0 0 1 .349 1.047l-.836 1.67h.838a.78.78 0 0 1 .698 1.13l-1.4 2.8a.78.78 0 0 1-1.396-.698l.836-1.671H10.8a.78.78 0 0 1-.698-1.13l1.4-2.8a.78.78 0 0 1 1.047-.348Z"}))};EnergyIconConsumptionBoxRightFilled.defaultProps={width:"24",height:"24",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"};var EnergyIconConsumptionBoxMinusFilled=function(e){return React.createElement("svg",e,React.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.207 20a1 1 0 0 1-1 1H6a3 3 0 0 1-3-3V6a3 3 0 0 1 3-3h12a3 3 0 0 1 3 3v5.986a1 1 0 0 1-2 0V6a1 1 0 0 0-1-1H6a1 1 0 0 0-1 1v12a1 1 0 0 0 1 1h6.207a1 1 0 0 1 1 1Z"}),React.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.549 7.702a.78.78 0 0 1 .349 1.047l-.836 1.67h.838a.78.78 0 0 1 .698 1.13l-1.4 2.8a.78.78 0 0 1-1.396-.698l.836-1.671H10.8a.78.78 0 0 1-.698-1.13l1.4-2.8a.78.78 0 0 1 1.047-.348Z"}),React.createElement("path",{d:"M15.086 14.697a1 1 0 0 1 1.414 0l1.293 1.293 1.293-1.293a1 1 0 0 1 1.414 1.415l-1.293 1.293 1.293 1.292a1 1 0 0 1-1.414 1.415l-1.293-1.293-1.293 1.293a1 1 0 0 1-1.414-1.415l1.293-1.293-1.293-1.292a1 1 0 0 1 0-1.415Z"}))};EnergyIconConsumptionBoxMinusFilled.defaultProps={width:"24",height:"24",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"};var EnergyIconEdit=function(e){return React.createElement("svg",e,React.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"m16.019 10.679-2.695-2.695 1.948-1.95 2.694 2.695-1.947 1.95Zm-6.94 6.946-2.976.27.264-2.955 5.617-5.617 2.696 2.696-5.6 5.606ZM19.405 7.338l-.001-.001-2.738-2.738c-.741-.74-2.014-.774-2.716-.07l-8.996 8.997a1.973 1.973 0 0 0-.57 1.214l-.38 4.17a1.002 1.002 0 0 0 1.088 1.086l4.17-.38a1.974 1.974 0 0 0 1.214-.567l8.997-8.997c.728-.73.697-1.948-.068-2.714Z"}))};EnergyIconEdit.defaultProps={width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"};var EnergyIconHome=function(e){return React.createElement("svg",e,React.createElement("path",{d:"m9.02 2.84-5.39 4.2C2.73 7.74 2 9.23 2 10.36v7.41c0 2.32 1.89 4.22 4.21 4.22h11.58c2.32 0 4.21-1.9 4.21-4.21V10.5c0-1.21-.81-2.76-1.8-3.45l-6.18-4.33c-1.4-.98-3.65-.93-5 .12Z",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),React.createElement("path",{d:"M12 17.99v-3 3Z"}),React.createElement("path",{d:"M12 17.99v-3",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}))};EnergyIconHome.defaultProps={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",xmlns:"http://www.w3.org/2000/svg"};var EnergyIconMessageEdit=function(e){return React.createElement("svg",e,React.createElement("path",{d:"M8 9h8M8 13h6M13 20l-1 1-3-3H6a3 3 0 0 1-3-3V7a3 3 0 0 1 3-3h12a3 3 0 0 1 3 3v5.5M18.93 15.522a1.797 1.797 0 0 1 2.933.583 1.8 1.8 0 0 1-.39 1.96l-2.903 2.93H16v-2.57l2.93-2.903Z"}))};EnergyIconMessageEdit.defaultProps={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};var EnergyIconQuestionFilled=function(e){return React.createElement("svg",e,React.createElement("path",{fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd",d:"M10 2.287a8 8 0 1 0 0 16 8 8 0 0 0 0-16Zm-10 8c0-5.523 4.477-10 10-10s10 4.477 10 10-4.477 10-10 10-10-4.477-10-10Zm8.475-5.655a3.6 3.6 0 1 1 2.857 6.598.5.5 0 0 0-.334.5 1 1 0 0 1-1.996.114 2.5 2.5 0 0 1 1.65-2.495 1.6 1.6 0 1 0-1.855-2.458 1 1 0 0 1-1.594-1.208 3.6 3.6 0 0 1 1.272-1.051ZM10 14.287a1 1 0 0 1 1 1v.01a1 1 0 1 1-2 0v-.01a1 1 0 0 1 1-1Z"}))};EnergyIconQuestionFilled.defaultProps={width:"20",height:"21",viewBox:"0 0 20 21",fill:"none",xmlns:"http://www.w3.org/2000/svg"};var EnergyIconSendFilled=function(e){return React.createElement("svg",e,React.createElement("path",{d:"M20.816 10.742 3.93 2.504a1.086 1.086 0 0 0-.524-.106 1.11 1.11 0 0 0-.508.16c-.152.098-.277.231-.367.387-.086.16-.133.336-.133.52v.027c0 .145.02.285.055.426l1.617 6.48c.024.086.07.165.137.223.07.055.152.094.242.102l7.117.793c.118.015.227.07.309.16a.49.49 0 0 1-.309.808l-7.117.793a.438.438 0 0 0-.379.325l-1.617 6.48a1.712 1.712 0 0 0-.055.422v.031c0 .18.047.36.137.516.086.16.211.293.363.387.157.097.329.152.508.16.184.011.364-.028.524-.106l16.886-8.238c.235-.113.434-.293.57-.516a1.378 1.378 0 0 0 0-1.48 1.426 1.426 0 0 0-.57-.516Zm0 0",fill:"currentColor"}))};EnergyIconSendFilled.defaultProps={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};var EnergyIconTruck=function(e){return React.createElement("svg",e,React.createElement("path",{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",strokeWidth:"4",strokeLinecap:"round",strokeLinejoin:"round"}),React.createElement("path",{d:"M13.333 45.333a5.333 5.333 0 1 0 10.667 0 5.333 5.333 0 0 0-10.667 0ZM40 45.333a5.333 5.333 0 1 0 10.667 0 5.333 5.333 0 0 0-10.667 0Z",strokeWidth:"4",strokeLinecap:"round",strokeLinejoin:"round"}),React.createElement("path",{d:"M13.333 45.333H8V34.667M5.333 13.333h29.334v32m-10.667 0h16m10.667 0H56v-16m0 0H34.667m21.333 0L48 16H34.667M8 24h10.667",strokeWidth:"4",strokeLinecap:"round",strokeLinejoin:"round"}))};EnergyIconTruck.defaultProps={width:"24",height:"24",viewBox:"0 0 64 64",fill:"none",stroke:"currentColor",xmlns:"http://www.w3.org/2000/svg"};var EnergyIconFlameFilled=function(e){return React.createElement("svg",e,React.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}),React.createElement("path",{d:"M10 2c0-.88 1.056-1.331 1.692-.722 1.958 1.876 3.096 5.995 1.75 9.12l-.08.174.012.003c.625.133 1.203-.43 2.303-2.173l.14-.224a1 1 0 0 1 1.582-.153C18.733 9.46 20 12.402 20 14.295 20 18.56 16.409 22 12 22s-8-3.44-8-7.706c0-2.252 1.022-4.716 2.632-6.301l.605-.589c.241-.236.434-.43.618-.624C9.285 5.268 10 3.856 10 2"}))};EnergyIconFlameFilled.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"currentColor",className:"icon icon-tabler icons-tabler-filled icon-tabler-flame"};var EnergyIconBoltFilled=function(e){return React.createElement("svg",e,React.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}),React.createElement("path",{d:"m13 2 .018.001.016.001.083.005.011.002h.011l.038.009.052.008.016.006.011.001.029.011.052.014.019.009.015.004.028.014.04.017.021.012.022.01.023.015.031.017.034.024.018.011.013.012.024.017.038.034.022.017.008.01.014.012.036.041.026.027.006.009c.12.147.196.322.218.513l.001.012.002.041L14 3v6h5a1 1 0 0 1 .868 1.497l-.06.091-8 11C11.24 22.371 10 21.968 10 21v-6H5a1 1 0 0 1-.868-1.497l.06-.091 8-11 .01-.013.018-.024.033-.038.018-.022.009-.008.013-.014.04-.036.028-.026.008-.006a1 1 0 0 1 .402-.199l.011-.001.027-.005.074-.013.011-.001.041-.002z"}))};EnergyIconBoltFilled.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"currentColor",className:"icon icon-tabler icons-tabler-filled icon-tabler-bolt"};var EnergyIconPresentationFilled=function(e){return React.createElement("svg",e,React.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}),React.createElement("path",{d:"M21 3a1 1 0 0 1 0 2v9a3 3 0 0 1-3 3h-5v2h2a1 1 0 0 1 0 2H9a1 1 0 0 1 0-2h2v-2H6a3 3 0 0 1-3-3V5a1 1 0 1 1 0-2zm-4.293 4.293a1 1 0 0 0-1.414 0L13 9.585l-1.293-1.292a1 1 0 0 0-1.414 0l-3 3a1 1 0 0 0 0 1.414l.094.083a1 1 0 0 0 1.32-.083L11 10.415l1.293 1.292a1 1 0 0 0 1.414 0l3-3a1 1 0 0 0 0-1.414"}))};EnergyIconPresentationFilled.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"currentColor",className:"icon icon-tabler icons-tabler-filled icon-tabler-presentation"};var EnergyIconCreditCardsFilled=function(e){return React.createElement("svg",e,React.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"m13.172 4.39.823 1.427.017.03h2.76a2.395 2.395 0 0 1 2.395 2.395v5.113a2.395 2.395 0 0 1-2.395 2.395H8.341l-1.242.717c-1.194.69-2.766.365-3.473-.86l-2.47-4.279c-.708-1.224-.202-2.748.991-3.437L9.7 3.531c1.194-.689 2.766-.365 3.473.86Zm-1.444.834.36.623H9.021l.534-.308.978-.565a.916.916 0 0 1 .901-.032.75.75 0 0 1 .294.282Zm-8.747 4.11L6.07 7.55c-.065.22-.1.452-.1.692v5.113c0 .578.204 1.11.546 1.523l-.252.146c-.475.274-.993.101-1.195-.25l-2.471-4.28c-.203-.35-.093-.885.382-1.16Zm5.384-1.82a.728.728 0 0 0-.728.728v.385H17.5v-.385a.728.728 0 0 0-.728-.728H8.365Zm9.135 2.78H7.637v3.06c0 .403.326.729.728.729h8.407a.728.728 0 0 0 .728-.728v-3.061Z"}))};EnergyIconCreditCardsFilled.defaultProps={width:"20",height:"20",fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"};export const FILLED_ICON_COLOR="transparent";export const DEFAULT_INTERNAL_SHADE=COLOR_SHADES.shade02;export const DEFAULT_COLOR_THEME=COLOR_THEMES.dark;export const DEFAULT_VARIANT="default";export const FILLED_ICON_SUFIX="Filled";export const ENERGY_ICON_PREFIX="Energy";export const DEFAULT_ICON_SIZE=24;export const AREA_BORDER_WIDTH="1px";export const ENERGY_ICONS={EnergyIconBottledGas:EnergyIconBottledGas,EnergyIconBottledGasPlus:EnergyIconBottledGasPlus,EnergyIconCar:EnergyIconCar,EnergyIconCarbonFootprint:EnergyIconCarbonFootprint,EnergyIconCart:EnergyIconCart,EnergyIconChatSparkFilled:EnergyIconChatSparkFilled,EnergyIconConsumption:EnergyIconConsumption,EnergyIconConsumptionBoxFilled:EnergyIconConsumptionBoxFilled,EnergyIconEdit:EnergyIconEdit,EnergyIconHome:EnergyIconHome,EnergyIconMessageEdit:EnergyIconMessageEdit,EnergyIconQuestionFilled:EnergyIconQuestionFilled,EnergyIconSendFilled:EnergyIconSendFilled,EnergyIconTruck:EnergyIconTruck,EnergyIconConsumptionBoxPlusFilled:EnergyIconConsumptionBoxPlusFilled,EnergyIconConsumptionBoxRightFilled:EnergyIconConsumptionBoxRightFilled,EnergyIconConsumptionBoxMinusFilled:EnergyIconConsumptionBoxMinusFilled,EnergyIconFlameFilled:EnergyIconFlameFilled,EnergyIconBoltFilled:EnergyIconBoltFilled,EnergyIconPresentationFilled:EnergyIconPresentationFilled,EnergyIconCreditCardsFilled:EnergyIconCreditCardsFilled};
1
+ import React from"react";import{COLOR_SHADES,COLOR_THEMES}from"../../constants/Palette";var EnergyIconBottledGas=function(e){return React.createElement("svg",e,React.createElement("path",{d:"M14.955 8h-5.91A3.036 3.036 0 0 0 6 11.027v4.946A3.036 3.036 0 0 0 9.045 19h5.91A3.036 3.036 0 0 0 18 15.973v-4.946A3.036 3.036 0 0 0 14.955 8Z",strokeMiterlimit:"10"}),React.createElement("path",{d:"M9.25 8V4.448c0-.524.42-.948.94-.948h3.62c.52 0 .94.424.94.948V8M8 19v1.016c0 .543.408.984.911.984h6.178c.503 0 .911-.44.911-.984V19M6 12h12",strokeMiterlimit:"10"}))};EnergyIconBottledGas.defaultProps={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",xmlns:"http://www.w3.org/2000/svg"};var EnergyIconBottledGasPlus=function(e){return React.createElement("svg",e,React.createElement("path",{d:"M6.786 9.357V6.313c0-.45.36-.813.806-.813h3.102a.81.81 0 0 1 .806.813v3.044m-5.786 9.429v.87c0 .466.35.844.781.844h5.295c.431 0 .781-.377.781-.843v-.871m-8.571-6h10.286m-2.61-3.429H6.61A2.603 2.603 0 0 0 4 11.952v4.239a2.603 2.603 0 0 0 2.61 2.595h5.066a2.603 2.603 0 0 0 2.61-2.595v-4.239a2.603 2.603 0 0 0-2.61-2.595Z",strokeWidth:"1.5",strokeMiterlimit:"10"}),React.createElement("path",{d:"M15 6h6m-3-3v6",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}))};EnergyIconBottledGasPlus.defaultProps={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",xmlns:"http://www.w3.org/2000/svg"};var EnergyIconCar=function(e){return React.createElement("svg",e,React.createElement("path",{d:"M0 0h24v24H0z",stroke:"none"}),React.createElement("path",{d:"M5 17H3v-6l2-5h9l4 5h1a2 2 0 0 1 2 2v4h-2m-4 0H9m-6-6h15m-6 0V6"}),React.createElement("path",{d:"M5 17a2 2 0 1 0 4 0 2 2 0 1 0-4 0M15 17a2 2 0 1 0 4 0 2 2 0 1 0-4 0"}))};EnergyIconCar.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",className:"icon icon-tabler icons-tabler-outline icon-tabler-car"};var EnergyIconCarbonFootprint=function(e){return React.createElement("svg",e,React.createElement("path",{d:"M21.72 15.19c-.8 3.17-5.19 5.09-8.65 4.87-.66-.67-2.9-3.34-2.06-6.78.98-4.02 7-5.57 9.92-7.42.62-.39 1.8 5.35.79 9.33Z"}),React.createElement("path",{d:"M18.52 11.16c-3.57 1.15-5.98 5.03-5.45 8.9M8.41 19.32c-2.05-.82-3.78-2.26-4.25-4.13-1.01-3.98.17-9.72.79-9.33M4.95 5.86c1.34.85 3.32 1.63 5.18 2.62"}))};EnergyIconCarbonFootprint.defaultProps={width:"26",height:"26",viewBox:"0 0 26 26",fill:"none",xmlns:"http://www.w3.org/2000/svg",strokeWidth:"2"};var EnergyIconCart=function(e){return React.createElement("svg",e,React.createElement("path",{d:"M4 19a2 2 0 1 0 4 0 2 2 0 0 0-4 0ZM15 19a2 2 0 1 0 4 0 2 2 0 0 0-4 0ZM6 5l14 1-1 7H6",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),React.createElement("path",{d:"M4 3h2v14h11",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}))};EnergyIconCart.defaultProps={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",xmlns:"http://www.w3.org/2000/svg"};var EnergyIconChatSparkFilled=function(e){return React.createElement("svg",e,React.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.833 5c-.487 0-.954.193-1.297.535A1.819 1.819 0 0 0 4 6.824v7.529c0 .482.192.946.536 1.288.343.342.81.536 1.297.536h2.834a1 1 0 0 1 .706.291l2.833 2.824a1 1 0 1 1-1.412 1.416l-2.54-2.531h-2.42a3.838 3.838 0 0 1-2.71-1.12A3.819 3.819 0 0 1 2 14.354v-7.53c0-1.015.405-1.988 1.124-2.704A3.838 3.838 0 0 1 5.834 3h11.333c1.015 0 1.99.402 2.709 1.119A3.818 3.818 0 0 1 21 6.824v4.235a1 1 0 1 1-2 0V6.824c0-.483-.192-.946-.536-1.289A1.839 1.839 0 0 0 17.167 5H5.833Zm.89 3.706a1 1 0 0 1 1-1h7.555a1 1 0 1 1 0 2H7.722a1 1 0 0 1-1-1Zm0 3.765a1 1 0 0 1 1-1h4.721a1 1 0 1 1 0 2H7.722a1 1 0 0 1-1-1Zm10.62 1.196a1 1 0 0 1 .973.765c.113.469.352.897.691 1.237.339.34.764.58 1.229.693a1 1 0 0 1 0 1.943c-.465.113-.89.352-1.229.693-.339.34-.578.768-.691 1.236a1 1 0 0 1-1.944 0 2.622 2.622 0 0 0-.691-1.236 2.602 2.602 0 0 0-1.23-.693 1 1 0 0 1 0-1.943c.465-.113.89-.353 1.23-.693.338-.34.578-.768.69-1.237a1 1 0 0 1 .973-.765Zm0 3.146a4.608 4.608 0 0 1-.519.52 4.586 4.586 0 0 1 .52.52 4.603 4.603 0 0 1 .52-.52 4.553 4.553 0 0 1-.52-.52Z"}))};EnergyIconChatSparkFilled.defaultProps={width:"24",height:"24",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"};var EnergyIconConsumption=function(e){return React.createElement("svg",e,React.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18.645.828a.75.75 0 0 0-.72.54l-7.848 26.906a.75.75 0 0 0 .72.96h10.361L19.021 46.33a.75.75 0 0 0 1.369.509l17.937-26.906a.75.75 0 0 0-.624-1.166H27.574L33.922 1.84a.75.75 0 0 0-.702-1.013H18.645Z"}))};EnergyIconConsumption.defaultProps={width:"49",height:"48",viewBox:"0 0 49 48",stroke:"currentColor",xmlns:"http://www.w3.org/2000/svg"};var EnergyIconConsumptionBoxFilled=function(e){return React.createElement("svg",e,React.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M25 20.833A4.167 4.167 0 0 0 20.833 25v50A4.167 4.167 0 0 0 25 79.167h50A4.167 4.167 0 0 0 79.167 75V25A4.167 4.167 0 0 0 75 20.833H25ZM12.5 25c0-6.904 5.596-12.5 12.5-12.5h50c6.904 0 12.5 5.596 12.5 12.5v50c0 6.904-5.596 12.5-12.5 12.5H25c-6.904 0-12.5-5.596-12.5-12.5V25Z"}),React.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M50.183 33.458c1.635.455 2.554 2.03 2.053 3.516l-3.286 9.747h6.287c1.017 0 1.97.454 2.548 1.215a2.6 2.6 0 0 1 .348 2.597L52.17 64.848c-.606 1.454-2.393 2.186-3.992 1.636-1.6-.551-2.405-2.176-1.8-3.63l4.375-10.503h-5.991c-.982 0-1.906-.424-2.49-1.142-.584-.717-.758-1.645-.47-2.498l4.512-13.387c.501-1.486 2.233-2.322 3.868-1.866Z"}))};EnergyIconConsumptionBoxFilled.defaultProps={width:"100",height:"100",viewBox:"0 0 100 100",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"};var EnergyIconConsumptionBoxPlusFilled=function(e){return React.createElement("svg",e,React.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.207 20a1 1 0 0 1-1 1H6a3 3 0 0 1-3-3V6a3 3 0 0 1 3-3h12a3 3 0 0 1 3 3v5.986a1 1 0 0 1-2 0V6a1 1 0 0 0-1-1H6a1 1 0 0 0-1 1v12a1 1 0 0 0 1 1h6.207a1 1 0 0 1 1 1Z"}),React.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.549 7.702a.78.78 0 0 1 .349 1.047l-.836 1.67h.838a.78.78 0 0 1 .698 1.13l-1.4 2.8a.78.78 0 0 1-1.396-.698l.836-1.671H10.8a.78.78 0 0 1-.698-1.13l1.4-2.8a.78.78 0 0 1 1.047-.348Z"}),React.createElement("path",{d:"M17.098 13.5c.483 0 .875.392.875.875v1.75h1.75a.875.875 0 1 1 0 1.75h-1.75v1.75a.875.875 0 0 1-1.75 0v-1.75h-1.75a.875.875 0 1 1 0-1.75h1.75v-1.75c0-.483.391-.875.875-.875Z"}))};EnergyIconConsumptionBoxPlusFilled.defaultProps={width:"24",height:"24",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"};var EnergyIconConsumptionBoxRightFilled=function(e){return React.createElement("svg",e,React.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.207 20a1 1 0 0 1-1 1H6a3 3 0 0 1-3-3V6a3 3 0 0 1 3-3h12a3 3 0 0 1 3 3v5.986a1 1 0 0 1-2 0V6a1 1 0 0 0-1-1H6a1 1 0 0 0-1 1v12a1 1 0 0 0 1 1h6.207a1 1 0 0 1 1 1Z"}),React.createElement("path",{d:"M17.9 14.2a.78.78 0 1 0-1 1.2l.745.62H15a.78.78 0 1 0 0 1.56h2.647l-.746.62a.78.78 0 1 0 .998 1.2l2.4-2a.78.78 0 0 0 0-1.2l-2.4-2Z"}),React.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.549 7.702a.78.78 0 0 1 .349 1.047l-.836 1.67h.838a.78.78 0 0 1 .698 1.13l-1.4 2.8a.78.78 0 0 1-1.396-.698l.836-1.671H10.8a.78.78 0 0 1-.698-1.13l1.4-2.8a.78.78 0 0 1 1.047-.348Z"}))};EnergyIconConsumptionBoxRightFilled.defaultProps={width:"24",height:"24",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"};var EnergyIconConsumptionBoxMinusFilled=function(e){return React.createElement("svg",e,React.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.207 20a1 1 0 0 1-1 1H6a3 3 0 0 1-3-3V6a3 3 0 0 1 3-3h12a3 3 0 0 1 3 3v5.986a1 1 0 0 1-2 0V6a1 1 0 0 0-1-1H6a1 1 0 0 0-1 1v12a1 1 0 0 0 1 1h6.207a1 1 0 0 1 1 1Z"}),React.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.549 7.702a.78.78 0 0 1 .349 1.047l-.836 1.67h.838a.78.78 0 0 1 .698 1.13l-1.4 2.8a.78.78 0 0 1-1.396-.698l.836-1.671H10.8a.78.78 0 0 1-.698-1.13l1.4-2.8a.78.78 0 0 1 1.047-.348Z"}),React.createElement("path",{d:"M15.086 14.697a1 1 0 0 1 1.414 0l1.293 1.293 1.293-1.293a1 1 0 0 1 1.414 1.415l-1.293 1.293 1.293 1.292a1 1 0 0 1-1.414 1.415l-1.293-1.293-1.293 1.293a1 1 0 0 1-1.414-1.415l1.293-1.293-1.293-1.292a1 1 0 0 1 0-1.415Z"}))};EnergyIconConsumptionBoxMinusFilled.defaultProps={width:"24",height:"24",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"};var EnergyIconEdit=function(e){return React.createElement("svg",e,React.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"m16.019 10.679-2.695-2.695 1.948-1.95 2.694 2.695-1.947 1.95Zm-6.94 6.946-2.976.27.264-2.955 5.617-5.617 2.696 2.696-5.6 5.606ZM19.405 7.338l-.001-.001-2.738-2.738c-.741-.74-2.014-.774-2.716-.07l-8.996 8.997a1.973 1.973 0 0 0-.57 1.214l-.38 4.17a1.002 1.002 0 0 0 1.088 1.086l4.17-.38a1.974 1.974 0 0 0 1.214-.567l8.997-8.997c.728-.73.697-1.948-.068-2.714Z"}))};EnergyIconEdit.defaultProps={width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"};var EnergyIconHome=function(e){return React.createElement("svg",e,React.createElement("path",{d:"m9.02 2.84-5.39 4.2C2.73 7.74 2 9.23 2 10.36v7.41c0 2.32 1.89 4.22 4.21 4.22h11.58c2.32 0 4.21-1.9 4.21-4.21V10.5c0-1.21-.81-2.76-1.8-3.45l-6.18-4.33c-1.4-.98-3.65-.93-5 .12Z",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),React.createElement("path",{d:"M12 17.99v-3 3Z"}),React.createElement("path",{d:"M12 17.99v-3",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}))};EnergyIconHome.defaultProps={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",xmlns:"http://www.w3.org/2000/svg"};var EnergyIconMessageEdit=function(e){return React.createElement("svg",e,React.createElement("path",{d:"M8 9h8M8 13h6M13 20l-1 1-3-3H6a3 3 0 0 1-3-3V7a3 3 0 0 1 3-3h12a3 3 0 0 1 3 3v5.5M18.93 15.522a1.797 1.797 0 0 1 2.933.583 1.8 1.8 0 0 1-.39 1.96l-2.903 2.93H16v-2.57l2.93-2.903Z"}))};EnergyIconMessageEdit.defaultProps={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};var EnergyIconQuestionFilled=function(e){return React.createElement("svg",e,React.createElement("path",{fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd",d:"M10 2.287a8 8 0 1 0 0 16 8 8 0 0 0 0-16Zm-10 8c0-5.523 4.477-10 10-10s10 4.477 10 10-4.477 10-10 10-10-4.477-10-10Zm8.475-5.655a3.6 3.6 0 1 1 2.857 6.598.5.5 0 0 0-.334.5 1 1 0 0 1-1.996.114 2.5 2.5 0 0 1 1.65-2.495 1.6 1.6 0 1 0-1.855-2.458 1 1 0 0 1-1.594-1.208 3.6 3.6 0 0 1 1.272-1.051ZM10 14.287a1 1 0 0 1 1 1v.01a1 1 0 1 1-2 0v-.01a1 1 0 0 1 1-1Z"}))};EnergyIconQuestionFilled.defaultProps={width:"20",height:"21",viewBox:"0 0 20 21",fill:"none",xmlns:"http://www.w3.org/2000/svg"};var EnergyIconSendFilled=function(e){return React.createElement("svg",e,React.createElement("path",{d:"M20.816 10.742 3.93 2.504a1.086 1.086 0 0 0-.524-.106 1.11 1.11 0 0 0-.508.16c-.152.098-.277.231-.367.387-.086.16-.133.336-.133.52v.027c0 .145.02.285.055.426l1.617 6.48c.024.086.07.165.137.223.07.055.152.094.242.102l7.117.793c.118.015.227.07.309.16a.49.49 0 0 1-.309.808l-7.117.793a.438.438 0 0 0-.379.325l-1.617 6.48a1.712 1.712 0 0 0-.055.422v.031c0 .18.047.36.137.516.086.16.211.293.363.387.157.097.329.152.508.16.184.011.364-.028.524-.106l16.886-8.238c.235-.113.434-.293.57-.516a1.378 1.378 0 0 0 0-1.48 1.426 1.426 0 0 0-.57-.516Zm0 0",fill:"currentColor"}))};EnergyIconSendFilled.defaultProps={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};var EnergyIconTruck=function(e){return React.createElement("svg",e,React.createElement("path",{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",strokeWidth:"4",strokeLinecap:"round",strokeLinejoin:"round"}),React.createElement("path",{d:"M13.333 45.333a5.333 5.333 0 1 0 10.667 0 5.333 5.333 0 0 0-10.667 0ZM40 45.333a5.333 5.333 0 1 0 10.667 0 5.333 5.333 0 0 0-10.667 0Z",strokeWidth:"4",strokeLinecap:"round",strokeLinejoin:"round"}),React.createElement("path",{d:"M13.333 45.333H8V34.667M5.333 13.333h29.334v32m-10.667 0h16m10.667 0H56v-16m0 0H34.667m21.333 0L48 16H34.667M8 24h10.667",strokeWidth:"4",strokeLinecap:"round",strokeLinejoin:"round"}))};EnergyIconTruck.defaultProps={width:"24",height:"24",viewBox:"0 0 64 64",fill:"none",stroke:"currentColor",xmlns:"http://www.w3.org/2000/svg"};var EnergyIconFileTextSparkFilled=function(e){return React.createElement("svg",e,React.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.923 2.953a.973.973 0 0 0-.974.977v13.675a.978.978 0 0 0 .974.976h4.872c.538 0 .974.438.974.977 0 .54-.436.977-.974.977H5.923a2.92 2.92 0 0 1-2.067-.858A2.934 2.934 0 0 1 3 17.605V3.93c0-.777.308-1.522.856-2.072A2.92 2.92 0 0 1 5.923 1h6.82c.259 0 .507.103.69.286l4.871 4.884a.978.978 0 0 1 .286.69v3.42a.976.976 0 1 1-1.949 0V7.836h-2.923a1.946 1.946 0 0 1-1.378-.572 1.956 1.956 0 0 1-.57-1.381v-2.93H5.922Zm7.795 1.382 1.545 1.549h-1.545v-1.55Zm-6.82 3.502c0-.54.436-.977.974-.977h.974c.538 0 .975.438.975.977 0 .54-.437.977-.975.977h-.974a.976.976 0 0 1-.975-.977Zm0 3.907c0-.54.436-.977.974-.977h5.846c.538 0 .974.438.974.977 0 .54-.436.977-.974.977H7.872a.976.976 0 0 1-.975-.977Zm10.717 1.465c.45 0 .842.31.947.747a3.666 3.666 0 0 0 2.693 2.7.976.976 0 0 1 0 1.898 3.652 3.652 0 0 0-2.693 2.699.975.975 0 0 1-1.894 0 3.665 3.665 0 0 0-2.692-2.699.976.976 0 0 1 0-1.899 3.652 3.652 0 0 0 2.692-2.699.975.975 0 0 1 .947-.747Zm0 3.234a5.602 5.602 0 0 1-1.159 1.162 5.596 5.596 0 0 1 1.16 1.161 5.612 5.612 0 0 1 1.158-1.161 5.617 5.617 0 0 1-1.159-1.162ZM6.897 15.65c0-.54.437-.977.975-.977h2.923c.538 0 .974.438.974.977 0 .54-.436.977-.974.977H7.872a.976.976 0 0 1-.975-.977Z"}))};EnergyIconFileTextSparkFilled.defaultProps={width:"24",height:"24",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"};var EnergyIconFlameFilled=function(e){return React.createElement("svg",e,React.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}),React.createElement("path",{d:"M10 2c0-.88 1.056-1.331 1.692-.722 1.958 1.876 3.096 5.995 1.75 9.12l-.08.174.012.003c.625.133 1.203-.43 2.303-2.173l.14-.224a1 1 0 0 1 1.582-.153C18.733 9.46 20 12.402 20 14.295 20 18.56 16.409 22 12 22s-8-3.44-8-7.706c0-2.252 1.022-4.716 2.632-6.301l.605-.589c.241-.236.434-.43.618-.624C9.285 5.268 10 3.856 10 2"}))};EnergyIconFlameFilled.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"currentColor",className:"icon icon-tabler icons-tabler-filled icon-tabler-flame"};var EnergyIconBoltFilled=function(e){return React.createElement("svg",e,React.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}),React.createElement("path",{d:"m13 2 .018.001.016.001.083.005.011.002h.011l.038.009.052.008.016.006.011.001.029.011.052.014.019.009.015.004.028.014.04.017.021.012.022.01.023.015.031.017.034.024.018.011.013.012.024.017.038.034.022.017.008.01.014.012.036.041.026.027.006.009c.12.147.196.322.218.513l.001.012.002.041L14 3v6h5a1 1 0 0 1 .868 1.497l-.06.091-8 11C11.24 22.371 10 21.968 10 21v-6H5a1 1 0 0 1-.868-1.497l.06-.091 8-11 .01-.013.018-.024.033-.038.018-.022.009-.008.013-.014.04-.036.028-.026.008-.006a1 1 0 0 1 .402-.199l.011-.001.027-.005.074-.013.011-.001.041-.002z"}))};EnergyIconBoltFilled.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"currentColor",className:"icon icon-tabler icons-tabler-filled icon-tabler-bolt"};var EnergyIconPresentationFilled=function(e){return React.createElement("svg",e,React.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}),React.createElement("path",{d:"M21 3a1 1 0 0 1 0 2v9a3 3 0 0 1-3 3h-5v2h2a1 1 0 0 1 0 2H9a1 1 0 0 1 0-2h2v-2H6a3 3 0 0 1-3-3V5a1 1 0 1 1 0-2zm-4.293 4.293a1 1 0 0 0-1.414 0L13 9.585l-1.293-1.292a1 1 0 0 0-1.414 0l-3 3a1 1 0 0 0 0 1.414l.094.083a1 1 0 0 0 1.32-.083L11 10.415l1.293 1.292a1 1 0 0 0 1.414 0l3-3a1 1 0 0 0 0-1.414"}))};EnergyIconPresentationFilled.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"currentColor",className:"icon icon-tabler icons-tabler-filled icon-tabler-presentation"};var EnergyIconCreditCardsFilled=function(e){return React.createElement("svg",e,React.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"m13.172 4.39.823 1.427.017.03h2.76a2.395 2.395 0 0 1 2.395 2.395v5.113a2.395 2.395 0 0 1-2.395 2.395H8.341l-1.242.717c-1.194.69-2.766.365-3.473-.86l-2.47-4.279c-.708-1.224-.202-2.748.991-3.437L9.7 3.531c1.194-.689 2.766-.365 3.473.86Zm-1.444.834.36.623H9.021l.534-.308.978-.565a.916.916 0 0 1 .901-.032.75.75 0 0 1 .294.282Zm-8.747 4.11L6.07 7.55c-.065.22-.1.452-.1.692v5.113c0 .578.204 1.11.546 1.523l-.252.146c-.475.274-.993.101-1.195-.25l-2.471-4.28c-.203-.35-.093-.885.382-1.16Zm5.384-1.82a.728.728 0 0 0-.728.728v.385H17.5v-.385a.728.728 0 0 0-.728-.728H8.365Zm9.135 2.78H7.637v3.06c0 .403.326.729.728.729h8.407a.728.728 0 0 0 .728-.728v-3.061Z"}))};EnergyIconCreditCardsFilled.defaultProps={width:"20",height:"20",fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"};export const FILLED_ICON_COLOR="transparent";export const DEFAULT_INTERNAL_SHADE=COLOR_SHADES.shade02;export const DEFAULT_COLOR_THEME=COLOR_THEMES.dark;export const DEFAULT_VARIANT="default";export const FILLED_ICON_SUFIX="Filled";export const ENERGY_ICON_PREFIX="Energy";export const DEFAULT_ICON_SIZE=24;export const AREA_BORDER_WIDTH="1px";export const ENERGY_ICONS={EnergyIconBottledGas:EnergyIconBottledGas,EnergyIconBottledGasPlus:EnergyIconBottledGasPlus,EnergyIconCar:EnergyIconCar,EnergyIconCarbonFootprint:EnergyIconCarbonFootprint,EnergyIconCart:EnergyIconCart,EnergyIconChatSparkFilled:EnergyIconChatSparkFilled,EnergyIconConsumption:EnergyIconConsumption,EnergyIconConsumptionBoxFilled:EnergyIconConsumptionBoxFilled,EnergyIconEdit:EnergyIconEdit,EnergyIconFileTextSparkFilled:EnergyIconFileTextSparkFilled,EnergyIconHome:EnergyIconHome,EnergyIconMessageEdit:EnergyIconMessageEdit,EnergyIconQuestionFilled:EnergyIconQuestionFilled,EnergyIconSendFilled:EnergyIconSendFilled,EnergyIconTruck:EnergyIconTruck,EnergyIconConsumptionBoxPlusFilled:EnergyIconConsumptionBoxPlusFilled,EnergyIconConsumptionBoxRightFilled:EnergyIconConsumptionBoxRightFilled,EnergyIconConsumptionBoxMinusFilled:EnergyIconConsumptionBoxMinusFilled,EnergyIconFlameFilled:EnergyIconFlameFilled,EnergyIconBoltFilled:EnergyIconBoltFilled,EnergyIconPresentationFilled:EnergyIconPresentationFilled,EnergyIconCreditCardsFilled:EnergyIconCreditCardsFilled};
@@ -1 +1 @@
1
- import{COLOR_THEMES}from"../../constants/Palette";export const VARIANTS_NAMES={TITLE1:"title1",TITLE2:"title2",TITLE3:"title3",SUBTITLE1:"subtitle1",SUBTITLE2:"subtitle2",BODY:"body",SMALL:"small",XSMALL:"xsmall",TH:"th",TD:"td"};export const VARIANTS={[VARIANTS_NAMES.TITLE1]:"h1",[VARIANTS_NAMES.TITLE2]:"h2",[VARIANTS_NAMES.TITLE3]:"h3",[VARIANTS_NAMES.SUBTITLE1]:"h4",[VARIANTS_NAMES.SUBTITLE2]:"h5",[VARIANTS_NAMES.BODY]:"div",[VARIANTS_NAMES.SMALL]:"div",[VARIANTS_NAMES.XSMALL]:"div",[VARIANTS_NAMES.TH]:"th",[VARIANTS_NAMES.TD]:"td"};export const VARIANTS_SIZES={[VARIANTS_NAMES.TITLE1]:"var(--UT-label-size-title-1, 1.875rem)",[VARIANTS_NAMES.TITLE2]:"var(--UT-label-size-title-2, 1.5rem)",[VARIANTS_NAMES.TITLE3]:"var(--UT-label-size-title-3, 1.375rem)",[VARIANTS_NAMES.SUBTITLE1]:"var(--UT-label-size-subtitle-1, 1.125rem)",[VARIANTS_NAMES.SUBTITLE2]:"var(--UT-label-size-subtitle-2, 1rem)",[VARIANTS_NAMES.BODY]:"var(--UT-label-size-body, 1rem)",[VARIANTS_NAMES.SMALL]:"var(--UT-label-size-small, 0.75rem)",[VARIANTS_NAMES.XSMALL]:"var(--UT-label-size-xsmall, 0.75rem)",[VARIANTS_NAMES.TH]:"var(--UT-label-size-body, 1rem)",[VARIANTS_NAMES.TD]:"var(--UT-label-size-body, 1rem)"};export const VARIANTS_LINE_HEIGHT={[VARIANTS_NAMES.TITLE1]:"var(--UT-label-lh-heading, 1.2)",[VARIANTS_NAMES.TITLE2]:"var(--UT-label-lh-heading, 1.2)",[VARIANTS_NAMES.TITLE3]:"var(--UT-label-lh-heading, 1.2)",[VARIANTS_NAMES.SUBTITLE1]:"var(--UT-label-lh-subheading, 1.4)",[VARIANTS_NAMES.SUBTITLE2]:"var(--UT-label-lh-subheading, 1.4)",[VARIANTS_NAMES.BODY]:"var(--UT-label-lh-body, 1.4)",[VARIANTS_NAMES.SMALL]:"var(--UT-label-lh-small, 1.4)",[VARIANTS_NAMES.XSMALL]:"var(--UT-label-lh-xsmall, 1.5)",[VARIANTS_NAMES.TH]:"var(--UT-label-lh-body, 1.4)",[VARIANTS_NAMES.TD]:"var(--UT-label-lh-body, 1.4)"};export const WEIGHTS={thin:"var(--UT-label-weight-thin, 100)",extralight:"var(--UT-label-weight-extralight, 200)",light:"var(--UT-label-weight-light, 300)",regular:"var(--UT-label-weight-regular, 400)",medium:"var(--UT-label-weight-medium, 500)",semibold:"var(--UT-label-weight-semibold, 600)",bold:"var(--UT-label-weight-bold, 700)",extrabold:"var(--UT-label-weight-extrabold, 800)",black:"var(--UT-label-weight-black, 900)"};export const DEFAULT_PROPS={colorTheme:COLOR_THEMES.dark,field:{},markdownExtended:!1,markdownRenderers:{},variant:"body",weight:"regular",withMarkdown:!1};
1
+ import{COLOR_THEMES}from"../../constants/Palette";export const VARIANTS_NAMES={TITLE1:"title1",TITLE2:"title2",TITLE3:"title3",SUBTITLE1:"subtitle1",SUBTITLE2:"subtitle2",BODY:"body",SMALL:"small",XSMALL:"xsmall",TH:"th",TD:"td"};export const VARIANTS={[VARIANTS_NAMES.TITLE1]:"h1",[VARIANTS_NAMES.TITLE2]:"h2",[VARIANTS_NAMES.TITLE3]:"h3",[VARIANTS_NAMES.SUBTITLE1]:"h4",[VARIANTS_NAMES.SUBTITLE2]:"h5",[VARIANTS_NAMES.BODY]:"div",[VARIANTS_NAMES.SMALL]:"div",[VARIANTS_NAMES.XSMALL]:"div",[VARIANTS_NAMES.TH]:"th",[VARIANTS_NAMES.TD]:"td"};export const VARIANTS_SIZES={[VARIANTS_NAMES.TITLE1]:"var(--UT-label-size-title-1, 1.875rem)",[VARIANTS_NAMES.TITLE2]:"var(--UT-label-size-title-2, 1.5rem)",[VARIANTS_NAMES.TITLE3]:"var(--UT-label-size-title-3, 1.375rem)",[VARIANTS_NAMES.SUBTITLE1]:"var(--UT-label-size-subtitle-1, 1.125rem)",[VARIANTS_NAMES.SUBTITLE2]:"var(--UT-label-size-subtitle-2, 1rem)",[VARIANTS_NAMES.BODY]:"var(--UT-label-size-body, 1rem)",[VARIANTS_NAMES.SMALL]:"var(--UT-label-size-small, 0.75rem)",[VARIANTS_NAMES.XSMALL]:"var(--UT-label-size-xsmall, 0.75rem)",[VARIANTS_NAMES.TH]:"var(--UT-label-size-body, 1rem)",[VARIANTS_NAMES.TD]:"var(--UT-label-size-body, 1rem)"};export const VARIANTS_LINE_HEIGHT={[VARIANTS_NAMES.TITLE1]:"var(--UT-label-lh-heading, 1.2)",[VARIANTS_NAMES.TITLE2]:"var(--UT-label-lh-heading, 1.2)",[VARIANTS_NAMES.TITLE3]:"var(--UT-label-lh-heading, 1.2)",[VARIANTS_NAMES.SUBTITLE1]:"var(--UT-label-lh-subheading, 1.4)",[VARIANTS_NAMES.SUBTITLE2]:"var(--UT-label-lh-subheading, 1.4)",[VARIANTS_NAMES.BODY]:"var(--UT-label-lh-body, 1.4)",[VARIANTS_NAMES.SMALL]:"var(--UT-label-lh-small, 1.4)",[VARIANTS_NAMES.XSMALL]:"var(--UT-label-lh-xsmall, 1.5)",[VARIANTS_NAMES.TH]:"var(--UT-label-lh-body, 1.4)",[VARIANTS_NAMES.TD]:"var(--UT-label-lh-body, 1.4)"};export const WEIGHTS={thin:"var(--UT-label-weight-thin, 100)",extralight:"var(--UT-label-weight-extralight, 200)",light:"var(--UT-label-weight-light, 300)",regular:"var(--UT-label-weight-regular, 400)",medium:"var(--UT-label-weight-medium, 500)",semibold:"var(--UT-label-weight-semibold, 600)",bold:"var(--UT-label-weight-bold, 700)",extrabold:"var(--UT-label-weight-extrabold, 800)",black:"var(--UT-label-weight-black, 900)"};export const DEFAULT_PROPS={colorTheme:COLOR_THEMES.dark,field:{},gradient:!1,markdownExtended:!1,markdownRenderers:{},variant:"body",weight:"regular",withMarkdown:!1};export const getGradientTokenName=T=>"decorative-".concat(T,"-gradient");export const GRADIENT_FALLBACKS={[COLOR_THEMES.information]:"linear-gradient(88.75deg, #1291FF 0%, #67E8F9 100%)",[COLOR_THEMES.warning]:"linear-gradient(88.75deg, #EC6707 0%, #FBCA3A 100%)"};export const DEFAULT_GRADIENT_FALLBACK=GRADIENT_FALLBACKS[COLOR_THEMES.information];
@@ -1 +1 @@
1
- import merge from"lodash/merge";import{COLOR_SHADES,COLOR_THEMES}from"../../constants/Palette";import{getDefaultColorShade}from"../../utils/componentUtils";import Colors from"../../scss/variables/colors.module.scss";import{DEFAULT_PROPS,VARIANTS_LINE_HEIGHT,VARIANTS_SIZES,WEIGHTS}from"./constants";const variantsColorTheme=(a,l,e)=>{var r;return(e.Palette[a]||(null===(r=e.Palette.actions)||void 0===r?void 0:r[a])||e.Palette[DEFAULT_PROPS.colorTheme])[Object.values(COLOR_SHADES).includes(l)?l:getDefaultColorShade(a)]||Colors.black},linkColor=(a,l)=>{var e;const r=(null===(e=a.Palette)||void 0===e?void 0:e.actions)||a.Palette;return l===COLOR_THEMES.light?r[COLOR_THEMES.negative][COLOR_SHADES.shade05]:l===COLOR_THEMES.error?r[COLOR_THEMES.error][COLOR_SHADES.shade05]:r[COLOR_THEMES.accent][COLOR_SHADES.shade05]};export const getFontStyles=a=>{var l,e,r;let{theme:i,variant:t,weight:o,variantsSizes:n}=a;const d=n||merge({},VARIANTS_SIZES,null==i||null===(l=i.UTLabel)||void 0===l?void 0:l.variantsSizes),m=merge({},VARIANTS_LINE_HEIGHT,null==i||null===(e=i.UTLabel)||void 0===e?void 0:e.variantsLineHeights);return{fontFamily:null==i||null===(r=i.Fonts)||void 0===r?void 0:r.fontFamily,fontSize:d[t]||d[DEFAULT_PROPS.variant],fontWeight:WEIGHTS[o]||WEIGHTS[DEFAULT_PROPS.weight],lineHeight:m[t]||m[DEFAULT_PROPS.variant]}};export const retrieveStyle=a=>{var l,e,r,i,t,o,n,d;let{colorTheme:m,field:s,shade:g,theme:S,variant:T,weight:v,variantsSizes:O}=a;const h=m===COLOR_THEMES.light?S.Palette[COLOR_THEMES.light][COLOR_SHADES.shade01]:S.Palette[COLOR_THEMES.dark][COLOR_SHADES.shade05],E=m===COLOR_THEMES.light?S.Palette[COLOR_THEMES.light][COLOR_SHADES.shade01]:S.Palette[COLOR_THEMES.gray][COLOR_SHADES.shade04];return{root:{color:variantsColorTheme(null!==(l=null==s||null===(e=s.configuration)||void 0===e?void 0:e.colorTheme)&&void 0!==l?l:m,null!==(r=null==s||null===(i=s.configuration)||void 0===i?void 0:i.shade)&&void 0!==r?r:g,S),...getFontStyles({theme:S,variant:null!==(t=null==s||null===(o=s.configuration)||void 0===o?void 0:o.variant)&&void 0!==t?t:T,weight:null!==(n=null==s||null===(d=s.configuration)||void 0===d?void 0:d.weight)&&void 0!==n?n:v,variantsSizes:O}),letterSpacing:"normal",margin:0},markdown:{"& a":{color:linkColor(S,m)},"& h1, & h2, & h3, & h4, & h5, & h6":{color:h,fontWeight:WEIGHTS.medium,lineHeight:"var(--UT-label-lh-heading, 1.2)",margin:"0 0 var(--UT-label-markdown-margin-md, 8px) 0"},"& h1":{fontSize:"var(--UT-label-size-title-1, 1.875em)"},"& h2":{fontSize:"var(--UT-label-size-title-2, 1.5em)"},"& h3":{fontSize:"var(--UT-label-size-title-3, 1.375em)"},"& h4":{fontSize:"var(--UT-label-size-subtitle-1, 1.125em)"},"& h5":{fontSize:"var(--UT-label-size-subtitle-2, 1em)",margin:"0 0 var(--UT-label-markdown-margin-md, 12px) 0"},"& h6":{color:E,fontSize:"var(--UT-label-size-body, 1em)",margin:"0 0 var(--UT-label-markdown-margin-md, 12px) 0"},"& table":{border:"1px solid ".concat(S.Palette[COLOR_THEMES.light][COLOR_SHADES.shade04]),borderCollapse:"collapse",margin:"0 0 var(--UT-label-markdown-margin-xl, 24px) 0",width:"100%"},"& th, & td":{border:"1px solid ".concat(S.Palette[COLOR_THEMES.light][COLOR_SHADES.shade04]),padding:"var(--UT-label-markdown-padding-sm, 8px) var(--UT-label-markdown-padding-md, 12px)",textAlign:"left"},"& th":{backgroundColor:(S.Palette.actions||S.Palette)[COLOR_THEMES.negative][COLOR_SHADES.shade01],color:E,fontWeight:WEIGHTS.medium},"& p":{margin:"0 0 var(--UT-label-markdown-margin-md, 12px) 0"},"& ol":{paddingLeft:"var(--UT-label-markdown-padding-xl, 24px)",textAlign:"start"},"& ul, & ol":{margin:"0 0 var(--UT-label-markdown-margin-xl, 24px) 0"},"& ul:not(.contains-task-list)":{paddingLeft:"var(--UT-label-markdown-padding-xl, 24px)",textAlign:"start"},"& pre":{backgroundColor:S.Palette[COLOR_THEMES.light][COLOR_SHADES.shade03],borderRadius:"var(--UT-radius-md, 0.5rem)",fontSize:"var(--UT-label-size-small, 0.75em)",lineHeight:"var(--UT-label-lh-small, 1.4)",margin:"0 0 var(--UT-label-markdown-margin-xl, 24px) 0",padding:"var(--UT-label-markdown-padding-sm, 12px) var(--UT-label-markdown-padding-md, 16px)",whiteSpace:"pre-wrap"},"& dl":{margin:"0 0 var(--UT-label-markdown-margin-xl, 24px) 0"},"& dd":{fontSize:"inherit",margin:0},"& dt":{color:E,fontSize:VARIANTS_SIZES.small,fontWeight:WEIGHTS.semibold},"& dt + dt, & dt + dd, & dd + dd":{marginTop:12},"& hr":{borderColor:S.Palette[COLOR_THEMES.gray][COLOR_SHADES.shade01],borderTop:0,margin:"var(--UT-label-markdown-margin-sm, 8px) 0 var(--UT-label-markdown-margin-xl, 24px)"},"& li + li":{marginTop:"var(--UT-label-markdown-margin-md, 12px)"},"& li > ul":{marginTop:"var(--UT-label-markdown-margin-sm, 8px)"},"& li::marker":{color:S.Palette[COLOR_THEMES.gray][COLOR_SHADES.shade01]},"& li > ul > li + li":{marginTop:"var(--UT-label-markdown-margin-sm, 8px)"},"& li p":{margin:0},"& sup":{fontSize:"inherit"},"& sup > a":{fontSize:"var(--UT-label-size-xsmall, 0.75em)"},"& img, & video, & audio":{borderRadius:"var(--UT-radius-md, 0.5rem)",margin:"0 0 var(--UT-label-markdown-margin-xl, 24px) 0"},"& .contains-task-list":{display:"flex",flexDirection:"column",gridGap:"var(--gap-md, 12px)",margin:"0 0 var(--UT-label-markdown-margin-xl, 24px) 0",paddingLeft:0,"& li":{margin:0}},"& :last-child":{marginBottom:"0"}},blockquote:{color:E},customFootnotes:{"& span":{color:E}}}};export const retrieveProps=(a,l)=>({...(null==a?void 0:a.UTLabel)||{},...l});
1
+ import merge from"lodash/merge";import{COLOR_SHADES,COLOR_THEMES}from"../../constants/Palette";import{getDefaultColorShade}from"../../utils/componentUtils";import Colors from"../../scss/variables/colors.module.scss";import{DEFAULT_GRADIENT_FALLBACK,DEFAULT_PROPS,GRADIENT_FALLBACKS,getGradientTokenName,VARIANTS_LINE_HEIGHT,VARIANTS_SIZES,WEIGHTS}from"./constants";const variantsColorTheme=(a,e,l)=>{var r;return(l.Palette[a]||(null===(r=l.Palette.actions)||void 0===r?void 0:r[a])||l.Palette[DEFAULT_PROPS.colorTheme])[Object.values(COLOR_SHADES).includes(e)?e:getDefaultColorShade(a)]||Colors.black},linkColor=(a,e)=>{var l;const r=(null===(l=a.Palette)||void 0===l?void 0:l.actions)||a.Palette;return e===COLOR_THEMES.light?r[COLOR_THEMES.negative][COLOR_SHADES.shade05]:e===COLOR_THEMES.error?r[COLOR_THEMES.error][COLOR_SHADES.shade05]:r[COLOR_THEMES.accent][COLOR_SHADES.shade05]};export const getFontStyles=a=>{var e,l,r;let{theme:t,variant:i,weight:o,variantsSizes:n}=a;const d=n||merge({},VARIANTS_SIZES,null==t||null===(e=t.UTLabel)||void 0===e?void 0:e.variantsSizes),m=merge({},VARIANTS_LINE_HEIGHT,null==t||null===(l=t.UTLabel)||void 0===l?void 0:l.variantsLineHeights);return{fontFamily:null==t||null===(r=t.Fonts)||void 0===r?void 0:r.fontFamily,fontSize:d[i]||d[DEFAULT_PROPS.variant],fontWeight:WEIGHTS[o]||WEIGHTS[DEFAULT_PROPS.weight],lineHeight:m[i]||m[DEFAULT_PROPS.variant]}};const gradientStyles=a=>{const e=GRADIENT_FALLBACKS[a]||DEFAULT_GRADIENT_FALLBACK;return{backgroundImage:"var(--".concat(getGradientTokenName(a),", ").concat(e,")"),backgroundClip:"text",color:"transparent",width:"fit-content","-webkit-background-clip":"text","-webkit-text-fill-color":"transparent","@media (forced-colors: active)":{backgroundImage:"none",color:"CanvasText","-webkit-text-fill-color":"currentColor"}}};export const retrieveStyle=a=>{var e,l,r,t,i,o,n,d;let{colorTheme:m,field:s,gradient:g,shade:S,theme:T,variant:v,weight:E,variantsSizes:c}=a;const O=m===COLOR_THEMES.light?T.Palette[COLOR_THEMES.light][COLOR_SHADES.shade01]:T.Palette[COLOR_THEMES.dark][COLOR_SHADES.shade05],h=m===COLOR_THEMES.light?T.Palette[COLOR_THEMES.light][COLOR_SHADES.shade01]:T.Palette[COLOR_THEMES.gray][COLOR_SHADES.shade04],p=null!==(e=null==s||null===(l=s.configuration)||void 0===l?void 0:l.colorTheme)&&void 0!==e?e:m;return{root:{color:variantsColorTheme(p,null!==(r=null==s||null===(t=s.configuration)||void 0===t?void 0:t.shade)&&void 0!==r?r:S,T),...getFontStyles({theme:T,variant:null!==(i=null==s||null===(o=s.configuration)||void 0===o?void 0:o.variant)&&void 0!==i?i:v,weight:null!==(n=null==s||null===(d=s.configuration)||void 0===d?void 0:d.weight)&&void 0!==n?n:E,variantsSizes:c}),letterSpacing:"normal",margin:0,...g?gradientStyles(p):{}},markdown:{"& a":{color:linkColor(T,m)},"& h1, & h2, & h3, & h4, & h5, & h6":{color:O,fontWeight:WEIGHTS.medium,lineHeight:"var(--UT-label-lh-heading, 1.2)",margin:"0 0 var(--UT-label-markdown-margin-md, 8px) 0"},"& h1":{fontSize:"var(--UT-label-size-title-1, 1.875em)"},"& h2":{fontSize:"var(--UT-label-size-title-2, 1.5em)"},"& h3":{fontSize:"var(--UT-label-size-title-3, 1.375em)"},"& h4":{fontSize:"var(--UT-label-size-subtitle-1, 1.125em)"},"& h5":{fontSize:"var(--UT-label-size-subtitle-2, 1em)",margin:"0 0 var(--UT-label-markdown-margin-md, 12px) 0"},"& h6":{color:h,fontSize:"var(--UT-label-size-body, 1em)",margin:"0 0 var(--UT-label-markdown-margin-md, 12px) 0"},"& table":{border:"1px solid ".concat(T.Palette[COLOR_THEMES.light][COLOR_SHADES.shade04]),borderCollapse:"collapse",margin:"0 0 var(--UT-label-markdown-margin-xl, 24px) 0",width:"100%"},"& th, & td":{border:"1px solid ".concat(T.Palette[COLOR_THEMES.light][COLOR_SHADES.shade04]),padding:"var(--UT-label-markdown-padding-sm, 8px) var(--UT-label-markdown-padding-md, 12px)",textAlign:"left"},"& th":{backgroundColor:(T.Palette.actions||T.Palette)[COLOR_THEMES.negative][COLOR_SHADES.shade01],color:h,fontWeight:WEIGHTS.medium},"& p":{margin:"0 0 var(--UT-label-markdown-margin-md, 12px) 0"},"& ol":{paddingLeft:"var(--UT-label-markdown-padding-xl, 24px)",textAlign:"start"},"& ul, & ol":{margin:"0 0 var(--UT-label-markdown-margin-xl, 24px) 0"},"& ul:not(.contains-task-list)":{paddingLeft:"var(--UT-label-markdown-padding-xl, 24px)",textAlign:"start"},"& pre":{backgroundColor:T.Palette[COLOR_THEMES.light][COLOR_SHADES.shade03],borderRadius:"var(--UT-radius-md, 0.5rem)",fontSize:"var(--UT-label-size-small, 0.75em)",lineHeight:"var(--UT-label-lh-small, 1.4)",margin:"0 0 var(--UT-label-markdown-margin-xl, 24px) 0",padding:"var(--UT-label-markdown-padding-sm, 12px) var(--UT-label-markdown-padding-md, 16px)",whiteSpace:"pre-wrap"},"& dl":{margin:"0 0 var(--UT-label-markdown-margin-xl, 24px) 0"},"& dd":{fontSize:"inherit",margin:0},"& dt":{color:h,fontSize:VARIANTS_SIZES.small,fontWeight:WEIGHTS.semibold},"& dt + dt, & dt + dd, & dd + dd":{marginTop:12},"& hr":{borderColor:T.Palette[COLOR_THEMES.gray][COLOR_SHADES.shade01],borderTop:0,margin:"var(--UT-label-markdown-margin-sm, 8px) 0 var(--UT-label-markdown-margin-xl, 24px)"},"& li + li":{marginTop:"var(--UT-label-markdown-margin-md, 12px)"},"& li > ul":{marginTop:"var(--UT-label-markdown-margin-sm, 8px)"},"& li::marker":{color:T.Palette[COLOR_THEMES.gray][COLOR_SHADES.shade01]},"& li > ul > li + li":{marginTop:"var(--UT-label-markdown-margin-sm, 8px)"},"& li p":{margin:0},"& sup":{fontSize:"inherit"},"& sup > a":{fontSize:"var(--UT-label-size-xsmall, 0.75em)"},"& img, & video, & audio":{borderRadius:"var(--UT-radius-md, 0.5rem)",margin:"0 0 var(--UT-label-markdown-margin-xl, 24px) 0"},"& .contains-task-list":{display:"flex",flexDirection:"column",gridGap:"var(--gap-md, 12px)",margin:"0 0 var(--UT-label-markdown-margin-xl, 24px) 0",paddingLeft:0,"& li":{margin:0}},"& :last-child":{marginBottom:"0"}},blockquote:{color:h},customFootnotes:{"& span":{color:h}}}};export const retrieveProps=(a,e)=>({...(null==a?void 0:a.UTLabel)||{},...e});
@@ -1 +1 @@
1
- function _extends(){return _extends=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var s in a)({}).hasOwnProperty.call(a,s)&&(e[s]=a[s])}return e},_extends.apply(null,arguments)}import{bool,element,func,number,object,oneOfType,string}from"prop-types";import React from"react";import UTButton from"../UTButton";import UTIcon from"../UTIcon";import UTLabel from"../UTLabel";import UTLoading from"../UTLoading";import WithTheme from"../WithTheme";import{TEST_IDS}from"../../constants/testIds";import{ICON_COLOR_THEMES,COLOR_THEMES,DEFAULT_CONTENT_MAX_WIDTH}from"./constants";import{retrieveStyle}from"./theme";import styles from"./styles.module.scss";const{statusMessage:statusMessage}=TEST_IDS,UTStatusMessage=e=>{let{area:t,children:a,classes:s,colorTheme:o=COLOR_THEMES.DEFAULT,contentMaxWidth:n=DEFAULT_CONTENT_MAX_WIDTH,description:r,descriptionProps:c,flag:i,HeaderComponent:l,helpText:m,helpTextProps:T,icon:d="IconInfoCircle",iconProps:p={size:40},loading:g,primaryAction:u,primaryActionProps:y,primaryActionText:h,secondaryAction:E,secondaryActionProps:b,secondaryActionText:f,showHeader:x=!0,title:U,titleProps:M}=e;return React.createElement("div",{className:"".concat(styles.root," ").concat(t?styles.area:""," ").concat(s.root||"")},i&&React.createElement("div",{className:s.flag||"","data-testid":statusMessage.flag}),React.createElement("div",{className:"".concat(styles.container," ").concat(s.container," ").concat(t?styles.areaPadding:"")},g?React.createElement(UTLoading,{loading:!0,text:null}):x?React.createElement("div",{className:s.banner},l?React.createElement(l,null):React.createElement("div",{className:s.iconContainer},React.createElement(UTIcon,_extends({name:d,colorTheme:ICON_COLOR_THEMES[o],dataTestId:statusMessage.icon},p)))):null,React.createElement("div",{className:"".concat(styles.content," ").concat(s.content),style:{"--statusMessage-content-max-width":"number"==typeof n?"".concat(n,"px"):n}},(U||r||m)&&React.createElement("div",{className:styles.section},U&&React.createElement(UTLabel,_extends({className:styles.label,dataTestId:statusMessage.title,variant:"title3",weight:"medium"},M),U),r&&React.createElement(UTLabel,_extends({className:styles.label,colorTheme:"gray",dataTestId:statusMessage.description,withMarkdown:!0,variant:"body"},c),r),m&&React.createElement(UTLabel,_extends({className:styles.label,colorTheme:"gray",dataTestId:statusMessage.helperText,variant:"small"},T),m)),a,(u||E)&&React.createElement("div",{className:styles.section},u&&React.createElement(UTButton,_extends({onClick:u},y),h),E&&React.createElement(UTButton,_extends({onClick:E,variant:"text"},b),f)))))};UTStatusMessage.propTypes={area:bool,children:element,classes:object,colorTheme:string,contentMaxWidth:oneOfType([number,string]),description:string,descriptionProps:object,flag:bool,flagColor:string,HeaderComponent:element,helpText:string,helpTextProps:object,icon:string,iconBackgroundColor:string,iconProps:object,loading:bool,primaryAction:func,primaryActionProps:object,primaryActionText:string,secondaryAction:func,secondaryActionProps:object,secondaryActionText:string,showBanner:bool,showHeader:bool,title:string,titleProps:object};const UTStatusMessageWithTheme=WithTheme(retrieveStyle)(UTStatusMessage);UTStatusMessageWithTheme.displayName="UTStatusMessage";export default UTStatusMessageWithTheme;
1
+ function _extends(){return _extends=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)({}).hasOwnProperty.call(a,n)&&(e[n]=a[n])}return e},_extends.apply(null,arguments)}import{bool,element,func,number,object,oneOfType,string}from"prop-types";import React from"react";import UTButton from"../UTButton";import UTIcon from"../UTIcon";import UTLabel from"../UTLabel";import UTLoading from"../UTLoading";import WithTheme from"../WithTheme";import{TEST_IDS}from"../../constants/testIds";import{ICON_COLOR_THEMES,COLOR_THEMES,DEFAULT_CONTENT_MAX_WIDTH}from"./constants";import{retrieveStyle}from"./theme";import styles from"./styles.module.scss";const{statusMessage:statusMessage}=TEST_IDS,UTStatusMessage=e=>{let{area:t,children:a,classes:n,colorTheme:s=COLOR_THEMES.DEFAULT,contentMaxWidth:o=DEFAULT_CONTENT_MAX_WIDTH,description:r,descriptionProps:c,flag:i,HeaderComponent:l,helpText:m,helpTextProps:T,icon:d="IconInfoCircle",iconProps:p={size:40},loading:g,primaryAction:u,primaryActionProps:h,primaryActionText:y,secondaryAction:E,secondaryActionProps:f,secondaryActionText:b,showHeader:x=!0,title:U,titleProps:M}=e;return React.createElement("div",{className:"".concat(styles.root," ").concat(t?styles.area:""," ").concat(n.root||"")},i&&React.createElement("div",{className:n.flag||"","data-testid":statusMessage.flag}),React.createElement("div",{className:"".concat(styles.container," ").concat(n.container," ").concat(t?styles.areaPadding:"")},g?React.createElement(UTLoading,{loading:!0,text:null}):x?React.createElement("div",{className:n.banner},l?React.createElement(l,null):React.createElement("div",{className:n.iconContainer},React.createElement(UTIcon,_extends({name:d,colorTheme:ICON_COLOR_THEMES[s],dataTestId:statusMessage.icon},p)))):null,React.createElement("div",{className:"".concat(styles.content," ").concat(n.content),style:{"--statusMessage-content-max-width":"number"==typeof o?"".concat(o,"px"):o}},(U||r||m)&&React.createElement("div",{className:styles.section},U&&React.createElement(UTLabel,_extends({align:"center",dataTestId:statusMessage.title,variant:"title3",weight:"medium"},M),U),r&&React.createElement(UTLabel,_extends({align:"center",colorTheme:"gray",dataTestId:statusMessage.description,variant:"body",withMarkdown:!0},c),r),m&&React.createElement(UTLabel,_extends({align:"center",colorTheme:"gray",dataTestId:statusMessage.helperText,variant:"small"},T),m)),a,(u||E)&&React.createElement("div",{className:styles.section},u&&React.createElement(UTButton,_extends({onClick:u},h),y),E&&React.createElement(UTButton,_extends({onClick:E,variant:"text"},f),b)))))};UTStatusMessage.propTypes={area:bool,children:element,classes:object,colorTheme:string,contentMaxWidth:oneOfType([number,string]),description:string,descriptionProps:object,flag:bool,flagColor:string,HeaderComponent:element,helpText:string,helpTextProps:object,icon:string,iconBackgroundColor:string,iconProps:object,loading:bool,primaryAction:func,primaryActionProps:object,primaryActionText:string,secondaryAction:func,secondaryActionProps:object,secondaryActionText:string,showBanner:bool,showHeader:bool,title:string,titleProps:object};const UTStatusMessageWithTheme=WithTheme(retrieveStyle)(UTStatusMessage);UTStatusMessageWithTheme.displayName="UTStatusMessage";export default UTStatusMessageWithTheme;
@@ -58,10 +58,6 @@ $default-area-border-color: #E4E6EA;
58
58
  justify-content: center;
59
59
  }
60
60
 
61
- .label {
62
- text-align: center;
63
- }
64
-
65
61
  .image {
66
62
  height: 200px;
67
63
  width: 200px;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@widergy/energy-ui",
3
- "version": "3.180.2",
3
+ "version": "3.181.0",
4
4
  "description": "Widergy Web Components",
5
5
  "author": "widergy",
6
6
  "license": "MIT",