@glimstone/react 5.0.0 → 5.0.2
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/EmptyState.d.ts +4 -4
- package/dist/EmptyState.js +4 -4
- package/package.json +2 -2
package/dist/EmptyState.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import type { ReactNode } from "react";
|
|
2
2
|
/**
|
|
3
|
-
* What a list, table or panel shows when it holds nothing: a
|
|
4
|
-
*
|
|
5
|
-
* and "nothing matches the filter" take the same shape with different
|
|
6
|
-
* so somebody is not sent looking for a filter that was never set.
|
|
3
|
+
* What a list, table or panel shows when it holds nothing: a bare glyph and a
|
|
4
|
+
* title in the muted ink, an optional hint and an optional action. "Nothing
|
|
5
|
+
* here yet" and "nothing matches the filter" take the same shape with different
|
|
6
|
+
* words, so somebody is not sent looking for a filter that was never set.
|
|
7
7
|
*/
|
|
8
8
|
export declare function EmptyState({ glyph, title, hint, action, nested, }: {
|
|
9
9
|
/** The page's own glyph, so the empty state echoes the place it is on. */
|
package/dist/EmptyState.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
/**
|
|
3
|
-
* What a list, table or panel shows when it holds nothing: a
|
|
4
|
-
*
|
|
5
|
-
* and "nothing matches the filter" take the same shape with different
|
|
6
|
-
* so somebody is not sent looking for a filter that was never set.
|
|
3
|
+
* What a list, table or panel shows when it holds nothing: a bare glyph and a
|
|
4
|
+
* title in the muted ink, an optional hint and an optional action. "Nothing
|
|
5
|
+
* here yet" and "nothing matches the filter" take the same shape with different
|
|
6
|
+
* words, so somebody is not sent looking for a filter that was never set.
|
|
7
7
|
*/
|
|
8
8
|
export function EmptyState({ glyph, title, hint, action, nested = false, }) {
|
|
9
9
|
return (_jsxs("div", { "data-glim": "EmptyState", "data-glim-title": title, className: nested ? "glim-empty" : "glim-card glim-empty", children: [glyph && (_jsx("span", { className: "glim-empty-glyph", "aria-hidden": "true", children: glyph })), _jsx("p", { className: "glim-empty-title", children: title }), hint && _jsx("p", { className: "glim-empty-hint", children: hint }), action] }));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@glimstone/react",
|
|
3
|
-
"version": "5.0.
|
|
3
|
+
"version": "5.0.2",
|
|
4
4
|
"description": "GlimStone's components for React",
|
|
5
5
|
"license": "AGPL-3.0-only",
|
|
6
6
|
"repository": { "type": "git", "url": "git+https://github.com/junkerderprovinz/glimstone.git", "directory": "packages/react" },
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"build": "node -e \"require('node:fs').rmSync('dist', { recursive: true, force: true })\" && tsc -p tsconfig.build.json"
|
|
17
17
|
},
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"@glimstone/core": "5.0.
|
|
19
|
+
"@glimstone/core": "5.0.2"
|
|
20
20
|
},
|
|
21
21
|
"peerDependencies": {
|
|
22
22
|
"@internationalized/date": "^3.12.4",
|