@poveste/app 0.20.0 → 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.
Files changed (39) hide show
  1. package/dist/bundled/app.css +55 -27
  2. package/dist/bundled/components/layout/LayoutModal.vue_vue_type_script_setup_true_lang.js +44 -5
  3. package/dist/bundled/components/panel/ComponentDocs.js +1 -1
  4. package/dist/bundled/components/panel/ComponentDocs.vue_vue_type_script_setup_true_lang.js +72 -40
  5. package/dist/bundled/components/panel/StoryDocs.vue_vue_type_script_setup_true_lang.js +34 -10
  6. package/dist/bundled/components/panel/StorySourceCode.js +1 -1
  7. package/dist/bundled/components/panel/StorySourceCode.vue_vue_type_script_setup_true_lang.js +2 -2
  8. package/dist/bundled/components/story/StoryResponsivePreview.js +1 -1
  9. package/dist/bundled/components/story/StoryResponsivePreview.vue_vue_type_script_setup_true_lang.js +5 -3
  10. package/dist/bundled/components/story/StoryVariantGridItem.js +1 -1
  11. package/dist/bundled/components/story/StoryVariantGridItem.vue_vue_type_script_setup_true_lang.js +5 -3
  12. package/dist/bundled/components/story/StoryVariantSinglePreviewRemote.vue_vue_type_script_setup_true_lang.js +3 -2
  13. package/dist/bundled/index.js +5 -1
  14. package/dist/bundled/sandbox.js +2 -0
  15. package/dist/bundled/util/component-docs-data.js +5 -1
  16. package/dist/bundled/util/component-docs.js +90 -14
  17. package/dist/bundled/util/dark.js +3 -1
  18. package/dist/bundled/util/docs.js +12 -2
  19. package/dist/bundled/util/highlighter.js +1 -1
  20. package/dist/bundled/util/icons.generated.js +1 -0
  21. package/dist/bundled/util/keyboard.js +5 -4
  22. package/dist/style.css +317 -150
  23. package/package.json +7 -7
  24. package/src/app/components/layout/LayoutModal.vue +55 -2
  25. package/src/app/components/panel/ComponentDocs.vue +83 -17
  26. package/src/app/components/panel/StoryDocs.vue +30 -3
  27. package/src/app/components/panel/StorySourceCode.vue +2 -2
  28. package/src/app/components/story/StoryResponsivePreview.vue +4 -1
  29. package/src/app/components/story/StoryVariantGridItem.vue +4 -1
  30. package/src/app/components/story/StoryVariantSinglePreviewRemote.vue +6 -4
  31. package/src/app/index.ts +12 -3
  32. package/src/app/sandbox.ts +5 -0
  33. package/src/app/util/component-docs-data.ts +6 -3
  34. package/src/app/util/component-docs.ts +102 -11
  35. package/src/app/util/dark.ts +6 -0
  36. package/src/app/util/docs.ts +18 -2
  37. package/src/app/util/highlighter.ts +2 -1
  38. package/src/app/util/icons.generated.ts +1 -1
  39. package/src/app/util/keyboard.ts +8 -4
package/dist/style.css CHANGED
@@ -2,7 +2,7 @@
2
2
  /*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */
3
3
  @layer properties;
