@coorpacademy/components 11.12.0 → 11.12.1-alpha.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (73) hide show
  1. package/es/atom/drag-and-drop/index.d.ts +2 -0
  2. package/es/atom/drag-and-drop/index.d.ts.map +1 -1
  3. package/es/atom/drag-and-drop/index.js +26 -2
  4. package/es/atom/drag-and-drop/index.js.map +1 -1
  5. package/es/atom/drag-and-drop/style.css +21 -5
  6. package/es/atom/image-upload/index.d.ts +5 -1
  7. package/es/atom/image-upload/index.d.ts.map +1 -1
  8. package/es/atom/image-upload/index.js +8 -10
  9. package/es/atom/image-upload/index.js.map +1 -1
  10. package/es/atom/video-upload/index.d.ts +2 -0
  11. package/es/molecule/brand-form-group/index.d.ts +4 -0
  12. package/es/molecule/drag-and-drop-wrapper/index.d.ts +2 -0
  13. package/es/molecule/drag-and-drop-wrapper/style.css +1 -1
  14. package/es/molecule/setup-slide/index.d.ts +2 -0
  15. package/es/molecule/setup-slider/index.d.ts +2 -0
  16. package/es/molecule/title-and-checkbox-wrapper/index.d.ts +2 -0
  17. package/es/organism/brand-form/index.d.ts +4 -0
  18. package/es/organism/list-item/index.d.ts +1 -0
  19. package/es/organism/list-item/index.d.ts.map +1 -1
  20. package/es/organism/list-item/index.js +5 -3
  21. package/es/organism/list-item/index.js.map +1 -1
  22. package/es/organism/list-items/index.d.ts +1 -0
  23. package/es/organism/rewards-form/index.d.ts +2 -0
  24. package/es/organism/wizard-contents/index.d.ts +6 -0
  25. package/es/template/app-review/index.native.d.ts.map +1 -1
  26. package/es/template/app-review/index.native.js +3 -3
  27. package/es/template/app-review/index.native.js.map +1 -1
  28. package/es/template/back-office/brand-update/index.d.ts +11 -0
  29. package/es/template/cockpit/jw-uploader/index.d.ts +2 -0
  30. package/es/util/button-icons.d.ts +1 -0
  31. package/es/util/button-icons.d.ts.map +1 -1
  32. package/es/util/button-icons.js +3 -2
  33. package/es/util/button-icons.js.map +1 -1
  34. package/es/util/proptypes.d.ts.map +1 -1
  35. package/es/util/proptypes.js +2 -2
  36. package/es/util/proptypes.js.map +1 -1
  37. package/lib/atom/drag-and-drop/index.d.ts +2 -0
  38. package/lib/atom/drag-and-drop/index.d.ts.map +1 -1
  39. package/lib/atom/drag-and-drop/index.js +26 -2
  40. package/lib/atom/drag-and-drop/index.js.map +1 -1
  41. package/lib/atom/drag-and-drop/style.css +21 -5
  42. package/lib/atom/image-upload/index.d.ts +5 -1
  43. package/lib/atom/image-upload/index.d.ts.map +1 -1
  44. package/lib/atom/image-upload/index.js +8 -11
  45. package/lib/atom/image-upload/index.js.map +1 -1
  46. package/lib/atom/video-upload/index.d.ts +2 -0
  47. package/lib/molecule/brand-form-group/index.d.ts +4 -0
  48. package/lib/molecule/drag-and-drop-wrapper/index.d.ts +2 -0
  49. package/lib/molecule/drag-and-drop-wrapper/style.css +1 -1
  50. package/lib/molecule/setup-slide/index.d.ts +2 -0
  51. package/lib/molecule/setup-slider/index.d.ts +2 -0
  52. package/lib/molecule/title-and-checkbox-wrapper/index.d.ts +2 -0
  53. package/lib/organism/brand-form/index.d.ts +4 -0
  54. package/lib/organism/list-item/index.d.ts +1 -0
  55. package/lib/organism/list-item/index.d.ts.map +1 -1
  56. package/lib/organism/list-item/index.js +5 -3
  57. package/lib/organism/list-item/index.js.map +1 -1
  58. package/lib/organism/list-items/index.d.ts +1 -0
  59. package/lib/organism/rewards-form/index.d.ts +2 -0
  60. package/lib/organism/wizard-contents/index.d.ts +6 -0
  61. package/lib/template/app-review/index.native.d.ts.map +1 -1
  62. package/lib/template/app-review/index.native.js +2 -2
  63. package/lib/template/app-review/index.native.js.map +1 -1
  64. package/lib/template/back-office/brand-update/index.d.ts +11 -0
  65. package/lib/template/cockpit/jw-uploader/index.d.ts +2 -0
  66. package/lib/util/button-icons.d.ts +1 -0
  67. package/lib/util/button-icons.d.ts.map +1 -1
  68. package/lib/util/button-icons.js +2 -1
  69. package/lib/util/button-icons.js.map +1 -1
  70. package/lib/util/proptypes.d.ts.map +1 -1
  71. package/lib/util/proptypes.js +2 -2
  72. package/lib/util/proptypes.js.map +1 -1
  73. package/package.json +2 -2
