diff --git a/.all-contributorsrc b/.all-contributorsrc index ac4049aa7f1e..f28018e53114 100644 --- a/.all-contributorsrc +++ b/.all-contributorsrc @@ -867,6 +867,16 @@ "code" ] }, + { + "login": "NashJames", + "name": "James Nash", + "avatar_url": "https://avatars.githubusercontent.com/u/37304960?v=4", + "profile": "https://github.com/NashJames", + "contributions": [ + "code", + "doc" + ] + }, { "login": "jakubfaliszewski", "name": "Jakub Faliszewski", diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 000000000000..77bc4345aeaf --- /dev/null +++ b/.gitattributes @@ -0,0 +1,10 @@ +# Auto detect text files and perform LF normalization +* text=auto + +# These files should have specific line endings +*.sh text eol=lf +*.bat text eol=crlf + +# These files are binary and should be left untouched +# (binary is a macro for -text -diff) +*.jpeg binary diff --git a/.github/CONTRIBUTING.md b/.github/CONTRIBUTING.md index 3e3211ea1d44..e88646a25f26 100644 --- a/.github/CONTRIBUTING.md +++ b/.github/CONTRIBUTING.md @@ -29,6 +29,7 @@ installed: version manager for Node. - Git - [Yarn](https://yarnpkg.com/en/docs/install) +- [WSL](../docs/guides/setup/windows.md) (Windows Only) If you're using Windows, there are some [additional steps](https://github.com/carbon-design-system/carbon/blob/main/docs/guides/setup/windows.md) @@ -163,15 +164,15 @@ run the following commands from the root of the repo: ```sh # Add new contributor , who made a contribution of type -all-contributors add +yarn all-contributors add # Example: -all-contributors add tw15egan code,doc +yarn all-contributors add tw15egan code,doc ``` Then, you'll need to generate the updated `all-contributors` table by running ```sh -all-contributors generate +yarn all-contributors generate ``` ### 8. Make a pull request diff --git a/CODEOWNERS b/CODEOWNERS index d723394cbf6c..83fce03857d0 100644 --- a/CODEOWNERS +++ b/CODEOWNERS @@ -2,11 +2,11 @@ * @carbon-design-system/developers-system # Core icons and pictograms -/packages/icons/src/svg/ @laurenmrice @conradennis @dudley-ibm @carbon-design-system/developers-system -/packages/pictograms/src/svg/ @laurenmrice @conradennis @dudley-ibm @carbon-design-system/developers-system +/packages/icons/src/svg/ @laurenmrice @carbon-design-system/brand-icons @carbon-design-system/developers-system +/packages/pictograms/src/svg/ @laurenmrice @carbon-design-system/brand-pictograms @carbon-design-system/developers-system # Angular icons -/packages/icons-angular/ @cal-smith @carbon-design-system/developers-system +/packages/icons-angular/ @carbon-design-system/developers-system # Brand /packages/colors/artifacts/ @lisalind-ibm diff --git a/README.md b/README.md index e3e57c73af63..4ccd60e2d208 100644 --- a/README.md +++ b/README.md @@ -196,6 +196,7 @@ check out our [Contributing Guide](/.github/CONTRIBUTING.md) and our
Zhen Wang

๐Ÿ’ป ๐Ÿ“–
Cathal Kenneally

๐Ÿ’ป
Joel Humberto Gรณmez Paredes

๐Ÿ’ป +
James Nash

๐Ÿ’ป ๐Ÿ“–
Jakub Faliszewski

๐Ÿ’ป diff --git a/docs/guides/dns.md b/docs/guides/dns.md new file mode 100644 index 000000000000..07f43f20fbbe --- /dev/null +++ b/docs/guides/dns.md @@ -0,0 +1,26 @@ +# DNS + +> This documentation covers the ways we set DNS for our website + +## Website + +We use GitHub Pages to publish our website and make this website available under +https://carbondesignsystem.com. + +In order to do so, we have the following checklist in terms of what the project +must do on GitHub along with the DNS configuration through our DNS provider. + +**Checklist** + +- The GitHub repository has enabled GitHub Pages +- The repository has published the site under the `gh-pages` branch +- The `gh-pages` branch has a CNAME record for `carbondesignsystem.com` +- The DNS provider has A records for the apex domain + - [IP Addresses for GitHub Pages](https://docs.github.com/en/pages/configuring-a-custom-domain-for-your-github-pages-site/managing-a-custom-domain-for-your-github-pages-site#configuring-an-apex-domain) +- The DNS provider has a CNAME record that points to + carbon-design-system.github.io + +**Links & Resources** + +- https://docs.github.com/en/pages/configuring-a-custom-domain-for-your-github-pages-site/managing-a-custom-domain-for-your-github-pages-site#configuring-an-apex-domain-and-the-www-subdomain-variant +- https://github.blog/changelog/2021-04-08-github-pages-can-now-automatically-secure-the-www-variant-of-your-custom-domain/ diff --git a/docs/guides/setup/windows.md b/docs/guides/setup/windows.md index 6f1f5ddcd5ab..51eafe66e630 100644 --- a/docs/guides/setup/windows.md +++ b/docs/guides/setup/windows.md @@ -46,3 +46,21 @@ but can be unexpected. 15. In the root folder of your freshly cloned repo install and build - `yarn install` - `yarn build` + +## Commits on Windows 10 + +Unfortunately, there is a known bug on Windows GitHub Desktop with pre-commit +hooks. The current workaround is to use a `--no-verify` tag on git CLI. + +To commit all staged changes: + +``` +git commit -am "commit message" --no-verify +``` + +To commit specific files: + +``` +git add file_name +git commit -m "commit message" --no-verify +``` diff --git a/packages/react/carbon.yml b/packages/react/carbon.yml new file mode 100644 index 000000000000..dd238afee174 --- /dev/null +++ b/packages/react/carbon.yml @@ -0,0 +1,664 @@ +# yaml-language-server: $schema=https://unpkg.com/@carbon-platform/schemas@v1/carbon-resources.schema.json +library: + id: carbon-react + name: Carbon React + description: React implementation of Carbon Components. + externalDocsUrl: https://react.carbondesignsystem.com + inherits: carbon-styles +assets: + accordion: + status: stable + externalDocsUrl: https://www.carbondesignsystem.com/components/accordion/usage + framework: react + demoLinks: + - type: storybook + name: Storybook + action: link + url: https://react.carbondesignsystem.com/?path=/docs/components-accordion + aspect-ratio: + status: stable + framework: react + demoLinks: + - type: storybook + name: Storybook + action: link + url: https://react.carbondesignsystem.com/?path=/docs/components-aspectratio + breadcrumb: + status: stable + externalDocsUrl: https://www.carbondesignsystem.com/components/breadcrumb/usage + framework: react + demoLinks: + - type: storybook + name: Storybook + action: link + url: https://react.carbondesignsystem.com/?path=/docs/components-breadcrumb + button: + status: stable + externalDocsUrl: https://www.carbondesignsystem.com/components/button/usage + framework: react + demoLinks: + - type: storybook + name: Storybook + action: link + url: https://react.carbondesignsystem.com/?path=/docs/components-button + checkbox: + status: stable + externalDocsUrl: https://www.carbondesignsystem.com/components/checkbox/usage + framework: react + demoLinks: + - type: storybook + name: Storybook + action: link + url: https://react.carbondesignsystem.com/?path=/docs/components-checkbox + code-snippet: + status: stable + externalDocsUrl: https://www.carbondesignsystem.com/components/code-snippet/usage + framework: react + demoLinks: + - type: storybook + name: Storybook + action: link + url: https://react.carbondesignsystem.com/?path=/docs/components-codesnippet + combo-box: + status: stable + framework: react + demoLinks: + - type: storybook + name: Storybook + action: link + url: https://react.carbondesignsystem.com/?path=/docs/components-combobox + composed-modal: + name: Composed modal + framework: react + status: stable + type: component + platform: web + thumbnailPath: ./thumbnails/composed-modal.svg + demoLinks: + - type: storybook + name: Storybook + action: link + url: https://react.carbondesignsystem.com/?path=/docs/components-composedmodal + tags: + - input-control + content-switcher: + status: stable + externalDocsUrl: https://www.carbondesignsystem.com/components/content-switcher/usage + framework: react + demoLinks: + - type: storybook + name: Storybook + action: link + url: https://react.carbondesignsystem.com/?path=/docs/components-contentswitcher + copy-button: + status: stable + framework: react + demoLinks: + - type: storybook + name: Storybook + action: link + url: https://react.carbondesignsystem.com/?path=/docs/components-copybutton + data-table: + status: stable + externalDocsUrl: https://www.carbondesignsystem.com/components/data-table/usage + framework: react + demoLinks: + - type: storybook + name: Storybook + action: link + url: https://react.carbondesignsystem.com/?path=/docs/components-datatable + date-picker: + status: stable + externalDocsUrl: https://www.carbondesignsystem.com/components/date-picker/usage + framework: react + demoLinks: + - type: storybook + name: Storybook + action: link + url: https://react.carbondesignsystem.com/?path=/docs/components-datepicker + dropdown: + status: stable + externalDocsUrl: https://www.carbondesignsystem.com/components/dropdown/usage + framework: react + demoLinks: + - type: storybook + name: Storybook + action: link + url: https://react.carbondesignsystem.com/?path=/docs/components-dropdown + error-boundary: + name: Error boundary + framework: react + status: stable + type: component + platform: web + thumbnailPath: ./thumbnails/error-boundary.svg + demoLinks: + - type: storybook + name: Storybook + action: link + url: https://react.carbondesignsystem.com/?path=/docs/components-errorboundary + tags: + - system-feedback + file-uploader: + status: stable + externalDocsUrl: https://www.carbondesignsystem.com/components/file-uploader/usage + framework: react + demoLinks: + - type: storybook + name: Storybook + action: link + url: https://react.carbondesignsystem.com/?path=/docs/components-fileuploader--file-uploader + flex-grid: + name: Flex grid + framework: react + status: stable + type: component + platform: web + thumbnailPath: ./thumbnails/flex-grid.svg + demoLinks: + - type: storybook + name: Storybook + action: link + url: https://react.carbondesignsystem.com/?path=/docs/components-flexgrid + tags: + - shell + form: + status: stable + externalDocsUrl: https://www.carbondesignsystem.com/components/form/usage + framework: react + demoLinks: + - type: storybook + name: Storybook + action: link + url: https://react.carbondesignsystem.com/?path=/docs/components-form + form-group: + name: Form group + framework: react + status: stable + type: component + platform: web + thumbnailPath: ./thumbnails/form-group.svg + demoLinks: + - type: storybook + name: Storybook + action: link + url: https://react.carbondesignsystem.com/?path=/docs/components-formgroup + tags: + - form + icon-button: + name: Icon button + framework: react + status: stable + type: component + platform: web + thumbnailPath: ./thumbnails/icon-button.svg + demoLinks: + - type: storybook + name: Storybook + action: link + url: https://react.carbondesignsystem.com/?path=/docs/components-iconbutton + tags: + - input-control + - media + inline-loading: + status: stable + externalDocsUrl: https://www.carbondesignsystem.com/components/inline-loading/usage + framework: react + demoLinks: + - type: storybook + name: Storybook + action: link + url: https://react.carbondesignsystem.com/?path=/docs/components-inlineloading + layer: + name: Layer + framework: react + status: stable + type: component + platform: web + thumbnailPath: ./thumbnails/layer.svg + demoLinks: + - type: storybook + name: Storybook + action: link + url: https://react.carbondesignsystem.com/?path=/docs/components-layer + tags: + - shell + link: + status: stable + externalDocsUrl: https://www.carbondesignsystem.com/components/link/usage + framework: react + demoLinks: + - type: storybook + name: Storybook + action: link + url: https://react.carbondesignsystem.com/?path=/docs/components-link + loading: + status: stable + externalDocsUrl: https://www.carbondesignsystem.com/components/loading/usage + framework: react + demoLinks: + - type: storybook + name: Storybook + action: link + url: https://react.carbondesignsystem.com/?path=/docs/components-loading + modal: + status: stable + externalDocsUrl: https://www.carbondesignsystem.com/components/modal/usage + framework: react + demoLinks: + - type: storybook + name: Storybook + action: link + url: https://react.carbondesignsystem.com/?path=/docs/components-modal + multiselect: + status: stable + externalDocsUrl: https://www.carbondesignsystem.com/components/dropdown/usage/#multiselect + framework: react + demoLinks: + - type: storybook + name: Storybook + action: link + url: https://react.carbondesignsystem.com/?path=/docs/components-multiselect + notification: + status: stable + externalDocsUrl: https://www.carbondesignsystem.com/components/notification/usage + framework: react + demoLinks: + - type: storybook + name: Storybook + action: link + url: https://react.carbondesignsystem.com/?path=/docs/components-notifications + number-input: + status: stable + externalDocsUrl: https://www.carbondesignsystem.com/components/number-input/usage + framework: react + demoLinks: + - type: storybook + name: Storybook + action: link + url: https://react.carbondesignsystem.com/?path=/docs/components-numberinput + ordered-list: + name: Ordered list + framework: react + status: stable + type: component + platform: web + thumbnailPath: ./thumbnails/ordered-list.svg + demoLinks: + - type: storybook + name: Storybook + action: link + url: https://react.carbondesignsystem.com/?path=/docs/components-orderedlist + tags: + - data-display + overflow-menu: + status: stable + externalDocsUrl: https://www.carbondesignsystem.com/components/overflow-menu/usage + framework: react + demoLinks: + - type: storybook + name: Storybook + action: link + url: https://react.carbondesignsystem.com/?path=/docs/components-overflowmenu + pagination: + status: stable + externalDocsUrl: https://www.carbondesignsystem.com/components/pagination/usage + framework: react + demoLinks: + - type: storybook + name: Storybook + action: link + url: https://react.carbondesignsystem.com/?path=/docs/components-pagination + pagination-nav: + status: stable + framework: react + demoLinks: + - type: storybook + name: Storybook + action: link + url: https://react.carbondesignsystem.com/?path=/docs/components-paginationnav + popover: + status: stable + framework: react + externalDocsUrl: https://www.carbondesignsystem.com/components/popover/usage + demoLinks: + - type: storybook + name: Storybook + action: link + url: https://react.carbondesignsystem.com/?path=/docs/components-popover + progress-bar: + status: stable + externalDocsUrl: https://www.carbondesignsystem.com/components/progress-bar/usage + framework: react + demoLinks: + - type: storybook + name: Storybook + action: link + url: https://react.carbondesignsystem.com/?path=/docs/components-progressbar + progress-indicator: + status: stable + externalDocsUrl: https://www.carbondesignsystem.com/components/progress-indicator/usage + framework: react + demoLinks: + - type: storybook + name: Storybook + action: link + url: https://react.carbondesignsystem.com/?path=/docs/components-progressindicator + radio-button: + status: stable + externalDocsUrl: https://www.carbondesignsystem.com/components/radio-button/usage + framework: react + demoLinks: + - type: storybook + name: Storybook + action: link + url: https://react.carbondesignsystem.com/?path=/docs/components-radiobutton + search: + status: stable + externalDocsUrl: https://www.carbondesignsystem.com/components/search/usage + framework: react + demoLinks: + - type: storybook + name: Storybook + action: link + url: https://react.carbondesignsystem.com/?path=/docs/components-search + select: + status: stable + externalDocsUrl: https://www.carbondesignsystem.com/components/select/usage + framework: react + demoLinks: + - type: storybook + name: Storybook + action: link + url: https://react.carbondesignsystem.com/?path=/docs/components-select + skeleton: + name: Skeleton + framework: react + status: stable + type: component + platform: web + thumbnailPath: ./thumbnails/skeleton.svg + demoLinks: + - type: storybook + name: Storybook + action: link + url: https://react.carbondesignsystem.com/?path=/docs/components-skeleton + tags: + - shell + slider: + status: stable + externalDocsUrl: https://www.carbondesignsystem.com/components/slider/usage + framework: react + demoLinks: + - type: storybook + name: Storybook + action: link + url: https://react.carbondesignsystem.com/?path=/docs/components-slider + structured-list: + status: stable + externalDocsUrl: https://www.carbondesignsystem.com/components/structured-list/usage + framework: react + demoLinks: + - type: storybook + name: Storybook + action: link + url: https://react.carbondesignsystem.com/?path=/docs/components-structuredlist + tabs: + status: stable + externalDocsUrl: https://www.carbondesignsystem.com/components/tabs/usage + framework: react + demoLinks: + - type: storybook + name: Storybook + action: link + url: https://react.carbondesignsystem.com/?path=/docs/components-tabs + tag: + status: stable + externalDocsUrl: https://www.carbondesignsystem.com/components/tag/usage + framework: react + demoLinks: + - type: storybook + name: Storybook + action: link + url: https://react.carbondesignsystem.com/?path=/docs/components-tag + text-area: + status: stable + framework: react + demoLinks: + - type: storybook + name: Storybook + action: link + url: https://react.carbondesignsystem.com/?path=/docs/components-textarea + text-input: + status: stable + externalDocsUrl: https://www.carbondesignsystem.com/components/text-input/usage + framework: react + demoLinks: + - type: storybook + name: Storybook + action: link + url: https://react.carbondesignsystem.com/?path=/docs/components-textinput + theme: + status: stable + framework: react + demoLinks: + - type: storybook + name: Storybook + action: link + url: https://react.carbondesignsystem.com/?path=/docs/components-theme--default + tile: + status: stable + externalDocsUrl: https://www.carbondesignsystem.com/components/tile/usage + framework: react + demoLinks: + - type: storybook + name: Storybook + action: link + url: https://react.carbondesignsystem.com/?path=/docs/components-tile + time-picker: + status: stable + framework: react + demoLinks: + - type: storybook + name: Storybook + action: link + url: https://react.carbondesignsystem.com/?path=/docs/components-timepicker + toggle: + status: stable + externalDocsUrl: https://www.carbondesignsystem.com/components/toggle/usage + framework: react + demoLinks: + - type: storybook + name: Storybook + action: link + url: https://react.carbondesignsystem.com/?path=/docs/components-toggle + toggletip: + name: Toggletip + framework: react + externalDocsUrl: https://www.carbondesignsystem.com/components/toggletip/usage + status: stable + type: component + platform: web + thumbnailPath: ./thumbnails/toggletip.svg + demoLinks: + - type: storybook + name: Storybook + action: link + url: https://react.carbondesignsystem.com/?path=/docs/components-toggletip + tags: + - content-element + tooltip: + status: stable + externalDocsUrl: https://www.carbondesignsystem.com/components/tooltip/usage + framework: react + demoLinks: + - type: storybook + name: Storybook + action: link + url: https://react.carbondesignsystem.com/?path=/docs/components-tooltip + tooltip-definition: + status: stable + framework: react + demoLinks: + - type: storybook + name: Storybook + action: link + url: https://react.carbondesignsystem.com/?path=/docs/components-definitiontooltip + ui-shell-header: + framework: react + externalDocsUrl: https://www.carbondesignsystem.com/components/UI-shell-header/usage + status: stable + demoLinks: + - type: storybook + name: Storybook + action: link + url: https://react.carbondesignsystem.com/?path=/docs/components-ui-shell + unordered-list: + name: Unordered list + framework: react + status: stable + type: component + platform: web + thumbnailPath: ./thumbnails/unordered-list.svg + demoLinks: + - type: storybook + name: Storybook + action: link + url: https://react.carbondesignsystem.com/?path=/docs/components-unorderedlist + tags: + - data-display + grid: + status: stable + type: component + framework: react + demoLinks: + - type: storybook + name: Storybook + action: link + url: https://react.carbondesignsystem.com/?path=/docs/elements-grid + fluid-form: + name: Fluid form + framework: react + status: experimental + type: component + platform: web + thumbnailPath: ./thumbnails/fluid-form.svg + demoLinks: + - type: storybook + name: Storybook + action: link + url: https://react.carbondesignsystem.com/?path=/docs/experimental-fluidform + tags: + - form + unstable-heading: + name: Unstable heading + framework: react + status: experimental + type: component + platform: web + thumbnailPath: ./thumbnails/unstable-heading.svg + demoLinks: + - type: storybook + name: Storybook + action: link + url: https://react.carbondesignsystem.com/?path=/docs/experimental-unstable-heading + tags: + - content-element + unstable-menu: + name: Unstable menu + framework: react + status: experimental + type: component + platform: web + thumbnailPath: ./thumbnails/unstable-menu.svg + demoLinks: + - type: storybook + name: Storybook + action: link + url: https://react.carbondesignsystem.com/?path=/docs/experimental-unstable-menu + tags: + - system-feedback + unstable-pagination: + name: Unstable pagination + framework: react + status: experimental + type: component + platform: web + thumbnailPath: ./thumbnails/unstable-pagination.svg + demoLinks: + - type: storybook + name: Storybook + action: link + url: https://react.carbondesignsystem.com/?path=/docs/experimental-unstable-pagination + tags: + - data-display + - contextual-navigation + unstable-text: + name: Unstable text + framework: react + status: experimental + type: component + platform: web + thumbnailPath: ./thumbnails/unstable-text.svg + demoLinks: + - type: storybook + name: Storybook + action: link + url: https://react.carbondesignsystem.com/?path=/docs/experimental-unstable-text + tags: + - input-control + tree-view: + status: experimental + framework: react + demoLinks: + - type: storybook + name: Storybook + action: link + url: https://react.carbondesignsystem.com/?path=/docs/experimental-unstable-treeview + stack: + name: Stack + framework: react + status: stable + type: component + platform: web + thumbnailPath: ./thumbnails/stack.svg + demoLinks: + - type: storybook + name: Storybook + action: link + url: https://react.carbondesignsystem.com/?path=/docs/layout-stack + tags: + - content-block + use-feature-flag: + name: unstable_useFeatureFlag + framework: react + status: experimental + type: function + platform: web + tags: + - hook + use-feature-flags: + name: unstable_useFeatureFlags + framework: react + status: experimental + type: function + platform: web + tags: + - hook + use-context-menu: + name: unstable_useContextMenu + framework: react + status: experimental + type: function + platform: web + tags: + - hook + use-theme: + name: useTheme + framework: react + status: stable + type: function + platform: web + tags: + - hook + diff --git a/packages/react/examples/next/yarn.lock b/packages/react/examples/next/yarn.lock index 9209164246f7..282d01a030cf 100644 --- a/packages/react/examples/next/yarn.lock +++ b/packages/react/examples/next/yarn.lock @@ -1108,11 +1108,11 @@ async-foreach@^0.1.3: integrity sha1-NhIfhFwFeBct5Bmpfb6x0W7DRUI= async@^2.1.5: - version "2.6.1" - resolved "https://registry.yarnpkg.com/async/-/async-2.6.1.tgz#b245a23ca71930044ec53fa46aa00a3e87c6a610" - integrity sha512-fNEiL2+AZt6AlAw/29Cr0UDe4sRAHCpEHh54WMz+Bb7QfNcFw4h3loofyJpLeQs4Yx7yuqu/2dLgM5hKOs6HlQ== + version "2.6.4" + resolved "https://registry.yarnpkg.com/async/-/async-2.6.4.tgz#706b7ff6084664cd7eae713f6f965433b5504221" + integrity sha512-mzo5dfJYwAn29PeiJ0zvwTo04zj8HDJj0Mn8TD7sno7q12prdbnasKJHhkm2c1LgrhlJ0teaea8860oxi51mGA== dependencies: - lodash "^4.17.10" + lodash "^4.17.14" asynckit@^0.4.0: version "0.4.0" @@ -3321,10 +3321,10 @@ lodash.tail@^4.1.1: resolved "https://registry.yarnpkg.com/lodash.tail/-/lodash.tail-4.1.1.tgz#d2333a36d9e7717c8ad2f7cacafec7c32b444664" integrity sha1-0jM6NtnncXyK0vfKyv7HwytERmQ= -lodash@^4.0.0, lodash@^4.17.10, lodash@^4.17.4, lodash@^4.17.5, lodash@~4.17.10: - version "4.17.11" - resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.11.tgz#b39ea6229ef607ecd89e2c8df12536891cac9b8d" - integrity sha512-cQKh8igo5QUhZ7lg38DYWAxMvjSAKG0A8wGSVimP07SIUEK2UO+arSRKbRZWtelMtN5V0Hkwh5ryOto/SshYIg== +lodash@^4.0.0, lodash@^4.17.10, lodash@^4.17.14, lodash@^4.17.4, lodash@^4.17.5, lodash@~4.17.10: + version "4.17.21" + resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.21.tgz#679591c564c3bffaae8454cf0b3df370c3d6911c" + integrity sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg== log-update@^2.3.0: version "2.3.0" diff --git a/packages/react/src/components/NumberInput/next/NumberInput.js b/packages/react/src/components/NumberInput/next/NumberInput.js index a1a143785a8f..7e849067fc54 100644 --- a/packages/react/src/components/NumberInput/next/NumberInput.js +++ b/packages/react/src/components/NumberInput/next/NumberInput.js @@ -45,6 +45,7 @@ const NumberInput = React.forwardRef(function NumberInput(props, forwardRef) { min, onChange, onClick, + onKeyUp, readOnly, size = 'md', step = 1, @@ -162,6 +163,7 @@ const NumberInput = React.forwardRef(function NumberInput(props, forwardRef) { min={min} onClick={onClick} onChange={handleOnChange} + onKeyUp={onKeyUp} pattern="[0-9]*" readOnly={readOnly} step={step} @@ -329,6 +331,11 @@ NumberInput.propTypes = { */ onClick: PropTypes.func, + /** + * Provide an optional function to be called when a key is pressed in the number input + */ + onKeyUp: PropTypes.func, + /** * Specify if the component should be read-only */ diff --git a/packages/react/src/components/Slider/Slider.js b/packages/react/src/components/Slider/Slider.js index 7fd35e7fcc2b..4e4c79788431 100644 --- a/packages/react/src/components/Slider/Slider.js +++ b/packages/react/src/components/Slider/Slider.js @@ -127,6 +127,11 @@ export default class Slider extends PureComponent { */ onChange: PropTypes.func, + /** + * Provide an optional function to be called when a key is pressed in the number input + */ + onInputKeyUp: PropTypes.func, + /** * The callback to get notified of value on handle release. */ @@ -653,6 +658,7 @@ export default class Slider extends PureComponent { step={step} onChange={this.onChange} onBlur={this.onBlur} + onKeyUp={this.onInputKeyUp} data-invalid={isValid ? null : true} aria-invalid={isValid ? null : true} /> diff --git a/packages/react/thumbnails/composed-modal.svg b/packages/react/thumbnails/composed-modal.svg new file mode 100644 index 000000000000..6a2c2f42541b --- /dev/null +++ b/packages/react/thumbnails/composed-modal.svg @@ -0,0 +1,33 @@ + + + composed-modal + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/packages/react/thumbnails/error-boundary.svg b/packages/react/thumbnails/error-boundary.svg new file mode 100644 index 000000000000..59d77b8bb313 --- /dev/null +++ b/packages/react/thumbnails/error-boundary.svg @@ -0,0 +1,24 @@ + + + error-boundary + + + + + + + + + Primary button + + + + + + + + + + + + \ No newline at end of file diff --git a/packages/react/thumbnails/flex-grid.svg b/packages/react/thumbnails/flex-grid.svg new file mode 100644 index 000000000000..4d45cf7f58ae --- /dev/null +++ b/packages/react/thumbnails/flex-grid.svg @@ -0,0 +1,38 @@ + + + flex-grid + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/packages/react/thumbnails/fluid-form.svg b/packages/react/thumbnails/fluid-form.svg new file mode 100644 index 000000000000..5946428e283c --- /dev/null +++ b/packages/react/thumbnails/fluid-form.svg @@ -0,0 +1,77 @@ + + + form + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/packages/react/thumbnails/form-group.svg b/packages/react/thumbnails/form-group.svg new file mode 100644 index 000000000000..23ac743b65a3 --- /dev/null +++ b/packages/react/thumbnails/form-group.svg @@ -0,0 +1,25 @@ + + + form-group + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/packages/react/thumbnails/icon-button.svg b/packages/react/thumbnails/icon-button.svg new file mode 100644 index 000000000000..18e94b1a64f6 --- /dev/null +++ b/packages/react/thumbnails/icon-button.svg @@ -0,0 +1,16 @@ + + + icon-button + + + + + + + + + + + + + \ No newline at end of file diff --git a/packages/react/thumbnails/layer.svg b/packages/react/thumbnails/layer.svg new file mode 100644 index 000000000000..d50d67510b00 --- /dev/null +++ b/packages/react/thumbnails/layer.svg @@ -0,0 +1,10 @@ + + + layer + + + + + + + \ No newline at end of file diff --git a/packages/react/thumbnails/ordered-list.svg b/packages/react/thumbnails/ordered-list.svg new file mode 100644 index 000000000000..3ccbbf35d345 --- /dev/null +++ b/packages/react/thumbnails/ordered-list.svg @@ -0,0 +1,12 @@ + + + ordered-list + + + 1. Ordered List + 2. Ordered List + 3. Ordered List + 4. Ordered List + + + \ No newline at end of file diff --git a/packages/react/thumbnails/skeleton.svg b/packages/react/thumbnails/skeleton.svg new file mode 100644 index 000000000000..67d8252da46e --- /dev/null +++ b/packages/react/thumbnails/skeleton.svg @@ -0,0 +1,8 @@ + + + skeleton + + + + + \ No newline at end of file diff --git a/packages/react/thumbnails/stack.svg b/packages/react/thumbnails/stack.svg new file mode 100644 index 000000000000..7b4ccb7b50f6 --- /dev/null +++ b/packages/react/thumbnails/stack.svg @@ -0,0 +1,24 @@ + + + stack + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/packages/react/thumbnails/toggletip.svg b/packages/react/thumbnails/toggletip.svg new file mode 100644 index 000000000000..fb0fc075842f --- /dev/null +++ b/packages/react/thumbnails/toggletip.svg @@ -0,0 +1,33 @@ + + + toggle-tip + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/packages/react/thumbnails/unordered-list.svg b/packages/react/thumbnails/unordered-list.svg new file mode 100644 index 000000000000..5690b6e64ce5 --- /dev/null +++ b/packages/react/thumbnails/unordered-list.svg @@ -0,0 +1,12 @@ + + + unordered-list + + + โ€“ Unordered List + โ€“ Unordered List + โ€“ Unordered List + โ€“ Unordered List + + + \ No newline at end of file diff --git a/packages/react/thumbnails/unstable-heading.svg b/packages/react/thumbnails/unstable-heading.svg new file mode 100644 index 000000000000..83faf0350527 --- /dev/null +++ b/packages/react/thumbnails/unstable-heading.svg @@ -0,0 +1,15 @@ + + + heading-unstable + + + h1 + + + h2 + + + h3 + + + \ No newline at end of file diff --git a/packages/react/thumbnails/unstable-menu.svg b/packages/react/thumbnails/unstable-menu.svg new file mode 100644 index 000000000000..ec3beaa2fecc --- /dev/null +++ b/packages/react/thumbnails/unstable-menu.svg @@ -0,0 +1,77 @@ + + + menus + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/packages/react/thumbnails/unstable-pagination.svg b/packages/react/thumbnails/unstable-pagination.svg new file mode 100644 index 000000000000..4b705456f988 --- /dev/null +++ b/packages/react/thumbnails/unstable-pagination.svg @@ -0,0 +1,48 @@ + + + pagination-unstable + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/packages/react/thumbnails/unstable-text.svg b/packages/react/thumbnails/unstable-text.svg new file mode 100644 index 000000000000..78b18515f909 --- /dev/null +++ b/packages/react/thumbnails/unstable-text.svg @@ -0,0 +1,34 @@ + + + text-unstable + + + + + + + + + + + + He + l + lo + w + orld + + + + + + + + + + ู„ูƒู† ู„ุง ุจุฏ ุฃู† ุฃูˆุถุญ ู„ูƒ ุฃู† ูƒู„ + + + + + \ No newline at end of file diff --git a/packages/styles/scss/components/search/_search.scss b/packages/styles/scss/components/search/_search.scss index 33470ec67d2a..d6465d21654d 100644 --- a/packages/styles/scss/components/search/_search.scss +++ b/packages/styles/scss/components/search/_search.scss @@ -112,11 +112,6 @@ left: rem(12px); } - .#{$prefix}--search--md:not(.#{$prefix}--toolbar-search-container-active) - .#{$prefix}--search-magnifier-icon { - left: 0; - } - // Large styles .#{$prefix}--search--lg .#{$prefix}--search-input, .#{$prefix}--search--lg.#{$prefix}--search--expandable.#{$prefix}--search--expanded diff --git a/packages/type/scss/_default-type.scss b/packages/type/scss/_default-type.scss index 153971a24d7e..3a6cd1c1a794 100644 --- a/packages/type/scss/_default-type.scss +++ b/packages/type/scss/_default-type.scss @@ -12,31 +12,31 @@ /// @group @carbon/type @mixin default-type { h1 { - @include type-style('productive-heading-06'); + @include type-style('heading-06'); } h2 { - @include type-style('productive-heading-05'); + @include type-style('heading-05'); } h3 { - @include type-style('productive-heading-04'); + @include type-style('heading-04'); } h4 { - @include type-style('productive-heading-03'); + @include type-style('heading-03'); } h5 { - @include type-style('productive-heading-02'); + @include type-style('heading-02'); } h6 { - @include type-style('productive-heading-01'); + @include type-style('heading-01'); } p { - @include type-style('body-long-02'); + @include type-style('body-02'); } a {