@elliemae/ds-mini-toolbar 2.3.0-alpha.8 → 2.3.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/cjs/Components/MiniToolbar.js +70 -0
- package/cjs/Components/ToolbarShortcut.js +72 -0
- package/cjs/Components/outOfTheBox/Button.js +29 -0
- package/cjs/Components/outOfTheBox/ComboBox.js +25 -0
- package/cjs/Components/outOfTheBox/IconItem.js +36 -0
- package/cjs/Components/outOfTheBox/SearchBox.js +55 -0
- package/cjs/Components/outOfTheBox/Separator.js +19 -0
- package/cjs/Components/outOfTheBox/index.js +26 -0
- package/cjs/hooks/useGenerateItems.js +134 -0
- package/cjs/index.d.js +2 -0
- package/cjs/index.js +12 -0
- package/cjs/propTypes.js +35 -0
- package/cjs/styles.js +29 -0
- package/esm/Components/MiniToolbar.js +60 -0
- package/esm/Components/ToolbarShortcut.js +63 -0
- package/esm/Components/outOfTheBox/Button.js +20 -0
- package/esm/Components/outOfTheBox/ComboBox.js +17 -0
- package/esm/Components/outOfTheBox/IconItem.js +28 -0
- package/esm/Components/outOfTheBox/SearchBox.js +45 -0
- package/esm/Components/outOfTheBox/Separator.js +11 -0
- package/esm/Components/outOfTheBox/index.js +13 -0
- package/esm/hooks/useGenerateItems.js +125 -0
- package/esm/index.d.js +1 -0
- package/esm/index.js +2 -0
- package/esm/propTypes.js +30 -0
- package/esm/styles.js +17 -0
- package/package.json +43 -45
- package/types/Components/MiniToolbar.d.ts +21 -0
- package/types/Components/ToolbarShortcut.d.ts +4 -0
- package/types/Components/outOfTheBox/Button.d.ts +3 -0
- package/types/Components/outOfTheBox/ComboBox.d.ts +3 -0
- package/types/Components/outOfTheBox/IconItem.d.ts +4 -0
- package/types/Components/outOfTheBox/SearchBox.d.ts +5 -0
- package/types/Components/outOfTheBox/Separator.d.ts +3 -0
- package/types/Components/outOfTheBox/index.d.ts +10 -0
- package/types/hooks/useGenerateItems.d.ts +4 -0
- package/types/index.d.d.ts +75 -0
- package/types/index.d.ts +2 -0
- package/types/propTypes.d.ts +17 -0
- package/types/styles.d.ts +5 -0
- package/types/tests/DSMiniToolbar.events.test.d.ts +1 -0
- package/types/tests/DSMiniToolbar.keyboard.test.d.ts +1 -0
- package/types/tests/DSMiniToolbar.test.d.ts +1 -0
- package/types/tests/utils.test.d.ts +161 -0
- package/dist/cjs/Components/MiniToolbar.js +0 -81
- package/dist/cjs/Components/MiniToolbar.js.map +0 -7
- package/dist/cjs/Components/ToolbarShortcut.js +0 -72
- package/dist/cjs/Components/ToolbarShortcut.js.map +0 -7
- package/dist/cjs/Components/outOfTheBox/Button.js +0 -41
- package/dist/cjs/Components/outOfTheBox/Button.js.map +0 -7
- package/dist/cjs/Components/outOfTheBox/ComboBox.js +0 -39
- package/dist/cjs/Components/outOfTheBox/ComboBox.js.map +0 -7
- package/dist/cjs/Components/outOfTheBox/IconItem.js +0 -50
- package/dist/cjs/Components/outOfTheBox/IconItem.js.map +0 -7
- package/dist/cjs/Components/outOfTheBox/SearchBox.js +0 -58
- package/dist/cjs/Components/outOfTheBox/SearchBox.js.map +0 -7
- package/dist/cjs/Components/outOfTheBox/Separator.js +0 -39
- package/dist/cjs/Components/outOfTheBox/Separator.js.map +0 -7
- package/dist/cjs/Components/outOfTheBox/index.js +0 -53
- package/dist/cjs/Components/outOfTheBox/index.js.map +0 -7
- package/dist/cjs/hooks/useGenerateItems.js +0 -120
- package/dist/cjs/hooks/useGenerateItems.js.map +0 -7
- package/dist/cjs/index.d.js +0 -27
- package/dist/cjs/index.d.js.map +0 -7
- package/dist/cjs/index.js +0 -38
- package/dist/cjs/index.js.map +0 -7
- package/dist/cjs/propTypes.js +0 -69
- package/dist/cjs/propTypes.js.map +0 -7
- package/dist/cjs/styles.js +0 -62
- package/dist/cjs/styles.js.map +0 -7
- package/dist/esm/Components/MiniToolbar.js +0 -52
- package/dist/esm/Components/MiniToolbar.js.map +0 -7
- package/dist/esm/Components/ToolbarShortcut.js +0 -43
- package/dist/esm/Components/ToolbarShortcut.js.map +0 -7
- package/dist/esm/Components/outOfTheBox/Button.js +0 -12
- package/dist/esm/Components/outOfTheBox/Button.js.map +0 -7
- package/dist/esm/Components/outOfTheBox/ComboBox.js +0 -10
- 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 -29
- package/dist/esm/Components/outOfTheBox/SearchBox.js.map +0 -7
- package/dist/esm/Components/outOfTheBox/Separator.js +0 -10
- 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 -102
- 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/index.js +0 -9
- package/dist/esm/index.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
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import React2, { useRef, useEffect } from "react";
|
|
3
|
-
import { Item } from "../styles";
|
|
4
|
-
const ToolbarShortcut = (props) => {
|
|
5
|
-
const { Component, shortcutProps, sharedProps, ContextualRegion, contextualRegionProps } = props;
|
|
6
|
-
const leftRef = useRef(null);
|
|
7
|
-
const rightRef = useRef(null);
|
|
8
|
-
const timerLeft = useRef(null);
|
|
9
|
-
const timerRight = useRef(null);
|
|
10
|
-
const { position = "left", isOpen = false } = contextualRegionProps || {};
|
|
11
|
-
const { style } = shortcutProps || {};
|
|
12
|
-
const mergedProps = {
|
|
13
|
-
...sharedProps,
|
|
14
|
-
...shortcutProps
|
|
15
|
-
};
|
|
16
|
-
useEffect(() => {
|
|
17
|
-
if (isOpen && leftRef.current) {
|
|
18
|
-
timerLeft.current = setTimeout(() => leftRef.current.focus(), 200);
|
|
19
|
-
}
|
|
20
|
-
if (isOpen && rightRef.current) {
|
|
21
|
-
timerRight.current = setTimeout(() => rightRef.current.focus(), 200);
|
|
22
|
-
}
|
|
23
|
-
return () => {
|
|
24
|
-
clearTimeout(timerLeft.current);
|
|
25
|
-
clearTimeout(timerRight.current);
|
|
26
|
-
};
|
|
27
|
-
}, [isOpen, leftRef, rightRef]);
|
|
28
|
-
return /* @__PURE__ */ React2.createElement(React2.Fragment, null, isOpen && position === "left" && /* @__PURE__ */ React2.createElement(Item, null, /* @__PURE__ */ React2.createElement(ContextualRegion, {
|
|
29
|
-
innerRef: leftRef,
|
|
30
|
-
...contextualRegionProps
|
|
31
|
-
})), Component && /* @__PURE__ */ React2.createElement(Item, {
|
|
32
|
-
style
|
|
33
|
-
}, /* @__PURE__ */ React2.createElement(Component, {
|
|
34
|
-
...mergedProps
|
|
35
|
-
})), isOpen && position === "right" && /* @__PURE__ */ React2.createElement(Item, null, /* @__PURE__ */ React2.createElement(ContextualRegion, {
|
|
36
|
-
innerRef: rightRef,
|
|
37
|
-
...contextualRegionProps
|
|
38
|
-
})));
|
|
39
|
-
};
|
|
40
|
-
export {
|
|
41
|
-
ToolbarShortcut
|
|
42
|
-
};
|
|
43
|
-
//# sourceMappingURL=ToolbarShortcut.js.map
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../../../scripts/build/transpile/react-shim.js", "../../../src/Components/ToolbarShortcut.tsx"],
|
|
4
|
-
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import React, { useRef, useEffect } from 'react';\nimport { Item } from '../styles';\nimport { 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"],
|
|
5
|
-
"mappings": "AAAA;ACAA;AACA;AAGA,MAAM,kBAAkB,CAAC,UAAqD;AAC5E,QAAM,EAAE,WAAW,eAAe,aAAa,kBAAkB,0BAA0B;AAC3F,QAAM,UAAU,OAA2B;AAC3C,QAAM,WAAW,OAA2B;AAC5C,QAAM,YAAY,OAA8C;AAChE,QAAM,aAAa,OAA8C;AAEjE,QAAM,EAAE,WAAW,QAAQ,SAAS,UAAU,yBAAyB;AACvE,QAAM,EAAE,UAAU,iBAAiB;AAEnC,QAAM,cAAc;AAAA,OACf;AAAA,OACA;AAAA;AAGL,YAAU,MAAM;AACd,QAAI,UAAU,QAAQ,SAAS;AAC7B,gBAAU,UAAU,WAAW,MAAM,QAAQ,QAAQ,SAAS;AAAA;AAEhE,QAAI,UAAU,SAAS,SAAS;AAC9B,iBAAW,UAAU,WAAW,MAAM,SAAS,QAAQ,SAAS;AAAA;AAGlE,WAAO,MAAM;AACX,mBAAa,UAAU;AACvB,mBAAa,WAAW;AAAA;AAAA,KAEzB,CAAC,QAAQ,SAAS;AAErB,SACE,4DACG,UAAU,aAAa,UACtB,qCAAC,MAAD,MACE,qCAAC,kBAAD;AAAA,IAAkB,UAAU;AAAA,OAAa;AAAA,OAG5C,aACC,qCAAC,MAAD;AAAA,IAAM;AAAA,KACJ,qCAAC,WAAD;AAAA,OAAe;AAAA,OAGlB,UAAU,aAAa,WACtB,qCAAC,MAAD,MACE,qCAAC,kBAAD;AAAA,IAAkB,UAAU;AAAA,OAAc;AAAA;AAAA;",
|
|
6
|
-
"names": []
|
|
7
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import React2 from "react";
|
|
3
|
-
import { DSButton } from "@elliemae/ds-button";
|
|
4
|
-
const MiniToolbarButton = (props) => /* @__PURE__ */ React2.createElement(DSButton, {
|
|
5
|
-
...props,
|
|
6
|
-
"aria-label": props.ariaLabel,
|
|
7
|
-
"data-testid": "ds-mini-toolbar__shortcut"
|
|
8
|
-
});
|
|
9
|
-
export {
|
|
10
|
-
MiniToolbarButton
|
|
11
|
-
};
|
|
12
|
-
//# sourceMappingURL=Button.js.map
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../../../../scripts/build/transpile/react-shim.js", "../../../../src/Components/outOfTheBox/Button.tsx"],
|
|
4
|
-
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "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"],
|
|
5
|
-
"mappings": "AAAA;ACAA;AACA;AAEA,MAAM,oBAAoB,CAAC,UACzB,qCAAC,UAAD;AAAA,KAAc;AAAA,EAAO,cAAY,MAAM;AAAA,EAAW,eAAY;AAAA;",
|
|
6
|
-
"names": []
|
|
7
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import React2 from "react";
|
|
3
|
-
import { DSComboBox2 } from "@elliemae/ds-form";
|
|
4
|
-
const MiniToolbarComboBox = (props) => /* @__PURE__ */ React2.createElement(DSComboBox2, {
|
|
5
|
-
...props
|
|
6
|
-
});
|
|
7
|
-
export {
|
|
8
|
-
MiniToolbarComboBox
|
|
9
|
-
};
|
|
10
|
-
//# sourceMappingURL=ComboBox.js.map
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../../../../scripts/build/transpile/react-shim.js", "../../../../src/Components/outOfTheBox/ComboBox.tsx"],
|
|
4
|
-
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "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"],
|
|
5
|
-
"mappings": "AAAA;ACAA;AACA;AAEA,MAAM,sBAAsB,CAAC,UAAuD,qCAAC,aAAD;AAAA,KAAiB;AAAA;",
|
|
6
|
-
"names": []
|
|
7
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import React2 from "react";
|
|
3
|
-
import { StyledButton } from "../../styles";
|
|
4
|
-
const MiniToolbarIcon = (props) => {
|
|
5
|
-
const { Icon, size, color, onClick, ariaLabel, style, buttonType = "secondary" } = props;
|
|
6
|
-
return /* @__PURE__ */ React2.createElement(StyledButton, {
|
|
7
|
-
"aria-label": ariaLabel,
|
|
8
|
-
buttonType,
|
|
9
|
-
onClick,
|
|
10
|
-
style,
|
|
11
|
-
leftIcon: /* @__PURE__ */ React2.createElement(Icon, {
|
|
12
|
-
size,
|
|
13
|
-
color
|
|
14
|
-
}),
|
|
15
|
-
"data-testid": "ds-mini-toolbar__shortcut"
|
|
16
|
-
});
|
|
17
|
-
};
|
|
18
|
-
export {
|
|
19
|
-
MiniToolbarIcon
|
|
20
|
-
};
|
|
21
|
-
//# sourceMappingURL=IconItem.js.map
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../../../../scripts/build/transpile/react-shim.js", "../../../../src/Components/outOfTheBox/IconItem.tsx"],
|
|
4
|
-
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import React from 'react';\nimport { StyledButton } from '../../styles';\nimport { 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"],
|
|
5
|
-
"mappings": "AAAA;ACAA;AACA;AAGA,MAAM,kBAAkB,CAAC,UAAyD;AAChF,QAAM,EAAE,MAAM,MAAM,OAAO,SAAS,WAAW,OAAO,aAAa,gBAAgB;AAEnF,SACE,qCAAC,cAAD;AAAA,IACE,cAAY;AAAA,IACZ;AAAA,IACA;AAAA,IACA;AAAA,IACA,UAAU,qCAAC,MAAD;AAAA,MAAM;AAAA,MAAY;AAAA;AAAA,IAC5B,eAAY;AAAA;AAAA;",
|
|
6
|
-
"names": []
|
|
7
|
-
}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import React2 from "react";
|
|
3
|
-
import { Search } from "@elliemae/ds-icons";
|
|
4
|
-
import { DSSearchBox } from "@elliemae/ds-form";
|
|
5
|
-
import { StyledButton } from "../../styles";
|
|
6
|
-
const MiniToolbarSearchButton = (props) => {
|
|
7
|
-
const { size, color, onClick, ariaLabel, style, buttonType = "secondary" } = props;
|
|
8
|
-
return /* @__PURE__ */ React2.createElement(StyledButton, {
|
|
9
|
-
"aria-label": ariaLabel,
|
|
10
|
-
buttonType,
|
|
11
|
-
onClick,
|
|
12
|
-
style,
|
|
13
|
-
leftIcon: /* @__PURE__ */ React2.createElement(Search, {
|
|
14
|
-
size,
|
|
15
|
-
color
|
|
16
|
-
}),
|
|
17
|
-
"data-testid": "ds-mini-toolbar__shortcut"
|
|
18
|
-
});
|
|
19
|
-
};
|
|
20
|
-
const MiniToolbarSearchBox = (props) => /* @__PURE__ */ React2.createElement(DSSearchBox, {
|
|
21
|
-
clearable: true,
|
|
22
|
-
showIcon: false,
|
|
23
|
-
...props
|
|
24
|
-
});
|
|
25
|
-
export {
|
|
26
|
-
MiniToolbarSearchBox,
|
|
27
|
-
MiniToolbarSearchButton
|
|
28
|
-
};
|
|
29
|
-
//# sourceMappingURL=SearchBox.js.map
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../../../../scripts/build/transpile/react-shim.js", "../../../../src/Components/outOfTheBox/SearchBox.tsx"],
|
|
4
|
-
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "/* 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';\nimport { 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"],
|
|
5
|
-
"mappings": "AAAA;ACCA;AACA;AACA;AACA;AAGA,MAAM,0BAA0B,CAAC,UAAyD;AACxF,QAAM,EAAE,MAAM,OAAO,SAAS,WAAW,OAAO,aAAa,gBAAgB;AAE7E,SACE,qCAAC,cAAD;AAAA,IACE,cAAY;AAAA,IACZ;AAAA,IACA;AAAA,IACA;AAAA,IACA,UAAU,qCAAC,QAAD;AAAA,MAAQ;AAAA,MAAY;AAAA;AAAA,IAC9B,eAAY;AAAA;AAAA;AAKlB,MAAM,uBAAuB,CAAC,UAC5B,qCAAC,aAAD;AAAA,EAAa,WAAS;AAAA,EAAC,UAAU;AAAA,KAAW;AAAA;",
|
|
6
|
-
"names": []
|
|
7
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import React2 from "react";
|
|
3
|
-
import { Separator } from "../../styles";
|
|
4
|
-
const MiniToolbarSeparator = () => /* @__PURE__ */ React2.createElement(Separator, {
|
|
5
|
-
"data-testid": "ds-mini-toolbar__separator"
|
|
6
|
-
});
|
|
7
|
-
export {
|
|
8
|
-
MiniToolbarSeparator
|
|
9
|
-
};
|
|
10
|
-
//# sourceMappingURL=Separator.js.map
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../../../../scripts/build/transpile/react-shim.js", "../../../../src/Components/outOfTheBox/Separator.tsx"],
|
|
4
|
-
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import React from 'react';\nimport { Separator } from '../../styles';\n\nconst MiniToolbarSeparator = (): React.ReactElement => (\n <Separator data-testid=\"ds-mini-toolbar__separator\" />\n);\n\nexport { MiniToolbarSeparator };\n"],
|
|
5
|
-
"mappings": "AAAA;ACAA;AACA;AAEA,MAAM,uBAAuB,MAC3B,qCAAC,WAAD;AAAA,EAAW,eAAY;AAAA;",
|
|
6
|
-
"names": []
|
|
7
|
-
}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import { MiniToolbarButton } from "./Button";
|
|
3
|
-
import { MiniToolbarIcon } from "./IconItem";
|
|
4
|
-
import { MiniToolbarSearchBox } from "./SearchBox";
|
|
5
|
-
import { MiniToolbarSeparator } from "./Separator";
|
|
6
|
-
import { MiniToolbarComboBox } from "./ComboBox";
|
|
7
|
-
const ICON_ITEM = "ds-icon-item";
|
|
8
|
-
const SEPARATOR = "ds-separator";
|
|
9
|
-
const BUTTON = "ds-button";
|
|
10
|
-
const SEARCH_BOX = "ds-search-box";
|
|
11
|
-
const COMBO_BOX = "ds-combo-box";
|
|
12
|
-
export {
|
|
13
|
-
BUTTON,
|
|
14
|
-
COMBO_BOX,
|
|
15
|
-
ICON_ITEM,
|
|
16
|
-
MiniToolbarButton,
|
|
17
|
-
MiniToolbarComboBox,
|
|
18
|
-
MiniToolbarIcon,
|
|
19
|
-
MiniToolbarSearchBox,
|
|
20
|
-
MiniToolbarSeparator,
|
|
21
|
-
SEARCH_BOX,
|
|
22
|
-
SEPARATOR
|
|
23
|
-
};
|
|
24
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../../../../scripts/build/transpile/react-shim.js", "../../../../src/Components/outOfTheBox/index.tsx"],
|
|
4
|
-
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "export { MiniToolbarButton } from './Button';\nexport { MiniToolbarIcon } from './IconItem';\nexport { MiniToolbarSearchBox } from './SearchBox';\nexport { MiniToolbarSeparator } from './Separator';\nexport { MiniToolbarComboBox } from './ComboBox';\n\nexport const ICON_ITEM = 'ds-icon-item';\nexport const SEPARATOR = 'ds-separator';\nexport const BUTTON = 'ds-button';\nexport const SEARCH_BOX = 'ds-search-box';\nexport const COMBO_BOX = 'ds-combo-box';\n"],
|
|
5
|
-
"mappings": "AAAA;ACAA;AACA;AACA;AACA;AACA;AAEO,MAAM,YAAY;AAClB,MAAM,YAAY;AAClB,MAAM,SAAS;AACf,MAAM,aAAa;AACnB,MAAM,YAAY;",
|
|
6
|
-
"names": []
|
|
7
|
-
}
|
|
@@ -1,102 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import React2, { useMemo } from "react";
|
|
3
|
-
import { uid } from "uid";
|
|
4
|
-
import { Search } from "@elliemae/ds-icons";
|
|
5
|
-
import {
|
|
6
|
-
ICON_ITEM,
|
|
7
|
-
SEPARATOR,
|
|
8
|
-
BUTTON,
|
|
9
|
-
SEARCH_BOX,
|
|
10
|
-
COMBO_BOX,
|
|
11
|
-
MiniToolbarButton,
|
|
12
|
-
MiniToolbarSeparator,
|
|
13
|
-
MiniToolbarSearchBox,
|
|
14
|
-
MiniToolbarIcon,
|
|
15
|
-
MiniToolbarComboBox
|
|
16
|
-
} from "../Components/outOfTheBox";
|
|
17
|
-
import { ToolbarShortcut } from "../Components/ToolbarShortcut";
|
|
18
|
-
import { MiniToolbarSearchButton } from "../Components/outOfTheBox/SearchBox";
|
|
19
|
-
const useGenerateItems = (items) => {
|
|
20
|
-
const instanceUID = useMemo(() => uid(6), []);
|
|
21
|
-
const shortcutItems = useMemo(() => items.filter((item) => item.hasShortcut || item.component === SEARCH_BOX || item.contextualRegion).map((item, index) => {
|
|
22
|
-
const { component, shortcutComponent, shortcutProps, sharedProps, contextualRegion, contextualRegionProps } = item;
|
|
23
|
-
let Component;
|
|
24
|
-
let ContextualRegion;
|
|
25
|
-
if (component === SEPARATOR)
|
|
26
|
-
return /* @__PURE__ */ React2.createElement(MiniToolbarSeparator, null);
|
|
27
|
-
if (component === BUTTON)
|
|
28
|
-
Component = MiniToolbarButton;
|
|
29
|
-
else if (component === ICON_ITEM)
|
|
30
|
-
Component = MiniToolbarIcon;
|
|
31
|
-
else if (component === COMBO_BOX)
|
|
32
|
-
Component = MiniToolbarComboBox;
|
|
33
|
-
else if (component === SEARCH_BOX) {
|
|
34
|
-
if (item.hasShortcut) {
|
|
35
|
-
Component = MiniToolbarSearchButton;
|
|
36
|
-
}
|
|
37
|
-
ContextualRegion = MiniToolbarSearchBox;
|
|
38
|
-
}
|
|
39
|
-
if (!ContextualRegion) {
|
|
40
|
-
ContextualRegion = contextualRegion;
|
|
41
|
-
}
|
|
42
|
-
if (!Component) {
|
|
43
|
-
Component = shortcutComponent;
|
|
44
|
-
}
|
|
45
|
-
return /* @__PURE__ */ React2.createElement(ToolbarShortcut, {
|
|
46
|
-
key: `${instanceUID}-shortcut-${index}`,
|
|
47
|
-
Component,
|
|
48
|
-
shortcutProps,
|
|
49
|
-
sharedProps,
|
|
50
|
-
ContextualRegion,
|
|
51
|
-
contextualRegionProps
|
|
52
|
-
});
|
|
53
|
-
}), [instanceUID, items]);
|
|
54
|
-
const dropdownMenuItems = useMemo(() => items.map((item, index) => {
|
|
55
|
-
const { component, sharedProps, dropdownComponentProps } = item;
|
|
56
|
-
const dropdownItem = {};
|
|
57
|
-
const { Icon, color, label, onClick } = {
|
|
58
|
-
...sharedProps,
|
|
59
|
-
...dropdownComponentProps
|
|
60
|
-
};
|
|
61
|
-
if (component === SEPARATOR)
|
|
62
|
-
dropdownItem.type = "separator";
|
|
63
|
-
else {
|
|
64
|
-
dropdownItem.id = `${instanceUID}-dropdown-${index}`;
|
|
65
|
-
dropdownItem.onClick = () => onClick(item);
|
|
66
|
-
dropdownItem.label = label;
|
|
67
|
-
dropdownItem.onKeyDown = (e) => {
|
|
68
|
-
if (e.key === "Enter" || e.key === " ") {
|
|
69
|
-
onClick(item);
|
|
70
|
-
}
|
|
71
|
-
};
|
|
72
|
-
}
|
|
73
|
-
if (component === ICON_ITEM) {
|
|
74
|
-
dropdownItem.leftAddon = /* @__PURE__ */ React2.createElement(Icon, {
|
|
75
|
-
color
|
|
76
|
-
});
|
|
77
|
-
} else if (component === SEARCH_BOX) {
|
|
78
|
-
dropdownItem.leftAddon = /* @__PURE__ */ React2.createElement(Search, {
|
|
79
|
-
color
|
|
80
|
-
});
|
|
81
|
-
} else if (component === COMBO_BOX) {
|
|
82
|
-
dropdownItem.type = "subMenu";
|
|
83
|
-
dropdownItem.label = label;
|
|
84
|
-
dropdownItem.subItems = sharedProps.options.map((option, index2) => {
|
|
85
|
-
option.id = `${instanceUID}-option-${index2}`;
|
|
86
|
-
option.onClick = () => dropdownComponentProps.onSelectMenuItem(option);
|
|
87
|
-
option.onKeyDown = (e) => {
|
|
88
|
-
if (e.key === " " || e.key === "Enter") {
|
|
89
|
-
dropdownComponentProps.onSelectMenuItem(option);
|
|
90
|
-
}
|
|
91
|
-
};
|
|
92
|
-
return option;
|
|
93
|
-
});
|
|
94
|
-
}
|
|
95
|
-
return dropdownItem;
|
|
96
|
-
}), [instanceUID, items]);
|
|
97
|
-
return [shortcutItems, dropdownMenuItems];
|
|
98
|
-
};
|
|
99
|
-
export {
|
|
100
|
-
useGenerateItems
|
|
101
|
-
};
|
|
102
|
-
//# sourceMappingURL=useGenerateItems.js.map
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../../../scripts/build/transpile/react-shim.js", "../../../src/hooks/useGenerateItems.tsx"],
|
|
4
|
-
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import React, { useMemo } from 'react';\nimport { uid } from 'uid';\nimport { Search } from '@elliemae/ds-icons';\nimport {\n ICON_ITEM,\n SEPARATOR,\n BUTTON,\n SEARCH_BOX,\n COMBO_BOX,\n MiniToolbarButton,\n MiniToolbarSeparator,\n MiniToolbarSearchBox,\n MiniToolbarIcon,\n MiniToolbarComboBox,\n} from '../Components/outOfTheBox';\nimport { ToolbarShortcut } from '../Components/ToolbarShortcut';\nimport { MiniToolbarSearchButton } from '../Components/outOfTheBox/SearchBox';\nimport { GeneratedDropdownItemT, MiniToolbarItemT } from '../index.d';\n\nconst useGenerateItems = (items: MiniToolbarItemT[]): [React.ReactElement[], GeneratedDropdownItemT[]] => {\n const instanceUID = useMemo(() => uid(6), []);\n\n const shortcutItems = useMemo(\n () =>\n items\n .filter((item) => item.hasShortcut || item.component === SEARCH_BOX || item.contextualRegion)\n .map((item, index) => {\n const { component, shortcutComponent, shortcutProps, sharedProps, contextualRegion, contextualRegionProps } =\n item;\n\n let Component;\n let ContextualRegion;\n\n if (component === SEPARATOR) return <MiniToolbarSeparator />;\n if (component === BUTTON) Component = MiniToolbarButton;\n else if (component === ICON_ITEM) Component = MiniToolbarIcon;\n else if (component === COMBO_BOX) Component = MiniToolbarComboBox;\n else if (component === SEARCH_BOX) {\n if (item.hasShortcut) {\n Component = MiniToolbarSearchButton;\n }\n ContextualRegion = MiniToolbarSearchBox;\n }\n if (!ContextualRegion) {\n ContextualRegion = contextualRegion;\n }\n if (!Component) {\n Component = shortcutComponent;\n }\n\n return (\n <ToolbarShortcut\n key={`${instanceUID}-shortcut-${index}`}\n Component={Component}\n shortcutProps={shortcutProps}\n sharedProps={sharedProps}\n ContextualRegion={ContextualRegion}\n contextualRegionProps={contextualRegionProps}\n />\n );\n }),\n [instanceUID, items],\n );\n\n const dropdownMenuItems = useMemo(\n () =>\n items.map((item, index) => {\n const { component, sharedProps, dropdownComponentProps } = item;\n const dropdownItem: GeneratedDropdownItemT = {};\n\n const { Icon, color, label, onClick } = {\n ...sharedProps,\n ...dropdownComponentProps,\n };\n\n if (component === SEPARATOR) dropdownItem.type = 'separator';\n else {\n dropdownItem.id = `${instanceUID}-dropdown-${index}`;\n dropdownItem.onClick = () => onClick(item);\n dropdownItem.label = label;\n dropdownItem.onKeyDown = (e: React.KeyboardEvent) => {\n if (e.key === 'Enter' || e.key === ' ') {\n onClick(item);\n }\n };\n }\n\n if (component === ICON_ITEM) {\n dropdownItem.leftAddon = <Icon color={color} />;\n } else if (component === SEARCH_BOX) {\n dropdownItem.leftAddon = <Search color={color} />;\n } else if (component === COMBO_BOX) {\n dropdownItem.type = 'subMenu';\n dropdownItem.label = label;\n dropdownItem.subItems = sharedProps.options.map((option, index) => {\n option.id = `${instanceUID}-option-${index}`;\n option.onClick = () => dropdownComponentProps.onSelectMenuItem(option);\n option.onKeyDown = (e: React.KeyboardEvent) => {\n if (e.key === ' ' || e.key === 'Enter') {\n dropdownComponentProps.onSelectMenuItem(option);\n }\n };\n return option;\n });\n }\n\n return dropdownItem;\n }),\n [instanceUID, items],\n );\n\n return [shortcutItems, dropdownMenuItems];\n};\n\nexport { useGenerateItems };\n"],
|
|
5
|
-
"mappings": "AAAA;ACAA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAYA;AACA;AAGA,MAAM,mBAAmB,CAAC,UAAgF;AACxG,QAAM,cAAc,QAAQ,MAAM,IAAI,IAAI;AAE1C,QAAM,gBAAgB,QACpB,MACE,MACG,OAAO,CAAC,SAAS,KAAK,eAAe,KAAK,cAAc,cAAc,KAAK,kBAC3E,IAAI,CAAC,MAAM,UAAU;AACpB,UAAM,EAAE,WAAW,mBAAmB,eAAe,aAAa,kBAAkB,0BAClF;AAEF,QAAI;AACJ,QAAI;AAEJ,QAAI,cAAc;AAAW,aAAO,qCAAC,sBAAD;AACpC,QAAI,cAAc;AAAQ,kBAAY;AAAA,aAC7B,cAAc;AAAW,kBAAY;AAAA,aACrC,cAAc;AAAW,kBAAY;AAAA,aACrC,cAAc,YAAY;AACjC,UAAI,KAAK,aAAa;AACpB,oBAAY;AAAA;AAEd,yBAAmB;AAAA;AAErB,QAAI,CAAC,kBAAkB;AACrB,yBAAmB;AAAA;AAErB,QAAI,CAAC,WAAW;AACd,kBAAY;AAAA;AAGd,WACE,qCAAC,iBAAD;AAAA,MACE,KAAK,GAAG,wBAAwB;AAAA,MAChC;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA;AAAA,MAIV,CAAC,aAAa;AAGhB,QAAM,oBAAoB,QACxB,MACE,MAAM,IAAI,CAAC,MAAM,UAAU;AACzB,UAAM,EAAE,WAAW,aAAa,2BAA2B;AAC3D,UAAM,eAAuC;AAE7C,UAAM,EAAE,MAAM,OAAO,OAAO,YAAY;AAAA,SACnC;AAAA,SACA;AAAA;AAGL,QAAI,cAAc;AAAW,mBAAa,OAAO;AAAA,SAC5C;AACH,mBAAa,KAAK,GAAG,wBAAwB;AAC7C,mBAAa,UAAU,MAAM,QAAQ;AACrC,mBAAa,QAAQ;AACrB,mBAAa,YAAY,CAAC,MAA2B;AACnD,YAAI,EAAE,QAAQ,WAAW,EAAE,QAAQ,KAAK;AACtC,kBAAQ;AAAA;AAAA;AAAA;AAKd,QAAI,cAAc,WAAW;AAC3B,mBAAa,YAAY,qCAAC,MAAD;AAAA,QAAM;AAAA;AAAA,eACtB,cAAc,YAAY;AACnC,mBAAa,YAAY,qCAAC,QAAD;AAAA,QAAQ;AAAA;AAAA,eACxB,cAAc,WAAW;AAClC,mBAAa,OAAO;AACpB,mBAAa,QAAQ;AACrB,mBAAa,WAAW,YAAY,QAAQ,IAAI,CAAC,QAAQ,WAAU;AACjE,eAAO,KAAK,GAAG,sBAAsB;AACrC,eAAO,UAAU,MAAM,uBAAuB,iBAAiB;AAC/D,eAAO,YAAY,CAAC,MAA2B;AAC7C,cAAI,EAAE,QAAQ,OAAO,EAAE,QAAQ,SAAS;AACtC,mCAAuB,iBAAiB;AAAA;AAAA;AAG5C,eAAO;AAAA;AAAA;AAIX,WAAO;AAAA,MAEX,CAAC,aAAa;AAGhB,SAAO,CAAC,eAAe;AAAA;",
|
|
6
|
-
"names": []
|
|
7
|
-
}
|
package/dist/esm/index.d.js
DELETED
package/dist/esm/index.d.js.map
DELETED
package/dist/esm/index.js
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import { MiniToolbar, MiniToolbarWithSchema } from "./Components/MiniToolbar";
|
|
3
|
-
import { ToolbarItemWithSchema } from "./propTypes";
|
|
4
|
-
export {
|
|
5
|
-
MiniToolbar,
|
|
6
|
-
MiniToolbarWithSchema,
|
|
7
|
-
ToolbarItemWithSchema
|
|
8
|
-
};
|
|
9
|
-
//# sourceMappingURL=index.js.map
|
package/dist/esm/index.js.map
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../../scripts/build/transpile/react-shim.js", "../../src/index.tsx"],
|
|
4
|
-
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "export { MiniToolbar, MiniToolbarWithSchema } from './Components/MiniToolbar';\nexport { ToolbarItemWithSchema } from './propTypes';\n"],
|
|
5
|
-
"mappings": "AAAA;ACAA;AACA;",
|
|
6
|
-
"names": []
|
|
7
|
-
}
|
package/dist/esm/propTypes.js
DELETED
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import { PropTypes, describe } from "react-desc";
|
|
3
|
-
const outOfTheBoxType = PropTypes.oneOf([
|
|
4
|
-
"ds-button",
|
|
5
|
-
"ds-icon-item",
|
|
6
|
-
"ds-separator",
|
|
7
|
-
"ds-search-box",
|
|
8
|
-
"ds-combo-box"
|
|
9
|
-
]).description("out-of-the-box toolbar components");
|
|
10
|
-
const toolbarItemProps = {
|
|
11
|
-
component: PropTypes.oneOfType([
|
|
12
|
-
outOfTheBoxType,
|
|
13
|
-
PropTypes.element
|
|
14
|
-
]).description("Main component").isRequired,
|
|
15
|
-
hasShortcut: PropTypes.bool.description("Whether to include the component as a shortcut in the toolbar or not").defaultValue(false),
|
|
16
|
-
shortcutComponent: PropTypes.element.description("Component to render as a shortcut in the toolbar"),
|
|
17
|
-
shortcutProps: PropTypes.object.description("Shortcut component props"),
|
|
18
|
-
dropdownComponentProps: PropTypes.object.description("Dropdown component props"),
|
|
19
|
-
sharedProps: PropTypes.object.description("Props shared by shortcut component and dropdown component"),
|
|
20
|
-
contextualRegion: PropTypes.element.description("Component that can be rendered as an adjacent region to the shortcut component"),
|
|
21
|
-
contextualRegionProps: PropTypes.object.description("Contextual region component props")
|
|
22
|
-
};
|
|
23
|
-
const itemPropTypes = PropTypes.shape(toolbarItemProps).description("Items props");
|
|
24
|
-
const overflowButtonPropTypes = {
|
|
25
|
-
ariaLabel: PropTypes.string,
|
|
26
|
-
buttonType: PropTypes.oneOf(["secondary", "text"]),
|
|
27
|
-
style: PropTypes.object
|
|
28
|
-
};
|
|
29
|
-
const miniToolbarProps = {
|
|
30
|
-
items: PropTypes.arrayOf(itemPropTypes).description("Array of items").isRequired,
|
|
31
|
-
overflowButtonProps: PropTypes.shape(overflowButtonPropTypes).description("Overflow button props")
|
|
32
|
-
};
|
|
33
|
-
const ToolbarItem = () => null;
|
|
34
|
-
const ToolbarItemWithSchema = describe(ToolbarItem);
|
|
35
|
-
ToolbarItemWithSchema.propTypes = toolbarItemProps;
|
|
36
|
-
export {
|
|
37
|
-
ToolbarItemWithSchema,
|
|
38
|
-
miniToolbarProps
|
|
39
|
-
};
|
|
40
|
-
//# sourceMappingURL=propTypes.js.map
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../../scripts/build/transpile/react-shim.js", "../../src/propTypes.tsx"],
|
|
4
|
-
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import { PropTypes, describe } from 'react-desc';\n\nconst outOfTheBoxType = PropTypes.oneOf([\n 'ds-button',\n 'ds-icon-item',\n 'ds-separator',\n 'ds-search-box',\n 'ds-combo-box',\n]).description('out-of-the-box toolbar components');\n\nconst toolbarItemProps = {\n component: PropTypes.oneOfType([\n outOfTheBoxType,\n PropTypes.element,\n ]).description('Main component').isRequired,\n hasShortcut: PropTypes.bool\n .description(\n 'Whether to include the component as a shortcut in the toolbar or not',\n )\n .defaultValue(false),\n shortcutComponent: PropTypes.element.description(\n 'Component to render as a shortcut in the toolbar',\n ),\n shortcutProps: PropTypes.object.description('Shortcut component props'),\n dropdownComponentProps: PropTypes.object.description(\n 'Dropdown component props',\n ),\n sharedProps: PropTypes.object.description(\n 'Props shared by shortcut component and dropdown component',\n ),\n contextualRegion: PropTypes.element.description(\n 'Component that can be rendered as an adjacent region to the shortcut component',\n ),\n contextualRegionProps: PropTypes.object.description(\n 'Contextual region component props',\n ),\n};\n\nconst itemPropTypes = PropTypes.shape(toolbarItemProps).description(\n 'Items props',\n);\n\nconst overflowButtonPropTypes = {\n ariaLabel: PropTypes.string,\n buttonType: PropTypes.oneOf(['secondary', 'text']),\n style: PropTypes.object,\n};\n\nconst miniToolbarProps = {\n items: PropTypes.arrayOf(itemPropTypes).description('Array of items')\n .isRequired,\n overflowButtonProps: PropTypes.shape(overflowButtonPropTypes).description(\n 'Overflow button props',\n ),\n};\n\nconst ToolbarItem = () => null;\n\nconst ToolbarItemWithSchema = describe(ToolbarItem);\nToolbarItemWithSchema.propTypes = toolbarItemProps;\nexport { ToolbarItemWithSchema, miniToolbarProps };\n"],
|
|
5
|
-
"mappings": "AAAA;ACAA;AAEA,MAAM,kBAAkB,UAAU,MAAM;AAAA,EACtC;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,GACC,YAAY;AAEf,MAAM,mBAAmB;AAAA,EACvB,WAAW,UAAU,UAAU;AAAA,IAC7B;AAAA,IACA,UAAU;AAAA,KACT,YAAY,kBAAkB;AAAA,EACjC,aAAa,UAAU,KACpB,YACC,wEAED,aAAa;AAAA,EAChB,mBAAmB,UAAU,QAAQ,YACnC;AAAA,EAEF,eAAe,UAAU,OAAO,YAAY;AAAA,EAC5C,wBAAwB,UAAU,OAAO,YACvC;AAAA,EAEF,aAAa,UAAU,OAAO,YAC5B;AAAA,EAEF,kBAAkB,UAAU,QAAQ,YAClC;AAAA,EAEF,uBAAuB,UAAU,OAAO,YACtC;AAAA;AAIJ,MAAM,gBAAgB,UAAU,MAAM,kBAAkB,YACtD;AAGF,MAAM,0BAA0B;AAAA,EAC9B,WAAW,UAAU;AAAA,EACrB,YAAY,UAAU,MAAM,CAAC,aAAa;AAAA,EAC1C,OAAO,UAAU;AAAA;AAGnB,MAAM,mBAAmB;AAAA,EACvB,OAAO,UAAU,QAAQ,eAAe,YAAY,kBACjD;AAAA,EACH,qBAAqB,UAAU,MAAM,yBAAyB,YAC5D;AAAA;AAIJ,MAAM,cAAc,MAAM;AAE1B,MAAM,wBAAwB,SAAS;AACvC,sBAAsB,YAAY;",
|
|
6
|
-
"names": []
|
|
7
|
-
}
|
package/dist/esm/styles.js
DELETED
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import styled from "styled-components";
|
|
3
|
-
import { DSButton } from "@elliemae/ds-button";
|
|
4
|
-
const Container = styled.ul`
|
|
5
|
-
display: flex;
|
|
6
|
-
align-items: center;
|
|
7
|
-
justify-content: center;
|
|
8
|
-
width: fit-content;
|
|
9
|
-
padding: 0 6px;
|
|
10
|
-
`;
|
|
11
|
-
const Separator = styled.span`
|
|
12
|
-
height: 24px;
|
|
13
|
-
width: 1px;
|
|
14
|
-
margin: 6px;
|
|
15
|
-
border-left: 1px solid #bbb;
|
|
16
|
-
`;
|
|
17
|
-
const Item = styled.li`
|
|
18
|
-
display: flex;
|
|
19
|
-
margin: 6px;
|
|
20
|
-
cursor: pointer;
|
|
21
|
-
`;
|
|
22
|
-
const StyledButton = styled(DSButton)`
|
|
23
|
-
&:not(:focus) {
|
|
24
|
-
border-color: transparent;
|
|
25
|
-
}
|
|
26
|
-
`;
|
|
27
|
-
export {
|
|
28
|
-
Container,
|
|
29
|
-
Item,
|
|
30
|
-
Separator,
|
|
31
|
-
StyledButton
|
|
32
|
-
};
|
|
33
|
-
//# sourceMappingURL=styles.js.map
|
package/dist/esm/styles.js.map
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../../scripts/build/transpile/react-shim.js", "../../src/styles.tsx"],
|
|
4
|
-
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import styled from 'styled-components';\nimport { DSButton } from '@elliemae/ds-button';\n\nconst Container = styled.ul`\n display: flex;\n align-items: center;\n justify-content: center;\n width: fit-content;\n padding: 0 6px;\n`;\n\nconst Separator = styled.span`\n height: 24px;\n width: 1px;\n margin: 6px;\n border-left: 1px solid #bbb;\n`;\n\nconst Item = styled.li`\n display: flex;\n margin: 6px;\n cursor: pointer;\n`;\n\nconst StyledButton = styled(DSButton)`\n &:not(:focus) {\n border-color: transparent;\n }\n`;\n\nexport { Container, Separator, Item, StyledButton };\n"],
|
|
5
|
-
"mappings": "AAAA;ACAA;AACA;AAEA,MAAM,YAAY,OAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAQzB,MAAM,YAAY,OAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAOzB,MAAM,OAAO,OAAO;AAAA;AAAA;AAAA;AAAA;AAMpB,MAAM,eAAe,OAAO;AAAA;AAAA;AAAA;AAAA;",
|
|
6
|
-
"names": []
|
|
7
|
-
}
|