@epam/ai-dial-ui-kit 0.4.0-rc.46 → 0.4.0-rc.47

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.
@@ -5823,34 +5823,33 @@ const i1 = Q(
5823
5823
  }, Ii = ({
5824
5824
  tab: e,
5825
5825
  active: t,
5826
- disabled: s,
5827
- invalid: o,
5828
- cssClass: i,
5829
- horizontal: n,
5830
- onClick: r
5826
+ invalid: s,
5827
+ cssClass: o,
5828
+ horizontal: i,
5829
+ onClick: n
5831
5830
  }) => {
5832
- const a = fe(
5831
+ const r = fe(
5833
5832
  "rounded h-[32px] items-center flex flex-row border-transparent cursor-pointer dial-small leading-4 hover:text-accent-primary",
5834
- { "border-b-2 px-4": n, "border-l-2 px-3": !n }
5835
- ), l = fe(
5836
- a,
5833
+ { "border-b-2 px-4": i, "border-l-2 px-3": !i }
5834
+ ), a = fe(
5835
+ r,
5837
5836
  {
5838
- "bg-layer-4": n,
5839
- "bg-layer-1 text-secondary pointer-events-none": s,
5840
- "bg-accent-primary-alpha text-primary": t && !s,
5841
- "text-primary": !t && !s,
5842
- "border-b-accent-primary": t && n && !s,
5843
- "border-l-accent-primary": t && !n && !s
5837
+ "bg-layer-4": i,
5838
+ "bg-layer-1 text-secondary pointer-events-none": e.disabled,
5839
+ "bg-accent-primary-alpha text-primary": t && !e.disabled,
5840
+ "text-primary": !t && !e.disabled,
5841
+ "border-b-accent-primary": t && i && !e.disabled,
5842
+ "border-l-accent-primary": t && !i && !e.disabled
5844
5843
  },
5845
- i
5844
+ o
5846
5845
  );
5847
5846
  return /* @__PURE__ */ j(
5848
5847
  "button",
5849
5848
  {
5850
5849
  role: "tab",
5851
- className: l,
5852
- onClick: () => r(e.id),
5853
- disabled: s,
5850
+ className: a,
5851
+ onClick: () => n(e.id),
5852
+ disabled: e.disabled,
5854
5853
  children: [
5855
5854
  /* @__PURE__ */ v(
5856
5855
  Ht,
@@ -5860,7 +5859,7 @@ const i1 = Q(
5860
5859
  cssClass: "max-w-[200px]"
5861
5860
  }
5862
5861
  ),
5863
- (o || e.invalid) && /* @__PURE__ */ v("div", { className: "text-error pl-1", children: /* @__PURE__ */ v(el, { ...we }) })
5862
+ (s || e.invalid) && /* @__PURE__ */ v("div", { className: "text-error pl-1", children: /* @__PURE__ */ v(el, { ...we }) })
5864
5863
  ]
5865
5864
  }
5866
5865
  );
@@ -48080,7 +48079,6 @@ export {
48080
48079
  th as DialSharedEntityIndicator,
48081
48080
  nk as DialSteps,
48082
48081
  E1 as DialSwitch,
48083
- Ii as DialTab,
48084
48082
  u1 as DialTabs,
48085
48083
  ll as DialTag,
48086
48084
  wk as DialTagInput,
@@ -3,7 +3,6 @@ import { FC } from 'react';
3
3
  export interface DialTabProps {
4
4
  tab: TabModel;
5
5
  active: boolean;
6
- disabled?: boolean;
7
6
  invalid?: boolean;
8
7
  horizontal?: boolean;
9
8
  cssClass?: string;
@@ -24,10 +23,8 @@ export interface DialTabProps {
24
23
  * />
25
24
  * ```
26
25
  *
27
- * @param tab - The tab model containing its `id` and `name`.
26
+ * @param tab - The tab model containing its `id`, `name`, [`disabled`], [`invalid`].
28
27
  * @param active - Whether the tab is currently active.
29
- * @param [disabled=false] - Whether the tab is disabled and non-interactive.
30
- * @param [invalid=false] - Whether the tab is marked as invalid, displaying an error icon.
31
28
  * @param [horizontal=false] - Whether the tab is displayed in horizontal orientation.
32
29
  * @param [cssClass] - Additional CSS classes applied to the tab element.
33
30
  * @param onClick - Callback fired when the tab is clicked. Receives the tab’s `id`.
@@ -20,7 +20,6 @@ export { DialFileName } from './components/FileName/FileName';
20
20
  export { DialFolderName } from './components/FolderName/FolderName';
21
21
  export { DialDateCellRenderer } from './components/Grid/renderers/DateCellRenderer';
22
22
  export { DialTabs } from './components/Tabs/Tabs';
23
- export { DialTab } from './components/Tab/Tab';
24
23
  export { DialBreadcrumb } from './components/Breadcrumb/Breadcrumb';
25
24
  export { DialBreadcrumbItem } from './components/Breadcrumb/BreadcrumbItem';
26
25
  export { DialButton } from './components/Button/Button';
@@ -2,4 +2,5 @@ export interface TabModel {
2
2
  id: string;
3
3
  name: string;
4
4
  invalid?: boolean;
5
+ disabled?: boolean;
5
6
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@epam/ai-dial-ui-kit",
3
- "version": "0.4.0-rc.46",
3
+ "version": "0.4.0-rc.47",
4
4
  "type": "module",
5
5
  "license": "Apache-2.0",
6
6
  "description": "A modern UI kit for building AI DIAL interfaces with React",