@ama-pt/agora-design-system 3.0.1 → 3.1.0
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 +5776 -5555
- 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 +61 -141
- package/artifacts/dist/types/components/avatar/avatar.d.ts +1 -1
- package/artifacts/dist/types/components/cards/card-action/card-action.d.ts +17 -49
- package/artifacts/dist/types/components/cards/card-links/card-links-style.d.ts +9 -0
- package/artifacts/dist/types/components/cards/card-links/card-links.d.ts +12 -3
- package/artifacts/dist/types/components/cards/card-no-results/card-no-results.d.ts +50 -1
- package/artifacts/dist/types/components/dropdown/internals/internal-dropdown-context.d.ts +2 -0
- package/artifacts/dist/types/components/dropdown/internals/internal-dropdown-option.d.ts +1 -0
- package/artifacts/dist/types/components/dropdown/internals/internal-dropdown-section.d.ts +1 -2
- package/artifacts/dist/types/components/input-date/input-date.d.ts +4 -0
- package/artifacts/dist/types/components/input-email-bar/input-email-bar.d.ts +4 -0
- package/artifacts/dist/types/components/input-number/input-number.d.ts +4 -0
- package/artifacts/dist/types/components/input-password/input-password.d.ts +4 -0
- package/artifacts/dist/types/components/input-phone/input-phone.d.ts +4 -0
- package/artifacts/dist/types/components/input-range/input-range.d.ts +5 -1
- package/artifacts/dist/types/components/input-search/input-search.d.ts +4 -0
- package/artifacts/dist/types/components/input-select/input-select.d.ts +4 -0
- package/artifacts/dist/types/components/input-text/input-text.d.ts +4 -0
- package/artifacts/dist/types/components/input-textarea/input-textarea.d.ts +4 -0
- package/artifacts/dist/types/components/input-time/input-time.d.ts +4 -0
- package/artifacts/dist/types/components/progress-bar/progress-bar.d.ts +6 -2
- package/artifacts/dist/types/components/progress-bar-group/progress-bar-group.d.ts +5 -0
- package/package.json +1 -1
|
@@ -20,7 +20,7 @@ export interface InputRangeProps extends Omit<ComponentProps<'input'>, 'value' |
|
|
|
20
20
|
*/
|
|
21
21
|
disabled?: boolean;
|
|
22
22
|
/**
|
|
23
|
-
*
|
|
23
|
+
* The value or values for the input range. It can be a number array with 1 or 2 positions according tp the type specified.
|
|
24
24
|
*/
|
|
25
25
|
value?: number[];
|
|
26
26
|
/**
|
|
@@ -56,6 +56,10 @@ export interface InputRangeProps extends Omit<ComponentProps<'input'>, 'value' |
|
|
|
56
56
|
* Feedback text displayed below input.
|
|
57
57
|
*/
|
|
58
58
|
feedbackText?: ReactNode;
|
|
59
|
+
/**
|
|
60
|
+
* Error feedback text displayed below input.
|
|
61
|
+
*/
|
|
62
|
+
errorFeedbackText?: ReactNode;
|
|
59
63
|
}
|
|
60
64
|
export interface InputRangeElement extends HTMLDivElement {
|
|
61
65
|
sliders: HTMLInputElement[];
|
|
@@ -22,6 +22,10 @@ export interface InputSearchProps extends ComponentProps<'input'> {
|
|
|
22
22
|
* Defines the state of the feedback text. This param will change the feedback icon and dye it.
|
|
23
23
|
*/
|
|
24
24
|
feedbackState?: FeedbackState;
|
|
25
|
+
/**
|
|
26
|
+
* Error feedback text displayed below input.
|
|
27
|
+
*/
|
|
28
|
+
errorFeedbackText?: ReactNode;
|
|
25
29
|
/**
|
|
26
30
|
* The flag to set if the label and feedback text is in dark mode or light mode.
|
|
27
31
|
*/
|
|
@@ -45,6 +45,10 @@ export interface InputSelectProps extends Omit<ComponentProps<'select'>, 'option
|
|
|
45
45
|
* Feedback text displayed below input.
|
|
46
46
|
*/
|
|
47
47
|
feedbackText?: ReactNode;
|
|
48
|
+
/**
|
|
49
|
+
* Error feedback text displayed below input.
|
|
50
|
+
*/
|
|
51
|
+
errorFeedbackText?: ReactNode;
|
|
48
52
|
/**
|
|
49
53
|
* Show or hide the leading icon.
|
|
50
54
|
*/
|
|
@@ -22,6 +22,10 @@ export interface InputTextProps extends ComponentProps<'input'> {
|
|
|
22
22
|
* Defines the state of the feedback text. This param will change the feedback icon and dye it.
|
|
23
23
|
*/
|
|
24
24
|
feedbackState?: FeedbackState;
|
|
25
|
+
/**
|
|
26
|
+
* Error feedback text displayed below input.
|
|
27
|
+
*/
|
|
28
|
+
errorFeedbackText?: ReactNode;
|
|
25
29
|
/**
|
|
26
30
|
* The flag to set if the label and feedback text is in dark mode or light mode.
|
|
27
31
|
*/
|
|
@@ -26,6 +26,10 @@ export interface InputTextAreaProps extends ComponentProps<'textarea'> {
|
|
|
26
26
|
* Feedback text displayed below input.
|
|
27
27
|
*/
|
|
28
28
|
feedbackText?: ReactNode;
|
|
29
|
+
/**
|
|
30
|
+
* Error feedback text displayed below input.
|
|
31
|
+
*/
|
|
32
|
+
errorFeedbackText?: ReactNode;
|
|
29
33
|
/**
|
|
30
34
|
* The flag to set if the label and feedback text is in dark mode or light mode.
|
|
31
35
|
*/
|
|
@@ -30,6 +30,10 @@ export interface InputTimeProps extends ComponentProps<'input'> {
|
|
|
30
30
|
* Feedback text displayed below input.
|
|
31
31
|
*/
|
|
32
32
|
feedbackText?: ReactNode;
|
|
33
|
+
/**
|
|
34
|
+
* Error feedback text displayed below input.
|
|
35
|
+
*/
|
|
36
|
+
errorFeedbackText?: ReactNode;
|
|
33
37
|
/**
|
|
34
38
|
* Show or hide the leading icon.
|
|
35
39
|
*/
|
|
@@ -33,14 +33,18 @@ export interface ProgressBarProps extends ComponentProps<'div'> {
|
|
|
33
33
|
/**
|
|
34
34
|
* Whether the progress bar is the first or not.
|
|
35
35
|
*/
|
|
36
|
-
isFirst
|
|
36
|
+
isFirst?: boolean;
|
|
37
37
|
/**
|
|
38
38
|
* Whether the progress bar is the last or not.
|
|
39
39
|
*/
|
|
40
|
-
isLast
|
|
40
|
+
isLast?: boolean;
|
|
41
41
|
/**
|
|
42
42
|
* Whether the progress bass is in the middle or not.
|
|
43
43
|
*/
|
|
44
44
|
isMiddle?: boolean;
|
|
45
|
+
/**
|
|
46
|
+
* The flag to set if the progress bar is in dark mode or light mode.
|
|
47
|
+
*/
|
|
48
|
+
darkMode?: BooleanProp;
|
|
45
49
|
}
|
|
46
50
|
export declare const ProgressBar: FC<ProgressBarProps>;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { FC, HtmlHTMLAttributes, ReactElement } from 'react';
|
|
2
2
|
import { ProgressBarProps } from '../../components/progress-bar';
|
|
3
3
|
import './progress-bar-group.scss';
|
|
4
|
+
import { BooleanProp } from '../../models';
|
|
4
5
|
export interface ProgressBarGroupProps extends HtmlHTMLAttributes<HTMLDivElement> {
|
|
5
6
|
/**
|
|
6
7
|
* The label text to display.
|
|
@@ -22,5 +23,9 @@ export interface ProgressBarGroupProps extends HtmlHTMLAttributes<HTMLDivElement
|
|
|
22
23
|
* Whether to display the progress bars in a sequential order or not.
|
|
23
24
|
*/
|
|
24
25
|
sequential?: boolean;
|
|
26
|
+
/**
|
|
27
|
+
* The flag to set if the progress bar group is in dark mode or light mode.
|
|
28
|
+
*/
|
|
29
|
+
darkMode?: BooleanProp;
|
|
25
30
|
}
|
|
26
31
|
export declare const ProgressBarGroup: FC<ProgressBarGroupProps>;
|