studiokit-scaffolding-js 7.1.0 → 7.1.2-alpha.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.
Files changed (285) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +137 -137
  3. package/lib/components/ActionList.js +1 -1
  4. package/lib/components/AlertDialog.js +1 -1
  5. package/lib/components/AlertWithIcon.js +1 -1
  6. package/lib/components/ConnectedModal.js +3 -3
  7. package/lib/components/Dropdowns/GroupsDropdown.js +1 -1
  8. package/lib/components/Dropdowns/ManagedNavDropdown.js +4 -4
  9. package/lib/components/Dropdowns/UserDropdown.js +1 -1
  10. package/lib/components/Dropdowns/index.js +1 -1
  11. package/lib/components/EntityOwnerList.js +1 -1
  12. package/lib/components/Error.js +1 -1
  13. package/lib/components/ErrorBoundary.js +1 -1
  14. package/lib/components/ErrorMessage.js +1 -1
  15. package/lib/components/Forms/DateField.js +1 -1
  16. package/lib/components/Forms/TimeField.js +1 -1
  17. package/lib/components/Forms/index.js +1 -1
  18. package/lib/components/Groups/CreateEditCopySaveButtons.js +1 -1
  19. package/lib/components/Groups/ExternalGroups/Attach.js +1 -1
  20. package/lib/components/Groups/ExternalGroups/Table.js +1 -1
  21. package/lib/components/Groups/GroupCreateOrEditCommonProps.js +1 -1
  22. package/lib/components/Groups/RosterSyncInfo.js +1 -1
  23. package/lib/components/HOC/AccessibleAppComponent.js +6 -6
  24. package/lib/components/HOC/ActivityRequiredComponent.js +50 -50
  25. package/lib/components/HOC/AsyncComponent.js +1 -1
  26. package/lib/components/HOC/AuthenticatedComponent.js +1 -1
  27. package/lib/components/HOC/CollectionComponent.js +11 -11
  28. package/lib/components/HOC/CollectionFirstItemComponent.js +4 -4
  29. package/lib/components/HOC/CollectionItemComponent.js +11 -11
  30. package/lib/components/HOC/ConnectedModalComponent.js +15 -15
  31. package/lib/components/HOC/DataDependentComponent.js +1 -1
  32. package/lib/components/HOC/EntityComponent.js +12 -12
  33. package/lib/components/HOC/FullscreenModalComponent.js +24 -24
  34. package/lib/components/HOC/GroupActivityRequiredComponent.js +19 -19
  35. package/lib/components/HOC/GuidComponent.js +5 -5
  36. package/lib/components/HOC/ModelContextDependencyVerifyComponent.js +7 -7
  37. package/lib/components/HOC/ModelErrorRedirectComponent.js +12 -12
  38. package/lib/components/HOC/SearchPersistorComponent.js +43 -43
  39. package/lib/components/HOC/UnauthenticatedComponent.js +1 -1
  40. package/lib/components/HOC/UserComponent.js +1 -1
  41. package/lib/components/Icons/IconAlphaList.js +1 -1
  42. package/lib/components/Icons/IconExternalUser.js +1 -1
  43. package/lib/components/Icons/IconImpersonation.js +1 -1
  44. package/lib/components/Icons/IconStopImpersonating.js +1 -1
  45. package/lib/components/Icons/IconTable.js +1 -1
  46. package/lib/components/Icons/IconTableDeleteCol.js +1 -1
  47. package/lib/components/Icons/IconTableDeleteRow.js +1 -1
  48. package/lib/components/Icons/IconTableInsertCol.js +1 -1
  49. package/lib/components/Icons/IconTableInsertRow.js +1 -1
  50. package/lib/components/Impersonation/Button.js +1 -1
  51. package/lib/components/Impersonation/Link.js +1 -1
  52. package/lib/components/Impersonation/UserDetail.css +22 -22
  53. package/lib/components/Impersonation/UserDetail.js +3 -3
  54. package/lib/components/Loading.js +1 -1
  55. package/lib/components/LockDownBrowser/Check.js +1 -1
  56. package/lib/components/LockDownBrowser/ExitButton.js +1 -1
  57. package/lib/components/LockDownBrowser/Launch.js +1 -1
  58. package/lib/components/Lti/Confirm.js +1 -1
  59. package/lib/components/Lti/CreateNonLtiGroupAlertDialog.js +1 -1
  60. package/lib/components/Lti/Launch.js +1 -1
  61. package/lib/components/Lti/LaunchGroup.js +1 -1
  62. package/lib/components/ManageTable.js +1 -1
  63. package/lib/components/ManageTableNoDataComponent.js +1 -1
  64. package/lib/components/NewVersionAlert.js +1 -1
  65. package/lib/components/NotFound.js +1 -1
  66. package/lib/components/Notifications.js +1 -1
  67. package/lib/components/PaginationNextButton.js +1 -1
  68. package/lib/components/PaginationPreviousButton.js +1 -1
  69. package/lib/components/Quill/CustomToolbar.js +1 -1
  70. package/lib/components/Quill/Formats/Image.js +5 -5
  71. package/lib/components/Quill/Formats/List.js +3 -3
  72. package/lib/components/Quill/Formats/Video.js +3 -3
  73. package/lib/components/Quill/ImageDropModule.js +17 -17
  74. package/lib/components/Quill/ImageWarning.js +1 -1
  75. package/lib/components/Quill/ImageWithAltTextModal.js +1 -1
  76. package/lib/components/Quill/Specs/CustomImageSpec.js +7 -7
  77. package/lib/components/Quill/Specs/CustomVideoSpec.js +9 -9
  78. package/lib/components/Quill/TableModule/Blots/BaseTableBlot.js +8 -8
  79. package/lib/components/Quill/TableModule/Blots/TableBlot.js +1 -1
  80. package/lib/components/Quill/TableModule/Blots/TableBodyBlot.js +1 -1
  81. package/lib/components/Quill/TableModule/Blots/TableCellBlot.js +1 -1
  82. package/lib/components/Quill/TableModule/Blots/TableContainer.js +1 -1
  83. package/lib/components/Quill/TableModule/Blots/TableRowBlot.js +1 -1
  84. package/lib/components/Quill/TableModule/constants.js +1 -1
  85. package/lib/components/Quill/TableModule/index.css +171 -171
  86. package/lib/components/Quill/TableModule/index.js +1 -1
  87. package/lib/components/Quill/TableModule/utils.js +1 -1
  88. package/lib/components/Quill/accessibilityFix.js +14 -14
  89. package/lib/components/Quill/index.js +1 -1
  90. package/lib/components/RefreshIndicator/Bordered.js +1 -1
  91. package/lib/components/RefreshIndicator/Inline.js +1 -1
  92. package/lib/components/RefreshIndicator/index.js +1 -1
  93. package/lib/components/SearchControls.js +1 -1
  94. package/lib/components/SentryRoute.js +1 -1
  95. package/lib/components/Tables/RoleFilter.js +1 -1
  96. package/lib/components/Tables/TextFilter.js +1 -1
  97. package/lib/components/UserRoles/Add.js +1 -1
  98. package/lib/components/UserRoles/Context.js +4 -4
  99. package/lib/components/UserRoles/RoleCell.js +5 -4
  100. package/lib/components/UserRoles/Select.js +16 -5
  101. package/lib/components/UserRoles/Table.js +1 -1
  102. package/lib/components/UserRoles/index.js +3 -3
  103. package/lib/config/eslint/index.js +1 -1
  104. package/lib/config/eslint/lib/order.js +1 -1
  105. package/lib/config/eslint/lib/prettier.js +1 -1
  106. package/lib/config/eslint/lib/typescript.js +1 -1
  107. package/lib/config/eslint/react.js +1 -1
  108. package/lib/constants/baseActivity.js +1 -1
  109. package/lib/constants/baseRole.js +1 -1
  110. package/lib/constants/configuration.js +1 -1
  111. package/lib/constants/externalProviderType.js +1 -1
  112. package/lib/constants/fetchErrorData.js +1 -1
  113. package/lib/constants/index.js +1 -1
  114. package/lib/constants/lockDownBrowser.js +1 -1
  115. package/lib/constants/mockData.js +3 -3
  116. package/lib/constants/modelStatus.js +1 -1
  117. package/lib/constants/notificationType.js +1 -1
  118. package/lib/constants/operatingSystem.js +1 -1
  119. package/lib/constants/shard.js +1 -1
  120. package/lib/constants/table.js +1 -1
  121. package/lib/constants/tier.js +1 -1
  122. package/lib/constants/userRole.js +1 -1
  123. package/lib/css/base/_base.css +98 -98
  124. package/lib/css/base/_typography.css +130 -130
  125. package/lib/css/components/_alert.css +86 -86
  126. package/lib/css/components/_bootstrap-grid.css +28 -28
  127. package/lib/css/components/_buttons.css +390 -397
  128. package/lib/css/components/_forms.css +106 -101
  129. package/lib/css/components/_menu.css +56 -56
  130. package/lib/css/components/_modals.css +46 -46
  131. package/lib/css/components/_quill.css +323 -315
  132. package/lib/css/components/_tables.css +504 -497
  133. package/lib/css/components/_tags.css +12 -12
  134. package/lib/css/index-with-variables.css +15 -15
  135. package/lib/css/index.css +14 -14
  136. package/lib/css/utils/_border.css +463 -463
  137. package/lib/css/utils/_color.css +317 -317
  138. package/lib/css/utils/_display.css +305 -305
  139. package/lib/css/utils/_focus.css +12 -0
  140. package/lib/css/utils/_general.css +48 -48
  141. package/lib/css/utils/_icon.css +16 -16
  142. package/lib/css/utils/_text.css +25 -25
  143. package/lib/css/utils/_width.css +60 -60
  144. package/lib/css/variables.css +90 -84
  145. package/lib/endpointMappings.js +1 -1
  146. package/lib/hooks/useCollection.js +1 -1
  147. package/lib/hooks/useCollectionConfiguration.js +7 -7
  148. package/lib/hooks/useCollectionItem.js +1 -1
  149. package/lib/hooks/useEventCalback.js +13 -13
  150. package/lib/hooks/useGuid.js +3 -3
  151. package/lib/hooks/usePrevious.js +23 -23
  152. package/lib/index.js +1 -1
  153. package/lib/redux/actionCreator.js +1 -1
  154. package/lib/redux/actions/AuthAction.js +7 -7
  155. package/lib/redux/actions/ModalAction.js +1 -1
  156. package/lib/redux/actions/ModelAction.js +17 -17
  157. package/lib/redux/actions/NotificationAction.js +1 -1
  158. package/lib/redux/actions/SearchAction.js +1 -1
  159. package/lib/redux/actions/index.js +1 -1
  160. package/lib/redux/configureReducers.js +7 -7
  161. package/lib/redux/configureStore.js +1 -1
  162. package/lib/redux/helpers.js +1 -1
  163. package/lib/redux/reducers/authReducer.js +3 -3
  164. package/lib/redux/reducers/index.js +1 -1
  165. package/lib/redux/reducers/modalsReducer.js +1 -1
  166. package/lib/redux/reducers/modelsReducer.js +48 -48
  167. package/lib/redux/reducers/notificationsReducer.js +1 -1
  168. package/lib/redux/reducers/searchReducer.js +9 -9
  169. package/lib/redux/sagas/appInsightsSaga.js +1 -1
  170. package/lib/redux/sagas/authSaga.js +1 -1
  171. package/lib/redux/sagas/caliperSaga.js +16 -16
  172. package/lib/redux/sagas/clockOffsetSaga.js +9 -9
  173. package/lib/redux/sagas/configurationSaga.js +1 -1
  174. package/lib/redux/sagas/downtimeApiErrorSaga.js +1 -1
  175. package/lib/redux/sagas/errorSaga.js +1 -1
  176. package/lib/redux/sagas/googleAnalyticsSaga.js +1 -1
  177. package/lib/redux/sagas/identityProviderSaga.js +1 -1
  178. package/lib/redux/sagas/initialDataLoadSaga.js +1 -1
  179. package/lib/redux/sagas/lockDownBrowserErrorSaga.js +1 -1
  180. package/lib/redux/sagas/modelFetchSaga.js +49 -49
  181. package/lib/redux/sagas/noStoreSaga.js +1 -1
  182. package/lib/redux/sagas/postLoginDataSaga.js +6 -6
  183. package/lib/redux/sagas/postLoginRedirectSaga.js +4 -4
  184. package/lib/redux/sagas/rootSaga.js +1 -1
  185. package/lib/redux/sagas/sentrySaga.js +1 -1
  186. package/lib/redux/sagas/userIdSaga.js +1 -1
  187. package/lib/services/codeProviderService.js +1 -1
  188. package/lib/services/dateService.js +3 -3
  189. package/lib/services/documentService.js +4 -4
  190. package/lib/services/fetchService.js +25 -25
  191. package/lib/services/persistenceService.js +1 -1
  192. package/lib/services/ticketProviderService.js +1 -1
  193. package/lib/services/tokenPersistenceService.js +1 -1
  194. package/lib/services/windowService.js +1 -1
  195. package/lib/startup.js +18 -18
  196. package/lib/types/AppConfiguration.js +1 -1
  197. package/lib/types/Artifact.js +1 -1
  198. package/lib/types/BaseReduxState.js +1 -1
  199. package/lib/types/Client.js +1 -1
  200. package/lib/types/Collection.js +1 -1
  201. package/lib/types/Configuration.js +1 -1
  202. package/lib/types/DeepLinkingResponseRequest.js +1 -1
  203. package/lib/types/DeletableModel.js +1 -1
  204. package/lib/types/Event.js +1 -1
  205. package/lib/types/ExternalGroup.js +1 -1
  206. package/lib/types/ExternalProvider.js +1 -1
  207. package/lib/types/ExternalTerm.js +1 -1
  208. package/lib/types/Group.js +1 -1
  209. package/lib/types/IdentityProvider.js +1 -1
  210. package/lib/types/LtiLaunch.js +1 -1
  211. package/lib/types/NameOnlyEntity.js +1 -1
  212. package/lib/types/Notification.js +1 -1
  213. package/lib/types/OptionalRecord.js +1 -1
  214. package/lib/types/OwnerSchedule.js +1 -1
  215. package/lib/types/PropertyOfType.js +1 -1
  216. package/lib/types/Quill.js +1 -1
  217. package/lib/types/RoleDescription.js +1 -1
  218. package/lib/types/Search.js +1 -1
  219. package/lib/types/SimpleLocation.js +1 -1
  220. package/lib/types/UniTime.js +1 -1
  221. package/lib/types/User.js +1 -1
  222. package/lib/types/UserRole.js +1 -1
  223. package/lib/types/auth/AuthState.js +1 -1
  224. package/lib/types/auth/CasV1LoginRequestBody.js +1 -1
  225. package/lib/types/auth/ClientCredentials.js +1 -1
  226. package/lib/types/auth/CodeProviderService.js +1 -1
  227. package/lib/types/auth/LocalLoginRequestBody.js +1 -1
  228. package/lib/types/auth/TicketProviderService.js +1 -1
  229. package/lib/types/auth/TokenPersistenceService.js +1 -1
  230. package/lib/types/auth/index.js +1 -1
  231. package/lib/types/externals.d.js +1 -1
  232. package/lib/types/index.js +1 -1
  233. package/lib/types/net/EndpointConfig.js +1 -1
  234. package/lib/types/net/EndpointMapping.js +1 -1
  235. package/lib/types/net/EndpointMappings.js +1 -1
  236. package/lib/types/net/ErrorHandler.js +1 -1
  237. package/lib/types/net/FetchConfig.js +1 -1
  238. package/lib/types/net/FetchErrorData.js +1 -1
  239. package/lib/types/net/FetchResult.js +1 -1
  240. package/lib/types/net/HTTPMethod.js +1 -1
  241. package/lib/types/net/HTTPStatusCode.js +1 -1
  242. package/lib/types/net/Metadata.js +1 -1
  243. package/lib/types/net/Model.js +1 -1
  244. package/lib/types/net/ModelCollection.js +1 -1
  245. package/lib/types/net/ModelsState.js +1 -1
  246. package/lib/types/net/OAuthToken.js +1 -1
  247. package/lib/types/net/OAuthTokenOrNull.js +1 -1
  248. package/lib/types/net/TokenAccessFunction.js +1 -1
  249. package/lib/types/net/index.js +1 -1
  250. package/lib/utils/baseActivity.js +87 -87
  251. package/lib/utils/baseRole.js +1 -1
  252. package/lib/utils/collection.js +20 -20
  253. package/lib/utils/cookies.js +1 -1
  254. package/lib/utils/date.js +111 -111
  255. package/lib/utils/dom.js +42 -42
  256. package/lib/utils/domainIdentifier.js +1 -1
  257. package/lib/utils/entityUserRole.js +1 -1
  258. package/lib/utils/error.js +1 -1
  259. package/lib/utils/events.js +4 -4
  260. package/lib/utils/externalGroup.js +1 -1
  261. package/lib/utils/externalProviders.js +1 -1
  262. package/lib/utils/externalTerms.js +1 -1
  263. package/lib/utils/fetch.js +10 -10
  264. package/lib/utils/group.js +1 -1
  265. package/lib/utils/groupDates.js +1 -1
  266. package/lib/utils/groupRoles.js +1 -1
  267. package/lib/utils/lockDownBrowser.js +1 -1
  268. package/lib/utils/logger.js +1 -1
  269. package/lib/utils/lti.js +1 -1
  270. package/lib/utils/model.js +5 -5
  271. package/lib/utils/number.js +11 -11
  272. package/lib/utils/promise.js +1 -1
  273. package/lib/utils/quill.js +16 -16
  274. package/lib/utils/route.js +1 -1
  275. package/lib/utils/search.js +1 -1
  276. package/lib/utils/shard.js +1 -1
  277. package/lib/utils/sort.js +1 -1
  278. package/lib/utils/string.js +1 -1
  279. package/lib/utils/table.js +4 -4
  280. package/lib/utils/timezone.js +1 -1
  281. package/lib/utils/url.js +20 -19
  282. package/lib/utils/user.js +1 -1
  283. package/lib/utils/userAgent.js +1 -1
  284. package/lib/utils/userRole.js +16 -16
  285. package/package.json +224 -224
