@zazz-ui/core 0.12.3 → 0.13.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 (84) hide show
  1. package/AUTHORING.md +6 -6
  2. package/CHANGELOG.md +40 -0
  3. package/README.md +8 -6
  4. package/dist/sri.json +51 -51
  5. package/dist/zazz.css +1 -1
  6. package/dist/zazz.js +1 -1
  7. package/editor/zazz.css-data.json +1238 -3564
  8. package/editor/zazz.html-data.json +9 -0
  9. package/editor/zazz.language-data.json +21 -8
  10. package/editor/zazz.lint-data.json +1139 -1110
  11. package/package.json +5 -5
  12. package/src/base/_defaults.css +0 -83
  13. package/src/base/_properties-2xl.css +0 -8
  14. package/src/base/_properties-active.css +0 -4
  15. package/src/base/_properties-checked.css +0 -4
  16. package/src/base/_properties-current.css +0 -4
  17. package/src/base/_properties-disabled.css +0 -4
  18. package/src/base/_properties-focus-visible.css +0 -4
  19. package/src/base/_properties-focus-within.css +0 -4
  20. package/src/base/_properties-hover.css +0 -4
  21. package/src/base/_properties-lg.css +0 -8
  22. package/src/base/_properties-md.css +0 -8
  23. package/src/base/_properties-open.css +0 -4
  24. package/src/base/_properties-sm.css +0 -8
  25. package/src/base/_properties-starting.css +0 -26
  26. package/src/base/_properties-stuck.css +0 -2
  27. package/src/base/_properties-xl.css +0 -8
  28. package/src/base/_properties.css +23 -0
  29. package/src/base/_utilities-box.css +1 -6
  30. package/src/base/_utilities-color.css +1 -1
  31. package/src/base/_utilities-effects.css +7 -7
  32. package/src/base/_utilities-flow.css +54 -11
  33. package/src/base/_utilities-grid.css +5 -85
  34. package/src/base/_utilities-tier-2xl.css +0 -4
  35. package/src/base/_utilities-tier-active.css +0 -2
  36. package/src/base/_utilities-tier-checked.css +0 -2
  37. package/src/base/_utilities-tier-current.css +0 -2
  38. package/src/base/_utilities-tier-disabled.css +0 -2
  39. package/src/base/_utilities-tier-focus-visible.css +0 -2
  40. package/src/base/_utilities-tier-focus-within.css +0 -2
  41. package/src/base/_utilities-tier-hover.css +0 -2
  42. package/src/base/_utilities-tier-lg.css +0 -4
  43. package/src/base/_utilities-tier-md.css +0 -4
  44. package/src/base/_utilities-tier-open.css +0 -2
  45. package/src/base/_utilities-tier-sm.css +0 -4
  46. package/src/base/_utilities-tier-starting.css +0 -13
  47. package/src/base/_utilities-tier-stuck.css +0 -1
  48. package/src/base/_utilities-tier-xl.css +0 -4
  49. package/src/base/_utilities-typography.css +4 -8
  50. package/src/base/embla.d.ts.map +1 -1
  51. package/src/base/embla.js +223 -65
  52. package/src/base/embla.ts +245 -62
  53. package/src/base/kit-styling.d.ts.map +1 -1
  54. package/src/base/kit-styling.js +154 -150
  55. package/src/base/kit-styling.ts +154 -150
  56. package/src/base/utilities.d.ts +23 -7
  57. package/src/base/utilities.d.ts.map +1 -1
  58. package/src/base/utilities.js +91 -22
  59. package/src/base/utilities.ts +101 -23
  60. package/src/head.js +8 -8
  61. package/src/head.ts +8 -8
  62. package/src/manifest.d.ts.map +1 -1
  63. package/src/manifest.js +7 -1
  64. package/src/manifest.ts +7 -1
  65. package/src/primitives/carousel/carousel.css +4 -3
  66. package/src/primitives/carousel/carousel.d.ts +2 -1
  67. package/src/primitives/carousel/carousel.d.ts.map +1 -1
  68. package/src/primitives/carousel/carousel.js +2 -1
  69. package/src/primitives/carousel/carousel.ts +2 -1
  70. package/src/primitives/debug/audit-core.d.ts.map +1 -1
  71. package/src/primitives/debug/audit-core.js +46 -4
  72. package/src/primitives/debug/audit-core.ts +53 -4
  73. package/src/primitives/lightbox/lightbox.js +2 -2
  74. package/src/primitives/lightbox/lightbox.ts +2 -2
  75. package/src/primitives/tabs/tabs-underline.html +117 -0
  76. package/src/primitives/tabs/tabs.css +119 -27
  77. package/src/primitives/toggle/toggle.css +153 -40
  78. package/src/primitives/utilities/flex-direction.html +1 -1
  79. package/src/primitives/utilities/flex-reverse.html +136 -0
  80. package/src/primitives/utilities/gallery.html +289 -0
  81. package/src/primitives/utilities/inline-flex.html +45 -0
  82. package/src/primitives/utilities/subgrid-col.html +109 -0
  83. package/src/primitives/utilities/subgrid-row.html +98 -0
  84. package/src/primitives/utilities/subgrid.html +135 -0
