@smart-factor/gem-ui-components 0.0.1
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/README.md +29 -0
- package/dist/Drawer-STwjDQmP.js +8723 -0
- package/dist/components/AccordionSummary/AccordionSummary.d.ts +7 -0
- package/dist/components/AccordionSummary/AccordionSummary.stories.d.ts +8 -0
- package/dist/components/AccordionSummary/AccordionSummary.styles.d.ts +7 -0
- package/dist/components/Button/Button.d.ts +8 -0
- package/dist/components/Button/Button.stories.d.ts +8 -0
- package/dist/components/Button/Button.styles.d.ts +6 -0
- package/dist/components/Button/ButtonAdd.d.ts +3 -0
- package/dist/components/ButtonWithIcon/ButtonWithIcon.d.ts +10 -0
- package/dist/components/ButtonWithIcon/ButtonWithIcon.stories.d.ts +7 -0
- package/dist/components/Dialog/Dialog.d.ts +3 -0
- package/dist/components/Dialog/Dialog.stories.d.ts +7 -0
- package/dist/components/Dialog/Dialog.styles.d.ts +11 -0
- package/dist/components/Dialog/index.d.ts +2 -0
- package/dist/components/Dialog/types.d.ts +9 -0
- package/dist/components/Drawer/Drawer.d.ts +15 -0
- package/dist/components/Drawer/Drawer.stories.d.ts +8 -0
- package/dist/components/Drawer/DrawerContent.d.ts +6 -0
- package/dist/components/Drawer/DrawerFooter.d.ts +6 -0
- package/dist/components/Drawer/DrawerHeader.d.ts +7 -0
- package/dist/components/Drawer/index.d.ts +1 -0
- package/dist/components/Drawer/index.js +4 -0
- package/dist/components/Dropzone/Dropzone.d.ts +7 -0
- package/dist/components/Dropzone/Dropzone.stories.d.ts +9 -0
- package/dist/components/Dropzone/Dropzone.styles.d.ts +17 -0
- package/dist/components/Dropzone/DropzoneField.d.ts +12 -0
- package/dist/components/Dropzone/const.d.ts +12 -0
- package/dist/components/Dropzone/index.d.ts +3 -0
- package/dist/components/ElementsPicker/ElementsPicker.d.ts +8 -0
- package/dist/components/ElementsPicker/ElementsPicker.stories.d.ts +8 -0
- package/dist/components/ElementsPicker/ElementsPickerElement.d.ts +9 -0
- package/dist/components/ElementsPicker/index.d.ts +2 -0
- package/dist/components/FixedActionsBottomPanel/FixedActionsBottomPanel.d.ts +15 -0
- package/dist/components/FixedActionsBottomPanel/FixedActionsBottomPanel.stories.d.ts +9 -0
- package/dist/components/FixedActionsBottomPanel/FixedActionsBottomPanel.styles.d.ts +6 -0
- package/dist/components/FormComponents/ContextualSearch/ContextualSearch.d.ts +24 -0
- package/dist/components/FormComponents/ContextualSearch/ContextualSearch.stories.d.ts +10 -0
- package/dist/components/FormComponents/ContextualSearch/ContextualSearchOption.d.ts +13 -0
- package/dist/components/FormComponents/ContextualSearch/getTransformOnChange.d.ts +4 -0
- package/dist/components/FormComponents/ContextualSearch/getTransformValue.d.ts +3 -0
- package/dist/components/FormComponents/ContextualSearch/index.d.ts +2 -0
- package/dist/components/FormComponents/DatePicker/DatePicker.d.ts +12 -0
- package/dist/components/FormComponents/DatePicker/DatePicker.stories.d.ts +9 -0
- package/dist/components/FormComponents/DatePicker/DatePicker.styles.d.ts +7 -0
- package/dist/components/FormComponents/DateTimePicker/DateTimePicker.d.ts +12 -0
- package/dist/components/FormComponents/DateTimePicker/DateTimePicker.stories.d.ts +9 -0
- package/dist/components/FormComponents/DateTimePicker/DateTimePicker.styles.d.ts +7 -0
- package/dist/components/FormComponents/Input/Input.d.ts +11 -0
- package/dist/components/FormComponents/Input/Input.stories.d.ts +11 -0
- package/dist/components/FormComponents/Input/Input.styles.d.ts +3 -0
- package/dist/components/FormComponents/RadioChips/RadioChips.d.ts +21 -0
- package/dist/components/FormComponents/RadioChips/RadioChips.stories.d.ts +9 -0
- package/dist/components/FormComponents/RadioChips/RadioChips.styles.d.ts +10 -0
- package/dist/components/FormComponents/SearchInput/SearchInput.d.ts +8 -0
- package/dist/components/FormComponents/SearchInput/SearchInput.stories.d.ts +9 -0
- package/dist/components/FormComponents/SearchInput/SearchInput.styles.d.ts +1 -0
- package/dist/components/FormComponents/Select/Select.d.ts +29 -0
- package/dist/components/FormComponents/Select/Select.stories.d.ts +11 -0
- package/dist/components/FormComponents/Select/Select.styles.d.ts +4 -0
- package/dist/components/FormComponents/index.d.ts +8 -0
- package/dist/components/LoadingBackdrop/LoadingBackdrop.d.ts +7 -0
- package/dist/components/LoadingBackdrop/LoadingBackdrop.stories.d.ts +7 -0
- package/dist/components/LoadingBackdrop/index.d.ts +1 -0
- package/dist/components/ResizableWrapper/ResizableWrapper.d.ts +9 -0
- package/dist/components/ResizableWrapper/ResizableWrapper.stories.d.ts +7 -0
- package/dist/components/ResizableWrapper/ResizableWrapper.styles.d.ts +10 -0
- package/dist/components/SimpleInput/SimpleInput.d.ts +9 -0
- package/dist/components/SimpleInput/SimpleInput.stories.d.ts +7 -0
- package/dist/components/SimpleSelect/SimpleSelect.d.ts +13 -0
- package/dist/components/SimpleSelect/SimpleSelect.stories.d.ts +7 -0
- package/dist/components/Stepper/Stepper.d.ts +13 -0
- package/dist/components/Stepper/Stepper.stories.d.ts +7 -0
- package/dist/components/Stepper/Stepper.styles.d.ts +9 -0
- package/dist/components/StickyContainer/StickyContainer.d.ts +7 -0
- package/dist/components/StickyContainer/StickyContainer.stories.d.ts +7 -0
- package/dist/components/StickyContainer/StickyContainer.styles.d.ts +7 -0
- package/dist/components/TableComponents/ContextMenu/ContextMenu.d.ts +6 -0
- package/dist/components/TableComponents/ContextMenu/ContextMenu.stories.d.ts +7 -0
- package/dist/components/TableComponents/ContextMenu/ContextMenu.styles.d.ts +1 -0
- package/dist/components/TableComponents/ContextMenu/ContextMenuContext.d.ts +7 -0
- package/dist/components/TableComponents/ContextMenu/ContextMenuItem.d.ts +8 -0
- package/dist/components/TableComponents/ContextMenu/ContextMenuPropsContext/ContextMenuPropsContext.d.ts +6 -0
- package/dist/components/TableComponents/ContextMenu/ContextMenuPropsContext/useContextMenuProps.d.ts +3 -0
- package/dist/components/TableComponents/ContextMenu/index.d.ts +2 -0
- package/dist/components/TableComponents/TableActions/TableActions.d.ts +7 -0
- package/dist/components/TableComponents/TableActions/TableActions.stories.d.ts +7 -0
- package/dist/components/TableComponents/TableActions/index.d.ts +2 -0
- package/dist/components/TableComponents/TableRecord/TableRecord.d.ts +8 -0
- package/dist/components/TableComponents/TableRecord/index.d.ts +1 -0
- package/dist/components/TableComponents/TableWithPagination/TableWithPagination.d.ts +4 -0
- package/dist/components/TableComponents/TableWithPagination/TableWithPagination.stories.d.ts +12 -0
- package/dist/components/TableComponents/TableWithPagination/TableWrapper.d.ts +8 -0
- package/dist/components/TableComponents/TableWithPagination/types.d.ts +51 -0
- package/dist/components/TableComponents/index.d.ts +4 -0
- package/dist/components/TabsPanel/TabsPanel.d.ts +14 -0
- package/dist/components/TabsPanel/TabsPanel.stories.d.ts +7 -0
- package/dist/components/TabsPanel/TabsPanel.styles.d.ts +8 -0
- package/dist/components/Toast/Toast.stories.d.ts +7 -0
- package/dist/components/Toast/Toast.styles.d.ts +12 -0
- package/dist/components/Toast/ToastContent.d.ts +4 -0
- package/dist/components/Toast/errorToast.d.ts +1 -0
- package/dist/components/Toast/index.d.ts +2 -0
- package/dist/components/Toast/successToast.d.ts +1 -0
- package/dist/consts/data-grid.d.ts +122 -0
- package/dist/hooks/index.d.ts +4 -0
- package/dist/hooks/useContextMenu.d.ts +8 -0
- package/dist/hooks/useDataGridState.d.ts +9 -0
- package/dist/hooks/useGetFileUrl.d.ts +5 -0
- package/dist/hooks/useKeepDefinedValue.d.ts +1 -0
- package/dist/hooks/useScrollPosition.d.ts +2 -0
- package/dist/main.d.ts +23 -0
- package/dist/main.js +59502 -0
- package/dist/providers/GemUIComponentsProvider.d.ts +4 -0
- package/dist/providers/ToasterProvider.d.ts +1 -0
- package/dist/theme/theme.d.ts +13 -0
- package/package.json +96 -0
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const DATA_GRID_LOCALE: {
|
|
3
|
+
columnsManagementSearchTitle: string;
|
|
4
|
+
columnsManagementNoColumns: string;
|
|
5
|
+
columnsManagementShowHideAllText: string;
|
|
6
|
+
headerFilterOperatorIs: string;
|
|
7
|
+
headerFilterOperatorAfter: string;
|
|
8
|
+
headerFilterOperatorOnOrAfter: string;
|
|
9
|
+
headerFilterOperatorBefore: string;
|
|
10
|
+
headerFilterOperatorOnOrBefore: string;
|
|
11
|
+
headerFilterOperatorIsEmpty: string;
|
|
12
|
+
headerFilterOperatorIsNotEmpty: string;
|
|
13
|
+
headerFilterOperatorIsAnyOf: string;
|
|
14
|
+
'headerFilterOperator=': string;
|
|
15
|
+
'headerFilterOperator!=': string;
|
|
16
|
+
'headerFilterOperator>': string;
|
|
17
|
+
'headerFilterOperator>=': string;
|
|
18
|
+
'headerFilterOperator<': string;
|
|
19
|
+
'headerFilterOperator<=': string;
|
|
20
|
+
detailPanelToggle: string;
|
|
21
|
+
aggregationMenuItemHeader: string;
|
|
22
|
+
aggregationFunctionLabelSum: string;
|
|
23
|
+
aggregationFunctionLabelAvg: string;
|
|
24
|
+
aggregationFunctionLabelMin: string;
|
|
25
|
+
aggregationFunctionLabelMax: string;
|
|
26
|
+
aggregationFunctionLabelSize: string;
|
|
27
|
+
noRowsLabel?: string | undefined;
|
|
28
|
+
noResultsOverlayLabel?: string | undefined;
|
|
29
|
+
toolbarDensity?: import('react').ReactNode;
|
|
30
|
+
toolbarDensityLabel?: string | undefined;
|
|
31
|
+
toolbarDensityCompact?: string | undefined;
|
|
32
|
+
toolbarDensityStandard?: string | undefined;
|
|
33
|
+
toolbarDensityComfortable?: string | undefined;
|
|
34
|
+
toolbarColumns?: import('react').ReactNode;
|
|
35
|
+
toolbarColumnsLabel?: string | undefined;
|
|
36
|
+
toolbarFilters?: import('react').ReactNode;
|
|
37
|
+
toolbarFiltersLabel?: string | undefined;
|
|
38
|
+
toolbarFiltersTooltipHide?: import('react').ReactNode;
|
|
39
|
+
toolbarFiltersTooltipShow?: import('react').ReactNode;
|
|
40
|
+
toolbarFiltersTooltipActive?: ((count: number) => import('react').ReactNode) | undefined;
|
|
41
|
+
toolbarQuickFilterPlaceholder?: string | undefined;
|
|
42
|
+
toolbarQuickFilterLabel?: string | undefined;
|
|
43
|
+
toolbarQuickFilterDeleteIconLabel?: string | undefined;
|
|
44
|
+
toolbarExport?: import('react').ReactNode;
|
|
45
|
+
toolbarExportLabel?: string | undefined;
|
|
46
|
+
toolbarExportCSV?: import('react').ReactNode;
|
|
47
|
+
toolbarExportPrint?: import('react').ReactNode;
|
|
48
|
+
toolbarExportExcel?: string | undefined;
|
|
49
|
+
columnsManagementReset?: string | undefined;
|
|
50
|
+
filterPanelAddFilter?: import('react').ReactNode;
|
|
51
|
+
filterPanelRemoveAll?: import('react').ReactNode;
|
|
52
|
+
filterPanelDeleteIconLabel?: string | undefined;
|
|
53
|
+
filterPanelLogicOperator?: string | undefined;
|
|
54
|
+
filterPanelOperator?: import('react').ReactNode;
|
|
55
|
+
filterPanelOperatorAnd?: import('react').ReactNode;
|
|
56
|
+
filterPanelOperatorOr?: import('react').ReactNode;
|
|
57
|
+
filterPanelColumns?: import('react').ReactNode;
|
|
58
|
+
filterPanelInputLabel?: string | undefined;
|
|
59
|
+
filterPanelInputPlaceholder?: string | undefined;
|
|
60
|
+
filterOperatorContains?: string | undefined;
|
|
61
|
+
filterOperatorEquals?: string | undefined;
|
|
62
|
+
filterOperatorStartsWith?: string | undefined;
|
|
63
|
+
filterOperatorEndsWith?: string | undefined;
|
|
64
|
+
filterOperatorIs?: string | undefined;
|
|
65
|
+
filterOperatorNot?: string | undefined;
|
|
66
|
+
filterOperatorAfter?: string | undefined;
|
|
67
|
+
filterOperatorOnOrAfter?: string | undefined;
|
|
68
|
+
filterOperatorBefore?: string | undefined;
|
|
69
|
+
filterOperatorOnOrBefore?: string | undefined;
|
|
70
|
+
filterOperatorIsEmpty?: string | undefined;
|
|
71
|
+
filterOperatorIsNotEmpty?: string | undefined;
|
|
72
|
+
filterOperatorIsAnyOf?: string | undefined;
|
|
73
|
+
'filterOperator='?: string | undefined;
|
|
74
|
+
'filterOperator!='?: string | undefined;
|
|
75
|
+
'filterOperator>'?: string | undefined;
|
|
76
|
+
'filterOperator>='?: string | undefined;
|
|
77
|
+
'filterOperator<'?: string | undefined;
|
|
78
|
+
'filterOperator<='?: string | undefined;
|
|
79
|
+
headerFilterOperatorContains?: string | undefined;
|
|
80
|
+
headerFilterOperatorEquals?: string | undefined;
|
|
81
|
+
headerFilterOperatorStartsWith?: string | undefined;
|
|
82
|
+
headerFilterOperatorEndsWith?: string | undefined;
|
|
83
|
+
headerFilterOperatorNot?: string | undefined;
|
|
84
|
+
filterValueAny?: string | undefined;
|
|
85
|
+
filterValueTrue?: string | undefined;
|
|
86
|
+
filterValueFalse?: string | undefined;
|
|
87
|
+
columnMenuLabel?: string | undefined;
|
|
88
|
+
columnMenuShowColumns?: import('react').ReactNode;
|
|
89
|
+
columnMenuManageColumns?: import('react').ReactNode;
|
|
90
|
+
columnMenuFilter?: import('react').ReactNode;
|
|
91
|
+
columnMenuHideColumn?: import('react').ReactNode;
|
|
92
|
+
columnMenuUnsort?: import('react').ReactNode;
|
|
93
|
+
columnMenuSortAsc?: import('react').ReactNode | ((colDef: import('@mui/x-data-grid').GridColDef) => import('react').ReactNode);
|
|
94
|
+
columnMenuSortDesc?: import('react').ReactNode | ((colDef: import('@mui/x-data-grid').GridColDef) => import('react').ReactNode);
|
|
95
|
+
columnHeaderFiltersTooltipActive?: ((count: number) => import('react').ReactNode) | undefined;
|
|
96
|
+
columnHeaderFiltersLabel?: string | undefined;
|
|
97
|
+
columnHeaderSortIconLabel?: string | undefined;
|
|
98
|
+
footerRowSelected?: ((count: number) => import('react').ReactNode) | undefined;
|
|
99
|
+
footerTotalRows?: import('react').ReactNode;
|
|
100
|
+
footerTotalVisibleRows?: ((visibleCount: number, totalCount: number) => import('react').ReactNode) | undefined;
|
|
101
|
+
checkboxSelectionHeaderName?: string | undefined;
|
|
102
|
+
checkboxSelectionSelectAllRows?: string | undefined;
|
|
103
|
+
checkboxSelectionUnselectAllRows?: string | undefined;
|
|
104
|
+
checkboxSelectionSelectRow?: string | undefined;
|
|
105
|
+
checkboxSelectionUnselectRow?: string | undefined;
|
|
106
|
+
booleanCellTrueLabel?: string | undefined;
|
|
107
|
+
booleanCellFalseLabel?: string | undefined;
|
|
108
|
+
actionsCellMore?: string | undefined;
|
|
109
|
+
pinToLeft?: string | undefined;
|
|
110
|
+
pinToRight?: string | undefined;
|
|
111
|
+
unpin?: string | undefined;
|
|
112
|
+
treeDataGroupingHeaderName?: string | undefined;
|
|
113
|
+
treeDataExpand?: string | undefined;
|
|
114
|
+
treeDataCollapse?: string | undefined;
|
|
115
|
+
groupingColumnHeaderName?: string | undefined;
|
|
116
|
+
groupColumn?: ((name: string) => string) | undefined;
|
|
117
|
+
unGroupColumn?: ((name: string) => string) | undefined;
|
|
118
|
+
expandDetailPanel?: string | undefined;
|
|
119
|
+
collapseDetailPanel?: string | undefined;
|
|
120
|
+
rowReorderingHeaderName?: string | undefined;
|
|
121
|
+
MuiTablePagination?: import('@mui/x-data-grid/models/api/gridLocaleTextApi').MuiTablePaginationLocalizedProps | undefined;
|
|
122
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { MutableRefObject } from 'react';
|
|
2
|
+
import { GridApi } from '@mui/x-data-grid-pro';
|
|
3
|
+
import { GridInitialStatePro } from '@mui/x-data-grid-pro/models/gridStatePro';
|
|
4
|
+
|
|
5
|
+
interface IUseDataGridState {
|
|
6
|
+
state: undefined | GridInitialStatePro;
|
|
7
|
+
}
|
|
8
|
+
export declare const useDataGridState: (key: string, apiRef: MutableRefObject<GridApi>) => IUseDataGridState;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function useKeepDefinedValue<T>(value: T | undefined, defaultValue: T): T;
|
package/dist/main.d.ts
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export { AccordionSummary } from './components/AccordionSummary/AccordionSummary';
|
|
2
|
+
export { Button } from './components/Button/Button';
|
|
3
|
+
export { ButtonAdd } from './components/Button/ButtonAdd';
|
|
4
|
+
export { ButtonWithIcon } from './components/ButtonWithIcon/ButtonWithIcon';
|
|
5
|
+
export { Dialog } from './components/Dialog/Dialog';
|
|
6
|
+
export { Drawer } from './components/Drawer/Drawer';
|
|
7
|
+
export * from './components/Dropzone';
|
|
8
|
+
export * from './components/ElementsPicker';
|
|
9
|
+
export { FixedActionsBottomPanel } from './components/FixedActionsBottomPanel/FixedActionsBottomPanel';
|
|
10
|
+
export * from './components/FormComponents';
|
|
11
|
+
export { LoadingBackdrop } from './components/LoadingBackdrop/LoadingBackdrop';
|
|
12
|
+
export { ResizableWrapper } from './components/ResizableWrapper/ResizableWrapper';
|
|
13
|
+
export { SimpleInput } from './components/SimpleInput/SimpleInput';
|
|
14
|
+
export { SimpleSelect } from './components/SimpleSelect/SimpleSelect';
|
|
15
|
+
export { Stepper } from './components/Stepper/Stepper';
|
|
16
|
+
export { StickyContainer } from './components/StickyContainer/StickyContainer';
|
|
17
|
+
export * from './components/TableComponents';
|
|
18
|
+
export { TabsPanel } from './components/TabsPanel/TabsPanel';
|
|
19
|
+
export * from './components/Toast';
|
|
20
|
+
export * from './hooks';
|
|
21
|
+
export { theme } from './theme/theme';
|
|
22
|
+
export { Accordion, AccordionDetails, styled, type Theme, ThemeProvider, Typography, useTheme, } from '@mui/material';
|
|
23
|
+
export { default as GemUIComponentsProvider } from './providers/GemUIComponentsProvider';
|