@coorpacademy/components 11.7.2 → 11.7.3-alpha.29

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 (140) hide show
  1. package/README.md +3 -3
  2. package/es/atom/loader/index.native.d.ts +10 -0
  3. package/es/atom/loader/index.native.d.ts.map +1 -0
  4. package/es/atom/loader/index.native.js +192 -0
  5. package/es/atom/loader/index.native.js.map +1 -0
  6. package/es/atom/select/index.d.ts +18 -0
  7. package/es/atom/select/index.d.ts.map +1 -1
  8. package/es/atom/select/index.js +21 -4
  9. package/es/atom/select/index.js.map +1 -1
  10. package/es/molecule/answer/index.d.ts.map +1 -1
  11. package/es/molecule/answer/index.js +19 -6
  12. package/es/molecule/answer/index.js.map +1 -1
  13. package/es/molecule/brand-form-group/index.d.ts +18 -0
  14. package/es/molecule/filters/filters-wrapper.d.ts +1 -0
  15. package/es/molecule/filters/filters-wrapper.d.ts.map +1 -1
  16. package/es/molecule/filters/filters-wrapper.js +9 -5
  17. package/es/molecule/filters/filters-wrapper.js.map +1 -1
  18. package/es/molecule/filters/index.d.ts +10 -0
  19. package/es/molecule/filters/index.d.ts.map +1 -1
  20. package/es/molecule/filters/index.js +6 -3
  21. package/es/molecule/filters/index.js.map +1 -1
  22. package/es/molecule/questions/drop-down/index.d.ts +1 -0
  23. package/es/molecule/questions/drop-down/index.d.ts.map +1 -1
  24. package/es/molecule/questions/drop-down/index.js +9 -5
  25. package/es/molecule/questions/drop-down/index.js.map +1 -1
  26. package/es/molecule/questions/qcm/index.d.ts +1 -0
  27. package/es/molecule/questions/qcm/index.d.ts.map +1 -1
  28. package/es/molecule/questions/qcm/index.js +9 -5
  29. package/es/molecule/questions/qcm/index.js.map +1 -1
  30. package/es/molecule/questions/qcm-drag/index.d.ts +3 -1
  31. package/es/molecule/questions/qcm-drag/index.d.ts.map +1 -1
  32. package/es/molecule/questions/qcm-drag/index.js +9 -5
  33. package/es/molecule/questions/qcm-drag/index.js.map +1 -1
  34. package/es/molecule/questions/qcm-graphic/index.d.ts +1 -0
  35. package/es/molecule/questions/qcm-graphic/index.d.ts.map +1 -1
  36. package/es/molecule/questions/qcm-graphic/index.js +9 -5
  37. package/es/molecule/questions/qcm-graphic/index.js.map +1 -1
  38. package/es/molecule/questions/question-range/index.d.ts +1 -0
  39. package/es/molecule/questions/question-range/index.d.ts.map +1 -1
  40. package/es/molecule/questions/question-range/index.js +10 -6
  41. package/es/molecule/questions/question-range/index.js.map +1 -1
  42. package/es/molecule/questions/template/index.d.ts +6 -2
  43. package/es/molecule/questions/template/index.d.ts.map +1 -1
  44. package/es/molecule/questions/template/index.js +9 -5
  45. package/es/molecule/questions/template/index.js.map +1 -1
  46. package/es/molecule/setup-slide/index.d.ts +9 -0
  47. package/es/molecule/setup-slider/index.d.ts +9 -0
  48. package/es/organism/brand-form/index.d.ts +18 -0
  49. package/es/organism/user-preferences/index.d.ts +1 -0
  50. package/es/organism/user-preferences/index.d.ts.map +1 -1
  51. package/es/organism/user-preferences/index.js +9 -5
  52. package/es/organism/user-preferences/index.js.map +1 -1
  53. package/es/organism/wizard-contents/index.d.ts +18 -0
  54. package/es/template/back-office/brand-update/index.d.ts +36 -0
  55. package/es/template/common/search-page/index.d.ts +11 -0
  56. package/es/template/common/search-page/index.d.ts.map +1 -1
  57. package/es/template/common/search-page/index.js +6 -3
  58. package/es/template/common/search-page/index.js.map +1 -1
  59. package/lib/atom/loader/index.native.d.ts +10 -0
  60. package/lib/atom/loader/index.native.d.ts.map +1 -0
  61. package/lib/atom/loader/index.native.js +205 -0
  62. package/lib/atom/loader/index.native.js.map +1 -0
  63. package/lib/atom/select/index.d.ts +18 -0
  64. package/lib/atom/select/index.d.ts.map +1 -1
  65. package/lib/atom/select/index.js +26 -5
  66. package/lib/atom/select/index.js.map +1 -1
  67. package/lib/molecule/answer/index.d.ts.map +1 -1
  68. package/lib/molecule/answer/index.js +20 -6
  69. package/lib/molecule/answer/index.js.map +1 -1
  70. package/lib/molecule/brand-form-group/index.d.ts +18 -0
  71. package/lib/molecule/filters/filters-wrapper.d.ts +1 -0
  72. package/lib/molecule/filters/filters-wrapper.d.ts.map +1 -1
  73. package/lib/molecule/filters/filters-wrapper.js +9 -5
  74. package/lib/molecule/filters/filters-wrapper.js.map +1 -1
  75. package/lib/molecule/filters/index.d.ts +10 -0
  76. package/lib/molecule/filters/index.d.ts.map +1 -1
  77. package/lib/molecule/filters/index.js +6 -3
  78. package/lib/molecule/filters/index.js.map +1 -1
  79. package/lib/molecule/questions/drop-down/index.d.ts +1 -0
  80. package/lib/molecule/questions/drop-down/index.d.ts.map +1 -1
  81. package/lib/molecule/questions/drop-down/index.js +9 -5
  82. package/lib/molecule/questions/drop-down/index.js.map +1 -1
  83. package/lib/molecule/questions/qcm/index.d.ts +1 -0
  84. package/lib/molecule/questions/qcm/index.d.ts.map +1 -1
  85. package/lib/molecule/questions/qcm/index.js +9 -5
  86. package/lib/molecule/questions/qcm/index.js.map +1 -1
  87. package/lib/molecule/questions/qcm-drag/index.d.ts +3 -1
  88. package/lib/molecule/questions/qcm-drag/index.d.ts.map +1 -1
  89. package/lib/molecule/questions/qcm-drag/index.js +9 -5
  90. package/lib/molecule/questions/qcm-drag/index.js.map +1 -1
  91. package/lib/molecule/questions/qcm-graphic/index.d.ts +1 -0
  92. package/lib/molecule/questions/qcm-graphic/index.d.ts.map +1 -1
  93. package/lib/molecule/questions/qcm-graphic/index.js +9 -5
  94. package/lib/molecule/questions/qcm-graphic/index.js.map +1 -1
  95. package/lib/molecule/questions/question-range/index.d.ts +1 -0
  96. package/lib/molecule/questions/question-range/index.d.ts.map +1 -1
  97. package/lib/molecule/questions/question-range/index.js +10 -6
  98. package/lib/molecule/questions/question-range/index.js.map +1 -1
  99. package/lib/molecule/questions/template/index.d.ts +6 -2
  100. package/lib/molecule/questions/template/index.d.ts.map +1 -1
  101. package/lib/molecule/questions/template/index.js +9 -5
  102. package/lib/molecule/questions/template/index.js.map +1 -1
  103. package/lib/molecule/setup-slide/index.d.ts +9 -0
  104. package/lib/molecule/setup-slider/index.d.ts +9 -0
  105. package/lib/organism/brand-form/index.d.ts +18 -0
  106. package/lib/organism/user-preferences/index.d.ts +1 -0
  107. package/lib/organism/user-preferences/index.d.ts.map +1 -1
  108. package/lib/organism/user-preferences/index.js +9 -5
  109. package/lib/organism/user-preferences/index.js.map +1 -1
  110. package/lib/organism/wizard-contents/index.d.ts +18 -0
  111. package/lib/template/back-office/brand-update/index.d.ts +36 -0
  112. package/lib/template/common/search-page/index.d.ts +11 -0
  113. package/lib/template/common/search-page/index.d.ts.map +1 -1
  114. package/lib/template/common/search-page/index.js +6 -3
  115. package/lib/template/common/search-page/index.js.map +1 -1
  116. package/locales/.mtslconfig.json +1 -0
  117. package/locales/cs/global.json +1 -0
  118. package/locales/de/global.json +1 -0
  119. package/locales/en/global.json +1 -0
  120. package/locales/es/global.json +1 -0
  121. package/locales/et/global.json +1 -0
  122. package/locales/fr/global.json +1 -0
  123. package/locales/hr/global.json +1 -0
  124. package/locales/hu/global.json +1 -0
  125. package/locales/it/global.json +1 -0
  126. package/locales/ja/global.json +1 -0
  127. package/locales/ko/global.json +1 -0
  128. package/locales/nl/global.json +1 -0
  129. package/locales/pl/global.json +1 -0
  130. package/locales/pt/global.json +1 -0
  131. package/locales/ro/global.json +1 -0
  132. package/locales/ru/global.json +1 -0
  133. package/locales/sk/global.json +1 -0
  134. package/locales/tl/global.json +1 -0
  135. package/locales/tr/global.json +1 -0
  136. package/locales/uk/global.json +1 -0
  137. package/locales/vi/global.json +1 -0
  138. package/locales/zh/global.json +1 -0
  139. package/locales/zh_TW/global.json +1 -0
  140. package/package.json +3 -3
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["React","PropTypes","classnames","Provider","GetSkinFromContext","Range","style","QuestionRange","props","legacyContext","title","minLabel","maxLabel","rangeProps","skin","defaultColor","titleStyle","color","wrapper","innerHTML","__html","labelWrapper","label","contextTypes","childContextTypes","propTypes","string"],"sources":["../../../../src/molecule/questions/question-range/index.js"],"sourcesContent":["import React from 'react';\nimport {getOr} from 'lodash/fp';\nimport PropTypes from 'prop-types';\nimport classnames from 'classnames';\nimport Provider, {GetSkinFromContext} from '../../../atom/provider';\nimport Range from '../../../atom/range';\nimport style from './style.css';\n\nconst QuestionRange = (props, legacyContext) => {\n const {title, minLabel, maxLabel, ...rangeProps} = props;\n\n const skin = GetSkinFromContext(legacyContext);\n const defaultColor = getOr('#00B0FF', 'common.primary', skin);\n\n const titleStyle = {\n color: defaultColor\n };\n\n return (\n <div className={style.wrapper}>\n <span\n style={titleStyle}\n className={classnames(style.title, style.innerHTML)}\n // eslint-disable-next-line react/no-danger\n dangerouslySetInnerHTML={{__html: title}}\n />\n <Range {...rangeProps} />\n <div className={style.labelWrapper}>\n <span\n className={classnames(style.label, style.innerHTML)}\n // eslint-disable-next-line react/no-danger\n dangerouslySetInnerHTML={{__html: minLabel}}\n />\n <span\n className={classnames(style.label, style.innerHTML)}\n // eslint-disable-next-line react/no-danger\n dangerouslySetInnerHTML={{__html: maxLabel}}\n />\n </div>\n </div>\n );\n};\n\nQuestionRange.contextTypes = {\n skin: Provider.childContextTypes.skin\n};\n\nQuestionRange.propTypes = {\n ...Range.propTypes,\n title: PropTypes.string,\n minLabel: PropTypes.string,\n maxLabel: PropTypes.string\n};\n\nexport default QuestionRange;\n"],"mappings":";;;;;;;AAAA,OAAOA,KAAP,MAAkB,OAAlB;AAEA,OAAOC,SAAP,MAAsB,YAAtB;AACA,OAAOC,UAAP,MAAuB,YAAvB;AACA,OAAOC,QAAP,IAAkBC,kBAAlB,QAA2C,wBAA3C;AACA,OAAOC,KAAP,MAAkB,qBAAlB;AACA,OAAOC,KAAP,MAAkB,aAAlB;;AAEA,MAAMC,aAAa,GAAG,CAACC,KAAD,EAAQC,aAAR,KAA0B;EAC9C,MAAM;IAACC,KAAD;IAAQC,QAAR;IAAkBC;EAAlB,IAA6CJ,KAAnD;EAAA,MAAqCK,UAArC,iCAAmDL,KAAnD;;EAEA,MAAMM,IAAI,GAAGV,kBAAkB,CAACK,aAAD,CAA/B;;EACA,MAAMM,YAAY,GAAG,OAAM,SAAN,EAAiB,gBAAjB,EAAmCD,IAAnC,CAArB;;EAEA,MAAME,UAAU,GAAG;IACjBC,KAAK,EAAEF;EADU,CAAnB;EAIA,oBACE;IAAK,SAAS,EAAET,KAAK,CAACY;EAAtB,gBACE;IACE,KAAK,EAAEF,UADT;IAEE,SAAS,EAAEd,UAAU,CAACI,KAAK,CAACI,KAAP,EAAcJ,KAAK,CAACa,SAApB,CAFvB,CAGE;IAHF;IAIE,uBAAuB,EAAE;MAACC,MAAM,EAAEV;IAAT;EAJ3B,EADF,eAOE,oBAAC,KAAD,EAAWG,UAAX,CAPF,eAQE;IAAK,SAAS,EAAEP,KAAK,CAACe;EAAtB,gBACE;IACE,SAAS,EAAEnB,UAAU,CAACI,KAAK,CAACgB,KAAP,EAAchB,KAAK,CAACa,SAApB,CADvB,CAEE;IAFF;IAGE,uBAAuB,EAAE;MAACC,MAAM,EAAET;IAAT;EAH3B,EADF,eAME;IACE,SAAS,EAAET,UAAU,CAACI,KAAK,CAACgB,KAAP,EAAchB,KAAK,CAACa,SAApB,CADvB,CAEE;IAFF;IAGE,uBAAuB,EAAE;MAACC,MAAM,EAAER;IAAT;EAH3B,EANF,CARF,CADF;AAuBD,CAjCD;;AAmCAL,aAAa,CAACgB,YAAd,GAA6B;EAC3BT,IAAI,EAAEX,QAAQ,CAACqB,iBAAT,CAA2BV;AADN,CAA7B;AAIAP,aAAa,CAACkB,SAAd,wDACKpB,KAAK,CAACoB,SADX;EAEEf,KAAK,EAAET,SAAS,CAACyB,MAFnB;EAGEf,QAAQ,EAAEV,SAAS,CAACyB,MAHtB;EAIEd,QAAQ,EAAEX,SAAS,CAACyB;AAJtB;AAOA,eAAenB,aAAf"}
1
+ {"version":3,"file":"index.js","names":["React","PropTypes","classnames","Provider","GetSkinFromContext","Range","style","QuestionRange","props","legacyContext","title","minLabel","maxLabel","groupAriaLabel","rangeProps","skin","defaultColor","titleStyle","color","wrapper","innerHTML","__html","labelWrapper","label","contextTypes","childContextTypes","propTypes","string"],"sources":["../../../../src/molecule/questions/question-range/index.js"],"sourcesContent":["import React from 'react';\nimport {getOr} from 'lodash/fp';\nimport PropTypes from 'prop-types';\nimport classnames from 'classnames';\nimport Provider, {GetSkinFromContext} from '../../../atom/provider';\nimport Range from '../../../atom/range';\nimport style from './style.css';\n\nconst QuestionRange = (props, legacyContext) => {\n const {title, minLabel, maxLabel, groupAriaLabel, ...rangeProps} = props;\n\n const skin = GetSkinFromContext(legacyContext);\n const defaultColor = getOr('#00B0FF', 'common.primary', skin);\n\n const titleStyle = {\n color: defaultColor\n };\n\n return (\n <form>\n <div className={style.wrapper} role=\"group\" aria-label={groupAriaLabel}>\n <span\n style={titleStyle}\n className={classnames(style.title, style.innerHTML)}\n // eslint-disable-next-line react/no-danger\n dangerouslySetInnerHTML={{__html: title}}\n />\n <Range {...rangeProps} />\n <div className={style.labelWrapper}>\n <span\n className={classnames(style.label, style.innerHTML)}\n // eslint-disable-next-line react/no-danger\n dangerouslySetInnerHTML={{__html: minLabel}}\n />\n <span\n className={classnames(style.label, style.innerHTML)}\n // eslint-disable-next-line react/no-danger\n dangerouslySetInnerHTML={{__html: maxLabel}}\n />\n </div>\n </div>\n </form>\n );\n};\n\nQuestionRange.contextTypes = {\n skin: Provider.childContextTypes.skin\n};\n\nQuestionRange.propTypes = {\n ...Range.propTypes,\n title: PropTypes.string,\n minLabel: PropTypes.string,\n maxLabel: PropTypes.string,\n groupAriaLabel: PropTypes.string\n};\n\nexport default QuestionRange;\n"],"mappings":";;;;;;;AAAA,OAAOA,KAAP,MAAkB,OAAlB;AAEA,OAAOC,SAAP,MAAsB,YAAtB;AACA,OAAOC,UAAP,MAAuB,YAAvB;AACA,OAAOC,QAAP,IAAkBC,kBAAlB,QAA2C,wBAA3C;AACA,OAAOC,KAAP,MAAkB,qBAAlB;AACA,OAAOC,KAAP,MAAkB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AACqB,SADX;EAEEhB,KAAK,EAAET,SAAS,CAAC0B,MAFnB;EAGEhB,QAAQ,EAAEV,SAAS,CAAC0B,MAHtB;EAIEf,QAAQ,EAAEX,SAAS,CAAC0B,MAJtB;EAKEd,cAAc,EAAEZ,SAAS,CAAC0B;AAL5B;AAQA,eAAepB,aAAf"}
@@ -1,7 +1,8 @@
1
1
  export default Template;
