@epam/ai-dial-chat-shared 1.1.0-dev.182 → 1.1.0-dev.183
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/components/EntityHeader/EntityHeader.d.ts +32 -0
- package/components/EntityHeader/EntityHeader.d.ts.map +1 -0
- package/components/EntityTypeLabel/EntityTypeLabel.d.ts +16 -0
- package/components/EntityTypeLabel/EntityTypeLabel.d.ts.map +1 -0
- package/components/FeaturedChip/FeaturedChip.d.ts +14 -0
- package/components/FeaturedChip/FeaturedChip.d.ts.map +1 -0
- package/components/ItemHeader/ItemHeader.d.ts +36 -0
- package/components/ItemHeader/ItemHeader.d.ts.map +1 -0
- package/components/ResourceSummary/ResourceSummary.d.ts +35 -0
- package/components/ResourceSummary/ResourceSummary.d.ts.map +1 -0
- package/constants/entity-colors.d.ts +6 -0
- package/constants/entity-colors.d.ts.map +1 -0
- package/index.css +1 -1
- package/index.d.ts +9 -0
- package/index.d.ts.map +1 -1
- package/index.js +4394 -4259
- package/models/entity.d.ts +15 -0
- package/models/entity.d.ts.map +1 -0
- package/package.json +1 -1
- package/types/entity-type.d.ts +10 -0
- package/types/entity-type.d.ts.map +1 -0
- package/utils/format-price.d.ts +5 -0
- package/utils/format-price.d.ts.map +1 -0
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { FC, ReactNode } from 'react';
|
|
2
|
+
import { EntityHeaderItem } from '../../models/entity';
|
|
3
|
+
/** Props for EntityHeader. */
|
|
4
|
+
export interface EntityHeaderProps {
|
|
5
|
+
/** The entity to display. */
|
|
6
|
+
item: EntityHeaderItem;
|
|
7
|
+
/** Typography CSS class for the item name. Falls back to `ItemHeader`'s own default when omitted. */
|
|
8
|
+
nameClassName?: string;
|
|
9
|
+
/** CSS class for the entity type label. Default: 'dial-caption-lead-semi-text'. */
|
|
10
|
+
typeClassName?: string;
|
|
11
|
+
/** CSS class applied to the icon badge, e.g. to set border-radius. Default: 'rounded-[14px]'. */
|
|
12
|
+
iconBadgeClassName?: string;
|
|
13
|
+
/** Typography CSS class for the version text. Falls back to `ItemHeader`'s own default when omitted. */
|
|
14
|
+
versionClassName?: string;
|
|
15
|
+
/** Whether to show `item.version` next to the title. Default: true. */
|
|
16
|
+
showVersion?: boolean;
|
|
17
|
+
/** Label for the featured tag shown when item.isFeatured is true. Default: 'Featured'. */
|
|
18
|
+
featuredLabel?: string;
|
|
19
|
+
/** Whether to render the featured tag. Default: true. */
|
|
20
|
+
hasFeaturedTag?: boolean;
|
|
21
|
+
/** Size of the deployment icon. Default: 48. */
|
|
22
|
+
iconSize?: number;
|
|
23
|
+
/** Search query string; when provided, matching text in the title is highlighted. */
|
|
24
|
+
query?: string;
|
|
25
|
+
/** Content pinned to the bottom of the text column via `mt-auto`, aligning its baseline with the avatar bottom. When provided, the column stretches to fill the icon height exactly. */
|
|
26
|
+
footer?: ReactNode;
|
|
27
|
+
/** CSS class for the featured chip. */
|
|
28
|
+
featuredChipClassName?: string;
|
|
29
|
+
}
|
|
30
|
+
/** Reusable entity identity block: deployment icon, type label, name, version, and optional featured chip. */
|
|
31
|
+
export declare const EntityHeader: FC<EntityHeaderProps>;
|
|
32
|
+
//# sourceMappingURL=EntityHeader.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EntityHeader.d.ts","sourceRoot":"","sources":["../../../src/components/EntityHeader/EntityHeader.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACtC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAO5D,8BAA8B;AAC9B,MAAM,WAAW,iBAAiB;IAChC,6BAA6B;IAC7B,IAAI,EAAE,gBAAgB,CAAC;IACvB,qGAAqG;IACrG,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,mFAAmF;IACnF,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,iGAAiG;IACjG,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,wGAAwG;IACxG,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,uEAAuE;IACvE,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,0FAA0F;IAC1F,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,yDAAyD;IACzD,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,gDAAgD;IAChD,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,qFAAqF;IACrF,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,wLAAwL;IACxL,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB,uCAAuC;IACvC,qBAAqB,CAAC,EAAE,MAAM,CAAC;CAChC;AAED,8GAA8G;AAC9G,eAAO,MAAM,YAAY,EAAE,EAAE,CAAC,iBAAiB,CAoD9C,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { CatalogEntityType } from '../../types/entity-type';
|
|
3
|
+
/** Props for EntityTypeLabel. */
|
|
4
|
+
export interface EntityTypeLabelProps {
|
|
5
|
+
/** Entity category — resolves the label's color via ENTITY_TYPE_COLOR. */
|
|
6
|
+
type: CatalogEntityType;
|
|
7
|
+
/** CSS class for the label text. Default: 'dial-caption-lead-semi-text'. */
|
|
8
|
+
className?: string;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* Entity type label rendered as plain uppercase text — no pill, no background.
|
|
12
|
+
* Shared by the card grid (via AppIdentity) and the list view, so both
|
|
13
|
+
* densities of the catalog use the same type treatment.
|
|
14
|
+
*/
|
|
15
|
+
export declare const EntityTypeLabel: FC<EntityTypeLabelProps>;
|
|
16
|
+
//# sourceMappingURL=EntityTypeLabel.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EntityTypeLabel.d.ts","sourceRoot":"","sources":["../../../src/components/EntityTypeLabel/EntityTypeLabel.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAE3B,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAE5D,iCAAiC;AACjC,MAAM,WAAW,oBAAoB;IACnC,0EAA0E;IAC1E,IAAI,EAAE,iBAAiB,CAAC;IACxB,4EAA4E;IAC5E,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;;;GAIG;AACH,eAAO,MAAM,eAAe,EAAE,EAAE,CAAC,oBAAoB,CAOpD,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { CatalogEntityType } from '../../types/entity-type';
|
|
3
|
+
/** Props for `FeaturedChip`. */
|
|
4
|
+
export interface FeaturedChipProps {
|
|
5
|
+
/** Label text shown inside the chip. */
|
|
6
|
+
label: string;
|
|
7
|
+
/** Additional CSS class for typography overrides. */
|
|
8
|
+
className?: string;
|
|
9
|
+
/** Entity category — resolves the label's color via ENTITY_TYPE_COLOR. */
|
|
10
|
+
type: CatalogEntityType;
|
|
11
|
+
}
|
|
12
|
+
/** Featured badge rendered on a catalog card when `item.isFeatured` is true. */
|
|
13
|
+
export declare const FeaturedChip: FC<FeaturedChipProps>;
|
|
14
|
+
//# sourceMappingURL=FeaturedChip.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FeaturedChip.d.ts","sourceRoot":"","sources":["../../../src/components/FeaturedChip/FeaturedChip.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAK3B,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAG5D,gCAAgC;AAChC,MAAM,WAAW,iBAAiB;IAChC,wCAAwC;IACxC,KAAK,EAAE,MAAM,CAAC;IACd,qDAAqD;IACrD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,0EAA0E;IAC1E,IAAI,EAAE,iBAAiB,CAAC;CACzB;AAED,gFAAgF;AAChF,eAAO,MAAM,YAAY,EAAE,EAAE,CAAC,iBAAiB,CAoB9C,CAAC"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { FC, ReactNode } from 'react';
|
|
2
|
+
/** CSS custom-property overrides for the `ItemHeader` component. */
|
|
3
|
+
export interface ItemHeaderColors {
|
|
4
|
+
/** Title text color. Defaults to `--text-primary`. */
|
|
5
|
+
title?: string;
|
|
6
|
+
/** Postfix text color. Defaults to `--text-secondary`. */
|
|
7
|
+
count?: string;
|
|
8
|
+
}
|
|
9
|
+
/** Props for `ItemHeader`. */
|
|
10
|
+
export interface ItemHeaderProps {
|
|
11
|
+
/** Title text rendered in the heading element. */
|
|
12
|
+
title: string;
|
|
13
|
+
/** Secondary value rendered after the title, such as a version or an item count. */
|
|
14
|
+
postfix?: number | string;
|
|
15
|
+
/** CSS class applied to the title. Defaults to `'dial-h3-text'`. */
|
|
16
|
+
titleClassName?: string;
|
|
17
|
+
/** CSS class applied to the postfix. Defaults to `'dial-tiny-text'`. */
|
|
18
|
+
postfixClassName?: string;
|
|
19
|
+
/** CSS class applied to the header row. */
|
|
20
|
+
className?: string;
|
|
21
|
+
/** Search query; when provided, the matching part of the title is highlighted. */
|
|
22
|
+
query?: string;
|
|
23
|
+
/** Optional content rendered at the trailing end of the header row. */
|
|
24
|
+
trailing?: ReactNode;
|
|
25
|
+
/** Color overrides applied as CSS custom properties. */
|
|
26
|
+
colors?: ItemHeaderColors;
|
|
27
|
+
/**
|
|
28
|
+
* Whether the title shrinks and truncates with an ellipsis. When `false` the
|
|
29
|
+
* title keeps its full width and the rest of the row gives way instead.
|
|
30
|
+
* Defaults to `true`.
|
|
31
|
+
*/
|
|
32
|
+
shouldTruncateTitle?: boolean;
|
|
33
|
+
}
|
|
34
|
+
/** Item title header with optional numeric or string postfix and trailing slot. */
|
|
35
|
+
export declare const ItemHeader: FC<ItemHeaderProps>;
|
|
36
|
+
//# sourceMappingURL=ItemHeader.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ItemHeader.d.ts","sourceRoot":"","sources":["../../../src/components/ItemHeader/ItemHeader.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAKtC,oEAAoE;AACpE,MAAM,WAAW,gBAAgB;IAC/B,sDAAsD;IACtD,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,0DAA0D;IAC1D,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,8BAA8B;AAC9B,MAAM,WAAW,eAAe;IAC9B,kDAAkD;IAClD,KAAK,EAAE,MAAM,CAAC;IACd,oFAAoF;IACpF,OAAO,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC1B,oEAAoE;IACpE,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,wEAAwE;IACxE,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,2CAA2C;IAC3C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,kFAAkF;IAClF,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,uEAAuE;IACvE,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,wDAAwD;IACxD,MAAM,CAAC,EAAE,gBAAgB,CAAC;IAC1B;;;;OAIG;IACH,mBAAmB,CAAC,EAAE,OAAO,CAAC;CAC/B;AAED,mFAAmF;AACnF,eAAO,MAAM,UAAU,EAAE,EAAE,CAAC,eAAe,CA0D1C,CAAC"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { FC, ReactNode } from 'react';
|
|
2
|
+
import { EntityHeaderItem } from '../../models/entity';
|
|
3
|
+
/** CSS custom-property overrides for the `ResourceSummary` row. */
|
|
4
|
+
export interface ResourceSummaryColors {
|
|
5
|
+
/** Row border color. Defaults to `--stroke-tertiary`. */
|
|
6
|
+
border?: string;
|
|
7
|
+
/** Row background color. Defaults to `--bg-layer-sunken`. */
|
|
8
|
+
background?: string;
|
|
9
|
+
/** Version tag border color. Defaults to `--stroke-tertiary`. */
|
|
10
|
+
versionTagBorder?: string;
|
|
11
|
+
/** Version tag background color. Defaults to `--bg-accent-primary-alpha`. */
|
|
12
|
+
versionTagBackground?: string;
|
|
13
|
+
/** Version tag text color. Defaults to `--text-accent`. */
|
|
14
|
+
versionTagText?: string;
|
|
15
|
+
}
|
|
16
|
+
/** Props for `ResourceSummary`. */
|
|
17
|
+
export interface ResourceSummaryProps {
|
|
18
|
+
/** Entity shown in the row as an icon, type label, name, and version tag. Ignored when `children` is set. */
|
|
19
|
+
item?: EntityHeaderItem;
|
|
20
|
+
/** Row content rendered instead of the entity header and version tag. */
|
|
21
|
+
children?: ReactNode;
|
|
22
|
+
/** Version tag text; `{version}` is replaced with `item.version`. The tag is omitted when `item.version` is empty. Defaults to `'Version {version} · current'`. */
|
|
23
|
+
versionLabel?: string;
|
|
24
|
+
/** Whether the version is shown as a trailing tag. When `false` it is shown inline after the name instead. Defaults to `true`. */
|
|
25
|
+
hasVersionTag?: boolean;
|
|
26
|
+
/** Size of the entity icon. Defaults to `40`. */
|
|
27
|
+
iconSize?: number;
|
|
28
|
+
/** CSS class applied to the row. */
|
|
29
|
+
className?: string;
|
|
30
|
+
/** Color overrides applied as CSS custom properties. */
|
|
31
|
+
colors?: ResourceSummaryColors;
|
|
32
|
+
}
|
|
33
|
+
/** Bordered summary row pairing an entity's identity block with its current-version tag. */
|
|
34
|
+
export declare const ResourceSummary: FC<ResourceSummaryProps>;
|
|
35
|
+
//# sourceMappingURL=ResourceSummary.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ResourceSummary.d.ts","sourceRoot":"","sources":["../../../src/components/ResourceSummary/ResourceSummary.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACtC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAM5D,mEAAmE;AACnE,MAAM,WAAW,qBAAqB;IACpC,yDAAyD;IACzD,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,6DAA6D;IAC7D,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,iEAAiE;IACjE,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,6EAA6E;IAC7E,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,2DAA2D;IAC3D,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAED,mCAAmC;AACnC,MAAM,WAAW,oBAAoB;IACnC,6GAA6G;IAC7G,IAAI,CAAC,EAAE,gBAAgB,CAAC;IACxB,yEAAyE;IACzE,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,mKAAmK;IACnK,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,kIAAkI;IAClI,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,iDAAiD;IACjD,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,oCAAoC;IACpC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,wDAAwD;IACxD,MAAM,CAAC,EAAE,qBAAqB,CAAC;CAChC;AAED,4FAA4F;AAC5F,eAAO,MAAM,eAAe,EAAE,EAAE,CAAC,oBAAoB,CAmDpD,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { CatalogEntityType } from '../types/entity-type';
|
|
2
|
+
/** Text color per entity type — used for the type label, featured chip, and drop shadow. */
|
|
3
|
+
export declare const ENTITY_TYPE_COLOR: Record<CatalogEntityType, string>;
|
|
4
|
+
/** Background color per entity type — used for the featured chip surface. */
|
|
5
|
+
export declare const ENTITY_TYPE_BG_COLOR: Record<CatalogEntityType, string>;
|
|
6
|
+
//# sourceMappingURL=entity-colors.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"entity-colors.d.ts","sourceRoot":"","sources":["../../src/constants/entity-colors.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAEzD,4FAA4F;AAC5F,eAAO,MAAM,iBAAiB,EAAE,MAAM,CAAC,iBAAiB,EAAE,MAAM,CAM/D,CAAC;AAEF,6EAA6E;AAC7E,eAAO,MAAM,oBAAoB,EAAE,MAAM,CAAC,iBAAiB,EAAE,MAAM,CAMlE,CAAC"}
|