@ama-pt/agora-design-system 3.4.1 → 3.5.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 (44) hide show
  1. package/artifacts/dist/index.mjs +4872 -4883
  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/line-lgp-DH44As0J.mjs +16 -0
  6. package/artifacts/dist/line-lgp-DH44As0J.mjs.map +1 -0
  7. package/artifacts/dist/solid-lgp-DH44As0J.mjs +16 -0
  8. package/artifacts/dist/solid-lgp-DH44As0J.mjs.map +1 -0
  9. package/artifacts/dist/style.css +1 -1
  10. package/artifacts/dist/tailwind.css +9 -9
  11. package/artifacts/dist/types/components/accordion/accordion.d.ts +1 -1
  12. package/artifacts/dist/types/components/cards/card-expandable/card-accordion/card-accordion.d.ts +1 -1
  13. package/artifacts/dist/types/components/cards/card-expandable/card-expandable.d.ts +1 -1
  14. package/artifacts/dist/types/components/checkbox/checkbox.d.ts +8 -0
  15. package/artifacts/dist/types/components/header/index.d.ts +8 -0
  16. package/artifacts/dist/types/components/header/internals/context/data-context/header-data-context.d.ts +2 -1
  17. package/artifacts/dist/types/components/header/internals/context/data-context/utils/navigation-utils.d.ts +2 -1
  18. package/artifacts/dist/types/components/header/internals/navigation-bar/navigation-list/internal-navigation-link-layout.d.ts +2 -1
  19. package/artifacts/dist/types/components/header/internals/navigation-bar/navigation-modal/internal-modal-content.d.ts +2 -1
  20. package/artifacts/dist/types/components/header/navigation-bar/navigation-freestyle.d.ts +5 -0
  21. package/artifacts/dist/types/components/header/navigation-bar/navigation-root.d.ts +2 -1
  22. package/artifacts/dist/types/components/icon/assets/line/line-lgp.d.ts +4 -0
  23. package/artifacts/dist/types/components/icon/assets/solid/solid-lgp.d.ts +4 -0
  24. package/artifacts/dist/types/components/input-date/input-date.d.ts +8 -0
  25. package/artifacts/dist/types/components/input-email-bar/input-email-bar.d.ts +8 -0
  26. package/artifacts/dist/types/components/input-number/input-number.d.ts +8 -0
  27. package/artifacts/dist/types/components/input-password/input-password.d.ts +8 -0
  28. package/artifacts/dist/types/components/input-phone/input-phone.d.ts +8 -0
  29. package/artifacts/dist/types/components/input-range/input-range.d.ts +8 -0
  30. package/artifacts/dist/types/components/input-search/input-search.d.ts +8 -0
  31. package/artifacts/dist/types/components/input-text/input-text.d.ts +8 -0
  32. package/artifacts/dist/types/components/input-textarea/input-textarea.d.ts +8 -0
  33. package/artifacts/dist/types/components/input-time/contexts/time-input-state.context.d.ts +6 -1
  34. package/artifacts/dist/types/components/input-time/input-time.d.ts +13 -1
  35. package/artifacts/dist/types/components/input-time/utils/format-time.d.ts +7 -10
  36. package/artifacts/dist/types/components/status-card/status-card.d.ts +20 -14
  37. package/artifacts/dist/types/components/tabs/desktop/tabs-desktop.d.ts +1 -0
  38. package/artifacts/dist/types/components/tabs/mobile/tabs-mobile.d.ts +1 -0
  39. package/artifacts/dist/types/models/index.d.ts +1 -0
  40. package/artifacts/dist/types/models/time-format-type.d.ts +1 -0
  41. package/artifacts/dist/types/models/time-period-type.d.ts +1 -1
  42. package/package.json +1 -1
  43. package/artifacts/dist/types/components/status-card/interactive-status-card.d.ts +0 -11
  44. package/artifacts/dist/types/components/status-card/non-interactive-status-card.d.ts +0 -9
@@ -109,7 +109,7 @@
109
109
  }
110
110
 
111
111
  /*
112
- ! tailwindcss v3.4.18 | MIT License | https://tailwindcss.com
112
+ ! tailwindcss v3.4.19 | MIT License | https://tailwindcss.com
113
113
  */
114
114
 