2
- declare function Template({ template, answers }: {
2
+ declare function Template({ template, answers, groupAriaLabel }: {
3
3
  template: any;
4
4
  answers: any;
5
+ groupAriaLabel: any;
5
6
  }): JSX.Element;
6
7
  declare namespace Template {
7
8
  namespace propTypes {
@@ -16,6 +17,7 @@ declare namespace Template {
16
17
  }> | null | undefined)[]>;
17
18
  theme: PropTypes.Requireable<string>;
18
19
  'aria-label': PropTypes.Requireable<string>;
20
+ groupAriaLabel: PropTypes.Requireable<string>;
19
21
  }, never>> & Partial<PropTypes.InferPropsInner<Pick<{
20
22
  onChange: PropTypes.Requireable<(...args: any[]) => any>;
21
23
  options: PropTypes.Requireable<(PropTypes.InferProps<{
@@ -26,7 +28,9 @@ declare namespace Template {
26
28
  }> | null | undefined)[]>;
27
29
  theme: PropTypes.Requireable<string>;
28
30
  'aria-label': PropTypes.Requireable<string>;
29
- }, "aria-label" | "onChange" | "theme" | "options">>>) | null | undefined)[]>;
31
+ groupAriaLabel: PropTypes.Requireable<string>;
32
+ }, "aria-label" | "onChange" | "theme" | "options" | "groupAriaLabel">>>) | null | undefined)[]>;
33
+ const groupAriaLabel: PropTypes.Requireable<string>;
30
34
  }
