@ama-pt/agora-design-system 3.3.7 → 3.4.1
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/artifacts/dist/index.mjs +3504 -3505
- package/artifacts/dist/index.mjs.map +1 -1
- package/artifacts/dist/index.umd.js +1 -1
- package/artifacts/dist/index.umd.js.map +1 -1
- package/artifacts/dist/types/components/panel-switcher/desktop/panel-switcher-desktop.d.ts +3 -6
- package/artifacts/dist/types/components/panel-switcher/mobile/panel-switcher-mobile.d.ts +3 -6
- package/artifacts/dist/types/components/panel-switcher/panel-switcher-container.d.ts +5 -13
- package/artifacts/dist/types/components/panel-switcher/panel-switcher.d.ts +15 -20
- package/package.json +34 -34
|
@@ -1,16 +1,13 @@
|
|
|
1
|
-
import { TabBodyProps
|
|
2
|
-
import { BooleanProp } from '../../../models';
|
|
1
|
+
import { TabBodyProps } from '../../../components/tabs';
|
|
3
2
|
import React, { ComponentProps, FC, ReactElement } from 'react';
|
|
4
3
|
import './panel-switcher-desktop.css';
|
|
4
|
+
import { ButtonsHeaderData } from '../panel-switcher';
|
|
5
5
|
export interface PanelSwitcherDesktopProps extends ComponentProps<'div'> {
|
|
6
|
-
leadingIcon?: string;
|
|
7
|
-
leadingIconHover?: string;
|
|
8
|
-
withIcon?: BooleanProp;
|
|
9
6
|
buttonListRef: React.RefObject<HTMLDivElement | null>;
|
|
10
7
|
panelRef: React.RefObject<HTMLDivElement | null>;
|
|
11
8
|
activeButton: number;
|
|
12
9
|
activateButton: (index: number) => void;
|
|
13
|
-
buttonsHeaderData: Array<
|
|
10
|
+
buttonsHeaderData: Array<ButtonsHeaderData>;
|
|
14
11
|
buttonsBodyData: Array<ReactElement<TabBodyProps>>;
|
|
15
12
|
}
|
|
16
13
|
export declare const PanelSwitcherDesktop: FC<PanelSwitcherDesktopProps>;
|
|
@@ -1,16 +1,13 @@
|
|
|
1
1
|
import React, { FC, ReactElement, RefObject } from 'react';
|
|
2
|
-
import { TabBodyProps
|
|
3
|
-
import { BooleanProp } from '../../../models';
|
|
2
|
+
import { TabBodyProps } from '../../../components/tabs';
|
|
4
3
|
import './panel-switcher-mobile.css';
|
|
4
|
+
import { ButtonsHeaderData } from '../panel-switcher';
|
|
5
5
|
export interface PanelSwitcherMobileProps {
|
|
6
6
|
modalCloseButtonLabel: string;
|
|
7
|
-
leadingIcon?: string;
|
|
8
|
-
leadingIconHover?: string;
|
|
9
7
|
buttonListRef: RefObject<HTMLDivElement | null>;
|
|
10
|
-
buttonsHeaderData: Array<
|
|
8
|
+
buttonsHeaderData: Array<ButtonsHeaderData>;
|
|
11
9
|
buttonsBodyData: Array<ReactElement<TabBodyProps>>;
|
|
12
10
|
activeButton?: number;
|
|
13
|
-
withIcon?: BooleanProp;
|
|
14
11
|
}
|
|
15
12
|
export declare const ModalContent: FC<{
|
|
16
13
|
content: React.ReactNode;
|
|
@@ -1,26 +1,18 @@
|
|
|
1
1
|
import { FC, ReactElement } from 'react';
|
|
2
|
-
import { BooleanProp } from '../../models';
|
|
3
2
|
import { TabProps } from '../tabs';
|
|
3
|
+
import { PanelData } from './panel-switcher';
|
|
4
4
|
export interface PanelSwitcherContainerProps {
|
|
5
5
|
/**
|
|
6
|
-
* Collection of
|
|
6
|
+
* Collection of PanelData to be displayed by panel.
|
|
7
7
|
*/
|
|
8
|
-
|
|
8
|
+
data: PanelData[];
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
10
|
+
* Collection of the content displayed by triggering a panel button.
|
|
11
11
|
*/
|
|
12
|
-
|
|
12
|
+
children: ReactElement<TabProps> | Array<ReactElement<TabProps>>;
|
|
13
13
|
/**
|
|
14
14
|
* Defines the label of the modal close button.
|
|
15
15
|
*/
|
|
16
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
17
|
}
|
|
26
18
|
export declare const PanelSwitcherContainer: FC<PanelSwitcherContainerProps>;
|
|
@@ -1,29 +1,24 @@
|
|
|
1
|
-
import { FC, ReactNode } from 'react';
|
|
2
|
-
import {
|
|
1
|
+
import { FC, ReactElement, ReactNode } from 'react';
|
|
2
|
+
import { TabBodyProps } from '../tabs';
|
|
3
|
+
export type PanelData = {
|
|
4
|
+
text: string;
|
|
5
|
+
content: ReactNode;
|
|
6
|
+
leadingIcon?: string;
|
|
7
|
+
leadingIconHover?: string;
|
|
8
|
+
};
|
|
9
|
+
export type ButtonsHeaderData = {
|
|
10
|
+
leadingIcon: string;
|
|
11
|
+
leadingIconHover: string;
|
|
12
|
+
child: ReactElement<TabBodyProps>;
|
|
13
|
+
};
|
|
3
14
|
export interface PanelSwitcherProps {
|
|
4
15
|
/**
|
|
5
|
-
* Collection of
|
|
6
|
-
*/
|
|
7
|
-
children: ReactNode | Array<ReactNode>;
|
|
8
|
-
/**
|
|
9
|
-
* Collection of the string content displayed inside each panel button.
|
|
16
|
+
* Collection of PanelData to be displayed by panel.
|
|
10
17
|
*/
|
|
11
|
-
|
|
18
|
+
data: PanelData[];
|
|
12
19
|
/**
|
|
13
20
|
* Defines the label of the modal close button.
|
|
14
21
|
*/
|
|
15
22
|
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
23
|
}
|
|
29
24
|
export declare const PanelSwitcher: FC<PanelSwitcherProps>;
|
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": "3.
|
|
4
|
+
"version": "3.4.1",
|
|
5
5
|
"main": "artifacts/dist/index.mjs",
|
|
6
6
|
"module": "artifacts/dist/index.umd.js",
|
|
7
7
|
"files": [
|
|
@@ -25,69 +25,69 @@
|
|
|
25
25
|
"classnames": "^2.5.1"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
|
-
"@axe-core/playwright": "^4.
|
|
29
|
-
"@babel/core": "^7.
|
|
30
|
-
"@babel/preset-env": "^7.
|
|
31
|
-
"@babel/preset-react": "^7.
|
|
32
|
-
"@babel/preset-typescript": "^7.
|
|
33
|
-
"@mdx-js/react": "^3.1.
|
|
34
|
-
"@playwright/test": "^1.
|
|
35
|
-
"@storybook/addon-a11y": "^9.1.
|
|
36
|
-
"@storybook/addon-docs": "^9.1.
|
|
37
|
-
"@storybook/addon-links": "^9.1.
|
|
28
|
+
"@axe-core/playwright": "^4.11.0",
|
|
29
|
+
"@babel/core": "^7.28.5",
|
|
30
|
+
"@babel/preset-env": "^7.28.5",
|
|
31
|
+
"@babel/preset-react": "^7.28.5",
|
|
32
|
+
"@babel/preset-typescript": "^7.28.5",
|
|
33
|
+
"@mdx-js/react": "^3.1.1",
|
|
34
|
+
"@playwright/test": "^1.57.0",
|
|
35
|
+
"@storybook/addon-a11y": "^9.1.16",
|
|
36
|
+
"@storybook/addon-docs": "^9.1.16",
|
|
37
|
+
"@storybook/addon-links": "^9.1.16",
|
|
38
38
|
"@storybook/mdx2-csf": "^1.1.0",
|
|
39
|
-
"@storybook/react": "^9.1.
|
|
40
|
-
"@storybook/react-vite": "^9.1.
|
|
41
|
-
"@testing-library/jest-dom": "^6.
|
|
39
|
+
"@storybook/react": "^9.1.16",
|
|
40
|
+
"@storybook/react-vite": "^9.1.16",
|
|
41
|
+
"@testing-library/jest-dom": "^6.9.1",
|
|
42
42
|
"@testing-library/react": "^16.3.0",
|
|
43
43
|
"@testing-library/user-event": "^14.6.1",
|
|
44
44
|
"@types/jest": "^29.5.14",
|
|
45
|
-
"@types/node": "^22.
|
|
45
|
+
"@types/node": "^22.19.2",
|
|
46
46
|
"@types/prop-types": "^15.7.15",
|
|
47
|
-
"@types/react": "^19.
|
|
48
|
-
"@types/react-dom": "^19.
|
|
47
|
+
"@types/react": "^19.2.7",
|
|
48
|
+
"@types/react-dom": "^19.2.3",
|
|
49
49
|
"@types/react-syntax-highlighter": "^15.5.13",
|
|
50
50
|
"@typescript-eslint/eslint-plugin": "^6.21.0",
|
|
51
51
|
"@typescript-eslint/parser": "^6.21.0",
|
|
52
|
-
"@vitejs/plugin-react-swc": "^3.
|
|
53
|
-
"autoprefixer": "^10.4.
|
|
52
|
+
"@vitejs/plugin-react-swc": "^3.11.0",
|
|
53
|
+
"autoprefixer": "^10.4.22",
|
|
54
54
|
"babel-jest": "^29.7.0",
|
|
55
55
|
"date-fns": "^4.1.0",
|
|
56
|
-
"del": "^8.0.
|
|
56
|
+
"del": "^8.0.1",
|
|
57
57
|
"eslint": "^8.57.1",
|
|
58
58
|
"eslint-config-airbnb": "^19.0.4",
|
|
59
59
|
"eslint-config-airbnb-typescript": "^17.1.0",
|
|
60
|
-
"eslint-config-prettier": "^9.1.
|
|
60
|
+
"eslint-config-prettier": "^9.1.2",
|
|
61
61
|
"eslint-import-resolver-typescript": "^3.10.1",
|
|
62
62
|
"eslint-plugin-import": "^2.32.0",
|
|
63
63
|
"eslint-plugin-jsx-a11y": "^6.10.2",
|
|
64
|
-
"eslint-plugin-prettier": "^5.5.
|
|
64
|
+
"eslint-plugin-prettier": "^5.5.4",
|
|
65
65
|
"eslint-plugin-react": "^7.37.5",
|
|
66
66
|
"eslint-plugin-react-hooks": "^4.6.2",
|
|
67
|
-
"eslint-plugin-storybook": "^9.1.
|
|
68
|
-
"glob": "^11.0
|
|
67
|
+
"eslint-plugin-storybook": "^9.1.16",
|
|
68
|
+
"glob": "^11.1.0",
|
|
69
69
|
"gulp": "^5.0.1",
|
|
70
70
|
"gulp-file": "^0.4.0",
|
|
71
71
|
"gulp-minify": "^3.1.0",
|
|
72
72
|
"identity-obj-proxy": "^3.0.0",
|
|
73
73
|
"jest": "^29.7.0",
|
|
74
74
|
"jest-environment-jsdom": "^29.7.0",
|
|
75
|
-
"jest-preview": "^0.3.
|
|
75
|
+
"jest-preview": "^0.3.2",
|
|
76
76
|
"jest-sonar-reporter": "^2.0.0",
|
|
77
|
-
"playwright": "^1.
|
|
77
|
+
"playwright": "^1.57.0",
|
|
78
78
|
"postcss": "^8.5.6",
|
|
79
|
-
"prettier": "^3.
|
|
80
|
-
"react": "^19.1
|
|
81
|
-
"react-dom": "^19.1
|
|
82
|
-
"react-syntax-highlighter": "^15.6.
|
|
83
|
-
"storybook": "^9.1.
|
|
84
|
-
"tailwindcss": "^3.4.
|
|
79
|
+
"prettier": "^3.7.4",
|
|
80
|
+
"react": "^19.2.1",
|
|
81
|
+
"react-dom": "^19.2.1",
|
|
82
|
+
"react-syntax-highlighter": "^15.6.6",
|
|
83
|
+
"storybook": "^9.1.16",
|
|
84
|
+
"tailwindcss": "^3.4.18",
|
|
85
85
|
"ts-dedent": "^2.2.0",
|
|
86
|
-
"ts-jest": "^29.4.
|
|
86
|
+
"ts-jest": "^29.4.6",
|
|
87
87
|
"ts-node": "^10.9.2",
|
|
88
88
|
"tsc-alias": "^1.8.16",
|
|
89
89
|
"typescript": "*",
|
|
90
|
-
"vite": "^5.4.
|
|
90
|
+
"vite": "^5.4.21",
|
|
91
91
|
"vite-tsconfig-paths": "^5.1.4"
|
|
92
92
|
},
|
|
93
93
|
"peerDependencies": {
|