Skip to content

Commit 188f706

Browse files
committed
update deps
1 parent 4e5bb8f commit 188f706

File tree

16 files changed

+16115
-13788
lines changed

16 files changed

+16115
-13788
lines changed

package.json

+14-14
Original file line numberDiff line numberDiff line change
@@ -6,22 +6,22 @@
66
"url": "https://github.com/utilitywarehouse/design-systems"
77
},
88
"devDependencies": {
9-
"@changesets/changelog-github": "^0.4.2",
10-
"@changesets/cli": "^2.23.1",
11-
"@typescript-eslint/eslint-plugin": "^6.21.0",
12-
"@typescript-eslint/parser": "^6.21.0",
13-
"@utilitywarehouse/prettier-config": "^0.1.0",
14-
"eslint": "^8.25.0",
15-
"eslint-plugin-jsx-a11y": "^6.6.1",
16-
"eslint-plugin-react": "^7.30.1",
17-
"eslint-plugin-react-hooks": "^4.6.0",
9+
"@changesets/changelog-github": "^0.5.0",
10+
"@changesets/cli": "^2.27.9",
11+
"@typescript-eslint/eslint-plugin": "^8.14.0",
12+
"@typescript-eslint/parser": "^8.14.0",
13+
"@utilitywarehouse/prettier-config": "^0.1.1",
14+
"eslint": "8",
15+
"eslint-plugin-jsx-a11y": "^6.10.2",
16+
"eslint-plugin-react": "^7.37.2",
17+
"eslint-plugin-react-hooks": "^5.0.0",
1818
"patch-package": "^8.0.0",
19-
"prettier": "^3.2.5",
20-
"turbo": "^2.0.12",
19+
"prettier": "^3.3.3",
20+
"turbo": "^2.2.3",
2121
"typescript": "^5"
2222
},
2323
"scripts": {
24-
"setup": "corepack enable && corepack prepare pnpm@8.6.3 --activate",
24+
"setup": "corepack enable && corepack prepare pnpm@9 --activate",
2525
"build": "turbo run build",
2626
"dev": "turbo run dev",
2727
"build:storybook": "turbo run --no-cache build:storybook",
@@ -46,12 +46,12 @@
4646
"apps/*"
4747
],
4848
"dependencies": {
49-
"pnpm": "^8.6.3"
49+
"pnpm": "^9"
5050
},
5151
"resolutions": {
5252
"react-docgen-typescript": "2.2.2"
5353
},
54-
"packageManager": "pnpm@8.6.3",
54+
"packageManager": "pnpm@9.14.2",
5555
"pnpm": {
5656
"overrides": {
5757
"react-docgen-typescript": "2.2.2",

packages/native-ui/src/components/Center/Center.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { View } from 'react-native';
33
import { createStyleSheet } from 'react-native-unistyles';
44
import { Box } from '../../lab';
55

6-
interface CenterProps extends Omit<ComponentProps<typeof Box>, 'style'> {}
6+
type CenterProps = Omit<ComponentProps<typeof Box>, 'style'>;
77

88
const stylesheet = createStyleSheet({
99
container: {

packages/native-ui/src/components/Input/Input.props.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,6 @@ interface InputWithoutChildrenProps extends InputBaseProps, TextInputProps {
5353
*/
5454
type InputProps = InputWithChildrenProps | InputWithoutChildrenProps;
5555

56-
export interface InputContextValue extends InputBaseProps {}
56+
export type InputContextValue = InputBaseProps;
5757

5858
export default InputProps;

packages/native-ui/src/components/List/ListHeading/ListHeading.props.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import type { ViewProps } from 'react-native';
22

3-
interface ListHeadingBaseProps extends Omit<ViewProps, 'children'> {}
3+
type ListHeadingBaseProps = Omit<ViewProps, 'children'>;
44

55
export interface ListHeadingWithChildren extends ListHeadingBaseProps {
66
children: ViewProps['children'];

packages/native-ui/src/config/gluestack-ui.config.ts

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* eslint-disable @typescript-eslint/no-empty-object-type */
12
import { AnimationResolver } from '@gluestack-style/animation-resolver';
23
import { MotionAnimationDriver } from '@gluestack-style/legend-motion-animation-driver';
34
import { createConfig, createComponents } from '@gluestack-style/react';

packages/native-ui/src/hooks/useMedia.ts

+9-8
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { UnistylesBreakpoints, useStyles } from 'react-native-unistyles';
1+
import { useStyles } from 'react-native-unistyles';
22

33
const useMedia = (): Partial<Record<keyof typeof breakpoints, boolean>> => {
44
const {
@@ -10,14 +10,15 @@ const useMedia = (): Partial<Record<keyof typeof breakpoints, boolean>> => {
1010
const mediaBreakpoints: Partial<Record<BreakPointKeys, boolean>> = {};
1111

1212
// Type guard function to check if 'breakpoint' is a key of 'breakpoints'
13-
function isBreakpointKey(
14-
value: keyof UnistylesBreakpoints,
15-
breakpointsObj: typeof breakpoints
16-
): value is BreakPointKeys {
17-
return value in breakpointsObj;
18-
}
13+
// function isBreakpointKey(
14+
// value: keyof UnistylesBreakpoints,
15+
// breakpointsObj: typeof breakpoints
16+
// ): value is BreakPointKeys {
17+
// return value in breakpointsObj;
18+
// }
1919

20-
if (isBreakpointKey(breakpoint, breakpoints)) {
20+
// if (isBreakpointKey(breakpoint, breakpoints)) {
21+
if (breakpoint in breakpoints) {
2122
(Object.keys(breakpoints) as Array<BreakPointKeys>).forEach(currentBreakPoint => {
2223
mediaBreakpoints[currentBreakPoint] =
2324
breakpoints[currentBreakPoint] === breakpoints[breakpoint];

packages/native-ui/src/lab/Box/Box.tsx

+3-3
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ const BoxComponent = <T extends React.ElementType = typeof View>(
259259
if (propValue !== undefined) {
260260
const themeKey = themeStyleMapping[stylePropName];
261261
if (themeKey) {
262-
const themeMapping = theme[themeKey as keyof UnistylesTheme];
262+
const themeMapping = theme[themeKey];
263263
if (themeMapping && typeof themeMapping === 'object') {
264264
(styles as any)[stylePropName] = resolveThemeValue(propValue, themeMapping);
265265
} else {
@@ -292,13 +292,13 @@ const BoxComponent = <T extends React.ElementType = typeof View>(
292292

293293
// Check if propName is a valid style property
294294
if (isViewStyleProp(propName)) {
295-
const stylePropName = propName as keyof ViewStyle;
295+
const stylePropName = propName;
296296
const propValue = props[propName as keyof Omit<BoxProps, 'children' | 'style'>];
297297

298298
if (propValue !== undefined) {
299299
const themeKey = themeStyleMapping[stylePropName];
300300
if (themeKey) {
301-
const themeMapping = theme[themeKey as keyof UnistylesTheme];
301+
const themeMapping = theme[themeKey];
302302
if (themeMapping && typeof themeMapping === 'object') {
303303
(styles as any)[stylePropName] = resolveThemeValue(propValue, themeMapping);
304304
} else {

packages/native-ui/src/lab/Carousel/Carousel.props.ts

+7-3
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,18 @@ import {
88
ViewStyle,
99
} from 'react-native';
1010

11-
export interface CarouselRef extends FlatList {}
11+
export type CarouselRef = FlatList;
1212

1313
export interface CarouselContextValue {
1414
activeIndex: number;
1515
numItems: number;
1616
}
1717

18-
export interface CarouselProps<T> extends Pick<FlatListProps<T>, 'children' | 'data' | 'removeClippedSubviews' | 'renderItem' | 'scrollEnabled' | 'style'> {
18+
export interface CarouselProps<T>
19+
extends Pick<
20+
FlatListProps<T>,
21+
'children' | 'data' | 'removeClippedSubviews' | 'renderItem' | 'scrollEnabled' | 'style'
22+
> {
1923
inactiveItemOpacity?: number;
2024
itemStyle?: StyleProp<ViewStyle>;
2125
itemWidth?: number;
@@ -33,7 +37,7 @@ export interface CarouselItemProps<T> extends ListRenderItemInfo<T>, ViewProps {
3337
width: number;
3438
}
3539

36-
export interface CarouselPaginationProps extends ViewProps {}
40+
export type CarouselPaginationProps = ViewProps;
3741

3842
export interface CarouselPaginationItemProps extends ViewProps {
3943
active: boolean;

packages/native-ui/src/types/unistyles.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@ export type AppThemes = {
99
};
1010

1111
declare module 'react-native-unistyles' {
12-
export interface UnistylesBreakpoints extends AppBreakpoints {}
13-
export interface UnistylesThemes extends AppThemes {}
12+
export type UnistylesBreakpoints = AppBreakpoints;
13+
export type UnistylesThemes = AppThemes;
1414
}

packages/web-ui/src/components/Box/createBox.ts

+2-4
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,12 @@ type Options = {
2222
*/
2323
export function createBox<
2424
RootComponent extends React.ElementType = MuiBoxTypeMap['defaultComponent'],
25-
>(
26-
/* eslint-disable @typescript-eslint/ban-types */
27-
options: Options = {}
28-
) {
25+
>(options: Options = {}) {
2926
const { componentName = 'Box' } = options;
3027
const BaseBox = createMuiBox<Theme>({
3128
defaultTheme: theme,
3229
defaultClassName: withGlobalPrefix(componentName),
3330
});
31+
// eslint-disable-next-line @typescript-eslint/no-empty-object-type
3432
return BaseBox as OverridableComponent<MuiBoxTypeMap<{}, RootComponent, Theme>>;
3533
}
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
import { CheckboxBaseProps } from '../CheckboxBase';
22

3-
export interface CheckboxProps extends CheckboxBaseProps {}
3+
export type CheckboxProps = CheckboxBaseProps;
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
import { CheckboxBaseProps } from '../CheckboxBase';
22

3-
export interface CheckboxTileProps extends CheckboxBaseProps {}
3+
export type CheckboxTileProps = CheckboxBaseProps;
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
import { ComponentPropsWithoutRef } from 'react';
22

3-
export interface FieldsetProps extends ComponentPropsWithoutRef<'fieldset'> {}
3+
export type FieldsetProps = ComponentPropsWithoutRef<'fieldset'>;

packages/web-ui/src/components/Menu/Menu.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import { colors } from '@utilitywarehouse/colour-system';
88

99
import { spacing } from '../../utils';
1010

11-
export interface MenuProps extends Omit<MuiMenuProps, 'ref'> {}
11+
export type MenuProps = Omit<MuiMenuProps, 'ref'>;
1212

1313
const StyledMenu = styled(MuiMenu)({
1414
'& .MuiPaper-root': {
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
import type { RadioProps } from '../Radio';
22

3-
export interface RadioTileProps extends RadioProps {}
3+
export type RadioTileProps = RadioProps;

0 commit comments

Comments
 (0)