@threadlabs/looma 0.46.5 → 0.47.1
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/components/ui-button/ui-button.html +32 -15
- package/components/ui-checkbox/ui-checkbox.html +20 -2
- package/components/ui-icon-button/ui-icon-button.html +35 -16
- package/components/ui-radio/ui-radio.html +23 -1
- package/components/ui-switch/ui-switch.html +22 -0
- package/dist/index.js +1 -1
- package/docs/README.md +7 -5
- package/docs/catalog.json +228 -40
- package/docs/customizer-render.mjs +3 -3
- package/docs/customizer.js +1 -7
- package/docs/theme.mjs +117 -34
- package/package.json +2 -2
- package/styles/ui-button.css +33 -16
- package/styles/ui-checkbox.css +23 -2
- package/styles/ui-icon-button.css +35 -16
- package/styles/ui-radio.css +26 -1
- package/styles/ui-switch.css +25 -0
- package/theme-system.css +2 -0
- package/tokens.css +45 -18
- package/vue/UiButton.vue +32 -21
- package/vue/UiCheckbox.vue +21 -2
- package/vue/UiIconButton.vue +35 -28
- package/vue/UiRadio.vue +24 -1
- package/vue/UiSwitch.vue +23 -0
- package/vue/chunks/UiButton.js +1 -1
- package/vue/chunks/UiCheckbox.js +1 -1
- package/vue/chunks/UiIconButton.js +1 -1
- package/vue/chunks/UiRadio.js +1 -1
- package/vue/chunks/UiSwitch.js +1 -1
- package/vue/components.css +217 -88
package/docs/catalog.json
CHANGED
|
@@ -463,7 +463,7 @@
|
|
|
463
463
|
],
|
|
464
464
|
"schemaVersion": 1,
|
|
465
465
|
"package": "@threadlabs/looma",
|
|
466
|
-
"version": "0.
|
|
466
|
+
"version": "0.47.1",
|
|
467
467
|
"groups": [
|
|
468
468
|
{
|
|
469
469
|
"id": "layout",
|
|
@@ -2133,8 +2133,15 @@
|
|
|
2133
2133
|
},
|
|
2134
2134
|
{
|
|
2135
2135
|
"name": "--ui-button-ghost-hover-surface",
|
|
2136
|
-
"
|
|
2137
|
-
"
|
|
2136
|
+
"declarations": [
|
|
2137
|
+
"var(--ui-accent-ghost-hover)",
|
|
2138
|
+
"var(--ui-accent-secondary-ghost-hover)",
|
|
2139
|
+
"var(--ui-accent-tertiary-ghost-hover)",
|
|
2140
|
+
"var(--ui-neutral-ghost-hover)",
|
|
2141
|
+
"var(--ui-danger-ghost-hover)",
|
|
2142
|
+
"var(--ui-success-ghost-hover)",
|
|
2143
|
+
"var(--ui-warning-ghost-hover)",
|
|
2144
|
+
"var(--ui-info-ghost-hover)"
|
|
2138
2145
|
]
|
|
2139
2146
|
},
|
|
2140
2147
|
{
|
|
@@ -2249,7 +2256,7 @@
|
|
|
2249
2256
|
]
|
|
2250
2257
|
},
|
|
2251
2258
|
{
|
|
2252
|
-
"name": "--ui-neutral-highlight",
|
|
2259
|
+
"name": "--ui-neutral-hover-highlight",
|
|
2253
2260
|
"declarations": [
|
|
2254
2261
|
"var(--ui-accent-highlight, none)",
|
|
2255
2262
|
"var(--ui-accent-secondary-highlight, none)",
|
|
@@ -2259,10 +2266,6 @@
|
|
|
2259
2266
|
"var(--ui-success-highlight, none)",
|
|
2260
2267
|
"var(--ui-warning-highlight, none)",
|
|
2261
2268
|
"var(--ui-info-highlight, none)"
|
|
2262
|
-
],
|
|
2263
|
-
"fallbacks": [
|
|
2264
|
-
"var(--ui-surface-highlight, linear-gradient(transparent, transparent))",
|
|
2265
|
-
"none"
|
|
2266
2269
|
]
|
|
2267
2270
|
}
|
|
2268
2271
|
],
|
|
@@ -2285,6 +2288,9 @@
|
|
|
2285
2288
|
"var(--ui-accent)"
|
|
2286
2289
|
]
|
|
2287
2290
|
},
|
|
2291
|
+
{
|
|
2292
|
+
"name": "--ui-accent-ghost-hover"
|
|
2293
|
+
},
|
|
2288
2294
|
{
|
|
2289
2295
|
"name": "--ui-accent-glow",
|
|
2290
2296
|
"fallbacks": [
|
|
@@ -2336,6 +2342,9 @@
|
|
|
2336
2342
|
"var(--ui-accent-secondary)"
|
|
2337
2343
|
]
|
|
2338
2344
|
},
|
|
2345
|
+
{
|
|
2346
|
+
"name": "--ui-accent-secondary-ghost-hover"
|
|
2347
|
+
},
|
|
2339
2348
|
{
|
|
2340
2349
|
"name": "--ui-accent-secondary-glow",
|
|
2341
2350
|
"fallbacks": [
|
|
@@ -2375,6 +2384,12 @@
|
|
|
2375
2384
|
{
|
|
2376
2385
|
"name": "--ui-accent-secondary-subtle-text"
|
|
2377
2386
|
},
|
|
2387
|
+
{
|
|
2388
|
+
"name": "--ui-accent-secondary-wash"
|
|
2389
|
+
},
|
|
2390
|
+
{
|
|
2391
|
+
"name": "--ui-accent-secondary-wash-hover"
|
|
2392
|
+
},
|
|
2378
2393
|
{
|
|
2379
2394
|
"name": "--ui-accent-solid"
|
|
2380
2395
|
},
|
|
@@ -2399,6 +2414,9 @@
|
|
|
2399
2414
|
"var(--ui-accent-tertiary)"
|
|
2400
2415
|
]
|
|
2401
2416
|
},
|
|
2417
|
+
{
|
|
2418
|
+
"name": "--ui-accent-tertiary-ghost-hover"
|
|
2419
|
+
},
|
|
2402
2420
|
{
|
|
2403
2421
|
"name": "--ui-accent-tertiary-glow",
|
|
2404
2422
|
"fallbacks": [
|
|
@@ -2438,6 +2456,18 @@
|
|
|
2438
2456
|
{
|
|
2439
2457
|
"name": "--ui-accent-tertiary-subtle-text"
|
|
2440
2458
|
},
|
|
2459
|
+
{
|
|
2460
|
+
"name": "--ui-accent-tertiary-wash"
|
|
2461
|
+
},
|
|
2462
|
+
{
|
|
2463
|
+
"name": "--ui-accent-tertiary-wash-hover"
|
|
2464
|
+
},
|
|
2465
|
+
{
|
|
2466
|
+
"name": "--ui-accent-wash"
|
|
2467
|
+
},
|
|
2468
|
+
{
|
|
2469
|
+
"name": "--ui-accent-wash-hover"
|
|
2470
|
+
},
|
|
2441
2471
|
{
|
|
2442
2472
|
"name": "--ui-action-edge",
|
|
2443
2473
|
"fallbacks": [
|
|
@@ -2558,6 +2588,9 @@
|
|
|
2558
2588
|
"var(--ui-danger)"
|
|
2559
2589
|
]
|
|
2560
2590
|
},
|
|
2591
|
+
{
|
|
2592
|
+
"name": "--ui-danger-ghost-hover"
|
|
2593
|
+
},
|
|
2561
2594
|
{
|
|
2562
2595
|
"name": "--ui-danger-glow",
|
|
2563
2596
|
"fallbacks": [
|
|
@@ -2594,6 +2627,12 @@
|
|
|
2594
2627
|
{
|
|
2595
2628
|
"name": "--ui-danger-subtle-text"
|
|
2596
2629
|
},
|
|
2630
|
+
{
|
|
2631
|
+
"name": "--ui-danger-wash"
|
|
2632
|
+
},
|
|
2633
|
+
{
|
|
2634
|
+
"name": "--ui-danger-wash-hover"
|
|
2635
|
+
},
|
|
2597
2636
|
{
|
|
2598
2637
|
"name": "--ui-disabled-border"
|
|
2599
2638
|
},
|
|
@@ -2654,6 +2693,9 @@
|
|
|
2654
2693
|
"var(--ui-info)"
|
|
2655
2694
|
]
|
|
2656
2695
|
},
|
|
2696
|
+
{
|
|
2697
|
+
"name": "--ui-info-ghost-hover"
|
|
2698
|
+
},
|
|
2657
2699
|
{
|
|
2658
2700
|
"name": "--ui-info-glow",
|
|
2659
2701
|
"fallbacks": [
|
|
@@ -2693,6 +2735,12 @@
|
|
|
2693
2735
|
{
|
|
2694
2736
|
"name": "--ui-info-subtle-text"
|
|
2695
2737
|
},
|
|
2738
|
+
{
|
|
2739
|
+
"name": "--ui-info-wash"
|
|
2740
|
+
},
|
|
2741
|
+
{
|
|
2742
|
+
"name": "--ui-info-wash-hover"
|
|
2743
|
+
},
|
|
2696
2744
|
{
|
|
2697
2745
|
"name": "--ui-line-height-tight"
|
|
2698
2746
|
},
|
|
@@ -2714,12 +2762,21 @@
|
|
|
2714
2762
|
{
|
|
2715
2763
|
"name": "--ui-neutral-active"
|
|
2716
2764
|
},
|
|
2765
|
+
{
|
|
2766
|
+
"name": "--ui-neutral-ghost-hover"
|
|
2767
|
+
},
|
|
2717
2768
|
{
|
|
2718
2769
|
"name": "--ui-neutral-glow",
|
|
2719
2770
|
"fallbacks": [
|
|
2720
2771
|
"0 0 transparent"
|
|
2721
2772
|
]
|
|
2722
2773
|
},
|
|
2774
|
+
{
|
|
2775
|
+
"name": "--ui-neutral-highlight",
|
|
2776
|
+
"fallbacks": [
|
|
2777
|
+
"none"
|
|
2778
|
+
]
|
|
2779
|
+
},
|
|
2723
2780
|
{
|
|
2724
2781
|
"name": "--ui-neutral-hover"
|
|
2725
2782
|
},
|
|
@@ -2729,6 +2786,9 @@
|
|
|
2729
2786
|
{
|
|
2730
2787
|
"name": "--ui-neutral-surface"
|
|
2731
2788
|
},
|
|
2789
|
+
{
|
|
2790
|
+
"name": "--ui-neutral-wash-hover"
|
|
2791
|
+
},
|
|
2732
2792
|
{
|
|
2733
2793
|
"name": "--ui-on-accent"
|
|
2734
2794
|
},
|
|
@@ -2798,6 +2858,9 @@
|
|
|
2798
2858
|
"var(--ui-success)"
|
|
2799
2859
|
]
|
|
2800
2860
|
},
|
|
2861
|
+
{
|
|
2862
|
+
"name": "--ui-success-ghost-hover"
|
|
2863
|
+
},
|
|
2801
2864
|
{
|
|
2802
2865
|
"name": "--ui-success-glow",
|
|
2803
2866
|
"fallbacks": [
|
|
@@ -2837,6 +2900,12 @@
|
|
|
2837
2900
|
{
|
|
2838
2901
|
"name": "--ui-success-subtle-text"
|
|
2839
2902
|
},
|
|
2903
|
+
{
|
|
2904
|
+
"name": "--ui-success-wash"
|
|
2905
|
+
},
|
|
2906
|
+
{
|
|
2907
|
+
"name": "--ui-success-wash-hover"
|
|
2908
|
+
},
|
|
2840
2909
|
{
|
|
2841
2910
|
"name": "--ui-surface"
|
|
2842
2911
|
},
|
|
@@ -2846,8 +2915,7 @@
|
|
|
2846
2915
|
{
|
|
2847
2916
|
"name": "--ui-surface-highlight",
|
|
2848
2917
|
"fallbacks": [
|
|
2849
|
-
"none"
|
|
2850
|
-
"linear-gradient(transparent, transparent)"
|
|
2918
|
+
"none"
|
|
2851
2919
|
]
|
|
2852
2920
|
},
|
|
2853
2921
|
{
|
|
@@ -2883,6 +2951,9 @@
|
|
|
2883
2951
|
"var(--ui-warning)"
|
|
2884
2952
|
]
|
|
2885
2953
|
},
|
|
2954
|
+
{
|
|
2955
|
+
"name": "--ui-warning-ghost-hover"
|
|
2956
|
+
},
|
|
2886
2957
|
{
|
|
2887
2958
|
"name": "--ui-warning-glow",
|
|
2888
2959
|
"fallbacks": [
|
|
@@ -2921,6 +2992,12 @@
|
|
|
2921
2992
|
},
|
|
2922
2993
|
{
|
|
2923
2994
|
"name": "--ui-warning-subtle-text"
|
|
2995
|
+
},
|
|
2996
|
+
{
|
|
2997
|
+
"name": "--ui-warning-wash"
|
|
2998
|
+
},
|
|
2999
|
+
{
|
|
3000
|
+
"name": "--ui-warning-wash-hover"
|
|
2924
3001
|
}
|
|
2925
3002
|
]
|
|
2926
3003
|
},
|
|
@@ -4094,6 +4171,15 @@
|
|
|
4094
4171
|
{
|
|
4095
4172
|
"name": "--ui-border-width"
|
|
4096
4173
|
},
|
|
4174
|
+
{
|
|
4175
|
+
"name": "--ui-choice-hover-highlight",
|
|
4176
|
+
"fallbacks": [
|
|
4177
|
+
"none"
|
|
4178
|
+
]
|
|
4179
|
+
},
|
|
4180
|
+
{
|
|
4181
|
+
"name": "--ui-choice-hover-surface"
|
|
4182
|
+
},
|
|
4097
4183
|
{
|
|
4098
4184
|
"name": "--ui-choice-mark-size"
|
|
4099
4185
|
},
|
|
@@ -4103,6 +4189,12 @@
|
|
|
4103
4189
|
"var(--ui-border-strong)"
|
|
4104
4190
|
]
|
|
4105
4191
|
},
|
|
4192
|
+
{
|
|
4193
|
+
"name": "--ui-control-border-hover",
|
|
4194
|
+
"fallbacks": [
|
|
4195
|
+
"var(--ui-border-strong)"
|
|
4196
|
+
]
|
|
4197
|
+
},
|
|
4106
4198
|
{
|
|
4107
4199
|
"name": "--ui-control-inset"
|
|
4108
4200
|
},
|
|
@@ -4172,6 +4264,9 @@
|
|
|
4172
4264
|
{
|
|
4173
4265
|
"name": "--ui-motion-fast"
|
|
4174
4266
|
},
|
|
4267
|
+
{
|
|
4268
|
+
"name": "--ui-neutral-wash-hover"
|
|
4269
|
+
},
|
|
4175
4270
|
{
|
|
4176
4271
|
"name": "--ui-radius-round"
|
|
4177
4272
|
},
|
|
@@ -4190,7 +4285,8 @@
|
|
|
4190
4285
|
{
|
|
4191
4286
|
"name": "--ui-surface-highlight",
|
|
4192
4287
|
"fallbacks": [
|
|
4193
|
-
"none"
|
|
4288
|
+
"none",
|
|
4289
|
+
"linear-gradient(transparent, transparent)"
|
|
4194
4290
|
]
|
|
4195
4291
|
},
|
|
4196
4292
|
{
|
|
@@ -4734,7 +4830,7 @@
|
|
|
4734
4830
|
"name": "99-theme-sampler",
|
|
4735
4831
|
"title": "Theme sampler",
|
|
4736
4832
|
"description": "A compact collection of real controls and a surface for judging a shared theme together.",
|
|
4737
|
-
"markup": "<ui-card treatment=\"expressive\"><ui-stack gap=\"l\">\n <ui-cluster gap=\"xs\" justify=\"between\"><ui-text variant=\"eyebrow\">Fellowship office</ui-text><ui-badge tone=\"success\">Ready</ui-badge></ui-cluster>\n <ui-stack gap=\"s\"><ui-text variant=\"heading\" as=\"h3\">Second breakfast, sorted.</ui-text>\n <ui-text>Frodo plans. Sam follows through.</ui-text>\n <ui-text variant=\"caption\">Briefing at nine · Bring the maps.</ui-text></ui-stack>\n <ui-cluster>\n <ui-button variant=\"solid\" tone=\"accent\" title=\"Solid accent\">Send</ui-button>\n <ui-button variant=\"outline\" tone=\"accent\" title=\"Outline accent\">Save</ui-button>\n <ui-button variant=\"solid\" tone=\"neutral\" title=\"Solid neutral\">File</ui-button>\n <ui-button variant=\"outline\" tone=\"neutral\" title=\"Outline neutral\">Archive</ui-button>\n <ui-icon-button variant=\"outline\" tone=\"neutral\" match-button label=\"Acknowledge memo\"><ui-icon name=\"circle-check\"></ui-icon></ui-icon-button>\n <ui-button variant=\"ghost\" tone=\"neutral\" title=\"Ghost neutral\">Later</ui-button>\n </ui-cluster>\n <ui-input-group><ui-icon slot=\"prefix\" name=\"search\"></ui-icon><ui-input\n aria-label=\"Search office\"\n placeholder=\"Search Fellowship office\"\n ></ui-input></ui-input-group>\n <ui-cluster><ui-checkbox checked>Notify Sam</ui-checkbox><ui-switch checked>Available</ui-switch><ui-badge
|
|
4833
|
+
"markup": "<ui-card treatment=\"expressive\"><ui-stack gap=\"l\">\n <ui-cluster gap=\"xs\" justify=\"between\"><ui-text variant=\"eyebrow\">Fellowship office</ui-text><ui-badge tone=\"success\">Ready</ui-badge></ui-cluster>\n <ui-stack gap=\"s\"><ui-text variant=\"heading\" as=\"h3\">Second breakfast, sorted.</ui-text>\n <ui-text>Frodo plans. Sam follows through.</ui-text>\n <ui-text variant=\"caption\">Briefing at nine · Bring the maps.</ui-text></ui-stack>\n <ui-cluster>\n <ui-button variant=\"solid\" tone=\"accent\" title=\"Solid accent\">Send</ui-button>\n <ui-button variant=\"outline\" tone=\"accent\" title=\"Outline accent\">Save</ui-button>\n <ui-button variant=\"solid\" tone=\"neutral\" title=\"Solid neutral\">File</ui-button>\n <ui-button variant=\"outline\" tone=\"neutral\" title=\"Outline neutral\">Archive</ui-button>\n <ui-icon-button variant=\"outline\" tone=\"neutral\" match-button label=\"Acknowledge memo\"><ui-icon name=\"circle-check\"></ui-icon></ui-icon-button>\n <ui-button variant=\"ghost\" tone=\"neutral\" title=\"Ghost neutral\">Later</ui-button>\n </ui-cluster>\n <ui-input-group><ui-icon slot=\"prefix\" name=\"search\"></ui-icon><ui-input\n aria-label=\"Search office\"\n placeholder=\"Search Fellowship office\"\n ></ui-input></ui-input-group>\n <ui-cluster><ui-checkbox checked>Notify Sam</ui-checkbox><ui-switch checked>Available</ui-switch><ui-radio checked>Daily briefing</ui-radio><ui-badge\n tone=\"accent\"\n >Draft</ui-badge></ui-cluster>\n </ui-stack></ui-card>",
|
|
4738
4834
|
"resizable": false,
|
|
4739
4835
|
"bindings": "",
|
|
4740
4836
|
"frameworks": {}
|
|
@@ -9685,10 +9781,18 @@
|
|
|
9685
9781
|
},
|
|
9686
9782
|
{
|
|
9687
9783
|
"name": "--ui-icon-button-hover-surface",
|
|
9784
|
+
"declarations": [
|
|
9785
|
+
"var(--ui-accent-ghost-hover)",
|
|
9786
|
+
"var(--ui-accent-secondary-ghost-hover)",
|
|
9787
|
+
"var(--ui-accent-tertiary-ghost-hover)",
|
|
9788
|
+
"var(--ui-danger-ghost-hover)",
|
|
9789
|
+
"var(--ui-success-ghost-hover)",
|
|
9790
|
+
"var(--ui-warning-ghost-hover)",
|
|
9791
|
+
"var(--ui-info-ghost-hover)",
|
|
9792
|
+
"var(--ui-neutral-ghost-hover)"
|
|
9793
|
+
],
|
|
9688
9794
|
"fallbacks": [
|
|
9689
|
-
"
|
|
9690
|
-
"transparent",
|
|
9691
|
-
"var(--ui-neutral-hover)"
|
|
9795
|
+
"transparent"
|
|
9692
9796
|
]
|
|
9693
9797
|
},
|
|
9694
9798
|
{
|
|
@@ -9773,7 +9877,7 @@
|
|
|
9773
9877
|
]
|
|
9774
9878
|
},
|
|
9775
9879
|
{
|
|
9776
|
-
"name": "--ui-neutral-highlight",
|
|
9880
|
+
"name": "--ui-neutral-hover-highlight",
|
|
9777
9881
|
"declarations": [
|
|
9778
9882
|
"var(--ui-accent-highlight, none)",
|
|
9779
9883
|
"var(--ui-accent-secondary-highlight, none)",
|
|
@@ -9783,10 +9887,6 @@
|
|
|
9783
9887
|
"var(--ui-warning-highlight, none)",
|
|
9784
9888
|
"var(--ui-info-highlight, none)",
|
|
9785
9889
|
"var(--ui-neutral-highlight, none)"
|
|
9786
|
-
],
|
|
9787
|
-
"fallbacks": [
|
|
9788
|
-
"none",
|
|
9789
|
-
"var(--ui-surface-highlight, linear-gradient(transparent, transparent))"
|
|
9790
9890
|
]
|
|
9791
9891
|
}
|
|
9792
9892
|
],
|
|
@@ -9813,6 +9913,9 @@
|
|
|
9813
9913
|
"var(--ui-accent)"
|
|
9814
9914
|
]
|
|
9815
9915
|
},
|
|
9916
|
+
{
|
|
9917
|
+
"name": "--ui-accent-ghost-hover"
|
|
9918
|
+
},
|
|
9816
9919
|
{
|
|
9817
9920
|
"name": "--ui-accent-glow",
|
|
9818
9921
|
"fallbacks": [
|
|
@@ -9867,6 +9970,9 @@
|
|
|
9867
9970
|
"var(--ui-accent-secondary)"
|
|
9868
9971
|
]
|
|
9869
9972
|
},
|
|
9973
|
+
{
|
|
9974
|
+
"name": "--ui-accent-secondary-ghost-hover"
|
|
9975
|
+
},
|
|
9870
9976
|
{
|
|
9871
9977
|
"name": "--ui-accent-secondary-glow",
|
|
9872
9978
|
"fallbacks": [
|
|
@@ -9909,6 +10015,12 @@
|
|
|
9909
10015
|
"var(--ui-accent-secondary-solid)"
|
|
9910
10016
|
]
|
|
9911
10017
|
},
|
|
10018
|
+
{
|
|
10019
|
+
"name": "--ui-accent-secondary-wash"
|
|
10020
|
+
},
|
|
10021
|
+
{
|
|
10022
|
+
"name": "--ui-accent-secondary-wash-hover"
|
|
10023
|
+
},
|
|
9912
10024
|
{
|
|
9913
10025
|
"name": "--ui-accent-solid"
|
|
9914
10026
|
},
|
|
@@ -9939,6 +10051,9 @@
|
|
|
9939
10051
|
"var(--ui-accent-tertiary)"
|
|
9940
10052
|
]
|
|
9941
10053
|
},
|
|
10054
|
+
{
|
|
10055
|
+
"name": "--ui-accent-tertiary-ghost-hover"
|
|
10056
|
+
},
|
|
9942
10057
|
{
|
|
9943
10058
|
"name": "--ui-accent-tertiary-glow",
|
|
9944
10059
|
"fallbacks": [
|
|
@@ -9981,6 +10096,18 @@
|
|
|
9981
10096
|
"var(--ui-accent-tertiary-solid)"
|
|
9982
10097
|
]
|
|
9983
10098
|
},
|
|
10099
|
+
{
|
|
10100
|
+
"name": "--ui-accent-tertiary-wash"
|
|
10101
|
+
},
|
|
10102
|
+
{
|
|
10103
|
+
"name": "--ui-accent-tertiary-wash-hover"
|
|
10104
|
+
},
|
|
10105
|
+
{
|
|
10106
|
+
"name": "--ui-accent-wash"
|
|
10107
|
+
},
|
|
10108
|
+
{
|
|
10109
|
+
"name": "--ui-accent-wash-hover"
|
|
10110
|
+
},
|
|
9984
10111
|
{
|
|
9985
10112
|
"name": "--ui-action-edge",
|
|
9986
10113
|
"fallbacks": [
|
|
@@ -10065,6 +10192,9 @@
|
|
|
10065
10192
|
"var(--ui-danger)"
|
|
10066
10193
|
]
|
|
10067
10194
|
},
|
|
10195
|
+
{
|
|
10196
|
+
"name": "--ui-danger-ghost-hover"
|
|
10197
|
+
},
|
|
10068
10198
|
{
|
|
10069
10199
|
"name": "--ui-danger-glow",
|
|
10070
10200
|
"fallbacks": [
|
|
@@ -10104,6 +10234,12 @@
|
|
|
10104
10234
|
{
|
|
10105
10235
|
"name": "--ui-danger-subtle-text"
|
|
10106
10236
|
},
|
|
10237
|
+
{
|
|
10238
|
+
"name": "--ui-danger-wash"
|
|
10239
|
+
},
|
|
10240
|
+
{
|
|
10241
|
+
"name": "--ui-danger-wash-hover"
|
|
10242
|
+
},
|
|
10107
10243
|
{
|
|
10108
10244
|
"name": "--ui-disabled-border"
|
|
10109
10245
|
},
|
|
@@ -10152,6 +10288,9 @@
|
|
|
10152
10288
|
"var(--ui-info)"
|
|
10153
10289
|
]
|
|
10154
10290
|
},
|
|
10291
|
+
{
|
|
10292
|
+
"name": "--ui-info-ghost-hover"
|
|
10293
|
+
},
|
|
10155
10294
|
{
|
|
10156
10295
|
"name": "--ui-info-glow",
|
|
10157
10296
|
"fallbacks": [
|
|
@@ -10191,6 +10330,12 @@
|
|
|
10191
10330
|
{
|
|
10192
10331
|
"name": "--ui-info-subtle-text"
|
|
10193
10332
|
},
|
|
10333
|
+
{
|
|
10334
|
+
"name": "--ui-info-wash"
|
|
10335
|
+
},
|
|
10336
|
+
{
|
|
10337
|
+
"name": "--ui-info-wash-hover"
|
|
10338
|
+
},
|
|
10194
10339
|
{
|
|
10195
10340
|
"name": "--ui-motion-base"
|
|
10196
10341
|
},
|
|
@@ -10212,12 +10357,21 @@
|
|
|
10212
10357
|
"var(--ui-neutral-hover)"
|
|
10213
10358
|
]
|
|
10214
10359
|
},
|
|
10360
|
+
{
|
|
10361
|
+
"name": "--ui-neutral-ghost-hover"
|
|
10362
|
+
},
|
|
10215
10363
|
{
|
|
10216
10364
|
"name": "--ui-neutral-glow",
|
|
10217
10365
|
"fallbacks": [
|
|
10218
10366
|
"0 0 transparent"
|
|
10219
10367
|
]
|
|
10220
10368
|
},
|
|
10369
|
+
{
|
|
10370
|
+
"name": "--ui-neutral-highlight",
|
|
10371
|
+
"fallbacks": [
|
|
10372
|
+
"none"
|
|
10373
|
+
]
|
|
10374
|
+
},
|
|
10221
10375
|
{
|
|
10222
10376
|
"name": "--ui-neutral-hover"
|
|
10223
10377
|
},
|
|
@@ -10227,6 +10381,9 @@
|
|
|
10227
10381
|
{
|
|
10228
10382
|
"name": "--ui-neutral-surface"
|
|
10229
10383
|
},
|
|
10384
|
+
{
|
|
10385
|
+
"name": "--ui-neutral-wash-hover"
|
|
10386
|
+
},
|
|
10230
10387
|
{
|
|
10231
10388
|
"name": "--ui-on-accent-secondary"
|
|
10232
10389
|
},
|
|
@@ -10269,6 +10426,9 @@
|
|
|
10269
10426
|
"var(--ui-success)"
|
|
10270
10427
|
]
|
|
10271
10428
|
},
|
|
10429
|
+
{
|
|
10430
|
+
"name": "--ui-success-ghost-hover"
|
|
10431
|
+
},
|
|
10272
10432
|
{
|
|
10273
10433
|
"name": "--ui-success-glow",
|
|
10274
10434
|
"fallbacks": [
|
|
@@ -10309,14 +10469,13 @@
|
|
|
10309
10469
|
"name": "--ui-success-subtle-text"
|
|
10310
10470
|
},
|
|
10311
10471
|
{
|
|
10312
|
-
"name": "--ui-
|
|
10472
|
+
"name": "--ui-success-wash"
|
|
10313
10473
|
},
|
|
10314
10474
|
{
|
|
10315
|
-
"name": "--ui-
|
|
10316
|
-
|
|
10317
|
-
|
|
10318
|
-
|
|
10319
|
-
]
|
|
10475
|
+
"name": "--ui-success-wash-hover"
|
|
10476
|
+
},
|
|
10477
|
+
{
|
|
10478
|
+
"name": "--ui-surface-default"
|
|
10320
10479
|
},
|
|
10321
10480
|
{
|
|
10322
10481
|
"name": "--ui-text"
|
|
@@ -10330,12 +10489,6 @@
|
|
|
10330
10489
|
{
|
|
10331
10490
|
"name": "--ui-text-secondary"
|
|
10332
10491
|
},
|
|
10333
|
-
{
|
|
10334
|
-
"name": "--ui-tonal-opacity",
|
|
10335
|
-
"fallbacks": [
|
|
10336
|
-
"1"
|
|
10337
|
-
]
|
|
10338
|
-
},
|
|
10339
10492
|
{
|
|
10340
10493
|
"name": "--ui-warning"
|
|
10341
10494
|
},
|
|
@@ -10357,6 +10510,9 @@
|
|
|
10357
10510
|
"var(--ui-warning)"
|
|
10358
10511
|
]
|
|
10359
10512
|
},
|
|
10513
|
+
{
|
|
10514
|
+
"name": "--ui-warning-ghost-hover"
|
|
10515
|
+
},
|
|
10360
10516
|
{
|
|
10361
10517
|
"name": "--ui-warning-glow",
|
|
10362
10518
|
"fallbacks": [
|
|
@@ -10395,6 +10551,12 @@
|
|
|
10395
10551
|
},
|
|
10396
10552
|
{
|
|
10397
10553
|
"name": "--ui-warning-subtle-text"
|
|
10554
|
+
},
|
|
10555
|
+
{
|
|
10556
|
+
"name": "--ui-warning-wash"
|
|
10557
|
+
},
|
|
10558
|
+
{
|
|
10559
|
+
"name": "--ui-warning-wash-hover"
|
|
10398
10560
|
}
|
|
10399
10561
|
]
|
|
10400
10562
|
},
|
|
@@ -15395,12 +15557,6 @@
|
|
|
15395
15557
|
}
|
|
15396
15558
|
],
|
|
15397
15559
|
"shared": [
|
|
15398
|
-
{
|
|
15399
|
-
"name": "--ui-accent-highlight",
|
|
15400
|
-
"fallbacks": [
|
|
15401
|
-
"none"
|
|
15402
|
-
]
|
|
15403
|
-
},
|
|
15404
15560
|
{
|
|
15405
15561
|
"name": "--ui-accent-solid"
|
|
15406
15562
|
},
|
|
@@ -15410,6 +15566,9 @@
|
|
|
15410
15566
|
{
|
|
15411
15567
|
"name": "--ui-border-width"
|
|
15412
15568
|
},
|
|
15569
|
+
{
|
|
15570
|
+
"name": "--ui-choice-hover-surface"
|
|
15571
|
+
},
|
|
15413
15572
|
{
|
|
15414
15573
|
"name": "--ui-choice-mark-size"
|
|
15415
15574
|
},
|
|
@@ -15419,6 +15578,12 @@
|
|
|
15419
15578
|
"var(--ui-border-strong)"
|
|
15420
15579
|
]
|
|
15421
15580
|
},
|
|
15581
|
+
{
|
|
15582
|
+
"name": "--ui-control-border-hover",
|
|
15583
|
+
"fallbacks": [
|
|
15584
|
+
"var(--ui-border-strong)"
|
|
15585
|
+
]
|
|
15586
|
+
},
|
|
15422
15587
|
{
|
|
15423
15588
|
"name": "--ui-control-inset"
|
|
15424
15589
|
},
|
|
@@ -15470,6 +15635,9 @@
|
|
|
15470
15635
|
{
|
|
15471
15636
|
"name": "--ui-motion-fast"
|
|
15472
15637
|
},
|
|
15638
|
+
{
|
|
15639
|
+
"name": "--ui-neutral-wash-hover"
|
|
15640
|
+
},
|
|
15473
15641
|
{
|
|
15474
15642
|
"name": "--ui-radius-round"
|
|
15475
15643
|
},
|
|
@@ -15485,7 +15653,8 @@
|
|
|
15485
15653
|
{
|
|
15486
15654
|
"name": "--ui-surface-highlight",
|
|
15487
15655
|
"fallbacks": [
|
|
15488
|
-
"none"
|
|
15656
|
+
"none",
|
|
15657
|
+
"linear-gradient(transparent, transparent)"
|
|
15489
15658
|
]
|
|
15490
15659
|
},
|
|
15491
15660
|
{
|
|
@@ -19327,6 +19496,15 @@
|
|
|
19327
19496
|
{
|
|
19328
19497
|
"name": "--ui-border-width"
|
|
19329
19498
|
},
|
|
19499
|
+
{
|
|
19500
|
+
"name": "--ui-choice-hover-highlight",
|
|
19501
|
+
"fallbacks": [
|
|
19502
|
+
"none"
|
|
19503
|
+
]
|
|
19504
|
+
},
|
|
19505
|
+
{
|
|
19506
|
+
"name": "--ui-choice-hover-surface"
|
|
19507
|
+
},
|
|
19330
19508
|
{
|
|
19331
19509
|
"name": "--ui-choice-track-height"
|
|
19332
19510
|
},
|
|
@@ -19339,6 +19517,12 @@
|
|
|
19339
19517
|
"var(--ui-border-strong)"
|
|
19340
19518
|
]
|
|
19341
19519
|
},
|
|
19520
|
+
{
|
|
19521
|
+
"name": "--ui-control-border-hover",
|
|
19522
|
+
"fallbacks": [
|
|
19523
|
+
"var(--ui-border-strong)"
|
|
19524
|
+
]
|
|
19525
|
+
},
|
|
19342
19526
|
{
|
|
19343
19527
|
"name": "--ui-control-inset"
|
|
19344
19528
|
},
|
|
@@ -19402,6 +19586,9 @@
|
|
|
19402
19586
|
{
|
|
19403
19587
|
"name": "--ui-motion-ease"
|
|
19404
19588
|
},
|
|
19589
|
+
{
|
|
19590
|
+
"name": "--ui-neutral-wash-hover"
|
|
19591
|
+
},
|
|
19405
19592
|
{
|
|
19406
19593
|
"name": "--ui-radius-round"
|
|
19407
19594
|
},
|
|
@@ -19420,7 +19607,8 @@
|
|
|
19420
19607
|
{
|
|
19421
19608
|
"name": "--ui-surface-highlight",
|
|
19422
19609
|
"fallbacks": [
|
|
19423
|
-
"none"
|
|
19610
|
+
"none",
|
|
19611
|
+
"linear-gradient(transparent, transparent)"
|
|
19424
19612
|
]
|
|
19425
19613
|
},
|
|
19426
19614
|
{
|
|
@@ -77,9 +77,9 @@ export function customizerResource(site, input = defaultRecipe()) {
|
|
|
77
77
|
const materialSurfaces = `<ui-grid columns="2" min="sm"><ui-card variant="elevated" data-material-standard><ui-stack gap="s"><ui-text weight="medium" size="md">Everyday surface</ui-text><ui-text variant="caption">A restrained lift for ordinary content.</ui-text><ui-button variant="outline" tone="neutral">Read memo</ui-button></ui-stack></ui-card><ui-card variant="elevated" treatment="expressive" data-material-expressive><ui-stack gap="s"><ui-text weight="medium" size="md">Expressive surface</ui-text><ui-text variant="caption">Finish, edge light, glow and the decorative rim.</ui-text><ui-button variant="solid" tone="accent">Join briefing</ui-button></ui-stack></ui-card></ui-grid><ui-cluster><ui-button id="material-popover-trigger" variant="outline" tone="accent">Open popover</ui-button><ui-popover for="material-popover-trigger"><ui-stack gap="s"><ui-text size="md">Floating material</ui-text><ui-text variant="caption">Adjust glass, separation and translucency with this open.</ui-text></ui-stack></ui-popover><ui-button id="material-dialog-trigger" variant="outline" tone="neutral">Open dialog</ui-button><ui-dialog id="material-preview-dialog" for="material-dialog-trigger" label="Surface and light"><ui-text size="md">Compare the backdrop, content plane and frame as the material changes.</ui-text><ui-button slot="actions" variant="solid" commandfor="material-preview-dialog" command="close">Done</ui-button></ui-dialog></ui-cluster>`;
|
|
78
78
|
const materialSample = `<ui-card treatment="expressive"><ui-stack gap="m"><ui-text variant="heading" as="h3">Fellowship briefing</ui-text><ui-text>Content stays readable while the rim reveals the scene.</ui-text><ui-input label="Office search" placeholder="Search the Fellowship office"></ui-input><ui-action-bar><ui-button slot="secondary" preset="standard">Keep draft</ui-button><ui-button slot="primary" preset="primary">Send briefing</ui-button></ui-action-bar></ui-stack></ui-card>`;
|
|
79
79
|
const lightEditor = `<ui-light-editor data-light-editor x="${recipe.values['light-x']}" y="${recipe.values['light-y']}" label="Theme light position"><ui-stack gap="s"><ui-text variant="heading">Move the light</ui-text><ui-button preset="primary">Material response</ui-button></ui-stack></ui-light-editor>`;
|
|
80
|
-
const materialView = editor('material', `<ui-stack>${materialSample}${materialSurfaces}</ui-stack>`, `<div class="settings-section"
|
|
80
|
+
const materialView = editor('material', `<ui-stack>${materialSample}${materialSurfaces}</ui-stack>`, `<div class="settings-section">${renderPreset('material', 'refinement')}</div>${fieldsFor(['finish','translucency','glassiness'])}<div class="settings-section"><ui-cluster gap="xs"><ui-text weight="medium">Lighting</ui-text><ui-icon-button id="help-lighting" size="sm" label="About lighting"><ui-icon name="help"></ui-icon></ui-icon-button><ui-tooltip for="help-lighting" trigger="click"><span data-material-dependencies></span></ui-tooltip></ui-cluster></div><ui-stack gap="s" data-glass-hint hidden><ui-text variant="caption">No transmission to blur.</ui-text><ui-button size="sm" data-action="use-glass">Use frosted glass</ui-button></ui-stack><div class="settings-section">${lightEditor}<div class="settings-grid">${fieldsFor(['light-color','light-spread','light-strength','edge-light','glow','outer-depth','inner-depth','surface-separation'])}</div></div><div class="settings-section"><ui-disclosure summary="Try floating surfaces"><ui-stack>${documentationCard('ui-card','/04-expressive-surface')}${documentationCard('ui-tooltip')}${documentationCard('ui-popover')}${documentationCard('ui-dialog')}</ui-stack></ui-disclosure></div>`);
|
|
81
81
|
const statusControls = ['success','danger','warning','info'].map(role => fieldsFor([role + '-source'])).join('');
|
|
82
|
-
const paletteView = refinement('palette', `<div class="refinement-layout"><div class="controls-panel"><ui-card padding="sm"><ui-stack gap="s"
|
|
82
|
+
const paletteView = refinement('palette', `<div class="refinement-layout"><div class="controls-panel"><ui-card padding="sm"><ui-stack gap="s">${renderPreset('palette', 'refinement')}<ui-cluster gap="xs"><ui-text weight="medium">Base colors</ui-text>${help('base-colors','base colors',['action','canvas','surface','text'].map(id => { const f=themeFields.find(field=>field.id===id); return f.label+': '+f.description; }).join(' '),true)}</ui-cluster><div class="color-row" data-base-colors>${fieldsFor(['action','canvas','surface','text'])}</div><ui-cluster gap="xs"><ui-text weight="medium">Supporting accents</ui-text>${help('supporting-colors','supporting accents','Optional second and third accents. Choose None inside a picker to leave it unset. Components use these only when that accent is chosen.',true)}</ui-cluster><div class="color-row" data-supporting-colors>${fieldsFor(['secondary-action','tertiary-action'])}</div><ui-text weight="medium">Use colors for</ui-text><div class="settings-grid">${fieldsFor(['selection-accent','focus-accent','link-accent'])}</div><ui-text weight="medium">Neutrals & borders</ui-text><div class="settings-grid">${fieldsFor(['neutral-source','neutral-strength','neutral-border-contrast'])}</div><ui-text weight="medium">Status colors</ui-text>${renderPreset('status', 'refinement')}<div class="settings-grid">${statusControls}${fieldsFor(['status-chroma'])}</div><ui-disclosure summary="Color character"><div class="settings-grid">${fieldsFor(['warmth','color-intensity'])}</div>${paletteRelationships}</ui-disclosure></ui-stack></ui-card></div><div class="palette-preview"><ui-stack>${paletteDetails}</ui-stack></div></div>`);
|
|
83
83
|
const options = site.catalog.groups.map(group => `<optgroup label="${escape(group.label)}">${examples.filter(example => example.category === group.id).map(example => `<option value="${escape(example.id)}" data-description="${escape(example.category + ' · ' + example.tag)}" data-example="${escape(JSON.stringify(example))}" data-search="${escape(`${example.title} ${example.tag} ${example.description} ${example.exampleTitle}`.toLocaleLowerCase())}">${escape(example.title)} · ${escape(example.exampleTitle)}</option>`).join('')}</optgroup>`).join('');
|
|
84
84
|
const links = ['ui-menu','ui-menu-item','ui-tooltip','ui-icon-button','ui-action-bar','ui-stack','ui-grid','ui-cluster','ui-form-field','ui-input','ui-select','ui-color-picker','ui-button','ui-disclosure','ui-textarea','ui-number-input','ui-slider','ui-curve-editor','ui-card','ui-text','ui-light-editor','ui-combobox','ui-checkbox','ui-badge','ui-icon','ui-callout','ui-popover','ui-dialog','ui-list','ui-list-item'].map(tag => `<link rel="component" href="@threadlabs/looma/components/${tag}/${tag}.html">`).join('\n');
|
|
85
85
|
return `${links}\n${exampleResources(site.catalog.components.flatMap(component => component.examples), site.catalog)}\n<link rel="component" href="./card.html">\n<link rel="component" href="./preview-choice.html">\n<template component="looma-customizer" module="./customizer.js"><defs>
|
|
@@ -135,7 +135,7 @@ export function customizerResource(site, input = defaultRecipe()) {
|
|
|
135
135
|
.examples { min-inline-size: 0; }
|
|
136
136
|
.refinement-layout { display: grid !important; grid-template-columns: minmax(0, 1.15fr) minmax(20rem, 0.85fr); gap: var(--ui-space-6) !important; align-items: start !important; }
|
|
137
137
|
[data-refinement-view] { scroll-margin-block-start: calc(var(--_editor-chrome-height, 4.25rem) + var(--_customizer-summary-height, 8rem) + var(--ui-space-2)); }
|
|
138
|
-
.palette-preview, .editor-preview { position: sticky; inset-block-start: calc(var(--_editor-chrome-height, 4.25rem) + var(--_customizer-summary-height, 8rem) + var(--ui-space-2)); max-block-size: calc(100dvh - var(--_editor-chrome-height, 4.25rem) - var(--ui-space-4)); overflow: auto;
|
|
138
|
+
.palette-preview, .editor-preview { position: sticky; inset-block-start: calc(var(--_editor-chrome-height, 4.25rem) + var(--_customizer-summary-height, 8rem) + var(--ui-space-2)); max-block-size: calc(100dvh - var(--_editor-chrome-height, 4.25rem) - var(--ui-space-4)); overflow: auto; }
|
|
139
139
|
.spacing-samples { display: flex !important; align-items: center !important; gap: 0 !important; padding-block: var(--ui-space-3) !important; }
|
|
140
140
|
.spacing-samples > span { display: block !important; block-size: var(--ui-space-1); inline-size: var(--ui-space-1); border-radius: 50%; background: var(--ui-accent); }
|
|
141
141
|
.spacing-samples > span:nth-child(2) { margin-inline-start: var(--ui-space-2) !important; }
|