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.
Files changed (32) hide show
  1. package/dist/cjs/index.js +145 -38
  2. package/dist/cjs/index.js.map +1 -1
  3. package/dist/cjs/types/components/atoms/Tile/index.d.ts +4 -0
  4. package/dist/cjs/types/components/atoms/index.d.ts +1 -0
  5. package/dist/cjs/types/components/molecules/Footer/index.d.ts +4 -0
  6. package/dist/cjs/types/components/molecules/TileBox/index.d.ts +4 -0
  7. package/dist/cjs/types/components/molecules/index.d.ts +2 -0
  8. package/dist/cjs/types/components/organisms/TileGroup/index.d.ts +4 -0
  9. package/dist/cjs/types/components/organisms/index.d.ts +1 -0
  10. package/dist/cjs/types/interfaces/atomProps.d.ts +14 -3
  11. package/dist/cjs/types/interfaces/moleculeProps.d.ts +10 -3
  12. package/dist/cjs/types/interfaces/organismProps.d.ts +9 -4
  13. package/dist/cjs/types/types/domTypes.d.ts +9 -0
  14. package/dist/cjs/types/types/styleTypes.d.ts +4 -2
  15. package/dist/esm/index.js +142 -39
  16. package/dist/esm/index.js.map +1 -1
  17. package/dist/esm/types/components/atoms/Tile/index.d.ts +4 -0
  18. package/dist/esm/types/components/atoms/index.d.ts +1 -0
  19. package/dist/esm/types/components/molecules/Footer/index.d.ts +4 -0
  20. package/dist/esm/types/components/molecules/TileBox/index.d.ts +4 -0
  21. package/dist/esm/types/components/molecules/index.d.ts +2 -0
  22. package/dist/esm/types/components/organisms/TileGroup/index.d.ts +4 -0
  23. package/dist/esm/types/components/organisms/index.d.ts +1 -0
  24. package/dist/esm/types/interfaces/atomProps.d.ts +14 -3
  25. package/dist/esm/types/interfaces/moleculeProps.d.ts +10 -3
  26. package/dist/esm/types/interfaces/organismProps.d.ts +9 -4
  27. package/dist/esm/types/types/domTypes.d.ts +9 -0
  28. package/dist/esm/types/types/styleTypes.d.ts +4 -2
  29. package/dist/index.d.ts +41 -7
  30. package/package.json +5 -5
  31. package/dist/cjs/types/types/componentEnums.d.ts +0 -8
  32. package/dist/esm/types/types/componentEnums.d.ts +0 -8
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { TileProps } from '../../../interfaces/atomProps';
3
+ declare const Tile: React.FC<TileProps>;
4
+ export default Tile;
@@ -21,3 +21,4 @@ export { default as Image } from './Image';
21
21
  export { default as PaginationItem } from './PaginationItem';
22
22
  export { default as TabItem } from './TabItem';
23
23
  export { default as LevelHeader } from './LevelHeader';
24
+ export { default as Tile } from './Tile';
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { FooterProps } from '../../../interfaces/moleculeProps';
3
+ declare const Footer: React.FC<FooterProps>;
4
+ export default Footer;
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { TileBoxProps } from '../../../interfaces/moleculeProps';
3
+ declare const TileBox: React.FC<TileBoxProps>;
4
+ export default TileBox;
@@ -13,3 +13,5 @@ export { default as InputControl } from './InputControl';
13
13
  export { default as PanelBlock } from './PanelBlock';
14
14
  export { default as PanelTabs } from './PanelTabs';
15
15
  export { default as LevelItem } from '../molecules/LevelItem';
16
+ export { default as TileBox } from './TileBox';
17
+ export { default as Footer } from './Footer';
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { TileGroupProps } from '../../../interfaces/organismProps';
3
+ declare const TileGroup: React.FC<TileGroupProps>;
4
+ export default TileGroup;
@@ -2,3 +2,4 @@ export { default as FormField } from './FormField';
2
2
  export { default as Panel } from './Panel';
3
3
  export { default as Level } from './Level';
4
4
  export { default as Hero } from './Hero';
