@coorpacademy/components 11.14.15-alpha.25 → 11.14.15-alpha.26

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.
@@ -47,39 +47,6 @@ declare namespace ListItems {
47
47
  error: PropTypes.Requireable<string>;
48
48
  theme: PropTypes.Requireable<string>;
49
49
  }>>;
50
- items: PropTypes.Requireable<(PropTypes.InferProps<{
51
- bulletPointMenuButton: PropTypes.Requireable<PropTypes.InferProps<{
52
- buttonAriaLabel: PropTypes.Requireable<string>;
53
- menuAriaLabel: PropTypes.Requireable<string>;
54
- buttons: PropTypes.Requireable<(PropTypes.InferProps<{
55
- 'data-name': PropTypes.Requireable<string>;
56
- label: PropTypes.Requireable<string>;
57
- type: PropTypes.Requireable<string>;
58
- onClick: PropTypes.Requireable<(...args: any[]) => any>;
59
- }> | null | undefined)[]>;
60
- onClick: PropTypes.Requireable<(...args: any[]) => any>;
61
- }>>;
62
- buttonLink: PropTypes.Requireable<PropTypes.InferProps<{
63
- type: PropTypes.Requireable<string>;
64
- label: PropTypes.Requireable<string>;
65
- ariaLabel: PropTypes.Requireable<string>;
66
- dataName: PropTypes.Requireable<string>;
67
- icon: PropTypes.Requireable<PropTypes.InferProps<{
68
- position: PropTypes.Requireable<string>;
69
- type: PropTypes.Requireable<string>;
70
- }>>;
71
- onClick: PropTypes.Requireable<(...args: any[]) => any>;
72
- }>>;
73
- tags: PropTypes.Requireable<(PropTypes.InferProps<{
74
- label: PropTypes.Requireable<string>;
75
- type: PropTypes.Requireable<string>;
76
- }> | null | undefined)[]>;
77
- title: PropTypes.Validator<string>;
78
- order: PropTypes.Requireable<number>;
79
- 'aria-label': PropTypes.Requireable<string>;
80
- contentType: PropTypes.Requireable<string>;
81
- id: PropTypes.Requireable<string>;
82
- }> | null | undefined)[]>;
83
50
  content: PropTypes.Requireable<NonNullable<PropTypes.InferProps<{
84
51
  items: PropTypes.Requireable<(PropTypes.InferProps<{
85
52
  bulletPointMenuButton: PropTypes.Requireable<PropTypes.InferProps<{
@@ -22,7 +22,7 @@ const buildListItemsView = (content, ariaLabel, selectMultiple) => {
22
22
  type: 'published'
23
23
  }, items[0]?.tags) !== -1 && itemType === 'certification' && !displayAll ? /*#__PURE__*/React.createElement(DraggableList, {
24
24
  items: items.map(item => _extends({}, item, {
25
- itemType
25
+ contentType: itemType
26
26
  })),
27
27
  itemType: "list-item",
28
28
  onDrop: onDrop
@@ -83,7 +83,6 @@ ListItems.propTypes = process.env.NODE_ENV !== "production" ? {
83
83
  'aria-label': PropTypes.string,
84
84
  buttonLink: PropTypes.shape(ButtonLink.propTypes),
85
85
  selectMultiple: PropTypes.shape(SelectMultiple.propTypes),
86
- items: PropTypes.arrayOf(PropTypes.shape(ListItem.propTypes)),
87
86
  content: PropTypes.oneOfType([PropTypes.shape({
88
87
  items: PropTypes.arrayOf(PropTypes.shape(ListItem.propTypes)),
89
88
  type: PropTypes.oneOf(['list']),
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["React","findIndex","PropTypes","ListItem","DraggableList","Title","ButtonLink","SelectMultiple","ExpandibleActionableTable","style","buildListItemsView","content","ariaLabel","selectMultiple","items","itemType","onDrop","displayAll","itemsView","type","tags","map","item","index","id","list","listWithSelectMultiple","buildContentView","ListItems","title","buttonLink","contentView","header","actionsWrapper","buttonCreate","propTypes","string","shape","arrayOf","oneOfType","oneOf","func","bool"],"sources":["../../../src/organism/list-items/index.js"],"sourcesContent":["import React from 'react';\nimport findIndex from 'lodash/fp/findIndex';\nimport PropTypes from 'prop-types';\nimport ListItem from '../list-item';\nimport DraggableList from '../../molecule/draggable-list';\nimport Title from '../../atom/title';\nimport ButtonLink from '../../atom/button-link';\nimport SelectMultiple from '../../molecule/select-multiple';\nimport ExpandibleActionableTable from '../../molecule/expandible-actionable-table';\nimport style from './style.css';\n\nconst buildListItemsView = (content, ariaLabel, selectMultiple) => {\n const {items, itemType, onDrop, displayAll} = content;\n const itemsView =\n findIndex({type: 'published'}, items[0]?.tags) !== -1 &&\n itemType === 'certification' &&\n !displayAll ? (\n <DraggableList\n items={items.map(item => ({...item, itemType}))}\n itemType=\"list-item\"\n onDrop={onDrop}\n />\n ) : (\n items.map((item, index) => (\n <li key={item.id} className={style.item} data-name={`content-${index}`}>\n <ListItem {...item} contentType={itemType} />\n </li>\n ))\n );\n return (\n <ul\n className={!selectMultiple ? style.list : style.listWithSelectMultiple}\n aria-label={ariaLabel}\n data-name={'content-list'}\n >\n {itemsView}\n </ul>\n );\n};\nconst buildContentView = (content, ariaLabel, selectMultiple) => {\n const {type} = content;\n switch (type) {\n case 'list':\n return buildListItemsView(content, ariaLabel, selectMultiple);\n case 'expandible-actionable-table':\n return <ExpandibleActionableTable {...content} />;\n }\n};\n\nconst ListItems = ({title, buttonLink, selectMultiple, content, 'aria-label': ariaLabel}) => {\n const contentView = buildContentView(content, ariaLabel, selectMultiple);\n\n return (\n <div>\n <div className={style.header}>\n <div className={style.title}>\n <Title title={title} type={'form-group'} data-name={'list-title'} />\n </div>\n <div className={style.actionsWrapper}>\n {selectMultiple ? (\n <div className={style.selectMultiple}>\n <SelectMultiple {...selectMultiple} />\n </div>\n ) : null}\n\n <div className={style.buttonCreate}>\n <ButtonLink {...buttonLink} />\n </div>\n </div>\n </div>\n {contentView}\n </div>\n );\n};\n\nListItems.propTypes = {\n 'aria-label': PropTypes.string,\n buttonLink: PropTypes.shape(ButtonLink.propTypes),\n selectMultiple: PropTypes.shape(SelectMultiple.propTypes),\n items: PropTypes.arrayOf(PropTypes.shape(ListItem.propTypes)),\n content: PropTypes.oneOfType([\n PropTypes.shape({\n items: PropTypes.arrayOf(PropTypes.shape(ListItem.propTypes)),\n type: PropTypes.oneOf(['list']),\n itemType: PropTypes.string,\n onDrop: PropTypes.func,\n displayAll: PropTypes.bool\n }),\n PropTypes.shape({\n ...ExpandibleActionableTable.propTypes,\n type: PropTypes.oneOf(['expandible-actionable-table'])\n })\n ]),\n title: PropTypes.string\n};\n\nexport default ListItems;\n"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CAACmC,KAAV,CAAgB9B,cAAc,CAAC4B,SAA/B,CAHI;EAIpBrB,KAAK,EAAEZ,SAAS,CAACoC,OAAV,CAAkBpC,SAAS,CAACmC,KAAV,CAAgBlC,QAAQ,CAACgC,SAAzB,CAAlB,CAJa;EAKpBxB,OAAO,EAAET,SAAS,CAACqC,SAAV,CAAoB,CAC3BrC,SAAS,CAACmC,KAAV,CAAgB;IACdvB,KAAK,EAAEZ,SAAS,CAACoC,OAAV,CAAkBpC,SAAS,CAACmC,KAAV,CAAgBlC,QAAQ,CAACgC,SAAzB,CAAlB,CADO;IAEdhB,IAAI,EAAEjB,SAAS,CAACsC,KAAV,CAAgB,CAAC,MAAD,CAAhB,CAFQ;IAGdzB,QAAQ,EAAEb,SAAS,CAACkC,MAHN;IAIdpB,MAAM,EAAEd,SAAS,CAACuC,IAJJ;IAKdxB,UAAU,EAAEf,SAAS,CAACwC;EALR,CAAhB,CAD2B,EAQ3BxC,SAAS,CAACmC,KAAV,cACK7B,yBAAyB,CAAC2B,SAD/B;IAEEhB,IAAI,EAAEjB,SAAS,CAACsC,KAAV,CAAgB,CAAC,6BAAD,CAAhB;EAFR,GAR2B,CAApB,CALW;EAkBpBX,KAAK,EAAE3B,SAAS,CAACkC;AAlBG,CAAtB;AAqBA,eAAeR,SAAf"}
1
+ {"version":3,"file":"index.js","names":["React","findIndex","PropTypes","ListItem","DraggableList","Title","ButtonLink","SelectMultiple","ExpandibleActionableTable","style","buildListItemsView","content","ariaLabel","selectMultiple","items","itemType","onDrop","displayAll","itemsView","type","tags","map","item","contentType","index","id","list","listWithSelectMultiple","buildContentView","ListItems","title","buttonLink","contentView","header","actionsWrapper","buttonCreate","propTypes","string","shape","oneOfType","arrayOf","oneOf","func","bool"],"sources":["../../../src/organism/list-items/index.js"],"sourcesContent":["import React from 'react';\nimport findIndex from 'lodash/fp/findIndex';\nimport PropTypes from 'prop-types';\nimport ListItem from '../list-item';\nimport DraggableList from '../../molecule/draggable-list';\nimport Title from '../../atom/title';\nimport ButtonLink from '../../atom/button-link';\nimport SelectMultiple from '../../molecule/select-multiple';\nimport ExpandibleActionableTable from '../../molecule/expandible-actionable-table';\nimport style from './style.css';\n\nconst buildListItemsView = (content, ariaLabel, selectMultiple) => {\n const {items, itemType, onDrop, displayAll} = content;\n const itemsView =\n findIndex({type: 'published'}, items[0]?.tags) !== -1 &&\n itemType === 'certification' &&\n !displayAll ? (\n <DraggableList\n items={items.map(item => ({...item, contentType: itemType}))}\n itemType=\"list-item\"\n onDrop={onDrop}\n />\n ) : (\n items.map((item, index) => (\n <li key={item.id} className={style.item} data-name={`content-${index}`}>\n <ListItem {...item} contentType={itemType} />\n </li>\n ))\n );\n return (\n <ul\n className={!selectMultiple ? style.list : style.listWithSelectMultiple}\n aria-label={ariaLabel}\n data-name={'content-list'}\n >\n {itemsView}\n </ul>\n );\n};\nconst buildContentView = (content, ariaLabel, selectMultiple) => {\n const {type} = content;\n switch (type) {\n case 'list':\n return buildListItemsView(content, ariaLabel, selectMultiple);\n case 'expandible-actionable-table':\n return <ExpandibleActionableTable {...content} />;\n }\n};\n\nconst ListItems = ({title, buttonLink, selectMultiple, content, 'aria-label': ariaLabel}) => {\n const contentView = buildContentView(content, ariaLabel, selectMultiple);\n\n return (\n <div>\n <div className={style.header}>\n <div className={style.title}>\n <Title title={title} type={'form-group'} data-name={'list-title'} />\n </div>\n <div className={style.actionsWrapper}>\n {selectMultiple ? (\n <div className={style.selectMultiple}>\n <SelectMultiple {...selectMultiple} />\n </div>\n ) : null}\n\n <div className={style.buttonCreate}>\n <ButtonLink {...buttonLink} />\n </div>\n </div>\n </div>\n {contentView}\n </div>\n );\n};\n\nListItems.propTypes = {\n 'aria-label': PropTypes.string,\n buttonLink: PropTypes.shape(ButtonLink.propTypes),\n selectMultiple: PropTypes.shape(SelectMultiple.propTypes),\n content: PropTypes.oneOfType([\n PropTypes.shape({\n items: PropTypes.arrayOf(PropTypes.shape(ListItem.propTypes)),\n type: PropTypes.oneOf(['list']),\n itemType: PropTypes.string,\n onDrop: PropTypes.func,\n displayAll: PropTypes.bool\n }),\n PropTypes.shape({\n ...ExpandibleActionableTable.propTypes,\n type: PropTypes.oneOf(['expandible-actionable-table'])\n })\n ]),\n title: PropTypes.string\n};\n\nexport default ListItems;\n"],"mappings":";;AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,OAAOC,SAAP,MAAsB,qBAAtB;AACA,OAAOC,SAAP,MAAsB,YAAtB;AACA,OAAOC,QAAP,MAAqB,cAArB;AACA,OAAOC,aAAP,MAA0B,+BAA1B;AACA,OAAOC,KAAP,MAAkB,kBAAlB;AACA,OAAOC,UAAP,MAAuB,wBAAvB;AACA,OAAOC,cAAP,MAA2B,gCAA3B;AACA,OAAOC,yBAAP,MAAsC,4CAAtC;AACA,OAAOC,KAAP,MAAkB,aAAlB;;AAEA,MAAMC,kBAAkB,GAAG,CAACC,OAAD,EAAUC,SAAV,EAAqBC,cAArB,KAAwC;EACjE,MAAM;IAACC,KAAD;IAAQC,QAAR;IAAkBC,MAAlB;IAA0BC;EAA1B,IAAwCN,OAA9C;EACA,MAAMO,SAAS,GACbjB,SAAS,CAAC;IAACkB,IAAI,EAAE;EAAP,CAAD,EAAsBL,KAAK,CAAC,CAAD,CAAL,EAAUM,IAAhC,CAAT,KAAmD,CAAC,CAApD,IACAL,QAAQ,KAAK,eADb,IAEA,CAACE,UAFD,gBAGE,oBAAC,aAAD;IACE,KAAK,EAAEH,KAAK,CAACO,GAAN,CAAUC,IAAI,iBAASA,IAAT;MAAeC,WAAW,EAAER;IAA5B,EAAd,CADT;IAEE,QAAQ,EAAC,WAFX;IAGE,MAAM,EAAEC;EAHV,EAHF,GASEF,KAAK,CAACO,GAAN,CAAU,CAACC,IAAD,EAAOE,KAAP,kBACR;IAAI,GAAG,EAAEF,IAAI,CAACG,EAAd;IAAkB,SAAS,EAAEhB,KAAK,CAACa,IAAnC;IAAyC,aAAY,WAAUE,KAAM;EAArE,gBACE,oBAAC,QAAD,eAAcF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CAxBD;;AA0BAH,SAAS,CAACO,SAAV,2CAAsB;EACpB,cAAclC,SAAS,CAACmC,MADJ;EAEpBN,UAAU,EAAE7B,SAAS,CAACoC,KAAV,CAAgBhC,UAAU,CAAC8B,SAA3B,CAFQ;EAGpBvB,cAAc,EAAEX,SAAS,CAACoC,KAAV,CAAgB/B,cAAc,CAAC6B,SAA/B,CAHI;EAIpBzB,OAAO,EAAET,SAAS,CAACqC,SAAV,CAAoB,CAC3BrC,SAAS,CAACoC,KAAV,CAAgB;IACdxB,KAAK,EAAEZ,SAAS,CAACsC,OAAV,CAAkBtC,SAAS,CAACoC,KAAV,CAAgBnC,QAAQ,CAACiC,SAAzB,CAAlB,CADO;IAEdjB,IAAI,EAAEjB,SAAS,CAACuC,KAAV,CAAgB,CAAC,MAAD,CAAhB,CAFQ;IAGd1B,QAAQ,EAAEb,SAAS,CAACmC,MAHN;IAIdrB,MAAM,EAAEd,SAAS,CAACwC,IAJJ;IAKdzB,UAAU,EAAEf,SAAS,CAACyC;EALR,CAAhB,CAD2B,EAQ3BzC,SAAS,CAACoC,KAAV,cACK9B,yBAAyB,CAAC4B,SAD/B;IAEEjB,IAAI,EAAEjB,SAAS,CAACuC,KAAV,CAAgB,CAAC,6BAAD,CAAhB;EAFR,GAR2B,CAApB,CAJW;EAiBpBX,KAAK,EAAE5B,SAAS,CAACmC;AAjBG,CAAtB;AAoBA,eAAeR,SAAf"}
@@ -795,39 +795,6 @@ declare namespace BrandUpdate {
795
795
  error: PropTypes.Requireable<string>;
796
796
  theme: PropTypes.Requireable<string>;
797
797
  }>>;
798
- items: PropTypes.Requireable<(PropTypes.InferProps<{
799
- bulletPointMenuButton: PropTypes.Requireable<PropTypes.InferProps<{
800
- buttonAriaLabel: PropTypes.Requireable<string>;
801
- menuAriaLabel: PropTypes.Requireable<string>;
802
- buttons: PropTypes.Requireable<(PropTypes.InferProps<{
803
- 'data-name': PropTypes.Requireable<string>;
804
- label: PropTypes.Requireable<string>;
805
- type: PropTypes.Requireable<string>;
806
- onClick: PropTypes.Requireable<(...args: any[]) => any>;
807
- }> | null | undefined)[]>;
808
- onClick: PropTypes.Requireable<(...args: any[]) => any>;
809
- }>>;
810
- buttonLink: PropTypes.Requireable<PropTypes.InferProps<{
811
- type: PropTypes.Requireable<string>;
812
- label: PropTypes.Requireable<string>;
813
- ariaLabel: PropTypes.Requireable<string>;
814
- dataName: PropTypes.Requireable<string>;
815
- icon: PropTypes.Requireable<PropTypes.InferProps<{
816
- position: PropTypes.Requireable<string>;
817
- type: PropTypes.Requireable<string>;
818
- }>>;
819
- onClick: PropTypes.Requireable<(...args: any[]) => any>;
820
- }>>;
821
- tags: PropTypes.Requireable<(PropTypes.InferProps<{
822
- label: PropTypes.Requireable<string>;
823
- type: PropTypes.Requireable<string>;
824
- }> | null | undefined)[]>;
825
- title: PropTypes.Validator<string>;
826
- order: PropTypes.Requireable<number>;
827
- 'aria-label': PropTypes.Requireable<string>;
828
- contentType: PropTypes.Requireable<string>;
829
- id: PropTypes.Requireable<string>;
830
- }> | null | undefined)[]>;
831
798
  content: PropTypes.Requireable<NonNullable<PropTypes.InferProps<{
832
799
  items: PropTypes.Requireable<(PropTypes.InferProps<{
833
800
  bulletPointMenuButton: PropTypes.Requireable<PropTypes.InferProps<{
@@ -47,39 +47,6 @@ declare namespace ListItems {
47
47
  error: PropTypes.Requireable<string>;
48
48
  theme: PropTypes.Requireable<string>;
49
49
  }>>;
50
- items: PropTypes.Requireable<(PropTypes.InferProps<{
51
- bulletPointMenuButton: PropTypes.Requireable<PropTypes.InferProps<{
52
- buttonAriaLabel: PropTypes.Requireable<string>;
53
- menuAriaLabel: PropTypes.Requireable<string>;
54
- buttons: PropTypes.Requireable<(PropTypes.InferProps<{
55
- 'data-name': PropTypes.Requireable<string>;
56
- label: PropTypes.Requireable<string>;
57
- type: PropTypes.Requireable<string>;
58
- onClick: PropTypes.Requireable<(...args: any[]) => any>;
59
- }> | null | undefined)[]>;
60
- onClick: PropTypes.Requireable<(...args: any[]) => any>;
61
- }>>;
62
- buttonLink: PropTypes.Requireable<PropTypes.InferProps<{
63
- type: PropTypes.Requireable<string>;
64
- label: PropTypes.Requireable<string>;
65
- ariaLabel: PropTypes.Requireable<string>;
66
- dataName: PropTypes.Requireable<string>;
67
- icon: PropTypes.Requireable<PropTypes.InferProps<{
68
- position: PropTypes.Requireable<string>;
69
- type: PropTypes.Requireable<string>;
70
- }>>;
71
- onClick: PropTypes.Requireable<(...args: any[]) => any>;
72
- }>>;
73
- tags: PropTypes.Requireable<(PropTypes.InferProps<{
74
- label: PropTypes.Requireable<string>;
75
- type: PropTypes.Requireable<string>;
76
- }> | null | undefined)[]>;
77
- title: PropTypes.Validator<string>;
78
- order: PropTypes.Requireable<number>;
79
- 'aria-label': PropTypes.Requireable<string>;
80
- contentType: PropTypes.Requireable<string>;
81
- id: PropTypes.Requireable<string>;
82
- }> | null | undefined)[]>;
83
50
  content: PropTypes.Requireable<NonNullable<PropTypes.InferProps<{
84
51
  items: PropTypes.Requireable<(PropTypes.InferProps<{
85
52
  bulletPointMenuButton: PropTypes.Requireable<PropTypes.InferProps<{
@@ -38,7 +38,7 @@ const buildListItemsView = (content, ariaLabel, selectMultiple) => {
38
38
  type: 'published'
39
39
  }, items[0]?.tags) !== -1 && itemType === 'certification' && !displayAll ? /*#__PURE__*/_react.default.createElement(_draggableList.default, {
40
40
  items: items.map(item => _extends({}, item, {
41
- itemType
41
+ contentType: itemType
42
42
  })),
43
43
  itemType: "list-item",
44
44
  onDrop: onDrop
@@ -99,7 +99,6 @@ ListItems.propTypes = process.env.NODE_ENV !== "production" ? {
99
99
  'aria-label': _propTypes.default.string,
100
100
  buttonLink: _propTypes.default.shape(_buttonLink.default.propTypes),
101
101
  selectMultiple: _propTypes.default.shape(_selectMultiple.default.propTypes),
102
- items: _propTypes.default.arrayOf(_propTypes.default.shape(_listItem.default.propTypes)),
103
102
  content: _propTypes.default.oneOfType([_propTypes.default.shape({
104
103
  items: _propTypes.default.arrayOf(_propTypes.default.shape(_listItem.default.propTypes)),
105
104
  type: _propTypes.default.oneOf(['list']),
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["buildListItemsView","content","ariaLabel","selectMultiple","items","itemType","onDrop","displayAll","itemsView","findIndex","type","tags","map","item","index","id","style","list","listWithSelectMultiple","buildContentView","ListItems","title","buttonLink","contentView","header","actionsWrapper","buttonCreate","propTypes","PropTypes","string","shape","ButtonLink","SelectMultiple","arrayOf","ListItem","oneOfType","oneOf","func","bool","ExpandibleActionableTable"],"sources":["../../../src/organism/list-items/index.js"],"sourcesContent":["import React from 'react';\nimport findIndex from 'lodash/fp/findIndex';\nimport PropTypes from 'prop-types';\nimport ListItem from '../list-item';\nimport DraggableList from '../../molecule/draggable-list';\nimport Title from '../../atom/title';\nimport ButtonLink from '../../atom/button-link';\nimport SelectMultiple from '../../molecule/select-multiple';\nimport ExpandibleActionableTable from '../../molecule/expandible-actionable-table';\nimport style from './style.css';\n\nconst buildListItemsView = (content, ariaLabel, selectMultiple) => {\n const {items, itemType, onDrop, displayAll} = content;\n const itemsView =\n findIndex({type: 'published'}, items[0]?.tags) !== -1 &&\n itemType === 'certification' &&\n !displayAll ? (\n <DraggableList\n items={items.map(item => ({...item, itemType}))}\n itemType=\"list-item\"\n onDrop={onDrop}\n />\n ) : (\n items.map((item, index) => (\n <li key={item.id} className={style.item} data-name={`content-${index}`}>\n <ListItem {...item} contentType={itemType} />\n </li>\n ))\n );\n return (\n <ul\n className={!selectMultiple ? style.list : style.listWithSelectMultiple}\n aria-label={ariaLabel}\n data-name={'content-list'}\n >\n {itemsView}\n </ul>\n );\n};\nconst buildContentView = (content, ariaLabel, selectMultiple) => {\n const {type} = content;\n switch (type) {\n case 'list':\n return buildListItemsView(content, ariaLabel, selectMultiple);\n case 'expandible-actionable-table':\n return <ExpandibleActionableTable {...content} />;\n }\n};\n\nconst ListItems = ({title, buttonLink, selectMultiple, content, 'aria-label': ariaLabel}) => {\n const contentView = buildContentView(content, ariaLabel, selectMultiple);\n\n return (\n <div>\n <div className={style.header}>\n <div className={style.title}>\n <Title title={title} type={'form-group'} data-name={'list-title'} />\n </div>\n <div className={style.actionsWrapper}>\n {selectMultiple ? (\n <div className={style.selectMultiple}>\n <SelectMultiple {...selectMultiple} />\n </div>\n ) : null}\n\n <div className={style.buttonCreate}>\n <ButtonLink {...buttonLink} />\n </div>\n </div>\n </div>\n {contentView}\n </div>\n );\n};\n\nListItems.propTypes = {\n 'aria-label': PropTypes.string,\n buttonLink: PropTypes.shape(ButtonLink.propTypes),\n selectMultiple: PropTypes.shape(SelectMultiple.propTypes),\n items: PropTypes.arrayOf(PropTypes.shape(ListItem.propTypes)),\n content: PropTypes.oneOfType([\n PropTypes.shape({\n items: PropTypes.arrayOf(PropTypes.shape(ListItem.propTypes)),\n type: PropTypes.oneOf(['list']),\n itemType: PropTypes.string,\n onDrop: PropTypes.func,\n displayAll: PropTypes.bool\n }),\n PropTypes.shape({\n ...ExpandibleActionableTable.propTypes,\n type: PropTypes.oneOf(['expandible-actionable-table'])\n })\n ]),\n title: PropTypes.string\n};\n\nexport default ListItems;\n"],"mappings":";;;;;AAAA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;;;AAEA,MAAMA,kBAAkB,GAAG,CAACC,OAAD,EAAUC,SAAV,EAAqBC,cAArB,KAAwC;EACjE,MAAM;IAACC,KAAD;IAAQC,QAAR;IAAkBC,MAAlB;IAA0BC;EAA1B,IAAwCN,OAA9C;EACA,MAAMO,SAAS,GACb,IAAAC,kBAAA,EAAU;IAACC,IAAI,EAAE;EAAP,CAAV,EAA+BN,KAAK,CAAC,CAAD,CAAL,EAAUO,IAAzC,MAAmD,CAAC,CAApD,IACAN,QAAQ,KAAK,eADb,IAEA,CAACE,UAFD,gBAGE,6BAAC,sBAAD;IACE,KAAK,EAAEH,KAAK,CAACQ,GAAN,CAAUC,IAAI,iBAASA,IAAT;MAAeR;IAAf,EAAd,CADT;IAEE,QAAQ,EA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1
+ {"version":3,"file":"index.js","names":["buildListItemsView","content","ariaLabel","selectMultiple","items","itemType","onDrop","displayAll","itemsView","findIndex","type","tags","map","item","contentType","index","id","style","list","listWithSelectMultiple","buildContentView","ListItems","title","buttonLink","contentView","header","actionsWrapper","buttonCreate","propTypes","PropTypes","string","shape","ButtonLink","SelectMultiple","oneOfType","arrayOf","ListItem","oneOf","func","bool","ExpandibleActionableTable"],"sources":["../../../src/organism/list-items/index.js"],"sourcesContent":["import React from 'react';\nimport findIndex from 'lodash/fp/findIndex';\nimport PropTypes from 'prop-types';\nimport ListItem from '../list-item';\nimport DraggableList from '../../molecule/draggable-list';\nimport Title from '../../atom/title';\nimport ButtonLink from '../../atom/button-link';\nimport SelectMultiple from '../../molecule/select-multiple';\nimport ExpandibleActionableTable from '../../molecule/expandible-actionable-table';\nimport style from './style.css';\n\nconst buildListItemsView = (content, ariaLabel, selectMultiple) => {\n const {items, itemType, onDrop, displayAll} = content;\n const itemsView =\n findIndex({type: 'published'}, items[0]?.tags) !== -1 &&\n itemType === 'certification' &&\n !displayAll ? (\n <DraggableList\n items={items.map(item => ({...item, contentType: itemType}))}\n itemType=\"list-item\"\n onDrop={onDrop}\n />\n ) : (\n items.map((item, index) => (\n <li key={item.id} className={style.item} data-name={`content-${index}`}>\n <ListItem {...item} contentType={itemType} />\n </li>\n ))\n );\n return (\n <ul\n className={!selectMultiple ? style.list : style.listWithSelectMultiple}\n aria-label={ariaLabel}\n data-name={'content-list'}\n >\n {itemsView}\n </ul>\n );\n};\nconst buildContentView = (content, ariaLabel, selectMultiple) => {\n const {type} = content;\n switch (type) {\n case 'list':\n return buildListItemsView(content, ariaLabel, selectMultiple);\n case 'expandible-actionable-table':\n return <ExpandibleActionableTable {...content} />;\n }\n};\n\nconst ListItems = ({title, buttonLink, selectMultiple, content, 'aria-label': ariaLabel}) => {\n const contentView = buildContentView(content, ariaLabel, selectMultiple);\n\n return (\n <div>\n <div className={style.header}>\n <div className={style.title}>\n <Title title={title} type={'form-group'} data-name={'list-title'} />\n </div>\n <div className={style.actionsWrapper}>\n {selectMultiple ? (\n <div className={style.selectMultiple}>\n <SelectMultiple {...selectMultiple} />\n </div>\n ) : null}\n\n <div className={style.buttonCreate}>\n <ButtonLink {...buttonLink} />\n </div>\n </div>\n </div>\n {contentView}\n </div>\n );\n};\n\nListItems.propTypes = {\n 'aria-label': PropTypes.string,\n buttonLink: PropTypes.shape(ButtonLink.propTypes),\n selectMultiple: PropTypes.shape(SelectMultiple.propTypes),\n content: PropTypes.oneOfType([\n PropTypes.shape({\n items: PropTypes.arrayOf(PropTypes.shape(ListItem.propTypes)),\n type: PropTypes.oneOf(['list']),\n itemType: PropTypes.string,\n onDrop: PropTypes.func,\n displayAll: PropTypes.bool\n }),\n PropTypes.shape({\n ...ExpandibleActionableTable.propTypes,\n type: PropTypes.oneOf(['expandible-actionable-table'])\n })\n ]),\n title: PropTypes.string\n};\n\nexport default ListItems;\n"],"mappings":";;;;;AAAA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;;;AAEA,MAAMA,kBAAkB,GAAG,CAACC,OAAD,EAAUC,SAAV,EAAqBC,cAArB,KAAwC;EACjE,MAAM;IAACC,KAAD;IAAQC,QAAR;IAAkBC,MAAlB;IAA0BC;EAA1B,IAAwCN,OAA9C;EACA,MAAMO,SAAS,GACb,IAAAC,kBAAA,EAAU;IAACC,IAAI,EAAE;EAAP,CAAV,EAA+BN,KAAK,CAAC,CAAD,CAAL,EAAUO,IAAzC,MAAmD,CAAC,CAApD,IACAN,QAAQ,KAAK,eADb,IAEA,CAACE,UAFD,gBAGE,6BAAC,sBAAD;IACE,KAAK,EAAEH,KAAK,CAACQ,GAAN,CAAUC,IAAI,iBAASA,IAAT;MAAeC,WAAW,EAAET;IAA5B,EAAd,CADT;IAEE,QAAQ,EAAC,WAFX;IAGE,MAAM,EAAEC;EAHV,EAHF,GASEF,KAAK,CAACQ,GAAN,CAAU,CAACC,IAAD,EAAOE,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,GAIX,IALN,eAOE;IAAK,SAAS,EAAEc,cAAA,CAAMU;EAAtB,gBACE,6BAAC,mBAAD,EAAgBJ,UAAhB,CADF,CAPF,CAJF,CADF,EAiBGC,WAjBH,CADF;AAqBD,CAxBD;;AA0BAH,SAAS,CAACO,SAAV,2CAAsB;EACpB,cAAcC,kBAAA,CAAUC,MADJ;EAEpBP,UAAU,EAAEM,kBAAA,CAAUE,KAAV,CAAgBC,mBAAA,CAAWJ,SAA3B,CAFQ;EAGpBzB,cAAc,EAAE0B,kBAAA,CAAUE,KAAV,CAAgBE,uBAAA,CAAeL,SAA/B,CAHI;EAIpB3B,OAAO,EAAE4B,kBAAA,CAAUK,SAAV,CAAoB,CAC3BL,kBAAA,CAAUE,KAAV,CAAgB;IACd3B,KAAK,EAAEyB,kBAAA,CAAUM,OAAV,CAAkBN,kBAAA,CAAUE,KAAV,CAAgBK,iBAAA,CAASR,SAAzB,CAAlB,CADO;IAEdlB,IAAI,EAAEmB,kBAAA,CAAUQ,KAAV,CAAgB,CAAC,MAAD,CAAhB,CAFQ;IAGdhC,QAAQ,EAAEwB,kBAAA,CAAUC,MAHN;IAIdxB,MAAM,EAAEuB,kBAAA,CAAUS,IAJJ;IAKd/B,UAAU,EAAEsB,kBAAA,CAAUU;EALR,CAAhB,CAD2B,EAQ3BV,kBAAA,CAAUE,KAAV,cACKS,kCAAA,CAA0BZ,SAD/B;IAEElB,IAAI,EAAEmB,kBAAA,CAAUQ,KAAV,CAAgB,CAAC,6BAAD,CAAhB;EAFR,GAR2B,CAApB,CAJW;EAiBpBf,KAAK,EAAEO,kBAAA,CAAUC;AAjBG,CAAtB;eAoBeT,S"}
@@ -795,39 +795,6 @@ declare namespace BrandUpdate {
795
795
  error: PropTypes.Requireable<string>;
796
796
  theme: PropTypes.Requireable<string>;
797
797
  }>>;
798
- items: PropTypes.Requireable<(PropTypes.InferProps<{
799
- bulletPointMenuButton: PropTypes.Requireable<PropTypes.InferProps<{
800
- buttonAriaLabel: PropTypes.Requireable<string>;
801
- menuAriaLabel: PropTypes.Requireable<string>;
802
- buttons: PropTypes.Requireable<(PropTypes.InferProps<{
803
- 'data-name': PropTypes.Requireable<string>;
804
- label: PropTypes.Requireable<string>;
805
- type: PropTypes.Requireable<string>;
806
- onClick: PropTypes.Requireable<(...args: any[]) => any>;
807
- }> | null | undefined)[]>;
808
- onClick: PropTypes.Requireable<(...args: any[]) => any>;
809
- }>>;
810
- buttonLink: PropTypes.Requireable<PropTypes.InferProps<{
811
- type: PropTypes.Requireable<string>;
812
- label: PropTypes.Requireable<string>;
813
- ariaLabel: PropTypes.Requireable<string>;
814
- dataName: PropTypes.Requireable<string>;
815
- icon: PropTypes.Requireable<PropTypes.InferProps<{
816
- position: PropTypes.Requireable<string>;
817
- type: PropTypes.Requireable<string>;
818
- }>>;
819
- onClick: PropTypes.Requireable<(...args: any[]) => any>;
820
- }>>;
821
- tags: PropTypes.Requireable<(PropTypes.InferProps<{
822
- label: PropTypes.Requireable<string>;
823
- type: PropTypes.Requireable<string>;
824
- }> | null | undefined)[]>;
825
- title: PropTypes.Validator<string>;
826
- order: PropTypes.Requireable<number>;
827
- 'aria-label': PropTypes.Requireable<string>;
828
- contentType: PropTypes.Requireable<string>;
829
- id: PropTypes.Requireable<string>;
830
- }> | null | undefined)[]>;
831
798
  content: PropTypes.Requireable<NonNullable<PropTypes.InferProps<{
832
799
  items: PropTypes.Requireable<(PropTypes.InferProps<{
833
800
  bulletPointMenuButton: PropTypes.Requireable<PropTypes.InferProps<{
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coorpacademy/components",
3
- "version": "11.14.15-alpha.25+7cf3062d6",
3
+ "version": "11.14.15-alpha.26+1469a38a3",
4
4
  "description": "",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.js",
@@ -168,5 +168,5 @@
168
168
  "last 2 versions",
169
169
  "IE 11"
170
170
  ],
171
- "gitHead": "7cf3062d69decaef3e117a7f0b87f1cd53b6184a"
171
+ "gitHead": "1469a38a3d54229bc0d91ffeefb28020af4ce625"
172
172
  }