@@ -58,6 +58,7 @@ declare namespace ListItems {
58
58
  title: PropTypes.Validator<string>;
59
59
  order: PropTypes.Requireable<number>;
60
60
  'aria-label': PropTypes.Requireable<string>;
61
+ contentType: PropTypes.Requireable<string>;
61
62
  }> | null | undefined)[]>;
62
63
  title: PropTypes.Requireable<string>;
63
64
  };
@@ -68,6 +68,8 @@ declare namespace RewardsForm {
68
68
  modified: PropTypes.Requireable<boolean>;
69
69
  disabled: PropTypes.Requireable<boolean>;
70
70
  children: PropTypes.Requireable<(...args: any[]) => any>;
71
+ pdfButtonLabel: PropTypes.Requireable<string>;
72
+ pdfButtonAriaLabel: PropTypes.Requireable<string>;
71
73
  }> | null | undefined)[]>;
72
74
  'data-name': PropTypes.Requireable<string>;
73
75
  }> | null | undefined>>;
@@ -195,6 +195,8 @@ declare namespace WizardContents {
195
195
  modified: PropTypes.Requireable<boolean>;
196
196
  disabled: PropTypes.Requireable<boolean>;
197
197
  children: PropTypes.Requireable<(...args: any[]) => any>;
198
+ pdfButtonLabel: PropTypes.Requireable<string>;
199
+ pdfButtonAriaLabel: PropTypes.Requireable<string>;
198
200
  }> | PropTypes.InferProps<{
199
201
  type: PropTypes.Requireable<string>;
200
202
  tabProps: PropTypes.Requireable<(PropTypes.InferProps<{
@@ -313,6 +315,8 @@ declare namespace WizardContents {
313
315
  modified: PropTypes.Requireable<boolean>;
314
316
  disabled: PropTypes.Requireable<boolean>;
315
317
  children: PropTypes.Requireable<(...args: any[]) => any>;
318
+ pdfButtonLabel: PropTypes.Requireable<string>;
319
+ pdfButtonAriaLabel: PropTypes.Requireable<string>;
316
320
  }> | PropTypes.InferProps<{
317
321
  type: PropTypes.Requireable<string>;
318
322
  title: PropTypes.Validator<string>;
@@ -703,6 +707,8 @@ declare namespace WizardContents {
703
707
  modified: PropTypes.Requireable<boolean>;
704
708
  disabled: PropTypes.Requireable<boolean>;
705
709
  children: PropTypes.Requireable<(...args: any[]) => any>;
710
+ pdfButtonLabel: PropTypes.Requireable<string>;
711
+ pdfButtonAriaLabel: PropTypes.Requireable<string>;
706
712
  }> | null | undefined)[]>;
707
713
  'data-name': PropTypes.Requireable<string>;
708
714
  }> | null | undefined>>;
@@ -1 +1 @@
1
- {"version":3,"file":"index.native.d.ts","sourceRoot":"","sources":["../../../src/template/app-review/index.native.tsx"],"names":[],"mappings":";AAIA,OAAO,EAAC,cAAc,EAAC,MAAM,cAAc,CAAC;AA8B5C,QAAA,MAAM,SAAS,UAAW,cAAc,gBA8CvC,CAAC;AAEF,eAAe,SAAS,CAAC"}
1
+ {"version":3,"file":"index.native.d.ts","sourceRoot":"","sources":["../../../src/template/app-review/index.native.tsx"],"names":[],"mappings":";AAIA,OAAO,EAAC,cAAc,EAAC,MAAM,cAAc,CAAC;AA8B5C,QAAA,MAAM,SAAS,UAAW,cAAc,gBAgDvC,CAAC;AAEF,eAAe,SAAS,CAAC"}
@@ -69,14 +69,14 @@ const AppReview = props => {
69
69
  property: 'opacity',
70
70
  fromValue: 0,
71
71
  toValue: 1,
72
- duration: 1300
72
+ duration: 1250
73
73
  });
74
74
  const isLoading = viewName === 'loader';
75
75
  (0, _reactNativeAnimation.useAnimationWaiter)(isLoading, fadePlayerIn);
76
76
  return /*#__PURE__*/_react.default.createElement(_reactNative.View, {
77
77
  style: styles.rootView
78
78
  }, /*#__PURE__*/_react.default.createElement(_reactNative.Animated.View, {
79
- style: [styles.player, fadePlayerIn.animatedStyle]
79
+ style: [styles.player, _reactNative.Platform.OS === 'ios' ? fadePlayerIn.animatedStyle : null]
80
80
  }, slides ? /*#__PURE__*/_react.default.createElement(_index2.default, {
81
81
  congrats: slides.congrats,
82
82
  header: slides.header,
@@ -1 +1 @@
1
- {"version":3,"file":"index.native.js","names":["styles","StyleSheet","create","rootView","flex","alignItems","justifyContent","player","position","top","left","right","bottom","loaderContainer","AppReview","props","navigateBack","viewName","slides","useEffect","backAction","backHandler","BackHandler","addEventListener","remove","fadePlayerIn","useAnimateProp","property","fromValue","toValue","duration","isLoading","useAnimationWaiter","animatedStyle","congrats","header","stack","quitPopin","backgroundImage"],"sources":["../../../src/template/app-review/index.native.tsx"],"sourcesContent":["import React, {useEffect} from 'react';\nimport {StyleSheet, View, BackHandler, Animated} from 'react-native';\nimport {useAnimateProp, useAnimationWaiter} from '@coorpacademy/react-native-animation';\nimport Loader from '../../atom/loader/index.native';\nimport {AppReviewProps} from './prop-types';\nimport Player from './player/index.native';\n\nconst styles = StyleSheet.create({\n rootView: {\n flex: 1,\n alignItems: 'center',\n justifyContent: 'center'\n },\n player: {\n position: 'absolute',\n top: 0,\n left: 0,\n right: 0,\n bottom: 0,\n justifyContent: 'center',\n alignItems: 'center',\n flex: 1\n },\n loaderContainer: {\n position: 'absolute',\n top: 0,\n left: 0,\n right: 0,\n bottom: 0,\n justifyContent: 'center',\n alignItems: 'center'\n }\n});\n\nconst AppReview = (props: AppReviewProps) => {\n const {navigateBack, viewName, slides} = props;\n\n useEffect(() => {\n const backAction = () => {\n if (navigateBack) {\n navigateBack();\n return true;\n }\n };\n\n // https://reactnative.dev/docs/backhandler\n const backHandler = BackHandler.addEventListener('hardwareBackPress', backAction);\n\n return () => backHandler.remove();\n }, [navigateBack]);\n\n const fadePlayerIn = useAnimateProp({\n property: 'opacity',\n fromValue: 0,\n toValue: 1,\n duration: 1300\n });\n\n const isLoading = viewName === 'loader';\n useAnimationWaiter(isLoading, fadePlayerIn);\n\n return (\n <View style={styles.rootView}>\n <Animated.View style={[styles.player, fadePlayerIn.animatedStyle]}>\n {slides ? (\n <Player\n congrats={slides.congrats}\n header={slides.header}\n stack={slides.stack}\n quitPopin={slides.quitPopin}\n backgroundImage={slides.backgroundImage}\n />\n ) : null}\n </Animated.View>\n\n <View style={styles.loaderContainer} pointerEvents=\"none\">\n <Loader readyToHide={!isLoading} />\n </View>\n </View>\n );\n};\n\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AE;EAJwB,CAAf,CAArB;EAOA,MAAMC,SAAS,GAAGd,QAAQ,KAAK,QAA/B;EACA,IAAAe,wCAAA,EAAmBD,SAAnB,EAA8BN,YAA9B;EAEA,oBACE,6BAAC,iBAAD;IAAM,KAAK,EAAEzB,MAAM,CAACG;EAApB,gBACE,6BAAC,qBAAD,CAAU,IAAV;IAAe,KAAK,EAAE,CAACH,MAAM,CAACO,MAAR,EAAgBkB,YAAY,CAACQ,aAA7B;EAAtB,GACGf,MAAM,gBACL,6BAAC,eAAD;IACE,QAAQ,EAAEA,MAAM,CAACgB,QADnB;IAEE,MAAM,EAAEhB,MAAM,CAACiB,MAFjB;IAGE,KAAK,EAAEjB,MAAM,CAACkB,KAHhB;IAIE,SAAS,EAAElB,MAAM,CAACmB,SAJpB;IAKE,eAAe,EAAEnB,MAAM,CAACoB;EAL1B,EADK,GAQH,IATN,CADF,eAaE,6BAAC,iBAAD;IAAM,KAAK,EAAEtC,MAAM,CAACa,eAApB;IAAqC,aAAa,EAAC;EAAnD,gBACE,6BAAC,cAAD;IAAQ,WAAW,EAAE,CAACkB;EAAtB,EADF,CAbF,CADF;AAmBD,CA9CD;;eAgDejB,S"}
1
+ {"version":3,"file":"index.native.js","names":["styles","StyleSheet","create","rootView","flex","alignItems","justifyContent","player","position","top","left","right","bottom","loaderContainer","AppReview","props","navigateBack","viewName","slides","useEffect","backAction","backHandler","BackHandler","addEventListener","remove","fadePlayerIn","useAnimateProp","property","fromValue","toValue","duration","isLoading","useAnimationWaiter","Platform","OS","animatedStyle","congrats","header","stack","quitPopin","backgroundImage"],"sources":["../../../src/template/app-review/index.native.tsx"],"sourcesContent":["import React, {useEffect} from 'react';\nimport {StyleSheet, View, BackHandler, Animated, Platform} from 'react-native';\nimport {useAnimateProp, useAnimationWaiter} from '@coorpacademy/react-native-animation';\nimport Loader from '../../atom/loader/index.native';\nimport {AppReviewProps} from './prop-types';\nimport Player from './player/index.native';\n\nconst styles = StyleSheet.create({\n rootView: {\n flex: 1,\n alignItems: 'center',\n justifyContent: 'center'\n },\n player: {\n position: 'absolute',\n top: 0,\n left: 0,\n right: 0,\n bottom: 0,\n justifyContent: 'center',\n alignItems: 'center',\n flex: 1\n },\n loaderContainer: {\n position: 'absolute',\n top: 0,\n left: 0,\n right: 0,\n bottom: 0,\n justifyContent: 'center',\n alignItems: 'center'\n }\n});\n\nconst AppReview = (props: AppReviewProps) => {\n const {navigateBack, viewName, slides} = props;\n\n useEffect(() => {\n const backAction = () => {\n if (navigateBack) {\n navigateBack();\n return true;\n }\n };\n\n // https://reactnative.dev/docs/backhandler\n const backHandler = BackHandler.addEventListener('hardwareBackPress', backAction);\n\n return () => backHandler.remove();\n }, [navigateBack]);\n\n const fadePlayerIn = useAnimateProp({\n property: 'opacity',\n fromValue: 0,\n toValue: 1,\n duration: 1250\n });\n\n const isLoading = viewName === 'loader';\n useAnimationWaiter(isLoading, fadePlayerIn);\n\n return (\n <View style={styles.rootView}>\n <Animated.View\n style={[styles.player, Platform.OS === 'ios' ? fadePlayerIn.animatedStyle : null]}\n >\n {slides ? (\n <Player\n congrats={slides.congrats}\n header={slides.header}\n stack={slides.stack}\n quitPopin={slides.quitPopin}\n backgroundImage={slides.backgroundImage}\n />\n ) : null}\n </Animated.View>\n\n <View style={styles.loaderContainer} pointerEvents=\"none\">\n <Loader readyToHide={!isLoading} />\n </View>\n </View>\n );\n};\n\nexport default AppReview;\n"],"mappings":";;;;;AAAA;;AACA;;AACA;;AACA;;AAEA;;;;;;;;AAEA,MAAMA,MAAM,GAAGC,uBAAA,CAAWC,MAAX,CAAkB;EAC/BC,QAAQ,EAAE;IACRC,IAAI,EAAE,CADE;IAERC,UAAU,EAAE,QAFJ;IAGRC,cAAc,EAAE;EAHR,CADqB;EAM/BC,MAAM,EAAE;IACNC,QAAQ,EAAE,UADJ;IAENC,GAAG,EAAE,CAFC;IAGNC,IAAI,EAAE,CAHA;IAINC,KAAK,EAAE,CAJD;IAKNC,MAAM,EAAE,CALF;IAMNN,c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eAAD;IACE,QAAQ,EAAEA,MAAM,CAACkB,QADnB;IAEE,MAAM,EAAElB,MAAM,CAACmB,MAFjB;IAGE,KAAK,EAAEnB,MAAM,CAACoB,KAHhB;IAIE,SAAS,EAAEpB,MAAM,CAACqB,SAJpB;IAKE,eAAe,EAAErB,MAAM,CAACsB;EAL1B,EADK,GAQH,IAXN,CADF,eAeE,6BAAC,iBAAD;IAAM,KAAK,EAAExC,MAAM,CAACa,eAApB;IAAqC,aAAa,EAAC;EAAnD,gBACE,6BAAC,cAAD;IAAQ,WAAW,EAAE,CAACkB;EAAtB,EADF,CAfF,CADF;AAqBD,CAhDD;;eAkDejB,S"}
@@ -280,6 +280,8 @@ declare namespace BrandUpdate {
280
280
  modified: PropTypes.Requireable<boolean>;
281
281
  disabled: PropTypes.Requireable<boolean>;
282
282
  children: PropTypes.Requireable<(...args: any[]) => any>;
283
+ pdfButtonLabel: PropTypes.Requireable<string>;
284
+ pdfButtonAriaLabel: PropTypes.Requireable<string>;
283
285
  }> | PropTypes.InferProps<{
284
286
  type: PropTypes.Requireable<string>;
285
287
  tabProps: PropTypes.Requireable<(PropTypes.InferProps<{
@@ -398,6 +400,8 @@ declare namespace BrandUpdate {
398
400
  modified: PropTypes.Requireable<boolean>;
399
401
  disabled: PropTypes.Requireable<boolean>;
400
402
  children: PropTypes.Requireable<(...args: any[]) => any>;
403
+ pdfButtonLabel: PropTypes.Requireable<string>;
404
+ pdfButtonAriaLabel: PropTypes.Requireable<string>;
401
405
  }> | PropTypes.InferProps<{
402
406
  type: PropTypes.Requireable<string>;
403
407
  title: PropTypes.Validator<string>;
@@ -934,6 +938,8 @@ declare namespace BrandUpdate {
934
938
  modified: PropTypes.Requireable<boolean>;
935
939
  disabled: PropTypes.Requireable<boolean>;
936
940
  children: PropTypes.Requireable<(...args: any[]) => any>;
941
+ pdfButtonLabel: PropTypes.Requireable<string>;
942
+ pdfButtonAriaLabel: PropTypes.Requireable<string>;
937
943
  }> | PropTypes.InferProps<{
938
944
  type: PropTypes.Requireable<string>;
939
945
  tabProps: PropTypes.Requireable<(PropTypes.InferProps<{
@@ -1052,6 +1058,8 @@ declare namespace BrandUpdate {
1052
1058
  modified: PropTypes.Requireable<boolean>;
1053
1059
  disabled: PropTypes.Requireable<boolean>;
1054
1060
  children: PropTypes.Requireable<(...args: any[]) => any>;
1061
+ pdfButtonLabel: PropTypes.Requireable<string>;
1062
+ pdfButtonAriaLabel: PropTypes.Requireable<string>;
1055
1063
  }> | PropTypes.InferProps<{
1056
1064
  type: PropTypes.Requireable<string>;
1057
1065
  title: PropTypes.Validator<string>;
@@ -1442,6 +1450,8 @@ declare namespace BrandUpdate {
1442
1450
  modified: PropTypes.Requireable<boolean>;
1443
1451
  disabled: PropTypes.Requireable<boolean>;
1444
1452
  children: PropTypes.Requireable<(...args: any[]) => any>;
1453
+ pdfButtonLabel: PropTypes.Requireable<string>;
1454
+ pdfButtonAriaLabel: PropTypes.Requireable<string>;
1445
1455
  }> | null | undefined)[]>;
1446
1456
  'data-name': PropTypes.Requireable<string>;
1447
1457
  }> | null | undefined>>;
@@ -1510,6 +1520,7 @@ declare namespace BrandUpdate {
1510
1520
  title: PropTypes.Validator<string>;
1511
1521
  order: PropTypes.Requireable<number>;
1512
1522
  'aria-label': PropTypes.Requireable<string>;
1523
+ contentType: PropTypes.Requireable<string>;
1513
1524
  }> | null | undefined)[]>;
1514
1525
  title: PropTypes.Requireable<string>;
1515
1526
  }> | PropTypes.InferProps<{
@@ -35,6 +35,8 @@ declare namespace JwVideoUploader {
35
35
  error: PropTypes.Requireable<string>;
36
36
  buttonAriaLabel: PropTypes.Requireable<string>;
37
37
  errorButtonLabel: PropTypes.Requireable<string>;
38
+ pdfButtonLabel: PropTypes.Requireable<string>;
39
+ pdfButtonAriaLabel: PropTypes.Requireable<string>;
38
40
  };
39
41
  }
40
42
  import PropTypes from "prop-types";
@@ -16,5 +16,6 @@ export const ICONS: {
16
16
  folders: any;
17
17
  upload: any;
18
18
  down: any;
19
+ pdf: any;
19
20
  };
20
21
  //# sourceMappingURL=button-icons.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"button-icons.d.ts","sourceRoot":"","sources":["../../src/util/button-icons.js"],"names":[],"mappings":"AAoBA;;;;;;;;;;;;;;;;;;EAkBE"}
1
+ {"version":3,"file":"button-icons.d.ts","sourceRoot":"","sources":["../../src/util/button-icons.js"],"names":[],"mappings":"AAqBA;;;;;;;;;;;;;;;;;;;EAmBE"}
@@ -22,7 +22,8 @@ const ICONS = {
22
22
  see: _novaIcons.NovaCompositionCoorpacademyEye,
23
23
  folders: _novaIcons.NovaSolidFilesFoldersFolders,
24
24
  upload: _novaIcons.NovaSolidFilesBasicFileUpload2,
25
- down: _novaIcons.NovaCompositionNavigationArrowDown
25
+ down: _novaIcons.NovaCompositionNavigationArrowDown,
26
+ pdf: _novaIcons.NovaLineFilesOfficeFileOfficePdf
26
27
  };
27
28
  exports.ICONS = ICONS;
28
29
  //# sourceMappingURL=button-icons.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"button-icons.js","names":["ICONS","add","AddIcon","analytics","AnalyticsIcon","bin","BinIcon","BulletPointIcon","ChevronLeftIcon","ChevronRightIcon","close","CloseIcon","edit","EditIcon","key","KlfIcon","list","ListIcon","logout","LogoutIcon","publish","PublishIcon","save","SaveIcon","see","EyeIcon","folders","FoldersIcon","upload","UploadIcon","down","ArrowDown"],"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} 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};\n"],"mappings":";;;;;AAAA;;AAoBO,MAAMA,KAAK,GAAG;EACnBC,GAAG,EAAEC,uCADc;EAEnBC,SAAS,EAAEC,+CAFQ;EAGnBC,GAAG,EAAEC,qCAHc;EAInB,gBAAgBC,iDAJG;EAKnB,gBAAgBC,6CALG;EAMnB,iBAAiBC,8CANE;EAOnBC,KAAK,EAAEC,+BAPY;EAQnBC,IAAI,EAAEC,6CARa;EASnBC,GAAG,EAAEC,4BATc;EAUnBC,IAAI,EAAEC,6CAVa;EAWnBC,MAAM,EAAEC,gCAXW;EAYnBC,OAAO,EAAEC,6CAZU;EAanBC,IAAI,EAAEC,mCAba;EAcnBC,GAAG,EAAEC,yCAdc;EAenBC,OAAO,EAAEC,uCAfU;EAgBnBC,MAAM,EAAEC,yCAhBW;EAiBnBC,IAAI,EAAEC;AAjBa,CAAd"}
1
+ {"version":3,"file":"button-icons.js","names":["ICONS","add","AddIcon","analytics","AnalyticsIcon","bin","BinIcon","BulletPointIcon","ChevronLeftIcon","ChevronRightIcon","close","CloseIcon","edit","EditIcon","key","KlfIcon","list","ListIcon","logout","LogoutIcon","publish","PublishIcon","save","SaveIcon","see","EyeIcon","folders","FoldersIcon","upload","UploadIcon","down","ArrowDown","pdf","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;;AAqBO,MAAMA,KAAK,GAAG;EACnBC,GAAG,EAAEC,uCADc;EAEnBC,SAAS,EAAEC,+CAFQ;EAGnBC,GAAG,EAAEC,qCAHc;EAInB,gBAAgBC,iDAJG;EAKnB,gBAAgBC,6CALG;EAMnB,iBAAiBC,8CANE;EAOnBC,KAAK,EAAEC,+BAPY;EAQnBC,IAAI,EAAEC,6CARa;EASnBC,GAAG,EAAEC,4BATc;EAUnBC,IAAI,EAAEC,6CAVa;EAWnBC,MAAM,EAAEC,gCAXW;EAYnBC,OAAO,EAAEC,6CAZU;EAanBC,IAAI,EAAEC,mCAba;EAcnBC,GAAG,EAAEC,yCAdc;EAenBC,OAAO,EAAEC,uCAfU;EAgBnBC,MAAM,EAAEC,yCAhBW;EAiBnBC,IAAI,EAAEC,6CAjBa;EAkBnBC,GAAG,EAAEC;AAlBc,CAAd"}
@@ -1 +1 @@
1
- {"version":3,"file":"proptypes.d.ts","sourceRoot":"","sources":["../../src/util/proptypes.js"],"names":[],"mappings":"AASA,8BAAsD;AAGtD,+BAAwD;AAExD,qDAA4E;AAErE,+FAKN;AAED,gCAA4C;AAC5C,8BAAwC"}
1
+ {"version":3,"file":"proptypes.d.ts","sourceRoot":"","sources":["../../src/util/proptypes.js"],"names":[],"mappings":"AASA,8BAAsD;AAGtD,+BAAwD;AAExD,qDAA4E;AAErE,+FAMN;AAED,gCAA4C;AAC5C,8BAAwC"}
@@ -27,8 +27,8 @@ const SrcPropType = _propTypes.default.oneOfType([UrlPropType, PathPropType]);
27
27
  exports.SrcPropType = SrcPropType;
28
28
 
29
29
  const ImagePropType = (propValue, key, componentName) => {
30
- if ((0, _includes.default)(propValue[key], ['jpg', 'png', 'svg+xml'])) return;
31
- return new Error(`Invalid prop value: ${propValue[key]}, at component: ${componentName}. Expected a valid image type: jpg, png or svg+xml.`);
30
+ if ((0, _includes.default)(propValue[key], ['image/jpeg', 'image/png', 'image/svg+xml', 'application/pdf'])) return;
31
+ return new Error(`Invalid prop value: ${propValue[key]}, at component: ${componentName}. Expected a valid image type: image/jpeg, image/png, image/svg+xml or application/pdf.`);
32
32
  };
33
33
 
34
34
  exports.ImagePropType = ImagePropType;
@@ -1 +1 @@
1
- {"version":3,"file":"proptypes.js","names":["URL_REGEXP","UrlPropType","stringMatching","PATH_REGEXP","PathPropType","SrcPropType","PropTypes","oneOfType","ImagePropType","propValue","key","componentName","includes","Error","ColorPropType","_ColorPropType","HexPropType","_HexPropType"],"sources":["../../src/util/proptypes.js"],"sourcesContent":["import PropTypes from 'prop-types';\nimport includes from 'lodash/fp/includes';\nimport stringMatching from 'extended-proptypes/lib/validators/stringMatching';\n\nimport _ColorPropType from 'extended-proptypes/lib/validators/color';\nimport _HexPropType from 'extended-proptypes/lib/validators/hex';\n\nconst URL_REGEXP =\n /^(http(s)?:\\/\\/.)[-a-zA-Z0-9@:%._\\\\+~#=]{2,256}\\.[a-z]{2,6}\\b([-a-zA-Z0-9@:%_\\\\+.~#?&//=]*)$/;\nexport const UrlPropType = stringMatching(URL_REGEXP);\n\nconst PATH_REGEXP = /^\\/([-a-zA-Z0-9@:%_\\\\+.~#?&//=]*)$/;\nexport const PathPropType = stringMatching(PATH_REGEXP);\n\nexport const SrcPropType = PropTypes.oneOfType([UrlPropType, PathPropType]);\n\nexport const ImagePropType = (propValue, key, componentName) => {\n if (includes(propValue[key], ['jpg', 'png', 'svg+xml'])) return;\n return new Error(\n `Invalid prop value: ${propValue[key]}, at component: ${componentName}. Expected a valid image type: jpg, png or svg+xml.`\n );\n};\n\nexport const ColorPropType = _ColorPropType;\nexport const HexPropType = _HexPropType;\n"],"mappings":";;;;;AAAA;;AACA;;AACA;;AAEA;;AACA;;;;AAEA,MAAMA,UAAU,GACd,8FADF;AAEO,MAAMC,WAAW,GAAG,IAAAC,uBAAA,EAAeF,UAAf,CAApB;;AAEP,MAAMG,WAAW,GAAG,oCAApB;AACO,MAAMC,YAAY,GAAG,IAAAF,uBAAA,EAAeC,WAAf,CAArB;;;AAEA,MAAME,WAAW,GAAGC,kBAAA,CAAUC,SAAV,CAAoB,CAACN,WAAD,EAAcG,YAAd,CAApB,CAApB;;;;AAEA,MAAMI,aAAa,GAAG,CAACC,SAAD,EAAYC,GAAZ,EAAiBC,aAAjB,KAAmC;EAC9D,IAAI,IAAAC,iBAAA,EAASH,SAAS,CAACC,GAAD,CAAlB,EAAyB,CAAC,KAAD,EAAQ,KAAR,EAAe,SAAf,CAAzB,CAAJ,EAAyD;EACzD,OAAO,IAAIG,KAAJ,CACJ,uBAAsBJ,SAAS,CAACC,GAAD,CAAM,mBAAkBC,aAAc,qDADjE,CAAP;AAGD,CALM;;;AAOA,MAAMG,aAAa,GAAGC,cAAtB;;AACA,MAAMC,WAAW,GAAGC,YAApB"}
1
+ {"version":3,"file":"proptypes.js","names":["URL_REGEXP","UrlPropType","stringMatching","PATH_REGEXP","PathPropType","SrcPropType","PropTypes","oneOfType","ImagePropType","propValue","key","componentName","includes","Error","ColorPropType","_ColorPropType","HexPropType","_HexPropType"],"sources":["../../src/util/proptypes.js"],"sourcesContent":["import PropTypes from 'prop-types';\nimport includes from 'lodash/fp/includes';\nimport stringMatching from 'extended-proptypes/lib/validators/stringMatching';\n\nimport _ColorPropType from 'extended-proptypes/lib/validators/color';\nimport _HexPropType from 'extended-proptypes/lib/validators/hex';\n\nconst URL_REGEXP =\n /^(http(s)?:\\/\\/.)[-a-zA-Z0-9@:%._\\\\+~#=]{2,256}\\.[a-z]{2,6}\\b([-a-zA-Z0-9@:%_\\\\+.~#?&//=]*)$/;\nexport const UrlPropType = stringMatching(URL_REGEXP);\n\nconst PATH_REGEXP = /^\\/([-a-zA-Z0-9@:%_\\\\+.~#?&//=]*)$/;\nexport const PathPropType = stringMatching(PATH_REGEXP);\n\nexport const SrcPropType = PropTypes.oneOfType([UrlPropType, PathPropType]);\n\nexport const ImagePropType = (propValue, key, componentName) => {\n if (includes(propValue[key], ['image/jpeg', 'image/png', 'image/svg+xml', 'application/pdf']))\n return;\n return new Error(\n `Invalid prop value: ${propValue[key]}, at component: ${componentName}. Expected a valid image type: image/jpeg, image/png, image/svg+xml or application/pdf.`\n );\n};\n\nexport const ColorPropType = _ColorPropType;\nexport const HexPropType = _HexPropType;\n"],"mappings":";;;;;AAAA;;AACA;;AACA;;AAEA;;AACA;;;;AAEA,MAAMA,UAAU,GACd,8FADF;AAEO,MAAMC,WAAW,GAAG,IAAAC,uBAAA,EAAeF,UAAf,CAApB;;AAEP,MAAMG,WAAW,GAAG,oCAApB;AACO,MAAMC,YAAY,GAAG,IAAAF,uBAAA,EAAeC,WAAf,CAArB;;;AAEA,MAAME,WAAW,GAAGC,kBAAA,CAAUC,SAAV,CAAoB,CAACN,WAAD,EAAcG,YAAd,CAApB,CAApB;;;;AAEA,MAAMI,aAAa,GAAG,CAACC,SAAD,EAAYC,GAAZ,EAAiBC,aAAjB,KAAmC;EAC9D,IAAI,IAAAC,iBAAA,EAASH,SAAS,CAACC,GAAD,CAAlB,EAAyB,CAAC,YAAD,EAAe,WAAf,EAA4B,eAA5B,EAA6C,iBAA7C,CAAzB,CAAJ,EACE;EACF,OAAO,IAAIG,KAAJ,CACJ,uBAAsBJ,SAAS,CAACC,GAAD,CAAM,mBAAkBC,aAAc,yFADjE,CAAP;AAGD,CANM;;;AAQA,MAAMG,aAAa,GAAGC,cAAtB;;AACA,MAAMC,WAAW,GAAGC,YAApB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coorpacademy/components",
3
- "version": "11.12.0",
3
+ "version": "11.12.1-alpha.13+5b19c6d19",
4
4
  "description": "",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.js",
@@ -166,5 +166,5 @@
166
166
  "last 2 versions",
167
167
  "IE 11"
168
168
  ],
169
- "gitHead": "1b49fffd746ffcffdbce023d048e8c4176bb89f3"
169
+ "gitHead": "5b19c6d191f88c185c6af754efe9a914a8db0c65"
170
170
  }