Skip to content

Commit

Permalink
chore: update react-jss to 10.0.4 (#293)
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcusNotheis authored Jan 28, 2020
1 parent ff57dc3 commit 134f083
Show file tree
Hide file tree
Showing 30 changed files with 159 additions and 146 deletions.
2 changes: 1 addition & 1 deletion packages/main/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"@ui5/webcomponents-react-base": "^0.7.0",
"lodash.debounce": "^4.0.8",
"react-content-loader": "^4.3.4",
"react-jss": "10.0.3",
"react-jss": "10.0.4",
"react-table": "7.0.0-rc.15",
"react-toastify": "^5.5.0",
"react-window": "^1.8.5"
Expand Down
3 changes: 2 additions & 1 deletion packages/main/src/components/AnalyticalCard/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { usePassThroughHtmlProps } from '@ui5/webcomponents-react-base/lib/usePa
import React, { CSSProperties, FC, forwardRef, ReactNode, ReactNodeArray, Ref, useMemo } from 'react';
import { createUseStyles } from 'react-jss';
import { CommonProps } from '../../interfaces/CommonProps';
import { JSSTheme } from '../../interfaces/JSSTheme';

import styles from './AnalyticalCard.jss';

Expand All @@ -18,7 +19,7 @@ export interface AnalyticalCardTypes extends CommonProps {
width?: CSSProperties['width'];
}

const useStyles = createUseStyles<keyof ReturnType<typeof styles>>(styles, { name: 'AnalyticalCard' });
const useStyles = createUseStyles<JSSTheme, keyof ReturnType<typeof styles>>(styles, { name: 'AnalyticalCard' });

/**
* <code>import { AnalyticalCard } from '@ui5/webcomponents-react/lib/AnalyticalCard';</code>
Expand Down
3 changes: 2 additions & 1 deletion packages/main/src/components/AnalyticalCardHeader/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import { ValueState } from '@ui5/webcomponents-react/lib/ValueState';
import React, { FC, forwardRef, Ref, useCallback, useMemo } from 'react';
import { createUseStyles } from 'react-jss';
import { CommonProps } from '../../interfaces/CommonProps';
import { JSSTheme } from '../../interfaces/JSSTheme';
import styles from './AnalyticalCardHeader.jss';

export interface AnalyticalCardHeaderPropTypes extends CommonProps {
Expand All @@ -32,7 +33,7 @@ export interface AnalyticalCardHeaderPropTypes extends CommonProps {
currency?: string;
}

const useStyles = createUseStyles<keyof ReturnType<typeof styles>>(styles, {
const useStyles = createUseStyles<JSSTheme, keyof ReturnType<typeof styles>>(styles, {
name: 'AnalyticalCardHeader'
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ const styles = ({ parameters }: JSSTheme) => ({
}
});

const useStyles = createUseStyles<keyof ReturnType<typeof styles>>(styles, { name: 'TableColumnHeader' });
const useStyles = createUseStyles<JSSTheme, keyof ReturnType<typeof styles>>(styles, { name: 'TableColumnHeader' });

export /**
* <code>import { ColumnHeader } from '@ui5/webcomponents-react/lib/ColumnHeader';</code>
Expand Down
2 changes: 1 addition & 1 deletion packages/main/src/components/AnalyticalTable/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ export interface TableProps extends CommonProps {
LoadingComponent?: ComponentType<any>;
}

const useStyles = createUseStyles<keyof ReturnType<typeof styles>>(styles, { name: 'AnalyticalTable' });
const useStyles = createUseStyles<JSSTheme, keyof ReturnType<typeof styles>>(styles, { name: 'AnalyticalTable' });

/**
* <code>import { AnalyticalTable } from '@ui5/webcomponents-react/lib/AnalyticalTable';</code>
Expand Down
3 changes: 2 additions & 1 deletion packages/main/src/components/Avatar/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { AvatarSize } from '@ui5/webcomponents-react/lib/AvatarSize';
import React, { CSSProperties, FC, forwardRef, Ref, useCallback } from 'react';
import { createUseStyles } from 'react-jss';
import { CommonProps } from '../../interfaces/CommonProps';
import { JSSTheme } from '../../interfaces/JSSTheme';
import styles from './Avatar.jss';

export interface AvatarPropTypes extends CommonProps {
Expand All @@ -18,7 +19,7 @@ export interface AvatarPropTypes extends CommonProps {
customFontSize?: CSSProperties['width'];
}

const useStyles = createUseStyles<keyof ReturnType<typeof styles>>(styles, { name: 'Avatar' });
const useStyles = createUseStyles<JSSTheme, keyof ReturnType<typeof styles>>(styles, { name: 'Avatar' });

/**
* <code>import { Avatar } from '@ui5/webcomponents-react/lib/Avatar';</code>
Expand Down
3 changes: 2 additions & 1 deletion packages/main/src/components/Carousel/CarouselPagination.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,10 @@ import { Label } from '@ui5/webcomponents-react/lib/Label';
import { PlacementType } from '@ui5/webcomponents-react/lib/PlacementType';
import React, { Children, FC, useMemo } from 'react';
import { createUseStyles } from 'react-jss';
import { JSSTheme } from '../../interfaces/JSSTheme';
import styles from './CarouselPagination.jss';

const useStyles = createUseStyles<keyof ReturnType<typeof styles>>(styles, { name: 'CarouselPagination' });
const useStyles = createUseStyles<JSSTheme, keyof ReturnType<typeof styles>>(styles, { name: 'CarouselPagination' });

export interface CarouselPaginationPropTypes {
/**
Expand Down
3 changes: 2 additions & 1 deletion packages/main/src/components/Carousel/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ import React, {
} from 'react';
import { createUseStyles } from 'react-jss';
import { CommonProps } from '../../interfaces/CommonProps';
import { JSSTheme } from '../../interfaces/JSSTheme';
import styles from './Carousel.jss';
import { CarouselPagination, CarouselPaginationPropTypes } from './CarouselPagination';

Expand Down Expand Up @@ -47,7 +48,7 @@ export interface CarouselPropTypes
loop?: boolean;
}

const useStyles = createUseStyles<keyof ReturnType<typeof styles>>(styles, { name: 'Carousel' });
const useStyles = createUseStyles<JSSTheme, keyof ReturnType<typeof styles>>(styles, { name: 'Carousel' });

/**
* <code>import { Carousel } from '@ui5/webcomponents-react/lib/Carousel';</code>
Expand Down
3 changes: 2 additions & 1 deletion packages/main/src/components/FilterBar/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import React, { FC, forwardRef, ReactNode, ReactNodeArray, RefObject, useCallbac
import { createUseStyles } from 'react-jss';
import { ClassProps } from '../../interfaces/ClassProps';
import { CommonProps } from '../../interfaces/CommonProps';
import { JSSTheme } from '../../interfaces/JSSTheme';
import styles from './FilterBar.jss';

export interface FilterBarPropTypes extends CommonProps {
Expand All @@ -16,7 +17,7 @@ export interface FilterBarPropTypes extends CommonProps {

interface FilterBarInternalProps extends FilterBarPropTypes, ClassProps {}

const useStyles = createUseStyles<keyof ReturnType<typeof styles>>(styles, { name: 'FilterBar' });
const useStyles = createUseStyles<JSSTheme, keyof ReturnType<typeof styles>>(styles, { name: 'FilterBar' });

/**
* <code>import { FilterBar } from '@ui5/webcomponents-react/lib/FilterBar';</code>
Expand Down
3 changes: 2 additions & 1 deletion packages/main/src/components/Form/FormGroup/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,15 @@ import { TitleLevel } from '@ui5/webcomponents-react/lib/TitleLevel';
import React, { Children, FC, forwardRef, ReactNode, ReactNodeArray, Ref } from 'react';
import { createUseStyles } from 'react-jss';
import { CommonProps } from '../../../interfaces/CommonProps';
import { JSSTheme } from '../../../interfaces/JSSTheme';
import { styles } from '../Form.jss';

export interface FormGroupProps extends CommonProps {
title?: string;
children: ReactNode | ReactNodeArray;
}

const useStyles = createUseStyles<keyof ReturnType<typeof styles>>(styles, { name: 'FormGroup' });
const useStyles = createUseStyles<JSSTheme, keyof ReturnType<typeof styles>>(styles, { name: 'FormGroup' });

/**
* <code>import { FormGroup } from '@ui5/webcomponents-react/lib/FormGroup';</code>
Expand Down
3 changes: 2 additions & 1 deletion packages/main/src/components/Form/FormItem/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { Label } from '@ui5/webcomponents-react/lib/Label';
import React, { FC, forwardRef, ReactNode, ReactNodeArray, Ref, useContext, useMemo } from 'react';
import { createUseStyles } from 'react-jss';
import { CommonProps } from '../../../interfaces/CommonProps';
import { JSSTheme } from '../../../interfaces/JSSTheme';
import { styles } from '../Form.jss';

export interface FormItemProps extends CommonProps {
Expand All @@ -14,7 +15,7 @@ const calculateWidth = (rate) => {
return Math.floor((100 / 12) * rate) + '%';
};

const useStyles = createUseStyles<keyof ReturnType<typeof styles>>(styles, { name: 'FormItem' });
const useStyles = createUseStyles<JSSTheme, keyof ReturnType<typeof styles>>(styles, { name: 'FormItem' });

/**
* <code>import { FormItem } from '@ui5/webcomponents-react/lib/FormItem';</code>
Expand Down
3 changes: 2 additions & 1 deletion packages/main/src/components/Form/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import { TitleLevel } from '@ui5/webcomponents-react/lib/TitleLevel';
import React, { FC, forwardRef, ReactElement, Ref, useMemo } from 'react';
import { createUseStyles } from 'react-jss';
import { CommonProps } from '../../interfaces/CommonProps';
import { JSSTheme } from '../../interfaces/JSSTheme';
import { styles } from './Form.jss';

export interface FormPropTypes extends CommonProps {
Expand All @@ -21,7 +22,7 @@ export interface FormPropTypes extends CommonProps {
title?: string;
}

const useStyles = createUseStyles<keyof ReturnType<typeof styles>>(styles, { name: 'Form' });
const useStyles = createUseStyles<JSSTheme, keyof ReturnType<typeof styles>>(styles, { name: 'Form' });

/**
* <code>import { Form } from '@ui5/webcomponents-react/lib/Form';</code>
Expand Down
3 changes: 2 additions & 1 deletion packages/main/src/components/Loader/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { LoaderType } from '@ui5/webcomponents-react/lib/LoaderType';
import React, { CSSProperties, FC, forwardRef, RefObject, useEffect, useMemo, useState } from 'react';
import { createUseStyles } from 'react-jss';
import { CommonProps } from '../../interfaces/CommonProps';
import { JSSTheme } from '../../interfaces/JSSTheme';
import { styles } from './Loader.jss';

export interface LoaderProps extends CommonProps {
Expand All @@ -15,7 +16,7 @@ export interface LoaderProps extends CommonProps {
progress?: CSSProperties['width'];
}

const useStyles = createUseStyles<keyof ReturnType<typeof styles>>(styles, { name: 'Loader' });
const useStyles = createUseStyles<JSSTheme, keyof ReturnType<typeof styles>>(styles, { name: 'Loader' });

/**
* <code>import { Loader } from '@ui5/webcomponents-react/lib/Loader';</code>
Expand Down
3 changes: 2 additions & 1 deletion packages/main/src/components/MessageBox/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ import { TitleLevel } from '@ui5/webcomponents-react/lib/TitleLevel';
import React, { FC, forwardRef, isValidElement, ReactNode, Ref, useCallback, useMemo } from 'react';
import { createUseStyles } from 'react-jss';
import { CommonProps } from '../../interfaces/CommonProps';
import { JSSTheme } from '../../interfaces/JSSTheme';
import { Ui5DialogDomRef } from '../../interfaces/Ui5DialogDomRef';
import styles from './MessageBox.jss';

Expand All @@ -31,7 +32,7 @@ export interface MessageBoxPropTypes extends CommonProps {
onClose: (event: Event) => void;
}

const useStyles = createUseStyles<keyof ReturnType<typeof styles>>(styles, { name: 'MessageBox' });
const useStyles = createUseStyles<JSSTheme, keyof ReturnType<typeof styles>>(styles, { name: 'MessageBox' });

/**
* <code>import { MessageBox } from '@ui5/webcomponents-react/lib/MessageBox';</code>
Expand Down
4 changes: 2 additions & 2 deletions packages/main/src/components/MessageToast/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ const coloredStyles = ({ parameters }: JSSTheme) => ({
}
});

const useIconStyles = createUseStyles<keyof ReturnType<typeof coloredStyles>>(coloredStyles, {
const useIconStyles = createUseStyles<JSSTheme, keyof ReturnType<typeof coloredStyles>>(coloredStyles, {
name: 'MessageToastIcon'
});

Expand All @@ -39,7 +39,7 @@ const ColoredIcon = ({ name, state }) => {
return <Icon name={name} className={`${classes.base} ${classes[state]}`} />;
};

const useMessageToastStyles = createUseStyles<keyof ReturnType<typeof styles>>(styles, {
const useMessageToastStyles = createUseStyles<JSSTheme, keyof ReturnType<typeof styles>>(styles, {
name: 'MessageToast'
});

Expand Down
3 changes: 2 additions & 1 deletion packages/main/src/components/Notification/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import { Text } from '@ui5/webcomponents-react/lib/Text';
import React, { FC, forwardRef, ReactNode, RefObject, useCallback, useEffect, useMemo, useState } from 'react';
import { createUseStyles } from 'react-jss';
import { CommonProps } from '../../interfaces/CommonProps';
import { JSSTheme } from '../../interfaces/JSSTheme';
import styles from './Notification.jss';

export interface NotificationProptypes extends CommonProps {
Expand All @@ -38,7 +39,7 @@ export interface NotificationProptypes extends CommonProps {
autoPriority?: boolean;
}

const useStyles = createUseStyles<keyof ReturnType<typeof styles>>(styles, { name: 'Notification' });
const useStyles = createUseStyles<JSSTheme, keyof ReturnType<typeof styles>>(styles, { name: 'Notification' });

const WEIGHT = { None: 0, Low: 1, Medium: 2, High: 3 };

Expand Down
3 changes: 2 additions & 1 deletion packages/main/src/components/ObjectPageSection/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { useScrollElement } from '@ui5/webcomponents-react-base/lib/useScrollEle
import React, { FC, forwardRef, ReactNode, ReactNodeArray, RefObject } from 'react';
import { createUseStyles } from 'react-jss';
import { CommonProps } from '../../interfaces/CommonProps';
import { JSSTheme } from '../../interfaces/JSSTheme';
import { EmptyIdPropException } from '../ObjectPage/EmptyIdPropException';
import styles from './ObjectPageSection.jss';

Expand All @@ -15,7 +16,7 @@ export interface ObjectPageSectionPropTypes extends CommonProps {
children: ReactNode | ReactNodeArray;
}

const useStyles = createUseStyles<keyof ReturnType<typeof styles>>(styles, { name: 'ObjectPageSection' });
const useStyles = createUseStyles<JSSTheme, keyof ReturnType<typeof styles>>(styles, { name: 'ObjectPageSection' });

/**
* <code>import { ObjectPageSection } from '@ui5/webcomponents-react/lib/ObjectPageSection';</code>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ const styles = ({ parameters }: JSSTheme) => ({
}
});

const useStyles = createUseStyles<keyof ReturnType<typeof styles>>(styles, { name: 'ObjectPageSubSection' });
const useStyles = createUseStyles<JSSTheme, keyof ReturnType<typeof styles>>(styles, { name: 'ObjectPageSubSection' });

/**
* <code>import { ObjectPageSubSection } from '@ui5/webcomponents-react/lib/ObjectPageSubSection';</code>
Expand Down
3 changes: 2 additions & 1 deletion packages/main/src/components/ObjectStatus/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import { ValueState } from '@ui5/webcomponents-react/lib/ValueState';
import React, { FC, forwardRef, ReactNode, Ref, useMemo } from 'react';
import { createUseStyles } from 'react-jss';
import { CommonProps } from '../../interfaces/CommonProps';
import { JSSTheme } from '../../interfaces/JSSTheme';
import styles from './ObjectStatus.jss';

export interface ObjectStatusPropTypes extends CommonProps {
Expand Down Expand Up @@ -38,7 +39,7 @@ const getDefaultIcon = (state) => {
}
};

const useStyles = createUseStyles<keyof ReturnType<typeof styles>>(styles, { name: 'ObjectStatus' });
const useStyles = createUseStyles<JSSTheme, keyof ReturnType<typeof styles>>(styles, { name: 'ObjectStatus' });

/**
* <code>import { ObjectStatus } from '@ui5/webcomponents-react/lib/ObjectStatus';</code>
Expand Down
3 changes: 2 additions & 1 deletion packages/main/src/components/Page/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import { TitleLevel } from '@ui5/webcomponents-react/lib/TitleLevel';
import React, { FC, forwardRef, ReactElement, ReactNode, Ref, useCallback, useMemo } from 'react';
import { createUseStyles } from 'react-jss';
import { CommonProps } from '../../interfaces/CommonProps';
import { JSSTheme } from '../../interfaces/JSSTheme';
import { BarPropTypes } from '../Bar';
import styles from './Page.jss';

Expand All @@ -26,7 +27,7 @@ export interface PagePropTypes extends CommonProps {
children: ReactElement<any> | Array<ReactElement<any>> | ReactNode;
}

const useStyles = createUseStyles<keyof ReturnType<typeof styles>>(styles, {
const useStyles = createUseStyles<JSSTheme, keyof ReturnType<typeof styles>>(styles, {
name: 'Page'
});

Expand Down
3 changes: 2 additions & 1 deletion packages/main/src/components/ProgressIndicator/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { ValueState } from '@ui5/webcomponents-react/lib/ValueState';
import React, { FC, forwardRef, Ref, useMemo } from 'react';
import { createUseStyles } from 'react-jss';
import { CommonProps } from '../../interfaces/CommonProps';
import { JSSTheme } from '../../interfaces/JSSTheme';
import styles from './ProgressIndicator.jss';

export interface ProgressIndicatorPropTypes extends CommonProps {
Expand Down Expand Up @@ -32,7 +33,7 @@ export interface ProgressIndicatorPropTypes extends CommonProps {
state?: ValueState;
}

const useStyles = createUseStyles<keyof ReturnType<typeof styles>>(styles, { name: 'ProgressIndicator' });
const useStyles = createUseStyles<JSSTheme, keyof ReturnType<typeof styles>>(styles, { name: 'ProgressIndicator' });

/**
* <code>import { ProgressIndicator } from '@ui5/webcomponents-react/lib/ProgressIndicator';</code>
Expand Down
3 changes: 2 additions & 1 deletion packages/main/src/components/SegmentedButtonItem/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { usePassThroughHtmlProps } from '@ui5/webcomponents-react-base/lib/usePa
import React, { CSSProperties, FC, forwardRef, Ref, useCallback, useMemo } from 'react';
import { createUseStyles } from 'react-jss';
import { CommonProps } from '../../interfaces/CommonProps';
import { JSSTheme } from '../../interfaces/JSSTheme';
import styles from './SegmentedButtonItem.jss';

export interface SegmentedButtonItemPropTypes extends CommonProps {
Expand All @@ -15,7 +16,7 @@ export interface SegmentedButtonItemPropTypes extends CommonProps {
onClick?: (e: Event) => void;
}

const useStyles = createUseStyles<keyof ReturnType<typeof styles>>(styles, { name: 'SegmentedButtonItem' });
const useStyles = createUseStyles<JSSTheme, keyof ReturnType<typeof styles>>(styles, { name: 'SegmentedButtonItem' });

/**
* <code>import { SegmentedButtonItem } from '@ui5/webcomponents-react/lib/SegmentedButtonItem';</code>
Expand Down
3 changes: 2 additions & 1 deletion packages/main/src/components/SideNavigation/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import { SideNavigationOpenState } from '@ui5/webcomponents-react/lib/SideNaviga
import React, { Children, cloneElement, FC, forwardRef, ReactNode, Ref, useCallback, useEffect, useState } from 'react';
import { createUseStyles } from 'react-jss';
import { CommonProps } from '../../interfaces/CommonProps';
import { JSSTheme } from '../../interfaces/JSSTheme';
import { sideNavigationStyles } from './SideNavigation.jss';

export interface SideNavigationProps extends CommonProps {
Expand All @@ -23,7 +24,7 @@ export interface SideNavigationProps extends CommonProps {

let lastFiredSelection = '';

const useStyles = createUseStyles<keyof ReturnType<typeof sideNavigationStyles>>(sideNavigationStyles, {
const useStyles = createUseStyles<JSSTheme, keyof ReturnType<typeof sideNavigationStyles>>(sideNavigationStyles, {
name: 'SideNavigation'
});

Expand Down
10 changes: 7 additions & 3 deletions packages/main/src/components/SideNavigationListItem/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ import React, {
import { createPortal } from 'react-dom';
import { createUseStyles } from 'react-jss';
import { CommonProps } from '../../interfaces/CommonProps';
import { JSSTheme } from '../../interfaces/JSSTheme';
import { sideNavigationListItemStyles } from './SideNavigationListItem.jss';

export interface SideNavigationListItemProps extends CommonProps {
Expand All @@ -36,9 +37,12 @@ export interface SideNavigationListItemProps extends CommonProps {
children?: ReactNode | ReactNodeArray;
}

const useStyles = createUseStyles<keyof ReturnType<typeof sideNavigationListItemStyles>>(sideNavigationListItemStyles, {
name: 'SideNavigationListItem'
});
const useStyles = createUseStyles<JSSTheme, keyof ReturnType<typeof sideNavigationListItemStyles>>(
sideNavigationListItemStyles,
{
name: 'SideNavigationListItem'
}
);
/**
* <code>import { SideNavigationListItem } from '@ui5/webcomponents-react/lib/SideNavigationListItem';</code>
*/
Expand Down
3 changes: 2 additions & 1 deletion packages/main/src/components/Text/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { usePassThroughHtmlProps } from '@ui5/webcomponents-react-base/lib/usePa
import React, { CSSProperties, FC, forwardRef, ReactNode, Ref } from 'react';
import { createUseStyles } from 'react-jss';
import { CommonProps } from '../../interfaces/CommonProps';
import { JSSTheme } from '../../interfaces/JSSTheme';
import { ThemeOptions } from '../../interfaces/ThemeOptions';
import { TextStyles } from './Text.jss';

Expand All @@ -23,7 +24,7 @@ export interface TextProps extends CommonProps {
width?: CSSProperties['width'];
}

const useStyles = createUseStyles<keyof ReturnType<typeof TextStyles>>(TextStyles, { name: 'Text' });
const useStyles = createUseStyles<JSSTheme, keyof ReturnType<typeof TextStyles>>(TextStyles, { name: 'Text' });

/**
* <code>import { Text } from '@ui5/webcomponents-react/lib/Text';</code>
Expand Down
Loading

0 comments on commit 134f083

Please sign in to comment.