@ama-pt/agora-design-system 2.0.0 → 2.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/artifacts/dist/index.mjs +6069 -5386
- package/artifacts/dist/index.mjs.map +1 -1
- package/artifacts/dist/index.umd.js +2 -2
- package/artifacts/dist/index.umd.js.map +1 -1
- package/artifacts/dist/style.css +1 -1
- package/artifacts/dist/tailwind.css +240 -4
- package/artifacts/dist/types/components/avatar/avatar.d.ts +2 -2
- package/artifacts/dist/types/components/button/button.d.ts +2 -0
- package/artifacts/dist/types/components/button-group/button-group.d.ts +8 -0
- package/artifacts/dist/types/components/cards/card-links/card-links.d.ts +1 -1
- package/artifacts/dist/types/components/header/internals/context/data-context/utils/authenticated-utils.d.ts +3 -3
- package/artifacts/dist/types/components/index.d.ts +3 -0
- package/artifacts/dist/types/components/input-time/contexts/time-input-state.context.d.ts +32 -0
- package/artifacts/dist/types/components/input-time/index.d.ts +2 -0
- package/artifacts/dist/types/components/input-time/input-time.d.ts +78 -0
- package/artifacts/dist/types/components/input-time/time-picker-dropdown-body/time-picker-dropdown-body.d.ts +2 -0
- package/artifacts/dist/types/components/input-time/time-picker-dropdown-footer/time-picker-dropdown-footer.d.ts +5 -0
- package/artifacts/dist/types/components/input-time/time-picker-dropdown.d.ts +13 -0
- package/artifacts/dist/types/components/input-time/time-text/time-text.d.ts +8 -0
- package/artifacts/dist/types/components/input-time/utils/format-time.d.ts +24 -0
- package/artifacts/dist/types/components/panel-switcher/desktop/panel-switcher-desktop.d.ts +16 -0
- package/artifacts/dist/types/components/panel-switcher/index.d.ts +2 -0
- package/artifacts/dist/types/components/panel-switcher/mobile/panel-switcher-mobile.d.ts +20 -0
- package/artifacts/dist/types/components/panel-switcher/panel-switcher-container.d.ts +26 -0
- package/artifacts/dist/types/components/panel-switcher/panel-switcher.d.ts +29 -0
- package/artifacts/dist/types/components/toggle/index.d.ts +1 -1
- package/artifacts/dist/types/components/toggle/toggle.d.ts +37 -10
- package/artifacts/dist/types/components/toggle-group/index.d.ts +2 -0
- package/artifacts/dist/types/components/toggle-group/toggle-group.d.ts +59 -0
- package/artifacts/dist/types/models/index.d.ts +1 -0
- package/artifacts/dist/types/models/time-period-type.d.ts +1 -0
- package/package.json +22 -16
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import React, { ComponentPropsWithRef, ReactNode } from 'react';
|
|
2
|
+
import './input-time.scss';
|
|
3
|
+
import { BooleanProp, FeedbackState } from '../../models';
|
|
4
|
+
export interface InputTimeProps extends ComponentPropsWithRef<'input'> {
|
|
5
|
+
/**
|
|
6
|
+
* Input label text.
|
|
7
|
+
*/
|
|
8
|
+
label?: string;
|
|
9
|
+
/**
|
|
10
|
+
* Show or hide input label.
|
|
11
|
+
*/
|
|
12
|
+
hideLabel?: BooleanProp;
|
|
13
|
+
/**
|
|
14
|
+
* Sets the input in a error state. This also affects the feedback state.
|
|
15
|
+
*/
|
|
16
|
+
hasError?: BooleanProp;
|
|
17
|
+
/**
|
|
18
|
+
* Show or hide the feedback status text.
|
|
19
|
+
*/
|
|
20
|
+
hasFeedback?: BooleanProp;
|
|
21
|
+
/**
|
|
22
|
+
* Defines the state of the feedback text. This param will change the feedback icon and dye it.
|
|
23
|
+
*/
|
|
24
|
+
feedbackState?: FeedbackState;
|
|
25
|
+
/**
|
|
26
|
+
* Feedback text displayed below input.
|
|
27
|
+
*/
|
|
28
|
+
feedbackText?: ReactNode;
|
|
29
|
+
/**
|
|
30
|
+
* Show or hide the leading icon.
|
|
31
|
+
*/
|
|
32
|
+
hasIcon?: BooleanProp;
|
|
33
|
+
/**
|
|
34
|
+
* Name of the icon leading icon to be displayed.
|
|
35
|
+
*/
|
|
36
|
+
icon?: string;
|
|
37
|
+
/**
|
|
38
|
+
* The placeholder to apply in the input minute part
|
|
39
|
+
*/
|
|
40
|
+
minuteInputPlaceholder?: string;
|
|
41
|
+
/**
|
|
42
|
+
* The placeholder to apply in the input hour part
|
|
43
|
+
*/
|
|
44
|
+
hourInputPlaceholder?: string;
|
|
45
|
+
/**
|
|
46
|
+
* Accessible text to apply to the trailing clock icon.
|
|
47
|
+
*/
|
|
48
|
+
clockIconAriaLabel: string;
|
|
49
|
+
/**
|
|
50
|
+
* Label for the timepicker cancel button.
|
|
51
|
+
*/
|
|
52
|
+
cancelLabel: string;
|
|
53
|
+
/**
|
|
54
|
+
* Accessible text for the timepicker cancel button.
|
|
55
|
+
*/
|
|
56
|
+
cancelAriaLabel?: string;
|
|
57
|
+
/**
|
|
58
|
+
* Label for the timepicker ok button.
|
|
59
|
+
*/
|
|
60
|
+
okLabel: string;
|
|
61
|
+
/**
|
|
62
|
+
* Accessible text for the timepicker ok button.
|
|
63
|
+
*/
|
|
64
|
+
okAriaLabel?: string;
|
|
65
|
+
/**
|
|
66
|
+
* Show or hide the timepicker footer message.
|
|
67
|
+
*/
|
|
68
|
+
hasTimepickerMessage?: BooleanProp;
|
|
69
|
+
/**
|
|
70
|
+
* Label for the timepicker footer message.
|
|
71
|
+
*/
|
|
72
|
+
timepickerMessageLabel?: string;
|
|
73
|
+
/**
|
|
74
|
+
* Accessible text for the timepicker footer message.
|
|
75
|
+
*/
|
|
76
|
+
timepickerMessageAriaLabel?: string;
|
|
77
|
+
}
|
|
78
|
+
export declare const InputTime: React.ForwardRefExoticComponent<Omit<InputTimeProps, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { Labels } from './contexts/time-input-state.context';
|
|
3
|
+
import { BooleanProp } from '../../models';
|
|
4
|
+
export interface TimePickerDropdownProps {
|
|
5
|
+
className?: string;
|
|
6
|
+
setInputTextValue: (selectedTime: string) => void;
|
|
7
|
+
onChange: (selectedTime: string) => void;
|
|
8
|
+
onCancel: (selectedTime: string) => void;
|
|
9
|
+
hasTimepickerMessage?: BooleanProp;
|
|
10
|
+
textCurrentValue: string;
|
|
11
|
+
labels: Labels;
|
|
12
|
+
}
|
|
13
|
+
export declare const TimePickerDropdown: FC<TimePickerDropdownProps>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React, { ComponentPropsWithRef, ForwardRefRenderFunction } from 'react';
|
|
2
|
+
import './time-text.scss';
|
|
3
|
+
export interface TimeTextProps extends ComponentPropsWithRef<'input'> {
|
|
4
|
+
hourInputPlaceholder?: string;
|
|
5
|
+
minuteInputPlaceholder?: string;
|
|
6
|
+
}
|
|
7
|
+
export declare const InnerComponent: ForwardRefRenderFunction<HTMLInputElement, TimeTextProps>;
|
|
8
|
+
export declare const TimeText: React.ForwardRefExoticComponent<Omit<TimeTextProps, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { TimePeriod } from '../../../models';
|
|
2
|
+
export declare const FULL_TIME_TEXT_REGEX: RegExp;
|
|
3
|
+
export declare const MIN_HOUR = 1;
|
|
4
|
+
export declare const MAX_HOUR = 12;
|
|
5
|
+
export declare const MIN_MINUTE = 0;
|
|
6
|
+
export declare const MAX_MINUTE = 59;
|
|
7
|
+
export declare const timePeriod: {
|
|
8
|
+
am: string;
|
|
9
|
+
pm: string;
|
|
10
|
+
};
|
|
11
|
+
export declare const startTime: {
|
|
12
|
+
hour: string;
|
|
13
|
+
minute: string;
|
|
14
|
+
period: string;
|
|
15
|
+
};
|
|
16
|
+
export declare const formatHour: (hour: number | string) => string;
|
|
17
|
+
export declare const formatMinute: (minute: number | string) => string;
|
|
18
|
+
export declare const formatFullTime: (selectedHour: number | string, selectedMinute: number | string, selectedPeriod: TimePeriod) => string;
|
|
19
|
+
export declare const parseFullTime: (fullTimeText: string) => {
|
|
20
|
+
selectedHour: string;
|
|
21
|
+
selectedMinute: string;
|
|
22
|
+
selectedPeriod: TimePeriod;
|
|
23
|
+
};
|
|
24
|
+
export declare const isTimeTextValid: (timeText: string | number | undefined) => boolean;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { TabBodyProps, TabHeaderProps } from '../../../components/tabs';
|
|
2
|
+
import { BooleanProp } from '../../../models';
|
|
3
|
+
import React, { ComponentPropsWithoutRef, FC, ReactElement } from 'react';
|
|
4
|
+
import './panel-switcher-desktop.scss';
|
|
5
|
+
export interface PanelSwitcherDesktopProps extends ComponentPropsWithoutRef<'div'> {
|
|
6
|
+
leadingIcon?: string;
|
|
7
|
+
leadingIconHover?: string;
|
|
8
|
+
withIcon?: BooleanProp;
|
|
9
|
+
buttonListRef: React.RefObject<HTMLDivElement>;
|
|
10
|
+
panelRef: React.RefObject<HTMLDivElement>;
|
|
11
|
+
activeButton: number;
|
|
12
|
+
activateButton: (index: number) => void;
|
|
13
|
+
buttonsHeaderData: Array<ReactElement<TabHeaderProps>>;
|
|
14
|
+
buttonsBodyData: Array<ReactElement<TabBodyProps>>;
|
|
15
|
+
}
|
|
16
|
+
export declare const PanelSwitcherDesktop: FC<PanelSwitcherDesktopProps>;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import React, { FC, ReactElement } from 'react';
|
|
2
|
+
import { TabHeaderProps } from '../../../components/tabs';
|
|
3
|
+
import { TabBodyProps } from '../../../components/tabs';
|
|
4
|
+
import './panel-switcher-mobile.scss';
|
|
5
|
+
import { BooleanProp } from '../../../models';
|
|
6
|
+
export interface PanelSwitcherMobileProps {
|
|
7
|
+
modalCloseButtonLabel: string;
|
|
8
|
+
leadingIcon?: string;
|
|
9
|
+
leadingIconHover?: string;
|
|
10
|
+
buttonListRef: React.RefObject<HTMLDivElement>;
|
|
11
|
+
buttonsHeaderData: Array<ReactElement<TabHeaderProps>>;
|
|
12
|
+
buttonsBodyData: Array<ReactElement<TabBodyProps>>;
|
|
13
|
+
activeButton?: number;
|
|
14
|
+
withIcon?: BooleanProp;
|
|
15
|
+
}
|
|
16
|
+
export declare const ModalContent: FC<{
|
|
17
|
+
content: React.ReactNode;
|
|
18
|
+
}>;
|
|
19
|
+
export declare const PanelSwitcherMobileInternal: FC<PanelSwitcherMobileProps>;
|
|
20
|
+
export declare const PanelSwitcherMobile: FC<PanelSwitcherMobileProps>;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { FC, ReactElement } from 'react';
|
|
2
|
+
import { BooleanProp } from '../../models';
|
|
3
|
+
import { TabProps } from '../tabs';
|
|
4
|
+
export interface PanelSwitcherContainerProps {
|
|
5
|
+
/**
|
|
6
|
+
* Collection of the content displayed by triggering a panel button.
|
|
7
|
+
*/
|
|
8
|
+
children: ReactElement<TabProps> | Array<ReactElement<TabProps>>;
|
|
9
|
+
/**
|
|
10
|
+
* Defines if the panel tabs have an icon preceding the text.
|
|
11
|
+
*/
|
|
12
|
+
withIcon?: BooleanProp;
|
|
13
|
+
/**
|
|
14
|
+
* Defines the label of the modal close button.
|
|
15
|
+
*/
|
|
16
|
+
modalCloseButtonLabel: string;
|
|
17
|
+
/**
|
|
18
|
+
* Defines the name of the icon to be displayed
|
|
19
|
+
*/
|
|
20
|
+
leadingIcon?: string;
|
|
21
|
+
/**
|
|
22
|
+
* Defines the name of the icon to be displayed on mouse hover.
|
|
23
|
+
*/
|
|
24
|
+
leadingIconHover?: string;
|
|
25
|
+
}
|
|
26
|
+
export declare const PanelSwitcherContainer: FC<PanelSwitcherContainerProps>;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { FC, ReactNode } from 'react';
|
|
2
|
+
import { BooleanProp } from '../../models';
|
|
3
|
+
export interface PanelSwitcherProps {
|
|
4
|
+
/**
|
|
5
|
+
* Collection of the content displayed by triggering a panel button.
|
|
6
|
+
*/
|
|
7
|
+
children: ReactNode | Array<ReactNode>;
|
|
8
|
+
/**
|
|
9
|
+
* Collection of the string content displayed inside each panel button.
|
|
10
|
+
*/
|
|
11
|
+
panelButtons: string | Array<string>;
|
|
12
|
+
/**
|
|
13
|
+
* Defines the label of the modal close button.
|
|
14
|
+
*/
|
|
15
|
+
modalCloseButtonLabel: string;
|
|
16
|
+
/**
|
|
17
|
+
* Defines if the panel buttons have an icon preceding the text.
|
|
18
|
+
*/
|
|
19
|
+
withIcon?: BooleanProp;
|
|
20
|
+
/**
|
|
21
|
+
* Defines the name of the icon to be displayed.
|
|
22
|
+
*/
|
|
23
|
+
leadingIcon?: string;
|
|
24
|
+
/**
|
|
25
|
+
* Defines the name of the icon to be displayed on mouse hover.
|
|
26
|
+
*/
|
|
27
|
+
leadingIconHover?: string;
|
|
28
|
+
}
|
|
29
|
+
export declare const PanelSwitcher: FC<PanelSwitcherProps>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { Toggle } from './toggle';
|
|
2
|
-
export type { ToggleProps } from './toggle';
|
|
2
|
+
export type { ToggleProps, ToggleAppearance, ToggleVariant } from './toggle';
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import { ButtonProps } from '../button/button';
|
|
1
|
+
import { BooleanProp } from '../../models';
|
|
2
|
+
import React, { ComponentPropsWithRef, ForwardRefRenderFunction } from 'react';
|
|
4
3
|
import './toggle.scss';
|
|
5
4
|
/**
|
|
6
5
|
* The available toggle button appearances. Defines the button layout shape,
|
|
@@ -10,7 +9,15 @@ export type ToggleAppearance = 'button' | 'icon';
|
|
|
10
9
|
* The available variants of the toggle button. This variants will define the background and border color of the button.
|
|
11
10
|
*/
|
|
12
11
|
export type ToggleVariant = 'primary' | 'neutral';
|
|
13
|
-
export interface ToggleProps extends
|
|
12
|
+
export interface ToggleProps extends ComponentPropsWithRef<'input'> {
|
|
13
|
+
/**
|
|
14
|
+
* Defines if the toggle takes the container full width.
|
|
15
|
+
*/
|
|
16
|
+
fullWidth?: BooleanProp;
|
|
17
|
+
/**
|
|
18
|
+
* Defines if the toggle renders in dark mode.
|
|
19
|
+
*/
|
|
20
|
+
darkMode?: BooleanProp;
|
|
14
21
|
/**
|
|
15
22
|
* The button appearance. Define the button Shape.
|
|
16
23
|
*/
|
|
@@ -19,15 +26,35 @@ export interface ToggleProps extends Omit<ButtonProps, 'appearance' | 'variant'>
|
|
|
19
26
|
* The variant of the button. This variants will define the background and border color of the given Button.
|
|
20
27
|
*/
|
|
21
28
|
variant?: ToggleVariant;
|
|
22
|
-
/**
|
|
23
|
-
* Encompasses Pill component properties.
|
|
24
|
-
*/
|
|
25
|
-
pill?: PillProps;
|
|
26
29
|
/**
|
|
27
30
|
* Data attributes.
|
|
28
31
|
* Allow when implemented interface add data-* attribute.
|
|
29
32
|
*/
|
|
30
33
|
[dataAttribute: `data-${string}`]: string;
|
|
34
|
+
/**
|
|
35
|
+
* Defines if the button uses an icon.
|
|
36
|
+
*/
|
|
37
|
+
hasIcon?: BooleanProp;
|
|
38
|
+
/**
|
|
39
|
+
* Defines if children content it is to be rendered.
|
|
40
|
+
*/
|
|
41
|
+
iconOnly?: BooleanProp;
|
|
42
|
+
/**
|
|
43
|
+
* Defines the name of the leading icon to use.
|
|
44
|
+
*/
|
|
45
|
+
leadingIcon?: string;
|
|
46
|
+
/**
|
|
47
|
+
* Defines the name of the leading icon to be displayed on mouse hover. If none specified, it will the appropriate variant of the icon.
|
|
48
|
+
*/
|
|
49
|
+
leadingIconHover?: string;
|
|
50
|
+
/**
|
|
51
|
+
* Defines the name of the trailing icon to use.
|
|
52
|
+
*/
|
|
53
|
+
trailingIcon?: string;
|
|
54
|
+
/**
|
|
55
|
+
* Defines the name of the trailing icon to be displayed on mouse hover. If none specified, it will the appropriate variant of the icon.
|
|
56
|
+
*/
|
|
57
|
+
trailingIconHover?: string;
|
|
31
58
|
}
|
|
32
|
-
export declare const InnerToggle: ForwardRefRenderFunction<
|
|
33
|
-
export declare const Toggle: React.ForwardRefExoticComponent<ToggleProps & React.RefAttributes<
|
|
59
|
+
export declare const InnerToggle: ForwardRefRenderFunction<HTMLInputElement, ToggleProps>;
|
|
60
|
+
export declare const Toggle: React.ForwardRefExoticComponent<Omit<ToggleProps, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import React, { ComponentPropsWithRef, ForwardRefRenderFunction, ReactElement, Ref } from 'react';
|
|
2
|
+
import { ToggleAppearance, ToggleProps, ToggleVariant } from '../../components/toggle';
|
|
3
|
+
import { BooleanProp } from '../../models';
|
|
4
|
+
import './toggle-group.scss';
|
|
5
|
+
export type ToggleGroupOrientation = 'horizontal' | 'vertical';
|
|
6
|
+
export interface ToggleGroupElement extends HTMLDivElement {
|
|
7
|
+
/**
|
|
8
|
+
* Current checked values of the toggle group.
|
|
9
|
+
*/
|
|
10
|
+
value: string[];
|
|
11
|
+
}
|
|
12
|
+
export interface ToggleGroupProps extends Omit<ComponentPropsWithRef<'div'>, 'onChange'> {
|
|
13
|
+
/**
|
|
14
|
+
* Defines the appearance of the children toggles.
|
|
15
|
+
*/
|
|
16
|
+
appearance?: ToggleAppearance;
|
|
17
|
+
/**
|
|
18
|
+
* Defines if the children toggles are full width.
|
|
19
|
+
*/
|
|
20
|
+
fullWidth?: BooleanProp;
|
|
21
|
+
/**
|
|
22
|
+
* Toggles the dark mode.
|
|
23
|
+
*/
|
|
24
|
+
darkMode?: BooleanProp;
|
|
25
|
+
/**
|
|
26
|
+
* Defines the variant of the children toggles.
|
|
27
|
+
*/
|
|
28
|
+
variant?: ToggleVariant;
|
|
29
|
+
/**
|
|
30
|
+
* List of toggle components to aggregate.
|
|
31
|
+
*/
|
|
32
|
+
children?: ReactElement<ToggleProps> | ReactElement<ToggleProps>[];
|
|
33
|
+
/**
|
|
34
|
+
* Defines the orientation of the toggle group.
|
|
35
|
+
*/
|
|
36
|
+
orientation?: ToggleGroupOrientation;
|
|
37
|
+
/**
|
|
38
|
+
* Defines if it is allowed to have more than one toggle checked.
|
|
39
|
+
*/
|
|
40
|
+
multiple?: BooleanProp;
|
|
41
|
+
/**
|
|
42
|
+
* Defines the checked toggle or toggles.
|
|
43
|
+
*/
|
|
44
|
+
value?: string | string[];
|
|
45
|
+
/**
|
|
46
|
+
* Defines the default checked toggle or toggles.
|
|
47
|
+
*/
|
|
48
|
+
defaultValue?: string | string[];
|
|
49
|
+
/**
|
|
50
|
+
* Event handler called whenever one of the children toggles changes their checked value.
|
|
51
|
+
*/
|
|
52
|
+
onChange?: (val: string[]) => void;
|
|
53
|
+
/**
|
|
54
|
+
* React ref object to the toggle group.
|
|
55
|
+
*/
|
|
56
|
+
ref?: Ref<ToggleGroupElement>;
|
|
57
|
+
}
|
|
58
|
+
export declare const InnerToggleGroup: ForwardRefRenderFunction<ToggleGroupElement, ToggleGroupProps>;
|
|
59
|
+
export declare const ToggleGroup: React.ForwardRefExoticComponent<Omit<ToggleGroupProps, "ref"> & React.RefAttributes<ToggleGroupElement>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type TimePeriod = 'am' | 'pm';
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ama-pt/agora-design-system",
|
|
3
3
|
"description": "Ágora Design system",
|
|
4
|
-
"version": "2.
|
|
4
|
+
"version": "2.2.0",
|
|
5
5
|
"main": "artifacts/dist/index.mjs",
|
|
6
6
|
"module": "artifacts/dist/index.umd.js",
|
|
7
7
|
"files": [
|
|
@@ -32,21 +32,21 @@
|
|
|
32
32
|
"@babel/preset-typescript": "^7.22.5",
|
|
33
33
|
"@mdx-js/react": "^3.1.0",
|
|
34
34
|
"@playwright/test": "^1.39.0",
|
|
35
|
-
"@storybook/addon-a11y": "^8.4.
|
|
36
|
-
"@storybook/addon-actions": "^8.4.
|
|
37
|
-
"@storybook/addon-docs": "^8.4.
|
|
38
|
-
"@storybook/addon-essentials": "^8.4.
|
|
39
|
-
"@storybook/addon-interactions": "^8.4.
|
|
40
|
-
"@storybook/addon-links": "^8.4.
|
|
41
|
-
"@storybook/addon-storysource": "^8.4.
|
|
42
|
-
"@storybook/blocks": "^8.4.
|
|
35
|
+
"@storybook/addon-a11y": "^8.4.7",
|
|
36
|
+
"@storybook/addon-actions": "^8.4.7",
|
|
37
|
+
"@storybook/addon-docs": "^8.4.7",
|
|
38
|
+
"@storybook/addon-essentials": "^8.4.7",
|
|
39
|
+
"@storybook/addon-interactions": "^8.4.7",
|
|
40
|
+
"@storybook/addon-links": "^8.4.7",
|
|
41
|
+
"@storybook/addon-storysource": "^8.4.7",
|
|
42
|
+
"@storybook/blocks": "^8.4.7",
|
|
43
43
|
"@storybook/mdx2-csf": "^1.1.0",
|
|
44
44
|
"@storybook/preset-scss": "^1.0.3",
|
|
45
|
-
"@storybook/react": "^8.4.
|
|
46
|
-
"@storybook/react-vite": "^8.4.
|
|
47
|
-
"@storybook/test": "^8.4.
|
|
48
|
-
"@storybook/theming": "^8.4.
|
|
49
|
-
"@storybook/types": "^8.4.
|
|
45
|
+
"@storybook/react": "^8.4.7",
|
|
46
|
+
"@storybook/react-vite": "^8.4.7",
|
|
47
|
+
"@storybook/test": "^8.4.7",
|
|
48
|
+
"@storybook/theming": "^8.4.7",
|
|
49
|
+
"@storybook/types": "^8.4.7",
|
|
50
50
|
"@testing-library/jest-dom": "^6.4.2",
|
|
51
51
|
"@testing-library/react": "^16.0.1",
|
|
52
52
|
"@testing-library/user-event": "^14.5.1",
|
|
@@ -84,13 +84,14 @@
|
|
|
84
84
|
"jest": "^29.7.0",
|
|
85
85
|
"jest-environment-jsdom": "^29.7.0",
|
|
86
86
|
"jest-preview": "^0.3.1",
|
|
87
|
+
"jest-sonar-reporter": "^2.0.0",
|
|
87
88
|
"playwright": "^1.40.0",
|
|
88
89
|
"postcss": "^8.4.35",
|
|
89
90
|
"prettier": "^3.0.2",
|
|
90
91
|
"react": "^18.2.0",
|
|
91
92
|
"react-dom": "^18.2.0",
|
|
92
93
|
"react-syntax-highlighter": "^15.5.0",
|
|
93
|
-
"storybook": "^8.4.
|
|
94
|
+
"storybook": "^8.4.7",
|
|
94
95
|
"tailwindcss": "^3.4.1",
|
|
95
96
|
"ts-dedent": "^2.2.0",
|
|
96
97
|
"ts-jest": "^29.1.2",
|
|
@@ -121,5 +122,10 @@
|
|
|
121
122
|
"es5-ext",
|
|
122
123
|
"esbuild",
|
|
123
124
|
"jest-preview"
|
|
124
|
-
]
|
|
125
|
+
],
|
|
126
|
+
"jestSonar": {
|
|
127
|
+
"reportPath": "./artifacts/jest-report/",
|
|
128
|
+
"reportFile": "test-reporter.xml",
|
|
129
|
+
"indent": 4
|
|
130
|
+
}
|
|
125
131
|
}
|