@openelement/ui 0.41.0-alpha.1
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/LICENSE +21 -0
- package/README.md +78 -0
- package/package.json +142 -0
- package/src/daisy-classes.d.ts +7 -0
- package/src/daisy-classes.js +770 -0
- package/src/index.d.ts +57 -0
- package/src/index.js +62 -0
- package/src/manifest.d.ts +8 -0
- package/src/manifest.js +255 -0
- package/src/open-badge.d.ts +15 -0
- package/src/open-badge.js +88 -0
- package/src/open-brand-mark.d.ts +14 -0
- package/src/open-brand-mark.js +107 -0
- package/src/open-button.d.ts +38 -0
- package/src/open-button.js +219 -0
- package/src/open-callout.d.ts +26 -0
- package/src/open-callout.js +99 -0
- package/src/open-card.d.ts +33 -0
- package/src/open-card.js +107 -0
- package/src/open-code-block.d.ts +44 -0
- package/src/open-code-block.js +267 -0
- package/src/open-dialog.d.ts +47 -0
- package/src/open-dialog.js +235 -0
- package/src/open-dropdown.d.ts +25 -0
- package/src/open-dropdown.js +45 -0
- package/src/open-hero-ping.d.ts +27 -0
- package/src/open-hero-ping.js +136 -0
- package/src/open-input.d.ts +51 -0
- package/src/open-input.js +233 -0
- package/src/open-lab-panel.d.ts +16 -0
- package/src/open-lab-panel.js +151 -0
- package/src/open-lab-stage.d.ts +15 -0
- package/src/open-lab-stage.js +622 -0
- package/src/open-layout.d.ts +111 -0
- package/src/open-layout.js +1377 -0
- package/src/open-modal.d.ts +25 -0
- package/src/open-modal.js +48 -0
- package/src/open-props-tokens.d.ts +7 -0
- package/src/open-props-tokens.js +474 -0
- package/src/open-standards-visual.d.ts +20 -0
- package/src/open-standards-visual.js +425 -0
- package/src/open-step-card.d.ts +34 -0
- package/src/open-step-card.js +117 -0
- package/src/open-tabs.d.ts +27 -0
- package/src/open-tabs.js +56 -0
- package/src/open-theme-toggle.d.ts +38 -0
- package/src/open-theme-toggle.js +223 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Zhi
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
# @openelement/ui
|
|
2
|
+
|
|
3
|
+
openElement UI product package.
|
|
4
|
+
|
|
5
|
+
The components are first-party `open-*` Web Components. They are designed to
|
|
6
|
+
prove the openElement Elements model with shadow/DSD output, explicit light DOM
|
|
7
|
+
where needed, and island upgrade. ADR-0099 makes UI one of the four first-class
|
|
8
|
+
products and keeps external UI libraries out of the current default target.
|
|
9
|
+
|
|
10
|
+
As of v0.40.8, there is **no Linear compatibility layer**. The legacy
|
|
11
|
+
`open-*-linear` components and `linear-token-sheet` token sheet have been
|
|
12
|
+
removed from the public surface. Use the canonical Open Props components and
|
|
13
|
+
`@openelement/ui/open-props-tokens` instead.
|
|
14
|
+
|
|
15
|
+
## Install
|
|
16
|
+
|
|
17
|
+
```bash
|
|
18
|
+
npm install @openelement/ui
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
## Components
|
|
22
|
+
|
|
23
|
+
| Component | Tag | Notes |
|
|
24
|
+
| ----------------- | ------------------- | ------------------------------ |
|
|
25
|
+
| `OpenButton` | `open-button` | Button component. |
|
|
26
|
+
| `OpenInput` | `open-input` | Input component. |
|
|
27
|
+
| `OpenCard` | `open-card` | Content card. |
|
|
28
|
+
| `OpenCodeBlock` | `open-code-block` | Code block with copy behavior. |
|
|
29
|
+
| `OpenLayout` | `open-layout` | Docs/layout shell. |
|
|
30
|
+
| `OpenThemeToggle` | `open-theme-toggle` | Theme switch island. |
|
|
31
|
+
| `OpenHeroPing` | `open-hero-ping` | Status indicator. |
|
|
32
|
+
| `OpenDialog` | `open-dialog` | Dialog component. |
|
|
33
|
+
| `OpenCallout` | `open-callout` | Callout/notice box. |
|
|
34
|
+
| `OpenStepCard` | `open-step-card` | Step card. |
|
|
35
|
+
|
|
36
|
+
## Package Manifest
|
|
37
|
+
|
|
38
|
+
`@openelement/ui` exports a CEM-compatible `manifest` so openElement can include these
|
|
39
|
+
components in package manifest scanning:
|
|
40
|
+
|
|
41
|
+
```ts
|
|
42
|
+
import { openElement } from '@openelement/app/vite';
|
|
43
|
+
|
|
44
|
+
export default {
|
|
45
|
+
plugins: [
|
|
46
|
+
openElement({
|
|
47
|
+
packageIslands: ['@openelement/ui'],
|
|
48
|
+
}),
|
|
49
|
+
],
|
|
50
|
+
};
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
The manifest includes attributes, events, slots, CSS parts, SSR renderability,
|
|
54
|
+
DSD behavior, and hydration strategy metadata.
|
|
55
|
+
|
|
56
|
+
## Subpath Exports
|
|
57
|
+
|
|
58
|
+
```text
|
|
59
|
+
@openelement/ui/open-button
|
|
60
|
+
@openelement/ui/open-input
|
|
61
|
+
@openelement/ui/open-card
|
|
62
|
+
@openelement/ui/open-code-block
|
|
63
|
+
@openelement/ui/open-layout
|
|
64
|
+
@openelement/ui/open-step-card
|
|
65
|
+
@openelement/ui/open-callout
|
|
66
|
+
@openelement/ui/open-theme-toggle
|
|
67
|
+
@openelement/ui/open-hero-ping
|
|
68
|
+
@openelement/ui/open-dialog
|
|
69
|
+
@openelement/ui/open-dropdown
|
|
70
|
+
@openelement/ui/open-modal
|
|
71
|
+
@openelement/ui/open-tabs
|
|
72
|
+
@openelement/ui/open-props-tokens
|
|
73
|
+
@openelement/ui/daisy-classes
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
## License
|
|
77
|
+
|
|
78
|
+
MIT
|
package/package.json
ADDED
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@openelement/ui",
|
|
3
|
+
"version": "0.41.0-alpha.1",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"main": "./src/index.js",
|
|
6
|
+
"types": "./src/index.d.ts",
|
|
7
|
+
"exports": {
|
|
8
|
+
".": {
|
|
9
|
+
"types": "./src/index.d.ts",
|
|
10
|
+
"import": "./src/index.js",
|
|
11
|
+
"default": "./src/index.js"
|
|
12
|
+
},
|
|
13
|
+
"./open-button": {
|
|
14
|
+
"types": "./src/open-button.d.ts",
|
|
15
|
+
"import": "./src/open-button.js",
|
|
16
|
+
"default": "./src/open-button.js"
|
|
17
|
+
},
|
|
18
|
+
"./open-card": {
|
|
19
|
+
"types": "./src/open-card.d.ts",
|
|
20
|
+
"import": "./src/open-card.js",
|
|
21
|
+
"default": "./src/open-card.js"
|
|
22
|
+
},
|
|
23
|
+
"./open-input": {
|
|
24
|
+
"types": "./src/open-input.d.ts",
|
|
25
|
+
"import": "./src/open-input.js",
|
|
26
|
+
"default": "./src/open-input.js"
|
|
27
|
+
},
|
|
28
|
+
"./open-code-block": {
|
|
29
|
+
"types": "./src/open-code-block.d.ts",
|
|
30
|
+
"import": "./src/open-code-block.js",
|
|
31
|
+
"default": "./src/open-code-block.js"
|
|
32
|
+
},
|
|
33
|
+
"./open-badge": {
|
|
34
|
+
"types": "./src/open-badge.d.ts",
|
|
35
|
+
"import": "./src/open-badge.js",
|
|
36
|
+
"default": "./src/open-badge.js"
|
|
37
|
+
},
|
|
38
|
+
"./open-brand-mark": {
|
|
39
|
+
"types": "./src/open-brand-mark.d.ts",
|
|
40
|
+
"import": "./src/open-brand-mark.js",
|
|
41
|
+
"default": "./src/open-brand-mark.js"
|
|
42
|
+
},
|
|
43
|
+
"./open-lab-panel": {
|
|
44
|
+
"types": "./src/open-lab-panel.d.ts",
|
|
45
|
+
"import": "./src/open-lab-panel.js",
|
|
46
|
+
"default": "./src/open-lab-panel.js"
|
|
47
|
+
},
|
|
48
|
+
"./open-lab-stage": {
|
|
49
|
+
"types": "./src/open-lab-stage.d.ts",
|
|
50
|
+
"import": "./src/open-lab-stage.js",
|
|
51
|
+
"default": "./src/open-lab-stage.js"
|
|
52
|
+
},
|
|
53
|
+
"./open-standards-visual": {
|
|
54
|
+
"types": "./src/open-standards-visual.d.ts",
|
|
55
|
+
"import": "./src/open-standards-visual.js",
|
|
56
|
+
"default": "./src/open-standards-visual.js"
|
|
57
|
+
},
|
|
58
|
+
"./open-layout": {
|
|
59
|
+
"types": "./src/open-layout.d.ts",
|
|
60
|
+
"import": "./src/open-layout.js",
|
|
61
|
+
"default": "./src/open-layout.js"
|
|
62
|
+
},
|
|
63
|
+
"./open-theme-toggle": {
|
|
64
|
+
"types": "./src/open-theme-toggle.d.ts",
|
|
65
|
+
"import": "./src/open-theme-toggle.js",
|
|
66
|
+
"default": "./src/open-theme-toggle.js"
|
|
67
|
+
},
|
|
68
|
+
"./open-hero-ping": {
|
|
69
|
+
"types": "./src/open-hero-ping.d.ts",
|
|
70
|
+
"import": "./src/open-hero-ping.js",
|
|
71
|
+
"default": "./src/open-hero-ping.js"
|
|
72
|
+
},
|
|
73
|
+
"./open-dialog": {
|
|
74
|
+
"types": "./src/open-dialog.d.ts",
|
|
75
|
+
"import": "./src/open-dialog.js",
|
|
76
|
+
"default": "./src/open-dialog.js"
|
|
77
|
+
},
|
|
78
|
+
"./open-callout": {
|
|
79
|
+
"types": "./src/open-callout.d.ts",
|
|
80
|
+
"import": "./src/open-callout.js",
|
|
81
|
+
"default": "./src/open-callout.js"
|
|
82
|
+
},
|
|
83
|
+
"./open-step-card": {
|
|
84
|
+
"types": "./src/open-step-card.d.ts",
|
|
85
|
+
"import": "./src/open-step-card.js",
|
|
86
|
+
"default": "./src/open-step-card.js"
|
|
87
|
+
},
|
|
88
|
+
"./open-dropdown": {
|
|
89
|
+
"types": "./src/open-dropdown.d.ts",
|
|
90
|
+
"import": "./src/open-dropdown.js",
|
|
91
|
+
"default": "./src/open-dropdown.js"
|
|
92
|
+
},
|
|
93
|
+
"./open-modal": {
|
|
94
|
+
"types": "./src/open-modal.d.ts",
|
|
95
|
+
"import": "./src/open-modal.js",
|
|
96
|
+
"default": "./src/open-modal.js"
|
|
97
|
+
},
|
|
98
|
+
"./open-tabs": {
|
|
99
|
+
"types": "./src/open-tabs.d.ts",
|
|
100
|
+
"import": "./src/open-tabs.js",
|
|
101
|
+
"default": "./src/open-tabs.js"
|
|
102
|
+
},
|
|
103
|
+
"./daisy-classes": {
|
|
104
|
+
"types": "./src/daisy-classes.d.ts",
|
|
105
|
+
"import": "./src/daisy-classes.js",
|
|
106
|
+
"default": "./src/daisy-classes.js"
|
|
107
|
+
},
|
|
108
|
+
"./daisy-classes.js": {
|
|
109
|
+
"types": "./src/daisy-classes.d.ts",
|
|
110
|
+
"import": "./src/daisy-classes.js",
|
|
111
|
+
"default": "./src/daisy-classes.js"
|
|
112
|
+
},
|
|
113
|
+
"./open-props-tokens": {
|
|
114
|
+
"types": "./src/open-props-tokens.d.ts",
|
|
115
|
+
"import": "./src/open-props-tokens.js",
|
|
116
|
+
"default": "./src/open-props-tokens.js"
|
|
117
|
+
},
|
|
118
|
+
"./open-props-tokens.js": {
|
|
119
|
+
"types": "./src/open-props-tokens.d.ts",
|
|
120
|
+
"import": "./src/open-props-tokens.js",
|
|
121
|
+
"default": "./src/open-props-tokens.js"
|
|
122
|
+
}
|
|
123
|
+
},
|
|
124
|
+
"dependencies": {
|
|
125
|
+
"@openelement/element": "^0.41.0-alpha.1",
|
|
126
|
+
"@openelement/core": "^0.41.0-alpha.1",
|
|
127
|
+
"@openelement/signal": "^0.41.0-alpha.1",
|
|
128
|
+
"@openelement/protocol": "^0.41.0-alpha.1",
|
|
129
|
+
"@deno/shim-deno": "~0.19.0"
|
|
130
|
+
},
|
|
131
|
+
"repository": {
|
|
132
|
+
"type": "git",
|
|
133
|
+
"url": "git+https://github.com/open-element/openelement.git"
|
|
134
|
+
},
|
|
135
|
+
"keywords": [
|
|
136
|
+
"openelement",
|
|
137
|
+
"web-components",
|
|
138
|
+
"ssg",
|
|
139
|
+
"framework",
|
|
140
|
+
"deno"
|
|
141
|
+
]
|
|
142
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @openelement/ui - daisyUI forked CSS classes (Pure CSS, Open Props tokens)
|
|
3
|
+
*
|
|
4
|
+
* Inlined at build time so consumers do not need to ship a separate CSS asset
|
|
5
|
+
* and SSR bundles do not depend on a file-system path next to import.meta.url.
|
|
6
|
+
*/ import { type StyleSheetLike } from '@openelement/core/style-sheet';
|
|
7
|
+
export declare const daisyClassSheet: StyleSheetLike;
|