@snacky/ui 0.7.0 → 0.7.2

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
@@ -126,3 +126,22 @@ unverified - see the README's Verification status.
126
126
  enough to wrap onto a second line got clipped instead of growing the banner.
127
127
  Changed to `min-height: 40px` and let the message text take `flex: 1` so it
128
128
  shrinks and wraps within the row instead of overflowing sideways.
129
+ - **PointBalanceBanner's 0.6.2 fix corrected again (0.7.1).** Hugging content
130
+ was a correct read of Figma's own frame in isolation, but wrong once placed
131
+ next to a sibling with different content: the docs gallery's "Default" and
132
+ "LowBalance" stories sit side by side, and a low "0" / "Rp 0" collapsed to a
133
+ fraction of the other's width, visibly stranded inside its card. Back to
134
+ `width: 100%`, but `justify-content` stays at its flex-start default (not
135
+ `space-between`) - the original 0.6.2 bug was the groups spreading apart,
136
+ not the fill-width itself, so this keeps that part of the fix while
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.
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.