reactive-bulma 1.7.0 → 1.9.0

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.
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { BlockProps } from '../../../interfaces/atomProps';
3
+ declare const Block: React.FC<BlockProps>;
4
+ export default Block;
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { ProgressBarProps } from '../../../interfaces/atomProps';
3
+ declare const ProgressBar: React.FC<ProgressBarProps>;
4
+ export default ProgressBar;
@@ -1,2 +1,3 @@
1
1
  export { default as Button } from './Button';
2
2
  export { default as Column } from './Column';
3
+ export { default as ProgressBar } from './ProgressBar';
@@ -1,5 +1,10 @@
1
1
  /// <reference types="react" />
2
2
  import { basicColorType, columnOffsetType, columnSizeType, sizeType } from '../types/styleTypes';
3
+ export interface ColumnProps extends React.ComponentPropsWithoutRef<'section'> {
4
+ size?: columnSizeType;
5
+ offset?: columnOffsetType;
6
+ isNarrow?: boolean;
7
+ }
3
8
  export interface ButtonProps extends React.ComponentPropsWithoutRef<'button'> {
4
9
  text?: string;
5
10
  style?: React.CSSProperties;
@@ -14,8 +19,14 @@ export interface ButtonProps extends React.ComponentPropsWithoutRef<'button'> {
14
19
  size?: sizeType;
15
20
  onClick?: () => void;
16
21
  }
17
- export interface ColumnProps extends React.ComponentPropsWithoutRef<'section'> {
18
- size?: columnSizeType;
19
- offset?: columnOffsetType;
20
- isNarrow?: boolean;
22
+ export interface ProgressBarProps extends React.ComponentPropsWithoutRef<'progress'> {
23
+ value?: number;
24
+ max?: number;
25
+ style?: React.CSSProperties;
26
+ color?: basicColorType;
27
+ size?: sizeType;
28
+ isLoading?: boolean;
29
+ }
30
+ export interface BlockProps extends React.ComponentPropsWithoutRef<'section'> {
31
+ testId?: string;
21
32
  }
package/dist/index.d.ts CHANGED
@@ -6,6 +6,11 @@ type columnOffsetType = 'is-offset-1' | 'is-offset-2' | 'is-offset-3' | 'is-offs
6
6
  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';
7
7
  type sizeType = 'is-small' | 'is-normal' | 'is-medium' | 'is-large';
8
8
 
9
+ interface ColumnProps extends React.ComponentPropsWithoutRef<'section'> {
10
+ size?: columnSizeType;
11
+ offset?: columnOffsetType;
12
+ isNarrow?: boolean;
13
+ }
9
14
  interface ButtonProps extends React.ComponentPropsWithoutRef<'button'> {
10
15
  text?: string;
11
16
  style?: React.CSSProperties;
@@ -20,14 +25,19 @@ interface ButtonProps extends React.ComponentPropsWithoutRef<'button'> {
20
25
  size?: sizeType;
21
26
  onClick?: () => void;
22
27
  }
23
- interface ColumnProps extends React.ComponentPropsWithoutRef<'section'> {
24
- size?: columnSizeType;
25
- offset?: columnOffsetType;
26
- isNarrow?: boolean;
28
+ interface ProgressBarProps extends React.ComponentPropsWithoutRef<'progress'> {
29
+ value?: number;
30
+ max?: number;
31
+ style?: React.CSSProperties;
32
+ color?: basicColorType;
33
+ size?: sizeType;
34
+ isLoading?: boolean;
27
35
  }
28
36
 
29
37
  declare const Button: React$1.FC<ButtonProps>;
30
38
 
31
39
  declare const Column: React$1.FC<ColumnProps>;
32
40
 
33
- export { Button, Column };
41
+ declare const ProgressBar: React$1.FC<ProgressBarProps>;
42
+
43
+ export { Button, Column, ProgressBar };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "reactive-bulma",
3
- "version": "1.7.0",
3
+ "version": "1.9.0",
4
4
  "description": "A typescript-react-based component library based on bulma",
5
5
  "keywords": [
6
6
  "typescript",