@app-studio/components 0.10.23 → 0.10.24
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/dist/index.d.ts +43 -32
- package/dist/native/components/Badge/Badge/Badge.style.d.ts +13 -0
- package/dist/native/components/Badge/Badge/Badge.style.js +26 -13
- package/dist/native/components/Badge/Badge/Badge.style.js.map +1 -1
- package/dist/native/components/Form/ComboBox/ComboBox/ComboBox.props.d.ts +7 -0
- package/dist/native/components/Form/ComboBox/ComboBox/ComboBox.style.d.ts +0 -1
- package/dist/native/components/Form/ComboBox/ComboBox/ComboBox.style.js +4 -7
- package/dist/native/components/Form/ComboBox/ComboBox/ComboBox.style.js.map +1 -1
- package/dist/native/components/Form/ComboBox/ComboBox/ComboBox.view.js +13 -6
- package/dist/native/components/Form/ComboBox/ComboBox/ComboBox.view.js.map +1 -1
- package/dist/native/components/Form/Select/Select/Select.view.js +13 -0
- package/dist/native/components/Form/Select/Select/Select.view.js.map +1 -1
- package/dist/native/components/Form/Selector/Selector/Selector.view.js +10 -1
- package/dist/native/components/Form/Selector/Selector/Selector.view.js.map +1 -1
- package/dist/native/components/Form/TagInput/TagInput/TagInput.view.js +10 -2
- package/dist/native/components/Form/TagInput/TagInput/TagInput.view.js.map +1 -1
- package/dist/native/components/Input/FieldContent/FieldContent.js +5 -7
- package/dist/native/components/Input/FieldContent/FieldContent.js.map +1 -1
- package/dist/native/components/Input/Input.style.d.ts +0 -34
- package/dist/native/components/Input/Input.style.js +14 -33
- package/dist/native/components/Input/Input.style.js.map +1 -1
- package/dist/web.cjs.js +7 -7
- package/dist/web.cjs.js.map +1 -1
- package/dist/web.esm.js +2094 -2092
- package/dist/web.esm.js.map +1 -1
- package/dist/web.umd.js +7 -7
- package/dist/web.umd.js.map +1 -1
- package/docs/getting-started/introduction.md +20 -5
- 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
|
|
125
|
-
their declared height at every size — including
|
|
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
|
-
|
|
129
|
-
|
|
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
|
|