@@ -0,0 +1,136 @@
1
+ <div
2
+ style="
3
+ --display: flex-col;
4
+ --gap: 11;
5
+ --w: 100%;
6
+ --max-w: 96;
7
+ "
8
+ >
9
+ <div
10
+ style="
11
+ --display: flex-col;
12
+ --gap: 2;
13
+ "
14
+ >
15
+ <span
16
+ data-ui="text-xs"
17
+ style="
18
+ --font-weight: strong;
19
+ --text: var(--color-muted-foreground);
20
+ "
21
+ >
22
+ --display: flex-row-reverse
23
+ </span>
24
+ <div
25
+ style="
26
+ --display: flex-row-reverse;
27
+ --gap: 4;
28
+ "
29
+ >
30
+ <div
31
+ data-ui="text-sm"
32
+ style="
33
+ --flex: 1;
34
+ --p: 4;
35
+ --font-weight: strong;
36
+ --text-align: center;
37
+ --text: var(--color-primary-foreground);
38
+ --bg: var(--color-primary);
39
+ --radius: 2.5;
40
+ "
41
+ >
42
+ 1
43
+ </div>
44
+ <div
45
+ data-ui="text-sm"
46
+ style="
47
+ --flex: 1;
48
+ --p: 4;
49
+ --font-weight: strong;
50
+ --text-align: center;
51
+ --text: var(--color-primary-foreground);
52
+ --bg: var(--color-primary);
53
+ --radius: 2.5;
54
+ "
55
+ >
56
+ 2
57
+ </div>
58
+ <div
59
+ data-ui="text-sm"
60
+ style="
61
+ --flex: 1;
62
+ --p: 4;
63
+ --font-weight: strong;
64
+ --text-align: center;
65
+ --text: var(--color-primary-foreground);
66
+ --bg: var(--color-primary);
67
+ --radius: 2.5;
68
+ "
69
+ >
70
+ 3
71
+ </div>
72
+ </div>
73
+ </div>
74
+ <div
75
+ style="
76
+ --display: flex-col;
77
+ --gap: 2;
78
+ "
79
+ >
80
+ <span
81
+ data-ui="text-xs"
82
+ style="
83
+ --font-weight: strong;
84
+ --text: var(--color-muted-foreground);
85
+ "
86
+ >
87
+ --display: flex-col-reverse
88
+ </span>
89
+ <div
90
+ style="
91
+ --display: flex-col-reverse;
92
+ --gap: 4;
93
+ "
94
+ >
95
+ <div
96
+ data-ui="text-sm"
97
+ style="
98
+ --p: 4;
99
+ --font-weight: strong;
100
+ --text-align: center;
101
+ --text: var(--color-muted-foreground);
102
+ --bg: var(--color-muted);
103
+ --radius: 2.5;
104
+ "
105
+ >
106
+ 1
107
+ </div>
108
+ <div
109
+ data-ui="text-sm"
110
+ style="
111
+ --p: 4;
112
+ --font-weight: strong;
113
+ --text-align: center;
114
+ --text: var(--color-muted-foreground);
115
+ --bg: var(--color-muted);
116
+ --radius: 2.5;
117
+ "
118
+ >
119
+ 2
120
+ </div>
121
+ <div
122
+ data-ui="text-sm"
123
+ style="
124
+ --p: 4;
125
+ --font-weight: strong;
126
+ --text-align: center;
127
+ --text: var(--color-muted-foreground);
128
+ --bg: var(--color-muted);
129
+ --radius: 2.5;
130
+ "
131
+ >
132
+ 3
133
+ </div>
134
+ </div>
135
+ </div>
136
+ </div>
@@ -0,0 +1,289 @@
1
+ <div
2
+ style="
3
+ --display: flex-col;
4
+ --gap: 11;
5
+ --w: 100%;
6
+ --max-w: 160;
7
+ "
8
+ >
9
+ <div
10
+ style="
11
+ --display: flex-col;
12
+ --gap: 2;
13
+ "
14
+ >
15
+ <span
16
+ data-ui="text-xs"
17
+ style="
18
+ --font-weight: strong;
19
+ --text: var(--color-muted-foreground);
20
+ "
21
+ >
22
+ 4 children: one row of four, or 2 + 2
23
+ </span>
24
+ <div
25
+ style="
26
+ --display: grid-gallery;
27
+ --gap: 2;
28
+ --ui-gallery-min-w: 5rem;
29
+ "
30
+ >
31
+ <div
32
+ data-ui="text-sm"
33
+ style="
34
+ --p: 4;
35
+ --font-weight: strong;
36
+ --text-align: center;
37
+ --text: var(--color-primary-foreground);
38
+ --bg: var(--color-primary);
39
+ --radius: 2.5;
40
+ "
41
+ >
42
+ 1
43
+ </div>
44
+ <div
45
+ data-ui="text-sm"
46
+ style="
47
+ --p: 4;
48
+ --font-weight: strong;
49
+ --text-align: center;
50
+ --text: var(--color-primary-foreground);
51
+ --bg: var(--color-primary);
52
+ --radius: 2.5;
53
+ "
54
+ >
55
+ 2
56
+ </div>
57
+ <div
58
+ data-ui="text-sm"
59
+ style="
60
+ --p: 4;
61
+ --font-weight: strong;
62
+ --text-align: center;
63
+ --text: var(--color-primary-foreground);
64
+ --bg: var(--color-primary);
65
+ --radius: 2.5;
66
+ "
67
+ >
68
+ 3
69
+ </div>
70
+ <div
71
+ data-ui="text-sm"
72
+ style="
73
+ --p: 4;
74
+ --font-weight: strong;
75
+ --text-align: center;
76
+ --text: var(--color-primary-foreground);
77
+ --bg: var(--color-primary);
78
+ --radius: 2.5;
79
+ "
80
+ >
81
+ 4
82
+ </div>
83
+ </div>
84
+ </div>
85
+ <div
86
+ style="
87
+ --display: flex-col;
88
+ --gap: 2;
89
+ "
90
+ >
91
+ <span
92
+ data-ui="text-xs"
93
+ style="
94
+ --font-weight: strong;
95
+ --text: var(--color-muted-foreground);
96
+ "
97
+ >
98
+ 5 children: one row of five, or 3 + 2
99
+ </span>
100
+ <div
101
+ style="
102
+ --display: grid-gallery;
103
+ --gap: 2;
104
+ --ui-gallery-min-w: 5rem;
105
+ "
106
+ >
107
+ <div
108
+ data-ui="text-sm"
109
+ style="
110
+ --p: 4;
111
+ --font-weight: strong;
112
+ --text-align: center;
113
+ --text: var(--color-muted-foreground);
114
+ --bg: var(--color-muted);
115
+ --radius: 2.5;
116
+ "
117
+ >
118
+ 1
119
+ </div>
120
+ <div
121
+ data-ui="text-sm"
122
+ style="
123
+ --p: 4;
124
+ --font-weight: strong;
125
+ --text-align: center;
126
+ --text: var(--color-muted-foreground);
127
+ --bg: var(--color-muted);
128
+ --radius: 2.5;
129
+ "
130
+ >
131
+ 2
132
+ </div>
133
+ <div
134
+ data-ui="text-sm"
135
+ style="
136
+ --p: 4;
137
+ --font-weight: strong;
138
+ --text-align: center;
139
+ --text: var(--color-muted-foreground);
140
+ --bg: var(--color-muted);
141
+ --radius: 2.5;
142
+ "
143
+ >
144
+ 3
145
+ </div>
146
+ <div
147
+ data-ui="text-sm"
148
+ style="
149
+ --p: 4;
150
+ --font-weight: strong;
151
+ --text-align: center;
152
+ --text: var(--color-muted-foreground);
153
+ --bg: var(--color-muted);
154
+ --radius: 2.5;
155
+ "
156
+ >
157
+ 4
158
+ </div>
159
+ <div
160
+ data-ui="text-sm"
161
+ style="
162
+ --p: 4;
163
+ --font-weight: strong;
164
+ --text-align: center;
165
+ --text: var(--color-muted-foreground);
166
+ --bg: var(--color-muted);
167
+ --radius: 2.5;
168
+ "
169
+ >
170
+ 5
171
+ </div>
172
+ </div>
173
+ </div>
174
+ <div
175
+ style="
176
+ --display: flex-col;
177
+ --gap: 2;
178
+ "
179
+ >
180
+ <span
181
+ data-ui="text-xs"
182
+ style="
183
+ --font-weight: strong;
184
+ --text: var(--color-muted-foreground);
185
+ "
186
+ >
187
+ 7 children: 5 + 2, or 4 + 3
188
+ </span>
189
+ <div
190
+ style="
191
+ --display: grid-gallery;
192
+ --gap: 2;
193
+ --ui-gallery-min-w: 5rem;
194
+ "
195
+ >
196
+ <div
197
+ data-ui="text-sm"
198
+ style="
199
+ --p: 4;
200
+ --font-weight: strong;
201
+ --text-align: center;
202
+ --text: var(--color-primary-foreground);
203
+ --bg: var(--color-primary);
204
+ --radius: 2.5;
205
+ "
206
+ >
207
+ 1
208
+ </div>
209
+ <div
210
+ data-ui="text-sm"
211
+ style="
212
+ --p: 4;
213
+ --font-weight: strong;
214
+ --text-align: center;
215
+ --text: var(--color-primary-foreground);
216
+ --bg: var(--color-primary);
217
+ --radius: 2.5;
218
+ "
219
+ >
220
+ 2
221
+ </div>
222
+ <div
223
+ data-ui="text-sm"
224
+ style="
225
+ --p: 4;
226
+ --font-weight: strong;
227
+ --text-align: center;
228
+ --text: var(--color-primary-foreground);
229
+ --bg: var(--color-primary);
230
+ --radius: 2.5;
231
+ "
232
+ >
233
+ 3
234
+ </div>
235
+ <div
236
+ data-ui="text-sm"
237
+ style="
238
+ --p: 4;
239
+ --font-weight: strong;
240
+ --text-align: center;
241
+ --text: var(--color-primary-foreground);
242
+ --bg: var(--color-primary);
243
+ --radius: 2.5;
244
+ "
245
+ >
246
+ 4
247
+ </div>
248
+ <div
249
+ data-ui="text-sm"
250
+ style="
251
+ --p: 4;
252
+ --font-weight: strong;
253
+ --text-align: center;
254
+ --text: var(--color-primary-foreground);
255
+ --bg: var(--color-primary);
256
+ --radius: 2.5;
257
+ "
258
+ >
259
+ 5
260
+ </div>
261
+ <div
262
+ data-ui="text-sm"
263
+ style="
264
+ --p: 4;
265
+ --font-weight: strong;
266
+ --text-align: center;
267
+ --text: var(--color-primary-foreground);
268
+ --bg: var(--color-primary);
269
+ --radius: 2.5;
270
+ "
271
+ >
272
+ 6
273
+ </div>
274
+ <div
275
+ data-ui="text-sm"
276
+ style="
277
+ --p: 4;
278
+ --font-weight: strong;
279
+ --text-align: center;
280
+ --text: var(--color-primary-foreground);
281
+ --bg: var(--color-primary);
282
+ --radius: 2.5;
283
+ "
284
+ >
285
+ 7
286
+ </div>
287
+ </div>
288
+ </div>
289
+ </div>
@@ -0,0 +1,45 @@
1
+ <div
2
+ style="
3
+ --display: flex-col;
4
+ --gap: 6;
5
+ --w: 100%;
6
+ --max-w: 96;
7
+ "
8
+ >
9
+ <p data-ui="text-sm" style="--m: 0">
10
+ An <code>inline-flex-row</code> box sits in the line
11
+ <span
12
+ style="
13
+ --display: inline-flex-row;
14
+ --px: 2;
15
+ --py: 1;
16
+ --gap: 1;
17
+ --text: var(--color-primary-foreground);
18
+ --bg: var(--color-primary);
19
+ --radius: 2.5;
20
+ "
21
+ >
22
+ <b>one</b>
23
+ <b>two</b>
24
+ </span>
25
+ and the sentence carries on.
26
+ </p>
27
+ <p data-ui="text-sm" style="--m: 0">
28
+ An <code>inline-flex-col</code> box stacks its children
29
+ <span
30
+ style="
31
+ --display: inline-flex-col;
32
+ --px: 2;
33
+ --py: 1;
34
+ --gap: 1;
35
+ --text: var(--color-muted-foreground);
36
+ --bg: var(--color-muted);
37
+ --radius: 2.5;
38
+ "
39
+ >
40
+ <b>one</b>
41
+ <b>two</b>
42
+ </span>
43
+ and the sentence carries on.
44
+ </p>
45
+ </div>
@@ -0,0 +1,109 @@
1
+ <div
2
+ style="
3
+ --display: grid;
4
+ --template-cols: 1fr 2fr 1fr 1fr;
5
+ --gap: 2;
6
+ --w: 100%;
7
+ --max-w: 120;
8
+ "
9
+ >
10
+ <div
11
+ data-ui="text-sm"
12
+ style="
13
+ --p: 4;
14
+ --font-weight: strong;
15
+ --text-align: center;
16
+ --text: var(--color-primary-foreground);
17
+ --bg: var(--color-primary);
18
+ --radius: 2.5;
19
+ "
20
+ >
21
+ 1
22
+ </div>
23
+ <div
24
+ data-ui="text-sm"
25
+ style="
26
+ --p: 4;
27
+ --font-weight: strong;
28
+ --text-align: center;
29
+ --text: var(--color-primary-foreground);
30
+ --bg: var(--color-primary);
31
+ --radius: 2.5;
32
+ "
33
+ >
34
+ 2
35
+ </div>
36
+ <div
37
+ data-ui="text-sm"
38
+ style="
39
+ --p: 4;
40
+ --font-weight: strong;
41
+ --text-align: center;
42
+ --text: var(--color-primary-foreground);
43
+ --bg: var(--color-primary);
44
+ --radius: 2.5;
45
+ "
46
+ >
47
+ 3
48
+ </div>
49
+ <div
50
+ data-ui="text-sm"
51
+ style="
52
+ --p: 4;
53
+ --font-weight: strong;
54
+ --text-align: center;
55
+ --text: var(--color-primary-foreground);
56
+ --bg: var(--color-primary);
57
+ --radius: 2.5;
58
+ "
59
+ >
60
+ 4
61
+ </div>
62
+ <div
63
+ style="
64
+ --display: subgrid-col;
65
+ --col-span: 4;
66
+ "
67
+ >
68
+ <div
69
+ data-ui="text-sm"
70
+ style="
71
+ --p: 4;
72
+ --font-weight: strong;
73
+ --text-align: center;
74
+ --text: var(--color-muted-foreground);
75
+ --bg: var(--color-muted);
76
+ --radius: 2.5;
77
+ "
78
+ >
79
+ a
80
+ </div>
81
+ <div
82
+ data-ui="text-sm"
83
+ style="
84
+ --p: 4;
85
+ --font-weight: strong;
86
+ --text-align: center;
87
+ --text: var(--color-muted-foreground);
88
+ --bg: var(--color-muted);
89
+ --radius: 2.5;
90
+ "
91
+ >
92
+ b
93
+ </div>
94
+ <div
95
+ data-ui="text-sm"
96
+ style="
97
+ --col-span: 2;
98
+ --p: 4;
99
+ --font-weight: strong;
100
+ --text-align: center;
101
+ --text: var(--color-muted-foreground);
102
+ --bg: var(--color-muted);
103
+ --radius: 2.5;
104
+ "
105
+ >
106
+ c + d
107
+ </div>
108
+ </div>
109
+ </div>
@@ -0,0 +1,98 @@
1
+ <div
2
+ style="
3
+ --display: grid;
4
+ --grid-cols: 3;
5
+ --gap-x: 4;
6
+ --gap-y: 2;
7
+ --w: 100%;
8
+ --max-w: 160;
9
+ "
10
+ >
11
+ <article
12
+ style="
13
+ --display: subgrid-row;
14
+ --row-span: 3;
15
+ --p: 4;
16
+ --bg: var(--color-muted);
17
+ --radius: 2.5;
18
+ "
19
+ >
20
+ <strong data-ui="text-sm"> Warbler </strong>
21
+ <p
22
+ data-ui="text-sm"
23
+ style="
24
+ --m: 0;
25
+ --text: var(--color-muted-foreground);
26
+ "
27
+ >
28
+ Seen once, at dawn.
29
+ </p>
30
+ <span
31
+ data-ui="text-xs"
32
+ style="
33
+ --font-weight: strong;
34
+ --text: var(--color-primary);
35
+ "
36
+ >
37
+ Rare
38
+ </span>
39
+ </article>
40
+ <article
41
+ style="
42
+ --display: subgrid-row;
43
+ --row-span: 3;
44
+ --p: 4;
45
+ --bg: var(--color-muted);
46
+ --radius: 2.5;
47
+ "
48
+ >
49
+ <strong data-ui="text-sm"> Great blue heron on the east pond </strong>
50
+ <p
51
+ data-ui="text-sm"
52
+ style="
53
+ --m: 0;
54
+ --text: var(--color-muted-foreground);
55
+ "
56
+ >
57
+ A resident pair nests in the dead oak every spring and fishes the shallows through October.
58
+ </p>
59
+ <span
60
+ data-ui="text-xs"
61
+ style="
62
+ --font-weight: strong;
63
+ --text: var(--color-primary);
64
+ "
65
+ >
66
+ Common
67
+ </span>
68
+ </article>
69
+ <article
70
+ style="
71
+ --display: subgrid-row;
72
+ --row-span: 3;
73
+ --p: 4;
74
+ --bg: var(--color-muted);
75
+ --radius: 2.5;
76
+ "
77
+ >
78
+ <strong data-ui="text-sm"> Kestrel </strong>
79
+ <p
80
+ data-ui="text-sm"
81
+ style="
82
+ --m: 0;
83
+ --text: var(--color-muted-foreground);
84
+ "
85
+ >
86
+ Hovers over the meadow most afternoons.
87
+ </p>
88
+ <span
89
+ data-ui="text-xs"
90
+ style="
91
+ --font-weight: strong;
92
+ --text: var(--color-primary);
93
+ "
94
+ >
95
+ Seasonal
96
+ </span>
97
+ </article>
98
+ </div>