@mongodb-js/compass-components 1.22.1 → 1.24.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/breadcrumb.d.ts +9 -0
- package/lib/components/breadcrumb.d.ts.map +1 -0
- package/lib/components/breadcrumb.js +80 -0
- package/lib/components/breadcrumb.js.map +1 -0
- package/lib/components/combobox/Chip.js +4 -4
- package/lib/components/combobox/Chip.js.map +1 -1
- package/lib/components/combobox/Combobox.d.ts +2 -2
- package/lib/components/combobox/Combobox.js +1 -1
- package/lib/components/combobox/Combobox.js.map +1 -1
- package/lib/components/combobox/ComboboxMenu/ComboboxMenu.d.ts +1 -1
- package/lib/components/combobox/ComboboxMenu/ComboboxMenu.js +2 -2
- package/lib/components/combobox/ComboboxMenu/ComboboxMenu.js.map +1 -1
- package/lib/components/combobox/index.d.ts +3 -1
- package/lib/components/combobox/index.d.ts.map +1 -1
- package/lib/components/combobox/index.js +4 -2
- package/lib/components/combobox/index.js.map +1 -1
- package/lib/components/compass-components-provider.d.ts +5 -1
- package/lib/components/compass-components-provider.d.ts.map +1 -1
- package/lib/components/compass-components-provider.js +15 -11
- package/lib/components/compass-components-provider.js.map +1 -1
- package/lib/components/document-list/element-editors.d.ts.map +1 -1
- package/lib/components/document-list/element-editors.js +7 -1
- package/lib/components/document-list/element-editors.js.map +1 -1
- package/lib/components/feedback-popover.d.ts +2 -1
- package/lib/components/feedback-popover.d.ts.map +1 -1
- package/lib/components/feedback-popover.js +3 -1
- package/lib/components/feedback-popover.js.map +1 -1
- package/lib/components/guide-cue/guide-cue.d.ts +2 -1
- package/lib/components/guide-cue/guide-cue.d.ts.map +1 -1
- package/lib/components/guide-cue/guide-cue.js +3 -1
- package/lib/components/guide-cue/guide-cue.js.map +1 -1
- package/lib/components/horizontal-rule.d.ts +1 -1
- package/lib/components/icons/server-icon.d.ts +3 -0
- package/lib/components/icons/server-icon.d.ts.map +1 -0
- package/lib/components/icons/server-icon.js +28 -0
- package/lib/components/icons/server-icon.js.map +1 -0
- package/lib/components/index-keys-badge.d.ts.map +1 -1
- package/lib/components/index-keys-badge.js +2 -0
- package/lib/components/index-keys-badge.js.map +1 -1
- package/lib/components/item-action-controls.d.ts +8 -3
- package/lib/components/item-action-controls.d.ts.map +1 -1
- package/lib/components/item-action-controls.js +19 -4
- package/lib/components/item-action-controls.js.map +1 -1
- package/lib/components/keyline-card.d.ts +1 -1
- package/lib/components/leafygreen.d.ts +61 -13
- package/lib/components/leafygreen.d.ts.map +1 -1
- package/lib/components/leafygreen.js +22 -18
- package/lib/components/leafygreen.js.map +1 -1
- package/lib/components/links/link.d.ts +798 -0
- package/lib/components/links/link.d.ts.map +1 -0
- package/lib/components/links/link.js +96 -0
- package/lib/components/links/link.js.map +1 -0
- package/lib/components/modals/confirmation-modal.d.ts +2 -3
- package/lib/components/modals/confirmation-modal.d.ts.map +1 -1
- package/lib/components/modals/confirmation-modal.js +2 -1
- package/lib/components/modals/confirmation-modal.js.map +1 -1
- package/lib/components/modals/modal-header.js +1 -1
- package/lib/components/modals/modal-header.js.map +1 -1
- package/lib/components/modals/modal.d.ts +3 -4
- package/lib/components/modals/modal.d.ts.map +1 -1
- package/lib/components/modals/modal.js +3 -1
- package/lib/components/modals/modal.js.map +1 -1
- package/lib/components/options-toggle.d.ts.map +1 -1
- package/lib/components/options-toggle.js.map +1 -1
- package/lib/components/resizeable-sidebar.d.ts +1 -5
- package/lib/components/resizeable-sidebar.d.ts.map +1 -1
- package/lib/components/resizeable-sidebar.js +4 -22
- package/lib/components/resizeable-sidebar.js.map +1 -1
- package/lib/components/tab-nav-bar.d.ts +3 -2
- package/lib/components/tab-nav-bar.d.ts.map +1 -1
- package/lib/components/tab-nav-bar.js +3 -3
- package/lib/components/tab-nav-bar.js.map +1 -1
- package/lib/components/tooltip.d.ts +1 -1
- package/lib/components/tooltip.d.ts.map +1 -1
- package/lib/components/tooltip.js +3 -1
- package/lib/components/tooltip.js.map +1 -1
- package/lib/components/virtual-grid.d.ts +1 -1
- package/lib/hooks/use-confirmation.d.ts +2 -1
- package/lib/hooks/use-confirmation.d.ts.map +1 -1
- package/lib/hooks/use-confirmation.js +13 -3
- package/lib/hooks/use-confirmation.js.map +1 -1
- package/lib/hooks/use-stacked-component.d.ts +17 -0
- package/lib/hooks/use-stacked-component.d.ts.map +1 -0
- package/lib/hooks/use-stacked-component.js +78 -0
- package/lib/hooks/use-stacked-component.js.map +1 -0
- package/lib/hooks/use-toast.d.ts +1 -1
- package/lib/hooks/use-toast.d.ts.map +1 -1
- package/lib/hooks/use-toast.js +10 -4
- package/lib/hooks/use-toast.js.map +1 -1
- package/lib/index.d.ts +4 -0
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +14 -3
- package/lib/index.js.map +1 -1
- package/package.json +52 -54
|
@@ -26,32 +26,28 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
26
26
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.
|
|
30
|
-
exports.
|
|
29
|
+
exports.H2 = exports.H1 = exports.Toggle = exports.TextInput = exports.TextArea = exports.Tabs = exports.Tab = exports.Stage = exports.Cell = exports.Row = exports.TableHead = exports.TableBody = exports.Table = exports.OptionGroup = exports.Option = exports.Select = exports.SegmentedControlOption = exports.SegmentedControl = exports.RadioGroup = exports.Radio = exports.RadioBoxGroup = exports.RadioBox = exports.Popover = exports.Pipeline = exports.MongoDBLogo = exports.MongoDBLogoMark = exports.MarketingModal = exports.ModalFooter = exports.Modal = exports.MenuSeparator = exports.MenuItem = exports.Menu = exports.Language = exports.Icon = exports.HeaderRow = exports.HeaderCell = exports.ExpandedContent = exports.ConfirmationModal = exports.Code = exports.Checkbox = exports.Card = exports.Banner = exports.Badge = exports.AtlasNavGraphic = exports.IconButton = exports.Button = exports.Link = exports.usePrevious = exports.useToast = exports.ToastProvider = void 0;
|
|
30
|
+
exports.useLeafyGreenTable = exports.flexRender = exports.InfoSprinkle = exports.SearchInput = exports.Description = exports.Label = exports.Overline = exports.Disclaimer = exports.InlineKeyCode = exports.InlineCode = exports.Body = exports.Subtitle = exports.H3 = void 0;
|
|
31
31
|
const react_1 = __importDefault(require("react"));
|
|
32
32
|
const badge_1 = __importDefault(require("@leafygreen-ui/badge"));
|
|
33
33
|
Object.defineProperty(exports, "Badge", { enumerable: true, get: function () { return badge_1.default; } });
|
|
34
34
|
const banner_1 = __importDefault(require("@leafygreen-ui/banner"));
|
|
35
35
|
Object.defineProperty(exports, "Banner", { enumerable: true, get: function () { return banner_1.default; } });
|
|
36
|
-
const button_1 = __importDefault(require("@leafygreen-ui/button"));
|
|
37
|
-
exports.Button = button_1.default;
|
|
38
36
|
const checkbox_1 = __importDefault(require("@leafygreen-ui/checkbox"));
|
|
39
37
|
exports.Checkbox = checkbox_1.default;
|
|
40
38
|
const card_1 = __importDefault(require("@leafygreen-ui/card"));
|
|
41
39
|
exports.Card = card_1.default;
|
|
42
40
|
const code_1 = __importStar(require("@leafygreen-ui/code"));
|
|
41
|
+
exports.Code = code_1.default;
|
|
43
42
|
Object.defineProperty(exports, "Language", { enumerable: true, get: function () { return code_1.Language; } });
|
|
44
43
|
const confirmation_modal_1 = __importDefault(require("@leafygreen-ui/confirmation-modal"));
|
|
45
44
|
exports.ConfirmationModal = confirmation_modal_1.default;
|
|
46
45
|
const icon_1 = __importDefault(require("@leafygreen-ui/icon"));
|
|
47
|
-
const icon_button_1 = __importDefault(require("@leafygreen-ui/icon-button"));
|
|
48
|
-
exports.IconButton = icon_button_1.default;
|
|
49
46
|
const logo_1 = require("@leafygreen-ui/logo");
|
|
50
47
|
Object.defineProperty(exports, "AtlasNavGraphic", { enumerable: true, get: function () { return logo_1.AtlasNavGraphic; } });
|
|
51
48
|
Object.defineProperty(exports, "MongoDBLogoMark", { enumerable: true, get: function () { return logo_1.MongoDBLogoMark; } });
|
|
52
49
|
Object.defineProperty(exports, "MongoDBLogo", { enumerable: true, get: function () { return logo_1.MongoDBLogo; } });
|
|
53
50
|
const menu_1 = require("@leafygreen-ui/menu");
|
|
54
|
-
Object.defineProperty(exports, "Menu", { enumerable: true, get: function () { return menu_1.Menu; } });
|
|
55
51
|
Object.defineProperty(exports, "MenuSeparator", { enumerable: true, get: function () { return menu_1.MenuSeparator; } });
|
|
56
52
|
Object.defineProperty(exports, "MenuItem", { enumerable: true, get: function () { return menu_1.MenuItem; } });
|
|
57
53
|
const info_sprinkle_1 = require("@leafygreen-ui/info-sprinkle");
|
|
@@ -61,6 +57,7 @@ menu_1.MenuItem.defaultProps = {
|
|
|
61
57
|
type: 'button',
|
|
62
58
|
};
|
|
63
59
|
const modal_1 = __importStar(require("@leafygreen-ui/modal"));
|
|
60
|
+
exports.Modal = modal_1.default;
|
|
64
61
|
Object.defineProperty(exports, "ModalFooter", { enumerable: true, get: function () { return modal_1.Footer; } });
|
|
65
62
|
const marketing_modal_1 = __importDefault(require("@leafygreen-ui/marketing-modal"));
|
|
66
63
|
exports.MarketingModal = marketing_modal_1.default;
|
|
@@ -68,7 +65,6 @@ const pipeline_1 = require("@leafygreen-ui/pipeline");
|
|
|
68
65
|
Object.defineProperty(exports, "Pipeline", { enumerable: true, get: function () { return pipeline_1.Pipeline; } });
|
|
69
66
|
Object.defineProperty(exports, "Stage", { enumerable: true, get: function () { return pipeline_1.Stage; } });
|
|
70
67
|
const popover_1 = __importDefault(require("@leafygreen-ui/popover"));
|
|
71
|
-
exports.Popover = popover_1.default;
|
|
72
68
|
const radio_box_group_1 = require("@leafygreen-ui/radio-box-group");
|
|
73
69
|
Object.defineProperty(exports, "RadioBox", { enumerable: true, get: function () { return radio_box_group_1.RadioBox; } });
|
|
74
70
|
Object.defineProperty(exports, "RadioBoxGroup", { enumerable: true, get: function () { return radio_box_group_1.RadioBoxGroup; } });
|
|
@@ -83,9 +79,16 @@ Object.defineProperty(exports, "Select", { enumerable: true, get: function () {
|
|
|
83
79
|
Object.defineProperty(exports, "Option", { enumerable: true, get: function () { return select_1.Option; } });
|
|
84
80
|
Object.defineProperty(exports, "OptionGroup", { enumerable: true, get: function () { return select_1.OptionGroup; } });
|
|
85
81
|
const table_1 = require("@leafygreen-ui/table");
|
|
86
|
-
Object.defineProperty(exports, "TableHeader", { enumerable: true, get: function () { return table_1.TableHeader; } });
|
|
87
|
-
Object.defineProperty(exports, "Row", { enumerable: true, get: function () { return table_1.Row; } });
|
|
88
82
|
Object.defineProperty(exports, "Cell", { enumerable: true, get: function () { return table_1.Cell; } });
|
|
83
|
+
Object.defineProperty(exports, "HeaderCell", { enumerable: true, get: function () { return table_1.HeaderCell; } });
|
|
84
|
+
Object.defineProperty(exports, "HeaderRow", { enumerable: true, get: function () { return table_1.HeaderRow; } });
|
|
85
|
+
Object.defineProperty(exports, "ExpandedContent", { enumerable: true, get: function () { return table_1.ExpandedContent; } });
|
|
86
|
+
Object.defineProperty(exports, "Row", { enumerable: true, get: function () { return table_1.Row; } });
|
|
87
|
+
Object.defineProperty(exports, "Table", { enumerable: true, get: function () { return table_1.Table; } });
|
|
88
|
+
Object.defineProperty(exports, "TableHead", { enumerable: true, get: function () { return table_1.TableHead; } });
|
|
89
|
+
Object.defineProperty(exports, "TableBody", { enumerable: true, get: function () { return table_1.TableBody; } });
|
|
90
|
+
Object.defineProperty(exports, "flexRender", { enumerable: true, get: function () { return table_1.flexRender; } });
|
|
91
|
+
Object.defineProperty(exports, "useLeafyGreenTable", { enumerable: true, get: function () { return table_1.useLeafyGreenTable; } });
|
|
89
92
|
const tabs_1 = require("@leafygreen-ui/tabs");
|
|
90
93
|
Object.defineProperty(exports, "Tabs", { enumerable: true, get: function () { return tabs_1.Tabs; } });
|
|
91
94
|
Object.defineProperty(exports, "Tab", { enumerable: true, get: function () { return tabs_1.Tab; } });
|
|
@@ -112,22 +115,23 @@ Object.defineProperty(exports, "InlineCode", { enumerable: true, get: function (
|
|
|
112
115
|
Object.defineProperty(exports, "InlineKeyCode", { enumerable: true, get: function () { return typography_1.InlineKeyCode; } });
|
|
113
116
|
Object.defineProperty(exports, "Disclaimer", { enumerable: true, get: function () { return typography_1.Disclaimer; } });
|
|
114
117
|
Object.defineProperty(exports, "Overline", { enumerable: true, get: function () { return typography_1.Overline; } });
|
|
115
|
-
Object.defineProperty(exports, "Link", { enumerable: true, get: function () { return typography_1.Link; } });
|
|
116
118
|
Object.defineProperty(exports, "Label", { enumerable: true, get: function () { return typography_1.Label; } });
|
|
117
119
|
Object.defineProperty(exports, "Description", { enumerable: true, get: function () { return typography_1.Description; } });
|
|
118
|
-
const
|
|
120
|
+
const use_stacked_component_1 = require("../hooks/use-stacked-component");
|
|
119
121
|
const Icon = ({ size, ...rest }) => {
|
|
120
122
|
size = size === 'xsmall' ? 12 : size;
|
|
121
123
|
return react_1.default.createElement(icon_1.default, { size: size, ...rest });
|
|
122
124
|
};
|
|
123
125
|
exports.Icon = Icon;
|
|
124
126
|
Icon.isGlyph = true;
|
|
125
|
-
const Code = (0, use_theme_1.withDarkMode)(code_1.default);
|
|
126
|
-
exports.Code = Code;
|
|
127
|
-
const Table = (0, use_theme_1.withDarkMode)(table_1.Table);
|
|
128
|
-
exports.Table = Table;
|
|
129
|
-
const Modal = (0, use_theme_1.withDarkMode)(modal_1.default);
|
|
130
|
-
exports.Modal = Modal;
|
|
131
127
|
delete marketing_modal_1.default.propTypes;
|
|
132
128
|
delete checkbox_1.default.propTypes;
|
|
129
|
+
var link_1 = require("./links/link");
|
|
130
|
+
Object.defineProperty(exports, "Link", { enumerable: true, get: function () { return link_1.Link; } });
|
|
131
|
+
Object.defineProperty(exports, "Button", { enumerable: true, get: function () { return link_1.Button; } });
|
|
132
|
+
Object.defineProperty(exports, "IconButton", { enumerable: true, get: function () { return link_1.IconButton; } });
|
|
133
|
+
const Popover = (0, use_stacked_component_1.withStackedComponentPopoverStyles)(popover_1.default);
|
|
134
|
+
exports.Popover = Popover;
|
|
135
|
+
const Menu = (0, use_stacked_component_1.withStackedComponentPopoverStyles)(menu_1.Menu);
|
|
136
|
+
exports.Menu = Menu;
|
|
133
137
|
//# sourceMappingURL=leafygreen.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"leafygreen.js","sourceRoot":"","sources":["../../src/components/leafygreen.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,kDAA0B;AAK1B,iEAAwD;AA+
|
|
1
|
+
{"version":3,"file":"leafygreen.js","sourceRoot":"","sources":["../../src/components/leafygreen.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,kDAA0B;AAK1B,iEAAwD;AA+GtD,sFA/GkB,eAAK,OA+GlB;AA9GP,mEAA0D;AA+GxD,uFA/GkB,gBAAM,OA+GlB;AA9GR,uEAA+C;AAgH7C,mBAhHK,kBAAQ,CAgHL;AA/GV,+DAAuC;AA8GrC,eA9GK,cAAI,CA8GL;AA7GN,4DAAqD;AA+GnD,eA/GK,cAAI,CA+GL;AAMJ,yFArHa,eAAQ,OAqHb;AApHV,2FAAkE;AA+GhE,4BA/GK,4BAAiB,CA+GL;AA9GnB,+DAAgE;AAEhE,8CAI6B;AAkG3B,gGArGA,sBAAe,OAqGA;AAkBf,gGAtHA,sBAAe,OAsHA;AACf,4FAtHA,kBAAW,OAsHA;AApHb,8CAI6B;AA2G3B,8FA7GA,oBAAa,OA6GA;AADb,yFA3GA,eAAQ,OA2GA;AAzGV,gEAA4D;AAkJ1D,6FAlJO,4BAAY,OAkJP;AA7Ib,eAAgB,CAAC,YAAY,GAAG;IAC/B,GAAI,eAAgB,CAAC,YAAY;IACjC,IAAI,EAAE,QAAQ;CACf,CAAC;AAEF,8DAAoE;AAiGlE,gBAjGK,eAAK,CAiGL;AACL,4FAlGwB,cAAW,OAkGxB;AAjGb,qFAA4D;AAkG1D,yBAlGK,yBAAc,CAkGL;AAjGhB,sDAA0D;AAoGxD,yFApGO,mBAAQ,OAoGP;AAgBR,sFApHiB,gBAAK,OA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