@cloudvoyant/helical-ui 0.20.1 → 0.21.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cloudvoyant/helical-ui",
3
- "version": "0.20.1",
3
+ "version": "0.21.0",
4
4
  "description": "helical-ui shared component interfaces, cva variants, and theme",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -33,6 +33,7 @@
33
33
  },
34
34
  "dependencies": {
35
35
  "@tanstack/charts": "^0.16.0",
36
+ "@tanstack/hotkeys": "^0.23.0",
36
37
  "@tiptap/core": "^3.31.3",
37
38
  "@tiptap/pm": "^3.31.3",
38
39
  "@tiptap/starter-kit": "^3.31.3",
@@ -51,6 +52,10 @@
51
52
  "@tiptap/extension-text-style": "^3.31.3",
52
53
  "@tiptap/extension-typography": "^3.31.3",
53
54
  "@tiptap/extension-underline": "^3.31.3",
55
+ "@zag-js/dismissable": "1.43.1",
56
+ "@zag-js/dom-query": "1.43.1",
57
+ "@zag-js/focus-visible": "1.43.1",
58
+ "@zag-js/live-region": "1.43.1",
54
59
  "class-variance-authority": "^0.7.1",
55
60
  "clsx": "^2.1.1",
56
61
  "katex": "^0.16.11",
@@ -176,3 +176,43 @@
176
176
  opacity: 0;
177
177
  }
178
178
  }
179
+
180
+ /* ModalKeymap block caret and multi-cursor decorations in normal and select modes */
181
+ .ProseMirror[data-modal-mode='normal'],
182
+ .ProseMirror[data-modal-mode='select'] {
183
+ caret-color: transparent;
184
+ }
185
+
186
+ .ProseMirror::selection,
187
+ .ProseMirror ::selection {
188
+ background-color: var(--color-primary) !important;
189
+ color: var(--color-primary-foreground) !important;
190
+ -webkit-text-fill-color: var(--color-primary-foreground) !important;
191
+ }
192
+
193
+ .ProseMirror[data-modal-mode='normal']::selection,
194
+ .ProseMirror[data-modal-mode='normal'] ::selection,
195
+ .ProseMirror[data-modal-mode='select']::selection,
196
+ .ProseMirror[data-modal-mode='select'] ::selection {
197
+ background-color: transparent !important;
198
+ color: var(--color-primary-foreground) !important;
199
+ -webkit-text-fill-color: var(--color-primary-foreground) !important;
200
+ }
201
+
202
+ .ProseMirror [data-pm-modal-selection],
203
+ .ProseMirror [data-pm-multi-selection],
204
+ .ProseMirror [data-pm-modal-cursor],
205
+ .ProseMirror [data-pm-multi-cursor] {
206
+ background-color: var(--color-primary) !important;
207
+ color: var(--color-primary-foreground) !important;
208
+ -webkit-text-fill-color: var(--color-primary-foreground) !important;
209
+ border-radius: 1px;
210
+ box-decoration-break: clone;
211
+ -webkit-box-decoration-break: clone;
212
+ }
213
+
214
+ .ProseMirror .pm-modal-cursor-eol {
215
+ display: inline;
216
+ pointer-events: none;
217
+ user-select: none;
218
+ }
package/src/theme.css CHANGED
@@ -156,6 +156,9 @@
156
156
  * {
157
157
  @apply border-border outline-ring/50;
158
158
  }
159
+ [tabindex='-1']:focus {
160
+ outline: none;
161
+ }
159
162
  body {
160
163
  @apply bg-background text-foreground;
161
164
  }