5
+ export { default as TileGroup } from './TileGroup';
@@ -1,8 +1,7 @@
1
1
  import React from 'react';
2
2
  import { ElementProps, ComposedElementProps, ClickeableProps } from './commonProps';
3
- import { BasicColorType, ColumnOffsetType, ColumnSizeType, FixedImageSizeType, IconColorModeType, ElementSizeType, SizeWithoutNormalType, TextColorType, TitleSizeType, RightLeftAlignType } from '../types/styleTypes';
4
- import { DropdownItemType, InputType } from '../types/domTypes';
5
- import { ChildrenType } from '../types/componentEnums';
3
+ import { BasicColorType, ColumnOffsetType, ColumnSizeType, FixedImageSizeType, IconColorModeType, ElementSizeType, SizeWithoutNormalType, TextColorType, TitleSizeType, RightLeftAlignType, CommonSizeType } from '../types/styleTypes';
4
+ import { DropdownItemType, InputType, ChildrenType, TileContextType } from '../types/domTypes';
6
5
  export interface ColumnProps extends ElementProps, React.ComponentPropsWithoutRef<'section'> {
7
6
  /** `Attribute` Reffers to the component or array of components that will be shown inside the column */
8
7
  children?: ChildrenType;
@@ -278,3 +277,15 @@ export interface LevelHeaderProps extends ElementProps {
278
277
  /** `Attribute` `Required` Main value (numeric or text) to be shown in a bigger scale below `header` */
279
278
  value: string | number;
280
279
  }
280
+ export interface TileProps extends ElementProps {
281
+ /** `Attribute` Reffers to the component or array of components that will be shown inside the tile */
282
+ children?: ChildrenType;
283
+ /** `Attribute` Indicates its hierarchy level based on [Bulma documantation](https://bulma.io/documentation/layout/tiles/#nesting-requirements). Selection any level besides `is-child` will invalidate any `color` you select */
284
+ context?: TileContextType;
285
+ /** `Styling` Set tile's size */
286
+ size?: CommonSizeType;
287
+ /** `Styling` Color based on bulma's color tokens */
288
+ color?: BasicColorType;
289
+ /** `Styling` Used for hierarchy level as ancestor or parent. It selects its children in a vertical format (like a column) */
290
+ isVertical?: boolean;
291
+ }
@@ -1,8 +1,7 @@
1
1
  import { ClickeableProps, ComposedElementProps, ElementProps } from './commonProps';
2
- import { BreadcrumbItemProps, ButtonProps, ColumnProps, DeleteProps, DropdownItemProps, IconProps, InputProps, MenuItemProps, PaginationItemProps, TabItemProps } from './atomProps';
2
+ import { BreadcrumbItemProps, ButtonProps, ColumnProps, DeleteProps, DropdownItemProps, IconProps, InputProps, MenuItemProps, PaginationItemProps, TabItemProps, TileProps } from './atomProps';
3
3
  import { BasicColorType, RightCenteredAlignType, BreadcrumbSeparatorType, ColumnGapType, SizeWithoutNormalType, TabsFormatType } from '../types/styleTypes';
4
- import { PanelBlockItemType } from '../types/domTypes';
5
- import { ChildrenType, SingleChildType } from '../types/componentEnums';
4
+ import { ChildrenType, SingleChildType, PanelBlockItemType } from '../types/domTypes';
6
5
  export interface ButtonGroupProps extends ElementProps {
7
6
  /** `Atribute` `Required` Array of `Button` objects that will be shown */
8
7
  buttonList: ButtonProps[];
@@ -174,4 +173,12 @@ export interface LevelItemProps extends ElementProps {
174
173
  /** `Styling` Centers item's content horizontally */
175
174
  isCentered?: boolean;
176
175
  }
176
+ export interface TileBoxProps extends TileProps {
177
+ }
178
+ export interface FooterProps extends ComposedElementProps {
179
+ /** `Attribute` `Required` Reffers to the component, list of components or string content that will be shown inside the footer */
180
+ content: ChildrenType;
181
+ /** `Styling` Centers footer¿s content horizontally */
182
+ isContentCentered?: boolean;
183
+ }
177
184
  export {};
@@ -1,7 +1,8 @@
1
1
  import { ElementProps } from './commonProps';
2
2
  import { InputControlProps, LevelItemProps, PanelBlockProps, PanelTabsProps } from './moleculeProps';
3
3
  import { BasicColorType, SizeWithoutNormalType } from '../types/styleTypes';
4
- import { ChildrenType } from '../types/componentEnums';
4
+ import { ChildrenType } from '../types/domTypes';
5
+ import { TileProps } from './atomProps';
5
6
  export interface FormFieldHelperProps {
6
7
  text?: string;
7
8
  color?: BasicColorType;
@@ -29,11 +30,11 @@ export interface PanelProps extends ElementProps {
29
30
  color?: BasicColorType;
30
31
  }
31
32
  export interface LevelProps extends ElementProps {
32
- /** `Attribute` A list of `LevelItem` configurations that will displayed in Level's left side */
33
+ /** `Attribute` A list of `LevelItem` configurations that will br displayed in Level's left side */
33
34
  leftSide?: LevelItemProps[];
34
- /** `Attribute` A list of `LevelItem` configurations that will displayed in Level's center */
35
+ /** `Attribute` A list of `LevelItem` configurations that will br displayed in Level's center */
35
36
  centerSide?: LevelItemProps[];
36
- /** `Attribute` A list of `LevelItem` configurations that will displayed in Level's right side */
37
+ /** `Attribute` A list of `LevelItem` configurations that will br displayed in Level's right side */
37
38
  rightSide?: LevelItemProps[];
38
39
  /** `Styling` Will adjust the navigator on horizontal on mobile as well */
39
40
  isMobile?: boolean;
@@ -50,3 +51,7 @@ export interface HeroProps extends ElementProps {
50
51
  /** `Styling` Color based on bulma's text color tokens */
51
52
  color?: BasicColorType;
52
53
  }
54
+ export interface TileGroupProps extends ElementProps, Pick<TileProps, 'context' | 'isVertical' | 'size'> {
55
+ /** `Attribute` `Required` A list of `Title` configurations that will be displayed in a grid mode on the screen */
56
+ groupConfig: TileProps[];
57
+ }
@@ -1,4 +1,13 @@
1
+ import React from 'react';
1
2
  export type ButtonType = 'submit' | 'reset' | 'button';
2
3
  export type InputType = 'text' | 'password' | 'email' | 'tel';
3
4
  export type DropdownItemType = 'item' | 'link' | 'divider';
4
5
  export type PanelBlockItemType = 'icon' | 'control' | 'button';
6
+ export type ChildrenType = string | React.ReactElement | React.ReactElement[];
7
+ export type SingleChildType = Exclude<ChildrenType, React.ReactElement[]>;
8
+ export declare enum IconSizeEnum {
9
+ 'is-small' = 24,
10
+ 'is-medium' = 36,
11
+ 'is-large' = 48
12
+ }
13
+ export type TileContextType = 'is-child' | 'is-parent' | 'is-ancestor';
@@ -1,6 +1,8 @@
1
- export type ColumnSizeType = 'is-three-quarters' | 'is-two-thirds' | 'is-half' | 'is-one-third' | 'is-one-quarter' | 'is-full' | 'is-four-fifths' | 'is-three-fifths' | 'is-two-fifths' | 'is-one-fifth' | 'is-1' | 'is-2' | 'is-3' | 'is-4' | 'is-5' | 'is-6' | 'is-7' | 'is-8' | 'is-9' | 'is-10' | 'is-11' | 'is-12';
2
- export type TitleSizeType = 'is-1' | 'is-2' | 'is-3' | 'is-4' | 'is-5' | 'is-6';
1
+ export type CommonSizeType = 'is-1' | 'is-2' | 'is-3' | 'is-4' | 'is-5' | 'is-6' | 'is-7' | 'is-8' | 'is-9' | 'is-10' | 'is-11' | 'is-12';
2
+ export type AbstractSizeType = 'is-three-quarters' | 'is-two-thirds' | 'is-half' | 'is-one-third' | 'is-one-quarter' | 'is-full' | 'is-four-fifths' | 'is-three-fifths' | 'is-two-fifths' | 'is-one-fifth';
3
+ export type ColumnSizeType = CommonSizeType | AbstractSizeType;
3
4
  export type ColumnOffsetType = 'is-offset-1' | 'is-offset-2' | 'is-offset-3' | 'is-offset-4' | 'is-offset-5' | 'is-offset-6' | 'is-offset-7' | 'is-offset-8' | 'is-offset-9' | 'is-offset-10' | 'is-offset-11' | 'is-offset-12';
5
+ export type TitleSizeType = 'is-1' | 'is-2' | 'is-3' | 'is-4' | 'is-5' | 'is-6';
4
6
  export type BasicColorType = 'is-white' | 'is-light' | 'is-dark' | 'is-black' | 'is-text' | 'is-ghost' | 'is-primary' | 'is-link' | 'is-info' | 'is-success' | 'is-warning' | 'is-danger';
5
7
  export type TextColorType = 'has-text-white' | 'has-text-black' | 'has-text-light' | 'has-text-dark' | 'has-text-primary' | 'has-text-link' | 'has-text-info' | 'has-text-success' | 'has-text-warning' | 'has-text-danger';
6
8
  export type FixedImageSizeType = 'is-16x16' | 'is-24x24' | 'is-32x32' | 'is-48x48' | 'is-64x64' | 'is-96x96' | 'is-128x128' | 'is-square' | 'is-1by1' | 'is-5by4' | 'is-4by3' | 'is-3by2' | 'is-5by3' | 'is-16by9' | 'is-2by1' | 'is-3by1' | 'is-4by5' | 'is-3by4' | 'is-2by3' | 'is-3by5' | 'is-9by16' | 'is-1by2' | 'is-1by3';
package/dist/esm/index.js CHANGED
@@ -37,6 +37,43 @@ function getDefaultExportFromCjs (x) {
37
37
 
38
38
  var react = {exports: {}};
39
39
 
40
+ var react_production_min = {};
41
+
42
+ /**
43
+ * @license React
44
+ * react.production.min.js
45
+ *
46
+ * Copyright (c) Facebook, Inc. and its affiliates.
47
+ *
48
+ * This source code is licensed under the MIT license found in the
49
+ * LICENSE file in the root directory of this source tree.
50
+ */
51
+
52
+ var hasRequiredReact_production_min;
53
+
54
+ function requireReact_production_min () {
55
+ if (hasRequiredReact_production_min) return react_production_min;
56
+ hasRequiredReact_production_min = 1;
57
+ 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}
58
+ 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={};
59
+ 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;
60
+ 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};
61
+ 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}}
62
+ 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)}
63
+ 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=
64
+ 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}
65
+ 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;}
66
+ 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;
67
+ 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;
68
+ 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);
69
+ 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}};
70
+ 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.");};
71
+ 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)};
72
+ 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)};
73
+ react_production_min.useTransition=function(){return U.current.useTransition()};react_production_min.version="18.2.0";
74
+ return react_production_min;
75
+ }
76
+
40
77
  var react_development = {exports: {}};
