@codefast/ui 0.5.0-canary.8 → 0.5.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 +59 -0
- package/package.json +10 -16
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,64 @@
|
|
|
1
1
|
# @codefast/ui
|
|
2
2
|
|
|
3
|
+
## 0.5.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#552](https://github.com/codefastlabs/codefast/pull/552) [`78bf5a4`](https://github.com/codefastlabs/codefast/commit/78bf5a494de8276f5eeb262bc5dc45c882bb63f7) Thanks [@thevuong](https://github.com/thevuong)! - Refine two surfaces for a more consistent container language:
|
|
8
|
+
|
|
9
|
+
- `CardFooter` is now a distinct tinted tray by default (`border-t bg-muted/50` with full `--card-spacing` padding). `Card` drops its bottom padding when a footer is present (`has-data-[slot=card-footer]:pb-0`) so the tint reaches the card's bottom edge. Footers that previously relied on the transparent, opt-in-border behavior will now render with a background and top border.
|
|
10
|
+
- `Empty` uses `rounded-xl` instead of `rounded-lg`, matching `Card`'s corner radius for a consistent container language.
|
|
11
|
+
|
|
12
|
+
- [#552](https://github.com/codefastlabs/codefast/pull/552) [`e7839f2`](https://github.com/codefastlabs/codefast/commit/e7839f2d49da7b3af805aafcb6863a32e18e9563) Thanks [@thevuong](https://github.com/thevuong)! - Add chat surface components: `Attachment` (file/media card with upload states, three sizes, and horizontal/vertical orientations), `Bubble` (message bubble with seven variants, alignment, and reaction pills), `Message` (avatar + content row with start/end alignment), and `Marker` (inline feed divider). Each ships per-component and `./variants/*` subpath exports, stories, and unit tests.
|
|
13
|
+
|
|
14
|
+
Also adds `scroll-fade-*` (scroll-aware, RTL-mirrored edge fades) and `shimmer` (text loading shimmer) utilities to the foundation preset, used by these components and available on any scroller.
|
|
15
|
+
|
|
16
|
+
- [#552](https://github.com/codefastlabs/codefast/pull/552) [`5e74e3e`](https://github.com/codefastlabs/codefast/commit/5e74e3e426a10d26f86a053a15acf971dc0115dc) Thanks [@thevuong](https://github.com/thevuong)! - Add `MessageScroller`, a headless-driven scroll manager for chat transcripts: follow-the-bottom autoscroll, scroll preservation on prepend, anchored streaming turns, `defaultScrollPosition`, and a self-hiding scroll-to-edge button. Ships the styled component (`@codefast/ui/message-scroller`), the headless primitive (`@codefast/ui/primitives/message-scroller`), and the `useMessageScroller`, `useMessageScrollerScrollable`, and `useMessageScrollerVisibility` hooks.
|
|
17
|
+
|
|
18
|
+
The scroll engine (geometry, stores, and controller hooks) is vendored from an external message-scroller implementation into `@codefast/ui` internals and adapted to codefast conventions, so it carries no extra runtime dependency. Adds an internal `useRender` utility that backs the primitives' `render` prop.
|
|
19
|
+
|
|
20
|
+
- [`ca47aff`](https://github.com/codefastlabs/codefast/commit/ca47aff20ebb5ac9e4c3db759da31102ff9d5f84) Thanks [@thevuong](https://github.com/thevuong)! - Rename four APIs whose names misstated their role (Swift API Design Guidelines pass).
|
|
21
|
+
|
|
22
|
+
**Breaking:**
|
|
23
|
+
|
|
24
|
+
- `ProgressCircle`: `animate` → `animated` (a boolean should read as an assertion, not a bare verb) and `customLabel` → `renderLabel` (the prop holds a render function, not a label value; "custom" was filler). `useAnimatedValue`'s third parameter follows suit.
|
|
25
|
+
- `MessageScrollerItem`: `scrollAnchor` → `isScrollAnchor` (assertion form, matching the existing `isActive` convention). The emitted `data-scroll-anchor` attribute is unchanged.
|
|
26
|
+
- `UsePaginationProps` → `UsePaginationOptions` — a hook takes options, not component props.
|
|
27
|
+
|
|
28
|
+
- [#552](https://github.com/codefastlabs/codefast/pull/552) [`feb5639`](https://github.com/codefastlabs/codefast/commit/feb5639ea4443b8c1c90e638e3f9d12e6a32b14e) Thanks [@thevuong](https://github.com/thevuong)! - Complete RTL hardening across the component library, closing the last physical-direction gaps and making the carousel direction-aware.
|
|
29
|
+
|
|
30
|
+
- `AvatarGroup` now flips its overlap in RTL (`rtl:space-x-reverse`).
|
|
31
|
+
- `SidebarRail`'s off-canvas drag line mirrors correctly (`after:start-full`).
|
|
32
|
+
- **`Carousel` is now direction-aware:** it forwards the resolved reading direction to Embla (so drag/snap physics mirror in RTL) and swaps the arrow-key mapping (in RTL the **Left** arrow advances, **Right** retreats). An explicit `opts.direction` still wins. This is a behavior change for RTL consumers who relied on the previous physical arrow-key mapping.
|
|
33
|
+
|
|
34
|
+
Also adds an internal `audit:rtl` script and a Direction (LTR/RTL) Storybook toolbar to keep physical-direction utilities from regressing.
|
|
35
|
+
|
|
36
|
+
### Patch Changes
|
|
37
|
+
|
|
38
|
+
- [#676](https://github.com/codefastlabs/codefast/pull/676) [`641e233`](https://github.com/codefastlabs/codefast/commit/641e2338d77fb61be2ca585a5986f34cf32ec746) Thanks [@thevuong](https://github.com/thevuong)! - Collapse the `types` and `default` lanes of `package.json#imports` from fallback arrays to single strings.
|
|
39
|
+
|
|
40
|
+
Node resolves an imports array by taking the first candidate it can parse, without checking that the file exists and without falling through — a specifier whose first candidate is missing throws `ERR_MODULE_NOT_FOUND` rather than trying the second. `./dist/*/index.js` and `./dist/*/index.d.ts` could therefore never be reached, so they read as a safety net that does not exist. The `source` lane keeps its extension candidates, which only `tsc` and Vite read and both probe.
|
|
41
|
+
|
|
42
|
+
- [`3e1050b`](https://github.com/codefastlabs/codefast/commit/3e1050b4e51e8eefd5fce9a979e78acce09a0683) Thanks [@thevuong](https://github.com/thevuong)! - Remove the dead `separator` prop from the `Breadcrumb` root — it was never consumed (a vestige of the old upstream shape) and only leaked onto the `<nav>` element as an invalid DOM attribute. Custom separators keep working the supported way: pass children to `<BreadcrumbSeparator>`.
|
|
43
|
+
|
|
44
|
+
- [#632](https://github.com/codefastlabs/codefast/pull/632) [`44035ca`](https://github.com/codefastlabs/codefast/commit/44035ca29c99f7e9d9a760f758496965253b650a) Thanks [@thevuong](https://github.com/thevuong)! - Annotate `CheckboxGroupItem`'s `onCheckedChange` callback with a `CheckedState` type derived from the underlying Radix primitive. Radix's `radix-ui` umbrella namespace merge dropped the contextual type for the inline callback parameter, tripping `noImplicitAny` during the build; deriving the type from `Root` keeps it in lockstep with the primitive.
|
|
45
|
+
|
|
46
|
+
- [#552](https://github.com/codefastlabs/codefast/pull/552) [`04c82de`](https://github.com/codefastlabs/codefast/commit/04c82ded0a01a6a12a4dd66cd35d5635718ba699) Thanks [@thevuong](https://github.com/thevuong)! - Fix a hydration mismatch in `SidebarMenuSkeleton`: its placeholder width was derived from `Math.random()`, which produced different values on the server and client. It now derives a stable, varied width (50–90%) from `useId`, so server and client render the same markup.
|
|
47
|
+
|
|
48
|
+
- Updated dependencies [[`641e233`](https://github.com/codefastlabs/codefast/commit/641e2338d77fb61be2ca585a5986f34cf32ec746)]:
|
|
49
|
+
- @codefast/tailwind-variants@0.5.0
|
|
50
|
+
|
|
51
|
+
## 0.5.0-canary.9
|
|
52
|
+
|
|
53
|
+
### Patch Changes
|
|
54
|
+
|
|
55
|
+
- [#676](https://github.com/codefastlabs/codefast/pull/676) [`641e233`](https://github.com/codefastlabs/codefast/commit/641e2338d77fb61be2ca585a5986f34cf32ec746) Thanks [@thevuong](https://github.com/thevuong)! - Collapse the `types` and `default` lanes of `package.json#imports` from fallback arrays to single strings.
|
|
56
|
+
|
|
57
|
+
Node resolves an imports array by taking the first candidate it can parse, without checking that the file exists and without falling through — a specifier whose first candidate is missing throws `ERR_MODULE_NOT_FOUND` rather than trying the second. `./dist/*/index.js` and `./dist/*/index.d.ts` could therefore never be reached, so they read as a safety net that does not exist. The `source` lane keeps its extension candidates, which only `tsc` and Vite read and both probe.
|
|
58
|
+
|
|
59
|
+
- Updated dependencies [[`641e233`](https://github.com/codefastlabs/codefast/commit/641e2338d77fb61be2ca585a5986f34cf32ec746)]:
|
|
60
|
+
- @codefast/tailwind-variants@0.5.0-canary.9
|
|
61
|
+
|
|
3
62
|
## 0.5.0-canary.8
|
|
4
63
|
|
|
5
64
|
### Patch Changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codefast/ui",
|
|
3
|
-
"version": "0.5.0
|
|
3
|
+
"version": "0.5.0",
|
|
4
4
|
"description": "Core UI components library built with React and Tailwind CSS",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"components",
|
|
@@ -54,14 +54,8 @@
|
|
|
54
54
|
"./src/*/index.ts",
|
|
55
55
|
"./src/*/index.tsx"
|
|
56
56
|
],
|
|
57
|
-
"types":
|
|
58
|
-
|
|
59
|
-
"./dist/*/index.d.ts"
|
|
60
|
-
],
|
|
61
|
-
"default": [
|
|
62
|
-
"./dist/*.js",
|
|
63
|
-
"./dist/*/index.js"
|
|
64
|
-
]
|
|
57
|
+
"types": "./dist/*.d.ts",
|
|
58
|
+
"default": "./dist/*.js"
|
|
65
59
|
}
|
|
66
60
|
},
|
|
67
61
|
"exports": {
|
|
@@ -616,7 +610,7 @@
|
|
|
616
610
|
"cmdk": "^1.1.1",
|
|
617
611
|
"embla-carousel-react": "^8.6.0",
|
|
618
612
|
"input-otp": "^1.4.2",
|
|
619
|
-
"lucide-react": "^1.
|
|
613
|
+
"lucide-react": "^1.28.0",
|
|
620
614
|
"next-themes": "^0.4.6",
|
|
621
615
|
"radix-ui": "^1.6.7",
|
|
622
616
|
"react-hook-form": "^7.83.0",
|
|
@@ -625,7 +619,7 @@
|
|
|
625
619
|
"sonner": "^2.0.7",
|
|
626
620
|
"tw-animate-css": "^1.4.0",
|
|
627
621
|
"vaul": "^1.1.2",
|
|
628
|
-
"@codefast/tailwind-variants": "0.5.0
|
|
622
|
+
"@codefast/tailwind-variants": "0.5.0"
|
|
629
623
|
},
|
|
630
624
|
"devDependencies": {
|
|
631
625
|
"@tailwindcss/postcss": "^4.3.3",
|
|
@@ -634,16 +628,16 @@
|
|
|
634
628
|
"@testing-library/react": "^16.3.2",
|
|
635
629
|
"@testing-library/user-event": "^14.6.1",
|
|
636
630
|
"@types/jest-axe": "^3.5.9",
|
|
637
|
-
"@types/node": "^26.1.
|
|
638
|
-
"@vitejs/plugin-react": "^6.0.
|
|
631
|
+
"@types/node": "^26.1.2",
|
|
632
|
+
"@vitejs/plugin-react": "^6.0.5",
|
|
639
633
|
"@vitest/coverage-v8": "^4.1.10",
|
|
640
634
|
"jest-axe": "^11.0.0",
|
|
641
|
-
"jsdom": "^
|
|
642
|
-
"postcss": "^8.5.
|
|
635
|
+
"jsdom": "^30.0.1",
|
|
636
|
+
"postcss": "^8.5.25",
|
|
643
637
|
"tailwindcss": "^4.3.3",
|
|
644
638
|
"typescript": "^7.0.2",
|
|
645
639
|
"vitest": "^4.1.10",
|
|
646
|
-
"@codefast/typescript-config": "0.5.0
|
|
640
|
+
"@codefast/typescript-config": "0.5.0"
|
|
647
641
|
},
|
|
648
642
|
"peerDependencies": {
|
|
649
643
|
"@types/react": ">=19.0.0",
|