@snacky/ui 0.7.1 → 0.7.3

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/CHANGELOG.md CHANGED
@@ -135,3 +135,22 @@ unverified - see the README's Verification status.
135
135
  `space-between`) - the original 0.6.2 bug was the groups spreading apart,
136
136
  not the fill-width itself, so this keeps that part of the fix while
137
137
  dropping the part that looked wrong once seen with real sibling content.
138
+ - **Button's icon slot was disproportionate at Small size (0.7.2).** The slot
139
+ is documented generically as 24x24, and that was applied uniformly
140
+ regardless of `size` - reasonable for Default (48px tall, 12px label), but
141
+ oversized next to Small's 40px height and 12px label. Added a `.snacky-btn--
142
+ small .snacky-btn__icon` override at 20x20; Default stays 24x24. Ported the
143
+ same conditional to compose-ui's `SnackyButton`, and to the docs site's own
144
+ Button playground (previously hardcoded to 24 regardless of the size
145
+ control). Confirmed via computed styles in the Live Preview iframe, not
146
+ just visually: the icon span and its inner SVG both resolve to exactly
147
+ 20x20 with Size=Small selected.
148
+ - **That same fix used raw pixel values instead of the existing semantic
149
+ size tokens (0.7.3).** `tokens.json` already has `size.icon.md` (20px) and
150
+ `size.icon.lg` (24px), generated as `--size-icon-md`/`--size-icon-lg` in
151
+ react-ui and `SnackySize.Icon.md`/`.lg` in compose-ui - 0.7.2 hardcoded
152
+ `20px`/`24px` and `20.dp`/`24.dp` instead of reaching for them, caught right
153
+ after shipping. Swapped both platforms over to the token references; the
154
+ computed pixel values are unchanged (re-verified: still exactly 20px at
155
+ Small, now genuinely resolving through `--size-icon-md` rather than a
156
+ literal that happens to match it).
package/README.md CHANGED
@@ -1,8 +1,7 @@
1
1
  # @snacky/ui
2
2
 
3
3
  React implementation of the Snacky App design system - generated from the
4
- source of truth at `../../index.html` (via `tokens.json` / `components.json`),
5
- pixel-accurate to Figma.
4
+ source of truth at `../../index.html`, pixel-accurate to Figma.
6
5
 
7
6
  This exists so AI coding tools (and humans) building new Snacky features can
8
7
  **import** these components directly instead of regenerating similar-looking
@@ -122,9 +121,9 @@ placeholder artwork rather than a real icon prop. Apply your own
122
121
 
123
122
  ## What's here
124
123
 
125
- All 24 documented components, each matching its `code.tsx` sample's prop
126
- shape from `components.json` (padding, colors, radius, states - all sourced
127
- directly from the design tokens, not eyeballed):
124
+ All 24 documented components, matching the real Figma-sourced spec values
125
+ (padding, colors, radius, states - all sourced directly from the design
126
+ tokens, not eyeballed):
128
127
 
129
128
  Button, IconButton/UploadButton, Input family (TextField, SearchField,
130
129
  OtpField, CopyField, ChatInput, AddressResult), Chips (ProductChip/FilterChip),
@@ -151,8 +150,8 @@ above) - not one of the 24, there is no Figma node for it.
151
150
 
152
151
  Every component is diffed against `index.html`'s own Live Preview
153
152
  implementation - the code that actually renders the documentation site - not
154
- just the spec values in `components.json`. Where the two disagree, the
155
- verified implementation wins.
153
+ just the prose spec values on the page. Where the two disagree, the verified
154
+ implementation wins.
156
155
 
157
156
  See [CHANGELOG.md](https://github.com/rezatresnas/snacky-design-system/blob/main/packages/react-ui/CHANGELOG.md)
158
157
  for how the package got here, including the mistakes.