@entur/loader
Advanced tools
Comparing version 0.3.25 to 0.3.26
@@ -6,2 +6,8 @@ # Change Log | ||
## [0.3.26](https://bitbucket.org/enturas/design-system/compare/@entur/loader@0.3.25...@entur/loader@0.3.26) (2020-09-10) | ||
### Bug Fixes | ||
- **loader:** adjust heading type for loader ([f52ae85](https://bitbucket.org/enturas/design-system/commits/f52ae8552c4ef0ddcb9a969b6ae5e821fa785487)) | ||
## [0.3.25](https://bitbucket.org/enturas/design-system/compare/@entur/loader@0.3.24...@entur/loader@0.3.25) (2020-09-02) | ||
@@ -8,0 +14,0 @@ |
@@ -66,3 +66,3 @@ 'use strict'; | ||
"aria-live": "polite" | ||
}, rest), children && React.createElement(typography.Heading4, { | ||
}, rest), children && React.createElement(typography.Heading5, { | ||
className: "eds-loader__label" | ||
@@ -69,0 +69,0 @@ }, children), React.createElement("div", { |
@@ -1,2 +0,2 @@ | ||
"use strict";function e(e){return e&&"object"==typeof e&&"default"in e?e.default:e}Object.defineProperty(exports,"__esModule",{value:!0});var a=require("@entur/utils"),t=e(require("react")),r=e(require("classnames")),s=require("@entur/typography");function l(){return(l=Object.assign||function(e){for(var a=1;a<arguments.length;a++){var t=arguments[a];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e}).apply(this,arguments)}function n(e,a){if(null==e)return{};var t,r,s={},l=Object.keys(e);for(r=0;r<l.length;r++)a.indexOf(t=l[r])>=0||(s[t]=e[t]);return s}var i=function(e){var a=e.className,s=n(e,["className"]);return t.createElement("div",Object.assign({className:r("eds-skeleton","eds-skeleton--animate",a),role:"alert","aria-busy":!0,"aria-live":"polite"},s))};a.warnAboutMissingStyles("loader","typography"),exports.Loader=function(e){var a=e.children,l=e.className,i=e.progress,c=void 0===i?"indeterminate":i,o=n(e,["children","className","progress"]),d="indeterminate"===c,u={};return d||(u={"--loader-width":c+"%"}),t.createElement("div",Object.assign({className:r("eds-loader",l),role:"alert","aria-busy":!0,"aria-live":"polite"},o),a&&t.createElement(s.Heading4,{className:"eds-loader__label"},a),t.createElement("div",{className:r("eds-loader__bar",{"eds-loader__bar--indeterminate":d}),style:u}),"indeterminate"!==c&&t.createElement(s.SmallText,{className:"eds-loader__percentage"},c," %"))},exports.SkeletonCircle=function(e){var a=e.className,s=e.size,c=n(e,["className","size"]);return t.createElement(i,Object.assign({className:r(a,"eds-skeleton-circle"),style:l({width:s,height:s},c.style)},c))},exports.SkeletonRectangle=function(e){var a=e.className,s=e.width,c=e.height,o=n(e,["className","width","height"]);return t.createElement(i,Object.assign({className:r("eds-skeleton-rectangle",a),style:l({width:s,height:c},o.style)},o))},exports.SkeletonWrapper=function(e){var a=e.className,s=e.children,l=n(e,["className","children"]);return t.createElement("div",Object.assign({className:r("eds-skeleton-wrapper",a),role:"alert","aria-busy":!0,"aria-live":"polite"},l),s)}; | ||
"use strict";function e(e){return e&&"object"==typeof e&&"default"in e?e.default:e}Object.defineProperty(exports,"__esModule",{value:!0});var a=require("@entur/utils"),t=e(require("react")),r=e(require("classnames")),s=require("@entur/typography");function l(){return(l=Object.assign||function(e){for(var a=1;a<arguments.length;a++){var t=arguments[a];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e}).apply(this,arguments)}function n(e,a){if(null==e)return{};var t,r,s={},l=Object.keys(e);for(r=0;r<l.length;r++)a.indexOf(t=l[r])>=0||(s[t]=e[t]);return s}var i=function(e){var a=e.className,s=n(e,["className"]);return t.createElement("div",Object.assign({className:r("eds-skeleton","eds-skeleton--animate",a),role:"alert","aria-busy":!0,"aria-live":"polite"},s))};a.warnAboutMissingStyles("loader","typography"),exports.Loader=function(e){var a=e.children,l=e.className,i=e.progress,c=void 0===i?"indeterminate":i,o=n(e,["children","className","progress"]),d="indeterminate"===c,u={};return d||(u={"--loader-width":c+"%"}),t.createElement("div",Object.assign({className:r("eds-loader",l),role:"alert","aria-busy":!0,"aria-live":"polite"},o),a&&t.createElement(s.Heading5,{className:"eds-loader__label"},a),t.createElement("div",{className:r("eds-loader__bar",{"eds-loader__bar--indeterminate":d}),style:u}),"indeterminate"!==c&&t.createElement(s.SmallText,{className:"eds-loader__percentage"},c," %"))},exports.SkeletonCircle=function(e){var a=e.className,s=e.size,c=n(e,["className","size"]);return t.createElement(i,Object.assign({className:r(a,"eds-skeleton-circle"),style:l({width:s,height:s},c.style)},c))},exports.SkeletonRectangle=function(e){var a=e.className,s=e.width,c=e.height,o=n(e,["className","width","height"]);return t.createElement(i,Object.assign({className:r("eds-skeleton-rectangle",a),style:l({width:s,height:c},o.style)},o))},exports.SkeletonWrapper=function(e){var a=e.className,s=e.children,l=n(e,["className","children"]);return t.createElement("div",Object.assign({className:r("eds-skeleton-wrapper",a),role:"alert","aria-busy":!0,"aria-live":"polite"},l),s)}; | ||
//# sourceMappingURL=loader.cjs.production.min.js.map |
import { warnAboutMissingStyles } from '@entur/utils'; | ||
import React from 'react'; | ||
import classNames from 'classnames'; | ||
import { Heading4, SmallText } from '@entur/typography'; | ||
import { Heading5, SmallText } from '@entur/typography'; | ||
@@ -60,3 +60,3 @@ function _extends() { | ||
"aria-live": "polite" | ||
}, rest), children && React.createElement(Heading4, { | ||
}, rest), children && React.createElement(Heading5, { | ||
className: "eds-loader__label" | ||
@@ -63,0 +63,0 @@ }, children), React.createElement("div", { |
{ | ||
"name": "@entur/loader", | ||
"version": "0.3.25", | ||
"version": "0.3.26", | ||
"license": "EUPL-1.2", | ||
@@ -35,3 +35,3 @@ "main": "dist/index.js", | ||
}, | ||
"gitHead": "f5fa30db2fc72b4565c244ac6ef81a22a35b33c6" | ||
"gitHead": "c6721ac0193ca8a0578bf6a0051c887724db9614" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
59885