@cahyo-dimas/freeday 3.15.1 → 3.15.2

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,31 @@ 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.15.2] - 2026-11-04
13
+
14
+ **Atribut `hidden` kini menyembunyikan elemen kit.** Peramban menyembunyikan `[hidden]` lewat
15
+ `display:none` bawaannya, dan `display` apa pun dari kelas mengalahkannya. Jadi
16
+ `<button class="fdy-btn" hidden>` tetap tampil. Diukur di Chrome: **167 dari 495 kelas** kit
17
+ mengabaikan atribut itu, di antaranya `.fdy-btn`, `.fdy-alert`, `.fdy-badge`,
18
+ `.fdy-app__sidebar`, `.fdy-card__footer`, dan `.fdy-checkbox`. Ditemukan sambil menulis uji untuk
19
+ 3.15.1.
20
+
21
+ ### Fixed
22
+ - **`[hidden]:not([hidden="until-found" i]) { display:none !important }` di base layer** (`#110`).
23
+ `!important` dibutuhkan karena sebagian aturan kit menang tanpanya.
24
+ `.fdy-app--nav-overlay .fdy-app__backdrop{display:block}` mengalahkan atribut lewat
25
+ spesifisitas dan urutan sumber. `hidden="until-found"` dibiarkan ke peramban, yang
26
+ menyembunyikannya lewat `content-visibility` supaya pencarian halaman tetap bisa membukanya.
27
+
28
+ ### Catatan
29
+ - Uji baru `browser/hidden-attr.mjs` memasang `hidden` ke setiap kelas yang disebut bundle, dan ke
30
+ setiap rantai kelas yang menetapkan `display`, lalu menuntut semuanya `display:none`. Mutasi
31
+ tanpa aturan, tanpa `!important`, dan tanpa pengecualian `until-found` masing-masing merah.
32
+ - Perilaku yang berubah hanya ini: elemen kit yang diberi `hidden` sekarang benar-benar hilang.
33
+ Markup yang memasang `hidden` sambil mengandalkan elemennya tetap tampil akan berubah. Seluruh
34
+ suite browser kit (249 uji) tetap hijau, jadi kit sendiri tidak bergantung padanya.
35
+ - Komponen yang disembunyikan dengan `v-show` (gaya inline `display:none`) tidak terpengaruh.
36
+
12
37
  ## [3.15.1] - 2026-11-04
13
38
 
14
39
  **`.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'`.
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.15.2-0078d4?style=flat-square)](https://github.com/cahyo-dimas/freeday-ui-kit/tree/v3.15.2)
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.15.2-0078d4?style=flat-square)](https://github.com/cahyo-dimas/freeday-ui-kit/tree/v3.15.2)
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).
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).
@@ -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.15.2"` (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.15.2",
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/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).