@mcp-b/web-components 0.2.0 → 0.2.3
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/components/index.d.ts +1 -1
- package/dist/components/index.js +2 -2
- package/dist/components/metric/metric.js +1 -1
- package/dist/components/metric-grid/metric-grid.d.ts +1 -1
- package/dist/components/metric-grid/metric-grid.js +1 -1
- package/dist/docs/custom-elements.json +2 -2
- package/dist/index.d.ts +1 -1
- package/dist/index.js +2 -2
- package/dist/{metric-grid-C2Pb0Zl3.js → metric-grid-YWGxI1F5.js} +2 -2
- package/dist/{metric-grid-C5Xbb1_0.d.ts → metric-grid-Zb941OFI.d.ts} +1 -1
- package/dist/{metric-DbuOcDp_.js → metric-xGnpnmNP.js} +2 -1
- package/dist/types/custom-element-jsx.d.ts +3 -3
- package/package.json +2 -2
|
@@ -45,7 +45,7 @@ import { t as SigveloListbox } from "../listbox-DD4ujIJe.js";
|
|
|
45
45
|
import { t as SigveloLoremIpsum } from "../lorem-ipsum-CR82CSuJ.js";
|
|
46
46
|
import { t as SigveloMeter } from "../meter-BC7uaJWf.js";
|
|
47
47
|
import { n as SigveloMetric, t as MetricFormat } from "../metric-CjlLq_VA.js";
|
|
48
|
-
import { t as SigveloMetricGrid } from "../metric-grid-
|
|
48
|
+
import { t as SigveloMetricGrid } from "../metric-grid-Zb941OFI.js";
|
|
49
49
|
import { t as SigveloMutationObserver } from "../mutation-observer-BmrZ-GER.js";
|
|
50
50
|
import { t as SigveloNavicon } from "../navicon-Dic5Qjzb.js";
|
|
51
51
|
import { t as SigveloNumber } from "../number-BwbnErlB.js";
|
package/dist/components/index.js
CHANGED
|
@@ -45,8 +45,8 @@ import { t as SigveloListboxItem } from "../listbox-item-CwD9s3VY.js";
|
|
|
45
45
|
import { t as SigveloListbox } from "../listbox-C3XXRWGX.js";
|
|
46
46
|
import { t as SigveloLoremIpsum } from "../lorem-ipsum-B2x3V-v8.js";
|
|
47
47
|
import { t as SigveloMeter } from "../meter-BIDyjwFp.js";
|
|
48
|
-
import { t as SigveloMetric } from "../metric-
|
|
49
|
-
import { t as SigveloMetricGrid } from "../metric-grid-
|
|
48
|
+
import { t as SigveloMetric } from "../metric-xGnpnmNP.js";
|
|
49
|
+
import { t as SigveloMetricGrid } from "../metric-grid-YWGxI1F5.js";
|
|
50
50
|
import { t as SigveloMutationObserver } from "../mutation-observer-DS8EBuOp.js";
|
|
51
51
|
import { t as SigveloNavicon } from "../navicon-_yMHY27-.js";
|
|
52
52
|
import { t as SigveloNumber } from "../number-BNtNXNF3.js";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as SigveloMetric } from "../../metric-
|
|
1
|
+
import { t as SigveloMetric } from "../../metric-xGnpnmNP.js";
|
|
2
2
|
export { SigveloMetric };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as SigveloMetricGrid } from "../../metric-grid-
|
|
1
|
+
import { t as SigveloMetricGrid } from "../../metric-grid-Zb941OFI.js";
|
|
2
2
|
export { SigveloMetricGrid };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as SigveloMetricGrid } from "../../metric-grid-
|
|
1
|
+
import { t as SigveloMetricGrid } from "../../metric-grid-YWGxI1F5.js";
|
|
2
2
|
export { SigveloMetricGrid };
|
|
@@ -14592,7 +14592,7 @@
|
|
|
14592
14592
|
"name": "SigveloMetricGrid",
|
|
14593
14593
|
"cssProperties": [
|
|
14594
14594
|
{
|
|
14595
|
-
"description": "Minimum width of each grid item.",
|
|
14595
|
+
"description": "Minimum width of each grid item, clamped to the container width.",
|
|
14596
14596
|
"name": "--metric-min-width",
|
|
14597
14597
|
"default": "9rem"
|
|
14598
14598
|
}
|
|
@@ -29295,7 +29295,7 @@
|
|
|
29295
29295
|
"package": {
|
|
29296
29296
|
"name": "@mcp-b/web-components",
|
|
29297
29297
|
"description": "Sigvelo SaaS web components built with Lit.",
|
|
29298
|
-
"version": "0.2.
|
|
29298
|
+
"version": "0.2.3",
|
|
29299
29299
|
"license": "MIT"
|
|
29300
29300
|
}
|
|
29301
29301
|
}
|
package/dist/index.d.ts
CHANGED
|
@@ -45,7 +45,7 @@ import { t as SigveloListbox } from "./listbox-DD4ujIJe.js";
|
|
|
45
45
|
import { t as SigveloLoremIpsum } from "./lorem-ipsum-CR82CSuJ.js";
|
|
46
46
|
import { t as SigveloMeter } from "./meter-BC7uaJWf.js";
|
|
47
47
|
import { n as SigveloMetric, t as MetricFormat } from "./metric-CjlLq_VA.js";
|
|
48
|
-
import { t as SigveloMetricGrid } from "./metric-grid-
|
|
48
|
+
import { t as SigveloMetricGrid } from "./metric-grid-Zb941OFI.js";
|
|
49
49
|
import { t as SigveloMutationObserver } from "./mutation-observer-BmrZ-GER.js";
|
|
50
50
|
import { t as SigveloNavicon } from "./navicon-Dic5Qjzb.js";
|
|
51
51
|
import { t as SigveloNumber } from "./number-BwbnErlB.js";
|
package/dist/index.js
CHANGED
|
@@ -47,8 +47,8 @@ import { t as SigveloListboxItem } from "./listbox-item-CwD9s3VY.js";
|
|
|
47
47
|
import { t as SigveloListbox } from "./listbox-C3XXRWGX.js";
|
|
48
48
|
import { t as SigveloLoremIpsum } from "./lorem-ipsum-B2x3V-v8.js";
|
|
49
49
|
import { t as SigveloMeter } from "./meter-BIDyjwFp.js";
|
|
50
|
-
import { t as SigveloMetric } from "./metric-
|
|
51
|
-
import { t as SigveloMetricGrid } from "./metric-grid-
|
|
50
|
+
import { t as SigveloMetric } from "./metric-xGnpnmNP.js";
|
|
51
|
+
import { t as SigveloMetricGrid } from "./metric-grid-YWGxI1F5.js";
|
|
52
52
|
import { t as SigveloMutationObserver } from "./mutation-observer-DS8EBuOp.js";
|
|
53
53
|
import { t as SigveloNavicon } from "./navicon-_yMHY27-.js";
|
|
54
54
|
import { t as SigveloNumber } from "./number-BNtNXNF3.js";
|
|
@@ -5,7 +5,7 @@ import { SigveloElement } from "@mcp-b/wc-support/base/sigvelo-element";
|
|
|
5
5
|
var metric_grid_styles_default = css`
|
|
6
6
|
:host {
|
|
7
7
|
display: grid;
|
|
8
|
-
grid-template-columns: repeat(auto-fit, minmax(var(--metric-min-width, 9rem), 1fr));
|
|
8
|
+
grid-template-columns: repeat(auto-fit, minmax(min(var(--metric-min-width, 9rem), 100%), 1fr));
|
|
9
9
|
gap: var(--sigvelo-spacing-3);
|
|
10
10
|
min-inline-size: 0;
|
|
11
11
|
}
|
|
@@ -22,7 +22,7 @@ var metric_grid_styles_default = css`
|
|
|
22
22
|
* @since 1.0
|
|
23
23
|
*
|
|
24
24
|
* @slot - One or more `sigvelo-metric` elements.
|
|
25
|
-
* @cssproperty [--metric-min-width=9rem] - Minimum width of each grid item.
|
|
25
|
+
* @cssproperty [--metric-min-width=9rem] - Minimum width of each grid item, clamped to the container width.
|
|
26
26
|
*/
|
|
27
27
|
var SigveloMetricGrid = class extends SigveloElement {
|
|
28
28
|
static {
|
|
@@ -12,7 +12,7 @@ import { SigveloElement } from "@mcp-b/wc-support/base/sigvelo-element";
|
|
|
12
12
|
* @since 1.0
|
|
13
13
|
*
|
|
14
14
|
* @slot - One or more `sigvelo-metric` elements.
|
|
15
|
-
* @cssproperty [--metric-min-width=9rem] - Minimum width of each grid item.
|
|
15
|
+
* @cssproperty [--metric-min-width=9rem] - Minimum width of each grid item, clamped to the container width.
|
|
16
16
|
*/
|
|
17
17
|
declare class SigveloMetricGrid extends SigveloElement {
|
|
18
18
|
static styles: CSSResultGroup;
|
|
@@ -7,7 +7,7 @@ import { SigveloElement } from "@mcp-b/wc-support/base/sigvelo-element";
|
|
|
7
7
|
var metric_styles_default = css`
|
|
8
8
|
:host {
|
|
9
9
|
display: block;
|
|
10
|
-
min-inline-size: 9rem;
|
|
10
|
+
min-inline-size: min(9rem, 100%);
|
|
11
11
|
padding: var(--sigvelo-spacing-4);
|
|
12
12
|
border: var(--sigvelo-border-style) var(--sigvelo-border-width)
|
|
13
13
|
var(--sigvelo-color-neutral-border-subtle);
|
|
@@ -26,6 +26,7 @@ var metric_styles_default = css`
|
|
|
26
26
|
font-size: 1.75rem;
|
|
27
27
|
font-weight: var(--sigvelo-font-weight-semibold);
|
|
28
28
|
line-height: 1.15;
|
|
29
|
+
overflow-wrap: anywhere;
|
|
29
30
|
}
|
|
30
31
|
`;
|
|
31
32
|
//#endregion
|
|
@@ -7475,7 +7475,7 @@ export type CustomElements = {
|
|
|
7475
7475
|
*
|
|
7476
7476
|
* CSS variables available for styling the component.
|
|
7477
7477
|
*
|
|
7478
|
-
* - `--metric-min-width`: Minimum width of each grid item. (default: `9rem`)
|
|
7478
|
+
* - `--metric-min-width`: Minimum width of each grid item, clamped to the container width. (default: `9rem`)
|
|
7479
7479
|
*/
|
|
7480
7480
|
"sigvelo-metric-grid": Partial<
|
|
7481
7481
|
SigveloMetricGridProps & BaseProps<SigveloMetricGrid> & BaseEvents
|
|
@@ -11661,7 +11661,7 @@ export type CustomElementsSolidJs = {
|
|
|
11661
11661
|
*
|
|
11662
11662
|
* CSS variables available for styling the component.
|
|
11663
11663
|
*
|
|
11664
|
-
* - `--metric-min-width`: Minimum width of each grid item. (default: `9rem`)
|
|
11664
|
+
* - `--metric-min-width`: Minimum width of each grid item, clamped to the container width. (default: `9rem`)
|
|
11665
11665
|
*/
|
|
11666
11666
|
"sigvelo-metric-grid": Partial<
|
|
11667
11667
|
SigveloMetricGridProps &
|
|
@@ -13608,7 +13608,7 @@ export type CustomCssProperties = {
|
|
|
13608
13608
|
"--illustration-width"?: string;
|
|
13609
13609
|
/** The visible height of the expander's content when collapsed. */
|
|
13610
13610
|
"--preview-height"?: string;
|
|
13611
|
-
/** Minimum width of each grid item. */
|
|
13611
|
+
/** Minimum width of each grid item, clamped to the container width. */
|
|
13612
13612
|
"--metric-min-width"?: string;
|
|
13613
13613
|
/** The width of each line. Available when symbol is `hamburger` or `equals`. */
|
|
13614
13614
|
"--line-width"?: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mcp-b/web-components",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.3",
|
|
4
4
|
"description": "Sigvelo SaaS web components built with Lit.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"custom-elements",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"@floating-ui/dom": "^1.7.6",
|
|
39
39
|
"lit": "^3.3.2",
|
|
40
40
|
"lit-html": "^3.3.2",
|
|
41
|
-
"@mcp-b/wc-support": "0.2.
|
|
41
|
+
"@mcp-b/wc-support": "0.2.1"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
44
|
"@axe-core/playwright": "^4.11.1",
|