115
115
  /*
@@ -988,10 +988,6 @@ input[type]::placeholder{
988
988
  margin-bottom: 8px;
989
989
  }
990
990
 
991
- .-mb-8{
992
- margin-bottom: -8px;
993
- }
994
-
995
991
  .-ml-32{
996
992
  margin-left: -32px;
997
993
  }
@@ -1088,10 +1084,18 @@ input[type]::placeholder{
1088
1084
  margin-top: 10px;
1089
1085
  }
1090
1086
 
1087
+ .mt-\[2px\]{
1088
+ margin-top: 2px;
1089
+ }
1090
+
1091
1091
  .mt-\[36px\]{
1092
1092
  margin-top: 36px;
1093
1093
  }
1094
1094
 
1095
+ .mt-\[4px\]{
1096
+ margin-top: 4px;
1097
+ }
1098
+
1095
1099
  .mt-auto{
1096
1100
  margin-top: auto;
1097
1101
  }
@@ -6121,10 +6125,6 @@ input[type]::placeholder{
6121
6125
  background-color: var(--color-danger-100);
6122
6126
  }
6123
6127
 
6124
- .bg-\[var\(--color-danger-200\)\]{
6125
- background-color: var(--color-danger-200);
6126
- }
6127
-
6128
6128
  .bg-\[var\(--color-danger-600\)\]{
6129
6129
  background-color: var(--color-danger-600);
6130
6130
  }
@@ -31,7 +31,7 @@ export interface AccordionElement extends HTMLDivElement {
31
31
  */
32
32
  isExpanded: boolean;
33
33
  }
