diff --git a/.changeset/config.json b/.changeset/config.json index 8493781..f51ec56 100644 --- a/.changeset/config.json +++ b/.changeset/config.json @@ -2,7 +2,7 @@ "$schema": "https://unpkg.com/@changesets/config@2.0.0/schema.json", "changelog": [ "@cultureamp/changelog-github", - { "repo": "cultureamp/kaizen-design-system" } + { "repo": "cultureamp/kaizen-legacy" } ], "access": "public", "baseBranch": "main", diff --git a/.changeset/flat-moles-think.md b/.changeset/flat-moles-think.md deleted file mode 100644 index a845151..0000000 --- a/.changeset/flat-moles-think.md +++ /dev/null @@ -1,2 +0,0 @@ ---- ---- diff --git a/docs/package-structure.md b/docs/package-structure.md index bedf603..b064748 100644 --- a/docs/package-structure.md +++ b/docs/package-structure.md @@ -71,11 +71,11 @@ The base package.json will look like this, where: }, "repository": { "type": "git", - "url": "git+https://github.com/cultureamp/kaizen-design-system.git", + "url": "git+https://github.com/cultureamp/kaizen-legacy.git", "directory": "packages/{{ PACKAGE_NAME }}" }, "bugs": { - "url": "https://github.com/cultureamp/kaizen-design-system/issues" + "url": "https://github.com/cultureamp/kaizen-legacy/issues" }, "files": [ "**/*", diff --git a/draft-packages/avatar/package.json b/draft-packages/avatar/package.json index 60af964..fde4f4f 100644 --- a/draft-packages/avatar/package.json +++ b/draft-packages/avatar/package.json @@ -9,11 +9,11 @@ }, "repository": { "type": "git", - "url": "git+https://github.com/cultureamp/kaizen-design-system.git", + "url": "git+https://github.com/cultureamp/kaizen-legacy.git", "directory": "draft-packages/avatar" }, "bugs": { - "url": "https://github.com/cultureamp/kaizen-design-system/issues" + "url": "https://github.com/cultureamp/kaizen-legacy/issues" }, "files": [ "**/*.js", diff --git a/draft-packages/badge/package.json b/draft-packages/badge/package.json index 7030192..c98fc31 100644 --- a/draft-packages/badge/package.json +++ b/draft-packages/badge/package.json @@ -9,11 +9,11 @@ }, "repository": { "type": "git", - "url": "git+https://github.com/cultureamp/kaizen-design-system.git", + "url": "git+https://github.com/cultureamp/kaizen-legacy.git", "directory": "draft-packages/badge" }, "bugs": { - "url": "https://github.com/cultureamp/kaizen-design-system/issues" + "url": "https://github.com/cultureamp/kaizen-legacy/issues" }, "files": [ "**/*.js", diff --git a/draft-packages/card/package.json b/draft-packages/card/package.json index 9290269..0ccc154 100644 --- a/draft-packages/card/package.json +++ b/draft-packages/card/package.json @@ -9,11 +9,11 @@ }, "repository": { "type": "git", - "url": "git+https://github.com/cultureamp/kaizen-design-system.git", + "url": "git+https://github.com/cultureamp/kaizen-legacy.git", "directory": "draft-packages/card" }, "bugs": { - "url": "https://github.com/cultureamp/kaizen-design-system/issues" + "url": "https://github.com/cultureamp/kaizen-legacy/issues" }, "files": [ "**/*.js", diff --git a/draft-packages/collapsible/package.json b/draft-packages/collapsible/package.json index 3e3dad3..28a2478 100644 --- a/draft-packages/collapsible/package.json +++ b/draft-packages/collapsible/package.json @@ -9,11 +9,11 @@ }, "repository": { "type": "git", - "url": "git+https://github.com/cultureamp/kaizen-design-system.git", + "url": "git+https://github.com/cultureamp/kaizen-legacy.git", "directory": "draft-packages/collapsible" }, "bugs": { - "url": "https://github.com/cultureamp/kaizen-design-system/issues" + "url": "https://github.com/cultureamp/kaizen-legacy/issues" }, "files": [ "**/*.js", diff --git a/draft-packages/divider/package.json b/draft-packages/divider/package.json index 789fd87..59f7159 100644 --- a/draft-packages/divider/package.json +++ b/draft-packages/divider/package.json @@ -9,11 +9,11 @@ }, "repository": { "type": "git", - "url": "git+https://github.com/cultureamp/kaizen-design-system.git", + "url": "git+https://github.com/cultureamp/kaizen-legacy.git", "directory": "draft-packages/divider" }, "bugs": { - "url": "https://github.com/cultureamp/kaizen-design-system/issues" + "url": "https://github.com/cultureamp/kaizen-legacy/issues" }, "files": [ "**/*.js", diff --git a/draft-packages/empty-state/package.json b/draft-packages/empty-state/package.json index 346f05c..f58665d 100644 --- a/draft-packages/empty-state/package.json +++ b/draft-packages/empty-state/package.json @@ -9,11 +9,11 @@ }, "repository": { "type": "git", - "url": "git+https://github.com/cultureamp/kaizen-design-system.git", + "url": "git+https://github.com/cultureamp/kaizen-legacy.git", "directory": "draft-packages/empty-state" }, "bugs": { - "url": "https://github.com/cultureamp/kaizen-design-system/issues" + "url": "https://github.com/cultureamp/kaizen-legacy/issues" }, "files": [ "**/*.js", diff --git a/draft-packages/filter-menu-button/package.json b/draft-packages/filter-menu-button/package.json index b235d32..e3ab242 100644 --- a/draft-packages/filter-menu-button/package.json +++ b/draft-packages/filter-menu-button/package.json @@ -9,11 +9,11 @@ }, "repository": { "type": "git", - "url": "git+https://github.com/cultureamp/kaizen-design-system.git", + "url": "git+https://github.com/cultureamp/kaizen-legacy.git", "directory": "draft-packages/filter-menu-button" }, "bugs": { - "url": "https://github.com/cultureamp/kaizen-design-system/issues" + "url": "https://github.com/cultureamp/kaizen-legacy/issues" }, "files": [ "**/*.js", diff --git a/draft-packages/form/package.json b/draft-packages/form/package.json index d2a38d3..0e64383 100644 --- a/draft-packages/form/package.json +++ b/draft-packages/form/package.json @@ -9,11 +9,11 @@ }, "repository": { "type": "git", - "url": "git+https://github.com/cultureamp/kaizen-design-system.git", + "url": "git+https://github.com/cultureamp/kaizen-legacy.git", "directory": "draft-packages/form" }, "bugs": { - "url": "https://github.com/cultureamp/kaizen-design-system/issues" + "url": "https://github.com/cultureamp/kaizen-legacy/issues" }, "files": [ "**/*.js", diff --git a/draft-packages/guidance-block/package.json b/draft-packages/guidance-block/package.json index 31c0be0..068815d 100644 --- a/draft-packages/guidance-block/package.json +++ b/draft-packages/guidance-block/package.json @@ -9,11 +9,11 @@ }, "repository": { "type": "git", - "url": "git+https://github.com/cultureamp/kaizen-design-system.git", + "url": "git+https://github.com/cultureamp/kaizen-legacy.git", "directory": "draft-packages/guidance-block" }, "bugs": { - "url": "https://github.com/cultureamp/kaizen-design-system/issues" + "url": "https://github.com/cultureamp/kaizen-legacy/issues" }, "files": [ "**/*.js", diff --git a/draft-packages/hero-card/package.json b/draft-packages/hero-card/package.json index 83983ef..ff212fe 100644 --- a/draft-packages/hero-card/package.json +++ b/draft-packages/hero-card/package.json @@ -9,11 +9,11 @@ }, "repository": { "type": "git", - "url": "git+https://github.com/cultureamp/kaizen-design-system.git", + "url": "git+https://github.com/cultureamp/kaizen-legacy.git", "directory": "draft-packages/hero-card" }, "bugs": { - "url": "https://github.com/cultureamp/kaizen-design-system/issues" + "url": "https://github.com/cultureamp/kaizen-legacy/issues" }, "files": [ "**/*.js", diff --git a/draft-packages/illustration/package.json b/draft-packages/illustration/package.json index c476fdd..08e9384 100644 --- a/draft-packages/illustration/package.json +++ b/draft-packages/illustration/package.json @@ -9,11 +9,11 @@ }, "repository": { "type": "git", - "url": "git+https://github.com/cultureamp/kaizen-design-system.git", + "url": "git+https://github.com/cultureamp/kaizen-legacy.git", "directory": "draft-packages/illustration" }, "bugs": { - "url": "https://github.com/cultureamp/kaizen-design-system/issues" + "url": "https://github.com/cultureamp/kaizen-legacy/issues" }, "files": [ "**/*.js", diff --git a/draft-packages/likert-scale-legacy/package.json b/draft-packages/likert-scale-legacy/package.json index fd4c133..4dbf754 100644 --- a/draft-packages/likert-scale-legacy/package.json +++ b/draft-packages/likert-scale-legacy/package.json @@ -9,11 +9,11 @@ }, "repository": { "type": "git", - "url": "git+https://github.com/cultureamp/kaizen-design-system.git", + "url": "git+https://github.com/cultureamp/kaizen-legacy.git", "directory": "draft-packages/likert-scale-legacy" }, "bugs": { - "url": "https://github.com/cultureamp/kaizen-design-system/issues" + "url": "https://github.com/cultureamp/kaizen-legacy/issues" }, "files": [ "**/*.js", diff --git a/draft-packages/menu/package.json b/draft-packages/menu/package.json index 2e22649..e6bc880 100644 --- a/draft-packages/menu/package.json +++ b/draft-packages/menu/package.json @@ -9,11 +9,11 @@ }, "repository": { "type": "git", - "url": "git+https://github.com/cultureamp/kaizen-design-system.git", + "url": "git+https://github.com/cultureamp/kaizen-legacy.git", "directory": "draft-packages/menu" }, "bugs": { - "url": "https://github.com/cultureamp/kaizen-design-system/issues" + "url": "https://github.com/cultureamp/kaizen-legacy/issues" }, "files": [ "**/*.js", diff --git a/draft-packages/modal/package.json b/draft-packages/modal/package.json index 39b9d99..e5221bb 100644 --- a/draft-packages/modal/package.json +++ b/draft-packages/modal/package.json @@ -9,11 +9,11 @@ }, "repository": { "type": "git", - "url": "git+https://github.com/cultureamp/kaizen-design-system.git", + "url": "git+https://github.com/cultureamp/kaizen-legacy.git", "directory": "draft-packages/modal" }, "bugs": { - "url": "https://github.com/cultureamp/kaizen-design-system/issues" + "url": "https://github.com/cultureamp/kaizen-legacy/issues" }, "files": [ "**/*.js", diff --git a/draft-packages/page-layout/package.json b/draft-packages/page-layout/package.json index 31cfb1e..5aa74e9 100644 --- a/draft-packages/page-layout/package.json +++ b/draft-packages/page-layout/package.json @@ -9,11 +9,11 @@ }, "repository": { "type": "git", - "url": "git+https://github.com/cultureamp/kaizen-design-system.git", + "url": "git+https://github.com/cultureamp/kaizen-legacy.git", "directory": "draft-packages/page-layout" }, "bugs": { - "url": "https://github.com/cultureamp/kaizen-design-system/issues" + "url": "https://github.com/cultureamp/kaizen-legacy/issues" }, "files": [ "**/*.js", diff --git a/draft-packages/popover/package.json b/draft-packages/popover/package.json index bfee7e5..9b78a14 100644 --- a/draft-packages/popover/package.json +++ b/draft-packages/popover/package.json @@ -9,11 +9,11 @@ }, "repository": { "type": "git", - "url": "git+https://github.com/cultureamp/kaizen-design-system.git", + "url": "git+https://github.com/cultureamp/kaizen-legacy.git", "directory": "draft-packages/popover" }, "bugs": { - "url": "https://github.com/cultureamp/kaizen-design-system/issues" + "url": "https://github.com/cultureamp/kaizen-legacy/issues" }, "files": [ "**/*.js", diff --git a/draft-packages/select/package.json b/draft-packages/select/package.json index ddc5a5f..c6dffb5 100644 --- a/draft-packages/select/package.json +++ b/draft-packages/select/package.json @@ -9,11 +9,11 @@ }, "repository": { "type": "git", - "url": "git+https://github.com/cultureamp/kaizen-design-system.git", + "url": "git+https://github.com/cultureamp/kaizen-legacy.git", "directory": "draft-packages/select" }, "bugs": { - "url": "https://github.com/cultureamp/kaizen-design-system/issues" + "url": "https://github.com/cultureamp/kaizen-legacy/issues" }, "files": [ "**/*.js", diff --git a/draft-packages/table/package.json b/draft-packages/table/package.json index 75614e1..a158288 100644 --- a/draft-packages/table/package.json +++ b/draft-packages/table/package.json @@ -9,11 +9,11 @@ }, "repository": { "type": "git", - "url": "git+https://github.com/cultureamp/kaizen-design-system.git", + "url": "git+https://github.com/cultureamp/kaizen-legacy.git", "directory": "draft-packages/table" }, "bugs": { - "url": "https://github.com/cultureamp/kaizen-design-system/issues" + "url": "https://github.com/cultureamp/kaizen-legacy/issues" }, "files": [ "**/*.js", diff --git a/draft-packages/tabs/package.json b/draft-packages/tabs/package.json index 3b56560..1ad6aed 100644 --- a/draft-packages/tabs/package.json +++ b/draft-packages/tabs/package.json @@ -9,11 +9,11 @@ }, "repository": { "type": "git", - "url": "git+https://github.com/cultureamp/kaizen-design-system.git", + "url": "git+https://github.com/cultureamp/kaizen-legacy.git", "directory": "draft-packages/tabs" }, "bugs": { - "url": "https://github.com/cultureamp/kaizen-design-system/issues" + "url": "https://github.com/cultureamp/kaizen-legacy/issues" }, "files": [ "**/*.js", diff --git a/draft-packages/tag/package.json b/draft-packages/tag/package.json index 1089699..5de51bd 100644 --- a/draft-packages/tag/package.json +++ b/draft-packages/tag/package.json @@ -9,11 +9,11 @@ }, "repository": { "type": "git", - "url": "git+https://github.com/cultureamp/kaizen-design-system.git", + "url": "git+https://github.com/cultureamp/kaizen-legacy.git", "directory": "draft-packages/tag" }, "bugs": { - "url": "https://github.com/cultureamp/kaizen-design-system/issues" + "url": "https://github.com/cultureamp/kaizen-legacy/issues" }, "files": [ "**/*.js", diff --git a/draft-packages/tile/package.json b/draft-packages/tile/package.json index 169a36f..75724ae 100644 --- a/draft-packages/tile/package.json +++ b/draft-packages/tile/package.json @@ -9,11 +9,11 @@ }, "repository": { "type": "git", - "url": "git+https://github.com/cultureamp/kaizen-design-system.git", + "url": "git+https://github.com/cultureamp/kaizen-legacy.git", "directory": "draft-packages/tile" }, "bugs": { - "url": "https://github.com/cultureamp/kaizen-design-system/issues" + "url": "https://github.com/cultureamp/kaizen-legacy/issues" }, "files": [ "**/*.js", diff --git a/draft-packages/title-block-zen/package.json b/draft-packages/title-block-zen/package.json index fb78079..fd1ad04 100644 --- a/draft-packages/title-block-zen/package.json +++ b/draft-packages/title-block-zen/package.json @@ -9,11 +9,11 @@ }, "repository": { "type": "git", - "url": "git+https://github.com/cultureamp/kaizen-design-system.git", + "url": "git+https://github.com/cultureamp/kaizen-legacy.git", "directory": "draft-packages/title-block-zen" }, "bugs": { - "url": "https://github.com/cultureamp/kaizen-design-system/issues" + "url": "https://github.com/cultureamp/kaizen-legacy/issues" }, "files": [ "**/*.js", diff --git a/draft-packages/tooltip/package.json b/draft-packages/tooltip/package.json index f2fdb5d..83b0235 100644 --- a/draft-packages/tooltip/package.json +++ b/draft-packages/tooltip/package.json @@ -9,11 +9,11 @@ }, "repository": { "type": "git", - "url": "git+https://github.com/cultureamp/kaizen-design-system.git", + "url": "git+https://github.com/cultureamp/kaizen-legacy.git", "directory": "draft-packages/tooltip" }, "bugs": { - "url": "https://github.com/cultureamp/kaizen-design-system/issues" + "url": "https://github.com/cultureamp/kaizen-legacy/issues" }, "files": [ "**/*.js", diff --git a/draft-packages/well/package.json b/draft-packages/well/package.json index 1082b9f..33df23f 100644 --- a/draft-packages/well/package.json +++ b/draft-packages/well/package.json @@ -9,11 +9,11 @@ }, "repository": { "type": "git", - "url": "git+https://github.com/cultureamp/kaizen-design-system.git", + "url": "git+https://github.com/cultureamp/kaizen-legacy.git", "directory": "draft-packages/well" }, "bugs": { - "url": "https://github.com/cultureamp/kaizen-design-system/issues" + "url": "https://github.com/cultureamp/kaizen-legacy/issues" }, "files": [ "**/*.js", diff --git a/packages/a11y/package.json b/packages/a11y/package.json index f96d6b9..9097bf5 100644 --- a/packages/a11y/package.json +++ b/packages/a11y/package.json @@ -9,11 +9,11 @@ }, "repository": { "type": "git", - "url": "git+https://github.com/cultureamp/kaizen-design-system.git", + "url": "git+https://github.com/cultureamp/kaizen-legacy.git", "directory": "packages/a11y" }, "bugs": { - "url": "https://github.com/cultureamp/kaizen-design-system/issues" + "url": "https://github.com/cultureamp/kaizen-legacy/issues" }, "files": [ "**/*.js", diff --git a/packages/brand-moment/package.json b/packages/brand-moment/package.json index 437d731..a7de1b0 100644 --- a/packages/brand-moment/package.json +++ b/packages/brand-moment/package.json @@ -9,11 +9,11 @@ }, "repository": { "type": "git", - "url": "git+https://github.com/cultureamp/kaizen-design-system.git", + "url": "git+https://github.com/cultureamp/kaizen-legacy.git", "directory": "packages/brand-moment" }, "bugs": { - "url": "https://github.com/cultureamp/kaizen-design-system/issues" + "url": "https://github.com/cultureamp/kaizen-legacy/issues" }, "files": [ "**/*.js", diff --git a/packages/brand/package.json b/packages/brand/package.json index 5050ac1..a6424dc 100644 --- a/packages/brand/package.json +++ b/packages/brand/package.json @@ -9,11 +9,11 @@ }, "repository": { "type": "git", - "url": "git+https://github.com/cultureamp/kaizen-design-system.git", + "url": "git+https://github.com/cultureamp/kaizen-legacy.git", "directory": "packages/brand" }, "bugs": { - "url": "https://github.com/cultureamp/kaizen-design-system/issues" + "url": "https://github.com/cultureamp/kaizen-legacy/issues" }, "files": [ "**/*.js", diff --git a/packages/button/docs/Button.stories.tsx b/packages/button/docs/Button.stories.tsx index 9ee19a0..77abf58 100644 --- a/packages/button/docs/Button.stories.tsx +++ b/packages/button/docs/Button.stories.tsx @@ -28,7 +28,7 @@ const meta = { ], resourceLinks: { sourceCode: - "https://github.com/cultureamp/kaizen-design-system/tree/master/packages/button", + "https://github.com/cultureamp/kaizen-legacy/tree/main/packages/button", figma: "https://www.figma.com/file/eZKEE5kXbEMY3lx84oz8iN/%E2%9D%A4%EF%B8%8F-UI-Kit%3A-Heart?node-id=1929%3A17364", designGuidelines: diff --git a/packages/button/package.json b/packages/button/package.json index cfb463b..0f59078 100644 --- a/packages/button/package.json +++ b/packages/button/package.json @@ -9,11 +9,11 @@ }, "repository": { "type": "git", - "url": "git+https://github.com/cultureamp/kaizen-design-system.git", + "url": "git+https://github.com/cultureamp/kaizen-legacy.git", "directory": "packages/button" }, "bugs": { - "url": "https://github.com/cultureamp/kaizen-design-system/issues" + "url": "https://github.com/cultureamp/kaizen-legacy/issues" }, "files": [ "**/*.js", diff --git a/packages/component-base/package.json b/packages/component-base/package.json index a11ab17..3ffe0df 100644 --- a/packages/component-base/package.json +++ b/packages/component-base/package.json @@ -9,11 +9,11 @@ }, "repository": { "type": "git", - "url": "git+https://github.com/cultureamp/kaizen-design-system.git", + "url": "git+https://github.com/cultureamp/kaizen-legacy.git", "directory": "packages/component-base" }, "bugs": { - "url": "https://github.com/cultureamp/kaizen-design-system/issues" + "url": "https://github.com/cultureamp/kaizen-legacy/issues" }, "files": [ "**/*.js", diff --git a/packages/component-library/package.json b/packages/component-library/package.json index cd3b245..6a92efb 100644 --- a/packages/component-library/package.json +++ b/packages/component-library/package.json @@ -1,14 +1,14 @@ { "name": "@kaizen/component-library", "description": "Component Library for Culture Amp's Kaizen Design System", - "homepage": "https://github.com/cultureamp/kaizen-design-system/tree/main/packages/component-library", + "homepage": "https://github.com/cultureamp/kaizen-legacy/tree/main/packages/component-library", "repository": { "type": "git", - "url": "git+https://github.com/cultureamp/kaizen-design-system.git", + "url": "git+https://github.com/cultureamp/kaizen-legacy.git", "directory": "packages/component-library" }, "bugs": { - "url": "https://github.com/cultureamp/kaizen-design-system/issues" + "url": "https://github.com/cultureamp/kaizen-legacy/issues" }, "files": [ "**/*.js", diff --git a/packages/date-picker/package.json b/packages/date-picker/package.json index b09fff6..1b24332 100644 --- a/packages/date-picker/package.json +++ b/packages/date-picker/package.json @@ -9,11 +9,11 @@ }, "repository": { "type": "git", - "url": "git+https://github.com/cultureamp/kaizen-design-system.git", + "url": "git+https://github.com/cultureamp/kaizen-legacy.git", "directory": "packages/date-picker" }, "bugs": { - "url": "https://github.com/cultureamp/kaizen-design-system/issues" + "url": "https://github.com/cultureamp/kaizen-legacy/issues" }, "files": [ "**/*.js", diff --git a/packages/deprecated-component-library-helpers/package.json b/packages/deprecated-component-library-helpers/package.json index f55ee5d..a6ce444 100644 --- a/packages/deprecated-component-library-helpers/package.json +++ b/packages/deprecated-component-library-helpers/package.json @@ -1,13 +1,13 @@ { "name": "@kaizen/deprecated-component-library-helpers", "version": "2.5.8", - "homepage": "https://github.com/cultureamp/kaizen-design-system/tree/main/packages/deprecated-comonent-library-helpers", + "homepage": "https://github.com/cultureamp/kaizen-legacy/tree/main/packages/deprecated-comonent-library-helpers", "repository": { "type": "git", - "url": "git+https://github.com/cultureamp/kaizen-design-system.git" + "url": "git+https://github.com/cultureamp/kaizen-legacy.git" }, "bugs": { - "url": "https://github.com/cultureamp/kaizen-design-system/issues" + "url": "https://github.com/cultureamp/kaizen-legacy/issues" }, "files": [ "**/*" diff --git a/packages/loading-skeleton/package.json b/packages/loading-skeleton/package.json index 629d3af..7f574ec 100644 --- a/packages/loading-skeleton/package.json +++ b/packages/loading-skeleton/package.json @@ -9,11 +9,11 @@ }, "repository": { "type": "git", - "url": "git+https://github.com/cultureamp/kaizen-design-system.git", + "url": "git+https://github.com/cultureamp/kaizen-legacy.git", "directory": "packages/loading-skeleton" }, "bugs": { - "url": "https://github.com/cultureamp/kaizen-design-system/issues" + "url": "https://github.com/cultureamp/kaizen-legacy/issues" }, "files": [ "**/*.js", diff --git a/packages/loading-spinner/package.json b/packages/loading-spinner/package.json index bbf8491..e950c37 100644 --- a/packages/loading-spinner/package.json +++ b/packages/loading-spinner/package.json @@ -9,11 +9,11 @@ }, "repository": { "type": "git", - "url": "git+https://github.com/cultureamp/kaizen-design-system.git", + "url": "git+https://github.com/cultureamp/kaizen-legacy.git", "directory": "packages/loading-spinner" }, "bugs": { - "url": "https://github.com/cultureamp/kaizen-design-system/issues" + "url": "https://github.com/cultureamp/kaizen-legacy/issues" }, "files": [ "**/*.js", diff --git a/packages/notification/package.json b/packages/notification/package.json index a94d20a..c178c08 100644 --- a/packages/notification/package.json +++ b/packages/notification/package.json @@ -9,11 +9,11 @@ }, "repository": { "type": "git", - "url": "git+https://github.com/cultureamp/kaizen-design-system.git", + "url": "git+https://github.com/cultureamp/kaizen-legacy.git", "directory": "packages/notification" }, "bugs": { - "url": "https://github.com/cultureamp/kaizen-design-system/issues" + "url": "https://github.com/cultureamp/kaizen-legacy/issues" }, "files": [ "**/*.js", diff --git a/packages/pagination/package.json b/packages/pagination/package.json index 02e3ff2..f06de5e 100644 --- a/packages/pagination/package.json +++ b/packages/pagination/package.json @@ -9,11 +9,11 @@ }, "repository": { "type": "git", - "url": "git+https://github.com/cultureamp/kaizen-design-system.git", + "url": "git+https://github.com/cultureamp/kaizen-legacy.git", "directory": "packages/pagination" }, "bugs": { - "url": "https://github.com/cultureamp/kaizen-design-system/issues" + "url": "https://github.com/cultureamp/kaizen-legacy/issues" }, "files": [ "**/*.js", diff --git a/packages/progress-bar/package.json b/packages/progress-bar/package.json index 2048cbd..36b0e3d 100644 --- a/packages/progress-bar/package.json +++ b/packages/progress-bar/package.json @@ -9,11 +9,11 @@ }, "repository": { "type": "git", - "url": "git+https://github.com/cultureamp/kaizen-design-system.git", + "url": "git+https://github.com/cultureamp/kaizen-legacy.git", "directory": "packages/progress-bar" }, "bugs": { - "url": "https://github.com/cultureamp/kaizen-design-system/issues" + "url": "https://github.com/cultureamp/kaizen-legacy/issues" }, "files": [ "**/*.js", diff --git a/packages/responsive/package.json b/packages/responsive/package.json index 2f20e91..e547c28 100644 --- a/packages/responsive/package.json +++ b/packages/responsive/package.json @@ -9,11 +9,11 @@ }, "repository": { "type": "git", - "url": "git+https://github.com/cultureamp/kaizen-design-system.git", + "url": "git+https://github.com/cultureamp/kaizen-legacy.git", "directory": "packages/responsive" }, "bugs": { - "url": "https://github.com/cultureamp/kaizen-design-system/issues" + "url": "https://github.com/cultureamp/kaizen-legacy/issues" }, "files": [ "**/*.js", diff --git a/packages/rich-text-editor/package.json b/packages/rich-text-editor/package.json index 2f375c9..59f32ee 100644 --- a/packages/rich-text-editor/package.json +++ b/packages/rich-text-editor/package.json @@ -9,11 +9,11 @@ }, "repository": { "type": "git", - "url": "git+https://github.com/cultureamp/kaizen-design-system.git", + "url": "git+https://github.com/cultureamp/kaizen-legacy.git", "directory": "packages/rich-text-editor" }, "bugs": { - "url": "https://github.com/cultureamp/kaizen-design-system/issues" + "url": "https://github.com/cultureamp/kaizen-legacy/issues" }, "files": [ "**/*.js", diff --git a/packages/select/CHANGELOG.md b/packages/select/CHANGELOG.md index 1a55eac..ff3a4c6 100644 --- a/packages/select/CHANGELOG.md +++ b/packages/select/CHANGELOG.md @@ -1,5 +1,18 @@ # Change Log +## 6.19.0 + +### Minor Changes + +- [#9](https://github.com/cultureamp/kaizen-legacy/pull/9) [`8ea613c`](https://github.com/cultureamp/kaizen-legacy/commit/8ea613cba997b1e85fcaa4ddc92656b9de3c1a48) - Update FilterMultiSelect ListBoxSection to avoid duplicate reading of sectionName as the accessible title. + + - Update sectionName to be optional if sectionHeader is provided + - This will solve the issue of sectionName and sectionHeader being read twice when they are the same + - Minor style change to ensure hide bullet lists as filtering + - Minor style changes to allow for default text styles for section headings with just text + - Add conditional check to render the sectionName only if provided + - Add tests to validate type accessible names are constructed as expected + ## 6.18.3 ### Patch Changes diff --git a/packages/select/docs/FilterMultiSelect.stories.tsx b/packages/select/docs/FilterMultiSelect.stories.tsx index 0726f52..4440b95 100644 --- a/packages/select/docs/FilterMultiSelect.stories.tsx +++ b/packages/select/docs/FilterMultiSelect.stories.tsx @@ -98,9 +98,7 @@ export const DefaultKaizenSiteDemo: StoryFn<
Items: {" "} - - {JSON.stringify(mockItems, null, 2)} - + {JSON.stringify(mockItems, null, "\t")}
) @@ -146,6 +144,7 @@ export const WithSections: StoryFn = () => { selectedKeys={selectedKeys} items={mockItems} label="Engineer" + isOpen={IS_CHROMATIC || undefined} trigger={(): JSX.Element => ( = () => {
Items: - - {JSON.stringify(mockItems, null, "\t")} - + {JSON.stringify(mockItems, null, "\t")} +
+ + ) +} +WithSections.parameters = { + chromatic: { disable: false }, +} + +export const WithSectionHeaders: StoryFn = () => { + const [selectedKeys, setSelectedKeys] = useState( + new Set(["id-fe"]) + ) + + const handleSelectionChange = (keys: Selection): void => setSelectedKeys(keys) + + return ( + <> + ( + + )} + > + {(): JSX.Element => ( + <> + + + {({ + selectedItems, + unselectedItems, + disabledItems, + hasNoItems, + }): JSX.Element => + hasNoItems ? ( + + No results found. + + ) : ( + <> + {selectedItems.length > 0 && ( + + {(item): JSX.Element => ( + + )} + + )} + + {unselectedItems.length > 0 && ( + + {(item): JSX.Element => ( + + )} + + )} + + {disabledItems.length > 0 && ( + + {(item): JSX.Element => ( + + )} + + )} + + ) + } + + + + + + + )} + + + ) +} +WithSectionHeaders.parameters = { + chromatic: { disable: false }, +} + +export const WithSectionNotification: StoryFn< + typeof FilterMultiSelect +> = () => { + const [selectedKeys, setSelectedKeys] = useState( + new Set(["id-fe"]) + ) + + const handleSelectionChange = (keys: Selection): void => setSelectedKeys(keys) + + return ( + <> + ( + + )} + > + {(): JSX.Element => ( + <> + + + {({ + selectedItems, + unselectedItems, + disabledItems, + hasNoItems, + }): JSX.Element => ( + <> + {hasNoItems ? ( + + No results found. + + ) : ( + <> + {selectedItems.length > 0 && ( + + {(item): JSX.Element => ( + + )} + + )} + + {unselectedItems.length > 0 && ( + + {(item): JSX.Element => ( + + )} + + )} + + {disabledItems.length > 0 && ( + + Disabled items + + Results for these filters are hidden to protect + identities of individuals and small groups + + + } + > + {(item): JSX.Element => ( + + )} + + )} + + )} + + )} + + + + + + + )} + +
+ Items: + {JSON.stringify(mockItems, null, "\t")}
) } +WithSectionNotification.parameters = { + chromatic: { disable: false }, +} export const TruncatedLabels: StoryFn = () => { const [selectedKeys, setSelectedKeys] = useState( @@ -355,7 +580,7 @@ export const FilterBarDemo = (): JSX.Element => { Selected Values:{" "} - + {JSON.stringify(selectedDemographicValues, null, "\t")} @@ -601,113 +826,3 @@ export const Async: StoryFn = args => { ) } Async.decorators = [withQueryProvider] - -export const WithSectionHeader: StoryFn = () => { - const [selectedKeys, setSelectedKeys] = useState( - new Set(["id-fe"]) - ) - - const handleSelectionChange = (keys: Selection): void => setSelectedKeys(keys) - - return ( - <> - ( - - )} - > - {(): JSX.Element => ( - <> - - - {({ - selectedItems, - unselectedItems, - disabledItems, - hasNoItems, - }): JSX.Element => ( - <> - {hasNoItems && ( - - No results found. - - )} - - {(item): JSX.Element => ( - - )} - - - {unselectedItems.length > 0 && selectedItems.length > 0 && ( - - )} - - - {(item): JSX.Element => ( - - )} - - - {disabledItems.length > 0 && - (selectedItems.length > 0 || - unselectedItems.length > 0) && ( - - )} - - Results for these filters are hidden to protect - identities of individuals and small groups - - } - > - {(item): JSX.Element => ( - - )} - - - )} - - - - - - - )} - -
- Items: - - {JSON.stringify(mockItems, null, "\t")} - -
- - ) -} diff --git a/packages/select/docs/MenuLoadingSkeleton.stories.tsx b/packages/select/docs/MenuLoadingSkeleton.stories.tsx index a0321b5..4f3fa41 100644 --- a/packages/select/docs/MenuLoadingSkeleton.stories.tsx +++ b/packages/select/docs/MenuLoadingSkeleton.stories.tsx @@ -24,7 +24,7 @@ const meta = { }, resourceLinks: { sourceCode: - "https://github.com/cultureamp/kaizen-design-system/tree/master/packages/select", + "https://github.com/cultureamp/kaizen-legacy/tree/main/packages/select", }, }, } satisfies Meta diff --git a/packages/select/package.json b/packages/select/package.json index ce2e91a..e684c94 100644 --- a/packages/select/package.json +++ b/packages/select/package.json @@ -1,6 +1,6 @@ { "name": "@kaizen/select", - "version": "6.18.3", + "version": "6.19.0", "description": "Select components", "scripts": { "prepublishOnly": "tsc --project tsconfig.dist.json", @@ -9,11 +9,11 @@ }, "repository": { "type": "git", - "url": "git+https://github.com/cultureamp/kaizen-design-system.git", + "url": "git+https://github.com/cultureamp/kaizen-legacy.git", "directory": "packages/select" }, "bugs": { - "url": "https://github.com/cultureamp/kaizen-design-system/issues" + "url": "https://github.com/cultureamp/kaizen-legacy/issues" }, "files": [ "**/*.js", diff --git a/packages/select/src/FilterMultiSelect/components/ListBox/ListBox.module.scss b/packages/select/src/FilterMultiSelect/components/ListBox/ListBox.module.scss index e7277b3..eba898e 100644 --- a/packages/select/src/FilterMultiSelect/components/ListBox/ListBox.module.scss +++ b/packages/select/src/FilterMultiSelect/components/ListBox/ListBox.module.scss @@ -16,3 +16,8 @@ .hidden { display: none; } + +// this is a div but remove styles briefly flickering to a bullet list as the sections are removed +.noResultsWrapper { + list-style: none; +} diff --git a/packages/select/src/FilterMultiSelect/components/ListBox/ListBox.tsx b/packages/select/src/FilterMultiSelect/components/ListBox/ListBox.tsx index 1467052..017b8a3 100644 --- a/packages/select/src/FilterMultiSelect/components/ListBox/ListBox.tsx +++ b/packages/select/src/FilterMultiSelect/components/ListBox/ListBox.tsx @@ -76,7 +76,7 @@ export const ListBox = ({ children }: ListBoxProps): JSX.Element => { if (hasNoItems) { return ( <> -
{children(itemsState)}
+
{children(itemsState)}
{/* This ul with the ref needs to exist otherwise it fatals */}
    diff --git a/packages/select/src/FilterMultiSelect/components/ListBoxSection/ListBoxSection.module.scss b/packages/select/src/FilterMultiSelect/components/ListBoxSection/ListBoxSection.module.scss index 77abe22..f8dd21d 100644 --- a/packages/select/src/FilterMultiSelect/components/ListBoxSection/ListBoxSection.module.scss +++ b/packages/select/src/FilterMultiSelect/components/ListBoxSection/ListBoxSection.module.scss @@ -1,5 +1,18 @@ +@import "~@kaizen/design-tokens/sass/typography"; +@import "~@kaizen/design-tokens/sass/color"; +@import "~@kaizen/design-tokens/sass/spacing"; + .listBoxSection { display: grid; list-style: none; padding: 0; } + +.listBoxSectionHeader { + font-family: $typography-heading-6-font-family; + font-size: $typography-heading-6-font-size; + font-weight: $typography-heading-6-font-weight; + line-height: $typography-heading-6-line-height; + color: rgba($color-purple-800-rgb, 0.7); + margin: $spacing-6 0; +} diff --git a/packages/select/src/FilterMultiSelect/components/ListBoxSection/ListBoxSection.spec.tsx b/packages/select/src/FilterMultiSelect/components/ListBoxSection/ListBoxSection.spec.tsx new file mode 100644 index 0000000..1c3c92f --- /dev/null +++ b/packages/select/src/FilterMultiSelect/components/ListBoxSection/ListBoxSection.spec.tsx @@ -0,0 +1,50 @@ +import React from "react" +import { render } from "@testing-library/react" +import { ListBoxSection } from "./ListBoxSection" + +describe("", () => { + describe("sectionName only", () => { + it("will only have aria-label", () => { + const { getByRole } = render( + + {() => undefined} + + ) + const group = getByRole("group") + expect(group).toHaveAttribute("aria-label", "Test sectionName only") + expect(group).not.toHaveTextContent("Test sectionName only") + }) + }) + + describe("sectionHeader only", () => { + it("will have sectionHeader content", () => { + const { getByRole } = render( + + {() => undefined} + + ) + const group = getByRole("group", { name: "Test sectionHeader only" }) + expect(group).toBeInTheDocument() + expect(group).toHaveTextContent("Test sectionHeader only") + }) + }) + + describe("sectionHeader and sectionName", () => { + it("will have combined accessible name", () => { + const { getByRole } = render( + + {() => undefined} + + ) + const group = getByRole("group", { + name: "Hidden group name. sectionHeader name", + }) + expect(group).toBeInTheDocument() + expect(group).toHaveTextContent("Hidden group name. sectionHeader name") + }) + }) +}) diff --git a/packages/select/src/FilterMultiSelect/components/ListBoxSection/ListBoxSection.tsx b/packages/select/src/FilterMultiSelect/components/ListBoxSection/ListBoxSection.tsx index a2de1b6..9ff106c 100644 --- a/packages/select/src/FilterMultiSelect/components/ListBoxSection/ListBoxSection.tsx +++ b/packages/select/src/FilterMultiSelect/components/ListBoxSection/ListBoxSection.tsx @@ -3,41 +3,57 @@ import { v4 } from "uuid" import { VisuallyHidden } from "@kaizen/a11y" import { MultiSelectItem } from "../../../types" import styles from "./ListBoxSection.module.scss" -export interface ListBoxSectionProps { - items: MultiSelectItem[] + +type SectionNameProps = { /** * Becomes an aria-label on the section, informing * unsighted users */ sectionName: string - /** If provided, will override the aria-label for this group */ - sectionHeader?: ReactNode - children: (item: MultiSelectItem) => React.ReactNode } +type SectionHeaderProps = { + /** + * Becomes an aria-label on the section, informing + * unsighted users + */ + sectionName?: string + /** + * Can be used for a visual title of the ListBoxSection or to provide addition information in a React node. + * If this is the same title as sectionName, you should only pass in a sectionHeader to avoid duplicate descriptions. + */ + sectionHeader: ReactNode +} + +export type ListBoxSectionProps = { + items: MultiSelectItem[] + children: (item: MultiSelectItem) => React.ReactNode +} & (SectionHeaderProps | SectionNameProps) + export const ListBoxSection = ({ items, - sectionName, children, - sectionHeader, + sectionName, + ...restProps }: ListBoxSectionProps): JSX.Element => { const [listSectionId] = useState(v4()) + const hasSectionHeader = "sectionHeader" in restProps return (
    • - {sectionHeader && ( + {hasSectionHeader && ( )} {/* diff --git a/packages/split-button/package.json b/packages/split-button/package.json index 35919e8..55c2766 100644 --- a/packages/split-button/package.json +++ b/packages/split-button/package.json @@ -9,11 +9,11 @@ }, "repository": { "type": "git", - "url": "git+https://github.com/cultureamp/kaizen-design-system.git", + "url": "git+https://github.com/cultureamp/kaizen-legacy.git", "directory": "packages/split-button" }, "bugs": { - "url": "https://github.com/cultureamp/kaizen-design-system/issues" + "url": "https://github.com/cultureamp/kaizen-legacy/issues" }, "files": [ "**/*.js", diff --git a/packages/tabs/package.json b/packages/tabs/package.json index 4f7f573..dc9accc 100644 --- a/packages/tabs/package.json +++ b/packages/tabs/package.json @@ -9,11 +9,11 @@ }, "repository": { "type": "git", - "url": "git+https://github.com/cultureamp/kaizen-design-system.git", + "url": "git+https://github.com/cultureamp/kaizen-legacy.git", "directory": "packages/tabs" }, "bugs": { - "url": "https://github.com/cultureamp/kaizen-design-system/issues" + "url": "https://github.com/cultureamp/kaizen-legacy/issues" }, "files": [ "**/*.js", diff --git a/packages/typography/package.json b/packages/typography/package.json index afa7ad8..7d6a681 100644 --- a/packages/typography/package.json +++ b/packages/typography/package.json @@ -9,11 +9,11 @@ }, "repository": { "type": "git", - "url": "git+https://github.com/cultureamp/kaizen-design-system.git", + "url": "git+https://github.com/cultureamp/kaizen-legacy.git", "directory": "packages/typography" }, "bugs": { - "url": "https://github.com/cultureamp/kaizen-design-system/issues" + "url": "https://github.com/cultureamp/kaizen-legacy/issues" }, "files": [ "**/*.js",