@epam/ai-dial-chat-shared 1.4.0-dev.95 → 1.4.0-rc.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/components/MarkdownRenderer/Table/MarkdownTable.js +1 -1
- package/components/SortMenuButton/SortMenuButton.d.ts +5 -0
- package/components/SortMenuButton/SortMenuButton.d.ts.map +1 -0
- package/components/SortMenuButton/SortMenuButton.js +42 -0
- package/components/SortMenuButton/SortMenuButton.module.scss.js +4 -0
- package/file-manager/DialFileManagerShell/DialFileManagerShell.d.ts.map +1 -1
- package/file-manager/DialFileManagerShell/DialFileManagerShell.js +265 -258
- package/file-manager/FileManagerDestinationPanel/FileManagerDestinationPanel.d.ts +26 -0
- package/file-manager/FileManagerDestinationPanel/FileManagerDestinationPanel.d.ts.map +1 -0
- package/file-manager/FileManagerDestinationPanel/FileManagerDestinationPanel.js +131 -0
- package/file-manager/destination-folders.d.ts +19 -0
- package/file-manager/destination-folders.d.ts.map +1 -0
- package/file-manager/destination-folders.js +27 -0
- package/file-manager/file-manager-controller.d.ts +2 -2
- package/file-manager/file-manager-controller.d.ts.map +1 -1
- package/file-manager/labels.d.ts +91 -19
- package/file-manager/labels.d.ts.map +1 -1
- package/hooks/useHasBeenTrue.d.ts +16 -0
- package/hooks/useHasBeenTrue.d.ts.map +1 -0
- package/hooks/useHasBeenTrue.js +8 -0
- package/hooks/useIsMobile.d.ts.map +1 -1
- package/hooks/useIsMobile.js +3 -10
- package/hooks/useIsPhone.d.ts.map +1 -1
- package/hooks/useIsPhone.js +3 -10
- package/hooks/useIsTablet.d.ts.map +1 -1
- package/hooks/useIsTablet.js +3 -10
- package/hooks/useMediaQueryMatch.d.ts +3 -0
- package/hooks/useMediaQueryMatch.d.ts.map +1 -0
- package/hooks/useMediaQueryMatch.js +12 -0
- package/index.css +2 -2
- package/index.d.ts +4 -0
- package/index.d.ts.map +1 -1
- package/index.js +82 -79
- package/models/sort-menu-button.d.ts +40 -0
- package/models/sort-menu-button.d.ts.map +1 -0
- package/package.json +3 -3
- package/utils/copy-to-clipboard.d.ts +0 -15
- package/utils/copy-to-clipboard.d.ts.map +1 -1
- package/utils/copy-to-clipboard.js +2 -59
- package/utils/markdown-rich-text.d.ts +16 -0
- package/utils/markdown-rich-text.d.ts.map +1 -0
- package/utils/markdown-rich-text.js +62 -0
- package/utils/org-unit.d.ts +22 -1
- package/utils/org-unit.d.ts.map +1 -1
- package/utils/org-unit.js +19 -16
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { mergeClasses as e } from "../../../utils/merge-class.js";
|
|
2
2
|
import { buildCssVars as t } from "../../../utils/build-css-vars.js";
|
|
3
|
-
import { copyMarkdownAsRichText as n } from "../../../utils/
|
|
3
|
+
import { copyMarkdownAsRichText as n } from "../../../utils/markdown-rich-text.js";
|
|
4
4
|
import { downloadTextFile as r } from "../../../utils/file-download.js";
|
|
5
5
|
import { CHAT_SHARED_CLASS as i } from "../../../constants/public-class-names.js";
|
|
6
6
|
import { useHorizontalOverflow as a } from "../../../hooks/useHorizontalOverflow.js";
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { SortMenuButtonProps } from '../../models/sort-menu-button';
|
|
3
|
+
/** Icon-only sort trigger whose menu marks the applied order with a trailing check. */
|
|
4
|
+
export declare const SortMenuButton: FC<SortMenuButtonProps>;
|
|
5
|
+
//# sourceMappingURL=SortMenuButton.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SortMenuButton.d.ts","sourceRoot":"","sources":["../../../src/components/SortMenuButton/SortMenuButton.tsx"],"names":[],"mappings":"AAUA,OAAO,EAAE,EAAE,EAAW,MAAM,OAAO,CAAC;AACpC,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,+BAA+B,CAAC;AAQzE,uFAAuF;AACvF,eAAO,MAAM,cAAc,EAAE,EAAE,CAAC,mBAAmB,CAyDlD,CAAC"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { mergeClasses as e } from "../../utils/merge-class.js";
|
|
2
|
+
import { buildCssVars as t } from "../../utils/build-css-vars.js";
|
|
3
|
+
import n from "./SortMenuButton.module.scss.js";
|
|
4
|
+
import { DIAL_ICON_SIZE as r, DIAL_KIT_ICON_STROKE as i, Dropdown as a, ElementSize as o, GhostIconButton as s, MenuItemMark as c } from "@epam/ai-dial-ui-kit";
|
|
5
|
+
import { useMemo as l } from "react";
|
|
6
|
+
import { jsx as u } from "react/jsx-runtime";
|
|
7
|
+
import { IconArrowsSort as d } from "@tabler/icons-react";
|
|
8
|
+
//#region src/components/SortMenuButton/SortMenuButton.tsx
|
|
9
|
+
var f = "min-w-[200px]", p = ({ options: p, value: m, onChange: h, label: g = "Sort", icon: _, size: v = o.Standard, iconSize: y = r.MD, colors: b, className: x, open: S, onOpenChange: C }) => {
|
|
10
|
+
let w = l(() => p.map((e) => ({
|
|
11
|
+
key: e.value,
|
|
12
|
+
label: e.label,
|
|
13
|
+
mark: c.Check,
|
|
14
|
+
checked: e.value === m,
|
|
15
|
+
onClick: () => h(e.value)
|
|
16
|
+
})), [
|
|
17
|
+
p,
|
|
18
|
+
m,
|
|
19
|
+
h
|
|
20
|
+
]);
|
|
21
|
+
return p.length === 0 ? null : /* @__PURE__ */ u(a, {
|
|
22
|
+
items: w,
|
|
23
|
+
open: S,
|
|
24
|
+
onOpenChange: C,
|
|
25
|
+
matchReferenceWidth: !1,
|
|
26
|
+
listClassName: f,
|
|
27
|
+
children: /* @__PURE__ */ u(s, {
|
|
28
|
+
size: v,
|
|
29
|
+
"aria-label": g,
|
|
30
|
+
tooltipProps: { tooltip: g },
|
|
31
|
+
style: t({ "--smb-icon": b?.icon }),
|
|
32
|
+
className: e("shrink-0", n.trigger, x),
|
|
33
|
+
icon: _ ?? /* @__PURE__ */ u(d, {
|
|
34
|
+
size: y,
|
|
35
|
+
stroke: i,
|
|
36
|
+
"aria-hidden": !0
|
|
37
|
+
})
|
|
38
|
+
})
|
|
39
|
+
});
|
|
40
|
+
};
|
|
41
|
+
//#endregion
|
|
42
|
+
export { p as SortMenuButton };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DialFileManagerShell.d.ts","sourceRoot":"","sources":["../../../src/file-manager/DialFileManagerShell/DialFileManagerShell.tsx"],"names":[],"mappings":"AAAA,OAAO,EAGL,mBAAmB,
|
|
1
|
+
{"version":3,"file":"DialFileManagerShell.d.ts","sourceRoot":"","sources":["../../../src/file-manager/DialFileManagerShell/DialFileManagerShell.tsx"],"names":[],"mappings":"AAAA,OAAO,EAGL,mBAAmB,EAInB,KAAK,kBAAkB,EAEvB,KAAK,kBAAkB,EACvB,KAAK,eAAe,EACrB,MAAM,kCAAkC,CAAC;AAa1C,OAAO,EAML,KAAK,EAAE,EACR,MAAM,OAAO,CAAC;AACf,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,+BAA+B,CAAC;AAG/E,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AACxE,OAAO,EACL,4BAA4B,EAC5B,sBAAsB,EACvB,MAAM,yBAAyB,CAAC;AAEjC,OAAO,KAAK,EAAE,0BAA0B,EAAkB,MAAM,WAAW,CAAC;AAE5E,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,iBAAiB,CAAC;AAwClE,yDAAyD;AACzD,MAAM,WAAW,yBAAyB;IACxC,8EAA8E;IAC9E,UAAU,EAAE,qBAAqB,CAAC;IAClC,qDAAqD;IACrD,MAAM,EAAE,0BAA0B,CAAC;IACnC,4BAA4B;IAC5B,SAAS,EAAE,mBAAmB,CAAC;IAC/B,kFAAkF;IAClF,IAAI,EAAE,eAAe,CAAC,MAAM,CAAC,CAAC;IAC9B,0CAA0C;IAC1C,WAAW,EAAE,CAAC,GAAG,EAAE,mBAAmB,KAAK,IAAI,CAAC;IAChD,2DAA2D;IAC3D,aAAa,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;I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