@cahyo-dimas/freeday 3.19.0 → 3.19.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 +24 -0
- package/COMPONENTS.md +2 -2
- package/README.id.md +5 -5
- package/README.md +4 -4
- package/docs/agent-onboarding.md +10 -9
- package/docs/getting-started.md +4 -4
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -9,6 +9,30 @@ 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.19.1] - 2026-11-09
|
|
13
|
+
|
|
14
|
+
Hanya dokumen dan uji. Tidak ada perubahan pada CSS, enhancer, atau pembungkus.
|
|
15
|
+
|
|
16
|
+
### Docs
|
|
17
|
+
|
|
18
|
+
- **Jumlah pembungkus tidak lagi ditulis dengan kata** (`#117`, §27). "Eleven" dan "thirteen" dipakai
|
|
19
|
+
untuk himpunan yang sama di 18 tempat dalam lima berkas, enam di antaranya di blok tempel
|
|
20
|
+
`agent-onboarding.md`. Agen yang menuruti "the eleven" dapat menyimpulkan dua komponen tidak punya
|
|
21
|
+
pembungkus. Kini tiap kalimat menunjuk ke daftar namanya, yang sudah dijaga uji.
|
|
22
|
+
`FdyTableFooter` disebut sebagai bagian dari `FdyTable`.
|
|
23
|
+
- **`timepicker` keluar dari daftar "no wrapper"** (`#117`). `FdyTimepicker` ada di ketiga stack, dan
|
|
24
|
+
paragraf yang sama melarang menulis markup mentahnya. Yang tidak punya pembungkus adalah
|
|
25
|
+
`datetimepicker`.
|
|
26
|
+
- **`FdyChart` perlu enhancer di Vue dan React** (`#117`). Blok tempel mengatakan pembungkus bertipe
|
|
27
|
+
tidak perlu `import '@cahyo-dimas/freeday'`. `FdyChart` melukis lewat `window.FreedayChart`, jadi
|
|
28
|
+
tanpa impor itu grafiknya tidak tergambar. Dicatat di blok tempel dan di `COMPONENTS.md`.
|
|
29
|
+
|
|
30
|
+
### Catatan
|
|
31
|
+
|
|
32
|
+
- Proyek yang menyalin blok `agent-onboarding.md` perlu menggantinya seluruhnya.
|
|
33
|
+
- Uji baru di `test/docs.test.mjs`: kata bilangan untuk pembungkus ditolak di tujuh dokumen, dan
|
|
34
|
+
nama di daftar "no wrapper" tidak boleh punya pembungkus.
|
|
35
|
+
|
|
12
36
|
## [3.19.0] - 2026-11-09
|
|
13
37
|
|
|
14
38
|
**`FdyAutocomplete` kini berlaku seperti input.** Keduanya ketahuan saat tiga isian `<input list>`
|
package/COMPONENTS.md
CHANGED
|
@@ -38,7 +38,7 @@ live docs.
|
|
|
38
38
|
any field being invalid.
|
|
39
39
|
6. **Interactive components need their enhancer script.** Static ones (button, card, badge, table,
|
|
40
40
|
alert, breadcrumb, timeline, accordion, tree-without-cascade…) are CSS-only.
|
|
41
|
-
7. **On Vue, React or Blazor,
|
|
41
|
+
7. **On Vue, React or Blazor, these components have a typed wrapper. Use it.** `FdyCombo` ·
|
|
42
42
|
`FdyDatepicker` · `FdyMonthpicker` · `FdyDateRange` · `FdyTimepicker` · `FdyAutocomplete` ·
|
|
43
43
|
`FdyCascade` · `FdyCfl` ·
|
|
44
44
|
`FdyChart` · `FdyTable` · `FdyModal` · `FdyDrawer` · `FdyAppShell`, from `@cahyo-dimas/freeday/vue`, `/react`, or the
|
|
@@ -1806,7 +1806,7 @@ rather than rendering zero: a widget that shows 0 for a request that failed read
|
|
|
1806
1806
|
do", the opposite of what happened.
|
|
1807
1807
|
|
|
1808
1808
|
## Charts — `data-fdy-chart`
|
|
1809
|
-
> **Typed wrapper: `<FdyChart>`**. data props in all three (`type` + `values` / `series`); it repaints on data change, so `FreedayChart.update(el)` is only for the raw path below.
|
|
1809
|
+
> **Typed wrapper: `<FdyChart>`**. data props in all three (`type` + `values` / `series`); it repaints on data change, so `FreedayChart.update(el)` is only for the raw path below. It paints through the enhancer: on Vue and React it needs `import '@cahyo-dimas/freeday'` once at app entry, the one typed wrapper that does. Without it the slot content stays and no chart is drawn.
|
|
1810
1810
|
|
|
1811
1811
|
### Props — `<FdyChart>`
|
|
1812
1812
|
|
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.19.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`.
|
|
@@ -33,20 +33,20 @@ npm test # tes transformasi build + kontras WCAG (node:test)
|
|
|
33
33
|
|
|
34
34
|
### Pertama: pintu masuk mana yang kamu pakai?
|
|
35
35
|
|
|
36
|
-
Sebagian besar Freeday itu markup + kelas `fdy-*` dan sama di mana pun. **
|
|
36
|
+
Sebagian besar Freeday itu markup + kelas `fdy-*` dan sama di mana pun. **Sebagian komponen
|
|
37
37
|
interaktif juga punya wrapper typed.** Di stack berikut, pakai wrapper-nya, bukan markup mentah +
|
|
38
38
|
enhancer:
|
|
39
39
|
|
|
40
|
-
| Stack-mu | Impor
|
|
40
|
+
| Stack-mu | Impor wrapper-nya dari | Binding |
|
|
41
41
|
|---|---|---|
|
|
42
42
|
| **Vue 3** | `@cahyo-dimas/freeday/vue` | `v-model` |
|
|
43
43
|
| **React 18/19** | `@cahyo-dimas/freeday/react` | `value` + `onChange` |
|
|
44
44
|
| **Blazor (net8.0)** | RCL `Freeday.Blazor` | `@bind-Value` |
|
|
45
45
|
| HTML statis · Svelte · template server-rendered | *(tanpa wrapper)* markup mentah + enhancer, di bawah | event `fdy-*` |
|
|
46
46
|
|
|
47
|
-
|
|
47
|
+
Wrapper-nya: `FdyCombo` · `FdyDatepicker` · `FdyMonthpicker` · `FdyDateRange` ·
|
|
48
48
|
`FdyTimepicker` · `FdyAutocomplete` · `FdyCascade` · `FdyCfl` · `FdyChart` · `FdyTable` · `FdyModal` · `FdyDrawer` ·
|
|
49
|
-
`FdyAppShell`. Menulis markup mentah untuk
|
|
49
|
+
`FdyAppShell`. Menulis markup mentah untuk komponen-komponen ini di dalam Vue/React/Blazor *kelihatan* baik-baik saja pada mulanya, karena render
|
|
50
50
|
pertamanya memang benar. Setelah itu ia rusak diam-diam: DOM yang di-render framework belakangan tak pernah ter-hydrate, dan state widget
|
|
51
51
|
berakhir di DOM alih-alih di state framework-mu. Selebihnya (button, card, badge, alert, markup
|
|
52
52
|
tabel, layout, dan komponen interaktif yang tak punya wrapper) sama persis di semua stack. Untuk
|
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.19.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`.
|
|
@@ -33,18 +33,18 @@ npm test # build-transform tests + WCAG contrast (node:test)
|
|
|
33
33
|
|
|
34
34
|
### First: which entry point is yours?
|
|
35
35
|
|
|
36
|
-
Most of Freeday is markup + `fdy-*` classes and is identical everywhere. **
|
|
36
|
+
Most of Freeday is markup + `fdy-*` classes and is identical everywhere. **Some interactive
|
|
37
37
|
components also ship a typed wrapper.** In those stacks, use the wrapper rather than raw markup +
|
|
38
38
|
enhancer:
|
|
39
39
|
|
|
40
|
-
| Your stack | Import the
|
|
40
|
+
| Your stack | Import the wrappers from | Binding |
|
|
41
41
|
|---|---|---|
|
|
42
42
|
| **Vue 3** | `@cahyo-dimas/freeday/vue` | `v-model` |
|
|
43
43
|
| **React 18/19** | `@cahyo-dimas/freeday/react` | `value` + `onChange` |
|
|
44
44
|
| **Blazor (net8.0)** | `Freeday.Blazor` RCL | `@bind-Value` |
|
|
45
45
|
| Static HTML · Svelte · server-rendered templates | *(no wrapper)* raw markup + enhancers, below | `fdy-*` events |
|
|
46
46
|
|
|
47
|
-
The
|
|
47
|
+
The wrappers: `FdyCombo` · `FdyDatepicker` · `FdyMonthpicker` · `FdyDateRange` · `FdyTimepicker` ·
|
|
48
48
|
`FdyAutocomplete` · `FdyCascade` · `FdyCfl` · `FdyChart` · `FdyTable` · `FdyModal` · `FdyDrawer` · `FdyAppShell`.
|
|
49
49
|
Hand-writing the raw
|
|
50
50
|
markup for these inside Vue/React/Blazor *looks* fine at first, because the first render is correct.
|
package/docs/agent-onboarding.md
CHANGED
|
@@ -20,34 +20,35 @@ the **root of the consuming project**:
|
|
|
20
20
|
|
|
21
21
|
All UI in this project is built from Freeday: a **token-driven CSS kit** (`fdy-*` classes on plain
|
|
22
22
|
markup) with **typed components for Vue, React and Blazor** layered on top. Most of the kit is
|
|
23
|
-
markup + classes;
|
|
23
|
+
markup + classes; the interactive components listed below also ship a typed wrapper, and in those three stacks
|
|
24
24
|
the wrapper is the correct way to use them.
|
|
25
25
|
|
|
26
26
|
**0. First decide which entry point this project uses. This is not an optimisation. Get it wrong
|
|
27
27
|
and the code looks correct and fails later.**
|
|
28
28
|
|
|
29
|
-
| This project's stack | Import the
|
|
29
|
+
| This project's stack | Import the typed wrappers from | Binding |
|
|
30
30
|
|---|---|---|
|
|
31
31
|
| Vue 3 | `@cahyo-dimas/freeday/vue` | `v-model` |
|
|
32
32
|
| React 18/19 | `@cahyo-dimas/freeday/react` | `value` + `onChange` |
|
|
33
33
|
| Blazor (net8.0) | `@using Freeday.Blazor` (RCL) | `@bind-Value` |
|
|
34
34
|
| Static HTML, Svelte, server-rendered templates… | no wrapper: raw markup + the enhancer script | `fdy-*` DOM events |
|
|
35
35
|
|
|
36
|
-
The
|
|
36
|
+
The typed wrappers: **FdyCombo · FdyDatepicker · FdyMonthpicker · FdyDateRange · FdyTimepicker ·
|
|
37
37
|
FdyAutocomplete · FdyCascade · FdyCfl · FdyChart · FdyTable · FdyModal · FdyDrawer · FdyAppShell**. In
|
|
38
|
-
Vue/React/Blazor, **never hand-write the raw markup + enhancer for these
|
|
38
|
+
Vue/React/Blazor, **never hand-write the raw markup + enhancer for any of these.** The raw path *appears* to work: the enhancer auto-initialises
|
|
39
39
|
once on `DOMContentLoaded` and the first render is correct. Then it fails quietly: DOM your framework
|
|
40
40
|
renders later is never hydrated, and the widget's state lives in the DOM instead of in your
|
|
41
41
|
framework's state.
|
|
42
42
|
|
|
43
43
|
Everything else is the same in every stack: plain `fdy-*` markup (button, card, badge, alert,
|
|
44
44
|
table markup, layout…). For the *other* interactive components (chips, stepper, input mask, file
|
|
45
|
-
upload, tree, tabs, menu, rating, slider, form validation, carousel,
|
|
45
|
+
upload, tree, tabs, menu, rating, slider, form validation, carousel, datetimepicker) there is no
|
|
46
46
|
wrapper, use the raw markup and hydrate it:
|
|
47
47
|
|
|
48
48
|
- **Vue / React:** `useFreeday(rootRef)` from the same import path, plus `import '@cahyo-dimas/freeday'`
|
|
49
|
-
once at app entry to register the enhancers. (The
|
|
50
|
-
are native Vue/React implementations of the same markup, not wrappers over the enhancer.
|
|
49
|
+
once at app entry to register the enhancers. (The typed wrappers do **not** need this: they
|
|
50
|
+
are native Vue/React implementations of the same markup, not wrappers over the enhancer. The one
|
|
51
|
+
exception is `FdyChart`, which paints through the enhancer and draws nothing without that import.)
|
|
51
52
|
- **Blazor:** `FreedayBlazor.initAll` interop. (Here the typed components *are* thin wrappers over
|
|
52
53
|
the enhancers, so the enhancer script is always required.)
|
|
53
54
|
|
|
@@ -76,7 +77,7 @@ wrapper, use the raw markup and hydrate it:
|
|
|
76
77
|
Icon-only buttons need `aria-label`. Status is never colour-only.
|
|
77
78
|
7. Interactive components need their enhancer script loaded (see the table in COMPONENTS.md); in an
|
|
78
79
|
SPA, re-hydrate dynamic DOM with `useFreeday` / `FreedayBlazor.initAll`. This applies to the
|
|
79
|
-
components **without** a typed wrapper. For the
|
|
80
|
+
components **without** a typed wrapper. For the ones listed in step 0, use the wrapper instead.
|
|
80
81
|
8. Freeday owns components + tokens, **not layout**. Grids/stacks/one-off gaps come from our own
|
|
81
82
|
layout layer. Build its theme on `var(--space-N)` so both systems stay in step.
|
|
82
83
|
9. The enhancers render their own English UI strings (pager, filter dialog, validation). Never
|
|
@@ -103,7 +104,7 @@ Blazor). Then verify the agent can actually read those files. An agent that can'
|
|
|
103
104
|
| `dist/freeday.media.css` | The breakpoints as `@custom-media` (`@cahyo-dimas/freeday/media`), so a responsive rule in your CSS states the kit's condition instead of a retyped literal. Needs PostCSS; carries no rules, and is **not** in the bundle. |
|
|
104
105
|
| `src/components/*.css` | The authoritative source for every class, when a doc is ambiguous. |
|
|
105
106
|
| `tokens/tokens.json` | Every token in W3C DTCG format, machine-readable. |
|
|
106
|
-
| `adapters/vue` · `adapters/react` · `adapters/blazor` | Typed wrappers
|
|
107
|
+
| `adapters/vue` · `adapters/react` · `adapters/blazor` | Typed wrappers: the same set in each, listed in step 0, plus `FdyTableFooter`, which is a part of `FdyTable`. |
|
|
107
108
|
|
|
108
109
|
The live docs (with an interactive playground) are at
|
|
109
110
|
<https://cahyo-dimas.github.io/freeday-ui-kit/>, and the repo (including three complete example
|
package/docs/getting-started.md
CHANGED
|
@@ -21,7 +21,7 @@ Freeday = **CSS** (semantic tokens + `fdy-*` classes) + **zero-dependency JS enh
|
|
|
21
21
|
the enhancer owns the widget's DOM. You **listen for `fdy-*` events** (all bubbling
|
|
22
22
|
`CustomEvent`s, data in `event.detail`) → store them in your framework state. Event/API contract
|
|
23
23
|
table: [`integrations.md` §Event & API contract](integrations.md).
|
|
24
|
-
**On Vue, React or Blazor this is not the path to take for
|
|
24
|
+
**On Vue, React or Blazor this is not the path to take for the components with a typed wrapper.** `FdyCombo`,
|
|
25
25
|
`FdyDatepicker`, `FdyMonthpicker`, `FdyDateRange`, `FdyTimepicker`, `FdyAutocomplete`, `FdyCascade`, `FdyCfl`,
|
|
26
26
|
`FdyChart`, `FdyTable`, `FdyModal`, `FdyDrawer`, `FdyAppShell` ship typed wrappers that own the state properly (Vue and
|
|
27
27
|
React re-implement the interaction natively; Blazor wraps the enhancer over interop). Use them;
|
|
@@ -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.19.
|
|
201
|
+
Lands in `package.json` as `"@cahyo-dimas/freeday": "^3.19.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`)
|
|
@@ -317,7 +317,7 @@ dev; `useFreeday` is idempotent, so it's safe.
|
|
|
317
317
|
### 5. Alternative: typed controlled components
|
|
318
318
|
For fields you'd normally write as a native `<select>`/`<input type="date">`,
|
|
319
319
|
`@cahyo-dimas/freeday/react` also exports typed **controlled** components with plain `value`/`onChange`,
|
|
320
|
-
no manual event bubbling — the same
|
|
320
|
+
no manual event bubbling — the same set listed in §Core concepts #2, at parity with the Vue
|
|
321
321
|
`v-model` components above:
|
|
322
322
|
```tsx
|
|
323
323
|
import { FdyCombo } from '@cahyo-dimas/freeday/react';
|
|
@@ -452,7 +452,7 @@ kit's CSS/enhancers), then bind:
|
|
|
452
452
|
<FdyChart Type="donut" Values="_byCity" Labels="_cityLabels" AriaLabel="Revenue by city" />
|
|
453
453
|
<FdyDrawer @bind-Open="_drawerOpen" Title="Detail" Side="right">…</FdyDrawer>
|
|
454
454
|
```
|
|
455
|
-
|
|
455
|
+
The same components, at parity with the Vue/React adapters: **`FdyModal`** · **`FdyDrawer`** (`@bind-Open`,
|
|
456
456
|
`Title`, `Size`/`Side`, `Dismissible`) · **`FdyCombo<TValue>`** · **`FdyDatepicker`** ·
|
|
457
457
|
**`FdyMonthpicker`** (`@bind-Value` as `yyyy-MM`) · **`FdyTimepicker`** (`@bind-Value` as `HH:MM`) · **`FdyAutocomplete`** · **`FdyCascade`** · **`FdyDateRange`** (`@bind-From`/`@bind-To`) ·
|
|
458
458
|
**`FdyCfl<TRow>`** (async `LoadPage`) · **`FdyChart`** · **`FdyTable<TRow>`** (client sort/filter/page,
|