@ama-pt/agora-design-system 0.2.0 → 0.2.2

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 (206) hide show
  1. package/dist/cjs/index.ts +2 -2
  2. package/dist/cjs/index.ts.map +1 -1
  3. package/dist/cjs/types/components/documentation/Accessibility/accessibility.d.ts +2 -0
  4. package/dist/cjs/types/components/documentation/GetttingStarted/getting-started.d.ts +2 -0
  5. package/dist/cjs/types/components/models/index.d.ts +1 -0
  6. package/dist/cjs/types/components/models/months.interface.d.ts +14 -0
  7. package/dist/cjs/types/components/models/week-days.interface.d.ts +9 -0
  8. package/dist/cjs/types/components/ui/atoms/anchor/anchor.d.ts +63 -0
  9. package/dist/cjs/types/components/ui/atoms/anchor/index.d.ts +2 -0
  10. package/dist/cjs/types/components/ui/atoms/avatar/avatar.d.ts +57 -0
  11. package/dist/cjs/types/components/ui/atoms/avatar/index.d.ts +2 -0
  12. package/dist/cjs/types/components/ui/atoms/avatar/interactive-avatar.d.ts +9 -0
  13. package/dist/cjs/types/components/ui/atoms/avatar/non-interactive-avatar.d.ts +8 -0
  14. package/dist/cjs/types/components/ui/atoms/breadcrumb/breadcrumb.d.ts +3 -3
  15. package/dist/cjs/types/components/ui/atoms/breadcrumb/desktop/breadcrumb-desktop.d.ts +2 -2
  16. package/dist/cjs/types/components/ui/atoms/breadcrumb/mobile/breadcrumb-mobile.d.ts +2 -3
  17. package/dist/cjs/types/components/ui/atoms/button/button.d.ts +4 -0
  18. package/dist/cjs/types/components/ui/atoms/drawer/drawer.d.ts +32 -0
  19. package/dist/cjs/types/components/ui/atoms/drawer/index.d.ts +2 -0
  20. package/dist/cjs/types/components/ui/atoms/glossary-letters/glossary-letters.d.ts +15 -0
  21. package/dist/cjs/types/components/ui/atoms/glossary-letters/index.d.ts +4 -0
  22. package/dist/cjs/types/components/ui/atoms/icon/assets/solid/solid-plane.d.ts +3 -0
  23. package/dist/cjs/types/components/ui/atoms/icon/assets/solid/solid-shield.d.ts +3 -0
  24. package/dist/cjs/types/components/ui/atoms/input-range/index.d.ts +2 -0
  25. package/dist/cjs/types/components/ui/atoms/input-range/input-range.d.ts +48 -0
  26. package/dist/cjs/types/components/ui/atoms/list/index.d.ts +2 -0
  27. package/dist/cjs/types/components/ui/atoms/list/list.d.ts +18 -0
  28. package/dist/cjs/types/components/ui/atoms/modal/index.d.ts +5 -0
  29. package/dist/cjs/types/components/ui/atoms/modal/modal-context.d.ts +17 -0
  30. package/dist/cjs/types/components/ui/atoms/modal/modal.d.ts +13 -0
  31. package/dist/cjs/types/components/ui/atoms/modal/use-modal.d.ts +10 -0
  32. package/dist/cjs/types/components/ui/atoms/pill/pill.d.ts +14 -1
  33. package/dist/cjs/types/components/ui/atoms/scribbles/scribbles.d.ts +2 -2
  34. package/dist/cjs/types/components/ui/atoms/step-list/index.d.ts +2 -0
  35. package/dist/cjs/types/components/ui/atoms/step-list/step-list.d.ts +13 -0
  36. package/dist/cjs/types/components/ui/atoms/switch/index.d.ts +2 -0
  37. package/dist/cjs/types/components/ui/atoms/switch/switch.d.ts +28 -0
  38. package/dist/cjs/types/components/ui/atoms/tabs/index.d.ts +8 -0
  39. package/dist/cjs/types/components/ui/atoms/tabs/tab/tab.d.ts +15 -0
  40. package/dist/cjs/types/components/ui/atoms/tabs/tab-body/tab-body.d.ts +9 -0
  41. package/dist/cjs/types/components/ui/atoms/tabs/tab-header/tab-header.d.ts +9 -0
  42. package/dist/cjs/types/components/ui/atoms/tabs/tabs.d.ts +19 -0
  43. package/dist/cjs/types/components/ui/atoms/toasts/index.d.ts +4 -0
  44. package/dist/cjs/types/components/ui/atoms/toasts/toast-provider.d.ts +16 -0
  45. package/dist/cjs/types/components/ui/atoms/toasts/toast.d.ts +26 -0
  46. package/dist/cjs/types/components/ui/atoms/toasts/useToast.d.ts +8 -0
  47. package/dist/cjs/types/components/ui/atoms/tooltip/index.d.ts +2 -0
  48. package/dist/cjs/types/components/ui/atoms/tooltip/tooltip.d.ts +46 -0
  49. package/dist/cjs/types/components/ui/index.d.ts +17 -2
  50. package/dist/cjs/types/components/ui/molecules/accordion-group/accordion-group.d.ts +1 -1
  51. package/dist/cjs/types/components/ui/molecules/avatar-group/avatar-group.d.ts +16 -0
  52. package/dist/cjs/types/components/ui/molecules/avatar-group/index.d.ts +2 -0
  53. package/dist/cjs/types/components/ui/molecules/avatar-group/visible-count-avatar-group.d.ts +9 -0
  54. package/dist/cjs/types/components/ui/molecules/button-group/button-group.d.ts +36 -0
  55. package/dist/cjs/types/components/ui/molecules/button-group/index.d.ts +2 -0
  56. package/dist/cjs/types/components/ui/molecules/dropdown-list/contexts/dropdown-section-state.context.d.ts +1 -1
  57. package/dist/cjs/types/components/ui/molecules/dropdown-list/models/dropdown-list.interface.d.ts +1 -1
  58. package/dist/cjs/types/components/ui/molecules/radio-button-group/index.d.ts +2 -0
  59. package/dist/cjs/types/components/ui/organisms/input-date/contexts/date-picker-state.context.d.ts +34 -0
  60. package/dist/cjs/types/components/ui/organisms/input-date/contexts/use-date-picker-state-context.d.ts +61 -0
  61. package/dist/cjs/types/components/ui/organisms/input-date/date-picker-dropdown-body/date-picker-dropdown-body.d.ts +2 -0
  62. package/dist/cjs/types/components/ui/organisms/input-date/date-picker-dropdown-footer/date-picker-dropdown-footer.d.ts +2 -0
  63. package/dist/cjs/types/components/ui/organisms/input-date/date-picker-dropdown-header/date-picker-dropdown-header.d.ts +2 -0
  64. package/dist/cjs/types/components/ui/organisms/input-date/date-picker-dropdown.d.ts +26 -0
  65. package/dist/cjs/types/components/ui/organisms/input-date/index.d.ts +1 -1
  66. package/dist/cjs/types/components/ui/organisms/input-date/input-date.d.ts +73 -48
  67. package/dist/cjs/types/components/ui/organisms/input-date/utils/get-date-string.d.ts +1 -0
  68. package/dist/cjs/types/components/ui/organisms/input-date/utils/is-date-in-same-month.d.ts +1 -0
  69. package/dist/cjs/types/components/ui/organisms/input-date/utils/is-same-day.d.ts +1 -0
  70. package/dist/cjs/types/components/ui/organisms/input-date/utils/parse-input-date.d.ts +1 -0
  71. package/dist/cjs/types/components/ui/templates/footer/federated-footer/federated-footer-card.d.ts +4 -0
  72. package/dist/cjs/types/components/ui/templates/{federated-footer → footer/federated-footer}/federated-footer.d.ts +8 -8
  73. package/dist/cjs/types/components/ui/templates/footer/federated-footer/index.d.ts +5 -0
  74. package/dist/cjs/types/components/ui/templates/{federated-footer/models/CardFederatedFooterProps.type.d.ts → footer/models/CardFooterProps.d.ts} +1 -1
  75. package/dist/cjs/types/components/ui/templates/footer/models/CardLinksFooterProps.d.ts +5 -0
  76. package/dist/cjs/types/components/ui/templates/footer/models/ContactsFooterProps.d.ts +6 -0
  77. package/dist/cjs/types/components/ui/templates/footer/public-footer/index.d.ts +7 -0
  78. package/dist/cjs/types/components/ui/templates/footer/public-footer/public-footer-contacts.d.ts +8 -0
  79. package/dist/cjs/types/components/ui/templates/footer/public-footer/public-footer-highlight-card-links.d.ts +4 -0
  80. package/dist/cjs/types/components/ui/templates/footer/public-footer/public-footer-highlight-card.d.ts +9 -0
  81. package/dist/cjs/types/components/ui/templates/footer/public-footer/public-footer-highlight.d.ts +10 -0
  82. package/dist/cjs/types/components/ui/templates/footer/public-footer/public-footer-main-plus-card-links.d.ts +15 -0
  83. package/dist/cjs/types/components/ui/templates/footer/public-footer/public-footer.d.ts +45 -0
  84. package/dist/cjs/types/components/ui/templates/footer/shared-components/footer-brand-badge.d.ts +7 -0
  85. package/dist/cjs/types/components/ui/templates/footer/shared-components/footer-caption-partners.d.ts +7 -0
  86. package/dist/cjs/types/components/ui/templates/footer/shared-components/footer-main.d.ts +5 -0
  87. package/dist/cjs/types/components/ui/templates/footer/shared-components/footer-social-useful-copyright.d.ts +8 -0
  88. package/dist/esm/index.ts +2 -2
  89. package/dist/esm/index.ts.map +1 -1
  90. package/dist/esm/types/components/documentation/Accessibility/accessibility.d.ts +2 -0
  91. package/dist/esm/types/components/documentation/GetttingStarted/getting-started.d.ts +2 -0
  92. package/dist/esm/types/components/models/index.d.ts +1 -0
  93. package/dist/esm/types/components/models/months.interface.d.ts +14 -0
  94. package/dist/esm/types/components/models/week-days.interface.d.ts +9 -0
  95. package/dist/esm/types/components/ui/atoms/anchor/anchor.d.ts +63 -0
  96. package/dist/esm/types/components/ui/atoms/anchor/index.d.ts +2 -0
  97. package/dist/esm/types/components/ui/atoms/avatar/avatar.d.ts +57 -0
  98. package/dist/esm/types/components/ui/atoms/avatar/index.d.ts +2 -0
  99. package/dist/esm/types/components/ui/atoms/avatar/interactive-avatar.d.ts +9 -0
  100. package/dist/esm/types/components/ui/atoms/avatar/non-interactive-avatar.d.ts +8 -0
  101. package/dist/esm/types/components/ui/atoms/breadcrumb/breadcrumb.d.ts +3 -3
  102. package/dist/esm/types/components/ui/atoms/breadcrumb/desktop/breadcrumb-desktop.d.ts +2 -2
  103. package/dist/esm/types/components/ui/atoms/breadcrumb/mobile/breadcrumb-mobile.d.ts +2 -3
  104. package/dist/esm/types/components/ui/atoms/button/button.d.ts +4 -0
  105. package/dist/esm/types/components/ui/atoms/drawer/drawer.d.ts +32 -0
  106. package/dist/esm/types/components/ui/atoms/drawer/index.d.ts +2 -0
  107. package/dist/esm/types/components/ui/atoms/glossary-letters/glossary-letters.d.ts +15 -0
  108. package/dist/esm/types/components/ui/atoms/glossary-letters/index.d.ts +4 -0
  109. package/dist/esm/types/components/ui/atoms/icon/assets/line/line-buildings.d.ts +3 -0
  110. package/dist/esm/types/components/ui/atoms/icon/assets/line/line-plane.d.ts +3 -0
  111. package/dist/esm/types/components/ui/atoms/icon/assets/line/line-shield.d.ts +3 -0
  112. package/dist/esm/types/components/ui/atoms/icon/assets/solid/solid-buildings.d.ts +3 -0
  113. package/dist/esm/types/components/ui/atoms/icon/assets/solid/solid-plane.d.ts +3 -0
  114. package/dist/esm/types/components/ui/atoms/icon/assets/solid/solid-shield.d.ts +3 -0
  115. package/dist/esm/types/components/ui/atoms/input-range/index.d.ts +2 -0
  116. package/dist/esm/types/components/ui/atoms/input-range/input-range.d.ts +48 -0
  117. package/dist/esm/types/components/ui/atoms/list/index.d.ts +2 -0
  118. package/dist/esm/types/components/ui/atoms/list/list.d.ts +18 -0
  119. package/dist/esm/types/components/ui/atoms/modal/index.d.ts +5 -0
  120. package/dist/esm/types/components/ui/atoms/modal/modal-context.d.ts +17 -0
  121. package/dist/esm/types/components/ui/atoms/modal/modal.d.ts +13 -0
  122. package/dist/esm/types/components/ui/atoms/modal/use-modal.d.ts +10 -0
  123. package/dist/esm/types/components/ui/atoms/pill/pill.d.ts +14 -1
  124. package/dist/esm/types/components/ui/atoms/scribbles/scribbles.d.ts +2 -2
  125. package/dist/esm/types/components/ui/atoms/step-list/index.d.ts +2 -0
  126. package/dist/esm/types/components/ui/atoms/step-list/step-list.d.ts +13 -0
  127. package/dist/esm/types/components/ui/atoms/switch/index.d.ts +2 -0
  128. package/dist/esm/types/components/ui/atoms/switch/switch.d.ts +28 -0
  129. package/dist/esm/types/components/ui/atoms/tabs/index.d.ts +8 -0
  130. package/dist/esm/types/components/ui/atoms/tabs/tab/tab.d.ts +15 -0
  131. package/dist/esm/types/components/ui/atoms/tabs/tab-body/tab-body.d.ts +9 -0
  132. package/dist/esm/types/components/ui/atoms/tabs/tab-header/tab-header.d.ts +9 -0
  133. package/dist/esm/types/components/ui/atoms/tabs/tabs.d.ts +19 -0
  134. package/dist/esm/types/components/ui/atoms/toasts/index.d.ts +4 -0
  135. package/dist/esm/types/components/ui/atoms/toasts/toast-provider.d.ts +16 -0
  136. package/dist/esm/types/components/ui/atoms/toasts/toast.d.ts +26 -0
  137. package/dist/esm/types/components/ui/atoms/toasts/useToast.d.ts +8 -0
  138. package/dist/esm/types/components/ui/atoms/tooltip/index.d.ts +2 -0
  139. package/dist/esm/types/components/ui/atoms/tooltip/tooltip.d.ts +46 -0
  140. package/dist/esm/types/components/ui/index.d.ts +17 -2
  141. package/dist/esm/types/components/ui/molecules/accordion-group/accordion-group.d.ts +1 -1
  142. package/dist/esm/types/components/ui/molecules/avatar-group/avatar-group.d.ts +16 -0
  143. package/dist/esm/types/components/ui/molecules/avatar-group/index.d.ts +2 -0
  144. package/dist/esm/types/components/ui/molecules/avatar-group/visible-count-avatar-group.d.ts +9 -0
  145. package/dist/esm/types/components/ui/molecules/button-group/button-group.d.ts +36 -0
  146. package/dist/esm/types/components/ui/molecules/button-group/index.d.ts +2 -0
  147. package/dist/esm/types/components/ui/molecules/dropdown-list/contexts/dropdown-section-state.context.d.ts +1 -1
  148. package/dist/esm/types/components/ui/molecules/dropdown-list/models/dropdown-list.interface.d.ts +1 -1
  149. package/dist/esm/types/components/ui/molecules/radio-button-group/index.d.ts +2 -0
  150. package/dist/esm/types/components/ui/organisms/input-date/contexts/date-picker-state.context.d.ts +34 -0
  151. package/dist/esm/types/components/ui/organisms/input-date/contexts/use-date-picker-state-context.d.ts +61 -0
  152. package/dist/esm/types/components/ui/organisms/input-date/date-picker-dropdown-body/date-picker-dropdown-body.d.ts +2 -0
  153. package/dist/esm/types/components/ui/organisms/input-date/date-picker-dropdown-footer/date-picker-dropdown-footer.d.ts +2 -0
  154. package/dist/esm/types/components/ui/organisms/input-date/date-picker-dropdown-header/date-picker-dropdown-header.d.ts +2 -0
  155. package/dist/esm/types/components/ui/organisms/input-date/date-picker-dropdown.d.ts +26 -0
  156. package/dist/esm/types/components/ui/organisms/input-date/index.d.ts +1 -1
  157. package/dist/esm/types/components/ui/organisms/input-date/input-date.d.ts +73 -48
  158. package/dist/esm/types/components/ui/organisms/input-date/utils/get-date-string.d.ts +1 -0
  159. package/dist/esm/types/components/ui/organisms/input-date/utils/is-date-in-same-month.d.ts +1 -0
  160. package/dist/esm/types/components/ui/organisms/input-date/utils/is-same-day.d.ts +1 -0
  161. package/dist/esm/types/components/ui/organisms/input-date/utils/parse-input-date.d.ts +1 -0
  162. package/dist/esm/types/components/ui/templates/footer/federated-footer/federated-footer-card.d.ts +4 -0
  163. package/dist/esm/types/components/ui/templates/{federated-footer → footer/federated-footer}/federated-footer.d.ts +8 -8
  164. package/dist/esm/types/components/ui/templates/footer/federated-footer/index.d.ts +5 -0
  165. package/dist/esm/types/components/ui/templates/{federated-footer/models/CardFederatedFooterProps.type.d.ts → footer/models/CardFooterProps.d.ts} +1 -1
  166. package/dist/esm/types/components/ui/templates/footer/models/CardLinksFooterProps.d.ts +5 -0
  167. package/dist/esm/types/components/ui/templates/footer/models/ContactsFooterProps.d.ts +6 -0
  168. package/dist/esm/types/components/ui/templates/footer/public-footer/index.d.ts +7 -0
  169. package/dist/esm/types/components/ui/templates/footer/public-footer/public-footer-contacts.d.ts +8 -0
  170. package/dist/esm/types/components/ui/templates/footer/public-footer/public-footer-highlight-card-links.d.ts +4 -0
  171. package/dist/esm/types/components/ui/templates/footer/public-footer/public-footer-highlight-card.d.ts +9 -0
  172. package/dist/esm/types/components/ui/templates/footer/public-footer/public-footer-highlight.d.ts +10 -0
  173. package/dist/esm/types/components/ui/templates/footer/public-footer/public-footer-main-plus-card-links.d.ts +15 -0
  174. package/dist/esm/types/components/ui/templates/footer/public-footer/public-footer.d.ts +45 -0
  175. package/dist/esm/types/components/ui/templates/footer/shared-components/footer-brand-badge.d.ts +7 -0
  176. package/dist/esm/types/components/ui/templates/footer/shared-components/footer-caption-partners.d.ts +7 -0
  177. package/dist/esm/types/components/ui/templates/footer/shared-components/footer-main.d.ts +5 -0
  178. package/dist/esm/types/components/ui/templates/footer/shared-components/footer-social-useful-copyright.d.ts +8 -0
  179. package/dist/index.d.ts +624 -79
  180. package/package.json +27 -19
  181. package/dist/cjs/types/components/ui/molecules/radiobutton-group/index.d.ts +0 -2
  182. package/dist/cjs/types/components/ui/organisms/input-date/date-picker-dialog.class.d.ts +0 -77
  183. package/dist/cjs/types/components/ui/templates/federated-footer/federated-footer-brand-badge.d.ts +0 -7
  184. package/dist/cjs/types/components/ui/templates/federated-footer/federated-footer-caption-partners.d.ts +0 -7
  185. package/dist/cjs/types/components/ui/templates/federated-footer/federated-footer-card.d.ts +0 -4
  186. package/dist/cjs/types/components/ui/templates/federated-footer/federated-footer-social-useful-copyright.d.ts +0 -8
  187. package/dist/cjs/types/components/ui/templates/federated-footer/index.d.ts +0 -5
  188. package/dist/esm/types/components/ui/molecules/radiobutton-group/index.d.ts +0 -2
  189. package/dist/esm/types/components/ui/organisms/input-date/date-picker-dialog.class.d.ts +0 -77
  190. package/dist/esm/types/components/ui/templates/federated-footer/federated-footer-brand-badge.d.ts +0 -7
  191. package/dist/esm/types/components/ui/templates/federated-footer/federated-footer-caption-partners.d.ts +0 -7
  192. package/dist/esm/types/components/ui/templates/federated-footer/federated-footer-card.d.ts +0 -4
  193. package/dist/esm/types/components/ui/templates/federated-footer/federated-footer-social-useful-copyright.d.ts +0 -8
  194. package/dist/esm/types/components/ui/templates/federated-footer/index.d.ts +0 -5
  195. /package/dist/cjs/types/components/documentation/{welcome.d.ts → Welcome/welcome.d.ts} +0 -0
  196. /package/dist/cjs/types/components/ui/atoms/icon/assets/line/{line-security.d.ts → line-buildings.d.ts} +0 -0
  197. /package/dist/cjs/types/components/ui/atoms/icon/assets/{solid/solid-security.d.ts → line/line-plane.d.ts} +0 -0
  198. /package/dist/{esm/types/components/ui/atoms/icon/assets/line/line-security.d.ts → cjs/types/components/ui/atoms/icon/assets/line/line-shield.d.ts} +0 -0
  199. /package/dist/{esm/types/components/ui/atoms/icon/assets/solid/solid-security.d.ts → cjs/types/components/ui/atoms/icon/assets/solid/solid-buildings.d.ts} +0 -0
  200. /package/dist/cjs/types/components/ui/molecules/{radiobutton-group/radiobutton-group.d.ts → radio-button-group/radio-button-group.d.ts} +0 -0
  201. /package/dist/cjs/types/components/ui/templates/{federated-footer → footer}/models/LinkableIconsProps.d.ts +0 -0
  202. /package/dist/cjs/types/components/ui/templates/{federated-footer → footer}/models/LinkableImagesProps.d.ts +0 -0
  203. /package/dist/esm/types/components/documentation/{welcome.d.ts → Welcome/welcome.d.ts} +0 -0
  204. /package/dist/esm/types/components/ui/molecules/{radiobutton-group/radiobutton-group.d.ts → radio-button-group/radio-button-group.d.ts} +0 -0
  205. /package/dist/esm/types/components/ui/templates/{federated-footer → footer}/models/LinkableIconsProps.d.ts +0 -0
  206. /package/dist/esm/types/components/ui/templates/{federated-footer → footer}/models/LinkableImagesProps.d.ts +0 -0
