@rogieking/figui3 9.0.6 → 9.0.7
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/README.md +2 -0
- package/components.css +5 -5
- package/dist/components.css +1 -1
- package/dist/fig.css +1 -1
- package/fig.js +1 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -408,6 +408,7 @@ The `value`, `min`, `max`, and `step` properties mirror their attributes. `aria-
|
|
|
408
408
|
|---|---|---|---|
|
|
409
409
|
| `value` | string | — | Numeric value |
|
|
410
410
|
| `placeholder` | string | — | Placeholder text |
|
|
411
|
+
| `size` | string | — | Set to `"large"` for a 32px-tall input |
|
|
411
412
|
| `min` | number | — | Minimum |
|
|
412
413
|
| `max` | number | — | Maximum |
|
|
413
414
|
| `step` | number | — | Step increment |
|
|
@@ -421,6 +422,7 @@ The `value`, `min`, `max`, and `step` properties mirror their attributes. `aria-
|
|
|
421
422
|
|
|
422
423
|
```html
|
|
423
424
|
<fig-input-number value="100" units="px"></fig-input-number>
|
|
425
|
+
<fig-input-number size="large" value="100" units="px"></fig-input-number>
|
|
424
426
|
<fig-input-number value="50" units="%" min="0" max="100"></fig-input-number>
|
|
425
427
|
```
|
|
426
428
|
|
package/components.css
CHANGED
|
@@ -3812,11 +3812,15 @@ fig-input-number {
|
|
|
3812
3812
|
flex: 1;
|
|
3813
3813
|
width: 100%;
|
|
3814
3814
|
}
|
|
3815
|
-
|
|
3815
|
+
&[size="large"] {
|
|
3816
3816
|
& > input,
|
|
3817
3817
|
& > textarea {
|
|
3818
3818
|
padding: var(--spacer-2);
|
|
3819
3819
|
}
|
|
3820
|
+
|
|
3821
|
+
& > [slot="prepend"] {
|
|
3822
|
+
min-width: var(--spacer-5);
|
|
3823
|
+
}
|
|
3820
3824
|
}
|
|
3821
3825
|
&[multiline]:not([multiline="false"]) {
|
|
3822
3826
|
display: flex;
|
|
@@ -3856,10 +3860,6 @@ fig-input-number {
|
|
|
3856
3860
|
order: 0;
|
|
3857
3861
|
padding-right: 0;
|
|
3858
3862
|
margin-right: calc(var(--spacer-2) * -1);
|
|
3859
|
-
&[size="large"] {
|
|
3860
|
-
height: var(--spacer-6);
|
|
3861
|
-
min-width: var(--spacer-6);
|
|
3862
|
-
}
|
|
3863
3863
|
}
|
|
3864
3864
|
|
|
3865
3865
|
& [slot="append"] {
|