@threadlabs/looma 0.6.0 → 0.6.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 +2 -2
- package/components/ui-cluster/ui-cluster.html +1 -1
- package/components/ui-editor-insert-table-grid/ui-editor-insert-table-grid.html +3 -3
- package/components/ui-editor-table-context-menu/ui-editor-table-context-menu.html +2 -2
- package/components/ui-editor-table-toolbar/ui-editor-table-toolbar.html +2 -2
- package/components/ui-editor-toolbar/ui-editor-toolbar.html +5 -3
- package/components/ui-stack/ui-stack.html +1 -1
- package/components/ui-toast-region/ui-toast-region.html +2 -2
- package/dist/index.js +1 -1
- package/package.json +1 -1
- package/styles/ui-cluster.css +1 -1
- package/styles/ui-editor-insert-table-grid.css +2 -2
- package/styles/ui-editor-table-context-menu.css +1 -1
- package/styles/ui-editor-table-toolbar.css +1 -1
- package/styles/ui-editor-toolbar.css +5 -3
- package/styles/ui-stack.css +1 -1
- package/styles/ui-toast-region.css +2 -2
- package/tokens.css +4 -0
- package/vanilla/UiEditorInsertTableGrid.js +1 -1
- package/vanilla/UiEditorTableContextMenu.js +1 -1
- package/vanilla/UiEditorTableToolbar.js +1 -1
- package/vue/UiCluster.vue +1 -1
- package/vue/UiEditorInsertTableGrid.vue +3 -3
- package/vue/UiEditorTableContextMenu.vue +2 -2
- package/vue/UiEditorTableToolbar.vue +2 -2
- package/vue/UiEditorToolbar.vue +5 -3
- package/vue/UiStack.vue +1 -1
- package/vue/UiToastRegion.vue +2 -2
- package/vue/chunks/UiCluster.js +1 -1
- package/vue/chunks/UiEditorInsertTableGrid.js +3 -3
- package/vue/chunks/UiEditorTableContextMenu.js +2 -2
- package/vue/chunks/UiEditorTableToolbar.js +2 -2
- package/vue/chunks/UiEditorToolbar.js +1 -1
- package/vue/chunks/UiStack.js +1 -1
- package/vue/chunks/UiToastRegion.js +1 -1
- package/vue/components.css +131 -122
- package/vue/editor/index.js +2 -1
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
<prop name="size" type="sm | md | lg" default="md">Control size.</prop>
|
|
6
6
|
<prop name="tone" type="neutral | accent" default="neutral"
|
|
7
7
|
>Intent of an outline, ghost, or link button. accent tints it with the accent colour, for a secondary action that still reads as the primary path. For a
|
|
8
|
-
product whose buttons are accent-tinted by default,
|
|
9
|
-
annotating every call site.</prop>
|
|
8
|
+
product whose buttons are accent-tinted by default, point --ui-button-surface, --ui-button-border, and --ui-button-text at the accent values in your theme
|
|
9
|
+
rather than annotating every call site, and keep them as var() references so they follow a later change of accent.</prop>
|
|
10
10
|
<prop name="disabled" type="boolean" default="false">disabled token.</prop>
|
|
11
11
|
<prop name="align" type="center | start" default="center"
|
|
12
12
|
>Content alignment. start lays the content out like a list option: from the start edge, with start-aligned text.</prop>
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
</defs>
|
|
14
14
|
<div :hidden="not open">
|
|
15
15
|
<p class="hint" $value="hint"></p>
|
|
16
|
-
<div class="grid" role="group" aria-label="Table dimensions" style:--
|
|
16
|
+
<div class="grid" role="group" aria-label="Table dimensions" style:--_rows="rows" style:--_cols="cols">
|
|
17
17
|
<button
|
|
18
18
|
$each="cell of cells"
|
|
19
19
|
$key="cell.key"
|
|
@@ -47,8 +47,8 @@
|
|
|
47
47
|
|
|
48
48
|
.grid {
|
|
49
49
|
display: grid;
|
|
50
|
-
grid-template-columns: repeat(var(--
|
|
51
|
-
grid-template-rows: repeat(var(--
|
|
50
|
+
grid-template-columns: repeat(var(--_cols, 8), 1.25rem);
|
|
51
|
+
grid-template-rows: repeat(var(--_rows, 8), 1.25rem);
|
|
52
52
|
gap: 2px;
|
|
53
53
|
margin-bottom: var(--ui-space-2);
|
|
54
54
|
}
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
:aria-checked="swatch.selected"
|
|
33
33
|
:data-action="swatch.action"
|
|
34
34
|
>
|
|
35
|
-
<span class="swatch" class:default="not swatch.color" style:--
|
|
35
|
+
<span class="swatch" class:default="not swatch.color" style:--_swatch="swatch.color"></span>
|
|
36
36
|
<span class="swatch-label" $value="swatch.label"></span>
|
|
37
37
|
</button>
|
|
38
38
|
</div>
|
|
@@ -123,7 +123,7 @@
|
|
|
123
123
|
height: 1rem;
|
|
124
124
|
border-radius: 999px;
|
|
125
125
|
border: 1px solid var(--ui-border);
|
|
126
|
-
background: var(--
|
|
126
|
+
background: var(--_swatch, #fff);
|
|
127
127
|
box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.35);
|
|
128
128
|
flex-shrink: 0;
|
|
129
129
|
}
|
|
@@ -67,7 +67,7 @@
|
|
|
67
67
|
:aria-checked="swatch.selected"
|
|
68
68
|
:data-action="swatch.action"
|
|
69
69
|
>
|
|
70
|
-
<span class="swatch" class:default="not swatch.color" style:--
|
|
70
|
+
<span class="swatch" class:default="not swatch.color" style:--_swatch="swatch.color"></span>
|
|
71
71
|
<span $value="swatch.label"></span>
|
|
72
72
|
</button>
|
|
73
73
|
</div>
|
|
@@ -255,7 +255,7 @@
|
|
|
255
255
|
flex: 0 0 14px;
|
|
256
256
|
border: 1px solid color-mix(in srgb, var(--ui-border) 80%, #000);
|
|
257
257
|
border-radius: 3px;
|
|
258
|
-
background: var(--
|
|
258
|
+
background: var(--_swatch);
|
|
259
259
|
}
|
|
260
260
|
|
|
261
261
|
.swatch.default {
|
|
@@ -14,9 +14,10 @@
|
|
|
14
14
|
gap: var(--ui-editor-toolbar-gap, 2px);
|
|
15
15
|
padding: var(--ui-editor-toolbar-padding-block, 6px) var(--ui-editor-toolbar-padding-inline, 12px);
|
|
16
16
|
min-height: var(--ui-editor-toolbar-min-height, 48px);
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
17
|
+
/* More controls than the column is wide is normal at a readable measure, so the row wraps.
|
|
18
|
+
Scrolling hid the tail behind an invisible scrollbar. */
|
|
19
|
+
flex-wrap: wrap;
|
|
20
|
+
row-gap: var(--ui-editor-toolbar-row-gap, var(--ui-editor-toolbar-gap, 2px));
|
|
20
21
|
background: var(--ui-editor-toolbar-surface, var(--ui-surface));
|
|
21
22
|
border-bottom: 1px solid var(--ui-editor-toolbar-border, var(--ui-border));
|
|
22
23
|
}
|
|
@@ -38,6 +39,7 @@
|
|
|
38
39
|
}
|
|
39
40
|
|
|
40
41
|
:host-state([floating]) {
|
|
42
|
+
flex-wrap: nowrap;
|
|
41
43
|
position: static;
|
|
42
44
|
top: auto;
|
|
43
45
|
width: max-content;
|
|
@@ -72,12 +72,12 @@
|
|
|
72
72
|
background: var(--ui-surface-elevated);
|
|
73
73
|
color: var(--ui-text-primary);
|
|
74
74
|
box-shadow: var(--ui-elevation-overlay, var(--ui-shadow-lg));
|
|
75
|
-
animation: ui-toast-enter var(--ui-toast-enter-duration, 0.32s) var(--ui-motion-ease-out, cubic-bezier(0.16, 1, 0.3, 1)) both;
|
|
75
|
+
animation: ui-toast-enter var(--ui-toast-region-enter-duration, 0.32s) var(--ui-motion-ease-out, cubic-bezier(0.16, 1, 0.3, 1)) both;
|
|
76
76
|
}
|
|
77
77
|
|
|
78
78
|
/* Leaving slides on down and fades; the controller removes the toast when this ends. */
|
|
79
79
|
.toast.closing {
|
|
80
|
-
animation: ui-toast-exit var(--ui-toast-exit-duration, 0.22s) var(--ui-motion-ease) both;
|
|
80
|
+
animation: ui-toast-exit var(--ui-toast-region-exit-duration, 0.22s) var(--ui-motion-ease) both;
|
|
81
81
|
pointer-events: none;
|
|
82
82
|
}
|
|
83
83
|
|