@@ -0,0 +1,26 @@
1
+ import { ComponentPropsWithoutRef, FC } from 'react';
2
+ import './toast.scss';
3
+ export type ToastType = 'success' | 'failure' | 'warning' | 'info';
4
+ export interface ToastProps extends Omit<ComponentPropsWithoutRef<'div'>, 'id'> {
5
+ /**
6
+ * The id of the toast
7
+ */
8
+ id: number;
9
+ /**
10
+ * Title of the toast
11
+ */
12
+ title: string;
13
+ /**
14
+ * Description of the toast
15
+ */
16
+ description: string;
17
+ /**
18
+ * Type variant of the toast
19
+ */
20
+ type: ToastType;
21
+ /**
22
+ * Alternative text to apply to the toast close button
23
+ */
24
+ closeLabel: string;
25
+ }
26
+ export declare const Toast: FC<ToastProps>;
@@ -0,0 +1,8 @@
1
+ import { ToastProps } from './toast';
2
+ export interface ToastHook {
3
+ toasts: ToastProps[];
4
+ showToast: (args: ToastProps, duration?: number) => void;
5
+ removeToast: (args: ToastProps) => void;
6
+ }
7
+ declare const useToast: () => ToastHook;
8
+ export default useToast;
@@ -0,0 +1,2 @@
1
+ export { Tooltip } from './tooltip';
2
+ export type { TooltipProps, TooltipVariant, TooltipPosition, TooltipAlignment } from './tooltip';
@@ -0,0 +1,46 @@
1
+ import React, { ComponentPropsWithRef, ForwardRefRenderFunction } from 'react';
2
+ import './tooltip.scss';
3
+ /**
4
+ * The available variants of the Tooltip. This variants will define the background of the Tooltip.
5
+ */
6
+ export type TooltipVariant = 'light' | 'dark' | 'info';
7
+ /**
8
+ * The available positions of the Tooltip. This positions will define the position of the Tooltip.
9
+ */
10
+ export type TooltipPosition = 'top' | 'bottom' | 'left' | 'right';
11
+ /**
12
+ * The available alignments of the Tooltip. This alignments will define the alignment of the Tooltip.
13
+ */
14
+ export type TooltipAlignment = 'start' | 'center' | 'end';
15
+ export interface TooltipProps extends ComponentPropsWithRef<'div'> {
16
+ /**
17
+ * The variant of the Tooltip.
18
+ */
19
+ variant: TooltipVariant;
20
+ /**
21
+ * The position of the Tooltip.
22
+ */
23
+ position: TooltipPosition;
24
+ /**
25
+ * The alignment of the Tooltip.
26
+ */
27
+ alignment: TooltipAlignment;
28
+ /**
29
+ * The title of the Tooltip.
30
+ */
31
+ title?: string;
32
+ /**
33
+ * If the Tooltip has a title.
34
+ */
35
+ hasTitle?: boolean;
36
+ /**
37
+ * The description of the Tooltip.
38
+ */
39
+ description: string;
40
+ /**
41
+ * The children of the Tooltip.
42
+ */
43
+ children?: React.ReactNode;
44
+ }
45
+ export declare const InnerTooltip: ForwardRefRenderFunction<HTMLDivElement, TooltipProps>;
46
+ export declare const Tooltip: React.ForwardRefExoticComponent<Omit<TooltipProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
@@ -1,23 +1,38 @@
1
1
  export * from './atoms/accordion';
