Skip to content

Commit 6fb247e

Browse files
author
Kubit
committed
New import routes
1 parent 8995641 commit 6fb247e

File tree

7 files changed

+22
-11
lines changed

7 files changed

+22
-11
lines changed

src/components/dropdownSelected/dropdownSelectedStandAlone.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { keyDownMove, keyUpMove } from '@/components/listOptions/utils';
44
import { useId } from '@/hooks/useId/useId';
55
import { ROLES } from '@/types';
66

7-
import { ButtonType } from '../button';
7+
import { ButtonType } from '../button/types';
88
import { ElementOrIcon } from '../elementOrIcon';
99
import { ListOptions, ListOptionsOptionType, ListOptionsType } from '../listOptions';
1010
import {

src/components/icon/icon.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { ScreenReaderOnly } from '@/components/screenReaderOnly';
44
import { useMediaDevice } from '@/hooks/index';
55
import { pickAriaProps } from '@/utils/aria/aria';
66

7-
import { ButtonType } from '../button';
7+
import { ButtonType } from '../button/types/type';
88
import { IconButtonStyled } from './icon.styled';
99
import { IconStandAlone } from './iconStandAlone';
1010
import { IIcon } from './types';

src/components/mediaButton/mediaButtonStandAlone.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import * as React from 'react';
22

3-
import { ButtonType } from '../button';
3+
import { ButtonType } from '../button/types';
44
//components
55
import { ElementOrIcon } from '../elementOrIcon';
66
import { Loader } from '../loader';

src/components/mediaButton/stories/mediaButton.stories.tsx

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import { argtypes } from './argtypes';
1212
const themeSelected = localStorage.getItem('themeSelected') || 'kubit';
1313

1414
const meta = {
15-
title: 'Components/Resources/Mediabutton',
15+
title: 'Components/Actions/Mediabutton',
1616
component: Story,
1717
parameters: {
1818
layout: 'centered',
@@ -41,7 +41,7 @@ const commonArgs: IMediaButton = {
4141
)[0] as MediaButtonSizeType,
4242
icon: { icon: ICONS.ICON_PLACEHOLDER },
4343
twistedIcon: { icon: ICONS.ICON_CLOSE },
44-
hasBackground: false,
44+
hasBackground: true,
4545
loading: true,
4646
};
4747

@@ -52,6 +52,18 @@ export const Mediabutton: Story = {
5252
},
5353
};
5454

55+
export const MediabuttonWithoutBackground: Story = {
56+
args: {
57+
...commonArgs,
58+
themeArgs: themesObject[themeSelected][STYLES_NAME.MEDIA_BUTTON],
59+
size: Object.values(
60+
variantsObject[themeSelected].MediaButtonIconSizeVariantType || {}
61+
)[1] as MediaButtonSizeType,
62+
hasBackground: false,
63+
loading: false,
64+
},
65+
};
66+
5567
export const MediabuttonWithCtv: Story = {
5668
args: {
5769
...commonArgs,

src/components/navigationCard/navigationCardStandAlone.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { Text } from '@/components/text/text';
66
import { TextComponentType } from '@/components/text/types/component';
77
import { useId } from '@/hooks';
88

9-
import { ButtonType } from '../button';
9+
import { ButtonType } from '../button/types';
1010
import { NavigationCardInfo } from './fragments';
1111
import { buildProps } from './helpers';
1212
import {
@@ -36,8 +36,7 @@ const NavigationCardStandaloneComponent = (
3636
return (
3737
// Can not be spread -> styled component breaks
3838
<NavigationCardStyled
39-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
40-
ref={ref as any}
39+
ref={ref as React.ForwardedRef<HTMLButtonElement>}
4140
aria-disabled={props['aria-disabled']}
4241
as={props.url ? props.component : 'button'}
4342
className={props.className}

src/components/pillV2/pillStandAlone.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import { useId } from '@/hooks';
77
import { ROLES } from '@/types';
88
import { InputTypeType } from '@/types/inputType';
99

10-
import { ButtonType } from '../button';
10+
import { ButtonType } from '../button/types';
1111
import {
1212
PillAsButton,
1313
PillContentContainerStyled,
@@ -18,7 +18,7 @@ import { IPillStandAlone, PillType } from './types';
1818

1919
const PillStandAloneComponent = (
2020
{ dataTestId = 'pill', type = PillType.BUTTON, ...props }: IPillStandAlone,
21-
ref: React.ForwardedRef<HTMLButtonElement> | undefined | null
21+
ref: React.ForwardedRef<HTMLDivElement> | undefined | null
2222
): JSX.Element => {
2323
const id = useId('pill');
2424
const pillContentId = `${id}-content`;

src/components/quickButton/quickButton.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { States, useManageState } from '@/hooks';
66
import { useStyles } from '@/hooks/useStyles/useStyles';
77
import { ErrorBoundary, FallbackComponent } from '@/provider/errorBoundary';
88

9-
import { ButtonType } from '../button';
9+
import { ButtonType } from '../button/types';
1010
//components
1111
import { QuickButtonStandAlone } from './quickButtonStandAlone';
1212
import {

0 commit comments

Comments
 (0)