@mongodb-js/compass-components 1.2.0 → 1.3.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.
Files changed (172) hide show
  1. package/lib/components/accordion.d.ts.map +1 -1
  2. package/lib/components/accordion.js +4 -5
  3. package/lib/components/accordion.js.map +1 -1
  4. package/lib/components/bson-value.d.ts.map +1 -1
  5. package/lib/components/bson-value.js +7 -8
  6. package/lib/components/bson-value.js.map +1 -1
  7. package/lib/components/cancel-loader.js +1 -1
  8. package/lib/components/cancel-loader.js.map +1 -1
  9. package/lib/components/collapsible-field-set.d.ts +2 -4
  10. package/lib/components/collapsible-field-set.d.ts.map +1 -1
  11. package/lib/components/collapsible-field-set.js +13 -20
  12. package/lib/components/collapsible-field-set.js.map +1 -1
  13. package/lib/components/document-list/document-actions-group.js +1 -1
  14. package/lib/components/document-list/document-actions-group.js.map +1 -1
  15. package/lib/components/document-list/document-edit-actions-footer.d.ts.map +1 -1
  16. package/lib/components/document-list/document-edit-actions-footer.js +11 -9
  17. package/lib/components/document-list/document-edit-actions-footer.js.map +1 -1
  18. package/lib/components/document-list/document.js +4 -4
  19. package/lib/components/document-list/document.js.map +1 -1
  20. package/lib/components/document-list/element-actions.d.ts.map +1 -1
  21. package/lib/components/document-list/element-actions.js +6 -5
  22. package/lib/components/document-list/element-actions.js.map +1 -1
  23. package/lib/components/document-list/element-editors.d.ts.map +1 -1
  24. package/lib/components/document-list/element-editors.js +8 -7
  25. package/lib/components/document-list/element-editors.js.map +1 -1
  26. package/lib/components/document-list/element.d.ts.map +1 -1
  27. package/lib/components/document-list/element.js +13 -13
  28. package/lib/components/document-list/element.js.map +1 -1
  29. package/lib/components/document-list/typography.d.ts +6 -0
  30. package/lib/components/document-list/typography.d.ts.map +1 -0
  31. package/lib/components/document-list/typography.js +10 -0
  32. package/lib/components/document-list/typography.js.map +1 -0
  33. package/lib/components/empty-content.d.ts +12 -0
  34. package/lib/components/empty-content.d.ts.map +1 -0
  35. package/lib/components/empty-content.js +52 -0
  36. package/lib/components/empty-content.js.map +1 -0
  37. package/lib/components/error-warning-summary.d.ts +2 -0
  38. package/lib/components/error-warning-summary.d.ts.map +1 -1
  39. package/lib/components/error-warning-summary.js +6 -6
  40. package/lib/components/error-warning-summary.js.map +1 -1
  41. package/lib/components/file-input.d.ts.map +1 -1
  42. package/lib/components/file-input.js +8 -10
  43. package/lib/components/file-input.js.map +1 -1
  44. package/lib/components/form-field-container.d.ts +8 -0
  45. package/lib/components/form-field-container.d.ts.map +1 -0
  46. package/lib/components/form-field-container.js +16 -0
  47. package/lib/components/form-field-container.js.map +1 -0
  48. package/lib/components/icons/document-icon.d.ts +7 -0
  49. package/lib/components/icons/document-icon.d.ts.map +1 -0
  50. package/lib/components/icons/document-icon.js +52 -0
  51. package/lib/components/icons/document-icon.js.map +1 -0
  52. package/lib/components/icons/favorite-icon.d.ts.map +1 -1
  53. package/lib/components/icons/favorite-icon.js +2 -3
  54. package/lib/components/icons/favorite-icon.js.map +1 -1
  55. package/lib/components/icons/no-saved-items-icon.d.ts +8 -0
  56. package/lib/components/icons/no-saved-items-icon.d.ts.map +1 -0
  57. package/lib/components/icons/no-saved-items-icon.js +41 -0
  58. package/lib/components/icons/no-saved-items-icon.js.map +1 -0
  59. package/lib/components/interactive-popover.d.ts +3 -4
  60. package/lib/components/interactive-popover.d.ts.map +1 -1
  61. package/lib/components/interactive-popover.js +30 -16
  62. package/lib/components/interactive-popover.js.map +1 -1
  63. package/lib/components/keyline-card.d.ts +7 -0
  64. package/lib/components/keyline-card.d.ts.map +1 -0
  65. package/lib/components/keyline-card.js +28 -0
  66. package/lib/components/keyline-card.js.map +1 -0
  67. package/lib/components/leafygreen.d.ts +20 -20
  68. package/lib/components/leafygreen.d.ts.map +1 -1
  69. package/lib/components/leafygreen.js +18 -7
  70. package/lib/components/leafygreen.js.map +1 -1
  71. package/lib/components/list-editor.d.ts +14 -0
  72. package/lib/components/list-editor.d.ts.map +1 -0
  73. package/lib/components/list-editor.js +36 -0
  74. package/lib/components/list-editor.js.map +1 -0
  75. package/lib/components/{confirmation-modal.d.ts → modals/confirmation-modal.d.ts} +1 -1
  76. package/lib/components/modals/confirmation-modal.d.ts.map +1 -0
  77. package/lib/components/{confirmation-modal.js → modals/confirmation-modal.js} +1 -1
  78. package/lib/components/modals/confirmation-modal.js.map +1 -0
  79. package/lib/components/modals/form-modal.d.ts +22 -0
  80. package/lib/components/modals/form-modal.d.ts.map +1 -0
  81. package/lib/components/modals/form-modal.js +31 -0
  82. package/lib/components/modals/form-modal.js.map +1 -0
  83. package/lib/components/modals/info-modal.d.ts +12 -0
  84. package/lib/components/modals/info-modal.d.ts.map +1 -0
  85. package/lib/components/modals/info-modal.js +23 -0
  86. package/lib/components/modals/info-modal.js.map +1 -0
  87. package/lib/components/modals/modal-body.d.ts +16 -0
  88. package/lib/components/modals/modal-body.d.ts.map +1 -0
  89. package/lib/components/modals/modal-body.js +46 -0
  90. package/lib/components/modals/modal-body.js.map +1 -0
  91. package/lib/components/modals/modal-footer-button.d.ts +5 -0
  92. package/lib/components/modals/modal-footer-button.d.ts.map +1 -0
  93. package/lib/components/modals/modal-footer-button.js +37 -0
  94. package/lib/components/modals/modal-footer-button.js.map +1 -0
  95. package/lib/components/modals/modal-header.d.ts +15 -0
  96. package/lib/components/modals/modal-header.d.ts.map +1 -0
  97. package/lib/components/modals/modal-header.js +65 -0
  98. package/lib/components/modals/modal-header.js.map +1 -0
  99. package/lib/components/modals/modal.d.ts +7 -0
  100. package/lib/components/modals/modal.d.ts.map +1 -0
  101. package/lib/components/{modal.js → modals/modal.js} +9 -3
  102. package/lib/components/modals/modal.js.map +1 -0
  103. package/lib/components/placeholder.js +4 -4
  104. package/lib/components/placeholder.js.map +1 -1
  105. package/lib/components/resize-handle.d.ts.map +1 -1
  106. package/lib/components/resize-handle.js +2 -1
  107. package/lib/components/resize-handle.js.map +1 -1
  108. package/lib/components/resizeable-sidebar.d.ts.map +1 -1
  109. package/lib/components/resizeable-sidebar.js +21 -22
  110. package/lib/components/resizeable-sidebar.js.map +1 -1
  111. package/lib/components/spin-loader.js +1 -1
  112. package/lib/components/spin-loader.js.map +1 -1
  113. package/lib/components/tab-nav-bar.d.ts.map +1 -1
  114. package/lib/components/tab-nav-bar.js +11 -7
  115. package/lib/components/tab-nav-bar.js.map +1 -1
  116. package/lib/components/virtual-grid.d.ts +1 -1
  117. package/lib/components/workspace-container.d.ts +1 -0
  118. package/lib/components/workspace-container.d.ts.map +1 -1
  119. package/lib/components/workspace-container.js +88 -10
  120. package/lib/components/workspace-container.js.map +1 -1
  121. package/lib/components/workspace-tabs/tab.d.ts.map +1 -1
  122. package/lib/components/workspace-tabs/tab.js +26 -27
  123. package/lib/components/workspace-tabs/tab.js.map +1 -1
  124. package/lib/components/workspace-tabs/workspace-tabs.d.ts +2 -0
  125. package/lib/components/workspace-tabs/workspace-tabs.d.ts.map +1 -1
  126. package/lib/components/workspace-tabs/workspace-tabs.js +10 -8
  127. package/lib/components/workspace-tabs/workspace-tabs.js.map +1 -1
  128. package/lib/hooks/use-focus-ring.d.ts.map +1 -1
  129. package/lib/hooks/use-focus-ring.js +3 -2
  130. package/lib/hooks/use-focus-ring.js.map +1 -1
  131. package/lib/hooks/use-theme.d.ts +2 -1
  132. package/lib/hooks/use-theme.d.ts.map +1 -1
  133. package/lib/hooks/use-theme.js +9 -6
  134. package/lib/hooks/use-theme.js.map +1 -1
  135. package/lib/index.d.ts +15 -11
  136. package/lib/index.d.ts.map +1 -1
  137. package/lib/index.js +26 -19
  138. package/lib/index.js.map +1 -1
  139. package/package.json +37 -41
  140. package/lib/compass-font-sizes.d.ts +0 -3
  141. package/lib/compass-font-sizes.d.ts.map +0 -1
  142. package/lib/compass-font-sizes.js +0 -6
  143. package/lib/compass-font-sizes.js.map +0 -1
  144. package/lib/compass-ui-colors.d.ts +0 -7
  145. package/lib/compass-ui-colors.d.ts.map +0 -1
  146. package/lib/compass-ui-colors.js +0 -10
  147. package/lib/compass-ui-colors.js.map +0 -1
  148. package/lib/components/confirmation-modal.d.ts.map +0 -1
  149. package/lib/components/confirmation-modal.js.map +0 -1
  150. package/lib/components/editor.d.ts +0 -36
  151. package/lib/components/editor.d.ts.map +0 -1
  152. package/lib/components/editor.js +0 -107
  153. package/lib/components/editor.js.map +0 -1
  154. package/lib/components/modal-title.d.ts +0 -5
  155. package/lib/components/modal-title.d.ts.map +0 -1
  156. package/lib/components/modal-title.js +0 -18
  157. package/lib/components/modal-title.js.map +0 -1
  158. package/lib/components/modal.d.ts +0 -7
  159. package/lib/components/modal.d.ts.map +0 -1
  160. package/lib/components/modal.js.map +0 -1
  161. package/lib/components/toolbar.d.ts +0 -10
  162. package/lib/components/toolbar.d.ts.map +0 -1
  163. package/lib/components/toolbar.js +0 -25
  164. package/lib/components/toolbar.js.map +0 -1
  165. package/lib/constants/mongodb-ace-theme-query.d.ts +0 -3
  166. package/lib/constants/mongodb-ace-theme-query.d.ts.map +0 -1
  167. package/lib/constants/mongodb-ace-theme-query.js +0 -123
  168. package/lib/constants/mongodb-ace-theme-query.js.map +0 -1
  169. package/lib/constants/mongodb-ace-theme.d.ts +0 -3
  170. package/lib/constants/mongodb-ace-theme.d.ts.map +0 -1
  171. package/lib/constants/mongodb-ace-theme.js +0 -113
  172. package/lib/constants/mongodb-ace-theme.js.map +0 -1
