Skip to content
This repository was archived by the owner on Mar 4, 2020. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# https://help.github.com/articles/about-codeowners/

# Default owners
* @davezuko @kuzhelov @layershifter @levithomason @miroslavstastny @mnajdova
* @davezuko @kuzhelov @layershifter @levithomason @miroslavstastny @mnajdova @kenotron @jdhuntington @ecraig12345 @dzearing @jasongore
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can remove this file entirely. It is outdated/incorrect and we don't have areas of ownership to tie to globs.

12 changes: 6 additions & 6 deletions .github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -114,21 +114,21 @@ We are using [Lerna][14] to manage our packages and [Yarn Workspaces][15] to lin

You should to run `lerna create` command to create a new package

- we are using `@stardust-ui` namespace on NPM to publish our packages
- we are using `@fluentui` namespace on NPM to publish our packages
- the directory name should not contain any namespace prefix and can be prefixed with the library name if the
implementation is not framework agnostic
- please provide a meaningful description to a package in the matched field
- use `https://github.com/stardust-ui/react/tree/master/packages/__DIRECTORY_NAME__` as `homepage`
- our packages are currently published with MIT license, please follow it until you will have specific legal requirements

```sh
lerna create @stardust-ui/react-proptypes react-proptypes
lerna create @fluentui/react-proptypes react-proptypes
```

##### Example input
```
lerna notice cli v3.11.1
package name: (@stardust-ui/react-proptypes)
package name: (@fluentui/react-proptypes)
version: (0.21.1)
description: Set of custom reusable PropTypes for React components.
keywords:
Expand Down Expand Up @@ -194,7 +194,7 @@ If your package uses Jest for unit tests, please also create a new `jest.config.

```js
module.exports = {
...require('@stardust-ui/internal-tooling/jest'),
...require('@fluentui/internal-tooling/jest'),
name: '__DIRECTORY_NAME__',
}
```
Expand All @@ -211,10 +211,10 @@ yarn syncpack format
### Add a new dependency

Please always use [`lerna add`][16] to manage all dependencies including internal packages. The command bellow will add
`@stardust-ui/react-proptypes` as production dependency to the `@stardust-ui/react` package.
`@fluentui/react-proptypes` as production dependency to the `@fluentui/react` package.

```yarn
lerna add @stardust-ui/react-proptypes packages/react
lerna add @fluentui/react-proptypes packages/react
```

[1]: https://nodejs.org/
Expand Down
4 changes: 2 additions & 2 deletions .github/release-a-package.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# How to release a new library version

This documentation is intended for core Stardust contributors and describes `@stardust-ui/react` NPM package release process.
This documentation is intended for core Stardust contributors and describes `@fluentui/react` NPM package release process.

## Prerequisities

Expand Down Expand Up @@ -30,5 +30,5 @@ There will be a battery of tests run prior to release.
The release command in step 4 will handle tagging and releasing flow entirely. Just wait for it to finish.

## Verification after release
1. Verify NPM package has been released: https://www.npmjs.com/package/@stardust-ui/react
1. Verify NPM package has been released: https://www.npmjs.com/package/@fluentui/react
2. Verify new docsite version has been published: https://stardust-ui.github.io/react/
2 changes: 1 addition & 1 deletion .github/test-a-feature.md
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ This default test only checks the rendering for the component in its initial sta
#### Example for a test file:

