Releases: chakra-ui/park-ui
Releases · chakra-ui/park-ui
@park-ui/[email protected]
Fixed
- NumberInput: Fixed an issue where the grid layout was not applied correctly.
@park-ui/[email protected]
Changed
- Color Tokens: The
accentcolor concept has been removed. Components now rely on the built-in
colorPaletteprop for color customization. This change aligns with how Panda CSS envisions the
use of its virtual color system..
Previously, color tokens were organized like this:
colorPalette.1
└── accent.1
└── amber.1
├── amber.light.1
└── amber.dark.1The accent layer was unnecessary and has been removed:
colorPalette.1
└── amber.1
├── amber.light.1
└── amber.dark.1Here's how this change impacts usage:
- <Box color="accent.default" />
+ <Box color="colorPalette.default" />- Improved consistency and scalability by refining the Park UI Preset setup in the Panda
configuration. Learn more in the docs.
import { defineConfig } from '@pandacss/dev'
```diff
import { defineConfig } from '@pandacss/dev'
import { createPreset } from '@park-ui/panda-preset'
+import amber from '@park-ui/panda-preset/colors/amber'
+import sand from '@park-ui/panda-preset/colors/sand'
export default defineConfig({
preflight: true,
presets: [
- '@pandacss/preset-base',
createPreset({
- accentColor: 'amber',
- grayColor: 'sand',
- borderRadius: 'sm',
+ accentColor: amber,
+ grayColor: sand,
+ radius: 'sm',
}),
],
include: ['./src/**/*.{js,jsx,ts,tsx,vue}'],
jsxFramework: 'react', // or 'solid' or 'vue'
outdir: 'styled-system',
})@park-ui/[email protected]
Added
- Input, Textarea: Now support usage within the
Fieldcomponent.
Changed
- CLI: Installation of components using the CLI no longer requires a
tsconfig.jsonfile.
This is particularly beneficial for setups likenxworkspaces that do not include atsconfig.jsonfile.
The CLI now prompts the following:
➜ Which JS framework do you use? [React / Solid / Vue]
➜ Where would you like to store your components? [./src/components/ui]
Adding a component will create the following folder structure:
➜ /src/components/ui/
|-- styled/
| |-- utils/
| | `-- create-style-context.ts
| `-- button.tsx
`-- button.tsx
Fixed
- Textarea: Fixed an issue where the
invalidstate was not rendered correctly. - Tooltip: Set a proper
z-indexvalue to ensure the tooltip is displayed above other elements. - Input: Fixed an issue where the horizontal padding was not applied correctly.
- Resolved a warning related to the undefined usage of
colors.red.9.
@park-ui/[email protected]
Added
- Added new semantic tokens:
fg.errorandborder.errorfor styling error states. - Added support for
invalidstate in theInputcomponent. - Added
_invalidcondition to the list of supported conditions.
Changed
- Updated the
Buttoncomponent to support loading states.
Fixed
- Resolved an issue where Panda sometimes did not recognize style props on
IconButtoncomponents.
@park-ui/[email protected]
Added
- Added
Spinnercomponent.
Fixed
- Fixed an issue where forcing a color mode on a component sometimes did not work as expected.
Removed
- Removed the
icon-buttonrecipe in favor of reusing thebuttonrecipe.
@park-ui/[email protected]
Added
- Added support for forcing all components to render in either dark or light mode.
export const App = () => {
return (
<Box className="dark">
{/* Renders a Popover component always in dark mode */}
<Popover />
</Box>
)
}@park-ui/[email protected]
Fixed
- Prepared recipes for
QrCode,SignaturePadandFieldcomponents.
@park-ui/[email protected]
We are excited to announce that in this release, we have migrated all components to the new Ark UI 3.0 API.
This update includes several breaking changes, so please make sure to update your code snippets accordingly.
Changed
- Optimized type checking for
Heading,IconandTextcomponents for faster performance.
Fixed
- Resolved an issue with the
Avatarcomponent where the image did not display as round after loading.
@park-ui/[email protected]
Fixed
- Set
white-space: prefor theCodeandKbcomponent to prevent text wrapping.
@park-ui/[email protected]
Added
- Added
onandoffto the list of supported conditions.
Changed
- Improved the
hoverconditions to only activate on non-touch devices.
Fixed
- Fixed an issue where the
NumberInputcomponent rendered a border incorrectly. - Fixed an issue where the
ToggleGroupcomponent did not appear to work correctly on touch devices.