@mongodb-js/compass-components 1.0.0 → 1.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/components/accordion.d.ts +1 -2
- package/lib/components/accordion.d.ts.map +1 -1
- package/lib/components/accordion.js +11 -7
- package/lib/components/accordion.js.map +1 -1
- package/lib/components/bson-value.d.ts.map +1 -1
- package/lib/components/bson-value.js +12 -2
- package/lib/components/bson-value.js.map +1 -1
- package/lib/components/collapsible-field-set.d.ts +15 -0
- package/lib/components/collapsible-field-set.d.ts.map +1 -0
- package/lib/components/collapsible-field-set.js +39 -0
- package/lib/components/collapsible-field-set.js.map +1 -0
- package/lib/components/document-list/document-actions-group.d.ts.map +1 -1
- package/lib/components/document-list/document-actions-group.js +3 -2
- package/lib/components/document-list/document-actions-group.js.map +1 -1
- package/lib/components/document-list/document-edit-actions-footer.d.ts.map +1 -1
- package/lib/components/document-list/document-edit-actions-footer.js +22 -20
- package/lib/components/document-list/document-edit-actions-footer.js.map +1 -1
- package/lib/components/document-list/element-actions.d.ts.map +1 -1
- package/lib/components/document-list/element-actions.js +14 -12
- package/lib/components/document-list/element-actions.js.map +1 -1
- package/lib/components/document-list/element.d.ts.map +1 -1
- package/lib/components/document-list/element.js +42 -40
- package/lib/components/document-list/element.js.map +1 -1
- package/lib/components/editor.d.ts.map +1 -1
- package/lib/components/editor.js.map +1 -1
- package/lib/components/error-boundary.d.ts +1 -0
- package/lib/components/error-boundary.d.ts.map +1 -1
- package/lib/components/error-boundary.js +2 -2
- package/lib/components/error-boundary.js.map +1 -1
- package/lib/components/file-input.d.ts +1 -0
- package/lib/components/file-input.d.ts.map +1 -1
- package/lib/components/file-input.js +18 -9
- package/lib/components/file-input.js.map +1 -1
- package/lib/components/icons/favorite-icon.d.ts +8 -7
- package/lib/components/icons/favorite-icon.d.ts.map +1 -1
- package/lib/components/icons/favorite-icon.js +3 -1
- package/lib/components/icons/favorite-icon.js.map +1 -1
- package/lib/components/index-icon.d.ts +7 -0
- package/lib/components/index-icon.d.ts.map +1 -0
- package/lib/components/index-icon.js +15 -0
- package/lib/components/index-icon.js.map +1 -0
- package/lib/components/interactive-popover.d.ts +17 -0
- package/lib/components/interactive-popover.d.ts.map +1 -0
- package/lib/components/interactive-popover.js +132 -0
- package/lib/components/interactive-popover.js.map +1 -0
- package/lib/components/item-action-controls.d.ts +48 -0
- package/lib/components/item-action-controls.d.ts.map +1 -0
- package/lib/components/item-action-controls.js +118 -0
- package/lib/components/item-action-controls.js.map +1 -0
- package/lib/components/leafy-green/combobox/chip.js +1 -1
- package/lib/components/leafy-green/combobox/chip.js.map +1 -1
- package/lib/components/leafy-green/combobox/combobox.d.ts.map +1 -1
- package/lib/components/leafy-green/combobox/combobox.js +2 -2
- package/lib/components/leafy-green/combobox/combobox.js.map +1 -1
- package/lib/components/leafy-green/combobox/combobox.styles.d.ts +1 -0
- package/lib/components/leafy-green/combobox/combobox.styles.d.ts.map +1 -1
- package/lib/components/leafy-green/combobox/combobox.styles.js +8 -1
- package/lib/components/leafy-green/combobox/combobox.styles.js.map +1 -1
- package/lib/components/leafy-green/combobox/util.d.ts +1 -1
- package/lib/components/leafy-green/combobox/util.d.ts.map +1 -1
- package/lib/components/leafygreen.d.ts +22 -6
- package/lib/components/leafygreen.d.ts.map +1 -1
- package/lib/components/leafygreen.js +25 -15
- package/lib/components/leafygreen.js.map +1 -1
- package/lib/components/modal-title.d.ts +1 -1
- package/lib/components/modal-title.d.ts.map +1 -1
- package/lib/components/modal-title.js.map +1 -1
- package/lib/components/placeholder.js +4 -4
- package/lib/components/placeholder.js.map +1 -1
- package/lib/components/resizeable-sidebar.d.ts +6 -1
- package/lib/components/resizeable-sidebar.d.ts.map +1 -1
- package/lib/components/resizeable-sidebar.js +46 -21
- package/lib/components/resizeable-sidebar.js.map +1 -1
- package/lib/components/tab-nav-bar.d.ts +1 -1
- 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 +2 -2
- package/lib/components/tooltip.d.ts.map +1 -1
- package/lib/components/tooltip.js +13 -4
- package/lib/components/tooltip.js.map +1 -1
- package/lib/components/virtual-grid.d.ts +1 -1
- package/lib/components/workspace-container.d.ts +1 -1
- package/lib/components/workspace-container.d.ts.map +1 -1
- package/lib/components/workspace-container.js +2 -2
- package/lib/components/workspace-container.js.map +1 -1
- package/lib/components/workspace-tabs/tab.js +3 -3
- package/lib/components/workspace-tabs/tab.js.map +1 -1
- package/lib/components/workspace-tabs/workspace-tabs.d.ts.map +1 -1
- package/lib/components/workspace-tabs/workspace-tabs.js +0 -1
- package/lib/components/workspace-tabs/workspace-tabs.js.map +1 -1
- package/lib/constants/mongodb-ace-theme-query.d.ts +1 -2
- package/lib/constants/mongodb-ace-theme-query.d.ts.map +1 -1
- package/lib/constants/mongodb-ace-theme-query.js +3 -115
- package/lib/constants/mongodb-ace-theme-query.js.map +1 -1
- package/lib/hooks/use-focus-ring.d.ts +9 -4
- package/lib/hooks/use-focus-ring.d.ts.map +1 -1
- package/lib/hooks/use-focus-ring.js +48 -10
- package/lib/hooks/use-focus-ring.js.map +1 -1
- package/lib/hooks/use-sort.d.ts.map +1 -1
- package/lib/hooks/use-sort.js +11 -9
- package/lib/hooks/use-sort.js.map +1 -1
- package/lib/hooks/use-toast.d.ts +2 -2
- package/lib/hooks/use-toast.d.ts.map +1 -1
- package/lib/hooks/use-toast.js +6 -5
- package/lib/hooks/use-toast.js.map +1 -1
- package/lib/index.d.ts +9 -5
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +18 -7
- package/lib/index.js.map +1 -1
- package/package.json +47 -44
|
@@ -10,6 +10,7 @@ import { default as LeafyGreenIconButton } from '@leafygreen-ui/icon-button';
|
|
|
10
10
|
import { AtlasLogoMark, MongoDBLogoMark, MongoDBLogo } from '@leafygreen-ui/logo';
|
|
11
11
|
import { Menu, MenuSeparator, MenuItem } from '@leafygreen-ui/menu';
|
|
12
12
|
import { default as LeafyGreenModal, Footer as LeafyGreenModalFooter } from '@leafygreen-ui/modal';
|
|
13
|
+
import Popover from '@leafygreen-ui/popover';
|
|
13
14
|
import { RadioBox, RadioBoxGroup } from '@leafygreen-ui/radio-box-group';
|
|
14
15
|
import { Radio, RadioGroup as LeafyGreenRadioGroup } from '@leafygreen-ui/radio-group';
|
|
15
16
|
import { SegmentedControlOption } from '@leafygreen-ui/segmented-control';
|
|
@@ -18,10 +19,25 @@ import { Table as LeafyGreenTable, TableHeader, Row, Cell } from '@leafygreen-ui
|
|
|
18
19
|
import { Tabs as LeafyGreenTabs, Tab } from '@leafygreen-ui/tabs';
|
|
19
20
|
import { default as LeafyGreenTextArea } from '@leafygreen-ui/text-area';
|
|
20
21
|
import { default as LeafyGreenTextInput } from '@leafygreen-ui/text-input';
|
|
21
|
-
import { default as Toast } from '@leafygreen-ui/toast';
|
|
22
|
+
import { default as Toast, Variant as ToastVariant } from '@leafygreen-ui/toast';
|
|
22
23
|
import { default as LeafyGreenToggle } from '@leafygreen-ui/toggle';
|
|
23
|
-
import {
|
|
24
|
-
|
|
24
|
+
import { H1 as LeafyGreenH1, H2 as LeafyGreenH2, H3 as LeafyGreenH3, Body as LeafyGreenBody, InlineCode as LeafyGreenInlineCode, InlineKeyCode as LeafyGreenInlineKeyCode, Disclaimer as LeafyGreenDisclaimer } from '@leafygreen-ui/typography';
|
|
25
|
+
declare const H1: typeof LeafyGreenH1;
|
|
26
|
+
declare const H2: typeof LeafyGreenH2;
|
|
27
|
+
declare const H3: typeof LeafyGreenH3;
|
|
28
|
+
declare const Subtitle: import("@leafygreen-ui/box").ExtendableBox<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, "ref"> & {
|
|
29
|
+
ref?: undefined;
|
|
30
|
+
key?: React.Key | null | undefined;
|
|
31
|
+
} & import("@leafygreen-ui/lib").DarkModeProps, "h6">;
|
|
32
|
+
declare const Body: typeof LeafyGreenBody;
|
|
33
|
+
declare const InlineCode: typeof LeafyGreenInlineCode;
|
|
34
|
+
declare const InlineKeyCode: typeof LeafyGreenInlineKeyCode;
|
|
35
|
+
declare const Disclaimer: typeof LeafyGreenDisclaimer;
|
|
36
|
+
declare const Overline: import("@leafygreen-ui/box").ExtendableBox<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
37
|
+
ref?: undefined;
|
|
38
|
+
key?: React.Key | null | undefined;
|
|
39
|
+
} & import("@leafygreen-ui/lib").DarkModeProps, "div">;
|
|
40
|
+
declare const Link: import("@leafygreen-ui/box").ExtendableBox<import("@leafygreen-ui/typography/dist/Link").LinkProps, "a">;
|
|
25
41
|
declare const Button: import("@leafygreen-ui/box").ExtendableBox<import("@leafygreen-ui/button/dist/types").ButtonProps & {
|
|
26
42
|
ref?: React.Ref<any> | undefined;
|
|
27
43
|
}, "button">;
|
|
@@ -40,7 +56,6 @@ declare const Tabs: typeof LeafyGreenTabs;
|
|
|
40
56
|
declare const TextArea: typeof LeafyGreenTextArea;
|
|
41
57
|
declare const TextInput: typeof LeafyGreenTextInput;
|
|
42
58
|
declare const Toggle: typeof LeafyGreenToggle;
|
|
43
|
-
declare const Tooltip: typeof LeafyGreenTooltip;
|
|
44
59
|
declare const Label: {
|
|
45
60
|
({ darkMode, className, children, disabled, ...rest }: Omit<React.DetailedHTMLProps<React.LabelHTMLAttributes<HTMLLabelElement>, HTMLLabelElement>, "ref"> & {
|
|
46
61
|
ref?: undefined;
|
|
@@ -53,13 +68,14 @@ declare const Label: {
|
|
|
53
68
|
displayName: string;
|
|
54
69
|
};
|
|
55
70
|
declare const Description: {
|
|
56
|
-
({ darkMode, children, className, ...rest }: Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, "ref"> & {
|
|
71
|
+
({ darkMode, disabled, children, className, ...rest }: Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, "ref"> & {
|
|
57
72
|
ref?: undefined;
|
|
58
73
|
key?: React.Key | null | undefined;
|
|
59
74
|
} & {
|
|
60
75
|
darkMode?: boolean | undefined;
|
|
76
|
+
disabled?: boolean | undefined;
|
|
61
77
|
}): JSX.Element;
|
|
62
78
|
displayName: string;
|
|
63
79
|
};
|
|
64
|
-
export { AtlasLogoMark, Badge, Banner, Button, Card, Checkbox, Code, ConfirmationModal, Icon, IconButton, Menu, MenuItem, MenuSeparator, Modal, ModalFooter, MongoDBLogoMark, MongoDBLogo, RadioBox, RadioBoxGroup, Radio, RadioGroup, SegmentedControl, SegmentedControlOption, Select, Option, OptionGroup, Table, TableHeader, Row, Cell, Tab, Tabs, TextArea, TextInput, Toast,
|
|
80
|
+
export { AtlasLogoMark, Badge, Banner, Button, Card, Checkbox, Code, ConfirmationModal, Icon, IconButton, Menu, MenuItem, MenuSeparator, Modal, ModalFooter, MongoDBLogoMark, MongoDBLogo, Popover, RadioBox, RadioBoxGroup, Radio, RadioGroup, SegmentedControl, SegmentedControlOption, Select, Option, OptionGroup, Table, TableHeader, Row, Cell, Tab, Tabs, TextArea, TextInput, Toast, ToastVariant, Toggle, H1, H2, H3, Subtitle, Body, InlineCode, InlineKeyCode, Disclaimer, Overline, Label, Link, Description, };
|
|
65
81
|
//# sourceMappingURL=leafygreen.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"leafygreen.d.ts","sourceRoot":"","sources":["../../src/components/leafygreen.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAQ/B,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,sBAAsB,CAAC;AACxD,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAE1D,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AACxE,OAAO,EAAE,OAAO,IA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C;AACjC,QAAA,MAAM,WAAW,EAAE,OAAO,qBAEO,CAAC;AAClC,QAAA,MAAM,KAAK,wBAIgB,CAAC;AAC5B,QAAA,MAAM,UAAU,EAAE,OAAO,oBAIO,CAAC;AACjC,QAAA,MAAM,gBAAgB,+JAEgB,CAAC;AACvC,QAAA,MAAM,MAAM,EAAE,OAAO,gBAIO,CAAC;AAC7B,QAAA,MAAM,KAAK,wBAAuD,CAAC;AACnE,QAAA,MAAM,IAAI,uBAIgB,CAAC;AAC3B,QAAA,MAAM,QAAQ,EAAE,OAAO,kBAAkD,CAAC;AAC1E,QAAA,MAAM,SAAS,EAAE,OAAO,mBAAoD,CAAC;AAC7E,QAAA,MAAM,MAAM,yBAIgB,CAAC;AAC7B,QAAA,MAAM,KAAK;;;;;;;;;;CAAuD,CAAC;AACnE,QAAA,MAAM,WAAW;;;;;;;;;CAEgB,CAAC;AAGlC,OAAO,EACL,aAAa,EACb,KAAK,EACL,MAAM,EACN,MAAM,EACN,IAAI,EACJ,QAAQ,EACR,IAAI,EACJ,iBAAiB,EACjB,IAAI,EACJ,UAAU,EACV,IAAI,EACJ,QAAQ,EACR,aAAa,EACb,KAAK,EACL,WAAW,EACX,eAAe,EACf,WAAW,EACX,OAAO,EACP,QAAQ,EACR,aAAa,EACb,KAAK,EACL,UAAU,EACV,gBAAgB,EAChB,sBAAsB,EACtB,MAAM,EACN,MAAM,EACN,WAAW,EACX,KAAK,EACL,WAAW,EACX,GAAG,EACH,IAAI,EACJ,GAAG,EACH,IAAI,EACJ,QAAQ,EACR,SAAS,EACT,KAAK,EACL,YAAY,EACZ,MAAM,EACN,EAAE,EACF,EAAE,EACF,EAAE,EACF,QAAQ,EACR,IAAI,EACJ,UAAU,EACV,aAAa,EACb,UAAU,EACV,QAAQ,EACR,KAAK,EACL,IAAI,EACJ,WAAW,GACZ,CAAC"}
|
|
@@ -26,7 +26,7 @@ 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.Description = exports.Link = exports.Label = exports.Overline = exports.Disclaimer = exports.InlineKeyCode = exports.InlineCode = exports.Body = exports.Subtitle = exports.H3 = exports.H2 = exports.H1 = exports.
|
|
29
|
+
exports.Description = exports.Link = exports.Label = exports.Overline = exports.Disclaimer = exports.InlineKeyCode = exports.InlineCode = exports.Body = exports.Subtitle = exports.H3 = exports.H2 = exports.H1 = exports.Toggle = exports.ToastVariant = exports.Toast = exports.TextInput = exports.TextArea = exports.Tabs = exports.Tab = exports.Cell = exports.Row = exports.TableHeader = exports.Table = exports.OptionGroup = exports.Option = exports.Select = exports.SegmentedControlOption = exports.SegmentedControl = exports.RadioGroup = exports.Radio = exports.RadioBoxGroup = exports.RadioBox = exports.Popover = exports.MongoDBLogo = exports.MongoDBLogoMark = exports.ModalFooter = exports.Modal = exports.MenuSeparator = exports.MenuItem = exports.Menu = exports.IconButton = exports.Icon = exports.ConfirmationModal = exports.Code = exports.Checkbox = exports.Card = exports.Button = exports.Banner = exports.Badge = exports.AtlasLogoMark = void 0;
|
|
30
30
|
const use_theme_1 = require("../hooks/use-theme");
|
|
31
31
|
const badge_1 = __importDefault(require("@leafygreen-ui/badge"));
|
|
32
32
|
Object.defineProperty(exports, "Badge", { enumerable: true, get: function () { return badge_1.default; } });
|
|
@@ -49,6 +49,8 @@ Object.defineProperty(exports, "Menu", { enumerable: true, get: function () { re
|
|
|
49
49
|
Object.defineProperty(exports, "MenuSeparator", { enumerable: true, get: function () { return menu_1.MenuSeparator; } });
|
|
50
50
|
Object.defineProperty(exports, "MenuItem", { enumerable: true, get: function () { return menu_1.MenuItem; } });
|
|
51
51
|
const modal_1 = __importStar(require("@leafygreen-ui/modal"));
|
|
52
|
+
const popover_1 = __importDefault(require("@leafygreen-ui/popover"));
|
|
53
|
+
exports.Popover = popover_1.default;
|
|
52
54
|
const radio_box_group_1 = require("@leafygreen-ui/radio-box-group");
|
|
53
55
|
Object.defineProperty(exports, "RadioBox", { enumerable: true, get: function () { return radio_box_group_1.RadioBox; } });
|
|
54
56
|
Object.defineProperty(exports, "RadioBoxGroup", { enumerable: true, get: function () { return radio_box_group_1.RadioBoxGroup; } });
|
|
@@ -67,21 +69,31 @@ const tabs_1 = require("@leafygreen-ui/tabs");
|
|
|
67
69
|
Object.defineProperty(exports, "Tab", { enumerable: true, get: function () { return tabs_1.Tab; } });
|
|
68
70
|
const text_area_1 = __importDefault(require("@leafygreen-ui/text-area"));
|
|
69
71
|
const text_input_1 = __importDefault(require("@leafygreen-ui/text-input"));
|
|
70
|
-
const toast_1 =
|
|
72
|
+
const toast_1 = __importStar(require("@leafygreen-ui/toast"));
|
|
71
73
|
Object.defineProperty(exports, "Toast", { enumerable: true, get: function () { return toast_1.default; } });
|
|
74
|
+
Object.defineProperty(exports, "ToastVariant", { enumerable: true, get: function () { return toast_1.Variant; } });
|
|
72
75
|
const toggle_1 = __importDefault(require("@leafygreen-ui/toggle"));
|
|
73
|
-
const tooltip_1 = __importDefault(require("@leafygreen-ui/tooltip"));
|
|
74
76
|
const typography_1 = require("@leafygreen-ui/typography");
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
77
|
+
const H1 = (0, use_theme_1.withTheme)(typography_1.H1);
|
|
78
|
+
exports.H1 = H1;
|
|
79
|
+
const H2 = (0, use_theme_1.withTheme)(typography_1.H2);
|
|
80
|
+
exports.H2 = H2;
|
|
81
|
+
const H3 = (0, use_theme_1.withTheme)(typography_1.H3);
|
|
82
|
+
exports.H3 = H3;
|
|
83
|
+
const Subtitle = (0, use_theme_1.withTheme)(typography_1.Subtitle);
|
|
84
|
+
exports.Subtitle = Subtitle;
|
|
85
|
+
const Body = (0, use_theme_1.withTheme)(typography_1.Body);
|
|
86
|
+
exports.Body = Body;
|
|
87
|
+
const InlineCode = (0, use_theme_1.withTheme)(typography_1.InlineCode);
|
|
88
|
+
exports.InlineCode = InlineCode;
|
|
89
|
+
const InlineKeyCode = (0, use_theme_1.withTheme)(typography_1.InlineKeyCode);
|
|
90
|
+
exports.InlineKeyCode = InlineKeyCode;
|
|
91
|
+
const Disclaimer = (0, use_theme_1.withTheme)(typography_1.Disclaimer);
|
|
92
|
+
exports.Disclaimer = Disclaimer;
|
|
93
|
+
const Overline = (0, use_theme_1.withTheme)(typography_1.Overline);
|
|
94
|
+
exports.Overline = Overline;
|
|
95
|
+
const Link = (0, use_theme_1.withTheme)(typography_1.Link);
|
|
96
|
+
exports.Link = Link;
|
|
85
97
|
const Button = (0, use_theme_1.withTheme)(button_1.default);
|
|
86
98
|
exports.Button = Button;
|
|
87
99
|
const Card = (0, use_theme_1.withTheme)(card_1.default);
|
|
@@ -114,8 +126,6 @@ const TextInput = (0, use_theme_1.withTheme)(text_input_1.default);
|
|
|
114
126
|
exports.TextInput = TextInput;
|
|
115
127
|
const Toggle = (0, use_theme_1.withTheme)(toggle_1.default);
|
|
116
128
|
exports.Toggle = Toggle;
|
|
117
|
-
const Tooltip = (0, use_theme_1.withTheme)(tooltip_1.default);
|
|
118
|
-
exports.Tooltip = Tooltip;
|
|
119
129
|
const Label = (0, use_theme_1.withTheme)(typography_1.Label);
|
|
120
130
|
exports.Label = Label;
|
|
121
131
|
const Description = (0, use_theme_1.withTheme)(typography_1.Description);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"leafygreen.js","sourceRoot":"","sources":["../../src/components/leafygreen.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,kDAA+C;AAM/C,iEAAwD;
|
|
1
|
+
{"version":3,"file":"leafygreen.js","sourceRoot":"","sources":["../../src/components/leafygreen.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,kDAA+C;AAM/C,iEAAwD;AA8J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+C1B,sBAAK;AA9CP,MAAM,UAAU,GAAgC,IAAA,qBAAS,EACvD,wBAEC,CAC6B,CAAC;AAkD/B,gCAAU;AAjDZ,MAAM,gBAAgB,GAAG,IAAA,qBAAS,EAChC,oCAA0B,CACU,CAAC;AAgDrC,4CAAgB;AA/ClB,MAAM,MAAM,GAA4B,IAAA,qBAAS,EAC/C,eAEC,CACyB,CAAC;AA6C3B,wBAAM;AA5CR,MAAM,KAAK,GAAG,IAAA,qBAAS,EAAC,aAAe,CAA2B,CAAC;AA+CjE,sBAAK;AA9CP,MAAM,IAAI,GAAG,IAAA,qBAAS,EACpB,WAEC,CACuB,CAAC;AA+CzB,oBAAI;AA9CN,MAAM,QAAQ,GAA8B,IAAA,qBAAS,EAAC,mBAAkB,CAAC,CAAC;AA+CxE,4BAAQ;AA9CV,MAAM,SAAS,GAA+B,IAAA,qBAAS,EAAC,oBAAmB,CAAC,CAAC;AA+C3E,8BAAS;AA9CX,MAAM,MAAM,GAAG,IAAA,qBAAS,EACtB,gBAEC,CACyB,CAAC;AA6C3B,wBAAM;AA5CR,MAAM,KAAK,GAAG,IAAA,qBAAS,EAAC,kBAAe,CAA2B,CAAC;AAsDjE,sBAAK;AArDP,MAAM,WAAW,GAAG,IAAA,qBAAS,EAC3B,wBAAqB,CACU,CAAC;AAqDhC,kCAAW"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { H3 } from './leafygreen';
|
|
3
|
-
declare function ModalTitle(props: React.ComponentProps<typeof H3>): React.ReactElement;
|
|
3
|
+
declare function ModalTitle(props: Omit<React.ComponentProps<typeof H3>, 'as'>): React.ReactElement;
|
|
4
4
|
export { ModalTitle };
|
|
5
5
|
//# sourceMappingURL=modal-title.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
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,KAAK,CAAC,cAAc,CAAC,OAAO,EAAE,CAAC,
|
|
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 +1 @@
|
|
|
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,
|
|
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"}
|
|
@@ -40,8 +40,8 @@ const move = (0, emotion_1.keyframes)({
|
|
|
40
40
|
},
|
|
41
41
|
});
|
|
42
42
|
const placeholder = (0, emotion_1.css)({
|
|
43
|
-
'--gradient-start': palette_1.uiColors.gray.
|
|
44
|
-
'--gradient-end':
|
|
43
|
+
'--gradient-start': palette_1.uiColors.gray.light2,
|
|
44
|
+
'--gradient-end': palette_1.uiColors.gray.light3,
|
|
45
45
|
alignSelf: 'center',
|
|
46
46
|
borderRadius: 3,
|
|
47
47
|
maxWidth: '80%',
|
|
@@ -58,8 +58,8 @@ const placeholder = (0, emotion_1.css)({
|
|
|
58
58
|
animation: `${move} ${scale}s infinite linear`,
|
|
59
59
|
});
|
|
60
60
|
const placeholderDarkMode = (0, emotion_1.css)({
|
|
61
|
-
'--gradient-start':
|
|
62
|
-
'--gradient-end':
|
|
61
|
+
'--gradient-start': palette_1.uiColors.gray.dark2,
|
|
62
|
+
'--gradient-end': palette_1.uiColors.gray.dark3,
|
|
63
63
|
});
|
|
64
64
|
function getBoundRandom(min, max) {
|
|
65
65
|
return Math.random() * (max - min) + min;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"placeholder.js","sourceRoot":"","sources":["../../src/components/placeholder.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,+CAAuC;AACvC,oDAA4D;AAC5D,kDAAgD;AAChD,oDAAkD;AAClD,kDAA+C;AAG/C,MAAM,KAAK,GAAG,CAAC,CAAC;AAEhB,MAAM,OAAO,GAAG,CAAC,GAAW,EAAU,EAAE,CAAC,CAAC,GAAG,GAAG,GAAG,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,GAAG,GAAG,CAAC;AAEtE,MAAM,IAAI,GAAG,IAAA,mBAAS,EAAC;IACrB,IAAI,EAAE;QACJ,kBAAkB,EAAE,GAAG,OAAO,CAAC,KAAK,CAAC,IAAI;KAC1C;IACD,EAAE,EAAE;QACF,kBAAkB,EAAE,KAAK;KAC1B;CACF,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,aAAG,EAAC;IAC9B,kBAAkB,EAAE,kBAAQ,CAAC,IAAI,CAAC,KAAK;IACvC,gBAAgB,EAAE,kBAAQ,CAAC,IAAI,CAAC,KAAK;CACtC,CAAC,CAAC;AAEH,SAAS,cAAc,CAAC,GAAW,EAAE,GAAW;IAC9C,OAAO,IAAI,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,GAAG,GAAG,CAAC,GAAG,GAAG,CAAC;AAC3C,CAAC;AAED,MAAM,mBAAmB,GAWrB,CAAC,EACH,SAAS,EACT,OAAO,GAAG,CAAC,EACX,OAAO,GAAG,EAAE,EACZ,KAAK,EAAE,UAAU,EACjB,MAAM,EAAE,WAAW,GAAG,gBAAO,CAAC,CAAC,CAAC,EAChC,QAAQ,EACR,GAAG,KAAK,EACT,EAAE,EAAE;IACH,MAAM,KAAK,GAAG,IAAA,eAAO,EAAC,GAAG,EAAE;QACzB,OAAO,UAAU,IAAI,GAAG,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC;IAC3E,CAAC,EAAE,CAAC,OAAO,EAAE,OAAO,EAAE,UAAU,CAAC,CAAC,CAAC;IAEnC,OAAO,CACL,0CACM,KAAK,EACT,IAAI,EAAC,cAAc,iBACP,aAAa,EACzB,SAAS,EAAE,IAAA,YAAE,EAAC,WAAW,EAAE,SAAS,EAAE,QAAQ,IAAI,mBAAmB,CAAC,EACtE,KAAK,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE,WAAW,EAAE,GAChC,CACR,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,WAAW,GAAG,IAAA,qBAAS,EAAC,mBAAmB,CAAC,CAAC;AAE1C,kCAAW"}
|
|
@@ -1,7 +1,12 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
declare const
|
|
2
|
+
export declare const defaultSidebarWidth: number;
|
|
3
|
+
declare const ResizableSidebar: ({ collapsable, expanded, setExpanded, initialWidth, minWidth, collapsedWidth, children, }: {
|
|
4
|
+
collapsable?: boolean | undefined;
|
|
5
|
+
expanded?: boolean | undefined;
|
|
6
|
+
setExpanded?: ((isExpaned: boolean) => void) | undefined;
|
|
3
7
|
initialWidth?: number | undefined;
|
|
4
8
|
minWidth?: number | undefined;
|
|
9
|
+
collapsedWidth?: number | undefined;
|
|
5
10
|
children: JSX.Element;
|
|
6
11
|
}) => JSX.Element;
|
|
7
12
|
export default ResizableSidebar;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resizeable-sidebar.d.ts","sourceRoot":"","sources":["../../src/components/resizeable-sidebar.tsx"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"resizeable-sidebar.d.ts","sourceRoot":"","sources":["../../src/components/resizeable-sidebar.tsx"],"names":[],"mappings":";AAwDA,eAAO,MAAM,mBAAmB,QAAiB,CAAC;AAElD,QAAA,MAAM,gBAAgB;;;+BAaM,OAAO,KAAK,IAAI;;;;cAIhC,WAAW;MACnB,WAuEH,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
|
|
@@ -23,11 +23,14 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
23
23
|
return result;
|
|
24
24
|
};
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
+
exports.defaultSidebarWidth = void 0;
|
|
26
27
|
const react_1 = __importStar(require("react"));
|
|
27
|
-
const index_1 = require("../index");
|
|
28
28
|
const palette_1 = require("@leafygreen-ui/palette");
|
|
29
29
|
const tokens_1 = require("@leafygreen-ui/tokens");
|
|
30
|
-
const
|
|
30
|
+
const emotion_1 = require("@leafygreen-ui/emotion");
|
|
31
|
+
const use_theme_1 = require("../hooks/use-theme");
|
|
32
|
+
const resize_handle_1 = require("./resize-handle");
|
|
33
|
+
const containerStyles = (0, emotion_1.css)({
|
|
31
34
|
display: 'flex',
|
|
32
35
|
flexDirection: 'column',
|
|
33
36
|
margin: 0,
|
|
@@ -36,49 +39,71 @@ const containerStyles = (0, index_1.css)({
|
|
|
36
39
|
height: '100%',
|
|
37
40
|
position: 'relative',
|
|
38
41
|
});
|
|
39
|
-
const containerStylesDark = (0,
|
|
42
|
+
const containerStylesDark = (0, emotion_1.css)({
|
|
40
43
|
'--color': 'white',
|
|
41
44
|
'--bg-color': palette_1.uiColors.gray.dark3,
|
|
45
|
+
'--title-color': palette_1.uiColors.gray.dark3,
|
|
46
|
+
'--title-bg-color': '#71F6BA',
|
|
42
47
|
'--icon-color': 'white',
|
|
43
|
-
'--hover-icon-color': 'white',
|
|
44
48
|
'--item-color': 'white',
|
|
45
|
-
'--item-color-
|
|
46
|
-
'--item-color
|
|
47
|
-
'--item-bg-color': palette_1.uiColors.gray.dark2,
|
|
48
|
-
'--item-bg-color-
|
|
49
|
-
'--item-bg-color-active': palette_1.uiColors.gray.dark1,
|
|
49
|
+
'--item-color-active': '#71F6BA',
|
|
50
|
+
'--item-bg-color': palette_1.uiColors.gray.dark3,
|
|
51
|
+
'--item-bg-color-hover': palette_1.uiColors.gray.dark2,
|
|
52
|
+
'--item-bg-color-active': palette_1.uiColors.black,
|
|
50
53
|
color: 'var(--color)',
|
|
51
54
|
backgroundColor: 'var(--bg-color)',
|
|
52
55
|
});
|
|
53
|
-
const containerStylesLight = (0,
|
|
56
|
+
const containerStylesLight = (0, emotion_1.css)({
|
|
54
57
|
'--color': palette_1.uiColors.gray.dark3,
|
|
55
58
|
'--bg-color': palette_1.uiColors.gray.light3,
|
|
59
|
+
'--title-color': 'white',
|
|
60
|
+
'--title-bg-color': palette_1.uiColors.green.dark2,
|
|
56
61
|
'--icon-color': palette_1.uiColors.gray.dark3,
|
|
57
|
-
'--hover-icon-color': palette_1.uiColors.gray.dark1,
|
|
58
62
|
'--item-color': palette_1.uiColors.gray.dark3,
|
|
59
|
-
'--item-color-hover': palette_1.uiColors.gray.dark3,
|
|
60
63
|
'--item-color-active': palette_1.uiColors.green.dark2,
|
|
61
64
|
'--item-bg-color': palette_1.uiColors.gray.light3,
|
|
62
|
-
'--item-bg-color-hover': palette_1.uiColors.
|
|
65
|
+
'--item-bg-color-hover': palette_1.uiColors.gray.light2,
|
|
63
66
|
'--item-bg-color-active': palette_1.uiColors.green.light3,
|
|
64
67
|
color: 'var(--color)',
|
|
65
68
|
backgroundColor: 'var(--bg-color)',
|
|
66
69
|
});
|
|
67
|
-
|
|
68
|
-
const
|
|
69
|
-
|
|
70
|
+
exports.defaultSidebarWidth = tokens_1.spacing[6] * 4;
|
|
71
|
+
const ResizableSidebar = ({ collapsable = false, expanded = true, setExpanded = () => {
|
|
72
|
+
return;
|
|
73
|
+
}, initialWidth = exports.defaultSidebarWidth, minWidth = 210, collapsedWidth = 48, children, }) => {
|
|
70
74
|
const [width, setWidth] = (0, react_1.useState)(initialWidth);
|
|
75
|
+
const [prevWidth, setPrevWidth] = (0, react_1.useState)(initialWidth);
|
|
71
76
|
const getMaxSidebarWidth = (0, react_1.useCallback)(() => {
|
|
72
77
|
return Math.max(minWidth, window.innerWidth - 100);
|
|
73
78
|
}, [minWidth]);
|
|
74
|
-
const
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
79
|
+
const boundSidebarWidth = (0, react_1.useCallback)((attemptedWidth) => {
|
|
80
|
+
const maxWidth = getMaxSidebarWidth();
|
|
81
|
+
return Math.min(maxWidth, Math.max(minWidth, attemptedWidth));
|
|
82
|
+
}, [getMaxSidebarWidth, minWidth]);
|
|
83
|
+
const updateWidth = (0, react_1.useCallback)((newWidth) => {
|
|
84
|
+
setWidth(newWidth);
|
|
85
|
+
const expectedExpanded = width > minWidth || !collapsable;
|
|
86
|
+
if (expanded !== expectedExpanded) {
|
|
87
|
+
setExpanded(expectedExpanded);
|
|
88
|
+
}
|
|
89
|
+
if (expectedExpanded) {
|
|
90
|
+
setPrevWidth(newWidth);
|
|
91
|
+
}
|
|
92
|
+
}, [collapsable, expanded, minWidth, setExpanded, width]);
|
|
93
|
+
const renderedWidth = expanded ? boundSidebarWidth(width) : collapsedWidth;
|
|
94
|
+
(0, react_1.useEffect)(() => {
|
|
95
|
+
if (expanded && width === collapsedWidth) {
|
|
96
|
+
setWidth(prevWidth);
|
|
97
|
+
}
|
|
98
|
+
}, [setWidth, prevWidth, expanded, width, collapsedWidth]);
|
|
99
|
+
const { theme } = (0, use_theme_1.useTheme)();
|
|
100
|
+
return (react_1.default.createElement("div", { className: (0, emotion_1.cx)(containerStyles, theme === use_theme_1.Theme.Dark ? containerStylesDark : containerStylesLight), style: {
|
|
101
|
+
minWidth: collapsable ? collapsedWidth : minWidth,
|
|
102
|
+
width: renderedWidth,
|
|
78
103
|
flex: 'none',
|
|
79
104
|
} },
|
|
80
105
|
children,
|
|
81
|
-
react_1.default.createElement(
|
|
106
|
+
react_1.default.createElement(resize_handle_1.ResizeHandle, { onChange: updateWidth, direction: resize_handle_1.ResizeDirection.RIGHT, value: width, minValue: collapsable ? collapsedWidth : minWidth, maxValue: getMaxSidebarWidth(), title: "sidebar" })));
|
|
82
107
|
};
|
|
83
108
|
exports.default = ResizableSidebar;
|
|
84
109
|
//# sourceMappingURL=resizeable-sidebar.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resizeable-sidebar.js","sourceRoot":"","sources":["../../src/components/resizeable-sidebar.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"resizeable-sidebar.js","sourceRoot":"","sources":["../../src/components/resizeable-sidebar.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+CAAgE;AAEhE,oDAAkD;AAClD,kDAAgD;AAChD,oDAAiD;AACjD,kDAAqD;AACrD,mDAAgE;AAEhE,MAAM,eAAe,GAAG,IAAA,aAAG,EAAC;IAC1B,OAAO,EAAE,MAAM;IACf,aAAa,EAAE,QAAQ;IACvB,MAAM,EAAE,CAAC;IACT,OAAO,EAAE,CAAC;IACV,QAAQ,EAAE,KAAK;IACf,MAAM,EAAE,MAAM;IACd,QAAQ,EAAE,UAAU;CACrB,CAAC,CAAC;AAEH,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IACpB,
|
|
1
|
+
{"version":3,"file":"tab-nav-bar.d.ts","sourceRoot":"","sources":["../../src/components/tab-nav-bar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAmC1B,aAAK,cAAc,GAAG;IACpB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,YAAY,EAAE,MAAM,CAAC;IACrB,cAAc,EAAE,MAAM,CAAC;IACvB,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,IAAI,EAAE,MAAM,EAAE,CAAC;IACf,KAAK,EAAE,GAAG,CAAC,OAAO,EAAE,CAAC;IACrB,YAAY,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;CAC1C,CAAC;AA6DF,QAAA,MAAM,SAAS,qCAA+B,CAAC;AAE/C,OAAO,EAAE,SAAS,EAAE,CAAC"}
|
|
@@ -32,13 +32,13 @@ const tabsContainerLightStyles = (0, emotion_1.css)({
|
|
|
32
32
|
const hiddenStyles = (0, emotion_1.css)({
|
|
33
33
|
display: 'none',
|
|
34
34
|
});
|
|
35
|
-
function UnthemedTabNavBar({ 'data-
|
|
35
|
+
function UnthemedTabNavBar({ 'data-testid': dataTestId, 'aria-label': ariaLabel, activeTabIndex, darkMode, mountAllViews, tabs, views, onTabClicked, }) {
|
|
36
36
|
return (react_1.default.createElement("div", { className: containerStyles },
|
|
37
37
|
react_1.default.createElement("div", { className: (0, emotion_1.cx)(tabsContainerStyles, darkMode ? tabsContainerDarkStyles : tabsContainerLightStyles) },
|
|
38
|
-
react_1.default.createElement(leafygreen_1.Tabs, { "data-
|
|
38
|
+
react_1.default.createElement(leafygreen_1.Tabs, { "data-testid": dataTestId, "aria-label": ariaLabel, className: "test-tab-nav-bar-tabs", setSelected: onTabClicked, selected: activeTabIndex }, tabs.map((tab, idx) => (react_1.default.createElement(leafygreen_1.Tab, { className: "test-tab-nav-bar-tab", key: `tab-${idx}`, name: tab }))))),
|
|
39
39
|
views.map((view, idx) => (mountAllViews || idx === activeTabIndex) && (react_1.default.createElement(workspace_container_1.WorkspaceContainer, { className: (0, emotion_1.cx)({
|
|
40
40
|
[hiddenStyles]: idx !== activeTabIndex,
|
|
41
|
-
}), key: `tab-content-${tabs[idx]}`, "data-
|
|
41
|
+
}), key: `tab-content-${tabs[idx]}`, "data-testid": `${tabs[idx]
|
|
42
42
|
.toLowerCase()
|
|
43
43
|
.replace(/ /g, '-')}-content` }, view)))));
|
|
44
44
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tab-nav-bar.js","sourceRoot":"","sources":["../../src/components/tab-nav-bar.tsx"],"names":[],"mappings":";;;;;;AAAA,kDAA0B;AAC1B,oDAAiD;AACjD,kDAAgD;AAChD,oDAAkD;AAElD,+DAA2D;AAC3D,kDAA+C;AAC/C,6CAAyC;AAEzC,MAAM,eAAe,GAAG,IAAA,aAAG,EAAC;IAC1B,QAAQ,EAAE,CAAC;IACX,UAAU,EAAE,CAAC;IACb,SAAS,EAAE,MAAM;IACjB,OAAO,EAAE,MAAM;IACf,aAAa,EAAE,QAAQ;IACvB,UAAU,EAAE,SAAS;IACrB,QAAQ,EAAE,MAAM;CACjB,CAAC,CAAC;AAEH,MAAM,mBAAmB,GAAG,IAAA,aAAG,EAAC;IAC9B,OAAO,EAAE,KAAK,gBAAO,CAAC,CAAC,CAAC,IAAI;CAC7B,CAAC,CAAC;AAEH,MAAM,uBAAuB,GAAG,IAAA,aAAG,EAAC;IAClC,UAAU,EAAE,kBAAQ,CAAC,IAAI,CAAC,KAAK;CAChC,CAAC,CAAC;AAEH,MAAM,wBAAwB,GAAG,IAAA,aAAG,EAAC;IACnC,UAAU,EAAE,kBAAQ,CAAC,KAAK;CAC3B,CAAC,CAAC;AAEH,MAAM,YAAY,GAAG,IAAA,aAAG,EAAC;IACvB,OAAO,EAAE,MAAM;CAChB,CAAC,CAAC;AAkBH,SAAS,iBAAiB,CAAC,EACzB,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AuB,EACjC,WAAW,EAAE,YAAY,EACzB,QAAQ,EAAE,cAAc,IAEvB,IAAI,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,GAAG,EAAE,EAAE,CAAC,CACtB,8BAAC,gBAAG,IACF,SAAS,EAAC,sBAAsB,EAChC,GAAG,EAAE,OAAO,GAAG,EAAE,EACjB,IAAI,EAAE,GAAG,GACT,CACH,CAAC,CACG,CACH;QACL,KAAK,CAAC,GAAG,CACR,CAAC,IAAI,EAAE,GAAG,EAAE,EAAE,CACZ,CAAC,aAAa,IAAI,GAAG,KAAK,cAAc,CAAC,IAAI,CAC3C,8BAAC,wCAAkB,IACjB,SAAS,EAAE,IAAA,YAAE,EAAC;gBACZ,CAAC,YAAY,CAAC,EAAE,GAAG,KAAK,cAAc;aACvC,CAAC,EACF,GAAG,EAAE,eAAe,IAAI,CAAC,GAAG,CAAC,EAAE,iBAClB,GAAG,IAAI,CAAC,GAAG,CAAC;iBACtB,WAAW,EAAE;iBACb,OAAO,CAAC,IAAI,EAAE,GAAG,CAAC,UAAU,IAE9B,IAAI,CACc,CACtB,CACJ,CACG,CACP,CAAC;AACJ,CAAC;AAED,MAAM,SAAS,GAAG,IAAA,qBAAS,EAAC,iBAAiB,CAAC,CAAC;AAEtC,8BAAS"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import
|
|
2
|
+
import LeafyGreenTooltip from '@leafygreen-ui/tooltip';
|
|
3
3
|
declare type TooltipTriggerProps = {
|
|
4
4
|
isDisabled?: boolean;
|
|
5
5
|
delay?: number;
|
|
@@ -7,7 +7,7 @@ declare type TooltipTriggerProps = {
|
|
|
7
7
|
};
|
|
8
8
|
declare type LeafyGreenTooltipProps = React.ComponentPropsWithoutRef<typeof LeafyGreenTooltip>;
|
|
9
9
|
declare type TooltipTrigger = React.FunctionComponent;
|
|
10
|
-
declare const Tooltip: React.FunctionComponent<TooltipTriggerProps & Omit<LeafyGreenTooltipProps, '
|
|
10
|
+
declare const Tooltip: React.FunctionComponent<TooltipTriggerProps & Omit<LeafyGreenTooltipProps, 'trigger'> & {
|
|
11
11
|
trigger: TooltipTrigger;
|
|
12
12
|
}>;
|
|
13
13
|
export { Tooltip };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tooltip.d.ts","sourceRoot":"","sources":["../../src/components/tooltip.tsx"],"names":[],"mappings":"AAGA,OAAO,KAA8B,MAAM,OAAO,CAAC;AACnD,OAAO,
|
|
1
|
+
{"version":3,"file":"tooltip.d.ts","sourceRoot":"","sources":["../../src/components/tooltip.tsx"],"names":[],"mappings":"AAGA,OAAO,KAA8B,MAAM,OAAO,CAAC;AACnD,OAAO,iBAAiB,MAAM,wBAAwB,CAAC;AAOvD,aAAK,mBAAmB,GAAG;IACzB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB,CAAC;AAKF,aAAK,sBAAsB,GAAG,KAAK,CAAC,wBAAwB,CAC1D,OAAO,iBAAiB,CACzB,CAAC;AAEF,aAAK,cAAc,GAAG,KAAK,CAAC,iBAAiB,CAAC;AAE9C,QAAA,MAAM,OAAO,EAAE,KAAK,CAAC,iBAAiB,CACpC,mBAAmB,GACjB,IAAI,CAAC,sBAAsB,EAAE,SAAS,CAAC,GAAG;IACxC,OAAO,EAAE,cAAc,CAAC;CACzB,CAgDJ,CAAC;AAEF,OAAO,EAAE,OAAO,EAAE,CAAC"}
|
|
@@ -22,14 +22,19 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
22
22
|
__setModuleDefault(result, mod);
|
|
23
23
|
return result;
|
|
24
24
|
};
|
|
25
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
26
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
|
+
};
|
|
25
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
29
|
exports.Tooltip = void 0;
|
|
27
30
|
const tooltip_1 = require("@react-stately/tooltip");
|
|
28
31
|
const tooltip_2 = require("@react-aria/tooltip");
|
|
29
32
|
const react_1 = __importStar(require("react"));
|
|
30
|
-
const
|
|
33
|
+
const tooltip_3 = __importDefault(require("@leafygreen-ui/tooltip"));
|
|
31
34
|
const merge_props_1 = require("../utils/merge-props");
|
|
32
|
-
const
|
|
35
|
+
const use_theme_1 = require("../hooks/use-theme");
|
|
36
|
+
const Tooltip = ({ isDisabled, triggerOn, delay, trigger, children, ...rest }) => {
|
|
37
|
+
const theme = (0, use_theme_1.useTheme)();
|
|
33
38
|
const ref = (0, react_1.useRef)(null);
|
|
34
39
|
const tooltipState = (0, tooltip_1.useTooltipTriggerState)({
|
|
35
40
|
isDisabled,
|
|
@@ -45,9 +50,13 @@ const Tooltip = ({ isDisabled, triggerOn, delay, trigger, ...rest }) => {
|
|
|
45
50
|
tooltipState.close();
|
|
46
51
|
}
|
|
47
52
|
}, [tooltipState]);
|
|
48
|
-
return (react_1.default.createElement(
|
|
53
|
+
return (react_1.default.createElement(tooltip_3.default, { darkMode: theme.theme === use_theme_1.Theme.Dark, open: !isDisabled && tooltipState.isOpen, setOpen: setOpen, trigger: ({ children, className }) => {
|
|
49
54
|
return trigger((0, merge_props_1.mergeProps)({ children, className }, triggerProps));
|
|
50
|
-
}, ...rest, ...tooltipProps }
|
|
55
|
+
}, ...rest, ...tooltipProps },
|
|
56
|
+
react_1.default.createElement(use_theme_1.ThemeProvider, { theme: {
|
|
57
|
+
enabled: true,
|
|
58
|
+
theme: theme.theme === use_theme_1.Theme.Dark ? use_theme_1.Theme.Light : use_theme_1.Theme.Dark,
|
|
59
|
+
} }, children)));
|
|
51
60
|
};
|
|
52
61
|
exports.Tooltip = Tooltip;
|
|
53
62
|
//# sourceMappingURL=tooltip.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tooltip.js","sourceRoot":"","sources":["../../src/components/tooltip.tsx"],"names":[],"mappings":"
|
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,EAAE,YAAY,CAAC,CAAC,CAAC;QACpE,CAAC,KACG,IAAI,KACJ,YAAY;QAEhB,8BAAC,yBAAa,IACZ,KAAK,EAAE;gBACL,OAAO,EAAE,IAAI;gBAEb,KAAK,EAAE,KAAK,CAAC,KAAK,KAAK,iBAAK,CAAC,IAAI,CAAC,CAAC,CAAC,iBAAK,CAAC,KAAK,CAAC,CAAC,CAAC,iBAAK,CAAC,IAAI;aAC7D,IAEA,QAAQ,CACK,CACE,CACrB,CAAC;AACJ,CAAC,CAAC;AAEO,0BAAO"}
|
|
@@ -25,6 +25,6 @@ declare type VirtualGridProps = {
|
|
|
25
25
|
};
|
|
26
26
|
resetActiveItemOnBlur?: boolean;
|
|
27
27
|
};
|
|
28
|
-
export declare const VirtualGrid: React.ForwardRefExoticComponent<Pick<VirtualGridProps & Omit<React.HTMLProps<HTMLDivElement>, keyof VirtualGridProps>, "children" | "value" | "key" | "cite" | "data" | "form" | "label" | "slot" | "span" | "style" | "summary" | "title" | "pattern" | "list" | "size" | "default" | "
|
|
28
|
+
export declare const VirtualGrid: React.ForwardRefExoticComponent<Pick<VirtualGridProps & Omit<React.HTMLProps<HTMLDivElement>, keyof VirtualGridProps>, "children" | "value" | "key" | "cite" | "data" | "form" | "label" | "slot" | "span" | "style" | "summary" | "title" | "pattern" | "list" | "size" | "default" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "download" | "href" | "hrefLang" | "media" | "rel" | "target" | "type" | "as" | "height" | "max" | "method" | "min" | "name" | "width" | "crossOrigin" | "classID" | "useMap" | "wmode" | "integrity" | "sizes" | "charSet" | "alt" | "coords" | "shape" | "autoPlay" | "controls" | "loop" | "mediaGroup" | "muted" | "playsInline" | "preload" | "src" | "autoFocus" | "disabled" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "dateTime" | "open" | "acceptCharset" | "action" | "autoComplete" | "encType" | "noValidate" | "manifest" | "allowFullScreen" | "allowTransparency" | "frameBorder" | "marginHeight" | "marginWidth" | "sandbox" | "scrolling" | "seamless" | "srcDoc" | "srcSet" | "async" | "accept" | "capture" | "checked" | "maxLength" | "minLength" | "multiple" | "readOnly" | "required" | "step" | "challenge" | "keyType" | "keyParams" | "htmlFor" | "content" | "httpEquiv" | "high" | "low" | "optimum" | "reversed" | "start" | "selected" | "defer" | "nonce" | "scoped" | "cellPadding" | "cellSpacing" | "colSpan" | "headers" | "rowSpan" | "scope" | "cols" | "rows" | "wrap" | "kind" | "srcLang" | "poster" | keyof VirtualGridProps> & React.RefAttributes<HTMLDivElement>>;
|
|
29
29
|
export {};
|
|
30
30
|
//# sourceMappingURL=virtual-grid.d.ts.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
declare type WorkspaceContainerProps = {
|
|
3
3
|
darkMode?: boolean;
|
|
4
|
-
'data-
|
|
4
|
+
'data-testid'?: string;
|
|
5
5
|
};
|
|
6
6
|
declare const WorkspaceContainer: React.ComponentType<WorkspaceContainerProps & React.HTMLProps<HTMLDivElement>>;
|
|
7
7
|
export { WorkspaceContainer };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workspace-container.d.ts","sourceRoot":"","sources":["../../src/components/workspace-container.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAwB1B,aAAK,uBAAuB,GAAG;IAC7B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,
|
|
1
|
+
{"version":3,"file":"workspace-container.d.ts","sourceRoot":"","sources":["../../src/components/workspace-container.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAwB1B,aAAK,uBAAuB,GAAG;IAC7B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB,CAAC;AA0BF,QAAA,MAAM,kBAAkB,gFAAwC,CAAC;AAEjE,OAAO,EAAE,kBAAkB,EAAE,CAAC"}
|
|
@@ -23,8 +23,8 @@ const darkThemeStyles = (0, emotion_1.css)({
|
|
|
23
23
|
backgroundColor: palette_1.uiColors.gray.dark3,
|
|
24
24
|
color: palette_1.uiColors.white,
|
|
25
25
|
});
|
|
26
|
-
function UnthemedWorkspaceContainer({ className, darkMode, children, 'data-
|
|
27
|
-
return (react_1.default.createElement("div", { className: (0, emotion_1.cx)(workspaceContainerStyles, darkMode ? darkThemeStyles : lightThemeStyles, className), "data-
|
|
26
|
+
function UnthemedWorkspaceContainer({ className, darkMode, children, 'data-testid': dataTestId, ...props }) {
|
|
27
|
+
return (react_1.default.createElement("div", { className: (0, emotion_1.cx)(workspaceContainerStyles, darkMode ? darkThemeStyles : lightThemeStyles, className), "data-testid": dataTestId, ...props }, children));
|
|
28
28
|
}
|
|
29
29
|
const WorkspaceContainer = (0, use_theme_1.withTheme)(UnthemedWorkspaceContainer);
|
|
30
30
|
exports.WorkspaceContainer = WorkspaceContainer;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workspace-container.js","sourceRoot":"","sources":["../../src/components/workspace-container.tsx"],"names":[],"mappings":";;;;;;AAAA,kDAA0B;AAC1B,oDAAiD;AACjD,oDAAkD;AAElD,kDAA+C;AAC/C,4DAA6C;AAE7C,MAAM,wBAAwB,GAAG,IAAA,aAAG,EAAC;IACnC,MAAM,EAAE,MAAM;IACd,KAAK,EAAE,MAAM;IACb,OAAO,EAAE,MAAM;IACf,QAAQ,EAAE,MAAM;CACjB,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V,iBACY,UAAU,KACnB,KAAK,IAER,QAAQ,CACL,CACP,CAAC;AACJ,CAAC;AAED,MAAM,kBAAkB,GAAG,IAAA,qBAAS,EAAC,0BAA0B,CAAC,CAAC;AAExD,gDAAkB"}
|