@okta/odyssey-react-mui 1.6.20 → 1.6.21

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 (75) hide show
  1. package/CHANGELOG.md +4 -0
  2. package/dist/Button.js +2 -2
  3. package/dist/Button.js.map +1 -1
  4. package/dist/MenuButton.js +16 -2
  5. package/dist/MenuButton.js.map +1 -1
  6. package/dist/MenuContext.js +2 -1
  7. package/dist/MenuContext.js.map +1 -1
  8. package/dist/MenuItem.js +6 -3
  9. package/dist/MenuItem.js.map +1 -1
  10. package/dist/SearchField.js.map +1 -1
  11. package/dist/icons.generated/ArrowBottom.js +33 -0
  12. package/dist/icons.generated/ArrowBottom.js.map +1 -0
  13. package/dist/icons.generated/ArrowTop.js +33 -0
  14. package/dist/icons.generated/ArrowTop.js.map +1 -0
  15. package/dist/icons.generated/index.js +2 -0
  16. package/dist/icons.generated/index.js.map +1 -1
  17. package/dist/labs/DataFilters.js +366 -0
  18. package/dist/labs/DataFilters.js.map +1 -0
  19. package/dist/labs/DataTable.js +366 -0
  20. package/dist/labs/DataTable.js.map +1 -0
  21. package/dist/labs/DataTablePagination.js +74 -0
  22. package/dist/labs/DataTablePagination.js.map +1 -0
  23. package/dist/labs/PaginatedTable.js +9 -6
  24. package/dist/labs/PaginatedTable.js.map +1 -1
  25. package/dist/labs/StaticTable.js +8 -5
  26. package/dist/labs/StaticTable.js.map +1 -1
  27. package/dist/labs/index.js +4 -1
  28. package/dist/labs/index.js.map +1 -1
  29. package/dist/labs/materialReactTableTypes.js.map +1 -1
  30. package/dist/src/MenuButton.d.ts +12 -2
  31. package/dist/src/MenuButton.d.ts.map +1 -1
  32. package/dist/src/MenuContext.d.ts +1 -0
  33. package/dist/src/MenuContext.d.ts.map +1 -1
  34. package/dist/src/MenuItem.d.ts.map +1 -1
  35. package/dist/src/SearchField.d.ts +16 -0
  36. package/dist/src/SearchField.d.ts.map +1 -1
  37. package/dist/src/icons.generated/ArrowBottom.d.ts +16 -0
  38. package/dist/src/icons.generated/ArrowBottom.d.ts.map +1 -0
  39. package/dist/src/icons.generated/ArrowTop.d.ts +16 -0
  40. package/dist/src/icons.generated/ArrowTop.d.ts.map +1 -0
  41. package/dist/src/icons.generated/index.d.ts +2 -0
  42. package/dist/src/icons.generated/index.d.ts.map +1 -1
  43. package/dist/src/labs/DataFilters.d.ts +85 -0
  44. package/dist/src/labs/DataFilters.d.ts.map +1 -0
  45. package/dist/src/labs/DataTable.d.ts +193 -0
  46. package/dist/src/labs/DataTable.d.ts.map +1 -0
  47. package/dist/src/labs/DataTablePagination.d.ts +25 -0
  48. package/dist/src/labs/DataTablePagination.d.ts.map +1 -0
  49. package/dist/src/labs/PaginatedTable.d.ts.map +1 -1
  50. package/dist/src/labs/StaticTable.d.ts.map +1 -1
  51. package/dist/src/labs/index.d.ts +4 -2
  52. package/dist/src/labs/index.d.ts.map +1 -1
  53. package/dist/src/labs/materialReactTableTypes.d.ts +1 -1
  54. package/dist/src/labs/materialReactTableTypes.d.ts.map +1 -1
  55. package/dist/src/theme/components.d.ts.map +1 -1
  56. package/dist/theme/components.js +137 -64
  57. package/dist/theme/components.js.map +1 -1
  58. package/dist/tsconfig.production.tsbuildinfo +1 -1
  59. package/package.json +4 -4
  60. package/src/Button.tsx +2 -2
  61. package/src/MenuButton.tsx +50 -8
  62. package/src/MenuContext.ts +2 -0
  63. package/src/MenuItem.tsx +5 -3
  64. package/src/SearchField.tsx +8 -0
  65. package/src/icons.generated/ArrowBottom.tsx +43 -0
  66. package/src/icons.generated/ArrowTop.tsx +43 -0
  67. package/src/icons.generated/index.ts +2 -0
  68. package/src/labs/DataFilters.tsx +601 -0
  69. package/src/labs/DataTable.tsx +681 -0
  70. package/src/labs/DataTablePagination.tsx +88 -0
  71. package/src/labs/PaginatedTable.tsx +35 -33
  72. package/src/labs/StaticTable.tsx +26 -29
  73. package/src/labs/index.ts +6 -3
  74. package/src/labs/{materialReactTableTypes.ts → materialReactTableTypes.tsx} +1 -1
  75. package/src/theme/components.tsx +154 -62
