@ama-pt/agora-design-system 3.3.0 → 3.3.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 +4501 -4397
- 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 +12 -7
- package/artifacts/dist/types/components/anchor/anchor.d.ts +8 -0
- package/artifacts/dist/types/components/cards/card-collection/card-collection.d.ts +1 -1
- package/artifacts/dist/types/components/cards/card-expandable/card-expandable.d.ts +2 -2
- package/artifacts/dist/types/components/cards/card-frame/card-frame.d.ts +14 -5
- package/artifacts/dist/types/components/cards/card-frame/index.d.ts +1 -1
- package/artifacts/dist/types/components/cards/card-links/card-links.d.ts +5 -1
- package/artifacts/dist/types/components/cards/shared/use-blocked-link-v2.d.ts +9 -0
- package/artifacts/dist/types/components/header/header.d.ts +1 -1
- package/artifacts/dist/types/components/input-date/input-date.d.ts +3 -1
- package/artifacts/dist/types/components/pill/pill.d.ts +1 -1
- package/package.json +1 -1
|
@@ -1788,10 +1788,6 @@ input[type]::placeholder{
|
|
|
1788
1788
|
grid-template-rows: repeat(7, minmax(0, 1fr));
|
|
1789
1789
|
}
|
|
1790
1790
|
|
|
1791
|
-
.grid-rows-8{
|
|
1792
|
-
grid-template-rows: repeat(8, minmax(0, 1fr));
|
|
1793
|
-
}
|
|
1794
|
-
|
|
1795
1791
|
.flex-row{
|
|
1796
1792
|
flex-direction: row;
|
|
1797
1793
|
}
|
|
@@ -1856,6 +1852,10 @@ input[type]::placeholder{
|
|
|
1856
1852
|
gap: 32px;
|
|
1857
1853
|
}
|
|
1858
1854
|
|
|
1855
|
+
.gap-48{
|
|
1856
|
+
gap: 48px;
|
|
1857
|
+
}
|
|
1858
|
+
|
|
1859
1859
|
.gap-64{
|
|
1860
1860
|
gap: 64px;
|
|
1861
1861
|
}
|
|
@@ -27733,9 +27733,9 @@ input[type]::placeholder{
|
|
|
27733
27733
|
grid-column-end: 8;
|
|
27734
27734
|
}
|
|
27735
27735
|
|
|
27736
|
-
.md\:mx-
|
|
27737
|
-
margin-left:
|
|
27738
|
-
margin-right:
|
|
27736
|
+
.md\:mx-64{
|
|
27737
|
+
margin-left: 64px;
|
|
27738
|
+
margin-right: 64px;
|
|
27739
27739
|
}
|
|
27740
27740
|
|
|
27741
27741
|
.md\:my-0{
|
|
@@ -40126,6 +40126,11 @@ input[type]::placeholder{
|
|
|
40126
40126
|
padding-bottom: 128px;
|
|
40127
40127
|
}
|
|
40128
40128
|
|
|
40129
|
+
.xl\:py-16{
|
|
40130
|
+
padding-top: 16px;
|
|
40131
|
+
padding-bottom: 16px;
|
|
40132
|
+
}
|
|
40133
|
+
|
|
40129
40134
|
.xl\:py-64{
|
|
40130
40135
|
padding-top: 64px;
|
|
40131
40136
|
padding-bottom: 64px;
|
|
@@ -42,6 +42,10 @@ export interface AnchorProps extends ComponentProps<'a'> {
|
|
|
42
42
|
* Defines the name of the leading icon to be displayed on mouse hover. If none specified, it will the appropriate variant of the icon.
|
|
43
43
|
*/
|
|
44
44
|
leadingIconHover?: string;
|
|
45
|
+
/**
|
|
46
|
+
* Defines the name of the leading icon to be displayed when the anchor is active. If none specified, it will the appropriate variant of the icon.
|
|
47
|
+
*/
|
|
48
|
+
leadingIconActive?: string;
|
|
45
49
|
/**
|
|
46
50
|
* Defines the name of the trailing icon to use.
|
|
47
51
|
*/
|
|
@@ -50,6 +54,10 @@ export interface AnchorProps extends ComponentProps<'a'> {
|
|
|
50
54
|
* Defines the name of the trailing icon to be displayed on mouse hover. If none specified, it will the appropriate variant of the icon.
|
|
51
55
|
*/
|
|
52
56
|
trailingIconHover?: string;
|
|
57
|
+
/**
|
|
58
|
+
* Defines the name of the trailing icon to be displayed when the anchor is active. If none specified, it will the appropriate variant of the icon.
|
|
59
|
+
*/
|
|
60
|
+
trailingIconActive?: string;
|
|
53
61
|
/**
|
|
54
62
|
* Children content.
|
|
55
63
|
*/
|
|
@@ -16,7 +16,7 @@ export interface CardExpandableProps extends Omit<ComponentProps<'div'>, 'title'
|
|
|
16
16
|
/**
|
|
17
17
|
* Heading level to apply in the card.
|
|
18
18
|
*/
|
|
19
|
-
cardHeadingLevel
|
|
19
|
+
cardHeadingLevel?: HeadingLevel;
|
|
20
20
|
/**
|
|
21
21
|
* Card title.
|
|
22
22
|
*/
|
|
@@ -48,7 +48,7 @@ export interface CardExpandableProps extends Omit<ComponentProps<'div'>, 'title'
|
|
|
48
48
|
/**
|
|
49
49
|
* CardAccordion heading level title.
|
|
50
50
|
*/
|
|
51
|
-
accordionHeadingLevel
|
|
51
|
+
accordionHeadingLevel?: HeadingLevel;
|
|
52
52
|
/**
|
|
53
53
|
* CardAccordion header title.
|
|
54
54
|
*/
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { ComponentPropsWithoutRef, FC, ReactNode } from 'react';
|
|
2
|
-
import { BooleanProp, HeadingLevel } from '../../../models';
|
|
3
1
|
import { AnchorProps } from '../../../components/anchor';
|
|
2
|
+
import { BooleanProp, HeadingLevel } from '../../../models';
|
|
3
|
+
import { ComponentPropsWithoutRef, FC, ReactNode } from 'react';
|
|
4
4
|
import './card-frame.css';
|
|
5
|
+
export type CardFrameLinkPosition = 'bottom' | 'right';
|
|
5
6
|
export interface CardFrameProps extends ComponentPropsWithoutRef<'div'> {
|
|
6
7
|
/**
|
|
7
8
|
* Children content.
|
|
@@ -10,18 +11,26 @@ export interface CardFrameProps extends ComponentPropsWithoutRef<'div'> {
|
|
|
10
11
|
/**
|
|
11
12
|
* Heading level to apply in the card.
|
|
12
13
|
*/
|
|
13
|
-
headingLevel
|
|
14
|
+
headingLevel?: HeadingLevel;
|
|
14
15
|
/**
|
|
15
16
|
* Label header.
|
|
16
17
|
*/
|
|
17
18
|
label: ReactNode;
|
|
18
19
|
/**
|
|
19
|
-
* Definition of the anchor to be draw if specified.
|
|
20
|
+
* Definition of the AgoraDS anchor to be draw if specified.
|
|
20
21
|
*/
|
|
21
22
|
mainAnchor?: AnchorProps;
|
|
22
23
|
/**
|
|
23
|
-
*
|
|
24
|
+
* Definition of the main link of the card. It can be any framework specific link. Like NextJS Link component. It will override the mainAnchor prop.
|
|
25
|
+
*/
|
|
26
|
+
mainLink?: ReactNode;
|
|
27
|
+
/**
|
|
28
|
+
* Makes the whole card clickable. When card is clicked the mainAnchor or mainLink will activate.
|
|
24
29
|
*/
|
|
25
30
|
blockedLink?: BooleanProp;
|
|
31
|
+
/**
|
|
32
|
+
* Positions the link bellow or on the right side of the card.
|
|
33
|
+
*/
|
|
34
|
+
linkPosition?: CardFrameLinkPosition;
|
|
26
35
|
}
|
|
27
36
|
export declare const CardFrame: FC<CardFrameProps>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { CardFrame } from './card-frame';
|
|
2
|
-
export type { CardFrameProps } from './card-frame';
|
|
2
|
+
export type { CardFrameProps, CardFrameLinkPosition } from './card-frame';
|
|
@@ -27,7 +27,7 @@ export interface CardLinksProps extends Omit<ComponentProps<'div'>, 'title'> {
|
|
|
27
27
|
/**
|
|
28
28
|
* The title of the card.
|
|
29
29
|
*/
|
|
30
|
-
title
|
|
30
|
+
title?: ReactNode;
|
|
31
31
|
/**
|
|
32
32
|
* The description of the card.
|
|
33
33
|
*/
|
|
@@ -40,6 +40,10 @@ export interface CardLinksProps extends Omit<ComponentProps<'div'>, 'title'> {
|
|
|
40
40
|
* Anchor props to render in heading.
|
|
41
41
|
*/
|
|
42
42
|
mainAnchor?: AnchorProps;
|
|
43
|
+
/**
|
|
44
|
+
* Definition of the main link of the card. It can be any framework specific link. Like NextJS Link component. It will override the mainAnchor prop.
|
|
45
|
+
*/
|
|
46
|
+
mainLink?: ReactNode;
|
|
43
47
|
/**
|
|
44
48
|
* The list of links of the card.
|
|
45
49
|
*/
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { RefObject } from 'react';
|
|
2
|
+
export interface IUseBlockedLink {
|
|
3
|
+
parentCardRef: RefObject<HTMLDivElement | null>;
|
|
4
|
+
anchorRef: RefObject<HTMLAnchorElement | null>;
|
|
5
|
+
mainLinkRef?: RefObject<HTMLSpanElement | null>;
|
|
6
|
+
blockedLink?: boolean;
|
|
7
|
+
}
|
|
8
|
+
declare const useBlockedLinkV2: ({ parentCardRef, anchorRef, mainLinkRef, blockedLink }: IUseBlockedLink) => void;
|
|
9
|
+
export { useBlockedLinkV2 };
|
|
@@ -22,7 +22,7 @@ export interface HeaderElement extends ComponentProps<'div'> {
|
|
|
22
22
|
closeAll: () => void;
|
|
23
23
|
}
|
|
24
24
|
export interface HeaderProps {
|
|
25
|
-
ref
|
|
25
|
+
ref?: Ref<HeaderElement>;
|
|
26
26
|
darkMode?: BooleanProp;
|
|
27
27
|
maxNavigationItems?: number;
|
|
28
28
|
children?: ReactElement<BrandProps | GeneralBarProps> | ReactElement<BrandProps | GeneralBarProps>[];
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { ComponentProps, FC, ReactNode } from 'react';
|
|
1
|
+
import React, { ComponentProps, Dispatch, FC, ReactNode } from 'react';
|
|
2
2
|
import { BooleanProp, FeedbackState, Months, WeekDays } from '../../models';
|
|
3
3
|
import './input-date.css';
|
|
4
|
+
import { IconSetState } from '../../components/shared/icon-set/icon-set';
|
|
4
5
|
export interface InputDateProps extends ComponentProps<'input'> {
|
|
5
6
|
/**
|
|
6
7
|
* Input label text.
|
|
@@ -131,5 +132,6 @@ export interface InputDateProps extends ComponentProps<'input'> {
|
|
|
131
132
|
*/
|
|
132
133
|
okAriaLabel?: string;
|
|
133
134
|
}
|
|
135
|
+
export declare const callbackWith: (setInputWrapperHovered: Dispatch<React.SetStateAction<IconSetState>>, value: IconSetState) => () => void;
|
|
134
136
|
declare const InputDate: FC<InputDateProps>;
|
|
135
137
|
export { InputDate };
|
|
@@ -4,7 +4,7 @@ import './pill.css';
|
|
|
4
4
|
/**
|
|
5
5
|
* The available variants of the pill. This variants will define the background and border color of the pill.
|
|
6
6
|
*/
|
|
7
|
-
export type PillVariant = 'primary' | 'secondary' | '
|
|
7
|
+
export type PillVariant = 'primary' | 'secondary' | 'neutral' | 'informative' | 'success' | 'warning' | 'danger';
|
|
8
8
|
/**
|
|
9
9
|
* The available pill appearances. Defines the pill shape.
|
|
10
10
|
*/
|