zxq-com 0.0.30 → 0.0.32

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 (78) hide show
  1. package/dist/index.d.ts +0 -1
  2. package/dist/utils/index.d.ts +1 -0
  3. package/dist/ws/zxqWs.d.ts +1 -1
  4. package/dist/zxq-com.cjs +321 -322
  5. package/dist/zxq-com.css +1 -1
  6. package/dist/zxq-com.js +2890 -4179
  7. package/dist/zxq-ws.cjs +1 -1
  8. package/dist/zxq-ws.js +1 -1
  9. package/dist/zxqWs-C8PKp6xW.cjs +1 -0
  10. package/dist/zxqWs-wYl2lV3c.js +127 -0
  11. package/package.json +1 -1
  12. package/dist/A2UIAudio-CjRHo_tK.cjs +0 -1
  13. package/dist/A2UIAudio-Dn4ur7h-.js +0 -31
  14. package/dist/A2UIButton-CnppLi7b.cjs +0 -1
  15. package/dist/A2UIButton-nOO3LOth.js +0 -35
  16. package/dist/A2UICard-BgjH40z6.js +0 -34
  17. package/dist/A2UICard-BhGyY9Gx.cjs +0 -1
  18. package/dist/A2UICheckbox-B5uHUsbP.cjs +0 -1
  19. package/dist/A2UICheckbox-DrC1_5iC.js +0 -41
  20. package/dist/A2UIDateTimeInput-BYdDpBR-.js +0 -58
  21. package/dist/A2UIDateTimeInput-D-aG6mZk.cjs +0 -1
  22. package/dist/A2UIDivider-Bzpy-f-q.js +0 -24
  23. package/dist/A2UIDivider-CvM6sA_R.cjs +0 -1
  24. package/dist/A2UIIcon-7d6g1X7l.cjs +0 -1
  25. package/dist/A2UIIcon-D0PvsBr4.js +0 -30
  26. package/dist/A2UIImage-BeT7cRh7.cjs +0 -1
  27. package/dist/A2UIImage-DvRMKAMK.js +0 -39
  28. package/dist/A2UIList-CVESfWJr.js +0 -32
  29. package/dist/A2UIList-DcLtvZb0.cjs +0 -1
  30. package/dist/A2UIModal-BNDMZHNM.cjs +0 -1
  31. package/dist/A2UIModal-B_MoIZYE.js +0 -47
  32. package/dist/A2UIMultipleChoice-DtMcPyuU.js +0 -41
  33. package/dist/A2UIMultipleChoice-n7GyQjXd.cjs +0 -1
  34. package/dist/A2UIRenderer-DqVIH5p7.cjs +0 -1
  35. package/dist/A2UIRenderer-lZ0ms8c-.js +0 -44
  36. package/dist/A2UISlider-Dd9OIXwb.js +0 -54
  37. package/dist/A2UISlider-NnRbh48d.cjs +0 -1
  38. package/dist/A2UITabs-CvuzauYt.cjs +0 -1
  39. package/dist/A2UITabs-DU1t9s1D.js +0 -39
  40. package/dist/A2UITextField-CC5S1AW9.js +0 -46
  41. package/dist/A2UITextField-D652Ge6_.cjs +0 -1
  42. package/dist/A2UIVideo-CNBhUnoP.js +0 -30
  43. package/dist/A2UIVideo-CRBBhgyW.cjs +0 -1
  44. package/dist/a2ui/catalog/A2UIAudio.vue.d.ts +0 -10
  45. package/dist/a2ui/catalog/A2UIButton.vue.d.ts +0 -9
  46. package/dist/a2ui/catalog/A2UICard.vue.d.ts +0 -8
  47. package/dist/a2ui/catalog/A2UICheckbox.vue.d.ts +0 -11
  48. package/dist/a2ui/catalog/A2UIColumn.vue.d.ts +0 -10
  49. package/dist/a2ui/catalog/A2UIDateTimeInput.vue.d.ts +0 -12
  50. package/dist/a2ui/catalog/A2UIDivider.vue.d.ts +0 -8
  51. package/dist/a2ui/catalog/A2UIIcon.vue.d.ts +0 -10
  52. package/dist/a2ui/catalog/A2UIImage.vue.d.ts +0 -12
  53. package/dist/a2ui/catalog/A2UIList.vue.d.ts +0 -9
  54. package/dist/a2ui/catalog/A2UIModal.vue.d.ts +0 -10
  55. package/dist/a2ui/catalog/A2UIMultipleChoice.vue.d.ts +0 -15
  56. package/dist/a2ui/catalog/A2UIRow.vue.d.ts +0 -10
  57. package/dist/a2ui/catalog/A2UISlider.vue.d.ts +0 -13
  58. package/dist/a2ui/catalog/A2UISurface.vue.d.ts +0 -7
  59. package/dist/a2ui/catalog/A2UITabs.vue.d.ts +0 -9
  60. package/dist/a2ui/catalog/A2UIText.vue.d.ts +0 -11
  61. package/dist/a2ui/catalog/A2UITextField.vue.d.ts +0 -12
  62. package/dist/a2ui/catalog/A2UIVideo.vue.d.ts +0 -10
  63. package/dist/a2ui/catalog/default.d.ts +0 -2
  64. package/dist/a2ui/config.d.ts +0 -10
  65. package/dist/a2ui/data/markdown.d.ts +0 -9
  66. package/dist/a2ui/data/processor.d.ts +0 -17
  67. package/dist/a2ui/data/types.d.ts +0 -12
  68. package/dist/a2ui/index.d.ts +0 -11
  69. package/dist/a2ui/rendering/A2UIRenderer.vue.d.ts +0 -7
  70. package/dist/a2ui/rendering/catalog.d.ts +0 -10
  71. package/dist/a2ui/rendering/useDynamicComponent.d.ts +0 -18
  72. package/dist/a2ui/theme.d.ts +0 -2
  73. package/dist/styles-BYpMnn-p.js +0 -442
  74. package/dist/styles-BZV65AUo.cjs +0 -453
  75. package/dist/useDynamicComponent-MEzwhjNJ.js +0 -470
  76. package/dist/useDynamicComponent-YT-u9Rpv.cjs +0 -1
  77. package/dist/zxqWs-C-4EvBgn.cjs +0 -1
  78. package/dist/zxqWs-dpmEPt3d.js +0 -109
