@coorpacademy/components 11.40.15 → 11.40.16

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 (301) hide show
  1. package/es/atom/button/style.css +2 -2
  2. package/es/atom/button-menu/utils.d.ts +1 -1
  3. package/es/atom/checkbox-with-title/index.d.ts +25 -1
  4. package/es/atom/checkbox-with-title/index.d.ts.map +1 -1
  5. package/es/atom/checkbox-with-title/index.js +19 -2
  6. package/es/atom/checkbox-with-title/index.js.map +1 -1
  7. package/es/atom/chip/index.d.ts.map +1 -1
  8. package/es/atom/chip/index.js +4 -4
  9. package/es/atom/chip/index.js.map +1 -1
  10. package/es/atom/content-badge/style.css +2 -2
  11. package/es/atom/input-html/index.d.ts.map +1 -1
  12. package/es/atom/input-html/index.js +2 -1
  13. package/es/atom/input-html/index.js.map +1 -1
  14. package/es/atom/input-switch/index.d.ts +24 -1
  15. package/es/atom/input-switch/index.d.ts.map +1 -1
  16. package/es/atom/input-switch/index.js +18 -4
  17. package/es/atom/input-switch/index.js.map +1 -1
  18. package/es/atom/input-switch/style.css +3 -0
  19. package/es/atom/range/index.d.ts +35 -3
  20. package/es/atom/range/index.d.ts.map +1 -1
  21. package/es/atom/range/index.js +95 -20
  22. package/es/atom/range/index.js.map +1 -1
  23. package/es/atom/range/style.css +40 -2
  24. package/es/atom/resource-miniature/style.css +3 -3
  25. package/es/atom/status-item/index.native.js +1 -1
  26. package/es/atom/status-item/index.native.js.map +1 -1
  27. package/es/molecule/base-modal/index.d.ts.map +1 -1
  28. package/es/molecule/base-modal/index.js +11 -5
  29. package/es/molecule/base-modal/index.js.map +1 -1
  30. package/es/molecule/card/favorite.d.ts.map +1 -1
  31. package/es/molecule/card/favorite.js +15 -16
  32. package/es/molecule/card/favorite.js.map +1 -1
  33. package/es/molecule/card/notification.css +0 -6
  34. package/es/molecule/card/notification.d.ts.map +1 -1
  35. package/es/molecule/card/notification.js +12 -14
  36. package/es/molecule/card/notification.js.map +1 -1
  37. package/es/molecule/cm-popin/types.d.ts +2 -0
  38. package/es/molecule/cm-popin/types.d.ts.map +1 -1
  39. package/es/molecule/coorpmanager-base-banner/style.css +1 -1
  40. package/es/molecule/dashboard/cards-list/index.d.ts +9 -0
  41. package/es/molecule/dashboard/cards-list/index.d.ts.map +1 -1
  42. package/es/molecule/dashboard/cards-list/index.js +5 -1
  43. package/es/molecule/dashboard/cards-list/index.js.map +1 -1
  44. package/es/molecule/dashboard/cards-list/style.css +1 -1
  45. package/es/molecule/draggable-list/index.d.ts +1 -0
  46. package/es/molecule/go1-banner/style.css +3 -3
  47. package/es/molecule/learning-priority-modal/index.js +1 -1
  48. package/es/molecule/learning-priority-modal/index.js.map +1 -1
  49. package/es/molecule/modal/style.css +3 -3
  50. package/es/molecule/multi-filter-panel/index.d.ts +42 -0
  51. package/es/molecule/multi-filter-panel/index.d.ts.map +1 -1
  52. package/es/molecule/multi-filter-panel/index.js +28 -15
  53. package/es/molecule/multi-filter-panel/index.js.map +1 -1
  54. package/es/molecule/multi-filter-panel/prop-types.d.ts +32 -5
  55. package/es/molecule/multi-filter-panel/prop-types.d.ts.map +1 -1
  56. package/es/molecule/multi-filter-panel/prop-types.js +4 -0
  57. package/es/molecule/multi-filter-panel/prop-types.js.map +1 -1
  58. package/es/molecule/questions/question-range/index.d.ts +6 -1
  59. package/es/molecule/quick-filters/index.js +3 -1
  60. package/es/molecule/quick-filters/index.js.map +1 -1
  61. package/es/molecule/quick-filters/style.css +7 -2
  62. package/es/molecule/tabs/index.d.ts +39 -0
  63. package/es/molecule/tabs/index.d.ts.map +1 -0
  64. package/es/molecule/tabs/index.js +69 -0
  65. package/es/molecule/tabs/index.js.map +1 -0
  66. package/es/molecule/tabs/style.css +28 -0
  67. package/es/molecule/title-and-checkbox-wrapper/index.d.ts +1 -0
  68. package/es/organism/brand-analytics/style.css +1 -1
  69. package/es/organism/brand-learning-priorities/index.d.ts +1 -0
  70. package/es/organism/content-skill-modal/index.d.ts +23 -0
  71. package/es/organism/content-skill-modal/index.d.ts.map +1 -1
  72. package/es/organism/content-skill-modal/types.d.ts +23 -0
  73. package/es/organism/content-skill-modal/types.d.ts.map +1 -1
  74. package/es/organism/filter-checkbox-and-search/index.d.ts +22 -0
  75. package/es/organism/filter-checkbox-and-search/index.d.ts.map +1 -1
  76. package/es/organism/filter-checkbox-and-search/index.js +21 -4
  77. package/es/organism/filter-checkbox-and-search/index.js.map +1 -1
  78. package/es/organism/filter-checkbox-and-search/props-types.d.ts +3 -0
  79. package/es/organism/filter-checkbox-and-search/props-types.d.ts.map +1 -1
  80. package/es/organism/filter-checkbox-and-search/props-types.js +1 -0
  81. package/es/organism/filter-checkbox-and-search/props-types.js.map +1 -1
  82. package/es/organism/filter-chip/index.d.ts +21 -0
  83. package/es/organism/filter-chip/index.d.ts.map +1 -1
  84. package/es/organism/filter-chip/index.js +14 -2
  85. package/es/organism/filter-chip/index.js.map +1 -1
  86. package/es/organism/filter-range/index.d.ts +28 -0
  87. package/es/organism/filter-range/index.d.ts.map +1 -0
  88. package/es/organism/filter-range/index.js +101 -0
  89. package/es/organism/filter-range/index.js.map +1 -0
  90. package/es/organism/filter-range/prop-types.d.ts +40 -0
  91. package/es/organism/filter-range/prop-types.d.ts.map +1 -0
  92. package/es/organism/filter-range/prop-types.js +20 -0
  93. package/es/organism/filter-range/prop-types.js.map +1 -0
  94. package/es/organism/filter-range/style.css +15 -0
  95. package/es/organism/filter-switch/index.d.ts +22 -0
  96. package/es/organism/filter-switch/index.d.ts.map +1 -1
  97. package/es/organism/filter-switch/index.js +18 -3
  98. package/es/organism/filter-switch/index.js.map +1 -1
  99. package/es/organism/filter-switch/prop-types.d.ts +2 -0
  100. package/es/organism/filter-switch/prop-types.d.ts.map +1 -1
  101. package/es/organism/filter-switch/prop-types.js +2 -1
  102. package/es/organism/filter-switch/prop-types.js.map +1 -1
  103. package/es/organism/list-item/index.d.ts +1 -0
  104. package/es/organism/list-items/index.d.ts +2 -0
  105. package/es/organism/list-items/style.css +1 -1
  106. package/es/organism/mooc-footer/style.css +2 -2
  107. package/es/organism/rewards-form/index.d.ts +1 -0
  108. package/es/organism/select-opponents/index.d.ts +1 -0
  109. package/es/organism/select-opponents/index.d.ts.map +1 -1
  110. package/es/organism/select-opponents/types.d.ts +1 -0
  111. package/es/organism/select-opponents/types.d.ts.map +1 -1
  112. package/es/organism/sidebar/style.css +3 -3
  113. package/es/organism/title-and-input/index.d.ts +1 -0
  114. package/es/organism/title-and-input/index.d.ts.map +1 -1
  115. package/es/organism/title-and-input/types.d.ts +1 -0
  116. package/es/organism/title-and-input/types.d.ts.map +1 -1
  117. package/es/organism/wizard-contents/index.d.ts +1 -0
  118. package/es/template/activity/stars-summary.css +2 -2
  119. package/es/template/app-player/loading/index.d.ts +2 -0
  120. package/es/template/app-player/player/index.d.ts +4 -0
  121. package/es/template/app-player/player/slides/index.d.ts +2 -0
  122. package/es/template/app-player/player/slides/index.d.ts.map +1 -1
  123. package/es/template/app-player/popin-correction/index.d.ts +2 -0
  124. package/es/template/app-player/popin-correction/index.d.ts.map +1 -1
  125. package/es/template/app-player/popin-end/index.d.ts +11 -0
  126. package/es/template/app-player/popin-end/summary.d.ts +9 -0
  127. package/es/template/app-review/index.d.ts +2 -0
  128. package/es/template/app-review/index.d.ts.map +1 -1
  129. package/es/template/app-review/player/prop-types.d.ts +2 -0
  130. package/es/template/app-review/player/prop-types.d.ts.map +1 -1
  131. package/es/template/app-review/prop-types.d.ts +2 -0
  132. package/es/template/app-review/prop-types.d.ts.map +1 -1
  133. package/es/template/back-office/brand-update/index.d.ts +28 -0
  134. package/es/template/back-office/brand-update/utils.d.ts +1 -1
  135. package/es/template/common/dashboard/index.d.ts +4 -0
  136. package/es/template/common/search-page/index.d.ts +106 -21
  137. package/es/template/common/search-page/index.d.ts.map +1 -1
  138. package/es/template/common/search-page/index.js +76 -21
  139. package/es/template/common/search-page/index.js.map +1 -1
  140. package/es/template/common/search-page/style.css +52 -4
  141. package/es/template/external-course/index.d.ts +2 -0
  142. package/es/template/my-learning/index.d.ts +9 -0
  143. package/es/template/teams-dashboard/index.d.ts +9 -0
  144. package/es/util/external-content.js +2 -2
  145. package/es/util/external-content.js.map +1 -1
  146. package/es/variables/colors.css +6 -6
  147. package/es/variables/colors.d.ts +5 -4
  148. package/es/variables/colors.d.ts.map +1 -1
  149. package/es/variables/colors.js +5 -4
  150. package/es/variables/colors.js.map +1 -1
  151. package/lib/atom/button/style.css +2 -2
  152. package/lib/atom/button-menu/utils.d.ts +1 -1
  153. package/lib/atom/checkbox-with-title/index.d.ts +25 -1
  154. package/lib/atom/checkbox-with-title/index.d.ts.map +1 -1
  155. package/lib/atom/checkbox-with-title/index.js +19 -2
  156. package/lib/atom/checkbox-with-title/index.js.map +1 -1
  157. package/lib/atom/chip/index.d.ts.map +1 -1
  158. package/lib/atom/chip/index.js +4 -4
  159. package/lib/atom/chip/index.js.map +1 -1
  160. package/lib/atom/content-badge/style.css +2 -2
  161. package/lib/atom/input-html/index.d.ts.map +1 -1
  162. package/lib/atom/input-html/index.js +2 -1
  163. package/lib/atom/input-html/index.js.map +1 -1
  164. package/lib/atom/input-switch/index.d.ts +24 -1
  165. package/lib/atom/input-switch/index.d.ts.map +1 -1
  166. package/lib/atom/input-switch/index.js +18 -4
  167. package/lib/atom/input-switch/index.js.map +1 -1
  168. package/lib/atom/input-switch/style.css +3 -0
  169. package/lib/atom/range/index.d.ts +35 -3
  170. package/lib/atom/range/index.d.ts.map +1 -1
  171. package/lib/atom/range/index.js +95 -20
  172. package/lib/atom/range/index.js.map +1 -1
  173. package/lib/atom/range/style.css +40 -2
  174. package/lib/atom/resource-miniature/style.css +3 -3
  175. package/lib/atom/status-item/index.native.js +1 -1
  176. package/lib/atom/status-item/index.native.js.map +1 -1
  177. package/lib/molecule/base-modal/index.d.ts.map +1 -1
  178. package/lib/molecule/base-modal/index.js +11 -5
  179. package/lib/molecule/base-modal/index.js.map +1 -1
  180. package/lib/molecule/card/favorite.d.ts.map +1 -1
  181. package/lib/molecule/card/favorite.js +15 -16
  182. package/lib/molecule/card/favorite.js.map +1 -1
  183. package/lib/molecule/card/notification.css +0 -6
  184. package/lib/molecule/card/notification.d.ts.map +1 -1
  185. package/lib/molecule/card/notification.js +12 -14
  186. package/lib/molecule/card/notification.js.map +1 -1
  187. package/lib/molecule/cm-popin/types.d.ts +2 -0
  188. package/lib/molecule/cm-popin/types.d.ts.map +1 -1
  189. package/lib/molecule/coorpmanager-base-banner/style.css +1 -1
  190. package/lib/molecule/dashboard/cards-list/index.d.ts +9 -0
  191. package/lib/molecule/dashboard/cards-list/index.d.ts.map +1 -1
  192. package/lib/molecule/dashboard/cards-list/index.js +5 -1
  193. package/lib/molecule/dashboard/cards-list/index.js.map +1 -1
  194. package/lib/molecule/dashboard/cards-list/style.css +1 -1
  195. package/lib/molecule/draggable-list/index.d.ts +1 -0
  196. package/lib/molecule/go1-banner/style.css +3 -3
  197. package/lib/molecule/learning-priority-modal/index.js +1 -1
  198. package/lib/molecule/learning-priority-modal/index.js.map +1 -1
  199. package/lib/molecule/modal/style.css +3 -3
  200. package/lib/molecule/multi-filter-panel/index.d.ts +42 -0
  201. package/lib/molecule/multi-filter-panel/index.d.ts.map +1 -1
  202. package/lib/molecule/multi-filter-panel/index.js +28 -15
  203. package/lib/molecule/multi-filter-panel/index.js.map +1 -1
  204. package/lib/molecule/multi-filter-panel/prop-types.d.ts +32 -5
  205. package/lib/molecule/multi-filter-panel/prop-types.d.ts.map +1 -1
  206. package/lib/molecule/multi-filter-panel/prop-types.js +4 -0
  207. package/lib/molecule/multi-filter-panel/prop-types.js.map +1 -1
  208. package/lib/molecule/questions/question-range/index.d.ts +6 -1
  209. package/lib/molecule/quick-filters/index.js +3 -1
  210. package/lib/molecule/quick-filters/index.js.map +1 -1
  211. package/lib/molecule/quick-filters/style.css +7 -2
  212. package/lib/molecule/tabs/index.d.ts +39 -0
  213. package/lib/molecule/tabs/index.d.ts.map +1 -0
  214. package/lib/molecule/tabs/index.js +74 -0
  215. package/lib/molecule/tabs/index.js.map +1 -0
  216. package/lib/molecule/tabs/style.css +28 -0
  217. package/lib/molecule/title-and-checkbox-wrapper/index.d.ts +1 -0
  218. package/lib/organism/brand-analytics/style.css +1 -1
  219. package/lib/organism/brand-learning-priorities/index.d.ts +1 -0
  220. package/lib/organism/content-skill-modal/index.d.ts +23 -0
  221. package/lib/organism/content-skill-modal/index.d.ts.map +1 -1
  222. package/lib/organism/content-skill-modal/types.d.ts +23 -0
  223. package/lib/organism/content-skill-modal/types.d.ts.map +1 -1
  224. package/lib/organism/filter-checkbox-and-search/index.d.ts +22 -0
  225. package/lib/organism/filter-checkbox-and-search/index.d.ts.map +1 -1
  226. package/lib/organism/filter-checkbox-and-search/index.js +21 -4
  227. package/lib/organism/filter-checkbox-and-search/index.js.map +1 -1
  228. package/lib/organism/filter-checkbox-and-search/props-types.d.ts +3 -0
  229. package/lib/organism/filter-checkbox-and-search/props-types.d.ts.map +1 -1
  230. package/lib/organism/filter-checkbox-and-search/props-types.js +1 -0
  231. package/lib/organism/filter-checkbox-and-search/props-types.js.map +1 -1
  232. package/lib/organism/filter-chip/index.d.ts +21 -0
  233. package/lib/organism/filter-chip/index.d.ts.map +1 -1
  234. package/lib/organism/filter-chip/index.js +14 -2
  235. package/lib/organism/filter-chip/index.js.map +1 -1
  236. package/lib/organism/filter-range/index.d.ts +28 -0
  237. package/lib/organism/filter-range/index.d.ts.map +1 -0
  238. package/lib/organism/filter-range/index.js +108 -0
  239. package/lib/organism/filter-range/index.js.map +1 -0
  240. package/lib/organism/filter-range/prop-types.d.ts +40 -0
  241. package/lib/organism/filter-range/prop-types.d.ts.map +1 -0
  242. package/lib/organism/filter-range/prop-types.js +25 -0
  243. package/lib/organism/filter-range/prop-types.js.map +1 -0
  244. package/lib/organism/filter-range/style.css +15 -0
  245. package/lib/organism/filter-switch/index.d.ts +22 -0
  246. package/lib/organism/filter-switch/index.d.ts.map +1 -1
  247. package/lib/organism/filter-switch/index.js +18 -3
  248. package/lib/organism/filter-switch/index.js.map +1 -1
  249. package/lib/organism/filter-switch/prop-types.d.ts +2 -0
  250. package/lib/organism/filter-switch/prop-types.d.ts.map +1 -1
  251. package/lib/organism/filter-switch/prop-types.js +2 -1
  252. package/lib/organism/filter-switch/prop-types.js.map +1 -1
  253. package/lib/organism/list-item/index.d.ts +1 -0
  254. package/lib/organism/list-items/index.d.ts +2 -0
  255. package/lib/organism/list-items/style.css +1 -1
  256. package/lib/organism/mooc-footer/style.css +2 -2
  257. package/lib/organism/rewards-form/index.d.ts +1 -0
  258. package/lib/organism/select-opponents/index.d.ts +1 -0
  259. package/lib/organism/select-opponents/index.d.ts.map +1 -1
  260. package/lib/organism/select-opponents/types.d.ts +1 -0
  261. package/lib/organism/select-opponents/types.d.ts.map +1 -1
  262. package/lib/organism/sidebar/style.css +3 -3
  263. package/lib/organism/title-and-input/index.d.ts +1 -0
  264. package/lib/organism/title-and-input/index.d.ts.map +1 -1
  265. package/lib/organism/title-and-input/types.d.ts +1 -0
  266. package/lib/organism/title-and-input/types.d.ts.map +1 -1
  267. package/lib/organism/wizard-contents/index.d.ts +1 -0
  268. package/lib/template/activity/stars-summary.css +2 -2
  269. package/lib/template/app-player/loading/index.d.ts +2 -0
  270. package/lib/template/app-player/player/index.d.ts +4 -0
  271. package/lib/template/app-player/player/slides/index.d.ts +2 -0
  272. package/lib/template/app-player/player/slides/index.d.ts.map +1 -1
  273. package/lib/template/app-player/popin-correction/index.d.ts +2 -0
  274. package/lib/template/app-player/popin-correction/index.d.ts.map +1 -1
  275. package/lib/template/app-player/popin-end/index.d.ts +11 -0
  276. package/lib/template/app-player/popin-end/summary.d.ts +9 -0
  277. package/lib/template/app-review/index.d.ts +2 -0
  278. package/lib/template/app-review/index.d.ts.map +1 -1
  279. package/lib/template/app-review/player/prop-types.d.ts +2 -0
  280. package/lib/template/app-review/player/prop-types.d.ts.map +1 -1
  281. package/lib/template/app-review/prop-types.d.ts +2 -0
  282. package/lib/template/app-review/prop-types.d.ts.map +1 -1
  283. package/lib/template/back-office/brand-update/index.d.ts +28 -0
  284. package/lib/template/back-office/brand-update/utils.d.ts +1 -1
  285. package/lib/template/common/dashboard/index.d.ts +4 -0
  286. package/lib/template/common/search-page/index.d.ts +106 -21
  287. package/lib/template/common/search-page/index.d.ts.map +1 -1
  288. package/lib/template/common/search-page/index.js +75 -20
  289. package/lib/template/common/search-page/index.js.map +1 -1
  290. package/lib/template/common/search-page/style.css +52 -4
  291. package/lib/template/external-course/index.d.ts +2 -0
  292. package/lib/template/my-learning/index.d.ts +9 -0
  293. package/lib/template/teams-dashboard/index.d.ts +9 -0
  294. package/lib/util/external-content.js +2 -2
  295. package/lib/util/external-content.js.map +1 -1
  296. package/lib/variables/colors.css +6 -6
  297. package/lib/variables/colors.d.ts +5 -4
  298. package/lib/variables/colors.d.ts.map +1 -1
  299. package/lib/variables/colors.js +5 -4
  300. package/lib/variables/colors.js.map +1 -1
  301. package/package.json +4 -2
