@openelement/ui 0.41.0-alpha.1 → 0.41.0-alpha.10

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 (51) hide show
  1. package/README.md +27 -14
  2. package/package.json +9 -59
  3. package/src/component-recipes.d.ts +4 -0
  4. package/src/component-recipes.js +45 -0
  5. package/src/generated-manifest.json +582 -0
  6. package/src/index.d.ts +4 -19
  7. package/src/index.js +5 -20
  8. package/src/manifest.d.ts +3 -4
  9. package/src/manifest.js +10 -255
  10. package/src/open-badge.d.ts +2 -2
  11. package/src/open-badge.js +9 -9
  12. package/src/open-button.d.ts +3 -2
  13. package/src/open-button.js +75 -19
  14. package/src/open-callout.d.ts +2 -2
  15. package/src/open-callout.js +30 -16
  16. package/src/open-card.d.ts +3 -2
  17. package/src/open-card.js +23 -14
  18. package/src/open-code-block.d.ts +2 -5
  19. package/src/open-code-block.js +24 -36
  20. package/src/open-dialog.d.ts +4 -3
  21. package/src/open-dialog.js +75 -45
  22. package/src/open-dropdown.d.ts +9 -17
  23. package/src/open-dropdown.js +72 -33
  24. package/src/open-input.d.ts +3 -2
  25. package/src/open-input.js +67 -39
  26. package/src/open-props-tokens.d.ts +9 -1
  27. package/src/open-props-tokens.js +49 -12
  28. package/src/open-tabs.d.ts +3 -21
  29. package/src/open-tabs.js +41 -43
  30. package/src/open-theme-toggle.d.ts +2 -2
  31. package/src/open-theme-toggle.js +95 -28
  32. package/src/register.d.ts +1 -0
  33. package/src/register.js +59 -0
  34. package/src/daisy-classes.d.ts +0 -7
  35. package/src/daisy-classes.js +0 -770
  36. package/src/open-brand-mark.d.ts +0 -14
  37. package/src/open-brand-mark.js +0 -107
  38. package/src/open-hero-ping.d.ts +0 -27
  39. package/src/open-hero-ping.js +0 -136
  40. package/src/open-lab-panel.d.ts +0 -16
  41. package/src/open-lab-panel.js +0 -151
  42. package/src/open-lab-stage.d.ts +0 -15
  43. package/src/open-lab-stage.js +0 -622
  44. package/src/open-layout.d.ts +0 -111
  45. package/src/open-layout.js +0 -1377
  46. package/src/open-modal.d.ts +0 -25
  47. package/src/open-modal.js +0 -48
  48. package/src/open-standards-visual.d.ts +0 -20
  49. package/src/open-standards-visual.js +0 -425
  50. package/src/open-step-card.d.ts +0 -34
  51. package/src/open-step-card.js +0 -117
