@openelement/ui 1.0.0-alpha.2 → 1.0.0-alpha.4
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 +16 -9
- package/THIRD_PARTY_NOTICES.md +2 -2
- package/package.json +9 -5
- package/src/generated-manifest.json +2 -2
- package/src/manifest.d.ts +3 -3
- package/src/manifest.js +3 -3
- package/src/open-props-tokens.d.ts +1 -1
- package/src/open-props-tokens.js +4 -4
- package/src/register.js +1 -1
- package/src/semantic-tokens.css +2 -2
package/README.md
CHANGED
|
@@ -3,6 +3,8 @@
|
|
|
3
3
|
> Experimental product: maintained in the OpenElement repository, outside the
|
|
4
4
|
> 1.0 stable API promise. APIs may change without a migration path during Alpha.
|
|
5
5
|
|
|
6
|
+
Docs and guides: <https://openelement.org>.
|
|
7
|
+
|
|
6
8
|
First-party dogfood and reference UI package for OpenElement.
|
|
7
9
|
|
|
8
10
|
Element and Router are the two core products; Router includes Framework Mode.
|
|
@@ -15,10 +17,9 @@ prove the OpenElement authoring model with shadow/DSD output, explicit light DOM
|
|
|
15
17
|
where needed, and island upgrade. UI is a supporting reference surface, not a
|
|
16
18
|
separate application-framework promise.
|
|
17
19
|
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
`@openelement/ui/open-props-tokens` instead.
|
|
20
|
+
There is **no Linear compatibility layer**: the `open-*-linear` components and
|
|
21
|
+
the `linear-token-sheet` token sheet are not part of the public surface. Use the
|
|
22
|
+
canonical Open Props components and `@openelement/ui/open-props-tokens` instead.
|
|
22
23
|
|
|
23
24
|
## Install
|
|
24
25
|
|
|
@@ -56,7 +57,7 @@ Tokens contain shared style values and classes and import no components.
|
|
|
56
57
|
Primitives may consume tokens but never composites. Composites may compose
|
|
57
58
|
primitives and tokens. Application routing and document navigation belongs to
|
|
58
59
|
`@openelement/router`; the site layout component (`OpenLayout`) lives in the
|
|
59
|
-
reference site
|
|
60
|
+
reference site that consumes this package, not in it.
|
|
60
61
|
|
|
61
62
|
## `open-code-block` syntax highlighting
|
|
62
63
|
|
|
@@ -80,17 +81,19 @@ button (and retries briefly while deferred scripts load).
|
|
|
80
81
|
</open-code-block>
|
|
81
82
|
```
|
|
82
83
|
|
|
83
|
-
The reference site wires the same scripts through
|
|
84
|
-
`www/vite.config.ts`.
|
|
84
|
+
The reference site wires the same scripts through its Vite `inject` option.
|
|
85
85
|
|
|
86
86
|
## Design tokens
|
|
87
87
|
|
|
88
|
-
`src/open-props-tokens.ts` is **generated — do not edit**. Regenerate
|
|
88
|
+
`src/open-props-tokens.ts` is **generated — do not edit**. Regenerate from
|
|
89
|
+
the package directory with:
|
|
89
90
|
|
|
90
91
|
```bash
|
|
91
|
-
deno task
|
|
92
|
+
deno task generate:ui-tokens
|
|
92
93
|
```
|
|
93
94
|
|
|
95
|
+
The drift gate for the same task runs as `ui-tokens:check`.
|
|
96
|
+
|
|
94
97
|
Sources:
|
|
95
98
|
|
|
96
99
|
- Upstream [open-props](https://open-props.style) `1.7.23` (**MIT**,
|
|
@@ -156,8 +159,12 @@ manifest; the per-component JSDoc is the source of truth for those.
|
|
|
156
159
|
@openelement/ui/open-dropdown
|
|
157
160
|
@openelement/ui/open-tabs
|
|
158
161
|
@openelement/ui/open-props-tokens
|
|
162
|
+
@openelement/ui/open-props-tokens.js (legacy alias of the previous entry)
|
|
159
163
|
```
|
|
160
164
|
|
|
165
|
+
The last entry is a compatibility alias kept for import maps written against the
|
|
166
|
+
`.js` form; new code uses `@openelement/ui/open-props-tokens`.
|
|
167
|
+
|
|
161
168
|
## License
|
|
162
169
|
|
|
163
170
|
MIT
|
package/THIRD_PARTY_NOTICES.md
CHANGED
|
@@ -9,8 +9,8 @@ exist because a package tarball cannot reach repository-root files.
|
|
|
9
9
|
## open-props 1.7.23
|
|
10
10
|
|
|
11
11
|
Design tokens carried verbatim into the generated token module
|
|
12
|
-
(`src/open-props-tokens.ts`) by the package's build-time adapter
|
|
13
|
-
|
|
12
|
+
(`src/open-props-tokens.ts`) by the package's build-time adapter (task
|
|
13
|
+
`generate:ui-tokens`), which reads the
|
|
14
14
|
pinned npm dependency at generation time. Only these declarations ship: the
|
|
15
15
|
gray ramp, `--indigo-6`, two border sizes, the font weights, and two
|
|
16
16
|
line-heights — everything else in the token layer is first-party.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openelement/ui",
|
|
3
|
-
"version": "1.0.0-alpha.
|
|
3
|
+
"version": "1.0.0-alpha.4",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./src/index.js",
|
|
6
6
|
"types": "./src/index.d.ts",
|
|
@@ -82,13 +82,17 @@
|
|
|
82
82
|
"keywords": [
|
|
83
83
|
"openelement",
|
|
84
84
|
"web-components",
|
|
85
|
-
"
|
|
86
|
-
"
|
|
87
|
-
"
|
|
85
|
+
"ui",
|
|
86
|
+
"design-tokens",
|
|
87
|
+
"open-props",
|
|
88
88
|
"experimental"
|
|
89
89
|
],
|
|
90
|
+
"engines": {
|
|
91
|
+
"node": ">=24"
|
|
92
|
+
},
|
|
93
|
+
"sideEffects": false,
|
|
90
94
|
"peerDependenciesMeta": {},
|
|
91
95
|
"dependencies": {
|
|
92
|
-
"@openelement/element": "1.0.0-alpha.
|
|
96
|
+
"@openelement/element": "1.0.0-alpha.4"
|
|
93
97
|
}
|
|
94
98
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
|
-
"$comment": "GENERATED FILE - do not edit. Regenerate with: deno task
|
|
2
|
+
"$comment": "GENERATED FILE - do not edit. Regenerate with: deno task generate:ui-manifest (drift gate: ui-manifest:check).",
|
|
3
3
|
"schemaVersion": "1.0.0",
|
|
4
4
|
"packageName": "@openelement/ui",
|
|
5
|
-
"version": "1.0.0-alpha.
|
|
5
|
+
"version": "1.0.0-alpha.4",
|
|
6
6
|
"description": "Open Props Web Component library for openElement",
|
|
7
7
|
"author": "openElement",
|
|
8
8
|
"license": "MIT",
|
package/src/manifest.d.ts
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
* @openelement/ui - Generated Package Manifest
|
|
3
3
|
*
|
|
4
4
|
* Imports the tracked, generated manifest JSON (a reviewed package contract,
|
|
5
|
-
* not a build cache). Generator:
|
|
6
|
-
* with `deno task
|
|
7
|
-
* `deno task
|
|
5
|
+
* not a build cache). Generator: the ui manifest task; regenerate
|
|
6
|
+
* with `deno task generate:ui-manifest`, drift gate with
|
|
7
|
+
* `deno task ui-manifest:check` (wired into the source gate).
|
|
8
8
|
*/ import type { OpenElementPackageManifest } from '@openelement/element';
|
|
9
9
|
/** The build-time generated package manifest (declarations for every UI component). */ export declare const manifest: OpenElementPackageManifest;
|
package/src/manifest.js
CHANGED
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
* @openelement/ui - Generated Package Manifest
|
|
3
3
|
*
|
|
4
4
|
* Imports the tracked, generated manifest JSON (a reviewed package contract,
|
|
5
|
-
* not a build cache). Generator:
|
|
6
|
-
* with `deno task
|
|
7
|
-
* `deno task
|
|
5
|
+
* not a build cache). Generator: the ui manifest task; regenerate
|
|
6
|
+
* with `deno task generate:ui-manifest`, drift gate with
|
|
7
|
+
* `deno task ui-manifest:check` (wired into the source gate).
|
|
8
8
|
*/ import manifestData from './generated-manifest.json' with {
|
|
9
9
|
type: 'json'
|
|
10
10
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* GENERATED — do not edit; source: open-props@1.7.23 (MIT) + semantic-tokens.css.
|
|
3
|
-
* Regenerate with: deno task
|
|
3
|
+
* Regenerate with: deno task generate:ui-tokens
|
|
4
4
|
*/ import { type StyleSheetLike } from '@openelement/element';
|
|
5
5
|
/**
|
|
6
6
|
* The full token set as one constructable sheet. The token block selects
|
package/src/open-props-tokens.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* GENERATED — do not edit; source: open-props@1.7.23 (MIT) + semantic-tokens.css.
|
|
3
|
-
* Regenerate with: deno task
|
|
3
|
+
* Regenerate with: deno task generate:ui-tokens
|
|
4
4
|
*/ import { StyleSheet } from '@openelement/element';
|
|
5
5
|
const OPEN_PROPS_TOKEN_CSS = `/**
|
|
6
6
|
* GENERATED — do not edit; source: open-props@1.7.23 (MIT) + semantic-tokens.css.
|
|
7
|
-
* Regenerate with: deno task
|
|
7
|
+
* Regenerate with: deno task generate:ui-tokens
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
10
|
/**
|
|
@@ -14,8 +14,8 @@ const OPEN_PROPS_TOKEN_CSS = `/**
|
|
|
14
14
|
* themes, the :host structural fallback, and the CJK font stacks. Tokens that
|
|
15
15
|
* match upstream open-props verbatim (gray ramp, indigo-6, border sizes,
|
|
16
16
|
* font weights, two line-heights) are NOT listed here — they are injected at
|
|
17
|
-
* the @upstream-tokens anchor below by
|
|
18
|
-
* (deno task
|
|
17
|
+
* the @upstream-tokens anchor below by the ui tokens generator
|
|
18
|
+
* (deno task generate:ui-tokens), which reads them from the real
|
|
19
19
|
* open-props npm dependency. Do not re-add them here: the generator fails on
|
|
20
20
|
* any duplication.
|
|
21
21
|
*
|
package/src/register.js
CHANGED
|
@@ -8,7 +8,7 @@ import { OpenDropdown } from './open-dropdown.js';
|
|
|
8
8
|
import { OpenInput } from './open-input.js';
|
|
9
9
|
import { OpenTabs } from './open-tabs.js';
|
|
10
10
|
import { OpenThemeToggle } from './open-theme-toggle.js';
|
|
11
|
-
//
|
|
11
|
+
// Compiled modules carry no runtime tagName export (the compiled
|
|
12
12
|
// program owns the tag), so the registration table lives here, beside the
|
|
13
13
|
// class imports. Keep aligned with manifest.declarations order.
|
|
14
14
|
const COMPONENTS = [
|
package/src/semantic-tokens.css
CHANGED
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
* themes, the :host structural fallback, and the CJK font stacks. Tokens that
|
|
6
6
|
* match upstream open-props verbatim (gray ramp, indigo-6, border sizes,
|
|
7
7
|
* font weights, two line-heights) are NOT listed here — they are injected at
|
|
8
|
-
* the @upstream-tokens anchor below by
|
|
9
|
-
* (deno task
|
|
8
|
+
* the @upstream-tokens anchor below by the ui tokens generator
|
|
9
|
+
* (deno task generate:ui-tokens), which reads them from the real
|
|
10
10
|
* open-props npm dependency. Do not re-add them here: the generator fails on
|
|
11
11
|
* any duplication.
|
|
12
12
|
*
|