@cahyo-dimas/freeday 3.4.0 → 3.6.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.
Files changed (37) hide show
  1. package/CHANGELOG.md +127 -0
  2. package/COMPONENTS.md +278 -12
  3. package/README.id.md +9 -5
  4. package/README.md +9 -5
  5. package/adapters/blazor/FdyDateRange.razor.cs +10 -0
  6. package/adapters/blazor/FdyTable.razor +6 -2
  7. package/adapters/blazor/FdyTable.razor.cs +21 -0
  8. package/adapters/blazor/TableTypes.cs +4 -0
  9. package/adapters/react/components/FdyDateRange.tsx +8 -2
  10. package/adapters/react/components/FdyTable.tsx +24 -3
  11. package/adapters/react/index.d.ts +1 -1
  12. package/adapters/vue/components/FdyDateRange.vue +11 -5
  13. package/adapters/vue/components/FdyTable.vue +18 -2
  14. package/dist/freeday-confirm.js +101 -0
  15. package/dist/freeday-copy.js +58 -0
  16. package/dist/freeday-datepicker.js +17 -2
  17. package/dist/freeday-form.js +30 -1
  18. package/dist/freeday-search.js +77 -0
  19. package/dist/freeday.bundle.css +98 -8
  20. package/dist/freeday.css +98 -8
  21. package/dist/freeday.d.ts +17 -2
  22. package/dist/freeday.js +286 -3
  23. package/dist/freeday.media.css +27 -0
  24. package/docs/agent-onboarding.md +10 -0
  25. package/docs/getting-started.md +1 -1
  26. package/package.json +6 -2
  27. package/src/components/avatar.css +2 -0
  28. package/src/components/breakpoints.css +7 -1
  29. package/src/components/card.css +7 -0
  30. package/src/components/composition.css +36 -0
  31. package/src/components/description-list.css +11 -1
  32. package/src/components/filterbar.css +8 -1
  33. package/src/components/selection.css +6 -0
  34. package/src/components/states.css +7 -0
  35. package/src/components/table.css +14 -5
  36. package/tokens/breakpoints.d.ts +4 -0
  37. package/tokens/breakpoints.mjs +22 -8
@@ -1,11 +1,25 @@
1
1
  // Freeday breakpoint scale in px, mirrors src/components/breakpoints.css utilities
2
2
  // (sm/md/lg/xl). CSS @media can't read custom properties, so this is the JS-side
3
- // source of the scale for matchMedia / app @media alignment.
3
+ // source of the scale for matchMedia / app @media alignment. The CSS-side answer to the
4
+ // same problem is dist/freeday.media.css (`@cahyo-dimas/freeday/media`), a @custom-media
5
+ // sheet GENERATED from this object, so the two halves cannot disagree.
4
6
  //
5
- // `nav` is not part of the sm/md/lg/xl ramp: it is the width at which .fdy-app switches the
6
- // sidebar from an off-canvas drawer (below) to a static column (at and above), hard-wired in
7
- // src/components/app-shell.css. Anything that has to agree with the shell, a matchMedia guard
8
- // deciding whether the nav toggle sets --nav-open or --nav-collapsed, a utility-framework
9
- // variant, must use THIS number, not md. Aligning such code to md (960) leaves 721–959px
10
- // broken: the sidebar is already static while the script still thinks it is an overlay.
11
- export const breakpoints = { nav: 721, sm: 600, md: 960, lg: 1280, xl: 1920 };
7
+ // `nav` and `filterbar` are not part of the sm/md/lg/xl ramp. Each mirrors one hard-wired rule in
8
+ // the kit, and each must be used INSTEAD of the nearest ramp step — that is the whole reason they
9
+ // are named here rather than left to be discovered by reading the stylesheet.
10
+ //
11
+ // `nav` is the width at which .fdy-app switches the sidebar from an off-canvas drawer (below) to a
12
+ // static column (at and above), hard-wired in src/components/app-shell.css. Anything that has to
13
+ // agree with the shell, a matchMedia guard deciding whether the nav toggle sets --nav-open or
14
+ // --nav-collapsed, a utility-framework variant, must use THIS number, not md. Aligning such code to
15
+ // md (960) leaves 721–959px broken: the sidebar is already static while the script still thinks it
16
+ // is an overlay.
17
+ //
18
+ // `filterbar` is the width at which .fdy-filterbar stacks every field full-width, hard-wired in
19
+ // src/components/filterbar.css. It is deliberately not sm: 640 is a real phone-landscape width and
20
+ // moving it would reflow every filter bar in every consuming app. An app rule that has to fire in
21
+ // lockstep with the stack — releasing a growing field's max-width, say — must use THIS number.
22
+ // Aligning it to sm (600) leaves 600–640px broken: the kit has already stacked the fields while the
23
+ // app still caps one of them, so it sits visibly narrower than the fields under it. Raised from
24
+ // IDU_AI_DOC_SAPB1_CLIENT and IDU_AI_DOC_SAAS (#058 §1).
25
+ export const breakpoints = { nav: 721, filterbar: 640, sm: 600, md: 960, lg: 1280, xl: 1920 };