@@ -0,0 +1,582 @@
1
+ {
2
+ "schemaVersion": "1.0.0",
3
+ "packageName": "@openelement/ui",
4
+ "version": "0.41.0-alpha.10",
5
+ "description": "Open Props Web Component library for openElement",
6
+ "author": "openElement",
7
+ "license": "MIT",
8
+ "homepage": "https://openelement.org",
9
+ "repository": "https://github.com/open-element/openelement",
10
+ "declarations": [
11
+ {
12
+ "tagName": "open-card",
13
+ "className": "OpenCard",
14
+ "superclassName": "OpenElement",
15
+ "description": "",
16
+ "attributes": [
17
+ {
18
+ "name": "variant",
19
+ "type": "string",
20
+ "description": "variant attribute"
21
+ }
22
+ ],
23
+ "slots": [
24
+ {
25
+ "name": "",
26
+ "description": "Default slot"
27
+ }
28
+ ],
29
+ "cssParts": [
30
+ {
31
+ "name": "container",
32
+ "description": "The article wrapper"
33
+ },
34
+ {
35
+ "name": "body",
36
+ "description": "The card body content area"
37
+ }
38
+ ],
39
+ "openElement": {
40
+ "ssr": true,
41
+ "dsd": true,
42
+ "layer": "dsd-static",
43
+ "hydrate": "idle",
44
+ "module": "@openelement/ui/open-card",
45
+ "export": "OpenCard"
46
+ }
47
+ },
48
+ {
49
+ "tagName": "open-callout",
50
+ "className": "OpenCallout",
51
+ "superclassName": "OpenElement",
52
+ "description": "",
53
+ "attributes": [
54
+ {
55
+ "name": "type",
56
+ "type": "string",
57
+ "description": "type attribute"
58
+ },
59
+ {
60
+ "name": "label",
61
+ "type": "string",
62
+ "description": "label attribute"
63
+ }
64
+ ],
65
+ "slots": [
66
+ {
67
+ "name": "",
68
+ "description": "Default slot"
69
+ }
70
+ ],
71
+ "openElement": {
72
+ "ssr": true,
73
+ "dsd": true,
74
+ "layer": "dsd-static",
75
+ "hydrate": "idle",
76
+ "module": "@openelement/ui/open-callout",
77
+ "export": "OpenCallout"
78
+ }
79
+ },
80
+ {
81
+ "tagName": "open-button",
82
+ "className": "OpenButton",
83
+ "superclassName": "OpenElement",
84
+ "description": "",
85
+ "attributes": [
86
+ {
87
+ "name": "variant",
88
+ "type": "string",
89
+ "description": "variant attribute"
90
+ },
91
+ {
92
+ "name": "size",
93
+ "type": "string",
94
+ "description": "size attribute"
95
+ },
96
+ {
97
+ "name": "disabled",
98
+ "type": "boolean",
99
+ "description": "disabled attribute",
100
+ "default": "false"
101
+ },
102
+ {
103
+ "name": "href",
104
+ "type": "string",
105
+ "description": "href attribute"
106
+ },
107
+ {
108
+ "name": "target",
109
+ "type": "string",
110
+ "description": "target attribute"
111
+ },
112
+ {
113
+ "name": "type",
114
+ "type": "string",
115
+ "description": "type attribute"
116
+ }
117
+ ],
118
+ "events": [
119
+ {
120
+ "name": "open-click",
121
+ "type": "CustomEvent",
122
+ "description": "Fired on open-click"
123
+ }
124
+ ],
125
+ "slots": [
126
+ {
127
+ "name": "",
128
+ "description": "Default slot"
129
+ }
130
+ ],
131
+ "cssParts": [
132
+ {
133
+ "name": "control",
134
+ "description": "The button or anchor element"
135
+ }
136
+ ],
137
+ "openElement": {
138
+ "ssr": true,
139
+ "dsd": true,
140
+ "layer": "dsd-interactive",
141
+ "hydrate": "load",
142
+ "module": "@openelement/ui/open-button",
143
+ "export": "OpenButton"
144
+ }
145
+ },
146
+ {
147
+ "tagName": "open-input",
148
+ "className": "OpenInput",
149
+ "superclassName": "OpenElement",
150
+ "description": "",
151
+ "attributes": [
152
+ {
153
+ "name": "type",
154
+ "type": "string",
155
+ "description": "type attribute"
156
+ },
157
+ {
158
+ "name": "placeholder",
159
+ "type": "string",
160
+ "description": "placeholder attribute"
161
+ },
162
+ {
163
+ "name": "label",
164
+ "type": "string",
165
+ "description": "label attribute"
166
+ },
167
+ {
168
+ "name": "value",
169
+ "type": "string",
170
+ "description": "value attribute"
171
+ },
172
+ {
173
+ "name": "name",
174
+ "type": "string",
175
+ "description": "name attribute"
176
+ },
177
+ {
178
+ "name": "disabled",
179
+ "type": "boolean",
180
+ "description": "disabled attribute",
181
+ "default": "false"
182
+ },
183
+ {
184
+ "name": "required",
185
+ "type": "boolean",
186
+ "description": "required attribute",
187
+ "default": "false"
188
+ },
189
+ {
190
+ "name": "error",
191
+ "type": "string",
192
+ "description": "error attribute"
193
+ }
194
+ ],
195
+ "events": [
196
+ {
197
+ "name": "open-input",
198
+ "type": "CustomEvent",
199
+ "description": "Fired on open-input"
200
+ },
201
+ {
202
+ "name": "open-change",
203
+ "type": "CustomEvent",
204
+ "description": "Fired on open-change"
205
+ },
206
+ {
207
+ "name": "open-focus",
208
+ "type": "CustomEvent",
209
+ "description": "Fired on open-focus"
210
+ },
211
+ {
212
+ "name": "open-blur",
213
+ "type": "CustomEvent",
214
+ "description": "Fired on open-blur"
215
+ }
216
+ ],
217
+ "cssParts": [
218
+ {
219
+ "name": "wrapper",
220
+ "description": "The outer input-wrapper div"
221
+ },
222
+ {
223
+ "name": "label",
224
+ "description": "The label element"
225
+ },
226
+ {
227
+ "name": "control",
228
+ "description": "The input/textarea/select element"
229
+ },
230
+ {
231
+ "name": "error",
232
+ "description": "The error message small element"
233
+ }
234
+ ],
235
+ "openElement": {
236
+ "ssr": true,
237
+ "dsd": true,
238
+ "layer": "dsd-interactive",
239
+ "hydrate": "load",
240
+ "module": "@openelement/ui/open-input",
241
+ "export": "OpenInput"
242
+ }
243
+ },
244
+ {
245
+ "tagName": "open-theme-toggle",
246
+ "className": "OpenThemeToggle",
247
+ "superclassName": "OpenElement",
248
+ "description": "",
249
+ "attributes": [
250
+ {
251
+ "name": "theme",
252
+ "type": "string",
253
+ "description": "theme attribute"
254
+ }
255
+ ],
256
+ "events": [
257
+ {
258
+ "name": "open:theme-change",
259
+ "type": "CustomEvent",
260
+ "description": "Fired on open:theme-change"
261
+ }
262
+ ],
263
+ "cssParts": [
264
+ {
265
+ "name": "toggle",
266
+ "description": "The button element"
267
+ },
268
+ {
269
+ "name": "icon-sun",
270
+ "description": "The sun SVG icon"
271
+ },
272
+ {
273
+ "name": "icon-moon",
274
+ "description": "The moon SVG icon"
275
+ }
276
+ ],
277
+ "openElement": {
278
+ "ssr": true,
279
+ "dsd": true,
280
+ "layer": "dsd-interactive",
281
+ "hydrate": "load",
282
+ "module": "@openelement/ui/open-theme-toggle",
283
+ "export": "OpenThemeToggle"
284
+ }
285
+ },
286
+ {
287
+ "tagName": "open-code-block",
288
+ "className": "OpenCodeBlock",
289
+ "superclassName": "OpenElement",
290
+ "description": "",
291
+ "slots": [
292
+ {
293
+ "name": "",
294
+ "description": "Default slot"
295
+ }
296
+ ],
297
+ "cssParts": [
298
+ {
299
+ "name": "copy",
300
+ "description": "The copy button"
301
+ }
302
+ ],
303
+ "openElement": {
304
+ "ssr": true,
305
+ "dsd": true,
306
+ "layer": "dsd-static",
307
+ "hydrate": "idle",
308
+ "module": "@openelement/ui/open-code-block",
309
+ "export": "OpenCodeBlock"
310
+ }
311
+ },
312
+ {
313
+ "tagName": "open-badge",
314
+ "className": "OpenBadge",
315
+ "superclassName": "OpenElement",
316
+ "description": "",
317
+ "attributes": [
318
+ {
319
+ "name": "tone",
320
+ "type": "string",
321
+ "description": "tone attribute"
322
+ },
323
+ {
324
+ "name": "size",
325
+ "type": "string",
326
+ "description": "size attribute"
327
+ }
328
+ ],
329
+ "slots": [
330
+ {
331
+ "name": "",
332
+ "description": "Default slot"
333
+ }
334
+ ],
335
+ "openElement": {
336
+ "ssr": true,
337
+ "dsd": true,
338
+ "layer": "dsd-static",
339
+ "hydrate": "idle",
340
+ "module": "@openelement/ui/open-badge",
341
+ "export": "OpenBadge"
342
+ }
343
+ },
344
+ {
345
+ "tagName": "open-dialog",
346
+ "className": "OpenDialog",
347
+ "superclassName": "OpenElement",
348
+ "description": "",
349
+ "attributes": [
350
+ {
351
+ "name": "open",
352
+ "type": "boolean",
353
+ "description": "open attribute",
354
+ "default": "false"
355
+ },
356
+ {
357
+ "name": "label",
358
+ "type": "string",
359
+ "description": "label attribute"
360
+ },
361
+ {
362
+ "name": "mode",
363
+ "type": "string",
364
+ "description": "mode attribute"
365
+ }
366
+ ],
367
+ "events": [
368
+ {
369
+ "name": "open-dialog-close",
370
+ "type": "CustomEvent",
371
+ "description": "Fired on open-dialog-close"
372
+ }
373
+ ],
374
+ "slots": [
375
+ {
376
+ "name": "",
377
+ "description": "Default slot"
378
+ }
379
+ ],
380
+ "cssParts": [
381
+ {
382
+ "name": "overlay",
383
+ "description": "The dialog backdrop/element"
384
+ },
385
+ {
386
+ "name": "header",
387
+ "description": "The header bar"
388
+ },
389
+ {
390
+ "name": "close",
391
+ "description": "The close button"
392
+ },
393
+ {
394
+ "name": "body",
395
+ "description": "The content area (<slot>)"
396
+ },
397
+ {
398
+ "name": "footer",
399
+ "description": "The optional footer slot"
400
+ }
401
+ ],
402
+ "openElement": {
403
+ "ssr": true,
404
+ "dsd": true,
405
+ "layer": "dsd-interactive",
406
+ "hydrate": "idle",
407
+ "module": "@openelement/ui/open-dialog",
408
+ "export": "OpenDialog"
409
+ }
410
+ },
411
+ {
412
+ "tagName": "open-dropdown",
413
+ "className": "OpenDropdown",
414
+ "superclassName": "OpenElement",
415
+ "description": "Native Popover-first dropdown with a small fallback state.",
416
+ "slots": [
417
+ {
418
+ "name": "trigger",
419
+ "description": "Control used to toggle the dropdown"
420
+ },
421
+ {
422
+ "name": "",
423
+ "description": "Dropdown content"
424
+ }
425
+ ],
426
+ "cssParts": [
427
+ {
428
+ "name": "trigger",
429
+ "description": "Trigger wrapper"
430
+ },
431
+ {
432
+ "name": "content",
433
+ "description": "Popover content"
434
+ }
435
+ ],
436
+ "openElement": {
437
+ "ssr": true,
438
+ "dsd": true,
439
+ "layer": "dsd-interactive",
440
+ "hydrate": "load",
441
+ "module": "@openelement/ui/open-dropdown",
442
+ "export": "OpenDropdown"
443
+ }
444
+ },
445
+ {
446
+ "tagName": "open-tabs",
447
+ "className": "OpenTabs",
448
+ "superclassName": "OpenElement",
449
+ "description": "",
450
+ "openElement": {
451
+ "ssr": true,
452
+ "dsd": true,
453
+ "layer": "dsd-interactive",
454
+ "hydrate": "load",
455
+ "module": "@openelement/ui/open-tabs",
456
+ "export": "OpenTabs"
457
+ }
458
+ }
459
+ ],
460
+ "modules": [
461
+ {
462
+ "path": "./open-card.js",
463
+ "exports": [
464
+ {
465
+ "name": "OpenCard",
466
+ "path": "./open-card.js"
467
+ }
468
+ ],
469
+ "declarations": [
470
+ "open-card"
471
+ ]
472
+ },
473
+ {
474
+ "path": "./open-callout.js",
475
+ "exports": [
476
+ {
477
+ "name": "OpenCallout",
478
+ "path": "./open-callout.js"
479
+ }
480
+ ],
481
+ "declarations": [
482
+ "open-callout"
483
+ ]
484
+ },
485
+ {
486
+ "path": "./open-button.js",
487
+ "exports": [
488
+ {
489
+ "name": "OpenButton",
490
+ "path": "./open-button.js"
491
+ }
492
+ ],
493
+ "declarations": [
494
+ "open-button"
495
+ ]
496
+ },
497
+ {
498
+ "path": "./open-input.js",
499
+ "exports": [
500
+ {
501
+ "name": "OpenInput",
502
+ "path": "./open-input.js"
503
+ }
504
+ ],
505
+ "declarations": [
506
+ "open-input"
507
+ ]
508
+ },
509
+ {
510
+ "path": "./open-theme-toggle.js",
511
+ "exports": [
512
+ {
513
+ "name": "OpenThemeToggle",
514
+ "path": "./open-theme-toggle.js"
515
+ }
516
+ ],
517
+ "declarations": [
518
+ "open-theme-toggle"
519
+ ]
520
+ },
521
+ {
522
+ "path": "./open-code-block.js",
523
+ "exports": [
524
+ {
525
+ "name": "OpenCodeBlock",
526
+ "path": "./open-code-block.js"
527
+ }
528
+ ],
529
+ "declarations": [
530
+ "open-code-block"
531
+ ]
532
+ },
533
+ {
534
+ "path": "./open-badge.js",
535
+ "exports": [
536
+ {
537
+ "name": "OpenBadge",
538
+ "path": "./open-badge.js"
539
+ }
540
+ ],
541
+ "declarations": [
542
+ "open-badge"
543
+ ]
544
+ },
545
+ {
546
+ "path": "./open-dialog.js",
547
+ "exports": [
548
+ {
549
+ "name": "OpenDialog",
550
+ "path": "./open-dialog.js"
551
+ }
552
+ ],
553
+ "declarations": [
554
+ "open-dialog"
555
+ ]
556
+ },
557
+ {
558
+ "path": "./open-dropdown.js",
559
+ "exports": [
560
+ {
561
+ "name": "OpenDropdown",
562
+ "path": "./open-dropdown.js"
563
+ }
564
+ ],
565
+ "declarations": [
566
+ "open-dropdown"
567
+ ]
568
+ },
569
+ {
570
+ "path": "./open-tabs.js",
571
+ "exports": [
572
+ {
573
+ "name": "OpenTabs",
574
+ "path": "./open-tabs.js"
575
+ }
576
+ ],
577
+ "declarations": [
578
+ "open-tabs"
579
+ ]
580
+ }
581
+ ]
582
+ }
package/src/index.d.ts CHANGED
@@ -10,48 +10,33 @@
10
10
  * - open-input: Input field with label and error states
