@visns-studio/visns-components 6.24.4 → 6.26.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/package.json +4 -2
- package/src/components/Autocomplete.jsx +189 -119
- package/src/components/DataGrid.jsx +472 -31
- package/src/components/Navigation.jsx +475 -51
- package/src/components/auth/ClientAuthFrame.jsx +5 -0
- package/src/components/auth/ClientAuthScreen.jsx +29 -0
- package/src/components/callQueue/CallQueueDiagnostics.jsx +1043 -0
- package/src/components/callQueue/CallQueuePop.jsx +713 -90
- package/src/components/callQueue/CallQueueSettings.jsx +308 -146
- package/src/components/callQueue/callPopStatus.js +236 -0
- package/src/components/callQueue/callQueueHelpers.js +284 -2
- package/src/components/columns/ColumnRenderers.jsx +3 -46
- package/src/components/columns/StackedRow.jsx +186 -0
- package/src/components/controls/DataGridSearch.jsx +110 -2
- package/src/components/controls/DataGridSortSheet.jsx +155 -0
- package/src/components/generic/GenericAuth.jsx +50 -18
- package/src/components/generic/GenericDashboard.jsx +20 -1
- package/src/components/generic/GenericDetail.jsx +446 -259
- package/src/components/mapboxSearchBox.js +640 -0
- package/src/components/navBadges.js +63 -1
- package/src/components/navDrawer.js +147 -0
- package/src/components/sms/SmsThreadPanel.jsx +34 -6
- package/src/components/sms/smsHelpers.js +15 -0
- package/src/components/styles/CallQueueDiagnostics.module.scss +398 -0
- package/src/components/styles/CallQueuePop.module.scss +29 -0
- package/src/components/styles/CallQueueSettings.module.scss +93 -0
- package/src/components/styles/ClientAuth.module.scss +39 -0
- package/src/components/styles/DataGrid.module.scss +158 -5
- package/src/components/styles/Field.module.scss +52 -1
- package/src/components/styles/Form.module.scss +82 -0
- package/src/components/styles/GenericClientPortal.module.scss +72 -20
- package/src/components/styles/GenericDashboard.module.scss +50 -0
- package/src/components/styles/GenericDetail.module.scss +63 -1
- package/src/components/styles/GenericDynamic.module.scss +23 -0
- package/src/components/styles/GenericFormBuilder.module.scss +11 -0
- package/src/components/styles/GenericIndex.module.scss +6 -1
- package/src/components/styles/Navigation.module.scss +460 -7
- package/src/components/styles/Sms.module.scss +92 -0
- package/src/components/styles/StackedRow.module.scss +182 -0
- package/src/components/styles/TicketConversation.module.scss +76 -0
- package/src/components/styles/Vault.module.scss +192 -0
- package/src/components/styles/density.css +10 -0
- package/src/components/styles/global-datagrid.css +163 -0
- package/src/components/styles/global.css +20 -0
- package/src/components/tickets/TicketConversation.jsx +13 -8
- package/src/components/utils/ConfirmDialog.js +22 -3
- package/src/components/utils/cardLayout.js +666 -0
- package/src/components/utils/contactChannels.js +130 -0
- package/src/components/utils/editPlacement.js +95 -0
- package/src/components/utils/useDensity.js +303 -7
- package/src/index.js +42 -0
|
@@ -17,6 +17,11 @@ import AuthBrandPanel from './AuthBrandPanel';
|
|
|
17
17
|
* the other. A SECTION rather than a screen, sized by its parent —
|
|
18
18
|
* the consumer keeps its own header and footer and hands this the
|
|
19
19
|
* space between, which is why there is no `100vh` in its styles.
|
|
20
|
+
*
|
|
21
|
+
* A parent that has no height of its own to give — a bare router route element,
|
|
22
|
+
* say — therefore collapses the split to the height of the form. Wrap the step
|
|
23
|
+
* in `ClientAuthScreen` when it owns the page; that is what GenericAuth's
|
|
24
|
+
* client auth routes do.
|
|
20
25
|
*/
|
|
21
26
|
const ClientAuthFrame = ({
|
|
22
27
|
layout = 'card',
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
|
|
3
|
+
import styles from '../styles/ClientAuth.module.scss';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* A client sign-in step given the whole viewport.
|
|
7
|
+
*
|
|
8
|
+
* ClientAuthFrame's `split` layout is a SECTION: it fills its parent and states
|
|
9
|
+
* no viewport height of its own, which is exactly what lets a consumer keep its
|
|
10
|
+
* own header and footer and hand the sign-in the space between. Mounted as a
|
|
11
|
+
* router route element there is no such parent — the route renders straight
|
|
12
|
+
* into the app's mount node, an auto-height block — so `height: 100%` resolved
|
|
13
|
+
* to the height of the form and the screen collapsed into a band at the top of
|
|
14
|
+
* the page.
|
|
15
|
+
*
|
|
16
|
+
* The staff screens never had the problem because their shell is
|
|
17
|
+
* `position: fixed; inset: 0`. This is the same promise made in flow layout, so
|
|
18
|
+
* a tall step two scrolls the page rather than being clipped by an overlay.
|
|
19
|
+
*
|
|
20
|
+
* Wrap a client auth step in this whenever it OWNS the page — which is what
|
|
21
|
+
* GenericAuth's `/{base}/login` and `/{base}/verify` routes do. Leave it off
|
|
22
|
+
* when embedding one inside chrome of your own; that is the case the section
|
|
23
|
+
* was written for.
|
|
24
|
+
*/
|
|
25
|
+
const ClientAuthScreen = ({ children }) => (
|
|
26
|
+
<div className={styles.screen}>{children}</div>
|
|
27
|
+
);
|
|
28
|
+
|
|
29
|
+
export default ClientAuthScreen;
|