@coorpacademy/components 11.11.1-alpha.0 → 11.11.1-alpha.3

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 (232) hide show
  1. package/es/atom/input-search/index.d.ts.map +1 -1
  2. package/es/atom/input-search/index.js +1 -0
  3. package/es/atom/input-search/index.js.map +1 -1
  4. package/es/atom/input-switch/index.d.ts +2 -0
  5. package/es/atom/input-switch/index.d.ts.map +1 -1
  6. package/es/atom/input-switch/index.js +23 -11
  7. package/es/atom/input-switch/index.js.map +1 -1
  8. package/es/atom/select/index.d.ts +1 -0
  9. package/es/atom/select/index.d.ts.map +1 -1
  10. package/es/atom/select/index.js +13 -8
  11. package/es/atom/select/index.js.map +1 -1
  12. package/{lib/atom/review-header-step-item → es/atom/status-item}/index.d.ts +4 -4
  13. package/es/atom/status-item/index.d.ts.map +1 -0
  14. package/es/atom/status-item/index.js +104 -0
  15. package/es/atom/status-item/index.js.map +1 -0
  16. package/es/atom/status-item/index.native.d.ts +5 -0
  17. package/es/atom/status-item/index.native.d.ts.map +1 -0
  18. package/es/atom/{review-header-step-item → status-item}/index.native.js +2 -2
  19. package/es/atom/status-item/index.native.js.map +1 -0
  20. package/es/atom/{review-header-step-item → status-item}/style.css +47 -0
  21. package/es/atom/{review-header-step-item → status-item}/types.d.ts +5 -5
  22. package/es/atom/status-item/types.d.ts.map +1 -0
  23. package/es/atom/{review-header-step-item → status-item}/types.js +1 -1
  24. package/es/atom/status-item/types.js.map +1 -0
  25. package/es/atom/tooltip/index.d.ts +1 -3
  26. package/es/atom/tooltip/index.d.ts.map +1 -1
  27. package/es/atom/tooltip/index.js +7 -17
  28. package/es/atom/tooltip/index.js.map +1 -1
  29. package/es/atom/tooltip/style.css +2 -10
  30. package/es/globals.d.js.map +1 -1
  31. package/es/molecule/brand-form-group/index.d.ts +8 -0
  32. package/es/molecule/cm-popin/types.d.ts +2 -0
  33. package/es/molecule/cm-popin/types.d.ts.map +1 -1
  34. package/es/molecule/draggable-list/index.d.ts +2 -0
  35. package/es/molecule/filters/filters-wrapper.d.ts.map +1 -1
  36. package/es/molecule/filters/filters-wrapper.js +4 -1
  37. package/es/molecule/filters/filters-wrapper.js.map +1 -1
  38. package/es/molecule/filters/index.d.ts +2 -0
  39. package/es/molecule/filters/index.d.ts.map +1 -1
  40. package/es/molecule/filters/index.js +10 -3
  41. package/es/molecule/filters/index.js.map +1 -1
  42. package/es/molecule/review-header-steps/index.js +2 -2
  43. package/es/molecule/review-header-steps/index.js.map +1 -1
  44. package/es/molecule/review-header-steps/prop-types.d.ts +2 -2
  45. package/es/molecule/review-header-steps/prop-types.d.ts.map +1 -1
  46. package/es/molecule/review-header-steps/prop-types.js +1 -1
  47. package/es/molecule/review-header-steps/prop-types.js.map +1 -1
  48. package/es/molecule/setup-section/index.d.ts +2 -0
  49. package/es/molecule/setup-section/index.d.ts.map +1 -1
  50. package/es/molecule/setup-sections/index.d.ts +2 -0
  51. package/es/molecule/setup-slide/index.d.ts +3 -0
  52. package/es/molecule/setup-slider/index.d.ts +3 -0
  53. package/es/organism/brand-form/index.d.ts +8 -0
  54. package/es/organism/mooc-header/index.d.ts.map +1 -1
  55. package/es/organism/mooc-header/index.js +4 -1
  56. package/es/organism/mooc-header/index.js.map +1 -1
  57. package/es/organism/review-header/index.native.js +1 -1
  58. package/es/organism/review-header/index.native.js.map +1 -1
  59. package/es/organism/review-header/types.d.ts +2 -2
  60. package/es/organism/review-header/types.d.ts.map +1 -1
  61. package/es/organism/review-header/types.js.map +1 -1
  62. package/es/organism/user-preferences/index.d.ts +2 -0
  63. package/es/organism/wizard-contents/index.d.ts +8 -0
  64. package/es/template/activity/index.d.ts +12 -11
  65. package/es/template/activity/index.d.ts.map +1 -1
  66. package/es/template/activity/index.js +6 -3
  67. package/es/template/activity/index.js.map +1 -1
  68. package/es/template/app-player/loading/index.d.ts +2 -0
  69. package/es/template/app-player/player/index.d.ts +4 -0
  70. package/es/template/app-player/player/slides/index.d.ts +2 -0
  71. package/es/template/app-player/player/slides/index.d.ts.map +1 -1
  72. package/es/template/app-player/popin-correction/index.d.ts +2 -0
  73. package/es/template/app-player/popin-correction/index.d.ts.map +1 -1
  74. package/es/template/app-player/popin-end/index.d.ts +2 -0
  75. package/es/template/app-review/index.d.ts +2 -0
  76. package/es/template/app-review/index.d.ts.map +1 -1
  77. package/es/template/app-review/player/prop-types.d.ts +2 -0
  78. package/es/template/app-review/player/prop-types.d.ts.map +1 -1
  79. package/es/template/app-review/prop-types.d.ts +2 -0
  80. package/es/template/app-review/prop-types.d.ts.map +1 -1
  81. package/es/template/back-office/brand-update/index.d.ts +18 -0
  82. package/es/template/common/dashboard/index.d.ts +2 -0
  83. package/es/template/common/search-page/index.d.ts +3 -0
  84. package/es/template/common/search-page/index.d.ts.map +1 -1
  85. package/es/template/common/search-page/index.js +6 -3
  86. package/es/template/common/search-page/index.js.map +1 -1
  87. package/lib/atom/input-search/index.d.ts.map +1 -1
  88. package/lib/atom/input-search/index.js +1 -0
  89. package/lib/atom/input-search/index.js.map +1 -1
  90. package/lib/atom/input-switch/index.d.ts +2 -0
  91. package/lib/atom/input-switch/index.d.ts.map +1 -1
  92. package/lib/atom/input-switch/index.js +22 -11
  93. package/lib/atom/input-switch/index.js.map +1 -1
  94. package/lib/atom/select/index.d.ts +1 -0
  95. package/lib/atom/select/index.d.ts.map +1 -1
  96. package/lib/atom/select/index.js +13 -8
  97. package/lib/atom/select/index.js.map +1 -1
  98. package/{es/atom/review-header-step-item → lib/atom/status-item}/index.d.ts +4 -4
  99. package/lib/atom/status-item/index.d.ts.map +1 -0
  100. package/lib/atom/{review-header-step-item → status-item}/index.js +50 -23
  101. package/lib/atom/status-item/index.js.map +1 -0
  102. package/lib/atom/status-item/index.native.d.ts +5 -0
  103. package/lib/atom/status-item/index.native.d.ts.map +1 -0
  104. package/lib/atom/{review-header-step-item → status-item}/index.native.js +2 -2
  105. package/lib/atom/status-item/index.native.js.map +1 -0
  106. package/lib/atom/{review-header-step-item → status-item}/style.css +47 -0
  107. package/lib/atom/{review-header-step-item → status-item}/types.d.ts +5 -5
  108. package/lib/atom/status-item/types.d.ts.map +1 -0
  109. package/lib/atom/{review-header-step-item → status-item}/types.js +1 -1
  110. package/lib/atom/status-item/types.js.map +1 -0
  111. package/lib/atom/tooltip/index.d.ts +1 -3
  112. package/lib/atom/tooltip/index.d.ts.map +1 -1
  113. package/lib/atom/tooltip/index.js +7 -18
  114. package/lib/atom/tooltip/index.js.map +1 -1
  115. package/lib/atom/tooltip/style.css +2 -10
  116. package/lib/globals.d.js.map +1 -1
  117. package/lib/molecule/brand-form-group/index.d.ts +8 -0
  118. package/lib/molecule/cm-popin/types.d.ts +2 -0
  119. package/lib/molecule/cm-popin/types.d.ts.map +1 -1
  120. package/lib/molecule/draggable-list/index.d.ts +2 -0
  121. package/lib/molecule/filters/filters-wrapper.d.ts.map +1 -1
  122. package/lib/molecule/filters/filters-wrapper.js +4 -1
  123. package/lib/molecule/filters/filters-wrapper.js.map +1 -1
  124. package/lib/molecule/filters/index.d.ts +2 -0
  125. package/lib/molecule/filters/index.d.ts.map +1 -1
  126. package/lib/molecule/filters/index.js +9 -3
  127. package/lib/molecule/filters/index.js.map +1 -1
  128. package/lib/molecule/review-header-steps/index.js +2 -2
  129. package/lib/molecule/review-header-steps/index.js.map +1 -1
  130. package/lib/molecule/review-header-steps/prop-types.d.ts +2 -2
  131. package/lib/molecule/review-header-steps/prop-types.d.ts.map +1 -1
  132. package/lib/molecule/review-header-steps/prop-types.js +1 -1
  133. package/lib/molecule/review-header-steps/prop-types.js.map +1 -1
  134. package/lib/molecule/setup-section/index.d.ts +2 -0
  135. package/lib/molecule/setup-section/index.d.ts.map +1 -1
  136. package/lib/molecule/setup-sections/index.d.ts +2 -0
  137. package/lib/molecule/setup-slide/index.d.ts +3 -0
  138. package/lib/molecule/setup-slider/index.d.ts +3 -0
  139. package/lib/organism/brand-form/index.d.ts +8 -0
  140. package/lib/organism/mooc-header/index.d.ts.map +1 -1
  141. package/lib/organism/mooc-header/index.js +4 -1
  142. package/lib/organism/mooc-header/index.js.map +1 -1
  143. package/lib/organism/review-header/index.native.js +1 -1
  144. package/lib/organism/review-header/index.native.js.map +1 -1
  145. package/lib/organism/review-header/types.d.ts +2 -2
  146. package/lib/organism/review-header/types.d.ts.map +1 -1
  147. package/lib/organism/review-header/types.js.map +1 -1
  148. package/lib/organism/user-preferences/index.d.ts +2 -0
  149. package/lib/organism/wizard-contents/index.d.ts +8 -0
  150. package/lib/template/activity/index.d.ts +12 -11
  151. package/lib/template/activity/index.d.ts.map +1 -1
  152. package/lib/template/activity/index.js +6 -3
  153. package/lib/template/activity/index.js.map +1 -1
  154. package/lib/template/app-player/loading/index.d.ts +2 -0
  155. package/lib/template/app-player/player/index.d.ts +4 -0
  156. package/lib/template/app-player/player/slides/index.d.ts +2 -0
  157. package/lib/template/app-player/player/slides/index.d.ts.map +1 -1
  158. package/lib/template/app-player/popin-correction/index.d.ts +2 -0
  159. package/lib/template/app-player/popin-correction/index.d.ts.map +1 -1
  160. package/lib/template/app-player/popin-end/index.d.ts +2 -0
  161. package/lib/template/app-review/index.d.ts +2 -0
  162. package/lib/template/app-review/index.d.ts.map +1 -1
  163. package/lib/template/app-review/player/prop-types.d.ts +2 -0
  164. package/lib/template/app-review/player/prop-types.d.ts.map +1 -1
  165. package/lib/template/app-review/prop-types.d.ts +2 -0
  166. package/lib/template/app-review/prop-types.d.ts.map +1 -1
  167. package/lib/template/back-office/brand-update/index.d.ts +18 -0
  168. package/lib/template/common/dashboard/index.d.ts +2 -0
  169. package/lib/template/common/search-page/index.d.ts +3 -0
  170. package/lib/template/common/search-page/index.d.ts.map +1 -1
  171. package/lib/template/common/search-page/index.js +6 -3
  172. package/lib/template/common/search-page/index.js.map +1 -1
  173. package/locales/bs/global.json +0 -2
  174. package/locales/cs/global.json +0 -2
  175. package/locales/de/global.json +0 -2
  176. package/locales/en/global.json +8 -5
  177. package/locales/es/global.json +0 -2
  178. package/locales/et/global.json +0 -2
  179. package/locales/fr/global.json +0 -2
  180. package/locales/hr/global.json +0 -2
  181. package/locales/hu/global.json +0 -2
  182. package/locales/hy/global.json +0 -2
  183. package/locales/it/global.json +0 -2
  184. package/locales/ja/global.json +0 -2
  185. package/locales/ko/global.json +0 -2
  186. package/locales/nl/global.json +0 -2
  187. package/locales/pl/global.json +0 -2
  188. package/locales/pt/global.json +0 -2
  189. package/locales/ro/global.json +0 -2
  190. package/locales/ru/global.json +0 -2
  191. package/locales/sk/global.json +0 -2
  192. package/locales/th/global.json +0 -2
  193. package/locales/tl/global.json +0 -2
  194. package/locales/tr/global.json +0 -2
  195. package/locales/uk/global.json +0 -2
  196. package/locales/vi/global.json +0 -2
  197. package/locales/zh/global.json +0 -2
  198. package/locales/zh_TW/global.json +0 -2
  199. package/package.json +3 -3
  200. package/es/atom/battle-opponent/index.d.ts +0 -19
  201. package/es/atom/battle-opponent/index.d.ts.map +0 -1
  202. package/es/atom/battle-opponent/index.js +0 -52
  203. package/es/atom/battle-opponent/index.js.map +0 -1
  204. package/es/atom/battle-opponent/prop-types.d.ts +0 -19
  205. package/es/atom/battle-opponent/prop-types.d.ts.map +0 -1
  206. package/es/atom/battle-opponent/prop-types.js +0 -11
  207. package/es/atom/battle-opponent/prop-types.js.map +0 -1
  208. package/es/atom/battle-opponent/style.css +0 -126
  209. package/es/atom/review-header-step-item/index.d.ts.map +0 -1
  210. package/es/atom/review-header-step-item/index.js +0 -77
  211. package/es/atom/review-header-step-item/index.js.map +0 -1
  212. package/es/atom/review-header-step-item/index.native.d.ts +0 -5
  213. package/es/atom/review-header-step-item/index.native.d.ts.map +0 -1
  214. package/es/atom/review-header-step-item/index.native.js.map +0 -1
  215. package/es/atom/review-header-step-item/types.d.ts.map +0 -1
  216. package/es/atom/review-header-step-item/types.js.map +0 -1
  217. package/lib/atom/battle-opponent/index.d.ts +0 -19
  218. package/lib/atom/battle-opponent/index.d.ts.map +0 -1
  219. package/lib/atom/battle-opponent/index.js +0 -70
  220. package/lib/atom/battle-opponent/index.js.map +0 -1
  221. package/lib/atom/battle-opponent/prop-types.d.ts +0 -19
  222. package/lib/atom/battle-opponent/prop-types.d.ts.map +0 -1
  223. package/lib/atom/battle-opponent/prop-types.js +0 -20
  224. package/lib/atom/battle-opponent/prop-types.js.map +0 -1
  225. package/lib/atom/battle-opponent/style.css +0 -126
  226. package/lib/atom/review-header-step-item/index.d.ts.map +0 -1
  227. package/lib/atom/review-header-step-item/index.js.map +0 -1
  228. package/lib/atom/review-header-step-item/index.native.d.ts +0 -5
  229. package/lib/atom/review-header-step-item/index.native.d.ts.map +0 -1
  230. package/lib/atom/review-header-step-item/index.native.js.map +0 -1
  231. package/lib/atom/review-header-step-item/types.d.ts.map +0 -1
  232. package/lib/atom/review-header-step-item/types.js.map +0 -1
