✨ Add Font Effects category with Variable Font Cursor component and p… #75
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request introduces a new "Font Effects" category to the UI components, along with several related components and hooks. The most important changes include the addition of the new category, updates to the
useMouse
hook to support container references, and the implementation of theVariableFontCursorProximity
component.Additions to UI Components:
packages/ui/cuicui/other/font-effects/category.ts
: Added the "Font Effects" category with metadata including name, description, latest update date, and icon.packages/ui/cuicui/other/font-effects/preview.tsx
: Implemented a preview component for the "Font Effects" category.packages/ui/cuicui/other/font-effects/variable-font-cursor/component.ts
: Added the "Variable Font Cursor" component with metadata.packages/ui/cuicui/other/font-effects/variable-font-cursor/variable-font-cursor.variant.tsx
: Created a variant for the "Variable Font Cursor" component.packages/ui/cuicui/other/font-effects/variable-font-cursor/variable-font-proximity.tsx
: Implemented theVariableFontCursorProximity
component to handle font size changes based on cursor position.Updates to Existing Files:
packages/ui/categories-previews-list.ts
: Added the "Font Effects" preview to the categories previews list. [1] [2]packages/ui/section-list.ts
: Included the new "Font Effects" category and its components in the section list. [1] [2] [3] [4]Enhancements to Hooks:
packages/ui/cuicui/hooks/use-mouse/index.ts
: Updated theuseMouse
hook to accept an optional container reference, enabling more precise mouse position tracking within a specified container. [1] [2] [3]