Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* [sparkle] - feature: add tooltip and slot functionality to UI components - New dependencies on `@radix-ui/react-slot` and `@radix-ui/react-tooltip` have been introduced for enhanced UI component behavior - Removed the `dev: true` flag from `@floating-ui/*` dependencies indicating a move from dev-only to production usage - The `@floating-ui/utils` dependency integrity hash remains unchanged; indicating no version change, but a probable classification change in usage * [sparkle] - refactor: replace custom tooltip implementation with @radix-ui/react-tooltip - Removed the entire custom tooltip logic to leverage the functionality from @radix-ui/react-tooltip package - Simplified tooltip related components by using primitives from the external library, ensuring a more standard and maintainable approach - Updated the `Tooltip.stories.tsx` to reflect changes in the tooltip implementation and usage with the new library components * [sparkle] - refactor: update Breadcrumb component Tooltip usage - Replace old Tooltip component with new TooltipContent, TooltipProvider, TooltipRoot, and TooltipTrigger components - Improve the modularity and flexibility of tooltip implementation in Breadcrumbs component * [sparkle] - refactor: update tooltip implementation for Buttons - Replaced custom Tooltip component with TooltipProvider, TooltipRoot, and TooltipTrigger from Radix UI - Updated Button component to use new tooltipPosition values from SIDE_OPTIONS - Modified stories to reflect changes in tooltipPosition's accepted values * [sparkle/src/components] - refactor: update Tooltip implementation for Citation component - Changed the Tooltip usage to the newer component structure with TooltipProvider, TooltipRoot, TooltipTrigger, and TooltipContent. - Ensured the title is displayed on the 'top' side within the TooltipContent when hovering over the Citation component's card button. * [sparkle] - refactor: update DataTable tooltip implementation - Replaced the single-component Tooltip import with multi-part Tooltip components for enhanced flexibility and control - Wrapped the Avatar within CellContent with the new TooltipProvider, TooltipRoot, TooltipTrigger, and TooltipContent components for better tooltip management and positioning * [sparkle] - refactor: update Tooltip implementation in DropdownMenu - Replaced the old Tooltip with the new TooltipProvider, TooltipRoot, TooltipTrigger, and TooltipContent components - Updated tooltip positioning to use new SIDE_OPTIONS from @radix-ui/react-popper - Changed default tooltip positions to follow the new 'top' and 'bottom' convention instead of 'above' and 'below' * [sparkle/components] - fix: standardize tooltip position property value - Change `tooltipPosition` prop from "below" to "bottom" for consistency across components - Update imports and whitespace formatting for improved code readability and style conformity [sparkle/components] - refactor: enhance tooltip related components structure - Group tooltip imports together for cleanliness and easier management - Implement consistent tooltip content wrapping across different components [sparkle] - style: consistent end-of-file newlines and minor formatting - Ensure all modified files have a newline at the end of the file for POSIX compliance - Adjust multiline JSX properties formatting for better readability [sparkle/stories] - style: update storybook examples to match codebase practices - Format multiline props and function parameters in Storybook files for clarity - Correct minor issues like missing semicolons to follow project's coding standards * [sparkle] - fix: standardize tooltip position for IconButton stories - Changed tooltipPosition value from "below" to "bottom" to unify the positioning across various IconButton story variants * [sparkle] - refactor: remove unused Tooltip import from Tab component - Clean up code by removing the Tooltip import which is no longer used after refactoring the Tooltip component * [sparkle] - fix: remove redundant tooltip from Tab component - Eliminate duplicate tooltip to prevent overlapping UI elements in tabs * [sparkle] - refactor: reorganize Tooltip imports in DataTable component - Move Tooltip related imports to be grouped together at the top of the import list [types] - fix: add missing semicolon in prettifyGroupName function - Ensure coding style consistency by adding a semicolon at the end of the return statement * [sparkle] - fix: ensure tooltip background is consistently white - Added `s-bg-white` class to enforce a white background on the tooltip component for better visibility * [sparkle] - feature: allow sending children elements to ElementDialog - Added `children` prop to `ElementDialog` to enable passing child components into the dialog [sparkle] - refactor: update Dialog stories with new `validateVariant` props - Changed `validateVariant` prop from `primaryWarning` to `warning` in one of the Dialog stories - Added `validateVariant` props with values `primary`, `outline`, `ghost`, and `highlight` to other Dialog stories to represent different button styles * [sparkle] - refactor: improve Button component variant typing - Change the variant prop type in Button component to a union type for better scalability and type safety - Create a constant array of button variants and derive the ButtonVariantType from it [sparkle] - fix: correct content in Citation component tooltip - Replace title with description in the tooltip content of the Citation component for accurate data display [sparkle] - refactor: update Dialog component's validateVariant prop type - Align the type of validateVariant prop in Dialog component with the new ButtonVariantType [sparkle] - feature: add TooltipPortal export to Tooltip components - Expose TooltipPortal from TooltipPrimitive to enable portal functionality in Tooltip component [sparkle] - docs: extend description in Citation component examples - Update the description in Citation.stories.tsx to include a more extended example text [sparkle] - style: enhance DataTable content readability - Wrap DataTable cell content with CellContentWithCopy component for better readability and consistency [sparkle] - fix: correct validateVariant prop in Dialog stories - Fix validateVariant prop in Dialog stories to use correct values from BUTTON_VARIANT array [sparkle] - refactor: remove outdated validateVariant props in Dialog stories - Remove unused or outdated validateVariant props from Dialog stories examples to match current component API * [sparkle] - feature: add TooltipPortal export to component library - Tooltip functionality extended to support portal usage in the component library. * fix: lint/format * [sparkle] - fix: standardize tooltip positioning and content - Remove fixed side for tooltip content to allow default positioning - Replace description with title in tooltip display for citation component * [sparkle] - refactor: Remove default tooltipPosition from Button components - The `tooltipPosition` prop is no longer passed with a default value of "bottom" to Button components in BarHeader.tsx - `tooltipPosition` default assignment removed from Button.tsx, making it an explicitly required prop - `TooltipPortal` component removed as it is no longer used in the Tooltip system * [sparkle] - feature: implement a new Tooltip component - Extended TooltipPrimitive with a custom TooltipContentProps interface - Created a Tooltip component that uses the new TooltipContentProps interface - Exposed the new Tooltip component for external access - Updated stories to include examples of the new Tooltip component - Cleaned up Tooltip-related exports in the component index file * [sparkle/components] - refactor: streamline tooltip usage across components - Centralize tooltip implementation by replacing previous granular tooltip components with a unified `Tooltip` component - Simplify the codebase and improve maintainability by removing redundant tooltip wrapper elements across multiple files * [sparkle] - fix: remove asChild prop from TooltipTrigger component - Ensure that TooltipTrigger does not receive the asChild prop for consistency and possible bug avoidance [sparkle] - feature: add ButtonWithTooltip component story examples - Provide a story example showing how to manually instantiate a tooltip with a button trigger - Add a story demonstrating the usage of the Tooltip component with a Button as its trigger * fix: lint/format * [sparkle] - refactor: standardize tooltip position prop and improve ellipsis presentation - Replace hardcoded ellipsis string with a constant for consistency in `Breadcrumbs` - Utilize `Tooltip` component prop type for tooltip position across several components - Remove unused import `SIDE_OPTIONS` from multiple files to clean up the codebase - Enhance Button stories with proper TooltipProvider wrapping and formatting * [sparkle] - feature: bump package version to 0.2.255 - Update the package version in both package-lock.json and package.json for release --------- Co-authored-by: Jules <[email protected]> Co-authored-by: Jules <[email protected]>
- Loading branch information