reactive-bulma 2.14.0 → 2.15.0
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/cjs/index.js +81 -1
- 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/TileBox/index.d.ts +4 -0
- package/dist/cjs/types/components/molecules/index.d.ts +1 -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 +4 -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 +79 -2
- 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/TileBox/index.d.ts +4 -0
- package/dist/esm/types/components/molecules/index.d.ts +1 -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 +4 -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 +33 -7
- package/package.json +1 -1
- package/dist/cjs/types/types/componentEnums.d.ts +0 -8
- package/dist/esm/types/types/componentEnums.d.ts +0 -8
@@ -13,3 +13,4 @@ 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';
|
@@ -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,6 @@ 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
|
+
}
|
177
178
|
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/
|
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
|
2
|
-
export type
|
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/index.d.ts
CHANGED
@@ -24,9 +24,11 @@ interface ClickeableProps {
|
|
24
24
|
onClick?: () => void;
|
25
25
|
}
|
26
26
|
|
27
|
-
type
|
28
|
-
type
|
27
|
+
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';
|
28
|
+
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';
|
29
|
+
type ColumnSizeType = CommonSizeType | AbstractSizeType;
|
29
30
|
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';
|
31
|
+
type TitleSizeType = 'is-1' | 'is-2' | 'is-3' | 'is-4' | 'is-5' | 'is-6';
|
30
32
|
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';
|
31
33
|
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';
|
32
34
|
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';
|
@@ -43,9 +45,9 @@ type TabsFormatType = 'is-boxed' | 'is-toggle';
|
|
43
45
|
type InputType = 'text' | 'password' | 'email' | 'tel';
|
44
46
|
type DropdownItemType = 'item' | 'link' | 'divider';
|
45
47
|
type PanelBlockItemType = 'icon' | 'control' | 'button';
|
46
|
-
|
47
48
|
type ChildrenType = string | React$1.ReactElement | React$1.ReactElement[];
|
48
49
|
type SingleChildType = Exclude<ChildrenType, React$1.ReactElement[]>;
|
50
|
+
type TileContextType = 'is-child' | 'is-parent' | 'is-ancestor';
|
49
51
|
|
50
52
|
interface ColumnProps extends ElementProps, React$1.ComponentPropsWithoutRef<'section'> {
|
51
53
|
/** `Attribute` Reffers to the component or array of components that will be shown inside the column */
|
@@ -322,6 +324,18 @@ interface LevelHeaderProps extends ElementProps {
|
|
322
324
|
/** `Attribute` `Required` Main value (numeric or text) to be shown in a bigger scale below `header` */
|
323
325
|
value: string | number;
|
324
326
|
}
|
327
|
+
interface TileProps extends ElementProps {
|
328
|
+
/** `Attribute` Reffers to the component or array of components that will be shown inside the tile */
|
329
|
+
children?: ChildrenType;
|
330
|
+
/** `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 */
|
331
|
+
context?: TileContextType;
|
332
|
+
/** `Styling` Set tile's size */
|
333
|
+
size?: CommonSizeType;
|
334
|
+
/** `Styling` Color based on bulma's color tokens */
|
335
|
+
color?: BasicColorType;
|
336
|
+
/** `Styling` Used for hierarchy level as ancestor or parent. It selects its children in a vertical format (like a column) */
|
337
|
+
isVertical?: boolean;
|
338
|
+
}
|
325
339
|
|
326
340
|
declare const Button: React$1.FC<ButtonProps>;
|
327
341
|
|
@@ -369,6 +383,8 @@ declare const TabItem: React$1.FC<TabItemProps>;
|
|
369
383
|
|
370
384
|
declare const LevelHeader: React$1.FC<LevelHeaderProps>;
|
371
385
|
|
386
|
+
declare const Tile: React$1.FC<TileProps>;
|
387
|
+
|
372
388
|
interface ButtonGroupProps extends ElementProps {
|
373
389
|
/** `Atribute` `Required` Array of `Button` objects that will be shown */
|
374
390
|
buttonList: ButtonProps[];
|
@@ -540,6 +556,8 @@ interface LevelItemProps extends ElementProps {
|
|
540
556
|
/** `Styling` Centers item's content horizontally */
|
541
557
|
isCentered?: boolean;
|
542
558
|
}
|
559
|
+
interface TileBoxProps extends TileProps {
|
560
|
+
}
|
543
561
|
|
544
562
|
declare const ButtonGroup: React$1.FC<ButtonGroupProps>;
|
545
563
|
|
@@ -571,6 +589,8 @@ declare const PanelTabs: React$1.FC<PanelTabsProps>;
|
|
571
589
|
|
572
590
|
declare const LevelItem: React$1.FC<LevelItemProps>;
|
573
591
|
|
592
|
+
declare const TileBox: React$1.FC<TileBoxProps>;
|
593
|
+
|
574
594
|
interface FormFieldHelperProps {
|
575
595
|
text?: string;
|
576
596
|
color?: BasicColorType;
|
@@ -598,11 +618,11 @@ interface PanelProps extends ElementProps {
|
|
598
618
|
color?: BasicColorType;
|
599
619
|
}
|
600
620
|
interface LevelProps extends ElementProps {
|
601
|
-
/** `Attribute` A list of `LevelItem` configurations that will displayed in Level's left side */
|
621
|
+
/** `Attribute` A list of `LevelItem` configurations that will br displayed in Level's left side */
|
602
622
|
leftSide?: LevelItemProps[];
|
603
|
-
/** `Attribute` A list of `LevelItem` configurations that will displayed in Level's center */
|
623
|
+
/** `Attribute` A list of `LevelItem` configurations that will br displayed in Level's center */
|
604
624
|
centerSide?: LevelItemProps[];
|
605
|
-
/** `Attribute` A list of `LevelItem` configurations that will displayed in Level's right side */
|
625
|
+
/** `Attribute` A list of `LevelItem` configurations that will br displayed in Level's right side */
|
606
626
|
rightSide?: LevelItemProps[];
|
607
627
|
/** `Styling` Will adjust the navigator on horizontal on mobile as well */
|
608
628
|
isMobile?: boolean;
|
@@ -619,6 +639,10 @@ interface HeroProps extends ElementProps {
|
|
619
639
|
/** `Styling` Color based on bulma's text color tokens */
|
620
640
|
color?: BasicColorType;
|
621
641
|
}
|
642
|
+
interface TileGroupProps extends ElementProps, Pick<TileProps, 'context' | 'isVertical' | 'size'> {
|
643
|
+
/** `Attribute` `Required` A list of `Title` configurations that will be displayed in a grid mode on the screen */
|
644
|
+
groupConfig: TileProps[];
|
645
|
+
}
|
622
646
|
|
623
647
|
declare const FormField: React$1.FC<FormFieldProps>;
|
624
648
|
|
@@ -628,4 +652,6 @@ declare const Level: React$1.FC<LevelProps>;
|
|
628
652
|
|
629
653
|
declare const Hero: React$1.FC<HeroProps>;
|
630
654
|
|
631
|
-
|
655
|
+
declare const TileGroup: React$1.FC<TileGroupProps>;
|
656
|
+
|
657
|
+
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, Tile, TileBox, TileGroup, Title };
|
package/package.json
CHANGED
@@ -1,8 +0,0 @@
|
|
1
|
-
import React from 'react';
|
2
|
-
export declare enum IconSizeEnum {
|
3
|
-
'is-small' = 24,
|
4
|
-
'is-medium' = 36,
|
5
|
-
'is-large' = 48
|
6
|
-
}
|
7
|
-
export type ChildrenType = string | React.ReactElement | React.ReactElement[];
|
8
|
-
export type SingleChildType = Exclude<ChildrenType, React.ReactElement[]>;
|
@@ -1,8 +0,0 @@
|
|
1
|
-
import React from 'react';
|
2
|
-
export declare enum IconSizeEnum {
|
3
|
-
'is-small' = 24,
|
4
|
-
'is-medium' = 36,
|
5
|
-
'is-large' = 48
|
6
|
-
}
|
7
|
-
export type ChildrenType = string | React.ReactElement | React.ReactElement[];
|
8
|
-
export type SingleChildType = Exclude<ChildrenType, React.ReactElement[]>;
|