@elliemae/ds-mini-toolbar 3.27.0-next.1 → 3.27.0-next.2
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/dist/cjs/index.js +4 -5
- package/dist/cjs/index.js.map +2 -2
- package/dist/esm/index.js +3 -5
- package/dist/esm/index.js.map +3 -3
- package/dist/types/index.d.ts +2 -2
- package/package.json +8 -58
- package/dist/cjs/Components/MiniToolbar.js +0 -87
- package/dist/cjs/Components/MiniToolbar.js.map +0 -7
- package/dist/cjs/Components/ToolbarShortcut.js +0 -68
- package/dist/cjs/Components/ToolbarShortcut.js.map +0 -7
- package/dist/cjs/Components/outOfTheBox/Button.js +0 -38
- package/dist/cjs/Components/outOfTheBox/Button.js.map +0 -7
- package/dist/cjs/Components/outOfTheBox/ComboBox.js +0 -38
- package/dist/cjs/Components/outOfTheBox/ComboBox.js.map +0 -7
- package/dist/cjs/Components/outOfTheBox/IconItem.js +0 -51
- package/dist/cjs/Components/outOfTheBox/IconItem.js.map +0 -7
- package/dist/cjs/Components/outOfTheBox/SearchBox.js +0 -55
- package/dist/cjs/Components/outOfTheBox/SearchBox.js.map +0 -7
- package/dist/cjs/Components/outOfTheBox/Separator.js +0 -38
- package/dist/cjs/Components/outOfTheBox/Separator.js.map +0 -7
- package/dist/cjs/Components/outOfTheBox/index.js +0 -54
- package/dist/cjs/Components/outOfTheBox/index.js.map +0 -7
- package/dist/cjs/hooks/useGenerateItems.js +0 -127
- package/dist/cjs/hooks/useGenerateItems.js.map +0 -7
- package/dist/cjs/index.d.js +0 -28
- package/dist/cjs/index.d.js.map +0 -7
- package/dist/cjs/propTypes.js +0 -70
- package/dist/cjs/propTypes.js.map +0 -7
- package/dist/cjs/styles.js +0 -63
- package/dist/cjs/styles.js.map +0 -7
- package/dist/esm/Components/MiniToolbar.js +0 -57
- package/dist/esm/Components/MiniToolbar.js.map +0 -7
- package/dist/esm/Components/ToolbarShortcut.js +0 -38
- package/dist/esm/Components/ToolbarShortcut.js.map +0 -7
- package/dist/esm/Components/outOfTheBox/Button.js +0 -8
- package/dist/esm/Components/outOfTheBox/Button.js.map +0 -7
- package/dist/esm/Components/outOfTheBox/ComboBox.js +0 -8
- package/dist/esm/Components/outOfTheBox/ComboBox.js.map +0 -7
- package/dist/esm/Components/outOfTheBox/IconItem.js +0 -21
- package/dist/esm/Components/outOfTheBox/IconItem.js.map +0 -7
- package/dist/esm/Components/outOfTheBox/SearchBox.js +0 -25
- package/dist/esm/Components/outOfTheBox/SearchBox.js.map +0 -7
- package/dist/esm/Components/outOfTheBox/Separator.js +0 -8
- package/dist/esm/Components/outOfTheBox/Separator.js.map +0 -7
- package/dist/esm/Components/outOfTheBox/index.js +0 -24
- package/dist/esm/Components/outOfTheBox/index.js.map +0 -7
- package/dist/esm/hooks/useGenerateItems.js +0 -108
- package/dist/esm/hooks/useGenerateItems.js.map +0 -7
- package/dist/esm/index.d.js +0 -2
- package/dist/esm/index.d.js.map +0 -7
- package/dist/esm/propTypes.js +0 -40
- package/dist/esm/propTypes.js.map +0 -7
- package/dist/esm/styles.js +0 -33
- package/dist/esm/styles.js.map +0 -7
- package/dist/types/Components/MiniToolbar.d.ts +0 -12
- package/dist/types/Components/ToolbarShortcut.d.ts +0 -4
- package/dist/types/Components/outOfTheBox/Button.d.ts +0 -3
- package/dist/types/Components/outOfTheBox/ComboBox.d.ts +0 -3
- package/dist/types/Components/outOfTheBox/IconItem.d.ts +0 -4
- package/dist/types/Components/outOfTheBox/SearchBox.d.ts +0 -5
- package/dist/types/Components/outOfTheBox/Separator.d.ts +0 -3
- package/dist/types/Components/outOfTheBox/index.d.ts +0 -10
- package/dist/types/hooks/useGenerateItems.d.ts +0 -4
- package/dist/types/index.d.d.ts +0 -75
- package/dist/types/propTypes.d.ts +0 -6
- package/dist/types/styles.d.ts +0 -6
- package/dist/types/tests/DSMiniToolbar.events.test.d.ts +0 -1
- package/dist/types/tests/DSMiniToolbar.keyboard.test.d.ts +0 -1
- package/dist/types/tests/DSMiniToolbar.test.d.ts +0 -1
- package/dist/types/tests/utils.test.d.ts +0 -161
package/dist/cjs/index.js
CHANGED
|
@@ -17,6 +17,7 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
17
17
|
}
|
|
18
18
|
return to;
|
|
19
19
|
};
|
|
20
|
+
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
20
21
|
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
22
|
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
23
|
// file that has been converted to a CommonJS file using a Babel-
|
|
@@ -28,12 +29,10 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
28
29
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
30
|
var src_exports = {};
|
|
30
31
|
__export(src_exports, {
|
|
31
|
-
|
|
32
|
-
MiniToolbarWithSchema: () => import_MiniToolbar.MiniToolbarWithSchema,
|
|
33
|
-
ToolbarItemWithSchema: () => import_propTypes.ToolbarItemWithSchema
|
|
32
|
+
default: () => import_ds_legacy_mini_toolbar.default
|
|
34
33
|
});
|
|
35
34
|
module.exports = __toCommonJS(src_exports);
|
|
36
35
|
var React = __toESM(require("react"));
|
|
37
|
-
|
|
38
|
-
var
|
|
36
|
+
__reExport(src_exports, require("@elliemae/ds-legacy-mini-toolbar"), module.exports);
|
|
37
|
+
var import_ds_legacy_mini_toolbar = __toESM(require("@elliemae/ds-legacy-mini-toolbar"));
|
|
39
38
|
//# sourceMappingURL=index.js.map
|
package/dist/cjs/index.js.map
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/index.tsx", "../../../../../scripts/build/transpile/react-shim.js"],
|
|
4
|
-
"sourcesContent": ["export
|
|
5
|
-
"mappings": "
|
|
4
|
+
"sourcesContent": ["export * from '@elliemae/ds-legacy-mini-toolbar';\nexport { default } from '@elliemae/ds-legacy-mini-toolbar';\n", "import * as React from 'react';\nexport { React };\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,wBAAc,6CAAd;AACA,oCAAwB;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
package/dist/esm/index.js
CHANGED
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
|
|
3
|
-
import {
|
|
2
|
+
export * from "@elliemae/ds-legacy-mini-toolbar";
|
|
3
|
+
import { default as default2 } from "@elliemae/ds-legacy-mini-toolbar";
|
|
4
4
|
export {
|
|
5
|
-
|
|
6
|
-
MiniToolbarWithSchema,
|
|
7
|
-
ToolbarItemWithSchema
|
|
5
|
+
default2 as default
|
|
8
6
|
};
|
|
9
7
|
//# sourceMappingURL=index.js.map
|
package/dist/esm/index.js.map
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../../scripts/build/transpile/react-shim.js", "../../src/index.tsx"],
|
|
4
|
-
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "export
|
|
5
|
-
"mappings": "AAAA,YAAY,WAAW;ACAvB,
|
|
6
|
-
"names": []
|
|
4
|
+
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "export * from '@elliemae/ds-legacy-mini-toolbar';\nexport { default } from '@elliemae/ds-legacy-mini-toolbar';\n"],
|
|
5
|
+
"mappings": "AAAA,YAAY,WAAW;ACAvB,cAAc;AACd,SAAS,WAAAA,gBAAe;",
|
|
6
|
+
"names": ["default"]
|
|
7
7
|
}
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export
|
|
2
|
-
export {
|
|
1
|
+
export * from '@elliemae/ds-legacy-mini-toolbar';
|
|
2
|
+
export { default } from '@elliemae/ds-legacy-mini-toolbar';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elliemae/ds-mini-toolbar",
|
|
3
|
-
"version": "3.27.0-next.
|
|
3
|
+
"version": "3.27.0-next.2",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "ICE MT - Dimsum - MiniToolbar",
|
|
6
6
|
"files": [
|
|
@@ -13,50 +13,6 @@
|
|
|
13
13
|
".": {
|
|
14
14
|
"import": "./dist/esm/index.js",
|
|
15
15
|
"require": "./dist/cjs/index.js"
|
|
16
|
-
},
|
|
17
|
-
"./styles": {
|
|
18
|
-
"import": "./dist/esm/styles.js",
|
|
19
|
-
"require": "./dist/cjs/styles.js"
|
|
20
|
-
},
|
|
21
|
-
"./propTypes": {
|
|
22
|
-
"import": "./dist/esm/propTypes.js",
|
|
23
|
-
"require": "./dist/cjs/propTypes.js"
|
|
24
|
-
},
|
|
25
|
-
"./hooks/useGenerateItems": {
|
|
26
|
-
"import": "./dist/esm/hooks/useGenerateItems.js",
|
|
27
|
-
"require": "./dist/cjs/hooks/useGenerateItems.js"
|
|
28
|
-
},
|
|
29
|
-
"./Components/ToolbarShortcut": {
|
|
30
|
-
"import": "./dist/esm/Components/ToolbarShortcut.js",
|
|
31
|
-
"require": "./dist/cjs/Components/ToolbarShortcut.js"
|
|
32
|
-
},
|
|
33
|
-
"./Components/outOfTheBox/Separator": {
|
|
34
|
-
"import": "./dist/esm/Components/outOfTheBox/Separator.js",
|
|
35
|
-
"require": "./dist/cjs/Components/outOfTheBox/Separator.js"
|
|
36
|
-
},
|
|
37
|
-
"./Components/outOfTheBox/SearchBox": {
|
|
38
|
-
"import": "./dist/esm/Components/outOfTheBox/SearchBox.js",
|
|
39
|
-
"require": "./dist/cjs/Components/outOfTheBox/SearchBox.js"
|
|
40
|
-
},
|
|
41
|
-
"./Components/outOfTheBox": {
|
|
42
|
-
"import": "./dist/esm/Components/outOfTheBox/index.js",
|
|
43
|
-
"require": "./dist/cjs/Components/outOfTheBox/index.js"
|
|
44
|
-
},
|
|
45
|
-
"./Components/outOfTheBox/IconItem": {
|
|
46
|
-
"import": "./dist/esm/Components/outOfTheBox/IconItem.js",
|
|
47
|
-
"require": "./dist/cjs/Components/outOfTheBox/IconItem.js"
|
|
48
|
-
},
|
|
49
|
-
"./Components/outOfTheBox/ComboBox": {
|
|
50
|
-
"import": "./dist/esm/Components/outOfTheBox/ComboBox.js",
|
|
51
|
-
"require": "./dist/cjs/Components/outOfTheBox/ComboBox.js"
|
|
52
|
-
},
|
|
53
|
-
"./Components/outOfTheBox/Button": {
|
|
54
|
-
"import": "./dist/esm/Components/outOfTheBox/Button.js",
|
|
55
|
-
"require": "./dist/cjs/Components/outOfTheBox/Button.js"
|
|
56
|
-
},
|
|
57
|
-
"./Components/MiniToolbar": {
|
|
58
|
-
"import": "./dist/esm/Components/MiniToolbar.js",
|
|
59
|
-
"require": "./dist/cjs/Components/MiniToolbar.js"
|
|
60
16
|
}
|
|
61
17
|
},
|
|
62
18
|
"repository": {
|
|
@@ -75,18 +31,12 @@
|
|
|
75
31
|
"indent": 4
|
|
76
32
|
},
|
|
77
33
|
"dependencies": {
|
|
78
|
-
"
|
|
79
|
-
"@elliemae/ds-button": "3.27.0-next.1",
|
|
80
|
-
"@elliemae/ds-dropdownmenu": "3.27.0-next.1",
|
|
81
|
-
"@elliemae/ds-icons": "3.27.0-next.1",
|
|
82
|
-
"@elliemae/ds-props-helpers": "3.27.0-next.1",
|
|
83
|
-
"@elliemae/ds-system": "3.27.0-next.1",
|
|
84
|
-
"@elliemae/ds-form": "3.27.0-next.1"
|
|
34
|
+
"@elliemae/ds-legacy-mini-toolbar": "1.0.1"
|
|
85
35
|
},
|
|
86
36
|
"devDependencies": {
|
|
87
37
|
"@elliemae/pui-cli": "~9.0.0-next.31",
|
|
88
38
|
"styled-components": "~5.3.9",
|
|
89
|
-
"@elliemae/ds-monorepo-devops": "3.27.0-next.
|
|
39
|
+
"@elliemae/ds-monorepo-devops": "3.27.0-next.2"
|
|
90
40
|
},
|
|
91
41
|
"peerDependencies": {
|
|
92
42
|
"lodash": "^4.17.21",
|
|
@@ -100,13 +50,13 @@
|
|
|
100
50
|
},
|
|
101
51
|
"scripts": {
|
|
102
52
|
"dev": "cross-env NODE_ENV=development node ../../../scripts/build/build.mjs --watch",
|
|
103
|
-
"test": "
|
|
104
|
-
"lint": "
|
|
105
|
-
"eslint:fix": "
|
|
106
|
-
"dts": "
|
|
53
|
+
"test": "exit 0 | echo",
|
|
54
|
+
"lint": "exit 0 | echo",
|
|
55
|
+
"eslint:fix": "exit 0 | echo",
|
|
56
|
+
"dts": "exit 0 | echo",
|
|
107
57
|
"build": "cross-env NODE_ENV=production node ../../../scripts/build/build.mjs",
|
|
108
58
|
"dev:build": "pnpm --filter {.}... build",
|
|
109
59
|
"dev:install": "pnpm --filter {.}... i --no-lockfile && pnpm run dev:build",
|
|
110
|
-
"checkDeps": "
|
|
60
|
+
"checkDeps": "exit 0 | echo"
|
|
111
61
|
}
|
|
112
62
|
}
|
|
@@ -1,87 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __create = Object.create;
|
|
3
|
-
var __defProp = Object.defineProperty;
|
|
4
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
-
var __export = (target, all) => {
|
|
9
|
-
for (var name in all)
|
|
10
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
-
};
|
|
12
|
-
var __copyProps = (to, from, except, desc) => {
|
|
13
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
-
for (let key of __getOwnPropNames(from))
|
|
15
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
16
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
|
-
}
|
|
18
|
-
return to;
|
|
19
|
-
};
|
|
20
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
-
mod
|
|
27
|
-
));
|
|
28
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
-
var MiniToolbar_exports = {};
|
|
30
|
-
__export(MiniToolbar_exports, {
|
|
31
|
-
MiniToolbar: () => MiniToolbar,
|
|
32
|
-
MiniToolbarWithSchema: () => MiniToolbarWithSchema
|
|
33
|
-
});
|
|
34
|
-
module.exports = __toCommonJS(MiniToolbar_exports);
|
|
35
|
-
var React = __toESM(require("react"));
|
|
36
|
-
var import_jsx_runtime = require("react/jsx-runtime");
|
|
37
|
-
var import_react = require("react");
|
|
38
|
-
var import_ds_props_helpers = require("@elliemae/ds-props-helpers");
|
|
39
|
-
var import_ds_dropdownmenu = require("@elliemae/ds-dropdownmenu");
|
|
40
|
-
var import_ds_icons = require("@elliemae/ds-icons");
|
|
41
|
-
var import_styles = require("../styles.js");
|
|
42
|
-
var import_propTypes = require("../propTypes.js");
|
|
43
|
-
var import_useGenerateItems = require("../hooks/useGenerateItems.js");
|
|
44
|
-
const Elipsis = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ds_icons.MoreOptionsVert, { color: ["brand-primary", "600"], size: "m" });
|
|
45
|
-
const MiniToolbar = ({ items, overflowButtonProps }) => {
|
|
46
|
-
const [shortcutItems, dropdownMenuItems] = (0, import_useGenerateItems.useGenerateItems)(items);
|
|
47
|
-
const [isDropdownMenuOpen, setIsDropdownMenuOpen] = (0, import_react.useState)(false);
|
|
48
|
-
const closeDropdownMenu = (0, import_react.useCallback)(() => setIsDropdownMenuOpen(false), []);
|
|
49
|
-
const openDropdownMenu = (0, import_react.useCallback)(() => setIsDropdownMenuOpen(true), []);
|
|
50
|
-
const openDropdownMenuKeyPress = (0, import_react.useCallback)((e) => {
|
|
51
|
-
if (e.key === " ") {
|
|
52
|
-
setIsDropdownMenuOpen(true);
|
|
53
|
-
}
|
|
54
|
-
}, []);
|
|
55
|
-
const { ariaLabel, style, buttonType = "secondary" } = overflowButtonProps || {};
|
|
56
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_styles.Container, { role: "toolbar", "data-testid": "ds-mini-toolbar", children: [
|
|
57
|
-
shortcutItems,
|
|
58
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
59
|
-
import_ds_dropdownmenu.DSDropdownMenu,
|
|
60
|
-
{
|
|
61
|
-
"data-testid": "ds-mini-toolbar__dropdown-menu",
|
|
62
|
-
isOpen: isDropdownMenuOpen,
|
|
63
|
-
onSelectMenuItem: closeDropdownMenu,
|
|
64
|
-
onClickOutsideMenu: closeDropdownMenu,
|
|
65
|
-
options: dropdownMenuItems,
|
|
66
|
-
triggerComponent: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
67
|
-
import_styles.StyledButton,
|
|
68
|
-
{
|
|
69
|
-
"aria-label": ariaLabel,
|
|
70
|
-
"data-testid": "ds-mini-toolbar__elipsis",
|
|
71
|
-
size: "m",
|
|
72
|
-
style,
|
|
73
|
-
buttonType,
|
|
74
|
-
onClick: openDropdownMenu,
|
|
75
|
-
onKeyPress: openDropdownMenuKeyPress,
|
|
76
|
-
leftIcon: Elipsis
|
|
77
|
-
}
|
|
78
|
-
)
|
|
79
|
-
}
|
|
80
|
-
)
|
|
81
|
-
] });
|
|
82
|
-
};
|
|
83
|
-
MiniToolbar.propTypes = import_propTypes.miniToolbarProps;
|
|
84
|
-
MiniToolbar.displayName = "MiniToolbar";
|
|
85
|
-
const MiniToolbarWithSchema = (0, import_ds_props_helpers.describe)(MiniToolbar);
|
|
86
|
-
MiniToolbarWithSchema.propTypes = import_propTypes.miniToolbarProps;
|
|
87
|
-
//# sourceMappingURL=MiniToolbar.js.map
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../src/Components/MiniToolbar.tsx", "../../../../../../scripts/build/transpile/react-shim.js"],
|
|
4
|
-
"sourcesContent": ["import React, { useState, useCallback } from 'react';\nimport { describe } from '@elliemae/ds-props-helpers';\nimport { DSDropdownMenu } from '@elliemae/ds-dropdownmenu';\nimport { MoreOptionsVert } from '@elliemae/ds-icons';\nimport { StyledButton, Container } from '../styles.js';\nimport { miniToolbarProps } from '../propTypes.js';\nimport { useGenerateItems } from '../hooks/useGenerateItems.js';\nimport type { MiniToolbarPropsT } from '../index.d';\n\nconst Elipsis = <MoreOptionsVert color={['brand-primary', '600']} size=\"m\" />;\n\nconst MiniToolbar = ({ items, overflowButtonProps }: MiniToolbarPropsT): React.ReactElement => {\n const [shortcutItems, dropdownMenuItems] = useGenerateItems(items);\n const [isDropdownMenuOpen, setIsDropdownMenuOpen] = useState<boolean>(false);\n\n const closeDropdownMenu = useCallback(() => setIsDropdownMenuOpen(false), []);\n const openDropdownMenu = useCallback(() => setIsDropdownMenuOpen(true), []);\n const openDropdownMenuKeyPress = useCallback((e) => {\n if (e.key === ' ') {\n setIsDropdownMenuOpen(true);\n }\n }, []);\n\n const { ariaLabel, style, buttonType = 'secondary' } = overflowButtonProps || {};\n\n return (\n <Container role=\"toolbar\" data-testid=\"ds-mini-toolbar\">\n {shortcutItems}\n <DSDropdownMenu\n data-testid=\"ds-mini-toolbar__dropdown-menu\"\n isOpen={isDropdownMenuOpen}\n onSelectMenuItem={closeDropdownMenu}\n onClickOutsideMenu={closeDropdownMenu}\n options={dropdownMenuItems}\n triggerComponent={\n <StyledButton\n aria-label={ariaLabel}\n data-testid=\"ds-mini-toolbar__elipsis\"\n size=\"m\"\n style={style}\n buttonType={buttonType}\n onClick={openDropdownMenu}\n onKeyPress={openDropdownMenuKeyPress}\n leftIcon={Elipsis}\n />\n }\n />\n </Container>\n );\n};\n\nMiniToolbar.propTypes = miniToolbarProps;\nMiniToolbar.displayName = 'MiniToolbar';\nconst MiniToolbarWithSchema = describe(MiniToolbar);\nMiniToolbarWithSchema.propTypes = miniToolbarProps;\n\nexport { MiniToolbar, MiniToolbarWithSchema };\n", "import * as React from 'react';\nexport { React };\n"],
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADSP;AAThB,mBAA6C;AAC7C,8BAAyB;AACzB,6BAA+B;AAC/B,sBAAgC;AAChC,oBAAwC;AACxC,uBAAiC;AACjC,8BAAiC;AAGjC,MAAM,UAAU,4CAAC,mCAAgB,OAAO,CAAC,iBAAiB,KAAK,GAAG,MAAK,KAAI;AAE3E,MAAM,cAAc,CAAC,EAAE,OAAO,oBAAoB,MAA6C;AAC7F,QAAM,CAAC,eAAe,iBAAiB,QAAI,0CAAiB,KAAK;AACjE,QAAM,CAAC,oBAAoB,qBAAqB,QAAI,uBAAkB,KAAK;AAE3E,QAAM,wBAAoB,0BAAY,MAAM,sBAAsB,KAAK,GAAG,CAAC,CAAC;AAC5E,QAAM,uBAAmB,0BAAY,MAAM,sBAAsB,IAAI,GAAG,CAAC,CAAC;AAC1E,QAAM,+BAA2B,0BAAY,CAAC,MAAM;AAClD,QAAI,EAAE,QAAQ,KAAK;AACjB,4BAAsB,IAAI;AAAA,IAC5B;AAAA,EACF,GAAG,CAAC,CAAC;AAEL,QAAM,EAAE,WAAW,OAAO,aAAa,YAAY,IAAI,uBAAuB,CAAC;AAE/E,SACE,6CAAC,2BAAU,MAAK,WAAU,eAAY,mBACnC;AAAA;AAAA,IACD;AAAA,MAAC;AAAA;AAAA,QACC,eAAY;AAAA,QACZ,QAAQ;AAAA,QACR,kBAAkB;AAAA,QAClB,oBAAoB;AAAA,QACpB,SAAS;AAAA,QACT,kBACE;AAAA,UAAC;AAAA;AAAA,YACC,cAAY;AAAA,YACZ,eAAY;AAAA,YACZ,MAAK;AAAA,YACL;AAAA,YACA;AAAA,YACA,SAAS;AAAA,YACT,YAAY;AAAA,YACZ,UAAU;AAAA;AAAA,QACZ;AAAA;AAAA,IAEJ;AAAA,KACF;AAEJ;AAEA,YAAY,YAAY;AACxB,YAAY,cAAc;AAC1B,MAAM,4BAAwB,kCAAS,WAAW;AAClD,sBAAsB,YAAY;",
|
|
6
|
-
"names": []
|
|
7
|
-
}
|
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __create = Object.create;
|
|
3
|
-
var __defProp = Object.defineProperty;
|
|
4
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
-
var __export = (target, all) => {
|
|
9
|
-
for (var name in all)
|
|
10
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
-
};
|
|
12
|
-
var __copyProps = (to, from, except, desc) => {
|
|
13
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
-
for (let key of __getOwnPropNames(from))
|
|
15
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
16
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
|
-
}
|
|
18
|
-
return to;
|
|
19
|
-
};
|
|
20
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
-
mod
|
|
27
|
-
));
|
|
28
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
-
var ToolbarShortcut_exports = {};
|
|
30
|
-
__export(ToolbarShortcut_exports, {
|
|
31
|
-
ToolbarShortcut: () => ToolbarShortcut
|
|
32
|
-
});
|
|
33
|
-
module.exports = __toCommonJS(ToolbarShortcut_exports);
|
|
34
|
-
var React = __toESM(require("react"));
|
|
35
|
-
var import_jsx_runtime = require("react/jsx-runtime");
|
|
36
|
-
var import_react = require("react");
|
|
37
|
-
var import_styles = require("../styles.js");
|
|
38
|
-
const ToolbarShortcut = (props) => {
|
|
39
|
-
const { Component, shortcutProps, sharedProps, ContextualRegion, contextualRegionProps } = props;
|
|
40
|
-
const leftRef = (0, import_react.useRef)(null);
|
|
41
|
-
const rightRef = (0, import_react.useRef)(null);
|
|
42
|
-
const timerLeft = (0, import_react.useRef)(null);
|
|
43
|
-
const timerRight = (0, import_react.useRef)(null);
|
|
44
|
-
const { position = "left", isOpen = false } = contextualRegionProps || {};
|
|
45
|
-
const { style } = shortcutProps || {};
|
|
46
|
-
const mergedProps = {
|
|
47
|
-
...sharedProps,
|
|
48
|
-
...shortcutProps
|
|
49
|
-
};
|
|
50
|
-
(0, import_react.useEffect)(() => {
|
|
51
|
-
if (isOpen && leftRef.current) {
|
|
52
|
-
timerLeft.current = setTimeout(() => leftRef.current.focus(), 200);
|
|
53
|
-
}
|
|
54
|
-
if (isOpen && rightRef.current) {
|
|
55
|
-
timerRight.current = setTimeout(() => rightRef.current.focus(), 200);
|
|
56
|
-
}
|
|
57
|
-
return () => {
|
|
58
|
-
clearTimeout(timerLeft.current);
|
|
59
|
-
clearTimeout(timerRight.current);
|
|
60
|
-
};
|
|
61
|
-
}, [isOpen, leftRef, rightRef]);
|
|
62
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
|
|
63
|
-
isOpen && position === "left" && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_styles.Item, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ContextualRegion, { innerRef: leftRef, ...contextualRegionProps }) }),
|
|
64
|
-
Component && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_styles.Item, { style, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Component, { ...mergedProps }) }),
|
|
65
|
-
isOpen && position === "right" && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_styles.Item, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ContextualRegion, { innerRef: rightRef, ...contextualRegionProps }) })
|
|
66
|
-
] });
|
|
67
|
-
};
|
|
68
|
-
//# sourceMappingURL=ToolbarShortcut.js.map
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../src/Components/ToolbarShortcut.tsx", "../../../../../../scripts/build/transpile/react-shim.js"],
|
|
4
|
-
"sourcesContent": ["import React, { useRef, useEffect } from 'react';\nimport { Item } from '../styles.js';\nimport type { ToolbarShortcutPropsT } from '../index.d';\n\nconst ToolbarShortcut = (props: ToolbarShortcutPropsT): React.ReactElement => {\n const { Component, shortcutProps, sharedProps, ContextualRegion, contextualRegionProps } = props;\n const leftRef = useRef<HTMLElement | null>(null);\n const rightRef = useRef<HTMLElement | null>(null);\n const timerLeft = useRef<ReturnType<typeof setInterval> | null>(null);\n const timerRight = useRef<ReturnType<typeof setInterval> | null>(null);\n\n const { position = 'left', isOpen = false } = contextualRegionProps || {};\n const { style } = shortcutProps || {};\n\n const mergedProps = {\n ...sharedProps,\n ...shortcutProps,\n };\n\n useEffect(() => {\n if (isOpen && leftRef.current) {\n timerLeft.current = setTimeout(() => leftRef.current.focus(), 200);\n }\n if (isOpen && rightRef.current) {\n timerRight.current = setTimeout(() => rightRef.current.focus(), 200);\n }\n\n return () => {\n clearTimeout(timerLeft.current);\n clearTimeout(timerRight.current);\n };\n }, [isOpen, leftRef, rightRef]);\n\n return (\n <>\n {isOpen && position === 'left' && (\n <Item>\n <ContextualRegion innerRef={leftRef} {...contextualRegionProps} />\n </Item>\n )}\n {Component && (\n <Item style={style}>\n <Component {...mergedProps} />\n </Item>\n )}\n {isOpen && position === 'right' && (\n <Item>\n <ContextualRegion innerRef={rightRef} {...contextualRegionProps} />\n </Item>\n )}\n </>\n );\n};\n\nexport { ToolbarShortcut };\n", "import * as React from 'react';\nexport { React };\n"],
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADkCnB;AAlCJ,mBAAyC;AACzC,oBAAqB;AAGrB,MAAM,kBAAkB,CAAC,UAAqD;AAC5E,QAAM,EAAE,WAAW,eAAe,aAAa,kBAAkB,sBAAsB,IAAI;AAC3F,QAAM,cAAU,qBAA2B,IAAI;AAC/C,QAAM,eAAW,qBAA2B,IAAI;AAChD,QAAM,gBAAY,qBAA8C,IAAI;AACpE,QAAM,iBAAa,qBAA8C,IAAI;AAErE,QAAM,EAAE,WAAW,QAAQ,SAAS,MAAM,IAAI,yBAAyB,CAAC;AACxE,QAAM,EAAE,MAAM,IAAI,iBAAiB,CAAC;AAEpC,QAAM,cAAc;AAAA,IAClB,GAAG;AAAA,IACH,GAAG;AAAA,EACL;AAEA,8BAAU,MAAM;AACd,QAAI,UAAU,QAAQ,SAAS;AAC7B,gBAAU,UAAU,WAAW,MAAM,QAAQ,QAAQ,MAAM,GAAG,GAAG;AAAA,IACnE;AACA,QAAI,UAAU,SAAS,SAAS;AAC9B,iBAAW,UAAU,WAAW,MAAM,SAAS,QAAQ,MAAM,GAAG,GAAG;AAAA,IACrE;AAEA,WAAO,MAAM;AACX,mBAAa,UAAU,OAAO;AAC9B,mBAAa,WAAW,OAAO;AAAA,IACjC;AAAA,EACF,GAAG,CAAC,QAAQ,SAAS,QAAQ,CAAC;AAE9B,SACE,4EACG;AAAA,cAAU,aAAa,UACtB,4CAAC,sBACC,sDAAC,oBAAiB,UAAU,SAAU,GAAG,uBAAuB,GAClE;AAAA,IAED,aACC,4CAAC,sBAAK,OACJ,sDAAC,aAAW,GAAG,aAAa,GAC9B;AAAA,IAED,UAAU,aAAa,WACtB,4CAAC,sBACC,sDAAC,oBAAiB,UAAU,UAAW,GAAG,uBAAuB,GACnE;AAAA,KAEJ;AAEJ;",
|
|
6
|
-
"names": []
|
|
7
|
-
}
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __create = Object.create;
|
|
3
|
-
var __defProp = Object.defineProperty;
|
|
4
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
-
var __export = (target, all) => {
|
|
9
|
-
for (var name in all)
|
|
10
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
-
};
|
|
12
|
-
var __copyProps = (to, from, except, desc) => {
|
|
13
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
-
for (let key of __getOwnPropNames(from))
|
|
15
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
16
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
|
-
}
|
|
18
|
-
return to;
|
|
19
|
-
};
|
|
20
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
-
mod
|
|
27
|
-
));
|
|
28
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
-
var Button_exports = {};
|
|
30
|
-
__export(Button_exports, {
|
|
31
|
-
MiniToolbarButton: () => MiniToolbarButton
|
|
32
|
-
});
|
|
33
|
-
module.exports = __toCommonJS(Button_exports);
|
|
34
|
-
var React = __toESM(require("react"));
|
|
35
|
-
var import_jsx_runtime = require("react/jsx-runtime");
|
|
36
|
-
var import_ds_button = require("@elliemae/ds-button");
|
|
37
|
-
const MiniToolbarButton = (props) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ds_button.DSButton, { ...props, "aria-label": props.ariaLabel, "data-testid": "ds-mini-toolbar__shortcut" });
|
|
38
|
-
//# sourceMappingURL=Button.js.map
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../../src/Components/outOfTheBox/Button.tsx", "../../../../../../../scripts/build/transpile/react-shim.js"],
|
|
4
|
-
"sourcesContent": ["import React from 'react';\nimport { DSButton } from '@elliemae/ds-button';\n\nconst MiniToolbarButton = (props: Record<string, unknown>): React.ReactElement => (\n <DSButton {...props} aria-label={props.ariaLabel} data-testid=\"ds-mini-toolbar__shortcut\" />\n);\n\nexport { MiniToolbarButton };\n", "import * as React from 'react';\nexport { React };\n"],
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADIrB;AAHF,uBAAyB;AAEzB,MAAM,oBAAoB,CAAC,UACzB,4CAAC,6BAAU,GAAG,OAAO,cAAY,MAAM,WAAW,eAAY,6BAA4B;",
|
|
6
|
-
"names": []
|
|
7
|
-
}
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __create = Object.create;
|
|
3
|
-
var __defProp = Object.defineProperty;
|
|
4
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
-
var __export = (target, all) => {
|
|
9
|
-
for (var name in all)
|
|
10
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
-
};
|
|
12
|
-
var __copyProps = (to, from, except, desc) => {
|
|
13
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
-
for (let key of __getOwnPropNames(from))
|
|
15
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
16
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
|
-
}
|
|
18
|
-
return to;
|
|
19
|
-
};
|
|
20
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
-
mod
|
|
27
|
-
));
|
|
28
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
-
var ComboBox_exports = {};
|
|
30
|
-
__export(ComboBox_exports, {
|
|
31
|
-
MiniToolbarComboBox: () => MiniToolbarComboBox
|
|
32
|
-
});
|
|
33
|
-
module.exports = __toCommonJS(ComboBox_exports);
|
|
34
|
-
var React = __toESM(require("react"));
|
|
35
|
-
var import_jsx_runtime = require("react/jsx-runtime");
|
|
36
|
-
var import_ds_form = require("@elliemae/ds-form");
|
|
37
|
-
const MiniToolbarComboBox = (props) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ds_form.DSComboBox2, { ...props });
|
|
38
|
-
//# sourceMappingURL=ComboBox.js.map
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../../src/Components/outOfTheBox/ComboBox.tsx", "../../../../../../../scripts/build/transpile/react-shim.js"],
|
|
4
|
-
"sourcesContent": ["import React from 'react';\nimport { DSComboBox2 } from '@elliemae/ds-form';\n\nconst MiniToolbarComboBox = (props: Record<string, unknown>): React.ReactElement => <DSComboBox2 {...props} />;\n\nexport { MiniToolbarComboBox };\n", "import * as React from 'react';\nexport { React };\n"],
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADG6D;AAFpF,qBAA4B;AAE5B,MAAM,sBAAsB,CAAC,UAAuD,4CAAC,8BAAa,GAAG,OAAO;",
|
|
6
|
-
"names": []
|
|
7
|
-
}
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __create = Object.create;
|
|
3
|
-
var __defProp = Object.defineProperty;
|
|
4
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
-
var __export = (target, all) => {
|
|
9
|
-
for (var name in all)
|
|
10
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
-
};
|
|
12
|
-
var __copyProps = (to, from, except, desc) => {
|
|
13
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
-
for (let key of __getOwnPropNames(from))
|
|
15
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
16
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
|
-
}
|
|
18
|
-
return to;
|
|
19
|
-
};
|
|
20
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
-
mod
|
|
27
|
-
));
|
|
28
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
-
var IconItem_exports = {};
|
|
30
|
-
__export(IconItem_exports, {
|
|
31
|
-
MiniToolbarIcon: () => MiniToolbarIcon
|
|
32
|
-
});
|
|
33
|
-
module.exports = __toCommonJS(IconItem_exports);
|
|
34
|
-
var React = __toESM(require("react"));
|
|
35
|
-
var import_jsx_runtime = require("react/jsx-runtime");
|
|
36
|
-
var import_styles = require("../../styles.js");
|
|
37
|
-
const MiniToolbarIcon = (props) => {
|
|
38
|
-
const { Icon, size, color, onClick, ariaLabel, style, buttonType = "secondary" } = props;
|
|
39
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
40
|
-
import_styles.StyledButton,
|
|
41
|
-
{
|
|
42
|
-
"aria-label": ariaLabel,
|
|
43
|
-
buttonType,
|
|
44
|
-
onClick,
|
|
45
|
-
style,
|
|
46
|
-
leftIcon: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Icon, { size, color }),
|
|
47
|
-
"data-testid": "ds-mini-toolbar__shortcut"
|
|
48
|
-
}
|
|
49
|
-
);
|
|
50
|
-
};
|
|
51
|
-
//# sourceMappingURL=IconItem.js.map
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../../src/Components/outOfTheBox/IconItem.tsx", "../../../../../../../scripts/build/transpile/react-shim.js"],
|
|
4
|
-
"sourcesContent": ["import React from 'react';\nimport { StyledButton } from '../../styles.js';\nimport type { MiniToolbarIconItemPropsT } from '../../index.d';\n\nconst MiniToolbarIcon = (props: MiniToolbarIconItemPropsT): React.ReactElement => {\n const { Icon, size, color, onClick, ariaLabel, style, buttonType = 'secondary' } = props;\n\n return (\n <StyledButton\n aria-label={ariaLabel}\n buttonType={buttonType}\n onClick={onClick}\n style={style}\n leftIcon={<Icon size={size} color={color} />}\n data-testid=\"ds-mini-toolbar__shortcut\"\n />\n );\n};\n\nexport { MiniToolbarIcon };\n", "import * as React from 'react';\nexport { React };\n"],
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADaP;AAZhB,oBAA6B;AAG7B,MAAM,kBAAkB,CAAC,UAAyD;AAChF,QAAM,EAAE,MAAM,MAAM,OAAO,SAAS,WAAW,OAAO,aAAa,YAAY,IAAI;AAEnF,SACE;AAAA,IAAC;AAAA;AAAA,MACC,cAAY;AAAA,MACZ;AAAA,MACA;AAAA,MACA;AAAA,MACA,UAAU,4CAAC,QAAK,MAAY,OAAc;AAAA,MAC1C,eAAY;AAAA;AAAA,EACd;AAEJ;",
|
|
6
|
-
"names": []
|
|
7
|
-
}
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __create = Object.create;
|
|
3
|
-
var __defProp = Object.defineProperty;
|
|
4
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
-
var __export = (target, all) => {
|
|
9
|
-
for (var name in all)
|
|
10
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
-
};
|
|
12
|
-
var __copyProps = (to, from, except, desc) => {
|
|
13
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
-
for (let key of __getOwnPropNames(from))
|
|
15
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
16
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
|
-
}
|
|
18
|
-
return to;
|
|
19
|
-
};
|
|
20
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
-
mod
|
|
27
|
-
));
|
|
28
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
-
var SearchBox_exports = {};
|
|
30
|
-
__export(SearchBox_exports, {
|
|
31
|
-
MiniToolbarSearchBox: () => MiniToolbarSearchBox,
|
|
32
|
-
MiniToolbarSearchButton: () => MiniToolbarSearchButton
|
|
33
|
-
});
|
|
34
|
-
module.exports = __toCommonJS(SearchBox_exports);
|
|
35
|
-
var React = __toESM(require("react"));
|
|
36
|
-
var import_jsx_runtime = require("react/jsx-runtime");
|
|
37
|
-
var import_ds_icons = require("@elliemae/ds-icons");
|
|
38
|
-
var import_ds_form = require("@elliemae/ds-form");
|
|
39
|
-
var import_styles = require("../../styles.js");
|
|
40
|
-
const MiniToolbarSearchButton = (props) => {
|
|
41
|
-
const { size, color, onClick, ariaLabel, style, buttonType = "secondary" } = props;
|
|
42
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
43
|
-
import_styles.StyledButton,
|
|
44
|
-
{
|
|
45
|
-
"aria-label": ariaLabel,
|
|
46
|
-
buttonType,
|
|
47
|
-
onClick,
|
|
48
|
-
style,
|
|
49
|
-
leftIcon: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ds_icons.Search, { size, color }),
|
|
50
|
-
"data-testid": "ds-mini-toolbar__shortcut"
|
|
51
|
-
}
|
|
52
|
-
);
|
|
53
|
-
};
|
|
54
|
-
const MiniToolbarSearchBox = (props) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ds_form.DSSearchBox, { clearable: true, showIcon: false, ...props });
|
|
55
|
-
//# sourceMappingURL=SearchBox.js.map
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../../src/Components/outOfTheBox/SearchBox.tsx", "../../../../../../../scripts/build/transpile/react-shim.js"],
|
|
4
|
-
"sourcesContent": ["/* eslint-disable react/prop-types */\nimport React from 'react';\nimport { Search } from '@elliemae/ds-icons';\nimport { DSSearchBox } from '@elliemae/ds-form';\nimport { StyledButton } from '../../styles.js';\nimport type { MiniToolbarIconItemPropsT } from '../../index.d';\n\nconst MiniToolbarSearchButton = (props: MiniToolbarIconItemPropsT): React.ReactElement => {\n const { size, color, onClick, ariaLabel, style, buttonType = 'secondary' } = props;\n\n return (\n <StyledButton\n aria-label={ariaLabel}\n buttonType={buttonType}\n onClick={onClick}\n style={style}\n leftIcon={<Search size={size} color={color} />}\n data-testid=\"ds-mini-toolbar__shortcut\"\n />\n );\n};\n\nconst MiniToolbarSearchBox = (props: Record<string, unknown>): JSX.Element => (\n <DSSearchBox clearable showIcon={false} {...props} />\n);\n\nexport { MiniToolbarSearchButton, MiniToolbarSearchBox };\n", "import * as React from 'react';\nexport { React };\n"],
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADgBP;AAdhB,sBAAuB;AACvB,qBAA4B;AAC5B,oBAA6B;AAG7B,MAAM,0BAA0B,CAAC,UAAyD;AACxF,QAAM,EAAE,MAAM,OAAO,SAAS,WAAW,OAAO,aAAa,YAAY,IAAI;AAE7E,SACE;AAAA,IAAC;AAAA;AAAA,MACC,cAAY;AAAA,MACZ;AAAA,MACA;AAAA,MACA;AAAA,MACA,UAAU,4CAAC,0BAAO,MAAY,OAAc;AAAA,MAC5C,eAAY;AAAA;AAAA,EACd;AAEJ;AAEA,MAAM,uBAAuB,CAAC,UAC5B,4CAAC,8BAAY,WAAS,MAAC,UAAU,OAAQ,GAAG,OAAO;",
|
|
6
|
-
"names": []
|
|
7
|
-
}
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __create = Object.create;
|
|
3
|
-
var __defProp = Object.defineProperty;
|
|
4
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
-
var __export = (target, all) => {
|
|
9
|
-
for (var name in all)
|
|
10
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
-
};
|
|
12
|
-
var __copyProps = (to, from, except, desc) => {
|
|
13
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
-
for (let key of __getOwnPropNames(from))
|
|
15
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
16
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
|
-
}
|
|
18
|
-
return to;
|
|
19
|
-
};
|
|
20
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
-
mod
|
|
27
|
-
));
|
|
28
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
-
var Separator_exports = {};
|
|
30
|
-
__export(Separator_exports, {
|
|
31
|
-
MiniToolbarSeparator: () => MiniToolbarSeparator
|
|
32
|
-
});
|
|
33
|
-
module.exports = __toCommonJS(Separator_exports);
|
|
34
|
-
var React = __toESM(require("react"));
|
|
35
|
-
var import_jsx_runtime = require("react/jsx-runtime");
|
|
36
|
-
var import_styles = require("../../styles.js");
|
|
37
|
-
const MiniToolbarSeparator = () => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_styles.Separator, { "data-testid": "ds-mini-toolbar__separator" });
|
|
38
|
-
//# sourceMappingURL=Separator.js.map
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../../src/Components/outOfTheBox/Separator.tsx", "../../../../../../../scripts/build/transpile/react-shim.js"],
|
|
4
|
-
"sourcesContent": ["import React from 'react';\nimport { Separator } from '../../styles.js';\n\nconst MiniToolbarSeparator = (): React.ReactElement => <Separator data-testid=\"ds-mini-toolbar__separator\" />;\n\nexport { MiniToolbarSeparator };\n", "import * as React from 'react';\nexport { React };\n"],
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADGgC;AAFvD,oBAA0B;AAE1B,MAAM,uBAAuB,MAA0B,4CAAC,2BAAU,eAAY,8BAA6B;",
|
|
6
|
-
"names": []
|
|
7
|
-
}
|