@cahyo-dimas/freeday 1.32.0 → 1.32.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 +16 -0
- package/COMPONENTS.md +3 -2
- package/README.id.md +1 -1
- package/README.md +1 -1
- package/docs/agent-onboarding.md +23 -0
- package/docs/getting-started.md +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,22 @@
|
|
|
3
3
|
Semua perubahan penting dicatat di sini. Format longgar mengikuti
|
|
4
4
|
[Keep a Changelog](https://keepachangelog.com/); tiap versi = git tag.
|
|
5
5
|
|
|
6
|
+
## [1.32.1] — 2026-08-18
|
|
7
|
+
Docs only. Asked by a consumer: *"if I upgrade, will the agent in my project know what it gained?"*
|
|
8
|
+
The answer was no, and two reasons why.
|
|
9
|
+
### Fixed
|
|
10
|
+
- **`docs/agent-onboarding.md` never mentioned the changelog.** It is the file a consuming agent
|
|
11
|
+
reads first, and it listed everything in the package except the one file that says what changed
|
|
12
|
+
between the version the project had and the one it now has. It now points at
|
|
13
|
+
`node_modules/@cahyo-dimas/freeday/CHANGELOG.md` explicitly, plus a short *reach for this instead
|
|
14
|
+
of hand-rolling that* table covering the last nine releases — the additions most likely to replace
|
|
15
|
+
something an app already worked around.
|
|
16
|
+
- **Three classes existed only in shorthand** in `COMPONENTS.md` — `.fdy-label--required`,
|
|
17
|
+
`.fdy-cal__month` and `.fdy-cal__grid--months` were written as `(+--required)` and `__month`, so
|
|
18
|
+
the full name appeared **zero** times and a grep for the class found nothing. The drift guard
|
|
19
|
+
cannot see this either: it verifies fully-written names and skips shorthand by design, so a class
|
|
20
|
+
introduced only in shorthand is invisible to both the reader and the test.
|
|
21
|
+
|
|
6
22
|
## [1.32.0] — 2026-08-18
|
|
7
23
|
Improvement note 004, both halves: a calendar you could not steer, and a check mark that talked.
|
|
8
24
|
### Added
|
package/COMPONENTS.md
CHANGED
|
@@ -307,7 +307,7 @@ native control, otherwise a `<div>` + explicitly associated label.
|
|
|
307
307
|
</fieldset>
|
|
308
308
|
```
|
|
309
309
|
|
|
310
|
-
|
|
310
|
+
**`.fdy-label--required` marks the label, not the accessibility tree.** The control already carries
|
|
311
311
|
`required`; the asterisk is painted through `::after` with CSS alt text, so a screen reader never
|
|
312
312
|
reads "star" after the label — something a `<span>` you have to remember to mark `aria-hidden`
|
|
313
313
|
cannot guarantee.
|
|
@@ -517,7 +517,8 @@ Input-styled trigger + calendar popover. Needs `freeday-datepicker.js`. **Author
|
|
|
517
517
|
get `data-role="from"` / `"to"`; separator `.fdy-daterange__sep`. The end can't precede the start.
|
|
518
518
|
**Typed wrapper: `<FdyDateRange>`** (Vue/React/Blazor) — use it in those stacks.
|
|
519
519
|
**Getting to a distant month.** The title is a **button**: press it and the day grid becomes a
|
|
520
|
-
12-cell month grid for the current year, where the
|
|
520
|
+
12-cell month grid (`.fdy-cal__grid--months` of `.fdy-cal__month`) for the current year, where the
|
|
521
|
+
arrows step **years** instead of months. Pick a
|
|
521
522
|
month and you are back on days — choosing a month is navigation, so nothing is committed until a day
|
|
522
523
|
is selected. From August 2026 to March 2022 that is 7 clicks; walking month by month is 53.
|
|
523
524
|
|
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/v1.32.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/v1.32.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/docs/agent-onboarding.md
CHANGED
|
@@ -91,6 +91,7 @@ Blazor). Then verify the agent can actually read those files — an agent that c
|
|
|
91
91
|
| `docs/integrations.md` | How to bridge third-party libraries (validation, charts, dates, i18n…). |
|
|
92
92
|
| `docs/reference-screen.html` | A full screen assembled from the shell down. Open it in a browser. |
|
|
93
93
|
| `docs/agent-onboarding.md` | This file. |
|
|
94
|
+
| `CHANGELOG.md` | **What changed between the version this project had and the one it has now** — read it after every upgrade; each entry says what broke, what is new, and why. |
|
|
94
95
|
| `dist/` | Built CSS + enhancers. **`freeday.bundle.css` = tokens + components** (what `@cahyo-dimas/freeday/css` resolves to); `freeday.css` is components **only**, `freeday.tokens.css` tokens only — linking `freeday.css` alone leaves every `var(--…)` unresolved. Plus `freeday-*.js` and the `.d.ts` files. |
|
|
95
96
|
| `src/components/*.css` | The authoritative source for every class, when a doc is ambiguous. |
|
|
96
97
|
| `tokens/tokens.json` | Every token in W3C DTCG format — machine-readable. |
|
|
@@ -101,6 +102,28 @@ The live docs (with an interactive playground) are at
|
|
|
101
102
|
apps under `examples/` (Vue, React, Blazor) that are **not** in the npm tarball — is at
|
|
102
103
|
<https://github.com/cahyo-dimas/freeday-ui-kit>.
|
|
103
104
|
|
|
105
|
+
### After an upgrade, read the changelog first
|
|
106
|
+
|
|
107
|
+
`npm i @cahyo-dimas/freeday@latest` does not tell you what you gained. Read
|
|
108
|
+
`node_modules/@cahyo-dimas/freeday/CHANGELOG.md` down to the version this project was on before —
|
|
109
|
+
it is written for exactly this moment, and it is the difference between adopting a new affordance
|
|
110
|
+
and re-implementing it locally.
|
|
111
|
+
|
|
112
|
+
Recent additions most likely to replace something an app hand-rolled (all detailed in
|
|
113
|
+
`COMPONENTS.md`):
|
|
114
|
+
|
|
115
|
+
| Reach for | Instead of |
|
|
116
|
+
|---|---|
|
|
117
|
+
| `.fdy-btn--stretch` | a hand-rolled overlay to make a card or list row clickable |
|
|
118
|
+
| `[data-fdy-number]` | a bare `<input type="number">` with the browser's own spin buttons |
|
|
119
|
+
| `clearable` on `FdyCfl` / `FdyDatepicker` | a value that can be set but never unset |
|
|
120
|
+
| `row.waiting(label)` on an upload row | a second status line saying the server is still working |
|
|
121
|
+
| `.fdy-label--required` | a `<span>` asterisk you have to remember to `aria-hidden` |
|
|
122
|
+
| `.fdy-text-warning` / `-danger` / `-success` | a caption class on a line that should stand out |
|
|
123
|
+
| `.fdy-icon` | your own `width:1em;height:1em` rule, once per project |
|
|
124
|
+
| `data-density="comfortable"` | restating the default spacing tokens on a wrapper |
|
|
125
|
+
| the calendar's month grid (press the title) | clicking "previous month" thirty times |
|
|
126
|
+
|
|
104
127
|
## 3. Starting a new screen
|
|
105
128
|
|
|
106
129
|
The order matters; skipping to components is what produces flat, identical-card screens.
|
package/docs/getting-started.md
CHANGED
|
@@ -184,7 +184,7 @@ live docs also have a copy button per component.
|
|
|
184
184
|
```bash
|
|
185
185
|
npm i @cahyo-dimas/freeday
|
|
186
186
|
```
|
|
187
|
-
Lands in `package.json` as `"@cahyo-dimas/freeday": "^1.32.
|
|
187
|
+
Lands in `package.json` as `"@cahyo-dimas/freeday": "^1.32.1"` (public npm package). `dist/` is
|
|
188
188
|
committed and published → no build step; `npm ci` runs without auth.
|
|
189
189
|
|
|
190
190
|
### 2. Import the CSS + enhancers **once** in your entry (`src/main.ts`)
|