@@ -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":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,EAGL,WAAW,EACX,gBAAgB,EAEhB,gBAAgB,EAIhB,qBAAqB,EAErB,aAAa,EACd,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACL,QAAQ,EACR,YAAY,EAOb,MAAM,OAAO,CAAC;AAYf,OAAO,EAEL,oBAAoB,EACrB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,UAAU,EAAe,MAAM,eAAe,CAAC;AACxD,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AAEnC,OAAO,EAAc,QAAQ,EAAE,MAAM,IAAI,CAAC;AAG1C,eAAO,MAAM,aAAa,iDAAkD,CAAC;AAE7E,YAAY,EACV,sBAAsB,EACtB,gBAAgB,EAChB,aAAa,IAAI,WAAW,GAC7B,MAAM,sBAAsB,CAAC;AAI9B,MAAM,MAAM,UAAU,GAAG;IACvB;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;OAGG;IACH,IAAI,CAAC,EAAE,aAAa,CAAC,WAAW,CAAC,CAAC,MAAM,CAAC,CAAC;IAC1C;;;OAGG;IACH,aAAa,CAAC,EAAE,aAAa,CAAC,WAAW,CAAC,CAAC,eAAe,CAAC,CAAC;IAC5D;;;OAGG;IACH,mBAAmB,CAAC,EAAE,KAAK,CAAC;QAAE,KAAK,EAAE,MAAM,C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AiB,IAAI,SAAS,EAAE,CAAC"}
@@ -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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,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"}
@@ -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,YAAY,EAAE,aAAa,IAAI,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAEzE,cAAc,cAAc,CAAC;AAC7B,cAAc,mBAAmB,CAAC;AAElC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,kBAAkB,CAAC;AACjC,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,2BAA2B,CAAC"}
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.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,kBAAkB,MAAM,sBAAsB,CAAC;AAEtD,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
+ {"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;AAsC7C,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAGvC,eAAO,MAAM,UAAU;mBAIN,YAAY;;MAEzB,YAAY,CAAC,YAAY,CAq5E5B,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,CAo/E5B,CAAC"}
@@ -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 { ArrowDownIcon, CheckCircleFilledIcon, CheckIcon, ChevronDownIcon, CloseCircleFilledIcon, CloseIcon, DangerDiamondFilledIcon, InformationCircleFilledIcon, SubtractIcon, WarningFilledIcon } from "../icons.generated/index.js";
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
  },
@@ -2051,16 +2073,22 @@ export const components = _ref => {
2051
2073
  borderBottom: `${odysseyTokens.BorderWidthMain} ${odysseyTokens.BorderStyleMain} ${odysseyTokens.HueNeutral100}`,
2052
2074
  textAlign: "start",
2053
2075
  verticalAlign: "baseline",
2054
- padding: "unset",
2055
- paddingBlock: odysseyTokens.Spacing4,
2056
- paddingInline: odysseyTokens.Spacing4,
2076
+ padding: odysseyTokens.Spacing3,
2057
2077
  overflowWrap: "break-word",
2078
+ [`.MuiTable-root.narrow &:last-child`]: {
2079
+ width: "auto"
2080
+ },
2058
2081
  [`.${tableRowClasses.root}:hover &[rowspan]`]: {
2059
2082
  backgroundColor: odysseyTokens.HueNeutralWhite
2060
2083
  },
2061
2084
  [`.${tableBodyClasses.root} .${tableRowClasses.root}:last-of-type &`]: {
2062
2085
  borderBottom: 0
2063
2086
  },
2087
+ [`.${tableBodyClasses.root} .${tableRowClasses.root}:first-of-type &`]: {
2088
+ borderTopColor: odysseyTokens.HueNeutralWhite,
2089
+ borderTopStyle: "solid",
2090
+ borderTopWidth: odysseyTokens.BorderWidthMain
2091
+ },
2064
2092
  [`.${tableRowClasses.selected} &`]: {
2065
2093
  borderBottomColor: odysseyTokens.PalettePrimaryLight
2066
2094
  },
@@ -2082,10 +2110,21 @@ export const components = _ref => {
2082
2110
  fontSize: odysseyTokens.TypographySizeBody
2083
2111
  }),
