@cahyo-dimas/freeday 3.15.1 → 3.16.0

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 CHANGED
@@ -9,6 +9,60 @@ 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.0] - 2026-11-04
13
+
14
+ **Di `.fdy-form-grid`, yang bukan isian adalah baris.** Grid itu `auto-fit`, jadi setiap anak yang
15
+ tidak diaturnya menjadi kolom sendiri. Judul, baris bantuan, toolbar, wadah baris milik app, dan
16
+ `.fdy-card__footer` berdiri sebagai kolom sempit di samping isian. Footer yang punya latar sendiri
17
+ tampil sebagai blok abu-abu tegak di kanan kartu, dan pemilik app menyangkanya keputusan desain
18
+ (`CATATAN-FREEDAY.md` §22: 58 anak bukan-isian di 22 berkas satu app, tiga gejala terlihat dalam
19
+ sehari).
20
+
21
+ ### Changed
22
+ - **Setiap anak langsung `.fdy-form-grid` yang bukan `.fdy-field` kini merentang satu baris penuh**
23
+ (`#111`). Isian tetap berpasangan seperti sebelumnya. Yang berubah adalah markup yang menaruh
24
+ non-isian langsung di grid: ia pindah dari kolom ke baris sendiri. Kalau sebuah sel memang harus
25
+ tetap sekolom, misalnya `.fdy-check` tunggal di samping isian, bungkus dengan
26
+ `<div class="fdy-field">`. Tidak ada kelas baru.
27
+
28
+ ### Catatan
29
+ - Markup kit sendiri, yaitu kedua contoh di dokumentasi, hanya menaruh `.fdy-field` di grid, jadi
30
+ tidak ada yang bergeser. Komponen bertipe (`FdyCombo`, `FdyDatepicker`, dan lainnya) dirender
31
+ sebagai kontrol di dalam `.fdy-field`, bukan sebagai anak grid, dan tidak terpengaruh.
32
+ - `COMPONENTS.md` kini menyebut `<form class="fdy-form-grid fdy-card">` sebagai salah pakai.
33
+ Grid-nya ada di dalam `.fdy-card__body`.
34
+ - Grid `auto-fit` lain di kit (`.fdy-stats`, `.fdy-filelist--grid`, `.fdy-dl--grid`) berisi item
35
+ yang seragam dan tidak diubah. Hanya grid form yang lazim diselingi judul, teks bantuan, dan aksi.
36
+ - Uji baru `browser/form-grid-rows.mjs` mengukur lebar tiap anak terhadap grid. Terhadap CSS lama,
37
+ judulnya mendapat 23%. Mutasi yang merentang semua anak (`>*`) juga merah, karena isian ikut
38
+ kehilangan kolomnya.
39
+ - App yang sudah memasang aturan yang sama di lapisan tata letaknya boleh mencabutnya.
40
+
41
+ ## [3.15.2] - 2026-11-04
42
+
43
+ **Atribut `hidden` kini menyembunyikan elemen kit.** Peramban menyembunyikan `[hidden]` lewat
44
+ `display:none` bawaannya, dan `display` apa pun dari kelas mengalahkannya. Jadi
45
+ `<button class="fdy-btn" hidden>` tetap tampil. Diukur di Chrome: **167 dari 495 kelas** kit
46
+ mengabaikan atribut itu, di antaranya `.fdy-btn`, `.fdy-alert`, `.fdy-badge`,
47
+ `.fdy-app__sidebar`, `.fdy-card__footer`, dan `.fdy-checkbox`. Ditemukan sambil menulis uji untuk
48
+ 3.15.1.
49
+
50
+ ### Fixed
51
+ - **`[hidden]:not([hidden="until-found" i]) { display:none !important }` di base layer** (`#110`).
52
+ `!important` dibutuhkan karena sebagian aturan kit menang tanpanya.
53
+ `.fdy-app--nav-overlay .fdy-app__backdrop{display:block}` mengalahkan atribut lewat
54
+ spesifisitas dan urutan sumber. `hidden="until-found"` dibiarkan ke peramban, yang
55
+ menyembunyikannya lewat `content-visibility` supaya pencarian halaman tetap bisa membukanya.
56
+
57
+ ### Catatan
58
+ - Uji baru `browser/hidden-attr.mjs` memasang `hidden` ke setiap kelas yang disebut bundle, dan ke
59
+ setiap rantai kelas yang menetapkan `display`, lalu menuntut semuanya `display:none`. Mutasi
60
+ tanpa aturan, tanpa `!important`, dan tanpa pengecualian `until-found` masing-masing merah.
61
+ - Perilaku yang berubah hanya ini: elemen kit yang diberi `hidden` sekarang benar-benar hilang.
62
+ Markup yang memasang `hidden` sambil mengandalkan elemennya tetap tampil akan berubah. Seluruh
63
+ suite browser kit (249 uji) tetap hijau, jadi kit sendiri tidak bergantung padanya.
64
+ - Komponen yang disembunyikan dengan `v-show` (gaya inline `display:none`) tidak terpengaruh.
65
+
12
66
  ## [3.15.1] - 2026-11-04
