@panneau/ui 5.0.0-alpha.16 → 5.0.0-alpha.18
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 +31 -1
- package/dist/button/Button.d.ts +5 -2
- package/dist/button/Button.d.ts.map +1 -1
- package/dist/button/Button.js +76 -54
- package/dist/button/Button.js.map +1 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +6 -4
- package/dist/line-chart/LineChart.css +84 -0
- package/dist/line-chart/LineChart.d.ts +26 -0
- package/dist/line-chart/LineChart.d.ts.map +1 -0
- package/dist/line-chart/LineChart.js +327 -0
- package/dist/line-chart/LineChart.js.map +1 -0
- package/dist/line-chart/LineChart.module.js +28 -0
- package/dist/line-chart/LineChart.module.js.map +1 -0
- package/dist/line-chart/tokens.d.ts +3 -0
- package/dist/line-chart/tokens.d.ts.map +1 -0
- package/dist/line-chart/tokens.js +19 -0
- package/dist/line-chart/tokens.js.map +1 -0
- package/dist/root/PanneauRoot.css +24 -0
- package/dist/root/PanneauRoot.d.ts +8 -1
- package/dist/root/PanneauRoot.d.ts.map +1 -1
- package/dist/root/PanneauRoot.js +98 -92
- package/dist/root/PanneauRoot.js.map +1 -1
- package/dist/root/PanneauRoot.module.js.map +1 -1
- package/dist/stat/Stat.css +45 -0
- package/dist/stat/Stat.d.ts +27 -0
- package/dist/stat/Stat.d.ts.map +1 -0
- package/dist/stat/Stat.js +87 -0
- package/dist/stat/Stat.js.map +1 -0
- package/dist/stat/Stat.module.js +18 -0
- package/dist/stat/Stat.module.js.map +1 -0
- package/dist/stat/tokens.d.ts +3 -0
- package/dist/stat/tokens.d.ts.map +1 -0
- package/dist/stat/tokens.js +21 -0
- package/dist/stat/tokens.js.map +1 -0
- package/dist/theme/Tone.css +14 -0
- package/dist/theme/Tone.module.js +4 -2
- package/dist/theme/Tone.module.js.map +1 -1
- package/dist/theme/bootstrap.d.ts.map +1 -1
- package/dist/theme/bootstrap.js +6 -0
- package/dist/theme/bootstrap.js.map +1 -1
- package/dist/theme/checkTheme.d.ts.map +1 -1
- package/dist/theme/checkTheme.js +24 -0
- package/dist/theme/checkTheme.js.map +1 -1
- package/dist/theme/components.d.ts +2 -0
- 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/dist/theme/index.js +1 -1
- package/dist/theme/semanticTokens.d.ts +1 -1
- package/dist/theme/semanticTokens.d.ts.map +1 -1
- package/dist/theme/semanticTokens.js +6 -0
- package/dist/theme/semanticTokens.js.map +1 -1
- package/dist/theme/tones.d.ts +14 -2
- package/dist/theme/tones.d.ts.map +1 -1
- package/dist/theme/tones.js +14 -2
- package/dist/theme/tones.js.map +1 -1
- package/dist/toast/Toast.css +131 -15
- package/dist/toast/Toast.d.ts +46 -9
- package/dist/toast/Toast.d.ts.map +1 -1
- package/dist/toast/Toast.js +190 -65
- package/dist/toast/Toast.js.map +1 -1
- package/dist/toast/Toast.module.js +5 -3
- package/dist/toast/Toast.module.js.map +1 -1
- package/dist/toast/tokens.js +1 -1
- package/dist/toast/tokens.js.map +1 -1
- package/package.json +3 -3
|
@@ -2,8 +2,9 @@ import "./Toast.css";
|
|
|
2
2
|
//#region src/toast/Toast.module.css
|
|
3
3
|
var region = "panneau-toast-region";
|
|
4
4
|
var toast = "panneau-toast";
|
|
5
|
+
var rise = "panneau-toast-rise";
|
|
5
6
|
var icon = "panneau-toast-icon";
|
|
6
|
-
var
|
|
7
|
+
var edge = "panneau-toast-edge";
|
|
7
8
|
var content = "panneau-toast-content";
|
|
8
9
|
var title = "panneau-toast-title";
|
|
9
10
|
var description = "panneau-toast-description";
|
|
@@ -11,14 +12,15 @@ var actions = "panneau-toast-actions";
|
|
|
11
12
|
var Toast_module_default = {
|
|
12
13
|
region,
|
|
13
14
|
toast,
|
|
15
|
+
rise,
|
|
14
16
|
icon,
|
|
15
|
-
|
|
17
|
+
edge,
|
|
16
18
|
content,
|
|
17
19
|
title,
|
|
18
20
|
description,
|
|
19
21
|
actions
|
|
20
22
|
};
|
|
21
23
|
//#endregion
|
|
22
|
-
export { actions, content, Toast_module_default as default, description, icon, region, title, toast
|
|
24
|
+
export { actions, content, Toast_module_default as default, description, edge, icon, region, rise, title, toast };
|
|
23
25
|
|
|
24
26
|
//# sourceMappingURL=Toast.module.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Toast.module.js","names":[],"sources":["../../src/toast/Toast.module.css"],"sourcesContent":["
|
|
1
|
+
{"version":3,"file":"Toast.module.js","names":[],"sources":["../../src/toast/Toast.module.css"],"sourcesContent":["/*\n * The region carries the root's class (tokens), since React Aria renders it in the body. Toasts show\n * at the bottom, centered, above what sticks to the bottom of the page (--panneau-bottom-offset,\n * set by useToastOffset()), or at the bottom or top of the end side (data-placement). React Aria\n * renders them newest first, each in a list item with `display: contents`.\n */\n.region.region {\n position: fixed;\n inset-block-end: calc(var(--panneau-bottom-offset, 0px) + var(--panneau-space-4));\n inset-inline: 0;\n z-index: var(--panneau-z-toast);\n display: grid;\n grid-template-columns: minmax(0, 1fr);\n align-items: end;\n width: min(var(--panneau-toast-width, 24rem), calc(100vw - 2 * var(--panneau-space-4)));\n margin-inline: auto;\n background: transparent;\n outline: none;\n}\n\n.region[data-placement='bottom-end'] {\n inset-inline: auto var(--panneau-space-4);\n margin-inline: 0;\n}\n\n.region[data-placement='top-end'] {\n inset-block: var(--panneau-space-4) auto;\n inset-inline: auto var(--panneau-space-4);\n align-items: start;\n margin-inline: 0;\n}\n\n.region[data-focus-visible] {\n outline: var(--panneau-focus-width) solid var(--panneau-color-focus);\n outline-offset: 4px;\n}\n\n/* On a phone, the whole width at the bottom (or the top). */\n@media (max-width: 30rem) {\n .region.region,\n .region.region[data-placement] {\n inset-inline: var(--panneau-space-2);\n width: auto;\n margin-inline: 0;\n }\n\n .region.region:not([data-placement='top-end']) {\n inset-block: auto calc(var(--panneau-bottom-offset, 0px) + var(--panneau-space-2));\n }\n}\n\n.toast {\n --toast-rise: 1rem;\n\n display: flex;\n grid-area: 1 / 1;\n align-items: flex-start;\n gap: var(--panneau-space-3);\n padding: var(--panneau-space-3) var(--panneau-space-3) var(--panneau-space-3)\n var(--panneau-space-4);\n color: var(--panneau-color-text);\n background-color: var(--panneau-toast-bg, var(--panneau-color-surface-raised));\n border: var(--panneau-border-width) solid\n var(--panneau-toast-border-color, var(--panneau-color-border));\n border-radius: var(--panneau-toast-radius, var(--panneau-radius-lg));\n box-shadow: var(--panneau-toast-shadow, var(--panneau-shadow-lg));\n outline: none;\n transition:\n transform var(--panneau-duration) ease-out,\n opacity var(--panneau-duration) ease-out;\n animation: rise calc(2 * var(--panneau-duration)) ease-out;\n}\n\n.region[data-placement='top-end'] .toast {\n --toast-rise: -1rem;\n}\n\n@keyframes rise {\n from {\n opacity: 0;\n transform: translateY(var(--toast-rise));\n }\n}\n\n/*\n * Folded: the newest in front, the older ones behind it, peeking out a little. Hovered or focused,\n * the region unfolds them in a column, the newest closest to the edge of the screen.\n */\n.region li:nth-child(1) > .toast {\n z-index: 3;\n}\n\n.region li:nth-child(2) > .toast {\n z-index: 2;\n transform: translateY(calc(-1 * var(--panneau-space-2))) scale(0.95);\n}\n\n.region li:nth-child(3) > .toast {\n z-index: 1;\n transform: translateY(calc(-2 * var(--panneau-space-2))) scale(0.9);\n}\n\n.region[data-placement='top-end'] li:nth-child(2) > .toast {\n transform: translateY(var(--panneau-space-2)) scale(0.95);\n}\n\n.region[data-placement='top-end'] li:nth-child(3) > .toast {\n transform: translateY(calc(2 * var(--panneau-space-2))) scale(0.9);\n}\n\n.region li:nth-child(n + 2) > .toast > * {\n opacity: 0;\n transition: opacity var(--panneau-duration) ease-out;\n}\n\n.region:is(:hover, :focus-within, [data-hovered], [data-focused]) {\n gap: var(--panneau-space-2);\n}\n\n.region:is(:hover, :focus-within, [data-hovered], [data-focused]) li > .toast {\n transform: none;\n}\n\n.region:is(:hover, :focus-within, [data-hovered], [data-focused]) li > .toast > * {\n opacity: 1;\n}\n\n.region:not([data-placement='top-end']):is(:hover, :focus-within, [data-hovered], [data-focused])\n li:nth-child(1)\n > .toast {\n grid-area: 3 / 1;\n}\n\n.region:not([data-placement='top-end']):is(:hover, :focus-within, [data-hovered], [data-focused])\n li:nth-child(2)\n > .toast {\n grid-area: 2 / 1;\n}\n\n.region:not([data-placement='top-end']):is(:hover, :focus-within, [data-hovered], [data-focused])\n li:nth-child(3)\n > .toast {\n grid-area: 1 / 1;\n}\n\n.region[data-placement='top-end']:is(:hover, :focus-within, [data-hovered], [data-focused])\n li\n > .toast {\n grid-area: auto;\n}\n\n/* Without motion when the system asks for less. */\n@media (prefers-reduced-motion: reduce) {\n .toast,\n .region li > .toast > * {\n transition: none;\n animation: none;\n }\n}\n\n.toast[data-focus-visible] {\n outline: var(--panneau-focus-width) solid var(--panneau-color-focus);\n outline-offset: 2px;\n}\n\n/* A success or an info keeps the neutral look, with its icon in the color of its tone. */\n.icon {\n margin-top: 0.125rem;\n color: var(--panneau-tone-text);\n}\n\n/* Only what needs a look, a warning or an error, colors the edge. */\n.edge {\n border-inline-start-color: var(--panneau-tone-text);\n border-inline-start-width: var(--panneau-toast-tone-width, 4px);\n}\n\n.content {\n display: flex;\n flex: 1 1 auto;\n flex-direction: column;\n gap: var(--panneau-space-1);\n min-width: 0;\n padding-top: 0.125rem;\n}\n\n.title {\n font-weight: var(--panneau-font-weight-medium);\n overflow-wrap: anywhere;\n}\n\n.description {\n font-size: var(--panneau-font-size-sm);\n color: var(--panneau-color-text-muted);\n overflow-wrap: anywhere;\n}\n\n.actions {\n display: flex;\n flex: 0 0 auto;\n align-items: center;\n gap: var(--panneau-space-1);\n}\n"],"mappings":""}
|
package/dist/toast/tokens.js
CHANGED
|
@@ -8,7 +8,7 @@ var toastTokens = defineComponentTokens("toast", {
|
|
|
8
8
|
bg: "var(--panneau-color-surface-raised)",
|
|
9
9
|
/** Border color. */
|
|
10
10
|
"border-color": "var(--panneau-color-border)",
|
|
11
|
-
/** Width of the colored edge of a
|
|
11
|
+
/** Width of the colored edge of a warning or an error. */
|
|
12
12
|
"tone-width": "4px",
|
|
13
13
|
/** Corner radius. */
|
|
14
14
|
radius: "var(--panneau-radius-lg)",
|
package/dist/toast/tokens.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tokens.js","names":["defineComponentTokens","toastTokens","width","bg","radius","shadow"],"sources":["../../src/toast/tokens.ts"],"sourcesContent":["import { defineComponentTokens } from '../theme/componentTokens';\n\n/** Tokens of Toast. */\nexport const toastTokens = defineComponentTokens('toast', {\n /** Width of the toasts. */\n width: '24rem',\n /** Background. */\n bg: 'var(--panneau-color-surface-raised)',\n /** Border color. */\n 'border-color': 'var(--panneau-color-border)',\n /** Width of the colored edge of a
|
|
1
|
+
{"version":3,"file":"tokens.js","names":["defineComponentTokens","toastTokens","width","bg","radius","shadow"],"sources":["../../src/toast/tokens.ts"],"sourcesContent":["import { defineComponentTokens } from '../theme/componentTokens';\n\n/** Tokens of Toast. */\nexport const toastTokens = defineComponentTokens('toast', {\n /** Width of the toasts. */\n width: '24rem',\n /** Background. */\n bg: 'var(--panneau-color-surface-raised)',\n /** Border color. */\n 'border-color': 'var(--panneau-color-border)',\n /** Width of the colored edge of a warning or an error. */\n 'tone-width': '4px',\n /** Corner radius. */\n radius: 'var(--panneau-radius-lg)',\n /** Shadow. */\n shadow: 'var(--panneau-shadow-lg)',\n});\n"],"mappings":";;;AAGA,IAAaC,cAAcD,sBAAsB,SAAS;;CAEtDE,OAAO;;CAEPC,IAAI;;CAEJ,gBAAgB;;CAEhB,cAAc;;CAEdC,QAAQ;;CAERC,QAAQ;AACZ,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.18",
|
|
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.18",
|
|
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.18"
|
|
65
65
|
}
|
|
66
66
|
}
|