2084
2112
  [`.${tableHeadClasses.root} &`]: {
2085
- color: odysseyTokens.TypographyColorBody,
2113
+ color: odysseyTokens.TypographyColorHeading,
2114
+ fontSize: odysseyTokens.TypographySizeSubordinate,
2086
2115
  lineHeight: odysseyTokens.TypographyLineHeightBody,
2087
2116
  fontWeight: odysseyTokens.TypographyWeightBodyBold,
2088
- backgroundColor: odysseyTokens.HueNeutral50
2117
+ textTransform: "uppercase",
2118
+ backgroundColor: odysseyTokens.HueNeutral50,
2119
+ borderBottom: 0
2120
+ },
2121
+ [`.${tableHeadClasses.root} &:first-of-type`]: {
2122
+ borderTopLeftRadius: odysseyTokens.Spacing2,
2123
+ borderBottomLeftRadius: odysseyTokens.Spacing2
2124
+ },
2125
+ [`.${tableHeadClasses.root} &:last-of-type`]: {
2126
+ borderTopRightRadius: odysseyTokens.Spacing2,
2127
+ borderBottomRightRadius: odysseyTokens.Spacing2
2089
2128
  },
2090
2129
  ...(ownerState.variant === "head" && {
2091
2130
  lineHeight: odysseyTokens.TypographyLineHeightBody,
@@ -2114,7 +2153,23 @@ export const components = _ref => {
2114
2153
  }),
2115
2154
  ...(ownerState.align === "justify" && {
2116
2155
  textAlign: "justify"
2117
- })
2156
+ }),
2157
+ ["&.MuiTableCell-compact"]: {
2158
+ fontSize: odysseyTokens.TypographySizeSubordinate,
2159
+ padding: odysseyTokens.Spacing2
2160
+ },
2161
+ ["&.MuiTableCell-spacious"]: {
2162
+ padding: odysseyTokens.Spacing4
2163
+ },
2164
+ [`& .${checkboxClasses.root}`]: {
2165
+ width: `${odysseyTokens.TypographyLineHeightUi}rem`,
2166
+ height: `${odysseyTokens.TypographyLineHeightUi}rem`,
2167
+ margin: 0
2168
+ },
2169
+ [`& .${dividerClasses.vertical}`]: {
2170
+ borderStyle: "dotted",
2171
+ borderWidth: 2
2172
+ }
2118
2173
  };
2119
2174
  }
2120
2175
  }
@@ -2139,24 +2194,74 @@ export const components = _ref => {
2139
2194
  },
