@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,2 @@
1
+ /// <reference types="react" />
2
+ export declare const AccessibilityStory: () => JSX.Element;
@@ -0,0 +1,2 @@
1
+ /// <reference types="react" />
2
+ export declare const GettingStartedStory: () => JSX.Element;
@@ -1,3 +1,4 @@
1
1
  export * from './boolean-type';
2
2
  export * from './feedback-state-type';
3
3
  export * from './icon-position.type';
4
+ export * from './months.interface';
@@ -0,0 +1,14 @@
1
+ export interface Months {
2
+ jan: string;
3
+ feb: string;
4
+ mar: string;
5
+ apr: string;
6
+ may: string;
7
+ jun: string;
8
+ jul: string;
9
+ aug: string;
10
+ set: string;
11
+ oct: string;
12
+ nov: string;
13
+ dec: string;
14
+ }
@@ -0,0 +1,9 @@
1
+ export interface WeekDays {
2
+ sun: string;
3
+ mon: string;
4
+ tue: string;
5
+ wed: string;
6
+ thu: string;
7
+ fri: string;
8
+ sat: string;
9
+ }
@@ -0,0 +1,63 @@
1
+ import React, { ComponentPropsWithRef, ForwardRefRenderFunction, ReactNode } from 'react';
2
+ import { BooleanProp } from '../../../models';
3
+ import './anchor.scss';
4
+ /**
5
+ * The available variants of the anchors. This variants will define the background and border color of the anchors.
6
+ */
7
+ export type AnchorVariant = 'primary' | 'neutral' | 'white' | 'success' | 'warning' | 'danger';
8
+ /**
9
+ * The available anchor appearances. Defines the anchor shape.
10
+ */
11
+ export type AnchorAppearance = 'link' | 'text';
12
+ export interface AnchorProps extends ComponentPropsWithRef<'a'> {
13
+ /**
14
+ * The anchor appearance. Define the anchor Shape.
15
+ */
16
+ appearance?: AnchorAppearance;
17
+ /**
18
+ * The variant of the anchor. This variants will define the background and border color of the given Anchor
19
+ */
20
+ variant?: AnchorVariant;
21
+ /**
22
+ * Defines if the anchor should be fluid
23
+ */
24
+ fullWidth?: BooleanProp;
25
+ /**
26
+ * Defines if the anchor uses an icon.
27
+ */
28
+ hasIcon?: BooleanProp;
29
+ /**
30
+ * Defines if children content it is to be rendered.
31
+ */
32
+ iconOnly?: BooleanProp;
33
+ /**
34
+ * Defines the name of the leading icon to use.
35
+ */
36
+ leadingIcon?: string;
37
+ /**
38
+ * Defines the name of the leading icon to be displayed on mouse hover. If none specified, it will the appropriate variant of the icon.
39
+ */
40
+ leadingIconHover?: string;
41
+ /**
42
+ * Alternative text for the leading icon.
43
+ */
44
+ leadingIconAltText?: string;
45
+ /**
46
+ * Defines the name of the trailing icon to use.
47
+ */
48
+ trailingIcon?: string;
49
+ /**
50
+ * Defines the name of the trailing icon to be displayed on mouse hover. If none specified, it will the appropriate variant of the icon.
51
+ */
52
+ trailingIconHover?: string;
53
+ /**
54
+ * Alternative text for the trailing icon.
55
+ */
56
+ trailingIconAltText?: string;
57
+ /**
58
+ * Children content.
59
+ */
60
+ children?: ReactNode;
61
+ }
62
+ export declare const InnerAnchor: ForwardRefRenderFunction<HTMLAnchorElement, AnchorProps>;
63
+ export declare const Anchor: React.ForwardRefExoticComponent<Omit<AnchorProps, "ref"> & React.RefAttributes<HTMLAnchorElement>>;
@@ -0,0 +1,2 @@
1
+ export { Anchor } from './anchor';
2
+ export type { AnchorAppearance, AnchorProps, AnchorVariant } from './anchor';
@@ -0,0 +1,57 @@
1
+ import { ComponentPropsWithoutRef, FC } from 'react';
2
+ import { BooleanProp } from '../../../models';
3
+ import { IconName } from '../icon';
4
+ import './avatar.scss';
5
+ /**
6
+ * The available types of the avatar. This types will define the appearance of the avatar image.
7
+ */
8
+ export type AvatarType = 'image' | 'icon' | 'initials';
9
+ /**
10
+ * The available badge positions. The badge position defines the location of the badge on the avatar.
11
+ */
12
+ export type AvatarBadgePosition = 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right';
13
+ /**
14
+ * The available variants of the badge. This variants will define the color of the avatar badge.
15
+ */
16
+ export type AvatarBadgeVariant = 'primary' | 'secondary' | 'danger' | 'success' | 'warning' | 'neutral' | 'white';
17
+ export interface AvatarProps extends ComponentPropsWithoutRef<'div'> {
18
+ /**
19
+ * The available avatar types. Defines the appearance of the avatar.
20
+ */
21
+ avatarType?: AvatarType;
22
+ /**
23
+ * Avatar source to be used. Depending on the selected avatar type it can be an external image url or an icon name that exists in AgoraDS
24
+ * or first 2 letters of the given name.
25
+ */
26
+ srcPath?: IconName | string;
27
+ /**
28
+ * Avatar information. Information related to the avatar, such as user name or other.
29
+ */
30
+ information?: string;
31
+ /**
32
+ * Avatar alt personalized description of the avatar. The text appears if the avatar fails to load on the page.
33
+ */
34
+ alt: string;
35
+ /**
36
+ * The flag to place a badge of different colors on the avatar.
37
+ */
38
+ hasBadge?: boolean;
39
+ /**
40
+ * The available badge positions. The badge position defines the location of the badge on the avatar.
41
+ */
42
+ badgePosition?: AvatarBadgePosition;
43
+ /**
44
+ * The variant of the badge. This variants will define the color of the avatar badge.
45
+ */
46
+ badgeVariant?: AvatarBadgeVariant;
47
+ /**
48
+ * The flag to make the avatar interactive. When it is interactive,
49
+ * avatar can be focused by clicking on it, or pressing SPACE or ENTER.
50
+ */
51
+ interactive?: BooleanProp;
52
+ /**
53
+ * Callback to run whenever the avatar is activated.
54
+ */
55
+ onActivate?: () => void;
56
+ }
57
+ export declare const Avatar: FC<AvatarProps>;
@@ -0,0 +1,2 @@
1
+ export { Avatar } from './avatar';
2
+ export type { AvatarBadgePosition, AvatarBadgeVariant, AvatarProps, AvatarType } from './avatar';
@@ -0,0 +1,9 @@
1
+ import { ComponentPropsWithoutRef, FC, ReactNode } from 'react';
2
+ export interface InteractiveAvatarProps extends ComponentPropsWithoutRef<'div'> {
3
+ alt: string;
4
+ className?: string;
5
+ onActivate?: () => void;
6
+ interactive?: boolean;
7
+ children?: ReactNode;
8
+ }
9
+ export declare const InteractiveAvatar: FC<InteractiveAvatarProps>;
@@ -0,0 +1,8 @@
1
+ import { ComponentPropsWithoutRef, FC, ReactNode } from 'react';
2
+ export interface NonInteractiveAvatarProps extends ComponentPropsWithoutRef<'div'> {
3
+ alt: string;
4
+ className?: string;
5
+ interactive?: boolean;
6
+ children?: ReactNode;
7
+ }
8
+ export declare const NonInteractiveAvatar: FC<NonInteractiveAvatarProps>;
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ import { FC, HTMLProps } from 'react';
2
2
  export interface BreadcrumbLink {
3
3
  /**
4
4
  * The Breadcrumb page link url.
@@ -9,7 +9,7 @@ export interface BreadcrumbLink {
9
9
  */
10
10
  label: string;
11
11
  }
