@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.
- package/dist/dial-ui-kit.cjs.js +14 -14
- package/dist/dial-ui-kit.es.js +19 -21
- package/dist/src/components/Tab/Tab.d.ts +1 -4
- package/dist/src/index.d.ts +0 -1
- package/dist/src/models/tab.d.ts +1 -0
- package/package.json +1 -1
package/dist/dial-ui-kit.es.js
CHANGED
|
@@ -5823,34 +5823,33 @@ const i1 = Q(
|
|
|
5823
5823
|
}, Ii = ({
|
|
5824
5824
|
tab: e,
|
|
5825
5825
|
active: t,
|
|
5826
|
-
|
|
5827
|
-
|
|
5828
|
-
|
|
5829
|
-
|
|
5830
|
-
onClick: r
|
|
5826
|
+
invalid: s,
|
|
5827
|
+
cssClass: o,
|
|
5828
|
+
horizontal: i,
|
|
5829
|
+
onClick: n
|
|
5831
5830
|
}) => {
|
|
5832
|
-
const
|
|
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":
|
|
5835
|
-
),
|
|
5836
|
-
|
|
5833
|
+
{ "border-b-2 px-4": i, "border-l-2 px-3": !i }
|
|
5834
|
+
), a = fe(
|
|
5835
|
+
r,
|
|
5837
5836
|
{
|
|
5838
|
-
"bg-layer-4":
|
|
5839
|
-
"bg-layer-1 text-secondary pointer-events-none":
|
|
5840
|
-
"bg-accent-primary-alpha text-primary": t && !
|
|
5841
|
-
"text-primary": !t && !
|
|
5842
|
-
"border-b-accent-primary": t &&
|
|
5843
|
-
"border-l-accent-primary": t && !
|
|
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
|
-
|
|
5844
|
+
o
|
|
5846
5845
|
);
|
|
5847
5846
|
return /* @__PURE__ */ j(
|
|
5848
5847
|
"button",
|
|
5849
5848
|
{
|
|
5850
5849
|
role: "tab",
|
|
5851
|
-
className:
|
|
5852
|
-
onClick: () =>
|
|
5853
|
-
disabled:
|
|
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
|
-
(
|
|
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`
|
|
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`.
|
package/dist/src/index.d.ts
CHANGED
|
@@ -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';
|
package/dist/src/models/tab.d.ts
CHANGED