@epam/ai-dial-ui-kit 0.10.0-dev.27 → 0.10.0-dev.28

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.
@@ -1,7 +1,7 @@
1
1
  import * as Ee from "react";
2
2
  import Z, { useState as M, useRef as B, useEffect as we, useMemo as z, createContext as Vr, useContext as rt, isValidElement as yh, cloneElement as wu, useCallback as D, memo as kt, useLayoutEffect as hi, PureComponent as b0, Component as x0, forwardRef as Sh, useImperativeHandle as zr, createElement as lr, Suspense as y0, useId as Wr, Children as S0 } from "react";
3
3
  import ce from "classnames";
4
- import { IconInfoCircle as Rh, IconCircleCheck as R0, IconAlertTriangle as Fh, IconAlertCircle as F0, IconX as Eo, IconMinus as E0, IconCheck as Eh, IconExclamationCircle as Dh, IconClipboardX as fv, IconChevronsLeft as D0, IconChevronsRight as P0, IconGripVertical as T0, IconFile as mv, IconFileTypeZip as I0, IconFileTypeXml as M0, IconFileTypeXls as k0, IconFileTypeVue as A0, IconFileTypeTxt as L0, IconFileTypeTsx as O0, IconFileTypeTs as N0, IconFileTypeSvg as H0, IconFileTypeSql as G0, IconFileTypeRs as B0, IconFileTypePpt as V0, IconFileTypePng as z0, IconFileTypePhp as W0, IconFileTypePdf as j0, IconFileTypeJsx as _0, IconFileTypeJs as U0, IconFileTypeJpg as $0, IconFileTypeHtml as q0, IconFileTypeDocx as K0, IconFileTypeDoc as Y0, IconFileTypeCsv as Z0, IconFileTypeCss as Q0, IconFileTypeBmp as X0, IconArrowUpRight as J0, IconFolder as Ph, IconChevronLeft as ex, IconChevronRight as jr, IconZoomCancel as tx, IconChevronDown as _r, IconDotsVertical as Do, IconDots as ix, IconTrashX as mo, IconEyeOff as vv, IconEye as tc, IconSearch as sx, IconPlus as ic, IconChevronUp as nx, IconCircleFilled as Xa, IconFileZip as ox, IconCopyMinus as rx, IconFolderPlus as Ig, IconArrowLeft as ax, IconAlertCircleFilled as lx, IconAlertTriangleFilled as cx, IconCaretRightFilled as dx, IconCopy as Th, IconDownload as Ih, IconUserX as Mh, IconExternalLink as bu, IconPencilMinus as Cv, IconFileDescription as ux } from "@tabler/icons-react";
4
+ import { IconInfoCircle as Rh, IconCircleCheck as R0, IconAlertTriangle as Fh, IconAlertCircle as F0, IconX as Eo, IconMinus as E0, IconCheck as Eh, IconExclamationCircle as Dh, IconClipboardX as fv, IconChevronsLeft as D0, IconChevronsRight as P0, IconGripVertical as T0, IconFile as mv, IconFileTypeZip as I0, IconFileTypeXml as M0, IconFileTypeXls as k0, IconFileTypeVue as A0, IconFileTypeTxt as L0, IconFileTypeTsx as O0, IconFileTypeTs as N0, IconFileTypeSvg as H0, IconFileTypeSql as G0, IconFileTypeRs as B0, IconFileTypePpt as V0, IconFileTypePng as z0, IconFileTypePhp as W0, IconFileTypePdf as j0, IconFileTypeJsx as _0, IconFileTypeJs as U0, IconFileTypeJpg as $0, IconFileTypeHtml as q0, IconFileTypeDocx as K0, IconFileTypeDoc as Y0, IconFileTypeCsv as Z0, IconFileTypeCss as Q0, IconFileTypeBmp as X0, IconArrowUpRight as J0, IconFolder as Ph, IconChevronLeft as ex, IconChevronRight as jr, IconZoomCancel as tx, IconChevronDown as _r, IconDotsVertical as Do, IconDots as ix, IconTrashX as mo, IconEyeOff as vv, IconEye as tc, IconSearch as sx, IconPlus as ic, IconChevronUp as nx, IconCircleFilled as Xa, IconFileZip as ox, IconCopyMinus as rx, IconFolderPlus as Ig, IconArrowLeft as ax, IconAlertCircleFilled as lx, IconAlertTriangleFilled as cx, IconCaretRightFilled as dx, IconUserX as Th, IconCopy as Ih, IconDownload as Mh, IconExternalLink as bu, IconPencilMinus as Cv, IconFileDescription as ux } from "@tabler/icons-react";
5
5
  import { useFloating as sc, autoUpdate as kh, offset as Ah, flip as Lh, shift as Oh, arrow as hx, useHover as Nh, useFocus as px, useDismiss as nc, useRole as oc, useInteractions as rc, useMergeRefs as Hh, FloatingPortal as ac, FloatingArrow as gx, FloatingFocusManager as Gh, autoPlacement as fx, size as mx, useClick as vx, FloatingOverlay as Cx } from "@floating-ui/react";
