loseta 0.12.0 → 0.13.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/package.json +1 -1
- package/registry/examples/sidebar.html +1 -1
- package/registry/registry.json +302 -8
- package/registry/styles/luma/context-menu.css +19 -0
- package/registry/styles/luma/drawer.css +60 -0
- package/registry/styles/luma/hover-card.css +22 -0
- package/registry/styles/luma/menubar.css +48 -0
- package/registry/styles/luma/navigation-menu.css +79 -0
- package/registry/styles/luma/sheet.css +54 -0
- package/registry/styles/luma/toast.css +62 -0
- package/registry/styles/lyra/context-menu.css +19 -0
- package/registry/styles/lyra/drawer.css +60 -0
- package/registry/styles/lyra/hover-card.css +22 -0
- package/registry/styles/lyra/menubar.css +48 -0
- package/registry/styles/lyra/navigation-menu.css +79 -0
- package/registry/styles/lyra/sheet.css +54 -0
- package/registry/styles/lyra/toast.css +62 -0
- package/registry/styles/maia/context-menu.css +19 -0
- package/registry/styles/maia/drawer.css +60 -0
- package/registry/styles/maia/hover-card.css +22 -0
- package/registry/styles/maia/menubar.css +48 -0
- package/registry/styles/maia/navigation-menu.css +79 -0
- package/registry/styles/maia/sheet.css +54 -0
- package/registry/styles/maia/toast.css +62 -0
- package/registry/styles/mira/context-menu.css +19 -0
- package/registry/styles/mira/drawer.css +60 -0
- package/registry/styles/mira/hover-card.css +22 -0
- package/registry/styles/mira/menubar.css +48 -0
- package/registry/styles/mira/navigation-menu.css +79 -0
- package/registry/styles/mira/sheet.css +54 -0
- package/registry/styles/mira/toast.css +62 -0
- package/registry/styles/nova/drawer.css +2 -2
- package/registry/styles/nova/sheet.css +2 -2
- package/registry/styles/rhea/context-menu.css +19 -0
- package/registry/styles/rhea/drawer.css +60 -0
- package/registry/styles/rhea/hover-card.css +22 -0
- package/registry/styles/rhea/menubar.css +48 -0
- package/registry/styles/rhea/navigation-menu.css +79 -0
- package/registry/styles/rhea/sheet.css +54 -0
- package/registry/styles/rhea/toast.css +62 -0
- package/registry/styles/sera/context-menu.css +19 -0
- package/registry/styles/sera/drawer.css +62 -0
- package/registry/styles/sera/hover-card.css +22 -0
- package/registry/styles/sera/menubar.css +48 -0
- package/registry/styles/sera/navigation-menu.css +79 -0
- package/registry/styles/sera/sheet.css +56 -0
- package/registry/styles/sera/toast.css +64 -0
- package/registry/styles/vega/context-menu.css +19 -0
- package/registry/styles/vega/drawer.css +60 -0
- package/registry/styles/vega/hover-card.css +22 -0
- package/registry/styles/vega/menubar.css +48 -0
- package/registry/styles/vega/navigation-menu.css +79 -0
- package/registry/styles/vega/sheet.css +54 -0
- package/registry/styles/vega/toast.css +62 -0
package/package.json
CHANGED
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.13.0",
|
|
5
5
|
"styles": [
|
|
6
6
|
{
|
|
7
7
|
"name": "nova",
|
|
@@ -2909,7 +2909,7 @@
|
|
|
2909
2909
|
{
|
|
2910
2910
|
"name": "context-menu",
|
|
2911
2911
|
"type": "component",
|
|
2912
|
-
"status": "
|
|
2912
|
+
"status": "stable",
|
|
2913
2913
|
"title": "Context Menu",
|
|
2914
2914
|
"description": "Displays a menu at the pointer position.",
|
|
2915
2915
|
"docs": "/docs/components/context-menu",
|
|
@@ -2932,6 +2932,48 @@
|
|
|
2932
2932
|
"target": "styles/nova/context-menu.css",
|
|
2933
2933
|
"role": "style",
|
|
2934
2934
|
"layer": "loseta.style"
|
|
2935
|
+
},
|
|
2936
|
+
{
|
|
2937
|
+
"path": "styles/vega/context-menu.css",
|
|
2938
|
+
"target": "styles/vega/context-menu.css",
|
|
2939
|
+
"role": "style",
|
|
2940
|
+
"layer": "loseta.style"
|
|
2941
|
+
},
|
|
2942
|
+
{
|
|
2943
|
+
"path": "styles/maia/context-menu.css",
|
|
2944
|
+
"target": "styles/maia/context-menu.css",
|
|
2945
|
+
"role": "style",
|
|
2946
|
+
"layer": "loseta.style"
|
|
2947
|
+
},
|
|
2948
|
+
{
|
|
2949
|
+
"path": "styles/lyra/context-menu.css",
|
|
2950
|
+
"target": "styles/lyra/context-menu.css",
|
|
2951
|
+
"role": "style",
|
|
2952
|
+
"layer": "loseta.style"
|
|
2953
|
+
},
|
|
2954
|
+
{
|
|
2955
|
+
"path": "styles/mira/context-menu.css",
|
|
2956
|
+
"target": "styles/mira/context-menu.css",
|
|
2957
|
+
"role": "style",
|
|
2958
|
+
"layer": "loseta.style"
|
|
2959
|
+
},
|
|
2960
|
+
{
|
|
2961
|
+
"path": "styles/luma/context-menu.css",
|
|
2962
|
+
"target": "styles/luma/context-menu.css",
|
|
2963
|
+
"role": "style",
|
|
2964
|
+
"layer": "loseta.style"
|
|
2965
|
+
},
|
|
2966
|
+
{
|
|
2967
|
+
"path": "styles/sera/context-menu.css",
|
|
2968
|
+
"target": "styles/sera/context-menu.css",
|
|
2969
|
+
"role": "style",
|
|
2970
|
+
"layer": "loseta.style"
|
|
2971
|
+
},
|
|
2972
|
+
{
|
|
2973
|
+
"path": "styles/rhea/context-menu.css",
|
|
2974
|
+
"target": "styles/rhea/context-menu.css",
|
|
2975
|
+
"role": "style",
|
|
2976
|
+
"layer": "loseta.style"
|
|
2935
2977
|
}
|
|
2936
2978
|
],
|
|
2937
2979
|
"examples": [
|
|
@@ -2941,7 +2983,7 @@
|
|
|
2941
2983
|
{
|
|
2942
2984
|
"name": "drawer",
|
|
2943
2985
|
"type": "component",
|
|
2944
|
-
"status": "
|
|
2986
|
+
"status": "stable",
|
|
2945
2987
|
"title": "Drawer",
|
|
2946
2988
|
"description": "A bottom sheet built on the dialog shell.",
|
|
2947
2989
|
"docs": "/docs/components/drawer",
|
|
@@ -2966,6 +3008,48 @@
|
|
|
2966
3008
|
"target": "styles/nova/drawer.css",
|
|
2967
3009
|
"role": "style",
|
|
2968
3010
|
"layer": "loseta.style"
|
|
3011
|
+
},
|
|
3012
|
+
{
|
|
3013
|
+
"path": "styles/vega/drawer.css",
|
|
3014
|
+
"target": "styles/vega/drawer.css",
|
|
3015
|
+
"role": "style",
|
|
3016
|
+
"layer": "loseta.style"
|
|
3017
|
+
},
|
|
3018
|
+
{
|
|
3019
|
+
"path": "styles/maia/drawer.css",
|
|
3020
|
+
"target": "styles/maia/drawer.css",
|
|
3021
|
+
"role": "style",
|
|
3022
|
+
"layer": "loseta.style"
|
|
3023
|
+
},
|
|
3024
|
+
{
|
|
3025
|
+
"path": "styles/lyra/drawer.css",
|
|
3026
|
+
"target": "styles/lyra/drawer.css",
|
|
3027
|
+
"role": "style",
|
|
3028
|
+
"layer": "loseta.style"
|
|
3029
|
+
},
|
|
3030
|
+
{
|
|
3031
|
+
"path": "styles/mira/drawer.css",
|
|
3032
|
+
"target": "styles/mira/drawer.css",
|
|
3033
|
+
"role": "style",
|
|
3034
|
+
"layer": "loseta.style"
|
|
3035
|
+
},
|
|
3036
|
+
{
|
|
3037
|
+
"path": "styles/luma/drawer.css",
|
|
3038
|
+
"target": "styles/luma/drawer.css",
|
|
3039
|
+
"role": "style",
|
|
3040
|
+
"layer": "loseta.style"
|
|
3041
|
+
},
|
|
3042
|
+
{
|
|
3043
|
+
"path": "styles/sera/drawer.css",
|
|
3044
|
+
"target": "styles/sera/drawer.css",
|
|
3045
|
+
"role": "style",
|
|
3046
|
+
"layer": "loseta.style"
|
|
3047
|
+
},
|
|
3048
|
+
{
|
|
3049
|
+
"path": "styles/rhea/drawer.css",
|
|
3050
|
+
"target": "styles/rhea/drawer.css",
|
|
3051
|
+
"role": "style",
|
|
3052
|
+
"layer": "loseta.style"
|
|
2969
3053
|
}
|
|
2970
3054
|
],
|
|
2971
3055
|
"examples": [
|
|
@@ -2975,7 +3059,7 @@
|
|
|
2975
3059
|
{
|
|
2976
3060
|
"name": "hover-card",
|
|
2977
3061
|
"type": "component",
|
|
2978
|
-
"status": "
|
|
3062
|
+
"status": "stable",
|
|
2979
3063
|
"title": "Hover Card",
|
|
2980
3064
|
"description": "Shows a preview of content when a trigger is hovered or focused.",
|
|
2981
3065
|
"docs": "/docs/components/hover-card",
|
|
@@ -2998,6 +3082,48 @@
|
|
|
2998
3082
|
"target": "styles/nova/hover-card.css",
|
|
2999
3083
|
"role": "style",
|
|
3000
3084
|
"layer": "loseta.style"
|
|
3085
|
+
},
|
|
3086
|
+
{
|
|
3087
|
+
"path": "styles/vega/hover-card.css",
|
|
3088
|
+
"target": "styles/vega/hover-card.css",
|
|
3089
|
+
"role": "style",
|
|
3090
|
+
"layer": "loseta.style"
|
|
3091
|
+
},
|
|
3092
|
+
{
|
|
3093
|
+
"path": "styles/maia/hover-card.css",
|
|
3094
|
+
"target": "styles/maia/hover-card.css",
|
|
3095
|
+
"role": "style",
|
|
3096
|
+
"layer": "loseta.style"
|
|
3097
|
+
},
|
|
3098
|
+
{
|
|
3099
|
+
"path": "styles/lyra/hover-card.css",
|
|
3100
|
+
"target": "styles/lyra/hover-card.css",
|
|
3101
|
+
"role": "style",
|
|
3102
|
+
"layer": "loseta.style"
|
|
3103
|
+
},
|
|
3104
|
+
{
|
|
3105
|
+
"path": "styles/mira/hover-card.css",
|
|
3106
|
+
"target": "styles/mira/hover-card.css",
|
|
3107
|
+
"role": "style",
|
|
3108
|
+
"layer": "loseta.style"
|
|
3109
|
+
},
|
|
3110
|
+
{
|
|
3111
|
+
"path": "styles/luma/hover-card.css",
|
|
3112
|
+
"target": "styles/luma/hover-card.css",
|
|
3113
|
+
"role": "style",
|
|
3114
|
+
"layer": "loseta.style"
|
|
3115
|
+
},
|
|
3116
|
+
{
|
|
3117
|
+
"path": "styles/sera/hover-card.css",
|
|
3118
|
+
"target": "styles/sera/hover-card.css",
|
|
3119
|
+
"role": "style",
|
|
3120
|
+
"layer": "loseta.style"
|
|
3121
|
+
},
|
|
3122
|
+
{
|
|
3123
|
+
"path": "styles/rhea/hover-card.css",
|
|
3124
|
+
"target": "styles/rhea/hover-card.css",
|
|
3125
|
+
"role": "style",
|
|
3126
|
+
"layer": "loseta.style"
|
|
3001
3127
|
}
|
|
3002
3128
|
],
|
|
3003
3129
|
"examples": [
|
|
@@ -3007,7 +3133,7 @@
|
|
|
3007
3133
|
{
|
|
3008
3134
|
"name": "menubar",
|
|
3009
3135
|
"type": "component",
|
|
3010
|
-
"status": "
|
|
3136
|
+
"status": "stable",
|
|
3011
3137
|
"title": "Menubar",
|
|
3012
3138
|
"description": "Displays a horizontal bar of menus.",
|
|
3013
3139
|
"docs": "/docs/components/menubar",
|
|
@@ -3031,6 +3157,48 @@
|
|
|
3031
3157
|
"target": "styles/nova/menubar.css",
|
|
3032
3158
|
"role": "style",
|
|
3033
3159
|
"layer": "loseta.style"
|
|
3160
|
+
},
|
|
3161
|
+
{
|
|
3162
|
+
"path": "styles/vega/menubar.css",
|
|
3163
|
+
"target": "styles/vega/menubar.css",
|
|
3164
|
+
"role": "style",
|
|
3165
|
+
"layer": "loseta.style"
|
|
3166
|
+
},
|
|
3167
|
+
{
|
|
3168
|
+
"path": "styles/maia/menubar.css",
|
|
3169
|
+
"target": "styles/maia/menubar.css",
|
|
3170
|
+
"role": "style",
|
|
3171
|
+
"layer": "loseta.style"
|
|
3172
|
+
},
|
|
3173
|
+
{
|
|
3174
|
+
"path": "styles/lyra/menubar.css",
|
|
3175
|
+
"target": "styles/lyra/menubar.css",
|
|
3176
|
+
"role": "style",
|
|
3177
|
+
"layer": "loseta.style"
|
|
3178
|
+
},
|
|
3179
|
+
{
|
|
3180
|
+
"path": "styles/mira/menubar.css",
|
|
3181
|
+
"target": "styles/mira/menubar.css",
|
|
3182
|
+
"role": "style",
|
|
3183
|
+
"layer": "loseta.style"
|
|
3184
|
+
},
|
|
3185
|
+
{
|
|
3186
|
+
"path": "styles/luma/menubar.css",
|
|
3187
|
+
"target": "styles/luma/menubar.css",
|
|
3188
|
+
"role": "style",
|
|
3189
|
+
"layer": "loseta.style"
|
|
3190
|
+
},
|
|
3191
|
+
{
|
|
3192
|
+
"path": "styles/sera/menubar.css",
|
|
3193
|
+
"target": "styles/sera/menubar.css",
|
|
3194
|
+
"role": "style",
|
|
3195
|
+
"layer": "loseta.style"
|
|
3196
|
+
},
|
|
3197
|
+
{
|
|
3198
|
+
"path": "styles/rhea/menubar.css",
|
|
3199
|
+
"target": "styles/rhea/menubar.css",
|
|
3200
|
+
"role": "style",
|
|
3201
|
+
"layer": "loseta.style"
|
|
3034
3202
|
}
|
|
3035
3203
|
],
|
|
3036
3204
|
"examples": [
|
|
@@ -3040,7 +3208,7 @@
|
|
|
3040
3208
|
{
|
|
3041
3209
|
"name": "navigation-menu",
|
|
3042
3210
|
"type": "component",
|
|
3043
|
-
"status": "
|
|
3211
|
+
"status": "stable",
|
|
3044
3212
|
"title": "Navigation Menu",
|
|
3045
3213
|
"description": "Displays site navigation with popover panels.",
|
|
3046
3214
|
"docs": "/docs/components/navigation-menu",
|
|
@@ -3063,6 +3231,48 @@
|
|
|
3063
3231
|
"target": "styles/nova/navigation-menu.css",
|
|
3064
3232
|
"role": "style",
|
|
3065
3233
|
"layer": "loseta.style"
|
|
3234
|
+
},
|
|
3235
|
+
{
|
|
3236
|
+
"path": "styles/vega/navigation-menu.css",
|
|
3237
|
+
"target": "styles/vega/navigation-menu.css",
|
|
3238
|
+
"role": "style",
|
|
3239
|
+
"layer": "loseta.style"
|
|
3240
|
+
},
|
|
3241
|
+
{
|
|
3242
|
+
"path": "styles/maia/navigation-menu.css",
|
|
3243
|
+
"target": "styles/maia/navigation-menu.css",
|
|
3244
|
+
"role": "style",
|
|
3245
|
+
"layer": "loseta.style"
|
|
3246
|
+
},
|
|
3247
|
+
{
|
|
3248
|
+
"path": "styles/lyra/navigation-menu.css",
|
|
3249
|
+
"target": "styles/lyra/navigation-menu.css",
|
|
3250
|
+
"role": "style",
|
|
3251
|
+
"layer": "loseta.style"
|
|
3252
|
+
},
|
|
3253
|
+
{
|
|
3254
|
+
"path": "styles/mira/navigation-menu.css",
|
|
3255
|
+
"target": "styles/mira/navigation-menu.css",
|
|
3256
|
+
"role": "style",
|
|
3257
|
+
"layer": "loseta.style"
|
|
3258
|
+
},
|
|
3259
|
+
{
|
|
3260
|
+
"path": "styles/luma/navigation-menu.css",
|
|
3261
|
+
"target": "styles/luma/navigation-menu.css",
|
|
3262
|
+
"role": "style",
|
|
3263
|
+
"layer": "loseta.style"
|
|
3264
|
+
},
|
|
3265
|
+
{
|
|
3266
|
+
"path": "styles/sera/navigation-menu.css",
|
|
3267
|
+
"target": "styles/sera/navigation-menu.css",
|
|
3268
|
+
"role": "style",
|
|
3269
|
+
"layer": "loseta.style"
|
|
3270
|
+
},
|
|
3271
|
+
{
|
|
3272
|
+
"path": "styles/rhea/navigation-menu.css",
|
|
3273
|
+
"target": "styles/rhea/navigation-menu.css",
|
|
3274
|
+
"role": "style",
|
|
3275
|
+
"layer": "loseta.style"
|
|
3066
3276
|
}
|
|
3067
3277
|
],
|
|
3068
3278
|
"examples": [
|
|
@@ -3072,7 +3282,7 @@
|
|
|
3072
3282
|
{
|
|
3073
3283
|
"name": "sheet",
|
|
3074
3284
|
"type": "component",
|
|
3075
|
-
"status": "
|
|
3285
|
+
"status": "stable",
|
|
3076
3286
|
"title": "Sheet",
|
|
3077
3287
|
"description": "Extends the dialog shell to the side of the screen.",
|
|
3078
3288
|
"docs": "/docs/components/sheet",
|
|
@@ -3097,6 +3307,48 @@
|
|
|
3097
3307
|
"target": "styles/nova/sheet.css",
|
|
3098
3308
|
"role": "style",
|
|
3099
3309
|
"layer": "loseta.style"
|
|
3310
|
+
},
|
|
3311
|
+
{
|
|
3312
|
+
"path": "styles/vega/sheet.css",
|
|
3313
|
+
"target": "styles/vega/sheet.css",
|
|
3314
|
+
"role": "style",
|
|
3315
|
+
"layer": "loseta.style"
|
|
3316
|
+
},
|
|
3317
|
+
{
|
|
3318
|
+
"path": "styles/maia/sheet.css",
|
|
3319
|
+
"target": "styles/maia/sheet.css",
|
|
3320
|
+
"role": "style",
|
|
3321
|
+
"layer": "loseta.style"
|
|
3322
|
+
},
|
|
3323
|
+
{
|
|
3324
|
+
"path": "styles/lyra/sheet.css",
|
|
3325
|
+
"target": "styles/lyra/sheet.css",
|
|
3326
|
+
"role": "style",
|
|
3327
|
+
"layer": "loseta.style"
|
|
3328
|
+
},
|
|
3329
|
+
{
|
|
3330
|
+
"path": "styles/mira/sheet.css",
|
|
3331
|
+
"target": "styles/mira/sheet.css",
|
|
3332
|
+
"role": "style",
|
|
3333
|
+
"layer": "loseta.style"
|
|
3334
|
+
},
|
|
3335
|
+
{
|
|
3336
|
+
"path": "styles/luma/sheet.css",
|
|
3337
|
+
"target": "styles/luma/sheet.css",
|
|
3338
|
+
"role": "style",
|
|
3339
|
+
"layer": "loseta.style"
|
|
3340
|
+
},
|
|
3341
|
+
{
|
|
3342
|
+
"path": "styles/sera/sheet.css",
|
|
3343
|
+
"target": "styles/sera/sheet.css",
|
|
3344
|
+
"role": "style",
|
|
3345
|
+
"layer": "loseta.style"
|
|
3346
|
+
},
|
|
3347
|
+
{
|
|
3348
|
+
"path": "styles/rhea/sheet.css",
|
|
3349
|
+
"target": "styles/rhea/sheet.css",
|
|
3350
|
+
"role": "style",
|
|
3351
|
+
"layer": "loseta.style"
|
|
3100
3352
|
}
|
|
3101
3353
|
],
|
|
3102
3354
|
"examples": [
|
|
@@ -3775,7 +4027,7 @@
|
|
|
3775
4027
|
{
|
|
3776
4028
|
"name": "toast",
|
|
3777
4029
|
"type": "component",
|
|
3778
|
-
"status": "
|
|
4030
|
+
"status": "stable",
|
|
3779
4031
|
"title": "Toast",
|
|
3780
4032
|
"description": "A fixed stack of transient notifications.",
|
|
3781
4033
|
"docs": "/docs/components/toast",
|
|
@@ -3799,6 +4051,48 @@
|
|
|
3799
4051
|
"target": "styles/nova/toast.css",
|
|
3800
4052
|
"role": "style",
|
|
3801
4053
|
"layer": "loseta.style"
|
|
4054
|
+
},
|
|
4055
|
+
{
|
|
4056
|
+
"path": "styles/vega/toast.css",
|
|
4057
|
+
"target": "styles/vega/toast.css",
|
|
4058
|
+
"role": "style",
|
|
4059
|
+
"layer": "loseta.style"
|
|
4060
|
+
},
|
|
4061
|
+
{
|
|
4062
|
+
"path": "styles/maia/toast.css",
|
|
4063
|
+
"target": "styles/maia/toast.css",
|
|
4064
|
+
"role": "style",
|
|
4065
|
+
"layer": "loseta.style"
|
|
4066
|
+
},
|
|
4067
|
+
{
|
|
4068
|
+
"path": "styles/lyra/toast.css",
|
|
4069
|
+
"target": "styles/lyra/toast.css",
|
|
4070
|
+
"role": "style",
|
|
4071
|
+
"layer": "loseta.style"
|
|
4072
|
+
},
|
|
4073
|
+
{
|
|
4074
|
+
"path": "styles/mira/toast.css",
|
|
4075
|
+
"target": "styles/mira/toast.css",
|
|
4076
|
+
"role": "style",
|
|
4077
|
+
"layer": "loseta.style"
|
|
4078
|
+
},
|
|
4079
|
+
{
|
|
4080
|
+
"path": "styles/luma/toast.css",
|
|
4081
|
+
"target": "styles/luma/toast.css",
|
|
4082
|
+
"role": "style",
|
|
4083
|
+
"layer": "loseta.style"
|
|
4084
|
+
},
|
|
4085
|
+
{
|
|
4086
|
+
"path": "styles/sera/toast.css",
|
|
4087
|
+
"target": "styles/sera/toast.css",
|
|
4088
|
+
"role": "style",
|
|
4089
|
+
"layer": "loseta.style"
|
|
4090
|
+
},
|
|
4091
|
+
{
|
|
4092
|
+
"path": "styles/rhea/toast.css",
|
|
4093
|
+
"target": "styles/rhea/toast.css",
|
|
4094
|
+
"role": "style",
|
|
4095
|
+
"layer": "loseta.style"
|
|
3802
4096
|
}
|
|
3803
4097
|
],
|
|
3804
4098
|
"examples": [
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/* Context Menu */
|
|
2
|
+
@layer loseta.style {
|
|
3
|
+
.context-menu {
|
|
4
|
+
min-width: 8rem;
|
|
5
|
+
max-width: 20rem;
|
|
6
|
+
border-radius: var(--radius-3xl);
|
|
7
|
+
background-color: var(--popover);
|
|
8
|
+
padding: 0.375rem;
|
|
9
|
+
color: var(--popover-foreground);
|
|
10
|
+
box-shadow: 0 0 0 1px color-mix(in oklab, var(--foreground) 10%, transparent), var(--shadow-lg);
|
|
11
|
+
transition-property: opacity;
|
|
12
|
+
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
13
|
+
transition-duration: 150ms;
|
|
14
|
+
|
|
15
|
+
:is([role='menuitem'], [role='menuitemcheckbox'], [role='menuitemradio']) {
|
|
16
|
+
white-space: nowrap;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
/* Drawer */
|
|
2
|
+
@layer loseta.style {
|
|
3
|
+
.drawer {
|
|
4
|
+
--drawer-height: 80vh;
|
|
5
|
+
|
|
6
|
+
&[data-size='sm'] {
|
|
7
|
+
--drawer-height: 50vh;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
&[data-size='lg'] {
|
|
11
|
+
--drawer-height: 90vh;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
> * {
|
|
15
|
+
gap: 1.5rem;
|
|
16
|
+
border-start-start-radius: var(--radius-4xl);
|
|
17
|
+
border-start-end-radius: var(--radius-4xl);
|
|
18
|
+
background-color: var(--background);
|
|
19
|
+
padding: 1.5rem;
|
|
20
|
+
color: var(--foreground);
|
|
21
|
+
box-shadow: var(--shadow-xl);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
&[data-side='block-start'] > * {
|
|
25
|
+
border-start-start-radius: 0;
|
|
26
|
+
border-start-end-radius: 0;
|
|
27
|
+
border-end-start-radius: var(--radius-4xl);
|
|
28
|
+
border-end-end-radius: var(--radius-4xl);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
> * > [data-slot='handle'] {
|
|
32
|
+
width: 2.5rem;
|
|
33
|
+
height: 0.25rem;
|
|
34
|
+
margin-inline: auto;
|
|
35
|
+
border-radius: var(--radius-full);
|
|
36
|
+
background-color: var(--muted);
|
|
37
|
+
cursor: grab;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
> * > header {
|
|
41
|
+
gap: 0.5rem;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
> * > header > [data-slot='title'] {
|
|
45
|
+
font-size: var(--text-base);
|
|
46
|
+
line-height: 1;
|
|
47
|
+
font-weight: 500;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
> * > header > [data-slot='description'] {
|
|
51
|
+
font-size: var(--text-sm);
|
|
52
|
+
line-height: var(--text-sm--line-height);
|
|
53
|
+
color: var(--muted-foreground);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
> * > footer {
|
|
57
|
+
gap: 0.5rem;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/* Hover Card */
|
|
2
|
+
@layer loseta.style {
|
|
3
|
+
.hover-card > [data-popover] {
|
|
4
|
+
width: 18rem;
|
|
5
|
+
gap: 0.5rem;
|
|
6
|
+
transition-delay: 0s;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.hover-card:hover > [data-popover],
|
|
10
|
+
.hover-card:focus-within > [data-popover] {
|
|
11
|
+
transition-delay: 300ms;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
@media (prefers-reduced-motion: reduce) {
|
|
15
|
+
.hover-card > [data-popover],
|
|
16
|
+
.hover-card:hover > [data-popover],
|
|
17
|
+
.hover-card:focus-within > [data-popover] {
|
|
18
|
+
transition-delay: 0s;
|
|
19
|
+
transition-duration: 0s;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/* Menubar */
|
|
2
|
+
@layer loseta.style {
|
|
3
|
+
.menubar {
|
|
4
|
+
gap: 0.375rem;
|
|
5
|
+
border-style: solid;
|
|
6
|
+
border-width: 1px;
|
|
7
|
+
border-color: var(--border);
|
|
8
|
+
border-radius: var(--radius-3xl);
|
|
9
|
+
background-color: var(--background);
|
|
10
|
+
padding: 0.375rem;
|
|
11
|
+
box-shadow: var(--shadow-md);
|
|
12
|
+
|
|
13
|
+
[role='menuitem'] {
|
|
14
|
+
height: 2rem;
|
|
15
|
+
gap: 0.375rem;
|
|
16
|
+
border-radius: var(--radius-full);
|
|
17
|
+
padding-inline: 0.75rem;
|
|
18
|
+
font-size: var(--text-sm);
|
|
19
|
+
line-height: var(--text-sm--line-height);
|
|
20
|
+
font-weight: 500;
|
|
21
|
+
|
|
22
|
+
&:hover,
|
|
23
|
+
&[aria-expanded='true'] {
|
|
24
|
+
background-color: var(--accent);
|
|
25
|
+
color: var(--accent-foreground);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
&:focus-visible {
|
|
29
|
+
background-color: var(--accent);
|
|
30
|
+
color: var(--accent-foreground);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
& svg {
|
|
34
|
+
width: 1rem;
|
|
35
|
+
height: 1rem;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
[data-popover] {
|
|
40
|
+
min-width: 8rem;
|
|
41
|
+
max-width: 20rem;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
[role='menu'] :is([role='menuitem'], [role='menuitemcheckbox'], [role='menuitemradio']) {
|
|
45
|
+
white-space: nowrap;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
/* Navigation Menu */
|
|
2
|
+
@layer loseta.style {
|
|
3
|
+
.navigation-menu {
|
|
4
|
+
> ul {
|
|
5
|
+
gap: 0.375rem;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
> ul > li > :is(a, button) {
|
|
9
|
+
height: 2.25rem;
|
|
10
|
+
gap: 0.25rem;
|
|
11
|
+
border-radius: var(--radius-full);
|
|
12
|
+
padding-inline: 0.75rem;
|
|
13
|
+
font-size: var(--text-sm);
|
|
14
|
+
line-height: var(--text-sm--line-height);
|
|
15
|
+
font-weight: 500;
|
|
16
|
+
|
|
17
|
+
&:hover,
|
|
18
|
+
&[aria-expanded='true'] {
|
|
19
|
+
background-color: var(--accent);
|
|
20
|
+
color: var(--accent-foreground);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
&:focus-visible {
|
|
24
|
+
background-color: var(--accent);
|
|
25
|
+
color: var(--accent-foreground);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
& svg {
|
|
29
|
+
width: 0.875rem;
|
|
30
|
+
height: 0.875rem;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
> ul > li > [data-popover] {
|
|
35
|
+
width: 20rem;
|
|
36
|
+
max-width: calc(100vw - 2rem);
|
|
37
|
+
gap: 0.25rem;
|
|
38
|
+
padding: 0.75rem;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
[data-popover] ul {
|
|
42
|
+
margin: 0;
|
|
43
|
+
display: grid;
|
|
44
|
+
list-style-type: none;
|
|
45
|
+
gap: 0.25rem;
|
|
46
|
+
padding: 0;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
[data-popover] a {
|
|
50
|
+
display: grid;
|
|
51
|
+
gap: 0.125rem;
|
|
52
|
+
border-radius: var(--radius-full);
|
|
53
|
+
padding: 0.75rem;
|
|
54
|
+
|
|
55
|
+
&:hover,
|
|
56
|
+
&:focus-visible {
|
|
57
|
+
background-color: var(--accent);
|
|
58
|
+
color: var(--accent-foreground);
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
[data-slot='title'] {
|
|
63
|
+
font-size: var(--text-sm);
|
|
64
|
+
line-height: var(--text-sm--line-height);
|
|
65
|
+
font-weight: 500;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
[data-slot='description'] {
|
|
69
|
+
font-size: var(--text-xs);
|
|
70
|
+
line-height: var(--text-xs--line-height);
|
|
71
|
+
color: var(--muted-foreground);
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
[data-popover] a:hover [data-slot='description'],
|
|
75
|
+
[data-popover] a:focus-visible [data-slot='description'] {
|
|
76
|
+
color: inherit;
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
}
|