13
67
 
14
68
  **`.fdy-btn--stretch` yang lepas dari kartunya kini bersuara.** Di luar `.fdy-card` atau
package/COMPONENTS.md CHANGED
@@ -434,6 +434,11 @@ One role per level of hierarchy. Never re-use a card title for a page title.
434
434
  bullets/indent from a semantic list, needed when your utility framework's preflight is off) ·
435
435
  `.fdy-divider` (+`--vertical`) · `.fdy-kbd`.
436
436
 
437
+ **The `hidden` attribute hides any kit element**, including a `.fdy-btn`, an alert or a flex row.
438
+ The browser's own `display:none` for `[hidden]` loses to any class that sets `display`, so the base
439
+ layer restates it with `!important`. `hidden="until-found"` is left to the browser, which keeps it
440
+ findable with find-in-page.
441
+
437
442
  Responsive display: `.fdy-hide-below-sm|md|lg` · `.fdy-hide-above-sm|md|lg`.
438
443
  Breakpoints (min-width): `sm` 600 · `md` 960 · `lg` 1280 · `xl` 1920, importable as
439
444
  `import { breakpoints } from '@cahyo-dimas/freeday/breakpoints'`.
@@ -1328,6 +1333,23 @@ Responsive two-column document header. Children are `.fdy-field`; `.fdy-field--f
1328
1333
  columns. For a form that must stay **one** column, do not reach for this grid — it pairs fields up
1329
1334
  as soon as the container is wide enough. Use a flex column and mark the fields `--full`.
1330
1335
 
1336
+ **Only a `.fdy-field` is a column.** Every other direct child (a heading, a `.fdy-help` line, a
1337
+ toolbar, your own row of controls, a `.fdy-card__footer`) spans the whole row. A cell that should
1338
+ sit in a column without being an input, such as a lone `.fdy-check`, goes in a
1339
+ `<div class="fdy-field">`. Put the grid **inside** `.fdy-card__body`, not on the card: on a
1340
+ `<form class="fdy-form-grid fdy-card">` the body and the footer are the grid's children, and the
1341
+ fields inside the body are no longer in it.
1342
+
1343
+ ```html
1344
+ <div class="fdy-form-grid">
1345
+ <h3 class="fdy-title-card">Customer</h3> <!-- spans the row -->
1346
+ <label class="fdy-field"><span class="fdy-label">Name</span><input class="fdy-input"></label>
1347
+ <label class="fdy-field"><span class="fdy-label">Code</span><input class="fdy-input"></label>
1348
+ <div class="fdy-field"><label class="fdy-check"><input type="checkbox"> Active</label></div>
1349
+ <div class="fdy-help">The code appears on every invoice.</div> <!-- spans the row -->
1350
+ </div>
1351
+ ```
1352
+
1331
1353
  ## Filter bar — `.fdy-filterbar`
1332
1354
  A consistent filter row of `.fdy-field`s with a width rhythm (`--w-sm` · default · `--w-lg` ·
1333
1355
  `--w-xl` · `--w-2xl`), one `--w-grow` field (usually search) absorbing the slack, and
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
  [![Live docs](https://img.shields.io/badge/docs-live-2050d8?style=flat-square)](https://cahyo-dimas.github.io/freeday-ui-kit/)
8
- [![Release](https://img.shields.io/badge/release-v3.15.1-0078d4?style=flat-square)](https://github.com/cahyo-dimas/freeday-ui-kit/tree/v3.15.1)
8
+ [![Release](https://img.shields.io/badge/release-v3.16.0-0078d4?style=flat-square)](https://github.com/cahyo-dimas/freeday-ui-kit/tree/v3.16.0)
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
  [![Live docs](https://img.shields.io/badge/docs-live-2050d8?style=flat-square)](https://cahyo-dimas.github.io/freeday-ui-kit/)
8
- [![Release](https://img.shields.io/badge/release-v3.15.1-0078d4?style=flat-square)](https://github.com/cahyo-dimas/freeday-ui-kit/tree/v3.15.1)
8
+ [![Release](https://img.shields.io/badge/release-v3.16.0-0078d4?style=flat-square)](https://github.com/cahyo-dimas/freeday-ui-kit/tree/v3.16.0)
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`.
@@ -1192,6 +1192,14 @@ h1, h2, h3, h4 { font-family: var(--font-display); font-weight: var(--weight-bol
1192
1192
  a { color: var(--color-primary-strong); }
1193
1193
  :focus-visible { outline: var(--focus-ring-width) solid var(--focus-ring); outline-offset: var(--focus-ring-width); border-radius: var(--radius-xs); }
1194
1194
  :where(button, input, select, textarea) { font: inherit; }
1195
+ /* The browser hides [hidden] with a user-agent display:none, and any author `display` beats it, so
1196
+ * before this `<button class="fdy-btn" hidden>` rendered: 167 of the kit's 495 classes ignored the
1197
+ * attribute (browser/hidden-attr.mjs). `!important` because some of what it must beat outranks it:
1198
+ * `.fdy-app--nav-overlay .fdy-app__backdrop{display:block}` wins on specificity plus source order
1199
+ * without it. And hidden is a statement about the element, not a style to weigh.
1200
+ * "until-found" is left to the browser: it hides with content-visibility so find-in-page can still
1201
+ * reveal it, and display:none would remove exactly that. */
1202
+ [hidden]:not([hidden="until-found" i]) { display: none !important; }
1195
1203
  /* Hidden from sight, kept for assistive tech. `clip` hides PAINTING, not LAYOUT: the box still
1196
1204
  * has a position, and because it is position:absolute its containing block is the nearest
1197
1205
  * POSITIONED ancestor, and with none, the initial containing block (the document itself).
@@ -2623,6 +2631,12 @@ a { color: var(--color-primary-strong); }
2623
2631
  .fdy-form-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(14rem,1fr));gap:var(--space-4) var(--space-5);}
2624
2632
  .fdy-form-grid>.fdy-field{max-width:none;}
2625
2633
  .fdy-form-grid>.fdy-field--full{grid-column:1/-1;}
2634
+ /* Anything that is not a field is a row (CATATAN-FREEDAY §22). auto-fit makes every child a track, so
2635
+ * a heading, a help line, an app's own row or a card footer stood as a narrow column beside the
2636
+ * fields: a footer at 49% of its card, a row of controls at 31%, and nothing in the markup to say so.
2637
+ * A cell that is meant to sit in a column but is not an input (a lone checkbox) goes in a
2638
+ * `<div class="fdy-field">`, which keeps it one. */
2639
+ .fdy-form-grid>:not(.fdy-field){grid-column:1/-1;}
2626
2640
 
2627
2641
  /* Freeday. Input group (prefix/suffix addons, e.g. Rp / % / icon) */
2628
2642
  .fdy-input-group{display:flex;align-items:stretch;height:var(--control-h);max-width:22rem;background:var(--color-surface);border:1.5px solid var(--color-control-border);border-radius:var(--radius-md);box-shadow:inset 0 1px 2px rgba(16,14,30,.06);overflow:hidden;transition:border-color var(--dur-fast) var(--ease-standard),box-shadow var(--dur-fast) var(--ease-standard);}
package/dist/freeday.css CHANGED
@@ -15,6 +15,14 @@ h1, h2, h3, h4 { font-family: var(--font-display); font-weight: var(--weight-bol
15
15
  a { color: var(--color-primary-strong); }
16
16
  :focus-visible { outline: var(--focus-ring-width) solid var(--focus-ring); outline-offset: var(--focus-ring-width); border-radius: var(--radius-xs); }
17
17
  :where(button, input, select, textarea) { font: inherit; }
18
+ /* The browser hides [hidden] with a user-agent display:none, and any author `display` beats it, so
19
+ * before this `<button class="fdy-btn" hidden>` rendered: 167 of the kit's 495 classes ignored the
20
+ * attribute (browser/hidden-attr.mjs). `!important` because some of what it must beat outranks it:
21
+ * `.fdy-app--nav-overlay .fdy-app__backdrop{display:block}` wins on specificity plus source order
22
+ * without it. And hidden is a statement about the element, not a style to weigh.
23
+ * "until-found" is left to the browser: it hides with content-visibility so find-in-page can still
24
+ * reveal it, and display:none would remove exactly that. */
25
+ [hidden]:not([hidden="until-found" i]) { display: none !important; }
18
26
  /* Hidden from sight, kept for assistive tech. `clip` hides PAINTING, not LAYOUT: the box still
19
27
  * has a position, and because it is position:absolute its containing block is the nearest
20
28
  * POSITIONED ancestor, and with none, the initial containing block (the document itself).
@@ -1446,6 +1454,12 @@ a { color: var(--color-primary-strong); }
1446
1454
  .fdy-form-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(14rem,1fr));gap:var(--space-4) var(--space-5);}
1447
1455
  .fdy-form-grid>.fdy-field{max-width:none;}
1448
1456
  .fdy-form-grid>.fdy-field--full{grid-column:1/-1;}
1457
+ /* Anything that is not a field is a row (CATATAN-FREEDAY §22). auto-fit makes every child a track, so
1458
+ * a heading, a help line, an app's own row or a card footer stood as a narrow column beside the
1459
+ * fields: a footer at 49% of its card, a row of controls at 31%, and nothing in the markup to say so.
1460
+ * A cell that is meant to sit in a column but is not an input (a lone checkbox) goes in a
1461
+ * `<div class="fdy-field">`, which keeps it one. */
1462
+ .fdy-form-grid>:not(.fdy-field){grid-column:1/-1;}
1449
1463
 
1450
1464
  /* Freeday. Input group (prefix/suffix addons, e.g. Rp / % / icon) */
1451
1465
  .fdy-input-group{display:flex;align-items:stretch;height:var(--control-h);max-width:22rem;background:var(--color-surface);border:1.5px solid var(--color-control-border);border-radius:var(--radius-md);box-shadow:inset 0 1px 2px rgba(16,14,30,.06);overflow:hidden;transition:border-color var(--dur-fast) var(--ease-standard),box-shadow var(--dur-fast) var(--ease-standard);}
@@ -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.15.1"` (public npm package). `dist/` is
201
+ Lands in `package.json` as `"@cahyo-dimas/freeday": "^3.16.0"` (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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cahyo-dimas/freeday",
3
- "version": "3.15.1",
3
+ "version": "3.16.0",
4
4
  "description": "Freeday: token-driven, framework-agnostic UI KIT (design source-of-truth).",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -97,7 +97,7 @@
97
97
  "scripts": {
98
98
  "build": "node tokens/build.mjs",
99
99
  "test": "node --test",
100
- "test:browser": "node --test --test-concurrency=3 browser/color-mix.mjs browser/vanilla.mjs browser/adapter.mjs browser/layout.mjs browser/theme.mjs browser/state.mjs browser/root-init.mjs browser/upload-states.mjs browser/number.mjs browser/card-stretch.mjs browser/stretch-warn.mjs browser/text-override.mjs browser/control-heights.mjs browser/field-width.mjs browser/cfl-multi.mjs browser/cfl-dialog-only.mjs browser/crowding.mjs browser/over-dialog.mjs browser/chart-scale.mjs browser/overlay-stack.mjs browser/chart-a11y.mjs browser/app-shell.mjs browser/bottom-nav.mjs browser/picker-states.mjs browser/tabs-strip.mjs browser/tabs-vertical.mjs browser/menu-align.mjs browser/cfl-narrow.mjs browser/form-reveal.mjs browser/confirm-search-copy.mjs browser/daterange-settled.mjs browser/display-parts.mjs browser/table-empty.mjs browser/table-footer-text.mjs browser/month-mode.mjs browser/monthpicker.mjs browser/page-columns.mjs browser/table-hover.mjs browser/typed-popover.mjs browser/filter-parity.mjs browser/filter-wrap.mjs browser/filter-stack.mjs browser/timepicker.mjs browser/form-kit-required.mjs browser/picker-in-modal.mjs browser/harness-contract.mjs browser/app-owned.mjs browser/sortable.mjs browser/modal-phone.mjs browser/empty-ref.mjs browser/stack-standalone.mjs",
100
+ "test:browser": "node --test --test-concurrency=3 browser/color-mix.mjs browser/vanilla.mjs browser/adapter.mjs browser/layout.mjs browser/theme.mjs browser/state.mjs browser/root-init.mjs browser/upload-states.mjs browser/number.mjs browser/card-stretch.mjs browser/stretch-warn.mjs browser/hidden-attr.mjs browser/form-grid-rows.mjs browser/text-override.mjs browser/control-heights.mjs browser/field-width.mjs browser/cfl-multi.mjs browser/cfl-dialog-only.mjs browser/crowding.mjs browser/over-dialog.mjs browser/chart-scale.mjs browser/overlay-stack.mjs browser/chart-a11y.mjs browser/app-shell.mjs browser/bottom-nav.mjs browser/picker-states.mjs browser/tabs-strip.mjs browser/tabs-vertical.mjs browser/menu-align.mjs browser/cfl-narrow.mjs browser/form-reveal.mjs browser/confirm-search-copy.mjs browser/daterange-settled.mjs browser/display-parts.mjs browser/table-empty.mjs browser/table-footer-text.mjs browser/month-mode.mjs browser/monthpicker.mjs browser/page-columns.mjs browser/table-hover.mjs browser/typed-popover.mjs browser/filter-parity.mjs browser/filter-wrap.mjs browser/filter-stack.mjs browser/timepicker.mjs browser/form-kit-required.mjs browser/picker-in-modal.mjs browser/harness-contract.mjs browser/app-owned.mjs browser/sortable.mjs browser/modal-phone.mjs browser/empty-ref.mjs browser/stack-standalone.mjs",
101
101
  "prepack": "node tokens/build.mjs",
102
102
  "version": "node tokens/build.mjs && git add dist",
103
103
  "typecheck:react": "tsc -p adapters/react/tsconfig.json --noEmit",
package/src/base.css CHANGED
@@ -14,6 +14,14 @@ h1, h2, h3, h4 { font-family: var(--font-display); font-weight: var(--weight-bol
14
14
  a { color: var(--color-primary-strong); }
15
15
  :focus-visible { outline: var(--focus-ring-width) solid var(--focus-ring); outline-offset: var(--focus-ring-width); border-radius: var(--radius-xs); }
16
16
  :where(button, input, select, textarea) { font: inherit; }
17
+ /* The browser hides [hidden] with a user-agent display:none, and any author `display` beats it, so
18
+ * before this `<button class="fdy-btn" hidden>` rendered: 167 of the kit's 495 classes ignored the
19
+ * attribute (browser/hidden-attr.mjs). `!important` because some of what it must beat outranks it:
20
+ * `.fdy-app--nav-overlay .fdy-app__backdrop{display:block}` wins on specificity plus source order
21
+ * without it. And hidden is a statement about the element, not a style to weigh.
22
+ * "until-found" is left to the browser: it hides with content-visibility so find-in-page can still
23
+ * reveal it, and display:none would remove exactly that. */
24
+ [hidden]:not([hidden="until-found" i]) { display: none !important; }
17
25
  /* Hidden from sight, kept for assistive tech. `clip` hides PAINTING, not LAYOUT: the box still
18
26
  * has a position, and because it is position:absolute its containing block is the nearest
19
27
  * POSITIONED ancestor, and with none, the initial containing block (the document itself).
@@ -6,3 +6,9 @@
6
6
  .fdy-form-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(14rem,1fr));gap:var(--space-4) var(--space-5);}
7
7
  .fdy-form-grid>.fdy-field{max-width:none;}
8
8
  .fdy-form-grid>.fdy-field--full{grid-column:1/-1;}
9
+ /* Anything that is not a field is a row (CATATAN-FREEDAY §22). auto-fit makes every child a track, so
10
+ * a heading, a help line, an app's own row or a card footer stood as a narrow column beside the
11
+ * fields: a footer at 49% of its card, a row of controls at 31%, and nothing in the markup to say so.
12
+ * A cell that is meant to sit in a column but is not an input (a lone checkbox) goes in a
13
+ * `<div class="fdy-field">`, which keeps it one. */
14
+ .fdy-form-grid>:not(.fdy-field){grid-column:1/-1;}