reactive-bulma 2.16.0 → 3.0.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { MediaProps } from '../../../interfaces/moleculeProps';
3
+ declare const Media: React.FC<MediaProps>;
4
+ export default Media;
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { SectionProps } from '../../../interfaces/moleculeProps';
3
+ declare const Section: React.FC<SectionProps>;
4
+ export default Section;
@@ -15,3 +15,5 @@ export { default as PanelTabs } from './PanelTabs';
15
15
  export { default as LevelItem } from '../molecules/LevelItem';
16
16
  export { default as TileBox } from './TileBox';
17
17
  export { default as Footer } from './Footer';
18
+ export { default as Media } from './Media';
19
+ export { default as Section } from './Section';
@@ -1,6 +1,6 @@
1
1
  import { ClickeableProps, ComposedElementProps, ElementProps } from './commonProps';
2
2
  import { BreadcrumbItemProps, ButtonProps, ColumnProps, DeleteProps, DropdownItemProps, IconProps, InputProps, MenuItemProps, PaginationItemProps, TabItemProps, TileProps } from './atomProps';
3
- import { BasicColorType, RightCenteredAlignType, BreadcrumbSeparatorType, ColumnGapType, SizeWithoutNormalType, TabsFormatType } from '../types/styleTypes';
3
+ import { BasicColorType, RightCenteredAlignType, BreadcrumbSeparatorType, ColumnGapType, SizeWithoutNormalType, TabsFormatType, MediumAndLargeSizeType } from '../types/styleTypes';
4
4
  import { ChildrenType, SingleChildType, PanelBlockItemType } from '../types/domTypes';
