@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.
- package/CHANGELOG.md +127 -0
- package/COMPONENTS.md +278 -12
- package/README.id.md +9 -5
- package/README.md +9 -5
- package/adapters/blazor/FdyDateRange.razor.cs +10 -0
- package/adapters/blazor/FdyTable.razor +6 -2
- package/adapters/blazor/FdyTable.razor.cs +21 -0
- package/adapters/blazor/TableTypes.cs +4 -0
- package/adapters/react/components/FdyDateRange.tsx +8 -2
- package/adapters/react/components/FdyTable.tsx +24 -3
- package/adapters/react/index.d.ts +1 -1
- package/adapters/vue/components/FdyDateRange.vue +11 -5
- package/adapters/vue/components/FdyTable.vue +18 -2
- package/dist/freeday-confirm.js +101 -0
- package/dist/freeday-copy.js +58 -0
- package/dist/freeday-datepicker.js +17 -2
- package/dist/freeday-form.js +30 -1
- package/dist/freeday-search.js +77 -0
- package/dist/freeday.bundle.css +98 -8
- package/dist/freeday.css +98 -8
- package/dist/freeday.d.ts +17 -2
- package/dist/freeday.js +286 -3
- package/dist/freeday.media.css +27 -0
- package/docs/agent-onboarding.md +10 -0
- package/docs/getting-started.md +1 -1
- package/package.json +6 -2
- package/src/components/avatar.css +2 -0
- package/src/components/breakpoints.css +7 -1
- package/src/components/card.css +7 -0
- package/src/components/composition.css +36 -0
- package/src/components/description-list.css +11 -1
- package/src/components/filterbar.css +8 -1
- package/src/components/selection.css +6 -0
- package/src/components/states.css +7 -0
- package/src/components/table.css +14 -5
- package/tokens/breakpoints.d.ts +4 -0
- package/tokens/breakpoints.mjs +22 -8
package/tokens/breakpoints.mjs
CHANGED
|
@@ -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`
|
|
6
|
-
//
|
|
7
|
-
//
|
|
8
|
-
//
|
|
9
|
-
//
|
|
10
|
-
//
|
|
11
|
-
|
|
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 };
|