@coorpacademy/components 11.14.0 → 11.14.1-alpha.28
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/es/molecule/discipline-header/style.css +2 -1
- package/es/molecule/expandable-item/index.d.ts +19 -0
- package/es/molecule/expandable-item/index.d.ts.map +1 -0
- package/es/molecule/expandable-item/index.js +44 -0
- package/es/molecule/expandable-item/index.js.map +1 -0
- package/es/molecule/expandable-item/style.css +135 -0
- package/es/molecule/expandable-item/types.d.ts +20 -0
- package/es/molecule/expandable-item/types.d.ts.map +1 -0
- package/es/molecule/expandable-item/types.js +11 -0
- package/es/molecule/expandable-item/types.js.map +1 -0
- package/es/molecule/expandable-list/index.d.ts +18 -0
- package/es/molecule/expandable-list/index.d.ts.map +1 -0
- package/es/molecule/expandable-list/index.js +22 -0
- package/es/molecule/expandable-list/index.js.map +1 -0
- package/es/molecule/expandable-list/style.css +20 -0
- package/es/molecule/expandable-list/types.d.ts +17 -0
- package/es/molecule/expandable-list/types.d.ts.map +1 -0
- package/es/molecule/expandable-list/types.js +6 -0
- package/es/molecule/expandable-list/types.js.map +1 -0
- package/es/molecule/hero/index.d.ts +30 -26
- package/es/molecule/hero/index.d.ts.map +1 -1
- package/es/molecule/hero/index.js +14 -13
- package/es/molecule/hero/index.js.map +1 -1
- package/es/molecule/hero/style.css +42 -0
- package/es/molecule/hero/types.d.ts +22 -0
- package/es/molecule/hero/types.d.ts.map +1 -0
- package/es/molecule/hero/types.js +14 -0
- package/es/molecule/hero/types.js.map +1 -0
- package/es/molecule/menu-links/index.d.ts +22 -0
- package/es/molecule/menu-links/index.d.ts.map +1 -0
- package/es/molecule/menu-links/index.js +70 -0
- package/es/molecule/menu-links/index.js.map +1 -0
- package/es/molecule/menu-links/style.css +161 -0
- package/es/molecule/menu-links/types.d.ts +35 -0
- package/es/molecule/menu-links/types.d.ts.map +1 -0
- package/es/molecule/menu-links/types.js +17 -0
- package/es/molecule/menu-links/types.js.map +1 -0
- package/es/molecule/privacy-policy-contact/index.d.ts +14 -0
- package/es/molecule/privacy-policy-contact/index.d.ts.map +1 -0
- package/es/molecule/privacy-policy-contact/index.js +28 -0
- package/es/molecule/privacy-policy-contact/index.js.map +1 -0
- package/es/molecule/privacy-policy-contact/style.css +38 -0
- package/es/molecule/privacy-policy-contact/types.d.ts +10 -0
- package/es/molecule/privacy-policy-contact/types.d.ts.map +1 -0
- package/es/molecule/privacy-policy-contact/types.js +6 -0
- package/es/molecule/privacy-policy-contact/types.js.map +1 -0
- package/es/molecule/privacy-policy-download/index.d.ts +38 -0
- package/es/molecule/privacy-policy-download/index.d.ts.map +1 -0
- package/es/molecule/privacy-policy-download/index.js +27 -0
- package/es/molecule/privacy-policy-download/index.js.map +1 -0
- package/es/molecule/privacy-policy-download/style.css +65 -0
- package/es/molecule/privacy-policy-download/types.d.ts +50 -0
- package/es/molecule/privacy-policy-download/types.d.ts.map +1 -0
- package/es/molecule/privacy-policy-download/types.js +8 -0
- package/es/molecule/privacy-policy-download/types.js.map +1 -0
- package/es/molecule/quick-access-card/index.d.ts +1 -0
- package/es/molecule/quick-access-card/index.d.ts.map +1 -1
- package/es/molecule/quick-access-card/index.js +77 -21
- package/es/molecule/quick-access-card/index.js.map +1 -1
- package/es/molecule/quick-access-card/style.css +28 -17
- package/es/molecule/quick-access-cards-group/index.d.ts +1 -0
- package/es/organism/brand-dashboard/index.d.ts +1 -0
- package/es/template/back-office/brand-update/index.d.ts +1 -0
- package/es/template/common/faq-article-page/index.d.ts +27 -0
- package/es/template/common/faq-article-page/index.d.ts.map +1 -0
- package/es/template/common/faq-article-page/index.js +50 -0
- package/es/template/common/faq-article-page/index.js.map +1 -0
- package/es/template/common/faq-article-page/style.css +110 -0
- package/es/template/common/faq-article-page/types.d.ts +40 -0
- package/es/template/common/faq-article-page/types.d.ts.map +1 -0
- package/es/template/common/faq-article-page/types.js +20 -0
- package/es/template/common/faq-article-page/types.js.map +1 -0
- package/es/template/common/faq-cards-page/index.d.ts +33 -0
- package/es/template/common/faq-cards-page/index.d.ts.map +1 -0
- package/es/template/common/faq-cards-page/index.js +45 -0
- package/es/template/common/faq-cards-page/index.js.map +1 -0
- package/es/template/common/faq-cards-page/style.css +95 -0
- package/es/template/common/faq-cards-page/types.d.ts +42 -0
- package/es/template/common/faq-cards-page/types.d.ts.map +1 -0
- package/es/template/common/faq-cards-page/types.js +12 -0
- package/es/template/common/faq-cards-page/types.js.map +1 -0
- package/es/template/common/faq-page/index.d.ts +80 -0
- package/es/template/common/faq-page/index.d.ts.map +1 -0
- package/es/template/common/faq-page/index.js +44 -0
- package/es/template/common/faq-page/index.js.map +1 -0
- package/es/template/common/faq-page/style.css +104 -0
- package/es/template/common/faq-page/types.d.ts +86 -0
- package/es/template/common/faq-page/types.d.ts.map +1 -0
- package/es/template/common/faq-page/types.js +13 -0
- package/es/template/common/faq-page/types.js.map +1 -0
- package/es/template/common/privacy-policy-page/index.d.ts +80 -0
- package/es/template/common/privacy-policy-page/index.d.ts.map +1 -0
- package/es/template/common/privacy-policy-page/index.js +50 -0
- package/es/template/common/privacy-policy-page/index.js.map +1 -0
- package/es/template/common/privacy-policy-page/style.css +123 -0
- package/es/template/common/privacy-policy-page/types.d.ts +86 -0
- package/es/template/common/privacy-policy-page/types.d.ts.map +1 -0
- package/es/template/common/privacy-policy-page/types.js +13 -0
- package/es/template/common/privacy-policy-page/types.js.map +1 -0
- package/es/template/mobile-login/welcome/index.native.d.ts +18 -0
- package/es/template/mobile-login/welcome/index.native.d.ts.map +1 -0
- package/es/template/mobile-login/welcome/index.native.js +195 -0
- package/es/template/mobile-login/welcome/index.native.js.map +1 -0
- package/es/util/button-icons.d.ts +1 -0
- package/es/util/button-icons.d.ts.map +1 -1
- package/es/util/button-icons.js +3 -2
- package/es/util/button-icons.js.map +1 -1
- package/es/variables/breakpoints.css +1 -1
- package/lib/molecule/discipline-header/style.css +2 -1
- package/lib/molecule/expandable-item/index.d.ts +19 -0
- package/lib/molecule/expandable-item/index.d.ts.map +1 -0
- package/lib/molecule/expandable-item/index.js +58 -0
- package/lib/molecule/expandable-item/index.js.map +1 -0
- package/lib/molecule/expandable-item/style.css +135 -0
- package/lib/molecule/expandable-item/types.d.ts +20 -0
- package/lib/molecule/expandable-item/types.d.ts.map +1 -0
- package/lib/molecule/expandable-item/types.js +20 -0
- package/lib/molecule/expandable-item/types.js.map +1 -0
- package/lib/molecule/expandable-list/index.d.ts +18 -0
- package/lib/molecule/expandable-list/index.d.ts.map +1 -0
- package/lib/molecule/expandable-list/index.js +33 -0
- package/lib/molecule/expandable-list/index.js.map +1 -0
- package/lib/molecule/expandable-list/style.css +20 -0
- package/lib/molecule/expandable-list/types.d.ts +17 -0
- package/lib/molecule/expandable-list/types.d.ts.map +1 -0
- package/lib/molecule/expandable-list/types.js +16 -0
- package/lib/molecule/expandable-list/types.js.map +1 -0
- package/lib/molecule/hero/index.d.ts +30 -26
- package/lib/molecule/hero/index.d.ts.map +1 -1
- package/lib/molecule/hero/index.js +15 -14
- package/lib/molecule/hero/index.js.map +1 -1
- package/lib/molecule/hero/style.css +42 -0
- package/lib/molecule/hero/types.d.ts +22 -0
- package/lib/molecule/hero/types.d.ts.map +1 -0
- package/lib/molecule/hero/types.js +25 -0
- package/lib/molecule/hero/types.js.map +1 -0
- package/lib/molecule/menu-links/index.d.ts +22 -0
- package/lib/molecule/menu-links/index.d.ts.map +1 -0
- package/lib/molecule/menu-links/index.js +88 -0
- package/lib/molecule/menu-links/index.js.map +1 -0
- package/lib/molecule/menu-links/style.css +161 -0
- package/lib/molecule/menu-links/types.d.ts +35 -0
- package/lib/molecule/menu-links/types.d.ts.map +1 -0
- package/lib/molecule/menu-links/types.js +26 -0
- package/lib/molecule/menu-links/types.js.map +1 -0
- package/lib/molecule/privacy-policy-contact/index.d.ts +14 -0
- package/lib/molecule/privacy-policy-contact/index.d.ts.map +1 -0
- package/lib/molecule/privacy-policy-contact/index.js +41 -0
- package/lib/molecule/privacy-policy-contact/index.js.map +1 -0
- package/lib/molecule/privacy-policy-contact/style.css +38 -0
- package/lib/molecule/privacy-policy-contact/types.d.ts +10 -0
- package/lib/molecule/privacy-policy-contact/types.d.ts.map +1 -0
- package/lib/molecule/privacy-policy-contact/types.js +15 -0
- package/lib/molecule/privacy-policy-contact/types.js.map +1 -0
- package/lib/molecule/privacy-policy-download/index.d.ts +38 -0
- package/lib/molecule/privacy-policy-download/index.d.ts.map +1 -0
- package/lib/molecule/privacy-policy-download/index.js +38 -0
- package/lib/molecule/privacy-policy-download/index.js.map +1 -0
- package/lib/molecule/privacy-policy-download/style.css +65 -0
- package/lib/molecule/privacy-policy-download/types.d.ts +50 -0
- package/lib/molecule/privacy-policy-download/types.d.ts.map +1 -0
- package/lib/molecule/privacy-policy-download/types.js +18 -0
- package/lib/molecule/privacy-policy-download/types.js.map +1 -0
- package/lib/molecule/quick-access-card/index.d.ts +1 -0
- package/lib/molecule/quick-access-card/index.d.ts.map +1 -1
- package/lib/molecule/quick-access-card/index.js +76 -20
- package/lib/molecule/quick-access-card/index.js.map +1 -1
- package/lib/molecule/quick-access-card/style.css +28 -17
- package/lib/molecule/quick-access-cards-group/index.d.ts +1 -0
- package/lib/organism/brand-dashboard/index.d.ts +1 -0
- package/lib/template/back-office/brand-update/index.d.ts +1 -0
- package/lib/template/common/faq-article-page/index.d.ts +27 -0
- package/lib/template/common/faq-article-page/index.d.ts.map +1 -0
- package/lib/template/common/faq-article-page/index.js +63 -0
- package/lib/template/common/faq-article-page/index.js.map +1 -0
- package/lib/template/common/faq-article-page/style.css +110 -0
- package/lib/template/common/faq-article-page/types.d.ts +40 -0
- package/lib/template/common/faq-article-page/types.d.ts.map +1 -0
- package/lib/template/common/faq-article-page/types.js +30 -0
- package/lib/template/common/faq-article-page/types.js.map +1 -0
- package/lib/template/common/faq-cards-page/index.d.ts +33 -0
- package/lib/template/common/faq-cards-page/index.d.ts.map +1 -0
- package/lib/template/common/faq-cards-page/index.js +58 -0
- package/lib/template/common/faq-cards-page/index.js.map +1 -0
- package/lib/template/common/faq-cards-page/style.css +95 -0
- package/lib/template/common/faq-cards-page/types.d.ts +42 -0
- package/lib/template/common/faq-cards-page/types.d.ts.map +1 -0
- package/lib/template/common/faq-cards-page/types.js +24 -0
- package/lib/template/common/faq-cards-page/types.js.map +1 -0
- package/lib/template/common/faq-page/index.d.ts +80 -0
- package/lib/template/common/faq-page/index.d.ts.map +1 -0
- package/lib/template/common/faq-page/index.js +58 -0
- package/lib/template/common/faq-page/index.js.map +1 -0
- package/lib/template/common/faq-page/style.css +104 -0
- package/lib/template/common/faq-page/types.d.ts +86 -0
- package/lib/template/common/faq-page/types.d.ts.map +1 -0
- package/lib/template/common/faq-page/types.js +24 -0
- package/lib/template/common/faq-page/types.js.map +1 -0
- package/lib/template/common/privacy-policy-page/index.d.ts +80 -0
- package/lib/template/common/privacy-policy-page/index.d.ts.map +1 -0
- package/lib/template/common/privacy-policy-page/index.js +65 -0
- package/lib/template/common/privacy-policy-page/index.js.map +1 -0
- package/lib/template/common/privacy-policy-page/style.css +123 -0
- package/lib/template/common/privacy-policy-page/types.d.ts +86 -0
- package/lib/template/common/privacy-policy-page/types.d.ts.map +1 -0
- package/lib/template/common/privacy-policy-page/types.js +24 -0
- package/lib/template/common/privacy-policy-page/types.js.map +1 -0
- package/lib/template/mobile-login/welcome/index.native.d.ts +18 -0
- package/lib/template/mobile-login/welcome/index.native.d.ts.map +1 -0
- package/lib/template/mobile-login/welcome/index.native.js +212 -0
- package/lib/template/mobile-login/welcome/index.native.js.map +1 -0
- package/lib/util/button-icons.d.ts +1 -0
- package/lib/util/button-icons.d.ts.map +1 -1
- package/lib/util/button-icons.js +2 -1
- package/lib/util/button-icons.js.map +1 -1
- package/lib/variables/breakpoints.css +1 -1
- package/package.json +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"button-icons.js","names":["NovaSolidRemoveAddAddCircle1","AddIcon","NovaCompositionCoorpacademyAnalytics","AnalyticsIcon","NovaSolidContentEditionBin","BinIcon","NovaCompositionCoorpacademyBulletPoint","BulletPointIcon","NovaCompositionNavigationArrowLeft","ChevronLeftIcon","NovaCompositionNavigationArrowRight","ChevronRightIcon","NovaSolidStatusClose","CloseIcon","NovaSolidContentEditionPencilWrite","EditIcon","NovaCompositionCoorpacademyEye","EyeIcon","NovaSolidContentContentViewModule1","ListIcon","NovaSolidLoginLogout1","LogoutIcon","NovaSolidApplicationsWindowUpload3","PublishIcon","NovaSolidComputersSdCard","SaveIcon","NovaLineLoginKey1","KlfIcon","NovaSolidFilesFoldersFolders","FoldersIcon","NovaSolidFilesBasicFileUpload2","UploadIcon","NovaCompositionNavigationArrowDown","ArrowDown","NovaLineFilesOfficeFileOfficePdf","PDF","ICONS","add","analytics","bin","close","edit","key","list","logout","publish","save","see","folders","upload","down","pdf"],"sources":["../../src/util/button-icons.js"],"sourcesContent":["import {\n NovaSolidRemoveAddAddCircle1 as AddIcon,\n NovaCompositionCoorpacademyAnalytics as AnalyticsIcon,\n NovaSolidContentEditionBin as BinIcon,\n NovaCompositionCoorpacademyBulletPoint as BulletPointIcon,\n NovaCompositionNavigationArrowLeft as ChevronLeftIcon,\n NovaCompositionNavigationArrowRight as ChevronRightIcon,\n NovaSolidStatusClose as CloseIcon,\n NovaSolidContentEditionPencilWrite as EditIcon,\n NovaCompositionCoorpacademyEye as EyeIcon,\n NovaSolidContentContentViewModule1 as ListIcon,\n NovaSolidLoginLogout1 as LogoutIcon,\n NovaSolidApplicationsWindowUpload3 as PublishIcon,\n NovaSolidComputersSdCard as SaveIcon,\n NovaLineLoginKey1 as KlfIcon,\n NovaSolidFilesFoldersFolders as FoldersIcon,\n NovaSolidFilesBasicFileUpload2 as UploadIcon,\n NovaCompositionNavigationArrowDown as ArrowDown,\n NovaLineFilesOfficeFileOfficePdf as PDF\n} from '@coorpacademy/nova-icons';\n\nexport const ICONS = {\n add: AddIcon,\n analytics: AnalyticsIcon,\n bin: BinIcon,\n 'bullet-point': BulletPointIcon,\n 'chevron-left': ChevronLeftIcon,\n 'chevron-right': ChevronRightIcon,\n close: CloseIcon,\n edit: EditIcon,\n key: KlfIcon,\n list: ListIcon,\n logout: LogoutIcon,\n publish: PublishIcon,\n save: SaveIcon,\n see: EyeIcon,\n folders: FoldersIcon,\n upload: UploadIcon,\n down: ArrowDown,\n pdf: PDF\n};\n"],"mappings":"AAAA,SACEA,4BAA4B,IAAIC,OADlC,EAEEC,oCAAoC,IAAIC,aAF1C,EAGEC,0BAA0B,IAAIC,OAHhC,EAIEC,sCAAsC,IAAIC,eAJ5C,EAKEC,kCAAkC,IAAIC,eALxC,EAMEC,mCAAmC,IAAIC,gBANzC,EAOEC,oBAAoB,IAAIC,SAP1B,EAQEC,kCAAkC,IAAIC,QARxC,EASEC,8BAA8B,IAAIC,OATpC,EAUEC,kCAAkC,IAAIC,QAVxC,EAWEC,qBAAqB,IAAIC,UAX3B,EAYEC,kCAAkC,IAAIC,WAZxC,EAaEC,wBAAwB,IAAIC,QAb9B,EAcEC,iBAAiB,IAAIC,OAdvB,EAeEC,4BAA4B,IAAIC,WAflC,EAgBEC,8BAA8B,IAAIC,UAhBpC,EAiBEC,kCAAkC,IAAIC,SAjBxC,
|
|
1
|
+
{"version":3,"file":"button-icons.js","names":["NovaSolidRemoveAddAddCircle1","AddIcon","NovaCompositionCoorpacademyAnalytics","AnalyticsIcon","NovaSolidContentEditionBin","BinIcon","NovaCompositionCoorpacademyBulletPoint","BulletPointIcon","NovaCompositionNavigationArrowLeft","ChevronLeftIcon","NovaCompositionNavigationArrowRight","ChevronRightIcon","NovaSolidStatusClose","CloseIcon","NovaSolidContentEditionPencilWrite","EditIcon","NovaCompositionCoorpacademyEye","EyeIcon","NovaSolidContentContentViewModule1","ListIcon","NovaSolidLoginLogout1","LogoutIcon","NovaSolidApplicationsWindowUpload3","PublishIcon","NovaSolidComputersSdCard","SaveIcon","NovaLineLoginKey1","KlfIcon","NovaSolidFilesFoldersFolders","FoldersIcon","NovaSolidFilesBasicFileUpload2","UploadIcon","NovaCompositionNavigationArrowDown","ArrowDown","ArrowLeft","NovaLineFilesOfficeFileOfficePdf","PDF","ICONS","add","analytics","bin","close","edit","key","list","logout","publish","save","see","folders","upload","down","pdf","back"],"sources":["../../src/util/button-icons.js"],"sourcesContent":["import {\n NovaSolidRemoveAddAddCircle1 as AddIcon,\n NovaCompositionCoorpacademyAnalytics as AnalyticsIcon,\n NovaSolidContentEditionBin as BinIcon,\n NovaCompositionCoorpacademyBulletPoint as BulletPointIcon,\n NovaCompositionNavigationArrowLeft as ChevronLeftIcon,\n NovaCompositionNavigationArrowRight as ChevronRightIcon,\n NovaSolidStatusClose as CloseIcon,\n NovaSolidContentEditionPencilWrite as EditIcon,\n NovaCompositionCoorpacademyEye as EyeIcon,\n NovaSolidContentContentViewModule1 as ListIcon,\n NovaSolidLoginLogout1 as LogoutIcon,\n NovaSolidApplicationsWindowUpload3 as PublishIcon,\n NovaSolidComputersSdCard as SaveIcon,\n NovaLineLoginKey1 as KlfIcon,\n NovaSolidFilesFoldersFolders as FoldersIcon,\n NovaSolidFilesBasicFileUpload2 as UploadIcon,\n NovaCompositionNavigationArrowDown as ArrowDown,\n NovaCompositionNavigationArrowLeft as ArrowLeft,\n NovaLineFilesOfficeFileOfficePdf as PDF\n} from '@coorpacademy/nova-icons';\n\nexport const ICONS = {\n add: AddIcon,\n analytics: AnalyticsIcon,\n bin: BinIcon,\n 'bullet-point': BulletPointIcon,\n 'chevron-left': ChevronLeftIcon,\n 'chevron-right': ChevronRightIcon,\n close: CloseIcon,\n edit: EditIcon,\n key: KlfIcon,\n list: ListIcon,\n logout: LogoutIcon,\n publish: PublishIcon,\n save: SaveIcon,\n see: EyeIcon,\n folders: FoldersIcon,\n upload: UploadIcon,\n down: ArrowDown,\n pdf: PDF,\n back: ArrowLeft\n};\n"],"mappings":"AAAA,SACEA,4BAA4B,IAAIC,OADlC,EAEEC,oCAAoC,IAAIC,aAF1C,EAGEC,0BAA0B,IAAIC,OAHhC,EAIEC,sCAAsC,IAAIC,eAJ5C,EAKEC,kCAAkC,IAAIC,eALxC,EAMEC,mCAAmC,IAAIC,gBANzC,EAOEC,oBAAoB,IAAIC,SAP1B,EAQEC,kCAAkC,IAAIC,QARxC,EASEC,8BAA8B,IAAIC,OATpC,EAUEC,kCAAkC,IAAIC,QAVxC,EAWEC,qBAAqB,IAAIC,UAX3B,EAYEC,kCAAkC,IAAIC,WAZxC,EAaEC,wBAAwB,IAAIC,QAb9B,EAcEC,iBAAiB,IAAIC,OAdvB,EAeEC,4BAA4B,IAAIC,WAflC,EAgBEC,8BAA8B,IAAIC,UAhBpC,EAiBEC,kCAAkC,IAAIC,SAjBxC,EAkBEzB,kCAAkC,IAAI0B,SAlBxC,EAmBEC,gCAAgC,IAAIC,GAnBtC,QAoBO,0BApBP;AAsBA,OAAO,MAAMC,KAAK,GAAG;EACnBC,GAAG,EAAErC,OADc;EAEnBsC,SAAS,EAAEpC,aAFQ;EAGnBqC,GAAG,EAAEnC,OAHc;EAInB,gBAAgBE,eAJG;EAKnB,gBAAgBE,eALG;EAMnB,iBAAiBE,gBANE;EAOnB8B,KAAK,EAAE5B,SAPY;EAQnB6B,IAAI,EAAE3B,QARa;EASnB4B,GAAG,EAAEhB,OATc;EAUnBiB,IAAI,EAAEzB,QAVa;EAWnB0B,MAAM,EAAExB,UAXW;EAYnByB,OAAO,EAAEvB,WAZU;EAanBwB,IAAI,EAAEtB,QAba;EAcnBuB,GAAG,EAAE/B,OAdc;EAenBgC,OAAO,EAAEpB,WAfU;EAgBnBqB,MAAM,EAAEnB,UAhBW;EAiBnBoB,IAAI,EAAElB,SAjBa;EAkBnBmB,GAAG,EAAEhB,GAlBc;EAmBnBiB,IAAI,EAAEnB;AAnBa,CAAd"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { Props } from './types';
|
|
3
|
+
export declare const ICONS: {
|
|
4
|
+
arrow: any;
|
|
5
|
+
};
|
|
6
|
+
declare const ExpandableItem: {
|
|
7
|
+
({ icon, title, isExpended, isLink, content, onClick, image }: Props): JSX.Element;
|
|
8
|
+
propTypes: {
|
|
9
|
+
title: import("prop-types").Requireable<string>;
|
|
10
|
+
icon: import("prop-types").Requireable<string>;
|
|
11
|
+
isExpended: import("prop-types").Requireable<boolean>;
|
|
12
|
+
isLink: import("prop-types").Requireable<boolean>;
|
|
13
|
+
content: import("prop-types").Requireable<string>;
|
|
14
|
+
image: import("prop-types").Requireable<string>;
|
|
15
|
+
onClick: import("prop-types").Requireable<(...args: any[]) => any>;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
export default ExpandableItem;
|
|
19
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/molecule/expandable-item/index.tsx"],"names":[],"mappings":";AAGA,OAAO,EAAY,KAAK,EAAC,MAAM,SAAS,CAAC;AAGzC,eAAO,MAAM,KAAK;;CAEjB,CAAC;AAEF,QAAA,MAAM,cAAc;mEAAgE,KAAK;;;;;;;;;;CA2BxF,CAAC;AAGF,eAAe,cAAc,CAAC"}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
exports.__esModule = true;
|
|
4
|
+
exports.default = exports.ICONS = void 0;
|
|
5
|
+
|
|
6
|
+
var _react = _interopRequireDefault(require("react"));
|
|
7
|
+
|
|
8
|
+
var _classnames = _interopRequireDefault(require("classnames"));
|
|
9
|
+
|
|
10
|
+
var _novaIcons = require("@coorpacademy/nova-icons");
|
|
11
|
+
|
|
12
|
+
var _types = require("./types");
|
|
13
|
+
|
|
14
|
+
var _style = _interopRequireDefault(require("./style.css"));
|
|
15
|
+
|
|
16
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
17
|
+
|
|
18
|
+
const ICONS = {
|
|
19
|
+
arrow: _novaIcons.NovaCompositionNavigationArrowDown
|
|
20
|
+
};
|
|
21
|
+
exports.ICONS = ICONS;
|
|
22
|
+
|
|
23
|
+
const ExpandableItem = ({
|
|
24
|
+
icon,
|
|
25
|
+
title,
|
|
26
|
+
isExpended,
|
|
27
|
+
isLink,
|
|
28
|
+
content,
|
|
29
|
+
onClick,
|
|
30
|
+
image
|
|
31
|
+
}) => {
|
|
32
|
+
const Icon = ICONS[icon];
|
|
33
|
+
return /*#__PURE__*/_react.default.createElement("div", {
|
|
34
|
+
className: isExpended ? _style.default.expendedContainer : _style.default.container,
|
|
35
|
+
onClick: onClick
|
|
36
|
+
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
37
|
+
className: (0, _classnames.default)(_style.default.header, isExpended ? _style.default.expendedHeader : null)
|
|
38
|
+
}, /*#__PURE__*/_react.default.createElement("h3", {
|
|
39
|
+
className: _style.default.title
|
|
40
|
+
}, title), Icon ? /*#__PURE__*/_react.default.createElement(Icon, {
|
|
41
|
+
className: (0, _classnames.default)(_style.default.icon, isExpended ? _style.default.expendedIcon : null, isLink ? _style.default.linkIcon : null)
|
|
42
|
+
}) : null), isExpended ? /*#__PURE__*/_react.default.createElement("div", null, /*#__PURE__*/_react.default.createElement("div", {
|
|
43
|
+
className: _style.default.content // eslint-disable-next-line react/no-danger
|
|
44
|
+
,
|
|
45
|
+
dangerouslySetInnerHTML: {
|
|
46
|
+
__html: content
|
|
47
|
+
}
|
|
48
|
+
}), image ? /*#__PURE__*/_react.default.createElement("img", {
|
|
49
|
+
className: _style.default.image,
|
|
50
|
+
src: image,
|
|
51
|
+
alt: ''
|
|
52
|
+
}) : null) : null);
|
|
53
|
+
};
|
|
54
|
+
|
|
55
|
+
ExpandableItem.propTypes = process.env.NODE_ENV !== "production" ? _types.propTypes : {};
|
|
56
|
+
var _default = ExpandableItem;
|
|
57
|
+
exports.default = _default;
|
|
58
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","names":["ICONS","arrow","ArrowIcon","ExpandableItem","icon","title","isExpended","isLink","content","onClick","image","Icon","styles","expendedContainer","container","classnames","header","expendedHeader","expendedIcon","linkIcon","__html","propTypes"],"sources":["../../../src/molecule/expandable-item/index.tsx"],"sourcesContent":["import React from 'react';\nimport classnames from 'classnames';\nimport {NovaCompositionNavigationArrowDown as ArrowIcon} from '@coorpacademy/nova-icons';\nimport {propTypes, Props} from './types';\nimport styles from './style.css';\n\nexport const ICONS = {\n arrow: ArrowIcon\n};\n\nconst ExpandableItem = ({icon, title, isExpended, isLink, content, onClick, image}: Props) => {\n const Icon = ICONS[icon];\n return (\n <div className={isExpended ? styles.expendedContainer : styles.container} onClick={onClick}>\n <div className={classnames(styles.header, isExpended ? styles.expendedHeader : null)}>\n <h3 className={styles.title}>{title}</h3>\n {Icon ? (\n <Icon\n className={classnames(\n styles.icon,\n isExpended ? styles.expendedIcon : null,\n isLink ? styles.linkIcon : null\n )}\n />\n ) : null}\n </div>\n {isExpended ? (\n <div>\n <div\n className={styles.content} // eslint-disable-next-line react/no-danger\n dangerouslySetInnerHTML={{__html: content}}\n />\n {image ? <img className={styles.image} src={image} alt={''} /> : null}\n </div>\n ) : null}\n </div>\n );\n};\n\nExpandableItem.propTypes = propTypes;\nexport default ExpandableItem;\n"],"mappings":";;;;;AAAA;;AACA;;AACA;;AACA;;AACA;;;;AAEO,MAAMA,KAAK,GAAG;EACnBC,KAAK,EAAEC;AADY,CAAd;;;AAIP,MAAMC,cAAc,GAAG,CAAC;EAACC,IAAD;EAAOC,KAAP;EAAcC,UAAd;EAA0BC,MAA1B;EAAkCC,OAAlC;EAA2CC,OAA3C;EAAoDC;AAApD,CAAD,KAAuE;EAC5F,MAAMC,IAAI,GAAGX,KAAK,CAACI,IAAD,CAAlB;EACA,oBACE;IAAK,SAAS,EAAEE,UAAU,GAAGM,cAAA,CAAOC,iBAAV,GAA8BD,cAAA,CAAOE,SAA/D;IAA0E,OAAO,EAAEL;EAAnF,gBACE;IAAK,SAAS,EAAE,IAAAM,mBAAA,EAAWH,cAAA,CAAOI,MAAlB,EAA0BV,UAAU,GAAGM,cAAA,CAAOK,cAAV,GAA2B,IAA/D;EAAhB,gBACE;IAAI,SAAS,EAAEL,cAAA,CAAOP;EAAtB,GAA8BA,KAA9B,CADF,EAEGM,IAAI,gBACH,6BAAC,IAAD;IACE,SAAS,EAAE,IAAAI,mBAAA,EACTH,cAAA,CAAOR,IADE,EAETE,UAAU,GAAGM,cAAA,CAAOM,YAAV,GAAyB,IAF1B,EAGTX,MAAM,GAAGK,cAAA,CAAOO,QAAV,GAAqB,IAHlB;EADb,EADG,GAQD,IAVN,CADF,EAaGb,UAAU,gBACT,uDACE;IACE,SAAS,EAAEM,cAAA,CAAOJ,OADpB,CAC6B;IAD7B;IAEE,uBAAuB,EAAE;MAACY,MAAM,EAAEZ;IAAT;EAF3B,EADF,EAKGE,KAAK,gBAAG;IAAK,SAAS,EAAEE,cAAA,CAAOF,KAAvB;IAA8B,GAAG,EAAEA,KAAnC;IAA0C,GAAG,EAAE;EAA/C,EAAH,GAA2D,IALnE,CADS,GAQP,IArBN,CADF;AAyBD,CA3BD;;AA6BAP,cAAc,CAACkB,SAAf,2CAA2BA,gBAA3B;eACelB,c"}
|
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
@value colors: "../../variables/colors.css";
|
|
2
|
+
@value breakpoints: "../../variables/breakpoints.css";
|
|
3
|
+
@value mobile from breakpoints;
|
|
4
|
+
@value tablet from breakpoints;
|
|
5
|
+
@value cm_primary_blue from colors;
|
|
6
|
+
@value cm_grey_500 from colors;
|
|
7
|
+
@value cm_grey_600 from colors;
|
|
8
|
+
@value cm_grey_800 from colors;
|
|
9
|
+
@value cm_grey_700 from colors;
|
|
10
|
+
@value white from colors;
|
|
11
|
+
|
|
12
|
+
.container {
|
|
13
|
+
display: flex;
|
|
14
|
+
flex-direction: column;
|
|
15
|
+
background: white;
|
|
16
|
+
gap: 16px;
|
|
17
|
+
border-radius: 8px;
|
|
18
|
+
width: 100%;
|
|
19
|
+
display: flex;
|
|
20
|
+
height: 72px;
|
|
21
|
+
justify-content: center;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.header {
|
|
25
|
+
display: flex;
|
|
26
|
+
flex-direction: row;
|
|
27
|
+
flex: none;
|
|
28
|
+
order: 0;
|
|
29
|
+
flex-grow: 0;
|
|
30
|
+
justify-content: space-between;
|
|
31
|
+
align-items: center;
|
|
32
|
+
cursor: pointer;
|
|
33
|
+
padding: 24px;
|
|
34
|
+
gap: 16px;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.expendedContainer {
|
|
38
|
+
display: flex;
|
|
39
|
+
flex-direction: column;
|
|
40
|
+
background: white;
|
|
41
|
+
gap: 16px;
|
|
42
|
+
border-radius: 2px;
|
|
43
|
+
width: 100%;
|
|
44
|
+
display: flex;
|
|
45
|
+
justify-content: center;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.expendedHeader {
|
|
49
|
+
padding: 24px 24px 0px 24px;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.title {
|
|
53
|
+
font-family: Gilroy;
|
|
54
|
+
color: cm_grey_700;
|
|
55
|
+
margin: 0;
|
|
56
|
+
font-weight: inherit;
|
|
57
|
+
font-family: Gilroy;
|
|
58
|
+
font-size: 18px;
|
|
59
|
+
font-weight: 600;
|
|
60
|
+
line-height: 24px;
|
|
61
|
+
letter-spacing: 0px;
|
|
62
|
+
text-align: left;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.icon {
|
|
66
|
+
width: 16px;
|
|
67
|
+
height: 16px;
|
|
68
|
+
width: 14px;
|
|
69
|
+
left: 5px;
|
|
70
|
+
top: 9px;
|
|
71
|
+
border-radius: 0px;
|
|
72
|
+
color: cm_grey_500;
|
|
73
|
+
flex-shrink: 0;
|
|
74
|
+
min-width: 16px;
|
|
75
|
+
flex-basis: 16px;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.expendedIcon {
|
|
79
|
+
transform: rotateZ(180deg);
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.linkIcon {
|
|
83
|
+
transform: rotateZ(270deg);
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
.content {
|
|
87
|
+
font-family: Gilroy;
|
|
88
|
+
font-size: 20px;
|
|
89
|
+
font-weight: 400;
|
|
90
|
+
line-height: 28px;
|
|
91
|
+
letter-spacing: 0px;
|
|
92
|
+
text-align: left;
|
|
93
|
+
padding: 0px 40px 32px 40px;
|
|
94
|
+
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
.image {
|
|
98
|
+
width: 100%;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
.content span{
|
|
102
|
+
font-family: Gilroy;
|
|
103
|
+
font-size: 20px;
|
|
104
|
+
font-weight: 400;
|
|
105
|
+
line-height: 28px;
|
|
106
|
+
letter-spacing: 0px;
|
|
107
|
+
text-align: left;
|
|
108
|
+
color: cm_grey_600;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
@media mobile {
|
|
112
|
+
.container {
|
|
113
|
+
display: flex;
|
|
114
|
+
flex-direction: column;
|
|
115
|
+
background: white;
|
|
116
|
+
gap: 16px;
|
|
117
|
+
border-radius: 2px;
|
|
118
|
+
width: 100%;
|
|
119
|
+
display: flex;
|
|
120
|
+
justify-content: center;
|
|
121
|
+
height: max-content;
|
|
122
|
+
}
|
|
123
|
+
.header {
|
|
124
|
+
display: flex;
|
|
125
|
+
flex-direction: row;
|
|
126
|
+
flex: none;
|
|
127
|
+
order: 0;
|
|
128
|
+
flex-grow: 0;
|
|
129
|
+
justify-content: space-between;
|
|
130
|
+
align-items: center;
|
|
131
|
+
cursor: pointer;
|
|
132
|
+
padding: 12px 40px;
|
|
133
|
+
height: max-content;
|
|
134
|
+
}
|
|
135
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import PropTypes from 'prop-types';
|
|
2
|
+
export declare const propTypes: {
|
|
3
|
+
title: PropTypes.Requireable<string>;
|
|
4
|
+
icon: PropTypes.Requireable<string>;
|
|
5
|
+
isExpended: PropTypes.Requireable<boolean>;
|
|
6
|
+
isLink: PropTypes.Requireable<boolean>;
|
|
7
|
+
content: PropTypes.Requireable<string>;
|
|
8
|
+
image: PropTypes.Requireable<string>;
|
|
9
|
+
onClick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
10
|
+
};
|
|
11
|
+
export declare type Props = {
|
|
12
|
+
title: string;
|
|
13
|
+
icon: 'arrow';
|
|
14
|
+
isExpended: boolean;
|
|
15
|
+
content: string;
|
|
16
|
+
isLink?: boolean;
|
|
17
|
+
image?: string;
|
|
18
|
+
onClick: () => void;
|
|
19
|
+
};
|
|
20
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/molecule/expandable-item/types.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,YAAY,CAAC;AAEnC,eAAO,MAAM,SAAS;;;;;;;;CAQrB,CAAC;AAEF,oBAAY,KAAK,GAAG;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,OAAO,CAAC;IACd,UAAU,EAAE,OAAO,CAAC;IACpB,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
exports.__esModule = true;
|
|
4
|
+
exports.propTypes = void 0;
|
|
5
|
+
|
|
6
|
+
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
7
|
+
|
|
8
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
9
|
+
|
|
10
|
+
const propTypes = {
|
|
11
|
+
title: _propTypes.default.string,
|
|
12
|
+
icon: _propTypes.default.oneOf(['arrow']),
|
|
13
|
+
isExpended: _propTypes.default.bool,
|
|
14
|
+
isLink: _propTypes.default.bool,
|
|
15
|
+
content: _propTypes.default.string,
|
|
16
|
+
image: _propTypes.default.string,
|
|
17
|
+
onClick: _propTypes.default.func
|
|
18
|
+
};
|
|
19
|
+
exports.propTypes = propTypes;
|
|
20
|
+
//# sourceMappingURL=types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","names":["propTypes","title","PropTypes","string","icon","oneOf","isExpended","bool","isLink","content","image","onClick","func"],"sources":["../../../src/molecule/expandable-item/types.ts"],"sourcesContent":["import PropTypes from 'prop-types';\n\nexport const propTypes = {\n title: PropTypes.string,\n icon: PropTypes.oneOf(['arrow']),\n isExpended: PropTypes.bool,\n isLink: PropTypes.bool,\n content: PropTypes.string,\n image: PropTypes.string,\n onClick: PropTypes.func\n};\n\nexport type Props = {\n title: string;\n icon: 'arrow';\n isExpended: boolean;\n content: string;\n isLink?: boolean;\n image?: string;\n onClick: () => void;\n};\n"],"mappings":";;;;;AAAA;;;;AAEO,MAAMA,SAAS,GAAG;EACvBC,KAAK,EAAEC,kBAAA,CAAUC,MADM;EAEvBC,IAAI,EAAEF,kBAAA,CAAUG,KAAV,CAAgB,CAAC,OAAD,CAAhB,CAFiB;EAGvBC,UAAU,EAAEJ,kBAAA,CAAUK,IAHC;EAIvBC,MAAM,EAAEN,kBAAA,CAAUK,IAJK;EAKvBE,OAAO,EAAEP,kBAAA,CAAUC,MALI;EAMvBO,KAAK,EAAER,kBAAA,CAAUC,MANM;EAOvBQ,OAAO,EAAET,kBAAA,CAAUU;AAPI,CAAlB"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { Props } from './types';
|
|
3
|
+
declare const ExpandableList: {
|
|
4
|
+
({ items }: Props): JSX.Element;
|
|
5
|
+
propTypes: {
|
|
6
|
+
items: import("prop-types").Requireable<(import("prop-types").InferProps<{
|
|
7
|
+
title: import("prop-types").Requireable<string>;
|
|
8
|
+
icon: import("prop-types").Requireable<string>;
|
|
9
|
+
isExpended: import("prop-types").Requireable<boolean>;
|
|
10
|
+
isLink: import("prop-types").Requireable<boolean>;
|
|
11
|
+
content: import("prop-types").Requireable<string>;
|
|
12
|
+
image: import("prop-types").Requireable<string>;
|
|
13
|
+
onClick: import("prop-types").Requireable<(...args: any[]) => any>;
|
|
14
|
+
}> | null | undefined)[]>;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
export default ExpandableList;
|
|
18
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/molecule/expandable-list/index.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAY,KAAK,EAAC,MAAM,SAAS,CAAC;AAGzC,QAAA,MAAM,cAAc;gBAAa,KAAK;;;;;;;;;;;;CAYrC,CAAC;AAIF,eAAe,cAAc,CAAC"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
exports.__esModule = true;
|
|
4
|
+
exports.default = void 0;
|
|
5
|
+
|
|
6
|
+
var _react = _interopRequireDefault(require("react"));
|
|
7
|
+
|
|
8
|
+
var _expandableItem = _interopRequireDefault(require("../expandable-item"));
|
|
9
|
+
|
|
10
|
+
var _types = require("./types");
|
|
11
|
+
|
|
12
|
+
var _style = _interopRequireDefault(require("./style.css"));
|
|
13
|
+
|
|
14
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
15
|
+
|
|
16
|
+
const ExpandableList = ({
|
|
17
|
+
items
|
|
18
|
+
}) => {
|
|
19
|
+
return /*#__PURE__*/_react.default.createElement("ul", {
|
|
20
|
+
className: _style.default.list,
|
|
21
|
+
"data-name": "expandable-item"
|
|
22
|
+
}, items.map((item, index) => {
|
|
23
|
+
return /*#__PURE__*/_react.default.createElement("li", {
|
|
24
|
+
key: `menu-link-item-${index}`,
|
|
25
|
+
className: _style.default.item
|
|
26
|
+
}, /*#__PURE__*/_react.default.createElement(_expandableItem.default, item));
|
|
27
|
+
}));
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
ExpandableList.propTypes = process.env.NODE_ENV !== "production" ? _types.propTypes : {};
|
|
31
|
+
var _default = ExpandableList;
|
|
32
|
+
exports.default = _default;
|
|
33
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","names":["ExpandableList","items","styles","list","map","item","index","propTypes"],"sources":["../../../src/molecule/expandable-list/index.tsx"],"sourcesContent":["import React from 'react';\nimport ExpandableItem from '../expandable-item';\nimport {propTypes, Props} from './types';\nimport styles from './style.css';\n\nconst ExpandableList = ({items}: Props) => {\n return (\n <ul className={styles.list} data-name=\"expandable-item\">\n {items.map((item, index) => {\n return (\n <li key={`menu-link-item-${index}`} className={styles.item}>\n <ExpandableItem {...item} />\n </li>\n );\n })}\n </ul>\n );\n};\n\nExpandableList.propTypes = propTypes;\n\nexport default ExpandableList;\n"],"mappings":";;;;;AAAA;;AACA;;AACA;;AACA;;;;AAEA,MAAMA,cAAc,GAAG,CAAC;EAACC;AAAD,CAAD,KAAoB;EACzC,oBACE;IAAI,SAAS,EAAEC,cAAA,CAAOC,IAAtB;IAA4B,aAAU;EAAtC,GACGF,KAAK,CAACG,GAAN,CAAU,CAACC,IAAD,EAAOC,KAAP,KAAiB;IAC1B,oBACE;MAAI,GAAG,EAAG,kBAAiBA,KAAM,EAAjC;MAAoC,SAAS,EAAEJ,cAAA,CAAOG;IAAtD,gBACE,6BAAC,uBAAD,EAAoBA,IAApB,CADF,CADF;EAKD,CANA,CADH,CADF;AAWD,CAZD;;AAcAL,cAAc,CAACO,SAAf,2CAA2BA,gBAA3B;eAEeP,c"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
@value colors: "../../variables/colors.css";
|
|
2
|
+
@value breakpoints: "../../variables/breakpoints.css";
|
|
3
|
+
@value mobile from breakpoints;
|
|
4
|
+
@value tablet from breakpoints;
|
|
5
|
+
@value cm_primary_blue from colors;
|
|
6
|
+
@value cm_grey_500 from colors;
|
|
7
|
+
@value cm_grey_800 from colors;
|
|
8
|
+
|
|
9
|
+
.list {
|
|
10
|
+
list-style: none;
|
|
11
|
+
cursor: pointer;
|
|
12
|
+
margin: 0;
|
|
13
|
+
padding: 0;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.item {
|
|
17
|
+
display: flex;
|
|
18
|
+
flex-direction: row;
|
|
19
|
+
margin-bottom: 16px;
|
|
20
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import PropTypes from 'prop-types';
|
|
2
|
+
import { Props as ItemProps } from '../expandable-item/types';
|
|
3
|
+
export declare const propTypes: {
|
|
4
|
+
items: PropTypes.Requireable<(PropTypes.InferProps<{
|
|
5
|
+
title: PropTypes.Requireable<string>;
|
|
6
|
+
icon: PropTypes.Requireable<string>;
|
|
7
|
+
isExpended: PropTypes.Requireable<boolean>;
|
|
8
|
+
isLink: PropTypes.Requireable<boolean>;
|
|
9
|
+
content: PropTypes.Requireable<string>;
|
|
10
|
+
image: PropTypes.Requireable<string>;
|
|
11
|
+
onClick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
12
|
+
}> | null | undefined)[]>;
|
|
13
|
+
};
|
|
14
|
+
export declare type Props = {
|
|
15
|
+
items: ItemProps[];
|
|
16
|
+
};
|
|
17
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/molecule/expandable-list/types.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,YAAY,CAAC;AACnC,OAAO,EAAC,KAAK,IAAI,SAAS,EAA6B,MAAM,0BAA0B,CAAC;AAExF,eAAO,MAAM,SAAS;;;;;;;;;;CAErB,CAAC;AAEF,oBAAY,KAAK,GAAG;IAClB,KAAK,EAAE,SAAS,EAAE,CAAC;CACpB,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
exports.__esModule = true;
|
|
4
|
+
exports.propTypes = void 0;
|
|
5
|
+
|
|
6
|
+
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
7
|
+
|
|
8
|
+
var _types = require("../expandable-item/types");
|
|
9
|
+
|
|
10
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
11
|
+
|
|
12
|
+
const propTypes = {
|
|
13
|
+
items: _propTypes.default.arrayOf(_propTypes.default.shape(_types.propTypes))
|
|
14
|
+
};
|
|
15
|
+
exports.propTypes = propTypes;
|
|
16
|
+
//# sourceMappingURL=types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","names":["propTypes","items","PropTypes","arrayOf","shape","ItemPropTypes"],"sources":["../../../src/molecule/expandable-list/types.ts"],"sourcesContent":["import PropTypes from 'prop-types';\nimport {Props as ItemProps, propTypes as ItemPropTypes} from '../expandable-item/types';\n\nexport const propTypes = {\n items: PropTypes.arrayOf(PropTypes.shape(ItemPropTypes))\n};\n\nexport type Props = {\n items: ItemProps[];\n};\n"],"mappings":";;;;;AAAA;;AACA;;;;AAEO,MAAMA,SAAS,GAAG;EACvBC,KAAK,EAAEC,kBAAA,CAAUC,OAAV,CAAkBD,kBAAA,CAAUE,KAAV,CAAgBC,gBAAhB,CAAlB;AADgB,CAAlB"}
|
|
@@ -1,37 +1,41 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { WebContextValues } from '../../atom/provider/web-context';
|
|
3
|
+
import { Props } from './types';
|
|
4
|
+
declare const Hero: {
|
|
5
|
+
(props: Props, context: WebContextValues): JSX.Element;
|
|
6
|
+
contextTypes: {
|
|
7
|
+
skin: import("prop-types").Requireable<import("prop-types").InferProps<{
|
|
8
|
+
common: import("prop-types").Requireable<{
|
|
7
9
|
[x: string]: any;
|
|
8
10
|
}>;
|
|
9
|
-
images:
|
|
10
|
-
'logo-mobile':
|
|
11
|
-
logo:
|
|
12
|
-
'logo-email':
|
|
13
|
-
login:
|
|
11
|
+
images: import("prop-types").Requireable<import("prop-types").InferProps<{
|
|
12
|
+
'logo-mobile': import("prop-types").Requireable<any>;
|
|
13
|
+
logo: import("prop-types").Requireable<any>;
|
|
14
|
+
'logo-email': import("prop-types").Requireable<any>;
|
|
15
|
+
login: import("prop-types").Requireable<any>;
|
|
14
16
|
}>>;
|
|
15
|
-
icons:
|
|
17
|
+
icons: import("prop-types").Requireable<{
|
|
16
18
|
[x: string]: any;
|
|
17
19
|
}>;
|
|
18
|
-
mod:
|
|
20
|
+
mod: import("prop-types").Requireable<{
|
|
19
21
|
[x: string]: any;
|
|
20
22
|
}>;
|
|
21
|
-
courses:
|
|
22
|
-
texts:
|
|
23
|
+
courses: import("prop-types").Requireable<any[]>;
|
|
24
|
+
texts: import("prop-types").Requireable<{
|
|
23
25
|
[x: string]: any;
|
|
24
26
|
}>;
|
|
25
27
|
}>>;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
28
|
+
};
|
|
29
|
+
propTypes: {
|
|
30
|
+
image: import("prop-types").Requireable<string>;
|
|
31
|
+
mode: import("prop-types").Requireable<string>;
|
|
32
|
+
description: import("prop-types").Requireable<string>;
|
|
33
|
+
title: import("prop-types").Requireable<string>;
|
|
34
|
+
author: import("prop-types").Requireable<string>;
|
|
35
|
+
progress: import("prop-types").Requireable<number>;
|
|
36
|
+
onClick: import("prop-types").Requireable<(...args: any[]) => any>;
|
|
37
|
+
submitValue: import("prop-types").Requireable<string>;
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
export default Hero;
|
|
37
41
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/molecule/hero/index.
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/molecule/hero/index.tsx"],"names":[],"mappings":";AAMA,OAAO,EAAC,gBAAgB,EAAC,MAAM,iCAAiC,CAAC;AACjE,OAAO,EAAY,KAAK,EAAC,MAAM,SAAS,CAAC;AAGzC,QAAA,MAAM,IAAI;YAAW,KAAK,WAAW,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkDpD,CAAC;AAQF,eAAe,IAAI,CAAC"}
|
|
@@ -7,8 +7,6 @@ var _get2 = _interopRequireDefault(require("lodash/fp/get"));
|
|
|
7
7
|
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
9
|
|
|
10
|
-
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
11
|
-
|
|
12
10
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
13
11
|
|
|
14
12
|
var _provider = _interopRequireDefault(require("../../atom/provider"));
|
|
@@ -17,6 +15,8 @@ var _button = _interopRequireDefault(require("../../atom/button"));
|
|
|
17
15
|
|
|
18
16
|
var _cardContent = _interopRequireWildcard(require("../card-content"));
|
|
19
17
|
|
|
18
|
+
var _types = require("./types");
|
|
19
|
+
|
|
20
20
|
var _style = _interopRequireDefault(require("./style.css"));
|
|
21
21
|
|
|
22
22
|
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); }
|
|
@@ -35,7 +35,9 @@ const Hero = (props, context) => {
|
|
|
35
35
|
author,
|
|
36
36
|
progress,
|
|
37
37
|
onClick,
|
|
38
|
-
submitValue
|
|
38
|
+
submitValue,
|
|
39
|
+
description,
|
|
40
|
+
mode = _cardContent.MODES.HERO
|
|
39
41
|
} = props;
|
|
40
42
|
const primaryColor = (0, _get2.default)('common.primary', skin);
|
|
41
43
|
const cardStyle = (0, _classnames.default)(_style.default.hero, title ? null : _style.default.lazy);
|
|
@@ -51,12 +53,18 @@ const Hero = (props, context) => {
|
|
|
51
53
|
backgroundColor: primaryColor,
|
|
52
54
|
backgroundImage: image ? `url('${image}')` : 'none'
|
|
53
55
|
}
|
|
54
|
-
})), /*#__PURE__*/_react.default.createElement(_cardContent.default, {
|
|
56
|
+
})), mode === _cardContent.MODES.HERO ? /*#__PURE__*/_react.default.createElement(_cardContent.default, {
|
|
55
57
|
mode: _cardContent.MODES.HERO,
|
|
56
58
|
author: author,
|
|
57
59
|
progress: progress,
|
|
58
60
|
title: title
|
|
59
|
-
})
|
|
61
|
+
}) : /*#__PURE__*/_react.default.createElement("div", {
|
|
62
|
+
className: _style.default.infoWrapper
|
|
63
|
+
}, /*#__PURE__*/_react.default.createElement("h1", {
|
|
64
|
+
className: _style.default.title
|
|
65
|
+
}, title), /*#__PURE__*/_react.default.createElement("p", {
|
|
66
|
+
className: _style.default.description
|
|
67
|
+
}, description)), mode === _cardContent.MODES.HERO ? /*#__PURE__*/_react.default.createElement("div", {
|
|
60
68
|
className: _style.default.heroButtonWrapper
|
|
61
69
|
}, /*#__PURE__*/_react.default.createElement(_button.default, {
|
|
62
70
|
type: "link",
|
|
@@ -67,20 +75,13 @@ const Hero = (props, context) => {
|
|
|
67
75
|
style: {
|
|
68
76
|
backgroundColor: primaryColor
|
|
69
77
|
}
|
|
70
|
-
})));
|
|
78
|
+
})) : null);
|
|
71
79
|
};
|
|
72
80
|
|
|
73
81
|
Hero.contextTypes = {
|
|
74
82
|
skin: _provider.default.childContextTypes.skin
|
|
75
83
|
};
|
|
76
|
-
Hero.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
77
|
-
image: _propTypes.default.string,
|
|
78
|
-
title: _cardContent.default.propTypes.title,
|
|
79
|
-
author: _cardContent.default.propTypes.author,
|
|
80
|
-
progress: _cardContent.default.propTypes.progress,
|
|
81
|
-
onClick: _button.default.propTypes.onClick,
|
|
82
|
-
submitValue: _button.default.propTypes.submitValue
|
|
83
|
-
} : {};
|
|
84
|
+
Hero.propTypes = process.env.NODE_ENV !== "production" ? _types.propTypes : {};
|
|
84
85
|
var _default = Hero;
|
|
85
86
|
exports.default = _default;
|
|
86
87
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["Hero","props","context","skin","image","title","author","progress","onClick","submitValue","primaryColor","cardStyle","classnames","style","hero","lazy","imageWrapper","backgroundColor","backgroundImage","
|
|
1
|
+
{"version":3,"file":"index.js","names":["Hero","props","context","skin","image","title","author","progress","onClick","submitValue","description","mode","MODES","HERO","primaryColor","cardStyle","classnames","style","hero","lazy","imageWrapper","backgroundColor","backgroundImage","infoWrapper","heroButtonWrapper","heroButton","contextTypes","Provider","childContextTypes","propTypes"],"sources":["../../../src/molecule/hero/index.tsx"],"sourcesContent":["import React from 'react';\nimport classnames from 'classnames';\nimport {get} from 'lodash/fp';\nimport Provider from '../../atom/provider';\nimport Button from '../../atom/button';\nimport CardContentInfo, {MODES} from '../card-content';\nimport {WebContextValues} from '../../atom/provider/web-context';\nimport {propTypes, Props} from './types';\nimport style from './style.css';\n\nconst Hero = (props: Props, context: WebContextValues) => {\n const {skin} = context;\n const {\n image,\n title,\n author,\n progress,\n onClick,\n submitValue,\n description,\n mode = MODES.HERO\n } = props;\n\n const primaryColor = get('common.primary', skin);\n const cardStyle = classnames(style.hero, title ? null : style.lazy);\n\n return (\n <div className={cardStyle} data-name=\"hero\">\n <div className={style.imageWrapper}>\n <div\n data-name=\"cover\"\n className={style.image}\n style={{\n backgroundColor: primaryColor,\n backgroundImage: image ? `url('${image}')` : 'none'\n }}\n />\n </div>\n {mode === MODES.HERO ? (\n <CardContentInfo mode={MODES.HERO} author={author} progress={progress} title={title} />\n ) : (\n <div className={style.infoWrapper}>\n <h1 className={style.title}>{title}</h1>\n <p className={style.description}>{description}</p>\n </div>\n )}\n {mode === MODES.HERO ? (\n <div className={style.heroButtonWrapper}>\n <Button\n type=\"link\"\n data-name=\"hero-button\"\n onClick={onClick}\n submitValue={submitValue}\n className={style.heroButton}\n style={{backgroundColor: primaryColor}}\n />\n </div>\n ) : null}\n </div>\n );\n};\n\nHero.contextTypes = {\n skin: Provider.childContextTypes.skin\n};\n\nHero.propTypes = propTypes;\n\nexport default Hero;\n"],"mappings":";;;;;;;AAAA;;AACA;;AAEA;;AACA;;AACA;;AAEA;;AACA;;;;;;;;AAEA,MAAMA,IAAI,GAAG,CAACC,KAAD,EAAeC,OAAf,KAA6C;EACxD,MAAM;IAACC;EAAD,IAASD,OAAf;EACA,MAAM;IACJE,KADI;IAEJC,KAFI;IAGJC,MAHI;IAIJC,QAJI;IAKJC,OALI;IAMJC,WANI;IAOJC,WAPI;IAQJC,IAAI,GAAGC,kBAAA,CAAMC;EART,IASFZ,KATJ;EAWA,MAAMa,YAAY,GAAG,mBAAI,gBAAJ,EAAsBX,IAAtB,CAArB;EACA,MAAMY,SAAS,GAAG,IAAAC,mBAAA,EAAWC,cAAA,CAAMC,IAAjB,EAAuBb,KAAK,GAAG,IAAH,GAAUY,cAAA,CAAME,IAA5C,CAAlB;EAEA,oBACE;IAAK,SAAS,EAAEJ,SAAhB;IAA2B,aAAU;EAArC,gBACE;IAAK,SAAS,EAAEE,cAAA,CAAMG;EAAtB,gBACE;IACE,aAAU,OADZ;IAEE,SAAS,EAAEH,cAAA,CAAMb,KAFnB;IAGE,KAAK,EAAE;MACLiB,eAAe,EAAEP,YADZ;MAELQ,eAAe,EAAElB,KAAK,GAAI,QAAOA,KAAM,IAAjB,GAAuB;IAFxC;EAHT,EADF,CADF,EAWGO,IAAI,KAAKC,kBAAA,CAAMC,IAAf,gBACC,6BAAC,oBAAD;IAAiB,IAAI,EAAED,kBAAA,CAAMC,IAA7B;IAAmC,MAAM,EAAEP,MAA3C;IAAmD,QAAQ,EAAEC,QAA7D;IAAuE,KAAK,EAAEF;EAA9E,EADD,gBAGC;IAAK,SAAS,EAAEY,cAAA,CAAMM;EAAtB,gBACE;IAAI,SAAS,EAAEN,cAAA,CAAMZ;EAArB,GAA6BA,KAA7B,CADF,eAEE;IAAG,SAAS,EAAEY,cAAA,CAAMP;EAApB,GAAkCA,WAAlC,CAFF,CAdJ,EAmBGC,IAAI,KAAKC,kBAAA,CAAMC,IAAf,gBACC;IAAK,SAAS,EAAEI,cAAA,CAAMO;EAAtB,gBACE,6BAAC,eAAD;IACE,IAAI,EAAC,MADP;IAEE,aAAU,aAFZ;IAGE,OAAO,EAAEhB,OAHX;IAIE,WAAW,EAAEC,WAJf;IAKE,SAAS,EAAEQ,cAAA,CAAMQ,UALnB;IAME,KAAK,EAAE;MAACJ,eAAe,EAAEP;IAAlB;EANT,EADF,CADD,GAWG,IA9BN,CADF;AAkCD,CAlDD;;AAoDAd,IAAI,CAAC0B,YAAL,GAAoB;EAClBvB,IAAI,EAAEwB,iBAAA,CAASC,iBAAT,CAA2BzB;AADf,CAApB;AAIAH,IAAI,CAAC6B,SAAL,2CAAiBA,gBAAjB;eAEe7B,I"}
|