31
35
  }
32
36
  import PropTypes from "prop-types";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/molecule/questions/template/index.js"],"names":[],"mappings":";AAQA;;;gBAsCC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/molecule/questions/template/index.js"],"names":[],"mappings":";AAQA;;;;gBA6CC"}
@@ -15,7 +15,8 @@ import style from './style.css';
15
15
 
16
16
  const Template = ({
17
17
  template,
18
- answers
18
+ answers,
19
+ groupAriaLabel
19
20
  }) => {
20
21
  const totalTemplate = parseTemplateString(template);
21
22
 
@@ -59,10 +60,12 @@ const Template = ({
59
60
  }
60
61
  }, totalTemplate);
61
62
 
62
- return /*#__PURE__*/React.createElement("div", {
63
+ return /*#__PURE__*/React.createElement("form", null, /*#__PURE__*/React.createElement("div", {
63
64
  "data-name": "template-wrapper",
64
- className: style.wrapper
65
- }, templateCompose);
65
+ className: style.wrapper,
66
+ role: "group",
67
+ "aria-label": groupAriaLabel
68
+ }, templateCompose));
66
69
  };
67
70
 
68
71
  const TextPropTypes = process.env.NODE_ENV !== "production" ? _extends({}, DropDown.propTypes, {
@@ -70,7 +73,8 @@ const TextPropTypes = process.env.NODE_ENV !== "production" ? _extends({}, DropD
70
73
  }) : {};
71
74
  Template.propTypes = process.env.NODE_ENV !== "production" ? {
72
75
  template: PropTypes.string,
73
- answers: PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.shape(DropDown.propTypes), PropTypes.shape(TextPropTypes)]))
76
+ answers: PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.shape(DropDown.propTypes), PropTypes.shape(TextPropTypes)])),
77
+ groupAriaLabel: PropTypes.string
74
78
  } : {};
75
79
  export default Template;
