Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/main'
Browse files Browse the repository at this point in the history
  • Loading branch information
jgoz committed Jun 6, 2023
2 parents e0af35a + eca6bab commit e012a92
Show file tree
Hide file tree
Showing 162 changed files with 2,769 additions and 590 deletions.
6 changes: 6 additions & 0 deletions .github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,12 @@ git checkout main
git pull upstream main
```

1. Make sure your Node version matches the [.nvmrc](../.nvmrc).

```
node -v
```

1. Install dependencies with [yarn](https://yarnpkg.com):

```sh
Expand Down
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
14.6.0
16.17.0
5 changes: 5 additions & 0 deletions .storybook/preview.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
export const parameters = {
options: {
storySort: {
order: ['Components', 'Utilities'],
},
},
// disables Chromatic on a global level
chromatic: { disable: true },
};
13 changes: 13 additions & 0 deletions .yarn/versions/310b65b7.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
releases:
"@implydata/radix-react-alert-dialog": patch
"@implydata/radix-react-context-menu": patch
"@implydata/radix-react-dialog": patch
"@implydata/radix-react-dropdown-menu": patch
"@implydata/radix-react-focus-scope": patch
"@implydata/radix-react-menu": patch
"@implydata/radix-react-menubar": patch
"@implydata/radix-react-popover": patch
"@implydata/radix-react-select": patch

declined:
- primitives
5 changes: 0 additions & 5 deletions .yarn/versions/61ceaf74.yml

This file was deleted.

File renamed without changes.
17 changes: 17 additions & 0 deletions .yarn/versions/852d0fe8.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
releases:
"@implydata/radix-react-alert-dialog": patch
"@implydata/radix-react-context-menu": patch
"@implydata/radix-react-dialog": patch
"@implydata/radix-react-dismissable-layer": patch
"@implydata/radix-react-dropdown-menu": patch
"@implydata/radix-react-hover-card": patch
"@implydata/radix-react-menu": patch
"@implydata/radix-react-menubar": patch
"@implydata/radix-react-navigation-menu": patch
"@implydata/radix-react-popover": patch
"@implydata/radix-react-select": patch
"@implydata/radix-react-toast": patch
"@implydata/radix-react-tooltip": patch

declined:
- primitives
5 changes: 5 additions & 0 deletions .yarn/versions/8e903555.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
releases:
"@implydata/radix-react-scroll-area": patch

declined:
- primitives
5 changes: 5 additions & 0 deletions .yarn/versions/96d1204b.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
releases:
"@implydata/radix-react-select": major

declined:
- primitives
13 changes: 13 additions & 0 deletions .yarn/versions/b84e01b4.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
releases:
"@implydata/radix-react-context-menu": patch
"@implydata/radix-react-dropdown-menu": patch
"@implydata/radix-react-hover-card": patch
"@implydata/radix-react-menu": patch
"@implydata/radix-react-menubar": patch
"@implydata/radix-react-popover": patch
"@implydata/radix-react-popper": patch
"@implydata/radix-react-select": patch
"@implydata/radix-react-tooltip": patch

declined:
- primitives
16 changes: 16 additions & 0 deletions .yarn/versions/ca844fc6.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
releases:
"@implydata/radix-react-alert-dialog": patch
"@implydata/radix-react-context-menu": patch
"@implydata/radix-react-dialog": patch
"@implydata/radix-react-dropdown-menu": patch
"@implydata/radix-react-hover-card": patch
"@implydata/radix-react-menu": patch
"@implydata/radix-react-menubar": patch
"@implydata/radix-react-popover": patch
"@implydata/radix-react-portal": patch
"@implydata/radix-react-select": patch
"@implydata/radix-react-toast": patch
"@implydata/radix-react-tooltip": patch

declined:
- primitives
10 changes: 10 additions & 0 deletions cypress/integration/Dialog.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,16 @@ describe('Dialog', () => {
// finally, ensure that pointer-events have been reset and interactions restored
shouldAllowOutsideInteraction('realTouch');
});

it('keeps focus trapped even if focused element is removed', () => {
cy.findByText('open').click();
cy.findByText('close').should('be.focused');
cy.realPress('Tab');
cy.findByText('destroy me').should('be.focused');
cy.realPress('Space');
cy.realPress('Tab');
cy.findByText('close').should('be.focused');
});
});

describe('given a non-modal dialog', () => {
Expand Down
15 changes: 15 additions & 0 deletions cypress/integration/Select.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,19 @@ describe('Select', () => {
cy.findByText(/t-shirt size/).should('include.text', 'size S');
});
});

describe('given a select with no value', () => {
it('should display the placeholder', () => {
cy.findByText('…').should('exist');
});

it('can be reset to the placeholder', () => {
cy.findByLabelText(/choose a model/).click();
cy.findByRole('option', { name: /model x/i }).click();
cy.findByText(/model y/i).should('not.exist');
cy.findByText(/model x/i).should('exist');
cy.findByText('unset').click();
cy.findByText('…').should('exist');
});
});
});
6 changes: 6 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@
"@testing-library/user-event": "^14.1.0",
"@types/babel__template": "^7.4.1",
"@types/eslint": "^7.28.0",
"@types/fs-extra": "^11",
"@types/jest": "^27.4.1",
"@types/jest-axe": "^3.5.3",
"@types/react": "^18.0.5",
Expand All @@ -74,6 +75,8 @@
"eslint-plugin-jsx-a11y": "^6.3.1",
"eslint-plugin-react": "^7.24.0",
"eslint-plugin-react-hooks": "^4.2.0",
"fs-extra": "^11.1.1",
"glob": "^10.2.2",
"husky": "^4.3.6",
"jest": "^27.5.1",
"jest-axe": "^6.0.0",
Expand Down Expand Up @@ -180,5 +183,8 @@
},
"lint-staged": {
"*.{js,ts,tsx}": "eslint --quiet --fix --cache"
},
"volta": {
"node": "18.16.0"
}
}
4 changes: 2 additions & 2 deletions packages/core/number/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
## Installation

