reactive-bulma 2.14.0 → 2.16.0
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/cjs/index.js +145 -38
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/components/atoms/Tile/index.d.ts +4 -0
- package/dist/cjs/types/components/atoms/index.d.ts +1 -0
- package/dist/cjs/types/components/molecules/Footer/index.d.ts +4 -0
- package/dist/cjs/types/components/molecules/TileBox/index.d.ts +4 -0
- package/dist/cjs/types/components/molecules/index.d.ts +2 -0
- package/dist/cjs/types/components/organisms/TileGroup/index.d.ts +4 -0
- package/dist/cjs/types/components/organisms/index.d.ts +1 -0
- package/dist/cjs/types/interfaces/atomProps.d.ts +14 -3
- package/dist/cjs/types/interfaces/moleculeProps.d.ts +10 -3
- package/dist/cjs/types/interfaces/organismProps.d.ts +9 -4
- package/dist/cjs/types/types/domTypes.d.ts +9 -0
- package/dist/cjs/types/types/styleTypes.d.ts +4 -2
- package/dist/esm/index.js +142 -39
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/components/atoms/Tile/index.d.ts +4 -0
- package/dist/esm/types/components/atoms/index.d.ts +1 -0
- package/dist/esm/types/components/molecules/Footer/index.d.ts +4 -0
- package/dist/esm/types/components/molecules/TileBox/index.d.ts +4 -0
- package/dist/esm/types/components/molecules/index.d.ts +2 -0
- package/dist/esm/types/components/organisms/TileGroup/index.d.ts +4 -0
- package/dist/esm/types/components/organisms/index.d.ts +1 -0
- package/dist/esm/types/interfaces/atomProps.d.ts +14 -3
- package/dist/esm/types/interfaces/moleculeProps.d.ts +10 -3
- package/dist/esm/types/interfaces/organismProps.d.ts +9 -4
- package/dist/esm/types/types/domTypes.d.ts +9 -0
- package/dist/esm/types/types/styleTypes.d.ts +4 -2
- package/dist/index.d.ts +41 -7
- package/package.json +5 -5
- package/dist/cjs/types/types/componentEnums.d.ts +0 -8
- package/dist/esm/types/types/componentEnums.d.ts +0 -8
package/dist/cjs/index.js
CHANGED
@@ -39,6 +39,43 @@ function getDefaultExportFromCjs (x) {
|
|
39
39
|
|
40
40
|
var react = {exports: {}};
|
41
41
|
|
42
|
+
var react_production_min = {};
|
43
|
+
|
44
|
+
/**
|
45
|
+
* @license React
|
46
|
+
* react.production.min.js
|
47
|
+
*
|
48
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
49
|
+
*
|
50
|
+
* This source code is licensed under the MIT license found in the
|
51
|
+
* LICENSE file in the root directory of this source tree.
|
52
|
+
*/
|
53
|
+
|
54
|
+
var hasRequiredReact_production_min;
|
55
|
+
|
56
|
+
function requireReact_production_min () {
|
57
|
+
if (hasRequiredReact_production_min) return react_production_min;
|
58
|
+
hasRequiredReact_production_min = 1;
|
59
|
+
var l=Symbol.for("react.element"),n=Symbol.for("react.portal"),p=Symbol.for("react.fragment"),q=Symbol.for("react.strict_mode"),r=Symbol.for("react.profiler"),t=Symbol.for("react.provider"),u=Symbol.for("react.context"),v=Symbol.for("react.forward_ref"),w=Symbol.for("react.suspense"),x=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),z=Symbol.iterator;function A(a){if(null===a||"object"!==typeof a)return null;a=z&&a[z]||a["@@iterator"];return "function"===typeof a?a:null}
|
60
|
+
var B={isMounted:function(){return !1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},C=Object.assign,D={};function E(a,b,e){this.props=a;this.context=b;this.refs=D;this.updater=e||B;}E.prototype.isReactComponent={};
|
61
|
+
E.prototype.setState=function(a,b){if("object"!==typeof a&&"function"!==typeof a&&null!=a)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,a,b,"setState");};E.prototype.forceUpdate=function(a){this.updater.enqueueForceUpdate(this,a,"forceUpdate");};function F(){}F.prototype=E.prototype;function G(a,b,e){this.props=a;this.context=b;this.refs=D;this.updater=e||B;}var H=G.prototype=new F;
|
62
|
+
H.constructor=G;C(H,E.prototype);H.isPureReactComponent=!0;var I=Array.isArray,J=Object.prototype.hasOwnProperty,K={current:null},L={key:!0,ref:!0,__self:!0,__source:!0};
|
63
|
+
function M(a,b,e){var d,c={},k=null,h=null;if(null!=b)for(d in void 0!==b.ref&&(h=b.ref),void 0!==b.key&&(k=""+b.key),b)J.call(b,d)&&!L.hasOwnProperty(d)&&(c[d]=b[d]);var g=arguments.length-2;if(1===g)c.children=e;else if(1<g){for(var f=Array(g),m=0;m<g;m++)f[m]=arguments[m+2];c.children=f;}if(a&&a.defaultProps)for(d in g=a.defaultProps,g)void 0===c[d]&&(c[d]=g[d]);return {$$typeof:l,type:a,key:k,ref:h,props:c,_owner:K.current}}
|
64
|
+
function N(a,b){return {$$typeof:l,type:a.type,key:b,ref:a.ref,props:a.props,_owner:a._owner}}function O(a){return "object"===typeof a&&null!==a&&a.$$typeof===l}function escape(a){var b={"=":"=0",":":"=2"};return "$"+a.replace(/[=:]/g,function(a){return b[a]})}var P=/\/+/g;function Q(a,b){return "object"===typeof a&&null!==a&&null!=a.key?escape(""+a.key):b.toString(36)}
|
65
|
+
function R(a,b,e,d,c){var k=typeof a;if("undefined"===k||"boolean"===k)a=null;var h=!1;if(null===a)h=!0;else switch(k){case "string":case "number":h=!0;break;case "object":switch(a.$$typeof){case l:case n:h=!0;}}if(h)return h=a,c=c(h),a=""===d?"."+Q(h,0):d,I(c)?(e="",null!=a&&(e=a.replace(P,"$&/")+"/"),R(c,b,e,"",function(a){return a})):null!=c&&(O(c)&&(c=N(c,e+(!c.key||h&&h.key===c.key?"":(""+c.key).replace(P,"$&/")+"/")+a)),b.push(c)),1;h=0;d=""===d?".":d+":";if(I(a))for(var g=0;g<a.length;g++){k=
|
66
|
+
a[g];var f=d+Q(k,g);h+=R(k,b,e,f,c);}else if(f=A(a),"function"===typeof f)for(a=f.call(a),g=0;!(k=a.next()).done;)k=k.value,f=d+Q(k,g++),h+=R(k,b,e,f,c);else if("object"===k)throw b=String(a),Error("Objects are not valid as a React child (found: "+("[object Object]"===b?"object with keys {"+Object.keys(a).join(", ")+"}":b)+"). If you meant to render a collection of children, use an array instead.");return h}
|
67
|
+
function S(a,b,e){if(null==a)return a;var d=[],c=0;R(a,d,"","",function(a){return b.call(e,a,c++)});return d}function T(a){if(-1===a._status){var b=a._result;b=b();b.then(function(b){if(0===a._status||-1===a._status)a._status=1,a._result=b;},function(b){if(0===a._status||-1===a._status)a._status=2,a._result=b;});-1===a._status&&(a._status=0,a._result=b);}if(1===a._status)return a._result.default;throw a._result;}
|
68
|
+
var U={current:null},V={transition:null},W={ReactCurrentDispatcher:U,ReactCurrentBatchConfig:V,ReactCurrentOwner:K};react_production_min.Children={map:S,forEach:function(a,b,e){S(a,function(){b.apply(this,arguments);},e);},count:function(a){var b=0;S(a,function(){b++;});return b},toArray:function(a){return S(a,function(a){return a})||[]},only:function(a){if(!O(a))throw Error("React.Children.only expected to receive a single React element child.");return a}};react_production_min.Component=E;react_production_min.Fragment=p;
|
69
|
+
react_production_min.Profiler=r;react_production_min.PureComponent=G;react_production_min.StrictMode=q;react_production_min.Suspense=w;react_production_min.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=W;
|
70
|
+
react_production_min.cloneElement=function(a,b,e){if(null===a||void 0===a)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+a+".");var d=C({},a.props),c=a.key,k=a.ref,h=a._owner;if(null!=b){void 0!==b.ref&&(k=b.ref,h=K.current);void 0!==b.key&&(c=""+b.key);if(a.type&&a.type.defaultProps)var g=a.type.defaultProps;for(f in b)J.call(b,f)&&!L.hasOwnProperty(f)&&(d[f]=void 0===b[f]&&void 0!==g?g[f]:b[f]);}var f=arguments.length-2;if(1===f)d.children=e;else if(1<f){g=Array(f);
|
71
|
+
for(var m=0;m<f;m++)g[m]=arguments[m+2];d.children=g;}return {$$typeof:l,type:a.type,key:c,ref:k,props:d,_owner:h}};react_production_min.createContext=function(a){a={$$typeof:u,_currentValue:a,_currentValue2:a,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null};a.Provider={$$typeof:t,_context:a};return a.Consumer=a};react_production_min.createElement=M;react_production_min.createFactory=function(a){var b=M.bind(null,a);b.type=a;return b};react_production_min.createRef=function(){return {current:null}};
|
72
|
+
react_production_min.forwardRef=function(a){return {$$typeof:v,render:a}};react_production_min.isValidElement=O;react_production_min.lazy=function(a){return {$$typeof:y,_payload:{_status:-1,_result:a},_init:T}};react_production_min.memo=function(a,b){return {$$typeof:x,type:a,compare:void 0===b?null:b}};react_production_min.startTransition=function(a){var b=V.transition;V.transition={};try{a();}finally{V.transition=b;}};react_production_min.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.");};
|
73
|
+
react_production_min.useCallback=function(a,b){return U.current.useCallback(a,b)};react_production_min.useContext=function(a){return U.current.useContext(a)};react_production_min.useDebugValue=function(){};react_production_min.useDeferredValue=function(a){return U.current.useDeferredValue(a)};react_production_min.useEffect=function(a,b){return U.current.useEffect(a,b)};react_production_min.useId=function(){return U.current.useId()};react_production_min.useImperativeHandle=function(a,b,e){return U.current.useImperativeHandle(a,b,e)};
|
74
|
+
react_production_min.useInsertionEffect=function(a,b){return U.current.useInsertionEffect(a,b)};react_production_min.useLayoutEffect=function(a,b){return U.current.useLayoutEffect(a,b)};react_production_min.useMemo=function(a,b){return U.current.useMemo(a,b)};react_production_min.useReducer=function(a,b,e){return U.current.useReducer(a,b,e)};react_production_min.useRef=function(a){return U.current.useRef(a)};react_production_min.useState=function(a){return U.current.useState(a)};react_production_min.useSyncExternalStore=function(a,b,e){return U.current.useSyncExternalStore(a,b,e)};
|
75
|
+
react_production_min.useTransition=function(){return U.current.useTransition()};react_production_min.version="18.2.0";
|
76
|
+
return react_production_min;
|
77
|
+
}
|
78
|
+
|
42
79
|
var react_development = {exports: {}};
|
43
80
|
|
44
81
|
/**
|
@@ -2788,43 +2825,6 @@ function requireReact_development () {
|
|
2788
2825
|
return react_development.exports;
|
2789
2826
|
}
|
2790
2827
|
|
2791
|
-
var react_production_min = {};
|
2792
|
-
|
2793
|
-
/**
|
2794
|
-
* @license React
|
2795
|
-
* react.production.min.js
|
2796
|
-
*
|
2797
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
2798
|
-
*
|
2799
|
-
* This source code is licensed under the MIT license found in the
|
2800
|
-
* LICENSE file in the root directory of this source tree.
|
2801
|
-
*/
|
2802
|
-
|
2803
|
-
var hasRequiredReact_production_min;
|
2804
|
-
|
2805
|
-
function requireReact_production_min () {
|
2806
|
-
if (hasRequiredReact_production_min) return react_production_min;
|
2807
|
-
hasRequiredReact_production_min = 1;
|
2808
|
-
var l=Symbol.for("react.element"),n=Symbol.for("react.portal"),p=Symbol.for("react.fragment"),q=Symbol.for("react.strict_mode"),r=Symbol.for("react.profiler"),t=Symbol.for("react.provider"),u=Symbol.for("react.context"),v=Symbol.for("react.forward_ref"),w=Symbol.for("react.suspense"),x=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),z=Symbol.iterator;function A(a){if(null===a||"object"!==typeof a)return null;a=z&&a[z]||a["@@iterator"];return "function"===typeof a?a:null}
|
2809
|
-
var B={isMounted:function(){return !1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},C=Object.assign,D={};function E(a,b,e){this.props=a;this.context=b;this.refs=D;this.updater=e||B;}E.prototype.isReactComponent={};
|
2810
|
-
E.prototype.setState=function(a,b){if("object"!==typeof a&&"function"!==typeof a&&null!=a)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,a,b,"setState");};E.prototype.forceUpdate=function(a){this.updater.enqueueForceUpdate(this,a,"forceUpdate");};function F(){}F.prototype=E.prototype;function G(a,b,e){this.props=a;this.context=b;this.refs=D;this.updater=e||B;}var H=G.prototype=new F;
|
2811
|
-
H.constructor=G;C(H,E.prototype);H.isPureReactComponent=!0;var I=Array.isArray,J=Object.prototype.hasOwnProperty,K={current:null},L={key:!0,ref:!0,__self:!0,__source:!0};
|
2812
|
-
function M(a,b,e){var d,c={},k=null,h=null;if(null!=b)for(d in void 0!==b.ref&&(h=b.ref),void 0!==b.key&&(k=""+b.key),b)J.call(b,d)&&!L.hasOwnProperty(d)&&(c[d]=b[d]);var g=arguments.length-2;if(1===g)c.children=e;else if(1<g){for(var f=Array(g),m=0;m<g;m++)f[m]=arguments[m+2];c.children=f;}if(a&&a.defaultProps)for(d in g=a.defaultProps,g)void 0===c[d]&&(c[d]=g[d]);return {$$typeof:l,type:a,key:k,ref:h,props:c,_owner:K.current}}
|
2813
|
-
function N(a,b){return {$$typeof:l,type:a.type,key:b,ref:a.ref,props:a.props,_owner:a._owner}}function O(a){return "object"===typeof a&&null!==a&&a.$$typeof===l}function escape(a){var b={"=":"=0",":":"=2"};return "$"+a.replace(/[=:]/g,function(a){return b[a]})}var P=/\/+/g;function Q(a,b){return "object"===typeof a&&null!==a&&null!=a.key?escape(""+a.key):b.toString(36)}
|
2814
|
-
function R(a,b,e,d,c){var k=typeof a;if("undefined"===k||"boolean"===k)a=null;var h=!1;if(null===a)h=!0;else switch(k){case "string":case "number":h=!0;break;case "object":switch(a.$$typeof){case l:case n:h=!0;}}if(h)return h=a,c=c(h),a=""===d?"."+Q(h,0):d,I(c)?(e="",null!=a&&(e=a.replace(P,"$&/")+"/"),R(c,b,e,"",function(a){return a})):null!=c&&(O(c)&&(c=N(c,e+(!c.key||h&&h.key===c.key?"":(""+c.key).replace(P,"$&/")+"/")+a)),b.push(c)),1;h=0;d=""===d?".":d+":";if(I(a))for(var g=0;g<a.length;g++){k=
|
2815
|
-
a[g];var f=d+Q(k,g);h+=R(k,b,e,f,c);}else if(f=A(a),"function"===typeof f)for(a=f.call(a),g=0;!(k=a.next()).done;)k=k.value,f=d+Q(k,g++),h+=R(k,b,e,f,c);else if("object"===k)throw b=String(a),Error("Objects are not valid as a React child (found: "+("[object Object]"===b?"object with keys {"+Object.keys(a).join(", ")+"}":b)+"). If you meant to render a collection of children, use an array instead.");return h}
|
2816
|
-
function S(a,b,e){if(null==a)return a;var d=[],c=0;R(a,d,"","",function(a){return b.call(e,a,c++)});return d}function T(a){if(-1===a._status){var b=a._result;b=b();b.then(function(b){if(0===a._status||-1===a._status)a._status=1,a._result=b;},function(b){if(0===a._status||-1===a._status)a._status=2,a._result=b;});-1===a._status&&(a._status=0,a._result=b);}if(1===a._status)return a._result.default;throw a._result;}
|
2817
|
-
var U={current:null},V={transition:null},W={ReactCurrentDispatcher:U,ReactCurrentBatchConfig:V,ReactCurrentOwner:K};react_production_min.Children={map:S,forEach:function(a,b,e){S(a,function(){b.apply(this,arguments);},e);},count:function(a){var b=0;S(a,function(){b++;});return b},toArray:function(a){return S(a,function(a){return a})||[]},only:function(a){if(!O(a))throw Error("React.Children.only expected to receive a single React element child.");return a}};react_production_min.Component=E;react_production_min.Fragment=p;
|
2818
|
-
react_production_min.Profiler=r;react_production_min.PureComponent=G;react_production_min.StrictMode=q;react_production_min.Suspense=w;react_production_min.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=W;
|
2819
|
-
react_production_min.cloneElement=function(a,b,e){if(null===a||void 0===a)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+a+".");var d=C({},a.props),c=a.key,k=a.ref,h=a._owner;if(null!=b){void 0!==b.ref&&(k=b.ref,h=K.current);void 0!==b.key&&(c=""+b.key);if(a.type&&a.type.defaultProps)var g=a.type.defaultProps;for(f in b)J.call(b,f)&&!L.hasOwnProperty(f)&&(d[f]=void 0===b[f]&&void 0!==g?g[f]:b[f]);}var f=arguments.length-2;if(1===f)d.children=e;else if(1<f){g=Array(f);
|
2820
|
-
for(var m=0;m<f;m++)g[m]=arguments[m+2];d.children=g;}return {$$typeof:l,type:a.type,key:c,ref:k,props:d,_owner:h}};react_production_min.createContext=function(a){a={$$typeof:u,_currentValue:a,_currentValue2:a,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null};a.Provider={$$typeof:t,_context:a};return a.Consumer=a};react_production_min.createElement=M;react_production_min.createFactory=function(a){var b=M.bind(null,a);b.type=a;return b};react_production_min.createRef=function(){return {current:null}};
|
2821
|
-
react_production_min.forwardRef=function(a){return {$$typeof:v,render:a}};react_production_min.isValidElement=O;react_production_min.lazy=function(a){return {$$typeof:y,_payload:{_status:-1,_result:a},_init:T}};react_production_min.memo=function(a,b){return {$$typeof:x,type:a,compare:void 0===b?null:b}};react_production_min.startTransition=function(a){var b=V.transition;V.transition={};try{a();}finally{V.transition=b;}};react_production_min.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.");};
|
2822
|
-
react_production_min.useCallback=function(a,b){return U.current.useCallback(a,b)};react_production_min.useContext=function(a){return U.current.useContext(a)};react_production_min.useDebugValue=function(){};react_production_min.useDeferredValue=function(a){return U.current.useDeferredValue(a)};react_production_min.useEffect=function(a,b){return U.current.useEffect(a,b)};react_production_min.useId=function(){return U.current.useId()};react_production_min.useImperativeHandle=function(a,b,e){return U.current.useImperativeHandle(a,b,e)};
|
2823
|
-
react_production_min.useInsertionEffect=function(a,b){return U.current.useInsertionEffect(a,b)};react_production_min.useLayoutEffect=function(a,b){return U.current.useLayoutEffect(a,b)};react_production_min.useMemo=function(a,b){return U.current.useMemo(a,b)};react_production_min.useReducer=function(a,b,e){return U.current.useReducer(a,b,e)};react_production_min.useRef=function(a){return U.current.useRef(a)};react_production_min.useState=function(a){return U.current.useState(a)};react_production_min.useSyncExternalStore=function(a,b,e){return U.current.useSyncExternalStore(a,b,e)};
|
2824
|
-
react_production_min.useTransition=function(){return U.current.useTransition()};react_production_min.version="18.2.0";
|
2825
|
-
return react_production_min;
|
2826
|
-
}
|
2827
|
-
|
2828
2828
|
if (process.env.NODE_ENV === 'production') {
|
2829
2829
|
react.exports = requireReact_production_min();
|
2830
2830
|
} else {
|
@@ -3245,7 +3245,7 @@ const MenuItem = ({ testId = null, cssClasses = null, style = null, text, isActi
|
|
3245
3245
|
return (React.createElement("a", { "data-testid": menuItemTestId, className: menuItemClasses, style: style !== null && style !== void 0 ? style : undefined, "aria-hidden": 'true', onClick: onClick !== null && onClick !== void 0 ? onClick : undefined }, text));
|
3246
3246
|
};
|
3247
3247
|
|
3248
|
-
const Image = ({ testId = null, containerTestId = null, cssClasses = null, containerCssClasses = null, style = null, containerStyle = null, src, alt = null, fixedSize =
|
3248
|
+
const Image = ({ testId = null, containerTestId = null, cssClasses = null, containerCssClasses = null, style = null, containerStyle = null, src, alt = null, fixedSize = null, isRounded = false }) => {
|
3249
3249
|
const imageContainerClasses = parseClasses([
|
3250
3250
|
'image',
|
3251
3251
|
fixedSize,
|
@@ -3293,6 +3293,32 @@ const LevelHeader = ({ testId = null, cssClasses = null, style = null, header, v
|
|
3293
3293
|
React.createElement("p", { className: 'title' }, value)));
|
3294
3294
|
};
|
3295
3295
|
|
3296
|
+
const Tile = ({ testId = null, cssClasses = null, style = null, children, context = null, size = null, color = null, isVertical = false }) => {
|
3297
|
+
const tileClasses = parseClasses([
|
3298
|
+
'tile',
|
3299
|
+
context,
|
3300
|
+
size,
|
3301
|
+
color ? `notification ${color}` : null,
|
3302
|
+
isVertical ? 'is-vertical' : null,
|
3303
|
+
cssClasses
|
3304
|
+
]);
|
3305
|
+
const tileTestId = testId !== null && testId !== void 0 ? testId : parseTestId({
|
3306
|
+
tag: 'tile',
|
3307
|
+
parsedClasses: tileClasses,
|
3308
|
+
rules: [
|
3309
|
+
{
|
3310
|
+
regExp: /notification |tile/gm,
|
3311
|
+
replacer: ''
|
3312
|
+
},
|
3313
|
+
{
|
3314
|
+
regExp: /is-/gm,
|
3315
|
+
replacer: '-'
|
3316
|
+
}
|
3317
|
+
]
|
3318
|
+
});
|
3319
|
+
return (React.createElement("section", { "data-testid": tileTestId, className: tileClasses, style: style !== null && style !== void 0 ? style : undefined }, children));
|
3320
|
+
};
|
3321
|
+
|
3296
3322
|
const generateKey = (max = 5000, min = 1) => {
|
3297
3323
|
max = Math.floor(max);
|
3298
3324
|
min = Math.ceil(min);
|
@@ -3641,6 +3667,58 @@ const LevelItem = ({ testId = null, cssClasses = null, style = null, content, is
|
|
3641
3667
|
return (React.createElement("section", { "data-testid": levelItemTestId, className: levelItemClasses, style: style !== null && style !== void 0 ? style : undefined }, content));
|
3642
3668
|
};
|
3643
3669
|
|
3670
|
+
const TileBox = ({ testId = null, cssClasses = 'box', style = null, children = null, context = 'is-child', size, color, isVertical }) => {
|
3671
|
+
const tileBoxClasses = parseClasses([
|
3672
|
+
'tileBox',
|
3673
|
+
context,
|
3674
|
+
size,
|
3675
|
+
color ? `notification ${color}` : null,
|
3676
|
+
isVertical ? 'is-vertical' : null,
|
3677
|
+
cssClasses
|
3678
|
+
]);
|
3679
|
+
const tileBoxTestId = testId !== null && testId !== void 0 ? testId : parseTestId({
|
3680
|
+
tag: 'tileBox',
|
3681
|
+
parsedClasses: tileBoxClasses,
|
3682
|
+
rules: [
|
3683
|
+
{
|
3684
|
+
regExp: /notification |tileBox/gm,
|
3685
|
+
replacer: ''
|
3686
|
+
},
|
3687
|
+
{
|
3688
|
+
regExp: /is-/gm,
|
3689
|
+
replacer: '-'
|
3690
|
+
}
|
3691
|
+
]
|
3692
|
+
});
|
3693
|
+
return (React.createElement(Tile, { testId: tileBoxTestId, cssClasses: cssClasses, style: style !== null && style !== void 0 ? style : undefined, isVertical: isVertical, context: context, size: size, color: color }, children !== null && children !== void 0 ? children : undefined));
|
3694
|
+
};
|
3695
|
+
|
3696
|
+
const Footer = ({ testId = null, containerTestId = null, cssClasses = null, containerCssClasses = null, style = null, containerStyle = null, content, isContentCentered = false }) => {
|
3697
|
+
const footerContainerClasses = parseClasses(['footer', containerCssClasses]);
|
3698
|
+
const footerContentClasses = parseClasses([
|
3699
|
+
'content',
|
3700
|
+
isContentCentered ? 'has-text-centered' : null,
|
3701
|
+
cssClasses
|
3702
|
+
]);
|
3703
|
+
const footerContainerTestId = containerTestId !== null && containerTestId !== void 0 ? containerTestId : parseTestId({ tag: 'footer', parsedClasses: footerContainerClasses });
|
3704
|
+
const footerContentTestId = testId !== null && testId !== void 0 ? testId : parseTestId({
|
3705
|
+
tag: 'content',
|
3706
|
+
parsedClasses: footerContentClasses,
|
3707
|
+
rules: [
|
3708
|
+
{
|
3709
|
+
regExp: /is-|has-/gm,
|
3710
|
+
replacer: '-'
|
3711
|
+
},
|
3712
|
+
{
|
3713
|
+
regExp: /content/gm,
|
3714
|
+
replacer: ''
|
3715
|
+
}
|
3716
|
+
]
|
3717
|
+
});
|
3718
|
+
return (React.createElement("section", { "data-testid": footerContainerTestId, className: footerContainerClasses, style: containerStyle !== null && containerStyle !== void 0 ? containerStyle : undefined },
|
3719
|
+
React.createElement("section", { "data-testid": footerContentTestId, className: footerContentClasses, style: style !== null && style !== void 0 ? style : undefined }, content)));
|
3720
|
+
};
|
3721
|
+
|
3644
3722
|
const renderFieldLabel = (labelText) => labelText ? (React.createElement("label", { "data-testid": 'test-form-field-label', className: 'label' }, labelText)) : null;
|
3645
3723
|
const renderFieldBody = (inputControlConfig, isGrouped) => {
|
3646
3724
|
if (isGrouped) {
|
@@ -3717,6 +3795,31 @@ const Hero = ({ testId = null, cssClasses = null, style = null, header = null, b
|
|
3717
3795
|
size === 'is-fullheight' ? (React.createElement("section", { "data-testid": `${heroTestId}-foot`, className: 'hero-foot' }, footer)) : null));
|
3718
3796
|
};
|
3719
3797
|
|
3798
|
+
const TileGroup = ({ testId = null, cssClasses = null, style = null, context = 'is-ancestor', size = null, isVertical = false, groupConfig }) => {
|
3799
|
+
const tileGroupClasses = parseClasses([
|
3800
|
+
'tileGroup',
|
3801
|
+
context,
|
3802
|
+
size,
|
3803
|
+
isVertical ? 'is-vertical' : null,
|
3804
|
+
cssClasses
|
3805
|
+
]);
|
3806
|
+
const tileBoxTestId = testId !== null && testId !== void 0 ? testId : parseTestId({
|
3807
|
+
tag: 'tileGroup',
|
3808
|
+
parsedClasses: tileGroupClasses,
|
3809
|
+
rules: [
|
3810
|
+
{
|
3811
|
+
regExp: /tileGroup/gm,
|
3812
|
+
replacer: ''
|
3813
|
+
},
|
3814
|
+
{
|
3815
|
+
regExp: /is-/gm,
|
3816
|
+
replacer: '-'
|
3817
|
+
}
|
3818
|
+
]
|
3819
|
+
});
|
3820
|
+
return (React.createElement(Tile, { testId: tileBoxTestId, cssClasses: cssClasses !== null && cssClasses !== void 0 ? cssClasses : undefined, style: style !== null && style !== void 0 ? style : undefined, context: context, size: size !== null && size !== void 0 ? size : undefined, isVertical: isVertical }, groupConfig.map(tileConfig => (React.createElement(Tile, Object.assign({ key: `tile-item-${generateKey()}` }, tileConfig))))));
|
3821
|
+
};
|
3822
|
+
|
3720
3823
|
exports.Block = Block;
|
3721
3824
|
exports.Box = Box;
|
3722
3825
|
exports.BreadcrumbItem = BreadcrumbItem;
|
@@ -3731,6 +3834,7 @@ exports.Dropdown = Dropdown;
|
|
3731
3834
|
exports.DropdownItem = DropdownItem;
|
3732
3835
|
exports.DropdownTrigger = DropdownTrigger;
|
3733
3836
|
exports.File = File;
|
3837
|
+
exports.Footer = Footer;
|
3734
3838
|
exports.FormField = FormField;
|
3735
3839
|
exports.Hero = Hero;
|
3736
3840
|
exports.Icon = Icon;
|
@@ -3758,5 +3862,8 @@ exports.TabItem = TabItem;
|
|
3758
3862
|
exports.Tabs = Tabs;
|
3759
3863
|
exports.Tag = Tag;
|
3760
3864
|
exports.TextArea = TextArea;
|
3865
|
+
exports.Tile = Tile;
|
3866
|
+
exports.TileBox = TileBox;
|
3867
|
+
exports.TileGroup = TileGroup;
|
3761
3868
|
exports.Title = Title;
|
3762
3869
|
//# sourceMappingURL=index.js.map
|