fis-component 0.0.28 → 0.0.31

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.
@@ -29,6 +29,10 @@ declare const meta: {
29
29
  options: (import(".").ButtonVariant | undefined)[];
30
30
  description: string;
31
31
  };
32
+ loading: {
33
+ control: "boolean";
34
+ description: string;
35
+ };
32
36
  };
33
37
  };
34
38
  export default meta;
@@ -12,6 +12,10 @@ export interface ButtonProps extends ComponentPropsWithoutRef<"button"> {
12
12
  icon?: ReactNode;
13
13
  /** whether the button should be active */
14
14
  active?: boolean;
15
+ /**
16
+ * Defines if the button is currently being requested.
17
+ */
18
+ loading?: boolean;
15
19
  }
16
20
  declare const FISIconButton: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>;
17
21
  export default FISIconButton;
@@ -3,6 +3,7 @@ interface ButtonProps {
3
3
  $variant: ButtonVariant;
4
4
  $size: ButtonSize;
5
5
  $active: boolean;
6
+ $loading?: boolean;
6
7
  }
7
8
  export declare const ButtonStyled: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, ButtonProps>> & string;
8
9
  export {};
package/dist/index.d.ts CHANGED
@@ -3393,6 +3393,10 @@ interface ButtonProps extends ComponentPropsWithoutRef<"button"> {
3393
3393
  icon?: ReactNode;
3394
3394
  /** whether the button should be active */
3395
3395
  active?: boolean;
3396
+ /**
3397
+ * Defines if the button is currently being requested.
3398
+ */
3399
+ loading?: boolean;
3396
3400
  }
3397
3401
  declare const FISIconButton: React__default.ForwardRefExoticComponent<ButtonProps & React__default.RefAttributes<HTMLButtonElement>>;
3398
3402
 
package/package.json CHANGED
@@ -1,12 +1,13 @@
1
1
  {
2
2
  "homepage": "https://vietdiemtran.github.io/fis-component/",
3
3
  "name": "fis-component",
4
- "version": "0.0.28",
4
+ "version": "0.0.31",
5
5
  "description": "",
6
6
  "main": "dist/cjs/index.js",
7
7
  "module": "dist/esm/index.js",
8
8
  "files": [
9
- "dist"
9
+ "dist",
10
+ "src/styles"
10
11
  ],
11
12
  "types": "dist/index.d.ts",
12
13
  "scripts": {
@@ -81,6 +82,7 @@
81
82
  "react-dom": "^18.2.0",
82
83
  "rollup": "^4.21.3",
83
84
  "rollup-plugin-dts": "^6.1.1",
85
+ "rollup-plugin-ignore": "^1.0.10",
84
86
  "rollup-plugin-postcss": "^4.0.2",
85
87
  "rollup-plugin-typescript2": "^0.36.0",
86
88
  "standard-version": "^9.5.0",
@@ -0,0 +1,4 @@
1
+ import theme from "./variable";
2
+
3
+ export type ThemeType = typeof theme;
4
+ export default theme;