@app-studio/components 0.10.23 → 0.10.25

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 (31) hide show
  1. package/dist/index.d.ts +43 -32
  2. package/dist/native/components/Badge/Badge/Badge.style.d.ts +13 -0
  3. package/dist/native/components/Badge/Badge/Badge.style.js +26 -13
  4. package/dist/native/components/Badge/Badge/Badge.style.js.map +1 -1
  5. package/dist/native/components/Form/ComboBox/ComboBox/ComboBox.props.d.ts +7 -0
  6. package/dist/native/components/Form/ComboBox/ComboBox/ComboBox.style.d.ts +0 -1
  7. package/dist/native/components/Form/ComboBox/ComboBox/ComboBox.style.js +4 -7
  8. package/dist/native/components/Form/ComboBox/ComboBox/ComboBox.style.js.map +1 -1
  9. package/dist/native/components/Form/ComboBox/ComboBox/ComboBox.view.js +13 -6
  10. package/dist/native/components/Form/ComboBox/ComboBox/ComboBox.view.js.map +1 -1
  11. package/dist/native/components/Form/Select/Select/Select.view.js +13 -0
  12. package/dist/native/components/Form/Select/Select/Select.view.js.map +1 -1
  13. package/dist/native/components/Form/Selector/Selector/Selector.view.js +10 -1
  14. package/dist/native/components/Form/Selector/Selector/Selector.view.js.map +1 -1
  15. package/dist/native/components/Form/TagInput/TagInput/TagInput.view.js +10 -2
  16. package/dist/native/components/Form/TagInput/TagInput/TagInput.view.js.map +1 -1
  17. package/dist/native/components/Input/FieldContent/FieldContent.js +5 -7
  18. package/dist/native/components/Input/FieldContent/FieldContent.js.map +1 -1
  19. package/dist/native/components/Input/Input.style.d.ts +0 -34
  20. package/dist/native/components/Input/Input.style.js +14 -33
  21. package/dist/native/components/Input/Input.style.js.map +1 -1
  22. package/dist/native/components/Sidebar/Sidebar/Sidebar.view.js +15 -2
  23. package/dist/native/components/Sidebar/Sidebar/Sidebar.view.js.map +1 -1
  24. package/dist/web.cjs.js +7 -7
  25. package/dist/web.cjs.js.map +1 -1
  26. package/dist/web.esm.js +2096 -2094
  27. package/dist/web.esm.js.map +1 -1
  28. package/dist/web.umd.js +7 -7
  29. package/dist/web.umd.js.map +1 -1
  30. package/docs/getting-started/introduction.md +20 -5
  31. package/package.json +1 -1
@@ -121,12 +121,27 @@ and `Button` are all exactly 40px:
121
121
 
122
122
  The scale is `xs` 24, `sm` 32, `md` 40, `lg` 48, `xl` 56, and it is shared: it
123
123
  lives in `Input/fieldSizes` and is applied by the field shell, so `TextField`,
124
- `Password`, `Select`, `DatePicker`, `TagInput` and `Button` all render exactly
125
- their declared height at every size — including bordered variants, which used to
126
- come out 2px taller.
124
+ `Password`, `Select`, `ComboBox`, `CountryPicker`, `DatePicker`, `TagInput` and
125
+ `Button` all render exactly their declared height at every size — including
126
+ bordered variants, which used to come out 2px taller.
127
127
 
128
- `ComboBox` is the exception: it takes no `size` prop
129
- (`Omit<InputProps, 'size'>`) and always renders at 40px, matching `md`.
128
+ ### Long values never break the layout
129
+
130
+ A control that has to show text you do not control — a chosen option, a tag, a
131
+ segment label — keeps to one line and ellipsises rather than wrapping. Wrapping
132
+ is not a cosmetic problem: it silently breaks the height contract above, turning
133
+ a 40px control into a 56px one.
134
+
135
+ `Select`, `ComboBox`, `Selector` and `TagInput` all truncate. If you compose
136
+ something similar yourself, note that `maxLines={1}` alone is not enough inside
137
+ a flex row — the element also needs `minWidth={0}`, because `min-width: auto`
138
+ stops a flex child shrinking below its content and the clamp never engages.
139
+
140
+ ### Badges sit one step below controls
141
+
142
+ `Badge` is a secondary label, so its ramp is deliberately smaller than the
143
+ control ramp: `md` is 12px type in a 24px pill, against 14px body text. Reach for
144
+ `lg`/`xl` when a badge genuinely needs to carry the row.
130
145
 
131
146
  ## Component Categories
132
147
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@app-studio/components",
3
- "version": "0.10.23",
3
+ "version": "0.10.25",
4
4
  "main": "dist/web.cjs.js",
5
5
  "module": "dist/web.esm.js",
6
6
  "react-native": "dist/native/components/index.js",