11
11
  * - open-code-block: Code block with copy button
12
12
  * - open-badge: Open Props status badge
13
- * - open-brand-mark: Aperture O brand mark
14
- * - open-lab-panel: Standards-lab artifact/spec panel
15
- * - open-lab-stage: Kinetic standards-lab hero primitive
16
- * - open-standards-visual: Product-art standards diagrams
17
- * - open-layout: App layout with header, sidebar, footer
18
13
  * - open-theme-toggle: Theme toggle Island (Dark/Light)
19
14
  * - open-dialog: Dialog component using native <dialog>
20
15
  * - open-callout: Callout/notice box (info/warning/danger/tip)
21
- * - open-step-card: Step card with numbered indicator
22
16
  * - open-dropdown: Dropdown toggle with trigger slot and content slot
23
- * - open-modal: Modal dialog using signal-driven open attribute
24
17
  * - open-tabs: Tab interface with tab and panel slots
25
18
  *
26
19
  * Usage:
27
20
  * ```ts
28
21
  * // Import all components
29
- * import '@openelement/ui';
22
+ * import { registerOpenUi } from '@openelement/ui';
23
+ * registerOpenUi();
30
24
  *
31
25
  * // Or import specific components
32
26
  * import { OpenButton } from '@openelement/ui/open-button';
33
27
  * ```