76
80
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["React","PropTypes","parseTemplateString","DropDown","FreeText","style","Template","template","answers","totalTemplate","templateCompose","convert","cap","part","key","type","textPart","__html","value","field","name","fieldType","fieldProps","fieldView","text","answerType","wrapper","TextPropTypes","propTypes","string","arrayOf","oneOfType","shape"],"sources":["../../../../src/molecule/questions/template/index.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport {map, find} from 'lodash/fp';\nimport parseTemplateString from '../../../util/parse-template-string';\nimport DropDown from '../drop-down';\nimport FreeText from '../free-text';\nimport style from './style.css';\n\nconst Template = ({template, answers}) => {\n const totalTemplate = parseTemplateString(template);\n const templateCompose = map.convert({cap: false})((part, key) => {\n const type = part.type;\n if (type === 'string') {\n return (\n <span\n key={key}\n className={style.textPart}\n // eslint-disable-next-line react/no-danger\n dangerouslySetInnerHTML={{__html: part.value}}\n />\n );\n }\n if (type === 'answerField') {\n const field = find({name: part.value}, answers);\n if (!field) return null;\n const {type: fieldType, ...fieldProps} = field;\n const fieldView =\n fieldType === 'text' ? (\n <FreeText {...fieldProps} className={style.text} />\n ) : (\n <DropDown {...fieldProps} theme=\"player\" />\n );\n\n return (\n <div className={style.answerType} key={part.value}>\n {fieldView}\n </div>\n );\n }\n }, totalTemplate);\n\n return (\n <div data-name=\"template-wrapper\" className={style.wrapper}>\n {templateCompose}\n </div>\n );\n};\n\nconst TextPropTypes = {\n ...DropDown.propTypes,\n type: PropTypes.string\n};\n\nTemplate.propTypes = {\n template: PropTypes.string,\n answers: PropTypes.arrayOf(\n PropTypes.oneOfType([PropTypes.shape(DropDown.propTypes), PropTypes.shape(TextPropTypes)])\n )\n};\n\nexport default Template;\n"],"mappings":";;;;;;;;AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,OAAOC,SAAP,MAAsB,YAAtB;AAEA,OAAOC,mBAAP,MAAgC,qCAAhC;AACA,OAAOC,QAAP,MAAqB,cAArB;AACA,OAAOC,QAAP,MAAqB,cAArB;AACA,OAAOC,KAAP,MAAkB,aAAlB;;AAEA,MAAMC,QAAQ,GAAG,CAAC;EAACC,QAAD;EAAWC;AAAX,CAAD,KAAyB;EACxC,MAAMC,aAAa,GAAGP,mBAAmB,CAACK,QAAD,CAAzC;;EACA,MAAMG,eAAe,GAAG,KAAIC,OAAJ,CAAY;IAACC,GAAG,EAAE;EAAN,CAAZ,EAA0B,CAACC,IAAD,EAAOC,GAAP,KAAe;IAC/D,MAAMC,IAAI,GAAGF,IAAI,CAACE,IAAlB;;IACA,IAAIA,IAAI,KAAK,QAAb,EAAuB;MACrB,oBACE;QACE,GAAG,EAAED,GADP;QAEE,SA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B;AAOA,eAAerB,QAAf"}
1
+ {"version":3,"file":"index.js","names":["React","PropTypes","parseTemplateString","DropDown","FreeText","style","Template","template","answers","groupAriaLabel","totalTemplate","templateCompose","convert","cap","part","key","type","textPart","__html","value","field","name","fieldType","fieldProps","fieldView","text","answerType","wrapper","TextPropTypes","propTypes","string","arrayOf","oneOfType","shape"],"sources":["../../../../src/molecule/questions/template/index.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport {map, find} from 'lodash/fp';\nimport parseTemplateString from '../../../util/parse-template-string';\nimport DropDown from '../drop-down';\nimport FreeText from '../free-text';\nimport style from './style.css';\n\nconst Template = ({template, answers, groupAriaLabel}) => {\n const totalTemplate = parseTemplateString(template);\n const templateCompose = map.convert({cap: false})((part, key) => {\n const type = part.type;\n if (type === 'string') {\n return (\n <span\n key={key}\n className={style.textPart}\n // eslint-disable-next-line react/no-danger\n dangerouslySetInnerHTML={{__html: part.value}}\n />\n );\n }\n if (type === 'answerField') {\n const field = find({name: part.value}, answers);\n if (!field) return null;\n const {type: fieldType, ...fieldProps} = field;\n const fieldView =\n fieldType === 'text' ? (\n <FreeText {...fieldProps} className={style.text} />\n ) : (\n <DropDown {...fieldProps} theme=\"player\" />\n );\n\n return (\n <div className={style.answerType} key={part.value}>\n {fieldView}\n </div>\n );\n }\n }, totalTemplate);\n\n return (\n <form>\n <div\n data-name=\"template-wrapper\"\n className={style.wrapper}\n role=\"group\"\n aria-label={groupAriaLabel}\n >\n {templateCompose}\n </div>\n </form>\n );\n};\n\nconst TextPropTypes = {\n ...DropDown.propTypes,\n type: PropTypes.string\n};\n\nTemplate.propTypes = {\n template: PropTypes.string,\n answers: PropTypes.arrayOf(\n PropTypes.oneOfType([PropTypes.shape(DropDown.propTypes), PropTypes.shape(TextPropTypes)])\n ),\n groupAriaLabel: PropTypes.string\n};\n\nexport default Template;\n"],"mappings":";;;;;;;;AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,OAAOC,SAAP,MAAsB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,EA6BrBd,aA7BqB,CAAxB;;EA+BA,oBACE,+CACE;IACE,aAAU,kBADZ;IAEE,SAAS,EAAEL,KAAK,CAACsB,OAFnB;IAGE,IAAI,EAAC,OAHP;IAIE,cAAYlB;EAJd,GAMGE,eANH,CADF,CADF;AAYD,CA7CD;;AA+CA,MAAMiB,aAAN,wDACKzB,QAAQ,CAAC0B,SADd;EAEEb,IAAI,EAAEf,SAAS,CAAC6B;AAFlB;AAKAxB,QAAQ,CAACuB,SAAT,2CAAqB;EACnBtB,QAAQ,EAAEN,SAAS,CAAC6B,MADD;EAEnBtB,OAAO,EAAEP,SAAS,CAAC8B,OAAV,CACP9B,SAAS,CAAC+B,SAAV,CAAoB,CAAC/B,SAAS,CAACgC,KAAV,CAAgB9B,QAAQ,CAAC0B,SAAzB,CAAD,EAAsC5B,SAAS,CAACgC,KAAV,CAAgBL,aAAhB,CAAtC,CAApB,CADO,CAFU;EAKnBnB,cAAc,EAAER,SAAS,CAAC6B;AALP,CAArB;AAQA,eAAexB,QAAf"}
@@ -54,6 +54,15 @@ declare namespace SetupSlide {
54
54
  selected: PropTypes.Requireable<boolean>;
55
55
  validOption: PropTypes.Requireable<boolean>;
56
56
  }> | null | undefined)[]>;
57
+ optgroups: PropTypes.Requireable<(PropTypes.InferProps<{
58
+ label: PropTypes.Validator<string>;
59
+ options: PropTypes.Requireable<(PropTypes.InferProps<{
60
+ name: PropTypes.Validator<string>;
61
+ value: PropTypes.Requireable<NonNullable<string | number | null | undefined>>;
62
+ selected: PropTypes.Requireable<boolean>;
63
+ validOption: PropTypes.Requireable<boolean>;
64
+ }> | null | undefined)[]>;
65
+ }> | null | undefined)[]>;
57
66
  modified: PropTypes.Requireable<boolean>;
