@threadlabs/looma 0.6.0-rc.2 → 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.
Files changed (37) hide show
  1. package/components/ui-button/ui-button.html +3 -1
  2. package/components/ui-cluster/ui-cluster.html +1 -1
  3. package/components/ui-editor-insert-table-grid/ui-editor-insert-table-grid.html +3 -3
  4. package/components/ui-editor-table-context-menu/ui-editor-table-context-menu.html +2 -2
  5. package/components/ui-editor-table-toolbar/ui-editor-table-toolbar.html +2 -2
  6. package/components/ui-editor-toolbar/ui-editor-toolbar.html +5 -3
  7. package/components/ui-stack/ui-stack.html +1 -1
  8. package/components/ui-toast-region/ui-toast-region.html +2 -2
  9. package/dist/index.js +1 -1
  10. package/package.json +1 -1
  11. package/styles/ui-cluster.css +1 -1
  12. package/styles/ui-editor-insert-table-grid.css +2 -2
  13. package/styles/ui-editor-table-context-menu.css +1 -1
  14. package/styles/ui-editor-table-toolbar.css +1 -1
  15. package/styles/ui-editor-toolbar.css +5 -3
  16. package/styles/ui-stack.css +1 -1
  17. package/styles/ui-toast-region.css +2 -2
  18. package/tokens.css +4 -0
  19. package/vanilla/UiEditorInsertTableGrid.js +1 -1
  20. package/vanilla/UiEditorTableContextMenu.js +1 -1
  21. package/vanilla/UiEditorTableToolbar.js +1 -1
  22. package/vue/UiCluster.vue +1 -1
  23. package/vue/UiEditorInsertTableGrid.vue +3 -3
  24. package/vue/UiEditorTableContextMenu.vue +2 -2
  25. package/vue/UiEditorTableToolbar.vue +2 -2
  26. package/vue/UiEditorToolbar.vue +5 -3
  27. package/vue/UiStack.vue +1 -1
  28. package/vue/UiToastRegion.vue +2 -2
  29. package/vue/chunks/UiCluster.js +1 -1
  30. package/vue/chunks/UiEditorInsertTableGrid.js +3 -3
  31. package/vue/chunks/UiEditorTableContextMenu.js +2 -2
  32. package/vue/chunks/UiEditorTableToolbar.js +2 -2
  33. package/vue/chunks/UiEditorToolbar.js +1 -1
  34. package/vue/chunks/UiStack.js +1 -1
  35. package/vue/chunks/UiToastRegion.js +1 -1
  36. package/vue/components.css +131 -122
  37. package/vue/editor/index.js +2 -1
@@ -4,7 +4,9 @@
4
4
  >Visual emphasis and semantic intent. link is an inline text action that reads as a link.</prop>
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
- >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.</prop>
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, 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>
8
10
  <prop name="disabled" type="boolean" default="false">disabled token.</prop>
9
11
  <prop name="align" type="center | start" default="center"
10
12
  >Content alignment. start lays the content out like a list option: from the start edge, with start-aligned text.</prop>
@@ -10,7 +10,7 @@
10
10
  display: flex;
11
11
  flex-wrap: wrap;
12
12
  align-items: center;
13
- gap: var(--ui-layout-gap, var(--_layout-gap));
13
+ gap: var(--ui-cluster-gap, var(--_layout-gap));
14
14
  min-inline-size: 0;
15
15
  max-inline-size: 100%;
16
16
  margin: 0;
@@ -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:--ui-editor-table-grid-rows="rows" style:--ui-editor-table-grid-cols="cols">
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(--ui-editor-table-grid-cols, 8), 1.25rem);
51
- grid-template-rows: repeat(var(--ui-editor-table-grid-rows, 8), 1.25rem);
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:--ui-editor-table-context-swatch="swatch.color"></span>
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(--ui-editor-table-context-swatch, #fff);
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:--ui-editor-table-toolbar-swatch="swatch.color"></span>
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(--ui-editor-table-toolbar-swatch);
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
- overflow-x: auto;
18
- scrollbar-width: none;
19
- white-space: nowrap;
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;
@@ -11,7 +11,7 @@
11
11
  display: flex;
12
12
  flex-direction: column;
13
13
  align-items: stretch;
14
- gap: var(--ui-layout-gap, var(--_layout-gap));
14
+ gap: var(--ui-stack-gap, var(--_layout-gap));
15
15
  min-inline-size: 0;
16
16
  max-inline-size: 100%;
17
17
  margin: 0;
@@ -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