@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.
@@ -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-auto{
27737
- margin-left: auto;
27738
- margin-right: auto;
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
  */
@@ -6,7 +6,7 @@ export interface CardCollectionProps extends Omit<ComponentPropsWithoutRef<'div'
6
6
  /**
7
7
  * Card Collection heading level title.
8
8
  */
9
- headingLevel: HeadingLevel;
9
+ headingLevel?: HeadingLevel;
10
10
  /**
11
11
  * Defines the subtitle
12
12
  */
@@ -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: HeadingLevel;
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: HeadingLevel;
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: 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
- * Makes the whole card clickable and activates the link.
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: ReactNode;
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: Ref<HeaderElement>;
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' | 'secondary-light' | 'neutral' | 'informative' | 'success' | 'warning' | 'danger';
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
  */
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.3.0",
4
+ "version": "3.3.1",
5
5
  "main": "artifacts/dist/index.mjs",
6
6
  "module": "artifacts/dist/index.umd.js",
7
7
  "files": [