This document contains release notes for the @studiocms/ui
package.
For more information, see the CHANGELOG file ⤴
#88 ⤴ b96fe4d
⤴ Thanks @Adammatthiesen ⤴! - Update Icon component to utilize all iconifyJSON icons that have been passed through into the config
heroicons:
instead of just the icons name. This allows user-defined icons to be used without conflicting with the pre-shipped icons.#106 ⤴ 613830e
⤴ Thanks @Adammatthiesen ⤴! - Introduce individual component virtual exports alongside the bundled barrel virtual export 'studiocms:ui/components'
You can now import for example Button
component from studiocms:ui/components/button
#89 ⤴ ce1f6fc
⤴ Thanks @Adammatthiesen ⤴! - Migrate from injected types to ambient types for static virtual modules
#86 ⤴ 63e3b9e
⤴ Thanks @RATIU5 ⤴! - Adds a skeleton loading state component
#87 ⤴ 80d1970
⤴ Thanks @Adammatthiesen ⤴! - Removes ThemeToggle as it was causing a error when added to the virtual module, it is now recommended to use the ThemeHelper directly
#92 ⤴ bd47caf
⤴ Thanks @RATIU5 ⤴! - Fixes #91, alert type is respected and shows appropriate colors
#103 ⤴ 111e685
⤴ Thanks @RATIU5 ⤴! - Fixes Select components UI bug, where list items had no background and showed bullet points
#104 ⤴ f708d9d
⤴ Thanks @RATIU5 ⤴! - - Refactored the accordion component so it works with the Tabs component, and with nested accordions
active
prop to the Tabs component to set the initial active tab#96 ⤴ ddf67da
⤴ Thanks @louisescher ⤴! - Changes the way colors are declared to allow for a better customization experience.
Before, we would use raw HSL values in order to be able to modify them later on:
:root { --background-base: 0 0% 6%;}
This introduces an unnecessary hurdle to customization, since most other libraries ship with either their own color values and spaces or a different approach entirely. Thus, the goal of this PR is to replace this approach with a simpler one. We will now default to HSL functions instead of the raw values:
:root { --background-base: hsl(0 0% 6%);}
Migrating from this can be a little tedious if the old system was used in custom components. You can use this regular expression with VSCode’s (or any other IDE’s) search & replace feature to replace all instances of the old syntax with the new:
Search Value: hsl[a]?\((var\([A-Za-z-\d]+\))\)
Replace Value: $1
Please make sure to manually search for hsl(var(
and hsla(var(
after running the above to make sure all previous values have been replaced.
#101 ⤴ 12eba39
⤴ Thanks @RATIU5 ⤴! - adds the tooltip component
#93 ⤴ bb5ab5a
⤴ Thanks @RATIU5 ⤴! - Adds StudioCMS Typography using a .prose
class
2b89d92
⤴ Thanks @RATIU5 ⤴! - prevents overflow select dropdowns with a scrollable container and enables toggling the dropdown via svg icon click9fc5efb
⤴ Thanks @louisescher ⤴! - Fixes selects not being form compatiblecbee510
⤴ Thanks @RATIU5 ⤴! - fixes select interfaces and types and adds safety check to prevent duplicate event listenersc27bf16
⤴ Thanks @louisescher ⤴! - Fixes mismatched IDs in the CSS for the double sidebar componentf183732
⤴ Thanks @louisescher ⤴! - Fixes a z-index for starlight variant tabs being too greatef29352
⤴ Thanks @louisescher ⤴! - Fixes broken styles for flat success buttons in light mode and starlight tabs when used in cardsdc7b723
⤴ Thanks @Adammatthiesen ⤴! - Adds a value prop to the checkbox59f4c05
⤴ Thanks @louisescher ⤴! - Fixes card footers to be hidden should they have no contentf71057d
⤴ Thanks @Adammatthiesen ⤴! - Add viewbox attribute for IconBase component#56 ⤴ 40ae2ea
⤴ Thanks @Adammatthiesen ⤴! - Add option to disable global CSS injection and allow users to import the global css themselves.
Basic Example of how to import:
---import "studiocms:ui/global-css";---
65eea2c
⤴ Thanks @Adammatthiesen ⤴! - Update Input component to allow search type51d5565
⤴ Thanks @Adammatthiesen ⤴! - fix weird icon sizing during build#48 ⤴ 4a43e03
⤴ Thanks @Adammatthiesen ⤴! - Fix Icon component requiring functions from Iconify Utils lib during runtime as well as extend usage possibilities.
NEW:
IconBase
component exported from studiocms:ui/components
which allows passing custom image collections from Iconify.Updated:
Icon
component to use this new system.29ea967
⤴ Thanks @louisescher ⤴! - Fixes icons getting cut off in certain circumstances and changes dropdown links to include icons99a2f79
⤴ Thanks @louisescher ⤴! - Fixes compatibility issues with Astro view transitions641e4b0
⤴ Thanks @Adammatthiesen ⤴! - Update publish config and files included#36 ⤴ 07e2d9e
⤴ Thanks @louisescher ⤴! - Implement Build step and migrate all exported components into virtual modules
Instead of @studiocms/ui/components
use studiocms:ui/components
For more information see https://ui.studiocms.dev ⤴
#36 ⤴ 07e2d9e
⤴ Thanks @louisescher ⤴! - Add a few new components:
Add two new colors
info
(Blue)monochrome
(Black/White)Add the ability to pass a CSS file for customization of all colors
58e223c
⤴ Thanks @louisescher ⤴! - Fix tabs not being displayed correctly & dividers displaying backgrounds for empty slots6b0b58f
⤴ Thanks @louisescher ⤴! - Add pathe as a dependency to deal with path issues on Windows#18 ⤴ e471e11
⤴ Thanks @louisescher ⤴! - The Accessibility Update
This version of @studiocms/ui
includes a lot of improvements to the documentation and components. The most important changes include the move to
an integration-based system and a massive keyboard accessibility overhaul (thanks to HiDeoo ⤴ for the feedback on this)!
<Tabs />
component based on the tabs on the homepage.<Card />
component to include a new “filled” style.ThemeHelper
class to its own category in the docs.#1 ⤴ 14be139
⤴ Thanks @Adammatthiesen ⤴! - Added a new footer component, made accessibility improvements and preparations for first stable release
#1 ⤴ 14be139
⤴ Thanks @Adammatthiesen ⤴! - - Update <Input />
component’s available types
#1 ⤴ 14be139
⤴ Thanks @Adammatthiesen ⤴! - Added a new searchable select component and improved accessibility for normal selects
#1 ⤴ 14be139
⤴ Thanks @Adammatthiesen ⤴! - Created new UI Library in preparations for the new StudioCMS Dashboard project
#1 ⤴ 14be139
⤴ Thanks @Adammatthiesen ⤴! - Added a theme helper and theme toggle component
#1 ⤴ 14be139
⤴ Thanks @Adammatthiesen ⤴! - Adjusted persistent toasts to include an outline for better visibility