@@ -0,0 +1,101 @@
1
+ import React, { useState, useCallback, useRef } from 'react';
2
+ import Range from '../../atom/range';
3
+ import Title from '../../atom/title';
4
+ import ButtonLink from '../../atom/button-link';
5
+ import Provider, { GetTranslateFromContext } from '../../atom/provider';
6
+ import { COLORS } from '../../variables/colors';
7
+ import style from './style.css';
8
+ import propTypes from './prop-types';
9
+ const CLEAR_BUTTON_STYLE = {
10
+ fontWeight: 'normal',
11
+ padding: 0,
12
+ width: 'auto'
13
+ };
14
+ const FilterRange = (props, context) => {
15
+ const {
16
+ title,
17
+ titleAriaLabel,
18
+ onClear,
19
+ options
20
+ } = props;
21
+ const translate = GetTranslateFromContext(context);
22
+ const {
23
+ min,
24
+ max,
25
+ step,
26
+ value,
27
+ minLabel,
28
+ maxLabel,
29
+ onChange,
30
+ theme,
31
+ minValueLabel,
32
+ maxValueLabel
33
+ } = options;
34
+ const [isDragging, setIsDragging] = useState(false);
35
+ const [pendingValue, setPendingValue] = useState(null);
36
+ const containerRef = useRef(null);
37
+ const handleRangeChange = useCallback(newValue => {
38
+ if (isDragging) {
39
+ setPendingValue(newValue);
40
+ } else {
41
+ onChange(newValue);
42
+ }
43
+ }, [isDragging, onChange]);
44
+ const finalize = useCallback(() => {
45
+ setIsDragging(false);
46
+ if (pendingValue) {
47
+ onChange(pendingValue);
48
+ setPendingValue(null);
49
+ }
50
+ }, [pendingValue, onChange]);
51
+ const handlePointerDown = useCallback(e => {
52
+ containerRef.current?.setPointerCapture(e.pointerId);
53
+ setIsDragging(true);
54
+ }, []);
55
+ const handlePointerUp = useCallback(e => {
56
+ containerRef.current?.releasePointerCapture(e.pointerId);
57
+ finalize();
58
+ }, [finalize]);
59
+ const hasValue = value && value.length > 0 && (value[0] !== min || value[1] !== max);
60
+ return /*#__PURE__*/React.createElement("div", {
61
+ className: style.container
62
+ }, /*#__PURE__*/React.createElement("div", {
63
+ className: style.header
64
+ }, /*#__PURE__*/React.createElement(Title, {
65
+ title: title,
66
+ type: "form-group",
67
+ titleSize: "standard-light-weight",
68
+ ariaLabel: titleAriaLabel
69
+ }), hasValue ? /*#__PURE__*/React.createElement(ButtonLink, {
70
+ customStyle: CLEAR_BUTTON_STYLE,
71
+ label: translate('clear'),
72
+ type: "text",
73
+ "data-name": "range-clear-button",
74
+ "aria-label": "range clear button",
75
+ onClick: onClear,
76
+ hoverColor: COLORS.primary_600
77
+ }) : null), /*#__PURE__*/React.createElement("div", {
78
+ ref: containerRef,
79
+ className: style.rangeContainer,
80
+ onPointerDown: handlePointerDown,
81
+ onPointerUp: handlePointerUp
82
+ }, /*#__PURE__*/React.createElement(Range, {
83
+ multi: true,
84
+ theme: theme || 'mooc',
85
+ min: min,
86
+ max: max,
87
+ step: step,
88
+ value: pendingValue || value,
89
+ minLabel: minLabel,
90
+ maxLabel: maxLabel,
91
+ minValueLabel: minValueLabel,
92
+ maxValueLabel: maxValueLabel,
93
+ onChange: handleRangeChange
94
+ })));
95
+ };
96
+ FilterRange.propTypes = process.env.NODE_ENV !== "production" ? propTypes : {};
97
+ FilterRange.contextTypes = {
98
+ translate: Provider.childContextTypes.translate
99
+ };
100
+ export default FilterRange;
101
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","names":["React","useState","useCallback","useRef","Range","Title","ButtonLink","Provider","GetTranslateFromContext","COLORS","style","propTypes","CLEAR_BUTTON_STYLE","fontWeight","padding","width","FilterRange","props","context","title","titleAriaLabel","onClear","options","translate","min","max","step","value","minLabel","maxLabel","onChange","theme","minValueLabel","maxValueLabel","isDragging","setIsDragging","pendingValue","setPendingValue","containerRef","handleRangeChange","newValue","finalize","handlePointerDown","e","current","setPointerCapture","pointerId","handlePointerUp","releasePointerCapture","hasValue","length","createElement","className","container","header","type","titleSize","ariaLabel","customStyle","label","onClick","hoverColor","primary_600","ref","rangeContainer","onPointerDown","onPointerUp","multi","process","env","NODE_ENV","contextTypes","childContextTypes"],"sources":["../../../src/organism/filter-range/index.tsx"],"sourcesContent":["import React, {useState, useCallback, useRef} from 'react';\nimport Range from '../../atom/range';\nimport Title from '../../atom/title';\nimport ButtonLink from '../../atom/button-link';\nimport Provider, {GetTranslateFromContext} from '../../atom/provider';\nimport {WebContextValues} from '../../atom/provider/web-context';\nimport {COLORS} from '../../variables/colors';\nimport style from './style.css';\nimport propTypes, {FilterRangeProps} from './prop-types';\n\nconst CLEAR_BUTTON_STYLE = {fontWeight: 'normal', padding: 0, width: 'auto'};\n\nconst FilterRange = (props: FilterRangeProps, context: WebContextValues) => {\n const {title, titleAriaLabel, onClear, options} = props;\n const translate = GetTranslateFromContext(context);\n const {min, max, step, value, minLabel, maxLabel, onChange, theme, minValueLabel, maxValueLabel} =\n options;\n\n const [isDragging, setIsDragging] = useState(false);\n const [pendingValue, setPendingValue] = useState<number[] | null>(null);\n const containerRef = useRef<HTMLDivElement>(null);\n\n const handleRangeChange = useCallback(\n (newValue: number[]) => {\n if (isDragging) {\n setPendingValue(newValue);\n } else {\n onChange(newValue);\n }\n },\n [isDragging, onChange]\n );\n\n const finalize = useCallback(() => {\n setIsDragging(false);\n if (pendingValue) {\n onChange(pendingValue);\n setPendingValue(null);\n }\n }, [pendingValue, onChange]);\n\n const handlePointerDown = useCallback((e: React.PointerEvent<HTMLDivElement>) => {\n containerRef.current?.setPointerCapture(e.pointerId);\n setIsDragging(true);\n }, []);\n\n const handlePointerUp = useCallback(\n (e: React.PointerEvent<HTMLDivElement>) => {\n containerRef.current?.releasePointerCapture(e.pointerId);\n finalize();\n },\n [finalize]\n );\n\n const hasValue = value && value.length > 0 && (value[0] !== min || value[1] !== max);\n\n return (\n <div className={style.container}>\n <div className={style.header}>\n <Title\n title={title}\n type=\"form-group\"\n titleSize=\"standard-light-weight\"\n ariaLabel={titleAriaLabel}\n />\n {hasValue ? (\n <ButtonLink\n customStyle={CLEAR_BUTTON_STYLE}\n label={translate('clear')}\n type=\"text\"\n data-name=\"range-clear-button\"\n aria-label=\"range clear button\"\n onClick={onClear}\n hoverColor={COLORS.primary_600}\n />\n ) : null}\n </div>\n <div\n ref={containerRef}\n className={style.rangeContainer}\n onPointerDown={handlePointerDown}\n onPointerUp={handlePointerUp}\n >\n <Range\n multi\n theme={theme || 'mooc'}\n min={min}\n max={max}\n step={step}\n value={pendingValue || value}\n minLabel={minLabel}\n maxLabel={maxLabel}\n minValueLabel={minValueLabel}\n maxValueLabel={maxValueLabel}\n onChange={handleRangeChange}\n />\n </div>\n </div>\n );\n};\n\nFilterRange.propTypes = propTypes;\n\nFilterRange.contextTypes = {\n translate: Provider.childContextTypes.translate\n};\n\nexport default FilterRange;\n"],"mappings":"AAAA,OAAOA,KAAK,IAAGC,QAAQ,EAAEC,WAAW,EAAEC,MAAM,QAAO,OAAO;AAC1D,OAAOC,KAAK,MAAM,kBAAkB;AACpC,OAAOC,KAAK,MAAM,kBAAkB;AACpC,OAAOC,UAAU,MAAM,wBAAwB;AAC/C,OAAOC,QAAQ,IAAGC,uBAAuB,QAAO,qBAAqB;AAErE,SAAQC,MAAM,QAAO,wBAAwB;A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ACsD,cAAe;IAChCC,aAAa,EAAEvB,iBAAkB;IACjCwB,WAAW,EAAEnB;EAAgB,gBAE7B/C,KAAA,CAAAmD,aAAA,CAAC/C,KAAK;IACJ+D,KAAK;IACLpC,KAAK,EAAEA,KAAK,IAAI,MAAO;IACvBP,GAAG,EAAEA,GAAI;IACTC,GAAG,EAAEA,GAAI;IACTC,IAAI,EAAEA,IAAK;IACXC,KAAK,EAAES,YAAY,IAAIT,KAAM;IAC7BC,QAAQ,EAAEA,QAAS;IACnBC,QAAQ,EAAEA,QAAS;IACnBG,aAAa,EAAEA,aAAc;IAC7BC,aAAa,EAAEA,aAAc;IAC7BH,QAAQ,EAAES;EAAkB,CAC7B,CACE,CACF,CAAC;AAEV,CAAC;AAEDvB,WAAW,CAACL,SAAS,GAAAyD,OAAA,CAAAC,GAAA,CAAAC,QAAA,oBAAG3D,SAAS;AAEjCK,WAAW,CAACuD,YAAY,GAAG;EACzBhD,SAAS,EAAEhB,QAAQ,CAACiE,iBAAiB,CAACjD;AACxC,CAAC;AAED,eAAeP,WAAW","ignoreList":[]}
@@ -0,0 +1,40 @@
1
+ import PropTypes from 'prop-types';
2
+ declare const propTypes: {
3
+ title: PropTypes.Validator<string>;
4
+ titleAriaLabel: PropTypes.Requireable<string>;
5
+ onClear: PropTypes.Validator<(...args: any[]) => any>;
6
+ options: PropTypes.Requireable<PropTypes.InferProps<{
7
+ label: PropTypes.Validator<string>;
8
+ min: PropTypes.Validator<number>;
9
+ max: PropTypes.Validator<number>;
10
+ step: PropTypes.Requireable<number>;
11
+ value: PropTypes.Requireable<(number | null | undefined)[]>;
12
+ minLabel: PropTypes.Requireable<string>;
13
+ maxLabel: PropTypes.Requireable<string>;
14
+ onChange: PropTypes.Validator<(...args: any[]) => any>;
15
+ theme: PropTypes.Requireable<string>;
16
+ selected: PropTypes.Requireable<boolean>;
17
+ }>>;
18
+ };
19
+ export declare type FilterRangeOptionsProps = {
20
+ label: string;
21
+ min: number;
22
+ max: number;
23
+ step?: number;
24
+ value: number[];
25
+ minLabel?: string;
26
+ maxLabel?: string;
27
+ minValueLabel?: string;
28
+ maxValueLabel?: string;
29
+ onChange: (value: number[]) => void;
30
+ theme?: string;
31
+ selected?: boolean;
32
+ };
33
+ export declare type FilterRangeProps = {
34
+ title: string;
35
+ titleAriaLabel?: string;
36
+ onClear: () => void;
37
+ options: FilterRangeOptionsProps;
38
+ };
39
+ export default propTypes;
40
+ //# sourceMappingURL=prop-types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"prop-types.d.ts","sourceRoot":"","sources":["../../../src/organism/filter-range/prop-types.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,YAAY,CAAC;AAEnC,QAAA,MAAM,SAAS;;;;;;;;;;;;;;;;CAgBd,CAAC;AAEF,oBAAY,uBAAuB,GAAG;IACpC,KAAK,EAAE,MAAM,CAAC;IACd,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,EAAE,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,IAAI,CAAC;IACpC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,CAAC;AAEF,oBAAY,gBAAgB,GAAG;IAC7B,KAAK,EAAE,MAAM,CAAC;IACd,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,OAAO,EAAE,uBAAuB,CAAC;CAClC,CAAC;AAEF,eAAe,SAAS,CAAC"}
@@ -0,0 +1,20 @@
1
+ import PropTypes from 'prop-types';
2
+ const propTypes = {
3
+ title: PropTypes.string.isRequired,
4
+ titleAriaLabel: PropTypes.string,
5
+ onClear: PropTypes.func.isRequired,
6
+ options: PropTypes.shape({
7
+ label: PropTypes.string.isRequired,
8
+ min: PropTypes.number.isRequired,
9
+ max: PropTypes.number.isRequired,
10
+ step: PropTypes.number,
11
+ value: PropTypes.arrayOf(PropTypes.number),
12
+ minLabel: PropTypes.string,
13
+ maxLabel: PropTypes.string,
14
+ onChange: PropTypes.func.isRequired,
15
+ theme: PropTypes.string,
16
+ selected: PropTypes.bool
17
+ })
18
+ };
19
+ export default propTypes;
20
+ //# sourceMappingURL=prop-types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"prop-types.js","names":["PropTypes","propTypes","title","string","isRequired","titleAriaLabel","onClear","func","options","shape","label","min","number","max","step","value","arrayOf","minLabel","maxLabel","onChange","theme","selected","bool"],"sources":["../../../src/organism/filter-range/prop-types.ts"],"sourcesContent":["import PropTypes from 'prop-types';\n\nconst propTypes = {\n title: PropTypes.string.isRequired,\n titleAriaLabel: PropTypes.string,\n onClear: PropTypes.func.isRequired,\n options: PropTypes.shape({\n label: PropTypes.string.isRequired,\n min: PropTypes.number.isRequired,\n max: PropTypes.number.isRequired,\n step: PropTypes.number,\n value: PropTypes.arrayOf(PropTypes.number),\n minLabel: PropTypes.string,\n maxLabel: PropTypes.string,\n onChange: PropTypes.func.isRequired,\n theme: PropTypes.string,\n selected: PropTypes.bool\n })\n};\n\nexport type FilterRangeOptionsProps = {\n label: string;\n min: number;\n max: number;\n step?: number;\n value: number[];\n minLabel?: string;\n maxLabel?: string;\n minValueLabel?: string;\n maxValueLabel?: string;\n onChange: (value: number[]) => void;\n theme?: string;\n selected?: boolean;\n};\n\nexport type FilterRangeProps = {\n title: string;\n titleAriaLabel?: string;\n onClear: () => void;\n options: FilterRangeOptionsProps;\n};\n\nexport default propTypes;\n"],"mappings":"AAAA,OAAOA,SAAS,MAAM,YAAY;AAElC,MAAMC,SAAS,GAAG;EAChBC,KAAK,EAAEF,SAAS,CAACG,MAAM,CAACC,UAAU;EAClCC,cAAc,EAAEL,SAAS,CAACG,MAAM;EAChCG,OAAO,EAAEN,SAAS,CAACO,IAAI,CAACH,UAAU;EAClCI,OAAO,EAAER,SAAS,CAACS,KAAK,CAAC;IACvBC,KAAK,EAAEV,SAAS,CAACG,MAAM,CAACC,UAAU;IAClCO,GAAG,EAAEX,SAAS,CAACY,MAAM,CAACR,UAAU;IAChCS,GAAG,EAAEb,SAAS,CAACY,MAAM,CAACR,UAAU;IAChCU,IAAI,EAAEd,SAAS,CAACY,MAAM;IACtBG,KAAK,EAAEf,SAAS,CAACgB,OAAO,CAAChB,SAAS,CAACY,MAAM,CAAC;IAC1CK,QAAQ,EAAEjB,SAAS,CAACG,MAAM;IAC1Be,QAAQ,EAAElB,SAAS,CAACG,MAAM;IAC1BgB,QAAQ,EAAEnB,SAAS,CAACO,IAAI,CAACH,UAAU;IACnCgB,KAAK,EAAEpB,SAAS,CAACG,MAAM;IACvBkB,QAAQ,EAAErB,SAAS,CAACsB;EACtB,CAAC;AACH,CAAC;AAwBD,eAAerB,SAAS","ignoreList":[]}
@@ -0,0 +1,15 @@
1
+ .container {
2
+ display: flex;
3
+ flex-direction: column;
4
+ gap: 12px;
5
+ }
6
+
7
+ .header {
8
+ display: flex;
9
+ justify-content: space-between;
10
+ align-items: flex-start;
11
+ }
12
+
13
+ .rangeContainer {
14
+ padding: 8px 0;
15
+ }
@@ -13,10 +13,32 @@ declare const FilterSwitch: {
13
13
  onChange: import("prop-types").Validator<(...args: any[]) => any>;
14
14
  theme: import("prop-types").Validator<string>;
15
15
  ariaLabel: import("prop-types").Validator<string>;
16
+ id: import("prop-types").Requireable<string>;
16
17
  }> | null | undefined)[]>;
