From 5bdb609e50c1c2228f4c282c30a436fc473d08e4 Mon Sep 17 00:00:00 2001 From: Esteban Munoz Date: Tue, 30 May 2023 10:47:56 -0700 Subject: [PATCH 1/4] chore: Create react-colorpicker-compat package. --- .github/CODEOWNERS | 1 + .../react-colorpicker-compat/.babelrc.json | 4 + .../react-colorpicker-compat/.eslintrc.json | 4 + .../react-colorpicker-compat/.npmignore | 37 + .../react-colorpicker-compat/.swcrc | 30 + .../react-colorpicker-compat/LICENSE | 15 + .../react-colorpicker-compat/README.md | 5 + .../config/api-extractor.json | 4 + .../react-colorpicker-compat/config/tests.js | 1 + .../react-colorpicker-compat/docs/Spec.md | 63 ++ .../etc/react-colorpicker-compat.api.md | 9 + .../react-colorpicker-compat/jest.config.js | 21 + .../react-colorpicker-compat/just.config.ts | 5 + .../react-colorpicker-compat/package.json | 62 ++ .../react-colorpicker-compat/src/index.ts | 2 + .../react-colorpicker-compat/tsconfig.json | 22 + .../tsconfig.lib.json | 14 + .../tsconfig.spec.json | 9 + .../etc/react-conformance-griffel.api.md | 5 +- .../react-theme/etc/react-theme.api.md | 658 +++++++++++++----- tsconfig.base.all.json | 1 + tsconfig.base.json | 1 + workspace.json | 7 + 23 files changed, 792 insertions(+), 188 deletions(-) create mode 100644 packages/react-components/react-colorpicker-compat/.babelrc.json create mode 100644 packages/react-components/react-colorpicker-compat/.eslintrc.json create mode 100644 packages/react-components/react-colorpicker-compat/.npmignore create mode 100644 packages/react-components/react-colorpicker-compat/.swcrc create mode 100644 packages/react-components/react-colorpicker-compat/LICENSE create mode 100644 packages/react-components/react-colorpicker-compat/README.md create mode 100644 packages/react-components/react-colorpicker-compat/config/api-extractor.json create mode 100644 packages/react-components/react-colorpicker-compat/config/tests.js create mode 100644 packages/react-components/react-colorpicker-compat/docs/Spec.md create mode 100644 packages/react-components/react-colorpicker-compat/etc/react-colorpicker-compat.api.md create mode 100644 packages/react-components/react-colorpicker-compat/jest.config.js create mode 100644 packages/react-components/react-colorpicker-compat/just.config.ts create mode 100644 packages/react-components/react-colorpicker-compat/package.json create mode 100644 packages/react-components/react-colorpicker-compat/src/index.ts create mode 100644 packages/react-components/react-colorpicker-compat/tsconfig.json create mode 100644 packages/react-components/react-colorpicker-compat/tsconfig.lib.json create mode 100644 packages/react-components/react-colorpicker-compat/tsconfig.spec.json diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 2ccf5c782dc24..fca0ba2ec96f2 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -241,6 +241,7 @@ packages/react-components/babel-preset-storybook-full-source @microsoft/fluentui packages/react-components/react-jsx-runtime @microsoft/teams-prg packages/react-components/react-toast @microsoft/teams-prg packages/react-components/react-search @microsoft/cxe-coastal +packages/react-components/react-colorpicker-compat @microsoft/cxe-red # <%= NX-CODEOWNER-PLACEHOLDER %> ## Components diff --git a/packages/react-components/react-colorpicker-compat/.babelrc.json b/packages/react-components/react-colorpicker-compat/.babelrc.json new file mode 100644 index 0000000000000..45fb71ca16d2c --- /dev/null +++ b/packages/react-components/react-colorpicker-compat/.babelrc.json @@ -0,0 +1,4 @@ +{ + "extends": "../../../.babelrc-v9.json", + "plugins": ["annotate-pure-calls", "@babel/transform-react-pure-annotations"] +} diff --git a/packages/react-components/react-colorpicker-compat/.eslintrc.json b/packages/react-components/react-colorpicker-compat/.eslintrc.json new file mode 100644 index 0000000000000..ceea884c70dcc --- /dev/null +++ b/packages/react-components/react-colorpicker-compat/.eslintrc.json @@ -0,0 +1,4 @@ +{ + "extends": ["plugin:@fluentui/eslint-plugin/react"], + "root": true +} diff --git a/packages/react-components/react-colorpicker-compat/.npmignore b/packages/react-components/react-colorpicker-compat/.npmignore new file mode 100644 index 0000000000000..72e2ecf619016 --- /dev/null +++ b/packages/react-components/react-colorpicker-compat/.npmignore @@ -0,0 +1,37 @@ +.storybook/ +.vscode/ +bundle-size/ +config/ +coverage/ +docs/ +etc/ +node_modules/ +src/ +stories/ +dist/types/ +temp/ +__fixtures__ +__mocks__ +__tests__ + +*.api.json +*.log +*.spec.* +*.cy.* +*.test.* +*.yml + +# config files +*config.* +*rc.* +.editorconfig +.eslint* +.git* +.prettierignore +.swcrc + +# exclude gitignore patterns explicitly +!lib +!lib-commonjs +!lib-amd +!dist/*.d.ts diff --git a/packages/react-components/react-colorpicker-compat/.swcrc b/packages/react-components/react-colorpicker-compat/.swcrc new file mode 100644 index 0000000000000..b4ffa86dee306 --- /dev/null +++ b/packages/react-components/react-colorpicker-compat/.swcrc @@ -0,0 +1,30 @@ +{ + "$schema": "https://json.schemastore.org/swcrc", + "exclude": [ + "/testing", + "/**/*.cy.ts", + "/**/*.cy.tsx", + "/**/*.spec.ts", + "/**/*.spec.tsx", + "/**/*.test.ts", + "/**/*.test.tsx" + ], + "jsc": { + "parser": { + "syntax": "typescript", + "tsx": true, + "decorators": false, + "dynamicImport": false + }, + "externalHelpers": true, + "transform": { + "react": { + "runtime": "classic", + "useSpread": true + } + }, + "target": "es2019" + }, + "minify": false, + "sourceMaps": true +} diff --git a/packages/react-components/react-colorpicker-compat/LICENSE b/packages/react-components/react-colorpicker-compat/LICENSE new file mode 100644 index 0000000000000..d7f9578d3d21a --- /dev/null +++ b/packages/react-components/react-colorpicker-compat/LICENSE @@ -0,0 +1,15 @@ +@fluentui/react-colorpicker-compat + +Copyright (c) Microsoft Corporation + +All rights reserved. + +MIT License + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +Note: Usage of the fonts and icons referenced in Fluent UI React is subject to the terms listed at https://aka.ms/fluentui-assets-license diff --git a/packages/react-components/react-colorpicker-compat/README.md b/packages/react-components/react-colorpicker-compat/README.md new file mode 100644 index 0000000000000..81f9f0597d9fa --- /dev/null +++ b/packages/react-components/react-colorpicker-compat/README.md @@ -0,0 +1,5 @@ +# @fluentui/react-colorpicker-compat + +**React Colorpicker Compat components for [Fluent UI React](https://react.fluentui.dev/)** + +These are not production-ready components and **should never be used in product**. This space is useful for testing new components whose APIs might change before final release. diff --git a/packages/react-components/react-colorpicker-compat/config/api-extractor.json b/packages/react-components/react-colorpicker-compat/config/api-extractor.json new file mode 100644 index 0000000000000..e533bf30b48a2 --- /dev/null +++ b/packages/react-components/react-colorpicker-compat/config/api-extractor.json @@ -0,0 +1,4 @@ +{ + "$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json", + "extends": "@fluentui/scripts-api-extractor/api-extractor.common.v-next.json" +} diff --git a/packages/react-components/react-colorpicker-compat/config/tests.js b/packages/react-components/react-colorpicker-compat/config/tests.js new file mode 100644 index 0000000000000..2e211ae9e2142 --- /dev/null +++ b/packages/react-components/react-colorpicker-compat/config/tests.js @@ -0,0 +1 @@ +/** Jest test setup file. */ diff --git a/packages/react-components/react-colorpicker-compat/docs/Spec.md b/packages/react-components/react-colorpicker-compat/docs/Spec.md new file mode 100644 index 0000000000000..d4e12435ad0e9 --- /dev/null +++ b/packages/react-components/react-colorpicker-compat/docs/Spec.md @@ -0,0 +1,63 @@ +# @fluentui/react-colorpicker-compat Spec + +## Background + +_Description and use cases of this component_ + +## Prior Art + +_Include background research done for this component_ + +- _Link to Open UI research_ +- _Link to comparison of v7 and v0_ +- _Link to GitHub epic issue for the converged component_ + +## Sample Code + +_Provide some representative example code that uses the proposed API for the component_ + +## Variants + +_Describe visual or functional variants of this control, if applicable. For example, a slider could have a 2D variant._ + +## API + +_List the **Props** and **Slots** proposed for the component. Ideally this would just be a link to the component's `.types.ts` file_ + +## Structure + +- _**Public**_ +- _**Internal**_ +- _**DOM** - how the component will be rendered as HTML elements_ + +## Migration + +_Describe what will need to be done to upgrade from the existing implementations:_ + +- _Migration from v8_ +- _Migration from v0_ + +## Behaviors + +_Explain how the component will behave in use, including:_ + +- _Component States_ +- _Interaction_ + - _Keyboard_ + - _Cursor_ + - _Touch_ + - _Screen readers_ + +## Accessibility + +Base accessibility information is included in the design document. After the spec is filled and review, outcomes from it need to be communicated to design and incorporated in the design document. + +- Decide whether to use **native element** or folow **ARIA** and provide reasons +- Identify the **[ARIA](https://www.w3.org/TR/wai-aria-practices-1.2/) pattern** and, if the component is listed there, follow its specification as possible. +- Identify accessibility **variants**, the `role` ([ARIA roles](https://www.w3.org/TR/wai-aria-1.1/#role_definitions)) of the component, its `slots` and `aria-*` props. +- Describe the **keyboard navigation**: Tab Oder and Arrow Key Navigation. Describe any other keyboard **shortcuts** used +- Specify texts for **state change announcements** - [ARIA live regions + ](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/ARIA_Live_Regions) (number of available items in dropdown, error messages, confirmations, ...) +- Identify UI parts that appear on **hover or focus** and specify keyboard and screen reader interaction with them +- List cases when **focus** needs to be **trapped** in sections of the UI (for dialogs and popups or for hierarchical navigation) +- List cases when **focus** needs to be **moved programatically** (if parts of the UI are appearing/disappearing or other cases) diff --git a/packages/react-components/react-colorpicker-compat/etc/react-colorpicker-compat.api.md b/packages/react-components/react-colorpicker-compat/etc/react-colorpicker-compat.api.md new file mode 100644 index 0000000000000..eff83b3a69b03 --- /dev/null +++ b/packages/react-components/react-colorpicker-compat/etc/react-colorpicker-compat.api.md @@ -0,0 +1,9 @@ +## API Report File for "@fluentui/react-colorpicker-compat" + +> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/). + +```ts + +// (No @packageDocumentation comment for this package) + +``` diff --git a/packages/react-components/react-colorpicker-compat/jest.config.js b/packages/react-components/react-colorpicker-compat/jest.config.js new file mode 100644 index 0000000000000..f55115612ce0e --- /dev/null +++ b/packages/react-components/react-colorpicker-compat/jest.config.js @@ -0,0 +1,21 @@ +// @ts-check + +/** + * @type {import('@jest/types').Config.InitialOptions} + */ +module.exports = { + displayName: 'react-colorpicker-compat', + preset: '../../../jest.preset.js', + globals: { + 'ts-jest': { + tsconfig: '/tsconfig.spec.json', + isolatedModules: true, + }, + }, + transform: { + '^.+\\.tsx?$': 'ts-jest', + }, + coverageDirectory: './coverage', + setupFilesAfterEnv: ['./config/tests.js'], + snapshotSerializers: ['@griffel/jest-serializer'], +}; diff --git a/packages/react-components/react-colorpicker-compat/just.config.ts b/packages/react-components/react-colorpicker-compat/just.config.ts new file mode 100644 index 0000000000000..b7b2c9a33bf43 --- /dev/null +++ b/packages/react-components/react-colorpicker-compat/just.config.ts @@ -0,0 +1,5 @@ +import { preset, task } from '@fluentui/scripts-tasks'; + +preset(); + +task('build', 'build:react-components').cached?.(); diff --git a/packages/react-components/react-colorpicker-compat/package.json b/packages/react-components/react-colorpicker-compat/package.json new file mode 100644 index 0000000000000..994b7fbbed58f --- /dev/null +++ b/packages/react-components/react-colorpicker-compat/package.json @@ -0,0 +1,62 @@ +{ + "name": "@fluentui/react-colorpicker-compat", + "version": "0.0.0", + "private": true, + "description": "React components for building web experiences", + "main": "lib-commonjs/index.js", + "module": "lib/index.js", + "typings": "./dist/index.d.ts", + "sideEffects": false, + "repository": { + "type": "git", + "url": "https://github.com/microsoft/fluentui" + }, + "license": "MIT", + "scripts": { + "build": "just-scripts build", + "clean": "just-scripts clean", + "code-style": "just-scripts code-style", + "just": "just-scripts", + "lint": "just-scripts lint", + "test": "jest --passWithNoTests", + "test-ssr": "test-ssr \"./stories/**/*.stories.tsx\"", + "type-check": "tsc -b tsconfig.json", + "generate-api": "just-scripts generate-api" + }, + "devDependencies": { + "@fluentui/eslint-plugin": "*", + "@fluentui/react-conformance": "*", + "@fluentui/react-conformance-griffel": "9.0.0-beta.21", + "@fluentui/scripts-api-extractor": "*", + "@fluentui/scripts-tasks": "*" + }, + "dependencies": { + "@fluentui/react-jsx-runtime": "9.0.0-alpha.5", + "@fluentui/react-theme": "^9.1.8", + "@fluentui/react-utilities": "^9.9.1", + "@griffel/react": "^1.5.2", + "@swc/helpers": "^0.4.14" + }, + "peerDependencies": { + "@types/react": ">=16.8.0 <19.0.0", + "@types/react-dom": ">=16.8.0 <19.0.0", + "react": ">=16.8.0 <19.0.0", + "react-dom": ">=16.8.0 <19.0.0" + }, + "beachball": { + "disallowedChangeTypes": [ + "major", + "minor", + "patch" + ] + }, + "exports": { + ".": { + "types": "./dist/index.d.ts", + "node": "./lib-commonjs/index.js", + "import": "./lib/index.js", + "require": "./lib-commonjs/index.js" + }, + "./package.json": "./package.json" + } +} diff --git a/packages/react-components/react-colorpicker-compat/src/index.ts b/packages/react-components/react-colorpicker-compat/src/index.ts new file mode 100644 index 0000000000000..aacbad0068e24 --- /dev/null +++ b/packages/react-components/react-colorpicker-compat/src/index.ts @@ -0,0 +1,2 @@ +// TODO: replace with real exports +export {}; diff --git a/packages/react-components/react-colorpicker-compat/tsconfig.json b/packages/react-components/react-colorpicker-compat/tsconfig.json new file mode 100644 index 0000000000000..12ca516af1c5b --- /dev/null +++ b/packages/react-components/react-colorpicker-compat/tsconfig.json @@ -0,0 +1,22 @@ +{ + "extends": "../../../tsconfig.base.json", + "compilerOptions": { + "target": "ES2019", + "noEmit": true, + "isolatedModules": true, + "importHelpers": true, + "jsx": "react", + "noUnusedLocals": true, + "preserveConstEnums": true + }, + "include": [], + "files": [], + "references": [ + { + "path": "./tsconfig.lib.json" + }, + { + "path": "./tsconfig.spec.json" + } + ] +} diff --git a/packages/react-components/react-colorpicker-compat/tsconfig.lib.json b/packages/react-components/react-colorpicker-compat/tsconfig.lib.json new file mode 100644 index 0000000000000..b2da24eff1b32 --- /dev/null +++ b/packages/react-components/react-colorpicker-compat/tsconfig.lib.json @@ -0,0 +1,14 @@ +{ + "extends": "./tsconfig.json", + "compilerOptions": { + "noEmit": false, + "lib": ["ES2019", "dom"], + "declaration": true, + "declarationDir": "../../../dist/out-tsc/types", + "outDir": "../../../dist/out-tsc", + "inlineSources": true, + "types": ["static-assets", "environment"] + }, + "exclude": ["**/*.spec.ts", "**/*.spec.tsx", "**/*.test.ts", "**/*.test.tsx"], + "include": ["./src/**/*.ts", "./src/**/*.tsx"] +} diff --git a/packages/react-components/react-colorpicker-compat/tsconfig.spec.json b/packages/react-components/react-colorpicker-compat/tsconfig.spec.json new file mode 100644 index 0000000000000..469fcba4d7ba7 --- /dev/null +++ b/packages/react-components/react-colorpicker-compat/tsconfig.spec.json @@ -0,0 +1,9 @@ +{ + "extends": "./tsconfig.json", + "compilerOptions": { + "module": "CommonJS", + "outDir": "dist", + "types": ["jest", "node"] + }, + "include": ["**/*.spec.ts", "**/*.spec.tsx", "**/*.test.ts", "**/*.test.tsx", "**/*.d.ts"] +} diff --git a/packages/react-components/react-conformance-griffel/etc/react-conformance-griffel.api.md b/packages/react-components/react-conformance-griffel/etc/react-conformance-griffel.api.md index bbfbdc7ddd461..c36c510d957eb 100644 --- a/packages/react-components/react-conformance-griffel/etc/react-conformance-griffel.api.md +++ b/packages/react-components/react-conformance-griffel/etc/react-conformance-griffel.api.md @@ -4,7 +4,10 @@ ```ts -import { TestObject } from '@fluentui/react-conformance'; +import { ComponentDoc } from 'react-docgen-typescript'; +import * as React_2 from 'react'; +import { render } from '@testing-library/react'; +import * as ts from 'typescript'; // @public (undocumented) const makeStylesTests: TestObject; diff --git a/packages/react-components/react-theme/etc/react-theme.api.md b/packages/react-components/react-theme/etc/react-theme.api.md index bfd103c4bf543..0a7c2e0033402 100644 --- a/packages/react-components/react-theme/etc/react-theme.api.md +++ b/packages/react-components/react-theme/etc/react-theme.api.md @@ -4,210 +4,494 @@ ```ts -import { BorderRadiusTokens } from '@fluentui/tokens'; -import { Brands } from '@fluentui/tokens'; -import { BrandVariants } from '@fluentui/tokens'; -import { ColorPaletteAnchor } from '@fluentui/tokens'; -import { ColorPaletteBeige } from '@fluentui/tokens'; -import { ColorPaletteBerry } from '@fluentui/tokens'; -import { ColorPaletteBlue } from '@fluentui/tokens'; -import { ColorPaletteBrass } from '@fluentui/tokens'; -import { ColorPaletteBrown } from '@fluentui/tokens'; -import { ColorPaletteCornflower } from '@fluentui/tokens'; -import { ColorPaletteCranberry } from '@fluentui/tokens'; -import { ColorPaletteDarkGreen } from '@fluentui/tokens'; -import { ColorPaletteDarkOrange } from '@fluentui/tokens'; -import { ColorPaletteDarkRed } from '@fluentui/tokens'; -import { ColorPaletteForest } from '@fluentui/tokens'; -import { ColorPaletteGold } from '@fluentui/tokens'; -import { ColorPaletteGrape } from '@fluentui/tokens'; -import { ColorPaletteGreen } from '@fluentui/tokens'; -import { ColorPaletteLavender } from '@fluentui/tokens'; -import { ColorPaletteLightGreen } from '@fluentui/tokens'; -import { ColorPaletteLightTeal } from '@fluentui/tokens'; -import { ColorPaletteLilac } from '@fluentui/tokens'; -import { ColorPaletteMagenta } from '@fluentui/tokens'; -import { ColorPaletteMarigold } from '@fluentui/tokens'; -import { ColorPaletteMink } from '@fluentui/tokens'; -import { ColorPaletteNavy } from '@fluentui/tokens'; -import { ColorPalettePeach } from '@fluentui/tokens'; -import { ColorPalettePink } from '@fluentui/tokens'; -import { ColorPalettePlatinum } from '@fluentui/tokens'; -import { ColorPalettePlum } from '@fluentui/tokens'; -import { ColorPalettePumpkin } from '@fluentui/tokens'; -import { ColorPalettePurple } from '@fluentui/tokens'; -import { ColorPaletteRed } from '@fluentui/tokens'; -import { ColorPaletteRoyalBlue } from '@fluentui/tokens'; -import { ColorPaletteSeafoam } from '@fluentui/tokens'; -import { ColorPaletteSteel } from '@fluentui/tokens'; -import { ColorPaletteTeal } from '@fluentui/tokens'; -import { ColorPaletteTokens } from '@fluentui/tokens'; -import { ColorPaletteYellow } from '@fluentui/tokens'; -import { ColorTokens } from '@fluentui/tokens'; -import { createDarkTheme } from '@fluentui/tokens'; -import { createHighContrastTheme } from '@fluentui/tokens'; -import { createLightTheme } from '@fluentui/tokens'; -import { createTeamsDarkTheme } from '@fluentui/tokens'; -import { CurveTokens } from '@fluentui/tokens'; -import { DurationTokens } from '@fluentui/tokens'; -import { FontFamilyTokens } from '@fluentui/tokens'; -import { FontSizeTokens } from '@fluentui/tokens'; -import { FontWeightTokens } from '@fluentui/tokens'; -import { HorizontalSpacingTokens } from '@fluentui/tokens'; -import { LineHeightTokens } from '@fluentui/tokens'; -import { PartialTheme } from '@fluentui/tokens'; -import { ShadowBrandTokens } from '@fluentui/tokens'; -import { ShadowTokens } from '@fluentui/tokens'; -import { SpacingTokens } from '@fluentui/tokens'; -import { StrokeWidthTokens } from '@fluentui/tokens'; -import { teamsDarkTheme } from '@fluentui/tokens'; -import { teamsHighContrastTheme } from '@fluentui/tokens'; -import { teamsLightTheme } from '@fluentui/tokens'; -import { Theme } from '@fluentui/tokens'; -import { themeToTokensObject } from '@fluentui/tokens'; -import { tokens } from '@fluentui/tokens'; -import { TypographyStyle } from '@fluentui/tokens'; -import { TypographyStyles } from '@fluentui/tokens'; -import { typographyStyles } from '@fluentui/tokens'; -import { VerticalSpacingTokens } from '@fluentui/tokens'; -import { webDarkTheme } from '@fluentui/tokens'; -import { webLightTheme } from '@fluentui/tokens'; +// @public (undocumented) +export type BorderRadiusTokens = { + borderRadiusNone: string; + borderRadiusSmall: string; + borderRadiusMedium: string; + borderRadiusLarge: string; + borderRadiusXLarge: string; + borderRadiusCircular: string; +}; -export { BorderRadiusTokens } +// @public (undocumented) +export type Brands = 10 | 20 | 30 | 40 | 50 | 60 | 70 | 80 | 90 | 100 | 110 | 120 | 130 | 140 | 150 | 160; -export { Brands } +// @public (undocumented) +export type BrandVariants = Record; -export { BrandVariants } +// @public (undocumented) +export type ColorPaletteAnchor = 'colorPaletteAnchorBackground2' | 'colorPaletteAnchorForeground2' | 'colorPaletteAnchorBorderActive'; -export { ColorPaletteAnchor } +// @public (undocumented) +export type ColorPaletteBeige = 'colorPaletteBeigeBackground2' | 'colorPaletteBeigeForeground2' | 'colorPaletteBeigeBorderActive'; -export { ColorPaletteBeige } +// @public (undocumented) +export type ColorPaletteBerry = 'colorPaletteBerryBackground1' | 'colorPaletteBerryBackground2' | 'colorPaletteBerryBackground3' | 'colorPaletteBerryForeground1' | 'colorPaletteBerryForeground2' | 'colorPaletteBerryForeground3' | 'colorPaletteBerryBorderActive' | 'colorPaletteBerryBorder1' | 'colorPaletteBerryBorder2'; -export { ColorPaletteBerry } +// @public (undocumented) +export type ColorPaletteBlue = 'colorPaletteBlueBackground2' | 'colorPaletteBlueForeground2' | 'colorPaletteBlueBorderActive'; -export { ColorPaletteBlue } +// @public (undocumented) +export type ColorPaletteBrass = 'colorPaletteBrassBackground2' | 'colorPaletteBrassForeground2' | 'colorPaletteBrassBorderActive'; -export { ColorPaletteBrass } +// @public (undocumented) +export type ColorPaletteBrown = 'colorPaletteBrownBackground2' | 'colorPaletteBrownForeground2' | 'colorPaletteBrownBorderActive'; -export { ColorPaletteBrown } +// @public (undocumented) +export type ColorPaletteCornflower = 'colorPaletteCornflowerBackground2' | 'colorPaletteCornflowerForeground2' | 'colorPaletteCornflowerBorderActive'; -export { ColorPaletteCornflower } +// @public (undocumented) +export type ColorPaletteCranberry = 'colorPaletteCranberryBackground2' | 'colorPaletteCranberryForeground2' | 'colorPaletteCranberryBorderActive'; -export { ColorPaletteCranberry } +// @public (undocumented) +export type ColorPaletteDarkGreen = 'colorPaletteDarkGreenBackground2' | 'colorPaletteDarkGreenForeground2' | 'colorPaletteDarkGreenBorderActive'; -export { ColorPaletteDarkGreen } +// @public (undocumented) +export type ColorPaletteDarkOrange = 'colorPaletteDarkOrangeBackground1' | 'colorPaletteDarkOrangeBackground2' | 'colorPaletteDarkOrangeBackground3' | 'colorPaletteDarkOrangeForeground1' | 'colorPaletteDarkOrangeForeground2' | 'colorPaletteDarkOrangeForeground3' | 'colorPaletteDarkOrangeBorderActive' | 'colorPaletteDarkOrangeBorder1' | 'colorPaletteDarkOrangeBorder2'; -export { ColorPaletteDarkOrange } +// @public (undocumented) +export type ColorPaletteDarkRed = 'colorPaletteDarkRedBackground2' | 'colorPaletteDarkRedForeground2' | 'colorPaletteDarkRedBorderActive'; -export { ColorPaletteDarkRed } +// @public (undocumented) +export type ColorPaletteForest = 'colorPaletteForestBackground2' | 'colorPaletteForestForeground2' | 'colorPaletteForestBorderActive'; -export { ColorPaletteForest } +// @public (undocumented) +export type ColorPaletteGold = 'colorPaletteGoldBackground2' | 'colorPaletteGoldForeground2' | 'colorPaletteGoldBorderActive'; -export { ColorPaletteGold } +// @public (undocumented) +export type ColorPaletteGrape = 'colorPaletteGrapeBackground2' | 'colorPaletteGrapeForeground2' | 'colorPaletteGrapeBorderActive'; -export { ColorPaletteGrape } - -export { ColorPaletteGreen } - -export { ColorPaletteLavender } - -export { ColorPaletteLightGreen } - -export { ColorPaletteLightTeal } - -export { ColorPaletteLilac } - -export { ColorPaletteMagenta } - -export { ColorPaletteMarigold } - -export { ColorPaletteMink } - -export { ColorPaletteNavy } - -export { ColorPalettePeach } - -export { ColorPalettePink } - -export { ColorPalettePlatinum } - -export { ColorPalettePlum } - -export { ColorPalettePumpkin } - -export { ColorPalettePurple } - -export { ColorPaletteRed } - -export { ColorPaletteRoyalBlue } - -export { ColorPaletteSeafoam } - -export { ColorPaletteSteel } - -export { ColorPaletteTeal } - -export { ColorPaletteTokens } - -export { ColorPaletteYellow } - -export { ColorTokens } - -export { createDarkTheme } - -export { createHighContrastTheme } - -export { createLightTheme } - -export { createTeamsDarkTheme } - -export { CurveTokens } - -export { DurationTokens } - -export { FontFamilyTokens } - -export { FontSizeTokens } - -export { FontWeightTokens } - -export { HorizontalSpacingTokens } - -export { LineHeightTokens } - -export { PartialTheme } - -export { ShadowBrandTokens } - -export { ShadowTokens } - -export { SpacingTokens } - -export { StrokeWidthTokens } - -export { teamsDarkTheme } - -export { teamsHighContrastTheme } - -export { teamsLightTheme } - -export { Theme } - -export { themeToTokensObject } - -export { tokens } - -export { TypographyStyle } - -export { TypographyStyles } - -export { typographyStyles } - -export { VerticalSpacingTokens } - -export { webDarkTheme } - -export { webLightTheme } +// @public (undocumented) +export type ColorPaletteGreen = 'colorPaletteGreenBackground1' | 'colorPaletteGreenBackground2' | 'colorPaletteGreenBackground3' | 'colorPaletteGreenForeground1' | 'colorPaletteGreenForeground2' | 'colorPaletteGreenForeground3' | 'colorPaletteGreenForegroundInverted' | 'colorPaletteGreenBorderActive' | 'colorPaletteGreenBorder1' | 'colorPaletteGreenBorder2'; + +// @public (undocumented) +export type ColorPaletteLavender = 'colorPaletteLavenderBackground2' | 'colorPaletteLavenderForeground2' | 'colorPaletteLavenderBorderActive'; + +// @public (undocumented) +export type ColorPaletteLightGreen = 'colorPaletteLightGreenBackground1' | 'colorPaletteLightGreenBackground2' | 'colorPaletteLightGreenBackground3' | 'colorPaletteLightGreenForeground1' | 'colorPaletteLightGreenForeground2' | 'colorPaletteLightGreenForeground3' | 'colorPaletteLightGreenBorderActive' | 'colorPaletteLightGreenBorder1' | 'colorPaletteLightGreenBorder2'; + +// @public (undocumented) +export type ColorPaletteLightTeal = 'colorPaletteLightTealBackground2' | 'colorPaletteLightTealForeground2' | 'colorPaletteLightTealBorderActive'; + +// @public (undocumented) +export type ColorPaletteLilac = 'colorPaletteLilacBackground2' | 'colorPaletteLilacForeground2' | 'colorPaletteLilacBorderActive'; + +// @public (undocumented) +export type ColorPaletteMagenta = 'colorPaletteMagentaBackground2' | 'colorPaletteMagentaForeground2' | 'colorPaletteMagentaBorderActive'; + +// @public (undocumented) +export type ColorPaletteMarigold = 'colorPaletteMarigoldBackground1' | 'colorPaletteMarigoldBackground2' | 'colorPaletteMarigoldBackground3' | 'colorPaletteMarigoldForeground1' | 'colorPaletteMarigoldForeground2' | 'colorPaletteMarigoldForeground3' | 'colorPaletteMarigoldBorderActive' | 'colorPaletteMarigoldBorder1' | 'colorPaletteMarigoldBorder2'; + +// @public (undocumented) +export type ColorPaletteMink = 'colorPaletteMinkBackground2' | 'colorPaletteMinkForeground2' | 'colorPaletteMinkBorderActive'; + +// @public (undocumented) +export type ColorPaletteNavy = 'colorPaletteNavyBackground2' | 'colorPaletteNavyForeground2' | 'colorPaletteNavyBorderActive'; + +// @public (undocumented) +export type ColorPalettePeach = 'colorPalettePeachBackground2' | 'colorPalettePeachForeground2' | 'colorPalettePeachBorderActive'; + +// @public (undocumented) +export type ColorPalettePink = 'colorPalettePinkBackground2' | 'colorPalettePinkForeground2' | 'colorPalettePinkBorderActive'; + +// @public (undocumented) +export type ColorPalettePlatinum = 'colorPalettePlatinumBackground2' | 'colorPalettePlatinumForeground2' | 'colorPalettePlatinumBorderActive'; + +// @public (undocumented) +export type ColorPalettePlum = 'colorPalettePlumBackground2' | 'colorPalettePlumForeground2' | 'colorPalettePlumBorderActive'; + +// @public (undocumented) +export type ColorPalettePumpkin = 'colorPalettePumpkinBackground2' | 'colorPalettePumpkinForeground2' | 'colorPalettePumpkinBorderActive'; + +// @public (undocumented) +export type ColorPalettePurple = 'colorPalettePurpleBackground2' | 'colorPalettePurpleForeground2' | 'colorPalettePurpleBorderActive'; + +// @public (undocumented) +export type ColorPaletteRed = 'colorPaletteRedBackground1' | 'colorPaletteRedBackground2' | 'colorPaletteRedBackground3' | 'colorPaletteRedForeground1' | 'colorPaletteRedForeground2' | 'colorPaletteRedForeground3' | 'colorPaletteRedForegroundInverted' | 'colorPaletteRedBorderActive' | 'colorPaletteRedBorder1' | 'colorPaletteRedBorder2'; + +// @public (undocumented) +export type ColorPaletteRoyalBlue = 'colorPaletteRoyalBlueBackground2' | 'colorPaletteRoyalBlueForeground2' | 'colorPaletteRoyalBlueBorderActive'; + +// @public (undocumented) +export type ColorPaletteSeafoam = 'colorPaletteSeafoamBackground2' | 'colorPaletteSeafoamForeground2' | 'colorPaletteSeafoamBorderActive'; + +// @public (undocumented) +export type ColorPaletteSteel = 'colorPaletteSteelBackground2' | 'colorPaletteSteelForeground2' | 'colorPaletteSteelBorderActive'; + +// @public (undocumented) +export type ColorPaletteTeal = 'colorPaletteTealBackground2' | 'colorPaletteTealForeground2' | 'colorPaletteTealBorderActive'; + +// @public (undocumented) +export type ColorPaletteTokens = StatusColorPaletteTokens & PersonaColorPaletteTokens; + +// @public (undocumented) +export type ColorPaletteYellow = 'colorPaletteYellowBackground1' | 'colorPaletteYellowBackground2' | 'colorPaletteYellowBackground3' | 'colorPaletteYellowForeground1' | 'colorPaletteYellowForeground2' | 'colorPaletteYellowForeground3' | 'colorPaletteYellowForegroundInverted' | 'colorPaletteYellowBorderActive' | 'colorPaletteYellowBorder1' | 'colorPaletteYellowBorder2'; + +// @public +export type ColorTokens = { + colorNeutralForeground1: string; + colorNeutralForeground1Hover: string; + colorNeutralForeground1Pressed: string; + colorNeutralForeground1Selected: string; + colorNeutralForeground2: string; + colorNeutralForeground2Hover: string; + colorNeutralForeground2Pressed: string; + colorNeutralForeground2Selected: string; + colorNeutralForeground2BrandHover: string; + colorNeutralForeground2BrandPressed: string; + colorNeutralForeground2BrandSelected: string; + colorNeutralForeground3: string; + colorNeutralForeground3Hover: string; + colorNeutralForeground3Pressed: string; + colorNeutralForeground3Selected: string; + colorNeutralForeground3BrandHover: string; + colorNeutralForeground3BrandPressed: string; + colorNeutralForeground3BrandSelected: string; + colorNeutralForeground4: string; + colorNeutralForegroundDisabled: string; + colorNeutralForegroundInvertedDisabled: string; + colorBrandForegroundLink: string; + colorBrandForegroundLinkHover: string; + colorBrandForegroundLinkPressed: string; + colorBrandForegroundLinkSelected: string; + colorNeutralForeground2Link: string; + colorNeutralForeground2LinkHover: string; + colorNeutralForeground2LinkPressed: string; + colorNeutralForeground2LinkSelected: string; + colorCompoundBrandForeground1: string; + colorCompoundBrandForeground1Hover: string; + colorCompoundBrandForeground1Pressed: string; + colorBrandForeground1: string; + colorBrandForeground2: string; + colorNeutralForeground1Static: string; + colorNeutralForegroundInverted: string; + colorNeutralForegroundInvertedHover: string; + colorNeutralForegroundInvertedPressed: string; + colorNeutralForegroundInvertedSelected: string; + colorNeutralForegroundInverted2: string; + colorNeutralForegroundOnBrand: string; + colorNeutralForegroundStaticInverted: string; + colorNeutralForegroundInvertedLink: string; + colorNeutralForegroundInvertedLinkHover: string; + colorNeutralForegroundInvertedLinkPressed: string; + colorNeutralForegroundInvertedLinkSelected: string; + colorBrandForegroundInverted: string; + colorBrandForegroundInvertedHover: string; + colorBrandForegroundInvertedPressed: string; + colorBrandForegroundOnLight: string; + colorBrandForegroundOnLightHover: string; + colorBrandForegroundOnLightPressed: string; + colorBrandForegroundOnLightSelected: string; + colorNeutralBackground1: string; + colorNeutralBackground1Hover: string; + colorNeutralBackground1Pressed: string; + colorNeutralBackground1Selected: string; + colorNeutralBackground2: string; + colorNeutralBackground2Hover: string; + colorNeutralBackground2Pressed: string; + colorNeutralBackground2Selected: string; + colorNeutralBackground3: string; + colorNeutralBackground3Hover: string; + colorNeutralBackground3Pressed: string; + colorNeutralBackground3Selected: string; + colorNeutralBackground4: string; + colorNeutralBackground4Hover: string; + colorNeutralBackground4Pressed: string; + colorNeutralBackground4Selected: string; + colorNeutralBackground5: string; + colorNeutralBackground5Hover: string; + colorNeutralBackground5Pressed: string; + colorNeutralBackground5Selected: string; + colorNeutralBackground6: string; + colorNeutralBackgroundInverted: string; + colorNeutralBackgroundStatic: string; + colorNeutralBackgroundAlpha: string; + colorNeutralBackgroundAlpha2: string; + colorSubtleBackground: string; + colorSubtleBackgroundHover: string; + colorSubtleBackgroundPressed: string; + colorSubtleBackgroundSelected: string; + colorSubtleBackgroundLightAlphaHover: string; + colorSubtleBackgroundLightAlphaPressed: string; + colorSubtleBackgroundLightAlphaSelected: string; + colorSubtleBackgroundInverted: string; + colorSubtleBackgroundInvertedHover: string; + colorSubtleBackgroundInvertedPressed: string; + colorSubtleBackgroundInvertedSelected: string; + colorTransparentBackground: string; + colorTransparentBackgroundHover: string; + colorTransparentBackgroundPressed: string; + colorTransparentBackgroundSelected: string; + colorNeutralBackgroundDisabled: string; + colorNeutralBackgroundInvertedDisabled: string; + colorNeutralStencil1: string; + colorNeutralStencil2: string; + colorNeutralStencil1Alpha: string; + colorNeutralStencil2Alpha: string; + colorBackgroundOverlay: string; + colorScrollbarOverlay: string; + colorBrandBackground: string; + colorBrandBackgroundHover: string; + colorBrandBackgroundPressed: string; + colorBrandBackgroundSelected: string; + colorCompoundBrandBackground: string; + colorCompoundBrandBackgroundHover: string; + colorCompoundBrandBackgroundPressed: string; + colorBrandBackgroundStatic: string; + colorBrandBackground2: string; + colorBrandBackgroundInverted: string; + colorBrandBackgroundInvertedHover: string; + colorBrandBackgroundInvertedPressed: string; + colorBrandBackgroundInvertedSelected: string; + colorNeutralStrokeAccessible: string; + colorNeutralStrokeAccessibleHover: string; + colorNeutralStrokeAccessiblePressed: string; + colorNeutralStrokeAccessibleSelected: string; + colorNeutralStroke1: string; + colorNeutralStroke1Hover: string; + colorNeutralStroke1Pressed: string; + colorNeutralStroke1Selected: string; + colorNeutralStroke2: string; + colorNeutralStroke3: string; + colorNeutralStrokeOnBrand: string; + colorNeutralStrokeOnBrand2: string; + colorNeutralStrokeOnBrand2Hover: string; + colorNeutralStrokeOnBrand2Pressed: string; + colorNeutralStrokeOnBrand2Selected: string; + colorBrandStroke1: string; + colorBrandStroke2: string; + colorCompoundBrandStroke: string; + colorCompoundBrandStrokeHover: string; + colorCompoundBrandStrokePressed: string; + colorNeutralStrokeDisabled: string; + colorNeutralStrokeInvertedDisabled: string; + colorTransparentStroke: string; + colorTransparentStrokeInteractive: string; + colorTransparentStrokeDisabled: string; + colorNeutralStrokeAlpha: string; + colorStrokeFocus1: string; + colorStrokeFocus2: string; + colorNeutralShadowAmbient: string; + colorNeutralShadowKey: string; + colorNeutralShadowAmbientLighter: string; + colorNeutralShadowKeyLighter: string; + colorNeutralShadowAmbientDarker: string; + colorNeutralShadowKeyDarker: string; + colorBrandShadowAmbient: string; + colorBrandShadowKey: string; +}; + +// @public (undocumented) +export const createDarkTheme: (brand: BrandVariants) => Theme; + +// @public (undocumented) +export const createHighContrastTheme: () => Theme; + +// @public (undocumented) +export const createLightTheme: (brand: BrandVariants) => Theme; + +// @public (undocumented) +export const createTeamsDarkTheme: (brand: BrandVariants) => Theme; + +// @public (undocumented) +export type CurveTokens = { + curveAccelerateMax: string; + curveAccelerateMid: string; + curveAccelerateMin: string; + curveDecelerateMax: string; + curveDecelerateMid: string; + curveDecelerateMin: string; + curveEasyEaseMax: string; + curveEasyEase: string; + curveLinear: string; +}; + +// @public (undocumented) +export type DurationTokens = { + durationUltraFast: string; + durationFaster: string; + durationFast: string; + durationNormal: string; + durationSlow: string; + durationSlower: string; + durationUltraSlow: string; +}; + +// @public (undocumented) +export type FontFamilyTokens = { + fontFamilyBase: string; + fontFamilyMonospace: string; + fontFamilyNumeric: string; +}; + +// @public (undocumented) +export type FontSizeTokens = { + fontSizeBase100: string; + fontSizeBase200: string; + fontSizeBase300: string; + fontSizeBase400: string; + fontSizeBase500: string; + fontSizeBase600: string; + fontSizeHero700: string; + fontSizeHero800: string; + fontSizeHero900: string; + fontSizeHero1000: string; +}; + +// @public (undocumented) +export type FontWeightTokens = { + fontWeightRegular: number; + fontWeightMedium: number; + fontWeightSemibold: number; + fontWeightBold: number; +}; + +// @public (undocumented) +export type HorizontalSpacingTokens = { + spacingHorizontalNone: string; + spacingHorizontalXXS: string; + spacingHorizontalXS: string; + spacingHorizontalSNudge: string; + spacingHorizontalS: string; + spacingHorizontalMNudge: string; + spacingHorizontalM: string; + spacingHorizontalL: string; + spacingHorizontalXL: string; + spacingHorizontalXXL: string; + spacingHorizontalXXXL: string; +}; + +// @public (undocumented) +export type LineHeightTokens = { + lineHeightBase100: string; + lineHeightBase200: string; + lineHeightBase300: string; + lineHeightBase400: string; + lineHeightBase500: string; + lineHeightBase600: string; + lineHeightHero700: string; + lineHeightHero800: string; + lineHeightHero900: string; + lineHeightHero1000: string; +}; + +// @public (undocumented) +export type PartialTheme = Partial; + +// @public (undocumented) +export type ShadowBrandTokens = { + shadow2Brand: string; + shadow4Brand: string; + shadow8Brand: string; + shadow16Brand: string; + shadow28Brand: string; + shadow64Brand: string; +}; + +// @public +export type ShadowTokens = { + shadow2: string; + shadow4: string; + shadow8: string; + shadow16: string; + shadow28: string; + shadow64: string; +}; + +// @public (undocumented) +export type SpacingTokens = { + none: string; + xxs: string; + xs: string; + sNudge: string; + s: string; + mNudge: string; + m: string; + l: string; + xl: string; + xxl: string; + xxxl: string; +}; + +// @public (undocumented) +export type StrokeWidthTokens = { + strokeWidthThin: string; + strokeWidthThick: string; + strokeWidthThicker: string; + strokeWidthThickest: string; +}; + +// @public (undocumented) +export const teamsDarkTheme: Theme; + +// @public (undocumented) +export const teamsHighContrastTheme: Theme; + +// @public (undocumented) +export const teamsLightTheme: Theme; + +// @public (undocumented) +export type Theme = FontSizeTokens & LineHeightTokens & BorderRadiusTokens & StrokeWidthTokens & HorizontalSpacingTokens & VerticalSpacingTokens & DurationTokens & CurveTokens & ShadowTokens & ShadowBrandTokens & FontFamilyTokens & FontWeightTokens & ColorPaletteTokens & ColorTokens; + +// @public +export function themeToTokensObject(theme: TTheme): Record; + +// @public (undocumented) +export const tokens: Record; + +// @public (undocumented) +export type TypographyStyle = { + fontFamily: string; + fontSize: string; + fontWeight: string; + lineHeight: string; +}; + +// @public (undocumented) +export type TypographyStyles = { + body1: TypographyStyle; + body1Strong: TypographyStyle; + body1Stronger: TypographyStyle; + body2: TypographyStyle; + caption1: TypographyStyle; + caption1Strong: TypographyStyle; + caption1Stronger: TypographyStyle; + caption2: TypographyStyle; + caption2Strong: TypographyStyle; + subtitle1: TypographyStyle; + subtitle2: TypographyStyle; + subtitle2Stronger: TypographyStyle; + title1: TypographyStyle; + title2: TypographyStyle; + title3: TypographyStyle; + largeTitle: TypographyStyle; + display: TypographyStyle; +}; + +// @public +export const typographyStyles: TypographyStyles; + +// @public (undocumented) +export type VerticalSpacingTokens = { + spacingVerticalNone: string; + spacingVerticalXXS: string; + spacingVerticalXS: string; + spacingVerticalSNudge: string; + spacingVerticalS: string; + spacingVerticalMNudge: string; + spacingVerticalM: string; + spacingVerticalL: string; + spacingVerticalXL: string; + spacingVerticalXXL: string; + spacingVerticalXXXL: string; +}; + +// @public (undocumented) +export const webDarkTheme: Theme; + +// @public (undocumented) +export const webLightTheme: Theme; // (No @packageDocumentation comment for this package) diff --git a/tsconfig.base.all.json b/tsconfig.base.all.json index 8bd6b72fd6eb7..0f9f41fbbc2e7 100644 --- a/tsconfig.base.all.json +++ b/tsconfig.base.all.json @@ -96,6 +96,7 @@ "@fluentui/react-button": ["packages/react-components/react-button/src/index.ts"], "@fluentui/react-card": ["packages/react-components/react-card/src/index.ts"], "@fluentui/react-checkbox": ["packages/react-components/react-checkbox/src/index.ts"], + "@fluentui/react-colorpicker-compat": ["packages/react-components/react-colorpicker-compat/src/index.ts"], "@fluentui/react-combobox": ["packages/react-components/react-combobox/src/index.ts"], "@fluentui/react-components": ["packages/react-components/react-components/src/index.ts"], "@fluentui/react-components/unstable": ["packages/react-components/react-components/src/unstable/index.ts"], diff --git a/tsconfig.base.json b/tsconfig.base.json index e2f5627f48a8c..3a9acc59b7879 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -30,6 +30,7 @@ "@fluentui/react-button": ["packages/react-components/react-button/src/index.ts"], "@fluentui/react-card": ["packages/react-components/react-card/src/index.ts"], "@fluentui/react-checkbox": ["packages/react-components/react-checkbox/src/index.ts"], + "@fluentui/react-colorpicker-compat": ["packages/react-components/react-colorpicker-compat/src/index.ts"], "@fluentui/react-combobox": ["packages/react-components/react-combobox/src/index.ts"], "@fluentui/react-components": ["packages/react-components/react-components/src/index.ts"], "@fluentui/react-components/unstable": ["packages/react-components/react-components/src/unstable/index.ts"], diff --git a/workspace.json b/workspace.json index e5389ecbe034a..40ae5268834d2 100644 --- a/workspace.json +++ b/workspace.json @@ -376,6 +376,13 @@ "tags": ["vNext", "platform:web"], "implicitDependencies": [] }, + "@fluentui/react-colorpicker-compat": { + "root": "packages/react-components/react-colorpicker-compat", + "projectType": "library", + "implicitDependencies": [], + "sourceRoot": "packages/react-components/react-colorpicker-compat/src", + "tags": ["vNext", "platform:web"] + }, "@fluentui/react-combobox": { "root": "packages/react-components/react-combobox", "projectType": "library", From 4032620f7e3e2e8b35a9ab8b80730e1220daaab1 Mon Sep 17 00:00:00 2001 From: Esteban Munoz Date: Tue, 30 May 2023 11:03:17 -0700 Subject: [PATCH 2/4] adding myself to the codeowners --- .github/CODEOWNERS | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index fca0ba2ec96f2..ea94353ef8b14 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -241,7 +241,7 @@ packages/react-components/babel-preset-storybook-full-source @microsoft/fluentui packages/react-components/react-jsx-runtime @microsoft/teams-prg packages/react-components/react-toast @microsoft/teams-prg packages/react-components/react-search @microsoft/cxe-coastal -packages/react-components/react-colorpicker-compat @microsoft/cxe-red +packages/react-components/react-colorpicker-compat @microsoft/cxe-red @sopranopillow # <%= NX-CODEOWNER-PLACEHOLDER %> ## Components From 27b379897ccd040ff6a4f1f7992ccf1bfe7e90bc Mon Sep 17 00:00:00 2001 From: Esteban Munoz Date: Tue, 30 May 2023 11:06:54 -0700 Subject: [PATCH 3/4] reverting api files --- .../etc/react-conformance-griffel.api.md | 5 +- .../react-theme/etc/react-theme.api.md | 658 +++++------------- 2 files changed, 188 insertions(+), 475 deletions(-) diff --git a/packages/react-components/react-conformance-griffel/etc/react-conformance-griffel.api.md b/packages/react-components/react-conformance-griffel/etc/react-conformance-griffel.api.md index c36c510d957eb..bbfbdc7ddd461 100644 --- a/packages/react-components/react-conformance-griffel/etc/react-conformance-griffel.api.md +++ b/packages/react-components/react-conformance-griffel/etc/react-conformance-griffel.api.md @@ -4,10 +4,7 @@ ```ts -import { ComponentDoc } from 'react-docgen-typescript'; -import * as React_2 from 'react'; -import { render } from '@testing-library/react'; -import * as ts from 'typescript'; +import { TestObject } from '@fluentui/react-conformance'; // @public (undocumented) const makeStylesTests: TestObject; diff --git a/packages/react-components/react-theme/etc/react-theme.api.md b/packages/react-components/react-theme/etc/react-theme.api.md index 0a7c2e0033402..bfd103c4bf543 100644 --- a/packages/react-components/react-theme/etc/react-theme.api.md +++ b/packages/react-components/react-theme/etc/react-theme.api.md @@ -4,494 +4,210 @@ ```ts -// @public (undocumented) -export type BorderRadiusTokens = { - borderRadiusNone: string; - borderRadiusSmall: string; - borderRadiusMedium: string; - borderRadiusLarge: string; - borderRadiusXLarge: string; - borderRadiusCircular: string; -}; +import { BorderRadiusTokens } from '@fluentui/tokens'; +import { Brands } from '@fluentui/tokens'; +import { BrandVariants } from '@fluentui/tokens'; +import { ColorPaletteAnchor } from '@fluentui/tokens'; +import { ColorPaletteBeige } from '@fluentui/tokens'; +import { ColorPaletteBerry } from '@fluentui/tokens'; +import { ColorPaletteBlue } from '@fluentui/tokens'; +import { ColorPaletteBrass } from '@fluentui/tokens'; +import { ColorPaletteBrown } from '@fluentui/tokens'; +import { ColorPaletteCornflower } from '@fluentui/tokens'; +import { ColorPaletteCranberry } from '@fluentui/tokens'; +import { ColorPaletteDarkGreen } from '@fluentui/tokens'; +import { ColorPaletteDarkOrange } from '@fluentui/tokens'; +import { ColorPaletteDarkRed } from '@fluentui/tokens'; +import { ColorPaletteForest } from '@fluentui/tokens'; +import { ColorPaletteGold } from '@fluentui/tokens'; +import { ColorPaletteGrape } from '@fluentui/tokens'; +import { ColorPaletteGreen } from '@fluentui/tokens'; +import { ColorPaletteLavender } from '@fluentui/tokens'; +import { ColorPaletteLightGreen } from '@fluentui/tokens'; +import { ColorPaletteLightTeal } from '@fluentui/tokens'; +import { ColorPaletteLilac } from '@fluentui/tokens'; +import { ColorPaletteMagenta } from '@fluentui/tokens'; +import { ColorPaletteMarigold } from '@fluentui/tokens'; +import { ColorPaletteMink } from '@fluentui/tokens'; +import { ColorPaletteNavy } from '@fluentui/tokens'; +import { ColorPalettePeach } from '@fluentui/tokens'; +import { ColorPalettePink } from '@fluentui/tokens'; +import { ColorPalettePlatinum } from '@fluentui/tokens'; +import { ColorPalettePlum } from '@fluentui/tokens'; +import { ColorPalettePumpkin } from '@fluentui/tokens'; +import { ColorPalettePurple } from '@fluentui/tokens'; +import { ColorPaletteRed } from '@fluentui/tokens'; +import { ColorPaletteRoyalBlue } from '@fluentui/tokens'; +import { ColorPaletteSeafoam } from '@fluentui/tokens'; +import { ColorPaletteSteel } from '@fluentui/tokens'; +import { ColorPaletteTeal } from '@fluentui/tokens'; +import { ColorPaletteTokens } from '@fluentui/tokens'; +import { ColorPaletteYellow } from '@fluentui/tokens'; +import { ColorTokens } from '@fluentui/tokens'; +import { createDarkTheme } from '@fluentui/tokens'; +import { createHighContrastTheme } from '@fluentui/tokens'; +import { createLightTheme } from '@fluentui/tokens'; +import { createTeamsDarkTheme } from '@fluentui/tokens'; +import { CurveTokens } from '@fluentui/tokens'; +import { DurationTokens } from '@fluentui/tokens'; +import { FontFamilyTokens } from '@fluentui/tokens'; +import { FontSizeTokens } from '@fluentui/tokens'; +import { FontWeightTokens } from '@fluentui/tokens'; +import { HorizontalSpacingTokens } from '@fluentui/tokens'; +import { LineHeightTokens } from '@fluentui/tokens'; +import { PartialTheme } from '@fluentui/tokens'; +import { ShadowBrandTokens } from '@fluentui/tokens'; +import { ShadowTokens } from '@fluentui/tokens'; +import { SpacingTokens } from '@fluentui/tokens'; +import { StrokeWidthTokens } from '@fluentui/tokens'; +import { teamsDarkTheme } from '@fluentui/tokens'; +import { teamsHighContrastTheme } from '@fluentui/tokens'; +import { teamsLightTheme } from '@fluentui/tokens'; +import { Theme } from '@fluentui/tokens'; +import { themeToTokensObject } from '@fluentui/tokens'; +import { tokens } from '@fluentui/tokens'; +import { TypographyStyle } from '@fluentui/tokens'; +import { TypographyStyles } from '@fluentui/tokens'; +import { typographyStyles } from '@fluentui/tokens'; +import { VerticalSpacingTokens } from '@fluentui/tokens'; +import { webDarkTheme } from '@fluentui/tokens'; +import { webLightTheme } from '@fluentui/tokens'; -// @public (undocumented) -export type Brands = 10 | 20 | 30 | 40 | 50 | 60 | 70 | 80 | 90 | 100 | 110 | 120 | 130 | 140 | 150 | 160; +export { BorderRadiusTokens } -// @public (undocumented) -export type BrandVariants = Record; +export { Brands } -// @public (undocumented) -export type ColorPaletteAnchor = 'colorPaletteAnchorBackground2' | 'colorPaletteAnchorForeground2' | 'colorPaletteAnchorBorderActive'; +export { BrandVariants } -// @public (undocumented) -export type ColorPaletteBeige = 'colorPaletteBeigeBackground2' | 'colorPaletteBeigeForeground2' | 'colorPaletteBeigeBorderActive'; +export { ColorPaletteAnchor } -// @public (undocumented) -export type ColorPaletteBerry = 'colorPaletteBerryBackground1' | 'colorPaletteBerryBackground2' | 'colorPaletteBerryBackground3' | 'colorPaletteBerryForeground1' | 'colorPaletteBerryForeground2' | 'colorPaletteBerryForeground3' | 'colorPaletteBerryBorderActive' | 'colorPaletteBerryBorder1' | 'colorPaletteBerryBorder2'; +export { ColorPaletteBeige } -// @public (undocumented) -export type ColorPaletteBlue = 'colorPaletteBlueBackground2' | 'colorPaletteBlueForeground2' | 'colorPaletteBlueBorderActive'; +export { ColorPaletteBerry } -// @public (undocumented) -export type ColorPaletteBrass = 'colorPaletteBrassBackground2' | 'colorPaletteBrassForeground2' | 'colorPaletteBrassBorderActive'; +export { ColorPaletteBlue } -// @public (undocumented) -export type ColorPaletteBrown = 'colorPaletteBrownBackground2' | 'colorPaletteBrownForeground2' | 'colorPaletteBrownBorderActive'; +export { ColorPaletteBrass } -// @public (undocumented) -export type ColorPaletteCornflower = 'colorPaletteCornflowerBackground2' | 'colorPaletteCornflowerForeground2' | 'colorPaletteCornflowerBorderActive'; +export { ColorPaletteBrown } -// @public (undocumented) -export type ColorPaletteCranberry = 'colorPaletteCranberryBackground2' | 'colorPaletteCranberryForeground2' | 'colorPaletteCranberryBorderActive'; +export { ColorPaletteCornflower } -// @public (undocumented) -export type ColorPaletteDarkGreen = 'colorPaletteDarkGreenBackground2' | 'colorPaletteDarkGreenForeground2' | 'colorPaletteDarkGreenBorderActive'; +export { ColorPaletteCranberry } -// @public (undocumented) -export type ColorPaletteDarkOrange = 'colorPaletteDarkOrangeBackground1' | 'colorPaletteDarkOrangeBackground2' | 'colorPaletteDarkOrangeBackground3' | 'colorPaletteDarkOrangeForeground1' | 'colorPaletteDarkOrangeForeground2' | 'colorPaletteDarkOrangeForeground3' | 'colorPaletteDarkOrangeBorderActive' | 'colorPaletteDarkOrangeBorder1' | 'colorPaletteDarkOrangeBorder2'; +export { ColorPaletteDarkGreen } -// @public (undocumented) -export type ColorPaletteDarkRed = 'colorPaletteDarkRedBackground2' | 'colorPaletteDarkRedForeground2' | 'colorPaletteDarkRedBorderActive'; +export { ColorPaletteDarkOrange } -// @public (undocumented) -export type ColorPaletteForest = 'colorPaletteForestBackground2' | 'colorPaletteForestForeground2' | 'colorPaletteForestBorderActive'; +export { ColorPaletteDarkRed } -// @public (undocumented) -export type ColorPaletteGold = 'colorPaletteGoldBackground2' | 'colorPaletteGoldForeground2' | 'colorPaletteGoldBorderActive'; +export { ColorPaletteForest } -// @public (undocumented) -export type ColorPaletteGrape = 'colorPaletteGrapeBackground2' | 'colorPaletteGrapeForeground2' | 'colorPaletteGrapeBorderActive'; +export { ColorPaletteGold } -// @public (undocumented) -export type ColorPaletteGreen = 'colorPaletteGreenBackground1' | 'colorPaletteGreenBackground2' | 'colorPaletteGreenBackground3' | 'colorPaletteGreenForeground1' | 'colorPaletteGreenForeground2' | 'colorPaletteGreenForeground3' | 'colorPaletteGreenForegroundInverted' | 'colorPaletteGreenBorderActive' | 'colorPaletteGreenBorder1' | 'colorPaletteGreenBorder2'; - -// @public (undocumented) -export type ColorPaletteLavender = 'colorPaletteLavenderBackground2' | 'colorPaletteLavenderForeground2' | 'colorPaletteLavenderBorderActive'; - -// @public (undocumented) -export type ColorPaletteLightGreen = 'colorPaletteLightGreenBackground1' | 'colorPaletteLightGreenBackground2' | 'colorPaletteLightGreenBackground3' | 'colorPaletteLightGreenForeground1' | 'colorPaletteLightGreenForeground2' | 'colorPaletteLightGreenForeground3' | 'colorPaletteLightGreenBorderActive' | 'colorPaletteLightGreenBorder1' | 'colorPaletteLightGreenBorder2'; - -// @public (undocumented) -export type ColorPaletteLightTeal = 'colorPaletteLightTealBackground2' | 'colorPaletteLightTealForeground2' | 'colorPaletteLightTealBorderActive'; - -// @public (undocumented) -export type ColorPaletteLilac = 'colorPaletteLilacBackground2' | 'colorPaletteLilacForeground2' | 'colorPaletteLilacBorderActive'; - -// @public (undocumented) -export type ColorPaletteMagenta = 'colorPaletteMagentaBackground2' | 'colorPaletteMagentaForeground2' | 'colorPaletteMagentaBorderActive'; - -// @public (undocumented) -export type ColorPaletteMarigold = 'colorPaletteMarigoldBackground1' | 'colorPaletteMarigoldBackground2' | 'colorPaletteMarigoldBackground3' | 'colorPaletteMarigoldForeground1' | 'colorPaletteMarigoldForeground2' | 'colorPaletteMarigoldForeground3' | 'colorPaletteMarigoldBorderActive' | 'colorPaletteMarigoldBorder1' | 'colorPaletteMarigoldBorder2'; - -// @public (undocumented) -export type ColorPaletteMink = 'colorPaletteMinkBackground2' | 'colorPaletteMinkForeground2' | 'colorPaletteMinkBorderActive'; - -// @public (undocumented) -export type ColorPaletteNavy = 'colorPaletteNavyBackground2' | 'colorPaletteNavyForeground2' | 'colorPaletteNavyBorderActive'; - -// @public (undocumented) -export type ColorPalettePeach = 'colorPalettePeachBackground2' | 'colorPalettePeachForeground2' | 'colorPalettePeachBorderActive'; - -// @public (undocumented) -export type ColorPalettePink = 'colorPalettePinkBackground2' | 'colorPalettePinkForeground2' | 'colorPalettePinkBorderActive'; - -// @public (undocumented) -export type ColorPalettePlatinum = 'colorPalettePlatinumBackground2' | 'colorPalettePlatinumForeground2' | 'colorPalettePlatinumBorderActive'; - -// @public (undocumented) -export type ColorPalettePlum = 'colorPalettePlumBackground2' | 'colorPalettePlumForeground2' | 'colorPalettePlumBorderActive'; - -// @public (undocumented) -export type ColorPalettePumpkin = 'colorPalettePumpkinBackground2' | 'colorPalettePumpkinForeground2' | 'colorPalettePumpkinBorderActive'; - -// @public (undocumented) -export type ColorPalettePurple = 'colorPalettePurpleBackground2' | 'colorPalettePurpleForeground2' | 'colorPalettePurpleBorderActive'; - -// @public (undocumented) -export type ColorPaletteRed = 'colorPaletteRedBackground1' | 'colorPaletteRedBackground2' | 'colorPaletteRedBackground3' | 'colorPaletteRedForeground1' | 'colorPaletteRedForeground2' | 'colorPaletteRedForeground3' | 'colorPaletteRedForegroundInverted' | 'colorPaletteRedBorderActive' | 'colorPaletteRedBorder1' | 'colorPaletteRedBorder2'; - -// @public (undocumented) -export type ColorPaletteRoyalBlue = 'colorPaletteRoyalBlueBackground2' | 'colorPaletteRoyalBlueForeground2' | 'colorPaletteRoyalBlueBorderActive'; - -// @public (undocumented) -export type ColorPaletteSeafoam = 'colorPaletteSeafoamBackground2' | 'colorPaletteSeafoamForeground2' | 'colorPaletteSeafoamBorderActive'; - -// @public (undocumented) -export type ColorPaletteSteel = 'colorPaletteSteelBackground2' | 'colorPaletteSteelForeground2' | 'colorPaletteSteelBorderActive'; - -// @public (undocumented) -export type ColorPaletteTeal = 'colorPaletteTealBackground2' | 'colorPaletteTealForeground2' | 'colorPaletteTealBorderActive'; - -// @public (undocumented) -export type ColorPaletteTokens = StatusColorPaletteTokens & PersonaColorPaletteTokens; - -// @public (undocumented) -export type ColorPaletteYellow = 'colorPaletteYellowBackground1' | 'colorPaletteYellowBackground2' | 'colorPaletteYellowBackground3' | 'colorPaletteYellowForeground1' | 'colorPaletteYellowForeground2' | 'colorPaletteYellowForeground3' | 'colorPaletteYellowForegroundInverted' | 'colorPaletteYellowBorderActive' | 'colorPaletteYellowBorder1' | 'colorPaletteYellowBorder2'; - -// @public -export type ColorTokens = { - colorNeutralForeground1: string; - colorNeutralForeground1Hover: string; - colorNeutralForeground1Pressed: string; - colorNeutralForeground1Selected: string; - colorNeutralForeground2: string; - colorNeutralForeground2Hover: string; - colorNeutralForeground2Pressed: string; - colorNeutralForeground2Selected: string; - colorNeutralForeground2BrandHover: string; - colorNeutralForeground2BrandPressed: string; - colorNeutralForeground2BrandSelected: string; - colorNeutralForeground3: string; - colorNeutralForeground3Hover: string; - colorNeutralForeground3Pressed: string; - colorNeutralForeground3Selected: string; - colorNeutralForeground3BrandHover: string; - colorNeutralForeground3BrandPressed: string; - colorNeutralForeground3BrandSelected: string; - colorNeutralForeground4: string; - colorNeutralForegroundDisabled: string; - colorNeutralForegroundInvertedDisabled: string; - colorBrandForegroundLink: string; - colorBrandForegroundLinkHover: string; - colorBrandForegroundLinkPressed: string; - colorBrandForegroundLinkSelected: string; - colorNeutralForeground2Link: string; - colorNeutralForeground2LinkHover: string; - colorNeutralForeground2LinkPressed: string; - colorNeutralForeground2LinkSelected: string; - colorCompoundBrandForeground1: string; - colorCompoundBrandForeground1Hover: string; - colorCompoundBrandForeground1Pressed: string; - colorBrandForeground1: string; - colorBrandForeground2: string; - colorNeutralForeground1Static: string; - colorNeutralForegroundInverted: string; - colorNeutralForegroundInvertedHover: string; - colorNeutralForegroundInvertedPressed: string; - colorNeutralForegroundInvertedSelected: string; - colorNeutralForegroundInverted2: string; - colorNeutralForegroundOnBrand: string; - colorNeutralForegroundStaticInverted: string; - colorNeutralForegroundInvertedLink: string; - colorNeutralForegroundInvertedLinkHover: string; - colorNeutralForegroundInvertedLinkPressed: string; - colorNeutralForegroundInvertedLinkSelected: string; - colorBrandForegroundInverted: string; - colorBrandForegroundInvertedHover: string; - colorBrandForegroundInvertedPressed: string; - colorBrandForegroundOnLight: string; - colorBrandForegroundOnLightHover: string; - colorBrandForegroundOnLightPressed: string; - colorBrandForegroundOnLightSelected: string; - colorNeutralBackground1: string; - colorNeutralBackground1Hover: string; - colorNeutralBackground1Pressed: string; - colorNeutralBackground1Selected: string; - colorNeutralBackground2: string; - colorNeutralBackground2Hover: string; - colorNeutralBackground2Pressed: string; - colorNeutralBackground2Selected: string; - colorNeutralBackground3: string; - colorNeutralBackground3Hover: string; - colorNeutralBackground3Pressed: string; - colorNeutralBackground3Selected: string; - colorNeutralBackground4: string; - colorNeutralBackground4Hover: string; - colorNeutralBackground4Pressed: string; - colorNeutralBackground4Selected: string; - colorNeutralBackground5: string; - colorNeutralBackground5Hover: string; - colorNeutralBackground5Pressed: string; - colorNeutralBackground5Selected: string; - colorNeutralBackground6: string; - colorNeutralBackgroundInverted: string; - colorNeutralBackgroundStatic: string; - colorNeutralBackgroundAlpha: string; - colorNeutralBackgroundAlpha2: string; - colorSubtleBackground: string; - colorSubtleBackgroundHover: string; - colorSubtleBackgroundPressed: string; - colorSubtleBackgroundSelected: string; - colorSubtleBackgroundLightAlphaHover: string; - colorSubtleBackgroundLightAlphaPressed: string; - colorSubtleBackgroundLightAlphaSelected: string; - colorSubtleBackgroundInverted: string; - colorSubtleBackgroundInvertedHover: string; - colorSubtleBackgroundInvertedPressed: string; - colorSubtleBackgroundInvertedSelected: string; - colorTransparentBackground: string; - colorTransparentBackgroundHover: string; - colorTransparentBackgroundPressed: string; - colorTransparentBackgroundSelected: string; - colorNeutralBackgroundDisabled: string; - colorNeutralBackgroundInvertedDisabled: string; - colorNeutralStencil1: string; - colorNeutralStencil2: string; - colorNeutralStencil1Alpha: string; - colorNeutralStencil2Alpha: string; - colorBackgroundOverlay: string; - colorScrollbarOverlay: string; - colorBrandBackground: string; - colorBrandBackgroundHover: string; - colorBrandBackgroundPressed: string; - colorBrandBackgroundSelected: string; - colorCompoundBrandBackground: string; - colorCompoundBrandBackgroundHover: string; - colorCompoundBrandBackgroundPressed: string; - colorBrandBackgroundStatic: string; - colorBrandBackground2: string; - colorBrandBackgroundInverted: string; - colorBrandBackgroundInvertedHover: string; - colorBrandBackgroundInvertedPressed: string; - colorBrandBackgroundInvertedSelected: string; - colorNeutralStrokeAccessible: string; - colorNeutralStrokeAccessibleHover: string; - colorNeutralStrokeAccessiblePressed: string; - colorNeutralStrokeAccessibleSelected: string; - colorNeutralStroke1: string; - colorNeutralStroke1Hover: string; - colorNeutralStroke1Pressed: string; - colorNeutralStroke1Selected: string; - colorNeutralStroke2: string; - colorNeutralStroke3: string; - colorNeutralStrokeOnBrand: string; - colorNeutralStrokeOnBrand2: string; - colorNeutralStrokeOnBrand2Hover: string; - colorNeutralStrokeOnBrand2Pressed: string; - colorNeutralStrokeOnBrand2Selected: string; - colorBrandStroke1: string; - colorBrandStroke2: string; - colorCompoundBrandStroke: string; - colorCompoundBrandStrokeHover: string; - colorCompoundBrandStrokePressed: string; - colorNeutralStrokeDisabled: string; - colorNeutralStrokeInvertedDisabled: string; - colorTransparentStroke: string; - colorTransparentStrokeInteractive: string; - colorTransparentStrokeDisabled: string; - colorNeutralStrokeAlpha: string; - colorStrokeFocus1: string; - colorStrokeFocus2: string; - colorNeutralShadowAmbient: string; - colorNeutralShadowKey: string; - colorNeutralShadowAmbientLighter: string; - colorNeutralShadowKeyLighter: string; - colorNeutralShadowAmbientDarker: string; - colorNeutralShadowKeyDarker: string; - colorBrandShadowAmbient: string; - colorBrandShadowKey: string; -}; - -// @public (undocumented) -export const createDarkTheme: (brand: BrandVariants) => Theme; - -// @public (undocumented) -export const createHighContrastTheme: () => Theme; - -// @public (undocumented) -export const createLightTheme: (brand: BrandVariants) => Theme; - -// @public (undocumented) -export const createTeamsDarkTheme: (brand: BrandVariants) => Theme; - -// @public (undocumented) -export type CurveTokens = { - curveAccelerateMax: string; - curveAccelerateMid: string; - curveAccelerateMin: string; - curveDecelerateMax: string; - curveDecelerateMid: string; - curveDecelerateMin: string; - curveEasyEaseMax: string; - curveEasyEase: string; - curveLinear: string; -}; - -// @public (undocumented) -export type DurationTokens = { - durationUltraFast: string; - durationFaster: string; - durationFast: string; - durationNormal: string; - durationSlow: string; - durationSlower: string; - durationUltraSlow: string; -}; - -// @public (undocumented) -export type FontFamilyTokens = { - fontFamilyBase: string; - fontFamilyMonospace: string; - fontFamilyNumeric: string; -}; - -// @public (undocumented) -export type FontSizeTokens = { - fontSizeBase100: string; - fontSizeBase200: string; - fontSizeBase300: string; - fontSizeBase400: string; - fontSizeBase500: string; - fontSizeBase600: string; - fontSizeHero700: string; - fontSizeHero800: string; - fontSizeHero900: string; - fontSizeHero1000: string; -}; - -// @public (undocumented) -export type FontWeightTokens = { - fontWeightRegular: number; - fontWeightMedium: number; - fontWeightSemibold: number; - fontWeightBold: number; -}; - -// @public (undocumented) -export type HorizontalSpacingTokens = { - spacingHorizontalNone: string; - spacingHorizontalXXS: string; - spacingHorizontalXS: string; - spacingHorizontalSNudge: string; - spacingHorizontalS: string; - spacingHorizontalMNudge: string; - spacingHorizontalM: string; - spacingHorizontalL: string; - spacingHorizontalXL: string; - spacingHorizontalXXL: string; - spacingHorizontalXXXL: string; -}; - -// @public (undocumented) -export type LineHeightTokens = { - lineHeightBase100: string; - lineHeightBase200: string; - lineHeightBase300: string; - lineHeightBase400: string; - lineHeightBase500: string; - lineHeightBase600: string; - lineHeightHero700: string; - lineHeightHero800: string; - lineHeightHero900: string; - lineHeightHero1000: string; -}; - -// @public (undocumented) -export type PartialTheme = Partial; - -// @public (undocumented) -export type ShadowBrandTokens = { - shadow2Brand: string; - shadow4Brand: string; - shadow8Brand: string; - shadow16Brand: string; - shadow28Brand: string; - shadow64Brand: string; -}; - -// @public -export type ShadowTokens = { - shadow2: string; - shadow4: string; - shadow8: string; - shadow16: string; - shadow28: string; - shadow64: string; -}; - -// @public (undocumented) -export type SpacingTokens = { - none: string; - xxs: string; - xs: string; - sNudge: string; - s: string; - mNudge: string; - m: string; - l: string; - xl: string; - xxl: string; - xxxl: string; -}; - -// @public (undocumented) -export type StrokeWidthTokens = { - strokeWidthThin: string; - strokeWidthThick: string; - strokeWidthThicker: string; - strokeWidthThickest: string; -}; - -// @public (undocumented) -export const teamsDarkTheme: Theme; - -// @public (undocumented) -export const teamsHighContrastTheme: Theme; - -// @public (undocumented) -export const teamsLightTheme: Theme; - -// @public (undocumented) -export type Theme = FontSizeTokens & LineHeightTokens & BorderRadiusTokens & StrokeWidthTokens & HorizontalSpacingTokens & VerticalSpacingTokens & DurationTokens & CurveTokens & ShadowTokens & ShadowBrandTokens & FontFamilyTokens & FontWeightTokens & ColorPaletteTokens & ColorTokens; - -// @public -export function themeToTokensObject(theme: TTheme): Record; - -// @public (undocumented) -export const tokens: Record; - -// @public (undocumented) -export type TypographyStyle = { - fontFamily: string; - fontSize: string; - fontWeight: string; - lineHeight: string; -}; - -// @public (undocumented) -export type TypographyStyles = { - body1: TypographyStyle; - body1Strong: TypographyStyle; - body1Stronger: TypographyStyle; - body2: TypographyStyle; - caption1: TypographyStyle; - caption1Strong: TypographyStyle; - caption1Stronger: TypographyStyle; - caption2: TypographyStyle; - caption2Strong: TypographyStyle; - subtitle1: TypographyStyle; - subtitle2: TypographyStyle; - subtitle2Stronger: TypographyStyle; - title1: TypographyStyle; - title2: TypographyStyle; - title3: TypographyStyle; - largeTitle: TypographyStyle; - display: TypographyStyle; -}; - -// @public -export const typographyStyles: TypographyStyles; - -// @public (undocumented) -export type VerticalSpacingTokens = { - spacingVerticalNone: string; - spacingVerticalXXS: string; - spacingVerticalXS: string; - spacingVerticalSNudge: string; - spacingVerticalS: string; - spacingVerticalMNudge: string; - spacingVerticalM: string; - spacingVerticalL: string; - spacingVerticalXL: string; - spacingVerticalXXL: string; - spacingVerticalXXXL: string; -}; - -// @public (undocumented) -export const webDarkTheme: Theme; - -// @public (undocumented) -export const webLightTheme: Theme; +export { ColorPaletteGrape } + +export { ColorPaletteGreen } + +export { ColorPaletteLavender } + +export { ColorPaletteLightGreen } + +export { ColorPaletteLightTeal } + +export { ColorPaletteLilac } + +export { ColorPaletteMagenta } + +export { ColorPaletteMarigold } + +export { ColorPaletteMink } + +export { ColorPaletteNavy } + +export { ColorPalettePeach } + +export { ColorPalettePink } + +export { ColorPalettePlatinum } + +export { ColorPalettePlum } + +export { ColorPalettePumpkin } + +export { ColorPalettePurple } + +export { ColorPaletteRed } + +export { ColorPaletteRoyalBlue } + +export { ColorPaletteSeafoam } + +export { ColorPaletteSteel } + +export { ColorPaletteTeal } + +export { ColorPaletteTokens } + +export { ColorPaletteYellow } + +export { ColorTokens } + +export { createDarkTheme } + +export { createHighContrastTheme } + +export { createLightTheme } + +export { createTeamsDarkTheme } + +export { CurveTokens } + +export { DurationTokens } + +export { FontFamilyTokens } + +export { FontSizeTokens } + +export { FontWeightTokens } + +export { HorizontalSpacingTokens } + +export { LineHeightTokens } + +export { PartialTheme } + +export { ShadowBrandTokens } + +export { ShadowTokens } + +export { SpacingTokens } + +export { StrokeWidthTokens } + +export { teamsDarkTheme } + +export { teamsHighContrastTheme } + +export { teamsLightTheme } + +export { Theme } + +export { themeToTokensObject } + +export { tokens } + +export { TypographyStyle } + +export { TypographyStyles } + +export { typographyStyles } + +export { VerticalSpacingTokens } + +export { webDarkTheme } + +export { webLightTheme } // (No @packageDocumentation comment for this package) From 74a84786924df6d7ef66483f29fb2c1315087205 Mon Sep 17 00:00:00 2001 From: Esteban Munoz Date: Tue, 30 May 2023 12:50:01 -0700 Subject: [PATCH 4/4] update dependency --- packages/react-components/react-colorpicker-compat/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/react-components/react-colorpicker-compat/package.json b/packages/react-components/react-colorpicker-compat/package.json index 994b7fbbed58f..a2fa5da8cf415 100644 --- a/packages/react-components/react-colorpicker-compat/package.json +++ b/packages/react-components/react-colorpicker-compat/package.json @@ -34,7 +34,7 @@ "@fluentui/react-jsx-runtime": "9.0.0-alpha.5", "@fluentui/react-theme": "^9.1.8", "@fluentui/react-utilities": "^9.9.1", - "@griffel/react": "^1.5.2", + "@griffel/react": "^1.5.7", "@swc/helpers": "^0.4.14" }, "peerDependencies": {