-
-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,23 @@ | ||
--- | ||
"@chakra-ui/theme": patch | ||
"@chakra-ui/react": minor | ||
--- | ||
|
||
Fix hard-coded z-index for Menu in favor of one defined from the theme | ||
### Fixed | ||
|
||
- Fix hard-coded z-index for Menu in favor of one defined from the theme | ||
- Fix problem with leading and trailing spaces when getting initials for the | ||
Avatar component | ||
- Suppress unnecessary re-renders of Checkbox and Radio component | ||
|
||
### Added | ||
|
||
- Add CSS `accentColor` property to style props | ||
- Add support for `asChild` in chakra factory | ||
- Export `toastStore` from `toast` component | ||
- Upgrade `framer-motion` to allow for skipAnimations | ||
- Add component namespace to reduce imports and provide better composition | ||
- Modal, Drawer: Add default `preserveScrollBarGap` | ||
|
||
### Changed | ||
|
||
Redesign the component themes and anatomy |
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,3 @@ | ||
{ | ||
"**/*.{ts,tsx,js,jsx}": [ | ||
"prettier --write" | ||
], | ||
"**/*.{md,mdx,yml,json,babelrc,eslintrc,prettierrc}": [ | ||
"prettier --write" | ||
] | ||
} | ||
"**/*.{ts,tsx,js,jsx,md,mdx}": ["prettier --write"] | ||
} |
This file was deleted.
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import { StorybookConfig } from "@storybook/react-vite" | ||
|
||
const config: StorybookConfig = { | ||
stories: ["../packages/react/__stories__/*.stories.tsx"], | ||
addons: [ | ||
"@storybook/addon-a11y", | ||
"@storybook/addon-essentials", | ||
"@storybook/addon-themes", | ||
], | ||
framework: { | ||
name: "@storybook/react-vite", | ||
options: {}, | ||
}, | ||
features: { | ||
buildStoriesJson: true, | ||
}, | ||
core: { | ||
disableTelemetry: true, | ||
}, | ||
typescript: { | ||
reactDocgen: false, | ||
}, | ||
} | ||
|
||
export default config |
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
import { addons } from "@storybook/manager-api" | ||
import theme from "./storybook-theme" | ||
|
||
addons.setConfig({ | ||
theme, | ||
}) |
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
import { withThemeByClassName } from "@storybook/addon-themes" | ||
import { Preview, ReactRenderer } from "@storybook/react" | ||
import React from "react" | ||
import { ChakraProvider, defaultSystem } from "../packages/react/src" | ||
|
||
const preview: Preview = { | ||
parameters: { | ||
options: { | ||
storySort: { | ||
method: "alphabetical", | ||
}, | ||
}, | ||
}, | ||
decorators: [ | ||
withThemeByClassName<ReactRenderer>({ | ||
defaultTheme: "light", | ||
themes: { | ||
light: "", | ||
dark: "dark", | ||
}, | ||
}), | ||
(Story) => ( | ||
<ChakraProvider value={defaultSystem}> | ||
<Story /> | ||
</ChakraProvider> | ||
), | ||
], | ||
} | ||
|
||
export default preview |