@june-ai/june-ui 0.2.4 → 0.2.5

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/june.css CHANGED
@@ -28,121 +28,439 @@
28
28
  border-radius: 8px;
29
29
  color: var(--june-danger, #b91c1c);
30
30
  }
31
- .june-doc {
32
- --jd-bg: #ffffff;
33
- --jd-fg: #111827;
34
- --jd-muted: #6b7280;
35
- --jd-border: #e5e7eb;
36
- --jd-surface: #f9fafb;
37
- --jd-accent: #4f46e5;
38
- --jd-warn-bg: #fffbeb;
39
- --jd-warn-border: #fcd34d;
40
- --jd-danger: #b91c1c;
41
- box-sizing: border-box;
42
- display: flex;
43
- flex-direction: column;
44
- width: 100%;
45
- max-width: 100%;
46
- min-width: 0;
47
- margin: 8px 0;
48
- color: var(--jd-fg);
49
- background: var(--jd-bg);
50
- border: 1px solid var(--jd-border);
51
- border-radius: 10px;
52
- overflow: hidden;
53
- font-family: inherit;
54
- }
55
- .june-doc[data-theme="dark"] {
56
- --jd-bg: #0f1420;
57
- --jd-fg: #f3f4f6;
58
- --jd-muted: #9ca3af;
59
- --jd-border: #263043;
60
- --jd-surface: #151b2a;
61
- --jd-accent: #818cf8;
62
- --jd-warn-bg: #2a2208;
63
- --jd-warn-border: #8a6d0b;
64
- --jd-danger: #f87171;
65
- }
66
- .june-doc *, .june-doc *::before, .june-doc *::after { box-sizing: border-box; }
67
-
68
- .june-doc__header { display: flex; align-items: center; gap: 8px; padding: 12px 16px 4px; }
69
- .june-doc__title {
70
- flex: 1; min-width: 0; padding: 4px 0; font: inherit; font-size: 1.25rem; font-weight: 700;
71
- color: inherit; background: transparent; border: 0; border-bottom: 1px solid transparent; outline: none;
72
- }
73
- .june-doc__title:focus { border-bottom-color: var(--jd-accent); }
74
- .june-doc__badge {
75
- flex: none; padding: 2px 8px; font-size: 0.75rem; color: var(--jd-muted);
76
- background: var(--jd-surface); border: 1px solid var(--jd-border); border-radius: 999px;
77
- }
78
-
79
- .june-doc__banner {
80
- display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px;
81
- margin: 8px 16px; padding: 8px 12px; font-size: 0.875rem;
82
- background: var(--jd-warn-bg); border: 1px solid var(--jd-warn-border); border-radius: 8px;
83
- }
84
- .june-doc__banner-actions { display: flex; flex-wrap: wrap; gap: 6px; }
85
-
86
- .june-doc__toolbar {
87
- display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 8px 12px;
88
- background: var(--jd-surface); border-top: 1px solid var(--jd-border); border-bottom: 1px solid var(--jd-border);
89
- }
90
- .june-doc__group { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
91
- .june-doc__group--end { margin-left: auto; }
92
- .june-doc__btn, .june-doc__select, .june-doc__input {
93
- min-height: 30px; padding: 3px 9px; font: inherit; font-size: 0.8125rem; color: inherit;
94
- background: var(--jd-bg); border: 1px solid var(--jd-border); border-radius: 6px;
95
- }
96
- .june-doc__btn { cursor: pointer; }
97
- .june-doc__btn:hover:not(:disabled) { border-color: var(--jd-accent); }
98
- .june-doc__btn[data-active] { color: var(--jd-bg); background: var(--jd-accent); border-color: var(--jd-accent); }
99
- .june-doc__btn:disabled, .june-doc__select:disabled { opacity: 0.45; cursor: not-allowed; }
100
- .june-doc__btn:focus-visible, .june-doc__select:focus-visible, .june-doc__input:focus-visible,
101
- .june-doc__title:focus-visible { outline: 2px solid var(--jd-accent); outline-offset: 1px; }
102
- .june-doc__linkbar { display: flex; flex-wrap: wrap; gap: 6px; width: 100%; }
103
- .june-doc__input { flex: 1; min-width: 180px; }
104
-
105
- .june-doc__content { padding: 4px 16px 12px; max-height: min(70vh, 720px); overflow: auto; }
106
- .june-doc__prose { min-height: 160px; outline: none; line-height: 1.65; overflow-wrap: anywhere; }
107
- .june-doc__prose > :first-child { margin-top: 0.5em; }
108
- .june-doc__prose h1 { font-size: 1.6rem; line-height: 1.25; margin: 1.2em 0 0.4em; }
109
- .june-doc__prose h2 { font-size: 1.3rem; line-height: 1.3; margin: 1.1em 0 0.4em; }
110
- .june-doc__prose h3 { font-size: 1.1rem; line-height: 1.35; margin: 1em 0 0.3em; }
111
- .june-doc__prose p { margin: 0.6em 0; }
112
- .june-doc__prose ul, .june-doc__prose ol { margin: 0.6em 0; padding-left: 1.5em; }
113
- .june-doc__prose blockquote { margin: 0.8em 0; padding-left: 1em; color: var(--jd-muted); border-left: 3px solid var(--jd-border); }
114
- .june-doc__prose a { color: var(--jd-accent); text-decoration: underline; }
115
- .june-doc__prose code { padding: 1px 4px; font-size: 0.9em; background: var(--jd-surface); border-radius: 4px; }
116
- .june-doc__prose pre { padding: 10px 12px; overflow: auto; background: var(--jd-surface); border-radius: 6px; }
117
- .june-doc__prose pre code { padding: 0; background: transparent; }
118
- .june-doc__prose hr { border: 0; border-top: 1px solid var(--jd-border); margin: 1.2em 0; }
119
- .june-doc__prose table { width: 100%; margin: 0.8em 0; border-collapse: collapse; table-layout: fixed; }
120
- .june-doc__prose th, .june-doc__prose td {
121
- position: relative; padding: 6px 10px; text-align: left; vertical-align: top; border: 1px solid var(--jd-border);
122
- }
123
- .june-doc__prose th { font-weight: 600; background: var(--jd-surface); }
124
- .june-doc__prose .selectedCell::after { content: ""; position: absolute; inset: 0; background: color-mix(in srgb, var(--jd-accent) 18%, transparent); pointer-events: none; }
125
-
126
- .june-doc__footer {
127
- display: flex; justify-content: space-between; gap: 8px; padding: 6px 16px;
128
- font-size: 0.75rem; color: var(--jd-muted); border-top: 1px solid var(--jd-border);
129
- }
130
-
131
- .june-doc--draft, .june-doc--error { padding: 14px 16px; gap: 8px; }
132
- .june-doc__draft-title { margin: 0; font-weight: 700; }
133
- .june-doc__draft-text { margin: 0; color: var(--jd-muted); }
134
- .june-doc--error .june-doc__draft-text { color: var(--jd-danger); }
135
- .june-doc__raw { margin: 8px 0 0; max-height: 240px; padding: 8px; overflow: auto; white-space: pre-wrap; background: var(--jd-surface); border-radius: 6px; }
136
- .june-doc__pulse { display: flex; flex-direction: column; gap: 6px; }
137
- .june-doc__pulse span { height: 10px; background: var(--jd-surface); border-radius: 4px; animation: june-doc-pulse 1.2s ease-in-out infinite; }
138
- .june-doc__pulse span:nth-child(2) { width: 85%; animation-delay: 0.15s; }
139
- .june-doc__pulse span:nth-child(3) { width: 60%; animation-delay: 0.3s; }
140
- @keyframes june-doc-pulse { 0%, 100% { opacity: 0.45; } 50% { opacity: 1; } }
141
- @media (prefers-reduced-motion: reduce) { .june-doc__pulse span { animation: none; } }
142
-
143
- @media (max-width: 640px) {
144
- .june-doc__toolbar { flex-wrap: nowrap; overflow-x: auto; }
145
- .june-doc__group { flex: none; }
146
- .june-doc__group--end { margin-left: 0; }
147
- .june-doc__content { padding: 4px 12px 10px; }
148
- }
31
+ /* ============================== June Document Editor ============================== */
32
+ .june-doc {
33
+ --jd-bg: #ffffff;
34
+ --jd-fg: #111827;
35
+ --jd-muted: #6b7280;
36
+ --jd-faint: #9ca3af;
37
+ --jd-border: #e5e7eb;
38
+ --jd-border-strong: #d1d5db;
39
+ --jd-surface: #f9fafb;
40
+ --jd-hover: #f3f4f6;
41
+ --jd-pressed: #e5e7eb;
42
+ --jd-canvas: #eceff3;
43
+ --jd-page: #ffffff;
44
+ --jd-page-fg: #111827;
45
+ --jd-page-line: #dfe3e8;
46
+ --jd-accent: #4f46e5;
47
+ --jd-solid: #0b0b0f;
48
+ --jd-solid-fg: #ffffff;
49
+ --jd-warn-bg: #fffbeb;
50
+ --jd-warn-border: #fcd34d;
51
+ --jd-danger: #b91c1c;
52
+ --jd-ok: #15803d;
53
+ --jd-match: #fde68a;
54
+ --jd-match-active: #f59e0b;
55
+ --jd-shadow: 0 1px 2px rgba(16, 24, 40, 0.06), 0 8px 24px rgba(16, 24, 40, 0.08);
56
+ --jd-pop-shadow: 0 12px 32px rgba(16, 24, 40, 0.16), 0 2px 6px rgba(16, 24, 40, 0.08);
57
+ --jd-radius: 12px;
58
+ box-sizing: border-box;
59
+ position: relative;
60
+ display: flex;
61
+ flex-direction: column;
62
+ width: 100%;
63
+ max-width: 100%;
64
+ min-width: 0;
65
+ margin: 8px 0;
66
+ color: var(--jd-fg);
67
+ background: var(--jd-bg);
68
+ border: 1px solid var(--jd-border);
69
+ border-radius: var(--jd-radius);
70
+ box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
71
+ font-family: inherit;
72
+ font-size: 14px;
73
+ }
74
+ .june-doc[data-theme="dark"] {
75
+ --jd-bg: #0f1420;
76
+ --jd-fg: #f3f4f6;
77
+ --jd-muted: #9ca3af;
78
+ --jd-faint: #6b7280;
79
+ --jd-border: #263043;
80
+ --jd-border-strong: #334155;
81
+ --jd-surface: #151b2a;
82
+ --jd-hover: #1c2436;
83
+ --jd-pressed: #263043;
84
+ --jd-canvas: #0a0e17;
85
+ --jd-page: #151b2a;
86
+ --jd-page-fg: #e5e7eb;
87
+ --jd-page-line: #263043;
88
+ --jd-accent: #818cf8;
89
+ --jd-solid: #f3f4f6;
90
+ --jd-solid-fg: #0b0b0f;
91
+ --jd-warn-bg: #2a2208;
92
+ --jd-warn-border: #8a6d0b;
93
+ --jd-danger: #f87171;
94
+ --jd-ok: #4ade80;
95
+ --jd-match: #854d0e;
96
+ --jd-match-active: #d97706;
97
+ --jd-shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 24px rgba(0, 0, 0, 0.35);
98
+ --jd-pop-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
99
+ }
100
+ .june-doc *, .june-doc *::before, .june-doc *::after { box-sizing: border-box; }
101
+ .june-doc__icon { flex: none; display: block; }
102
+
103
+ /* ---------- full screen ---------- */
104
+ .june-doc--fullscreen {
105
+ position: fixed;
106
+ inset: 0;
107
+ z-index: 2147483000;
108
+ margin: 0;
109
+ border: 0;
110
+ border-radius: 0;
111
+ box-shadow: none;
112
+ }
113
+ .june-doc--fullscreen .june-doc__canvas { max-height: none; flex: 1 1 auto; }
114
+
115
+ /* ---------- header / app bar ---------- */
116
+ .june-doc__header {
117
+ display: flex;
118
+ align-items: center;
119
+ gap: 10px;
120
+ min-height: 56px;
121
+ padding: 10px 14px 10px 16px;
122
+ border-bottom: 1px solid var(--jd-border);
123
+ }
124
+ .june-doc__doc-icon {
125
+ display: inline-flex; align-items: center; justify-content: center;
126
+ width: 30px; height: 30px; flex: none;
127
+ color: var(--jd-muted); background: var(--jd-surface);
128
+ border: 1px solid var(--jd-border); border-radius: 8px;
129
+ }
130
+ .june-doc__title {
131
+ flex: 1; min-width: 60px; padding: 4px 6px; margin-left: -6px;
132
+ font: inherit; font-size: 1.0625rem; font-weight: 600; letter-spacing: -0.01em;
133
+ color: inherit; background: transparent;
134
+ border: 1px solid transparent; border-radius: 6px; outline: none;
135
+ text-overflow: ellipsis;
136
+ }
137
+ .june-doc__title:hover:not(:disabled) { background: var(--jd-hover); }
138
+ .june-doc__title:focus { background: var(--jd-bg); border-color: var(--jd-accent); }
139
+ .june-doc__badge {
140
+ display: inline-flex; align-items: center; gap: 4px; flex: none;
141
+ padding: 3px 9px; font-size: 0.75rem; font-weight: 500; color: var(--jd-accent);
142
+ background: color-mix(in srgb, var(--jd-accent) 10%, transparent);
143
+ border: 1px solid color-mix(in srgb, var(--jd-accent) 25%, transparent);
144
+ border-radius: 999px;
145
+ }
146
+ .june-doc__header-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; flex: none; }
147
+
148
+ /* ---------- buttons & inputs ---------- */
149
+ .june-doc__btn, .june-doc__select, .june-doc__input {
150
+ min-height: 32px; padding: 4px 10px;
151
+ font: inherit; font-size: 0.8125rem; color: inherit;
152
+ background: var(--jd-bg); border: 1px solid var(--jd-border); border-radius: 8px;
153
+ }
154
+ .june-doc__btn {
155
+ display: inline-flex; align-items: center; justify-content: center; gap: 6px;
156
+ cursor: pointer; white-space: nowrap;
157
+ transition: background-color 120ms ease, border-color 120ms ease, color 120ms ease;
158
+ }
159
+ .june-doc__btn:hover:not(:disabled) { background: var(--jd-hover); border-color: var(--jd-border-strong); }
160
+ .june-doc__btn:disabled, .june-doc__select:disabled { opacity: 0.4; cursor: not-allowed; }
161
+ .june-doc__btn:focus-visible, .june-doc__select:focus-visible, .june-doc__input:focus-visible,
162
+ .june-doc__title:focus-visible, .june-doc__zoom-value:focus-visible, .june-doc__menu-item:focus-visible {
163
+ outline: 2px solid var(--jd-accent); outline-offset: 1px;
164
+ }
165
+ .june-doc__btn--icon { width: 32px; padding: 0; }
166
+ .june-doc__btn--ghost { background: transparent; border-color: transparent; }
167
+ .june-doc__btn--outline { padding: 4px 14px; font-weight: 500; border-color: var(--jd-border-strong); }
168
+ .june-doc__btn--solid {
169
+ padding: 4px 14px; font-weight: 600;
170
+ color: var(--jd-solid-fg); background: var(--jd-solid); border-color: var(--jd-solid);
171
+ }
172
+ .june-doc__btn--solid:hover:not(:disabled) {
173
+ color: var(--jd-solid-fg); background: color-mix(in srgb, var(--jd-solid) 85%, var(--jd-bg)); border-color: var(--jd-solid);
174
+ }
175
+ .june-doc__btn--primary { color: #fff; background: var(--jd-accent); border-color: var(--jd-accent); }
176
+ .june-doc__btn--primary:hover:not(:disabled) { color: #fff; background: color-mix(in srgb, var(--jd-accent) 88%, #000); border-color: var(--jd-accent); }
177
+ .june-doc__btn--danger { color: var(--jd-danger); }
178
+ .june-doc__select { padding-right: 6px; cursor: pointer; }
179
+ .june-doc__input { width: 100%; }
180
+ .june-doc__input::placeholder { color: var(--jd-faint); }
181
+
182
+ /* ---------- ribbon ---------- */
183
+ .june-doc__ribbon { background: var(--jd-bg); border-bottom: 1px solid var(--jd-border); }
184
+ .june-doc__row {
185
+ display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
186
+ padding: 6px 10px;
187
+ }
188
+ .june-doc__row--secondary { background: var(--jd-surface); border-top: 1px solid var(--jd-border); }
189
+ .june-doc__row--context { background: color-mix(in srgb, var(--jd-accent) 5%, var(--jd-bg)); border-top: 1px solid var(--jd-border); }
190
+ .june-doc__group {
191
+ display: flex; align-items: center; gap: 2px;
192
+ padding: 3px 4px; border-radius: 10px;
193
+ background: var(--jd-surface);
194
+ }
195
+ .june-doc__row--secondary .june-doc__group { background: var(--jd-bg); }
196
+ .june-doc__group-label {
197
+ padding: 0 6px 0 4px;
198
+ font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
199
+ color: var(--jd-muted); user-select: none;
200
+ }
201
+ .june-doc__group .june-doc__btn:not(.june-doc__btn--outline) { background: transparent; border-color: transparent; }
202
+ .june-doc__group .june-doc__btn:hover:not(:disabled) { background: var(--jd-hover); border-color: transparent; }
203
+ .june-doc__btn[data-active],
204
+ .june-doc__group .june-doc__btn[data-active] {
205
+ color: var(--jd-fg); background: var(--jd-pressed); border-color: transparent;
206
+ }
207
+ .june-doc__row--context .june-doc__btn { font-size: 0.78rem; }
208
+ .june-doc__more { margin-left: 4px; gap: 4px; padding: 4px 10px; font-weight: 500; }
209
+ .june-doc__btn--marks { gap: 6px; padding: 4px 10px; font-weight: 500; background: var(--jd-bg); }
210
+ .june-doc__btn--marks[data-active] { color: var(--jd-accent); background: color-mix(in srgb, var(--jd-accent) 10%, var(--jd-bg)); border-color: color-mix(in srgb, var(--jd-accent) 30%, transparent); }
211
+ .june-doc__field { display: flex; flex-direction: column; gap: 1px; padding: 0 2px; }
212
+ .june-doc__field-label { font-size: 0.6875rem; color: var(--jd-muted); padding-left: 2px; line-height: 1.2; }
213
+ .june-doc__field .june-doc__select { min-width: 120px; min-height: 30px; }
214
+ .june-doc__select--font { min-width: 150px; }
215
+ .june-doc__field .june-doc__select--size { min-width: 72px; }
216
+ .june-doc__btn--color { position: relative; flex-direction: column; gap: 1px; }
217
+ .june-doc__color-bar { width: 14px; height: 3px; border-radius: 2px; border: 1px solid var(--jd-border); }
218
+
219
+ /* ---------- popovers & menus ---------- */
220
+ .june-doc__anchor { position: relative; display: inline-flex; }
221
+ .june-doc__pop {
222
+ position: absolute; top: calc(100% + 6px); z-index: 50;
223
+ min-width: 220px; padding: 10px;
224
+ color: var(--jd-fg); background: var(--jd-bg);
225
+ border: 1px solid var(--jd-border); border-radius: 12px; box-shadow: var(--jd-pop-shadow);
226
+ animation: june-doc-pop 120ms ease-out;
227
+ }
228
+ .june-doc__pop--start { left: 0; }
229
+ .june-doc__pop--end { right: 0; }
230
+ .june-doc__pop-title { margin: 0 0 8px; font-size: 0.75rem; font-weight: 600; color: var(--jd-muted); }
231
+ .june-doc__pop-row { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: 10px; }
232
+ .june-doc__pop-row--end { justify-content: flex-end; }
233
+ .june-doc__form { display: flex; flex-direction: column; gap: 8px; width: 280px; max-width: 80vw; }
234
+ .june-doc__form .june-doc__pop-title { margin: 0; }
235
+ .june-doc__form .june-doc__pop-row { margin-top: 2px; }
236
+ .june-doc__menu { min-width: 250px; padding: 6px; }
237
+ .june-doc__menu-item {
238
+ display: flex; align-items: center; gap: 10px; width: 100%;
239
+ padding: 8px 10px; font: inherit; font-size: 0.8125rem; text-align: left; color: inherit;
240
+ background: transparent; border: 0; border-radius: 8px; cursor: pointer;
241
+ }
242
+ .june-doc__menu-item:hover { background: var(--jd-hover); }
243
+ .june-doc__menu-item .june-doc__icon { color: var(--jd-muted); }
244
+ .june-doc__menu-label { flex: 1; font-weight: 500; }
245
+ .june-doc__menu-hint { font-size: 0.75rem; color: var(--jd-faint); }
246
+ .june-doc__menu-sep { height: 1px; margin: 6px 4px; background: var(--jd-border); }
247
+ .june-doc__swatches-wrap { width: 232px; }
248
+ .june-doc__swatches { display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px; }
249
+ .june-doc__swatch {
250
+ width: 100%; aspect-ratio: 1; padding: 0; cursor: pointer;
251
+ border: 1px solid color-mix(in srgb, #000 12%, transparent); border-radius: 6px;
252
+ transition: transform 100ms ease;
253
+ }
254
+ .june-doc__swatch:hover { transform: scale(1.12); }
255
+ .june-doc__swatch[data-active] { outline: 2px solid var(--jd-accent); outline-offset: 2px; }
256
+ .june-doc__custom-color { display: inline-flex; align-items: center; gap: 6px; font-size: 0.75rem; color: var(--jd-muted); cursor: pointer; }
257
+ .june-doc__custom-color input { width: 28px; height: 24px; padding: 0; border: 1px solid var(--jd-border); border-radius: 6px; background: none; cursor: pointer; }
258
+ .june-doc__dropzone {
259
+ display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
260
+ width: 100%; padding: 18px 10px; font: inherit; font-size: 0.8125rem; color: var(--jd-muted);
261
+ background: var(--jd-surface); border: 1.5px dashed var(--jd-border-strong); border-radius: 10px; cursor: pointer;
262
+ }
263
+ .june-doc__dropzone:hover { color: var(--jd-accent); border-color: var(--jd-accent); }
264
+ .june-doc__or { font-size: 0.75rem; text-align: center; color: var(--jd-faint); }
265
+ .june-doc__grid { display: grid; grid-template-columns: repeat(8, 18px); gap: 3px; }
266
+ .june-doc__cell {
267
+ width: 18px; height: 18px; padding: 0; cursor: pointer;
268
+ background: var(--jd-bg); border: 1px solid var(--jd-border-strong); border-radius: 3px;
269
+ }
270
+ .june-doc__cell[data-active] { background: color-mix(in srgb, var(--jd-accent) 25%, var(--jd-bg)); border-color: var(--jd-accent); }
271
+ @keyframes june-doc-pop { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
272
+
273
+ /* ---------- bubble menu ---------- */
274
+ .june-doc__bubble {
275
+ display: flex; align-items: center; gap: 2px; padding: 4px;
276
+ color: var(--jd-fg); background: var(--jd-bg);
277
+ border: 1px solid var(--jd-border); border-radius: 10px; box-shadow: var(--jd-pop-shadow);
278
+ z-index: 40;
279
+ }
280
+ .june-doc__bubble .june-doc__btn { background: transparent; border-color: transparent; }
281
+ .june-doc__bubble .june-doc__btn:hover { background: var(--jd-hover); }
282
+ .june-doc__bubble-sep { width: 1px; height: 20px; margin: 0 3px; background: var(--jd-border); }
283
+
284
+ /* ---------- find bar ---------- */
285
+ .june-doc__findbar {
286
+ display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
287
+ padding: 8px 12px; background: var(--jd-bg); border-bottom: 1px solid var(--jd-border);
288
+ }
289
+ .june-doc__find-field {
290
+ display: flex; align-items: center; gap: 6px; flex: 1 1 220px; max-width: 360px;
291
+ min-height: 32px; padding: 0 10px; color: var(--jd-muted);
292
+ border: 1px solid var(--jd-border-strong); border-radius: 8px; background: var(--jd-bg);
293
+ }
294
+ .june-doc__find-field:focus-within { border-color: var(--jd-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--jd-accent) 18%, transparent); }
295
+ .june-doc__find-input { flex: 1; min-width: 0; padding: 0; font: inherit; font-size: 0.8125rem; color: var(--jd-fg); background: transparent; border: 0; outline: none; }
296
+ .june-doc__find-count { font-size: 0.75rem; color: var(--jd-faint); white-space: nowrap; }
297
+ .june-doc__btn--case { font-size: 0.75rem; font-weight: 600; }
298
+ .june-doc__find-sep { width: 1px; height: 22px; background: var(--jd-border); }
299
+ .june-doc__replace-input { flex: 0 1 200px; width: auto; }
300
+ .june-doc__find-close { margin-left: auto; }
301
+ .june-doc__match { background: var(--jd-match); border-radius: 2px; }
302
+ .june-doc__match--active { background: var(--jd-match-active); color: #111827; }
303
+
304
+ /* ---------- conflict banner ---------- */
305
+ .june-doc__banner {
306
+ display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px;
307
+ margin: 8px 12px; padding: 8px 12px; font-size: 0.875rem;
308
+ background: var(--jd-warn-bg); border: 1px solid var(--jd-warn-border); border-radius: 10px;
309
+ }
310
+ .june-doc__banner-actions { display: flex; flex-wrap: wrap; gap: 6px; }
311
+
312
+ /* ---------- canvas & pages ---------- */
313
+ .june-doc__canvas {
314
+ position: relative;
315
+ max-height: min(78vh, 860px);
316
+ overflow: auto;
317
+ padding: 28px 24px 40px;
318
+ background: var(--jd-canvas);
319
+ scroll-behavior: smooth;
320
+ }
321
+ .june-doc__sheet {
322
+ --jd-page-h: 1123px;
323
+ position: relative;
324
+ width: 794px;
325
+ margin: 0 auto;
326
+ padding: 96px clamp(24px, 12%, 96px);
327
+ color: var(--jd-page-fg);
328
+ background-color: var(--jd-page);
329
+ /* faint boundary at every page height so users see where pages break */
330
+ background-image: repeating-linear-gradient(
331
+ to bottom,
332
+ transparent 0,
333
+ transparent calc(var(--jd-page-h) - 1px),
334
+ var(--jd-page-line) calc(var(--jd-page-h) - 1px),
335
+ var(--jd-page-line) var(--jd-page-h)
336
+ );
337
+ border: 1px solid var(--jd-border);
338
+ border-radius: 4px;
339
+ box-shadow: var(--jd-shadow);
340
+ }
341
+ .june-doc__canvas[data-layout="fluid"] { padding: 16px; }
342
+ .june-doc__canvas[data-layout="fluid"] .june-doc__sheet {
343
+ width: auto; max-width: 900px; min-height: 320px; padding: 32px clamp(16px, 5%, 48px);
344
+ background-image: none; border-radius: 10px;
345
+ }
346
+
347
+ /* ---------- prose ---------- */
348
+ .june-doc__prose { min-height: 160px; outline: none; line-height: 1.65; font-size: 1rem; overflow-wrap: anywhere; caret-color: var(--jd-accent); }
349
+ .june-doc__prose > :first-child { margin-top: 0; }
350
+ .june-doc__prose h1 { font-size: 1.75rem; line-height: 1.25; margin: 1.2em 0 0.45em; font-weight: 700; letter-spacing: -0.015em; }
351
+ .june-doc__prose h2 { font-size: 1.375rem; line-height: 1.3; margin: 1.1em 0 0.4em; font-weight: 700; }
352
+ .june-doc__prose h3 { font-size: 1.125rem; line-height: 1.35; margin: 1em 0 0.3em; font-weight: 600; }
353
+ .june-doc__prose p { margin: 0.65em 0; }
354
+ .june-doc__prose ul, .june-doc__prose ol { margin: 0.6em 0; padding-left: 1.6em; }
355
+ .june-doc__prose li > p { margin: 0.25em 0; }
356
+ .june-doc__prose li::marker { color: var(--jd-muted); }
357
+ .june-doc__prose blockquote { margin: 1em 0; padding: 0.15em 0 0.15em 1em; color: var(--jd-muted); border-left: 3px solid var(--jd-border-strong); }
358
+ .june-doc__prose a { color: var(--jd-accent); text-decoration: underline; text-underline-offset: 2px; }
359
+ .june-doc__prose code { padding: 1px 5px; font-size: 0.875em; font-family: ui-monospace, Menlo, Consolas, monospace; background: var(--jd-hover); border-radius: 4px; }
360
+ .june-doc__prose pre { padding: 12px 14px; overflow: auto; background: var(--jd-hover); border-radius: 8px; }
361
+ .june-doc__prose pre code { padding: 0; background: transparent; }
362
+ .june-doc__prose hr { border: 0; border-top: 1px solid var(--jd-border-strong); margin: 1.4em 0; }
363
+ .june-doc__prose mark { padding: 0 0.1em; border-radius: 2px; color: inherit; }
364
+ .june-doc__prose img { display: block; max-width: 100%; height: auto; border-radius: 4px; }
365
+ .june-doc__prose [data-resize-container] { max-width: 100%; margin: 0.8em 0; }
366
+ .june-doc__prose [data-resize-wrapper] { display: inline-block; max-width: 100%; }
367
+ .june-doc__prose [data-resize-handle] { z-index: 2; opacity: 0; transition: opacity 120ms ease; }
368
+ .june-doc__prose [data-resize-container]:hover [data-resize-handle],
369
+ .june-doc__prose .ProseMirror-selectednode [data-resize-handle] { opacity: 1; }
370
+ .june-doc__prose [data-resize-handle="top-left"], .june-doc__prose [data-resize-handle="top-right"],
371
+ .june-doc__prose [data-resize-handle="bottom-left"], .june-doc__prose [data-resize-handle="bottom-right"] {
372
+ width: 10px; height: 10px; background: var(--jd-bg); border: 2px solid var(--jd-accent); border-radius: 50%;
373
+ }
374
+ .june-doc__prose [data-resize-handle="top-left"] { cursor: nwse-resize; transform: translate(-50%, -50%); }
375
+ .june-doc__prose [data-resize-handle="top-right"] { cursor: nesw-resize; transform: translate(50%, -50%); }
376
+ .june-doc__prose [data-resize-handle="bottom-left"] { cursor: nesw-resize; transform: translate(-50%, 50%); }
377
+ .june-doc__prose [data-resize-handle="bottom-right"] { cursor: nwse-resize; transform: translate(50%, 50%); }
378
+ .june-doc__prose [data-resize-handle="top"], .june-doc__prose [data-resize-handle="bottom"] { height: 6px; cursor: ns-resize; }
379
+ .june-doc__prose [data-resize-handle="left"], .june-doc__prose [data-resize-handle="right"] { width: 6px; cursor: ew-resize; }
380
+ .june-doc__prose img.ProseMirror-selectednode,
381
+ .june-doc__prose .ProseMirror-selectednode img { outline: 2px solid var(--jd-accent); outline-offset: 2px; }
382
+ .june-doc__prose table { width: 100%; margin: 1em 0; border-collapse: collapse; table-layout: fixed; overflow: hidden; }
383
+ .june-doc__prose th, .june-doc__prose td {
384
+ position: relative; padding: 7px 10px; text-align: left; vertical-align: top; border: 1px solid var(--jd-border-strong);
385
+ }
386
+ .june-doc__prose th { font-weight: 600; background: var(--jd-surface); }
387
+ .june-doc__prose th > p, .june-doc__prose td > p { margin: 0; }
388
+ .june-doc__prose .selectedCell::after { content: ""; position: absolute; inset: 0; background: color-mix(in srgb, var(--jd-accent) 18%, transparent); pointer-events: none; }
389
+ .june-doc__prose .column-resize-handle { position: absolute; top: 0; right: -2px; bottom: -2px; width: 4px; background: var(--jd-accent); pointer-events: none; }
390
+ .june-doc__prose.resize-cursor { cursor: col-resize; }
391
+ .june-doc__prose .tableWrapper { overflow-x: auto; }
392
+ .june-doc__page-break {
393
+ position: relative; height: 24px; margin: 1.2em -1px; cursor: default;
394
+ border-top: 1px dashed var(--jd-border-strong);
395
+ }
396
+ .june-doc__page-break::after {
397
+ content: "Page break"; position: absolute; top: -9px; left: 50%; transform: translateX(-50%);
398
+ padding: 0 8px; font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
399
+ color: var(--jd-faint); background: var(--jd-page);
400
+ }
401
+ .june-doc__page-break.ProseMirror-selectednode { border-top-color: var(--jd-accent); }
402
+ .june-doc__prose ::selection { background: color-mix(in srgb, var(--jd-accent) 25%, transparent); }
403
+
404
+ /* formatting marks (¶) */
405
+ .june-doc__canvas[data-marks] .june-doc__prose p::after,
406
+ .june-doc__canvas[data-marks] .june-doc__prose h1::after,
407
+ .june-doc__canvas[data-marks] .june-doc__prose h2::after,
408
+ .june-doc__canvas[data-marks] .june-doc__prose h3::after {
409
+ content: "¶"; margin-left: 2px; color: var(--jd-faint); font-weight: 400; font-style: normal;
410
+ }
411
+ .june-doc__canvas[data-marks] .june-doc__prose br::after { content: "↵"; color: var(--jd-faint); }
412
+
413
+ /* ---------- status bar ---------- */
414
+ .june-doc__footer {
415
+ display: flex; align-items: center; gap: 12px;
416
+ min-height: 38px; padding: 4px 10px 4px 16px;
417
+ font-size: 0.8125rem; color: var(--jd-muted);
418
+ background: var(--jd-bg); border-top: 1px solid var(--jd-border);
419
+ border-radius: 0 0 var(--jd-radius) var(--jd-radius);
420
+ }
421
+ .june-doc--fullscreen .june-doc__footer { border-radius: 0; }
422
+ .june-doc__stats { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--jd-muted); font-variant-numeric: tabular-nums; }
423
+ .june-doc__stats-sep { width: 1px; height: 14px; background: var(--jd-border-strong); }
424
+ .june-doc__status { flex: 1; text-align: right; font-size: 0.75rem; color: var(--jd-faint); }
425
+ .june-doc__status[data-state="saved"] { color: var(--jd-ok); }
426
+ .june-doc__status[data-state="error"] { color: var(--jd-danger); }
427
+ .june-doc__zoom { display: flex; align-items: center; gap: 2px; padding-left: 8px; border-left: 1px solid var(--jd-border); }
428
+ .june-doc__zoom .june-doc__btn--icon { width: 26px; min-height: 26px; }
429
+ .june-doc__zoom-value {
430
+ min-width: 48px; padding: 3px 4px; font: inherit; font-size: 0.75rem; font-variant-numeric: tabular-nums;
431
+ color: var(--jd-fg); background: transparent; border: 0; border-radius: 6px; cursor: pointer;
432
+ }
433
+ .june-doc__zoom-value:hover { background: var(--jd-hover); }
434
+
435
+ /* ---------- placeholder / error states ---------- */
436
+ .june-doc--draft, .june-doc--error { padding: 14px 16px; gap: 8px; }
437
+ .june-doc__draft-title { margin: 0; font-weight: 700; }
438
+ .june-doc__draft-text { margin: 0; color: var(--jd-muted); }
439
+ .june-doc--error .june-doc__draft-text { color: var(--jd-danger); }
440
+ .june-doc__raw { margin: 8px 0 0; max-height: 240px; padding: 8px; overflow: auto; white-space: pre-wrap; background: var(--jd-surface); border-radius: 6px; }
441
+ .june-doc__pulse { display: flex; flex-direction: column; gap: 6px; }
442
+ .june-doc__pulse span { height: 10px; background: var(--jd-surface); border-radius: 4px; animation: june-doc-pulse 1.2s ease-in-out infinite; }
443
+ .june-doc__pulse span:nth-child(2) { width: 85%; animation-delay: 0.15s; }
444
+ .june-doc__pulse span:nth-child(3) { width: 60%; animation-delay: 0.3s; }
445
+ @keyframes june-doc-pulse { 0%, 100% { opacity: 0.45; } 50% { opacity: 1; } }
446
+ @media (prefers-reduced-motion: reduce) {
447
+ .june-doc__pulse span, .june-doc__pop { animation: none; }
448
+ .june-doc__canvas { scroll-behavior: auto; }
449
+ }
450
+
451
+ /* ---------- small screens ---------- */
452
+ @media (max-width: 720px) {
453
+ .june-doc__header { flex-wrap: wrap; }
454
+ .june-doc__header-actions { width: 100%; justify-content: flex-end; }
455
+ .june-doc__group-label, .june-doc__field-label { display: none; }
456
+ .june-doc__row { gap: 4px; padding: 6px; }
457
+ .june-doc__canvas { padding: 12px 8px 24px; }
458
+ .june-doc__sheet { padding: 40px 20px; }
459
+ .june-doc__status { display: none; }
460
+ .june-doc__footer { justify-content: space-between; }
461
+ }
462
+ @media print {
463
+ .june-doc__header, .june-doc__ribbon, .june-doc__findbar, .june-doc__footer, .june-doc__banner { display: none; }
464
+ .june-doc__canvas { max-height: none; overflow: visible; padding: 0; background: none; }
465
+ .june-doc__sheet { width: auto; box-shadow: none; border: 0; background-image: none; padding: 0; }
466
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@june-ai/june-ui",
3
- "version": "0.2.4",
3
+ "version": "0.2.5",
4
4
  "description": "A React Generative UI SDK powered by OpenUI",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -59,8 +59,13 @@
59
59
  "dependencies": {
60
60
  "@openuidev/react-ui": "^0.18.0",
61
61
  "@tiptap/core": "^3.33.0",
62
+ "@tiptap/extension-highlight": "^3.33.0",
63
+ "@tiptap/extension-image": "^3.33.0",
64
+ "@tiptap/extension-subscript": "^3.33.0",
65
+ "@tiptap/extension-superscript": "^3.33.0",
62
66
  "@tiptap/extension-table": "^3.33.0",
63
67
  "@tiptap/extension-text-align": "^3.33.0",
68
+ "@tiptap/extension-text-style": "^3.33.0",
64
69
  "@tiptap/markdown": "^3.33.0",
65
70
  "@tiptap/pm": "^3.33.0",
66
71
  "@tiptap/react": "^3.33.0",