@threadlabs/looma 0.5.2 → 0.6.0-rc.2

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 (177) hide show
  1. package/components/shared/overlay.js +3 -0
  2. package/components/ui-button/ui-button.html +46 -26
  3. package/components/ui-callout/ui-callout.html +1 -1
  4. package/components/ui-checkbox/ui-checkbox.html +1 -1
  5. package/components/ui-cluster/ui-cluster.html +6 -6
  6. package/components/ui-combobox/ui-combobox.html +23 -23
  7. package/components/ui-container/ui-container.html +4 -4
  8. package/components/ui-context-menu/ui-context-menu.html +2 -2
  9. package/components/ui-dialog/ui-dialog.html +12 -12
  10. package/components/ui-disclosure/ui-disclosure.html +19 -4
  11. package/components/ui-editable/ui-editable.html +6 -6
  12. package/components/ui-editor-insert-table-grid/ui-editor-insert-table-grid.html +20 -20
  13. package/components/ui-editor-mention-menu/ui-editor-mention-menu.html +25 -25
  14. package/components/ui-editor-slash-menu/ui-editor-slash-menu.html +39 -39
  15. package/components/ui-editor-table-context-menu/ui-editor-table-context-menu.html +20 -20
  16. package/components/ui-editor-table-overlay/ui-editor-table-overlay.html +48 -48
  17. package/components/ui-editor-table-toolbar/ui-editor-table-toolbar.html +34 -34
  18. package/components/ui-editor-toolbar/ui-editor-toolbar.html +9 -9
  19. package/components/ui-floating-action-button/ui-floating-action-button.html +16 -22
  20. package/components/ui-grid/ui-grid.html +6 -6
  21. package/components/ui-icon-button/ui-icon-button.html +45 -40
  22. package/components/ui-input/ui-input.html +2 -2
  23. package/components/ui-menu/ui-menu.html +15 -4
  24. package/components/ui-menu-item/ui-menu-item.html +5 -5
  25. package/components/ui-popover/ui-popover.html +3 -3
  26. package/components/ui-reel/ui-reel.html +6 -6
  27. package/components/ui-search-result-row/ui-search-result-row.html +9 -9
  28. package/components/ui-search-shell/ui-search-shell.html +3 -3
  29. package/components/ui-select/ui-select.html +2 -2
  30. package/components/ui-sidebar/ui-sidebar.html +11 -11
  31. package/components/ui-stack/ui-stack.html +6 -6
  32. package/components/ui-switcher/ui-switcher.html +6 -6
  33. package/components/ui-tabs/ui-tabs.html +18 -4
  34. package/components/ui-textarea/ui-textarea.html +2 -2
  35. package/components/ui-toast-region/ui-toast-region.html +2 -2
  36. package/components/ui-tooltip/ui-tooltip.html +1 -1
  37. package/components/ui-top-bar/ui-top-bar.html +5 -5
  38. package/components/ui-tree/ui-tree.html +7 -0
  39. package/components/ui-tree-item/ui-tree-item.html +15 -7
  40. package/dist/index.js +1 -1
  41. package/package.json +1 -1
  42. package/styles/ui-button.css +47 -26
  43. package/styles/ui-callout.css +1 -1
  44. package/styles/ui-checkbox.css +1 -1
  45. package/styles/ui-cluster.css +6 -6
  46. package/styles/ui-combobox.css +23 -23
  47. package/styles/ui-container.css +4 -4
  48. package/styles/ui-context-menu.css +2 -2
  49. package/styles/ui-dialog.css +12 -12
  50. package/styles/ui-disclosure.css +22 -6
  51. package/styles/ui-editable.css +6 -6
  52. package/styles/ui-editor-insert-table-grid.css +20 -20
  53. package/styles/ui-editor-mention-menu.css +25 -25
  54. package/styles/ui-editor-slash-menu.css +39 -39
  55. package/styles/ui-editor-table-context-menu.css +20 -20
  56. package/styles/ui-editor-table-overlay.css +48 -48
  57. package/styles/ui-editor-table-toolbar.css +34 -34
  58. package/styles/ui-editor-toolbar.css +9 -9
  59. package/styles/ui-floating-action-button.css +16 -22
  60. package/styles/ui-grid.css +6 -6
  61. package/styles/ui-icon-button.css +45 -40
  62. package/styles/ui-input.css +2 -2
  63. package/styles/ui-menu-item.css +5 -5
  64. package/styles/ui-menu.css +18 -6
  65. package/styles/ui-popover.css +3 -3
  66. package/styles/ui-reel.css +6 -6
  67. package/styles/ui-search-result-row.css +9 -9
  68. package/styles/ui-search-shell.css +3 -3
  69. package/styles/ui-select.css +2 -2
  70. package/styles/ui-sidebar.css +11 -11
  71. package/styles/ui-stack.css +6 -6
  72. package/styles/ui-switcher.css +6 -6
  73. package/styles/ui-tabs.css +20 -6
  74. package/styles/ui-textarea.css +2 -2
  75. package/styles/ui-toast-region.css +2 -2
  76. package/styles/ui-tooltip.css +1 -1
  77. package/styles/ui-top-bar.css +5 -5
  78. package/styles/ui-tree-item.css +21 -8
  79. package/styles/ui-tree.css +7 -1
  80. package/theme-dark.css +46 -103
  81. package/theme-high-contrast.css +22 -22
  82. package/theme-light.css +17 -41
  83. package/tokens.css +154 -201
  84. package/vanilla/UiButton.d.ts +1 -0
  85. package/vanilla/UiButton.js +1 -1
  86. package/vanilla/UiDisclosure.d.ts +1 -0
  87. package/vanilla/UiDisclosure.js +1 -1
  88. package/vanilla/UiMenu.d.ts +1 -0
  89. package/vanilla/UiMenu.js +1 -1
  90. package/vanilla/UiTabs.d.ts +1 -0
  91. package/vanilla/UiTabs.js +1 -1
  92. package/vanilla/UiTree.d.ts +1 -0
  93. package/vanilla/UiTree.js +1 -1
  94. package/vue/UiButton.d.ts +2 -0
  95. package/vue/UiButton.vue +56 -41
  96. package/vue/UiCallout.vue +1 -1
  97. package/vue/UiCheckbox.vue +1 -1
  98. package/vue/UiCluster.vue +6 -6
  99. package/vue/UiCombobox.vue +23 -23
  100. package/vue/UiContainer.vue +4 -4
  101. package/vue/UiContextMenu.vue +2 -2
  102. package/vue/UiDialog.vue +12 -12
  103. package/vue/UiDisclosure.d.ts +2 -0
  104. package/vue/UiDisclosure.vue +21 -4
  105. package/vue/UiEditable.vue +6 -6
  106. package/vue/UiEditorInsertTableGrid.vue +20 -20
  107. package/vue/UiEditorMentionMenu.vue +25 -25
  108. package/vue/UiEditorSlashMenu.vue +39 -39
  109. package/vue/UiEditorTableContextMenu.vue +20 -20
  110. package/vue/UiEditorTableOverlay.vue +48 -57
  111. package/vue/UiEditorTableToolbar.vue +34 -34
  112. package/vue/UiEditorToolbar.vue +9 -9
  113. package/vue/UiFloatingActionButton.vue +17 -22
  114. package/vue/UiGrid.vue +6 -6
  115. package/vue/UiIconButton.vue +45 -55
  116. package/vue/UiInput.vue +2 -2
  117. package/vue/UiMenu.d.ts +2 -0
  118. package/vue/UiMenu.vue +17 -7
  119. package/vue/UiMenuItem.vue +6 -5
  120. package/vue/UiPopover.vue +3 -3
  121. package/vue/UiReel.vue +6 -6
  122. package/vue/UiSearchResultRow.vue +10 -13
  123. package/vue/UiSearchShell.vue +3 -3
  124. package/vue/UiSelect.vue +2 -2
  125. package/vue/UiSidebar.vue +11 -16
  126. package/vue/UiStack.vue +6 -6
  127. package/vue/UiSwitcher.vue +6 -6
  128. package/vue/UiTabs.d.ts +2 -0
  129. package/vue/UiTabs.vue +21 -4
  130. package/vue/UiTextarea.vue +2 -2
  131. package/vue/UiToastRegion.vue +2 -2
  132. package/vue/UiTooltip.vue +1 -1
  133. package/vue/UiTopBar.vue +5 -5
  134. package/vue/UiTree.d.ts +2 -0
  135. package/vue/UiTree.vue +24 -1
  136. package/vue/UiTreeItem.vue +16 -8
  137. package/vue/chunks/UiButton.js +4 -2
  138. package/vue/chunks/UiCallout.js +1 -1
  139. package/vue/chunks/UiCheckbox.js +1 -1
  140. package/vue/chunks/UiCluster.js +1 -1
  141. package/vue/chunks/UiCombobox.js +1 -1
  142. package/vue/chunks/UiContainer.js +1 -1
  143. package/vue/chunks/UiContextMenu.js +1 -1
  144. package/vue/chunks/UiDialog.js +1 -1
  145. package/vue/chunks/UiDisclosure.js +3 -2
  146. package/vue/chunks/UiEditable.js +1 -1
  147. package/vue/chunks/UiEditorInsertTableGrid.js +1 -1
  148. package/vue/chunks/UiEditorMentionMenu.js +1 -1
  149. package/vue/chunks/UiEditorSlashMenu.js +1 -1
  150. package/vue/chunks/UiEditorTableContextMenu.js +1 -1
  151. package/vue/chunks/UiEditorTableOverlay.js +1 -1
  152. package/vue/chunks/UiEditorTableToolbar.js +1 -1
  153. package/vue/chunks/UiEditorToolbar.js +1 -1
  154. package/vue/chunks/UiFloatingActionButton.js +1 -1
  155. package/vue/chunks/UiGrid.js +1 -1
  156. package/vue/chunks/UiIconButton.js +1 -1
  157. package/vue/chunks/UiInput.js +1 -1
  158. package/vue/chunks/UiMenu.js +3 -2
  159. package/vue/chunks/UiMenuItem.js +1 -1
  160. package/vue/chunks/UiPopover.js +1 -1
  161. package/vue/chunks/UiReel.js +1 -1
  162. package/vue/chunks/UiSearchResultRow.js +1 -1
  163. package/vue/chunks/UiSearchShell.js +1 -1
  164. package/vue/chunks/UiSelect.js +1 -1
  165. package/vue/chunks/UiSidebar.js +1 -1
  166. package/vue/chunks/UiStack.js +1 -1
  167. package/vue/chunks/UiSwitcher.js +1 -1
  168. package/vue/chunks/UiTabs.js +7 -2
  169. package/vue/chunks/UiTextarea.js +1 -1
  170. package/vue/chunks/UiToastRegion.js +1 -1
  171. package/vue/chunks/UiTooltip.js +1 -1
  172. package/vue/chunks/UiTopBar.js +1 -1
  173. package/vue/chunks/UiTree.js +8 -2
  174. package/vue/chunks/UiTreeItem.js +1 -1
  175. package/vue/components.css +1114 -1090
  176. package/vue/editor/LoomaEditor.d.ts +11 -0
  177. package/vue/editor/index.js +17 -0
