@coorpacademy/components 11.42.5 → 11.42.7

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 (57) hide show
  1. package/es/molecule/table/index.d.ts +5 -0
  2. package/es/molecule/table/index.d.ts.map +1 -1
  3. package/es/molecule/table/index.js +58 -0
  4. package/es/molecule/table/index.js.map +1 -1
  5. package/es/molecule/table/style.css +43 -0
  6. package/es/organism/assignment-audience/index.d.ts +38 -1
  7. package/es/organism/assignment-audience/index.d.ts.map +1 -1
  8. package/es/organism/assignment-audience/index.js +97 -2
  9. package/es/organism/assignment-audience/index.js.map +1 -1
  10. package/es/organism/assignment-audience/style.css +85 -0
  11. package/es/organism/assignment-audience/types.d.ts +75 -0
  12. package/es/organism/assignment-audience/types.d.ts.map +1 -1
  13. package/es/organism/assignment-audience/types.js +37 -0
  14. package/es/organism/assignment-audience/types.js.map +1 -1
  15. package/es/organism/assignment-edition/index.d.ts +37 -0
  16. package/es/organism/assignment-edition/index.d.ts.map +1 -1
  17. package/es/organism/assignment-edition/types.d.ts +37 -0
  18. package/es/organism/assignment-edition/types.d.ts.map +1 -1
  19. package/es/organism/brand-table/index.d.ts +5 -0
  20. package/es/organism/content-skill-modal/index.d.ts +11 -0
  21. package/es/organism/content-skill-modal/index.d.ts.map +1 -1
  22. package/es/organism/content-skill-modal/index.js +27 -8
  23. package/es/organism/content-skill-modal/index.js.map +1 -1
  24. package/es/organism/content-skill-modal/types.d.ts +24 -1
  25. package/es/organism/content-skill-modal/types.d.ts.map +1 -1
  26. package/es/organism/content-skill-modal/types.js +14 -1
  27. package/es/organism/content-skill-modal/types.js.map +1 -1
  28. package/es/template/back-office/brand-update/index.d.ts +58 -0
  29. package/lib/molecule/table/index.d.ts +5 -0
  30. package/lib/molecule/table/index.d.ts.map +1 -1
  31. package/lib/molecule/table/index.js +58 -0
  32. package/lib/molecule/table/index.js.map +1 -1
  33. package/lib/molecule/table/style.css +43 -0
  34. package/lib/organism/assignment-audience/index.d.ts +38 -1
  35. package/lib/organism/assignment-audience/index.d.ts.map +1 -1
  36. package/lib/organism/assignment-audience/index.js +97 -2
  37. package/lib/organism/assignment-audience/index.js.map +1 -1
  38. package/lib/organism/assignment-audience/style.css +85 -0
  39. package/lib/organism/assignment-audience/types.d.ts +75 -0
  40. package/lib/organism/assignment-audience/types.d.ts.map +1 -1
  41. package/lib/organism/assignment-audience/types.js +37 -0
  42. package/lib/organism/assignment-audience/types.js.map +1 -1
  43. package/lib/organism/assignment-edition/index.d.ts +37 -0
  44. package/lib/organism/assignment-edition/index.d.ts.map +1 -1
  45. package/lib/organism/assignment-edition/types.d.ts +37 -0
  46. package/lib/organism/assignment-edition/types.d.ts.map +1 -1
  47. package/lib/organism/brand-table/index.d.ts +5 -0
  48. package/lib/organism/content-skill-modal/index.d.ts +11 -0
  49. package/lib/organism/content-skill-modal/index.d.ts.map +1 -1
  50. package/lib/organism/content-skill-modal/index.js +27 -8
  51. package/lib/organism/content-skill-modal/index.js.map +1 -1
  52. package/lib/organism/content-skill-modal/types.d.ts +24 -1
  53. package/lib/organism/content-skill-modal/types.d.ts.map +1 -1
  54. package/lib/organism/content-skill-modal/types.js +14 -1
  55. package/lib/organism/content-skill-modal/types.js.map +1 -1
  56. package/lib/template/back-office/brand-update/index.d.ts +58 -0
  57. package/package.json +2 -2
@@ -7,6 +7,11 @@ declare const ContentSkillModal: {
7
7
  };