41
78
 
42
79
  /**
@@ -2786,43 +2823,6 @@ function requireReact_development () {
2786
2823
  return react_development.exports;
2787
2824
  }
2788
2825
 
2789
- var react_production_min = {};
2790
-
2791
- /**
2792
- * @license React
2793
- * react.production.min.js
2794
- *
2795
- * Copyright (c) Facebook, Inc. and its affiliates.
2796
- *
2797
- * This source code is licensed under the MIT license found in the
2798
- * LICENSE file in the root directory of this source tree.
2799
- */
2800
-
2801
- var hasRequiredReact_production_min;
2802
-
2803
- function requireReact_production_min () {
2804
- if (hasRequiredReact_production_min) return react_production_min;
2805
- hasRequiredReact_production_min = 1;
2806
- 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}
2807
- 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={};
2808
- 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;
2809
- 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};
2810
- 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}}
2811
- 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)}
2812
- 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=
2813
- 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}
2814
- 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;}
2815
- 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;
2816
- 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;
2817
- 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);
2818
- 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}};
2819
- 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.");};
2820
- 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)};
2821
- 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)};
2822
- react_production_min.useTransition=function(){return U.current.useTransition()};react_production_min.version="18.2.0";
2823
- return react_production_min;
2824
- }
2825
-
2826
2826
  if (process.env.NODE_ENV === 'production') {
2827
2827
  react.exports = requireReact_production_min();
2828
2828
  } else {
@@ -3243,7 +3243,7 @@ const MenuItem = ({ testId = null, cssClasses = null, style = null, text, isActi
3243
3243
  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));
3244
3244
  };
