Commit Graph

1021 Commits

Author SHA1 Message Date
Segun Adebayo 7d1d76f72a docs: fix type errors and build 2024-05-10 21:04:18 +01:00
Segun Adebayo 623e558ac2 feat(v3): Let there be ark (#8393)
* chore: init

* feat: implement file upload component from ark

* perf: replace split props

* fix: split props

* fix: tsconfig + eslint parser

* chore: prefer empty slot styles

* refactor: tokens and text styles

* refactor: replace popover, tooltip and add hovercard

* chore: add use client

* chore: export styles

* test: prefer tests from ark

* refactor: file upload to recipe

* refactor: use ark anatomy

* docs: add changeset

* chore: rm framer-motion example

* refactor: env

* refactor: dialog and drawer to use ark

* fix(v3): update Button migration guide (#8397)

Update Button migration guiide

- change isDisabled to disabled
- change colorScheme to colorPalette

* chore: update box components

* refactor: slider and range-slider -> ark

* refactor: tsconfig and files

* fix(deps): update dependency framer-motion to v11.0.25 (#8401)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* refactor: accordion

* refactor: menu component

* refactor: use pandacss valid prop

* ci: update actions

* refactor: test utils

* refactor: vitest -> vite

* refactor: as child + ark

* fix: examples and website

* feat: rm framer-motion

* chore: pin ark versions

* chore: update popover z-index

* chore(deps): update react monorepo (#8472)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* fix(deps): update commitlint monorepo (#8441)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore: update menu stories

* chore: update slider example

---------

Co-authored-by: Ivica Batinić <ivicabatinic123@gmail.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-05-10 13:21:00 +01:00
renovate[bot] c97e9b5b71 fix(deps): update dependency framer-motion to v11.0.25 (#8401)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-04-06 09:38:38 +01:00
Segun Adebayo 1195171b9e refactor: tokens and text styles 2024-03-28 22:17:07 +00:00
Segun Adebayo e51633213b chore(examples): prepare v3 + next 14 app dir 2024-03-28 14:59:05 +00:00
Segun Adebayo e7c074e087 chore: update deps 2024-03-26 22:57:24 +00:00
Segun Adebayo 778f0ef144 fix: typedocs snippets 2024-03-26 22:53:52 +00:00
Segun Adebayo 29322fcd0d feat(v3): redesign styled system (#8312)
* refactor: move styled-system into main package

* chore: initial system scaffold

* fix: base condition

* chore: define base preset using new api

* feat: define new system api

* chore: update tests to use system api

* refactor: move generated stuff to dedicated folder

* chore: add robust tests and conditions

* feat: add color mix

* chore: get first prototype working. woohoo!

* chore: test color mix

* fix: color palette

* fix: color palette

* chore: scaffold for system

* chore(deps): update dependency tsx to v4.7.1 (#8321)

* chore(deps): update dependency @types/node to v18.19.18

* chore(deps): update dependency tsx to v4.7.1

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* refactor(v3): remove usage of descendants (#8245)

* feat: migrate accordion

* feat: remove from menu

* feat: migrate pin

* feat: migrate tabs

* fix: remove node

* feat: removed descendant

* fix: remove exports

* fix: query selector issue

* chore: fix tests

* fix: refactor

* chore: fix stories and tests

* fix: escape value

* fix: use menu item id if supplied

* chore: update docs

* chore: rewrite

* fix: tab syltes

* feat: include reset css in system

* fix: dont generate reset always

* chore: setup styled factory

* feat: implement use recipe

* chore(deps): update dependency @types/node to v18.19.19 (#8320)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* fix: assign static properties

* feat: slot recipe

* feat: expose identity functions

* chore: add define system

* refactor: theming -> config

* chore: scaffold for new cli

* refactor: redesign cli

* chore: prune packages

* chore: fix deps

* chore: add preset

* feat: add breakpoint

* feat: support conditional variants

* fix: codegen

* docs: document new api

* refactor: use new system in components

* chore: update lock

* refactor: component themes -> recipes

* refactor: theme recipes

* chore: rm extend theme

* fix: token references

* fix: token refernce in css

* chore: rm props of

* chore: rename foundations to tokens

* refactor: phase 1

* refactor: optimize media query based on #7978

* chore: rm media query mod

* refactor: redesign theme to use new convention

* chore: cli emits to src

* chore: simplify simplify

* refactor: reorganize all things

* chore: some more progress

* fix: improve inference for For

* refactor: redesign avatar

* chore: goodbye to storybook addon

* chore: phew

* chore: update lockfile

* refactor: revamp badge

* refactor: move tweaks

* refactor: redesign inputs and field

* chore: cleanup input

* chore: clean up card

* refactor: tabs

* refactor: dialog

* refactor: prop getter naming

* refactor: textarea

* chore: textarea refactor

* refactor: checkbox

* refactor: radio group and progress

* feat: add generic enter and exit keyframes

* refactor: slider

* refactor: popover

* refactor: story groups

* refactor: breadcrumb component and recipe

* docs: update migration guide

* refactor: accordion

* chore: cleanup button stories

* chore: cleanup button stories

* chore: rm close button

* refactor: badge and code

* feat: add classic look for radio

* feat: update kbd

* refactor: link component

* refactor: menu

* refactor: menu

* chore: wip menu

* refactor: avatar and tag

* chore: update menu

* chore: rm clickable

* chore: mv switch to slot recipe

* refactor: revamp select

* refactor: skeleton

* refactor: skeleton theme

* chore: cleanup stories

* feat: account for empty badge

* fix(components): suppress unnecessary re-renders of Checkbox and Radio component (#8349)

* fix(components): suppress unnecessary re-renders of Checkbox and Radio component

* fix(components): ensure global event listeners are set up

* refactor: table

* refactor: stat

* refactor: stepper -> steps

* refactor: blockquote

* refactor: divider to separator

* refactor: stories

* refactor: cleanup layout components

* refactor: layout component stories

* refactor: drawer component

* refactor: overlay -> backdrop

* fix: hidefrom and hidebelow

* fix: hidefrom and hidebelow

* chore: sort stories

* refactor: number input

* refactor: pin input

* chore: update cli

* refactor: a lot of components

* refactor: rm custom forward-ref

* refactor: round 2

* refactor: round 3

* refactor: toasts

* refactor: is props

* fix: lint

* chore: get build working

* fix: build

* fix: build

* refactor: code

* test: fix

* fix: storybook build

* test: fix

* test: updates round 2

* test: updates round 3

* test: updates round 4

* test: updates round 5

* chore: update lockfile

* test: fix

* chore: update deps

* refactor: docs and imports

* chore: update eslint

* refactor: docs

* docs: update content

* docs: round 2

* docs: update

* docs: update tabs

* docs: rename field

* docs: rename

* refactor: search meta

* chore: update

* feat: implement unstyled prop on root components

* test: refactor

* refactor: docs

* chore: update stats

* refactor: slider and range slider

* chore: update breadcrumb

* docs: card

* docs: checkbox

* docs: editable

* refactor: link and docs

* docs: update

* chore: add missing transition

* docs: update scripts

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Eelco Wiersma <eelco@appulse.nl>
Co-authored-by: autologie <7351859+autologie@users.noreply.github.com>
2024-03-25 21:53:19 +00:00
Abraham 3a87f68474 chore: reorganize packages (#6553)
* chore: reorganize packages

* chore: reorganize packages

* chore: reorganize packages

* chore: reorganize packages

* chore: reorganize packages

* chore: reorganize packages

* chore: reorganize packages

* chore: reorganize packages

* chore: reorganize packages

* chore: reorganize packages
2022-08-25 19:20:55 +04:00
Segun Adebayo 872c0ccf56 refactor: component theming system (#6221)
* refactor: theming system and helpers

* chore: update pkgs

* docs: update changesets

* chore: update changesets

* chore: fix typo

* chore: updates

* chore: fix error

* chore: update changeset

* chore: update lockfile

* refactor: batch 1

* refactor: anatomy

* refactor: anatomy

* refactor: anatomy

* fix: errors

* fix: errors

* fix: patch default props for now

* chore: update mdx extension

* chore: update

* chore: update package json
2022-08-24 20:21:34 +04:00
github-actions[bot] f726eff9aa Version Packages (#6486)
ci(changesets): version packages

Co-authored-by: Segun Adebayo <joseshegs@gmail.com>
2022-08-24 12:37:33 +04:00
Lazar Nikolov 5d0415c49a refactor(tsup): faster builds with parallel turbo tasks (#6535)
* refactor(tsup): faster builds with parallel turbo tasks

* refactor(tsup): removed --parallel tag

* chore: add tsconfig to hooks and utiliites

* chore: update pnpm

* ci: tweak

* ci: tweak

* revert: actions

Co-authored-by: Segun Adebayo <joseshegs@gmail.com>
2022-08-23 20:47:52 +04:00
Segun Adebayo e98db2cc02 ci: version packages for 2.2.8 2022-08-14 11:12:16 +04:00
github-actions[bot] d05c938335 Version Packages (#6441)
ci(changesets): version packages

Co-authored-by: Segun Adebayo <joseshegs@gmail.com>
2022-08-13 14:39:23 +04:00
Ross Gardiner b735aae2e0 Add explicit type declaration to ChakraProvider.defaultProps (#6464)
* fix(chakra-provider): ensure typed declaration for `ChakraProvider.defaultProps`

* docs: update changesets

* refactor: move logic for default theme inside `ChakraProvider` component

* docs: revise changeset

* refactor: code

Co-authored-by: Segun Adebayo <joseshegs@gmail.com>
2022-08-13 09:11:18 +04:00
Segun Adebayo 6a1bd4683e ci: release packages 2022-08-05 14:15:39 +04:00
github-actions[bot] 4623754491 ci(changesets): version packages (#6361)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-08-05 13:34:47 +04:00
Segun Adebayo d3571a643f Fix CodeSandbox and mjs file (#6421)
* refactor: accordion src

* refactor: alert src

* refactor: avatar

* chore: update eslint and tsconfig for jsx

* refactor: avatar

* refactor: breadcrumb src

* refactor: button src

* refactor: checkbox src

* refactor: clickable

* refactor: close button src

* refactor: color mode src

* refactor: control box src

* refactor: editable src

* refactor: hooks src

* refactor: icons src

* refactor: layout src

* refactor: form control src

* refactor: input src

* refactor: modal src

* refactor: numberinput src

* refactor: other src

* refactor: more component src

* refactor: react src

* fix: typecheck

* fix: add react shim for tsup

* fix: tests

* chore: package entries

* chore: update tooling

* chore: double check exports

* ci: remove duplicate workflow step
2022-08-04 22:01:34 +04:00
Segun Adebayo 1839e22eba Migrate to pnpm (#6356)
* chore: initial spike

* fix: deps cycle

* fix: stories

* fix: types

* refactor: anatomy

* chore: update tooling

* chore: update package scripts

* chore: setup entrypoints

* chore: get tooling build working

* chore: cleanup repo and deps

* chore: get storybook working

* ci: update github actions and scripts

* fix: babel plugin dep

* ci: run props docs in parallel

* refactor: build script

* chore: update csb config

* chore: add missing deps

* chore: update

* chore: update tests

* chore: update

* chore: update deps

* fix: dependency issues

* fix: ts issues

* fix: circular import

* fix: circular dependencies

* chore: remove unused

* fix: tests

* fix: dependencies

* fix: storybook

* chore: use tsup

* refactor: style context usage

* fix: build

* chore: update

* chore: cmon

* chore: cmon

* fix: theme scripts

* chore: update
2022-07-24 19:09:43 +04:00
github-actions[bot] 5e6a402ac4 ci(changesets): version packages (#6311)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-07-13 22:38:06 +04:00
github-actions[bot] c80c487a43 ci(changesets): version packages (#6220)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-07-10 14:50:44 +04:00
github-actions[bot] e0854fe2e9 ci(changesets): version packages 2022-06-20 16:47:38 +00:00
Segun Adebayo 6ecf45646d Merge pull request #5764 from m4x3d/refactor/remove-deprecated-breakpoints-function
refactor: remove internal usage of deprecated createBreakpoints function
2022-06-18 15:27:05 +04:00
github-actions[bot] 6547ed9ec1 ci(changesets): version packages 2022-06-07 11:33:02 +00:00
github-actions[bot] 1dbc341333 ci(changesets): version packages 2022-06-06 19:21:35 +00:00
Max Friedrich 4b95b7c83c refactor: remove deprecated createBreakpoints function 2022-05-24 18:36:34 +02:00
github-actions[bot] 1017f4d074 ci(changesets): version packages 2022-05-24 15:54:03 +00:00
github-actions[bot] d087db4f64 ci(changesets): version packages 2022-05-24 08:16:36 +00:00
Segun Adebayo e8cce77b27 refactor: chakra provider 2022-05-24 12:11:18 +04:00
github-actions[bot] d79b5fc8ab ci(changesets): version packages 2022-05-21 21:05:06 +00:00
github-actions[bot] a6341e7917 ci(changesets): version packages 2022-05-17 16:57:57 +00:00
github-actions[bot] 0810979231 ci(changesets): version packages 2022-05-17 10:09:49 +00:00
Segun Adebayo dc59701c72 chore: update imports 2022-05-17 00:20:22 +04:00
Tim Kolberger 48cc749d08 docs: release v2 (#6012) 2022-05-12 19:45:31 +02:00
Tim Kolberger b75a5a4d61 breaking: release chakra-ui/react version 2 (#6011)
* fix(popover): check related target onMouseLeave to prevent unexpected collapsing

* refactor(react): remove deprecations
BREAKING CHANGE:

* docs: update changeset

* chore(next): enter changeset pre release next

* chore(next): remove next from main workflow

* feat(react-18-toast): toast with React Portal implementation (#5797)

* feat: add support for React 18

Closes #5795

* chore: add changeset

* feat(react-18-toast): start refactoring toast package

- storybook works
- some tests are failing

* feat(react-18-toast): add changesets

* test(react-18-toast): update tests

* fix(react-18-toast): closeAll at position

* feat(react-18-toast): customize toasts via ToastProvider

* feat(react-18-toast): customize createStandaloneToasts like ToastProvider

* chore(react-18-toast): remove dead code from changeset

* chore(react-18-toast): code review 1

* chore(react-18-toast): code review 2

* chore(react-18-toast): remove duplicate component story

* chore(react-18-toast): fixup rebase

* fix(next): branch setup (#5836)

* chore(next): fix mismatching npm version ranges

* chore(next): rename workflow

* ci(changesets): version packages (next) (#5835)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* docs: add changelog

* fix(ButtonGroup): collapse borders with isAttached enabled

* fix(ButtonGroup): move negative margin to button outline variant

* chore: tweak data attribute

* chore(deps): bump moment from 2.29.1 to 2.29.2 in /examples/gatsby

Bumps [moment](https://github.com/moment/moment) from 2.29.1 to 2.29.2.
- [Release notes](https://github.com/moment/moment/releases)
- [Changelog](https://github.com/moment/moment/blob/develop/CHANGELOG.md)
- [Commits](https://github.com/moment/moment/compare/2.29.1...2.29.2)

---
updated-dependencies:
- dependency-name: moment
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

* chore(toast): remove dependency to @reach-ui/alert

* test: remove deprecations

fixup #5828

* chore: add changeset

* ci: run PR workflow on next branch as target

* chore(deps): bump moment from 2.29.1 to 2.29.2

Bumps [moment](https://github.com/moment/moment) from 2.29.1 to 2.29.2.
- [Release notes](https://github.com/moment/moment/releases)
- [Changelog](https://github.com/moment/moment/blob/develop/CHANGELOG.md)
- [Commits](https://github.com/moment/moment/compare/2.29.1...2.29.2)

---
updated-dependencies:
- dependency-name: moment
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

* chore: update deps

* chore: update more deps and fix storybook linting

* chore: start updating the types WIP

* fix: use-update-effect in strict mode

* chore: add react-strict mode to storybook

* chore: fix .mjs imports in storybook

* feat: replace useId with React.useId

* chore: add watch script

* fix: use-update-effect

* feat: apply correct aria attributes

* fix: type issue

* chore: update toast package

* chore: update framer motion deps range

* docs: add pomSense as a contributor for code (#5857)

* docs: update README.md [skip ci]

* docs: update .all-contributorsrc [skip ci]

Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>

* fix(editable): cancel on blur

* test: add React 18 compatibility for the test suite (#5874)

* chore: upgrade test tooling

* chore: update alert test

* chore: get avatar tests passing

* chore: get more tests passing

* chore: get more tests passing

* fix: prestorybook script

* test: packages from P to V

* feat: allow using the render fn without ChakraProvider

* chore: replace press with user.press

* fix: more tests

* chore: omit color-mode test and get more tests passing

* fix: color mode tests

Co-authored-by: Segun Adebayo <joseshegs@gmail.com>

* feat: memoize toast fn (#5873)

Closes #5868

* feat: add support for async toast (#5310)

* feat(alert): extend alert with loading status

* feat(toast): implement toast promise

* fix: import Spinner

* fix: add chakra-ui/spinner to dependencies

* feat: add toast.promise

* test: fix colormode tests

* fix: apply default duration for toast.promise

* test: render toast provider in toast tests

* test: increase time

* fix: package versions

Co-authored-by: Tim Kolberger <tim@kolberger.eu>

* chore(deps): bump nanoid from 3.1.30 to 3.3.2

Bumps [nanoid](https://github.com/ai/nanoid) from 3.1.30 to 3.3.2.
- [Release notes](https://github.com/ai/nanoid/releases)
- [Changelog](https://github.com/ai/nanoid/blob/main/CHANGELOG.md)
- [Commits](https://github.com/ai/nanoid/compare/3.1.30...3.3.2)

---
updated-dependencies:
- dependency-name: nanoid
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

* chore(deps): bump url-parse from 1.5.3 to 1.5.10

Bumps [url-parse](https://github.com/unshiftio/url-parse) from 1.5.3 to 1.5.10.
- [Release notes](https://github.com/unshiftio/url-parse/releases)
- [Commits](https://github.com/unshiftio/url-parse/compare/1.5.3...1.5.10)

---
updated-dependencies:
- dependency-name: url-parse
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

* chore: add changeset (#5879)

* fix: replace asterix version (#5880)

* chore: trigger CI (#5881)

* ci(changesets): version packages (next) (#5840)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* docs: add changelog

* chore: bump peer deps

* feat: update templates

* chore(deps): bump engine.io from 4.1.1 to 4.1.2

Bumps [engine.io](https://github.com/socketio/engine.io) from 4.1.1 to 4.1.2.
- [Release notes](https://github.com/socketio/engine.io/releases)
- [Changelog](https://github.com/socketio/engine.io/blob/4.1.2/CHANGELOG.md)
- [Commits](https://github.com/socketio/engine.io/compare/4.1.1...4.1.2)

---
updated-dependencies:
- dependency-name: engine.io
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

* chore(deps): bump simple-get from 3.1.0 to 3.1.1

Bumps [simple-get](https://github.com/feross/simple-get) from 3.1.0 to 3.1.1.
- [Release notes](https://github.com/feross/simple-get/releases)
- [Commits](https://github.com/feross/simple-get/compare/v3.1.0...v3.1.1)

---
updated-dependencies:
- dependency-name: simple-get
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

* refactor: use-media query

* fix: color contrast of default input elements

* chore: cleanup

* docs: add changeset

* fix: lint error

* fix: suspense issue

* chore: add vite example

* fix: typescript errors

* chore: upgrade typescript and fix types

* chore: update test

* fix: lint errors

* chore(deps): bump follow-redirects from 1.14.5 to 1.14.9

Bumps [follow-redirects](https://github.com/follow-redirects/follow-redirects) from 1.14.5 to 1.14.9.
- [Release notes](https://github.com/follow-redirects/follow-redirects/releases)
- [Commits](https://github.com/follow-redirects/follow-redirects/compare/v1.14.5...v1.14.9)

---
updated-dependencies:
- dependency-name: follow-redirects
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

* ci(changesets): version packages (next)

* docs: add changelog

* fix(hooks): return a dynamic value for "aria-expanded" prop of getButtonProps

* fix: update csstype and typings

* fix: add reference to popover close button

* docs: add changeset

* Add new use toast prop type `icon` (#5930)

As per the new request of passing in a custom icon on a toast in the issue (#5930), 

Added a new property on the `UseToastOptions` interface which will be used by the toast component's props.

* Add support for rendering the passing in cusom icons on toasts (#5930)

* Add story book for toast with custom icon (#5930)

* Fix displaying a description when the toast is updated on storybook (#5930)

* Replace storybook component name typo

Replaced a typo that used `width` instead of `with` (#5930)

* Render custom icon inside `AlertIcon` to receive styles and themes (#5930).

Rendering the icon component differently or not inside the `AlertIcon` cause issues that will not pass the styles and themes to the custom icon. So to fix that I have added by rendering custom icon inside the `AlertIcon` component.

* Support passing in a custom icon as children to `AlertIcon` (#5930)

I have added support for passing in a custom icon as a children to `AlertIcon` which will help in rendering a custom icon within `AlertIcon`.

* chore: add changeset

* chore: add AlertIcon changeset

* Allow opt-in for outline/shadow on focused elements (#5619)

* Allow opt-in for outline/shadow on focused elements

This will need to be documented, but ultimately this allows users to override the automatic focus style overrides applied when using focus-visible.

The focus-visible documentation suggests adding a get-out like this, so Chakra really needs to give us one!

This fixes #5575

* Update packages/css-reset/src/css-reset.tsx

Co-authored-by: Tim Kolberger <tim@kolberger.eu>

Co-authored-by: Tim Kolberger <tim@kolberger.eu>

* chore(toast): update changeset (#5952)

* chore(css-reset): add changeset (#5953)

* fix: use-outside-click register clicks on document (#5838)

* test: add tests for use-outside-click

It's currently failing because clicks on the document aren't registered.
We want this because sometimes the body is shorter than the browser
height and a click in the blank space outside of the body isn't
registered.

* fix(use-outside-click): register clicks on document

I expect useOutsideClick() to respond to clicks anywhere on the page,
but it was ignoring clicks outside <body>. There can be space below the
end of the body for <body> elements who's height is less than the
browsers height.

Now, we respond to events on document too. the test added in the prior
commit now passes.

Fixes #5837

* test: add types in the use-outside-click test

Thanks Typescript!

* chore: add changeset (#5954)

* chore: do not publish src files

* chore: update changeset

* feat(image): add imageFallbackStrategies #5581 (#5680)

* chore: add changeset

* docs: add changeset

* refactor: Fix unsafe any in theme tools mode()

Currently, using `mode()` returns `any`, which causes TypeScript ESLint to throw an unsafe assignment error:
```
Unsafe assignment of an `any` value. (@typescript-eslint/no-unsafe-assignment)
 FILE  /Users/mc/Sites/saber/client/src/theme/global.ts:9:7

     7 |   global: (props) => ({
     8 |     '*, *::before, &::after': {
  >  9 |       borderColor: mode('gray.300', 'whiteAlpha.300')(props),
       |       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    10 |     },
    11 |   }),
    12 | }
```

However, looking at the value of `SystemStyleObject`, the return value needs to be a string:
`@chakra-ui/styled-system/src/system.types.ts`
```ts
type CSSDefinition<D> = D | string | RecursiveCSSSelector<D | string>

export interface RecursiveCSSSelector<D> {
  [selector: string]: CSSDefinition<D> & D
}

export type RecursiveCSSObject<D> = D &
  (D | RecursivePseudo<D> | RecursiveCSSSelector<D>)

export type CSSObject = RecursiveCSSObject<CSSWithMultiValues>

export type SystemStyleObject = CSSObject
```

This commit updates `mode()`'s `light` and `dark` args to be `string`, instead of `any`

* Make `leastDestructiveRef` property optional

* fix: restore old zIndex of linkbox

* chore: add changeset

* Fixed type

* fix: ts error from recent pr

* docs: add changeset

* test: resolve flaky tests

* test: temp resolve flaky tests

* ci(changesets): version packages (next)

* docs: add changelog

* docs: reword changesets

* chore: update use of deprecated props

* fix: popper match-width property

* fix: zero spacing value for wrap

* docs: add changeset

* feat: storybook-addon toolbar (#5922)

* build(storybook-addon): remove icons dependencies

* chore(storybook-addon): add a channel event

* chore(storybook-addon): remove the colorModeSwitch

* feat(storybook-addon): create a tool to change the color mode

* docs(storybook-addon): add tool docs

* docs(storybook-addon): include changeset

* docs(storybook-addon): fix some typos

* refactor(storybook-addon): rename the variable that retrieve the localstorage value

Co-authored-by: Burhanuddin Udaipurwala <udaipurwalaburhanuddin@gmail.com>

* refactor(storybook-addon): improve setDarkMode

setDarkMode get the previous value to toggle it

Co-authored-by: Burhanuddin Udaipurwala <udaipurwalaburhanuddin@gmail.com>

* refactor(storybook-addon): rename useCallback variable

Co-authored-by: Burhanuddin Udaipurwala <udaipurwalaburhanuddin@gmail.com>

* refactor(storybook-addon): rename some suggested variables

* chore: update storybook

* feat(sb-addon): use sb toolbar for color mode and direction toggle

* chore: dog feed storybook addon

* fix: type errors

* chore: polish

* feat(sb-addon): introduce getThemingArgTypes

* chore: use getThemingArgTypes in button story

* docs(sb-addon): update README

* chore(sb-addon): add changeset

* chore(sb-addon): replace icons

* feat: keep layout direction between stories

Co-authored-by: AndresSp <ngxcoder@gmail.com>
Co-authored-by: ngxCoder <87735757+ngxCoder@users.noreply.github.com>
Co-authored-by: Burhanuddin Udaipurwala <udaipurwalaburhanuddin@gmail.com>

* refactor: color mode and tests (#5946)

* refactor: color-mode utils and provider

* fix: error when options is null

* feat: support for cookie script

* feat: support for custom managers

* fix: scripts and provider

* chore: update the next-js examples

* refactor: color mode tests and manager

* chore: refactor next-js example

* chore: cleanup

* chore: set correct precedence for color-mode and add color-scheme

* docs: add changeset

* chore: use explicit return

Co-authored-by: Tim Kolberger <tim@kolberger.eu>

* chore: use explicit return

Co-authored-by: Tim Kolberger <tim@kolberger.eu>

* test: update mocks in utils

* test: add root match media mock

* chore: cleanup

* docs: update changeset

* chore: update utils

* test: update to match expectations

* test: update to match expectations

* chore: update color mode provider

Co-authored-by: Tim Kolberger <tim@kolberger.eu>

* tooling: use `swc` for `ts-node` (#5872)

* build: update ts-node; use swc: true option

see: https://typestrong.org/ts-node/docs/swc/

* chore: add @swc/core dependency

* feat: add swc as dependency to the cli package

* chore: regenerate lock file

Co-authored-by: Tim Kolberger <tim@kolberger.eu>

* ci(changesets): version packages (next) (#5971)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* docs: add changelog

* chore: deprecated tinycolor helper functions

* chore: update readme for v2 (#5991)

* chore: update readme for v2

* chore: apply review suggestions

Co-authored-by: Tim Kolberger <tim@kolberger.eu>

Co-authored-by: Tim Kolberger <tim@kolberger.eu>

* fix(storybook-addon): use default theme as fallback (#5990)

* fix(storybook-addon): use default theme as fallback

* fix(storybook-example): update the example with the new storybook addon

* chore: add changeset for all packages (#5989)

* ci(changesets): version packages (next) (#5993)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* docs: add changelog

* chore: bump react-remove-scroll

* chore: exit pre release (#6009)

* docs: clean changelog (#6010)

* ci(changesets): version packages (#5999)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* docs: clean changelogrc

Co-authored-by: Brennvo <brennanarvo@gmail.com>
Co-authored-by: Segun Adebayo <joseshegs@gmail.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Thomas Hermann <1596280+novascreen@users.noreply.github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
Co-authored-by: s97712 <s97712@qq.com>
Co-authored-by: Marek Sedlacek <marek.sedlacek.sk@gmail.com>
Co-authored-by: Dennis Morello <dennis.morello@satispay.com>
Co-authored-by: Tatsuya Itakura <itkrt2y.591721200@gmail.com>
Co-authored-by: Hamdy Dakkak <hamdy.dakkak@owkin.com>
Co-authored-by: Haneen Mahdin <haneenmahdin@gmail.com>
Co-authored-by: Tom Hicks <tomhicks@users.noreply.github.com>
Co-authored-by: Daniel Beardsley <daniel.beardsley@gmail.com>
Co-authored-by: Daniel Schulz <daniel@schulz.codes>
Co-authored-by: Alex Burner <alexburner@users.noreply.github.com>
Co-authored-by: Michael Schmidt <msrd0000@gmail.com>
Co-authored-by: Max Friedrich <max@friedrich.dev>
Co-authored-by: RunDevelopment <mitchi5000.ms@googlemail.com>
Co-authored-by: AndresSp <ngxcoder@gmail.com>
Co-authored-by: ngxCoder <87735757+ngxCoder@users.noreply.github.com>
Co-authored-by: Burhanuddin Udaipurwala <udaipurwalaburhanuddin@gmail.com>
Co-authored-by: Walter Barbagallo <brb.walter@gmail.com>
Co-authored-by: Johann Ehlers <dev@johann-ehlers.eu>
2022-05-12 19:36:17 +02:00
github-actions[bot] 75277aac90 ci(changesets): version packages 2022-04-06 14:14:05 +00:00
Segun Adebayo 6d02837958 Merge branch 'main' into fix/typos 2022-04-04 13:20:08 +04:00
github-actions[bot] 84ea77718a ci(changesets): version packages 2022-03-25 18:29:20 +00:00
Andreas Richter 7a8deb7f86 docs: fix typos 2022-03-18 05:34:20 +01:00
github-actions[bot] 092b20f3e9 ci(changesets): version packages (#5655)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-03-01 00:01:13 +01:00
github-actions[bot] ba2fe6c4b8 ci(changesets): version packages (#5627)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-02-20 13:36:13 +01:00
github-actions[bot] 30227245b6 ci(changesets): version packages (#5539)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-02-20 13:16:10 +01:00
github-actions[bot] 5a6537a05f ci(changesets): version packages (#5537)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-02-05 14:31:10 +01:00
github-actions[bot] b4ce6ee2df ci(changesets): version packages (#5480)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-02-05 13:32:33 +01:00
Johann Ehlers f1d0247498 chore: allow framer motion v6 (#5499)
* chore: allow framer motion v6 as peer dependency

* docs: add changeset
2022-01-31 23:25:43 +01:00
github-actions[bot] 8b1b0d24d2 ci(changesets): version packages (#5460)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-01-26 19:42:13 +01:00
github-actions[bot] b8508b0f3f ci(changesets): version packages (#5364)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-01-25 19:02:13 +01:00
github-actions[bot] 77192eee92 ci(changesets): version packages (#5323)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-01-09 21:50:59 +01:00
github-actions[bot] c2dafb2fbb ci(changesets): version packages 2022-01-02 08:56:55 +00:00
github-actions[bot] 5aa302a018 ci(changesets): version packages 2021-12-09 13:29:30 +00:00