6
6
  import wx, { flushSync as bx, createPortal as lc } from "react-dom";
7
7
  function xx(e) {
@@ -58068,6 +58068,21 @@ const Jl = ({
58068
58068
  if (!m.length || !t)
58069
58069
  return f;
58070
58070
  const v = Nc(p), C = v ? m.some((w) => v.test(w.name)) : !1;
58071
+ if (t[X.RemoveAccess] && a) {
58072
+ const w = m.some(
58073
+ (b) => !u?.has(b.path)
58074
+ );
58075
+ f.push({
58076
+ key: X.RemoveAccess,
58077
+ label: t[X.RemoveAccess],
58078
+ title: t[X.RemoveAccess],
58079
+ disabled: w,
58080
+ icon: /* @__PURE__ */ g.jsx(Th, { size: ie.size, className: "text-secondary" }),
58081
+ onClick: () => {
58082
+ a(m), h();
58083
+ }
58084
+ });
58085
+ }
58071
58086
  if (t[X.Move] && !C && f.push({
58072
58087
  key: X.Move,
58073
58088
  label: t[X.Move],
@@ -58098,7 +58113,7 @@ const Jl = ({
58098
58113
  key: X.Duplicate,
58099
58114
  label: t[X.Duplicate],
58100
58115
  title: t[X.Duplicate],
58101
- icon: /* @__PURE__ */ g.jsx(Th, { ...ie, className: "text-secondary" }),
58116
+ icon: /* @__PURE__ */ g.jsx(Ih, { ...ie, className: "text-secondary" }),
58102
58117
  onClick: () => i(m)
58103
58118
  }), t[X.Delete]) {
58104
58119
  const w = m.some(
@@ -58121,7 +58136,7 @@ const Jl = ({
58121
58136
  key: X.Download,
58122
58137
  label: t[X.Download],
58123
58138
  title: t[X.Download],
58124
- icon: /* @__PURE__ */ g.jsx(Ih, { ...ie, className: "text-secondary" }),
58139
+ icon: /* @__PURE__ */ g.jsx(Mh, { ...ie, className: "text-secondary" }),
58125
58140
  onClick: () => o(m)
58126
58141
  }), t[X.Unshare] && r) {
58127
58142
  const w = m.some(
@@ -58146,21 +58161,6 @@ const Jl = ({
58146
58161
  }
58147
58162
  });
58148
58163
  }
58149
- if (t[X.RemoveAccess] && a) {
58150
- const w = m.some(
58151
- (b) => !u?.has(b.path)
58152
- );
58153
- f.push({
58154
- key: X.RemoveAccess,
58155
- label: t[X.RemoveAccess],
58156
- title: t[X.RemoveAccess],
58157
- disabled: w,
58158
- icon: /* @__PURE__ */ g.jsx(Mh, { size: ie.size, className: "text-secondary" }),
58159
- onClick: () => {
58160
- a(m), h();
58161
- }
58162
- });
58163
- }
58164
58164
  return f;
58165
58165
  }, [
58166
58166
  e,
@@ -58579,7 +58579,7 @@ const NB = () => {
58579
58579
  e[X.Duplicate] && S && !R && F.push({
58580
58580
  key: X.Duplicate,
58581
58581
  label: e[X.Duplicate],
58582
- icon: /* @__PURE__ */ g.jsx(Th, { ...ie, className: "text-secondary" }),
58582
+ icon: /* @__PURE__ */ g.jsx(Ih, { ...ie, className: "text-secondary" }),
58583
58583
  onClick: () => t(y)
58584
58584
  }), e[X.Copy] && !R && F.push({
58585
58585
  key: X.Copy,
@@ -58608,7 +58608,7 @@ const NB = () => {
58608
58608
  }), e[X.Download] && !R && F.push({
58609
58609
  key: X.Download,
58610
58610
  label: e[X.Download],
58611
- icon: /* @__PURE__ */ g.jsx(Ih, { ...ie, className: "text-secondary" }),
58611
+ icon: /* @__PURE__ */ g.jsx(Mh, { ...ie, className: "text-secondary" }),
58612
58612
  onClick: () => n(y)
58613
58613
  }), e[X.ManagePermissions] && typeof f == "function" && y.nodeType === Se.FOLDER && !R && F.push({
58614
58614
  key: X.ManagePermissions,
@@ -58656,7 +58656,7 @@ const NB = () => {
58656
58656
  }), e[X.RemoveAccess] && u?.has(y.path) && c && F.push({
58657
58657
  key: X.RemoveAccess,
58658
58658
  label: e[X.RemoveAccess],
58659
- icon: /* @__PURE__ */ g.jsx(Mh, { size: ie.size, className: "text-secondary" }),
58659
+ icon: /* @__PURE__ */ g.jsx(Th, { size: ie.size, className: "text-secondary" }),
58660
58660
  onClick: () => c(y)
58661
58661
  }), F;
58662
58662
  }, [
@@ -58882,7 +58882,7 @@ const NB = () => {
58882
58882
  }), o.actionLabels[X.Duplicate] && !ti && !Ti && st.push({
58883
58883
  key: "duplicate",
58884
58884
  label: o.actionLabels[X.Duplicate],
58885
- icon: /* @__PURE__ */ g.jsx(Th, { ...ie, className: "text-secondary" }),
58885
+ icon: /* @__PURE__ */ g.jsx(Ih, { ...ie, className: "text-secondary" }),
58886
58886
  onClick: () => G([Q])
58887
58887
  }), o.actionLabels[X.Copy] && !ti && !Ti && st.push({
58888
58888
  key: mt.Copy,
@@ -58915,7 +58915,7 @@ const NB = () => {
58915
58915
  }), o.actionLabels[X.Download] && !ti && !Ti && st.push({
58916
58916
  key: "download",
58917
58917
  label: o.actionLabels[X.Download],
58918
- icon: /* @__PURE__ */ g.jsx(Ih, { ...ie, className: "text-secondary" }),
58918
+ icon: /* @__PURE__ */ g.jsx(Mh, { ...ie, className: "text-secondary" }),
58919
58919
  onClick: () => ye([Q])
58920
58920
  }), o.actionLabels[X.Rename] && !ti && st.push({
58921
58921
  key: "rename",
@@ -58944,7 +58944,7 @@ const NB = () => {
58944
58944
  key: X.RemoveAccess,
58945
58945
  label: o.actionLabels[X.RemoveAccess],
58946
58946
  icon: /* @__PURE__ */ g.jsx(
58947
- Mh,
58947
+ Th,
58948
58948
  {
58949
58949
  size: ie.size,
58950
58950
  className: "text-secondary"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@epam/ai-dial-ui-kit",
3
- "version": "0.10.0-dev.27",
3
+ "version": "0.10.0-dev.28",
4
4
  "type": "module",
5
5
  "license": "Apache-2.0",
6
6
  "description": "A modern UI kit for building AI DIAL interfaces with React",