@cahyo-dimas/freeday 3.16.0 → 3.16.1
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 +27 -0
- package/README.id.md +1 -1
- package/README.md +1 -1
- package/dist/freeday.bundle.css +7 -7
- package/dist/freeday.css +7 -7
- package/docs/getting-started.md +1 -1
- package/package.json +1 -1
- package/src/components/alert.css +1 -1
- package/src/components/composition.css +2 -2
- package/src/components/file-upload.css +1 -1
- package/src/components/input.css +1 -1
- package/src/components/list.css +1 -1
- package/src/components/states.css +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -9,6 +9,33 @@ benar. Perubahan seperti itu ditulis di bawah `### Changed: BREAKING (types)`
|
|
|
9
9
|
lama → tipe baru, dan cara menyempitkannya — bukan di bawah `### Added`, betapapun aditifnya dari
|
|
10
10
|
sisi kit.
|
|
11
11
|
|
|
12
|
+
## [3.16.1] - 2026-11-04
|
|
13
|
+
|
|
14
|
+
**Slot teks kit di atas `<p>` tidak lagi membawa margin bawaan peramban.** `<p>` punya margin 1em
|
|
15
|
+
dari peramban, dan kelas yang tidak menolkannya mewarisi jarak yang tidak pernah ditulis siapa pun.
|
|
16
|
+
Ini kelas cacat yang sama dengan `.fdy-eyebrow` di `#010`. Kali ini terbuka saat menulis contoh
|
|
17
|
+
untuk 3.16.0: `p.fdy-help` yang dipakai app (`CATATAN-FREEDAY.md` §22) membawa 12px di atas dan di
|
|
18
|
+
bawah.
|
|
19
|
+
|
|
20
|
+
### Fixed
|
|
21
|
+
- **`margin:0` pada tujuh slot teks** (`#112`): `.fdy-help`, `.fdy-state__text`, `.fdy-alert__text`,
|
|
22
|
+
`.fdy-list__meta`, `.fdy-stat__label`, `.fdy-stat__meta`, dan `.fdy-dropzone__hint`. Diukur di
|
|
23
|
+
Chrome sebelum perbaikan: 12px sampai 16px di tiap sisi. Jarak di antara bagian komponen sudah
|
|
24
|
+
diatur `gap` milik komponennya.
|
|
25
|
+
- **`docs/screen-states.md` sendiri mencontohkan `<p class="fdy-state__text">`** sejak 3.15.0, dan
|
|
26
|
+
kelas itu membawa 14px di tiap sisi. Contoh `docs/index.html` yang memasang `.fdy-state` di
|
|
27
|
+
`<p>` diganti `<div>`, karena state adalah wadah, bukan paragraf.
|
|
28
|
+
|
|
29
|
+
### Catatan
|
|
30
|
+
- Gate `#010` di `test/css.test.mjs` sebelumnya buta di dua tempat. Ia hanya membaca dua dokumen,
|
|
31
|
+
jadi `screen-states.md` dan `docs/index.html` lolos. Kelas tanpa aturan sendiri juga dilewati,
|
|
32
|
+
bukan dihitung gagal. Kini ia membaca setiap dokumen yang dikirim, menilai kelas-kelas satu
|
|
33
|
+
paragraf bersama-sama, dan menjaga ketujuh slot di atas walaupun dokumennya mencontohkan span.
|
|
34
|
+
Mencabut `margin:0` dari salah satunya membuat gate merah.
|
|
35
|
+
- Yang berubah di layar: paragraf dengan kelas-kelas itu kehilangan jarak 12–16px yang tidak
|
|
36
|
+
disengaja. Kelas utilitas warna (`.fdy-text-muted` dan kawan-kawan) sengaja tidak disentuh,
|
|
37
|
+
karena paragraf biasa yang hanya diwarnai tetap butuh jarak paragrafnya.
|
|
38
|
+
|
|
12
39
|
## [3.16.0] - 2026-11-04
|
|
13
40
|
|
|
14
41
|
**Di `.fdy-form-grid`, yang bukan isian adalah baris.** Grid itu `auto-fit`, jadi setiap anak yang
|
package/README.id.md
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
> **Lebih banyak _free day_ buat dev. UI kit-nya sudah siap pakai.**
|
|
6
6
|
|
|
7
7
|
[](https://cahyo-dimas.github.io/freeday-ui-kit/)
|
|
8
|
-
[](https://github.com/cahyo-dimas/freeday-ui-kit/tree/v3.16.1)
|
|
9
9
|
|
|
10
10
|
UI KIT yang token-driven & framework-agnostic. Satu sumber kebenaran untuk warna, tipografi,
|
|
11
11
|
spasi, dan komponen. Blueprint: `docs/superpowers/specs/2026-07-21-freeday-ui-kit-design.md`.
|
package/README.md
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
> **More free days for devs. The UI kit is ready to use.**
|
|
6
6
|
|
|
7
7
|
[](https://cahyo-dimas.github.io/freeday-ui-kit/)
|
|
8
|
-
[](https://github.com/cahyo-dimas/freeday-ui-kit/tree/v3.16.1)
|
|
9
9
|
|
|
10
10
|
A token-driven, framework-agnostic UI kit. One source of truth for color, typography,
|
|
11
11
|
spacing, and components. Blueprint: `docs/superpowers/specs/2026-07-21-freeday-ui-kit-design.md`.
|
package/dist/freeday.bundle.css
CHANGED
|
@@ -1272,7 +1272,7 @@ a { color: var(--color-primary-strong); }
|
|
|
1272
1272
|
.fdy-alert__icon svg{width:100%;height:100%;}
|
|
1273
1273
|
.fdy-alert__body{flex:1;min-width:0;display:flex;flex-direction:column;gap:var(--space-1);}
|
|
1274
1274
|
.fdy-alert__title{font-size:inherit;font-weight:var(--weight-semibold);color:var(--color-text);margin:0;}
|
|
1275
|
-
.fdy-alert__text{color:var(--color-text);line-height:var(--leading-normal);}
|
|
1275
|
+
.fdy-alert__text{margin:0;color:var(--color-text);line-height:var(--leading-normal);}
|
|
1276
1276
|
.fdy-alert__close{flex:none;align-self:flex-start;border:0;background:transparent;color:var(--color-text-muted);cursor:pointer;font-size:var(--text-lg);line-height:1;padding:0 var(--space-1);border-radius:var(--radius-sm);}
|
|
1277
1277
|
.fdy-alert__close:hover{color:var(--color-text);}
|
|
1278
1278
|
.fdy-alert__close:focus-visible{outline:none;box-shadow:0 0 0 3px rgba(var(--color-primary-rgb),.26);}
|
|
@@ -2296,10 +2296,10 @@ a { color: var(--color-primary-strong); }
|
|
|
2296
2296
|
/* --color-text-muted, not -subtle: this is a LABEL, i.e. text, and -subtle is deliberately gated at
|
|
2297
2297
|
3.0 (placeholders, dividers, decorative glyphs). On surface-2 -subtle measures 4.41, under AA
|
|
2298
2298
|
for text, and a stat label is often the only thing naming the number above it. */
|
|
2299
|
-
.fdy-stat__label{font-size:var(--text-xs);font-weight:var(--weight-semibold);letter-spacing:var(--tracking-wide);text-transform:uppercase;color:var(--color-text-muted);}
|
|
2299
|
+
.fdy-stat__label{margin:0;font-size:var(--text-xs);font-weight:var(--weight-semibold);letter-spacing:var(--tracking-wide);text-transform:uppercase;color:var(--color-text-muted);}
|
|
2300
2300
|
.fdy-stat__value{font-family:var(--font-display);font-size:var(--text-3xl);font-weight:var(--weight-bold);letter-spacing:var(--tracking-tighter);line-height:1;color:var(--color-text);font-variant-numeric:tabular-nums;}
|
|
2301
2301
|
.fdy-stat__value small{font-size:var(--text-lg);font-weight:var(--weight-semibold);color:var(--color-text-muted);}
|
|
2302
|
-
.fdy-stat__meta{font-size:var(--text-sm);color:var(--color-text-muted);display:flex;align-items:center;gap:var(--space-2);}
|
|
2302
|
+
.fdy-stat__meta{margin:0;font-size:var(--text-sm);color:var(--color-text-muted);display:flex;align-items:center;gap:var(--space-2);}
|
|
2303
2303
|
/* A stat value is display type sized for a COUNT, "1,284", and a back office puts money in it.
|
|
2304
2304
|
"IDR 300,000.00" needs 224px at --text-3xl and the grid's own track is 11rem, so it wrapped
|
|
2305
2305
|
between the currency and the number: two lines of 31px where the design says one. Measured, not
|
|
@@ -2532,7 +2532,7 @@ a { color: var(--color-primary-strong); }
|
|
|
2532
2532
|
.fdy-dropzone.is-dragover .fdy-dropzone__icon{color:var(--color-primary-strong);}
|
|
2533
2533
|
.fdy-dropzone__icon svg{display:block;width:2rem;height:2rem;}
|
|
2534
2534
|
.fdy-dropzone__title{font-size:inherit;font-weight:var(--weight-medium);color:var(--color-text);margin:0;}
|
|
2535
|
-
.fdy-dropzone__hint{font-size:var(--text-xs);}
|
|
2535
|
+
.fdy-dropzone__hint{margin:0;font-size:var(--text-xs);}
|
|
2536
2536
|
/* Wide (horizontal) layout, icon beside the copy instead of stacked, for full-width
|
|
2537
2537
|
* sections. Wrap the title + hint in .fdy-dropzone__text. */
|
|
2538
2538
|
.fdy-dropzone--row{flex-direction:row;align-items:center;justify-content:center;text-align:left;gap:var(--space-4);}
|
|
@@ -2729,7 +2729,7 @@ fieldset.fdy-field>legend{padding:0;float:none;margin-bottom:var(--space-2);}
|
|
|
2729
2729
|
screen reader does not read "star" after every label. That is stricter than a <span> an app has to
|
|
2730
2730
|
remember to mark aria-hidden, and it cannot be forgotten. */
|
|
2731
2731
|
.fdy-label--required::after{content:"*" / "";margin-left:var(--space-1);color:var(--color-danger);}
|
|
2732
|
-
.fdy-help{font-size:var(--text-xs);color:var(--color-text-muted);}
|
|
2732
|
+
.fdy-help{margin:0;font-size:var(--text-xs);color:var(--color-text-muted);}
|
|
2733
2733
|
/* --danger is the tone word everywhere else in the kit; help text takes either (CATATAN-FREEDAY §11). */
|
|
2734
2734
|
.fdy-help--error,.fdy-help--danger{color:var(--color-danger);}
|
|
2735
2735
|
|
|
@@ -2776,7 +2776,7 @@ fieldset.fdy-field>legend{padding:0;float:none;margin-bottom:var(--space-2);}
|
|
|
2776
2776
|
/* Row internals: a title/meta stack that truncates, and a trailing slot pinned right. */
|
|
2777
2777
|
.fdy-list__main{display:flex;flex-direction:column;gap:var(--space-1);min-width:0;flex:1;}
|
|
2778
2778
|
.fdy-list__title{font-family:var(--font-body);font-size:var(--text-base);font-weight:var(--weight-medium);letter-spacing:normal;color:var(--color-text);margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
|
|
2779
|
-
.fdy-list__meta{font-size:var(--text-sm);color:var(--color-text-muted);display:flex;align-items:center;gap:var(--space-2);flex-wrap:wrap;}
|
|
2779
|
+
.fdy-list__meta{margin:0;font-size:var(--text-sm);color:var(--color-text-muted);display:flex;align-items:center;gap:var(--space-2);flex-wrap:wrap;}
|
|
2780
2780
|
.fdy-list__aside{flex:none;display:flex;align-items:center;gap:var(--space-2);}
|
|
2781
2781
|
/* Density: rows tighten with the rest of the kit (--space-* mid-range steps under compact). */
|
|
2782
2782
|
|
|
@@ -2973,7 +2973,7 @@ fieldset.fdy-field>legend{padding:0;float:none;margin-bottom:var(--space-2);}
|
|
|
2973
2973
|
.fdy-state__icon{display:inline-flex;align-items:center;justify-content:center;width:2.5rem;height:2.5rem;color:var(--color-text-subtle);}
|
|
2974
2974
|
.fdy-state__icon svg{width:100%;height:100%;}
|
|
2975
2975
|
.fdy-state__title{font-family:var(--font-display);font-size:var(--text-lg);font-weight:var(--weight-semibold);color:var(--color-text);margin:0;}
|
|
2976
|
-
.fdy-state__text{font-size:var(--text-sm);color:var(--color-text-muted);max-width:24rem;line-height:var(--leading-normal);}
|
|
2976
|
+
.fdy-state__text{margin:0;font-size:var(--text-sm);color:var(--color-text-muted);max-width:24rem;line-height:var(--leading-normal);}
|
|
2977
2977
|
.fdy-state__actions{margin-top:var(--space-2);display:flex;gap:var(--space-2);flex-wrap:wrap;justify-content:center;}
|
|
2978
2978
|
.fdy-state--danger .fdy-state__icon{color:var(--color-danger-strong);}
|
|
2979
2979
|
/* Compact (#069): the same state inside a small card, one line of icon and text instead of a
|
package/dist/freeday.css
CHANGED
|
@@ -95,7 +95,7 @@ a { color: var(--color-primary-strong); }
|
|
|
95
95
|
.fdy-alert__icon svg{width:100%;height:100%;}
|
|
96
96
|
.fdy-alert__body{flex:1;min-width:0;display:flex;flex-direction:column;gap:var(--space-1);}
|
|
97
97
|
.fdy-alert__title{font-size:inherit;font-weight:var(--weight-semibold);color:var(--color-text);margin:0;}
|
|
98
|
-
.fdy-alert__text{color:var(--color-text);line-height:var(--leading-normal);}
|
|
98
|
+
.fdy-alert__text{margin:0;color:var(--color-text);line-height:var(--leading-normal);}
|
|
99
99
|
.fdy-alert__close{flex:none;align-self:flex-start;border:0;background:transparent;color:var(--color-text-muted);cursor:pointer;font-size:var(--text-lg);line-height:1;padding:0 var(--space-1);border-radius:var(--radius-sm);}
|
|
100
100
|
.fdy-alert__close:hover{color:var(--color-text);}
|
|
101
101
|
.fdy-alert__close:focus-visible{outline:none;box-shadow:0 0 0 3px rgba(var(--color-primary-rgb),.26);}
|
|
@@ -1119,10 +1119,10 @@ a { color: var(--color-primary-strong); }
|
|
|
1119
1119
|
/* --color-text-muted, not -subtle: this is a LABEL, i.e. text, and -subtle is deliberately gated at
|
|
1120
1120
|
3.0 (placeholders, dividers, decorative glyphs). On surface-2 -subtle measures 4.41, under AA
|
|
1121
1121
|
for text, and a stat label is often the only thing naming the number above it. */
|
|
1122
|
-
.fdy-stat__label{font-size:var(--text-xs);font-weight:var(--weight-semibold);letter-spacing:var(--tracking-wide);text-transform:uppercase;color:var(--color-text-muted);}
|
|
1122
|
+
.fdy-stat__label{margin:0;font-size:var(--text-xs);font-weight:var(--weight-semibold);letter-spacing:var(--tracking-wide);text-transform:uppercase;color:var(--color-text-muted);}
|
|
1123
1123
|
.fdy-stat__value{font-family:var(--font-display);font-size:var(--text-3xl);font-weight:var(--weight-bold);letter-spacing:var(--tracking-tighter);line-height:1;color:var(--color-text);font-variant-numeric:tabular-nums;}
|
|
1124
1124
|
.fdy-stat__value small{font-size:var(--text-lg);font-weight:var(--weight-semibold);color:var(--color-text-muted);}
|
|
1125
|
-
.fdy-stat__meta{font-size:var(--text-sm);color:var(--color-text-muted);display:flex;align-items:center;gap:var(--space-2);}
|
|
1125
|
+
.fdy-stat__meta{margin:0;font-size:var(--text-sm);color:var(--color-text-muted);display:flex;align-items:center;gap:var(--space-2);}
|
|
1126
1126
|
/* A stat value is display type sized for a COUNT, "1,284", and a back office puts money in it.
|
|
1127
1127
|
"IDR 300,000.00" needs 224px at --text-3xl and the grid's own track is 11rem, so it wrapped
|
|
1128
1128
|
between the currency and the number: two lines of 31px where the design says one. Measured, not
|
|
@@ -1355,7 +1355,7 @@ a { color: var(--color-primary-strong); }
|
|
|
1355
1355
|
.fdy-dropzone.is-dragover .fdy-dropzone__icon{color:var(--color-primary-strong);}
|
|
1356
1356
|
.fdy-dropzone__icon svg{display:block;width:2rem;height:2rem;}
|
|
1357
1357
|
.fdy-dropzone__title{font-size:inherit;font-weight:var(--weight-medium);color:var(--color-text);margin:0;}
|
|
1358
|
-
.fdy-dropzone__hint{font-size:var(--text-xs);}
|
|
1358
|
+
.fdy-dropzone__hint{margin:0;font-size:var(--text-xs);}
|
|
1359
1359
|
/* Wide (horizontal) layout, icon beside the copy instead of stacked, for full-width
|
|
1360
1360
|
* sections. Wrap the title + hint in .fdy-dropzone__text. */
|
|
1361
1361
|
.fdy-dropzone--row{flex-direction:row;align-items:center;justify-content:center;text-align:left;gap:var(--space-4);}
|
|
@@ -1552,7 +1552,7 @@ fieldset.fdy-field>legend{padding:0;float:none;margin-bottom:var(--space-2);}
|
|
|
1552
1552
|
screen reader does not read "star" after every label. That is stricter than a <span> an app has to
|
|
1553
1553
|
remember to mark aria-hidden, and it cannot be forgotten. */
|
|
1554
1554
|
.fdy-label--required::after{content:"*" / "";margin-left:var(--space-1);color:var(--color-danger);}
|
|
1555
|
-
.fdy-help{font-size:var(--text-xs);color:var(--color-text-muted);}
|
|
1555
|
+
.fdy-help{margin:0;font-size:var(--text-xs);color:var(--color-text-muted);}
|
|
1556
1556
|
/* --danger is the tone word everywhere else in the kit; help text takes either (CATATAN-FREEDAY §11). */
|
|
1557
1557
|
.fdy-help--error,.fdy-help--danger{color:var(--color-danger);}
|
|
1558
1558
|
|
|
@@ -1599,7 +1599,7 @@ fieldset.fdy-field>legend{padding:0;float:none;margin-bottom:var(--space-2);}
|
|
|
1599
1599
|
/* Row internals: a title/meta stack that truncates, and a trailing slot pinned right. */
|
|
1600
1600
|
.fdy-list__main{display:flex;flex-direction:column;gap:var(--space-1);min-width:0;flex:1;}
|
|
1601
1601
|
.fdy-list__title{font-family:var(--font-body);font-size:var(--text-base);font-weight:var(--weight-medium);letter-spacing:normal;color:var(--color-text);margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
|
|
1602
|
-
.fdy-list__meta{font-size:var(--text-sm);color:var(--color-text-muted);display:flex;align-items:center;gap:var(--space-2);flex-wrap:wrap;}
|
|
1602
|
+
.fdy-list__meta{margin:0;font-size:var(--text-sm);color:var(--color-text-muted);display:flex;align-items:center;gap:var(--space-2);flex-wrap:wrap;}
|
|
1603
1603
|
.fdy-list__aside{flex:none;display:flex;align-items:center;gap:var(--space-2);}
|
|
1604
1604
|
/* Density: rows tighten with the rest of the kit (--space-* mid-range steps under compact). */
|
|
1605
1605
|
|
|
@@ -1796,7 +1796,7 @@ fieldset.fdy-field>legend{padding:0;float:none;margin-bottom:var(--space-2);}
|
|
|
1796
1796
|
.fdy-state__icon{display:inline-flex;align-items:center;justify-content:center;width:2.5rem;height:2.5rem;color:var(--color-text-subtle);}
|
|
1797
1797
|
.fdy-state__icon svg{width:100%;height:100%;}
|
|
1798
1798
|
.fdy-state__title{font-family:var(--font-display);font-size:var(--text-lg);font-weight:var(--weight-semibold);color:var(--color-text);margin:0;}
|
|
1799
|
-
.fdy-state__text{font-size:var(--text-sm);color:var(--color-text-muted);max-width:24rem;line-height:var(--leading-normal);}
|
|
1799
|
+
.fdy-state__text{margin:0;font-size:var(--text-sm);color:var(--color-text-muted);max-width:24rem;line-height:var(--leading-normal);}
|
|
1800
1800
|
.fdy-state__actions{margin-top:var(--space-2);display:flex;gap:var(--space-2);flex-wrap:wrap;justify-content:center;}
|
|
1801
1801
|
.fdy-state--danger .fdy-state__icon{color:var(--color-danger-strong);}
|
|
1802
1802
|
/* Compact (#069): the same state inside a small card, one line of icon and text instead of a
|
package/docs/getting-started.md
CHANGED
|
@@ -198,7 +198,7 @@ live docs also have a copy button per component.
|
|
|
198
198
|
```bash
|
|
199
199
|
npm i @cahyo-dimas/freeday
|
|
200
200
|
```
|
|
201
|
-
Lands in `package.json` as `"@cahyo-dimas/freeday": "^3.16.
|
|
201
|
+
Lands in `package.json` as `"@cahyo-dimas/freeday": "^3.16.1"` (public npm package). `dist/` is
|
|
202
202
|
committed and published → no build step; `npm ci` runs without auth.
|
|
203
203
|
|
|
204
204
|
### 2. Import the CSS + enhancers **once** in your entry (`src/main.ts`)
|
package/package.json
CHANGED
package/src/components/alert.css
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
.fdy-alert__icon svg{width:100%;height:100%;}
|
|
5
5
|
.fdy-alert__body{flex:1;min-width:0;display:flex;flex-direction:column;gap:var(--space-1);}
|
|
6
6
|
.fdy-alert__title{font-size:inherit;font-weight:var(--weight-semibold);color:var(--color-text);margin:0;}
|
|
7
|
-
.fdy-alert__text{color:var(--color-text);line-height:var(--leading-normal);}
|
|
7
|
+
.fdy-alert__text{margin:0;color:var(--color-text);line-height:var(--leading-normal);}
|
|
8
8
|
.fdy-alert__close{flex:none;align-self:flex-start;border:0;background:transparent;color:var(--color-text-muted);cursor:pointer;font-size:var(--text-lg);line-height:1;padding:0 var(--space-1);border-radius:var(--radius-sm);}
|
|
9
9
|
.fdy-alert__close:hover{color:var(--color-text);}
|
|
10
10
|
.fdy-alert__close:focus-visible{outline:none;box-shadow:0 0 0 3px rgba(var(--color-primary-rgb),.26);}
|
|
@@ -47,10 +47,10 @@
|
|
|
47
47
|
/* --color-text-muted, not -subtle: this is a LABEL, i.e. text, and -subtle is deliberately gated at
|
|
48
48
|
3.0 (placeholders, dividers, decorative glyphs). On surface-2 -subtle measures 4.41, under AA
|
|
49
49
|
for text, and a stat label is often the only thing naming the number above it. */
|
|
50
|
-
.fdy-stat__label{font-size:var(--text-xs);font-weight:var(--weight-semibold);letter-spacing:var(--tracking-wide);text-transform:uppercase;color:var(--color-text-muted);}
|
|
50
|
+
.fdy-stat__label{margin:0;font-size:var(--text-xs);font-weight:var(--weight-semibold);letter-spacing:var(--tracking-wide);text-transform:uppercase;color:var(--color-text-muted);}
|
|
51
51
|
.fdy-stat__value{font-family:var(--font-display);font-size:var(--text-3xl);font-weight:var(--weight-bold);letter-spacing:var(--tracking-tighter);line-height:1;color:var(--color-text);font-variant-numeric:tabular-nums;}
|
|
52
52
|
.fdy-stat__value small{font-size:var(--text-lg);font-weight:var(--weight-semibold);color:var(--color-text-muted);}
|
|
53
|
-
.fdy-stat__meta{font-size:var(--text-sm);color:var(--color-text-muted);display:flex;align-items:center;gap:var(--space-2);}
|
|
53
|
+
.fdy-stat__meta{margin:0;font-size:var(--text-sm);color:var(--color-text-muted);display:flex;align-items:center;gap:var(--space-2);}
|
|
54
54
|
/* A stat value is display type sized for a COUNT, "1,284", and a back office puts money in it.
|
|
55
55
|
"IDR 300,000.00" needs 224px at --text-3xl and the grid's own track is 11rem, so it wrapped
|
|
56
56
|
between the currency and the number: two lines of 31px where the design says one. Measured, not
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
.fdy-dropzone.is-dragover .fdy-dropzone__icon{color:var(--color-primary-strong);}
|
|
10
10
|
.fdy-dropzone__icon svg{display:block;width:2rem;height:2rem;}
|
|
11
11
|
.fdy-dropzone__title{font-size:inherit;font-weight:var(--weight-medium);color:var(--color-text);margin:0;}
|
|
12
|
-
.fdy-dropzone__hint{font-size:var(--text-xs);}
|
|
12
|
+
.fdy-dropzone__hint{margin:0;font-size:var(--text-xs);}
|
|
13
13
|
/* Wide (horizontal) layout, icon beside the copy instead of stacked, for full-width
|
|
14
14
|
* sections. Wrap the title + hint in .fdy-dropzone__text. */
|
|
15
15
|
.fdy-dropzone--row{flex-direction:row;align-items:center;justify-content:center;text-align:left;gap:var(--space-4);}
|
package/src/components/input.css
CHANGED
|
@@ -55,6 +55,6 @@ fieldset.fdy-field>legend{padding:0;float:none;margin-bottom:var(--space-2);}
|
|
|
55
55
|
screen reader does not read "star" after every label. That is stricter than a <span> an app has to
|
|
56
56
|
remember to mark aria-hidden, and it cannot be forgotten. */
|
|
57
57
|
.fdy-label--required::after{content:"*" / "";margin-left:var(--space-1);color:var(--color-danger);}
|
|
58
|
-
.fdy-help{font-size:var(--text-xs);color:var(--color-text-muted);}
|
|
58
|
+
.fdy-help{margin:0;font-size:var(--text-xs);color:var(--color-text-muted);}
|
|
59
59
|
/* --danger is the tone word everywhere else in the kit; help text takes either (CATATAN-FREEDAY §11). */
|
|
60
60
|
.fdy-help--error,.fdy-help--danger{color:var(--color-danger);}
|
package/src/components/list.css
CHANGED
|
@@ -38,6 +38,6 @@
|
|
|
38
38
|
/* Row internals: a title/meta stack that truncates, and a trailing slot pinned right. */
|
|
39
39
|
.fdy-list__main{display:flex;flex-direction:column;gap:var(--space-1);min-width:0;flex:1;}
|
|
40
40
|
.fdy-list__title{font-family:var(--font-body);font-size:var(--text-base);font-weight:var(--weight-medium);letter-spacing:normal;color:var(--color-text);margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
|
|
41
|
-
.fdy-list__meta{font-size:var(--text-sm);color:var(--color-text-muted);display:flex;align-items:center;gap:var(--space-2);flex-wrap:wrap;}
|
|
41
|
+
.fdy-list__meta{margin:0;font-size:var(--text-sm);color:var(--color-text-muted);display:flex;align-items:center;gap:var(--space-2);flex-wrap:wrap;}
|
|
42
42
|
.fdy-list__aside{flex:none;display:flex;align-items:center;gap:var(--space-2);}
|
|
43
43
|
/* Density: rows tighten with the rest of the kit (--space-* mid-range steps under compact). */
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
.fdy-state__icon{display:inline-flex;align-items:center;justify-content:center;width:2.5rem;height:2.5rem;color:var(--color-text-subtle);}
|
|
4
4
|
.fdy-state__icon svg{width:100%;height:100%;}
|
|
5
5
|
.fdy-state__title{font-family:var(--font-display);font-size:var(--text-lg);font-weight:var(--weight-semibold);color:var(--color-text);margin:0;}
|
|
6
|
-
.fdy-state__text{font-size:var(--text-sm);color:var(--color-text-muted);max-width:24rem;line-height:var(--leading-normal);}
|
|
6
|
+
.fdy-state__text{margin:0;font-size:var(--text-sm);color:var(--color-text-muted);max-width:24rem;line-height:var(--leading-normal);}
|
|
7
7
|
.fdy-state__actions{margin-top:var(--space-2);display:flex;gap:var(--space-2);flex-wrap:wrap;justify-content:center;}
|
|
8
8
|
.fdy-state--danger .fdy-state__icon{color:var(--color-danger-strong);}
|
|
9
9
|
/* Compact (#069): the same state inside a small card, one line of icon and text instead of a
|