58
67
  error: PropTypes.Requireable<boolean>;
59
68
  'aria-label': PropTypes.Requireable<string>;
@@ -67,6 +67,15 @@ declare namespace SetupSlider {
67
67
  selected: PropTypes.Requireable<boolean>;
68
68
  validOption: PropTypes.Requireable<boolean>;
69
69
  }> | null | undefined)[]>;
70
+ optgroups: PropTypes.Requireable<(PropTypes.InferProps<{
71
+ label: PropTypes.Validator<string>;
72
+ options: PropTypes.Requireable<(PropTypes.InferProps<{
73
+ name: PropTypes.Validator<string>;
74
+ value: PropTypes.Requireable<NonNullable<string | number | null | undefined>>;
75
+ selected: PropTypes.Requireable<boolean>;
76
+ validOption: PropTypes.Requireable<boolean>;
77
+ }> | null | undefined)[]>;
78
+ }> | null | undefined)[]>;
70
79
  modified: PropTypes.Requireable<boolean>;
71
80
  error: PropTypes.Requireable<boolean>;
72
81
  'aria-label': PropTypes.Requireable<string>;
@@ -126,6 +126,15 @@ declare namespace BrandForm {
126
126
  selected: PropTypes.Requireable<boolean>;
127
127
  validOption: PropTypes.Requireable<boolean>;
128
128
  }> | null | undefined)[]>;
129
+ optgroups: PropTypes.Requireable<(PropTypes.InferProps<{
130
+ label: PropTypes.Validator<string>;
131
+ options: PropTypes.Requireable<(PropTypes.InferProps<{
132
+ name: PropTypes.Validator<string>;
133
+ value: PropTypes.Requireable<NonNullable<string | number | null | undefined>>;
134
+ selected: PropTypes.Requireable<boolean>;
135
+ validOption: PropTypes.Requireable<boolean>;
136
+ }> | null | undefined)[]>;
137
+ }> | null | undefined)[]>;
129
138
  modified: PropTypes.Requireable<boolean>;
130
139
  error: PropTypes.Requireable<boolean>;
131
140
  'aria-label': PropTypes.Requireable<string>;
@@ -230,6 +239,15 @@ declare namespace BrandForm {
230
239
  selected: PropTypes.Requireable<boolean>;
231
240
  validOption: PropTypes.Requireable<boolean>;
232
241
  }> | null | undefined)[]>;
242
+ optgroups: PropTypes.Requireable<(PropTypes.InferProps<{
243
+ label: PropTypes.Validator<string>;
244
+ options: PropTypes.Requireable<(PropTypes.InferProps<{
245
+ name: PropTypes.Validator<string>;
246
+ value: PropTypes.Requireable<NonNullable<string | number | null | undefined>>;
247
+ selected: PropTypes.Requireable<boolean>;
248
+ validOption: PropTypes.Requireable<boolean>;
249
+ }> | null | undefined)[]>;
250
+ }> | null | undefined)[]>;
233
251
  modified: PropTypes.Requireable<boolean>;
234
252
  error: PropTypes.Requireable<boolean>;
235
253
  'aria-label': PropTypes.Requireable<string>;
@@ -19,6 +19,7 @@ declare namespace UserPreferences {
19
19
  requiredSelection: PropTypes.Requireable<boolean>;
20
20
  }> | null | undefined)[]>;
21
21
  const moreInfoAriaLabel: PropTypes.Requireable<string>;
22
+ const groupAriaLabel: PropTypes.Requireable<string>;
22
23
  }
23
24
  }
24
25
  import PropTypes from "prop-types";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/organism/user-preferences/index.js"],"names":[],"mappings":";AAoCA,0DAaC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/organism/user-preferences/index.js"],"names":[],"mappings":";AAoCA,0DAeC"}
@@ -46,19 +46,23 @@ Settings.propTypes = process.env.NODE_ENV !== "production" ? _extends({}, InputS
46
46
  const UserPreferences = props => {
47
47
  const {
48
48
  preferences = [],
49
- moreInfoAriaLabel
49
+ moreInfoAriaLabel,
50
+ groupAriaLabel
50
51
  } = props;
51
- return /*#__PURE__*/React.createElement("div", {
52
- className: style.preferences
52
+ return /*#__PURE__*/React.createElement("form", null, /*#__PURE__*/React.createElement("div", {
53
+ className: style.preferences,
54
+ role: "group",
55
+ "aria-label": groupAriaLabel
53
56
  }, _map(settings => /*#__PURE__*/React.createElement(Settings, _extends({}, settings, {
54
57
  key: settings.label,
55
58
  moreInfoAriaLabel: moreInfoAriaLabel
56
- })), preferences));
59
+ })), preferences)));
57
60
  };
58
61
 
59
62
  UserPreferences.propTypes = process.env.NODE_ENV !== "production" ? {
60
63
  preferences: PropTypes.arrayOf(PropTypes.shape(Settings.propTypes)),
61
- moreInfoAriaLabel: PropTypes.string
64
+ moreInfoAriaLabel: PropTypes.string,
65
+ groupAriaLabel: PropTypes.string
62
66
  } : {};
63
67
  export default UserPreferences;