package/lib/index.d.ts CHANGED
@@ -1,11 +1,9 @@
1
1
  export * from './components/leafygreen';
2
2
  export { default as emotion, flush, hydrate, cx, merge, getRegisteredStyles, injectGlobal, keyframes, css, sheet, cache, } from '@leafygreen-ui/emotion';
3
3
  import CancelLoader from './components/cancel-loader';
4
- import ConfirmationModal from './components/confirmation-modal';
4
+ import ConfirmationModal from './components/modals/confirmation-modal';
5
5
  import FileInput from './components/file-input';
6
- import { Modal } from './components/modal';
7
- import { ModalTitle } from './components/modal-title';
8
- import { Toolbar } from './components/toolbar';
6
+ import { Modal } from './components/modals/modal';
9
7
  import { MoreOptionsToggle } from './components/more-options-toggle';
10
8
  import { ErrorSummary, WarningSummary } from './components/error-warning-summary';
11
9
  import { RadioBoxGroup } from './components/radio-box-group';
@@ -16,16 +14,16 @@ import { CollapsibleFieldSet } from './components/collapsible-field-set';
16
14
  import { WorkspaceTabs } from './components/workspace-tabs/workspace-tabs';
17
15
  import ResizableSidebar, { defaultSidebarWidth } from './components/resizeable-sidebar';
18
16
  import { ItemAction, MenuAction, ItemActionControls, ItemActionGroup, ItemActionMenu } from './components/item-action-controls';
19
- export { Editor, EditorVariant, EditorTextCompleter, setEditorValue, } from './components/editor';
17
+ export { DocumentIcon } from './components/icons/document-icon';
20
18
  export { FavoriteIcon } from './components/icons/favorite-icon';
19
+ export { NoSavedItemsIcon } from './components/icons/no-saved-items-icon';
21
20
  export { Variant as BadgeVariant } from '@leafygreen-ui/badge';
22
21
  export { Variant as BannerVariant } from '@leafygreen-ui/banner';
23
22
  export { Size as ButtonSize, Variant as ButtonVariant, } from '@leafygreen-ui/button';
24
23
  export { Checkbox } from './components/checkbox';
25
24
  export { default as LeafyGreenProvider } from '@leafygreen-ui/leafygreen-provider';
26
- export { uiColors } from '@leafygreen-ui/palette';
27
- export * as compassFontSizes from './compass-font-sizes';
28
- export * as compassUIColors from './compass-ui-colors';
25
+ export { palette } from '@leafygreen-ui/palette';
26
+ export { rgba } from 'polished';
29
27
  export { default as Portal } from '@leafygreen-ui/portal';
30
28
  export { Size as RadioBoxSize } from '@leafygreen-ui/radio-box-group';
31
29
  export { Size as SelectSize } from '@leafygreen-ui/select';
@@ -36,18 +34,23 @@ export { Toggle } from './components/toggle';
36
34
  export { breakpoints, spacing } from '@leafygreen-ui/tokens';
37
35
  export { Tooltip } from './components/tooltip';
38
36
  import IndexIcon from './components/index-icon';
