@pontive/pontkit-core 1.32.0 → 1.33.0
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/catalog.json +1 -1
- package/custom-elements.json +1 -1
- package/dist/i18n/messages.d.ts +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3 -1
- package/dist/index.mjs.map +1 -1
- package/dist/pont2/index.mjs +1473 -1342
- package/dist/pont2/index.mjs.map +1 -1
- package/dist/pont2/kit/flow-widget/specimens.d.ts +30 -0
- package/dist/pont2/kit/index.d.ts +1 -0
- package/package.json +5 -3
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Preview specimens: one component at a time, for the dashboard's Component
|
|
3
|
+
* scope (docs/14-dashboard-branding.md §"Previews").
|
|
4
|
+
*
|
|
5
|
+
* `PREVIEW_SCREENS` shows whole sign-in screens, which is right for the
|
|
6
|
+
* Global scope. When the branding editor is open on one component ("Button",
|
|
7
|
+
* "Alert" …) it shows that component's specimen instead: its variants, sizes
|
|
8
|
+
* and states side by side, so every token in its panel has something visible
|
|
9
|
+
* to change.
|
|
10
|
+
*
|
|
11
|
+
* - **Keyed by token component** (a manifest `component`, `tokens.json`), not
|
|
12
|
+
* by tag: that is what the editor's items are. A guardrail checks every key
|
|
13
|
+
* is one.
|
|
14
|
+
* - **pont2 owns the markup.** The dashboard renders `html` as given and never
|
|
15
|
+
* writes pont2 markup itself, so a markup change here never needs a
|
|
16
|
+
* dashboard change.
|
|
17
|
+
* - Specimens sit at the global scope (no widget around them): the editor's
|
|
18
|
+
* Component scope edits `:root` tokens.
|
|
19
|
+
* - Nothing in a specimen reaches a server: there is no flow host, so action
|
|
20
|
+
* buttons only show their busy state, if anything.
|
|
21
|
+
*
|
|
22
|
+
* Pure data: no DOM, no Lit, no network.
|
|
23
|
+
*/
|
|
24
|
+
export interface PreviewSpecimen {
|
|
25
|
+
/** A name for the specimen. */
|
|
26
|
+
label: string;
|
|
27
|
+
/** The markup to render, inside a `<form>` that does not submit. */
|
|
28
|
+
html: string;
|
|
29
|
+
}
|
|
30
|
+
export declare const PREVIEW_SPECIMENS: Readonly<Record<string, PreviewSpecimen>>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pontive/pontkit-core",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.33.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "A collection of core components for Pontive",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -16,11 +16,13 @@
|
|
|
16
16
|
"./dist/styles.css": "./dist/styles.css",
|
|
17
17
|
"./pont2": {
|
|
18
18
|
"types": "./dist/pont2/index.d.ts",
|
|
19
|
-
"import": "./dist/pont2/index.mjs"
|
|
19
|
+
"import": "./dist/pont2/index.mjs",
|
|
20
|
+
"default": "./dist/pont2/index.mjs"
|
|
20
21
|
},
|
|
21
22
|
"./pont2/theme": {
|
|
22
23
|
"types": "./dist/pont2/theme/index.d.ts",
|
|
23
|
-
"import": "./dist/pont2/theme.mjs"
|
|
24
|
+
"import": "./dist/pont2/theme.mjs",
|
|
25
|
+
"default": "./dist/pont2/theme.mjs"
|
|
24
26
|
},
|
|
25
27
|
"./pont2/tokens.json": "./dist/pont2/tokens.json",
|
|
26
28
|
"./pont2/styles.css": "./dist/pont2/styles.css",
|