An open source design system that's fully customizable and agent ready
TypeScript
docsite: hide chocolate + daily themes from the docsite (#2387)
rubyycheung279113427e6e
diff --git a/apps/docsite/package.json b/apps/docsite/package.jsonindex f3e65b2d42..e7710b854b 100644--- a/apps/docsite/package.json+++ b/apps/docsite/package.json@@ -18,8 +18,6 @@"@stylexjs/stylex": "^0.18.3","@xds/cli": "*","@xds/core": "*",- "@xds/theme-chocolate": "*",- "@xds/theme-daily": "*","@xds/theme-default": "*","@xds/theme-gothic": "*","@xds/theme-matcha": "*",diff --git a/apps/docsite/scripts/generate-scope.mjs b/apps/docsite/scripts/generate-scope.mjsindex 5494d964d7..030a338807 100644--- a/apps/docsite/scripts/generate-scope.mjs+++ b/apps/docsite/scripts/generate-scope.mjs@@ -38,7 +38,6 @@ const components = exportKeysconst SCOPE_THEMES = [{pkg: '@xds/theme-default', name: 'defaultTheme', subpath: '/built'},{pkg: '@xds/theme-neutral', name: 'neutralTheme', subpath: '/built'},- {pkg: '@xds/theme-daily', name: 'dailyTheme', subpath: '/built'},{pkg: '@xds/theme-matcha', name: 'matchaTheme', subpath: '/built'},];diff --git a/apps/docsite/src/__tests__/data-extraction.test.ts b/apps/docsite/src/__tests__/data-extraction.test.tsindex bc0ce138f7..1bbd2a3f29 100644--- a/apps/docsite/src/__tests__/data-extraction.test.ts+++ b/apps/docsite/src/__tests__/data-extraction.test.ts@@ -26,10 +26,11 @@ describe('packageRegistry', () => {expect(names).toContain('@xds/cli');expect(names).toContain('@xds/theme-default');expect(names).toContain('@xds/theme-neutral');- expect(names).toContain('@xds/theme-chocolate');expect(names).toContain('@xds/theme-gothic');expect(names).toContain('@xds/theme-stone');expect(names).not.toContain('@xds/theme-brutalist');+ expect(names).not.toContain('@xds/theme-chocolate');+ expect(names).not.toContain('@xds/theme-daily');expect(names).not.toContain('@xds/lab');expect(names).not.toContain('@xds/build');expect(packages.length).toBeGreaterThanOrEqual(5);diff --git a/apps/docsite/src/app/(preview)/playground-preview/page.tsx b/apps/docsite/src/app/(preview)/playground-preview/page.tsxindex ed7caadf48..e5d5926fba 100644--- a/apps/docsite/src/app/(preview)/playground-preview/page.tsx+++ b/apps/docsite/src/app/(preview)/playground-preview/page.tsx@@ -15,14 +15,12 @@ import type {XDSDefinedTheme} from '@xds/core/theme';import type {ThemeMode} from '@xds/core/theme';import {defaultTheme} from '@xds/theme-default/built';import {neutralTheme} from '@xds/theme-neutral/built';-import {dailyTheme} from '@xds/theme-daily/built';import {matchaTheme} from '@xds/theme-matcha/built';import {runCode, setBabel} from './runner';const THEME_MAP: Record<string, XDSDefinedTheme> = {default: defaultTheme,neutral: neutralTheme,- daily: dailyTheme,matcha: matchaTheme,};diff --git a/apps/docsite/src/app/(preview)/playground-preview/scope.ts b/apps/docsite/src/app/(preview)/playground-preview/scope.tsindex edcbfc7c57..effaeffdb1 100644--- a/apps/docsite/src/app/(preview)/playground-preview/scope.ts+++ b/apps/docsite/src/app/(preview)/playground-preview/scope.ts@@ -112,7 +112,6 @@ import * as Typeahead from '@xds/core/Typeahead';import {defaultTheme} from '@xds/theme-default/built';import {neutralTheme} from '@xds/theme-neutral/built';-import {dailyTheme} from '@xds/theme-daily/built';import {matchaTheme} from '@xds/theme-matcha/built';import {XDSTheme} from '@xds/core/theme';@@ -128,7 +127,6 @@ import * as Heroicons24Solid from '@heroicons/react/24/solid';const SCOPE_THEMES: Record<string, XDSDefinedTheme> = {default: defaultTheme,neutral: neutralTheme,- daily: dailyTheme,matcha: matchaTheme,};@@ -160,8 +158,6 @@ export const scope: Record<string, Record<string, unknown>> = {'@xds/theme-default/built': {default: defaultTheme, defaultTheme},'@xds/theme-neutral': {default: neutralTheme, neutralTheme},'@xds/theme-neutral/built': {default: neutralTheme, neutralTheme},- '@xds/theme-daily': {default: dailyTheme, dailyTheme},- '@xds/theme-daily/built': {default: dailyTheme, dailyTheme},'@xds/theme-matcha': {default: matchaTheme, matchaTheme},'@xds/theme-matcha/built': {default: matchaTheme, matchaTheme},'@xds/core/theme': {XDSTheme: ControlledXDSTheme},diff --git a/apps/docsite/src/app/globals.css b/apps/docsite/src/app/globals.cssindex 65da50f939..6f7420a87d 100644--- a/apps/docsite/src/app/globals.css+++ b/apps/docsite/src/app/globals.css@@ -4,8 +4,6 @@@import "@xds/core/xds.css";@import "@xds/theme-default/theme.css";@import "@xds/theme-neutral/theme.css";-@import "@xds/theme-chocolate/theme.css";-@import "@xds/theme-daily/theme.css";@import "@xds/theme-gothic/theme.css";@import "@xds/theme-matcha/theme.css";@import "@xds/theme-stone/theme.css";diff --git a/apps/docsite/src/app/playground/PlaygroundClient.tsx b/apps/docsite/src/app/playground/PlaygroundClient.tsxindex c6a25bc927..345646813e 100644--- a/apps/docsite/src/app/playground/PlaygroundClient.tsx+++ b/apps/docsite/src/app/playground/PlaygroundClient.tsx@@ -118,7 +118,6 @@ function updateURL(code: string) {const THEME_OPTIONS = [{value: 'default', label: 'Default'},{value: 'neutral', label: 'Neutral'},- {value: 'daily', label: 'Daily'},{value: 'matcha', label: 'Matcha'},];diff --git a/pnpm-lock.yaml b/pnpm-lock.yamlindex 655bc6bdf7..4015038a11 100644--- a/pnpm-lock.yaml+++ b/pnpm-lock.yaml@@ -108,12 +108,6 @@ importers:'@xds/core':specifier: '*'version: link:../../packages/core- '@xds/theme-chocolate':- specifier: '*'- version: link:../../packages/themes/chocolate- '@xds/theme-daily':- specifier: '*'- version: link:../../packages/themes/daily'@xds/theme-default':specifier: '*'version: link:../../packages/themes/default