4
4
  .poveste-tooltip {
5
- color: #fff;
5
+ color: var(--_poveste-white);
6
6
  z-index: 100;
7
7
  background: #000c;
8
8
  border-radius: 6px;
@@ -12,46 +12,112 @@
12
12
  .poveste-tooltip-arrow {
13
13
  fill: #000c;
14
14
  }
15
+ :where([class*=poveste-]) {
16
+ --_poveste-primary-50: var(--_poveste-color-primary-50,#ecfdf5);
17
+ --_poveste-primary-100: var(--_poveste-color-primary-100,#d1fae5);
18
+ --_poveste-primary-200: var(--_poveste-color-primary-200,#a7f3d0);
19
+ --_poveste-primary-300: var(--_poveste-color-primary-300,#6ee7b7);
20
+ --_poveste-primary-400: var(--_poveste-color-primary-400,#34d399);
21
+ --_poveste-primary-500: var(--_poveste-color-primary-500,#10b981);
22
+ --_poveste-primary-600: var(--_poveste-color-primary-600,#059669);
23
+ --_poveste-primary-700: var(--_poveste-color-primary-700,#047857);
24
+ --_poveste-primary-800: var(--_poveste-color-primary-800,#065f46);
25
+ --_poveste-primary-900: var(--_poveste-color-primary-900,#064e3b);
26
+ --_poveste-gray-50: var(--_poveste-color-gray-50,#fafafa);
27
+ --_poveste-gray-100: var(--_poveste-color-gray-100,#f4f4f5);
28
+ --_poveste-gray-200: var(--_poveste-color-gray-200,#e4e4e7);
29
+ --_poveste-gray-300: var(--_poveste-color-gray-300,#d4d4d8);
30
+ --_poveste-gray-400: var(--_poveste-color-gray-400,#a1a1aa);
31
+ --_poveste-gray-500: var(--_poveste-color-gray-500,#71717a);
32
+ --_poveste-gray-600: var(--_poveste-color-gray-600,#52525b);
33
+ --_poveste-gray-700: var(--_poveste-color-gray-700,#3f3f46);
34
+ --_poveste-gray-750: var(--_poveste-color-gray-750,#323238);
35
+ --_poveste-gray-800: var(--_poveste-color-gray-800,#27272a);
36
+ --_poveste-gray-850: var(--_poveste-color-gray-850,#1f1f21);
37
+ --_poveste-gray-900: var(--_poveste-color-gray-900,#18181b);
38
+ --_poveste-gray-950: var(--_poveste-color-gray-950,#101012);
39
+ --_poveste-radius-sm: .25rem;
40
+ --_poveste-radius: .375rem;
41
+ --_poveste-radius-md: .5rem;
42
+ --_poveste-radius-lg: .75rem;
43
+ --_poveste-radius-xl: 1rem;
44
+ --_poveste-radius-2xl: 1.5rem;
45
+ --_poveste-radius-3xl: 2rem;
46
+ --_poveste-white: #fff;
47
+ --_poveste-black: #000;
48
+ --_poveste-warning: oklch(70.5% .213 47.604);
49
+ }
50
+ .poveste-wrapper {
51
+ flex-wrap: wrap;
52
+ gap: .5rem;
53
+ padding: .5rem;
54
+ display: flex;
55
+ }
56
+ .poveste-wrapper:hover {
57
+ background-color: var(--_poveste-primary-100);
58
+ }
59
+ .poveste-wrapper:where(.ptw-dark,.ptw-dark *):hover {
60
+ background-color: var(--_poveste-primary-800);
61
+ }
62
+ .poveste-wrapper-title {
63
+ white-space: nowrap;
64
+ text-overflow: ellipsis;
65
+ flex-shrink: 0;
66
+ width: 7rem;
67
+ overflow: hidden;
68
+ }
69
+ .poveste-wrapper-body {
70
+ flex-grow: 1;
71
+ align-items: center;
72
+ gap: .25rem;
73
+ max-width: 100%;
74
+ display: flex;
75
+ }
76
+ .poveste-wrapper-control {
77
+ flex-grow: 1;
78
+ max-width: 100%;
79
+ display: block;
80
+ }
15
81
  .poveste-button {
16
- --_poveste-button-surface: var(--color-gray-200);
17
- --_poveste-button-surface-hover: var(--color-primary-200);
18
- --_poveste-button-text: var(--color-gray-900);
19
- border-radius: var(--radius-sm);
82
+ --_poveste-button-surface: var(--_poveste-gray-200);
83
+ --_poveste-button-surface-hover: var(--_poveste-primary-200);
84
+ --_poveste-button-text: var(--_poveste-gray-900);
85
+ border-radius: var(--_poveste-radius-sm);
20
86
  background: var(--_poveste-button-surface);
21
87
  color: var(--_poveste-button-text);
22
88
  cursor: pointer;
23
89
  border: none;
24
90
  }
25
91
  .poveste-button:where(.ptw-dark,.ptw-dark *) {
26
- --_poveste-button-surface: var(--color-gray-750);
27
- --_poveste-button-surface-hover: var(--color-primary-900);
28
- --_poveste-button-text: var(--color-gray-100);
92
+ --_poveste-button-surface: var(--_poveste-gray-750);
93
+ --_poveste-button-surface-hover: var(--_poveste-primary-900);
94
+ --_poveste-button-text: var(--_poveste-gray-100);
29
95
  }
30
96
  .poveste-button:hover {
31
97
  background: var(--_poveste-button-surface-hover);
32
98
  }
33
99
  .poveste-button[data-color=primary] {
34
- --_poveste-button-surface: var(--color-primary-500);
35
- --_poveste-button-surface-hover: var(--color-primary-600);
36
- --_poveste-button-text: var(--color-white);
100
+ --_poveste-button-surface: var(--_poveste-primary-500);
101
+ --_poveste-button-surface-hover: var(--_poveste-primary-600);
102
+ --_poveste-button-text: var(--_poveste-white);
37
103
  }
38
104
  .poveste-button[data-color=primary]:where(.ptw-dark,.ptw-dark *) {
39
- --_poveste-button-surface: var(--color-primary-500);
40
- --_poveste-button-surface-hover: var(--color-primary-600);
41
- --_poveste-button-text: var(--color-black);
105
+ --_poveste-button-surface: var(--_poveste-primary-500);
106
+ --_poveste-button-surface-hover: var(--_poveste-primary-600);
107
+ --_poveste-button-text: var(--_poveste-black);
42
108
  }
43
109
  .poveste-button[data-color=flat] {
44
110
  --_poveste-button-surface: transparent;
45
- --_poveste-button-surface-hover: var(--color-gray-500);
111
+ --_poveste-button-surface-hover: var(--_poveste-gray-500);
46
112
  @supports (color: color-mix(in lab, red, red)) {
47
- --_poveste-button-surface-hover: color-mix(in oklab, var(--color-gray-500) 20%, transparent);
113
+ --_poveste-button-surface-hover: color-mix(in oklab, var(--_poveste-gray-500) 20%, transparent);
48
114
  }
49
115
  }
50
116
  .poveste-button[data-color=flat]:where(.ptw-dark,.ptw-dark *) {
51
117
  --_poveste-button-surface: transparent;
52
- --_poveste-button-surface-hover: var(--color-gray-500);
118
+ --_poveste-button-surface-hover: var(--_poveste-gray-500);
53
119
  @supports (color: color-mix(in lab, red, red)) {
54
- --_poveste-button-surface-hover: color-mix(in oklab, var(--color-gray-500) 20%, transparent);
120
+ --_poveste-button-surface-hover: color-mix(in oklab, var(--_poveste-gray-500) 20%, transparent);
55
121
  }
56
122
  }
57
123
  .poveste-button-group {
@@ -59,7 +125,7 @@
59
125
  align-items: center;
60
126
  }
61
127
  .poveste-button-group-options {
62
- border-radius: var(--radius-sm);
128
+ border-radius: var(--_poveste-radius-sm);
63
129
  border: 1px solid #00000040;
64
130
  gap: 1px;
65
131
  padding: 1px;
@@ -76,24 +142,24 @@
76
142
  }
77
143
  .poveste-button-group-option[data-state=off] {
78
144
  --_poveste-button-surface: transparent;
79
- --_poveste-button-surface-hover: var(--color-gray-500);
145
+ --_poveste-button-surface-hover: var(--_poveste-gray-500);
80
146
  @supports (color: color-mix(in lab, red, red)) {
81
- --_poveste-button-surface-hover: color-mix(in oklab, var(--color-gray-500) 20%, transparent);
147
+ --_poveste-button-surface-hover: color-mix(in oklab, var(--_poveste-gray-500) 20%, transparent);
82
148
  }
83
149
  }
84
150
  .poveste-button-group-option[data-state=on] {
85
- --_poveste-button-surface: var(--color-primary-500);
86
- --_poveste-button-surface-hover: var(--color-primary-600);
87
- --_poveste-button-text: var(--color-white);
151
+ --_poveste-button-surface: var(--_poveste-primary-500);
152
+ --_poveste-button-surface-hover: var(--_poveste-primary-600);
153
+ --_poveste-button-text: var(--_poveste-white);
88
154
  }
89
155
  .poveste-button-group-option[data-state=on]:where(.ptw-dark,.ptw-dark *) {
90
- --_poveste-button-text: var(--color-black);
156
+ --_poveste-button-text: var(--_poveste-black);
91
157
  }
92
158
  .poveste-simple-checkbox {
93
159
  box-sizing: border-box;
94
160
  width: 16px;
95
161
  height: 16px;
96
- color: var(--color-white);
162
+ color: var(--_poveste-white);
97
163
  background: 0 0;
98
164
  border: 0;
99
165
  padding: 0;
@@ -101,7 +167,7 @@
101
167
  position: relative;
102
168
  }
103
169
  .poveste-simple-checkbox:focus-visible {
104
- outline: 2px solid var(--color-primary-500);
170
+ outline: 2px solid var(--_poveste-primary-500);
105
171
  outline-offset: 2px;
106
172
  }
107
173
  .poveste-simple-checkbox-interactive {
@@ -114,7 +180,7 @@
114
180
  }
115
181
  .poveste-checkbox-visual-box {
116
182
  box-sizing: border-box;
117
- border-radius: var(--radius-sm);
183
+ border-radius: var(--_poveste-radius-sm);
118
184
  border: 1px solid #00000040;
119
185
  position: absolute;
120
186
  inset: 0;
@@ -128,7 +194,7 @@
128
194
  border-color: #ffffff40;
129
195
  }
130
196
  .poveste-simple-checkbox[data-checked] .poveste-checkbox-visual-box {
131
- border-color: var(--color-primary-500);
197
+ border-color: var(--_poveste-primary-500);
132
198
  border-width: 8px;
133
199
  }
134
200
  @media (prefers-reduced-motion:no-preference) {
@@ -137,7 +203,7 @@
137
203
  }
138
204
  }
139
205
  .poveste-simple-checkbox:hover .poveste-checkbox-visual-box {
140
- border-color: var(--color-primary-500);
206
+ border-color: var(--_poveste-primary-500);
141
207
  }
142
208
  .poveste-simple-checkbox:active .poveste-checkbox-visual-box {
143
209
  background: #6b728033;
@@ -147,7 +213,7 @@
147
213
  position: relative;
148
214
  }
149
215
  .poveste-checkbox-visual-check path {
150
- stroke: var(--color-white);
216
+ stroke: var(--_poveste-white);
151
217
  stroke-width: 2px;
152
218
  }
153
219
  @media (prefers-reduced-motion:no-preference) {
@@ -169,7 +235,7 @@
169
235
  display: block;
170
236
  }
171
237
  .poveste-checkbox-box:focus-visible {
172
- outline: 2px solid var(--color-primary-500);
238
+ outline: 2px solid var(--_poveste-primary-500);
173
239
  outline-offset: 2px;
174
240
  }
175
241
  .poveste-checkbox-list {
@@ -193,12 +259,124 @@
193
259
  display: block;
194
260
  }
195
261
  .poveste-checkbox-list-box:focus-visible {
196
- outline: 2px solid var(--color-primary-500);
262
+ outline: 2px solid var(--_poveste-primary-500);
197
263
  outline-offset: 2px;
198
264
  }
265
+ .poveste-color-select {
266
+ cursor: text;
267
+ align-items: center;
268
+ }
269
+ .poveste-color-select-fields {
270
+ gap: .25rem;
271
+ display: flex;
272
+ }
273
+ .poveste-color-select-input {
274
+ box-sizing: border-box;
275
+ border-radius: var(--_poveste-radius-sm);
276
+ width: 100%;
277
+ color: inherit;
278
+ background: 0 0;
279
+ border: 1px solid #00000040;
280
+ outline: none;
281
+ margin-block: -.25rem;
282
+ padding: .25rem .5rem;
283
+ }
284
+ .poveste-color-select-input:where(.ptw-dark,.ptw-dark *) {
285
+ border-color: #ffffff40;
286
+ }
287
+ .poveste-color-select-input:focus {
288
+ border-color: var(--_poveste-primary-500);
289
+ }
290
+ .poveste-copy-icon {
291
+ color: inherit;
292
+ opacity: .5;
293
+ cursor: pointer;
294
+ background: 0 0;
295
+ border: 0;
296
+ padding: 0;
297
+ display: flex;
298
+ }
299
+ .poveste-copy-icon:hover {
300
+ opacity: 1;
301
+ color: var(--_poveste-primary-500);
302
+ }
303
+ .poveste-copy-icon:focus-visible {
304
+ opacity: 1;
305
+ }
306
+ .poveste-copy-icon-glyph {
307
+ width: 1rem;
308
+ height: 1rem;
309
+ }
310
+ .poveste-color-shades {
311
+ grid-template-columns: repeat(auto-fill,minmax(200px,1fr));
312
+ gap: 1rem;
313
+ margin: 1rem;
314
+ display: grid;
315
+ }
316
+ .poveste-color-shades-swatch {
317
+ border-radius: 9999px;
318
+ width: 4rem;
319
+ height: 4rem;
320
+ }
321
+ .poveste-token-text {
322
+ white-space: nowrap;
323
+ text-overflow: ellipsis;
324
+ flex-shrink: 1;
325
+ margin-block: 0;
326
+ overflow: hidden;
327
+ }
328
+ .poveste-token-text[data-slot=value] {
329
+ opacity: .5;
330
+ }
331
+ .poveste-token-grid {
332
+ gap: 1rem;
333
+ margin: 1rem;
334
+ display: grid;
335
+ }
199
336
  .bind-col-size {
200
337
  grid-template-columns: repeat(auto-fill, minmax(var(--poveste-col-size), 1fr));
201
338
  }
339
+ .poveste-token-text {
340
+ white-space: nowrap;
341
+ text-overflow: ellipsis;
342
+ flex-shrink: 1;
343
+ margin-block: 0;
344
+ overflow: hidden;
345
+ }
346
+ .poveste-token-text[data-slot=value] {
347
+ opacity: .5;
348
+ }
349
+ .poveste-token-list {
350
+ flex-direction: column;
351
+ gap: .5rem;
352
+ margin-block: 2rem;
353
+ display: flex;
354
+ }
355
+ .poveste-token-list-labels {
356
+ margin-inline: 1rem;
357
+ }
358
+ .poveste-token-item {
359
+ flex-direction: column;
360
+ gap: .5rem;
361
+ display: flex;
362
+ }
363
+ .poveste-token-row {
364
+ gap: .25rem;
365
+ display: flex;
366
+ }
367
+ .poveste-token-text {
368
+ white-space: nowrap;
369
+ text-overflow: ellipsis;
370
+ flex-shrink: 1;
371
+ margin-block: 0;
372
+ overflow: hidden;
373
+ }
374
+ .poveste-token-text[data-slot=value] {
375
+ opacity: .5;
376
+ }
377
+ .poveste-token-copy {
378
+ flex: none;
379
+ }
202
380
  .poveste-number {
203
381
  cursor: ew-resize;
204
382
  align-items: center;
@@ -209,7 +387,7 @@
209
387
  }
210
388
  .poveste-number-input {
211
389
  box-sizing: border-box;
212
- border-radius: var(--radius-sm);
390
+ border-radius: var(--_poveste-radius-sm);
213
391
  width: 100%;
214
392
  color: inherit;
215
393
  cursor: ew-resize;
@@ -223,7 +401,7 @@
223
401
  border-color: #ffffff40;
224
402
  }
225
403
  .poveste-number-input:focus {
226
- border-color: var(--color-primary-500);
404
+ border-color: var(--_poveste-primary-500);
227
405
  }
228
406
  .poveste-radio {
229
407
  cursor: text;
@@ -259,14 +437,14 @@
259
437
  border-color: #ffffff40;
260
438
  }
261
439
  .poveste-radio-box:hover,.poveste-radio-box[data-state=checked] {
262
- border-color: var(--color-primary-500);
440
+ border-color: var(--_poveste-primary-500);
263
441
  }
264
442
  .poveste-radio-box:focus-visible {
265
- outline: 2px solid var(--color-primary-500);
443
+ outline: 2px solid var(--_poveste-primary-500);
266
444
  outline-offset: 2px;
267
445
  }
268
446
  .poveste-radio-dot {
269
- background: var(--color-primary-500);
447
+ background: var(--_poveste-primary-500);
270
448
  border-radius: 9999px;
271
449
  display: block;
272
450
  position: absolute;
@@ -287,7 +465,7 @@
287
465
  }
288
466
  }
289
467
  .poveste-select-trigger {
290
- border-radius: var(--radius-sm);
468
+ border-radius: var(--_poveste-radius-sm);
291
469
  width: 100%;
292
470
  height: 27px;
293
471
  color: inherit;
@@ -308,7 +486,7 @@
308
486
  border-color: #ffffff40;
309
487
  }
310
488
  .poveste-select-trigger:hover {
311
- border-color: var(--color-primary-500);
489
+ border-color: var(--_poveste-primary-500);
312
490
  }
313
491
  .poveste-select-label {
314
492
  white-space: nowrap;
@@ -334,17 +512,17 @@
334
512
  }
335
513
  .poveste-select-options {
336
514
  max-height: var(--reka-popover-content-available-height);
337
- border: 1px solid var(--color-gray-200);
338
- border-radius: var(--radius-sm);
339
- background: var(--color-gray-50);
340
- color: var(--color-gray-900);
515
+ border: 1px solid var(--_poveste-gray-200);
516
+ border-radius: var(--_poveste-radius-sm);
517
+ background: var(--_poveste-gray-50);
518
+ color: var(--_poveste-gray-900);
341
519
  overflow-y: auto;
342
520
  box-shadow: 0 4px 6px -1px #0000001a,0 2px 4px -2px #0000001a;
343
521
  }
344
522
  .poveste-select-options:where(.ptw-dark,.ptw-dark *) {
345
- border-color: var(--color-gray-850);
346
- background: var(--color-gray-700);
347
- color: var(--color-gray-100);
523
+ border-color: var(--_poveste-gray-850);
524
+ background: var(--_poveste-gray-700);
525
+ color: var(--_poveste-gray-100);
348
526
  }
349
527
  .poveste-select-list {
350
528
  flex-direction: column;
@@ -359,16 +537,16 @@
359
537
  padding: .25rem .5rem;
360
538
  }
361
539
  .poveste-select-option[data-state=checked] {
362
- background: var(--color-primary-200);
540
+ background: var(--_poveste-primary-200);
363
541
  }
364
542
  .poveste-select-option[data-state=checked]:where(.ptw-dark,.ptw-dark *) {
365
- background: var(--color-primary-800);
543
+ background: var(--_poveste-primary-800);
366
544
  }
367
545
  .poveste-select-option[data-highlighted] {
368
- background: var(--color-primary-100);
546
+ background: var(--_poveste-primary-100);
369
547
  }
370
548
  .poveste-select-option[data-highlighted]:where(.ptw-dark,.ptw-dark *) {
371
- background: var(--color-primary-700);
549
+ background: var(--_poveste-primary-700);
372
550
  }
373
551
  @keyframes poveste-select-in {
374
552
  0% {
@@ -421,33 +599,33 @@
421
599
  width: var(--_poveste-slider-thumb);
422
600
  height: var(--_poveste-slider-thumb);
423
601
  appearance: none;
424
- background: var(--color-white);
602
+ background: var(--_poveste-white);
425
603
  border: 1px solid #00000040;
426
604
  border-radius: 9999px;
427
605
  }
428
606
  .poveste-slider-input:where(.ptw-dark,.ptw-dark *)::-webkit-slider-thumb {
429
- background: var(--color-gray-700);
607
+ background: var(--_poveste-gray-700);
430
608
  border-color: #ffffff40;
431
609
  }
432
610
  .poveste-slider-input:hover::-webkit-slider-thumb {
433
- border-color: var(--color-primary-500);
434
- background: var(--color-primary-500);
611
+ border-color: var(--_poveste-primary-500);
612
+ background: var(--_poveste-primary-500);
435
613
  }
436
614
  .poveste-slider-input::-moz-range-thumb {
437
615
  width: var(--_poveste-slider-thumb);
438
616
  height: var(--_poveste-slider-thumb);
439
617
  appearance: none;
440
- background: var(--color-white);
618
+ background: var(--_poveste-white);
441
619
  border: 1px solid #00000040;
442
620
  border-radius: 9999px;
443
621
  }
444
622
  .poveste-slider-input:where(.ptw-dark,.ptw-dark *)::-moz-range-thumb {
445
- background: var(--color-gray-700);
623
+ background: var(--_poveste-gray-700);
446
624
  border-color: #ffffff40;
447
625
  }
448
626
  .poveste-slider-input:hover::-moz-range-thumb {
449
- border-color: var(--color-primary-500);
450
- background: var(--color-primary-500);
627
+ border-color: var(--_poveste-primary-500);
628
+ background: var(--_poveste-primary-500);
451
629
  }
452
630
  .poveste-text {
453
631
  cursor: text;
@@ -455,7 +633,7 @@
455
633
  }
456
634
  .poveste-text-input {
457
635
  box-sizing: border-box;
458
- border-radius: var(--radius-sm);
636
+ border-radius: var(--_poveste-radius-sm);
459
637
  width: 100%;
460
638
  color: inherit;
461
639
  background: 0 0;
@@ -468,14 +646,14 @@
468
646
  border-color: #ffffff40;
469
647
  }
470
648
  .poveste-text-input:focus {
471
- border-color: var(--color-primary-500);
649
+ border-color: var(--_poveste-primary-500);
472
650
  }
473
651
  .poveste-textarea {
474
652
  cursor: text;
475
653
  }
476
654
  .poveste-textarea-input {
477
655
  box-sizing: border-box;
478
- border-radius: var(--radius-sm);
656
+ border-radius: var(--_poveste-radius-sm);
479
657
  width: 100%;
480
658
  min-height: 26px;
481
659
  color: inherit;
@@ -490,12 +668,43 @@
490
668
  border-color: #ffffff40;
491
669
  }
492
670
  .poveste-textarea-input:focus {
493
- border-color: var(--color-primary-500);
671
+ border-color: var(--_poveste-primary-500);
494
672
  }
495
- .__poveste-json-code[data-v-4b978a74] .cm-editor {
673
+ .__poveste-json-code[data-v-57ba1b4e] .cm-editor {
496
674
  min-width: 280px;
497
675
  height: 100%;
498
676
  }
677
+ .poveste-json {
678
+ cursor: text;
679
+ }
680
+ .__poveste-json-code {
681
+ box-sizing: border-box;
682
+ resize: vertical;
683
+ border-radius: var(--_poveste-radius-sm);
684
+ border: 1px solid #00000040;
685
+ width: 100%;
686
+ height: 12rem;
687
+ min-height: 8rem;
688
+ position: relative;
689
+ overflow: auto;
690
+ }
691
+ .__poveste-json-code:where(.ptw-dark,.ptw-dark *) {
692
+ border-color: #ffffff40;
693
+ }
694
+ .__poveste-json-code:focus-within {
695
+ border-color: var(--_poveste-primary-500);
696
+ }
697
+ .poveste-json-invalid {
698
+ color: var(--_poveste-warning);
699
+ flex: none;
700
+ }
701
+ .poveste-json-read-only {
702
+ color: var(--_poveste-gray-500);
703
+ flex: none;
704
+ }
705
+ .poveste-json-read-only:where(.ptw-dark,.ptw-dark *) {
706
+ color: var(--_poveste-gray-400);
707
+ }
499
708
  .poveste-date {
500
709
  align-items: center;
501
710
  }
@@ -507,7 +716,7 @@
507
716
  }
508
717
  .poveste-date-field {
509
718
  box-sizing: border-box;
510
- border-radius: var(--radius-sm);
719
+ border-radius: var(--_poveste-radius-sm);
511
720
  border: 1px solid #00000040;
512
721
  align-items: center;
513
722
  gap: 1px;
@@ -520,15 +729,15 @@
520
729
  border-color: #ffffff40;
521
730
  }
522
731
  .poveste-date-field:focus-within {
523
- border-color: var(--color-primary-500);
732
+ border-color: var(--_poveste-primary-500);
524
733
  }
525
734
  .poveste-date-segment {
526
- border-radius: var(--radius-sm);
735
+ border-radius: var(--_poveste-radius-sm);
527
736
  padding-inline: .125rem;
528
737
  }
529
738
  .poveste-date-segment:focus {
530
- background: var(--color-primary-500);
531
- color: var(--color-white);
739
+ background: var(--_poveste-primary-500);
740
+ color: var(--_poveste-white);
532
741
  outline: none;
533
742
  }
534
743
  .poveste-date-segment[data-placeholder] {
@@ -549,7 +758,7 @@
549
758
  }
550
759
  .poveste-date-trigger:hover {
551
760
  opacity: 1;
552
- color: var(--color-primary-500);
761
+ color: var(--_poveste-primary-500);
553
762
  }
554
763
  .poveste-date-icon {
555
764
  width: 1rem;
@@ -557,14 +766,14 @@
557
766
  }
558
767
  .poveste-date-calendar {
559
768
  z-index: 100;
560
- border: 1px solid var(--color-gray-200);
561
- border-radius: var(--radius-sm);
562
- background: var(--color-gray-50);
769
+ border: 1px solid var(--_poveste-gray-200);
770
+ border-radius: var(--_poveste-radius-sm);
771
+ background: var(--_poveste-gray-50);
563
772
  box-shadow: 0 4px 6px -1px #0000001a,0 2px 4px -2px #0000001a;
564
773
  }
565
774
  .poveste-date-calendar:where(.ptw-dark,.ptw-dark *) {
566
- border-color: var(--color-gray-850);
567
- background: var(--color-gray-700);
775
+ border-color: var(--_poveste-gray-850);
776
+ background: var(--_poveste-gray-700);
568
777
  }
569
778
  .poveste-date-calendar-body {
570
779
  padding: .5rem;
@@ -576,7 +785,7 @@
576
785
  display: flex;
577
786
  }
578
787
  .poveste-date-step {
579
- border-radius: var(--radius-sm);
788
+ border-radius: var(--_poveste-radius-sm);
580
789
  color: inherit;
581
790
  cursor: pointer;
582
791
  background: 0 0;
@@ -585,10 +794,10 @@
585
794
  display: flex;
586
795
  }
587
796
  .poveste-date-step:hover {
588
- background: var(--color-primary-100);
797
+ background: var(--_poveste-primary-100);
589
798
  }
590
799
  .poveste-date-step:hover:where(.ptw-dark,.ptw-dark *) {
591
- background: var(--color-primary-800);
800
+ background: var(--_poveste-primary-800);
592
801
  }
593
802
  .poveste-date-grid {
594
803
  border-collapse: collapse;
@@ -600,7 +809,7 @@
600
809
  font-weight: 400;
601
810
  }
602
811
  .poveste-date-day {
603
- border-radius: var(--radius-sm);
812
+ border-radius: var(--_poveste-radius-sm);
604
813
  width: 1.75rem;
605
814
  height: 1.75rem;
606
815
  color: inherit;
@@ -615,18 +824,18 @@
615
824
  opacity: .3;
616
825
  }
617
826
  .poveste-date-day[data-today] {
618
- color: var(--color-primary-500);
827
+ color: var(--_poveste-primary-500);
619
828
  font-weight: 700;
620
829
  }
621
830
  .poveste-date-day:hover:not([data-selected]) {
622
- background: var(--color-primary-100);
831
+ background: var(--_poveste-primary-100);
623
832
  }
624
833
  .poveste-date-day:hover:not([data-selected]):where(.ptw-dark,.ptw-dark *) {
625
- background: var(--color-primary-800);
834
+ background: var(--_poveste-primary-800);
626
835
  }
627
836
  .poveste-date-day[data-selected] {
628
- background: var(--color-primary-500);
629
- color: var(--color-white);
837
+ background: var(--_poveste-primary-500);
838
+ color: var(--_poveste-white);
630
839
  }
631
840
  .poveste-color {
632
841
  align-items: center;
@@ -639,7 +848,7 @@
639
848
  }
640
849
  .poveste-color-swatch {
641
850
  box-sizing: border-box;
642
- border-radius: var(--radius-sm);
851
+ border-radius: var(--_poveste-radius-sm);
643
852
  cursor: pointer;
644
853
  background: 0 0;
645
854
  border: 1px solid #00000040;
@@ -653,10 +862,10 @@
653
862
  border-color: #ffffff40;
654
863
  }
655
864
  .poveste-color-swatch:hover {
656
- border-color: var(--color-primary-500);
865
+ border-color: var(--_poveste-primary-500);
657
866
  }
658
867
  .poveste-color-swatch-fill {
659
- border-radius: var(--radius-sm);
868
+ border-radius: var(--_poveste-radius-sm);
660
869
  width: 100%;
661
870
  height: 100%;
662
871
  }
@@ -665,7 +874,7 @@
665
874
  }
666
875
  .poveste-color-field {
667
876
  box-sizing: border-box;
668
- border-radius: var(--radius-sm);
877
+ border-radius: var(--_poveste-radius-sm);
669
878
  width: 100%;
670
879
  color: inherit;
671
880
  background: 0 0;
@@ -678,13 +887,13 @@
678
887
  border-color: #ffffff40;
679
888
  }
680
889
  .poveste-color-field:focus {
681
- border-color: var(--color-primary-500);
890
+ border-color: var(--_poveste-primary-500);
682
891
  }
683
892
  .poveste-color-picker {
684
893
  z-index: 100;
685
- border: 1px solid var(--color-gray-200);
686
- border-radius: var(--radius-sm);
687
- background: var(--color-gray-50);
894
+ border: 1px solid var(--_poveste-gray-200);
895
+ border-radius: var(--_poveste-radius-sm);
896
+ background: var(--_poveste-gray-50);
688
897
  flex-direction: column;
689
898
  gap: .5rem;
690
899
  padding: .5rem;
@@ -692,15 +901,15 @@
692
901
  box-shadow: 0 4px 6px -1px #0000001a,0 2px 4px -2px #0000001a;
693
902
  }
694
903
  .poveste-color-picker:where(.ptw-dark,.ptw-dark *) {
695
- border-color: var(--color-gray-850);
696
- background: var(--color-gray-700);
904
+ border-color: var(--_poveste-gray-850);
905
+ background: var(--_poveste-gray-700);
697
906
  }
698
907
  .poveste-color-area {
699
908
  width: 10rem;
700
909
  height: 8rem;
701
910
  }
702
911
  .poveste-color-area-surface {
703
- border-radius: var(--radius-sm);
912
+ border-radius: var(--_poveste-radius-sm);
704
913
  width: 100%;
705
914
  height: 100%;
706
915
  }
@@ -714,7 +923,7 @@
714
923
  height: 100%;
715
924
  }
716
925
  .poveste-color-thumb {
717
- border: 2px solid var(--color-white);
926
+ border: 2px solid var(--_poveste-white);
718
927
  border-radius: 9999px;
719
928
  width: .75rem;
720
929
  height: .75rem;
@@ -758,7 +967,6 @@
758
967
  --color-red-500: oklch(63.7% 0.237 25.331);
759
968
  --color-red-600: oklch(57.7% 0.245 27.325);
760
969
  --color-red-700: oklch(50.5% 0.213 27.518);
761
- --color-orange-500: oklch(70.5% 0.213 47.604);
762
970
  --color-amber-400: oklch(82.8% 0.189 84.429);
763
971
  --color-amber-600: oklch(66.6% 0.179 58.318);
764
972
  --color-gray-50: var(--_poveste-color-gray-50, #fafafa);
@@ -791,6 +999,7 @@
791
999
  --radius-lg: 0.75rem;
792
1000
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
793
1001
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
1002
+ --animate-spin: spin 1s linear infinite;
794
1003
  --blur-md: 12px;
795
1004
  --default-transition-duration: 150ms;
796
1005
  --default-transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
@@ -932,9 +1141,6 @@
932
1141
  .m-1 {
933
1142
  margin: var(--spacing);
934
1143
  }
935
- .m-4 {
936
- margin: calc(var(--spacing) * 4);
937
- }
938
1144
  .m-auto {
939
1145
  margin: auto;
940
1146
  }
@@ -950,18 +1156,12 @@
950
1156
  .-my-1 {
951
1157
  margin-block: calc(var(--spacing) * -1);
952
1158
  }
953
- .my-0 {
954
- margin-block: 0px;
955
- }
956
1159
  .my-2 {
957
1160
  margin-block: calc(var(--spacing) * 2);
958
1161
  }
959
1162
  .my-4 {
960
1163
  margin-block: calc(var(--spacing) * 4);
961
1164
  }
962
- .my-8 {
963
- margin-block: calc(var(--spacing) * 8);
964
- }
965
1165
  .ms-0 {
966
1166
  margin-inline-start: 0px;
967
1167
  }
@@ -1470,9 +1670,6 @@
1470
1670
  .h-16 {
1471
1671
  height: calc(var(--spacing) * 16);
1472
1672
  }
1473
- .h-48 {
1474
- height: calc(var(--spacing) * 48);
1475
- }
1476
1673
  .h-64 {
1477
1674
  height: calc(var(--spacing) * 64);
1478
1675
  }
@@ -1521,9 +1718,6 @@
1521
1718
  .min-h-0 {
1522
1719
  min-height: 0px;
1523
1720
  }
1524
- .min-h-32 {
1525
- min-height: calc(var(--spacing) * 32);
1526
- }
1527
1721
  .min-h-full {
1528
1722
  min-height: 100%;
1529
1723
  }
@@ -1551,9 +1745,6 @@
1551
1745
  .w-20 {
1552
1746
  width: calc(var(--spacing) * 20);
1553
1747
  }
1554
- .w-28 {
1555
- width: calc(var(--spacing) * 28);
1556
- }
1557
1748
  .w-64 {
1558
1749
  width: calc(var(--spacing) * 64);
1559
1750
  }
@@ -1650,6 +1841,9 @@
1650
1841
  .transform {
1651
1842
  transform: var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,);
1652
1843
  }
1844
+ .animate-spin {
1845
+ animation: var(--animate-spin);
1846
+ }
1653
1847
  .cursor-default {
1654
1848
  cursor: default;
1655
1849
  }
@@ -1665,30 +1859,18 @@
1665
1859
  .cursor-pointer {
1666
1860
  cursor: pointer;
1667
1861
  }
1668
- .cursor-text {
1669
- cursor: text;
1670
- }
1671
1862
  .resize {
1672
1863
  resize: both;
1673
1864
  }
1674
1865
  .resize-none {
1675
1866
  resize: none;
1676
1867
  }
1677
- .resize-y {
1678
- resize: vertical;
1679
- }
1680
1868
  .grid-cols-\[1fr_auto_1fr\] {
1681
1869
  grid-template-columns: 1fr auto 1fr;
1682
1870
  }
1683
- .grid-cols-\[repeat\(auto-fill\,minmax\(200px\,1fr\)\)\] {
1684
- grid-template-columns: repeat(auto-fill,minmax(200px,1fr));
1685
- }
1686
1871
  .flex-col {
1687
1872
  flex-direction: column;
1688
1873
  }
1689
- .flex-row {
1690
- flex-direction: row;
1691
- }
1692
1874
  .flex-wrap {
1693
1875
  flex-wrap: wrap;
1694
1876
  }
@@ -1958,6 +2140,9 @@
1958
2140
  background-color: color-mix(in oklab, var(--color-gray-500) 20%, transparent);
1959
2141
  }
1960
2142
  }
2143
+ .bg-gray-700 {
2144
+ background-color: var(--color-gray-700);
2145
+ }
1961
2146
  .bg-primary-50 {
1962
2147
  background-color: var(--color-primary-50);
1963
2148
  }
@@ -2166,12 +2351,6 @@
2166
2351
  --tw-tracking: var(--tracking-wide);
2167
2352
  letter-spacing: var(--tracking-wide);
2168
2353
  }
2169
- .text-ellipsis {
2170
- text-overflow: ellipsis;
2171
- }
2172
- .whitespace-nowrap {
2173
- white-space: nowrap;
2174
- }
2175
2354
  .whitespace-pre-wrap {
2176
2355
  white-space: pre-wrap;
2177
2356
  }
@@ -2205,9 +2384,6 @@
2205
2384
  .text-inherit {
2206
2385
  color: inherit;
2207
2386
  }
2208
- .text-orange-500 {
2209
- color: var(--color-orange-500);
2210
- }
2211
2387
  .text-primary-500 {
2212
2388
  color: var(--color-primary-500);
2213
2389
  }
@@ -2412,9 +2588,6 @@
2412
2588
  .last\:mb-0:last-child {
2413
2589
  margin-bottom: 0px;
2414
2590
  }
2415
- .focus-within\:border-primary-500:focus-within {
2416
- border-color: var(--color-primary-500);
2417
- }
2418
2591
  .focus-within\:bg-gray-500\/5:focus-within {
2419
2592
  background-color: var(--color-gray-500);
2420
2593
  @supports (color: color-mix(in lab, red, red)) {
@@ -2498,9 +2671,6 @@
2498
2671
  opacity: 100%;
2499
2672
  }
2500
2673
  }
2501
- .focus\:border-primary-500:focus {
2502
- border-color: var(--color-primary-500);
2503
- }
2504
2674
  .focus\:border-primary-500\/50:focus {
2505
2675
  border-color: var(--color-primary-500);
2506
2676
  @supports (color: color-mix(in lab, red, red)) {
@@ -2731,11 +2901,6 @@
2731
2901
  .dark\:group-hover\:bg-primary-700:where(.ptw-dark, .ptw-dark *):is(:where(.group):hover *) {
2732
2902
  background-color: var(--color-primary-700);
2733
2903
  }
2734
- }
2735
- .dark\:focus-within\:border-primary-500:where(.ptw-dark, .ptw-dark *):focus-within {
2736
- border-color: var(--color-primary-500);
2737
- }
2738
- @media (hover: hover) {
2739
2904
  .dark\:hover\:border-primary-500:where(.ptw-dark, .ptw-dark *):hover {
2740
2905
  border-color: var(--color-primary-500);
2741
2906
  }
@@ -2766,9 +2931,6 @@
2766
2931
  color: var(--color-primary-400);
2767
2932
  }
2768
2933
  }
2769
- .dark\:focus\:border-primary-500:where(.ptw-dark, .ptw-dark *):focus {
2770
- border-color: var(--color-primary-500);
2771
- }
2772
2934
  .poveste-story-list-folder-button:hover .\[\.poveste-story-list-folder-button\:hover_\&\]\:opacity-100 {
2773
2935
  opacity: 100%;
2774
2936
  }
@@ -3172,6 +3334,11 @@
3172
3334
  syntax: "*";
3173
3335
  inherits: false;
3174
3336
  }
3337
+ @keyframes spin {
3338
+ to {
3339
+ transform: rotate(360deg);
3340
+ }
3341
+ }
3175
3342
  @layer properties {
3176
3343
  @supports ((-webkit-hyphens: none) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b)))) {
3177
3344
  *, ::before, ::after, ::backdrop {