@ama-pt/agora-design-system 3.4.2 → 3.5.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 +5039 -5020
- 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-lgp-DH44As0J.mjs +16 -0
- package/artifacts/dist/line-lgp-DH44As0J.mjs.map +1 -0
- package/artifacts/dist/solid-lgp-DH44As0J.mjs +16 -0
- package/artifacts/dist/solid-lgp-DH44As0J.mjs.map +1 -0
- package/artifacts/dist/style.css +1 -1
- package/artifacts/dist/tailwind.css +61 -89
- package/artifacts/dist/types/components/accordion/accordion.d.ts +1 -1
- package/artifacts/dist/types/components/cards/card-expandable/card-accordion/card-accordion.d.ts +1 -1
- package/artifacts/dist/types/components/cards/card-expandable/card-expandable.d.ts +1 -1
- package/artifacts/dist/types/components/cards/index.d.ts +1 -0
- package/artifacts/dist/types/components/cards/status-card/status-card.d.ts +44 -0
- package/artifacts/dist/types/components/checkbox/checkbox.d.ts +8 -0
- package/artifacts/dist/types/components/checkbox-group/checkbox-group.d.ts +12 -0
- package/artifacts/dist/types/components/drawer/drawer.d.ts +4 -0
- package/artifacts/dist/types/components/header/index.d.ts +2 -0
- package/artifacts/dist/types/components/header/internals/context/data-context/header-data-context.d.ts +2 -1
- package/artifacts/dist/types/components/header/internals/context/data-context/utils/navigation-utils.d.ts +2 -1
- package/artifacts/dist/types/components/header/internals/navigation-bar/navigation-list/internal-navigation-link-layout.d.ts +2 -1
- package/artifacts/dist/types/components/header/internals/navigation-bar/navigation-modal/internal-modal-content.d.ts +2 -1
- package/artifacts/dist/types/components/header/navigation-bar/navigation-freestyle.d.ts +5 -0
- package/artifacts/dist/types/components/header/navigation-bar/navigation-root.d.ts +2 -1
- package/artifacts/dist/types/components/icon/assets/line/line-lgp.d.ts +4 -0
- package/artifacts/dist/types/components/icon/assets/solid/solid-lgp.d.ts +4 -0
- package/artifacts/dist/types/components/index.d.ts +0 -1
- package/artifacts/dist/types/components/input-date/input-date.d.ts +8 -0
- package/artifacts/dist/types/components/input-email-bar/input-email-bar.d.ts +8 -0
- package/artifacts/dist/types/components/input-number/input-number.d.ts +8 -0
- package/artifacts/dist/types/components/input-password/input-password.d.ts +8 -0
- package/artifacts/dist/types/components/input-phone/input-phone.d.ts +8 -0
- package/artifacts/dist/types/components/input-range/input-range.d.ts +8 -0
- package/artifacts/dist/types/components/input-search/input-search.d.ts +8 -0
- package/artifacts/dist/types/components/input-search-bar/input-search-bar.d.ts +9 -0
- package/artifacts/dist/types/components/input-text/input-text.d.ts +8 -0
- package/artifacts/dist/types/components/input-textarea/input-textarea.d.ts +8 -0
- package/artifacts/dist/types/components/input-time/input-time.d.ts +10 -2
- package/artifacts/dist/types/components/input-time/utils/format-time.d.ts +2 -3
- package/artifacts/dist/types/components/tabs/desktop/tabs-desktop.d.ts +1 -0
- package/artifacts/dist/types/components/tabs/mobile/tabs-mobile.d.ts +1 -0
- package/package.json +1 -1
- package/artifacts/dist/types/components/status-card/interactive-status-card.d.ts +0 -11
- package/artifacts/dist/types/components/status-card/non-interactive-status-card.d.ts +0 -9
- package/artifacts/dist/types/components/status-card/status-card.d.ts +0 -25
- /package/artifacts/dist/types/components/{status-card → cards/status-card}/index.d.ts +0 -0
|
@@ -60,6 +60,14 @@ export interface InputRangeProps extends Omit<ComponentProps<'input'>, 'value' |
|
|
|
60
60
|
* Error feedback text displayed below input.
|
|
61
61
|
*/
|
|
62
62
|
errorFeedbackText?: ReactNode;
|
|
63
|
+
/**
|
|
64
|
+
* Defines helper text.
|
|
65
|
+
*/
|
|
66
|
+
helperText?: ReactNode;
|
|
67
|
+
/**
|
|
68
|
+
* Show or hide the helper text.
|
|
69
|
+
*/
|
|
70
|
+
hasHelperText?: BooleanProp;
|
|
63
71
|
}
|
|
64
72
|
export interface InputRangeElement extends HTMLDivElement {
|
|
65
73
|
sliders: HTMLInputElement[];
|
|
@@ -42,6 +42,14 @@ export interface InputSearchProps extends ComponentProps<'input'> {
|
|
|
42
42
|
* Highlight the input indicating some error
|
|
43
43
|
*/
|
|
44
44
|
hasError?: BooleanProp;
|
|
45
|
+
/**
|
|
46
|
+
* Defines helper text.
|
|
47
|
+
*/
|
|
48
|
+
helperText?: ReactNode;
|
|
49
|
+
/**
|
|
50
|
+
* Show or hide the helper text.
|
|
51
|
+
*/
|
|
52
|
+
hasHelperText?: BooleanProp;
|
|
45
53
|
}
|
|
46
54
|
declare const InputSearch: FC<InputSearchProps>;
|
|
47
55
|
export { InputSearch };
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { BooleanProp } from '../../models';
|
|
2
2
|
import { ComponentProps, FC, Ref } from 'react';
|
|
3
3
|
import './input-search-bar.css';
|
|
4
|
+
import type { ReactNode } from 'react';
|
|
4
5
|
export interface InputSearchBarElement extends HTMLInputElement {
|
|
5
6
|
/**
|
|
6
7
|
* React ref object to the search action button.
|
|
@@ -60,6 +61,14 @@ export interface InputSearchBarProps extends ComponentProps<'input'> {
|
|
|
60
61
|
* React ref object to the input search bar.
|
|
61
62
|
*/
|
|
62
63
|
ref?: Ref<InputSearchBarElement>;
|
|
64
|
+
/**
|
|
65
|
+
* Defines helper text.
|
|
66
|
+
*/
|
|
67
|
+
helperText?: ReactNode;
|
|
68
|
+
/**
|
|
69
|
+
* Show or hide the helper text.
|
|
70
|
+
*/
|
|
71
|
+
hasHelperText?: BooleanProp;
|
|
63
72
|
}
|
|
64
73
|
declare const InputSearchBar: FC<InputSearchBarProps>;
|
|
65
74
|
export { InputSearchBar };
|
|
@@ -42,6 +42,14 @@ export interface InputTextProps extends ComponentProps<'input'> {
|
|
|
42
42
|
* Highlight the input indicating some error
|
|
43
43
|
*/
|
|
44
44
|
hasError?: BooleanProp;
|
|
45
|
+
/**
|
|
46
|
+
* Defines helper text.
|
|
47
|
+
*/
|
|
48
|
+
helperText?: ReactNode;
|
|
49
|
+
/**
|
|
50
|
+
* Show or hide the helper text.
|
|
51
|
+
*/
|
|
52
|
+
hasHelperText?: BooleanProp;
|
|
45
53
|
}
|
|
46
54
|
declare const InputText: FC<InputTextProps>;
|
|
47
55
|
export { InputText };
|
|
@@ -38,6 +38,14 @@ export interface InputTextAreaProps extends ComponentProps<'textarea'> {
|
|
|
38
38
|
* Defines if the char counter on right corner should or should not be visible.
|
|
39
39
|
*/
|
|
40
40
|
showCharCounter?: BooleanProp;
|
|
41
|
+
/**
|
|
42
|
+
* Defines helper text.
|
|
43
|
+
*/
|
|
44
|
+
helperText?: ReactNode;
|
|
45
|
+
/**
|
|
46
|
+
* Show or hide the helper text.
|
|
47
|
+
*/
|
|
48
|
+
hasHelperText?: BooleanProp;
|
|
41
49
|
}
|
|
42
50
|
declare const InputTextArea: FC<InputTextAreaProps>;
|
|
43
51
|
export { InputTextArea };
|
|
@@ -3,8 +3,8 @@ import './input-time.css';
|
|
|
3
3
|
import { BooleanProp, FeedbackState, TimeFormat } from '../../models';
|
|
4
4
|
export interface InputTimeProps extends ComponentProps<'input'> {
|
|
5
5
|
/**
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
* Defines the time format that will be used.
|
|
7
|
+
*/
|
|
8
8
|
format?: TimeFormat;
|
|
9
9
|
/**
|
|
10
10
|
* The flag to set if the label and feedback text is in dark mode or light mode.
|
|
@@ -90,6 +90,14 @@ export interface InputTimeProps extends ComponentProps<'input'> {
|
|
|
90
90
|
* Accessible text for the timepicker footer message.
|
|
91
91
|
*/
|
|
92
92
|
timepickerMessageAriaLabel?: string;
|
|
93
|
+
/**
|
|
94
|
+
* Defines helper text.
|
|
95
|
+
*/
|
|
96
|
+
helperText?: ReactNode;
|
|
97
|
+
/**
|
|
98
|
+
* Show or hide the helper text.
|
|
99
|
+
*/
|
|
100
|
+
hasHelperText?: BooleanProp;
|
|
93
101
|
}
|
|
94
102
|
declare const InputTime: FC<InputTimeProps>;
|
|
95
103
|
export { InputTime };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { TimePeriod } from '../../../models';
|
|
1
|
+
import { TimeFormat, TimePeriod } from '../../../models';
|
|
2
2
|
export declare const FULL_TIME_TEXT_REGEX_WITH_PERIOD: RegExp;
|
|
3
3
|
export declare const FULL_TIME_TEXT_REGEX_WITHOUT_PERIOD: RegExp;
|
|
4
4
|
export declare const DEFAULT_PLACEHOLDER: {
|
|
@@ -11,14 +11,13 @@ export declare const timePeriod: {
|
|
|
11
11
|
pm: string;
|
|
12
12
|
};
|
|
13
13
|
export declare const startTime: {
|
|
14
|
-
hour: string;
|
|
15
14
|
minute: string;
|
|
16
15
|
period: string;
|
|
17
16
|
};
|
|
18
17
|
export declare const formatHour: (hour: number | string, minHour: number, maxHour: number) => string;
|
|
19
18
|
export declare const formatMinute: (minute: number | string, minMinute: number, maxMinute: number) => string;
|
|
20
19
|
export declare const formatFullTime: (hasPeriod: boolean, selectedHour: number | string, selectedMinute: number | string, selectedPeriod: TimePeriod) => string;
|
|
21
|
-
export declare const parseFullTime: (hasPeriod: boolean, fullTimeText: string) => {
|
|
20
|
+
export declare const parseFullTime: (hasPeriod: boolean, fullTimeText: string, hourFormat: TimeFormat) => {
|
|
22
21
|
selectedHour: string;
|
|
23
22
|
selectedMinute: string;
|
|
24
23
|
selectedPeriod: TimePeriod;
|
|
@@ -15,5 +15,6 @@ export interface TabsDesktopProps extends ComponentPropsWithoutRef<'div'> {
|
|
|
15
15
|
tabPanelClassName: string;
|
|
16
16
|
tabsHeaderData: Array<ReactElement<TabHeaderProps>>;
|
|
17
17
|
tabsBodyData: Array<ReactElement<TabBodyProps>>;
|
|
18
|
+
isDesktop: boolean;
|
|
18
19
|
}
|
|
19
20
|
export declare const TabsDesktop: FC<TabsDesktopProps>;
|
|
@@ -12,6 +12,7 @@ interface TabsMobileProps extends ComponentPropsWithoutRef<'div'> {
|
|
|
12
12
|
currentType: TabCurrentType;
|
|
13
13
|
tabsHeaderData: Array<ReactElement<TabHeaderProps>>;
|
|
14
14
|
tabsBodyData: Array<ReactElement<TabBodyProps>>;
|
|
15
|
+
isTabletOrMobile: boolean;
|
|
15
16
|
}
|
|
16
17
|
export declare const TabsMobile: FC<TabsMobileProps>;
|
|
17
18
|
export {};
|
package/package.json
CHANGED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { ComponentProps, FC, ReactNode } from 'react';
|
|
2
|
-
import { StatusCardType } from './status-card';
|
|
3
|
-
export interface InteractiveStatusCardProps extends ComponentProps<'div'> {
|
|
4
|
-
className?: string;
|
|
5
|
-
interactive?: boolean;
|
|
6
|
-
children?: ReactNode;
|
|
7
|
-
type?: StatusCardType;
|
|
8
|
-
onActivate?: () => void;
|
|
9
|
-
}
|
|
10
|
-
declare const InteractiveStatusCard: FC<InteractiveStatusCardProps>;
|
|
11
|
-
export { InteractiveStatusCard };
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { ComponentProps, FC, ReactNode } from 'react';
|
|
2
|
-
import { StatusCardType } from './status-card';
|
|
3
|
-
export interface NonInteractiveStatusCardProps extends ComponentProps<'div'> {
|
|
4
|
-
className?: string;
|
|
5
|
-
children?: ReactNode;
|
|
6
|
-
type?: StatusCardType;
|
|
7
|
-
}
|
|
8
|
-
declare const NonInteractiveStatusCard: FC<NonInteractiveStatusCardProps>;
|
|
9
|
-
export { NonInteractiveStatusCard };
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { ComponentProps, FC, ReactNode } from 'react';
|
|
2
|
-
import { BooleanProp } from '../../models';
|
|
3
|
-
import './status-card.css';
|
|
4
|
-
export type StatusCardType = 'info' | 'success' | 'warning' | 'danger';
|
|
5
|
-
export interface StatusCardProps extends ComponentProps<'div'> {
|
|
6
|
-
/**
|
|
7
|
-
* Status card description content
|
|
8
|
-
*/
|
|
9
|
-
description: ReactNode;
|
|
10
|
-
/**
|
|
11
|
-
* The available Status card types. Defines the appearance of the cards.
|
|
12
|
-
*/
|
|
13
|
-
type: StatusCardType;
|
|
14
|
-
/**
|
|
15
|
-
* The flag to make the status card interactive. When it is interactive,
|
|
16
|
-
* card can be focused by clicking on it.
|
|
17
|
-
*/
|
|
18
|
-
interactive?: BooleanProp;
|
|
19
|
-
/**
|
|
20
|
-
* Callback to run whenever the status card is interactive.
|
|
21
|
-
*/
|
|
22
|
-
onActivate?: () => void;
|
|
23
|
-
}
|
|
24
|
-
declare const StatusCard: FC<StatusCardProps>;
|
|
25
|
-
export { StatusCard };
|
|
File without changes
|