@zyncat/ui 0.18.0 → 0.19.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.
- package/package.json +10 -12
- package/skills/zyncat-ui/references/components.md +1 -1
- package/src/tokens/base.css +14 -0
- package/src/tokens/reset.css +168 -0
package/package.json
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zyncat/ui",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"packageManager": "pnpm@11.26.0",
|
|
3
|
+
"version": "0.19.0",
|
|
5
4
|
"description": "A React 19 design system: accessible, animated UI components built on a small, closed CSS design-token vocabulary. No Tailwind, no CSS-in-JS.",
|
|
6
5
|
"keywords": [
|
|
7
6
|
"react",
|
|
@@ -329,15 +328,6 @@
|
|
|
329
328
|
"next.mjs",
|
|
330
329
|
"next.d.mts"
|
|
331
330
|
],
|
|
332
|
-
"scripts": {
|
|
333
|
-
"build": "node scripts/build.mjs",
|
|
334
|
-
"check": "node scripts/check.mjs",
|
|
335
|
-
"sync": "node scripts/sync.mjs",
|
|
336
|
-
"verify": "node scripts/verify.mjs",
|
|
337
|
-
"dev": "turbo run dev --filter=zyncat-ui-docs",
|
|
338
|
-
"format": "prettier --write --cache .",
|
|
339
|
-
"prepublishOnly": "pnpm build"
|
|
340
|
-
},
|
|
341
331
|
"commitlint": {
|
|
342
332
|
"extends": [
|
|
343
333
|
"@commitlint/config-conventional"
|
|
@@ -363,5 +353,13 @@
|
|
|
363
353
|
"tsup": "^8.5.0",
|
|
364
354
|
"turbo": "^2.5.8",
|
|
365
355
|
"typescript": "~6.0.3"
|
|
356
|
+
},
|
|
357
|
+
"scripts": {
|
|
358
|
+
"build": "node scripts/build.mjs",
|
|
359
|
+
"check": "node scripts/check.mjs",
|
|
360
|
+
"sync": "node scripts/sync.mjs",
|
|
361
|
+
"verify": "node scripts/verify.mjs",
|
|
362
|
+
"dev": "turbo run dev --filter=zyncat-ui-docs",
|
|
363
|
+
"format": "prettier --write --cache ."
|
|
366
364
|
}
|
|
367
|
-
}
|
|
365
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# @zyncat/ui component index
|
|
2
2
|
|
|
3
|
-
Generated from @zyncat/ui v0.
|
|
3
|
+
Generated from @zyncat/ui v0.19.0 by `pnpm sync skill` - do not edit by hand.
|
|
4
4
|
If node_modules/@zyncat/ui/package.json shows a DIFFERENT version, this index is stale:
|
|
5
5
|
trust the get_component MCP tool and re-run `npx zyncat-ui init` to refresh the skill.
|
|
6
6
|
|
package/src/tokens/base.css
CHANGED
|
@@ -12,4 +12,18 @@
|
|
|
12
12
|
::selection {
|
|
13
13
|
background-color: color-mix(in oklab, var(--accent) 30%, transparent);
|
|
14
14
|
}
|
|
15
|
+
|
|
16
|
+
/* Chrome paints an autofilled control from an internal rule that no selector outranks, so the
|
|
17
|
+
field arrives yellow with near-black ink and ignores the polarity. The paint is reached
|
|
18
|
+
through a transition, which author CSS does control: deferring it past any session leaves
|
|
19
|
+
the control's own surface showing, and the ink is set through -webkit-text-fill-color
|
|
20
|
+
because the forced colour is applied at paint time rather than as a beatable declaration. */
|
|
21
|
+
:-webkit-autofill,
|
|
22
|
+
:-webkit-autofill:hover,
|
|
23
|
+
:-webkit-autofill:focus,
|
|
24
|
+
:-webkit-autofill:active {
|
|
25
|
+
-webkit-text-fill-color: var(--text-strong);
|
|
26
|
+
caret-color: var(--text-strong);
|
|
27
|
+
transition: background-color 0s 8000000s;
|
|
28
|
+
}
|
|
15
29
|
}
|
package/src/tokens/reset.css
CHANGED
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
/* Not the default: iOS Safari inflates text in landscape without it. */
|
|
5
5
|
html {
|
|
6
6
|
-webkit-text-size-adjust: 100%;
|
|
7
|
+
tab-size: 4;
|
|
7
8
|
}
|
|
8
9
|
|
|
9
10
|
*,
|
|
@@ -16,6 +17,118 @@
|
|
|
16
17
|
margin: 0;
|
|
17
18
|
}
|
|
18
19
|
|
|
20
|
+
/* The UA sizes and weights headings itself. A type role applied to one then fights a value it
|
|
21
|
+
never set, so the scale comes from --type-* and a bare heading inherits. */
|
|
22
|
+
h1,
|
|
23
|
+
h2,
|
|
24
|
+
h3,
|
|
25
|
+
h4,
|
|
26
|
+
h5,
|
|
27
|
+
h6 {
|
|
28
|
+
font-size: inherit;
|
|
29
|
+
font-weight: inherit;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
blockquote,
|
|
33
|
+
dd,
|
|
34
|
+
dl,
|
|
35
|
+
figure,
|
|
36
|
+
h1,
|
|
37
|
+
h2,
|
|
38
|
+
h3,
|
|
39
|
+
h4,
|
|
40
|
+
h5,
|
|
41
|
+
h6,
|
|
42
|
+
hr,
|
|
43
|
+
p,
|
|
44
|
+
pre {
|
|
45
|
+
margin: 0;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
menu,
|
|
49
|
+
ol,
|
|
50
|
+
ul {
|
|
51
|
+
margin: 0;
|
|
52
|
+
padding: 0;
|
|
53
|
+
list-style: none;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
/* inherit, not none: the UA underline stays off by default, and a block that wants its links
|
|
57
|
+
underlined sets it once on the container instead of on every anchor. */
|
|
58
|
+
a {
|
|
59
|
+
color: inherit;
|
|
60
|
+
text-decoration: inherit;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
b,
|
|
64
|
+
strong {
|
|
65
|
+
font-weight: bolder;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
/* The UA drops monospace a size to compensate for its x-height; --font-code already carries a
|
|
69
|
+
face chosen against the body face, so the step down is a second correction. */
|
|
70
|
+
code,
|
|
71
|
+
kbd,
|
|
72
|
+
pre,
|
|
73
|
+
samp {
|
|
74
|
+
font-family: var(--font-code);
|
|
75
|
+
font-size: 1em;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
small {
|
|
79
|
+
font-size: 80%;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
/* Both stretch the line box in the UA sheet, so a paragraph containing one grows taller. */
|
|
83
|
+
sub,
|
|
84
|
+
sup {
|
|
85
|
+
position: relative;
|
|
86
|
+
font-size: 75%;
|
|
87
|
+
line-height: 0;
|
|
88
|
+
vertical-align: baseline;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
sub {
|
|
92
|
+
bottom: -0.25em;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
sup {
|
|
96
|
+
top: -0.5em;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
/* Replaced elements are inline, so each sits on the text baseline and leaves a descender gap
|
|
100
|
+
under it that reads as an unexplained few pixels of padding. */
|
|
101
|
+
audio,
|
|
102
|
+
canvas,
|
|
103
|
+
embed,
|
|
104
|
+
iframe,
|
|
105
|
+
img,
|
|
106
|
+
object,
|
|
107
|
+
svg,
|
|
108
|
+
video {
|
|
109
|
+
display: block;
|
|
110
|
+
vertical-align: middle;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
img,
|
|
114
|
+
video {
|
|
115
|
+
max-width: 100%;
|
|
116
|
+
height: auto;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
table {
|
|
120
|
+
border-collapse: collapse;
|
|
121
|
+
border-spacing: 0;
|
|
122
|
+
text-indent: 0;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
hr {
|
|
126
|
+
height: 0;
|
|
127
|
+
border: 0;
|
|
128
|
+
border-top: 1px solid;
|
|
129
|
+
color: inherit;
|
|
130
|
+
}
|
|
131
|
+
|
|
19
132
|
/* The font shorthand resets every font longhand, the two settings ones included, and Safari
|
|
20
133
|
withholds letter-spacing from controls; each is restated so the control keeps inheriting. */
|
|
21
134
|
button,
|
|
@@ -23,14 +136,69 @@
|
|
|
23
136
|
optgroup,
|
|
24
137
|
select,
|
|
25
138
|
textarea {
|
|
139
|
+
margin: 0;
|
|
140
|
+
border: 0;
|
|
141
|
+
background-color: transparent;
|
|
142
|
+
color: inherit;
|
|
26
143
|
font: inherit;
|
|
27
144
|
font-feature-settings: inherit;
|
|
28
145
|
font-variation-settings: inherit;
|
|
29
146
|
letter-spacing: inherit;
|
|
30
147
|
}
|
|
31
148
|
|
|
149
|
+
button,
|
|
150
|
+
[type='button'],
|
|
151
|
+
[type='reset'],
|
|
152
|
+
[type='submit'] {
|
|
153
|
+
-webkit-appearance: button;
|
|
154
|
+
appearance: button;
|
|
155
|
+
padding: 0;
|
|
156
|
+
cursor: pointer;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
:disabled {
|
|
160
|
+
cursor: default;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
/* Horizontal drag reflows the page around the field; only the vertical axis is safe. */
|
|
164
|
+
textarea {
|
|
165
|
+
resize: vertical;
|
|
166
|
+
}
|
|
167
|
+
|
|
32
168
|
/* Firefox's UA sheet dims placeholders to 0.54. */
|
|
33
169
|
::placeholder {
|
|
34
170
|
opacity: 1;
|
|
35
171
|
}
|
|
172
|
+
|
|
173
|
+
/* Safari draws a magnifier and a clear button inside every search field. */
|
|
174
|
+
::-webkit-search-decoration,
|
|
175
|
+
::-webkit-search-cancel-button {
|
|
176
|
+
-webkit-appearance: none;
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
/* Chrome's number spinners are fixed-height and unstyleable; NumberField draws its own. */
|
|
180
|
+
::-webkit-inner-spin-button,
|
|
181
|
+
::-webkit-outer-spin-button {
|
|
182
|
+
height: auto;
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
/* Safari refuses to size the file button and forces the system font on it. */
|
|
186
|
+
::-webkit-file-upload-button {
|
|
187
|
+
-webkit-appearance: button;
|
|
188
|
+
font: inherit;
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
/* Firefox drops its ring the moment any rule sets outline, so the keyboard ring is restored
|
|
192
|
+
here and each component's :focus-visible rule replaces it. */
|
|
193
|
+
:-moz-focusring {
|
|
194
|
+
outline: auto;
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
summary {
|
|
198
|
+
display: list-item;
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
progress {
|
|
202
|
+
vertical-align: baseline;
|
|
203
|
+
}
|
|
36
204
|
}
|