@epam/ai-dial-usage-dashboard 1.3.0-dev.33 → 1.3.0-dev.331
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/ModelLimitsSection/ItemCell.d.ts +11 -0
- package/components/ModelLimitsSection/ItemCell.d.ts.map +1 -0
- package/components/ModelLimitsSection/ModelLimitsSection.d.ts.map +1 -1
- package/components/ModelLimitsSection/PeriodCell.d.ts +1 -3
- package/components/ModelLimitsSection/PeriodCell.d.ts.map +1 -1
- package/components/ModelLimitsSection/PeriodHeader.d.ts +11 -0
- package/components/ModelLimitsSection/PeriodHeader.d.ts.map +1 -0
- package/components/ModelLimitsSection/PeriodResetInfo.d.ts +9 -0
- package/components/ModelLimitsSection/PeriodResetInfo.d.ts.map +1 -0
- package/components/ModelLimitsSection/StatusCell.d.ts +11 -0
- package/components/ModelLimitsSection/StatusCell.d.ts.map +1 -0
- package/index.css +3 -2
- package/index.js +43042 -405
- package/models/model-limits-props.d.ts +6 -12
- package/models/model-limits-props.d.ts.map +1 -1
- package/package.json +4 -4
- package/utils/model-limits.d.ts +6 -0
- package/utils/model-limits.d.ts.map +1 -0
- package/components/ModelLimitsSection/ModelLimitsRow.d.ts +0 -20
- package/components/ModelLimitsSection/ModelLimitsRow.d.ts.map +0 -1
|
@@ -43,11 +43,11 @@ export interface ModelLimitPeriodStatus {
|
|
|
43
43
|
status: ModelLimitStatus;
|
|
44
44
|
/** Complete tooltip/accessibility text for warning and error indicators. */
|
|
45
45
|
tooltipLabel?: string;
|
|
46
|
-
/**
|
|
46
|
+
/** Reset time shown in the header info icon's tooltip, e.g. `'Resets Sep 16, 2026, 2:00 AM GMT+2'`. */
|
|
47
47
|
resetLabel?: string;
|
|
48
|
-
/** Machine-readable instant for the
|
|
48
|
+
/** Machine-readable instant for the tooltip's `<time dateTime>` attribute, e.g. `'2026-09-16T00:00:00Z'`. */
|
|
49
49
|
resetIsoValue?: string;
|
|
50
|
-
/** Accessible
|
|
50
|
+
/** Accessible name of the header info icon; falls back to `resetLabel`. */
|
|
51
51
|
resetAriaLabel?: string;
|
|
52
52
|
}
|
|
53
53
|
/** Overall Cost statuses aligned with the three fixed calendar-period columns. */
|
|
@@ -124,18 +124,12 @@ export interface ModelLimitsLabels {
|
|
|
124
124
|
/** Message shown in place of the table when `rows` is empty, e.g. `'No models to show yet.'`. */
|
|
125
125
|
emptyStateLabel: string;
|
|
126
126
|
}
|
|
127
|
-
/** Color overrides for `ModelLimitsSection
|
|
127
|
+
/** Color overrides for `ModelLimitsSection` content, applied as CSS custom properties; the table chrome is the ui-kit `Grid` theme. */
|
|
128
128
|
export interface ModelLimitsColors {
|
|
129
|
-
/** Section container background. Fallback: `--bg-layer-raised`. */
|
|
130
|
-
containerBackground?: string;
|
|
131
129
|
/** Heading text color. Fallback: `--text-primary`. */
|
|
132
130
|
headingColor?: string;
|
|
133
131
|
/** Heading count color. Fallback: `--text-tertiary`. */
|
|
134
132
|
headingCountColor?: string;
|
|
135
|
-
/** Column header text color. Fallback: `--text-secondary`. */
|
|
136
|
-
columnHeaderColor?: string;
|
|
137
|
-
/** Row divider color. Fallback: `--stroke-secondary`. */
|
|
138
|
-
rowDividerColor?: string;
|
|
139
133
|
/** Model name text color. Fallback: `--text-primary`. */
|
|
140
134
|
nameColor?: string;
|
|
141
135
|
/** Model entity-type text color. Fallback: `--text-accent`. */
|
|
@@ -181,14 +175,14 @@ export interface ModelLimitsTypography {
|
|
|
181
175
|
headingCountClassName?: string;
|
|
182
176
|
/** CSS class for column headers. Defaults to `'dial-caption-lead-semi-text'`. */
|
|
183
177
|
columnHeaderClassName?: string;
|
|
184
|
-
/** CSS class for a period header's reset-time line. Defaults to `'dial-tiny-text'`. */
|
|
185
|
-
resetLabelClassName?: string;
|
|
186
178
|
/** CSS class for the model name. Defaults to `'dial-small-semi-text'`. */
|
|
187
179
|
nameClassName?: string;
|
|
188
180
|
/** CSS class for the model entity type. Defaults to `'dial-caption-lead-semi-text'`. */
|
|
189
181
|
modelTypeClassName?: string;
|
|
190
182
|
/** CSS class for the model version. Defaults to `'dial-small-text'`. */
|
|
191
183
|
versionClassName?: string;
|
|
184
|
+
/** CSS class for the initials in a model avatar without an icon. Defaults to `'dial-h2-text'`. */
|
|
185
|
+
avatarInitialsClassName?: string;
|
|
192
186
|
/** CSS class for a metric's prominent used value. Defaults to `'dial-small-text'`. */
|
|
193
187
|
valueClassName?: string;
|
|
194
188
|
/** CSS class for a metric's secondary caption (total / "No limit" / "Not available"). Defaults to `'dial-tiny-text'`. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"model-limits-props.d.ts","sourceRoot":"","sources":["../../src/models/model-limits-props.ts"],"names":[],"mappings":"AAAA,yGAAyG;AACzG,oBAAY,gBAAgB;IAC1B,4GAA4G;IAC5G,YAAY,kBAAkB;IAC9B,qHAAqH;IACrH,UAAU,gBAAgB;IAC1B,6EAA6E;IAC7E,YAAY,kBAAkB;IAC9B,kGAAkG;IAClG,OAAO,aAAa;IACpB,+GAA+G;IAC/G,WAAW,gBAAgB;CAC5B;AAED,6EAA6E;AAC7E,oBAAY,oBAAoB;IAC9B,0EAA0E;IAC1E,MAAM,WAAW;IACjB,qHAAqH;IACrH,SAAS,cAAc;IACvB,mGAAmG;IACnG,WAAW,gBAAgB;CAC5B;AAED,iFAAiF;AACjF,MAAM,WAAW,oBAAoB;IACnC,0DAA0D;IAC1D,IAAI,EAAE,oBAAoB,CAAC;IAC3B,gGAAgG;IAChG,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,6EAA6E;IAC7E,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,gLAAgL;IAChL,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,kGAAkG;IAClG,MAAM,CAAC,EAAE,gBAAgB,CAAC;IAC1B,2GAA2G;IAC3G,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,mJAAmJ;IACnJ,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,mHAAmH;AACnH,MAAM,WAAW,sBAAsB;IACrC,8DAA8D;IAC9D,MAAM,EAAE,gBAAgB,CAAC;IACzB,4EAA4E;IAC5E,YAAY,CAAC,EAAE,MAAM,CAAC;IAStB,
|
|
1
|
+
{"version":3,"file":"model-limits-props.d.ts","sourceRoot":"","sources":["../../src/models/model-limits-props.ts"],"names":[],"mappings":"AAAA,yGAAyG;AACzG,oBAAY,gBAAgB;IAC1B,4GAA4G;IAC5G,YAAY,kBAAkB;IAC9B,qHAAqH;IACrH,UAAU,gBAAgB;IAC1B,6EAA6E;IAC7E,YAAY,kBAAkB;IAC9B,kGAAkG;IAClG,OAAO,aAAa;IACpB,+GAA+G;IAC/G,WAAW,gBAAgB;CAC5B;AAED,6EAA6E;AAC7E,oBAAY,oBAAoB;IAC9B,0EAA0E;IAC1E,MAAM,WAAW;IACjB,qHAAqH;IACrH,SAAS,cAAc;IACvB,mGAAmG;IACnG,WAAW,gBAAgB;CAC5B;AAED,iFAAiF;AACjF,MAAM,WAAW,oBAAoB;IACnC,0DAA0D;IAC1D,IAAI,EAAE,oBAAoB,CAAC;IAC3B,gGAAgG;IAChG,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,6EAA6E;IAC7E,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,gLAAgL;IAChL,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,kGAAkG;IAClG,MAAM,CAAC,EAAE,gBAAgB,CAAC;IAC1B,2GAA2G;IAC3G,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,mJAAmJ;IACnJ,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,mHAAmH;AACnH,MAAM,WAAW,sBAAsB;IACrC,8DAA8D;IAC9D,MAAM,EAAE,gBAAgB,CAAC;IACzB,4EAA4E;IAC5E,YAAY,CAAC,EAAE,MAAM,CAAC;IAStB,uGAAuG;IACvG,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,6GAA6G;IAC7G,aAAa,CAAC,EAAE,MAAM,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;IAC1B,sFAAsF;IACtF,cAAc,EAAE,wBAAwB,CAAC;IACzC,uFAAuF;IACvF,MAAM,CAAC,EAAE,iBAAiB,CAAC;CAC5B"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@epam/ai-dial-usage-dashboard",
|
|
3
3
|
"description": "Presentational aggregate cost-limit cards for the Usage settings dashboard",
|
|
4
|
-
"version": "1.3.0-dev.
|
|
4
|
+
"version": "1.3.0-dev.331",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"main": "./index.js",
|
|
@@ -17,11 +17,11 @@
|
|
|
17
17
|
}
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@tabler/icons-react": "^3.
|
|
20
|
+
"@tabler/icons-react": "^3.50.0"
|
|
21
21
|
},
|
|
22
22
|
"peerDependencies": {
|
|
23
|
-
"@epam/ai-dial-chat-shared": "1.3.0-dev.
|
|
24
|
-
"@epam/ai-dial-ui-kit": "^0.
|
|
23
|
+
"@epam/ai-dial-chat-shared": "1.3.0-dev.331",
|
|
24
|
+
"@epam/ai-dial-ui-kit": "^0.16.0-dev.72",
|
|
25
25
|
"react": "^19.2.8"
|
|
26
26
|
},
|
|
27
27
|
"repository": {
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { ModelLimitsLabels, ModelLimitStatus } from '../models/model-limits-props';
|
|
2
|
+
/** Returns the badge class from `classes` for a status that renders a badge, or `undefined` for `NoLimit`/`Unavailable`. */
|
|
3
|
+
export declare const getBadgeClassName: (status: ModelLimitStatus, classes: Readonly<Record<string, string>>) => string | undefined;
|
|
4
|
+
/** Returns the host-supplied Status text for `status`. */
|
|
5
|
+
export declare const getBadgeLabel: (status: ModelLimitStatus, labels: ModelLimitsLabels) => string;
|
|
6
|
+
//# sourceMappingURL=model-limits.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"model-limits.d.ts","sourceRoot":"","sources":["../../src/utils/model-limits.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,iBAAiB,EACjB,gBAAgB,EACjB,MAAM,8BAA8B,CAAC;AAEtC,4HAA4H;AAC5H,eAAO,MAAM,iBAAiB,GAC5B,QAAQ,gBAAgB,EACxB,SAAS,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,KACxC,MAAM,GAAG,SAYX,CAAC;AAEF,0DAA0D;AAC1D,eAAO,MAAM,aAAa,GACxB,QAAQ,gBAAgB,EACxB,QAAQ,iBAAiB,KACxB,MAaF,CAAC"}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { FC } from 'react';
|
|
2
|
-
import { ModelLimitRow as ModelLimitRowData, ModelLimitPeriodStatuses, ModelLimitsLabels, ModelLimitsTypography } from '../../models/model-limits-props';
|
|
3
|
-
/** Grid template shared by the header row and every data row so columns stay aligned on desktop. */
|
|
4
|
-
export declare const MODEL_LIMITS_GRID_COLUMNS = "desktop:grid-cols-[minmax(12rem,1.25fr)_repeat(3,minmax(0,1fr))_minmax(8rem,10rem)]";
|
|
5
|
-
/** Props for `ModelLimitsRow`. */
|
|
6
|
-
export interface ModelLimitsRowProps {
|
|
7
|
-
/** The row's normalized data. */
|
|
8
|
-
row: ModelLimitRowData;
|
|
9
|
-
/** Localized strings shared by every row. */
|
|
10
|
-
labels: ModelLimitsLabels;
|
|
11
|
-
/** Host-derived overall Cost statuses for the fixed periods. */
|
|
12
|
-
periodStatuses: ModelLimitPeriodStatuses;
|
|
13
|
-
/** Typography class overrides. */
|
|
14
|
-
typography: ModelLimitsTypography;
|
|
15
|
-
/** Avatar badge dimension in pixels. */
|
|
16
|
-
avatarSize: number;
|
|
17
|
-
}
|
|
18
|
-
/** One data row of `ModelLimitsSection`: identity, three period comparisons, and host-derived Status. */
|
|
19
|
-
export declare const ModelLimitsRow: FC<ModelLimitsRowProps>;
|
|
20
|
-
//# sourceMappingURL=ModelLimitsRow.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ModelLimitsRow.d.ts","sourceRoot":"","sources":["../../../src/components/ModelLimitsSection/ModelLimitsRow.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAC3B,OAAO,EACL,aAAa,IAAI,iBAAiB,EAClC,wBAAwB,EACxB,iBAAiB,EAEjB,qBAAqB,EACtB,MAAM,iCAAiC,CAAC;AAIzC,oGAAoG;AACpG,eAAO,MAAM,yBAAyB,wFACiD,CAAC;AAkCxF,kCAAkC;AAClC,MAAM,WAAW,mBAAmB;IAClC,iCAAiC;IACjC,GAAG,EAAE,iBAAiB,CAAC;IACvB,6CAA6C;IAC7C,MAAM,EAAE,iBAAiB,CAAC;IAC1B,gEAAgE;IAChE,cAAc,EAAE,wBAAwB,CAAC;IACzC,kCAAkC;IAClC,UAAU,EAAE,qBAAqB,CAAC;IAClC,wCAAwC;IACxC,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,yGAAyG;AACzG,eAAO,MAAM,cAAc,EAAE,EAAE,CAAC,mBAAmB,CAuIlD,CAAC"}
|