2
+ export * from './atoms/anchor';
3
+ export * from './atoms/avatar';
2
4
  export * from './atoms/breadcrumb';
3
5
  export * from './atoms/button';
4
6
  export * from './atoms/checkbox';
7
+ export * from './atoms/drawer';
8
+ export * from './atoms/glossary-letters';
5
9
  export * from './atoms/icon';
6
10
  export * from './atoms/input-number';
7
11
  export * from './atoms/input-password';
8
12
  export * from './atoms/input-search';
9
13
  export * from './atoms/input-text';
10
14
  export * from './atoms/input-textarea';
15
+ export * from './atoms/input-range';
16
+ export * from './atoms/modal';
11
17
  export * from './atoms/pill';
12
18
  export * from './atoms/progress-bar';
13
19
  export * from './atoms/radio';
14
20
  export * from './atoms/scribbles';
21
+ export * from './atoms/switch';
22
+ export * from './atoms/tabs';
15
23
  export * from './atoms/tag';
24
+ export * from './atoms/list';
25
+ export * from './atoms/step-list';
26
+ export * from './atoms/toasts';
16
27
  export * from './molecules/accordion-group';
28
+ export * from './molecules/avatar-group';
17
29
  export * from './molecules/checkbox-group';
18
30
  export * from './molecules/dropdown-list';
