@poveste/app 0.19.1 → 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 (58) hide show
  1. package/dist/bundled/app.css +208 -7
  2. package/dist/bundled/components/HomeView.vue_vue_type_script_setup_true_lang.js +3 -3
  3. package/dist/bundled/components/app/AppLogo.vue_vue_type_script_setup_true_lang.js +4 -4
  4. package/dist/bundled/components/app/TopBarChipItem.js +10 -6
  5. package/dist/bundled/components/layout/LayoutItem.js +1 -0
  6. package/dist/bundled/components/layout/LayoutItem.vue_vue_type_script_setup_true_lang.js +20 -23
  7. package/dist/bundled/components/layout/LayoutModal.vue_vue_type_script_setup_true_lang.js +44 -5
  8. package/dist/bundled/components/panel/ComponentDocs.js +7 -0
  9. package/dist/bundled/components/panel/ComponentDocs.vue_vue_type_script_setup_true_lang.js +164 -0
  10. package/dist/bundled/components/panel/StoryDocs.vue_vue_type_script_setup_true_lang.js +57 -22
  11. package/dist/bundled/components/panel/StorySourceCode.js +1 -1
  12. package/dist/bundled/components/panel/StorySourceCode.vue_vue_type_script_setup_true_lang.js +22 -6
  13. package/dist/bundled/components/story/GenericMountStory.vue_vue_type_script_setup_true_lang.js +3 -7
  14. package/dist/bundled/components/story/GenericRenderStory.vue_vue_type_script_setup_true_lang.js +3 -10
  15. package/dist/bundled/components/story/StoryResponsivePreview.js +1 -1
  16. package/dist/bundled/components/story/StoryResponsivePreview.vue_vue_type_script_setup_true_lang.js +5 -3
  17. package/dist/bundled/components/story/StoryVariantGridItem.js +1 -1
  18. package/dist/bundled/components/story/StoryVariantGridItem.vue_vue_type_script_setup_true_lang.js +5 -3
  19. package/dist/bundled/components/story/StoryVariantSinglePreviewRemote.vue_vue_type_script_setup_true_lang.js +3 -2
  20. package/dist/bundled/components/toolbar/DevOnlyToolbarOpenInEditor.vue_vue_type_script_setup_true_lang.js +0 -1
  21. package/dist/bundled/index.js +5 -1
  22. package/dist/bundled/sandbox.js +2 -0
  23. package/dist/bundled/util/client-plugin.js +22 -0
  24. package/dist/bundled/util/component-docs-data.js +5 -0
  25. package/dist/bundled/util/component-docs.js +133 -0
  26. package/dist/bundled/util/dark.js +3 -1
  27. package/dist/bundled/util/docs.js +13 -3
  28. package/dist/bundled/util/highlighter.js +1 -1
  29. package/dist/bundled/util/icons.generated.js +3 -2
  30. package/dist/bundled/util/keyboard.js +5 -4
  31. package/dist/bundled/util/mapping.js +1 -5
  32. package/dist/style.css +321 -195
  33. package/package.json +17 -17
  34. package/src/app/components/HomeView.vue +2 -2
  35. package/src/app/components/app/AppLogo.vue +4 -6
  36. package/src/app/components/app/TopBarChipItem.vue +55 -6
  37. package/src/app/components/layout/LayoutItem.vue +56 -6
  38. package/src/app/components/layout/LayoutModal.vue +55 -2
  39. package/src/app/components/panel/ComponentDocs.vue +323 -0
  40. package/src/app/components/panel/StoryDocs.vue +38 -2
  41. package/src/app/components/panel/StorySourceCode.vue +29 -5
  42. package/src/app/components/story/GenericMountStory.vue +3 -5
  43. package/src/app/components/story/GenericRenderStory.vue +4 -12
  44. package/src/app/components/story/StoryResponsivePreview.vue +4 -1
  45. package/src/app/components/story/StoryVariantGridItem.vue +4 -1
  46. package/src/app/components/story/StoryVariantSinglePreviewRemote.vue +6 -4
  47. package/src/app/components/toolbar/DevOnlyToolbarOpenInEditor.vue +0 -1
  48. package/src/app/index.ts +12 -3
  49. package/src/app/sandbox.ts +5 -0
  50. package/src/app/util/client-plugin.ts +33 -0
  51. package/src/app/util/component-docs-data.ts +6 -0
  52. package/src/app/util/component-docs.ts +169 -0
  53. package/src/app/util/dark.ts +6 -0
  54. package/src/app/util/docs.ts +18 -2
  55. package/src/app/util/highlighter.ts +2 -1
  56. package/src/app/util/icons.generated.ts +2 -2
  57. package/src/app/util/keyboard.ts +8 -4
  58. package/src/app/util/mapping.ts +1 -5
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,8 @@
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);
970
+ --color-amber-400: oklch(82.8% 0.189 84.429);
971
+ --color-amber-600: oklch(66.6% 0.179 58.318);
762
972
  --color-gray-50: var(--_poveste-color-gray-50, #fafafa);
763
973
  --color-gray-100: var(--_poveste-color-gray-100, #f4f4f5);
764
974
  --color-gray-200: var(--_poveste-color-gray-200, #e4e4e7);
@@ -780,8 +990,6 @@
780
990
  --text-lg--line-height: calc(1.75 / 1.125);
781
991
  --text-2xl: 1.5rem;
782
992
  --text-2xl--line-height: calc(2 / 1.5);
783
- --text-5xl: 3rem;
784
- --text-5xl--line-height: 1;
785
993
  --font-weight-medium: 500;
786
994
  --font-weight-bold: 700;
787
995
  --tracking-wide: 0.025em;
@@ -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
  }
@@ -1437,6 +1637,9 @@
1437
1637
  .inline-flex {
1438
1638
  display: inline-flex;
1439
1639
  }
1640
+ .table {
1641
+ display: table;
1642
+ }
1440
1643
  .h-2 {
1441
1644
  height: calc(var(--spacing) * 2);
1442
1645
  }
@@ -1467,15 +1670,6 @@
1467
1670
  .h-16 {
1468
1671
  height: calc(var(--spacing) * 16);
1469
1672
  }
1470
- .h-20 {
1471
- height: calc(var(--spacing) * 20);
1472
- }
1473
- .h-32 {
1474
- height: calc(var(--spacing) * 32);
1475
- }
1476
- .h-48 {
1477
- height: calc(var(--spacing) * 48);
1478
- }
1479
1673
  .h-64 {
1480
1674
  height: calc(var(--spacing) * 64);
1481
1675
  }
@@ -1497,9 +1691,6 @@
1497
1691
  .h-\[51px\] {
1498
1692
  height: 51px;
1499
1693
  }
1500
- .h-\[100px\] {
1501
- height: 100px;
1502
- }
1503
1694
  .h-fit {
1504
1695
  height: fit-content;
1505
1696
  }
@@ -1527,9 +1718,6 @@
1527
1718
  .min-h-0 {
1528
1719
  min-height: 0px;
1529
1720
  }
1530
- .min-h-32 {
1531
- min-height: calc(var(--spacing) * 32);
1532
- }
1533
1721
  .min-h-full {
1534
1722
  min-height: 100%;
1535
1723
  }
@@ -1557,12 +1745,6 @@
1557
1745
  .w-20 {
1558
1746
  width: calc(var(--spacing) * 20);
1559
1747
  }
1560
- .w-28 {
1561
- width: calc(var(--spacing) * 28);
1562
- }
1563
- .w-32 {
1564
- width: calc(var(--spacing) * 32);
1565
- }
1566
1748
  .w-64 {
1567
1749
  width: calc(var(--spacing) * 64);
1568
1750
  }
@@ -1659,6 +1841,9 @@
1659
1841
  .transform {
1660
1842
  transform: var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,);
1661
1843
  }
1844
+ .animate-spin {
1845
+ animation: var(--animate-spin);
1846
+ }
1662
1847
  .cursor-default {
1663
1848
  cursor: default;
1664
1849
  }
@@ -1674,30 +1859,18 @@
1674
1859
  .cursor-pointer {
1675
1860
  cursor: pointer;
1676
1861
  }
1677
- .cursor-text {
1678
- cursor: text;
1679
- }
1680
1862
  .resize {
1681
1863
  resize: both;
1682
1864
  }
1683
1865
  .resize-none {
1684
1866
  resize: none;
1685
1867
  }
1686
- .resize-y {
1687
- resize: vertical;
1688
- }
1689
1868
  .grid-cols-\[1fr_auto_1fr\] {
1690
1869
  grid-template-columns: 1fr auto 1fr;
1691
1870
  }
1692
- .grid-cols-\[repeat\(auto-fill\,minmax\(200px\,1fr\)\)\] {
1693
- grid-template-columns: repeat(auto-fill,minmax(200px,1fr));
1694
- }
1695
1871
  .flex-col {
1696
1872
  flex-direction: column;
1697
1873
  }
1698
- .flex-row {
1699
- flex-direction: row;
1700
- }
1701
1874
  .flex-wrap {
1702
1875
  flex-wrap: wrap;
1703
1876
  }
@@ -1841,10 +2014,6 @@
1841
2014
  border-style: var(--tw-border-style);
1842
2015
  border-width: 0px;
1843
2016
  }
