loseta 0.4.0 → 0.6.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 +13 -5
- package/dist/add-policy.d.ts +15 -0
- package/dist/add-policy.js +53 -0
- package/dist/add-policy.js.map +1 -0
- package/dist/commands/add.d.ts +4 -0
- package/dist/commands/add.js +24 -20
- package/dist/commands/add.js.map +1 -1
- package/dist/commands/list.d.ts +6 -1
- package/dist/commands/list.js +23 -5
- package/dist/commands/list.js.map +1 -1
- package/dist/registry.d.ts +2 -0
- package/dist/registry.js +6 -0
- package/dist/registry.js.map +1 -1
- package/dist/style-switch.js +11 -0
- package/dist/style-switch.js.map +1 -1
- package/package.json +1 -1
- package/registry/components/accordion.css +65 -0
- package/registry/components/aspect-ratio.css +25 -0
- package/registry/components/avatar.css +54 -0
- package/registry/components/breadcrumb.css +57 -0
- package/registry/components/context-menu.css +29 -0
- package/registry/components/drawer.css +26 -0
- package/registry/components/dropdown-menu.css +1 -84
- package/registry/components/hover-card.css +18 -0
- package/registry/components/menubar.css +52 -0
- package/registry/components/navigation-menu.css +35 -0
- package/registry/components/pagination.css +49 -0
- package/registry/components/progress.css +13 -0
- package/registry/components/separator.css +12 -0
- package/registry/components/sheet.css +21 -0
- package/registry/components/spinner.css +8 -0
- package/registry/components/toggle-group.css +17 -0
- package/registry/components/toggle.css +31 -0
- package/registry/examples/accordion.html +56 -0
- package/registry/examples/aspect-ratio.html +9 -0
- package/registry/examples/avatar.html +21 -0
- package/registry/examples/breadcrumb.html +23 -0
- package/registry/examples/context-menu.html +10 -0
- package/registry/examples/drawer.html +46 -0
- package/registry/examples/hover-card.html +13 -0
- package/registry/examples/menubar.html +43 -0
- package/registry/examples/navigation-menu.html +58 -0
- package/registry/examples/pagination.html +39 -0
- package/registry/examples/progress.html +5 -0
- package/registry/examples/separator.html +15 -0
- package/registry/examples/sheet.html +42 -0
- package/registry/examples/spinner.html +12 -0
- package/registry/examples/toggle-group.html +13 -0
- package/registry/examples/toggle.html +13 -0
- package/registry/primitives/dialog-shell.css +54 -1
- package/registry/primitives/menu.css +87 -0
- package/registry/registry.json +573 -2
- package/registry/styles/luma/dropdown-menu.css +0 -96
- package/registry/styles/luma/primitives/menu.css +104 -0
- package/registry/styles/lyra/dropdown-menu.css +0 -96
- package/registry/styles/lyra/primitives/menu.css +104 -0
- package/registry/styles/maia/dropdown-menu.css +0 -96
- package/registry/styles/maia/primitives/menu.css +104 -0
- package/registry/styles/mira/dropdown-menu.css +0 -97
- package/registry/styles/mira/primitives/menu.css +105 -0
- package/registry/styles/nova/accordion.css +59 -0
- package/registry/styles/nova/aspect-ratio.css +6 -0
- package/registry/styles/nova/avatar.css +89 -0
- package/registry/styles/nova/breadcrumb.css +61 -0
- package/registry/styles/nova/context-menu.css +19 -0
- package/registry/styles/nova/drawer.css +60 -0
- package/registry/styles/nova/dropdown-menu.css +0 -96
- package/registry/styles/nova/hover-card.css +22 -0
- package/registry/styles/nova/menubar.css +48 -0
- package/registry/styles/nova/navigation-menu.css +79 -0
- package/registry/styles/nova/pagination.css +46 -0
- package/registry/styles/nova/primitives/menu.css +104 -0
- package/registry/styles/nova/progress.css +67 -0
- package/registry/styles/nova/separator.css +14 -0
- package/registry/styles/nova/sheet.css +54 -0
- package/registry/styles/nova/spinner.css +35 -0
- package/registry/styles/nova/toggle-group.css +48 -0
- package/registry/styles/nova/toggle.css +110 -0
- package/registry/styles/rhea/dropdown-menu.css +0 -97
- package/registry/styles/rhea/primitives/menu.css +105 -0
- package/registry/styles/sera/dropdown-menu.css +0 -96
- package/registry/styles/sera/primitives/menu.css +104 -0
- package/registry/styles/vega/dropdown-menu.css +0 -96
- package/registry/styles/vega/primitives/menu.css +104 -0
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.6.0",
|
|
5
5
|
"styles": [
|
|
6
6
|
{
|
|
7
7
|
"name": "nova",
|
|
@@ -178,6 +178,72 @@
|
|
|
178
178
|
}
|
|
179
179
|
]
|
|
180
180
|
},
|
|
181
|
+
{
|
|
182
|
+
"name": "menu",
|
|
183
|
+
"type": "primitive",
|
|
184
|
+
"status": "stable",
|
|
185
|
+
"title": "Menu primitive",
|
|
186
|
+
"description": "Shared menu items, headings, separators, shortcuts and indicators used by menu components.",
|
|
187
|
+
"root": [
|
|
188
|
+
"[role='menu']"
|
|
189
|
+
],
|
|
190
|
+
"files": [
|
|
191
|
+
{
|
|
192
|
+
"path": "primitives/menu.css",
|
|
193
|
+
"target": "primitives/menu.css",
|
|
194
|
+
"role": "base",
|
|
195
|
+
"layer": "loseta.components"
|
|
196
|
+
},
|
|
197
|
+
{
|
|
198
|
+
"path": "styles/nova/primitives/menu.css",
|
|
199
|
+
"target": "styles/nova/primitives/menu.css",
|
|
200
|
+
"role": "style",
|
|
201
|
+
"layer": "loseta.style"
|
|
202
|
+
},
|
|
203
|
+
{
|
|
204
|
+
"path": "styles/vega/primitives/menu.css",
|
|
205
|
+
"target": "styles/vega/primitives/menu.css",
|
|
206
|
+
"role": "style",
|
|
207
|
+
"layer": "loseta.style"
|
|
208
|
+
},
|
|
209
|
+
{
|
|
210
|
+
"path": "styles/maia/primitives/menu.css",
|
|
211
|
+
"target": "styles/maia/primitives/menu.css",
|
|
212
|
+
"role": "style",
|
|
213
|
+
"layer": "loseta.style"
|
|
214
|
+
},
|
|
215
|
+
{
|
|
216
|
+
"path": "styles/lyra/primitives/menu.css",
|
|
217
|
+
"target": "styles/lyra/primitives/menu.css",
|
|
218
|
+
"role": "style",
|
|
219
|
+
"layer": "loseta.style"
|
|
220
|
+
},
|
|
221
|
+
{
|
|
222
|
+
"path": "styles/mira/primitives/menu.css",
|
|
223
|
+
"target": "styles/mira/primitives/menu.css",
|
|
224
|
+
"role": "style",
|
|
225
|
+
"layer": "loseta.style"
|
|
226
|
+
},
|
|
227
|
+
{
|
|
228
|
+
"path": "styles/luma/primitives/menu.css",
|
|
229
|
+
"target": "styles/luma/primitives/menu.css",
|
|
230
|
+
"role": "style",
|
|
231
|
+
"layer": "loseta.style"
|
|
232
|
+
},
|
|
233
|
+
{
|
|
234
|
+
"path": "styles/sera/primitives/menu.css",
|
|
235
|
+
"target": "styles/sera/primitives/menu.css",
|
|
236
|
+
"role": "style",
|
|
237
|
+
"layer": "loseta.style"
|
|
238
|
+
},
|
|
239
|
+
{
|
|
240
|
+
"path": "styles/rhea/primitives/menu.css",
|
|
241
|
+
"target": "styles/rhea/primitives/menu.css",
|
|
242
|
+
"role": "style",
|
|
243
|
+
"layer": "loseta.style"
|
|
244
|
+
}
|
|
245
|
+
]
|
|
246
|
+
},
|
|
181
247
|
{
|
|
182
248
|
"name": "popover-primitive",
|
|
183
249
|
"type": "primitive",
|
|
@@ -916,7 +982,8 @@
|
|
|
916
982
|
".dropdown-menu"
|
|
917
983
|
],
|
|
918
984
|
"registryDependencies": [
|
|
919
|
-
"popover-primitive"
|
|
985
|
+
"popover-primitive",
|
|
986
|
+
"menu"
|
|
920
987
|
],
|
|
921
988
|
"optionalDependencies": [
|
|
922
989
|
"kbd"
|
|
@@ -2087,6 +2154,510 @@
|
|
|
2087
2154
|
"examples": [
|
|
2088
2155
|
"examples/tooltip.html"
|
|
2089
2156
|
]
|
|
2157
|
+
},
|
|
2158
|
+
{
|
|
2159
|
+
"name": "accordion",
|
|
2160
|
+
"type": "component",
|
|
2161
|
+
"status": "experimental",
|
|
2162
|
+
"title": "Accordion",
|
|
2163
|
+
"description": "Displays a vertically stacked set of interactive headings that reveal content.",
|
|
2164
|
+
"docs": "/docs/components/accordion",
|
|
2165
|
+
"root": [
|
|
2166
|
+
".accordion"
|
|
2167
|
+
],
|
|
2168
|
+
"registryDependencies": [],
|
|
2169
|
+
"optionalDependencies": [],
|
|
2170
|
+
"files": [
|
|
2171
|
+
{
|
|
2172
|
+
"path": "components/accordion.css",
|
|
2173
|
+
"target": "components/accordion.css",
|
|
2174
|
+
"role": "base",
|
|
2175
|
+
"layer": "loseta.components"
|
|
2176
|
+
},
|
|
2177
|
+
{
|
|
2178
|
+
"path": "styles/nova/accordion.css",
|
|
2179
|
+
"target": "styles/nova/accordion.css",
|
|
2180
|
+
"role": "style",
|
|
2181
|
+
"layer": "loseta.style"
|
|
2182
|
+
}
|
|
2183
|
+
],
|
|
2184
|
+
"examples": [
|
|
2185
|
+
"examples/accordion.html"
|
|
2186
|
+
]
|
|
2187
|
+
},
|
|
2188
|
+
{
|
|
2189
|
+
"name": "aspect-ratio",
|
|
2190
|
+
"type": "component",
|
|
2191
|
+
"status": "experimental",
|
|
2192
|
+
"title": "Aspect Ratio",
|
|
2193
|
+
"description": "Constrains media to a preferred aspect ratio.",
|
|
2194
|
+
"docs": "/docs/components/aspect-ratio",
|
|
2195
|
+
"root": [
|
|
2196
|
+
".aspect-ratio"
|
|
2197
|
+
],
|
|
2198
|
+
"registryDependencies": [],
|
|
2199
|
+
"optionalDependencies": [],
|
|
2200
|
+
"files": [
|
|
2201
|
+
{
|
|
2202
|
+
"path": "components/aspect-ratio.css",
|
|
2203
|
+
"target": "components/aspect-ratio.css",
|
|
2204
|
+
"role": "base",
|
|
2205
|
+
"layer": "loseta.components"
|
|
2206
|
+
},
|
|
2207
|
+
{
|
|
2208
|
+
"path": "styles/nova/aspect-ratio.css",
|
|
2209
|
+
"target": "styles/nova/aspect-ratio.css",
|
|
2210
|
+
"role": "style",
|
|
2211
|
+
"layer": "loseta.style"
|
|
2212
|
+
}
|
|
2213
|
+
],
|
|
2214
|
+
"examples": [
|
|
2215
|
+
"examples/aspect-ratio.html"
|
|
2216
|
+
]
|
|
2217
|
+
},
|
|
2218
|
+
{
|
|
2219
|
+
"name": "avatar",
|
|
2220
|
+
"type": "component",
|
|
2221
|
+
"status": "experimental",
|
|
2222
|
+
"title": "Avatar",
|
|
2223
|
+
"description": "Displays an image or fallback initials representing a user.",
|
|
2224
|
+
"docs": "/docs/components/avatar",
|
|
2225
|
+
"root": [
|
|
2226
|
+
".avatar",
|
|
2227
|
+
".avatar-group"
|
|
2228
|
+
],
|
|
2229
|
+
"registryDependencies": [],
|
|
2230
|
+
"optionalDependencies": [],
|
|
2231
|
+
"files": [
|
|
2232
|
+
{
|
|
2233
|
+
"path": "components/avatar.css",
|
|
2234
|
+
"target": "components/avatar.css",
|
|
2235
|
+
"role": "base",
|
|
2236
|
+
"layer": "loseta.components"
|
|
2237
|
+
},
|
|
2238
|
+
{
|
|
2239
|
+
"path": "styles/nova/avatar.css",
|
|
2240
|
+
"target": "styles/nova/avatar.css",
|
|
2241
|
+
"role": "style",
|
|
2242
|
+
"layer": "loseta.style"
|
|
2243
|
+
}
|
|
2244
|
+
],
|
|
2245
|
+
"examples": [
|
|
2246
|
+
"examples/avatar.html"
|
|
2247
|
+
]
|
|
2248
|
+
},
|
|
2249
|
+
{
|
|
2250
|
+
"name": "breadcrumb",
|
|
2251
|
+
"type": "component",
|
|
2252
|
+
"status": "experimental",
|
|
2253
|
+
"title": "Breadcrumb",
|
|
2254
|
+
"description": "Displays the path to the current resource using a hierarchy of links.",
|
|
2255
|
+
"docs": "/docs/components/breadcrumb",
|
|
2256
|
+
"root": [
|
|
2257
|
+
".breadcrumb"
|
|
2258
|
+
],
|
|
2259
|
+
"registryDependencies": [],
|
|
2260
|
+
"optionalDependencies": [
|
|
2261
|
+
"dropdown-menu"
|
|
2262
|
+
],
|
|
2263
|
+
"files": [
|
|
2264
|
+
{
|
|
2265
|
+
"path": "components/breadcrumb.css",
|
|
2266
|
+
"target": "components/breadcrumb.css",
|
|
2267
|
+
"role": "base",
|
|
2268
|
+
"layer": "loseta.components"
|
|
2269
|
+
},
|
|
2270
|
+
{
|
|
2271
|
+
"path": "styles/nova/breadcrumb.css",
|
|
2272
|
+
"target": "styles/nova/breadcrumb.css",
|
|
2273
|
+
"role": "style",
|
|
2274
|
+
"layer": "loseta.style"
|
|
2275
|
+
}
|
|
2276
|
+
],
|
|
2277
|
+
"examples": [
|
|
2278
|
+
"examples/breadcrumb.html"
|
|
2279
|
+
]
|
|
2280
|
+
},
|
|
2281
|
+
{
|
|
2282
|
+
"name": "pagination",
|
|
2283
|
+
"type": "component",
|
|
2284
|
+
"status": "experimental",
|
|
2285
|
+
"title": "Pagination",
|
|
2286
|
+
"description": "Displays navigation for paged content.",
|
|
2287
|
+
"docs": "/docs/components/pagination",
|
|
2288
|
+
"root": [
|
|
2289
|
+
".pagination"
|
|
2290
|
+
],
|
|
2291
|
+
"registryDependencies": [],
|
|
2292
|
+
"optionalDependencies": [
|
|
2293
|
+
"button"
|
|
2294
|
+
],
|
|
2295
|
+
"files": [
|
|
2296
|
+
{
|
|
2297
|
+
"path": "components/pagination.css",
|
|
2298
|
+
"target": "components/pagination.css",
|
|
2299
|
+
"role": "base",
|
|
2300
|
+
"layer": "loseta.components"
|
|
2301
|
+
},
|
|
2302
|
+
{
|
|
2303
|
+
"path": "styles/nova/pagination.css",
|
|
2304
|
+
"target": "styles/nova/pagination.css",
|
|
2305
|
+
"role": "style",
|
|
2306
|
+
"layer": "loseta.style"
|
|
2307
|
+
}
|
|
2308
|
+
],
|
|
2309
|
+
"examples": [
|
|
2310
|
+
"examples/pagination.html"
|
|
2311
|
+
]
|
|
2312
|
+
},
|
|
2313
|
+
{
|
|
2314
|
+
"name": "progress",
|
|
2315
|
+
"type": "component",
|
|
2316
|
+
"status": "experimental",
|
|
2317
|
+
"title": "Progress",
|
|
2318
|
+
"description": "Displays an indicator showing the completion progress of a task.",
|
|
2319
|
+
"docs": "/docs/components/progress",
|
|
2320
|
+
"root": [
|
|
2321
|
+
".progress"
|
|
2322
|
+
],
|
|
2323
|
+
"registryDependencies": [],
|
|
2324
|
+
"optionalDependencies": [],
|
|
2325
|
+
"files": [
|
|
2326
|
+
{
|
|
2327
|
+
"path": "components/progress.css",
|
|
2328
|
+
"target": "components/progress.css",
|
|
2329
|
+
"role": "base",
|
|
2330
|
+
"layer": "loseta.components"
|
|
2331
|
+
},
|
|
2332
|
+
{
|
|
2333
|
+
"path": "styles/nova/progress.css",
|
|
2334
|
+
"target": "styles/nova/progress.css",
|
|
2335
|
+
"role": "style",
|
|
2336
|
+
"layer": "loseta.style"
|
|
2337
|
+
}
|
|
2338
|
+
],
|
|
2339
|
+
"examples": [
|
|
2340
|
+
"examples/progress.html"
|
|
2341
|
+
]
|
|
2342
|
+
},
|
|
2343
|
+
{
|
|
2344
|
+
"name": "separator",
|
|
2345
|
+
"type": "component",
|
|
2346
|
+
"status": "experimental",
|
|
2347
|
+
"title": "Separator",
|
|
2348
|
+
"description": "Visually or semantically separates content.",
|
|
2349
|
+
"docs": "/docs/components/separator",
|
|
2350
|
+
"root": [
|
|
2351
|
+
".separator"
|
|
2352
|
+
],
|
|
2353
|
+
"registryDependencies": [],
|
|
2354
|
+
"optionalDependencies": [],
|
|
2355
|
+
"files": [
|
|
2356
|
+
{
|
|
2357
|
+
"path": "components/separator.css",
|
|
2358
|
+
"target": "components/separator.css",
|
|
2359
|
+
"role": "base",
|
|
2360
|
+
"layer": "loseta.components"
|
|
2361
|
+
},
|
|
2362
|
+
{
|
|
2363
|
+
"path": "styles/nova/separator.css",
|
|
2364
|
+
"target": "styles/nova/separator.css",
|
|
2365
|
+
"role": "style",
|
|
2366
|
+
"layer": "loseta.style"
|
|
2367
|
+
}
|
|
2368
|
+
],
|
|
2369
|
+
"examples": [
|
|
2370
|
+
"examples/separator.html"
|
|
2371
|
+
]
|
|
2372
|
+
},
|
|
2373
|
+
{
|
|
2374
|
+
"name": "spinner",
|
|
2375
|
+
"type": "component",
|
|
2376
|
+
"status": "experimental",
|
|
2377
|
+
"title": "Spinner",
|
|
2378
|
+
"description": "Displays an animated loading indicator.",
|
|
2379
|
+
"docs": "/docs/components/spinner",
|
|
2380
|
+
"root": [
|
|
2381
|
+
".spinner"
|
|
2382
|
+
],
|
|
2383
|
+
"registryDependencies": [],
|
|
2384
|
+
"optionalDependencies": [],
|
|
2385
|
+
"files": [
|
|
2386
|
+
{
|
|
2387
|
+
"path": "components/spinner.css",
|
|
2388
|
+
"target": "components/spinner.css",
|
|
2389
|
+
"role": "base",
|
|
2390
|
+
"layer": "loseta.components"
|
|
2391
|
+
},
|
|
2392
|
+
{
|
|
2393
|
+
"path": "styles/nova/spinner.css",
|
|
2394
|
+
"target": "styles/nova/spinner.css",
|
|
2395
|
+
"role": "style",
|
|
2396
|
+
"layer": "loseta.style"
|
|
2397
|
+
}
|
|
2398
|
+
],
|
|
2399
|
+
"examples": [
|
|
2400
|
+
"examples/spinner.html"
|
|
2401
|
+
]
|
|
2402
|
+
},
|
|
2403
|
+
{
|
|
2404
|
+
"name": "toggle",
|
|
2405
|
+
"type": "component",
|
|
2406
|
+
"status": "experimental",
|
|
2407
|
+
"title": "Toggle",
|
|
2408
|
+
"description": "Displays a two-state button that can be pressed or unpressed.",
|
|
2409
|
+
"docs": "/docs/components/toggle",
|
|
2410
|
+
"root": [
|
|
2411
|
+
".toggle"
|
|
2412
|
+
],
|
|
2413
|
+
"registryDependencies": [],
|
|
2414
|
+
"optionalDependencies": [],
|
|
2415
|
+
"files": [
|
|
2416
|
+
{
|
|
2417
|
+
"path": "components/toggle.css",
|
|
2418
|
+
"target": "components/toggle.css",
|
|
2419
|
+
"role": "base",
|
|
2420
|
+
"layer": "loseta.components"
|
|
2421
|
+
},
|
|
2422
|
+
{
|
|
2423
|
+
"path": "styles/nova/toggle.css",
|
|
2424
|
+
"target": "styles/nova/toggle.css",
|
|
2425
|
+
"role": "style",
|
|
2426
|
+
"layer": "loseta.style"
|
|
2427
|
+
}
|
|
2428
|
+
],
|
|
2429
|
+
"examples": [
|
|
2430
|
+
"examples/toggle.html"
|
|
2431
|
+
]
|
|
2432
|
+
},
|
|
2433
|
+
{
|
|
2434
|
+
"name": "toggle-group",
|
|
2435
|
+
"type": "component",
|
|
2436
|
+
"status": "experimental",
|
|
2437
|
+
"title": "Toggle Group",
|
|
2438
|
+
"description": "Groups a set of toggle buttons.",
|
|
2439
|
+
"docs": "/docs/components/toggle-group",
|
|
2440
|
+
"root": [
|
|
2441
|
+
".toggle-group"
|
|
2442
|
+
],
|
|
2443
|
+
"registryDependencies": [
|
|
2444
|
+
"toggle"
|
|
2445
|
+
],
|
|
2446
|
+
"optionalDependencies": [],
|
|
2447
|
+
"files": [
|
|
2448
|
+
{
|
|
2449
|
+
"path": "components/toggle-group.css",
|
|
2450
|
+
"target": "components/toggle-group.css",
|
|
2451
|
+
"role": "base",
|
|
2452
|
+
"layer": "loseta.components"
|
|
2453
|
+
},
|
|
2454
|
+
{
|
|
2455
|
+
"path": "styles/nova/toggle-group.css",
|
|
2456
|
+
"target": "styles/nova/toggle-group.css",
|
|
2457
|
+
"role": "style",
|
|
2458
|
+
"layer": "loseta.style"
|
|
2459
|
+
}
|
|
2460
|
+
],
|
|
2461
|
+
"examples": [
|
|
2462
|
+
"examples/toggle-group.html"
|
|
2463
|
+
]
|
|
2464
|
+
},
|
|
2465
|
+
{
|
|
2466
|
+
"name": "context-menu",
|
|
2467
|
+
"type": "component",
|
|
2468
|
+
"status": "experimental",
|
|
2469
|
+
"title": "Context Menu",
|
|
2470
|
+
"description": "Displays a menu at the pointer position.",
|
|
2471
|
+
"docs": "/docs/components/context-menu",
|
|
2472
|
+
"root": [
|
|
2473
|
+
".context-menu"
|
|
2474
|
+
],
|
|
2475
|
+
"registryDependencies": [
|
|
2476
|
+
"menu"
|
|
2477
|
+
],
|
|
2478
|
+
"optionalDependencies": [],
|
|
2479
|
+
"files": [
|
|
2480
|
+
{
|
|
2481
|
+
"path": "components/context-menu.css",
|
|
2482
|
+
"target": "components/context-menu.css",
|
|
2483
|
+
"role": "base",
|
|
2484
|
+
"layer": "loseta.components"
|
|
2485
|
+
},
|
|
2486
|
+
{
|
|
2487
|
+
"path": "styles/nova/context-menu.css",
|
|
2488
|
+
"target": "styles/nova/context-menu.css",
|
|
2489
|
+
"role": "style",
|
|
2490
|
+
"layer": "loseta.style"
|
|
2491
|
+
}
|
|
2492
|
+
],
|
|
2493
|
+
"examples": [
|
|
2494
|
+
"examples/context-menu.html"
|
|
2495
|
+
]
|
|
2496
|
+
},
|
|
2497
|
+
{
|
|
2498
|
+
"name": "drawer",
|
|
2499
|
+
"type": "component",
|
|
2500
|
+
"status": "experimental",
|
|
2501
|
+
"title": "Drawer",
|
|
2502
|
+
"description": "A bottom sheet built on the dialog shell.",
|
|
2503
|
+
"docs": "/docs/components/drawer",
|
|
2504
|
+
"root": [
|
|
2505
|
+
".drawer"
|
|
2506
|
+
],
|
|
2507
|
+
"registryDependencies": [
|
|
2508
|
+
"dialog-shell"
|
|
2509
|
+
],
|
|
2510
|
+
"optionalDependencies": [
|
|
2511
|
+
"button"
|
|
2512
|
+
],
|
|
2513
|
+
"files": [
|
|
2514
|
+
{
|
|
2515
|
+
"path": "components/drawer.css",
|
|
2516
|
+
"target": "components/drawer.css",
|
|
2517
|
+
"role": "base",
|
|
2518
|
+
"layer": "loseta.components"
|
|
2519
|
+
},
|
|
2520
|
+
{
|
|
2521
|
+
"path": "styles/nova/drawer.css",
|
|
2522
|
+
"target": "styles/nova/drawer.css",
|
|
2523
|
+
"role": "style",
|
|
2524
|
+
"layer": "loseta.style"
|
|
2525
|
+
}
|
|
2526
|
+
],
|
|
2527
|
+
"examples": [
|
|
2528
|
+
"examples/drawer.html"
|
|
2529
|
+
]
|
|
2530
|
+
},
|
|
2531
|
+
{
|
|
2532
|
+
"name": "hover-card",
|
|
2533
|
+
"type": "component",
|
|
2534
|
+
"status": "experimental",
|
|
2535
|
+
"title": "Hover Card",
|
|
2536
|
+
"description": "Shows a preview of content when a trigger is hovered or focused.",
|
|
2537
|
+
"docs": "/docs/components/hover-card",
|
|
2538
|
+
"root": [
|
|
2539
|
+
".hover-card"
|
|
2540
|
+
],
|
|
2541
|
+
"registryDependencies": [
|
|
2542
|
+
"popover-primitive"
|
|
2543
|
+
],
|
|
2544
|
+
"optionalDependencies": [],
|
|
2545
|
+
"files": [
|
|
2546
|
+
{
|
|
2547
|
+
"path": "components/hover-card.css",
|
|
2548
|
+
"target": "components/hover-card.css",
|
|
2549
|
+
"role": "base",
|
|
2550
|
+
"layer": "loseta.components"
|
|
2551
|
+
},
|
|
2552
|
+
{
|
|
2553
|
+
"path": "styles/nova/hover-card.css",
|
|
2554
|
+
"target": "styles/nova/hover-card.css",
|
|
2555
|
+
"role": "style",
|
|
2556
|
+
"layer": "loseta.style"
|
|
2557
|
+
}
|
|
2558
|
+
],
|
|
2559
|
+
"examples": [
|
|
2560
|
+
"examples/hover-card.html"
|
|
2561
|
+
]
|
|
2562
|
+
},
|
|
2563
|
+
{
|
|
2564
|
+
"name": "menubar",
|
|
2565
|
+
"type": "component",
|
|
2566
|
+
"status": "experimental",
|
|
2567
|
+
"title": "Menubar",
|
|
2568
|
+
"description": "Displays a horizontal bar of menus.",
|
|
2569
|
+
"docs": "/docs/components/menubar",
|
|
2570
|
+
"root": [
|
|
2571
|
+
".menubar"
|
|
2572
|
+
],
|
|
2573
|
+
"registryDependencies": [
|
|
2574
|
+
"menu",
|
|
2575
|
+
"popover-primitive"
|
|
2576
|
+
],
|
|
2577
|
+
"optionalDependencies": [],
|
|
2578
|
+
"files": [
|
|
2579
|
+
{
|
|
2580
|
+
"path": "components/menubar.css",
|
|
2581
|
+
"target": "components/menubar.css",
|
|
2582
|
+
"role": "base",
|
|
2583
|
+
"layer": "loseta.components"
|
|
2584
|
+
},
|
|
2585
|
+
{
|
|
2586
|
+
"path": "styles/nova/menubar.css",
|
|
2587
|
+
"target": "styles/nova/menubar.css",
|
|
2588
|
+
"role": "style",
|
|
2589
|
+
"layer": "loseta.style"
|
|
2590
|
+
}
|
|
2591
|
+
],
|
|
2592
|
+
"examples": [
|
|
2593
|
+
"examples/menubar.html"
|
|
2594
|
+
]
|
|
2595
|
+
},
|
|
2596
|
+
{
|
|
2597
|
+
"name": "navigation-menu",
|
|
2598
|
+
"type": "component",
|
|
2599
|
+
"status": "experimental",
|
|
2600
|
+
"title": "Navigation Menu",
|
|
2601
|
+
"description": "Displays site navigation with popover panels.",
|
|
2602
|
+
"docs": "/docs/components/navigation-menu",
|
|
2603
|
+
"root": [
|
|
2604
|
+
".navigation-menu"
|
|
2605
|
+
],
|
|
2606
|
+
"registryDependencies": [
|
|
2607
|
+
"popover-primitive"
|
|
2608
|
+
],
|
|
2609
|
+
"optionalDependencies": [],
|
|
2610
|
+
"files": [
|
|
2611
|
+
{
|
|
2612
|
+
"path": "components/navigation-menu.css",
|
|
2613
|
+
"target": "components/navigation-menu.css",
|
|
2614
|
+
"role": "base",
|
|
2615
|
+
"layer": "loseta.components"
|
|
2616
|
+
},
|
|
2617
|
+
{
|
|
2618
|
+
"path": "styles/nova/navigation-menu.css",
|
|
2619
|
+
"target": "styles/nova/navigation-menu.css",
|
|
2620
|
+
"role": "style",
|
|
2621
|
+
"layer": "loseta.style"
|
|
2622
|
+
}
|
|
2623
|
+
],
|
|
2624
|
+
"examples": [
|
|
2625
|
+
"examples/navigation-menu.html"
|
|
2626
|
+
]
|
|
2627
|
+
},
|
|
2628
|
+
{
|
|
2629
|
+
"name": "sheet",
|
|
2630
|
+
"type": "component",
|
|
2631
|
+
"status": "experimental",
|
|
2632
|
+
"title": "Sheet",
|
|
2633
|
+
"description": "Extends the dialog shell to the side of the screen.",
|
|
2634
|
+
"docs": "/docs/components/sheet",
|
|
2635
|
+
"root": [
|
|
2636
|
+
".sheet"
|
|
2637
|
+
],
|
|
2638
|
+
"registryDependencies": [
|
|
2639
|
+
"dialog-shell"
|
|
2640
|
+
],
|
|
2641
|
+
"optionalDependencies": [
|
|
2642
|
+
"button"
|
|
2643
|
+
],
|
|
2644
|
+
"files": [
|
|
2645
|
+
{
|
|
2646
|
+
"path": "components/sheet.css",
|
|
2647
|
+
"target": "components/sheet.css",
|
|
2648
|
+
"role": "base",
|
|
2649
|
+
"layer": "loseta.components"
|
|
2650
|
+
},
|
|
2651
|
+
{
|
|
2652
|
+
"path": "styles/nova/sheet.css",
|
|
2653
|
+
"target": "styles/nova/sheet.css",
|
|
2654
|
+
"role": "style",
|
|
2655
|
+
"layer": "loseta.style"
|
|
2656
|
+
}
|
|
2657
|
+
],
|
|
2658
|
+
"examples": [
|
|
2659
|
+
"examples/sheet.html"
|
|
2660
|
+
]
|
|
2090
2661
|
}
|
|
2091
2662
|
]
|
|
2092
2663
|
}
|
|
@@ -2,103 +2,7 @@
|
|
|
2
2
|
@layer loseta.style {
|
|
3
3
|
.dropdown-menu {
|
|
4
4
|
> [data-popover] {
|
|
5
|
-
gap: 0;
|
|
6
5
|
width: max(8rem, 100%);
|
|
7
|
-
overflow-x: hidden;
|
|
8
|
-
overflow-y: auto;
|
|
9
|
-
border-radius: var(--radius-3xl);
|
|
10
|
-
background-color: var(--popover);
|
|
11
|
-
padding: 0.375rem;
|
|
12
|
-
color: var(--popover-foreground);
|
|
13
|
-
box-shadow: 0 0 0 1px color-mix(in oklab, var(--foreground) 10%, transparent), var(--shadow-lg);
|
|
14
|
-
transition-duration: 100ms;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
:is([role='menuitem'], [role='menuitemcheckbox'], [role='menuitemradio']) {
|
|
18
|
-
gap: 0.625rem;
|
|
19
|
-
border-radius: var(--radius-2xl);
|
|
20
|
-
padding-inline: 0.75rem;
|
|
21
|
-
padding-block: 0.5rem;
|
|
22
|
-
font-size: var(--text-sm);
|
|
23
|
-
line-height: var(--text-sm--line-height);
|
|
24
|
-
|
|
25
|
-
&:focus-visible {
|
|
26
|
-
background-color: var(--accent);
|
|
27
|
-
color: var(--accent-foreground);
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
& svg {
|
|
31
|
-
width: var(--icon-size, 1rem);
|
|
32
|
-
height: var(--icon-size, 1rem);
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
:is([role='menuitem'], [role='menuitemcheckbox'], [role='menuitemradio'])[data-highlighted] {
|
|
37
|
-
background-color: var(--accent);
|
|
38
|
-
color: var(--accent-foreground);
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
:is([role='menuitem'], [role='menuitemcheckbox'], [role='menuitemradio'])[data-variant='destructive'] {
|
|
42
|
-
color: var(--destructive);
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
:is([role='menuitem'], [role='menuitemcheckbox'], [role='menuitemradio'])[data-variant='destructive']:is(:focus-visible, [data-highlighted]) {
|
|
46
|
-
background-color: light-dark(
|
|
47
|
-
color-mix(in oklab, var(--destructive) 10%, transparent),
|
|
48
|
-
color-mix(in oklab, var(--destructive) 20%, transparent)
|
|
49
|
-
);
|
|
50
|
-
color: var(--destructive);
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
:is([role='menuitem'], [role='menuitemcheckbox'], [role='menuitemradio'])[data-variant='destructive'] svg {
|
|
54
|
-
color: var(--destructive);
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
:is([role='menuitemcheckbox'], [role='menuitemradio']) {
|
|
58
|
-
padding-block: 0.375rem;
|
|
59
|
-
padding-inline-start: 0.5rem;
|
|
60
|
-
padding-inline-end: 2rem;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
:is([role='menuitem'], [role='menuitemcheckbox'], [role='menuitemradio'])[data-inset],
|
|
64
|
-
[role='heading'][data-inset] {
|
|
65
|
-
padding-inline-start: 2rem;
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
[data-slot='indicator'] {
|
|
69
|
-
position: absolute;
|
|
70
|
-
inset-inline-end: 0.5rem;
|
|
71
|
-
display: flex;
|
|
72
|
-
align-items: center;
|
|
73
|
-
justify-content: center;
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
[role='heading'] {
|
|
77
|
-
padding-inline: 0.75rem;
|
|
78
|
-
padding-block: 0.5rem;
|
|
79
|
-
font-size: var(--text-xs);
|
|
80
|
-
line-height: var(--text-xs--line-height);
|
|
81
|
-
font-weight: 500;
|
|
82
|
-
color: var(--muted-foreground);
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
[role='separator'] {
|
|
86
|
-
margin-inline: -0.25rem;
|
|
87
|
-
margin-block: 0.25rem;
|
|
88
|
-
height: 1px;
|
|
89
|
-
background-color: var(--border);
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
:is([data-slot='shortcut'], kbd:last-child, .kbd:last-child) {
|
|
93
|
-
font-family: inherit;
|
|
94
|
-
font-size: var(--text-xs);
|
|
95
|
-
line-height: var(--text-xs--line-height);
|
|
96
|
-
letter-spacing: 0.1em;
|
|
97
|
-
color: var(--muted-foreground);
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
:is([role='menuitem'], [role='menuitemcheckbox'], [role='menuitemradio']):is(:focus-visible, [data-highlighted]) :is([data-slot='shortcut'], kbd:last-child, .kbd:last-child) {
|
|
101
|
-
color: var(--accent-foreground);
|
|
102
6
|
}
|
|
103
7
|
}
|
|
104
8
|
}
|