8
8
  propTypes: {
9
9
  contentList: import("prop-types").Validator<NonNullable<import("prop-types").InferProps<{
10
+ selectAll: import("prop-types").Requireable<import("prop-types").InferProps<{
11
+ label: import("prop-types").Validator<string>;
12
+ disabled: import("prop-types").Requireable<boolean>;
13
+ onClick: import("prop-types").Validator<(...args: any[]) => any>;
14
+ }>>;
10
15
  'aria-label': import("prop-types").Requireable<string>;
11
16
  buttonLink: import("prop-types").Requireable<import("prop-types").InferProps<{
12
17
  type: import("prop-types").Requireable<string>;
@@ -801,6 +806,12 @@ declare const ContentSkillModal: {
801
806
  }> | null | undefined> | null | undefined)[]>;
802
807
  }>>>;
803
808
  modal: import("prop-types").Validator<NonNullable<import("prop-types").InferProps<{
809
+ title: import("prop-types").Requireable<string>;
810
+ description: import("prop-types").Requireable<string>;
811
+ cancelLabel: import("prop-types").Requireable<string>;
812
+ confirmLabel: import("prop-types").Requireable<string>;
813
+ disabled: import("prop-types").Requireable<boolean>;
814
+ error: import("prop-types").Requireable<string>;
804
815
  isOpen: import("prop-types").Requireable<boolean>;
805
816
  onCancel: import("prop-types").Requireable<(...args: any[]) => any>;
806
817
  onConfirm: import("prop-types").Requireable<(...args: any[]) => any>;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/organism/content-skill-modal/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA6B,MAAM,OAAO,CAAC;AAOlD,OAAkB,EAAC,sBAAsB,EAAC,MAAM,SAAS,CAAC;AAE1D,QAAA,MAAM,iBAAiB;YAAW,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4EvD,CAAC;AAQF,eAAe,iBAAiB,CAAC"}
@@ -13,17 +13,32 @@ var _types = _interopRequireDefault(require("./types"));
13
13
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
14
14
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
15
15
  function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
16
+ function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
16
17
  const ContentSkillModal = props => {
17
18
  const {
18
19
  contentList,
19
20
  filters,
20
21
  modal
21
22
  } = props;
23
+ const {
24
+ selectAll,
25
+ ...listProps
26
+ } = contentList;
27
+ const buttonLink = selectAll ? {
28
+ ...selectAll,
29
+ type: 'secondary'
30
+ } : listProps.buttonLink;
22
31
  const {
23
32
  isOpen,
24
33
  onCancel,
25
34
  onConfirm,
26
- onClose
35
+ onClose,
36
+ title = 'Add content',
37
+ description = 'Add courses, video, interactive and more to this skill',
38
+ cancelLabel = 'Cancel',
39
+ confirmLabel = 'Add',
40
+ error,
41
+ disabled = false
27
42
  } = modal;
28
43
  const handleCancel = (0, _react.useCallback)(() => {
29
44
  onCancel();
@@ -37,21 +52,23 @@ const ContentSkillModal = props => {
37
52
  backgroundColor: _colors.COLORS.primary_100
38
53
  };
39
54
  const footer = (0, _react.useMemo)(() => ({
55
+ text: error,
56
+ isError: Boolean(error),
40
57
  cancelButton: {
41
58
  onCancel: handleCancel,
42
- label: 'Cancel'
59
+ label: cancelLabel
43
60
  },
44
61
  confirmButton: {
45
62
  onConfirm,
46
- label: 'Add',
63
+ label: confirmLabel,
47
64
  iconName: 'plus',
48
- disabled: false,
65
+ disabled,
49
66
  color: _colors.COLORS.cm_primary_blue
50
67
  }
51
- }), [handleCancel, onConfirm]);
68
+ }), [handleCancel, onConfirm, cancelLabel, confirmLabel, error, disabled]);
52
69
  const baseModalProps = {
53
- title: 'Add content',
54
- description: 'Add courses, video, interactive and more to this skill',
70
+ title,
71
+ description,
55
72
  headerIcon,
56
73
  footer,
57
74
  isOpen,
@@ -67,7 +84,9 @@ const ContentSkillModal = props => {
67
84
  className: _style.default.container
68
85
  }, /*#__PURE__*/_react.default.createElement("div", {
69
86
  className: _style.default.containerList
70
- }, /*#__PURE__*/_react.default.createElement(_listItems.default, contentList)), /*#__PURE__*/_react.default.createElement("div", {
87
+ }, /*#__PURE__*/_react.default.createElement(_listItems.default, _extends({}, listProps, {
88
+ buttonLink: buttonLink
89
+ }))), /*#__PURE__*/_react.default.createElement("div", {
71
90
  className: _style.default.filtersContainer
72
91
  }, /*#__PURE__*/_react.default.createElement(_multiFilterPanel.default, filters))));
73
92
  };
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["_react","_interopRequireWildcard","require","_baseModal","_interopRequireDefault","_listItems","_multiFilterPanel","_provider","_colors","_style","_types","e","__esModule","default","_getRequireWildcardCache","WeakMap","r","t","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","ContentSkillModal","props","contentList","filters","modal","isOpen","onCancel","onConfirm","onClose","handleCancel","useCallback","handleClose","headerIcon","name","color","COLORS","primary_600","backgroundColor","primary_100","footer","useMemo","cancelButton","label","confirmButton","iconName","disabled","cm_primary_blue","baseModalProps","title","description","customStyle","height","width","createElement","className","style","container","containerList","filtersContainer","contextTypes","translate","Provider","childContextTypes","propTypes","process","env","NODE_ENV","_default","exports"],"sources":["../../../src/organism/content-skill-modal/index.tsx"],"sourcesContent":["import React, {useCallback, useMemo} from 'react';\nimport BaseModal from '../../molecule/base-modal';\nimport ListItems from '../list-items';\nimport MultiFilterPanel from '../../molecule/multi-filter-panel';\nimport Provider from '../../atom/provider';\nimport {COLORS} from '../../variables/colors';\nimport style from './style.css';\nimport propTypes, {ContentSkillModalProps} from './types';\n\nconst ContentSkillModal = (props: ContentSkillModalProps) => {\n const {contentList, filters, modal} = props;\n const {isOpen, onCancel, onConfirm, onClose} = modal;\n\n const handleCancel = useCallback(() => {\n onCancel();\n }, [onCancel]);\n const handleClose = useCallback(() => {\n onClose();\n }, [onClose]);\n\n const headerIcon = {\n name: 'circle-plus',\n color: COLORS.primary_600,\n backgroundColor: COLORS.primary_100\n };\n const footer = useMemo(\n () => ({\n cancelButton: {\n onCancel: handleCancel,\n label: 'Cancel'\n },\n confirmButton: {\n onConfirm,\n label: 'Add',\n iconName: 'plus',\n disabled: false,\n color: COLORS.cm_primary_blue\n }\n }),\n [handleCancel, onConfirm]\n );\n\n const baseModalProps = {\n title: 'Add content',\n description: 'Add courses, video, interactive and more to this skill',\n headerIcon,\n footer,\n isOpen,\n onClose: handleClose,\n // fullscreen modal\n customStyle: {\n height: '80vh',\n width: '80vw'\n }\n };\n\n if (!isOpen) return null;\n\n return (\n <BaseModal {...baseModalProps}>\n <div className={style.container}>\n <div className={style.containerList}>\n <ListItems {...contentList} />\n </div>\n <div className={style.filtersContainer}>\n <MultiFilterPanel {...filters} />\n </div>\n </div>\n </BaseModal>\n );\n};\n\nContentSkillModal.contextTypes = {\n translate: Provider.childContextTypes.translate\n};\n\nContentSkillModal.propTypes = propTypes;\n\nexport default ContentSkillModal;\n"],"mappings":";;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,UAAA,GAAAC,sBAAA,CAAAF,OAAA;AACA,IAAAG,UAAA,GAAAD,sBAAA,CAAAF,OAAA;AACA,IAAAI,iBAAA,GAAAF,sBAAA,CAAAF,OAAA;AACA,IAAAK,SAAA,GAAAH,sBAAA,CAAAF,OAAA;AACA,IAAAM,OAAA,GAAAN,OAAA;AACA,IAAAO,MAAA,GAAAL,sBAAA,CAAAF,OAAA;AACA,IAAAQ,MAAA,GAAAN,sBAAA,CAAAF,OAAA;AAA0D,SAAAE,uBAAAO,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAAA,SAAAG,yBAAAH,CAAA,6BAAAI,OAAA,mBAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAD,wBAAA,YAAAA,CAAAH,CAAA,WAAAA,CAAA,GAAAM,CAAA,GAAAD,CAAA,KAAAL,CAAA;AAAA,SAAAV,wBAAAU,CAAA,EAAAK,CAAA,SAAAA,CAAA,IAAAL,CAAA,IAAAA,CAAA,CAAAC,UAAA,SAAAD,CAAA,eAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,WAAAE,OAAA,EAAAF,CAAA,QAAAM,CAAA,GAAAH,wBAAA,CAAAE,CAAA,OAAAC,CAAA,IAAAA,CAAA,CAAAC,GAAA,CAAAP,CAAA,UAAAM,CAAA,CAAAE,GAAA,CAAAR,C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GAAA,CAAAC,QAAA,oBAAGH,cAAS;AAAC,IAAAI,QAAA,GAAAC,OAAA,CAAAlE,OAAA,GAEzBkB,iBAAiB","ignoreList":[]}
1
+ {"version":3,"file":"index.js","names":["_react","_interopRequireWildcard","require","_baseModal","_interopRequireDefault","_listItems","_multiFilterPanel","_provider","_colors","_style","_types","e","__esModule","default","_getRequireWildcardCache","WeakMap","r","t","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","_extends","assign","bind","arguments","length","apply","ContentSkillModal","props","contentList","filters","modal","selectAll","listProps","buttonLink","type","isOpen","onCancel","onConfirm","onClose","title","description","cancelLabel","confirmLabel","error","disabled","handleCancel","useCallback","handleClose","headerIcon","name","color","COLORS","primary_600","backgroundColor","primary_100","footer","useMemo","text","isError","Boolean","cancelButton","label","confirmButton","iconName","cm_primary_blue","baseModalProps","customStyle","height","width","createElement","className","style","container","containerList","filtersContainer","contextTypes","translate","Provider","childContextTypes","propTypes","process","env","NODE_ENV","_default","exports"],"sources":["../../../src/organism/content-skill-modal/index.tsx"],"sourcesContent":["import React, {useCallback, useMemo} from 'react';\nimport BaseModal from '../../molecule/base-modal';\nimport ListItems from '../list-items';\nimport MultiFilterPanel from '../../molecule/multi-filter-panel';\nimport Provider from '../../atom/provider';\nimport {COLORS} from '../../variables/colors';\nimport style from './style.css';\nimport propTypes, {ContentSkillModalProps} from './types';\n\nconst ContentSkillModal = (props: ContentSkillModalProps) => {\n const {contentList, filters, modal} = props;\n const {selectAll, ...listProps} = contentList;\n const buttonLink = selectAll ? {...selectAll, type: 'secondary'} : listProps.buttonLink;\n const {\n isOpen,\n onCancel,\n onConfirm,\n onClose,\n title = 'Add content',\n description = 'Add courses, video, interactive and more to this skill',\n cancelLabel = 'Cancel',\n confirmLabel = 'Add',\n error,\n disabled = false\n } = modal;\n\n const handleCancel = useCallback(() => {\n onCancel();\n }, [onCancel]);\n const handleClose = useCallback(() => {\n onClose();\n }, [onClose]);\n\n const headerIcon = {\n name: 'circle-plus',\n color: COLORS.primary_600,\n backgroundColor: COLORS.primary_100\n };\n const footer = useMemo(\n () => ({\n text: error,\n isError: Boolean(error),\n cancelButton: {\n onCancel: handleCancel,\n label: cancelLabel\n },\n confirmButton: {\n onConfirm,\n label: confirmLabel,\n iconName: 'plus',\n disabled,\n color: COLORS.cm_primary_blue\n }\n }),\n [handleCancel, onConfirm, cancelLabel, confirmLabel, error, disabled]\n );\n\n const baseModalProps = {\n title,\n description,\n headerIcon,\n footer,\n isOpen,\n onClose: handleClose,\n // fullscreen modal\n customStyle: {\n height: '80vh',\n width: '80vw'\n }\n };\n\n if (!isOpen) return null;\n\n return (\n <BaseModal {...baseModalProps}>\n <div className={style.container}>\n <div className={style.containerList}>\n <ListItems {...listProps} buttonLink={buttonLink} />\n </div>\n <div className={style.filtersContainer}>\n <MultiFilterPanel {...filters} />\n </div>\n </div>\n </BaseModal>\n );\n};\n\nContentSkillModal.contextTypes = {\n translate: Provider.childContextTypes.translate\n};\n\nContentSkillModal.propTypes = propTypes;\n\nexport default ContentSkillModal;\n"],"mappings":";;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,UAAA,GAAAC,sBAAA,CAAAF,OAAA;AACA,IAAAG,UAAA,GAAAD,sBAAA,CAAAF,OAAA;AACA,IAAAI,iBAAA,GAAAF,sBAAA,CAAAF,OAAA;AACA,IAAAK,SAAA,GAAAH,sBAAA,CAAAF,OAAA;AACA,IAAAM,OAAA,GAAAN,OAAA;AACA,IAAAO,MAAA,GAAAL,sBAAA,CAAAF,OAAA;AACA,IAAAQ,MAAA,GAAAN,sBAAA,CAAAF,OAAA;AAA0D,SAAAE,uBAAAO,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAAA,SAAAG,yBAAAH,CAAA,6BAAAI,OAAA,mBAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA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CAACqD,SAAS,GAAAC,OAAA,CAAAC,GAAA,CAAAC,QAAA,oBAAGH,cAAS;AAAC,IAAAI,QAAA,GAAAC,OAAA,CAAAlF,OAAA,GAEzBwB,iBAAiB","ignoreList":[]}
@@ -4,6 +4,11 @@ import ListItems from '../list-items';
4
4
  import { MultiFilterPanelProps } from '../../molecule/multi-filter-panel/prop-types';