17
18
  };
18
19
  contextTypes: {
19
20
  translate: import("prop-types").Requireable<(...args: any[]) => any>;
21
+ skin: import("prop-types").Requireable<import("prop-types").InferProps<{
22
+ common: import("prop-types").Requireable<{
23
+ [x: string]: any;
24
+ }>;
25
+ images: import("prop-types").Requireable<import("prop-types").InferProps<{
26
+ 'logo-mobile': import("prop-types").Requireable<any>;
27
+ logo: import("prop-types").Requireable<any>;
28
+ 'logo-email': import("prop-types").Requireable<any>;
29
+ login: import("prop-types").Requireable<any>;
30
+ }>>;
31
+ icons: import("prop-types").Requireable<{
32
+ [x: string]: any;
33
+ }>;
34
+ mod: import("prop-types").Requireable<{
35
+ [x: string]: any;
36
+ }>;
37
+ courses: import("prop-types").Requireable<any[]>;
38
+ texts: import("prop-types").Requireable<{
39
+ [x: string]: any;
40
+ }>;
41
+ }>>;
20
42
  };
21
43
  };
22
44
  export default FilterSwitch;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/organism/filter-switch/index.tsx"],"names":[],"mappings":";AAOA,OAAO,EAAC,gBAAgB,EAAC,MAAM,iCAAiC,CAAC;AAEjE,OAAkB,EAAC,iBAAiB,EAAC,MAAM,cAAc,CAAC;AAG1D,QAAA,MAAM,YAAY;YAAW,iBAAiB,WAAW,gBAAgB;;;;;;;;;;;;;;;;CA+CxE,CAAC;AAQF,eAAe,YAAY,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/organism/filter-switch/index.tsx"],"names":[],"mappings":";AAQA,OAAO,EAAC,gBAAgB,EAAC,MAAM,iCAAiC,CAAC;AAEjE,OAAkB,EAAC,iBAAiB,EAAC,MAAM,cAAc,CAAC;AAG1D,QAAA,MAAM,YAAY;YAAW,iBAAiB,WAAW,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiExE,CAAC;AASF,eAAe,YAAY,CAAC"}
