@ama-pt/agora-design-system 2.2.0 → 2.2.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.
@@ -1000,6 +1000,10 @@ input[type]::placeholder{
1000
1000
  margin-bottom: 32px;
1001
1001
  }
1002
1002
 
1003
+ .mb-40{
1004
+ margin-bottom: 40px;
1005
+ }
1006
+
1003
1007
  .mb-64{
1004
1008
  margin-bottom: 64px;
1005
1009
  }
@@ -1056,6 +1060,10 @@ input[type]::placeholder{
1056
1060
  margin-top: 32px;
1057
1061
  }
1058
1062
 
1063
+ .mt-56{
1064
+ margin-top: 56px;
1065
+ }
1066
+
1059
1067
  .mt-64{
1060
1068
  margin-top: 64px;
1061
1069
  }
@@ -1771,6 +1779,10 @@ input[type]::placeholder{
1771
1779
  grid-template-columns: repeat(4, minmax(0, 1fr));
1772
1780
  }
1773
1781
 
1782
+ .grid-rows-7{
1783
+ grid-template-rows: repeat(7, minmax(0, 1fr));
1784
+ }
1785
+
1774
1786
  .grid-rows-8{
1775
1787
  grid-template-rows: repeat(8, minmax(0, 1fr));
1776
1788
  }
@@ -7364,6 +7376,10 @@ input[type]::placeholder{
7364
7376
  padding-bottom: 64px;
7365
7377
  }
7366
7378
 
7379
+ .pb-96{
7380
+ padding-bottom: 96px;
7381
+ }
7382
+
7367
7383
  .pl-32{
7368
7384
  padding-left: 32px;
7369
7385
  }
@@ -7631,6 +7647,10 @@ input[type]::placeholder{
7631
7647
  font-weight: 700;
7632
7648
  }
7633
7649
 
7650
+ .uppercase{
7651
+ text-transform: uppercase;
7652
+ }
7653
+
7634
7654
  .capitalize{
7635
7655
  text-transform: capitalize;
7636
7656
  }
@@ -32,6 +32,10 @@ export interface AccordionElement extends HTMLDivElement {
32
32
  isExpanded: boolean;
33
33
  }
