formanitor 0.1.8 → 0.1.9
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/dist/index.cjs +130 -59
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +5 -1
- package/dist/index.d.ts +5 -1
- package/dist/index.mjs +131 -61
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -1
- package/src/styles/index.css +28 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "formanitor",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.9",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/index.cjs",
|
|
6
6
|
"module": "./dist/index.mjs",
|
|
@@ -45,6 +45,7 @@
|
|
|
45
45
|
"@tanstack/react-table": "^8.21.3",
|
|
46
46
|
"@tiptap/extension-link": "^3.20.4",
|
|
47
47
|
"@tiptap/extension-placeholder": "^3.20.4",
|
|
48
|
+
"@tiptap/extension-table": "^3.23.6",
|
|
48
49
|
"@tiptap/extension-underline": "^3.20.4",
|
|
49
50
|
"@tiptap/react": "^3.20.4",
|
|
50
51
|
"@tiptap/starter-kit": "^3.20.4",
|
package/src/styles/index.css
CHANGED
|
@@ -113,4 +113,32 @@ body {
|
|
|
113
113
|
.emr-table.emr-table--biometry .emr-biometry-eye {
|
|
114
114
|
@apply min-w-0;
|
|
115
115
|
}
|
|
116
|
+
|
|
117
|
+
/**
|
|
118
|
+
* TipTap rich-text tables (headless — no default styles from @tiptap/extension-table).
|
|
119
|
+
* Scoped to .tiptap (editor) and .richtext-content (stored HTML in read-only views).
|
|
120
|
+
*/
|
|
121
|
+
.tiptap .tableWrapper,
|
|
122
|
+
.richtext-content .tableWrapper {
|
|
123
|
+
@apply overflow-x-auto;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
.tiptap table,
|
|
127
|
+
.richtext-content table {
|
|
128
|
+
@apply my-3 w-full border-collapse text-sm;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
.tiptap td,
|
|
132
|
+
.richtext-content td {
|
|
133
|
+
@apply border border-border px-2 py-1 align-top;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
.tiptap th,
|
|
137
|
+
.richtext-content th {
|
|
138
|
+
@apply border border-border bg-muted/70 px-2 py-1 text-left text-sm font-medium;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
.tiptap .selectedCell {
|
|
142
|
+
@apply bg-primary/10;
|
|
143
|
+
}
|
|
116
144
|
}
|