@epam/ai-dial-catalog 1.3.0-dev.86 → 1.3.0-dev.89
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/Catalog/Catalog.d.ts.map +1 -1
- package/components/Catalog/CreateButton.d.ts +5 -0
- package/components/Catalog/CreateButton.d.ts.map +1 -1
- package/components/Catalog/CreateMenuSheet.d.ts +5 -0
- package/components/Catalog/CreateMenuSheet.d.ts.map +1 -1
- package/constants/create-menu.d.ts +0 -2
- package/constants/create-menu.d.ts.map +1 -1
- package/index.css +2 -2
- package/index.d.ts +1 -1
- package/index.d.ts.map +1 -1
- package/index.js +498 -490
- package/models/catalog-styles.d.ts +11 -0
- package/models/catalog-styles.d.ts.map +1 -1
- package/package.json +4 -4
- package/utils/create-menu.d.ts +5 -1
- package/utils/create-menu.d.ts.map +1 -1
|
@@ -1,4 +1,11 @@
|
|
|
1
1
|
import { CSSProperties } from 'react';
|
|
2
|
+
/** Color overrides for the Create menu's section rows, applied as CSS custom properties with app theme fallbacks. */
|
|
3
|
+
export interface CreateMenuColors {
|
|
4
|
+
/** Line between the menu's sections in the mobile sheet. Fallback: `--stroke-tertiary`. */
|
|
5
|
+
divider?: string;
|
|
6
|
+
/** Text color of a section header in the mobile sheet. Fallback: `--text-secondary`. */
|
|
7
|
+
sectionHeaderText?: string;
|
|
8
|
+
}
|
|
2
9
|
/**
|
|
3
10
|
* Color overrides for the Catalog component.
|
|
4
11
|
* All values are applied as CSS custom properties with app theme fallbacks.
|
|
@@ -15,6 +22,8 @@ export interface CatalogColors {
|
|
|
15
22
|
* colors, e.g. `{ backgroundColor, color, border }`.
|
|
16
23
|
*/
|
|
17
24
|
featuredChipStyle?: CSSProperties;
|
|
25
|
+
/** Colors of the Create menu's section rows in the mobile sheet. */
|
|
26
|
+
createMenu?: CreateMenuColors;
|
|
18
27
|
}
|
|
19
28
|
/** Typography overrides for the Catalog component. */
|
|
20
29
|
export interface CatalogTypography {
|
|
@@ -22,6 +31,8 @@ export interface CatalogTypography {
|
|
|
22
31
|
pageHeadingFontClassName?: string;
|
|
23
32
|
/** Typography class applied to tab text. Defaults to `'dial-body-text'`. */
|
|
24
33
|
tabClassName?: string;
|
|
34
|
+
/** Typography class of a Create menu section header in the mobile sheet. Defaults to `'dial-caption-text'`. */
|
|
35
|
+
createMenuSectionHeaderClassName?: string;
|
|
25
36
|
}
|
|
26
37
|
/** Combined style overrides (colors and typography) for the Catalog component. */
|
|
27
38
|
export interface CatalogStyles {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"catalog-styles.d.ts","sourceRoot":"","sources":["../../src/models/catalog-styles.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAE3C;;;GAGG;AACH,MAAM,WAAW,aAAa;IAC5B,oEAAoE;IACpE,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,4DAA4D;IAC5D,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B;;;;;OAKG;IACH,iBAAiB,CAAC,EAAE,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"catalog-styles.d.ts","sourceRoot":"","sources":["../../src/models/catalog-styles.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAE3C,qHAAqH;AACrH,MAAM,WAAW,gBAAgB;IAC/B,2FAA2F;IAC3F,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,wFAAwF;IACxF,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B;AAED;;;GAGG;AACH,MAAM,WAAW,aAAa;IAC5B,oEAAoE;IACpE,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,4DAA4D;IAC5D,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B;;;;;OAKG;IACH,iBAAiB,CAAC,EAAE,aAAa,CAAC;IAClC,oEAAoE;IACpE,UAAU,CAAC,EAAE,gBAAgB,CAAC;CAC/B;AAED,sDAAsD;AACtD,MAAM,WAAW,iBAAiB;IAChC,8FAA8F;IAC9F,wBAAwB,CAAC,EAAE,MAAM,CAAC;IAClC,4EAA4E;IAC5E,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,+GAA+G;IAC/G,gCAAgC,CAAC,EAAE,MAAM,CAAC;CAC3C;AAED,kFAAkF;AAClF,MAAM,WAAW,aAAa;IAC5B,6DAA6D;IAC7D,MAAM,CAAC,EAAE,aAAa,CAAC;IACvB,qDAAqD;IACrD,UAAU,CAAC,EAAE,iBAAiB,CAAC;CAChC"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@epam/ai-dial-catalog",
|
|
3
3
|
"description": "Marketplace catalog component for browsing models, tools, and assistants with search, filter, and sort",
|
|
4
|
-
"version": "1.3.0-dev.
|
|
4
|
+
"version": "1.3.0-dev.89",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"sideEffects": [
|
|
@@ -28,12 +28,12 @@
|
|
|
28
28
|
"dependencies": {
|
|
29
29
|
"@tabler/icons-react": "^3.44.0",
|
|
30
30
|
"ag-grid-community": "^35.3.0",
|
|
31
|
-
"@epam/ai-dial-publish-panel": "1.3.0-dev.
|
|
31
|
+
"@epam/ai-dial-publish-panel": "1.3.0-dev.89"
|
|
32
32
|
},
|
|
33
33
|
"peerDependencies": {
|
|
34
34
|
"react": "^19.2.8",
|
|
35
|
-
"@epam/ai-dial-chat-shared": "1.3.0-dev.
|
|
36
|
-
"@epam/ai-dial-ui-kit": "^0.16.0-dev.
|
|
35
|
+
"@epam/ai-dial-chat-shared": "1.3.0-dev.89",
|
|
36
|
+
"@epam/ai-dial-ui-kit": "^0.16.0-dev.13"
|
|
37
37
|
},
|
|
38
38
|
"repository": {
|
|
39
39
|
"type": "git",
|
package/utils/create-menu.d.ts
CHANGED
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
import { DropdownItem } from '@epam/ai-dial-ui-kit';
|
|
2
2
|
import { MouseEvent } from 'react';
|
|
3
3
|
import { CatalogCreateSearch, CatalogTabCreateMenu } from '../models/catalog-props';
|
|
4
|
-
/**
|
|
4
|
+
/**
|
|
5
|
+
* Returns `items` with every option's string label, nested ones included,
|
|
6
|
+
* rendered through a single-line `Highlight` for `query`. Divider and
|
|
7
|
+
* plain-text rows (such as a section header) are returned unchanged.
|
|
8
|
+
*/
|
|
5
9
|
export declare const highlightDropdownLabels: (items: DropdownItem[], query: string) => DropdownItem[];
|
|
6
10
|
/** Create-button wiring derived from one tab's Create menu. */
|
|
7
11
|
export interface TabCreateButtonConfig {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-menu.d.ts","sourceRoot":"","sources":["../../src/utils/create-menu.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"create-menu.d.ts","sourceRoot":"","sources":["../../src/utils/create-menu.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,YAAY,EAGb,MAAM,sBAAsB,CAAC;AAC9B,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,KAAK,EACV,mBAAmB,EACnB,oBAAoB,EACrB,MAAM,yBAAyB,CAAC;AAOjC;;;;GAIG;AACH,eAAO,MAAM,uBAAuB,GAClC,OAAO,YAAY,EAAE,EACrB,OAAO,MAAM,KACZ,YAAY,EAeX,CAAC;AAEL,+DAA+D;AAC/D,MAAM,WAAW,qBAAqB;IACpC,sFAAsF;IACtF,OAAO,CAAC,EAAE,YAAY,EAAE,CAAC;IACzB,gFAAgF;IAChF,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,UAAU,CAAC,iBAAiB,CAAC,KAAK,IAAI,CAAC;IACzD,yDAAyD;IACzD,MAAM,CAAC,EAAE,mBAAmB,CAAC;CAC9B;AAED,iHAAiH;AACjH,eAAO,MAAM,wBAAwB,GACnC,MAAM,oBAAoB,GAAG,SAAS,KACrC,qBAAqB,GAAG,SAkB1B,CAAC"}
|