fis-component 0.0.27 → 0.0.30
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.
- package/dist/cjs/index.js +192 -150
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/src/components/IconButton/IconButton.stories.d.ts +4 -0
- package/dist/cjs/types/src/components/IconButton/index.d.ts +4 -0
- package/dist/cjs/types/src/components/IconButton/styles.d.ts +1 -0
- package/dist/esm/index.js +192 -150
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/src/components/IconButton/IconButton.stories.d.ts +4 -0
- package/dist/esm/types/src/components/IconButton/index.d.ts +4 -0
- package/dist/esm/types/src/components/IconButton/styles.d.ts +1 -0
- package/dist/index.d.ts +4 -0
- package/package.json +3 -2
- package/dist/cjs/types/src/styles-entry.d.ts +0 -1
- package/dist/esm/types/src/styles-entry.d.ts +0 -1
|
@@ -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,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"homepage": "https://vietdiemtran.github.io/fis-component/",
|
|
3
3
|
"name": "fis-component",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.30",
|
|
5
5
|
"description": "",
|
|
6
6
|
"main": "dist/cjs/index.js",
|
|
7
7
|
"module": "dist/esm/index.js",
|
|
@@ -81,6 +81,7 @@
|
|
|
81
81
|
"react-dom": "^18.2.0",
|
|
82
82
|
"rollup": "^4.21.3",
|
|
83
83
|
"rollup-plugin-dts": "^6.1.1",
|
|
84
|
+
"rollup-plugin-ignore": "^1.0.10",
|
|
84
85
|
"rollup-plugin-postcss": "^4.0.2",
|
|
85
86
|
"rollup-plugin-typescript2": "^0.36.0",
|
|
86
87
|
"standard-version": "^9.5.0",
|
|
@@ -103,4 +104,4 @@
|
|
|
103
104
|
"antd": "^5.23.4",
|
|
104
105
|
"react-popper": "^2.3.0"
|
|
105
106
|
}
|
|
106
|
-
}
|
|
107
|
+
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import "./styles/fonts.css";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import "./styles/fonts.css";
|