@zyncat/ui 0.18.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 +10 -12
  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 +59 -3
  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 +145 -5
  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,11 @@
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%;
8
+ tab-size: 4;
7
9
  }
8
10
 
9
11
  *,
@@ -16,21 +18,159 @@
16
18
  margin: 0;
17
19
  }
18
20
 
19
- /* The font shorthand resets every font longhand, the two settings ones included, and Safari
20
- withholds letter-spacing from controls; each is restated so the control keeps inheriting. */
21
+ h1,
22
+ h2,
23
+ h3,
24
+ h4,
25
+ h5,
26
+ h6 {
27
+ font-size: inherit;
28
+ font-weight: inherit;
29
+ }
30
+
31
+ blockquote,
32
+ dd,
33
+ dl,
34
+ figure,
35
+ h1,
36
+ h2,
37
+ h3,
38
+ h4,
39
+ h5,
40
+ h6,
41
+ hr,
42
+ p,
43
+ pre {
44
+ margin: 0;
45
+ }
46
+
47
+ /* Safari drops list semantics from VoiceOver; docs must require role=list. */
48
+ menu,
49
+ ol,
50
+ ul {
51
+ margin: 0;
52
+ padding: 0;
53
+ list-style: none;
54
+ }
55
+
56
+ a {
57
+ color: inherit;
58
+ text-decoration: inherit;
59
+ }
60
+
61
+ /* The UA runs monospace off a separate 13px default; 1em undoes it. */
62
+ code,
63
+ kbd,
64
+ pre,
65
+ samp {
66
+ font-size: 1em;
67
+ }
68
+
69
+ small {
70
+ font-size: 80%;
71
+ }
72
+
73
+ /* Both stretch the line box in the UA sheet. */
74
+ sub,
75
+ sup {
76
+ position: relative;
77
+ font-size: 75%;
78
+ line-height: 0;
79
+ vertical-align: baseline;
80
+ }
81
+
82
+ sub {
83
+ bottom: -0.25em;
84
+ }
85
+
86
+ sup {
87
+ top: -0.5em;
88
+ }
89
+
90
+ /* Inline replaced elements leave a descender gap under the baseline. */
91
+ audio,
92
+ canvas,
93
+ embed,
94
+ iframe,
95
+ img,
96
+ object,
97
+ svg,
98
+ video {
99
+ display: block;
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;
105
+ }
106
+
107
+ img,
108
+ video {
109
+ max-width: 100%;
110
+ height: auto;
111
+ }
112
+
113
+ table {
114
+ border-collapse: collapse;
115
+ border-spacing: 0;
116
+ text-indent: 0;
117
+ }
118
+
119
+ hr {
120
+ height: 0;
121
+ border: 0;
122
+ border-top: 1px solid;
123
+ color: inherit;
124
+ }
125
+
126
+ /* The font shorthand resets every longhand; Safari withholds letter-spacing here. */
21
127
  button,
22
128
  input,
23
129
  optgroup,
24
130
  select,
25
131
  textarea {
132
+ margin: 0;
133
+ border: 0;
134
+ background-color: transparent;
135
+ color: inherit;
26
136
  font: inherit;
27
137
  font-feature-settings: inherit;
28
138
  font-variation-settings: inherit;
29
139
  letter-spacing: inherit;
30
140
  }
31
141
 
32
- /* Firefox's UA sheet dims placeholders to 0.54. */
142
+ button,
143
+ [type='button'],
144
+ [type='reset'],
145
+ [type='submit'] {
146
+ -webkit-appearance: button;
147
+ appearance: button;
148
+ padding: 0;
149
+ }
150
+
151
+ /* Firefox dims placeholders to 0.54; base names the replacement color. */
33
152
  ::placeholder {
34
153
  opacity: 1;
35
154
  }
155
+
156
+ ::-webkit-search-decoration,
157
+ ::-webkit-search-cancel-button {
158
+ -webkit-appearance: none;
159
+ }
160
+
161
+ /* Chrome's spinners are fixed-height and unstyleable. */
162
+ ::-webkit-inner-spin-button,
163
+ ::-webkit-outer-spin-button {
164
+ height: auto;
165
+ }
166
+
167
+ ::file-selector-button {
168
+ -webkit-appearance: button;
169
+ appearance: button;
170
+ font: inherit;
171
+ }
172
+
173
+ summary {
174
+ display: list-item;
175
+ }
36
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