@snacky/ui 0.7.1 → 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 +10 -0
- package/README.md +6 -7
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +4 -0
- package/dist/index.css.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -135,3 +135,13 @@ 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.
|
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
|
|
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,
|
|
126
|
-
|
|
127
|
-
|
|
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
|
|
155
|
-
|
|
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.
|