You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/pages/blog/2019-developer-survey-results.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -281,7 +281,7 @@ Multiple options were allowed.
281
281
282
282
<imgsrc="/static/blog/2019-developer-survey-results/16.png"style="display: block; margin: 0auto;"alt="Pie chart: 54,3% for my company, 24.9% for a client, 15.2% as a side project, 5.6% more than one of these." />
283
283
284
-
### 17. Which JS framework are you using, if any?
284
+
### 17. Which JavaScript framework are you using, if any?
Copy file name to clipboardExpand all lines: docs/pages/blog/2019.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -64,7 +64,7 @@ Some of the key factors:
64
64
- We have fixed a significant number of [accessibility issues](https://github.com/mui/material-ui/issues?q=is%3Aissue+label%3Aaccessibility+is%3Aclosed).
65
65
- We have introduced global class names.
66
66
- We have migrated the whole codebase to hooks.
67
-
- We migrated all the demos to TypeScript (while also offering transpiled JS demos).
67
+
- We migrated all the demos to TypeScript (while also offering transpiled JavaScript demos).
68
68
- We introduced [native tree-shaking](/material-ui/guides/minimizing-bundle-size/) support.
69
69
- We introduced [built-in localization](/material-ui/guides/localization/).
70
70
- We removed a good number of external dependencies and increased the `features/bundle size` density.
Copy file name to clipboardExpand all lines: docs/pages/blog/making-customizable-components.md
+2-2
Original file line number
Diff line number
Diff line change
@@ -59,10 +59,10 @@ you can play around with it in [CodeSandbox](https://codesandbox.io/p/sandbox/fa
59
59
}
60
60
```
61
61
62
-
### Let JS generate the CSS
62
+
### Let JavaScript generate the CSS
63
63
64
64
Maybe you don't want to spend your time switching between CSS and JavaScript files, or writing long, cluttered stylesheets.
65
-
To avoid these problems you can integrate styles directly into your JS code. 🎉
65
+
To avoid these problems you can integrate styles directly into your JavaScript code. 🎉
66
66
67
67
Because the level of customization varies across projects, Material UI's components can be customized in several different ways.
68
68
For more information on this topic, check out the [Material UI customization documentation](https://mui.com/material-ui/customization/how-to-customize/).
Copy file name to clipboardExpand all lines: docs/pages/blog/toolpad-use-cases.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -61,7 +61,7 @@ Your browser does not support the video tag.
61
61
</video>
62
62
63
63
We opted for Toolpad since Metabase doesn't support importing data from REST APIs.
64
-
This is possible in Google Sheets but it requires writing a lot of JS code, and since we wanted to embed it in a [Notion page](https://mui-org.notion.site/KPIs-1ce9658b85ce4628a2a2ed2ae74ff69c?pvs=4#3974cb6ed12b4c5a9013bac63113e3bc), Toolpad was the ideal choice.
64
+
This is possible in Google Sheets but it requires writing a lot of JavaScript code, and since we wanted to embed it in a [Notion page](https://mui-org.notion.site/KPIs-1ce9658b85ce4628a2a2ed2ae74ff69c?pvs=4#3974cb6ed12b4c5a9013bac63113e3bc), Toolpad was the ideal choice.
65
65
Toolpad handles state management and routing, and simplifies query building and data binding, removing the need to write glue code.
66
66
67
67
You can explore both of the aforementioned apps in dev mode on your device by running the underlying [Node application](https://github.com/mui/mui-public/tree/HEAD/tools-public).
Copy file name to clipboardExpand all lines: docs/src/pages/premium-themes/onepirate/modules/views/privacy.md
+2-2
Original file line number
Diff line number
Diff line change
@@ -13,7 +13,7 @@ Please read this policy carefully to understand how we handle and treat your per
13
13
14
14
We may collect and process the following personal information from you:
15
15
16
-
-**Information you provide to us:** We collect personal information when you voluntarily provide us with such information in the course of using our website or Services. For example, when you register to use our Services, we will collect your name, email address and organization information. We also collect personal information from you when you subscribe to our newsletter, or respond to a survey. If you make an enquiry through our website, or contact us in any other way, we will keep a copy of your communications with us.
16
+
-**Information you provide to us:** We collect personal information when you voluntarily provide us with such information in the course of using our website or Services. For example, when you register to use our Services, we will collect your name, email address and organization information. We also collect personal information from you when you subscribe to our newsletter, or respond to a survey. If you make an inquiry through our website, or contact us in any other way, we will keep a copy of your communications with us.
17
17
-**Information we collect when you do business with us:** We may process your personal information when you do business with us – for example, as a customer or prospective customer, or as a vendor, supplier, consultant or other third party. For example, we may hold your business contact information and financial account information (if any) and other communications you have with us for the purposes of maintaining our business relations with you.
18
18
-**Information we automatically collect:** We may also collect certain technical information by automatic means when you visit our website, such as IP address, browser type and operating system, referring URLs, your use of our website, and other clickstream data. We collect this information automatically through the use of various technologies, such as cookies.
19
19
-**Personal information where we act as a data processor:** We also process personal information on behalf of our customers in the context of supporting our products and services. Where a customer subscribes to our Services for their website, game or app, they will be the ones who control what event data is collected and stored on our systems. For example, they may ask us to log basic user data (for example email address or username), device identifiers, IP addresses, event type, and related source code. In such cases, we are data processors acting in accordance with the instructions of our customers. You will need to refer to the privacy policies of our customers to find out more about how such information is handled by them.
@@ -84,7 +84,7 @@ You can also unsubscribe from our marketing communications at any time by follow
84
84
85
85
## Data Retention
86
86
87
-
We may retain your personal information as long as you continue to use the Services, have an account with us or for as long as is necessary to fulfil the purposes outlined in the policy. You can ask to close your account by contacting us at the details below and we will delete your personal information on request.
87
+
We may retain your personal information as long as you continue to use the Services, have an account with us or for as long as is necessary to fulfill the purposes outlined in the policy. You can ask to close your account by contacting us at the details below and we will delete your personal information on request.
88
88
89
89
We may however retain personal information for an additional period as is permitted or required under applicable laws, for legal, tax or regulatory reasons, or for legitimate and lawful business purposes.
Copy file name to clipboardExpand all lines: packages/mui-codemod/CONTRIBUTING.md
+2-2
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@
4
4
5
5
The codemod is a tool that helps developers migrate their codebase when we introduce changes in a new version. The changes could be deprecations, enhancements, or breaking changes.
6
6
7
-
The codemods for JS files are based on [jscodeshift](https://github.com/facebook/jscodeshift) which is a wrapper of [recast](https://github.com/benjamn/recast).
7
+
The codemods for JavaScript files are based on [jscodeshift](https://github.com/facebook/jscodeshift) which is a wrapper of [recast](https://github.com/benjamn/recast).
8
8
9
9
The codemods for CSS files are based on [postcss](https://github.com/postcss/postcss).
10
10
@@ -22,7 +22,7 @@ The codemods for CSS files are based on [postcss](https://github.com/postcss/pos
22
22
-`actual.css` - the input for the postcss plugin (optional)
23
23
-`expected.css` - the expected output of the postcss plugin (optional)
24
24
3. Use [astexplorer](https://astexplorer.net/) to check the AST types and properties
25
-
- For JS codemods set </> to @babel/parser because we use [`tsx`](https://github.com/benjamn/recast/blob/master/parsers/babel.ts) as a default parser.
25
+
- For JavaScript codemods set </> to @babel/parser because we use [`tsx`](https://github.com/benjamn/recast/blob/master/parsers/babel.ts) as a default parser.
Copy file name to clipboardExpand all lines: packages/mui-codemod/README.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -1639,7 +1639,7 @@ The following scenarios are not currently handled by this codemod and will be ma
1639
1639
- In order for arrow functions at the rule level to be converted, the parameter must use object
1640
1640
destructuring (for example `root: ({color, padding}) => (...)`). If the parameter is not destructured
1641
1641
(for example `root: (props) => (...)`), it will not be converted.
1642
-
- If an arrow function at the rule level contains a code block (i.e. contains an explicit `return`
1642
+
- If an arrow function at the rule level contains a code block (that is contains an explicit `return`
1643
1643
statement) rather than just an object expression, it will not be converted.
1644
1644
1645
1645
You can find more details about migrating from JSS to tss-react in [the migration guide](https://mui.com/material-ui/migration/migrating-from-jss/#2-use-tss-react).
Copy file name to clipboardExpand all lines: packages/pigment-css-react/README.md
+12-12
Original file line number
Diff line number
Diff line change
@@ -34,7 +34,7 @@ Thanks to recent advancements in CSS (like CSS variables and `color-mix()`), "tr
34
34
Pigment CSS addresses the needs of the modern React developer by providing a zero-runtime CSS-in-JS styling solution as a successor to tools like Emotion and styled-components.
35
35
36
36
Compared to its predecessors, Pigment CSS offers improved DX and runtime performance (though at the cost of increased build time) while also being compatible with React Server Components.
37
-
Pigment CSS is built on top of [WyW-in-JS](https://wyw-in-js.dev/), enabling us to provide the smoothest possible experience for Material UI users when migrating from Emotion in v5 to Pigment CSS in v6.
37
+
Pigment CSS is built on top of [WyW-in-JS](https://wyw-in-js.dev/), enabling to provide the smoothest possible experience for Material UI users when migrating from Emotion in v5 to Pigment CSS in v6.
38
38
39
39
### Start with Next.js
40
40
@@ -157,7 +157,7 @@ function App() {
157
157
}
158
158
```
159
159
160
-
The call to the `css` function will be replaced with a unique string that represents the CSS class name for the generated styles.
160
+
The call to the `css` function is replaced with a unique string that represents the CSS class name for the generated styles.
161
161
162
162
Use a callback function to get access to the [theme](#theming) values:
Pigment CSS will replace the callback with a CSS variable and inject the value through inline style. This makes it possible to create a static CSS file while still allowing dynamic styles.
310
+
Pigment CSS replaces the callback with a CSS variable and inject the value through inline style. This makes it possible to create a static CSS file while still allowing dynamic styles.
311
311
312
312
```css
313
313
.Heading_class_akjsdfb {
@@ -384,7 +384,7 @@ function Example1() {
384
384
}
385
385
```
386
386
387
-
The call to the `keyframes` function will be replaced with a unique string that represents the CSS animation name. It can be used with `css` or `styled` too.
387
+
The call to the `keyframes` function is replaced with a unique string that represents the CSS animation name. It can be used with `css` or `styled` too.
@@ -415,7 +415,7 @@ Theming is an **optional** feature that lets you reuse the same values, such as
415
415
416
416
> **💡 Good to know**:
417
417
>
418
-
> The **theme** object is used at build time and does not exist in the final JS bundle. This means that components created using Pigment's `styled` can be used with React Server Components by default while still getting the benefits of theming.
418
+
> The **theme** object is used at build time and does not exist in the final JavaScript bundle. This means that components created using Pigment CSS's `styled` can be used with React Server Components by default while still getting the benefits of theming.
419
419
420
420
For example, in Next.js, you can define a theme in the `next.config.js` file like this:
421
421
@@ -484,7 +484,7 @@ module.exports = withPigment(
484
484
);
485
485
```
486
486
487
-
The `extendTheme` utility will go through the theme and create a `vars` object which represents the tokens that refer to CSS variables.
487
+
The `extendTheme` utility goes through the theme and create a `vars` object which represents the tokens that refer to CSS variables.
488
488
489
489
```jsx
490
490
consttheme=extendTheme({
@@ -508,7 +508,7 @@ extendTheme({
508
508
});
509
509
```
510
510
511
-
The generated CSS variables will have the `pigment` prefix:
511
+
The generated CSS variables has the `pigment` prefix:
512
512
513
513
```css
514
514
:root {
@@ -579,7 +579,7 @@ function App() {
579
579
#### Styling based on color scheme
580
580
581
581
The `extendTheme` utility attaches a function called `applyStyles` to the theme object. It receives a color scheme as the first argument followed by a style object.
582
-
It will return a proper CSS selector based on the theme configuration.
582
+
It returns a proper CSS selector based on the theme configuration.
Emotion and styled-components are runtime CSS-in-JS libraries. What you write in your styles is what you get in the final bundle, which means the styles can be as dynamic as you want with bundle size and performance overhead trade-offs.
622
622
623
-
On the other hand, Pigment CSS extracts CSS at build time and replaces the JS code with hashed class names and some CSS variables. This means that it has to know all of the styles to be extracted ahead of time, so there are rules and limitations that you need to be aware of when using JavaScript callbacks or variables in Pigment CSS's APIs.
623
+
On the other hand, Pigment CSS extracts CSS at build time and replaces the JavaScript code with hashed class names and some CSS variables. This means that it has to know all of the styles to be extracted ahead of time, so there are rules and limitations that you need to be aware of when using JavaScript callbacks or variables in Pigment CSS's APIs.
624
624
625
625
Here are some common patterns and how to achieve them with Pigment CSS:
For Emotion and styled-components, the styles will be different on each render and instance because the styles are generated at runtime:
672
+
For Emotion and styled-components, the styles is different on each render and instance because the styles are generated at runtime:
673
673
674
674
```js
675
675
functionrandomBetween(min:number, max:number) {
@@ -693,7 +693,7 @@ function App() {
693
693
}
694
694
```
695
695
696
-
However, in Pigment CSS with the same code as above, all instances will have the same styles and won't change between renders because the styles are extracted at build time.
696
+
However, in Pigment CSS with the same code as above, all instances have the same styles and won't change between renders because the styles are extracted at build time.
697
697
698
698
To achieve the same result, you need to move the dynamic logic to props and pass the value to CSS variables instead:
0 commit comments