@coorpacademy/components 11.20.2 → 11.20.3
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.
- package/{lib/molecule/uploading-file-progress → es/molecule/bulk-infos}/index.d.ts +7 -7
- package/es/molecule/bulk-infos/index.d.ts.map +1 -0
- package/es/molecule/bulk-infos/index.js +46 -0
- package/es/molecule/bulk-infos/index.js.map +1 -0
- package/es/molecule/{empty-state-dashboard → bulk-infos}/style.css +19 -2
- package/es/molecule/{uploading-file-progress → bulk-infos}/types.d.ts +10 -9
- package/es/molecule/bulk-infos/types.d.ts.map +1 -0
- package/es/molecule/{uploading-file-progress → bulk-infos}/types.js +3 -3
- package/es/molecule/bulk-infos/types.js.map +1 -0
- package/es/organism/wizard-contents/index.d.ts +28 -0
- package/es/organism/wizard-contents/index.d.ts.map +1 -1
- package/es/organism/wizard-contents/index.js +9 -3
- package/es/organism/wizard-contents/index.js.map +1 -1
- package/es/organism/wizard-contents/style.css +1 -0
- package/es/template/back-office/brand-update/index.d.ts +3 -20
- package/es/template/back-office/brand-update/index.d.ts.map +1 -1
- package/es/template/back-office/brand-update/index.js +7 -13
- package/es/template/back-office/brand-update/index.js.map +1 -1
- package/{es/molecule/uploading-file-progress → lib/molecule/bulk-infos}/index.d.ts +7 -7
- package/lib/molecule/bulk-infos/index.d.ts.map +1 -0
- package/lib/molecule/{uploading-file-progress → bulk-infos}/index.js +27 -20
- package/lib/molecule/bulk-infos/index.js.map +1 -0
- package/lib/molecule/{empty-state-dashboard → bulk-infos}/style.css +19 -2
- package/lib/molecule/{uploading-file-progress → bulk-infos}/types.d.ts +10 -9
- package/lib/molecule/bulk-infos/types.d.ts.map +1 -0
- package/lib/molecule/{uploading-file-progress → bulk-infos}/types.js +3 -3
- package/lib/molecule/bulk-infos/types.js.map +1 -0
- package/lib/organism/wizard-contents/index.d.ts +28 -0
- package/lib/organism/wizard-contents/index.d.ts.map +1 -1
- package/lib/organism/wizard-contents/index.js +10 -3
- package/lib/organism/wizard-contents/index.js.map +1 -1
- package/lib/organism/wizard-contents/style.css +1 -0
- package/lib/template/back-office/brand-update/index.d.ts +3 -20
- package/lib/template/back-office/brand-update/index.d.ts.map +1 -1
- package/lib/template/back-office/brand-update/index.js +8 -15
- package/lib/template/back-office/brand-update/index.js.map +1 -1
- package/package.json +2 -2
- package/es/molecule/empty-state-dashboard/index.d.ts +0 -23
- package/es/molecule/empty-state-dashboard/index.d.ts.map +0 -1
- package/es/molecule/empty-state-dashboard/index.js +0 -31
- package/es/molecule/empty-state-dashboard/index.js.map +0 -1
- package/es/molecule/empty-state-dashboard/types.d.ts +0 -27
- package/es/molecule/empty-state-dashboard/types.d.ts.map +0 -1
- package/es/molecule/empty-state-dashboard/types.js +0 -19
- package/es/molecule/empty-state-dashboard/types.js.map +0 -1
- package/es/molecule/uploading-file-progress/index.d.ts.map +0 -1
- package/es/molecule/uploading-file-progress/index.js +0 -39
- package/es/molecule/uploading-file-progress/index.js.map +0 -1
- package/es/molecule/uploading-file-progress/style.css +0 -74
- package/es/molecule/uploading-file-progress/types.d.ts.map +0 -1
- package/es/molecule/uploading-file-progress/types.js.map +0 -1
- package/lib/molecule/empty-state-dashboard/index.d.ts +0 -23
- package/lib/molecule/empty-state-dashboard/index.d.ts.map +0 -1
- package/lib/molecule/empty-state-dashboard/index.js +0 -42
- package/lib/molecule/empty-state-dashboard/index.js.map +0 -1
- package/lib/molecule/empty-state-dashboard/types.d.ts +0 -27
- package/lib/molecule/empty-state-dashboard/types.d.ts.map +0 -1
- package/lib/molecule/empty-state-dashboard/types.js +0 -29
- package/lib/molecule/empty-state-dashboard/types.js.map +0 -1
- package/lib/molecule/uploading-file-progress/index.d.ts.map +0 -1
- package/lib/molecule/uploading-file-progress/index.js.map +0 -1
- package/lib/molecule/uploading-file-progress/style.css +0 -74
- package/lib/molecule/uploading-file-progress/types.d.ts.map +0 -1
- package/lib/molecule/uploading-file-progress/types.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["getStyle","isSelected","style","selectedElement","unselectedElement","subTabsView","_subTabs","map","convert","cap","subTab","_index","title","type","selected","buildLeftNavigation","logo","items","onItemClick","formattedTabs","key","href","index","children","iconType","formattedTabsViews","tab","tabs","navigation","buildNotifications","notifications","isEmpty","notificationsList","notification","temporary","permanentNotification","find","permanentNotifications","buildHeader","header","buildPopin","popin","buildDocumentation","documentation","show","onClose","content","classNames","open","documentationContent","__html","closeButton","buildTabs","selectedTab","pipe","e","get","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","PropTypes","arrayOf","shape","Banner","Header","string","isRequired","bool","oneOfType","BrandForm","oneOf","BrandTable","BrandUpload","BrandAnalytics","BrandDashboard","WizardContents","ListItems","EmptyStateDashboard","UploadingFileProgress","ExpandibleActionableTable","func","CmPopin"],"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={!notification.temporary ? style.permanentNotification : null} key={index}>\n <Banner {...notification} />\n </div>\n );\n });\n return (\n <div className={!find({temporary: true}, notifications) ? style.permanentNotifications : null}>\n {notificationsList}\n </div>\n );\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;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;;;AAEA,MAAMA,QAAQ,GAAGC,UAAU,IAAKA,UAAU,GAAGC,cAAA,CAAMC,eAAT,GA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/D,KAAK,EAAE2C,kBAAA,CAAUE,KAAV,cAAoBmB,gBAAA,CAAQtB,SAA5B,EAlGe;EAmGtBnB,OAAO,EAAEoB,kBAAA,CAAUE,KAAV,cACJS,mBAAA,CAAWZ,SADP;IAEP/D,GAAG,EAAEgE,kBAAA,CAAUK,MAFR;IAGP5E,IAAI,EAAEuE,kBAAA,CAAUU,KAAV,CAAgB,CAAC,MAAD,CAAhB;EAHC,GAnGa;EAwGtB5E,WAAW,EAAEkE,kBAAA,CAAUoB,IAxGD;EAyGtBrC,gBAAgB,EAAEiB,kBAAA,CAAUO;AAzGN,CAAxB;eA4Ge1B,W"}
|
|
1
|
+
{"version":3,"file":"index.js","names":["getStyle","isSelected","style","selectedElement","unselectedElement","subTabsView","_subTabs","map","convert","cap","subTab","_index","title","type","selected","buildLeftNavigation","logo","items","onItemClick","formattedTabs","key","href","index","children","iconType","formattedTabsViews","tab","tabs","navigation","buildNotifications","notifications","isEmpty","notificationsList","notification","temporary","permanentNotification","find","permanentNotifications","buildHeader","header","buildPopin","popin","buildDocumentation","documentation","show","onClose","content","classNames","open","documentationContent","__html","closeButton","buildTabs","selectedTab","pipe","e","get","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","PropTypes","arrayOf","shape","Banner","Header","string","isRequired","bool","oneOfType","BrandForm","oneOf","BrandTable","BrandUpload","BrandAnalytics","BrandDashboard","WizardContents","ListItems","BulkInfos","ExpandibleActionableTable","func","CmPopin"],"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 ExpandibleActionableTable from '../../../molecule/expandible-actionable-table';\nimport BulkInfos from '../../../molecule/bulk-infos';\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\n {...subTab}\n styles={getStyle(subTab.selected)}\n uppercase={false}\n setChildrenAsHtml={false}\n />\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={!notification.temporary ? style.permanentNotification : null} key={index}>\n <Banner {...notification} />\n </div>\n );\n });\n return (\n <div className={!find({temporary: true}, notifications) ? style.permanentNotifications : null}>\n {notificationsList}\n </div>\n );\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 'bulk-empty-dashboard':\n return <BulkInfos {...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 ...BulkInfos.propTypes,\n key: PropTypes.string,\n type: PropTypes.oneOf(['bulk-empty-dashboard'])\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;;AACA;;A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C,kBAAA,CAAUE,KAAV,cAAoBkB,gBAAA,CAAQrB,SAA5B,EA7Fe;EA8FtBnB,OAAO,EAAEoB,kBAAA,CAAUE,KAAV,cACJS,mBAAA,CAAWZ,SADP;IAEP/D,GAAG,EAAEgE,kBAAA,CAAUK,MAFR;IAGP5E,IAAI,EAAEuE,kBAAA,CAAUU,KAAV,CAAgB,CAAC,MAAD,CAAhB;EAHC,GA9Fa;EAmGtB5E,WAAW,EAAEkE,kBAAA,CAAUmB,IAnGD;EAoGtBpC,gBAAgB,EAAEiB,kBAAA,CAAUO;AApGN,CAAxB;eAuGe1B,W"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@coorpacademy/components",
|
|
3
|
-
"version": "11.20.
|
|
3
|
+
"version": "11.20.3",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"module": "es/index.js",
|
|
@@ -168,5 +168,5 @@
|
|
|
168
168
|
"last 2 versions",
|
|
169
169
|
"IE 11"
|
|
170
170
|
],
|
|
171
|
-
"gitHead": "
|
|
171
|
+
"gitHead": "e33e8f3fc640793c8f31b2018d888a8491c97b15"
|
|
172
172
|
}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { EmptyStateDashboardProps as Props } from './types';
|
|
3
|
-
declare const EmptyStateDashboard: {
|
|
4
|
-
({ mainText, subText, imageUrl, buttonLink }: Props): JSX.Element;
|
|
5
|
-
propTypes: {
|
|
6
|
-
mainText: import("prop-types").Requireable<string>;
|
|
7
|
-
subText: import("prop-types").Requireable<string>;
|
|
8
|
-
imageUrl: import("prop-types").Requireable<any>;
|
|
9
|
-
buttonLink: import("prop-types").Requireable<import("prop-types").InferProps<{
|
|
10
|
-
type: import("prop-types").Requireable<string>;
|
|
11
|
-
label: import("prop-types").Requireable<string>;
|
|
12
|
-
ariaLabel: import("prop-types").Requireable<string>;
|
|
13
|
-
dataName: import("prop-types").Requireable<string>;
|
|
14
|
-
icon: import("prop-types").Requireable<import("prop-types").InferProps<{
|
|
15
|
-
position: import("prop-types").Requireable<string>;
|
|
16
|
-
type: import("prop-types").Requireable<string>;
|
|
17
|
-
}>>;
|
|
18
|
-
onClick: import("prop-types").Requireable<(...args: any[]) => any>;
|
|
19
|
-
}>>;
|
|
20
|
-
};
|
|
21
|
-
};
|
|
22
|
-
export default EmptyStateDashboard;
|
|
23
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/molecule/empty-state-dashboard/index.tsx"],"names":[],"mappings":";AAGA,OAAO,EAAC,wBAAwB,IAAI,KAAK,EAAY,MAAM,SAAS,CAAC;AAErE,QAAA,MAAM,mBAAmB;kDAA+C,KAAK;;;;;;;;;;;;;;;;;CAa5E,CAAC;AAIF,eAAe,mBAAmB,CAAC"}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
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); }
|
|
2
|
-
|
|
3
|
-
import React from 'react';
|
|
4
|
-
import ButtonLink from '../../atom/button-link';
|
|
5
|
-
import style from './style.css';
|
|
6
|
-
import { propTypes } from './types';
|
|
7
|
-
|
|
8
|
-
const EmptyStateDashboard = ({
|
|
9
|
-
mainText,
|
|
10
|
-
subText,
|
|
11
|
-
imageUrl,
|
|
12
|
-
buttonLink
|
|
13
|
-
}) => /*#__PURE__*/React.createElement("div", {
|
|
14
|
-
className: style.container
|
|
15
|
-
}, /*#__PURE__*/React.createElement("div", null, imageUrl && typeof imageUrl === 'string' ? /*#__PURE__*/React.createElement("img", {
|
|
16
|
-
className: style.img,
|
|
17
|
-
src: imageUrl,
|
|
18
|
-
"aria-hidden": "true"
|
|
19
|
-
}) : null), /*#__PURE__*/React.createElement("p", {
|
|
20
|
-
className: style.mainText
|
|
21
|
-
}, mainText), /*#__PURE__*/React.createElement("p", {
|
|
22
|
-
className: style.subText
|
|
23
|
-
}, subText), /*#__PURE__*/React.createElement("div", {
|
|
24
|
-
className: style.buttonContainer
|
|
25
|
-
}, /*#__PURE__*/React.createElement(ButtonLink, _extends({}, buttonLink, {
|
|
26
|
-
className: style.button
|
|
27
|
-
}))));
|
|
28
|
-
|
|
29
|
-
EmptyStateDashboard.propTypes = process.env.NODE_ENV !== "production" ? propTypes : {};
|
|
30
|
-
export default EmptyStateDashboard;
|
|
31
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["React","ButtonLink","style","propTypes","EmptyStateDashboard","mainText","subText","imageUrl","buttonLink","container","img","buttonContainer","button"],"sources":["../../../src/molecule/empty-state-dashboard/index.tsx"],"sourcesContent":["import React from 'react';\nimport ButtonLink from '../../atom/button-link';\nimport style from './style.css';\nimport {EmptyStateDashboardProps as Props, propTypes} from './types';\n\nconst EmptyStateDashboard = ({mainText, subText, imageUrl, buttonLink}: Props) => (\n <div className={style.container}>\n <div>\n {imageUrl && typeof imageUrl === 'string' ? (\n <img className={style.img} src={imageUrl} aria-hidden=\"true\" />\n ) : null}\n </div>\n <p className={style.mainText}>{mainText}</p>\n <p className={style.subText}>{subText}</p>\n <div className={style.buttonContainer}>\n <ButtonLink {...buttonLink} className={style.button} />\n </div>\n </div>\n);\n\nEmptyStateDashboard.propTypes = propTypes;\n\nexport default EmptyStateDashboard;\n"],"mappings":";;AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,OAAOC,UAAP,MAAuB,wBAAvB;AACA,OAAOC,KAAP,MAAkB,aAAlB;AACA,SAA2CC,SAA3C,QAA2D,SAA3D;;AAEA,MAAMC,mBAAmB,GAAG,CAAC;EAACC,QAAD;EAAWC,OAAX;EAAoBC,QAApB;EAA8BC;AAA9B,CAAD,kBAC1B;EAAK,SAAS,EAAEN,KAAK,CAACO;AAAtB,gBACE,iCACGF,QAAQ,IAAI,OAAOA,QAAP,KAAoB,QAAhC,gBACC;EAAK,SAAS,EAAEL,KAAK,CAACQ,GAAtB;EAA2B,GAAG,EAAEH,QAAhC;EAA0C,eAAY;AAAtD,EADD,GAEG,IAHN,CADF,eAME;EAAG,SAAS,EAAEL,KAAK,CAACG;AAApB,GAA+BA,QAA/B,CANF,eAOE;EAAG,SAAS,EAAEH,KAAK,CAACI;AAApB,GAA8BA,OAA9B,CAPF,eAQE;EAAK,SAAS,EAAEJ,KAAK,CAACS;AAAtB,gBACE,oBAAC,UAAD,eAAgBH,UAAhB;EAA4B,SAAS,EAAEN,KAAK,CAACU;AAA7C,GADF,CARF,CADF;;AAeAR,mBAAmB,CAACD,SAApB,2CAAgCA,SAAhC;AAEA,eAAeC,mBAAf"}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import PropTypes from 'prop-types';
|
|
2
|
-
import { ButtonLinkProps } from '../../atom/button-link/types';
|
|
3
|
-
import Picture from '../../atom/picture';
|
|
4
|
-
export declare const propTypes: {
|
|
5
|
-
mainText: PropTypes.Requireable<string>;
|
|
6
|
-
subText: PropTypes.Requireable<string>;
|
|
7
|
-
imageUrl: PropTypes.Requireable<any>;
|
|
8
|
-
buttonLink: PropTypes.Requireable<PropTypes.InferProps<{
|
|
9
|
-
type: PropTypes.Requireable<string>;
|
|
10
|
-
label: PropTypes.Requireable<string>;
|
|
11
|
-
ariaLabel: PropTypes.Requireable<string>;
|
|
12
|
-
dataName: PropTypes.Requireable<string>;
|
|
13
|
-
icon: PropTypes.Requireable<PropTypes.InferProps<{
|
|
14
|
-
position: PropTypes.Requireable<string>;
|
|
15
|
-
type: PropTypes.Requireable<string>;
|
|
16
|
-
}>>;
|
|
17
|
-
onClick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
18
|
-
}>>;
|
|
19
|
-
};
|
|
20
|
-
export declare type EmptyStateDashboardProps = {
|
|
21
|
-
mainText: string;
|
|
22
|
-
subText: string;
|
|
23
|
-
imageUrl: PropTypes.InferProps<typeof Picture.propTypes.src>;
|
|
24
|
-
buttonLink: ButtonLinkProps;
|
|
25
|
-
};
|
|
26
|
-
export declare type Props = PropTypes.InferProps<typeof propTypes>;
|
|
27
|
-
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/molecule/empty-state-dashboard/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;;;;;;;;;;;;;;;CAerB,CAAC;AAEF,oBAAY,wBAAwB,GAAG;IACrC,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,SAAS,CAAC,UAAU,CAAC,OAAO,OAAO,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC;IAC7D,UAAU,EAAE,eAAe,CAAC;CAC7B,CAAC;AAEF,oBAAY,KAAK,GAAG,SAAS,CAAC,UAAU,CAAC,OAAO,SAAS,CAAC,CAAC"}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import PropTypes from 'prop-types';
|
|
2
|
-
import Picture from '../../atom/picture';
|
|
3
|
-
export const propTypes = {
|
|
4
|
-
mainText: PropTypes.string,
|
|
5
|
-
subText: PropTypes.string,
|
|
6
|
-
imageUrl: Picture.propTypes.src,
|
|
7
|
-
buttonLink: PropTypes.shape({
|
|
8
|
-
type: PropTypes.string,
|
|
9
|
-
label: PropTypes.string,
|
|
10
|
-
ariaLabel: PropTypes.string,
|
|
11
|
-
dataName: PropTypes.string,
|
|
12
|
-
icon: PropTypes.shape({
|
|
13
|
-
position: PropTypes.string,
|
|
14
|
-
type: PropTypes.string
|
|
15
|
-
}),
|
|
16
|
-
onClick: PropTypes.func
|
|
17
|
-
})
|
|
18
|
-
};
|
|
19
|
-
//# sourceMappingURL=types.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","names":["PropTypes","Picture","propTypes","mainText","string","subText","imageUrl","src","buttonLink","shape","type","label","ariaLabel","dataName","icon","position","onClick","func"],"sources":["../../../src/molecule/empty-state-dashboard/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 buttonLink: 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 EmptyStateDashboardProps = {\n mainText: string;\n subText: string;\n imageUrl: PropTypes.InferProps<typeof Picture.propTypes.src>;\n buttonLink: ButtonLinkProps;\n};\n\nexport type Props = PropTypes.InferProps<typeof propTypes>;\n"],"mappings":"AAAA,OAAOA,SAAP,MAAsB,YAAtB;AAEA,OAAOC,OAAP,MAAoB,oBAApB;AAEA,OAAO,MAAMC,SAAS,GAAG;EACvBC,QAAQ,EAAEH,SAAS,CAACI,MADG;EAEvBC,OAAO,EAAEL,SAAS,CAACI,MAFI;EAGvBE,QAAQ,EAAEL,OAAO,CAACC,SAAR,CAAkBK,GAHL;EAIvBC,UAAU,EAAER,SAAS,CAACS,KAAV,CAAgB;IAC1BC,IAAI,EAAEV,SAAS,CAACI,MADU;IAE1BO,KAAK,EAAEX,SAAS,CAACI,MAFS;IAG1BQ,SAAS,EAAEZ,SAAS,CAACI,MAHK;IAI1BS,QAAQ,EAAEb,SAAS,CAACI,MAJM;IAK1BU,IAAI,EAAEd,SAAS,CAACS,KAAV,CAAgB;MACpBM,QAAQ,EAAEf,SAAS,CAACI,MADA;MAEpBM,IAAI,EAAEV,SAAS,CAACI;IAFI,CAAhB,CALoB;IAS1BY,OAAO,EAAEhB,SAAS,CAACiB;EATO,CAAhB;AAJW,CAAlB"}
|
|
@@ -1 +0,0 @@
|
|
|
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,39 +0,0 @@
|
|
|
1
|
-
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); }
|
|
2
|
-
|
|
3
|
-
import React from 'react';
|
|
4
|
-
import ButtonLink from '../../atom/button-link';
|
|
5
|
-
import Loader from '../../atom/loader';
|
|
6
|
-
import style from './style.css';
|
|
7
|
-
import { propTypes } from './types';
|
|
8
|
-
|
|
9
|
-
const UploadingFileProgress = ({
|
|
10
|
-
mainText,
|
|
11
|
-
subText,
|
|
12
|
-
progressionValue,
|
|
13
|
-
leftButtonLink,
|
|
14
|
-
rightButtonLink
|
|
15
|
-
}) => /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", {
|
|
16
|
-
className: style.loaderWrapper
|
|
17
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
18
|
-
className: style.loader
|
|
19
|
-
}, /*#__PURE__*/React.createElement(Loader, {
|
|
20
|
-
theme: "coorpmanager"
|
|
21
|
-
}))), /*#__PURE__*/React.createElement("div", {
|
|
22
|
-
className: style.container
|
|
23
|
-
}, /*#__PURE__*/React.createElement("p", {
|
|
24
|
-
className: style.mainText
|
|
25
|
-
}, mainText, /*#__PURE__*/React.createElement("span", {
|
|
26
|
-
className: style.progressionValue
|
|
27
|
-
}, " ", progressionValue, "%")), /*#__PURE__*/React.createElement("p", {
|
|
28
|
-
className: style.subText
|
|
29
|
-
}, subText), /*#__PURE__*/React.createElement("div", {
|
|
30
|
-
className: style.buttonContainer
|
|
31
|
-
}, /*#__PURE__*/React.createElement(ButtonLink, _extends({}, leftButtonLink, {
|
|
32
|
-
className: style.leftButtonLink
|
|
33
|
-
})), /*#__PURE__*/React.createElement(ButtonLink, _extends({}, rightButtonLink, {
|
|
34
|
-
className: style.rightButtonLink
|
|
35
|
-
})))));
|
|
36
|
-
|
|
37
|
-
UploadingFileProgress.propTypes = process.env.NODE_ENV !== "production" ? propTypes : {};
|
|
38
|
-
export default UploadingFileProgress;
|
|
39
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["React","ButtonLink","Loader","style","propTypes","UploadingFileProgress","mainText","subText","progressionValue","leftButtonLink","rightButtonLink","loaderWrapper","loader","container","buttonContainer"],"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,OAAOA,KAAP,MAAkB,OAAlB;AACA,OAAOC,UAAP,MAAuB,wBAAvB;AACA,OAAOC,MAAP,MAAmB,mBAAnB;AACA,OAAOC,KAAP,MAAkB,aAAlB;AACA,SAA6CC,SAA7C,QAA6D,SAA7D;;AAEA,MAAMC,qBAAqB,GAAG,CAAC;EAC7BC,QAD6B;EAE7BC,OAF6B;EAG7BC,gBAH6B;EAI7BC,cAJ6B;EAK7BC;AAL6B,CAAD,kBAO5B,8CACE;EAAK,SAAS,EAAEP,KAAK,CAACQ;AAAtB,gBACE;EAAK,SAAS,EAAER,KAAK,CAACS;AAAtB,gBACE,oBAAC,MAAD;EAAQ,KAAK,EAAC;AAAd,EADF,CADF,CADF,eAME;EAAK,SAAS,EAAET,KAAK,CAACU;AAAtB,gBACE;EAAG,SAAS,EAAEV,KAAK,CAACG;AAApB,GACGA,QADH,eAEE;EAAM,SAAS,EAAEH,KAAK,CAACK;AAAvB,QAA2CA,gBAA3C,MAFF,CADF,eAKE;EAAG,SAAS,EAAEL,KAAK,CAACI;AAApB,GAA8BA,OAA9B,CALF,eAME;EAAK,SAAS,EAAEJ,KAAK,CAACW;AAAtB,gBACE,oBAAC,UAAD,eAAgBL,cAAhB;EAAgC,SAAS,EAAEN,KAAK,CAACM;AAAjD,GADF,eAEE,oBAAC,UAAD,eAAgBC,eAAhB;EAAiC,SAAS,EAAEP,KAAK,CAACO;AAAlD,GAFF,CANF,CANF,CAPF;;AA2BAL,qBAAqB,CAACD,SAAtB,2CAAkCA,SAAlC;AAEA,eAAeC,qBAAf"}
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
@value colors: "../../variables/colors.css";
|
|
2
|
-
@value cm_grey_800: from colors;
|
|
3
|
-
@value cm_grey_400: from colors;
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
.container {
|
|
7
|
-
display: flex;
|
|
8
|
-
flex-direction: column;
|
|
9
|
-
height: 100%;
|
|
10
|
-
justify-content: center;
|
|
11
|
-
overflow: hidden;
|
|
12
|
-
text-align: center;
|
|
13
|
-
width: 100%;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
.loaderWrapper {
|
|
17
|
-
position: relative;
|
|
18
|
-
width: 100%;
|
|
19
|
-
display: flex;
|
|
20
|
-
flex-direction: column;
|
|
21
|
-
justify-content: center;
|
|
22
|
-
align-items: center;
|
|
23
|
-
border-radius: 7px;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
.loader {
|
|
27
|
-
margin-bottom: 8px;
|
|
28
|
-
height: 32px;
|
|
29
|
-
width: 32px;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
.text {
|
|
33
|
-
font-family: 'Gilroy';
|
|
34
|
-
margin: 0 auto 0 auto;
|
|
35
|
-
}
|
|
36
|
-
.mainText {
|
|
37
|
-
composes: text;
|
|
38
|
-
color: cm_grey_800;
|
|
39
|
-
font-weight: 600;
|
|
40
|
-
font-size: 24px;
|
|
41
|
-
line-height: 32px;
|
|
42
|
-
padding-top: 36px;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
.subText {
|
|
46
|
-
composes: text;
|
|
47
|
-
color: cm_grey_400;
|
|
48
|
-
font-weight: 400;
|
|
49
|
-
font-size: 16px;
|
|
50
|
-
line-height: 24px;
|
|
51
|
-
padding-top: 4px;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
.progressionValue {
|
|
55
|
-
color: cm_grey_400;
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
.buttonContainer {
|
|
59
|
-
display: flex;
|
|
60
|
-
justify-content: center;
|
|
61
|
-
padding-top: 32px;
|
|
62
|
-
width: 100%;
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
.leftButtonLink {
|
|
66
|
-
width: 152px;
|
|
67
|
-
height: 44px;
|
|
68
|
-
margin-left: 0;
|
|
69
|
-
}
|
|
70
|
-
.rightButtonLink {
|
|
71
|
-
width: 152px;
|
|
72
|
-
height: 44px;
|
|
73
|
-
margin-left: 20px;
|
|
74
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
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 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","names":["PropTypes","Picture","propTypes","mainText","string","subText","imageUrl","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,OAAOA,SAAP,MAAsB,YAAtB;AAEA,OAAOC,OAAP,MAAoB,oBAApB;AAEA,OAAO,MAAMC,SAAS,GAAG;EACvBC,QAAQ,EAAEH,SAAS,CAACI,MADG;EAEvBC,OAAO,EAAEL,SAAS,CAACI,MAFI;EAGvBE,QAAQ,EAAEL,OAAO,CAACC,SAAR,CAAkBK,GAHL;EAIvBC,gBAAgB,EAAER,SAAS,CAACS,MAJL;EAKvBC,cAAc,EAAEV,SAAS,CAACW,KAAV,CAAgB;IAC9BC,IAAI,EAAEZ,SAAS,CAACI,MADc;IAE9BS,KAAK,EAAEb,SAAS,CAACI,MAFa;IAG9BU,SAAS,EAAEd,SAAS,CAACI,MAHS;IAI9BW,QAAQ,EAAEf,SAAS,CAACI,MAJU;IAK9BY,IAAI,EAAEhB,SAAS,CAACW,KAAV,CAAgB;MACpBM,QAAQ,EAAEjB,SAAS,CAACI,MADA;MAEpBQ,IAAI,EAAEZ,SAAS,CAACI;IAFI,CAAhB,CALwB;IAS9Bc,OAAO,EAAElB,SAAS,CAACmB;EATW,CAAhB,CALO;EAgBvBC,eAAe,EAAEpB,SAAS,CAACW,KAAV,CAAgB;IAC/BC,IAAI,EAAEZ,SAAS,CAACI,MADe;IAE/BS,KAAK,EAAEb,SAAS,CAACI,MAFc;IAG/BU,SAAS,EAAEd,SAAS,CAACI,MAHU;IAI/BW,QAAQ,EAAEf,SAAS,CAACI,MAJW;IAK/BY,IAAI,EAAEhB,SAAS,CAACW,KAAV,CAAgB;MACpBM,QAAQ,EAAEjB,SAAS,CAACI,MADA;MAEpBQ,IAAI,EAAEZ,SAAS,CAACI;IAFI,CAAhB,CALyB;IAS/Bc,OAAO,EAAElB,SAAS,CAACmB;EATY,CAAhB;AAhBM,CAAlB"}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { EmptyStateDashboardProps as Props } from './types';
|
|
3
|
-
declare const EmptyStateDashboard: {
|
|
4
|
-
({ mainText, subText, imageUrl, buttonLink }: Props): JSX.Element;
|
|
5
|
-
propTypes: {
|
|
6
|
-
mainText: import("prop-types").Requireable<string>;
|
|
7
|
-
subText: import("prop-types").Requireable<string>;
|
|
8
|
-
imageUrl: import("prop-types").Requireable<any>;
|
|
9
|
-
buttonLink: import("prop-types").Requireable<import("prop-types").InferProps<{
|
|
10
|
-
type: import("prop-types").Requireable<string>;
|
|
11
|
-
label: import("prop-types").Requireable<string>;
|
|
12
|
-
ariaLabel: import("prop-types").Requireable<string>;
|
|
13
|
-
dataName: import("prop-types").Requireable<string>;
|
|
14
|
-
icon: import("prop-types").Requireable<import("prop-types").InferProps<{
|
|
15
|
-
position: import("prop-types").Requireable<string>;
|
|
16
|
-
type: import("prop-types").Requireable<string>;
|
|
17
|
-
}>>;
|
|
18
|
-
onClick: import("prop-types").Requireable<(...args: any[]) => any>;
|
|
19
|
-
}>>;
|
|
20
|
-
};
|
|
21
|
-
};
|
|
22
|
-
export default EmptyStateDashboard;
|
|
23
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/molecule/empty-state-dashboard/index.tsx"],"names":[],"mappings":";AAGA,OAAO,EAAC,wBAAwB,IAAI,KAAK,EAAY,MAAM,SAAS,CAAC;AAErE,QAAA,MAAM,mBAAmB;kDAA+C,KAAK;;;;;;;;;;;;;;;;;CAa5E,CAAC;AAIF,eAAe,mBAAmB,CAAC"}
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
exports.__esModule = true;
|
|
4
|
-
exports.default = void 0;
|
|
5
|
-
|
|
6
|
-
var _react = _interopRequireDefault(require("react"));
|
|
7
|
-
|
|
8
|
-
var _buttonLink = _interopRequireDefault(require("../../atom/button-link"));
|
|
9
|
-
|
|
10
|
-
var _style = _interopRequireDefault(require("./style.css"));
|
|
11
|
-
|
|
12
|
-
var _types = require("./types");
|
|
13
|
-
|
|
14
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
15
|
-
|
|
16
|
-
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); }
|
|
17
|
-
|
|
18
|
-
const EmptyStateDashboard = ({
|
|
19
|
-
mainText,
|
|
20
|
-
subText,
|
|
21
|
-
imageUrl,
|
|
22
|
-
buttonLink
|
|
23
|
-
}) => /*#__PURE__*/_react.default.createElement("div", {
|
|
24
|
-
className: _style.default.container
|
|
25
|
-
}, /*#__PURE__*/_react.default.createElement("div", null, imageUrl && typeof imageUrl === 'string' ? /*#__PURE__*/_react.default.createElement("img", {
|
|
26
|
-
className: _style.default.img,
|
|
27
|
-
src: imageUrl,
|
|
28
|
-
"aria-hidden": "true"
|
|
29
|
-
}) : null), /*#__PURE__*/_react.default.createElement("p", {
|
|
30
|
-
className: _style.default.mainText
|
|
31
|
-
}, mainText), /*#__PURE__*/_react.default.createElement("p", {
|
|
32
|
-
className: _style.default.subText
|
|
33
|
-
}, subText), /*#__PURE__*/_react.default.createElement("div", {
|
|
34
|
-
className: _style.default.buttonContainer
|
|
35
|
-
}, /*#__PURE__*/_react.default.createElement(_buttonLink.default, _extends({}, buttonLink, {
|
|
36
|
-
className: _style.default.button
|
|
37
|
-
}))));
|
|
38
|
-
|
|
39
|
-
EmptyStateDashboard.propTypes = process.env.NODE_ENV !== "production" ? _types.propTypes : {};
|
|
40
|
-
var _default = EmptyStateDashboard;
|
|
41
|
-
exports.default = _default;
|
|
42
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["EmptyStateDashboard","mainText","subText","imageUrl","buttonLink","style","container","img","buttonContainer","button","propTypes"],"sources":["../../../src/molecule/empty-state-dashboard/index.tsx"],"sourcesContent":["import React from 'react';\nimport ButtonLink from '../../atom/button-link';\nimport style from './style.css';\nimport {EmptyStateDashboardProps as Props, propTypes} from './types';\n\nconst EmptyStateDashboard = ({mainText, subText, imageUrl, buttonLink}: Props) => (\n <div className={style.container}>\n <div>\n {imageUrl && typeof imageUrl === 'string' ? (\n <img className={style.img} src={imageUrl} aria-hidden=\"true\" />\n ) : null}\n </div>\n <p className={style.mainText}>{mainText}</p>\n <p className={style.subText}>{subText}</p>\n <div className={style.buttonContainer}>\n <ButtonLink {...buttonLink} className={style.button} />\n </div>\n </div>\n);\n\nEmptyStateDashboard.propTypes = propTypes;\n\nexport default EmptyStateDashboard;\n"],"mappings":";;;;;AAAA;;AACA;;AACA;;AACA;;;;;;AAEA,MAAMA,mBAAmB,GAAG,CAAC;EAACC,QAAD;EAAWC,OAAX;EAAoBC,QAApB;EAA8BC;AAA9B,CAAD,kBAC1B;EAAK,SAAS,EAAEC,cAAA,CAAMC;AAAtB,gBACE,0CACGH,QAAQ,IAAI,OAAOA,QAAP,KAAoB,QAAhC,gBACC;EAAK,SAAS,EAAEE,cAAA,CAAME,GAAtB;EAA2B,GAAG,EAAEJ,QAAhC;EAA0C,eAAY;AAAtD,EADD,GAEG,IAHN,CADF,eAME;EAAG,SAAS,EAAEE,cAAA,CAAMJ;AAApB,GAA+BA,QAA/B,CANF,eAOE;EAAG,SAAS,EAAEI,cAAA,CAAMH;AAApB,GAA8BA,OAA9B,CAPF,eAQE;EAAK,SAAS,EAAEG,cAAA,CAAMG;AAAtB,gBACE,6BAAC,mBAAD,eAAgBJ,UAAhB;EAA4B,SAAS,EAAEC,cAAA,CAAMI;AAA7C,GADF,CARF,CADF;;AAeAT,mBAAmB,CAACU,SAApB,2CAAgCA,gBAAhC;eAEeV,mB"}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import PropTypes from 'prop-types';
|
|
2
|
-
import { ButtonLinkProps } from '../../atom/button-link/types';
|
|
3
|
-
import Picture from '../../atom/picture';
|
|
4
|
-
export declare const propTypes: {
|
|
5
|
-
mainText: PropTypes.Requireable<string>;
|
|
6
|
-
subText: PropTypes.Requireable<string>;
|
|
7
|
-
imageUrl: PropTypes.Requireable<any>;
|
|
8
|
-
buttonLink: PropTypes.Requireable<PropTypes.InferProps<{
|
|
9
|
-
type: PropTypes.Requireable<string>;
|
|
10
|
-
label: PropTypes.Requireable<string>;
|
|
11
|
-
ariaLabel: PropTypes.Requireable<string>;
|
|
12
|
-
dataName: PropTypes.Requireable<string>;
|
|
13
|
-
icon: PropTypes.Requireable<PropTypes.InferProps<{
|
|
14
|
-
position: PropTypes.Requireable<string>;
|
|
15
|
-
type: PropTypes.Requireable<string>;
|
|
16
|
-
}>>;
|
|
17
|
-
onClick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
18
|
-
}>>;
|
|
19
|
-
};
|
|
20
|
-
export declare type EmptyStateDashboardProps = {
|
|
21
|
-
mainText: string;
|
|
22
|
-
subText: string;
|
|
23
|
-
imageUrl: PropTypes.InferProps<typeof Picture.propTypes.src>;
|
|
24
|
-
buttonLink: ButtonLinkProps;
|
|
25
|
-
};
|
|
26
|
-
export declare type Props = PropTypes.InferProps<typeof propTypes>;
|
|
27
|
-
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/molecule/empty-state-dashboard/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;;;;;;;;;;;;;;;CAerB,CAAC;AAEF,oBAAY,wBAAwB,GAAG;IACrC,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,SAAS,CAAC,UAAU,CAAC,OAAO,OAAO,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC;IAC7D,UAAU,EAAE,eAAe,CAAC;CAC7B,CAAC;AAEF,oBAAY,KAAK,GAAG,SAAS,CAAC,UAAU,CAAC,OAAO,SAAS,CAAC,CAAC"}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
exports.__esModule = true;
|
|
4
|
-
exports.propTypes = void 0;
|
|
5
|
-
|
|
6
|
-
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
7
|
-
|
|
8
|
-
var _picture = _interopRequireDefault(require("../../atom/picture"));
|
|
9
|
-
|
|
10
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
11
|
-
|
|
12
|
-
const propTypes = {
|
|
13
|
-
mainText: _propTypes.default.string,
|
|
14
|
-
subText: _propTypes.default.string,
|
|
15
|
-
imageUrl: _picture.default.propTypes.src,
|
|
16
|
-
buttonLink: _propTypes.default.shape({
|
|
17
|
-
type: _propTypes.default.string,
|
|
18
|
-
label: _propTypes.default.string,
|
|
19
|
-
ariaLabel: _propTypes.default.string,
|
|
20
|
-
dataName: _propTypes.default.string,
|
|
21
|
-
icon: _propTypes.default.shape({
|
|
22
|
-
position: _propTypes.default.string,
|
|
23
|
-
type: _propTypes.default.string
|
|
24
|
-
}),
|
|
25
|
-
onClick: _propTypes.default.func
|
|
26
|
-
})
|
|
27
|
-
};
|
|
28
|
-
exports.propTypes = propTypes;
|
|
29
|
-
//# sourceMappingURL=types.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","names":["propTypes","mainText","PropTypes","string","subText","imageUrl","Picture","src","buttonLink","shape","type","label","ariaLabel","dataName","icon","position","onClick","func"],"sources":["../../../src/molecule/empty-state-dashboard/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 buttonLink: 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 EmptyStateDashboardProps = {\n mainText: string;\n subText: string;\n imageUrl: PropTypes.InferProps<typeof Picture.propTypes.src>;\n buttonLink: ButtonLinkProps;\n};\n\nexport type Props = PropTypes.InferProps<typeof propTypes>;\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,UAAU,EAAEN,kBAAA,CAAUO,KAAV,CAAgB;IAC1BC,IAAI,EAAER,kBAAA,CAAUC,MADU;IAE1BQ,KAAK,EAAET,kBAAA,CAAUC,MAFS;IAG1BS,SAAS,EAAEV,kBAAA,CAAUC,MAHK;IAI1BU,QAAQ,EAAEX,kBAAA,CAAUC,MAJM;IAK1BW,IAAI,EAAEZ,kBAAA,CAAUO,KAAV,CAAgB;MACpBM,QAAQ,EAAEb,kBAAA,CAAUC,MADA;MAEpBO,IAAI,EAAER,kBAAA,CAAUC;IAFI,CAAhB,CALoB;IAS1Ba,OAAO,EAAEd,kBAAA,CAAUe;EATO,CAAhB;AAJW,CAAlB"}
|
|
@@ -1 +0,0 @@
|
|
|
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 +0,0 @@
|
|
|
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,74 +0,0 @@
|
|
|
1
|
-
@value colors: "../../variables/colors.css";
|
|
2
|
-
@value cm_grey_800: from colors;
|
|
3
|
-
@value cm_grey_400: from colors;
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
.container {
|
|
7
|
-
display: flex;
|
|
8
|
-
flex-direction: column;
|
|
9
|
-
height: 100%;
|
|
10
|
-
justify-content: center;
|
|
11
|
-
overflow: hidden;
|
|
12
|
-
text-align: center;
|
|
13
|
-
width: 100%;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
.loaderWrapper {
|
|
17
|
-
position: relative;
|
|
18
|
-
width: 100%;
|
|
19
|
-
display: flex;
|
|
20
|
-
flex-direction: column;
|
|
21
|
-
justify-content: center;
|
|
22
|
-
align-items: center;
|
|
23
|
-
border-radius: 7px;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
.loader {
|
|
27
|
-
margin-bottom: 8px;
|
|
28
|
-
height: 32px;
|
|
29
|
-
width: 32px;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
.text {
|
|
33
|
-
font-family: 'Gilroy';
|
|
34
|
-
margin: 0 auto 0 auto;
|
|
35
|
-
}
|
|
36
|
-
.mainText {
|
|
37
|
-
composes: text;
|
|
38
|
-
color: cm_grey_800;
|
|
39
|
-
font-weight: 600;
|
|
40
|
-
font-size: 24px;
|
|
41
|
-
line-height: 32px;
|
|
42
|
-
padding-top: 36px;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
.subText {
|
|
46
|
-
composes: text;
|
|
47
|
-
color: cm_grey_400;
|
|
48
|
-
font-weight: 400;
|
|
49
|
-
font-size: 16px;
|
|
50
|
-
line-height: 24px;
|
|
51
|
-
padding-top: 4px;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
.progressionValue {
|
|
55
|
-
color: cm_grey_400;
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
.buttonContainer {
|
|
59
|
-
display: flex;
|
|
60
|
-
justify-content: center;
|
|
61
|
-
padding-top: 32px;
|
|
62
|
-
width: 100%;
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
.leftButtonLink {
|
|
66
|
-
width: 152px;
|
|
67
|
-
height: 44px;
|
|
68
|
-
margin-left: 0;
|
|
69
|
-
}
|
|
70
|
-
.rightButtonLink {
|
|
71
|
-
width: 152px;
|
|
72
|
-
height: 44px;
|
|
73
|
-
margin-left: 20px;
|
|
74
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|