64
68
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["React","PropTypes","NovaCompositionCoorpacademyInformationIcon","InfoIcon","InputSwitch","style","Settings","props","label","description","moreInfoAriaLabel","settings","infoIconWrapper","infoIcon","showToolTip","descriptionLabel","propTypes","string","isRequired","UserPreferences","preferences","arrayOf","shape"],"sources":["../../../src/organism/user-preferences/index.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport {map, isEmpty} from 'lodash/fp';\nimport {NovaCompositionCoorpacademyInformationIcon as InfoIcon} from '@coorpacademy/nova-icons';\nimport InputSwitch from '../../atom/input-switch';\nimport style from './style.css';\n\nconst Settings = props => {\n const {label, description, moreInfoAriaLabel, ...settings} = props;\n return (\n <div className={style.settings}>\n <InputSwitch {...settings} />\n <span className={style.label}>{label}</span>\n {isEmpty(description) ? null : (\n <div className={style.infoIconWrapper}>\n <InfoIcon\n height={16}\n width={16}\n className={style.infoIcon}\n aria-label={moreInfoAriaLabel}\n />\n <div className={style.showToolTip}>\n <div className={style.descriptionLabel}>{description}</div>\n </div>\n </div>\n )}\n </div>\n );\n};\n\nSettings.propTypes = {\n ...InputSwitch.propTypes,\n label: PropTypes.string.isRequired,\n description: PropTypes.string\n};\n\nconst UserPreferences = props => {\n const {preferences = [], moreInfoAriaLabel} = props;\n\n return (\n <div className={style.preferences}>\n {map(\n settings => (\n <Settings {...settings} key={settings.label} moreInfoAriaLabel={moreInfoAriaLabel} />\n ),\n preferences\n )}\n </div>\n );\n};\n\nUserPreferences.propTypes = {\n preferences: PropTypes.arrayOf(PropTypes.shape(Settings.propTypes)),\n moreInfoAriaLabel: PropTypes.string\n};\n\nexport default UserPreferences;\n"],"mappings":";;;;;;;;AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,OAAOC,SAAP,MAAsB,YAAtB;AAEA,SAAQC,0CAA0C,IAAIC,QAAtD,QAAqE,0BAArE;AACA,OAAOC,WAAP,MAAwB,yBAAxB;AACA,OAAOC,KAAP,MAAkB,aAAlB;;AAEA,MAAMC,QAAQ,G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B,CAAlB,CADa;EAE1BN,iBAAiB,EAAET,SAAS,CAACgB;AAFH,CAA5B;AAKA,eAAeE,eAAf"}
1
+ {"version":3,"file":"index.js","names":["React","PropTypes","NovaCompositionCoorpacademyInformationIcon","InfoIcon","InputSwitch","style","Settings","props","label","description","moreInfoAriaLabel","settings","infoIconWrapper","infoIcon","showToolTip","descriptionLabel","propTypes","string","isRequired","UserPreferences","preferences","groupAriaLabel","arrayOf","shape"],"sources":["../../../src/organism/user-preferences/index.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport {map, isEmpty} from 'lodash/fp';\nimport {NovaCompositionCoorpacademyInformationIcon as InfoIcon} from '@coorpacademy/nova-icons';\nimport InputSwitch from '../../atom/input-switch';\nimport style from './style.css';\n\nconst Settings = props => {\n const {label, description, moreInfoAriaLabel, ...settings} = props;\n return (\n <div className={style.settings}>\n <InputSwitch {...settings} />\n <span className={style.label}>{label}</span>\n {isEmpty(description) ? null : (\n <div className={style.infoIconWrapper}>\n <InfoIcon\n height={16}\n width={16}\n className={style.infoIcon}\n aria-label={moreInfoAriaLabel}\n />\n <div className={style.showToolTip}>\n <div className={style.descriptionLabel}>{description}</div>\n </div>\n </div>\n )}\n </div>\n );\n};\n\nSettings.propTypes = {\n ...InputSwitch.propTypes,\n label: PropTypes.string.isRequired,\n description: PropTypes.string\n};\n\nconst UserPreferences = props => {\n const {preferences = [], moreInfoAriaLabel, groupAriaLabel} = props;\n\n return (\n <form>\n <div className={style.preferences} role=\"group\" aria-label={groupAriaLabel}>\n {map(\n settings => (\n <Settings {...settings} key={settings.label} moreInfoAriaLabel={moreInfoAriaLabel} />\n ),\n preferences\n )}\n </div>\n </form>\n );\n};\n\nUserPreferences.propTypes = {\n preferences: PropTypes.arrayOf(PropTypes.shape(Settings.propTypes)),\n moreInfoAriaLabel: PropTypes.string,\n groupAriaLabel: PropTypes.string\n};\n\nexport default UserPreferences;\n"],"mappings":";;;;;;;;AAAA,OAAOA,KAAP,MAAkB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QAAd;IAAwB,GAAG,EAAEA,QAAQ,CAACH,KAAtC;IAA6C,iBAAiB,EAAEE;EAAhE,GAFH,EAICU,WAJD,CADH,CADF,CADF;AAYD,CAfD;;AAiBAD,eAAe,CAACH,SAAhB,2CAA4B;EAC1BI,WAAW,EAAEnB,SAAS,CAACqB,OAAV,CAAkBrB,SAAS,CAACsB,KAAV,CAAgBjB,QAAQ,CAACU,SAAzB,CAAlB,CADa;EAE1BN,iBAAiB,EAAET,SAAS,CAACgB,MAFH;EAG1BI,cAAc,EAAEpB,SAAS,CAACgB;AAHA,CAA5B;AAMA,eAAeE,eAAf"}
@@ -143,6 +143,15 @@ declare namespace WizardContents {
143
143
  selected: PropTypes.Requireable<boolean>;
144
144
  validOption: PropTypes.Requireable<boolean>;
145
145
  }> | null | undefined)[]>;
146
+ optgroups: PropTypes.Requireable<(PropTypes.InferProps<{
147
+ label: PropTypes.Validator<string>;
148
+ options: PropTypes.Requireable<(PropTypes.InferProps<{
149
+ name: PropTypes.Validator<string>;
150
+ value: PropTypes.Requireable<NonNullable<string | number | null | undefined>>;
151
+ selected: PropTypes.Requireable<boolean>;
152
+ validOption: PropTypes.Requireable<boolean>;
153
+ }> | null | undefined)[]>;
154
+ }> | null | undefined)[]>;
146
155
  modified: PropTypes.Requireable<boolean>;
147
156
  error: PropTypes.Requireable<boolean>;
148
157
  'aria-label': PropTypes.Requireable<string>;
@@ -247,6 +256,15 @@ declare namespace WizardContents {
247
256
  selected: PropTypes.Requireable<boolean>;
248
257
  validOption: PropTypes.Requireable<boolean>;
249
258
  }> | null | undefined)[]>;
259
+ optgroups: PropTypes.Requireable<(PropTypes.InferProps<{
260
+ label: PropTypes.Validator<string>;
261
+ options: PropTypes.Requireable<(PropTypes.InferProps<{
262
+ name: PropTypes.Validator<string>;
263
+ value: PropTypes.Requireable<NonNullable<string | number | null | undefined>>;
264
+ selected: PropTypes.Requireable<boolean>;
265
+ validOption: PropTypes.Requireable<boolean>;
266
+ }> | null | undefined)[]>;
267
+ }> | null | undefined)[]>;
250
268
  modified: PropTypes.Requireable<boolean>;
251
269
  error: PropTypes.Requireable<boolean>;
252
270
  'aria-label': PropTypes.Requireable<string>;
@@ -228,6 +228,15 @@ declare namespace BrandUpdate {
228
228
  selected: PropTypes.Requireable<boolean>;
229
229
  validOption: PropTypes.Requireable<boolean>;
230
230
  }> | null | undefined)[]>;
231
+ optgroups: PropTypes.Requireable<(PropTypes.InferProps<{
232
+ label: PropTypes.Validator<string>;
233
+ options: PropTypes.Requireable<(PropTypes.InferProps<{
234
+ name: PropTypes.Validator<string>;
235
+ value: PropTypes.Requireable<NonNullable<string | number | null | undefined>>;
236
+ selected: PropTypes.Requireable<boolean>;
237
+ validOption: PropTypes.Requireable<boolean>;
238
+ }> | null | undefined)[]>;
239
+ }> | null | undefined)[]>;
231
240
  modified: PropTypes.Requireable<boolean>;
232
241
  error: PropTypes.Requireable<boolean>;
233
242
  'aria-label': PropTypes.Requireable<string>;
@@ -332,6 +341,15 @@ declare namespace BrandUpdate {
332
341
  selected: PropTypes.Requireable<boolean>;
333
342
  validOption: PropTypes.Requireable<boolean>;
334
343
  }> | null | undefined)[]>;
