@epam/ai-dial-usage-dashboard 1.4.0-dev.12 → 1.4.0-dev.122

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.
@@ -0,0 +1,66 @@
1
+ import { UsageLimitCardData, UsageLimitCardGroupLabels, UsageLimitCardGroupStyles } from './usage-limit-card-props';
2
+ /** One spending budget, already normalized and formatted by the host. */
3
+ export interface SpendingBudgetData {
4
+ /** Stable key of the budget, unique within the list. */
5
+ id: string;
6
+ /** Visible budget name, also the accessible name of its group. */
7
+ title: string;
8
+ /** Preformatted line naming the models the budget covers; omitted when the host has none. */
9
+ coverageLabel?: string;
10
+ /** The budget's period cards, in display order. */
11
+ cards: UsageLimitCardData[];
12
+ }
13
+ /** Localized strings for `SpendingBudgetsSection`. */
14
+ export interface SpendingBudgetsSectionLabels {
15
+ /** Section heading, also the section's accessible name. */
16
+ headingLabel: string;
17
+ /** Text below the heading; omitted when not set. */
18
+ descriptionLabel?: string;
19
+ /** Informational notice above the budgets; omitted when not set. */
20
+ noticeLabel?: string;
21
+ /** Text shown in place of the budgets when the list is empty; the section renders nothing when the list is empty and this is not set. */
22
+ emptyStateLabel?: string;
23
+ }
24
+ /** Color overrides for `SpendingBudgetsSection`, applied as CSS custom properties. */
25
+ export interface SpendingBudgetsSectionColors {
26
+ /** Section heading color. Fallback: `--text-primary`. */
27
+ headingColor?: string;
28
+ /** Description and empty-state text color. Fallback: `--text-secondary`. */
29
+ descriptionColor?: string;
30
+ /** Budget title color. Fallback: `--text-primary`. */
31
+ titleColor?: string;
32
+ /** Coverage line color. Fallback: `--text-secondary`. */
33
+ coverageColor?: string;
34
+ }
35
+ /** Typography class overrides for `SpendingBudgetsSection`. */
36
+ export interface SpendingBudgetsSectionTypography {
37
+ /** CSS class for the section heading. Defaults to `'dial-h3-text'`. */
38
+ headingClassName?: string;
39
+ /** CSS class for the description and empty-state text. Defaults to `'dial-small-text'`. */
40
+ descriptionClassName?: string;
41
+ /** CSS class for each budget title. Defaults to `'dial-body-semi-text'`. */
42
+ titleClassName?: string;
43
+ /** CSS class for each coverage line. Defaults to `'dial-small-text'`. */
44
+ coverageClassName?: string;
45
+ }
46
+ /** Style overrides accepted by `SpendingBudgetsSection`. */
47
+ export interface SpendingBudgetsSectionStyles {
48
+ /** The section's own color overrides. */
49
+ colors?: SpendingBudgetsSectionColors;
50
+ /** The section's own typography overrides. */
51
+ typography?: SpendingBudgetsSectionTypography;
52
+ /** Styles forwarded to every `UsageLimitCard` in the section. */
53
+ cards?: UsageLimitCardGroupStyles;
54
+ }
55
+ /** Props for `SpendingBudgetsSection`. */
56
+ export interface SpendingBudgetsSectionProps {
57
+ /** Budgets to render, in display order. */
58
+ budgets: SpendingBudgetData[];
59
+ /** Localized section strings. */
60
+ labels: SpendingBudgetsSectionLabels;
61
+ /** Localized strings shared by every card. */
62
+ cardLabels: UsageLimitCardGroupLabels;
63
+ /** Style overrides. */
64
+ styles?: SpendingBudgetsSectionStyles;
65
+ }
66
+ //# sourceMappingURL=spending-budgets-props.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"spending-budgets-props.d.ts","sourceRoot":"","sources":["../../src/models/spending-budgets-props.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,kBAAkB,EAClB,yBAAyB,EACzB,yBAAyB,EAC1B,MAAM,0BAA0B,CAAC;AAElC,yEAAyE;AACzE,MAAM,WAAW,kBAAkB;IACjC,wDAAwD;IACxD,EAAE,EAAE,MAAM,CAAC;IACX,kEAAkE;IAClE,KAAK,EAAE,MAAM,CAAC;IACd,6FAA6F;IAC7F,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,mDAAmD;IACnD,KAAK,EAAE,kBAAkB,EAAE,CAAC;CAC7B;AAED,sDAAsD;AACtD,MAAM,WAAW,4BAA4B;IAC3C,2DAA2D;IAC3D,YAAY,EAAE,MAAM,CAAC;IACrB,oDAAoD;IACpD,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,oEAAoE;IACpE,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,yIAAyI;IACzI,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B;AAED,sFAAsF;AACtF,MAAM,WAAW,4BAA4B;IAC3C,yDAAyD;IACzD,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,4EAA4E;IAC5E,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,sDAAsD;IACtD,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,yDAAyD;IACzD,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAED,+DAA+D;AAC/D,MAAM,WAAW,gCAAgC;IAC/C,uEAAuE;IACvE,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,2FAA2F;IAC3F,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,4EAA4E;IAC5E,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,yEAAyE;IACzE,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B;AAED,4DAA4D;AAC5D,MAAM,WAAW,4BAA4B;IAC3C,yCAAyC;IACzC,MAAM,CAAC,EAAE,4BAA4B,CAAC;IACtC,8CAA8C;IAC9C,UAAU,CAAC,EAAE,gCAAgC,CAAC;IAC9C,iEAAiE;IACjE,KAAK,CAAC,EAAE,yBAAyB,CAAC;CACnC;AAED,0CAA0C;AAC1C,MAAM,WAAW,2BAA2B;IAC1C,2CAA2C;IAC3C,OAAO,EAAE,kBAAkB,EAAE,CAAC;IAC9B,iCAAiC;IACjC,MAAM,EAAE,4BAA4B,CAAC;IACrC,8CAA8C;IAC9C,UAAU,EAAE,yBAAyB,CAAC;IACtC,uBAAuB;IACvB,MAAM,CAAC,EAAE,4BAA4B,CAAC;CACvC"}
package/package.json CHANGED
@@ -1,8 +1,12 @@
1
1
  {
2
2
  "name": "@epam/ai-dial-usage-dashboard",
3
- "description": "Presentational aggregate cost-limit cards for the Usage settings dashboard",
4
- "version": "1.4.0-dev.12",
3
+ "description": "Presentational aggregate cost-limit cards, spending budgets and model limits for the Usage settings dashboard",
4
+ "version": "1.4.0-dev.122",
5
5
  "license": "Apache-2.0",
6
+ "sideEffects": [
7
+ "**/*.css",
8
+ "**/*.scss"
9
+ ],
6
10
  "type": "module",
7
11
  "main": "./index.js",
8
12
  "module": "./index.js",
@@ -20,7 +24,7 @@
20
24
  "@tabler/icons-react": "^3.50.0"
21
25
  },
22
26
  "peerDependencies": {
23
- "@epam/ai-dial-chat-shared": "1.4.0-dev.12",
27
+ "@epam/ai-dial-chat-shared": "1.4.0-dev.122",
24
28
  "@epam/ai-dial-ui-kit": "^0.16.0",
25
29
  "react": "^19.2.8"
26
30
  },