Skip to content
This repository has been archived by the owner on Oct 23, 2024. It is now read-only.

Commit

Permalink
0.142.0 (#253)
Browse files Browse the repository at this point in the history
* Update deps, fix typescript errors
* Update workflows to node 16 and v3 github actions
  • Loading branch information
juliewongbandue authored Apr 6, 2023
1 parent dba802a commit ce617ec
Show file tree
Hide file tree
Showing 10 changed files with 439 additions and 475 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/deploy-storybook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ jobs:
storybook:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 14
node-version: 16

- name: Read branch name
id: vars
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 14
node-version: 16
# Setup .npmrc file to publish to npm
registry-url: 'https://registry.npmjs.org'
- run: yarn --frozen-lockfile
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish-prerelease.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
git config user.email github-actions@github.com
- uses: actions/setup-node@v3
with:
node-version: 14
node-version: 16
# Setup .npmrc file to publish to npm
registry-url: 'https://registry.npmjs.org'
- run: yarn --frozen-lockfile
Expand Down
30 changes: 15 additions & 15 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,54 +10,54 @@ jobs:
typecheck:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 14
node-version: 16

- run: yarn --frozen-lockfile
- run: yarn typecheck

lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 14
node-version: 16

- run: yarn --frozen-lockfile
- run: yarn lint

build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 14
node-version: 16

- run: yarn --frozen-lockfile
- run: yarn build

storybook:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 14
node-version: 16

- run: yarn --frozen-lockfile
- run: yarn build-storybook

jest:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '14'
node-version: '16'
cache: 'yarn'

- run: yarn --frozen-lockfile
Expand Down
2 changes: 1 addition & 1 deletion examples/nextjs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"start": "next start"
},
"dependencies": {
"@vimeo/iris": "^0.141.0",
"@vimeo/iris": "^0.142.0",
"next": "12.0.3",
"polished": "^4.1.3",
"react": "17.0.2",
Expand Down
32 changes: 16 additions & 16 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "@vimeo/iris",
"homepage": "https://github.com/vimeo/iris/tree/main",
"bugs": "https://github.com/vimeo/iris/issues",
"version": "0.141.0",
"version": "0.142.0",
"private": false,
"license": "MIT",
"description": "Vimeo Design System",
Expand All @@ -18,14 +18,14 @@
"@babel/runtime": "^7.21.0"
},
"devDependencies": {
"@babel/core": "^7.21.3",
"@babel/core": "^7.21.4",
"@babel/plugin-proposal-class-properties": "^7.18.6",
"@babel/plugin-proposal-private-methods": "^7.18.6",
"@babel/plugin-proposal-private-property-in-object": "^7.21.0",
"@babel/plugin-transform-runtime": "^7.21.0",
"@babel/preset-env": "^7.20.2",
"@babel/plugin-transform-runtime": "^7.21.4",
"@babel/preset-env": "^7.21.4",
"@babel/preset-react": "^7.18.6",
"@babel/preset-typescript": "^7.21.0",
"@babel/preset-typescript": "^7.21.4",
"@nox/addon-themes": "^1.1.3",
"@rollup/plugin-babel": "^5.3.1",
"@rollup/plugin-commonjs": "^21.1.0",
Expand All @@ -44,21 +44,21 @@
"@testing-library/react": "12.1.5",
"@testing-library/user-event": "^14.4.3",
"@types/jest": "^28.1.8",
"@types/react": "^17.0.53",
"@types/react": "^17.0.56",
"@types/react-dom": "^17.0.19",
"@types/styled-components": "^5.1.26",
"@types/webpack": "^5.28.0",
"@typescript-eslint/eslint-plugin": "^5.55.0",
"@typescript-eslint/parser": "^5.55.0",
"@types/webpack": "^5.28.1",
"@typescript-eslint/eslint-plugin": "^5.57.1",
"@typescript-eslint/parser": "^5.57.1",
"babel-jest": "^28.1.3",
"babel-loader": "^8.3.0",
"babel-plugin-polished": "^1.1.0",
"babel-plugin-require-context-hook": "^1.0.0",
"babel-plugin-styled-components": "^2.0.7",
"circular-dependency-plugin": "^5.2.2",
"core-js": "^3.29.1",
"eslint": "^8.36.0",
"eslint-config-prettier": "^8.7.0",
"core-js": "^3.30.0",
"eslint": "^8.37.0",
"eslint-config-prettier": "^8.8.0",
"eslint-config-react": "^1.1.7",
"eslint-formatter-codeframe": "^7.32.1",
"eslint-plugin-immutable": "^1.0.0",
Expand All @@ -72,12 +72,12 @@
"jest-environment-jsdom": "^28.1.3",
"polished": "^4.2.2",
"pre-commit": "^1.2.2",
"prettier": "^2.8.4",
"prettier": "^2.8.7",
"react": "*",
"react-dom": "*",
"react-is": "^17.0.2",
"rollup": "^2.79.1",
"rollup-plugin-multi-input": "^1.3.3",
"rollup-plugin-multi-input": "^1.4.1",
"rollup-plugin-terser": "^7.0.2",
"styled-components": "^5.3.9",
"stylelint": "^13.13.1",
Expand All @@ -87,7 +87,7 @@
"tslib": "^2.5.0",
"typescript": "4.9.5",
"typescript-plugin-styled-components": "^2.0.0",
"webpack": "^5.76.2"
"webpack": "^5.78.0"
},
"peerDependencies": {
"polished": "^4.2.2",
Expand All @@ -96,7 +96,7 @@
"styled-components": "^5.3.6"
},
"resolutions": {
"@types/react": "^17.0.53",
"@types/react": "^17.0.56",
"react-dom": "*",
"react": "*"
},
Expand Down
7 changes: 5 additions & 2 deletions src/components/inputs/Input/Input.style.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import styled, { css } from 'styled-components';
import styled, { css, StyledComponent } from 'styled-components';
import { rgba } from 'polished';

import {
Expand Down Expand Up @@ -43,7 +43,10 @@ export const Faux = styled.div<any>`
${FauxType};
`;

export const HiddenMark = styled.input.attrs(({ type }) => ({
export const HiddenMark: StyledComponent<
'input',
IrisInputProps
> = styled.input.attrs(({ type }) => ({
type: type === 'toggle' ? 'checkbox' : type,
toggle: type === 'toggle',
}))`
Expand Down
2 changes: 1 addition & 1 deletion src/utils/HOCs/withIris.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {
} from 'react';
import { ThemeContext } from 'styled-components';

const version = '0.141.0';
const version = '0.142.0';

type IrisMeta =
| true
Expand Down
5 changes: 4 additions & 1 deletion src/utils/hooks/usePortal.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
import { ReactNode, ReactPortal } from 'react';
import { createPortal } from 'react-dom';

export function usePortal(children = null) {
export function usePortal(
children: ReactNode = null
): HTMLElement | ReactPortal {
let outlet = document.getElementById('iris-portals');

if (!outlet) {
Expand Down
Loading

0 comments on commit ce617ec

Please sign in to comment.