@@ -1,497 +1,504 @@
1
- :root {
2
- --cell-padding-horiz: 1rem;
3
- }
4
-
5
- /* table style overrides */
6
-
7
- td,
8
- .MuiTableCell-body {
9
- padding: 0.9rem var(--cell-padding-horiz);
10
- font-size: 1rem;
11
- border-bottom: 2px solid var(--color-light-grey);
12
- width: 130px;
13
-
14
- & button {
15
- overflow: hidden;
16
- }
17
- }
18
-
19
- th,
20
- .MuiTableCell-head {
21
- background-color: var(--color-off-white);
22
- border-bottom: 1px solid var(--color-light-grey);
23
- color: var(--color-dark-grey);
24
- font-size: 0.9rem;
25
- padding: 0.75rem var(--cell-padding-horiz);
26
- text-transform: uppercase;
27
- font-weight: var(--font-weight-bold);
28
- height: auto;
29
- width: 130px;
30
-
31
- &.header-sort {
32
- padding: 0;
33
- white-space: pre-wrap;
34
-
35
- & button {
36
- display: block;
37
- padding: 0.75rem 18px;
38
- height: auto;
39
- width: 100%;
40
- margin: 0;
41
- line-height: 1.4rem;
42
-
43
- & span {
44
- text-transform: uppercase;
45
- padding: 0 8px 0 0;
46
- font-size: 0.9rem;
47
- }
48
-
49
- & svg {
50
- margin: -4px 0 0;
51
- vertical-align: middle;
52
- }
53
- }
54
- }
55
- }
56
-
57
- .MuiTableCell-footer {
58
- font-size: 1rem;
59
- }
60
-
61
- /**
62
- * react table
63
- */
64
-
65
- .table-container {
66
- width: 100%;
67
- overflow-x: auto;
68
- }
69
-
70
- .table-search-container {
71
- padding: 0 !important;
72
- text-align: left;
73
- background: white;
74
- border: 1px solid rgb(0 0 0 / 10%);
75
- border-radius: 3px;
76
- width: 100%;
77
-
78
- & .MuiSvgIcon-root {
79
- margin-top: 0.55rem;
80
- }
81
-
82
- & .table-search-input {
83
- text-align: left;
84
- outline: none !important;
85
- border: none !important;
86
- width: 100%;
87
- }
88
-
89
- & input[type="search"] {
90
- -webkit-appearance: none;
91
- }
92
-
93
- & input[type="search"]::-webkit-search-cancel-button {
94
- -webkit-appearance: searchfield-cancel-button;
95
- }
96
- }
97
-
98
- .ReactTable {
99
- & .rt-thead .rt-tr {
100
- background-color: var(--color-off-white);
101
- border-bottom: 1px solid var(--color-light-grey);
102
- }
103
-
104
- & .rt-th {
105
- font-weight: var(--font-weight-bold);
106
- color: var(--color-dark-grey);
107
- font-size: 0.9rem;
108
- text-transform: uppercase;
109
- }
110
-
111
- & .rt-th > div {
112
- padding: 0.75rem var(--cell-padding-horiz);
113
- }
114
-
115
- & .rt-td {
116
- padding: var(--cell-padding-horiz);
117
- font-size: 1rem;
118
- }
119
-
120
- & .rt-td.overflow-visible {
121
- overflow: visible;
122
- }
123
-
124
- & .pagination-top,
125
- & .pagination-bottom {
126
- background-color: var(--color-off-white);
127
-
128
- & .-pagination {
129
- padding: 0.5rem 0.6rem;
130
- border-top: none;
131
- }
132
- }
133
-
134
- & .pagination-top .-pagination {
135
- border-bottom: 1px solid var(--color-light-grey);
136
- }
137
-
138
- & .pagination-bottom .-pagination {
139
- border-top: 1px solid var(--color-light-grey);
140
- }
141
-
142
- & .-pagination .-previous,
143
- & .-pagination .-next {
144
- & .MuiButton-text {
145
- background-color: var(--color-white);
146
- border: 1px solid var(--color-light-grey);
147
-
148
- &[disabled] {
149
- background-color: var(--color-light-grey);
150
- }
151
-
152
- & .MuiButton-label .MuiSvgIcon-root {
153
- margin: 0;
154
- }
155
- }
156
- }
157
-
158
- /* duplicate .form-control styles */
159
- & .-pagination input,
160
- .-pagination select {
161
- display: block;
162
- width: 100%;
163
- height: calc(1.5em + 0.75rem + 2px);
164
- font-size: 1rem;
165
- font-weight: 400;
166
- line-height: 1.5;
167
- color: #495057;
168
- background-color: #fff;
169
- background-clip: padding-box;
170
- border: 1px solid #ced4da;
171
- border-radius: 0.25rem;
172
- transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
173
- font-family: var(--text-font-stack);
174
- padding: 0.5rem;
175
- border-color: var(--color-light-grey);
176
- box-shadow: none;
177
-
178
- &:focus {
179
- border-color: #80bdff;
180
- outline: 0;
181
- -webkit-box-shadow: 0 0 0 0.2rem rgb(0 123 255 / 25%);
182
- box-shadow: 0 0 0 0.2rem rgb(0 123 255 / 25%);
183
- }
184
-
185
- &::placeholder {
186
- color: #6c757d;
187
- opacity: 1;
188
- }
189
- }
190
-
191
- & .-pagination .-pageSizeOptions.select {
192
- padding: 0.375rem 0.75rem;
193
- }
194
-
195
- &.single-row-action-button {
196
- & .rt-tbody {
197
- padding-bottom: 108px;
198
- }
199
- }
200
-
201
- & .rt-noData {
202
- top: 128px;
203
- color: var(--color-dark-grey);
204
- font-weight: bold;
205
- border-width: 0.1rem;
206
- border-style: solid;
207
- border-radius: 0.25rem;
208
- background-color: color-mod(var(--color-accent-blue) lightness(98%)) !important;
209
- border-color: color-mod(var(--color-accent-blue) lightness(69%)) !important;
210
- padding: 1rem;
211
- width: 100%;
212
- text-align: center;
213
- }
214
-
215
- & .dropdown {
216
- position: static;
217
- }
218
- }
219
-
220
- .striped-table tr:nth-child(even) {
221
- background-color: var(--color-light-blue) !important;
222
- }
223
-
224
- .ReactTable.-striped {
225
- & .rt-tr.-odd {
226
- background: var(--color-off-white) !important;
227
- }
228
- }
229
-
230
- /**
231
- * react-super-responsive-table
232
- */
233
-
234
- /* RESET STYLES at the package's breakpoint */
235
-
236
- @media screen and (max-width: 40em) {
237
- .responsiveTable table {
238
- display: table;
239
- }
240
-
241
- .responsiveTable thead {
242
- display: table-header-group;
243
- }
244
-
245
- .responsiveTable tbody {
246
- display: table-row-group;
247
- }
248
-
249
- .responsiveTable th,
250
- .responsiveTable td {
251
- display: table-cell;
252
- }
253
-
254
- .responsiveTable tr {
255
- display: table-row;
256
- }
257
-
258
- .responsiveTable thead tr {
259
- position: static;
260
- top: auto;
261
- left: auto;
262
- border-bottom: inherit;
263
- }
264
-
265
- .responsiveTable tbody tr {
266
- border: inherit;
267
- padding: 0;
268
- }
269
-
270
- .responsiveTable td.pivoted {
271
- border: inherit !important;
272
- position: static;
273
- padding-left: var(--cell-padding-horiz) !important;
274
- text-align: inherit !important;
275
- white-space: normal;
276
- overflow-wrap: normal;
277
- }
278
-
279
- .responsiveTable td .tdBefore {
280
- display: none;
281
- }
282
- }
283
-
284
- /**
285
- * SET STYLES to use our "lt-sm" breakpoint
286
- * COPIED DIRECTLY from /node_modules/react-super-responsive-table/dist/SuperResponsiveTableStyle.css
287
- */
288
- @media (--lt-sm) {
289
- .responsiveTable table,
290
- .responsiveTable thead,
291
- .responsiveTable tbody,
292
- .responsiveTable th,
293
- .responsiveTable td,
294
- .responsiveTable tr {
295
- display: block;
296
- }
297
-
298
- .responsiveTable thead tr {
299
- position: absolute;
300
- top: -9999px;
301
- left: -9999px;
302
- border-bottom: 2px solid #333;
303
- }
304
-
305
- .responsiveTable tbody tr {
306
- border: 1px solid #000;
307
- padding: 0.25em;
308
- }
309
-
310
- .responsiveTable td.pivoted {
311
- /* Behave like a "row" */
312
- border: none !important;
313
- position: relative;
314
- padding-left: calc(50% + 10px) !important;
315
- text-align: left !important;
316
- white-space: pre-wrap;
317
- overflow-wrap: break-word;
318
- }
319
-
320
- .responsiveTable td .tdBefore {
321
- /* Now like a table header */
322
- position: absolute;
323
- display: block;
324
-
325
- /* Top/left values mimic padding */
326
- left: 1rem;
327
- width: calc(50% - 20px);
328
- white-space: pre-wrap;
329
- overflow-wrap: break-word;
330
- text-align: left !important;
331
- font-weight: 600;
332
- }
333
- }
334
-
335
- /**
336
- * SET STYLES to use our "lt-md" breakpoint
337
- * COPIED DIRECTLY from /node_modules/react-super-responsive-table/dist/SuperResponsiveTableStyle.css
338
- */
339
- @media (--lt-md) {
340
- .responsiveTable-lt-md table,
341
- .responsiveTable-lt-md thead,
342
- .responsiveTable-lt-md tbody,
343
- .responsiveTable-lt-md th,
344
- .responsiveTable-lt-md td,
345
- .responsiveTable-lt-md tr {
346
- display: block;
347
- }
348
-
349
- .responsiveTable-lt-md thead tr {
350
- position: absolute;
351
- top: -9999px;
352
- left: -9999px;
353
- border-bottom: 2px solid #333;
354
- }
355
-
356
- .responsiveTable-lt-md tbody tr {
357
- border: 1px solid #000;
358
- padding: 0.25em;
359
- }
360
-
361
- .responsiveTable-lt-md td.pivoted {
362
- /* Behave like a "row" */
363
- border: none !important;
364
- position: relative;
365
- padding-left: calc(50% + 10px) !important;
366
- text-align: left !important;
367
- white-space: pre-wrap;
368
- overflow-wrap: break-word;
369
- }
370
-
371
- .responsiveTable-lt-md td .tdBefore {
372
- /* Now like a table header */
373
- position: absolute;
374
- display: block;
375
-
376
- /* Top/left values mimic padding */
377
- left: 1rem;
378
- width: calc(50% - 20px);
379
- white-space: pre-wrap;
380
- overflow-wrap: break-word;
381
- text-align: left !important;
382
- font-weight: 600;
383
- }
384
- }
385
-
386
- /* CUSTOM OVERRIDES for react-super-responsive-table */
387
-
388
- .responsiveTable {
389
- margin-top: 1.2rem;
390
-
391
- & th {
392
- font-size: 0.94rem;
393
- text-transform: uppercase;
394
- border: none;
395
- }
396
-
397
- & td.pivoted {
398
- font-size: 0.96rem;
399
- width: auto;
400
- border-bottom: 1px solid var(--color-light-grey) !important;
401
- }
402
-
403
- /* at normal widths, show the icon button and hide the text button */
404
- & .action-list-icon-button {
405
- display: inherit;
406
- }
407
-
408
- & .action-list-text-button {
409
- display: none;
410
- }
411
- }
412
-
413
- /* default: table is responsive at xs widths and below */
414
- @media (--lt-sm) {
415
- .responsiveTable {
416
- & td {
417
- width: 100%;
418
-
419
- & .tdBefore {
420
- width: 100%;
421
- position: static !important;
422
- }
423
- }
424
-
425
- & tbody > tr {
426
- background-color: color-mod(var(--color-off-white) l(99%));
427
- border-color: var(--color-light-grey) !important;
428
- margin-bottom: 1.5rem;
429
- border-width: 0.15rem;
430
-
431
- & > td.pivoted {
432
- padding-left: var(--cell-padding-horiz) !important;
433
-
434
- &:last-child {
435
- border-bottom: none !important;
436
- }
437
- }
438
-
439
- &:last-child {
440
- margin-bottom: 0;
441
- }
442
- }
443
-
444
- /* hide the icon button and show the text button if there is no default action displayed */
445
- & .action-list-icon-button:not(.with-default-action) {
446
- display: none;
447
- }
448
-
449
- & .action-list-text-button:not(.with-default-action) {
450
- display: inherit;
451
- }
452
- }
453
- }
454
-
455
- /*
456
- * table is responsive at small widths and below
457
- */
458
- @media (--lt-md) {
459
- .responsiveTable-lt-md {
460
- & td {
461
- width: 100%;
462
-
463
- & .tdBefore {
464
- width: 100%;
465
- position: static !important;
466
- }
467
- }
468
-
469
- & tbody > tr {
470
- background-color: color-mod(var(--color-off-white) l(99%));
471
- border-color: var(--color-light-grey) !important;
472
- margin-bottom: 1.5rem;
473
- border-width: 0.15rem;
474
-
475
- & > td.pivoted {
476
- padding-left: var(--cell-padding-horiz) !important;
477
-
478
- &:last-child {
479
- border-bottom: none !important;
480
- }
481
- }
482
-
483
- &:last-child {
484
- margin-bottom: 0;
485
- }
486
- }
487
-
488
- /* hide the icon button and show the text button if there is no default action displayed */
489
- & .action-list-icon-button:not(.with-default-action) {
490
- display: none;
491
- }
492
-
493
- & .action-list-text-button:not(.with-default-action) {
494
- display: inherit;
495
- }
496
- }
497
- }
1
+ :root {
2
+ --cell-padding-horiz: 1rem;
3
+ }
4
+
5
+ /* table style overrides */
6
+
7
+ td,
8
+ .MuiTableCell-body {
9
+ padding: 0.9rem var(--cell-padding-horiz);
10
+ font-size: 1rem;
11
+ border-bottom: 2px solid var(--color-light-grey);
12
+ width: 130px;
13
+
14
+ & button {
15
+ overflow: hidden;
16
+ }
17
+ }
18
+
19
+ th,
20
+ .MuiTableCell-head {
21
+ background-color: var(--color-off-white);
22
+ border-bottom: 1px solid var(--color-light-grey);
23
+ color: var(--color-dark-grey);
24
+ font-size: 0.9rem;
25
+ padding: 0.75rem var(--cell-padding-horiz);
26
+ text-transform: uppercase;
27
+ font-weight: var(--font-weight-bold);
28
+ height: auto;
29
+ width: 130px;
30
+
31
+ &.header-sort {
32
+ padding: 0;
33
+ white-space: pre-wrap;
34
+
35
+ & button {
36
+ display: block;
37
+ padding: 0.75rem 18px;
38
+ height: auto;
39
+ width: 100%;
40
+ margin: 0;
41
+ line-height: 1.4rem;
42
+
43
+ & span {
44
+ text-transform: uppercase;
45
+ padding: 0 8px 0 0;
46
+ font-size: 0.9rem;
47
+ }
48
+
49
+ & svg {
50
+ margin: -4px 0 0;
51
+ vertical-align: middle;
52
+ }
53
+ }
54
+ }
55
+ }
56
+
57
+ .MuiTableCell-footer {
58
+ font-size: 1rem;
59
+ }
60
+
61
+ /**
62
+ * react table
63
+ */
64
+
65
+ .table-container {
66
+ width: 100%;
67
+ overflow-x: auto;
68
+ }
69
+
70
+ .table-search-container {
71
+ padding: 0 !important;
72
+ text-align: left;
73
+ background: white;
74
+ width: 100%;
75
+ position: relative;
76
+
77
+ & .MuiSvgIcon-root {
78
+ margin-top: 0.55rem;
79
+ position: absolute;
80
+ left: 0;
81
+ }
82
+
83
+ & .table-search-input {
84
+ text-align: left;
85
+ width: 100%;
86
+ padding-left: 1.5rem !important;
87
+ }
88
+
89
+ & input[type="search"] {
90
+ -webkit-appearance: none;
91
+ }
92
+
93
+ & input[type="search"]::-webkit-search-cancel-button {
94
+ -webkit-appearance: searchfield-cancel-button;
95
+ }
96
+ }
97
+
98
+ .ReactTable {
99
+ & .rt-thead .rt-tr {
100
+ background-color: var(--color-off-white);
101
+ border-bottom: 1px solid var(--color-light-grey);
102
+ }
103
+
104
+ & .rt-th {
105
+ font-weight: var(--font-weight-bold);
106
+ color: var(--color-dark-grey);
107
+ font-size: 0.9rem;
108
+ text-transform: uppercase;
109
+ }
110
+
111
+ & .rt-th > div {
112
+ padding: 0.75rem var(--cell-padding-horiz);
113
+ }
114
+
115
+ & .rt-thead.-filters .form-control {
116
+ border-color: var(--color-medium-dark-grey);
117
+
118
+ &:focus {
119
+ border-color: var(--color-focus-border);
120
+ }
121
+ }
122
+
123
+ & .rt-td {
124
+ padding: var(--cell-padding-horiz);
125
+ font-size: 1rem;
126
+ }
127
+
128
+ & .rt-td.overflow-visible {
129
+ overflow: visible;
130
+ }
131
+
132
+ & .pagination-top,
133
+ & .pagination-bottom {
134
+ background-color: var(--color-off-white);
135
+
136
+ & .-pagination {
137
+ padding: 0.5rem 0.6rem;
138
+ border-top: none;
139
+ }
140
+ }
141
+
142
+ & .pagination-top .-pagination {
143
+ border-bottom: 1px solid var(--color-light-grey);
144
+ }
145
+
146
+ & .pagination-bottom .-pagination {
147
+ border-top: 1px solid var(--color-light-grey);
148
+ }
149
+
150
+ & .-pagination .-previous,
151
+ & .-pagination .-next {
152
+ & .MuiButton-text {
153
+ background-color: var(--color-white);
154
+ border: 1px solid var(--color-light-grey);
155
+
156
+ &[disabled] {
157
+ background-color: var(--color-light-grey);
158
+ }
159
+
160
+ & .MuiButton-label .MuiSvgIcon-root {
161
+ margin: 0;
162
+ }
163
+ }
164
+ }
165
+
166
+ /* duplicate .form-control styles */
167
+ & .-pagination input,
168
+ .-pagination select {
169
+ display: block;
170
+ width: 100%;
171
+ height: calc(1.5em + 0.75rem + 2px);
172
+ font-size: 1rem;
173
+ font-weight: 400;
174
+ line-height: 1.5;
175
+ color: #495057;
176
+ background-color: #fff;
177
+ background-clip: padding-box;
178
+ border: 1px solid #ced4da;
179
+ border-radius: 0.25rem;
180
+ transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
181
+ font-family: var(--text-font-stack);
182
+ padding: 0.5rem;
183
+ border-color: var(--color-light-grey);
184
+ box-shadow: none;
185
+
186
+ &:focus {
187
+ border-color: var(--color-focus-border);
188
+ outline: 0;
189
+ box-shadow: var(--box-shadow-focus);
190
+ }
191
+
192
+ &::placeholder {
193
+ color: #6c757d;
194
+ opacity: 1;
195
+ }
196
+ }
197
+
198
+ & .-pagination .-pageSizeOptions.select {
199
+ padding: 0.375rem 0.75rem;
200
+ }
201
+
202
+ &.single-row-action-button {
203
+ & .rt-tbody {
204
+ padding-bottom: 108px;
205
+ }
206
+ }
207
+
208
+ & .rt-noData {
209
+ top: 128px;
210
+ color: var(--color-dark-grey);
211
+ font-weight: bold;
212
+ border-width: 0.1rem;
213
+ border-style: solid;
214
+ border-radius: 0.25rem;
215
+ background-color: color-mod(var(--color-accent-blue) lightness(98%)) !important;
216
+ border-color: color-mod(var(--color-accent-blue) lightness(69%)) !important;
217
+ padding: 1rem;
218
+ width: 100%;
219
+ text-align: center;
220
+ }
221
+
222
+ & .dropdown {
223
+ position: static;
224
+ }
225
+ }
226
+
227
+ .striped-table tr:nth-child(even) {
228
+ background-color: var(--color-light-blue) !important;
229
+ }
230
+
231
+ .ReactTable.-striped {
232
+ & .rt-tr.-odd {
233
+ background: var(--color-off-white) !important;
234
+ }
235
+ }
236
+
237
+ /**
238
+ * react-super-responsive-table
239
+ */
240
+
241
+ /* RESET STYLES at the package's breakpoint */
242
+
243
+ @media screen and (max-width: 40em) {
244
+ .responsiveTable table {
245
+ display: table;
246
+ }
247
+
248
+ .responsiveTable thead {
249
+ display: table-header-group;
250
+ }
251
+
252
+ .responsiveTable tbody {
253
+ display: table-row-group;
254
+ }
255
+
256
+ .responsiveTable th,
257
+ .responsiveTable td {
258
+ display: table-cell;
259
+ }
260
+
261
+ .responsiveTable tr {
262
+ display: table-row;
263
+ }
264
+
265
+ .responsiveTable thead tr {
266
+ position: static;
267
+ top: auto;
268
+ left: auto;
269
+ border-bottom: inherit;
270
+ }
271
+
272
+ .responsiveTable tbody tr {
273
+ border: inherit;
274
+ padding: 0;
275
+ }
276
+
277
+ .responsiveTable td.pivoted {
278
+ border: inherit !important;
279
+ position: static;
280
+ padding-left: var(--cell-padding-horiz) !important;
281
+ text-align: inherit !important;
282
+ white-space: normal;
283
+ overflow-wrap: normal;
284
+ }
285
+
286
+ .responsiveTable td .tdBefore {
287
+ display: none;
288
+ }
289
+ }
290
+
291
+ /**
292
+ * SET STYLES to use our "lt-sm" breakpoint
293
+ * COPIED DIRECTLY from /node_modules/react-super-responsive-table/dist/SuperResponsiveTableStyle.css
294
+ */
295
+ @media (--lt-sm) {
296
+ .responsiveTable table,
297
+ .responsiveTable thead,
298
+ .responsiveTable tbody,
299
+ .responsiveTable th,
300
+ .responsiveTable td,
301
+ .responsiveTable tr {
302
+ display: block;
303
+ }
304
+
305
+ .responsiveTable thead tr {
306
+ position: absolute;
307
+ top: -9999px;
308
+ left: -9999px;
309
+ border-bottom: 2px solid #333;
310
+ }
311
+
312
+ .responsiveTable tbody tr {
313
+ border: 1px solid #000;
314
+ padding: 0.25em;
315
+ }
316
+
317
+ .responsiveTable td.pivoted {
318
+ /* Behave like a "row" */
319
+ border: none !important;
320
+ position: relative;
321
+ padding-left: calc(50% + 10px) !important;
322
+ text-align: left !important;
323
+ white-space: pre-wrap;
324
+ overflow-wrap: break-word;
325
+ }
326
+
327
+ .responsiveTable td .tdBefore {
328
+ /* Now like a table header */
329
+ position: absolute;
330
+ display: block;
331
+
332
+ /* Top/left values mimic padding */
333
+ left: 1rem;
334
+ width: calc(50% - 20px);
335
+ white-space: pre-wrap;
336
+ overflow-wrap: break-word;
337
+ text-align: left !important;
338
+ font-weight: 600;
339
+ }
340
+ }
341
+
342
+ /**
343
+ * SET STYLES to use our "lt-md" breakpoint
344
+ * COPIED DIRECTLY from /node_modules/react-super-responsive-table/dist/SuperResponsiveTableStyle.css
345
+ */
346
+ @media (--lt-md) {
347
+ .responsiveTable-lt-md table,
348
+ .responsiveTable-lt-md thead,
349
+ .responsiveTable-lt-md tbody,
350
+ .responsiveTable-lt-md th,
351
+ .responsiveTable-lt-md td,
352
+ .responsiveTable-lt-md tr {
353
+ display: block;
354
+ }
355
+
356
+ .responsiveTable-lt-md thead tr {
357
+ position: absolute;
358
+ top: -9999px;
359
+ left: -9999px;
360
+ border-bottom: 2px solid #333;
361
+ }
362
+
363
+ .responsiveTable-lt-md tbody tr {
364
+ border: 1px solid #000;
365
+ padding: 0.25em;
366
+ }
367
+
368
+ .responsiveTable-lt-md td.pivoted {
369
+ /* Behave like a "row" */
370
+ border: none !important;
371
+ position: relative;
372
+ padding-left: calc(50% + 10px) !important;
373
+ text-align: left !important;
374
+ white-space: pre-wrap;
375
+ overflow-wrap: break-word;
376
+ }
377
+
378
+ .responsiveTable-lt-md td .tdBefore {
379
+ /* Now like a table header */
380
+ position: absolute;
381
+ display: block;
382
+
383
+ /* Top/left values mimic padding */
384
+ left: 1rem;
385
+ width: calc(50% - 20px);
386
+ white-space: pre-wrap;
387
+ overflow-wrap: break-word;
388
+ text-align: left !important;
389
+ font-weight: 600;
390
+ }
391
+ }
392
+
393
+ /* CUSTOM OVERRIDES for react-super-responsive-table */
394
+
395
+ .responsiveTable {
396
+ margin-top: 1.2rem;
397
+
398
+ & th {
399
+ font-size: 0.94rem;
400
+ text-transform: uppercase;
401
+ border: none;
402
+ }
403
+
404
+ & td.pivoted {
405
+ font-size: 0.96rem;
406
+ width: auto;
407
+ border-bottom: 1px solid var(--color-light-grey) !important;
408
+ }
409
+
410
+ /* at normal widths, show the icon button and hide the text button */
411
+ & .action-list-icon-button {
412
+ display: inherit;
413
+ }
414
+
415
+ & .action-list-text-button {
416
+ display: none;
417
+ }
418
+ }
419
+
420
+ /* default: table is responsive at xs widths and below */
421
+ @media (--lt-sm) {
422
+ .responsiveTable {
423
+ & td {
424
+ width: 100%;
425
+
426
+ & .tdBefore {
427
+ width: 100%;
428
+ position: static !important;
429
+ }
430
+ }
431
+
432
+ & tbody > tr {
433
+ background-color: color-mod(var(--color-off-white) l(99%));
434
+ border-color: var(--color-light-grey) !important;
435
+ margin-bottom: 1.5rem;
436
+ border-width: 0.15rem;
437
+
438
+ & > td.pivoted {
439
+ padding-left: var(--cell-padding-horiz) !important;
440
+
441
+ &:last-child {
442
+ border-bottom: none !important;
443
+ }
444
+ }
445
+
446
+ &:last-child {
447
+ margin-bottom: 0;
448
+ }
449
+ }
450
+
451
+ /* hide the icon button and show the text button if there is no default action displayed */
452
+ & .action-list-icon-button:not(.with-default-action) {
453
+ display: none;
454
+ }
455
+
456
+ & .action-list-text-button:not(.with-default-action) {
457
+ display: inherit;
458
+ }
459
+ }
460
+ }
461
+
462
+ /*
463
+ * table is responsive at small widths and below
464
+ */
465
+ @media (--lt-md) {
466
+ .responsiveTable-lt-md {
467
+ & td {
468
+ width: 100%;
469
+
470
+ & .tdBefore {
471
+ width: 100%;
472
+ position: static !important;
473
+ }
474
+ }
475
+
476
+ & tbody > tr {
477
+ background-color: color-mod(var(--color-off-white) l(99%));
478
+ border-color: var(--color-light-grey) !important;
479
+ margin-bottom: 1.5rem;
480
+ border-width: 0.15rem;
481
+
482
+ & > td.pivoted {
483
+ padding-left: var(--cell-padding-horiz) !important;
484
+
485
+ &:last-child {
486
+ border-bottom: none !important;
487
+ }
488
+ }
489
+
490
+ &:last-child {
491
+ margin-bottom: 0;
492
+ }
493
+ }
494
+
495
+ /* hide the icon button and show the text button if there is no default action displayed */
496
+ & .action-list-icon-button:not(.with-default-action) {
497
+ display: none;
498
+ }
499
+
500
+ & .action-list-text-button:not(.with-default-action) {
501
+ display: inherit;
502
+ }
503
+ }
504
+ }