loseta 0.4.0 → 0.5.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 +12 -4
- 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/pagination.css +49 -0
- package/registry/components/progress.css +13 -0
- package/registry/components/separator.css +12 -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/pagination.html +39 -0
- package/registry/examples/progress.html +5 -0
- package/registry/examples/separator.html +15 -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/registry.json +308 -1
- 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/pagination.css +46 -0
- package/registry/styles/nova/progress.css +67 -0
- package/registry/styles/nova/separator.css +14 -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/registry.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "./schema.json",
|
|
3
3
|
"name": "loseta",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.5.0",
|
|
5
5
|
"styles": [
|
|
6
6
|
{
|
|
7
7
|
"name": "nova",
|
|
@@ -2087,6 +2087,313 @@
|
|
|
2087
2087
|
"examples": [
|
|
2088
2088
|
"examples/tooltip.html"
|
|
2089
2089
|
]
|
|
2090
|
+
},
|
|
2091
|
+
{
|
|
2092
|
+
"name": "accordion",
|
|
2093
|
+
"type": "component",
|
|
2094
|
+
"status": "experimental",
|
|
2095
|
+
"title": "Accordion",
|
|
2096
|
+
"description": "Displays a vertically stacked set of interactive headings that reveal content.",
|
|
2097
|
+
"docs": "/docs/components/accordion",
|
|
2098
|
+
"root": [
|
|
2099
|
+
".accordion"
|
|
2100
|
+
],
|
|
2101
|
+
"registryDependencies": [],
|
|
2102
|
+
"optionalDependencies": [],
|
|
2103
|
+
"files": [
|
|
2104
|
+
{
|
|
2105
|
+
"path": "components/accordion.css",
|
|
2106
|
+
"target": "components/accordion.css",
|
|
2107
|
+
"role": "base",
|
|
2108
|
+
"layer": "loseta.components"
|
|
2109
|
+
},
|
|
2110
|
+
{
|
|
2111
|
+
"path": "styles/nova/accordion.css",
|
|
2112
|
+
"target": "styles/nova/accordion.css",
|
|
2113
|
+
"role": "style",
|
|
2114
|
+
"layer": "loseta.style"
|
|
2115
|
+
}
|
|
2116
|
+
],
|
|
2117
|
+
"examples": [
|
|
2118
|
+
"examples/accordion.html"
|
|
2119
|
+
]
|
|
2120
|
+
},
|
|
2121
|
+
{
|
|
2122
|
+
"name": "aspect-ratio",
|
|
2123
|
+
"type": "component",
|
|
2124
|
+
"status": "experimental",
|
|
2125
|
+
"title": "Aspect Ratio",
|
|
2126
|
+
"description": "Constrains media to a preferred aspect ratio.",
|
|
2127
|
+
"docs": "/docs/components/aspect-ratio",
|
|
2128
|
+
"root": [
|
|
2129
|
+
".aspect-ratio"
|
|
2130
|
+
],
|
|
2131
|
+
"registryDependencies": [],
|
|
2132
|
+
"optionalDependencies": [],
|
|
2133
|
+
"files": [
|
|
2134
|
+
{
|
|
2135
|
+
"path": "components/aspect-ratio.css",
|
|
2136
|
+
"target": "components/aspect-ratio.css",
|
|
2137
|
+
"role": "base",
|
|
2138
|
+
"layer": "loseta.components"
|
|
2139
|
+
},
|
|
2140
|
+
{
|
|
2141
|
+
"path": "styles/nova/aspect-ratio.css",
|
|
2142
|
+
"target": "styles/nova/aspect-ratio.css",
|
|
2143
|
+
"role": "style",
|
|
2144
|
+
"layer": "loseta.style"
|
|
2145
|
+
}
|
|
2146
|
+
],
|
|
2147
|
+
"examples": [
|
|
2148
|
+
"examples/aspect-ratio.html"
|
|
2149
|
+
]
|
|
2150
|
+
},
|
|
2151
|
+
{
|
|
2152
|
+
"name": "avatar",
|
|
2153
|
+
"type": "component",
|
|
2154
|
+
"status": "experimental",
|
|
2155
|
+
"title": "Avatar",
|
|
2156
|
+
"description": "Displays an image or fallback initials representing a user.",
|
|
2157
|
+
"docs": "/docs/components/avatar",
|
|
2158
|
+
"root": [
|
|
2159
|
+
".avatar",
|
|
2160
|
+
".avatar-group"
|
|
2161
|
+
],
|
|
2162
|
+
"registryDependencies": [],
|
|
2163
|
+
"optionalDependencies": [],
|
|
2164
|
+
"files": [
|
|
2165
|
+
{
|
|
2166
|
+
"path": "components/avatar.css",
|
|
2167
|
+
"target": "components/avatar.css",
|
|
2168
|
+
"role": "base",
|
|
2169
|
+
"layer": "loseta.components"
|
|
2170
|
+
},
|
|
2171
|
+
{
|
|
2172
|
+
"path": "styles/nova/avatar.css",
|
|
2173
|
+
"target": "styles/nova/avatar.css",
|
|
2174
|
+
"role": "style",
|
|
2175
|
+
"layer": "loseta.style"
|
|
2176
|
+
}
|
|
2177
|
+
],
|
|
2178
|
+
"examples": [
|
|
2179
|
+
"examples/avatar.html"
|
|
2180
|
+
]
|
|
2181
|
+
},
|
|
2182
|
+
{
|
|
2183
|
+
"name": "breadcrumb",
|
|
2184
|
+
"type": "component",
|
|
2185
|
+
"status": "experimental",
|
|
2186
|
+
"title": "Breadcrumb",
|
|
2187
|
+
"description": "Displays the path to the current resource using a hierarchy of links.",
|
|
2188
|
+
"docs": "/docs/components/breadcrumb",
|
|
2189
|
+
"root": [
|
|
2190
|
+
".breadcrumb"
|
|
2191
|
+
],
|
|
2192
|
+
"registryDependencies": [],
|
|
2193
|
+
"optionalDependencies": [
|
|
2194
|
+
"dropdown-menu"
|
|
2195
|
+
],
|
|
2196
|
+
"files": [
|
|
2197
|
+
{
|
|
2198
|
+
"path": "components/breadcrumb.css",
|
|
2199
|
+
"target": "components/breadcrumb.css",
|
|
2200
|
+
"role": "base",
|
|
2201
|
+
"layer": "loseta.components"
|
|
2202
|
+
},
|
|
2203
|
+
{
|
|
2204
|
+
"path": "styles/nova/breadcrumb.css",
|
|
2205
|
+
"target": "styles/nova/breadcrumb.css",
|
|
2206
|
+
"role": "style",
|
|
2207
|
+
"layer": "loseta.style"
|
|
2208
|
+
}
|
|
2209
|
+
],
|
|
2210
|
+
"examples": [
|
|
2211
|
+
"examples/breadcrumb.html"
|
|
2212
|
+
]
|
|
2213
|
+
},
|
|
2214
|
+
{
|
|
2215
|
+
"name": "pagination",
|
|
2216
|
+
"type": "component",
|
|
2217
|
+
"status": "experimental",
|
|
2218
|
+
"title": "Pagination",
|
|
2219
|
+
"description": "Displays navigation for paged content.",
|
|
2220
|
+
"docs": "/docs/components/pagination",
|
|
2221
|
+
"root": [
|
|
2222
|
+
".pagination"
|
|
2223
|
+
],
|
|
2224
|
+
"registryDependencies": [],
|
|
2225
|
+
"optionalDependencies": [
|
|
2226
|
+
"button"
|
|
2227
|
+
],
|
|
2228
|
+
"files": [
|
|
2229
|
+
{
|
|
2230
|
+
"path": "components/pagination.css",
|
|
2231
|
+
"target": "components/pagination.css",
|
|
2232
|
+
"role": "base",
|
|
2233
|
+
"layer": "loseta.components"
|
|
2234
|
+
},
|
|
2235
|
+
{
|
|
2236
|
+
"path": "styles/nova/pagination.css",
|
|
2237
|
+
"target": "styles/nova/pagination.css",
|
|
2238
|
+
"role": "style",
|
|
2239
|
+
"layer": "loseta.style"
|
|
2240
|
+
}
|
|
2241
|
+
],
|
|
2242
|
+
"examples": [
|
|
2243
|
+
"examples/pagination.html"
|
|
2244
|
+
]
|
|
2245
|
+
},
|
|
2246
|
+
{
|
|
2247
|
+
"name": "progress",
|
|
2248
|
+
"type": "component",
|
|
2249
|
+
"status": "experimental",
|
|
2250
|
+
"title": "Progress",
|
|
2251
|
+
"description": "Displays an indicator showing the completion progress of a task.",
|
|
2252
|
+
"docs": "/docs/components/progress",
|
|
2253
|
+
"root": [
|
|
2254
|
+
".progress"
|
|
2255
|
+
],
|
|
2256
|
+
"registryDependencies": [],
|
|
2257
|
+
"optionalDependencies": [],
|
|
2258
|
+
"files": [
|
|
2259
|
+
{
|
|
2260
|
+
"path": "components/progress.css",
|
|
2261
|
+
"target": "components/progress.css",
|
|
2262
|
+
"role": "base",
|
|
2263
|
+
"layer": "loseta.components"
|
|
2264
|
+
},
|
|
2265
|
+
{
|
|
2266
|
+
"path": "styles/nova/progress.css",
|
|
2267
|
+
"target": "styles/nova/progress.css",
|
|
2268
|
+
"role": "style",
|
|
2269
|
+
"layer": "loseta.style"
|
|
2270
|
+
}
|
|
2271
|
+
],
|
|
2272
|
+
"examples": [
|
|
2273
|
+
"examples/progress.html"
|
|
2274
|
+
]
|
|
2275
|
+
},
|
|
2276
|
+
{
|
|
2277
|
+
"name": "separator",
|
|
2278
|
+
"type": "component",
|
|
2279
|
+
"status": "experimental",
|
|
2280
|
+
"title": "Separator",
|
|
2281
|
+
"description": "Visually or semantically separates content.",
|
|
2282
|
+
"docs": "/docs/components/separator",
|
|
2283
|
+
"root": [
|
|
2284
|
+
".separator"
|
|
2285
|
+
],
|
|
2286
|
+
"registryDependencies": [],
|
|
2287
|
+
"optionalDependencies": [],
|
|
2288
|
+
"files": [
|
|
2289
|
+
{
|
|
2290
|
+
"path": "components/separator.css",
|
|
2291
|
+
"target": "components/separator.css",
|
|
2292
|
+
"role": "base",
|
|
2293
|
+
"layer": "loseta.components"
|
|
2294
|
+
},
|
|
2295
|
+
{
|
|
2296
|
+
"path": "styles/nova/separator.css",
|
|
2297
|
+
"target": "styles/nova/separator.css",
|
|
2298
|
+
"role": "style",
|
|
2299
|
+
"layer": "loseta.style"
|
|
2300
|
+
}
|
|
2301
|
+
],
|
|
2302
|
+
"examples": [
|
|
2303
|
+
"examples/separator.html"
|
|
2304
|
+
]
|
|
2305
|
+
},
|
|
2306
|
+
{
|
|
2307
|
+
"name": "spinner",
|
|
2308
|
+
"type": "component",
|
|
2309
|
+
"status": "experimental",
|
|
2310
|
+
"title": "Spinner",
|
|
2311
|
+
"description": "Displays an animated loading indicator.",
|
|
2312
|
+
"docs": "/docs/components/spinner",
|
|
2313
|
+
"root": [
|
|
2314
|
+
".spinner"
|
|
2315
|
+
],
|
|
2316
|
+
"registryDependencies": [],
|
|
2317
|
+
"optionalDependencies": [],
|
|
2318
|
+
"files": [
|
|
2319
|
+
{
|
|
2320
|
+
"path": "components/spinner.css",
|
|
2321
|
+
"target": "components/spinner.css",
|
|
2322
|
+
"role": "base",
|
|
2323
|
+
"layer": "loseta.components"
|
|
2324
|
+
},
|
|
2325
|
+
{
|
|
2326
|
+
"path": "styles/nova/spinner.css",
|
|
2327
|
+
"target": "styles/nova/spinner.css",
|
|
2328
|
+
"role": "style",
|
|
2329
|
+
"layer": "loseta.style"
|
|
2330
|
+
}
|
|
2331
|
+
],
|
|
2332
|
+
"examples": [
|
|
2333
|
+
"examples/spinner.html"
|
|
2334
|
+
]
|
|
2335
|
+
},
|
|
2336
|
+
{
|
|
2337
|
+
"name": "toggle",
|
|
2338
|
+
"type": "component",
|
|
2339
|
+
"status": "experimental",
|
|
2340
|
+
"title": "Toggle",
|
|
2341
|
+
"description": "Displays a two-state button that can be pressed or unpressed.",
|
|
2342
|
+
"docs": "/docs/components/toggle",
|
|
2343
|
+
"root": [
|
|
2344
|
+
".toggle"
|
|
2345
|
+
],
|
|
2346
|
+
"registryDependencies": [],
|
|
2347
|
+
"optionalDependencies": [],
|
|
2348
|
+
"files": [
|
|
2349
|
+
{
|
|
2350
|
+
"path": "components/toggle.css",
|
|
2351
|
+
"target": "components/toggle.css",
|
|
2352
|
+
"role": "base",
|
|
2353
|
+
"layer": "loseta.components"
|
|
2354
|
+
},
|
|
2355
|
+
{
|
|
2356
|
+
"path": "styles/nova/toggle.css",
|
|
2357
|
+
"target": "styles/nova/toggle.css",
|
|
2358
|
+
"role": "style",
|
|
2359
|
+
"layer": "loseta.style"
|
|
2360
|
+
}
|
|
2361
|
+
],
|
|
2362
|
+
"examples": [
|
|
2363
|
+
"examples/toggle.html"
|
|
2364
|
+
]
|
|
2365
|
+
},
|
|
2366
|
+
{
|
|
2367
|
+
"name": "toggle-group",
|
|
2368
|
+
"type": "component",
|
|
2369
|
+
"status": "experimental",
|
|
2370
|
+
"title": "Toggle Group",
|
|
2371
|
+
"description": "Groups a set of toggle buttons.",
|
|
2372
|
+
"docs": "/docs/components/toggle-group",
|
|
2373
|
+
"root": [
|
|
2374
|
+
".toggle-group"
|
|
2375
|
+
],
|
|
2376
|
+
"registryDependencies": [
|
|
2377
|
+
"toggle"
|
|
2378
|
+
],
|
|
2379
|
+
"optionalDependencies": [],
|
|
2380
|
+
"files": [
|
|
2381
|
+
{
|
|
2382
|
+
"path": "components/toggle-group.css",
|
|
2383
|
+
"target": "components/toggle-group.css",
|
|
2384
|
+
"role": "base",
|
|
2385
|
+
"layer": "loseta.components"
|
|
2386
|
+
},
|
|
2387
|
+
{
|
|
2388
|
+
"path": "styles/nova/toggle-group.css",
|
|
2389
|
+
"target": "styles/nova/toggle-group.css",
|
|
2390
|
+
"role": "style",
|
|
2391
|
+
"layer": "loseta.style"
|
|
2392
|
+
}
|
|
2393
|
+
],
|
|
2394
|
+
"examples": [
|
|
2395
|
+
"examples/toggle-group.html"
|
|
2396
|
+
]
|
|
2090
2397
|
}
|
|
2091
2398
|
]
|
|
2092
2399
|
}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
/* Accordion */
|
|
2
|
+
@layer loseta.style {
|
|
3
|
+
.accordion > details {
|
|
4
|
+
&:not(:last-child) {
|
|
5
|
+
border-bottom-style: solid;
|
|
6
|
+
border-bottom-width: 1px;
|
|
7
|
+
border-bottom-color: var(--border);
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
&::details-content {
|
|
11
|
+
opacity: 0%;
|
|
12
|
+
transition-property: block-size, opacity;
|
|
13
|
+
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
14
|
+
transition-duration: 150ms;
|
|
15
|
+
transition-behavior: allow-discrete;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
&[open]::details-content {
|
|
19
|
+
opacity: 100%;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
> summary {
|
|
23
|
+
border-style: solid;
|
|
24
|
+
border-width: 1px;
|
|
25
|
+
border-color: transparent;
|
|
26
|
+
border-radius: var(--radius-lg);
|
|
27
|
+
padding-block: 0.625rem;
|
|
28
|
+
text-align: start;
|
|
29
|
+
font-size: var(--text-sm);
|
|
30
|
+
line-height: var(--text-sm--line-height);
|
|
31
|
+
font-weight: 500;
|
|
32
|
+
transition-property: border-color, box-shadow, text-decoration-color;
|
|
33
|
+
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
34
|
+
transition-duration: 150ms;
|
|
35
|
+
|
|
36
|
+
&:hover {
|
|
37
|
+
text-decoration-line: underline;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
&:focus-visible {
|
|
41
|
+
border-color: var(--ring);
|
|
42
|
+
box-shadow: 0 0 0 3px color-mix(in oklab, var(--ring) 50%, transparent);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
> svg:last-child {
|
|
46
|
+
margin-inline-start: auto;
|
|
47
|
+
width: 1rem;
|
|
48
|
+
height: 1rem;
|
|
49
|
+
color: var(--muted-foreground);
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
> :not(summary) {
|
|
54
|
+
padding-block-end: 0.625rem;
|
|
55
|
+
font-size: var(--text-sm);
|
|
56
|
+
line-height: var(--text-sm--line-height);
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
}
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
/* Avatar */
|
|
2
|
+
@layer loseta.style {
|
|
3
|
+
.avatar {
|
|
4
|
+
border-radius: var(--radius-full);
|
|
5
|
+
background-color: var(--muted);
|
|
6
|
+
|
|
7
|
+
&::after {
|
|
8
|
+
position: absolute;
|
|
9
|
+
inset: 0;
|
|
10
|
+
border-style: solid;
|
|
11
|
+
border-width: 1px;
|
|
12
|
+
border-color: var(--border);
|
|
13
|
+
border-radius: inherit;
|
|
14
|
+
content: '';
|
|
15
|
+
pointer-events: none;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
&:not([data-size]),
|
|
19
|
+
&[data-size='default'] {
|
|
20
|
+
width: 2rem;
|
|
21
|
+
height: 2rem;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
&[data-size='sm'] {
|
|
25
|
+
width: 1.5rem;
|
|
26
|
+
height: 1.5rem;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
&[data-size='lg'] {
|
|
30
|
+
width: 2.5rem;
|
|
31
|
+
height: 2.5rem;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
> img {
|
|
35
|
+
border-radius: inherit;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
> [data-slot='fallback'] {
|
|
39
|
+
border-radius: inherit;
|
|
40
|
+
background-color: var(--muted);
|
|
41
|
+
color: light-dark(var(--foreground), var(--muted-foreground));
|
|
42
|
+
font-size: var(--text-sm);
|
|
43
|
+
line-height: var(--text-sm--line-height);
|
|
44
|
+
font-weight: 500;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
&[data-size='sm'] > [data-slot='fallback'] {
|
|
48
|
+
font-size: var(--text-xs);
|
|
49
|
+
line-height: var(--text-xs--line-height);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
&[data-size='lg'] > [data-slot='fallback'] {
|
|
53
|
+
font-size: var(--text-base);
|
|
54
|
+
line-height: var(--text-base--line-height);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
> [data-slot='badge'] {
|
|
58
|
+
width: 0.625rem;
|
|
59
|
+
height: 0.625rem;
|
|
60
|
+
border-radius: var(--radius-full);
|
|
61
|
+
background-color: var(--primary);
|
|
62
|
+
color: var(--primary-foreground);
|
|
63
|
+
box-shadow: 0 0 0 2px var(--background);
|
|
64
|
+
|
|
65
|
+
> svg {
|
|
66
|
+
width: 0.5rem;
|
|
67
|
+
height: 0.5rem;
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
&[data-size='sm'] > [data-slot='badge'] {
|
|
72
|
+
width: 0.5rem;
|
|
73
|
+
height: 0.5rem;
|
|
74
|
+
|
|
75
|
+
> svg {
|
|
76
|
+
display: none;
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
&[data-size='lg'] > [data-slot='badge'] {
|
|
81
|
+
width: 0.75rem;
|
|
82
|
+
height: 0.75rem;
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
.avatar-group > .avatar {
|
|
87
|
+
box-shadow: 0 0 0 2px var(--background);
|
|
88
|
+
}
|
|
89
|
+
}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
/* Breadcrumb */
|
|
2
|
+
@layer loseta.style {
|
|
3
|
+
.breadcrumb {
|
|
4
|
+
> ol {
|
|
5
|
+
gap: 0.375rem;
|
|
6
|
+
font-size: var(--text-sm);
|
|
7
|
+
line-height: var(--text-sm--line-height);
|
|
8
|
+
color: var(--muted-foreground);
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
li {
|
|
12
|
+
gap: 0.25rem;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
:is(a, button) {
|
|
16
|
+
border-radius: var(--radius-sm);
|
|
17
|
+
transition-property: color, background-color, border-color, outline-color, text-decoration-color, fill, stroke;
|
|
18
|
+
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
19
|
+
transition-duration: 150ms;
|
|
20
|
+
|
|
21
|
+
&:hover {
|
|
22
|
+
color: var(--foreground);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
&:focus-visible {
|
|
26
|
+
border-color: var(--ring);
|
|
27
|
+
box-shadow: 0 0 0 3px color-mix(in oklab, var(--ring) 50%, transparent);
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
[aria-current='page'] {
|
|
32
|
+
font-weight: 400;
|
|
33
|
+
color: var(--foreground);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
li[aria-hidden='true'] > svg {
|
|
37
|
+
width: 0.875rem;
|
|
38
|
+
height: 0.875rem;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
li > span[aria-hidden='true'] {
|
|
42
|
+
width: 1.25rem;
|
|
43
|
+
height: 1.25rem;
|
|
44
|
+
|
|
45
|
+
> svg {
|
|
46
|
+
width: 1rem;
|
|
47
|
+
height: 1rem;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
[data-slot='ellipsis'] {
|
|
52
|
+
width: 1.25rem;
|
|
53
|
+
height: 1.25rem;
|
|
54
|
+
|
|
55
|
+
> svg {
|
|
56
|
+
width: 1rem;
|
|
57
|
+
height: 1rem;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
/* Pagination */
|
|
2
|
+
@layer loseta.style {
|
|
3
|
+
.pagination {
|
|
4
|
+
> ul {
|
|
5
|
+
gap: 0.25rem;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
> ul > li > :is(a, button) {
|
|
9
|
+
transition-property: color, background-color, border-color, outline-color, text-decoration-color, fill, stroke;
|
|
10
|
+
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
11
|
+
transition-duration: 150ms;
|
|
12
|
+
|
|
13
|
+
&:focus-visible {
|
|
14
|
+
border-color: var(--ring);
|
|
15
|
+
box-shadow: 0 0 0 3px color-mix(in oklab, var(--ring) 50%, transparent);
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
> ul > li > :is(a, button)[aria-current='page'] {
|
|
20
|
+
border-style: solid;
|
|
21
|
+
border-width: 1px;
|
|
22
|
+
border-color: var(--border);
|
|
23
|
+
background-color: var(--background);
|
|
24
|
+
color: var(--foreground);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
[data-slot='ellipsis'] {
|
|
28
|
+
width: 2rem;
|
|
29
|
+
height: 2rem;
|
|
30
|
+
color: var(--muted-foreground);
|
|
31
|
+
|
|
32
|
+
> svg {
|
|
33
|
+
width: 1rem;
|
|
34
|
+
height: 1rem;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
[data-slot='label'] {
|
|
39
|
+
display: none;
|
|
40
|
+
|
|
41
|
+
@media (width >= 40rem) {
|
|
42
|
+
display: inline;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
/* Progress */
|
|
2
|
+
@layer loseta.style {
|
|
3
|
+
.progress {
|
|
4
|
+
block-size: 0.5rem;
|
|
5
|
+
border-radius: var(--radius-full);
|
|
6
|
+
background-color: color-mix(in oklab, var(--primary) 20%, transparent);
|
|
7
|
+
|
|
8
|
+
&::-webkit-progress-bar {
|
|
9
|
+
border-radius: inherit;
|
|
10
|
+
background-color: transparent;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
&::-webkit-progress-value {
|
|
14
|
+
border-radius: inherit;
|
|
15
|
+
background-color: var(--primary);
|
|
16
|
+
transition-property: inline-size;
|
|
17
|
+
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
18
|
+
transition-duration: 150ms;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
&::-moz-progress-bar {
|
|
22
|
+
border-radius: inherit;
|
|
23
|
+
background-color: var(--primary);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
&:indeterminate {
|
|
27
|
+
background-image: linear-gradient(
|
|
28
|
+
90deg,
|
|
29
|
+
transparent,
|
|
30
|
+
var(--primary),
|
|
31
|
+
transparent
|
|
32
|
+
);
|
|
33
|
+
background-size: 50% 100%;
|
|
34
|
+
background-repeat: no-repeat;
|
|
35
|
+
animation: loseta-progress-indeterminate 1.5s
|
|
36
|
+
cubic-bezier(0.4, 0, 0.2, 1) infinite;
|
|
37
|
+
|
|
38
|
+
&::-webkit-progress-bar {
|
|
39
|
+
background-color: transparent;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
&::-webkit-progress-value {
|
|
43
|
+
background-color: transparent;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
&::-moz-progress-bar {
|
|
47
|
+
background-color: transparent;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
@media (prefers-reduced-motion: reduce) {
|
|
52
|
+
&:indeterminate {
|
|
53
|
+
animation-duration: 3s;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
@keyframes loseta-progress-indeterminate {
|
|
59
|
+
from {
|
|
60
|
+
background-position: -100% 0;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
to {
|
|
64
|
+
background-position: 200% 0;
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/* Separator */
|
|
2
|
+
@layer loseta.style {
|
|
3
|
+
.separator {
|
|
4
|
+
block-size: 1px;
|
|
5
|
+
inline-size: 100%;
|
|
6
|
+
background-color: var(--border);
|
|
7
|
+
|
|
8
|
+
&:is([data-orientation='vertical'], [aria-orientation='vertical']) {
|
|
9
|
+
block-size: auto;
|
|
10
|
+
inline-size: 1px;
|
|
11
|
+
align-self: stretch;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/* Spinner */
|
|
2
|
+
@layer loseta.style {
|
|
3
|
+
.spinner {
|
|
4
|
+
width: 1rem;
|
|
5
|
+
height: 1rem;
|
|
6
|
+
border-style: solid;
|
|
7
|
+
border-width: 2px;
|
|
8
|
+
border-color: color-mix(in oklab, currentColor 25%, transparent);
|
|
9
|
+
border-block-start-color: currentColor;
|
|
10
|
+
border-radius: var(--radius-full);
|
|
11
|
+
animation: loseta-spin 0.75s linear infinite;
|
|
12
|
+
|
|
13
|
+
@media (prefers-reduced-motion: reduce) {
|
|
14
|
+
animation-duration: 1.5s;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
&[data-size='sm'] {
|
|
18
|
+
width: 0.75rem;
|
|
19
|
+
height: 0.75rem;
|
|
20
|
+
border-width: 1.5px;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
&[data-size='lg'] {
|
|
24
|
+
width: 1.5rem;
|
|
25
|
+
height: 1.5rem;
|
|
26
|
+
border-width: 2.5px;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
@keyframes loseta-spin {
|
|
31
|
+
to {
|
|
32
|
+
rotate: 360deg;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|