@zyncat/ui 0.19.0 → 0.20.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/dist/alert.css +1 -2
- package/dist/avatar.css +1 -1
- package/dist/badge.css +1 -1
- package/dist/button.css +1 -2
- package/dist/checkbox.css +1 -1
- package/dist/collapse.css +1 -1
- package/dist/confetti.css +1 -1
- package/dist/date-picker.css +7 -7
- package/dist/dialog.css +1 -2
- package/dist/digit-strip.css +1 -1
- package/dist/dropdown.css +1 -1
- package/dist/facebook-feed.css +1 -1
- package/dist/flow-field.css +1 -1
- package/dist/icon.css +1 -1
- package/dist/input.css +1 -4
- package/dist/instagram-feed.css +1 -1
- package/dist/lens.css +1 -1
- package/dist/menu-surface.css +1 -1
- package/dist/modal.css +1 -1
- package/dist/morphing-text.css +1 -1
- package/dist/motion-devtools.css +1 -1
- package/dist/odometer.css +1 -1
- package/dist/overlay.css +1 -1
- package/dist/pagination.css +1 -1
- package/dist/popover.css +1 -1
- package/dist/radio-group.css +3 -1
- package/dist/select.css +1 -2
- package/dist/sheet.css +1 -1
- package/dist/spinner.css +1 -1
- package/dist/styles.css +1 -1
- package/dist/support-rail.css +7 -2
- package/dist/table.css +2 -2
- package/dist/tabs.css +13 -2
- package/dist/tabs.js +48 -39
- package/dist/tabs.js.map +1 -1
- package/dist/tag.css +1 -1
- package/dist/textarea.css +1 -1
- package/dist/theme-switcher.css +1 -2
- package/dist/theme-transition.css +1 -1
- package/dist/theme.js.map +1 -1
- package/dist/tiktok.css +1 -1
- package/dist/toast.css +1 -1
- package/dist/toggle.css +1 -1
- package/dist/tooltip.css +1 -1
- package/dist/trigger.css +1 -1
- package/dist/types/components/composites/tabs/Tabs.d.ts +3 -1
- package/dist/types/tokens/theme-tokens.generated.d.ts +1 -1
- package/dist/typing-lines.css +1 -1
- package/dist/weight-field.css +1 -1
- package/dist/youtube.css +1 -1
- package/package.json +1 -1
- package/skills/zyncat-ui/references/components.md +1 -1
- package/src/components/composites/alert/alert.css +1 -2
- package/src/components/composites/date-picker/date-picker.css +7 -7
- package/src/components/composites/dialog/dialog.css +1 -2
- package/src/components/composites/dropdown/dropdown.css +1 -1
- package/src/components/composites/emoji-picker/styles.css +1 -1
- package/src/components/composites/modal/modal.css +1 -1
- package/src/components/composites/pagination/pagination.css +1 -1
- package/src/components/composites/popover/popover.css +1 -1
- package/src/components/composites/select/select.css +1 -2
- package/src/components/composites/sheet/sheet.css +1 -1
- package/src/components/composites/table/table.css +2 -2
- package/src/components/composites/tabs/Tabs.tsx +8 -1
- package/src/components/composites/tabs/tabs.css +13 -2
- package/src/components/composites/theme-switcher/theme-switcher.css +1 -2
- package/src/components/composites/toast/toast.css +1 -1
- package/src/components/composites/tooltip/tooltip.css +1 -1
- package/src/components/compound/support-rail/support-rail.css +7 -2
- package/src/components/dev/motion-devtools.css +1 -1
- package/src/components/expressive/confetti/confetti.css +1 -1
- package/src/components/expressive/facebook-feed/facebook-feed.css +1 -1
- package/src/components/expressive/flow-field/flow-field.css +1 -1
- package/src/components/expressive/instagram-feed/instagram-feed.css +1 -1
- package/src/components/expressive/lens/lens.css +1 -1
- package/src/components/expressive/morphing-text/morphing-text.css +1 -1
- package/src/components/expressive/odometer/odometer.css +1 -1
- package/src/components/expressive/theme-transition/theme-transition.css +1 -1
- package/src/components/expressive/tiktok/tiktok.css +1 -1
- package/src/components/expressive/typing-lines/typing-lines.css +1 -1
- package/src/components/expressive/weight-field/weight-field.css +1 -1
- package/src/components/expressive/youtube/youtube.css +1 -1
- package/src/components/internal/glass/glass.css +1 -1
- package/src/components/internal/icon/icon.css +1 -1
- package/src/components/internal/menu/menu-surface.css +1 -1
- package/src/components/internal/overlay/overlay.css +1 -1
- package/src/components/internal/overlay/trigger.css +1 -1
- package/src/components/primitives/avatar/avatar.css +1 -1
- package/src/components/primitives/badge/badge.css +1 -1
- package/src/components/primitives/badge/digit-strip.css +1 -1
- package/src/components/primitives/button/button.css +1 -2
- package/src/components/primitives/checkbox/checkbox.css +1 -1
- package/src/components/primitives/collapse/collapse.css +1 -1
- package/src/components/primitives/input/input.css +1 -4
- package/src/components/primitives/radio-group/radio-group.css +3 -1
- package/src/components/primitives/spinner/spinner.css +1 -1
- package/src/components/primitives/tag/tag.css +1 -1
- package/src/components/primitives/textarea/textarea.css +1 -1
- package/src/components/primitives/toggle/toggle.css +1 -1
- package/src/styles.css +1 -1
- package/src/tokens/base.css +55 -13
- package/src/tokens/color.css +1 -1
- package/src/tokens/dark.css +1 -1
- package/src/tokens/decisions.css +1 -1
- package/src/tokens/elevation.css +1 -1
- package/src/tokens/glass.css +1 -1
- package/src/tokens/motion.css +4 -4
- package/src/tokens/radius.css +1 -1
- package/src/tokens/reset.css +17 -45
- package/src/tokens/semantic.css +1 -1
- package/src/tokens/spacing.css +1 -1
- package/src/tokens/theme-tokens.generated.ts +1 -1
- package/src/tokens/typography.css +1 -1
- package/tailwind.css +1 -1
package/src/tokens/reset.css
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
@layer zyncat.reset, zyncat.tokens, zyncat.components;
|
|
1
|
+
@layer zyncat.reset, zyncat.tokens, zyncat.base, zyncat.components;
|
|
2
2
|
|
|
3
3
|
@layer zyncat.reset {
|
|
4
|
-
/*
|
|
4
|
+
/* iOS Safari inflates text in landscape without this. */
|
|
5
5
|
html {
|
|
6
6
|
-webkit-text-size-adjust: 100%;
|
|
7
|
+
text-size-adjust: 100%;
|
|
7
8
|
tab-size: 4;
|
|
8
9
|
}
|
|
9
10
|
|
|
@@ -17,8 +18,6 @@
|
|
|
17
18
|
margin: 0;
|
|
18
19
|
}
|
|
19
20
|
|
|
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
21
|
h1,
|
|
23
22
|
h2,
|
|
24
23
|
h3,
|
|
@@ -45,6 +44,7 @@
|
|
|
45
44
|
margin: 0;
|
|
46
45
|
}
|
|
47
46
|
|
|
47
|
+
/* Safari drops list semantics from VoiceOver; docs must require role=list. */
|
|
48
48
|
menu,
|
|
49
49
|
ol,
|
|
50
50
|
ul {
|
|
@@ -53,25 +53,16 @@
|
|
|
53
53
|
list-style: none;
|
|
54
54
|
}
|
|
55
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
56
|
a {
|
|
59
57
|
color: inherit;
|
|
60
58
|
text-decoration: inherit;
|
|
61
59
|
}
|
|
62
60
|
|
|
63
|
-
|
|
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. */
|
|
61
|
+
/* The UA runs monospace off a separate 13px default; 1em undoes it. */
|
|
70
62
|
code,
|
|
71
63
|
kbd,
|
|
72
64
|
pre,
|
|
73
65
|
samp {
|
|
74
|
-
font-family: var(--font-code);
|
|
75
66
|
font-size: 1em;
|
|
76
67
|
}
|
|
77
68
|
|
|
@@ -79,7 +70,7 @@
|
|
|
79
70
|
font-size: 80%;
|
|
80
71
|
}
|
|
81
72
|
|
|
82
|
-
/* Both stretch the line box in the UA sheet
|
|
73
|
+
/* Both stretch the line box in the UA sheet. */
|
|
83
74
|
sub,
|
|
84
75
|
sup {
|
|
85
76
|
position: relative;
|
|
@@ -96,8 +87,7 @@
|
|
|
96
87
|
top: -0.5em;
|
|
97
88
|
}
|
|
98
89
|
|
|
99
|
-
/*
|
|
100
|
-
under it that reads as an unexplained few pixels of padding. */
|
|
90
|
+
/* Inline replaced elements leave a descender gap under the baseline. */
|
|
101
91
|
audio,
|
|
102
92
|
canvas,
|
|
103
93
|
embed,
|
|
@@ -107,7 +97,11 @@
|
|
|
107
97
|
svg,
|
|
108
98
|
video {
|
|
109
99
|
display: block;
|
|
110
|
-
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
/* Author display beats the UA hidden; important so nothing un-hides it. */
|
|
103
|
+
[hidden]:not([hidden='until-found']) {
|
|
104
|
+
display: none !important;
|
|
111
105
|
}
|
|
112
106
|
|
|
113
107
|
img,
|
|
@@ -129,8 +123,7 @@
|
|
|
129
123
|
color: inherit;
|
|
130
124
|
}
|
|
131
125
|
|
|
132
|
-
/* The font shorthand resets every
|
|
133
|
-
withholds letter-spacing from controls; each is restated so the control keeps inheriting. */
|
|
126
|
+
/* The font shorthand resets every longhand; Safari withholds letter-spacing here. */
|
|
134
127
|
button,
|
|
135
128
|
input,
|
|
136
129
|
optgroup,
|
|
@@ -153,52 +146,31 @@
|
|
|
153
146
|
-webkit-appearance: button;
|
|
154
147
|
appearance: button;
|
|
155
148
|
padding: 0;
|
|
156
|
-
cursor: pointer;
|
|
157
149
|
}
|
|
158
150
|
|
|
159
|
-
|
|
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
|
-
|
|
168
|
-
/* Firefox's UA sheet dims placeholders to 0.54. */
|
|
151
|
+
/* Firefox dims placeholders to 0.54; base names the replacement color. */
|
|
169
152
|
::placeholder {
|
|
170
153
|
opacity: 1;
|
|
171
154
|
}
|
|
172
155
|
|
|
173
|
-
/* Safari draws a magnifier and a clear button inside every search field. */
|
|
174
156
|
::-webkit-search-decoration,
|
|
175
157
|
::-webkit-search-cancel-button {
|
|
176
158
|
-webkit-appearance: none;
|
|
177
159
|
}
|
|
178
160
|
|
|
179
|
-
/* Chrome's
|
|
161
|
+
/* Chrome's spinners are fixed-height and unstyleable. */
|
|
180
162
|
::-webkit-inner-spin-button,
|
|
181
163
|
::-webkit-outer-spin-button {
|
|
182
164
|
height: auto;
|
|
183
165
|
}
|
|
184
166
|
|
|
185
|
-
|
|
186
|
-
::-webkit-file-upload-button {
|
|
167
|
+
::file-selector-button {
|
|
187
168
|
-webkit-appearance: button;
|
|
169
|
+
appearance: button;
|
|
188
170
|
font: inherit;
|
|
189
171
|
}
|
|
190
172
|
|
|
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
173
|
summary {
|
|
198
174
|
display: list-item;
|
|
199
175
|
}
|
|
200
|
-
|
|
201
|
-
progress {
|
|
202
|
-
vertical-align: baseline;
|
|
203
|
-
}
|
|
204
176
|
}
|
package/src/tokens/semantic.css
CHANGED
package/src/tokens/spacing.css
CHANGED
|
@@ -671,7 +671,7 @@ export interface TokenProperties {
|
|
|
671
671
|
'--scale-floating'?: string | number;
|
|
672
672
|
/** `--scale-chip` - small inline elements - tag, badge, count. Default: `0.9`. */
|
|
673
673
|
'--scale-chip'?: string | number;
|
|
674
|
-
/** `--transition-control`. Default: `color var(--duration-
|
|
674
|
+
/** `--transition-control`. Default: `color var(--duration-base) var(--ease-standard), background-color var(--duration-base) var(--ease-standard), border-color var(--duration-base) var(--ease-standard), box-shadow var(--duration-base) var(--ease-standard), outline-color var(--duration-base) var(--ease-standard)`. Re-derived on every theme root. */
|
|
675
675
|
'--transition-control'?: string | number;
|
|
676
676
|
/** `--transition-colors`. Default: `color var(--duration-fast) var(--ease-standard), background-color var(--duration-fast) var(--ease-standard), border-color var(--duration-fast) var(--ease-standard)`. Re-derived on every theme root. */
|
|
677
677
|
'--transition-colors'?: string | number;
|
package/tailwind.css
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
|
|
9
9
|
Generated from the token CSS by `scripts/gen-theme.mjs` - `pnpm sync` rebuilds it. */
|
|
10
10
|
|
|
11
|
-
@layer theme, zyncat.reset, base, zyncat.tokens, zyncat.
|
|
11
|
+
@layer theme, zyncat.reset, base, zyncat.tokens, zyncat.base, zyncat.components, components, utilities;
|
|
12
12
|
|
|
13
13
|
@custom-variant dark (&:where([data-polarity='dark'], [data-polarity='dark'] *));
|
|
14
14
|
|