formanitor 0.1.9 → 0.1.11

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": "formanitor",
3
- "version": "0.1.9",
3
+ "version": "0.1.11",
4
4
  "type": "module",
5
5
  "main": "./dist/index.cjs",
6
6
  "module": "./dist/index.mjs",
@@ -120,12 +120,20 @@ body {
120
120
  */
121
121
  .tiptap .tableWrapper,
122
122
  .richtext-content .tableWrapper {
123
- @apply overflow-x-auto;
123
+ @apply relative overflow-x-auto;
124
124
  }
125
125
 
126
+ /**
127
+ * table-layout: fixed + overflow: hidden are required for column resizing
128
+ * (prosemirror-tables / @tiptap/extension-table resizable mode).
129
+ */
126
130
  .tiptap table,
127
131
  .richtext-content table {
128
- @apply my-3 w-full border-collapse text-sm;
132
+ @apply my-3 w-full border-collapse text-sm table-fixed;
133
+ }
134
+
135
+ .tiptap table {
136
+ @apply overflow-hidden;
129
137
  }
130
138
 
131
139
  .tiptap td,
@@ -141,4 +149,29 @@ body {
141
149
  .tiptap .selectedCell {
142
150
  @apply bg-primary/10;
143
151
  }
152
+
153
+ /* Column resize affordances (editor only — see Table.configure resizable) */
154
+ .tiptap.resize-cursor,
155
+ .tiptap.ProseMirror.resize-cursor {
156
+ cursor: col-resize;
157
+ }
158
+
159
+ .tiptap .column-resize-handle,
160
+ .tiptap.ProseMirror .column-resize-handle {
161
+ position: absolute;
162
+ top: 0;
163
+ right: -1px;
164
+ bottom: 0;
165
+ z-index: 20;
166
+ width: 4px;
167
+ pointer-events: none;
168
+ background-color: hsl(var(--primary) / 0.55);
169
+ border-radius: 1px;
170
+ box-shadow: 0 0 0 1px hsl(var(--primary) / 0.2);
171
+ }
172
+
173
+ .tiptap .column-resize-dragging,
174
+ .tiptap.ProseMirror .column-resize-dragging {
175
+ @apply bg-primary/10;
176
+ }
144
177
  }