Skip to content

Commit

Permalink
upgrade to yarn v4 (grommet#7260)
Browse files Browse the repository at this point in the history
  • Loading branch information
jcfilben authored Aug 20, 2024
1 parent e422107 commit db47fa2
Show file tree
Hide file tree
Showing 11 changed files with 18,608 additions and 14,158 deletions.
Binary file added .yarn/install-state.gz
Binary file not shown.
894 changes: 894 additions & 0 deletions .yarn/releases/yarn-4.3.1.cjs

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
nodeLinker: node-modules

yarnPath: .yarn/releases/yarn-4.3.1.cjs
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -241,5 +241,6 @@
"gui",
"graphical user interface",
"styled-components"
]
],
"packageManager": "[email protected]"
}
2 changes: 1 addition & 1 deletion src/js/components/Clock/Analog.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const ANGLE_UNIT = 6;
// 360 / 12
const HOUR_ANGLE_UNIT = 30;

const getClockDimensions = theme => ({
const getClockDimensions = (theme) => ({
size: parseMetricToNum(theme.clock.analog.size.medium),
secondSize: parseMetricToNum(theme.clock.analog.second.size),
minuteSize: parseMetricToNum(theme.clock.analog.minute.size),
Expand Down
8 changes: 1 addition & 7 deletions src/js/components/Collapsible/Collapsible.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,4 @@
import React, {
forwardRef,
useEffect,
useMemo,
useRef,
useState,
} from 'react';
import React, { forwardRef, useEffect, useMemo, useRef, useState } from 'react';
import styled from 'styled-components';

import { useLayoutEffect } from '../../utils/use-isomorphic-layout-effect';
Expand Down
8 changes: 1 addition & 7 deletions src/js/components/DataChart/Detail.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,4 @@
import React, {
Fragment,
useCallback,
useMemo,
useRef,
useState,
} from 'react';
import React, { Fragment, useCallback, useMemo, useRef, useState } from 'react';
import styled from 'styled-components';
import { Box } from '../Box';
import { Drop } from '../Drop';
Expand Down
13 changes: 4 additions & 9 deletions src/js/components/DataTable/Resizer.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
import React, {
useCallback,
useEffect,
useRef,
useState,
} from 'react';
import React, { useCallback, useEffect, useRef, useState } from 'react';
import styled from 'styled-components';

import { Box } from '../Box';
Expand All @@ -17,7 +12,7 @@ const InteractionBox = styled(Box)`
}
// when mouse down, we want to continue to display styling
${props => props.active && '> * { opacity: 1; }'}
${(props) => props.active && '> * { opacity: 1; }'}
&:hover {
> * {
Expand All @@ -33,7 +28,7 @@ const Resizer = ({ onResize, property }) => {
const [width, setWidth] = useState();
const ref = useRef();

const onMouseDown = useCallback(event => {
const onMouseDown = useCallback((event) => {
if (ref.current) {
let element = ref.current;
// find TH parent
Expand All @@ -46,7 +41,7 @@ const Resizer = ({ onResize, property }) => {
}, []);

const onMouseMove = useCallback(
event => {
(event) => {
// We determined 12 empirically as being wide enough to hit but
// not too wide to cause false hits.
const nextWidth = Math.max(12, width + (event.clientX - start));
Expand Down
2 changes: 1 addition & 1 deletion src/js/components/DataTable/Searcher.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ const Searcher = ({ filtering, filters, onFilter, onFiltering, property }) => {
a11yTitle={`Search by ${property}`}
ref={inputRef}
value={filters[property]}
onChange={event => onFilter(property, event.target.value)}
onChange={(event) => onFilter(property, event.target.value)}
onBlur={() => onFiltering(undefined)}
/>
</Box>
Expand Down
6 changes: 3 additions & 3 deletions src/js/utils/useThemeValue.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { useContext } from "react";
import { ThemeContext } from "styled-components";
import { defaultProps } from "../default-props";
import { useContext } from 'react';
import { ThemeContext } from 'styled-components';
import { defaultProps } from '../default-props';

/*
Hook that returns theme value.
Expand Down
Loading

0 comments on commit db47fa2

Please sign in to comment.