fui-material 1.0.10-beta → 1.0.12-beta

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.
@@ -2,5 +2,6 @@ export { default as fAlert } from "./fAlert";
2
2
  export { default as fConfirm } from "./fConfirm";
3
3
  export { default as fPrompt } from "./fPrompt";
4
4
  export { default as fExportTableToExcel } from "./fExportTableToExcel";
5
+ export { default as fExportHtmlOrJsxToWord } from "./fExportHtmlOrJsxToWord";
5
6
  export { default as fNotification } from "./Notification/fNotification";
6
7
  export { default as fNotificationDelete } from "./Notification/fNotificationDelete";
package/dist/index.d.ts CHANGED
@@ -692,6 +692,15 @@ interface IfExportTableToExcel {
692
692
  }
693
693
  declare const fExportTableToExcel: ({ tableId, fileName, jsxElement }: IfExportTableToExcel) => Promise<boolean>;
694
694
 
695
+ interface IfExportHtmlOrJsxToWord {
696
+ tableId?: string;
697
+ fileName: string;
698
+ jsxElement?: JSX.Element;
699
+ format?: 'A4' | 'A3' | 'A2' | 'A1';
700
+ orientation?: 'landscape' | 'vertical';
701
+ }
702
+ declare const fExportHtmlOrJsxToWord: ({ tableId, fileName, jsxElement, format, orientation }: IfExportHtmlOrJsxToWord) => Promise<boolean>;
703
+
695
704
  interface IfNotification {
696
705
  title?: string;
697
706
  body: string;
@@ -703,4 +712,4 @@ declare const fNotification: ({ title, body, variant, timeSecClose, buttonClose,
703
712
 
704
713
  declare const fNotificationDelete: (id: string) => void;
705
714
 
706
- export { FAccordion, FAlert, FArrowIcon, FButton, FButtonFile, FCheckIcon, FCheckbox, FCloseIcon, FContainer, FCopyAddIcon, FDialog, FDialogBody, FDialogFooter, FDialogHeader, FDocumentIcon, 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, fExportTableToExcel, fNotification, fNotificationDelete, fPrompt };
715
+ export { FAccordion, FAlert, FArrowIcon, FButton, FButtonFile, FCheckIcon, FCheckbox, FCloseIcon, FContainer, FCopyAddIcon, FDialog, FDialogBody, FDialogFooter, FDialogHeader, FDocumentIcon, 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, fExportHtmlOrJsxToWord, fExportTableToExcel, fNotification, fNotificationDelete, fPrompt };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fui-material",
3
- "version": "1.0.10-beta",
3
+ "version": "1.0.12-beta",
4
4
  "publishConfig": {
5
5
  "access": "public",
6
6
  "registry": "https://registry.npmjs.org/"
@@ -13,7 +13,8 @@
13
13
  "react": "^18.2.0",
14
14
  "react-dom": "^18.2.0",
15
15
  "react-scripts": "5.0.1",
16
- "typescript": "^4.9.3"
16
+ "typescript": "^4.9.3",
17
+ "jszip": "^3.10.1"
17
18
  },
18
19
  "scripts": {
19
20
  "build": "rollup -c",
@@ -1,2 +0,0 @@
1
- /// <reference types="react" />
2
- export declare function jsxToHtml(element: JSX.Element): Promise<Element | null>;
@@ -1 +0,0 @@
1
- export declare function generateUniqueId(): string;
@@ -1 +0,0 @@
1
- export declare function generateUniqueId(): string;
@@ -1,11 +0,0 @@
1
- import './fNotification.css';
2
- export interface IfNotification {
3
- title?: string;
4
- body: string;
5
- variant: 'info' | 'error' | 'success' | 'warning';
6
- timeSecClose?: number;
7
- buttonClose?: boolean;
8
- close?: boolean;
9
- }
10
- declare const fNotification: ({ title, body, variant, timeSecClose, buttonClose, close, }: IfNotification) => void;
11
- export default fNotification;
@@ -1,6 +0,0 @@
1
- import { StoryFn } from '@storybook/react';
2
- import 'bootstrap/dist/css/bootstrap.css';
3
- import { IfNotification } from "./fNotification";
4
- declare const _default: Meta<({ title, body, variant, timeSecClose, buttonClose }: IfNotification) => void>;
5
- export default _default;
6
- export declare const Default: StoryFn<IfNotification>;
@@ -1 +0,0 @@
1
- export { default } from "./fNotification";
@@ -1,2 +0,0 @@
1
- /// <reference types="react" />
2
- export declare function jsxToHtml(element: JSX.Element): Promise<Element | null>;
@@ -1 +0,0 @@
1
- export declare function generateUniqueId(): string;
@@ -1 +0,0 @@
1
- export declare function generateUniqueId(): string;
@@ -1,11 +0,0 @@
1
- import './fNotification.css';
2
- export interface IfNotification {
3
- title?: string;
4
- body: string;
5
- variant: 'info' | 'error' | 'success' | 'warning';
6
- timeSecClose?: number;
7
- buttonClose?: boolean;
8
- close?: boolean;
9
- }
10
- declare const fNotification: ({ title, body, variant, timeSecClose, buttonClose, close, }: IfNotification) => void;
11
- export default fNotification;
@@ -1,6 +0,0 @@
1
- import { StoryFn } from '@storybook/react';
2
- import 'bootstrap/dist/css/bootstrap.css';
3
- import { IfNotification } from "./fNotification";
4
- declare const _default: Meta<({ title, body, variant, timeSecClose, buttonClose }: IfNotification) => void>;
5
- export default _default;
6
- export declare const Default: StoryFn<IfNotification>;
@@ -1 +0,0 @@
1
- export { default } from "./fNotification";