diff --git a/.prettierignore b/.prettierignore index 656f64875fa..3fb5e6de7ca 100644 --- a/.prettierignore +++ b/.prettierignore @@ -3,4 +3,4 @@ node_modules /build /build-internal -/package.json \ No newline at end of file +/package.json diff --git a/.storybook/polaris-readme-loader.js b/.storybook/polaris-readme-loader.js index 1778b15f6e0..97a689b5441 100644 --- a/.storybook/polaris-readme-loader.js +++ b/.storybook/polaris-readme-loader.js @@ -182,6 +182,7 @@ import { CirclePlusOutlineMinor, ConversationMinor, CustomersMajor, + CustomersMinor, DeleteMinor, CircleDisableMinor, DisputeMinor, @@ -191,17 +192,22 @@ import { ExternalMinor, QuestionMarkMajor, HomeMajor, + HomeMinor, HorizontalDotsMinor, ImportMinor, LogOutMinor, MarketingMajor, + MarketingMinor, MobileHamburgerMajor, NoteMinor, NotificationMajor, OnlineStoreMajor, + OnlineStoreMinor, OrdersMajor, + OrdersMinor, PrintMinor, ProductsMajor, + ProductsMinor, ProfileMinor, RefreshMinor, RiskMinor, @@ -356,7 +362,8 @@ function filterMarkdownForPlatform(markdown, platform) { `([\\s\\S]+?)`, 'gu', ); - const deleteRemainingPlatformsRegExp = /[\s\S]+?/gu; + const deleteRemainingPlatformsRegExp = + /[\s\S]+?/gu; return ( markdown diff --git a/CHANGELOG.md b/CHANGELOG.md index 48ff8985ecb..e134b412d1a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,60 @@ The format is based on [these versioning and changelog guidelines](/documentatio --- +## 8.0.0 - 2022-01-20 + +### Breaking changes + +- Updated the base font size to `100%` from `62.5%` and update `rem` values accordingly, along with `pxtorem` `rootValue` ([#4794](https://github.com/Shopify/polaris-react/pull/4794)) +- Updated required node version to `v16.9.1` ([#4853](https://github.com/Shopify/polaris-react/pull/4853)) + +### Enhancements + +- Removed `_SECRET_INTERNAL_FilterControl` and `_SECRET_INTERNAL_FilterControlProps` exports. These exports have been deprecated since Polaris v5 and are not part of our stable API, which is why we are removing them in a minor release. ([#4905](https://github.com/Shopify/polaris-react/pull/4905)) + +## 7.6.0 - 2022-01-18 + +### Enhancements + +- Keyboard arrow navigation support added in `ActionList` ([#4505](https://github.com/Shopify/polaris-react/pull/4505)) +- Menu role attribute value support added in `ActionList/Section` ([#4505](https://github.com/Shopify/polaris-react/pull/4505)) +- Updated the styling of `DropZone.FileUpload` ([#4813](https://github.com/Shopify/polaris-react/pull/4813)) +- Added a minimum height to `Page` component `Header` ([#4770](https://github.com/Shopify/polaris-react/pull/4779)) +- Added a `verticalAlign` prop to `OptionList`. ([#4800](https://github.com/Shopify/polaris-react/pull/4800)) +- Added suppport for a `url` prop in the `Tag` component ([#4837](https://github.com/Shopify/polaris-react/pull/4837)) +- Added support for `children` to take elements other than strings in the `Tag` component ([#4837](https://github.com/Shopify/polaris-react/pull/4837)) +- Bumped the `@shopify/storybook-a11y-test` package to the latest version `0.3.0` ([#4870](https://github.com/Shopify/polaris-react/pull/4870)) +- Added a `warning` variation to `TextStyle` ([#4880](https://github.com/Shopify/polaris-react/pull/4880)) +- Added a class to hide the clear button in the `TextField` component instead of removing it from the DOM ([#4897](https://github.com/Shopify/polaris-react/pull/4897)) + +### Bug fixes + +- Fixed a bug where remove button could shrink in the `Tag` component ([#4816](https://github.com/Shopify/polaris-react/issues/4816)) +- Fixed incorrect `Popover` position in `Combobox` when an element is conditionally rendered before the `Combobox` ([#4825](https://github.com/Shopify/polaris-react/pull/4825)) +- Reverted the deprecation of the "attention" `status` in `Badge` ([#4840](https://github.com/Shopify/polaris-react/pull/4840)) +- Fixed an issue where the `MutationObserver` of the `PositionedOverlay` was calling setState on an unmounted component ([#4869](https://github.com/Shopify/polaris-react/pull/4869)); +- Fixed a color contrast issue in `FileUpload` ([#4875](https://github.com/Shopify/polaris-react/pull/4875)) +- Fixed a bug where a checkbox showed on an `Autocomplete` action when `allowMultiple` is true ([#4887](https://github.com/Shopify/polaris-react/pull/4887)) +- Fixed a bug where the `Listbox.Action` was not treated like an action when used outside `Autocomplete` ([#4893](https://github.com/Shopify/polaris-react/pull/4893)) +- Fixed a bug where the `Checkbox` in a `Combobox` with `allowMultiple` would steal focus and close the `Popover` when clicked ([#4895](https://github.com/Shopify/polaris-react/pull/4895)) + +### Documentation + +- Fixed a bug in the `Icon` component where examples did not show ([#4843](https://github.com/Shopify/polaris-react/pull/4843)) +- Added arrow navigation instructions in keyboard support for `ActionList` ([#4505](https://github.com/Shopify/polaris-react/pull/4505)) +- Updated examples to properly support JAWS screen reader for `Popover` and `ActionList` ([#4505](https://github.com/Shopify/polaris-react/pull/4505)) + +### Development workflow + +- Removed `dev start` command. Thank you to [@aaronadamsCA](https://github.com/aaronadamsCA) for the contribution ([#4876](https://github.com/Shopify/polaris-react/pull/4876)). + +### Dependency upgrades + +- Bumped `@shopify/polaris-icons` to v4.11.0 ([#4837](https://github.com/Shopify/polaris-react/pull/4837)) +- Bumped `@storybook/react` to 6.4.10 ([#4796](https://github.com/Shopify/polaris-react/pull/4796)) +- Bumped `@shopify/storybook-a11y-test` to 0.4.3 ([#4796](https://github.com/Shopify/polaris-react/pull/4796)) +- Removed dependency `serve`. Thank you to [@aaronadamsCA](https://github.com/aaronadamsCA) for the contribution ([#4876](https://github.com/Shopify/polaris-react/pull/4876)). + ## 7.5.0 - 2021-12-09 ### Enhancements diff --git a/Procfile b/Procfile deleted file mode 100644 index 28fe750b8d0..00000000000 --- a/Procfile +++ /dev/null @@ -1 +0,0 @@ -web: npm run start diff --git a/README.md b/README.md index 59d509f339f..a7c79918d01 100644 --- a/README.md +++ b/README.md @@ -39,7 +39,7 @@ Otherwise include the CSS in your HTML. We suggest copying the styles file into ```html ``` @@ -76,7 +76,7 @@ If React doesn’t make sense for your application, you can use a CSS-only versi ```html ``` diff --git a/UNRELEASED.md b/UNRELEASED.md index 031265e1990..fbd3bc9fd40 100644 --- a/UNRELEASED.md +++ b/UNRELEASED.md @@ -17,28 +17,38 @@ Use [the changelog guidelines](/documentation/Versioning%20and%20changelog.md) t - Added suppport for a `url` prop in the `Tag` component ([#4837](https://github.com/Shopify/polaris-react/pull/4837)) - Added support for `children` to take elements other than strings in the `Tag` component ([#4837](https://github.com/Shopify/polaris-react/pull/4837)) - Bumped the `@shopify/storybook-a11y-test` package to the latest version `0.3.0` ([#4870](https://github.com/Shopify/polaris-react/pull/4870)) +- Add an inset box-shadow to `ColorPicker` to make it easier to see the draggers ([#4948](https://github.com/Shopify/polaris-react/pull/4948)) +- Tightened up the Navigation component UI density. ([#4874](https://github.com/Shopify/polaris-react/pull/4874)) +- Updated mobile behaviour of Navigation to only show one sub-section at a time ([#4902](https://github.com/Shopify/polaris-react/pull/4902)) +- Remove the info icon and external link guidance from FooterHelp ([#4982](https://github.com/Shopify/polaris-react/pull/4982)) +- Normalise spacing around the `Header` within the `Page` ([#4911](https://github.com/Shopify/polaris-react/pull/4911)) ### Bug fixes +- Fixed `segmented` `ButtonGroup` misaligning icon only buttons when grouped with text only buttons ([#4079](https://github.com/Shopify/polaris-react/issues/4079)) +- Added missing styles for `destructive` `Page` `secondaryActions` ([#4647](https://github.com/Shopify/polaris-react/pull/4647)) +- Removed `min-height` from `Page` `additionalNavigation` ([#4952](https://github.com/Shopify/polaris-react/pull/4952)) +- Fixed overly dark `bottom-border` on `DataTable` header cell and total cell ([#4975](https://github.com/Shopify/polaris-react/pull/4975)) +- Removed `min-height` on `Autocomplete` `action` ([#4977](https://github.com/Shopify/polaris-react/pull/4977)) +- Fixed `focus-ring` on `Banner` `secondaryAction` ([#4997](https://github.com/Shopify/polaris-react/pull/4997)) - Fixed a bug where remove button could shrink in the `Tag` component ([#4816](https://github.com/Shopify/polaris-react/issues/4816)) - Fixed incorrect `Popover` position in `Combobox` when an element is conditionally rendered before the `Combobox` ([#4825](https://github.com/Shopify/polaris-react/pull/4825)) - Reverted the deprecation of the "attention" `status` in `Badge` ([#4840](https://github.com/Shopify/polaris-react/pull/4840)) - Fixed an issue where the `MutationObserver` of the `PositionedOverlay` was calling setState on an unmounted component ([#4869](https://github.com/Shopify/polaris-react/pull/4869)); - Fixed a color contrast issue in `FileUpload` ([#4875](https://github.com/Shopify/polaris-react/pull/4875)) +- Fixed a bug where a checkbox showed on an `Autocomplete` action when `allowMultiple` is true ([#4886](https://github.com/Shopify/polaris-react/pull/4886)) +- Fixed a bug where the `Listbox.Action` was not treated like an action when used outside `Autocomplete` ([#4893](https://github.com/Shopify/polaris-react/pull/4893)) +- Fixed a bug where the `Checkbox` in a `Combobox` with `allowMultiple` would steal focus and close the `Popover` when clicked ([#4895](https://github.com/Shopify/polaris-react/pull/4895)) +- Fixed an issue where `TextField` was the wrong height on initial render ([#4903](https://github.com/Shopify/polaris-react/pull/4903)) +- Fixed an issue where token values in px weren't converted to rems ([#5000](https://github.com/Shopify/polaris-react/pull/5000)) ### Documentation -- Fixed a bug in the `Icon` component where examples did not show ([#4843](https://github.com/Shopify/polaris-react/pull/4843)) -- Added arrow navigation instructions in keyboard support for `ActionList` ([#4505](https://github.com/Shopify/polaris-react/pull/4505)) -- Updated examples to properly support JAWS screen reader for `Popover` and `ActionList` ([#4505](https://github.com/Shopify/polaris-react/pull/4505)) - ### Development workflow -### Dependency upgrades +- Improve error logging in the event of sass errors ([#4954](https://github.com/Shopify/polaris-react/pull/4954)) -- Bumped `@shopify/polaris-icons` to v4.11.0 ([#4837](https://github.com/Shopify/polaris-react/pull/4837)) -- Bumped `@storybook/react` to 6.4.10 ([#4796](https://github.com/Shopify/polaris-react/pull/4796)) -- Bumped `@shopify/storybook-a11y-test` to 0.4.3 ([#4796](https://github.com/Shopify/polaris-react/pull/4796)) +### Dependency upgrades ### Code quality diff --git a/config/rollup/plugin-styles.js b/config/rollup/plugin-styles.js index fb140dd9f36..8f9cee48c70 100644 --- a/config/rollup/plugin-styles.js +++ b/config/rollup/plugin-styles.js @@ -1,5 +1,4 @@ const path = require('path'); -const {promisify} = require('util'); const {createFilter} = require('@rollup/pluginutils'); const nodeSass = require('node-sass'); @@ -22,8 +21,6 @@ module.exports.styles = function styles({ const filter = createFilter(include, exclude); - const renderSass = promisify(nodeSass.render); - const styleProcessor = postcss([ cssModules({ ...modules, @@ -148,11 +145,19 @@ module.exports.styles = function styles({ return null; } - const sassOutput = await renderSass({ - data: source, - outputStyle: 'compact', - includePaths: [path.dirname(id)], - }).then((result) => result.css.toString()); + let sassOutput; + try { + sassOutput = nodeSass + .renderSync({ + data: source, + file: id, + outputStyle: 'compact', + includePaths: [path.dirname(id)], + }) + .css.toString(); + } catch (err) { + throw new Error(err.formatted); + } const postCssOutput = await styleProcessor .process(sassOutput, {from: id}) diff --git a/dev.yml b/dev.yml index 628d06c7f2c..0992712d438 100644 --- a/dev.yml +++ b/dev.yml @@ -16,7 +16,6 @@ commands: # For a list of Common Commands in Projects, check out: # https://development.shopify.io/tools/dev/getting_started/Common-Commands-in-Projects build: yarn run build - start: yarn run start server: yarn run dev style: yarn run lint test: yarn run test diff --git a/documentation/guides/migrating-from-v7-to-v8.md b/documentation/guides/migrating-from-v7-to-v8.md index 3852da7702b..90fff7961f9 100644 --- a/documentation/guides/migrating-from-v7-to-v8.md +++ b/documentation/guides/migrating-from-v7-to-v8.md @@ -1,40 +1,86 @@ # Migrating from v7 to v8 -Polaris v8.0.0 ([full release notes](https://github.com/Shopify/polaris-react/releases/tag/v8.0.0)) features a rebuild of the `Autocomplete` component, build changes, . This file describes all code updates required to stay up to date. +Polaris v8.0.0 ([full release notes](https://github.com/Shopify/polaris-react/releases/tag/v8.0.0)) features a change to the required node version and root font size. -## `ThemeProvider` changes +## Node support -The `ThemeProvider` has been deprecated in favor of the new `CustomProperties` component. As a result, a number of internal components using the `ThemeProvider` have been updated to use the `CustomProperties` component and adjusted their prop interfaces accordingly (such as: `AppProvider`, `Popover`, etc.). +Node 16 is now a requirement. -`polaris-react` no longer supports accepting and transforming a custom theme object to influence the component library. Polaris will now maintain a set of predefined color-schemes that meet the immediate needs of the admin and thus the following changes are required: +## Base font size -```diff -- import {ThemeProvider} from '@shopify/polaris-react'; -+ import {CustomProperties} from '@shopify/polaris-react'; +~~`html {font-size: 62.5%}`~~ -const App = (props) => ( -- -- {props.children} -- -+ -+ {props.children} -+ -) -``` +`html {font-size: 100%}` + +No changes are needed if your app uses the `rem()` function for css values. If your app caches css files you'll need to rebuild them once you upgrade to v8.0.0. + +Polaris has switched to the browser default of 16px for its base font size instead of the previous 10px. -As mentioned above, the `ThemeProvider` has been removed from the `AppProvider` and replaced with the `CustomProperties` component. +If you have hard coded rem values then you will need to modify them to use the `rem()` function or recalculate them accordingly: -With that said, the `AppProvider` no longer accepts a custom theme object to forward to the `ThemeProvider`. However, similar behavior is still optionally exposed by forwarding the `colorScheme` prop to the `CustomProperties` component: +`rem(16px) => 1.6rem` is no longer true (16 / 10). -```diff -import {AppProvider} from '@shopify/polaris-react'; +`rem(16px) => 1rem` is the new conversion (16 / 16). -const App = (props) => ( -- -- {props.children} -- -+ -+ {props.children} -+ -) +We've created the following codemod to help with manually set rem values: + +
+ Codemod to convert hard coded rems + +```jsx +// node index.js +​ +import fs from 'fs/promises' +import path from 'path' +import os from 'os' +​ +import pMap from 'p-map' +import { globby } from 'globby' +​ +const target = path.resolve(process.cwd(), process.argv[2]) +​ +const stats = { + files: 0, + rems: 0, +} +​ +if (!target) { + console.log('Please specify a target directory') + process.exit(1) +} +​ +const scssPaths = await globby('**/*.scss', { + cwd: target, + ignore: ['**/node_modules/**/*.scss'], + absolute: true, +}) +​ +console.log(`Checking for rems in ${scssPaths.length} file(s)\n`) +​ +async function replaceRems(filePath) { + let hasRems = false + const fileContent = await fs.readFile(filePath, { encoding: 'utf8' }) + const remRegex = /(-?\d+(?:\.\d+|\d*))rem/g +​ + const newContent = fileContent.replace(remRegex, (_, unit) => { + hasRems = true + stats.rems++ +​ + const value = parseFloat(unit) * 10 // Note: 1rem was previously 10px +​ + return `rem(${value}px)` + }) +​ + if (hasRems) stats.files++ +​ + await fs.writeFile(filePath, newContent) +} +​ +await pMap(scssPaths, replaceRems, { concurrency: os.cpus().length }) +​ +console.log(`Updated ${stats.rems} rems in ${stats.files} files\n`) +​ +console.log('Done! 🌈') ``` + +
diff --git a/documentation/guides/migrating-from-v8-to-v9.md b/documentation/guides/migrating-from-v8-to-v9.md index c0d09148896..6271be67e31 100644 --- a/documentation/guides/migrating-from-v8-to-v9.md +++ b/documentation/guides/migrating-from-v8-to-v9.md @@ -2,7 +2,42 @@ Polaris v9.0.0 ([full release notes](https://github.com/Shopify/polaris-react/releases/tag/v9.0.0)) features removal of the public scss api and removal of scss functions and mixins. -## Theme provider +## ThemeProvider changes + +The `ThemeProvider` has been deprecated in favor of the new `CustomProperties` component. As a result, a number of internal components using the `ThemeProvider` have been updated to use the `CustomProperties` component and adjusted their prop interfaces accordingly (such as: `AppProvider`, `Popover`, etc.). + +`polaris-react` no longer supports accepting and transforming a custom theme object to influence the component library. Polaris will now maintain a set of predefined color-schemes that meet the immediate needs of the admin and thus the following changes are required: + +```diff +- import {ThemeProvider} from '@shopify/polaris-react'; ++ import {CustomProperties} from '@shopify/polaris-react'; + +const App = (props) => ( +- +- {props.children} +- ++ ++ {props.children} ++ +) +``` + +As mentioned above, the `ThemeProvider` has been removed from the `AppProvider` and replaced with the `CustomProperties` component. + +With that said, the `AppProvider` no longer accepts a custom theme object to forward to the `ThemeProvider`. However, similar behavior is still optionally exposed by forwarding the `colorScheme` prop to the `CustomProperties` component: + +```diff +import {AppProvider} from '@shopify/polaris-react'; + +const App = (props) => ( +- +- {props.children} +- ++ ++ {props.children} ++ +) +``` ## Removal of the public scss api diff --git a/examples/create-react-app-ts-react-testing/yarn.lock b/examples/create-react-app-ts-react-testing/yarn.lock index d2134c3c922..5a54e124cc1 100644 --- a/examples/create-react-app-ts-react-testing/yarn.lock +++ b/examples/create-react-app-ts-react-testing/yarn.lock @@ -5483,9 +5483,9 @@ focus-visible@^5.2.0: integrity sha512-Rwix9pBtC1Nuy5wysTmKy+UjbDJpIfg8eHjw0rjZ1mX4GNLz1Bmd16uDpI3Gk1i70Fgcs8Csg2lPm8HULFg9DQ== follow-redirects@^1.0.0: - version "1.12.1" - resolved "https://registry.yarnpkg.com/follow-redirects/-/follow-redirects-1.12.1.tgz#de54a6205311b93d60398ebc01cf7015682312b6" - integrity sha512-tmRv0AVuR7ZyouUHLeNSiO6pqulF7dYa3s19c6t+wz9LD69/uSzdMxJ2S91nTI9U3rt/IldxpzMOFejp6f0hjg== + version "1.14.7" + resolved "https://registry.yarnpkg.com/follow-redirects/-/follow-redirects-1.14.7.tgz#2004c02eb9436eee9a21446a6477debf17e81685" + integrity sha512-+hbxoLbFMbRKDwohX8GkTataGqO6Jb7jGwpAlwgy2bIz25XtRm7KEzJM76R1WiNT5SwZkX4Y75SwBolkpmE7iQ== for-in@^1.0.2: version "1.0.2" diff --git a/locales/cs.json b/locales/cs.json index 252f19628c4..5bbe5ee12fe 100644 --- a/locales/cs.json +++ b/locales/cs.json @@ -187,48 +187,6 @@ "moreActionsActivatorLabel": "Další akce", "warningMessage": "Za účelem zlepšení uživatelské zkušenosti. Promo akcí by mělo být maximálně {maxPromotedActions}." }, - "FilterCreator": { - "filterButtonLabel": "Filtr", - "selectFilterKeyPlaceholder": "Vyberte filtr...", - "addFilterButtonLabel": "Přidat filtr", - "showAllWhere": "Zobrazit všechny případy ({resourceNamePlural}), kde:" - }, - "FilterControl": { - "textFieldLabel": "Prohledejte {resourceNamePlural}" - }, - "FilterValueSelector": { - "selectFilterValuePlaceholder": "Vyberte filtr..." - }, - "DateSelector": { - "dateFilterLabel": "Vyberte hodnotu", - "dateValueLabel": "Datum", - "dateValueError": "Použijte formát RRRR-MM-DD", - "dateValuePlaceholder": "RRRR-MM-DD", - "SelectOptions": { - "PastWeek": "za poslední týden", - "PastMonth": "za poslední měsíc", - "PastQuarter": "za poslední tři měsíce", - "PastYear": "za poslední rok", - "ComingWeek": "příští týden", - "ComingMonth": "příští měsíc", - "ComingQuarter": "v příštích třech měsících", - "ComingYear": "v příštím roce", - "OnOrBefore": "dne nebo dříve než", - "OnOrAfter": "dne nebo později než" - }, - "FilterLabelForValue": { - "past_week": "za poslední týden", - "past_month": "za poslední měsíc", - "past_quarter": "za poslední tři měsíce", - "past_year": "za poslední rok", - "coming_week": "příští týden", - "coming_month": "příští měsíc", - "coming_quarter": "v příštích třech měsících", - "coming_year": "v příštím roce", - "on_or_before": "před {date}", - "on_or_after": "po {date}" - } - }, "showingTotalCount": "Zobrazuje se {itemsCount} z {totalItemsCount} {resource}", "allFilteredItemsSelected": "Jsou vybrány všechny položky ({itemsLength} + {resourceNamePlural}) v tomto filtru.", "selectAllFilteredItems": "Vyberte všechny položky ({itemsLength} + {resourceNamePlural}) v tomto filtru." diff --git a/locales/da.json b/locales/da.json index 0c3c6e4f00e..02715c62b97 100644 --- a/locales/da.json +++ b/locales/da.json @@ -187,48 +187,6 @@ "moreActionsActivatorLabel": "Flere handlinger", "warningMessage": "Sikring af en bedre brugeroplevelse. Der bør maksimalt være {maxPromotedActions} handlinger, der promoveres." }, - "FilterCreator": { - "filterButtonLabel": "Filtrer", - "selectFilterKeyPlaceholder": "Vælg et filter ...", - "addFilterButtonLabel": "Tilføj filter", - "showAllWhere": "Vis alle {resourceNamePlural}, hvor:" - }, - "FilterControl": { - "textFieldLabel": "Søg efter {resourceNamePlural}" - }, - "FilterValueSelector": { - "selectFilterValuePlaceholder": "Vælg et filter ..." - }, - "DateSelector": { - "dateFilterLabel": "Vælg en værdi", - "dateValueLabel": "Dato", - "dateValueError": "Match ÅÅÅÅ-MM-DD-format", - "dateValuePlaceholder": "ÅÅÅÅ-MM-DD", - "SelectOptions": { - "PastWeek": "i den sidste uge", - "PastMonth": "i den sidste måned", - "PastQuarter": "i de sidste 3 måneder", - "PastYear": "i det sidste år", - "ComingWeek": "næste uge", - "ComingMonth": "næste måned", - "ComingQuarter": "i de næste 3 måneder", - "ComingYear": "i det næste år", - "OnOrBefore": "på eller før", - "OnOrAfter": "på eller efter" - }, - "FilterLabelForValue": { - "past_week": "i den sidste uge", - "past_month": "i den sidste måned", - "past_quarter": "i de sidste 3 måneder", - "past_year": "i det sidste år", - "coming_week": "næste uge", - "coming_month": "næste måned", - "coming_quarter": "i de næste 3 måneder", - "coming_year": "i det næste år", - "on_or_before": "før {date}", - "on_or_after": "efter {date}" - } - }, "showingTotalCount": "Viser {itemsCount} af {totalItemsCount} {resource}", "allFilteredItemsSelected": "Alle mere end {itemsLength} {resourceNamePlural} i dette filter er valgt.", "selectAllFilteredItems": "Vælg alle mere end {itemsLength} {resourceNamePlural} i dette filter" diff --git a/locales/de.json b/locales/de.json index e0ee046a7ac..2e7134150a7 100644 --- a/locales/de.json +++ b/locales/de.json @@ -187,48 +187,6 @@ "moreActionsActivatorLabel": "Weitere Aktionen", "warningMessage": "Um eine bessere Benutzererfahrung zu bieten. Es sollte nur maximal {maxPromotedActions} beworbene Aktionen geben." }, - "FilterCreator": { - "filterButtonLabel": "Filter", - "selectFilterKeyPlaceholder": "Filter auswählen ...", - "addFilterButtonLabel": "Filter hinzufügen", - "showAllWhere": "Alle {resourceNamePlural} auswählen, bei denen:" - }, - "FilterControl": { - "textFieldLabel": "{resourceNamePlural} suchen" - }, - "FilterValueSelector": { - "selectFilterValuePlaceholder": "Filter auswählen …" - }, - "DateSelector": { - "dateFilterLabel": "Wert auswählen", - "dateValueLabel": "Datum", - "dateValueError": "Übereinstimmung mit Format JJJJ-MM-TT", - "dateValuePlaceholder": "JJJJ-MM-TT", - "SelectOptions": { - "PastWeek": "in der letzten Woche", - "PastMonth": "im letzten Monat", - "PastQuarter": "in den letzten 3 Monaten", - "PastYear": "im letzten Jahr", - "ComingWeek": "nächste Woche", - "ComingMonth": "nächster Monat", - "ComingQuarter": "in den nächsten 3 Monaten", - "ComingYear": "im nächsten Jahr", - "OnOrBefore": "bis zum", - "OnOrAfter": "nach dem" - }, - "FilterLabelForValue": { - "past_week": "in der letzten Woche", - "past_month": "im letzten Monat", - "past_quarter": "in den letzten 3 Monaten", - "past_year": "im letzten Jahr", - "coming_week": "nächste Woche", - "coming_month": "nächster Monat", - "coming_quarter": "in den nächsten 3 Monaten", - "coming_year": "im nächsten Jahr", - "on_or_before": "vor {date}", - "on_or_after": "nach {date}" - } - }, "showingTotalCount": "{itemsCount} von {totalItemsCount} {resource} werden angezeigt", "allFilteredItemsSelected": "Alle {itemsLength} und {resourceNamePlural} in diesem Filter sind ausgewählt.", "selectAllFilteredItems": "Alle {itemsLength} und {resourceNamePlural} in diesem Filter auswählen" diff --git a/locales/en.json b/locales/en.json index 162b9f7d020..613bbe0048f 100644 --- a/locales/en.json +++ b/locales/en.json @@ -219,48 +219,6 @@ "actionsActivatorLabel": "Actions", "moreActionsActivatorLabel": "More actions", "warningMessage": "To provide a better user experience. There should only be a maximum of {maxPromotedActions} promoted actions." - }, - "FilterCreator": { - "filterButtonLabel": "Filter", - "selectFilterKeyPlaceholder": "Select a filter\u2026", - "addFilterButtonLabel": "Add filter", - "showAllWhere": "Show all {resourceNamePlural} where:" - }, - "FilterControl": { - "textFieldLabel": "Search {resourceNamePlural}" - }, - "FilterValueSelector": { - "selectFilterValuePlaceholder": "Select a filter\u2026" - }, - "DateSelector": { - "dateFilterLabel": "Select a value", - "dateValueLabel": "Date", - "dateValueError": "Match YYYY-MM-DD format", - "dateValuePlaceholder": "YYYY-MM-DD", - "SelectOptions": { - "PastWeek": "in the last week", - "PastMonth": "in the last month", - "PastQuarter": "in the last 3 months", - "PastYear": "in the last year", - "ComingWeek": "next week", - "ComingMonth": "next month", - "ComingQuarter": "in the next 3 months", - "ComingYear": "in the next year", - "OnOrBefore": "on or before", - "OnOrAfter": "on or after" - }, - "FilterLabelForValue": { - "past_week": "in the last week", - "past_month": "in the last month", - "past_quarter": "in the last 3 months", - "past_year": "in the last year", - "coming_week": "next week", - "coming_month": "next month", - "coming_quarter": "in the next 3 months", - "coming_year": "in the next year", - "on_or_before": "before {date}", - "on_or_after": "after {date}" - } } }, "SkeletonPage": { diff --git a/locales/es.json b/locales/es.json index f8f66b017b7..541f74f1a61 100644 --- a/locales/es.json +++ b/locales/es.json @@ -187,48 +187,6 @@ "moreActionsActivatorLabel": "Más acciones", "warningMessage": "Para ofrecer una mejor experiencia de usuario, solo debe haber un máximo de {maxPromotedActions} acciones promocionadas." }, - "FilterCreator": { - "filterButtonLabel": "Filtrar", - "selectFilterKeyPlaceholder": "Seleccionar un filtro...", - "addFilterButtonLabel": "Agregar filtro", - "showAllWhere": "Mostrar todos {resourceNamePlural} donde:" - }, - "FilterControl": { - "textFieldLabel": "Mostrar {resourceNamePlural}" - }, - "FilterValueSelector": { - "selectFilterValuePlaceholder": "Seleccionar un filtro..." - }, - "DateSelector": { - "dateFilterLabel": "Seleccionar un valor", - "dateValueLabel": "Fecha", - "dateValueError": "Coincidir con formato AAAA-MM-DD", - "dateValuePlaceholder": "AAAA-MM-DD", - "SelectOptions": { - "PastWeek": "en la ultima semana", - "PastMonth": "en el último mes", - "PastQuarter": "en los últimos 3 meses", - "PastYear": "en el último año", - "ComingWeek": "la próxima semana", - "ComingMonth": "el próximo mes", - "ComingQuarter": "en los próximos 3 meses", - "ComingYear": "en el próximo año", - "OnOrBefore": "en o antes de", - "OnOrAfter": "en o después de" - }, - "FilterLabelForValue": { - "past_week": "en la ultima semana", - "past_month": "en el último mes", - "past_quarter": "en los últimos 3 meses", - "past_year": "en el último año", - "coming_week": "la próxima semana", - "coming_month": "el próximo mes", - "coming_quarter": "en los próximos 3 meses", - "coming_year": "en el próximo año", - "on_or_before": "antes de {date}", - "on_or_after": "después de {date}" - } - }, "showingTotalCount": "Mostrando {itemsCount} de {totalItemsCount} {resource}", "allFilteredItemsSelected": "Los {itemsLength}+ {resourceNamePlural} en este filtro están seleccionados.", "selectAllFilteredItems": "Seleccionar los {itemsLength}+ {resourceNamePlural} en este filtro" diff --git a/locales/fi.json b/locales/fi.json index b9dc620bf0b..15e69c69198 100644 --- a/locales/fi.json +++ b/locales/fi.json @@ -187,48 +187,6 @@ "moreActionsActivatorLabel": "Lisää toimintoja", "warningMessage": "Paremman käyttäjäkokemuksen tarjoamiseksi. Mainostettavia toimintoja saa olla enintään {maxPromotedActions}." }, - "FilterCreator": { - "filterButtonLabel": "Suodata", - "selectFilterKeyPlaceholder": "Valitse suodatin…", - "addFilterButtonLabel": "Lisää suodatin", - "showAllWhere": "Näytä kaikki {resourceNamePlural}, joissa:" - }, - "FilterControl": { - "textFieldLabel": "Hae {resourceNamePlural}" - }, - "FilterValueSelector": { - "selectFilterValuePlaceholder": "Valitse suodatin…" - }, - "DateSelector": { - "dateFilterLabel": "Valitse arvo", - "dateValueLabel": "Päivämäärä", - "dateValueError": "Noudata muotoa VVVV-KK-PP", - "dateValuePlaceholder": "VVVV-KK-PP", - "SelectOptions": { - "PastWeek": "viime viikolla", - "PastMonth": "viime kuussa", - "PastQuarter": "viimeisten kolmen kuukauden aikana", - "PastYear": "viime vuonna", - "ComingWeek": "ensi viikolla", - "ComingMonth": "ensi kuussa", - "ComingQuarter": "seuraavien kolmen kuukauden aikana", - "ComingYear": "ensi vuonna", - "OnOrBefore": "päivänä tai sitä ennen", - "OnOrAfter": "päivänä tai sen jälkeen" - }, - "FilterLabelForValue": { - "past_week": "viime viikolla", - "past_month": "viime kuussa", - "past_quarter": "viimeisten kolmen kuukauden aikana", - "past_year": "viime vuonna", - "coming_week": "ensi viikolla", - "coming_month": "ensi kuussa", - "coming_quarter": "seuraavien kolmen kuukauden aikana", - "coming_year": "ensi vuonna", - "on_or_before": "ennen {date}", - "on_or_after": "jälkeen {date}" - } - }, "showingTotalCount": "Näytetään {itemsCount}/{totalItemsCount} {resource}", "allFilteredItemsSelected": "Kaikki tämän suodattimen {itemsLength}+ {resourceNamePlural} on valittu.", "selectAllFilteredItems": "Valitse kaikki tämän suodattimen {itemsLength}+ {resourceNamePlural}" diff --git a/locales/fr.json b/locales/fr.json index 6b76324a63c..8d8b0622ffe 100644 --- a/locales/fr.json +++ b/locales/fr.json @@ -187,48 +187,6 @@ "moreActionsActivatorLabel": "Autres opérations", "warningMessage": "Pour fournir une meilleure expérience aux utilisateurs. Il ne doit y avoir que {maxPromotedActions} actions promues au maximum." }, - "FilterCreator": { - "filterButtonLabel": "Filtrer", - "selectFilterKeyPlaceholder": "Sélectionner un filtre...", - "addFilterButtonLabel": "Ajouter un filtre", - "showAllWhere": "Afficher tous les {resourceNamePlural} où :" - }, - "FilterControl": { - "textFieldLabel": "Rechercher {resourceNamePlural}" - }, - "FilterValueSelector": { - "selectFilterValuePlaceholder": "Sélectionner un filtre..." - }, - "DateSelector": { - "dateFilterLabel": "Sélectionner une valeur", - "dateValueLabel": "Date", - "dateValueError": "Correspondre au format JJ-MM-AAAA", - "dateValuePlaceholder": "JJ-MM-AAAA", - "SelectOptions": { - "PastWeek": "au cours de la dernière semaine", - "PastMonth": "au cours du dernier mois", - "PastQuarter": "au cours des 3 derniers mois", - "PastYear": "au cours de la dernière année", - "ComingWeek": "la semaine prochaine", - "ComingMonth": "le mois prochain", - "ComingQuarter": "au cours des 3 prochains mois", - "ComingYear": "l'année prochaine", - "OnOrBefore": "le ou avant le", - "OnOrAfter": "le ou après le" - }, - "FilterLabelForValue": { - "past_week": "au cours de la dernière semaine", - "past_month": "au cours du dernier mois", - "past_quarter": "au cours des 3 derniers mois", - "past_year": "au cours de la dernière année", - "coming_week": "la semaine prochaine", - "coming_month": "le mois prochain", - "coming_quarter": "au cours des 3 mois prochains", - "coming_year": "l'année prochaine", - "on_or_before": "avant le {date}", - "on_or_after": "après le {date}" - } - }, "showingTotalCount": "Afficher {itemsCount} sur {totalItemsCount} {resource}", "allFilteredItemsSelected": "Tous les éléments {resourceNamePlural} de plus de {itemsLength} de ce filtre sont sélectionnés.", "selectAllFilteredItems": "Sélectionner tous les éléments {resourceNamePlural} de plus de {itemsLength} de ce filtre" diff --git a/locales/it.json b/locales/it.json index 310e16280a4..0fca2bf5319 100644 --- a/locales/it.json +++ b/locales/it.json @@ -187,48 +187,6 @@ "moreActionsActivatorLabel": "Altre azioni", "warningMessage": "Per offrire una migliore User Experience. È previsto solo un massimo di {maxPromotedActions} azioni promosse." }, - "FilterCreator": { - "filterButtonLabel": "Filtra", - "selectFilterKeyPlaceholder": "Seleziona un filtro...", - "addFilterButtonLabel": "Aggiungi filtro", - "showAllWhere": "Mostra tutti gli {resourceNamePlural} dove:" - }, - "FilterControl": { - "textFieldLabel": "Cerca {resourceNamePlural}" - }, - "FilterValueSelector": { - "selectFilterValuePlaceholder": "Seleziona un filtro..." - }, - "DateSelector": { - "dateFilterLabel": "Seleziona un valore", - "dateValueLabel": "Data", - "dateValueError": "Usa il formato AAAA-MM-GG", - "dateValuePlaceholder": "AAAA-MM-GG", - "SelectOptions": { - "PastWeek": "nell'ultima settimana", - "PastMonth": "nello scorso mese", - "PastQuarter": "negli ultimi 3 mesi", - "PastYear": "nell'ultimo anno", - "ComingWeek": "la prossima settimana", - "ComingMonth": "il prossimo mese", - "ComingQuarter": "nei prossimi 3 mesi", - "ComingYear": "nel prossimo anno", - "OnOrBefore": "il giorno o prima", - "OnOrAfter": "il giorno o dopo" - }, - "FilterLabelForValue": { - "past_week": "nell'ultima settimana", - "past_month": "nello scorso mese", - "past_quarter": "negli ultimi 3 mesi", - "past_year": "nell'ultimo anno", - "coming_week": "la prossima settimana", - "coming_month": "il prossimo mese", - "coming_quarter": "nei prossimi 3 mesi", - "coming_year": "nel prossimo anno", - "on_or_before": "prima del {date}", - "on_or_after": "dopo il {date}" - } - }, "showingTotalCount": "Visualizzazione di {itemsCount} su {totalItemsCount}{resource}", "allFilteredItemsSelected": "Tutti i {resourceNamePlural} {itemsLength}+ in questo filtro sono selezionati.", "selectAllFilteredItems": "Seleziona tutti i {resourceNamePlural} {itemsLength}+ in questo filtro" diff --git a/locales/ja.json b/locales/ja.json index 98df6dd01fb..7865d1165c3 100644 --- a/locales/ja.json +++ b/locales/ja.json @@ -187,48 +187,6 @@ "moreActionsActivatorLabel": "その他の操作", "warningMessage": "さらによいユーザーエクスペリエンスのために。宣伝のアクションは最大で{maxPromotedActions}回までです。" }, - "FilterCreator": { - "filterButtonLabel": "絞り込む", - "selectFilterKeyPlaceholder": "絞り込みを選択する...", - "addFilterButtonLabel": "絞り込みを追加する", - "showAllWhere": "すべての{resourceNamePlural}を表示する:" - }, - "FilterControl": { - "textFieldLabel": "{resourceNamePlural}を検索する" - }, - "FilterValueSelector": { - "selectFilterValuePlaceholder": "絞り込みを選択する..." - }, - "DateSelector": { - "dateFilterLabel": "値を選択する", - "dateValueLabel": "日付", - "dateValueError": "YYYY年MM月DD日フォーマットと一致する", - "dateValuePlaceholder": "YYYY年MM月DD日", - "SelectOptions": { - "PastWeek": "先週", - "PastMonth": "先月", - "PastQuarter": "過去3か月", - "PastYear": "昨年", - "ComingWeek": "来週", - "ComingMonth": "来月", - "ComingQuarter": "今後3か月", - "ComingYear": "来年", - "OnOrBefore": "以前", - "OnOrAfter": "以後" - }, - "FilterLabelForValue": { - "past_week": "先週", - "past_month": "先月", - "past_quarter": "過去3か月", - "past_year": "昨年", - "coming_week": "来週", - "coming_month": "来月", - "coming_quarter": "今後3か月", - "coming_year": "来年", - "on_or_before": "{date}以前", - "on_or_after": "{date}以後" - } - }, "showingTotalCount": "{totalItemsCount}件の{resource}中、{itemsCount}件を表示中", "allFilteredItemsSelected": "この絞り込みの{itemsLength}と{resourceNamePlural}がすべて選択されます。", "selectAllFilteredItems": "この絞り込みの{itemsLength}と{resourceNamePlural}をすべて選択する" diff --git a/locales/ko.json b/locales/ko.json index f8f2ba82fc5..eed4e9fa63c 100644 --- a/locales/ko.json +++ b/locales/ko.json @@ -187,48 +187,6 @@ "moreActionsActivatorLabel": "기타 작업", "warningMessage": "더 나은 사용자 환경을 제공하려면 프로모션 작업의 수가 {maxPromotedActions}개 이하여야 합니다." }, - "FilterCreator": { - "filterButtonLabel": "필터", - "selectFilterKeyPlaceholder": "필터 선택...", - "addFilterButtonLabel": "필터 추가", - "showAllWhere": "다음에 해당하는 모든 {resourceNamePlural} 표시:" - }, - "FilterControl": { - "textFieldLabel": "{resourceNamePlural} 검색" - }, - "FilterValueSelector": { - "selectFilterValuePlaceholder": "필터 선택..." - }, - "DateSelector": { - "dateFilterLabel": "값 선택", - "dateValueLabel": "일", - "dateValueError": "YYYY-MM-DD 형식 일치", - "dateValuePlaceholder": "YYYY-MM-DD", - "SelectOptions": { - "PastWeek": "지난 주", - "PastMonth": "지난 달", - "PastQuarter": "지난 3개월", - "PastYear": "작년", - "ComingWeek": "다음 주", - "ComingMonth": "다음 달", - "ComingQuarter": "다음 3개월", - "ComingYear": "내년", - "OnOrBefore": "해당 날짜 또는 이전", - "OnOrAfter": "해당 날짜 또는 이후" - }, - "FilterLabelForValue": { - "past_week": "지난 주", - "past_month": "지난 달", - "past_quarter": "지난 3개월", - "past_year": "작년", - "coming_week": "다음 주", - "coming_month": "다음 달", - "coming_quarter": "다음 3개월", - "coming_year": "내년", - "on_or_before": "{date} 전", - "on_or_after": "{date} 후" - } - }, "showingTotalCount": "{totalItemsCount} {resource}의 {itemsCount} 표시", "allFilteredItemsSelected": "이 필터의 모든 {itemsLength}+ {resourceNamePlural}이(가) 선택됩니다.", "selectAllFilteredItems": "이 필터의 모든 {itemsLength}+ {resourceNamePlural} 선택" diff --git a/locales/nb.json b/locales/nb.json index 63f6e0485b4..e8f72dfdb5f 100644 --- a/locales/nb.json +++ b/locales/nb.json @@ -187,48 +187,6 @@ "moreActionsActivatorLabel": "Flere handlinger", "warningMessage": "For å gi en bedre brukeropplevelse. Det bør ikke være mer enn {maxPromotedActions} promoterte handlinger." }, - "FilterCreator": { - "filterButtonLabel": "Filter", - "selectFilterKeyPlaceholder": "Velg et filter", - "addFilterButtonLabel": "Legg til filter", - "showAllWhere": "Vis alle {resourceNamePlural} der:" - }, - "FilterControl": { - "textFieldLabel": "Søk {resourceNamePlural}" - }, - "FilterValueSelector": { - "selectFilterValuePlaceholder": "Velg et filter" - }, - "DateSelector": { - "dateFilterLabel": "Velg en verdi", - "dateValueLabel": "Dato", - "dateValueError": "Match formatet ÅÅÅÅ-MM-DD", - "dateValuePlaceholder": "ÅÅÅÅ-MM-DD", - "SelectOptions": { - "PastWeek": "i løpet av den siste uken", - "PastMonth": "i løpet av den siste måneden", - "PastQuarter": "i løpet av de siste 3 månedene", - "PastYear": "i løpet av det siste året", - "ComingWeek": "neste uke", - "ComingMonth": "neste måned", - "ComingQuarter": "i løpet av de neste 3 månedene", - "ComingYear": "i løpet av det neste året", - "OnOrBefore": "på eller før", - "OnOrAfter": "på eller etter" - }, - "FilterLabelForValue": { - "past_week": "i løpet av den siste uken", - "past_month": "i løpet av den siste måneden", - "past_quarter": "i løpet av de siste 3 månedene", - "past_year": "i løpet av det siste året", - "coming_week": "neste uke", - "coming_month": "neste måned", - "coming_quarter": "i løpet av de neste 3 månedene", - "coming_year": "i løpet av det neste året", - "on_or_before": "før {date}", - "on_or_after": "etter {date}" - } - }, "showingTotalCount": "Viser {itemsCount} av {totalItemsCount} {resource}", "allFilteredItemsSelected": "Alle {itemsLength}+ {resourceNamePlural} i dette filteret er valgt.", "selectAllFilteredItems": "Velg alle {itemsLength}+ {resourceNamePlural} i dette filteret" diff --git a/locales/nl.json b/locales/nl.json index cd171e1253c..6c76c6a790b 100644 --- a/locales/nl.json +++ b/locales/nl.json @@ -187,48 +187,6 @@ "moreActionsActivatorLabel": "Meer acties", "warningMessage": "Voor een betere gebruikerservaring. Er een maximum van {maxPromotedActions} gepromote acties." }, - "FilterCreator": { - "filterButtonLabel": "Filter", - "selectFilterKeyPlaceholder": "Selecteer een filter...", - "addFilterButtonLabel": "Filter toevoegen", - "showAllWhere": "Toon alle {resourceNamePlural} waar:" - }, - "FilterControl": { - "textFieldLabel": "{resourceNamePlural} zoeken" - }, - "FilterValueSelector": { - "selectFilterValuePlaceholder": "Selecteer een filter..." - }, - "DateSelector": { - "dateFilterLabel": "Selecteer een waarde", - "dateValueLabel": "Datum", - "dateValueError": "Overeenkomen met indelen YYYY-MM-DD", - "dateValuePlaceholder": "JJJJ-MM-DD", - "SelectOptions": { - "PastWeek": "in de afgelopen week", - "PastMonth": "in de afgelopen maand", - "PastQuarter": "in de afgelopen 3 maanden", - "PastYear": "in het afgelopen jaar", - "ComingWeek": "volgende week", - "ComingMonth": "volgende maand", - "ComingQuarter": "in de komende 3 maanden", - "ComingYear": "in het komend jaar", - "OnOrBefore": "op of voor", - "OnOrAfter": "op of na" - }, - "FilterLabelForValue": { - "past_week": "in de afgelopen week", - "past_month": "in de afgelopen maand", - "past_quarter": "in de afgelopen 3 maanden", - "past_year": "in het afgelopen jaar", - "coming_week": "volgende week", - "coming_month": "volgende maand", - "coming_quarter": "in de komende 3 maanden", - "coming_year": "in het komend jaar", - "on_or_before": "vóór {date}", - "on_or_after": "na {date}" - } - }, "showingTotalCount": "{itemsCount} weergeven van {totalItemsCount} {resource}", "allFilteredItemsSelected": "Alle {itemsLength}+ {resourceNamePlural} in dit filter zijn geselecteerd.", "selectAllFilteredItems": "Selecteer alle {itemsLength}+ {resourceNamePlural} in dit filter." diff --git a/locales/pl.json b/locales/pl.json index aac2e2d4b1a..c5c7d63f2b6 100644 --- a/locales/pl.json +++ b/locales/pl.json @@ -187,48 +187,6 @@ "moreActionsActivatorLabel": "Więcej czynności", "warningMessage": "Aby zapewnić większy komfort użytkowania, maksymalna liczba promowanych czynności powinna wynosić tylko {maxPromotedActions}." }, - "FilterCreator": { - "filterButtonLabel": "Filtr", - "selectFilterKeyPlaceholder": "Wybierz filtr…", - "addFilterButtonLabel": "Dodaj filtr", - "showAllWhere": "Pokaż wszystkie {resourceNamePlural}, gdzie:" - }, - "FilterControl": { - "textFieldLabel": "Szukaj {resourceNamePlural}" - }, - "FilterValueSelector": { - "selectFilterValuePlaceholder": "Wybierz filtr…" - }, - "DateSelector": { - "dateFilterLabel": "Wybierz wartość", - "dateValueLabel": "Data", - "dateValueError": "Dopasuj format RRRR-MM-DD", - "dateValuePlaceholder": "RRRR-MM-DD", - "SelectOptions": { - "PastWeek": "w ostatnim tygodniu", - "PastMonth": "w ostatnim miesiącu", - "PastQuarter": "w ciągu ostatnich 3 miesięcy", - "PastYear": "w ostatnim roku", - "ComingWeek": "w następnym tygodniu", - "ComingMonth": "w następnym miesiącu", - "ComingQuarter": "w następnych 3 miesiącach", - "ComingYear": "w następnym roku", - "OnOrBefore": "w tym dniu lub wcześniej", - "OnOrAfter": "w tym dniu lub po" - }, - "FilterLabelForValue": { - "past_week": "w ostatnim tygodniu", - "past_month": "w ostatnim miesiącu", - "past_quarter": "w ciągu ostatnich 3 miesięcy", - "past_year": "w ostatnim roku", - "coming_week": "w następnym tygodniu", - "coming_month": "w następnym miesiącu", - "coming_quarter": "w następnych 3 miesiącach", - "coming_year": "w następnym roku", - "on_or_before": "przed {date}", - "on_or_after": "po {date}" - } - }, "showingTotalCount": "Wyświetlanie {itemsCount} z {totalItemsCount} {resource}", "allFilteredItemsSelected": "Wszystkie {itemsLength}+ {resourceNamePlural} w tym filtrze są zaznaczone.", "selectAllFilteredItems": "Wybierz wszystkie {itemsLength}+ {resourceNamePlural} w tym filtrze" diff --git a/locales/pt-BR.json b/locales/pt-BR.json index 361bcaec97e..4b9537e7a16 100644 --- a/locales/pt-BR.json +++ b/locales/pt-BR.json @@ -103,8 +103,8 @@ "actionTitleImage": "Adicionar imagem", "actionHintFile": "ou soltar arquivo para carregar", "actionHintImage": "ou soltar imagem para carregar", - "labelFile": "Carregar arquivo", - "labelImage": "Carregar imagem" + "labelFile": "Fazer upload de arquivo", + "labelImage": "Fazer upload de imagem" }, "allowMultiple": { "overlayTextFile": "Soltar arquivos para carregar", @@ -113,8 +113,8 @@ "actionTitleImage": "Adicionar imagens", "actionHintFile": "ou soltar arquivos para carregar", "actionHintImage": "ou soltar imagens para carregar", - "labelFile": "Carregar arquivos", - "labelImage": "Carregar imagens" + "labelFile": "Fazer upload de arquivos", + "labelImage": "Fazer upload de imagens" } }, "EmptySearchResult": { @@ -187,48 +187,6 @@ "moreActionsActivatorLabel": "Mais ações", "warningMessage": "Para oferecer uma melhor experiência ao usuário, deve haver apenas {maxPromotedActions} ações promovidas, no máximo." }, - "FilterCreator": { - "filterButtonLabel": "Filtrar", - "selectFilterKeyPlaceholder": "Selecione um filtro...", - "addFilterButtonLabel": "Adicionar filtro", - "showAllWhere": "Exibir todo {resourceNamePlural} no qual:" - }, - "FilterControl": { - "textFieldLabel": "Pesquisar {resourceNamePlural}" - }, - "FilterValueSelector": { - "selectFilterValuePlaceholder": "Selecione um filtro..." - }, - "DateSelector": { - "dateFilterLabel": "Selecione um valor", - "dateValueLabel": "Data", - "dateValueError": "Compatível com o formato AAAA-MM-DD", - "dateValuePlaceholder": "AAAA-MM-DD", - "SelectOptions": { - "PastWeek": "na última semana", - "PastMonth": "no último mês", - "PastQuarter": "nos últimos 3 meses", - "PastYear": "no último ano", - "ComingWeek": "na próxima semana", - "ComingMonth": "no próximo mês", - "ComingQuarter": "nos próximos 3 meses", - "ComingYear": "no próximo ano", - "OnOrBefore": "em ou antes de", - "OnOrAfter": "em ou depois de" - }, - "FilterLabelForValue": { - "past_week": "na última semana", - "past_month": "no último mês", - "past_quarter": "nos últimos 3 meses", - "past_year": "no último ano", - "coming_week": "na próxima semana", - "coming_month": "no próximo mês", - "coming_quarter": "nos próximos 3 meses", - "coming_year": "no próximo ano", - "on_or_before": "antes de {date}", - "on_or_after": "depois de {date}" - } - }, "showingTotalCount": "Mostrando {itemsCount} de {totalItemsCount} {resource}", "allFilteredItemsSelected": "Todos os {itemsLength} + {resourceNamePlural} neste filtro estão selecionados.", "selectAllFilteredItems": "Selecionar todos os {itemsLength} + {resourceNamePlural} neste filtro" diff --git a/locales/pt-PT.json b/locales/pt-PT.json index cfe83a4ec3a..fc7812c24b3 100644 --- a/locales/pt-PT.json +++ b/locales/pt-PT.json @@ -187,48 +187,6 @@ "moreActionsActivatorLabel": "Mais ações", "warningMessage": "Para oferecer uma melhor experiência de utilizador. Deve existir apenas um máximo de {maxPromotedActions} ações promovidas." }, - "FilterCreator": { - "filterButtonLabel": "Filtro", - "selectFilterKeyPlaceholder": "Selecione um filtro...", - "addFilterButtonLabel": "Adicionar filtro", - "showAllWhere": "Mostrar todos os {resourceNamePlural} nos quais:" - }, - "FilterControl": { - "textFieldLabel": "Pesquisar {resourceNamePlural}" - }, - "FilterValueSelector": { - "selectFilterValuePlaceholder": "Selecione um filtro..." - }, - "DateSelector": { - "dateFilterLabel": "Selecione um valor", - "dateValueLabel": "Data", - "dateValueError": "Compatível com o formato AAAA-MM-DD", - "dateValuePlaceholder": "AAAA-MM-DD", - "SelectOptions": { - "PastWeek": "na última semana", - "PastMonth": "no último mês", - "PastQuarter": "nos últimos 3 meses", - "PastYear": "no último ano", - "ComingWeek": "na próxima semana", - "ComingMonth": "no próximo mês", - "ComingQuarter": "nos próximos 3 meses", - "ComingYear": "no próximo ano", - "OnOrBefore": "em ou antes de", - "OnOrAfter": "em ou depois de" - }, - "FilterLabelForValue": { - "past_week": "na última semana", - "past_month": "no último mês", - "past_quarter": "nos últimos 3 meses", - "past_year": "no último ano", - "coming_week": "na próxima semana", - "coming_month": "no próximo mês", - "coming_quarter": "nos próximos 3 meses", - "coming_year": "no próximo ano", - "on_or_before": "antes de {date}", - "on_or_after": "depois de {date}" - } - }, "showingTotalCount": "Mostrar {itemsCount} de {totalItemsCount} {resource}", "allFilteredItemsSelected": "Todos os {itemsLength} + {resourceNamePlural} neste filtro estão selecionados.", "selectAllFilteredItems": "Selecionar todos os {itemsLength}+ {resourceNamePlural} neste filtro" diff --git a/locales/sv.json b/locales/sv.json index b0f33da275b..2ac1214d4de 100644 --- a/locales/sv.json +++ b/locales/sv.json @@ -187,48 +187,6 @@ "moreActionsActivatorLabel": "Fler åtgärder", "warningMessage": "För att tillhandahålla en bättre användarupplevelse bör det vara maximalt {maxPromotedActions} föredragna åtgärder." }, - "FilterCreator": { - "filterButtonLabel": "Filter", - "selectFilterKeyPlaceholder": "Välj ett filter ...", - "addFilterButtonLabel": "Lägg till filter", - "showAllWhere": "Visa alla {resourceNamePlural} där:" - }, - "FilterControl": { - "textFieldLabel": "Sök {resourceNamePlural}" - }, - "FilterValueSelector": { - "selectFilterValuePlaceholder": "Välj ett filter ..." - }, - "DateSelector": { - "dateFilterLabel": "Välj ett värde", - "dateValueLabel": "Datum", - "dateValueError": "Matcha formatet ÅÅÅÅ-MM-DD", - "dateValuePlaceholder": "ÅÅÅÅ-MM-DD", - "SelectOptions": { - "PastWeek": "under den senaste veckan", - "PastMonth": "under den senaste månaden", - "PastQuarter": "under de senaste 3 månaderna", - "PastYear": "under det senaste året", - "ComingWeek": "nästa vecka", - "ComingMonth": "nästa månad", - "ComingQuarter": "under de närmaste 3 månaderna", - "ComingYear": "under det närmaste året", - "OnOrBefore": "på eller innan", - "OnOrAfter": "på eller efter" - }, - "FilterLabelForValue": { - "past_week": "under den senaste veckan", - "past_month": "under den senaste månaden", - "past_quarter": "under de senaste 3 månaderna", - "past_year": "under det senaste året", - "coming_week": "nästa vecka", - "coming_month": "nästa månad", - "coming_quarter": "under de kommande 3 månaderna", - "coming_year": "under det kommande året", - "on_or_before": "före {date}", - "on_or_after": "efter {date}" - } - }, "showingTotalCount": "Visar {itemsCount} av {totalItemsCount} {resource}", "allFilteredItemsSelected": "Alla {itemsLength} + {resourceNamePlural} i detta filter är valda.", "selectAllFilteredItems": "Välj alla {itemsLength} + {resourceNamePlural} i det här filtret" diff --git a/locales/th.json b/locales/th.json index 0114e02f8da..11f9d8144a9 100644 --- a/locales/th.json +++ b/locales/th.json @@ -187,48 +187,6 @@ "moreActionsActivatorLabel": "การดำเนินการเพิ่มเติม", "warningMessage": "ในการมอบประสบการณ์ใช้งานที่ดียิ่งขึ้นแก่ผู้ใช้ การดำเนินการที่ได้รับการโปรโมทไม่ควรมีมากเกินไปกว่า {maxPromotedActions} รายการ" }, - "FilterCreator": { - "filterButtonLabel": "ตัวกรอง", - "selectFilterKeyPlaceholder": "เลือกตัวกรอง...", - "addFilterButtonLabel": "เพิ่มตัวกรอง", - "showAllWhere": "แสดง {resourceNamePlural} ทั้งหมดที่:" - }, - "FilterControl": { - "textFieldLabel": "ค้นหา {resourceNamePlural}" - }, - "FilterValueSelector": { - "selectFilterValuePlaceholder": "เลือกตัวกรอง..." - }, - "DateSelector": { - "dateFilterLabel": "เลือกค่า", - "dateValueLabel": "วันที่", - "dateValueError": "จับคู่รูปแบบ ปปปป-ดด-วว", - "dateValuePlaceholder": "ปปปป-ดด-วว", - "SelectOptions": { - "PastWeek": "ในสัปดาห์ที่ผ่านมา", - "PastMonth": "ในเดือนที่ผ่านมา", - "PastQuarter": "ใน 3 เดือนที่ผ่านมา", - "PastYear": "ในปีที่ผ่านมา", - "ComingWeek": "สัปดาห์ถัดไป", - "ComingMonth": "เดือนถัดไป", - "ComingQuarter": "ใน 3 เดือนถัดไป", - "ComingYear": "ในปีถัดไป", - "OnOrBefore": "ในวันดังกล่าวหรือก่อนหน้า", - "OnOrAfter": "ในวันดังกล่าวหรือหลังจาก" - }, - "FilterLabelForValue": { - "past_week": "ในสัปดาห์ที่ผ่านมา", - "past_month": "ในเดือนที่ผ่านมา", - "past_quarter": "ใน 3 เดือนที่ผ่านมา", - "past_year": "ในปีที่ผ่านมา", - "coming_week": "สัปดาห์ถัดไป", - "coming_month": "เดือนถัดไป", - "coming_quarter": "ใน 3 เดือนถัดไป", - "coming_year": "ในปีถัดไป", - "on_or_before": "ก่อน {date}", - "on_or_after": "หลัง {date}" - } - }, "showingTotalCount": "แสดง {itemsCount} ของ {totalItemsCount} {resource}", "allFilteredItemsSelected": "เลือก {itemsLength} + {resourceNamePlural} ทั้งหมดในตัวกรองนี้แล้ว", "selectAllFilteredItems": "เลือก {itemsLength} + {resourceNamePlural} ทั้งหมดในตัวกรองนี้" diff --git a/locales/tr.json b/locales/tr.json index 925220d85e9..c4216dccc59 100644 --- a/locales/tr.json +++ b/locales/tr.json @@ -187,48 +187,6 @@ "moreActionsActivatorLabel": "Diğer işlemler", "warningMessage": "Daha iyi bir kullanıcı deneyimi sunmak için. Öne çıkarılan maksimum işlem sayısı {maxPromotedActions} olmalıdır." }, - "FilterCreator": { - "filterButtonLabel": "Filtrele", - "selectFilterKeyPlaceholder": "Filtre seçin...", - "addFilterButtonLabel": "Filtre ekle", - "showAllWhere": "Şu özellikleri taşıyan tüm {resourceNamePlural} kaynağını göster:" - }, - "FilterControl": { - "textFieldLabel": "Arayın: {resourceNamePlural}" - }, - "FilterValueSelector": { - "selectFilterValuePlaceholder": "Filtre seçin..." - }, - "DateSelector": { - "dateFilterLabel": "Değer seçin", - "dateValueLabel": "Tarih", - "dateValueError": "YYYY-AA-GG biçimini eşleştir", - "dateValuePlaceholder": "YYYY-AA-GG", - "SelectOptions": { - "PastWeek": "geçtiğimiz hafta içinde", - "PastMonth": "geçtiğimiz ay içinde", - "PastQuarter": "geçtiğimiz 3 ay içinde", - "PastYear": "geçtiğimiz yıl içinde", - "ComingWeek": "önümüzdeki hafta", - "ComingMonth": "önümüzdeki ay", - "ComingQuarter": "önümüzdeki 3 ay içinde", - "ComingYear": "önümüzdeki yıl", - "OnOrBefore": "şu tarihte veya bundan önce:", - "OnOrAfter": "şu tarihte veya bundan sonra:" - }, - "FilterLabelForValue": { - "past_week": "geçtiğimiz hafta içinde", - "past_month": "geçtiğimiz ay içinde", - "past_quarter": "geçtiğimiz 3 ay içinde", - "past_year": "geçtiğimiz yıl içinde", - "coming_week": "önümüzdeki hafta", - "coming_month": "önümüzdeki ay", - "coming_quarter": "önümüzdeki 3 ay içinde", - "coming_year": "önümüzdeki yıl", - "on_or_before": "{date} tarihinden önce", - "on_or_after": "{date} tarihinden sonra" - } - }, "showingTotalCount": "{resource} için {totalItemsCount} üründen {itemsCount} tanesi gösteriliyor", "allFilteredItemsSelected": "Bu filtredeki tüm {itemsLength} + {resourceNamePlural} seçildi.", "selectAllFilteredItems": "Bu filtredeki tüm {itemsLength} + {resourceNamePlural} öğelerini seç" diff --git a/locales/vi.json b/locales/vi.json index 71bdc0bca3b..5d8f706e935 100644 --- a/locales/vi.json +++ b/locales/vi.json @@ -189,48 +189,6 @@ "actionsActivatorLabel": "Thao tác", "moreActionsActivatorLabel": "Thao tác khác", "warningMessage": "Để mang đến trải nghiệm tốt hơn cho người dùng. Chỉ nên có tối đa {maxPromotedActions} thao tác quảng cáo." - }, - "FilterCreator": { - "filterButtonLabel": "Bộ lọc", - "selectFilterKeyPlaceholder": "Chọn một bộ lọc...", - "addFilterButtonLabel": "Thêm bộ lọc", - "showAllWhere": "Hiển thị tất cả {resourceNamePlural}:" - }, - "FilterControl": { - "textFieldLabel": "Tìm {resourceNamePlural}" - }, - "FilterValueSelector": { - "selectFilterValuePlaceholder": "Chọn một bộ lọc..." - }, - "DateSelector": { - "dateFilterLabel": "Chọn một giá trị", - "dateValueLabel": "Ngày", - "dateValueError": "Trùng khớp định dạng DD-MM-YYYY", - "dateValuePlaceholder": "DD-MM-YYYY", - "SelectOptions": { - "PastWeek": "tuần trước", - "PastMonth": "tháng trước", - "PastQuarter": "3 tháng trước", - "PastYear": "năm ngoái", - "ComingWeek": "tuần sau", - "ComingMonth": "tháng sau", - "ComingQuarter": "3 tháng sau", - "ComingYear": "năm sau", - "OnOrBefore": "vào hoặc trước", - "OnOrAfter": "vào hoặc sau" - }, - "FilterLabelForValue": { - "past_week": "tuần trước", - "past_month": "tháng trước", - "past_quarter": "3 tháng trước", - "past_year": "năm ngoái", - "coming_week": "tuần sau", - "coming_month": "tháng sau", - "coming_quarter": "3 tháng sau", - "coming_year": "năm sau", - "on_or_before": "trước ngày {date}", - "on_or_after": "sau ngày {date}" - } } }, "SkeletonPage": { diff --git a/locales/zh-CN.json b/locales/zh-CN.json index 39da235f4bd..3c093eace17 100644 --- a/locales/zh-CN.json +++ b/locales/zh-CN.json @@ -187,48 +187,6 @@ "moreActionsActivatorLabel": "其他操作", "warningMessage": "为了提供更好的用户体验,最多只能有 {maxPromotedActions} 个推广操作。" }, - "FilterCreator": { - "filterButtonLabel": "筛选", - "selectFilterKeyPlaceholder": "选择筛选条件...", - "addFilterButtonLabel": "添加筛选条件", - "showAllWhere": "显示所有这些 {resourceNamePlural}:" - }, - "FilterControl": { - "textFieldLabel": "搜索 {resourceNamePlural}" - }, - "FilterValueSelector": { - "selectFilterValuePlaceholder": "选择筛选条件..." - }, - "DateSelector": { - "dateFilterLabel": "选择一个值", - "dateValueLabel": "日期", - "dateValueError": "匹配 YYYY-MM-DD 格式", - "dateValuePlaceholder": "YYYY-MM-DD", - "SelectOptions": { - "PastWeek": "过去一周", - "PastMonth": "过去 1 个月", - "PastQuarter": "过去 3 个月", - "PastYear": "过去一年", - "ComingWeek": "下周", - "ComingMonth": "下个月", - "ComingQuarter": "接下来的 3 个月", - "ComingYear": "接下来的一年", - "OnOrBefore": "截至", - "OnOrAfter": "自此以后" - }, - "FilterLabelForValue": { - "past_week": "过去一周", - "past_month": "过去 1 个月", - "past_quarter": "过去 3 个月", - "past_year": "过去一年", - "coming_week": "下周", - "coming_month": "下个月", - "coming_quarter": "接下来的 3 个月", - "coming_year": "接下来的一年", - "on_or_before": "{date} 之前", - "on_or_after": "{date} 之后" - } - }, "showingTotalCount": "显示 {itemsCount} 项 {resource}(共 {totalItemsCount} 项)", "allFilteredItemsSelected": "已选择此筛选器中的所有 {itemsLength}+ 个{resourceNamePlural}。", "selectAllFilteredItems": "选择此筛选器中的所有 {itemsLength}+ 个 {resourceNamePlural}" diff --git a/locales/zh-TW.json b/locales/zh-TW.json index 97b50bbe180..7e1dfc1d496 100644 --- a/locales/zh-TW.json +++ b/locales/zh-TW.json @@ -187,48 +187,6 @@ "moreActionsActivatorLabel": "更多動作", "warningMessage": "為提供更良好的使用者體驗,您一次舉辦的促銷活動應以 {maxPromotedActions} 項為限。" }, - "FilterCreator": { - "filterButtonLabel": "篩選", - "selectFilterKeyPlaceholder": "選擇篩選條件......", - "addFilterButtonLabel": "新增篩選條件", - "showAllWhere": "顯示符合以下條件的所有 {resourceNamePlural}:" - }, - "FilterControl": { - "textFieldLabel": "搜尋 {resourceNamePlural}" - }, - "FilterValueSelector": { - "selectFilterValuePlaceholder": "選擇篩選條件......" - }, - "DateSelector": { - "dateFilterLabel": "選擇一個值", - "dateValueLabel": "日期", - "dateValueError": "符合「YYYY-MM-DD」格式", - "dateValuePlaceholder": "YYYY-MM-DD", - "SelectOptions": { - "PastWeek": "上週", - "PastMonth": "上個月", - "PastQuarter": "過去 3 個月", - "PastYear": "去年", - "ComingWeek": "下週", - "ComingMonth": "下個月", - "ComingQuarter": "未來 3 個月", - "ComingYear": "明年", - "OnOrBefore": "當天或之前", - "OnOrAfter": "當天或之後" - }, - "FilterLabelForValue": { - "past_week": "上週", - "past_month": "上個月", - "past_quarter": "過去 3 個月", - "past_year": "去年", - "coming_week": "下週", - "coming_month": "下個月", - "coming_quarter": "未來 3 個月", - "coming_year": "明年", - "on_or_before": "{date} 之前", - "on_or_after": "{date} 之後" - } - }, "showingTotalCount": "顯示第 {itemsCount} 個 {resource},共 {totalItemsCount} 個", "allFilteredItemsSelected": "已選取套用此篩選條件後顯示的全部 {itemsLength}+ 個 {resourceNamePlural}。", "selectAllFilteredItems": "選取套用此篩選條件後顯示的全部 {itemsLength}+ 個 {resourceNamePlural}" diff --git a/package.json b/package.json index e68f4fa0f1a..3f1442d7eea 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@shopify/polaris", "description": "Shopify’s admin product component library", - "version": "7.5.0", + "version": "8.0.0", "private": false, "license": "SEE LICENSE IN LICENSE.md", "author": "Shopify ", @@ -70,14 +70,13 @@ "validate-tokens": "ajv validate -s src/tokens/schemas/token-group.json -d 'src/tokens/token-groups/*.json'" }, "dependencies": { - "@shopify/polaris-icons": "^4.11.0", + "@shopify/polaris-icons": "4.14.0", "@types/react": "^17.0.19", "@types/react-dom": "^17.0.9", "@types/react-transition-group": "^4.4.2", "focus-visible": "^5.2.0", "lodash": "^4.17.4", - "react-transition-group": "^4.4.2", - "serve": "^12.0.0" + "react-transition-group": "^4.4.2" }, "peerDependencies": { "react": "^16.14.0 || ^17.0.0", diff --git a/src/components/ActionMenu/components/SecondaryAction/SecondaryAction.scss b/src/components/ActionMenu/components/SecondaryAction/SecondaryAction.scss index 85ac2f432bf..a1b5ff17633 100644 --- a/src/components/ActionMenu/components/SecondaryAction/SecondaryAction.scss +++ b/src/components/ActionMenu/components/SecondaryAction/SecondaryAction.scss @@ -27,4 +27,22 @@ $breakpoint: 768px; @include focus-ring($border-width: 0); } } + + &.destructive { + a, + button { + @include recolor-icon(var(--p-icon-critical)); + color: var(--p-interactive-critical); + + // stylelint-disable-next-line selector-max-specificity + &:hover { + background-color: var(--p-surface-critical-subdued-hovered) !important; + } + + // stylelint-disable selector-max-specificity + &:active { + background-color: var(--p-surface-critical-subdued-pressed) !important; + } + } + } } diff --git a/src/components/ActionMenu/components/SecondaryAction/SecondaryAction.tsx b/src/components/ActionMenu/components/SecondaryAction/SecondaryAction.tsx index c56adc68fe5..d935d13fe5e 100644 --- a/src/components/ActionMenu/components/SecondaryAction/SecondaryAction.tsx +++ b/src/components/ActionMenu/components/SecondaryAction/SecondaryAction.tsx @@ -1,5 +1,6 @@ import React, {useEffect, useRef} from 'react'; +import {classNames} from '../../../../utilities/css'; import {Button} from '../../../Button'; import type {ButtonProps} from '../../../Button'; @@ -12,6 +13,7 @@ interface SecondaryAction extends ButtonProps { export function SecondaryAction({ children, + destructive, onAction, getOffsetWidth, ...rest @@ -25,7 +27,13 @@ export function SecondaryAction({ }, [getOffsetWidth]); return ( - + diff --git a/src/components/Autocomplete/components/MappedAction/MappedAction.tsx b/src/components/Autocomplete/components/MappedAction/MappedAction.tsx index c20750540e0..8175a440e71 100644 --- a/src/components/Autocomplete/components/MappedAction/MappedAction.tsx +++ b/src/components/Autocomplete/components/MappedAction/MappedAction.tsx @@ -86,7 +86,6 @@ export function MappedAction({ external, onAction, destructive, - isAction: true, }), [role, url, external, onAction, destructive], ); diff --git a/src/components/Autocomplete/components/MappedAction/tests/MappedAction.test.tsx b/src/components/Autocomplete/components/MappedAction/tests/MappedAction.test.tsx index e98fca7eaba..a279e646688 100644 --- a/src/components/Autocomplete/components/MappedAction/tests/MappedAction.test.tsx +++ b/src/components/Autocomplete/components/MappedAction/tests/MappedAction.test.tsx @@ -61,7 +61,6 @@ describe('MappedAction', () => { expect(mappedAction).toContainReactComponent(MappedActionContext.Provider, { value: { ...props, - isAction: true, }, }); }); @@ -174,7 +173,9 @@ describe('MappedAction', () => { ); expect(mappedAction).toContainReactComponent(MockComponent); - expect(mappedAction).not.toContainReactComponent(Icon, {source}); + expect(mappedAction).not.toContainReactComponent(Icon, { + source, + }); }); }); }); diff --git a/src/components/Badge/Badge.tsx b/src/components/Badge/Badge.tsx index 579f9dc0dd4..9e53f7189e7 100644 --- a/src/components/Badge/Badge.tsx +++ b/src/components/Badge/Badge.tsx @@ -7,14 +7,7 @@ import {VisuallyHidden} from '../VisuallyHidden'; import styles from './Badge.scss'; -type StatusDeprecated = 'attention'; -type Status = - | 'success' - | 'info' - | 'critical' - | 'warning' - | 'new' - | StatusDeprecated; +type Status = 'info' | 'success' | 'attention' | 'warning' | 'critical' | 'new'; type Progress = 'incomplete' | 'partiallyComplete' | 'complete'; type Size = 'small' | 'medium'; diff --git a/src/components/Banner/Banner.scss b/src/components/Banner/Banner.scss index 681188e5ee8..8c8b1f9f6df 100644 --- a/src/components/Banner/Banner.scss +++ b/src/components/Banner/Banner.scss @@ -242,7 +242,9 @@ &:focus > .Text { @include plain-button-backdrop; @include high-contrast-button-outline; + @include focus-ring($style: 'focused'); box-shadow: none; + background-color: transparent; } &:visited { @@ -251,6 +253,7 @@ } .Text { + @include focus-ring; box-shadow: 0 -2px 0 0 rgba(var(--pc-banner-rgb-text), 0.25) inset; will-change: box-shadow; transition: box-shadow var(--p-duration-200) var(--p-ease); diff --git a/src/components/ButtonGroup/ButtonGroup.scss b/src/components/ButtonGroup/ButtonGroup.scss index 6d6c5d40292..f6aadb0162b 100644 --- a/src/components/ButtonGroup/ButtonGroup.scss +++ b/src/components/ButtonGroup/ButtonGroup.scss @@ -36,6 +36,7 @@ z-index: var(--pc-button-group-item); margin-top: 0; margin-left: 0; + line-height: normal; &:not(:first-child) { margin-left: calc(-1 * var(--p-border-width-1)); diff --git a/src/components/ColorPicker/ColorPicker.scss b/src/components/ColorPicker/ColorPicker.scss index b8547d3fe80..2a9f74564a5 100644 --- a/src/components/ColorPicker/ColorPicker.scss +++ b/src/components/ColorPicker/ColorPicker.scss @@ -14,6 +14,9 @@ --pc-color-picker-z-index: 10; --pc-color-picker-adjustments: 20; --pc-color-picker-dragger: 30; + --pc-color-picker-inner-shadow: inset 0 0 2px 0 rgba(0, 0, 0, 0.5); + --pc-color-picker-dragger-shadow: inset 0 0.5px 2px 0 rgba(0, 0, 0, 0.4), + 0 0.5px 3px 0 rgba(0, 0, 0, 0.4); user-select: none; display: flex; } @@ -37,6 +40,7 @@ .Dragger { right: calc(0.5 * var(--pc-color-picker-dragger-size)); margin: 0; + box-shadow: var(--pc-color-picker-dragger-shadow); } .ColorLayer { @@ -63,6 +67,11 @@ &::after { background-image: linear-gradient(to top, black, transparent); + box-shadow: var(--pc-color-picker-inner-shadow); + } + + @media (-ms-high-contrast: active) { + outline: 1px solid windowText; } } @@ -79,6 +88,7 @@ border: var(--p-border-radius-1) solid var(--p-surface); border-radius: var(--p-border-radius-half); pointer-events: none; + box-shadow: var(--pc-color-picker-dragger-shadow); } $green: rgb(0, 255, 0); @@ -97,6 +107,24 @@ $huepicker-bottom-padding-start: calc( margin-left: var(--p-space-2); border-width: var(--p-border-radius-1); border-radius: calc(var(--pc-color-picker-size) * 0.5); + + &::after { + content: ''; + position: absolute; + z-index: var(--pc-color-picker-adjustments); + top: 0; + left: 0; + display: block; + height: 100%; + width: 100%; + pointer-events: none; + border-radius: calc(var(--pc-color-picker-size) * 0.5); + box-shadow: var(--pc-color-picker-inner-shadow); + } + + @media (-ms-high-contrast: active) { + outline: 1px solid windowText; + } } .HuePicker { diff --git a/src/components/DataTable/DataTable.scss b/src/components/DataTable/DataTable.scss index 840a4e8f5df..132537906c0 100644 --- a/src/components/DataTable/DataTable.scss +++ b/src/components/DataTable/DataTable.scss @@ -92,7 +92,7 @@ $breakpoint: 768px; .Cell-header { @include text-emphasis-normal; - border-bottom: var(--p-border-dark); + border-bottom: var(--p-border-divider); border-top: 0; } @@ -166,7 +166,7 @@ $breakpoint: 768px; .Cell-total { @include text-emphasis-strong; background: var(--p-surface-subdued); - border-bottom: var(--p-border-base); + border-bottom: var(--p-border-divider); } .Cell-total-footer { diff --git a/src/components/FooterHelp/FooterHelp.scss b/src/components/FooterHelp/FooterHelp.scss index c31baf0f95d..71bdd61e21c 100644 --- a/src/components/FooterHelp/FooterHelp.scss +++ b/src/components/FooterHelp/FooterHelp.scss @@ -12,22 +12,6 @@ } } -.Content { - display: inline-flex; - align-items: center; - padding: var(--p-space-5) var(--p-space-5) var(--p-space-5) var(--p-space-4); - width: 100%; - justify-content: center; - - @include page-content-when-not-fully-condensed { - width: auto; - } -} - -.Icon { - margin-right: var(--p-space-2); -} - .Text { @include text-style-input; } diff --git a/src/components/FooterHelp/FooterHelp.tsx b/src/components/FooterHelp/FooterHelp.tsx index e21a69aec99..757f818da3a 100644 --- a/src/components/FooterHelp/FooterHelp.tsx +++ b/src/components/FooterHelp/FooterHelp.tsx @@ -1,8 +1,4 @@ import React from 'react'; -import {InfoMinor} from '@shopify/polaris-icons'; - -import {classNames} from '../../utilities/css'; -import {Icon, IconProps} from '../Icon'; import styles from './FooterHelp.scss'; @@ -12,21 +8,9 @@ export interface FooterHelpProps { } export function FooterHelp({children}: FooterHelpProps) { - const className = classNames(styles.FooterHelp); - - const iconProps: IconProps = { - source: InfoMinor, - color: 'highlight', - }; - return ( -
-
-
- -
-
{children}
-
+
+
{children}
); } diff --git a/src/components/FooterHelp/README.md b/src/components/FooterHelp/README.md index e80538c41f9..3692308c81b 100644 --- a/src/components/FooterHelp/README.md +++ b/src/components/FooterHelp/README.md @@ -81,7 +81,7 @@ Use to direct merchants to more information related to the product or feature th ```jsx Learn more about{' '} - + fulfilling orders diff --git a/src/components/FooterHelp/tests/FooterHelp.test.tsx b/src/components/FooterHelp/tests/FooterHelp.test.tsx index 0e385a1b28a..1a0c27f18ca 100644 --- a/src/components/FooterHelp/tests/FooterHelp.test.tsx +++ b/src/components/FooterHelp/tests/FooterHelp.test.tsx @@ -1,8 +1,6 @@ import React from 'react'; -import {InfoMinor} from '@shopify/polaris-icons'; import {mountWithApp} from 'tests/utilities'; -import {Icon} from '../../Icon'; import {FooterHelp} from '../FooterHelp'; describe('', () => { @@ -14,11 +12,4 @@ describe('', () => { children, }); }); - - it('renders the help icon', () => { - const footerHelp = mountWithApp({children}); - expect(footerHelp).toContainReactComponent(Icon, { - source: InfoMinor, - }); - }); }); diff --git a/src/components/IndexTable/IndexTable.scss b/src/components/IndexTable/IndexTable.scss index 8f1d82ae4b8..242eeefce51 100644 --- a/src/components/IndexTable/IndexTable.scss +++ b/src/components/IndexTable/IndexTable.scss @@ -88,14 +88,14 @@ $loading-panel-height: 53px; .TableCell-first, .TableHeading-first { - filter: drop-shadow(1px 0 0 var(--p-divider)); + filter: drop-shadow(1px 0 0 var(--p-border-divider)); } // stylelint-disable-next-line selector-max-class, selector-max-combinators .TableCell-first + .TableCell, .TableHeading-second { @include breakpoint-after($breakpoint-small) { - filter: drop-shadow(1px 0 0 var(--p-divider)); + filter: drop-shadow(1px 0 0 var(--p-border-divider)); } } @@ -104,7 +104,7 @@ $loading-panel-height: 53px; .TableHeading-second, .TableCell:first-child { visibility: visible; - filter: drop-shadow(1px 0 0 var(--p-divider)); + filter: drop-shadow(1px 0 0 var(--p-border-divider)); } } } @@ -112,7 +112,7 @@ $loading-panel-height: 53px; .TableRow { background-color: var(--p-surface); cursor: pointer; - filter: drop-shadow(0 -1px 0 var(--p-divider)); + filter: drop-shadow(0 -1px 0 var(--p-border-divider)); &.TableRow-unclickable { cursor: auto; @@ -278,7 +278,7 @@ $loading-panel-height: 53px; .TableCell:last-child, .TableHeading-last { @include breakpoint-after($breakpoint-small) { - filter: drop-shadow(-1px 0 0 var(--p-divider)); + filter: drop-shadow(-1px 0 0 var(--p-border-divider)); } } } @@ -353,8 +353,8 @@ $loading-panel-height: 53px; } .StickyTableColumnHeader-isScrolling { - box-shadow: 1px 1px 0 0 var(--p-divider), 1px 0 1px 1px rgba(63, 63, 68, 0.05), - 1px 0 3px 0 rgba(63, 63, 68, 0.15); + box-shadow: 1px 1px 0 0 var(--p-border-divider), + 1px 0 1px 1px rgba(63, 63, 68, 0.05), 1px 0 3px 0 rgba(63, 63, 68, 0.15); } .StickyTableHeadings { diff --git a/src/components/Listbox/components/Action/Action.scss b/src/components/Listbox/components/Action/Action.scss index 882f18f5a70..a15f33ca239 100644 --- a/src/components/Listbox/components/Action/Action.scss +++ b/src/components/Listbox/components/Action/Action.scss @@ -5,6 +5,10 @@ flex: 1; } +.ActionDivider { + margin-bottom: var(--p-space-1); +} + .Icon { padding-right: var(--p-space-2); } diff --git a/src/components/Listbox/components/Action/Action.tsx b/src/components/Listbox/components/Action/Action.tsx index 9494eb969fc..03adaf4dbbb 100644 --- a/src/components/Listbox/components/Action/Action.tsx +++ b/src/components/Listbox/components/Action/Action.tsx @@ -4,6 +4,8 @@ import {Icon} from '../../../Icon'; import type {IconProps} from '../../../Icon'; import {Option, OptionProps} from '../Option'; import {TextOption} from '../TextOption'; +import {classNames} from '../../../../utilities/css'; +import {ActionContext} from '../../../../utilities/listbox/context'; import styles from './Action.scss'; @@ -12,7 +14,7 @@ interface ActionProps extends OptionProps { } export function Action(props: ActionProps) { - const {selected, disabled, children, icon} = props; + const {selected, disabled, children, icon, divider} = props; const iconMarkup = icon && (
@@ -20,14 +22,18 @@ export function Action(props: ActionProps) {
); + const className = classNames(styles.Action, divider && styles.ActionDivider); + return (