3245
3245
 
3246
- const Image = ({ testId = null, containerTestId = null, cssClasses = null, containerCssClasses = null, style = null, containerStyle = null, src, alt = null, fixedSize = 'is-1by1', isRounded = false }) => {
3246
+ const Image = ({ testId = null, containerTestId = null, cssClasses = null, containerCssClasses = null, style = null, containerStyle = null, src, alt = null, fixedSize = null, isRounded = false }) => {
3247
3247
  const imageContainerClasses = parseClasses([
3248
3248
  'image',
3249
3249
  fixedSize,
@@ -3291,6 +3291,32 @@ const LevelHeader = ({ testId = null, cssClasses = null, style = null, header, v
3291
3291
  React.createElement("p", { className: 'title' }, value)));
3292
3292
  };
3293
3293
 
3294
+ const Tile = ({ testId = null, cssClasses = null, style = null, children, context = null, size = null, color = null, isVertical = false }) => {
3295
+ const tileClasses = parseClasses([
3296
+ 'tile',
3297
+ context,
3298
+ size,
3299
+ color ? `notification ${color}` : null,
3300
+ isVertical ? 'is-vertical' : null,
3301
+ cssClasses
3302
+ ]);
3303
+ const tileTestId = testId !== null && testId !== void 0 ? testId : parseTestId({
3304
+ tag: 'tile',
3305
+ parsedClasses: tileClasses,
3306
+ rules: [
3307
+ {
3308
+ regExp: /notification |tile/gm,
3309
+ replacer: ''
3310
+ },
3311
+ {
3312
+ regExp: /is-/gm,
3313
+ replacer: '-'
3314
+ }
3315
+ ]
3316
+ });
3317
+ return (React.createElement("section", { "data-testid": tileTestId, className: tileClasses, style: style !== null && style !== void 0 ? style : undefined }, children));
3318
+ };
3319
+
3294
3320
  const generateKey = (max = 5000, min = 1) => {
3295
3321
  max = Math.floor(max);
3296
3322
  min = Math.ceil(min);
@@ -3639,6 +3665,58 @@ const LevelItem = ({ testId = null, cssClasses = null, style = null, content, is
3639
3665
  return (React.createElement("section", { "data-testid": levelItemTestId, className: levelItemClasses, style: style !== null && style !== void 0 ? style : undefined }, content));
3640
3666
  };
3641
3667
 
3668
+ const TileBox = ({ testId = null, cssClasses = 'box', style = null, children = null, context = 'is-child', size, color, isVertical }) => {
3669
+ const tileBoxClasses = parseClasses([
3670
+ 'tileBox',
3671
+ context,
3672
+ size,
3673
+ color ? `notification ${color}` : null,
3674
+ isVertical ? 'is-vertical' : null,
3675
+ cssClasses
3676
+ ]);
3677
+ const tileBoxTestId = testId !== null && testId !== void 0 ? testId : parseTestId({
3678
+ tag: 'tileBox',
3679
+ parsedClasses: tileBoxClasses,
3680
+ rules: [
3681
+ {
3682
+ regExp: /notification |tileBox/gm,
3683
+ replacer: ''
3684
+ },
3685
+ {
3686
+ regExp: /is-/gm,
3687
+ replacer: '-'
3688
+ }
3689
+ ]
3690
+ });
3691
+ 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));
3692
+ };
3693
+
3694
+ const Footer = ({ testId = null, containerTestId = null, cssClasses = null, containerCssClasses = null, style = null, containerStyle = null, content, isContentCentered = false }) => {
3695
+ const footerContainerClasses = parseClasses(['footer', containerCssClasses]);
3696
+ const footerContentClasses = parseClasses([
3697
+ 'content',
3698
+ isContentCentered ? 'has-text-centered' : null,
3699
+ cssClasses
3700
+ ]);
3701
+ const footerContainerTestId = containerTestId !== null && containerTestId !== void 0 ? containerTestId : parseTestId({ tag: 'footer', parsedClasses: footerContainerClasses });
3702
+ const footerContentTestId = testId !== null && testId !== void 0 ? testId : parseTestId({
3703
+ tag: 'content',
3704
+ parsedClasses: footerContentClasses,
3705
+ rules: [
3706
+ {
3707
+ regExp: /is-|has-/gm,
3708
+ replacer: '-'
3709
+ },
3710
+ {
3711
+ regExp: /content/gm,
3712
+ replacer: ''
3713
+ }
3714
+ ]
3715
+ });
3716
+ return (React.createElement("section", { "data-testid": footerContainerTestId, className: footerContainerClasses, style: containerStyle !== null && containerStyle !== void 0 ? containerStyle : undefined },
3717
+ React.createElement("section", { "data-testid": footerContentTestId, className: footerContentClasses, style: style !== null && style !== void 0 ? style : undefined }, content)));
3718
+ };
3719
+
3642
3720
  const renderFieldLabel = (labelText) => labelText ? (React.createElement("label", { "data-testid": 'test-form-field-label', className: 'label' }, labelText)) : null;
3643
3721
  const renderFieldBody = (inputControlConfig, isGrouped) => {
3644
3722
  if (isGrouped) {
@@ -3715,5 +3793,30 @@ const Hero = ({ testId = null, cssClasses = null, style = null, header = null, b
3715
3793
  size === 'is-fullheight' ? (React.createElement("section", { "data-testid": `${heroTestId}-foot`, className: 'hero-foot' }, footer)) : null));
3716
3794
  };
3717
3795
 
3718
- export { Block, Box, BreadcrumbItem, Breadcrumbs, Button, ButtonGroup, CheckBox as Checkbox, Column, ColumnGroup, Delete, Dropdown, DropdownItem, DropdownTrigger, File, FormField, Hero, Icon, Image, Input, InputControl, Level, LevelHeader, LevelItem, Menu, MenuItem, MenuList, Message, Modal, Notification, Pagination, PaginationItem, Panel, PanelBlock, PanelTabs, ProgressBar, RadioButton, Select, TabItem, Tabs, Tag, TextArea, Title };
3796
+ const TileGroup = ({ testId = null, cssClasses = null, style = null, context = 'is-ancestor', size = null, isVertical = false, groupConfig }) => {
3797
+ const tileGroupClasses = parseClasses([
3798
+ 'tileGroup',
3799
+ context,
3800
+ size,
3801
+ isVertical ? 'is-vertical' : null,
3802
+ cssClasses
3803
+ ]);
3804
+ const tileBoxTestId = testId !== null && testId !== void 0 ? testId : parseTestId({
3805
+ tag: 'tileGroup',
3806
+ parsedClasses: tileGroupClasses,
3807
+ rules: [
3808
+ {
3809
+ regExp: /tileGroup/gm,
3810
+ replacer: ''
3811
+ },
3812
+ {
3813
+ regExp: /is-/gm,
3814
+ replacer: '-'
3815
+ }
3816
+ ]
3817
+ });
3818
+ 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))))));
3819
+ };
3820
+
3821
+ export { Block, Box, BreadcrumbItem, Breadcrumbs, Button, ButtonGroup, CheckBox as Checkbox, Column, ColumnGroup, Delete, Dropdown, DropdownItem, DropdownTrigger, File, Footer, FormField, Hero, Icon, Image, Input, InputControl, Level, LevelHeader, LevelItem, Menu, MenuItem, MenuList, Message, Modal, Notification, Pagination, PaginationItem, Panel, PanelBlock, PanelTabs, ProgressBar, RadioButton, Select, TabItem, Tabs, Tag, TextArea, Tile, TileBox, TileGroup, Title };
3719
3822
  //# sourceMappingURL=index.js.map