@threadlabs/looma 0.1.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/LICENSE +21 -0
- package/README.md +21 -0
- package/dist/chunk-G53JEAQK.js +94 -0
- package/dist/chunk-OF57X5AR.js +10 -0
- package/dist/chunk-UL7UIUJZ.js +20 -0
- package/dist/chunk-YK4MTZGJ.js +1580 -0
- package/dist/cjs/app-globals-V2Kpy_OQ.js +5 -0
- package/dist/cjs/events-TcQIzpNv.js +19 -0
- package/dist/cjs/id-CYbKpaYr.js +9 -0
- package/dist/cjs/index-D07f6BOw.js +1569 -0
- package/dist/cjs/index.cjs.js +2 -0
- package/dist/cjs/loader.cjs.js +13 -0
- package/dist/cjs/looma.cjs.js +25 -0
- package/dist/cjs/manager-BOpVXb92.js +93 -0
- package/dist/cjs/ui-avatar-group.cjs.entry.js +51 -0
- package/dist/cjs/ui-avatar.cjs.entry.js +50 -0
- package/dist/cjs/ui-badge.cjs.entry.js +19 -0
- package/dist/cjs/ui-button.cjs.entry.js +62 -0
- package/dist/cjs/ui-checkbox.cjs.entry.js +91 -0
- package/dist/cjs/ui-context-menu.cjs.entry.js +201 -0
- package/dist/cjs/ui-dialog.cjs.entry.js +93 -0
- package/dist/cjs/ui-disclosure.cjs.entry.js +109 -0
- package/dist/cjs/ui-floating-action-button.cjs.entry.js +20 -0
- package/dist/cjs/ui-form-field.cjs.entry.js +59 -0
- package/dist/cjs/ui-icon-button.cjs.entry.js +21 -0
- package/dist/cjs/ui-input.cjs.entry.js +101 -0
- package/dist/cjs/ui-menu-item.cjs.entry.js +19 -0
- package/dist/cjs/ui-menu.cjs.entry.js +96 -0
- package/dist/cjs/ui-popover.cjs.entry.js +92 -0
- package/dist/cjs/ui-radio-group.cjs.entry.js +134 -0
- package/dist/cjs/ui-radio.cjs.entry.js +85 -0
- package/dist/cjs/ui-search-result-row.cjs.entry.js +47 -0
- package/dist/cjs/ui-search-shell.cjs.entry.js +39 -0
- package/dist/cjs/ui-select.cjs.entry.js +100 -0
- package/dist/cjs/ui-switch.cjs.entry.js +65 -0
- package/dist/cjs/ui-tabs.cjs.entry.js +117 -0
- package/dist/cjs/ui-textarea.cjs.entry.js +106 -0
- package/dist/cjs/ui-toast-region.cjs.entry.js +67 -0
- package/dist/cjs/ui-tooltip.cjs.entry.js +133 -0
- package/dist/cjs/ui-top-bar.cjs.entry.js +43 -0
- package/dist/collection/collection-manifest.json +38 -0
- package/dist/collection/components/ui-avatar/ui-avatar.css +35 -0
- package/dist/collection/components/ui-avatar/ui-avatar.js +130 -0
- package/dist/collection/components/ui-avatar-group/ui-avatar-group.css +32 -0
- package/dist/collection/components/ui-avatar-group/ui-avatar-group.js +103 -0
- package/dist/collection/components/ui-badge/ui-badge.css +74 -0
- package/dist/collection/components/ui-badge/ui-badge.js +62 -0
- package/dist/collection/components/ui-button/ui-button.css +101 -0
- package/dist/collection/components/ui-button/ui-button.js +127 -0
- package/dist/collection/components/ui-checkbox/ui-checkbox.css +24 -0
- package/dist/collection/components/ui-checkbox/ui-checkbox.js +223 -0
- package/dist/collection/components/ui-context-menu/ui-context-menu.css +17 -0
- package/dist/collection/components/ui-context-menu/ui-context-menu.js +272 -0
- package/dist/collection/components/ui-dialog/ui-dialog.css +65 -0
- package/dist/collection/components/ui-dialog/ui-dialog.js +185 -0
- package/dist/collection/components/ui-disclosure/ui-disclosure.css +7 -0
- package/dist/collection/components/ui-disclosure/ui-disclosure.js +182 -0
- package/dist/collection/components/ui-floating-action-button/ui-floating-action-button.css +70 -0
- package/dist/collection/components/ui-floating-action-button/ui-floating-action-button.js +85 -0
- package/dist/collection/components/ui-form-field/ui-form-field.css +21 -0
- package/dist/collection/components/ui-form-field/ui-form-field.js +125 -0
- package/dist/collection/components/ui-icon-button/ui-icon-button.css +92 -0
- package/dist/collection/components/ui-icon-button/ui-icon-button.js +106 -0
- package/dist/collection/components/ui-input/ui-input.css +46 -0
- package/dist/collection/components/ui-input/ui-input.js +213 -0
- package/dist/collection/components/ui-menu/ui-menu.css +37 -0
- package/dist/collection/components/ui-menu/ui-menu.js +149 -0
- package/dist/collection/components/ui-menu-item/ui-menu-item.css +26 -0
- package/dist/collection/components/ui-menu-item/ui-menu-item.js +64 -0
- package/dist/collection/components/ui-popover/ui-popover.css +8 -0
- package/dist/collection/components/ui-popover/ui-popover.js +144 -0
- package/dist/collection/components/ui-radio/ui-radio.css +22 -0
- package/dist/collection/components/ui-radio/ui-radio.js +213 -0
- package/dist/collection/components/ui-radio-group/ui-radio-group.css +10 -0
- package/dist/collection/components/ui-radio-group/ui-radio-group.js +247 -0
- package/dist/collection/components/ui-search-result-row/ui-search-result-row.css +80 -0
- package/dist/collection/components/ui-search-result-row/ui-search-result-row.js +100 -0
- package/dist/collection/components/ui-search-shell/ui-search-shell.css +61 -0
- package/dist/collection/components/ui-search-shell/ui-search-shell.js +46 -0
- package/dist/collection/components/ui-select/ui-select.css +62 -0
- package/dist/collection/components/ui-select/ui-select.js +212 -0
- package/dist/collection/components/ui-switch/ui-switch.css +63 -0
- package/dist/collection/components/ui-switch/ui-switch.js +177 -0
- package/dist/collection/components/ui-tabs/ui-tabs.css +65 -0
- package/dist/collection/components/ui-tabs/ui-tabs.js +190 -0
- package/dist/collection/components/ui-textarea/ui-textarea.css +48 -0
- package/dist/collection/components/ui-textarea/ui-textarea.js +238 -0
- package/dist/collection/components/ui-toast-region/ui-toast-region.css +52 -0
- package/dist/collection/components/ui-toast-region/ui-toast-region.js +100 -0
- package/dist/collection/components/ui-tooltip/ui-tooltip.css +14 -0
- package/dist/collection/components/ui-tooltip/ui-tooltip.js +205 -0
- package/dist/collection/components/ui-top-bar/ui-top-bar.css +43 -0
- package/dist/collection/components/ui-top-bar/ui-top-bar.js +52 -0
- package/dist/collection/overlay/manager.js +90 -0
- package/dist/collection/utils/events.js +13 -0
- package/dist/collection/utils/id.js +5 -0
- package/dist/collection/utils/initials.js +11 -0
- package/dist/components/index.d.ts +88 -0
- package/dist/components/index.js +1 -0
- package/dist/components/p-CIA4RyEp.js +1 -0
- package/dist/components/p-CR7f2MQC.js +1 -0
- package/dist/components/p-JwSoedEO.js +1 -0
- package/dist/components/p-WvL4iAhX.js +1 -0
- package/dist/components/p-hgBUJRDa.js +1 -0
- package/dist/components/ui-avatar-group.d.ts +11 -0
- package/dist/components/ui-avatar-group.js +1 -0
- package/dist/components/ui-avatar.d.ts +11 -0
- package/dist/components/ui-avatar.js +1 -0
- package/dist/components/ui-badge.d.ts +11 -0
- package/dist/components/ui-badge.js +1 -0
- package/dist/components/ui-button.d.ts +11 -0
- package/dist/components/ui-button.js +1 -0
- package/dist/components/ui-checkbox.d.ts +11 -0
- package/dist/components/ui-checkbox.js +1 -0
- package/dist/components/ui-context-menu.d.ts +11 -0
- package/dist/components/ui-context-menu.js +1 -0
- package/dist/components/ui-dialog.d.ts +11 -0
- package/dist/components/ui-dialog.js +1 -0
- package/dist/components/ui-disclosure.d.ts +11 -0
- package/dist/components/ui-disclosure.js +1 -0
- package/dist/components/ui-floating-action-button.d.ts +11 -0
- package/dist/components/ui-floating-action-button.js +1 -0
- package/dist/components/ui-form-field.d.ts +11 -0
- package/dist/components/ui-form-field.js +1 -0
- package/dist/components/ui-icon-button.d.ts +11 -0
- package/dist/components/ui-icon-button.js +1 -0
- package/dist/components/ui-input.d.ts +11 -0
- package/dist/components/ui-input.js +1 -0
- package/dist/components/ui-menu-item.d.ts +11 -0
- package/dist/components/ui-menu-item.js +1 -0
- package/dist/components/ui-menu.d.ts +11 -0
- package/dist/components/ui-menu.js +1 -0
- package/dist/components/ui-popover.d.ts +11 -0
- package/dist/components/ui-popover.js +1 -0
- package/dist/components/ui-radio-group.d.ts +11 -0
- package/dist/components/ui-radio-group.js +1 -0
- package/dist/components/ui-radio.d.ts +11 -0
- package/dist/components/ui-radio.js +1 -0
- package/dist/components/ui-search-result-row.d.ts +11 -0
- package/dist/components/ui-search-result-row.js +1 -0
- package/dist/components/ui-search-shell.d.ts +11 -0
- package/dist/components/ui-search-shell.js +1 -0
- package/dist/components/ui-select.d.ts +11 -0
- package/dist/components/ui-select.js +1 -0
- package/dist/components/ui-switch.d.ts +11 -0
- package/dist/components/ui-switch.js +1 -0
- package/dist/components/ui-tabs.d.ts +11 -0
- package/dist/components/ui-tabs.js +1 -0
- package/dist/components/ui-textarea.d.ts +11 -0
- package/dist/components/ui-textarea.js +1 -0
- package/dist/components/ui-toast-region.d.ts +11 -0
- package/dist/components/ui-toast-region.js +1 -0
- package/dist/components/ui-tooltip.d.ts +11 -0
- package/dist/components/ui-tooltip.js +1 -0
- package/dist/components/ui-top-bar.d.ts +11 -0
- package/dist/components/ui-top-bar.js +1 -0
- package/dist/esm/app-globals-DQuL1Twl.js +3 -0
- package/dist/esm/events-JwSoedEO.js +15 -0
- package/dist/esm/id-hgBUJRDa.js +7 -0
- package/dist/esm/index-CEeiinfk.js +1561 -0
- package/dist/esm/index.js +1 -0
- package/dist/esm/loader.js +11 -0
- package/dist/esm/looma.js +21 -0
- package/dist/esm/manager-CR7f2MQC.js +89 -0
- package/dist/esm/ui-avatar-group.entry.js +49 -0
- package/dist/esm/ui-avatar.entry.js +48 -0
- package/dist/esm/ui-badge.entry.js +17 -0
- package/dist/esm/ui-button.entry.js +60 -0
- package/dist/esm/ui-checkbox.entry.js +89 -0
- package/dist/esm/ui-context-menu.entry.js +199 -0
- package/dist/esm/ui-dialog.entry.js +91 -0
- package/dist/esm/ui-disclosure.entry.js +107 -0
- package/dist/esm/ui-floating-action-button.entry.js +18 -0
- package/dist/esm/ui-form-field.entry.js +57 -0
- package/dist/esm/ui-icon-button.entry.js +19 -0
- package/dist/esm/ui-input.entry.js +99 -0
- package/dist/esm/ui-menu-item.entry.js +17 -0
- package/dist/esm/ui-menu.entry.js +94 -0
- package/dist/esm/ui-popover.entry.js +90 -0
- package/dist/esm/ui-radio-group.entry.js +132 -0
- package/dist/esm/ui-radio.entry.js +83 -0
- package/dist/esm/ui-search-result-row.entry.js +45 -0
- package/dist/esm/ui-search-shell.entry.js +37 -0
- package/dist/esm/ui-select.entry.js +98 -0
- package/dist/esm/ui-switch.entry.js +63 -0
- package/dist/esm/ui-tabs.entry.js +115 -0
- package/dist/esm/ui-textarea.entry.js +104 -0
- package/dist/esm/ui-toast-region.entry.js +65 -0
- package/dist/esm/ui-tooltip.entry.js +131 -0
- package/dist/esm/ui-top-bar.entry.js +41 -0
- package/dist/index.cjs +4062 -0
- package/dist/index.cjs.js +1 -0
- package/dist/index.d.cts +16 -0
- package/dist/index.d.ts +16 -0
- package/dist/index.js +129 -0
- package/dist/looma/index.esm.js +0 -0
- package/dist/looma/looma.esm.js +1 -0
- package/dist/looma/p-03f0594b.entry.js +1 -0
- package/dist/looma/p-15e619fd.entry.js +1 -0
- package/dist/looma/p-201243dc.entry.js +1 -0
- package/dist/looma/p-24d7aa5b.entry.js +1 -0
- package/dist/looma/p-341ba64a.entry.js +1 -0
- package/dist/looma/p-41d62a83.entry.js +1 -0
- package/dist/looma/p-4742e6b4.entry.js +1 -0
- package/dist/looma/p-4c54d489.entry.js +1 -0
- package/dist/looma/p-52c537fa.entry.js +1 -0
- package/dist/looma/p-5a645647.entry.js +1 -0
- package/dist/looma/p-610b2eca.entry.js +1 -0
- package/dist/looma/p-649dad92.entry.js +1 -0
- package/dist/looma/p-66a203a1.entry.js +1 -0
- package/dist/looma/p-754cfff3.entry.js +1 -0
- package/dist/looma/p-93ce1c62.entry.js +1 -0
- package/dist/looma/p-955fb814.entry.js +1 -0
- package/dist/looma/p-96de71ad.entry.js +1 -0
- package/dist/looma/p-CEeiinfk.js +2 -0
- package/dist/looma/p-CR7f2MQC.js +1 -0
- package/dist/looma/p-DQuL1Twl.js +1 -0
- package/dist/looma/p-JwSoedEO.js +1 -0
- package/dist/looma/p-ab4151d5.entry.js +1 -0
- package/dist/looma/p-c14233bc.entry.js +1 -0
- package/dist/looma/p-dc857ed4.entry.js +1 -0
- package/dist/looma/p-dfcb2cca.entry.js +1 -0
- package/dist/looma/p-dff144bd.entry.js +1 -0
- package/dist/looma/p-ebb74106.entry.js +1 -0
- package/dist/looma/p-ecb5739b.entry.js +1 -0
- package/dist/looma/p-ee31c7b4.entry.js +1 -0
- package/dist/looma/p-fa4659c4.entry.js +1 -0
- package/dist/looma/p-hgBUJRDa.js +1 -0
- package/dist/types/components/ui-avatar/ui-avatar.d.ts +11 -0
- package/dist/types/components/ui-avatar-group/ui-avatar-group.d.ts +12 -0
- package/dist/types/components/ui-badge/ui-badge.d.ts +5 -0
- package/dist/types/components/ui-button/ui-button.d.ts +13 -0
- package/dist/types/components/ui-checkbox/ui-checkbox.d.ts +19 -0
- package/dist/types/components/ui-context-menu/ui-context-menu.d.ts +37 -0
- package/dist/types/components/ui-dialog/ui-dialog.d.ts +19 -0
- package/dist/types/components/ui-disclosure/ui-disclosure.d.ts +20 -0
- package/dist/types/components/ui-floating-action-button/ui-floating-action-button.d.ts +6 -0
- package/dist/types/components/ui-form-field/ui-form-field.d.ts +10 -0
- package/dist/types/components/ui-icon-button/ui-icon-button.d.ts +7 -0
- package/dist/types/components/ui-input/ui-input.d.ts +19 -0
- package/dist/types/components/ui-menu/ui-menu.d.ts +14 -0
- package/dist/types/components/ui-menu-item/ui-menu-item.d.ts +5 -0
- package/dist/types/components/ui-popover/ui-popover.d.ts +16 -0
- package/dist/types/components/ui-radio/ui-radio.d.ts +17 -0
- package/dist/types/components/ui-radio-group/ui-radio-group.d.ts +21 -0
- package/dist/types/components/ui-search-result-row/ui-search-result-row.d.ts +15 -0
- package/dist/types/components/ui-search-shell/ui-search-shell.d.ts +9 -0
- package/dist/types/components/ui-select/ui-select.d.ts +19 -0
- package/dist/types/components/ui-switch/ui-switch.d.ts +15 -0
- package/dist/types/components/ui-tabs/ui-tabs.d.ts +17 -0
- package/dist/types/components/ui-textarea/ui-textarea.d.ts +20 -0
- package/dist/types/components/ui-toast-region/ui-toast-region.d.ts +12 -0
- package/dist/types/components/ui-tooltip/ui-tooltip.d.ts +24 -0
- package/dist/types/components/ui-top-bar/ui-top-bar.d.ts +12 -0
- package/dist/types/components.d.ts +1148 -0
- package/dist/types/overlay/manager.d.ts +14 -0
- package/dist/types/stencil-public-runtime.d.ts +1860 -0
- package/dist/types/utils/events.d.ts +4 -0
- package/dist/types/utils/id.d.ts +1 -0
- package/dist/types/utils/initials.d.ts +1 -0
- package/dist/ui-avatar-group.entry-BZGXBOSE.js +59 -0
- package/dist/ui-avatar.entry-S2O2W5SA.js +51 -0
- package/dist/ui-badge.entry-CVJDISCR.js +22 -0
- package/dist/ui-button.entry-LNJBEJFE.js +72 -0
- package/dist/ui-checkbox.entry-5RA2CB43.js +102 -0
- package/dist/ui-context-menu.entry-UUOCT75F.js +211 -0
- package/dist/ui-dialog.entry-OEPJTEES.js +106 -0
- package/dist/ui-disclosure.entry-LRRISGUD.js +120 -0
- package/dist/ui-floating-action-button.entry-7TSAZRXP.js +23 -0
- package/dist/ui-form-field.entry-73YOVICF.js +67 -0
- package/dist/ui-icon-button.entry-MNXGPG36.js +24 -0
- package/dist/ui-input.entry-UWRVAOSW.js +112 -0
- package/dist/ui-menu-item.entry-5AOJO5MP.js +22 -0
- package/dist/ui-menu.entry-YDS6UMB5.js +98 -0
- package/dist/ui-popover.entry-PGWDCQIX.js +104 -0
- package/dist/ui-radio-group.entry-RHP5GNWU.js +142 -0
- package/dist/ui-radio.entry-5WRWPSTK.js +96 -0
- package/dist/ui-search-result-row.entry-IKJB2SJJ.js +50 -0
- package/dist/ui-search-shell.entry-ZIWF4ZHH.js +41 -0
- package/dist/ui-select.entry-N5TIKHR7.js +111 -0
- package/dist/ui-switch.entry-WUSZTXIR.js +75 -0
- package/dist/ui-tabs.entry-UFAVAQIF.js +124 -0
- package/dist/ui-textarea.entry-BYT47RAQ.js +117 -0
- package/dist/ui-toast-region.entry-6UYR3ZU2.js +78 -0
- package/dist/ui-tooltip.entry-YS7UX4FS.js +145 -0
- package/dist/ui-top-bar.entry-V27H6NFO.js +49 -0
- package/editor/chunk-JKRA4D4W.js +435 -0
- package/editor/chunk-NOOV344H.js +783 -0
- package/editor/extensions/index.d.ts +78 -0
- package/editor/extensions/index.js +28 -0
- package/editor/index.d.ts +7 -0
- package/editor/index.js +29 -0
- package/editor/table-overlay-DTr3KC9e.d.ts +12 -0
- package/editor/ui.d.ts +48 -0
- package/editor/ui.js +1 -0
- package/editor.css +662 -0
- package/layout/index.cjs +207 -0
- package/layout/index.css +166 -0
- package/layout/index.d.cts +3 -0
- package/layout/index.d.ts +3 -0
- package/layout/index.js +182 -0
- package/layout.css +124 -0
- package/loader/cdn.js +1 -0
- package/loader/index.cjs.js +1 -0
- package/loader/index.d.ts +24 -0
- package/loader/index.es2017.js +1 -0
- package/loader/index.js +2 -0
- package/package.json +244 -0
- package/styles.css +899 -0
- package/theme-dark.css +59 -0
- package/theme-high-contrast.css +21 -0
- package/theme-light.css +30 -0
- package/tokens.css +148 -0
- package/vue/chunk-J4UBEIIL.js +83 -0
- package/vue/editor/index.d.ts +89 -0
- package/vue/editor/index.js +125 -0
- package/vue/index.d.ts +167 -0
- package/vue/index.js +113 -0
package/editor.css
ADDED
|
@@ -0,0 +1,662 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Looma editor styles (tokens-based).
|
|
3
|
+
* Tables, context menu, insert-table grid, slash menu. Use with ProseMirror/Tiptap content.
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
/* Slash menu */
|
|
7
|
+
ui-editor-slash-menu {
|
|
8
|
+
user-select: none;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
/* Toolbar shell */
|
|
12
|
+
ui-editor-toolbar {
|
|
13
|
+
position: sticky;
|
|
14
|
+
top: 0;
|
|
15
|
+
z-index: var(--ui-editor-toolbar-z-index, 10);
|
|
16
|
+
display: flex;
|
|
17
|
+
align-items: center;
|
|
18
|
+
justify-content: flex-start;
|
|
19
|
+
gap: var(--ui-editor-toolbar-gap, 2px);
|
|
20
|
+
padding:
|
|
21
|
+
var(--ui-editor-toolbar-padding-block, 6px)
|
|
22
|
+
var(--ui-editor-toolbar-padding-inline, 12px);
|
|
23
|
+
min-height: var(--ui-editor-toolbar-min-height, 48px);
|
|
24
|
+
overflow-x: auto;
|
|
25
|
+
-webkit-overflow-scrolling: touch;
|
|
26
|
+
scrollbar-width: none;
|
|
27
|
+
white-space: nowrap;
|
|
28
|
+
background: var(--ui-editor-toolbar-bg, var(--ui-surface, #fff));
|
|
29
|
+
border-bottom: 1px solid var(--ui-editor-toolbar-border, var(--ui-border, #e5e7eb));
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
ui-editor-toolbar > * {
|
|
33
|
+
flex: 0 0 auto;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
ui-editor-toolbar::-webkit-scrollbar {
|
|
37
|
+
display: none;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
@media (max-width: 767px) {
|
|
41
|
+
ui-editor-toolbar {
|
|
42
|
+
position: fixed;
|
|
43
|
+
top: auto;
|
|
44
|
+
bottom: env(safe-area-inset-bottom);
|
|
45
|
+
left: 0;
|
|
46
|
+
right: 0;
|
|
47
|
+
min-height: var(--ui-editor-toolbar-mobile-min-height, 56px);
|
|
48
|
+
border-top: 1px solid var(--ui-editor-toolbar-border, var(--ui-border, #e5e7eb));
|
|
49
|
+
border-bottom: none;
|
|
50
|
+
box-shadow: var(--ui-editor-toolbar-mobile-shadow, 0 -2px 8px rgb(0 0 0 / 0.06));
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.ui-editor-toolbar__divider {
|
|
55
|
+
width: 1px;
|
|
56
|
+
height: 20px;
|
|
57
|
+
background: var(--ui-editor-toolbar-divider, var(--ui-border, #e5e7eb));
|
|
58
|
+
flex-shrink: 0;
|
|
59
|
+
margin: 0 var(--ui-editor-toolbar-divider-margin, 4px);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.ui-editor-slash-menu {
|
|
63
|
+
background: var(--ui-surface, #fff);
|
|
64
|
+
border: 1px solid var(--ui-border, #e5e7eb);
|
|
65
|
+
border-radius: var(--ui-radius-xl, 1rem);
|
|
66
|
+
box-shadow: var(--ui-shadow-lg, 0 8px 24px rgb(0 0 0 / 0.12));
|
|
67
|
+
overflow: hidden;
|
|
68
|
+
display: flex;
|
|
69
|
+
flex-direction: column;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
@media (max-width: 767px) {
|
|
73
|
+
.ui-editor-slash-menu {
|
|
74
|
+
border-radius: var(--ui-radius-xl, 1rem) var(--ui-radius-xl, 1rem) 0 0;
|
|
75
|
+
border-bottom: none;
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.ui-editor-slash-menu__header {
|
|
80
|
+
display: none;
|
|
81
|
+
align-items: center;
|
|
82
|
+
gap: var(--ui-space-2, 8px);
|
|
83
|
+
padding: var(--ui-space-3, 12px) var(--ui-space-4, 16px);
|
|
84
|
+
border-bottom: 1px solid var(--ui-border, #e5e7eb);
|
|
85
|
+
font-size: var(--ui-font-size-xs, 0.75rem);
|
|
86
|
+
color: var(--ui-text-muted, #6b7280);
|
|
87
|
+
font-weight: var(--ui-font-semibold, 600);
|
|
88
|
+
text-transform: uppercase;
|
|
89
|
+
letter-spacing: 0.05em;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
@media (max-width: 767px) {
|
|
93
|
+
.ui-editor-slash-menu__header {
|
|
94
|
+
display: flex;
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
.ui-editor-slash-menu__header-query {
|
|
99
|
+
background: var(--ui-surface-hover, #f3f4f6);
|
|
100
|
+
border-radius: var(--ui-radius-sm, 4px);
|
|
101
|
+
padding: 0.1em 0.4em;
|
|
102
|
+
font-family: var(--ui-font-family-mono, ui-monospace, monospace);
|
|
103
|
+
font-size: var(--ui-font-size-xs, 0.75rem);
|
|
104
|
+
color: var(--ui-accent, #3b82f6);
|
|
105
|
+
text-transform: none;
|
|
106
|
+
letter-spacing: 0;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
.ui-editor-slash-menu__list {
|
|
110
|
+
list-style: none;
|
|
111
|
+
margin: 0;
|
|
112
|
+
padding: var(--ui-space-1, 4px) 0;
|
|
113
|
+
overflow-y: auto;
|
|
114
|
+
max-height: 280px;
|
|
115
|
+
overscroll-behavior: contain;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
@media (max-width: 767px) {
|
|
119
|
+
.ui-editor-slash-menu__list {
|
|
120
|
+
max-height: calc(60dvh - 80px);
|
|
121
|
+
padding: var(--ui-space-1, 4px) 0 var(--ui-space-2, 8px);
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
.ui-editor-slash-menu__item {
|
|
126
|
+
display: flex;
|
|
127
|
+
align-items: center;
|
|
128
|
+
gap: var(--ui-space-3, 12px);
|
|
129
|
+
padding: var(--ui-space-2, 8px) var(--ui-space-3, 12px);
|
|
130
|
+
min-height: 44px;
|
|
131
|
+
cursor: pointer;
|
|
132
|
+
transition: background-color 120ms ease;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
.ui-editor-slash-menu__item--active {
|
|
136
|
+
background: var(--ui-accent-subtle, rgb(59 130 246 / 0.1));
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
.ui-editor-slash-menu__icon {
|
|
140
|
+
display: flex;
|
|
141
|
+
align-items: center;
|
|
142
|
+
justify-content: center;
|
|
143
|
+
width: 32px;
|
|
144
|
+
height: 32px;
|
|
145
|
+
background: var(--ui-surface-hover, #f3f4f6);
|
|
146
|
+
border: 1px solid var(--ui-border, #e5e7eb);
|
|
147
|
+
border-radius: var(--ui-radius-md, 6px);
|
|
148
|
+
font-size: var(--ui-font-size-sm, 0.875rem);
|
|
149
|
+
font-weight: var(--ui-font-bold, 700);
|
|
150
|
+
color: var(--ui-text-secondary, #4b5563);
|
|
151
|
+
font-family: var(--ui-font-family-mono, ui-monospace, monospace);
|
|
152
|
+
flex-shrink: 0;
|
|
153
|
+
line-height: 1;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
.ui-editor-slash-menu__item--active .ui-editor-slash-menu__icon {
|
|
157
|
+
background: var(--ui-accent, #3b82f6);
|
|
158
|
+
border-color: var(--ui-accent, #3b82f6);
|
|
159
|
+
color: var(--ui-accent-contrast, #fff);
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
.ui-editor-slash-menu__body {
|
|
163
|
+
display: flex;
|
|
164
|
+
min-width: 0;
|
|
165
|
+
flex-direction: column;
|
|
166
|
+
gap: 1px;
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
.ui-editor-slash-menu__title {
|
|
170
|
+
font-size: var(--ui-font-size-sm, 0.875rem);
|
|
171
|
+
font-weight: var(--ui-font-medium, 500);
|
|
172
|
+
color: var(--ui-text, #111827);
|
|
173
|
+
white-space: nowrap;
|
|
174
|
+
overflow: hidden;
|
|
175
|
+
text-overflow: ellipsis;
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
.ui-editor-slash-menu__description {
|
|
179
|
+
font-size: var(--ui-font-size-xs, 0.75rem);
|
|
180
|
+
color: var(--ui-text-muted, #6b7280);
|
|
181
|
+
white-space: nowrap;
|
|
182
|
+
overflow: hidden;
|
|
183
|
+
text-overflow: ellipsis;
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
.ui-editor-slash-menu__footer {
|
|
187
|
+
display: none;
|
|
188
|
+
padding: var(--ui-space-2, 8px) var(--ui-space-3, 12px);
|
|
189
|
+
border-top: 1px solid var(--ui-border, #e5e7eb);
|
|
190
|
+
font-size: var(--ui-font-size-xs, 0.75rem);
|
|
191
|
+
color: var(--ui-text-muted, #6b7280);
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
@media (min-width: 768px) {
|
|
195
|
+
.ui-editor-slash-menu__footer {
|
|
196
|
+
display: block;
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
.ui-editor-slash-menu kbd {
|
|
201
|
+
display: inline-flex;
|
|
202
|
+
align-items: center;
|
|
203
|
+
justify-content: center;
|
|
204
|
+
font-family: var(--ui-font-family-mono, ui-monospace, monospace);
|
|
205
|
+
font-size: 10px;
|
|
206
|
+
background: var(--ui-surface-hover, #f3f4f6);
|
|
207
|
+
border: 1px solid var(--ui-border, #e5e7eb);
|
|
208
|
+
border-radius: 3px;
|
|
209
|
+
padding: 0 3px;
|
|
210
|
+
color: var(--ui-text-secondary, #4b5563);
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
/* Table context menu */
|
|
214
|
+
.ui-editor-table-context-menu {
|
|
215
|
+
min-width: 12rem;
|
|
216
|
+
max-height: min(28rem, calc(100vh - 24px));
|
|
217
|
+
padding: var(--ui-space-1, 4px);
|
|
218
|
+
background: var(--ui-surface, #fff);
|
|
219
|
+
border: 1px solid var(--ui-border, #e5e7eb);
|
|
220
|
+
border-radius: var(--ui-radius-md, 6px);
|
|
221
|
+
box-shadow: var(--ui-shadow-lg, 0 10px 15px -3px rgb(0 0 0 / 0.1));
|
|
222
|
+
display: flex;
|
|
223
|
+
flex-direction: column;
|
|
224
|
+
gap: 2px;
|
|
225
|
+
overflow-y: auto;
|
|
226
|
+
overscroll-behavior: contain;
|
|
227
|
+
scrollbar-width: thin;
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
.ui-editor-table-context-menu__section {
|
|
231
|
+
display: flex;
|
|
232
|
+
flex-direction: column;
|
|
233
|
+
gap: 2px;
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
.ui-editor-table-context-menu button {
|
|
237
|
+
display: block;
|
|
238
|
+
width: 100%;
|
|
239
|
+
text-align: left;
|
|
240
|
+
padding: var(--ui-space-2, 8px) var(--ui-space-3, 12px);
|
|
241
|
+
border: none;
|
|
242
|
+
border-radius: var(--ui-radius-sm, 4px);
|
|
243
|
+
background: none;
|
|
244
|
+
font-size: var(--ui-text-sm, 0.875rem);
|
|
245
|
+
cursor: pointer;
|
|
246
|
+
color: var(--ui-text, #111);
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
.ui-editor-table-context-menu button:hover:not(:disabled) {
|
|
250
|
+
background: var(--ui-surface-hover, #f3f4f6);
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
.ui-editor-table-context-menu button[data-selected="true"] {
|
|
254
|
+
background: var(--ui-accent-subtle, rgb(59 130 246 / 0.1));
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
.ui-editor-table-context-menu button[data-tone="danger"] {
|
|
258
|
+
color: var(--ui-danger, #dc2626);
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
.ui-editor-table-context-menu__swatches {
|
|
262
|
+
display: grid;
|
|
263
|
+
grid-template-columns: repeat(3, minmax(0, 1fr));
|
|
264
|
+
gap: 4px;
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
.ui-editor-table-context-menu__swatch-button {
|
|
268
|
+
display: inline-flex;
|
|
269
|
+
align-items: center;
|
|
270
|
+
gap: var(--ui-space-2, 8px);
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
.ui-editor-table-context-menu__swatch {
|
|
274
|
+
display: inline-flex;
|
|
275
|
+
width: 1rem;
|
|
276
|
+
height: 1rem;
|
|
277
|
+
border-radius: 999px;
|
|
278
|
+
border: 1px solid var(--ui-border, #d1d5db);
|
|
279
|
+
background: var(--ui-editor-table-context-swatch, #fff);
|
|
280
|
+
box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.35);
|
|
281
|
+
flex-shrink: 0;
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
.ui-editor-table-context-menu__swatch--default {
|
|
285
|
+
position: relative;
|
|
286
|
+
background:
|
|
287
|
+
linear-gradient(
|
|
288
|
+
135deg,
|
|
289
|
+
transparent calc(50% - 1px),
|
|
290
|
+
var(--ui-text-muted, #6b7280) calc(50% - 1px),
|
|
291
|
+
var(--ui-text-muted, #6b7280) calc(50% + 1px),
|
|
292
|
+
transparent calc(50% + 1px)
|
|
293
|
+
),
|
|
294
|
+
var(--ui-surface, #fff);
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
.ui-editor-table-context-menu__swatch-label {
|
|
298
|
+
min-width: 0;
|
|
299
|
+
white-space: nowrap;
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
.ui-editor-table-context-menu__heading {
|
|
303
|
+
padding: var(--ui-space-1, 4px) var(--ui-space-3, 12px) var(--ui-space-1, 4px) var(--ui-space-2, 8px);
|
|
304
|
+
font-size: 0.6875rem;
|
|
305
|
+
font-weight: 700;
|
|
306
|
+
letter-spacing: 0.05em;
|
|
307
|
+
text-transform: uppercase;
|
|
308
|
+
color: var(--ui-text-muted, #6b7280);
|
|
309
|
+
}
|
|
310
|
+
|
|
311
|
+
.ui-editor-table-context-menu__sep {
|
|
312
|
+
height: 1px;
|
|
313
|
+
background: var(--ui-border, #e5e7eb);
|
|
314
|
+
margin: var(--ui-space-1, 4px) 0;
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
/* Table toolbar */
|
|
318
|
+
.ui-editor-table-toolbar {
|
|
319
|
+
display: inline-flex;
|
|
320
|
+
align-items: center;
|
|
321
|
+
gap: var(--ui-space-1, 4px);
|
|
322
|
+
padding: var(--ui-space-1, 4px);
|
|
323
|
+
background: color-mix(in srgb, var(--ui-surface, #fff) 94%, transparent);
|
|
324
|
+
border: 1px solid var(--ui-border, #e5e7eb);
|
|
325
|
+
border-radius: calc(var(--ui-radius-md, 6px) + 2px);
|
|
326
|
+
box-shadow: var(--ui-shadow-lg, 0 10px 15px -3px rgb(0 0 0 / 0.1));
|
|
327
|
+
backdrop-filter: blur(10px);
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
.ui-editor-table-toolbar__group {
|
|
331
|
+
display: inline-flex;
|
|
332
|
+
align-items: center;
|
|
333
|
+
gap: var(--ui-space-1, 4px);
|
|
334
|
+
}
|
|
335
|
+
|
|
336
|
+
.ui-editor-table-toolbar__sep {
|
|
337
|
+
width: 1px;
|
|
338
|
+
align-self: stretch;
|
|
339
|
+
background: var(--ui-border, #e5e7eb);
|
|
340
|
+
}
|
|
341
|
+
|
|
342
|
+
.ui-editor-table-toolbar__overflow {
|
|
343
|
+
position: relative;
|
|
344
|
+
}
|
|
345
|
+
|
|
346
|
+
.ui-editor-table-toolbar button {
|
|
347
|
+
display: inline-flex;
|
|
348
|
+
align-items: center;
|
|
349
|
+
justify-content: center;
|
|
350
|
+
min-height: 32px;
|
|
351
|
+
border: 1px solid transparent;
|
|
352
|
+
border-radius: var(--ui-radius-sm, 4px);
|
|
353
|
+
background: transparent;
|
|
354
|
+
color: var(--ui-text-primary, #111827);
|
|
355
|
+
cursor: pointer;
|
|
356
|
+
font-size: var(--ui-text-sm, 0.875rem);
|
|
357
|
+
font-weight: 500;
|
|
358
|
+
line-height: 1;
|
|
359
|
+
padding: var(--ui-space-1-5, 6px) var(--ui-space-2, 8px);
|
|
360
|
+
white-space: nowrap;
|
|
361
|
+
}
|
|
362
|
+
|
|
363
|
+
.ui-editor-table-toolbar button:hover {
|
|
364
|
+
background: var(--ui-surface-hover, #f3f4f6);
|
|
365
|
+
}
|
|
366
|
+
|
|
367
|
+
.ui-editor-table-toolbar button[data-active="true"] {
|
|
368
|
+
background: var(--ui-accent-soft, var(--ui-accent-subtle, #e8f0fb));
|
|
369
|
+
border-color: var(--ui-accent-solid, #0066cc);
|
|
370
|
+
color: var(--ui-accent-active, #003d7a);
|
|
371
|
+
}
|
|
372
|
+
|
|
373
|
+
.ui-editor-table-toolbar button[data-tone="danger"] {
|
|
374
|
+
color: var(--ui-danger, #dc2626);
|
|
375
|
+
}
|
|
376
|
+
|
|
377
|
+
.ui-editor-table-toolbar__more::after {
|
|
378
|
+
content: "▾";
|
|
379
|
+
margin-left: var(--ui-space-1, 4px);
|
|
380
|
+
font-size: 0.75em;
|
|
381
|
+
}
|
|
382
|
+
|
|
383
|
+
.ui-editor-table-toolbar__menu {
|
|
384
|
+
position: absolute;
|
|
385
|
+
top: calc(100% + var(--ui-space-2, 8px));
|
|
386
|
+
right: 0;
|
|
387
|
+
min-width: 12rem;
|
|
388
|
+
padding: var(--ui-space-1, 4px);
|
|
389
|
+
background: var(--ui-surface, #fff);
|
|
390
|
+
border: 1px solid var(--ui-border, #e5e7eb);
|
|
391
|
+
border-radius: var(--ui-radius-md, 6px);
|
|
392
|
+
box-shadow: var(--ui-shadow-lg, 0 10px 15px -3px rgb(0 0 0 / 0.1));
|
|
393
|
+
display: flex;
|
|
394
|
+
flex-direction: column;
|
|
395
|
+
gap: 2px;
|
|
396
|
+
z-index: 2;
|
|
397
|
+
}
|
|
398
|
+
|
|
399
|
+
.ui-editor-table-toolbar__menu-section + .ui-editor-table-toolbar__menu-section {
|
|
400
|
+
margin-top: var(--ui-space-1, 4px);
|
|
401
|
+
padding-top: var(--ui-space-1, 4px);
|
|
402
|
+
border-top: 1px solid color-mix(in srgb, var(--ui-border, #e5e7eb) 80%, transparent);
|
|
403
|
+
}
|
|
404
|
+
|
|
405
|
+
.ui-editor-table-toolbar__menu-heading {
|
|
406
|
+
padding: var(--ui-space-1, 4px) var(--ui-space-2, 8px);
|
|
407
|
+
font-size: 0.6875rem;
|
|
408
|
+
font-weight: 700;
|
|
409
|
+
letter-spacing: 0.05em;
|
|
410
|
+
text-transform: uppercase;
|
|
411
|
+
color: var(--ui-text-muted, #6b7280);
|
|
412
|
+
}
|
|
413
|
+
|
|
414
|
+
.ui-editor-table-toolbar__menu button {
|
|
415
|
+
display: block;
|
|
416
|
+
width: 100%;
|
|
417
|
+
text-align: left;
|
|
418
|
+
}
|
|
419
|
+
|
|
420
|
+
/* Insert table grid */
|
|
421
|
+
.ui-editor-insert-table-grid {
|
|
422
|
+
padding: var(--ui-space-3, 12px);
|
|
423
|
+
background: var(--ui-surface, #fff);
|
|
424
|
+
border: 1px solid var(--ui-border, #e5e7eb);
|
|
425
|
+
border-radius: var(--ui-radius-md, 6px);
|
|
426
|
+
box-shadow: var(--ui-shadow-lg, 0 10px 15px -3px rgb(0 0 0 / 0.1));
|
|
427
|
+
}
|
|
428
|
+
|
|
429
|
+
.ui-editor-insert-table-grid__hint {
|
|
430
|
+
margin: 0 0 var(--ui-space-2, 8px);
|
|
431
|
+
font-size: var(--ui-text-sm, 0.875rem);
|
|
432
|
+
color: var(--ui-text-muted, #6b7280);
|
|
433
|
+
}
|
|
434
|
+
|
|
435
|
+
.ui-editor-insert-table-grid__grid {
|
|
436
|
+
display: grid;
|
|
437
|
+
grid-template-columns: repeat(8, 1.25rem);
|
|
438
|
+
grid-template-rows: repeat(8, 1.25rem);
|
|
439
|
+
gap: 2px;
|
|
440
|
+
margin-bottom: var(--ui-space-2, 8px);
|
|
441
|
+
}
|
|
442
|
+
|
|
443
|
+
.ui-editor-insert-table-grid__cell {
|
|
444
|
+
width: 1.25rem;
|
|
445
|
+
height: 1.25rem;
|
|
446
|
+
padding: 0;
|
|
447
|
+
border: 1px solid var(--ui-border, #e5e7eb);
|
|
448
|
+
border-radius: 2px;
|
|
449
|
+
background: var(--ui-surface, #fff);
|
|
450
|
+
cursor: pointer;
|
|
451
|
+
}
|
|
452
|
+
|
|
453
|
+
.ui-editor-insert-table-grid__cell--selected {
|
|
454
|
+
background: var(--ui-accent-solid, var(--ui-accent, #0066cc));
|
|
455
|
+
border-color: var(--ui-accent-solid, var(--ui-accent, #0066cc));
|
|
456
|
+
}
|
|
457
|
+
|
|
458
|
+
.ui-editor-insert-table-grid__header {
|
|
459
|
+
display: block;
|
|
460
|
+
margin-bottom: var(--ui-space-2, 8px);
|
|
461
|
+
font-size: var(--ui-text-sm, 0.875rem);
|
|
462
|
+
cursor: pointer;
|
|
463
|
+
}
|
|
464
|
+
|
|
465
|
+
.ui-editor-insert-table-grid [data-insert-table] {
|
|
466
|
+
width: 100%;
|
|
467
|
+
padding: var(--ui-space-2, 8px) var(--ui-space-3, 12px);
|
|
468
|
+
border: 1px solid var(--ui-border, #e5e7eb);
|
|
469
|
+
border-radius: var(--ui-radius-sm, 4px);
|
|
470
|
+
background: var(--ui-accent-solid, var(--ui-accent, #0066cc));
|
|
471
|
+
color: var(--ui-accent-contrast, #fff);
|
|
472
|
+
font-size: var(--ui-text-sm, 0.875rem);
|
|
473
|
+
cursor: pointer;
|
|
474
|
+
}
|
|
475
|
+
|
|
476
|
+
.ui-editor-insert-table-grid [data-insert-table]:hover {
|
|
477
|
+
filter: brightness(1.05);
|
|
478
|
+
}
|
|
479
|
+
|
|
480
|
+
/* Table overlay controls */
|
|
481
|
+
.ui-editor-table-overlay {
|
|
482
|
+
position: relative;
|
|
483
|
+
width: 100%;
|
|
484
|
+
height: 100%;
|
|
485
|
+
pointer-events: none;
|
|
486
|
+
}
|
|
487
|
+
|
|
488
|
+
.ui-editor-table-overlay__rows,
|
|
489
|
+
.ui-editor-table-overlay__cols {
|
|
490
|
+
pointer-events: none;
|
|
491
|
+
position: absolute;
|
|
492
|
+
display: grid;
|
|
493
|
+
gap: 0;
|
|
494
|
+
}
|
|
495
|
+
|
|
496
|
+
.ui-editor-table-overlay__rows {
|
|
497
|
+
inset: 0;
|
|
498
|
+
width: 100%;
|
|
499
|
+
grid-template-rows: repeat(var(--ui-editor-table-overlay-row-boundaries, 1), 1fr);
|
|
500
|
+
}
|
|
501
|
+
|
|
502
|
+
.ui-editor-table-overlay__cols {
|
|
503
|
+
inset: 0;
|
|
504
|
+
height: 100%;
|
|
505
|
+
grid-template-columns: repeat(var(--ui-editor-table-overlay-col-boundaries, 1), 1fr);
|
|
506
|
+
}
|
|
507
|
+
|
|
508
|
+
.ui-editor-table-overlay__control {
|
|
509
|
+
pointer-events: auto;
|
|
510
|
+
position: relative;
|
|
511
|
+
border: none;
|
|
512
|
+
background: none;
|
|
513
|
+
cursor: pointer;
|
|
514
|
+
outline: none;
|
|
515
|
+
transition:
|
|
516
|
+
opacity var(--ui-motion-fast, 120ms) ease,
|
|
517
|
+
transform var(--ui-motion-fast, 120ms) ease,
|
|
518
|
+
color var(--ui-motion-fast, 120ms) ease;
|
|
519
|
+
}
|
|
520
|
+
|
|
521
|
+
.ui-editor-table-overlay__handle {
|
|
522
|
+
position: absolute;
|
|
523
|
+
display: inline-flex;
|
|
524
|
+
align-items: center;
|
|
525
|
+
justify-content: center;
|
|
526
|
+
width: 20px;
|
|
527
|
+
height: 20px;
|
|
528
|
+
border: 1px solid var(--ui-border, #e5e7eb);
|
|
529
|
+
border-radius: 999px;
|
|
530
|
+
background: color-mix(in srgb, var(--ui-surface, #fff) 94%, transparent);
|
|
531
|
+
color: var(--ui-text-muted, #6b7280);
|
|
532
|
+
font-size: 14px;
|
|
533
|
+
line-height: 1;
|
|
534
|
+
box-shadow: var(--ui-shadow-sm, 0 2px 8px rgb(0 0 0 / 0.08));
|
|
535
|
+
opacity: 0;
|
|
536
|
+
transition:
|
|
537
|
+
opacity var(--ui-motion-fast, 120ms) ease,
|
|
538
|
+
transform var(--ui-motion-fast, 120ms) ease,
|
|
539
|
+
color var(--ui-motion-fast, 120ms) ease;
|
|
540
|
+
pointer-events: none;
|
|
541
|
+
}
|
|
542
|
+
|
|
543
|
+
.ui-editor-table-overlay__control:is([data-active="true"], :focus-visible) .ui-editor-table-overlay__handle {
|
|
544
|
+
opacity: 1;
|
|
545
|
+
color: var(--ui-accent, #3b82f6);
|
|
546
|
+
transform: scale(1.04);
|
|
547
|
+
}
|
|
548
|
+
|
|
549
|
+
.ui-editor-table-overlay__control--row {
|
|
550
|
+
justify-self: stretch;
|
|
551
|
+
align-self: center;
|
|
552
|
+
width: 100%;
|
|
553
|
+
height: 16px;
|
|
554
|
+
margin-top: -8px;
|
|
555
|
+
}
|
|
556
|
+
|
|
557
|
+
.ui-editor-table-overlay__control--row .ui-editor-table-overlay__handle {
|
|
558
|
+
top: 50%;
|
|
559
|
+
left: calc(-1 * var(--ui-space-6, 24px));
|
|
560
|
+
transform: translateY(-50%);
|
|
561
|
+
}
|
|
562
|
+
|
|
563
|
+
.ui-editor-table-overlay__control--row::after {
|
|
564
|
+
content: "";
|
|
565
|
+
position: absolute;
|
|
566
|
+
left: 0;
|
|
567
|
+
right: 0;
|
|
568
|
+
top: 50%;
|
|
569
|
+
height: 2px;
|
|
570
|
+
transform: translateY(-50%);
|
|
571
|
+
background: color-mix(in srgb, var(--ui-accent, #3b82f6) 45%, transparent);
|
|
572
|
+
border-radius: 999px;
|
|
573
|
+
opacity: 0;
|
|
574
|
+
transition:
|
|
575
|
+
opacity var(--ui-motion-fast, 120ms) ease,
|
|
576
|
+
background var(--ui-motion-fast, 120ms) ease;
|
|
577
|
+
}
|
|
578
|
+
|
|
579
|
+
.ui-editor-table-overlay__control--row:is([data-active="true"], :focus-visible)::after {
|
|
580
|
+
opacity: 1;
|
|
581
|
+
background: color-mix(in srgb, var(--ui-accent, #3b82f6) 70%, transparent);
|
|
582
|
+
}
|
|
583
|
+
|
|
584
|
+
.ui-editor-table-overlay__control--col {
|
|
585
|
+
justify-self: center;
|
|
586
|
+
align-self: stretch;
|
|
587
|
+
width: 16px;
|
|
588
|
+
height: 100%;
|
|
589
|
+
margin-left: -8px;
|
|
590
|
+
}
|
|
591
|
+
|
|
592
|
+
.ui-editor-table-overlay__control--col .ui-editor-table-overlay__handle {
|
|
593
|
+
top: calc(-1 * var(--ui-space-6, 24px));
|
|
594
|
+
left: 50%;
|
|
595
|
+
transform: translateX(-50%);
|
|
596
|
+
}
|
|
597
|
+
|
|
598
|
+
.ui-editor-table-overlay__control--col::after {
|
|
599
|
+
content: "";
|
|
600
|
+
position: absolute;
|
|
601
|
+
top: 0;
|
|
602
|
+
bottom: 0;
|
|
603
|
+
left: 50%;
|
|
604
|
+
width: 2px;
|
|
605
|
+
transform: translateX(-50%);
|
|
606
|
+
background: color-mix(in srgb, var(--ui-accent, #3b82f6) 45%, transparent);
|
|
607
|
+
border-radius: 999px;
|
|
608
|
+
opacity: 0;
|
|
609
|
+
transition:
|
|
610
|
+
opacity var(--ui-motion-fast, 120ms) ease,
|
|
611
|
+
background var(--ui-motion-fast, 120ms) ease;
|
|
612
|
+
}
|
|
613
|
+
|
|
614
|
+
.ui-editor-table-overlay__control--col:is([data-active="true"], :focus-visible)::after {
|
|
615
|
+
opacity: 1;
|
|
616
|
+
background: color-mix(in srgb, var(--ui-accent, #3b82f6) 70%, transparent);
|
|
617
|
+
}
|
|
618
|
+
|
|
619
|
+
.ProseMirror .tableWrapper {
|
|
620
|
+
max-width: 100%;
|
|
621
|
+
overflow-x: hidden;
|
|
622
|
+
overflow-y: visible;
|
|
623
|
+
}
|
|
624
|
+
|
|
625
|
+
/* ProseMirror table (for when Looma editor content is rendered) */
|
|
626
|
+
.ProseMirror table {
|
|
627
|
+
border-collapse: collapse;
|
|
628
|
+
margin: 0;
|
|
629
|
+
width: 100% !important;
|
|
630
|
+
min-width: 100%;
|
|
631
|
+
max-width: 100% !important;
|
|
632
|
+
table-layout: fixed;
|
|
633
|
+
}
|
|
634
|
+
|
|
635
|
+
.ProseMirror th,
|
|
636
|
+
.ProseMirror td {
|
|
637
|
+
border: 1px solid var(--ui-border, #e5e7eb);
|
|
638
|
+
padding: var(--ui-space-2, 8px) var(--ui-space-3, 12px);
|
|
639
|
+
vertical-align: top;
|
|
640
|
+
min-width: 80px;
|
|
641
|
+
text-align: left;
|
|
642
|
+
overflow-wrap: anywhere;
|
|
643
|
+
}
|
|
644
|
+
|
|
645
|
+
.ProseMirror th {
|
|
646
|
+
font-weight: 600;
|
|
647
|
+
background: var(--ui-surface-hover, #f3f4f6);
|
|
648
|
+
}
|
|
649
|
+
|
|
650
|
+
.ProseMirror .selectedCell {
|
|
651
|
+
background: var(--ui-accent-subtle, rgba(59, 130, 246, 0.1));
|
|
652
|
+
}
|
|
653
|
+
|
|
654
|
+
.ProseMirror .column-resize-handle {
|
|
655
|
+
position: absolute;
|
|
656
|
+
right: -2px;
|
|
657
|
+
top: 0;
|
|
658
|
+
bottom: 0;
|
|
659
|
+
width: 4px;
|
|
660
|
+
cursor: col-resize;
|
|
661
|
+
background: var(--ui-accent, #3b82f6);
|
|
662
|
+
}
|