-
-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build: refactor all package build setup (#7154)
Co-authored-by: Yuku Kotani <yukukotani@gmail.com>
- Loading branch information
1 parent
bad865c
commit 2d7398a
Showing
275 changed files
with
3,831 additions
and
3,642 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,102 @@ | ||
--- | ||
"@chakra-ui/accordion": patch | ||
"@chakra-ui/alert": patch | ||
"@chakra-ui/anatomy": patch | ||
"@chakra-ui/avatar": patch | ||
"@chakra-ui/breadcrumb": patch | ||
"@chakra-ui/button": patch | ||
"@chakra-ui/card": patch | ||
"@chakra-ui/checkbox": patch | ||
"@chakra-ui/clickable": patch | ||
"@chakra-ui/close-button": patch | ||
"@chakra-ui/color-mode": patch | ||
"@chakra-ui/control-box": patch | ||
"@chakra-ui/counter": patch | ||
"@chakra-ui/css-reset": patch | ||
"@chakra-ui/descendant": patch | ||
"@chakra-ui/editable": patch | ||
"@chakra-ui/react-env": patch | ||
"@chakra-ui/focus-lock": patch | ||
"@chakra-ui/form-control": patch | ||
"@chakra-ui/icon": patch | ||
"@chakra-ui/icons": patch | ||
"@chakra-ui/image": patch | ||
"@chakra-ui/input": patch | ||
"@chakra-ui/layout": patch | ||
"@chakra-ui/live-region": patch | ||
"@chakra-ui/media-query": patch | ||
"@chakra-ui/menu": patch | ||
"@chakra-ui/modal": patch | ||
"@chakra-ui/number-input": patch | ||
"@chakra-ui/pin-input": patch | ||
"@chakra-ui/popover": patch | ||
"@chakra-ui/popper": patch | ||
"@chakra-ui/portal": patch | ||
"@chakra-ui/progress": patch | ||
"@chakra-ui/provider": patch | ||
"@chakra-ui/radio": patch | ||
"@chakra-ui/react": patch | ||
"@chakra-ui/select": patch | ||
"@chakra-ui/skeleton": patch | ||
"@chakra-ui/skip-nav": patch | ||
"@chakra-ui/slider": patch | ||
"@chakra-ui/spinner": patch | ||
"@chakra-ui/stat": patch | ||
"@chakra-ui/switch": patch | ||
"@chakra-ui/table": patch | ||
"@chakra-ui/tabs": patch | ||
"@chakra-ui/tag": patch | ||
"@chakra-ui/textarea": patch | ||
"@chakra-ui/theme": patch | ||
"@chakra-ui/theme-tools": patch | ||
"@chakra-ui/toast": patch | ||
"@chakra-ui/tooltip": patch | ||
"@chakra-ui/transition": patch | ||
"@chakra-ui/visually-hidden": patch | ||
"@chakra-ui/styled-system": patch | ||
"@chakra-ui/system": patch | ||
"@chakra-ui/react-context": patch | ||
"@chakra-ui/react-use-animation-state": patch | ||
"@chakra-ui/react-use-callback-ref": patch | ||
"@chakra-ui/react-use-controllable-state": patch | ||
"@chakra-ui/react-use-disclosure": patch | ||
"@chakra-ui/react-use-event-listener": patch | ||
"@chakra-ui/react-use-focus-effect": patch | ||
"@chakra-ui/react-use-focus-on-pointer-down": patch | ||
"@chakra-ui/react-use-interval": patch | ||
"@chakra-ui/react-use-latest-ref": patch | ||
"@chakra-ui/react-use-merge-refs": patch | ||
"@chakra-ui/react-use-outside-click": patch | ||
"@chakra-ui/react-use-pan-event": patch | ||
"@chakra-ui/react-use-previous": patch | ||
"@chakra-ui/react-use-safe-layout-effect": patch | ||
"@chakra-ui/react-use-size": patch | ||
"@chakra-ui/react-use-timeout": patch | ||
"@chakra-ui/react-use-update-effect": patch | ||
"@chakra-ui/hooks": patch | ||
"@chakra-ui/react-utils": patch | ||
"@chakra-ui/utils": patch | ||
"@chakra-ui/breakpoint-utils": patch | ||
"@chakra-ui/dom-utils": patch | ||
"@chakra-ui/event-utils": patch | ||
"@chakra-ui/lazy-utils": patch | ||
"@chakra-ui/merge-utils": patch | ||
"@chakra-ui/number-utils": patch | ||
"@chakra-ui/object-utils": patch | ||
"@chakra-ui/react-children-utils": patch | ||
"@chakra-ui/react-types": patch | ||
"@chakra-ui/shared-utils": patch | ||
"@chakra-ui/theme-utils": patch | ||
"@chakra-ui/storybook-addon": patch | ||
--- | ||
|
||
## All components | ||
|
||
Improved the bundling setup for all components. | ||
|
||
- Switched to the `.mjs` file extension for correct ESM behavior | ||
- Switched to the latest `tsup` will uses automatic JSX runtime detection | ||
removing the need for manually inject classic `React` import | ||
- Moved `tsup` config to `package.json` since it's very minimal | ||
- Removed `clean-package.config.json` in favor of the `package.json` property | ||
- Fixed issue where Storybook addon (dark mode and RTL) was not working |
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,15 @@ | ||
{ | ||
"replace": { | ||
"main": "dist/index.js", | ||
"module": "dist/index.mjs", | ||
"types": "dist/index.d.ts", | ||
"exports": { | ||
".": { | ||
"types": "./dist/index.d.ts", | ||
"import": "./dist/index.mjs", | ||
"require": "./dist/index.js" | ||
}, | ||
"./package.json": "./package.json" | ||
} | ||
} | ||
} |
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 was deleted.
Oops, something went wrong.
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 was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,14 +1,35 @@ | ||
# Alert | ||
# @chakra-ui/alert | ||
|
||
A React component used to alert users of a particular screen area that needs | ||
user action | ||
Alerts visually highlight important content for the user. They can contain a | ||
title, an icon and content. Each intent has a default icon associated with it. | ||
|
||
## Installation | ||
|
||
```sh | ||
npm i @chakra-ui/alert | ||
yarn add @chakra-ui/alert | ||
|
||
# or | ||
|
||
yarn add @chakra-ui/alert | ||
npm i @chakra-ui/alert | ||
``` | ||
|
||
## Import components | ||
|
||
```jsx | ||
import { | ||
Alert, | ||
AlertTitle, | ||
AlertIcon, | ||
AlertDescription, | ||
} from "@chakra-ui/alert" | ||
``` | ||
|
||
## Basic usage | ||
|
||
```jsx | ||
<Alert status="error" variant="solid" justifyContent="center"> | ||
<AlertIcon /> | ||
<AlertTitle>Your browser is outdated!</AlertTitle> | ||
<AlertDescription>Your Chakra experience may be degraded.</AlertDescription> | ||
</Alert> | ||
``` |
This file was deleted.
Oops, something went wrong.
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.
2d7398a
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
chakra-ui-storybook – ./
chakra-ui-storybook-git-main-chakra-ui.vercel.app
chakra-ui-storybook-chakra-ui.vercel.app
chakra-ui-storybook.vercel.app
storybook.chakra-ui.com