34
28
  *
35
29
  * @module @openelement/ui
36
- */ export { openPropsTokenSheet } from "./open-props-tokens.js";
37
- export { daisyClassSheet } from "./daisy-classes.js";
30
+ */ export { openPropsRootSheet, openPropsTokenSheet } from "./open-props-tokens.js";
38
31
  export { OpenButton, tagName as openButtonTagName } from "./open-button.js";
39
32
  export { OpenCard, tagName as openCardTagName } from "./open-card.js";
40
33
  export { OpenInput, tagName as openInputTagName } from "./open-input.js";
41
34
  export { OpenCodeBlock, tagName as openCodeBlockTagName } from "./open-code-block.js";
42
35
  export { OpenBadge, tagName as openBadgeTagName } from "./open-badge.js";
43
- export { OpenBrandMark, tagName as openBrandMarkTagName } from "./open-brand-mark.js";
44
- export { OpenLabPanel, tagName as openLabPanelTagName } from "./open-lab-panel.js";
45
- export { OpenLabStage, tagName as openLabStageTagName } from "./open-lab-stage.js";
46
- export { OpenStandardsVisual, tagName as openStandardsVisualTagName } from "./open-standards-visual.js";
47
- export { OpenLayout, tagName as openLayoutTagName } from "./open-layout.js";
48
- export type { HeaderNavLink, NavItem, NavSection } from "./open-layout.js";
49
36
  export { OpenThemeToggle, tagName as openThemeToggleTagName } from "./open-theme-toggle.js";
50
- export { default as OpenHeroPing, tagName as openHeroPingTagName } from "./open-hero-ping.js";
51
37
  export { OpenDialog, tagName as openDialogTagName } from "./open-dialog.js";
52
38
  export { OpenCallout, tagName as openCalloutTagName } from "./open-callout.js";
53
- export { OpenStepCard, tagName as openStepCardTagName } from "./open-step-card.js";
54
39
  export { OpenDropdown, tagName as openDropdownTagName } from "./open-dropdown.js";
55
- export { OpenModal, tagName as openModalTagName } from "./open-modal.js";
56
40
  export { OpenTabs, tagName as openTabsTagName } from "./open-tabs.js";
57
41
  export { manifest } from "./manifest.js";
42
+ export { registerOpenUi } from "./register.js";