@ama-pt/agora-design-system 3.0.0 → 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.
Files changed (36) hide show
  1. package/artifacts/dist/index.mjs +6372 -6030
  2. package/artifacts/dist/index.mjs.map +1 -1
  3. package/artifacts/dist/index.umd.js +2 -2
  4. package/artifacts/dist/index.umd.js.map +1 -1
  5. package/artifacts/dist/style.css +1 -1
  6. package/artifacts/dist/tailwind.css +61 -137
  7. package/artifacts/dist/types/components/avatar/avatar.d.ts +1 -1
  8. package/artifacts/dist/types/components/cards/card-action/card-action-styles.d.ts +15 -0
  9. package/artifacts/dist/types/components/cards/card-action/card-action.d.ts +42 -0
  10. package/artifacts/dist/types/components/cards/card-action/index.d.ts +2 -0
  11. package/artifacts/dist/types/components/cards/card-links/card-links-style.d.ts +9 -0
  12. package/artifacts/dist/types/components/cards/card-links/card-links.d.ts +12 -3
  13. package/artifacts/dist/types/components/cards/card-no-results/card-no-results.d.ts +50 -1
  14. package/artifacts/dist/types/components/cards/index.d.ts +1 -0
  15. package/artifacts/dist/types/components/dropdown/internals/internal-dropdown-context.d.ts +2 -0
  16. package/artifacts/dist/types/components/dropdown/internals/internal-dropdown-option.d.ts +1 -0
  17. package/artifacts/dist/types/components/dropdown/internals/internal-dropdown-section.d.ts +1 -2
  18. package/artifacts/dist/types/components/glossary-letters/glossary-letters.d.ts +4 -0
  19. package/artifacts/dist/types/components/input-date/input-date.d.ts +4 -0
  20. package/artifacts/dist/types/components/input-email-bar/input-email-bar.d.ts +4 -0
  21. package/artifacts/dist/types/components/input-number/input-number.d.ts +4 -0
  22. package/artifacts/dist/types/components/input-password/input-password.d.ts +4 -0
  23. package/artifacts/dist/types/components/input-phone/input-phone.d.ts +4 -0
  24. package/artifacts/dist/types/components/input-range/input-range.d.ts +5 -1
  25. package/artifacts/dist/types/components/input-search/input-search.d.ts +4 -0
  26. package/artifacts/dist/types/components/input-select/input-select.d.ts +4 -0
  27. package/artifacts/dist/types/components/input-text/input-text.d.ts +4 -0
  28. package/artifacts/dist/types/components/input-textarea/input-textarea.d.ts +4 -0
  29. package/artifacts/dist/types/components/input-time/input-time.d.ts +4 -0
  30. package/artifacts/dist/types/components/list/list.d.ts +5 -0
  31. package/artifacts/dist/types/components/progress-bar/progress-bar.d.ts +6 -2
  32. package/artifacts/dist/types/components/progress-bar-group/progress-bar-group.d.ts +5 -0
  33. package/artifacts/dist/types/components/switch/switch.d.ts +4 -0
  34. package/artifacts/dist/types/components/uploader/button-uploader/button-uploader.d.ts +4 -0
  35. package/artifacts/dist/types/hooks/use-window-size.d.ts +4 -1
  36. package/package.json +1 -1
@@ -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
  */
@@ -1,6 +1,7 @@
1
1
  import { ComponentPropsWithoutRef, FC, ReactElement } from 'react';
2
2
  import { ItemProps } from './item';
3
3
  import './list.scss';
4
+ import { BooleanProp } from '../../models';
4
5
  export type ListStyle = 'none' | 'bullet' | 'number' | 'icon';
5
6
  export interface ListProps extends ComponentPropsWithoutRef<'ul'> {
6
7
  /**
@@ -19,5 +20,9 @@ export interface ListProps extends ComponentPropsWithoutRef<'ul'> {
19
20
  * Children content.
20
21
  */
21
22
  children?: ReactElement<ItemProps> | Array<ReactElement<ItemProps>>;
23
+ /**
24
+ * Add a darkMode to the list.
25
+ */
26
+ darkMode?: BooleanProp;
22
27
  }
23
28
  export declare const List: FC<ListProps>;
@@ -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: boolean;
36
+ isFirst?: boolean;
37
37
  /**
38
38
  * Whether the progress bar is the last or not.
39
39
  */
40
- isLast: boolean;
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>;
@@ -3,6 +3,10 @@ import { ComponentProps, FC, ReactNode } from 'react';
3
3
  import './switch.scss';
4
4
  export type SwitchPosition = 'start' | 'center' | 'space-between' | 'space-around' | 'space-evenly';
5
5
  export interface SwitchProps extends ComponentProps<'input'> {
6
+ /**
7
+ * The flag to set dark mode as active or not.
8
+ */
9
+ darkMode?: BooleanProp;
6
10
  /**
7
11
  * Input label text.
8
12
  */
@@ -1,6 +1,10 @@
1
1
  import { BooleanProp, FeedbackState } from '../../../models';
2
2
  import { ComponentProps, FC, ReactNode } from 'react';
3
3
  import './button-uploader.scss';
4
+ export interface ButtonUploaderElement extends HTMLInputElement {
5
+ input: HTMLInputElement | null;
6
+ reset: () => void;
7
+ }
4
8
  export interface ButtonUploaderProps extends ComponentProps<'input'> {
5
9
  /**
6
10
  * Label for the input file uploader.
@@ -1,4 +1,7 @@
1
- declare const useWindowSize: () => {
1
+ declare const useWindowSize: (fallback?: {
2
+ width: number;
3
+ height: number;
4
+ }) => {
2
5
  width: number;
3
6
  height: number;
4
7
  };
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.0.0",
4
+ "version": "3.1.0",
5
5
  "main": "artifacts/dist/index.mjs",
6
6
  "module": "artifacts/dist/index.umd.js",
7
7
  "files": [