@coorpacademy/components 11.7.3-alpha.4 → 11.7.3-alpha.6

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 (93) hide show
  1. package/es/atom/input-switch/index.d.ts +1 -0
  2. package/es/atom/input-switch/index.d.ts.map +1 -1
  3. package/es/atom/input-switch/index.js +5 -2
  4. package/es/atom/input-switch/index.js.map +1 -1
  5. package/es/molecule/brand-form-group/index.d.ts +3 -0
  6. package/es/molecule/cm-popin/types.d.ts +1 -0
  7. package/es/molecule/cm-popin/types.d.ts.map +1 -1
  8. package/es/molecule/draggable-list/index.d.ts +1 -0
  9. package/es/molecule/filters/filters-wrapper.d.ts.map +1 -1
  10. package/es/molecule/filters/filters-wrapper.js +4 -1
  11. package/es/molecule/filters/filters-wrapper.js.map +1 -1
  12. package/es/molecule/filters/index.d.ts +1 -0
  13. package/es/molecule/filters/index.d.ts.map +1 -1
  14. package/es/molecule/filters/index.js +10 -3
  15. package/es/molecule/filters/index.js.map +1 -1
  16. package/es/molecule/setup-section/index.d.ts +1 -0
  17. package/es/molecule/setup-section/index.d.ts.map +1 -1
  18. package/es/molecule/setup-sections/index.d.ts +1 -0
  19. package/es/molecule/setup-slide/index.d.ts +1 -0
  20. package/es/molecule/setup-slider/index.d.ts +1 -0
  21. package/es/organism/brand-form/index.d.ts +3 -0
  22. package/es/organism/user-preferences/index.d.ts +1 -0
  23. package/es/organism/wizard-contents/index.d.ts +3 -0
  24. package/es/template/activity/index.d.ts +12 -11
  25. package/es/template/activity/index.d.ts.map +1 -1
  26. package/es/template/activity/index.js +6 -3
  27. package/es/template/activity/index.js.map +1 -1
  28. package/es/template/app-player/loading/index.d.ts +1 -0
  29. package/es/template/app-player/player/index.d.ts +2 -0
  30. package/es/template/app-player/player/slides/index.d.ts +1 -0
  31. package/es/template/app-player/player/slides/index.d.ts.map +1 -1
  32. package/es/template/app-player/popin-correction/index.d.ts +1 -0
  33. package/es/template/app-player/popin-correction/index.d.ts.map +1 -1
  34. package/es/template/app-player/popin-end/index.d.ts +1 -0
  35. package/es/template/app-review/index.d.ts +1 -0
  36. package/es/template/app-review/index.d.ts.map +1 -1
  37. package/es/template/app-review/player/prop-types.d.ts +1 -0
  38. package/es/template/app-review/player/prop-types.d.ts.map +1 -1
  39. package/es/template/app-review/prop-types.d.ts +1 -0
  40. package/es/template/app-review/prop-types.d.ts.map +1 -1
  41. package/es/template/back-office/brand-update/index.d.ts +7 -0
  42. package/es/template/common/dashboard/index.d.ts +1 -0
  43. package/es/template/common/search-page/index.d.ts +2 -0
  44. package/es/template/common/search-page/index.d.ts.map +1 -1
  45. package/es/template/common/search-page/index.js +6 -3
  46. package/es/template/common/search-page/index.js.map +1 -1
  47. package/lib/atom/input-switch/index.d.ts +1 -0
  48. package/lib/atom/input-switch/index.d.ts.map +1 -1
  49. package/lib/atom/input-switch/index.js +5 -2
  50. package/lib/atom/input-switch/index.js.map +1 -1
  51. package/lib/molecule/brand-form-group/index.d.ts +3 -0
  52. package/lib/molecule/cm-popin/types.d.ts +1 -0
  53. package/lib/molecule/cm-popin/types.d.ts.map +1 -1
  54. package/lib/molecule/draggable-list/index.d.ts +1 -0
  55. package/lib/molecule/filters/filters-wrapper.d.ts.map +1 -1
  56. package/lib/molecule/filters/filters-wrapper.js +4 -1
  57. package/lib/molecule/filters/filters-wrapper.js.map +1 -1
  58. package/lib/molecule/filters/index.d.ts +1 -0
  59. package/lib/molecule/filters/index.d.ts.map +1 -1
  60. package/lib/molecule/filters/index.js +9 -3
  61. package/lib/molecule/filters/index.js.map +1 -1
  62. package/lib/molecule/setup-section/index.d.ts +1 -0
  63. package/lib/molecule/setup-section/index.d.ts.map +1 -1
  64. package/lib/molecule/setup-sections/index.d.ts +1 -0
  65. package/lib/molecule/setup-slide/index.d.ts +1 -0
  66. package/lib/molecule/setup-slider/index.d.ts +1 -0
  67. package/lib/organism/brand-form/index.d.ts +3 -0
  68. package/lib/organism/user-preferences/index.d.ts +1 -0
  69. package/lib/organism/wizard-contents/index.d.ts +3 -0
  70. package/lib/template/activity/index.d.ts +12 -11
  71. package/lib/template/activity/index.d.ts.map +1 -1
  72. package/lib/template/activity/index.js +6 -3
  73. package/lib/template/activity/index.js.map +1 -1
  74. package/lib/template/app-player/loading/index.d.ts +1 -0
  75. package/lib/template/app-player/player/index.d.ts +2 -0
  76. package/lib/template/app-player/player/slides/index.d.ts +1 -0
  77. package/lib/template/app-player/player/slides/index.d.ts.map +1 -1
  78. package/lib/template/app-player/popin-correction/index.d.ts +1 -0
  79. package/lib/template/app-player/popin-correction/index.d.ts.map +1 -1
  80. package/lib/template/app-player/popin-end/index.d.ts +1 -0
  81. package/lib/template/app-review/index.d.ts +1 -0
  82. package/lib/template/app-review/index.d.ts.map +1 -1
  83. package/lib/template/app-review/player/prop-types.d.ts +1 -0
  84. package/lib/template/app-review/player/prop-types.d.ts.map +1 -1
  85. package/lib/template/app-review/prop-types.d.ts +1 -0
  86. package/lib/template/app-review/prop-types.d.ts.map +1 -1
  87. package/lib/template/back-office/brand-update/index.d.ts +7 -0
  88. package/lib/template/common/dashboard/index.d.ts +1 -0
  89. package/lib/template/common/search-page/index.d.ts +2 -0
  90. package/lib/template/common/search-page/index.d.ts.map +1 -1
  91. package/lib/template/common/search-page/index.js +6 -3
  92. package/lib/template/common/search-page/index.js.map +1 -1
  93. package/package.json +2 -2
