fui-material 0.2.52 → 0.2.54

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.
Files changed (34) hide show
  1. package/dist/cjs/index.js +9 -1
  2. package/dist/cjs/index.js.map +1 -1
  3. package/dist/cjs/types/function-elements/fAlert/fAlert.d.ts +8 -0
  4. package/dist/cjs/types/function-elements/fAlert/fAlert.stories.d.ts +9 -0
  5. package/dist/cjs/types/function-elements/fAlert/index.d.ts +1 -0
  6. package/dist/cjs/types/function-elements/fConfirm/fConfirm.d.ts +7 -0
  7. package/dist/cjs/types/function-elements/fConfirm/fConfirm.stories.d.ts +9 -0
  8. package/dist/cjs/types/function-elements/fConfirm/index.d.ts +1 -0
  9. package/dist/cjs/types/function-elements/fPrompt/fPrompt.d.ts +7 -0
  10. package/dist/cjs/types/function-elements/fPrompt/fPrompt.stories.d.ts +9 -0
  11. package/dist/cjs/types/function-elements/fPrompt/index.d.ts +1 -0
  12. package/dist/cjs/types/function-elements/index.d.ts +3 -0
  13. package/dist/cjs/types/index.d.ts +1 -0
  14. package/dist/cjs/types/material/FAlert/FAlert.d.ts +10 -10
  15. package/dist/cjs/types/material/FAlert/FAlert.stories.d.ts +0 -1
  16. package/dist/cjs/types/material/FSelectSearchDb/FSelectSearchDb.d.ts +1 -1
  17. package/dist/esm/index.js +9 -1
  18. package/dist/esm/index.js.map +1 -1
  19. package/dist/esm/types/function-elements/fAlert/fAlert.d.ts +8 -0
  20. package/dist/esm/types/function-elements/fAlert/fAlert.stories.d.ts +9 -0
  21. package/dist/esm/types/function-elements/fAlert/index.d.ts +1 -0
  22. package/dist/esm/types/function-elements/fConfirm/fConfirm.d.ts +7 -0
  23. package/dist/esm/types/function-elements/fConfirm/fConfirm.stories.d.ts +9 -0
  24. package/dist/esm/types/function-elements/fConfirm/index.d.ts +1 -0
  25. package/dist/esm/types/function-elements/fPrompt/fPrompt.d.ts +7 -0
  26. package/dist/esm/types/function-elements/fPrompt/fPrompt.stories.d.ts +9 -0
  27. package/dist/esm/types/function-elements/fPrompt/index.d.ts +1 -0
  28. package/dist/esm/types/function-elements/index.d.ts +3 -0
  29. package/dist/esm/types/index.d.ts +1 -0
  30. package/dist/esm/types/material/FAlert/FAlert.d.ts +10 -10
  31. package/dist/esm/types/material/FAlert/FAlert.stories.d.ts +0 -1
  32. package/dist/esm/types/material/FSelectSearchDb/FSelectSearchDb.d.ts +1 -1
  33. package/dist/index.d.ts +29 -10
  34. package/package.json +10 -9
@@ -0,0 +1,8 @@
1
+ import './fAlert.css';
2
+ export interface IfAlert {
3
+ title?: string;
4
+ body: string;
5
+ variant: 'info' | 'error' | 'success' | 'warning';
6
+ }
7
+ declare const fAlert: ({ title, body, variant }: IfAlert) => void;
8
+ export default fAlert;
@@ -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,7 @@
1
+ import './fConfirm.css';
2
+ export interface IfConfirm {
3
+ title?: string;
4
+ body: string;
5
+ }
6
+ declare const fConfirm: ({ title, body }: IfConfirm) => Promise<boolean>;
7
+ export default fConfirm;
@@ -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,7 @@
1
+ import './fPrompt.css';
2
+ export interface IfPrompt {
3
+ title?: string;
4
+ body?: string;
5
+ }
6
+ declare const fPrompt: ({ title, body }: IfPrompt) => Promise<string | null>;
7
+ export default fPrompt;
@@ -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";
@@ -0,0 +1,3 @@
1
+ export { default as fAlert } from "./fAlert";
2
+ export { default as fConfirm } from "./fConfirm";
3
+ export { default as fPrompt } from "./fPrompt";
@@ -1,2 +1,3 @@
1
1
  export * from './material';
2
2
  export * from './icons';
3
+ export * from './function-elements';
@@ -1,17 +1,17 @@
1
- import React, { FC } from 'react';
2
- import "./FAlert.css";
1
+ import React, { FC } from "react";
2
+ import './FAlert.css';
3
3
  export interface IFAlert {
4
- variant: 'info' | 'error';
5
- onClose?: React.MouseEventHandler<HTMLButtonElement> | undefined;
6
- title: string;
7
- body: string;
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: 'top' | 'bottom';
11
- horizontal: 'left' | 'center' | 'right';
12
- buttonClose: boolean;
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;
@@ -1,7 +1,6 @@
1
1
  import React from 'react';
2
2
  import { IFAlert } from './FAlert';
3
3
  import 'bootstrap/dist/css/bootstrap.css';
4
- import './FAlert-stories.css';
5
4
  declare const _default: {
6
5
  title: string;
7
6
  tags: string[];
@@ -2,7 +2,6 @@ import React, { FC } from "react";
2
2
  import './FSelectSearchDb.css';
3
3
  export interface IFSelectSearchDb {
4
4
  fetchingFunc: (text: string) => Promise<any[]>;
5
- load?: boolean;
6
5
  selectedElement: (e: any | undefined) => void;
7
6
  selectItem: any;
8
7
  label?: string;
@@ -16,6 +15,7 @@ export interface IFSelectSearchDb {
16
15
  helpText?: string;
17
16
  onFocus?: React.FocusEventHandler<HTMLInputElement> | undefined;
18
17
  onBlur?: React.FocusEventHandler<HTMLInputElement> | undefined;
18
+ minLengthText?: number;
19
19
  }
20
20
  declare const FSelectSearchDb: FC<IFSelectSearchDb>;
21
21
  export default FSelectSearchDb;