@@ -1,453 +0,0 @@
1
- const e=[0,5,10,15,20,25,30,35,40,50,60,70,80,90,95,98,99,100];var t=`
2
- &:not([disabled]) {
3
- cursor: pointer;
4
- opacity: var(--opacity, 0);
5
- transition: opacity var(--speed, 0.2s) cubic-bezier(0, 0, 0.3, 1);
6
-
7
- &:hover,
8
- &:focus {
9
- opacity: 1;
10
- }
11
- }`;const n=`
12
- ${Array(21).fill(0).map((e,n)=>`.behavior-ho-${n*5} {
13
- --opacity: ${n/20};
14
- ${t}
15
- }`).join(`
16
- `)}
17
-
18
- .behavior-o-s {
19
- overflow: scroll;
20
- }
21
-
22
- .behavior-o-a {
23
- overflow: auto;
24
- }
25
-
26
- .behavior-o-h {
27
- overflow: hidden;
28
- }
29
-
30
- .behavior-sw-n {
31
- scrollbar-width: none;
32
- }
33
- `,r=4,i=`
34
- ${Array(25).fill(0).map((e,t)=>`
35
- .border-bw-${t} { border-width: ${t}px; }
36
- .border-btw-${t} { border-top-width: ${t}px; }
37
- .border-bbw-${t} { border-bottom-width: ${t}px; }
38
- .border-blw-${t} { border-left-width: ${t}px; }
39
- .border-brw-${t} { border-right-width: ${t}px; }
40
-
41
- .border-ow-${t} { outline-width: ${t}px; }
42
- .border-br-${t} { border-radius: ${t*4}px; overflow: hidden;}`).join(`
43
- `)}
44
-
45
- .border-br-50pc {
46
- border-radius: 50%;
47
- }
48
-
49
- .border-bs-s {
50
- border-style: solid;
51
- }
52
- `;function a(...e){let t={};for(let n of e)for(let[e,r]of Object.entries(n)){let n=e.split(`-`).with(-1,``).join(`-`),i=Object.keys(t).filter(e=>e.startsWith(n));for(let e of i)delete t[e];t[e]=r}return t}function o(e,t,...n){let r=structuredClone(e);for(let e of n)for(let n of Object.keys(e)){let e=n.split(`-`).with(-1,``).join(`-`);for(let[i,a]of Object.entries(r)){if(t.includes(i))continue;let r=!1;for(let t=0;t<a.length;t++)a[t].startsWith(e)&&(r=!0,a[t]=n);r||a.push(n)}}return r}function s(e){return e.startsWith(`nv`)?`--nv-${e.slice(2)}`:`--${e[0]}-${e.slice(1)}`}var c=e=>`
53
- ${e.map(e=>{let t=l(e);return`.color-bc-${e} { border-color: light-dark(var(${s(e)}), var(${s(t)})); }`}).join(`
54
- `)}
55
-
56
- ${e.map(e=>{let t=l(e),n=[`.color-bgc-${e} { background-color: light-dark(var(${s(e)}), var(${s(t)})); }`,`.color-bbgc-${e}::backdrop { background-color: light-dark(var(${s(e)}), var(${s(t)})); }`];for(let r=.1;r<1;r+=.1)n.push(`.color-bbgc-${e}_${(r*100).toFixed(0)}::backdrop {
57
- background-color: light-dark(oklch(from var(${s(e)}) l c h / calc(alpha * ${r.toFixed(1)})), oklch(from var(${s(t)}) l c h / calc(alpha * ${r.toFixed(1)})) );
58
- }
59
- `);return n.join(`
60
- `)}).join(`
61
- `)}
62
-
63
- ${e.map(e=>{let t=l(e);return`.color-c-${e} { color: light-dark(var(${s(e)}), var(${s(t)})); }`}).join(`
64
- `)}
65
- `,l=t=>{let n=t.match(/^([a-z]+)(\d+)$/);if(!n)return t;let[,r,i]=n,a=100-parseInt(i,10);return`${r}${e.reduce((e,t)=>Math.abs(t-a)<Math.abs(e-a)?t:e)}`},u=t=>e.map(e=>`${t}${e}`);const d=[c(u(`p`)),c(u(`s`)),c(u(`t`)),c(u(`n`)),c(u(`nv`)),c(u(`e`)),`
66
- .color-bgc-transparent {
67
- background-color: transparent;
68
- }
69
-
70
- :host {
71
- color-scheme: var(--color-scheme);
72
- }
73
- `],f=`
74
- .g-icon {
75
- font-family: "Material Symbols Outlined", "Google Symbols";
76
- font-weight: normal;
77
- font-style: normal;
78
- font-display: optional;
79
- font-size: 20px;
80
- width: 1em;
81
- height: 1em;
82
- user-select: none;
83
- line-height: 1;
84
- letter-spacing: normal;
85
- text-transform: none;
86
- display: inline-block;
87
- white-space: nowrap;
88
- word-wrap: normal;
89
- direction: ltr;
90
- -webkit-font-feature-settings: "liga";
91
- -webkit-font-smoothing: antialiased;
92
- overflow: hidden;
93
-
94
- font-variation-settings: "FILL" 0, "wght" 300, "GRAD" 0, "opsz" 48,
95
- "ROND" 100;
96
-
97
- &.filled {
98
- font-variation-settings: "FILL" 1, "wght" 300, "GRAD" 0, "opsz" 48,
99
- "ROND" 100;
100
- }
101
-
102
- &.filled-heavy {
103
- font-variation-settings: "FILL" 1, "wght" 700, "GRAD" 0, "opsz" 48,
104
- "ROND" 100;
105
- }
106
- }
107
- `,p=`
108
- :host {
109
- ${Array(16).fill(0).map((e,t)=>`--g-${t+1}: ${(t+1)*4}px;`).join(`
110
- `)}
111
- }
112
-
113
- ${Array(49).fill(0).map((e,t)=>{let n=t-24,r=n<0?`n${Math.abs(n)}`:n.toString();return`
114
- .layout-p-${r} { --padding: ${n*4}px; padding: var(--padding); }
115
- .layout-pt-${r} { padding-top: ${n*4}px; }
116
- .layout-pr-${r} { padding-right: ${n*4}px; }
117
- .layout-pb-${r} { padding-bottom: ${n*4}px; }
118
- .layout-pl-${r} { padding-left: ${n*4}px; }
119
-
120
- .layout-m-${r} { --margin: ${n*4}px; margin: var(--margin); }
121
- .layout-mt-${r} { margin-top: ${n*4}px; }
122
- .layout-mr-${r} { margin-right: ${n*4}px; }
123
- .layout-mb-${r} { margin-bottom: ${n*4}px; }
124
- .layout-ml-${r} { margin-left: ${n*4}px; }
125
-
126
- .layout-t-${r} { top: ${n*4}px; }
127
- .layout-r-${r} { right: ${n*4}px; }
128
- .layout-b-${r} { bottom: ${n*4}px; }
129
- .layout-l-${r} { left: ${n*4}px; }`}).join(`
130
- `)}
131
-
132
- ${Array(25).fill(0).map((e,t)=>`
133
- .layout-g-${t} { gap: ${t*4}px; }`).join(`
134
- `)}
135
-
136
- ${Array(8).fill(0).map((e,t)=>`
137
- .layout-grd-col${t+1} { grid-template-columns: ${`1fr `.repeat(t+1).trim()}; }`).join(`
138
- `)}
139
-
140
- .layout-pos-a {
141
- position: absolute;
142
- }
143
-
144
- .layout-pos-rel {
145
- position: relative;
146
- }
147
-
148
- .layout-dsp-none {
149
- display: none;
150
- }
151
-
152
- .layout-dsp-block {
153
- display: block;
154
- }
155
-
156
- .layout-dsp-grid {
157
- display: grid;
158
- }
159
-
160
- .layout-dsp-iflex {
161
- display: inline-flex;
162
- }
163
-
164
- .layout-dsp-flexvert {
165
- display: flex;
166
- flex-direction: column;
167
- }
168
-
169
- .layout-dsp-flexhor {
170
- display: flex;
171
- flex-direction: row;
172
- }
173
-
174
- .layout-fw-w {
175
- flex-wrap: wrap;
176
- }
177
-
178
- .layout-al-fs {
179
- align-items: start;
180
- }
181
-
182
- .layout-al-fe {
183
- align-items: end;
184
- }
185
-
186
- .layout-al-c {
187
- align-items: center;
188
- }
189
-
190
- .layout-as-n {
191
- align-self: normal;
192
- }
193
-
194
- .layout-js-c {
195
- justify-self: center;
196
- }
197
-
198
- .layout-sp-c {
199
- justify-content: center;
200
- }
201
-
202
- .layout-sp-ev {
203
- justify-content: space-evenly;
204
- }
205
-
206
- .layout-sp-bt {
207
- justify-content: space-between;
208
- }
209
-
210
- .layout-sp-s {
211
- justify-content: start;
212
- }
213
-
214
- .layout-sp-e {
215
- justify-content: end;
216
- }
217
-
218
- .layout-ji-e {
219
- justify-items: end;
220
- }
221
-
222
- .layout-r-none {
223
- resize: none;
224
- }
225
-
226
- .layout-fs-c {
227
- field-sizing: content;
228
- }
229
-
230
- .layout-fs-n {
231
- field-sizing: none;
232
- }
233
-
234
- .layout-flx-0 {
235
- flex: 0 0 auto;
236
- }
237
-
238
- .layout-flx-1 {
239
- flex: 1 0 auto;
240
- }
241
-
242
- .layout-c-s {
243
- contain: strict;
244
- }
245
-
246
- /** Widths **/
247
-
248
- ${Array(10).fill(0).map((e,t)=>{let n=(t+1)*10;return`.layout-w-${n} { width: ${n}%; max-width: ${n}%; }`}).join(`
249
- `)}
250
-
251
- ${Array(16).fill(0).map((e,t)=>`.layout-wp-${t} { width: ${t*4}px; }`).join(`
252
- `)}
253
-
254
- /** Heights **/
255
-
256
- ${Array(10).fill(0).map((e,t)=>{let n=(t+1)*10;return`.layout-h-${n} { height: ${n}%; }`}).join(`
257
- `)}
258
-
259
- ${Array(16).fill(0).map((e,t)=>`.layout-hp-${t} { height: ${t*4}px; }`).join(`
260
- `)}
261
-
262
- .layout-el-cv {
263
- & img,
264
- & video {
265
- width: 100%;
266
- height: 100%;
267
- object-fit: cover;
268
- margin: 0;
269
- }
270
- }
271
-
272
- .layout-ar-sq {
273
- aspect-ratio: 1 / 1;
274
- }
275
-
276
- .layout-ex-fb {
277
- margin: calc(var(--padding) * -1) 0 0 calc(var(--padding) * -1);
278
- width: calc(100% + var(--padding) * 2);
279
- height: calc(100% + var(--padding) * 2);
280
- }
281
- `,m=`
282
- ${Array(21).fill(0).map((e,t)=>`.opacity-el-${t*5} { opacity: ${t/20}; }`).join(`
283
- `)}
284
- `,h=`
285
- :host {
286
- --default-font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
287
- --default-font-family-mono: "Courier New", Courier, monospace;
288
- }
289
-
290
- .typography-f-s {
291
- font-family: var(--font-family, var(--default-font-family));
292
- font-optical-sizing: auto;
293
- font-variation-settings: "slnt" 0, "wdth" 100, "GRAD" 0;
294
- }
295
-
296
- .typography-f-sf {
297
- font-family: var(--font-family-flex, var(--default-font-family));
298
- font-optical-sizing: auto;
299
- }
300
-
301
- .typography-f-c {
302
- font-family: var(--font-family-mono, var(--default-font-family));
303
- font-optical-sizing: auto;
304
- font-variation-settings: "slnt" 0, "wdth" 100, "GRAD" 0;
305
- }
306
-
307
- .typography-v-r {
308
- font-variation-settings: "slnt" 0, "wdth" 100, "GRAD" 0, "ROND" 100;
309
- }
310
-
311
- .typography-ta-s {
312
- text-align: start;
313
- }
314
-
315
- .typography-ta-c {
316
- text-align: center;
317
- }
318
-
319
- .typography-fs-n {
320
- font-style: normal;
321
- }
322
-
323
- .typography-fs-i {
324
- font-style: italic;
325
- }
326
-
327
- .typography-sz-ls {
328
- font-size: 11px;
329
- line-height: 16px;
330
- }
331
-
332
- .typography-sz-lm {
333
- font-size: 12px;
334
- line-height: 16px;
335
- }
336
-
337
- .typography-sz-ll {
338
- font-size: 14px;
339
- line-height: 20px;
340
- }
341
-
342
- .typography-sz-bs {
343
- font-size: 12px;
344
- line-height: 16px;
345
- }
346
-
347
- .typography-sz-bm {
348
- font-size: 14px;
349
- line-height: 20px;
350
- }
351
-
352
- .typography-sz-bl {
353
- font-size: 16px;
354
- line-height: 24px;
355
- }
356
-
357
- .typography-sz-ts {
358
- font-size: 14px;
359
- line-height: 20px;
360
- }
361
-
362
- .typography-sz-tm {
363
- font-size: 16px;
364
- line-height: 24px;
365
- }
366
-
367
- .typography-sz-tl {
368
- font-size: 22px;
369
- line-height: 28px;
370
- }
371
-
372
- .typography-sz-hs {
373
- font-size: 24px;
374
- line-height: 32px;
375
- }
376
-
377
- .typography-sz-hm {
378
- font-size: 28px;
379
- line-height: 36px;
380
- }
381
-
382
- .typography-sz-hl {
383
- font-size: 32px;
384
- line-height: 40px;
385
- }
386
-
387
- .typography-sz-ds {
388
- font-size: 36px;
389
- line-height: 44px;
390
- }
391
-
392
- .typography-sz-dm {
393
- font-size: 45px;
394
- line-height: 52px;
395
- }
396
-
397
- .typography-sz-dl {
398
- font-size: 57px;
399
- line-height: 64px;
400
- }
401
-
402
- .typography-ws-p {
403
- white-space: pre-line;
404
- }
405
-
406
- .typography-ws-nw {
407
- white-space: nowrap;
408
- }
409
-
410
- .typography-td-none {
411
- text-decoration: none;
412
- }
413
-
414
- /** Weights **/
415
-
416
- ${Array(9).fill(0).map((e,t)=>{let n=(t+1)*100;return`.typography-w-${n} { font-weight: ${n}; }`}).join(`
417
- `)}
418
- `,g=[n,i,d,`
419
- .g-icon {
420
- font-family: "Material Symbols Outlined", "Google Symbols";
421
- font-weight: normal;
422
- font-style: normal;
423
- font-display: optional;
424
- font-size: 20px;
425
- width: 1em;
426
- height: 1em;
427
- user-select: none;
428
- line-height: 1;
429
- letter-spacing: normal;
430
- text-transform: none;
431
- display: inline-block;
432
- white-space: nowrap;
433
- word-wrap: normal;
434
- direction: ltr;
435
- -webkit-font-feature-settings: "liga";
436
- -webkit-font-smoothing: antialiased;
437
- overflow: hidden;
438
-
439
- font-variation-settings: "FILL" 0, "wght" 300, "GRAD" 0, "opsz" 48,
440
- "ROND" 100;
441
-
442
- &.filled {
443
- font-variation-settings: "FILL" 1, "wght" 300, "GRAD" 0, "opsz" 48,
444
- "ROND" 100;
445
- }
446
-
447
- &.filled-heavy {
448
- font-variation-settings: "FILL" 1, "wght" 700, "GRAD" 0, "opsz" 48,
449
- "ROND" 100;
450
- }
451
- }
452
- `,p,m,h].flat(1/0).join(`
453
- `);Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return o}}),Object.defineProperty(exports,`r`,{enumerable:!0,get:function(){return a}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return g}});