39
- export { Accordion, CollapsibleFieldSet, CancelLoader, ConfirmationModal, ErrorSummary, FileInput, IndexIcon, Modal, ModalTitle, MoreOptionsToggle, RadioBoxGroup, SpinLoader, ResizeHandle, ResizeDirection, ResizableSidebar, Toolbar, WarningSummary, WorkspaceTabs, ItemAction, MenuAction, ItemActionControls, ItemActionGroup, ItemActionMenu, defaultSidebarWidth, };
37
+ export { default as FormFieldContainer } from './components/form-field-container';
38
+ export { FormModal } from './components/modals/form-modal';
39
+ export { InfoModal } from './components/modals/info-modal';
40
+ export { Accordion, CollapsibleFieldSet, CancelLoader, ConfirmationModal, ErrorSummary, FileInput, IndexIcon, Modal, MoreOptionsToggle, RadioBoxGroup, SpinLoader, ResizeHandle, ResizeDirection, ResizableSidebar, WarningSummary, WorkspaceTabs, ItemAction, MenuAction, ItemActionControls, ItemActionGroup, ItemActionMenu, defaultSidebarWidth, };
40
41
  export { useFocusState, useHoverState, FocusState, } from './hooks/use-focus-hover';
41
- export { withTheme, useTheme, Theme, ThemeState, ThemeProvider, } from './hooks/use-theme';
42
+ export { withTheme, useTheme, useDarkMode, Theme, ThemeState, ThemeProvider, } from './hooks/use-theme';
42
43
  export { ContentWithFallback, FadeInPlaceholder, } from './components/content-with-fallback';
43
44
  export { InlineDefinition } from './components/inline-definition';
44
45
  import type { glyphs } from '@leafygreen-ui/icon';
45
46
  export declare type IconGlyph = Extract<keyof typeof glyphs, string>;
47
+ export { EmptyContent } from './components/empty-content';
46
48
  export { ErrorBoundary } from './components/error-boundary';
47
49
  export { TabNavBar } from './components/tab-nav-bar';
48
50
  export { WorkspaceContainer } from './components/workspace-container';
49
51
  export { InlineInfoLink } from './components/inline-info-link';
50
52
  export { InteractivePopover } from './components/interactive-popover';
53
+ export { ListEditor } from './components/list-editor';
51
54
  export { Placeholder } from './components/placeholder';
52
55
  export { useDOMRect } from './hooks/use-dom-rect';
53
56
  export { VirtualGrid } from './components/virtual-grid';
@@ -55,7 +58,8 @@ export { mergeProps } from './utils/merge-props';
55
58
  export { focusRing, useFocusRing } from './hooks/use-focus-ring';
56
59
  export { useDefaultAction } from './hooks/use-default-action';
57
60
  export { useSortControls, useSortedItems } from './hooks/use-sort';
58
- export { Pipeline, Stage } from '@leafygreen-ui/pipeline';
61
+ export { fontFamilies } from '@leafygreen-ui/tokens';
59
62
  export { default as BSONValue } from './components/bson-value';
60
63
  export * as DocumentList from './components/document-list';
64
+ export { KeylineCard } from './components/keyline-card';
61
65
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,yBAAyB,CAAC;AAExC,OAAO,EACL,OAAO,IAAI,OAAO,EAClB,KAAK,EACL,OAAO,EACP,EAAE,EACF,KAAK,EACL,mBAAmB,EACnB,YAAY,EACZ,SAAS,EACT,GAAG,EACH,KAAK,EACL,KAAK,GACN,MAAM,wBAAwB,CAAC;AAChC,OAAO,YAAY,MAAM,4BAA4B,CAAC;AACtD,OAAO,iBAAiB,MAAM,iCAAiC,CAAC;AAChE,OAAO,SAAS,MAAM,yBAAyB,CAAC;AAChD,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAC3C,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AACtD,OAAO,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAC/C,OAAO,EAAE,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AACrE,OAAO,EACL,YAAY,EACZ,cAAc,EACf,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAC;AAC7D,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AACtD,OAAO,EAAE,YAAY,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAC3E,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AACnD,OAAO,EAAE,mBAAmB,EAAE,MAAM,oCAAoC,CAAC;AACzE,OAAO,EAAE,aAAa,EAAE,MAAM,4CAA4C,CAAC;AAC3E,OAAO,gBAAgB,EAAE,EACvB,mBAAmB,EACpB,MAAM,iCAAiC,CAAC;AACzC,OAAO,EACL,UAAU,EACV,UAAU,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,EAAE,MAAM,kCAAkC,CAAC;AACtE,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AACtD,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AACvD,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AACxD,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACjD,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AACjE,OAAO,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAC9D,OAAO,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AACnE,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAErD,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAC/D,OAAO,KAAK,YAAY,MAAM,4BAA4B,CAAC;AAC3D,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC"}
package/lib/index.js CHANGED
@@ -29,8 +29,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
29
29
  return (mod && mod.__esModule) ? mod : { "default": mod };
30
30
  };
31
31
  Object.defineProperty(exports, "__esModule", { value: true });
32
- exports.ResizeHandle = exports.SpinLoader = exports.RadioBoxGroup = exports.MoreOptionsToggle = exports.ModalTitle = exports.Modal = exports.IndexIcon = exports.FileInput = exports.ErrorSummary = exports.ConfirmationModal = exports.CancelLoader = exports.CollapsibleFieldSet = exports.Accordion = exports.Tooltip = exports.spacing = exports.breakpoints = exports.Toggle = exports.ToastVariant = exports.ToastArea = exports.useToast = exports.VisuallyHidden = exports.useId = exports.SelectSize = exports.RadioBoxSize = exports.Portal = exports.compassUIColors = exports.compassFontSizes = exports.uiColors = exports.LeafyGreenProvider = exports.Checkbox = exports.ButtonVariant = exports.ButtonSize = exports.BannerVariant = exports.BadgeVariant = exports.FavoriteIcon = exports.setEditorValue = exports.EditorTextCompleter = exports.EditorVariant = exports.Editor = exports.cache = exports.sheet = exports.css = exports.keyframes = exports.injectGlobal = exports.getRegisteredStyles = exports.merge = exports.cx = exports.hydrate = exports.flush = exports.emotion = void 0;
33
- exports.DocumentList = exports.BSONValue = exports.Stage = exports.Pipeline = exports.useSortedItems = exports.useSortControls = exports.useDefaultAction = exports.useFocusRing = exports.focusRing = exports.mergeProps = exports.VirtualGrid = exports.useDOMRect = exports.Placeholder = exports.InteractivePopover = exports.InlineInfoLink = exports.WorkspaceContainer = exports.TabNavBar = exports.ErrorBoundary = exports.InlineDefinition = exports.FadeInPlaceholder = exports.ContentWithFallback = exports.ThemeProvider = exports.Theme = exports.useTheme = exports.withTheme = exports.FocusState = exports.useHoverState = exports.useFocusState = exports.defaultSidebarWidth = exports.ItemActionMenu = exports.ItemActionGroup = exports.ItemActionControls = exports.WorkspaceTabs = exports.WarningSummary = exports.Toolbar = exports.ResizableSidebar = exports.ResizeDirection = void 0;
32
+ exports.ResizeDirection = exports.ResizeHandle = exports.SpinLoader = exports.RadioBoxGroup = exports.MoreOptionsToggle = exports.Modal = exports.IndexIcon = exports.FileInput = exports.ErrorSummary = exports.ConfirmationModal = exports.CancelLoader = exports.CollapsibleFieldSet = exports.Accordion = exports.InfoModal = exports.FormModal = exports.FormFieldContainer = exports.Tooltip = exports.spacing = exports.breakpoints = exports.Toggle = exports.ToastVariant = exports.ToastArea = exports.useToast = exports.VisuallyHidden = exports.useId = exports.SelectSize = exports.RadioBoxSize = exports.Portal = exports.rgba = exports.palette = exports.LeafyGreenProvider = exports.Checkbox = exports.ButtonVariant = exports.ButtonSize = exports.BannerVariant = exports.BadgeVariant = exports.NoSavedItemsIcon = exports.FavoriteIcon = exports.DocumentIcon = exports.cache = exports.sheet = exports.css = exports.keyframes = exports.injectGlobal = exports.getRegisteredStyles = exports.merge = exports.cx = exports.hydrate = exports.flush = exports.emotion = void 0;
33
+ exports.KeylineCard = exports.DocumentList = exports.BSONValue = exports.fontFamilies = exports.useSortedItems = exports.useSortControls = exports.useDefaultAction = exports.useFocusRing = exports.focusRing = exports.mergeProps = exports.VirtualGrid = exports.useDOMRect = exports.Placeholder = exports.ListEditor = exports.InteractivePopover = exports.InlineInfoLink = exports.WorkspaceContainer = exports.TabNavBar = exports.ErrorBoundary = exports.EmptyContent = exports.InlineDefinition = exports.FadeInPlaceholder = exports.ContentWithFallback = exports.ThemeProvider = exports.Theme = exports.useDarkMode = exports.useTheme = exports.withTheme = exports.FocusState = exports.useHoverState = exports.useFocusState = exports.defaultSidebarWidth = exports.ItemActionMenu = exports.ItemActionGroup = exports.ItemActionControls = exports.WorkspaceTabs = exports.WarningSummary = exports.ResizableSidebar = void 0;
34
34
  __exportStar(require("./components/leafygreen"), exports);
