@coorpacademy/components 11.40.13 → 11.40.14-alpha.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (129) hide show
  1. package/es/atom/checkbox-with-title/index.d.ts +24 -1
  2. package/es/atom/checkbox-with-title/index.d.ts.map +1 -1
  3. package/es/atom/checkbox-with-title/index.js +16 -2
  4. package/es/atom/checkbox-with-title/index.js.map +1 -1
  5. package/es/atom/chip/index.d.ts.map +1 -1
  6. package/es/atom/chip/index.js +4 -4
  7. package/es/atom/chip/index.js.map +1 -1
  8. package/es/atom/input-switch/index.d.ts +24 -1
  9. package/es/atom/input-switch/index.d.ts.map +1 -1
  10. package/es/atom/input-switch/index.js +16 -2
  11. package/es/atom/input-switch/index.js.map +1 -1
  12. package/es/atom/range/index.d.ts +33 -3
  13. package/es/atom/range/index.d.ts.map +1 -1
  14. package/es/atom/range/index.js +88 -20
  15. package/es/atom/range/index.js.map +1 -1
  16. package/es/atom/range/style.css +38 -0
  17. package/es/molecule/multi-filter-panel/index.d.ts +41 -0
  18. package/es/molecule/multi-filter-panel/index.d.ts.map +1 -1
  19. package/es/molecule/multi-filter-panel/index.js +28 -13
  20. package/es/molecule/multi-filter-panel/index.js.map +1 -1
  21. package/es/molecule/multi-filter-panel/prop-types.d.ts +31 -5
  22. package/es/molecule/multi-filter-panel/prop-types.d.ts.map +1 -1
  23. package/es/molecule/multi-filter-panel/prop-types.js +4 -0
  24. package/es/molecule/multi-filter-panel/prop-types.js.map +1 -1
  25. package/es/molecule/questions/question-range/index.d.ts +4 -1
  26. package/es/molecule/quick-filters/index.js +3 -1
  27. package/es/molecule/quick-filters/index.js.map +1 -1
  28. package/es/molecule/quick-filters/style.css +2 -0
  29. package/es/organism/content-skill-modal/index.d.ts +20 -0
  30. package/es/organism/content-skill-modal/index.d.ts.map +1 -1
  31. package/es/organism/content-skill-modal/types.d.ts +20 -0
  32. package/es/organism/content-skill-modal/types.d.ts.map +1 -1
  33. package/es/organism/filter-checkbox-and-search/index.d.ts +21 -0
  34. package/es/organism/filter-checkbox-and-search/index.d.ts.map +1 -1
  35. package/es/organism/filter-checkbox-and-search/index.js +13 -2
  36. package/es/organism/filter-checkbox-and-search/index.js.map +1 -1
  37. package/es/organism/filter-chip/index.d.ts +21 -0
  38. package/es/organism/filter-chip/index.d.ts.map +1 -1
  39. package/es/organism/filter-chip/index.js +14 -2
  40. package/es/organism/filter-chip/index.js.map +1 -1
  41. package/es/organism/filter-range/index.d.ts +28 -0
  42. package/es/organism/filter-range/index.d.ts.map +1 -0
  43. package/es/organism/filter-range/index.js +89 -0
  44. package/es/organism/filter-range/index.js.map +1 -0
  45. package/es/organism/filter-range/prop-types.d.ts +38 -0
  46. package/es/organism/filter-range/prop-types.d.ts.map +1 -0
  47. package/es/organism/filter-range/prop-types.js +20 -0
  48. package/es/organism/filter-range/prop-types.js.map +1 -0
  49. package/es/organism/filter-range/style.css +15 -0
  50. package/es/organism/filter-switch/index.d.ts +22 -0
  51. package/es/organism/filter-switch/index.d.ts.map +1 -1
  52. package/es/organism/filter-switch/index.js +18 -3
  53. package/es/organism/filter-switch/index.js.map +1 -1
  54. package/es/organism/filter-switch/prop-types.d.ts +2 -0
  55. package/es/organism/filter-switch/prop-types.d.ts.map +1 -1
  56. package/es/organism/filter-switch/prop-types.js +2 -1
  57. package/es/organism/filter-switch/prop-types.js.map +1 -1
  58. package/es/template/back-office/brand-update/index.d.ts +20 -0
  59. package/es/template/common/search-page/index.d.ts +36 -0
  60. package/es/template/common/search-page/index.d.ts.map +1 -1
  61. package/es/template/common/search-page/index.js +45 -6
  62. package/es/template/common/search-page/index.js.map +1 -1
  63. package/es/template/common/search-page/style.css +27 -1
  64. package/es/variables/colors.css +1 -0
  65. package/lib/atom/checkbox-with-title/index.d.ts +24 -1
  66. package/lib/atom/checkbox-with-title/index.d.ts.map +1 -1
  67. package/lib/atom/checkbox-with-title/index.js +16 -2
  68. package/lib/atom/checkbox-with-title/index.js.map +1 -1
  69. package/lib/atom/chip/index.d.ts.map +1 -1
  70. package/lib/atom/chip/index.js +4 -4
  71. package/lib/atom/chip/index.js.map +1 -1
  72. package/lib/atom/input-switch/index.d.ts +24 -1
  73. package/lib/atom/input-switch/index.d.ts.map +1 -1
  74. package/lib/atom/input-switch/index.js +16 -2
  75. package/lib/atom/input-switch/index.js.map +1 -1
  76. package/lib/atom/range/index.d.ts +33 -3
  77. package/lib/atom/range/index.d.ts.map +1 -1
  78. package/lib/atom/range/index.js +88 -20
  79. package/lib/atom/range/index.js.map +1 -1
  80. package/lib/atom/range/style.css +38 -0
  81. package/lib/molecule/multi-filter-panel/index.d.ts +41 -0
  82. package/lib/molecule/multi-filter-panel/index.d.ts.map +1 -1
  83. package/lib/molecule/multi-filter-panel/index.js +28 -13
  84. package/lib/molecule/multi-filter-panel/index.js.map +1 -1
  85. package/lib/molecule/multi-filter-panel/prop-types.d.ts +31 -5
  86. package/lib/molecule/multi-filter-panel/prop-types.d.ts.map +1 -1
  87. package/lib/molecule/multi-filter-panel/prop-types.js +4 -0
  88. package/lib/molecule/multi-filter-panel/prop-types.js.map +1 -1
  89. package/lib/molecule/questions/question-range/index.d.ts +4 -1
  90. package/lib/molecule/quick-filters/index.js +3 -1
  91. package/lib/molecule/quick-filters/index.js.map +1 -1
  92. package/lib/molecule/quick-filters/style.css +2 -0
  93. package/lib/organism/content-skill-modal/index.d.ts +20 -0
  94. package/lib/organism/content-skill-modal/index.d.ts.map +1 -1
  95. package/lib/organism/content-skill-modal/types.d.ts +20 -0
  96. package/lib/organism/content-skill-modal/types.d.ts.map +1 -1
  97. package/lib/organism/filter-checkbox-and-search/index.d.ts +21 -0
  98. package/lib/organism/filter-checkbox-and-search/index.d.ts.map +1 -1
  99. package/lib/organism/filter-checkbox-and-search/index.js +13 -2
  100. package/lib/organism/filter-checkbox-and-search/index.js.map +1 -1
  101. package/lib/organism/filter-chip/index.d.ts +21 -0
  102. package/lib/organism/filter-chip/index.d.ts.map +1 -1
  103. package/lib/organism/filter-chip/index.js +14 -2
  104. package/lib/organism/filter-chip/index.js.map +1 -1
  105. package/lib/organism/filter-range/index.d.ts +28 -0
  106. package/lib/organism/filter-range/index.d.ts.map +1 -0
  107. package/lib/organism/filter-range/index.js +96 -0
  108. package/lib/organism/filter-range/index.js.map +1 -0
  109. package/lib/organism/filter-range/prop-types.d.ts +38 -0
  110. package/lib/organism/filter-range/prop-types.d.ts.map +1 -0
  111. package/lib/organism/filter-range/prop-types.js +25 -0
  112. package/lib/organism/filter-range/prop-types.js.map +1 -0
  113. package/lib/organism/filter-range/style.css +15 -0
  114. package/lib/organism/filter-switch/index.d.ts +22 -0
  115. package/lib/organism/filter-switch/index.d.ts.map +1 -1
  116. package/lib/organism/filter-switch/index.js +18 -3
  117. package/lib/organism/filter-switch/index.js.map +1 -1
  118. package/lib/organism/filter-switch/prop-types.d.ts +2 -0
  119. package/lib/organism/filter-switch/prop-types.d.ts.map +1 -1
  120. package/lib/organism/filter-switch/prop-types.js +2 -1
  121. package/lib/organism/filter-switch/prop-types.js.map +1 -1
  122. package/lib/template/back-office/brand-update/index.d.ts +20 -0
  123. package/lib/template/common/search-page/index.d.ts +36 -0
  124. package/lib/template/common/search-page/index.d.ts.map +1 -1
  125. package/lib/template/common/search-page/index.js +45 -6
  126. package/lib/template/common/search-page/index.js.map +1 -1
  127. package/lib/template/common/search-page/style.css +27 -1
  128. package/lib/variables/colors.css +1 -0
  129. package/package.json +2 -2
@@ -1,8 +1,10 @@
1
1
  import _toString from "lodash/fp/toString";
2
+ import _getOr from "lodash/fp/getOr";
2
3
  import _size from "lodash/fp/size";
3
4
  import _pipe from "lodash/fp/pipe";
4
5
  import _filter from "lodash/fp/filter";
5
6
  import React from 'react';
7
+ import { convert } from 'css-color-function';
6
8
  import Title from '../../atom/title';
7
9
  import InputSwitch from '../../atom/input-switch';
8
10
  import Tag from '../../atom/tag';
@@ -12,6 +14,10 @@ import { COLORS } from '../../variables/colors';
12
14
  import propTypes from './prop-types';
13
15
  import style from './style.css';