34
- export interface AccordionProps extends ComponentProps<'div'> {
34
+ export interface AccordionProps extends Omit<ComponentProps<'div'>, 'onChange'> {
35
35
  /**
36
36
  * The flag to set Dark mode.
37
37
  */
@@ -24,7 +24,7 @@ export interface CardAccordionElement extends HTMLDivElement {
24
24
  */
25
25
  isExpanded: boolean;
26
26
  }
27
- export interface CardAccordionProps extends ComponentProps<'div'> {
27
+ export interface CardAccordionProps extends Omit<ComponentProps<'div'>, 'onChange'> {
28
28
  /**
29
29
  * The variant of the accordion. Those variants will define the style of the accordion.
30
30
  */
@@ -9,7 +9,7 @@ import './card-expandable.css';
9
9
  export type CardExpandableVariant = 'white' | 'primary-100' | 'secondary-100' | 'primary-300' | 'secondary-300' | 'primary-500' | 'primary-700' | 'primary-900' | 'neutral-100';
10
10
  export interface CardExpandableElement extends CardAccordionElement {
11
11
  }
12
- export interface CardExpandableProps extends Omit<ComponentProps<'div'>, 'title'> {
12
+ export interface CardExpandableProps extends Omit<ComponentProps<'div'>, 'title' | 'onChange'> {
13
13
  /**
14
14
  * The variant of the card. Those variants will define the style of the card.
15
15
  */
@@ -34,6 +34,14 @@ export interface CheckboxProps extends ComponentProps<'input'> {
34
34
  * The flag to set if the checkbox is in dark mode or light mode.
35
35
  */
36
36
  darkMode?: BooleanProp;
37
+ /**
38
+ * Show or hide the helper text.
39
+ */
40
+ hasHelperText?: BooleanProp;
41
+ /**
42
+ * Helper text displayed below checkbox.
43
+ */
44
+ helperText?: ReactNode;
37
45
  }
38
46
  declare const Checkbox: FC<CheckboxProps>;
39
47
  export { Checkbox };
@@ -58,3 +58,11 @@ export { NavigationLink } from './navigation-bar/navigation-link';
58
58
  export type { NavigationLinkProps } from './navigation-bar/navigation-link';
59
59
  export { RelatedNavigationLink } from './navigation-bar/related-navigation-link';
60
60
  export type { RelatedNavigationLinkProps } from './navigation-bar/related-navigation-link';
61
+ export { EcosystemBar } from './ecosystem-bar/ecosystem-bar';
62
+ export type { EcosystemBarProps } from './ecosystem-bar/ecosystem-bar';
63
+ export { EcosystemBarTitle } from './ecosystem-bar/ecosystem-bar-title';
64
+ export type { EcosystemBarTitleProps } from './ecosystem-bar/ecosystem-bar-title';
65
+ export { EcosystemBarContent } from './ecosystem-bar/ecosystem-bar-content';
66
+ export type { EcosystemBarContentProps } from './ecosystem-bar/ecosystem-bar-content';
67
+ export { NavigationFreestyle } from './navigation-bar/navigation-freestyle';
68
+ export type { NavigationFreestyleProps } from './navigation-bar/navigation-freestyle';
@@ -10,6 +10,7 @@ import { SearchTitleProps } from '../../../../../components/header/general-bar/s
10
10
  import { UnauthenticatedProps } from '../../../../../components/header/general-bar/unauthenticated/unauthenticated';
11
11
  import { UnauthenticatedLinkProps } from '../../../../../components/header/general-bar/unauthenticated/unauthenticated-link';
12
12
  import { InternalAreaProps } from '../../../../../components/header/internals/general-bar/areas/internal-area';
13
+ import { NavigationFreestyleProps } from '../../../../../components/header/navigation-bar/navigation-freestyle';
13
14
  import { NavigationLinkProps } from '../../../../../components/header/navigation-bar/navigation-link';
14
15
  import { NavigationRootProps } from '../../../../../components/header/navigation-bar/navigation-root';
15
16
  import { InputSearchBarProps } from '../../../../../components/input-search-bar';
@@ -48,7 +49,7 @@ export interface HeaderDataContextProps {
48
49
  maxNavigationItems: number;
49
50
  hasNavigationBar: () => boolean;
50
51
  getNavigationId: () => string;
51
- getNavigationItems: () => ReactElement<NavigationRootProps | NavigationLinkProps>[];
52
+ getNavigationItems: () => ReactElement<NavigationRootProps | NavigationLinkProps | NavigationFreestyleProps>[];
52
53
  getResponsiveMenuLabel: () => string;
53
54
  getResponsiveMenuAriaLabel: () => string;
54
55
  getResponsiveMenuBackToRootLabel: () => string;
@@ -1,12 +1,13 @@
1
1
  import { HeaderChildrenComponents } from '../../../../../../components/header/header';
2
2
  import { NavigationBarProps } from '../../../../../../components/header/navigation-bar/navigation-bar';
3
+ import { NavigationFreestyleProps } from '../../../../../../components/header/navigation-bar/navigation-freestyle';
3
4
  import { NavigationLinkProps } from '../../../../../../components/header/navigation-bar/navigation-link';
4
5
  import { NavigationRootProps } from '../../../../../../components/header/navigation-bar/navigation-root';
5
6
  import { ReactElement } from 'react';
6
7
  export declare const getParsedNavigationBarProps: (children?: HeaderChildrenComponents) => NavigationBarProps | null;
7
8
  export declare const getParsedNavigationBarId: (children?: HeaderChildrenComponents) => string;
8
9
  export declare const countParsedNavigationItems: (children?: HeaderChildrenComponents) => number;
9
- export declare const getParsedNavigationItems: (children?: HeaderChildrenComponents) => ReactElement<NavigationRootProps | NavigationLinkProps>[];
10
+ export declare const getParsedNavigationItems: (children?: HeaderChildrenComponents) => ReactElement<NavigationRootProps | NavigationLinkProps | NavigationFreestyleProps>[];
10
11
  export declare const getParsedModalMenuLabel: (children?: HeaderChildrenComponents) => string;
11
12
  export declare const getParsedModalAriaLabel: (children?: HeaderChildrenComponents) => string;
12
13
  export declare const getParsedModalCloseLabel: (children?: HeaderChildrenComponents) => string;
@@ -2,11 +2,12 @@ import { LayoutProps } from '../../../../../components/header/internals/shared/p
2
2
  import { NavigationLinkProps } from '../../../../../components/header/navigation-bar/navigation-link';
3
3
  import { RelatedNavigationLinkProps } from '../../../../../components/header/navigation-bar/related-navigation-link';
4
4
  import { FC, ReactElement, ReactNode } from 'react';
5
+ import { NavigationFreestyleProps } from '../../../../../components/header/navigation-bar/navigation-freestyle';
5
6
  import './internal-navigation-link-layout.css';
6
7
  export interface InternalNavigationLinksLayoutProps extends Omit<LayoutProps, 'title'> {
7
8
  title: ReactNode;
8
9
  linksAriaLabel?: string;
9
10
  relatedLinksAriaLabel?: string;
10
- children: ReactElement<NavigationLinkProps | RelatedNavigationLinkProps> | ReactElement<NavigationLinkProps | RelatedNavigationLinkProps>[];
11
+ children: ReactElement<NavigationLinkProps | RelatedNavigationLinkProps | NavigationFreestyleProps> | ReactElement<NavigationLinkProps | RelatedNavigationLinkProps | NavigationFreestyleProps>[];
11
12
  }
12
13
  export declare const InternalNavigationLinksLayout: FC<InternalNavigationLinksLayoutProps>;
@@ -2,7 +2,8 @@ import { NavigationLinkProps } from '../../../../../components/header/navigation
2
2
  import { NavigationRootProps } from '../../../../../components/header/navigation-bar/navigation-root';
3
3
  import { FC, ReactElement } from 'react';
4
4
  import './internal-modal-content.css';
5
+ import { NavigationFreestyleProps } from '../../../../../components/header/navigation-bar/navigation-freestyle';
5
6
  export interface InternalModalContentProps {
6
- item: ReactElement<NavigationRootProps | NavigationLinkProps>;
7
+ item: ReactElement<NavigationRootProps | NavigationLinkProps | NavigationFreestyleProps>;
7
8
  }
8
9
  export declare const InternalModalContent: FC<InternalModalContentProps>;
@@ -0,0 +1,5 @@
1
+ import { FC, ReactNode } from 'react';
2
+ export interface NavigationFreestyleProps {
3
+ children: ReactNode;
4
+ }
5
+ export declare const NavigationFreestyle: FC<NavigationFreestyleProps>;
@@ -1,10 +1,11 @@
1
1
  import { ComponentProps, FC, ReactElement } from 'react';
2
2
  import { RelatedNavigationLinkProps } from './related-navigation-link';
3
3
  import { NavigationLinkProps } from './navigation-link';
4
+ import { NavigationFreestyleProps } from './navigation-freestyle';
4
5
  export interface NavigationRootProps extends ComponentProps<'div'> {
5
6
  label: string;
6
7
  linksAriaLabel?: string;
7
8
  relatedLinksAriaLabel?: string;
8
- children: ReactElement<NavigationLinkProps | RelatedNavigationLinkProps> | ReactElement<NavigationLinkProps | RelatedNavigationLinkProps>[];
9
+ children: ReactElement<NavigationLinkProps | RelatedNavigationLinkProps | NavigationFreestyleProps> | ReactElement<NavigationLinkProps | RelatedNavigationLinkProps>[];
9
10
  }
10
11
  export declare const NavigationRoot: FC<NavigationRootProps>;
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { SVGIconProps } from '../../../../models';
3
+ declare const _default: (props: SVGIconProps) => React.JSX.Element;
4
+ export default _default;
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { SVGIconProps } from '../../../../models';
3
+ declare const _default: (props: SVGIconProps) => React.JSX.Element;
4
+ export default _default;
@@ -131,6 +131,14 @@ export interface InputDateProps extends ComponentProps<'input'> {
131
131
  * Accessible text for the date picker ok button.
132
132
  */
133
133
  okAriaLabel?: string;
134
+ /**
135
+ * Defines helper text.
136
+ */
137
+ helperText?: ReactNode;
138
+ /**
139
+ * Show or hide the helper text.
140
+ */
141
+ hasHelperText?: BooleanProp;
134
142
  }
135
143
  export declare const callbackWith: (setInputWrapperHovered: Dispatch<React.SetStateAction<IconSetState>>, value: IconSetState) => () => void;
136
144
  declare const InputDate: FC<InputDateProps>;
@@ -39,6 +39,14 @@ export interface InputEmailBarProps extends ComponentProps<'input'> {
39
39
  * Error feedback text displayed below input.
40
40
  */
41
41
  errorFeedbackText?: ReactNode;
42
+ /**
43
+ * Show or hide the helper text.
44
+ */
45
+ hasHelperText?: BooleanProp;
46
+ /**
47
+ * Defines helper text.
48
+ */
49
+ helperText?: ReactNode;
42
50
  }
43
51
  declare const InputEmailBar: FC<InputEmailBarProps>;
44
52
  export { InputEmailBar };
@@ -50,6 +50,14 @@ export interface InputNumberProps extends ComponentProps<'input'> {
50
50
  * Label text for decrease button. Recommended for accessibility.
51
51
  */
52
52
  decreaseButtonAltText?: string;
53
+ /**
54
+ * Defines helper text.
55
+ */
56
+ helperText?: ReactNode;
57
+ /**
58
+ * Show or hide the helper text.
59
+ */
60
+ hasHelperText?: BooleanProp;
53
61
  }
54
62
  declare const InputNumber: FC<InputNumberProps>;
55
63
  export { InputNumber };
@@ -53,6 +53,14 @@ export interface InputPasswordProps extends ComponentProps<'input'> {
53
53
  show: string;
54
54
  hide: string;
55
55
  };
56
+ /**
57
+ * Defines helper text.
58
+ */
59
+ helperText?: ReactNode;
60
+ /**
61
+ * Show or hide the helper text.
62
+ */
63
+ hasHelperText?: BooleanProp;
56
64
  }
57
65
  declare const InputPassword: FC<InputPasswordProps>;
58
66
  export { InputPassword };
@@ -91,6 +91,14 @@ export interface InputPhoneProps extends ComponentProps<'input'> {
91
91
  * Use the given custom countries list instead of the default one (must be in the correct format).
92
92
  */
93
93
  customCountriesList?: CountryPhoneProps[];
94
+ /**
95
+ * Defines helper text.
96
+ */
97
+ helperText?: ReactNode;
98
+ /**
99
+ * Show or hide the helper text.
100
+ */
101
+ hasHelperText?: BooleanProp;
94
102
  }
95
103
  declare const InputPhone: FC<InputPhoneProps>;
96
104
  export { InputPhone };
@@ -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 };
@@ -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 };
@@ -1,5 +1,5 @@
1
1
  import React, { Dispatch, FC, ReactNode, SetStateAction } from 'react';
2
- import { TimePeriod } from '../../../models';
2
+ import { TimeFormat, TimePeriod } from '../../../models';
3
3
  export interface Labels {
4
4
  cancelLabel: string;
5
5
  cancelAriaLabel?: string;
@@ -9,7 +9,12 @@ export interface Labels {
9
9
  timepickerMessageAriaLabel?: string;
10
10
  }
11
11
  interface TimePickerStateContextInitialValuesType {
12
+ selectedFormat: TimeFormat;
12
13
  selectedTime: string;
14
+ MIN_HOUR: number;
15
+ MAX_HOUR: number;
16
+ MIN_MINUTE: number;
17
+ MAX_MINUTE: number;
13
18
  cancel: (selectedTime: string) => void;
14
19
  labels: Labels;
15
20
  }
@@ -1,7 +1,11 @@
1
1
  import { ComponentProps, FC, ReactNode } from 'react';
2
2
  import './input-time.css';
3
- import { BooleanProp, FeedbackState } from '../../models';
3
+ import { BooleanProp, FeedbackState, TimeFormat } from '../../models';
4
4
  export interface InputTimeProps extends ComponentProps<'input'> {
5
+ /**
6
+ * Defines the time format that will be used.
7
+ */
8
+ format?: TimeFormat;
5
9
  /**
6
10
  * The flag to set if the label and feedback text is in dark mode or light mode.
7
11
  */
@@ -86,6 +90,14 @@ export interface InputTimeProps extends ComponentProps<'input'> {
86
90
  * Accessible text for the timepicker footer message.
87
91
  */
88
92
  timepickerMessageAriaLabel?: string;
93
+ /**
94
+ * Defines helper text.
95
+ */
96
+ helperText?: ReactNode;
97
+ /**
98
+ * Show or hide the helper text.
99
+ */
100
+ hasHelperText?: BooleanProp;
89
101
  }
90
102
  declare const InputTime: FC<InputTimeProps>;
91
103
  export { InputTime };
@@ -1,9 +1,6 @@
1
1
  import { TimePeriod } from '../../../models';
2
- export declare const FULL_TIME_TEXT_REGEX: RegExp;
3
- export declare const MIN_HOUR = 1;
4
- export declare const MAX_HOUR = 12;
5
- export declare const MIN_MINUTE = 0;
6
- export declare const MAX_MINUTE = 59;
2
+ export declare const FULL_TIME_TEXT_REGEX_WITH_PERIOD: RegExp;
3
+ export declare const FULL_TIME_TEXT_REGEX_WITHOUT_PERIOD: RegExp;
7
4
  export declare const DEFAULT_PLACEHOLDER: {
8
5
  HOUR: string;
9
6
  MINUTE: string;
@@ -18,12 +15,12 @@ export declare const startTime: {
18
15
  minute: string;
19
16
  period: string;
20
17
  };
21
- export declare const formatHour: (hour: number | string) => string;
22
- export declare const formatMinute: (minute: number | string) => string;
23
- export declare const formatFullTime: (selectedHour: number | string, selectedMinute: number | string, selectedPeriod: TimePeriod) => string;
24
- export declare const parseFullTime: (fullTimeText: string) => {
18
+ export declare const formatHour: (hour: number | string, minHour: number, maxHour: number) => string;
19
+ export declare const formatMinute: (minute: number | string, minMinute: number, maxMinute: number) => string;
20
+ export declare const formatFullTime: (hasPeriod: boolean, selectedHour: number | string, selectedMinute: number | string, selectedPeriod: TimePeriod) => string;
21
+ export declare const parseFullTime: (hasPeriod: boolean, fullTimeText: string) => {
25
22
  selectedHour: string;
26
23
  selectedMinute: string;
27
24
  selectedPeriod: TimePeriod;
28
25
  };
29
- export declare const isTimeTextValid: (timeText: string | number | undefined) => boolean;
26
+ export declare const isTimeTextValid: (hasPeriod: boolean, timeText: string | number | undefined, minHour: number, maxHour: number, minMinute: number, maxMinute: number) => boolean;
@@ -1,25 +1,31 @@
1
- import { ComponentProps, FC, ReactNode } from 'react';
2
- import { BooleanProp } from '../../models';
1
+ import React, { ComponentProps, FC } from 'react';
3
2
  import './status-card.css';
4
- export type StatusCardType = 'info' | 'success' | 'warning' | 'danger';
3
+ import { BooleanProp } from '../../models';
4
+ export type StatusCardType = 'informative' | 'success' | 'warning' | 'danger' | 'outline-informative' | 'outline-success' | 'outline-warning' | 'outline-danger';
5
5
  export interface StatusCardProps extends ComponentProps<'div'> {
6
6
  /**
7
- * Status card description content
7
+ * Defines what style to apply.
8
+ */
9
+ variant?: StatusCardType;
10
+ /**
11
+ * The flag to set Dark mode.
12
+ */
13
+ darkMode?: BooleanProp;
14
+ /**
15
+ * Show or hide icon.
8
16
  */
9
- description: ReactNode;
17
+ showIcon?: BooleanProp;
10
18
  /**
11
- * The available Status card types. Defines the appearance of the cards.
19
+ * Status card pill Text content
12
20
  */
13
- type: StatusCardType;
21
+ pillText?: string;
14
22
  /**
15
- * The flag to make the status card interactive. When it is interactive,
16
- * card can be focused by clicking on it.
23
+ * Status card title content
17
24
  */
18
- interactive?: BooleanProp;
25
+ title?: string;
19
26
  /**
20
- * Callback to run whenever the status card is interactive.
27
+ * Status card description content
21
28
  */
22
- onActivate?: () => void;
29
+ description?: string | React.ReactNode;
23
30
  }
24
- declare const StatusCard: FC<StatusCardProps>;
25
- export { StatusCard };
31
+ export declare const StatusCard: FC<StatusCardProps>;
@@ -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 {};
@@ -6,3 +6,4 @@ export * from './week-days.interface';
6
6
  export * from './heading-level-type';
7
7
  export * from './svg-icon.interface';
8
8
  export * from './time-period-type';
9
+ export * from './time-format-type';
@@ -0,0 +1 @@
1
+ export type TimeFormat = '12' | '24';
@@ -1 +1 @@
1
- export type TimePeriod = 'am' | 'pm';
1
+ export type TimePeriod = 'am' | 'pm' | undefined;
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.4.1",
4
+ "version": "3.5.0",
5
5
  "main": "artifacts/dist/index.mjs",
6
6
  "module": "artifacts/dist/index.umd.js",
7
7
  "files": [
@@ -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 };