Commit Graph

146 Commits

Author SHA1 Message Date
Segun Adebayo 740895d838 feat(mcp): support stdio mcp server (#10194)
* chore: chakr ui mcp init

* feat: add docgen package for generating doc types

* feat: add get semantic token, get recipe and get example mcp tools

* feat: enhance get_component_props tool to combine all props

* feat: add get component list mcp tool

* feat: add text styles tool

* chore: change fetch URL for get_component_props mcp tool

* feat: add list blocks tool

* feat: add get_component_templates toold

* chore: remove sensitive keys from branch

* chore: remove .vscode/mcp.json from version control

* chore: update .gitignore file

* feat: add migration tool

* refactor: restructure tools

* docs: better readme

* chore: add inspector

* chore: more migration stuff

* chore: trim migration

* chore: add migration scenario

* chore: remove components.json file and fetch component list from remote URL

* chore: refactor tool initialization to separate base and pro tools

* chore: integrate CHART_COMPONENTS into getComponentPropsTool for filtering

* feat: add getTokenTool and themeCustomizationTool for token management

* refactor: rework mcp fns

* chore: update bg gradient migration

* refactor: fetch url

* docs: update

* feat: implement HTTP server for mcp

* refactor: tools and server

* chore: expose prompts

* chore: setup vc deployment

* chore: rm unused

* refactor: streamline theme tools

* chore: update

* docs: update readme

* docs: changeset

---------

Co-authored-by: Tioluwani Kolawole <kolawole8tiolu@gmail.com>
2025-07-28 16:11:48 +01:00
Segun Adebayo 010f256d74 chore: bump ark and change custom condition 2025-06-11 17:05:58 +01:00
Segun Adebayo 3dca2e88d6 chore: bump deps 2025-04-07 15:02:49 +01:00
Segun Adebayo 56d1a2a8be ci: update slack script 2024-10-07 18:58:44 +01:00
Ivica Batinić 6dde022877 (v3) chore: remove utils package (#8829)
* chore: remove utils package

* chore: additional changes
2024-09-14 20:38:44 +01:00
Ivica Batinić 806be96aa3 (v3) chore: remove hooks package (#8815)
* chore: remove hooks lib

* chore: add changeset

* chore: fix npm install

* chore: fix old website

* chore: add missing libs

* chore: fix build
2024-09-14 11:25:45 +01:00
Eelco Wiersma 1d2c94b004 chore: remove source before packing (#8825)
* chore: remove source before packing

* chore: fix formatting
2024-09-12 00:45:09 +01:00
Eelco Wiersma d5a225f1bc fix: esm exports (#8740)
* fix: add anatomy

* feat: rename .mjs to .js and fix module types

* chore: add changeset

* chore: add changeset

---------

Co-authored-by: Segun Adebayo <joseshegs@gmail.com>
2024-08-17 12:32:13 +01:00
Segun Adebayo 0952e4665a chore: update deps 2024-06-29 02:15:28 +01:00
Segun Adebayo 16dd0076e3 refactor: symlink script to use abs path 2024-06-26 12:22:02 +01:00
Segun Adebayo d9f9867e6d chore: add scripts to symlink zag and ark 2024-06-24 03:07:47 +01:00
Segun Adebayo 691f354e83 build: fix 2024-05-30 16:16:12 +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
Segun Adebayo e51633213b chore(examples): prepare v3 + next 14 app dir 2024-03-28 14:59:05 +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
Segun Adebayo 7b6e66a15b build: refactor all components to single package (#8153)
* refactor: component setup

* refactor: component setup

* chore: refactor tests

* chore: cleanup

* refactor: get typecheck working

* chore: flatten package structure

* refactor: packages

* refactor: utilities and hooks

* refactor: prefer granular imports

* chore: get build working for packages

* chore: remove redundant cra templates

* refactor: move cli to packages

* chore: move all things to packages

* chore: ensure all builds work as expected

* chore: save progress

* chore: refactor more components

* chore: refactor more components

* chore: refactor more components

* chore: get tests working

* fix: remaining tests

* chore: update tests

* chore: update scripts

* chore: update dev script

* chore: rm plop

* fix: stories and cleanup providers

* refactor: packages

* chore: update

* chore: cleanup scripts

* chore: update

* fix: storybook build

* chore: mv color-mode and system into react

* chore: improve scripts

* chore: updates

* chore: cleanup changelog

* docs: cleanup changelog

* refactor: props docs scripts

* fix: typecheck

* fix: eslint

* chore: udpate slack scripts

* refactor: split layout compoents into folders
2024-01-09 18:50:17 +00:00
Segun Adebayo de961b122e chore: update dependencies 2023-08-22 12:06:15 +01:00
Segun Adebayo 702e258208 fix(props-docs): clean output 2023-01-20 14:47:24 +04:00
Segun Adebayo c57b00f80f fix: api docs and missing exports (#7248) 2023-01-16 15:47:49 +04:00
Segun Adebayo 024631a7cd ci: use node-fetch to prevent reference error 2023-01-12 14:49:18 +04:00
Segun Adebayo 08e3ffc4ad refactor: component api docs generation (#7216) 2023-01-12 00:14:45 +04:00
Segun Adebayo 93f3e0cb93 ci: update slack data 2023-01-02 17:07:40 +04:00
Segun Adebayo 973c636267 ci: update slack data 2023-01-02 16:45:19 +04:00
Segun Adebayo 8ec15493bc chore: cleanup workflow scripts 2023-01-02 16:31:33 +04:00
Joseph Yu 0eedc151ca fix(utils): reduce gaps in media queries for breakpoints (#6744)
Co-authored-by: Segun Adebayo <joseshegs@gmail.com>
Closes https://github.com/chakra-ui/chakra-ui/issues/6743
2022-12-21 14:51:01 +04:00
Lazar Nikolov 66d7a0f655 refactor(changelog): changelog content cleanup (#6764) 2022-09-29 14:40:15 +04:00
Christian Schröter 9de39921b9 Declare package exports (#6648) 2022-09-20 16:00:31 +04:00
Lazar Nikolov 8bdd883da7 refactor(changelog): sanitizing changelogs (#6654)
* refactor(changelog): sanitizing changelogs

* refactor(changelog): fixed formatting

* refactor(changelog): formatting changelogs in ci

* refactor(changelog): formatting changelogs
2022-09-08 12:41:11 +04:00
Segun Adebayo 1b13d203c9 fix: get discord ci script working 2022-08-29 21:20:18 +04:00
Segun Adebayo 6b6109cf72 chore: update changelog frontmatter 2022-08-26 17:08:53 +04:00
Segun Adebayo d302d6a44e Update changelog workflow (#6567)
* chore: update changelog scripts

* chore: write changelog history

* ci: update workflows
2022-08-26 12:20:14 +04: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
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 597966e46f refactor: slider component (#6472)
* refactor: slider component

* chore: update pointer event utils

* fix: sync codesandbox

* fix: stale closure issues

* chore: resolve test for now
2022-08-13 09:05:18 +04:00
Segun Adebayo dffc18b173 refactor: accordion component (#6462)
* feat: add merge-refs

* docs: update changelog

* chore: update context

* chore: update context

* chore: add pure

* refactor: accordion package

* docs: add changelog

* fix: update use-callback-ref

* fix: typescript

* chore: add script to update csb

* chore: update context pkg

* chore: update lockfile
2022-08-11 12:31:25 +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 be8c25c645 chore: update plop generation 2022-07-25 11:06:20 +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
Tatsuya Itakura 326ad9d335 chore: update test packages 2022-06-12 22:35:18 +09:00
Tyler Pfledderer c4b968da0d ci(changelog-write): include script to add live=false to jsx snippets, if missing 2022-05-22 10:24:43 -04:00
Segun Adebayo b5c814c181 ci: update script 2022-05-17 12:40:40 +04:00
Segun Adebayo ef291065f8 chore: cleanup scripts and add twitter script 2022-05-16 17:13:20 +04:00
Tim Kolberger 790d2417a3 docs: add changelog (#6013) 2022-05-12 20:00:41 +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
Segun Adebayo 9eaa11a475 chore: update test 2021-12-20 04:04:41 +01:00
Segun Adebayo f52ca81e61 test: update setup and cli snapshots 2021-12-20 03:42:52 +01:00
Segun Adebayo dfb80f13f3 chore: rm unused 2021-12-08 17:42:38 +04:00
Lazar Nikolov ac93b581d4 docs(chore): removed docsite project from this repo 2021-11-06 13:05:52 +01:00
Segun Adebayo 69eacc9a5b chore: tweak based on review 2021-11-05 16:03:40 +04:00