@openelement/ui 1.0.0-alpha.1 → 1.0.0-alpha.11

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.
Files changed (47) hide show
  1. package/CUSTOMIZATION.md +272 -0
  2. package/README.md +59 -54
  3. package/package.json +19 -33
  4. package/src/component-recipes.js +39 -100
  5. package/src/control-recipe.css +21 -0
  6. package/src/generated-manifest.json +13 -160
  7. package/src/index.d.ts +10 -42
  8. package/src/index.js +10 -46
  9. package/src/instance-state.d.ts +16 -0
  10. package/src/instance-state.js +30 -24
  11. package/src/manifest.d.ts +5 -9
  12. package/src/manifest.js +6 -11
  13. package/src/open-button.css +120 -0
  14. package/src/open-button.d.ts +296 -898
  15. package/src/open-button.js +1130 -1436
  16. package/src/open-code-block.css +46 -0
  17. package/src/open-code-block.d.ts +158 -168
  18. package/src/open-code-block.js +224 -468
  19. package/src/open-dialog.css +137 -0
  20. package/src/open-dialog.d.ts +241 -424
  21. package/src/open-dialog.js +626 -903
  22. package/src/open-dropdown.css +28 -0
  23. package/src/open-dropdown.d.ts +195 -252
  24. package/src/open-dropdown.js +352 -494
  25. package/src/open-input.css +80 -0
  26. package/src/open-input.d.ts +404 -1420
  27. package/src/open-input.js +1789 -2170
  28. package/src/open-theme-toggle.css +53 -0
  29. package/src/open-theme-toggle.d.ts +171 -287
  30. package/src/open-theme-toggle.js +512 -801
  31. package/src/overlay-recipe.css +9 -0
  32. package/src/register.d.ts +4 -1
  33. package/src/register.js +19 -58
  34. package/src/surface-recipe.css +10 -0
  35. package/src/theme.css +206 -0
  36. package/THIRD_PARTY_NOTICES.md +0 -45
  37. package/src/open-badge.d.ts +0 -185
  38. package/src/open-badge.js +0 -296
  39. package/src/open-callout.d.ts +0 -402
  40. package/src/open-callout.js +0 -603
  41. package/src/open-card.d.ts +0 -168
  42. package/src/open-card.js +0 -310
  43. package/src/open-props-tokens.d.ts +0 -9
  44. package/src/open-props-tokens.js +0 -459
  45. package/src/open-tabs.d.ts +0 -218
  46. package/src/open-tabs.js +0 -401
  47. package/src/semantic-tokens.css +0 -413