5
5
  declare const ContentSkillModalPropTypes: {
6
6
  contentList: PropTypes.Validator<NonNullable<PropTypes.InferProps<{
7
+ selectAll: PropTypes.Requireable<PropTypes.InferProps<{
8
+ label: PropTypes.Validator<string>;
9
+ disabled: PropTypes.Requireable<boolean>;
10
+ onClick: PropTypes.Validator<(...args: any[]) => any>;
11
+ }>>;
7
12
  'aria-label': PropTypes.Requireable<string>;
8
13
  buttonLink: PropTypes.Requireable<PropTypes.InferProps<{
9
14
  type: PropTypes.Requireable<string>;
@@ -798,6 +803,12 @@ declare const ContentSkillModalPropTypes: {
798
803
  }> | null | undefined> | null | undefined)[]>;
799
804
  }>>>;
800
805
  modal: PropTypes.Validator<NonNullable<PropTypes.InferProps<{
806
+ title: PropTypes.Requireable<string>;
807
+ description: PropTypes.Requireable<string>;
808
+ cancelLabel: PropTypes.Requireable<string>;
809
+ confirmLabel: PropTypes.Requireable<string>;
810
+ disabled: PropTypes.Requireable<boolean>;
811
+ error: PropTypes.Requireable<string>;
801
812
  isOpen: PropTypes.Requireable<boolean>;
802
813
  onCancel: PropTypes.Requireable<(...args: any[]) => any>;
803
814
  onConfirm: PropTypes.Requireable<(...args: any[]) => any>;
@@ -806,13 +817,25 @@ declare const ContentSkillModalPropTypes: {
806
817
  };
807
818
  export default ContentSkillModalPropTypes;
808
819
  declare type ModalProps = {
820
+ title?: string;
821
+ description?: string;
822
+ cancelLabel?: string;
823
+ confirmLabel?: string;
824
+ disabled?: boolean;
825
+ error?: string;
809
826
  isOpen: boolean;
810
827
  onCancel: () => void;
811
828
  onConfirm: () => void;
812
829
  onClose: () => void;
813
830
  };
814
831
  export declare type ContentSkillModalProps = {
815
- contentList: React.ComponentProps<typeof ListItems>;
832
+ contentList: React.ComponentProps<typeof ListItems> & {
833
+ selectAll?: {
834
+ label: string;
835
+ disabled?: boolean;
836
+ onClick: () => void;
837
+ };
838
+ };
816
839
  filters: MultiFilterPanelProps;
817
840
  modal: ModalProps;
818
841
  };
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/organism/content-skill-modal/types.ts"],"names":[],"mappings":";AAAA,OAAO,SAAS,MAAM,YAAY,CAAC;AACnC,OAAO,SAAS,MAAM,eAAe,CAAC;AACtC,OAAkC,EAChC,qBAAqB,EACtB,MAAM,8CAA8C,CAAC;AAStD,QAAA,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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OAAO,EAAE,qBAAqB,CAAC;IAC/B,KAAK,EAAE,UAAU,CAAC;CACnB,CAAC"}
@@ -7,13 +7,26 @@ var _listItems = _interopRequireDefault(require("../list-items"));
7
7
  var _propTypes2 = _interopRequireDefault(require("../../molecule/multi-filter-panel/prop-types"));
8
8
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
9
9
  const ModalPropTypes = {
10
+ title: _propTypes.default.string,
11
+ description: _propTypes.default.string,
12
+ cancelLabel: _propTypes.default.string,
13
+ confirmLabel: _propTypes.default.string,
14
+ disabled: _propTypes.default.bool,
15
+ error: _propTypes.default.string,
10
16
  isOpen: _propTypes.default.bool,
11
17
  onCancel: _propTypes.default.func,
12
18
  onConfirm: _propTypes.default.func,
13
19
  onClose: _propTypes.default.func
14
20
  };
15
21
  const ContentSkillModalPropTypes = {
16
- contentList: _propTypes.default.shape(_listItems.default.propTypes).isRequired,
22
+ contentList: _propTypes.default.shape({
23
+ ..._listItems.default.propTypes,
24
+ selectAll: _propTypes.default.shape({
25
+ label: _propTypes.default.string.isRequired,
26
+ disabled: _propTypes.default.bool,
27
+ onClick: _propTypes.default.func.isRequired
28
+ })
29
+ }).isRequired,
17
30
  filters: _propTypes.default.shape(_propTypes2.default).isRequired,
18
31
  modal: _propTypes.default.shape(ModalPropTypes).isRequired
19
32
  };
@@ -1 +1 @@
1
- {"version":3,"file":"types.js","names":["_propTypes","_interopRequireDefault","require","_listItems","_propTypes2","e","__esModule","default","ModalPropTypes","isOpen","PropTypes","bool","onCancel","func","onConfirm","onClose","ContentSkillModalPropTypes","contentList","shape","ListItems","propTypes","isRequired","filters","MultiFilterPanelPropTypes","modal","_default","exports"],"sources":["../../../src/organism/content-skill-modal/types.ts"],"sourcesContent":["import PropTypes from 'prop-types';\nimport ListItems from '../list-items';\nimport MultiFilterPanelPropTypes, {\n MultiFilterPanelProps\n} from '../../molecule/multi-filter-panel/prop-types';\n\nconst ModalPropTypes = {\n isOpen: PropTypes.bool,\n onCancel: PropTypes.func,\n onConfirm: PropTypes.func,\n onClose: PropTypes.func\n};\n\nconst ContentSkillModalPropTypes = {\n contentList: PropTypes.shape(ListItems.propTypes).isRequired,\n filters: PropTypes.shape(MultiFilterPanelPropTypes).isRequired,\n modal: PropTypes.shape(ModalPropTypes).isRequired\n};\n\nexport default ContentSkillModalPropTypes;\n\ntype ModalProps = {\n isOpen: boolean;\n onCancel: () => void;\n onConfirm: () => void;\n onClose: () => void;\n};\n\nexport type ContentSkillModalProps = {\n contentList: React.ComponentProps<typeof ListItems>;\n filters: MultiFilterPanelProps;\n modal: ModalProps;\n};\n"],"mappings":";;;;AAAA,IAAAA,UAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,UAAA,GAAAF,sBAAA,CAAAC,OAAA;AACA,IAAAE,WAAA,GAAAH,sBAAA,CAAAC,OAAA;AAEsD,SAAAD,uBAAAI,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAEtD,MAAMG,cAAc,GAAG;EACrBC,MAAM,EAAEC,kBAAS,CAACC,IAAI;EACtBC,QAAQ,EAAEF,kBAAS,CAACG,IAAI;EACxBC,SAAS,EAAEJ,kBAAS,CAACG,IAAI;EACzBE,OAAO,EAAEL,kBAAS,CAACG;AACrB,CAAC;AAED,MAAMG,0BAA0B,GAAG;EACjCC,WAAW,EAAEP,kBAAS,CAACQ,KAAK,CAACC,kBAAS,CAACC,SAAS,CAAC,CAACC,UAAU;EAC5DC,OAAO,EAAEZ,kBAAS,CAACQ,KAAK,CAACK,mBAAyB,CAAC,CAACF,UAAU;EAC9DG,KAAK,EAAEd,kBAAS,CAACQ,KAAK,CAACV,cAAc,CAAC,CAACa;AACzC,CAAC;AAAC,IAAAI,QAAA,GAAAC,OAAA,CAAAnB,OAAA,GAEaS,0BAA0B","ignoreList":[]}
1
+ {"version":3,"file":"types.js","names":["_propTypes","_interopRequireDefault","require","_listItems","_propTypes2","e","__esModule","default","ModalPropTypes","title","PropTypes","string","description","cancelLabel","confirmLabel","disabled","bool","error","isOpen","onCancel","func","onConfirm","onClose","ContentSkillModalPropTypes","contentList","shape","ListItems","propTypes","selectAll","label","isRequired","onClick","filters","MultiFilterPanelPropTypes","modal","_default","exports"],"sources":["../../../src/organism/content-skill-modal/types.ts"],"sourcesContent":["import PropTypes from 'prop-types';\nimport ListItems from '../list-items';\nimport MultiFilterPanelPropTypes, {\n MultiFilterPanelProps\n} from '../../molecule/multi-filter-panel/prop-types';\n\nconst ModalPropTypes = {\n title: PropTypes.string,\n description: PropTypes.string,\n cancelLabel: PropTypes.string,\n confirmLabel: PropTypes.string,\n disabled: PropTypes.bool,\n error: PropTypes.string,\n isOpen: PropTypes.bool,\n onCancel: PropTypes.func,\n onConfirm: PropTypes.func,\n onClose: PropTypes.func\n};\n\nconst ContentSkillModalPropTypes = {\n contentList: PropTypes.shape({\n ...ListItems.propTypes,\n selectAll: PropTypes.shape({\n label: PropTypes.string.isRequired,\n disabled: PropTypes.bool,\n onClick: PropTypes.func.isRequired\n })\n }).isRequired,\n filters: PropTypes.shape(MultiFilterPanelPropTypes).isRequired,\n modal: PropTypes.shape(ModalPropTypes).isRequired\n};\n\nexport default ContentSkillModalPropTypes;\n\ntype ModalProps = {\n title?: string;\n description?: string;\n cancelLabel?: string;\n confirmLabel?: string;\n disabled?: boolean;\n error?: string;\n isOpen: boolean;\n onCancel: () => void;\n onConfirm: () => void;\n onClose: () => void;\n};\n\nexport type ContentSkillModalProps = {\n contentList: React.ComponentProps<typeof ListItems> & {\n selectAll?: {\n label: string;\n disabled?: boolean;\n onClick: () => void;\n };\n };\n filters: MultiFilterPanelProps;\n modal: ModalProps;\n};\n"],"mappings":";;;;AAAA,IAAAA,UAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,UAAA,GAAAF,sBAAA,CAAAC,OAAA;AACA,IAAAE,WAAA,GAAAH,sBAAA,CAAAC,OAAA;AAEsD,SAAAD,uBAAAI,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAEtD,MAAMG,cAAc,GAAG;EACrBC,KAAK,EAAEC,kBAAS,CAACC,MAAM;EACvBC,WAAW,EAAEF,kBAAS,CAACC,MAAM;EAC7BE,WAAW,EAAEH,kBAAS,CAACC,MAAM;EAC7BG,YAAY,EAAEJ,kBAAS,CAACC,MAAM;EAC9BI,QAAQ,EAAEL,kBAAS,CAACM,IAAI;EACxBC,KAAK,EAAEP,kBAAS,CAACC,MAAM;EACvBO,MAAM,EAAER,kBAAS,CAACM,IAAI;EACtBG,QAAQ,EAAET,kBAAS,CAACU,IAAI;EACxBC,SAAS,EAAEX,kBAAS,CAACU,IAAI;EACzBE,OAAO,EAAEZ,kBAAS,CAACU;AACrB,CAAC;AAED,MAAMG,0BAA0B,GAAG;EACjCC,WAAW,EAAEd,kBAAS,CAACe,KAAK,CAAC;IAC3B,GAAGC,kBAAS,CAACC,SAAS;IACtBC,SAAS,EAAElB,kBAAS,CAACe,KAAK,CAAC;MACzBI,KAAK,EAAEnB,kBAAS,CAACC,MAAM,CAACmB,UAAU;MAClCf,QAAQ,EAAEL,kBAAS,CAACM,IAAI;MACxBe,OAAO,EAAErB,kBAAS,CAACU,IAAI,CAACU;IAC1B,CAAC;EACH,CAAC,CAAC,CAACA,UAAU;EACbE,OAAO,EAAEtB,kBAAS,CAACe,KAAK,CAACQ,mBAAyB,CAAC,CAACH,UAAU;EAC9DI,KAAK,EAAExB,kBAAS,CAACe,KAAK,CAACjB,cAAc,CAAC,CAACsB;AACzC,CAAC;AAAC,IAAAK,QAAA,GAAAC,OAAA,CAAA7B,OAAA,GAEagB,0BAA0B","ignoreList":[]}
@@ -342,6 +342,11 @@ declare namespace BrandUpdate {
342
342
  editable: PropTypes.Requireable<boolean>;
343
343
  rows: PropTypes.Requireable<(PropTypes.InferProps<{
344
344
  fields: PropTypes.Requireable<(NonNullable<string | PropTypes.InferProps<{
345
+ action: PropTypes.Requireable<PropTypes.InferProps<{
346
+ label: PropTypes.Validator<string>;
347
+ onClick: PropTypes.Validator<(...args: any[]) => any>;
348
+ variant: PropTypes.Validator<string>;
349
+ }>>;
345
350
  icon: PropTypes.Requireable<string>;
346
351
  title: PropTypes.Requireable<string>;
347
352
  text: PropTypes.Requireable<string>;
@@ -2036,6 +2041,43 @@ declare namespace BrandUpdate {
2036
2041
  onAdd: PropTypes.Validator<(...args: any[]) => any>;
2037
2042
  onRemove: PropTypes.Validator<(...args: any[]) => any>;
2038
2043
  }>>;
2044
+ assigned: PropTypes.Requireable<PropTypes.InferProps<{
2045
+ title: PropTypes.Validator<string>;
2046
+ subtitle: PropTypes.Requireable<string>;
2047
+ expanded: PropTypes.Validator<boolean>;
2048
+ toggleLabel: PropTypes.Validator<string>;
2049
+ onToggle: PropTypes.Validator<(...args: any[]) => any>;
2050
+ notice: PropTypes.Requireable<string>;
2051
+ filters: PropTypes.Validator<NonNullable<PropTypes.InferProps<{
2052
+ key: PropTypes.Validator<string>;
2053
+ label: PropTypes.Validator<string>;
2054
+ selected: PropTypes.Validator<boolean>;
2055
+ }>>[]>;
2056
+ onFilter: PropTypes.Validator<(...args: any[]) => any>;
2057
+ search: PropTypes.Validator<NonNullable<PropTypes.InferProps<{
2058
+ value: PropTypes.Validator<string>;
2059
+ placeholder: PropTypes.Validator<string>;
2060
+ onChange: PropTypes.Validator<(...args: any[]) => any>;
2061
+ }>>>;
2062
+ pagination: PropTypes.Validator<NonNullable<PropTypes.InferProps<{
2063
+ label: PropTypes.Validator<string>;
2064
+ onPrevious: PropTypes.Requireable<(...args: any[]) => any>;
2065
+ onNext: PropTypes.Requireable<(...args: any[]) => any>;
2066
+ }>>>;
2067
+ columns: PropTypes.Validator<string[]>;
2068
+ rows: PropTypes.Validator<NonNullable<PropTypes.InferProps<{
2069
+ id: PropTypes.Validator<string>;
2070
+ fields: PropTypes.Validator<string[]>;
2071
+ action: PropTypes.Requireable<PropTypes.InferProps<{
2072
+ label: PropTypes.Validator<string>;
2073
+ onClick: PropTypes.Validator<(...args: any[]) => any>;
2074
+ variant: PropTypes.Validator<string>;
2075
+ }>>;
2076
+ actionText: PropTypes.Requireable<string>;
2077
+ }>>[]>;
2078
+ footnote: PropTypes.Requireable<string>;
2079
+ emptyLabel: PropTypes.Validator<string>;
2080
+ }>>;
2039
2081
  total: PropTypes.Requireable<PropTypes.InferProps<{
2040
2082
  label: PropTypes.Validator<string>;
2041
2083
  detail: PropTypes.Requireable<string>;
@@ -3181,6 +3223,11 @@ declare namespace BrandUpdate {
3181
3223
  }> | PropTypes.InferProps<{
3182
3224
  type: PropTypes.Requireable<string>;
3183
3225
  contentList: PropTypes.Validator<NonNullable<PropTypes.InferProps<{
3226
+ selectAll: PropTypes.Requireable<PropTypes.InferProps<{
3227
+ label: PropTypes.Validator<string>;
3228
+ disabled: PropTypes.Requireable<boolean>;
3229
+ onClick: PropTypes.Validator<(...args: any[]) => any>;
3230
+ }>>;
3184
3231
  'aria-label': PropTypes.Requireable<string>;
3185
3232
  buttonLink: PropTypes.Requireable<PropTypes.InferProps<{
3186
3233
  type: PropTypes.Requireable<string>;
@@ -3975,6 +4022,12 @@ declare namespace BrandUpdate {
3975
4022
  }> | null | undefined> | null | undefined)[]>;
3976
4023
  }>>>;
3977
4024
  modal: PropTypes.Validator<NonNullable<PropTypes.InferProps<{
4025
+ title: PropTypes.Requireable<string>;
4026
+ description: PropTypes.Requireable<string>;
4027
+ cancelLabel: PropTypes.Requireable<string>;
4028
+ confirmLabel: PropTypes.Requireable<string>;
4029
+ disabled: PropTypes.Requireable<boolean>;
4030
+ error: PropTypes.Requireable<string>;
3978
4031
  isOpen: PropTypes.Requireable<boolean>;
3979
4032
  onCancel: PropTypes.Requireable<(...args: any[]) => any>;
3980
4033
  onConfirm: PropTypes.Requireable<(...args: any[]) => any>;
@@ -4008,6 +4061,11 @@ declare namespace BrandUpdate {
4008
4061
  editable: PropTypes.Requireable<boolean>;
4009
4062
  rows: PropTypes.Requireable<(PropTypes.InferProps<{
4010
4063
  fields: PropTypes.Requireable<(NonNullable<string | PropTypes.InferProps<{
4064
+ action: PropTypes.Requireable<PropTypes.InferProps<{
4065
+ label: PropTypes.Validator<string>;
4066
+ onClick: PropTypes.Validator<(...args: any[]) => any>;
4067
+ variant: PropTypes.Validator<string>;
4068
+ }>>;
4011
4069
  icon: PropTypes.Requireable<string>;
4012
4070
  title: PropTypes.Requireable<string>;
4013
4071
  text: PropTypes.Requireable<string>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coorpacademy/components",
3
- "version": "11.42.5",
3
+ "version": "11.42.7",
4
4
  "description": "",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.js",
@@ -169,5 +169,5 @@
169
169
  "last 2 versions",
170
170
  "IE 11"
171
171
  ],
172
- "gitHead": "435fc1e95e319f46ad909eb2fd27258f0b151578"
172
+ "gitHead": "9408924d712b5e03ce9495aa3bfffba9653e59b0"
173
173
  }