@mongodb-js/compass-components 1.52.1 → 1.53.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/drawer-portal.d.ts +8 -5
- package/lib/components/drawer-portal.d.ts.map +1 -1
- package/lib/components/drawer-portal.js +105 -28
- package/lib/components/drawer-portal.js.map +1 -1
- package/lib/components/guide-cue/guide-cue.d.ts +3 -2
- package/lib/components/guide-cue/guide-cue.d.ts.map +1 -1
- package/lib/components/guide-cue/guide-cue.js +3 -3
- package/lib/components/guide-cue/guide-cue.js.map +1 -1
- package/lib/components/leafygreen.d.ts +0 -1
- package/lib/components/leafygreen.d.ts.map +1 -1
- package/lib/components/leafygreen.js +2 -4
- package/lib/components/leafygreen.js.map +1 -1
- package/package.json +4 -4
- package/lib/components/drawer/constants.d.ts +0 -9
- package/lib/components/drawer/constants.d.ts.map +0 -1
- package/lib/components/drawer/constants.js +0 -13
- package/lib/components/drawer/constants.js.map +0 -1
- package/lib/components/drawer/drawer/drawer.constants.d.ts +0 -3
- package/lib/components/drawer/drawer/drawer.constants.d.ts.map +0 -1
- package/lib/components/drawer/drawer/drawer.constants.js +0 -6
- package/lib/components/drawer/drawer/drawer.constants.js.map +0 -1
- package/lib/components/drawer/drawer/drawer.d.ts +0 -4
- package/lib/components/drawer/drawer/drawer.d.ts.map +0 -1
- package/lib/components/drawer/drawer/drawer.js +0 -143
- package/lib/components/drawer/drawer/drawer.js.map +0 -1
- package/lib/components/drawer/drawer/drawer.styles.d.ts +0 -29
- package/lib/components/drawer/drawer/drawer.styles.d.ts.map +0 -1
- package/lib/components/drawer/drawer/drawer.styles.js +0 -174
- package/lib/components/drawer/drawer/drawer.styles.js.map +0 -1
- package/lib/components/drawer/drawer/drawer.types.d.ts +0 -40
- package/lib/components/drawer/drawer/drawer.types.d.ts.map +0 -1
- package/lib/components/drawer/drawer/drawer.types.js +0 -13
- package/lib/components/drawer/drawer/drawer.types.js.map +0 -1
- package/lib/components/drawer/drawer/index.d.ts +0 -5
- package/lib/components/drawer/drawer/index.d.ts.map +0 -1
- package/lib/components/drawer/drawer/index.js +0 -12
- package/lib/components/drawer/drawer/index.js.map +0 -1
- package/lib/components/drawer/drawer-layout/drawer-layout.d.ts +0 -17
- package/lib/components/drawer/drawer-layout/drawer-layout.d.ts.map +0 -1
- package/lib/components/drawer/drawer-layout/drawer-layout.js +0 -57
- package/lib/components/drawer/drawer-layout/drawer-layout.js.map +0 -1
- package/lib/components/drawer/drawer-layout/drawer-layout.types.d.ts +0 -34
- package/lib/components/drawer/drawer-layout/drawer-layout.types.d.ts.map +0 -1
- package/lib/components/drawer/drawer-layout/drawer-layout.types.js +0 -3
- package/lib/components/drawer/drawer-layout/drawer-layout.types.js.map +0 -1
- package/lib/components/drawer/drawer-layout/index.d.ts +0 -3
- package/lib/components/drawer/drawer-layout/index.d.ts.map +0 -1
- package/lib/components/drawer/drawer-layout/index.js +0 -6
- package/lib/components/drawer/drawer-layout/index.js.map +0 -1
- package/lib/components/drawer/drawer-stack-context/drawer-stack-context.d.ts +0 -8
- package/lib/components/drawer/drawer-stack-context/drawer-stack-context.d.ts.map +0 -1
- package/lib/components/drawer/drawer-stack-context/drawer-stack-context.js +0 -71
- package/lib/components/drawer/drawer-stack-context/drawer-stack-context.js.map +0 -1
- package/lib/components/drawer/drawer-stack-context/drawer-stack-context.types.d.ts +0 -21
- package/lib/components/drawer/drawer-stack-context/drawer-stack-context.types.d.ts.map +0 -1
- package/lib/components/drawer/drawer-stack-context/drawer-stack-context.types.js +0 -3
- package/lib/components/drawer/drawer-stack-context/drawer-stack-context.types.js.map +0 -1
- package/lib/components/drawer/drawer-stack-context/index.d.ts +0 -3
- package/lib/components/drawer/drawer-stack-context/index.d.ts.map +0 -1
- package/lib/components/drawer/drawer-stack-context/index.js +0 -8
- package/lib/components/drawer/drawer-stack-context/index.js.map +0 -1
- package/lib/components/drawer/drawer-toolbar-context/drawer-toolbar-context.d.ts +0 -6
- package/lib/components/drawer/drawer-toolbar-context/drawer-toolbar-context.d.ts.map +0 -1
- package/lib/components/drawer/drawer-toolbar-context/drawer-toolbar-context.js +0 -85
- package/lib/components/drawer/drawer-toolbar-context/drawer-toolbar-context.js.map +0 -1
- package/lib/components/drawer/drawer-toolbar-context/drawer-toolbar-context.types.d.ts +0 -37
- package/lib/components/drawer/drawer-toolbar-context/drawer-toolbar-context.types.d.ts.map +0 -1
- package/lib/components/drawer/drawer-toolbar-context/drawer-toolbar-context.types.js +0 -3
- package/lib/components/drawer/drawer-toolbar-context/drawer-toolbar-context.types.js.map +0 -1
- package/lib/components/drawer/drawer-toolbar-context/index.d.ts +0 -2
- package/lib/components/drawer/drawer-toolbar-context/index.d.ts.map +0 -1
- package/lib/components/drawer/drawer-toolbar-context/index.js +0 -7
- package/lib/components/drawer/drawer-toolbar-context/index.js.map +0 -1
- package/lib/components/drawer/drawer-toolbar-layout/drawer-toolbar-layout-container.d.ts +0 -18
- package/lib/components/drawer/drawer-toolbar-layout/drawer-toolbar-layout-container.d.ts.map +0 -1
- package/lib/components/drawer/drawer-toolbar-layout/drawer-toolbar-layout-container.js +0 -86
- package/lib/components/drawer/drawer-toolbar-layout/drawer-toolbar-layout-container.js.map +0 -1
- package/lib/components/drawer/drawer-toolbar-layout/drawer-toolbar-layout.d.ts +0 -15
- package/lib/components/drawer/drawer-toolbar-layout/drawer-toolbar-layout.d.ts.map +0 -1
- package/lib/components/drawer/drawer-toolbar-layout/drawer-toolbar-layout.js +0 -50
- package/lib/components/drawer/drawer-toolbar-layout/drawer-toolbar-layout.js.map +0 -1
- package/lib/components/drawer/drawer-toolbar-layout/drawer-toolbar-layout.styles.d.ts +0 -2
- package/lib/components/drawer/drawer-toolbar-layout/drawer-toolbar-layout.styles.d.ts.map +0 -1
- package/lib/components/drawer/drawer-toolbar-layout/drawer-toolbar-layout.styles.js +0 -11
- package/lib/components/drawer/drawer-toolbar-layout/drawer-toolbar-layout.styles.js.map +0 -1
- package/lib/components/drawer/drawer-toolbar-layout/drawer-toolbar-layout.types.d.ts +0 -44
- package/lib/components/drawer/drawer-toolbar-layout/drawer-toolbar-layout.types.d.ts.map +0 -1
- package/lib/components/drawer/drawer-toolbar-layout/drawer-toolbar-layout.types.js +0 -3
- package/lib/components/drawer/drawer-toolbar-layout/drawer-toolbar-layout.types.js.map +0 -1
- package/lib/components/drawer/drawer-toolbar-layout/index.d.ts +0 -3
- package/lib/components/drawer/drawer-toolbar-layout/index.d.ts.map +0 -1
- package/lib/components/drawer/drawer-toolbar-layout/index.js +0 -6
- package/lib/components/drawer/drawer-toolbar-layout/index.js.map +0 -1
- package/lib/components/drawer/drawer-with-toolbar-wrapper/drawer-with-toolbar-wrapper.d.ts +0 -11
- package/lib/components/drawer/drawer-with-toolbar-wrapper/drawer-with-toolbar-wrapper.d.ts.map +0 -1
- package/lib/components/drawer/drawer-with-toolbar-wrapper/drawer-with-toolbar-wrapper.js +0 -63
- package/lib/components/drawer/drawer-with-toolbar-wrapper/drawer-with-toolbar-wrapper.js.map +0 -1
- package/lib/components/drawer/drawer-with-toolbar-wrapper/drawer-with-toolbar-wrapper.styles.d.ts +0 -10
- package/lib/components/drawer/drawer-with-toolbar-wrapper/drawer-with-toolbar-wrapper.styles.d.ts.map +0 -1
- package/lib/components/drawer/drawer-with-toolbar-wrapper/drawer-with-toolbar-wrapper.styles.js +0 -137
- package/lib/components/drawer/drawer-with-toolbar-wrapper/drawer-with-toolbar-wrapper.styles.js.map +0 -1
- package/lib/components/drawer/drawer-with-toolbar-wrapper/drawer-with-toolbar-wrapper.types.d.ts +0 -11
- package/lib/components/drawer/drawer-with-toolbar-wrapper/drawer-with-toolbar-wrapper.types.d.ts.map +0 -1
- package/lib/components/drawer/drawer-with-toolbar-wrapper/drawer-with-toolbar-wrapper.types.js +0 -3
- package/lib/components/drawer/drawer-with-toolbar-wrapper/drawer-with-toolbar-wrapper.types.js.map +0 -1
- package/lib/components/drawer/drawer-with-toolbar-wrapper/index.d.ts +0 -2
- package/lib/components/drawer/drawer-with-toolbar-wrapper/index.d.ts.map +0 -1
- package/lib/components/drawer/drawer-with-toolbar-wrapper/index.js +0 -6
- package/lib/components/drawer/drawer-with-toolbar-wrapper/index.js.map +0 -1
- package/lib/components/drawer/embedded-drawer-layout/embedded-drawer-layout.d.ts +0 -12
- package/lib/components/drawer/embedded-drawer-layout/embedded-drawer-layout.d.ts.map +0 -1
- package/lib/components/drawer/embedded-drawer-layout/embedded-drawer-layout.js +0 -55
- package/lib/components/drawer/embedded-drawer-layout/embedded-drawer-layout.js.map +0 -1
- package/lib/components/drawer/embedded-drawer-layout/embedded-drawer-layout.styles.d.ts +0 -6
- package/lib/components/drawer/embedded-drawer-layout/embedded-drawer-layout.styles.d.ts.map +0 -1
- package/lib/components/drawer/embedded-drawer-layout/embedded-drawer-layout.styles.js +0 -54
- package/lib/components/drawer/embedded-drawer-layout/embedded-drawer-layout.styles.js.map +0 -1
- package/lib/components/drawer/embedded-drawer-layout/embedded-drawer-layout.types.d.ts +0 -8
- package/lib/components/drawer/embedded-drawer-layout/embedded-drawer-layout.types.d.ts.map +0 -1
- package/lib/components/drawer/embedded-drawer-layout/embedded-drawer-layout.types.js +0 -3
- package/lib/components/drawer/embedded-drawer-layout/embedded-drawer-layout.types.js.map +0 -1
- package/lib/components/drawer/embedded-drawer-layout/index.d.ts +0 -3
- package/lib/components/drawer/embedded-drawer-layout/index.d.ts.map +0 -1
- package/lib/components/drawer/embedded-drawer-layout/index.js +0 -6
- package/lib/components/drawer/embedded-drawer-layout/index.js.map +0 -1
- package/lib/components/drawer/index.d.ts +0 -6
- package/lib/components/drawer/index.d.ts.map +0 -1
- package/lib/components/drawer/index.js +0 -17
- package/lib/components/drawer/index.js.map +0 -1
- package/lib/components/drawer/layout-component/index.d.ts +0 -3
- package/lib/components/drawer/layout-component/index.d.ts.map +0 -1
- package/lib/components/drawer/layout-component/index.js +0 -6
- package/lib/components/drawer/layout-component/index.js.map +0 -1
- package/lib/components/drawer/layout-component/layout-component.d.ts +0 -18
- package/lib/components/drawer/layout-component/layout-component.d.ts.map +0 -1
- package/lib/components/drawer/layout-component/layout-component.js +0 -53
- package/lib/components/drawer/layout-component/layout-component.js.map +0 -1
- package/lib/components/drawer/layout-component/layout-component.styles.d.ts +0 -20
- package/lib/components/drawer/layout-component/layout-component.styles.d.ts.map +0 -1
- package/lib/components/drawer/layout-component/layout-component.styles.js +0 -3
- package/lib/components/drawer/layout-component/layout-component.styles.js.map +0 -1
- package/lib/components/drawer/overlay-drawer-layout/index.d.ts +0 -3
- package/lib/components/drawer/overlay-drawer-layout/index.d.ts.map +0 -1
- package/lib/components/drawer/overlay-drawer-layout/index.js +0 -6
- package/lib/components/drawer/overlay-drawer-layout/index.js.map +0 -1
- package/lib/components/drawer/overlay-drawer-layout/overlay-drawer-layout.d.ts +0 -11
- package/lib/components/drawer/overlay-drawer-layout/overlay-drawer-layout.d.ts.map +0 -1
- package/lib/components/drawer/overlay-drawer-layout/overlay-drawer-layout.js +0 -54
- package/lib/components/drawer/overlay-drawer-layout/overlay-drawer-layout.js.map +0 -1
- package/lib/components/drawer/overlay-drawer-layout/overlay-drawer-layout.styles.d.ts +0 -5
- package/lib/components/drawer/overlay-drawer-layout/overlay-drawer-layout.styles.d.ts.map +0 -1
- package/lib/components/drawer/overlay-drawer-layout/overlay-drawer-layout.styles.js +0 -27
- package/lib/components/drawer/overlay-drawer-layout/overlay-drawer-layout.styles.js.map +0 -1
- package/lib/components/drawer/overlay-drawer-layout/overlay-drawer-layout.types.d.ts +0 -3
- package/lib/components/drawer/overlay-drawer-layout/overlay-drawer-layout.types.d.ts.map +0 -1
- package/lib/components/drawer/overlay-drawer-layout/overlay-drawer-layout.types.js +0 -3
- package/lib/components/drawer/overlay-drawer-layout/overlay-drawer-layout.types.js.map +0 -1
- package/lib/components/drawer/utils/get-lg-ids.d.ts +0 -8
- package/lib/components/drawer/utils/get-lg-ids.d.ts.map +0 -1
- package/lib/components/drawer/utils/get-lg-ids.js +0 -11
- package/lib/components/drawer/utils/get-lg-ids.js.map +0 -1
- package/lib/components/drawer/utils/index.d.ts +0 -2
- package/lib/components/drawer/utils/index.d.ts.map +0 -1
- package/lib/components/drawer/utils/index.js +0 -7
- package/lib/components/drawer/utils/index.js.map +0 -1
- package/lib/components/toolbar/constants.d.ts +0 -3
- package/lib/components/toolbar/constants.d.ts.map +0 -1
- package/lib/components/toolbar/constants.js +0 -6
- package/lib/components/toolbar/constants.js.map +0 -1
- package/lib/components/toolbar/context/index.d.ts +0 -3
- package/lib/components/toolbar/context/index.d.ts.map +0 -1
- package/lib/components/toolbar/context/index.js +0 -10
- package/lib/components/toolbar/context/index.js.map +0 -1
- package/lib/components/toolbar/context/toolbar-context.d.ts +0 -6
- package/lib/components/toolbar/context/toolbar-context.d.ts.map +0 -1
- package/lib/components/toolbar/context/toolbar-context.js +0 -65
- package/lib/components/toolbar/context/toolbar-context.js.map +0 -1
- package/lib/components/toolbar/context/toolbar-context.types.d.ts +0 -21
- package/lib/components/toolbar/context/toolbar-context.types.d.ts.map +0 -1
- package/lib/components/toolbar/context/toolbar-context.types.js +0 -3
- package/lib/components/toolbar/context/toolbar-context.types.js.map +0 -1
- package/lib/components/toolbar/context/toolbar-descendants-context.d.ts +0 -5
- package/lib/components/toolbar/context/toolbar-descendants-context.d.ts.map +0 -1
- package/lib/components/toolbar/context/toolbar-descendants-context.js +0 -10
- package/lib/components/toolbar/context/toolbar-descendants-context.js.map +0 -1
- package/lib/components/toolbar/index.d.ts +0 -5
- package/lib/components/toolbar/index.d.ts.map +0 -1
- package/lib/components/toolbar/index.js +0 -27
- package/lib/components/toolbar/index.js.map +0 -1
- package/lib/components/toolbar/toolbar/index.d.ts +0 -4
- package/lib/components/toolbar/toolbar/index.d.ts.map +0 -1
- package/lib/components/toolbar/toolbar/index.js +0 -8
- package/lib/components/toolbar/toolbar/index.js.map +0 -1
- package/lib/components/toolbar/toolbar/toolbar.d.ts +0 -4
- package/lib/components/toolbar/toolbar/toolbar.d.ts.map +0 -1
- package/lib/components/toolbar/toolbar/toolbar.js +0 -93
- package/lib/components/toolbar/toolbar/toolbar.js.map +0 -1
- package/lib/components/toolbar/toolbar/toolbar.styles.d.ts +0 -7
- package/lib/components/toolbar/toolbar/toolbar.styles.d.ts.map +0 -1
- package/lib/components/toolbar/toolbar/toolbar.styles.js +0 -26
- package/lib/components/toolbar/toolbar/toolbar.styles.js.map +0 -1
- package/lib/components/toolbar/toolbar/toolbar.types.d.ts +0 -6
- package/lib/components/toolbar/toolbar/toolbar.types.d.ts.map +0 -1
- package/lib/components/toolbar/toolbar/toolbar.types.js +0 -3
- package/lib/components/toolbar/toolbar/toolbar.types.js.map +0 -1
- package/lib/components/toolbar/toolbar-icon-button/index.d.ts +0 -3
- package/lib/components/toolbar/toolbar-icon-button/index.d.ts.map +0 -1
- package/lib/components/toolbar/toolbar-icon-button/index.js +0 -6
- package/lib/components/toolbar/toolbar-icon-button/index.js.map +0 -1
- package/lib/components/toolbar/toolbar-icon-button/toolbar-icon-button.d.ts +0 -4
- package/lib/components/toolbar/toolbar-icon-button/toolbar-icon-button.d.ts.map +0 -1
- package/lib/components/toolbar/toolbar-icon-button/toolbar-icon-button.js +0 -77
- package/lib/components/toolbar/toolbar-icon-button/toolbar-icon-button.js.map +0 -1
- package/lib/components/toolbar/toolbar-icon-button/toolbar-icon-button.styles.d.ts +0 -13
- package/lib/components/toolbar/toolbar-icon-button/toolbar-icon-button.styles.d.ts.map +0 -1
- package/lib/components/toolbar/toolbar-icon-button/toolbar-icon-button.styles.js +0 -38
- package/lib/components/toolbar/toolbar-icon-button/toolbar-icon-button.styles.js.map +0 -1
- package/lib/components/toolbar/toolbar-icon-button/toolbar-icon-button.types.d.ts +0 -19
- package/lib/components/toolbar/toolbar-icon-button/toolbar-icon-button.types.d.ts.map +0 -1
- package/lib/components/toolbar/toolbar-icon-button/toolbar-icon-button.types.js +0 -3
- package/lib/components/toolbar/toolbar-icon-button/toolbar-icon-button.types.js.map +0 -1
- package/lib/components/toolbar/utils/get-lg-ids.d.ts +0 -8
- package/lib/components/toolbar/utils/get-lg-ids.d.ts.map +0 -1
- package/lib/components/toolbar/utils/get-lg-ids.js +0 -14
- package/lib/components/toolbar/utils/get-lg-ids.js.map +0 -1
- package/lib/components/toolbar/utils/index.d.ts +0 -2
- package/lib/components/toolbar/utils/index.d.ts.map +0 -1
- package/lib/components/toolbar/utils/index.js +0 -7
- package/lib/components/toolbar/utils/index.js.map +0 -1
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getBaseStyles = exports.toolbarClassName = void 0;
|
|
4
|
-
const emotion_1 = require("@leafygreen-ui/emotion");
|
|
5
|
-
const lib_1 = require("@leafygreen-ui/lib");
|
|
6
|
-
const tokens_1 = require("@leafygreen-ui/tokens");
|
|
7
|
-
const constants_1 = require("../constants");
|
|
8
|
-
exports.toolbarClassName = (0, lib_1.createUniqueClassName)('lg-toolbar');
|
|
9
|
-
const getBaseStyles = ({ theme, className, }) => (0, emotion_1.cx)((0, emotion_1.css) `
|
|
10
|
-
height: 100%;
|
|
11
|
-
width: ${constants_1.TOOLBAR_WIDTH}px;
|
|
12
|
-
display: flex;
|
|
13
|
-
flex-direction: column;
|
|
14
|
-
align-items: center;
|
|
15
|
-
background: ${tokens_1.color[theme].background.primary.default};
|
|
16
|
-
border: 1px solid ${tokens_1.color[theme].border.secondary.default};
|
|
17
|
-
|
|
18
|
-
// Show the focus ring on the toolbar itself when a child element is focused and only when navigating with a keyboard
|
|
19
|
-
&:has(:focus-visible) {
|
|
20
|
-
box-shadow: ${tokens_1.focusRing[theme].default};
|
|
21
|
-
// So the focus ring overlaps sibling elements
|
|
22
|
-
z-index: 1;
|
|
23
|
-
}
|
|
24
|
-
`, exports.toolbarClassName, className);
|
|
25
|
-
exports.getBaseStyles = getBaseStyles;
|
|
26
|
-
//# sourceMappingURL=toolbar.styles.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"toolbar.styles.js","sourceRoot":"","sources":["../../../../src/components/toolbar/toolbar/toolbar.styles.ts"],"names":[],"mappings":";;;AAAA,oDAAiD;AACjD,4CAAuE;AACvE,kDAAyD;AAEzD,4CAA6C;AAEhC,QAAA,gBAAgB,GAAG,IAAA,2BAAqB,EAAC,YAAY,CAAC,CAAC;AAE7D,MAAM,aAAa,GAAG,CAAC,EAC5B,KAAK,EACL,SAAS,GAIV,EAAE,EAAE,CACH,IAAA,YAAE,EACA,IAAA,aAAG,EAAA;;eAEQ,yBAAa;;;;oBAIR,cAAK,CAAC,KAAK,CAAC,CAAC,UAAU,CAAC,OAAO,CAAC,OAAO;0BACjC,cAAK,CAAC,KAAK,CAAC,CAAC,MAAM,CAAC,SAAS,CAAC,OAAO;;;;sBAIzC,kBAAS,CAAC,KAAK,CAAC,CAAC,OAAO;;;;KAIzC,EACD,wBAAgB,EAChB,SAAS,CACV,CAAC;AA1BS,QAAA,aAAa,iBA0BtB"}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import type { ComponentPropsWithRef } from 'react';
|
|
2
|
-
import type { DarkModeProps, LgIdProps } from '@leafygreen-ui/lib';
|
|
3
|
-
export interface ToolbarProps extends ComponentPropsWithRef<'div'>, DarkModeProps, LgIdProps {
|
|
4
|
-
children: React.ReactNode;
|
|
5
|
-
}
|
|
6
|
-
//# sourceMappingURL=toolbar.types.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"toolbar.types.d.ts","sourceRoot":"","sources":["../../../../src/components/toolbar/toolbar/toolbar.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,OAAO,CAAC;AAEnD,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AACnE,MAAM,WAAW,YACf,SAAQ,qBAAqB,CAAC,KAAK,CAAC,EAClC,aAAa,EACb,SAAS;IACX,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"toolbar.types.js","sourceRoot":"","sources":["../../../../src/components/toolbar/toolbar/toolbar.types.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/toolbar/toolbar-icon-button/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAC1D,OAAO,EAAE,KAAK,sBAAsB,EAAE,MAAM,6BAA6B,CAAC"}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ToolbarIconButton = void 0;
|
|
4
|
-
var toolbar_icon_button_1 = require("./toolbar-icon-button");
|
|
5
|
-
Object.defineProperty(exports, "ToolbarIconButton", { enumerable: true, get: function () { return toolbar_icon_button_1.ToolbarIconButton; } });
|
|
6
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/toolbar/toolbar-icon-button/index.ts"],"names":[],"mappings":";;;AAAA,6DAA0D;AAAjD,wHAAA,iBAAiB,OAAA"}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { type ToolbarIconButtonProps } from './toolbar-icon-button.types';
|
|
3
|
-
export declare const ToolbarIconButton: React.ForwardRefExoticComponent<ToolbarIconButtonProps & React.RefAttributes<HTMLButtonElement>>;
|
|
4
|
-
//# sourceMappingURL=toolbar-icon-button.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"toolbar-icon-button.d.ts","sourceRoot":"","sources":["../../../../src/components/toolbar/toolbar-icon-button/toolbar-icon-button.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmD,MAAM,OAAO,CAAC;AAexE,OAAO,EAAE,KAAK,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AAE1E,eAAO,MAAM,iBAAiB,kGAiF7B,CAAC"}
|
|
@@ -1,77 +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 () {
|
|
19
|
-
var ownKeys = function(o) {
|
|
20
|
-
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
-
var ar = [];
|
|
22
|
-
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
-
return ar;
|
|
24
|
-
};
|
|
25
|
-
return ownKeys(o);
|
|
26
|
-
};
|
|
27
|
-
return function (mod) {
|
|
28
|
-
if (mod && mod.__esModule) return mod;
|
|
29
|
-
var result = {};
|
|
30
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
-
__setModuleDefault(result, mod);
|
|
32
|
-
return result;
|
|
33
|
-
};
|
|
34
|
-
})();
|
|
35
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
36
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
37
|
-
};
|
|
38
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.ToolbarIconButton = void 0;
|
|
40
|
-
const react_1 = __importStar(require("react"));
|
|
41
|
-
const descendants_1 = require("@leafygreen-ui/descendants");
|
|
42
|
-
const icon_1 = __importDefault(require("@leafygreen-ui/icon"));
|
|
43
|
-
const icon_button_1 = __importDefault(require("@leafygreen-ui/icon-button"));
|
|
44
|
-
const leafygreen_provider_1 = require("@leafygreen-ui/leafygreen-provider");
|
|
45
|
-
const lib_1 = require("@leafygreen-ui/lib");
|
|
46
|
-
const tooltip_1 = __importStar(require("@leafygreen-ui/tooltip"));
|
|
47
|
-
const context_1 = require("../context");
|
|
48
|
-
const toolbar_icon_button_styles_1 = require("./toolbar-icon-button.styles");
|
|
49
|
-
exports.ToolbarIconButton = react_1.default.forwardRef(({ className, onClick, label, glyph, disabled = false, active = false, 'aria-label': ariaLabel, ...rest }, forwardedRef) => {
|
|
50
|
-
const { theme } = (0, leafygreen_provider_1.useDarkMode)();
|
|
51
|
-
const { index, ref } = (0, descendants_1.useDescendant)(context_1.ToolbarDescendantsContext, forwardedRef);
|
|
52
|
-
const { focusedIndex, shouldFocus, lgIds, handleOnIconButtonClick } = (0, context_1.useToolbarContext)();
|
|
53
|
-
const isFocusable = index === focusedIndex;
|
|
54
|
-
if (focusedIndex === undefined) {
|
|
55
|
-
// eslint-disable-next-line no-console
|
|
56
|
-
console.error('ToolbarIconButton should only be used inside the Toolbar component.');
|
|
57
|
-
}
|
|
58
|
-
if (glyph === undefined) {
|
|
59
|
-
// eslint-disable-next-line no-console
|
|
60
|
-
console.error('A glpyh is required for ToolbarIconButton. Please provide a valid glyph. The list of available glyphs can be found in the LG Icon README, https://github.com/mongodb/leafygreen-ui/blob/main/packages/icon/README.md#properties.');
|
|
61
|
-
}
|
|
62
|
-
(0, react_1.useEffect)(() => {
|
|
63
|
-
// shouldFocus prevents this component from hijacking focus on initial page load.
|
|
64
|
-
if (isFocusable && shouldFocus)
|
|
65
|
-
ref.current?.focus();
|
|
66
|
-
}, [isFocusable, ref, shouldFocus]);
|
|
67
|
-
return (react_1.default.createElement(tooltip_1.default, { "data-testid": `${lgIds.iconButtonTooltip}-${index}`, "data-lgid": `${lgIds.iconButtonTooltip}-${index}`, align: tooltip_1.Align.Left, trigger: react_1.default.createElement("div", { className: toolbar_icon_button_styles_1.triggerStyles },
|
|
68
|
-
react_1.default.createElement(icon_button_1.default, { "aria-label": ariaLabel || (0, lib_1.getNodeTextContent)(label), active: active, className: (0, toolbar_icon_button_styles_1.getIconButtonStyles)({
|
|
69
|
-
theme,
|
|
70
|
-
active,
|
|
71
|
-
disabled,
|
|
72
|
-
className,
|
|
73
|
-
}), tabIndex: isFocusable ? 0 : -1, onClick: (event) => handleOnIconButtonClick(event, index, onClick), disabled: disabled, "data-testid": `${lgIds.iconButton}-${index}`, "data-lgid": `${lgIds.iconButton}-${index}`, "data-active": active, ref: ref, ...rest },
|
|
74
|
-
react_1.default.createElement(icon_1.default, { glyph: glyph }))) }, label));
|
|
75
|
-
});
|
|
76
|
-
exports.ToolbarIconButton.displayName = 'ToolbarIconButton';
|
|
77
|
-
//# sourceMappingURL=toolbar-icon-button.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"toolbar-icon-button.js","sourceRoot":"","sources":["../../../../src/components/toolbar/toolbar-icon-button/toolbar-icon-button.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+CAAwE;AAExE,4DAA2D;AAC3D,+DAAuC;AACvC,6EAAoD;AACpD,4EAAiE;AACjE,4CAAwD;AACxD,kEAAwD;AAExD,wCAA0E;AAE1E,6EAGsC;AAGzB,QAAA,iBAAiB,GAAG,eAAK,CAAC,UAAU,CAI/C,CACE,EACE,SAAS,EACT,OAAO,EACP,KAAK,EACL,KAAK,EACL,QAAQ,GAAG,KAAK,EAChB,MAAM,GAAG,KAAK,EACd,YAAY,EAAE,SAAS,EACvB,GAAG,IAAI,EACgB,EACzB,YAAY,EACZ,EAAE;IACF,MAAM,EAAE,KAAK,EAAE,GAAG,IAAA,iCAAW,GAAE,CAAC;IAChC,MAAM,EAAE,KAAK,EAAE,GAAG,EAAE,GAAG,IAAA,2BAAa,EAClC,mCAAyB,EACzB,YAAY,CACb,CAAC;IACF,MAAM,EAAE,YAAY,EAAE,WAAW,EAAE,KAAK,EAAE,uBAAuB,EAAE,GACjE,IAAA,2BAAiB,GAAE,CAAC;IACtB,MAAM,WAAW,GAAG,KAAK,KAAK,YAAY,CAAC;IAE3C,IAAI,YAAY,KAAK,SAAS,EAAE,CAAC;QAC/B,sCAAsC;QACtC,OAAO,CAAC,KAAK,CACX,qEAAqE,CACtE,CAAC;IACJ,CAAC;IAED,IAAI,KAAK,KAAK,SAAS,EAAE,CAAC;QACxB,sCAAsC;QACtC,OAAO,CAAC,KAAK,CACX,kOAAkO,CACnO,CAAC;IACJ,CAAC;IAED,IAAA,iBAAS,EAAC,GAAG,EAAE;QACb,iFAAiF;QACjF,IAAI,WAAW,IAAI,WAAW;YAAE,GAAG,CAAC,OAAO,EAAE,KAAK,EAAE,CAAC;IACvD,CAAC,EAAE,CAAC,WAAW,EAAE,GAAG,EAAE,WAAW,CAAC,CAAC,CAAC;IAEpC,OAAO,CACL,8BAAC,iBAAO,mBACO,GAAG,KAAK,CAAC,iBAAiB,IAAI,KAAK,EAAE,eACvC,GAAG,KAAK,CAAC,iBAAiB,IAAI,KAAK,EAAE,EAChD,KAAK,EAAE,eAAK,CAAC,IAAI,EACjB,OAAO,EACL,uCAAK,SAAS,EAAE,0CAAa;YAC3B,8BAAC,qBAAU,kBACG,SAAS,IAAI,IAAA,wBAAkB,EAAC,KAAK,CAAC,EAClD,MAAM,EAAE,MAAM,EACd,SAAS,EAAE,IAAA,gDAAmB,EAAC;oBAC7B,KAAK;oBACL,MAAM;oBACN,QAAQ;oBACR,SAAS;iBACV,CAAC,EACF,QAAQ,EAAE,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAC9B,OAAO,EAAE,CAAC,KAA0C,EAAE,EAAE,CACtD,uBAAuB,CAAC,KAAK,EAAE,KAAK,EAAE,OAAO,CAAC,EAEhD,QAAQ,EAAE,QAAQ,iBACL,GAAG,KAAK,CAAC,UAAU,IAAI,KAAK,EAAE,eAChC,GAAG,KAAK,CAAC,UAAU,IAAI,KAAK,EAAE,iBAC5B,MAAM,EACnB,GAAG,EAAE,GAAG,KACH,IAA2C;gBAEhD,8BAAC,cAAI,IAAC,KAAK,EAAE,KAAK,GAAI,CACX,CACT,IAGP,KAAK,CACE,CACX,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,yBAAiB,CAAC,WAAW,GAAG,mBAAmB,CAAC"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { Theme } from '@leafygreen-ui/lib';
|
|
2
|
-
export declare const baseIconButtonStyles: string;
|
|
3
|
-
export declare const getIconButtonActiveStyles: ({ theme }: {
|
|
4
|
-
theme: Theme;
|
|
5
|
-
}) => string;
|
|
6
|
-
export declare const getIconButtonStyles: ({ active, theme, disabled, className, }: {
|
|
7
|
-
active: boolean;
|
|
8
|
-
theme: Theme;
|
|
9
|
-
disabled: boolean;
|
|
10
|
-
className?: string;
|
|
11
|
-
}) => string;
|
|
12
|
-
export declare const triggerStyles: string;
|
|
13
|
-
//# sourceMappingURL=toolbar-icon-button.styles.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"toolbar-icon-button.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/toolbar/toolbar-icon-button/toolbar-icon-button.styles.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAM3C,eAAO,MAAM,oBAAoB,QAOhC,CAAC;AAEF,eAAO,MAAM,yBAAyB,GAAI,WAAW;IAAE,KAAK,EAAE,KAAK,CAAA;CAAE,WAWlE,CAAC;AAEJ,eAAO,MAAM,mBAAmB,GAAI,yCAKjC;IACD,MAAM,EAAE,OAAO,CAAC;IAChB,KAAK,EAAE,KAAK,CAAC;IACb,QAAQ,EAAE,OAAO,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,WASE,CAAC;AAEJ,eAAO,MAAM,aAAa,QAIzB,CAAC"}
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.triggerStyles = exports.getIconButtonStyles = exports.getIconButtonActiveStyles = exports.baseIconButtonStyles = void 0;
|
|
4
|
-
const emotion_1 = require("@leafygreen-ui/emotion");
|
|
5
|
-
const lib_1 = require("@leafygreen-ui/lib");
|
|
6
|
-
const palette_1 = require("@leafygreen-ui/palette");
|
|
7
|
-
const tokens_1 = require("@leafygreen-ui/tokens");
|
|
8
|
-
const constants_1 = require("../constants");
|
|
9
|
-
exports.baseIconButtonStyles = (0, emotion_1.css) `
|
|
10
|
-
&,
|
|
11
|
-
&:hover,
|
|
12
|
-
&[data-hover='true'],
|
|
13
|
-
&::before {
|
|
14
|
-
border-radius: ${tokens_1.borderRadius[150]}px;
|
|
15
|
-
}
|
|
16
|
-
`;
|
|
17
|
-
const getIconButtonActiveStyles = ({ theme }) => (0, emotion_1.cx)((0, emotion_1.css) `
|
|
18
|
-
background: ${theme === lib_1.Theme.Light
|
|
19
|
-
? palette_1.palette.green.light3
|
|
20
|
-
: palette_1.palette.green.dark3};
|
|
21
|
-
|
|
22
|
-
color: ${theme === lib_1.Theme.Light
|
|
23
|
-
? palette_1.palette.green.dark2
|
|
24
|
-
: palette_1.palette.green.light1};
|
|
25
|
-
`);
|
|
26
|
-
exports.getIconButtonActiveStyles = getIconButtonActiveStyles;
|
|
27
|
-
const getIconButtonStyles = ({ active, theme, disabled, className, }) => (0, emotion_1.cx)((0, emotion_1.css) `
|
|
28
|
-
${exports.baseIconButtonStyles}
|
|
29
|
-
`, {
|
|
30
|
-
[(0, exports.getIconButtonActiveStyles)({ theme })]: active && !disabled,
|
|
31
|
-
}, className);
|
|
32
|
-
exports.getIconButtonStyles = getIconButtonStyles;
|
|
33
|
-
exports.triggerStyles = (0, emotion_1.css) `
|
|
34
|
-
display: flex;
|
|
35
|
-
height: ${constants_1.ICON_BUTTON_HEIGHT}px;
|
|
36
|
-
align-items: center;
|
|
37
|
-
`;
|
|
38
|
-
//# sourceMappingURL=toolbar-icon-button.styles.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"toolbar-icon-button.styles.js","sourceRoot":"","sources":["../../../../src/components/toolbar/toolbar-icon-button/toolbar-icon-button.styles.ts"],"names":[],"mappings":";;;AAAA,oDAAiD;AACjD,4CAA2C;AAC3C,oDAAiD;AACjD,kDAAqD;AAErD,4CAAkD;AAErC,QAAA,oBAAoB,GAAG,IAAA,aAAG,EAAA;;;;;qBAKlB,qBAAY,CAAC,GAAG,CAAC;;CAErC,CAAC;AAEK,MAAM,yBAAyB,GAAG,CAAC,EAAE,KAAK,EAAoB,EAAE,EAAE,CACvE,IAAA,YAAE,EACA,IAAA,aAAG,EAAA;oBACa,KAAK,KAAK,WAAK,CAAC,KAAK;IACjC,CAAC,CAAC,iBAAO,CAAC,KAAK,CAAC,MAAM;IACtB,CAAC,CAAC,iBAAO,CAAC,KAAK,CAAC,KAAK;;eAEd,KAAK,KAAK,WAAK,CAAC,KAAK;IAC5B,CAAC,CAAC,iBAAO,CAAC,KAAK,CAAC,KAAK;IACrB,CAAC,CAAC,iBAAO,CAAC,KAAK,CAAC,MAAM;KACzB,CACF,CAAC;AAXS,QAAA,yBAAyB,6BAWlC;AAEG,MAAM,mBAAmB,GAAG,CAAC,EAClC,MAAM,EACN,KAAK,EACL,QAAQ,EACR,SAAS,GAMV,EAAE,EAAE,CACH,IAAA,YAAE,EACA,IAAA,aAAG,EAAA;QACC,4BAAoB;KACvB,EACD;IACE,CAAC,IAAA,iCAAyB,EAAC,EAAE,KAAK,EAAE,CAAC,CAAC,EAAE,MAAM,IAAI,CAAC,QAAQ;CAC5D,EACD,SAAS,CACV,CAAC;AAnBS,QAAA,mBAAmB,uBAmB5B;AAES,QAAA,aAAa,GAAG,IAAA,aAAG,EAAA;;YAEpB,8BAAkB;;CAE7B,CAAC"}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import type { GlyphName } from '@leafygreen-ui/icon';
|
|
2
|
-
import type { BaseIconButtonProps as IconButtonProps } from '@leafygreen-ui/icon-button';
|
|
3
|
-
type ButtonProps = Omit<IconButtonProps, 'tabIndex' | 'href' | 'as' | 'ref' | 'children' | 'size' | 'darkMode' | 'onClick'>;
|
|
4
|
-
export interface ToolbarIconButtonProps extends ButtonProps {
|
|
5
|
-
/**
|
|
6
|
-
* The LG Icon that will render in the button
|
|
7
|
-
*/
|
|
8
|
-
glyph: GlyphName;
|
|
9
|
-
/**
|
|
10
|
-
* The text that will render in the tooltip on hover
|
|
11
|
-
*/
|
|
12
|
-
label: React.ReactNode;
|
|
13
|
-
/**
|
|
14
|
-
* Callback fired when the ToolbarIconButton is clicked
|
|
15
|
-
*/
|
|
16
|
-
onClick?: (event: React.MouseEvent<HTMLButtonElement>) => void;
|
|
17
|
-
}
|
|
18
|
-
export {};
|
|
19
|
-
//# sourceMappingURL=toolbar-icon-button.types.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"toolbar-icon-button.types.d.ts","sourceRoot":"","sources":["../../../../src/components/toolbar/toolbar-icon-button/toolbar-icon-button.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,KAAK,EAAE,mBAAmB,IAAI,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAEzF,KAAK,WAAW,GAAG,IAAI,CACrB,eAAe,EACb,UAAU,GACV,MAAM,GACN,IAAI,GACJ,KAAK,GACL,UAAU,GACV,MAAM,GACN,UAAU,GACV,SAAS,CACZ,CAAC;AAEF,MAAM,WAAW,sBAAuB,SAAQ,WAAW;IACzD;;OAEG;IACH,KAAK,EAAE,SAAS,CAAC;IAEjB;;OAEG;IACH,KAAK,EAAE,KAAK,CAAC,SAAS,CAAC;IAEvB;;OAEG;IACH,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,UAAU,CAAC,iBAAiB,CAAC,KAAK,IAAI,CAAC;CAChE"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"toolbar-icon-button.types.js","sourceRoot":"","sources":["../../../../src/components/toolbar/toolbar-icon-button/toolbar-icon-button.types.ts"],"names":[],"mappings":""}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export declare const DEFAULT_LGID_ROOT = "lg-toolbar";
|
|
2
|
-
export declare const getLgIds: (root?: `lg-${string}`) => {
|
|
3
|
-
readonly root: `lg-${string}`;
|
|
4
|
-
readonly iconButton: `lg-${string}-icon_button`;
|
|
5
|
-
readonly iconButtonTooltip: `lg-${string}-icon_button-tooltip`;
|
|
6
|
-
};
|
|
7
|
-
export type GetLgIdsReturnType = ReturnType<typeof getLgIds>;
|
|
8
|
-
//# sourceMappingURL=get-lg-ids.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"get-lg-ids.d.ts","sourceRoot":"","sources":["../../../../src/components/toolbar/utils/get-lg-ids.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,iBAAiB,eAAe,CAAC;AAE9C,eAAO,MAAM,QAAQ,GAAI,OAAM,MAAM,MAAM,EAAsB;;;;CAOhE,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG,UAAU,CAAC,OAAO,QAAQ,CAAC,CAAC"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getLgIds = exports.DEFAULT_LGID_ROOT = void 0;
|
|
4
|
-
exports.DEFAULT_LGID_ROOT = 'lg-toolbar';
|
|
5
|
-
const getLgIds = (root = exports.DEFAULT_LGID_ROOT) => {
|
|
6
|
-
const ids = {
|
|
7
|
-
root,
|
|
8
|
-
iconButton: `${root}-icon_button`,
|
|
9
|
-
iconButtonTooltip: `${root}-icon_button-tooltip`,
|
|
10
|
-
};
|
|
11
|
-
return ids;
|
|
12
|
-
};
|
|
13
|
-
exports.getLgIds = getLgIds;
|
|
14
|
-
//# sourceMappingURL=get-lg-ids.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"get-lg-ids.js","sourceRoot":"","sources":["../../../../src/components/toolbar/utils/get-lg-ids.ts"],"names":[],"mappings":";;;AAAa,QAAA,iBAAiB,GAAG,YAAY,CAAC;AAEvC,MAAM,QAAQ,GAAG,CAAC,OAAuB,yBAAiB,EAAE,EAAE;IACnE,MAAM,GAAG,GAAG;QACV,IAAI;QACJ,UAAU,EAAE,GAAG,IAAI,cAAc;QACjC,iBAAiB,EAAE,GAAG,IAAI,sBAAsB;KACxC,CAAC;IACX,OAAO,GAAG,CAAC;AACb,CAAC,CAAC;AAPW,QAAA,QAAQ,YAOnB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/toolbar/utils/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,iBAAiB,EACjB,QAAQ,EACR,KAAK,kBAAkB,GACxB,MAAM,cAAc,CAAC"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getLgIds = exports.DEFAULT_LGID_ROOT = void 0;
|
|
4
|
-
var get_lg_ids_1 = require("./get-lg-ids");
|
|
5
|
-
Object.defineProperty(exports, "DEFAULT_LGID_ROOT", { enumerable: true, get: function () { return get_lg_ids_1.DEFAULT_LGID_ROOT; } });
|
|
6
|
-
Object.defineProperty(exports, "getLgIds", { enumerable: true, get: function () { return get_lg_ids_1.getLgIds; } });
|
|
7
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/toolbar/utils/index.ts"],"names":[],"mappings":";;;AAAA,2CAIsB;AAHpB,+GAAA,iBAAiB,OAAA;AACjB,sGAAA,QAAQ,OAAA"}
|