@coorpacademy/components 11.18.9 → 11.18.10
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/atom/button-menu/index.d.ts.map +1 -1
- package/es/atom/button-menu/index.js +1 -1
- package/es/atom/button-menu/index.js.map +1 -1
- package/es/atom/button-menu/style.css +10 -0
- package/es/atom/button-menu/types.d.ts +1 -1
- package/es/atom/button-menu/types.d.ts.map +1 -1
- package/es/atom/button-menu/types.js +1 -1
- package/es/atom/button-menu/types.js.map +1 -1
- package/es/atom/empty-search-result/index.d.ts +1 -0
- package/es/atom/empty-search-result/index.d.ts.map +1 -1
- package/es/atom/empty-search-result/index.js +6 -4
- package/es/atom/empty-search-result/index.js.map +1 -1
- package/es/atom/empty-search-result/style.css +16 -1
- package/es/atom/status-item/index.d.ts +1 -0
- package/es/atom/status-item/index.d.ts.map +1 -1
- package/es/atom/status-item/index.js +3 -2
- package/es/atom/status-item/index.js.map +1 -1
- package/es/atom/status-item/style.css +15 -17
- package/es/atom/status-item/types.d.ts +2 -0
- package/es/atom/status-item/types.d.ts.map +1 -1
- package/es/atom/status-item/types.js +1 -0
- package/es/atom/status-item/types.js.map +1 -1
- package/es/atom/tag/index.js +4 -4
- package/es/atom/tag/index.js.map +1 -1
- package/es/atom/tag/style.css +11 -8
- package/es/molecule/brand-tabs/index.d.ts +1 -0
- package/es/molecule/brand-tabs/index.d.ts.map +1 -1
- package/es/molecule/brand-tabs/index.js +10 -1
- package/es/molecule/brand-tabs/index.js.map +1 -1
- package/es/molecule/brand-tabs/style.css +7 -4
- package/es/molecule/bulk-progress-bar/index.d.ts.map +1 -1
- package/es/molecule/bulk-progress-bar/index.js +4 -2
- package/es/molecule/bulk-progress-bar/index.js.map +1 -1
- package/es/molecule/bulk-progress-bar/style.css +5 -0
- package/es/molecule/draggable-list/index.d.ts +32 -12
- package/es/molecule/expandible-actionable-table/index.d.ts +3 -0
- package/es/molecule/expandible-actionable-table/index.d.ts.map +1 -1
- package/es/molecule/expandible-actionable-table/index.js +15 -2
- package/es/molecule/expandible-actionable-table/index.js.map +1 -1
- package/es/molecule/expandible-actionable-table/style.css +5 -0
- package/es/molecule/expandible-actionable-table/types.d.ts +5 -0
- package/es/molecule/expandible-actionable-table/types.d.ts.map +1 -1
- package/es/molecule/expandible-actionable-table/types.js +3 -1
- package/es/molecule/expandible-actionable-table/types.js.map +1 -1
- package/es/molecule/review-header-steps/index.d.ts.map +1 -1
- package/es/molecule/review-header-steps/index.js +3 -4
- package/es/molecule/review-header-steps/index.js.map +1 -1
- package/es/molecule/review-header-steps/prop-types.d.ts +1 -0
- package/es/molecule/review-header-steps/prop-types.d.ts.map +1 -1
- package/es/molecule/review-header-steps/style.css +6 -1
- package/es/organism/list-item/index.d.ts +44 -13
- package/es/organism/list-item/index.d.ts.map +1 -1
- package/es/organism/list-item/index.js +72 -38
- package/es/organism/list-item/index.js.map +1 -1
- package/es/organism/list-item/style.css +28 -5
- package/es/organism/list-items/index.d.ts +36 -12
- package/es/organism/list-items/index.d.ts.map +1 -1
- package/es/organism/list-items/index.js +19 -4
- package/es/organism/list-items/index.js.map +1 -1
- package/es/organism/list-items/style.css +42 -0
- package/es/organism/review-header/types.d.ts +1 -0
- package/es/organism/review-header/types.d.ts.map +1 -1
- package/es/organism/wizard-contents/index.d.ts +67 -0
- package/es/organism/wizard-contents/index.d.ts.map +1 -1
- package/es/organism/wizard-contents/index.js +37 -4
- package/es/organism/wizard-contents/index.js.map +1 -1
- package/es/organism/wizard-contents/style.css +22 -0
- package/es/template/app-review/index.d.ts +1 -0
- package/es/template/app-review/index.d.ts.map +1 -1
- package/es/template/app-review/player/prop-types.d.ts +1 -0
- package/es/template/app-review/player/prop-types.d.ts.map +1 -1
- package/es/template/app-review/prop-types.d.ts +1 -0
- package/es/template/app-review/prop-types.d.ts.map +1 -1
- package/es/template/back-office/brand-update/index.d.ts +103 -12
- package/lib/atom/button-menu/index.d.ts.map +1 -1
- package/lib/atom/button-menu/index.js +1 -1
- package/lib/atom/button-menu/index.js.map +1 -1
- package/lib/atom/button-menu/style.css +10 -0
- package/lib/atom/button-menu/types.d.ts +1 -1
- package/lib/atom/button-menu/types.d.ts.map +1 -1
- package/lib/atom/button-menu/types.js +1 -1
- package/lib/atom/button-menu/types.js.map +1 -1
- package/lib/atom/empty-search-result/index.d.ts +1 -0
- package/lib/atom/empty-search-result/index.d.ts.map +1 -1
- package/lib/atom/empty-search-result/index.js +6 -4
- package/lib/atom/empty-search-result/index.js.map +1 -1
- package/lib/atom/empty-search-result/style.css +16 -1
- package/lib/atom/status-item/index.d.ts +1 -0
- package/lib/atom/status-item/index.d.ts.map +1 -1
- package/lib/atom/status-item/index.js +3 -2
- package/lib/atom/status-item/index.js.map +1 -1
- package/lib/atom/status-item/style.css +15 -17
- package/lib/atom/status-item/types.d.ts +2 -0
- package/lib/atom/status-item/types.d.ts.map +1 -1
- package/lib/atom/status-item/types.js +1 -0
- package/lib/atom/status-item/types.js.map +1 -1
- package/lib/atom/tag/index.js +4 -4
- package/lib/atom/tag/index.js.map +1 -1
- package/lib/atom/tag/style.css +11 -8
- package/lib/molecule/brand-tabs/index.d.ts +1 -0
- package/lib/molecule/brand-tabs/index.d.ts.map +1 -1
- package/lib/molecule/brand-tabs/index.js +11 -1
- package/lib/molecule/brand-tabs/index.js.map +1 -1
- package/lib/molecule/brand-tabs/style.css +7 -4
- package/lib/molecule/bulk-progress-bar/index.d.ts.map +1 -1
- package/lib/molecule/bulk-progress-bar/index.js +4 -2
- package/lib/molecule/bulk-progress-bar/index.js.map +1 -1
- package/lib/molecule/bulk-progress-bar/style.css +5 -0
- package/lib/molecule/draggable-list/index.d.ts +32 -12
- package/lib/molecule/expandible-actionable-table/index.d.ts +3 -0
- package/lib/molecule/expandible-actionable-table/index.d.ts.map +1 -1
- package/lib/molecule/expandible-actionable-table/index.js +17 -2
- package/lib/molecule/expandible-actionable-table/index.js.map +1 -1
- package/lib/molecule/expandible-actionable-table/style.css +5 -0
- package/lib/molecule/expandible-actionable-table/types.d.ts +5 -0
- package/lib/molecule/expandible-actionable-table/types.d.ts.map +1 -1
- package/lib/molecule/expandible-actionable-table/types.js +3 -1
- package/lib/molecule/expandible-actionable-table/types.js.map +1 -1
- package/lib/molecule/review-header-steps/index.d.ts.map +1 -1
- package/lib/molecule/review-header-steps/index.js +3 -4
- package/lib/molecule/review-header-steps/index.js.map +1 -1
- package/lib/molecule/review-header-steps/prop-types.d.ts +1 -0
- package/lib/molecule/review-header-steps/prop-types.d.ts.map +1 -1
- package/lib/molecule/review-header-steps/style.css +6 -1
- package/lib/organism/list-item/index.d.ts +44 -13
- package/lib/organism/list-item/index.d.ts.map +1 -1
- package/lib/organism/list-item/index.js +73 -37
- package/lib/organism/list-item/index.js.map +1 -1
- package/lib/organism/list-item/style.css +28 -5
- package/lib/organism/list-items/index.d.ts +36 -12
- package/lib/organism/list-items/index.d.ts.map +1 -1
- package/lib/organism/list-items/index.js +21 -4
- package/lib/organism/list-items/index.js.map +1 -1
- package/lib/organism/list-items/style.css +42 -0
- package/lib/organism/review-header/types.d.ts +1 -0
- package/lib/organism/review-header/types.d.ts.map +1 -1
- package/lib/organism/wizard-contents/index.d.ts +67 -0
- package/lib/organism/wizard-contents/index.d.ts.map +1 -1
- package/lib/organism/wizard-contents/index.js +39 -4
- package/lib/organism/wizard-contents/index.js.map +1 -1
- package/lib/organism/wizard-contents/style.css +22 -0
- package/lib/template/app-review/index.d.ts +1 -0
- package/lib/template/app-review/index.d.ts.map +1 -1
- package/lib/template/app-review/player/prop-types.d.ts +1 -0
- package/lib/template/app-review/player/prop-types.d.ts.map +1 -1
- package/lib/template/app-review/prop-types.d.ts +1 -0
- package/lib/template/app-review/prop-types.d.ts.map +1 -1
- package/lib/template/back-office/brand-update/index.d.ts +103 -12
- package/package.json +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","names":["columnProptypes","PropTypes","shape","title","string","isRequired","rowProptypes","fields","arrayOf","oneOfType","StatusItem","propTypes","type","oneOf","isRowExpandible","bool","lastField","BulletPointMenuButton","columns","rows","stickyFirstColumn","stickyLastColumn","columnWidth","ariaDescribedby","ButtonLink","componentType","isNestedTable"],"sources":["../../../src/molecule/expandible-actionable-table/types.ts"],"sourcesContent":["import PropTypes from 'prop-types';\nimport StatusItem from '../../atom/status-item';\nimport ButtonLink from '../../atom/button-link';\nimport BulletPointMenuButton from '../bullet-point-menu-button';\nimport {BulletPointMenuButtonProps} from '../bullet-point-menu-button/types';\nimport {ButtonLinkProps} from '../../atom/button-link/types';\nimport {StatusItemProps} from '../../atom/status-item/types';\nimport {Props as ErrorsTableProps} from '../errors-table/types';\nimport {Props as BulkProgressBarProps} from '../bulk-progress-bar/types';\n\nconst columnProptypes = PropTypes.shape({\n title: PropTypes.string.isRequired\n});\n\nconst rowProptypes = PropTypes.shape({\n fields: PropTypes.arrayOf(\n PropTypes.oneOfType([\n PropTypes.string,\n PropTypes.shape({\n ...StatusItem.propTypes,\n type: PropTypes.oneOf(['status'])\n })\n ])\n ),\n isRowExpandible: PropTypes.bool,\n lastField: PropTypes.oneOfType([\n PropTypes.string,\n PropTypes.shape({\n ...BulletPointMenuButton.propTypes,\n type: PropTypes.oneOf(['menu'])\n })\n ])\n});\n\nexport const propTypes = {\n columns: PropTypes.arrayOf(columnProptypes),\n rows: PropTypes.arrayOf(rowProptypes),\n stickyFirstColumn: PropTypes.bool,\n stickyLastColumn: PropTypes.bool,\n columnWidth: PropTypes.string,\n ariaDescribedby: PropTypes.string,\n lastField: PropTypes.oneOfType([\n PropTypes.shape({\n ...ButtonLink.propTypes,\n componentType: PropTypes.oneOf(['button-link'])\n }),\n PropTypes.shape({\n ...BulletPointMenuButton.propTypes,\n componentType: PropTypes.oneOf(['menu'])\n })\n ]),\n isNestedTable: PropTypes.bool\n};\n\nexport type Field =\n | string\n | (StatusItemProps & {\n componentType: 'status';\n })\n | (BulkProgressBarProps & {\n componentType: 'progress-bar';\n });\n\nexport type LastField =\n | (ButtonLinkProps & {\n componentType: 'button-link';\n })\n | (BulletPointMenuButtonProps & {\n componentType: 'menu';\n });\n\nexport type NestedRow =\n | (ErrorsTableProps & {\n componentType: 'errors-table';\n })\n | (Props & {\n componentType: 'expandible-errors-table';\n });\n\nexport type Column = {title: string};\nexport type Row = {\n fields: Field[];\n\n nestedRow?: NestedRow;\n isRowExpandible?: boolean;\n};\nexport type Columns = Column[];\nexport type Rows = Row[];\n\nexport type Props = {\n columns: Columns;\n rows?: Rows;\n stickyFirstColumn?: boolean;\n stickyLastColumn?: boolean;\n columnWidth?: `${number}${'px' | '%'}`;\n ariaDescribedby?: string;\n lastField?: LastField;\n isNestedTable?: boolean;\n};\n\nexport type ExpandState = {[key: number]: boolean};\n"],"mappings":";;;;;AAAA;;AACA;;AACA;;AACA;;;;;;AAOA,MAAMA,eAAe,GAAGC,kBAAA,CAAUC,KAAV,CAAgB;EACtCC,KAAK,EAAEF,kBAAA,CAAUG,MAAV,CAAiBC;AADc,CAAhB,CAAxB;;AAIA,MAAMC,YAAY,GAAGL,kBAAA,CAAUC,KAAV,CAAgB;EACnCK,MAAM,EAAEN,kBAAA,CAAUO,OAAV,CACNP,kBAAA,CAAUQ,SAAV,CAAoB,CAClBR,kBAAA,CAAUG,MADQ,EAElBH,kBAAA,CAAUC,KAAV,cACKQ,mBAAA,CAAWC,SADhB;IAEEC,IAAI,EAAEX,kBAAA,CAAUY,KAAV,CAAgB,CAAC,QAAD,CAAhB;EAFR,GAFkB,CAApB,CADM,CAD2B;EAUnCC,eAAe,EAAEb,kBAAA,CAAUc,IAVQ;EAWnCC,SAAS,EAAEf,kBAAA,CAAUQ,SAAV,CAAoB,CAC7BR,kBAAA,CAAUG,MADmB,EAE7BH,kBAAA,CAAUC,KAAV,cACKe,8BAAA,CAAsBN,SAD3B;IAEEC,IAAI,EAAEX,kBAAA,CAAUY,KAAV,CAAgB,CAAC,MAAD,CAAhB;EAFR,GAF6B,CAApB;AAXwB,CAAhB,CAArB;;AAoBO,MAAMF,SAAS,GAAG;EACvBO,OAAO,EAAEjB,kBAAA,CAAUO,OAAV,CAAkBR,eAAlB,CADc;EAEvBmB,IAAI,EAAElB,kBAAA,CAAUO,OAAV,CAAkBF,YAAlB,CAFiB;EAGvBc,iBAAiB,EAAEnB,kBAAA,CAAUc,IAHN;EAIvBM,gBAAgB,EAAEpB,kBAAA,CAAUc,IAJL;EAKvBO,WAAW,EAAErB,kBAAA,CAAUG,MALA;EAMvBmB,eAAe,EAAEtB,kBAAA,CAAUG,MANJ;EAOvBY,SAAS,EAAEf,kBAAA,CAAUQ,SAAV,CAAoB,CAC7BR,kBAAA,CAAUC,KAAV,cACKsB,mBAAA,CAAWb,SADhB;IAEEc,aAAa,EAAExB,kBAAA,CAAUY,KAAV,CAAgB,CAAC,aAAD,CAAhB;EAFjB,GAD6B,EAK7BZ,kBAAA,CAAUC,KAAV,cACKe,8BAAA,CAAsBN,SAD3B;IAEEc,aAAa,EAAExB,kBAAA,CAAUY,KAAV,CAAgB,CAAC,MAAD,CAAhB;EAFjB,GAL6B,CAApB,CAPY;EAiBvBa,aAAa,EAAEzB,kBAAA,CAAUc;
|
|
1
|
+
{"version":3,"file":"types.js","names":["columnProptypes","PropTypes","shape","title","string","isRequired","rowProptypes","fields","arrayOf","oneOfType","StatusItem","propTypes","type","oneOf","isRowExpandible","bool","lastField","BulletPointMenuButton","columns","rows","stickyFirstColumn","stickyLastColumn","columnWidth","ariaDescribedby","ButtonLink","componentType","isNestedTable","emptyStateFirstMessage","emptyStateSecondMessage"],"sources":["../../../src/molecule/expandible-actionable-table/types.ts"],"sourcesContent":["import PropTypes from 'prop-types';\nimport StatusItem from '../../atom/status-item';\nimport ButtonLink from '../../atom/button-link';\nimport BulletPointMenuButton from '../bullet-point-menu-button';\nimport {BulletPointMenuButtonProps} from '../bullet-point-menu-button/types';\nimport {ButtonLinkProps} from '../../atom/button-link/types';\nimport {StatusItemProps} from '../../atom/status-item/types';\nimport {Props as ErrorsTableProps} from '../errors-table/types';\nimport {Props as BulkProgressBarProps} from '../bulk-progress-bar/types';\n\nconst columnProptypes = PropTypes.shape({\n title: PropTypes.string.isRequired\n});\n\nconst rowProptypes = PropTypes.shape({\n fields: PropTypes.arrayOf(\n PropTypes.oneOfType([\n PropTypes.string,\n PropTypes.shape({\n ...StatusItem.propTypes,\n type: PropTypes.oneOf(['status'])\n })\n ])\n ),\n isRowExpandible: PropTypes.bool,\n lastField: PropTypes.oneOfType([\n PropTypes.string,\n PropTypes.shape({\n ...BulletPointMenuButton.propTypes,\n type: PropTypes.oneOf(['menu'])\n })\n ])\n});\n\nexport const propTypes = {\n columns: PropTypes.arrayOf(columnProptypes),\n rows: PropTypes.arrayOf(rowProptypes),\n stickyFirstColumn: PropTypes.bool,\n stickyLastColumn: PropTypes.bool,\n columnWidth: PropTypes.string,\n ariaDescribedby: PropTypes.string,\n lastField: PropTypes.oneOfType([\n PropTypes.shape({\n ...ButtonLink.propTypes,\n componentType: PropTypes.oneOf(['button-link'])\n }),\n PropTypes.shape({\n ...BulletPointMenuButton.propTypes,\n componentType: PropTypes.oneOf(['menu'])\n })\n ]),\n isNestedTable: PropTypes.bool,\n emptyStateFirstMessage: PropTypes.string,\n emptyStateSecondMessage: PropTypes.string\n};\n\nexport type Field =\n | string\n | (StatusItemProps & {\n componentType: 'status';\n })\n | (BulkProgressBarProps & {\n componentType: 'progress-bar';\n });\n\nexport type LastField =\n | (ButtonLinkProps & {\n componentType: 'button-link';\n })\n | (BulletPointMenuButtonProps & {\n componentType: 'menu';\n });\n\nexport type NestedRow =\n | (ErrorsTableProps & {\n componentType: 'errors-table';\n })\n | (Props & {\n componentType: 'expandible-errors-table';\n });\n\nexport type Column = {title: string};\nexport type Row = {\n fields: Field[];\n\n nestedRow?: NestedRow;\n isRowExpandible?: boolean;\n};\nexport type Columns = Column[];\nexport type Rows = Row[];\n\nexport type Props = {\n columns: Columns;\n rows?: Rows;\n stickyFirstColumn?: boolean;\n stickyLastColumn?: boolean;\n columnWidth?: `${number}${'px' | '%'}`;\n ariaDescribedby?: string;\n lastField?: LastField;\n isNestedTable?: boolean;\n emptyStateFistMessage?: string;\n emptyStateSecondMessage?: string;\n};\n\nexport type ExpandState = {[key: number]: boolean};\n"],"mappings":";;;;;AAAA;;AACA;;AACA;;AACA;;;;;;AAOA,MAAMA,eAAe,GAAGC,kBAAA,CAAUC,KAAV,CAAgB;EACtCC,KAAK,EAAEF,kBAAA,CAAUG,MAAV,CAAiBC;AADc,CAAhB,CAAxB;;AAIA,MAAMC,YAAY,GAAGL,kBAAA,CAAUC,KAAV,CAAgB;EACnCK,MAAM,EAAEN,kBAAA,CAAUO,OAAV,CACNP,kBAAA,CAAUQ,SAAV,CAAoB,CAClBR,kBAAA,CAAUG,MADQ,EAElBH,kBAAA,CAAUC,KAAV,cACKQ,mBAAA,CAAWC,SADhB;IAEEC,IAAI,EAAEX,kBAAA,CAAUY,KAAV,CAAgB,CAAC,QAAD,CAAhB;EAFR,GAFkB,CAApB,CADM,CAD2B;EAUnCC,eAAe,EAAEb,kBAAA,CAAUc,IAVQ;EAWnCC,SAAS,EAAEf,kBAAA,CAAUQ,SAAV,CAAoB,CAC7BR,kBAAA,CAAUG,MADmB,EAE7BH,kBAAA,CAAUC,KAAV,cACKe,8BAAA,CAAsBN,SAD3B;IAEEC,IAAI,EAAEX,kBAAA,CAAUY,KAAV,CAAgB,CAAC,MAAD,CAAhB;EAFR,GAF6B,CAApB;AAXwB,CAAhB,CAArB;;AAoBO,MAAMF,SAAS,GAAG;EACvBO,OAAO,EAAEjB,kBAAA,CAAUO,OAAV,CAAkBR,eAAlB,CADc;EAEvBmB,IAAI,EAAElB,kBAAA,CAAUO,OAAV,CAAkBF,YAAlB,CAFiB;EAGvBc,iBAAiB,EAAEnB,kBAAA,CAAUc,IAHN;EAIvBM,gBAAgB,EAAEpB,kBAAA,CAAUc,IAJL;EAKvBO,WAAW,EAAErB,kBAAA,CAAUG,MALA;EAMvBmB,eAAe,EAAEtB,kBAAA,CAAUG,MANJ;EAOvBY,SAAS,EAAEf,kBAAA,CAAUQ,SAAV,CAAoB,CAC7BR,kBAAA,CAAUC,KAAV,cACKsB,mBAAA,CAAWb,SADhB;IAEEc,aAAa,EAAExB,kBAAA,CAAUY,KAAV,CAAgB,CAAC,aAAD,CAAhB;EAFjB,GAD6B,EAK7BZ,kBAAA,CAAUC,KAAV,cACKe,8BAAA,CAAsBN,SAD3B;IAEEc,aAAa,EAAExB,kBAAA,CAAUY,KAAV,CAAgB,CAAC,MAAD,CAAhB;EAFjB,GAL6B,CAApB,CAPY;EAiBvBa,aAAa,EAAEzB,kBAAA,CAAUc,IAjBF;EAkBvBY,sBAAsB,EAAE1B,kBAAA,CAAUG,MAlBX;EAmBvBwB,uBAAuB,EAAE3B,kBAAA,CAAUG;AAnBZ,CAAlB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/molecule/review-header-steps/index.js"],"names":[],"mappings":";AAMA,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/molecule/review-header-steps/index.js"],"names":[],"mappings":";AAMA,4DAiBC"}
|
|
@@ -15,8 +15,6 @@ var _propTypes = _interopRequireDefault(require("./prop-types"));
|
|
|
15
15
|
|
|
16
16
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
17
17
|
|
|
18
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
19
|
-
|
|
20
18
|
const ReviewHeaderSteps = props => {
|
|
21
19
|
const {
|
|
22
20
|
steps
|
|
@@ -24,9 +22,10 @@ const ReviewHeaderSteps = props => {
|
|
|
24
22
|
|
|
25
23
|
const items = _map.default.convert({
|
|
26
24
|
cap: false
|
|
27
|
-
})((step, index) => /*#__PURE__*/_react.default.createElement(
|
|
25
|
+
})((step, index) => /*#__PURE__*/_react.default.createElement("div", {
|
|
26
|
+
className: _style.default.statusItemContainer,
|
|
28
27
|
key: index
|
|
29
|
-
})), steps);
|
|
28
|
+
}, /*#__PURE__*/_react.default.createElement(_statusItem.default, step)), steps);
|
|
30
29
|
|
|
31
30
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
32
31
|
className: _style.default.wrapper,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["ReviewHeaderSteps","props","steps","items","map","convert","cap","step","index","style","wrapper","propTypes"],"sources":["../../../src/molecule/review-header-steps/index.js"],"sourcesContent":["import React from 'react';\nimport map from 'lodash/fp/map';\nimport StatusItem from '../../atom/status-item';\nimport style from './style.css';\nimport propTypes from './prop-types';\n\nconst ReviewHeaderSteps = props => {\n const {steps} = props;\n\n const items = map.convert({cap: false})(\n (step, index) => <
|
|
1
|
+
{"version":3,"file":"index.js","names":["ReviewHeaderSteps","props","steps","items","map","convert","cap","step","index","style","statusItemContainer","wrapper","propTypes"],"sources":["../../../src/molecule/review-header-steps/index.js"],"sourcesContent":["import React from 'react';\nimport map from 'lodash/fp/map';\nimport StatusItem from '../../atom/status-item';\nimport style from './style.css';\nimport propTypes from './prop-types';\n\nconst ReviewHeaderSteps = props => {\n const {steps} = props;\n\n const items = map.convert({cap: false})(\n (step, index) => (\n <div className={style.statusItemContainer} key={index}>\n <StatusItem {...step} />\n </div>\n ),\n steps\n );\n\n return (\n <div className={style.wrapper} data-name=\"header-steps\">\n {items}\n </div>\n );\n};\n\nReviewHeaderSteps.propTypes = propTypes;\n\nexport default ReviewHeaderSteps;\n"],"mappings":";;;;;AAAA;;AACA;;AACA;;AACA;;AACA;;;;AAEA,MAAMA,iBAAiB,GAAGC,KAAK,IAAI;EACjC,MAAM;IAACC;EAAD,IAAUD,KAAhB;;EAEA,MAAME,KAAK,GAAGC,YAAA,CAAIC,OAAJ,CAAY;IAACC,GAAG,EAAE;EAAN,CAAZ,EACZ,CAACC,IAAD,EAAOC,KAAP,kBACE;IAAK,SAAS,EAAEC,cAAA,CAAMC,mBAAtB;IAA2C,GAAG,EAAEF;EAAhD,gBACE,6BAAC,mBAAD,EAAgBD,IAAhB,CADF,CAFU,EAMZL,KANY,CAAd;;EASA,oBACE;IAAK,SAAS,EAAEO,cAAA,CAAME,OAAtB;IAA+B,aAAU;EAAzC,GACGR,KADH,CADF;AAKD,CAjBD;;AAmBAH,iBAAiB,CAACY,SAAlB,2CAA8BA,kBAA9B;eAEeZ,iB"}
|
|
@@ -3,6 +3,7 @@ import { StatusItemProps } from '../../atom/status-item/types';
|
|
|
3
3
|
declare const propTypes: {
|
|
4
4
|
steps: PropTypes.Requireable<(PropTypes.InferProps<{
|
|
5
5
|
current: PropTypes.Requireable<boolean>;
|
|
6
|
+
selected: PropTypes.Requireable<boolean>;
|
|
6
7
|
icon: PropTypes.Requireable<string>;
|
|
7
8
|
value: PropTypes.Requireable<string>;
|
|
8
9
|
}> | null | undefined)[]>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prop-types.d.ts","sourceRoot":"","sources":["../../../src/molecule/review-header-steps/prop-types.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,YAAY,CAAC;AAEnC,OAAsC,EAAC,eAAe,EAAC,MAAM,8BAA8B,CAAC;AAE5F,QAAA,MAAM,SAAS
|
|
1
|
+
{"version":3,"file":"prop-types.d.ts","sourceRoot":"","sources":["../../../src/molecule/review-header-steps/prop-types.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,YAAY,CAAC;AAEnC,OAAsC,EAAC,eAAe,EAAC,MAAM,8BAA8B,CAAC;AAE5F,QAAA,MAAM,SAAS;;;;;;;CAEd,CAAC;AAEF,eAAe,SAAS,CAAC;AAEzB,oBAAY,sBAAsB,GAAG;IACnC,KAAK,EAAE,eAAe,EAAE,CAAC;CAC1B,CAAC"}
|
|
@@ -1,18 +1,24 @@
|
|
|
1
1
|
export default ListItem;
|
|
2
|
-
declare function ListItem(
|
|
2
|
+
declare function ListItem({ buttonLink, buttonLinkIcon, bulletPointMenuButton, tags, title, dataColumns, order, "aria-label": ariaLabel, contentType, isBulkStyle }: {
|
|
3
|
+
buttonLink: any;
|
|
4
|
+
buttonLinkIcon: any;
|
|
5
|
+
bulletPointMenuButton: any;
|
|
6
|
+
tags: any;
|
|
7
|
+
title: any;
|
|
8
|
+
dataColumns: any;
|
|
9
|
+
order: any;
|
|
10
|
+
"aria-label": any;
|
|
11
|
+
contentType: any;
|
|
12
|
+
isBulkStyle?: boolean | undefined;
|
|
13
|
+
}): JSX.Element;
|
|
3
14
|
declare namespace ListItem {
|
|
4
15
|
const propTypes: {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
type: PropTypes.Requireable<string>;
|
|
12
|
-
onClick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
13
|
-
}> | null | undefined)[]>;
|
|
14
|
-
onClick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
15
|
-
}>>;
|
|
16
|
+
title: PropTypes.Validator<string>;
|
|
17
|
+
dataColumns: PropTypes.Requireable<(PropTypes.InferProps<{
|
|
18
|
+
label: PropTypes.Requireable<string>;
|
|
19
|
+
type: PropTypes.Requireable<string>;
|
|
20
|
+
className: PropTypes.Requireable<string>;
|
|
21
|
+
}> | null | undefined)[]>;
|
|
16
22
|
buttonLink: PropTypes.Requireable<PropTypes.InferProps<{
|
|
17
23
|
type: PropTypes.Requireable<string>;
|
|
18
24
|
label: PropTypes.Requireable<string>;
|
|
@@ -24,11 +30,36 @@ declare namespace ListItem {
|
|
|
24
30
|
}>>;
|
|
25
31
|
onClick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
26
32
|
}>>;
|
|
33
|
+
buttonLinkIcon: PropTypes.Requireable<PropTypes.InferProps<{
|
|
34
|
+
size: PropTypes.Requireable<string>;
|
|
35
|
+
'aria-label': PropTypes.Requireable<string>;
|
|
36
|
+
'data-name': PropTypes.Requireable<string>;
|
|
37
|
+
icon: PropTypes.Requireable<string>;
|
|
38
|
+
onClick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
39
|
+
link: PropTypes.Requireable<PropTypes.InferProps<{
|
|
40
|
+
href: PropTypes.Requireable<string>;
|
|
41
|
+
download: PropTypes.Requireable<boolean>;
|
|
42
|
+
target: PropTypes.Requireable<string>;
|
|
43
|
+
}>>;
|
|
44
|
+
disabled: PropTypes.Requireable<boolean>;
|
|
45
|
+
className: PropTypes.Requireable<string>;
|
|
46
|
+
}>>;
|
|
47
|
+
bulletPointMenuButton: PropTypes.Requireable<PropTypes.InferProps<{
|
|
48
|
+
buttonAriaLabel: PropTypes.Requireable<string>;
|
|
49
|
+
menuAriaLabel: PropTypes.Requireable<string>;
|
|
50
|
+
buttons: PropTypes.Requireable<(PropTypes.InferProps<{
|
|
51
|
+
'data-name': PropTypes.Requireable<string>;
|
|
52
|
+
label: PropTypes.Requireable<string>;
|
|
53
|
+
type: PropTypes.Requireable<string>;
|
|
54
|
+
onClick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
55
|
+
}> | null | undefined)[]>;
|
|
56
|
+
onClick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
57
|
+
}>>;
|
|
27
58
|
tags: PropTypes.Requireable<(PropTypes.InferProps<{
|
|
28
59
|
label: PropTypes.Requireable<string>;
|
|
29
60
|
type: PropTypes.Requireable<string>;
|
|
30
61
|
}> | null | undefined)[]>;
|
|
31
|
-
|
|
62
|
+
isBulkStyle: PropTypes.Requireable<boolean>;
|
|
32
63
|
order: PropTypes.Requireable<number>;
|
|
33
64
|
'aria-label': PropTypes.Requireable<string>;
|
|
34
65
|
contentType: PropTypes.Requireable<string>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/organism/list-item/index.js"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/organism/list-item/index.js"],"names":[],"mappings":";AAWA;;;;;;;;;;;gBAgEC"}
|
|
@@ -9,70 +9,81 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
9
9
|
|
|
10
10
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
11
11
|
|
|
12
|
+
var _classnames = _interopRequireDefault(require("classnames"));
|
|
13
|
+
|
|
12
14
|
var _tag = _interopRequireDefault(require("../../atom/tag"));
|
|
13
15
|
|
|
14
16
|
var _buttonLink = _interopRequireDefault(require("../../atom/button-link"));
|
|
15
17
|
|
|
18
|
+
var _buttonLinkIconOnly = _interopRequireDefault(require("../../atom/button-link-icon-only"));
|
|
19
|
+
|
|
16
20
|
var _bulletPointMenuButton = _interopRequireDefault(require("../../molecule/bullet-point-menu-button"));
|
|
17
21
|
|
|
18
22
|
var _style = _interopRequireDefault(require("./style.css"));
|
|
19
23
|
|
|
20
24
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
21
25
|
|
|
22
|
-
|
|
26
|
+
// eslint-disable-next-line css-modules/no-unused-class
|
|
27
|
+
const ListItem = ({
|
|
28
|
+
buttonLink,
|
|
29
|
+
buttonLinkIcon,
|
|
30
|
+
bulletPointMenuButton,
|
|
31
|
+
tags,
|
|
32
|
+
title,
|
|
33
|
+
dataColumns,
|
|
34
|
+
order,
|
|
35
|
+
'aria-label': ariaLabel,
|
|
36
|
+
contentType,
|
|
37
|
+
isBulkStyle = false
|
|
38
|
+
}) => {
|
|
23
39
|
let isPublished = false;
|
|
24
|
-
const {
|
|
25
|
-
bulletPointMenuButton,
|
|
26
|
-
buttonLink,
|
|
27
|
-
tags,
|
|
28
|
-
title,
|
|
29
|
-
order,
|
|
30
|
-
'aria-label': ariaLabel,
|
|
31
|
-
contentType
|
|
32
|
-
} = props;
|
|
33
40
|
|
|
34
41
|
const tagsView = _map2.default.convert({
|
|
35
42
|
cap: false
|
|
36
43
|
})((tag, index) => {
|
|
37
|
-
isPublished = tag.type === '
|
|
44
|
+
isPublished = tag.type === 'success';
|
|
38
45
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
39
46
|
key: index,
|
|
40
47
|
className: _style.default.tag
|
|
41
48
|
}, /*#__PURE__*/_react.default.createElement(_tag.default, tag));
|
|
42
49
|
})(tags);
|
|
43
50
|
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
},
|
|
47
|
-
|
|
48
|
-
|
|
51
|
+
const dataColumnsView = _map2.default.convert({
|
|
52
|
+
cap: false
|
|
53
|
+
})((dataColumn, index) => {
|
|
54
|
+
return /*#__PURE__*/_react.default.createElement("div", {
|
|
55
|
+
key: index,
|
|
56
|
+
className: _style.default[dataColumn.className]
|
|
57
|
+
}, dataColumn.type ? /*#__PURE__*/_react.default.createElement(_tag.default, dataColumn) : dataColumn.label);
|
|
58
|
+
})(dataColumns);
|
|
59
|
+
|
|
60
|
+
const orderView = order !== null && order !== undefined ? /*#__PURE__*/_react.default.createElement("div", {
|
|
49
61
|
className: _style.default.order,
|
|
50
62
|
"aria-label": ariaLabel
|
|
51
|
-
}, order + 1) : null
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
},
|
|
63
|
+
}, order + 1) : null;
|
|
64
|
+
return /*#__PURE__*/_react.default.createElement("div", {
|
|
65
|
+
className: (0, _classnames.default)(_style.default.wrapper, isBulkStyle && _style.default.gridLayout)
|
|
66
|
+
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
67
|
+
className: _style.default.dataColumnsWrapper
|
|
68
|
+
}, isPublished && contentType === 'certification' ? orderView : null, /*#__PURE__*/_react.default.createElement("div", {
|
|
55
69
|
className: _style.default.title,
|
|
56
70
|
title: title
|
|
57
|
-
}, title), /*#__PURE__*/_react.default.createElement("div", {
|
|
71
|
+
}, title), dataColumnsView), /*#__PURE__*/_react.default.createElement("div", {
|
|
58
72
|
className: _style.default.settings
|
|
59
|
-
}, tagsView, /*#__PURE__*/_react.default.createElement("div", {
|
|
60
|
-
className: _style.default.
|
|
61
|
-
}, /*#__PURE__*/_react.default.createElement(_buttonLink.default, buttonLink)), /*#__PURE__*/_react.default.createElement(
|
|
73
|
+
}, tagsView, buttonLink ? /*#__PURE__*/_react.default.createElement("div", {
|
|
74
|
+
className: _style.default.buttonLink
|
|
75
|
+
}, /*#__PURE__*/_react.default.createElement(_buttonLink.default, buttonLink)) : null, buttonLinkIcon ? /*#__PURE__*/_react.default.createElement("div", {
|
|
76
|
+
className: _style.default.buttonLink
|
|
77
|
+
}, /*#__PURE__*/_react.default.createElement(_buttonLinkIconOnly.default, buttonLinkIcon)) : null, /*#__PURE__*/_react.default.createElement(_bulletPointMenuButton.default, bulletPointMenuButton)));
|
|
62
78
|
};
|
|
63
79
|
|
|
64
80
|
ListItem.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
type: _propTypes.default.string,
|
|
72
|
-
onClick: _propTypes.default.func
|
|
73
|
-
})),
|
|
74
|
-
onClick: _propTypes.default.func
|
|
75
|
-
}),
|
|
81
|
+
title: _propTypes.default.string.isRequired,
|
|
82
|
+
dataColumns: _propTypes.default.arrayOf(_propTypes.default.shape({
|
|
83
|
+
label: _propTypes.default.string,
|
|
84
|
+
type: _propTypes.default.oneOf(['success', 'failure', 'warning', 'progress', 'default']),
|
|
85
|
+
className: _propTypes.default.oneOf(['cell', 'title'])
|
|
86
|
+
})),
|
|
76
87
|
buttonLink: _propTypes.default.shape({
|
|
77
88
|
type: _propTypes.default.string,
|
|
78
89
|
label: _propTypes.default.string,
|
|
@@ -84,11 +95,36 @@ ListItem.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
84
95
|
}),
|
|
85
96
|
onClick: _propTypes.default.func
|
|
86
97
|
}),
|
|
98
|
+
buttonLinkIcon: _propTypes.default.shape({
|
|
99
|
+
size: _propTypes.default.oneOf(['default', 'small', 'responsive']),
|
|
100
|
+
'aria-label': _propTypes.default.string,
|
|
101
|
+
'data-name': _propTypes.default.string,
|
|
102
|
+
icon: _propTypes.default.string,
|
|
103
|
+
onClick: _propTypes.default.func,
|
|
104
|
+
link: _propTypes.default.shape({
|
|
105
|
+
href: _propTypes.default.string,
|
|
106
|
+
download: _propTypes.default.bool,
|
|
107
|
+
target: _propTypes.default.oneOf(['_self', '_blank', '_parent', '_top'])
|
|
108
|
+
}),
|
|
109
|
+
disabled: _propTypes.default.bool,
|
|
110
|
+
className: _propTypes.default.string
|
|
111
|
+
}),
|
|
112
|
+
bulletPointMenuButton: _propTypes.default.shape({
|
|
113
|
+
buttonAriaLabel: _propTypes.default.string,
|
|
114
|
+
menuAriaLabel: _propTypes.default.string,
|
|
115
|
+
buttons: _propTypes.default.arrayOf(_propTypes.default.shape({
|
|
116
|
+
'data-name': _propTypes.default.string,
|
|
117
|
+
label: _propTypes.default.string,
|
|
118
|
+
type: _propTypes.default.string,
|
|
119
|
+
onClick: _propTypes.default.func
|
|
120
|
+
})),
|
|
121
|
+
onClick: _propTypes.default.func
|
|
122
|
+
}),
|
|
87
123
|
tags: _propTypes.default.arrayOf(_propTypes.default.shape({
|
|
88
124
|
label: _propTypes.default.string,
|
|
89
|
-
type: _propTypes.default.oneOf(['
|
|
125
|
+
type: _propTypes.default.oneOf(['success', 'failure', 'warning', 'progress', 'default'])
|
|
90
126
|
})),
|
|
91
|
-
|
|
127
|
+
isBulkStyle: _propTypes.default.bool,
|
|
92
128
|
order: _propTypes.default.number,
|
|
93
129
|
'aria-label': _propTypes.default.string,
|
|
94
130
|
contentType: _propTypes.default.string,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["ListItem","
|
|
1
|
+
{"version":3,"file":"index.js","names":["ListItem","buttonLink","buttonLinkIcon","bulletPointMenuButton","tags","title","dataColumns","order","ariaLabel","contentType","isBulkStyle","isPublished","tagsView","convert","cap","tag","index","type","style","dataColumnsView","dataColumn","className","label","orderView","undefined","classnames","wrapper","gridLayout","dataColumnsWrapper","settings","propTypes","PropTypes","string","isRequired","arrayOf","shape","oneOf","dataName","icon","position","onClick","func","size","link","href","download","bool","target","disabled","buttonAriaLabel","menuAriaLabel","buttons","number","id"],"sources":["../../../src/organism/list-item/index.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport {map} from 'lodash/fp';\nimport classnames from 'classnames';\nimport Tag from '../../atom/tag';\nimport ButtonLink from '../../atom/button-link';\nimport ButtonLinkIconOnly from '../../atom/button-link-icon-only';\nimport BulletPointMenuButton from '../../molecule/bullet-point-menu-button';\n// eslint-disable-next-line css-modules/no-unused-class\nimport style from './style.css';\n\nconst ListItem = ({\n buttonLink,\n buttonLinkIcon,\n bulletPointMenuButton,\n tags,\n title,\n dataColumns,\n order,\n 'aria-label': ariaLabel,\n contentType,\n isBulkStyle = false\n}) => {\n let isPublished = false;\n\n const tagsView = map.convert({cap: false})((tag, index) => {\n isPublished = tag.type === 'success';\n return (\n <div key={index} className={style.tag}>\n <Tag {...tag} />\n </div>\n );\n })(tags);\n\n const dataColumnsView = map.convert({cap: false})((dataColumn, index) => {\n return (\n <div key={index} className={style[dataColumn.className]}>\n {dataColumn.type ? <Tag {...dataColumn} /> : dataColumn.label}\n </div>\n );\n })(dataColumns);\n\n const orderView =\n order !== null && order !== undefined ? (\n <div className={style.order} aria-label={ariaLabel}>\n {order + 1}\n </div>\n ) : null;\n\n return (\n <div className={classnames(style.wrapper, isBulkStyle && style.gridLayout)}>\n <div className={style.dataColumnsWrapper}>\n {isPublished && contentType === 'certification' ? orderView : null}\n <div className={style.title} title={title}>\n {title}\n </div>\n {dataColumnsView}\n </div>\n\n <div className={style.settings}>\n {tagsView}\n {buttonLink ? (\n <div className={style.buttonLink}>\n <ButtonLink {...buttonLink} />\n </div>\n ) : null}\n {buttonLinkIcon ? (\n <div className={style.buttonLink}>\n <ButtonLinkIconOnly {...buttonLinkIcon} />\n </div>\n ) : null}\n <BulletPointMenuButton {...bulletPointMenuButton} />\n </div>\n </div>\n );\n};\n\nListItem.propTypes = {\n title: PropTypes.string.isRequired,\n dataColumns: PropTypes.arrayOf(\n PropTypes.shape({\n label: PropTypes.string,\n type: PropTypes.oneOf(['success', 'failure', 'warning', 'progress', 'default']),\n className: PropTypes.oneOf(['cell', 'title'])\n })\n ),\n buttonLink: PropTypes.shape({\n type: PropTypes.string,\n label: PropTypes.string,\n ariaLabel: PropTypes.string,\n dataName: PropTypes.string,\n icon: PropTypes.shape({\n position: PropTypes.string,\n type: PropTypes.string\n }),\n onClick: PropTypes.func\n }),\n buttonLinkIcon: PropTypes.shape({\n size: PropTypes.oneOf(['default', 'small', 'responsive']),\n 'aria-label': PropTypes.string,\n 'data-name': PropTypes.string,\n icon: PropTypes.string,\n onClick: PropTypes.func,\n link: PropTypes.shape({\n href: PropTypes.string,\n download: PropTypes.bool,\n target: PropTypes.oneOf(['_self', '_blank', '_parent', '_top'])\n }),\n disabled: PropTypes.bool,\n className: PropTypes.string\n }),\n bulletPointMenuButton: PropTypes.shape({\n buttonAriaLabel: PropTypes.string,\n menuAriaLabel: PropTypes.string,\n buttons: PropTypes.arrayOf(\n PropTypes.shape({\n 'data-name': PropTypes.string,\n label: PropTypes.string,\n type: PropTypes.string,\n onClick: PropTypes.func\n })\n ),\n onClick: PropTypes.func\n }),\n tags: PropTypes.arrayOf(\n PropTypes.shape({\n label: PropTypes.string,\n type: PropTypes.oneOf(['success', 'failure', 'warning', 'progress', 'default'])\n })\n ),\n isBulkStyle: PropTypes.bool,\n order: PropTypes.number,\n 'aria-label': PropTypes.string,\n contentType: PropTypes.string,\n id: PropTypes.string\n};\n\nexport default ListItem;\n"],"mappings":";;;;;;;AAAA;;AACA;;AAEA;;AACA;;AACA;;AACA;;AACA;;AAEA;;;;AADA;AAGA,MAAMA,QAAQ,GAAG,CAAC;EAChBC,UADgB;EAEhBC,cAFgB;EAGhBC,qBAHgB;EAIhBC,I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nBrC,IAAI,EAAE2B,kBAAA,CAAUG,OAAV,CACJH,kBAAA,CAAUI,KAAV,CAAgB;IACdb,KAAK,EAAES,kBAAA,CAAUC,MADH;IAEdf,IAAI,EAAEc,kBAAA,CAAUK,KAAV,CAAgB,CAAC,SAAD,EAAY,SAAZ,EAAuB,SAAvB,EAAkC,UAAlC,EAA8C,SAA9C,CAAhB;EAFQ,CAAhB,CADI,CA/Ca;EAqDnB1B,WAAW,EAAEqB,kBAAA,CAAUe,IArDJ;EAsDnBvC,KAAK,EAAEwB,kBAAA,CAAUqB,MAtDE;EAuDnB,cAAcrB,kBAAA,CAAUC,MAvDL;EAwDnBvB,WAAW,EAAEsB,kBAAA,CAAUC,MAxDJ;EAyDnBqB,EAAE,EAAEtB,kBAAA,CAAUC;AAzDK,CAArB;eA4DehC,Q"}
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
@value cm_grey_900 from colors;
|
|
6
6
|
@value primaryAdd1 from colors;
|
|
7
7
|
@value cm_grey_400 from colors;
|
|
8
|
+
@value cm_grey_500 from colors;
|
|
8
9
|
|
|
9
10
|
.wrapper {
|
|
10
11
|
align-items: center;
|
|
@@ -16,11 +17,22 @@
|
|
|
16
17
|
justify-content: space-between;
|
|
17
18
|
padding: 0 24px;
|
|
18
19
|
width: 100%;
|
|
20
|
+
gap: 24px;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.gridLayout {
|
|
24
|
+
display: grid;
|
|
25
|
+
grid-template-columns: 70% auto;
|
|
19
26
|
}
|
|
20
27
|
|
|
21
28
|
.title {
|
|
22
29
|
color: cm_grey_900;
|
|
23
30
|
flex-grow: 0;
|
|
31
|
+
display: flex;
|
|
32
|
+
height: 56px;
|
|
33
|
+
align-items: center;
|
|
34
|
+
gap: 16px;
|
|
35
|
+
flex: 1 0 0;
|
|
24
36
|
font-family: Gilroy;
|
|
25
37
|
font-size: 16px;
|
|
26
38
|
font-stretch: normal;
|
|
@@ -28,12 +40,10 @@
|
|
|
28
40
|
font-weight: bold;
|
|
29
41
|
line-height: 1.38;
|
|
30
42
|
letter-spacing: normal;
|
|
31
|
-
margin-right: 24px;
|
|
32
43
|
overflow: hidden;
|
|
33
44
|
text-align: left;
|
|
34
45
|
text-overflow: ellipsis;
|
|
35
46
|
white-space: nowrap;
|
|
36
|
-
|
|
37
47
|
}
|
|
38
48
|
|
|
39
49
|
.settings {
|
|
@@ -47,10 +57,23 @@
|
|
|
47
57
|
text-overflow: ellipsis;
|
|
48
58
|
white-space: nowrap;
|
|
49
59
|
}
|
|
60
|
+
.cell {
|
|
61
|
+
display: flex;
|
|
62
|
+
height: 56px;
|
|
63
|
+
align-items: center;
|
|
64
|
+
gap: 16px;
|
|
65
|
+
flex: 1 0 0;
|
|
66
|
+
color: cm_grey_500;
|
|
67
|
+
font-family: Gilroy;
|
|
68
|
+
font-size: 14px;
|
|
69
|
+
font-style: normal;
|
|
70
|
+
font-weight: 600;
|
|
71
|
+
line-height: 20px;
|
|
72
|
+
white-space: nowrap;
|
|
73
|
+
}
|
|
50
74
|
|
|
51
|
-
.
|
|
75
|
+
.buttonLink {
|
|
52
76
|
margin: 0 16px 0 0;
|
|
53
|
-
min-width: 93px;
|
|
54
77
|
}
|
|
55
78
|
|
|
56
79
|
.order {
|
|
@@ -65,7 +88,7 @@
|
|
|
65
88
|
margin: 0 16px 0 0;
|
|
66
89
|
}
|
|
67
90
|
|
|
68
|
-
.
|
|
91
|
+
.dataColumnsWrapper {
|
|
69
92
|
align-items: center;
|
|
70
93
|
display: flex;
|
|
71
94
|
width: 100%;
|
|
@@ -49,17 +49,12 @@ declare namespace ListItems {
|
|
|
49
49
|
}>>;
|
|
50
50
|
content: PropTypes.Requireable<NonNullable<PropTypes.InferProps<{
|
|
51
51
|
items: PropTypes.Requireable<(PropTypes.InferProps<{
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
type: PropTypes.Requireable<string>;
|
|
59
|
-
onClick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
60
|
-
}> | null | undefined)[]>;
|
|
61
|
-
onClick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
62
|
-
}>>;
|
|
52
|
+
title: PropTypes.Validator<string>;
|
|
53
|
+
dataColumns: PropTypes.Requireable<(PropTypes.InferProps<{
|
|
54
|
+
label: PropTypes.Requireable<string>;
|
|
55
|
+
type: PropTypes.Requireable<string>;
|
|
56
|
+
className: PropTypes.Requireable<string>;
|
|
57
|
+
}> | null | undefined)[]>;
|
|
63
58
|
buttonLink: PropTypes.Requireable<PropTypes.InferProps<{
|
|
64
59
|
type: PropTypes.Requireable<string>;
|
|
65
60
|
label: PropTypes.Requireable<string>;
|
|
@@ -71,11 +66,36 @@ declare namespace ListItems {
|
|
|
71
66
|
}>>;
|
|
72
67
|
onClick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
73
68
|
}>>;
|
|
69
|
+
buttonLinkIcon: PropTypes.Requireable<PropTypes.InferProps<{
|
|
70
|
+
size: PropTypes.Requireable<string>;
|
|
71
|
+
'aria-label': PropTypes.Requireable<string>;
|
|
72
|
+
'data-name': PropTypes.Requireable<string>;
|
|
73
|
+
icon: PropTypes.Requireable<string>;
|
|
74
|
+
onClick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
75
|
+
link: PropTypes.Requireable<PropTypes.InferProps<{
|
|
76
|
+
href: PropTypes.Requireable<string>;
|
|
77
|
+
download: PropTypes.Requireable<boolean>;
|
|
78
|
+
target: PropTypes.Requireable<string>;
|
|
79
|
+
}>>;
|
|
80
|
+
disabled: PropTypes.Requireable<boolean>;
|
|
81
|
+
className: PropTypes.Requireable<string>;
|
|
82
|
+
}>>;
|
|
83
|
+
bulletPointMenuButton: PropTypes.Requireable<PropTypes.InferProps<{
|
|
84
|
+
buttonAriaLabel: PropTypes.Requireable<string>;
|
|
85
|
+
menuAriaLabel: PropTypes.Requireable<string>;
|
|
86
|
+
buttons: PropTypes.Requireable<(PropTypes.InferProps<{
|
|
87
|
+
'data-name': PropTypes.Requireable<string>;
|
|
88
|
+
label: PropTypes.Requireable<string>;
|
|
89
|
+
type: PropTypes.Requireable<string>;
|
|
90
|
+
onClick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
91
|
+
}> | null | undefined)[]>;
|
|
92
|
+
onClick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
93
|
+
}>>;
|
|
74
94
|
tags: PropTypes.Requireable<(PropTypes.InferProps<{
|
|
75
95
|
label: PropTypes.Requireable<string>;
|
|
76
96
|
type: PropTypes.Requireable<string>;
|
|
77
97
|
}> | null | undefined)[]>;
|
|
78
|
-
|
|
98
|
+
isBulkStyle: PropTypes.Requireable<boolean>;
|
|
79
99
|
order: PropTypes.Requireable<number>;
|
|
80
100
|
'aria-label': PropTypes.Requireable<string>;
|
|
81
101
|
contentType: PropTypes.Requireable<string>;
|
|
@@ -85,6 +105,7 @@ declare namespace ListItems {
|
|
|
85
105
|
itemType: PropTypes.Requireable<string>;
|
|
86
106
|
onDrop: PropTypes.Requireable<(...args: any[]) => any>;
|
|
87
107
|
isDraggable: PropTypes.Requireable<boolean>;
|
|
108
|
+
tableHeader: PropTypes.Requireable<(string | null | undefined)[]>;
|
|
88
109
|
}> | PropTypes.InferProps<{
|
|
89
110
|
type: PropTypes.Requireable<string>;
|
|
90
111
|
columns: PropTypes.Requireable<(PropTypes.InferProps<{
|
|
@@ -94,6 +115,7 @@ declare namespace ListItems {
|
|
|
94
115
|
fields: PropTypes.Requireable<(NonNullable<string | PropTypes.InferProps<{
|
|
95
116
|
type: PropTypes.Requireable<string>;
|
|
96
117
|
current: PropTypes.Requireable<boolean>;
|
|
118
|
+
selected: PropTypes.Requireable<boolean>;
|
|
97
119
|
icon: PropTypes.Requireable<string>;
|
|
98
120
|
value: PropTypes.Requireable<string>;
|
|
99
121
|
}> | null | undefined> | null | undefined)[]>;
|
|
@@ -156,6 +178,8 @@ declare namespace ListItems {
|
|
|
156
178
|
isBulkMenu: PropTypes.Requireable<boolean>;
|
|
157
179
|
}> | null | undefined>>;
|
|
158
180
|
isNestedTable: PropTypes.Requireable<boolean>;
|
|
181
|
+
emptyStateFirstMessage: PropTypes.Requireable<string>;
|
|
182
|
+
emptyStateSecondMessage: PropTypes.Requireable<string>;
|
|
159
183
|
}> | null | undefined>>;
|
|
160
184
|
title: PropTypes.Requireable<string>;
|
|
161
185
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/organism/list-items/index.js"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/organism/list-items/index.js"],"names":[],"mappings":";AAoEA;;;;;;gBAwBC"}
|
|
@@ -7,6 +7,10 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
7
7
|
|
|
8
8
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
9
9
|
|
|
10
|
+
var _isNil = _interopRequireDefault(require("lodash/fp/isNil"));
|
|
11
|
+
|
|
12
|
+
var _isEmpty = _interopRequireDefault(require("lodash/fp/isEmpty"));
|
|
13
|
+
|
|
10
14
|
var _listItem = _interopRequireDefault(require("../list-item"));
|
|
11
15
|
|
|
12
16
|
var _draggableList = _interopRequireDefault(require("../../molecule/draggable-list"));
|
|
@@ -30,7 +34,8 @@ const buildListItemsView = (content, ariaLabel, selectMultiple) => {
|
|
|
30
34
|
items,
|
|
31
35
|
itemType,
|
|
32
36
|
onDrop,
|
|
33
|
-
isDraggable = false
|
|
37
|
+
isDraggable = false,
|
|
38
|
+
tableHeader
|
|
34
39
|
} = content;
|
|
35
40
|
const itemsView = isDraggable && items.length > 1 ? /*#__PURE__*/_react.default.createElement(_draggableList.default, {
|
|
36
41
|
items: items.map(item => _extends({}, item, {
|
|
@@ -46,11 +51,22 @@ const buildListItemsView = (content, ariaLabel, selectMultiple) => {
|
|
|
46
51
|
order: null,
|
|
47
52
|
contentType: itemType
|
|
48
53
|
}))));
|
|
49
|
-
|
|
54
|
+
const tableHeaderView = !(0, _isNil.default)(tableHeader) && !(0, _isEmpty.default)(tableHeader) ? /*#__PURE__*/_react.default.createElement("div", {
|
|
55
|
+
className: _style.default.tableHeaderWrapper
|
|
56
|
+
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
57
|
+
className: _style.default.dataColumnsWrapper
|
|
58
|
+
}, tableHeader.map((tableHeaderItem, index) => /*#__PURE__*/_react.default.createElement("div", {
|
|
59
|
+
key: `tableHeadeColumn-key-${index}`,
|
|
60
|
+
className: _style.default.tableHeaderItem,
|
|
61
|
+
"data-name": `tableHeader-${index}`
|
|
62
|
+
}, tableHeaderItem))), /*#__PURE__*/_react.default.createElement("div", {
|
|
63
|
+
className: _style.default.settings
|
|
64
|
+
}, '')) : null;
|
|
65
|
+
return /*#__PURE__*/_react.default.createElement("div", null, tableHeaderView, /*#__PURE__*/_react.default.createElement("ul", {
|
|
50
66
|
className: !selectMultiple ? _style.default.list : _style.default.listWithSelectMultiple,
|
|
51
67
|
"aria-label": ariaLabel,
|
|
52
68
|
"data-name": 'content-list'
|
|
53
|
-
}, itemsView);
|
|
69
|
+
}, itemsView));
|
|
54
70
|
};
|
|
55
71
|
|
|
56
72
|
const buildContentView = (content, ariaLabel, selectMultiple) => {
|
|
@@ -101,7 +117,8 @@ ListItems.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
101
117
|
type: _propTypes.default.oneOf(['list']),
|
|
102
118
|
itemType: _propTypes.default.string,
|
|
103
119
|
onDrop: _propTypes.default.func,
|
|
104
|
-
isDraggable: _propTypes.default.bool
|
|
120
|
+
isDraggable: _propTypes.default.bool,
|
|
121
|
+
tableHeader: _propTypes.default.arrayOf(_propTypes.default.string)
|
|
105
122
|
}), _propTypes.default.shape(_extends({}, _expandibleActionableTable.default.propTypes, {
|
|
106
123
|
type: _propTypes.default.oneOf(['expandible-actionable-table'])
|
|
107
124
|
}))]),
|