```sh
$ yarn add @radix-ui/number
$ yarn add @implydata/radix-number
# or
$ npm install @radix-ui/number
$ npm install @implydata/radix-number
```

## Usage
Expand Down
22 changes: 17 additions & 5 deletions packages/core/number/package.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,23 @@
{
"name": "@implydata/radix-number",
"version": "1.1.0",
"version": "1.0.1",
"license": "MIT",
"source": "src/index.ts",
"main": "dist/index.js",
"module": "dist/index.module.js",
"types": "dist/index.d.ts",
"exports": {
".": {
"import": {
"types": "./dist/index.d.mts",
"default": "./dist/index.mjs"
},
"require": {
"types": "./dist/index.d.ts",
"default": "./dist/index.js"
}
}
},
"source": "./src/index.ts",
"main": "./dist/index.js",
"module": "./dist/index.mjs",
"types": "./dist/index.d.ts",
"files": [
"dist",
"README.md"
Expand Down
4 changes: 2 additions & 2 deletions packages/core/primitive/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
## Installation

```sh
$ yarn add @radix-ui/primitive
$ yarn add @implydata/radix-primitive
# or
$ npm install @radix-ui/primitive
$ npm install @implydata/radix-primitive
```

## Usage
Expand Down
22 changes: 17 additions & 5 deletions packages/core/primitive/package.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,23 @@
{
"name": "@implydata/radix-primitive",
"version": "1.1.0",
"version": "1.0.1",
"license": "MIT",
"source": "src/index.ts",
"main": "dist/index.js",
"module": "dist/index.module.js",
"types": "dist/index.d.ts",
"exports": {
".": {
"import": {
"types": "./dist/index.d.mts",
"default": "./dist/index.mjs"
},
"require": {
"types": "./dist/index.d.ts",
"default": "./dist/index.js"
}
}
},
"source": "./src/index.ts",
"main": "./dist/index.js",
"module": "./dist/index.mjs",
"types": "./dist/index.d.ts",
"files": [
"dist",
"README.md"
Expand Down
4 changes: 2 additions & 2 deletions packages/core/rect/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
## Installation

```sh
$ yarn add @radix-ui/rect
$ yarn add @implydata/radix-rect
# or
$ npm install @radix-ui/rect
$ npm install @implydata/radix-rect
```

## Usage
Expand Down
22 changes: 17 additions & 5 deletions packages/core/rect/package.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,23 @@
{
"name": "@implydata/radix-rect",
"version": "1.1.0",
"version": "1.0.1",
"license": "MIT",
"source": "src/index.ts",
"main": "dist/index.js",
"module": "dist/index.module.js",
"types": "dist/index.d.ts",
"exports": {
".": {
"import": {
"types": "./dist/index.d.mts",
"default": "./dist/index.mjs"
},
"require": {
"types": "./dist/index.d.ts",
"default": "./dist/index.js"
}
}
},
"source": "./src/index.ts",
"main": "./dist/index.js",
"module": "./dist/index.mjs",
"types": "./dist/index.d.ts",
"files": [
"dist",
"README.md"
Expand Down
4 changes: 2 additions & 2 deletions packages/react/accessible-icon/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
## Installation

```sh
$ yarn add @radix-ui/react-accessible-icon
$ yarn add @implydata/radix-react-accessible-icon
# or
$ npm install @radix-ui/react-accessible-icon
$ npm install @implydata/radix-react-accessible-icon
```

## Usage
Expand Down
32 changes: 27 additions & 5 deletions packages/react/accessible-icon/package.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,23 @@
{
"name": "@implydata/radix-react-accessible-icon",
"version": "1.1.0",
"version": "1.0.3",
"license": "MIT",
"source": "src/index.ts",
"main": "dist/index.js",
"module": "dist/index.module.js",
"types": "dist/index.d.ts",
"exports": {
".": {
"import": {
"types": "./dist/index.d.mts",
"default": "./dist/index.mjs"
},
"require": {
"types": "./dist/index.d.ts",
"default": "./dist/index.js"
}
}
},
"source": "./src/index.ts",
"main": "./dist/index.js",
"module": "./dist/index.mjs",
"types": "./dist/index.d.ts",
"files": [
"dist",
"README.md"
Expand All @@ -20,9 +32,19 @@
"@implydata/radix-react-visually-hidden": "workspace:*"
},
"peerDependencies": {
"@types/react": "*",
"@types/react-dom": "*",
"react": "^16.8 || ^17.0 || ^18.0",
"react-dom": "^16.8 || ^17.0 || ^18.0"
},
"peerDependenciesMeta": {
"@types/react": {
"optional": true
},
"@types/react-dom": {
"optional": true
}
},
"homepage": "https://radix-ui.com/primitives",
"repository": {
"type": "git",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import * as React from 'react';
import { AccessibleIcon } from '@implydata/radix-react-accessible-icon';

export default { title: 'Components/AccessibleIcon' };
export default { title: 'Utilities/AccessibleIcon' };

export const Styled = () => (
<button type="button">
Expand Down
4 changes: 2 additions & 2 deletions packages/react/accordion/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
## Installation

```sh
$ yarn add @radix-ui/react-accordion
$ yarn add @implydata/radix-react-accordion
# or
$ npm install @radix-ui/react-accordion
$ npm install @implydata/radix-react-accordion
```

## Usage
Expand Down
Loading

0 comments on commit e012a92

Please sign in to comment.