@@ -1,459 +0,0 @@
1
- /**
2
- * GENERATED — do not edit; source: open-props@1.7.23 (MIT) + semantic-tokens.css.
3
- * Regenerate with: deno task --cwd packages/ui generate:ui-tokens
4
- */ import { StyleSheet } from '@openelement/element';
5
- const OPEN_PROPS_TOKEN_CSS = `/**
6
- * GENERATED — do not edit; source: open-props@1.7.23 (MIT) + semantic-tokens.css.
7
- * Regenerate with: deno task --cwd packages/ui generate:ui-tokens
8
- */
9
-
10
- /**
11
- * @openelement/ui - semantic token layer (hand-maintained single source).
12
- *
13
- * Everything here is OURS: tuned primitives, semantic roles, light/dark
14
- * themes, the :host structural fallback, and the CJK font stacks. Tokens that
15
- * match upstream open-props verbatim (gray ramp, indigo-6, border sizes,
16
- * font weights, two line-heights) are NOT listed here — they are injected at
17
- * the @upstream-tokens anchor below by packages/ui/tools/generate-ui-tokens.ts
18
- * (deno task --cwd packages/ui generate:ui-tokens), which reads them from the real
19
- * open-props npm dependency. Do not re-add them here: the generator fails on
20
- * any duplication.
21
- *
22
- * Intentional divergences from open-props (do not "fix" by copying upstream):
23
- * - violet/green/red/orange scales are re-tuned (brand AA on light and dark
24
- * surfaces; upstream dark entries would invert shadow/hover semantics).
25
- * - --size-* is a px step scale (upstream is rem-based and larger).
26
- * - --radius-*, --font-size-*, --font-letterspacing-*, --ease-*, --shadow-*
27
- * are tuned for the component layer (upstream values differ).
28
- * - dark ramps are our own inversion (open-props ships no dark mode).
29
- *
30
- * The token block selects :root, :host so one generated sheet serves both
31
- * the document root and shadow adoption; only the structural fallback is
32
- * :host-exclusive (display/containment must never land on <html>).
33
- */
34
-
35
- :host {
36
- display: block;
37
- min-height: 1px;
38
- contain: layout style;
39
- }
40
-
41
- :root,
42
- :host {
43
- /* src/props.colors.js (Gray) — open-props@1.7.23 (MIT), verbatim */
44
- --gray-0: #f8f9fa;
45
- --gray-1: #f1f3f5;
46
- --gray-2: #e9ecef;
47
- --gray-3: #dee2e6;
48
- --gray-4: #ced4da;
49
- --gray-5: #adb5bd;
50
- --gray-6: #868e96;
51
- --gray-7: #495057;
52
- --gray-8: #343a40;
53
- --gray-9: #212529;
54
- --gray-10: #16191d;
55
- --gray-11: #0d0f12;
56
- --gray-12: #030507;
57
-
58
- /* src/props.colors.js (Indigo) — open-props@1.7.23 (MIT), verbatim */
59
- --indigo-6: #4c6ef5;
60
-
61
- /* src/props.borders.js — open-props@1.7.23 (MIT), verbatim */
62
- --border-size-1: 1px;
63
- --border-size-2: 2px;
64
-
65
- /* src/props.fonts.js — open-props@1.7.23 (MIT), verbatim */
66
- --font-weight-4: 400;
67
- --font-weight-5: 500;
68
- --font-weight-6: 600;
69
- --font-weight-7: 700;
70
- --font-weight-8: 800;
71
- --font-weight-9: 900;
72
- --font-lineheight-3: 1.5;
73
- --font-lineheight-4: 1.75;
74
-
75
- /* ═══════════════════════════════════════════════
76
- Spacing scale (tuned px steps — not upstream rem sizes)
77
- ═══════════════════════════════════════════════ */
78
- --size-1: 4px;
79
- --size-2: 8px;
80
- --size-3: 12px;
81
- --size-4: 16px;
82
- --size-5: 20px;
83
- --size-6: 24px;
84
- --size-7: 28px;
85
- --size-8: 32px;
86
- --size-9: 36px;
87
- --size-10: 40px;
88
- --size-12: 48px;
89
- --size-16: 64px;
90
-
91
- /* ═══════════════════════════════════════════════
92
- Border radius (tuned — not upstream radii)
93
- ═══════════════════════════════════════════════ */
94
- --radius-1: 6px;
95
- --radius-2: 8px;
96
- --radius-3: 12px;
97
- --radius-4: 20px;
98
- --radius-round: 9999px;
99
-
100
- /* ═══════════════════════════════════════════════
101
- Shadows
102
- ═══════════════════════════════════════════════ */
103
- /* Shadows read as ink, so the color must flip per theme: gray-12 is a dark
104
- ink in light mode but flips to near-white in dark mode, which turned every
105
- large shadow into a white glow. --shadow-color carries the theme-aware
106
- ink; --shadow-2 is the elevation-2 ambient built on it. */
107
- --shadow-1: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
108
- --shadow-color: var(--violet-12);
109
- --shadow-2: 0 20px 60px color-mix(in srgb, var(--shadow-color) 20%, transparent);
110
-
111
- /* ═══════════════════════════════════════════════
112
- Typography (tuned stacks/sizes/spacing; weights + lineheight 3/4 are
113
- upstream-verbatim and injected at the anchor above)
114
- ═══════════════════════════════════════════════ */
115
- --font-sans: 'JetBrains Mono', monospace;
116
- /* CJK fallbacks: the Latin-only faces render CJK glyphs as tofu/system
117
- substitution with mismatched metrics. Serif gets Songti/Noto Serif CJK so
118
- zh italic accents stay serif, not synthetic-slanted sans. */
119
- --font-mono: 'JetBrains Mono', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', monospace;
120
- --font-serif: 'Instrument Serif', 'Songti SC', 'Noto Serif CJK SC', serif;
121
- --font-size-00: 0.75rem;
122
- --font-size-0: 0.875rem;
123
- --font-size-1: 1rem;
124
- --font-size-2: 1.25rem;
125
- --font-size-3: 1.5rem;
126
- --font-size-4: 2rem;
127
- --font-size-5: 2.5rem;
128
- --font-size-6: 3.125rem;
129
- --font-size-7: 4rem;
130
- --font-size-8: 5.5rem;
131
- --font-letterspacing-2: 0;
132
- --font-letterspacing-4: 0.04em;
133
- --font-letterspacing-5: 0.08em;
134
- --font-lineheight-1: 0.95;
135
-
136
- /* ═══════════════════════════════════════════════
137
- Animation easing (tuned — not upstream easings)
138
- ═══════════════════════════════════════════════ */
139
- --ease-1: cubic-bezier(0.25, 0, 0.5, 1);
140
- --ease-2: cubic-bezier(0.45, 0, 0.25, 1);
141
- --ease-3: cubic-bezier(0.5, 0, 0, 1);
142
- --duration-2: 200ms;
143
- --motion-fast: 160ms;
144
- --motion-medium: 320ms;
145
- --motion-standard: cubic-bezier(.2,.8,.2,1);
146
- --focus-size: 2px;
147
- --focus-offset: 3px;
148
-
149
- /* ═══════════════════════════════════════════════
150
- Brand tokens
151
- ═══════════════════════════════════════════════ */
152
- /* Light brand = violet-7: violet-6 (#8262db) put --on-brand at 4.22:1 and the
153
- 12px brand text at 4.21:1 on white — both under the 4.5:1 AA floor. */
154
- --brand: var(--violet-7);
155
- --brand-hover: var(--violet-8);
156
- --brand-light: var(--violet-4);
157
- --brand-pale: var(--violet-1);
158
- --brand-deep: var(--violet-11);
159
- --brand-subtle: color-mix(in srgb, var(--brand) 12%, transparent);
160
- --brand-glow: color-mix(in srgb, var(--brand) 24%, transparent);
161
- --on-brand: var(--gray-0);
162
- --site-container: 1120px;
163
- --site-container-wide: 1240px;
164
- --site-container-reading: 760px;
165
- --site-section-block: var(--size-16);
166
- --site-section-gap: var(--size-8);
167
-
168
- /* ═══════════════════════════════════════════════
169
- Component semantic defaults
170
- ═══════════════════════════════════════════════ */
171
- --btn-padding-x: var(--size-4);
172
- --btn-padding-y: var(--size-2);
173
- --btn-radius: var(--radius-1);
174
- --btn-font-size: var(--font-size-0);
175
- --btn-font-weight: var(--font-weight-7);
176
- --btn-text-case: none;
177
- --card-padding: var(--size-6);
178
- --card-radius: var(--radius-1);
179
- --badge-padding-x: var(--size-2);
180
- --badge-padding-y: 2px;
181
- --badge-radius: var(--radius-1);
182
- --badge-font-size: var(--font-size-00);
183
- --alert-padding: var(--size-4);
184
- --alert-radius: var(--radius-2);
185
- --input-padding-x: var(--size-3);
186
- --input-padding-y: var(--size-2);
187
- --input-radius: var(--radius-1);
188
- --input-font-size: var(--font-size-0);
189
- --input-border-color: var(--border);
190
- --divider-margin: var(--size-4) 0;
191
- --divider-color: var(--border);
192
- --tooltip-bg: var(--gray-9);
193
- --tooltip-color: var(--gray-0);
194
- --tooltip-radius: var(--radius-1);
195
- --tooltip-padding: var(--size-1) var(--size-2);
196
- --modal-bg: var(--bg-elevated);
197
- --modal-radius: var(--radius-3);
198
- --modal-padding: var(--size-6);
199
- --menu-padding: var(--size-2);
200
- --menu-radius: var(--radius-2);
201
- --menu-item-padding: var(--size-2) var(--size-4);
202
- --dropdown-bg: var(--bg-elevated);
203
- --dropdown-radius: var(--radius-2);
204
- --tab-padding: var(--size-2) var(--size-4);
205
- --tab-radius: var(--radius-1);
206
-
207
- /* Shared component recipes: primitives consume these semantic roles only. */
208
- /* Focus ring ink: --brand. The previous mix of --brand-light with white
209
- resolved to #c1acff in light mode — 1.98:1 on white, 1.88:1 on gray-0,
210
- 1.81:1 on the surface tint — all below the WCAG 1.4.11 non-text floor of
211
- 3:1, while --brand measures 6.03:1 on white. The same declaration serves
212
- dark mode, where --brand flips to violet-7 (#9c7df2, 6.22:1 on the dark
213
- base). Keep it on --brand so the ring and its hover/border siblings stay
214
- one source (open-input.tsx already focuses with --brand). */
215
- --focus-ring: var(--brand);
216
- --ui-control-text: var(--text-primary);
217
- --ui-control-bg: color-mix(in srgb, var(--bg-elevated) 78%, transparent);
218
- --ui-control-border: color-mix(in srgb, var(--border) 72%, var(--brand));
219
- --ui-control-border-hover: color-mix(in srgb, var(--brand-light) 74%, var(--border));
220
- --ui-control-radius: var(--radius-1);
221
- --ui-control-highlight: inset 0 1px 0 color-mix(in srgb, white 12%, transparent);
222
- --surface-glass: linear-gradient(145deg, color-mix(in srgb, var(--brand) 9%, var(--bg-card)), color-mix(in srgb, var(--bg-card) 90%, transparent));
223
- --surface-overlay: color-mix(in srgb, var(--bg-elevated) 92%, transparent);
224
- --surface-border: color-mix(in srgb, var(--border) 78%, var(--brand));
225
- --surface-border-strong: color-mix(in srgb, var(--border-hover) 62%, var(--brand));
226
- --surface-radius: var(--radius-2);
227
- --overlay-radius: var(--radius-3);
228
- --surface-highlight: inset 0 1px 0 color-mix(in srgb, white 8%, transparent);
229
- --surface-shadow: var(--shadow-2);
230
- --overlay-shadow: 0 28px 90px color-mix(in srgb, var(--shadow-color) 48%, transparent);
231
-
232
- /* ═══════════════════════════════════════════════
233
- UI Semantic Tokens (light defaults)
234
- Dark mode overrides via :root[data-theme="dark"] in SSG
235
- ═══════════════════════════════════════════════ */
236
- --text-primary: var(--gray-9);
237
- --text-secondary: var(--gray-8);
238
- /* Muted copy must clear the 4.5:1 AA floor on --bg-base/#f9f8fc: gray-5 is
239
- 1.97:1. gray-7 is the lightest gray that clears it (7.74:1) and stays muted
240
- against --text-secondary. Dark keeps gray-6 (5.6:1 on the dark base). */
241
- --text-muted: var(--gray-7);
242
- --bg-base: color-mix(in srgb, var(--violet-0) 42%, var(--gray-0));
243
- --bg-surface: color-mix(in srgb, var(--violet-0) 32%, var(--gray-1));
244
- --bg-card: color-mix(in srgb, var(--violet-0) 18%, var(--gray-0));
245
- --bg-elevated: #ffffff;
246
- --bg-hover: var(--gray-2);
247
- --bg-muted: var(--gray-1);
248
- --bg-code: var(--gray-11);
249
- --code-border: var(--gray-8);
250
- --code-text: var(--gray-2);
251
- --border: var(--gray-3);
252
- --border-hover: var(--gray-4);
253
- /* Status colors clear the 4.5:1 AA floor on --bg-base/#f9f8fc (measured):
254
- success #237032 5.8:1, warning #885b00 5.6:1, error #b12525 6.3:1,
255
- info #2157cf 6.0:1. Badges paint the ink on a 10% wash of itself, which
256
- lowers the ratio, so the floor is verified against that wash too (the
257
- dimmest pair, warning, measures 4.9:1). The dark overrides below are
258
- measured at >=4.9:1 on their wash in both themes. */
259
- --error: #b12525;
260
- --error-subtle: rgba(177, 37, 37, 0.1);
261
- --success: #237032;
262
- --success-subtle: rgba(35, 112, 50, 0.1);
263
- --warning: #885b00;
264
- --warning-subtle: rgba(136, 91, 0, 0.1);
265
- --info: #2157cf;
266
- --info-subtle: rgba(33, 87, 207, 0.1);
267
- --overlay: rgba(0, 0, 0, 0.4);
268
- --nav-bg: color-mix(in srgb, var(--bg-base) 86%, transparent);
269
- --nav-height: var(--size-16);
270
- --nav-link-color: var(--text-primary);
271
- --nav-link-hover: var(--brand);
272
- --nav-link-size: var(--font-size-0);
273
-
274
- /* ═══════════════════════════════════════════════
275
- Tuned color scales (re-tuned from open-props — see file header;
276
- only --indigo-6 is upstream-verbatim and injected at the anchor)
277
- ═══════════════════════════════════════════════ */
278
- --green-0: #ebfbee;
279
- --green-1: #d3f9d8;
280
- --green-2: #b2f2bb;
281
- --green-3: #8ce99a;
282
- --green-4: #69db7c;
283
- --green-5: #51cf66;
284
- --green-6: #40c057;
285
- --green-7: #37b24d;
286
- --green-8: #2f9e44;
287
- --green-9: #2b8a3e;
288
- --green-10: #226231;
289
- --green-11: #1a4725;
290
- --green-12: #0f2d18;
291
- --red-0: #fff5f5;
292
- --red-1: #ffe3e3;
293
- --red-2: #ffc9c9;
294
- --red-3: #ffa8a8;
295
- --red-4: #ff8787;
296
- --red-5: #ff6b6b;
297
- --red-6: #fa5252;
298
- --red-7: #f03e3e;
299
- --red-8: #e03131;
300
- --red-9: #c92a2a;
301
- --red-10: #a61e1e;
302
- --red-11: #821515;
303
- --red-12: #540d0d;
304
- --orange-0: #fff4e6;
305
- --orange-1: #ffe8cc;
306
- --orange-2: #ffd8a8;
307
- --orange-3: #ffc078;
308
- --orange-4: #ffa94d;
309
- --orange-5: #ff922b;
310
- --orange-6: #fd7e14;
311
- --orange-7: #f76707;
312
- --orange-8: #e8590c;
313
- --orange-9: #d9480f;
314
- --orange-10: #b03a00;
315
- --orange-11: #872a00;
316
- --orange-12: #5c1a00;
317
- --violet-0: #fbf7ff;
318
- --violet-1: #f3eaff;
319
- --violet-2: #e6d8ff;
320
- --violet-3: #d0bdff;
321
- --violet-4: #b59cff;
322
- --violet-5: #9c7df2;
323
- --violet-6: #8262db;
324
- --violet-7: #6d4cc4;
325
- --violet-8: #58399e;
326
- --violet-9: #422774;
327
- --violet-10: #2f1c52;
328
- --violet-11: #21143b;
329
- --violet-12: #130a22;
330
- }
331
-
332
- /* ═══════════════════════════════════════════════
333
- Dark Mode — matches the document root or a host carrying
334
- data-theme="dark" (one sheet serves both), so all shadow DOMs inherit.
335
- Our own inversion (open-props ships no dark mode).
336
- ═══════════════════════════════════════════════ */
337
- :root[data-theme='dark'],
338
- :host([data-theme='dark']) {
339
- --gray-0: #030507;
340
- --gray-1: #0d0f12;
341
- --gray-2: #16191d;
342
- --gray-3: #212529;
343
- --gray-4: #343a40;
344
- --gray-5: #495057;
345
- --gray-6: #868e96;
346
- --gray-7: #adb5bd;
347
- --gray-8: #ced4da;
348
- --gray-9: #dee2e6;
349
- --gray-10: #e9ecef;
350
- --gray-11: #f1f3f5;
351
- --gray-12: #f8f9fa;
352
- /* Dark brand = violet-7: violet-6 (#8262db) cleared AA only on the page base
353
- (4.54:1) and failed as text on the raised surfaces (4.31:1 on elevated,
354
- 3.92:1 on cards). violet-7 clears all three (6.38 / 6.06 / 5.51) and still
355
- seats the near-black --on-brand ink (6.44:1). --on-brand flips per theme to
356
- the ramp extreme — the only ink that clears AA against the fill. */
357
- --brand: var(--violet-7);
358
- --brand-hover: var(--violet-8);
359
- /* --brand-light is a light brand tint in both themes; the dark ramp is
360
- mirrored, so violet-4 (#58399e) would be a *dark* violet here. violet-8 is
361
- the dark entry carrying the light theme's #b59cff. It stays a tint: never
362
- an ink over a light surface (see open-button.tsx). */
363
- --brand-light: var(--violet-8);
364
- --brand-deep: var(--violet-12);
365
- --brand-subtle: color-mix(in srgb, var(--brand) 16%, transparent);
366
- --brand-glow: color-mix(in srgb, var(--brand) 22%, transparent);
367
- /* Pale wash stays a translucent brand tint in dark: violet-1's dark-ramp
368
- entry is a deep violet, which inverted the hover-wash semantics. */
369
- --brand-pale: color-mix(in srgb, var(--brand) 18%, transparent);
370
- --shadow-color: rgb(0 0 0);
371
- --on-brand: var(--gray-0);
372
- --text-primary: var(--gray-10);
373
- --text-secondary: var(--gray-8);
374
- --text-muted: var(--gray-6);
375
- --bg-base: color-mix(in srgb, var(--violet-0) 18%, var(--gray-0));
376
- --bg-surface: color-mix(in srgb, var(--violet-1) 14%, var(--gray-1));
377
- --bg-card: color-mix(in srgb, var(--violet-2) 10%, var(--gray-2));
378
- --bg-elevated: var(--gray-1);
379
- --bg-hover: var(--gray-3);
380
- --bg-code: var(--gray-1);
381
- --code-border: var(--gray-4);
382
- --code-text: var(--gray-10);
383
- --border: var(--gray-3);
384
- --border-hover: var(--gray-4);
385
- --error: #f87171;
386
- --error-subtle: rgba(248, 113, 113, 0.15);
387
- --success: #4ade80;
388
- --success-subtle: rgba(74, 222, 128, 0.1);
389
- --warning: #fbbf24;
390
- --warning-subtle: rgba(251, 191, 36, 0.1);
391
- --info: #60a5fa;
392
- --info-subtle: rgba(96, 165, 250, 0.1);
393
- --overlay: rgba(0, 0, 0, 0.6);
394
- --nav-bg: color-mix(in srgb, var(--bg-base) 86%, transparent);
395
- --nav-link-color: var(--text-primary);
396
- --nav-link-hover: var(--brand-light);
397
-
398
- /* Open Props Color Scales (dark mode inversion) */
399
- --indigo-6: #4c6ef5;
400
- --green-0: #0f2d18;
401
- --green-1: #1a4725;
402
- --green-2: #226231;
403
- --green-3: #2b8a3e;
404
- --green-4: #2f9e44;
405
- --green-5: #37b24d;
406
- --green-6: #40c057;
407
- --green-7: #51cf66;
408
- --green-8: #69db7c;
409
- --green-9: #8ce99a;
410
- --green-10: #b2f2bb;
411
- --green-11: #d3f9d8;
412
- --green-12: #ebfbee;
413
- --red-0: #540d0d;
414
- --red-1: #821515;
415
- --red-2: #a61e1e;
416
- --red-3: #c92a2a;
417
- --red-4: #e03131;
418
- --red-5: #f03e3e;
419
- --red-6: #fa5252;
420
- --red-7: #ff6b6b;
421
- --red-8: #ff8787;
422
- --red-9: #ffa8a8;
423
- --red-10: #ffc9c9;
424
- --red-11: #ffe3e3;
425
- --red-12: #fff5f5;
426
- --orange-0: #5c1a00;
427
- --orange-1: #872a00;
428
- --orange-2: #b03a00;
429
- --orange-3: #d9480f;
430
- --orange-4: #e8590c;
431
- --orange-5: #f76707;
432
- --orange-6: #fd7e14;
433
- --orange-7: #ff922b;
434
- --orange-8: #ffa94d;
435
- --orange-9: #ffc078;
436
- --orange-10: #ffd8a8;
437
- --orange-11: #ffe8cc;
438
- --orange-12: #fff4e6;
439
- --violet-0: #130a22;
440
- --violet-1: #21143b;
441
- --violet-2: #2f1c52;
442
- --violet-3: #422774;
443
- --violet-4: #58399e;
444
- --violet-5: #6d4cc4;
445
- --violet-6: #8262db;
446
- --violet-7: #9c7df2;
447
- --violet-8: #b59cff;
448
- --violet-9: #d0bdff;
449
- --violet-10: #e6d8ff;
450
- --violet-11: #f3eaff;
451
- --violet-12: #fbf7ff;
452
- }
453
- `;
454
- /**
455
- * The full token set as one constructable sheet. The token block selects
456
- * `:root, :host`, so the same sheet serves a document-level adoption and a
457
- * shadow-root adoption; only the structural fallback is :host-exclusive.
458
- */ export const openPropsTokenSheet = new StyleSheet();
459
- openPropsTokenSheet.replaceSync(OPEN_PROPS_TOKEN_CSS);
@@ -1,218 +0,0 @@
1
- import { OpenElement, type StyleSheetLike } from '@openelement/element';
2
- declare const __partProgram: {
3
- readonly "version": number;
4
- readonly "tag": string;
5
- readonly "root": {
6
- readonly "id": string;
7
- readonly "kind": string;
8
- readonly "nodes": readonly [string];
9
- };
10
- readonly "template": readonly [{
11
- readonly "k": string;
12
- readonly "id": string;
13
- readonly "tag": string;
14
- readonly "attrs": readonly [];
15
- readonly "children": readonly [{
16
- readonly "k": string;
17
- readonly "id": string;
18
- readonly "tag": string;
19
- readonly "attrs": readonly [readonly [string, string], readonly [string, string]];
20
- readonly "children": readonly [{
21
- readonly "k": string;
22
- readonly "id": string;
23
- readonly "tag": string;
24
- readonly "attrs": readonly [readonly [string, string]];
25
- readonly "children": readonly [];
26
- }];
27
- }, {
28
- readonly "k": string;
29
- readonly "id": string;
30
- readonly "tag": string;
31
- readonly "attrs": readonly [readonly [string, string]];
32
- readonly "children": readonly [];
33
- }];
34
- }];
35
- readonly "parts": readonly [{
36
- readonly "k": string;
37
- readonly "event": string;
38
- readonly "handler": string;
39
- readonly "action": {
40
- readonly "kind": string;
41
- readonly "name": string;
42
- };
43
- readonly "path": readonly [number, number];
44
- readonly "index": number;
45
- readonly "location": {
46
- readonly "id": string;
47
- readonly "kind": string;
48
- readonly "path": readonly [number, number];
49
- readonly "node": string;
50
- };
51
- }];
52
- readonly "regions": readonly [];
53
- readonly "dependencies": readonly [];
54
- readonly "locations": readonly [{
55
- readonly "id": string;
56
- readonly "kind": string;
57
- readonly "tag": string;
58
- readonly "path": readonly [number];
59
- }, {
60
- readonly "id": string;
61
- readonly "kind": string;
62
- readonly "tag": string;
63
- readonly "path": readonly [number, number];
64
- }, {
65
- readonly "id": string;
66
- readonly "kind": string;
67
- readonly "part": number;
68
- readonly "node": string;
69
- readonly "path": readonly [number, number];
70
- }, {
71
- readonly "id": string;
72
- readonly "kind": string;
73
- readonly "tag": string;
74
- readonly "path": readonly [number, number, number];
75
- }, {
76
- readonly "id": string;
77
- readonly "kind": string;
78
- readonly "tag": string;
79
- readonly "path": readonly [number, number];
80
- }];
81
- readonly "metadata": {
82
- readonly "tag": string;
83
- readonly "className": string;
84
- readonly "sourceFile": string;
85
- readonly "properties": readonly [{
86
- readonly "name": string;
87
- readonly "attribute": null;
88
- readonly "type": string;
89
- readonly "converter": string;
90
- readonly "reflect": boolean;
91
- readonly "default": number;
92
- }, {
93
- readonly "name": string;
94
- readonly "attribute": null;
95
- readonly "type": string;
96
- readonly "converter": string;
97
- readonly "reflect": boolean;
98
- readonly "default": string;
99
- }];
100
- readonly "observedAttributes": readonly [];
101
- readonly "cem": {
102
- readonly "tagName": string;
103
- readonly "className": string;
104
- readonly "declaration": {
105
- readonly "name": string;
106
- readonly "module": string;
107
- };
108
- readonly "attributes": readonly [];
109
- readonly "members": readonly [{
110
- readonly "name": string;
111
- readonly "fieldName": string;
112
- readonly "type": string;
113
- readonly "attribute": null;
114
- readonly "reflect": boolean;
115
- }, {
116
- readonly "name": string;
117
- readonly "fieldName": string;
118
- readonly "type": string;
119
- readonly "attribute": null;
120
- readonly "reflect": boolean;
121
- }];
122
- };
123
- };
124
- };
125
- declare const __compiledProperties: readonly [{
126
- readonly "name": string;
127
- readonly "attribute": null;
128
- readonly "type": string;
129
- readonly "converter": string;
130
- readonly "reflect": boolean;
131
- readonly "default": number;
132
- }, {
133
- readonly "name": string;
134
- readonly "attribute": null;
135
- readonly "type": string;
136
- readonly "converter": string;
137
- readonly "reflect": boolean;
138
- readonly "default": string;
139
- }];
140
- declare const __elementMetadata: {
141
- readonly "tag": string;
142
- readonly "className": string;
143
- readonly "sourceFile": string;
144
- readonly "properties": readonly [{
145
- readonly "name": string;
146
- readonly "attribute": null;
147
- readonly "type": string;
148
- readonly "converter": string;
149
- readonly "reflect": boolean;
150
- readonly "default": number;
151
- }, {
152
- readonly "name": string;
153
- readonly "attribute": null;
154
- readonly "type": string;
155
- readonly "converter": string;
156
- readonly "reflect": boolean;
157
- readonly "default": string;
158
- }];
159
- readonly "observedAttributes": readonly [];
160
- readonly "cem": {
161
- readonly "tagName": string;
162
- readonly "className": string;
163
- readonly "declaration": {
164
- readonly "name": string;
165
- readonly "module": string;
166
- };
167
- readonly "attributes": readonly [];
168
- readonly "members": readonly [{
169
- readonly "name": string;
170
- readonly "fieldName": string;
171
- readonly "type": string;
172
- readonly "attribute": null;
173
- readonly "reflect": boolean;
174
- }, {
175
- readonly "name": string;
176
- readonly "fieldName": string;
177
- readonly "type": string;
178
- readonly "attribute": null;
179
- readonly "reflect": boolean;
180
- }];
181
- };
182
- };
183
- declare const __observedAttributes: string[];
184
- declare const __compiledProps: {
185
- readonly active: {
186
- readonly type;
187
- readonly default: number;
188
- readonly reflect: boolean;
189
- readonly attribute: boolean;
190
- };
191
- readonly tabsId: {
192
- readonly type;
193
- readonly default: string;
194
- readonly reflect: boolean;
195
- readonly attribute: boolean;
196
- };
197
- };
198
- export declare class OpenTabs extends OpenElement {
199
- static __partProgram: typeof __partProgram;
200
- static __compiledProperties: typeof __compiledProperties;
201
- static __elementMetadata: typeof __elementMetadata;
202
- static props: typeof __compiledProps;
203
- static observedAttributes: typeof __observedAttributes;
204
- static styles: StyleSheetLike[];
205
- active: number;
206
- tabsId: string;
207
- override onDsdHydrated(): void;
208
- override onCsrRendered(): void;
209
- override disconnectedCallback(): void;
210
- private activate: any;
211
- private tabs: any;
212
- private count: any;
213
- select(idx: number): void;
214
- private onKeydown: any;
215
- private decorate: any;
216
- render(): never;
217
- }
218
- export { __partProgram, __elementMetadata };