@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
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/template/back-office/brand-update/index.js"],"names":[],"mappings":";AAyLA,sDA6CC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/template/back-office/brand-update/index.js"],"names":[],"mappings":";AA8LA,sDA6CC"}
@@ -25,6 +25,7 @@ import CmPopin from '../../../molecule/cm-popin';
25
25
  import ButtonLinkIconOnly from '../../../atom/button-link-icon-only';
26
26
  import EmptyStateDashboard from '../../../molecule/empty-state-dashboard';
27
27
  import UploadingFileProgress from '../../../molecule/uploading-file-progress';
28
+ import ExpandibleActionableTable from '../../../molecule/expandible-actionable-table';
28
29
  import style from './style.css';
29
30
 
30
31
  const getStyle = isSelected => isSelected ? style.selectedElement : style.unselectedElement;
@@ -171,12 +172,14 @@ const buildContentView = content => {
171
172
  return /*#__PURE__*/React.createElement(BrandAnalytics, content);
172
173
 
173
174
  case 'list-content':
175
+ case 'expandible-actionable-table':
174
176
  return /*#__PURE__*/React.createElement(ListItems, content);
175
177
 
176
178
  case 'home':
177
179
  return /*#__PURE__*/React.createElement(BrandDashboard, content);
178
180
 
179
181
  case 'wizard':
182
+ case 'expandible-table':
180
183
  return /*#__PURE__*/React.createElement(WizardContents, content);
181
184
 
182
185
  case 'empty-state-dashboard':
@@ -184,6 +187,9 @@ const buildContentView = content => {
184
187
 
185
188
  case 'uploading-file-progress':
186
189
  return /*#__PURE__*/React.createElement(UploadingFileProgress, content);
190
+
191
+ case 'table-pending':
192
+ return /*#__PURE__*/React.createElement(ExpandibleActionableTable, content);
187
193
  }
188
194
  };
189
195
 
@@ -272,14 +278,20 @@ BrandUpdate.propTypes = process.env.NODE_ENV !== "production" ? {
272
278
  type: PropTypes.oneOf(['wizard'])
273
279
  })), PropTypes.shape(_extends({}, ListItems.propTypes, {
274
280
  key: PropTypes.string,
275
- type: PropTypes.oneOf(['list-content']),
276
- contentType: PropTypes.string
281
+ type: PropTypes.oneOf(['list-content', 'expandible-actionable-table'])
277
282
  })), PropTypes.shape(_extends({}, EmptyStateDashboard.propTypes, {
278
283
  key: PropTypes.string,
279
284
  type: PropTypes.oneOf(['empty-state-dashboard'])
280
285
  })), PropTypes.shape(_extends({}, UploadingFileProgress.propTypes, {
281
286
  key: PropTypes.string,
282
287
  type: PropTypes.oneOf(['uploading-file-progress'])
288
+ })), PropTypes.shape(_extends({}, ExpandibleActionableTable.propTypes, {
289
+ key: PropTypes.string,
290
+ type: PropTypes.oneOf(['table-pending'])
291
+ })), PropTypes.shape(_extends({}, WizardContents.propTypes, {
292
+ content: PropTypes.shape(_extends({}, ExpandibleActionableTable.propTypes, WizardContents.propTypes.content.propTypes)),
293
+ key: PropTypes.string,
294
+ type: PropTypes.oneOf(['expandible-table'])
283
295
  }))]),