35
35
  var emotion_1 = require("@leafygreen-ui/emotion");
36
36
  Object.defineProperty(exports, "emotion", { enumerable: true, get: function () { return __importDefault(emotion_1).default; } });
@@ -46,16 +46,12 @@ Object.defineProperty(exports, "sheet", { enumerable: true, get: function () { r
46
46
  Object.defineProperty(exports, "cache", { enumerable: true, get: function () { return emotion_1.cache; } });
47
47
  const cancel_loader_1 = __importDefault(require("./components/cancel-loader"));
48
48
  exports.CancelLoader = cancel_loader_1.default;
49
- const confirmation_modal_1 = __importDefault(require("./components/confirmation-modal"));
49
+ const confirmation_modal_1 = __importDefault(require("./components/modals/confirmation-modal"));
50
50
  exports.ConfirmationModal = confirmation_modal_1.default;
51
51
  const file_input_1 = __importDefault(require("./components/file-input"));
52
52
  exports.FileInput = file_input_1.default;
53
- const modal_1 = require("./components/modal");
53
+ const modal_1 = require("./components/modals/modal");
54
54
  Object.defineProperty(exports, "Modal", { enumerable: true, get: function () { return modal_1.Modal; } });
55
- const modal_title_1 = require("./components/modal-title");
56
- Object.defineProperty(exports, "ModalTitle", { enumerable: true, get: function () { return modal_title_1.ModalTitle; } });
57
- const toolbar_1 = require("./components/toolbar");
58
- Object.defineProperty(exports, "Toolbar", { enumerable: true, get: function () { return toolbar_1.Toolbar; } });
59
55
  const more_options_toggle_1 = require("./components/more-options-toggle");
60
56
  Object.defineProperty(exports, "MoreOptionsToggle", { enumerable: true, get: function () { return more_options_toggle_1.MoreOptionsToggle; } });
61
57
  const error_warning_summary_1 = require("./components/error-warning-summary");
@@ -81,13 +77,12 @@ const item_action_controls_1 = require("./components/item-action-controls");
81
77
  Object.defineProperty(exports, "ItemActionControls", { enumerable: true, get: function () { return item_action_controls_1.ItemActionControls; } });
82
78
  Object.defineProperty(exports, "ItemActionGroup", { enumerable: true, get: function () { return item_action_controls_1.ItemActionGroup; } });
83
79
  Object.defineProperty(exports, "ItemActionMenu", { enumerable: true, get: function () { return item_action_controls_1.ItemActionMenu; } });
84
- var editor_1 = require("./components/editor");
85
- Object.defineProperty(exports, "Editor", { enumerable: true, get: function () { return editor_1.Editor; } });
86
- Object.defineProperty(exports, "EditorVariant", { enumerable: true, get: function () { return editor_1.EditorVariant; } });
87
- Object.defineProperty(exports, "EditorTextCompleter", { enumerable: true, get: function () { return editor_1.EditorTextCompleter; } });
88
- Object.defineProperty(exports, "setEditorValue", { enumerable: true, get: function () { return editor_1.setEditorValue; } });
80
+ var document_icon_1 = require("./components/icons/document-icon");
81
+ Object.defineProperty(exports, "DocumentIcon", { enumerable: true, get: function () { return document_icon_1.DocumentIcon; } });
89
82
  var favorite_icon_1 = require("./components/icons/favorite-icon");
90
83
  Object.defineProperty(exports, "FavoriteIcon", { enumerable: true, get: function () { return favorite_icon_1.FavoriteIcon; } });
84
+ var no_saved_items_icon_1 = require("./components/icons/no-saved-items-icon");
85
+ Object.defineProperty(exports, "NoSavedItemsIcon", { enumerable: true, get: function () { return no_saved_items_icon_1.NoSavedItemsIcon; } });
91
86
  var badge_1 = require("@leafygreen-ui/badge");
92
87
  Object.defineProperty(exports, "BadgeVariant", { enumerable: true, get: function () { return badge_1.Variant; } });
93
88
  var banner_1 = require("@leafygreen-ui/banner");
@@ -100,9 +95,9 @@ Object.defineProperty(exports, "Checkbox", { enumerable: true, get: function ()
100
95
  var leafygreen_provider_1 = require("@leafygreen-ui/leafygreen-provider");
101
96
  Object.defineProperty(exports, "LeafyGreenProvider", { enumerable: true, get: function () { return __importDefault(leafygreen_provider_1).default; } });
102
97
  var palette_1 = require("@leafygreen-ui/palette");
103
- Object.defineProperty(exports, "uiColors", { enumerable: true, get: function () { return palette_1.uiColors; } });
104
- exports.compassFontSizes = __importStar(require("./compass-font-sizes"));
105
- exports.compassUIColors = __importStar(require("./compass-ui-colors"));
98
+ Object.defineProperty(exports, "palette", { enumerable: true, get: function () { return palette_1.palette; } });
99
+ var polished_1 = require("polished");
100
+ Object.defineProperty(exports, "rgba", { enumerable: true, get: function () { return polished_1.rgba; } });
106
101
  var portal_1 = require("@leafygreen-ui/portal");
107
102
  Object.defineProperty(exports, "Portal", { enumerable: true, get: function () { return __importDefault(portal_1).default; } });
108
103
  var radio_box_group_2 = require("@leafygreen-ui/radio-box-group");
@@ -126,6 +121,12 @@ var tooltip_1 = require("./components/tooltip");
126
121
  Object.defineProperty(exports, "Tooltip", { enumerable: true, get: function () { return tooltip_1.Tooltip; } });
127
122
  const index_icon_1 = __importDefault(require("./components/index-icon"));
128
123
  exports.IndexIcon = index_icon_1.default;
124
+ var form_field_container_1 = require("./components/form-field-container");
125
+ Object.defineProperty(exports, "FormFieldContainer", { enumerable: true, get: function () { return __importDefault(form_field_container_1).default; } });
126
+ var form_modal_1 = require("./components/modals/form-modal");
127
+ Object.defineProperty(exports, "FormModal", { enumerable: true, get: function () { return form_modal_1.FormModal; } });
128
+ var info_modal_1 = require("./components/modals/info-modal");
129
+ Object.defineProperty(exports, "InfoModal", { enumerable: true, get: function () { return info_modal_1.InfoModal; } });
129
130
  var use_focus_hover_1 = require("./hooks/use-focus-hover");
130
131
  Object.defineProperty(exports, "useFocusState", { enumerable: true, get: function () { return use_focus_hover_1.useFocusState; } });
131
132
  Object.defineProperty(exports, "useHoverState", { enumerable: true, get: function () { return use_focus_hover_1.useHoverState; } });
@@ -133,6 +134,7 @@ Object.defineProperty(exports, "FocusState", { enumerable: true, get: function (
133
134
  var use_theme_1 = require("./hooks/use-theme");
134
135
  Object.defineProperty(exports, "withTheme", { enumerable: true, get: function () { return use_theme_1.withTheme; } });
135
136
  Object.defineProperty(exports, "useTheme", { enumerable: true, get: function () { return use_theme_1.useTheme; } });
137
+ Object.defineProperty(exports, "useDarkMode", { enumerable: true, get: function () { return use_theme_1.useDarkMode; } });
136
138
  Object.defineProperty(exports, "Theme", { enumerable: true, get: function () { return use_theme_1.Theme; } });
137
139
  Object.defineProperty(exports, "ThemeProvider", { enumerable: true, get: function () { return use_theme_1.ThemeProvider; } });
138
140
  var content_with_fallback_1 = require("./components/content-with-fallback");
@@ -140,6 +142,8 @@ Object.defineProperty(exports, "ContentWithFallback", { enumerable: true, get: f
140
142
  Object.defineProperty(exports, "FadeInPlaceholder", { enumerable: true, get: function () { return content_with_fallback_1.FadeInPlaceholder; } });
141
143
  var inline_definition_1 = require("./components/inline-definition");
142
144
  Object.defineProperty(exports, "InlineDefinition", { enumerable: true, get: function () { return inline_definition_1.InlineDefinition; } });
145
+ var empty_content_1 = require("./components/empty-content");
146
+ Object.defineProperty(exports, "EmptyContent", { enumerable: true, get: function () { return empty_content_1.EmptyContent; } });
143
147
  var error_boundary_1 = require("./components/error-boundary");
144
148
  Object.defineProperty(exports, "ErrorBoundary", { enumerable: true, get: function () { return error_boundary_1.ErrorBoundary; } });
145
149
  var tab_nav_bar_1 = require("./components/tab-nav-bar");
@@ -150,6 +154,8 @@ var inline_info_link_1 = require("./components/inline-info-link");
150
154
  Object.defineProperty(exports, "InlineInfoLink", { enumerable: true, get: function () { return inline_info_link_1.InlineInfoLink; } });
151
155
  var interactive_popover_1 = require("./components/interactive-popover");
152
156
  Object.defineProperty(exports, "InteractivePopover", { enumerable: true, get: function () { return interactive_popover_1.InteractivePopover; } });
157
+ var list_editor_1 = require("./components/list-editor");
158
+ Object.defineProperty(exports, "ListEditor", { enumerable: true, get: function () { return list_editor_1.ListEditor; } });
153
159
  var placeholder_1 = require("./components/placeholder");
154
160
  Object.defineProperty(exports, "Placeholder", { enumerable: true, get: function () { return placeholder_1.Placeholder; } });
155
161
  var use_dom_rect_1 = require("./hooks/use-dom-rect");
@@ -166,10 +172,11 @@ Object.defineProperty(exports, "useDefaultAction", { enumerable: true, get: func
166
172
  var use_sort_1 = require("./hooks/use-sort");
167
173
  Object.defineProperty(exports, "useSortControls", { enumerable: true, get: function () { return use_sort_1.useSortControls; } });
168
174
  Object.defineProperty(exports, "useSortedItems", { enumerable: true, get: function () { return use_sort_1.useSortedItems; } });
169
- var pipeline_1 = require("@leafygreen-ui/pipeline");
170
- Object.defineProperty(exports, "Pipeline", { enumerable: true, get: function () { return pipeline_1.Pipeline; } });
171
- Object.defineProperty(exports, "Stage", { enumerable: true, get: function () { return pipeline_1.Stage; } });
175
+ var tokens_2 = require("@leafygreen-ui/tokens");
176
+ Object.defineProperty(exports, "fontFamilies", { enumerable: true, get: function () { return tokens_2.fontFamilies; } });
172
177
  var bson_value_1 = require("./components/bson-value");
173
178
  Object.defineProperty(exports, "BSONValue", { enumerable: true, get: function () { return __importDefault(bson_value_1).default; } });
174
179
  exports.DocumentList = __importStar(require("./components/document-list"));
180
+ var keyline_card_1 = require("./components/keyline-card");
181
+ Object.defineProperty(exports, "KeylineCard", { enumerable: true, get: function () { return keyline_card_1.KeylineCard; } });
175
182
  //# sourceMappingURL=index.js.map
package/lib/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,0DAAwC;AAExC,kDAYgC;AAX9B,mHAAA,OAAO,OAAW;AAClB,gGAAA,KAAK,OAAA;AACL,kGAAA,OAAO,OAAA;AACP,6FAAA,EAAE,OAAA;AACF,gGAAA,KAAK,OAAA;AACL,8GAAA,mBAAmB,OAAA;AACnB,uGAA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gBAAgB,OAAA;AACzB,6CAAmE;AAA1D,2GAAA,eAAe,OAAA;AAAE,0GAAA,cAAc,OAAA;AACxC,gDAAqD;AAA5C,sGAAA,YAAY,OAAA;AAErB,sDAA+D;AAAtD,wHAAA,OAAO,OAAa;AAC7B,2EAA2D;AAC3D,0DAAwD;AAA/C,2GAAA,WAAW,OAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mongodb-js/compass-components",
3
- "version": "1.2.0",
3
+ "version": "1.3.0",
4
4
  "description": "React Components used in Compass",
5
5
  "license": "SSPL",
6
6
  "main": "lib/index.js",
@@ -31,39 +31,40 @@
31
31
  "reformat": "npm run prettier -- --write ."
32
32
  },
33
33
  "dependencies": {
34
- "@leafygreen-ui/badge": "^5.0.1",
35
- "@leafygreen-ui/banner": "^4.0.1",
36
- "@leafygreen-ui/button": "^16.0.0",
37
- "@leafygreen-ui/card": "^7.0.0",
38
- "@leafygreen-ui/checkbox": "^10.0.0",
39
- "@leafygreen-ui/code": "^12.0.2",
40
- "@leafygreen-ui/combobox": "^3.0.1",
41
- "@leafygreen-ui/confirmation-modal": "^3.0.6",
42
- "@leafygreen-ui/emotion": "^4.0.0",
43
- "@leafygreen-ui/icon": "^11.10.1",
44
- "@leafygreen-ui/icon-button": "^13.1.0",
45
- "@leafygreen-ui/leafygreen-provider": "^2.3.2",
46
- "@leafygreen-ui/logo": "^6.1.2",
47
- "@leafygreen-ui/menu": "^15.0.0",
48
- "@leafygreen-ui/modal": "^10.0.0",
49
- "@leafygreen-ui/palette": "^3.4.0",
50
- "@leafygreen-ui/pipeline": "^2.1.8",
51
- "@leafygreen-ui/popover": "^9.0.0",
52
- "@leafygreen-ui/portal": "^4.0.3",
53
- "@leafygreen-ui/radio-box-group": "^9.0.2",
54
- "@leafygreen-ui/radio-group": "^8.0.3",
55
- "@leafygreen-ui/segmented-control": "^3.0.0",
56
- "@leafygreen-ui/select": "^7.0.0",
57
- "@leafygreen-ui/table": "^6.0.1",
58
- "@leafygreen-ui/tabs": "^9.0.0",
59
- "@leafygreen-ui/text-area": "^6.1.0",
60
- "@leafygreen-ui/text-input": "^10.1.0",
61
- "@leafygreen-ui/toast": "^1.0.1",
62
- "@leafygreen-ui/toggle": "^8.0.2",
63
- "@leafygreen-ui/tokens": "^1.3.1",
64
- "@leafygreen-ui/tooltip": "^7.1.0",
65
- "@leafygreen-ui/typography": "^13.1.1",
66
- "@mongodb-js/compass-logging": "^1.1.0",
34
+ "@leafygreen-ui/badge": "^6.1.2",
35
+ "@leafygreen-ui/banner": "^5.0.3",
36
+ "@leafygreen-ui/button": "^16.1.1",
37
+ "@leafygreen-ui/card": "^7.1.1",
38
+ "@leafygreen-ui/checkbox": "^10.1.1",
39
+ "@leafygreen-ui/code": "^12.1.1",
40
+ "@leafygreen-ui/combobox": "^3.1.1",
41
+ "@leafygreen-ui/confirmation-modal": "^3.1.1",
42
+ "@leafygreen-ui/emotion": "^4.0.3",
43
+ "@leafygreen-ui/icon": "^11.11.1",
44
+ "@leafygreen-ui/icon-button": "^13.2.1",
45
+ "@leafygreen-ui/leafygreen-provider": "^2.3.5",
46
+ "@leafygreen-ui/logo": "^6.3.0",
47
+ "@leafygreen-ui/marketing-modal": "^3.0.7",
48
+ "@leafygreen-ui/menu": "^16.0.0",
49
+ "@leafygreen-ui/modal": "^10.1.2",
50
+ "@leafygreen-ui/palette": "^3.4.4",
51
+ "@leafygreen-ui/pipeline": "^3.0.0",
52
+ "@leafygreen-ui/popover": "^9.1.1",
53
+ "@leafygreen-ui/portal": "^4.0.6",
54
+ "@leafygreen-ui/radio-box-group": "^9.1.1",
55
+ "@leafygreen-ui/radio-group": "^8.1.1",
56
+ "@leafygreen-ui/segmented-control": "^3.1.1",
57
+ "@leafygreen-ui/select": "^7.1.2",
58
+ "@leafygreen-ui/table": "^6.1.1",
59
+ "@leafygreen-ui/tabs": "^9.2.1",
60
+ "@leafygreen-ui/text-area": "^6.2.1",
61
+ "@leafygreen-ui/text-input": "^10.2.1",
62
+ "@leafygreen-ui/toast": "^2.0.3",
63
+ "@leafygreen-ui/toggle": "^8.0.5",
64
+ "@leafygreen-ui/tokens": "^1.3.4",
65
+ "@leafygreen-ui/tooltip": "^7.1.3",
66
+ "@leafygreen-ui/typography": "^13.2.1",
67
+ "@mongodb-js/compass-logging": "^1.1.1",
67
68
  "@react-aria/interactions": "^3.9.1",
68
69
  "@react-aria/tooltip": "^3.2.1",
69
70
  "@react-aria/utils": "^3.13.1",
@@ -74,13 +75,11 @@
74
75
  "hadron-document": "^8.0.1",
75
76
  "hadron-type-checker": "^7.0.0",
76
77
  "polished": "^4.2.2",
78
+ "react-intersection-observer": "^8.25.1",
77
79
  "react-sortable-hoc": "^2.0.0",
78
80
  "react-window": "^1.8.6"
79
81
  },
80
82
  "peerDependencies": {
81
- "ace-builds": "^1.4.3",
82
- "mongodb-ace-autocompleter": "^1.1.1",
83
- "mongodb-ace-mode": "^2.0.1",
84
83
  "react": "^16.14.0",
85
84
  "react-ace": "^9.5.0"
86
85
  },
@@ -97,12 +96,9 @@
97
96
  "@types/chai-dom": "^0.0.10",
98
97
  "@types/mocha": "^9.0.0",
99
98
  "@types/react": "^17.0.5",
100
- "ace-builds": "^1.4.3",
101
99
  "chai": "^4.3.4",
102
100
  "eslint": "^7.25.0",
103
101
  "mocha": "^8.4.0",
104
- "mongodb-ace-autocompleter": "^1.1.1",
105
- "mongodb-ace-mode": "^2.0.1",
106
102
  "nyc": "^15.0.0",
107
103
  "prettier": "^2.7.1",
108
104
  "react": "^16.14.0",
@@ -120,5 +116,5 @@
120
116
  "publishConfig": {
121
117
  "access": "public"
122
118
  },
123
- "gitHead": "775735842ab7675c6267fb09c22e61fc9b97cd6d"
119
+ "gitHead": "10815be8fd57f3bfd89d061e1592eb7136d4a0fb"
124
120
  }
@@ -1,3 +0,0 @@
1
- export declare const smallFontSize = "13px";
2
- export declare const defaultFontSize = "14px";
3
- //# sourceMappingURL=compass-font-sizes.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"compass-font-sizes.d.ts","sourceRoot":"","sources":["../src/compass-font-sizes.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,aAAa,SAAS,CAAC;AACpC,eAAO,MAAM,eAAe,SAAS,CAAC"}
@@ -1,6 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.defaultFontSize = exports.smallFontSize = void 0;
4
- exports.smallFontSize = '13px';
5
- exports.defaultFontSize = '14px';
6
- //# sourceMappingURL=compass-font-sizes.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"compass-font-sizes.js","sourceRoot":"","sources":["../src/compass-font-sizes.ts"],"names":[],"mappings":";;;AAAa,QAAA,aAAa,GAAG,MAAM,CAAC;AACvB,QAAA,eAAe,GAAG,MAAM,CAAC"}
@@ -1,7 +0,0 @@
1
- export declare const gray8 = "#f5f6f7";
2
- export declare const transparentGray = "rgba(180, 180, 180, 0.5)";
3
- export declare const transparentWhite = "rgba(255, 255, 255, 0.5)";
4
- export declare const gold = "#FFC010";
5
- export declare const scrollbarThumbLightTheme = "rgba(137, 151, 155, 0.65)";
6
- export declare const scrollbarThumbDarkTheme = "rgba(137, 151, 155, 0.65)";
7
- //# sourceMappingURL=compass-ui-colors.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"compass-ui-colors.d.ts","sourceRoot":"","sources":["../src/compass-ui-colors.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,KAAK,YAAY,CAAC;AAC/B,eAAO,MAAM,eAAe,6BAA6B,CAAC;AAC1D,eAAO,MAAM,gBAAgB,6BAA6B,CAAC;AAC3D,eAAO,MAAM,IAAI,YAAY,CAAC;AAG9B,eAAO,MAAM,wBAAwB,8BAA8B,CAAC;AACpE,eAAO,MAAM,uBAAuB,8BAA8B,CAAC"}
@@ -1,10 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.scrollbarThumbDarkTheme = exports.scrollbarThumbLightTheme = exports.gold = exports.transparentWhite = exports.transparentGray = exports.gray8 = void 0;
4
- exports.gray8 = '#f5f6f7';
5
- exports.transparentGray = 'rgba(180, 180, 180, 0.5)';
6
- exports.transparentWhite = 'rgba(255, 255, 255, 0.5)';
7
- exports.gold = '#FFC010';
8
- exports.scrollbarThumbLightTheme = 'rgba(137, 151, 155, 0.65)';
9
- exports.scrollbarThumbDarkTheme = 'rgba(137, 151, 155, 0.65)';
10
- //# sourceMappingURL=compass-ui-colors.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"compass-ui-colors.js","sourceRoot":"","sources":["../src/compass-ui-colors.ts"],"names":[],"mappings":";;;AAAa,QAAA,KAAK,GAAG,SAAS,CAAC;AAClB,QAAA,eAAe,GAAG,0BAA0B,CAAC;AAC7C,QAAA,gBAAgB,GAAG,0BAA0B,CAAC;AAC9C,QAAA,IAAI,GAAG,SAAS,CAAC;AAGjB,QAAA,wBAAwB,GAAG,2BAA2B,CAAC;AACvD,QAAA,uBAAuB,GAAG,2BAA2B,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"confirmation-modal.d.ts","sourceRoot":"","sources":["../../src/components/confirmation-modal.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAoB,MAAM,OAAO,CAAC;AAIzC,OAAO,EAAE,iBAAiB,IAAI,2BAA2B,EAAE,MAAM,cAAc,CAAC;AAEhF,iBAAS,iBAAiB,CAAC,EACzB,UAAU,EACV,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,2BAA2B,CAAC,GAAG;IAC5D,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB,GAAG,KAAK,CAAC,YAAY,CAOrB;AAED,eAAe,iBAAiB,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"confirmation-modal.js","sourceRoot":"","sources":["../../src/components/confirmation-modal.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+CAAyC;AACzC,iEAAuE;AACvE,MAAM,EAAE,KAAK,EAAE,GAAG,IAAA,0CAAwB,EAAC,YAAY,CAAC,CAAC;AAEzD,6CAAgF;AAEhF,SAAS,iBAAiB,CAAC,EACzB,UAAU,EACV,GAAG,KAAK,EAGT;IACC,IAAA,iBAAS,EAAC,GAAG,EAAE;QACb,IAAI,KAAK,CAAC,IAAI,IAAI,UAAU,EAAE;YAC5B,KAAK,CAAC,QAAQ,EAAE,EAAE,IAAI,EAAE,UAAU,EAAE,CAAC,CAAC;SACvC;IACH,CAAC,EAAE,CAAC,KAAK,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC,CAAC;IAC7B,OAAO,8BAAC,8BAA2B,mBAAc,UAAU,KAAM,KAAK,GAAI,CAAC;AAC7E,CAAC;AAED,kBAAe,iBAAiB,CAAC"}
@@ -1,36 +0,0 @@
1
- import React from 'react';
2
- import 'ace-builds';
3
- import type { IAceEditorProps, IAceOptions } from 'react-ace';
4
- import 'ace-builds/src-noconflict/ext-language_tools';
5
- import 'ace-builds/src-noconflict/mode-javascript';
6
- import 'ace-builds/src-noconflict/mode-json';
7
- import 'ace-builds/src-noconflict/mode-csharp';
8
- import 'ace-builds/src-noconflict/mode-python';
9
- import 'ace-builds/src-noconflict/mode-java';
10
- import 'ace-builds/src-noconflict/mode-ruby';
11
- import 'ace-builds/src-noconflict/mode-rust';
12
- import 'ace-builds/src-noconflict/mode-golang';
13
- import 'ace-builds/src-noconflict/mode-php';
14
- import 'mongodb-ace-mode';
15
- import '../constants/mongodb-ace-theme';
16
- import '../constants/mongodb-ace-theme-query';
17
- declare const EditorVariant: {
18
- readonly Shell: "Shell";
19
- readonly EJSON: "EJSON";
20
- readonly Generic: "Generic";
21
- };
22
- declare type EditorProps = {
23
- variant: keyof typeof EditorVariant;
24
- text?: string;
25
- id?: string;
26
- options?: Omit<IAceOptions, 'readOnly'>;
27
- readOnly?: boolean;
28
- completer?: unknown;
29
- 'data-testid'?: string;
30
- onChangeText?: (text: string, event?: any) => void;
31
- } & Omit<IAceEditorProps, 'onChange' | 'value'>;
32
- declare function Editor({ text, variant, options, readOnly, id, onChangeText, completer, onFocus, 'data-testid': dataTestId, ...aceProps }: EditorProps): React.ReactElement;
33
- declare function setEditorValue(element: HTMLElement, value: string): void;
34
- declare const EditorTextCompleter: any;
35
- export { Editor, EditorVariant, EditorTextCompleter, setEditorValue };
36
- //# sourceMappingURL=editor.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"editor.d.ts","sourceRoot":"","sources":["../../src/components/editor.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkC,MAAM,OAAO,CAAC;AAYvD,OAAO,YAAY,CAAC;AACpB,OAAO,KAAK,EAAE,eAAe,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AAI9D,OAAO,8CAA8C,CAAC;AACtD,OAAO,2CAA2C,CAAC;AACnD,OAAO,qCAAqC,CAAC;AAC7C,OAAO,uCAAuC,CAAC;AAC/C,OAAO,uCAAuC,CAAC;AAC/C,OAAO,qCAAqC,CAAC;AAC7C,OAAO,qCAAqC,CAAC;AAC7C,OAAO,qCAAqC,CAAC;AAC7C,OAAO,uCAAuC,CAAC;AAC/C,OAAO,oCAAoC,CAAC;AAE5C,OAAO,kBAAkB,CAAC;AAC1B,OAAO,gCAAgC,CAAC;AACxC,OAAO,sCAAsC,CAAC;AAiB9C,QAAA,MAAM,aAAa;;;;CAIT,CAAC;AAEX,aAAK,WAAW,GAAG;IACjB,OAAO,EAAE,MAAM,OAAO,aAAa,CAAC;IACpC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,OAAO,CAAC,EAAE,IAAI,CAAC,WAAW,EAAE,UAAU,CAAC,CAAC;IACxC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,GAAG,KAAK,IAAI,CAAC;CACpD,GAAG,IAAI,CAAC,eAAe,EAAE,UAAU,GAAG,OAAO,CAAC,CAAC;AAEhD,iBAAS,MAAM,CAAC,EACd,IAAI,EACJ,OAAO,EACP,OAAO,EACP,QAAQ,EACR,EAAE,EACF,YAAY,EACZ,SAAS,EACT,OAAO,EACP,aAAa,EAAE,UAAU,EACzB,GAAG,QAAQ,EACZ,EAAE,WAAW,GAAG,KAAK,CAAC,YAAY,CAuDlC;AAUD,iBAAS,cAAc,CAAC,OAAO,EAAE,WAAW,EAAE,KAAK,EAAE,MAAM,GAAG,IAAI,CAMjE;AAED,QAAA,MAAM,mBAAmB,KAAsB,CAAC;AAChD,OAAO,EAAE,MAAM,EAAE,aAAa,EAAE,mBAAmB,EAAE,cAAc,EAAE,CAAC"}
@@ -1,107 +0,0 @@
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 (mod) {
19
- if (mod && mod.__esModule) return mod;
20
- var result = {};
21
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
- __setModuleDefault(result, mod);
23
- return result;
24
- };
25
- var __importDefault = (this && this.__importDefault) || function (mod) {
26
- return (mod && mod.__esModule) ? mod : { "default": mod };
27
- };
28
- Object.defineProperty(exports, "__esModule", { value: true });
29
- exports.setEditorValue = exports.EditorTextCompleter = exports.EditorVariant = exports.Editor = void 0;
30
- const react_1 = __importStar(require("react"));
31
- const utils_1 = require("@react-aria/utils");
32
- if (typeof window === 'undefined' && typeof globalThis !== 'undefined') {
33
- globalThis.window = {};
34
- }
35
- require("ace-builds");
36
- const react_ace_1 = __importDefault(require("react-ace"));
37
- require("ace-builds/src-noconflict/ext-language_tools");
38
- require("ace-builds/src-noconflict/mode-javascript");
39
- require("ace-builds/src-noconflict/mode-json");
40
- require("ace-builds/src-noconflict/mode-csharp");
41
- require("ace-builds/src-noconflict/mode-python");
42
- require("ace-builds/src-noconflict/mode-java");
43
- require("ace-builds/src-noconflict/mode-ruby");
44
- require("ace-builds/src-noconflict/mode-rust");
45
- require("ace-builds/src-noconflict/mode-golang");
46
- require("ace-builds/src-noconflict/mode-php");
47
- const ext_beautify_1 = __importDefault(require("ace-builds/src-noconflict/ext-beautify"));
48
- require("mongodb-ace-mode");
49
- require("../constants/mongodb-ace-theme");
50
- require("../constants/mongodb-ace-theme-query");
51
- const ext_language_tools_1 = __importDefault(require("ace-builds/src-noconflict/ext-language_tools"));
52
- const DEFAULT_OPTIONS = {
53
- enableLiveAutocompletion: false,
54
- tabSize: 2,
55
- fontSize: 11,
56
- minLines: 10,
57
- maxLines: Infinity,
58
- showGutter: true,
59
- showPrintMargin: false,
60
- useWorker: false,
61
- };
62
- const EditorVariant = {
63
- Shell: 'Shell',
64
- EJSON: 'EJSON',
65
- Generic: 'Generic',
66
- };
67
- exports.EditorVariant = EditorVariant;
68
- function Editor({ text, variant, options, readOnly, id, onChangeText, completer, onFocus, 'data-testid': dataTestId, ...aceProps }) {
69
- var _a;
70
- const setOptions = {
71
- ...DEFAULT_OPTIONS,
72
- ...options,
73
- ...(typeof readOnly === 'boolean' && { readOnly }),
74
- ...(variant === 'Shell' && { mode: 'ace/mode/mongodb' }),
75
- ...(!!completer && { enableLiveAutocompletion: true }),
76
- };
77
- const editorRef = (0, react_1.useRef)(null);
78
- (0, react_1.useLayoutEffect)(() => {
79
- if (id && editorRef.current) {
80
- editorRef.current.editor.textInput.getElement().id = id;
81
- }
82
- }, [id]);
83
- const editorName = (0, utils_1.useId)();
84
- const editor = (react_1.default.createElement(react_ace_1.default, { ref: (ref) => (editorRef.current = ref), mode: variant === 'Generic'
85
- ? undefined
86
- : variant === 'EJSON'
87
- ? 'json'
88
- : 'javascript', theme: "mongodb", width: "100%", value: text, onChange: onChangeText, editorProps: { $blockScrolling: Infinity }, setOptions: setOptions, readOnly: readOnly, commands: ext_beautify_1.default.commands, name: (_a = aceProps.name) !== null && _a !== void 0 ? _a : editorName, ...aceProps, onFocus: (ev) => {
89
- if (completer) {
90
- ext_language_tools_1.default.setCompleters([completer]);
91
- }
92
- onFocus === null || onFocus === void 0 ? void 0 : onFocus(ev);
93
- } }));
94
- return dataTestId ? react_1.default.createElement("div", { "data-testid": dataTestId }, editor) : editor;
95
- }
96
- exports.Editor = Editor;
97
- function setEditorValue(element, value) {
98
- const container = element.querySelector('.ace_editor');
99
- if (!container) {
100
- throw new Error('Cannot find editor container');
101
- }
102
- window.ace.edit(container.id).setValue(value);
103
- }
104
- exports.setEditorValue = setEditorValue;
105
- const EditorTextCompleter = ext_language_tools_1.default.textCompleter;
106
- exports.EditorTextCompleter = EditorTextCompleter;
107
- //# sourceMappingURL=editor.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"editor.js","sourceRoot":"","sources":["../../src/components/editor.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+CAAuD;AACvD,6CAA0C;AAE1C,IAAI,OAAO,MAAM,KAAK,WAAW,IAAI,OAAO,UAAU,KAAK,WAAW,EAAE;IAMrE,UAAkB,CAAC,MAAM,GAAG,EAAE,CAAC;CACjC;AAED,sBAAoB;AAEpB,0DAAkC;AAGlC,wDAAsD;AACtD,qDAAmD;AACnD,+CAA6C;AAC7C,iDAA+C;AAC/C,iDA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IACA,MAAc,CAAC,GAAG,CAAC,IAAI,CAAC,SAAS,CAAC,EAAE,CAAC,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;AACzD,CAAC;AAGoD,wCAAc;AADnE,MAAM,mBAAmB,GAAG,4BAAK,CAAC,aAAa,CAAC;AAChB,kDAAmB"}
@@ -1,5 +0,0 @@
1
- import React from 'react';
2
- import { H3 } from './leafygreen';
3
- declare function ModalTitle(props: Omit<React.ComponentProps<typeof H3>, 'as'>): React.ReactElement;
4
- export { ModalTitle };
5
- //# sourceMappingURL=modal-title.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"modal-title.d.ts","sourceRoot":"","sources":["../../src/components/modal-title.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,EAAE,EAAE,EAAE,MAAM,cAAc,CAAC;AAMlC,iBAAS,UAAU,CACjB,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,OAAO,EAAE,CAAC,EAAE,IAAI,CAAC,GACjD,KAAK,CAAC,YAAY,CAEpB;AAED,OAAO,EAAE,UAAU,EAAE,CAAC"}
@@ -1,18 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.ModalTitle = void 0;
7
- const react_1 = __importDefault(require("react"));
8
- const tokens_1 = require("@leafygreen-ui/tokens");
9
- const emotion_1 = require("@leafygreen-ui/emotion");
10
- const leafygreen_1 = require("./leafygreen");
11
- const modalTitleStyles = (0, emotion_1.css)({
12
- marginBottom: tokens_1.spacing[4],
13
- });
14
- function ModalTitle(props) {
15
- return react_1.default.createElement(leafygreen_1.H3, { ...props, className: (0, emotion_1.cx)(modalTitleStyles, props.className) });
16
- }
17
- exports.ModalTitle = ModalTitle;
18
- //# sourceMappingURL=modal-title.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"modal-title.js","sourceRoot":"","sources":["../../src/components/modal-title.tsx"],"names":[],"mappings":";;;;;;AAAA,kDAA0B;AAC1B,kDAAgD;AAChD,oDAAiD;AAEjD,6CAAkC;AAElC,MAAM,gBAAgB,GAAG,IAAA,aAAG,EAAC;IAC3B,YAAY,EAAE,gBAAO,CAAC,CAAC,CAAC;CACzB,CAAC,CAAC;AAEH,SAAS,UAAU,CACjB,KAAkD;IAElD,OAAO,8BAAC,eAAE,OAAK,KAAK,EAAE,SAAS,EAAE,IAAA,YAAE,EAAC,gBAAgB,EAAE,KAAK,CAAC,SAAS,CAAC,GAAI,CAAC;AAC7E,CAAC;AAEQ,gCAAU"}