5
5
  export interface ButtonGroupProps extends ElementProps {
6
6
  /** `Atribute` `Required` Array of `Button` objects that will be shown */
@@ -41,7 +41,7 @@ export interface BreadcrumbsProps extends ComposedElementProps {
41
41
  alignment?: RightCenteredAlignType | null;
42
42
  /** `Styling` Will adjust element position on screen */
43
43
  separator?: BreadcrumbSeparatorType | null;
44
- /** `Styling` Set button's size on bulma's size tokens */
44
+ /** `Styling` Set breadcrumb's size on bulma's size tokens */
45
45
  size?: SizeWithoutNormalType;
46
46
  }
47
47
  export interface DropdownProps extends ElementProps {
@@ -181,4 +181,18 @@ export interface FooterProps extends ComposedElementProps {
181
181
  /** `Styling` Centers footer¿s content horizontally */
182
182
  isContentCentered?: boolean;
183
183
  }
184
+ export interface MediaProps extends ElementProps {
185
+ /** `Attribute` Reffers to the component or string content that will be shown inside the component's left side */
186
+ leftContent?: SingleChildType;
187
+ /** `Attribute` Reffers to the component or string content that will be shown inside the component's center */
188
+ centerContent?: SingleChildType;
189
+ /** `Attribute` Reffers to the component or string content that will be shown inside the component's right side */
190
+ rightContent?: SingleChildType;
191
+ }
192
+ export interface SectionProps extends ElementProps {
193
+ /** `Attribute` `Required` Reffers to the component or string content that will be shown inside the section */
194
+ content: SingleChildType;
195
+ /** `Styling` Set button's size on bulma's size tokens */
196
+ size?: MediumAndLargeSizeType;
197
+ }
184
198
  export {};
@@ -1,6 +1,6 @@
1
1
  import { ElementProps } from './commonProps';
2
2
  import { InputControlProps, LevelItemProps, PanelBlockProps, PanelTabsProps } from './moleculeProps';
3
- import { BasicColorType, SizeWithoutNormalType } from '../types/styleTypes';
3
+ import { BasicColorType, SizeWithHeightType } from '../types/styleTypes';
4
4
  import { ChildrenType } from '../types/domTypes';
5
5
  import { TileProps } from './atomProps';
6
6
  export interface FormFieldHelperProps {
@@ -47,7 +47,7 @@ export interface HeroProps extends ElementProps {
47
47
  /** `Attribute` Designated section for hero's footer, it will be visible only if container's `size` is setted to `is-fullheight` */
48
48
  footer?: ChildrenType;
49
49
  /** `Styling` Set hero's size */
50
- size?: SizeWithoutNormalType | 'is-halfheight' | 'is-fullheight';
50
+ size?: SizeWithHeightType;
51
51
  /** `Styling` Color based on bulma's text color tokens */
52
52
  color?: BasicColorType;
53
53
  }
@@ -11,3 +11,5 @@ export declare enum IconSizeEnum {
11
11
  'is-large' = 48
12
12
  }
13
13
  export type TileContextType = 'is-child' | 'is-parent' | 'is-ancestor';
14
+ export type HeroContentType = 'head' | 'body' | 'foot';
15
+ export type MediaSectionType = 'left' | 'content' | 'right';
@@ -8,6 +8,8 @@ export type TextColorType = 'has-text-white' | 'has-text-black' | 'has-text-ligh
8
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';
9
9
  export type ElementSizeType = 'is-small' | 'is-normal' | 'is-medium' | 'is-large';
10
10
  export type SizeWithoutNormalType = Exclude<ElementSizeType, 'is-normal'>;
11
+ export type SizeWithHeightType = SizeWithoutNormalType | 'is-halfheight' | 'is-fullheight';
12
+ export type MediumAndLargeSizeType = Exclude<SizeWithoutNormalType, 'is-small'>;
11
13
  export type IconColorModeType = 'light' | 'dark';
12
14
  export type ColumnGapType = 'is-0' | 'is-1' | 'is-2' | 'is-3' | 'is-4' | 'is-5' | 'is-6' | 'is-7' | 'is-8';
13
15
  export type ElementAlignType = 'is-centered' | 'is-right' | 'is-left';
package/dist/index.d.ts CHANGED
@@ -34,6 +34,8 @@ type TextColorType = 'has-text-white' | 'has-text-black' | 'has-text-light' | 'h
34
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';
35
35
  type ElementSizeType = 'is-small' | 'is-normal' | 'is-medium' | 'is-large';
36
36
  type SizeWithoutNormalType = Exclude<ElementSizeType, 'is-normal'>;
37
+ type SizeWithHeightType = SizeWithoutNormalType | 'is-halfheight' | 'is-fullheight';
38
+ type MediumAndLargeSizeType = Exclude<SizeWithoutNormalType, 'is-small'>;
37
39
  type IconColorModeType = 'light' | 'dark';
38
40
  type ColumnGapType = 'is-0' | 'is-1' | 'is-2' | 'is-3' | 'is-4' | 'is-5' | 'is-6' | 'is-7' | 'is-8';
39
41
  type ElementAlignType = 'is-centered' | 'is-right' | 'is-left';
@@ -424,7 +426,7 @@ interface BreadcrumbsProps extends ComposedElementProps {
424
426
  alignment?: RightCenteredAlignType | null;
425
427
  /** `Styling` Will adjust element position on screen */
426
428
  separator?: BreadcrumbSeparatorType | null;
427
- /** `Styling` Set button's size on bulma's size tokens */
429
+ /** `Styling` Set breadcrumb's size on bulma's size tokens */
428
430
  size?: SizeWithoutNormalType;
429
431
  }
430
432
  interface DropdownProps extends ElementProps {
@@ -564,6 +566,20 @@ interface FooterProps extends ComposedElementProps {
564
566
  /** `Styling` Centers footer¿s content horizontally */
565
567
  isContentCentered?: boolean;
566
568
  }
569
+ interface MediaProps extends ElementProps {
570
+ /** `Attribute` Reffers to the component or string content that will be shown inside the component's left side */
571
+ leftContent?: SingleChildType;
572
+ /** `Attribute` Reffers to the component or string content that will be shown inside the component's center */
573
+ centerContent?: SingleChildType;
574
+ /** `Attribute` Reffers to the component or string content that will be shown inside the component's right side */
575
+ rightContent?: SingleChildType;
576
+ }
577
+ interface SectionProps extends ElementProps {
578
+ /** `Attribute` `Required` Reffers to the component or string content that will be shown inside the section */
579
+ content: SingleChildType;
580
+ /** `Styling` Set button's size on bulma's size tokens */
581
+ size?: MediumAndLargeSizeType;
582
+ }
567
583
 
568
584
  declare const ButtonGroup: React$1.FC<ButtonGroupProps>;
569
585
 
@@ -599,6 +615,10 @@ declare const TileBox: React$1.FC<TileBoxProps>;
599
615
 
600
616
  declare const Footer: React$1.FC<FooterProps>;
601
617
 
618
+ declare const Media: React$1.FC<MediaProps>;
619
+
620
+ declare const Section: React$1.FC<SectionProps>;
621
+
602
622
  interface FormFieldHelperProps {
603
623
  text?: string;
604
624
  color?: BasicColorType;
@@ -643,7 +663,7 @@ interface HeroProps extends ElementProps {
643
663
  /** `Attribute` Designated section for hero's footer, it will be visible only if container's `size` is setted to `is-fullheight` */
644
664
  footer?: ChildrenType;
645
665
  /** `Styling` Set hero's size */
646
- size?: SizeWithoutNormalType | 'is-halfheight' | 'is-fullheight';
666
+ size?: SizeWithHeightType;
647
667
  /** `Styling` Color based on bulma's text color tokens */
648
668
  color?: BasicColorType;
649
669
  }
@@ -662,4 +682,4 @@ declare const Hero: React$1.FC<HeroProps>;
662
682
 
663
683
  declare const TileGroup: React$1.FC<TileGroupProps>;
664
684
 
665
- 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 };
685
+ 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, Media, Menu, MenuItem, MenuList, Message, Modal, Notification, Pagination, PaginationItem, Panel, PanelBlock, PanelTabs, ProgressBar, RadioButton, Section, Select, TabItem, Tabs, Tag, TextArea, Tile, TileBox, TileGroup, Title };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "reactive-bulma",
3
- "version": "2.16.0",
3
+ "version": "3.0.0",
4
4
  "description": "A component library based on React, Bulma, Typescript and Rollup",
5
5
  "keywords": [
6
6
  "typescript",
@@ -52,8 +52,8 @@
52
52
  "update:doctor": "npm run lint && npm run test && npm run build"
53
53
  },
54
54
  "devDependencies": {
55
- "@babel/core": "^7.23.7",
56
- "@babel/preset-env": "^7.23.8",
55
+ "@babel/core": "^7.23.9",
56
+ "@babel/preset-env": "^7.23.9",
57
57
  "@babel/preset-react": "^7.23.3",
58
58
  "@babel/preset-typescript": "^7.23.3",
59
59
  "@mdi/font": "^7.4.47",
@@ -76,7 +76,7 @@
76
76
  "@storybook/react": "^7.6.10",
77
77
  "@storybook/react-webpack5": "^7.6.10",
78
78
  "@storybook/testing-library": "^0.2.2",
79
- "@testing-library/jest-dom": "^6.2.1",
79
+ "@testing-library/jest-dom": "^6.3.0",
80
80
  "@testing-library/react": "^14.1.2",
81
81
  "@testing-library/user-event": "^14.5.2",
82
82
  "@types/jest": "^29.5.11",
@@ -89,12 +89,12 @@
89
89
  "eslint": "^8.56.0",
90
90
  "eslint-config-prettier": "^9.1.0",
91
91
  "eslint-plugin-react": "^7.33.2",
92
- "husky": "^8.0.3",
92
+ "husky": "^9.0.6",
93
93
  "hygen": "^6.2.11",
94
94
  "jest": "^29.7.0",
95
95
  "jest-environment-jsdom": "^29.7.0",
96
96
  "lint-staged": "^15.2.0",
97
- "npm-check-updates": "^16.14.12",
97
+ "npm-check-updates": "^16.14.13",
98
98
  "postcss": "^8.4.33",
99
99
  "prettier": "^3.2.4",
100
100
  "react": "^18.2.0",