344
+ optgroups: PropTypes.Requireable<(PropTypes.InferProps<{
345
+ label: PropTypes.Validator<string>;
346
+ options: PropTypes.Requireable<(PropTypes.InferProps<{
347
+ name: PropTypes.Validator<string>;
348
+ value: PropTypes.Requireable<NonNullable<string | number | null | undefined>>;
349
+ selected: PropTypes.Requireable<boolean>;
350
+ validOption: PropTypes.Requireable<boolean>;
351
+ }> | null | undefined)[]>;
352
+ }> | null | undefined)[]>;
335
353
  modified: PropTypes.Requireable<boolean>;
336
354
  error: PropTypes.Requireable<boolean>;
337
355
  'aria-label': PropTypes.Requireable<string>;
@@ -851,6 +869,15 @@ declare namespace BrandUpdate {
851
869
  selected: PropTypes.Requireable<boolean>;
852
870
  validOption: PropTypes.Requireable<boolean>;
853
871
  }> | null | undefined)[]>;
872
+ optgroups: PropTypes.Requireable<(PropTypes.InferProps<{
873
+ label: PropTypes.Validator<string>;
874
+ options: PropTypes.Requireable<(PropTypes.InferProps<{
875
+ name: PropTypes.Validator<string>;
876
+ value: PropTypes.Requireable<NonNullable<string | number | null | undefined>>;
877
+ selected: PropTypes.Requireable<boolean>;
878
+ validOption: PropTypes.Requireable<boolean>;
879
+ }> | null | undefined)[]>;
880
+ }> | null | undefined)[]>;
854
881
  modified: PropTypes.Requireable<boolean>;
855
882
  error: PropTypes.Requireable<boolean>;
856
883
  'aria-label': PropTypes.Requireable<string>;
@@ -955,6 +982,15 @@ declare namespace BrandUpdate {
955
982
  selected: PropTypes.Requireable<boolean>;
956
983
  validOption: PropTypes.Requireable<boolean>;
957
984
  }> | null | undefined)[]>;
985
+ optgroups: PropTypes.Requireable<(PropTypes.InferProps<{
986
+ label: PropTypes.Validator<string>;
987
+ options: PropTypes.Requireable<(PropTypes.InferProps<{
988
+ name: PropTypes.Validator<string>;
989
+ value: PropTypes.Requireable<NonNullable<string | number | null | undefined>>;
990
+ selected: PropTypes.Requireable<boolean>;
991
+ validOption: PropTypes.Requireable<boolean>;
992
+ }> | null | undefined)[]>;
993
+ }> | null | undefined)[]>;
958
994
  modified: PropTypes.Requireable<boolean>;
959
995
  error: PropTypes.Requireable<boolean>;
960
996
  'aria-label': PropTypes.Requireable<string>;
@@ -55,6 +55,15 @@ declare namespace SearchPage {
55
55
  selected: PropTypes.Requireable<boolean>;
56
56
  validOption: PropTypes.Requireable<boolean>;
57
57
  }> | null | undefined)[]>;
58
+ optgroups: PropTypes.Requireable<(PropTypes.InferProps<{
59
+ label: PropTypes.Validator<string>;
60
+ options: PropTypes.Requireable<(PropTypes.InferProps<{
61
+ name: PropTypes.Validator<string>;
62
+ value: PropTypes.Requireable<NonNullable<string | number | null | undefined>>;
63
+ selected: PropTypes.Requireable<boolean>;
64
+ validOption: PropTypes.Requireable<boolean>;
65
+ }> | null | undefined)[]>;
66
+ }> | null | undefined)[]>;
58
67
  modified: PropTypes.Requireable<boolean>;
59
68
  error: PropTypes.Requireable<boolean>;
60
69
  'aria-label': PropTypes.Requireable<string>;
@@ -64,6 +73,7 @@ declare namespace SearchPage {
64
73
  onToggleSorts: PropTypes.Requireable<(...args: any[]) => any>;
65
74
  moreSortAriaLabel: PropTypes.Requireable<string>;
66
75
  moreFilterAriaLabel: PropTypes.Requireable<string>;
76
+ filterGroupAriaLabel: PropTypes.Requireable<string>;
67
77
  }>>;
68
78
  const cards: PropTypes.Requireable<PropTypes.InferProps<{
69
79
  list: PropTypes.Requireable<(PropTypes.InferProps<any> | null | undefined)[]>;
@@ -100,6 +110,7 @@ declare namespace SearchPage {
100
110
  }>>;
101
111
  const moreSortAriaLabel: PropTypes.Requireable<string>;
102
112
  const moreFilterAriaLabel: PropTypes.Requireable<string>;
113
+ const filterGroupAriaLabel: PropTypes.Requireable<string>;
103
114
  }
104
115
  }
105
116
  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"}
@@ -21,7 +21,8 @@ const SearchPage = (props, context) => {
21
21
  clearFilters,
22
22
  recommendations,
23
23
  moreSortAriaLabel,
24
- moreFilterAriaLabel
24
+ moreFilterAriaLabel,
25
+ filterGroupAriaLabel
25
26
  } = props;
26
27
  const {
27
28
  skin
@@ -44,7 +45,8 @@ const SearchPage = (props, context) => {
44
45
  }))), recommendationsView) : /*#__PURE__*/React.createElement(CardsGrid, cards);
