@threadlabs/looma 0.53.10 → 0.53.12
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 +1 -0
- package/components/ui-checkbox/ui-checkbox.html +1 -0
- package/components/ui-color-picker/ui-color-picker.html +1 -1
- package/components/ui-combobox/ui-combobox.html +5 -2
- package/components/ui-disclosure/ui-disclosure.html +3 -2
- package/components/ui-form-field/ui-form-field.html +1 -1
- package/components/ui-input/ui-input.html +1 -0
- package/components/ui-list-item/ui-list-item.html +3 -3
- package/components/ui-listbox/ui-listbox.html +1 -0
- package/components/ui-menu/ui-menu.html +1 -1
- package/components/ui-menu-item/ui-menu-item.html +1 -1
- package/components/ui-nav-item/ui-nav-item.html +2 -2
- package/components/ui-radio/ui-radio.html +1 -0
- package/components/ui-radio-group/ui-radio-group.html +1 -0
- package/components/ui-segmented-control/ui-segmented-control.html +3 -2
- package/components/ui-select/ui-select.html +4 -1
- package/components/ui-switch/ui-switch.html +1 -0
- package/components/ui-textarea/ui-textarea.html +5 -2
- package/dist/index.js +1 -1
- package/docs/catalog.json +32 -29
- package/editor/chunks/extensions.js +2 -2
- package/editor/components.css +7 -3
- package/editor/extensions/preset.d.ts +2 -0
- package/editor/heading-link.d.ts +9 -0
- package/editor/index.js +121 -0
- package/editor/node-views/heading.d.ts +3 -0
- package/package.json +1 -1
- package/styles/ui-button.css +1 -0
- package/styles/ui-checkbox.css +1 -0
- package/styles/ui-color-picker.css +2 -2
- package/styles/ui-combobox.css +8 -4
- package/styles/ui-disclosure.css +2 -1
- package/styles/ui-form-field.css +1 -1
- package/styles/ui-input.css +1 -0
- package/styles/ui-list-item.css +3 -3
- package/styles/ui-listbox.css +2 -0
- package/styles/ui-menu-item.css +1 -1
- package/styles/ui-nav-item.css +1 -1
- package/styles/ui-radio-group.css +1 -0
- package/styles/ui-radio.css +1 -0
- package/styles/ui-segmented-control.css +3 -2
- package/styles/ui-select.css +4 -1
- package/styles/ui-switch.css +1 -0
- package/styles/ui-textarea.css +5 -2
- package/theme-system.css +3 -2
- package/tokens.css +1 -1
|
@@ -226,6 +226,7 @@
|
|
|
226
226
|
background-color: var(--ui-button-surface, oklch(from var(--_tone) l c h / calc(5% * var(--ui-tonal-opacity, 1))));
|
|
227
227
|
color: var(--ui-button-text, var(--_tone-text));
|
|
228
228
|
font: inherit;
|
|
229
|
+
font-size: var(--ui-font-size-sm);
|
|
229
230
|
font-weight: var(--ui-font-medium);
|
|
230
231
|
text-decoration: none;
|
|
231
232
|
/* Unset, a button wraps as its container does. */
|
|
@@ -604,10 +604,11 @@
|
|
|
604
604
|
min-inline-size: 0;
|
|
605
605
|
color: var(--ui-text-primary);
|
|
606
606
|
font: inherit;
|
|
607
|
+
font-size: var(--ui-font-size-sm);
|
|
607
608
|
}
|
|
608
609
|
label {
|
|
609
610
|
color: var(--_ui-combobox-label-text, var(--ui-text-primary));
|
|
610
|
-
font-size: var(--_ui-combobox-label-font-size, var(--ui-field-label-font-size, var(--ui-font-size-
|
|
611
|
+
font-size: var(--_ui-combobox-label-font-size, var(--ui-field-label-font-size, var(--ui-font-size-sm)));
|
|
611
612
|
font-weight: 500;
|
|
612
613
|
}
|
|
613
614
|
/* The field and anything that annotates it sit on one row; the help button is beside the box,
|
|
@@ -839,7 +840,9 @@
|
|
|
839
840
|
white-space: nowrap;
|
|
840
841
|
}
|
|
841
842
|
@media (pointer: coarse) {
|
|
842
|
-
:host
|
|
843
|
+
:host input,
|
|
844
|
+
:host([size="sm"]) input,
|
|
845
|
+
:host([size="lg"]) input {
|
|
843
846
|
font-size: var(--ui-font-size-md);
|
|
844
847
|
}
|
|
845
848
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<template component="ui-disclosure" module="./ui-disclosure.js">
|
|
2
2
|
<defs>
|
|
3
3
|
<prop name="density" type="keyword" values="comfortable, compact" default="comfortable"
|
|
4
|
-
>Compact
|
|
4
|
+
>Compact reduces row spacing while keeping the shared UI text size.</prop>
|
|
5
5
|
<prop name="variant" type="keyword" values="plain, navigation" default="plain"
|
|
6
6
|
>Navigation shares icon columns, spacing, type, hover, and corners with Nav Item, while keeping expanded sections neutral: opening content is not route
|
|
7
7
|
selection. Plain retains the standard disclosure treatment.</prop>
|
|
@@ -94,6 +94,7 @@
|
|
|
94
94
|
background: transparent;
|
|
95
95
|
color: inherit;
|
|
96
96
|
font: inherit;
|
|
97
|
+
font-size: var(--ui-font-size-sm);
|
|
97
98
|
font-weight: var(--ui-font-semibold);
|
|
98
99
|
text-align: start;
|
|
99
100
|
cursor: pointer;
|
|
@@ -200,7 +201,7 @@
|
|
|
200
201
|
min-block-size: var(--ui-nav-min-block-size);
|
|
201
202
|
padding-block: var(--ui-nav-padding-block) !important;
|
|
202
203
|
border-radius: var(--ui-selection-radius);
|
|
203
|
-
font-size: var(--ui-font-size-
|
|
204
|
+
font-size: var(--ui-font-size-sm);
|
|
204
205
|
font-weight: var(--ui-font-normal);
|
|
205
206
|
color: var(--ui-text-secondary);
|
|
206
207
|
}
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
|
|
47
47
|
.label {
|
|
48
48
|
color: var(--_ui-form-field-label-text, var(--ui-text-secondary));
|
|
49
|
-
font-size: var(--_ui-form-field-label-font-size, var(--ui-field-label-font-size, var(--ui-font-size-
|
|
49
|
+
font-size: var(--_ui-form-field-label-font-size, var(--ui-field-label-font-size, var(--ui-font-size-sm)));
|
|
50
50
|
}
|
|
51
51
|
|
|
52
52
|
/* A label action, such as a small help button, sits after the label text in a box one line
|
|
@@ -77,6 +77,7 @@
|
|
|
77
77
|
background-image: var(--_ui-default-input-highlight, var(--ui-surface-highlight, none));
|
|
78
78
|
color: var(--ui-text-primary);
|
|
79
79
|
font: inherit;
|
|
80
|
+
font-size: var(--ui-font-size-sm);
|
|
80
81
|
line-height: var(--ui-line-height-tight);
|
|
81
82
|
box-shadow: var(--ui-input-shadow, var(--_ui-default-input-shadow, var(--ui-control-inset)));
|
|
82
83
|
transition:
|
|
@@ -141,9 +141,9 @@
|
|
|
141
141
|
}
|
|
142
142
|
|
|
143
143
|
.title {
|
|
144
|
-
font-size: var(--ui-font-size-
|
|
144
|
+
font-size: var(--ui-font-size-sm);
|
|
145
145
|
font-weight: var(--_ui-list-item-title-weight, var(--ui-font-medium));
|
|
146
|
-
line-height: var(--ui-line-height
|
|
146
|
+
line-height: var(--ui-line-height);
|
|
147
147
|
}
|
|
148
148
|
|
|
149
149
|
/* Keep identity and disclosure marks beside the first line, even with a long description. */
|
|
@@ -153,7 +153,7 @@
|
|
|
153
153
|
|
|
154
154
|
:host([align="title"]) .leading,
|
|
155
155
|
:host([align="title"]) .trailing {
|
|
156
|
-
min-block-size: calc(var(--ui-font-size-
|
|
156
|
+
min-block-size: calc(var(--ui-font-size-sm) * var(--ui-line-height));
|
|
157
157
|
}
|
|
158
158
|
|
|
159
159
|
.description {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<template component="ui-menu" module="./ui-menu.js">
|
|
2
2
|
<defs>
|
|
3
3
|
<prop name="density" type="keyword" values="comfortable, compact" default="comfortable"
|
|
4
|
-
>Compact
|
|
4
|
+
>Compact reduces row spacing while keeping the shared UI text size.</prop>
|
|
5
5
|
<prop name="icons" type="boolean" default="false"
|
|
6
6
|
>Reserves a fixed icon column in every item, including items without an icon. Supply item icons through their icon slot.</prop>
|
|
7
7
|
<prop name="size" type="keyword" values="sm, md" default="md"
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
text-align: left;
|
|
61
61
|
border-radius: var(--ui-menu-item-radius, var(--_ui-default-menu-item-radius, var(--ui-selection-radius)));
|
|
62
62
|
color: var(--ui-text-primary);
|
|
63
|
-
font-size: var(--ui-menu-item-font-size, var(--_ui-default-menu-item-font-size, var(--ui-font-size-
|
|
63
|
+
font-size: var(--ui-menu-item-font-size, var(--_ui-default-menu-item-font-size, var(--ui-font-size-sm)));
|
|
64
64
|
font-weight: var(--ui-font-medium);
|
|
65
65
|
text-decoration: none;
|
|
66
66
|
cursor: pointer;
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
>surface marks the current row with a quiet filled surface and shared corners. line uses square corners and a continuous logical start edge. Both retain the
|
|
5
5
|
resting label weight and expose aria-current.</prop>
|
|
6
6
|
<prop name="density" type="keyword" values="comfortable, compact" default="comfortable"
|
|
7
|
-
>Compact
|
|
7
|
+
>Compact reduces row spacing to sit alongside a compact tree; both densities keep the shared UI text size.</prop>
|
|
8
8
|
<prop name="current" type="keyword" values="true, false, page, step, location" default="false"
|
|
9
9
|
>Marks the item as where you are: it takes the selected surface, the selected text, and the chosen surface or line treatment, and states aria-current, which
|
|
10
10
|
assistive technology announces. "true" means the current page (aria-current="page"); "step" marks the current step of a process, and "location" the
|
|
@@ -162,7 +162,7 @@
|
|
|
162
162
|
}
|
|
163
163
|
|
|
164
164
|
.label {
|
|
165
|
-
font-size: var(--ui-font-size-
|
|
165
|
+
font-size: var(--ui-font-size-sm);
|
|
166
166
|
line-height: var(--ui-line-height-tight);
|
|
167
167
|
}
|
|
168
168
|
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
:host {
|
|
43
43
|
--_segmented-size: var(--ui-control-size-md);
|
|
44
44
|
--_segmented-inset: var(--ui-space-3);
|
|
45
|
-
--_segmented-font-size: var(--ui-font-size-
|
|
45
|
+
--_segmented-font-size: var(--ui-font-size-sm);
|
|
46
46
|
--_segmented-padding: var(--ui-space-1) !important;
|
|
47
47
|
--_segmented-radius: var(--ui-field-radius, var(--ui-radius-md));
|
|
48
48
|
display: inline-grid !important;
|
|
@@ -55,6 +55,7 @@
|
|
|
55
55
|
border: 0;
|
|
56
56
|
color: var(--ui-text-primary);
|
|
57
57
|
font: inherit;
|
|
58
|
+
font-size: var(--ui-field-label-font-size, var(--ui-font-size-sm));
|
|
58
59
|
}
|
|
59
60
|
legend {
|
|
60
61
|
float: inline-start;
|
|
@@ -115,7 +116,7 @@
|
|
|
115
116
|
:host([invalid]) .segments { border-color: var(--ui-field-danger, var(--ui-danger-solid)); }
|
|
116
117
|
:host([invalid]) legend { color: var(--ui-field-danger, var(--ui-danger-solid)); }
|
|
117
118
|
:host([size="sm"]) { --_segmented-size: var(--ui-control-size-sm); --_segmented-inset: var(--ui-space-2); --_segmented-font-size: var(--ui-font-size-sm); }
|
|
118
|
-
:host([size="lg"]) { --_segmented-size: var(--ui-control-size-lg); --_segmented-inset: var(--ui-space-4); --_segmented-font-size: var(--ui-font-size-
|
|
119
|
+
:host([size="lg"]) { --_segmented-size: var(--ui-control-size-lg); --_segmented-inset: var(--ui-space-4); --_segmented-font-size: var(--ui-font-size-md); }
|
|
119
120
|
:host[hidden] { display: none !important; }
|
|
120
121
|
@media (forced-colors: active) {
|
|
121
122
|
.segments { border-color: ButtonText; }
|
|
@@ -35,6 +35,7 @@
|
|
|
35
35
|
color: var(--ui-text-primary);
|
|
36
36
|
color-scheme: inherit;
|
|
37
37
|
font: inherit;
|
|
38
|
+
font-size: var(--ui-font-size-sm);
|
|
38
39
|
line-height: var(--ui-line-height-tight);
|
|
39
40
|
box-shadow: var(--ui-select-shadow, var(--ui-shadow-sm));
|
|
40
41
|
transition:
|
|
@@ -134,7 +135,9 @@
|
|
|
134
135
|
|
|
135
136
|
/* Touch may use body-size text in a small native field to avoid focus zoom; this does not impose a larger visible control height. */
|
|
136
137
|
@media (pointer: coarse) {
|
|
137
|
-
:host
|
|
138
|
+
:host,
|
|
139
|
+
:host([size="sm"]),
|
|
140
|
+
:host([size="lg"]) {
|
|
138
141
|
font-size: var(--ui-font-size-md);
|
|
139
142
|
}
|
|
140
143
|
}
|
|
@@ -47,6 +47,7 @@
|
|
|
47
47
|
background-image: var(--_ui-default-textarea-highlight, var(--ui-surface-highlight, none));
|
|
48
48
|
color: var(--ui-text-primary);
|
|
49
49
|
font: inherit;
|
|
50
|
+
font-size: var(--ui-font-size-sm);
|
|
50
51
|
line-height: var(--ui-line-height-md);
|
|
51
52
|
box-shadow: var(--ui-textarea-shadow, var(--_ui-default-textarea-shadow, var(--ui-control-inset)));
|
|
52
53
|
transition:
|
|
@@ -131,8 +132,10 @@
|
|
|
131
132
|
|
|
132
133
|
/* Below 16px, iOS zooms the page into the focused field, so touch keeps body-size text. */
|
|
133
134
|
@media (pointer: coarse) {
|
|
134
|
-
:host
|
|
135
|
-
|
|
135
|
+
:host,
|
|
136
|
+
:host([size="sm"]),
|
|
137
|
+
:host([size="lg"]) {
|
|
138
|
+
font-size: var(--ui-font-size-md);
|
|
136
139
|
}
|
|
137
140
|
}
|
|
138
141
|
|