34
34
  export interface AccordionProps extends ComponentPropsWithRef<'div'> {
35
+ /**
36
+ * The flag to set Dark mode.
37
+ */
38
+ darkMode?: BooleanProp;
35
39
  /**
36
40
  * Accordion header title.
37
41
  */
@@ -50,8 +54,17 @@ export interface AccordionProps extends ComponentPropsWithRef<'div'> {
50
54
  hasIcon?: BooleanProp;
51
55
  /**
52
56
  * Defines the name of the icon to use.
57
+ * @deprecated use leadingIcon and leadingIconHover instead.
53
58
  */
54
59
  icon?: string;
60
+ /**
61
+ * Defines the name of the leading icon to use.
62
+ */
63
+ leadingIcon?: string;
64
+ /**
65
+ * Defines the name of the leading icon to be displayed on mouse hover. If none specified, it will the appropriate variant of the icon.
66
+ */
67
+ leadingIconHover?: string;
55
68
  /**
56
69
  * Event function called whenever the accordion expands.
57
70
  */
@@ -1,10 +1,16 @@
1
1
  import React, { ComponentPropsWithRef, ForwardRefRenderFunction, ReactElement } from 'react';
2
+ import { BooleanProp } from '../../models';
2
3
  import { AccordionProps } from '../../components/accordion';
4
+ import './accordion-group.scss';
3
5
  export interface AccordionGroupProps extends ComponentPropsWithRef<'div'> {
4
6
  /**
5
7
  * List of accordion components to use as children of the group.
6
8
  */
7
9
  children?: ReactElement<AccordionProps> | Array<ReactElement<AccordionProps>>;
10
+ /**
11
+ * The flag to set Dark mode.
12
+ */
13
+ darkMode?: BooleanProp;
8
14
  }
9
15
  export declare const InnerAccordionGroup: ForwardRefRenderFunction<HTMLDivElement, AccordionGroupProps>;
10
16
  export declare const AccordionGroup: React.ForwardRefExoticComponent<Omit<AccordionGroupProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+ import './equalizer.scss';
3
+ export interface EqualizerProps {
4
+ }
5
+ export declare const Equalizer: React.FC<EqualizerProps>;
@@ -38,11 +38,15 @@ export interface InputSearchBarProps extends ComponentPropsWithRef<'input'> {
38
38
  */
39
39
  hasVoiceActionButton?: BooleanProp;
40
40
  /**
41
- * Alternative text for the voice action button
41
+ * Defines if the voice action button is active and displaying the equalizer animation.
42
+ */
43
+ isVoiceActive?: BooleanProp;
44
+ /**
45
+ * Alternative text for the voice action button.
42
46
  */
43
47
  voiceActionAltText?: string;
44
48
  /**
45
- * Alternative text for the search action button
49
+ * Alternative text for the search action button.
46
50
  */
47
51
  searchActionAltText?: string;
48
52
  /**
@@ -42,6 +42,10 @@ export interface InputTimeProps extends ComponentPropsWithRef<'input'> {
42
42
  * The placeholder to apply in the input hour part
43
43
  */
44
44
  hourInputPlaceholder?: string;
45
+ /**
46
+ * The placeholder to apply in the input hour part
47
+ */
48
+ periodInputPlaceholder?: string;
45
49
  /**
46
50
  * Accessible text to apply to the trailing clock icon.
47
51
  */
@@ -1,8 +1,10 @@
1
1
  import React, { ComponentPropsWithRef, ForwardRefRenderFunction } from 'react';
2
2
  import './time-text.scss';
3
3
  export interface TimeTextProps extends ComponentPropsWithRef<'input'> {
4
+ setInputTextValue: (selectedTime: string) => void;
4
5
  hourInputPlaceholder?: string;
5
6
  minuteInputPlaceholder?: string;
7
+ periodInputPlaceholder?: string;
6
8
  }
7
9
  export declare const InnerComponent: ForwardRefRenderFunction<HTMLInputElement, TimeTextProps>;
8
10
  export declare const TimeText: React.ForwardRefExoticComponent<Omit<TimeTextProps, "ref"> & React.RefAttributes<HTMLInputElement>>;
@@ -4,6 +4,11 @@ export declare const MIN_HOUR = 1;
4
4
  export declare const MAX_HOUR = 12;
5
5
  export declare const MIN_MINUTE = 0;
6
6
  export declare const MAX_MINUTE = 59;
7
+ export declare const DEFAULT_PLACEHOLDER: {
8
+ HOUR: string;
9
+ MINUTE: string;
10
+ PERIOD: string;
11
+ };
7
12
  export declare const timePeriod: {
8
13
  am: string;
9
14
  pm: string;
@@ -19,7 +19,7 @@ export interface PillProps extends ComponentPropsWithRef<'div'> {
19
19
  */
20
20
  appearance?: PillAppearance;
21
21
  /**
22
- * The variant of the pill. This variants will define the background and border color of the given Pill
22
+ * The variant of the pill. This variants will define the background and border color of the given Pill.
23
23
  */
24
24
  variant?: PillVariant;
25
25
  /**
@@ -27,12 +27,16 @@ export interface PillProps extends ComponentPropsWithRef<'div'> {
27
27
  */
28
28
  children?: ReactNode;
29
29
  /**
30
- * Pill or Circular pill style
30
+ * Pill or Circular pill style.
31
31
  */
32
32
  circular?: BooleanProp;
33
33
  /**
34
- * Size of pill
34
+ * Size of pill.
35
35
  */
36
36
  size?: PillSize;
37
+ /**
38
+ * The flag to set Dark mode.
39
+ */
40
+ darkMode?: BooleanProp;
37
41
  }
38
42
  export declare const Pill: FC<PillProps>;
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": "2.2.0",
4
+ "version": "2.2.1",
5
5
  "main": "artifacts/dist/index.mjs",
6
6
  "module": "artifacts/dist/index.umd.js",
7
7
  "files": [