@epam/ai-dial-ui-kit 0.14.0-dev.2 → 0.14.0-dev.22

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.
Files changed (83) hide show
  1. package/README.md +7 -1
  2. package/dist/CHANGELOG.md +56 -1
  3. package/dist/{JsonEditor-DPtZkKQi.cjs → JsonEditor-CLmDZqJH.cjs} +1 -1
  4. package/dist/{JsonEditor-CM-CG-FK.js → JsonEditor-DdYGciSl.js} +1 -1
  5. package/dist/{MarkdownEditor-cdq8UZxL.js → MarkdownEditor-B9Bs3UUs.js} +1 -1
  6. package/dist/MarkdownEditor-DXdBLiV3.cjs +1 -0
  7. package/dist/{MarkdownEditor-D4WuEafx.cjs → MarkdownEditor-DlAqXKw_.cjs} +1 -1
  8. package/dist/MarkdownEditor-YU-phCxT.js +69 -0
  9. package/dist/components-manifest.json +1795 -202
  10. package/dist/dial-ui-kit.cjs.js +1 -1
  11. package/dist/dial-ui-kit.es.js +231 -195
  12. package/dist/{index-CBk9P1Pa.js → index-CpVGPv8D.js} +15116 -13323
  13. package/dist/{index-A_KNCHda.cjs → index-DBHH26fT.cjs} +31 -31
  14. package/dist/index.css +2 -2
  15. package/dist/migration-guides/0.14.0/button-tooltip-2-0.md +111 -0
  16. package/dist/migration-guides/0.14.0/control-color-token-rename.md +143 -0
  17. package/dist/migration-guides/0.14.0/focus-border-token-role-naming.md +87 -0
  18. package/dist/migration-guides/0.14.0/select-multiselect-option-row.md +99 -0
  19. package/dist/migration-guides/0.14.0/shadow-token-per-step-rename.md +139 -0
  20. package/dist/migration-guides/0.14.0/tag-single-size.md +121 -0
  21. package/dist/migration-guides/README.md +6 -0
  22. package/dist/src/components/Grid/comparators/base-column-comparator.d.ts +1 -4
  23. package/dist/src/components/Grid/renderers/utils.d.ts +1 -2
  24. package/dist/src/components/New/Button/Button.d.ts +4 -3
  25. package/dist/src/components/New/Calendar/constants.d.ts +5 -5
  26. package/dist/src/components/New/Checkbox/Checkbox.d.ts +50 -0
  27. package/dist/src/components/New/Checkbox/CheckboxBox.d.ts +30 -0
  28. package/dist/src/components/New/Checkbox/constants.d.ts +10 -0
  29. package/dist/src/components/New/CollapsibleSidebar/CollapsibleSidebar.d.ts +82 -0
  30. package/dist/src/components/New/Dropdown/constants.d.ts +3 -1
  31. package/dist/src/components/New/EllipsisTooltip/EllipsisTooltip.d.ts +51 -0
  32. package/dist/src/components/New/EllipsisTooltip/use-truncation.d.ts +26 -0
  33. package/dist/src/components/New/Grid/Grid.d.ts +124 -0
  34. package/dist/src/components/New/Grid/components/SelectionCell.d.ts +21 -0
  35. package/dist/src/components/New/Grid/components/SelectionHeader.d.ts +14 -0
  36. package/dist/src/components/New/Grid/constants.d.ts +61 -0
  37. package/dist/src/components/New/Grid/renderers/DateCellRenderer.d.ts +48 -0
  38. package/dist/src/components/New/Grid/renderers/constants.d.ts +5 -0
  39. package/dist/src/components/New/Highlight/Highlight.d.ts +1 -1
  40. package/dist/src/components/New/IconButton/IconButton.d.ts +4 -4
  41. package/dist/src/components/New/Input/Button/constants.d.ts +1 -1
  42. package/dist/src/components/New/Label/Label.d.ts +5 -0
  43. package/dist/src/components/New/NoDataContent/NoDataContent.d.ts +48 -0
  44. package/dist/src/components/New/Notification/Notification.d.ts +7 -0
  45. package/dist/src/components/New/Notification/NotificationWrapper.d.ts +2 -0
  46. package/dist/src/components/New/Popup/Popup.d.ts +48 -9
  47. package/dist/src/components/New/Popup/constants.d.ts +7 -0
  48. package/dist/src/components/New/Radio/Radio.d.ts +48 -0
  49. package/dist/src/components/New/RadioGroup/RadioGroup.d.ts +78 -0
  50. package/dist/src/components/New/RadioGroup/constants.d.ts +11 -0
  51. package/dist/src/components/New/RadioGroupPopupField/RadioGroupPopupField.d.ts +93 -0
  52. package/dist/src/components/New/RadioGroupPopupField/constants.d.ts +22 -0
  53. package/dist/src/components/New/ResizableContainer/ConditionalResizableContainer.d.ts +34 -0
  54. package/dist/src/components/New/ResizableContainer/ResizableContainer.d.ts +77 -0
  55. package/dist/src/components/New/ResizableContainer/components/ResizeHandle.d.ts +21 -0
  56. package/dist/src/components/New/SegmentedControl/SegmentedControl.d.ts +54 -0
  57. package/dist/src/components/New/SegmentedControl/constants.d.ts +16 -0
  58. package/dist/src/components/New/Select/constants.d.ts +2 -2
  59. package/dist/src/components/New/Slider/Slider.d.ts +70 -0
  60. package/dist/src/components/New/Tag/Tag.d.ts +26 -4
  61. package/dist/src/components/New/Tag/constants.d.ts +23 -0
  62. package/dist/src/components/New/ThemeScope/ThemeScope.d.ts +46 -0
  63. package/dist/src/components/New/ToggleIconButton/ToggleIconButton.d.ts +47 -0
  64. package/dist/src/components/New/Tooltip/Tooltip.d.ts +43 -0
  65. package/dist/src/components/New/Tooltip/TooltipContainer.d.ts +32 -0
  66. package/dist/src/components/New/Tooltip/TooltipContent.d.ts +18 -0
  67. package/dist/src/components/New/Tooltip/TooltipContext.d.ts +115 -0
  68. package/dist/src/components/New/Tooltip/TooltipTrigger.d.ts +18 -0
  69. package/dist/src/components/New/Tooltip/constants.d.ts +30 -0
  70. package/dist/src/components/New/constants/icon.d.ts +22 -0
  71. package/dist/src/components/New/constants/overlay.d.ts +12 -3
  72. package/dist/src/index.d.ts +47 -1
  73. package/dist/src/models/dropdown.d.ts +10 -0
  74. package/dist/src/types/notification.d.ts +2 -1
  75. package/dist/src/types/tag.d.ts +4 -0
  76. package/dist/src/types/tooltip.d.ts +6 -0
  77. package/dist/src/utils/__tests__/element-size-observer.spec.d.ts +1 -0
  78. package/dist/src/utils/element-size-observer.d.ts +26 -0
  79. package/dist/src/utils/grid-comparators.d.ts +4 -0
  80. package/dist/src/utils/grid-date.d.ts +7 -0
  81. package/package.json +1 -1
  82. package/dist/MarkdownEditor-DRQoDnC-.js +0 -75
  83. package/dist/MarkdownEditor-DyIvPpmt.cjs +0 -1
