@coorpacademy/components 11.2.9 → 11.2.11

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 (215) hide show
  1. package/es/atom/clue/index.d.ts +1 -1
  2. package/es/atom/lottie-wrapper/index.d.ts.map +1 -1
  3. package/es/atom/lottie-wrapper/index.js +9 -3
  4. package/es/atom/lottie-wrapper/index.js.map +1 -1
  5. package/es/atom/lottie-wrapper/prop-types.d.ts +2 -2
  6. package/es/atom/lottie-wrapper/prop-types.d.ts.map +1 -1
  7. package/es/atom/lottie-wrapper/prop-types.js +1 -1
  8. package/es/atom/lottie-wrapper/prop-types.js.map +1 -1
  9. package/es/atom/promo-code/index.d.ts +1 -1
  10. package/es/atom/provider/index.d.ts +1 -1
  11. package/es/atom/provider/index.js +1 -1
  12. package/es/atom/provider/index.js.map +1 -1
  13. package/es/atom/review-presentation/index.d.ts.map +1 -1
  14. package/es/atom/review-presentation/index.js +9 -5
  15. package/es/atom/review-presentation/index.js.map +1 -1
  16. package/es/atom/review-presentation/prop-types.d.ts +8 -0
  17. package/es/atom/review-presentation/prop-types.d.ts.map +1 -1
  18. package/es/atom/review-presentation/prop-types.js +2 -1
  19. package/es/atom/review-presentation/prop-types.js.map +1 -1
  20. package/es/atom/select/index.d.ts +16 -17
  21. package/es/atom/select/index.d.ts.map +1 -1
  22. package/es/atom/select/index.js +7 -6
  23. package/es/atom/select/index.js.map +1 -1
  24. package/es/atom/tab-content/index.d.ts +1 -1
  25. package/es/molecule/answer/index.d.ts.map +1 -1
  26. package/es/molecule/answer/index.js +9 -1
  27. package/es/molecule/answer/index.js.map +1 -1
  28. package/es/molecule/battle-request/index.d.ts +1 -1
  29. package/es/molecule/brand-create-form/index.d.ts +1 -1
  30. package/es/molecule/brand-form-group/index.d.ts +2 -2
  31. package/es/molecule/card-with-button/index.d.ts +1 -1
  32. package/es/molecule/cookie-banner/index.d.ts +1 -1
  33. package/es/molecule/dashboard/cards-list/index.d.ts +1 -1
  34. package/es/molecule/discipline-partners/index.d.ts +1 -1
  35. package/es/molecule/external-content-button/index.d.ts +1 -1
  36. package/es/molecule/filters/index.d.ts +1 -1
  37. package/es/molecule/forum/forum-comment/index.d.ts +1 -1
  38. package/es/molecule/forum/forum-post/index.d.ts +1 -1
  39. package/es/molecule/payment-form/index.d.ts +1 -1
  40. package/es/molecule/pdf/index.d.ts +1 -1
  41. package/es/molecule/product-card/index.d.ts +1 -1
  42. package/es/molecule/questions/drop-down/index.d.ts +6 -5
  43. package/es/molecule/questions/drop-down/index.js +5 -2
  44. package/es/molecule/questions/drop-down/index.js.map +1 -1
  45. package/es/molecule/questions/template/index.d.ts +3 -1
  46. package/es/molecule/review-card-congrats/prop-types.d.ts +1 -1
  47. package/es/molecule/scope-content/index.d.ts +1 -1
  48. package/es/molecule/setup-section/index.d.ts +1 -1
  49. package/es/molecule/setup-slide/index.d.ts +1 -1
  50. package/es/molecule/setup-slider/index.d.ts +1 -1
  51. package/es/molecule/subscription-freemium/index.d.ts +1 -1
  52. package/es/molecule/subscription-premium/index.d.ts +1 -1
  53. package/es/molecule/table/index.d.ts +1 -1
  54. package/es/molecule/unsubscribe/index.d.ts +1 -1
  55. package/es/organism/brand-analytics/index.d.ts +1 -1
  56. package/es/organism/brand-form/index.d.ts +2 -2
  57. package/es/organism/cart/index.d.ts +1 -1
  58. package/es/organism/mooc-header/index.d.ts +1 -1
  59. package/es/organism/mooc-header/index.js +1 -1
  60. package/es/organism/mooc-header/index.js.map +1 -1
  61. package/es/organism/review-congrats/index.d.ts.map +1 -1
  62. package/es/organism/review-congrats/index.js +8 -6
  63. package/es/organism/review-congrats/index.js.map +1 -1
  64. package/es/organism/review-congrats/prop-types.d.ts +3 -3
  65. package/es/organism/settings/index.d.ts +1 -1
  66. package/es/organism/user-preferences/index.d.ts +1 -0
  67. package/es/organism/user-preferences/index.d.ts.map +1 -1
  68. package/es/organism/user-preferences/index.js +11 -6
  69. package/es/organism/user-preferences/index.js.map +1 -1
  70. package/es/organism/wizard-contents/index.d.ts +2 -2
  71. package/es/template/activity/index.d.ts +2 -0
  72. package/es/template/activity/index.d.ts.map +1 -1
  73. package/es/template/activity/index.js +4 -1
  74. package/es/template/activity/index.js.map +1 -1
  75. package/es/template/activity/progression-item.d.ts +1 -0
  76. package/es/template/activity/progression-item.d.ts.map +1 -1
  77. package/es/template/activity/progression-item.js +5 -2
  78. package/es/template/activity/progression-item.js.map +1 -1
  79. package/es/template/app-player/player/slides/index.d.ts +2 -2
  80. package/es/template/app-player/player/slides/index.js +1 -1
  81. package/es/template/app-player/player/slides/index.js.map +1 -1
  82. package/es/template/app-review/index.d.ts +4 -47
  83. package/es/template/app-review/index.d.ts.map +1 -1
  84. package/es/template/app-review/index.js +0 -10
  85. package/es/template/app-review/index.js.map +1 -1
  86. package/es/template/app-review/index.native.d.ts.map +1 -1
  87. package/es/template/app-review/index.native.js +0 -8
  88. package/es/template/app-review/index.native.js.map +1 -1
  89. package/es/template/app-review/player/prop-types.d.ts +3 -3
  90. package/es/template/app-review/prop-types.d.ts +4 -51
  91. package/es/template/app-review/prop-types.d.ts.map +1 -1
  92. package/es/template/app-review/prop-types.js +1 -5
  93. package/es/template/app-review/prop-types.js.map +1 -1
  94. package/es/template/app-review/template-context.d.ts +1 -0
  95. package/es/template/app-review/template-context.d.ts.map +1 -1
  96. package/es/template/app-review/template-context.js +2 -1
  97. package/es/template/app-review/template-context.js.map +1 -1
  98. package/es/template/back-office/brand-update/index.d.ts +4 -4
  99. package/es/template/battle-requests/index.d.ts +1 -1
  100. package/es/template/common/authors/index.d.ts +1 -1
  101. package/es/template/common/search-page/index.d.ts +1 -1
  102. package/es/template/review-dashboard-skills/index.d.ts +4 -0
  103. package/es/util/render-with-context.d.ts +1 -4
  104. package/es/util/render-with-context.d.ts.map +1 -1
  105. package/es/util/render-with-context.js +6 -6
  106. package/es/util/render-with-context.js.map +1 -1
  107. package/lib/atom/clue/index.d.ts +1 -1
  108. package/lib/atom/lottie-wrapper/index.d.ts.map +1 -1
  109. package/lib/atom/lottie-wrapper/index.js +9 -3
  110. package/lib/atom/lottie-wrapper/index.js.map +1 -1
  111. package/lib/atom/lottie-wrapper/prop-types.d.ts +2 -2
  112. package/lib/atom/lottie-wrapper/prop-types.d.ts.map +1 -1
  113. package/lib/atom/lottie-wrapper/prop-types.js +1 -1
  114. package/lib/atom/lottie-wrapper/prop-types.js.map +1 -1
  115. package/lib/atom/promo-code/index.d.ts +1 -1
  116. package/lib/atom/provider/index.d.ts +1 -1
  117. package/lib/atom/provider/index.js +1 -1
  118. package/lib/atom/provider/index.js.map +1 -1
  119. package/lib/atom/review-presentation/index.d.ts.map +1 -1
  120. package/lib/atom/review-presentation/index.js +9 -5
  121. package/lib/atom/review-presentation/index.js.map +1 -1
  122. package/lib/atom/review-presentation/prop-types.d.ts +8 -0
  123. package/lib/atom/review-presentation/prop-types.d.ts.map +1 -1
  124. package/lib/atom/review-presentation/prop-types.js +2 -1
  125. package/lib/atom/review-presentation/prop-types.js.map +1 -1
  126. package/lib/atom/select/index.d.ts +16 -17
  127. package/lib/atom/select/index.d.ts.map +1 -1
  128. package/lib/atom/select/index.js +7 -6
  129. package/lib/atom/select/index.js.map +1 -1
  130. package/lib/atom/tab-content/index.d.ts +1 -1
  131. package/lib/molecule/answer/index.d.ts.map +1 -1
  132. package/lib/molecule/answer/index.js +10 -1
  133. package/lib/molecule/answer/index.js.map +1 -1
  134. package/lib/molecule/battle-request/index.d.ts +1 -1
  135. package/lib/molecule/brand-create-form/index.d.ts +1 -1
  136. package/lib/molecule/brand-form-group/index.d.ts +2 -2
  137. package/lib/molecule/card-with-button/index.d.ts +1 -1
  138. package/lib/molecule/cookie-banner/index.d.ts +1 -1
  139. package/lib/molecule/dashboard/cards-list/index.d.ts +1 -1
  140. package/lib/molecule/discipline-partners/index.d.ts +1 -1
  141. package/lib/molecule/external-content-button/index.d.ts +1 -1
  142. package/lib/molecule/filters/index.d.ts +1 -1
  143. package/lib/molecule/forum/forum-comment/index.d.ts +1 -1
  144. package/lib/molecule/forum/forum-post/index.d.ts +1 -1
  145. package/lib/molecule/payment-form/index.d.ts +1 -1
  146. package/lib/molecule/pdf/index.d.ts +1 -1
  147. package/lib/molecule/product-card/index.d.ts +1 -1
  148. package/lib/molecule/questions/drop-down/index.d.ts +6 -5
  149. package/lib/molecule/questions/drop-down/index.js +5 -2
  150. package/lib/molecule/questions/drop-down/index.js.map +1 -1
  151. package/lib/molecule/questions/template/index.d.ts +3 -1
  152. package/lib/molecule/review-card-congrats/prop-types.d.ts +1 -1
  153. package/lib/molecule/scope-content/index.d.ts +1 -1
  154. package/lib/molecule/setup-section/index.d.ts +1 -1
  155. package/lib/molecule/setup-slide/index.d.ts +1 -1
  156. package/lib/molecule/setup-slider/index.d.ts +1 -1
  157. package/lib/molecule/subscription-freemium/index.d.ts +1 -1
  158. package/lib/molecule/subscription-premium/index.d.ts +1 -1
  159. package/lib/molecule/table/index.d.ts +1 -1
  160. package/lib/molecule/unsubscribe/index.d.ts +1 -1
  161. package/lib/organism/brand-analytics/index.d.ts +1 -1
  162. package/lib/organism/brand-form/index.d.ts +2 -2
  163. package/lib/organism/cart/index.d.ts +1 -1
  164. package/lib/organism/mooc-header/index.d.ts +1 -1
  165. package/lib/organism/mooc-header/index.js +1 -1
  166. package/lib/organism/mooc-header/index.js.map +1 -1
  167. package/lib/organism/review-congrats/index.d.ts.map +1 -1
  168. package/lib/organism/review-congrats/index.js +3 -1
  169. package/lib/organism/review-congrats/index.js.map +1 -1
  170. package/lib/organism/review-congrats/prop-types.d.ts +3 -3
  171. package/lib/organism/settings/index.d.ts +1 -1
  172. package/lib/organism/user-preferences/index.d.ts +1 -0
  173. package/lib/organism/user-preferences/index.d.ts.map +1 -1
  174. package/lib/organism/user-preferences/index.js +11 -6
  175. package/lib/organism/user-preferences/index.js.map +1 -1
  176. package/lib/organism/wizard-contents/index.d.ts +2 -2
  177. package/lib/template/activity/index.d.ts +2 -0
  178. package/lib/template/activity/index.d.ts.map +1 -1
  179. package/lib/template/activity/index.js +4 -1
  180. package/lib/template/activity/index.js.map +1 -1
  181. package/lib/template/activity/progression-item.d.ts +1 -0
  182. package/lib/template/activity/progression-item.d.ts.map +1 -1
  183. package/lib/template/activity/progression-item.js +5 -2
  184. package/lib/template/activity/progression-item.js.map +1 -1
  185. package/lib/template/app-player/player/slides/index.d.ts +2 -2
  186. package/lib/template/app-player/player/slides/index.js +1 -1
  187. package/lib/template/app-player/player/slides/index.js.map +1 -1
  188. package/lib/template/app-review/index.d.ts +4 -47
  189. package/lib/template/app-review/index.d.ts.map +1 -1
  190. package/lib/template/app-review/index.js +0 -12
  191. package/lib/template/app-review/index.js.map +1 -1
  192. package/lib/template/app-review/index.native.d.ts.map +1 -1
  193. package/lib/template/app-review/index.native.js +0 -9
  194. package/lib/template/app-review/index.native.js.map +1 -1
  195. package/lib/template/app-review/player/prop-types.d.ts +3 -3
  196. package/lib/template/app-review/prop-types.d.ts +4 -51
  197. package/lib/template/app-review/prop-types.d.ts.map +1 -1
  198. package/lib/template/app-review/prop-types.js +1 -7
  199. package/lib/template/app-review/prop-types.js.map +1 -1
  200. package/lib/template/app-review/template-context.d.ts +1 -0
  201. package/lib/template/app-review/template-context.d.ts.map +1 -1
  202. package/lib/template/app-review/template-context.js +2 -1
  203. package/lib/template/app-review/template-context.js.map +1 -1
  204. package/lib/template/back-office/brand-update/index.d.ts +4 -4
  205. package/lib/template/battle-requests/index.d.ts +1 -1
  206. package/lib/template/common/authors/index.d.ts +1 -1
  207. package/lib/template/common/search-page/index.d.ts +1 -1
  208. package/lib/template/review-dashboard-skills/index.d.ts +4 -0
  209. package/lib/util/render-with-context.d.ts +1 -4
  210. package/lib/util/render-with-context.d.ts.map +1 -1
  211. package/lib/util/render-with-context.js +6 -6
  212. package/lib/util/render-with-context.js.map +1 -1
  213. package/locales/en/global.json +1 -0
  214. package/package.json +2 -2
  215. package/locales/.mtslconfig.json +0 -1