@@ -102,6 +102,7 @@ declare namespace WizardContents {
102
102
  disabled: PropTypes.Requireable<boolean>;
103
103
  onChange: PropTypes.Requireable<(...args: any[]) => any>;
104
104
  description: PropTypes.Requireable<string>;
105
+ 'aria-labelledby': PropTypes.Requireable<string>;
105
106
  modified: PropTypes.Requireable<boolean>;
106
107
  titlePosition: PropTypes.Requireable<string>;
107
108
  theme: PropTypes.Requireable<string>;
@@ -224,6 +225,7 @@ declare namespace WizardContents {
224
225
  disabled: PropTypes.Requireable<boolean>;
225
226
  onChange: PropTypes.Requireable<(...args: any[]) => any>;
226
227
  description: PropTypes.Requireable<string>;
228
+ 'aria-labelledby': PropTypes.Requireable<string>;
227
229
  modified: PropTypes.Requireable<boolean>;
228
230
  titlePosition: PropTypes.Requireable<string>;
229
231
  theme: PropTypes.Requireable<string>;
@@ -354,6 +356,7 @@ declare namespace WizardContents {
354
356
  disabled: PropTypes.Requireable<boolean>;
355
357
  onChange: PropTypes.Requireable<(...args: any[]) => any>;
356
358
  description: PropTypes.Requireable<string>;
359
+ 'aria-labelledby': PropTypes.Requireable<string>;
357
360
  modified: PropTypes.Requireable<boolean>;
358
361
  titlePosition: PropTypes.Requireable<string>;
359
362
  theme: PropTypes.Requireable<string>;
@@ -24,15 +24,15 @@ declare namespace Progression {
24
24
  }>;
25
25
  }>>;
26
26
  }
27
- namespace propTypes {
28
- const mainTitle: PropTypes.Validator<string>;
29
- const mainSubtitle: PropTypes.Validator<string>;
30
- const adaptiveAriaLabel: PropTypes.Requireable<string>;
31
- const total: PropTypes.Validator<NonNullable<PropTypes.InferProps<{
27
+ const propTypes: {
28
+ mainTitle: PropTypes.Validator<string>;
29
+ mainSubtitle: PropTypes.Validator<string>;
30
+ adaptiveAriaLabel: PropTypes.Requireable<string>;
31
+ total: PropTypes.Validator<NonNullable<PropTypes.InferProps<{
32
32
  label: PropTypes.Validator<string>;
33
33
  stars: PropTypes.Validator<number>;
34
34
  }>>>;
35
- const engines: PropTypes.Requireable<(PropTypes.InferProps<{
35
+ engines: PropTypes.Requireable<(PropTypes.InferProps<{
36
36
  type: PropTypes.Validator<string>;
37
37
  stars: PropTypes.Validator<number>;
38
38
  title: PropTypes.Validator<string>;
@@ -46,8 +46,8 @@ declare namespace Progression {
46
46
  onClick: PropTypes.Requireable<(...args: any[]) => any>;
47
47
  }>>;
48
48
  }> | null | undefined)[]>;
49
- const loading: PropTypes.Validator<boolean>;
50
- const progressions: PropTypes.Requireable<(PropTypes.InferProps<{
49
+ loading: PropTypes.Validator<boolean>;
50
+ progressions: PropTypes.Requireable<(PropTypes.InferProps<{
51
51
  ref: PropTypes.Validator<string>;
52
52
  completion: PropTypes.Validator<number>;
53
53
  stars: PropTypes.Validator<number>;
@@ -62,7 +62,7 @@ declare namespace Progression {
62
62
  adaptive: PropTypes.Validator<boolean>;
63
63
  onClick: PropTypes.Requireable<(...args: any[]) => any>;
64
64
  }> | null | undefined)[]>;
65
- const themeFilter: PropTypes.Requireable<PropTypes.InferProps<{
65
+ themeFilter: PropTypes.Requireable<PropTypes.InferProps<{
66
66
  options: PropTypes.Validator<(PropTypes.InferProps<{
67
67
  name: PropTypes.Validator<string>;
68
68
  value: PropTypes.Requireable<NonNullable<string | number | null | undefined>>;
@@ -71,14 +71,15 @@ declare namespace Progression {
71
71
  }> | null | undefined)[]>;
72
72
  onChange: PropTypes.Requireable<(...args: any[]) => any>;
73
73
  }>>;
74
- const recommendation: PropTypes.Requireable<PropTypes.InferProps<{
74
+ recommendation: PropTypes.Requireable<PropTypes.InferProps<{
75
75
  cta: PropTypes.Validator<string>;
76
76
  title: PropTypes.Validator<string>;
77
77
  subtitle: PropTypes.Validator<string>;
78
78
  courseTitle: PropTypes.Validator<string>;
79
79
  onClick: PropTypes.Requireable<(...args: any[]) => any>;
80
80
  }>>;
81
- }
81
+ 'aria-label': PropTypes.Requireable<string>;
82
+ };
82
83
  }
83
84
  import PropTypes from "prop-types";
84
85
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/template/activity/index.js"],"names":[],"mappings":";AAeA,0EAuGC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/template/activity/index.js"],"names":[],"mappings":";AAeA,0EAyGC"}
@@ -49,7 +49,8 @@ const Progression = (props, legacyContext) => {
49
49
  total,
50
50
  engines = [],
51
51
  themeFilter = {},
52
- loading
52
+ loading,
53
+ 'aria-label': ariaLabel
53
54
  } = props;
54
55
  const skin = (0, _provider.GetSkinFromContext)(legacyContext);
55
56
  const {
@@ -85,7 +86,8 @@ const Progression = (props, legacyContext) => {
85
86
  className: _style.default.select,
86
87
  theme: "thematiques",
87
88
  options: themeFilter.options,
88
- onChange: handleSelectTheme
89
+ onChange: handleSelectTheme,
90
+ "aria-label": ariaLabel
89
91
  }) : null;
90
92
  const recommendationSection = !(0, _isEmpty.default)(recommendation) ? /*#__PURE__*/_react.default.createElement("div", {
91
93
  className: _style.default.recommendationWrapper
@@ -153,7 +155,8 @@ Progression.propTypes = process.env.NODE_ENV !== "production" ? {
153
155
  subtitle: _propTypes.default.string.isRequired,
154
156
  courseTitle: _propTypes.default.string.isRequired,
155
157
  onClick: _propTypes.default.func
156
- })
158
+ }),
159
+ 'aria-label': _propTypes.default.string
157
160
  } : {};
158
161
  var _default = Progression;
159
162
  exports.default = _default;
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["Progression","props","legacyContext","mainTitle","mainSubtitle","recommendation","progressions","adaptiveAriaLabel","total","engines","themeFilter","loading","skin","GetSkinFromContext","onChange","themeFilterOnChange","handleClick","useCallback","e","stopPropagation","preventDefault","onClick","handleSelectTheme","primary","get","loader","style","allProgressions","map","progression","omit","ref","coreProgression","core","themeSelect","isEmpty","options","selectBorder","select","recommendationSection","recommendationWrapper","title","subtitle","classnames","course","innerHTML","__html","courseTitle","cta","backgroundColor","default","headerProgression","wrapperCta","wrapperProgression","contextTypes","Provider","childContextTypes","propTypes","PropTypes","string","isRequired","shape","label","stars","number","arrayOf","EngineStars","bool","ProgressionItem","Select","func"],"sources":["../../../src/template/activity/index.js"],"sourcesContent":["import React, {useCallback} from 'react';\nimport get from 'lodash/fp/get';\nimport isEmpty from 'lodash/fp/isEmpty';\nimport omit from 'lodash/fp/omit';\nimport PropTypes from 'prop-types';\nimport classnames from 'classnames';\nimport Provider, {GetSkinFromContext} from '../../atom/provider';\nimport Button from '../../atom/button';\nimport Select from '../../atom/select';\nimport Loader from '../../atom/loader';\nimport ProgressionItem from './progression-item';\nimport EngineStars from './engine-stars';\nimport StarsSummary from './stars-summary';\nimport style from './style.css';\n\nconst Progression = (props, legacyContext) => {\n const {\n mainTitle,\n mainSubtitle,\n recommendation = {},\n progressions = [],\n adaptiveAriaLabel,\n total,\n engines = [],\n themeFilter = {},\n loading\n } = props;\n const skin = GetSkinFromContext(legacyContext);\n const {onChange: themeFilterOnChange} = themeFilter;\n\n const handleClick = useCallback(\n e => {\n e.stopPropagation();\n e.preventDefault();\n const {onClick} = recommendation;\n onClick && onClick(e);\n },\n [recommendation]\n );\n\n const handleSelectTheme = useCallback(\n e => {\n themeFilterOnChange && themeFilterOnChange(e);\n },\n [themeFilterOnChange]\n );\n\n const primary = get('common.primary', skin);\n const loader = loading ? (\n <div className={style.loader}>\n <Loader />\n </div>\n ) : null;\n const allProgressions = progressions.map(progression => (\n <ProgressionItem\n {...omit(['ref'], progression)}\n key={progression.ref}\n adaptiveAriaLabel={adaptiveAriaLabel}\n />\n ));\n\n const coreProgression = (\n <div data-name=\"activityCore\" className={style.core}>\n {allProgressions}\n </div>\n );\n const themeSelect = !isEmpty(themeFilter.options) ? (\n <Select\n borderClassName={style.selectBorder}\n className={style.select}\n theme=\"thematiques\"\n options={themeFilter.options}\n onChange={handleSelectTheme}\n />\n ) : null;\n const recommendationSection = !isEmpty(recommendation) ? (\n <div className={style.recommendationWrapper}>\n <p className={style.recommendationSection}>{recommendation.title} </p>\n <p className={style.recommendationSection}>\n <span>{recommendation.subtitle} </span>\n <span\n className={classnames(style.course, style.innerHTML)}\n // eslint-disable-next-line react/no-danger\n dangerouslySetInnerHTML={{__html: recommendation.courseTitle}}\n />\n </p>\n <Button\n type=\"link\"\n onClick={handleClick}\n submitValue={recommendation.cta}\n style={{\n backgroundColor: primary\n }}\n className={style.cta}\n />\n </div>\n ) : null;\n\n return (\n <div className={style.default}>\n <div data-name=\"activity-header\">\n <div className={style.mainTitle}>\n <span>{mainTitle}</span> {mainSubtitle}\n </div>\n <div className={style.headerProgression}>\n <div className={style.wrapperCta}>\n {themeSelect}\n {recommendationSection}\n </div>\n <StarsSummary engines={engines} total={total} />\n </div>\n </div>\n <div className={style.wrapperProgression} data-name=\"activityList\">\n {coreProgression}\n {loader}\n </div>\n </div>\n );\n};\n\nProgression.contextTypes = {\n skin: Provider.childContextTypes.skin\n};\n\nProgression.propTypes = {\n mainTitle: PropTypes.string.isRequired,\n mainSubtitle: PropTypes.string.isRequired,\n adaptiveAriaLabel: PropTypes.string,\n total: PropTypes.shape({\n label: PropTypes.string.isRequired,\n stars: PropTypes.number.isRequired\n }).isRequired,\n engines: PropTypes.arrayOf(PropTypes.shape(EngineStars.propTypes)),\n loading: PropTypes.bool.isRequired,\n progressions: PropTypes.arrayOf(\n PropTypes.shape({...ProgressionItem.propTypes, ref: PropTypes.string.isRequired})\n ),\n themeFilter: PropTypes.shape({\n options: Select.propTypes.options.isRequired,\n onChange: Select.propTypes.onChange\n }),\n recommendation: PropTypes.shape({\n cta: PropTypes.string.isRequired,\n title: PropTypes.string.isRequired,\n subtitle: PropTypes.string.isRequired,\n courseTitle: PropTypes.string.isRequired,\n onClick: PropTypes.func\n })\n};\n\nexport default Progression;\n"],"mappings":";;;;;AAAA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;;;;;;;AAEA,MAAMA,WAAW,GAAG,CAACC,KAAD,EAAQC,aAAR,KAA0B;EAC5C,MAAM;IACJC,SADI;IAEJC,YAFI;IAGJC,cAAc,GAAG,EAHb;IAIJC,YAAY,GAAG,EAJX;IAKJC,iBALI;IAMJC,KANI;IAOJC,OAAO,GAAG,EAPN;IAQJC,WAAW,GAAG,EARV;IASJC;EATI,IAUFV,KAVJ;EAWA,MAAMW,IAAI,GAAG,IAAAC,4BAAA,EAAmBX,aAAnB,CAAb;EACA,MAAM;IAACY,QAAQ,EAAEC;EAAX,IAAkCL,WAAxC;EAEA,MAAMM,WAAW,GAAG,IAAAC,kBAAA,EAClBC,CAAC,IAAI;IACHA,CAAC,CAACC,eAAF;IACAD,CAAC,CAACE,c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;AAjBM,CAAxB;eA0BetE,W"}
1
+ {"version":3,"file":"index.js","names":["Progression","props","legacyContext","mainTitle","mainSubtitle","recommendation","progressions","adaptiveAriaLabel","total","engines","themeFilter","loading","ariaLabel","skin","GetSkinFromContext","onChange","themeFilterOnChange","handleClick","useCallback","e","stopPropagation","preventDefault","onClick","handleSelectTheme","primary","get","loader","style","allProgressions","map","progression","omit","ref","coreProgression","core","themeSelect","isEmpty","options","selectBorder","select","recommendationSection","recommendationWrapper","title","subtitle","classnames","course","innerHTML","__html","courseTitle","cta","backgroundColor","default","headerProgression","wrapperCta","wrapperProgression","contextTypes","Provider","childContextTypes","propTypes","PropTypes","string","isRequired","shape","label","stars","number","arrayOf","EngineStars","bool","ProgressionItem","Select","func"],"sources":["../../../src/template/activity/index.js"],"sourcesContent":["import React, {useCallback} from 'react';\nimport get from 'lodash/fp/get';\nimport isEmpty from 'lodash/fp/isEmpty';\nimport omit from 'lodash/fp/omit';\nimport PropTypes from 'prop-types';\nimport classnames from 'classnames';\nimport Provider, {GetSkinFromContext} from '../../atom/provider';\nimport Button from '../../atom/button';\nimport Select from '../../atom/select';\nimport Loader from '../../atom/loader';\nimport ProgressionItem from './progression-item';\nimport EngineStars from './engine-stars';\nimport StarsSummary from './stars-summary';\nimport style from './style.css';\n\nconst Progression = (props, legacyContext) => {\n const {\n mainTitle,\n mainSubtitle,\n recommendation = {},\n progressions = [],\n adaptiveAriaLabel,\n total,\n engines = [],\n themeFilter = {},\n loading,\n 'aria-label': ariaLabel\n } = props;\n const skin = GetSkinFromContext(legacyContext);\n const {onChange: themeFilterOnChange} = themeFilter;\n\n const handleClick = useCallback(\n e => {\n e.stopPropagation();\n e.preventDefault();\n const {onClick} = recommendation;\n onClick && onClick(e);\n },\n [recommendation]\n );\n\n const handleSelectTheme = useCallback(\n e => {\n themeFilterOnChange && themeFilterOnChange(e);\n },\n [themeFilterOnChange]\n );\n\n const primary = get('common.primary', skin);\n const loader = loading ? (\n <div className={style.loader}>\n <Loader />\n </div>\n ) : null;\n const allProgressions = progressions.map(progression => (\n <ProgressionItem\n {...omit(['ref'], progression)}\n key={progression.ref}\n adaptiveAriaLabel={adaptiveAriaLabel}\n />\n ));\n\n const coreProgression = (\n <div data-name=\"activityCore\" className={style.core}>\n {allProgressions}\n </div>\n );\n const themeSelect = !isEmpty(themeFilter.options) ? (\n <Select\n borderClassName={style.selectBorder}\n className={style.select}\n theme=\"thematiques\"\n options={themeFilter.options}\n onChange={handleSelectTheme}\n aria-label={ariaLabel}\n />\n ) : null;\n const recommendationSection = !isEmpty(recommendation) ? (\n <div className={style.recommendationWrapper}>\n <p className={style.recommendationSection}>{recommendation.title} </p>\n <p className={style.recommendationSection}>\n <span>{recommendation.subtitle} </span>\n <span\n className={classnames(style.course, style.innerHTML)}\n // eslint-disable-next-line react/no-danger\n dangerouslySetInnerHTML={{__html: recommendation.courseTitle}}\n />\n </p>\n <Button\n type=\"link\"\n onClick={handleClick}\n submitValue={recommendation.cta}\n style={{\n backgroundColor: primary\n }}\n className={style.cta}\n />\n </div>\n ) : null;\n\n return (\n <div className={style.default}>\n <div data-name=\"activity-header\">\n <div className={style.mainTitle}>\n <span>{mainTitle}</span> {mainSubtitle}\n </div>\n <div className={style.headerProgression}>\n <div className={style.wrapperCta}>\n {themeSelect}\n {recommendationSection}\n </div>\n <StarsSummary engines={engines} total={total} />\n </div>\n </div>\n <div className={style.wrapperProgression} data-name=\"activityList\">\n {coreProgression}\n {loader}\n </div>\n </div>\n );\n};\n\nProgression.contextTypes = {\n skin: Provider.childContextTypes.skin\n};\n\nProgression.propTypes = {\n mainTitle: PropTypes.string.isRequired,\n mainSubtitle: PropTypes.string.isRequired,\n adaptiveAriaLabel: PropTypes.string,\n total: PropTypes.shape({\n label: PropTypes.string.isRequired,\n stars: PropTypes.number.isRequired\n }).isRequired,\n engines: PropTypes.arrayOf(PropTypes.shape(EngineStars.propTypes)),\n loading: PropTypes.bool.isRequired,\n progressions: PropTypes.arrayOf(\n PropTypes.shape({...ProgressionItem.propTypes, ref: PropTypes.string.isRequired})\n ),\n themeFilter: PropTypes.shape({\n options: Select.propTypes.options.isRequired,\n onChange: Select.propTypes.onChange\n }),\n recommendation: PropTypes.shape({\n cta: PropTypes.string.isRequired,\n title: PropTypes.string.isRequired,\n subtitle: PropTypes.string.isRequired,\n courseTitle: PropTypes.string.isRequired,\n onClick: PropTypes.func\n }),\n 'aria-label': PropTypes.string\n};\n\nexport default Progression;\n"],"mappings":";;;;;AAAA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;;;;;;;AAEA,MAAMA,WAAW,GAAG,CAACC,KAAD,EAAQC,aAAR,KAA0B;EAC5C,MAAM;IACJC,SADI;IAEJC,YAFI;IAGJC,cAAc,GAAG,EAHb;IAIJC,YAAY,GAAG,EAJX;IAKJC,iBALI;IAMJC,KANI;IAOJC,OAAO,GAAG,EAPN;IAQJC,WAAW,GAAG,EARV;IASJC,OATI;IAUJ,cAAcC;EAVV,IAWFX,KAXJ;EAYA,MAAMY,IAAI,GAAG,IAAAC,4BAAA,EAAmBZ,aAAnB,CAAb;EACA,MAAM;IAACa,QAAQ,EAAEC;EAAX,IAAkCN,WAAxC;EAEA,MAAMO,WAAW,GAAG,IAAAC,kBAAA,EAClBC,CAAC,IAAI;IACHA,CAAC,CAACC,eAAF;IACAD,CAAC,CAACE,cAAF;IACA,MAAM;MAACC;IAAD,IAAYjB,cAAlB;IACAiB,OAAO,IAAIA,OAAO,CAACH,CAAD,CAAlB;EACD,CANiB,EAOlB,CAACd,cAAD,CAPkB,CAApB;EAUA,MAAMkB,iBAAiB,GAAG,IAAAL,kBAAA,EACxBC,CAAC,IAAI;IACHH,mBAAmB,IAAIA,mBAAmB,CAACG,CAAD,CAA1C;EACD,CAHuB,EAIxB,CAACH,mBAAD,CAJwB,CAA1B;EAOA,MAAMQ,OAAO,GAAG,IAAAC,YAAA,EAAI,gBAAJ,EAAsBZ,IAAt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,EAGJA,UAPmB;EAQtBpD,OAAO,EAAEkD,kBAAA,CAAUO,OAAV,CAAkBP,kBAAA,CAAUG,KAAV,CAAgBK,oBAAA,CAAYT,SAA5B,CAAlB,CARa;EAStB/C,OAAO,EAAEgD,kBAAA,CAAUS,IAAV,CAAeP,UATF;EAUtBvD,YAAY,EAAEqD,kBAAA,CAAUO,OAAV,CACZP,kBAAA,CAAUG,KAAV,cAAoBO,wBAAA,CAAgBX,SAApC;IAA+C1B,GAAG,EAAE2B,kBAAA,CAAUC,MAAV,CAAiBC;EAArE,GADY,CAVQ;EAatBnD,WAAW,EAAEiD,kBAAA,CAAUG,KAAV,CAAgB;IAC3BzB,OAAO,EAAEiC,eAAA,CAAOZ,SAAP,CAAiBrB,OAAjB,CAAyBwB,UADP;IAE3B9C,QAAQ,EAAEuD,eAAA,CAAOZ,SAAP,CAAiB3C;EAFA,CAAhB,CAbS;EAiBtBV,cAAc,EAAEsD,kBAAA,CAAUG,KAAV,CAAgB;IAC9Bb,GAAG,EAAEU,kBAAA,CAAUC,MAAV,CAAiBC,UADQ;IAE9BnB,KAAK,EAAEiB,kBAAA,CAAUC,MAAV,CAAiBC,UAFM;IAG9BlB,QAAQ,EAAEgB,kBAAA,CAAUC,MAAV,CAAiBC,UAHG;IAI9Bb,WAAW,EAAEW,kBAAA,CAAUC,MAAV,CAAiBC,UAJA;IAK9BvC,OAAO,EAAEqC,kBAAA,CAAUY;EALW,CAAhB,CAjBM;EAwBtB,cAAcZ,kBAAA,CAAUC;AAxBF,CAAxB;eA2Be5D,W"}
@@ -46,6 +46,7 @@ declare namespace PlayerLoading {
46
46
  disabled: PropTypes.Requireable<boolean>;
47
47
  onChange: PropTypes.Requireable<(...args: any[]) => any>;
48
48
  description: PropTypes.Requireable<string>;
49
+ 'aria-labelledby': PropTypes.Requireable<string>;
49
50
  modified: PropTypes.Requireable<boolean>;
50
51
  titlePosition: PropTypes.Requireable<string>;
51
52
  theme: PropTypes.Requireable<string>;
@@ -95,6 +95,7 @@ declare namespace SlidePlayer {
95
95
  disabled: PropTypes.Requireable<boolean>;
96
96
  onChange: PropTypes.Requireable<(...args: any[]) => any>;
97
97
  description: PropTypes.Requireable<string>;
98
+ 'aria-labelledby': PropTypes.Requireable<string>;
98
99
  modified: PropTypes.Requireable<boolean>;
99
100
  titlePosition: PropTypes.Requireable<string>;
100
101
  theme: PropTypes.Requireable<string>;
@@ -146,6 +147,7 @@ declare namespace SlidePlayer {
146
147
  disabled: PropTypes.Requireable<boolean>;
147
148
  onChange: PropTypes.Requireable<(...args: any[]) => any>;
148
149
  description: PropTypes.Requireable<string>;
150
+ 'aria-labelledby': PropTypes.Requireable<string>;
149
151
  modified: PropTypes.Requireable<boolean>;
150
152
  titlePosition: PropTypes.Requireable<string>;
151
153
  theme: PropTypes.Requireable<string>;
@@ -103,6 +103,7 @@ declare namespace SlidesPlayer {
103
103
  disabled: PropTypes.Requireable<boolean>;
104
104
  onChange: PropTypes.Requireable<(...args: any[]) => any>;
105
105
  description: PropTypes.Requireable<string>;
106
+ 'aria-labelledby': PropTypes.Requireable<string>;
106
107
  modified: PropTypes.Requireable<boolean>;
107
108
  titlePosition: PropTypes.Requireable<string>;
108
109
  theme: PropTypes.Requireable<string>;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/template/app-player/player/slides/index.js"],"names":[],"mappings":";AAgZA,qEAkBC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA1HD;;uBAUC;;;;;;;;;;;;;;;;;;;;;;;AAnOD;;;gBAaC;;;;;;;;;;;;;AAyDD;;;gBAAoF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAhHpF,oEAQC;;;;;;;;;AA6MD;;gBAiBC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA/GD,qEAaC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/template/app-player/player/slides/index.js"],"names":[],"mappings":";AAgZA,qEAkBC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA1HD;;uBAUC;;;;;;;;;;;;;;;;;;;;;;;AAnOD;;;gBAaC;;;;;;;;;;;;;AAyDD;;;gBAAoF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAhHpF,oEAQC;;;;;;;;;AA6MD;;gBAiBC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA/GD,qEAaC"}
@@ -129,6 +129,7 @@ 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>;
132
133
  modified: PropTypes.Requireable<boolean>;
133
134
  titlePosition: PropTypes.Requireable<string>;
134
135
  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,7 @@ 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>;
173
174
  modified: PropTypes.Requireable<boolean>;
174
175
  titlePosition: PropTypes.Requireable<string>;
175
176
  theme: PropTypes.Requireable<string>;
@@ -548,6 +548,7 @@ 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>;
551
552
  modified: import("prop-types").Requireable<boolean>;
552
553
  titlePosition: import("prop-types").Requireable<string>;
553
554
  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,7 @@ 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>;
551
552
  modified: PropTypes.Requireable<boolean>;
552
553
  titlePosition: PropTypes.Requireable<string>;
553
554
  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,7 @@ 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>;
555
556
  modified: PropTypes.Requireable<boolean>;
556
557
  titlePosition: PropTypes.Requireable<string>;
557
558
  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,YAAY,CAAC;AAEnC,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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"}
@@ -187,6 +187,7 @@ declare namespace BrandUpdate {
187
187
  disabled: PropTypes.Requireable<boolean>;
188
188
  onChange: PropTypes.Requireable<(...args: any[]) => any>;
189
189
  description: PropTypes.Requireable<string>;
190
+ 'aria-labelledby': PropTypes.Requireable<string>;
190
191
  modified: PropTypes.Requireable<boolean>;
191
192
  titlePosition: PropTypes.Requireable<string>;
192
193
  theme: PropTypes.Requireable<string>;
@@ -309,6 +310,7 @@ declare namespace BrandUpdate {
309
310
  disabled: PropTypes.Requireable<boolean>;
310
311
  onChange: PropTypes.Requireable<(...args: any[]) => any>;
311
312
  description: PropTypes.Requireable<string>;
313
+ 'aria-labelledby': PropTypes.Requireable<string>;
312
314
  modified: PropTypes.Requireable<boolean>;
313
315
  titlePosition: PropTypes.Requireable<string>;
314
316
  theme: PropTypes.Requireable<string>;
@@ -439,6 +441,7 @@ declare namespace BrandUpdate {
439
441
  disabled: PropTypes.Requireable<boolean>;
440
442
  onChange: PropTypes.Requireable<(...args: any[]) => any>;
441
443
  description: PropTypes.Requireable<string>;
444
+ 'aria-labelledby': PropTypes.Requireable<string>;
442
445
  modified: PropTypes.Requireable<boolean>;
443
446
  titlePosition: PropTypes.Requireable<string>;
444
447
  theme: PropTypes.Requireable<string>;
@@ -812,6 +815,7 @@ declare namespace BrandUpdate {
812
815
  disabled: PropTypes.Requireable<boolean>;
813
816
  onChange: PropTypes.Requireable<(...args: any[]) => any>;
814
817
  description: PropTypes.Requireable<string>;
818
+ 'aria-labelledby': PropTypes.Requireable<string>;
815
819
  modified: PropTypes.Requireable<boolean>;
816
820
  titlePosition: PropTypes.Requireable<string>;
817
821
  theme: PropTypes.Requireable<string>;
@@ -934,6 +938,7 @@ declare namespace BrandUpdate {
934
938
  disabled: PropTypes.Requireable<boolean>;
935
939
  onChange: PropTypes.Requireable<(...args: any[]) => any>;
936
940
  description: PropTypes.Requireable<string>;
941
+ 'aria-labelledby': PropTypes.Requireable<string>;
937
942
  modified: PropTypes.Requireable<boolean>;
938
943
  titlePosition: PropTypes.Requireable<string>;
939
944
  theme: PropTypes.Requireable<string>;
@@ -1064,6 +1069,7 @@ declare namespace BrandUpdate {
1064
1069
  disabled: PropTypes.Requireable<boolean>;
1065
1070
  onChange: PropTypes.Requireable<(...args: any[]) => any>;
1066
1071
  description: PropTypes.Requireable<string>;
1072
+ 'aria-labelledby': PropTypes.Requireable<string>;
1067
1073
  modified: PropTypes.Requireable<boolean>;
1068
1074
  titlePosition: PropTypes.Requireable<string>;
1069
1075
  theme: PropTypes.Requireable<string>;
@@ -1516,6 +1522,7 @@ declare namespace BrandUpdate {
1516
1522
  disabled: PropTypes.Requireable<boolean>;
1517
1523
  onChange: PropTypes.Requireable<(...args: any[]) => any>;
1518
1524
  description: PropTypes.Requireable<string>;
1525
+ 'aria-labelledby': PropTypes.Requireable<string>;
1519
1526
  modified: PropTypes.Requireable<boolean>;
1520
1527
  titlePosition: PropTypes.Requireable<string>;
1521
1528
  theme: PropTypes.Requireable<string>;
@@ -47,6 +47,7 @@ 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>;
50
51
  modified: PropTypes.Requireable<boolean>;
51
52
  titlePosition: PropTypes.Requireable<string>;
52
53
  theme: PropTypes.Requireable<string>;
@@ -65,6 +65,7 @@ declare namespace SearchPage {
65
65
  onToggleSorts: PropTypes.Requireable<(...args: any[]) => any>;
66
66
  moreSortAriaLabel: PropTypes.Requireable<string>;
67
67
  moreFilterAriaLabel: PropTypes.Requireable<string>;
68
+ sortAriaLabel: PropTypes.Requireable<string>;
68
69
  }>>;
69
70
  const cards: PropTypes.Requireable<PropTypes.InferProps<{
70
71
  list: PropTypes.Requireable<(PropTypes.InferProps<any> | null | undefined)[]>;
@@ -101,6 +102,7 @@ declare namespace SearchPage {
101
102
  }>>;
102
103
  const moreSortAriaLabel: PropTypes.Requireable<string>;
103
104
  const moreFilterAriaLabel: PropTypes.Requireable<string>;
105
+ const sortAriaLabel: PropTypes.Requireable<string>;
104
106
  }
105
107
  }
106
108
  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,mEAkDC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/template/common/search-page/index.js"],"names":[],"mappings":";AAUA,mEAoDC"}
@@ -36,7 +36,8 @@ const SearchPage = (props, context) => {
36
36
  clearFilters,
37
37
  recommendations,
38
38
  moreSortAriaLabel,
39
- moreFilterAriaLabel
39
+ moreFilterAriaLabel,
40
+ sortAriaLabel
40
41
  } = props;
41
42
  const {
42
43
  skin
@@ -57,7 +58,8 @@ const SearchPage = (props, context) => {
57
58
  }))), recommendationsView) : /*#__PURE__*/_react.default.createElement(_cardsGrid.default, cards);
58
59
  return /*#__PURE__*/_react.default.createElement("div", null, /*#__PURE__*/_react.default.createElement(_filters.default, _extends({}, searchFilters, {
59
60
  moreSortAriaLabel: moreSortAriaLabel,
60
- moreFilterAriaLabel: moreFilterAriaLabel
61
+ moreFilterAriaLabel: moreFilterAriaLabel,
62
+ sortAriaLabel: sortAriaLabel
61
63
  })), /*#__PURE__*/_react.default.createElement("div", {
62
64
  "data-name": "searchResult",
63
65
  className: _style.default.cardsWrapper
@@ -78,7 +80,8 @@ SearchPage.propTypes = process.env.NODE_ENV !== "production" ? {
78
80
  clearFilters: _propTypes.default.shape(_button.default.propTypes),
79
81
  recommendations: _propTypes.default.shape(_cardsList.default.propTypes),
80
82
  moreSortAriaLabel: _propTypes.default.string,
81
- moreFilterAriaLabel: _propTypes.default.string
83
+ moreFilterAriaLabel: _propTypes.default.string,
84
+ sortAriaLabel: _propTypes.default.string
82
85
  } : {};
83
86
  var _default = SearchPage;
84
87
  exports.default = _default;
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["SearchPage","props","context","title","searchFilters","cards","noresultsfound","clearFilters","recommendations","moreSortAriaLabel","moreFilterAriaLabel","skin","defaultColor","recommendationsView","cardsView","list","style","noresults","noresultstxt","clear","background","cardsWrapper","contextTypes","Provider","childContextTypes","propTypes","PropTypes","string","shape","Filters","CardsGrid","Button","CardsList"],"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 } = 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 />\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};\n\nexport default SearchPage;\n"],"mappings":";;;;;;;;;AAAA;;AACA;;AAEA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;;;AAEA,MAAMA,UAAU,GAAG,CAACC,KAAD,EAAQC,OAAR,KAAoB;EACrC,MAAM;IACJC,KADI;IAEJC,aAFI;IAGJC,KAHI;IAIJC,cAJI;IAKJC,YALI;IAMJC,eANI;IAOJC,iBAPI;IAQJC;EARI,IASFT,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EqB,kBAAA,CAAUE,KAAV,CAAgBE,kBAAA,CAAUL,SAA1B,CAJc;EAKrBlB,YAAY,EAAEmB,kBAAA,CAAUE,KAAV,CAAgBG,eAAA,CAAON,SAAvB,CALO;EAMrBjB,eAAe,EAAEkB,kBAAA,CAAUE,KAAV,CAAgBI,kBAAA,CAAUP,SAA1B,CANI;EAOrBhB,iBAAiB,EAAEiB,kBAAA,CAAUC,MAPR;EAQrBjB,mBAAmB,EAAEgB,kBAAA,CAAUC;AARV,CAAvB;eAWe3B,U"}
1
+ {"version":3,"file":"index.js","names":["SearchPage","props","context","title","searchFilters","cards","noresultsfound","clearFilters","recommendations","moreSortAriaLabel","moreFilterAriaLabel","sortAriaLabel","skin","defaultColor","recommendationsView","cardsView","list","style","noresults","noresultstxt","clear","background","cardsWrapper","contextTypes","Provider","childContextTypes","propTypes","PropTypes","string","shape","Filters","CardsGrid","Button","CardsList"],"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 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 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 sortAriaLabel: PropTypes.string\n};\n\nexport default SearchPage;\n"],"mappings":";;;;;;;;;AAAA;;AACA;;AAEA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;;;AAEA,MAAMA,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,qBAAM,SAAN,EAAiB,gBAAjB,EAAmCD,IAAnC,CAArB;EAEA,MAAME,mBAAmB,GAAG,uBAAQN,eAAR,IAA2B,IAA3B,gBAAkC,6BAAC,kBAAD,EAAeA,eAAf,CAA9D;EAEA,MAAMO,SAAS,GAAG,uBAAQV,KAAK,CAACW,IAAd,iBAChB,uDACE;IAAK,SAAS,EAAEC,cAAA,CAAMC;EAAtB,gBACE;IAAK,SAAS,EAAED,cAAA,CAAME;EAAtB,GAAqCb,cAArC,CADF,eAEE,6BAAC,eAAD,eACMC,YADN;IAEE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ED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coorpacademy/components",
3
- "version": "11.7.3-alpha.4+0c9a64f9e",
3
+ "version": "11.7.3-alpha.6+a19b14ee8",
4
4
  "description": "",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.js",
@@ -160,5 +160,5 @@
160
160
  "last 2 versions",
161
161
  "IE 11"
162
162
  ],
163
- "gitHead": "0c9a64f9e550d579358c65db74acb0e2c62afa06"
163
+ "gitHead": "a19b14ee87344a391ffcb016e2d0f637d55f8867"
164
164
  }