Skip to content

Commit

Permalink
Update dependency eslint-config-seek to v13.1.0 (#1486)
Browse files Browse the repository at this point in the history
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Felix Habib <[email protected]>
Co-authored-by: Adam Skoufis <[email protected]>
Co-authored-by: Michael Taranto <[email protected]>
Co-authored-by: Felix Habib <[email protected]>
Co-authored-by: Michael Taranto <[email protected]>
  • Loading branch information
6 people authored May 16, 2024
1 parent e9fae1b commit e06f321
Show file tree
Hide file tree
Showing 25 changed files with 3,261 additions and 1,088 deletions.
10 changes: 10 additions & 0 deletions .changeset/calm-bikes-clean.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
'braid-design-system': patch
---

---
updated:
- Autosuggest
---

Ensure all paths through `AutoSuggest` state updates are handled.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
"depcheck": "^1.4.5",
"enquirer": "^2.3.6",
"escape-string-regexp": "^4.0.0",
"eslint": "^8.21.0",
"eslint": "^8.57.0",
"eslint-config-seek": "^13.0.0",
"fast-glob": "^3.2.12",
"fs-extra": "^10.1.0",
Expand Down
3 changes: 1 addition & 2 deletions packages/braid-design-system/scripts/generateIcons.cts
Original file line number Diff line number Diff line change
Expand Up @@ -152,8 +152,7 @@ const svgrConfig = {
dedent/* ts */ `
import React from 'react';
import { Box } from '${relative(`${baseDir}/src/lib/components/Box/Box`)}';
import type { UseIconProps } from '${relative(`${baseDir}/src/lib/hooks/useIcon`)}';
import useIcon from '${relative(`${baseDir}/src/lib/hooks/useIcon`)}';
import useIcon, { type UseIconProps } from '${relative(`${baseDir}/src/lib/hooks/useIcon`)}';
import { ${svgComponentName} } from '${relative(`${iconDir}/${svgComponentName}`)}';
export type ${iconName}Props = UseIconProps;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -412,6 +412,8 @@ export const Autosuggest = forwardRef(function <Value>(
highlightedIndex: nextIndex,
};
}

return state;
}

case INPUT_ARROW_UP: {
Expand All @@ -429,6 +431,8 @@ export const Autosuggest = forwardRef(function <Value>(
highlightedIndex: nextIndex,
};
}

return state;
}

case INPUT_CHANGE: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@ import {
} from '../';
// TODO: COLORMODE RELEASE
// Use public import
import { Box } from './Box';
import type { SimpleBackground } from './Box';
import { type SimpleBackground, Box } from './Box';
import source from '@braid-design-system/source.macro';
import Code from 'site/App/Code/Code';
import {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
// Adapted version of https://github.com/streamich/react-use/blob/master/src/useMedia.ts
import type { ReactNode } from 'react';
import React, { useEffect, useState, createContext } from 'react';
import { type ReactNode, useEffect, useState, createContext } from 'react';
import { type Breakpoint, breakpoints } from '../../css/breakpoints';

const minWidthQuery = (breakpoint: number) =>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import '@testing-library/jest-dom';
import type React from 'react';
import { useState } from 'react';
import {
type RenderResult,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import React from 'react';
import { Box } from '../../Box/Box';
import type { UseIconProps } from '../../../hooks/useIcon';
import useIcon from '../../../hooks/useIcon';
import useIcon, { type UseIconProps } from '../../../hooks/useIcon';
import { IconAISvg } from './IconAISvg';

export type IconAiProps = UseIconProps;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import React from 'react';
import { Box } from '../../Box/Box';
import type { UseIconProps } from '../../../hooks/useIcon';
import useIcon from '../../../hooks/useIcon';
import useIcon, { type UseIconProps } from '../../../hooks/useIcon';
import { IconCareerSvg } from './IconCareerSvg';
import { IconCareerActiveSvg } from './IconCareerActiveSvg';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import React from 'react';
import { Box } from '../../Box/Box';
import type { UseIconProps } from '../../../hooks/useIcon';
import useIcon from '../../../hooks/useIcon';
import useIcon, { type UseIconProps } from '../../../hooks/useIcon';
import { IconCategorySvg } from './IconCategorySvg';

export type IconCategoryProps = UseIconProps;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import React from 'react';
import { Box } from '../../Box/Box';
import type { UseIconProps } from '../../../hooks/useIcon';
import useIcon from '../../../hooks/useIcon';
import useIcon, { type UseIconProps } from '../../../hooks/useIcon';
import { IconEnlargeSvg } from './IconEnlargeSvg';
import { IconEnlargeActiveSvg } from './IconEnlargeActiveSvg';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import React from 'react';
import { Box } from '../../Box/Box';
import type { UseIconProps } from '../../../hooks/useIcon';
import useIcon from '../../../hooks/useIcon';
import useIcon, { type UseIconProps } from '../../../hooks/useIcon';
import { IconExperienceSvg } from './IconExperienceSvg';

export type IconExperienceProps = UseIconProps;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import React from 'react';
import { Box } from '../../Box/Box';
import type { UseIconProps } from '../../../hooks/useIcon';
import useIcon from '../../../hooks/useIcon';
import useIcon, { type UseIconProps } from '../../../hooks/useIcon';
import { IconGiftSvg } from './IconGiftSvg';

export type IconGiftProps = UseIconProps;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import React from 'react';
import { Box } from '../../Box/Box';
import type { UseIconProps } from '../../../hooks/useIcon';
import useIcon from '../../../hooks/useIcon';
import useIcon, { type UseIconProps } from '../../../hooks/useIcon';
import { IconGlobeSvg } from './IconGlobeSvg';

export type IconGlobeProps = UseIconProps;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import React from 'react';
import { Box } from '../../Box/Box';
import type { UseIconProps } from '../../../hooks/useIcon';
import useIcon from '../../../hooks/useIcon';
import useIcon, { type UseIconProps } from '../../../hooks/useIcon';
import { IconMessageSvg } from './IconMessageSvg';

export type IconMessageProps = UseIconProps;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import React from 'react';
import { Box } from '../../Box/Box';
import type { UseIconProps } from '../../../hooks/useIcon';
import useIcon from '../../../hooks/useIcon';
import useIcon, { type UseIconProps } from '../../../hooks/useIcon';
import { IconRocketSvg } from './IconRocketSvg';

export type IconRocketProps = UseIconProps;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import type React from 'react';
import { Box } from '../../Box/Box';
import type { UseIconProps } from '../../../hooks/useIcon';
import useIcon from '../../../hooks/useIcon';
import useIcon, { type UseIconProps } from '../../../hooks/useIcon';
import { IconSentimentSvg } from './IconSentimentSvg';
import { IconSentimentNegativeSvg } from './IconSentimentNegativeSvg';
import { IconSentimentPositiveSvg } from './IconSentimentPositiveSvg';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import React from 'react';
import { Box } from '../../Box/Box';
import type { UseIconProps } from '../../../hooks/useIcon';
import useIcon from '../../../hooks/useIcon';
import useIcon, { type UseIconProps } from '../../../hooks/useIcon';
import { IconSkillsSvg } from './IconSkillsSvg';

export type IconSkillsProps = UseIconProps;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import React from 'react';
import { Box } from '../../Box/Box';
import type { UseIconProps } from '../../../hooks/useIcon';
import useIcon from '../../../hooks/useIcon';
import useIcon, { type UseIconProps } from '../../../hooks/useIcon';
import { IconSocialXSvg } from './IconSocialXSvg';

export type IconSocialXProps = UseIconProps;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import React from 'react';
import { Box } from '../../Box/Box';
import type { UseIconProps } from '../../../hooks/useIcon';
import useIcon from '../../../hooks/useIcon';
import useIcon, { type UseIconProps } from '../../../hooks/useIcon';
import { IconSortSvg } from './IconSortSvg';

export type IconSortProps = UseIconProps;
Expand Down
9 changes: 7 additions & 2 deletions packages/braid-design-system/src/lib/utils/flattenChildren.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
// Copied and modified from https://github.com/grrowl/react-keyed-flatten-children/blob/0b4fd6dad491905e73551c9d4496198f6b87eb41/index.ts
import type { ReactElement, ReactNode } from 'react';
import { Children, isValidElement, cloneElement } from 'react';
import {
type ReactElement,
type ReactNode,
Children,
isValidElement,
cloneElement,
} from 'react';
import { isFragment } from 'react-is';

type ReactChild = ReactElement | string | number;
Expand Down
Loading

0 comments on commit e06f321

Please sign in to comment.