@epam/ai-dial-ui-kit 0.5.0-rc.37 → 0.5.0-rc.38

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.
@@ -2955,7 +2955,7 @@ const Av = {
2955
2955
  }, Ov = "items-center justify-between gap-2 p-3 border border-solid dial-small-150 rounded flex", M8 = ({
2956
2956
  variant: e = bo.Info,
2957
2957
  message: t,
2958
- cssClass: s,
2958
+ className: s,
2959
2959
  closable: o = !1,
2960
2960
  onClose: i
2961
2961
  }) => /* @__PURE__ */ z(
@@ -2978,7 +2978,7 @@ const Av = {
2978
2978
  className: "ml-2 text-secondary hover:text-primary",
2979
2979
  "aria-label": "Close alert",
2980
2980
  iconBefore: /* @__PURE__ */ v(Uo, { size: 16 }),
2981
- onClick: (n) => i?.(n)
2981
+ onClick: i
2982
2982
  }
2983
2983
  )
2984
2984
  ]
@@ -5319,10 +5319,10 @@ function Wh(e, t) {
5319
5319
  const fd = "column", X1 = "flex items-center", J1 = "mr-3 cursor-move text-secondary", A8 = ({
5320
5320
  id: e,
5321
5321
  children: t,
5322
- cssClass: s,
5323
- findItem: o,
5324
- moveItem: i,
5325
- handleAriaLabel: n = "Drag item"
5322
+ className: s,
5323
+ onFind: o,
5324
+ onMove: i,
5325
+ ariaLabel: n = "Drag item"
5326
5326
  }) => {
5327
5327
  const r = L(null), a = L(null), l = typeof o == "function" ? o(e) : -1, [{ isDragging: c }, d, u] = U1(
5328
5328
  () => ({
@@ -5360,15 +5360,7 @@ const fd = "column", X1 = "flex items-center", J1 = "mr-3 cursor-move text-secon
5360
5360
  style: { opacity: c ? 0 : 1 },
5361
5361
  "aria-roledescription": "Draggable item",
5362
5362
  children: [
5363
- /* @__PURE__ */ v(
5364
- "div",
5365
- {
5366
- ref: r,
5367
- className: J1,
5368
- "aria-label": n,
5369
- children: /* @__PURE__ */ v(hC, { ...re })
5370
- }
5371
- ),
5363
+ /* @__PURE__ */ v("div", { ref: r, className: J1, "aria-label": n, children: /* @__PURE__ */ v(hC, { ...re }) }),
5372
5364
  t
5373
5365
  ]
5374
5366
  }
@@ -5455,7 +5447,6 @@ const fd = "column", X1 = "flex items-center", J1 = "mr-3 cursor-move text-secon
5455
5447
  Ne,
5456
5448
  {
5457
5449
  className: be("text-accent-primary", s),
5458
- label: "Shared entity indicator",
5459
5450
  icon: /* @__PURE__ */ v(
5460
5451
  NC,
5461
5452
  {
@@ -3,7 +3,7 @@ import { AlertVariant } from '../../types/alert';
3
3
  export interface DialAlertProps {
4
4
  variant?: AlertVariant;
5
5
  message: string | ReactNode;
6
- cssClass?: string;
6
+ className?: string;
7
7
  closable?: boolean;
8
8
  onClose?: (e: MouseEvent<HTMLButtonElement>) => void;
9
9
  }
@@ -35,7 +35,7 @@ export interface DialAlertProps {
35
35
  *
36
36
  * @param [variant=AlertVariant.Info] - Defines the visual style and icon of the alert
37
37
  * @param message - Message text to display inside the alert
38
- * @param [cssClass] - Additional CSS classes applied to the alert container
38
+ * @param [className] - Additional CSS classes applied to the alert container
39
39
  * @param [closable=false] - Whether the alert has a close button
40
40
  * @param [onClose] - Callback fired when the close button is clicked
41
41
  */
@@ -1,5 +1,5 @@
1
1
  import { AlertVariant } from '../../types/alert';
2
2
  import { ReactNode } from 'react';
3
3
  export declare const variantIcons: Record<AlertVariant, ReactNode>;
4
- export declare const alertVariantClassMap: Record<AlertVariant, string>;
5
- export declare const alertBaseClasses = "items-center justify-between gap-2 p-3 border border-solid dial-small-150 rounded flex";
4
+ export declare const alertVariantClassNameMap: Record<AlertVariant, string>;
5
+ export declare const alertBaseClassName = "items-center justify-between gap-2 p-3 border border-solid dial-small-150 rounded flex";
@@ -2,10 +2,10 @@ import { FC, ReactNode } from 'react';
2
2
  export interface DialDraggableItemProps {
3
3
  id: string;
4
4
  children: ReactNode;
5
- cssClass?: string;
6
- findItem?: (field: string) => number;
7
- moveItem?: (field: string, atIndex: number) => void;
8
- handleAriaLabel?: string;
5
+ className?: string;
6
+ ariaLabel?: string;
7
+ onFind?: (field: string) => number;
8
+ onMove?: (field: string, atIndex: number) => void;
9
9
  }
10
10
  /**
11
11
  * A lightweight wrapper that makes its children sortable via drag-and-drop.
@@ -23,9 +23,9 @@ export interface DialDraggableItemProps {
23
23
  *
24
24
  * @param id - Unique identifier of the draggable item
25
25
  * @param children - Content rendered within the draggable row
26
- * @param [cssClass] - Additional CSS classes applied to the root container
27
- * @param [findItem] - Function to resolve an item's current index by id
28
- * @param [moveItem] - Function to move an item (by id) to a target index
29
- * @param [handleAriaLabel='Drag item'] - Accessible label for the handle
26
+ * @param [className] - Additional CSS classes applied to the root container
27
+ * @param [onFind] - Function to resolve an item's current index by id
28
+ * @param [onMove] - Function to move an item (by id) to a target index
29
+ * @param [ariaLabel='Drag item'] - Accessible label for the handle
30
30
  */
31
31
  export declare const DialDraggableItem: FC<DialDraggableItemProps>;
@@ -1,3 +1,3 @@
1
1
  export declare const DRAG_TYPE = "column";
2
- export declare const containerBaseClasses = "flex items-center";
3
- export declare const handleBaseClasses = "mr-3 cursor-move text-secondary";
2
+ export declare const containerBaseClassName = "flex items-center";
3
+ export declare const handleBaseClassName = "mr-3 cursor-move text-secondary";
@@ -2,7 +2,6 @@ import { FC, ReactNode } from 'react';
2
2
  export interface DialIconProps {
3
3
  icon?: ReactNode;
4
4
  className?: string;
5
- label?: string;
6
5
  }
7
6
  /**
8
7
  * A wrapper component for rendering icons with consistent styling
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@epam/ai-dial-ui-kit",
3
- "version": "0.5.0-rc.37",
3
+ "version": "0.5.0-rc.38",
4
4
  "type": "module",
5
5
  "license": "Apache-2.0",
6
6
  "description": "A modern UI kit for building AI DIAL interfaces with React",