@coorpacademy/components 11.13.3 → 11.13.4

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 (157) hide show
  1. package/es/atom/avatar/style.css +1 -1
  2. package/es/atom/button-link/index.d.ts +23 -24
  3. package/es/atom/button-link/index.d.ts.map +1 -1
  4. package/es/atom/button-link/index.js +10 -30
  5. package/es/atom/button-link/index.js.map +1 -1
  6. package/es/atom/button-link/style.css +10 -1
  7. package/es/atom/button-link/types.d.ts +50 -0
  8. package/es/atom/button-link/types.d.ts.map +1 -0
  9. package/es/atom/button-link/types.js +25 -0
  10. package/es/atom/button-link/types.js.map +1 -0
  11. package/es/atom/button-link-icon-only/style.css +16 -1
  12. package/es/atom/button-menu/index.d.ts +14 -13
  13. package/es/atom/button-menu/index.d.ts.map +1 -1
  14. package/es/atom/button-menu/index.js +5 -13
  15. package/es/atom/button-menu/index.js.map +1 -1
  16. package/es/atom/button-menu/types.d.ts +35 -0
  17. package/es/atom/button-menu/types.d.ts.map +1 -0
  18. package/es/atom/button-menu/types.js +14 -0
  19. package/es/atom/button-menu/types.js.map +1 -0
  20. package/es/atom/difficulty-level/style.css +1 -1
  21. package/es/atom/link/index.d.ts +1 -0
  22. package/es/atom/link/index.js +1 -0
  23. package/es/atom/link/index.js.map +1 -1
  24. package/es/atom/status-item/style.css +3 -0
  25. package/es/molecule/brand-form-group/index.d.ts +0 -2
  26. package/es/molecule/bullet-point-menu-button/index.d.ts +20 -17
  27. package/es/molecule/bullet-point-menu-button/index.d.ts.map +1 -1
  28. package/es/molecule/bullet-point-menu-button/index.js +9 -11
  29. package/es/molecule/bullet-point-menu-button/index.js.map +1 -1
  30. package/es/molecule/bullet-point-menu-button/style.css +20 -0
  31. package/es/molecule/bullet-point-menu-button/types.d.ts +31 -0
  32. package/es/molecule/bullet-point-menu-button/types.d.ts.map +1 -0
  33. package/es/molecule/bullet-point-menu-button/types.js +13 -0
  34. package/es/molecule/bullet-point-menu-button/types.js.map +1 -0
  35. package/es/molecule/empty-state-dashboard/index.d.ts +1 -1
  36. package/es/molecule/empty-state-dashboard/index.d.ts.map +1 -1
  37. package/es/molecule/empty-state-dashboard/index.js +2 -2
  38. package/es/molecule/empty-state-dashboard/index.js.map +1 -1
  39. package/es/molecule/empty-state-dashboard/types.d.ts +8 -0
  40. package/es/molecule/empty-state-dashboard/types.d.ts.map +1 -1
  41. package/es/molecule/empty-state-dashboard/types.js.map +1 -1
  42. package/es/molecule/expandible-actionable-table/index.d.ts +103 -0
  43. package/es/molecule/expandible-actionable-table/index.d.ts.map +1 -0
  44. package/es/molecule/expandible-actionable-table/index.js +193 -0
  45. package/es/molecule/expandible-actionable-table/index.js.map +1 -0
  46. package/es/molecule/expandible-actionable-table/style.css +134 -0
  47. package/es/molecule/expandible-actionable-table/types.d.ts +116 -0
  48. package/es/molecule/expandible-actionable-table/types.d.ts.map +1 -0
  49. package/es/molecule/expandible-actionable-table/types.js +33 -0
  50. package/es/molecule/expandible-actionable-table/types.js.map +1 -0
  51. package/es/molecule/uploading-file-progress/index.d.ts +1 -1
  52. package/es/molecule/uploading-file-progress/index.d.ts.map +1 -1
  53. package/es/molecule/uploading-file-progress/index.js.map +1 -1
  54. package/es/molecule/uploading-file-progress/types.d.ts +10 -1
  55. package/es/molecule/uploading-file-progress/types.d.ts.map +1 -1
  56. package/es/molecule/uploading-file-progress/types.js.map +1 -1
  57. package/es/organism/brand-form/index.d.ts +0 -2
  58. package/es/organism/list-items/index.d.ts +109 -6
  59. package/es/organism/list-items/index.d.ts.map +1 -1
  60. package/es/organism/list-items/index.js +44 -15
  61. package/es/organism/list-items/index.js.map +1 -1
  62. package/es/organism/setup-header/index.d.ts +0 -8
  63. package/es/organism/wizard-contents/index.d.ts +71 -2
  64. package/es/organism/wizard-contents/index.d.ts.map +1 -1
  65. package/es/organism/wizard-contents/index.js +6 -0
  66. package/es/organism/wizard-contents/index.js.map +1 -1
  67. package/es/template/back-office/brand-create/index.d.ts +0 -8
  68. package/es/template/back-office/brand-create/index.d.ts.map +1 -1
  69. package/es/template/back-office/brand-list/index.d.ts +0 -8
  70. package/es/template/back-office/brand-list/index.d.ts.map +1 -1
  71. package/es/template/back-office/brand-update/index.d.ts +288 -802
  72. package/es/template/back-office/brand-update/index.d.ts.map +1 -1
  73. package/es/template/back-office/brand-update/index.js +14 -2
  74. package/es/template/back-office/brand-update/index.js.map +1 -1
  75. package/es/template/back-office/dashboard-preview/index.d.ts +0 -8
  76. package/es/template/back-office/layout/index.d.ts +0 -8
  77. package/es/template/back-office/layout/index.d.ts.map +1 -1
  78. package/lib/atom/avatar/style.css +1 -1
  79. package/lib/atom/button-link/index.d.ts +23 -24
  80. package/lib/atom/button-link/index.d.ts.map +1 -1
  81. package/lib/atom/button-link/index.js +10 -32
  82. package/lib/atom/button-link/index.js.map +1 -1
  83. package/lib/atom/button-link/style.css +10 -1
  84. package/lib/atom/button-link/types.d.ts +50 -0
  85. package/lib/atom/button-link/types.d.ts.map +1 -0
  86. package/lib/atom/button-link/types.js +36 -0
  87. package/lib/atom/button-link/types.js.map +1 -0
  88. package/lib/atom/button-link-icon-only/style.css +16 -1
  89. package/lib/atom/button-menu/index.d.ts +14 -13
  90. package/lib/atom/button-menu/index.d.ts.map +1 -1
  91. package/lib/atom/button-menu/index.js +6 -14
  92. package/lib/atom/button-menu/index.js.map +1 -1
  93. package/lib/atom/button-menu/types.d.ts +35 -0
  94. package/lib/atom/button-menu/types.d.ts.map +1 -0
  95. package/lib/atom/button-menu/types.js +24 -0
  96. package/lib/atom/button-menu/types.js.map +1 -0
  97. package/lib/atom/difficulty-level/style.css +1 -1
  98. package/lib/atom/link/index.d.ts +1 -0
  99. package/lib/atom/link/index.js +1 -0
  100. package/lib/atom/link/index.js.map +1 -1
  101. package/lib/atom/status-item/style.css +3 -0
  102. package/lib/molecule/brand-form-group/index.d.ts +0 -2
  103. package/lib/molecule/bullet-point-menu-button/index.d.ts +20 -17
  104. package/lib/molecule/bullet-point-menu-button/index.d.ts.map +1 -1
  105. package/lib/molecule/bullet-point-menu-button/index.js +10 -11
  106. package/lib/molecule/bullet-point-menu-button/index.js.map +1 -1
  107. package/lib/molecule/bullet-point-menu-button/style.css +20 -0
  108. package/lib/molecule/bullet-point-menu-button/types.d.ts +31 -0
  109. package/lib/molecule/bullet-point-menu-button/types.d.ts.map +1 -0
  110. package/lib/molecule/bullet-point-menu-button/types.js +23 -0
  111. package/lib/molecule/bullet-point-menu-button/types.js.map +1 -0
  112. package/lib/molecule/empty-state-dashboard/index.d.ts +1 -1
  113. package/lib/molecule/empty-state-dashboard/index.d.ts.map +1 -1
  114. package/lib/molecule/empty-state-dashboard/index.js +2 -2
  115. package/lib/molecule/empty-state-dashboard/index.js.map +1 -1
  116. package/lib/molecule/empty-state-dashboard/types.d.ts +8 -0
  117. package/lib/molecule/empty-state-dashboard/types.d.ts.map +1 -1
  118. package/lib/molecule/empty-state-dashboard/types.js.map +1 -1
  119. package/lib/molecule/expandible-actionable-table/index.d.ts +103 -0
  120. package/lib/molecule/expandible-actionable-table/index.d.ts.map +1 -0
  121. package/lib/molecule/expandible-actionable-table/index.js +215 -0
  122. package/lib/molecule/expandible-actionable-table/index.js.map +1 -0
  123. package/lib/molecule/expandible-actionable-table/style.css +134 -0
  124. package/lib/molecule/expandible-actionable-table/types.d.ts +116 -0
  125. package/lib/molecule/expandible-actionable-table/types.d.ts.map +1 -0
  126. package/lib/molecule/expandible-actionable-table/types.js +47 -0
  127. package/lib/molecule/expandible-actionable-table/types.js.map +1 -0
  128. package/lib/molecule/uploading-file-progress/index.d.ts +1 -1
  129. package/lib/molecule/uploading-file-progress/index.d.ts.map +1 -1
  130. package/lib/molecule/uploading-file-progress/index.js.map +1 -1
  131. package/lib/molecule/uploading-file-progress/types.d.ts +10 -1
  132. package/lib/molecule/uploading-file-progress/types.d.ts.map +1 -1
  133. package/lib/molecule/uploading-file-progress/types.js.map +1 -1
  134. package/lib/organism/brand-form/index.d.ts +0 -2
  135. package/lib/organism/list-items/index.d.ts +109 -6
  136. package/lib/organism/list-items/index.d.ts.map +1 -1
  137. package/lib/organism/list-items/index.js +45 -15
  138. package/lib/organism/list-items/index.js.map +1 -1
  139. package/lib/organism/setup-header/index.d.ts +0 -8
  140. package/lib/organism/wizard-contents/index.d.ts +71 -2
  141. package/lib/organism/wizard-contents/index.d.ts.map +1 -1
  142. package/lib/organism/wizard-contents/index.js +7 -0
  143. package/lib/organism/wizard-contents/index.js.map +1 -1
  144. package/lib/template/back-office/brand-create/index.d.ts +0 -8
  145. package/lib/template/back-office/brand-create/index.d.ts.map +1 -1
  146. package/lib/template/back-office/brand-list/index.d.ts +0 -8
  147. package/lib/template/back-office/brand-list/index.d.ts.map +1 -1
  148. package/lib/template/back-office/brand-update/index.d.ts +288 -802
  149. package/lib/template/back-office/brand-update/index.d.ts.map +1 -1
  150. package/lib/template/back-office/brand-update/index.js +15 -2
  151. package/lib/template/back-office/brand-update/index.js.map +1 -1
  152. package/lib/template/back-office/dashboard-preview/index.d.ts +0 -8
  153. package/lib/template/back-office/layout/index.d.ts +0 -8
  154. package/lib/template/back-office/layout/index.d.ts.map +1 -1
  155. package/locales/.mtslconfig.json +1 -0
  156. package/locales/en/global.json +2 -1
  157. package/package.json +3 -3
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","names":["columnProptypes","PropTypes","shape","title","string","isRequired","rowProptypes","fields","arrayOf","oneOfType","StatusItem","propTypes","type","oneOf","isRowExpandible","bool","lastField","BulletPointMenuButton","columns","rows","stickyFirstColumn","stickyLastColumn","columnWidth","ariaDescribedby","ButtonLink","componentType","isNestedTable"],"sources":["../../../src/molecule/expandible-actionable-table/types.ts"],"sourcesContent":["import PropTypes from 'prop-types';\nimport StatusItem from '../../atom/status-item';\nimport ButtonLink from '../../atom/button-link';\nimport BulletPointMenuButton from '../bullet-point-menu-button';\nimport {BulletPointMenuButtonProps} from '../bullet-point-menu-button/types';\nimport {ButtonLinkProps} from '../../atom/button-link/types';\nimport {StatusItemProps} from '../../atom/status-item/types';\nimport {Props as ErrorsTableProps} from '../errors-table/types';\nimport {Props as BulkProgressBarProps} from '../bulk-progress-bar/types';\n\nconst columnProptypes = PropTypes.shape({\n title: PropTypes.string.isRequired\n});\n\nconst rowProptypes = PropTypes.shape({\n fields: PropTypes.arrayOf(\n PropTypes.oneOfType([\n PropTypes.string,\n PropTypes.shape({\n ...StatusItem.propTypes,\n type: PropTypes.oneOf(['status'])\n })\n ])\n ),\n isRowExpandible: PropTypes.bool,\n lastField: PropTypes.oneOfType([\n PropTypes.string,\n PropTypes.shape({\n ...BulletPointMenuButton.propTypes,\n type: PropTypes.oneOf(['menu'])\n })\n ])\n});\n\nexport const propTypes = {\n columns: PropTypes.arrayOf(columnProptypes),\n rows: PropTypes.arrayOf(rowProptypes),\n stickyFirstColumn: PropTypes.bool,\n stickyLastColumn: PropTypes.bool,\n columnWidth: PropTypes.string,\n ariaDescribedby: PropTypes.string,\n lastField: PropTypes.oneOfType([\n PropTypes.shape({\n ...ButtonLink.propTypes,\n componentType: PropTypes.oneOf(['button-link'])\n }),\n PropTypes.shape({\n ...BulletPointMenuButton.propTypes,\n componentType: PropTypes.oneOf(['menu'])\n })\n ]),\n isNestedTable: PropTypes.bool\n};\n\nexport type Field =\n | string\n | (StatusItemProps & {\n componentType: 'status';\n })\n | (BulkProgressBarProps & {\n componentType: 'progress-bar';\n });\n\nexport type LastField =\n | (ButtonLinkProps & {\n componentType: 'button-link';\n })\n | (BulletPointMenuButtonProps & {\n componentType: 'menu';\n });\n\nexport type NestedRow =\n | (ErrorsTableProps & {\n componentType: 'errors-table';\n })\n | (Props & {\n componentType: 'expandible-errors-table';\n });\n\nexport type Column = {title: string};\nexport type Row = {\n fields: Field[];\n\n nestedRow?: NestedRow;\n isRowExpandible?: boolean;\n};\nexport type Columns = Column[];\nexport type Rows = Row[];\n\nexport type Props = {\n columns: Columns;\n rows?: Rows;\n stickyFirstColumn?: boolean;\n stickyLastColumn?: boolean;\n columnWidth?: `${number}${'px' | '%'}`;\n ariaDescribedby?: string;\n lastField?: LastField;\n isNestedTable?: boolean;\n};\n\nexport type ExpandState = {[key: number]: boolean};\n"],"mappings":";;;;;AAAA;;AACA;;AACA;;AACA;;;;;;AAOA,MAAMA,eAAe,GAAGC,kBAAA,CAAUC,KAAV,CAAgB;EACtCC,KAAK,EAAEF,kBAAA,CAAUG,MAAV,CAAiBC;AADc,CAAhB,CAAxB;;AAIA,MAAMC,YAAY,GAAGL,kBAAA,CAAUC,KAAV,CAAgB;EACnCK,MAAM,EAAEN,kBAAA,CAAUO,OAAV,CACNP,kBAAA,CAAUQ,SAAV,CAAoB,CAClBR,kBAAA,CAAUG,MADQ,EAElBH,kBAAA,CAAUC,KAAV,cACKQ,mBAAA,CAAWC,SADhB;IAEEC,IAAI,EAAEX,kBAAA,CAAUY,KAAV,CAAgB,CAAC,QAAD,CAAhB;EAFR,GAFkB,CAApB,CADM,CAD2B;EAUnCC,eAAe,EAAEb,kBAAA,CAAUc,IAVQ;EAWnCC,SAAS,EAAEf,kBAAA,CAAUQ,SAAV,CAAoB,CAC7BR,kBAAA,CAAUG,MADmB,EAE7BH,kBAAA,CAAUC,KAAV,cACKe,8BAAA,CAAsBN,SAD3B;IAEEC,IAAI,EAAEX,kBAAA,CAAUY,KAAV,CAAgB,CAAC,MAAD,CAAhB;EAFR,GAF6B,CAApB;AAXwB,CAAhB,CAArB;;AAoBO,MAAMF,SAAS,GAAG;EACvBO,OAAO,EAAEjB,kBAAA,CAAUO,OAAV,CAAkBR,eAAlB,CADc;EAEvBmB,IAAI,EAAElB,kBAAA,CAAUO,OAAV,CAAkBF,YAAlB,CAFiB;EAGvBc,iBAAiB,EAAEnB,kBAAA,CAAUc,IAHN;EAIvBM,gBAAgB,EAAEpB,kBAAA,CAAUc,IAJL;EAKvBO,WAAW,EAAErB,kBAAA,CAAUG,MALA;EAMvBmB,eAAe,EAAEtB,kBAAA,CAAUG,MANJ;EAOvBY,SAAS,EAAEf,kBAAA,CAAUQ,SAAV,CAAoB,CAC7BR,kBAAA,CAAUC,KAAV,cACKsB,mBAAA,CAAWb,SADhB;IAEEc,aAAa,EAAExB,kBAAA,CAAUY,KAAV,CAAgB,CAAC,aAAD,CAAhB;EAFjB,GAD6B,EAK7BZ,kBAAA,CAAUC,KAAV,cACKe,8BAAA,CAAsBN,SAD3B;IAEEc,aAAa,EAAExB,kBAAA,CAAUY,KAAV,CAAgB,CAAC,MAAD,CAAhB;EAFjB,GAL6B,CAApB,CAPY;EAiBvBa,aAAa,EAAEzB,kBAAA,CAAUc;AAjBF,CAAlB"}
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { Props } from './types';
2
+ import { UploadingFileProgressProps as Props } from './types';
3
3
  declare const UploadingFileProgress: {
4
4
  ({ mainText, subText, progressionValue, leftButtonLink, rightButtonLink }: Props): JSX.Element;
5
5
  propTypes: {
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/molecule/uploading-file-progress/index.tsx"],"names":[],"mappings":";AAIA,OAAO,EAAC,KAAK,EAAY,MAAM,SAAS,CAAC;AAEzC,QAAA,MAAM,qBAAqB;+EAMxB,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmBP,CAAC;AAIF,eAAe,qBAAqB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/molecule/uploading-file-progress/index.tsx"],"names":[],"mappings":";AAIA,OAAO,EAAC,0BAA0B,IAAI,KAAK,EAAY,MAAM,SAAS,CAAC;AAEvE,QAAA,MAAM,qBAAqB;+EAMxB,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmBP,CAAC;AAIF,eAAe,qBAAqB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["UploadingFileProgress","mainText","subText","progressionValue","leftButtonLink","rightButtonLink","style","loaderWrapper","loader","container","buttonContainer","propTypes"],"sources":["../../../src/molecule/uploading-file-progress/index.tsx"],"sourcesContent":["import React from 'react';\nimport ButtonLink from '../../atom/button-link';\nimport Loader from '../../atom/loader';\nimport style from './style.css';\nimport {Props, propTypes} from './types';\n\nconst UploadingFileProgress = ({\n mainText,\n subText,\n progressionValue,\n leftButtonLink,\n rightButtonLink\n}: Props) => (\n <div>\n <div className={style.loaderWrapper}>\n <div className={style.loader}>\n <Loader theme=\"coorpmanager\" />\n </div>\n </div>\n <div className={style.container}>\n <p className={style.mainText}>\n {mainText}\n <span className={style.progressionValue}> {progressionValue}%</span>\n </p>\n <p className={style.subText}>{subText}</p>\n <div className={style.buttonContainer}>\n <ButtonLink {...leftButtonLink} className={style.leftButtonLink} />\n <ButtonLink {...rightButtonLink} className={style.rightButtonLink} />\n </div>\n </div>\n </div>\n);\n\nUploadingFileProgress.propTypes = propTypes;\n\nexport default UploadingFileProgress;\n"],"mappings":";;;;;AAAA;;AACA;;AACA;;AACA;;AACA;;;;;;AAEA,MAAMA,qBAAqB,GAAG,CAAC;EAC7BC,QAD6B;EAE7BC,OAF6B;EAG7BC,gBAH6B;EAI7BC,cAJ6B;EAK7BC;AAL6B,CAAD,kBAO5B,uDACE;EAAK,SAAS,EAAEC,cAAA,CAAMC;AAAtB,gBACE;EAAK,SAAS,EAAED,cAAA,CAAME;AAAtB,gBACE,6BAAC,eAAD;EAAQ,KAAK,EAAC;AAAd,EADF,CADF,CADF,eAME;EAAK,SAAS,EAAEF,cAAA,CAAMG;AAAtB,gBACE;EAAG,SAAS,EAAEH,cAAA,CAAML;AAApB,GACGA,QADH,eAEE;EAAM,SAAS,EAAEK,cAAA,CAAMH;AAAvB,QAA2CA,gBAA3C,MAFF,CADF,eAKE;EAAG,SAAS,EAAEG,cAAA,CAAMJ;AAApB,GAA8BA,OAA9B,CALF,eAME;EAAK,SAAS,EAAEI,cAAA,CAAMI;AAAtB,gBACE,6BAAC,mBAAD,eAAgBN,cAAhB;EAAgC,SAAS,EAAEE,cAAA,CAAMF;AAAjD,GADF,eAEE,6BAAC,mBAAD,eAAgBC,eAAhB;EAAiC,SAAS,EAAEC,cAAA,CAAMD;AAAlD,GAFF,CANF,CANF,CAPF;;AA2BAL,qBAAqB,CAACW,SAAtB,2CAAkCA,gBAAlC;eAEeX,qB"}
1
+ {"version":3,"file":"index.js","names":["UploadingFileProgress","mainText","subText","progressionValue","leftButtonLink","rightButtonLink","style","loaderWrapper","loader","container","buttonContainer","propTypes"],"sources":["../../../src/molecule/uploading-file-progress/index.tsx"],"sourcesContent":["import React from 'react';\nimport ButtonLink from '../../atom/button-link';\nimport Loader from '../../atom/loader';\nimport style from './style.css';\nimport {UploadingFileProgressProps as Props, propTypes} from './types';\n\nconst UploadingFileProgress = ({\n mainText,\n subText,\n progressionValue,\n leftButtonLink,\n rightButtonLink\n}: Props) => (\n <div>\n <div className={style.loaderWrapper}>\n <div className={style.loader}>\n <Loader theme=\"coorpmanager\" />\n </div>\n </div>\n <div className={style.container}>\n <p className={style.mainText}>\n {mainText}\n <span className={style.progressionValue}> {progressionValue}%</span>\n </p>\n <p className={style.subText}>{subText}</p>\n <div className={style.buttonContainer}>\n <ButtonLink {...leftButtonLink} className={style.leftButtonLink} />\n <ButtonLink {...rightButtonLink} className={style.rightButtonLink} />\n </div>\n </div>\n </div>\n);\n\nUploadingFileProgress.propTypes = propTypes;\n\nexport default UploadingFileProgress;\n"],"mappings":";;;;;AAAA;;AACA;;AACA;;AACA;;AACA;;;;;;AAEA,MAAMA,qBAAqB,GAAG,CAAC;EAC7BC,QAD6B;EAE7BC,OAF6B;EAG7BC,gBAH6B;EAI7BC,cAJ6B;EAK7BC;AAL6B,CAAD,kBAO5B,uDACE;EAAK,SAAS,EAAEC,cAAA,CAAMC;AAAtB,gBACE;EAAK,SAAS,EAAED,cAAA,CAAME;AAAtB,gBACE,6BAAC,eAAD;EAAQ,KAAK,EAAC;AAAd,EADF,CADF,CADF,eAME;EAAK,SAAS,EAAEF,cAAA,CAAMG;AAAtB,gBACE;EAAG,SAAS,EAAEH,cAAA,CAAML;AAApB,GACGA,QADH,eAEE;EAAM,SAAS,EAAEK,cAAA,CAAMH;AAAvB,QAA2CA,gBAA3C,MAFF,CADF,eAKE;EAAG,SAAS,EAAEG,cAAA,CAAMJ;AAApB,GAA8BA,OAA9B,CALF,eAME;EAAK,SAAS,EAAEI,cAAA,CAAMI;AAAtB,gBACE,6BAAC,mBAAD,eAAgBN,cAAhB;EAAgC,SAAS,EAAEE,cAAA,CAAMF;AAAjD,GADF,eAEE,6BAAC,mBAAD,eAAgBC,eAAhB;EAAiC,SAAS,EAAEC,cAAA,CAAMD;AAAlD,GAFF,CANF,CANF,CAPF;;AA2BAL,qBAAqB,CAACW,SAAtB,2CAAkCA,gBAAlC;eAEeX,qB"}
@@ -1,4 +1,6 @@
1
1
  import PropTypes from 'prop-types';
2
+ import { ButtonLinkProps } from '../../atom/button-link/types';
3
+ import Picture from '../../atom/picture';
2
4
  export declare const propTypes: {
3
5
  mainText: PropTypes.Requireable<string>;
4
6
  subText: PropTypes.Requireable<string>;
@@ -27,5 +29,12 @@ export declare const propTypes: {
27
29
  onClick: PropTypes.Requireable<(...args: any[]) => any>;
28
30
  }>>;
29
31
  };
30
- export declare type Props = PropTypes.InferProps<typeof propTypes>;
32
+ export declare type UploadingFileProgressProps = {
33
+ mainText?: string;
34
+ subText?: string;
35
+ imageUrl?: PropTypes.InferProps<typeof Picture.propTypes.src>;
36
+ progressionValue?: number;
37
+ leftButtonLink?: ButtonLinkProps;
38
+ rightButtonLink?: ButtonLinkProps;
39
+ };
31
40
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/molecule/uploading-file-progress/types.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,YAAY,CAAC;AAGnC,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2BrB,CAAC;AAEF,oBAAY,KAAK,GAAG,SAAS,CAAC,UAAU,CAAC,OAAO,SAAS,CAAC,CAAC"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/molecule/uploading-file-progress/types.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,YAAY,CAAC;AACnC,OAAO,EAAC,eAAe,EAAC,MAAM,8BAA8B,CAAC;AAC7D,OAAO,OAAO,MAAM,oBAAoB,CAAC;AAEzC,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2BrB,CAAC;AAEF,oBAAY,0BAA0B,GAAG;IACvC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,SAAS,CAAC,UAAU,CAAC,OAAO,OAAO,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC;IAC9D,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,cAAc,CAAC,EAAE,eAAe,CAAC;IACjC,eAAe,CAAC,EAAE,eAAe,CAAC;CACnC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"types.js","names":["propTypes","mainText","PropTypes","string","subText","imageUrl","Picture","src","progressionValue","number","leftButtonLink","shape","type","label","ariaLabel","dataName","icon","position","onClick","func","rightButtonLink"],"sources":["../../../src/molecule/uploading-file-progress/types.ts"],"sourcesContent":["import PropTypes from 'prop-types';\nimport Picture from '../../atom/picture';\n\nexport const propTypes = {\n mainText: PropTypes.string,\n subText: PropTypes.string,\n imageUrl: Picture.propTypes.src,\n progressionValue: PropTypes.number,\n leftButtonLink: PropTypes.shape({\n type: PropTypes.string,\n label: PropTypes.string,\n ariaLabel: PropTypes.string,\n dataName: PropTypes.string,\n icon: PropTypes.shape({\n position: PropTypes.string,\n type: PropTypes.string\n }),\n onClick: PropTypes.func\n }),\n rightButtonLink: PropTypes.shape({\n type: PropTypes.string,\n label: PropTypes.string,\n ariaLabel: PropTypes.string,\n dataName: PropTypes.string,\n icon: PropTypes.shape({\n position: PropTypes.string,\n type: PropTypes.string\n }),\n onClick: PropTypes.func\n })\n};\n\nexport type Props = PropTypes.InferProps<typeof propTypes>;\n"],"mappings":";;;;;AAAA;;AACA;;;;AAEO,MAAMA,SAAS,GAAG;EACvBC,QAAQ,EAAEC,kBAAA,CAAUC,MADG;EAEvBC,OAAO,EAAEF,kBAAA,CAAUC,MAFI;EAGvBE,QAAQ,EAAEC,gBAAA,CAAQN,SAAR,CAAkBO,GAHL;EAIvBC,gBAAgB,EAAEN,kBAAA,CAAUO,MAJL;EAKvBC,cAAc,EAAER,kBAAA,CAAUS,KAAV,CAAgB;IAC9BC,IAAI,EAAEV,kBAAA,CAAUC,MADc;IAE9BU,KAAK,EAAEX,kBAAA,CAAUC,MAFa;IAG9BW,SAAS,EAAEZ,kBAAA,CAAUC,MAHS;IAI9BY,QAAQ,EAAEb,kBAAA,CAAUC,MAJU;IAK9Ba,IAAI,EAAEd,kBAAA,CAAUS,KAAV,CAAgB;MACpBM,QAAQ,EAAEf,kBAAA,CAAUC,MADA;MAEpBS,IAAI,EAAEV,kBAAA,CAAUC;IAFI,CAAhB,CALwB;IAS9Be,OAAO,EAAEhB,kBAAA,CAAUiB;EATW,CAAhB,CALO;EAgBvBC,eAAe,EAAElB,kBAAA,CAAUS,KAAV,CAAgB;IAC/BC,IAAI,EAAEV,kBAAA,CAAUC,MADe;IAE/BU,KAAK,EAAEX,kBAAA,CAAUC,MAFc;IAG/BW,SAAS,EAAEZ,kBAAA,CAAUC,MAHU;IAI/BY,QAAQ,EAAEb,kBAAA,CAAUC,MAJW;IAK/Ba,IAAI,EAAEd,kBAAA,CAAUS,KAAV,CAAgB;MACpBM,QAAQ,EAAEf,kBAAA,CAAUC,MADA;MAEpBS,IAAI,EAAEV,kBAAA,CAAUC;IAFI,CAAhB,CALyB;IAS/Be,OAAO,EAAEhB,kBAAA,CAAUiB;EATY,CAAhB;AAhBM,CAAlB"}
1
+ {"version":3,"file":"types.js","names":["propTypes","mainText","PropTypes","string","subText","imageUrl","Picture","src","progressionValue","number","leftButtonLink","shape","type","label","ariaLabel","dataName","icon","position","onClick","func","rightButtonLink"],"sources":["../../../src/molecule/uploading-file-progress/types.ts"],"sourcesContent":["import PropTypes from 'prop-types';\nimport {ButtonLinkProps} from '../../atom/button-link/types';\nimport Picture from '../../atom/picture';\n\nexport const propTypes = {\n mainText: PropTypes.string,\n subText: PropTypes.string,\n imageUrl: Picture.propTypes.src,\n progressionValue: PropTypes.number,\n leftButtonLink: PropTypes.shape({\n type: PropTypes.string,\n label: PropTypes.string,\n ariaLabel: PropTypes.string,\n dataName: PropTypes.string,\n icon: PropTypes.shape({\n position: PropTypes.string,\n type: PropTypes.string\n }),\n onClick: PropTypes.func\n }),\n rightButtonLink: PropTypes.shape({\n type: PropTypes.string,\n label: PropTypes.string,\n ariaLabel: PropTypes.string,\n dataName: PropTypes.string,\n icon: PropTypes.shape({\n position: PropTypes.string,\n type: PropTypes.string\n }),\n onClick: PropTypes.func\n })\n};\n\nexport type UploadingFileProgressProps = {\n mainText?: string;\n subText?: string;\n imageUrl?: PropTypes.InferProps<typeof Picture.propTypes.src>;\n progressionValue?: number;\n leftButtonLink?: ButtonLinkProps;\n rightButtonLink?: ButtonLinkProps;\n};\n"],"mappings":";;;;;AAAA;;AAEA;;;;AAEO,MAAMA,SAAS,GAAG;EACvBC,QAAQ,EAAEC,kBAAA,CAAUC,MADG;EAEvBC,OAAO,EAAEF,kBAAA,CAAUC,MAFI;EAGvBE,QAAQ,EAAEC,gBAAA,CAAQN,SAAR,CAAkBO,GAHL;EAIvBC,gBAAgB,EAAEN,kBAAA,CAAUO,MAJL;EAKvBC,cAAc,EAAER,kBAAA,CAAUS,KAAV,CAAgB;IAC9BC,IAAI,EAAEV,kBAAA,CAAUC,MADc;IAE9BU,KAAK,EAAEX,kBAAA,CAAUC,MAFa;IAG9BW,SAAS,EAAEZ,kBAAA,CAAUC,MAHS;IAI9BY,QAAQ,EAAEb,kBAAA,CAAUC,MAJU;IAK9Ba,IAAI,EAAEd,kBAAA,CAAUS,KAAV,CAAgB;MACpBM,QAAQ,EAAEf,kBAAA,CAAUC,MADA;MAEpBS,IAAI,EAAEV,kBAAA,CAAUC;IAFI,CAAhB,CALwB;IAS9Be,OAAO,EAAEhB,kBAAA,CAAUiB;EATW,CAAhB,CALO;EAgBvBC,eAAe,EAAElB,kBAAA,CAAUS,KAAV,CAAgB;IAC/BC,IAAI,EAAEV,kBAAA,CAAUC,MADe;IAE/BU,KAAK,EAAEX,kBAAA,CAAUC,MAFc;IAG/BW,SAAS,EAAEZ,kBAAA,CAAUC,MAHU;IAI/BY,QAAQ,EAAEb,kBAAA,CAAUC,MAJW;IAK/Ba,IAAI,EAAEd,kBAAA,CAAUS,KAAV,CAAgB;MACpBM,QAAQ,EAAEf,kBAAA,CAAUC,MADA;MAEpBS,IAAI,EAAEV,kBAAA,CAAUC;IAFI,CAAhB,CALyB;IAS/Be,OAAO,EAAEhB,kBAAA,CAAUiB;EATY,CAAhB;AAhBM,CAAlB"}
@@ -449,7 +449,6 @@ declare namespace BrandForm {
449
449
  type: PropTypes.Requireable<string>;
450
450
  }>>;
451
451
  onClick: PropTypes.Requireable<(...args: any[]) => any>;
452
- onKeyDown: PropTypes.Requireable<(...args: any[]) => any>;
453
452
  link: PropTypes.Requireable<PropTypes.InferProps<{
454
453
  href: PropTypes.Requireable<string>;
455
454
  download: PropTypes.Requireable<boolean>;
@@ -458,7 +457,6 @@ declare namespace BrandForm {
458
457
  disabled: PropTypes.Requireable<boolean>;
459
458
  className: PropTypes.Requireable<string>;
460
459
  customStyle: PropTypes.Requireable<PropTypes.InferProps<{}>>;
461
- useTitle: PropTypes.Requireable<boolean>;
462
460
  }> | PropTypes.InferProps<{
463
461
  type: PropTypes.Requireable<string>;
464
462
  title: PropTypes.Requireable<string>;
@@ -1,10 +1,9 @@
1
1
  export default ListItems;
2
- declare function ListItems({ title, buttonLink, items, "aria-label": ariaLabel, contentType }: {
2
+ declare function ListItems({ title, buttonLink, content, "aria-label": ariaLabel }: {
3
3
  title: any;
4
4
  buttonLink: any;
5
- items: any;
5
+ content: any;
6
6
  "aria-label": any;
7
- contentType: any;
8
7
  }): JSX.Element;
9
8
  declare namespace ListItems {
10
9
  const propTypes: {
@@ -20,7 +19,6 @@ declare namespace ListItems {
20
19
  type: PropTypes.Requireable<string>;
21
20
  }>>;
22
21
  onClick: PropTypes.Requireable<(...args: any[]) => any>;
23
- onKeyDown: PropTypes.Requireable<(...args: any[]) => any>;
24
22
  link: PropTypes.Requireable<PropTypes.InferProps<{
25
23
  href: PropTypes.Requireable<string>;
26
24
  download: PropTypes.Requireable<boolean>;
@@ -29,7 +27,6 @@ declare namespace ListItems {
29
27
  disabled: PropTypes.Requireable<boolean>;
30
28
  className: PropTypes.Requireable<string>;
31
29
  customStyle: PropTypes.Requireable<PropTypes.InferProps<{}>>;
32
- useTitle: PropTypes.Requireable<boolean>;
33
30
  }>>;
34
31
  items: PropTypes.Requireable<(PropTypes.InferProps<{
35
32
  bulletPointMenuButton: PropTypes.Requireable<PropTypes.InferProps<{
@@ -63,8 +60,114 @@ declare namespace ListItems {
63
60
  'aria-label': PropTypes.Requireable<string>;
64
61
  contentType: PropTypes.Requireable<string>;
65
62
  }> | null | undefined)[]>;
63
+ content: PropTypes.Requireable<NonNullable<PropTypes.InferProps<{
64
+ items: PropTypes.Requireable<(PropTypes.InferProps<{
65
+ bulletPointMenuButton: PropTypes.Requireable<PropTypes.InferProps<{
66
+ buttonAriaLabel: PropTypes.Requireable<string>;
67
+ menuAriaLabel: PropTypes.Requireable<string>;
68
+ buttons: PropTypes.Requireable<(PropTypes.InferProps<{
69
+ 'data-name': PropTypes.Requireable<string>;
70
+ label: PropTypes.Requireable<string>;
71
+ type: PropTypes.Requireable<string>;
72
+ onClick: PropTypes.Requireable<(...args: any[]) => any>;
73
+ }> | null | undefined)[]>;
74
+ onClick: PropTypes.Requireable<(...args: any[]) => any>;
75
+ }>>;
76
+ buttonLink: PropTypes.Requireable<PropTypes.InferProps<{
77
+ type: PropTypes.Requireable<string>;
78
+ label: PropTypes.Requireable<string>;
79
+ ariaLabel: PropTypes.Requireable<string>;
80
+ dataName: PropTypes.Requireable<string>;
81
+ icon: PropTypes.Requireable<PropTypes.InferProps<{
82
+ position: PropTypes.Requireable<string>;
83
+ type: PropTypes.Requireable<string>;
84
+ }>>;
85
+ onClick: PropTypes.Requireable<(...args: any[]) => any>;
86
+ }>>;
87
+ tags: PropTypes.Requireable<(PropTypes.InferProps<{
88
+ label: PropTypes.Requireable<string>;
89
+ type: PropTypes.Requireable<string>;
90
+ }> | null | undefined)[]>;
91
+ title: PropTypes.Validator<string>;
92
+ order: PropTypes.Requireable<number>;
93
+ 'aria-label': PropTypes.Requireable<string>;
94
+ contentType: PropTypes.Requireable<string>;
95
+ }> | null | undefined)[]>;
96
+ type: PropTypes.Requireable<string>;
97
+ itemType: PropTypes.Requireable<string>;
98
+ }> | PropTypes.InferProps<{
99
+ type: PropTypes.Requireable<string>;
100
+ columns: PropTypes.Requireable<(PropTypes.InferProps<{
101
+ title: PropTypes.Validator<string>;
102
+ }> | null | undefined)[]>;
103
+ rows: PropTypes.Requireable<(PropTypes.InferProps<{
104
+ fields: PropTypes.Requireable<(NonNullable<string | PropTypes.InferProps<{
105
+ type: PropTypes.Requireable<string>;
106
+ current: PropTypes.Requireable<boolean>;
107
+ icon: PropTypes.Requireable<string>;
108
+ value: PropTypes.Requireable<string>;
109
+ }> | null | undefined> | null | undefined)[]>;
110
+ isRowExpandible: PropTypes.Requireable<boolean>;
111
+ lastField: PropTypes.Requireable<NonNullable<string | PropTypes.InferProps<{
112
+ type: PropTypes.Requireable<string>;
113
+ disabled: PropTypes.Requireable<boolean>;
114
+ buttonAriaLabel: PropTypes.Requireable<string>;
115
+ menuAriaLabel: PropTypes.Requireable<string>;
116
+ buttons: PropTypes.Validator<(PropTypes.InferProps<{
117
+ 'data-name': PropTypes.Requireable<string>;
118
+ disabled: PropTypes.Requireable<boolean>;
119
+ label: PropTypes.Validator<string>;
120
+ onClick: PropTypes.Validator<(...args: any[]) => any>;
121
+ type: PropTypes.Requireable<string>;
122
+ }> | null | undefined)[]>;
123
+ onClick: PropTypes.Requireable<(...args: any[]) => any>;
124
+ menuButtonClassName: PropTypes.Requireable<string>;
125
+ isBulkMenu: PropTypes.Requireable<boolean>;
126
+ }> | null | undefined>>;
127
+ }> | null | undefined)[]>;
128
+ stickyFirstColumn: PropTypes.Requireable<boolean>;
129
+ stickyLastColumn: PropTypes.Requireable<boolean>;
130
+ columnWidth: PropTypes.Requireable<string>;
131
+ ariaDescribedby: PropTypes.Requireable<string>;
132
+ lastField: PropTypes.Requireable<NonNullable<PropTypes.InferProps<{
133
+ componentType: PropTypes.Requireable<string>;
134
+ type: PropTypes.Requireable<string>;
135
+ label: PropTypes.Requireable<string>;
136
+ 'aria-label': PropTypes.Requireable<string>;
137
+ 'data-name': PropTypes.Requireable<string>;
138
+ 'data-testid': PropTypes.Requireable<string>;
139
+ icon: PropTypes.Requireable<PropTypes.InferProps<{
140
+ position: PropTypes.Requireable<string>;
141
+ type: PropTypes.Requireable<string>;
142
+ }>>;
143
+ onClick: PropTypes.Requireable<(...args: any[]) => any>;
144
+ link: PropTypes.Requireable<PropTypes.InferProps<{
145
+ href: PropTypes.Requireable<string>;
146
+ download: PropTypes.Requireable<boolean>;
147
+ target: PropTypes.Requireable<string>;
148
+ }>>;
149
+ disabled: PropTypes.Requireable<boolean>;
150
+ className: PropTypes.Requireable<string>;
151
+ customStyle: PropTypes.Requireable<PropTypes.InferProps<{}>>;
152
+ }> | PropTypes.InferProps<{
153
+ componentType: PropTypes.Requireable<string>;
154
+ disabled: PropTypes.Requireable<boolean>;
155
+ buttonAriaLabel: PropTypes.Requireable<string>;
156
+ menuAriaLabel: PropTypes.Requireable<string>;
157
+ buttons: PropTypes.Validator<(PropTypes.InferProps<{
158
+ 'data-name': PropTypes.Requireable<string>;
159
+ disabled: PropTypes.Requireable<boolean>;
160
+ label: PropTypes.Validator<string>;
161
+ onClick: PropTypes.Validator<(...args: any[]) => any>;
162
+ type: PropTypes.Requireable<string>;
163
+ }> | null | undefined)[]>;
164
+ onClick: PropTypes.Requireable<(...args: any[]) => any>;
165
+ menuButtonClassName: PropTypes.Requireable<string>;
166
+ isBulkMenu: PropTypes.Requireable<boolean>;
167
+ }> | null | undefined>>;
168
+ isNestedTable: PropTypes.Requireable<boolean>;
169
+ }> | null | undefined>>;
66
170
  title: PropTypes.Requireable<string>;
67
- contentType: PropTypes.Requireable<string>;
68
171
  };
69
172
  }
70
173
  import PropTypes from "prop-types";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/organism/list-items/index.js"],"names":[],"mappings":";AAOA;;;;;;gBAsBC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/organism/list-items/index.js"],"names":[],"mappings":";AA+BA;;;;;gBAgBC"}
@@ -13,27 +13,55 @@ var _title = _interopRequireDefault(require("../../atom/title"));
13
13
 
14
14
  var _buttonLink = _interopRequireDefault(require("../../atom/button-link"));
15
15
 
16
+ var _expandibleActionableTable = _interopRequireDefault(require("../../molecule/expandible-actionable-table"));
17
+
16
18
  var _style = _interopRequireDefault(require("./style.css"));
17
19
 
18
20
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
19
21
 
20
22
  function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
21
23
 
22
- const ListItems = ({
23
- title,
24
- buttonLink,
25
- items,
26
- 'aria-label': ariaLabel,
27
- contentType
28
- }) => {
24
+ const buildListItemsView = (content, ariaLabel) => {
25
+ const {
26
+ items,
27
+ itemType
28
+ } = content;
29
29
  const itemsView = items.map((item, index) => /*#__PURE__*/_react.default.createElement("li", {
30
30
  key: item.id,
31
31
  className: _style.default.item,
32
32
  "data-name": `content-${index}`
33
33
  }, /*#__PURE__*/_react.default.createElement(_listItem.default, _extends({}, item, {
34
34
  order: index,
35
- contentType: contentType
35
+ contentType: itemType
36
36
  }))));
37
+ return /*#__PURE__*/_react.default.createElement("ul", {
38
+ className: _style.default.list,
39
+ "aria-label": ariaLabel,
40
+ "data-name": 'content-list'
41
+ }, itemsView);
42
+ };
43
+
44
+ const buildContentView = (content, ariaLabel) => {
45
+ const {
46
+ type
47
+ } = content;
48
+
49
+ switch (type) {
50
+ case 'list':
51
+ return buildListItemsView(content, ariaLabel);
52
+
53
+ case 'expandible-actionable-table':
54
+ return /*#__PURE__*/_react.default.createElement(_expandibleActionableTable.default, content);
55
+ }
56
+ };
57
+
58
+ const ListItems = ({
59
+ title,
60
+ buttonLink,
61
+ content,
62
+ 'aria-label': ariaLabel
63
+ }) => {
64
+ const contentView = buildContentView(content, ariaLabel);
37
65
  return /*#__PURE__*/_react.default.createElement("div", null, /*#__PURE__*/_react.default.createElement("div", {
38
66
  className: _style.default.header
39
67
  }, /*#__PURE__*/_react.default.createElement("div", {
@@ -44,19 +72,21 @@ const ListItems = ({
44
72
  "data-name": 'list-title'
45
73
  })), /*#__PURE__*/_react.default.createElement("div", {
46
74
  className: _style.default.buttonCreate
47
- }, /*#__PURE__*/_react.default.createElement(_buttonLink.default, buttonLink))), /*#__PURE__*/_react.default.createElement("ul", {
48
- className: _style.default.list,
49
- "aria-label": ariaLabel,
50
- "data-name": 'content-list'
51
- }, itemsView));
75
+ }, /*#__PURE__*/_react.default.createElement(_buttonLink.default, buttonLink))), contentView);
52
76
  };
53
77
 
54
78
  ListItems.propTypes = process.env.NODE_ENV !== "production" ? {
55
79
  'aria-label': _propTypes.default.string,
56
80
  buttonLink: _propTypes.default.shape(_buttonLink.default.propTypes),
57
81
  items: _propTypes.default.arrayOf(_propTypes.default.shape(_listItem.default.propTypes)),
58
- title: _propTypes.default.string,
59
- contentType: _propTypes.default.string
82
+ content: _propTypes.default.oneOfType([_propTypes.default.shape({
83
+ items: _propTypes.default.arrayOf(_propTypes.default.shape(_listItem.default.propTypes)),
84
+ type: _propTypes.default.oneOf(['list']),
85
+ itemType: _propTypes.default.string
86
+ }), _propTypes.default.shape(_extends({}, _expandibleActionableTable.default.propTypes, {
87
+ type: _propTypes.default.oneOf(['expandible-actionable-table'])
88
+ }))]),
89
+ title: _propTypes.default.string
60
90
  } : {};
61
91
  var _default = ListItems;
62
92
  exports.default = _default;
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["ListItems","title","buttonLink","items","ariaLabel","contentType","itemsView","map","item","index","id","style","header","buttonCreate","list","propTypes","PropTypes","string","shape","ButtonLink","arrayOf","ListItem"],"sources":["../../../src/organism/list-items/index.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport ListItem from '../list-item';\nimport Title from '../../atom/title';\nimport ButtonLink from '../../atom/button-link';\nimport style from './style.css';\n\nconst ListItems = ({title, buttonLink, items, 'aria-label': ariaLabel, contentType}) => {\n const itemsView = items.map((item, index) => (\n <li key={item.id} className={style.item} data-name={`content-${index}`}>\n <ListItem {...item} order={index} contentType={contentType} />\n </li>\n ));\n\n return (\n <div>\n <div className={style.header}>\n <div className={style.title}>\n <Title title={title} type={'form-group'} data-name={'list-title'} />\n </div>\n <div className={style.buttonCreate}>\n <ButtonLink {...buttonLink} />\n </div>\n </div>\n <ul className={style.list} aria-label={ariaLabel} data-name={'content-list'}>\n {itemsView}\n </ul>\n </div>\n );\n};\n\nListItems.propTypes = {\n 'aria-label': PropTypes.string,\n buttonLink: PropTypes.shape(ButtonLink.propTypes),\n items: PropTypes.arrayOf(PropTypes.shape(ListItem.propTypes)),\n title: PropTypes.string,\n contentType: PropTypes.string\n};\n\nexport default ListItems;\n"],"mappings":";;;;;AAAA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;;;AAEA,MAAMA,SAAS,GAAG,CAAC;EAACC,KAAD;EAAQC,UAAR;EAAoBC,KAApB;EAA2B,cAAcC,SAAzC;EAAoDC;AAApD,CAAD,KAAsE;EACtF,MAAMC,SAAS,GAAGH,KAAK,CAACI,GAAN,CAAU,CAACC,IAAD,EAAOC,KAAP,kBAC1B;IAAI,GAAG,EAAED,IAAI,CAACE,EAAd;IAAkB,SAAS,EAAEC,cAAA,CAAMH,IAAnC;IAAyC,aAAY,WAAUC,KAAM;EAArE,gBACE,6BAAC,iBAAD,eAAcD,IAAd;IAAoB,KAAK,EAAEC,KAA3B;IAAkC,WAAW,EAAEJ;EAA/C,GADF,CADgB,CAAlB;EAMA,oBACE,uDACE;IAAK,SAAS,EAAEM,cAAA,CAAMC;EAAtB,gBACE;IAAK,SAAS,EAAED,cAAA,CAAMV;EAAtB,gBACE,6BAAC,cAAD;IAAO,KAAK,EAAEA,KAAd;IAAqB,IAAI,EAAE,YAA3B;IAAyC,aAAW;EAApD,EADF,CADF,eAIE;IAAK,SAAS,EAAEU,cAAA,CAAME;EAAtB,gBACE,6BAAC,mBAAD,EAAgBX,UAAhB,CADF,CAJF,CADF,eASE;IAAI,SAAS,EAAES,cAAA,CAAMG,IAArB;IAA2B,cAAYV,SAAvC;IAAkD,aAAW;EAA7D,GACGE,SADH,CATF,CADF;AAeD,CAtBD;;AAwBAN,SAAS,CAACe,SAAV,2CAAsB;EACpB,cAAcC,kBAAA,CAAUC,MADJ;EAEpBf,UAAU,EAAEc,kBAAA,CAAUE,KAAV,CAAgBC,mBAAA,CAAWJ,SAA3B,CAFQ;EAGpBZ,KAAK,EAAEa,kBAAA,CAAUI,OAAV,CAAkBJ,kBAAA,CAAUE,KAAV,CAAgBG,iBAAA,CAASN,SAAzB,CAAlB,CAHa;EAIpBd,KAAK,EAAEe,kBAAA,CAAUC,MAJG;EAKpBZ,WAAW,EAAEW,kBAAA,CAAUC;AALH,CAAtB;eAQejB,S"}
1
+ {"version":3,"file":"index.js","names":["buildListItemsView","content","ariaLabel","items","itemType","itemsView","map","item","index","id","style","list","buildContentView","type","ListItems","title","buttonLink","contentView","header","buttonCreate","propTypes","PropTypes","string","shape","ButtonLink","arrayOf","ListItem","oneOfType","oneOf","ExpandibleActionableTable"],"sources":["../../../src/organism/list-items/index.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport ListItem from '../list-item';\nimport Title from '../../atom/title';\nimport ButtonLink from '../../atom/button-link';\nimport ExpandibleActionableTable from '../../molecule/expandible-actionable-table';\nimport style from './style.css';\n\nconst buildListItemsView = (content, ariaLabel) => {\n const {items, itemType} = content;\n const itemsView = items.map((item, index) => (\n <li key={item.id} className={style.item} data-name={`content-${index}`}>\n <ListItem {...item} order={index} contentType={itemType} />\n </li>\n ));\n return (\n <ul className={style.list} aria-label={ariaLabel} data-name={'content-list'}>\n {itemsView}\n </ul>\n );\n};\nconst buildContentView = (content, ariaLabel) => {\n const {type} = content;\n switch (type) {\n case 'list':\n return buildListItemsView(content, ariaLabel);\n case 'expandible-actionable-table':\n return <ExpandibleActionableTable {...content} />;\n }\n};\n\nconst ListItems = ({title, buttonLink, content, 'aria-label': ariaLabel}) => {\n const contentView = buildContentView(content, ariaLabel);\n\n return (\n <div>\n <div className={style.header}>\n <div className={style.title}>\n <Title title={title} type={'form-group'} data-name={'list-title'} />\n </div>\n <div className={style.buttonCreate}>\n <ButtonLink {...buttonLink} />\n </div>\n </div>\n {contentView}\n </div>\n );\n};\n\nListItems.propTypes = {\n 'aria-label': PropTypes.string,\n buttonLink: PropTypes.shape(ButtonLink.propTypes),\n items: PropTypes.arrayOf(PropTypes.shape(ListItem.propTypes)),\n content: PropTypes.oneOfType([\n PropTypes.shape({\n items: PropTypes.arrayOf(PropTypes.shape(ListItem.propTypes)),\n type: PropTypes.oneOf(['list']),\n itemType: PropTypes.string\n }),\n PropTypes.shape({\n ...ExpandibleActionableTable.propTypes,\n type: PropTypes.oneOf(['expandible-actionable-table'])\n })\n ]),\n title: PropTypes.string\n};\n\nexport default ListItems;\n"],"mappings":";;;;;AAAA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;;;AAEA,MAAMA,kBAAkB,G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AAgBH,UAAhB,CADF,CAJF,CADF,EASGC,WATH,CADF;AAaD,CAhBD;;AAkBAH,SAAS,CAACM,SAAV,2CAAsB;EACpB,cAAcC,kBAAA,CAAUC,MADJ;EAEpBN,UAAU,EAAEK,kBAAA,CAAUE,KAAV,CAAgBC,mBAAA,CAAWJ,SAA3B,CAFQ;EAGpBjB,KAAK,EAAEkB,kBAAA,CAAUI,OAAV,CAAkBJ,kBAAA,CAAUE,KAAV,CAAgBG,iBAAA,CAASN,SAAzB,CAAlB,CAHa;EAIpBnB,OAAO,EAAEoB,kBAAA,CAAUM,SAAV,CAAoB,CAC3BN,kBAAA,CAAUE,KAAV,CAAgB;IACdpB,KAAK,EAAEkB,kBAAA,CAAUI,OAAV,CAAkBJ,kBAAA,CAAUE,KAAV,CAAgBG,iBAAA,CAASN,SAAzB,CAAlB,CADO;IAEdP,IAAI,EAAEQ,kBAAA,CAAUO,KAAV,CAAgB,CAAC,MAAD,CAAhB,CAFQ;IAGdxB,QAAQ,EAAEiB,kBAAA,CAAUC;EAHN,CAAhB,CAD2B,EAM3BD,kBAAA,CAAUE,KAAV,cACKM,kCAAA,CAA0BT,SAD/B;IAEEP,IAAI,EAAEQ,kBAAA,CAAUO,KAAV,CAAgB,CAAC,6BAAD,CAAhB;EAFR,GAN2B,CAApB,CAJW;EAepBb,KAAK,EAAEM,kBAAA,CAAUC;AAfG,CAAtB;eAkBeR,S"}
@@ -14,7 +14,6 @@ declare namespace SetupHeader {
14
14
  type: PropTypes.Requireable<string>;
15
15
  }>>;
16
16
  onClick: PropTypes.Requireable<(...args: any[]) => any>;
17
- onKeyDown: PropTypes.Requireable<(...args: any[]) => any>;
18
17
  link: PropTypes.Requireable<PropTypes.InferProps<{
19
18
  href: PropTypes.Requireable<string>;
20
19
  download: PropTypes.Requireable<boolean>;
@@ -23,7 +22,6 @@ declare namespace SetupHeader {
23
22
  disabled: PropTypes.Requireable<boolean>;
24
23
  className: PropTypes.Requireable<string>;
25
24
  customStyle: PropTypes.Requireable<PropTypes.InferProps<{}>>;
26
- useTitle: PropTypes.Requireable<boolean>;
27
25
  }>>;
28
26
  logOut: PropTypes.Requireable<PropTypes.InferProps<{
29
27
  type: PropTypes.Requireable<string>;
@@ -36,7 +34,6 @@ declare namespace SetupHeader {
36
34
  type: PropTypes.Requireable<string>;
37
35
  }>>;
38
36
  onClick: PropTypes.Requireable<(...args: any[]) => any>;
39
- onKeyDown: PropTypes.Requireable<(...args: any[]) => any>;
40
37
  link: PropTypes.Requireable<PropTypes.InferProps<{
41
38
  href: PropTypes.Requireable<string>;
42
39
  download: PropTypes.Requireable<boolean>;
@@ -45,7 +42,6 @@ declare namespace SetupHeader {
45
42
  disabled: PropTypes.Requireable<boolean>;
46
43
  className: PropTypes.Requireable<string>;
47
44
  customStyle: PropTypes.Requireable<PropTypes.InferProps<{}>>;
48
- useTitle: PropTypes.Requireable<boolean>;
49
45
  }>>;
50
46
  globalAnalytics: PropTypes.Requireable<PropTypes.InferProps<{
51
47
  type: PropTypes.Requireable<string>;
@@ -58,7 +54,6 @@ declare namespace SetupHeader {
58
54
  type: PropTypes.Requireable<string>;
59
55
  }>>;
60
56
  onClick: PropTypes.Requireable<(...args: any[]) => any>;
61
- onKeyDown: PropTypes.Requireable<(...args: any[]) => any>;
62
57
  link: PropTypes.Requireable<PropTypes.InferProps<{
63
58
  href: PropTypes.Requireable<string>;
64
59
  download: PropTypes.Requireable<boolean>;
@@ -67,7 +62,6 @@ declare namespace SetupHeader {
67
62
  disabled: PropTypes.Requireable<boolean>;
68
63
  className: PropTypes.Requireable<string>;
69
64
  customStyle: PropTypes.Requireable<PropTypes.InferProps<{}>>;
70
- useTitle: PropTypes.Requireable<boolean>;
71
65
  }>>;
72
66
  platformList: PropTypes.Requireable<PropTypes.InferProps<{
73
67
  type: PropTypes.Requireable<string>;
@@ -80,7 +74,6 @@ declare namespace SetupHeader {
80
74
  type: PropTypes.Requireable<string>;
81
75
  }>>;
82
76
  onClick: PropTypes.Requireable<(...args: any[]) => any>;
83
- onKeyDown: PropTypes.Requireable<(...args: any[]) => any>;
84
77
  link: PropTypes.Requireable<PropTypes.InferProps<{
85
78
  href: PropTypes.Requireable<string>;
86
79
  download: PropTypes.Requireable<boolean>;
@@ -89,7 +82,6 @@ declare namespace SetupHeader {
89
82
  disabled: PropTypes.Requireable<boolean>;
90
83
  className: PropTypes.Requireable<string>;
91
84
  customStyle: PropTypes.Requireable<PropTypes.InferProps<{}>>;
92
- useTitle: PropTypes.Requireable<boolean>;
93
85
  }>>;
94
86
  }>>;
95
87
  const platformName: PropTypes.Requireable<string>;
@@ -466,7 +466,6 @@ declare namespace WizardContents {
466
466
  type: PropTypes.Requireable<string>;
467
467
  }>>;
468
468
  onClick: PropTypes.Requireable<(...args: any[]) => any>;
469
- onKeyDown: PropTypes.Requireable<(...args: any[]) => any>;
470
469
  link: PropTypes.Requireable<PropTypes.InferProps<{
471
470
  href: PropTypes.Requireable<string>;
472
471
  download: PropTypes.Requireable<boolean>;
@@ -475,7 +474,6 @@ declare namespace WizardContents {
475
474
  disabled: PropTypes.Requireable<boolean>;
476
475
  className: PropTypes.Requireable<string>;
477
476
  customStyle: PropTypes.Requireable<PropTypes.InferProps<{}>>;
478
- useTitle: PropTypes.Requireable<boolean>;
479
477
  }> | PropTypes.InferProps<{
480
478
  type: PropTypes.Requireable<string>;
481
479
  title: PropTypes.Requireable<string>;
@@ -726,6 +724,77 @@ declare namespace WizardContents {
726
724
  'data-name': PropTypes.Requireable<string>;
727
725
  }> | null | undefined>>;
728
726
  }> | null | undefined)[]>;
727
+ }> | PropTypes.InferProps<{
728
+ type: PropTypes.Requireable<string>;
729
+ columns: PropTypes.Requireable<(PropTypes.InferProps<{
730
+ title: PropTypes.Validator<string>;
731
+ }> | null | undefined)[]>;
732
+ rows: PropTypes.Requireable<(PropTypes.InferProps<{
733
+ fields: PropTypes.Requireable<(NonNullable<string | PropTypes.InferProps<{
734
+ type: PropTypes.Requireable<string>;
735
+ current: PropTypes.Requireable<boolean>;
736
+ icon: PropTypes.Requireable<string>;
737
+ value: PropTypes.Requireable<string>;
738
+ }> | null | undefined> | null | undefined)[]>;
739
+ isRowExpandible: PropTypes.Requireable<boolean>;
740
+ lastField: PropTypes.Requireable<NonNullable<string | PropTypes.InferProps<{
741
+ type: PropTypes.Requireable<string>;
742
+ disabled: PropTypes.Requireable<boolean>;
743
+ buttonAriaLabel: PropTypes.Requireable<string>;
744
+ menuAriaLabel: PropTypes.Requireable<string>;
745
+ buttons: PropTypes.Validator<(PropTypes.InferProps<{
746
+ 'data-name': PropTypes.Requireable<string>;
747
+ disabled: PropTypes.Requireable<boolean>;
748
+ label: PropTypes.Validator<string>;
749
+ onClick: PropTypes.Validator<(...args: any[]) => any>;
750
+ type: PropTypes.Requireable<string>;
751
+ }> | null | undefined)[]>;
752
+ onClick: PropTypes.Requireable<(...args: any[]) => any>;
753
+ menuButtonClassName: PropTypes.Requireable<string>;
754
+ isBulkMenu: PropTypes.Requireable<boolean>;
755
+ }> | null | undefined>>;
756
+ }> | null | undefined)[]>;
757
+ stickyFirstColumn: PropTypes.Requireable<boolean>;
758
+ stickyLastColumn: PropTypes.Requireable<boolean>;
759
+ columnWidth: PropTypes.Requireable<string>;
760
+ ariaDescribedby: PropTypes.Requireable<string>;
761
+ lastField: PropTypes.Requireable<NonNullable<PropTypes.InferProps<{
762
+ componentType: PropTypes.Requireable<string>;
763
+ type: PropTypes.Requireable<string>;
764
+ label: PropTypes.Requireable<string>;
765
+ 'aria-label': PropTypes.Requireable<string>;
766
+ 'data-name': PropTypes.Requireable<string>;
767
+ 'data-testid': PropTypes.Requireable<string>;
768
+ icon: PropTypes.Requireable<PropTypes.InferProps<{
769
+ position: PropTypes.Requireable<string>;
770
+ type: PropTypes.Requireable<string>;
771
+ }>>;
772
+ onClick: PropTypes.Requireable<(...args: any[]) => any>;
773
+ link: PropTypes.Requireable<PropTypes.InferProps<{
774
+ href: PropTypes.Requireable<string>;
775
+ download: PropTypes.Requireable<boolean>;
776
+ target: PropTypes.Requireable<string>;
777
+ }>>;
778
+ disabled: PropTypes.Requireable<boolean>;
779
+ className: PropTypes.Requireable<string>;
780
+ customStyle: PropTypes.Requireable<PropTypes.InferProps<{}>>;
781
+ }> | PropTypes.InferProps<{
782
+ componentType: PropTypes.Requireable<string>;
783
+ disabled: PropTypes.Requireable<boolean>;
784
+ buttonAriaLabel: PropTypes.Requireable<string>;
785
+ menuAriaLabel: PropTypes.Requireable<string>;
786
+ buttons: PropTypes.Validator<(PropTypes.InferProps<{
787
+ 'data-name': PropTypes.Requireable<string>;
788
+ disabled: PropTypes.Requireable<boolean>;
789
+ label: PropTypes.Validator<string>;
790
+ onClick: PropTypes.Validator<(...args: any[]) => any>;
791
+ type: PropTypes.Requireable<string>;
792
+ }> | null | undefined)[]>;
793
+ onClick: PropTypes.Requireable<(...args: any[]) => any>;
794
+ menuButtonClassName: PropTypes.Requireable<string>;
795
+ isBulkMenu: PropTypes.Requireable<boolean>;
796
+ }> | null | undefined>>;
797
+ isNestedTable: PropTypes.Requireable<boolean>;
729
798
  }> | null | undefined>>;
730
799
  const previousStep: PropTypes.Requireable<PropTypes.InferProps<{
731
800
  label: PropTypes.Requireable<string>;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/organism/wizard-contents/index.js"],"names":[],"mappings":";AAmHA,yDAoCC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/organism/wizard-contents/index.js"],"names":[],"mappings":";AAsHA,yDAoCC"}
@@ -29,6 +29,8 @@ var _courseSections = _interopRequireDefault(require("../../molecule/course-sect
29
29
 
30
30
  var _rewardsForm = _interopRequireDefault(require("../rewards-form"));
31
31
 
32
+ var _expandibleActionableTable = _interopRequireDefault(require("../../molecule/expandible-actionable-table"));
33
+
32
34
  var _style = _interopRequireDefault(require("./style.css"));
33
35
 
34
36
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
@@ -80,6 +82,9 @@ const buildForm = content => {
80
82
 
81
83
  case 'rewards':
82
84
  return /*#__PURE__*/_react.default.createElement(_rewardsForm.default, content);
85
+
86
+ case 'expandible-table':
87
+ return /*#__PURE__*/_react.default.createElement(_expandibleActionableTable.default, content);
83
88
  }
84
89
  };
85
90
 
@@ -212,6 +217,8 @@ WizardContents.propTypes = process.env.NODE_ENV !== "production" ? {
212
217
  type: _propTypes.default.oneOf(['organize-courses'])
213
218
  })), _propTypes.default.shape(_extends({}, _rewardsForm.default.propTypes, {
214
219
  type: _propTypes.default.oneOf(['rewards'])
220
+ })), _propTypes.default.shape(_extends({}, _expandibleActionableTable.default.propTypes, {
221
+ type: _propTypes.default.oneOf(['expandible-table'])
215
222
  }))]),
216
223
  previousStep: _propTypes.default.shape({
217
224
  label: _propTypes.default.string,
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["buildHeader","wizardHeader","steps","title","onClick","buttonCloseIcon","size","icon","style","header","headerTitle","buildForm","content","type","buildButton","step","side","ICONS","previous","position","next","publish","label","buttonProps","buildActionZone","previousStep","nextStep","previousButton","nextStepType","getOr","nextButton","actionZone","button","THEMES","container","containerWithoutSummary","footer","footerWithoutSummary","actionFooter","actionFooterWithoutSummary","leftSection","leftSectionWithoutSummary","summary","getTheme","WizardContents","props","isLoading","headerView","formView","rightActionView","footerActionView","currentStyle","summaryWrapper","rightSection","stickySection","summaryZone","form","summaryFooter","propTypes","PropTypes","bool","shape","string","func","isRequired","WizardSteps","WizardSummary","oneOfType","BrandForm","oneOf","ContentTranslate","OrganismSearchAndChipsResults","CourseSelection","CourseSections","RewardsForm"],"sources":["../../../src/organism/wizard-contents/index.js"],"sourcesContent":["import React from 'react';\nimport getOr from 'lodash/fp/getOr';\nimport PropTypes from 'prop-types';\nimport ButtonLink from '../../atom/button-link';\nimport ButtonLinkIconOnly from '../../atom/button-link-icon-only';\nimport WizardSteps from '../../atom/wizard-steps';\nimport WizardSummary from '../../molecule/wizard-summary';\nimport BrandForm from '../brand-form';\nimport ContentTranslate from '../content-translation';\nimport OrganismSearchAndChipsResults from '../search-and-chips-results';\nimport CourseSelection from '../course-selection';\nimport CourseSections from '../../molecule/course-sections';\nimport RewardsForm from '../rewards-form';\nimport style from './style.css';\n\nconst buildHeader = (wizardHeader, steps) => {\n const {title, onClick} = wizardHeader;\n\n const buttonCloseIcon = {\n size: 'small',\n 'data-name': 'close-button',\n 'aria-label': 'close button',\n icon: 'close',\n onClick\n };\n\n return (\n <div>\n <div className={style.header}>\n <ButtonLinkIconOnly {...buttonCloseIcon} />\n <div className={style.headerTitle} data-name={'content-title'}>\n {title}\n </div>\n </div>\n <WizardSteps steps={steps} />\n </div>\n );\n};\n\nconst buildForm = content => {\n const {type} = content;\n switch (type) {\n case 'form':\n return <BrandForm {...content} />;\n case 'translate':\n return <ContentTranslate {...content} />;\n case 'populations':\n return <OrganismSearchAndChipsResults {...content} />;\n case 'courses':\n return <CourseSelection {...content} />;\n case 'organize-courses':\n return <CourseSections {...content} />;\n case 'rewards':\n return <RewardsForm {...content} />;\n }\n};\n\nconst buildButton = (type, step, side) => {\n const ICONS = {\n previous: {\n position: 'left',\n type: 'chevron-left'\n },\n next: {\n position: 'right',\n type: 'chevron-right'\n },\n publish: {\n position: 'left',\n type: 'publish'\n }\n };\n\n const {label, onClick} = step;\n const buttonProps = {\n type: type === 'previous' ? 'secondary' : 'primary',\n 'aria-label': `${type} step button`,\n 'data-name': `${type}-step-button-${side}`,\n icon: ICONS[type],\n label,\n onClick\n };\n\n return <ButtonLink {...buttonProps} />;\n};\n\nconst buildActionZone = (previousStep, nextStep, side) => {\n const previousButton = previousStep ? buildButton('previous', previousStep, side) : null;\n const nextStepType = getOr('next', 'type', nextStep);\n const nextButton = nextStep ? buildButton(nextStepType, nextStep, side) : null;\n return (\n <div className={style.actionZone}>\n <div className={style.button}>{previousButton}</div>\n <div className={style.button}>{nextButton}</div>\n </div>\n );\n};\n\nconst THEMES = {\n 'no-summary': {\n container: style.containerWithoutSummary,\n footer: style.footerWithoutSummary,\n actionFooter: style.actionFooterWithoutSummary,\n leftSection: style.leftSectionWithoutSummary\n },\n summary: {\n container: style.container,\n footer: style.footer,\n actionFooter: style.actionFooter,\n leftSection: style.leftSection\n }\n};\n\nconst getTheme = summary => (summary ? 'summary' : 'no-summary');\n\nconst WizardContents = props => {\n const {isLoading, wizardHeader, steps, summary, content, nextStep, previousStep} = props;\n const headerView = buildHeader(wizardHeader, steps);\n const formView = buildForm({...content, isLoading});\n const rightActionView = buildActionZone(previousStep, nextStep, 'right');\n const footerActionView = buildActionZone(previousStep, nextStep, 'footer');\n const currentStyle = THEMES[getTheme(summary)];\n\n const summaryWrapper = (\n <div className={style.rightSection} data-name=\"summary-right-section\">\n <div className={style.stickySection}>\n <div className={style.summaryZone} data-name=\"summary-zone\">\n <WizardSummary {...summary} side={'right'} />\n </div>\n {rightActionView}\n </div>\n </div>\n );\n\n return (\n <div className={currentStyle.container} data-name=\"content-summary\">\n <div className={currentStyle.leftSection}>\n {headerView}\n <div className={style.form}>{formView}</div>\n </div>\n {summary ? summaryWrapper : null}\n <div className={currentStyle.footer} data-name=\"footer-section\">\n {summary ? (\n <div className={style.summaryFooter}>\n <WizardSummary {...summary} side={'footer'} />\n </div>\n ) : null}\n <div className={currentStyle.actionFooter}>{footerActionView}</div>\n </div>\n </div>\n );\n};\n\nWizardContents.propTypes = {\n isLoading: PropTypes.bool,\n wizardHeader: PropTypes.shape({\n title: PropTypes.string,\n onClick: PropTypes.func\n }).isRequired,\n steps: WizardSteps.propTypes.steps,\n summary: PropTypes.shape({\n ...WizardSummary.propTypes\n }),\n content: PropTypes.oneOfType([\n PropTypes.shape({\n ...BrandForm.propTypes,\n type: PropTypes.oneOf(['form'])\n }),\n PropTypes.shape({\n ...ContentTranslate.propTypes,\n type: PropTypes.oneOf(['translate'])\n }),\n PropTypes.shape({\n ...OrganismSearchAndChipsResults.propTypes,\n type: PropTypes.oneOf(['populations'])\n }),\n PropTypes.shape({\n ...CourseSelection.propTypes,\n type: PropTypes.oneOf(['courses'])\n }),\n PropTypes.shape({\n ...CourseSections.propTypes,\n type: PropTypes.oneOf(['organize-courses'])\n }),\n PropTypes.shape({\n ...RewardsForm.propTypes,\n type: PropTypes.oneOf(['rewards'])\n })\n ]),\n previousStep: PropTypes.shape({\n label: PropTypes.string,\n onClick: PropTypes.func\n }),\n nextStep: PropTypes.shape({\n type: PropTypes.oneOf(['next', 'publish']),\n label: PropTypes.string,\n onClick: PropTypes.func\n })\n};\n\nexport default WizardContents;\n"],"mappings":";;;;;AAAA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;;;AAEA,MAAMA,WAAW,GAAG,CAACC,YAAD,EAAeC,KAAf,KAAyB;EAC3C,MAAM;IAACC,KAAD;IAAQC;EAAR,IAAmBH,YAAzB;EAEA,MAAMI,eAAe,GAAG;IACtBC,IAAI,EAAE,OADgB;IAEtB,aAAa,cAFS;IAGtB,cAAc,cAHQ;IAItBC,IAAI,EAAE,OAJgB;IAKtBH;EALsB,CAAxB;EAQA,oBACE,uDACE;IAAK,SAAS,EAAEI,cAAA,CAAMC;EAAtB,gBACE,6BAAC,2BAAD,EAAwBJ,eAAxB,CADF,eAEE;IAAK,SAAS,EAAEG,cAAA,CAAME,WAAtB;IAAmC,aAAW;EAA9C,GACGP,KADH,CAFF,CADF,eAOE,6BAAC,oBAAD;IAAa,KAAK,EAAED;EAApB,EAPF,CADF;AAWD,CAtBD;;AAwBA,MAAMS,SAAS,GAAGC,OAAO,IAAI;EAC3B,MAAM;IAACC;EAAD,IAASD,OAAf;;EACA,QAAQC,IAAR;IACE,KAAK,MAAL;MACE,oBAAO,6BAAC,kBAAD,EAAeD,OAAf,CAAP;;IACF,KAAK,WAAL;MACE,oBAAO,6BAAC,2BAAD,EAAsBA,OAAtB,CAAP;;IACF,KAAK,aAAL;MACE,oBAAO,6BAAC,8BAAD,EAAmCA,OAAnC,CAAP;;IACF,KAAK,SAAL;M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,EAAEqC,kBAAA,CAAUG,MAFO;IAGxB1D,OAAO,EAAEuD,kBAAA,CAAUI;EAHK,CAAhB;AAxCe,CAA3B;eA+CenB,c"}
1
+ {"version":3,"file":"index.js","names":["buildHeader","wizardHeader","steps","title","onClick","buttonCloseIcon","size","icon","style","header","headerTitle","buildForm","content","type","buildButton","step","side","ICONS","previous","position","next","publish","label","buttonProps","buildActionZone","previousStep","nextStep","previousButton","nextStepType","getOr","nextButton","actionZone","button","THEMES","container","containerWithoutSummary","footer","footerWithoutSummary","actionFooter","actionFooterWithoutSummary","leftSection","leftSectionWithoutSummary","summary","getTheme","WizardContents","props","isLoading","headerView","formView","rightActionView","footerActionView","currentStyle","summaryWrapper","rightSection","stickySection","summaryZone","form","summaryFooter","propTypes","PropTypes","bool","shape","string","func","isRequired","WizardSteps","WizardSummary","oneOfType","BrandForm","oneOf","ContentTranslate","OrganismSearchAndChipsResults","CourseSelection","CourseSections","RewardsForm","ExpandibleActionableErrorsTable"],"sources":["../../../src/organism/wizard-contents/index.js"],"sourcesContent":["import React from 'react';\nimport getOr from 'lodash/fp/getOr';\nimport PropTypes from 'prop-types';\nimport ButtonLink from '../../atom/button-link';\nimport ButtonLinkIconOnly from '../../atom/button-link-icon-only';\nimport WizardSteps from '../../atom/wizard-steps';\nimport WizardSummary from '../../molecule/wizard-summary';\nimport BrandForm from '../brand-form';\nimport ContentTranslate from '../content-translation';\nimport OrganismSearchAndChipsResults from '../search-and-chips-results';\nimport CourseSelection from '../course-selection';\nimport CourseSections from '../../molecule/course-sections';\nimport RewardsForm from '../rewards-form';\nimport ExpandibleActionableErrorsTable from '../../molecule/expandible-actionable-table';\nimport style from './style.css';\n\nconst buildHeader = (wizardHeader, steps) => {\n const {title, onClick} = wizardHeader;\n\n const buttonCloseIcon = {\n size: 'small',\n 'data-name': 'close-button',\n 'aria-label': 'close button',\n icon: 'close',\n onClick\n };\n\n return (\n <div>\n <div className={style.header}>\n <ButtonLinkIconOnly {...buttonCloseIcon} />\n <div className={style.headerTitle} data-name={'content-title'}>\n {title}\n </div>\n </div>\n <WizardSteps steps={steps} />\n </div>\n );\n};\n\nconst buildForm = content => {\n const {type} = content;\n switch (type) {\n case 'form':\n return <BrandForm {...content} />;\n case 'translate':\n return <ContentTranslate {...content} />;\n case 'populations':\n return <OrganismSearchAndChipsResults {...content} />;\n case 'courses':\n return <CourseSelection {...content} />;\n case 'organize-courses':\n return <CourseSections {...content} />;\n case 'rewards':\n return <RewardsForm {...content} />;\n case 'expandible-table':\n return <ExpandibleActionableErrorsTable {...content} />;\n }\n};\n\nconst buildButton = (type, step, side) => {\n const ICONS = {\n previous: {\n position: 'left',\n type: 'chevron-left'\n },\n next: {\n position: 'right',\n type: 'chevron-right'\n },\n publish: {\n position: 'left',\n type: 'publish'\n }\n };\n\n const {label, onClick} = step;\n const buttonProps = {\n type: type === 'previous' ? 'secondary' : 'primary',\n 'aria-label': `${type} step button`,\n 'data-name': `${type}-step-button-${side}`,\n icon: ICONS[type],\n label,\n onClick\n };\n\n return <ButtonLink {...buttonProps} />;\n};\n\nconst buildActionZone = (previousStep, nextStep, side) => {\n const previousButton = previousStep ? buildButton('previous', previousStep, side) : null;\n const nextStepType = getOr('next', 'type', nextStep);\n const nextButton = nextStep ? buildButton(nextStepType, nextStep, side) : null;\n return (\n <div className={style.actionZone}>\n <div className={style.button}>{previousButton}</div>\n <div className={style.button}>{nextButton}</div>\n </div>\n );\n};\n\nconst THEMES = {\n 'no-summary': {\n container: style.containerWithoutSummary,\n footer: style.footerWithoutSummary,\n actionFooter: style.actionFooterWithoutSummary,\n leftSection: style.leftSectionWithoutSummary\n },\n summary: {\n container: style.container,\n footer: style.footer,\n actionFooter: style.actionFooter,\n leftSection: style.leftSection\n }\n};\n\nconst getTheme = summary => (summary ? 'summary' : 'no-summary');\n\nconst WizardContents = props => {\n const {isLoading, wizardHeader, steps, summary, content, nextStep, previousStep} = props;\n const headerView = buildHeader(wizardHeader, steps);\n const formView = buildForm({...content, isLoading});\n const rightActionView = buildActionZone(previousStep, nextStep, 'right');\n const footerActionView = buildActionZone(previousStep, nextStep, 'footer');\n const currentStyle = THEMES[getTheme(summary)];\n\n const summaryWrapper = (\n <div className={style.rightSection} data-name=\"summary-right-section\">\n <div className={style.stickySection}>\n <div className={style.summaryZone} data-name=\"summary-zone\">\n <WizardSummary {...summary} side={'right'} />\n </div>\n {rightActionView}\n </div>\n </div>\n );\n\n return (\n <div className={currentStyle.container} data-name=\"content-summary\">\n <div className={currentStyle.leftSection}>\n {headerView}\n <div className={style.form}>{formView}</div>\n </div>\n {summary ? summaryWrapper : null}\n <div className={currentStyle.footer} data-name=\"footer-section\">\n {summary ? (\n <div className={style.summaryFooter}>\n <WizardSummary {...summary} side={'footer'} />\n </div>\n ) : null}\n <div className={currentStyle.actionFooter}>{footerActionView}</div>\n </div>\n </div>\n );\n};\n\nWizardContents.propTypes = {\n isLoading: PropTypes.bool,\n wizardHeader: PropTypes.shape({\n title: PropTypes.string,\n onClick: PropTypes.func\n }).isRequired,\n steps: WizardSteps.propTypes.steps,\n summary: PropTypes.shape({\n ...WizardSummary.propTypes\n }),\n content: PropTypes.oneOfType([\n PropTypes.shape({\n ...BrandForm.propTypes,\n type: PropTypes.oneOf(['form'])\n }),\n PropTypes.shape({\n ...ContentTranslate.propTypes,\n type: PropTypes.oneOf(['translate'])\n }),\n PropTypes.shape({\n ...OrganismSearchAndChipsResults.propTypes,\n type: PropTypes.oneOf(['populations'])\n }),\n PropTypes.shape({\n ...CourseSelection.propTypes,\n type: PropTypes.oneOf(['courses'])\n }),\n PropTypes.shape({\n ...CourseSections.propTypes,\n type: PropTypes.oneOf(['organize-courses'])\n }),\n PropTypes.shape({\n ...RewardsForm.propTypes,\n type: PropTypes.oneOf(['rewards'])\n }),\n PropTypes.shape({\n ...ExpandibleActionableErrorsTable.propTypes,\n type: PropTypes.oneOf(['expandible-table'])\n })\n ]),\n previousStep: PropTypes.shape({\n label: PropTypes.string,\n onClick: PropTypes.func\n }),\n nextStep: PropTypes.shape({\n type: PropTypes.oneOf(['next', 'publish']),\n label: PropTypes.string,\n onClick: PropTypes.func\n })\n};\n\nexport default WizardContents;\n"],"mappings":";;;;;AAAA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;;;AAEA,MAAMA,WAAW,GAAG,CAACC,YAAD,EAAeC,KAAf,KAAyB;EAC3C,MAAM;IAACC,KAAD;IAAQC;EAAR,IAAmBH,YAAzB;EAEA,MAAMI,eAAe,GAAG;IACtBC,IAAI,EAAE,OADgB;IAEtB,aAAa,cAFS;IAGtB,cAAc,cAHQ;IAItBC,IAAI,EAAE,OAJgB;IAKtBH;EALsB,CAAxB;EAQA,oBACE,uDACE;IAAK,SAAS,EAAEI,cAAA,CAAMC;EAAtB,gBACE,6BAAC,2BAAD,EAAwBJ,eAAxB,CADF,eAEE;IAAK,SAAS,EAAEG,cAAA,CAAME,WAAtB;IAAmC,aAAW;EAA9C,GACGP,KADH,CAFF,CADF,eAOE,6BAAC,oBAAD;IAAa,KAAK,EAAED;EAApB,EAPF,CADF;AAWD,CAtBD;;AAwBA,MAAMS,SAAS,GAAGC,OAAO,IAAI;EAC3B,MAAM;IAACC;EAAD,IAASD,OAAf;;EACA,QAAQC,IAAR;IACE,KAAK,MAAL;MACE,oBAAO,6BAAC,kBAAD,EAAeD,OAAf,CAAP;;IACF,KAAK,WAAL;MACE,oBAAO,6BAAC,2BAAD,EAAsBA,OAAtB,CAAP;;IACF,KAAK,aAAL;MACE,oBAAO,6BAAC,8BAAD,EAAmCA,OAAnC,CAAP;;IACF,KAAK,SAAL;MACE,oBAAO,6BAAC,wBAAD,EAAqBA,OAArB,CAAP;;IACF,KAAK,kBAAL;MACE,oBAAO,6BAAC,uBAAD,EAAoBA,OAApB,CAAP;;IACF,KAAK,SAAL;MACE,oBAAO,6BAAC,oBAAD,EAAiBA,OAAjB,CAAP;;IACF,KAAK,kBAAL;MACE,oBAA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