diff --git a/.github/workflows/pull-request.yml b/.github/workflows/pull-request.yml index 5289963d65..f304b21554 100644 --- a/.github/workflows/pull-request.yml +++ b/.github/workflows/pull-request.yml @@ -93,7 +93,7 @@ jobs: strategy: fail-fast: false matrix: - containers: [1, 2, 3, 4] + containers: [1, 2, 3, 4, 5] steps: - uses: actions/checkout@v2 diff --git a/.github/workflows/scorecard.yml b/.github/workflows/scorecard.yml index 79aa48b280..d145c5a1cf 100644 --- a/.github/workflows/scorecard.yml +++ b/.github/workflows/scorecard.yml @@ -10,7 +10,7 @@ on: # To guarantee Maintained check is occasionally updated. See # https://github.com/ossf/scorecard/blob/main/docs/checks.md#maintained schedule: - - cron: '18 21 * * 4' + - cron: '36 23 * * 1' push: branches: [ "master" ] diff --git a/.storybook/routes.js b/.storybook/routes.js index 6a2515677b..15931c8bc6 100644 --- a/.storybook/routes.js +++ b/.storybook/routes.js @@ -42,20 +42,20 @@ const routes = { '/components/text/text/': 'components-text-text--basic', '/components/text/title/': 'components-text-title--basic', '/examples/layout/': 'examples-layouts--area-column-positioning', - '/getting-started/for-developers/contributing/': 'guides-contributing--page', + '/getting-started/for-developers/contributing/': 'guides-contributing--docs', '/getting-started/for-developers/resources/api-pattern-guidelines/': - 'guides-api-pattern-guidelines--page', + 'guides-api-pattern-guidelines--docs', '/getting-started/for-developers/resources/collection-api/': 'features-collections--basic', '/getting-started/for-developers/resources/compound-components/': - 'guides-compound-components--page', + 'guides-compound-components--docs', '/getting-started/for-developers/resources/creating-compound-components/': - 'guides-creating-compound-components--page', + 'guides-creating-compound-components--docs', '/getting-started/for-developers/resources/responsive-styling/': 'features-responsive-styling--responsive-container', '/getting-started/for-developers/resources/style-props/': 'features-style-props--background-example', - '/getting-started/for-developers/resources/testing/': 'guides-testing--page', - '/getting-started/introduction/': 'guides-getting-started--page', + '/getting-started/for-developers/resources/testing/': 'guides-testing--docs', + '/getting-started/introduction/': 'guides-getting-started--docs', '/tokens/color/': 'tokens--colors', '/tokens/depth/': 'tokens--depth', '/tokens/space/': 'tokens--space', diff --git a/CHANGELOG.md b/CHANGELOG.md index 2453b3e6d8..6245dbc605 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,165 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [v12.3.2](https://github.com/Workday/canvas-kit/releases/tag/v12.3.2) (2025-01-09) + +### Components + +- fix: Rename index file to correctly export ([#3098](https://github.com/Workday/canvas-kit/pull/3098)) ([@mannycarrera4](https://github.com/mannycarrera4), manuel.carrera) + + +## [v12.3.1](https://github.com/Workday/canvas-kit/releases/tag/v12.3.1) (2025-01-09) + +### Components + +- fix: Update Information Highlight folder name for slash imports ([#3097](https://github.com/Workday/canvas-kit/pull/3097)) ([@mannycarrera4](https://github.com/mannycarrera4), manuel.carrera) + + +## [v12.3.0](https://github.com/Workday/canvas-kit/releases/tag/v12.3.0) (2025-01-09) + + + + +## [v12.2.2](https://github.com/Workday/canvas-kit/releases/tag/v12.2.2) (2025-01-07) + +### Components + +- fix: Add overflowWrap on MenuItem ([#3094](https://github.com/Workday/canvas-kit/pull/3094)) ([@mannycarrera4](https://github.com/mannycarrera4), manuel.carrera) + + +## [v12.2.1](https://github.com/Workday/canvas-kit/releases/tag/v12.2.1) (2025-01-07) + +### Components + +- fix: Added CKR Dub and Logo References to preview package ([#3093](https://github.com/Workday/canvas-kit/pull/3093)) ([@josh-bagwell](https://github.com/josh-bagwell)) + + +## [v11.2.1](https://github.com/Workday/canvas-kit/releases/tag/v11.2.1) (2025-01-07) + +### Components + +- fix: Added CKR Dub and Logo References to preview package ([#3093](https://github.com/Workday/canvas-kit/pull/3093)) ([@josh-bagwell](https://github.com/josh-bagwell)) +## [v12.2.0](https://github.com/Workday/canvas-kit/releases/tag/v12.2.0) (2025-01-07) + +### Components + +- feat: Update CKR Dub and Logo References ([#3089](https://github.com/Workday/canvas-kit/pull/3089)) ([@josh-bagwell](https://github.com/josh-bagwell)) + Workday has new logos with updated colors. We've added these to the `preview` package for a smooth transition for consumers. + + If you would like to consume these, here is the import: + ```tsx + import {dubLogoPrimary, dubLogoReversed} from '@workday/canvas-kit-preview-react/common' + ``` + + +## [v11.2.0](https://github.com/Workday/canvas-kit/releases/tag/v11.2.0) (2025-01-07) + +### Components + +- feat: Update CKR Dub and Logo References ([#3089](https://github.com/Workday/canvas-kit/pull/3089)) ([@josh-bagwell](https://github.com/josh-bagwell)) + Workday has new logos with updated colors. We've added these to the `preview` package for a smooth transition for consumers. + + If you would like to consume these, here is the import: + ```tsx + import {dubLogoPrimary, dubLogoReversed} from '@workday/canvas-kit-preview-react/common' + ``` +## [v12.1.16](https://github.com/Workday/canvas-kit/releases/tag/v12.1.16) (2024-12-20) + +### Components + +- fix(side-panel): Filter out invalid DOM prop ([#3080](https://github.com/Workday/canvas-kit/pull/3080)) ([@NicholasBoll](https://github.com/NicholasBoll)) + +### Dependencies + +- fix: Resolve recast dep from jscodeshift to remove extra parens ([#3083](https://github.com/Workday/canvas-kit/pull/3083)) ([@mannycarrera4](https://github.com/mannycarrera4), manuel.carrera) + + +## [v11.1.26](https://github.com/Workday/canvas-kit/releases/tag/v11.1.26) (2024-12-20) + +### Components + +- fix(side-panel): Filter out invalid DOM prop ([#3080](https://github.com/Workday/canvas-kit/pull/3080)) ([@NicholasBoll](https://github.com/NicholasBoll)) + + +## [v11.1.25](https://github.com/Workday/canvas-kit/releases/tag/v11.1.25) (2024-12-20) + +### Dependencies + +- fix: Resolve recast dep from jscodeshift to remove extra parens ([#3083](https://github.com/Workday/canvas-kit/pull/3083)) ([@mannycarrera4](https://github.com/mannycarrera4), manuel.carrera) +## [v12.1.15](https://github.com/Workday/canvas-kit/releases/tag/v12.1.15) (2024-12-17) + +### Components + +- fix: Add pointer events none to Select caret ([#3079](https://github.com/Workday/canvas-kit/pull/3079)) ([@mannycarrera4](https://github.com/mannycarrera4), manuel.carrera) + + +## [v12.1.14](https://github.com/Workday/canvas-kit/releases/tag/v12.1.14) (2024-12-17) + +### Components + +- fix(multi-select): Update selected state when pill is removed ([#3076](https://github.com/Workday/canvas-kit/pull/3076)) ([@NicholasBoll](https://github.com/NicholasBoll)) + + +## [v12.1.13](https://github.com/Workday/canvas-kit/releases/tag/v12.1.13) (2024-12-16) + + + + +## [v12.1.12](https://github.com/Workday/canvas-kit/releases/tag/v12.1.12) (2024-12-10) + +### Documentation + +- fix: Fixed Welcome Page ([#3069](https://github.com/Workday/canvas-kit/pull/3069)) ([@josh-bagwell](https://github.com/josh-bagwell)) +- fix: Addressed Versions Table Update ([#3071](https://github.com/Workday/canvas-kit/pull/3071)) ([@josh-bagwell](https://github.com/josh-bagwell)) + + +## [v12.1.11](https://github.com/Workday/canvas-kit/releases/tag/v12.1.11) (2024-12-10) + +### Documentation + +- fix: Fixes Broken Links from Storybook 7 Upgrade ([#3065](https://github.com/Workday/canvas-kit/pull/3065)) ([@josh-bagwell](https://github.com/josh-bagwell)) + + +## [v12.1.10](https://github.com/Workday/canvas-kit/releases/tag/v12.1.10) (2024-12-09) + +### Documentation + +- docs: Use slash import in first example ([#3066](https://github.com/Workday/canvas-kit/pull/3066)) ([@vibdev](https://github.com/vibdev)) + + +## [v12.1.9](https://github.com/Workday/canvas-kit/releases/tag/v12.1.9) (2024-12-04) + +### Documentation + +- docs: Add info to create compound component regarding createComponent ([#3057](https://github.com/Workday/canvas-kit/pull/3057)) ([@mannycarrera4](https://github.com/mannycarrera4), manuel.carrera, [@NicholasBoll](https://github.com/NicholasBoll)) + + +## [v12.1.8](https://github.com/Workday/canvas-kit/releases/tag/v12.1.8) (2024-12-02) + +### Components + +- fix: Measure offsetHeight vertical overflow ([#3061](https://github.com/Workday/canvas-kit/pull/3061)) ([@mannycarrera4](https://github.com/mannycarrera4), manuel.carrera) + + +## [v12.1.7](https://github.com/Workday/canvas-kit/releases/tag/v12.1.7) (2024-11-27) + +### Test + +- test: Resolve Cypress Flaky fixes ([#3034](https://github.com/Workday/canvas-kit/pull/3034)) ([@josh-bagwell](https://github.com/josh-bagwell)) + + +## [v12.1.6](https://github.com/Workday/canvas-kit/releases/tag/v12.1.6) (2024-11-25) + +### Components + +- fix: Deconstruct typelevel from props and pass to stencil ([#3059](https://github.com/Workday/canvas-kit/pull/3059)) ([@mannycarrera4](https://github.com/mannycarrera4), manuel.carrera) + + +## [v11.1.24](https://github.com/Workday/canvas-kit/releases/tag/v11.1.24) (2024-11-22) + +### Components + +- fix: Deconstruct typelevel from props and pass to stencil ([#3059](https://github.com/Workday/canvas-kit/pull/3059)) ([@mannycarrera4](https://github.com/mannycarrera4), manuel.carrera) ## [v12.1.5](https://github.com/Workday/canvas-kit/releases/tag/v12.1.5) (2024-11-19) ### Components diff --git a/README.md b/README.md index f6301d4f7e..30ad2a9a58 100644 --- a/README.md +++ b/README.md @@ -41,7 +41,7 @@ npm install @workday/canvas-kit-react ```tsx import * as React from 'react'; -import {SecondaryButton} from '@workday/canvas-kit-react'; +import {SecondaryButton} from '@workday/canvas-kit-react/button'; Button Label; ``` @@ -61,13 +61,14 @@ The Canvas Kit core team will take a look and discuss it with you. ## Contributing Want to contribute to Canvas Kit React? Please read our -[contributing guidelines](https://workday.github.io/canvas-kit/?path=/docs/guides-contributing--page) to find out more and how to get -started. +[contributing guidelines](https://workday.github.io/canvas-kit/?path=/docs/guides-contributing--docs) +to find out more and how to get started. ## Maintaining If you're a Canvas Kit maintainer, please read our -[maintaining docs](https://workday.github.io/canvas-kit/?path=/docs/guides-maintaining--page) to learn more about our processes. +[maintaining docs](https://workday.github.io/canvas-kit/?path=/docs/guides-maintaining--docs) to +learn more about our processes. ## Open Development @@ -79,7 +80,7 @@ process. Any and all issues are public and available for discussion. Canvas Kit follows [semantic versioning](https://semver.org/) and is enforced automatically by [conventional commits](https://www.conventionalcommits.org/) (see -["Commit Message Format"](https://workday.github.io/canvas-kit/?path=/docs/guides-contributing--page#commit-message-format)). +["Commit Message Format"](https://workday.github.io/canvas-kit/?path=/docs/guides-contributing--docs#commit-message-format)). Each module is independently versioned using [Lerna](https://github.com/lerna/lerna). @@ -102,8 +103,8 @@ recommend against using it in production until the first stable version has been ## Developer Documentation -- [Contributing](https://workday.github.io/canvas-kit/?path=/docs/guides-contributing--page) -- [Code of Conduct](https://workday.github.io/canvas-kit/?path=/docs/guides-contributing--page#code-of-conduct) +- [Contributing](https://workday.github.io/canvas-kit/?path=/docs/guides-contributing--docs) +- [Code of Conduct](https://workday.github.io/canvas-kit/?path=/docs/guides-contributing--docs#code-of-conduct) - Upgrade Guides: - [v4.0 Upgrade Guide](https://workday.github.io/canvas-kit/?path=/docs/guides-upgrade-guides-v4-0--docs) - [v5.0 Upgrade Guide](https://workday.github.io/canvas-kit/?path=/docs/guides-upgrade-guides-v5-0--docs) @@ -115,10 +116,10 @@ recommend against using it in production until the first stable version has been - [v11.0 Upgrade Guide](https://workday.github.io/canvas-kit/?path=/docs/guides-upgrade-guides-v11-0--docs) - [v12.0 Upgrade Guide](https://workday.github.io/canvas-kit/?path=/docs/guides-upgrade-guides-v12-0--docs) - Code Style / Best Practices: - - [API & Pattern Guidelines](https://workday.github.io/canvas-kit/?path=/docs/guides-api-pattern-guidelines--page) - - [Compound Components](https://workday.github.io/canvas-kit/?path=/docs/guides-compound-components--page) - - [Creating Compound Components](https://workday.github.io/canvas-kit/?path=/docs/guides-creating-compound-components--page) - - [Testing](https://workday.github.io/canvas-kit/?path=/docs/guides-testing--page) + - [API & Pattern Guidelines](https://workday.github.io/canvas-kit/?path=/docs/guides-api-pattern-guidelines--docs) + - [Compound Components](https://workday.github.io/canvas-kit/?path=/docs/guides-compound-components--docs) + - [Creating Compound Components](https://workday.github.io/canvas-kit/?path=/docs/guides-creating-compound-components--docs) + - [Testing](https://workday.github.io/canvas-kit/?path=/docs/guides-testing--docs) ## License diff --git a/cypress/component/Breadcrumbs.spec.tsx b/cypress/component/Breadcrumbs.spec.tsx index ce9d3ad57b..1566eadf9c 100644 --- a/cypress/component/Breadcrumbs.spec.tsx +++ b/cypress/component/Breadcrumbs.spec.tsx @@ -2,36 +2,10 @@ import * as React from 'react'; import {Basic} from '../../modules/react/breadcrumbs/stories/examples/Basic'; import {OverflowBreadcrumbs} from '../../modules/react/breadcrumbs/stories/examples/Overflow'; -function getBreadcrumbsNav() { - return cy.findByRole('navigation'); -} - -function getBreadcrumbsList() { - return cy.findByRole('list'); -} - function getAllBreadcrumbsLink(number?: number) { return number ? cy.findAllByRole('link').eq(number) : cy.findAllByRole('link'); } -function getDropdownButton() { - return cy.findByLabelText('More links'); -} - -function getDropdownMenu() { - return cy.findByRole('menu'); -} - -function getDropdownMenuItem(number?: number) { - return number ? cy.findAllByRole('menuitem').eq(number) : cy.findAllByRole('menuitem'); -} - -function openDropdownMenu() { - const dropdownButton = getDropdownButton(); - dropdownButton.focus(); - dropdownButton.realType('{enter}'); -} - describe('Breadcrumbs', () => { context('given the [Components/Navigation/Breadcrumbs, Basic] example is rendered', () => { beforeEach(() => { @@ -43,7 +17,7 @@ describe('Breadcrumbs', () => { }); it('should have an element with a role of "navigation"', () => { - getBreadcrumbsNav().should('be.visible'); + cy.findByRole('navigation').should('be.visible'); }); it('should have an element with a label of "Breadcrumbs"', () => { @@ -51,15 +25,15 @@ describe('Breadcrumbs', () => { }); it('should have a role of "list" on the