-
-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a new
@studiocms/ui
package (#296)
* Initial commit for `@studiocms/ui` * Add new components & UI playground - Adjust button, divider, input styles - Added "Center" component, UI playground - Moved all CSS files into a global CSS file with imports - Added the font to the playground & UI library * Add .editorconfig, update biome.json * Add textboxes & checkboxes, ID gen function & more - Added the utils folder to the package's exports - Format the TODO's in the README - Buttons can now be disabled - Added a textarea component - Added a checkbox component - Added a function to generate random names & IDs if not provided - Added a default gap size to the row component - Added an icon component to easily grab icons in a type-safe manner - Added new components to playground * Linted files & added completed components to readme * Add cards, radio inputs, toggles, toasts, warning color - Added a new Card component. - Added a radio group component. - Added a toggle component. - Added a Toaster component and a toast function to create toasts. - Added a new "warning" colorway to all components that support colored variants. * Add modals, new button variant, change CSS vars - Added a Modal component. - Added a new, "flat" button variant. - All color variables now come in hsl format and need to be wrapped in hsl(). This allows for easier opacity management - Some fixes in regards to textarea sizing on small devices * Forgot to fucking lint again 💀 Windows decided now would be a good idea to change 190 files on it's own so yeah * Add a select component, fix various bugs - Added a new select component. - Some changes to input & textarea transitions - Modals now show overflow to allow for selects to be used - Fixed radio inputs not actually being disabled * Add dropdown & user components - Added a dropdown component. - Added a user component. - Moved all colorways into a shared type. - Removed the transparent backgrounds from select elements for better visibility. - Adjusted the shadows for select dropdowns & toasts. * Can windows please stop formatting my files in fucked up ways I swear to god * Add sidebar, double sidebar, root layout component - Added new sidebar & double sidebar components. - Added a new RootLayout component. * Add right click trigger to dropdowns - Added right click (and both mouse buttons) triggers to dropdowns - Added option to register buttons for opening and closing single sidebar individually * Update package.json * Update DropdownTests.astro * Lint 💀 * Update & dedupe packages * Update package.json * update deployment action * Update package.json * Update package.json * Add changeset * Update README.md * Add is:global to styles to eliminate race condition - Added is:global to all component css style tags because css is being a cascading bitch * Remove experimental directRenderScript * Fix dropdown options not filling parent element * Adjust modal and dropdown paddings * Changes to folder structure & accessibility fixes - Moved all components into their own folders and moved all CSS to CSS files. This should help eliminate the race condition pointed out by @hkbertoson in #296 . - All buttons *should* now follow the web accessibility guidelines for colors and should pass WCAG Level AAA. * Add pseudo-docs to README, option to disable radios - Wrote pseudo-docs for the README file of the UI library. - It's now possible to pass a class to the User component's container. - Radio options can not be disabled individually. - Improved the helper for the single sidebar a bit. * Change icons for dropdowns to slots * Update README.md * Update README.md * Update Modal.css - Fixed the modal backdrop animation taking a whole second to complete * Improve double sidebar helper API * Update packages/studiocms_ui/README.md Co-authored-by: Adam Matthiesen <[email protected]> * Fix navbar toggle for single sidebar not showing * Remove unused BaseHead component Seriously this is a UI lib why did I think putting this here would benefit the UI lib. * Revert "Remove unused BaseHead component" This reverts commit 308d332. --------- Co-authored-by: Adam Matthiesen <[email protected]>
- Loading branch information
1 parent
aafd90f
commit 7092e69
Showing
116 changed files
with
5,986 additions
and
234 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@studiocms/ui": patch | ||
--- | ||
|
||
Added a new UI library for the dashboard rework |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.