@okta/odyssey-react-mui 1.6.20 → 1.7.0
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/CHANGELOG.md +8 -0
- package/dist/Button.js +2 -2
- package/dist/Button.js.map +1 -1
- package/dist/MenuButton.js +16 -2
- package/dist/MenuButton.js.map +1 -1
- package/dist/MenuContext.js +2 -1
- package/dist/MenuContext.js.map +1 -1
- package/dist/MenuItem.js +6 -3
- package/dist/MenuItem.js.map +1 -1
- package/dist/SearchField.js.map +1 -1
- package/dist/icons.generated/ArrowBottom.js +33 -0
- package/dist/icons.generated/ArrowBottom.js.map +1 -0
- package/dist/icons.generated/ArrowTop.js +33 -0
- package/dist/icons.generated/ArrowTop.js.map +1 -0
- package/dist/icons.generated/index.js +2 -0
- package/dist/icons.generated/index.js.map +1 -1
- package/dist/labs/DataFilters.js +366 -0
- package/dist/labs/DataFilters.js.map +1 -0
- package/dist/labs/DataTable.js +366 -0
- package/dist/labs/DataTable.js.map +1 -0
- package/dist/labs/DataTablePagination.js +74 -0
- package/dist/labs/DataTablePagination.js.map +1 -0
- package/dist/labs/PaginatedTable.js +9 -6
- package/dist/labs/PaginatedTable.js.map +1 -1
- package/dist/labs/StaticTable.js +8 -5
- package/dist/labs/StaticTable.js.map +1 -1
- package/dist/labs/index.js +4 -1
- package/dist/labs/index.js.map +1 -1
- package/dist/labs/materialReactTableTypes.js.map +1 -1
- package/dist/src/MenuButton.d.ts +12 -2
- package/dist/src/MenuButton.d.ts.map +1 -1
- package/dist/src/MenuContext.d.ts +1 -0
- package/dist/src/MenuContext.d.ts.map +1 -1
- package/dist/src/MenuItem.d.ts.map +1 -1
- package/dist/src/SearchField.d.ts +16 -0
- package/dist/src/SearchField.d.ts.map +1 -1
- package/dist/src/icons.generated/ArrowBottom.d.ts +16 -0
- package/dist/src/icons.generated/ArrowBottom.d.ts.map +1 -0
- package/dist/src/icons.generated/ArrowTop.d.ts +16 -0
- package/dist/src/icons.generated/ArrowTop.d.ts.map +1 -0
- package/dist/src/icons.generated/index.d.ts +2 -0
- package/dist/src/icons.generated/index.d.ts.map +1 -1
- package/dist/src/labs/DataFilters.d.ts +85 -0
- package/dist/src/labs/DataFilters.d.ts.map +1 -0
- package/dist/src/labs/DataTable.d.ts +193 -0
- package/dist/src/labs/DataTable.d.ts.map +1 -0
- package/dist/src/labs/DataTablePagination.d.ts +25 -0
- package/dist/src/labs/DataTablePagination.d.ts.map +1 -0
- package/dist/src/labs/PaginatedTable.d.ts.map +1 -1
- package/dist/src/labs/StaticTable.d.ts.map +1 -1
- package/dist/src/labs/index.d.ts +4 -2
- package/dist/src/labs/index.d.ts.map +1 -1
- package/dist/src/labs/materialReactTableTypes.d.ts +1 -1
- package/dist/src/labs/materialReactTableTypes.d.ts.map +1 -1
- package/dist/src/theme/components.d.ts.map +1 -1
- package/dist/theme/components.js +140 -65
- package/dist/theme/components.js.map +1 -1
- package/dist/tsconfig.production.tsbuildinfo +1 -1
- package/package.json +4 -4
- package/src/Button.tsx +2 -2
- package/src/MenuButton.tsx +50 -8
- package/src/MenuContext.ts +2 -0
- package/src/MenuItem.tsx +5 -3
- package/src/SearchField.tsx +8 -0
- package/src/icons.generated/ArrowBottom.tsx +43 -0
- package/src/icons.generated/ArrowTop.tsx +43 -0
- package/src/icons.generated/index.ts +2 -0
- package/src/labs/DataFilters.tsx +601 -0
- package/src/labs/DataTable.tsx +683 -0
- package/src/labs/DataTablePagination.tsx +88 -0
- package/src/labs/PaginatedTable.tsx +35 -33
- package/src/labs/StaticTable.tsx +26 -29
- package/src/labs/index.ts +6 -3
- package/src/labs/{materialReactTableTypes.ts → materialReactTableTypes.tsx} +1 -1
- package/src/theme/components.tsx +157 -63
|
@@ -0,0 +1,193 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Copyright (c) 2023-present, Okta, Inc. and/or its affiliates. All rights reserved.
|
|
3
|
+
* The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.")
|
|
4
|
+
*
|
|
5
|
+
* You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.
|
|
6
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
7
|
+
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
|
8
|
+
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
9
|
+
*
|
|
10
|
+
* See the License for the specific language governing permissions and limitations under the License.
|
|
11
|
+
*/
|
|
12
|
+
import { MRT_RowData, MRT_TableOptions, MRT_SortingState, MRT_RowSelectionState, MRT_ColumnDef } from "material-react-table";
|
|
13
|
+
import { Fragment, ReactElement } from "react";
|
|
14
|
+
import { paginationTypeValues } from "./DataTablePagination";
|
|
15
|
+
import { DataFilter } from "./DataFilters";
|
|
16
|
+
import { Button } from "../Button";
|
|
17
|
+
import { MenuItem } from "..";
|
|
18
|
+
export declare const densityValues: readonly ["comfortable", "spacious", "compact"];
|
|
19
|
+
export type { MRT_ColumnFiltersState, MRT_SortingState, MRT_ColumnDef as TableColumn, } from "material-react-table";
|
|
20
|
+
export type DataColumn = {
|
|
21
|
+
/**
|
|
22
|
+
* The unique ID of the column
|
|
23
|
+
*/
|
|
24
|
+
accessorKey: string;
|
|
25
|
+
/**
|
|
26
|
+
* The human-friendly title of the column
|
|
27
|
+
*/
|
|
28
|
+
header: string;
|
|
29
|
+
/**
|
|
30
|
+
* Customize the way each cell in the column is
|
|
31
|
+
* displayed via a custom React component.
|
|
32
|
+
*/
|
|
33
|
+
Cell?: MRT_ColumnDef<MRT_RowData>["Cell"];
|
|
34
|
+
/**
|
|
35
|
+
* The UI control that will be used to filter the column.
|
|
36
|
+
* Defaults to a standard text input.
|
|
37
|
+
*/
|
|
38
|
+
filterVariant?: MRT_ColumnDef<MRT_RowData>["filterVariant"];
|
|
39
|
+
/**
|
|
40
|
+
* If the filter control has preset options (such as a select or multi-select),
|
|
41
|
+
* these are the options provided.
|
|
42
|
+
*/
|
|
43
|
+
filterSelectOptions?: Array<{
|
|
44
|
+
label: string;
|
|
45
|
+
value: string;
|
|
46
|
+
}>;
|
|
47
|
+
/**
|
|
48
|
+
* The optional column width, in pixels
|
|
49
|
+
*/
|
|
50
|
+
size?: number;
|
|
51
|
+
/**
|
|
52
|
+
* The minimum column width, in pixels
|
|
53
|
+
*/
|
|
54
|
+
minSize?: number;
|
|
55
|
+
/**
|
|
56
|
+
* The maximum column width, in pixels
|
|
57
|
+
*/
|
|
58
|
+
maxSize?: number;
|
|
59
|
+
/**
|
|
60
|
+
* If set to false, the column won't be filterable
|
|
61
|
+
*/
|
|
62
|
+
enableColumnFilter?: boolean;
|
|
63
|
+
/**
|
|
64
|
+
* If set to false, the column won't be searchable
|
|
65
|
+
*/
|
|
66
|
+
enableGlobalFilter?: boolean;
|
|
67
|
+
/**
|
|
68
|
+
* If set to false, the column won't be sortable
|
|
69
|
+
*/
|
|
70
|
+
enableSorting?: boolean;
|
|
71
|
+
/**
|
|
72
|
+
* If set to false, the column won't be resizable
|
|
73
|
+
*/
|
|
74
|
+
enableResizing?: boolean;
|
|
75
|
+
/**
|
|
76
|
+
* If set to false, the column won't be hideable
|
|
77
|
+
*/
|
|
78
|
+
enableHiding?: boolean;
|
|
79
|
+
};
|
|
80
|
+
export type DataTableProps = {
|
|
81
|
+
/**
|
|
82
|
+
* The columns that make up the table
|
|
83
|
+
*/
|
|
84
|
+
columns: DataColumn[];
|
|
85
|
+
/**
|
|
86
|
+
* The data that goes into the table, which will be displayed
|
|
87
|
+
* as the table rows
|
|
88
|
+
*/
|
|
89
|
+
data: MRT_TableOptions<MRT_RowData>["data"];
|
|
90
|
+
/**
|
|
91
|
+
* The total number of rows in the table. Optional, because it's sometimes impossible
|
|
92
|
+
* to calculate. Used in table pagination to know when to disable the "next"/"more" button.
|
|
93
|
+
*/
|
|
94
|
+
totalRows?: number;
|
|
95
|
+
/**
|
|
96
|
+
* The function to get the ID of a row
|
|
97
|
+
*/
|
|
98
|
+
getRowId?: MRT_TableOptions<MRT_RowData>["getRowId"];
|
|
99
|
+
/**
|
|
100
|
+
* The initial density of the table. This is available even if the table density
|
|
101
|
+
* isn't changeable.
|
|
102
|
+
*/
|
|
103
|
+
initialDensity?: (typeof densityValues)[number];
|
|
104
|
+
/**
|
|
105
|
+
* If true, the end user will be able to change the table density.
|
|
106
|
+
*/
|
|
107
|
+
hasChangeableDensity?: boolean;
|
|
108
|
+
/**
|
|
109
|
+
* If true, the end user can resize individual columns.
|
|
110
|
+
*/
|
|
111
|
+
hasColumnResizing?: boolean;
|
|
112
|
+
/**
|
|
113
|
+
* If true, the end user will be able to show/hide columns.
|
|
114
|
+
*/
|
|
115
|
+
hasColumnVisibility?: boolean;
|
|
116
|
+
/**
|
|
117
|
+
* If true, the end user will be able to filter columns.
|
|
118
|
+
*/
|
|
119
|
+
hasFilters?: boolean;
|
|
120
|
+
/**
|
|
121
|
+
* If true, the table will include pagination controls.
|
|
122
|
+
*/
|
|
123
|
+
hasPagination?: boolean;
|
|
124
|
+
/**
|
|
125
|
+
* If true, the table will include checkboxes on each row, enabling
|
|
126
|
+
* the user to select some or all rows.
|
|
127
|
+
*/
|
|
128
|
+
hasRowSelection?: boolean;
|
|
129
|
+
/**
|
|
130
|
+
* If true, the global table search controls will be shown.
|
|
131
|
+
*/
|
|
132
|
+
hasSearch?: boolean;
|
|
133
|
+
/**
|
|
134
|
+
* If true, the end user can sort columns (ascending, descending, or neither)
|
|
135
|
+
*/
|
|
136
|
+
hasSorting?: boolean;
|
|
137
|
+
/**
|
|
138
|
+
* If true, the end user can reorder rows via a drag-and-drop interface
|
|
139
|
+
*/
|
|
140
|
+
hasRowReordering?: boolean;
|
|
141
|
+
/**
|
|
142
|
+
* If true, the search field will include a Search button, rather than
|
|
143
|
+
* firing on input change.
|
|
144
|
+
*/
|
|
145
|
+
hasSearchSubmitButton?: boolean;
|
|
146
|
+
/**
|
|
147
|
+
* Callback that fires when a row (or rows) is selected or unselected.
|
|
148
|
+
*/
|
|
149
|
+
onRowSelectionChange?: (rowSelection: MRT_RowSelectionState) => void;
|
|
150
|
+
/**
|
|
151
|
+
* Callback that fires whenever the table needs to fetch new data, due to changes in
|
|
152
|
+
* page, results per page, search input, filters, or sorting
|
|
153
|
+
*/
|
|
154
|
+
fetchDataFn: ({ page, resultsPerPage, search, filters, sort, }: {
|
|
155
|
+
page?: number;
|
|
156
|
+
resultsPerPage?: number;
|
|
157
|
+
search?: string;
|
|
158
|
+
filters?: DataFilter[];
|
|
159
|
+
sort?: MRT_SortingState;
|
|
160
|
+
}) => MRT_TableOptions<MRT_RowData>["data"];
|
|
161
|
+
/**
|
|
162
|
+
* Callback that fires when the user reorders rows within the table. Can be used
|
|
163
|
+
* to propogate order change to the backend.
|
|
164
|
+
*/
|
|
165
|
+
reorderDataFn?: ({ rowId, newIndex, }: {
|
|
166
|
+
rowId: string;
|
|
167
|
+
newIndex: number;
|
|
168
|
+
}) => void;
|
|
169
|
+
/**
|
|
170
|
+
* The current page number.
|
|
171
|
+
*/
|
|
172
|
+
page?: number;
|
|
173
|
+
/**
|
|
174
|
+
* The number of results per page.
|
|
175
|
+
*/
|
|
176
|
+
resultsPerPage?: number;
|
|
177
|
+
/**
|
|
178
|
+
* The type of pagination controls shown. Defaults to next/prev buttons, but can be
|
|
179
|
+
* set to a simple "Load more" button by setting to "loadMore".
|
|
180
|
+
*/
|
|
181
|
+
paginationType?: (typeof paginationTypeValues)[number];
|
|
182
|
+
/**
|
|
183
|
+
* Action buttons to display in each row
|
|
184
|
+
*/
|
|
185
|
+
rowActionButtons?: (row: MRT_RowData) => ReactElement<typeof Button | typeof Fragment>;
|
|
186
|
+
/**
|
|
187
|
+
* Menu items to include in the optional actions menu on each row.
|
|
188
|
+
*/
|
|
189
|
+
rowActionMenuItems?: (row: MRT_RowData) => ReactElement<typeof MenuItem | typeof Fragment>;
|
|
190
|
+
};
|
|
191
|
+
declare const MemoizedDataTable: import("react").MemoExoticComponent<({ columns, data: dataProp, getRowId, page: pageProp, initialDensity, resultsPerPage: resultsPerPageProp, fetchDataFn, reorderDataFn, totalRows, hasSearchSubmitButton, paginationType, onRowSelectionChange, rowActionButtons, rowActionMenuItems, hasChangeableDensity, hasColumnResizing, hasColumnVisibility, hasFilters, hasPagination, hasRowReordering, hasRowSelection, hasSearch, hasSorting, }: DataTableProps) => JSX.Element>;
|
|
192
|
+
export { MemoizedDataTable as DataTable };
|
|
193
|
+
//# sourceMappingURL=DataTable.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DataTable.d.ts","sourceRoot":"","sources":["../../../src/labs/DataTable.tsx"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Copyright (c) 2023-present, Okta, Inc. and/or its affiliates. All rights reserved.
|
|
3
|
+
* The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.")
|
|
4
|
+
*
|
|
5
|
+
* You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.
|
|
6
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
7
|
+
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
|
8
|
+
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
9
|
+
*
|
|
10
|
+
* See the License for the specific language governing permissions and limitations under the License.
|
|
11
|
+
*/
|
|
12
|
+
/// <reference types="react" />
|
|
13
|
+
export declare const paginationTypeValues: readonly ["paged", "loadMore"];
|
|
14
|
+
export type DataTablePaginationProps = {
|
|
15
|
+
currentPage?: number;
|
|
16
|
+
currentNumberOfResults?: number;
|
|
17
|
+
isNextButtonDisabled?: boolean;
|
|
18
|
+
isPreviousButtonDisabled?: boolean;
|
|
19
|
+
onClickNext: () => void;
|
|
20
|
+
onClickPrevious?: () => void;
|
|
21
|
+
paginationType?: (typeof paginationTypeValues)[number];
|
|
22
|
+
};
|
|
23
|
+
declare const MemoizedDataTablePagination: import("react").MemoExoticComponent<({ currentPage, currentNumberOfResults, isNextButtonDisabled, isPreviousButtonDisabled, onClickNext, onClickPrevious, paginationType, }: DataTablePaginationProps) => JSX.Element>;
|
|
24
|
+
export { MemoizedDataTablePagination as DataTablePagination };
|
|
25
|
+
//# sourceMappingURL=DataTablePagination.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DataTablePagination.d.ts","sourceRoot":"","sources":["../../../src/labs/DataTablePagination.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;;AAQH,eAAO,MAAM,oBAAoB,gCAAiC,CAAC;AAEnE,MAAM,MAAM,wBAAwB,GAAG;IACrC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAChC,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,wBAAwB,CAAC,EAAE,OAAO,CAAC;IACnC,WAAW,EAAE,MAAM,IAAI,CAAC;IACxB,eAAe,CAAC,EAAE,MAAM,IAAI,CAAC;IAC7B,cAAc,CAAC,EAAE,CAAC,OAAO,oBAAoB,CAAC,CAAC,MAAM,CAAC,CAAC;CACxD,CAAC;AAwDF,QAAA,MAAM,2BAA2B,+KA9C9B,wBAAwB,iBA8CkC,CAAC;AAG9D,OAAO,EAAE,2BAA2B,IAAI,mBAAmB,EAAE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PaginatedTable.d.ts","sourceRoot":"","sources":["../../../src/labs/PaginatedTable.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAIH,
|
|
1
|
+
{"version":3,"file":"PaginatedTable.d.ts","sourceRoot":"","sources":["../../../src/labs/PaginatedTable.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAIH,OAAO,EAIL,KAAK,iBAAiB,EAIvB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACL,iBAAiB,EAOlB,MAAM,OAAO,CAAC;AAGf,OAAO,KAAK,EACV,6BAA6B,EAC7B,uBAAuB,EACxB,MAAM,2BAA2B,CAAC;AAEnC,MAAM,MAAM,mBAAmB,CAAC,KAAK,SAAS,6BAA6B,IAAI;IAC7E,OAAO,EAAE,uBAAuB,CAAC,KAAK,CAAC,CAAC,SAAS,CAAC,CAAC;IACnD,IAAI,EAAE,uBAAuB,CAAC,KAAK,CAAC,CAAC,MAAM,CAAC,CAAC;IAC7C,aAAa,CAAC,EAAE,MAAM,IAAI,CAAC;IAC3B,QAAQ,CAAC,EAAE,uBAAuB,CAAC,KAAK,CAAC,CAAC,UAAU,CAAC,CAAC;IACtD,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,YAAY,CAAC,EAAE,uBAAuB,CAAC,KAAK,CAAC,CAAC,cAAc,CAAC,CAAC;IAC9D,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,oBAAoB,CAAC,EAAE,uBAAuB,CAAC,KAAK,CAAC,CAAC,sBAAsB,CAAC,CAAC;IAC9E,kBAAkB,CAAC,EAAE,uBAAuB,CAAC,KAAK,CAAC,CAAC,oBAAoB,CAAC,CAAC;IAC1E,oBAAoB,CAAC,EAAE,uBAAuB,CAAC,KAAK,CAAC,CAAC,sBAAsB,CAAC,CAAC;IAC9E,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,KAAK,CAAC,EAAE,uBAAuB,CAAC,KAAK,CAAC,CAAC,OAAO,CAAC,CAAC;IAChD,cAAc,CAAC,EAAE,iBAAiB,CAChC;QAAE,KAAK,EAAE,iBAAiB,CAAC,KAAK,CAAC,CAAA;KAAE,GAAG,OAAO,CAC9C,CAAC;CACH,CAAC;AA6NF,QAAA,MAAM,sBAAsB,0TAAgD,CAAC;AAK7E,OAAO,EAAE,sBAAsB,IAAI,cAAc,EAAE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StaticTable.d.ts","sourceRoot":"","sources":["../../../src/labs/StaticTable.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,
|
|
1
|
+
{"version":3,"file":"StaticTable.d.ts","sourceRoot":"","sources":["../../../src/labs/StaticTable.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,EAGL,KAAK,iBAAiB,EAGvB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACL,iBAAiB,EAOlB,MAAM,OAAO,CAAC;AAGf,OAAO,KAAK,EACV,6BAA6B,EAC7B,uBAAuB,EACxB,MAAM,2BAA2B,CAAC;AAEnC,MAAM,MAAM,gBAAgB,CAAC,KAAK,SAAS,6BAA6B,IAAI;IAC1E,OAAO,EAAE,uBAAuB,CAAC,KAAK,CAAC,CAAC,SAAS,CAAC,CAAC;IACnD,IAAI,EAAE,uBAAuB,CAAC,KAAK,CAAC,CAAC,MAAM,CAAC,CAAC;IAC7C,QAAQ,CAAC,EAAE,uBAAuB,CAAC,KAAK,CAAC,CAAC,UAAU,CAAC,CAAC;IACtD,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,YAAY,CAAC,EAAE,uBAAuB,CAAC,KAAK,CAAC,CAAC,cAAc,CAAC,CAAC;IAC9D,oBAAoB,CAAC,EAAE,uBAAuB,CAAC,KAAK,CAAC,CAAC,sBAAsB,CAAC,CAAC;IAC9E,KAAK,CAAC,EAAE,uBAAuB,CAAC,KAAK,CAAC,CAAC,OAAO,CAAC,CAAC;IAChD,cAAc,CAAC,EAAE,iBAAiB,CAChC;QAAE,KAAK,EAAE,iBAAiB,CAAC,KAAK,CAAC,CAAA;KAAE,GAAG,OAAO,CAC9C,CAAC;CACH,CAAC;AAgFF,QAAA,MAAM,mBAAmB,0LAA0C,CAAC;AAEpE,OAAO,EAAE,mBAAmB,IAAI,WAAW,EAAE,CAAC"}
|
package/dist/src/labs/index.d.ts
CHANGED
|
@@ -12,12 +12,14 @@
|
|
|
12
12
|
export { AdapterDateFns } from "@mui/x-date-pickers/AdapterDateFns";
|
|
13
13
|
export { LocalizationProvider } from "@mui/x-date-pickers";
|
|
14
14
|
export type { LocalizationProviderProps } from "@mui/x-date-pickers";
|
|
15
|
-
export type { MRT_ColumnDef as TableColumn } from "material-react-table";
|
|
16
15
|
export * from "./DatePicker";
|
|
17
16
|
export * from "./datePickerTheme";
|
|
17
|
+
export * from "./DataTable";
|
|
18
|
+
export * from "./DataTablePagination";
|
|
19
|
+
export * from "./DataFilters";
|
|
18
20
|
export * from "./materialReactTableTypes";
|
|
19
|
-
export * from "./PaginatedTable";
|
|
20
21
|
export * from "./StaticTable";
|
|
22
|
+
export * from "./PaginatedTable";
|
|
21
23
|
export * from "./GroupPicker";
|
|
22
24
|
export * from "./VirtualizedAutocomplete";
|
|
23
25
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/labs/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,cAAc,EAAE,MAAM,oCAAoC,CAAC;AACpE,OAAO,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AAC3D,YAAY,EAAE,yBAAyB,EAAE,MAAM,qBAAqB,CAAC;AAErE,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/labs/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,cAAc,EAAE,MAAM,oCAAoC,CAAC;AACpE,OAAO,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AAC3D,YAAY,EAAE,yBAAyB,EAAE,MAAM,qBAAqB,CAAC;AAErE,cAAc,cAAc,CAAC;AAC7B,cAAc,mBAAmB,CAAC;AAElC,cAAc,aAAa,CAAC;AAC5B,cAAc,uBAAuB,CAAC;AACtC,cAAc,eAAe,CAAC;AAE9B,cAAc,2BAA2B,CAAC;AAC1C,cAAc,eAAe,CAAC;AAC9B,cAAc,kBAAkB,CAAC;AAEjC,cAAc,eAAe,CAAC;AAC9B,cAAc,2BAA2B,CAAC"}
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
*
|
|
10
10
|
* See the License for the specific language governing permissions and limitations under the License.
|
|
11
11
|
*/
|
|
12
|
-
import MaterialReactTable from "material-react-table";
|
|
12
|
+
import { MaterialReactTable } from "material-react-table";
|
|
13
13
|
export type DefaultMaterialReactTableData = Record<string, unknown>;
|
|
14
14
|
export type MaterialReactTableProps<TData extends DefaultMaterialReactTableData> = Parameters<typeof MaterialReactTable<TData>>[0];
|
|
15
15
|
//# sourceMappingURL=materialReactTableTypes.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"materialReactTableTypes.d.ts","sourceRoot":"","sources":["../../../src/labs/materialReactTableTypes.
|
|
1
|
+
{"version":3,"file":"materialReactTableTypes.d.ts","sourceRoot":"","sources":["../../../src/labs/materialReactTableTypes.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAE1D,MAAM,MAAM,6BAA6B,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AAEpE,MAAM,MAAM,uBAAuB,CACjC,KAAK,SAAS,6BAA6B,IACzC,UAAU,CAAC,OAAO,kBAAkB,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"components.d.ts","sourceRoot":"","sources":["../../../src/theme/components.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"components.d.ts","sourceRoot":"","sources":["../../../src/theme/components.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAmC7C,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAGvC,eAAO,MAAM,UAAU;mBAIN,YAAY;;MAEzB,YAAY,CAAC,YAAY,CAs/E5B,CAAC"}
|
package/dist/theme/components.js
CHANGED
|
@@ -27,13 +27,11 @@ import { radioClasses } from "@mui/material/Radio";
|
|
|
27
27
|
import { stackClasses } from "@mui/material/Stack";
|
|
28
28
|
import { svgIconClasses } from "@mui/material/SvgIcon";
|
|
29
29
|
import { tableBodyClasses } from "@mui/material/TableBody";
|
|
30
|
-
import { tableCellClasses } from "@mui/material/TableCell";
|
|
31
30
|
import { tableHeadClasses } from "@mui/material/TableHead";
|
|
32
31
|
import { tableRowClasses } from "@mui/material/TableRow";
|
|
33
|
-
import { tableSortLabelClasses } from "@mui/material/TableSortLabel";
|
|
34
32
|
import { tooltipClasses } from "@mui/material/Tooltip";
|
|
35
33
|
import { typographyClasses } from "@mui/material/Typography";
|
|
36
|
-
import {
|
|
34
|
+
import { CheckCircleFilledIcon, CheckIcon, ChevronDownIcon, CloseCircleFilledIcon, CloseIcon, DangerDiamondFilledIcon, InformationCircleFilledIcon, SubtractIcon, WarningFilledIcon } from "../icons.generated/index.js";
|
|
37
35
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
38
36
|
import { Fragment as _Fragment } from "react/jsx-runtime";
|
|
39
37
|
export const components = _ref => {
|
|
@@ -1670,6 +1668,13 @@ export const components = _ref => {
|
|
|
1670
1668
|
paddingBlock: odysseyTokens.Spacing2,
|
|
1671
1669
|
paddingInline: odysseyTokens.Spacing2,
|
|
1672
1670
|
borderRadius: odysseyTokens.BorderRadiusMain
|
|
1671
|
+
},
|
|
1672
|
+
root: {
|
|
1673
|
+
"& hr": {
|
|
1674
|
+
borderStyle: "solid none none",
|
|
1675
|
+
borderWidth: odysseyTokens.BorderWidthMain,
|
|
1676
|
+
borderColor: odysseyTokens.BorderColorDisplay
|
|
1677
|
+
}
|
|
1673
1678
|
}
|
|
1674
1679
|
}
|
|
1675
1680
|
},
|
|
@@ -2003,6 +2008,21 @@ export const components = _ref => {
|
|
|
2003
2008
|
}
|
|
2004
2009
|
}
|
|
2005
2010
|
},
|
|
2011
|
+
MuiTabs: {
|
|
2012
|
+
defaultProps: {
|
|
2013
|
+
textColor: "inherit"
|
|
2014
|
+
},
|
|
2015
|
+
styleOverrides: {
|
|
2016
|
+
root: {
|
|
2017
|
+
minHeight: "unset",
|
|
2018
|
+
marginBottom: odysseyTokens.Spacing5
|
|
2019
|
+
},
|
|
2020
|
+
flexContainer: {
|
|
2021
|
+
gap: odysseyTokens.Spacing5,
|
|
2022
|
+
borderBottom: `${odysseyTokens.BorderWidthMain} ${odysseyTokens.BorderStyleMain} ${odysseyTokens.BorderColorDisplay}`
|
|
2023
|
+
}
|
|
2024
|
+
}
|
|
2025
|
+
},
|
|
2006
2026
|
MuiTable: {
|
|
2007
2027
|
styleOverrides: {
|
|
2008
2028
|
root: _ref27 => {
|
|
@@ -2014,11 +2034,13 @@ export const components = _ref => {
|
|
|
2014
2034
|
width: "auto",
|
|
2015
2035
|
borderCollapse: "separate",
|
|
2016
2036
|
borderSpacing: 0,
|
|
2017
|
-
border: `${odysseyTokens.BorderWidthMain} ${odysseyTokens.BorderStyleMain} ${odysseyTokens.HueNeutral100}`,
|
|
2018
|
-
borderRadius: odysseyTokens.BorderRadiusMain,
|
|
2019
2037
|
marginBlock: odysseyTokens.Spacing0,
|
|
2020
2038
|
marginInline: odysseyTokens.Spacing0,
|
|
2021
2039
|
lineHeight: odysseyTokens.TypographyLineHeightUi,
|
|
2040
|
+
"&.narrow": {
|
|
2041
|
+
width: "100%",
|
|
2042
|
+
tableLayout: "fixed"
|
|
2043
|
+
},
|
|
2022
2044
|
"&:only-child": {
|
|
2023
2045
|
marginBlockEnd: 0
|
|
2024
2046
|
},
|
|
@@ -2047,20 +2069,25 @@ export const components = _ref => {
|
|
|
2047
2069
|
} = _ref28;
|
|
2048
2070
|
return {
|
|
2049
2071
|
...theme.typography.body1,
|
|
2050
|
-
maxWidth: odysseyTokens.TypographyLineLengthMax,
|
|
2051
2072
|
borderBottom: `${odysseyTokens.BorderWidthMain} ${odysseyTokens.BorderStyleMain} ${odysseyTokens.HueNeutral100}`,
|
|
2052
2073
|
textAlign: "start",
|
|
2053
2074
|
verticalAlign: "baseline",
|
|
2054
|
-
padding:
|
|
2055
|
-
paddingBlock: odysseyTokens.Spacing4,
|
|
2056
|
-
paddingInline: odysseyTokens.Spacing4,
|
|
2075
|
+
padding: odysseyTokens.Spacing3,
|
|
2057
2076
|
overflowWrap: "break-word",
|
|
2077
|
+
[`.MuiTable-root.narrow &:last-child`]: {
|
|
2078
|
+
width: "auto"
|
|
2079
|
+
},
|
|
2058
2080
|
[`.${tableRowClasses.root}:hover &[rowspan]`]: {
|
|
2059
2081
|
backgroundColor: odysseyTokens.HueNeutralWhite
|
|
2060
2082
|
},
|
|
2061
2083
|
[`.${tableBodyClasses.root} .${tableRowClasses.root}:last-of-type &`]: {
|
|
2062
2084
|
borderBottom: 0
|
|
2063
2085
|
},
|
|
2086
|
+
[`.${tableBodyClasses.root} .${tableRowClasses.root}:first-of-type &`]: {
|
|
2087
|
+
borderTopColor: odysseyTokens.HueNeutralWhite,
|
|
2088
|
+
borderTopStyle: "solid",
|
|
2089
|
+
borderTopWidth: odysseyTokens.BorderWidthMain
|
|
2090
|
+
},
|
|
2064
2091
|
[`.${tableRowClasses.selected} &`]: {
|
|
2065
2092
|
borderBottomColor: odysseyTokens.PalettePrimaryLight
|
|
2066
2093
|
},
|
|
@@ -2082,10 +2109,21 @@ export const components = _ref => {
|
|
|
2082
2109
|
fontSize: odysseyTokens.TypographySizeBody
|
|
2083
2110
|
}),
|
|
2084
2111
|
[`.${tableHeadClasses.root} &`]: {
|
|
2085
|
-
color: odysseyTokens.
|
|
2112
|
+
color: odysseyTokens.TypographyColorHeading,
|
|
2113
|
+
fontSize: odysseyTokens.TypographySizeSubordinate,
|
|
2086
2114
|
lineHeight: odysseyTokens.TypographyLineHeightBody,
|
|
2087
2115
|
fontWeight: odysseyTokens.TypographyWeightBodyBold,
|
|
2088
|
-
|
|
2116
|
+
textTransform: "uppercase",
|
|
2117
|
+
backgroundColor: odysseyTokens.HueNeutral50,
|
|
2118
|
+
borderBottom: 0
|
|
2119
|
+
},
|
|
2120
|
+
[`.${tableHeadClasses.root} &:first-of-type`]: {
|
|
2121
|
+
borderTopLeftRadius: odysseyTokens.Spacing2,
|
|
2122
|
+
borderBottomLeftRadius: odysseyTokens.Spacing2
|
|
2123
|
+
},
|
|
2124
|
+
[`.${tableHeadClasses.root} &:last-of-type`]: {
|
|
2125
|
+
borderTopRightRadius: odysseyTokens.Spacing2,
|
|
2126
|
+
borderBottomRightRadius: odysseyTokens.Spacing2
|
|
2089
2127
|
},
|
|
2090
2128
|
...(ownerState.variant === "head" && {
|
|
2091
2129
|
lineHeight: odysseyTokens.TypographyLineHeightBody,
|
|
@@ -2114,7 +2152,25 @@ export const components = _ref => {
|
|
|
2114
2152
|
}),
|
|
2115
2153
|
...(ownerState.align === "justify" && {
|
|
2116
2154
|
textAlign: "justify"
|
|
2117
|
-
})
|
|
2155
|
+
}),
|
|
2156
|
+
["&.MuiTableCell-compact"]: {
|
|
2157
|
+
fontSize: odysseyTokens.TypographySizeSubordinate,
|
|
2158
|
+
padding: odysseyTokens.Spacing2
|
|
2159
|
+
},
|
|
2160
|
+
["&.MuiTableCell-spacious"]: {
|
|
2161
|
+
padding: odysseyTokens.Spacing4
|
|
2162
|
+
},
|
|
2163
|
+
[`& .${checkboxClasses.root}`]: {
|
|
2164
|
+
width: `${odysseyTokens.TypographyLineHeightUi}rem`,
|
|
2165
|
+
height: `${odysseyTokens.TypographyLineHeightUi}rem`,
|
|
2166
|
+
margin: 0
|
|
2167
|
+
},
|
|
2168
|
+
[`& .${dividerClasses.vertical}`]: {
|
|
2169
|
+
borderStyle: "none none none dotted",
|
|
2170
|
+
borderWidth: 2,
|
|
2171
|
+
borderRadius: 0,
|
|
2172
|
+
marginRight: 2
|
|
2173
|
+
}
|
|
2118
2174
|
};
|
|
2119
2175
|
}
|
|
2120
2176
|
}
|
|
@@ -2131,6 +2187,7 @@ export const components = _ref => {
|
|
|
2131
2187
|
marginBlockEnd: odysseyTokens.Spacing4,
|
|
2132
2188
|
marginInline: 0,
|
|
2133
2189
|
overflowX: "auto",
|
|
2190
|
+
display: "block !important",
|
|
2134
2191
|
"&:last-child": {
|
|
2135
2192
|
marginBlock: 0
|
|
2136
2193
|
}
|
|
@@ -2139,24 +2196,74 @@ export const components = _ref => {
|
|
|
2139
2196
|
},
|
|
2140
2197
|
MuiTableRow: {
|
|
2141
2198
|
styleOverrides: {
|
|
2142
|
-
root: {
|
|
2199
|
+
root: () => ({
|
|
2143
2200
|
verticalAlign: "unset",
|
|
2144
|
-
[`&.${tableRowClasses.root}:hover`]: {
|
|
2145
|
-
backgroundColor: odysseyTokens.HueNeutral50
|
|
2146
|
-
},
|
|
2147
2201
|
[`&.${tableRowClasses.selected}`]: {
|
|
2148
2202
|
backgroundColor: odysseyTokens.PalettePrimaryLighter,
|
|
2149
2203
|
"&:hover": {
|
|
2150
2204
|
backgroundColor: odysseyTokens.PalettePrimaryLighter
|
|
2151
2205
|
}
|
|
2206
|
+
},
|
|
2207
|
+
[`&.${tableRowClasses.head}`]: {
|
|
2208
|
+
boxShadow: "none !important",
|
|
2209
|
+
"&:hover, &:focus-within": {
|
|
2210
|
+
backgroundColor: "transparent !important"
|
|
2211
|
+
}
|
|
2212
|
+
},
|
|
2213
|
+
"&.isDragTarget": {
|
|
2214
|
+
opacity: 1,
|
|
2215
|
+
position: "relative",
|
|
2216
|
+
"&::after": {
|
|
2217
|
+
content: '""',
|
|
2218
|
+
width: "100%",
|
|
2219
|
+
position: "absolute",
|
|
2220
|
+
left: 0,
|
|
2221
|
+
right: 0,
|
|
2222
|
+
bottom: 0,
|
|
2223
|
+
height: odysseyTokens.Spacing1,
|
|
2224
|
+
backgroundColor: odysseyTokens.PalettePrimaryMain
|
|
2225
|
+
},
|
|
2226
|
+
"& td": {
|
|
2227
|
+
borderTop: "0 !important",
|
|
2228
|
+
borderLeft: "0 !important",
|
|
2229
|
+
borderRight: "0 !important",
|
|
2230
|
+
borderBottom: `${odysseyTokens.BorderWidthMain} ${odysseyTokens.BorderStyleMain} ${odysseyTokens.HueNeutral100} !important`
|
|
2231
|
+
}
|
|
2232
|
+
},
|
|
2233
|
+
"&.isDragging, &.isDragging.isDragTarget": {
|
|
2234
|
+
border: "0 !important",
|
|
2235
|
+
position: "relative",
|
|
2236
|
+
opacity: 1,
|
|
2237
|
+
borderRadius: odysseyTokens.BorderRadiusOuter,
|
|
2238
|
+
"&::after": {
|
|
2239
|
+
content: '""',
|
|
2240
|
+
position: "absolute",
|
|
2241
|
+
left: 0,
|
|
2242
|
+
right: 0,
|
|
2243
|
+
top: 0,
|
|
2244
|
+
bottom: 0,
|
|
2245
|
+
height: "auto",
|
|
2246
|
+
borderRadius: odysseyTokens.BorderRadiusOuter,
|
|
2247
|
+
borderColor: odysseyTokens.PalettePrimaryLight,
|
|
2248
|
+
borderStyle: "solid",
|
|
2249
|
+
borderWidth: odysseyTokens.Spacing1,
|
|
2250
|
+
backgroundColor: "transparent"
|
|
2251
|
+
},
|
|
2252
|
+
"& td": {
|
|
2253
|
+
borderTop: "0 !important",
|
|
2254
|
+
borderLeft: "0 !important",
|
|
2255
|
+
borderRight: "0 !important",
|
|
2256
|
+
borderBottom: `${odysseyTokens.BorderWidthMain} ${odysseyTokens.BorderStyleMain} ${odysseyTokens.HueNeutral100} !important`,
|
|
2257
|
+
opacity: 0.5
|
|
2258
|
+
}
|
|
2259
|
+
},
|
|
2260
|
+
"&.isDragging.isDragTarget::after": {
|
|
2261
|
+
borderColor: odysseyTokens.PalettePrimaryMain
|
|
2152
2262
|
}
|
|
2153
|
-
}
|
|
2263
|
+
})
|
|
2154
2264
|
}
|
|
2155
2265
|
},
|
|
2156
2266
|
MuiTableSortLabel: {
|
|
2157
|
-
defaultProps: {
|
|
2158
|
-
IconComponent: ArrowDownIcon
|
|
2159
|
-
},
|
|
2160
2267
|
styleOverrides: {
|
|
2161
2268
|
root: {
|
|
2162
2269
|
cursor: "pointer",
|
|
@@ -2172,65 +2279,33 @@ export const components = _ref => {
|
|
|
2172
2279
|
outlineColor: odysseyTokens.FocusOutlineColorPrimary
|
|
2173
2280
|
},
|
|
2174
2281
|
"&:hover": {
|
|
2175
|
-
color: odysseyTokens.TypographyColorBody
|
|
2176
|
-
[`& .${tableSortLabelClasses.icon}`]: {
|
|
2177
|
-
opacity: 1
|
|
2178
|
-
}
|
|
2179
|
-
},
|
|
2180
|
-
[`&.${tableSortLabelClasses.active}`]: {
|
|
2181
|
-
color: odysseyTokens.TypographyColorSubordinate,
|
|
2182
|
-
[`& .${tableSortLabelClasses.icon}`]: {
|
|
2183
|
-
opacity: 1,
|
|
2184
|
-
color: "inherit"
|
|
2185
|
-
}
|
|
2282
|
+
color: odysseyTokens.TypographyColorBody
|
|
2186
2283
|
}
|
|
2187
2284
|
},
|
|
2188
2285
|
icon: _ref29 => {
|
|
2189
2286
|
let {
|
|
2190
|
-
theme,
|
|
2191
2287
|
ownerState
|
|
2192
2288
|
} = _ref29;
|
|
2193
2289
|
return {
|
|
2194
|
-
|
|
2195
|
-
|
|
2196
|
-
marginInlineStart: 0,
|
|
2197
|
-
opacity: 0,
|
|
2198
|
-
color: "inherit",
|
|
2199
|
-
transition: theme.transitions.create(["opacity", "transform"], {
|
|
2200
|
-
duration: odysseyTokens.TransitionDurationMain
|
|
2290
|
+
...(ownerState.direction === "asc" && {
|
|
2291
|
+
transform: "rotate(180deg) !important"
|
|
2201
2292
|
}),
|
|
2202
|
-
|
|
2203
|
-
|
|
2204
|
-
marginInlineEnd: odysseyTokens.Spacing2
|
|
2293
|
+
".isUnsorted &": {
|
|
2294
|
+
opacity: "0 !important"
|
|
2205
2295
|
},
|
|
2206
|
-
|
|
2207
|
-
|
|
2296
|
+
".isUnsorted:hover &, .isUnsorted:focus &": {
|
|
2297
|
+
opacity: "0.5 !important",
|
|
2298
|
+
"&:hover, &:focus": {
|
|
2299
|
+
opacity: "1 !important"
|
|
2300
|
+
}
|
|
2208
2301
|
},
|
|
2209
|
-
|
|
2210
|
-
|
|
2211
|
-
}
|
|
2212
|
-
...(ownerState.direction === "asc" && {
|
|
2213
|
-
transform: "rotate(180deg)"
|
|
2214
|
-
})
|
|
2302
|
+
".isSorted &": {
|
|
2303
|
+
opacity: 1
|
|
2304
|
+
}
|
|
2215
2305
|
};
|
|
2216
2306
|
}
|
|
2217
2307
|
}
|
|
2218
2308
|
},
|
|
2219
|
-
MuiTabs: {
|
|
2220
|
-
defaultProps: {
|
|
2221
|
-
textColor: "inherit"
|
|
2222
|
-
},
|
|
2223
|
-
styleOverrides: {
|
|
2224
|
-
root: {
|
|
2225
|
-
minHeight: "unset",
|
|
2226
|
-
marginBottom: odysseyTokens.Spacing5
|
|
2227
|
-
},
|
|
2228
|
-
flexContainer: {
|
|
2229
|
-
gap: odysseyTokens.Spacing5,
|
|
2230
|
-
borderBottom: `${odysseyTokens.BorderWidthMain} ${odysseyTokens.BorderStyleMain} ${odysseyTokens.BorderColorDisplay}`
|
|
2231
|
-
}
|
|
2232
|
-
}
|
|
2233
|
-
},
|
|
2234
2309
|
MuiTooltip: {
|
|
2235
2310
|
defaultProps: {
|
|
2236
2311
|
arrow: true,
|