@mongodb-js/compass-components 1.43.0 → 1.45.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/lib/components/document-list/document-edit-actions-footer.d.ts.map +1 -1
- package/lib/components/document-list/document-edit-actions-footer.js +31 -26
- package/lib/components/document-list/document-edit-actions-footer.js.map +1 -1
- package/lib/components/drawer/constants.d.ts +9 -0
- package/lib/components/drawer/constants.d.ts.map +1 -0
- package/lib/components/drawer/constants.js +13 -0
- package/lib/components/drawer/constants.js.map +1 -0
- package/lib/components/drawer/drawer/drawer.constants.d.ts +3 -0
- package/lib/components/drawer/drawer/drawer.constants.d.ts.map +1 -0
- package/lib/components/drawer/drawer/drawer.constants.js +6 -0
- package/lib/components/drawer/drawer/drawer.constants.js.map +1 -0
- package/lib/components/drawer/drawer/drawer.d.ts +4 -0
- package/lib/components/drawer/drawer/drawer.d.ts.map +1 -0
- package/lib/components/drawer/drawer/drawer.js +137 -0
- package/lib/components/drawer/drawer/drawer.js.map +1 -0
- package/lib/components/drawer/drawer/drawer.styles.d.ts +29 -0
- package/lib/components/drawer/drawer/drawer.styles.d.ts.map +1 -0
- package/lib/components/drawer/drawer/drawer.styles.js +174 -0
- package/lib/components/drawer/drawer/drawer.styles.js.map +1 -0
- package/lib/components/drawer/drawer/drawer.types.d.ts +35 -0
- package/lib/components/drawer/drawer/drawer.types.d.ts.map +1 -0
- package/lib/components/drawer/drawer/drawer.types.js +13 -0
- package/lib/components/drawer/drawer/drawer.types.js.map +1 -0
- package/lib/components/drawer/drawer/index.d.ts +5 -0
- package/lib/components/drawer/drawer/index.d.ts.map +1 -0
- package/lib/components/drawer/drawer/index.js +12 -0
- package/lib/components/drawer/drawer/index.js.map +1 -0
- package/lib/components/drawer/drawer-layout/drawer-layout.d.ts +17 -0
- package/lib/components/drawer/drawer-layout/drawer-layout.d.ts.map +1 -0
- package/lib/components/drawer/drawer-layout/drawer-layout.js +57 -0
- package/lib/components/drawer/drawer-layout/drawer-layout.js.map +1 -0
- package/lib/components/drawer/drawer-layout/drawer-layout.types.d.ts +34 -0
- package/lib/components/drawer/drawer-layout/drawer-layout.types.d.ts.map +1 -0
- package/lib/components/drawer/drawer-layout/drawer-layout.types.js +3 -0
- package/lib/components/drawer/drawer-layout/drawer-layout.types.js.map +1 -0
- package/lib/components/drawer/drawer-layout/index.d.ts +3 -0
- package/lib/components/drawer/drawer-layout/index.d.ts.map +1 -0
- package/lib/components/drawer/drawer-layout/index.js +6 -0
- package/lib/components/drawer/drawer-layout/index.js.map +1 -0
- package/lib/components/drawer/drawer-stack-context/drawer-stack-context.d.ts +8 -0
- package/lib/components/drawer/drawer-stack-context/drawer-stack-context.d.ts.map +1 -0
- package/lib/components/drawer/drawer-stack-context/drawer-stack-context.js +71 -0
- package/lib/components/drawer/drawer-stack-context/drawer-stack-context.js.map +1 -0
- package/lib/components/drawer/drawer-stack-context/drawer-stack-context.types.d.ts +21 -0
- package/lib/components/drawer/drawer-stack-context/drawer-stack-context.types.d.ts.map +1 -0
- package/lib/components/drawer/drawer-stack-context/drawer-stack-context.types.js +3 -0
- package/lib/components/drawer/drawer-stack-context/drawer-stack-context.types.js.map +1 -0
- package/lib/components/drawer/drawer-stack-context/index.d.ts +3 -0
- package/lib/components/drawer/drawer-stack-context/index.d.ts.map +1 -0
- package/lib/components/drawer/drawer-stack-context/index.js +8 -0
- package/lib/components/drawer/drawer-stack-context/index.js.map +1 -0
- package/lib/components/drawer/drawer-toolbar-context/drawer-toolbar-context.d.ts +6 -0
- package/lib/components/drawer/drawer-toolbar-context/drawer-toolbar-context.d.ts.map +1 -0
- package/lib/components/drawer/drawer-toolbar-context/drawer-toolbar-context.js +85 -0
- package/lib/components/drawer/drawer-toolbar-context/drawer-toolbar-context.js.map +1 -0
- package/lib/components/drawer/drawer-toolbar-context/drawer-toolbar-context.types.d.ts +37 -0
- package/lib/components/drawer/drawer-toolbar-context/drawer-toolbar-context.types.d.ts.map +1 -0
- package/lib/components/drawer/drawer-toolbar-context/drawer-toolbar-context.types.js +3 -0
- package/lib/components/drawer/drawer-toolbar-context/drawer-toolbar-context.types.js.map +1 -0
- package/lib/components/drawer/drawer-toolbar-context/index.d.ts +2 -0
- package/lib/components/drawer/drawer-toolbar-context/index.d.ts.map +1 -0
- package/lib/components/drawer/drawer-toolbar-context/index.js +7 -0
- package/lib/components/drawer/drawer-toolbar-context/index.js.map +1 -0
- package/lib/components/drawer/drawer-toolbar-layout/drawer-toolbar-layout-container.d.ts +18 -0
- package/lib/components/drawer/drawer-toolbar-layout/drawer-toolbar-layout-container.d.ts.map +1 -0
- package/lib/components/drawer/drawer-toolbar-layout/drawer-toolbar-layout-container.js +82 -0
- package/lib/components/drawer/drawer-toolbar-layout/drawer-toolbar-layout-container.js.map +1 -0
- package/lib/components/drawer/drawer-toolbar-layout/drawer-toolbar-layout.d.ts +15 -0
- package/lib/components/drawer/drawer-toolbar-layout/drawer-toolbar-layout.d.ts.map +1 -0
- package/lib/components/drawer/drawer-toolbar-layout/drawer-toolbar-layout.js +50 -0
- package/lib/components/drawer/drawer-toolbar-layout/drawer-toolbar-layout.js.map +1 -0
- package/lib/components/drawer/drawer-toolbar-layout/drawer-toolbar-layout.styles.d.ts +2 -0
- package/lib/components/drawer/drawer-toolbar-layout/drawer-toolbar-layout.styles.d.ts.map +1 -0
- package/lib/components/drawer/drawer-toolbar-layout/drawer-toolbar-layout.styles.js +11 -0
- package/lib/components/drawer/drawer-toolbar-layout/drawer-toolbar-layout.styles.js.map +1 -0
- package/lib/components/drawer/drawer-toolbar-layout/drawer-toolbar-layout.types.d.ts +44 -0
- package/lib/components/drawer/drawer-toolbar-layout/drawer-toolbar-layout.types.d.ts.map +1 -0
- package/lib/components/drawer/drawer-toolbar-layout/drawer-toolbar-layout.types.js +3 -0
- package/lib/components/drawer/drawer-toolbar-layout/drawer-toolbar-layout.types.js.map +1 -0
- package/lib/components/drawer/drawer-toolbar-layout/index.d.ts +3 -0
- package/lib/components/drawer/drawer-toolbar-layout/index.d.ts.map +1 -0
- package/lib/components/drawer/drawer-toolbar-layout/index.js +6 -0
- package/lib/components/drawer/drawer-toolbar-layout/index.js.map +1 -0
- package/lib/components/drawer/drawer-with-toolbar-wrapper/drawer-with-toolbar-wrapper.d.ts +11 -0
- package/lib/components/drawer/drawer-with-toolbar-wrapper/drawer-with-toolbar-wrapper.d.ts.map +1 -0
- package/lib/components/drawer/drawer-with-toolbar-wrapper/drawer-with-toolbar-wrapper.js +63 -0
- package/lib/components/drawer/drawer-with-toolbar-wrapper/drawer-with-toolbar-wrapper.js.map +1 -0
- package/lib/components/drawer/drawer-with-toolbar-wrapper/drawer-with-toolbar-wrapper.styles.d.ts +10 -0
- package/lib/components/drawer/drawer-with-toolbar-wrapper/drawer-with-toolbar-wrapper.styles.d.ts.map +1 -0
- package/lib/components/drawer/drawer-with-toolbar-wrapper/drawer-with-toolbar-wrapper.styles.js +137 -0
- package/lib/components/drawer/drawer-with-toolbar-wrapper/drawer-with-toolbar-wrapper.styles.js.map +1 -0
- package/lib/components/drawer/drawer-with-toolbar-wrapper/drawer-with-toolbar-wrapper.types.d.ts +11 -0
- package/lib/components/drawer/drawer-with-toolbar-wrapper/drawer-with-toolbar-wrapper.types.d.ts.map +1 -0
- package/lib/components/drawer/drawer-with-toolbar-wrapper/drawer-with-toolbar-wrapper.types.js +3 -0
- package/lib/components/drawer/drawer-with-toolbar-wrapper/drawer-with-toolbar-wrapper.types.js.map +1 -0
- package/lib/components/drawer/drawer-with-toolbar-wrapper/index.d.ts +2 -0
- package/lib/components/drawer/drawer-with-toolbar-wrapper/index.d.ts.map +1 -0
- package/lib/components/drawer/drawer-with-toolbar-wrapper/index.js +6 -0
- package/lib/components/drawer/drawer-with-toolbar-wrapper/index.js.map +1 -0
- package/lib/components/drawer/embedded-drawer-layout/embedded-drawer-layout.d.ts +12 -0
- package/lib/components/drawer/embedded-drawer-layout/embedded-drawer-layout.d.ts.map +1 -0
- package/lib/components/drawer/embedded-drawer-layout/embedded-drawer-layout.js +55 -0
- package/lib/components/drawer/embedded-drawer-layout/embedded-drawer-layout.js.map +1 -0
- package/lib/components/drawer/embedded-drawer-layout/embedded-drawer-layout.styles.d.ts +6 -0
- package/lib/components/drawer/embedded-drawer-layout/embedded-drawer-layout.styles.d.ts.map +1 -0
- package/lib/components/drawer/embedded-drawer-layout/embedded-drawer-layout.styles.js +54 -0
- package/lib/components/drawer/embedded-drawer-layout/embedded-drawer-layout.styles.js.map +1 -0
- package/lib/components/drawer/embedded-drawer-layout/embedded-drawer-layout.types.d.ts +8 -0
- package/lib/components/drawer/embedded-drawer-layout/embedded-drawer-layout.types.d.ts.map +1 -0
- package/lib/components/drawer/embedded-drawer-layout/embedded-drawer-layout.types.js +3 -0
- package/lib/components/drawer/embedded-drawer-layout/embedded-drawer-layout.types.js.map +1 -0
- package/lib/components/drawer/embedded-drawer-layout/index.d.ts +3 -0
- package/lib/components/drawer/embedded-drawer-layout/index.d.ts.map +1 -0
- package/lib/components/drawer/embedded-drawer-layout/index.js +6 -0
- package/lib/components/drawer/embedded-drawer-layout/index.js.map +1 -0
- package/lib/components/drawer/index.d.ts +6 -0
- package/lib/components/drawer/index.d.ts.map +1 -0
- package/lib/components/drawer/index.js +17 -0
- package/lib/components/drawer/index.js.map +1 -0
- package/lib/components/drawer/layout-component/index.d.ts +3 -0
- package/lib/components/drawer/layout-component/index.d.ts.map +1 -0
- package/lib/components/drawer/layout-component/index.js +6 -0
- package/lib/components/drawer/layout-component/index.js.map +1 -0
- package/lib/components/drawer/layout-component/layout-component.d.ts +18 -0
- package/lib/components/drawer/layout-component/layout-component.d.ts.map +1 -0
- package/lib/components/drawer/layout-component/layout-component.js +53 -0
- package/lib/components/drawer/layout-component/layout-component.js.map +1 -0
- package/lib/components/drawer/layout-component/layout-component.styles.d.ts +20 -0
- package/lib/components/drawer/layout-component/layout-component.styles.d.ts.map +1 -0
- package/lib/components/drawer/layout-component/layout-component.styles.js +3 -0
- package/lib/components/drawer/layout-component/layout-component.styles.js.map +1 -0
- package/lib/components/drawer/overlay-drawer-layout/index.d.ts +3 -0
- package/lib/components/drawer/overlay-drawer-layout/index.d.ts.map +1 -0
- package/lib/components/drawer/overlay-drawer-layout/index.js +6 -0
- package/lib/components/drawer/overlay-drawer-layout/index.js.map +1 -0
- package/lib/components/drawer/overlay-drawer-layout/overlay-drawer-layout.d.ts +11 -0
- package/lib/components/drawer/overlay-drawer-layout/overlay-drawer-layout.d.ts.map +1 -0
- package/lib/components/drawer/overlay-drawer-layout/overlay-drawer-layout.js +54 -0
- package/lib/components/drawer/overlay-drawer-layout/overlay-drawer-layout.js.map +1 -0
- package/lib/components/drawer/overlay-drawer-layout/overlay-drawer-layout.styles.d.ts +5 -0
- package/lib/components/drawer/overlay-drawer-layout/overlay-drawer-layout.styles.d.ts.map +1 -0
- package/lib/components/drawer/overlay-drawer-layout/overlay-drawer-layout.styles.js +27 -0
- package/lib/components/drawer/overlay-drawer-layout/overlay-drawer-layout.styles.js.map +1 -0
- package/lib/components/drawer/overlay-drawer-layout/overlay-drawer-layout.types.d.ts +3 -0
- package/lib/components/drawer/overlay-drawer-layout/overlay-drawer-layout.types.d.ts.map +1 -0
- package/lib/components/drawer/overlay-drawer-layout/overlay-drawer-layout.types.js +3 -0
- package/lib/components/drawer/overlay-drawer-layout/overlay-drawer-layout.types.js.map +1 -0
- package/lib/components/drawer/utils/get-lg-ids.d.ts +8 -0
- package/lib/components/drawer/utils/get-lg-ids.d.ts.map +1 -0
- package/lib/components/drawer/utils/get-lg-ids.js +11 -0
- package/lib/components/drawer/utils/get-lg-ids.js.map +1 -0
- package/lib/components/drawer/utils/index.d.ts +2 -0
- package/lib/components/drawer/utils/index.d.ts.map +1 -0
- package/lib/components/drawer/utils/index.js +7 -0
- package/lib/components/drawer/utils/index.js.map +1 -0
- package/lib/components/{file-input.d.ts → file-picker-dialog.d.ts} +13 -3
- package/lib/components/file-picker-dialog.d.ts.map +1 -0
- package/lib/components/{file-input.js → file-picker-dialog.js} +13 -3
- package/lib/components/file-picker-dialog.js.map +1 -0
- package/lib/components/file-selector.d.ts +11 -0
- package/lib/components/file-selector.d.ts.map +1 -0
- package/lib/components/file-selector.js +49 -0
- package/lib/components/file-selector.js.map +1 -0
- package/lib/components/leafygreen.d.ts +1 -0
- package/lib/components/leafygreen.d.ts.map +1 -1
- package/lib/components/leafygreen.js +9 -2
- package/lib/components/leafygreen.js.map +1 -1
- package/lib/components/toolbar/constants.d.ts +3 -0
- package/lib/components/toolbar/constants.d.ts.map +1 -0
- package/lib/components/toolbar/constants.js +6 -0
- package/lib/components/toolbar/constants.js.map +1 -0
- package/lib/components/toolbar/context/index.d.ts +3 -0
- package/lib/components/toolbar/context/index.d.ts.map +1 -0
- package/lib/components/toolbar/context/index.js +10 -0
- package/lib/components/toolbar/context/index.js.map +1 -0
- package/lib/components/toolbar/context/toolbar-context.d.ts +6 -0
- package/lib/components/toolbar/context/toolbar-context.d.ts.map +1 -0
- package/lib/components/toolbar/context/toolbar-context.js +65 -0
- package/lib/components/toolbar/context/toolbar-context.js.map +1 -0
- package/lib/components/toolbar/context/toolbar-context.types.d.ts +21 -0
- package/lib/components/toolbar/context/toolbar-context.types.d.ts.map +1 -0
- package/lib/components/toolbar/context/toolbar-context.types.js +3 -0
- package/lib/components/toolbar/context/toolbar-context.types.js.map +1 -0
- package/lib/components/toolbar/context/toolbar-descendants-context.d.ts +5 -0
- package/lib/components/toolbar/context/toolbar-descendants-context.d.ts.map +1 -0
- package/lib/components/toolbar/context/toolbar-descendants-context.js +10 -0
- package/lib/components/toolbar/context/toolbar-descendants-context.js.map +1 -0
- package/lib/components/toolbar/index.d.ts +5 -0
- package/lib/components/toolbar/index.d.ts.map +1 -0
- package/lib/components/toolbar/index.js +27 -0
- package/lib/components/toolbar/index.js.map +1 -0
- package/lib/components/toolbar/toolbar/index.d.ts +4 -0
- package/lib/components/toolbar/toolbar/index.d.ts.map +1 -0
- package/lib/components/toolbar/toolbar/index.js +8 -0
- package/lib/components/toolbar/toolbar/index.js.map +1 -0
- package/lib/components/toolbar/toolbar/toolbar.d.ts +4 -0
- package/lib/components/toolbar/toolbar/toolbar.d.ts.map +1 -0
- package/lib/components/toolbar/toolbar/toolbar.js +93 -0
- package/lib/components/toolbar/toolbar/toolbar.js.map +1 -0
- package/lib/components/toolbar/toolbar/toolbar.styles.d.ts +7 -0
- package/lib/components/toolbar/toolbar/toolbar.styles.d.ts.map +1 -0
- package/lib/components/toolbar/toolbar/toolbar.styles.js +26 -0
- package/lib/components/toolbar/toolbar/toolbar.styles.js.map +1 -0
- package/lib/components/toolbar/toolbar/toolbar.types.d.ts +6 -0
- package/lib/components/toolbar/toolbar/toolbar.types.d.ts.map +1 -0
- package/lib/components/toolbar/toolbar/toolbar.types.js +3 -0
- package/lib/components/toolbar/toolbar/toolbar.types.js.map +1 -0
- package/lib/components/toolbar/toolbar-icon-button/index.d.ts +3 -0
- package/lib/components/toolbar/toolbar-icon-button/index.d.ts.map +1 -0
- package/lib/components/toolbar/toolbar-icon-button/index.js +6 -0
- package/lib/components/toolbar/toolbar-icon-button/index.js.map +1 -0
- package/lib/components/toolbar/toolbar-icon-button/toolbar-icon-button.d.ts +4 -0
- package/lib/components/toolbar/toolbar-icon-button/toolbar-icon-button.d.ts.map +1 -0
- package/lib/components/toolbar/toolbar-icon-button/toolbar-icon-button.js +77 -0
- package/lib/components/toolbar/toolbar-icon-button/toolbar-icon-button.js.map +1 -0
- package/lib/components/toolbar/toolbar-icon-button/toolbar-icon-button.styles.d.ts +13 -0
- package/lib/components/toolbar/toolbar-icon-button/toolbar-icon-button.styles.d.ts.map +1 -0
- package/lib/components/toolbar/toolbar-icon-button/toolbar-icon-button.styles.js +38 -0
- package/lib/components/toolbar/toolbar-icon-button/toolbar-icon-button.styles.js.map +1 -0
- package/lib/components/toolbar/toolbar-icon-button/toolbar-icon-button.types.d.ts +19 -0
- package/lib/components/toolbar/toolbar-icon-button/toolbar-icon-button.types.d.ts.map +1 -0
- package/lib/components/toolbar/toolbar-icon-button/toolbar-icon-button.types.js +3 -0
- package/lib/components/toolbar/toolbar-icon-button/toolbar-icon-button.types.js.map +1 -0
- package/lib/components/toolbar/utils/get-lg-ids.d.ts +8 -0
- package/lib/components/toolbar/utils/get-lg-ids.d.ts.map +1 -0
- package/lib/components/toolbar/utils/get-lg-ids.js +14 -0
- package/lib/components/toolbar/utils/get-lg-ids.js.map +1 -0
- package/lib/components/toolbar/utils/index.d.ts +2 -0
- package/lib/components/toolbar/utils/index.d.ts.map +1 -0
- package/lib/components/toolbar/utils/index.js +7 -0
- package/lib/components/toolbar/utils/index.js.map +1 -0
- package/lib/index.d.ts +4 -3
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +9 -7
- package/lib/index.js.map +1 -1
- package/package.json +11 -9
- package/lib/components/file-input.d.ts.map +0 -1
- package/lib/components/file-input.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"document-edit-actions-footer.d.ts","sourceRoot":"","sources":["../../../src/components/document-list/document-edit-actions-footer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmD,MAAM,OAAO,CAAC;AACxE,OAAO,KAAK,cAAc,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"document-edit-actions-footer.d.ts","sourceRoot":"","sources":["../../../src/components/document-list/document-edit-actions-footer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmD,MAAM,OAAO,CAAC;AACxE,OAAO,KAAK,cAAc,MAAM,iBAAiB,CAAC;AA2RlD,QAAA,MAAM,iBAAiB,EAAE,KAAK,CAAC,iBAAiB,CAAC;IAC/C,GAAG,EAAE,cAAc,CAAC;IACpB,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,EAAE,OAAO,CAAC;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,QAAQ,CAAC,KAAK,EAAE,OAAO,GAAG,IAAI,CAAC;IAC/B,QAAQ,IAAI,IAAI,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;CACvB,CAmGA,CAAC;AAEF,eAAe,iBAAiB,CAAC"}
|
|
@@ -148,33 +148,38 @@ function useHadronDocumentStatus(doc, editing, deleting) {
|
|
|
148
148
|
const onRemoveError = (err, errorDetails) => {
|
|
149
149
|
updateStatus('DeleteError', err, errorDetails);
|
|
150
150
|
};
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
doc.on(hadron_document_1.
|
|
155
|
-
doc.on(hadron_document_1.
|
|
156
|
-
doc.on(hadron_document_1.
|
|
157
|
-
doc.on(
|
|
158
|
-
doc.on(
|
|
159
|
-
doc.on(
|
|
160
|
-
doc.on(
|
|
161
|
-
doc.on(
|
|
162
|
-
doc.on(
|
|
163
|
-
doc.on(
|
|
151
|
+
const onEditingFinished = () => {
|
|
152
|
+
updateStatus('Initial');
|
|
153
|
+
};
|
|
154
|
+
doc.on(hadron_document_1.ElementEvents.Added, onUpdate);
|
|
155
|
+
doc.on(hadron_document_1.ElementEvents.Edited, onUpdate);
|
|
156
|
+
doc.on(hadron_document_1.ElementEvents.Removed, onUpdate);
|
|
157
|
+
doc.on(hadron_document_1.ElementEvents.Reverted, onUpdate);
|
|
158
|
+
doc.on(hadron_document_1.ElementEvents.Invalid, onElementInvalid);
|
|
159
|
+
doc.on(hadron_document_1.ElementEvents.Valid, onElementValid);
|
|
160
|
+
doc.on(hadron_document_1.DocumentEvents.UpdateStarted, onUpdateStart);
|
|
161
|
+
doc.on(hadron_document_1.DocumentEvents.UpdateBlocked, onUpdateBlocked);
|
|
162
|
+
doc.on(hadron_document_1.DocumentEvents.UpdateSuccess, onUpdateSuccess);
|
|
163
|
+
doc.on(hadron_document_1.DocumentEvents.UpdateError, onUpdateError);
|
|
164
|
+
doc.on(hadron_document_1.DocumentEvents.RemoveStarted, onRemoveStart);
|
|
165
|
+
doc.on(hadron_document_1.DocumentEvents.RemoveSuccess, onRemoveSuccess);
|
|
166
|
+
doc.on(hadron_document_1.DocumentEvents.RemoveError, onRemoveError);
|
|
167
|
+
doc.on(hadron_document_1.DocumentEvents.EditingFinished, onEditingFinished);
|
|
164
168
|
return () => {
|
|
165
|
-
doc.
|
|
166
|
-
doc.off(hadron_document_1.
|
|
167
|
-
doc.off(hadron_document_1.
|
|
168
|
-
doc.off(hadron_document_1.
|
|
169
|
-
doc.off(hadron_document_1.
|
|
170
|
-
doc.off(hadron_document_1.
|
|
171
|
-
doc.off(
|
|
172
|
-
doc.off(
|
|
173
|
-
doc.off(
|
|
174
|
-
doc.off(
|
|
175
|
-
doc.off(
|
|
176
|
-
doc.off(
|
|
177
|
-
doc.off(
|
|
169
|
+
doc.off(hadron_document_1.ElementEvents.Added, onUpdate);
|
|
170
|
+
doc.off(hadron_document_1.ElementEvents.Edited, onUpdate);
|
|
171
|
+
doc.off(hadron_document_1.ElementEvents.Removed, onUpdate);
|
|
172
|
+
doc.off(hadron_document_1.ElementEvents.Reverted, onUpdate);
|
|
173
|
+
doc.off(hadron_document_1.ElementEvents.Invalid, onElementInvalid);
|
|
174
|
+
doc.off(hadron_document_1.ElementEvents.Valid, onElementValid);
|
|
175
|
+
doc.off(hadron_document_1.DocumentEvents.UpdateStarted, onUpdateStart);
|
|
176
|
+
doc.off(hadron_document_1.DocumentEvents.UpdateBlocked, onUpdateBlocked);
|
|
177
|
+
doc.off(hadron_document_1.DocumentEvents.UpdateSuccess, onUpdateSuccess);
|
|
178
|
+
doc.off(hadron_document_1.DocumentEvents.UpdateError, onUpdateError);
|
|
179
|
+
doc.off(hadron_document_1.DocumentEvents.RemoveStarted, onRemoveStart);
|
|
180
|
+
doc.off(hadron_document_1.DocumentEvents.RemoveSuccess, onRemoveSuccess);
|
|
181
|
+
doc.off(hadron_document_1.DocumentEvents.RemoveError, onRemoveError);
|
|
182
|
+
doc.off(hadron_document_1.DocumentEvents.EditingFinished, onEditingFinished);
|
|
178
183
|
};
|
|
179
184
|
}, [doc, updateStatus]);
|
|
180
185
|
(0, react_1.useEffect)(() => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"document-edit-actions-footer.js","sourceRoot":"","sources":["../../../src/components/document-list/document-edit-actions-footer.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+CAAwE;AAExE,
|
|
1
|
+
{"version":3,"file":"document-edit-actions-footer.js","sourceRoot":"","sources":["../../../src/components/document-list/document-edit-actions-footer.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+CAAwE;AAExE,qDAAgE;AAEhE,8CAAuC;AACvC,oDAA6C;AAC7C,oDAAiD;AACjD,kDAAgD;AAChD,qDAAoD;AACpD,qEAAiE;AAgBjE,SAAS,UAAU,CAAC,MAAc;IAChC,OAAO,CAAC,UAAU,EAAE,aAAa,EAAE,eAAe,EAAE,aAAa,CAAC,CAAC,QAAQ,CACzE,MAAM,CACP,CAAC;AACJ,CAAC;AAED,SAAS,SAAS,CAAC,MAAc;IAC/B,OAAO,CAAC,eAAe,EAAE,eAAe,CAAC,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;AAC7D,CAAC;AAED,SAAS,uBAAuB,CAAC,MAAc;IAC7C,OAAO;QACL,SAAS;QACT,gBAAgB;QAChB,aAAa;QACb,eAAe;QACf,aAAa;QACb,eAAe;KAChB,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;AACrB,CAAC;AAED,SAAS,gBAAgB,CAAC,MAAc;IACtC,OAAO;QACL,aAAa;QACb,eAAe;QACf,aAAa;QACb,eAAe;KAChB,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;AACrB,CAAC;AAED,MAAM,cAAc,GAA2B;IAC7C,CAAC,SAAS,CAAC,EAAE,EAAE;IACf,CAAC,SAAS,CAAC,EAAE,EAAE;IACf,CAAC,UAAU,CAAC,EAAE,gCAAgC;IAC9C,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
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PANEL_WIDTH = exports.GRID_AREA = exports.TOOLBAR_WIDTH = void 0;
|
|
4
|
+
var toolbar_1 = require("../toolbar");
|
|
5
|
+
Object.defineProperty(exports, "TOOLBAR_WIDTH", { enumerable: true, get: function () { return toolbar_1.TOOLBAR_WIDTH; } });
|
|
6
|
+
exports.GRID_AREA = {
|
|
7
|
+
drawer: 'drawer',
|
|
8
|
+
content: 'content',
|
|
9
|
+
toolbar: 'toolbar',
|
|
10
|
+
innerDrawer: 'inner-drawer',
|
|
11
|
+
};
|
|
12
|
+
exports.PANEL_WIDTH = 432;
|
|
13
|
+
//# sourceMappingURL=constants.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../src/components/drawer/constants.ts"],"names":[],"mappings":";;;AAAA,sCAA2C;AAAlC,wGAAA,aAAa,OAAA;AAET,QAAA,SAAS,GAAG;IACvB,MAAM,EAAE,QAAQ;IAChB,OAAO,EAAE,SAAS;IAClB,OAAO,EAAE,SAAS;IAClB,WAAW,EAAE,cAAc;CAC5B,CAAC;AAEW,QAAA,WAAW,GAAG,GAAG,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"drawer.constants.d.ts","sourceRoot":"","sources":["../../../../src/components/drawer/drawer/drawer.constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,aAAa,KAAK,CAAC;AAChC,eAAO,MAAM,iBAAiB,MAAM,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"drawer.constants.js","sourceRoot":"","sources":["../../../../src/components/drawer/drawer/drawer.constants.ts"],"names":[],"mappings":";;;AAAa,QAAA,aAAa,GAAG,EAAE,CAAC;AACnB,QAAA,iBAAiB,GAAG,GAAG,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"drawer.d.ts","sourceRoot":"","sources":["../../../../src/components/drawer/drawer/drawer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkD,MAAM,OAAO,CAAC;AA4BvE,OAAO,EAAe,KAAK,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAG/D,eAAO,MAAM,MAAM,iGAuJlB,CAAC"}
|
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
36
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
37
|
+
};
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.Drawer = void 0;
|
|
40
|
+
const react_1 = __importStar(require("react"));
|
|
41
|
+
const react_intersection_observer_1 = require("react-intersection-observer");
|
|
42
|
+
const hooks_1 = require("@leafygreen-ui/hooks");
|
|
43
|
+
const icon_button_1 = __importDefault(require("@leafygreen-ui/icon-button"));
|
|
44
|
+
const leafygreen_provider_1 = __importStar(require("@leafygreen-ui/leafygreen-provider"));
|
|
45
|
+
const polymorphic_1 = require("@leafygreen-ui/polymorphic");
|
|
46
|
+
const tokens_1 = require("@leafygreen-ui/tokens");
|
|
47
|
+
const typography_1 = require("@leafygreen-ui/typography");
|
|
48
|
+
const drawer_stack_context_1 = require("../drawer-stack-context");
|
|
49
|
+
const utils_1 = require("../utils");
|
|
50
|
+
const drawer_styles_1 = require("./drawer.styles");
|
|
51
|
+
const drawer_types_1 = require("./drawer.types");
|
|
52
|
+
const leafygreen_1 = require("../../leafygreen");
|
|
53
|
+
exports.Drawer = (0, react_1.forwardRef)(({ children, className, 'data-lgid': dataLgId, displayMode = drawer_types_1.DisplayMode.Overlay, id: idProp, onClose, open = false, title, ...rest }, fwdRef) => {
|
|
54
|
+
const { darkMode, theme } = (0, leafygreen_provider_1.useDarkMode)();
|
|
55
|
+
const { Component } = (0, polymorphic_1.usePolymorphic)(displayMode === drawer_types_1.DisplayMode.Overlay ? 'dialog' : 'div');
|
|
56
|
+
const { getDrawerIndex, registerDrawer, unregisterDrawer } = (0, drawer_stack_context_1.useDrawerStackContext)();
|
|
57
|
+
const [shouldAnimate, setShouldAnimate] = (0, react_1.useState)(false);
|
|
58
|
+
const ref = (0, react_1.useRef)(null);
|
|
59
|
+
const drawerRef = (0, hooks_1.useMergeRefs)([fwdRef, ref]);
|
|
60
|
+
const lgIds = (0, utils_1.getLgIds)(dataLgId);
|
|
61
|
+
const id = (0, hooks_1.useIdAllocator)({ prefix: 'drawer', id: idProp });
|
|
62
|
+
const titleId = (0, hooks_1.useIdAllocator)({ prefix: 'drawer' });
|
|
63
|
+
// Track when intercept <span> element is no longer visible to add shadow below drawer header
|
|
64
|
+
const { ref: interceptRef, inView: isInterceptInView } = (0, react_intersection_observer_1.useInView)({
|
|
65
|
+
initialInView: true,
|
|
66
|
+
fallbackInView: true,
|
|
67
|
+
});
|
|
68
|
+
const showCloseButton = !!onClose;
|
|
69
|
+
// This will use the default value of 0 if not wrapped in a DrawerStackProvider. If using a Drawer + Toolbar, the DrawerStackProvider will not be necessary.
|
|
70
|
+
const drawerIndex = getDrawerIndex(id);
|
|
71
|
+
(0, hooks_1.useIsomorphicLayoutEffect)(() => {
|
|
72
|
+
const drawerElement = ref.current;
|
|
73
|
+
if (!drawerElement || drawerElement instanceof HTMLDivElement) {
|
|
74
|
+
return;
|
|
75
|
+
}
|
|
76
|
+
if (open) {
|
|
77
|
+
drawerElement.show();
|
|
78
|
+
setShouldAnimate(true);
|
|
79
|
+
}
|
|
80
|
+
else {
|
|
81
|
+
drawerElement.close();
|
|
82
|
+
}
|
|
83
|
+
}, [ref, open]);
|
|
84
|
+
(0, react_1.useEffect)(() => {
|
|
85
|
+
if (open) {
|
|
86
|
+
registerDrawer(id);
|
|
87
|
+
}
|
|
88
|
+
else {
|
|
89
|
+
setTimeout(() => unregisterDrawer(id), drawer_styles_1.drawerTransitionDuration);
|
|
90
|
+
}
|
|
91
|
+
}, [id, open, registerDrawer, unregisterDrawer]);
|
|
92
|
+
/**
|
|
93
|
+
* Focuses the first focusable element in the drawer when the animation ends. We have to manually handle this because we are hiding the drawer with visibility: hidden, which breaks the default focus behavior of dialog element.
|
|
94
|
+
*
|
|
95
|
+
*/
|
|
96
|
+
const handleAnimationEnd = () => {
|
|
97
|
+
const drawerElement = ref.current;
|
|
98
|
+
// Check if the drawerElement is null or is a div, which means it is not a dialog element.
|
|
99
|
+
if (!drawerElement || drawerElement instanceof HTMLDivElement) {
|
|
100
|
+
return;
|
|
101
|
+
}
|
|
102
|
+
if (open) {
|
|
103
|
+
const firstFocusable = drawerElement.querySelector('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])');
|
|
104
|
+
firstFocusable?.focus();
|
|
105
|
+
}
|
|
106
|
+
};
|
|
107
|
+
return (react_1.default.createElement(leafygreen_provider_1.default, { darkMode: darkMode },
|
|
108
|
+
react_1.default.createElement(Component, { "aria-hidden": !open, "aria-labelledby": titleId, className: (0, drawer_styles_1.getDrawerStyles)({
|
|
109
|
+
theme,
|
|
110
|
+
open,
|
|
111
|
+
shouldAnimate,
|
|
112
|
+
className,
|
|
113
|
+
displayMode,
|
|
114
|
+
zIndex: 1000 + drawerIndex,
|
|
115
|
+
}), "data-lgid": lgIds.root, "data-testid": lgIds.root, id: id, ref: drawerRef, onAnimationEnd: handleAnimationEnd, inert: !open ? 'inert' : undefined, ...rest },
|
|
116
|
+
react_1.default.createElement("div", { className: (0, drawer_styles_1.getDrawerShadowStyles)({ theme, displayMode }) },
|
|
117
|
+
react_1.default.createElement("div", { className: (0, drawer_styles_1.getInnerContainerStyles)({
|
|
118
|
+
theme,
|
|
119
|
+
open,
|
|
120
|
+
}) },
|
|
121
|
+
react_1.default.createElement("div", { className: (0, drawer_styles_1.getHeaderStyles)({
|
|
122
|
+
theme,
|
|
123
|
+
}) },
|
|
124
|
+
react_1.default.createElement(typography_1.Body, { as: typeof title === 'string' ? 'h2' : 'div', baseFontSize: tokens_1.BaseFontSize.Body2, id: titleId },
|
|
125
|
+
react_1.default.createElement("strong", null, title)),
|
|
126
|
+
showCloseButton && (react_1.default.createElement(icon_button_1.default, { "aria-label": "Close drawer", "data-lgid": lgIds.closeButton, "data-testid": lgIds.closeButton, onClick: onClose },
|
|
127
|
+
react_1.default.createElement(leafygreen_1.Icon, { glyph: "X", size: "small" })))),
|
|
128
|
+
react_1.default.createElement("div", { className: (0, drawer_styles_1.getChildrenContainerStyles)({
|
|
129
|
+
hasShadowTop: !isInterceptInView,
|
|
130
|
+
theme,
|
|
131
|
+
}) },
|
|
132
|
+
react_1.default.createElement("div", { className: drawer_styles_1.innerChildrenContainerStyles },
|
|
133
|
+
react_1.default.createElement("span", { ref: interceptRef }),
|
|
134
|
+
children)))))));
|
|
135
|
+
});
|
|
136
|
+
exports.Drawer.displayName = 'Drawer';
|
|
137
|
+
//# sourceMappingURL=drawer.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"drawer.js","sourceRoot":"","sources":["../../../../src/components/drawer/drawer/drawer.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+CAAuE;AACvE,6EAAwD;AAExD,gDAI8B;AAC9B,6EAAoD;AACpD,0FAE4C;AAC5C,4DAA4D;AAC5D,kDAAqD;AACrD,0DAAiD;AAEjD,kEAAgE;AAChE,oCAAoC;AAEpC,mDAQyB;AACzB,iDAA+D;AAC/D,iDAAwC;AAE3B,QAAA,MAAM,GAAG,IAAA,kBAAU,EAC9B,CACE,EACE,QAAQ,EACR,SAAS,EACT,WAAW,EAAE,QAAQ,EACrB,WAAW,GAAG,0BAAW,CAAC,OAAO,EACjC,EAAE,EAAE,MAAM,EACV,OAAO,EACP,IAAI,GAAG,KAAK,EACZ,KAAK,EACL,GAAG,IAAI,EACR,EACD,MAAM,EACN,EAAE;IACF,MAAM,EAAE,QAAQ,EAAE,KAAK,EAAE,GAAG,IAAA,iCAAW,GAAE,CAAC;IAC1C,MAAM,EAAE,SAAS,EAAE,GAAG,IAAA,4BAAc,EAClC,WAAW,KAAK,0BAAW,CAAC,OAAO,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,KAAK,CACvD,CAAC;IACF,MAAM,EAAE,cAAc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KAAK,EAAE,WAAW,EAAE,CAAC;gBAC3D,uCACE,SAAS,EAAE,IAAA,uCAAuB,EAAC;wBACjC,KAAK;wBACL,IAAI;qBACL,CAAC;oBAEF,uCACE,SAAS,EAAE,IAAA,+BAAe,EAAC;4BACzB,KAAK;yBACN,CAAC;wBAEF,8BAAC,iBAAI,IACH,EAAE,EAAE,OAAO,KAAK,KAAK,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,EAC5C,YAAY,EAAE,qBAAY,CAAC,KAAK,EAChC,EAAE,EAAE,OAAO;4BAEX,8CAAS,KAAK,CAAU,CACnB;wBACN,eAAe,IAAI,CAClB,8BAAC,qBAAU,kBACE,cAAc,eACd,KAAK,CAAC,WAAW,iBACf,KAAK,CAAC,WAAW,EAC9B,OAAO,EAAE,OAAO;4BAEhB,8BAAC,iBAAI,IAAC,KAAK,EAAC,GAAG,EAAC,IAAI,EAAC,OAAO,GAAG,CACpB,CACd,CACG;oBACN,uCACE,SAAS,EAAE,IAAA,0CAA0B,EAAC;4BACpC,YAAY,EAAE,CAAC,iBAAiB;4BAChC,KAAK;yBACN,CAAC;wBAEF,uCAAK,SAAS,EAAE,4CAA4B;4BAEzC,wCAAM,GAAG,EAAE,YAAY,GAAI;4BAC3B,QAAQ,CACL,CACF,CACF,CACF,CACI,CACO,CACtB,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,cAAM,CAAC,WAAW,GAAG,QAAQ,CAAC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { type Theme } from '@leafygreen-ui/lib';
|
|
2
|
+
import { DisplayMode } from './drawer.types';
|
|
3
|
+
export declare const drawerTransitionDuration: 300;
|
|
4
|
+
export declare const drawerClassName: string;
|
|
5
|
+
export declare const getDrawerStyles: ({ className, displayMode, open, shouldAnimate, theme, zIndex, }: {
|
|
6
|
+
className?: string;
|
|
7
|
+
displayMode: DisplayMode;
|
|
8
|
+
open: boolean;
|
|
9
|
+
shouldAnimate: boolean;
|
|
10
|
+
theme: Theme;
|
|
11
|
+
zIndex: number;
|
|
12
|
+
}) => string;
|
|
13
|
+
export declare const getDrawerShadowStyles: ({ theme, displayMode, }: {
|
|
14
|
+
theme: Theme;
|
|
15
|
+
displayMode: DisplayMode;
|
|
16
|
+
}) => string;
|
|
17
|
+
export declare const getInnerContainerStyles: ({ theme, open, }: {
|
|
18
|
+
theme: Theme;
|
|
19
|
+
open: boolean;
|
|
20
|
+
}) => string;
|
|
21
|
+
export declare const getHeaderStyles: ({ theme }: {
|
|
22
|
+
theme: Theme;
|
|
23
|
+
}) => string;
|
|
24
|
+
export declare const getChildrenContainerStyles: ({ hasShadowTop, theme, }: {
|
|
25
|
+
hasShadowTop: boolean;
|
|
26
|
+
theme: Theme;
|
|
27
|
+
}) => string;
|
|
28
|
+
export declare const innerChildrenContainerStyles: string;
|
|
29
|
+
//# sourceMappingURL=drawer.styles.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"drawer.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/drawer/drawer/drawer.styles.ts"],"names":[],"mappings":"AACA,OAAO,EAAyB,KAAK,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAYvE,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,eAAO,MAAM,wBAAwB,KAA4B,CAAC;AAElE,eAAO,MAAM,eAAe,QAAqC,CAAC;AAkIlE,eAAO,MAAM,eAAe,GAAI,iEAO7B;IACD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,WAAW,CAAC;IACzB,IAAI,EAAE,OAAO,CAAC;IACd,aAAa,EAAE,OAAO,CAAC;IACvB,KAAK,EAAE,KAAK,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;CAChB,WAME,CAAC;AAEJ,eAAO,MAAM,qBAAqB,GAAI,yBAGnC;IACD,KAAK,EAAE,KAAK,CAAC;IACb,WAAW,EAAE,WAAW,CAAC;CAC1B,WAeE,CAAC;AAqBJ,eAAO,MAAM,uBAAuB,GAAI,kBAGrC;IACD,KAAK,EAAE,KAAK,CAAC;IACb,IAAI,EAAE,OAAO,CAAC;CACf,WAGG,CAAC;AAEL,eAAO,MAAM,eAAe,GAAI,WAAW;IAAE,KAAK,EAAE,KAAK,CAAA;CAAE,WAU1D,CAAC;AAOF,eAAO,MAAM,0BAA0B,GAAI,0BAGxC;IACD,YAAY,EAAE,OAAO,CAAC;IACtB,KAAK,EAAE,KAAK,CAAC;CACd,WAIG,CAAC;AAYL,eAAO,MAAM,4BAA4B,QAGxC,CAAC"}
|
|
@@ -0,0 +1,174 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.innerChildrenContainerStyles = exports.getChildrenContainerStyles = exports.getHeaderStyles = exports.getInnerContainerStyles = exports.getDrawerShadowStyles = exports.getDrawerStyles = exports.drawerClassName = exports.drawerTransitionDuration = void 0;
|
|
4
|
+
const emotion_1 = require("@leafygreen-ui/emotion");
|
|
5
|
+
const lib_1 = require("@leafygreen-ui/lib");
|
|
6
|
+
const tokens_1 = require("@leafygreen-ui/tokens");
|
|
7
|
+
const constants_1 = require("../constants");
|
|
8
|
+
const drawer_constants_1 = require("./drawer.constants");
|
|
9
|
+
const drawer_types_1 = require("./drawer.types");
|
|
10
|
+
exports.drawerTransitionDuration = tokens_1.transitionDuration.slower;
|
|
11
|
+
exports.drawerClassName = (0, lib_1.createUniqueClassName)('lg-drawer');
|
|
12
|
+
// Because of .show() and .close() in the drawer component, transitioning from 0px to (x)px does not transition correctly. Having the drawer start at the open position while hidden, moving to the closed position, and then animating to the open position is a workaround to get the animation to work.
|
|
13
|
+
// These styles are used for a standalone drawer in overlay mode since it is not part of a grid layout.
|
|
14
|
+
const drawerIn = (0, emotion_1.keyframes) `
|
|
15
|
+
0% {
|
|
16
|
+
transform: translate3d(0%, 0, 0);
|
|
17
|
+
opacity: 0;
|
|
18
|
+
visibility: hidden;
|
|
19
|
+
}
|
|
20
|
+
1% {
|
|
21
|
+
transform: translate3d(100%, 0, 0);
|
|
22
|
+
opacity: 1;
|
|
23
|
+
visibility: visible;
|
|
24
|
+
}
|
|
25
|
+
100% {
|
|
26
|
+
transform: translate3d(0%, 0, 0);
|
|
27
|
+
}
|
|
28
|
+
`;
|
|
29
|
+
// Keep the drawer opacity at 1 until the end of the animation. The inner container opacity is transitioned separately.
|
|
30
|
+
const drawerOut = (0, emotion_1.keyframes) `
|
|
31
|
+
0% {
|
|
32
|
+
transform: translate3d(0%, 0, 0);
|
|
33
|
+
}
|
|
34
|
+
99% {
|
|
35
|
+
transform: translate3d(100%, 0, 0);
|
|
36
|
+
opacity: 1;
|
|
37
|
+
}
|
|
38
|
+
100% {
|
|
39
|
+
opacity: 0;
|
|
40
|
+
visibility: hidden;
|
|
41
|
+
}
|
|
42
|
+
`;
|
|
43
|
+
const getBaseStyles = ({ theme }) => (0, emotion_1.css) `
|
|
44
|
+
all: unset;
|
|
45
|
+
background-color: ${tokens_1.color[theme].background.primary.default};
|
|
46
|
+
border: 1px solid ${tokens_1.color[theme].border.secondary.default};
|
|
47
|
+
width: 100%;
|
|
48
|
+
max-width: ${constants_1.PANEL_WIDTH}px;
|
|
49
|
+
height: 100%;
|
|
50
|
+
overflow: hidden;
|
|
51
|
+
box-sizing: border-box;
|
|
52
|
+
|
|
53
|
+
@media only screen and (max-width: ${drawer_constants_1.MOBILE_BREAKPOINT}px) {
|
|
54
|
+
max-width: 100%;
|
|
55
|
+
height: 50vh;
|
|
56
|
+
}
|
|
57
|
+
`;
|
|
58
|
+
const overlayOpenStyles = (0, emotion_1.css) `
|
|
59
|
+
opacity: 1;
|
|
60
|
+
animation-name: ${drawerIn};
|
|
61
|
+
|
|
62
|
+
// On mobile, the drawer should be positioned at the bottom of the screen when closed, and slide up to the top when opened.
|
|
63
|
+
@media only screen and (max-width: ${drawer_constants_1.MOBILE_BREAKPOINT}px) {
|
|
64
|
+
transform: none;
|
|
65
|
+
}
|
|
66
|
+
`;
|
|
67
|
+
const overlayClosedStyles = (0, emotion_1.css) `
|
|
68
|
+
pointer-events: none;
|
|
69
|
+
animation-name: ${drawerOut};
|
|
70
|
+
|
|
71
|
+
// On mobile, the drawer should be positioned at the bottom of the screen when closed, and slide up to the top when opened.
|
|
72
|
+
@media only screen and (max-width: ${drawer_constants_1.MOBILE_BREAKPOINT}px) {
|
|
73
|
+
transform: translate3d(0, 100%, 0);
|
|
74
|
+
opacity: 0;
|
|
75
|
+
}
|
|
76
|
+
`;
|
|
77
|
+
const getOverlayStyles = ({ open, shouldAnimate, zIndex, }) => (0, emotion_1.cx)((0, emotion_1.css) `
|
|
78
|
+
position: absolute;
|
|
79
|
+
z-index: ${zIndex};
|
|
80
|
+
top: 0;
|
|
81
|
+
bottom: 0;
|
|
82
|
+
right: 0;
|
|
83
|
+
overflow: visible;
|
|
84
|
+
|
|
85
|
+
// By default, the drawer is positioned off-screen to the right.
|
|
86
|
+
transform: translate3d(100%, 0, 0);
|
|
87
|
+
animation-timing-function: ease-in-out;
|
|
88
|
+
animation-duration: ${exports.drawerTransitionDuration}ms;
|
|
89
|
+
animation-fill-mode: forwards;
|
|
90
|
+
|
|
91
|
+
@media only screen and (max-width: ${drawer_constants_1.MOBILE_BREAKPOINT}px) {
|
|
92
|
+
top: unset;
|
|
93
|
+
left: 0;
|
|
94
|
+
// Since the drawer has position: fixed, we can use normal transitions
|
|
95
|
+
animation: none;
|
|
96
|
+
position: fixed;
|
|
97
|
+
transform: translate3d(0, 100%, 0);
|
|
98
|
+
transition: transform ${exports.drawerTransitionDuration}ms ease-in-out,
|
|
99
|
+
opacity ${exports.drawerTransitionDuration}ms ease-in-out
|
|
100
|
+
${open ? '0ms' : `${exports.drawerTransitionDuration}ms`};
|
|
101
|
+
}
|
|
102
|
+
`, {
|
|
103
|
+
[overlayOpenStyles]: open,
|
|
104
|
+
[overlayClosedStyles]: !open && shouldAnimate, // This ensures that the drawer does not animate closed on initial render
|
|
105
|
+
});
|
|
106
|
+
const getDisplayModeStyles = ({ displayMode, open, shouldAnimate, zIndex, }) => (0, emotion_1.cx)({
|
|
107
|
+
[getOverlayStyles({ open, shouldAnimate, zIndex })]: displayMode === drawer_types_1.DisplayMode.Overlay,
|
|
108
|
+
});
|
|
109
|
+
const getDrawerStyles = ({ className, displayMode, open, shouldAnimate, theme, zIndex, }) => (0, emotion_1.cx)(getBaseStyles({ theme }), getDisplayModeStyles({ displayMode, open, shouldAnimate, zIndex }), className, exports.drawerClassName);
|
|
110
|
+
exports.getDrawerStyles = getDrawerStyles;
|
|
111
|
+
const getDrawerShadowStyles = ({ theme, displayMode, }) => (0, emotion_1.cx)((0, emotion_1.css) `
|
|
112
|
+
height: 100%;
|
|
113
|
+
background-color: ${tokens_1.color[theme].background.primary.default};
|
|
114
|
+
`, {
|
|
115
|
+
[(0, emotion_1.css) `
|
|
116
|
+
${(0, tokens_1.addOverflowShadow)({ isInside: false, side: tokens_1.Side.Left, theme })};
|
|
117
|
+
|
|
118
|
+
@media only screen and (max-width: ${drawer_constants_1.MOBILE_BREAKPOINT}px) {
|
|
119
|
+
${(0, tokens_1.addOverflowShadow)({ isInside: false, side: tokens_1.Side.Top, theme })};
|
|
120
|
+
}
|
|
121
|
+
`]: displayMode === drawer_types_1.DisplayMode.Overlay,
|
|
122
|
+
});
|
|
123
|
+
exports.getDrawerShadowStyles = getDrawerShadowStyles;
|
|
124
|
+
const getBaseInnerContainerStyles = ({ theme }) => (0, emotion_1.css) `
|
|
125
|
+
width: 100%;
|
|
126
|
+
height: 100%;
|
|
127
|
+
display: flex;
|
|
128
|
+
flex-direction: column;
|
|
129
|
+
background-color: ${tokens_1.color[theme].background.primary.default};
|
|
130
|
+
opacity: 0;
|
|
131
|
+
transition-property: opacity;
|
|
132
|
+
transition-duration: ${tokens_1.transitionDuration.faster}ms;
|
|
133
|
+
transition-timing-function: linear;
|
|
134
|
+
`;
|
|
135
|
+
const getInnerOpenContainerStyles = (0, emotion_1.css) `
|
|
136
|
+
transition-property: opacity;
|
|
137
|
+
transition-duration: ${tokens_1.transitionDuration.slowest}ms;
|
|
138
|
+
transition-timing-function: linear;
|
|
139
|
+
opacity: 1;
|
|
140
|
+
`;
|
|
141
|
+
const getInnerContainerStyles = ({ theme, open, }) => (0, emotion_1.cx)(getBaseInnerContainerStyles({ theme }), {
|
|
142
|
+
[getInnerOpenContainerStyles]: open,
|
|
143
|
+
});
|
|
144
|
+
exports.getInnerContainerStyles = getInnerContainerStyles;
|
|
145
|
+
const getHeaderStyles = ({ theme }) => (0, emotion_1.css) `
|
|
146
|
+
height: ${drawer_constants_1.HEADER_HEIGHT}px;
|
|
147
|
+
padding: ${tokens_1.spacing[400]}px;
|
|
148
|
+
display: flex;
|
|
149
|
+
justify-content: space-between;
|
|
150
|
+
align-items: center;
|
|
151
|
+
border-bottom: 1px solid ${tokens_1.color[theme].border.secondary.default};
|
|
152
|
+
transition-property: box-shadow;
|
|
153
|
+
transition-duration: ${tokens_1.transitionDuration.faster}ms;
|
|
154
|
+
transition-timing-function: ease-in-out;
|
|
155
|
+
`;
|
|
156
|
+
exports.getHeaderStyles = getHeaderStyles;
|
|
157
|
+
const baseChildrenContainerStyles = (0, emotion_1.css) `
|
|
158
|
+
height: 100%;
|
|
159
|
+
overflow: hidden;
|
|
160
|
+
`;
|
|
161
|
+
const getChildrenContainerStyles = ({ hasShadowTop, theme, }) => (0, emotion_1.cx)(baseChildrenContainerStyles, {
|
|
162
|
+
[(0, tokens_1.addOverflowShadow)({ isInside: true, side: tokens_1.Side.Top, theme })]: hasShadowTop,
|
|
163
|
+
});
|
|
164
|
+
exports.getChildrenContainerStyles = getChildrenContainerStyles;
|
|
165
|
+
const baseInnerChildrenContainerStyles = (0, emotion_1.css) `
|
|
166
|
+
height: 100%;
|
|
167
|
+
`;
|
|
168
|
+
const scrollContainerStyles = (0, emotion_1.css) `
|
|
169
|
+
padding: ${tokens_1.spacing[400]}px;
|
|
170
|
+
overflow-y: auto;
|
|
171
|
+
overscroll-behavior: contain;
|
|
172
|
+
`;
|
|
173
|
+
exports.innerChildrenContainerStyles = (0, emotion_1.cx)(baseInnerChildrenContainerStyles, scrollContainerStyles);
|
|
174
|
+
//# sourceMappingURL=drawer.styles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"drawer.styles.js","sourceRoot":"","sources":["../../../../src/components/drawer/drawer/drawer.styles.ts"],"names":[],"mappings":";;;AAAA,oDAA4D;AAC5D,4CAAuE;AACvE,kDAM+B;AAE/B,4CAA2C;AAE3C,yDAAsE;AACtE,iDAA6C;AAEhC,QAAA,wBAAwB,GAAG,2BAAkB,CAAC,MAAM,CAAC;AAErD,QAAA,eAAe,GAAG,IAAA,2BAAqB,EAAC,WAAW,CAAC,CAAC;AAElE,0SAA0S;AAC1S,uGAAuG;AACvG,MAAM,QAAQ,GAAG,IAAA,mBAAS,EAAA;;;;;;;;;;;;;;CAczB,CAAC;AAEF,uHAAuH;AACvH,MAAM,SAAS,GAAG,IAAA,mBAAS,EAAA;;;;;;;;;;;;CAY1B,CAAC;AAEF,MAAM,aAAa,GAAG,CAAC,EAAE,KAAK,EAAoB,EAAE,EAAE,CAAC,IAAA,aAAG,EAAA;;sBAEpC,cAAK,CAAC,KAAK,CAAC,CAAC,UAAU,CAAC,OAAO,CAAC,OAAO;sBACvC,cAAK,CAAC,KAAK,CAAC,CAAC,MAAM,CAAC,SAAS,CAAC,OAAO;;eAE5C,uBAAW;;;;;uCAKa,oCAAiB;;;;CAIvD,CAAC;AAEF,MAAM,iBAAiB,GAAG,IAAA,aAAG,EAAA;;oBAET,QAAQ;;;uCAGW,oCAAiB;;;CAGvD,CAAC;AAEF,MAAM,mBAAmB,GAAG,IAAA,aAAG,EAAA;;oBAEX,SAAS;;;uCAGU,oCAAiB;;;;CAIvD,CAAC;AAEF,MAAM,gBAAgB,GAAG,CAAC,EACxB,IAAI,EACJ,aAAa,EACb,MAAM,GAKP,EAAE,EAAE,CACH,IAAA,Y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AAiB,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,aAAI,CAAC,GAAG,EAAE,KAAK,EAAE,CAAC,CAAC,EAC5D,YAAY;CACf,CAAC,CAAC;AAVQ,QAAA,0BAA0B,8BAUlC;AAEL,MAAM,gCAAgC,GAAG,IAAA,aAAG,EAAA;;CAE3C,CAAC;AAEF,MAAM,qBAAqB,GAAG,IAAA,aAAG,EAAA;aACpB,gBAAO,CAAC,GAAG,CAAC;;;CAGxB,CAAC;AAEW,QAAA,4BAA4B,GAAG,IAAA,YAAE,EAC5C,gCAAgC,EAChC,qBAAqB,CACtB,CAAC"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import type React from 'react';
|
|
2
|
+
import type { DarkModeProps, HTMLElementProps, LgIdProps } from '@leafygreen-ui/lib';
|
|
3
|
+
/**
|
|
4
|
+
* Options to control how the drawer element is displayed
|
|
5
|
+
* @param Embedded will display a drawer as a `<div>` element that takes up the full parent container height and on the same elevation as container page content. It is recommended to wrap an embedded drawer within the `DrawerLayout` container
|
|
6
|
+
* @param Overlay will display a drawer as a `<dialog>` element that takes up the full parent container height and elevated above container page content. It is recommended to wrap an overlay drawer within the `DrawerLayout` container
|
|
7
|
+
*/
|
|
8
|
+
export declare const DisplayMode: {
|
|
9
|
+
readonly Embedded: "embedded";
|
|
10
|
+
readonly Overlay: "overlay";
|
|
11
|
+
};
|
|
12
|
+
export type DisplayMode = typeof DisplayMode[keyof typeof DisplayMode];
|
|
13
|
+
export interface DrawerProps extends Omit<HTMLElementProps<'dialog' | 'div'>, 'title'>, DarkModeProps, LgIdProps {
|
|
14
|
+
/**
|
|
15
|
+
* Options to display the drawer element
|
|
16
|
+
* @defaultValue 'overlay'
|
|
17
|
+
* @param Embedded will display a drawer as a `<div>` element that takes up the full parent container height and on the same elevation as container page content. It is recommended to wrap an embedded drawer within the `DrawerLayout` container
|
|
18
|
+
* @param Overlay will display a drawer as a `<dialog>` element that takes up the full parent container height and elevated above container page content. It is recommended to wrap an overlay drawer within the `DrawerLayout` container
|
|
19
|
+
*/
|
|
20
|
+
displayMode?: DisplayMode;
|
|
21
|
+
/**
|
|
22
|
+
* Determines if the Drawer is open or closed
|
|
23
|
+
* @defaultValue false
|
|
24
|
+
*/
|
|
25
|
+
open?: boolean;
|
|
26
|
+
/**
|
|
27
|
+
* Event handler called on close button click. If provided, a close button will be rendered in the Drawer header.
|
|
28
|
+
*/
|
|
29
|
+
onClose?: React.MouseEventHandler<HTMLButtonElement>;
|
|
30
|
+
/**
|
|
31
|
+
* Title of the Drawer
|
|
32
|
+
*/
|
|
33
|
+
title: React.ReactNode;
|
|
34
|
+
}
|
|
35
|
+
//# sourceMappingURL=drawer.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"drawer.types.d.ts","sourceRoot":"","sources":["../../../../src/components/drawer/drawer/drawer.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EACV,aAAa,EACb,gBAAgB,EAChB,SAAS,EACV,MAAM,oBAAoB,CAAC;AAE5B;;;;GAIG;AACH,eAAO,MAAM,WAAW;;;CAGd,CAAC;AACX,MAAM,MAAM,WAAW,GAAG,OAAO,WAAW,CAAC,MAAM,OAAO,WAAW,CAAC,CAAC;AAEvE,MAAM,WAAW,WACf,SAAQ,IAAI,CAAC,gBAAgB,CAAC,QAAQ,GAAG,KAAK,CAAC,EAAE,OAAO,CAAC,EACvD,aAAa,EACb,SAAS;IACX;;;;;OAKG;IACH,WAAW,CAAC,EAAE,WAAW,CAAC;IAE1B;;;OAGG;IACH,IAAI,CAAC,EAAE,OAAO,CAAC;IAEf;;OAEG;IACH,OAAO,CAAC,EAAE,KAAK,CAAC,iBAAiB,CAAC,iBAAiB,CAAC,CAAC;IAErD;;OAEG;IACH,KAAK,EAAE,KAAK,CAAC,SAAS,CAAC;CACxB"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DisplayMode = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* Options to control how the drawer element is displayed
|
|
6
|
+
* @param Embedded will display a drawer as a `<div>` element that takes up the full parent container height and on the same elevation as container page content. It is recommended to wrap an embedded drawer within the `DrawerLayout` container
|
|
7
|
+
* @param Overlay will display a drawer as a `<dialog>` element that takes up the full parent container height and elevated above container page content. It is recommended to wrap an overlay drawer within the `DrawerLayout` container
|
|
8
|
+
*/
|
|
9
|
+
exports.DisplayMode = {
|
|
10
|
+
Embedded: 'embedded',
|
|
11
|
+
Overlay: 'overlay',
|
|
12
|
+
};
|
|
13
|
+
//# sourceMappingURL=drawer.types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"drawer.types.js","sourceRoot":"","sources":["../../../../src/components/drawer/drawer/drawer.types.ts"],"names":[],"mappings":";;;AAQA;;;;GAIG;AACU,QAAA,WAAW,GAAG;IACzB,QAAQ,EAAE,UAAU;IACpB,OAAO,EAAE,SAAS;CACV,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/drawer/drawer/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AACvD,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAClD,OAAO,EAAE,WAAW,EAAE,KAAK,WAAW,EAAE,MAAM,gBAAgB,CAAC"}
|