reactive-bulma 1.6.0 → 1.7.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1 @@
1
+ export declare const parseClasses: (_classes: Array<string | null>) => string;
@@ -0,0 +1 @@
1
+ export {};
@@ -1,7 +1,18 @@
1
1
  /// <reference types="react" />
2
- import { columnOffsetType, columnSizeType } from '../types/styleTypes';
3
- export interface ButtonProps {
2
+ import { basicColorType, columnOffsetType, columnSizeType, sizeType } from '../types/styleTypes';
3
+ export interface ButtonProps extends React.ComponentPropsWithoutRef<'button'> {
4
4
  text?: string;
5
+ style?: React.CSSProperties;
6
+ color?: basicColorType;
7
+ isLightColor?: boolean;
8
+ isInvertedColor?: boolean;
9
+ isOutlined?: boolean;
10
+ isRounded?: boolean;
11
+ isLoading?: boolean;
12
+ isDisabled?: boolean;
13
+ isStatic?: boolean;
14
+ size?: sizeType;
15
+ onClick?: () => void;
5
16
  }
6
17
  export interface ColumnProps extends React.ComponentPropsWithoutRef<'section'> {
7
18
  size?: columnSizeType;
@@ -0,0 +1 @@
1
+ export type buttonType = 'submit' | 'reset' | 'button';
@@ -1,2 +1,4 @@
1
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
2
  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';
3
+ 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';
4
+ export type sizeType = 'is-small' | 'is-normal' | 'is-medium' | 'is-large';
package/dist/index.d.ts CHANGED
@@ -3,9 +3,22 @@ import React$1 from 'react';
3
3
 
4
4
  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';
5
5
  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';
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
+ type sizeType = 'is-small' | 'is-normal' | 'is-medium' | 'is-large';
6
8
 
7
- interface ButtonProps {
9
+ interface ButtonProps extends React.ComponentPropsWithoutRef<'button'> {
8
10
  text?: string;
11
+ style?: React.CSSProperties;
12
+ color?: basicColorType;
13
+ isLightColor?: boolean;
14
+ isInvertedColor?: boolean;
15
+ isOutlined?: boolean;
16
+ isRounded?: boolean;
17
+ isLoading?: boolean;
18
+ isDisabled?: boolean;
19
+ isStatic?: boolean;
20
+ size?: sizeType;
21
+ onClick?: () => void;
9
22
  }
10
23
  interface ColumnProps extends React.ComponentPropsWithoutRef<'section'> {
11
24
  size?: columnSizeType;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "reactive-bulma",
3
- "version": "1.6.0",
3
+ "version": "1.7.0",
4
4
  "description": "A typescript-react-based component library based on bulma",
5
5
  "keywords": [
6
6
  "typescript",