12
- export interface BreadcrumbProps extends HTMLDivElement {
12
+ export interface BreadcrumbProps extends HTMLProps<HTMLDivElement> {
13
13
  /**
14
14
  * The links that make up the breadcrumb in hierarchical order.
15
15
  */
@@ -19,4 +19,4 @@ export interface BreadcrumbProps extends HTMLDivElement {
19
19
  */
20
20
  darkMode?: boolean;
21
21
  }
22
- export declare const Breadcrumb: React.ForwardRefExoticComponent<BreadcrumbProps & React.RefAttributes<HTMLDivElement>>;
22
+ export declare const Breadcrumb: FC<BreadcrumbProps>;
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ import { FC } from 'react';
2
2
  import { BreadcrumbProps } from '../breadcrumb';
3
3
  import './breadcrumb-desktop.scss';
4
- export declare const BreadcrumbDesktop: React.ForwardRefExoticComponent<BreadcrumbProps & React.RefAttributes<HTMLDivElement>>;
4
+ export declare const BreadcrumbDesktop: FC<BreadcrumbProps>;
@@ -1,5 +1,4 @@
1
- import React, { ForwardRefRenderFunction } from 'react';
1
+ import { FC } from 'react';
2
2
  import { BreadcrumbProps } from '../breadcrumb';
3
3
  import './breadcrumb-mobile.scss';
4
- export declare const InnerBreadcrumbMobile: ForwardRefRenderFunction<HTMLDivElement, BreadcrumbProps>;
5
- export declare const BreadcrumbMobile: React.ForwardRefExoticComponent<BreadcrumbProps & React.RefAttributes<HTMLDivElement>>;
4
+ export declare const BreadcrumbMobile: FC<BreadcrumbProps>;
@@ -58,6 +58,10 @@ export interface ButtonProps extends ComponentPropsWithRef<'button'> {
58
58
  * Children content.
59
59
  */
60
60
  children?: ReactNode;
61
+ /**
62
+ * Defines if the button is selected.
63
+ */
64
+ selected?: BooleanProp;
61
65
  }
62
66
  export declare const InnerButton: ForwardRefRenderFunction<HTMLButtonElement, ButtonProps>;
63
67
  export declare const Button: React.ForwardRefExoticComponent<Omit<ButtonProps, "ref"> & React.RefAttributes<HTMLButtonElement>>;
@@ -0,0 +1,32 @@
1
+ import React, { ComponentPropsWithRef, ForwardRefRenderFunction, ReactNode } from 'react';
2
+ import './drawer.scss';
3
+ import { BooleanProp } from '../../../models';
4
+ export type DrawerPosition = 'left' | 'right' | 'top' | 'bottom';
5
+ export interface DrawerRef {
6
+ current: HTMLDialogElement | null;
7
+ openDrawer: () => void;
8
+ closeDrawer: () => void;
9
+ }
10
+ export interface DrawerProps extends ComponentPropsWithRef<'dialog'> {
11
+ /**
12
+ * Children content.
13
+ */
14
+ children?: ReactNode;
15
+ /**
16
+ * Dismiss on escape.
17
+ */
18
+ dismissOnEscape?: BooleanProp;
19
+ /**
20
+ * Dismiss on back drop click.
21
+ */
22
+ dismissOnBackdropClick?: BooleanProp;
23
+ /**
24
+ * Position the drawer.
25
+ */
26
+ position?: DrawerPosition;
27
+ }
28
+ /**
29
+ * Return icon default animation class drawer icon name and default position.
30
+ */
31
+ export declare const InnerDrawer: ForwardRefRenderFunction<HTMLDialogElement | DrawerRef, DrawerProps>;
32
+ export declare const Drawer: React.ForwardRefExoticComponent<Omit<DrawerProps, "ref"> & React.RefAttributes<HTMLDialogElement | DrawerRef>>;
@@ -0,0 +1,2 @@
1
+ export { Drawer } from './drawer';
2
+ export type { DrawerProps, DrawerPosition, DrawerRef } from './drawer';
@@ -0,0 +1,15 @@
1
+ import React, { ComponentPropsWithRef, ForwardRefRenderFunction, HTMLProps } from 'react';
2
+ import './glossary-letters.scss';
3
+ export type LetterStatus = 'default' | 'disabled';
4
+ export interface GlossaryLetter extends HTMLProps<HTMLAnchorElement> {
5
+ letter: string;
6
+ status: LetterStatus;
7
+ }
8
+ export interface GlossaryLettersProps extends ComponentPropsWithRef<'nav'> {
9
+ /**
10
+ * Letters Array
11
+ */
12
+ letters?: GlossaryLetter[];
13
+ }
14
+ export declare const InnerGlossaryLetters: ForwardRefRenderFunction<HTMLDivElement, GlossaryLettersProps>;
15
+ export declare const GlossaryLetters: React.ForwardRefExoticComponent<Omit<GlossaryLettersProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
@@ -0,0 +1,4 @@
1
+ export { GlossaryLetters } from './glossary-letters';
2
+ export type { GlossaryLettersProps } from './glossary-letters';
3
+ export type { LetterStatus } from './glossary-letters';
4
+ export type { GlossaryLetter } from './glossary-letters';
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ declare const _default: (props: React.SVGProps<SVGSVGElement> | any) => JSX.Element;
3
+ export default _default;
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ declare const _default: (props: React.SVGProps<SVGSVGElement> | any) => JSX.Element;
3
+ export default _default;
@@ -0,0 +1,2 @@
1
+ export { InputRange } from './input-range';
2
+ export type { RangeType, RangeProps, RangeOrientation } from './input-range';
@@ -0,0 +1,48 @@
1
+ import React, { ComponentPropsWithRef } from 'react';
2
+ import { BooleanProp } from '../../../models';
3
+ import './input-range.scss';
4
+ export type RangeOrientation = 'horizontal' | 'vertical';
5
+ export type RangeType = 'single' | 'double';
6
+ export interface RangeProps extends Omit<ComponentPropsWithRef<'input'>, 'value' | 'onChange'> {
7
+ /**
8
+ * Input label text.
9
+ */
10
+ label?: string;
11
+ /**
12
+ * Decides if display/hide label.
13
+ */
14
+ hideLabel?: BooleanProp;
15
+ /**
16
+ * The orientation of the range (horizontal or vertical).
17
+ */
18
+ orientation?: RangeOrientation;
19
+ /**
20
+ * The type of the range (single or double).
21
+ */
22
+ type?: RangeType;
23
+ /**
24
+ * If `true`, the range will be disabled.
25
+ */
26
+ disabled?: boolean;
27
+ /**
28
+ * The value(s) of the range.
29
+ */
30
+ value: number[];
31
+ /**
32
+ * The minimum value of the range.
33
+ */
34
+ min: number | string;
35
+ /**
36
+ * The maximum value of the range.
37
+ */
38
+ max: number | string;
39
+ /**
40
+ * Custom onChange event handler for double range type.
41
+ * Will be called with an array of values.
42
+ */
43
+ onChange?: (values: number[]) => void;
44
+ }
45
+ export interface InputRangeRef {
46
+ current: (HTMLDivElement | HTMLInputElement)[];
47
+ }
48
+ export declare const InputRange: React.ForwardRefExoticComponent<Omit<RangeProps, "ref"> & React.RefAttributes<HTMLDivElement | HTMLInputElement | (HTMLInputElement | null)[]>>;
@@ -0,0 +1,2 @@
1
+ export { List } from './list';
2
+ export type { ListProps, ListType } from './list';
@@ -0,0 +1,18 @@
1
+ import { ComponentPropsWithoutRef, FC, ReactElement } from 'react';
2
+ import './list.scss';
3
+ export type ListType = 'default' | 'unordered' | 'ordered';
4
+ export interface ListProps extends ComponentPropsWithoutRef<'ul'> {
5
+ /**
6
+ * Type list.
7
+ */
8
+ type?: ListType;
9
+ /**
10
+ * Children content.
11
+ */
12
+ children?: ReactElement<HTMLLIElement> | Array<ReactElement<HTMLLIElement>>;
13
+ /**
14
+ * Array the item.
15
+ */
16
+ items?: Array<ReactElement<HTMLLIElement>>;
17
+ }
18
+ export declare const List: FC<ListProps>;
@@ -0,0 +1,5 @@
1
+ export { Modal } from './modal';
2
+ export { ModalProvider, useModalContext } from './modal-context';
3
+ export type { ModalProviderProps } from './modal-context';
4
+ export type { ModalProps } from './modal';
5
+ export type { ModalContextProps } from './modal-context';
@@ -0,0 +1,17 @@
1
+ import { FC, ReactNode } from 'react';
2
+ import { ModalProps } from './modal';
3
+ export interface ModalContextProps {
4
+ isOpen?: boolean;
5
+ showModal: (params: ReactNode, modalProps: ModalProps) => void;
6
+ closeModal: () => void;
7
+ modalContent?: ReactNode | null;
8
+ }
9
+ export interface ModalProviderProps {
10
+ /**
11
+ * Children content.
12
+ */
13
+ children: ReactNode;
14
+ }
15
+ declare const ModalProvider: FC<ModalProviderProps>;
16
+ declare const useModalContext: () => ModalContextProps;
17
+ export { useModalContext, ModalProvider };
@@ -0,0 +1,13 @@
1
+ import { ComponentPropsWithoutRef, FC, ReactNode } from 'react';
2
+ import './modal.scss';
3
+ export interface ModalProps extends ComponentPropsWithoutRef<'dialog'> {
4
+ /**
5
+ * Title text for the close button.
6
+ */
7
+ closeText: string;
8
+ /**
9
+ * Children content.
10
+ */
11
+ children: ReactNode;
12
+ }
13
+ export declare const Modal: FC<ModalProps>;
@@ -0,0 +1,10 @@
1
+ import { ReactNode } from 'react';
2
+ import { ModalProps } from './modal';
3
+ declare const useModal: () => {
4
+ showModal: (params: ReactNode, props: ModalProps) => void;
5
+ closeModal: () => void;
6
+ isOpen: boolean;
7
+ modalContent: ReactNode;
8
+ modalProps: ModalProps;
9
+ };
10
+ export default useModal;
@@ -1,13 +1,18 @@
1
1
  import React, { ComponentPropsWithRef, ForwardRefRenderFunction, ReactNode } from 'react';
2
+ import { BooleanProp } from '../../..';
2
3
  import './pill.scss';
3
4
  /**
4
5
  * The available variants of the pill. This variants will define the background and border color of the pill.
5
6
  */
6
- export type PillVariant = 'primary' | 'secondary' | 'danger' | 'warning' | 'success' | 'informative';
7
+ export type PillVariant = 'primary' | 'secondary' | 'secondary-light' | 'neutral' | 'informative' | 'success' | 'warning' | 'danger';
7
8
  /**
8
9
  * The available pill appearances. Defines the pill shape.
9
10
  */
10
11
  export type PillAppearance = 'solid' | 'outline';
12
+ /**
13
+ * The available pill size. Defines the pill size.
14
+ */
15
+ export type PillSize = 'default' | 'large';
11
16
  export interface PillProps extends ComponentPropsWithRef<'div'> {
12
17
  /**
13
18
  * The pill appearance. Define the pill Shape.
@@ -21,6 +26,14 @@ export interface PillProps extends ComponentPropsWithRef<'div'> {
21
26
  * Children content.
22
27
  */
23
28
  children?: ReactNode;
29
+ /**
30
+ * Pill or Circular pill style
31
+ */
32
+ circular?: BooleanProp;
33
+ /**
34
+ * Size of pill
35
+ */
36
+ size?: PillSize;
24
37
  }
25
38
  export declare const InnerPill: ForwardRefRenderFunction<HTMLDivElement, PillProps>;
26
39
  export declare const Pill: React.ForwardRefExoticComponent<Omit<PillProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
@@ -14,11 +14,11 @@ export interface ScribblesProps extends SuperScribblesProps {
14
14
  /**
15
15
  * Callback to run when scribble is loaded.
16
16
  */
17
- onIconLoad?: () => void;
17
+ onScribblesLoad?: () => void;
18
18
  /**
19
19
  * Callback to run when scribble fails to load.
20
20
  */
21
- onIconError?: () => void;
21
+ onScribblesError?: () => void;
22
22
  }
23
23
  export declare const Scribbles: FC<ScribblesProps>;
24
24
  export {};
@@ -0,0 +1,2 @@
1
+ export { StepList } from './step-list';
2
+ export type { StepListProps } from './step-list';
@@ -0,0 +1,13 @@
1
+ import { ComponentPropsWithoutRef, FC, ReactElement } from 'react';
2
+ import './step-list.scss';
3
+ export interface StepListProps extends ComponentPropsWithoutRef<'ol'> {
4
+ /**
5
+ * Children content.
6
+ */
7
+ children?: ReactElement<HTMLLIElement> | Array<ReactElement<HTMLLIElement>>;
8
+ /**
9
+ * Array the item.
10
+ */
11
+ items?: Array<ReactElement<HTMLLIElement>>;
12
+ }
13
+ export declare const StepList: FC<StepListProps>;
@@ -0,0 +1,2 @@
1
+ export { Switch } from './switch';
2
+ export type { SwitchProps, SwitchPosition } from './switch';
@@ -0,0 +1,28 @@
1
+ import React, { ForwardRefRenderFunction } from 'react';
2
+ import { BooleanProp } from '../../../models';
3
+ import './switch.scss';
4
+ export type SwitchPosition = 'start' | 'center' | 'space-between' | 'space-around' | 'space-evenly';
5
+ export interface SwitchProps extends React.ComponentPropsWithRef<'input'> {
6
+ /**
7
+ * Input label text.
8
+ */
9
+ label?: string;
10
+ /**
11
+ * Show or hide input label.
12
+ */
13
+ hideLabel?: BooleanProp;
14
+ /**
15
+ * Whether the switch is disabled.
16
+ */
17
+ reverse?: boolean;
18
+ /**
19
+ * The position of the switch.
20
+ */
21
+ position?: SwitchPosition;
22
+ /**
23
+ * Defines if the Switch should be fluid
24
+ */
25
+ fullWidth?: boolean;
26
+ }
27
+ export declare const InnerSwitch: ForwardRefRenderFunction<HTMLInputElement, SwitchProps>;
28
+ export declare const Switch: React.ForwardRefExoticComponent<Omit<SwitchProps, "ref"> & React.RefAttributes<HTMLInputElement>>;
@@ -0,0 +1,8 @@
1
+ export { TabBody } from './tab-body/tab-body';
2
+ export { TabHeader } from './tab-header/tab-header';
3
+ export { Tab } from './tab/tab';
4
+ export { Tabs } from './tabs';
5
+ export type { TabProps } from './tab/tab';
6
+ export type { TabsProps } from './tabs';
7
+ export type { TabHeaderProps } from './tab-header/tab-header';
8
+ export type { TabBodyProps } from './tab-body/tab-body';
@@ -0,0 +1,15 @@
1
+ import { ComponentPropsWithoutRef, FC, ReactElement } from 'react';
2
+ import { BooleanProp } from '../../../../models';
3
+ import { TabBodyProps } from '../tab-body/tab-body';
4
+ import { TabHeaderProps } from '../tab-header/tab-header';
5
+ export interface TabProps extends ComponentPropsWithoutRef<'div'> {
6
+ /**
7
+ * Children content.
8
+ */
9
+ children?: Array<ReactElement<TabHeaderProps> | ReactElement<TabBodyProps>>;
10
+ /**
11
+ * Active tab.
12
+ */
13
+ active?: BooleanProp;
14
+ }
15
+ export declare const Tab: FC<TabProps>;
@@ -0,0 +1,9 @@
1
+ import { ComponentPropsWithoutRef, FC, ReactNode } from 'react';
2
+ import './tab-body.scss';
3
+ export interface TabBodyProps extends ComponentPropsWithoutRef<'div'> {
4
+ /**
5
+ * Children content.
6
+ */
7
+ children?: ReactNode;
8
+ }
9
+ export declare const TabBody: FC<TabBodyProps>;
@@ -0,0 +1,9 @@
1
+ import { ComponentPropsWithoutRef, FC, ReactNode } from 'react';
2
+ import './tab-header.scss';
3
+ export interface TabHeaderProps extends ComponentPropsWithoutRef<'div'> {
4
+ /**
5
+ * Children content.
6
+ */
7
+ children?: ReactNode;
8
+ }
9
+ export declare const TabHeader: FC<TabHeaderProps>;
@@ -0,0 +1,19 @@
1
+ import { ComponentPropsWithoutRef, FC, ReactElement } from 'react';
2
+ import { BooleanProp } from '../../../models';
3
+ import { TabProps } from './tab/tab';
4
+ import './tabs.scss';
5
+ export interface TabsProps extends ComponentPropsWithoutRef<'div'> {
6
+ /**
7
+ * Children content.
8
+ */
9
+ children: ReactElement<TabProps> | Array<ReactElement<TabProps>>;
10
+ /**
11
+ * Defines if the tab should be fluid.
12
+ */
13
+ fullWidth?: BooleanProp;
14
+ /**
15
+ * Automatic activation.
16
+ */
17
+ automaticActivation?: BooleanProp;
18
+ }
19
+ export declare const Tabs: FC<TabsProps>;
@@ -0,0 +1,4 @@
1
+ export { Toast } from './toast';
2
+ export type { ToastProps, ToastType } from './toast';
3
+ export { ToastProvider, ToastContext, useToastContext } from './toast-provider';
4
+ export type { ToastProviderProps, ToastContextProps, ToastPositions } from './toast-provider';
@@ -0,0 +1,16 @@
1
+ import React, { FC, ReactNode } from 'react';
2
+ import { ToastProps } from './toast';
3
+ import './toast.scss';
4
+ export interface ToastContextProps {
5
+ showToast: (data: ToastProps, duration?: number) => void;
6
+ removeToast: (data: ToastProps) => void;
7
+ }
8
+ export declare const ToastContext: React.Context<ToastContextProps>;
9
+ declare const useToastContext: () => ToastContextProps;
10
+ export type ToastPositions = 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right';
11
+ export interface ToastProviderProps {
12
+ children?: ReactNode;
13
+ position?: ToastPositions;
14
+ }
15
+ declare const ToastProvider: FC<ToastProviderProps>;
16
+ export { ToastProvider, useToastContext };