@@ -129,6 +129,8 @@ declare class PopinCorrection extends React.Component<any, any, any> {
129
129
  disabled: PropTypes.Requireable<boolean>;
130
130
  onChange: PropTypes.Requireable<(...args: any[]) => any>;
131
131
  description: PropTypes.Requireable<string>;
132
+ 'aria-labelledby': PropTypes.Requireable<string>;
133
+ 'aria-label': PropTypes.Requireable<string>;
132
134
  modified: PropTypes.Requireable<boolean>;
133
135
  titlePosition: PropTypes.Requireable<string>;
134
136
  theme: PropTypes.Requireable<string>;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/template/app-player/popin-correction/index.js"],"names":[],"mappings":";AAmGA;IACE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAmBE;IAEF;;;;;;;;;;;;;;;;;;;;;;MAEE;IAEF,wBAIC;IAFC;;MAA0B;IAkB5B,gCAEC;IAhBD,0BAEC;IAED,kBAQC;IALC,gCAIE;IAIF,aAAsB;IAGxB,sBAsEC;CACF"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/template/app-player/popin-correction/index.js"],"names":[],"mappings":";AAmGA;IACE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAmBE;IAEF;;;;;;;;;;;;;;;;;;;;;;MAEE;IAEF,wBAIC;IAFC;;MAA0B;IAkB5B,gCAEC;IAhBD,0BAEC;IAED,kBAQC;IALC,gCAIE;IAIF,aAAsB;IAGxB,sBAsEC;CACF"}
