-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
74 changed files
with
2,406 additions
and
554 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'@shopify/polaris-migrator': patch | ||
--- | ||
|
||
Handled `buttonFrom` and `buttonsFrom` functions in `Button` migration |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
--- | ||
'@shopify/polaris': minor | ||
--- | ||
|
||
Added support for subheaders and selection of a range of `IndexTable.Rows` -- See the [With subheaders](https://polaris.shopify.com/components/tables/index-table) example on polaris.shopify.com for how to properly configure | ||
- `IndexTable.Row` | ||
- Added support for setting the `indeterminate` value on the `selected` prop | ||
- Added the `selectionRange` prop to specify a range of other consecutive, related rows selected when the row is selected | ||
- Added the `rowType` prop to indicate the relationship or role of the row's contents (defaults to `data`, `subheader` renders the row to look and behave like the table header row) | ||
Added support for setting accessibility attributes on `IndexTable.Cell` | ||
- `IndexTable.Cell` | ||
- Added the `as` prop to support rendering the cell as a `th` element if it is serving as a subheading cell | ||
- Added support for the `headers` attribute to manually associate all headers when the cell is described by more than its column heading | ||
- Added support for the `colSpan` attribute to specify the number of the columns that the cell element should extend to | ||
- Added support for the `scope` attribute to indicate whether the `th` is a header for a column, row, or group of columns or rows |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'@shopify/polaris': minor | ||
--- | ||
|
||
Add new `IndexFiltersManager` for allowing disabling of Page Header actions when in Filtering or EditingColumns mode |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'polaris.shopify.com': patch | ||
--- | ||
|
||
Updated logic for rendering `color` custom property previews in `TokenList` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'polaris.shopify.com': patch | ||
--- | ||
|
||
Updated copy url to change browser url |
28 changes: 28 additions & 0 deletions
28
...s/v12-react-update-button-component/tests/v12-react-update-button-from-function.input.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
import {buttonFrom, buttonsFrom} from '@shopify/polaris'; | ||
|
||
const myButtonFrom = buttonFrom; | ||
|
||
export function App() { | ||
const primaryFooterActionMarkup = buttonFrom( | ||
{content: 'Edit', onAction: () => {}}, | ||
{ | ||
primary: true, | ||
}, | ||
); | ||
|
||
const myButtonMarkup = myButtonFrom( | ||
{content: 'Edit', onAction: () => {}}, | ||
{ | ||
primary: true, | ||
}, | ||
); | ||
|
||
const multipleButtonsMarkup = buttonsFrom( | ||
{content: 'Edit', onAction: () => {}}, | ||
{ | ||
primary: true, | ||
}, | ||
); | ||
|
||
return primaryFooterActionMarkup; | ||
} |
34 changes: 34 additions & 0 deletions
34
.../v12-react-update-button-component/tests/v12-react-update-button-from-function.output.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
import {buttonFrom} from '@shopify/polaris'; | ||
|
||
const myButtonFrom = | ||
/* polaris-migrator: Unable to migrate the following expression. Please upgrade manually. */ | ||
buttonFrom; | ||
|
||
export function App() { | ||
const primaryFooterActionMarkup = | ||
/* polaris-migrator: Unable to migrate the following expression. Please upgrade manually. */ | ||
buttonFrom( | ||
{content: 'Edit', onAction: () => {}}, | ||
{ | ||
primary: true, | ||
}, | ||
); | ||
|
||
const myButtonMarkup = myButtonFrom( | ||
{content: 'Edit', onAction: () => {}}, | ||
{ | ||
primary: true, | ||
}, | ||
); | ||
|
||
const multipleButtonsMarkup = | ||
/* polaris-migrator: Unable to migrate the following expression. Please upgrade manually. */ | ||
buttonsFrom( | ||
{content: 'Edit', onAction: () => {}}, | ||
{ | ||
primary: true, | ||
}, | ||
); | ||
|
||
return primaryFooterActionMarkup; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.