@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.
Files changed (114) hide show
  1. package/dist/alert.css +1 -2
  2. package/dist/avatar.css +1 -1
  3. package/dist/badge.css +1 -1
  4. package/dist/button.css +1 -2
  5. package/dist/checkbox.css +1 -1
  6. package/dist/collapse.css +1 -1
  7. package/dist/confetti.css +1 -1
  8. package/dist/date-picker.css +7 -7
  9. package/dist/dialog.css +1 -2
  10. package/dist/digit-strip.css +1 -1
  11. package/dist/dropdown.css +1 -1
  12. package/dist/facebook-feed.css +1 -1
  13. package/dist/flow-field.css +1 -1
  14. package/dist/icon.css +1 -1
  15. package/dist/input.css +1 -4
  16. package/dist/instagram-feed.css +1 -1
  17. package/dist/lens.css +1 -1
  18. package/dist/menu-surface.css +1 -1
  19. package/dist/modal.css +1 -1
  20. package/dist/morphing-text.css +1 -1
  21. package/dist/motion-devtools.css +1 -1
  22. package/dist/odometer.css +1 -1
  23. package/dist/overlay.css +1 -1
  24. package/dist/pagination.css +1 -1
  25. package/dist/popover.css +1 -1
  26. package/dist/radio-group.css +3 -1
  27. package/dist/select.css +1 -2
  28. package/dist/sheet.css +1 -1
  29. package/dist/spinner.css +1 -1
  30. package/dist/styles.css +1 -1
  31. package/dist/support-rail.css +7 -2
  32. package/dist/table.css +2 -2
  33. package/dist/tabs.css +13 -2
  34. package/dist/tabs.js +48 -39
  35. package/dist/tabs.js.map +1 -1
  36. package/dist/tag.css +1 -1
  37. package/dist/textarea.css +1 -1
  38. package/dist/theme-switcher.css +1 -2
  39. package/dist/theme-transition.css +1 -1
  40. package/dist/theme.js.map +1 -1
  41. package/dist/tiktok.css +1 -1
  42. package/dist/toast.css +1 -1
  43. package/dist/toggle.css +1 -1
  44. package/dist/tooltip.css +1 -1
  45. package/dist/trigger.css +1 -1
  46. package/dist/types/components/composites/tabs/Tabs.d.ts +3 -1
  47. package/dist/types/tokens/theme-tokens.generated.d.ts +1 -1
  48. package/dist/typing-lines.css +1 -1
  49. package/dist/weight-field.css +1 -1
  50. package/dist/youtube.css +1 -1
  51. package/package.json +1 -1
  52. package/skills/zyncat-ui/references/components.md +1 -1
  53. package/src/components/composites/alert/alert.css +1 -2
  54. package/src/components/composites/date-picker/date-picker.css +7 -7
  55. package/src/components/composites/dialog/dialog.css +1 -2
  56. package/src/components/composites/dropdown/dropdown.css +1 -1
  57. package/src/components/composites/emoji-picker/styles.css +1 -1
  58. package/src/components/composites/modal/modal.css +1 -1
  59. package/src/components/composites/pagination/pagination.css +1 -1
  60. package/src/components/composites/popover/popover.css +1 -1
  61. package/src/components/composites/select/select.css +1 -2
  62. package/src/components/composites/sheet/sheet.css +1 -1
  63. package/src/components/composites/table/table.css +2 -2
  64. package/src/components/composites/tabs/Tabs.tsx +8 -1
  65. package/src/components/composites/tabs/tabs.css +13 -2
  66. package/src/components/composites/theme-switcher/theme-switcher.css +1 -2
  67. package/src/components/composites/toast/toast.css +1 -1
  68. package/src/components/composites/tooltip/tooltip.css +1 -1
  69. package/src/components/compound/support-rail/support-rail.css +7 -2
  70. package/src/components/dev/motion-devtools.css +1 -1
  71. package/src/components/expressive/confetti/confetti.css +1 -1
  72. package/src/components/expressive/facebook-feed/facebook-feed.css +1 -1
  73. package/src/components/expressive/flow-field/flow-field.css +1 -1
  74. package/src/components/expressive/instagram-feed/instagram-feed.css +1 -1
  75. package/src/components/expressive/lens/lens.css +1 -1
  76. package/src/components/expressive/morphing-text/morphing-text.css +1 -1
  77. package/src/components/expressive/odometer/odometer.css +1 -1
  78. package/src/components/expressive/theme-transition/theme-transition.css +1 -1
  79. package/src/components/expressive/tiktok/tiktok.css +1 -1
  80. package/src/components/expressive/typing-lines/typing-lines.css +1 -1
  81. package/src/components/expressive/weight-field/weight-field.css +1 -1
  82. package/src/components/expressive/youtube/youtube.css +1 -1
  83. package/src/components/internal/glass/glass.css +1 -1
  84. package/src/components/internal/icon/icon.css +1 -1
  85. package/src/components/internal/menu/menu-surface.css +1 -1
  86. package/src/components/internal/overlay/overlay.css +1 -1
  87. package/src/components/internal/overlay/trigger.css +1 -1
  88. package/src/components/primitives/avatar/avatar.css +1 -1
  89. package/src/components/primitives/badge/badge.css +1 -1
  90. package/src/components/primitives/badge/digit-strip.css +1 -1
  91. package/src/components/primitives/button/button.css +1 -2
  92. package/src/components/primitives/checkbox/checkbox.css +1 -1
  93. package/src/components/primitives/collapse/collapse.css +1 -1
  94. package/src/components/primitives/input/input.css +1 -4
  95. package/src/components/primitives/radio-group/radio-group.css +3 -1
  96. package/src/components/primitives/spinner/spinner.css +1 -1
  97. package/src/components/primitives/tag/tag.css +1 -1
  98. package/src/components/primitives/textarea/textarea.css +1 -1
  99. package/src/components/primitives/toggle/toggle.css +1 -1
  100. package/src/styles.css +1 -1
  101. package/src/tokens/base.css +55 -13
  102. package/src/tokens/color.css +1 -1
  103. package/src/tokens/dark.css +1 -1
  104. package/src/tokens/decisions.css +1 -1
  105. package/src/tokens/elevation.css +1 -1
  106. package/src/tokens/glass.css +1 -1
  107. package/src/tokens/motion.css +4 -4
  108. package/src/tokens/radius.css +1 -1
  109. package/src/tokens/reset.css +17 -45
  110. package/src/tokens/semantic.css +1 -1
  111. package/src/tokens/spacing.css +1 -1
  112. package/src/tokens/theme-tokens.generated.ts +1 -1
  113. package/src/tokens/typography.css +1 -1
  114. package/tailwind.css +1 -1
