@panneau/ui 5.0.0-alpha.36 → 5.0.0-alpha.38
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/README.md +8 -2
- package/dist/bar-chart/BarChart.css +76 -0
- package/dist/bar-chart/BarChart.d.ts +33 -0
- package/dist/bar-chart/BarChart.d.ts.map +1 -0
- package/dist/bar-chart/BarChart.js +151 -0
- package/dist/bar-chart/BarChart.js.map +1 -0
- package/dist/bar-chart/BarChart.module.js +26 -0
- package/dist/bar-chart/BarChart.module.js.map +1 -0
- package/dist/bar-chart/tokens.d.ts +3 -0
- package/dist/bar-chart/tokens.d.ts.map +1 -0
- package/dist/bar-chart/tokens.js +17 -0
- package/dist/bar-chart/tokens.js.map +1 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -2
- package/dist/line-chart/LineChart.css +223 -24
- package/dist/line-chart/LineChart.d.ts +45 -10
- package/dist/line-chart/LineChart.d.ts.map +1 -1
- package/dist/line-chart/LineChart.js +580 -265
- package/dist/line-chart/LineChart.js.map +1 -1
- package/dist/line-chart/LineChart.module.js +42 -5
- package/dist/line-chart/LineChart.module.js.map +1 -1
- package/dist/line-chart/geometry.d.ts +37 -0
- package/dist/line-chart/geometry.d.ts.map +1 -0
- package/dist/line-chart/geometry.js +115 -0
- package/dist/line-chart/geometry.js.map +1 -0
- package/dist/line-chart/tokens.d.ts +1 -1
- package/dist/line-chart/tokens.d.ts.map +1 -1
- package/dist/line-chart/tokens.js +11 -7
- package/dist/line-chart/tokens.js.map +1 -1
- package/dist/meter/Meter.css +23 -0
- package/dist/meter/Meter.d.ts +26 -0
- package/dist/meter/Meter.d.ts.map +1 -0
- package/dist/meter/Meter.js +99 -0
- package/dist/meter/Meter.js.map +1 -0
- package/dist/meter/Meter.module.js +16 -0
- package/dist/meter/Meter.module.js.map +1 -0
- package/dist/meter/tokens.d.ts +3 -0
- package/dist/meter/tokens.d.ts.map +1 -0
- package/dist/meter/tokens.js +15 -0
- package/dist/meter/tokens.js.map +1 -0
- package/dist/stat/Stat.css +4 -0
- package/dist/stat/Stat.d.ts +11 -3
- package/dist/stat/Stat.d.ts.map +1 -1
- package/dist/stat/Stat.js +67 -42
- package/dist/stat/Stat.js.map +1 -1
- package/dist/stat/Stat.module.js +3 -1
- package/dist/stat/Stat.module.js.map +1 -1
- package/dist/theme/components.d.ts +3 -1
- package/dist/theme/components.d.ts.map +1 -1
- package/dist/theme/components.js +4 -0
- package/dist/theme/components.js.map +1 -1
- package/package.json +3 -3
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import "./Meter.css";
|
|
2
|
+
//#region src/meter/Meter.module.css
|
|
3
|
+
var meter = "panneau-meter";
|
|
4
|
+
var track = "panneau-meter-track";
|
|
5
|
+
var fill = "panneau-meter-fill";
|
|
6
|
+
var toned = "panneau-meter-toned";
|
|
7
|
+
var Meter_module_default = {
|
|
8
|
+
meter,
|
|
9
|
+
track,
|
|
10
|
+
fill,
|
|
11
|
+
toned
|
|
12
|
+
};
|
|
13
|
+
//#endregion
|
|
14
|
+
export { Meter_module_default as default, fill, meter, toned, track };
|
|
15
|
+
|
|
16
|
+
//# sourceMappingURL=Meter.module.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Meter.module.js","names":[],"sources":["../../src/meter/Meter.module.css"],"sourcesContent":[".meter {\n display: block;\n min-width: 0;\n}\n\n.track {\n position: relative;\n height: var(--panneau-meter-height, 0.375rem);\n overflow: hidden;\n background-color: var(--panneau-meter-track-bg, var(--panneau-color-surface-sunken));\n border-radius: var(--panneau-meter-radius, var(--panneau-radius-full));\n}\n\n/* The fill: the first categorical chart color, or the solid color of a tone past the target. */\n.fill {\n height: 100%;\n background-color: var(--_panneau-meter-color);\n border-radius: inherit;\n}\n\n.toned .fill {\n background-color: var(--panneau-tone-solid);\n}\n"],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tokens.d.ts","sourceRoot":"","sources":["../../src/meter/tokens.ts"],"names":[],"mappings":"AAEA,uBAAuB;AACvB,eAAO,MAAM,WAAW,mHAOtB,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { defineComponentTokens } from "../theme/componentTokens.js";
|
|
2
|
+
//#region src/meter/tokens.ts
|
|
3
|
+
/** Tokens of Meter. */
|
|
4
|
+
var meterTokens = defineComponentTokens("meter", {
|
|
5
|
+
/** Height of the bar. */
|
|
6
|
+
height: "0.375rem",
|
|
7
|
+
/** Corners of the bar and its fill. */
|
|
8
|
+
radius: "var(--panneau-radius-full)",
|
|
9
|
+
/** The track, under the fill. */
|
|
10
|
+
"track-bg": "var(--panneau-color-surface-sunken)"
|
|
11
|
+
});
|
|
12
|
+
//#endregion
|
|
13
|
+
export { meterTokens };
|
|
14
|
+
|
|
15
|
+
//# sourceMappingURL=tokens.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tokens.js","names":["defineComponentTokens","meterTokens","height","radius"],"sources":["../../src/meter/tokens.ts"],"sourcesContent":["import { defineComponentTokens } from '../theme/componentTokens';\n\n/** Tokens of Meter. */\nexport const meterTokens = defineComponentTokens('meter', {\n /** Height of the bar. */\n height: '0.375rem',\n /** Corners of the bar and its fill. */\n radius: 'var(--panneau-radius-full)',\n /** The track, under the fill. */\n 'track-bg': 'var(--panneau-color-surface-sunken)',\n});\n"],"mappings":";;;AAGA,IAAaC,cAAcD,sBAAsB,SAAS;;CAEtDE,QAAQ;;CAERC,QAAQ;;CAER,YAAY;AAChB,CAAC"}
|
package/dist/stat/Stat.css
CHANGED
|
@@ -32,6 +32,10 @@
|
|
|
32
32
|
color: var(--panneau-tone-text);
|
|
33
33
|
}
|
|
34
34
|
|
|
35
|
+
.panneau-stat-meter {
|
|
36
|
+
margin-block: var(--panneau-space-1);
|
|
37
|
+
}
|
|
38
|
+
|
|
35
39
|
.panneau-stat-help {
|
|
36
40
|
font-size: var(--panneau-stat-help-font-size, var(--panneau-font-size-sm));
|
|
37
41
|
color: var(--panneau-color-text-muted);
|
package/dist/stat/Stat.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type
|
|
1
|
+
import { type ReactNode } from 'react';
|
|
2
2
|
import type { FormatNumberOptions } from 'react-intl';
|
|
3
3
|
import type { Tone } from '../theme/tones.js';
|
|
4
4
|
export interface StatProps {
|
|
@@ -20,8 +20,16 @@ export interface StatProps {
|
|
|
20
20
|
tone?: Tone | undefined;
|
|
21
21
|
/** Makes the stat a link: to the list of what it counts. */
|
|
22
22
|
href?: string | undefined;
|
|
23
|
+
/**
|
|
24
|
+
* A target for the number (a budget, a quota), above 0: a meter under the number. Past the
|
|
25
|
+
* target, the meter takes the `tone`, or `danger` without one.
|
|
26
|
+
*/
|
|
27
|
+
target?: number | null | undefined;
|
|
23
28
|
className?: string;
|
|
24
29
|
}
|
|
25
|
-
/**
|
|
26
|
-
|
|
30
|
+
/**
|
|
31
|
+
* A number in large type, with what it counts and a line of help, and a meter of its target when it
|
|
32
|
+
* has one: a stat of a dashboard.
|
|
33
|
+
*/
|
|
34
|
+
export declare function Stat({ label, value, format, help, tone, href, target, className }: StatProps): import("react").JSX.Element;
|
|
27
35
|
//# sourceMappingURL=Stat.d.ts.map
|
package/dist/stat/Stat.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Stat.d.ts","sourceRoot":"","sources":["../../src/stat/Stat.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"Stat.d.ts","sourceRoot":"","sources":["../../src/stat/Stat.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAAS,MAAM,OAAO,CAAC;AAE9C,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AAMtD,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAC;AAI3C,MAAM,WAAW,SAAS;IACtB,8BAA8B;IAC9B,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;IACpC,mFAAmF;IACnF,MAAM,CAAC,EAAE,mBAAmB,CAAC;IAC7B,wDAAwD;IACxD,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB;;;OAGG;IACH,IAAI,CAAC,EAAE,IAAI,GAAG,SAAS,CAAC;IACxB,4DAA4D;IAC5D,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1B;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACnC,SAAS,CAAC,EAAE,MAAM,CAAC;CACtB;AAED;;;GAGG;AACH,wBAAgB,IAAI,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,EAAE,SAAS,+BA8D5F"}
|
package/dist/stat/Stat.js
CHANGED
|
@@ -2,69 +2,94 @@ import { cx } from "../utils/cx.js";
|
|
|
2
2
|
import { usePanneauIntl } from "../intl/usePanneauIntl.js";
|
|
3
3
|
import { toneClass } from "../theme/toneClass.js";
|
|
4
4
|
import { Skeleton } from "../skeleton/Skeleton.js";
|
|
5
|
+
import { Meter as Meter$1 } from "../meter/Meter.js";
|
|
5
6
|
import Stat_module_default from "./Stat.module.js";
|
|
6
7
|
import { c } from "react/compiler-runtime";
|
|
7
8
|
import { Link } from "react-aria-components";
|
|
8
9
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
10
|
+
import { useId } from "react";
|
|
9
11
|
//#region src/stat/Stat.tsx
|
|
10
|
-
/**
|
|
12
|
+
/**
|
|
13
|
+
* A number in large type, with what it counts and a line of help, and a meter of its target when it
|
|
14
|
+
* has one: a stat of a dashboard.
|
|
15
|
+
*/
|
|
11
16
|
function Stat(t0) {
|
|
12
|
-
const $ = c(
|
|
13
|
-
const { label, value, format, help, tone, href, className } = t0;
|
|
17
|
+
const $ = c(27);
|
|
18
|
+
const { label, value, format, help, tone, href, target, className } = t0;
|
|
14
19
|
const intl = usePanneauIntl();
|
|
20
|
+
const labelId = useId();
|
|
15
21
|
const isLoading = value === void 0;
|
|
22
|
+
const hasLabel = label !== void 0 && label !== null;
|
|
16
23
|
let t1;
|
|
17
|
-
if ($[0] !== label) {
|
|
18
|
-
t1 =
|
|
24
|
+
if ($[0] !== hasLabel || $[1] !== label || $[2] !== labelId) {
|
|
25
|
+
t1 = hasLabel ? /* @__PURE__ */ jsx("div", {
|
|
26
|
+
id: labelId,
|
|
19
27
|
className: Stat_module_default.label,
|
|
20
28
|
children: label
|
|
21
29
|
}) : null;
|
|
22
|
-
$[0] =
|
|
23
|
-
$[1] =
|
|
24
|
-
|
|
30
|
+
$[0] = hasLabel;
|
|
31
|
+
$[1] = label;
|
|
32
|
+
$[2] = labelId;
|
|
33
|
+
$[3] = t1;
|
|
34
|
+
} else t1 = $[3];
|
|
25
35
|
let t2;
|
|
26
|
-
if ($[
|
|
36
|
+
if ($[4] !== format || $[5] !== hasLabel || $[6] !== help || $[7] !== intl || $[8] !== isLoading || $[9] !== labelId || $[10] !== target || $[11] !== tone || $[12] !== value) {
|
|
27
37
|
t2 = isLoading ? /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx("span", {
|
|
28
38
|
className: Stat_module_default.value,
|
|
29
39
|
children: /* @__PURE__ */ jsx(Skeleton, { width: "3ch" })
|
|
30
40
|
}), help !== void 0 ? /* @__PURE__ */ jsx("span", {
|
|
31
41
|
className: Stat_module_default.help,
|
|
32
42
|
children: /* @__PURE__ */ jsx(Skeleton, { width: "60%" })
|
|
33
|
-
}) : null] }) : /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
43
|
+
}) : null] }) : /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
44
|
+
/* @__PURE__ */ jsx("div", {
|
|
45
|
+
className: Stat_module_default.value,
|
|
46
|
+
children: typeof value === "number" ? intl.formatNumber(value, format) : value
|
|
47
|
+
}),
|
|
48
|
+
typeof value === "number" && target !== void 0 && target !== null && target > 0 ? /* @__PURE__ */ jsx(Meter$1, {
|
|
49
|
+
value,
|
|
50
|
+
target,
|
|
51
|
+
tone: value > target ? tone ?? "danger" : void 0,
|
|
52
|
+
formatValue: (number) => intl.formatNumber(number, format),
|
|
53
|
+
...hasLabel && { "aria-labelledby": labelId },
|
|
54
|
+
className: Stat_module_default.meter
|
|
55
|
+
}) : null,
|
|
56
|
+
help !== void 0 && help !== null ? /* @__PURE__ */ jsx("div", {
|
|
57
|
+
className: Stat_module_default.help,
|
|
58
|
+
children: help
|
|
59
|
+
}) : null
|
|
60
|
+
] });
|
|
61
|
+
$[4] = format;
|
|
62
|
+
$[5] = hasLabel;
|
|
63
|
+
$[6] = help;
|
|
64
|
+
$[7] = intl;
|
|
65
|
+
$[8] = isLoading;
|
|
66
|
+
$[9] = labelId;
|
|
67
|
+
$[10] = target;
|
|
68
|
+
$[11] = tone;
|
|
69
|
+
$[12] = value;
|
|
70
|
+
$[13] = t2;
|
|
71
|
+
} else t2 = $[13];
|
|
47
72
|
let t3;
|
|
48
|
-
if ($[
|
|
73
|
+
if ($[14] !== t1 || $[15] !== t2) {
|
|
49
74
|
t3 = /* @__PURE__ */ jsxs(Fragment, { children: [t1, t2] });
|
|
50
|
-
$[
|
|
51
|
-
$[
|
|
52
|
-
$[
|
|
53
|
-
} else t3 = $[
|
|
75
|
+
$[14] = t1;
|
|
76
|
+
$[15] = t2;
|
|
77
|
+
$[16] = t3;
|
|
78
|
+
} else t3 = $[16];
|
|
54
79
|
const content = t3;
|
|
55
80
|
const t4 = tone !== void 0 && !isLoading && Stat_module_default.toned;
|
|
56
81
|
let t5;
|
|
57
|
-
if ($[
|
|
82
|
+
if ($[17] !== className || $[18] !== isLoading || $[19] !== t4 || $[20] !== tone) {
|
|
58
83
|
t5 = cx("panneau-stat", Stat_module_default.stat, t4, tone !== void 0 && !isLoading && toneClass(tone), className);
|
|
59
|
-
$[
|
|
60
|
-
$[
|
|
61
|
-
$[
|
|
62
|
-
$[
|
|
63
|
-
$[
|
|
64
|
-
} else t5 = $[
|
|
84
|
+
$[17] = className;
|
|
85
|
+
$[18] = isLoading;
|
|
86
|
+
$[19] = t4;
|
|
87
|
+
$[20] = tone;
|
|
88
|
+
$[21] = t5;
|
|
89
|
+
} else t5 = $[21];
|
|
65
90
|
const classes = t5;
|
|
66
91
|
let t6;
|
|
67
|
-
if ($[
|
|
92
|
+
if ($[22] !== classes || $[23] !== content || $[24] !== href || $[25] !== isLoading) {
|
|
68
93
|
t6 = href !== void 0 && !isLoading ? /* @__PURE__ */ jsx(Link, {
|
|
69
94
|
href,
|
|
70
95
|
className: classes,
|
|
@@ -73,12 +98,12 @@ function Stat(t0) {
|
|
|
73
98
|
className: classes,
|
|
74
99
|
children: content
|
|
75
100
|
});
|
|
76
|
-
$[
|
|
77
|
-
$[
|
|
78
|
-
$[
|
|
79
|
-
$[
|
|
80
|
-
$[
|
|
81
|
-
} else t6 = $[
|
|
101
|
+
$[22] = classes;
|
|
102
|
+
$[23] = content;
|
|
103
|
+
$[24] = href;
|
|
104
|
+
$[25] = isLoading;
|
|
105
|
+
$[26] = t6;
|
|
106
|
+
} else t6 = $[26];
|
|
82
107
|
return t6;
|
|
83
108
|
}
|
|
84
109
|
//#endregion
|
package/dist/stat/Stat.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Stat.js","names":["ReactNode","Link","FormatNumberOptions","usePanneauIntl","Skeleton","toneClass","Tone","cx","styles","StatProps","label","value","format","help","tone","href","className","Stat","t0","$","_c","intl","isLoading","undefined","t1","t2","formatNumber","t3","content","t4","toned","t5","stat","classes","t6","_c","styles","_Fragment"],"sources":["../../src/stat/Stat.tsx"],"sourcesContent":["import type
|
|
1
|
+
{"version":3,"file":"Stat.js","names":["ReactNode","useId","Link","FormatNumberOptions","usePanneauIntl","Meter","Skeleton","toneClass","Tone","cx","styles","StatProps","label","value","format","help","tone","href","target","className","Stat","t0","$","_c","intl","labelId","isLoading","undefined","hasLabel","t1","t2","formatNumber","number","meter","t3","content","t4","toned","t5","stat","classes","t6","_c","styles","_Fragment","Meter"],"sources":["../../src/stat/Stat.tsx"],"sourcesContent":["import { type ReactNode, useId } from 'react';\nimport { Link } from 'react-aria-components';\nimport type { FormatNumberOptions } from 'react-intl';\n\nimport { usePanneauIntl } from '../intl/usePanneauIntl';\nimport { Meter } from '../meter/Meter';\nimport { Skeleton } from '../skeleton/Skeleton';\nimport { toneClass } from '../theme/toneClass';\nimport type { Tone } from '../theme/tones';\nimport { cx } from '../utils/cx';\nimport styles from './Stat.module.css';\n\nexport interface StatProps {\n /** What the number counts. */\n label?: ReactNode;\n /**\n * The number, formatted for the locale, or text already formatted. Left `undefined` while it\n * loads: a skeleton of the number and its help, in a `LoadingRegion` of the caller.\n */\n value?: number | string | undefined;\n /** Options of `Intl.NumberFormat` for a number: a currency, a percent, compact. */\n format?: FormatNumberOptions;\n /** A line under the number: `3 more than last week`. */\n help?: ReactNode;\n /**\n * Colors the number, only when it calls for attention (`warning`, `danger`): the help says why,\n * since color alone says nothing to some users. Neutral by default, and at 0.\n */\n tone?: Tone | undefined;\n /** Makes the stat a link: to the list of what it counts. */\n href?: string | undefined;\n /**\n * A target for the number (a budget, a quota), above 0: a meter under the number. Past the\n * target, the meter takes the `tone`, or `danger` without one.\n */\n target?: number | null | undefined;\n className?: string;\n}\n\n/**\n * A number in large type, with what it counts and a line of help, and a meter of its target when it\n * has one: a stat of a dashboard.\n */\nexport function Stat({ label, value, format, help, tone, href, target, className }: StatProps) {\n const intl = usePanneauIntl();\n const labelId = useId();\n const isLoading = value === undefined;\n const hasLabel = label !== undefined && label !== null;\n const content = (\n <>\n {hasLabel ? (\n <div id={labelId} className={styles.label}>\n {label}\n </div>\n ) : null}\n {isLoading ? (\n <>\n <span className={styles.value}>\n <Skeleton width=\"3ch\" />\n </span>\n {help !== undefined ? (\n <span className={styles.help}>\n <Skeleton width=\"60%\" />\n </span>\n ) : null}\n </>\n ) : (\n <>\n <div className={styles.value}>\n {typeof value === 'number' ? intl.formatNumber(value, format) : value}\n </div>\n {typeof value === 'number' &&\n target !== undefined &&\n target !== null &&\n target > 0 ? (\n <Meter\n value={value}\n target={target}\n tone={value > target ? (tone ?? 'danger') : undefined}\n formatValue={(number) => intl.formatNumber(number, format)}\n {...(hasLabel && { 'aria-labelledby': labelId })}\n className={styles.meter}\n />\n ) : null}\n {help !== undefined && help !== null ? (\n <div className={styles.help}>{help}</div>\n ) : null}\n </>\n )}\n </>\n );\n const classes = cx(\n 'panneau-stat',\n styles.stat,\n tone !== undefined && !isLoading && styles.toned,\n tone !== undefined && !isLoading && toneClass(tone),\n className,\n );\n return href !== undefined && !isLoading ? (\n <Link href={href} className={classes}>\n {content}\n </Link>\n ) : (\n <div className={classes}>{content}</div>\n );\n}\n"],"mappings":"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"}
|
package/dist/stat/Stat.module.js
CHANGED
|
@@ -4,15 +4,17 @@ var stat = "panneau-stat";
|
|
|
4
4
|
var label = "panneau-stat-label";
|
|
5
5
|
var value = "panneau-stat-value";
|
|
6
6
|
var toned = "panneau-stat-toned";
|
|
7
|
+
var meter = "panneau-stat-meter";
|
|
7
8
|
var help = "panneau-stat-help";
|
|
8
9
|
var Stat_module_default = {
|
|
9
10
|
stat,
|
|
10
11
|
label,
|
|
11
12
|
value,
|
|
12
13
|
toned,
|
|
14
|
+
meter,
|
|
13
15
|
help
|
|
14
16
|
};
|
|
15
17
|
//#endregion
|
|
16
|
-
export { Stat_module_default as default, help, label, stat, toned, value };
|
|
18
|
+
export { Stat_module_default as default, help, label, meter, stat, toned, value };
|
|
17
19
|
|
|
18
20
|
//# sourceMappingURL=Stat.module.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Stat.module.js","names":[],"sources":["../../src/stat/Stat.module.css"],"sourcesContent":[".stat {\n display: flex;\n flex-direction: column;\n gap: var(--panneau-stat-gap, var(--panneau-space-1));\n min-width: 0;\n color: var(--panneau-color-text);\n text-decoration: none;\n border-radius: var(--panneau-radius-sm);\n}\n\n.stat[data-focus-visible] {\n outline: var(--panneau-focus-width) solid var(--panneau-color-focus);\n outline-offset: 2px;\n}\n\n.label {\n font-size: var(--panneau-stat-label-font-size, var(--panneau-font-size-sm));\n font-weight: var(--panneau-font-weight-medium);\n color: var(--panneau-color-text-muted);\n}\n\n.value {\n font-family: var(--panneau-stat-value-font-family, var(--panneau-font-family-heading));\n font-size: var(--panneau-stat-value-font-size, 2rem);\n font-weight: var(--panneau-stat-value-font-weight, var(--panneau-font-weight-bold));\n font-variant-numeric: var(--panneau-font-numeric);\n line-height: var(--panneau-line-height-tight);\n}\n\n/* A tone only when the number calls for attention: the help says why, never the color alone. */\n.toned .value {\n color: var(--panneau-tone-text);\n}\n\n.help {\n font-size: var(--panneau-stat-help-font-size, var(--panneau-font-size-sm));\n color: var(--panneau-color-text-muted);\n}\n\n.stat[href]:hover .value,\n.stat[data-hovered] .value {\n text-decoration: underline;\n text-decoration-thickness: 2px;\n text-underline-offset: 0.15em;\n}\n"],"mappings":""}
|
|
1
|
+
{"version":3,"file":"Stat.module.js","names":[],"sources":["../../src/stat/Stat.module.css"],"sourcesContent":[".stat {\n display: flex;\n flex-direction: column;\n gap: var(--panneau-stat-gap, var(--panneau-space-1));\n min-width: 0;\n color: var(--panneau-color-text);\n text-decoration: none;\n border-radius: var(--panneau-radius-sm);\n}\n\n.stat[data-focus-visible] {\n outline: var(--panneau-focus-width) solid var(--panneau-color-focus);\n outline-offset: 2px;\n}\n\n.label {\n font-size: var(--panneau-stat-label-font-size, var(--panneau-font-size-sm));\n font-weight: var(--panneau-font-weight-medium);\n color: var(--panneau-color-text-muted);\n}\n\n.value {\n font-family: var(--panneau-stat-value-font-family, var(--panneau-font-family-heading));\n font-size: var(--panneau-stat-value-font-size, 2rem);\n font-weight: var(--panneau-stat-value-font-weight, var(--panneau-font-weight-bold));\n font-variant-numeric: var(--panneau-font-numeric);\n line-height: var(--panneau-line-height-tight);\n}\n\n/* A tone only when the number calls for attention: the help says why, never the color alone. */\n.toned .value {\n color: var(--panneau-tone-text);\n}\n\n.meter {\n margin-block: var(--panneau-space-1);\n}\n\n.help {\n font-size: var(--panneau-stat-help-font-size, var(--panneau-font-size-sm));\n color: var(--panneau-color-text-muted);\n}\n\n.stat[href]:hover .value,\n.stat[data-hovered] .value {\n text-decoration: underline;\n text-decoration-thickness: 2px;\n text-underline-offset: 0.15em;\n}\n"],"mappings":""}
|
|
@@ -6,6 +6,7 @@ export declare const componentTokens: Readonly<{
|
|
|
6
6
|
alert: Readonly<Record<"panneau-alert-radius" | "panneau-alert-gap" | "panneau-alert-padding-y" | "panneau-alert-padding-x" | "panneau-alert-border-width" | "panneau-alert-title-font-weight", string>>;
|
|
7
7
|
aside: Readonly<Record<"panneau-aside-border" | "panneau-aside-width" | "panneau-aside-radius" | "panneau-aside-padding" | "panneau-aside-width-wide" | "panneau-aside-bg" | "panneau-aside-shadow", string>>;
|
|
8
8
|
badge: Readonly<Record<"panneau-badge-height" | "panneau-badge-radius" | "panneau-badge-gap" | "panneau-badge-padding-x" | "panneau-badge-border-width" | "panneau-badge-font-size" | "panneau-badge-font-weight", string>>;
|
|
9
|
+
'bar-chart': Readonly<Record<"panneau-bar-chart-gap" | "panneau-bar-chart-font-size" | "panneau-bar-chart-bar-height" | "panneau-bar-chart-bar-radius", string>>;
|
|
9
10
|
button: Readonly<Record<"panneau-button-radius" | "panneau-button-gap" | "panneau-button-padding-x" | "panneau-button-border-width" | "panneau-button-font-size" | "panneau-button-font-weight" | "panneau-button-solid-border-color" | "panneau-button-pressed-scale" | "panneau-button-padding-x-sm" | "panneau-button-font-size-sm", string>>;
|
|
10
11
|
calendar: Readonly<Record<"panneau-calendar-cell-size" | "panneau-calendar-cell-radius" | "panneau-calendar-selected-color" | "panneau-calendar-selected-bg", string>>;
|
|
11
12
|
card: Readonly<Record<"panneau-card-radius" | "panneau-card-gap" | "panneau-card-padding-y" | "panneau-card-padding-x" | "panneau-card-border-width" | "panneau-card-title-font-weight" | "panneau-card-bg" | "panneau-card-shadow" | "panneau-card-border-color" | "panneau-card-header-padding-y" | "panneau-card-title-font-size", string>>;
|
|
@@ -21,9 +22,10 @@ export declare const componentTokens: Readonly<{
|
|
|
21
22
|
icon: Readonly<Record<"panneau-icon-stroke-width", string>>;
|
|
22
23
|
inline: Readonly<Record<"panneau-inline-gap", string>>;
|
|
23
24
|
input: Readonly<Record<"panneau-input-radius" | "panneau-input-padding-x" | "panneau-input-border-width" | "panneau-input-bg" | "panneau-input-border-color" | "panneau-input-border-color-hover" | "panneau-input-border-color-focus" | "panneau-input-focus-ring" | "panneau-input-focus-ring-invalid", string>>;
|
|
24
|
-
'line-chart': Readonly<Record<"panneau-line-chart-height" | "panneau-line-chart-label-font-size" | "panneau-line-chart-line-width" | "panneau-line-chart-dot-size" | "panneau-line-chart-area-opacity", string>>;
|
|
25
|
+
'line-chart': Readonly<Record<"panneau-line-chart-height" | "panneau-line-chart-label-font-size" | "panneau-line-chart-line-width" | "panneau-line-chart-dot-size" | "panneau-line-chart-area-opacity" | "panneau-line-chart-grid-color" | "panneau-line-chart-reveal-duration", string>>;
|
|
25
26
|
'list-box': Readonly<Record<"panneau-list-box-padding" | "panneau-list-box-item-radius" | "panneau-list-box-item-padding-y" | "panneau-list-box-item-padding-y-described" | "panneau-list-box-item-padding-x" | "panneau-list-box-item-bg-hover", string>>;
|
|
26
27
|
menu: Readonly<Record<"panneau-menu-header-font-size" | "panneau-menu-header-font-weight" | "panneau-menu-header-color" | "panneau-menu-header-text-transform" | "panneau-menu-header-letter-spacing" | "panneau-menu-footer-font-size" | "panneau-menu-footer-color" | "panneau-menu-media-size" | "panneau-menu-media-size-described" | "panneau-menu-media-radius" | "panneau-menu-item-bg-selected", string>>;
|
|
28
|
+
meter: Readonly<Record<"panneau-meter-height" | "panneau-meter-radius" | "panneau-meter-track-bg", string>>;
|
|
27
29
|
'number-input': Readonly<Record<"panneau-number-input-stepper-width", string>>;
|
|
28
30
|
'pill-trigger': Readonly<Record<"panneau-pill-trigger-color" | "panneau-pill-trigger-radius" | "panneau-pill-trigger-gap" | "panneau-pill-trigger-padding-x" | "panneau-pill-trigger-bg" | "panneau-pill-trigger-font-size" | "panneau-pill-trigger-font-weight" | "panneau-pill-trigger-padding-x-sm" | "panneau-pill-trigger-font-size-sm" | "panneau-pill-trigger-border-color" | "panneau-pill-trigger-media-size" | "panneau-pill-trigger-media-radius" | "panneau-pill-trigger-bg-hover" | "panneau-pill-trigger-media-size-sm", string>>;
|
|
29
31
|
popover: Readonly<Record<"panneau-popover-radius" | "panneau-popover-padding" | "panneau-popover-bg" | "panneau-popover-shadow" | "panneau-popover-border-color", string>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"components.d.ts","sourceRoot":"","sources":["../../src/theme/components.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"components.d.ts","sourceRoot":"","sources":["../../src/theme/components.ts"],"names":[],"mappings":"AAwCA;;;GAGG;AACH,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAwC1B,CAAC;AAEH,gFAAgF;AAChF,MAAM,MAAM,kBAAkB,GAAG;KAC5B,SAAS,IAAI,MAAM,OAAO,eAAe,GAAG,MAAM,CAAC,OAAO,eAAe,CAAC,CAAC,SAAS,CAAC;CACzF,CAAC,MAAM,OAAO,eAAe,CAAC,CAAC"}
|
package/dist/theme/components.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { alertTokens } from "../alert/tokens.js";
|
|
2
2
|
import { asideTokens } from "../aside/tokens.js";
|
|
3
3
|
import { badgeTokens } from "../badge/tokens.js";
|
|
4
|
+
import { barChartTokens } from "../bar-chart/tokens.js";
|
|
4
5
|
import { buttonTokens } from "../button/tokens.js";
|
|
5
6
|
import { cardTokens } from "../card/tokens.js";
|
|
6
7
|
import { checkboxTokens } from "../checkbox/tokens.js";
|
|
@@ -18,6 +19,7 @@ import { iconTokens } from "../icon/tokens.js";
|
|
|
18
19
|
import { inlineTokens } from "../inline/tokens.js";
|
|
19
20
|
import { lineChartTokens } from "../line-chart/tokens.js";
|
|
20
21
|
import { menuTokens } from "../menu/tokens.js";
|
|
22
|
+
import { meterTokens } from "../meter/tokens.js";
|
|
21
23
|
import { numberInputTokens } from "../number-input/tokens.js";
|
|
22
24
|
import { pillTriggerTokens } from "../pill-trigger/tokens.js";
|
|
23
25
|
import { popoverTokens } from "../popover/tokens.js";
|
|
@@ -44,6 +46,7 @@ var componentTokens = Object.freeze({
|
|
|
44
46
|
alert: alertTokens.tokens,
|
|
45
47
|
aside: asideTokens.tokens,
|
|
46
48
|
badge: badgeTokens.tokens,
|
|
49
|
+
"bar-chart": barChartTokens.tokens,
|
|
47
50
|
button: buttonTokens.tokens,
|
|
48
51
|
calendar: calendarTokens.tokens,
|
|
49
52
|
card: cardTokens.tokens,
|
|
@@ -62,6 +65,7 @@ var componentTokens = Object.freeze({
|
|
|
62
65
|
"line-chart": lineChartTokens.tokens,
|
|
63
66
|
"list-box": listBoxTokens.tokens,
|
|
64
67
|
menu: menuTokens.tokens,
|
|
68
|
+
meter: meterTokens.tokens,
|
|
65
69
|
"number-input": numberInputTokens.tokens,
|
|
66
70
|
"pill-trigger": pillTriggerTokens.tokens,
|
|
67
71
|
popover: popoverTokens.tokens,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"components.js","names":["alertTokens","asideTokens","badgeTokens","buttonTokens","cardTokens","checkboxTokens","commandPaletteTokens","containerTokens","calendarTokens","dialogTokens","disclosureTokens","dividerTokens","inputTokens","fieldTokens","gridTokens","headingTokens","iconTokens","inlineTokens","lineChartTokens","menuTokens","numberInputTokens","pillTriggerTokens","popoverTokens","proseTokens","radioTokens","segmentedControlTokens","listBoxTokens","skeletonTokens","spinnerTokens","stackTokens","statTokens","switchTokens","tabsTokens","textTokens","toastTokens","tooltipTokens","selectedTokens","componentTokens","Object","freeze","alert","tokens","aside","badge","button","calendar","card","checkbox","container","dialog","disclosure","divider","field","grid","heading","icon","inline","input","menu","popover","prose","radio","selected","skeleton","spinner","stack","stat","switch","tabs","text","toast","tooltip","ComponentTokenName","Component"],"sources":["../../src/theme/components.ts"],"sourcesContent":["import { alertTokens } from '../alert/tokens';\nimport { asideTokens } from '../aside/tokens';\nimport { badgeTokens } from '../badge/tokens';\nimport { buttonTokens } from '../button/tokens';\nimport { cardTokens } from '../card/tokens';\nimport { checkboxTokens } from '../checkbox/tokens';\nimport { commandPaletteTokens } from '../command-palette/tokens';\nimport { containerTokens } from '../container/tokens';\nimport { calendarTokens } from '../date-picker/calendarTokens';\nimport { dialogTokens } from '../dialog/tokens';\nimport { disclosureTokens } from '../disclosure/tokens';\nimport { dividerTokens } from '../divider/tokens';\nimport { inputTokens } from '../field/inputTokens';\nimport { fieldTokens } from '../field/tokens';\nimport { gridTokens } from '../grid/tokens';\nimport { headingTokens } from '../heading/tokens';\nimport { iconTokens } from '../icon/tokens';\nimport { inlineTokens } from '../inline/tokens';\nimport { lineChartTokens } from '../line-chart/tokens';\nimport { menuTokens } from '../menu/tokens';\nimport { numberInputTokens } from '../number-input/tokens';\nimport { pillTriggerTokens } from '../pill-trigger/tokens';\nimport { popoverTokens } from '../popover/tokens';\nimport { proseTokens } from '../prose/tokens';\nimport { radioTokens } from '../radio-group/tokens';\nimport { segmentedControlTokens } from '../segmented-control/tokens';\nimport { listBoxTokens } from '../select/listBoxTokens';\nimport { skeletonTokens } from '../skeleton/tokens';\nimport { spinnerTokens } from '../spinner/tokens';\nimport { stackTokens } from '../stack/tokens';\nimport { statTokens } from '../stat/tokens';\nimport { switchTokens } from '../switch/tokens';\nimport { tabsTokens } from '../tabs/tokens';\nimport { textTokens } from '../text/tokens';\nimport { toastTokens } from '../toast/tokens';\nimport { tooltipTokens } from '../tooltip/tokens';\nimport { selectedTokens } from './selectedTokens';\n\n/**\n * The component tokens of `@panneau/ui` and their defaults, by component: what a theme, a scope or\n * a project's CSS can set to restyle one component without touching the others (decision 0024).\n */\nexport const componentTokens = Object.freeze({\n alert: alertTokens.tokens,\n aside: asideTokens.tokens,\n badge: badgeTokens.tokens,\n button: buttonTokens.tokens,\n calendar: calendarTokens.tokens,\n card: cardTokens.tokens,\n checkbox: checkboxTokens.tokens,\n 'command-palette': commandPaletteTokens.tokens,\n container: containerTokens.tokens,\n dialog: dialogTokens.tokens,\n disclosure: disclosureTokens.tokens,\n divider: dividerTokens.tokens,\n field: fieldTokens.tokens,\n grid: gridTokens.tokens,\n heading: headingTokens.tokens,\n icon: iconTokens.tokens,\n inline: inlineTokens.tokens,\n input: inputTokens.tokens,\n 'line-chart': lineChartTokens.tokens,\n 'list-box': listBoxTokens.tokens,\n menu: menuTokens.tokens,\n 'number-input': numberInputTokens.tokens,\n 'pill-trigger': pillTriggerTokens.tokens,\n popover: popoverTokens.tokens,\n prose: proseTokens.tokens,\n radio: radioTokens.tokens,\n 'segmented-control': segmentedControlTokens.tokens,\n selected: selectedTokens.tokens,\n skeleton: skeletonTokens.tokens,\n spinner: spinnerTokens.tokens,\n stack: stackTokens.tokens,\n stat: statTokens.tokens,\n switch: switchTokens.tokens,\n tabs: tabsTokens.tokens,\n text: textTokens.tokens,\n toast: toastTokens.tokens,\n tooltip: tooltipTokens.tokens,\n});\n\n/** The name of a component token of `@panneau/ui`, without the leading `--`. */\nexport type ComponentTokenName = {\n [Component in keyof typeof componentTokens]: keyof (typeof componentTokens)[Component];\n}[keyof typeof componentTokens];\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"components.js","names":["alertTokens","asideTokens","badgeTokens","barChartTokens","buttonTokens","cardTokens","checkboxTokens","commandPaletteTokens","containerTokens","calendarTokens","dialogTokens","disclosureTokens","dividerTokens","inputTokens","fieldTokens","gridTokens","headingTokens","iconTokens","inlineTokens","lineChartTokens","menuTokens","meterTokens","numberInputTokens","pillTriggerTokens","popoverTokens","proseTokens","radioTokens","segmentedControlTokens","listBoxTokens","skeletonTokens","spinnerTokens","stackTokens","statTokens","switchTokens","tabsTokens","textTokens","toastTokens","tooltipTokens","selectedTokens","componentTokens","Object","freeze","alert","tokens","aside","badge","button","calendar","card","checkbox","container","dialog","disclosure","divider","field","grid","heading","icon","inline","input","menu","meter","popover","prose","radio","selected","skeleton","spinner","stack","stat","switch","tabs","text","toast","tooltip","ComponentTokenName","Component"],"sources":["../../src/theme/components.ts"],"sourcesContent":["import { alertTokens } from '../alert/tokens';\nimport { asideTokens } from '../aside/tokens';\nimport { badgeTokens } from '../badge/tokens';\nimport { barChartTokens } from '../bar-chart/tokens';\nimport { buttonTokens } from '../button/tokens';\nimport { cardTokens } from '../card/tokens';\nimport { checkboxTokens } from '../checkbox/tokens';\nimport { commandPaletteTokens } from '../command-palette/tokens';\nimport { containerTokens } from '../container/tokens';\nimport { calendarTokens } from '../date-picker/calendarTokens';\nimport { dialogTokens } from '../dialog/tokens';\nimport { disclosureTokens } from '../disclosure/tokens';\nimport { dividerTokens } from '../divider/tokens';\nimport { inputTokens } from '../field/inputTokens';\nimport { fieldTokens } from '../field/tokens';\nimport { gridTokens } from '../grid/tokens';\nimport { headingTokens } from '../heading/tokens';\nimport { iconTokens } from '../icon/tokens';\nimport { inlineTokens } from '../inline/tokens';\nimport { lineChartTokens } from '../line-chart/tokens';\nimport { menuTokens } from '../menu/tokens';\nimport { meterTokens } from '../meter/tokens';\nimport { numberInputTokens } from '../number-input/tokens';\nimport { pillTriggerTokens } from '../pill-trigger/tokens';\nimport { popoverTokens } from '../popover/tokens';\nimport { proseTokens } from '../prose/tokens';\nimport { radioTokens } from '../radio-group/tokens';\nimport { segmentedControlTokens } from '../segmented-control/tokens';\nimport { listBoxTokens } from '../select/listBoxTokens';\nimport { skeletonTokens } from '../skeleton/tokens';\nimport { spinnerTokens } from '../spinner/tokens';\nimport { stackTokens } from '../stack/tokens';\nimport { statTokens } from '../stat/tokens';\nimport { switchTokens } from '../switch/tokens';\nimport { tabsTokens } from '../tabs/tokens';\nimport { textTokens } from '../text/tokens';\nimport { toastTokens } from '../toast/tokens';\nimport { tooltipTokens } from '../tooltip/tokens';\nimport { selectedTokens } from './selectedTokens';\n\n/**\n * The component tokens of `@panneau/ui` and their defaults, by component: what a theme, a scope or\n * a project's CSS can set to restyle one component without touching the others (decision 0024).\n */\nexport const componentTokens = Object.freeze({\n alert: alertTokens.tokens,\n aside: asideTokens.tokens,\n badge: badgeTokens.tokens,\n 'bar-chart': barChartTokens.tokens,\n button: buttonTokens.tokens,\n calendar: calendarTokens.tokens,\n card: cardTokens.tokens,\n checkbox: checkboxTokens.tokens,\n 'command-palette': commandPaletteTokens.tokens,\n container: containerTokens.tokens,\n dialog: dialogTokens.tokens,\n disclosure: disclosureTokens.tokens,\n divider: dividerTokens.tokens,\n field: fieldTokens.tokens,\n grid: gridTokens.tokens,\n heading: headingTokens.tokens,\n icon: iconTokens.tokens,\n inline: inlineTokens.tokens,\n input: inputTokens.tokens,\n 'line-chart': lineChartTokens.tokens,\n 'list-box': listBoxTokens.tokens,\n menu: menuTokens.tokens,\n meter: meterTokens.tokens,\n 'number-input': numberInputTokens.tokens,\n 'pill-trigger': pillTriggerTokens.tokens,\n popover: popoverTokens.tokens,\n prose: proseTokens.tokens,\n radio: radioTokens.tokens,\n 'segmented-control': segmentedControlTokens.tokens,\n selected: selectedTokens.tokens,\n skeleton: skeletonTokens.tokens,\n spinner: spinnerTokens.tokens,\n stack: stackTokens.tokens,\n stat: statTokens.tokens,\n switch: switchTokens.tokens,\n tabs: tabsTokens.tokens,\n text: textTokens.tokens,\n toast: toastTokens.tokens,\n tooltip: tooltipTokens.tokens,\n});\n\n/** The name of a component token of `@panneau/ui`, without the leading `--`. */\nexport type ComponentTokenName = {\n [Component in keyof typeof componentTokens]: keyof (typeof componentTokens)[Component];\n}[keyof typeof componentTokens];\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA4CA,IAAauC,kBAAkBC,OAAOC,OAAO;CACzCC,OAAO1C,YAAY2C;CACnBC,OAAO3C,YAAY0C;CACnBE,OAAO3C,YAAYyC;CACnB,aAAaxC,eAAewC;CAC5BG,QAAQ1C,aAAauC;CACrBI,UAAUtC,eAAekC;CACzBK,MAAM3C,WAAWsC;CACjBM,UAAU3C,eAAeqC;CACzB,mBAAmBpC,qBAAqBoC;CACxCO,WAAW1C,gBAAgBmC;CAC3BQ,QAAQzC,aAAaiC;CACrBS,YAAYzC,iBAAiBgC;CAC7BU,SAASzC,cAAc+B;CACvBW,OAAOxC,YAAY6B;CACnBY,MAAMxC,WAAW4B;CACjBa,SAASxC,cAAc2B;CACvBc,MAAMxC,WAAW0B;CACjBe,QAAQxC,aAAayB;CACrBgB,OAAO9C,YAAY8B;CACnB,cAAcxB,gBAAgBwB;CAC9B,YAAYf,cAAce;CAC1BiB,MAAMxC,WAAWuB;CACjBkB,OAAOxC,YAAYsB;CACnB,gBAAgBrB,kBAAkBqB;CAClC,gBAAgBpB,kBAAkBoB;CAClCmB,SAAStC,cAAcmB;CACvBoB,OAAOtC,YAAYkB;CACnBqB,OAAOtC,YAAYiB;CACnB,qBAAqBhB,uBAAuBgB;CAC5CsB,UAAU3B,eAAeK;CACzBuB,UAAUrC,eAAec;CACzBwB,SAASrC,cAAca;CACvByB,OAAOrC,YAAYY;CACnB0B,MAAMrC,WAAWW;CACjB2B,QAAQrC,aAAaU;CACrB4B,MAAMrC,WAAWS;CACjB6B,MAAMrC,WAAWQ;CACjB8B,OAAOrC,YAAYO;CACnB+B,SAASrC,cAAcM;AAC3B,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@panneau/ui",
|
|
3
|
-
"version": "5.0.0-alpha.
|
|
3
|
+
"version": "5.0.0-alpha.38",
|
|
4
4
|
"description": "Design tokens, themes and accessible primitives of Panneau, built on React Aria Components.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -57,10 +57,10 @@
|
|
|
57
57
|
"react-intl": "^12.0.0"
|
|
58
58
|
},
|
|
59
59
|
"dependencies": {
|
|
60
|
-
"@panneau/intl": "5.0.0-alpha.
|
|
60
|
+
"@panneau/intl": "5.0.0-alpha.38",
|
|
61
61
|
"lucide-react": "^1.57.0"
|
|
62
62
|
},
|
|
63
63
|
"devDependencies": {
|
|
64
|
-
"@panneau/protocol": "5.0.0-alpha.
|
|
64
|
+
"@panneau/protocol": "5.0.0-alpha.38"
|
|
65
65
|
}
|
|
66
66
|
}
|