284
296
  documentation: PropTypes.shape({
285
297
  content: PropTypes.string,
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["React","PropTypes","map","pipe","get","isEmpty","find","classNames","BrandTabs","IconLinkItem","LinkItem","BrandForm","BrandTable","BrandUpload","BrandAnalytics","BrandDashboard","WizardContents","ListItems","Banner","Header","Loader","Accordion","CmPopin","ButtonLinkIconOnly","EmptyStateDashboard","UploadingFileProgress","style","getStyle","isSelected","selectedElement","unselectedElement","subTabsView","_subTabs","convert","cap","subTab","_index","title","type","selected","buildLeftNavigation","logo","items","onItemClick","formattedTabs","key","href","index","children","iconType","formattedTabsViews","tab","tabs","navigation","buildNotifications","notifications","notificationsList","notification","buildHeader","header","buildPopin","popin","buildDocumentation","documentation","show","onClose","content","open","documentationContent","__html","closeButton","buildTabs","selectedTab","e","showTabs","subTabs","undefined","buildContentView","loaderContainer","loader","buildDetailsView","details","BrandUpdate","props","contentFixHeight","leftNavigation","notificationsView","documentationView","headerView","tabsView","contentView","detailsView","popinView","contentStyle","contentWithNotifications","container","left","contentWrapper","headerSticky","defaultProps","propTypes","arrayOf","shape","string","isRequired","bool","oneOfType","oneOf","contentType","func"],"sources":["../../../../src/template/back-office/brand-update/index.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport map from 'lodash/fp/map';\nimport pipe from 'lodash/fp/pipe';\nimport get from 'lodash/fp/get';\nimport isEmpty from 'lodash/fp/isEmpty';\nimport find from 'lodash/fp/find';\nimport classNames from 'classnames';\nimport BrandTabs from '../../../molecule/brand-tabs';\nimport {IconLinkItem, LinkItem} from '../../../organism/sidebar';\nimport BrandForm from '../../../organism/brand-form';\nimport BrandTable from '../../../organism/brand-table';\nimport BrandUpload from '../../../organism/brand-upload';\nimport BrandAnalytics from '../../../organism/brand-analytics';\nimport BrandDashboard from '../../../organism/brand-dashboard';\nimport WizardContents from '../../../organism/wizard-contents';\nimport ListItems from '../../../organism/list-items';\nimport Banner from '../../../molecule/banner';\nimport Header from '../../../organism/setup-header';\nimport Loader from '../../../atom/loader';\nimport Accordion from '../../../organism/accordion/coorp-manager';\nimport CmPopin from '../../../molecule/cm-popin';\nimport ButtonLinkIconOnly from '../../../atom/button-link-icon-only';\nimport EmptyStateDashboard from '../../../molecule/empty-state-dashboard';\nimport UploadingFileProgress from '../../../molecule/uploading-file-progress';\nimport style from './style.css';\n\nconst getStyle = isSelected => (isSelected ? style.selectedElement : style.unselectedElement);\n\nconst subTabsView = (_subTabs = []) =>\n map.convert({cap: false})((subTab, _index) => (\n <div key={subTab.title}>\n {subTab.type === 'iconLink' ? (\n <IconLinkItem\n {...subTab}\n styles={getStyle(subTab.selected)}\n uppercase={false}\n target={'_blank'}\n />\n ) : (\n <LinkItem {...subTab} styles={getStyle(subTab.selected)} uppercase={false} />\n )}\n </div>\n ))(_subTabs);\n\n// TODO: this fonction should be replaced by a molecule to avoid this file to be unreadable\nconst buildLeftNavigation = (logo, items, onItemClick) => {\n const formattedTabs = items.map(({key, title, href, selected, type = 'simpleTab'}, index) => ({\n title,\n selected,\n type,\n href,\n index,\n children: [],\n iconType: key || 'arrow'\n }));\n\n const formattedTabsViews = map(tab => (\n <div key={tab.title} className={style.subTabsView}>\n {subTabsView(tab.tabs)}\n </div>\n ))(items);\n\n return (\n <div className={style.navigation}>\n <div className={style.logo}>\n <a href=\"/\">\n <img src={logo} />\n </a>\n </div>\n <Accordion tabProps={formattedTabs} theme={'setup'} onClick={onItemClick}>\n {formattedTabsViews}\n </Accordion>\n </div>\n );\n};\n\nconst buildNotifications = notifications => {\n if (isEmpty(notifications)) {\n return null;\n }\n\n const notificationsList = notifications.map((notification, index) => {\n return (\n <div className={style.notification} key={index}>\n <Banner {...notification} />\n </div>\n );\n });\n return <div className={style.notifications}>{notificationsList}</div>;\n};\n\nconst buildHeader = header => {\n return (\n <div className={style.header}>\n <Header {...header} />\n </div>\n );\n};\n\nconst buildPopin = popin => {\n return popin ? (\n <div className={style.popin}>\n <CmPopin {...popin} />\n </div>\n ) : null;\n};\n\nconst buildDocumentation = documentation => {\n if (!documentation) return null;\n const {show = false, onClose, content = ''} = documentation;\n return (\n <div className={classNames(style.documentation, show && style.open)}>\n <div\n className={style.documentationContent}\n // eslint-disable-next-line react/no-danger\n dangerouslySetInnerHTML={{__html: content}}\n />\n {onClose ? (\n <ButtonLinkIconOnly\n className={style.closeButton}\n onClick={onClose}\n data-name={'close-icon'}\n aria-label={'close-icon'}\n size=\"small\"\n icon=\"close\"\n />\n ) : null}\n </div>\n );\n};\n\nconst buildTabs = items => {\n const selectedTab = pipe(\n find(e => e.selected),\n get('tabs'),\n find(e => e.selected)\n )(items);\n\n const showTabs = selectedTab ? find(e => e.selected, selectedTab.subTabs) : undefined;\n if (!showTabs) return null;\n return (\n <div className={style.tabs}>\n <BrandTabs type=\"light\" tabs={selectedTab.subTabs} />\n </div>\n );\n};\n\nconst buildContentView = content => {\n if (!content) {\n return (\n <div className={style.loaderContainer}>\n <Loader className={style.loader} theme=\"coorpmanager\" />\n </div>\n );\n }\n\n const {type} = content;\n switch (type) {\n case 'form':\n return <BrandForm {...content} />;\n case 'list':\n return <BrandTable {...content} />;\n case 'upload':\n return <BrandUpload {...content} />;\n case 'analytics-dashboards':\n return <BrandAnalytics {...content} />;\n case 'list-content':\n return <ListItems {...content} />;\n case 'home':\n return <BrandDashboard {...content} />;\n case 'wizard':\n return <WizardContents {...content} />;\n case 'empty-state-dashboard':\n return <EmptyStateDashboard {...content} />;\n case 'uploading-file-progress':\n return <UploadingFileProgress {...content} />;\n }\n};\n\nconst buildDetailsView = details => {\n if (!details) return;\n return <BrandTable {...details} />;\n};\n\nconst BrandUpdate = props => {\n const {\n notifications,\n header,\n items,\n content,\n details,\n popin,\n onItemClick,\n documentation,\n contentFixHeight\n } = props;\n const logo = 'https://static.coorpacademy.com/logo/coorp-manager.svg';\n\n const leftNavigation = buildLeftNavigation(logo, items, onItemClick);\n const notificationsView = buildNotifications(notifications);\n const documentationView = buildDocumentation(documentation);\n const headerView = buildHeader(header, notifications);\n const tabsView = buildTabs(items);\n const contentView = buildContentView(content);\n const detailsView = buildDetailsView(details);\n const popinView = buildPopin(popin);\n\n const contentStyle = classNames([\n style.content,\n !isEmpty(notifications) && style.contentWithNotifications,\n contentFixHeight && style.contentFixHeight\n ]);\n\n return (\n <div className={style.container}>\n <div className={style.left}>{leftNavigation}</div>\n <div className={style.contentWrapper}>\n <div className={style.headerSticky}>{headerView}</div>\n <div className={contentStyle}>\n {notificationsView}\n {tabsView}\n {contentView}\n {detailsView}\n {documentationView}\n </div>\n </div>\n {popinView}\n </div>\n );\n};\n\nBrandUpdate.defaultProps = {\n notifications: []\n};\n\nBrandUpdate.propTypes = {\n notifications: PropTypes.arrayOf(\n PropTypes.shape({\n ...Banner.propTypes\n })\n ),\n header: PropTypes.shape({...Header.propTypes}),\n items: PropTypes.arrayOf(\n PropTypes.shape({\n key: PropTypes.string,\n title: PropTypes.string.isRequired,\n href: PropTypes.string.isRequired,\n selected: PropTypes.bool.isRequired,\n type: PropTypes.string,\n tabs: PropTypes.arrayOf(\n PropTypes.shape({\n title: PropTypes.string.isRequired,\n href: PropTypes.string.isRequired,\n selected: PropTypes.bool.isRequired,\n type: PropTypes.string,\n subTabs: PropTypes.arrayOf(\n PropTypes.shape({\n title: PropTypes.string.isRequired,\n href: PropTypes.string.isRequired,\n selected: PropTypes.bool.isRequired,\n type: PropTypes.string\n })\n )\n })\n )\n })\n ).isRequired,\n content: PropTypes.oneOfType([\n PropTypes.shape({\n ...BrandForm.propTypes,\n key: PropTypes.string,\n type: PropTypes.oneOf(['form'])\n }),\n PropTypes.shape({\n ...BrandTable.propTypes,\n key: PropTypes.string,\n type: PropTypes.oneOf(['list'])\n }),\n PropTypes.shape({\n ...BrandUpload.propTypes,\n key: PropTypes.string,\n type: PropTypes.oneOf(['upload'])\n }),\n PropTypes.shape({\n ...BrandAnalytics.propTypes,\n key: PropTypes.string,\n type: PropTypes.oneOf(['analytics-dashboards'])\n }),\n PropTypes.shape({\n ...BrandDashboard.propTypes,\n key: PropTypes.string,\n type: PropTypes.oneOf(['home'])\n }),\n PropTypes.shape({\n ...WizardContents.propTypes,\n key: PropTypes.string,\n type: PropTypes.oneOf(['wizard'])\n }),\n PropTypes.shape({\n ...ListItems.propTypes,\n key: PropTypes.string,\n type: PropTypes.oneOf(['list-content']),\n contentType: PropTypes.string\n }),\n PropTypes.shape({\n ...EmptyStateDashboard.propTypes,\n key: PropTypes.string,\n type: PropTypes.oneOf(['empty-state-dashboard'])\n }),\n PropTypes.shape({\n ...UploadingFileProgress.propTypes,\n key: PropTypes.string,\n type: PropTypes.oneOf(['uploading-file-progress'])\n })\n ]),\n documentation: PropTypes.shape({\n content: PropTypes.string,\n show: PropTypes.bool,\n onClose: PropTypes.func\n }),\n popin: PropTypes.shape({...CmPopin.propTypes}),\n details: PropTypes.shape({\n ...BrandTable.propTypes,\n key: PropTypes.string,\n type: PropTypes.oneOf(['list'])\n }),\n onItemClick: PropTypes.func,\n contentFixHeight: PropTypes.bool\n};\n\nexport default BrandUpdate;\n"],"mappings":";;AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,OAAOC,SAAP,MAAsB,YAAtB;AACA,OAAOC,GAAP,MAAgB,eAAhB;AACA,OAAOC,IAAP,MAAiB,gBAAjB;AACA,OAAOC,GAAP,MAAgB,eAAhB;AACA,OAAOC,OAAP,MAAoB,mBAApB;AACA,OAAOC,IAAP,MAAiB,gBAAjB;AACA,OAAOC,UAAP,MAAuB,YAAvB;AACA,OAAOC,SAAP,MAAsB,8BAAtB;AACA,SAAQC,YAAR,EAAsBC,QAAtB,QAAqC,2BAArC;AACA,OAAOC,SAAP,MAAsB,8BAAtB;AACA,OAAOC,UAAP,MAAuB,+BAAvB;AACA,OAAOC,WAAP,MAAwB,gCAAxB;AACA,OAAOC,cAAP,MAA2B,mCAA3B;AACA,OAAOC,cAAP,MAA2B,mCAA3B;AACA,OAAOC,cAAP,MAA2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classNames","BrandTabs","IconLinkItem","LinkItem","BrandForm","BrandTable","BrandUpload","BrandAnalytics","BrandDashboard","WizardContents","ListItems","Banner","Header","Loader","Accordion","CmPopin","ButtonLinkIconOnly","EmptyStateDashboard","UploadingFileProgress","ExpandibleActionableTable","style","getStyle","isSelected","selectedElement","unselectedElement","subTabsView","_subTabs","convert","cap","subTab","_index","title","type","selected","buildLeftNavigation","logo","items","onItemClick","formattedTabs","key","href","index","children","iconType","formattedTabsViews","tab","tabs","navigation","buildNotifications","notifications","notificationsList","notification","buildHeader","header","buildPopin","popin","buildDocumentation","documentation","show","onClose","content","open","documentationContent","__html","closeButton","buildTabs","selectedTab","e","showTabs","subTabs","undefined","buildContentView","loaderContainer","loader","buildDetailsView","details","BrandUpdate","props","contentFixHeight","leftNavigation","notificationsView","documentationView","headerView","tabsView","contentView","detailsView","popinView","contentStyle","contentWithNotifications","container","left","contentWrapper","headerSticky","defaultProps","propTypes","arrayOf","shape","string","isRequired","bool","oneOfType","oneOf","func"],"sources":["../../../../src/template/back-office/brand-update/index.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport map from 'lodash/fp/map';\nimport pipe from 'lodash/fp/pipe';\nimport get from 'lodash/fp/get';\nimport isEmpty from 'lodash/fp/isEmpty';\nimport find from 'lodash/fp/find';\nimport classNames from 'classnames';\nimport BrandTabs from '../../../molecule/brand-tabs';\nimport {IconLinkItem, LinkItem} from '../../../organism/sidebar';\nimport BrandForm from '../../../organism/brand-form';\nimport BrandTable from '../../../organism/brand-table';\nimport BrandUpload from '../../../organism/brand-upload';\nimport BrandAnalytics from '../../../organism/brand-analytics';\nimport BrandDashboard from '../../../organism/brand-dashboard';\nimport WizardContents from '../../../organism/wizard-contents';\nimport ListItems from '../../../organism/list-items';\nimport Banner from '../../../molecule/banner';\nimport Header from '../../../organism/setup-header';\nimport Loader from '../../../atom/loader';\nimport Accordion from '../../../organism/accordion/coorp-manager';\nimport CmPopin from '../../../molecule/cm-popin';\nimport ButtonLinkIconOnly from '../../../atom/button-link-icon-only';\nimport EmptyStateDashboard from '../../../molecule/empty-state-dashboard';\nimport UploadingFileProgress from '../../../molecule/uploading-file-progress';\nimport ExpandibleActionableTable from '../../../molecule/expandible-actionable-table';\nimport style from './style.css';\n\nconst getStyle = isSelected => (isSelected ? style.selectedElement : style.unselectedElement);\n\nconst subTabsView = (_subTabs = []) =>\n map.convert({cap: false})((subTab, _index) => (\n <div key={subTab.title}>\n {subTab.type === 'iconLink' ? (\n <IconLinkItem\n {...subTab}\n styles={getStyle(subTab.selected)}\n uppercase={false}\n target={'_blank'}\n />\n ) : (\n <LinkItem {...subTab} styles={getStyle(subTab.selected)} uppercase={false} />\n )}\n </div>\n ))(_subTabs);\n\n// TODO: this fonction should be replaced by a molecule to avoid this file to be unreadable\nconst buildLeftNavigation = (logo, items, onItemClick) => {\n const formattedTabs = items.map(({key, title, href, selected, type = 'simpleTab'}, index) => ({\n title,\n selected,\n type,\n href,\n index,\n children: [],\n iconType: key || 'arrow'\n }));\n\n const formattedTabsViews = map(tab => (\n <div key={tab.title} className={style.subTabsView}>\n {subTabsView(tab.tabs)}\n </div>\n ))(items);\n\n return (\n <div className={style.navigation}>\n <div className={style.logo}>\n <a href=\"/\">\n <img src={logo} />\n </a>\n </div>\n <Accordion tabProps={formattedTabs} theme={'setup'} onClick={onItemClick}>\n {formattedTabsViews}\n </Accordion>\n </div>\n );\n};\n\nconst buildNotifications = notifications => {\n if (isEmpty(notifications)) {\n return null;\n }\n\n const notificationsList = notifications.map((notification, index) => {\n return (\n <div className={style.notification} key={index}>\n <Banner {...notification} />\n </div>\n );\n });\n return <div className={style.notifications}>{notificationsList}</div>;\n};\n\nconst buildHeader = header => {\n return (\n <div className={style.header}>\n <Header {...header} />\n </div>\n );\n};\n\nconst buildPopin = popin => {\n return popin ? (\n <div className={style.popin}>\n <CmPopin {...popin} />\n </div>\n ) : null;\n};\n\nconst buildDocumentation = documentation => {\n if (!documentation) return null;\n const {show = false, onClose, content = ''} = documentation;\n return (\n <div className={classNames(style.documentation, show && style.open)}>\n <div\n className={style.documentationContent}\n // eslint-disable-next-line react/no-danger\n dangerouslySetInnerHTML={{__html: content}}\n />\n {onClose ? (\n <ButtonLinkIconOnly\n className={style.closeButton}\n onClick={onClose}\n data-name={'close-icon'}\n aria-label={'close-icon'}\n size=\"small\"\n icon=\"close\"\n />\n ) : null}\n </div>\n );\n};\n\nconst buildTabs = items => {\n const selectedTab = pipe(\n find(e => e.selected),\n get('tabs'),\n find(e => e.selected)\n )(items);\n\n const showTabs = selectedTab ? find(e => e.selected, selectedTab.subTabs) : undefined;\n if (!showTabs) return null;\n return (\n <div className={style.tabs}>\n <BrandTabs type=\"light\" tabs={selectedTab.subTabs} />\n </div>\n );\n};\n\nconst buildContentView = content => {\n if (!content) {\n return (\n <div className={style.loaderContainer}>\n <Loader className={style.loader} theme=\"coorpmanager\" />\n </div>\n );\n }\n\n const {type} = content;\n switch (type) {\n case 'form':\n return <BrandForm {...content} />;\n case 'list':\n return <BrandTable {...content} />;\n case 'upload':\n return <BrandUpload {...content} />;\n case 'analytics-dashboards':\n return <BrandAnalytics {...content} />;\n case 'list-content':\n case 'expandible-actionable-table':\n return <ListItems {...content} />;\n case 'home':\n return <BrandDashboard {...content} />;\n case 'wizard':\n case 'expandible-table':\n return <WizardContents {...content} />;\n case 'empty-state-dashboard':\n return <EmptyStateDashboard {...content} />;\n case 'uploading-file-progress':\n return <UploadingFileProgress {...content} />;\n case 'table-pending':\n return <ExpandibleActionableTable {...content} />;\n }\n};\n\nconst buildDetailsView = details => {\n if (!details) return;\n return <BrandTable {...details} />;\n};\n\nconst BrandUpdate = props => {\n const {\n notifications,\n header,\n items,\n content,\n details,\n popin,\n onItemClick,\n documentation,\n contentFixHeight\n } = props;\n const logo = 'https://static.coorpacademy.com/logo/coorp-manager.svg';\n\n const leftNavigation = buildLeftNavigation(logo, items, onItemClick);\n const notificationsView = buildNotifications(notifications);\n const documentationView = buildDocumentation(documentation);\n const headerView = buildHeader(header, notifications);\n const tabsView = buildTabs(items);\n const contentView = buildContentView(content);\n const detailsView = buildDetailsView(details);\n const popinView = buildPopin(popin);\n\n const contentStyle = classNames([\n style.content,\n !isEmpty(notifications) && style.contentWithNotifications,\n contentFixHeight && style.contentFixHeight\n ]);\n\n return (\n <div className={style.container}>\n <div className={style.left}>{leftNavigation}</div>\n <div className={style.contentWrapper}>\n <div className={style.headerSticky}>{headerView}</div>\n <div className={contentStyle}>\n {notificationsView}\n {tabsView}\n {contentView}\n {detailsView}\n {documentationView}\n </div>\n </div>\n {popinView}\n </div>\n );\n};\n\nBrandUpdate.defaultProps = {\n notifications: []\n};\n\nBrandUpdate.propTypes = {\n notifications: PropTypes.arrayOf(\n PropTypes.shape({\n ...Banner.propTypes\n })\n ),\n header: PropTypes.shape({...Header.propTypes}),\n items: PropTypes.arrayOf(\n PropTypes.shape({\n key: PropTypes.string,\n title: PropTypes.string.isRequired,\n href: PropTypes.string.isRequired,\n selected: PropTypes.bool.isRequired,\n type: PropTypes.string,\n tabs: PropTypes.arrayOf(\n PropTypes.shape({\n title: PropTypes.string.isRequired,\n href: PropTypes.string.isRequired,\n selected: PropTypes.bool.isRequired,\n type: PropTypes.string,\n subTabs: PropTypes.arrayOf(\n PropTypes.shape({\n title: PropTypes.string.isRequired,\n href: PropTypes.string.isRequired,\n selected: PropTypes.bool.isRequired,\n type: PropTypes.string\n })\n )\n })\n )\n })\n ).isRequired,\n content: PropTypes.oneOfType([\n PropTypes.shape({\n ...BrandForm.propTypes,\n key: PropTypes.string,\n type: PropTypes.oneOf(['form'])\n }),\n PropTypes.shape({\n ...BrandTable.propTypes,\n key: PropTypes.string,\n type: PropTypes.oneOf(['list'])\n }),\n PropTypes.shape({\n ...BrandUpload.propTypes,\n key: PropTypes.string,\n type: PropTypes.oneOf(['upload'])\n }),\n PropTypes.shape({\n ...BrandAnalytics.propTypes,\n key: PropTypes.string,\n type: PropTypes.oneOf(['analytics-dashboards'])\n }),\n PropTypes.shape({\n ...BrandDashboard.propTypes,\n key: PropTypes.string,\n type: PropTypes.oneOf(['home'])\n }),\n PropTypes.shape({\n ...WizardContents.propTypes,\n key: PropTypes.string,\n type: PropTypes.oneOf(['wizard'])\n }),\n PropTypes.shape({\n ...ListItems.propTypes,\n key: PropTypes.string,\n type: PropTypes.oneOf(['list-content', 'expandible-actionable-table'])\n }),\n PropTypes.shape({\n ...EmptyStateDashboard.propTypes,\n key: PropTypes.string,\n type: PropTypes.oneOf(['empty-state-dashboard'])\n }),\n PropTypes.shape({\n ...UploadingFileProgress.propTypes,\n key: PropTypes.string,\n type: PropTypes.oneOf(['uploading-file-progress'])\n }),\n PropTypes.shape({\n ...ExpandibleActionableTable.propTypes,\n key: PropTypes.string,\n type: PropTypes.oneOf(['table-pending'])\n }),\n PropTypes.shape({\n ...WizardContents.propTypes,\n content: PropTypes.shape({\n ...ExpandibleActionableTable.propTypes,\n ...WizardContents.propTypes.content.propTypes\n }),\n key: PropTypes.string,\n type: PropTypes.oneOf(['expandible-table'])\n })\n ]),\n documentation: PropTypes.shape({\n content: PropTypes.string,\n show: PropTypes.bool,\n onClose: PropTypes.func\n }),\n popin: PropTypes.shape({...CmPopin.propTypes}),\n details: PropTypes.shape({\n ...BrandTable.propTypes,\n key: PropTypes.string,\n type: PropTypes.oneOf(['list'])\n }),\n onItemClick: PropTypes.func,\n contentFixHeight: PropTypes.bool\n};\n\nexport default BrandUpdate;\n"],"mappings":";;AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,OAAOC,SAAP,MAAsB,YAAtB;AACA,OAAOC,GAAP,MAAgB,eAAhB;AACA,OAAOC,IAAP,MAAiB,gBAAjB;AACA,OAAOC,GAAP,MAAgB,eAAhB;AACA,OAAOC,OAAP,MAAoB,mBAApB;AACA,OAAOC,IAAP,MAAiB,gBAAjB;AACA,OAAOC,UAAP,MAAuB,YAAvB;AACA,OAAOC,SAAP,MAAsB,8BAAtB;AACA,SAAQC,YAAR,EAAsBC,QAAtB,QAA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f,CAAyBlC,OAAzB,CAAiCkC,SAF7B,EAFX;IAMEvD,GAAG,EAAE7C,SAAS,CAACuG,MANjB;IAOEjE,IAAI,EAAEtC,SAAS,CAAC2G,KAAV,CAAgB,CAAC,kBAAD,CAAhB;EAPR,GAnD2B,CAApB,CAhCa;EA6FtB5C,aAAa,EAAE/D,SAAS,CAACsG,KAAV,CAAgB;IAC7BpC,OAAO,EAAElE,SAAS,CAACuG,MADU;IAE7BvC,IAAI,EAAEhE,SAAS,CAACyG,IAFa;IAG7BxC,OAAO,EAAEjE,SAAS,CAAC4G;EAHU,CAAhB,CA7FO;EAkGtB/C,KAAK,EAAE7D,SAAS,CAACsG,KAAV,cAAoBjF,OAAO,CAAC+E,SAA5B,EAlGe;EAmGtBnB,OAAO,EAAEjF,SAAS,CAACsG,KAAV,cACJ3F,UAAU,CAACyF,SADP;IAEPvD,GAAG,EAAE7C,SAAS,CAACuG,MAFR;IAGPjE,IAAI,EAAEtC,SAAS,CAAC2G,KAAV,CAAgB,CAAC,MAAD,CAAhB;EAHC,GAnGa;EAwGtBhE,WAAW,EAAE3C,SAAS,CAAC4G,IAxGD;EAyGtBxB,gBAAgB,EAAEpF,SAAS,CAACyG;AAzGN,CAAxB;AA4GA,eAAevB,WAAf"}
@@ -14,7 +14,6 @@ declare const _default: {
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 const _default: {
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 const _default: {
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 const _default: {
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 const _default: {
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 const _default: {
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 const _default: {
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 const _default: {
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
  platformName: PropTypes.Requireable<string>;
@@ -15,7 +15,6 @@ declare function createLayout(Template: any): {
15
15
  type: PropTypes.Requireable<string>;
16
16
  }>>;
17
17
  onClick: PropTypes.Requireable<(...args: any[]) => any>;
18
- onKeyDown: PropTypes.Requireable<(...args: any[]) => any>;
19
18
  link: PropTypes.Requireable<PropTypes.InferProps<{
20
19
  href: PropTypes.Requireable<string>;
21
20
  download: PropTypes.Requireable<boolean>;
@@ -24,7 +23,6 @@ declare function createLayout(Template: any): {
24
23
  disabled: PropTypes.Requireable<boolean>;
25
24
  className: PropTypes.Requireable<string>;
26
25
  customStyle: PropTypes.Requireable<PropTypes.InferProps<{}>>;
27
- useTitle: PropTypes.Requireable<boolean>;
28
26
  }>>;
29
27
  logOut: PropTypes.Requireable<PropTypes.InferProps<{
30
28
  type: PropTypes.Requireable<string>;
@@ -37,7 +35,6 @@ declare function createLayout(Template: any): {
37
35
  type: PropTypes.Requireable<string>;
38
36
  }>>;
39
37
  onClick: PropTypes.Requireable<(...args: any[]) => any>;
40
- onKeyDown: PropTypes.Requireable<(...args: any[]) => any>;
41
38
  link: PropTypes.Requireable<PropTypes.InferProps<{
42
39
  href: PropTypes.Requireable<string>;
43
40
  download: PropTypes.Requireable<boolean>;
@@ -46,7 +43,6 @@ declare function createLayout(Template: any): {
46
43
  disabled: PropTypes.Requireable<boolean>;
47
44
  className: PropTypes.Requireable<string>;
48
45
  customStyle: PropTypes.Requireable<PropTypes.InferProps<{}>>;
49
- useTitle: PropTypes.Requireable<boolean>;
50
46
  }>>;
51
47
  globalAnalytics: PropTypes.Requireable<PropTypes.InferProps<{
52
48
  type: PropTypes.Requireable<string>;
@@ -59,7 +55,6 @@ declare function createLayout(Template: any): {
59
55
  type: PropTypes.Requireable<string>;
60
56
  }>>;
61
57
  onClick: PropTypes.Requireable<(...args: any[]) => any>;
62
- onKeyDown: PropTypes.Requireable<(...args: any[]) => any>;
63
58
  link: PropTypes.Requireable<PropTypes.InferProps<{
64
59
  href: PropTypes.Requireable<string>;
65
60
  download: PropTypes.Requireable<boolean>;
@@ -68,7 +63,6 @@ declare function createLayout(Template: any): {
68
63
  disabled: PropTypes.Requireable<boolean>;
69
64
  className: PropTypes.Requireable<string>;
70
65
  customStyle: PropTypes.Requireable<PropTypes.InferProps<{}>>;
71
- useTitle: PropTypes.Requireable<boolean>;
72
66
  }>>;
73
67
  platformList: PropTypes.Requireable<PropTypes.InferProps<{
74
68
  type: PropTypes.Requireable<string>;
@@ -81,7 +75,6 @@ declare function createLayout(Template: any): {
81
75
  type: PropTypes.Requireable<string>;
82
76
  }>>;
83
77
  onClick: PropTypes.Requireable<(...args: any[]) => any>;
84
- onKeyDown: PropTypes.Requireable<(...args: any[]) => any>;
85
78
  link: PropTypes.Requireable<PropTypes.InferProps<{
86
79
  href: PropTypes.Requireable<string>;
87
80
  download: PropTypes.Requireable<boolean>;
@@ -90,7 +83,6 @@ declare function createLayout(Template: any): {
90
83
  disabled: PropTypes.Requireable<boolean>;
91
84
  className: PropTypes.Requireable<string>;
92
85
  customStyle: PropTypes.Requireable<PropTypes.InferProps<{}>>;
93
- useTitle: PropTypes.Requireable<boolean>;
94
86
  }>>;
95
87
  }>>;
96
88
  platformName: PropTypes.Requireable<string>;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/template/back-office/layout/index.js"],"names":[],"mappings":";AAKA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAoBC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/template/back-office/layout/index.js"],"names":[],"mappings":";AAKA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAoBC"}
@@ -48,5 +48,5 @@
48
48
  .icon {
49
49
  width: 20px;
50
50
  height: 20px;
51
- color: "#fff";
51
+ color: white;
52
52
  }
@@ -1,28 +1,27 @@
1
- export default ButtonLink;
2
- declare function ButtonLink(props: any): JSX.Element;
3
- declare namespace ButtonLink {
4
- const propTypes: {
5
- type: PropTypes.Requireable<string>;
6
- label: PropTypes.Requireable<string>;
7
- 'aria-label': PropTypes.Requireable<string>;
8
- 'data-name': PropTypes.Requireable<string>;
9
- 'data-testid': PropTypes.Requireable<string>;
10
- icon: PropTypes.Requireable<PropTypes.InferProps<{
11
- position: PropTypes.Requireable<string>;
12
- type: PropTypes.Requireable<string>;
1
+ /// <reference types="react" />
2
+ import { ButtonLinkProps } from './types';
3
+ declare const ButtonLink: {
4
+ (props: ButtonLinkProps): JSX.Element;
5
+ propTypes: {
6
+ type: import("prop-types").Requireable<string>;
7
+ label: import("prop-types").Requireable<string>;
8
+ 'aria-label': import("prop-types").Requireable<string>;
9
+ 'data-name': import("prop-types").Requireable<string>;
10
+ 'data-testid': import("prop-types").Requireable<string>;
11
+ icon: import("prop-types").Requireable<import("prop-types").InferProps<{
12
+ position: import("prop-types").Requireable<string>;
13
+ type: import("prop-types").Requireable<string>;
13
14
  }>>;
14
- onClick: PropTypes.Requireable<(...args: any[]) => any>;
15
- onKeyDown: PropTypes.Requireable<(...args: any[]) => any>;
16
- link: PropTypes.Requireable<PropTypes.InferProps<{
17
- href: PropTypes.Requireable<string>;
18
- download: PropTypes.Requireable<boolean>;
19
- target: PropTypes.Requireable<string>;
15
+ onClick: import("prop-types").Requireable<(...args: any[]) => any>;
16
+ link: import("prop-types").Requireable<import("prop-types").InferProps<{
17
+ href: import("prop-types").Requireable<string>;
18
+ download: import("prop-types").Requireable<boolean>;
19
+ target: import("prop-types").Requireable<string>;
20
20
  }>>;
21
- disabled: PropTypes.Requireable<boolean>;
22
- className: PropTypes.Requireable<string>;
23
- customStyle: PropTypes.Requireable<PropTypes.InferProps<{}>>;
24
- useTitle: PropTypes.Requireable<boolean>;
21
+ disabled: import("prop-types").Requireable<boolean>;
22
+ className: import("prop-types").Requireable<string>;
23
+ customStyle: import("prop-types").Requireable<import("prop-types").InferProps<{}>>;
25
24
  };
26
- }
27
- import PropTypes from "prop-types";
25
+ };
26
+ export default ButtonLink;
28
27
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/atom/button-link/index.js"],"names":[],"mappings":";AA6BA,qDAqEC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/atom/button-link/index.tsx"],"names":[],"mappings":";AAKA,OAAkB,EAAC,eAAe,EAAW,MAAM,SAAS,CAAC;AAyB7D,QAAA,MAAM,UAAU;YAAW,eAAe;;;;;;;;;;;;;;;;;;;;;CAqEzC,CAAC;AAIF,eAAe,UAAU,CAAC"}
@@ -5,20 +5,16 @@ exports.default = void 0;
5
5
 
6
6
  var _noop2 = _interopRequireDefault(require("lodash/fp/noop"));
7
7
 
8
- var _keys2 = _interopRequireDefault(require("lodash/fp/keys"));
9
-
10
- var _getOr2 = _interopRequireDefault(require("lodash/fp/getOr"));
11
-
12
8
  var _react = _interopRequireWildcard(require("react"));
13
9
 
14
- var _propTypes = _interopRequireDefault(require("prop-types"));
15
-
16
10
  var _classnames = _interopRequireDefault(require("classnames"));
17
11
 
18
12
  var _link = _interopRequireDefault(require("../link"));
19
13
 
20
14
  var _buttonIcons = require("../../util/button-icons");
21
15
 
16
+ var _types = _interopRequireDefault(require("./types"));
17
+
22
18
  var _style = _interopRequireDefault(require("./style.css"));
23
19
 
24
20
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
@@ -33,8 +29,11 @@ const getButtonContent = (icon, label) => {
33
29
  const {
34
30
  type,
35
31
  position
36
- } = icon;
37
- const Icon = (0, _getOr2.default)(null, type, _buttonIcons.ICONS);
32
+ } = icon || {
33
+ type: '',
34
+ position: ''
35
+ };
36
+ const Icon = type && _buttonIcons.ICONS[type];
38
37
 
39
38
  if (!Icon) {
40
39
  return /*#__PURE__*/_react.default.createElement("div", {
@@ -60,7 +59,7 @@ const ButtonLink = props => {
60
59
  type,
61
60
  label,
62
61
  disabled,
63
- icon = {},
62
+ icon,
64
63
  'data-name': dataName,
65
64
  'data-testid': dataTestId = 'button-link',
66
65
  'aria-label': ariaLabel,
@@ -72,7 +71,7 @@ const ButtonLink = props => {
72
71
  useTitle = true
73
72
  } = props;
74
73
  const contentView = getButtonContent(icon, label);
75
- const styleButton = (0, _classnames.default)(className, _style.default.button, type === 'primary' && _style.default.primary, type === 'secondary' && _style.default.secondary, type === 'tertiary' && _style.default.tertiary, type === 'text' && _style.default.text, type === 'dangerous' && _style.default.dangerous, link && _style.default.link, disabled && _style.default.disabled);
74
+ const styleButton = (0, _classnames.default)(_style.default[`${className}`], _style.default.button, type === 'primary' && _style.default.primary, type === 'secondary' && _style.default.secondary, type === 'tertiary' && _style.default.tertiary, type === 'text' && _style.default.text, type === 'dangerous' && _style.default.dangerous, link && _style.default.link, disabled && _style.default.disabled);
76
75
  const handleOnClick = (0, _react.useCallback)(() => onClick(), [onClick]);
77
76
  const handleOnKeyDown = (0, _react.useCallback)(event => onKeyDown(event), [onKeyDown]);
78
77
 
@@ -103,28 +102,7 @@ const ButtonLink = props => {
103
102
  }), contentView);
104
103
  };
105
104
 
106
- ButtonLink.propTypes = process.env.NODE_ENV !== "production" ? {
107
- type: _propTypes.default.oneOf(['primary', 'secondary', 'tertiary', 'text', 'dangerous']),
108
- label: _propTypes.default.string,
109
- 'aria-label': _propTypes.default.string,
110
- 'data-name': _propTypes.default.string,
111
- 'data-testid': _propTypes.default.string,
112
- icon: _propTypes.default.shape({
113
- position: _propTypes.default.oneOf(['right', 'left']),
114
- type: _propTypes.default.oneOf((0, _keys2.default)(_buttonIcons.ICONS))
115
- }),
116
- onClick: _propTypes.default.func,
117
- onKeyDown: _propTypes.default.func,
118
- link: _propTypes.default.shape({
119
- href: _propTypes.default.string,
120
- download: _propTypes.default.bool,
121
- target: _propTypes.default.oneOf(['_self', '_blank', '_parent', '_top'])
122
- }),
123
- disabled: _propTypes.default.bool,
124
- className: _propTypes.default.string,
125
- customStyle: _propTypes.default.shape({}),
126
- useTitle: _propTypes.default.bool
127
- } : {};
105
+ ButtonLink.propTypes = process.env.NODE_ENV !== "production" ? _types.default : {};
128
106
  var _default = ButtonLink;
129
107
  exports.default = _default;
130
108
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["getButtonContent","icon","label","type","position","Icon","ICONS","style","buttonContent","ButtonLink","props","disabled","dataName","dataTestId","ariaLabel","link","onClick","onKeyDown","className","customStyle","useTitle","contentView","styleButton","classnames","button","primary","secondary","tertiary","text","dangerous","handleOnClick","useCallback","handleOnKeyDown","event","title","propTypes","PropTypes","oneOf","string","shape","func","href","download","bool","target"],"sources":["../../../src/atom/button-link/index.js"],"sourcesContent":["import React, {useCallback} from 'react';\nimport PropTypes from 'prop-types';\nimport {getOr, keys, noop} from 'lodash/fp';\nimport classnames from 'classnames';\nimport Link from '../link';\nimport {ICONS} from '../../util/button-icons';\nimport style from './style.css';\n\nconst getButtonContent = (icon, label) => {\n const {type, position} = icon;\n const Icon = getOr(null, type, ICONS);\n\n if (!Icon) {\n return (\n <div className={style.buttonContent}>\n <span className={style.label}>{label}</span>\n </div>\n );\n }\n\n return (\n <div className={style.buttonContent}>\n {position === 'left' ? <Icon className={style.icon} /> : null}\n <span className={style.label}>{label}</span>\n {position === 'right' ? <Icon className={style.icon} /> : null}\n </div>\n );\n};\n\nconst ButtonLink = props => {\n const {\n type,\n label,\n disabled,\n icon = {},\n 'data-name': dataName,\n 'data-testid': dataTestId = 'button-link',\n 'aria-label': ariaLabel,\n link,\n onClick = noop,\n onKeyDown = noop,\n className,\n customStyle,\n useTitle = true\n } = props;\n const contentView = getButtonContent(icon, label);\n const styleButton = classnames(\n className,\n style.button,\n type === 'primary' && style.primary,\n type === 'secondary' && style.secondary,\n type === 'tertiary' && style.tertiary,\n type === 'text' && style.text,\n type === 'dangerous' && style.dangerous,\n link && style.link,\n disabled && style.disabled\n );\n\n const handleOnClick = useCallback(() => onClick(), [onClick]);\n\n const handleOnKeyDown = useCallback(event => onKeyDown(event), [onKeyDown]);\n\n if (link) {\n return (\n <Link\n {...link}\n {...(useTitle && {\n title: ariaLabel || label\n })}\n style={customStyle}\n className={styleButton}\n data-name={dataName}\n data-testid={dataTestId}\n aria-label={ariaLabel || label}\n >\n {contentView}\n </Link>\n );\n }\n\n return (\n <button\n {...(useTitle && {\n title: ariaLabel || label\n })}\n type=\"button\"\n aria-label={ariaLabel || label}\n data-name={dataName}\n data-testid={dataTestId}\n style={customStyle}\n className={styleButton}\n onClick={handleOnClick}\n onKeyDown={handleOnKeyDown}\n tabIndex={0}\n >\n {contentView}\n </button>\n );\n};\n\nButtonLink.propTypes = {\n type: PropTypes.oneOf(['primary', 'secondary', 'tertiary', 'text', 'dangerous']),\n label: PropTypes.string,\n 'aria-label': PropTypes.string,\n 'data-name': PropTypes.string,\n 'data-testid': PropTypes.string,\n icon: PropTypes.shape({\n position: PropTypes.oneOf(['right', 'left']),\n type: PropTypes.oneOf(keys(ICONS))\n }),\n onClick: PropTypes.func,\n onKeyDown: PropTypes.func,\n link: PropTypes.shape({\n href: PropTypes.string,\n download: PropTypes.bool,\n target: PropTypes.oneOf(['_self', '_blank', '_parent', '_top'])\n }),\n disabled: PropTypes.bool,\n className: PropTypes.string,\n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H,CADF;AAkBD,CArED;;AAuEAZ,UAAU,CAAC0B,SAAX,2CAAuB;EACrBhC,IAAI,EAAEiC,kBAAA,CAAUC,KAAV,CAAgB,CAAC,SAAD,EAAY,WAAZ,EAAyB,UAAzB,EAAqC,MAArC,EAA6C,WAA7C,CAAhB,CADe;EAErBnC,KAAK,EAAEkC,kBAAA,CAAUE,MAFI;EAGrB,cAAcF,kBAAA,CAAUE,MAHH;EAIrB,aAAaF,kBAAA,CAAUE,MAJF;EAKrB,eAAeF,kBAAA,CAAUE,MALJ;EAMrBrC,IAAI,EAAEmC,kBAAA,CAAUG,KAAV,CAAgB;IACpBnC,QAAQ,EAAEgC,kBAAA,CAAUC,KAAV,CAAgB,CAAC,OAAD,EAAU,MAAV,CAAhB,CADU;IAEpBlC,IAAI,EAAEiC,kBAAA,CAAUC,KAAV,CAAgB,oBAAK/B,kBAAL,CAAhB;EAFc,CAAhB,CANe;EAUrBU,OAAO,EAAEoB,kBAAA,CAAUI,IAVE;EAWrBvB,SAAS,EAAEmB,kBAAA,CAAUI,IAXA;EAYrBzB,IAAI,EAAEqB,kBAAA,CAAUG,KAAV,CAAgB;IACpBE,IAAI,EAAEL,kBAAA,CAAUE,MADI;IAEpBI,QAAQ,EAAEN,kBAAA,CAAUO,IAFA;IAGpBC,MAAM,EAAER,kBAAA,CAAUC,KAAV,CAAgB,CAAC,OAAD,EAAU,QAAV,EAAoB,SAApB,EAA+B,MAA/B,CAAhB;EAHY,CAAhB,CAZe;EAiBrB1B,QAAQ,EAAEyB,kBAAA,CAAUO,IAjBC;EAkBrBzB,SAAS,EAAEkB,kBAAA,CAAUE,MAlBA;EAmBrBnB,WAAW,EAAEiB,kBAAA,CAAUG,KAAV,CAAgB,EAAhB,CAnBQ;EAoBrBnB,QAAQ,EAAEgB,kBAAA,CAAUO;AApBC,CAAvB;eAuBelC,U"}
1
+ {"version":3,"file":"index.js","names":["getButtonContent","icon","label","type","position","Icon","ICONS","style","buttonContent","ButtonLink","props","disabled","dataName","dataTestId","ariaLabel","link","onClick","onKeyDown","className","customStyle","useTitle","contentView","styleButton","classnames","button","primary","secondary","tertiary","text","dangerous","handleOnClick","useCallback","handleOnKeyDown","event","title","propTypes"],"sources":["../../../src/atom/button-link/index.tsx"],"sourcesContent":["import React, {useCallback} from 'react';\nimport {noop} from 'lodash/fp';\nimport classnames from 'classnames';\nimport Link from '../link';\nimport {ICONS} from '../../util/button-icons';\nimport propTypes, {ButtonLinkProps, IconType} from './types';\n// eslint-disable-next-line css-modules/no-unused-class\nimport style from './style.css';\n\nconst getButtonContent = (icon?: IconType, label?: string) => {\n const {type, position} = icon || {type: '', position: ''};\n const Icon = type && ICONS[type];\n\n if (!Icon) {\n return (\n <div className={style.buttonContent}>\n <span className={style.label}>{label}</span>\n </div>\n );\n }\n\n return (\n <div className={style.buttonContent}>\n {position === 'left' ? <Icon className={style.icon} /> : null}\n <span className={style.label}>{label}</span>\n {position === 'right' ? <Icon className={style.icon} /> : null}\n </div>\n );\n};\n\nconst ButtonLink = (props: ButtonLinkProps) => {\n const {\n type,\n label,\n disabled,\n icon,\n 'data-name': dataName,\n 'data-testid': dataTestId = 'button-link',\n 'aria-label': ariaLabel,\n link,\n onClick = noop,\n onKeyDown = noop,\n className,\n customStyle,\n useTitle = true\n } = props;\n const contentView = getButtonContent(icon, label);\n const styleButton = classnames(\n style[`${className}`],\n style.button,\n type === 'primary' && style.primary,\n type === 'secondary' && style.secondary,\n type === 'tertiary' && style.tertiary,\n type === 'text' && style.text,\n type === 'dangerous' && style.dangerous,\n link && style.link,\n disabled && style.disabled\n );\n\n const handleOnClick = useCallback(() => onClick(), [onClick]);\n\n const handleOnKeyDown = useCallback(event => onKeyDown(event), [onKeyDown]);\n\n if (link) {\n return (\n <Link\n {...link}\n {...(useTitle && {\n title: ariaLabel || label\n })}\n style={customStyle}\n className={styleButton}\n data-name={dataName}\n data-testid={dataTestId}\n aria-label={ariaLabel || label}\n >\n {contentView}\n </Link>\n );\n }\n\n return (\n <button\n {...(useTitle && {\n title: ariaLabel || label\n })}\n type=\"button\"\n aria-label={ariaLabel || label}\n data-name={dataName}\n data-testid={dataTestId}\n style={customStyle}\n className={styleButton}\n onClick={handleOnClick}\n onKeyDown={handleOnKeyDown}\n tabIndex={0}\n >\n {contentView}\n </button>\n );\n};\n\nButtonLink.propTypes = propTypes;\n\nexport default ButtonLink;\n"],"mappings":";;;;;;;AAAA;;AAEA;;AACA;;AACA;;AACA;;AAEA;;;;;;;;;;AAEA,MAAMA,gBAAgB,GAAG,CAACC,IAAD,EAAkBC,KAAlB,KAAqC;EAC5D,MAAM;IAACC,IAAD;IAAOC;EAAP,IAAmBH,IAAI,IAAI;IAACE,IAAI,EAAE,EAAP;IAAWC,QAAQ,EAAE;EAArB,CAAjC;EACA,MAAMC,IAAI,GAAGF,IAAI,IAAIG,kBAAA,CAAMH,IAAN,CAArB;;EAEA,IAAI,CAACE,IAAL,EAAW;IACT,oBACE;MAAK,SAAS,EAAEE,cAAA,CAAMC;IAAtB,gBACE;MAAM,SAAS,EAAED,cAAA,CAAML;IAAvB,GAA+BA,KAA/B,CADF,CADF;EAKD;;EAED,oBACE;IAAK,SAAS,EAAEK,cAAA,CAAMC;EAAtB,GACGJ,QAAQ,KAAK,MAAb,gBAAsB,6BAAC,IAAD;IAAM,SAAS,EAAEG,cAAA,CAAMN;EAAvB,EAAtB,GAAwD,IAD3D,eAEE;IAAM,SAAS,EAAEM,cAAA,CAAML;EAAvB,GAA+BA,KAA/B,CAFF,EAGGE,QAAQ,KAAK,OAAb,gBAAuB,6BAAC,IAAD;IAAM,SAAS,EAAEG,cAAA,CAAMN;EAAvB,EAAvB,GAAyD,IAH5D,CADF;AAOD,CAnBD;;AAqBA,MAAMQ,UAAU,GAAIC,KAAD,IAA4B;EAC7C,MAAM;IACJP,IADI;IAEJD,KAFI;IAGJS,QAHI;IAIJV,IAJI;IAKJ,aAAaW,QALT;IAMJ,eAAeC,UAAU,GAAG,aANxB;IAOJ,cAAcC,SAPV;IA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Z;EADL,CADnB;IAIE,IAAI,EAAC,QAJP;IAKE,cAAYY,SAAS,IAAIZ,KAL3B;IAME,aAAWU,QANb;IAOE,eAAaC,UAPf;IAQE,KAAK,EAAEM,WART;IASE,SAAS,EAAEG,WATb;IAUE,OAAO,EAAEQ,aAVX;IAWE,SAAS,EAAEE,eAXb;IAYE,QAAQ,EAAE;EAZZ,IAcGX,WAdH,CADF;AAkBD,CArED;;AAuEAZ,UAAU,CAAC0B,SAAX,2CAAuBA,cAAvB;eAEe1B,U"}
@@ -93,4 +93,13 @@
93
93
  color: inherit;
94
94
  border-radius: 0px;
95
95
  height: auto;
96
- }
96
+ }
97
+
98
+ /* bulk inspect button style */
99
+ .bulkInspectButton {
100
+ font-family: 'Gilroy';
101
+ font-style: normal;
102
+ font-weight: 600;
103
+ font-size: 14px;
104
+ color: cm_primary_blue;
105
+ }
@@ -0,0 +1,50 @@
1
+ import PropTypes from 'prop-types';
2
+ import { ICONS } from '../../util/button-icons';
3
+ declare const propTypes: {
4
+ type: PropTypes.Requireable<string>;
5
+ label: PropTypes.Requireable<string>;
6
+ 'aria-label': PropTypes.Requireable<string>;
7
+ 'data-name': PropTypes.Requireable<string>;
8
+ 'data-testid': PropTypes.Requireable<string>;
9
+ icon: PropTypes.Requireable<PropTypes.InferProps<{
10
+ position: PropTypes.Requireable<string>;
11
+ type: PropTypes.Requireable<string>;
12
+ }>>;
13
+ onClick: PropTypes.Requireable<(...args: any[]) => any>;
14
+ link: PropTypes.Requireable<PropTypes.InferProps<{
15
+ href: PropTypes.Requireable<string>;
16
+ download: PropTypes.Requireable<boolean>;
17
+ target: PropTypes.Requireable<string>;
18
+ }>>;
19
+ disabled: PropTypes.Requireable<boolean>;
20
+ className: PropTypes.Requireable<string>;
21
+ customStyle: PropTypes.Requireable<PropTypes.InferProps<{}>>;
22
+ };
23
+ export declare type IconType = {
24
+ position: 'right' | 'left';
25
+ type: keyof typeof ICONS;
26
+ };
27
+ export declare type ButtonLinkProps = {
28
+ type?: 'primary' | 'secondary' | 'tertiary' | 'text' | 'dangerous';
29
+ label?: string;
30
+ 'aria-label'?: string;
31
+ 'data-name'?: string;
32
+ 'data-testid'?: string;
33
+ icon?: IconType;
34
+ onClick?: () => void;
35
+ onKeyDown?: () => void;
36
+ link?: {
37
+ href?: string;
38
+ download?: boolean;
39
+ target?: '_self' | '_blank' | '_parent' | '_top';
40
+ };
41
+ disabled?: boolean;
42
+ className?: string;
43
+ customStyle?: Record<string, never>;
44
+ useTitle?: boolean;
45
+ };
46
+ export declare type Fixture = {
47
+ props: ButtonLinkProps;
48
+ };
49
+ export default propTypes;
50
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/atom/button-link/types.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,YAAY,CAAC;AAEnC,OAAO,EAAC,KAAK,EAAC,MAAM,yBAAyB,CAAC;AAE9C,QAAA,MAAM,SAAS;;;;;;;;;;;;;;;;;;;CAmBd,CAAC;AAEF,oBAAY,QAAQ,GAAG;IACrB,QAAQ,EAAE,OAAO,GAAG,MAAM,CAAC;IAC3B,IAAI,EAAE,MAAM,OAAO,KAAK,CAAC;CAC1B,CAAC;AACF,oBAAY,eAAe,GAAG;IAC5B,IAAI,CAAC,EAAE,SAAS,GAAG,WAAW,GAAG,UAAU,GAAG,MAAM,GAAG,WAAW,CAAC;IACnE,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,IAAI,CAAC,EAAE,QAAQ,CAAC;IAChB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,IAAI,CAAC;IACvB,IAAI,CAAC,EAAE;QACL,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,QAAQ,CAAC,EAAE,OAAO,CAAC;QACnB,MAAM,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,SAAS,GAAG,MAAM,CAAC;KAClD,CAAC;IACF,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;IACpC,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,CAAC;AAEF,oBAAY,OAAO,GAAG;IAAC,KAAK,EAAE,eAAe,CAAA;CAAC,CAAC;AAE/C,eAAe,SAAS,CAAC"}
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+
3
+ exports.__esModule = true;
4
+ exports.default = void 0;
5
+
6
+ var _keys2 = _interopRequireDefault(require("lodash/fp/keys"));
7
+
8
+ var _propTypes = _interopRequireDefault(require("prop-types"));
9
+
10
+ var _buttonIcons = require("../../util/button-icons");
11
+
12
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
13
+
14
+ const propTypes = {
15
+ type: _propTypes.default.oneOf(['primary', 'secondary', 'tertiary', 'text', 'dangerous']),
16
+ label: _propTypes.default.string,
17
+ 'aria-label': _propTypes.default.string,
18
+ 'data-name': _propTypes.default.string,
19
+ 'data-testid': _propTypes.default.string,
20
+ icon: _propTypes.default.shape({
21
+ position: _propTypes.default.oneOf(['right', 'left']),
22
+ type: _propTypes.default.oneOf((0, _keys2.default)(_buttonIcons.ICONS))
23
+ }),
24
+ onClick: _propTypes.default.func,
25
+ link: _propTypes.default.shape({
26
+ href: _propTypes.default.string,
27
+ download: _propTypes.default.bool,
28
+ target: _propTypes.default.oneOf(['_self', '_blank', '_parent', '_top'])
29
+ }),
30
+ disabled: _propTypes.default.bool,
31
+ className: _propTypes.default.string,
32
+ customStyle: _propTypes.default.shape({})
33
+ };
34
+ var _default = propTypes;
35
+ exports.default = _default;
36
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","names":["propTypes","type","PropTypes","oneOf","label","string","icon","shape","position","ICONS","onClick","func","link","href","download","bool","target","disabled","className","customStyle"],"sources":["../../../src/atom/button-link/types.ts"],"sourcesContent":["import PropTypes from 'prop-types';\nimport {keys} from 'lodash/fp';\nimport {ICONS} from '../../util/button-icons';\n\nconst propTypes = {\n type: PropTypes.oneOf(['primary', 'secondary', 'tertiary', 'text', 'dangerous']),\n label: PropTypes.string,\n 'aria-label': PropTypes.string,\n 'data-name': PropTypes.string,\n 'data-testid': PropTypes.string,\n icon: PropTypes.shape({\n position: PropTypes.oneOf(['right', 'left']),\n type: PropTypes.oneOf(keys(ICONS))\n }),\n onClick: PropTypes.func,\n link: PropTypes.shape({\n href: PropTypes.string,\n download: PropTypes.bool,\n target: PropTypes.oneOf(['_self', '_blank', '_parent', '_top'])\n }),\n disabled: PropTypes.bool,\n className: PropTypes.string,\n customStyle: PropTypes.shape({})\n};\n\nexport type IconType = {\n position: 'right' | 'left';\n type: keyof typeof ICONS;\n};\nexport type ButtonLinkProps = {\n type?: 'primary' | 'secondary' | 'tertiary' | 'text' | 'dangerous';\n label?: string;\n 'aria-label'?: string;\n 'data-name'?: string;\n 'data-testid'?: string;\n icon?: IconType;\n onClick?: () => void;\n onKeyDown?: () => void;\n link?: {\n href?: string;\n download?: boolean;\n target?: '_self' | '_blank' | '_parent' | '_top';\n };\n disabled?: boolean;\n className?: string;\n customStyle?: Record<string, never>;\n useTitle?: boolean;\n};\n\nexport type Fixture = {props: ButtonLinkProps};\n\nexport default propTypes;\n"],"mappings":";;;;;;;AAAA;;AAEA;;;;AAEA,MAAMA,SAAS,GAAG;EAChBC,IAAI,EAAEC,kBAAA,CAAUC,KAAV,CAAgB,CAAC,SAAD,EAAY,WAAZ,EAAyB,UAAzB,EAAqC,MAArC,EAA6C,WAA7C,CAAhB,CADU;EAEhBC,KAAK,EAAEF,kBAAA,CAAUG,MAFD;EAGhB,cAAcH,kBAAA,CAAUG,MAHR;EAIhB,aAAaH,kBAAA,CAAUG,MAJP;EAKhB,eAAeH,kBAAA,CAAUG,MALT;EAMhBC,IAAI,EAAEJ,kBAAA,CAAUK,KAAV,CAAgB;IACpBC,QAAQ,EAAEN,kBAAA,CAAUC,KAAV,CAAgB,CAAC,OAAD,EAAU,MAAV,CAAhB,CADU;IAEpBF,IAAI,EAAEC,kBAAA,CAAUC,KAAV,CAAgB,oBAAKM,kBAAL,CAAhB;EAFc,CAAhB,CANU;EAUhBC,OAAO,EAAER,kBAAA,CAAUS,IAVH;EAWhBC,IAAI,EAAEV,kBAAA,CAAUK,KAAV,CAAgB;IACpBM,IAAI,EAAEX,kBAAA,CAAUG,MADI;IAEpBS,QAAQ,EAAEZ,kBAAA,CAAUa,IAFA;IAGpBC,MAAM,EAAEd,kBAAA,CAAUC,KAAV,CAAgB,CAAC,OAAD,EAAU,QAAV,EAAoB,SAApB,EAA+B,MAA/B,CAAhB;EAHY,CAAhB,CAXU;EAgBhBc,QAAQ,EAAEf,kBAAA,CAAUa,IAhBJ;EAiBhBG,SAAS,EAAEhB,kBAAA,CAAUG,MAjBL;EAkBhBc,WAAW,EAAEjB,kBAAA,CAAUK,KAAV,CAAgB,EAAhB;AAlBG,CAAlB;eA+CeP,S"}
@@ -111,6 +111,21 @@
111
111
  }
112
112
 
113
113
  .bulkArrowUp {
114
- composes: bulkArrowDown;
114
+ composes: button;
115
+ width: 24px;
116
+ height: 24px;
117
+ background-color: white;
118
+ border: 1px solid cm_grey_200;
119
+ border-radius: 5px;
120
+ padding: 10px;
121
+ opacity: 0.5;
115
122
  transform: rotate(180deg);
116
123
  }
124
+ .bulkArrowUp .icon {
125
+ width: 8px;
126
+ height: 8px;
127
+ }
128
+
129
+ .bulkBulletButton{
130
+ background-color: white;
131
+ }