Skip to content

Commit

Permalink
[sparkle] - enh: Popover component (#7944)
Browse files Browse the repository at this point in the history
* [sparkle] - feature: add radix-ui popover component integration

 - Integrated `@radix-ui/react-popover` library to enable popover functionality within components
 - Created a new Popover component and its stories for Storybook to showcase usage
 - Updated package dependencies to include new popover component libraries and peers
 - Enhanced tailwind configuration to support styling for the new Popover component

[sparkle] - refactor: update package dependencies order

 - Reorganized package dependencies for consistency and readability

[sparkle] - devops: adjust package-lock.json integrity and dependencies

 - Updated package-lock.json file to reflect the new and changed dependencies ensuring correct version locking
 - Removed `dev` flags from dependencies that are now main dependencies due to the integration of the Popover component

* [sparkle] - refactor: use nullish coalescing operator in Popover component

 - Replace the ternary operation with nullish coalescing to streamline assigning `className` prop

* [sparkle] - refactor: update title namespace for Popover stories

 - Change the namespace from "NewPrimitives" to "Primitives" for consistency and clarity in story organization

* [sparkle] - refactor: update Popover component styles and stories

 - Consolidate styles with 's-' prefixed utility classes in Popover and stories
 - Increase flexibility of Popover by changing from fixed width to growth with content
 - Introduce EmojiPicker within Popover through a new story example
 - Reorder imports in Popover stories for consistency
 - Adjust package-lock.json to correct order of dependencies without version changes

* [sparkle] - feature: add fullWidth option to Popover component

 - Introduce a fullWidth prop to the PopoverContent component allowing it to span the full width of the trigger
 - Adapt Popover stories to include an example with the fullWidth prop set to true

* [sparkle] - feature: bump package version to 0.2.260

 - Update package version in package-lock.json and package.json for a new release

* [sparkle] - refactor: update Popover component styling logic for width

 - Removed conditional 's-grow' class application to standardize popover width handling
 - Set a fixed width and padding for non-fullWidth popovers for better consistency in appearance

* [sparkle] - feature: bump version to 0.2.261

 - Update the package and lockfile to reflect the new release version
 - Ensure consistent versioning across package metadata files

* fix package lock

* [sparkle] - refactor: standardize utility function usage in Popover component

 - Replace classNames utility with cn for consistency within the component
 - Update Popover stories to adhere to proper syntax by adding semicolons

* fix: lint/format

---------

Co-authored-by: Jules <[email protected]>
Co-authored-by: Jules <[email protected]>
  • Loading branch information
3 people authored Oct 9, 2024
1 parent 4da626e commit 1e72925
Show file tree
Hide file tree
Showing 6 changed files with 572 additions and 4 deletions.
Loading

0 comments on commit 1e72925

Please sign in to comment.