@neo4j-ndl/react 3.0.26 → 3.0.27
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.
|
@@ -43,12 +43,12 @@ const defaultImports_1 = require("../_common/defaultImports");
|
|
|
43
43
|
*
|
|
44
44
|
*/
|
|
45
45
|
exports.LoadingSpinner = (0, react_1.forwardRef)(function LoadingSpinner(props, ref) {
|
|
46
|
-
const { as: Component = 'div', size = 'small', className } = props, restProps = __rest(props, ["as", "size", "className"]);
|
|
46
|
+
const { as: Component = 'div', size = 'small', className, htmlAttributes } = props, restProps = __rest(props, ["as", "size", "className", "htmlAttributes"]);
|
|
47
47
|
const classes = (0, defaultImports_1.classNames)('ndl-spin-wrapper', className, {
|
|
48
48
|
'ndl-small': size === 'small',
|
|
49
49
|
'ndl-medium': size === 'medium',
|
|
50
50
|
'ndl-large': size === 'large',
|
|
51
51
|
});
|
|
52
|
-
return ((0, jsx_runtime_1.jsx)(Component, Object.assign({ className: classes, role: "status", "aria-label": "Loading content", "aria-live": "polite", ref: ref }, restProps, { children: (0, jsx_runtime_1.jsx)("div", { className: "ndl-spin" }) })));
|
|
52
|
+
return ((0, jsx_runtime_1.jsx)(Component, Object.assign({ className: classes, role: "status", "aria-label": "Loading content", "aria-live": "polite", ref: ref }, htmlAttributes, restProps, { children: (0, jsx_runtime_1.jsx)("div", { className: "ndl-spin" }) })));
|
|
53
53
|
});
|
|
54
54
|
//# sourceMappingURL=LoadingSpinner.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LoadingSpinner.js","sourceRoot":"","sources":["../../../src/loading-spinner/LoadingSpinner.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AACH,iCAA0C;AAE1C,8DAAuD;AAmBvD;;;;;;GAMG;AAEU,QAAA,cAAc,GAGvB,IAAA,kBAAU,EAAC,SAAS,cAAc,CACpC,KAAyD,EACzD,GAAsB;IAEtB,MAAM,EACJ,EAAE,EAAE,SAAS,GAAG,KAAK,EACrB,IAAI,GAAG,OAAO,EACd,SAAS,
|
|
1
|
+
{"version":3,"file":"LoadingSpinner.js","sourceRoot":"","sources":["../../../src/loading-spinner/LoadingSpinner.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AACH,iCAA0C;AAE1C,8DAAuD;AAmBvD;;;;;;GAMG;AAEU,QAAA,cAAc,GAGvB,IAAA,kBAAU,EAAC,SAAS,cAAc,CACpC,KAAyD,EACzD,GAAsB;IAEtB,MAAM,EACJ,EAAE,EAAE,SAAS,GAAG,KAAK,EACrB,IAAI,GAAG,OAAO,EACd,SAAS,EACT,cAAc,KAEZ,KAAK,EADJ,SAAS,UACV,KAAK,EANH,6CAML,CAAQ,CAAC;IAEV,MAAM,OAAO,GAAG,IAAA,2BAAU,EAAC,kBAAkB,EAAE,SAAS,EAAE;QACxD,WAAW,EAAE,IAAI,KAAK,OAAO;QAC7B,YAAY,EAAE,IAAI,KAAK,QAAQ;QAC/B,WAAW,EAAE,IAAI,KAAK,OAAO;KAC9B,CAAC,CAAC;IAEH,OAAO,CACL,uBAAC,SAAS,kBACR,SAAS,EAAE,OAAO,EAClB,IAAI,EAAC,QAAQ,gBACF,iBAAiB,eAClB,QAAQ,EAClB,GAAG,EAAE,GAAG,IACJ,cAAc,EAEd,SAAS,cAEb,gCAAK,SAAS,EAAC,UAAU,GAAG,IAClB,CACb,CAAC;AACJ,CAAC,CAAqE,CAAC"}
|
|
@@ -40,12 +40,12 @@ import { classNames } from '../_common/defaultImports';
|
|
|
40
40
|
*
|
|
41
41
|
*/
|
|
42
42
|
export const LoadingSpinner = forwardRef(function LoadingSpinner(props, ref) {
|
|
43
|
-
const { as: Component = 'div', size = 'small', className } = props, restProps = __rest(props, ["as", "size", "className"]);
|
|
43
|
+
const { as: Component = 'div', size = 'small', className, htmlAttributes } = props, restProps = __rest(props, ["as", "size", "className", "htmlAttributes"]);
|
|
44
44
|
const classes = classNames('ndl-spin-wrapper', className, {
|
|
45
45
|
'ndl-small': size === 'small',
|
|
46
46
|
'ndl-medium': size === 'medium',
|
|
47
47
|
'ndl-large': size === 'large',
|
|
48
48
|
});
|
|
49
|
-
return (_jsx(Component, Object.assign({ className: classes, role: "status", "aria-label": "Loading content", "aria-live": "polite", ref: ref }, restProps, { children: _jsx("div", { className: "ndl-spin" }) })));
|
|
49
|
+
return (_jsx(Component, Object.assign({ className: classes, role: "status", "aria-label": "Loading content", "aria-live": "polite", ref: ref }, htmlAttributes, restProps, { children: _jsx("div", { className: "ndl-spin" }) })));
|
|
50
50
|
});
|
|
51
51
|
//# sourceMappingURL=LoadingSpinner.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LoadingSpinner.js","sourceRoot":"","sources":["../../../src/loading-spinner/LoadingSpinner.tsx"],"names":[],"mappings":";;;;;;;;;;;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AACH,OAAc,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAE1C,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAmBvD;;;;;;GAMG;AAEH,MAAM,CAAC,MAAM,cAAc,GAGvB,UAAU,CAAC,SAAS,cAAc,CACpC,KAAyD,EACzD,GAAsB;IAEtB,MAAM,EACJ,EAAE,EAAE,SAAS,GAAG,KAAK,EACrB,IAAI,GAAG,OAAO,EACd,SAAS,
|
|
1
|
+
{"version":3,"file":"LoadingSpinner.js","sourceRoot":"","sources":["../../../src/loading-spinner/LoadingSpinner.tsx"],"names":[],"mappings":";;;;;;;;;;;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AACH,OAAc,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAE1C,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAmBvD;;;;;;GAMG;AAEH,MAAM,CAAC,MAAM,cAAc,GAGvB,UAAU,CAAC,SAA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