@@ -1,8 +1,10 @@
1
1
  import _toString from "lodash/fp/toString";
2
+ import _getOr from "lodash/fp/getOr";
2
3
  import _size from "lodash/fp/size";
3
4
  import _pipe from "lodash/fp/pipe";
4
5
  import _filter from "lodash/fp/filter";
5
6
  import React from 'react';
7
+ import { convert } from 'css-color-function';
6
8
  import Title from '../../atom/title';
7
9
  import InputSwitch from '../../atom/input-switch';
8
10
  import Tag from '../../atom/tag';
@@ -12,6 +14,10 @@ import { COLORS } from '../../variables/colors';
12
14
  import propTypes from './prop-types';
13
15
  import style from './style.css';
14
16
  const FilterSwitch = (props, context) => {
17
+ const {
18
+ skin
19
+ } = context;
20
+ const primaryColor = _getOr(COLORS.cm_primary_blue, 'common.primary', skin);
15
21
  const {
16
22
  title,
17
23
  titleAriaLabel,
@@ -33,7 +39,11 @@ const FilterSwitch = (props, context) => {
33
39
  }), hasSelectedFilters ? /*#__PURE__*/React.createElement(Tag, {
34
40
  label: _toString(selectedFiltersCount),
35
41
  type: "info",
36
- size: "S"
42
+ size: "S",
43
+ customStyle: {
44
+ color: primaryColor,
45
+ backgroundColor: convert(`color(${primaryColor} lightness(92%))`)
46
+ }
37
47
  }) : null), hasSelectedFilters ? /*#__PURE__*/React.createElement("div", {
38
48
  className: style.buttonContainer
39
49
  }, /*#__PURE__*/React.createElement(ButtonLink, {
@@ -54,12 +64,16 @@ const FilterSwitch = (props, context) => {
54
64
  label,
55
65
  value,
56
66
  onChange,
57
- ariaLabel
67
+ ariaLabel,
68
+ id
58
69
  } = optionItem;
70
+ // Use provided id or generate fallback id
71
+ const switchId = id || `filter-switch-${label.toLowerCase().replace(/\s+/g, '-').replace(/[^a-z0-9-]/g, '')}`;
59
72
  return /*#__PURE__*/React.createElement("div", {
60
73
  key: label,
61
74
  className: style.switchOption
62
75
  }, /*#__PURE__*/React.createElement(InputSwitch, {
76
+ id: switchId,
63
77
  title: label,
64
78
  value: value,
65
79
  theme: 'newMooc',
@@ -70,7 +84,8 @@ const FilterSwitch = (props, context) => {
70
84
  };
71
85
  FilterSwitch.propTypes = process.env.NODE_ENV !== "production" ? propTypes : {};
72
86
  FilterSwitch.contextTypes = {
73
- translate: Provider.childContextTypes.translate
87
+ translate: Provider.childContextTypes.translate,
88
+ skin: Provider.childContextTypes.skin
74
89
  };
75
90
  export default FilterSwitch;
76
91
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["React","Title","InputSwitch","Tag","ButtonLink","Provider","GetTranslateFromContext","COLORS","propTypes","style","FilterSwitch","props","context","title","titleAriaLabel","onClear","options","selectedFiltersCount","_pipe","_filter","value","_size","hasSelectedFilters","translate","createElement","className","header","titleContainer","ariaLabel","label","_toString","type","size","buttonContainer","customStyle","fontWeight","padding","onClick","hoverColor","cm_grey_700","optionsContainer","map","optionItem","onChange","key","switchOption","theme","process","env","NODE_ENV","contextTypes","childContextTypes"],"sources":["../../../src/organism/filter-switch/index.tsx"],"sourcesContent":["import React from 'react';\nimport {filter, pipe, size, toString} from 'lodash/fp';\nimport Title from '../../atom/title';\nimport InputSwitch from '../../atom/input-switch';\nimport Tag from '../../atom/tag';\nimport ButtonLink from '../../atom/button-link';\nimport Provider, {GetTranslateFromContext} from '../../atom/provider';\nimport {WebContextValues} from '../../atom/provider/web-context';\nimport {COLORS} from '../../variables/colors';\nimport propTypes, {FilterSwitchProps} from './prop-types';\nimport style from './style.css';\n\nconst FilterSwitch = (props: FilterSwitchProps, context: WebContextValues) => {\n const {title, titleAriaLabel, onClear, options} = props;\n const selectedFiltersCount = pipe(filter({value: true}), size)(options);\n const hasSelectedFilters = selectedFiltersCount > 0;\n const translate = GetTranslateFromContext(context);\n\n return (\n <div>\n <div className={style.header}>\n <div className={style.titleContainer}>\n <Title title={title} ariaLabel={titleAriaLabel} />\n {hasSelectedFilters ? (\n <Tag label={toString(selectedFiltersCount)} type=\"info\" size=\"S\" />\n ) : null}\n </div>\n {hasSelectedFilters ? (\n <div className={style.buttonContainer}>\n <ButtonLink\n customStyle={{fontWeight: 'normal', padding: 0}}\n label={translate('clear')}\n type=\"text\"\n data-name=\"filter-chip-clear-button\"\n aria-label=\"filter chip clear button\"\n onClick={onClear}\n hoverColor={COLORS.cm_grey_700}\n />\n </div>\n ) : null}\n </div>\n <div className={style.optionsContainer}>\n {options.map(optionItem => {\n const {label, value, onChange, ariaLabel} = optionItem;\n return (\n <div key={label} className={style.switchOption}>\n <InputSwitch\n title={label}\n value={value}\n theme={'newMooc'}\n onChange={onChange}\n aria-label={ariaLabel}\n />\n </div>\n );\n })}\n </div>\n </div>\n );\n};\n\nFilterSwitch.propTypes = propTypes;\n\nFilterSwitch.contextTypes = {\n translate: Provider.childContextTypes.translate\n};\n\nexport default FilterSwitch;\n"],"mappings":";;;;AAAA,OAAOA,KAAK,MAAM,OAAO;AAEzB,OAAOC,KAAK,MAAM,kBAAkB;AACpC,OAAOC,WAAW,MAAM,yBAAyB;AACjD,OAAOC,GAAG,MAAM,gBAAgB;AAChC,OAAOC,UAAU,MAAM,wBAAwB;AAC/C,OAAOC,QAAQ,IAAGC,uBAAuB,QAAO,qBAAqB;AAErE,SAAQC,MAAM,QAAO,wBAAwB;AAC7C,OAAOC,SAAS,MAA2B,cAAc;AACzD,OAAOC,KAAK,MAAM,aAAa;AAE/B,MAAMC,YAAY,GAAGA,CAACC,KAAwB,EAAEC,OAAyB,KAAK;EAC5E,MAAM;IAACC,KAAK;IAAEC,cAAc;IAAEC,OAAO;IAAEC;EAAO,CAAC,GAAGL,KAAK;EACvD,MAAMM,oBAAoB,GAAGC,KAAA,CAAKC,OAAA,CAAO;IAACC,KAAK,EAAE;EAAI,CAAC,CAAC,EAAAC,KAAM,CAAC,CAACL,OAAO,CAAC;EACvE,MAAMM,kBAAkB,GAAGL,oBAAoB,GAAG,CAAC;EACnD,MAAMM,SAAS,GAAGjB,uBAAuB,CAACM,OAAO,CAAC;EAElD,oBACEZ,KAAA,CAAAwB,aAAA,2BACExB,KAAA,CAAAwB,aAAA;IAAKC,SAAS,EAAEhB,KAAK,CAACiB;EAAO,gBAC3B1B,KAAA,CAAAwB,aAAA;IAAKC,SAAS,EAAEhB,KAAK,CAACkB;EAAe,gBACnC3B,KAAA,CAAAwB,aAAA,CAACvB,KAAK;IAACY,KAAK,EAAEA,KAAM;IAACe,SAAS,EAAEd;EAAe,CAAE,CAAC,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,CAACwC,YAAY,GAAG;EAC1B3B,SAAS,EAAElB,QAAQ,CAAC8C,iBAAiB,CAAC5B;AACxC,CAAC;AAED,eAAeb,YAAY","ignoreList":[]}
1
+ {"version":3,"file":"index.js","names":["React","convert","Title","InputSwitch","Tag","ButtonLink","Provider","GetTranslateFromContext","COLORS","propTypes","style","FilterSwitch","props","context","skin","primaryColor","_getOr","cm_primary_blue","title","titleAriaLabel","onClear","options","selectedFiltersCount","_pipe","_filter","value","_size","hasSelectedFilters","translate","createElement","className","header","titleContainer","ariaLabel","label","_toString","type","size","customStyle","color","backgroundColor","buttonContainer","fontWeight","padding","onClick","hoverColor","cm_grey_700","optionsContainer","map","optionItem","onChange","id","switchId","toLowerCase","replace","key","switchOption","theme","process","env","NODE_ENV","contextTypes","childContextTypes"],"sources":["../../../src/organism/filter-switch/index.tsx"],"sourcesContent":["import React from 'react';\nimport {filter, pipe, size, getOr, toString} from 'lodash/fp';\nimport {convert} from 'css-color-function';\nimport Title from '../../atom/title';\nimport InputSwitch from '../../atom/input-switch';\nimport Tag from '../../atom/tag';\nimport ButtonLink from '../../atom/button-link';\nimport Provider, {GetTranslateFromContext} from '../../atom/provider';\nimport {WebContextValues} from '../../atom/provider/web-context';\nimport {COLORS} from '../../variables/colors';\nimport propTypes, {FilterSwitchProps} from './prop-types';\nimport style from './style.css';\n\nconst FilterSwitch = (props: FilterSwitchProps, context: WebContextValues) => {\n const {skin} = context;\n const primaryColor = getOr(COLORS.cm_primary_blue, 'common.primary', skin);\n const {title, titleAriaLabel, onClear, options} = props;\n const selectedFiltersCount = pipe(filter({value: true}), size)(options);\n const hasSelectedFilters = selectedFiltersCount > 0;\n const translate = GetTranslateFromContext(context);\n\n return (\n <div>\n <div className={style.header}>\n <div className={style.titleContainer}>\n <Title title={title} ariaLabel={titleAriaLabel} />\n {hasSelectedFilters ? (\n <Tag\n label={toString(selectedFiltersCount)}\n type=\"info\"\n size=\"S\"\n customStyle={{\n color: primaryColor,\n backgroundColor: convert(`color(${primaryColor} lightness(92%))`)\n }}\n />\n ) : null}\n </div>\n {hasSelectedFilters ? (\n <div className={style.buttonContainer}>\n <ButtonLink\n customStyle={{fontWeight: 'normal', padding: 0}}\n label={translate('clear')}\n type=\"text\"\n data-name=\"filter-chip-clear-button\"\n aria-label=\"filter chip clear button\"\n onClick={onClear}\n hoverColor={COLORS.cm_grey_700}\n />\n </div>\n ) : null}\n </div>\n <div className={style.optionsContainer}>\n {options.map(optionItem => {\n const {label, value, onChange, ariaLabel, id} = optionItem;\n // Use provided id or generate fallback id\n const switchId =\n id ||\n `filter-switch-${label\n .toLowerCase()\n .replace(/\\s+/g, '-')\n .replace(/[^a-z0-9-]/g, '')}`;\n return (\n <div key={label} className={style.switchOption}>\n <InputSwitch\n id={switchId}\n title={label}\n value={value}\n theme={'newMooc'}\n onChange={onChange}\n aria-label={ariaLabel}\n />\n </div>\n );\n })}\n </div>\n </div>\n );\n};\n\nFilterSwitch.propTypes = propTypes;\n\nFilterSwitch.contextTypes = {\n translate: Provider.childContextTypes.translate,\n skin: Provider.childContextTypes.skin\n};\n\nexport default FilterSwitch;\n"],"mappings":";;;;;AAAA,OAAOA,KAAK,MAAM,OAAO;AAEzB,SAAQC,OAAO,QAAO,oBAAoB;AAC1C,OAAOC,KAAK,MAAM,kBAAkB;AACpC,OAAOC,WAAW,MAAM,yBAAyB;AACjD,OAAOC,GAAG,MAAM,gBAAgB;AAChC,OAAOC,UAAU,MAAM,wBAAwB;AAC/C,OAAOC,QAAQ,IAAGC,uBAAuB,QAAO,qBAAqB;AAErE,SAAQC,MAAM,QAAO,wBAAwB;AAC7C,OAAOC,SAAS,MAA2B,cAAc;AACzD,OAAOC,KAAK,MAAM,aAAa;AAE/B,MAAMC,YAAY,GAAGA,CAACC,KAAwB,EAAEC,OAAyB,KAAK;EAC5E,MAAM;IAACC;EAAI,CAAC,GAAGD,OAAO;EACtB,MAAME,YAAY,GAAGC,MAAA,CAAMR,MAAM,CAACS,eAAe,EAAE,gBAAg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ACrCQ,OAAO,EAAExB,OAAQ;IACjByB,UAAU,EAAErC,MAAM,CAACsC;EAAY,CAChC,CACE,CAAC,GACJ,IACD,CAAC,eACN9C,KAAA,CAAA6B,aAAA;IAAKC,SAAS,EAAEpB,KAAK,CAACqC;EAAiB,GACpC1B,OAAO,CAAC2B,GAAG,CAACC,UAAU,IAAI;IACzB,MAAM;MAACf,KAAK;MAAET,KAAK;MAAEyB,QAAQ;MAAEjB,SAAS;MAAEkB;IAAE,CAAC,GAAGF,UAAU;IAC1D;IACA,MAAMG,QAAQ,GACZD,EAAE,IACF,iBAAiBjB,KAAK,CACnBmB,WAAW,CAAC,CAAC,CACbC,OAAO,CAAC,MAAM,EAAE,GAAG,CAAC,CACpBA,OAAO,CAAC,aAAa,EAAE,EAAE,CAAC,EAAE;IACjC,oBACEtD,KAAA,CAAA6B,aAAA;MAAK0B,GAAG,EAAErB,KAAM;MAACJ,SAAS,EAAEpB,KAAK,CAAC8C;IAAa,gBAC7CxD,KAAA,CAAA6B,aAAA,CAAC1B,WAAW;MACVgD,EAAE,EAAEC,QAAS;MACblC,KAAK,EAAEgB,KAAM;MACbT,KAAK,EAAEA,KAAM;MACbgC,KAAK,EAAE,SAAU;MACjBP,QAAQ,EAAEA,QAAS;MACnB,cAAYjB;IAAU,CACvB,CACE,CAAC;EAEV,CAAC,CACE,CACF,CAAC;AAEV,CAAC;AAEDtB,YAAY,CAACF,SAAS,GAAAiD,OAAA,CAAAC,GAAA,CAAAC,QAAA,oBAAGnD,SAAS;AAElCE,YAAY,CAACkD,YAAY,GAAG;EAC1BjC,SAAS,EAAEtB,QAAQ,CAACwD,iBAAiB,CAAClC,SAAS;EAC/Cd,IAAI,EAAER,QAAQ,CAACwD,iBAAiB,CAAChD;AACnC,CAAC;AAED,eAAeH,YAAY","ignoreList":[]}
@@ -9,6 +9,7 @@ declare const propTypes: {
9
9
  onChange: PropTypes.Validator<(...args: any[]) => any>;
10
10
  theme: PropTypes.Validator<string>;
11
11
  ariaLabel: PropTypes.Validator<string>;
12
+ id: PropTypes.Requireable<string>;
12
13
  }> | null | undefined)[]>;
13
14
  };
14
15
  export declare type FilterSwitchOptionsProps = {
@@ -17,6 +18,7 @@ export declare type FilterSwitchOptionsProps = {
17
18
  onChange: (value: string) => void;
18
19
  theme: string;
19
20
  ariaLabel: string;
21
+ id?: string;
20
22
  };
21
23
  export declare type FilterSwitchProps = {
22
24
  title: string;
@@ -1 +1 @@
1
- {"version":3,"file":"prop-types.d.ts","sourceRoot":"","sources":["../../../src/organism/filter-switch/prop-types.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,YAAY,CAAC;AAEnC,QAAA,MAAM,SAAS;;;;;;;;;;;CAad,CAAC;AAEF,oBAAY,wBAAwB,GAAG;IACrC,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,OAAO,CAAC;IACf,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF,oBAAY,iBAAiB,GAAG;IAC9B,KAAK,EAAE,MAAM,CAAC;IACd,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,OAAO,EAAE,wBAAwB,EAAE,CAAC;CACrC,CAAC;AAEF,eAAe,SAAS,CAAC"}
1
+ {"version":3,"file":"prop-types.d.ts","sourceRoot":"","sources":["../../../src/organism/filter-switch/prop-types.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,YAAY,CAAC;AAEnC,QAAA,MAAM,SAAS;;;;;;;;;;;;CAcd,CAAC;AAEF,oBAAY,wBAAwB,GAAG;IACrC,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,OAAO,CAAC;IACf,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,MAAM,CAAC;IAClB,EAAE,CAAC,EAAE,MAAM,CAAC;CACb,CAAC;AAEF,oBAAY,iBAAiB,GAAG;IAC9B,KAAK,EAAE,MAAM,CAAC;IACd,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,OAAO,EAAE,wBAAwB,EAAE,CAAC;CACrC,CAAC;AAEF,eAAe,SAAS,CAAC"}
@@ -8,7 +8,8 @@ const propTypes = {
8
8
  value: PropTypes.bool.isRequired,
9
9
  onChange: PropTypes.func.isRequired,
10
10
  theme: PropTypes.string.isRequired,
11
- ariaLabel: PropTypes.string.isRequired
11
+ ariaLabel: PropTypes.string.isRequired,
12
+ id: PropTypes.string
12
13
  }))
13
14
  };
14
15
  export default propTypes;
@@ -1 +1 @@
1
- {"version":3,"file":"prop-types.js","names":["PropTypes","propTypes","title","string","isRequired","titleAriaLabel","onClear","func","options","arrayOf","shape","label","value","bool","onChange","theme","ariaLabel"],"sources":["../../../src/organism/filter-switch/prop-types.ts"],"sourcesContent":["import PropTypes from 'prop-types';\n\nconst propTypes = {\n title: PropTypes.string.isRequired,\n titleAriaLabel: PropTypes.string,\n onClear: PropTypes.func.isRequired,\n options: PropTypes.arrayOf(\n PropTypes.shape({\n label: PropTypes.string.isRequired,\n value: PropTypes.bool.isRequired,\n onChange: PropTypes.func.isRequired,\n theme: PropTypes.string.isRequired,\n ariaLabel: PropTypes.string.isRequired\n })\n )\n};\n\nexport type FilterSwitchOptionsProps = {\n label: string;\n value: boolean;\n onChange: (value: string) => void;\n theme: string;\n ariaLabel: string;\n};\n\nexport type FilterSwitchProps = {\n title: string;\n titleAriaLabel?: string;\n onClear: () => void;\n options: FilterSwitchOptionsProps[];\n};\n\nexport default propTypes;\n"],"mappings":"AAAA,OAAOA,SAAS,MAAM,YAAY;AAElC,MAAMC,SAAS,GAAG;EAChBC,KAAK,EAAEF,SAAS,CAACG,MAAM,CAACC,UAAU;EAClCC,cAAc,EAAEL,SAAS,CAACG,MAAM;EAChCG,OAAO,EAAEN,SAAS,CAACO,IAAI,CAACH,UAAU;EAClCI,OAAO,EAAER,SAAS,CAACS,OAAO,CACxBT,SAAS,CAACU,KAAK,CAAC;IACdC,KAAK,EAAEX,SAAS,CAACG,MAAM,CAACC,UAAU;IAClCQ,KAAK,EAAEZ,SAAS,CAACa,IAAI,CAACT,UAAU;IAChCU,QAAQ,EAAEd,SAAS,CAACO,IAAI,CAACH,UAAU;IACnCW,KAAK,EAAEf,SAAS,CAACG,MAAM,CAACC,UAAU;IAClCY,SAAS,EAAEhB,SAAS,CAACG,MAAM,CAACC;EAC9B,CAAC,CACH;AACF,CAAC;AAiBD,eAAeH,SAAS","ignoreList":[]}
1
+ {"version":3,"file":"prop-types.js","names":["PropTypes","propTypes","title","string","isRequired","titleAriaLabel","onClear","func","options","arrayOf","shape","label","value","bool","onChange","theme","ariaLabel","id"],"sources":["../../../src/organism/filter-switch/prop-types.ts"],"sourcesContent":["import PropTypes from 'prop-types';\n\nconst propTypes = {\n title: PropTypes.string.isRequired,\n titleAriaLabel: PropTypes.string,\n onClear: PropTypes.func.isRequired,\n options: PropTypes.arrayOf(\n PropTypes.shape({\n label: PropTypes.string.isRequired,\n value: PropTypes.bool.isRequired,\n onChange: PropTypes.func.isRequired,\n theme: PropTypes.string.isRequired,\n ariaLabel: PropTypes.string.isRequired,\n id: PropTypes.string\n })\n )\n};\n\nexport type FilterSwitchOptionsProps = {\n label: string;\n value: boolean;\n onChange: (value: string) => void;\n theme: string;\n ariaLabel: string;\n id?: string;\n};\n\nexport type FilterSwitchProps = {\n title: string;\n titleAriaLabel?: string;\n onClear: () => void;\n options: FilterSwitchOptionsProps[];\n};\n\nexport default propTypes;\n"],"mappings":"AAAA,OAAOA,SAAS,MAAM,YAAY;AAElC,MAAMC,SAAS,GAAG;EAChBC,KAAK,EAAEF,SAAS,CAACG,MAAM,CAACC,UAAU;EAClCC,cAAc,EAAEL,SAAS,CAACG,MAAM;EAChCG,OAAO,EAAEN,SAAS,CAACO,IAAI,CAACH,UAAU;EAClCI,OAAO,EAAER,SAAS,CAACS,OAAO,CACxBT,SAAS,CAACU,KAAK,CAAC;IACdC,KAAK,EAAEX,SAAS,CAACG,MAAM,CAACC,UAAU;IAClCQ,KAAK,EAAEZ,SAAS,CAACa,IAAI,CAACT,UAAU;IAChCU,QAAQ,EAAEd,SAAS,CAACO,IAAI,CAACH,UAAU;IACnCW,KAAK,EAAEf,SAAS,CAACG,MAAM,CAACC,UAAU;IAClCY,SAAS,EAAEhB,SAAS,CAACG,MAAM,CAACC,UAAU;IACtCa,EAAE,EAAEjB,SAAS,CAACG;EAChB,CAAC,CACH;AACF,CAAC;AAkBD,eAAeF,SAAS","ignoreList":[]}
@@ -119,6 +119,7 @@ declare namespace ListItem {
119
119
  }>>;
120
120
  image: PropTypes.Requireable<string>;
121
121
  checkbox: PropTypes.Requireable<PropTypes.InferProps<{
122
+ value: PropTypes.Requireable<string>;
122
123
  title: PropTypes.Requireable<string>;
123
124
  name: PropTypes.Requireable<string>;
124
125
  checked: PropTypes.Requireable<boolean>;
@@ -151,6 +151,7 @@ declare namespace ListItems {
151
151
  }>>;
152
152
  image: PropTypes.Requireable<string>;
153
153
  checkbox: PropTypes.Requireable<PropTypes.InferProps<{
154
+ value: PropTypes.Requireable<string>;
154
155
  title: PropTypes.Requireable<string>;
155
156
  name: PropTypes.Requireable<string>;
156
157
  checked: PropTypes.Requireable<boolean>;
@@ -539,6 +540,7 @@ declare namespace ListItems {
539
540
  searchIconAriaLabel: PropTypes.Requireable<string>;
540
541
  }>>;
541
542
  checkboxWithTitle: PropTypes.Requireable<PropTypes.InferProps<{
543
+ value: PropTypes.Requireable<string>;
542
544
  title: PropTypes.Requireable<string>;
543
545
  name: PropTypes.Requireable<string>;
544
546
  checked: PropTypes.Requireable<boolean>;
@@ -76,7 +76,7 @@
76
76
  overflow: hidden;
77
77
  align-items: flex-start;
78
78
  flex-shrink: 0;
79
- color: var(--font-font-color-tertiary, #9999A8);
79
+ color: var(--font-font-color-tertiary, cm_grey_400);
80
80
  text-overflow: ellipsis;
81
81
  font-family: Gilroy;
82
82
  font-size: 14px;
@@ -8,7 +8,7 @@
8
8
  @value black from colors;
9
9
  @value transparent from colors;
10
10
  @value lightBlack from colors;
11
- @value lightMediumGray from colors;
11
+ @value lightMediumGrey from colors;
12
12
 
13
13
  .headSpacingContainer {
14
14
  width: 100%;
@@ -83,7 +83,7 @@
83
83
 
84
84
  .sectionTitle {
85
85
  padding-top: 16px;
86
- color: lightMediumGray;
86
+ color: lightMediumGrey;
87
87
  font-size: 16px;
88
88
  font-weight: 300;
89
89
  font-stretch: normal;
@@ -6,6 +6,7 @@ declare namespace RewardsForm {
6
6
  namespace propTypes {
7
7
  const items: PropTypes.Requireable<(PropTypes.InferProps<{
8
8
  checkboxWithTitle: PropTypes.Requireable<PropTypes.InferProps<{
9
+ value: PropTypes.Requireable<string>;
9
10
  title: PropTypes.Requireable<string>;
10
11
  name: PropTypes.Requireable<string>;
11
12
  checked: PropTypes.Requireable<boolean>;
@@ -5,6 +5,7 @@ declare const SelectOpponents: {
5
5
  propTypes: {
6
6
  items: import("prop-types").Requireable<(import("prop-types").InferProps<{
7
7
  checkboxWithTitle: import("prop-types").Requireable<import("prop-types").InferProps<{
8
+ value: import("prop-types").Requireable<string>;
8
9
  title: import("prop-types").Requireable<string>;
9
10
  name: import("prop-types").Requireable<string>;
10
11
  checked: import("prop-types").Requireable<boolean>;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/organism/select-opponents/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAkB,EAAC,oBAAoB,EAA+B,MAAM,SAAS,CAAC;AAMtF,QAAA,MAAM,eAAe;YAAW,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgBnD,CAAC;AAIF,eAAe,eAAe,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/organism/select-opponents/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAkB,EAAC,oBAAoB,EAA+B,MAAM,SAAS,CAAC;AAMtF,QAAA,MAAM,eAAe;YAAW,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgBnD,CAAC;AAIF,eAAe,eAAe,CAAC"}
@@ -3,6 +3,7 @@ import PropTypes from 'prop-types';
3
3
  export declare const propTypes: {
4
4
  items: PropTypes.Requireable<(PropTypes.InferProps<{
5
5
  checkboxWithTitle: PropTypes.Requireable<PropTypes.InferProps<{
6
+ value: PropTypes.Requireable<string>;
6
7
  title: PropTypes.Requireable<string>;
7
8
  name: PropTypes.Requireable<string>;
8
9
  checked: PropTypes.Requireable<boolean>;
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/organism/select-opponents/types.ts"],"names":[],"mappings":";AAAA,OAAO,SAAS,MAAM,YAAY,CAAC;AAGnC,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAErB,CAAC;AAEF,oBAAY,4BAA4B,GAAG;IACzC,KAAK,EAAE;QACL,SAAS,EAAE,iBAAiB,GAAG,cAAc,CAAC;QAC9C,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;KACtB,CAAC;IACF,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;CACtB,CAAC;AAEF,oBAAY,oBAAoB,GAAG;IACjC,KAAK,EAAE,4BAA4B,EAAE,CAAC;CACvC,CAAC;AAEF,eAAe,SAAS,CAAC"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/organism/select-opponents/types.ts"],"names":[],"mappings":";AAAA,OAAO,SAAS,MAAM,YAAY,CAAC;AAGnC,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAErB,CAAC;AAEF,oBAAY,4BAA4B,GAAG;IACzC,KAAK,EAAE;QACL,SAAS,EAAE,iBAAiB,GAAG,cAAc,CAAC;QAC9C,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;KACtB,CAAC;IACF,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;CACtB,CAAC;AAEF,oBAAY,oBAAoB,GAAG;IACjC,KAAK,EAAE,4BAA4B,EAAE,CAAC;CACvC,CAAC;AAEF,eAAe,SAAS,CAAC"}
@@ -7,8 +7,8 @@
7
7
  @value white from colors;
8
8
  @value dark from colors;
9
9
  @value cm_grey_700 from colors;
10
- @value lightMediumGray from colors;
11
- @value lightMediumGray from colors;
10
+ @value lightMediumGrey from colors;
11
+ @value lightMediumGrey from colors;
12
12
  @value cm_grey_500 from colors;
13
13
  @value medium from colors;
14
14
  @value transparent from colors;
@@ -63,7 +63,7 @@
63
63
  }
64
64
 
65
65
  .titleItem {
66
- background-color: lightMediumGray;
66
+ background-color: lightMediumGrey;
67
67
  list-style-type: none;
68
68
  padding: 0;
69
69
  }
@@ -260,6 +260,7 @@ declare const TitleAndInput: {
260
260
  }> | import("prop-types").InferProps<{
261
261
  items: import("prop-types").Requireable<(import("prop-types").InferProps<{
262
262
  checkboxWithTitle: import("prop-types").Requireable<import("prop-types").InferProps<{
263
+ value: import("prop-types").Requireable<string>;
263
264
  title: import("prop-types").Requireable<string>;
264
265
  name: import("prop-types").Requireable<string>;
265
266
  checked: import("prop-types").Requireable<boolean>;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/organism/title-and-input/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAS1B,OAAkB,EAAC,kBAAkB,EAAC,MAAM,SAAS,CAAC;AAGtD,eAAO,MAAM,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAI7C,CAAC;AAwBF,QAAA,MAAM,aAAa;YAAW,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAuB/C,CAAC;AAIF,eAAe,aAAa,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/organism/title-and-input/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAS1B,OAAkB,EAAC,kBAAkB,EAAC,MAAM,SAAS,CAAC;AAGtD,eAAO,MAAM,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAI7C,CAAC;AAwBF,QAAA,MAAM,aAAa;YAAW,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAuB/C,CAAC;AAIF,eAAe,aAAa,CAAC"}
@@ -265,6 +265,7 @@ declare const propTypes: {
265
265
  }> | PropTypes.InferProps<{
266
266
  items: PropTypes.Requireable<(PropTypes.InferProps<{
267
267
  checkboxWithTitle: PropTypes.Requireable<PropTypes.InferProps<{
268
+ value: PropTypes.Requireable<string>;
268
269
  title: PropTypes.Requireable<string>;
269
270
  name: PropTypes.Requireable<string>;
270
271
  checked: PropTypes.Requireable<boolean>;
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/organism/title-and-input/types.ts"],"names":[],"mappings":";AAAA,OAAO,SAAS,MAAM,YAAY,CAAC;AACnC,OAAO,YAAY,MAAM,yBAAyB,CAAC;AACnD,OAAO,KAAK,MAAM,kBAAkB,CAAC;AACrC,OAAO,cAAc,MAAM,gCAAgC,CAAC;AAE5D,OAAO,EAAC,oBAAoB,EAAC,MAAM,2BAA2B,CAAC;AAC/D,OAAO,SAAS,MAAM,uBAAuB,CAAC;AAC9C,OAAO,aAAa,MAAM,2BAA2B,CAAC;AACtD,OAAO,MAAM,MAAM,mBAAmB,CAAC;AAEvC,OAAO,EAAC,eAAe,EAAC,MAAM,sBAAsB,CAAC;AAIrD,QAAA,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA0Bd,CAAC;AAEF,oBAAY,cAAc,GAAG,SAAS,GAAG,QAAQ,GAAG,OAAO,CAAC;AAE5D,oBAAY,kBAAkB,GAAG;IAC/B,KAAK,EAAE,KAAK,CAAC,cAAc,C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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA0Bd,CAAC;AAEF,oBAAY,cAAc,GAAG,SAAS,GAAG,QAAQ,GAAG,OAAO,CAAC;AAE5D,oBAAY,kBAAkB,GAAG;IAC/B,KAAK,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,KAAK,CAAC,CAAC;IAC1C,KAAK,EACD,KAAK,CAAC,cAAc,CAAC,OAAO,YAAY,CAAC,GACzC,eAAe,GACf,CAAC,KAAK,CAAC,cAAc,CAAC,OAAO,SAAS,CAAC,GAAG;QAAC,IAAI,CAAC,EAAE,cAAc,CAAA;KAAC,CAAC,GAClE,CAAC,KAAK,CAAC,cAAc,CAAC,OAAO,aAAa,CAAC,GAAG;QAAC,IAAI,CAAC,EAAE,cAAc,CAAA;KAAC,CAAC,GACtE,CAAC,KAAK,CAAC,cAAc,CAAC,OAAO,MAAM,CAAC,GAAG;QAAC,IAAI,CAAC,EAAE,cAAc,CAAA;KAAC,CAAC,GAC/D,KAAK,CAAC,cAAc,CAAC,OAAO,cAAc,CAAC,GAC3C,oBAAoB,CAAC;IACzB,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF,eAAe,SAAS,CAAC"}
@@ -327,6 +327,7 @@ declare namespace WizardContents {
327
327
  type: PropTypes.Requireable<string>;
328
328
  items: PropTypes.Requireable<(PropTypes.InferProps<{
329
329
  checkboxWithTitle: PropTypes.Requireable<PropTypes.InferProps<{
330
+ value: PropTypes.Requireable<string>;
330
331
  title: PropTypes.Requireable<string>;
331
332
  name: PropTypes.Requireable<string>;
332
333
  checked: PropTypes.Requireable<boolean>;
@@ -3,7 +3,7 @@
3
3
  @value tablet from breakpoints;
4
4
  @value colors: "../../variables/colors.css";
5
5
  @value light from colors;
6
- @value lightMediumGray from colors;
6
+ @value lightMediumGrey from colors;
7
7
  @value medium from colors;
8
8
  @value transparent from colors;
9
9
  @value white from colors;
@@ -116,7 +116,7 @@
116
116
  }
117
117
 
118
118
  .circle {
119
- box-shadow: 0 0px 4px 0 color(lightMediumGray a(70%));
119
+ box-shadow: 0 0px 4px 0 color(lightMediumGrey a(70%));
120
120
  border: solid 1px light;
121
121
  border-radius: 50%;
122
122
  cursor: pointer;
@@ -301,6 +301,7 @@ declare namespace PlayerLoading {
301
301
  }>>;
302
302
  image: PropTypes.Requireable<string>;
303
303
  checkbox: PropTypes.Requireable<PropTypes.InferProps<{
304
+ value: PropTypes.Requireable<string>;
304
305
  title: PropTypes.Requireable<string>;
305
306
  name: PropTypes.Requireable<string>;
306
307
  checked: PropTypes.Requireable<boolean>;
@@ -689,6 +690,7 @@ declare namespace PlayerLoading {
689
690
  searchIconAriaLabel: PropTypes.Requireable<string>;
690
691
  }>>;
691
692
  checkboxWithTitle: PropTypes.Requireable<PropTypes.InferProps<{
693
+ value: PropTypes.Requireable<string>;
692
694
  title: PropTypes.Requireable<string>;
693
695
  name: PropTypes.Requireable<string>;
694
696
  checked: PropTypes.Requireable<boolean>;
@@ -360,6 +360,7 @@ declare namespace SlidePlayer {
360
360
  }>>;
361
361
  image: PropTypes.Requireable<string>;
362
362
  checkbox: PropTypes.Requireable<PropTypes.InferProps<{
363
+ value: PropTypes.Requireable<string>;
363
364
  title: PropTypes.Requireable<string>;
364
365
  name: PropTypes.Requireable<string>;
365
366
  checked: PropTypes.Requireable<boolean>;
@@ -748,6 +749,7 @@ declare namespace SlidePlayer {
748
749
  searchIconAriaLabel: PropTypes.Requireable<string>;
749
750
  }>>;
750
751
  checkboxWithTitle: PropTypes.Requireable<PropTypes.InferProps<{
752
+ value: PropTypes.Requireable<string>;
751
753
  title: PropTypes.Requireable<string>;
752
754
  name: PropTypes.Requireable<string>;
753
755
  checked: PropTypes.Requireable<boolean>;
@@ -1218,6 +1220,7 @@ declare namespace SlidePlayer {
1218
1220
  }>>;
1219
1221
  image: PropTypes.Requireable<string>;
1220
1222
  checkbox: PropTypes.Requireable<PropTypes.InferProps<{
1223
+ value: PropTypes.Requireable<string>;
1221
1224
  title: PropTypes.Requireable<string>;
1222
1225
  name: PropTypes.Requireable<string>;
1223
1226
  checked: PropTypes.Requireable<boolean>;
@@ -1606,6 +1609,7 @@ declare namespace SlidePlayer {
1606
1609
  searchIconAriaLabel: PropTypes.Requireable<string>;
1607
1610
  }>>;
1608
1611
  checkboxWithTitle: PropTypes.Requireable<PropTypes.InferProps<{
1612
+ value: PropTypes.Requireable<string>;
1609
1613
  title: PropTypes.Requireable<string>;
1610
1614
  name: PropTypes.Requireable<string>;
1611
1615
  checked: PropTypes.Requireable<boolean>;