@@ -8,9 +8,9 @@
8
8
  display: flex;
9
9
  overflow: hidden;
10
10
  flex-direction: column;
11
- background: var(--ui-surface, #fff);
12
- border: 1px solid var(--ui-border, #e5e7eb);
13
- border-radius: var(--ui-radius-xl, 1rem);
11
+ background: var(--ui-surface);
12
+ border: 1px solid var(--ui-border);
13
+ border-radius: var(--ui-radius-dialog);
14
14
  box-shadow: var(--ui-shadow-lg, 0 8px 24px rgb(0 0 0 / 0.12));
15
15
  }
16
16
 
@@ -18,25 +18,25 @@
18
18
  display: flex;
19
19
  align-items: center;
20
20
  justify-content: space-between;
21
- gap: var(--ui-space-3, 12px);
22
- padding: var(--ui-space-2, 8px) var(--ui-space-3, 12px);
23
- color: var(--ui-text-secondary, #4b5563);
24
- border-bottom: 1px solid var(--ui-border, #e5e7eb);
25
- font-size: var(--ui-font-size-xs, 0.75rem);
26
- font-weight: var(--ui-font-semibold, 600);
21
+ gap: var(--ui-space-3);
22
+ padding: var(--ui-space-2) var(--ui-space-3);
23
+ color: var(--ui-text-secondary);
24
+ border-bottom: 1px solid var(--ui-border);
25
+ font-size: var(--ui-font-size-xs);
26
+ font-weight: var(--ui-font-semibold);
27
27
  }
28
28
 
29
29
  .hint {
30
30
  overflow: hidden;
31
- color: var(--ui-text-muted, #6b7280);
32
- font-weight: var(--ui-font-normal, 400);
31
+ color: var(--ui-text-muted);
32
+ font-weight: var(--ui-font-normal);
33
33
  text-overflow: ellipsis;
34
34
  white-space: nowrap;
35
35
  }
36
36
 
37
37
  .list {
38
38
  max-height: 280px;
39
- padding: var(--ui-space-1, 4px) 0;
39
+ padding: var(--ui-space-1) 0;
40
40
  margin: 0;
41
41
  overflow-y: auto;
42
42
  overscroll-behavior: contain;
@@ -47,8 +47,8 @@
47
47
  display: flex;
48
48
  align-items: center;
49
49
  min-height: 44px;
50
- padding: var(--ui-space-1-5, 6px) var(--ui-space-3, 12px);
51
- gap: var(--ui-space-3, 12px);
50
+ padding: var(--ui-space-2) var(--ui-space-3);
51
+ gap: var(--ui-space-3);
52
52
  cursor: pointer;
53
53
  }
54
54
 
@@ -63,11 +63,11 @@
63
63
  width: 32px;
64
64
  height: 32px;
65
65
  flex: 0 0 auto;
66
- color: var(--ui-accent-active, var(--ui-accent-solid, #2563eb));
67
- background: var(--ui-accent-soft, var(--ui-accent-subtle, #eff6ff));
66
+ color: var(--ui-accent-active, var(--ui-accent-solid));
67
+ background: var(--ui-accent-soft, var(--ui-accent-subtle));
68
68
  border-radius: 999px;
69
- font-size: var(--ui-font-size-xs, 0.75rem);
70
- font-weight: var(--ui-font-semibold, 600);
69
+ font-size: var(--ui-font-size-xs);
70
+ font-weight: var(--ui-font-semibold);
71
71
  }
72
72
 
73
73
  .body {
@@ -84,26 +84,26 @@
84
84
  }
85
85
 
86
86
  .label {
87
- color: var(--ui-text-primary, #111827);
88
- font-size: var(--ui-font-size-sm, 0.875rem);
89
- font-weight: var(--ui-font-medium, 500);
87
+ color: var(--ui-text-primary);
88
+ font-size: var(--ui-font-size-sm);
89
+ font-weight: var(--ui-font-medium);
90
90
  }
91
91
 
92
92
  .detail,
93
93
  .loading {
94
- color: var(--ui-text-muted, #6b7280);
95
- font-size: var(--ui-font-size-xs, 0.75rem);
94
+ color: var(--ui-text-muted);
95
+ font-size: var(--ui-font-size-xs);
96
96
  }
97
97
 
98
98
  .loading {
99
99
  min-height: 44px;
100
- padding: var(--ui-space-3, 12px);
100
+ padding: var(--ui-space-3);
101
101
  }
102
102
 
103
103
  @media (max-width: 767px) {
104
104
  :scope {
105
105
  border-bottom: 0;
106
- border-radius: var(--ui-radius-xl, 1rem) var(--ui-radius-xl, 1rem) 0 0;
106
+ border-radius: var(--ui-radius-dialog) var(--ui-radius-dialog) 0 0;
107
107
  }
108
108
 
109
109
  .list {
@@ -5,9 +5,9 @@
5
5
  }
6
6
 
7
7
  :scope {
8
- background: var(--ui-surface, #fff);
9
- border: 1px solid var(--ui-border, #e5e7eb);
10
- border-radius: var(--ui-radius-xl, 1rem);
8
+ background: var(--ui-surface);
9
+ border: 1px solid var(--ui-border);
10
+ border-radius: var(--ui-radius-dialog);
11
11
  box-shadow: var(--ui-shadow-lg, 0 8px 24px rgb(0 0 0 / 0.12));
12
12
  overflow: hidden;
13
13
  display: flex;
@@ -16,7 +16,7 @@
16
16
 
17
17
  @media (max-width: 767px) {
18
18
  :scope {
19
- border-radius: var(--ui-radius-xl, 1rem) var(--ui-radius-xl, 1rem) 0 0;
19
+ border-radius: var(--ui-radius-dialog) var(--ui-radius-dialog) 0 0;
20
20
  border-bottom: none;
21
21
  }
22
22
  }
@@ -24,12 +24,12 @@
24
24
  .header {
25
25
  display: none;
26
26
  align-items: center;
27
- gap: var(--ui-space-2, 8px);
28
- padding: var(--ui-space-3, 12px) var(--ui-space-4, 16px);
29
- border-bottom: 1px solid var(--ui-border, #e5e7eb);
30
- font-size: var(--ui-font-size-xs, 0.75rem);
31
- color: var(--ui-text-muted, #6b7280);
32
- font-weight: var(--ui-font-semibold, 600);
27
+ gap: var(--ui-space-2);
28
+ padding: var(--ui-space-3) var(--ui-space-4);
29
+ border-bottom: 1px solid var(--ui-border);
30
+ font-size: var(--ui-font-size-xs);
31
+ color: var(--ui-text-muted);
32
+ font-weight: var(--ui-font-semibold);
33
33
  text-transform: uppercase;
34
34
  letter-spacing: 0.05em;
35
35
  }
@@ -41,12 +41,12 @@
41
41
  }
42
42
 
43
43
  .header-query {
44
- background: var(--ui-surface-hover, #f3f4f6);
45
- border-radius: var(--ui-radius-sm, 4px);
44
+ background: var(--ui-surface-hover);
45
+ border-radius: var(--ui-radius-sm);
46
46
  padding: 0.1em 0.4em;
47
47
  font-family: var(--ui-font-family-mono, ui-monospace, monospace);
48
- font-size: var(--ui-font-size-xs, 0.75rem);
49
- color: var(--ui-accent, #3b82f6);
48
+ font-size: var(--ui-font-size-xs);
49
+ color: var(--ui-accent);
50
50
  text-transform: none;
51
51
  letter-spacing: 0;
52
52
  }
@@ -54,7 +54,7 @@
54
54
  .list {
55
55
  list-style: none;
56
56
  margin: 0;
57
- padding: var(--ui-space-1, 4px) 0;
57
+ padding: var(--ui-space-1) 0;
58
58
  overflow-y: auto;
59
59
  max-height: 280px;
60
60
  overscroll-behavior: contain;
@@ -63,15 +63,15 @@
63
63
  @media (max-width: 767px) {
64
64
  .list {
65
65
  max-height: calc(60dvh - 80px);
66
- padding: var(--ui-space-1, 4px) 0 var(--ui-space-2, 8px);
66
+ padding: var(--ui-space-1) 0 var(--ui-space-2);
67
67
  }
68
68
  }
69
69
 
70
70
  .item {
71
71
  display: flex;
72
72
  align-items: center;
73
- gap: var(--ui-space-3, 12px);
74
- padding: var(--ui-space-2, 8px) var(--ui-space-3, 12px);
73
+ gap: var(--ui-space-3);
74
+ padding: var(--ui-space-2) var(--ui-space-3);
75
75
  min-height: 44px;
76
76
  cursor: pointer;
77
77
  transition: background-color 120ms ease;
@@ -87,21 +87,21 @@
87
87
  justify-content: center;
88
88
  width: 32px;
89
89
  height: 32px;
90
- background: var(--ui-surface-hover, #f3f4f6);
91
- border: 1px solid var(--ui-border, #e5e7eb);
92
- border-radius: var(--ui-radius-md, 6px);
93
- font-size: var(--ui-font-size-sm, 0.875rem);
94
- font-weight: var(--ui-font-bold, 700);
95
- color: var(--ui-text-secondary, #4b5563);
90
+ background: var(--ui-surface-hover);
91
+ border: 1px solid var(--ui-border);
92
+ border-radius: var(--ui-radius-md);
93
+ font-size: var(--ui-font-size-sm);
94
+ font-weight: var(--ui-font-bold);
95
+ color: var(--ui-text-secondary);
96
96
  font-family: var(--ui-font-family-mono, ui-monospace, monospace);
97
97
  flex-shrink: 0;
98
98
  line-height: 1;
99
99
  }
100
100
 
101
101
  .item.active .icon {
102
- background: var(--ui-accent, #3b82f6);
103
- border-color: var(--ui-accent, #3b82f6);
104
- color: var(--ui-accent-contrast, #fff);
102
+ background: var(--ui-accent);
103
+ border-color: var(--ui-accent);
104
+ color: var(--ui-accent-contrast);
105
105
  }
106
106
 
107
107
  .icon {
@@ -117,17 +117,17 @@
117
117
  }
118
118
 
119
119
  .title {
120
- font-size: var(--ui-font-size-sm, 0.875rem);
121
- font-weight: var(--ui-font-medium, 500);
122
- color: var(--ui-text, #111827);
120
+ font-size: var(--ui-font-size-sm);
121
+ font-weight: var(--ui-font-medium);
122
+ color: var(--ui-text);
123
123
  white-space: nowrap;
124
124
  overflow: hidden;
125
125
  text-overflow: ellipsis;
126
126
  }
127
127
 
128
128
  .description {
129
- font-size: var(--ui-font-size-xs, 0.75rem);
130
- color: var(--ui-text-muted, #6b7280);
129
+ font-size: var(--ui-font-size-xs);
130
+ color: var(--ui-text-muted);
131
131
  white-space: nowrap;
132
132
  overflow: hidden;
133
133
  text-overflow: ellipsis;
@@ -135,10 +135,10 @@
135
135
 
136
136
  .footer {
137
137
  display: none;
138
- padding: var(--ui-space-2, 8px) var(--ui-space-3, 12px);
139
- border-top: 1px solid var(--ui-border, #e5e7eb);
140
- font-size: var(--ui-font-size-xs, 0.75rem);
141
- color: var(--ui-text-muted, #6b7280);
138
+ padding: var(--ui-space-2) var(--ui-space-3);
139
+ border-top: 1px solid var(--ui-border);
140
+ font-size: var(--ui-font-size-xs);
141
+ color: var(--ui-text-muted);
142
142
  }
143
143
 
144
144
  @media (min-width: 768px) {
@@ -153,11 +153,11 @@
153
153
  justify-content: center;
154
154
  font-family: var(--ui-font-family-mono, ui-monospace, monospace);
155
155
  font-size: 10px;
156
- background: var(--ui-surface-hover, #f3f4f6);
157
- border: 1px solid var(--ui-border, #e5e7eb);
156
+ background: var(--ui-surface-hover);
157
+ border: 1px solid var(--ui-border);
158
158
  border-radius: 3px;
159
159
  padding: 0 3px;
160
- color: var(--ui-text-secondary, #4b5563);
160
+ color: var(--ui-text-secondary);
161
161
  }
162
162
 
163
163
  :scope[hidden] {
@@ -4,10 +4,10 @@
4
4
  min-width: 14rem;
5
5
  max-width: min(17rem, calc(100vw - 24px));
6
6
  max-height: min(28rem, calc(100vh - 24px));
7
- padding: var(--ui-space-1-5, 6px);
8
- background: var(--ui-surface, #fff);
9
- border: 1px solid var(--ui-border, #e5e7eb);
10
- border-radius: var(--ui-radius-lg, 10px);
7
+ padding: var(--ui-space-2);
8
+ background: var(--ui-surface);
9
+ border: 1px solid var(--ui-border);
10
+ border-radius: var(--ui-radius-lg);
11
11
  box-shadow: var(--ui-shadow-lg, 0 10px 15px -3px rgb(0 0 0 / 0.1));
12
12
  display: flex;
13
13
  flex-direction: column;
@@ -26,17 +26,17 @@
26
26
  :scope button {
27
27
  display: flex;
28
28
  align-items: center;
29
- gap: var(--ui-space-2, 8px);
29
+ gap: var(--ui-space-2);
30
30
  width: 100%;
31
31
  text-align: left;
32
32
  min-height: 32px;
33
- padding: var(--ui-space-1-5, 6px) var(--ui-space-2, 8px);
33
+ padding: var(--ui-space-2) var(--ui-space-2);
34
34
  border: none;
35
- border-radius: var(--ui-radius-sm, 4px);
35
+ border-radius: var(--ui-radius-sm);
36
36
  background: none;
37
- font-size: var(--ui-font-size-sm, 0.875rem);
37
+ font-size: var(--ui-font-size-sm);
38
38
  cursor: pointer;
39
- color: var(--ui-text, #111);
39
+ color: var(--ui-text);
40
40
  }
41
41
 
42
42
  :scope button {
@@ -45,7 +45,7 @@
45
45
  }
46
46
 
47
47
  :scope button:hover:not(:disabled) {
48
- background: var(--ui-surface-hover, #f3f4f6);
48
+ background: var(--ui-surface-hover);
49
49
  }
50
50
 
51
51
  :scope button.selected {
@@ -53,7 +53,7 @@
53
53
  }
54
54
 
55
55
  :scope button.danger {
56
- color: var(--ui-danger, #dc2626);
56
+ color: var(--ui-danger);
57
57
  }
58
58
 
59
59
  .swatches {
@@ -65,7 +65,7 @@
65
65
  .swatch-button {
66
66
  display: inline-flex;
67
67
  align-items: center;
68
- gap: var(--ui-space-2, 8px);
68
+ gap: var(--ui-space-2);
69
69
  }
70
70
 
71
71
  .swatch {
@@ -73,7 +73,7 @@
73
73
  width: 1rem;
74
74
  height: 1rem;
75
75
  border-radius: 999px;
76
- border: 1px solid var(--ui-border, #d1d5db);
76
+ border: 1px solid var(--ui-border);
77
77
  background: var(--ui-editor-table-context-swatch, #fff);
78
78
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.35);
79
79
  flex-shrink: 0;
@@ -85,11 +85,11 @@
85
85
  linear-gradient(
86
86
  135deg,
87
87
  transparent calc(50% - 1px),
88
- var(--ui-text-muted, #6b7280) calc(50% - 1px),
89
- var(--ui-text-muted, #6b7280) calc(50% + 1px),
88
+ var(--ui-text-muted) calc(50% - 1px),
89
+ var(--ui-text-muted) calc(50% + 1px),
90
90
  transparent calc(50% + 1px)
91
91
  ),
92
- var(--ui-surface, #fff);
92
+ var(--ui-surface);
93
93
  }
94
94
 
95
95
  .swatch-label {
@@ -98,18 +98,18 @@
98
98
  }
99
99
 
100
100
  .heading {
101
- padding: var(--ui-space-1, 4px) var(--ui-space-2, 8px);
101
+ padding: var(--ui-space-1) var(--ui-space-2);
102
102
  font-size: 0.6875rem;
103
103
  font-weight: 700;
104
104
  letter-spacing: 0.05em;
105
105
  text-transform: uppercase;
106
- color: var(--ui-text-muted, #6b7280);
106
+ color: var(--ui-text-muted);
107
107
  }
108
108
 
109
109
  .sep {
110
110
  height: 1px;
111
- background: var(--ui-border, #e5e7eb);
112
- margin: var(--ui-space-1, 4px) 0;
111
+ background: var(--ui-border);
112
+ margin: var(--ui-space-1) 0;
113
113
  }
114
114
 
115
115
  :scope[hidden] {
@@ -46,10 +46,10 @@
46
46
  width: 24px;
47
47
  height: 24px;
48
48
  padding: 0;
49
- border: 1px solid var(--ui-affordance-near-color, var(--ui-border-strong, #c8c8c4));
50
- border-radius: var(--ui-radius-round, 999px);
51
- background: color-mix(in srgb, var(--ui-surface-elevated, #fff) 96%, transparent);
52
- color: var(--ui-affordance-near-color, var(--ui-text-secondary, #5c5c5c));
49
+ border: 1px solid var(--ui-affordance-near-color, var(--ui-border-strong));
50
+ border-radius: var(--ui-radius-round);
51
+ background: color-mix(in srgb, var(--ui-surface-elevated) 96%, transparent);
52
+ color: var(--ui-affordance-near-color, var(--ui-text-secondary));
53
53
  font: inherit;
54
54
  font-size: 16px;
55
55
  line-height: 1;
@@ -57,18 +57,18 @@
57
57
  opacity: 0;
58
58
  scale: 0.72;
59
59
  transition:
60
- opacity var(--ui-affordance-motion, var(--ui-motion-fast, 120ms)) var(--ui-motion-ease, ease),
61
- scale var(--ui-affordance-motion, var(--ui-motion-fast, 120ms)) var(--ui-motion-ease, ease),
62
- color var(--ui-affordance-motion, var(--ui-motion-fast, 120ms)) var(--ui-motion-ease, ease),
63
- background-color var(--ui-affordance-motion, var(--ui-motion-fast, 120ms)) var(--ui-motion-ease, ease),
64
- border-color var(--ui-affordance-motion, var(--ui-motion-fast, 120ms)) var(--ui-motion-ease, ease);
60
+ opacity var(--ui-affordance-motion, var(--ui-motion-fast)) var(--ui-motion-ease),
61
+ scale var(--ui-affordance-motion, var(--ui-motion-fast)) var(--ui-motion-ease),
62
+ color var(--ui-affordance-motion, var(--ui-motion-fast)) var(--ui-motion-ease),
63
+ background-color var(--ui-affordance-motion, var(--ui-motion-fast)) var(--ui-motion-ease),
64
+ border-color var(--ui-affordance-motion, var(--ui-motion-fast)) var(--ui-motion-ease);
65
65
  pointer-events: auto;
66
66
  cursor: pointer;
67
67
  }
68
68
 
69
69
  .handle {
70
70
  --ui-icon-size: 14px;
71
- --ui-icon-stroke-width: var(--ui-editor-table-affordance-icon-stroke-width, 2);
71
+ --ui-icon-stroke-width: 2;
72
72
  }
73
73
 
74
74
  .handle[data-ui-proximity="near"],
@@ -80,16 +80,16 @@
80
80
 
81
81
  .control.active .handle,
82
82
  .handle:focus-visible {
83
- border-color: var(--ui-affordance-direct-color, var(--ui-accent-solid, #5b55d6));
84
- background: var(--ui-affordance-direct-color, var(--ui-accent-solid, #5b55d6));
85
- color: var(--ui-text-on-accent, #fff);
83
+ border-color: var(--ui-affordance-direct-color, var(--ui-accent-solid));
84
+ background: var(--ui-affordance-direct-color, var(--ui-accent-solid));
85
+ color: var(--ui-text-on-accent);
86
86
  box-shadow: var(--ui-shadow-sm, 0 1px 3px rgb(0 0 0 / 0.1));
87
87
  }
88
88
 
89
89
  .handle:focus-visible,
90
90
  .selector:focus-visible,
91
91
  .cell-menu:focus-visible {
92
- outline: 2px solid var(--ui-focus-ring, #5b55d6);
92
+ outline: 2px solid var(--ui-focus-ring);
93
93
  outline-offset: 2px;
94
94
  }
95
95
 
@@ -117,9 +117,9 @@
117
117
 
118
118
  .line {
119
119
  position: absolute;
120
- background: var(--ui-affordance-direct-color, var(--ui-accent-solid, #5b55d6));
120
+ background: var(--ui-affordance-direct-color, var(--ui-accent-solid));
121
121
  opacity: 0;
122
- transition: opacity var(--ui-affordance-motion, var(--ui-motion-fast, 120ms)) var(--ui-motion-ease, ease);
122
+ transition: opacity var(--ui-affordance-motion, var(--ui-motion-fast)) var(--ui-motion-ease);
123
123
  }
124
124
 
125
125
  .control.row .line {
@@ -138,12 +138,12 @@
138
138
 
139
139
  .guide {
140
140
  position: absolute;
141
- width: var(--ui-affordance-guide-size, 4px);
142
- height: var(--ui-affordance-guide-size, 4px);
143
- border-radius: var(--ui-radius-round, 999px);
144
- background: var(--ui-affordance-guide-color, var(--ui-border-strong, #c8c8c4));
145
- opacity: var(--ui-affordance-guide-opacity, 0.42);
146
- transition: opacity var(--ui-affordance-motion, var(--ui-motion-fast, 120ms)) var(--ui-motion-ease, ease);
141
+ width: var(--ui-affordance-guide-size);
142
+ height: var(--ui-affordance-guide-size);
143
+ border-radius: var(--ui-radius-round);
144
+ background: var(--ui-affordance-guide-color, var(--ui-border-strong));
145
+ opacity: var(--ui-affordance-guide-opacity);
146
+ transition: opacity var(--ui-affordance-motion, var(--ui-motion-fast)) var(--ui-motion-ease);
147
147
  }
148
148
 
149
149
  .control.row .guide {
@@ -168,16 +168,16 @@
168
168
  left: 50%;
169
169
  width: max-content;
170
170
  max-width: 14rem;
171
- padding: var(--ui-space-1, 4px) var(--ui-space-2, 8px);
172
- border-radius: var(--ui-radius-1, 4px);
173
- background: var(--ui-text-primary, #1a1a1a);
174
- color: var(--ui-surface-elevated, #fff);
175
- font-size: var(--ui-font-size-xs, 0.75rem);
176
- font-weight: var(--ui-font-medium, 500);
177
- line-height: var(--ui-line-height-md, 1.4);
171
+ padding: var(--ui-space-1) var(--ui-space-2);
172
+ border-radius: var(--ui-radius-sm);
173
+ background: var(--ui-text-primary);
174
+ color: var(--ui-surface-elevated);
175
+ font-size: var(--ui-font-size-xs);
176
+ font-weight: var(--ui-font-medium);
177
+ line-height: var(--ui-line-height-md);
178
178
  opacity: 0;
179
179
  transform: translateX(-50%);
180
- transition: opacity var(--ui-affordance-motion, var(--ui-motion-fast, 120ms)) var(--ui-motion-ease, ease);
180
+ transition: opacity var(--ui-affordance-motion, var(--ui-motion-fast)) var(--ui-motion-ease);
181
181
  pointer-events: none;
182
182
  }
183
183
 
@@ -203,37 +203,37 @@
203
203
  padding: 0;
204
204
  border: 1px solid transparent;
205
205
  background: transparent;
206
- color: var(--ui-text-secondary, #5c5c5c);
206
+ color: var(--ui-text-secondary);
207
207
  box-shadow: none;
208
208
  pointer-events: auto;
209
209
  cursor: pointer;
210
210
  transition:
211
- color var(--ui-affordance-motion, var(--ui-motion-fast, 120ms)) var(--ui-motion-ease, ease),
212
- background-color var(--ui-affordance-motion, var(--ui-motion-fast, 120ms)) var(--ui-motion-ease, ease),
213
- border-color var(--ui-affordance-motion, var(--ui-motion-fast, 120ms)) var(--ui-motion-ease, ease),
214
- box-shadow var(--ui-affordance-motion, var(--ui-motion-fast, 120ms)) var(--ui-motion-ease, ease);
211
+ color var(--ui-affordance-motion, var(--ui-motion-fast)) var(--ui-motion-ease),
212
+ background-color var(--ui-affordance-motion, var(--ui-motion-fast)) var(--ui-motion-ease),
213
+ border-color var(--ui-affordance-motion, var(--ui-motion-fast)) var(--ui-motion-ease),
214
+ box-shadow var(--ui-affordance-motion, var(--ui-motion-fast)) var(--ui-motion-ease);
215
215
  }
216
216
 
217
217
  .selector:hover,
218
218
  .cell-menu:hover {
219
- background: var(--ui-icon-button-hover-bg, var(--ui-surface-muted, #f3f4f6));
220
- color: var(--ui-icon-button-hover-color, var(--ui-text-primary, #1a1a1a));
219
+ background: var(--ui-icon-button-hover-surface, var(--ui-surface-muted));
220
+ color: var(--ui-icon-button-hover-text, var(--ui-text-primary));
221
221
  box-shadow: var(--ui-shadow-xs, 0 1px 2px rgb(0 0 0 / 0.05));
222
222
  }
223
223
 
224
224
  .selector {
225
- border-radius: var(--ui-radius-round, 999px);
225
+ border-radius: var(--ui-radius-round);
226
226
  }
227
227
 
228
228
  .selector::before {
229
229
  content: "";
230
230
  position: absolute;
231
231
  inset: 50% auto auto 50%;
232
- border-radius: var(--ui-radius-round, 999px);
233
- background: var(--ui-affordance-guide-color, var(--ui-border-strong, #c8c8c4));
234
- opacity: var(--ui-affordance-guide-opacity, 0.42);
232
+ border-radius: var(--ui-radius-round);
233
+ background: var(--ui-affordance-guide-color, var(--ui-border-strong));
234
+ opacity: var(--ui-affordance-guide-opacity);
235
235
  transform: translate(-50%, -50%);
236
- transition: opacity var(--ui-affordance-motion, var(--ui-motion-fast, 120ms)) var(--ui-motion-ease, ease);
236
+ transition: opacity var(--ui-affordance-motion, var(--ui-motion-fast)) var(--ui-motion-ease);
237
237
  pointer-events: none;
238
238
  }
239
239
 
@@ -242,12 +242,12 @@
242
242
  width: 14px;
243
243
  height: 14px;
244
244
  --ui-icon-size: 14px;
245
- --ui-icon-stroke-width: var(--ui-editor-table-affordance-icon-stroke-width, 2);
245
+ --ui-icon-stroke-width: 2;
246
246
  opacity: 0;
247
247
  transform: scale(0.72);
248
248
  transition:
249
- opacity var(--ui-affordance-motion, var(--ui-motion-fast, 120ms)) var(--ui-motion-ease, ease),
250
- transform var(--ui-affordance-motion, var(--ui-motion-fast, 120ms)) var(--ui-motion-ease, ease);
249
+ opacity var(--ui-affordance-motion, var(--ui-motion-fast)) var(--ui-motion-ease),
250
+ transform var(--ui-affordance-motion, var(--ui-motion-fast)) var(--ui-motion-ease);
251
251
  }
252
252
 
253
253
  .selector:hover::before,
@@ -299,13 +299,13 @@
299
299
  .cell-menu {
300
300
  width: 24px;
301
301
  height: 24px;
302
- border-radius: var(--ui-radius-1, 4px);
303
- background: color-mix(in srgb, var(--ui-surface-muted, #f3f4f6) 78%, transparent);
302
+ border-radius: var(--ui-radius-sm);
303
+ background: color-mix(in srgb, var(--ui-surface-muted) 78%, transparent);
304
304
  }
305
305
 
306
306
  .cell-menu {
307
307
  --ui-icon-size: 15px;
308
- --ui-icon-stroke-width: var(--ui-editor-table-affordance-icon-stroke-width, 2);
308
+ --ui-icon-stroke-width: 2;
309
309
  }
310
310
 
311
311
  :scope[hidden] {