1844
- .border-2 {
1845
- border-style: var(--tw-border-style);
1846
- border-width: 2px;
1847
- }
1848
2017
  .border-8 {
1849
2018
  border-style: var(--tw-border-style);
1850
2019
  border-width: 8px;
@@ -1971,11 +2140,8 @@
1971
2140
  background-color: color-mix(in oklab, var(--color-gray-500) 20%, transparent);
1972
2141
  }
1973
2142
  }
1974
- .bg-gray-500\/50 {
1975
- background-color: var(--color-gray-500);
1976
- @supports (color: color-mix(in lab, red, red)) {
1977
- background-color: color-mix(in oklab, var(--color-gray-500) 50%, transparent);
1978
- }
2143
+ .bg-gray-700 {
2144
+ background-color: var(--color-gray-700);
1979
2145
  }
1980
2146
  .bg-primary-50 {
1981
2147
  background-color: var(--color-primary-50);
@@ -2149,10 +2315,6 @@
2149
2315
  font-size: var(--text-2xl);
2150
2316
  line-height: var(--tw-leading, var(--text-2xl--line-height));
2151
2317
  }
2152
- .text-5xl {
2153
- font-size: var(--text-5xl);
2154
- line-height: var(--tw-leading, var(--text-5xl--line-height));
2155
- }
2156
2318
  .text-lg {
2157
2319
  font-size: var(--text-lg);
2158
2320
  line-height: var(--tw-leading, var(--text-lg--line-height));
@@ -2189,12 +2351,6 @@
2189
2351
  --tw-tracking: var(--tracking-wide);
2190
2352
  letter-spacing: var(--tracking-wide);
2191
2353
  }
2192
- .text-ellipsis {
2193
- text-overflow: ellipsis;
2194
- }
2195
- .whitespace-nowrap {
2196
- white-space: nowrap;
2197
- }
2198
2354
  .whitespace-pre-wrap {
2199
2355
  white-space: pre-wrap;
2200
2356
  }
@@ -2228,9 +2384,6 @@
2228
2384
  .text-inherit {
2229
2385
  color: inherit;
2230
2386
  }
2231
- .text-orange-500 {
2232
- color: var(--color-orange-500);
2233
- }
2234
2387
  .text-primary-500 {
2235
2388
  color: var(--color-primary-500);
2236
2389
  }
@@ -2435,9 +2588,6 @@
2435
2588
  .last\:mb-0:last-child {
2436
2589
  margin-bottom: 0px;
2437
2590
  }
2438
- .focus-within\:border-primary-500:focus-within {
2439
- border-color: var(--color-primary-500);
2440
- }
2441
2591
  .focus-within\:bg-gray-500\/5:focus-within {
2442
2592
  background-color: var(--color-gray-500);
2443
2593
  @supports (color: color-mix(in lab, red, red)) {
@@ -2521,9 +2671,6 @@
2521
2671
  opacity: 100%;
2522
2672
  }
2523
2673
  }
2524
- .focus\:border-primary-500:focus {
2525
- border-color: var(--color-primary-500);
2526
- }
2527
2674
  .focus\:border-primary-500\/50:focus {
2528
2675
  border-color: var(--color-primary-500);
2529
2676
  @supports (color: color-mix(in lab, red, red)) {
@@ -2558,12 +2705,6 @@
2558
2705
  background-color: color-mix(in oklab, var(--color-gray-600) 50%, transparent);
2559
2706
  }
2560
2707
  }
2561
- .active\:bg-white\/70:active {
2562
- background-color: color-mix(in srgb, #fff 70%, transparent);
2563
- @supports (color: color-mix(in lab, red, red)) {
2564
- background-color: color-mix(in oklab, var(--color-white) 70%, transparent);
2565
- }
2566
- }
2567
2708
  @media (width >= 40rem) {
2568
2709
  .sm\:h-4 {
2569
2710
  height: calc(var(--spacing) * 4);
@@ -2656,12 +2797,6 @@
2656
2797
  border-color: color-mix(in oklab, var(--color-white) 25%, transparent);
2657
2798
  }
2658
2799
  }
2659
- .dark\:bg-black:where(.ptw-dark, .ptw-dark *) {
2660
- background-color: var(--color-black);
2661
- }
2662
- .dark\:bg-gray-600:where(.ptw-dark, .ptw-dark *) {
2663
- background-color: var(--color-gray-600);
2664
- }
2665
2800
  .dark\:bg-gray-700:where(.ptw-dark, .ptw-dark *) {
2666
2801
  background-color: var(--color-gray-700);
2667
2802
  }
@@ -2766,11 +2901,6 @@
2766
2901
  .dark\:group-hover\:bg-primary-700:where(.ptw-dark, .ptw-dark *):is(:where(.group):hover *) {
2767
2902
  background-color: var(--color-primary-700);
2768
2903
  }
2769
- }
2770
- .dark\:focus-within\:border-primary-500:where(.ptw-dark, .ptw-dark *):focus-within {
2771
- border-color: var(--color-primary-500);
2772
- }
2773
- @media (hover: hover) {
2774
2904
  .dark\:hover\:border-primary-500:where(.ptw-dark, .ptw-dark *):hover {
2775
2905
  border-color: var(--color-primary-500);
2776
2906
  }
@@ -2801,15 +2931,6 @@
2801
2931
  color: var(--color-primary-400);
2802
2932
  }
2803
2933
  }
2804
- .dark\:focus\:border-primary-500:where(.ptw-dark, .ptw-dark *):focus {
2805
- border-color: var(--color-primary-500);
2806
- }
2807
- .dark\:active\:bg-white\/15:where(.ptw-dark, .ptw-dark *):active {
2808
- background-color: color-mix(in srgb, #fff 15%, transparent);
2809
- @supports (color: color-mix(in lab, red, red)) {
2810
- background-color: color-mix(in oklab, var(--color-white) 15%, transparent);
2811
- }
2812
- }
2813
2934
  .poveste-story-list-folder-button:hover .\[\.poveste-story-list-folder-button\:hover_\&\]\:opacity-100 {
2814
2935
  opacity: 100%;
2815
2936
  }
@@ -3213,6 +3334,11 @@
3213
3334
  syntax: "*";
3214
3335
  inherits: false;
3215
3336
  }
3337
+ @keyframes spin {
3338
+ to {
3339
+ transform: rotate(360deg);
3340
+ }
3341
+ }
3216
3342
  @layer properties {
3217
3343
  @supports ((-webkit-hyphens: none) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b)))) {
3218
3344
  *, ::before, ::after, ::backdrop {