19
- export * from './molecules/radiobutton-group';
31
+ export * from './molecules/progress-bar-group';
32
+ export * from './molecules/radio-button-group';
33
+ export * from './molecules/button-group';
20
34
  export * from './organisms/input-date';
21
35
  export * from './organisms/input-phone';
22
36
  export * from './organisms/input-select';
23
- export * from './templates/federated-footer';
37
+ export * from './templates/footer/federated-footer';
38
+ export * from './templates/footer/public-footer';
@@ -10,7 +10,7 @@ export interface AccordionGroupProps extends ComponentPropsWithRef<'div'> {
10
10
  /**
11
11
  * List of accordion components to use as children of the group.
12
12
  */
13
- children?: ReactElement<AccordionProps> | Array<ReactElement<ReactElement<AccordionProps>>>;
13
+ children?: ReactElement<AccordionProps> | Array<ReactElement<AccordionProps>>;
14
14
  /**
15
15
  * Option to open multiple accordions or just one at a time
16
16
  */
@@ -0,0 +1,16 @@
1
+ import { FC, HtmlHTMLAttributes, ReactElement } from 'react';
2
+ import { AvatarProps } from '../../atoms/avatar';
3
+ import './avatar-group.scss';
4
+ export interface AvatarGroupProps extends HtmlHTMLAttributes<HTMLDivElement> {
5
+ /**
6
+ * List of avatar components to use as children of the group.
7
+ */
8
+ children: ReactElement<AvatarProps> | Array<ReactElement<AvatarProps>>;
9
+ /**
10
+ * Number of avatars that will be visible in the group. Once it exceeds that number a separate icon will show how many more avatars there are left.
11
+ * Clicking on the icon with the number will preview the other avatars as well.
12
+ */
13
+ visibleCount?: number;
14
+ }
15
+ declare const AvatarGroup: FC<AvatarGroupProps>;
16
+ export { AvatarGroup };
@@ -0,0 +1,2 @@
1
+ export { AvatarGroup } from './avatar-group';
2
+ export type { AvatarGroupProps } from './avatar-group';
@@ -0,0 +1,9 @@
1
+ import { ReactElement, ComponentPropsWithoutRef, FC } from 'react';
2
+ import { AvatarProps } from '../../atoms/avatar';
3
+ export interface VisibleCountAvatarGroupProps extends ComponentPropsWithoutRef<'div'> {
4
+ className?: string;
5
+ children: ReactElement<AvatarProps> | Array<ReactElement<AvatarProps>>;
6
+ visibleCount: number;
7
+ avatarCount: number;
8
+ }
9
+ export declare const VisibleCountAvatarGroup: FC<VisibleCountAvatarGroupProps>;
@@ -0,0 +1,36 @@
1
+ import { FC, HtmlHTMLAttributes, ReactElement } from 'react';
2
+ import { ButtonProps, ButtonVariant } from '../../../..';
3
+ import { BooleanProp } from '../../../models';
4
+ import './button-group.scss';
5
+ export interface ButtonGroupProps extends Omit<HtmlHTMLAttributes<HTMLDivElement>, 'onChange'> {
6
+ /**
7
+ * button variant.
8
+ */
9
+ variant?: ButtonVariant;
10
+ /**
11
+ * Defines if the anchor should be fluid
12
+ */
13
+ fullWidth?: BooleanProp;
14
+ /**
15
+ * Group name
16
+ */
17
+ name?: string;
18
+ /**
19
+ * List of button props to generate as buttons.
20
+ */
21
+ items?: ButtonProps[];
22
+ /**
23
+ * List of button components to use as children of the group.
24
+ */
25
+ children?: ReactElement<ButtonProps> | Array<ReactElement<ButtonProps>>;
26
+ /**
27
+ * Event triggered whenever any of the buttons changes is own state.
28
+ */
29
+ onChange?: (selectedButtons: Array<ReactElement<ButtonProps>>) => void;
30
+ /**
31
+ * Defines if the group allows multiple selection.
32
+ */
33
+ multiple?: BooleanProp;
34
+ }
35
+ declare const ButtonGroup: FC<ButtonGroupProps>;
36
+ export { ButtonGroup };
@@ -0,0 +1,2 @@
1
+ export { ButtonGroup } from './button-group';
2
+ export type { ButtonGroupProps } from './button-group';
@@ -30,7 +30,7 @@ export declare class DropdownSectionStateManager extends TypedEventEmitter<Dropd
30
30
  private emitChangeEvent;
31
31
  private clearFilterFromDOMElements;
32
32
  private applyFilterToDOMElements;
33
- init(listboxRef: any, controllerRef: any, childrenNodes: any, currentFocusIndex: any, enableSelectAll: any, selectAllSectionId: any): void;
33
+ init(listboxRef: HTMLElement | null, controllerRef: HTMLElement | null, childrenNodes: ReactElement<DropdownSectionProps> | Array<ReactElement<DropdownSectionProps>>, currentFocusIndex: number, enableSelectAll: boolean, selectAllSectionId: string): void;
34
34
  private selectAllOptions;
35
35
  private selectCheckboxOption;
36
36
  private selectTextOrRadioOption;
@@ -55,5 +55,5 @@ export interface DropdownListProps extends Omit<React.ComponentPropsWithRef<'sel
55
55
  /**
56
56
  * Event triggered whenever the input search bar value changes.
57
57
  */
58
- onInputSearchChange?: (string: any) => void;
58
+ onInputSearchChange?: (value: string) => void;
59
59
  }