@@ -213,7 +213,6 @@ declare namespace BrandUpdate {
213
213
  type: PropTypes.Requireable<string>;
214
214
  size: PropTypes.Requireable<string>;
215
215
  title: PropTypes.Requireable<string>;
216
- moreAriaLabel: PropTypes.Requireable<string>;
217
216
  name: PropTypes.Requireable<string>;
218
217
  className: PropTypes.Requireable<string>;
219
218
  borderClassName: PropTypes.Requireable<string>;
@@ -231,6 +230,7 @@ declare namespace BrandUpdate {
231
230
  }> | null | undefined)[]>;
232
231
  modified: PropTypes.Requireable<boolean>;
233
232
  error: PropTypes.Requireable<boolean>;
233
+ 'aria-label': PropTypes.Requireable<string>;
234
234
  }> | PropTypes.InferProps<{
235
235
  type: PropTypes.Requireable<string>;
236
236
  title: PropTypes.Validator<string>;
@@ -317,7 +317,6 @@ declare namespace BrandUpdate {
317
317
  }> | PropTypes.InferProps<{
318
318
  type: PropTypes.Requireable<string>;
319
319
  title: PropTypes.Requireable<string>;
320
- moreAriaLabel: PropTypes.Requireable<string>;
321
320
  name: PropTypes.Requireable<string>;
322
321
  className: PropTypes.Requireable<string>;
323
322
  borderClassName: PropTypes.Requireable<string>;
@@ -335,6 +334,7 @@ declare namespace BrandUpdate {
335
334
  }> | null | undefined)[]>;
336
335
  modified: PropTypes.Requireable<boolean>;
337
336
  error: PropTypes.Requireable<boolean>;
337
+ 'aria-label': PropTypes.Requireable<string>;
338
338
  }> | PropTypes.InferProps<{
339
339
  type: PropTypes.Requireable<string>;
340
340
  title: PropTypes.Validator<string>;
@@ -836,7 +836,6 @@ declare namespace BrandUpdate {
836
836
  type: PropTypes.Requireable<string>;
837
837
  size: PropTypes.Requireable<string>;
838
838
  title: PropTypes.Requireable<string>;
839
- moreAriaLabel: PropTypes.Requireable<string>;
840
839
  name: PropTypes.Requireable<string>;
841
840
  className: PropTypes.Requireable<string>;
842
841
  borderClassName: PropTypes.Requireable<string>;
@@ -854,6 +853,7 @@ declare namespace BrandUpdate {
854
853
  }> | null | undefined)[]>;
855
854
  modified: PropTypes.Requireable<boolean>;
856
855
  error: PropTypes.Requireable<boolean>;
856
+ 'aria-label': PropTypes.Requireable<string>;
857
857
  }> | PropTypes.InferProps<{
858
858
  type: PropTypes.Requireable<string>;
859
859
  title: PropTypes.Validator<string>;
@@ -940,7 +940,6 @@ declare namespace BrandUpdate {
940
940
  }> | PropTypes.InferProps<{
941
941
  type: PropTypes.Requireable<string>;
942
942
  title: PropTypes.Requireable<string>;
943
- moreAriaLabel: PropTypes.Requireable<string>;
944
943
  name: PropTypes.Requireable<string>;
945
944
  className: PropTypes.Requireable<string>;
946
945
  borderClassName: PropTypes.Requireable<string>;
@@ -958,6 +957,7 @@ declare namespace BrandUpdate {
958
957
  }> | null | undefined)[]>;
959
958
  modified: PropTypes.Requireable<boolean>;
960
959
  error: PropTypes.Requireable<boolean>;
960
+ 'aria-label': PropTypes.Requireable<string>;
961
961
  }> | PropTypes.InferProps<{
962
962
  type: PropTypes.Requireable<string>;
963
963
  title: PropTypes.Validator<string>;
@@ -2,7 +2,7 @@ export default Battles;
2
2
  declare function Battles(props: any, context: any): JSX.Element;
3
3
  declare namespace Battles {
4
4
  namespace contextTypes {
5
- const translate: PropTypes.Validator<(...args: any[]) => any>;
5
+ const translate: PropTypes.Requireable<(...args: any[]) => any>;
6
6
  }
7
7
  namespace propTypes {
8
8
  const battles: PropTypes.Validator<(PropTypes.InferProps<{
@@ -19,7 +19,7 @@ declare class Authors extends React.Component<any, any, any> {
19
19
  }> | null | undefined)[]>;
20
20
  };
21
21
  static contextTypes: {
22
- translate: PropTypes.Validator<(...args: any[]) => any>;
22
+ translate: PropTypes.Requireable<(...args: any[]) => any>;
23
23
  skin: PropTypes.Requireable<PropTypes.InferProps<{
24
24
  common: PropTypes.Requireable<{
25
25
  [x: string]: any;
@@ -40,7 +40,6 @@ declare namespace SearchPage {
40
40
  }> | null | undefined)[]>;
41
41
  sorting: PropTypes.Requireable<PropTypes.InferProps<{
42
42
  title: PropTypes.Requireable<string>;
43
- moreAriaLabel: PropTypes.Requireable<string>;
44
43
  name: PropTypes.Requireable<string>;
45
44
  className: PropTypes.Requireable<string>;
46
45
  borderClassName: PropTypes.Requireable<string>;
@@ -58,6 +57,7 @@ declare namespace SearchPage {
58
57
  }> | null | undefined)[]>;
59
58
  modified: PropTypes.Requireable<boolean>;
60
59
  error: PropTypes.Requireable<boolean>;
60
+ 'aria-label': PropTypes.Requireable<string>;
61
61
  }>>;
62
62
  onSearch: PropTypes.Requireable<(...args: any[]) => any>;
63
63
  onToggleFilters: PropTypes.Requireable<(...args: any[]) => any>;
@@ -11,18 +11,22 @@ declare namespace ReviewDashboardSkills {
11
11
  skills: PropTypes.Requireable<PropTypes.InferProps<{
12
12
  text: PropTypes.Requireable<string>;
13
13
  tooltipText: PropTypes.Requireable<string>;
14
+ moreDetailsAreaLabel: PropTypes.Requireable<string>;
14
15
  }>>;
15
16
  questions: PropTypes.Requireable<PropTypes.InferProps<{
16
17
  text: PropTypes.Requireable<string>;
17
18
  tooltipText: PropTypes.Requireable<string>;
19
+ moreDetailsAreaLabel: PropTypes.Requireable<string>;
18
20
  }>>;
19
21
  lifes: PropTypes.Requireable<PropTypes.InferProps<{
20
22
  text: PropTypes.Requireable<string>;
21
23
  tooltipText: PropTypes.Requireable<string>;
24
+ moreDetailsAreaLabel: PropTypes.Requireable<string>;
22
25
  }>>;
23
26
  allright: PropTypes.Requireable<PropTypes.InferProps<{
24
27
  text: PropTypes.Requireable<string>;
25
28
  tooltipText: PropTypes.Requireable<string>;
29
+ moreDetailsAreaLabel: PropTypes.Requireable<string>;
26
30
  }>>;
27
31
  }>>;
28
32
  }>>;
@@ -1,5 +1,2 @@
1
- export function renderWithContext(component: any, { context, ...renderOptions }: {
2
- [x: string]: any;
3
- context: any;
4
- }): import("@testing-library/react").RenderResult<typeof import("@testing-library/dom/types/queries"), HTMLElement, HTMLElement>;
1
+ export function renderWithContext(component: any, options?: {}): import("@testing-library/react").RenderResult<typeof import("@testing-library/dom/types/queries"), HTMLElement, HTMLElement>;
5
2
  //# sourceMappingURL=render-with-context.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"render-with-context.d.ts","sourceRoot":"","sources":["../../src/util/render-with-context.js"],"names":[],"mappings":"AAMO;;;iIAkBN"}
1
+ {"version":3,"file":"render-with-context.d.ts","sourceRoot":"","sources":["../../src/util/render-with-context.js"],"names":[],"mappings":"AAMO,8LAmBN"}
@@ -10,13 +10,13 @@ import PropTypes from 'prop-types';
10
10
  import { render } from '@testing-library/react';
11
11
  import { mockTranslate } from '@coorpacademy/translate';
12
12
  import Provider from '../atom/provider';
13
- export const renderWithContext = (component, _ref) => {
14
- let {
15
- context
16
- } = _ref,
17
- renderOptions = _objectWithoutPropertiesLoose(_ref, _excluded);
13
+ export const renderWithContext = (component, options = {}) => {
14
+ const {
15
+ context = {}
16
+ } = options,
17
+ renderOptions = _objectWithoutPropertiesLoose(options, _excluded); // uses mockTranslate as a default translate function
18
+
18
19
 
19
- // uses mockTranslate as a default translate function
20
20
  const {
21
21
  translate = mockTranslate
22
22
  } = context,
@@ -1 +1 @@
1
- {"version":3,"file":"render-with-context.js","names":["React","PropTypes","render","mockTranslate","Provider","renderWithContext","component","context","renderOptions","translate","rest","wrapper","children","propTypes","node"],"sources":["../../src/util/render-with-context.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport {render} from '@testing-library/react';\nimport {mockTranslate} from '@coorpacademy/translate';\nimport Provider from '../atom/provider';\n\nexport const renderWithContext = (component, {context, ...renderOptions}) => {\n // uses mockTranslate as a default translate function\n const {translate = mockTranslate, ...rest} = context;\n\n const wrapper = ({children}) => (\n <Provider {...rest} translate={translate}>\n {children}\n </Provider>\n );\n\n wrapper.propTypes = {\n children: PropTypes.node\n };\n\n return render(component, {\n ...renderOptions,\n wrapper\n });\n};\n"],"mappings":";;;;;;;AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,OAAOC,SAAP,MAAsB,YAAtB;AACA,SAAQC,MAAR,QAAqB,wBAArB;AACA,SAAQC,aAAR,QAA4B,yBAA5B;AACA,OAAOC,QAAP,MAAqB,kBAArB;AAEA,OAAO,MAAMC,iBAAiB,GAAG,CAACC,SAAD,WAA4C;EAAA,IAAhC;IAACC;EAAD,CAAgC;EAAA,IAAnBC,aAAmB;;EAC3E;EACA,MAAM;IAACC,SAAS,GAAGN;EAAb,IAAuCI,OAA7C;EAAA,MAAqCG,IAArC,iCAA6CH,OAA7C;;EAEA,MAAMI,OAAO,GAAG,CAAC;IAACC;EAAD,CAAD,kBACd,oBAAC,QAAD,eAAcF,IAAd;IAAoB,SAAS,EAAED;EAA/B,IACGG,QADH,CADF;;EAMAD,OAAO,CAACE,SAAR,2CAAoB;IAClBD,QAAQ,EAAEX,SAAS,CAACa;EADF,CAApB;EAIA,OAAOZ,MAAM,CAACI,SAAD,eACRE,aADQ;IAEXG;EAFW,GAAb;AAID,CAlBM"}
1
+ {"version":3,"file":"render-with-context.js","names":["React","PropTypes","render","mockTranslate","Provider","renderWithContext","component","options","context","renderOptions","translate","rest","wrapper","children","propTypes","node"],"sources":["../../src/util/render-with-context.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport {render} from '@testing-library/react';\nimport {mockTranslate} from '@coorpacademy/translate';\nimport Provider from '../atom/provider';\n\nexport const renderWithContext = (component, options = {}) => {\n const {context = {}, ...renderOptions} = options;\n // uses mockTranslate as a default translate function\n const {translate = mockTranslate, ...rest} = context;\n\n const wrapper = ({children}) => (\n <Provider {...rest} translate={translate}>\n {children}\n </Provider>\n );\n\n wrapper.propTypes = {\n children: PropTypes.node\n };\n\n return render(component, {\n ...renderOptions,\n wrapper\n });\n};\n"],"mappings":";;;;;;;AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,OAAOC,SAAP,MAAsB,YAAtB;AACA,SAAQC,MAAR,QAAqB,wBAArB;AACA,SAAQC,aAAR,QAA4B,yBAA5B;AACA,OAAOC,QAAP,MAAqB,kBAArB;AAEA,OAAO,MAAMC,iBAAiB,GAAG,CAACC,SAAD,EAAYC,OAAO,GAAG,EAAtB,KAA6B;EAC5D,MAAM;IAACC,OAAO,GAAG;EAAX,IAAmCD,OAAzC;EAAA,MAAwBE,aAAxB,iCAAyCF,OAAzC,aAD4D,CAE5D;;;EACA,MAAM;IAACG,SAAS,GAAGP;EAAb,IAAuCK,OAA7C;EAAA,MAAqCG,IAArC,iCAA6CH,OAA7C;;EAEA,MAAMI,OAAO,GAAG,CAAC;IAACC;EAAD,CAAD,kBACd,oBAAC,QAAD,eAAcF,IAAd;IAAoB,SAAS,EAAED;EAA/B,IACGG,QADH,CADF;;EAMAD,OAAO,CAACE,SAAR,2CAAoB;IAClBD,QAAQ,EAAEZ,SAAS,CAACc;EADF,CAApB;EAIA,OAAOb,MAAM,CAACI,SAAD,eACRG,aADQ;IAEXG;EAFW,GAAb;AAID,CAnBM"}
@@ -27,7 +27,7 @@ declare class Clue extends React.Component<any, any, any> {
27
27
  [x: string]: any;
28
28
  }>;
29
29
  }>>;
30
- translate: PropTypes.Validator<(...args: any[]) => any>;
30
+ translate: PropTypes.Requireable<(...args: any[]) => any>;
31
31
  };
32
32
  static getDerivedStateFromProps(props: any): {
33
33
  isLoading: false;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/atom/lottie-wrapper/index.js"],"names":[],"mappings":"AAsBO,iMAmCN;;AAED,wDAkHC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/atom/lottie-wrapper/index.js"],"names":[],"mappings":"AAsBO,iMAmCN;;AAED,wDA4HC"}
@@ -132,9 +132,15 @@ const LottieWrapper = props => {
132
132
  /* istanbul ignore next */
133
133
  _lottieWeb.default.destroy(animationItem.name);
134
134
  }, [lottieAnimationClassName, containerRef, hideOnTransparent, loop, animationSrc, _isIE11, animationItem, autoplay]);
135
- return /*#__PURE__*/_react.default.createElement("div", {
135
+ const accessibilityProps = ariaLabel ? {
136
+ 'aria-label': ariaLabel,
137
+ role: 'img'
138
+ } : {
139
+ 'aria-hidden': 'true',
140
+ role: 'presentation'
141
+ };
142
+ return /*#__PURE__*/_react.default.createElement("div", _extends({}, accessibilityProps, {
136
143
  ref: containerRef,
137
- "aria-label": ariaLabel,
138
144
  "data-name": dataName,
139
145
  className: wrapperClassName,
140
146
  style: _extends({}, width && {
@@ -147,7 +153,7 @@ const LottieWrapper = props => {
147
153
  opacity: isAnimationVisible ? 1 : 0,
148
154
  transition: 'opacity 0.25s ease-in'
149
155
  })
150
- }, _isIE11 ? /*#__PURE__*/_react.default.createElement("img", {
156
+ }), _isIE11 ? /*#__PURE__*/_react.default.createElement("img", {
151
157
  src: ie11ImageBackup,
152
158
  className: ie11BackupImageClassName,
153
159
  "data-name": "ie11-backup-image"
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["isIE11","window","userAgent","get","hasMsCrypto","has","hasRevision","includes","hasTrident","fetchAndLoadAnimation","_lottie","_fetch","animationSrc","containerRef","loop","animationClassnames","hideOnTransparent","autoplay","animationUrl","URL","toString","fetchResult","headers","animationData","json","animation","loadAnimation","container","current","renderer","rendererSettings","className","preserveAspectRatio","LottieWrapper","props","dataName","ariaLabel","width","height","ie11ImageBackup","backupImageClassName","animationControl","animationClassName","useRef","animationItem","setAnimationItem","useState","isAnimationVisible","setIsAnimationVisible","_isIE11","useMemo","wrapperClassName","classnames","style","lottieContainer","lottieAnimationClassName","ie11BackupImageClassName","backupImage","useEffect","keys","omit","ANIMATION_CONTROL","stop","lottie","unfetch","destroy","name","maxWidth","maxHeight","opacity","transition","propTypes"],"sources":["../../../src/atom/lottie-wrapper/index.js"],"sourcesContent":["import React, {useMemo, useRef, useEffect, useState} from 'react';\nimport classnames from 'classnames';\nimport lottie from 'lottie-web';\nimport get from 'lodash/fp/get';\nimport has from 'lodash/fp/has';\nimport includes from 'lodash/fp/includes';\nimport keys from 'lodash/fp/keys';\nimport omit from 'lodash/fp/omit';\nimport unfetch from 'isomorphic-unfetch';\nimport style from './style.css';\nimport propTypes, {ANIMATION_CONTROL} from './prop-types';\n\nconst isIE11 = () => {\n if (typeof window === 'undefined') return;\n const userAgent = get('navigator.userAgent', window);\n const hasMsCrypto = has('msCrypto', window);\n const hasRevision = includes('rv:', userAgent);\n const hasTrident = includes('Trident/', userAgent);\n\n return hasMsCrypto || (hasRevision && hasTrident);\n};\n\nexport const fetchAndLoadAnimation = async (\n _lottie,\n _fetch,\n animationSrc,\n containerRef,\n loop,\n animationClassnames,\n hideOnTransparent,\n autoplay\n) => {\n const animationUrl = new URL(animationSrc).toString();\n const fetchResult = await _fetch(animationUrl, {\n headers: {\n 'X-Requested-With': 'XMLHttpRequest',\n 'Content-Type': 'application/json'\n }\n });\n\n const animationData = await fetchResult.json();\n\n const animation =\n _lottie.loadAnimation &&\n _lottie.loadAnimation({\n container: containerRef.current, // the dom element that will contain the animation\n renderer: 'svg',\n autoplay,\n loop,\n animationData,\n rendererSettings: {\n className: animationClassnames,\n hideOnTransparent,\n preserveAspectRatio: 'xMidYMid meet' // same options as a preserveAspectRatio prop\n }\n });\n return animation;\n};\n\nconst LottieWrapper = props => {\n const {\n className,\n 'data-name': dataName,\n 'aria-label': ariaLabel,\n animationSrc,\n loop = false,\n rendererSettings = {},\n width,\n height,\n ie11ImageBackup,\n backupImageClassName,\n autoplay = true,\n animationControl\n } = props;\n\n const {className: animationClassName, hideOnTransparent = true} = rendererSettings;\n\n const containerRef = useRef(null);\n\n // lottie's animation instance\n const [animationItem, setAnimationItem] = useState(null);\n\n const [isAnimationVisible, setIsAnimationVisible] = useState(autoplay);\n\n const _isIE11 = useMemo(() => isIE11(), []);\n\n const wrapperClassName = useMemo(() => classnames(className, style.lottieContainer), [className]);\n\n const lottieAnimationClassName = useMemo(\n () => classnames(animationClassName, style.animation),\n [animationClassName]\n );\n\n const ie11BackupImageClassName = useMemo(\n () => classnames(backupImageClassName, style.backupImage),\n [backupImageClassName]\n );\n\n useEffect(() => {\n // enzyme does not handle well the state update after an async useEffect in tests\n // to remove when the migration towards @testing-library/react is done\n /* istanbul ignore next */\n if (includes(animationControl, keys(omit('loading', ANIMATION_CONTROL))) && !autoplay) {\n setIsAnimationVisible(true);\n if (animationItem) animationItem[animationControl]();\n if (animationControl === ANIMATION_CONTROL.stop) setIsAnimationVisible(false);\n }\n }, [animationControl, animationItem, autoplay]);\n\n useEffect(() => {\n const loadAnimation = async () => {\n if (!_isIE11 && !animationItem) {\n /* istanbul ignore else */\n if (typeof window !== 'undefined') {\n window.lottie = lottie;\n }\n const animation = await fetchAndLoadAnimation(\n lottie,\n unfetch,\n animationSrc,\n containerRef,\n loop,\n lottieAnimationClassName,\n hideOnTransparent,\n autoplay\n );\n\n /* istanbul ignore next */\n setAnimationItem(animation);\n }\n };\n\n loadAnimation();\n return () => animationItem && /* istanbul ignore next */ lottie.destroy(animationItem.name);\n }, [\n lottieAnimationClassName,\n containerRef,\n hideOnTransparent,\n loop,\n animationSrc,\n _isIE11,\n animationItem,\n autoplay\n ]);\n\n return (\n <div\n ref={containerRef}\n aria-label={ariaLabel}\n data-name={dataName}\n className={wrapperClassName}\n style={{\n ...(width && {\n width: `${width}px`,\n maxWidth: `${width}px`\n }),\n ...(height && {\n height: `${height}px`,\n maxHeight: `${height}px`\n }),\n opacity: isAnimationVisible ? 1 : 0,\n transition: 'opacity 0.25s ease-in'\n }}\n >\n {_isIE11 ? (\n <img\n src={ie11ImageBackup}\n className={ie11BackupImageClassName}\n data-name=\"ie11-backup-image\"\n />\n ) : null}\n </div>\n );\n};\n\nLottieWrapper.propTypes = propTypes;\n\nexport default LottieWrapper;\n"],"mappings":";;;;;AAAA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;;;;;;;AAEA,MAAMA,MAAM,GAAG,MAAM;EACnB,IAAI,OAAOC,MAAP,KAAkB,WAAtB,EAAmC;EACnC,MAAMC,SAAS,GAAG,IAAAC,YAAA,EAAI,qBAAJ,EAA2BF,MAA3B,CAAlB;EACA,MAAMG,WAAW,GAAG,IAAAC,YAAA,EAAI,UAAJ,EAAgBJ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/B;MAUHuB,UAAU,EAAE;IAVT;EALP,GAkBGrB,OAAO,gBACN;IACE,GAAG,EAAEV,eADP;IAEE,SAAS,EAAEiB,wBAFb;IAGE,aAAU;EAHZ,EADM,GAMJ,IAxBN,CADF;AA4BD,CAlHD;;AAoHAvB,aAAa,CAACsC,SAAd,2CAA0BA,kBAA1B;eAEetC,a"}
1
+ {"version":3,"file":"index.js","names":["isIE11","window","userAgent","get","hasMsCrypto","has","hasRevision","includes","hasTrident","fetchAndLoadAnimation","_lottie","_fetch","animationSrc","containerRef","loop","animationClassnames","hideOnTransparent","autoplay","animationUrl","URL","toString","fetchResult","headers","animationData","json","animation","loadAnimation","container","current","renderer","rendererSettings","className","preserveAspectRatio","LottieWrapper","props","dataName","ariaLabel","width","height","ie11ImageBackup","backupImageClassName","animationControl","animationClassName","useRef","animationItem","setAnimationItem","useState","isAnimationVisible","setIsAnimationVisible","_isIE11","useMemo","wrapperClassName","classnames","style","lottieContainer","lottieAnimationClassName","ie11BackupImageClassName","backupImage","useEffect","keys","omit","ANIMATION_CONTROL","stop","lottie","unfetch","destroy","name","accessibilityProps","role","maxWidth","maxHeight","opacity","transition","propTypes"],"sources":["../../../src/atom/lottie-wrapper/index.js"],"sourcesContent":["import React, {useMemo, useRef, useEffect, useState} from 'react';\nimport classnames from 'classnames';\nimport lottie from 'lottie-web';\nimport get from 'lodash/fp/get';\nimport has from 'lodash/fp/has';\nimport includes from 'lodash/fp/includes';\nimport keys from 'lodash/fp/keys';\nimport omit from 'lodash/fp/omit';\nimport unfetch from 'isomorphic-unfetch';\nimport style from './style.css';\nimport propTypes, {ANIMATION_CONTROL} from './prop-types';\n\nconst isIE11 = () => {\n if (typeof window === 'undefined') return;\n const userAgent = get('navigator.userAgent', window);\n const hasMsCrypto = has('msCrypto', window);\n const hasRevision = includes('rv:', userAgent);\n const hasTrident = includes('Trident/', userAgent);\n\n return hasMsCrypto || (hasRevision && hasTrident);\n};\n\nexport const fetchAndLoadAnimation = async (\n _lottie,\n _fetch,\n animationSrc,\n containerRef,\n loop,\n animationClassnames,\n hideOnTransparent,\n autoplay\n) => {\n const animationUrl = new URL(animationSrc).toString();\n const fetchResult = await _fetch(animationUrl, {\n headers: {\n 'X-Requested-With': 'XMLHttpRequest',\n 'Content-Type': 'application/json'\n }\n });\n\n const animationData = await fetchResult.json();\n\n const animation =\n _lottie.loadAnimation &&\n _lottie.loadAnimation({\n container: containerRef.current, // the dom element that will contain the animation\n renderer: 'svg',\n autoplay,\n loop,\n animationData,\n rendererSettings: {\n className: animationClassnames,\n hideOnTransparent,\n preserveAspectRatio: 'xMidYMid meet' // same options as a preserveAspectRatio prop\n }\n });\n return animation;\n};\n\nconst LottieWrapper = props => {\n const {\n className,\n 'data-name': dataName,\n 'aria-label': ariaLabel,\n animationSrc,\n loop = false,\n rendererSettings = {},\n width,\n height,\n ie11ImageBackup,\n backupImageClassName,\n autoplay = true,\n animationControl\n } = props;\n\n const {className: animationClassName, hideOnTransparent = true} = rendererSettings;\n\n const containerRef = useRef(null);\n\n // lottie's animation instance\n const [animationItem, setAnimationItem] = useState(null);\n\n const [isAnimationVisible, setIsAnimationVisible] = useState(autoplay);\n\n const _isIE11 = useMemo(() => isIE11(), []);\n\n const wrapperClassName = useMemo(() => classnames(className, style.lottieContainer), [className]);\n\n const lottieAnimationClassName = useMemo(\n () => classnames(animationClassName, style.animation),\n [animationClassName]\n );\n\n const ie11BackupImageClassName = useMemo(\n () => classnames(backupImageClassName, style.backupImage),\n [backupImageClassName]\n );\n\n useEffect(() => {\n // enzyme does not handle well the state update after an async useEffect in tests\n // to remove when the migration towards @testing-library/react is done\n /* istanbul ignore next */\n if (includes(animationControl, keys(omit('loading', ANIMATION_CONTROL))) && !autoplay) {\n setIsAnimationVisible(true);\n if (animationItem) animationItem[animationControl]();\n if (animationControl === ANIMATION_CONTROL.stop) setIsAnimationVisible(false);\n }\n }, [animationControl, animationItem, autoplay]);\n\n useEffect(() => {\n const loadAnimation = async () => {\n if (!_isIE11 && !animationItem) {\n /* istanbul ignore else */\n if (typeof window !== 'undefined') {\n window.lottie = lottie;\n }\n const animation = await fetchAndLoadAnimation(\n lottie,\n unfetch,\n animationSrc,\n containerRef,\n loop,\n lottieAnimationClassName,\n hideOnTransparent,\n autoplay\n );\n\n /* istanbul ignore next */\n setAnimationItem(animation);\n }\n };\n\n loadAnimation();\n return () => animationItem && /* istanbul ignore next */ lottie.destroy(animationItem.name);\n }, [\n lottieAnimationClassName,\n containerRef,\n hideOnTransparent,\n loop,\n animationSrc,\n _isIE11,\n animationItem,\n autoplay\n ]);\n\n const accessibilityProps = ariaLabel\n ? {\n 'aria-label': ariaLabel,\n role: 'img'\n }\n : {\n 'aria-hidden': 'true',\n role: 'presentation'\n };\n\n return (\n <div\n {...accessibilityProps}\n ref={containerRef}\n data-name={dataName}\n className={wrapperClassName}\n style={{\n ...(width && {\n width: `${width}px`,\n maxWidth: `${width}px`\n }),\n ...(height && {\n height: `${height}px`,\n maxHeight: `${height}px`\n }),\n opacity: isAnimationVisible ? 1 : 0,\n transition: 'opacity 0.25s ease-in'\n }}\n >\n {_isIE11 ? (\n <img\n src={ie11ImageBackup}\n className={ie11BackupImageClassName}\n data-name=\"ie11-backup-image\"\n />\n ) : null}\n </div>\n );\n};\n\nLottieWrapper.propTypes = propTypes;\n\nexport default LottieWrapper;\n"],"mappings":";;;;;AAAA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;;;;;;;AAEA,MAAMA,MAAM,GAAG,MAAM;EACnB,IAAI,OAAOC,MAAP,KAAkB,WAAtB,EAAmC;EACnC,MAAMC,SAAS,GAAG,IAAAC,YAAA,EAAI,qBAAJ,EAA2BF,MAA3B,CAAlB;EACA,MAAMG,WAAW,GAAG,IAAAC,YAAA,EAAI,UAAJ,EAAgBJ,MAAhB,CAApB;EACA,MAAMK,WAAW,GAAG,IAAAC,iBAAA,EAAS,KAAT,EAAgBL,SAAhB,CAApB;EACA,MAAMM,UAAU,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,EAAExB,kBAAkB,GAAG,CAAH,GAAO,CAT/B;MAUHyB,UAAU,EAAE;IAVT;EALP,IAkBGvB,OAAO,gBACN;IACE,GAAG,EAAEV,eADP;IAEE,SAAS,EAAEiB,wBAFb;IAGE,aAAU;EAHZ,EADM,GAMJ,IAxBN,CADF;AA4BD,CA5HD;;AA8HAvB,aAAa,CAACwC,SAAd,2CAA0BA,kBAA1B;eAEexC,a"}
@@ -1,6 +1,6 @@
1
1
  import PropTypes from 'prop-types';
2
2
  export declare type LottieAnimationProps = {
3
- 'aria-label': string;
3
+ 'aria-label'?: string;
4
4
  'data-name'?: string;
5
5
  animationSrc: string;
6
6
  loop?: boolean;
@@ -23,7 +23,7 @@ export declare const ANIMATION_CONTROL: {
23
23
  loading: string;
24
24
  };
25
25
  declare const propTypes: {
26
- 'aria-label': PropTypes.Validator<string>;
26
+ 'aria-label': PropTypes.Requireable<string>;
27
27
  'data-name': PropTypes.Requireable<string>;
28
28
  animationSrc: PropTypes.Validator<string>;
29
29
  loop: PropTypes.Requireable<boolean>;
@@ -1 +1 @@
1
- {"version":3,"file":"prop-types.d.ts","sourceRoot":"","sources":["../../../src/atom/lottie-wrapper/prop-types.ts"],"names":[],"mappings":"AACA,OAAO,SAAS,MAAM,YAAY,CAAC;AAEnC,oBAAY,oBAAoB,GAAG;IACjC,YAAY,EAAE,MAAM,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,YAAY,EAAE,MAAM,CAAC;IACrB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,gBAAgB,CAAC,EAAE;QACjB,iBAAiB,CAAC,EAAE,OAAO,CAAC;QAC5B,SAAS,CAAC,EAAE,MAAM,CAAC;KACpB,CAAC;IACF,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,eAAe,EAAE,MAAM,CAAC;IACxB,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,gBAAgB,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,MAAM,GAAG,SAAS,CAAC;CAC1D,CAAC;AAEF,eAAO,MAAM,iBAAiB;;;;;CAK7B,CAAC;AAEF,QAAA,MAAM,SAAS;;;;;;;;;;;;;;;;CAgBd,CAAC;AAEF,eAAe,SAAS,CAAC"}
1
+ {"version":3,"file":"prop-types.d.ts","sourceRoot":"","sources":["../../../src/atom/lottie-wrapper/prop-types.ts"],"names":[],"mappings":"AACA,OAAO,SAAS,MAAM,YAAY,CAAC;AAEnC,oBAAY,oBAAoB,GAAG;IACjC,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,YAAY,EAAE,MAAM,CAAC;IACrB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,gBAAgB,CAAC,EAAE;QACjB,iBAAiB,CAAC,EAAE,OAAO,CAAC;QAC5B,SAAS,CAAC,EAAE,MAAM,CAAC;KACpB,CAAC;IACF,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,eAAe,EAAE,MAAM,CAAC;IACxB,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,gBAAgB,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,MAAM,GAAG,SAAS,CAAC;CAC1D,CAAC;AAEF,eAAO,MAAM,iBAAiB;;;;;CAK7B,CAAC;AAEF,QAAA,MAAM,SAAS;;;;;;;;;;;;;;;;CAgBd,CAAC;AAEF,eAAe,SAAS,CAAC"}
@@ -17,7 +17,7 @@ const ANIMATION_CONTROL = {
17
17
  };
18
18
  exports.ANIMATION_CONTROL = ANIMATION_CONTROL;
19
19
  const propTypes = {
20
- 'aria-label': _propTypes.default.string.isRequired,
20
+ 'aria-label': _propTypes.default.string,
21
21
  'data-name': _propTypes.default.string,
22
22
  animationSrc: _propTypes.default.string.isRequired,
23
23
  loop: _propTypes.default.bool,
@@ -1 +1 @@
1
- {"version":3,"file":"prop-types.js","names":["ANIMATION_CONTROL","play","pause","stop","loading","propTypes","PropTypes","string","isRequired","animationSrc","loop","bool","rendererSettings","shape","hideOnTransparent","className","height","number","width","ie11ImageBackup","backupImageClassName","autoplay","animationControl","oneOf","keys"],"sources":["../../../src/atom/lottie-wrapper/prop-types.ts"],"sourcesContent":["import keys from 'lodash/fp/keys';\nimport PropTypes from 'prop-types';\n\nexport type LottieAnimationProps = {\n 'aria-label': string;\n 'data-name'?: string;\n animationSrc: string;\n loop?: boolean;\n rendererSettings?: {\n hideOnTransparent?: boolean;\n className?: string;\n };\n height?: number;\n width?: number;\n className?: string;\n ie11ImageBackup: string;\n backupImageClassName?: string;\n autoplay?: boolean;\n animationControl?: 'play' | 'pause' | 'stop' | 'loading';\n};\n\nexport const ANIMATION_CONTROL = {\n play: 'play',\n pause: 'pause',\n stop: 'stop',\n loading: 'loading'\n};\n\nconst propTypes = {\n 'aria-label': PropTypes.string.isRequired,\n 'data-name': PropTypes.string,\n animationSrc: PropTypes.string.isRequired,\n loop: PropTypes.bool,\n rendererSettings: PropTypes.shape({\n hideOnTransparent: PropTypes.bool,\n className: PropTypes.string\n }),\n height: PropTypes.number,\n width: PropTypes.number,\n className: PropTypes.string,\n ie11ImageBackup: PropTypes.string.isRequired,\n backupImageClassName: PropTypes.string,\n autoplay: PropTypes.bool,\n animationControl: PropTypes.oneOf(keys(ANIMATION_CONTROL))\n};\n\nexport default propTypes;\n"],"mappings":";;;;;AAAA;;AACA;;;;AAoBO,MAAMA,iBAAiB,GAAG;EAC/BC,IAAI,EAAE,MADyB;EAE/BC,KAAK,EAAE,OAFwB;EAG/BC,IAAI,EAAE,MAHyB;EAI/BC,OAAO,EAAE;AAJsB,CAA1B;;AAOP,MAAMC,SAAS,GAAG;EAChB,cAAcC,kBAAA,CAAUC,MAAV,CAAiBC,UADf;EAEhB,aAAaF,kBAAA,CAAUC,MAFP;EAGhBE,YAAY,EAAEH,kBAAA,CAAUC,MAAV,CAAiBC,UAHf;EAIhBE,IAAI,EAAEJ,kBAAA,CAAUK,IAJA;EAKhBC,gBAAgB,EAAEN,kBAAA,CAAUO,KAAV,CAAgB;IAChCC,iBAAiB,EAAER,kBAAA,CAAUK,IADG;IAEhCI,SAAS,EAAET,kBAAA,CAAUC;EAFW,CAAhB,CALF;EAShBS,MAAM,EAAEV,kBAAA,CAAUW,MATF;EAUhBC,KAAK,EAAEZ,kBAAA,CAAUW,MAVD;EAWhBF,SAAS,EAAET,kBAAA,CAAUC,MAXL;EAYhBY,eAAe,EAAEb,kBAAA,CAAUC,MAAV,CAAiBC,UAZlB;EAahBY,oBAAoB,EAAEd,kBAAA,CAAUC,MAbhB;EAchBc,QAAQ,EAAEf,kBAAA,CAAUK,IAdJ;EAehBW,gBAAgB,EAAEhB,kBAAA,CAAUiB,KAAV,CAAgB,IAAAC,aAAA,EAAKxB,iBAAL,CAAhB;AAfF,CAAlB;eAkBeK,S"}
1
+ {"version":3,"file":"prop-types.js","names":["ANIMATION_CONTROL","play","pause","stop","loading","propTypes","PropTypes","string","animationSrc","isRequired","loop","bool","rendererSettings","shape","hideOnTransparent","className","height","number","width","ie11ImageBackup","backupImageClassName","autoplay","animationControl","oneOf","keys"],"sources":["../../../src/atom/lottie-wrapper/prop-types.ts"],"sourcesContent":["import keys from 'lodash/fp/keys';\nimport PropTypes from 'prop-types';\n\nexport type LottieAnimationProps = {\n 'aria-label'?: string;\n 'data-name'?: string;\n animationSrc: string;\n loop?: boolean;\n rendererSettings?: {\n hideOnTransparent?: boolean;\n className?: string;\n };\n height?: number;\n width?: number;\n className?: string;\n ie11ImageBackup: string;\n backupImageClassName?: string;\n autoplay?: boolean;\n animationControl?: 'play' | 'pause' | 'stop' | 'loading';\n};\n\nexport const ANIMATION_CONTROL = {\n play: 'play',\n pause: 'pause',\n stop: 'stop',\n loading: 'loading'\n};\n\nconst propTypes = {\n 'aria-label': PropTypes.string,\n 'data-name': PropTypes.string,\n animationSrc: PropTypes.string.isRequired,\n loop: PropTypes.bool,\n rendererSettings: PropTypes.shape({\n hideOnTransparent: PropTypes.bool,\n className: PropTypes.string\n }),\n height: PropTypes.number,\n width: PropTypes.number,\n className: PropTypes.string,\n ie11ImageBackup: PropTypes.string.isRequired,\n backupImageClassName: PropTypes.string,\n autoplay: PropTypes.bool,\n animationControl: PropTypes.oneOf(keys(ANIMATION_CONTROL))\n};\n\nexport default propTypes;\n"],"mappings":";;;;;AAAA;;AACA;;;;AAoBO,MAAMA,iBAAiB,GAAG;EAC/BC,IAAI,EAAE,MADyB;EAE/BC,KAAK,EAAE,OAFwB;EAG/BC,IAAI,EAAE,MAHyB;EAI/BC,OAAO,EAAE;AAJsB,CAA1B;;AAOP,MAAMC,SAAS,GAAG;EAChB,cAAcC,kBAAA,CAAUC,MADR;EAEhB,aAAaD,kBAAA,CAAUC,MAFP;EAGhBC,YAAY,EAAEF,kBAAA,CAAUC,MAAV,CAAiBE,UAHf;EAIhBC,IAAI,EAAEJ,kBAAA,CAAUK,IAJA;EAKhBC,gBAAgB,EAAEN,kBAAA,CAAUO,KAAV,CAAgB;IAChCC,iBAAiB,EAAER,kBAAA,CAAUK,IADG;IAEhCI,SAAS,EAAET,kBAAA,CAAUC;EAFW,CAAhB,CALF;EAShBS,MAAM,EAAEV,kBAAA,CAAUW,MATF;EAUhBC,KAAK,EAAEZ,kBAAA,CAAUW,MAVD;EAWhBF,SAAS,EAAET,kBAAA,CAAUC,MAXL;EAYhBY,eAAe,EAAEb,kBAAA,CAAUC,MAAV,CAAiBE,UAZlB;EAahBW,oBAAoB,EAAEd,kBAAA,CAAUC,MAbhB;EAchBc,QAAQ,EAAEf,kBAAA,CAAUK,IAdJ;EAehBW,gBAAgB,EAAEhB,kBAAA,CAAUiB,KAAV,CAAgB,IAAAC,aAAA,EAAKxB,iBAAL,CAAhB;AAfF,CAAlB;eAkBeK,S"}
@@ -2,7 +2,7 @@ export default PromoCode;
2
2
  declare function PromoCode(props: any, context: any): JSX.Element;
3
3
  declare namespace PromoCode {
4
4
  namespace contextTypes {
5
- const translate: PropTypes.Validator<(...args: any[]) => any>;
5
+ const translate: PropTypes.Requireable<(...args: any[]) => any>;
6
6
  }
7
7
  namespace propTypes {
8
8
  const promoCodeDescription: PropTypes.Requireable<string>;
@@ -61,7 +61,7 @@ declare class Provider extends React.Component<any, any, any> {
61
61
  [x: string]: any;
62
62
  }>;
63
63
  }>>;
64
- translate: PropTypes.Validator<(...args: any[]) => any>;
64
+ translate: PropTypes.Requireable<(...args: any[]) => any>;
65
65
  Vimeo: PropTypes.Requireable<object>;
66
66
  };
67
67
  static getDerivedStateFromProps(props: any): {
@@ -123,7 +123,7 @@ class Provider extends _react.default.Component {
123
123
  Provider.childContextTypes = {
124
124
  history: historyShape,
125
125
  skin: skinShape,
126
- translate: translateShape.isRequired,
126
+ translate: translateShape,
127
127
  Vimeo: _propTypes.default.object
128
128
  };
129
129
  Provider.propTypes = process.env.NODE_ENV !== "production" ? {
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["DEFAULT_SKIN","common","good","bad","primary","life","brand","primaryAdd1","primaryAdd2","primaryAdd3","primaryAdd4","xtraLightGrey","light","medium","dark","grey","orangeAdd","orange","positive","lightGreen","negative","battle","white","black","mergeSkin","skin","historyShape","PropTypes","shape","createHref","func","push","skinShape","objectOf","ColorPropType","images","SrcPropType","logo","login","icons","HexPropType","mod","courses","arrayOf","texts","translateShape","Provider","React","Component","getDerivedStateFromProps","props","history","translate","constructor","context","Vimeo","state","getChildContext","render","children","Children","only","childContextTypes","isRequired","object","propTypes","node","GetSkinFromContext","legacyContext","useWebContext","legacySkin"],"sources":["../../../src/atom/provider/index.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport {defaultsDeep, get, getOr} from 'lodash/fp';\nimport {SrcPropType, ColorPropType, HexPropType} from '../../util/proptypes';\nimport WebContext, {useWebContext} from './web-context';\n\nconst DEFAULT_SKIN = {\n common: {\n good: '#24b694',\n bad: '#ed1c24',\n primary: '#00B0FF',\n life: '#ed1c24',\n brand: '#00B0FF',\n primaryAdd1: '#B3E5FC',\n primaryAdd2: '#0091EA',\n primaryAdd3: '#0277BD',\n primaryAdd4: '#015798',\n xtraLightGrey: '#FAFAFA',\n light: '#ECEFF1',\n medium: '#90A4AE',\n dark: '#546E7A',\n grey: '#607D8B',\n orangeAdd: '#FF7043',\n orange: '#FFA000',\n positive: '#3EC483',\n lightGreen: '#66BB6A',\n negative: '#F73F52',\n battle: '#FFE100',\n white: '#FFFFFF',\n black: '#14171A'\n }\n};\n\nconst mergeSkin = (skin = {}) => defaultsDeep(DEFAULT_SKIN, skin);\n\nconst historyShape = PropTypes.shape({\n createHref: PropTypes.func,\n push: PropTypes.func\n});\n\nconst skinShape = PropTypes.shape({\n common: PropTypes.objectOf(ColorPropType),\n images: PropTypes.shape({\n 'logo-mobile': SrcPropType,\n logo: SrcPropType,\n 'logo-email': SrcPropType,\n login: SrcPropType\n }),\n icons: PropTypes.objectOf(HexPropType),\n mod: PropTypes.objectOf(ColorPropType),\n courses: PropTypes.arrayOf(ColorPropType),\n texts: PropTypes.objectOf(ColorPropType)\n});\n\nconst translateShape = PropTypes.func;\n\nclass Provider extends React.Component {\n static propTypes = {\n history: historyShape,\n skin: skinShape,\n translate: translateShape,\n children: PropTypes.node.isRequired,\n Vimeo: PropTypes.shape({\n common: PropTypes.func\n })\n };\n\n static childContextTypes = {\n history: historyShape,\n skin: skinShape,\n translate: translateShape.isRequired,\n Vimeo: PropTypes.object\n };\n\n static getDerivedStateFromProps(props) {\n const {history, skin, translate} = props;\n\n return {\n history,\n skin: mergeSkin(skin),\n translate\n };\n }\n\n constructor(props, context) {\n super(props, context);\n const {history, skin, translate, Vimeo} = props;\n // eslint-disable-next-line react/no-unused-state\n this.state = {history, skin: mergeSkin(skin), translate, Vimeo};\n }\n\n getChildContext() {\n return this.state;\n }\n\n render() {\n const {children} = this.props;\n return React.Children.only(children);\n }\n}\n\nconst GetSkinFromContext = legacyContext => {\n const context = useWebContext();\n const legacySkin = get('skin', legacyContext);\n const skin = getOr(legacySkin, 'skin', context);\n\n return skin;\n};\n\nexport {WebContext, useWebContext, GetSkinFromContext};\nexport default Provider;\n"],"mappings":";;;;;;;;;;;AAAA;;AACA;;AAEA;;AACA;;;;;;;;;;;AAEA,MAAMA,YAAY,GAAG;EACnBC,MAAM,EAAE;IACNC,IAAI,EAAE,SADA;IAENC,GAAG,EAAE,SAFC;IAGNC,OAAO,EAAE,SAHH;IAINC,IAAI,EAAE,SAJA;IAKNC,KAAK,EAAE,SALD;IAMNC,WAAW,EAAE,SANP;IAONC,WAAW,EAAE,SAPP;IAQNC,WAAW,EAAE,SARP;IASNC,WAAW,EAAE,SATP;IAUNC,aAAa,EAAE,SAVT;IAWNC,KAAK,EAAE,SAXD;IAYNC,MAAM,EAAE,SAZF;IAaNC,IAAI,EAAE,SAbA;IAcNC,IAAI,EAAE,SAdA;IAeNC,SAAS,EAAE,SAfL;IAgBNC,MAAM,EAAE,SAhBF;IAiBNC,QAAQ,EAAE,SAjBJ;IAkBNC,UAAU,EAAE,SAlBN;IAmBNC,QAAQ,EAAE,SAnBJ;IAoBNC,MAAM,EAAE,SApBF;IAqBNC,KAAK,EAAE,SArBD;IAsBNC,KAAK,EAAE;EAtBD;AADW,CAArB;;AA2BA,MAAMC,SAAS,GAAG,CAACC,IAAI,GAAG,EAAR,KAAe,4BAAazB,YAAb,EAA2ByB,IAA3B,CAAjC;;AAEA,MAAMC,YAAY,GAAGC,kBAAA,CAAUC,KAAV,CAAgB;EACnCC,UAAU,EAAEF,kBAAA,CAAUG,IADa;EAEnCC,IAAI,EAAEJ,kBAAA,CAAUG;AAFmB,CAAhB,CAArB;;AAKA,MAAME,SAAS,GAAGL,kBAAA,CAAUC,KAAV,CAAgB;EAChC3B,MAAM,EAAE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A,OAAOH,cAAA,CAAMa,QAAN,CAAeC,IAAf,CAAoBF,QAApB,CAAP;EACD;;AA1CoC;;AAAjCb,Q,CAWGgB,iB,GAAoB;EACzBX,OAAO,EAAEzB,YADgB;EAEzBD,IAAI,EAAEO,SAFmB;EAGzBoB,SAAS,EAAEP,cAAc,CAACkB,UAHD;EAIzBR,KAAK,EAAE5B,kBAAA,CAAUqC;AAJQ,C;AAXvBlB,Q,CACGmB,S,2CAAY;EACjBd,OAAO,EAAEzB,YADQ;EAEjBD,IAAI,EAAEO,SAFW;EAGjBoB,SAAS,EAAEP,cAHM;EAIjBc,QAAQ,EAAEhC,kBAAA,CAAUuC,IAAV,CAAeH,UAJR;EAKjBR,KAAK,EAAE5B,kBAAA,CAAUC,KAAV,CAAgB;IACrB3B,MAAM,EAAE0B,kBAAA,CAAUG;EADG,CAAhB;AALU,C;;AA4CrB,MAAMqC,kBAAkB,GAAGC,aAAa,IAAI;EAC1C,MAAMd,OAAO,GAAG,IAAAe,yBAAA,GAAhB;EACA,MAAMC,UAAU,GAAG,mBAAI,MAAJ,EAAYF,aAAZ,CAAnB;EACA,MAAM3C,IAAI,GAAG,qBAAM6C,UAAN,EAAkB,MAAlB,EAA0BhB,OAA1B,CAAb;EAEA,OAAO7B,IAAP;AACD,CAND;;;eASeqB,Q"}
1
+ {"version":3,"file":"index.js","names":["DEFAULT_SKIN","common","good","bad","primary","life","brand","primaryAdd1","primaryAdd2","primaryAdd3","primaryAdd4","xtraLightGrey","light","medium","dark","grey","orangeAdd","orange","positive","lightGreen","negative","battle","white","black","mergeSkin","skin","historyShape","PropTypes","shape","createHref","func","push","skinShape","objectOf","ColorPropType","images","SrcPropType","logo","login","icons","HexPropType","mod","courses","arrayOf","texts","translateShape","Provider","React","Component","getDerivedStateFromProps","props","history","translate","constructor","context","Vimeo","state","getChildContext","render","children","Children","only","childContextTypes","object","propTypes","node","isRequired","GetSkinFromContext","legacyContext","useWebContext","legacySkin"],"sources":["../../../src/atom/provider/index.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport {defaultsDeep, get, getOr} from 'lodash/fp';\nimport {SrcPropType, ColorPropType, HexPropType} from '../../util/proptypes';\nimport WebContext, {useWebContext} from './web-context';\n\nconst DEFAULT_SKIN = {\n common: {\n good: '#24b694',\n bad: '#ed1c24',\n primary: '#00B0FF',\n life: '#ed1c24',\n brand: '#00B0FF',\n primaryAdd1: '#B3E5FC',\n primaryAdd2: '#0091EA',\n primaryAdd3: '#0277BD',\n primaryAdd4: '#015798',\n xtraLightGrey: '#FAFAFA',\n light: '#ECEFF1',\n medium: '#90A4AE',\n dark: '#546E7A',\n grey: '#607D8B',\n orangeAdd: '#FF7043',\n orange: '#FFA000',\n positive: '#3EC483',\n lightGreen: '#66BB6A',\n negative: '#F73F52',\n battle: '#FFE100',\n white: '#FFFFFF',\n black: '#14171A'\n }\n};\n\nconst mergeSkin = (skin = {}) => defaultsDeep(DEFAULT_SKIN, skin);\n\nconst historyShape = PropTypes.shape({\n createHref: PropTypes.func,\n push: PropTypes.func\n});\n\nconst skinShape = PropTypes.shape({\n common: PropTypes.objectOf(ColorPropType),\n images: PropTypes.shape({\n 'logo-mobile': SrcPropType,\n logo: SrcPropType,\n 'logo-email': SrcPropType,\n login: SrcPropType\n }),\n icons: PropTypes.objectOf(HexPropType),\n mod: PropTypes.objectOf(ColorPropType),\n courses: PropTypes.arrayOf(ColorPropType),\n texts: PropTypes.objectOf(ColorPropType)\n});\n\nconst translateShape = PropTypes.func;\n\nclass Provider extends React.Component {\n static propTypes = {\n history: historyShape,\n skin: skinShape,\n translate: translateShape,\n children: PropTypes.node.isRequired,\n Vimeo: PropTypes.shape({\n common: PropTypes.func\n })\n };\n\n static childContextTypes = {\n history: historyShape,\n skin: skinShape,\n translate: translateShape,\n Vimeo: PropTypes.object\n };\n\n static getDerivedStateFromProps(props) {\n const {history, skin, translate} = props;\n\n return {\n history,\n skin: mergeSkin(skin),\n translate\n };\n }\n\n constructor(props, context) {\n super(props, context);\n const {history, skin, translate, Vimeo} = props;\n // eslint-disable-next-line react/no-unused-state\n this.state = {history, skin: mergeSkin(skin), translate, Vimeo};\n }\n\n getChildContext() {\n return this.state;\n }\n\n render() {\n const {children} = this.props;\n return React.Children.only(children);\n }\n}\n\nconst GetSkinFromContext = legacyContext => {\n const context = useWebContext();\n const legacySkin = get('skin', legacyContext);\n const skin = getOr(legacySkin, 'skin', context);\n\n return skin;\n};\n\nexport {WebContext, useWebContext, GetSkinFromContext};\nexport default Provider;\n"],"mappings":";;;;;;;;;;;AAAA;;AACA;;AAEA;;AACA;;;;;;;;;;;AAEA,MAAMA,YAAY,GAAG;EACnBC,MAAM,EAAE;IACNC,IAAI,EAAE,SADA;IAENC,GAAG,EAAE,SAFC;IAGNC,OAAO,EAAE,SAHH;IAINC,IAAI,EAAE,SAJA;IAKNC,KAAK,EAAE,SALD;IAMNC,WAAW,EAAE,SANP;IAONC,WAAW,EAAE,SAPP;IAQNC,WAAW,EAAE,SARP;IASNC,WAAW,EAAE,SATP;IAUNC,aAAa,EAAE,SAVT;IAWNC,KAAK,EAAE,SAXD;IAYNC,MAAM,EAAE,SAZF;IAaNC,IAAI,EAAE,SAbA;IAcNC,IAAI,EAAE,SAdA;IAeNC,SAAS,EAAE,SAfL;IAgBNC,MAAM,EAAE,SAhBF;IAiBNC,QAAQ,EAAE,SAjBJ;IAkBNC,UAAU,EAAE,SAlBN;IAmBNC,QAAQ,EAAE,SAnBJ;IAoBNC,MAAM,EAAE,SApBF;IAqBNC,KAAK,EAAE,SArBD;IAsBNC,KAAK,EAAE;EAtBD;AADW,CAArB;;AA2BA,MAAMC,SAAS,GAAG,CAACC,IAAI,GAAG,EAAR,KAAe,4BAAazB,YAAb,EAA2ByB,IAA3B,CAAjC;;AAEA,MAAMC,YAAY,GAAGC,kBAAA,CAAUC,KAAV,CAAgB;EACnCC,UAAU,EAAEF,kBAAA,CAAUG,IADa;EAEnCC,IAAI,EAAEJ,kBAAA,CAAUG;AAFm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AO,KAAKD,KAAZ;EACD;;EAEDE,MAAM,GAAG;IACP,MAAM;MAACC;IAAD,IAAa,KAAKT,KAAxB;IACA,OAAOH,cAAA,CAAMa,QAAN,CAAeC,IAAf,CAAoBF,QAApB,CAAP;EACD;;AA1CoC;;AAAjCb,Q,CAWGgB,iB,GAAoB;EACzBX,OAAO,EAAEzB,YADgB;EAEzBD,IAAI,EAAEO,SAFmB;EAGzBoB,SAAS,EAAEP,cAHc;EAIzBU,KAAK,EAAE5B,kBAAA,CAAUoC;AAJQ,C;AAXvBjB,Q,CACGkB,S,2CAAY;EACjBb,OAAO,EAAEzB,YADQ;EAEjBD,IAAI,EAAEO,SAFW;EAGjBoB,SAAS,EAAEP,cAHM;EAIjBc,QAAQ,EAAEhC,kBAAA,CAAUsC,IAAV,CAAeC,UAJR;EAKjBX,KAAK,EAAE5B,kBAAA,CAAUC,KAAV,CAAgB;IACrB3B,MAAM,EAAE0B,kBAAA,CAAUG;EADG,CAAhB;AALU,C;;AA4CrB,MAAMqC,kBAAkB,GAAGC,aAAa,IAAI;EAC1C,MAAMd,OAAO,GAAG,IAAAe,yBAAA,GAAhB;EACA,MAAMC,UAAU,GAAG,mBAAI,MAAJ,EAAYF,aAAZ,CAAnB;EACA,MAAM3C,IAAI,GAAG,qBAAM6C,UAAN,EAAkB,MAAlB,EAA0BhB,OAA1B,CAAb;EAEA,OAAO7B,IAAP;AACD,CAND;;;eASeqB,Q"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/atom/review-presentation/index.js"],"names":[],"mappings":";AA4CA,6DA+BC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/atom/review-presentation/index.js"],"names":[],"mappings":";AAiDA,6DA8BC"}
@@ -42,7 +42,8 @@ const getIcon = icon => {
42
42
  };
43
43
 
44
44
  const ToolTip = ({
45
- tooltipText
45
+ tooltipText,
46
+ 'aria-label': moreDetailsAriaLabel
46
47
  }) => {
47
48
  return /*#__PURE__*/_react.default.createElement("div", {
48
49
  className: _style.default.tooltipContainer
@@ -51,10 +52,11 @@ const ToolTip = ({
51
52
  }, /*#__PURE__*/_react.default.createElement(_novaIcons.NovaCompositionCoorpacademyInformationIcon, {
52
53
  className: _style.default.informationIcon,
53
54
  width: 12,
54
- height: 12
55
+ height: 12,
56
+ "aria-label": moreDetailsAriaLabel
55
57
  })), /*#__PURE__*/_react.default.createElement("div", {
56
58
  className: _style.default.toolTip
57
- }, /*#__PURE__*/_react.default.createElement("div", {
59
+ }, /*#__PURE__*/_react.default.createElement("p", {
58
60
  className: _style.default.tooltipText
59
61
  }, tooltipText)));
60
62
  };
@@ -96,13 +98,15 @@ const ReviewPresentation = props => {
96
98
  }, /*#__PURE__*/_react.default.createElement("div", {
97
99
  className: _style.default.reviewListText
98
100
  }, getIcon(key), " ", label.text), /*#__PURE__*/_react.default.createElement(ToolTip, {
99
- tooltipText: label.tooltipText
101
+ tooltipText: label.tooltipText,
102
+ "aria-label": label.moreDetailsAriaLabel
100
103
  })));
101
104
  }, labelsList)));
102
105
  };
103
106
 
104
107
  ToolTip.propTypes = process.env.NODE_ENV !== "production" ? {
105
- tooltipText: _propTypes.default.string
108
+ tooltipText: _propTypes.default.string,
109
+ 'aria-label': _propTypes.default.string
106
110
  } : {};
107
111
  ReviewPresentation.propTypes = process.env.NODE_ENV !== "production" ? _propTypes2.default : {};
108
112
  var _default = ReviewPresentation;
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["ICONS","skills","TargetIcon","questions","QuestionIcon","lifes","HeartIcon","allright","CheckIcon","getIcon","icon","Icon","getOr","style","labelIcon","ToolTip","tooltipText","tooltipContainer","tooltipIconContainer","informationIcon","toolTip","ReviewPresentation","props","ariaLabel","reviewTitle","reviewText","labelsList","reviewWrapper","__html","reviewListWrapper","map","convert","cap","label","key","reviewList","reviewListItemWrapper","reviewListText","text","propTypes","PropTypes","string"],"sources":["../../../src/atom/review-presentation/index.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport getOr from 'lodash/fp/getOr';\nimport map from 'lodash/fp/map';\nimport {\n NovaSolidStatusCheckCircle2 as CheckIcon,\n NovaSolidVoteRewardsVoteHeart as HeartIcon,\n NovaCompositionCoorpacademyInformationIcon as InformationIcon,\n NovaSolidInterfaceFeedbackInterfaceQuestionMark as QuestionIcon,\n NovaLineSelectionCursorsCursorArrowTarget as TargetIcon\n} from '@coorpacademy/nova-icons';\nimport style from './style.css';\nimport propTypes from './prop-types';\n\nconst ICONS = {\n skills: TargetIcon,\n questions: QuestionIcon,\n lifes: HeartIcon,\n allright: CheckIcon\n};\n\nconst getIcon = icon => {\n const Icon = getOr(null, icon, ICONS);\n\n /* istanbul ignore next */\n if (!Icon) {\n return <div className={style.labelIcon} />;\n }\n return <Icon className={style.labelIcon} />;\n};\n\nconst ToolTip = ({tooltipText}) => {\n return (\n <div className={style.tooltipContainer}>\n <div className={style.tooltipIconContainer}>\n <InformationIcon className={style.informationIcon} width={12} height={12} />\n </div>\n <div className={style.toolTip}>\n <div className={style.tooltipText}>{tooltipText}</div>\n </div>\n </div>\n );\n};\n\nconst ReviewPresentation = props => {\n const {'aria-label': ariaLabel, reviewTitle, reviewText, labelsList} = props;\n\n return (\n <div className={style.reviewWrapper} aria-label={ariaLabel}>\n <div\n className={style.reviewTitle}\n // eslint-disable-next-line react/no-danger\n dangerouslySetInnerHTML={{__html: reviewTitle}}\n />\n <div\n className={style.reviewText}\n // eslint-disable-next-line react/no-danger\n dangerouslySetInnerHTML={{__html: reviewText}}\n />\n <ul className={style.reviewListWrapper}>\n {map.convert({cap: false})((label, key) => {\n return (\n <li key={`step-${key}`} className={style.reviewList}>\n <div className={style.reviewListItemWrapper} data-tip data-for=\"reviewListItem\">\n <div className={style.reviewListText}>\n {getIcon(key)} {label.text}\n </div>\n <ToolTip tooltipText={label.tooltipText} />\n </div>\n </li>\n );\n }, labelsList)}\n </ul>\n </div>\n );\n};\n\nToolTip.propTypes = {\n tooltip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ADnB,CAEE;IAFF;IAGE,uBAAuB,EAAE;MAACI,MAAM,EAAEJ;IAAT;EAH3B,EADF,eAME;IACE,SAAS,EAAEX,cAAA,CAAMY,UADnB,CAEE;IAFF;IAGE,uBAAuB,EAAE;MAACG,MAAM,EAAEH;IAAT;EAH3B,EANF,eAWE;IAAI,SAAS,EAAEZ,cAAA,CAAMgB;EAArB,GACGC,YAAA,CAAIC,OAAJ,CAAY;IAACC,GAAG,EAAE;EAAN,CAAZ,EAA0B,CAACC,KAAD,EAAQC,GAAR,KAAgB;IACzC,oBACE;MAAI,GAAG,EAAG,QAAOA,GAAI,EAArB;MAAwB,SAAS,EAAErB,cAAA,CAAMsB;IAAzC,gBACE;MAAK,SAAS,EAAEtB,cAAA,CAAMuB,qBAAtB;MAA6C,gBAA7C;MAAsD,YAAS;IAA/D,gBACE;MAAK,SAAS,EAAEvB,cAAA,CAAMwB;IAAtB,GACG5B,OAAO,CAACyB,GAAD,CADV,OACkBD,KAAK,CAACK,IADxB,CADF,eAIE,6BAAC,OAAD;MAAS,WAAW,EAAEL,KAAK,CAACjB;IAA5B,EAJF,CADF,CADF;EAUD,CAXA,EAWEU,UAXF,CADH,CAXF,CADF;AA4BD,CA/BD;;AAiCAX,OAAO,CAACwB,SAAR,2CAAoB;EAClBvB,WAAW,EAAEwB,kBAAA,CAAUC;AADL,CAApB;AAIApB,kBAAkB,CAACkB,SAAnB,2CAA+BA,mBAA/B;eAEelB,kB"}
1
+ {"version":3,"file":"index.js","names":["ICONS","skills","TargetIcon","questions","QuestionIcon","lifes","HeartIcon","allright","CheckIcon","getIcon","icon","Icon","getOr","style","labelIcon","ToolTip","tooltipText","moreDetailsAriaLabel","tooltipContainer","tooltipIconContainer","informationIcon","toolTip","ReviewPresentation","props","ariaLabel","reviewTitle","reviewText","labelsList","reviewWrapper","__html","reviewListWrapper","map","convert","cap","label","key","reviewList","reviewListItemWrapper","reviewListText","text","propTypes","PropTypes","string"],"sources":["../../../src/atom/review-presentation/index.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport getOr from 'lodash/fp/getOr';\nimport map from 'lodash/fp/map';\nimport {\n NovaSolidStatusCheckCircle2 as CheckIcon,\n NovaSolidVoteRewardsVoteHeart as HeartIcon,\n NovaCompositionCoorpacademyInformationIcon as InformationIcon,\n NovaSolidInterfaceFeedbackInterfaceQuestionMark as QuestionIcon,\n NovaLineSelectionCursorsCursorArrowTarget as TargetIcon\n} from '@coorpacademy/nova-icons';\nimport style from './style.css';\nimport propTypes from './prop-types';\n\nconst ICONS = {\n skills: TargetIcon,\n questions: QuestionIcon,\n lifes: HeartIcon,\n allright: CheckIcon\n};\n\nconst getIcon = icon => {\n const Icon = getOr(null, icon, ICONS);\n\n /* istanbul ignore next */\n if (!Icon) {\n return <div className={style.labelIcon} />;\n }\n return <Icon className={style.labelIcon} />;\n};\n\nconst ToolTip = ({tooltipText, 'aria-label': moreDetailsAriaLabel}) => {\n return (\n <div className={style.tooltipContainer}>\n <div className={style.tooltipIconContainer}>\n <InformationIcon\n className={style.informationIcon}\n width={12}\n height={12}\n aria-label={moreDetailsAriaLabel}\n />\n </div>\n <div className={style.toolTip}>\n <p className={style.tooltipText}>{tooltipText}</p>\n </div>\n </div>\n );\n};\n\nconst ReviewPresentation = props => {\n const {'aria-label': ariaLabel, reviewTitle, reviewText, labelsList} = props;\n return (\n <div className={style.reviewWrapper} aria-label={ariaLabel}>\n <div\n className={style.reviewTitle}\n // eslint-disable-next-line react/no-danger\n dangerouslySetInnerHTML={{__html: reviewTitle}}\n />\n <div\n className={style.reviewText}\n // eslint-disable-next-line react/no-danger\n dangerouslySetInnerHTML={{__html: reviewText}}\n />\n <ul className={style.reviewListWrapper}>\n {map.convert({cap: false})((label, key) => {\n return (\n <li key={`step-${key}`} className={style.reviewList}>\n <div className={style.reviewListItemWrapper} data-tip data-for=\"reviewListItem\">\n <div className={style.reviewListText}>\n {getIcon(key)} {label.text}\n </div>\n <ToolTip tooltipText={label.tooltipText} aria-label={label.moreDetailsAriaLabel} />\n </div>\n </li>\n );\n }, labelsList)}\n </ul>\n </div>\n );\n};\n\nToolTip.propTypes = {\n tooltipText: PropTypes.string,\n 'aria-label': PropTypes.string\n};\n\nReviewPresentation.propTypes = propTypes;\n\nexport default ReviewPresentation;\n"],"mappings":";;;;;AAAA;;AACA;;AACA;;AACA;;AACA;;AAOA;;AACA;;;;AAEA,MAAMA,KAAK,GAAG;EACZC,MAAM,EAAEC,oDADI;EAEZC,SAAS,EAAEC,0DAFC;EAGZC,KAAK,EAAEC,wCAHK;EAIZC,QAAQ,EAAEC;AAJE,CAAd;;AAOA,MAAMC,OAAO,GAAGC,IAAI,IAAI;EACtB,MAAMC,IAAI,GAAG,IAAAC,cAAA,EAAM,IAAN,EAAYF,IAAZ,EAAkBV,KAAlB,CAAb;EAEA;;EACA,IAAI,CAACW,IAAL,EAAW;IACT,oBAAO;MAAK,SAAS,EAAEE,cAAA,CAAMC;IAAtB,EAAP;EACD;;EACD,oBAAO,6BAAC,IAAD;IAAM,SAAS,EAAED,cAAA,CAAMC;EAAvB,EAAP;AACD,CARD;;AAUA,MAAMC,OAAO,GAAG,CAAC;EAACC,WAAD;EAAc,cAAcC;AAA5B,CAAD,KAAuD;EACrE,oBACE;IAAK,SAAS,EAAEJ,cAAA,CAAMK;EAAtB,gBACE;IAAK,SAAS,EAAEL,cAAA,CAAMM;EAAtB,gBACE,6BAAC,qDAAD;IACE,SAAS,EAAEN,cAAA,CAAMO,eADnB;IAEE,KAAK,EAAE,EAFT;IAGE,MAAM,EAAE,EAHV;IAIE,cAAYH;EAJd,EADF,CADF,eASE;IAAK,SAAS,EAAEJ,cAAA,CAAMQ;EAAtB,gBACE;IAAG,SAAS,EAAER,cAAA,CAAMG;EAApB,GAAkCA,WAAlC,CADF,CATF,CADF;AAeD,CAhBD;;AAkBA,MAAMM,kBAAkB,GAAGC,KAAK,IAAI;EAClC,MAAM;IAAC,cAAcC,SAAf;IAA0BC,WAA1B;IAAuCC,UAAvC;IAAmDC;EAAnD,IAAiEJ,KAAvE;EACA,oBACE;IAAK,SAAS,EAAEV,cAAA,CAAMe,aAAtB;IAAqC,cAAYJ;EAAjD,gBACE;IACE,SAAS,EAAEX,cAAA,CAAMY,WADnB,CAEE;IAFF;IAGE,uBAAuB,EAAE;MAACI,MAAM,EAAEJ;IAAT;EAH3B,EADF,eAME;IACE,SAAS,EAAEZ,cAAA,CAAMa,UADnB,CAEE;IAFF;IAGE,uBAAuB,EAAE;MAACG,MAAM,EAAEH;IAAT;EAH3B,EANF,eAWE;IAAI,SAAS,EAAEb,cAAA,CAAMiB;EAArB,GACGC,YAAA,CAAIC,OAAJ,CAAY;IAACC,GAAG,EAAE;EAAN,CAAZ,EAA0B,CAACC,KAAD,EAAQC,GAAR,KAAgB;IACzC,oBACE;MAAI,GAAG,EAAG,QAAOA,GAAI,EAArB;MAAwB,SAAS,EAAEtB,cAAA,CAAMuB;IAAzC,gBACE;MAAK,SAAS,EAAEvB,cAAA,CAAMwB,qBAAtB;MAA6C,gBAA7C;MAAsD,YAAS;IAA/D,gBACE;MAAK,SAAS,EAAExB,cAAA,CAAMyB;IAAtB,GACG7B,OAAO,CAAC0B,GAAD,CADV,OACkBD,KAAK,CAACK,IADxB,CADF,eAIE,6BAAC,OAAD;MAAS,WAAW,EAAEL,KAAK,CAAClB,WAA5B;MAAyC,cAAYkB,KAAK,CAACjB;IAA3D,EAJF,CADF,CADF;EAUD,CAXA,EAWEU,UAXF,CADH,CAXF,CADF;AA4BD,CA9BD;;AAgCAZ,OAAO,CAACyB,SAAR,2CAAoB;EAClBxB,WAAW,EAAEyB,kBAAA,CAAUC,MADL;EAElB,cAAcD,kBAAA,CAAUC;AAFN,CAApB;AAKApB,kBAAkB,CAACkB,SAAnB,2CAA+BA,mBAA/B;eAEelB,kB"}
@@ -9,18 +9,22 @@ declare const propTypes: {
9
9
  skills: PropTypes.Requireable<PropTypes.InferProps<{
10
10
  text: PropTypes.Requireable<string>;
11
11
  tooltipText: PropTypes.Requireable<string>;
12
+ moreDetailsAreaLabel: PropTypes.Requireable<string>;
12
13
  }>>;
13
14
  questions: PropTypes.Requireable<PropTypes.InferProps<{
14
15
  text: PropTypes.Requireable<string>;
15
16
  tooltipText: PropTypes.Requireable<string>;
17
+ moreDetailsAreaLabel: PropTypes.Requireable<string>;
16
18
  }>>;
17
19
  lifes: PropTypes.Requireable<PropTypes.InferProps<{
18
20
  text: PropTypes.Requireable<string>;
19
21
  tooltipText: PropTypes.Requireable<string>;
22
+ moreDetailsAreaLabel: PropTypes.Requireable<string>;
20
23
  }>>;
21
24
  allright: PropTypes.Requireable<PropTypes.InferProps<{
22
25
  text: PropTypes.Requireable<string>;
23
26
  tooltipText: PropTypes.Requireable<string>;
27
+ moreDetailsAreaLabel: PropTypes.Requireable<string>;
24
28
  }>>;
25
29
  }>>;
26
30
  };
@@ -40,18 +44,22 @@ export declare type OnboardingProps = {
40
44
  skills?: {
41
45
  text?: string | undefined;
42
46
  tooltipText?: string | undefined;
47
+ 'aria-label'?: string | undefined;
43
48
  } | undefined;
44
49
  questions?: {
45
50
  text?: string | undefined;
46
51
  tooltipText?: string | undefined;
52
+ 'aria-label'?: string | undefined;
47
53
  };
48
54
  lifes?: {
49
55
  text?: string | undefined;
50
56
  tooltipText?: string | undefined;
57
+ 'aria-label'?: string | undefined;
51
58
  } | undefined;
52
59
  allright?: {
53
60
  text?: string | undefined;
54
61
  tooltipText?: string | undefined;
62
+ 'aria-label'?: string | undefined;
55
63
  } | undefined;
56
64
  };
57
65
  onPress: (event: GestureResponderEvent) => void;
@@ -1 +1 @@
1
- {"version":3,"file":"prop-types.d.ts","sourceRoot":"","sources":["../../../src/atom/review-presentation/prop-types.ts"],"names":[],"mappings":";AAAA,OAAO,SAAS,MAAM,YAAY,CAAC;AACnC,OAAO,EAAC,UAAU,EAAE,qBAAqB,EAAE,SAAS,EAAC,MAAM,cAAc,CAAC;AAO1E,QAAA,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;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AAY,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;SACnC,GACD,SAAS,CAAC;KACf,CAAC;IACF,OAAO,EAAE,CAAC,KAAK,EAAE,qBAAqB,KAAK,IAAI,CAAC;CACjD,CAAC;AAEF,oBAAY,QAAQ,GAAG;IACrB,IAAI,EAAE,MAAM,GAAG,SAAS,CAAC;IACzB,IAAI,EAAE,KAAK,CAAC,EAAE,CAAC;QAAC,MAAM,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,SAAS,CAAC;QAAC,KAAK,EAAE,UAAU,CAAA;KAAC,CAAC,CAAC;CACtF,CAAC"}
@@ -9,7 +9,8 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
9
9
 
10
10
  const levelItem = _propTypes.default.shape({
11
11
  text: _propTypes.default.string,
12
- tooltipText: _propTypes.default.string
12
+ tooltipText: _propTypes.default.string,
13
+ moreDetailsAreaLabel: _propTypes.default.string
13
14
  });
14
15
 
15
16
  const propTypes = {
@@ -1 +1 @@
1
- {"version":3,"file":"prop-types.js","names":["levelItem","PropTypes","shape","text","string","tooltipText","propTypes","reviewTitle","reviewText","labelsList","skills","questions","lifes","allright","OnboardingPropsTypes","onPress","func","TipPropsTypes","Icon","any"],"sources":["../../../src/atom/review-presentation/prop-types.ts"],"sourcesContent":["import PropTypes from 'prop-types';\nimport {ColorValue, GestureResponderEvent, ViewStyle} from 'react-native';\n\nconst levelItem = PropTypes.shape({\n text: PropTypes.string,\n tooltipText: PropTypes.string\n});\n\nconst propTypes = {\n 'aria-label': PropTypes.string,\n reviewTitle: PropTypes.string,\n reviewText: PropTypes.string,\n labelsList: PropTypes.shape({\n skills: levelItem,\n questions: levelItem,\n lifes: levelItem,\n allright: levelItem\n })\n};\n\nexport default propTypes;\n\nexport const OnboardingPropsTypes = {\n onPress: PropTypes.func\n};\n\nexport const TipPropsTypes = {\n text: PropTypes.string,\n Icon: PropTypes.any\n};\n\nexport type OnboardingProps = {\n 'aria-label'?: string | undefined;\n reviewTitle?: string | undefined;\n reviewText?: string | undefined;\n labelsList?: {\n skills?:\n | {\n text?: string | undefined;\n tooltipText?: string | undefined;\n }\n | undefined;\n questions?: {\n text?: string | undefined;\n tooltipText?: string | undefined;\n };\n lifes?:\n | {\n text?: string | undefined;\n tooltipText?: string | undefined;\n }\n | undefined;\n allright?:\n | {\n text?: string | undefined;\n tooltipText?: string | undefined;\n }\n | undefined;\n };\n onPress: (event: GestureResponderEvent) => void;\n};\n\nexport type TipProps = {\n text: string | undefined;\n Icon: React.FC<{height: number; width: number; style: ViewStyle; color: ColorValue}>;\n};\n"],"mappings":";;;;;AAAA;;;;AAGA,MAAMA,SAAS,GAAGC,kBAAA,CAAUC,KAAV,CAAgB;EAChCC,IAAI,EAAEF,kBAAA,CAAUG,MADgB;EAEhCC,WAAW,EAAEJ,kBAAA,CAAUG;AAFS,CAAhB,CAAlB;;AAKA,MAAME,SAAS,GAAG;EAChB,cAAcL,kBAAA,CAAUG,MADR;EAEhBG,WAAW,EAAEN,kBAAA,CAAUG,MAFP;EAGhBI,UAAU,EAAEP,kBAAA,CAAUG,MAHN;EAIhBK,UAAU,EAAER,kBAAA,CAAUC,KAAV,CAAgB;IAC1BQ,MAAM,EAAEV,SADkB;IAE1BW,SAAS,EAAEX,SAFe;IAG1BY,KAAK,EAAEZ,SAHmB;IAI1Ba,QAAQ,EAAEb;EAJgB,CAAhB;AAJI,CAAlB;eAYeM,S;;AAER,MAAMQ,oBAAoB,GAAG;EAClCC,OAAO,EAAEd,kBAAA,CAAUe;AADe,CAA7B;;AAIA,MAAMC,aAAa,GAAG;EAC3Bd,IAAI,EAAEF,kBAAA,CAAUG,MADW;EAE3Bc,IAAI,EAAEjB,kBAAA,CAAUkB;AAFW,CAAtB"}
1
+ {"version":3,"file":"prop-types.js","names":["levelItem","PropTypes","shape","text","string","tooltipText","moreDetailsAreaLabel","propTypes","reviewTitle","reviewText","labelsList","skills","questions","lifes","allright","OnboardingPropsTypes","onPress","func","TipPropsTypes","Icon","any"],"sources":["../../../src/atom/review-presentation/prop-types.ts"],"sourcesContent":["import PropTypes from 'prop-types';\nimport {ColorValue, GestureResponderEvent, ViewStyle} from 'react-native';\n\nconst levelItem = PropTypes.shape({\n text: PropTypes.string,\n tooltipText: PropTypes.string,\n moreDetailsAreaLabel: PropTypes.string\n});\n\nconst propTypes = {\n 'aria-label': PropTypes.string,\n reviewTitle: PropTypes.string,\n reviewText: PropTypes.string,\n labelsList: PropTypes.shape({\n skills: levelItem,\n questions: levelItem,\n lifes: levelItem,\n allright: levelItem\n })\n};\n\nexport default propTypes;\n\nexport const OnboardingPropsTypes = {\n onPress: PropTypes.func\n};\n\nexport const TipPropsTypes = {\n text: PropTypes.string,\n Icon: PropTypes.any\n};\n\nexport type OnboardingProps = {\n 'aria-label'?: string | undefined;\n reviewTitle?: string | undefined;\n reviewText?: string | undefined;\n labelsList?: {\n skills?:\n | {\n text?: string | undefined;\n tooltipText?: string | undefined;\n 'aria-label'?: string | undefined;\n }\n | undefined;\n questions?: {\n text?: string | undefined;\n tooltipText?: string | undefined;\n 'aria-label'?: string | undefined;\n };\n lifes?:\n | {\n text?: string | undefined;\n tooltipText?: string | undefined;\n 'aria-label'?: string | undefined;\n }\n | undefined;\n allright?:\n | {\n text?: string | undefined;\n tooltipText?: string | undefined;\n 'aria-label'?: string | undefined;\n }\n | undefined;\n };\n onPress: (event: GestureResponderEvent) => void;\n};\n\nexport type TipProps = {\n text: string | undefined;\n Icon: React.FC<{height: number; width: number; style: ViewStyle; color: ColorValue}>;\n};\n"],"mappings":";;;;;AAAA;;;;AAGA,MAAMA,SAAS,GAAGC,kBAAA,CAAUC,KAAV,CAAgB;EAChCC,IAAI,EAAEF,kBAAA,CAAUG,MADgB;EAEhCC,WAAW,EAAEJ,kBAAA,CAAUG,MAFS;EAGhCE,oBAAoB,EAAEL,kBAAA,CAAUG;AAHA,CAAhB,CAAlB;;AAMA,MAAMG,SAAS,GAAG;EAChB,cAAcN,kBAAA,CAAUG,MADR;EAEhBI,WAAW,EAAEP,kBAAA,CAAUG,MAFP;EAGhBK,UAAU,EAAER,kBAAA,CAAUG,MAHN;EAIhBM,UAAU,EAAET,kBAAA,CAAUC,KAAV,CAAgB;IAC1BS,MAAM,EAAEX,SADkB;IAE1BY,SAAS,EAAEZ,SAFe;IAG1Ba,KAAK,EAAEb,SAHmB;IAI1Bc,QAAQ,EAAEd;EAJgB,CAAhB;AAJI,CAAlB;eAYeO,S;;AAER,MAAMQ,oBAAoB,GAAG;EAClCC,OAAO,EAAEf,kBAAA,CAAUgB;AADe,CAA7B;;AAIA,MAAMC,aAAa,GAAG;EAC3Bf,IAAI,EAAEF,kBAAA,CAAUG,MADW;EAE3Be,IAAI,EAAElB,kBAAA,CAAUmB;AAFW,CAAtB"}
@@ -31,27 +31,26 @@ declare namespace Select {
31
31
  }>;
32
32
  }>>;
33
33
  }
34
- namespace propTypes {
35
- export const title: PropTypes.Requireable<string>;
36
- export const moreAriaLabel: PropTypes.Requireable<string>;
37
- const name_1: PropTypes.Requireable<string>;
38
- export { name_1 as name };
39
- export const className: PropTypes.Requireable<string>;
40
- export const borderClassName: PropTypes.Requireable<string>;
41
- export const disabled: PropTypes.Requireable<boolean>;
42
- export const multiple: PropTypes.Requireable<boolean>;
43
- export const description: PropTypes.Requireable<string>;
44
- export const required: PropTypes.Requireable<boolean>;
45
- export const onChange: PropTypes.Requireable<(...args: any[]) => any>;
46
- export const theme: PropTypes.Requireable<string>;
47
- export const options: PropTypes.Requireable<(PropTypes.InferProps<{
34
+ const propTypes: {
35
+ title: PropTypes.Requireable<string>;
36
+ name: PropTypes.Requireable<string>;
37
+ className: PropTypes.Requireable<string>;
38
+ borderClassName: PropTypes.Requireable<string>;
39
+ disabled: PropTypes.Requireable<boolean>;
40
+ multiple: PropTypes.Requireable<boolean>;
41
+ description: PropTypes.Requireable<string>;
42
+ required: PropTypes.Requireable<boolean>;
43
+ onChange: PropTypes.Requireable<(...args: any[]) => any>;
44
+ theme: PropTypes.Requireable<string>;
45
+ options: PropTypes.Requireable<(PropTypes.InferProps<{
48
46
  name: PropTypes.Validator<string>;
49
47
  value: PropTypes.Requireable<NonNullable<string | number | null | undefined>>;
50
48
  selected: PropTypes.Requireable<boolean>;
51
49
  validOption: PropTypes.Requireable<boolean>;
52
50
  }> | null | undefined)[]>;
53
- export const modified: PropTypes.Requireable<boolean>;
54
- export const error: PropTypes.Requireable<boolean>;
55
- }
51
+ modified: PropTypes.Requireable<boolean>;
52
+ error: PropTypes.Requireable<boolean>;
53
+ 'aria-label': PropTypes.Requireable<string>;
54
+ };
56
55
  }
57
56
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/atom/select/index.js"],"names":[],"mappings":";;;;;;;;AA6BA,qEA4JC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/atom/select/index.js"],"names":[],"mappings":";;;;;;;;AA6BA,qEA6JC"}