From e2b3b93568d934c29216c50607d9ac4e5dceac9a Mon Sep 17 00:00:00 2001 From: Laura Silva <91160746+silvalaura@users.noreply.github.com> Date: Mon, 16 Dec 2024 14:58:42 -0500 Subject: [PATCH] Manually sync main -> dev (v4.7.0) (#1601) Signed-off-by: dependabot[bot] Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: github-bot Co-authored-by: Jerrod Heiser Co-authored-by: noahwebs <88386737+noahwebs@users.noreply.github.com> Co-authored-by: ccedrone <77400920+ccedrone@users.noreply.github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Igor Fesyk <104437118+IgorFesyk@users.noreply.github.com> Co-authored-by: Ihor Fesyk Co-authored-by: acoopa <37028457+acoopa@users.noreply.github.com> Co-authored-by: Collange, Etienne Co-authored-by: orion-cengage Co-authored-by: ViktorBeshentsev <165167848+ViktorBeshentsev@users.noreply.github.com> Co-authored-by: Viktor Beshentsev Co-authored-by: vverein <167213270+vverein@users.noreply.github.com> Co-authored-by: TetianaTkachenko Co-authored-by: Chris Cedrone Co-authored-by: Chris Cedrone Co-authored-by: OlenaYashyna <38716686+OlenaYashyna@users.noreply.github.com> Co-authored-by: yatimov <119411532+yatimov@users.noreply.github.com> Co-authored-by: Alisher Yatimov Co-authored-by: Vladislav Verein Co-authored-by: chris-cedrone-cengage <77400920+chris-cedrone-cengage@users.noreply.github.com> Co-authored-by: k4rnaj1k <71838534+k4rnaj1k@users.noreply.github.com> Co-authored-by: moathabuhamad-cengage Co-authored-by: artemtrusov-cengage Co-authored-by: vitaliirumiantsev-cengage Co-authored-by: Oleh Noskov Co-authored-by: nikitaorliak-cengage Co-authored-by: Nikita Orliak --- .changeset/README.md | 8 - .../a11y-Stepper-vertical-orientation.md | 5 - ...breadcrumb-hide-svg-from-screen-readers.md | 5 - .../a11y-button-remove-animation-presses.md | 5 - ...harts-space-around-circle-nodes-missing.md | 5 - .changeset/a11y-checkBox-labels-not-read.md | 5 - ...y-checkbox-hide-svg-from-screen-readers.md | 5 - .changeset/a11y-combobox-clear-focus.md | 5 - .changeset/a11y-datePicker-nav-issues.md | 5 - .changeset/a11y-datePicker-shortcut.md | 5 - ...a11y-datepicker-calendar-header-columns.md | 5 - .changeset/a11y-docs-Modal.md | 5 - .changeset/a11y-docs-drawer-focus.md | 5 - .changeset/a11y-docs-img-empty-alts.md | 5 - .changeset/a11y-drawer-navigation-focus.md | 5 - .changeset/a11y-dropdown-active-item.md | 5 - ...y-dropdown-hide-svg-from-screen-readers.md | 5 - ...11y-list-hide-icons-from-assistive-tech.md | 5 - .changeset/a11y-progressBar-animation.md | 5 - .changeset/a11y-search-loading.md | 5 - .changeset/a11y-select-accessibility.md | 5 - .changeset/a11y-timePicker-shortcut.md | 5 - .changeset/a11y-treeview-navigation.md | 5 - ...11y-useFocusLock-hook-disabled-elements.md | 5 - .changeset/build-upgrade-lerna.md | 5 - .changeset/chore-deprecate-header.md | 5 - .changeset/chore-deprecate-schema.md | 5 - .changeset/docs-contguidelines.md | 5 - .changeset/docs-emotion.md | 5 - .changeset/dropdown-deprecate.md | 5 - .changeset/dropdown-safari.md | 5 - .changeset/feat-heading-add-props.md | 5 - .../feat-input-error-state-update-colors.md | 5 - .changeset/feat-input-help-text.md | 5 - ...avTab-support-overwriting-textTransform.md | 5 - .changeset/feat-progressBar-update-colors.md | 5 - .../feat-select-combobox-dropdown-viewport.md | 5 - .changeset/feat-success-button.md | 5 - ...eat-treeview-add-support-for-isdisabled.md | 5 - .changeset/feat-treeview-onexpandedchange.md | 5 - .changeset/fix-blockQuote-border-color.md | 5 - .changeset/fix-docs-examples.md | 5 - ...xpanded-items-should-expand-all-parents.md | 5 - .changeset/fix-input-focus-outline.md | 5 - .changeset/fix-listItem-icons-color.md | 5 - .changeset/fix-modal-focuslock.md | 5 - .../fix-select-combobox-multi-outline.md | 5 - .changeset/fix-select-placeholder-color.md | 5 - .changeset/fix-stories-files.md | 5 - .changeset/fix-tabs-center-active-tab.md | 5 - .../fix-timePicker-adjust-AM-PM-width.md | 5 - .../fix-toast-loading-ring-misaligned.md | 5 - .changeset/fix-treeview-docs-example.md | 5 - .changeset/heading-margins.md | 5 - .changeset/implement-scrollspy-in-docs.md | 5 - .changeset/input-props.md | 5 - .changeset/inputwrapperstyles.md | 5 - .../{tree-initEx-docs.md => manualSync4-7.md} | 2 +- .changeset/pre.json | 81 --- .changeset/rude-adults-knock.md | 5 + .changeset/search-clear-overlaps.md | 5 - .changeset/selecteItemButton-focus.md | 5 - .changeset/soft-ligers-laugh.md | 5 - .changeset/sync4-6.md | 5 - .changeset/tag-focus.md | 5 - .changeset/toggleButtonGroup.md | 5 - .changeset/tree-showAllExample.md | 5 - .changeset/tree-unitTests.md | 5 - .changeset/treeViewSelectItemsOutside.md | 5 - .storybook/main.js | 11 +- package-lock.json | 42 +- package.json | 3 +- packages/charts/CHANGELOG.md | 6 + packages/charts/package.json | 11 +- .../src/components/LineChart/GraphTooltip.tsx | 1 - packages/dropzone/CHANGELOG.md | 2 + packages/dropzone/package.json | 4 +- packages/react-magma-dom/CHANGELOG.md | 68 +- packages/react-magma-dom/package.json | 2 +- .../components/Accordion/AccordionPanel.tsx | 1 + .../components/Breadcrumb/BreadcrumbItem.tsx | 1 - .../components/DatePicker/CalendarMonth.tsx | 1 + .../components/DatePicker/DatePicker.test.js | 8 +- .../src/components/Dropdown/Dropdown.tsx | 2 +- .../components/Dropdown/DropdownContent.tsx | 15 +- .../src/components/Input/Input.stories.tsx | 25 +- .../src/components/Select/ItemsList.tsx | 2 +- .../components/Stepper/Stepper.stories.tsx | 3 +- .../src/components/TreeView/TreeItem.tsx | 13 +- .../src/components/TreeView/TreeView.test.js | 585 +++++++++++++----- packages/react-magma-dom/src/utils/index.ts | 9 +- packages/schema-renderer/CHANGELOG.md | 6 + packages/schema-renderer/package.json | 4 +- patterns/header/CHANGELOG.md | 6 + patterns/header/package.json | 4 +- website/react-magma-docs/CHANGELOG.md | 73 +++ website/react-magma-docs/package-lock.json | 5 + website/react-magma-docs/package.json | 12 +- .../src/pages/api-intro/changelog.mdx | 57 +- .../react-magma-docs/src/pages/api/chart.mdx | 54 +- 100 files changed, 767 insertions(+), 690 deletions(-) delete mode 100644 .changeset/README.md delete mode 100644 .changeset/a11y-Stepper-vertical-orientation.md delete mode 100644 .changeset/a11y-breadcrumb-hide-svg-from-screen-readers.md delete mode 100644 .changeset/a11y-button-remove-animation-presses.md delete mode 100644 .changeset/a11y-charts-space-around-circle-nodes-missing.md delete mode 100644 .changeset/a11y-checkBox-labels-not-read.md delete mode 100644 .changeset/a11y-checkbox-hide-svg-from-screen-readers.md delete mode 100644 .changeset/a11y-combobox-clear-focus.md delete mode 100644 .changeset/a11y-datePicker-nav-issues.md delete mode 100644 .changeset/a11y-datePicker-shortcut.md delete mode 100644 .changeset/a11y-datepicker-calendar-header-columns.md delete mode 100644 .changeset/a11y-docs-Modal.md delete mode 100644 .changeset/a11y-docs-drawer-focus.md delete mode 100644 .changeset/a11y-docs-img-empty-alts.md delete mode 100644 .changeset/a11y-drawer-navigation-focus.md delete mode 100644 .changeset/a11y-dropdown-active-item.md delete mode 100644 .changeset/a11y-dropdown-hide-svg-from-screen-readers.md delete mode 100644 .changeset/a11y-list-hide-icons-from-assistive-tech.md delete mode 100644 .changeset/a11y-progressBar-animation.md delete mode 100644 .changeset/a11y-search-loading.md delete mode 100644 .changeset/a11y-select-accessibility.md delete mode 100644 .changeset/a11y-timePicker-shortcut.md delete mode 100644 .changeset/a11y-treeview-navigation.md delete mode 100644 .changeset/a11y-useFocusLock-hook-disabled-elements.md delete mode 100644 .changeset/build-upgrade-lerna.md delete mode 100644 .changeset/chore-deprecate-header.md delete mode 100644 .changeset/chore-deprecate-schema.md delete mode 100644 .changeset/docs-contguidelines.md delete mode 100644 .changeset/docs-emotion.md delete mode 100644 .changeset/dropdown-deprecate.md delete mode 100644 .changeset/dropdown-safari.md delete mode 100644 .changeset/feat-heading-add-props.md delete mode 100644 .changeset/feat-input-error-state-update-colors.md delete mode 100644 .changeset/feat-input-help-text.md delete mode 100644 .changeset/feat-navTab-support-overwriting-textTransform.md delete mode 100644 .changeset/feat-progressBar-update-colors.md delete mode 100644 .changeset/feat-select-combobox-dropdown-viewport.md delete mode 100644 .changeset/feat-success-button.md delete mode 100644 .changeset/feat-treeview-add-support-for-isdisabled.md delete mode 100644 .changeset/feat-treeview-onexpandedchange.md delete mode 100644 .changeset/fix-blockQuote-border-color.md delete mode 100644 .changeset/fix-docs-examples.md delete mode 100644 .changeset/fix-initial-expanded-items-should-expand-all-parents.md delete mode 100644 .changeset/fix-input-focus-outline.md delete mode 100644 .changeset/fix-listItem-icons-color.md delete mode 100644 .changeset/fix-modal-focuslock.md delete mode 100644 .changeset/fix-select-combobox-multi-outline.md delete mode 100644 .changeset/fix-select-placeholder-color.md delete mode 100644 .changeset/fix-stories-files.md delete mode 100644 .changeset/fix-tabs-center-active-tab.md delete mode 100644 .changeset/fix-timePicker-adjust-AM-PM-width.md delete mode 100644 .changeset/fix-toast-loading-ring-misaligned.md delete mode 100644 .changeset/fix-treeview-docs-example.md delete mode 100644 .changeset/heading-margins.md delete mode 100644 .changeset/implement-scrollspy-in-docs.md delete mode 100644 .changeset/input-props.md delete mode 100644 .changeset/inputwrapperstyles.md rename .changeset/{tree-initEx-docs.md => manualSync4-7.md} (50%) delete mode 100644 .changeset/pre.json create mode 100644 .changeset/rude-adults-knock.md delete mode 100644 .changeset/search-clear-overlaps.md delete mode 100644 .changeset/selecteItemButton-focus.md delete mode 100644 .changeset/soft-ligers-laugh.md delete mode 100644 .changeset/sync4-6.md delete mode 100644 .changeset/tag-focus.md delete mode 100644 .changeset/toggleButtonGroup.md delete mode 100644 .changeset/tree-showAllExample.md delete mode 100644 .changeset/tree-unitTests.md delete mode 100644 .changeset/treeViewSelectItemsOutside.md diff --git a/.changeset/README.md b/.changeset/README.md deleted file mode 100644 index e5b6d8d6a6..0000000000 --- a/.changeset/README.md +++ /dev/null @@ -1,8 +0,0 @@ -# Changesets - -Hello and welcome! This folder has been automatically generated by `@changesets/cli`, a build tool that works -with multi-package repos, or single-package repos to help you version and publish your code. You can -find the full documentation for it [in our repository](https://github.com/changesets/changesets) - -We have a quick list of common questions to get you started engaging with this project in -[our documentation](https://github.com/changesets/changesets/blob/main/docs/common-questions.md) diff --git a/.changeset/a11y-Stepper-vertical-orientation.md b/.changeset/a11y-Stepper-vertical-orientation.md deleted file mode 100644 index 360e840cb9..0000000000 --- a/.changeset/a11y-Stepper-vertical-orientation.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'react-magma-dom': minor ---- - -feat(Stepper): Add vertical orientation for `Stepper`. \ No newline at end of file diff --git a/.changeset/a11y-breadcrumb-hide-svg-from-screen-readers.md b/.changeset/a11y-breadcrumb-hide-svg-from-screen-readers.md deleted file mode 100644 index d855e6b227..0000000000 --- a/.changeset/a11y-breadcrumb-hide-svg-from-screen-readers.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'react-magma-dom': patch ---- - -fix(Breadcrumb): Hide SVGs from screen readers by adding `aria-hidden="true"` to the `span` element that wraps the SVGs. diff --git a/.changeset/a11y-button-remove-animation-presses.md b/.changeset/a11y-button-remove-animation-presses.md deleted file mode 100644 index 9276bfda30..0000000000 --- a/.changeset/a11y-button-remove-animation-presses.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'react-magma-dom': patch ---- - -fix(Button): Remove animation presses for `Button`. \ No newline at end of file diff --git a/.changeset/a11y-charts-space-around-circle-nodes-missing.md b/.changeset/a11y-charts-space-around-circle-nodes-missing.md deleted file mode 100644 index 7d3c9fbfe4..0000000000 --- a/.changeset/a11y-charts-space-around-circle-nodes-missing.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@react-magma/charts': patch ---- - -fix(Charts): Fix circle styles for `Charts`. diff --git a/.changeset/a11y-checkBox-labels-not-read.md b/.changeset/a11y-checkBox-labels-not-read.md deleted file mode 100644 index c3531b033b..0000000000 --- a/.changeset/a11y-checkBox-labels-not-read.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'react-magma-dom': patch ---- - -fix(CheckBox): Fix unreadable labels in `CheckBox` for screen readers. \ No newline at end of file diff --git a/.changeset/a11y-checkbox-hide-svg-from-screen-readers.md b/.changeset/a11y-checkbox-hide-svg-from-screen-readers.md deleted file mode 100644 index af5f67cb4e..0000000000 --- a/.changeset/a11y-checkbox-hide-svg-from-screen-readers.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'react-magma-dom': patch ---- - -fix(CheckBox): Hide SVGs from screen readers by adding `aria-hidden="true"` to the `span` element that wraps the SVGs. diff --git a/.changeset/a11y-combobox-clear-focus.md b/.changeset/a11y-combobox-clear-focus.md deleted file mode 100644 index 66360ed5c7..0000000000 --- a/.changeset/a11y-combobox-clear-focus.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'react-magma-dom': patch ---- - -fix(Combobox): Fix focus issue after triggering the clear button diff --git a/.changeset/a11y-datePicker-nav-issues.md b/.changeset/a11y-datePicker-nav-issues.md deleted file mode 100644 index a33e437c99..0000000000 --- a/.changeset/a11y-datePicker-nav-issues.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'react-magma-dom': patch ---- - -fix(DatePicker): Fix navigation and accessibility issues. \ No newline at end of file diff --git a/.changeset/a11y-datePicker-shortcut.md b/.changeset/a11y-datePicker-shortcut.md deleted file mode 100644 index f182e40b7c..0000000000 --- a/.changeset/a11y-datePicker-shortcut.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'react-magma-dom': patch ---- - -fix(DatePicker): Remove shortcut to open `HelperInformation`. \ No newline at end of file diff --git a/.changeset/a11y-datepicker-calendar-header-columns.md b/.changeset/a11y-datepicker-calendar-header-columns.md deleted file mode 100644 index 0b483cca17..0000000000 --- a/.changeset/a11y-datepicker-calendar-header-columns.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'react-magma-dom': patch ---- - -fix(DatePicker): Add `aria-label` to calendar header columns. diff --git a/.changeset/a11y-docs-Modal.md b/.changeset/a11y-docs-Modal.md deleted file mode 100644 index 614221de0d..0000000000 --- a/.changeset/a11y-docs-Modal.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'react-magma-docs': patch ---- - -fix(Modal): Fix nested modal example focus lock. \ No newline at end of file diff --git a/.changeset/a11y-docs-drawer-focus.md b/.changeset/a11y-docs-drawer-focus.md deleted file mode 100644 index f6c6b8b4cd..0000000000 --- a/.changeset/a11y-docs-drawer-focus.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'react-magma-docs': patch ---- - -fix(Drawer): Corrected examples for a `drawer` component to ensure focus returns to the opening button after the `drawer` closes. diff --git a/.changeset/a11y-docs-img-empty-alts.md b/.changeset/a11y-docs-img-empty-alts.md deleted file mode 100644 index 85a6ffe05b..0000000000 --- a/.changeset/a11y-docs-img-empty-alts.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'react-magma-docs': patch ---- - -fix(Docs): add "GATSBY_EMPTY_ALT" as alt text for empty alts. \ No newline at end of file diff --git a/.changeset/a11y-drawer-navigation-focus.md b/.changeset/a11y-drawer-navigation-focus.md deleted file mode 100644 index a5ad04d4cc..0000000000 --- a/.changeset/a11y-drawer-navigation-focus.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'react-magma-dom': patch ---- - -fix(Drawer): Fix trapped focus diff --git a/.changeset/a11y-dropdown-active-item.md b/.changeset/a11y-dropdown-active-item.md deleted file mode 100644 index d69a0939fd..0000000000 --- a/.changeset/a11y-dropdown-active-item.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'react-magma-dom': patch ---- - -fix(Dropdown): Fix a11y for active index diff --git a/.changeset/a11y-dropdown-hide-svg-from-screen-readers.md b/.changeset/a11y-dropdown-hide-svg-from-screen-readers.md deleted file mode 100644 index d7db6ac51c..0000000000 --- a/.changeset/a11y-dropdown-hide-svg-from-screen-readers.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'react-magma-dom': patch ---- - -fix(Dropdown): Hide SVGs from screen readers by adding `aria-hidden="true"` to the `svg` elements. diff --git a/.changeset/a11y-list-hide-icons-from-assistive-tech.md b/.changeset/a11y-list-hide-icons-from-assistive-tech.md deleted file mode 100644 index 78db391ae1..0000000000 --- a/.changeset/a11y-list-hide-icons-from-assistive-tech.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'react-magma-dom': patch ---- - -fix(List): Hide SVGs from assistive tech by adding `aria-hidden="true"` to the `span` element that wraps the SVGs. diff --git a/.changeset/a11y-progressBar-animation.md b/.changeset/a11y-progressBar-animation.md deleted file mode 100644 index 5a465919b8..0000000000 --- a/.changeset/a11y-progressBar-animation.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'react-magma-dom': patch ---- - -fix(ProgressBar): Remove animation if the user has `prefers-reduced-motion` media query set. diff --git a/.changeset/a11y-search-loading.md b/.changeset/a11y-search-loading.md deleted file mode 100644 index 232484e7d5..0000000000 --- a/.changeset/a11y-search-loading.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'react-magma-dom': patch ---- - -fix(Search): Fix the disappearing focus on the button when loading diff --git a/.changeset/a11y-select-accessibility.md b/.changeset/a11y-select-accessibility.md deleted file mode 100644 index 8f829d00aa..0000000000 --- a/.changeset/a11y-select-accessibility.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'react-magma-dom': patch ---- - -fix(Select): Fix accessibility issue for `clearIndicator` inside `SelectTriggerButton`. diff --git a/.changeset/a11y-timePicker-shortcut.md b/.changeset/a11y-timePicker-shortcut.md deleted file mode 100644 index bc4e3552a6..0000000000 --- a/.changeset/a11y-timePicker-shortcut.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'react-magma-docs': patch ---- - -fix(TimePicker): improve TimePicker internationalization example. \ No newline at end of file diff --git a/.changeset/a11y-treeview-navigation.md b/.changeset/a11y-treeview-navigation.md deleted file mode 100644 index b0e2b5d7c3..0000000000 --- a/.changeset/a11y-treeview-navigation.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'react-magma-dom': patch ---- - -fix(TreeView): Improve screenreader accessibility diff --git a/.changeset/a11y-useFocusLock-hook-disabled-elements.md b/.changeset/a11y-useFocusLock-hook-disabled-elements.md deleted file mode 100644 index 81e468c173..0000000000 --- a/.changeset/a11y-useFocusLock-hook-disabled-elements.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'react-magma-dom': patch ---- - -fix(useFocusLock): Fix the `useFocusLock` hook if the first or last element is disabled. \ No newline at end of file diff --git a/.changeset/build-upgrade-lerna.md b/.changeset/build-upgrade-lerna.md deleted file mode 100644 index 76bf5c895a..0000000000 --- a/.changeset/build-upgrade-lerna.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'react-magma-docs': patch ---- - -build(Lerna): update and add local caching for build and test commands`. diff --git a/.changeset/chore-deprecate-header.md b/.changeset/chore-deprecate-header.md deleted file mode 100644 index a45d294823..0000000000 --- a/.changeset/chore-deprecate-header.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@cengage-patterns/header': patch ---- - -Deprecate @cengage-patterns/header package. diff --git a/.changeset/chore-deprecate-schema.md b/.changeset/chore-deprecate-schema.md deleted file mode 100644 index 0321ae47f3..0000000000 --- a/.changeset/chore-deprecate-schema.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@react-magma/schema-renderer': patch ---- - -Deprecate @react-magma/schema-renderer package. diff --git a/.changeset/docs-contguidelines.md b/.changeset/docs-contguidelines.md deleted file mode 100644 index 8358313b14..0000000000 --- a/.changeset/docs-contguidelines.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'react-magma-docs': patch ---- - -docs: Fix contribution guidelines page \ No newline at end of file diff --git a/.changeset/docs-emotion.md b/.changeset/docs-emotion.md deleted file mode 100644 index a6a0cb6e70..0000000000 --- a/.changeset/docs-emotion.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'react-magma-docs': patch ---- - -docs(emotion): Update changelog to explain possible issue with emotion/css. \ No newline at end of file diff --git a/.changeset/dropdown-deprecate.md b/.changeset/dropdown-deprecate.md deleted file mode 100644 index aa2f974bb6..0000000000 --- a/.changeset/dropdown-deprecate.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'react-magma-dom': patch ---- - -chore(Dropdown): Deprecate `dropDirection` & `alignment` props. These are no longer necessary with viewport detection support. \ No newline at end of file diff --git a/.changeset/dropdown-safari.md b/.changeset/dropdown-safari.md deleted file mode 100644 index 704fddbe3b..0000000000 --- a/.changeset/dropdown-safari.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'react-magma-dom': patch ---- - -fix(Dropdown): Fix the dropdown closing on second button click in Safari diff --git a/.changeset/feat-heading-add-props.md b/.changeset/feat-heading-add-props.md deleted file mode 100644 index db20e6c839..0000000000 --- a/.changeset/feat-heading-add-props.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'react-magma-dom': patch ---- - -fix(Heading): Add the `noTopMargin` and `noBottomMargin` props to the `Heading` component. diff --git a/.changeset/feat-input-error-state-update-colors.md b/.changeset/feat-input-error-state-update-colors.md deleted file mode 100644 index 834b63f661..0000000000 --- a/.changeset/feat-input-error-state-update-colors.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'react-magma-dom': minor ---- - -feat(Input): Update colors for error message, icon and border in dark mode. diff --git a/.changeset/feat-input-help-text.md b/.changeset/feat-input-help-text.md deleted file mode 100644 index 39d0e064b5..0000000000 --- a/.changeset/feat-input-help-text.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'react-magma-dom': minor ---- - -feat(Input): Update additional children position based on label position \ No newline at end of file diff --git a/.changeset/feat-navTab-support-overwriting-textTransform.md b/.changeset/feat-navTab-support-overwriting-textTransform.md deleted file mode 100644 index 97009f287c..0000000000 --- a/.changeset/feat-navTab-support-overwriting-textTransform.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'react-magma-dom': minor ---- - -feat(Tabs/NavTabs): Add support for overwriting text transform with `textTransform` prop. diff --git a/.changeset/feat-progressBar-update-colors.md b/.changeset/feat-progressBar-update-colors.md deleted file mode 100644 index 5a4e5f2dbf..0000000000 --- a/.changeset/feat-progressBar-update-colors.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'react-magma-dom': minor ---- - -feat(ProgressBar): Update colors from danger200/success200 to danger300/success300 in dark mode. \ No newline at end of file diff --git a/.changeset/feat-select-combobox-dropdown-viewport.md b/.changeset/feat-select-combobox-dropdown-viewport.md deleted file mode 100644 index b2d25fe0eb..0000000000 --- a/.changeset/feat-select-combobox-dropdown-viewport.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'react-magma-dom': minor ---- - -feat(Combobox, Select, Date picker, Dropdown): Support viewport detection and positioning \ No newline at end of file diff --git a/.changeset/feat-success-button.md b/.changeset/feat-success-button.md deleted file mode 100644 index 55a42eaa31..0000000000 --- a/.changeset/feat-success-button.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'react-magma-dom': minor ---- - -feat(Button): Add `success` button color diff --git a/.changeset/feat-treeview-add-support-for-isdisabled.md b/.changeset/feat-treeview-add-support-for-isdisabled.md deleted file mode 100644 index 7ac4789b78..0000000000 --- a/.changeset/feat-treeview-add-support-for-isdisabled.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'react-magma-dom': minor ---- - -feat(TreeView): Add support for `isDisabled` trees and items \ No newline at end of file diff --git a/.changeset/feat-treeview-onexpandedchange.md b/.changeset/feat-treeview-onexpandedchange.md deleted file mode 100644 index 3f835a13e4..0000000000 --- a/.changeset/feat-treeview-onexpandedchange.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'react-magma-dom': minor ---- - -feat(TreeView): `onExpandedChange` returns an array of expanded IDs \ No newline at end of file diff --git a/.changeset/fix-blockQuote-border-color.md b/.changeset/fix-blockQuote-border-color.md deleted file mode 100644 index d7c4e2a6e3..0000000000 --- a/.changeset/fix-blockQuote-border-color.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'react-magma-dom': patch ---- - -fix(BlockQuote): Fix border color respecting the `Theme` context. \ No newline at end of file diff --git a/.changeset/fix-docs-examples.md b/.changeset/fix-docs-examples.md deleted file mode 100644 index acfe3bd4b8..0000000000 --- a/.changeset/fix-docs-examples.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'react-magma-docs': patch ---- - -fix(Docs): Within the Docs site, these components have had fixes for missing references and general clean-up for CodeSandbox examples: Grid, Container, Stepper, Combobox, Hyperlink, IconButton, Toast, DatePicker, Dropdown, Form, FormGroup, useFocusLock \ No newline at end of file diff --git a/.changeset/fix-initial-expanded-items-should-expand-all-parents.md b/.changeset/fix-initial-expanded-items-should-expand-all-parents.md deleted file mode 100644 index 8a3e70a0f3..0000000000 --- a/.changeset/fix-initial-expanded-items-should-expand-all-parents.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'react-magma-dom': patch ---- - -fix(TreeView): Fix initialExpanded items expanding all parents \ No newline at end of file diff --git a/.changeset/fix-input-focus-outline.md b/.changeset/fix-input-focus-outline.md deleted file mode 100644 index 82893eae5e..0000000000 --- a/.changeset/fix-input-focus-outline.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'react-magma-dom': patch ---- - -fix(Input): Update focus style on inputs. \ No newline at end of file diff --git a/.changeset/fix-listItem-icons-color.md b/.changeset/fix-listItem-icons-color.md deleted file mode 100644 index d10955c80d..0000000000 --- a/.changeset/fix-listItem-icons-color.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'react-magma-dom': patch ---- - -fix(ListItem): Fix icon colors respecting the `Theme` context. \ No newline at end of file diff --git a/.changeset/fix-modal-focuslock.md b/.changeset/fix-modal-focuslock.md deleted file mode 100644 index bf6e3da23c..0000000000 --- a/.changeset/fix-modal-focuslock.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'react-magma-dom': patch ---- - -fix(Modal): Fix modal losing focus order with dynamic content. diff --git a/.changeset/fix-select-combobox-multi-outline.md b/.changeset/fix-select-combobox-multi-outline.md deleted file mode 100644 index a1fe81d411..0000000000 --- a/.changeset/fix-select-combobox-multi-outline.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'react-magma-dom': patch ---- - -fix(Select): Update outline offset on multiselected items diff --git a/.changeset/fix-select-placeholder-color.md b/.changeset/fix-select-placeholder-color.md deleted file mode 100644 index e4b9e576a2..0000000000 --- a/.changeset/fix-select-placeholder-color.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'react-magma-dom': patch ---- - -fix(Select): Fix placeholder color. \ No newline at end of file diff --git a/.changeset/fix-stories-files.md b/.changeset/fix-stories-files.md deleted file mode 100644 index 82f4edaf41..0000000000 --- a/.changeset/fix-stories-files.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'react-magma-dom': patch ---- - -chore: Remove `.stories.` files from the production bundle. \ No newline at end of file diff --git a/.changeset/fix-tabs-center-active-tab.md b/.changeset/fix-tabs-center-active-tab.md deleted file mode 100644 index 700854da5e..0000000000 --- a/.changeset/fix-tabs-center-active-tab.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'react-magma-dom': patch ---- - -fix(Tabs): Center preselected `Tab` on the `Scrollable Tabs`. diff --git a/.changeset/fix-timePicker-adjust-AM-PM-width.md b/.changeset/fix-timePicker-adjust-AM-PM-width.md deleted file mode 100644 index 8813fe413a..0000000000 --- a/.changeset/fix-timePicker-adjust-AM-PM-width.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'react-magma-dom': patch ---- - -fix(TimePicker): Fix AM/PM width in the `TimePicker`. diff --git a/.changeset/fix-toast-loading-ring-misaligned.md b/.changeset/fix-toast-loading-ring-misaligned.md deleted file mode 100644 index 2c69a50fb1..0000000000 --- a/.changeset/fix-toast-loading-ring-misaligned.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'react-magma-dom': patch ---- - -fix(Toast): Fix loading ring alignment when zooming in Safari diff --git a/.changeset/fix-treeview-docs-example.md b/.changeset/fix-treeview-docs-example.md deleted file mode 100644 index c217612b39..0000000000 --- a/.changeset/fix-treeview-docs-example.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'react-magma-docs': patch ---- - -fix(TreeView): Fix TreeView references in Selectable example. diff --git a/.changeset/heading-margins.md b/.changeset/heading-margins.md deleted file mode 100644 index 58fed1d5ec..0000000000 --- a/.changeset/heading-margins.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'react-magma-dom': patch ---- - -fix(Heading): Update margins for `heading2XLarge` diff --git a/.changeset/implement-scrollspy-in-docs.md b/.changeset/implement-scrollspy-in-docs.md deleted file mode 100644 index c1470e9d3d..0000000000 --- a/.changeset/implement-scrollspy-in-docs.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'react-magma-docs': patch ---- - -feat(react-magma-docs): Implement scrollspy. \ No newline at end of file diff --git a/.changeset/input-props.md b/.changeset/input-props.md deleted file mode 100644 index 00b69a8d57..0000000000 --- a/.changeset/input-props.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'react-magma-dom': patch ---- - -fix(Input): Improve descriptions for `inputWrapperStyle` and `containerStyle` props. \ No newline at end of file diff --git a/.changeset/inputwrapperstyles.md b/.changeset/inputwrapperstyles.md deleted file mode 100644 index fa892985f3..0000000000 --- a/.changeset/inputwrapperstyles.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'react-magma-dom': patch ---- - -fix(Input): Remove `flex-shrink` to allow inputs to shrink as needed. \ No newline at end of file diff --git a/.changeset/tree-initEx-docs.md b/.changeset/manualSync4-7.md similarity index 50% rename from .changeset/tree-initEx-docs.md rename to .changeset/manualSync4-7.md index 4359a2c213..4f3f6dbb8b 100644 --- a/.changeset/tree-initEx-docs.md +++ b/.changeset/manualSync4-7.md @@ -2,4 +2,4 @@ 'react-magma-docs': patch --- -docs(TreeView): Update examples \ No newline at end of file +Manually sync main -> dev (v4.7.0) diff --git a/.changeset/pre.json b/.changeset/pre.json deleted file mode 100644 index 33f7abbc14..0000000000 --- a/.changeset/pre.json +++ /dev/null @@ -1,81 +0,0 @@ -{ - "mode": "pre", - "tag": "next", - "initialVersions": { - "@react-magma/charts": "9.0.0", - "@react-magma/dropzone": "9.0.0", - "react-magma-dom": "4.6.0", - "@react-magma/schema-renderer": "9.0.0", - "@cengage-patterns/header": "11.0.0", - "react-magma-docs": "5.0.8", - "react-magma-landing": "1.1.4" - }, - "changesets": [ - "a11y-Stepper-vertical-orientation", - "a11y-breadcrumb-hide-svg-from-screen-readers", - "a11y-button-remove-animation-presses", - "a11y-charts-space-around-circle-nodes-missing", - "a11y-checkBox-labels-not-read", - "a11y-checkbox-hide-svg-from-screen-readers", - "a11y-combobox-clear-focus", - "a11y-datePicker-nav-issues", - "a11y-datePicker-shortcut", - "a11y-datepicker-calendar-header-columns", - "a11y-docs-Modal", - "a11y-docs-drawer-focus", - "a11y-docs-img-empty-alts", - "a11y-drawer-navigation-focus", - "a11y-dropdown-active-item", - "a11y-dropdown-hide-svg-from-screen-readers", - "a11y-list-hide-icons-from-assistive-tech", - "a11y-progressBar-animation", - "a11y-search-loading", - "a11y-select-accessibility", - "a11y-timePicker-shortcut", - "a11y-treeview-navigation", - "a11y-useFocusLock-hook-disabled-elements", - "build-upgrade-lerna", - "chore-deprecate-header", - "chore-deprecate-schema", - "docs-contguidelines", - "docs-emotion", - "dropdown-deprecate", - "dropdown-safari", - "feat-heading-add-props", - "feat-input-error-state-update-colors", - "feat-input-help-text", - "feat-navTab-support-overwriting-textTransform", - "feat-progressBar-update-colors", - "feat-select-combobox-dropdown-viewport", - "feat-success-button", - "feat-treeview-add-support-for-isdisabled", - "feat-treeview-onexpandedchange", - "fix-blockQuote-border-color", - "fix-docs-examples", - "fix-initial-expanded-items-should-expand-all-parents", - "fix-input-focus-outline", - "fix-listItem-icons-color", - "fix-modal-focuslock", - "fix-select-combobox-multi-outline", - "fix-select-placeholder-color", - "fix-stories-files", - "fix-tabs-center-active-tab", - "fix-timePicker-adjust-AM-PM-width", - "fix-toast-loading-ring-misaligned", - "fix-treeview-docs-example", - "heading-margins", - "implement-scrollspy-in-docs", - "input-props", - "inputwrapperstyles", - "search-clear-overlaps", - "selecteItemButton-focus", - "soft-ligers-laugh", - "sync4-6", - "tag-focus", - "toggleButtonGroup", - "tree-initEx-docs", - "tree-showAllExample", - "tree-unitTests", - "treeViewSelectItemsOutside" - ] -} diff --git a/.changeset/rude-adults-knock.md b/.changeset/rude-adults-knock.md new file mode 100644 index 0000000000..4f3f6dbb8b --- /dev/null +++ b/.changeset/rude-adults-knock.md @@ -0,0 +1,5 @@ +--- +'react-magma-docs': patch +--- + +Manually sync main -> dev (v4.7.0) diff --git a/.changeset/search-clear-overlaps.md b/.changeset/search-clear-overlaps.md deleted file mode 100644 index 32cb096d24..0000000000 --- a/.changeset/search-clear-overlaps.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'react-magma-dom': patch ---- - -fix(Search): Fix overlapping content issue with the clear button diff --git a/.changeset/selecteItemButton-focus.md b/.changeset/selecteItemButton-focus.md deleted file mode 100644 index 3d6c820284..0000000000 --- a/.changeset/selecteItemButton-focus.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'react-magma-dom': patch ---- - -fix(Combobox/Select:): Fix focus color for selected items when using `isMulti` + `isInverse` diff --git a/.changeset/soft-ligers-laugh.md b/.changeset/soft-ligers-laugh.md deleted file mode 100644 index 25cbb8a45a..0000000000 --- a/.changeset/soft-ligers-laugh.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'react-magma-docs': patch ---- - -chore: Clean up changesets ahead of release diff --git a/.changeset/sync4-6.md b/.changeset/sync4-6.md deleted file mode 100644 index 4a64e4abab..0000000000 --- a/.changeset/sync4-6.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'react-magma-docs': patch ---- - -chore: Manually sync main -> dev (4.6.0) \ No newline at end of file diff --git a/.changeset/tag-focus.md b/.changeset/tag-focus.md deleted file mode 100644 index 92f6fd3d53..0000000000 --- a/.changeset/tag-focus.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'react-magma-dom': patch ---- - -fix(Tag): Update focus state diff --git a/.changeset/toggleButtonGroup.md b/.changeset/toggleButtonGroup.md deleted file mode 100644 index df3ac3928b..0000000000 --- a/.changeset/toggleButtonGroup.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'react-magma-dom': patch ---- - -fix(ToggleButtonGroup): Fix `enforced` and `exclusive` props \ No newline at end of file diff --git a/.changeset/tree-showAllExample.md b/.changeset/tree-showAllExample.md deleted file mode 100644 index 01cb8f106d..0000000000 --- a/.changeset/tree-showAllExample.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'react-magma-dom': minor ---- - -fix(TreeView): Support "show all" button inside TreeView component diff --git a/.changeset/tree-unitTests.md b/.changeset/tree-unitTests.md deleted file mode 100644 index e046d47b0d..0000000000 --- a/.changeset/tree-unitTests.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'react-magma-dom': patch ---- - -fix(TreeView): Add more unit tests diff --git a/.changeset/treeViewSelectItemsOutside.md b/.changeset/treeViewSelectItemsOutside.md deleted file mode 100644 index d5c42fba20..0000000000 --- a/.changeset/treeViewSelectItemsOutside.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'react-magma-dom': minor ---- - -feat(TreeView): Add ability to update selected items from outside the tree diff --git a/.storybook/main.js b/.storybook/main.js index 8b268d06db..9a5a963511 100644 --- a/.storybook/main.js +++ b/.storybook/main.js @@ -25,13 +25,12 @@ module.exports = { // check: true, }, webpackFinal: async config => { - config.module.rules[0].exclude = /node_modules\/(?!(@carbon)\/).*/; - return { - ...config, - // devtool: false, - module: { - ...config.module, + return { + ...config, + // devtool: false, + module: { + ...config.module, }, // devtool: 'eval', resolve: { diff --git a/package-lock.json b/package-lock.json index 9a36dd283d..4bdb8eb3e7 100644 --- a/package-lock.json +++ b/package-lock.json @@ -104,7 +104,8 @@ "ts-node": "^9.1.1", "tsdx": "^0.14.1", "typedoc": "^0.19.2", - "typescript": "^3.9.7" + "typescript": "^3.9.7", + "webpack-filter-warnings-plugin": "1.2.1" }, "engines": { "node": ">=18.20.4", @@ -15707,9 +15708,9 @@ } }, "node_modules/axios": { - "version": "1.7.7", - "resolved": "https://registry.npmjs.org/axios/-/axios-1.7.7.tgz", - "integrity": "sha512-S4kL7XrjgBmvdGut0sN3yJxqYzrDOnivkBiN0OFs6hLiUam3UPvswUo0kqGyhqUZGEOytHyumEdXsAkgCOUf3Q==", + "version": "1.7.8", + "resolved": "https://registry.npmjs.org/axios/-/axios-1.7.8.tgz", + "integrity": "sha512-Uu0wb7KNqK2t5K+YQyVCLM76prD5sRFjKHbJYCP1J7JFGEQ6nN7HWn9+04LAeiJ3ji54lgS/gZCH1oxyrf1SPw==", "dependencies": { "follow-redirects": "^1.15.6", "form-data": "^4.0.0", @@ -46364,8 +46365,9 @@ } }, "node_modules/readable-stream": { - "version": "3.6.0", - "license": "MIT", + "version": "3.6.2", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.2.tgz", + "integrity": "sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA==", "dependencies": { "inherits": "^2.0.3", "string_decoder": "^1.1.1", @@ -57462,7 +57464,7 @@ }, "packages/charts": { "name": "@react-magma/charts", - "version": "10.0.0-next.1", + "version": "10.0.0-next.2", "license": "MIT", "dependencies": { "@carbon/charts-react": "^1.14.8", @@ -57524,7 +57526,7 @@ } }, "packages/react-magma-dom": { - "version": "4.7.0-next.7", + "version": "4.7.0-next.50", "license": "MIT", "dependencies": { "@emotion/react": "^11.13.0", @@ -57559,7 +57561,7 @@ }, "packages/schema-renderer": { "name": "@react-magma/schema-renderer", - "version": "10.0.0-next.1", + "version": "10.0.0-next.2", "license": "MIT", "devDependencies": { "@data-driven-forms/react-form-renderer": "^3.6.0", @@ -57593,7 +57595,7 @@ }, "patterns/header": { "name": "@cengage-patterns/header", - "version": "12.0.0-next.1", + "version": "12.0.0-next.2", "license": "MIT", "devDependencies": { "@emotion/react": "^11.13.0", @@ -57624,11 +57626,11 @@ } }, "website/react-magma-docs": { - "version": "5.0.9-next.3", + "version": "5.0.9-next.13", "license": "MIT", "dependencies": { "@babel/plugin-transform-react-jsx": "7.10.4", - "@cengage-patterns/header": "12.0.0-next.1", + "@cengage-patterns/header": "12.0.0-next.2", "@data-driven-forms/react-form-renderer": "^3.6.0", "@emotion/react": "^11.13.0", "@emotion/styled": "^11.13.0", @@ -57636,7 +57638,7 @@ "@mdx-js/react": "^1.5.5", "@react-magma/charts": "^10.0.0-next.1", "@react-magma/dropzone": "10.0.0-next.1", - "@react-magma/schema-renderer": "^10.0.0-next.1", + "@react-magma/schema-renderer": "^10.0.0-next.2", "buble": "0.19.4", "buffer": "^6.0.3", "core-js": "^3.1.4", @@ -68604,9 +68606,9 @@ "version": "4.4.1" }, "axios": { - "version": "1.7.7", - "resolved": "https://registry.npmjs.org/axios/-/axios-1.7.7.tgz", - "integrity": "sha512-S4kL7XrjgBmvdGut0sN3yJxqYzrDOnivkBiN0OFs6hLiUam3UPvswUo0kqGyhqUZGEOytHyumEdXsAkgCOUf3Q==", + "version": "1.7.8", + "resolved": "https://registry.npmjs.org/axios/-/axios-1.7.8.tgz", + "integrity": "sha512-Uu0wb7KNqK2t5K+YQyVCLM76prD5sRFjKHbJYCP1J7JFGEQ6nN7HWn9+04LAeiJ3ji54lgS/gZCH1oxyrf1SPw==", "requires": { "follow-redirects": "^1.15.6", "form-data": "^4.0.0", @@ -89458,7 +89460,7 @@ "version": "file:website/react-magma-docs", "requires": { "@babel/plugin-transform-react-jsx": "7.10.4", - "@cengage-patterns/header": "12.0.0-next.1", + "@cengage-patterns/header": "12.0.0-next.2", "@data-driven-forms/react-form-renderer": "^3.6.0", "@emotion/react": "^11.13.0", "@emotion/styled": "^11.13.0", @@ -89466,7 +89468,7 @@ "@mdx-js/react": "^1.5.5", "@react-magma/charts": "^10.0.0-next.1", "@react-magma/dropzone": "10.0.0-next.1", - "@react-magma/schema-renderer": "^10.0.0-next.1", + "@react-magma/schema-renderer": "^10.0.0-next.2", "buble": "0.19.4", "buffer": "^6.0.3", "core-js": "^3.1.4", @@ -89716,7 +89718,9 @@ } }, "readable-stream": { - "version": "3.6.0", + "version": "3.6.2", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.2.tgz", + "integrity": "sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA==", "requires": { "inherits": "^2.0.3", "string_decoder": "^1.1.1", diff --git a/package.json b/package.json index 39227728b7..a880c2b4c5 100644 --- a/package.json +++ b/package.json @@ -147,6 +147,7 @@ "ts-node": "^9.1.1", "tsdx": "^0.14.1", "typedoc": "^0.19.2", - "typescript": "^3.9.7" + "typescript": "^3.9.7", + "webpack-filter-warnings-plugin": "1.2.1" } } diff --git a/packages/charts/CHANGELOG.md b/packages/charts/CHANGELOG.md index 12629f8f57..1acfaf41cc 100644 --- a/packages/charts/CHANGELOG.md +++ b/packages/charts/CHANGELOG.md @@ -1,5 +1,11 @@ # @react-magma/charts +## 10.0.0 + +### Patch Changes + +- 02db8e632: fix(Charts): Fix circle styles for `Charts`. + ## 10.0.0-next.2 ### Patch Changes diff --git a/packages/charts/package.json b/packages/charts/package.json index a73c39baf3..d714b367f8 100644 --- a/packages/charts/package.json +++ b/packages/charts/package.json @@ -1,6 +1,6 @@ { "name": "@react-magma/charts", - "version": "10.0.0-next.2", + "version": "10.0.0", "publishConfig": { "access": "public" }, @@ -12,7 +12,8 @@ "types": "dist/index.d.ts", "files": [ "dist", - "src" + "src", + "src/components/CarbonChart/styles.min.css" ], "engines": { "npm": ">=7.3.0", @@ -47,7 +48,11 @@ "identity-obj-proxy": "^3.0.0", "react": "^17.0.2", "react-dom": "^17.0.2", - "react-magma-dom": "^4.7.0-next.1", + "react-magma-dom": "^4.7.0", "react-magma-icons": "^3.0.0" + }, + "exports": { + ".": "./src", + "./src/components/CarbonChart/": "./styles.min.css" } } \ No newline at end of file diff --git a/packages/charts/src/components/LineChart/GraphTooltip.tsx b/packages/charts/src/components/LineChart/GraphTooltip.tsx index 5458269447..68b279c6e4 100644 --- a/packages/charts/src/components/LineChart/GraphTooltip.tsx +++ b/packages/charts/src/components/LineChart/GraphTooltip.tsx @@ -9,7 +9,6 @@ import { import styled from '@emotion/styled'; - const StyledGraphTooltip = styled(StyledTooltip)` background: ${(props: any) => props.theme.colors.neutral100}; border: 1px solid ${(props: any) => props.theme.colors.neutral300}; diff --git a/packages/dropzone/CHANGELOG.md b/packages/dropzone/CHANGELOG.md index d328c48415..2bdaa4fb7f 100644 --- a/packages/dropzone/CHANGELOG.md +++ b/packages/dropzone/CHANGELOG.md @@ -1,5 +1,7 @@ # Change Log +## 10.0.0 + ## 10.0.0-next.1 ### Patch Changes diff --git a/packages/dropzone/package.json b/packages/dropzone/package.json index 9738099f5c..1cf5a7b048 100644 --- a/packages/dropzone/package.json +++ b/packages/dropzone/package.json @@ -1,6 +1,6 @@ { "name": "@react-magma/dropzone", - "version": "10.0.0-next.1", + "version": "10.0.0", "publishConfig": { "access": "public" }, @@ -42,7 +42,7 @@ "@emotion/styled": "^11.13.0", "react": "^17.0.2", "react-dom": "^17.0.2", - "react-magma-dom": "^4.7.0-next.1", + "react-magma-dom": "^4.7.0", "react-magma-icons": "^3.0.0" } } diff --git a/packages/react-magma-dom/CHANGELOG.md b/packages/react-magma-dom/CHANGELOG.md index cd5de80725..5b8d667683 100644 --- a/packages/react-magma-dom/CHANGELOG.md +++ b/packages/react-magma-dom/CHANGELOG.md @@ -1,31 +1,71 @@ -## 4.7.0-next.53 -## 4.7.0-next.55 - -### Patch Changes - -- 4ed9e5c7d: fix(TreeView): Add more unit tests - -## 4.7.0-next.54 +## 4.7.0 ### Minor Changes -- 4bec9c320: fix(TreeView): Support "show all" button inside TreeView component +- e926d3ddf: feat(Button): Add `success` button. +- cdb304158: feat(Combobox, Select, Date picker, Dropdown): Support viewport detection and positioning +- d8662d6f6: feat(Input): Update additional children position based on label position +- 360cf8d29: feat(Input): Update colors for error message, icon and border in dark mode +- 5a928ea59: feat(ProgressBar): Update colors from danger200/success200 to danger300/success300 in dark mode +- 68ff224cc: feat(Stepper): Add vertical orientation for `Stepper` +- 40708c7c6: feat(Tabs, NavTabs): Add support for overwriting text transform with `textTransform` prop +- 78fc319ba: feat(TreeView): `onExpandedChange` returns an array of expanded IDs +- c815b89ac: feat(TreeView): Add ability to update selected items from outside the tree +- 1caced455: feat(TreeView): Add support for `isDisabled` trees and items +- 4bec9c320: feat(TreeView): Support "show all"/"hide all" button inside TreeView component ### Patch Changes -- e432f97c9: fix(Input): Improve descriptions for `inputWrapperStyle` and `containerStyle` props. +- ac6ff21bb: fix(BlockQuote): Fix border color respecting the `Theme` context +- f885d5906: fix(Breadcrumb): Hide SVGs from screen readers by adding `aria-hidden="true"` to the `span` element that wraps the SVGs +- d7423ebe5: fix(Button): Remove animation presses for `Button` +- 2157b4708: fix(CheckBox): Fix unreadable labels in `CheckBox` for screen readers +- a95d26ca7: fix(CheckBox): Hide SVGs from screen readers by adding `aria-hidden="true"` to the `span` element that wraps the SVGs +- b3fcc32b1: fix(Combobox): Fix focus issue after triggering the clear button +- cf959a580: fix(Combobox/Select): Fix focus color for selected items when using `isMulti` + `isInverse` +- f45bdde78: fix(DatePicker): Remove shortcut to open `HelperInformation` +- 8004c9f55: fix(DatePicker): Add `aria-label` to calendar header columns +- eb2b3ab1e: fix(DatePicker): Fix navigation and accessibility issues +- 35d9507ad: fix(Drawer): Fix trapped focus +- 7887c50b9: chore(Dropdown): Deprecate `dropDirection` & `alignment` props. These are no longer necessary with viewport detection support +- d109847d8: fix(Dropdown): Fix the dropdown closing on second button click in `Safari` +- 1d1110dc3: fix(Dropdown): Fix accessibility for active index +- acbec5c8d: fix(Dropdown): Hide SVGs from screen readers by adding `aria-hidden="true"` to the `svg` elements +- a163f4230: fix(Heading): Update margins for `heading2XLarge` +- 3a97fe97f: fix(Heading): Add the `noTopMargin` and `noBottomMargin` props to the `Heading` component +- 3c94afd1a: fix(Input): Update focus style on inputs +- 482268a7e: fix(Input): Remove `flex-shrink` to allow inputs to shrink as needed +- fbae9ce39: fix(Input): Fix help link position on inputs +- e432f97c9: fix(Input): Improve descriptions for `inputWrapperStyle` and `containerStyle` props +- 08deb434d: fix(List): Hide SVGs from assistive tech by adding `aria-hidden="true"` to the `span` element that wraps the SVGs +- ac6ff21bb: fix(ListItem): Fix icon colors respecting the `Theme` context +- fbfd75e8b: fix(Modal): Fix modal losing focus order with dynamic content +- 7d8006fe1: fix(ProgressBar): Remove animation if the user has `prefers-reduced-motion` media query set +- 5c3d7fce3: fix(Search): Fix the disappearing focus on the button when loading +- 1da99002f: fix(Search): Fix overlapping content issue with the clear button +- 5e39ab2b4: fix(Select): Update outline offset on multiselected items +- 270e1f4ff: fix(Select): Fix placeholder color +- a328ebe29: fix(Select): Fix accessibility issue for `clearIndicator` inside `SelectTriggerButton` +- ddf476a38: fix(Tabs): Center preselected `Tab` on the `Scrollable Tabs` +- 6a8ed217b: fix(Tag): Update tag focus state. +- 044da059c: fix(TimePicker): Fix AM/PM width in the `TimePicker` +- e447c8af8: fix(Toast): Fix loading ring alignment when zooming in Safari +- 631d01024: fix(TreeView): Improve screenreader accessibility +- 24680b288: fix(TreeView): Fix initialExpanded items expanding all parents +- c0aecada5: fix(useFocusLock): Fix the `useFocusLock` hook if the first or last element is disabled. +- 7adf69a9f: fix(.stories.): Remove `.stories.` files from the production bundle ## 4.6.0 ### Minor Changes -- fdf2dc929: feat(Modal): New `headerRef` prop that returns a reference to the header element - ca58152cb: feat(TreeView): Add support for `checkChildren`, `checkParents` props +- fdf2dc929: feat(Modal): New `headerRef` prop that returns a reference to the header element ### Patch Changes -- 616cbf9a0: fix(BreadCrumb): Improved accessibility by replace span with link to fix focus +- 616cbf9a0: fix(BreadCrumb): Improved accessibility by replacing span with link to fix focus - aced1dd74: fix(DataGrid): Improved accessibility by adding `aria-live="polite"` and fixing labelText for checkboxes when `isSelectable={true}` - 9d840d863: fix(Indeterminate Checkbox): Improved accessibility for `Indeterminate` status - 3fa73c68d: fix(Button): Improved accessibility for `isLoading` state @@ -42,13 +82,13 @@ ### Minor Changes -- ae668a3e5: chore: Updating emotion to v11 **Note: adopters will need to upgrade** their packages to the following versions `"@emotion/react": "^11.13.0", "@emotion/styled": "^11.13.0"`. Notice that `@emotion/core` has been replaced with `@emotion/styled` and that's the only breaking change, unless your project is using `@emotion/css` which may not work the same. Please review the emotion documentation when upgrading. +- ae668a3e5: chore: Updating emotion to v11. **Note: adopters will need to upgrade** their packages to the following versions `"@emotion/react": "^11.13.0", "@emotion/styled": "^11.13.0"`. Notice that `@emotion/core` has been replaced with `@emotion/styled` and that's the only breaking change. - 9e38e9e7f: feat(Stepper): New Stepper component. Displays step based content for use in multi-step interfaces. ### Patch Changes - e43932d45: fix(Modal): Background overlay now displays as expected for nested modals -- e24db7ab4: fix(DatePicker): Remove role="presentation" from calendar +- e24db7ab4: fix(DatePicker): Remove `role="presentation"` from calendar - 65d417254: fix(ProgressBar): Add support for custom colors - 636fa3060: fix(NativeSelect): Update arrow placement, arrow color and border color when disabled - da14eec4f: fix(Modal): Remove unnecessary `aria-describedBy=“modal”`. Add `ariaLabel` prop so that Modals without headers can customize the `aria-label` instead of defaulting to `aria-label="modal"` which is not correct for a11y standards. diff --git a/packages/react-magma-dom/package.json b/packages/react-magma-dom/package.json index 3d27a9d69a..337998997e 100644 --- a/packages/react-magma-dom/package.json +++ b/packages/react-magma-dom/package.json @@ -1,6 +1,6 @@ { "name": "react-magma-dom", - "version": "4.7.0-next.55", + "version": "4.7.0", "description": "", "main": "dist/index.js", "module": "dist/esm/index.js", diff --git a/packages/react-magma-dom/src/components/Accordion/AccordionPanel.tsx b/packages/react-magma-dom/src/components/Accordion/AccordionPanel.tsx index 0eace4ee9a..ca6ae86bdb 100644 --- a/packages/react-magma-dom/src/components/Accordion/AccordionPanel.tsx +++ b/packages/react-magma-dom/src/components/Accordion/AccordionPanel.tsx @@ -20,6 +20,7 @@ export interface AccordionPanelProps theme?: ThemeInterface; } + const StyledPanel = styled.div` background: transparent; color: ${props => diff --git a/packages/react-magma-dom/src/components/Breadcrumb/BreadcrumbItem.tsx b/packages/react-magma-dom/src/components/Breadcrumb/BreadcrumbItem.tsx index 785b24daf8..91221b5676 100644 --- a/packages/react-magma-dom/src/components/Breadcrumb/BreadcrumbItem.tsx +++ b/packages/react-magma-dom/src/components/Breadcrumb/BreadcrumbItem.tsx @@ -36,7 +36,6 @@ const StyledLink = styled.a<{ isInverse?: boolean }>` : props.theme.colors.neutral700}; text-decoration: none; cursor: default; - &:hover, &:focus { color: ${props => diff --git a/packages/react-magma-dom/src/components/DatePicker/CalendarMonth.tsx b/packages/react-magma-dom/src/components/DatePicker/CalendarMonth.tsx index 50359c6b15..5cac29d1b6 100644 --- a/packages/react-magma-dom/src/components/DatePicker/CalendarMonth.tsx +++ b/packages/react-magma-dom/src/components/DatePicker/CalendarMonth.tsx @@ -21,6 +21,7 @@ interface CalendarMonthProps { setDateFocused?: (value: boolean) => void; } + const CalendarContainer = styled.div<{ isInverse?: boolean }>` background: ${props => props.isInverse diff --git a/packages/react-magma-dom/src/components/DatePicker/DatePicker.test.js b/packages/react-magma-dom/src/components/DatePicker/DatePicker.test.js index cf984627c9..cd1b2fe965 100644 --- a/packages/react-magma-dom/src/components/DatePicker/DatePicker.test.js +++ b/packages/react-magma-dom/src/components/DatePicker/DatePicker.test.js @@ -180,9 +180,9 @@ describe('Date Picker', () => { userEvent.keyboard('[ArrowLeft]'); expect(startDateButton).toHaveFocus(); - + userEvent.keyboard('[ArrowRight]'); - + expect(startDateButton).not.toHaveFocus(); expect(selectedDateButton).toHaveFocus(); @@ -194,9 +194,7 @@ describe('Date Picker', () => { it('should lock focus inside', () => { const valueDate = new Date('January 1, 2020'); - const { getByText, getByRole } = render( - - ); + const { getByText, getByRole } = render(); const selectedDateButton = getByText(1); const button = getByRole('button'); diff --git a/packages/react-magma-dom/src/components/Dropdown/Dropdown.tsx b/packages/react-magma-dom/src/components/Dropdown/Dropdown.tsx index ab8b9075d1..5947b3a1a8 100644 --- a/packages/react-magma-dom/src/components/Dropdown/Dropdown.tsx +++ b/packages/react-magma-dom/src/components/Dropdown/Dropdown.tsx @@ -266,7 +266,7 @@ export const Dropdown = React.forwardRef( ['left-end', 'left-end'], ]); - // dropDirection & alignment are deprecated. + // dropDirection & alignment are deprecated. // this fallback can be removed when the props are deleted. const contentPosition = `${dropDirection}-${alignment}`; diff --git a/packages/react-magma-dom/src/components/Dropdown/DropdownContent.tsx b/packages/react-magma-dom/src/components/Dropdown/DropdownContent.tsx index 50c6bcd62e..6de656259d 100644 --- a/packages/react-magma-dom/src/components/Dropdown/DropdownContent.tsx +++ b/packages/react-magma-dom/src/components/Dropdown/DropdownContent.tsx @@ -1,7 +1,11 @@ import * as React from 'react'; import { css } from '@emotion/react'; import { Card } from '../Card'; -import { DropdownAlignment, DropdownContext, DropdownDropDirection } from './Dropdown'; +import { + DropdownAlignment, + DropdownContext, + DropdownDropDirection, +} from './Dropdown'; import { ThemeContext } from '../../theme/ThemeContext'; import { useForkedRef } from '../../utils'; import styled from '@emotion/styled'; @@ -40,10 +44,11 @@ const StyledCard = styled(Card)<{ transition: opacity 0.3s; white-space: nowrap; &:focus { - outline: 2px solid ${props => - props.isInverse - ? props.theme.colors.focusInverse - : props.theme.colors.focus}; + outline: 2px solid + ${props => + props.isInverse + ? props.theme.colors.focusInverse + : props.theme.colors.focus}; outline-offset: 0; } diff --git a/packages/react-magma-dom/src/components/Input/Input.stories.tsx b/packages/react-magma-dom/src/components/Input/Input.stories.tsx index 7fa03756f3..4329385726 100644 --- a/packages/react-magma-dom/src/components/Input/Input.stories.tsx +++ b/packages/react-magma-dom/src/components/Input/Input.stories.tsx @@ -181,10 +181,7 @@ export const HelpLink = args => { }; return ( <> - + { /> - + { /> - - + + { diff --git a/packages/react-magma-dom/src/components/Select/ItemsList.tsx b/packages/react-magma-dom/src/components/Select/ItemsList.tsx index 57d1c052e6..8f6ca26cb4 100644 --- a/packages/react-magma-dom/src/components/Select/ItemsList.tsx +++ b/packages/react-magma-dom/src/components/Select/ItemsList.tsx @@ -98,7 +98,7 @@ export function ItemsList(props: ItemsListProps) { } return ( -
+
= args => { Item Content Five , ]} - > - + > ); diff --git a/packages/react-magma-dom/src/components/TreeView/TreeItem.tsx b/packages/react-magma-dom/src/components/TreeView/TreeItem.tsx index aad3a993ac..26195c15af 100644 --- a/packages/react-magma-dom/src/components/TreeView/TreeItem.tsx +++ b/packages/react-magma-dom/src/components/TreeView/TreeItem.tsx @@ -202,8 +202,13 @@ export const TreeItem = React.forwardRef( const theme = React.useContext(ThemeContext); const isInverse = useIsInverse(); - const { selectable, hasIcons, onExpandedChange, itemToFocus, handleExpandedChange } = - React.useContext(TreeViewContext); + const { + selectable, + hasIcons, + onExpandedChange, + itemToFocus, + handleExpandedChange, + } = React.useContext(TreeViewContext); const { contextValue, handleClick, handleKeyDown } = useTreeItem( props, @@ -299,8 +304,8 @@ export const TreeItem = React.forwardRef( event.preventDefault(); onExpandedChange && - typeof onExpandedChange === 'function' && - handleExpandedChange(event, itemId); + typeof onExpandedChange === 'function' && + handleExpandedChange(event, itemId); }; const tabIndex = React.useMemo(() => { diff --git a/packages/react-magma-dom/src/components/TreeView/TreeView.test.js b/packages/react-magma-dom/src/components/TreeView/TreeView.test.js index 8d048f47d1..21328f955d 100644 --- a/packages/react-magma-dom/src/components/TreeView/TreeView.test.js +++ b/packages/react-magma-dom/src/components/TreeView/TreeView.test.js @@ -98,30 +98,56 @@ const getTreeItemsWithDisabled = props => ( const getTreeItemsWithDisabledChildren = props => ( - - + + ); - const TreeItemsMultiLevelControlledOutside = props => { const apiRef = React.useRef(null); const [items, setItems] = React.useState([]); - + const onSelectedItemChange = items => { setItems(items); - props.onSelectedItemChange(items) - } + props.onSelectedItemChange(items); + }; return ( <> - - +