@@ -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
- /* Not the default: iOS Safari inflates text in landscape without it. */
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
- 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. */
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, so a paragraph containing one grows taller. */
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
- /* 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. */
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
- vertical-align: middle;
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 font longhand, the two settings ones included, and Safari
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
- :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
-
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 number spinners are fixed-height and unstyleable; NumberField draws its own. */
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
- /* Safari refuses to size the file button and forces the system font on it. */
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
  }
@@ -1,4 +1,4 @@
1
- @layer zyncat.reset, zyncat.tokens, zyncat.components;
1
+ @layer zyncat.reset, zyncat.tokens, zyncat.base, zyncat.components;
2
2
 
3
3
  @layer zyncat.tokens {
4
4
  :root,
@@ -1,4 +1,4 @@
1
- @layer zyncat.reset, zyncat.tokens, zyncat.components;
1
+ @layer zyncat.reset, zyncat.tokens, zyncat.base, zyncat.components;
2
2
 
3
3
  @layer zyncat.tokens {
4
4
  :root {
@@ -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-fast) var(--ease-standard), background-color var(--duration-fast) var(--ease-standard), border-color var(--duration-fast) var(--ease-standard), box-shadow var(--duration-fast) var(--ease-standard), outline-color var(--duration-fast) var(--ease-standard)`. Re-derived on every theme root. */
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;
@@ -1,4 +1,4 @@
1
- @layer zyncat.reset, zyncat.tokens, zyncat.components;
1
+ @layer zyncat.reset, zyncat.tokens, zyncat.base, zyncat.components;
2
2
 
3
3
  @layer zyncat.tokens {
4
4
  :root {
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.components, zyncat.base, components, utilities;
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