@@ -0,0 +1,4 @@
1
+ import { ColDef, IRowNode } from 'ag-grid-community';
2
+ export declare const baseColumnComparator: (a: string | number | undefined, b: string | number | undefined, _nodeA?: IRowNode, _nodeB?: IRowNode, isInverted?: boolean) => number;
3
+ export declare const omitUndefined: <T extends object>(value: T | undefined) => T;
4
+ export declare const checkColDefsChanges: (cols: ColDef[], initialCols: ColDef[]) => boolean;
@@ -0,0 +1,7 @@
1
+ export type DateValue = string | number | Date;
2
+ /**
3
+ * Normalises the value a date cell can receive into a `Date`, or `null` when it
4
+ * carries no usable date. A pure integer string is read as epoch milliseconds,
5
+ * so a serialised timestamp behaves like the number it came from.
6
+ */
7
+ export declare const convertToDate: (input?: DateValue | null) => Date | null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@epam/ai-dial-ui-kit",
3
- "version": "0.14.0-dev.2",
3
+ "version": "0.14.0-dev.22",
4
4
  "type": "module",
5
5
  "license": "Apache-2.0",
6
6
  "description": "A modern UI kit for building AI DIAL interfaces with React",
@@ -1,75 +0,0 @@
1
- import { j as e, D as z, E as g, m as u } from "./index-CBk9P1Pa.js";
2
- import { useMemo as r } from "react";
3
- import h, { divider as i, group as p, heading1 as C, heading2 as E, heading3 as k, bold as L, italic as M, strikethrough as w, unorderedListCommand as b, orderedListCommand as N, quote as T, link as f, code as v, table as O, codeEdit as S, codeLive as _, codePreview as y, fullscreen as D } from "@uiw/react-md-editor";
4
- import { IconTextSize as P, IconBold as A, IconItalic as R, IconStrikethrough as B, IconList as Z, IconListNumbers as q, IconQuote as F, IconLink as K, IconCode as Q, IconTable as W, IconPencil as G, IconLayoutColumns as H, IconEye as J, IconMaximize as U } from "@tabler/icons-react";
5
- const o = z.SM, s = (t, n) => ({
6
- ...t,
7
- icon: n
8
- }), V = () => [
9
- s(L, /* @__PURE__ */ e.jsx(A, { size: o })),
10
- s(M, /* @__PURE__ */ e.jsx(R, { size: o })),
11
- s(
12
- w,
13
- /* @__PURE__ */ e.jsx(B, { size: o })
14
- ),
15
- i,
16
- p([C, E, k], {
17
- name: "heading",
18
- groupName: "heading",
19
- icon: /* @__PURE__ */ e.jsx(P, { size: o }),
20
- buttonProps: { "aria-label": "Text style", title: "Text style" }
21
- }),
22
- i,
23
- s(
24
- b,
25
- /* @__PURE__ */ e.jsx(Z, { size: o })
26
- ),
27
- s(
28
- N,
29
- /* @__PURE__ */ e.jsx(q, { size: o })
30
- ),
31
- i,
32
- s(T, /* @__PURE__ */ e.jsx(F, { size: o })),
33
- s(f, /* @__PURE__ */ e.jsx(K, { size: o })),
34
- s(v, /* @__PURE__ */ e.jsx(Q, { size: o })),
35
- i,
36
- s(O, /* @__PURE__ */ e.jsx(W, { size: o }))
37
- ], X = () => [
38
- s(S, /* @__PURE__ */ e.jsx(G, { size: o })),
39
- s(_, /* @__PURE__ */ e.jsx(H, { size: o })),
40
- s(y, /* @__PURE__ */ e.jsx(J, { size: o })),
41
- i,
42
- s(D, /* @__PURE__ */ e.jsx(U, { size: o }))
43
- ], se = ({
44
- value: t,
45
- onChange: n,
46
- height: a = 300,
47
- theme: d = g.light,
48
- className: c,
49
- placeholder: m,
50
- defaultPreview: x = "edit"
51
- }) => {
52
- const l = r(() => V(), []), I = r(() => X(), []);
53
- return /* @__PURE__ */ e.jsx(
54
- "div",
55
- {
56
- "data-color-mode": d,
57
- className: u("dial-kit-markdown-editor", c),
58
- children: /* @__PURE__ */ e.jsx(
59
- h,
60
- {
61
- value: t,
62
- onChange: (j) => n?.(j || ""),
63
- height: a,
64
- preview: x,
65
- commands: l,
66
- extraCommands: I,
67
- textareaProps: { placeholder: m }
68
- }
69
- )
70
- }
71
- );
72
- };
73
- export {
74
- se as MarkdownEditor
75
- };
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("./index-A_KNCHda.cjs"),x=require("react"),e=require("@uiw/react-md-editor"),t=require("@tabler/icons-react"),o=s.DIAL_ICON_SIZE.SM,i=(n,r)=>({...n,icon:r}),p=()=>[i(e.bold,s.jsxRuntimeExports.jsx(t.IconBold,{size:o})),i(e.italic,s.jsxRuntimeExports.jsx(t.IconItalic,{size:o})),i(e.strikethrough,s.jsxRuntimeExports.jsx(t.IconStrikethrough,{size:o})),e.divider,e.group([e.heading1,e.heading2,e.heading3],{name:"heading",groupName:"heading",icon:s.jsxRuntimeExports.jsx(t.IconTextSize,{size:o}),buttonProps:{"aria-label":"Text style",title:"Text style"}}),e.divider,i(e.unorderedListCommand,s.jsxRuntimeExports.jsx(t.IconList,{size:o})),i(e.orderedListCommand,s.jsxRuntimeExports.jsx(t.IconListNumbers,{size:o})),e.divider,i(e.quote,s.jsxRuntimeExports.jsx(t.IconQuote,{size:o})),i(e.link,s.jsxRuntimeExports.jsx(t.IconLink,{size:o})),i(e.code,s.jsxRuntimeExports.jsx(t.IconCode,{size:o})),e.divider,i(e.table,s.jsxRuntimeExports.jsx(t.IconTable,{size:o}))],I=()=>[i(e.codeEdit,s.jsxRuntimeExports.jsx(t.IconPencil,{size:o})),i(e.codeLive,s.jsxRuntimeExports.jsx(t.IconLayoutColumns,{size:o})),i(e.codePreview,s.jsxRuntimeExports.jsx(t.IconEye,{size:o})),e.divider,i(e.fullscreen,s.jsxRuntimeExports.jsx(t.IconMaximize,{size:o}))],R=({value:n,onChange:r,height:d=300,theme:c=s.EditorThemes.light,className:a,placeholder:m,defaultPreview:u="edit"})=>{const j=x.useMemo(()=>p(),[]),l=x.useMemo(()=>I(),[]);return s.jsxRuntimeExports.jsx("div",{"data-color-mode":c,className:s.mergeClasses("dial-kit-markdown-editor",a),children:s.jsxRuntimeExports.jsx(e,{value:n,onChange:E=>r?.(E||""),height:d,preview:u,commands:j,extraCommands:l,textareaProps:{placeholder:m}})})};exports.MarkdownEditor=R;