```tsx
import { Dropdown } from '@stardust-ui/react'
import { Dropdown } from '@fluentui/react'

const config: ScreenerTestsConfig = {
themes: ['teams', 'teamsDark', 'teamsHighContrast'],
Expand Down
2 changes: 1 addition & 1 deletion .gulp.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"flags": {
"require": "@stardust-ui/internal-tooling/babel/register"
"require": "@fluentui/internal-tooling/babel/register"
}
}
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm
### BREAKING CHANGES
- Control Tree `activeItemIds` through `expanded` TreeItem prop @silviuavram ([#2061](https://github.com/stardust-ui/react/pull/2061))

### BREAKING CHANGES
- Rename all @stardust-ui scope to @fluentui ([#2117](https://github.com/microsoft/fluent-ui-react/pull/2117))

### Fixes
- Update Silver color scheme, changing `backgroundHover` and `backgroundPressed` for high-contrast theme @pompomon ([#2078](https://github.com/microsoft/fluent-ui-react/pull/2078))
- Updating the `attachment` component styles to match Teams theme @notandrew ([#2012](https://github.com/stardust-ui/react/pull/2012))
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@
<a href="https://david-dm.org/stardust-ui/react">
<img alt="David" src="https://img.shields.io/david/stardust-ui/react.svg?style=flat-square" />
</a>
<a href="https://www.npmjs.com/package/@stardust-ui/react">
<img alt="npm" src="https://img.shields.io/npm/v/@stardust-ui/react.svg?style=flat-square" />
<a href="https://www.npmjs.com/package/@fluentui/react">
<img alt="npm" src="https://img.shields.io/npm/v/@fluentui/react.svg?style=flat-square" />
</a>
</p>

Expand Down
2 changes: 1 addition & 1 deletion babel.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module.exports = api => ({
...require('@stardust-ui/internal-tooling/babel')(api),
...require('@fluentui/internal-tooling/babel')(api),
babelrcRoots: ['./packages/*'],
})
Original file line number Diff line number Diff line change
Expand Up @@ -87,5 +87,5 @@ export default [
]

export const isIgnored = (packageId: string): boolean => {
return packageId.startsWith('@stardust-ui/')
return packageId.startsWith('@fluentui/')
}
2 changes: 1 addition & 1 deletion build/dangerjs/detectNonApprovedDependencies/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const { paths } = config

/**
* This check uses the following logic:
* - request runtime dependencies of @stardust-ui/react package (by crawling the code, starting from index file),
* - request runtime dependencies of @fluentui/react package (by crawling the code, starting from index file),
* - for each of the runtime dependencies:
* - get corresponding set of version restrictions (by analyzing related package.json files),
* - get list of approved dependency's versions,
Expand Down
10 changes: 5 additions & 5 deletions build/gulp/tasks/test-projects.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ const packStardustPackages = async (logger: Function): Promise<PackedPackages> =
const stardustPackages = lernaAliases({ sourceDirectory: false })

// We don't want to pack a package with our dev tools
delete stardustPackages['@stardust-ui/eslint-plugin']
delete stardustPackages['@stardust-ui/internal-tooling']
delete stardustPackages['@fluentui/eslint-plugin']
delete stardustPackages['@fluentui/internal-tooling']

await Promise.all(
Object.keys(stardustPackages).map(async (packageName: string) => {
Expand Down Expand Up @@ -149,7 +149,7 @@ task('test:projects:cra-ts', async () => {

const packedPackages = await packStardustPackages(logger)
await addResolutionPathsForStardustPackages(testAppPath(), packedPackages)
await runInTestApp(`yarn add ${packedPackages['@stardust-ui/react']}`)
await runInTestApp(`yarn add ${packedPackages['@fluentui/react']}`)
logger(`✔️Stardust UI packages were added to dependencies`)

logger("STEP 3. Reference Stardust components in test project's App.tsx")
Expand Down Expand Up @@ -184,7 +184,7 @@ task('test:projects:rollup', async () => {

const packedPackages = await packStardustPackages(logger)
await addResolutionPathsForStardustPackages(tmpDirectory, packedPackages)
await runIn(tmpDirectory)(`yarn add ${packedPackages['@stardust-ui/react']}`)
await runIn(tmpDirectory)(`yarn add ${packedPackages['@fluentui/react']}`)
logger(`✔️Stardust UI packages were added to dependencies`)

fs.copyFileSync(scaffoldPath('app.js'), path.resolve(tmpDirectory, 'app.js'))
Expand Down Expand Up @@ -219,7 +219,7 @@ task('test:projects:typings', async () => {

const packedPackages = await packStardustPackages(logger)
await addResolutionPathsForStardustPackages(tmpDirectory, packedPackages)
await runIn(tmpDirectory)(`yarn add ${packedPackages['@stardust-ui/react']}`)
await runIn(tmpDirectory)(`yarn add ${packedPackages['@fluentui/react']}`)
logger(`✔️Stardust UI packages were added to dependencies`)

fs.mkdirSync(path.resolve(tmpDirectory, 'src'))
Expand Down
2 changes: 1 addition & 1 deletion build/gulp/tasks/test-projects/cra/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import {
Popup,
Provider,
themes,
} from '@stardust-ui/react'
} from '@fluentui/react'
import * as React from 'react'

class App extends React.Component {
Expand Down
2 changes: 1 addition & 1 deletion build/gulp/tasks/test-projects/rollup/app.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react'
import ReactDOM from 'react-dom'
import { Button, Provider, themes } from '@stardust-ui/react'
import { Button, Provider, themes } from '@fluentui/react'

ReactDOM.render(
React.createElement(
Expand Down
2 changes: 1 addition & 1 deletion build/gulp/tasks/test-projects/typings/index.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import * as Stardust from '@stardust-ui/react'
import * as Stardust from '@fluentui/react'
import * as React from 'react'

const App = () => (
Expand Down
2 changes: 1 addition & 1 deletion build/screener/screener.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require('@stardust-ui/internal-tooling/babel/register')
require('@fluentui/internal-tooling/babel/register')

const config = require('../../config').default
const { compilerOptions } = require('../../build/tsconfig.docs.json')
Expand Down
2 changes: 1 addition & 1 deletion build/tsconfig.common.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"lib": ["es2015", "dom"],
"baseUrl": "../",
"paths": {
"@stardust-ui/*": ["packages/*/src"]
"@fluentui/*": ["packages/*/src"]
},
"types": ["node", "jest"],
"typeRoots": ["../types", "../node_modules/@types"],
Expand Down
2 changes: 1 addition & 1 deletion build/tsconfig.docs.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"compilerOptions": {
"module": "esnext",
"paths": {
"@stardust-ui/*": ["packages/*/src"],
"@fluentui/*": ["packages/*/src"],
"docs/*": ["docs/*"],
"src/*": ["packages/react/src/*"],
"test/*": ["packages/react/test/*"]
Expand Down
4 changes: 2 additions & 2 deletions docs/src/app.tsx
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
import * as React from 'react'
import { hot } from 'react-hot-loader/root'
import { Provider, Debug, themes } from '@stardust-ui/react'
import { Provider, Debug, themes } from '@fluentui/react'

import { mergeThemes } from 'src/lib'
import { ThemeContext, ThemeContextData, themeContextDefaults } from './context/ThemeContext'
import Routes from './routes'
import { PerfDataProvider } from './components/ComponentDoc/PerfChart'

// Experimental dev-time accessibility attributes integrity validation.
import { setup } from '@stardust-ui/ability-attributes'
import { setup } from '@fluentui/ability-attributes'

// Temporarily disabling the validation for Screener.
if (process.env.NODE_ENV !== 'production' && !process.env.SCREENER) {
Expand Down
2 changes: 1 addition & 1 deletion docs/src/components/CategoryColorSchemes.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import {
Header,
HeaderProps,
ShorthandCollection,
} from '@stardust-ui/react'
} from '@fluentui/react'

import ColorBox from './ColorBox'

Expand Down
4 changes: 2 additions & 2 deletions docs/src/components/ColorBox.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import { CopyToClipboard } from '@stardust-ui/docs-components'
import { CopyToClipboard } from '@fluentui/docs-components'
import {
ComponentSlotStylesInput,
ComponentSlotStyle,
createComponent,
Icon,
ICSSInJSStyle,
} from '@stardust-ui/react'
} from '@fluentui/react'
import * as Color from 'color'
import * as _ from 'lodash'
import * as React from 'react'
Expand Down
2 changes: 1 addition & 1 deletion docs/src/components/ColorSchemes.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import {
Header,
HeaderProps,
ShorthandCollection,
} from '@stardust-ui/react'
} from '@fluentui/react'

import ColorBox from './ColorBox'

Expand Down
2 changes: 1 addition & 1 deletion docs/src/components/ColorVariants.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import * as _ from 'lodash'
import * as React from 'react'
import { createComponent, ComponentSlotStylesInput, ProviderConsumer } from '@stardust-ui/react'
import { createComponent, ComponentSlotStylesInput, ProviderConsumer } from '@fluentui/react'

import ColorBox from './ColorBox'

Expand Down
2 changes: 1 addition & 1 deletion docs/src/components/ComponentBestPractices.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {
ListItemProps,
Segment,
ShorthandCollection,
} from '@stardust-ui/react'
} from '@fluentui/react'
import { Extendable } from 'src/types'

export type ComponentBestPracticesProps = Extendable<{
Expand Down
2 changes: 1 addition & 1 deletion docs/src/components/ComponentDoc/BehaviorCard.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as React from 'react'
import { Divider, Segment, Text } from '@stardust-ui/react'
import { Divider, Segment, Text } from '@fluentui/react'
import * as _ from 'lodash'
import ComponentExampleTitle from './ComponentExample/ComponentExampleTitle'
import BehaviorDescription from './BehaviorDescription'
Expand Down
2 changes: 1 addition & 1 deletion docs/src/components/ComponentDoc/BehaviorDescription.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as React from 'react'
import { Loader } from '@stardust-ui/react/src'
import { Loader } from '@fluentui/react/src'

const AccessibilityDescription = React.lazy(() => import('./InlineMarkdown'))

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { createComponent, Icon, Text, Flex } from '@stardust-ui/react'
import { createComponent, Icon, Text, Flex } from '@fluentui/react'
import * as React from 'react'

interface LabelledButtonProps {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { CopyToClipboard } from '@stardust-ui/docs-components'
import { Menu, Provider, ThemeInput, menuAsToolbarBehavior } from '@stardust-ui/react'
import { CopyToClipboard } from '@fluentui/docs-components'
import { Menu, Provider, ThemeInput, menuAsToolbarBehavior } from '@fluentui/react'
import * as _ from 'lodash'
import * as React from 'react'
import { NavLink } from 'react-router-dom'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export const appTemplate = `import { SandboxApp } from "@stardust-ui/code-sandbox"
export const appTemplate = `import { SandboxApp } from "@fluentui/code-sandbox"
import * as React from "react";
import * as ReactDOM from "react-dom";

Expand Down
2 changes: 1 addition & 1 deletion docs/src/components/ComponentDoc/ComponentDoc.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import {
Grid,
Menu,
Box,
} from '@stardust-ui/react'
} from '@fluentui/react'

import { getFormattedHash } from 'docs/src/utils'
import ComponentDocLinks from './ComponentDocLinks'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import * as React from 'react'
import * as _ from 'lodash'
import { Flex, Loader, Text, Segment, Header } from '@stardust-ui/react'
import { Flex, Loader, Text, Segment, Header } from '@fluentui/react'
import { link } from './../../utils/helpers'
import { BehaviorInfo, ComponentInfo, BehaviorVariantionInfo } from 'docs/src/types'
import { BehaviorCard, exampleStyle, behaviorVariantDisplayName } from './BehaviorCard'
Expand Down
2 changes: 1 addition & 1 deletion docs/src/components/ComponentDoc/ComponentDocLinks.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import * as PropTypes from 'prop-types'
import * as React from 'react'
import { Flex, Icon } from '@stardust-ui/react'
import { Flex, Icon } from '@fluentui/react'
import { constants } from 'src/lib'

export default class ComponentDocLinks extends React.PureComponent<any, any> {
Expand Down
2 changes: 1 addition & 1 deletion docs/src/components/ComponentDoc/ComponentDocSee.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import * as _ from 'lodash'
import * as PropTypes from 'prop-types'
import * as React from 'react'
import { Link } from 'react-router-dom'
import { List, Header } from '@stardust-ui/react'
import { List, Header } from '@fluentui/react'

import { getComponentPathname, getInfoForSeeTags } from 'docs/src/utils'

Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import { knobComponents, KnobsSnippet } from '@stardust-ui/code-sandbox'
import { knobComponents, KnobsSnippet } from '@fluentui/code-sandbox'
import {
CopyToClipboard,
KnobInspector,
KnobProvider,
LogInspector,
} from '@stardust-ui/docs-components'
import { Flex, ICSSInJSStyle, Menu, Provider, Segment } from '@stardust-ui/react'
} from '@fluentui/docs-components'
import { Flex, ICSSInJSStyle, Menu, Provider, Segment } from '@fluentui/react'
import * as _ from 'lodash'
import * as React from 'react'
import { RouteComponentProps, withRouter } from 'react-router-dom'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ProviderContextPrepared } from '@stardust-ui/react'
import { ProviderContextPrepared } from '@fluentui/react'
import * as Color from 'color'
import * as _ from 'lodash'
import * as React from 'react'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as React from 'react'
import { Flex, Header, Text } from '@stardust-ui/react'
import { Flex, Header, Text } from '@fluentui/react'

const titleStyle = {
margin: 0,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Input, InputProps, Popup } from '@stardust-ui/react'
import { Input, InputProps, Popup } from '@fluentui/react'
import * as React from 'react'
import ComponentExampleColorPicker from 'docs/src/components/ComponentDoc/ComponentExample/ComponentExampleColorPicker'

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import {
Segment,
ProviderContextPrepared,
ThemeComponentVariablesPrepared,
} from '@stardust-ui/react'
import { callable } from '@stardust-ui/react-bindings'
} from '@fluentui/react'
import { callable } from '@fluentui/react-bindings'
import * as _ from 'lodash'
import * as React from 'react'
// @ts-ignore
Expand Down
2 changes: 1 addition & 1 deletion docs/src/components/ComponentDoc/ComponentExamples.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import * as PropTypes from 'prop-types'
import * as React from 'react'

import { exampleIndexContext, exampleSourcesContext } from 'docs/src/utils'
import { List, Segment } from '@stardust-ui/react'
import { List, Segment } from '@fluentui/react'
import { componentAPIs } from './ComponentSourceManager'

import ContributionPrompt from './ContributionPrompt'
Expand Down
Loading