@@ -0,0 +1,2 @@
1
+ export { RadioButtonGroup } from './radio-button-group';
2
+ export type { RadioButtonGroupProps } from './radio-button-group';
@@ -0,0 +1,34 @@
1
+ import React, { Dispatch, FC, ReactNode, SetStateAction } from 'react';
2
+ import { Months } from '../../../../models';
3
+ import { WeekDays } from '../../../../models/week-days.interface';
4
+ export type DatePickerStateContextType = {
5
+ focusedDate: Date;
6
+ setFocusedDate: Dispatch<SetStateAction<Date>>;
7
+ selectedDate: Date;
8
+ setSelectedDate: Dispatch<SetStateAction<Date>>;
9
+ confirm: (date: Date) => void;
10
+ cancel: () => void;
11
+ labels: {
12
+ previousYearAriaLabel: string;
13
+ previousMonthAriaLabel: string;
14
+ nextMonthAriaLabel: string;
15
+ nextYearAriaLabel: string;
16
+ monthsLabels?: Months;
17
+ weekdaysLabels?: WeekDays;
18
+ focusedDayAriaLabel?: string;
19
+ selectedDayAriaLabel: string;
20
+ todayDayAriaLabel: string;
21
+ todayLabel: string;
22
+ todayAriaLabel?: string;
23
+ cancelLabel: string;
24
+ cancelAriaLabel?: string;
25
+ okLabel: string;
26
+ okAriaLabel?: string;
27
+ };
28
+ };
29
+ export declare const DatePickerStateContext: React.Context<DatePickerStateContextType | undefined>;
30
+ export interface DatePickerStateProviderProps {
31
+ children: ReactNode;
32
+ value: DatePickerStateContextType;
33
+ }
34
+ export declare const DatePickerStateProvider: FC<DatePickerStateProviderProps>;
@@ -0,0 +1,61 @@
1
+ /// <reference types="react" />
2
+ import { Months } from '../../../../models';
3
+ import { WeekDays } from '../../../../models/week-days.interface';
4
+ declare const useDatePickerStateContext: () => {
5
+ getLabels: () => {
6
+ previousYearAriaLabel: string;
7
+ previousMonthAriaLabel: string;
8
+ nextMonthAriaLabel: string;
9
+ nextYearAriaLabel: string;
10
+ monthsLabels?: Months | undefined;
11
+ weekdaysLabels?: WeekDays | undefined;
12
+ focusedDayAriaLabel?: string | undefined;
13
+ selectedDayAriaLabel: string;
14
+ todayDayAriaLabel: string;
15
+ todayLabel: string;
16
+ todayAriaLabel?: string | undefined;
17
+ cancelLabel: string;
18
+ cancelAriaLabel?: string | undefined;
19
+ okLabel: string;
20
+ okAriaLabel?: string | undefined;
21
+ };
22
+ getAbbrWeekDays: () => string[];
23
+ focusedMonth: string | undefined;
24
+ focusedYear: number;
25
+ moveToPreviousYear: () => void;
26
+ moveToPreviousMonth: () => void;
27
+ moveToNextMonth: () => void;
28
+ moveToNextYear: () => void;
29
+ moveToNextDay: () => void;
30
+ moveToNextWeek: () => void;
31
+ moveToPreviousDay: () => void;
32
+ moveToPreviousWeek: () => void;
33
+ moveToFirstDayOfWeek: () => void;
34
+ moveToLastDayOfWeek: () => void;
35
+ selectFocusedDate: () => void;
36
+ focusToday: () => void;
37
+ focusedDate: Date;
38
+ setFocusedDate: import("react").Dispatch<import("react").SetStateAction<Date>>;
39
+ selectedDate: Date;
40
+ setSelectedDate: import("react").Dispatch<import("react").SetStateAction<Date>>;
41
+ confirm: (date: Date) => void;
42
+ cancel: () => void;
43
+ labels: {
44
+ previousYearAriaLabel: string;
45
+ previousMonthAriaLabel: string;
46
+ nextMonthAriaLabel: string;
47
+ nextYearAriaLabel: string;
48
+ monthsLabels?: Months | undefined;
49
+ weekdaysLabels?: WeekDays | undefined;
50
+ focusedDayAriaLabel?: string | undefined;
51
+ selectedDayAriaLabel: string;
52
+ todayDayAriaLabel: string;
53
+ todayLabel: string;
54
+ todayAriaLabel?: string | undefined;
55
+ cancelLabel: string;
56
+ cancelAriaLabel?: string | undefined;
57
+ okLabel: string;
58
+ okAriaLabel?: string | undefined;
59
+ };
60
+ };
61
+ export { useDatePickerStateContext };
@@ -0,0 +1,2 @@
1
+ import { FC } from 'react';
2
+ export declare const DialogBody: FC;
@@ -0,0 +1,2 @@
1
+ import { FC } from 'react';
2
+ export declare const DialogFooter: FC;
@@ -0,0 +1,2 @@
1
+ import { FC } from 'react';
2
+ export declare const DialogHeader: FC;
@@ -0,0 +1,26 @@
1
+ import { FC } from 'react';
2
+ import { Months } from '../../../models';
3
+ import { WeekDays } from '../../../models/week-days.interface';
4
+ export interface DatePickerDropdownProps {
5
+ date: Date;
6
+ onChange: (date: Date) => void;
7
+ onCancel: () => void;
8
+ labels: {
9
+ previousYearAriaLabel: string;
10
+ previousMonthAriaLabel: string;
11
+ nextMonthAriaLabel: string;
12
+ nextYearAriaLabel: string;
13
+ monthsLabels?: Months;
14
+ weekdaysLabels?: WeekDays;
15
+ focusedDayAriaLabel?: string;
16
+ selectedDayAriaLabel: string;
17
+ todayDayAriaLabel: string;
18
+ todayLabel: string;
19
+ todayAriaLabel?: string;
20
+ cancelLabel: string;
21
+ cancelAriaLabel?: string;
22
+ okLabel: string;
23
+ okAriaLabel?: string;
24
+ };
25
+ }
26
+ export declare const DatePickerDropdown: FC<DatePickerDropdownProps>;
@@ -1,2 +1,2 @@
1
1
  export { InputDate } from './input-date';