14
16
  const FilterSwitch = (props, context) => {
17
+ const {
18
+ skin
19
+ } = context;
20
+ const primaryColor = _getOr(COLORS.cm_primary_blue, 'common.primary', skin);
15
21
  const {
16
22
  title,
17
23
  titleAriaLabel,
@@ -33,7 +39,11 @@ const FilterSwitch = (props, context) => {
33
39
  }), hasSelectedFilters ? /*#__PURE__*/React.createElement(Tag, {
34
40
  label: _toString(selectedFiltersCount),
35
41
  type: "info",
36
- size: "S"
42
+ size: "S",
43
+ customStyle: {
44
+ color: primaryColor,
45
+ backgroundColor: convert(`color(${primaryColor} lightness(92%))`)
46
+ }
37
47
  }) : null), hasSelectedFilters ? /*#__PURE__*/React.createElement("div", {
38
48
  className: style.buttonContainer
39
49
  }, /*#__PURE__*/React.createElement(ButtonLink, {
@@ -54,12 +64,16 @@ const FilterSwitch = (props, context) => {
54
64
  label,
55
65
  value,
56
66
  onChange,
57
- ariaLabel
67
+ ariaLabel,
68
+ id
58
69
  } = optionItem;
70
+ // Use provided id or generate fallback id
71
+ const switchId = id || `filter-switch-${label.toLowerCase().replace(/\s+/g, '-').replace(/[^a-z0-9-]/g, '')}`;
59
72
  return /*#__PURE__*/React.createElement("div", {
60
73
  key: label,
61
74
  className: style.switchOption
62
75
  }, /*#__PURE__*/React.createElement(InputSwitch, {
76
+ id: switchId,
63
77
  title: label,
64
78
  value: value,
65
79
  theme: 'newMooc',
@@ -70,7 +84,8 @@ const FilterSwitch = (props, context) => {
70
84
  };
71
85
  FilterSwitch.propTypes = process.env.NODE_ENV !== "production" ? propTypes : {};
72
86
  FilterSwitch.contextTypes = {
73
- translate: Provider.childContextTypes.translate
87
+ translate: Provider.childContextTypes.translate,
88
+ skin: Provider.childContextTypes.skin
74
89
  };
75
90
  export default FilterSwitch;
76
91
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["React","Title","InputSwitch","Tag","ButtonLink","Provider","GetTranslateFromContext","COLORS","propTypes","style","FilterSwitch","props","context","title","titleAriaLabel","onClear","options","selectedFiltersCount","_pipe","_filter","value","_size","hasSelectedFilters","translate","createElement","className","header","titleContainer","ariaLabel","label","_toString","type","size","buttonContainer","customStyle","fontWeight","padding","onClick","hoverColor","cm_grey_700","optionsContainer","map","optionItem","onChange","key","switchOption","theme","process","env","NODE_ENV","contextTypes","childContextTypes"],"sources":["../../../src/organism/filter-switch/index.tsx"],"sourcesContent":["import React from 'react';\nimport {filter, pipe, size, toString} from 'lodash/fp';\nimport Title from '../../atom/title';\nimport InputSwitch from '../../atom/input-switch';\nimport Tag from '../../atom/tag';\nimport ButtonLink from '../../atom/button-link';\nimport Provider, {GetTranslateFromContext} from '../../atom/provider';\nimport {WebContextValues} from '../../atom/provider/web-context';\nimport {COLORS} from '../../variables/colors';\nimport propTypes, {FilterSwitchProps} from './prop-types';\nimport style from './style.css';\n\nconst FilterSwitch = (props: FilterSwitchProps, context: WebContextValues) => {\n const {title, titleAriaLabel, onClear, options} = props;\n const selectedFiltersCount = pipe(filter({value: true}), size)(options);\n const hasSelectedFilters = selectedFiltersCount > 0;\n const translate = GetTranslateFromContext(context);\n\n return (\n <div>\n <div className={style.header}>\n <div className={style.titleContainer}>\n <Title title={title} ariaLabel={titleAriaLabel} />\n {hasSelectedFilters ? (\n <Tag label={toString(selectedFiltersCount)} type=\"info\" size=\"S\" />\n ) : null}\n </div>\n {hasSelectedFilters ? (\n <div className={style.buttonContainer}>\n <ButtonLink\n customStyle={{fontWeight: 'normal', padding: 0}}\n label={translate('clear')}\n type=\"text\"\n data-name=\"filter-chip-clear-button\"\n aria-label=\"filter chip clear button\"\n onClick={onClear}\n hoverColor={COLORS.cm_grey_700}\n />\n </div>\n ) : null}\n </div>\n <div className={style.optionsContainer}>\n {options.map(optionItem => {\n const {label, value, onChange, ariaLabel} = optionItem;\n return (\n <div key={label} className={style.switchOption}>\n <InputSwitch\n title={label}\n value={value}\n theme={'newMooc'}\n onChange={onChange}\n aria-label={ariaLabel}\n />\n </div>\n );\n })}\n </div>\n </div>\n );\n};\n\nFilterSwitch.propTypes = propTypes;\n\nFilterSwitch.contextTypes = {\n translate: Provider.childContextTypes.translate\n};\n\nexport default FilterSwitch;\n"],"mappings":";;;;AAAA,OAAOA,KAAK,MAAM,OAAO;AAEzB,OAAOC,KAAK,MAAM,kBAAkB;AACpC,OAAOC,WAAW,MAAM,yBAAyB;AACjD,OAAOC,GAAG,MAAM,gBAAgB;AAChC,OAAOC,UAAU,MAAM,wBAAwB;AAC/C,OAAOC,QAAQ,IAAGC,uBAAuB,QAAO,qBAAqB;AAErE,SAAQC,MAAM,QAAO,wBAAwB;AAC7C,OAAOC,SAAS,MAA2B,cAAc;AACzD,OAAOC,KAAK,MAAM,aAAa;AAE/B,MAAMC,YAAY,GAAGA,CAACC,KAAwB,EAAEC,OAAyB,KAAK;EAC5E,MAAM;IAACC,KAAK;IAAEC,cAAc;IAAEC,OAAO;IAAEC;EAAO,CAAC,GAAGL,KAAK;EACvD,MAAMM,oBAAoB,GAAGC,KAAA,CAAKC,OAAA,CAAO;IAACC,KAAK,EAAE;EAAI,CAAC,CAAC,EAAAC,KAAM,CAAC,CAACL,OAAO,CAAC;EACvE,MAAMM,kBAAkB,GAAGL,oBAAoB,GAAG,CAAC;EACnD,MAAMM,SAAS,GAAGjB,uBAAuB,CAACM,OAAO,CAAC;EAElD,oBACEZ,KAAA,CAAAwB,aAAA,2BACExB,KAAA,CAAAwB,aAAA;IAAKC,SAAS,EAAEhB,KAAK,CAACiB;EAAO,gBAC3B1B,KAAA,CAAAwB,aAAA;IAAKC,SAAS,EAAEhB,KAAK,CAACkB;EAAe,gBACnC3B,KAAA,CAAAwB,aAAA,CAACvB,KAAK;IAACY,KAAK,EAAEA,KAAM;IAACe,SAAS,EAAEd;EAAe,CAAE,CAAC,EACjDQ,kBAAkB,gBACjBtB,KAAA,CAAAwB,aAAA,CAACrB,GAAG;IAAC0B,KAAK,EAAEC,SAAA,CAASb,oBAAoB,CAAE;IAACc,IAAI,EAA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"version":3,"file":"index.js","names":["React","convert","Title","InputSwitch","Tag","ButtonLink","Provider","GetTranslateFromContext","COLORS","propTypes","style","FilterSwitch","props","context","skin","primaryColor","_getOr","cm_primary_blue","title","titleAriaLabel","onClear","options","selectedFiltersCount","_pipe","_filter","value","_size","hasSelectedFilters","translate","createElement","className","header","titleContainer","ariaLabel","label","_toString","type","size","customStyle","color","backgroundColor","buttonContainer","fontWeight","padding","onClick","hoverColor","cm_grey_700","optionsContainer","map","optionItem","onChange","id","switchId","toLowerCase","replace","key","switchOption","theme","process","env","NODE_ENV","contextTypes","childContextTypes"],"sources":["../../../src/organism/filter-switch/index.tsx"],"sourcesContent":["import React from 'react';\nimport {filter, pipe, size, getOr, toString} from 'lodash/fp';\nimport {convert} from 'css-color-function';\nimport Title from '../../atom/title';\nimport InputSwitch from '../../atom/input-switch';\nimport Tag from '../../atom/tag';\nimport ButtonLink from '../../atom/button-link';\nimport Provider, {GetTranslateFromContext} from '../../atom/provider';\nimport {WebContextValues} from '../../atom/provider/web-context';\nimport {COLORS} from '../../variables/colors';\nimport propTypes, {FilterSwitchProps} from './prop-types';\nimport style from './style.css';\n\nconst FilterSwitch = (props: FilterSwitchProps, context: WebContextValues) => {\n const {skin} = context;\n const primaryColor = getOr(COLORS.cm_primary_blue, 'common.primary', skin);\n const {title, titleAriaLabel, onClear, options} = props;\n const selectedFiltersCount = pipe(filter({value: true}), size)(options);\n const hasSelectedFilters = selectedFiltersCount > 0;\n const translate = GetTranslateFromContext(context);\n\n return (\n <div>\n <div className={style.header}>\n <div className={style.titleContainer}>\n <Title title={title} ariaLabel={titleAriaLabel} />\n {hasSelectedFilters ? (\n <Tag\n label={toString(selectedFiltersCount)}\n type=\"info\"\n size=\"S\"\n customStyle={{\n color: primaryColor,\n backgroundColor: convert(`color(${primaryColor} lightness(92%))`)\n }}\n />\n ) : null}\n </div>\n {hasSelectedFilters ? (\n <div className={style.buttonContainer}>\n <ButtonLink\n customStyle={{fontWeight: 'normal', padding: 0}}\n label={translate('clear')}\n type=\"text\"\n data-name=\"filter-chip-clear-button\"\n aria-label=\"filter chip clear button\"\n onClick={onClear}\n hoverColor={COLORS.cm_grey_700}\n />\n </div>\n ) : null}\n </div>\n <div className={style.optionsContainer}>\n {options.map(optionItem => {\n const {label, value, onChange, ariaLabel, id} = optionItem;\n // Use provided id or generate fallback id\n const switchId =\n id ||\n `filter-switch-${label\n .toLowerCase()\n .replace(/\\s+/g, '-')\n .replace(/[^a-z0-9-]/g, '')}`;\n return (\n <div key={label} className={style.switchOption}>\n <InputSwitch\n id={switchId}\n title={label}\n value={value}\n theme={'newMooc'}\n onChange={onChange}\n aria-label={ariaLabel}\n />\n </div>\n );\n })}\n </div>\n </div>\n );\n};\n\nFilterSwitch.propTypes = propTypes;\n\nFilterSwitch.contextTypes = {\n translate: Provider.childContextTypes.translate,\n skin: Provider.childContextTypes.skin\n};\n\nexport default FilterSwitch;\n"],"mappings":";;;;;AAAA,OAAOA,KAAK,MAAM,OAAO;AAEzB,SAAQC,OAAO,QAAO,oBAAoB;AAC1C,OAAOC,KAAK,MAAM,kBAAkB;AACpC,OAAOC,WAAW,MAAM,yBAAyB;AACjD,OAAOC,GAAG,MAAM,gBAAgB;AAChC,OAAOC,UAAU,MAAM,wBAAwB;AAC/C,OAAOC,QAAQ,IAAGC,uBAAuB,QAAO,qBAAqB;AAErE,SAAQC,MAAM,QAAO,wBAAwB;AAC7C,OAAOC,SAAS,MAA2B,cAAc;AACzD,OAAOC,KAAK,MAAM,aAAa;AAE/B,MAAMC,YAAY,GAAGA,CAACC,KAAwB,EAAEC,OAAyB,KAAK;EAC5E,MAAM;IAACC;EAAI,CAAC,GAAGD,OAAO;EACtB,MAAME,YAAY,GAAGC,MAAA,CAAMR,MAAM,CAACS,eAAe,EAAE,gBAAgB,EAAEH,IAAI,CAAC;EAC1E,MAAM;IAACI,KAAK;IAAEC,cAAc;IAAEC,OAAO;IAAEC;EAAO,CAAC,GAAGT,KAAK;EACvD,MAAMU,oBAA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AAA;IAAKC,SAAS,EAAEpB,KAAK,CAACqC;EAAiB,GACpC1B,OAAO,CAAC2B,GAAG,CAACC,UAAU,IAAI;IACzB,MAAM;MAACf,KAAK;MAAET,KAAK;MAAEyB,QAAQ;MAAEjB,SAAS;MAAEkB;IAAE,CAAC,GAAGF,UAAU;IAC1D;IACA,MAAMG,QAAQ,GACZD,EAAE,IACF,iBAAiBjB,KAAK,CACnBmB,WAAW,CAAC,CAAC,CACbC,OAAO,CAAC,MAAM,EAAE,GAAG,CAAC,CACpBA,OAAO,CAAC,aAAa,EAAE,EAAE,CAAC,EAAE;IACjC,oBACEtD,KAAA,CAAA6B,aAAA;MAAK0B,GAAG,EAAErB,KAAM;MAACJ,SAAS,EAAEpB,KAAK,CAAC8C;IAAa,gBAC7CxD,KAAA,CAAA6B,aAAA,CAAC1B,WAAW;MACVgD,EAAE,EAAEC,QAAS;MACblC,KAAK,EAAEgB,KAAM;MACbT,KAAK,EAAEA,KAAM;MACbgC,KAAK,EAAE,SAAU;MACjBP,QAAQ,EAAEA,QAAS;MACnB,cAAYjB;IAAU,CACvB,CACE,CAAC;EAEV,CAAC,CACE,CACF,CAAC;AAEV,CAAC;AAEDtB,YAAY,CAACF,SAAS,GAAAiD,OAAA,CAAAC,GAAA,CAAAC,QAAA,oBAAGnD,SAAS;AAElCE,YAAY,CAACkD,YAAY,GAAG;EAC1BjC,SAAS,EAAEtB,QAAQ,CAACwD,iBAAiB,CAAClC,SAAS;EAC/Cd,IAAI,EAAER,QAAQ,CAACwD,iBAAiB,CAAChD;AACnC,CAAC;AAED,eAAeH,YAAY","ignoreList":[]}
@@ -9,6 +9,7 @@ declare const propTypes: {
9
9
  onChange: PropTypes.Validator<(...args: any[]) => any>;
10
10
  theme: PropTypes.Validator<string>;
11
11
  ariaLabel: PropTypes.Validator<string>;
12
+ id: PropTypes.Requireable<string>;
12
13
  }> | null | undefined)[]>;
13
14
  };
14
15
  export declare type FilterSwitchOptionsProps = {
@@ -17,6 +18,7 @@ export declare type FilterSwitchOptionsProps = {
17
18
  onChange: (value: string) => void;
18
19
  theme: string;
19
20
  ariaLabel: string;
21
+ id?: string;
20
22
  };
21
23
  export declare type FilterSwitchProps = {
22
24
  title: string;
@@ -1 +1 @@
1
- {"version":3,"file":"prop-types.d.ts","sourceRoot":"","sources":["../../../src/organism/filter-switch/prop-types.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,YAAY,CAAC;AAEnC,QAAA,MAAM,SAAS;;;;;;;;;;;CAad,CAAC;AAEF,oBAAY,wBAAwB,GAAG;IACrC,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,OAAO,CAAC;IACf,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF,oBAAY,iBAAiB,GAAG;IAC9B,KAAK,EAAE,MAAM,CAAC;IACd,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,OAAO,EAAE,wBAAwB,EAAE,CAAC;CACrC,CAAC;AAEF,eAAe,SAAS,CAAC"}
1
+ {"version":3,"file":"prop-types.d.ts","sourceRoot":"","sources":["../../../src/organism/filter-switch/prop-types.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,YAAY,CAAC;AAEnC,QAAA,MAAM,SAAS;;;;;;;;;;;;CAcd,CAAC;AAEF,oBAAY,wBAAwB,GAAG;IACrC,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,OAAO,CAAC;IACf,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,MAAM,CAAC;IAClB,EAAE,CAAC,EAAE,MAAM,CAAC;CACb,CAAC;AAEF,oBAAY,iBAAiB,GAAG;IAC9B,KAAK,EAAE,MAAM,CAAC;IACd,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,OAAO,EAAE,wBAAwB,EAAE,CAAC;CACrC,CAAC;AAEF,eAAe,SAAS,CAAC"}
@@ -8,7 +8,8 @@ const propTypes = {
8
8
  value: PropTypes.bool.isRequired,
9
9
  onChange: PropTypes.func.isRequired,
10
10
  theme: PropTypes.string.isRequired,
11
- ariaLabel: PropTypes.string.isRequired
11
+ ariaLabel: PropTypes.string.isRequired,
12
+ id: PropTypes.string
12
13
  }))
13
14
  };
14
15
  export default propTypes;
@@ -1 +1 @@
1
- {"version":3,"file":"prop-types.js","names":["PropTypes","propTypes","title","string","isRequired","titleAriaLabel","onClear","func","options","arrayOf","shape","label","value","bool","onChange","theme","ariaLabel"],"sources":["../../../src/organism/filter-switch/prop-types.ts"],"sourcesContent":["import PropTypes from 'prop-types';\n\nconst propTypes = {\n title: PropTypes.string.isRequired,\n titleAriaLabel: PropTypes.string,\n onClear: PropTypes.func.isRequired,\n options: PropTypes.arrayOf(\n PropTypes.shape({\n label: PropTypes.string.isRequired,\n value: PropTypes.bool.isRequired,\n onChange: PropTypes.func.isRequired,\n theme: PropTypes.string.isRequired,\n ariaLabel: PropTypes.string.isRequired\n })\n )\n};\n\nexport type FilterSwitchOptionsProps = {\n label: string;\n value: boolean;\n onChange: (value: string) => void;\n theme: string;\n ariaLabel: string;\n};\n\nexport type FilterSwitchProps = {\n title: string;\n titleAriaLabel?: string;\n onClear: () => void;\n options: FilterSwitchOptionsProps[];\n};\n\nexport default propTypes;\n"],"mappings":"AAAA,OAAOA,SAAS,MAAM,YAAY;AAElC,MAAMC,SAAS,GAAG;EAChBC,KAAK,EAAEF,SAAS,CAACG,MAAM,CAACC,UAAU;EAClCC,cAAc,EAAEL,SAAS,CAACG,MAAM;EAChCG,OAAO,EAAEN,SAAS,CAACO,IAAI,CAACH,UAAU;EAClCI,OAAO,EAAER,SAAS,CAACS,OAAO,CACxBT,SAAS,CAACU,KAAK,CAAC;IACdC,KAAK,EAAEX,SAAS,CAACG,MAAM,CAACC,UAAU;IAClCQ,KAAK,EAAEZ,SAAS,CAACa,IAAI,CAACT,UAAU;IAChCU,QAAQ,EAAEd,SAAS,CAACO,IAAI,CAACH,UAAU;IACnCW,KAAK,EAAEf,SAAS,CAACG,MAAM,CAACC,UAAU;IAClCY,SAAS,EAAEhB,SAAS,CAACG,MAAM,CAACC;EAC9B,CAAC,CACH;AACF,CAAC;AAiBD,eAAeH,SAAS","ignoreList":[]}
1
+ {"version":3,"file":"prop-types.js","names":["PropTypes","propTypes","title","string","isRequired","titleAriaLabel","onClear","func","options","arrayOf","shape","label","value","bool","onChange","theme","ariaLabel","id"],"sources":["../../../src/organism/filter-switch/prop-types.ts"],"sourcesContent":["import PropTypes from 'prop-types';\n\nconst propTypes = {\n title: PropTypes.string.isRequired,\n titleAriaLabel: PropTypes.string,\n onClear: PropTypes.func.isRequired,\n options: PropTypes.arrayOf(\n PropTypes.shape({\n label: PropTypes.string.isRequired,\n value: PropTypes.bool.isRequired,\n onChange: PropTypes.func.isRequired,\n theme: PropTypes.string.isRequired,\n ariaLabel: PropTypes.string.isRequired,\n id: PropTypes.string\n })\n )\n};\n\nexport type FilterSwitchOptionsProps = {\n label: string;\n value: boolean;\n onChange: (value: string) => void;\n theme: string;\n ariaLabel: string;\n id?: string;\n};\n\nexport type FilterSwitchProps = {\n title: string;\n titleAriaLabel?: string;\n onClear: () => void;\n options: FilterSwitchOptionsProps[];\n};\n\nexport default propTypes;\n"],"mappings":"AAAA,OAAOA,SAAS,MAAM,YAAY;AAElC,MAAMC,SAAS,GAAG;EAChBC,KAAK,EAAEF,SAAS,CAACG,MAAM,CAACC,UAAU;EAClCC,cAAc,EAAEL,SAAS,CAACG,MAAM;EAChCG,OAAO,EAAEN,SAAS,CAACO,IAAI,CAACH,UAAU;EAClCI,OAAO,EAAER,SAAS,CAACS,OAAO,CACxBT,SAAS,CAACU,KAAK,CAAC;IACdC,KAAK,EAAEX,SAAS,CAACG,MAAM,CAACC,UAAU;IAClCQ,KAAK,EAAEZ,SAAS,CAACa,IAAI,CAACT,UAAU;IAChCU,QAAQ,EAAEd,SAAS,CAACO,IAAI,CAACH,UAAU;IACnCW,KAAK,EAAEf,SAAS,CAACG,MAAM,CAACC,UAAU;IAClCY,SAAS,EAAEhB,SAAS,CAACG,MAAM,CAACC,UAAU;IACtCa,EAAE,EAAEjB,SAAS,CAACG;EAChB,CAAC,CACH;AACF,CAAC;AAkBD,eAAeF,SAAS","ignoreList":[]}
@@ -3513,8 +3513,28 @@ declare namespace BrandUpdate {
3513
3513
  onChange: PropTypes.Validator<(...args: any[]) => any>;
3514
3514
  theme: PropTypes.Validator<string>;
3515
3515
  ariaLabel: PropTypes.Validator<string>;
3516
+ id: PropTypes.Requireable<string>;
3516
3517
  }> | null | undefined)[]>;
3517
3518
  }>>;
3519
+ }> | PropTypes.InferProps<{
3520
+ type: PropTypes.Requireable<string>;
3521
+ options: PropTypes.Requireable<PropTypes.InferProps<{
3522
+ title: PropTypes.Validator<string>;
3523
+ titleAriaLabel: PropTypes.Requireable<string>;
3524
+ onClear: PropTypes.Validator<(...args: any[]) => any>;
3525
+ options: PropTypes.Requireable<PropTypes.InferProps<{
3526
+ label: PropTypes.Validator<string>;
3527
+ min: PropTypes.Validator<number>;
3528
+ max: PropTypes.Validator<number>;
3529
+ step: PropTypes.Requireable<number>;
3530
+ value: PropTypes.Requireable<(number | null | undefined)[]>;
3531
+ minLabel: PropTypes.Requireable<string>;
3532
+ maxLabel: PropTypes.Requireable<string>;
3533
+ onChange: PropTypes.Validator<(...args: any[]) => any>;
3534
+ theme: PropTypes.Requireable<string>;
3535
+ selected: PropTypes.Requireable<boolean>;
3536
+ }>>;
3537
+ }>>;
3518
3538
  }> | null | undefined> | null | undefined)[]>;
3519
3539
  }>>>;
3520
3540
  modal: PropTypes.Validator<NonNullable<PropTypes.InferProps<{
@@ -25,6 +25,8 @@ declare namespace SearchPage {
25
25
  }>>;
26
26
  }
27
27
  namespace propTypes {
28
+ const newVersion: PropTypes.Requireable<boolean>;
29
+ const searchMessage: PropTypes.Requireable<string>;
28
30
  const noresultsfound: PropTypes.Requireable<string>;
29
31
  const title: PropTypes.Requireable<string>;
30
32
  const searchFilters: PropTypes.Requireable<PropTypes.InferProps<{
@@ -1113,6 +1115,40 @@ declare namespace SearchPage {
1113
1115
  disabled: PropTypes.Requireable<boolean>;
1114
1116
  }>>;
1115
1117
  }>>;
1118
+ const filtersModal: PropTypes.Requireable<PropTypes.InferProps<{
1119
+ title: PropTypes.Requireable<string>;
1120
+ titleAriaLabel: PropTypes.Requireable<string>;
1121
+ headerIcon: PropTypes.Requireable<PropTypes.InferProps<{
1122
+ name: PropTypes.Requireable<string>;
1123
+ color: PropTypes.Requireable<string>;
1124
+ backgroundColor: PropTypes.Requireable<string>;
1125
+ }>>;
1126
+ description: PropTypes.Requireable<string>;
1127
+ children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
1128
+ isOpen: PropTypes.Requireable<boolean>;
1129
+ footer: PropTypes.Requireable<NonNullable<((...args: any[]) => any) | PropTypes.InferProps<{
1130
+ text: PropTypes.Requireable<string>;
1131
+ isError: any;
1132
+ cancelButton: PropTypes.Requireable<PropTypes.InferProps<{
1133
+ label: PropTypes.Requireable<string>;
1134
+ onCancel: PropTypes.Requireable<(...args: any[]) => any>;
1135
+ disabled: PropTypes.Requireable<boolean>;
1136
+ }>>;
1137
+ confirmButton: PropTypes.Requireable<PropTypes.InferProps<{
1138
+ label: PropTypes.Requireable<string>;
1139
+ onConfirm: PropTypes.Requireable<(...args: any[]) => any>;
1140
+ iconName: PropTypes.Requireable<string>;
1141
+ disabled: PropTypes.Requireable<boolean>;
1142
+ color: PropTypes.Requireable<string>;
1143
+ }>>;
1144
+ }> | null | undefined>>;
1145
+ onClose: PropTypes.Requireable<(...args: any[]) => any>;
1146
+ onScroll: PropTypes.Requireable<(...args: any[]) => any>;
1147
+ detectScrollbar: PropTypes.Requireable<boolean>;
1148
+ customStyle: PropTypes.Requireable<{
1149
+ [x: string]: NonNullable<string | number | null | undefined> | null | undefined;
1150
+ }>;
1151
+ }>>;
1116
1152
  const sections: PropTypes.Requireable<{
1117
1153
  [x: string]: PropTypes.InferProps<{
1118
1154
  title: PropTypes.Requireable<string>;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/template/common/search-page/index.js"],"names":[],"mappings":";AAmBA,mEAqJC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/template/common/search-page/index.js"],"names":[],"mappings":";AAsBA,mEAgMC"}
@@ -1,5 +1,4 @@
1
1
  import _sortBy from "lodash/fp/sortBy";
2
- import _size from "lodash/fp/size";
3
2
  import _pipe from "lodash/fp/pipe";
4
3
  import _map from "lodash/fp/map";
5
4
  import _keys from "lodash/fp/keys";
@@ -8,6 +7,7 @@ import _getOr from "lodash/fp/getOr";
8
7
  function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
9
8
  import React, { useRef } from 'react';
10
9
  import PropTypes from 'prop-types';
10
+ import { convert } from 'css-color-function';
11
11
  import Provider from '../../../atom/provider';
12
12
  import Button from '../../../atom/button';
13
13
  import Filters from '../../../molecule/filters';
@@ -22,6 +22,8 @@ import { cardPropTypes } from '../../../molecule/card';
22
22
  import LearningPriorityCard from '../../../molecule/learning-priority-card';
23
23
  import { COLORS } from '../../../variables/colors';
24
24
  import QuickFilters from '../../../molecule/quick-filters';
25
+ import BaseModal from '../../../molecule/base-modal';
26
+ import MultiFilterPanel from '../../../molecule/multi-filter-panel';
25
27
  import style from './style.css';
26
28
  const SearchPage = (props, context) => {
27
29
  const {
@@ -38,12 +40,15 @@ const SearchPage = (props, context) => {
38
40
  filterGroupAriaLabel,
39
41
  sortAriaLabel,
40
42
  popinWithCards,
41
- sections = {}
43
+ sections = {},
44
+ filtersModal,
45
+ searchMessage,
46
+ newVersion = false
42
47
  } = props;
43
48
  const {
44
49
  skin
45
50
  } = context;
46
- const defaultColor = _getOr('#00B0FF', 'common.primary', skin);
51
+ const defaultColor = _getOr(COLORS.cm_primary_blue, 'common.primary', skin);
47
52
  const nodeRef = useRef(null);
48
53
  const recommendationsView = _isEmpty(recommendations) ? null : /*#__PURE__*/React.createElement(CardsList, _extends({}, recommendations, {
49
54
  customStyle: {
@@ -116,7 +121,6 @@ const SearchPage = (props, context) => {
116
121
  key,
117
122
  ...sections[key]
118
123
  })), _sortBy('order'))(sections);
119
- const hasSections = _size(sortedSections) > 0;
120
124
  const contentGridSection = /*#__PURE__*/React.createElement("div", {
121
125
  className: style.contentSection
122
126
  }, /*#__PURE__*/React.createElement("div", {
@@ -141,7 +145,26 @@ const SearchPage = (props, context) => {
141
145
  moreFilterAriaLabel: moreFilterAriaLabel,
142
146
  filterGroupAriaLabel: filterGroupAriaLabel,
143
147
  sortAriaLabel: sortAriaLabel
144
- })) : null, quickFilters ? /*#__PURE__*/React.createElement(QuickFilters, quickFilters) : null, hasSections ? /*#__PURE__*/React.createElement("div", {
148
+ })) : null, quickFilters ? /*#__PURE__*/React.createElement(QuickFilters, quickFilters) : null, searchMessage ? /*#__PURE__*/React.createElement("div", {
149
+ className: style.searchMessageWrapper
150
+ }, /*#__PURE__*/React.createElement("span", {
151
+ className: style.searchMessage
152
+ // eslint-disable-next-line react/no-danger
153
+ ,
154
+ dangerouslySetInnerHTML: {
155
+ __html: searchMessage
156
+ }
157
+ }), /*#__PURE__*/React.createElement(Button, _extends({}, clearFilters, {
158
+ "data-name": "searchMeassageClear",
159
+ className: style.clear,
160
+ style: {
161
+ background: 'transparent',
162
+ color: defaultColor,
163
+ padding: '0 5px',
164
+ fontSize: '14px'
165
+ },
166
+ type: "link"
167
+ }))) : null, newVersion ? /*#__PURE__*/React.createElement("div", {
145
168
  "data-name": "explorerSections",
146
169
  className: style.sectionsWrapper
147
170
  }, sortedSections.map((section, index) => /*#__PURE__*/React.createElement("div", {
@@ -156,12 +179,27 @@ const SearchPage = (props, context) => {
156
179
  }, title), cardsView), popinWithCards ? /*#__PURE__*/React.createElement("div", {
157
180
  className: style.popinWithCards,
158
181
  ref: nodeRef
159
- }, /*#__PURE__*/React.createElement(CMPopin, popinWithCards)) : null);
182
+ }, /*#__PURE__*/React.createElement(CMPopin, popinWithCards)) : null, filtersModal ? /*#__PURE__*/React.createElement(BaseModal, _extends({}, filtersModal, {
183
+ headerIcon: {
184
+ name: filtersModal.headerIcon.name,
185
+ backgroundColor: convert(`color(${defaultColor} lightness(92%))`),
186
+ color: defaultColor
187
+ },
188
+ footer: {
189
+ cancelButton: filtersModal.footer.cancelButton,
190
+ confirmButton: {
191
+ ...filtersModal.footer.confirmButton,
192
+ color: defaultColor
193
+ }
194
+ }
195
+ }), filtersModal.filterPanelProps ? /*#__PURE__*/React.createElement(MultiFilterPanel, filtersModal.filterPanelProps) : null) : null);
160
196
  };
161
197
  SearchPage.contextTypes = {
162
198
  skin: Provider.childContextTypes.skin
163
199
  };
164
200
  SearchPage.propTypes = process.env.NODE_ENV !== "production" ? {
201
+ newVersion: PropTypes.bool,
202
+ searchMessage: PropTypes.string,
165
203
  noresultsfound: PropTypes.string,
166
204
  title: PropTypes.string,
167
205
  searchFilters: PropTypes.shape(Filters.propTypes),
@@ -175,6 +213,7 @@ SearchPage.propTypes = process.env.NODE_ENV !== "production" ? {
175
213
  filterGroupAriaLabel: PropTypes.string,
176
214
  sortAriaLabel: PropTypes.string,
177
215
  popinWithCards: PropTypes.shape(CMPopin.propTypes),
216
+ filtersModal: PropTypes.shape(BaseModal.propTypes),
178
217
  sections: PropTypes.objectOf(PropTypes.shape({
179
218
  title: PropTypes.string,
180
219
  cards: PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.shape(cardPropTypes), PropTypes.shape(LearnerSkillCard.propTypes), PropTypes.shape(CertificationCard.propTypes), PropTypes.shape(PlaylistCard.propTypes), PropTypes.shape(LearningPriorityCard.propTypes)])),
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["React","useRef","PropTypes","Provider","Button","Filters","CardsGrid","CardsList","CertificationCard","LearnerSkillCard","PlaylistCard","CMPopin","Tag","cardPropTypes","LearningPriorityCard","COLORS","QuickFilters","style","SearchPage","props","context","title","searchFilters","quickFilters","cards","count","noresultsfound","clearFilters","recommendations","moreSortAriaLabel","moreFilterAriaLabel","filterGroupAriaLabel","sortAriaLabel","popinWithCards","sections","skin","defaultColor","_getOr","nodeRef","recommendationsView","_isEmpty","createElement","_extends","customStyle","padding","renderSection","section","sectionCount","length","titleWithCount","className","sectionTitle","label","toString","type","size","backgroundColor","cm_grey_100","color","neutral_500","sectionProps","dataName","key","cardsView","list","noresults","noresultstxt","clear","background","sortedSections","_pipe","_keys","_map","_sortBy","hasSections","_size","contentGridSection","contentSection","sectionHeader","contentGrid","sectionsWrapper","map","index","cardsWrapper","role","ref","contextTypes","childContextTypes","propTypes","process","env","NODE_ENV","string","shape","number","objectOf","arrayOf","oneOfType","showMore","onShowMore","func","order","showMoreOnLeftAriaLabel","showMoreOnRightAriaLabel"],"sources":["../../../../src/template/common/search-page/index.js"],"sourcesContent":["import React, {useRef} from 'react';\nimport PropTypes from 'prop-types';\nimport {getOr, isEmpty, keys, map, pipe, size, sortBy} 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 CertificationCard from '../../../molecule/certification-card';\nimport LearnerSkillCard from '../../../molecule/learner-skill-card';\nimport PlaylistCard from '../../../molecule/playlist-card';\nimport CMPopin from '../../../molecule/cm-popin';\nimport Tag from '../../../atom/tag';\nimport {cardPropTypes} from '../../../molecule/card';\nimport LearningPriorityCard from '../../../molecule/learning-priority-card';\nimport {COLORS} from '../../../variables/colors';\nimport QuickFilters from '../../../molecule/quick-filters';\nimport style from './style.css';\n\nconst SearchPage = (props, context) => {\n const {\n title,\n searchFilters,\n quickFilters,\n cards,\n count,\n noresultsfound,\n clearFilters,\n recommendations,\n moreSortAriaLabel,\n moreFilterAriaLabel,\n filterGroupAriaLabel,\n sortAriaLabel,\n popinWithCards,\n sections = {}\n } = props;\n const {skin} = context;\n const defaultColor = getOr('#00B0FF', 'common.primary', skin);\n const nodeRef = useRef(null);\n const recommendationsView = isEmpty(recommendations) ? null : (\n <CardsList {...recommendations} customStyle={{padding: 0}} />\n );\n\n // Helper function to render content sections\n const renderSection = section => {\n if (!section || isEmpty(section.cards)) return null;\n\n // Use count from props, fallback to cards.length\n const sectionCount = section.count || section.cards.length;\n\n // Create title with count tag\n const titleWithCount = (\n <div className={style.sectionTitle}>\n <span data-name=\"section-title\">{section.title}</span>\n <Tag\n label={sectionCount.toString()}\n type=\"default\"\n size=\"S\"\n customStyle={{backgroundColor: COLORS.cm_grey_100, color: COLORS.neutral_500}}\n />\n </div>\n );\n\n const sectionProps = {\n ...section,\n title: titleWithCount,\n dataName: `${section.key}-section`\n };\n\n // Use CardsList with appropriate type for all sections\n if (section.key === 'certifications') {\n return <CardsList {...sectionProps} type=\"certifications\" />;\n }\n\n if (section.key === 'skills') {\n return <CardsList {...sectionProps} type=\"skills\" />;\n }\n\n if (section.key === 'playlists') {\n return <CardsList {...sectionProps} type=\"playlists\" />;\n }\n\n // For new content, use standard cards\n return <CardsList {...sectionProps} />;\n };\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 // Convert sections object to array and sort by order\n const sortedSections = pipe(\n keys,\n map(key => ({key, ...sections[key]})),\n sortBy('order')\n )(sections);\n\n const hasSections = size(sortedSections) > 0;\n\n const contentGridSection = (\n <div className={style.contentSection}>\n <div className={style.sectionHeader}>\n <div className={style.sectionTitle}>\n <span>{title}</span>\n <Tag\n label={count || cards.list.length.toString()}\n type=\"default\"\n size=\"S\"\n customStyle={{backgroundColor: COLORS.cm_grey_100, color: COLORS.neutral_500}}\n />\n </div>\n <div className={style.contentGrid}> {cardsView}</div>\n </div>\n </div>\n );\n\n return (\n <div data-name=\"filters\">\n {searchFilters ? (\n <Filters\n {...searchFilters}\n moreSortAriaLabel={moreSortAriaLabel}\n moreFilterAriaLabel={moreFilterAriaLabel}\n filterGroupAriaLabel={filterGroupAriaLabel}\n sortAriaLabel={sortAriaLabel}\n />\n ) : null}\n {quickFilters ? <QuickFilters {...quickFilters} /> : null}\n\n {hasSections ? (\n <div data-name=\"explorerSections\" className={style.sectionsWrapper}>\n {sortedSections.map((section, index) => (\n <div data-name={`section-${section.key}`} key={`${section.key}-${index}`}>\n {renderSection(section)}\n </div>\n ))}\n {contentGridSection ? <div>{contentGridSection}</div> : null}\n </div>\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 )}\n\n {popinWithCards ? (\n <div className={style.popinWithCards} ref={nodeRef}>\n <CMPopin {...popinWithCards} />\n </div>\n ) : null}\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 quickFilters: PropTypes.shape(QuickFilters.propTypes),\n cards: PropTypes.shape(CardsGrid.propTypes),\n count: PropTypes.number,\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 sortAriaLabel: PropTypes.string,\n popinWithCards: PropTypes.shape(CMPopin.propTypes),\n sections: PropTypes.objectOf(\n PropTypes.shape({\n title: PropTypes.string,\n cards: PropTypes.arrayOf(\n PropTypes.oneOfType([\n PropTypes.shape(cardPropTypes),\n PropTypes.shape(LearnerSkillCard.propTypes),\n PropTypes.shape(CertificationCard.propTypes),\n PropTypes.shape(PlaylistCard.propTypes),\n PropTypes.shape(LearningPriorityCard.propTypes)\n ])\n ),\n showMore: PropTypes.string,\n onShowMore: PropTypes.func,\n order: PropTypes.number,\n count: PropTypes.number,\n 'arrows-aria-label': PropTypes.shape({\n showMoreOnLeftAriaLabel: PropTypes.string,\n showMoreOnRightAriaLabel: PropTypes.string\n })\n })\n )\n};\n\nexport default SearchPage;\n"],"mappings":";;;;;;;;AAAA,OAAOA,KAAK,IAAGC,MAAM,QAAO,OAAO;AACnC,OAAOC,SAAS,MAAM,YAAY;AAElC,OAAOC,QAAQ,MAAM,wBAAwB;AAC7C,OAAOC,MAAM,MAAM,sBAAsB;AACzC,OAAOC,OAAO,MAAM,2BAA2B;AAC/C,OAAOC,SAAS,MAAM,8BAA8B;AACpD,OAAOC,SAAS,MAAM,wCAAwC;AAC9D,OAAOC,iBAAiB,MAAM,sCAAsC;AACpE,OAAOC,gBAAgB,MAAM,sCAAsC;AACnE,OAAOC,YAAY,MAAM,iCAAiC;AAC1D,OAAOC,OAAO,MAAM,4BAA4B;AAChD,OAAOC,GAAG,MAAM,mBAAmB;AACnC,SAAQC,aAAa,QAAO,wBAAwB;AACpD,OAAOC,oBAAoB,MAAM,0CAA0C;AAC3E,SAAQC,MAAM,QAAO,2BAA2B;AAChD,OAAOC,YAAY,MAAM,iCAAiC;AAC1D,OAAOC,KAAK,MAAM,aAAa;AAE/B,MAAMC,UAAU,GAAGA,CAACC,KAAK,EAAEC,OAAO,KAAK;EACrC,MAAM;IACJC,KAAK;IACLC,aAAa;IACbC,YAAY;IACZC,KAAK;IACLC,KAAK;IACLC,cAAc;IACdC,YAAY;IACZC,eAAe;I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C0E,SAAS,CAAC,CAChD,CACH,CAAC;IACDU,QAAQ,EAAEhG,SAAS,CAAC0F,MAAM;IAC1BO,UAAU,EAAEjG,SAAS,CAACkG,IAAI;IAC1BC,KAAK,EAAEnG,SAAS,CAAC4F,MAAM;IACvBrE,KAAK,EAAEvB,SAAS,CAAC4F,MAAM;IACvB,mBAAmB,EAAE5F,SAAS,CAAC2F,KAAK,CAAC;MACnCS,uBAAuB,EAAEpG,SAAS,CAAC0F,MAAM;MACzCW,wBAAwB,EAAErG,SAAS,CAAC0F;IACtC,CAAC;EACH,CAAC,CACH;AACF,CAAC;AAED,eAAe1E,UAAU","ignoreList":[]}
1
+ {"version":3,"file":"index.js","names":["React","useRef","PropTypes","convert","Provider","Button","Filters","CardsGrid","CardsList","CertificationCard","LearnerSkillCard","PlaylistCard","CMPopin","Tag","cardPropTypes","LearningPriorityCard","COLORS","QuickFilters","BaseModal","MultiFilterPanel","style","SearchPage","props","context","title","searchFilters","quickFilters","cards","count","noresultsfound","clearFilters","recommendations","moreSortAriaLabel","moreFilterAriaLabel","filterGroupAriaLabel","sortAriaLabel","popinWithCards","sections","filtersModal","searchMessage","newVersion","skin","defaultColor","_getOr","cm_primary_blue","nodeRef","recommendationsView","_isEmpty","createElement","_extends","customStyle","padding","renderSection","section","sectionCount","length","titleWithCount","className","sectionTitle","label","toString","type","size","backgroundColor","cm_grey_100","color","neutral_500","sectionProps","dataName","key","cardsView","list","noresults","noresultstxt","clear","background","sortedSections","_pipe","_keys","_map","_sortBy","contentGridSection","contentSection","sectionHeader","contentGrid","searchMessageWrapper","dangerouslySetInnerHTML","__html","fontSize","sectionsWrapper","map","index","cardsWrapper","role","ref","headerIcon","name","footer","cancelButton","confirmButton","filterPanelProps","contextTypes","childContextTypes","propTypes","process","env","NODE_ENV","bool","string","shape","number","objectOf","arrayOf","oneOfType","showMore","onShowMore","func","order","showMoreOnLeftAriaLabel","showMoreOnRightAriaLabel"],"sources":["../../../../src/template/common/search-page/index.js"],"sourcesContent":["import React, {useRef} from 'react';\nimport PropTypes from 'prop-types';\nimport {getOr, isEmpty, keys, map, pipe, sortBy} from 'lodash/fp';\nimport {convert} from 'css-color-function';\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 CertificationCard from '../../../molecule/certification-card';\nimport LearnerSkillCard from '../../../molecule/learner-skill-card';\nimport PlaylistCard from '../../../molecule/playlist-card';\nimport CMPopin from '../../../molecule/cm-popin';\nimport Tag from '../../../atom/tag';\nimport {cardPropTypes} from '../../../molecule/card';\nimport LearningPriorityCard from '../../../molecule/learning-priority-card';\nimport {COLORS} from '../../../variables/colors';\nimport QuickFilters from '../../../molecule/quick-filters';\nimport BaseModal from '../../../molecule/base-modal';\nimport MultiFilterPanel from '../../../molecule/multi-filter-panel';\nimport style from './style.css';\n\nconst SearchPage = (props, context) => {\n const {\n title,\n searchFilters,\n quickFilters,\n cards,\n count,\n noresultsfound,\n clearFilters,\n recommendations,\n moreSortAriaLabel,\n moreFilterAriaLabel,\n filterGroupAriaLabel,\n sortAriaLabel,\n popinWithCards,\n sections = {},\n filtersModal,\n searchMessage,\n newVersion = false\n } = props;\n const {skin} = context;\n const defaultColor = getOr(COLORS.cm_primary_blue, 'common.primary', skin);\n const nodeRef = useRef(null);\n const recommendationsView = isEmpty(recommendations) ? null : (\n <CardsList {...recommendations} customStyle={{padding: 0}} />\n );\n\n // Helper function to render content sections\n const renderSection = section => {\n if (!section || isEmpty(section.cards)) return null;\n\n // Use count from props, fallback to cards.length\n const sectionCount = section.count || section.cards.length;\n\n // Create title with count tag\n const titleWithCount = (\n <div className={style.sectionTitle}>\n <span data-name=\"section-title\">{section.title}</span>\n <Tag\n label={sectionCount.toString()}\n type=\"default\"\n size=\"S\"\n customStyle={{backgroundColor: COLORS.cm_grey_100, color: COLORS.neutral_500}}\n />\n </div>\n );\n\n const sectionProps = {\n ...section,\n title: titleWithCount,\n dataName: `${section.key}-section`\n };\n\n // Use CardsList with appropriate type for all sections\n if (section.key === 'certifications') {\n return <CardsList {...sectionProps} type=\"certifications\" />;\n }\n\n if (section.key === 'skills') {\n return <CardsList {...sectionProps} type=\"skills\" />;\n }\n\n if (section.key === 'playlists') {\n return <CardsList {...sectionProps} type=\"playlists\" />;\n }\n\n // For new content, use standard cards\n return <CardsList {...sectionProps} />;\n };\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 // Convert sections object to array and sort by order\n const sortedSections = pipe(\n keys,\n map(key => ({key, ...sections[key]})),\n sortBy('order')\n )(sections);\n\n const contentGridSection = (\n <div className={style.contentSection}>\n <div className={style.sectionHeader}>\n <div className={style.sectionTitle}>\n <span>{title}</span>\n <Tag\n label={count || cards.list.length.toString()}\n type=\"default\"\n size=\"S\"\n customStyle={{backgroundColor: COLORS.cm_grey_100, color: COLORS.neutral_500}}\n />\n </div>\n <div className={style.contentGrid}> {cardsView}</div>\n </div>\n </div>\n );\n\n return (\n <div data-name=\"filters\">\n {searchFilters ? (\n <Filters\n {...searchFilters}\n moreSortAriaLabel={moreSortAriaLabel}\n moreFilterAriaLabel={moreFilterAriaLabel}\n filterGroupAriaLabel={filterGroupAriaLabel}\n sortAriaLabel={sortAriaLabel}\n />\n ) : null}\n {quickFilters ? <QuickFilters {...quickFilters} /> : null}\n {searchMessage ? (\n <div className={style.searchMessageWrapper}>\n <span\n className={style.searchMessage}\n // eslint-disable-next-line react/no-danger\n dangerouslySetInnerHTML={{__html: searchMessage}}\n />\n <Button\n {...clearFilters}\n data-name=\"searchMeassageClear\"\n className={style.clear}\n style={{\n background: 'transparent',\n color: defaultColor,\n padding: '0 5px',\n fontSize: '14px'\n }}\n type=\"link\"\n />\n </div>\n ) : null}\n {newVersion ? (\n <div data-name=\"explorerSections\" className={style.sectionsWrapper}>\n {sortedSections.map((section, index) => (\n <div data-name={`section-${section.key}`} key={`${section.key}-${index}`}>\n {renderSection(section)}\n </div>\n ))}\n {contentGridSection ? <div>{contentGridSection}</div> : null}\n </div>\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 )}\n\n {popinWithCards ? (\n <div className={style.popinWithCards} ref={nodeRef}>\n <CMPopin {...popinWithCards} />\n </div>\n ) : null}\n\n {filtersModal ? (\n <BaseModal\n {...filtersModal}\n headerIcon={{\n name: filtersModal.headerIcon.name,\n backgroundColor: convert(`color(${defaultColor} lightness(92%))`),\n color: defaultColor\n }}\n footer={{\n cancelButton: filtersModal.footer.cancelButton,\n confirmButton: {\n ...filtersModal.footer.confirmButton,\n color: defaultColor\n }\n }}\n >\n {filtersModal.filterPanelProps ? (\n <MultiFilterPanel {...filtersModal.filterPanelProps} />\n ) : null}\n </BaseModal>\n ) : null}\n </div>\n );\n};\n\nSearchPage.contextTypes = {\n skin: Provider.childContextTypes.skin\n};\n\nSearchPage.propTypes = {\n newVersion: PropTypes.bool,\n searchMessage: PropTypes.string,\n noresultsfound: PropTypes.string,\n title: PropTypes.string,\n searchFilters: PropTypes.shape(Filters.propTypes),\n quickFilters: PropTypes.shape(QuickFilters.propTypes),\n cards: PropTypes.shape(CardsGrid.propTypes),\n count: PropTypes.number,\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 sortAriaLabel: PropTypes.string,\n popinWithCards: PropTypes.shape(CMPopin.propTypes),\n filtersModal: PropTypes.shape(BaseModal.propTypes),\n sections: PropTypes.objectOf(\n PropTypes.shape({\n title: PropTypes.string,\n cards: PropTypes.arrayOf(\n PropTypes.oneOfType([\n PropTypes.shape(cardPropTypes),\n PropTypes.shape(LearnerSkillCard.propTypes),\n PropTypes.shape(CertificationCard.propTypes),\n PropTypes.shape(PlaylistCard.propTypes),\n PropTypes.shape(LearningPriorityCard.propTypes)\n ])\n ),\n showMore: PropTypes.string,\n onShowMore: PropTypes.func,\n order: PropTypes.number,\n count: PropTypes.number,\n 'arrows-aria-label': PropTypes.shape({\n showMoreOnLeftAriaLabel: PropTypes.string,\n showMoreOnRightAriaLabel: PropTypes.string\n })\n })\n )\n};\n\nexport default SearchPage;\n"],"mappings":";;;;;;;AAAA,OAAOA,KAAK,IAAGC,MAAM,QAAO,OAAO;AACnC,OAAOC,SAAS,MAAM,YAAY;AAElC,SAAQC,OAAO,QAAO,oBAAoB;AAC1C,OAAOC,QAAQ,MAAM,wBAAwB;AAC7C,OAAOC,MAAM,MAAM,sBAAsB;AACzC,OAAOC,OAAO,MAAM,2BAA2B;AAC/C,OAAOC,SAAS,MAAM,8BAA8B;AACpD,OAAOC,SAAS,MAAM,wCAAwC;AAC9D,OAAOC,iBAAiB,MAAM,sCAAsC;AACpE,OAAOC,gBAAgB,MAAM,sCAAsC;AACnE,OAAOC,YAAY,MAAM,iCAAiC;AAC1D,OAAOC,OAAO,MAAM,4BAA4B;AAChD,OAAOC,GAAG,MAAM,mBAAmB;AACnC,SAAQC,aAAa,QAAO,wBAAwB;AACpD,OAAOC,oBAAoB,MAAM,0CAA0C;AAC3E,SAAQC,MAAM,QAAO,2BAA2B;AAChD,OAAOC,YAAY,MAAM,iCAAiC;AAC1D,OAAOC,SAAS,MAAM,8BAA8B;AACpD,OAAOC,gBAAgB,MAAM,sCAAsC;AACnE,OAAOC,KAAK,MAAM,aAAa;AAE/B,MAAMC,UAAU,GAAGA,CAACC,KAAK,EAAEC,OAAO,KAAK;EACrC,MAAM;IACJC,KAAK;IACLC,aAAa;IACbC,YAAY;IACZC,KAAK;IACL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K,CAAClG,YAAY,CAAC4F,SAAS,CAAC,EACvCrG,SAAS,CAAC2G,KAAK,CAAC9F,oBAAoB,CAACwF,SAAS,CAAC,CAChD,CACH,CAAC;IACDW,QAAQ,EAAEhH,SAAS,CAAC0G,MAAM;IAC1BO,UAAU,EAAEjH,SAAS,CAACkH,IAAI;IAC1BC,KAAK,EAAEnH,SAAS,CAAC4G,MAAM;IACvBlF,KAAK,EAAE1B,SAAS,CAAC4G,MAAM;IACvB,mBAAmB,EAAE5G,SAAS,CAAC2G,KAAK,CAAC;MACnCS,uBAAuB,EAAEpH,SAAS,CAAC0G,MAAM;MACzCW,wBAAwB,EAAErH,SAAS,CAAC0G;IACtC,CAAC;EACH,CAAC,CACH;AACF,CAAC;AAED,eAAevF,UAAU","ignoreList":[]}
@@ -11,7 +11,6 @@
11
11
  .cardsWrapper {
12
12
  display: block;
13
13
  width: 100%;
14
- max-width: 1100px;
15
14
  margin: 0px auto;
16
15
  height: auto;
17
16
  box-sizing: border-box;
@@ -19,6 +18,33 @@
19
18
  background: white;
20
19
  }
21
20
 
21
+ .searchMessageWrapper {
22
+ display: flex;
23
+ flex-direction: row;
24
+ flex-wrap: wrap;
25
+ max-width: 1100px;
26
+ width: 100%;
27
+ margin: 60px auto 0px;
28
+ position: relative;
29
+ align-items: baseline;
30
+ }
31
+
32
+ .searchMessage {
33
+ font-family: "Gilroy";
34
+ font-size: 18px;
35
+ font-weight: 400;
36
+ color: cm_grey_500;
37
+ padding: 0 10px;
38
+ display: block;
39
+ line-height: 28px;
40
+ user-select: none;
41
+ }
42
+
43
+ .clear {
44
+ min-width: auto;
45
+ line-height: 28px;
46
+ }
47
+
22
48
  .noresults {
23
49
  font-family: "Gilroy";
24
50
  border-top: solid 1px xtraLightGrey;
@@ -36,6 +36,7 @@
36
36
  @value cm_grey_50: #FAFAFA;
37
37
  @value cm_grey_75: #F4F4F5;
38
38
  @value cm_grey_100: #EAEAEB;
39
+ @value surface_input_neutral_strong: #EAEAEB;
39
40
  @value cm_grey_150: #E1E1E3;
40
41
  @value cm_grey_200: #d7d7da;
41
42
  @value cm_grey_300: #C5C5C9;
@@ -1,5 +1,5 @@
1
1
  export default CheckboxWithTitle;
2
- declare function CheckboxWithTitle(props: any): JSX.Element;
2
+ declare function CheckboxWithTitle(props: any, context: any): JSX.Element;
3
3
  declare namespace CheckboxWithTitle {
4
4
  const propTypes: {
5
5
  title: PropTypes.Requireable<string>;
@@ -17,6 +17,29 @@ declare namespace CheckboxWithTitle {
17
17
  [x: string]: NonNullable<string | number | null | undefined> | null | undefined;
18
18
  }>;
19
19
  };
20
+ namespace contextTypes {
21
+ const skin: PropTypes.Requireable<PropTypes.InferProps<{
22
+ common: PropTypes.Requireable<{
23
+ [x: string]: any;
24
+ }>;
25
+ images: PropTypes.Requireable<PropTypes.InferProps<{
26
+ 'logo-mobile': PropTypes.Requireable<any>;
27
+ logo: PropTypes.Requireable<any>;
28
+ 'logo-email': PropTypes.Requireable<any>;
29
+ login: PropTypes.Requireable<any>;
30
+ }>>;
31
+ icons: PropTypes.Requireable<{
32
+ [x: string]: any;
33
+ }>;
34
+ mod: PropTypes.Requireable<{
35
+ [x: string]: any;
36
+ }>;
37
+ courses: PropTypes.Requireable<any[]>;
38
+ texts: PropTypes.Requireable<{
39
+ [x: string]: any;
40
+ }>;
41
+ }>>;
42
+ }
20
43
  }
21
44
  import PropTypes from "prop-types";
22
45
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/atom/checkbox-with-title/index.js"],"names":[],"mappings":";AAQA,4DA0DC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/atom/checkbox-with-title/index.js"],"names":[],"mappings":";AAUA,0EA+DC"}
@@ -4,9 +4,12 @@ exports.__esModule = true;
4
4
  exports.default = void 0;
5
5
  var _uniqueId2 = _interopRequireDefault(require("lodash/fp/uniqueId"));
6
6
  var _noop2 = _interopRequireDefault(require("lodash/fp/noop"));
7
+ var _getOr2 = _interopRequireDefault(require("lodash/fp/getOr"));
7
8
  var _react = _interopRequireWildcard(require("react"));
8
9
  var _propTypes = _interopRequireDefault(require("prop-types"));
9
10
  var _icon = _interopRequireDefault(require("../icon"));
11
+ var _colors = require("../../variables/colors");
12
+ var _provider = _interopRequireDefault(require("../provider"));
10
13
  var _style = _interopRequireDefault(require("./style.css"));
11
14
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
12
15
  function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
@@ -16,7 +19,7 @@ const DEFAULT_ICON_STYLE = {
16
19
  width: '20px',
17
20
  height: '20px'
18
21
  };
19
- const CheckboxWithTitle = props => {
22
+ const CheckboxWithTitle = (props, context) => {
20
23
  const {
21
24
  title,
22
25
  name,
@@ -31,6 +34,10 @@ const CheckboxWithTitle = props => {
31
34
  },
32
35
  customStyle = {}
33
36
  } = props;
37
+ const {
38
+ skin
39
+ } = context;
40
+ const primaryColor = (0, _getOr2.default)(_colors.COLORS.cm_primary_blue, 'common.primary', skin);
34
41
  const {
35
42
  iconName,
36
43
  iconColor,
@@ -55,7 +62,11 @@ const CheckboxWithTitle = props => {
55
62
  "data-name": dataName,
56
63
  "aria-label": ariaLabel
57
64
  }), /*#__PURE__*/_react.default.createElement("div", {
58
- className: _style.default.label
65
+ className: _style.default.label,
66
+ style: checked ? {
67
+ background: primaryColor,
68
+ borderColor: primaryColor
69
+ } : null
59
70
  }, checked ? /*#__PURE__*/_react.default.createElement(_icon.default, {
60
71
  className: _style.default.icon,
61
72
  iconName: iconName,
@@ -89,5 +100,8 @@ CheckboxWithTitle.propTypes = process.env.NODE_ENV !== "production" ? {
89
100
  }),
90
101
  customStyle: _propTypes.default.objectOf(_propTypes.default.oneOfType([_propTypes.default.string, _propTypes.default.number]))
91
102
  } : {};
103
+ CheckboxWithTitle.contextTypes = {
104
+ skin: _provider.default.childContextTypes.skin
105
+ };
92
106
  var _default = exports.default = CheckboxWithTitle;
93
107
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["_react","_interopRequireWildcard","require","_propTypes","_interopRequireDefault","_icon","_style","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","DEFAULT_ICON_STYLE","padding","width","height","CheckboxWithTitle","props","title","name","checked","onChange","_noop2","dataName","ariaLabel","icon","iconName","iconColor","preset","customStyle","idCheckbox","useMemo","_uniqueId2","handleChange","target","createElement","className","style","container","htmlFor","type","id","checkbox","label","dangerouslySetInnerHTML","__html","propTypes","process","env","NODE_ENV","PropTypes","string","bool","func","shape","objectOf","oneOfType","number","_default","exports"],"sources":["../../../src/atom/checkbox-with-title/index.js"],"sourcesContent":["import React, {useMemo} from 'react';\nimport PropTypes from 'prop-types';\nimport {noop, uniqueId} from 'lodash/fp';\nimport FaIcon from '../icon';\nimport style from './style.css';\n\nconst DEFAULT_ICON_STYLE = {padding: '0', width: '20px', height: '20px'};\n\nconst CheckboxWithTitle = props => {\n const {\n title,\n name,\n checked,\n onChange = noop,\n 'data-name': dataName,\n 'aria-label': ariaLabel,\n icon = {iconName: 'check', iconColor: 'white', preset: 's'},\n customStyle = {}\n } = props;\n const {iconName, iconColor, preset} = icon;\n const idCheckbox = useMemo(() => uniqueId('input-checkbox-'), []);\n const handleChange = useMemo(() => e => onChange(e.target.checked), [onChange]);\n\n return (\n <div className={style.container} style={{...customStyle}}>\n {onChange !== noop ? (\n <label htmlFor={idCheckbox}>\n <input\n type=\"checkbox\"\n id={idCheckbox}\n name={name}\n onChange={handleChange}\n checked={checked}\n className={style.checkbox}\n data-name={dataName}\n aria-label={ariaLabel}\n />\n <div className={style.label}>\n {checked ? (\n <FaIcon\n className={style.icon}\n iconName={iconName}\n iconColor={iconColor}\n preset={preset}\n customStyle={DEFAULT_ICON_STYLE}\n />\n ) : (\n <FaIcon\n className={style.icon}\n iconName={'square'}\n iconColor={'transparent'}\n preset=\"s\"\n customStyle={DEFAULT_ICON_STYLE}\n />\n )}\n </div>\n </label>\n ) : null}\n {title ? (\n <span\n // eslint-disable-next-line react/no-danger\n dangerouslySetInnerHTML={{__html: title}}\n />\n ) : null}\n </div>\n );\n};\n\nCheckboxWithTitle.propTypes = {\n title: PropTypes.string,\n name: PropTypes.string,\n checked: PropTypes.bool,\n onChange: PropTypes.func,\n 'aria-label': PropTypes.string,\n 'data-name': PropTypes.string,\n icon: PropTypes.shape({\n iconName: PropTypes.string,\n iconColor: PropTypes.string,\n preset: PropTypes.string\n }),\n customStyle: PropTypes.objectOf(PropTypes.oneOfType([PropTypes.string, PropTypes.number]))\n};\nexport default CheckboxWithTitle;\n"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,UAAA,GAAAC,sBAAA,CAAAF,OAAA;AAEA,IAAAG,KAAA,GAAAD,sBAAA,CAAAF,OAAA;AACA,IAAAI,MAAA,GAAAF,sBAAA,CAAAF,OAAA;AAAgC,SAAAK,yBAAAC,CAAA,6BAAAC,OAAA,mBAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,CAAAC,CAAA,WAAAA,CAAA,GAAAG,CAAA,GAAAD,CAAA,KAAAF,CAAA;AAAA,SAAAP,wBAAAO,CAAA,EAAAE,CAAA,SA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BAAiB","ignoreList":[]}
1
+ {"version":3,"file":"index.js","names":["_react","_interopRequireWildcard","require","_propTypes","_interopRequireDefault","_icon","_colors","_provider","_style","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","DEFAULT_ICON_STYLE","padding","width","height","CheckboxWithTitle","props","context","title","name","checked","onChange","_noop2","dataName","ariaLabel","icon","iconName","iconColor","preset","customStyle","skin","primaryColor","_getOr2","COLORS","cm_primary_blue","idCheckbox","useMemo","_uniqueId2","handleChange","target","createElement","className","style","container","htmlFor","type","id","checkbox","label","background","borderColor","dangerouslySetInnerHTML","__html","propTypes","process","env","NODE_ENV","PropTypes","string","bool","func","shape","objectOf","oneOfType","number","contextTypes","Provider","childContextTypes","_default","exports"],"sources":["../../../src/atom/checkbox-with-title/index.js"],"sourcesContent":["import React, {useMemo} from 'react';\nimport PropTypes from 'prop-types';\nimport {getOr, noop, uniqueId} from 'lodash/fp';\nimport FaIcon from '../icon';\nimport {COLORS} from '../../variables/colors';\nimport Provider from '../provider';\nimport style from './style.css';\n\nconst DEFAULT_ICON_STYLE = {padding: '0', width: '20px', height: '20px'};\n\nconst CheckboxWithTitle = (props, context) => {\n const {\n title,\n name,\n checked,\n onChange = noop,\n 'data-name': dataName,\n 'aria-label': ariaLabel,\n icon = {iconName: 'check', iconColor: 'white', preset: 's'},\n customStyle = {}\n } = props;\n const {skin} = context;\n const primaryColor = getOr(COLORS.cm_primary_blue, 'common.primary', skin);\n const {iconName, iconColor, preset} = icon;\n const idCheckbox = useMemo(() => uniqueId('input-checkbox-'), []);\n const handleChange = useMemo(() => e => onChange(e.target.checked), [onChange]);\n\n return (\n <div className={style.container} style={{...customStyle}}>\n {onChange !== noop ? (\n <label htmlFor={idCheckbox}>\n <input\n type=\"checkbox\"\n id={idCheckbox}\n name={name}\n onChange={handleChange}\n checked={checked}\n className={style.checkbox}\n data-name={dataName}\n aria-label={ariaLabel}\n />\n <div\n className={style.label}\n style={checked ? {background: primaryColor, borderColor: primaryColor} : null}\n >\n {checked ? (\n <FaIcon\n className={style.icon}\n iconName={iconName}\n iconColor={iconColor}\n preset={preset}\n customStyle={DEFAULT_ICON_STYLE}\n />\n ) : (\n <FaIcon\n className={style.icon}\n iconName={'square'}\n iconColor={'transparent'}\n preset=\"s\"\n customStyle={DEFAULT_ICON_STYLE}\n />\n )}\n </div>\n </label>\n ) : null}\n {title ? (\n <span\n // eslint-disable-next-line react/no-danger\n dangerouslySetInnerHTML={{__html: title}}\n />\n ) : null}\n </div>\n );\n};\n\nCheckboxWithTitle.propTypes = {\n title: PropTypes.string,\n name: PropTypes.string,\n checked: PropTypes.bool,\n onChange: PropTypes.func,\n 'aria-label': PropTypes.string,\n 'data-name': PropTypes.string,\n icon: PropTypes.shape({\n iconName: PropTypes.string,\n iconColor: PropTypes.string,\n preset: PropTypes.string\n }),\n customStyle: PropTypes.objectOf(PropTypes.oneOfType([PropTypes.string, PropTypes.number]))\n};\n\nCheckboxWithTitle.contextTypes = {\n skin: Provider.childContextTypes.skin\n};\nexport default CheckboxWithTitle;\n"],"mappings":";;;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,UAAA,GAAAC,sBAAA,CAAAF,OAAA;AAEA,IAAAG,KAAA,GAAAD,sBAAA,CAAAF,OAAA;AACA,IAAAI,OAAA,GAAAJ,OAAA;AACA,IAAAK,SAAA,GAAAH,sBAAA,CAAAF,OAAA;AACA,IAAAM,MAAA,GAAAJ,sBAAA,CAAAF,OAAA;AAAgC,SAAAO,yBAAAC,CAAA,6BAAAC,OAAA,mBAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,CAAAC,CAAA,WAAAA,CAAA,GAAAG,CAAA,GAAAD,CAAA,KAAAF,CAAA;AAAA,SAAAT,wBAAAS,CAAA,EAAAE,CAAA,SAAAA,CAAA,IAA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C,MAAM;IAC3B9B,MAAM,EAAE6B,kBAAS,CAACC;EACpB,CAAC,CAAC;EACF7B,WAAW,EAAE4B,kBAAS,CAACK,QAAQ,CAACL,kBAAS,CAACM,SAAS,CAAC,CAACN,kBAAS,CAACC,MAAM,EAAED,kBAAS,CAACO,MAAM,CAAC,CAAC;AAC3F,CAAC;AAEDjD,iBAAiB,CAACkD,YAAY,GAAG;EAC/BnC,IAAI,EAAEoC,iBAAQ,CAACC,iBAAiB,CAACrC;AACnC,CAAC;AAAC,IAAAsC,QAAA,GAAAC,OAAA,CAAAxE,OAAA,GACakB,iBAAiB","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/atom/chip/index.js"],"names":[],"mappings":"AAmBO,qGAG0E;;AAGjF,6DAuEC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/atom/chip/index.js"],"names":[],"mappings":"AAmBO,qGAG0E;;AAGjF,6DA0EC"}