2140
2195
  MuiTableRow: {
2141
2196
  styleOverrides: {
2142
- root: {
2197
+ root: () => ({
2143
2198
  verticalAlign: "unset",
2144
- [`&.${tableRowClasses.root}:hover`]: {
2145
- backgroundColor: odysseyTokens.HueNeutral50
2146
- },
2147
2199
  [`&.${tableRowClasses.selected}`]: {
2148
2200
  backgroundColor: odysseyTokens.PalettePrimaryLighter,
2149
2201
  "&:hover": {
2150
2202
  backgroundColor: odysseyTokens.PalettePrimaryLighter
2151
2203
  }
2204
+ },
2205
+ [`&.${tableRowClasses.head}`]: {
2206
+ boxShadow: "none !important",
2207
+ "&:hover, &:focus-within": {
2208
+ backgroundColor: "transparent !important"
2209
+ }
2210
+ },
2211
+ "&.isDragTarget": {
2212
+ opacity: 1,
2213
+ position: "relative",
2214
+ "&::after": {
2215
+ content: '""',
2216
+ width: "100%",
2217
+ position: "absolute",
2218
+ left: 0,
2219
+ right: 0,
2220
+ bottom: 0,
2221
+ height: odysseyTokens.Spacing1,
2222
+ backgroundColor: odysseyTokens.PalettePrimaryMain
2223
+ },
2224
+ "& td": {
2225
+ borderTop: "0 !important",
2226
+ borderLeft: "0 !important",
2227
+ borderRight: "0 !important",
2228
+ borderBottom: `${odysseyTokens.BorderWidthMain} ${odysseyTokens.BorderStyleMain} ${odysseyTokens.HueNeutral100} !important`
2229
+ }
2230
+ },
2231
+ "&.isDragging, &.isDragging.isDragTarget": {
2232
+ border: "0 !important",
2233
+ position: "relative",
2234
+ opacity: 1,
2235
+ borderRadius: odysseyTokens.BorderRadiusOuter,
2236
+ "&::after": {
2237
+ content: '""',
2238
+ position: "absolute",
2239
+ left: 0,
2240
+ right: 0,
2241
+ top: 0,
2242
+ bottom: 0,
2243
+ height: "auto",
2244
+ borderRadius: odysseyTokens.BorderRadiusOuter,
2245
+ borderColor: odysseyTokens.PalettePrimaryLight,
2246
+ borderStyle: "solid",
2247
+ borderWidth: odysseyTokens.Spacing1,
2248
+ backgroundColor: "transparent"
2249
+ },
2250
+ "& td": {
2251
+ borderTop: "0 !important",
2252
+ borderLeft: "0 !important",
2253
+ borderRight: "0 !important",
2254
+ borderBottom: `${odysseyTokens.BorderWidthMain} ${odysseyTokens.BorderStyleMain} ${odysseyTokens.HueNeutral100} !important`,
2255
+ opacity: 0.5
2256
+ }
2257
+ },
2258
+ "&.isDragging.isDragTarget::after": {
2259
+ borderColor: odysseyTokens.PalettePrimaryMain
2152
2260
  }
2153
- }
2261
+ })
2154
2262
  }
2155
2263
  },
2156
2264
  MuiTableSortLabel: {
2157
- defaultProps: {
2158
- IconComponent: ArrowDownIcon
2159
- },
2160
2265
  styleOverrides: {
2161
2266
  root: {
2162
2267
  cursor: "pointer",
@@ -2172,65 +2277,33 @@ export const components = _ref => {
2172
2277
  outlineColor: odysseyTokens.FocusOutlineColorPrimary
2173
2278
  },
2174
2279
  "&: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
- }
2280
+ color: odysseyTokens.TypographyColorBody
2186
2281
  }
2187
2282
  },
2188
2283
  icon: _ref29 => {
2189
2284
  let {
2190
- theme,
2191
2285
  ownerState
2192
2286
  } = _ref29;
2193
2287
  return {
2194
- fontSize: "inherit",
2195
- marginInlineEnd: 0,
2196
- marginInlineStart: 0,
2197
- opacity: 0,
2198
- color: "inherit",
2199
- transition: theme.transitions.create(["opacity", "transform"], {
2200
- duration: odysseyTokens.TransitionDurationMain
2288
+ ...(ownerState.direction === "asc" && {
2289
+ transform: "rotate(180deg) !important"
2201
2290
  }),
2202
- userSelect: "none",
2203
- [`.${tableCellClasses.alignRight} &`]: {
2204
- marginInlineEnd: odysseyTokens.Spacing2
2291
+ ".isUnsorted &": {
2292
+ opacity: "0 !important"
2205
2293
  },
2206
- [`.${tableCellClasses.alignLeft} &`]: {
2207
- marginInlineStart: odysseyTokens.Spacing2
2294
+ ".isUnsorted:hover &, .isUnsorted:focus &": {
2295
+ opacity: "0.5 !important",
2296
+ "&:hover, &:focus": {
2297
+ opacity: "1 !important"
2298
+ }
2208
2299
  },
2209
- ...(ownerState.direction === "desc" && {
2210
- transform: "rotate(0deg)"
2211
- }),
2212
- ...(ownerState.direction === "asc" && {
2213
- transform: "rotate(180deg)"
2214
- })
2300
+ ".isSorted &": {
2301
+ opacity: 1
2302
+ }
2215
2303
  };
2216
2304
  }
2217
2305
  }
2218
2306
  },
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
2307
  MuiTooltip: {
2235
2308
  defaultProps: {
2236
2309
  arrow: true,