From d0b58cce6b1a504389d246d2d1ee607eeb275e40 Mon Sep 17 00:00:00 2001 From: dreamwasp Date: Fri, 26 Jun 2026 08:12:29 -0400 Subject: [PATCH 1/8] test modules --- jest.config.base.cjs | 44 ++++++++++ .../{babel.config.js => babel.config.cjs} | 0 .../{emotion-plugin.js => emotion-plugin.cjs} | 0 .../{icon-template.js => icon-template.cjs} | 0 .../{index-template.js => index-template.cjs} | 0 .../{jest.config.ts => jest.config.cjs} | 6 +- .../{mask-plugin.js => mask-plugin.cjs} | 0 packages/gamut-icons/package.json | 10 ++- packages/gamut-icons/project.json | 2 +- .../{svgr.config.js => svgr.config.cjs} | 8 +- .../{babel.config.js => babel.config.cjs} | 0 .../{jest.config.ts => jest.config.cjs} | 4 +- packages/gamut-illustrations/package.json | 11 ++- packages/gamut-illustrations/project.json | 2 +- .../{babel.config.js => babel.config.cjs} | 0 .../{emotion-plugin.js => emotion-plugin.cjs} | 0 .../{index-template.js => index-template.cjs} | 0 .../{jest.config.ts => jest.config.cjs} | 4 +- packages/gamut-patterns/package.json | 10 ++- ...ttern-template.js => pattern-template.cjs} | 0 packages/gamut-patterns/project.json | 2 +- .../{svgr.config.js => svgr.config.cjs} | 6 +- .../{babel.config.js => babel.config.cjs} | 0 .../{jest.config.ts => jest.config.cjs} | 8 +- packages/gamut-styles/package.json | 11 ++- packages/gamut-styles/project.json | 2 +- .../{babel.config.js => babel.config.cjs} | 0 packages/gamut-tests/jest.config.cjs | 4 + packages/gamut-tests/jest.config.ts | 4 - packages/gamut-tests/package.json | 10 ++- packages/gamut-tests/project.json | 2 +- .../__snapshots__/gamut.test.ts.snap | 3 + .../{babel.config.js => babel.config.cjs} | 0 .../gamut/{jest.config.ts => jest.config.cjs} | 8 +- packages/gamut/package.json | 11 ++- packages/gamut/project.json | 2 +- .../__snapshots__/utils.test.tsx.snap | 80 +++++++------------ packages/gamut/src/Typography/Text.tsx | 12 ++- .../components/Scales/ColorScale.tsx | 2 +- .../src/lib/Typography/Text/Text.stories.tsx | 3 +- .../src/lib/Typography/Text/tables.tsx | 3 +- .../{babel.config.js => babel.config.cjs} | 0 .../{jest.config.ts => jest.config.cjs} | 4 +- packages/variance/package.json | 10 ++- packages/variance/project.json | 2 +- 45 files changed, 184 insertions(+), 106 deletions(-) create mode 100644 jest.config.base.cjs rename packages/gamut-icons/{babel.config.js => babel.config.cjs} (100%) rename packages/gamut-icons/{emotion-plugin.js => emotion-plugin.cjs} (100%) rename packages/gamut-icons/{icon-template.js => icon-template.cjs} (100%) rename packages/gamut-icons/{index-template.js => index-template.cjs} (100%) rename packages/gamut-icons/{jest.config.ts => jest.config.cjs} (73%) rename packages/gamut-icons/{mask-plugin.js => mask-plugin.cjs} (100%) rename packages/gamut-icons/{svgr.config.js => svgr.config.cjs} (71%) rename packages/gamut-illustrations/{babel.config.js => babel.config.cjs} (100%) rename packages/gamut-illustrations/{jest.config.ts => jest.config.cjs} (72%) rename packages/gamut-patterns/{babel.config.js => babel.config.cjs} (100%) rename packages/gamut-patterns/{emotion-plugin.js => emotion-plugin.cjs} (100%) rename packages/gamut-patterns/{index-template.js => index-template.cjs} (100%) rename packages/gamut-patterns/{jest.config.ts => jest.config.cjs} (83%) rename packages/gamut-patterns/{pattern-template.js => pattern-template.cjs} (100%) rename packages/gamut-patterns/{svgr.config.js => svgr.config.cjs} (72%) rename packages/gamut-styles/{babel.config.js => babel.config.cjs} (100%) rename packages/gamut-styles/{jest.config.ts => jest.config.cjs} (75%) rename packages/gamut-tests/{babel.config.js => babel.config.cjs} (100%) create mode 100644 packages/gamut-tests/jest.config.cjs delete mode 100644 packages/gamut-tests/jest.config.ts rename packages/gamut/{babel.config.js => babel.config.cjs} (100%) rename packages/gamut/{jest.config.ts => jest.config.cjs} (58%) rename packages/variance/{babel.config.js => babel.config.cjs} (100%) rename packages/variance/{jest.config.ts => jest.config.cjs} (60%) diff --git a/jest.config.base.cjs b/jest.config.base.cjs new file mode 100644 index 00000000000..7ef4fa21bc4 --- /dev/null +++ b/jest.config.base.cjs @@ -0,0 +1,44 @@ +/* eslint-disable */ +const path = require('path'); + +const COVERAGE_PATH_IGNORE_PATTERNS = [ + '/node_modules/', + '/dist/', + '/node_modules/', + '/dist/', + 'packages/gamut-icons/dist/icons/', + 'packages/gamut-patterns/dist/patterns/', +]; + +const baseConfig = (packageName, overrides = {}) => { + const outputDirectory = path.join(__dirname, `coverage/${packageName}`); + return { + displayName: packageName, + preset: '../../jest.preset.js', + clearMocks: true, + coverageDirectory: outputDirectory, + coverageReporters: process.env.CI + ? ['clover', 'json', 'lcov', 'text'] + : ['html', 'text'], + reporters: process.env.CI + ? [ + 'default', + 'github-actions', + ['jest-junit', { addFileAttribute: true, outputDirectory }], + ] + : ['default'], + moduleNameMapper: { + '\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga|md)$': + '/../../script/jest/fileMock', + '\\.(css|scss)$': '/../../script/jest/styleMock', + }, + testPathIgnorePatterns: ['node_modules', 'dist'], + ...overrides, + coveragePathIgnorePatterns: [ + ...COVERAGE_PATH_IGNORE_PATTERNS, + ...(overrides.coveragePathIgnorePatterns ?? []), + ], + }; +}; + +module.exports = baseConfig; diff --git a/packages/gamut-icons/babel.config.js b/packages/gamut-icons/babel.config.cjs similarity index 100% rename from packages/gamut-icons/babel.config.js rename to packages/gamut-icons/babel.config.cjs diff --git a/packages/gamut-icons/emotion-plugin.js b/packages/gamut-icons/emotion-plugin.cjs similarity index 100% rename from packages/gamut-icons/emotion-plugin.js rename to packages/gamut-icons/emotion-plugin.cjs diff --git a/packages/gamut-icons/icon-template.js b/packages/gamut-icons/icon-template.cjs similarity index 100% rename from packages/gamut-icons/icon-template.js rename to packages/gamut-icons/icon-template.cjs diff --git a/packages/gamut-icons/index-template.js b/packages/gamut-icons/index-template.cjs similarity index 100% rename from packages/gamut-icons/index-template.js rename to packages/gamut-icons/index-template.cjs diff --git a/packages/gamut-icons/jest.config.ts b/packages/gamut-icons/jest.config.cjs similarity index 73% rename from packages/gamut-icons/jest.config.ts rename to packages/gamut-icons/jest.config.cjs index 4b6f4a815bb..d7a8308f762 100644 --- a/packages/gamut-icons/jest.config.ts +++ b/packages/gamut-icons/jest.config.cjs @@ -1,13 +1,13 @@ /* eslint-disable */ -import base from '../../jest.config.base'; +const base = require('../../jest.config.base.cjs'); -export default base('gamut-icons', { +module.exports = base('gamut-icons', { transform: { '^.+\\.[tj]sx?$': 'babel-jest', }, setupFiles: ['/../../script/jest/base-setup.js'], setupFilesAfterEnv: ['/../../script/jest/rtl-setup.js'], - moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx'], + moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'cjs'], coveragePathIgnorePatterns: ['/src/icons/'], collectCoverageFrom: [ 'src/**/*.{ts,tsx}', diff --git a/packages/gamut-icons/mask-plugin.js b/packages/gamut-icons/mask-plugin.cjs similarity index 100% rename from packages/gamut-icons/mask-plugin.js rename to packages/gamut-icons/mask-plugin.cjs diff --git a/packages/gamut-icons/package.json b/packages/gamut-icons/package.json index e59c2b6904d..dc457257ba5 100644 --- a/packages/gamut-icons/package.json +++ b/packages/gamut-icons/package.json @@ -7,12 +7,18 @@ "@codecademy/gamut-styles": "20.0.2", "@codecademy/variance": "0.26.1" }, + "exports": { + ".": { + "import": "./dist/index.js", + "types": "./dist/index.d.ts", + "default": "./dist/index.js" + } + }, "files": [ "dist" ], "license": "MIT", "main": "dist/index.js", - "module": "dist/index.js", "peerDependencies": { "@emotion/react": "^11.4.0", "@emotion/styled": "^11.3.0", @@ -28,5 +34,5 @@ "format": "svgo -f ./src/svg --pretty --config=.svgo.yml" }, "sideEffects": false, - "types": "dist/index.d.ts" + "type": "module" } diff --git a/packages/gamut-icons/project.json b/packages/gamut-icons/project.json index 33258ba49f5..ba0eed59988 100644 --- a/packages/gamut-icons/project.json +++ b/packages/gamut-icons/project.json @@ -32,7 +32,7 @@ "dependsOn": ["build"], "outputs": ["{workspaceRoot}/coverage/packages/gamut-icons"], "options": { - "jestConfig": "packages/gamut-icons/jest.config.ts" + "jestConfig": "packages/gamut-icons/jest.config.cjs" } }, "clean": { diff --git a/packages/gamut-icons/svgr.config.js b/packages/gamut-icons/svgr.config.cjs similarity index 71% rename from packages/gamut-icons/svgr.config.js rename to packages/gamut-icons/svgr.config.cjs index 8b6a70a4de9..90524298a82 100644 --- a/packages/gamut-icons/svgr.config.js +++ b/packages/gamut-icons/svgr.config.cjs @@ -1,7 +1,7 @@ -const emotionPlugin = require('./emotion-plugin'); -const maskPlugin = require('./mask-plugin'); -const template = require('./icon-template'); -const indexTemplate = require('./index-template'); +const emotionPlugin = require('./emotion-plugin.cjs'); +const maskPlugin = require('./mask-plugin.cjs'); +const template = require('./icon-template.cjs'); +const indexTemplate = require('./index-template.cjs'); module.exports = { dimensions: false, diff --git a/packages/gamut-illustrations/babel.config.js b/packages/gamut-illustrations/babel.config.cjs similarity index 100% rename from packages/gamut-illustrations/babel.config.js rename to packages/gamut-illustrations/babel.config.cjs diff --git a/packages/gamut-illustrations/jest.config.ts b/packages/gamut-illustrations/jest.config.cjs similarity index 72% rename from packages/gamut-illustrations/jest.config.ts rename to packages/gamut-illustrations/jest.config.cjs index 59c1b57af6d..785496f1b82 100644 --- a/packages/gamut-illustrations/jest.config.ts +++ b/packages/gamut-illustrations/jest.config.cjs @@ -1,7 +1,7 @@ /* eslint-disable */ -import base from '../../jest.config.base'; +const base = require('../../jest.config.base.cjs'); -export default base('gamut-illustrations', { +module.exports = base('gamut-illustrations', { transform: { '^.+\\.[tj]sx?$': 'babel-jest', }, diff --git a/packages/gamut-illustrations/package.json b/packages/gamut-illustrations/package.json index b253fc6c475..9b561f54cf7 100644 --- a/packages/gamut-illustrations/package.json +++ b/packages/gamut-illustrations/package.json @@ -8,13 +8,19 @@ "@codecademy/gamut-styles": "20.0.2", "classnames": "^2.2.5" }, + "exports": { + ".": { + "import": "./dist/index.js", + "types": "./dist/index.d.ts", + "default": "./dist/index.js" + } + }, "files": [ "dist" ], "homepage": "https://github.com/Codecademy/gamut#readme", "license": "MIT", "main": "./dist/index.js", - "module": "./dist/index.js", "peerDependencies": { "@emotion/react": "^11.4.0", "@emotion/styled": "^11.3.0", @@ -31,5 +37,6 @@ "sideEffects": [ "dist/**/[A-Z]**/[A-Z]*.js", "dist/**/[A-Z]**/index.js" - ] + ], + "type": "module" } diff --git a/packages/gamut-illustrations/project.json b/packages/gamut-illustrations/project.json index d74ecd49230..2a74238af51 100644 --- a/packages/gamut-illustrations/project.json +++ b/packages/gamut-illustrations/project.json @@ -22,7 +22,7 @@ "executor": "@nx/jest:jest", "outputs": ["{workspaceRoot}/coverage/packages/gamut-illustrations"], "options": { - "jestConfig": "packages/gamut-illustrations/jest.config.ts" + "jestConfig": "packages/gamut-illustrations/jest.config.cjs" } }, "clean": { diff --git a/packages/gamut-patterns/babel.config.js b/packages/gamut-patterns/babel.config.cjs similarity index 100% rename from packages/gamut-patterns/babel.config.js rename to packages/gamut-patterns/babel.config.cjs diff --git a/packages/gamut-patterns/emotion-plugin.js b/packages/gamut-patterns/emotion-plugin.cjs similarity index 100% rename from packages/gamut-patterns/emotion-plugin.js rename to packages/gamut-patterns/emotion-plugin.cjs diff --git a/packages/gamut-patterns/index-template.js b/packages/gamut-patterns/index-template.cjs similarity index 100% rename from packages/gamut-patterns/index-template.js rename to packages/gamut-patterns/index-template.cjs diff --git a/packages/gamut-patterns/jest.config.ts b/packages/gamut-patterns/jest.config.cjs similarity index 83% rename from packages/gamut-patterns/jest.config.ts rename to packages/gamut-patterns/jest.config.cjs index c1261dfacce..bb1d99c0864 100644 --- a/packages/gamut-patterns/jest.config.ts +++ b/packages/gamut-patterns/jest.config.cjs @@ -1,7 +1,7 @@ /* eslint-disable */ -import base from '../../jest.config.base'; +const base = require('../../jest.config.base.cjs'); -export default base('gamut-patterns', { +module.exports = base('gamut-patterns', { transform: { '^.+\\.[tj]sx?$': 'babel-jest', }, diff --git a/packages/gamut-patterns/package.json b/packages/gamut-patterns/package.json index afc1d419946..bd0117b02c5 100644 --- a/packages/gamut-patterns/package.json +++ b/packages/gamut-patterns/package.json @@ -9,13 +9,19 @@ "@codecademy/variance": "0.26.1", "classnames": "^2.2.5" }, + "exports": { + ".": { + "import": "./dist/index.js", + "types": "./dist/index.d.ts", + "default": "./dist/index.js" + } + }, "files": [ "dist" ], "homepage": "https://github.com/Codecademy/gamut#readme", "license": "MIT", "main": "dist/index.js", - "module": "dist/index.js", "peerDependencies": { "@emotion/react": "^11.4.0", "@emotion/styled": "^11.3.0", @@ -31,5 +37,5 @@ "format": "svgo -f ./src/svg --pretty --config=.svgo.yml" }, "sideEffects": false, - "types": "dist/index.d.ts" + "type": "module" } diff --git a/packages/gamut-patterns/pattern-template.js b/packages/gamut-patterns/pattern-template.cjs similarity index 100% rename from packages/gamut-patterns/pattern-template.js rename to packages/gamut-patterns/pattern-template.cjs diff --git a/packages/gamut-patterns/project.json b/packages/gamut-patterns/project.json index b8c4be96bc7..25e9fe2de96 100644 --- a/packages/gamut-patterns/project.json +++ b/packages/gamut-patterns/project.json @@ -31,7 +31,7 @@ "outputs": ["{workspaceRoot}/coverage/packages/gamut-patterns"], "dependsOn": ["build"], "options": { - "jestConfig": "packages/gamut-patterns/jest.config.ts" + "jestConfig": "packages/gamut-patterns/jest.config.cjs" } }, "clean": { diff --git a/packages/gamut-patterns/svgr.config.js b/packages/gamut-patterns/svgr.config.cjs similarity index 72% rename from packages/gamut-patterns/svgr.config.js rename to packages/gamut-patterns/svgr.config.cjs index 7ef8668b203..5ea8effdbdc 100644 --- a/packages/gamut-patterns/svgr.config.js +++ b/packages/gamut-patterns/svgr.config.cjs @@ -1,6 +1,6 @@ -const emotionPlugin = require('./emotion-plugin'); -const template = require('./pattern-template'); -const indexTemplate = require('./index-template'); +const emotionPlugin = require('./emotion-plugin.cjs'); +const template = require('./pattern-template.cjs'); +const indexTemplate = require('./index-template.cjs'); module.exports = { dimensions: false, diff --git a/packages/gamut-styles/babel.config.js b/packages/gamut-styles/babel.config.cjs similarity index 100% rename from packages/gamut-styles/babel.config.js rename to packages/gamut-styles/babel.config.cjs diff --git a/packages/gamut-styles/jest.config.ts b/packages/gamut-styles/jest.config.cjs similarity index 75% rename from packages/gamut-styles/jest.config.ts rename to packages/gamut-styles/jest.config.cjs index 88d144d1a36..25d4de02780 100644 --- a/packages/gamut-styles/jest.config.ts +++ b/packages/gamut-styles/jest.config.cjs @@ -1,14 +1,14 @@ /* eslint-disable */ -import path from 'path'; -import base from '../../jest.config.base'; +const path = require('path'); +const base = require('../../jest.config.base.cjs'); -export default base('gamut-styles', { +module.exports = base('gamut-styles', { transform: { '^(?!.*\\.(js|jsx|ts|tsx|css|json)$)': '@nx/react/plugins/jest', '^.+\\.[tj]sx?$': [ 'babel-jest', { - configFile: require.resolve(path.join(__dirname, './babel.config.js')), + configFile: require.resolve(path.join(__dirname, './babel.config.cjs')), }, ], }, diff --git a/packages/gamut-styles/package.json b/packages/gamut-styles/package.json index e6db76629c7..28e44c95d8c 100644 --- a/packages/gamut-styles/package.json +++ b/packages/gamut-styles/package.json @@ -10,6 +10,13 @@ "get-nonce": "^1.0.0", "polished": "^4.1.2" }, + "exports": { + ".": { + "import": "./dist/index.js", + "types": "./dist/index.d.ts", + "default": "./dist/index.js" + } + }, "files": [ "dist", "core", @@ -20,7 +27,6 @@ ], "license": "MIT", "main": "dist/index.js", - "module": "dist/index.js", "peerDependencies": { "@emotion/cache": "^11.4.0", "@emotion/react": "^11.4.0", @@ -35,5 +41,6 @@ "repository": "git@github.com:Codecademy/gamut.git", "scripts": { "build": "nx build @codecademy/gamut-styles" - } + }, + "type": "module" } diff --git a/packages/gamut-styles/project.json b/packages/gamut-styles/project.json index ae4029221c8..97bd273b8df 100644 --- a/packages/gamut-styles/project.json +++ b/packages/gamut-styles/project.json @@ -24,7 +24,7 @@ "dependsOn": ["^build"], "outputs": ["{workspaceRoot}/coverage/packages/gamut-styles"], "options": { - "jestConfig": "packages/gamut-styles/jest.config.ts", + "jestConfig": "packages/gamut-styles/jest.config.cjs", "passWithNoTests": false } }, diff --git a/packages/gamut-tests/babel.config.js b/packages/gamut-tests/babel.config.cjs similarity index 100% rename from packages/gamut-tests/babel.config.js rename to packages/gamut-tests/babel.config.cjs diff --git a/packages/gamut-tests/jest.config.cjs b/packages/gamut-tests/jest.config.cjs new file mode 100644 index 00000000000..4017ce4fc6d --- /dev/null +++ b/packages/gamut-tests/jest.config.cjs @@ -0,0 +1,4 @@ +/* eslint-disable */ +const base = require('../../jest.config.base.cjs'); + +module.exports = base('gamut-tests', {}); diff --git a/packages/gamut-tests/jest.config.ts b/packages/gamut-tests/jest.config.ts deleted file mode 100644 index 7856009cf43..00000000000 --- a/packages/gamut-tests/jest.config.ts +++ /dev/null @@ -1,4 +0,0 @@ -/* eslint-disable */ -import base from '../../jest.config.base'; - -export default base('gamut-tests', {}); diff --git a/packages/gamut-tests/package.json b/packages/gamut-tests/package.json index d82c07252e1..a0a7e73d9ae 100644 --- a/packages/gamut-tests/package.json +++ b/packages/gamut-tests/package.json @@ -8,6 +8,13 @@ "component-test-setup": "^0.3.1", "lodash": "^4.17.23" }, + "exports": { + ".": { + "import": "./dist/index.js", + "types": "./dist/index.d.ts", + "default": "./dist/index.js" + } + }, "files": [ "dist" ], @@ -20,7 +27,6 @@ ], "license": "MIT", "main": "dist/index.js", - "module": "dist/index.js", "peerDependencies": { "react": "^17.0.2 || ^18.3.0 || ^19.0.0" }, @@ -32,5 +38,5 @@ "build": "nx build @codecademy/gamut-tests", "verify": "tsc --noEmit" }, - "types": "./dist/index.d.ts" + "type": "module" } diff --git a/packages/gamut-tests/project.json b/packages/gamut-tests/project.json index a19e3622719..c5829a53a73 100644 --- a/packages/gamut-tests/project.json +++ b/packages/gamut-tests/project.json @@ -22,7 +22,7 @@ "executor": "@nx/jest:jest", "outputs": ["{workspaceRoot}/coverage/packages/gamut-tests"], "options": { - "jestConfig": "packages/gamut-tests/jest.config.ts", + "jestConfig": "packages/gamut-tests/jest.config.cjs", "passWithNoTests": true } }, diff --git a/packages/gamut/__tests__/__snapshots__/gamut.test.ts.snap b/packages/gamut/__tests__/__snapshots__/gamut.test.ts.snap index e127cfe440e..a32c03deca3 100644 --- a/packages/gamut/__tests__/__snapshots__/gamut.test.ts.snap +++ b/packages/gamut/__tests__/__snapshots__/gamut.test.ts.snap @@ -112,6 +112,9 @@ exports[`Gamut Exported Keys 1`] = ` "Toaster", "Toggle", "ToolTip", + "typographyElementVariants", + "typographyStyleVariants", + "typographyUtilities", "USE_DEBOUNCED_FIELD_DIRTY_KEY", "useConnectedForm", "useDatePicker", diff --git a/packages/gamut/babel.config.js b/packages/gamut/babel.config.cjs similarity index 100% rename from packages/gamut/babel.config.js rename to packages/gamut/babel.config.cjs diff --git a/packages/gamut/jest.config.ts b/packages/gamut/jest.config.cjs similarity index 58% rename from packages/gamut/jest.config.ts rename to packages/gamut/jest.config.cjs index 23d35b69523..f83c14f3302 100644 --- a/packages/gamut/jest.config.ts +++ b/packages/gamut/jest.config.cjs @@ -1,12 +1,14 @@ /* eslint-disable */ -import base from '../../jest.config.base'; +const base = require('../../jest.config.base.cjs'); -export default base('gamut', { +module.exports = base('gamut', { transform: { '^.+\\.[tj]sx?$': 'babel-jest', }, setupFiles: ['/../../script/jest/base-setup.js'], setupFilesAfterEnv: ['/../../script/jest/rtl-setup.js'], moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx'], - transformIgnorePatterns: ['node_modules/(?!(@vidstack/react|@formatjs)/)'], + transformIgnorePatterns: [ + 'node_modules/(?!(@vidstack/react|@formatjs|@codecademy)/)', + ], }); diff --git a/packages/gamut/package.json b/packages/gamut/package.json index f3527f00b5a..0b7d29ad197 100644 --- a/packages/gamut/package.json +++ b/packages/gamut/package.json @@ -30,6 +30,13 @@ "react-use": "^15.3.8", "sanitize-markdown": "^2.6.7" }, + "exports": { + ".": { + "import": "./dist/index.js", + "types": "./dist/index.d.ts", + "default": "./dist/index.js" + } + }, "files": [ "dist", "bin", @@ -37,7 +44,6 @@ ], "license": "MIT", "main": "./dist/index.js", - "module": "./dist/index.js", "overrides": { "@react-aria/interactions": "3.25.0" }, @@ -63,5 +69,6 @@ "**/*.scss", "dist/**/[A-Z]**/[A-Z]*.js", "dist/**/[A-Z]**/index.js" - ] + ], + "type": "module" } diff --git a/packages/gamut/project.json b/packages/gamut/project.json index f94a7846862..0c4b1914b12 100644 --- a/packages/gamut/project.json +++ b/packages/gamut/project.json @@ -31,7 +31,7 @@ "executor": "@nx/jest:jest", "outputs": ["{workspaceRoot}/coverage/packages/gamut"], "options": { - "jestConfig": "packages/gamut/jest.config.ts" + "jestConfig": "packages/gamut/jest.config.cjs" } }, "clean": { diff --git a/packages/gamut/src/Form/__tests__/__snapshots__/utils.test.tsx.snap b/packages/gamut/src/Form/__tests__/__snapshots__/utils.test.tsx.snap index 6db6a89db06..2690797df50 100644 --- a/packages/gamut/src/Form/__tests__/__snapshots__/utils.test.tsx.snap +++ b/packages/gamut/src/Form/__tests__/__snapshots__/utils.test.tsx.snap @@ -2,63 +2,39 @@ exports[`parseSelectOptions creates an option list 1`] = ` [ - { - "$$typeof": Symbol(react.transitional.element), - "_owner": null, - "_store": {}, - "key": "test-val", - "props": { - "children": "Value", - "data-testid": "test-val", - "label": "Value", - "value": "val", - }, - "type": "option", - }, - { - "$$typeof": Symbol(react.transitional.element), - "_owner": null, - "_store": {}, - "key": "test-val2", - "props": { - "children": "Value 2", - "data-testid": "test-val2", - "label": "Value 2", - "value": "val2", - }, - "type": "option", - }, + , + , ] `; exports[`parseSelectOptions creates an option list 2`] = ` [ - { - "$$typeof": Symbol(react.transitional.element), - "_owner": null, - "_store": {}, - "key": "test-val", - "props": { - "children": "val", - "data-testid": "test-val", - "label": "val", - "value": "val", - }, - "type": "option", - }, - { - "$$typeof": Symbol(react.transitional.element), - "_owner": null, - "_store": {}, - "key": "test-val2", - "props": { - "children": "val2", - "data-testid": "test-val2", - "label": "val2", - "value": "val2", - }, - "type": "option", - }, + , + , ] `; diff --git a/packages/gamut/src/Typography/Text.tsx b/packages/gamut/src/Typography/Text.tsx index 173661b8632..feaa3c1083f 100644 --- a/packages/gamut/src/Typography/Text.tsx +++ b/packages/gamut/src/Typography/Text.tsx @@ -8,7 +8,17 @@ import { StyleProps, variance } from '@codecademy/variance'; import styled from '@emotion/styled'; import { ComponentProps, forwardRef } from 'react'; -import { typographyElementVariants, typographyStyleVariants } from './variants'; +import { + typographyElementVariants, + typographyStyleVariants, + typographyUtilities, +} from './variants'; + +export { + typographyElementVariants, + typographyStyleVariants, + typographyUtilities, +}; const displayVariants = variant({ variants: typographyStyleVariants, diff --git a/packages/styleguide/.storybook/components/Scales/ColorScale.tsx b/packages/styleguide/.storybook/components/Scales/ColorScale.tsx index ce56ca46d46..2737bdbea98 100644 --- a/packages/styleguide/.storybook/components/Scales/ColorScale.tsx +++ b/packages/styleguide/.storybook/components/Scales/ColorScale.tsx @@ -1,7 +1,7 @@ import * as React from 'react'; import { themed } from '@codecademy/gamut-styles'; import styled from '@emotion/styled'; -import { Box, GridBox } from '@codecademy/gamut/src'; +import { Box, GridBox } from '@codecademy/gamut'; const HexCode = styled.span` font-family: ${themed('fontFamily.monospace')}; diff --git a/packages/styleguide/src/lib/Typography/Text/Text.stories.tsx b/packages/styleguide/src/lib/Typography/Text/Text.stories.tsx index 5dd0589bd64..3a2d81829af 100644 --- a/packages/styleguide/src/lib/Typography/Text/Text.stories.tsx +++ b/packages/styleguide/src/lib/Typography/Text/Text.stories.tsx @@ -1,10 +1,9 @@ import { Box, Column, LayoutGrid, Text } from '@codecademy/gamut'; -// eslint-disable-next-line gamut/import-paths import { typographyElementVariants, typographyStyleVariants, typographyUtilities, -} from '@codecademy/gamut/src/Typography/variants'; +} from '@codecademy/gamut'; import type { Meta, StoryObj } from '@storybook/react'; import { Fragment } from 'react'; diff --git a/packages/styleguide/src/lib/Typography/Text/tables.tsx b/packages/styleguide/src/lib/Typography/Text/tables.tsx index 18470aa04b2..86f934971a0 100644 --- a/packages/styleguide/src/lib/Typography/Text/tables.tsx +++ b/packages/styleguide/src/lib/Typography/Text/tables.tsx @@ -1,6 +1,5 @@ import { Column, LayoutGrid, Text } from '@codecademy/gamut'; -// eslint-disable-next-line gamut/import-paths -import { typographyElementVariants } from '@codecademy/gamut/src/Typography/variants'; +import { typographyElementVariants } from '@codecademy/gamut'; import { Fragment } from 'react'; export const Elements: React.FC = () => ( diff --git a/packages/variance/babel.config.js b/packages/variance/babel.config.cjs similarity index 100% rename from packages/variance/babel.config.js rename to packages/variance/babel.config.cjs diff --git a/packages/variance/jest.config.ts b/packages/variance/jest.config.cjs similarity index 60% rename from packages/variance/jest.config.ts rename to packages/variance/jest.config.cjs index b85f55783a0..c6e580f8418 100644 --- a/packages/variance/jest.config.ts +++ b/packages/variance/jest.config.cjs @@ -1,7 +1,7 @@ /* eslint-disable */ -import base from '../../jest.config.base'; +const base = require('../../jest.config.base.cjs'); -export default base('variance', { +module.exports = base('variance', { transform: { '^.+\\.[tj]sx?$': 'babel-jest', }, diff --git a/packages/variance/package.json b/packages/variance/package.json index 83219af08a0..da9c855d458 100644 --- a/packages/variance/package.json +++ b/packages/variance/package.json @@ -7,6 +7,13 @@ "csstype": "^3.0.7", "lodash": "^4.17.23" }, + "exports": { + ".": { + "import": "./dist/index.js", + "types": "./dist/index.d.ts", + "default": "./dist/index.js" + } + }, "files": [ "dist" ], @@ -19,7 +26,6 @@ ], "license": "MIT", "main": "dist/index.js", - "module": "dist/index.js", "peerDependencies": { "@emotion/react": "*", "typescript": ">=4.3.5" @@ -31,5 +37,5 @@ "scripts": { "build": "nx build @codecademy/variance" }, - "types": "dist/index.d.ts" + "type": "module" } diff --git a/packages/variance/project.json b/packages/variance/project.json index f80e1f779ae..ece74ca46a4 100644 --- a/packages/variance/project.json +++ b/packages/variance/project.json @@ -22,7 +22,7 @@ "executor": "@nx/jest:jest", "outputs": ["{workspaceRoot}/coverage/packages/variance"], "options": { - "jestConfig": "packages/variance/jest.config.ts" + "jestConfig": "packages/variance/jest.config.cjs" } }, "verify": { From 81d7a52a5e6aecec6ece967ed2ee266d485a3133 Mon Sep 17 00:00:00 2001 From: dreamwasp Date: Tue, 30 Jun 2026 11:43:32 -0400 Subject: [PATCH 2/8] build fixes --- .../__snapshots__/utils.test.tsx.snap | 82 ++++++++++++------- .../.storybook/theming/GamutTheme.ts | 2 +- 2 files changed, 54 insertions(+), 30 deletions(-) diff --git a/packages/gamut/src/Form/__tests__/__snapshots__/utils.test.tsx.snap b/packages/gamut/src/Form/__tests__/__snapshots__/utils.test.tsx.snap index 2690797df50..f2f7abd8af4 100644 --- a/packages/gamut/src/Form/__tests__/__snapshots__/utils.test.tsx.snap +++ b/packages/gamut/src/Form/__tests__/__snapshots__/utils.test.tsx.snap @@ -1,40 +1,64 @@ -// Jest Snapshot v1, https://goo.gl/fbAQLP +// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing exports[`parseSelectOptions creates an option list 1`] = ` [ - , - , + { + "$$typeof": Symbol(react.transitional.element), + "_owner": null, + "_store": {}, + "key": "test-val", + "props": { + "children": "Value", + "data-testid": "test-val", + "label": "Value", + "value": "val", + }, + "type": "option", + }, + { + "$$typeof": Symbol(react.transitional.element), + "_owner": null, + "_store": {}, + "key": "test-val2", + "props": { + "children": "Value 2", + "data-testid": "test-val2", + "label": "Value 2", + "value": "val2", + }, + "type": "option", + }, ] `; exports[`parseSelectOptions creates an option list 2`] = ` [ - , - , + { + "$$typeof": Symbol(react.transitional.element), + "_owner": null, + "_store": {}, + "key": "test-val", + "props": { + "children": "val", + "data-testid": "test-val", + "label": "val", + "value": "val", + }, + "type": "option", + }, + { + "$$typeof": Symbol(react.transitional.element), + "_owner": null, + "_store": {}, + "key": "test-val2", + "props": { + "children": "val2", + "data-testid": "test-val2", + "label": "val2", + "value": "val2", + }, + "type": "option", + }, ] `; diff --git a/packages/styleguide/.storybook/theming/GamutTheme.ts b/packages/styleguide/.storybook/theming/GamutTheme.ts index 9cff8c11642..f1c55f5f234 100644 --- a/packages/styleguide/.storybook/theming/GamutTheme.ts +++ b/packages/styleguide/.storybook/theming/GamutTheme.ts @@ -3,7 +3,7 @@ import { theme as gamutTheme, trueColors, coreSwatches, -} from '@codecademy/gamut-styles/src'; +} from '@codecademy/gamut-styles'; import logo from '../assets/logo.svg'; From daac8022f5c849031a3e7e0a3cbabdc94a0d3172 Mon Sep 17 00:00:00 2001 From: dreamwasp Date: Tue, 30 Jun 2026 12:05:31 -0400 Subject: [PATCH 3/8] import tweaks to storybook --- .../styleguide/.storybook/components/TokenTable/elements.tsx | 2 +- packages/styleguide/.storybook/theming/GamutThemeProvider.tsx | 2 +- packages/styleguide/src/lib/Foundations/Layout.mdx | 2 +- .../src/lib/UX Writing/Component guidelines/Alerts.mdx | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/styleguide/.storybook/components/TokenTable/elements.tsx b/packages/styleguide/.storybook/components/TokenTable/elements.tsx index 62738f3c47f..d56a6d3c926 100644 --- a/packages/styleguide/.storybook/components/TokenTable/elements.tsx +++ b/packages/styleguide/.storybook/components/TokenTable/elements.tsx @@ -1,4 +1,4 @@ -import { system, variant } from '@codecademy/gamut-styles/src'; +import { system, variant } from '@codecademy/gamut-styles'; import styled from '@emotion/styled'; import { StyleProps } from '@codecademy/variance'; import { Box } from '@codecademy/gamut'; diff --git a/packages/styleguide/.storybook/theming/GamutThemeProvider.tsx b/packages/styleguide/.storybook/theming/GamutThemeProvider.tsx index a4214c7cfb2..aa67d854749 100644 --- a/packages/styleguide/.storybook/theming/GamutThemeProvider.tsx +++ b/packages/styleguide/.storybook/theming/GamutThemeProvider.tsx @@ -9,7 +9,7 @@ import { lxStudioTheme, percipioTheme, platformTheme, -} from '@codecademy/gamut-styles/src'; +} from '@codecademy/gamut-styles'; import { Theme } from '@emotion/react'; const STORYBOOK_CSP_NONCE = 'storybook-csp-nonce'; diff --git a/packages/styleguide/src/lib/Foundations/Layout.mdx b/packages/styleguide/src/lib/Foundations/Layout.mdx index 5f891311c9c..f092bfe2e64 100644 --- a/packages/styleguide/src/lib/Foundations/Layout.mdx +++ b/packages/styleguide/src/lib/Foundations/Layout.mdx @@ -1,4 +1,4 @@ -import { Box } from '@codecademy/gamut/src'; +import { Box } from '@codecademy/gamut'; import { Meta } from '@storybook/addon-docs/blocks'; import { ComponentHeader, LinkTo, TokenTable } from '~styleguide/blocks'; diff --git a/packages/styleguide/src/lib/UX Writing/Component guidelines/Alerts.mdx b/packages/styleguide/src/lib/UX Writing/Component guidelines/Alerts.mdx index fa44588abb8..c59892dc569 100644 --- a/packages/styleguide/src/lib/UX Writing/Component guidelines/Alerts.mdx +++ b/packages/styleguide/src/lib/UX Writing/Component guidelines/Alerts.mdx @@ -1,4 +1,4 @@ -import { Alert, Text } from '@codecademy/gamut/src'; +import { Alert, Text } from '@codecademy/gamut'; import { Meta } from '@storybook/addon-docs/blocks'; import { AboutHeader, LinkTo } from '~styleguide/blocks'; From 0d085df6241629728ca1d3c0afaa99abd90ab907 Mon Sep 17 00:00:00 2001 From: dreamwasp Date: Tue, 30 Jun 2026 12:14:41 -0400 Subject: [PATCH 4/8] update styleguide imports --- packages/gamut-styles/src/variance/index.ts | 1 + packages/styleguide/src/lib/Atoms/Icons/Mini/Mini.stories.tsx | 3 +-- .../styleguide/src/lib/Atoms/Icons/Regular/Regular.stories.tsx | 3 +-- packages/styleguide/src/lib/Atoms/Icons/constants.tsx | 3 +-- packages/styleguide/src/lib/Foundations/shared/elements.tsx | 3 +-- 5 files changed, 5 insertions(+), 8 deletions(-) diff --git a/packages/gamut-styles/src/variance/index.ts b/packages/gamut-styles/src/variance/index.ts index c482056e1d3..820369708fe 100644 --- a/packages/gamut-styles/src/variance/index.ts +++ b/packages/gamut-styles/src/variance/index.ts @@ -1,3 +1,4 @@ export * as system from './props'; +export * as propConfig from './config'; export { css, variant, states } from './props'; export * from './utils'; diff --git a/packages/styleguide/src/lib/Atoms/Icons/Mini/Mini.stories.tsx b/packages/styleguide/src/lib/Atoms/Icons/Mini/Mini.stories.tsx index 4ab688dae97..82f4dfca54a 100644 --- a/packages/styleguide/src/lib/Atoms/Icons/Mini/Mini.stories.tsx +++ b/packages/styleguide/src/lib/Atoms/Icons/Mini/Mini.stories.tsx @@ -1,6 +1,5 @@ import { GamutIconProps } from '@codecademy/gamut-icons'; -// eslint-disable-next-line gamut/import-paths -import * as miniIcons from '@codecademy/gamut-icons/src/icons/mini'; +import * as miniIcons from '@codecademy/gamut-icons'; import type { Meta, StoryObj } from '@storybook/react'; import React from 'react'; diff --git a/packages/styleguide/src/lib/Atoms/Icons/Regular/Regular.stories.tsx b/packages/styleguide/src/lib/Atoms/Icons/Regular/Regular.stories.tsx index 7360fe458b8..71ad82fd6c7 100644 --- a/packages/styleguide/src/lib/Atoms/Icons/Regular/Regular.stories.tsx +++ b/packages/styleguide/src/lib/Atoms/Icons/Regular/Regular.stories.tsx @@ -1,6 +1,5 @@ import { GamutIconProps } from '@codecademy/gamut-icons'; -// eslint-disable-next-line gamut/import-paths -import * as icons from '@codecademy/gamut-icons/src/icons/regular'; +import * as icons from '@codecademy/gamut-icons'; import type { Meta, StoryObj } from '@storybook/react'; import { ImageGallery } from '~styleguide/blocks'; diff --git a/packages/styleguide/src/lib/Atoms/Icons/constants.tsx b/packages/styleguide/src/lib/Atoms/Icons/constants.tsx index b54a15efe2c..28079ebf7e9 100644 --- a/packages/styleguide/src/lib/Atoms/Icons/constants.tsx +++ b/packages/styleguide/src/lib/Atoms/Icons/constants.tsx @@ -1,5 +1,4 @@ -// eslint-disable-next-line gamut/import-paths -import * as icons from '@codecademy/gamut-icons/src/icons/regular'; +import * as icons from '@codecademy/gamut-icons'; import keys from 'lodash/keys'; import omit from 'lodash/omit'; import pick from 'lodash/pick'; diff --git a/packages/styleguide/src/lib/Foundations/shared/elements.tsx b/packages/styleguide/src/lib/Foundations/shared/elements.tsx index 370f2ab926e..b656772265d 100644 --- a/packages/styleguide/src/lib/Foundations/shared/elements.tsx +++ b/packages/styleguide/src/lib/Foundations/shared/elements.tsx @@ -7,8 +7,7 @@ import { theme, trueColors, } from '@codecademy/gamut-styles'; -// eslint-disable-next-line gamut/import-paths -import * as ALL_PROPS from '@codecademy/gamut-styles/src/variance/config'; +import { propConfig as ALL_PROPS } from '@codecademy/gamut-styles'; import { useTheme } from '@emotion/react'; import styled from '@emotion/styled'; import kebabCase from 'lodash/kebabCase'; From fb7a4906797d190850d147491556b7cbf9dba042 Mon Sep 17 00:00:00 2001 From: dreamwasp Date: Tue, 30 Jun 2026 13:06:36 -0400 Subject: [PATCH 5/8] feat: promote internal symbols to public API for module migration Adds missing exports needed by consumers migrating away from /dist deep imports: - variance: Scale type - gamut/Button: ButtonBaseProps - gamut/ButtonBase: ButtonSelectors - gamut/Form: FormValues, formFieldPaddingStyles, formFieldStyles, conditionalStyles - gamut/Markdown: HTMLToReactNode - gamut/Menu: ListItem - gamut-styles/variance: propConfig namespace --- packages/gamut/src/Button/index.ts | 2 +- packages/gamut/src/ButtonBase/index.ts | 2 +- packages/gamut/src/Form/index.tsx | 2 ++ packages/gamut/src/Markdown/index.tsx | 1 + packages/gamut/src/Menu/index.tsx | 1 + packages/variance/src/index.ts | 1 + 6 files changed, 7 insertions(+), 2 deletions(-) diff --git a/packages/gamut/src/Button/index.ts b/packages/gamut/src/Button/index.ts index d9b61c232a4..a8ed044fa9a 100644 --- a/packages/gamut/src/Button/index.ts +++ b/packages/gamut/src/Button/index.ts @@ -1,4 +1,4 @@ -export type { ButtonProps } from './shared'; +export type { ButtonProps, ButtonBaseProps } from './shared'; export * from './CTAButton'; export * from './FillButton'; export * from './IconButton'; diff --git a/packages/gamut/src/ButtonBase/index.ts b/packages/gamut/src/ButtonBase/index.ts index dd66ab90959..8751e97f517 100644 --- a/packages/gamut/src/ButtonBase/index.ts +++ b/packages/gamut/src/ButtonBase/index.ts @@ -1 +1 @@ -export { ButtonBase } from './ButtonBase'; +export { ButtonBase, ButtonSelectors } from './ButtonBase'; diff --git a/packages/gamut/src/Form/index.tsx b/packages/gamut/src/Form/index.tsx index 95aa6f97110..3ca41c52b19 100644 --- a/packages/gamut/src/Form/index.tsx +++ b/packages/gamut/src/Form/index.tsx @@ -12,3 +12,5 @@ export * from './inputs/TextArea'; export * from './inputs/Radio'; export * from './inputs/RadioGroup'; export * from './inputs/types'; +export type { FormValues } from './types'; +export { formFieldPaddingStyles, formFieldStyles, conditionalStyles } from './styles/shared-system-props'; diff --git a/packages/gamut/src/Markdown/index.tsx b/packages/gamut/src/Markdown/index.tsx index 4bd8a3423d3..ee4d0944804 100644 --- a/packages/gamut/src/Markdown/index.tsx +++ b/packages/gamut/src/Markdown/index.tsx @@ -193,6 +193,7 @@ export class Markdown extends PureComponent { } export type { + HTMLToReactNode, MarkdownOverrideSetting, MarkdownOverrideSettings, } from './libs/overrides'; diff --git a/packages/gamut/src/Menu/index.tsx b/packages/gamut/src/Menu/index.tsx index 65077f603d9..ffea5af3468 100644 --- a/packages/gamut/src/Menu/index.tsx +++ b/packages/gamut/src/Menu/index.tsx @@ -1,3 +1,4 @@ export * from './Menu'; export * from './MenuItem'; export * from './MenuSeparator'; +export { ListItem } from './elements'; diff --git a/packages/variance/src/index.ts b/packages/variance/src/index.ts index 6c1279e8061..443404766b3 100644 --- a/packages/variance/src/index.ts +++ b/packages/variance/src/index.ts @@ -1,6 +1,7 @@ export { variance } from './core'; export * from './createTheme'; export * from './types/props'; +export type { Scale } from './types/config'; export * from './transforms'; export * from './scales/createScale'; export * from './getPropertyMode'; From 5dc43aba028d9033c7ce6cc70ce1b17ea7c67e5c Mon Sep 17 00:00:00 2001 From: dreamwasp Date: Tue, 30 Jun 2026 13:29:17 -0400 Subject: [PATCH 6/8] fix: prettier format Form/index.tsx and update exported keys snapshot --- packages/gamut/__tests__/__snapshots__/gamut.test.ts.snap | 4 ++++ packages/gamut/src/Form/index.tsx | 6 +++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/packages/gamut/__tests__/__snapshots__/gamut.test.ts.snap b/packages/gamut/__tests__/__snapshots__/gamut.test.ts.snap index a32c03deca3..68431b89b51 100644 --- a/packages/gamut/__tests__/__snapshots__/gamut.test.ts.snap +++ b/packages/gamut/__tests__/__snapshots__/gamut.test.ts.snap @@ -15,6 +15,7 @@ exports[`Gamut Exported Keys 1`] = ` "Checkbox", "Coachmark", "Column", + "conditionalStyles", "ConnectedCheckbox", "ConnectedForm", "ConnectedFormGroup", @@ -49,6 +50,8 @@ exports[`Gamut Exported Keys 1`] = ` "focusVisibleStyle", "Form", "FormError", + "formFieldPaddingStyles", + "formFieldStyles", "FormGroup", "FormGroupDescription", "FormGroupLabel", @@ -67,6 +70,7 @@ exports[`Gamut Exported Keys 1`] = ` "LayoutGrid", "List", "ListCol", + "ListItem", "ListRow", "Markdown", "matchDisabledDates", diff --git a/packages/gamut/src/Form/index.tsx b/packages/gamut/src/Form/index.tsx index 3ca41c52b19..f325cc0544c 100644 --- a/packages/gamut/src/Form/index.tsx +++ b/packages/gamut/src/Form/index.tsx @@ -13,4 +13,8 @@ export * from './inputs/Radio'; export * from './inputs/RadioGroup'; export * from './inputs/types'; export type { FormValues } from './types'; -export { formFieldPaddingStyles, formFieldStyles, conditionalStyles } from './styles/shared-system-props'; +export { + formFieldPaddingStyles, + formFieldStyles, + conditionalStyles, +} from './styles/shared-system-props'; From d2590e8999c77ea1bc24b4c2cc9e8c3046e7b943 Mon Sep 17 00:00:00 2001 From: dreamwasp Date: Tue, 30 Jun 2026 13:35:46 -0400 Subject: [PATCH 7/8] fix: export ButtonSelectors from gamut main index --- packages/gamut/src/index.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/gamut/src/index.tsx b/packages/gamut/src/index.tsx index ef0e64206a2..01799a6843b 100644 --- a/packages/gamut/src/index.tsx +++ b/packages/gamut/src/index.tsx @@ -9,6 +9,7 @@ export * from './Box'; export * from './Breadcrumbs'; export * from './Button'; export type { ButtonBaseElements } from './ButtonBase/ButtonBase'; +export { ButtonSelectors } from './ButtonBase'; export * from './Card'; export * from './Coachmark'; export * from './ConnectedForm'; From 7b8dad9a38dc167cdea2b5825a47ac2e838da812 Mon Sep 17 00:00:00 2001 From: dreamwasp Date: Tue, 30 Jun 2026 13:52:04 -0400 Subject: [PATCH 8/8] fix: update gamut exported keys snapshot for ButtonSelectors --- packages/gamut/__tests__/__snapshots__/gamut.test.ts.snap | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/gamut/__tests__/__snapshots__/gamut.test.ts.snap b/packages/gamut/__tests__/__snapshots__/gamut.test.ts.snap index 68431b89b51..bb963786b95 100644 --- a/packages/gamut/__tests__/__snapshots__/gamut.test.ts.snap +++ b/packages/gamut/__tests__/__snapshots__/gamut.test.ts.snap @@ -11,6 +11,7 @@ exports[`Gamut Exported Keys 1`] = ` "BodyPortal", "Box", "Breadcrumbs", + "ButtonSelectors", "Card", "Checkbox", "Coachmark",