2
- export type { InputDateProps, InputDateLanguageProps, InputDateEventProps } from './input-date';
2
+ export type { InputDateProps } from './input-date';
@@ -1,78 +1,103 @@
1
- import React from 'react';
2
- import { BooleanProp } from '../../../models';
1
+ import React, { ComponentPropsWithRef } from 'react';
2
+ import { BooleanProp, FeedbackState, Months } from '../../../models';
3
+ import { WeekDays } from '../../../models/week-days.interface';
3
4
  import './input-date.scss';
4
- export interface InputDateLanguageProps {
5
- days: string[];
6
- daysShort: string[];
7
- months: string[];
8
- monthsShort: string[];
9
- monthsTitle: string;
10
- chooseDate: string;
11
- previousYear: string;
12
- previousMonth: string;
13
- nextMonth: string;
14
- nextYear: string;
15
- btnOKText: string;
16
- btnCancelText: string;
17
- btnTodayText: string;
18
- }
19
- export interface InputDateEventProps {
20
- date: Date;
21
- disabled: boolean;
22
- }
23
- export interface InputDateProps extends React.ComponentPropsWithRef<'input'> {
5
+ export interface InputDateProps extends ComponentPropsWithRef<'input'> {
24
6
  /**
25
- * Input ID.
7
+ * Input label text.
26
8
  */
27
- id: string;
9
+ label?: string;
28
10
  /**
29
- * Input descriptive label.
11
+ * Show or hide input label.
30
12
  */
31
- label?: string;
13
+ hideLabel?: BooleanProp;
32
14
  /**
33
- * Descriptive attribute that labels the checkbox in terms of accessibility
15
+ * Sets the input in a error state. This also affects the feedback state.
34
16
  */
35
- ariaLabel?: string;
17
+ hasError?: BooleanProp;
36
18
  /**
37
- * Decides if display/hide OverlayInfo.
19
+ * Show or hide the feedback status text.
38
20
  */
39
- showOverlayInfo?: BooleanProp;
21
+ hasFeedback?: BooleanProp;
40
22
  /**
41
- * Decides if display/hide label.
23
+ * Defines the state of the feedback text. This param will change the feedback icon and dye it.
42
24
  */
43
- hideLabel?: BooleanProp;
25
+ feedbackState?: FeedbackState;
44
26
  /**
45
- * Text informative displayed below input text
27
+ * Feedback text displayed below input.
46
28
  */
47
29
  feedbackText?: string;
48
30
  /**
49
- * Text to displayed on OverlayInfo text
31
+ * Show or hide the leading icon.
50
32
  */
51
- overlayInfoText?: string;
33
+ hasIcon?: BooleanProp;
52
34
  /**
53
- * Indicates the feedback state of feedback text.
54
- * This param will change the left feedback icon and dye it.
35
+ * Name of the icon leading icon to be displayed.
55
36
  */
56
- feedbackState?: 'info' | 'danger' | 'success' | 'warning';
37
+ icon?: string;
57
38
  /**
58
- * Highlight the input indicating some error
39
+ * Accessible text to apply to the trailing calendar icon.
59
40
  */
60
- hasError?: BooleanProp;
41
+ calendarIconAriaLabel: string;
42
+ /**
43
+ * Accessible text to apply to the date picker previous year button.
44
+ */
45
+ previousYearAriaLabel: string;
46
+ /**
47
+ * Accessible text to apply to the date picker previous month button.
48
+ */
49
+ previousMonthAriaLabel: string;
50
+ /**
51
+ * Accessible text to apply to the date picker next month button.
52
+ */
53
+ nextMonthAriaLabel: string;
54
+ /**
55
+ * Accessible text to apply to the date picker next year button.
56
+ */
57
+ nextYearAriaLabel: string;
58
+ /**
59
+ * Labels for each month.
60
+ */
61
+ monthsLabels?: Months;
62
+ /**
63
+ * Labels for each weekday.
64
+ */
65
+ weekdaysLabels?: WeekDays;
66
+ /**
67
+ * Accessible text to identify the current focused day.
68
+ */
69
+ focusedDayAriaLabel?: string;
70
+ /**
71
+ * Accessible text to identify the current selected day.
72
+ */
73
+ selectedDayAriaLabel: string;
74
+ /**
75
+ * Accessible text to identify the highlighted today day.
76
+ */
77
+ todayDayAriaLabel: string;
78
+ /**
79
+ * Label for the date picker today button.
80
+ */
81
+ todayLabel: string;
82
+ /**
83
+ * Accessible text for the date picker today button.
84
+ */
85
+ todayAriaLabel?: string;
61
86
  /**
62
- * Alternative text for improve clear text icon Accessibility
87
+ * Label for the date picker cancel button.
63
88
  */
64
- toggleDateAltIconText?: string;
89
+ cancelLabel: string;
65
90
  /**
66
- * Allow to show/hide the char counter on right button corner.
91
+ * Accessible text for the date picker cancel button.
67
92
  */
68
- isOptional?: BooleanProp;
93
+ cancelAriaLabel?: string;
69
94
  /**
70
- * Allow to change to others languages.
95
+ * Label for the date picker ok button.
71
96
  */
72
- language?: InputDateLanguageProps;
97
+ okLabel: string;
73
98
  /**
74
- * Allow to create list of events date that can be disabled or not.
99
+ * Accessible text for the date picker ok button.
75
100
  */
76
- dateEventList?: InputDateEventProps[];
101
+ okAriaLabel?: string;
77
102
  }
78
103
  export declare const InputDate: React.ForwardRefExoticComponent<Omit<InputDateProps, "ref"> & React.RefAttributes<HTMLInputElement>>;
@@ -0,0 +1 @@
1
+ export declare const getDateString: (d: Date) => string;
@@ -0,0 +1 @@
1
+ export declare const isDateInSameMonthOfYear: (date1: Date, date2: Date) => boolean;
@@ -0,0 +1 @@
1
+ export declare const isSameDay: (date1: Date, date2: Date) => boolean;
@@ -0,0 +1 @@
1
+ export declare const parseInputDate: (val?: string | null) => Date | null;
@@ -0,0 +1,4 @@
1
+ import { FC } from 'react';
2
+ import { CardFooterProps } from '../models/CardFooterProps';
3
+ declare const FederatedFooterCard: FC<CardFooterProps>;
4
+ export { FederatedFooterCard };
@@ -1,17 +1,17 @@
1
1
  import { AnchorHTMLAttributes, FC, ReactNode } from 'react';
2
+ import { CardFooterProps } from '../models/CardFooterProps';
3
+ import { LinkableIconsProps } from '../models/LinkableIconsProps';
4
+ import { LinkableImagesProps } from '../models/LinkableImagesProps';
2
5
  import './federated-footer.scss';
3
- import { CardFederatedFooterProps } from './models/CardFederatedFooterProps.type';
4
- import { LinkableIconsProps } from './models/LinkableIconsProps';
5
- import { LinkableImagesProps } from './models/LinkableImagesProps';
6
6
  export interface FederatedFooterProps {
7
7
  /**
8
8
  * Informative card. Links limited to first 3, remaining array is discarded.
9
9
  */
10
- card?: CardFederatedFooterProps;
10
+ card?: CardFooterProps;
11
11
  /**
12
12
  * Image on left side with/without link.
13
13
  */
14
- brandImage?: LinkableImagesProps;
14
+ brandImage: LinkableImagesProps;
15
15
  /**
16
16
  * Image on right side with/without link.
17
17
  */
@@ -19,11 +19,11 @@ export interface FederatedFooterProps {
19
19
  /**
20
20
  * Small descriptive text
21
21
  */
22
- caption?: string | ReactNode;
22
+ caption: string | ReactNode;
23
23
  /**
24
24
  * List of images with or without link. Links limited to first 10, remaining array is discarded.
25
25
  */
26
- partnersLogos?: LinkableImagesProps[];
26
+ partnersLogos: LinkableImagesProps[];
27
27
  /**
28
28
  * List of icons with/without link. Links limited to first 10, remaining array is discarded.
29
29
  */
@@ -32,7 +32,7 @@ export interface FederatedFooterProps {
32
32
  * List of links. Links limited to first 8, remaining array is discarded.
33
33
  */
34
34
  usefulLinks?: AnchorHTMLAttributes<HTMLAnchorElement>[];
35
- copyright?: string;
35
+ copyright: string;
36
36
  }
37
37
  declare const FederatedFooter: FC<FederatedFooterProps>;
38
38
  export { FederatedFooter };
@@ -0,0 +1,5 @@
1
+ export { FederatedFooter } from './federated-footer';
2
+ export type { FederatedFooterProps } from './federated-footer';
3
+ export type { CardFooterProps } from '../models/CardFooterProps';
4
+ export type { LinkableIconsProps } from '../models/LinkableIconsProps';
5
+ export type { LinkableImagesProps } from '../models/LinkableImagesProps';
@@ -1,5 +1,5 @@
1
1
  import { ReactNode, AnchorHTMLAttributes } from 'react';
2
- export type CardFederatedFooterProps = {
2
+ export type CardFooterProps = {
3
3
  title?: string;
4
4
  description?: string | ReactNode;
5
5
  links?: AnchorHTMLAttributes<HTMLAnchorElement>[];
@@ -0,0 +1,5 @@
1
+ import { AnchorHTMLAttributes } from 'react';
2
+ export type CardLinksFooterProps = {
3
+ title?: string;
4
+ links?: AnchorHTMLAttributes<HTMLAnchorElement>[];
5
+ };
@@ -0,0 +1,6 @@
1
+ import { ReactNode } from 'react';
2
+ export type ContactsFooterProps = {
3
+ title?: string | ReactNode;
4
+ description?: string | ReactNode;
5
+ phones?: string[];
6
+ };
@@ -0,0 +1,7 @@
1
+ export type { CardFooterProps } from '../models/CardFooterProps';
2
+ export type { CardLinksFooterProps } from '../models/CardLinksFooterProps';
3
+ export type { ContactsFooterProps } from '../models/ContactsFooterProps';
4
+ export type { LinkableIconsProps } from '../models/LinkableIconsProps';
5
+ export type { LinkableImagesProps } from '../models/LinkableImagesProps';
6
+ export { PublicFooter } from './public-footer';
7
+ export type { PublicFooterProps } from './public-footer';
@@ -0,0 +1,8 @@
1
+ import { FC } from 'react';
2
+ import { ContactsFooterProps } from '../models/ContactsFooterProps';
3
+ declare const PublicFooterContacts: FC<{
4
+ contacts: ContactsFooterProps[];
5
+ contactsOnly: boolean;
6
+ hasCardLinks: boolean;
7
+ }>;
8
+ export { PublicFooterContacts };