@ama-pt/agora-design-system 3.5.1 → 3.5.2
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/agora-line-CAGTnTRu.mjs +15 -0
- package/artifacts/dist/agora-line-CAGTnTRu.mjs.map +1 -0
- package/artifacts/dist/index.mjs +2707 -2696
- 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/line-copy-BaJKTDcY.mjs +16 -0
- package/artifacts/dist/line-copy-BaJKTDcY.mjs.map +1 -0
- package/artifacts/dist/solid-copy-DQaYbvus.mjs +9 -0
- package/artifacts/dist/solid-copy-DQaYbvus.mjs.map +1 -0
- package/artifacts/dist/style.css +1 -1
- package/artifacts/dist/tailwind.css +24 -4
- package/artifacts/dist/types/components/avatar/avatar.d.ts +25 -0
- package/artifacts/dist/types/components/avatar/index.d.ts +1 -1
- package/artifacts/dist/types/components/icon/assets/line/line-copy.d.ts +4 -0
- package/artifacts/dist/types/components/icon/assets/solid/solid-copy.d.ts +4 -0
- package/artifacts/dist/types/components/panel-switcher/desktop/panel-switcher-desktop.d.ts +2 -1
- package/artifacts/dist/types/components/panel-switcher/helper.d.ts +36 -0
- package/artifacts/dist/types/components/panel-switcher/index.d.ts +1 -1
- package/artifacts/dist/types/components/panel-switcher/mobile/panel-switcher-mobile.d.ts +2 -1
- package/artifacts/dist/types/components/panel-switcher/panel-switcher-container.d.ts +5 -1
- package/artifacts/dist/types/components/panel-switcher/panel-switcher.d.ts +2 -23
- package/package.json +1 -1
- package/artifacts/dist/agora-line-NPWOQuk9.mjs +0 -15
- package/artifacts/dist/agora-line-NPWOQuk9.mjs.map +0 -1
|
@@ -1325,10 +1325,6 @@ input[type]::placeholder{
|
|
|
1325
1325
|
width: 50%;
|
|
1326
1326
|
}
|
|
1327
1327
|
|
|
1328
|
-
.w-24{
|
|
1329
|
-
width: 24px;
|
|
1330
|
-
}
|
|
1331
|
-
|
|
1332
1328
|
.w-32{
|
|
1333
1329
|
width: 32px;
|
|
1334
1330
|
}
|
|
@@ -1803,6 +1799,12 @@ input[type]::placeholder{
|
|
|
1803
1799
|
list-style-type: none;
|
|
1804
1800
|
}
|
|
1805
1801
|
|
|
1802
|
+
.appearance-none{
|
|
1803
|
+
-webkit-appearance: none;
|
|
1804
|
+
-moz-appearance: none;
|
|
1805
|
+
appearance: none;
|
|
1806
|
+
}
|
|
1807
|
+
|
|
1806
1808
|
.grid-flow-row{
|
|
1807
1809
|
grid-auto-flow: row;
|
|
1808
1810
|
}
|
|
@@ -8617,6 +8619,12 @@ input[type]::placeholder{
|
|
|
8617
8619
|
box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
|
|
8618
8620
|
}
|
|
8619
8621
|
|
|
8622
|
+
.shadow-bottom-higher{
|
|
8623
|
+
--tw-shadow: 0px 16px 16px 0px rgba(0, 0, 0, 0.32);
|
|
8624
|
+
--tw-shadow-colored: 0px 16px 16px 0px var(--tw-shadow-color);
|
|
8625
|
+
box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
|
|
8626
|
+
}
|
|
8627
|
+
|
|
8620
8628
|
.shadow-bottom-low{
|
|
8621
8629
|
--tw-shadow: 0px 8px 8px 0px rgba(0, 0, 0, 0.08);
|
|
8622
8630
|
--tw-shadow-colored: 0px 8px 8px 0px var(--tw-shadow-color);
|
|
@@ -28432,6 +28440,10 @@ input[type]::placeholder{
|
|
|
28432
28440
|
grid-column-end: 5;
|
|
28433
28441
|
}
|
|
28434
28442
|
|
|
28443
|
+
.md\:m-64{
|
|
28444
|
+
margin: 64px;
|
|
28445
|
+
}
|
|
28446
|
+
|
|
28435
28447
|
.md\:mx-64{
|
|
28436
28448
|
margin-left: 64px;
|
|
28437
28449
|
margin-right: 64px;
|
|
@@ -35281,6 +35293,10 @@ input[type]::placeholder{
|
|
|
35281
35293
|
grid-row: span 2 / span 2;
|
|
35282
35294
|
}
|
|
35283
35295
|
|
|
35296
|
+
.xl\:m-112{
|
|
35297
|
+
margin: 112px;
|
|
35298
|
+
}
|
|
35299
|
+
|
|
35284
35300
|
.xl\:my-32{
|
|
35285
35301
|
margin-top: 32px;
|
|
35286
35302
|
margin-bottom: 32px;
|
|
@@ -42041,3 +42057,7 @@ input[type]::placeholder{
|
|
|
42041
42057
|
.\[\&\>fieldset\]\:flex-wrap>fieldset{
|
|
42042
42058
|
flex-wrap: wrap;
|
|
42043
42059
|
}
|
|
42060
|
+
|
|
42061
|
+
.\[\&_\.switch-label\]\:border .switch-label{
|
|
42062
|
+
border-width: 1px;
|
|
42063
|
+
}
|
|
@@ -11,6 +11,18 @@ export type AvatarType = 'image' | 'icon' | 'initials' | 'empty';
|
|
|
11
11
|
* The available badge positions. Each of them defines the location of the badge on the avatar.
|
|
12
12
|
*/
|
|
13
13
|
export type AvatarBadgePosition = 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right';
|
|
14
|
+
/**
|
|
15
|
+
* The available badge variants. Each of them defines the color of the badge.
|
|
16
|
+
*/
|
|
17
|
+
export type AvatarBadgeVariant = 'primary' | 'secondary' | 'neutral' | 'informative' | 'success' | 'warning' | 'danger';
|
|
18
|
+
/**
|
|
19
|
+
* The available badge appearances. Defines solid or outline style.
|
|
20
|
+
*/
|
|
21
|
+
export type AvatarBadgeAppearance = 'solid' | 'outline';
|
|
22
|
+
/**
|
|
23
|
+
* The available badge sizes. Defines badge size.
|
|
24
|
+
*/
|
|
25
|
+
export type AvatarBadgeSize = 'default' | 'large';
|
|
14
26
|
export interface AvatarProps extends ComponentProps<'div'> {
|
|
15
27
|
/**
|
|
16
28
|
* Defines the appearance of the avatar.
|
|
@@ -45,10 +57,23 @@ export interface AvatarProps extends ComponentProps<'div'> {
|
|
|
45
57
|
* Defines the position of the avatar tooltip.
|
|
46
58
|
*/
|
|
47
59
|
tooltipPosition?: TooltipPosition;
|
|
60
|
+
/**
|
|
61
|
+
* Defines the avatar badge variant. This variant will define the color of the badge.
|
|
62
|
+
*/
|
|
63
|
+
badgeVariant?: AvatarBadgeVariant;
|
|
64
|
+
/**
|
|
48
65
|
/**
|
|
49
66
|
* The defines the align the avatar tooltip alignment.
|
|
50
67
|
*/
|
|
51
68
|
tooltipAlignment?: TooltipAlignment;
|
|
69
|
+
/**
|
|
70
|
+
* Defines the avatar badge appearance.
|
|
71
|
+
*/
|
|
72
|
+
badgeAppearance?: AvatarBadgeAppearance;
|
|
73
|
+
/**
|
|
74
|
+
* Defines the avatar badge size.
|
|
75
|
+
*/
|
|
76
|
+
badgeSize?: AvatarBadgeSize;
|
|
52
77
|
/**
|
|
53
78
|
* Makes the avatar interactive. An interactive avatar can be focused by clicking on it, or pressing Space, Enter or NumpadEnter.
|
|
54
79
|
*/
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { Avatar } from './avatar';
|
|
2
|
-
export type { AvatarBadgePosition, AvatarProps, AvatarType } from './avatar';
|
|
2
|
+
export type { AvatarBadgeAppearance, AvatarBadgePosition, AvatarBadgeSize, AvatarBadgeVariant, AvatarProps, AvatarType } from './avatar';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { TabBodyProps } from '../../../components/tabs';
|
|
2
2
|
import React, { ComponentProps, FC, ReactElement } from 'react';
|
|
3
3
|
import './panel-switcher-desktop.css';
|
|
4
|
-
import { ButtonsHeaderData } from '
|
|
4
|
+
import { ButtonsHeaderData } from '../../../components/panel-switcher';
|
|
5
5
|
export interface PanelSwitcherDesktopProps extends ComponentProps<'div'> {
|
|
6
6
|
buttonListRef: React.RefObject<HTMLDivElement | null>;
|
|
7
7
|
panelRef: React.RefObject<HTMLDivElement | null>;
|
|
@@ -9,5 +9,6 @@ export interface PanelSwitcherDesktopProps extends ComponentProps<'div'> {
|
|
|
9
9
|
activateButton: (index: number) => void;
|
|
10
10
|
buttonsHeaderData: Array<ButtonsHeaderData>;
|
|
11
11
|
buttonsBodyData: Array<ReactElement<TabBodyProps>>;
|
|
12
|
+
darkMode?: boolean;
|
|
12
13
|
}
|
|
13
14
|
export declare const PanelSwitcherDesktop: FC<PanelSwitcherDesktopProps>;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { FC, ReactElement, ReactNode } from 'react';
|
|
2
|
+
import { BooleanProp } from '../../models';
|
|
3
|
+
import { TabBodyProps } from '../tabs';
|
|
4
|
+
type ReactNodeOrFC = ReactNode | FC<{
|
|
5
|
+
darkMode?: BooleanProp;
|
|
6
|
+
}>;
|
|
7
|
+
export type PanelData = {
|
|
8
|
+
text: string;
|
|
9
|
+
withIcon?: boolean;
|
|
10
|
+
leadingIcon?: string;
|
|
11
|
+
content: ReactNodeOrFC;
|
|
12
|
+
leadingIconHover?: string;
|
|
13
|
+
};
|
|
14
|
+
export type ButtonsHeaderData = {
|
|
15
|
+
withIcon: boolean;
|
|
16
|
+
leadingIcon: string;
|
|
17
|
+
leadingIconHover: string;
|
|
18
|
+
child: ReactElement<TabBodyProps>;
|
|
19
|
+
};
|
|
20
|
+
export interface PanelSwitcherProps {
|
|
21
|
+
/**
|
|
22
|
+
* Collection of PanelData to be displayed by panel.
|
|
23
|
+
*/
|
|
24
|
+
data: PanelData[];
|
|
25
|
+
/**
|
|
26
|
+
* Defines the label of the modal close button.
|
|
27
|
+
*/
|
|
28
|
+
modalCloseButtonLabel: string;
|
|
29
|
+
/**
|
|
30
|
+
* The flag to set if the footer is in dark mode or light mode.
|
|
31
|
+
*/
|
|
32
|
+
darkMode?: boolean;
|
|
33
|
+
}
|
|
34
|
+
export declare const convertContentToNode: (content: ReactNodeOrFC, darkMode?: boolean) => ReactNode;
|
|
35
|
+
export declare const handleIcons: (hasIcon: boolean, icon: string, leadingIcon: boolean) => string | undefined;
|
|
36
|
+
export {};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { PanelSwitcher } from './panel-switcher';
|
|
2
|
-
export type { PanelSwitcherProps } from './
|
|
2
|
+
export type { PanelSwitcherProps, PanelData, ButtonsHeaderData } from './helper';
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import React, { FC, ReactElement, RefObject } from 'react';
|
|
2
2
|
import { TabBodyProps } from '../../../components/tabs';
|
|
3
3
|
import './panel-switcher-mobile.css';
|
|
4
|
-
import { ButtonsHeaderData } from '
|
|
4
|
+
import { ButtonsHeaderData } from '../../../components/panel-switcher';
|
|
5
5
|
export interface PanelSwitcherMobileProps {
|
|
6
6
|
modalCloseButtonLabel: string;
|
|
7
7
|
buttonListRef: RefObject<HTMLDivElement | null>;
|
|
8
8
|
buttonsHeaderData: Array<ButtonsHeaderData>;
|
|
9
9
|
buttonsBodyData: Array<ReactElement<TabBodyProps>>;
|
|
10
10
|
activeButton?: number;
|
|
11
|
+
darkMode?: boolean;
|
|
11
12
|
}
|
|
12
13
|
export declare const ModalContent: FC<{
|
|
13
14
|
content: React.ReactNode;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { FC, ReactElement } from 'react';
|
|
2
2
|
import { TabProps } from '../tabs';
|
|
3
|
-
import { PanelData } from '
|
|
3
|
+
import { PanelData } from '../../components/panel-switcher';
|
|
4
4
|
export interface PanelSwitcherContainerProps {
|
|
5
5
|
/**
|
|
6
6
|
* Collection of PanelData to be displayed by panel.
|
|
@@ -14,5 +14,9 @@ export interface PanelSwitcherContainerProps {
|
|
|
14
14
|
* Defines the label of the modal close button.
|
|
15
15
|
*/
|
|
16
16
|
modalCloseButtonLabel: string;
|
|
17
|
+
/**
|
|
18
|
+
* The flag to set if the footer is in dark mode or light mode.
|
|
19
|
+
*/
|
|
20
|
+
darkMode?: boolean;
|
|
17
21
|
}
|
|
18
22
|
export declare const PanelSwitcherContainer: FC<PanelSwitcherContainerProps>;
|
|
@@ -1,24 +1,3 @@
|
|
|
1
|
-
import { FC
|
|
2
|
-
import {
|
|
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
|
-
};
|
|
14
|
-
export interface PanelSwitcherProps {
|
|
15
|
-
/**
|
|
16
|
-
* Collection of PanelData to be displayed by panel.
|
|
17
|
-
*/
|
|
18
|
-
data: PanelData[];
|
|
19
|
-
/**
|
|
20
|
-
* Defines the label of the modal close button.
|
|
21
|
-
*/
|
|
22
|
-
modalCloseButtonLabel: string;
|
|
23
|
-
}
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { PanelSwitcherProps } from './helper';
|
|
24
3
|
export declare const PanelSwitcher: FC<PanelSwitcherProps>;
|
package/package.json
CHANGED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import l from "react";
|
|
2
|
-
const n = (e) => {
|
|
3
|
-
const t = { ...e };
|
|
4
|
-
return delete t.alt, delete t.title, /* @__PURE__ */ l.createElement("svg", { width: "24", height: "24", viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg", fill: "none", ...t, role: "img" }, e.title && /* @__PURE__ */ l.createElement("title", null, e.title), /* @__PURE__ */ l.createElement(
|
|
5
|
-
"path",
|
|
6
|
-
{
|
|
7
|
-
d: "M13.2637 2.5L8.69727 14.0156L8.42578 14.7002H15.7539L15.5068 14.0273L13.4678 8.4834L14.8838 4.86035L21.2725 21.5H18.4307L16.9121 17.6182L16.7881 17.2998H7.38672L7.25977 17.6104L5.66406 21.5H2.74023L4.15234 17.9863L5.60156 14.3867L5.60254 14.3848L10.3398 2.5H13.2637Z",
|
|
8
|
-
stroke: "#034AD8"
|
|
9
|
-
}
|
|
10
|
-
));
|
|
11
|
-
};
|
|
12
|
-
export {
|
|
13
|
-
n as default
|
|
14
|
-
};
|
|
15
|
-
//# sourceMappingURL=agora-line-NPWOQuk9.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"agora-line-NPWOQuk9.mjs","sources":["../../src/components/icon/assets/other/agora-line.tsx"],"sourcesContent":["import React from 'react';\n\nimport { SVGIconProps } from '@/models/';\n\nexport default (props: SVGIconProps) => {\n const newProps = { ...props };\n delete newProps.alt;\n delete newProps.title;\n\n return (\n <svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\" fill=\"none\" {...newProps} role=\"img\">\n {props.title && <title>{props.title}</title>}\n <path\n d=\"M13.2637 2.5L8.69727 14.0156L8.42578 14.7002H15.7539L15.5068 14.0273L13.4678 8.4834L14.8838 4.86035L21.2725 21.5H18.4307L16.9121 17.6182L16.7881 17.2998H7.38672L7.25977 17.6104L5.66406 21.5H2.74023L4.15234 17.9863L5.60156 14.3867L5.60254 14.3848L10.3398 2.5H13.2637Z\"\n stroke=\"#034AD8\"\n />\n </svg>\n );\n};\n"],"names":["agoraLine","props","newProps","React"],"mappings":";AAIA,MAAAA,IAAe,CAACC,MAAwB;AACtC,QAAMC,IAAW,EAAE,GAAGD,EAAA;AACtB,gBAAOC,EAAS,KAChB,OAAOA,EAAS,OAGd,gBAAAC,EAAA,cAAC,SAAI,OAAM,MAAK,QAAO,MAAK,SAAQ,aAAY,OAAM,8BAA6B,MAAK,QAAQ,GAAGD,GAAU,MAAK,MAAA,GAC/GD,EAAM,SAAS,gBAAAE,EAAA,cAAC,SAAA,MAAOF,EAAM,KAAM,GACpC,gBAAAE,EAAA;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,GAAE;AAAA,MACF,QAAO;AAAA,IAAA;AAAA,EAAA,CAEX;AAEJ;"}
|