@openelement/ui 1.0.0-alpha.13 → 1.0.0-alpha.15
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/CUSTOMIZATION.md +173 -41
- package/README.md +10 -7
- package/package.json +2 -2
- package/src/generated-manifest.json +46 -10
- package/src/open-button.css +119 -108
- package/src/open-button.d.ts +78 -27
- package/src/open-button.js +157 -232
- package/src/open-code-block.css +24 -44
- package/src/open-code-block.d.ts +3 -1
- package/src/open-code-block.js +28 -3
- package/src/open-dialog.css +114 -127
- package/src/open-dialog.d.ts +3 -1
- package/src/open-dialog.js +43 -8
- package/src/open-dropdown.css +20 -26
- package/src/open-dropdown.d.ts +3 -1
- package/src/open-dropdown.js +14 -4
- package/src/open-input.css +58 -80
- package/src/open-input.d.ts +4 -26
- package/src/open-input.js +86 -140
- package/src/open-theme-toggle.css +37 -47
- package/src/open-theme-toggle.d.ts +3 -1
- package/src/open-theme-toggle.js +27 -5
- package/src/theme.css +26 -8
- package/src/control-recipe.css +0 -21
package/CUSTOMIZATION.md
CHANGED
|
@@ -16,8 +16,95 @@ to the 1.0.0-alpha.8 baseline.
|
|
|
16
16
|
- **Consumed variables are pinned at the C3 role-direct baseline.** Adding or
|
|
17
17
|
removing a `var()` reference in a recipe is a deliberate surface change: the
|
|
18
18
|
guard fails until the pin and this document are updated in the same change.
|
|
19
|
-
- Component internals
|
|
20
|
-
the
|
|
19
|
+
- Component internals are authored as **Tailwind utilities** wherever a class
|
|
20
|
+
utility is the clearest form. The compiler admits every static class token and
|
|
21
|
+
the build's shadow component stylesheet (theme + utilities) carries the
|
|
22
|
+
generated rules into the component's shadow root. What stays in the
|
|
23
|
+
component's `.css` sheet is what reads better as one owned rule — see
|
|
24
|
+
[Why the residue is CSS](#why-the-residue-is-css). **This makes a Tailwind
|
|
25
|
+
entry a requirement of the consuming app** (`tailwind: { theme: [...] }` in
|
|
26
|
+
`openelement.config.ts` — the scaffold's single default form): without it the
|
|
27
|
+
component stylesheet is not emitted and the utilities are not delivered. That
|
|
28
|
+
is the MANUAL path. A package that declares its own requirement admits the
|
|
29
|
+
entry by itself in automatic mode — this package does exactly
|
|
30
|
+
that, which is why a consumer that admits `@openelement/ui` needs no
|
|
31
|
+
`tailwind` key at all.
|
|
32
|
+
- Colours still come from this role table, never from a literal — either a role
|
|
33
|
+
variable in the sheet or a utility generated from a role (`bg-primary/14`
|
|
34
|
+
compiles to `color-mix` on `--color-primary`). The guard fails on a raw
|
|
35
|
+
colour literal in a declaration, because a literal escapes the light, dark
|
|
36
|
+
and forced-colors seats the roles guarantee.
|
|
37
|
+
|
|
38
|
+
### Why the residue is CSS
|
|
39
|
+
|
|
40
|
+
An earlier revision of this document and of the component sheets said the
|
|
41
|
+
retained rules "cannot be a class utility": a utility could not select the
|
|
42
|
+
host's attribute from inside the shadow root, the compiler admitted only
|
|
43
|
+
two-branch conditionals, and `color-mix` over role pairs was out of reach. That
|
|
44
|
+
is **not true of the official engine**, and it is not a good reason to keep
|
|
45
|
+
anything. Measured with the installed `tailwindcss` (the same compiler the build
|
|
46
|
+
mounts), every one of those shapes has a real utility spelling:
|
|
47
|
+
|
|
48
|
+
| Shape | Utility spelling | Compiles to |
|
|
49
|
+
|---|---|---|
|
|
50
|
+
| host attribute | `[:host([size='sm'])_&]:p-1` | `:host([size='sm']) .[…]\/\:p-1 { padding: var(--spacing) }` |
|
|
51
|
+
| form-associated state | `[:host(:state(invalid))_&]:border-destructive` | `:host(:state(invalid)) .[…]\/\:border-destructive { border-color: var(--color-destructive) }` |
|
|
52
|
+
| derived role mix | `bg-[color-mix(in_srgb,var(--color-popover)_78%,transparent)]` | the mix, with `var(--color-popover)` kept in the supported branch |
|
|
53
|
+
| pseudo-class | `focus:border-primary` | `.focus\:border-primary:focus { border-color: var(--color-primary) }` |
|
|
54
|
+
|
|
55
|
+
What the residue actually rests on is **readability and size**, measured on
|
|
56
|
+
open-button's size matrix rather than asserted:
|
|
57
|
+
|
|
58
|
+
- the retained sheet block: **444 bytes**;
|
|
59
|
+
- the equivalent utilities: **998 bytes** of class attribute — the same tokens
|
|
60
|
+
are needed on both rendered controls (the anchor branch and the button
|
|
61
|
+
branch) — plus **1,881 bytes** of generated rules, each selector a mangled
|
|
62
|
+
escape (`:host(:not([size])) .\[\:host\(\:not\(\[size\]\)\)_\&\]\:min-h-\[38px\]`);
|
|
63
|
+
- total **≈ 6.5×**, for the same three branches.
|
|
64
|
+
|
|
65
|
+
There is no capability limit left to claim. The transition configuration this
|
|
66
|
+
document used to call one — `@starting-style` and
|
|
67
|
+
`transition-behavior: allow-discrete` — is expressible too, and was measured:
|
|
68
|
+
`starting:opacity-0` compiles into an `@starting-style` block and
|
|
69
|
+
`transition-discrete` into `transition-behavior: allow-discrete`. What the
|
|
70
|
+
sheets keep is therefore a deliberate choice of clarity, size or single
|
|
71
|
+
ownership in every case, never an "impossible". The guards hold both sides to
|
|
72
|
+
that: every generated colour must resolve to a declared role
|
|
73
|
+
(`__tests__/utility-colour-roles.test.ts`) and every class a sheet selects must
|
|
74
|
+
be carried by its own markup (`__tests__/customization-surface.test.ts`).
|
|
75
|
+
|
|
76
|
+
### What is NOT part of this contract
|
|
77
|
+
|
|
78
|
+
The declared surface is the two lists above: **`::part` names and the consumed
|
|
79
|
+
role variables.** Everything else a component class exposes on its type — its
|
|
80
|
+
internal class hooks, its computed signals, its methods — sits OUTSIDE those
|
|
81
|
+
lists, which is not the same as being ungoverned. Every one of them is a
|
|
82
|
+
published type shape: the package's retained-interface baseline (a checked-in
|
|
83
|
+
snapshot, verified by the repository's `interface:snapshot` task) fails on any
|
|
84
|
+
change until the
|
|
85
|
+
decision is made and the baseline is regenerated in the same change, and the
|
|
86
|
+
experimental disclaimer (owner ruling C1, #1468) is what lets such a decision be
|
|
87
|
+
"removed" rather than "kept forever". There is no blanket rule that exported
|
|
88
|
+
types may churn; there is a per-change decision, recorded and pinned. The two
|
|
89
|
+
cases below are exactly that — individual decisions, not precedents that make
|
|
90
|
+
the next one free:
|
|
91
|
+
|
|
92
|
+
- **Internal class hooks are not a contract.** A class a sheet selects
|
|
93
|
+
(`open-button`'s `btn`, `open-input`'s `control`) is internal: an element in a
|
|
94
|
+
shadow root can only be reached through its `::part`, so no consumer can
|
|
95
|
+
address a hook directly. The hook-name guard
|
|
96
|
+
(`__tests__/customization-surface.test.ts`) keeps the sheet and the markup
|
|
97
|
+
spelling the same hook, which is what stops a rename from silently killing
|
|
98
|
+
rules; it does not make the name public.
|
|
99
|
+
- **A retired class-carrying signal is not a compatibility break.** The alpha15
|
|
100
|
+
S lane deleted `OpenInput.inputClass`, a computed whose only value was the
|
|
101
|
+
internal class string (`'control input input--error'`) and whose only
|
|
102
|
+
consumer was the `class=` binding that is now a static literal. It was never
|
|
103
|
+
an attribute (it could not be set from markup) and never part of the lists
|
|
104
|
+
above. It is retired rather than restored: re-adding a signal with no
|
|
105
|
+
behavior would keep a type shape green while telling a consumer nothing true.
|
|
106
|
+
The same change retired the `input--error` class: `:host(:state(invalid))`
|
|
107
|
+
owns that border.
|
|
21
108
|
|
|
22
109
|
## Theming model
|
|
23
110
|
|
|
@@ -55,12 +142,13 @@ token module — the retired `@openelement/ui/theme-tokens`
|
|
|
55
142
|
`var(--color-*)` / `var(--spacing)` / etc.; until the host supplies those
|
|
56
143
|
variables the recipes resolve to nothing. Values have exactly two suppliers:
|
|
57
144
|
|
|
58
|
-
- **
|
|
59
|
-
`theme.css` through the
|
|
60
|
-
['@openelement/ui/theme.css'] }`), emitting the roles
|
|
61
|
-
scale layer
|
|
62
|
-
router-ui-dogfood
|
|
63
|
-
|
|
145
|
+
- **Entry ON**: a `@openelement/router` Tailwind build compiles
|
|
146
|
+
`theme.css` through the official `@tailwindcss/vite` pipeline
|
|
147
|
+
(`tailwind: { theme: ['@openelement/ui/theme.css'] }`), emitting the roles
|
|
148
|
+
plus Tailwind's own scale layer into the head-linked document stylesheet.
|
|
149
|
+
This is the first-party delivery (the www site and the router-ui-dogfood
|
|
150
|
+
fixture).
|
|
151
|
+
- **Entry OFF**: the consumer writes its own table. The only requirement is
|
|
64
152
|
that it defines the role names (and any scale variables the recipes
|
|
65
153
|
consume, e.g. `--spacing`, `--radius-md`) under the same selectors.
|
|
66
154
|
Minimal shape, values illustrative:
|
|
@@ -93,6 +181,38 @@ The full role-name inventory is the `@theme` block of
|
|
|
93
181
|
`--color-info`, `--color-border`, `--color-input`, `--color-ring`, and
|
|
94
182
|
`--color-chart-1` … `--color-chart-5`.
|
|
95
183
|
|
|
184
|
+
### Which engine compiles the components (alpha15 stage 2B)
|
|
185
|
+
|
|
186
|
+
This package's components author their control surfaces as **`tailwind4`-dialect
|
|
187
|
+
utility tokens** and declare exactly that in their manifest entries
|
|
188
|
+
(`openElement.tailwind.dialect: 'tailwind4'`, the default). The declaration
|
|
189
|
+
names the class LANGUAGE, never an engine: it is what makes the components
|
|
190
|
+
portable to any provider that implements the dialect.
|
|
191
|
+
|
|
192
|
+
- **Tailwind 4** implements it natively — the first-party default
|
|
193
|
+
(`tailwind: { theme: ['@openelement/ui/theme.css'] }`).
|
|
194
|
+
- **UnoCSS** implements the dialect through its official `presetWind4`, but
|
|
195
|
+
THIS PACKAGE IS NOT SELECTABLE UNDER IT TODAY. An application that selects
|
|
196
|
+
`unocss` and admits `@openelement/ui` fails closed at plan time with
|
|
197
|
+
`OE_PRESET_UNOCSS_THEME_SOURCE_INCOMPATIBLE`, because the package's declared
|
|
198
|
+
role table is the `@theme` source below. Being portable in class tokens is
|
|
199
|
+
not the same as being selectable with this package's theme source, and the
|
|
200
|
+
framework does not substitute one for the other: the coded refusal is the
|
|
201
|
+
supported answer until a shipped mechanism lets an application point an
|
|
202
|
+
UnoCSS build at a plain-CSS role table for this package.
|
|
203
|
+
- A provider that does NOT implement `tailwind4` fails the build
|
|
204
|
+
(`OE_PRESET_STYLE_DIALECT_UNSUPPORTED`) before anything compiles — a
|
|
205
|
+
component is never delivered half-styled.
|
|
206
|
+
|
|
207
|
+
Because `theme.css` is a Tailwind `@theme` source, it is a **Tailwind** engine
|
|
208
|
+
source, not a portable one. Under UnoCSS the same roles would come from a
|
|
209
|
+
plain-CSS token file the application owns (Open Props, its own `:root`
|
|
210
|
+
table, …); the role NAMES in this document stay the contract either way. The
|
|
211
|
+
router refuses a `@theme` source under UnoCSS
|
|
212
|
+
(`OE_PRESET_UNOCSS_THEME_SOURCE_INCOMPATIBLE`) rather than silently dropping
|
|
213
|
+
the roles it declares — which is why the combination above is refused instead
|
|
214
|
+
of half-styled.
|
|
215
|
+
|
|
96
216
|
## alpha8 → C3 variable rename map
|
|
97
217
|
|
|
98
218
|
The retired alias names are gone. The notable re-seats (consumers renaming
|
|
@@ -148,35 +268,41 @@ custom properties.
|
|
|
148
268
|
|
|
149
269
|
- Parts: `control`
|
|
150
270
|
- Variables: `--color-border`, `--color-foreground`, `--color-popover`,
|
|
151
|
-
`--color-primary`, `--color-primary-foreground`, `--color-
|
|
152
|
-
`--color-
|
|
153
|
-
`--ease-out`, `--font-sans`, `--font-weight-extrabold`, `--radius-md`,
|
|
271
|
+
`--color-primary`, `--color-primary-foreground`, `--color-violet-400`,
|
|
272
|
+
`--color-white`, `--default-transition-duration`, `--ease-out`,
|
|
154
273
|
`--shadow-sm`, `--spacing`, `--text-base`, `--text-sm`, `--text-xl`
|
|
155
|
-
-
|
|
274
|
+
- The base treatment (inline flex box, gap, typography, radius, cursor,
|
|
275
|
+
white-space), the focus ring and the disabled / aria-disabled states are
|
|
276
|
+
authored as Tailwind utilities (alpha15 S lane). The sheet keeps the host
|
|
277
|
+
box, the `[hidden]` rule, the size and variant surfaces (host-attribute
|
|
278
|
+
scoped: the utility spelling exists — `[:host([size='sm'])_&]:p-1` compiles —
|
|
279
|
+
and costs ≈6.5× the bytes for the same branches; see
|
|
280
|
+
[Why the residue is CSS](#why-the-residue-is-css)), the derived base surface,
|
|
281
|
+
and the form-associated disabled state. Variant `primary`/`accent` fill with
|
|
156
282
|
`--color-primary` over `--color-primary-foreground`.
|
|
157
283
|
|
|
158
284
|
### `open-code-block`
|
|
159
285
|
|
|
160
286
|
- Parts: `copy`
|
|
161
|
-
- Variables: `--color-destructive`, `--color-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
287
|
+
- Variables: `--color-destructive`, `--color-success`
|
|
288
|
+
- The chip's presentation is authored as Tailwind utilities (alpha15 S lane);
|
|
289
|
+
the sheet keeps the host box and the `:state(copied)` / `:state(failed)`
|
|
290
|
+
feedback, which paint the two status roles above.
|
|
165
291
|
- Since #1552 the component owns the copy chip only: the code surface and the
|
|
166
292
|
token inks belong to the host's build-time highlight pipeline and its
|
|
167
293
|
stylesheet, so the former Prism-derived token palette and surface variables
|
|
168
|
-
left the pinned surface in the same deliberate edit
|
|
169
|
-
the theme-aware `--color-foreground` role).
|
|
294
|
+
left the pinned surface in the same deliberate edit.
|
|
170
295
|
|
|
171
296
|
### `open-dialog`
|
|
172
297
|
|
|
173
298
|
- Parts: `overlay`, `header`, `close`, `body`, `footer`
|
|
174
|
-
- Variables: `--color-border`, `--color-foreground`,
|
|
175
|
-
`--color-
|
|
176
|
-
`--
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
299
|
+
- Variables: `--color-border`, `--color-foreground`, `--color-popover`,
|
|
300
|
+
`--color-primary`, `--color-white`, `--color-zinc-950`, `--shadow-2xl`,
|
|
301
|
+
`--spacing`
|
|
302
|
+
- The dialog box and the header / title / close / body / footer presentation
|
|
303
|
+
are authored as Tailwind utilities (alpha15 S lane). The sheet keeps the
|
|
304
|
+
host box, the trigger slot's cursor, the derived frame (a
|
|
305
|
+
foreground/border/primary triple mix) and the close button's hover wash.
|
|
180
306
|
- Shares the overlay recipe (below); the backdrop composes the zinc-950
|
|
181
307
|
scrim in both themes.
|
|
182
308
|
- Entry and exit animate through `transition-behavior: allow-discrete` +
|
|
@@ -187,36 +313,42 @@ custom properties.
|
|
|
187
313
|
### `open-dropdown`
|
|
188
314
|
|
|
189
315
|
- Parts: `trigger`, `content`
|
|
190
|
-
- Variables: `--
|
|
316
|
+
- Variables: `--spacing` (the anchor-positioning block's gap; the rest of the
|
|
317
|
+
content's presentation is authored as Tailwind utilities)
|
|
191
318
|
- Shares the overlay recipe for the popover surface.
|
|
192
319
|
|
|
193
320
|
### `open-input`
|
|
194
321
|
|
|
195
322
|
- Parts: `wrapper`, `label`, `control`, `error`
|
|
196
|
-
- Variables: `--color-border`, `--color-destructive`, `--color-
|
|
197
|
-
`--color-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
323
|
+
- Variables: `--color-border`, `--color-destructive`, `--color-muted`,
|
|
324
|
+
`--color-popover`, `--color-primary`, `--color-violet-400`, `--spacing`
|
|
325
|
+
- The wrapper layout, the label's typography, the control's box (width,
|
|
326
|
+
padding, font, radius, transition, outline) and the error message's ink are
|
|
327
|
+
authored as Tailwind utilities (alpha15 S lane). The sheet keeps the host
|
|
328
|
+
box, the control's derived surfaces (the popover/border mixes, the violet
|
|
329
|
+
hover border, the focus ring's box-shadow) and the disabled / invalid
|
|
330
|
+
treatments scoped to the host's form state; those states use
|
|
202
331
|
`--color-destructive`.
|
|
203
332
|
|
|
204
333
|
### `open-theme-toggle`
|
|
205
334
|
|
|
206
335
|
- Parts: `toggle`, `icon-sun`, `icon-moon`
|
|
207
|
-
- Variables: `--color-background`, `--color-border`, `--color-
|
|
208
|
-
`--color-
|
|
209
|
-
|
|
210
|
-
|
|
336
|
+
- Variables: `--color-background`, `--color-border`, `--color-popover`,
|
|
337
|
+
`--color-primary`, `--color-violet-400`, `--spacing`
|
|
338
|
+
- The button's element-level presentation (flex box, size, radius, cursor,
|
|
339
|
+
ink, focus ring, transition) is authored as Tailwind utilities (alpha15 S
|
|
340
|
+
lane); the sheet keeps the derived surface, its hover values and the
|
|
341
|
+
`[data-theme]` icon display swap.
|
|
211
342
|
|
|
212
343
|
### Shared recipes (`component-recipes.ts`)
|
|
213
344
|
|
|
214
|
-
- `
|
|
215
|
-
`--color-
|
|
216
|
-
`--
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
345
|
+
- `surface-recipe.css` (`.surface`): `--color-border`, `--color-card`,
|
|
346
|
+
`--color-foreground`, `--color-popover`, `--color-primary`, `--color-white`,
|
|
347
|
+
`--radius-lg`, `--shadow-2xl`, `--spacing`
|
|
348
|
+
- The control recipe retired with the alpha15 utility migration: open-button
|
|
349
|
+
and open-input author their control surface as utilities plus each
|
|
350
|
+
component's own irreducible residue (above), so there is one owner per
|
|
351
|
+
property instead of a shared sheet plus overrides.
|
|
220
352
|
- `overlay-recipe.css` (`.overlay`) adds: `--radius-xl`
|
|
221
353
|
|
|
222
354
|
## Deep customization
|
package/README.md
CHANGED
|
@@ -97,7 +97,7 @@ source, no shipped values:
|
|
|
97
97
|
**The package ships no token values.** The compiled `theme-tokens` twin
|
|
98
98
|
(`themeTokenCss` / `themeTokenSheet`) was deleted in alpha9 C5 — the role
|
|
99
99
|
names, dark pairs and forced-colors tier are the contract; the values come
|
|
100
|
-
from the `@openelement/router` Tailwind
|
|
100
|
+
from the `@openelement/router` Tailwind entry (ON) or a table the consumer
|
|
101
101
|
writes itself (OFF). See [CUSTOMIZATION.md](./CUSTOMIZATION.md),
|
|
102
102
|
"Value delivery".
|
|
103
103
|
|
|
@@ -124,14 +124,17 @@ scanning:
|
|
|
124
124
|
import { openElement } from '@openelement/router/vite';
|
|
125
125
|
|
|
126
126
|
export default {
|
|
127
|
-
plugins: [
|
|
128
|
-
openElement({
|
|
129
|
-
packageIslands: ['@openelement/ui'],
|
|
130
|
-
}),
|
|
131
|
-
],
|
|
127
|
+
plugins: [openElement()],
|
|
132
128
|
};
|
|
133
129
|
```
|
|
134
130
|
|
|
131
|
+
Admission is automatic (`packageIslands` defaults to `'auto'`): the build
|
|
132
|
+
derives the set from the app's real imports, so an ordinary
|
|
133
|
+
`import '@openelement/ui/open-button'` delivers the component once the
|
|
134
|
+
manifest above is visible to the build. The explicit list stays available for
|
|
135
|
+
pinning (`packageIslands: ['@openelement/ui']`) and `'manual'` turns the
|
|
136
|
+
derivation off.
|
|
137
|
+
|
|
135
138
|
The manifest includes attributes, events, slots, CSS parts, SSR renderability,
|
|
136
139
|
DSD behavior, and hydration strategy metadata.
|
|
137
140
|
|
|
@@ -150,7 +153,7 @@ manifest; the per-component JSDoc is the source of truth for those.
|
|
|
150
153
|
@openelement/ui/open-theme-toggle
|
|
151
154
|
@openelement/ui/open-dialog
|
|
152
155
|
@openelement/ui/open-dropdown
|
|
153
|
-
@openelement/ui/theme.css (the @theme role source; compiled through the router
|
|
156
|
+
@openelement/ui/theme.css (the @theme role source; compiled through the router Tailwind entry)
|
|
154
157
|
@openelement/ui/instance-state (per-element instance state store; tree-shakeable leaf)
|
|
155
158
|
@openelement/ui/manifest (generated WC package manifest; node-safe leaf)
|
|
156
159
|
```
|
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.15",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./src/index.js",
|
|
6
6
|
"types": "./src/index.d.ts",
|
|
@@ -75,6 +75,6 @@
|
|
|
75
75
|
"sideEffects": false,
|
|
76
76
|
"peerDependenciesMeta": {},
|
|
77
77
|
"dependencies": {
|
|
78
|
-
"@openelement/element": "1.0.0-alpha.
|
|
78
|
+
"@openelement/element": "1.0.0-alpha.15"
|
|
79
79
|
}
|
|
80
80
|
}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"$comment": "GENERATED FILE - do not edit. Regenerate with: pnpm --filter @openelement/ui run 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.15",
|
|
6
6
|
"description": "Semantic Web Component library for openElement",
|
|
7
7
|
"author": "openElement",
|
|
8
8
|
"license": "MIT",
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"tagName": "open-button",
|
|
14
14
|
"className": "OpenButton",
|
|
15
15
|
"superclassName": "OpenElement",
|
|
16
|
-
"description": "Button or link control: an `href` property switches the compiled anchor",
|
|
16
|
+
"description": "Button or link control: an `href` property switches the compiled anchor branch (no-JS navigation survives SSR), `variant`/`size` pick the styled surface, and the disabled state follows the reflected host attribute.",
|
|
17
17
|
"attributes": [
|
|
18
18
|
{
|
|
19
19
|
"name": "variant",
|
|
@@ -73,14 +73,20 @@
|
|
|
73
73
|
"hydrate": "load",
|
|
74
74
|
"status": "stable",
|
|
75
75
|
"module": "@openelement/ui/open-button",
|
|
76
|
-
"export": "OpenButton"
|
|
76
|
+
"export": "OpenButton",
|
|
77
|
+
"tailwind": {
|
|
78
|
+
"required": true,
|
|
79
|
+
"sources": [
|
|
80
|
+
"./src/theme.css"
|
|
81
|
+
]
|
|
82
|
+
}
|
|
77
83
|
}
|
|
78
84
|
},
|
|
79
85
|
{
|
|
80
86
|
"tagName": "open-input",
|
|
81
87
|
"className": "OpenInput",
|
|
82
88
|
"superclassName": "OpenElement",
|
|
83
|
-
"description": "Form-associated text input with a label, an inline error slot, and native",
|
|
89
|
+
"description": "Form-associated text input with a label, an inline error slot, and native constraint validation (required → valueMissing via setValidity).",
|
|
84
90
|
"attributes": [
|
|
85
91
|
{
|
|
86
92
|
"name": "type",
|
|
@@ -172,14 +178,20 @@
|
|
|
172
178
|
"hydrate": "load",
|
|
173
179
|
"status": "experimental",
|
|
174
180
|
"module": "@openelement/ui/open-input",
|
|
175
|
-
"export": "OpenInput"
|
|
181
|
+
"export": "OpenInput",
|
|
182
|
+
"tailwind": {
|
|
183
|
+
"required": true,
|
|
184
|
+
"sources": [
|
|
185
|
+
"./src/theme.css"
|
|
186
|
+
]
|
|
187
|
+
}
|
|
176
188
|
}
|
|
177
189
|
},
|
|
178
190
|
{
|
|
179
191
|
"tagName": "open-theme-toggle",
|
|
180
192
|
"className": "OpenThemeToggle",
|
|
181
193
|
"superclassName": "OpenElement",
|
|
182
|
-
"description": "Theme toggle button for dark/light mode: reads and flips the document's",
|
|
194
|
+
"description": "Theme toggle button for dark/light mode: reads and flips the document's `data-theme` (with an initialization priority chain) and persists the choice; icon visibility follows the current theme attribute.",
|
|
183
195
|
"attributes": [
|
|
184
196
|
{
|
|
185
197
|
"name": "theme",
|
|
@@ -215,7 +227,13 @@
|
|
|
215
227
|
"hydrate": "load",
|
|
216
228
|
"status": "stable",
|
|
217
229
|
"module": "@openelement/ui/open-theme-toggle",
|
|
218
|
-
"export": "OpenThemeToggle"
|
|
230
|
+
"export": "OpenThemeToggle",
|
|
231
|
+
"tailwind": {
|
|
232
|
+
"required": true,
|
|
233
|
+
"sources": [
|
|
234
|
+
"./src/theme.css"
|
|
235
|
+
]
|
|
236
|
+
}
|
|
219
237
|
}
|
|
220
238
|
},
|
|
221
239
|
{
|
|
@@ -242,7 +260,13 @@
|
|
|
242
260
|
"hydrate": "idle",
|
|
243
261
|
"status": "stable",
|
|
244
262
|
"module": "@openelement/ui/open-code-block",
|
|
245
|
-
"export": "OpenCodeBlock"
|
|
263
|
+
"export": "OpenCodeBlock",
|
|
264
|
+
"tailwind": {
|
|
265
|
+
"required": true,
|
|
266
|
+
"sources": [
|
|
267
|
+
"./src/theme.css"
|
|
268
|
+
]
|
|
269
|
+
}
|
|
246
270
|
}
|
|
247
271
|
},
|
|
248
272
|
{
|
|
@@ -313,7 +337,13 @@
|
|
|
313
337
|
"hydrate": "idle",
|
|
314
338
|
"status": "experimental",
|
|
315
339
|
"module": "@openelement/ui/open-dialog",
|
|
316
|
-
"export": "OpenDialog"
|
|
340
|
+
"export": "OpenDialog",
|
|
341
|
+
"tailwind": {
|
|
342
|
+
"required": true,
|
|
343
|
+
"sources": [
|
|
344
|
+
"./src/theme.css"
|
|
345
|
+
]
|
|
346
|
+
}
|
|
317
347
|
}
|
|
318
348
|
},
|
|
319
349
|
{
|
|
@@ -348,7 +378,13 @@
|
|
|
348
378
|
"hydrate": "load",
|
|
349
379
|
"status": "experimental",
|
|
350
380
|
"module": "@openelement/ui/open-dropdown",
|
|
351
|
-
"export": "OpenDropdown"
|
|
381
|
+
"export": "OpenDropdown",
|
|
382
|
+
"tailwind": {
|
|
383
|
+
"required": true,
|
|
384
|
+
"sources": [
|
|
385
|
+
"./src/theme.css"
|
|
386
|
+
]
|
|
387
|
+
}
|
|
352
388
|
}
|
|
353
389
|
}
|
|
354
390
|
]
|