@inceptionbg/iui 2.0.4 → 2.0.5
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/{NoAccessPage-BllwaG2u.js → NoAccessPage-C6nBt-PN.js} +2 -2
- package/dist/{NoAccessPage-BllwaG2u.js.map → NoAccessPage-C6nBt-PN.js.map} +1 -1
- package/dist/{NotFoundPage-DVm00-sr.js → NotFoundPage-DatmJOrr.js} +2 -2
- package/dist/{NotFoundPage-DVm00-sr.js.map → NotFoundPage-DatmJOrr.js.map} +1 -1
- package/dist/index.d.ts +34 -35
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/iui.css +1 -1
- package/package.json +8 -8
package/dist/index.d.ts
CHANGED
|
@@ -7,13 +7,8 @@ export { default as dayjs } from 'dayjs';
|
|
|
7
7
|
export { DragDropContext, Draggable, Droppable } from 'react-beautiful-dnd';
|
|
8
8
|
import * as react_toastify from 'react-toastify';
|
|
9
9
|
export { ToastContainer } from 'react-toastify';
|
|
10
|
-
export { TFunction, changeLanguage, default as i18n, i18n as i18nType } from 'i18next';
|
|
11
|
-
export { I18nextProvider, Trans, useTranslation } from 'react-i18next';
|
|
12
10
|
import * as react from 'react';
|
|
13
|
-
import { MouseEventHandler, ButtonHTMLAttributes,
|
|
14
|
-
import * as reactRouter from 'react-router';
|
|
15
|
-
export { reactRouter as ReactRouter };
|
|
16
|
-
export { BrowserRouter, Link, NavigateFunction, useLocation, useNavigate, useParams } from 'react-router';
|
|
11
|
+
import { FC, MouseEventHandler, ButtonHTMLAttributes, Ref, FormEvent, ReactNode, ReactElement, MouseEvent, Dispatch, SetStateAction, FunctionComponent, RefObject, ComponentProps, InputHTMLAttributes, FocusEventHandler } from 'react';
|
|
17
12
|
|
|
18
13
|
type IButtonColor = 'primary' | 'neutral' | 'danger';
|
|
19
14
|
type IButtonVariant = 'solid' | 'outlined' | 'simple';
|
|
@@ -30,8 +25,9 @@ interface IButtonProps {
|
|
|
30
25
|
type?: ButtonHTMLAttributes<HTMLButtonElement>['type'];
|
|
31
26
|
className?: string;
|
|
32
27
|
buttonProps?: ButtonHTMLAttributes<HTMLButtonElement>;
|
|
28
|
+
ref?: Ref<HTMLButtonElement>;
|
|
33
29
|
}
|
|
34
|
-
declare const Button:
|
|
30
|
+
declare const Button: FC<IButtonProps>;
|
|
35
31
|
|
|
36
32
|
interface IFormWrapper {
|
|
37
33
|
isLoading: boolean;
|
|
@@ -337,6 +333,21 @@ interface ITableKeyboardActionsBase {
|
|
|
337
333
|
}) => IKeyboardAction[];
|
|
338
334
|
}
|
|
339
335
|
|
|
336
|
+
type IMenuPlacement = 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right';
|
|
337
|
+
interface IMenuItem {
|
|
338
|
+
label: string;
|
|
339
|
+
icon?: IconDefinition;
|
|
340
|
+
iconRotation?: RotateProp;
|
|
341
|
+
onClick?: MouseEventHandler<HTMLDivElement>;
|
|
342
|
+
to?: string;
|
|
343
|
+
badge?: number;
|
|
344
|
+
disabled?: boolean;
|
|
345
|
+
hidden?: boolean;
|
|
346
|
+
withDevider?: boolean;
|
|
347
|
+
keepOpen?: boolean;
|
|
348
|
+
className?: string;
|
|
349
|
+
}
|
|
350
|
+
|
|
340
351
|
interface IError {
|
|
341
352
|
errorMessage: string;
|
|
342
353
|
errorCode?: string;
|
|
@@ -415,34 +426,19 @@ interface IHeaderAction {
|
|
|
415
426
|
disabled?: boolean;
|
|
416
427
|
hidden?: boolean;
|
|
417
428
|
}
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
element: ReactElement;
|
|
422
|
-
}
|
|
423
|
-
|
|
424
|
-
type IMenuPlacement = 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right';
|
|
425
|
-
interface IMenuItem {
|
|
426
|
-
label: string;
|
|
427
|
-
icon?: IconDefinition;
|
|
428
|
-
iconRotation?: RotateProp;
|
|
429
|
-
onClick?: MouseEventHandler<HTMLDivElement>;
|
|
430
|
-
to?: string;
|
|
431
|
-
badge?: number;
|
|
432
|
-
disabled?: boolean;
|
|
433
|
-
hidden?: boolean;
|
|
434
|
-
withDevider?: boolean;
|
|
435
|
-
keepOpen?: boolean;
|
|
436
|
-
className?: string;
|
|
437
|
-
}
|
|
438
|
-
|
|
439
|
-
interface Props$p {
|
|
429
|
+
type IHeaderUserMenuProps = {
|
|
430
|
+
isOpen: boolean;
|
|
431
|
+
setIsOpen: (isOpen: boolean) => void;
|
|
440
432
|
userName?: string;
|
|
441
433
|
organizationName?: string;
|
|
442
434
|
showBadge?: boolean;
|
|
443
435
|
menuItems?: IMenuItem[];
|
|
436
|
+
};
|
|
437
|
+
|
|
438
|
+
interface IRoute {
|
|
439
|
+
path: string;
|
|
440
|
+
element: ReactElement;
|
|
444
441
|
}
|
|
445
|
-
declare const UserMenu: FC<Props$p>;
|
|
446
442
|
|
|
447
443
|
interface Props$o {
|
|
448
444
|
modules: {
|
|
@@ -461,7 +457,12 @@ declare const ModuleSelect: FC<Props$o>;
|
|
|
461
457
|
interface Props$n {
|
|
462
458
|
customTitle?: string;
|
|
463
459
|
modulesProps?: ComponentProps<typeof ModuleSelect>;
|
|
464
|
-
userMenuProps:
|
|
460
|
+
userMenuProps: {
|
|
461
|
+
HeaderUserProvider: ({ children }: {
|
|
462
|
+
children: ReactNode;
|
|
463
|
+
}) => JSX.Element;
|
|
464
|
+
useHeaderUserContext: () => IHeaderUserMenuProps;
|
|
465
|
+
};
|
|
465
466
|
children?: ReactNode;
|
|
466
467
|
}
|
|
467
468
|
declare const Header: FC<Props$n>;
|
|
@@ -691,7 +692,7 @@ interface IDateInputProps {
|
|
|
691
692
|
errorText?: string;
|
|
692
693
|
isClearable?: boolean;
|
|
693
694
|
className?: string;
|
|
694
|
-
calendarPlacement
|
|
695
|
+
calendarPlacement?: IMenuPlacement;
|
|
695
696
|
}
|
|
696
697
|
declare const DateInput: FC<IDateInputProps>;
|
|
697
698
|
|
|
@@ -1131,11 +1132,9 @@ declare const i18nIUILatin: {
|
|
|
1131
1132
|
CharMin: string;
|
|
1132
1133
|
CharRange: string;
|
|
1133
1134
|
CharNumber: string;
|
|
1134
|
-
Pending: string;
|
|
1135
1135
|
Successfully: string;
|
|
1136
1136
|
DeletedSuccessfully: string;
|
|
1137
1137
|
ErrorMessage: string;
|
|
1138
|
-
TryAgain: string;
|
|
1139
1138
|
ReturnToHomepage: string;
|
|
1140
1139
|
FooterText: string;
|
|
1141
1140
|
PageNotFound: string;
|
|
@@ -1327,4 +1326,4 @@ declare const useIsMenuOpen: () => {
|
|
|
1327
1326
|
};
|
|
1328
1327
|
|
|
1329
1328
|
export { Accordions, Alert, Button, Checkbox, Collapse, ConditionalWrapper, CurrencyInput, Dashboard, DashboardWidget, DateInput, DeleteItemDialog, Dialog, DotBadge, FastLinksWidget, FilterItem, FormWrapper, FullScreenLoader, IconButton, ItemActionsMenu, ItemEditOptionsButtons, LazyLoader, Loader, Menu, MenuItem, NotificationBadge, NumberInput, PageLayout, PasswordInput, PillBadge, Radio, RadioLarge, Router, SearchInput, Select, SelectAsyncPaginate, SelectCreatable, SetTableFilter, Table, TableEditRow, TableFooter, TablePrint, Tabs, TextAreaInput, TextInput, TimeInput, Tooltip, Tree, areStringArraysEqual, calculateFilesSize, checkIfExpired, compareArrayItemsIndex, convertArrayToBooleanObject, convertBooleanObjectToArray, convertReportTemplateFilterToSearch, convertSearchToReportTemplateFilter, dataURLtoFile, dateAddDays, deepCopy, deleteEmptyProps, deleteEmptyPropsIncludingArray, deleteProps, deletePropsThatEndsWith, downloadDocumentFile, downloadFile, formatCurrency, formatCurrencyNoDecimals, formatDate, formatDateAndTime, formatDateYMD, formatDecimalNumber, formatTime, formatYearMonth, getActiveFilterNumber, getActiveOrgUuid, getBase64FromFile, getBase64FromUrl, getCurrentDateFormatted, getCurrentDateFormattedYMD, getDaysLeft, getDefaultOrgUuid, getExtensionFromFilename, getFileFromUrl, getInputHelperText, getInputMinMaxPattern, getPrintColumns, getVisibleColumnsIds, i18nIUICyrilic, i18nIUILatin, i18nIUIMe, inputPattern, intersectArrays, lsGet, lsRemove, lsSet, maxChar, parseUrlSearch, rootDir, rotateBase64Image, setActiveOrgUuid, setDefaultOrgUuid, setTemplateData, sizeInBytesPretty, splitBase64File, tableCustomLimit1000, toastError, toastSuccess, useDefaultTemplate, useDialogObserver, useHideZendesk, useIsMenuOpen, useOnEsc, useTableSelect };
|
|
1330
|
-
export type { DeepPartial, IAlertProps, IAnyObject, IBooleanObject, IError, IFormWrapper, IHeaderAction, IKeyboardAction, IPagination, IRoute, ISelectData, IServerSidePagination, ISimpleObject, ISimpleObjectWithCode, IStringObject, ITab, ITable, ITableColumn, ITableDataItem, ITableEditRow, ITableFilter, ITableFilterData, ITableFilterItem, ITableSort, ITreeItem, IValueLabel };
|
|
1329
|
+
export type { DeepPartial, IAlertProps, IAnyObject, IBooleanObject, IError, IFormWrapper, IHeaderAction, IHeaderUserMenuProps, IKeyboardAction, IMenuItem, IMenuPlacement, IPagination, IRoute, ISelectData, IServerSidePagination, ISimpleObject, ISimpleObjectWithCode, IStringObject, ITab, ITable, ITableColumn, ITableDataItem, ITableEditRow, ITableFilter, ITableFilterData, ITableFilterItem, ITableSort, ITreeItem, IValueLabel };
|