fui-material 0.2.53 → 0.2.55
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 +9 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/function-elements/fAlert/fAlert.d.ts +8 -0
- package/dist/cjs/types/function-elements/fAlert/fAlert.stories.d.ts +9 -0
- package/dist/cjs/types/function-elements/fAlert/index.d.ts +1 -0
- package/dist/cjs/types/function-elements/fConfirm/fConfirm.d.ts +7 -0
- package/dist/cjs/types/function-elements/fConfirm/fConfirm.stories.d.ts +9 -0
- package/dist/cjs/types/function-elements/fConfirm/index.d.ts +1 -0
- package/dist/cjs/types/function-elements/fPrompt/fPrompt.d.ts +7 -0
- package/dist/cjs/types/function-elements/fPrompt/fPrompt.stories.d.ts +9 -0
- package/dist/cjs/types/function-elements/fPrompt/index.d.ts +1 -0
- package/dist/cjs/types/function-elements/index.d.ts +3 -0
- package/dist/cjs/types/index.d.ts +1 -0
- package/dist/cjs/types/material/FAlert/FAlert.d.ts +10 -10
- package/dist/cjs/types/material/FAlert/FAlert.stories.d.ts +0 -1
- package/dist/esm/index.js +9 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/function-elements/fAlert/fAlert.d.ts +8 -0
- package/dist/esm/types/function-elements/fAlert/fAlert.stories.d.ts +9 -0
- package/dist/esm/types/function-elements/fAlert/index.d.ts +1 -0
- package/dist/esm/types/function-elements/fConfirm/fConfirm.d.ts +7 -0
- package/dist/esm/types/function-elements/fConfirm/fConfirm.stories.d.ts +9 -0
- package/dist/esm/types/function-elements/fConfirm/index.d.ts +1 -0
- package/dist/esm/types/function-elements/fPrompt/fPrompt.d.ts +7 -0
- package/dist/esm/types/function-elements/fPrompt/fPrompt.stories.d.ts +9 -0
- package/dist/esm/types/function-elements/fPrompt/index.d.ts +1 -0
- package/dist/esm/types/function-elements/index.d.ts +3 -0
- package/dist/esm/types/index.d.ts +1 -0
- package/dist/esm/types/material/FAlert/FAlert.d.ts +10 -10
- package/dist/esm/types/material/FAlert/FAlert.stories.d.ts +0 -1
- package/dist/index.d.ts +28 -9
- package/package.json +10 -9
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { StoryFn } from '@storybook/react';
|
|
2
|
+
import 'bootstrap/dist/css/bootstrap.css';
|
|
3
|
+
import { IfAlert } from "./fAlert";
|
|
4
|
+
declare const _default: {
|
|
5
|
+
title: string;
|
|
6
|
+
tags: string[];
|
|
7
|
+
};
|
|
8
|
+
export default _default;
|
|
9
|
+
export declare const Default: StoryFn<IfAlert>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from "./fAlert";
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { StoryFn } from '@storybook/react';
|
|
2
|
+
import 'bootstrap/dist/css/bootstrap.css';
|
|
3
|
+
import { IfConfirm } from "./fConfirm";
|
|
4
|
+
declare const _default: {
|
|
5
|
+
title: string;
|
|
6
|
+
tags: string[];
|
|
7
|
+
};
|
|
8
|
+
export default _default;
|
|
9
|
+
export declare const Default: StoryFn<IfConfirm>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from "./fConfirm";
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { StoryFn } from '@storybook/react';
|
|
2
|
+
import 'bootstrap/dist/css/bootstrap.css';
|
|
3
|
+
import { IfPrompt } from "./fPrompt";
|
|
4
|
+
declare const _default: {
|
|
5
|
+
title: string;
|
|
6
|
+
tags: string[];
|
|
7
|
+
};
|
|
8
|
+
export default _default;
|
|
9
|
+
export declare const Default: StoryFn<IfPrompt>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from "./fPrompt";
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import React, { FC } from
|
|
2
|
-
import
|
|
1
|
+
import React, { FC } from "react";
|
|
2
|
+
import './FAlert.css';
|
|
3
3
|
export interface IFAlert {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
4
|
+
title?: string;
|
|
5
|
+
body?: string;
|
|
6
|
+
variant: 'info' | 'error' | 'success' | 'warning';
|
|
7
|
+
onClose?: (e: boolean) => void;
|
|
8
8
|
st?: React.CSSProperties | undefined;
|
|
9
9
|
open: boolean;
|
|
10
|
-
vertical
|
|
11
|
-
horizontal
|
|
12
|
-
buttonClose
|
|
13
|
-
id?: string;
|
|
10
|
+
vertical?: 'top' | 'bottom' | 'center';
|
|
11
|
+
horizontal?: 'left' | 'center' | 'right';
|
|
12
|
+
buttonClose?: boolean;
|
|
14
13
|
className?: string;
|
|
14
|
+
timeCloseSec?: number;
|
|
15
15
|
}
|
|
16
16
|
declare const FAlert: FC<IFAlert>;
|
|
17
17
|
export default FAlert;
|
package/dist/index.d.ts
CHANGED
|
@@ -423,17 +423,17 @@ interface IFTextArea {
|
|
|
423
423
|
declare const FTextArea: FC<IFTextArea>;
|
|
424
424
|
|
|
425
425
|
interface IFAlert {
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
426
|
+
title?: string;
|
|
427
|
+
body?: string;
|
|
428
|
+
variant: 'info' | 'error' | 'success' | 'warning';
|
|
429
|
+
onClose?: (e: boolean) => void;
|
|
430
430
|
st?: React.CSSProperties | undefined;
|
|
431
431
|
open: boolean;
|
|
432
|
-
vertical
|
|
433
|
-
horizontal
|
|
434
|
-
buttonClose
|
|
435
|
-
id?: string;
|
|
432
|
+
vertical?: 'top' | 'bottom' | 'center';
|
|
433
|
+
horizontal?: 'left' | 'center' | 'right';
|
|
434
|
+
buttonClose?: boolean;
|
|
436
435
|
className?: string;
|
|
436
|
+
timeCloseSec?: number;
|
|
437
437
|
}
|
|
438
438
|
declare const FAlert: FC<IFAlert>;
|
|
439
439
|
|
|
@@ -643,4 +643,23 @@ interface IFLoadIcon {
|
|
|
643
643
|
}
|
|
644
644
|
declare const FLoadIcon: ({ size, st, id, className, color }: IFLoadIcon) => react_jsx_runtime.JSX.Element;
|
|
645
645
|
|
|
646
|
-
|
|
646
|
+
interface IfAlert {
|
|
647
|
+
title?: string;
|
|
648
|
+
body: string;
|
|
649
|
+
variant: 'info' | 'error' | 'success' | 'warning';
|
|
650
|
+
}
|
|
651
|
+
declare const fAlert: ({ title, body, variant }: IfAlert) => void;
|
|
652
|
+
|
|
653
|
+
interface IfConfirm {
|
|
654
|
+
title?: string;
|
|
655
|
+
body: string;
|
|
656
|
+
}
|
|
657
|
+
declare const fConfirm: ({ title, body }: IfConfirm) => Promise<boolean>;
|
|
658
|
+
|
|
659
|
+
interface IfPrompt {
|
|
660
|
+
title?: string;
|
|
661
|
+
body?: string;
|
|
662
|
+
}
|
|
663
|
+
declare const fPrompt: ({ title, body }: IfPrompt) => Promise<string | null>;
|
|
664
|
+
|
|
665
|
+
export { FAccordion, FAlert, FArrowIcon, FButton, FButtonFile, FCheckIcon, FCheckbox, FCloseIcon, FContainer, FCopyAddIcon, FDialog, FDialogBody, FDialogFooter, FDialogHeader, FDownloadIcon, FDropdown, FDropdownItem, FFile, FFilterIcon, FFullDateField, FGrid, FInputFileForm, FListIcon, FLoadIcon, FNative, FOpenImgFull, FPagination, FPaper, FPenIcon, FPlusIcon, FPreloader, FProgress, FRadioButton, FSearchBox, FSelect, FSelectItem, FSelectSearchDb, FStack, FTab, FTable, FTableBody, FTableDataCell, FTableFooter, FTableHead, FTableHeaderCell, FTableRow, FTabs, FTextArea, FTextField, FTimeline, FTimelineCard, FTrashIcon, FUnlinkIcon, fAlert, fConfirm, fPrompt };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "fui-material",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.55",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public",
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -57,14 +57,15 @@
|
|
|
57
57
|
"@rollup/plugin-image": "^3.0.2",
|
|
58
58
|
"@rollup/plugin-node-resolve": "^13.0.6",
|
|
59
59
|
"@rollup/plugin-typescript": "^8.3.3",
|
|
60
|
-
"@storybook/addon-essentials": "^7.4.
|
|
61
|
-
"@storybook/addon-interactions": "^7.4.
|
|
62
|
-
"@storybook/addon-links": "^7.4.
|
|
60
|
+
"@storybook/addon-essentials": "^7.4.6",
|
|
61
|
+
"@storybook/addon-interactions": "^7.4.6",
|
|
62
|
+
"@storybook/addon-links": "^7.4.6",
|
|
63
|
+
"@storybook/addon-mdx-gfm": "^7.4.6",
|
|
63
64
|
"@storybook/addon-onboarding": "^1.0.8",
|
|
64
|
-
"@storybook/blocks": "^7.4.
|
|
65
|
-
"@storybook/react": "^7.4.
|
|
66
|
-
"@storybook/react-webpack5": "^7.4.
|
|
67
|
-
"@storybook/testing-library": "^0.2.
|
|
65
|
+
"@storybook/blocks": "^7.4.6",
|
|
66
|
+
"@storybook/react": "^7.4.6",
|
|
67
|
+
"@storybook/react-webpack5": "^7.4.6",
|
|
68
|
+
"@storybook/testing-library": "^0.2.2",
|
|
68
69
|
"@testing-library/react": "^13.4.0",
|
|
69
70
|
"@types/jest": "^29.2.3",
|
|
70
71
|
"babel-loader": "^8.3.0",
|
|
@@ -77,7 +78,7 @@
|
|
|
77
78
|
"rollup-plugin-peer-deps-external": "^2.2.4",
|
|
78
79
|
"rollup-plugin-postcss": "^4.0.2",
|
|
79
80
|
"rollup-plugin-terser": "^7.0.2",
|
|
80
|
-
"storybook": "^7.4.
|
|
81
|
+
"storybook": "^7.4.6"
|
|
81
82
|
},
|
|
82
83
|
"peerDependencies": {
|
|
83
84
|
"react": "^18.2.0"
|