45
46
  return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Filters, _extends({}, searchFilters, {
46
47
  moreSortAriaLabel: moreSortAriaLabel,
47
- moreFilterAriaLabel: moreFilterAriaLabel
48
+ moreFilterAriaLabel: moreFilterAriaLabel,
49
+ filterGroupAriaLabel: filterGroupAriaLabel
48
50
  })), /*#__PURE__*/React.createElement("div", {
49
51
  "data-name": "searchResult",
50
52
  className: style.cardsWrapper
@@ -65,7 +67,8 @@ SearchPage.propTypes = process.env.NODE_ENV !== "production" ? {
65
67
  clearFilters: PropTypes.shape(Button.propTypes),
66
68
  recommendations: PropTypes.shape(CardsList.propTypes),
67
69
  moreSortAriaLabel: PropTypes.string,
68
- moreFilterAriaLabel: PropTypes.string
70
+ moreFilterAriaLabel: PropTypes.string,
71
+ filterGroupAriaLabel: PropTypes.string
69
72
  } : {};
70
73
  export default SearchPage;
71
74
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["React","PropTypes","Provider","Button","Filters","CardsGrid","CardsList","style","SearchPage","props","context","title","searchFilters","cards","noresultsfound","clearFilters","recommendations","moreSortAriaLabel","moreFilterAriaLabel","skin","defaultColor","recommendationsView","cardsView","list","noresults","noresultstxt","clear","background","cardsWrapper","contextTypes","childContextTypes","propTypes","string","shape"],"sources":["../../../../src/template/common/search-page/index.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport {getOr, isEmpty} from 'lodash/fp';\nimport Provider from '../../../atom/provider';\nimport Button from '../../../atom/button';\nimport Filters from '../../../molecule/filters';\nimport CardsGrid from '../../../organism/cards-grid';\nimport CardsList from '../../../molecule/dashboard/cards-list';\nimport style from './style.css';\n\nconst SearchPage = (props, context) => {\n const {\n title,\n searchFilters,\n cards,\n noresultsfound,\n clearFilters,\n recommendations,\n moreSortAriaLabel,\n moreFilterAriaLabel\n } = 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,OAAOA,KAAP,MAAkB,OAAlB;AACA,OAAOC,SAAP,MAAsB,YAAtB;AAEA,OAAOC,QAAP,MAAqB,wBAArB;AACA,OAAOC,MAAP,MAAmB,sBAAnB;AACA,OAAOC,OAAP,MAAoB,2BAApB;AACA,OAAOC,SAAP,MAAsB,8BAAtB;AACA,OAAOC,SAAP,MAAsB,wCAAtB;AACA,OAAOC,KAAP,MAAkB,aAAlB;;AAEA,MAAMC,UAAU,GAAG,CAACC,KAAD,EAAQC,OAAR,KAAoB;EACrC,MAAM;IACJC,KADI;IAEJC,aAFI;IAGJC,KAHI;IAIJC,cAJI;IAKJC,YALI;IAMJC,eANI;IAOJC,iBAPI;IAQJC;EARI,IASFT,KATJ;EAWA,MAAM;IAACU;EAAD,IAAST,OAAf;;EACA,MAAMU,YAAY,GAAG,OAAM,SAAN,EAAiB,gBAAjB,EAAmCD,IAAnC,CAArB;;EAEA,MAAME,mBAAmB,GAAG,SAAQL,eAAR,IAA2B,IAA3B,gBAAkC,oBAAC,SAAD,EAAeA,eAAf,CAA9D;EAEA,MAAMM,SAAS,GAAG,SA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,CAAC+B,MAPR;EAQrBd,mBAAmB,EAAEjB,SAAS,CAAC+B;AARV,CAAvB;AAWA,eAAexB,UAAf"}
1
+ {"version":3,"file":"index.js","names":["React","PropTypes","Provider","Button","Filters","CardsGrid","CardsList","style","SearchPage","props","context","title","searchFilters","cards","noresultsfound","clearFilters","recommendations","moreSortAriaLabel","moreFilterAriaLabel","filterGroupAriaLabel","skin","defaultColor","recommendationsView","cardsView","list","noresults","noresultstxt","clear","background","cardsWrapper","contextTypes","childContextTypes","propTypes","string","shape"],"sources":["../../../../src/template/common/search-page/index.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport {getOr, isEmpty} from 'lodash/fp';\nimport Provider from '../../../atom/provider';\nimport Button from '../../../atom/button';\nimport Filters from '../../../molecule/filters';\nimport CardsGrid from '../../../organism/cards-grid';\nimport CardsList from '../../../molecule/dashboard/cards-list';\nimport style from './style.css';\n\nconst SearchPage = (props, context) => {\n const {\n title,\n searchFilters,\n cards,\n noresultsfound,\n clearFilters,\n recommendations,\n moreSortAriaLabel,\n moreFilterAriaLabel,\n filterGroupAriaLabel\n } = props;\n\n const {skin} = context;\n const defaultColor = getOr('#00B0FF', 'common.primary', skin);\n\n const recommendationsView = isEmpty(recommendations) ? null : <CardsList {...recommendations} />;\n\n const cardsView = isEmpty(cards.list) ? (\n <div>\n <div className={style.noresults}>\n <div className={style.noresultstxt}>{noresultsfound}</div>\n <Button\n {...clearFilters}\n data-name=\"searchPageClear\"\n className={style.clear}\n style={{background: defaultColor}}\n type=\"link\"\n />\n </div>\n {recommendationsView}\n </div>\n ) : (\n <CardsGrid {...cards} />\n );\n\n return (\n <div>\n <Filters\n {...searchFilters}\n moreSortAriaLabel={moreSortAriaLabel}\n moreFilterAriaLabel={moreFilterAriaLabel}\n filterGroupAriaLabel={filterGroupAriaLabel}\n />\n <div data-name=\"searchResult\" className={style.cardsWrapper}>\n <div className={style.title} role=\"status\">\n {title}\n </div>\n {cardsView}\n </div>\n </div>\n );\n};\n\nSearchPage.contextTypes = {\n skin: Provider.childContextTypes.skin\n};\n\nSearchPage.propTypes = {\n noresultsfound: PropTypes.string,\n title: PropTypes.string,\n searchFilters: PropTypes.shape(Filters.propTypes),\n cards: PropTypes.shape(CardsGrid.propTypes),\n clearFilters: PropTypes.shape(Button.propTypes),\n recommendations: PropTypes.shape(CardsList.propTypes),\n moreSortAriaLabel: PropTypes.string,\n moreFilterAriaLabel: PropTypes.string,\n filterGroupAriaLabel: PropTypes.string\n};\n\nexport default SearchPage;\n"],"mappings":";;;;;AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,OAAOC,SAAP,MAAsB,YAAtB;AAEA,OAAOC,QAAP,MAAqB,wBAArB;AACA,OAAOC,MAAP,MAAmB,sBAAnB;AACA,OAAOC,OAAP,MAAoB,2BAApB;AACA,OAAOC,SAAP,MAAsB,8BAAtB;AACA,OAAOC,SAAP,MAAsB,wCAAtB;AACA,OAAOC,KAAP,MAAkB,aAAlB;;AAEA,MAAMC,UAAU,GAAG,CAACC,KAAD,EAAQC,OAAR,KAAoB;EACrC,MAAM;IACJC,KADI;IAEJC,aAFI;IAGJC,KAHI;IAIJC,cAJI;IAKJC,YALI;IAMJC,eANI;IAOJC,iBAPI;IAQJC,mBARI;IASJC;EATI,IAUFV,KAVJ;EAYA,MAAM;IAACW;EAAD,IAASV,OAAf;;EACA,MAAMW,YAAY,GAAG,OAAM,SAAN,EAAiB,gBAAjB,EAAmCD,IAAnC,CAArB;;EAEA,MAAME,mBAAmB,GAAG,SAAQN,eAAR,IAA2B,IAA3B,gBAAkC,oBAAC,SAAD,EAAeA,eAAf,CAA9D;EAEA,MAAMO,SAAS,GAAG,SAAQV,KAAK,CAACW,IAAd,iBAChB,8CACE;IAAK,SAAS,EAAEjB,KAAK,CAACkB;EAAtB,gBACE;IAAK,SAAS,EAAElB,KAAK,CAACmB;EAAtB,GAAqCZ,cAArC,CADF,eAEE,oBAAC,MAAD,eACMC,YADN;IAEE,aAAU,iBAF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reference types="react" />
2
+ import { ColorValue } from 'react-native';
3
+ export declare type Props = {
4
+ color?: ColorValue;
5
+ height?: number;
6
+ readyToHide: boolean;
7
+ };
8
+ declare const Loader: (props: Props) => JSX.Element | null;
9
+ export default Loader;
10
+ //# sourceMappingURL=index.native.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.native.d.ts","sourceRoot":"","sources":["../../../src/atom/loader/index.native.tsx"],"names":[],"mappings":";AAEA,OAAO,EAA0C,UAAU,EAAC,MAAM,cAAc,CAAC;AAoCjF,oBAAY,KAAK,GAAG;IAClB,KAAK,CAAC,EAAE,UAAU,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,WAAW,EAAE,OAAO,CAAC;CACtB,CAAC;AAKF,QAAA,MAAM,MAAM,UAAW,KAAK,uBAqK3B,CAAC;AAEF,eAAe,MAAM,CAAC"}