loseta 0.17.0 → 0.18.0
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 +33 -8
- package/dist/commands/add.d.ts +8 -0
- package/dist/commands/add.js +60 -15
- package/dist/commands/add.js.map +1 -1
- package/dist/commands/init.js +2 -1
- package/dist/commands/init.js.map +1 -1
- package/dist/config.d.ts +7 -0
- package/dist/config.js +13 -0
- package/dist/config.js.map +1 -1
- package/dist/imports.d.ts +4 -0
- package/dist/imports.js +30 -2
- package/dist/imports.js.map +1 -1
- package/dist/install.d.ts +23 -3
- package/dist/install.js +84 -5
- package/dist/install.js.map +1 -1
- package/dist/style-switch.js +2 -1
- package/dist/style-switch.js.map +1 -1
- package/dist/types.d.ts +11 -0
- package/dist/ui.js +4 -1
- package/dist/ui.js.map +1 -1
- package/package.json +4 -3
- package/registry/behaviors/code-block.js +106 -0
- package/registry/behaviors/combobox.js +237 -0
- package/registry/behaviors/command.js +105 -0
- package/registry/behaviors/core.js +302 -0
- package/registry/behaviors/dialog.js +97 -0
- package/registry/behaviors/listbox.js +135 -0
- package/registry/behaviors/menu.js +586 -0
- package/registry/behaviors/popover.js +127 -0
- package/registry/behaviors/select.js +196 -0
- package/registry/behaviors/tabs.js +95 -0
- package/registry/behaviors/toast.js +137 -0
- package/registry/components/code-block.css +19 -0
- package/registry/examples/alert-dialog.html +21 -21
- package/registry/examples/button-group.html +3 -3
- package/registry/examples/code-block.html +10 -4
- package/registry/examples/combobox.html +2 -0
- package/registry/examples/command.html +17 -17
- package/registry/examples/context-menu.html +18 -18
- package/registry/examples/dialog.html +15 -15
- package/registry/examples/drawer.html +22 -22
- package/registry/examples/select.html +7 -0
- package/registry/examples/sheet.html +23 -23
- package/registry/examples/sidebar.html +11 -11
- package/registry/examples/toast.html +11 -0
- package/registry/primitives/dialog-shell.css +5 -0
- package/registry/registry.json +196 -1
- package/registry/schema.json +17 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<!-- Default -->
|
|
2
|
-
<button type="button" class="btn" data-variant="outline">
|
|
2
|
+
<button type="button" class="btn" data-variant="outline" data-open-dialog="demo-sheet-default">
|
|
3
3
|
Open sheet
|
|
4
4
|
</button>
|
|
5
5
|
|
|
@@ -22,8 +22,8 @@
|
|
|
22
22
|
</div>
|
|
23
23
|
</section>
|
|
24
24
|
<footer>
|
|
25
|
-
<button type="button" class="btn" data-variant="outline">Cancel</button>
|
|
26
|
-
<button type="button" class="btn">Save changes</button>
|
|
25
|
+
<button type="button" class="btn" data-variant="outline" data-close-dialog>Cancel</button>
|
|
26
|
+
<button type="button" class="btn" data-close-dialog>Save changes</button>
|
|
27
27
|
</footer>
|
|
28
28
|
<form method="dialog">
|
|
29
29
|
<button class="btn" data-variant="ghost" data-size="icon-sm" aria-label="Close"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M18 6 6 18"/><path d="m6 6 12 12"/></svg></button>
|
|
@@ -33,10 +33,10 @@
|
|
|
33
33
|
|
|
34
34
|
<!-- Sides -->
|
|
35
35
|
<div style="display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.5rem">
|
|
36
|
-
<button type="button" class="btn" data-variant="outline" data-size="sm">Top</button>
|
|
37
|
-
<button type="button" class="btn" data-variant="outline" data-size="sm">Right</button>
|
|
38
|
-
<button type="button" class="btn" data-variant="outline" data-size="sm">Bottom</button>
|
|
39
|
-
<button type="button" class="btn" data-variant="outline" data-size="sm">Left</button>
|
|
36
|
+
<button type="button" class="btn" data-variant="outline" data-size="sm" data-open-dialog="demo-sheet-side-top">Top</button>
|
|
37
|
+
<button type="button" class="btn" data-variant="outline" data-size="sm" data-open-dialog="demo-sheet-side-right">Right</button>
|
|
38
|
+
<button type="button" class="btn" data-variant="outline" data-size="sm" data-open-dialog="demo-sheet-side-bottom">Bottom</button>
|
|
39
|
+
<button type="button" class="btn" data-variant="outline" data-size="sm" data-open-dialog="demo-sheet-side-left">Left</button>
|
|
40
40
|
</div>
|
|
41
41
|
|
|
42
42
|
<dialog class="sheet" id="demo-sheet-side-top" data-side="block-start" aria-labelledby="sheet-side-top-title">
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
<p>Use a top sheet for a short announcement or a wide filter bar.</p>
|
|
50
50
|
</section>
|
|
51
51
|
<footer>
|
|
52
|
-
<button type="button" class="btn" data-variant="outline">Close</button>
|
|
52
|
+
<button type="button" class="btn" data-variant="outline" data-close-dialog>Close</button>
|
|
53
53
|
</footer>
|
|
54
54
|
<form method="dialog">
|
|
55
55
|
<button class="btn" data-variant="ghost" data-size="icon-sm" aria-label="Close top sheet"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M18 6 6 18"/><path d="m6 6 12 12"/></svg></button>
|
|
@@ -67,7 +67,7 @@
|
|
|
67
67
|
<p>Use a side sheet for details that complement the page.</p>
|
|
68
68
|
</section>
|
|
69
69
|
<footer>
|
|
70
|
-
<button type="button" class="btn" data-variant="outline">Close</button>
|
|
70
|
+
<button type="button" class="btn" data-variant="outline" data-close-dialog>Close</button>
|
|
71
71
|
</footer>
|
|
72
72
|
<form method="dialog">
|
|
73
73
|
<button class="btn" data-variant="ghost" data-size="icon-sm" aria-label="Close right sheet"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M18 6 6 18"/><path d="m6 6 12 12"/></svg></button>
|
|
@@ -85,7 +85,7 @@
|
|
|
85
85
|
<p>Use a bottom sheet for actions that relate to the current view.</p>
|
|
86
86
|
</section>
|
|
87
87
|
<footer>
|
|
88
|
-
<button type="button" class="btn" data-variant="outline">Close</button>
|
|
88
|
+
<button type="button" class="btn" data-variant="outline" data-close-dialog>Close</button>
|
|
89
89
|
</footer>
|
|
90
90
|
<form method="dialog">
|
|
91
91
|
<button class="btn" data-variant="ghost" data-size="icon-sm" aria-label="Close bottom sheet"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M18 6 6 18"/><path d="m6 6 12 12"/></svg></button>
|
|
@@ -103,7 +103,7 @@
|
|
|
103
103
|
<p>Use a left sheet for navigation or secondary controls.</p>
|
|
104
104
|
</section>
|
|
105
105
|
<footer>
|
|
106
|
-
<button type="button" class="btn" data-variant="outline">Close</button>
|
|
106
|
+
<button type="button" class="btn" data-variant="outline" data-close-dialog>Close</button>
|
|
107
107
|
</footer>
|
|
108
108
|
<form method="dialog">
|
|
109
109
|
<button class="btn" data-variant="ghost" data-size="icon-sm" aria-label="Close left sheet"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M18 6 6 18"/><path d="m6 6 12 12"/></svg></button>
|
|
@@ -112,7 +112,7 @@
|
|
|
112
112
|
</dialog>
|
|
113
113
|
|
|
114
114
|
<!-- No close button -->
|
|
115
|
-
<button type="button" class="btn" data-variant="outline">
|
|
115
|
+
<button type="button" class="btn" data-variant="outline" data-open-dialog="demo-sheet-no-close">
|
|
116
116
|
Open sheet without close
|
|
117
117
|
</button>
|
|
118
118
|
|
|
@@ -126,13 +126,13 @@
|
|
|
126
126
|
<p>Omit the close form when the footer already provides a clear exit.</p>
|
|
127
127
|
</section>
|
|
128
128
|
<footer>
|
|
129
|
-
<button type="button" class="btn">Close</button>
|
|
129
|
+
<button type="button" class="btn" data-close-dialog>Close</button>
|
|
130
130
|
</footer>
|
|
131
131
|
</div>
|
|
132
132
|
</dialog>
|
|
133
133
|
|
|
134
134
|
<!-- Scrollable content -->
|
|
135
|
-
<button type="button" class="btn" data-variant="outline">
|
|
135
|
+
<button type="button" class="btn" data-variant="outline" data-open-dialog="demo-sheet-scrollable">
|
|
136
136
|
Open scrollable sheet
|
|
137
137
|
</button>
|
|
138
138
|
|
|
@@ -153,7 +153,7 @@
|
|
|
153
153
|
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.</p>
|
|
154
154
|
</section>
|
|
155
155
|
<footer>
|
|
156
|
-
<button type="button" class="btn" data-variant="outline">Close</button>
|
|
156
|
+
<button type="button" class="btn" data-variant="outline" data-close-dialog>Close</button>
|
|
157
157
|
</footer>
|
|
158
158
|
<form method="dialog">
|
|
159
159
|
<button class="btn" data-variant="ghost" data-size="icon-sm" aria-label="Close scrollable sheet"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M18 6 6 18"/><path d="m6 6 12 12"/></svg></button>
|
|
@@ -162,7 +162,7 @@
|
|
|
162
162
|
</dialog>
|
|
163
163
|
|
|
164
164
|
<!-- Left, small -->
|
|
165
|
-
<button type="button" class="btn" data-variant="outline">
|
|
165
|
+
<button type="button" class="btn" data-variant="outline" data-open-dialog="demo-sheet-left">
|
|
166
166
|
Open left sheet
|
|
167
167
|
</button>
|
|
168
168
|
|
|
@@ -175,7 +175,7 @@
|
|
|
175
175
|
<p>Use the left sheet for navigation or secondary controls.</p>
|
|
176
176
|
</section>
|
|
177
177
|
<footer>
|
|
178
|
-
<button type="button" class="btn" data-variant="outline">Close</button>
|
|
178
|
+
<button type="button" class="btn" data-variant="outline" data-close-dialog>Close</button>
|
|
179
179
|
</footer>
|
|
180
180
|
<form method="dialog">
|
|
181
181
|
<button class="btn" data-variant="ghost" data-size="icon-sm" aria-label="Close left sheet"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M18 6 6 18"/><path d="m6 6 12 12"/></svg></button>
|
|
@@ -184,7 +184,7 @@
|
|
|
184
184
|
</dialog>
|
|
185
185
|
|
|
186
186
|
<!-- Large -->
|
|
187
|
-
<button type="button" class="btn" data-variant="outline">
|
|
187
|
+
<button type="button" class="btn" data-variant="outline" data-open-dialog="demo-sheet-large">
|
|
188
188
|
Open large sheet
|
|
189
189
|
</button>
|
|
190
190
|
|
|
@@ -201,8 +201,8 @@
|
|
|
201
201
|
</div>
|
|
202
202
|
</section>
|
|
203
203
|
<footer>
|
|
204
|
-
<button type="button" class="btn" data-variant="outline">Reset</button>
|
|
205
|
-
<button type="button" class="btn">Apply</button>
|
|
204
|
+
<button type="button" class="btn" data-variant="outline" data-close-dialog>Reset</button>
|
|
205
|
+
<button type="button" class="btn" data-close-dialog>Apply</button>
|
|
206
206
|
</footer>
|
|
207
207
|
<form method="dialog">
|
|
208
208
|
<button class="btn" data-variant="ghost" data-size="icon-sm" aria-label="Close large sheet"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M18 6 6 18"/><path d="m6 6 12 12"/></svg></button>
|
|
@@ -212,7 +212,7 @@
|
|
|
212
212
|
|
|
213
213
|
<!-- Right-to-left -->
|
|
214
214
|
<div dir="rtl" lang="ar">
|
|
215
|
-
<button type="button" class="btn" data-variant="outline">
|
|
215
|
+
<button type="button" class="btn" data-variant="outline" data-open-dialog="demo-sheet-rtl">
|
|
216
216
|
فتح اللوحة
|
|
217
217
|
</button>
|
|
218
218
|
|
|
@@ -229,8 +229,8 @@
|
|
|
229
229
|
</div>
|
|
230
230
|
</section>
|
|
231
231
|
<footer>
|
|
232
|
-
<button type="button" class="btn" data-variant="outline">إلغاء</button>
|
|
233
|
-
<button type="button" class="btn">حفظ التغييرات</button>
|
|
232
|
+
<button type="button" class="btn" data-variant="outline" data-close-dialog>إلغاء</button>
|
|
233
|
+
<button type="button" class="btn" data-close-dialog>حفظ التغييرات</button>
|
|
234
234
|
</footer>
|
|
235
235
|
<form method="dialog">
|
|
236
236
|
<button class="btn" data-variant="ghost" data-size="icon-sm" aria-label="إغلاق"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M18 6 6 18"/><path d="m6 6 12 12"/></svg></button>
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
</nav>
|
|
27
27
|
</section>
|
|
28
28
|
<footer>
|
|
29
|
-
<span>v0.
|
|
29
|
+
<span>v0.18.0</span>
|
|
30
30
|
</footer>
|
|
31
31
|
</aside>
|
|
32
32
|
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
</nav>
|
|
60
60
|
</section>
|
|
61
61
|
<footer>
|
|
62
|
-
<span>v0.
|
|
62
|
+
<span>v0.18.0</span>
|
|
63
63
|
</footer>
|
|
64
64
|
</aside>
|
|
65
65
|
|
|
@@ -109,7 +109,7 @@
|
|
|
109
109
|
</nav>
|
|
110
110
|
</section>
|
|
111
111
|
<footer>
|
|
112
|
-
<span>v0.
|
|
112
|
+
<span>v0.18.0</span>
|
|
113
113
|
</footer>
|
|
114
114
|
</aside>
|
|
115
115
|
|
|
@@ -147,7 +147,7 @@
|
|
|
147
147
|
</details>
|
|
148
148
|
</section>
|
|
149
149
|
<footer>
|
|
150
|
-
<span>v0.
|
|
150
|
+
<span>v0.18.0</span>
|
|
151
151
|
</footer>
|
|
152
152
|
</aside>
|
|
153
153
|
|
|
@@ -192,7 +192,7 @@
|
|
|
192
192
|
</nav>
|
|
193
193
|
</section>
|
|
194
194
|
<footer>
|
|
195
|
-
<span>v0.
|
|
195
|
+
<span>v0.18.0</span>
|
|
196
196
|
</footer>
|
|
197
197
|
</aside>
|
|
198
198
|
|
|
@@ -224,7 +224,7 @@
|
|
|
224
224
|
</nav>
|
|
225
225
|
</section>
|
|
226
226
|
<footer>
|
|
227
|
-
<span>v0.
|
|
227
|
+
<span>v0.18.0</span>
|
|
228
228
|
</footer>
|
|
229
229
|
</aside>
|
|
230
230
|
|
|
@@ -248,7 +248,7 @@
|
|
|
248
248
|
</nav>
|
|
249
249
|
</section>
|
|
250
250
|
<footer>
|
|
251
|
-
<span>v0.
|
|
251
|
+
<span>v0.18.0</span>
|
|
252
252
|
</footer>
|
|
253
253
|
</aside>
|
|
254
254
|
|
|
@@ -279,7 +279,7 @@
|
|
|
279
279
|
</nav>
|
|
280
280
|
</section>
|
|
281
281
|
<footer>
|
|
282
|
-
<span>v0.
|
|
282
|
+
<span>v0.18.0</span>
|
|
283
283
|
</footer>
|
|
284
284
|
</aside>
|
|
285
285
|
|
|
@@ -337,7 +337,7 @@
|
|
|
337
337
|
</aside>
|
|
338
338
|
|
|
339
339
|
<!-- Mobile -->
|
|
340
|
-
<button type="button" class="btn" data-variant="outline">
|
|
340
|
+
<button type="button" class="btn" data-variant="outline" data-open-dialog="demo-sidebar-mobile">
|
|
341
341
|
Open navigation
|
|
342
342
|
</button>
|
|
343
343
|
|
|
@@ -361,7 +361,7 @@
|
|
|
361
361
|
</nav>
|
|
362
362
|
</section>
|
|
363
363
|
<footer>
|
|
364
|
-
<span>v0.
|
|
364
|
+
<span>v0.18.0</span>
|
|
365
365
|
</footer>
|
|
366
366
|
</aside>
|
|
367
367
|
</div>
|
|
@@ -402,6 +402,6 @@
|
|
|
402
402
|
</nav>
|
|
403
403
|
</section>
|
|
404
404
|
<footer>
|
|
405
|
-
<span>الإصدار 0.
|
|
405
|
+
<span>الإصدار 0.18.0</span>
|
|
406
406
|
</footer>
|
|
407
407
|
</aside>
|
|
@@ -15,3 +15,14 @@
|
|
|
15
15
|
<button type="button" class="btn" data-variant="ghost" data-size="icon-xs" data-slot="close" aria-label="Dismiss">×</button>
|
|
16
16
|
</div>
|
|
17
17
|
</div>
|
|
18
|
+
|
|
19
|
+
<!-- Persistent -->
|
|
20
|
+
<div style="display: flex; flex-direction: column; gap: 0.5rem; max-width: 22rem">
|
|
21
|
+
<div class="toast" role="status" data-duration="0">
|
|
22
|
+
<section>
|
|
23
|
+
<p data-slot="title">Sync paused</p>
|
|
24
|
+
<p data-slot="description">Resume when you are back online. This toast stays until dismissed.</p>
|
|
25
|
+
</section>
|
|
26
|
+
<button type="button" class="btn" data-variant="ghost" data-size="icon-xs" data-slot="close" aria-label="Dismiss">×</button>
|
|
27
|
+
</div>
|
|
28
|
+
</div>
|
package/registry/registry.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "./schema.json",
|
|
3
3
|
"name": "loseta",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.18.0",
|
|
5
5
|
"styles": [
|
|
6
6
|
{
|
|
7
7
|
"name": "nova",
|
|
@@ -524,6 +524,18 @@
|
|
|
524
524
|
],
|
|
525
525
|
"examples": [
|
|
526
526
|
"examples/alert-dialog.html"
|
|
527
|
+
],
|
|
528
|
+
"behaviors": [
|
|
529
|
+
{
|
|
530
|
+
"path": "behaviors/core.js",
|
|
531
|
+
"target": "behaviors/core.js",
|
|
532
|
+
"kind": "support"
|
|
533
|
+
},
|
|
534
|
+
{
|
|
535
|
+
"path": "behaviors/dialog.js",
|
|
536
|
+
"target": "behaviors/dialog.js",
|
|
537
|
+
"kind": "entry"
|
|
538
|
+
}
|
|
527
539
|
]
|
|
528
540
|
},
|
|
529
541
|
{
|
|
@@ -986,6 +998,18 @@
|
|
|
986
998
|
],
|
|
987
999
|
"examples": [
|
|
988
1000
|
"examples/code-block.html"
|
|
1001
|
+
],
|
|
1002
|
+
"behaviors": [
|
|
1003
|
+
{
|
|
1004
|
+
"path": "behaviors/core.js",
|
|
1005
|
+
"target": "behaviors/core.js",
|
|
1006
|
+
"kind": "support"
|
|
1007
|
+
},
|
|
1008
|
+
{
|
|
1009
|
+
"path": "behaviors/code-block.js",
|
|
1010
|
+
"target": "behaviors/code-block.js",
|
|
1011
|
+
"kind": "entry"
|
|
1012
|
+
}
|
|
989
1013
|
]
|
|
990
1014
|
},
|
|
991
1015
|
{
|
|
@@ -1065,6 +1089,18 @@
|
|
|
1065
1089
|
],
|
|
1066
1090
|
"examples": [
|
|
1067
1091
|
"examples/dialog.html"
|
|
1092
|
+
],
|
|
1093
|
+
"behaviors": [
|
|
1094
|
+
{
|
|
1095
|
+
"path": "behaviors/core.js",
|
|
1096
|
+
"target": "behaviors/core.js",
|
|
1097
|
+
"kind": "support"
|
|
1098
|
+
},
|
|
1099
|
+
{
|
|
1100
|
+
"path": "behaviors/dialog.js",
|
|
1101
|
+
"target": "behaviors/dialog.js",
|
|
1102
|
+
"kind": "entry"
|
|
1103
|
+
}
|
|
1068
1104
|
]
|
|
1069
1105
|
},
|
|
1070
1106
|
{
|
|
@@ -1143,6 +1179,18 @@
|
|
|
1143
1179
|
],
|
|
1144
1180
|
"examples": [
|
|
1145
1181
|
"examples/dropdown-menu.html"
|
|
1182
|
+
],
|
|
1183
|
+
"behaviors": [
|
|
1184
|
+
{
|
|
1185
|
+
"path": "behaviors/core.js",
|
|
1186
|
+
"target": "behaviors/core.js",
|
|
1187
|
+
"kind": "support"
|
|
1188
|
+
},
|
|
1189
|
+
{
|
|
1190
|
+
"path": "behaviors/menu.js",
|
|
1191
|
+
"target": "behaviors/menu.js",
|
|
1192
|
+
"kind": "entry"
|
|
1193
|
+
}
|
|
1146
1194
|
]
|
|
1147
1195
|
},
|
|
1148
1196
|
{
|
|
@@ -1766,6 +1814,18 @@
|
|
|
1766
1814
|
],
|
|
1767
1815
|
"examples": [
|
|
1768
1816
|
"examples/popover.html"
|
|
1817
|
+
],
|
|
1818
|
+
"behaviors": [
|
|
1819
|
+
{
|
|
1820
|
+
"path": "behaviors/core.js",
|
|
1821
|
+
"target": "behaviors/core.js",
|
|
1822
|
+
"kind": "support"
|
|
1823
|
+
},
|
|
1824
|
+
{
|
|
1825
|
+
"path": "behaviors/popover.js",
|
|
1826
|
+
"target": "behaviors/popover.js",
|
|
1827
|
+
"kind": "entry"
|
|
1828
|
+
}
|
|
1769
1829
|
]
|
|
1770
1830
|
},
|
|
1771
1831
|
{
|
|
@@ -2138,6 +2198,18 @@
|
|
|
2138
2198
|
],
|
|
2139
2199
|
"examples": [
|
|
2140
2200
|
"examples/tabs.html"
|
|
2201
|
+
],
|
|
2202
|
+
"behaviors": [
|
|
2203
|
+
{
|
|
2204
|
+
"path": "behaviors/core.js",
|
|
2205
|
+
"target": "behaviors/core.js",
|
|
2206
|
+
"kind": "support"
|
|
2207
|
+
},
|
|
2208
|
+
{
|
|
2209
|
+
"path": "behaviors/tabs.js",
|
|
2210
|
+
"target": "behaviors/tabs.js",
|
|
2211
|
+
"kind": "entry"
|
|
2212
|
+
}
|
|
2141
2213
|
]
|
|
2142
2214
|
},
|
|
2143
2215
|
{
|
|
@@ -3094,6 +3166,18 @@
|
|
|
3094
3166
|
],
|
|
3095
3167
|
"examples": [
|
|
3096
3168
|
"examples/context-menu.html"
|
|
3169
|
+
],
|
|
3170
|
+
"behaviors": [
|
|
3171
|
+
{
|
|
3172
|
+
"path": "behaviors/core.js",
|
|
3173
|
+
"target": "behaviors/core.js",
|
|
3174
|
+
"kind": "support"
|
|
3175
|
+
},
|
|
3176
|
+
{
|
|
3177
|
+
"path": "behaviors/menu.js",
|
|
3178
|
+
"target": "behaviors/menu.js",
|
|
3179
|
+
"kind": "entry"
|
|
3180
|
+
}
|
|
3097
3181
|
]
|
|
3098
3182
|
},
|
|
3099
3183
|
{
|
|
@@ -3173,6 +3257,18 @@
|
|
|
3173
3257
|
],
|
|
3174
3258
|
"examples": [
|
|
3175
3259
|
"examples/drawer.html"
|
|
3260
|
+
],
|
|
3261
|
+
"behaviors": [
|
|
3262
|
+
{
|
|
3263
|
+
"path": "behaviors/core.js",
|
|
3264
|
+
"target": "behaviors/core.js",
|
|
3265
|
+
"kind": "support"
|
|
3266
|
+
},
|
|
3267
|
+
{
|
|
3268
|
+
"path": "behaviors/dialog.js",
|
|
3269
|
+
"target": "behaviors/dialog.js",
|
|
3270
|
+
"kind": "entry"
|
|
3271
|
+
}
|
|
3176
3272
|
]
|
|
3177
3273
|
},
|
|
3178
3274
|
{
|
|
@@ -3322,6 +3418,18 @@
|
|
|
3322
3418
|
],
|
|
3323
3419
|
"examples": [
|
|
3324
3420
|
"examples/menubar.html"
|
|
3421
|
+
],
|
|
3422
|
+
"behaviors": [
|
|
3423
|
+
{
|
|
3424
|
+
"path": "behaviors/core.js",
|
|
3425
|
+
"target": "behaviors/core.js",
|
|
3426
|
+
"kind": "support"
|
|
3427
|
+
},
|
|
3428
|
+
{
|
|
3429
|
+
"path": "behaviors/menu.js",
|
|
3430
|
+
"target": "behaviors/menu.js",
|
|
3431
|
+
"kind": "entry"
|
|
3432
|
+
}
|
|
3325
3433
|
]
|
|
3326
3434
|
},
|
|
3327
3435
|
{
|
|
@@ -3396,6 +3504,18 @@
|
|
|
3396
3504
|
],
|
|
3397
3505
|
"examples": [
|
|
3398
3506
|
"examples/navigation-menu.html"
|
|
3507
|
+
],
|
|
3508
|
+
"behaviors": [
|
|
3509
|
+
{
|
|
3510
|
+
"path": "behaviors/core.js",
|
|
3511
|
+
"target": "behaviors/core.js",
|
|
3512
|
+
"kind": "support"
|
|
3513
|
+
},
|
|
3514
|
+
{
|
|
3515
|
+
"path": "behaviors/menu.js",
|
|
3516
|
+
"target": "behaviors/menu.js",
|
|
3517
|
+
"kind": "entry"
|
|
3518
|
+
}
|
|
3399
3519
|
]
|
|
3400
3520
|
},
|
|
3401
3521
|
{
|
|
@@ -3475,6 +3595,18 @@
|
|
|
3475
3595
|
],
|
|
3476
3596
|
"examples": [
|
|
3477
3597
|
"examples/sheet.html"
|
|
3598
|
+
],
|
|
3599
|
+
"behaviors": [
|
|
3600
|
+
{
|
|
3601
|
+
"path": "behaviors/core.js",
|
|
3602
|
+
"target": "behaviors/core.js",
|
|
3603
|
+
"kind": "support"
|
|
3604
|
+
},
|
|
3605
|
+
{
|
|
3606
|
+
"path": "behaviors/dialog.js",
|
|
3607
|
+
"target": "behaviors/dialog.js",
|
|
3608
|
+
"kind": "entry"
|
|
3609
|
+
}
|
|
3478
3610
|
]
|
|
3479
3611
|
},
|
|
3480
3612
|
{
|
|
@@ -3931,6 +4063,23 @@
|
|
|
3931
4063
|
],
|
|
3932
4064
|
"examples": [
|
|
3933
4065
|
"examples/select.html"
|
|
4066
|
+
],
|
|
4067
|
+
"behaviors": [
|
|
4068
|
+
{
|
|
4069
|
+
"path": "behaviors/core.js",
|
|
4070
|
+
"target": "behaviors/core.js",
|
|
4071
|
+
"kind": "support"
|
|
4072
|
+
},
|
|
4073
|
+
{
|
|
4074
|
+
"path": "behaviors/listbox.js",
|
|
4075
|
+
"target": "behaviors/listbox.js",
|
|
4076
|
+
"kind": "support"
|
|
4077
|
+
},
|
|
4078
|
+
{
|
|
4079
|
+
"path": "behaviors/select.js",
|
|
4080
|
+
"target": "behaviors/select.js",
|
|
4081
|
+
"kind": "entry"
|
|
4082
|
+
}
|
|
3934
4083
|
]
|
|
3935
4084
|
},
|
|
3936
4085
|
{
|
|
@@ -4008,6 +4157,23 @@
|
|
|
4008
4157
|
],
|
|
4009
4158
|
"examples": [
|
|
4010
4159
|
"examples/combobox.html"
|
|
4160
|
+
],
|
|
4161
|
+
"behaviors": [
|
|
4162
|
+
{
|
|
4163
|
+
"path": "behaviors/core.js",
|
|
4164
|
+
"target": "behaviors/core.js",
|
|
4165
|
+
"kind": "support"
|
|
4166
|
+
},
|
|
4167
|
+
{
|
|
4168
|
+
"path": "behaviors/listbox.js",
|
|
4169
|
+
"target": "behaviors/listbox.js",
|
|
4170
|
+
"kind": "support"
|
|
4171
|
+
},
|
|
4172
|
+
{
|
|
4173
|
+
"path": "behaviors/combobox.js",
|
|
4174
|
+
"target": "behaviors/combobox.js",
|
|
4175
|
+
"kind": "entry"
|
|
4176
|
+
}
|
|
4011
4177
|
]
|
|
4012
4178
|
},
|
|
4013
4179
|
{
|
|
@@ -4091,6 +4257,23 @@
|
|
|
4091
4257
|
],
|
|
4092
4258
|
"examples": [
|
|
4093
4259
|
"examples/command.html"
|
|
4260
|
+
],
|
|
4261
|
+
"behaviors": [
|
|
4262
|
+
{
|
|
4263
|
+
"path": "behaviors/core.js",
|
|
4264
|
+
"target": "behaviors/core.js",
|
|
4265
|
+
"kind": "support"
|
|
4266
|
+
},
|
|
4267
|
+
{
|
|
4268
|
+
"path": "behaviors/listbox.js",
|
|
4269
|
+
"target": "behaviors/listbox.js",
|
|
4270
|
+
"kind": "support"
|
|
4271
|
+
},
|
|
4272
|
+
{
|
|
4273
|
+
"path": "behaviors/command.js",
|
|
4274
|
+
"target": "behaviors/command.js",
|
|
4275
|
+
"kind": "entry"
|
|
4276
|
+
}
|
|
4094
4277
|
]
|
|
4095
4278
|
},
|
|
4096
4279
|
{
|
|
@@ -4542,6 +4725,18 @@
|
|
|
4542
4725
|
],
|
|
4543
4726
|
"examples": [
|
|
4544
4727
|
"examples/toast.html"
|
|
4728
|
+
],
|
|
4729
|
+
"behaviors": [
|
|
4730
|
+
{
|
|
4731
|
+
"path": "behaviors/core.js",
|
|
4732
|
+
"target": "behaviors/core.js",
|
|
4733
|
+
"kind": "support"
|
|
4734
|
+
},
|
|
4735
|
+
{
|
|
4736
|
+
"path": "behaviors/toast.js",
|
|
4737
|
+
"target": "behaviors/toast.js",
|
|
4738
|
+
"kind": "entry"
|
|
4739
|
+
}
|
|
4545
4740
|
]
|
|
4546
4741
|
},
|
|
4547
4742
|
{
|
package/registry/schema.json
CHANGED
|
@@ -61,6 +61,10 @@
|
|
|
61
61
|
"minItems": 1,
|
|
62
62
|
"items": { "$ref": "#/$defs/file" }
|
|
63
63
|
},
|
|
64
|
+
"behaviors": {
|
|
65
|
+
"type": "array",
|
|
66
|
+
"items": { "$ref": "#/$defs/behavior" }
|
|
67
|
+
},
|
|
64
68
|
"examples": {
|
|
65
69
|
"type": "array",
|
|
66
70
|
"items": { "type": "string" },
|
|
@@ -87,6 +91,19 @@
|
|
|
87
91
|
]
|
|
88
92
|
}
|
|
89
93
|
}
|
|
94
|
+
},
|
|
95
|
+
"behavior": {
|
|
96
|
+
"type": "object",
|
|
97
|
+
"required": ["path", "target", "kind"],
|
|
98
|
+
"additionalProperties": false,
|
|
99
|
+
"properties": {
|
|
100
|
+
"path": { "type": "string", "minLength": 1 },
|
|
101
|
+
"target": {
|
|
102
|
+
"type": "string",
|
|
103
|
+
"pattern": "^behaviors/[a-z0-9-]+\\.js$"
|
|
104
|
+
},
|
|
105
|
+
"kind": { "enum": ["entry", "support"] }
|
|
106
|
+
}
|
|
90
107
|
}
|
|
91
108
|
}
|
|
92
109
|
}
|