@@ -170,6 +170,8 @@ declare namespace PopinEnd {
170
170
  disabled: PropTypes.Requireable<boolean>;
171
171
  onChange: PropTypes.Requireable<(...args: any[]) => any>;
172
172
  description: PropTypes.Requireable<string>;
173
+ 'aria-labelledby': PropTypes.Requireable<string>;
174
+ 'aria-label': PropTypes.Requireable<string>;
173
175
  modified: PropTypes.Requireable<boolean>;
174
176
  titlePosition: PropTypes.Requireable<string>;
175
177
  theme: PropTypes.Requireable<string>;
@@ -548,6 +548,8 @@ declare const AppReview: {
548
548
  disabled: import("prop-types").Requireable<boolean>;
549
549
  onChange: import("prop-types").Requireable<(...args: any[]) => any>;
550
550
  description: import("prop-types").Requireable<string>;
551
+ 'aria-labelledby': import("prop-types").Requireable<string>;
552
+ 'aria-label': import("prop-types").Requireable<string>;
551
553
  modified: import("prop-types").Requireable<boolean>;
552
554
  titlePosition: import("prop-types").Requireable<string>;
553
555
  theme: import("prop-types").Requireable<string>;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/template/app-review/index.tsx"],"names":[],"mappings":";AAGA,OAAkB,EAAC,cAAc,EAAC,MAAM,cAAc,CAAC;AAEvD,QAAA,MAAM,SAAS;2BAAwB,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAOpD,CAAC;AAIF,eAAe,SAAS,CAAC"}
@@ -548,6 +548,8 @@ declare const propTypes: {
548
548
  disabled: PropTypes.Requireable<boolean>;
549
549
  onChange: PropTypes.Requireable<(...args: any[]) => any>;
550
550
  description: PropTypes.Requireable<string>;
551
+ 'aria-labelledby': PropTypes.Requireable<string>;
552
+ 'aria-label': PropTypes.Requireable<string>;
551
553
  modified: PropTypes.Requireable<boolean>;
552
554
  titlePosition: PropTypes.Requireable<string>;
553
555
  theme: PropTypes.Requireable<string>;
@@ -1 +1 @@
1
- {"version":3,"file":"prop-types.d.ts","sourceRoot":"","sources":["../../../../src/template/app-review/player/prop-types.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,YAAY,CAAC;AACnC,OAAO,KAAK,EAAC,mBAAmB,EAAC,MAAM,cAAc,CAAC;AACtD,OAAO,EAAC,YAAY,EAAC,MAAM,kCAAkC,CAAC;AAC9D,OAAgC,EAC9B,mBAAmB,EACpB,MAAM,8CAA8C,CAAC;AAEtD,OAA8B,EAAC,WAAW,EAAC,MAAM,uCAAuC,CAAC;AAEzF,OAA+B,EAC7B,gBAAgB,EACjB,MAAM,oDAAoD,CAAC;AAE5D,QAAA,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAKd,CAAC;AAEF,eAAe,SAAS,CAAC;AAEzB,oBAAY,iBAAiB,GAAG;IAC9B,MAAM,EAAE,WAAW,CAAC;IACpB,KAAK,EAAE,gBAAgB,CAAC;IACxB,eAAe,CAAC,EAAE,mBAAmB,CAAC;IACtC,QAAQ,CAAC,EAAE,mBAAmB,CAAC;IAC/B,SAAS,CAAC,EAAE,YAAY,CAAC;CAC1B,CAAC"}
@@ -552,6 +552,8 @@ declare const propTypes: {
552
552
  disabled: PropTypes.Requireable<boolean>;
553
553
  onChange: PropTypes.Requireable<(...args: any[]) => any>;
554
554
  description: PropTypes.Requireable<string>;
555
+ 'aria-labelledby': PropTypes.Requireable<string>;
556
+ 'aria-label': PropTypes.Requireable<string>;
555
557
  modified: PropTypes.Requireable<boolean>;
556
558
  titlePosition: PropTypes.Requireable<string>;
557
559
  theme: PropTypes.Requireable<string>;
@@ -1 +1 @@
1
- {"version":3,"file":"prop-types.d.ts","sourceRoot":"","sources":["../../../src/template/app-review/prop-types.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM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AAE3C,oBAAY,cAAc,GAAG;IAC3B,QAAQ,EAAE,QAAQ,CAAC;IACnB,MAAM,CAAC,EAAE,iBAAiB,CAAC;IAC3B,YAAY,CAAC,EAAE,MAAM,IAAI,CAAC;CAC3B,CAAC;AAEF,QAAA,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAGd,CAAC;AAEF,eAAe,SAAS,CAAC"}
@@ -188,6 +188,8 @@ declare namespace BrandUpdate {
188
188
  disabled: PropTypes.Requireable<boolean>;
189
189
  onChange: PropTypes.Requireable<(...args: any[]) => any>;
190
190
  description: PropTypes.Requireable<string>;
191
+ 'aria-labelledby': PropTypes.Requireable<string>;
192
+ 'aria-label': PropTypes.Requireable<string>;
191
193
  modified: PropTypes.Requireable<boolean>;
192
194
  titlePosition: PropTypes.Requireable<string>;
193
195
  theme: PropTypes.Requireable<string>;
@@ -241,6 +243,7 @@ declare namespace BrandUpdate {
241
243
  modified: PropTypes.Requireable<boolean>;
242
244
  error: PropTypes.Requireable<boolean>;
243
245
  'aria-label': PropTypes.Requireable<string>;
246
+ 'aria-labelledby': PropTypes.Requireable<string>;
244
247
  }> | PropTypes.InferProps<{
245
248
  type: PropTypes.Requireable<string>;
246
249
  title: PropTypes.Validator<string>;
@@ -320,6 +323,8 @@ declare namespace BrandUpdate {
320
323
  disabled: PropTypes.Requireable<boolean>;
321
324
  onChange: PropTypes.Requireable<(...args: any[]) => any>;
322
325
  description: PropTypes.Requireable<string>;
326
+ 'aria-labelledby': PropTypes.Requireable<string>;
327
+ 'aria-label': PropTypes.Requireable<string>;
323
328
  modified: PropTypes.Requireable<boolean>;
324
329
  titlePosition: PropTypes.Requireable<string>;
325
330
  theme: PropTypes.Requireable<string>;
@@ -356,6 +361,7 @@ declare namespace BrandUpdate {
356
361
  modified: PropTypes.Requireable<boolean>;
357
362
  error: PropTypes.Requireable<boolean>;
358
363
  'aria-label': PropTypes.Requireable<string>;
364
+ 'aria-labelledby': PropTypes.Requireable<string>;
359
365
  }> | PropTypes.InferProps<{
360
366
  type: PropTypes.Requireable<string>;
361
367
  title: PropTypes.Validator<string>;
@@ -460,6 +466,8 @@ declare namespace BrandUpdate {
460
466
  disabled: PropTypes.Requireable<boolean>;
461
467
  onChange: PropTypes.Requireable<(...args: any[]) => any>;
462
468
  description: PropTypes.Requireable<string>;
469
+ 'aria-labelledby': PropTypes.Requireable<string>;
470
+ 'aria-label': PropTypes.Requireable<string>;
463
471
  modified: PropTypes.Requireable<boolean>;
464
472
  titlePosition: PropTypes.Requireable<string>;
465
473
  theme: PropTypes.Requireable<string>;
@@ -834,6 +842,8 @@ declare namespace BrandUpdate {
834
842
  disabled: PropTypes.Requireable<boolean>;
835
843
  onChange: PropTypes.Requireable<(...args: any[]) => any>;
836
844
  description: PropTypes.Requireable<string>;
845
+ 'aria-labelledby': PropTypes.Requireable<string>;
846
+ 'aria-label': PropTypes.Requireable<string>;
837
847
  modified: PropTypes.Requireable<boolean>;
838
848
  titlePosition: PropTypes.Requireable<string>;
839
849
  theme: PropTypes.Requireable<string>;
@@ -887,6 +897,7 @@ declare namespace BrandUpdate {
887
897
  modified: PropTypes.Requireable<boolean>;
888
898
  error: PropTypes.Requireable<boolean>;
889
899
  'aria-label': PropTypes.Requireable<string>;
900
+ 'aria-labelledby': PropTypes.Requireable<string>;
890
901
  }> | PropTypes.InferProps<{
891
902
  type: PropTypes.Requireable<string>;
892
903
  title: PropTypes.Validator<string>;
@@ -966,6 +977,8 @@ declare namespace BrandUpdate {
966
977
  disabled: PropTypes.Requireable<boolean>;
967
978
  onChange: PropTypes.Requireable<(...args: any[]) => any>;
968
979
  description: PropTypes.Requireable<string>;
980
+ 'aria-labelledby': PropTypes.Requireable<string>;
981
+ 'aria-label': PropTypes.Requireable<string>;
969
982
  modified: PropTypes.Requireable<boolean>;
970
983
  titlePosition: PropTypes.Requireable<string>;
971
984
  theme: PropTypes.Requireable<string>;
@@ -1002,6 +1015,7 @@ declare namespace BrandUpdate {
1002
1015
  modified: PropTypes.Requireable<boolean>;
1003
1016
  error: PropTypes.Requireable<boolean>;
1004
1017
  'aria-label': PropTypes.Requireable<string>;
1018
+ 'aria-labelledby': PropTypes.Requireable<string>;
1005
1019
  }> | PropTypes.InferProps<{
1006
1020
  type: PropTypes.Requireable<string>;
1007
1021
  title: PropTypes.Validator<string>;
@@ -1106,6 +1120,8 @@ declare namespace BrandUpdate {
1106
1120
  disabled: PropTypes.Requireable<boolean>;
1107
1121
  onChange: PropTypes.Requireable<(...args: any[]) => any>;
1108
1122
  description: PropTypes.Requireable<string>;
1123
+ 'aria-labelledby': PropTypes.Requireable<string>;
1124
+ 'aria-label': PropTypes.Requireable<string>;
1109
1125
  modified: PropTypes.Requireable<boolean>;
1110
1126
  titlePosition: PropTypes.Requireable<string>;
1111
1127
  theme: PropTypes.Requireable<string>;
@@ -1590,6 +1606,8 @@ declare namespace BrandUpdate {
1590
1606
  disabled: PropTypes.Requireable<boolean>;
1591
1607
  onChange: PropTypes.Requireable<(...args: any[]) => any>;
1592
1608
  description: PropTypes.Requireable<string>;
1609
+ 'aria-labelledby': PropTypes.Requireable<string>;
1610
+ 'aria-label': PropTypes.Requireable<string>;
1593
1611
  modified: PropTypes.Requireable<boolean>;
1594
1612
  titlePosition: PropTypes.Requireable<string>;
1595
1613
  theme: PropTypes.Requireable<string>;
@@ -47,6 +47,8 @@ declare namespace Dashboard {
47
47
  disabled: PropTypes.Requireable<boolean>;
48
48
  onChange: PropTypes.Requireable<(...args: any[]) => any>;
49
49
  description: PropTypes.Requireable<string>;
50
+ 'aria-labelledby': PropTypes.Requireable<string>;
51
+ 'aria-label': PropTypes.Requireable<string>;
50
52
  modified: PropTypes.Requireable<boolean>;
51
53
  titlePosition: PropTypes.Requireable<string>;
52
54
  theme: PropTypes.Requireable<string>;
@@ -67,6 +67,7 @@ declare namespace SearchPage {
67
67
  modified: PropTypes.Requireable<boolean>;
68
68
  error: PropTypes.Requireable<boolean>;
69
69
  'aria-label': PropTypes.Requireable<string>;
70
+ 'aria-labelledby': PropTypes.Requireable<string>;
70
71
  }>>;
71
72
  onSearch: PropTypes.Requireable<(...args: any[]) => any>;
72
73
  onToggleFilters: PropTypes.Requireable<(...args: any[]) => any>;
@@ -74,6 +75,7 @@ declare namespace SearchPage {
74
75
  moreSortAriaLabel: PropTypes.Requireable<string>;
75
76
  moreFilterAriaLabel: PropTypes.Requireable<string>;
76
77
  filterGroupAriaLabel: PropTypes.Requireable<string>;
78
+ sortAriaLabel: PropTypes.Requireable<string>;
77
79
  }>>;
78
80
  const cards: PropTypes.Requireable<PropTypes.InferProps<{
79
81
  list: PropTypes.Requireable<(PropTypes.InferProps<any> | null | undefined)[]>;
@@ -111,6 +113,7 @@ declare namespace SearchPage {
111
113
  const moreSortAriaLabel: PropTypes.Requireable<string>;
112
114
  const moreFilterAriaLabel: PropTypes.Requireable<string>;
113
115
  const filterGroupAriaLabel: PropTypes.Requireable<string>;
116
+ const sortAriaLabel: PropTypes.Requireable<string>;
114
117
  }
115
118
  }
116
119
  import PropTypes from "prop-types";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/template/common/search-page/index.js"],"names":[],"mappings":";AAUA,mEAoDC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/template/common/search-page/index.js"],"names":[],"mappings":";AAUA,mEAsDC"}
@@ -22,7 +22,8 @@ const SearchPage = (props, context) => {
22
22
  recommendations,
23
23
  moreSortAriaLabel,
24
24
  moreFilterAriaLabel,
25
- filterGroupAriaLabel
25
+ filterGroupAriaLabel,
26
+ sortAriaLabel
26
27
  } = props;
27
28
  const {
28
29
  skin
@@ -46,7 +47,8 @@ const SearchPage = (props, context) => {
46
47
  return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Filters, _extends({}, searchFilters, {
47
48
  moreSortAriaLabel: moreSortAriaLabel,
48
49
  moreFilterAriaLabel: moreFilterAriaLabel,
49
- filterGroupAriaLabel: filterGroupAriaLabel
50
+ filterGroupAriaLabel: filterGroupAriaLabel,
51
+ sortAriaLabel: sortAriaLabel
50
52
  })), /*#__PURE__*/React.createElement("div", {
51
53
  "data-name": "searchResult",
52
54
  className: style.cardsWrapper
@@ -68,7 +70,8 @@ SearchPage.propTypes = process.env.NODE_ENV !== "production" ? {
68
70
  recommendations: PropTypes.shape(CardsList.propTypes),
69
71
  moreSortAriaLabel: PropTypes.string,
70
72
  moreFilterAriaLabel: PropTypes.string,
71
- filterGroupAriaLabel: PropTypes.string
73
+ filterGroupAriaLabel: PropTypes.string,
74
+ sortAriaLabel: PropTypes.string
72
75
  } : {};
73
76
  export default SearchPage;
74
77
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["React","PropTypes","Provider","Button","Filters","CardsGrid","CardsList","style","SearchPage","props","context","title","searchFilters","cards","noresultsfound","clearFilters","recommendations","moreSortAriaLabel","moreFilterAriaLabel","filterGroupAriaLabel","skin","defaultColor","recommendationsView","cardsView","list","noresults","noresultstxt","clear","background","cardsWrapper","contextTypes","childContextTypes","propTypes","string","shape"],"sources":["../../../../src/template/common/search-page/index.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport {getOr, isEmpty} from 'lodash/fp';\nimport Provider from '../../../atom/provider';\nimport Button from '../../../atom/button';\nimport Filters from '../../../molecule/filters';\nimport CardsGrid from '../../../organism/cards-grid';\nimport CardsList from '../../../molecule/dashboard/cards-list';\nimport style from './style.css';\n\nconst SearchPage = (props, context) => {\n const {\n title,\n searchFilters,\n cards,\n noresultsfound,\n clearFilters,\n recommendations,\n moreSortAriaLabel,\n moreFilterAriaLabel,\n filterGroupAriaLabel\n } = props;\n\n const {skin} = context;\n const defaultColor = getOr('#00B0FF', 'common.primary', skin);\n\n const recommendationsView = isEmpty(recommendations) ? null : <CardsList {...recommendations} />;\n\n const cardsView = isEmpty(cards.list) ? (\n <div>\n <div className={style.noresults}>\n <div className={style.noresultstxt}>{noresultsfound}</div>\n <Button\n {...clearFilters}\n data-name=\"searchPageClear\"\n className={style.clear}\n style={{background: defaultColor}}\n type=\"link\"\n />\n </div>\n {recommendationsView}\n </div>\n ) : (\n <CardsGrid {...cards} />\n );\n\n return (\n <div>\n <Filters\n {...searchFilters}\n moreSortAriaLabel={moreSortAriaLabel}\n moreFilterAriaLabel={moreFilterAriaLabel}\n filterGroupAriaLabel={filterGroupAriaLabel}\n />\n <div data-name=\"searchResult\" className={style.cardsWrapper}>\n <div className={style.title} role=\"status\">\n {title}\n </div>\n {cardsView}\n </div>\n </div>\n );\n};\n\nSearchPage.contextTypes = {\n skin: Provider.childContextTypes.skin\n};\n\nSearchPage.propTypes = {\n noresultsfound: PropTypes.string,\n title: PropTypes.string,\n searchFilters: PropTypes.shape(Filters.propTypes),\n cards: PropTypes.shape(CardsGrid.propTypes),\n clearFilters: PropTypes.shape(Button.propTypes),\n recommendations: PropTypes.shape(CardsList.propTypes),\n moreSortAriaLabel: PropTypes.string,\n moreFilterAriaLabel: PropTypes.string,\n filterGroupAriaLabel: PropTypes.string\n};\n\nexport default SearchPage;\n"],"mappings":";;;;;AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,OAAOC,SAAP,MAAsB,YAAtB;AAEA,OAAOC,QAAP,MAAqB,wBAArB;AACA,OAAOC,MAAP,MAAmB,sBAAnB;AACA,OAAOC,OAAP,MAAoB,2BAApB;AACA,OAAOC,SAAP,MAAsB,8BAAtB;AACA,OAAOC,SAAP,MAAsB,wCAAtB;AACA,OAAOC,KAAP,MAAkB,aAAlB;;AAEA,MAAMC,UAAU,GAAG,CAACC,KAAD,EAAQC,OAAR,KAAoB;EACrC,MAAM;IACJC,KADI;IAEJC,aAFI;IAGJC,KAHI;IAIJC,cAJI;IAKJC,YALI;IAMJC,eANI;IAOJC,iBAPI;IAQJC,mBARI;IASJC;EATI,IAUFV,KAVJ;EAYA,MAAM;IAACW;EAAD,IAASV,OAAf;;EACA,MAAMW,YAAY,GAAG,OAAM,SAAN,EAAiB,gBAAjB,EAAmCD,IAAnC,CAArB;;EAEA,MAAME,mBAAmB,GAAG,SAAQN,eAAR,IAA2B,IAA3B,gBAAkC,oBAAC,SAAD,EAAeA,eAAf,CAA9D;EAEA,MAAMO,SAAS,GAAG,SAAQV,KAAK,CAACW,IAAd,iBAChB,8CACE;IAAK,SAAS,EAAEjB,KAAK,CAACkB;EAAtB,gBACE;IAAK,SAAS,EAAElB,KAAK,CAACmB;EAAtB,GAAqCZ,cAArC,CADF,eAEE,oBAAC,MAAD,eACMC,YADN;IAEE,aAAU,iBAFZ;IAGE,SAAS,EAAER,KAAK,CAACoB,KAHnB;IAIE,KAAK,EAAE;MAACC,UAAU,EAAEP;IAAb,CAJT;IAKE,IAAI,EAAC;EALP,GAFF,CADF,EAWGC,mBAXH,CADgB,gBAehB,oBAAC,SAAD,EAAeT,KAAf,CAfF;EAkBA,oBACE,8CACE,oBAAC,OAAD,eACMD,aADN;IAEE,iBAAiB,EAAEK,iBAFrB;IAGE,mBAAmB,EAAEC,mBAHvB;IAIE,oBAAoB,EAAEC;EAJxB,GADF,eAOE;IAAK,aAAU,cAAf;IAA8B,SAAS,EAAEZ,KAAK,CAACsB;EAA/C,gBACE;IAAK,SAAS,EAAEtB,KAAK,CAACI,KAAtB;IAA6B,IAAI,EAAC;EAAlC,GACGA,KADH,CADF,EAIGY,SAJH,CAPF,CADF;AAgBD,CApDD;;AAsDAf,UAAU,CAACsB,YAAX,GAA0B;EACxBV,IAAI,EAAElB,QAAQ,CAAC6B,iBAAT,CAA2BX;AADT,CAA1B;AAIAZ,UAAU,CAACwB,SAAX,2CAAuB;EACrBlB,cAAc,EAAEb,SAAS,CAACgC,MADL;EAErBtB,KAAK,EAAEV,SAAS,CAACgC,MAFI;EAGrBrB,aAAa,EAAEX,SAAS,CAACiC,KAAV,CAAgB9B,OAAO,CAAC4B,SAAxB,CAHM;EAIrBnB,KAAK,EAAEZ,SAAS,CAACiC,KAAV,CAAgB7B,SAAS,CAAC2B,SAA1B,CAJc;EAKrBjB,YAAY,EAAEd,SAAS,CAACiC,KAAV,CAAgB/B,MAAM,CAAC6B,SAAvB,CALO;EAMrBhB,eAAe,EAAEf,SAAS,CAACiC,KAAV,CAAgB5B,SAAS,CAAC0B,SAA1B,CANI;EAOrBf,iBAAiB,EAAEhB,SAAS,CAACgC,MAPR;EAQrBf,mBAAmB,EAAEjB,SAAS,CAACgC,MARV;EASrBd,oBAAoB,EAAElB,SAAS,CAACgC;AATX,CAAvB;AAYA,eAAezB,UAAf"}
1
+ {"version":3,"file":"index.js","names":["React","PropTypes","Provider","Button","Filters","CardsGrid","CardsList","style","SearchPage","props","context","title","searchFilters","cards","noresultsfound","clearFilters","recommendations","moreSortAriaLabel","moreFilterAriaLabel","filterGroupAriaLabel","sortAriaLabel","skin","defaultColor","recommendationsView","cardsView","list","noresults","noresultstxt","clear","background","cardsWrapper","contextTypes","childContextTypes","propTypes","string","shape"],"sources":["../../../../src/template/common/search-page/index.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport {getOr, isEmpty} from 'lodash/fp';\nimport Provider from '../../../atom/provider';\nimport Button from '../../../atom/button';\nimport Filters from '../../../molecule/filters';\nimport CardsGrid from '../../../organism/cards-grid';\nimport CardsList from '../../../molecule/dashboard/cards-list';\nimport style from './style.css';\n\nconst SearchPage = (props, context) => {\n const {\n title,\n searchFilters,\n cards,\n noresultsfound,\n clearFilters,\n recommendations,\n moreSortAriaLabel,\n moreFilterAriaLabel,\n filterGroupAriaLabel,\n sortAriaLabel\n } = props;\n\n const {skin} = context;\n const defaultColor = getOr('#00B0FF', 'common.primary', skin);\n\n const recommendationsView = isEmpty(recommendations) ? null : <CardsList {...recommendations} />;\n\n const cardsView = isEmpty(cards.list) ? (\n <div>\n <div className={style.noresults}>\n <div className={style.noresultstxt}>{noresultsfound}</div>\n <Button\n {...clearFilters}\n data-name=\"searchPageClear\"\n className={style.clear}\n style={{background: defaultColor}}\n type=\"link\"\n />\n </div>\n {recommendationsView}\n </div>\n ) : (\n <CardsGrid {...cards} />\n );\n\n return (\n <div>\n <Filters\n {...searchFilters}\n moreSortAriaLabel={moreSortAriaLabel}\n moreFilterAriaLabel={moreFilterAriaLabel}\n filterGroupAriaLabel={filterGroupAriaLabel}\n sortAriaLabel={sortAriaLabel}\n />\n <div data-name=\"searchResult\" className={style.cardsWrapper}>\n <div className={style.title} role=\"status\">\n {title}\n </div>\n {cardsView}\n </div>\n </div>\n );\n};\n\nSearchPage.contextTypes = {\n skin: Provider.childContextTypes.skin\n};\n\nSearchPage.propTypes = {\n noresultsfound: PropTypes.string,\n title: PropTypes.string,\n searchFilters: PropTypes.shape(Filters.propTypes),\n cards: PropTypes.shape(CardsGrid.propTypes),\n clearFilters: PropTypes.shape(Button.propTypes),\n recommendations: PropTypes.shape(CardsList.propTypes),\n moreSortAriaLabel: PropTypes.string,\n moreFilterAriaLabel: PropTypes.string,\n filterGroupAriaLabel: PropTypes.string,\n sortAri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EC,mBAHvB;IAIE,oBAAoB,EAAEC,oBAJxB;IAKE,aAAa,EAAEC;EALjB,GADF,eAQE;IAAK,aAAU,cAAf;IAA8B,SAAS,EAAEb,KAAK,CAACuB;EAA/C,gBACE;IAAK,SAAS,EAAEvB,KAAK,CAACI,KAAtB;IAA6B,IAAI,EAAC;EAAlC,GACGA,KADH,CADF,EAIGa,SAJH,CARF,CADF;AAiBD,CAtDD;;AAwDAhB,UAAU,CAACuB,YAAX,GAA0B;EACxBV,IAAI,EAAEnB,QAAQ,CAAC8B,iBAAT,CAA2BX;AADT,CAA1B;AAIAb,UAAU,CAACyB,SAAX,2CAAuB;EACrBnB,cAAc,EAAEb,SAAS,CAACiC,MADL;EAErBvB,KAAK,EAAEV,SAAS,CAACiC,MAFI;EAGrBtB,aAAa,EAAEX,SAAS,CAACkC,KAAV,CAAgB/B,OAAO,CAAC6B,SAAxB,CAHM;EAIrBpB,KAAK,EAAEZ,SAAS,CAACkC,KAAV,CAAgB9B,SAAS,CAAC4B,SAA1B,CAJc;EAKrBlB,YAAY,EAAEd,SAAS,CAACkC,KAAV,CAAgBhC,MAAM,CAAC8B,SAAvB,CALO;EAMrBjB,eAAe,EAAEf,SAAS,CAACkC,KAAV,CAAgB7B,SAAS,CAAC2B,SAA1B,CANI;EAOrBhB,iBAAiB,EAAEhB,SAAS,CAACiC,MAPR;EAQrBhB,mBAAmB,EAAEjB,SAAS,CAACiC,MARV;EASrBf,oBAAoB,EAAElB,SAAS,CAACiC,MATX;EAUrBd,aAAa,EAAEnB,SAAS,CAACiC;AAVJ,CAAvB;AAaA,eAAe1B,UAAf"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/atom/input-search/index.js"],"names":[],"mappings":";AAYA,iDA+CC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/atom/input-search/index.js"],"names":[],"mappings":";AAYA,iDAgDC"}
@@ -57,6 +57,7 @@ const Search = props => {
57
57
  name: "search",
58
58
  id: "search",
59
59
  placeholder: placeholder,
60
+ title: placeholder,
60
61
  value: value,
61
62
  onInput: handleChange,
62
63
  onFocus: onFocus,
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["Search","props","value","placeholder","onChange","onClear","onFocus","onBlur","theme","handleChange","useMemo","e","target","cmStyle","classnames","style","coorpmanager","isDefaultTheme","wrapperSearch","searchIcon","title","noValue","search","clearIcon","contextTypes","skin","Provider","childContextTypes","propTypes","PropTypes","string","isRequired","func","oneOf"],"sources":["../../../src/atom/input-search/index.js"],"sourcesContent":["import React, {useMemo} from 'react';\nimport PropTypes from 'prop-types';\nimport classnames from 'classnames';\nimport {\n NovaCompositionCoorpacademySearchThin as CMSearchIcon,\n NovaCompositionCoorpacademySearch as SearchIcon,\n NovaSolidStatusClose as CloseIcon\n} from '@coorpacademy/nova-icons';\nimport {noop, isEmpty} from 'lodash/fp';\nimport Provider from '../provider';\nimport style from './style.css';\n\nconst Search = props => {\n const {\n value,\n placeholder,\n onChange = noop,\n onClear = noop,\n onFocus,\n onBlur,\n theme = 'default'\n } = props;\n const handleChange = useMemo(() => e => onChange(e.target.value), [onChange]);\n const cmStyle = classnames(style.coorpmanager);\n const isDefaultTheme = theme === 'default';\n\n return (\n <div className={isDefaultTheme ? style.wrapperSearch : cmStyle}>\n <label htmlFor=\"search\" title={placeholder}>\n {!isDefaultTheme ? (\n <CMSearchIcon className={style.searchIcon} />\n ) : (\n <SearchIcon className={style.searchIcon} />\n )}\n {!isDefaultTheme ? (\n <span className={classnames(style.title, isEmpty(value) && style.noValue)}>\n {placeholder}\n </span>\n ) : null}\n </label>\n <input\n data-name=\"search-input\"\n className={style.search}\n aria-label={placeholder}\n type=\"text\"\n name=\"search\"\n id=\"search\"\n placeholder={placeholder}\n value={value}\n onInput={handleChange}\n onFocus={onFocus}\n onChange={noop}\n onBlur={onBlur}\n />\n {value && !isDefaultTheme ? (\n <CloseIcon onClick={onClear} className={style.clearIcon} />\n ) : null}\n </div>\n );\n};\n\nSearch.contextTypes = {\n skin: Provider.childContextTypes.skin\n};\n\nSearch.propTypes = {\n value: PropTypes.string,\n placeholder: PropTypes.string.isRequired,\n onChange: PropTypes.func,\n onClear: PropTypes.func,\n onFocus: PropTypes.func,\n onBlur: PropTypes.func,\n theme: PropTypes.oneOf(['default', 'coorpmanager'])\n};\n\nexport default Search;\n"],"mappings":";;;;;;;;;AAAA;;AACA;;AACA;;AACA;;AAMA;;AACA;;;;;;;;AAEA,MAAMA,MAAM,GAAGC,KAAK,IAAI;EACtB,MAAM;IACJC,KADI;IAEJC,WAFI;IAGJC,QAAQ,iBAHJ;IAIJC,OAAO,iBAJH;IAKJC,OALI;IAMJC,MANI;IAOJC,KAAK,GAAG;EAPJ,IAQFP,KARJ;EASA,MAAMQ,YAAY,GAAG,IAAAC,cAAA,EAAQ,MAAMC,CAAC,IAAIP,QAAQ,CAACO,CAAC,CAACC,MAAF,CAASV,KAAV,CAA3B,EAA6C,CAACE,QAAD,CAA7C,CAArB;EACA,MAAMS,OAAO,GAAG,IAAAC,mBAAA,EAAWC,cAAA,CAAMC,YAAjB,CAAhB;EACA,MAAMC,cAAc,GAAGT,KAAK,KAAK,SAAjC;EAEA,oBACE;IAAK,SAAS,EAAES,cAAc,GAAGF,cAAA,CAAMG,aAAT,GAAyBL;EAAvD,gBACE;IAAO,OAAO,EAAC,QAAf;IAAwB,KAAK,EAAEV;EAA/B,GACG,CAACc,cAAD,gBACC,6BAAC,gDAAD;IAAc,SAAS,EAAEF,cAAA,CAAMI;EAA/B,EADD,gBAGC,6BAAC,4CAAD;IAAY,SAAS,EAAEJ,cAAA,CAAMI;EAA7B,EAJJ,EAMG,CAACF,cAAD,gBACC;IAAM,SAAS,EAAE,IAAAH,mBAAA,EAAWC,cAAA,CAAMK,KAAjB,EAAwB,uBAAQlB,KAAR,KAAkBa,cAAA,CAAMM,OAAhD;EAAjB,GACGlB,WADH,CADD,GAIG,IAVN,CADF,eAaE;IACE,aAAU,cADZ;IAEE,SAAS,EAAEY,cAAA,CAAMO,MAFnB;IAGE,cAAYnB,WAHd;IAIE,IAAI,EAAC,MAJP;IAKE,IAAI,EAAC,QALP;IAME,EAAE,EAAC,QANL;IAOE,WAAW,EAAEA,WAPf;IAQE,KAAK,EAAED,KART;IASE,OAAO,EAAEO,YATX;IAUE,OAAO,EAAEH,OAVX;IAWE,QAAQ,gBAXV;IAYE,MAAM,EAAEC;EAZV,EAbF,EA2BGL,KAAK,IAAI,CAACe,cAAV,gBACC,6BAAC,+BAAD;IAAW,OAAO,EAAEZ,OAApB;IAA6B,SAAS,EAAEU,cAAA,CAAMQ;EAA9C,EADD,GAEG,IA7BN,CADF;AAiCD,CA/CD;;AAiDAvB,MAAM,CAACwB,YAAP,GAAsB;EACpBC,IAAI,EAAEC,iBAAA,CAASC,iBAAT,CAA2BF;AADb,CAAtB;AAIAzB,MAAM,CAAC4B,SAAP,2CAAmB;EACjB1B,KAAK,EAAE2B,kBAAA,CAAUC,MADA;EAEjB3B,WAAW,EAAE0B,kBAAA,CAAUC,MAAV,CAAiBC,UAFb;EAGjB3B,QAAQ,EAAEyB,kBAAA,CAAUG,IAHH;EAIjB3B,OAAO,EAAEwB,kBAAA,CAAUG,IAJF;EAKjB1B,OAAO,EAAEuB,kBAAA,CAAUG,IALF;EAMjBzB,MAAM,EAAEsB,kBAAA,CAAUG,IAND;EAOjBxB,KAAK,EAAEqB,kBAAA,CAAUI,KAAV,CAAgB,CAAC,SAAD,EAAY,cAAZ,CAAhB;AAPU,CAAnB;eAUejC,M"}
1
+ {"version":3,"file":"index.js","names":["Search","props","value","placeholder","onChange","onClear","onFocus","onBlur","theme","handleChange","useMemo","e","target","cmStyle","classnames","style","coorpmanager","isDefaultTheme","wrapperSearch","searchIcon","title","noValue","search","clearIcon","contextTypes","skin","Provider","childContextTypes","propTypes","PropTypes","string","isRequired","func","oneOf"],"sources":["../../../src/atom/input-search/index.js"],"sourcesContent":["import React, {useMemo} from 'react';\nimport PropTypes from 'prop-types';\nimport classnames from 'classnames';\nimport {\n NovaCompositionCoorpacademySearchThin as CMSearchIcon,\n NovaCompositionCoorpacademySearch as SearchIcon,\n NovaSolidStatusClose as CloseIcon\n} from '@coorpacademy/nova-icons';\nimport {noop, isEmpty} from 'lodash/fp';\nimport Provider from '../provider';\nimport style from './style.css';\n\nconst Search = props => {\n const {\n value,\n placeholder,\n onChange = noop,\n onClear = noop,\n onFocus,\n onBlur,\n theme = 'default'\n } = props;\n const handleChange = useMemo(() => e => onChange(e.target.value), [onChange]);\n const cmStyle = classnames(style.coorpmanager);\n const isDefaultTheme = theme === 'default';\n\n return (\n <div className={isDefaultTheme ? style.wrapperSearch : cmStyle}>\n <label htmlFor=\"search\" title={placeholder}>\n {!isDefaultTheme ? (\n <CMSearchIcon className={style.searchIcon} />\n ) : (\n <SearchIcon className={style.searchIcon} />\n )}\n {!isDefaultTheme ? (\n <span className={classnames(style.title, isEmpty(value) && style.noValue)}>\n {placeholder}\n </span>\n ) : null}\n </label>\n <input\n data-name=\"search-input\"\n className={style.search}\n aria-label={placeholder}\n type=\"text\"\n name=\"search\"\n id=\"search\"\n placeholder={placeholder}\n title={placeholder}\n value={value}\n onInput={handleChange}\n onFocus={onFocus}\n onChange={noop}\n onBlur={onBlur}\n />\n {value && !isDefaultTheme ? (\n <CloseIcon onClick={onClear} className={style.clearIcon} />\n ) : null}\n </div>\n );\n};\n\nSearch.contextTypes = {\n skin: Provider.childContextTypes.skin\n};\n\nSearch.propTypes = {\n value: PropTypes.string,\n placeholder: PropTypes.string.isRequired,\n onChange: PropTypes.func,\n onClear: PropTypes.func,\n onFocus: PropTypes.func,\n onBlur: PropTypes.func,\n theme: PropTypes.oneOf(['default', 'coorpmanager'])\n};\n\nexport default Search;\n"],"mappings":";;;;;;;;;AAAA;;AACA;;AACA;;AACA;;AAMA;;AACA;;;;;;;;AAEA,MAAMA,MAAM,GAAGC,KAAK,IAAI;EACtB,MAAM;IACJC,KADI;IAEJC,WAFI;IAGJC,QAAQ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A6B,SAAS,EAAEU,cAAA,CAAMQ;EAA9C,EADD,GAEG,IA9BN,CADF;AAkCD,CAhDD;;AAkDAvB,MAAM,CAACwB,YAAP,GAAsB;EACpBC,IAAI,EAAEC,iBAAA,CAASC,iBAAT,CAA2BF;AADb,CAAtB;AAIAzB,MAAM,CAAC4B,SAAP,2CAAmB;EACjB1B,KAAK,EAAE2B,kBAAA,CAAUC,MADA;EAEjB3B,WAAW,EAAE0B,kBAAA,CAAUC,MAAV,CAAiBC,UAFb;EAGjB3B,QAAQ,EAAEyB,kBAAA,CAAUG,IAHH;EAIjB3B,OAAO,EAAEwB,kBAAA,CAAUG,IAJF;EAKjB1B,OAAO,EAAEuB,kBAAA,CAAUG,IALF;EAMjBzB,MAAM,EAAEsB,kBAAA,CAAUG,IAND;EAOjBxB,KAAK,EAAEqB,kBAAA,CAAUI,KAAV,CAAgB,CAAC,SAAD,EAAY,cAAZ,CAAhB;AAPU,CAAnB;eAUejC,M"}
@@ -9,6 +9,8 @@ declare namespace InputSwitch {
9
9
  disabled: PropTypes.Requireable<boolean>;
10
10
  onChange: PropTypes.Requireable<(...args: any[]) => any>;
11
11
  description: PropTypes.Requireable<string>;
12
+ 'aria-labelledby': PropTypes.Requireable<string>;
13
+ 'aria-label': PropTypes.Requireable<string>;
12
14
  modified: PropTypes.Requireable<boolean>;
13
15
  titlePosition: PropTypes.Requireable<string>;
14
16
  theme: PropTypes.Requireable<string>;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/atom/input-switch/index.js"],"names":[],"mappings":";AAMA,sDAuEC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/atom/input-switch/index.js"],"names":[],"mappings":";AAMA,sDAgFC"}
@@ -21,6 +21,8 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
21
21
 
22
22
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
23
23
 
24
+ function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
25
+
24
26
  const InputSwitch = props => {
25
27
  const {
26
28
  title,
@@ -35,14 +37,17 @@ const InputSwitch = props => {
35
37
  titlePosition = 'left',
36
38
  details = '',
37
39
  requiredSelection = false,
38
- 'data-name': dataName
40
+ 'data-name': dataName,
41
+ 'aria-labelledby': ariaLabelledBy,
42
+ 'aria-label': ariaLabel
39
43
  } = props;
40
44
  const idSwitch = id || (0, _uniqueId2.default)('input-switch-');
41
45
  const isDisabled = disabled ? 'disabled' : '';
42
46
  const handleChange = (0, _react.useMemo)(() => e => onChange(e.target.checked), [onChange]);
43
47
  const titleView = title ? /*#__PURE__*/_react.default.createElement("span", {
48
+ id: `title-view-${dataName}`,
44
49
  className: _style.default.title
45
- }, `${title} `) : null;
50
+ }, `${title} `, ' ') : null;
46
51
  const descriptionView = description ? /*#__PURE__*/_react.default.createElement("div", {
47
52
  className: _style.default.description
48
53
  }, description) : null;
@@ -77,13 +82,17 @@ const InputSwitch = props => {
77
82
  return /*#__PURE__*/_react.default.createElement("div", {
78
83
  className: className,
79
84
  "data-name": `switch-input-${theme}${dataName}`
80
- }, titlePosition === 'left' ? /*#__PURE__*/_react.default.createElement("div", {
81
- id: `title-view-${dataName}`
82
- }, titleView, " ") : null, /*#__PURE__*/_react.default.createElement("div", {
85
+ }, titlePosition === 'left' ? titleView : null, /*#__PURE__*/_react.default.createElement("div", {
83
86
  className: requiredSelection ? _style.default.requiredSelection : null
84
87
  }, /*#__PURE__*/_react.default.createElement("div", {
85
88
  className: _style.default.btnSwitchContainer
86
- }, /*#__PURE__*/_react.default.createElement("input", {
89
+ }, /*#__PURE__*/_react.default.createElement("input", _extends({}, ariaLabelledBy ? {
90
+ 'aria-labelledby': ariaLabelledBy
91
+ } : {}, title ? {
92
+ 'aria-labelledby': `title-view-${dataName}`
93
+ } : {}, ariaLabel && !ariaLabelledBy && !title ? {
94
+ 'aria-label': ariaLabel
95
+ } : {}, {
87
96
  type: "checkbox",
88
97
  id: idSwitch,
89
98
  name: name,
@@ -91,16 +100,16 @@ const InputSwitch = props => {
91
100
  checked: value,
92
101
  disabled: isDisabled,
93
102
  className: _style.default.checkbox,
94
- "aria-labelledby": `title-view-${dataName}`
95
- }), /*#__PURE__*/_react.default.createElement("label", {
103
+ "aria-labelledby": ariaLabelledBy
104
+ })), /*#__PURE__*/_react.default.createElement("label", {
96
105
  htmlFor: idSwitch,
97
106
  "data-name": "input-switch-label",
98
107
  tabIndex: 0
99
108
  }))), /*#__PURE__*/_react.default.createElement("div", {
100
109
  className: !details ? _style.default.alignedTextContainer : null
101
- }, titlePosition === 'right' ? /*#__PURE__*/_react.default.createElement("div", {
102
- id: `title-view-${dataName}`
103
- }, titleView, " ") : null, details ? /*#__PURE__*/_react.default.createElement("div", {
110
+ }, titlePosition === 'right' ? {
111
+ titleView
112
+ } : null, details ? /*#__PURE__*/_react.default.createElement("div", {
104
113
  className: _style.default.detailsTxt
105
114
  }, details) : null), descriptionView);
106
115
  };
@@ -113,6 +122,8 @@ InputSwitch.propTypes = process.env.NODE_ENV !== "production" ? {
113
122
  disabled: _propTypes.default.bool,
114
123
  onChange: _propTypes.default.func,
115
124
  description: _propTypes.default.string,
125
+ 'aria-labelledby': _propTypes.default.string,
126
+ 'aria-label': _propTypes.default.string,
116
127
  modified: _propTypes.default.bool,
117
128
  titlePosition: _propTypes.default.oneOf(['right', 'left']),
118
129
  theme: _propTypes.default.oneOf(['default', 'coorpmanager', 'mooc']),
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["InputSwitch","props","title","name","id","value","disabled","onChange","description","modified","theme","titlePosition","details","requiredSelection","dataName","idSwitch","isDisabled","handleChange","useMemo","e","target","checked","titleView","style","descriptionView","getClass","defaultClass","coorpmanager","modifiedClass","coorpmanagerModified","partielUncheck","default","className","getClassState","btnSwitchContainer","checkbox","alignedTextContainer","detailsTxt","propTypes","PropTypes","string","bool","func","oneOf"],"sources":["../../../src/atom/input-switch/index.js"],"sourcesContent":["import React, {useMemo} from 'react';\nimport PropTypes from 'prop-types';\nimport {noop, uniqueId} from 'lodash/fp';\nimport getClassState from '../../util/get-class-state';\nimport style from './style.css';\n\nconst InputSwitch = props => {\n const {\n title,\n name,\n id,\n value,\n disabled,\n onChange = noop,\n description,\n modified = false,\n theme = 'default',\n titlePosition = 'left',\n details = '',\n requiredSelection = false,\n 'data-name': dataName\n } = props;\n\n const idSwitch = id || uniqueId('input-switch-');\n const isDisabled = disabled ? 'disabled' : '';\n const handleChange = useMemo(() => e => onChange(e.target.checked), [onChange]);\n\n const titleView = title ? <span className={style.title}>{`${title} `}</span> : null;\n\n const descriptionView = description ? (\n <div className={style.description}>{description}</div>\n ) : null;\n\n const getClass = () => {\n switch (theme) {\n case 'coorpmanager':\n return {\n defaultClass: style.coorpmanager,\n modifiedClass: style.coorpmanagerModified\n };\n case 'mooc':\n return {\n defaultClass: style.partielUncheck,\n modifiedClass: style.coorpmanagerModified\n };\n default:\n return {defaultClass: style.default, modifiedClass: style.modified};\n }\n };\n const {defaultClass, modifiedClass} = getClass();\n const className = getClassState(defaultClass, modifiedClass, null, modified);\n\n return (\n <div className={className} data-name={`switch-input-${theme}${dataName}`}>\n {titlePosition === 'left' ? <div id={`title-view-${dataName}`}>{titleView} </div> : null}\n <div className={requiredSelection ? style.requiredSelection : null}>\n <div className={style.btnSwitchContainer}>\n <input\n type=\"checkbox\"\n id={idSwitch}\n name={name}\n onChange={handleChange}\n checked={value}\n disabled={isDisabled}\n className={style.checkbox}\n aria-labelledby={`title-view-${dataName}`}\n />\n <label htmlFor={idSwitch} data-name=\"input-switch-label\" tabIndex={0} />\n </div>\n </div>\n <div className={!details ? style.alignedTextContainer : null}>\n {titlePosition === 'right' ? <div id={`title-view-${dataName}`}>{titleView} </div> : null}\n {details ? <div className={style.detailsTxt}>{details}</div> : null}\n </div>\n {descriptionView}\n </div>\n );\n};\n\nInputSwitch.propTypes = {\n title: PropTypes.string,\n name: PropTypes.string,\n id: PropTypes.string,\n value: PropTypes.bool,\n disabled: PropTypes.bool,\n onChange: PropTypes.func,\n description: PropTypes.string,\n modified: PropTypes.bool,\n titlePosition: PropTypes.oneOf(['right', 'left']),\n theme: PropTypes.oneOf(['default', 'coorpmanager', 'mooc']),\n details: PropTypes.string,\n 'data-name': PropTypes.string,\n requiredSelection: PropTypes.bool\n};\nexport default InputSwitch;\n"],"mappings":";;;;;;;;;AAAA;;AACA;;AAEA;;AACA;;;;;;;;AAEA,MAAMA,WAAW,GAAGC,KAAK,IAAI;EAC3B,MAAM;IACJC,KADI;IAEJC,IAFI;IAGJC,EAHI;IAIJC,KAJI;IAKJC,QALI;IAMJC,QAAQ,iBANJ;IAOJC,WAPI;IAQJC,QAAQ,GAAG,KARP;IASJC,KAAK,GAAG,SATJ;IAUJC,aAAa,GAAG,MAVZ;IAWJC,OAAO,GAAG,EAXN;IAYJC,iBAAiB,GAAG,KAZhB;IAaJ,aAAaC;EAbT,IAcFb,KAdJ;EAgBA,MAAMc,QAAQ,GAAGX,EAAE,IAAI,wBAAS,eAAT,CAAvB;EACA,MAAMY,UAAU,GAAGV,QAAQ,GAAG,UAAH,GAAgB,EAA3C;EACA,MAAMW,YAAY,GAAG,IAAAC,cAAA,EAAQ,MAAMC,CAAC,IAAIZ,QAAQ,CAACY,CAAC,CAACC,MAAF,CAASC,OAAV,CAA3B,EAA+C,CAACd,QAAD,CAA/C,CAArB;EAEA,MAAMe,SAAS,GAAGpB,KAAK,gBAAG;IAAM,SAAS,EAAEqB,cAAA,CAAMrB;EAAvB,GAAgC,GAAEA,KAAM,GAAxC,CAAH,GAAwD,IAA/E;EAEA,MAAMsB,eAAe,GAAGhB,WAAW,gBACjC;IAAK,SAAS,EAAEe,cAAA,CAAMf;EAAtB,GAAoCA,WAApC,CADiC,GAE/B,IAFJ;;EAIA,M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AAS,EAAE,CAACH,OAAD,GAAWW,cAAA,CAAMa,oBAAjB,GAAwC;EAAxD,GACGzB,aAAa,KAAK,OAAlB,gBAA4B;IAAK,EAAE,EAAG,cAAaG,QAAS;EAAhC,GAAoCQ,SAApC,MAA5B,GAAoF,IADvF,EAEGV,OAAO,gBAAG;IAAK,SAAS,EAAEW,cAAA,CAAMc;EAAtB,GAAmCzB,OAAnC,CAAH,GAAuD,IAFjE,CAjBF,EAqBGY,eArBH,CADF;AAyBD,CAvED;;AAyEAxB,WAAW,CAACsC,SAAZ,2CAAwB;EACtBpC,KAAK,EAAEqC,kBAAA,CAAUC,MADK;EAEtBrC,IAAI,EAAEoC,kBAAA,CAAUC,MAFM;EAGtBpC,EAAE,EAAEmC,kBAAA,CAAUC,MAHQ;EAItBnC,KAAK,EAAEkC,kBAAA,CAAUE,IAJK;EAKtBnC,QAAQ,EAAEiC,kBAAA,CAAUE,IALE;EAMtBlC,QAAQ,EAAEgC,kBAAA,CAAUG,IANE;EAOtBlC,WAAW,EAAE+B,kBAAA,CAAUC,MAPD;EAQtB/B,QAAQ,EAAE8B,kBAAA,CAAUE,IARE;EAStB9B,aAAa,EAAE4B,kBAAA,CAAUI,KAAV,CAAgB,CAAC,OAAD,EAAU,MAAV,CAAhB,CATO;EAUtBjC,KAAK,EAAE6B,kBAAA,CAAUI,KAAV,CAAgB,CAAC,SAAD,EAAY,cAAZ,EAA4B,MAA5B,CAAhB,CAVe;EAWtB/B,OAAO,EAAE2B,kBAAA,CAAUC,MAXG;EAYtB,aAAaD,kBAAA,CAAUC,MAZD;EAatB3B,iBAAiB,EAAE0B,kBAAA,CAAUE;AAbP,CAAxB;eAeezC,W"}
1
+ {"version":3,"file":"index.js","names":["InputSwitch","props","title","name","id","value","disabled","onChange","description","modified","theme","titlePosition","details","requiredSelection","dataName","ariaLabelledBy","ariaLabel","idSwitch","isDisabled","handleChange","useMemo","e","target","checked","titleView","style","descriptionView","getClass","defaultClass","coorpmanager","modifiedClass","coorpmanagerModified","partielUncheck","default","className","getClassState","btnSwitchContainer","checkbox","alignedTextContainer","detailsTxt","propTypes","PropTypes","string","bool","func","oneOf"],"sources":["../../../src/atom/input-switch/index.js"],"sourcesContent":["import React, {useMemo} from 'react';\nimport PropTypes from 'prop-types';\nimport {noop, uniqueId} from 'lodash/fp';\nimport getClassState from '../../util/get-class-state';\nimport style from './style.css';\n\nconst InputSwitch = props => {\n const {\n title,\n name,\n id,\n value,\n disabled,\n onChange = noop,\n description,\n modified = false,\n theme = 'default',\n titlePosition = 'left',\n details = '',\n requiredSelection = false,\n 'data-name': dataName,\n 'aria-labelledby': ariaLabelledBy,\n 'aria-label': ariaLabel\n } = props;\n\n const idSwitch = id || uniqueId('input-switch-');\n const isDisabled = disabled ? 'disabled' : '';\n const handleChange = useMemo(() => e => onChange(e.target.checked), [onChange]);\n\n const titleView = title ? (\n <span id={`title-view-${dataName}`} className={style.title}>\n {`${title} `}{' '}\n </span>\n ) : null;\n\n const descriptionView = description ? (\n <div className={style.description}>{description}</div>\n ) : null;\n\n const getClass = () => {\n switch (theme) {\n case 'coorpmanager':\n return {\n defaultClass: style.coorpmanager,\n modifiedClass: style.coorpmanagerModified\n };\n case 'mooc':\n return {\n defaultClass: style.partielUncheck,\n modifiedClass: style.coorpmanagerModified\n };\n default:\n return {defaultClass: style.default, modifiedClass: style.modified};\n }\n };\n const {defaultClass, modifiedClass} = getClass();\n const className = getClassState(defaultClass, modifiedClass, null, modified);\n\n return (\n <div className={className} data-name={`switch-input-${theme}${dataName}`}>\n {titlePosition === 'left' ? titleView : null}\n <div className={requiredSelection ? style.requiredSelection : null}>\n <div className={style.btnSwitchContainer}>\n <input\n {...(ariaLabelledBy ? {'aria-labelledby': ariaLabelledBy} : {})}\n {...(title ? {'aria-labelledby': `title-view-${dataName}`} : {})}\n {...(ariaLabel && !ariaLabelledBy && !title ? {'aria-label': ariaLabel} : {})}\n type=\"checkbox\"\n id={idSwitch}\n name={name}\n onChange={handleChange}\n checked={value}\n disabled={isDisabled}\n className={style.checkbox}\n aria-labelledby={ariaLabelledBy}\n />\n <label htmlFor={idSwitch} data-name=\"input-switch-label\" tabIndex={0} />\n </div>\n </div>\n <div className={!details ? style.alignedTextContainer : null}>\n {titlePosition === 'right' ? {titleView} : null}\n {details ? <div className={style.detailsTxt}>{details}</div> : null}\n </div>\n {descriptionView}\n </div>\n );\n};\n\nInputSwitch.propTypes = {\n title: PropTypes.string,\n name: PropTypes.string,\n id: PropTypes.string,\n value: PropTypes.bool,\n disabled: PropTypes.bool,\n onChange: PropTypes.func,\n description: PropTypes.string,\n 'aria-labelledby': PropTypes.string,\n 'aria-label': PropTypes.string,\n modified: PropTypes.bool,\n titlePosition: PropTypes.oneOf(['right', 'left']),\n theme: PropTypes.oneOf(['default', 'coorpmanager', 'mooc']),\n details: PropTypes.string,\n 'data-name': PropTypes.string,\n requiredSelection: PropTypes.bool\n};\nexport default InputSwitch;\n"],"mappings":";;;;;;;;;AAAA;;AACA;;AAEA;;AACA;;;;;;;;;;AAEA,MAAMA,WAAW,GAAGC,KAAK,IAAI;EAC3B,MAAM;IACJC,KADI;IAEJC,IAFI;IAGJC,EAHI;IAIJC,KAJI;IAKJC,QALI;IAMJC,QAAQ,iBANJ;IAOJC,WAPI;IAQJC,QAAQ,GAAG,KARP;IASJC,KAAK,GAAG,SATJ;IAUJC,aAAa,GAAG,MAVZ;IAWJC,OAAO,GAAG,EAXN;IAYJC,iBAAiB,GAAG,KAZhB;IAaJ,aAAaC,QAbT;IAcJ,mBAAmBC,cAdf;IAeJ,cAAcC;EAfV,IAgBFf,KAhBJ;EAkBA,MAAMgB,QAAQ,GAAGb,EAAE,IAAI,wBAAS,eAAT,CAAvB;EACA,MAAMc,UAAU,GAAGZ,QAAQ,GAAG,UAAH,GAAgB,EAA3C;EACA,MAAMa,YAAY,GAAG,IAAAC,cAAA,EAAQ,MAAMC,CAAC,IAAId,QAAQ,CAACc,CAAC,CAACC,MAAF,CAASC,OAAV,CAA3B,EAA+C,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AUE,IAVE;EAWtBhC,aAAa,EAAE8B,kBAAA,CAAUI,KAAV,CAAgB,CAAC,OAAD,EAAU,MAAV,CAAhB,CAXO;EAYtBnC,KAAK,EAAE+B,kBAAA,CAAUI,KAAV,CAAgB,CAAC,SAAD,EAAY,cAAZ,EAA4B,MAA5B,CAAhB,CAZe;EAatBjC,OAAO,EAAE6B,kBAAA,CAAUC,MAbG;EActB,aAAaD,kBAAA,CAAUC,MAdD;EAetB7B,iBAAiB,EAAE4B,kBAAA,CAAUE;AAfP,CAAxB;eAiBe3C,W"}
@@ -69,6 +69,7 @@ declare namespace Select {
69
69
  modified: PropTypes.Requireable<boolean>;
70
70
  error: PropTypes.Requireable<boolean>;
71
71
  'aria-label': PropTypes.Requireable<string>;
72
+ 'aria-labelledby': PropTypes.Requireable<string>;
72
73
  };
73
74
  }
74
75
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/atom/select/index.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AA2DA,qEAqLC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/atom/select/index.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAuDA,qEAwLC"}
@@ -67,9 +67,7 @@ const ArrowView = ({
67
67
  arrowClass,
68
68
  arrowColor
69
69
  }) => {
70
- const props = (0, _react.useMemo)(() => _extends({}, ariaLabel & {
71
- 'aria-label': ariaLabel
72
- }, arrowColor & {
70
+ const props = (0, _react.useMemo)(() => _extends({}, arrowColor & {
73
71
  color: arrowColor
74
72
  }, {
75
73
  className: arrowClass
@@ -100,7 +98,8 @@ const Select = (props, legacyContext) => {
100
98
  modified = false,
101
99
  error = false,
102
100
  title: propTitle,
103
- 'aria-label': ariaLabel
101
+ 'aria-label': ariaLabel,
102
+ 'aria-labelledby': ariaLabelledBy
104
103
  } = props;
105
104
  const skin = (0, _provider.GetSkinFromContext)(legacyContext);
106
105
  const title = (0, _react.useMemo)(() => propTitle ? `${propTitle}${required ? '*' : ''}` : null, [propTitle, required]);
@@ -175,10 +174,15 @@ const Select = (props, legacyContext) => {
175
174
  ariaLabel: ariaLabel,
176
175
  arrowClass: shouldUseSkinFontColor ? _style.default.selectedArrow : _style.default.arrow,
177
176
  arrowColor: isThemeOneOfQuestionTemplateOrPlayer ? arrowColor : black
178
- }), /*#__PURE__*/_react.default.createElement("select", {
177
+ }), /*#__PURE__*/_react.default.createElement("select", _extends({}, ariaLabelledBy ? {
178
+ 'aria-labelledby': ariaLabelledBy
179
+ } : {}, ariaLabel && !ariaLabelledBy ? {
180
+ 'aria-label': ariaLabel
181
+ } : {}, ariaLabel ? {
182
+ title: ariaLabel
183
+ } : {}, {
179
184
  "data-name": "native-select",
180
185
  className: _style.default.selectBox,
181
- title: selectedLabel,
182
186
  name: name,
183
187
  onChange: handleChange,
184
188
  value: selected,
@@ -191,7 +195,7 @@ const Select = (props, legacyContext) => {
191
195
  ,
192
196
  onMouseLeave: handleSelectOnBlur,
193
197
  "data-testid": "native-select"
194
- }, optionList)), /*#__PURE__*/_react.default.createElement("div", {
198
+ }), optionList)), /*#__PURE__*/_react.default.createElement("div", {
195
199
  className: _style.default.description
196
200
  }, description));
197
201
  };
@@ -226,7 +230,8 @@ Select.propTypes = process.env.NODE_ENV !== "production" ? {
226
230
  optgroups: _propTypes.default.arrayOf(_propTypes.default.shape(SelectOptionGroupPropTypes)),
227
231
  modified: _propTypes.default.bool,
228
232
  error: _propTypes.default.bool,
229
- 'aria-label': _propTypes.default.string
233
+ 'aria-label': _propTypes.default.string,
234
+ 'aria-labelledby': _propTypes.default.string
230
235
  } : {};
231
236
  var _default = Select;
232
237
  exports.default = _default;