@coorpacademy/components 11.35.2-alpha.4 → 11.35.2-forcedeploy.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/atom/button-link/index.js +1 -1
- package/es/atom/button-link/index.js.map +1 -1
- package/es/atom/button-link/style.css +2 -2
- package/es/atom/icon/index.d.ts +35 -17
- package/es/atom/icon/index.d.ts.map +1 -1
- package/es/atom/icon/index.js +32 -15
- package/es/atom/icon/index.js.map +1 -1
- package/es/atom/radio-with-title/index.d.ts +13 -3
- package/es/atom/radio-with-title/index.d.ts.map +1 -1
- package/es/atom/radio-with-title/types.d.ts +13 -2
- package/es/atom/radio-with-title/types.d.ts.map +1 -1
- package/es/atom/status-item/index.native.js +1 -1
- package/es/atom/status-item/index.native.js.map +1 -1
- package/es/atom/tag/index.d.ts +12 -1
- package/es/atom/tag/style.css +1 -0
- package/es/atom/title/index.d.ts +13 -2
- package/es/molecule/banner/style.css +1 -0
- package/es/molecule/base-modal/style.css +0 -1
- package/es/molecule/bulk-progress-bar/index.js +2 -2
- package/es/molecule/bulk-progress-bar/index.js.map +1 -1
- package/es/molecule/certification-card/index.js +1 -1
- package/es/molecule/certification-card/index.js.map +1 -1
- package/es/molecule/cm-popin/types.d.ts +28 -7
- package/es/molecule/cm-popin/types.d.ts.map +1 -1
- package/es/molecule/cm-popin/types.js +1 -1
- package/es/molecule/cm-popin/types.js.map +1 -1
- package/es/molecule/dashboard/cards-list/index.d.ts.map +1 -1
- package/es/molecule/dashboard/cards-list/index.js +2 -0
- package/es/molecule/dashboard/cards-list/index.js.map +1 -1
- package/es/molecule/learner-skill-card/index.d.ts +25 -40
- package/es/molecule/learner-skill-card/index.d.ts.map +1 -1
- package/es/molecule/learner-skill-card/index.js +95 -96
- package/es/molecule/learner-skill-card/index.js.map +1 -1
- package/es/molecule/learner-skill-card/prop-types.d.ts +37 -0
- package/es/molecule/learner-skill-card/prop-types.d.ts.map +1 -0
- package/es/molecule/learner-skill-card/prop-types.js +20 -0
- package/es/molecule/learner-skill-card/prop-types.js.map +1 -0
- package/es/molecule/learner-skill-card/style.css +62 -41
- package/es/molecule/learning-priority-modal/style.css +3 -2
- package/es/molecule/progress-wrapper/index.js +1 -1
- package/es/molecule/progress-wrapper/index.js.map +1 -1
- package/es/molecule/skills-chart-side-information-item/index.d.ts +1 -1
- package/es/molecule/skills-chart-side-information-panel/index.d.ts +1 -1
- package/es/molecule/title-and-checkbox-wrapper/index.d.ts +13 -2
- package/es/molecule/title-radio-wrapper/index.d.ts +13 -3
- package/es/molecule/title-radio-wrapper/index.d.ts.map +1 -1
- package/es/molecule/title-radio-wrapper/types.d.ts +13 -2
- package/es/molecule/title-radio-wrapper/types.d.ts.map +1 -1
- package/es/organism/cards-grid/index.d.ts +48 -10
- package/es/organism/cards-grid/index.d.ts.map +1 -1
- package/es/organism/cards-grid/index.js +3 -2
- package/es/organism/cards-grid/index.js.map +1 -1
- package/es/organism/content-skill-modal/index.d.ts +13 -3
- package/es/organism/content-skill-modal/index.d.ts.map +1 -1
- package/es/organism/content-skill-modal/types.d.ts +12 -2
- package/es/organism/content-skill-modal/types.d.ts.map +1 -1
- package/es/organism/header-with-actions/index.d.ts +8 -22
- package/es/organism/header-with-actions/index.d.ts.map +1 -1
- package/es/organism/header-with-actions/index.js +7 -85
- package/es/organism/header-with-actions/index.js.map +1 -1
- package/es/organism/header-with-actions/types.d.ts +13 -44
- package/es/organism/header-with-actions/types.d.ts.map +1 -1
- package/es/organism/header-with-actions/types.js +6 -22
- package/es/organism/header-with-actions/types.js.map +1 -1
- package/es/organism/list-item/index.js +5 -5
- package/es/organism/list-item/index.js.map +1 -1
- package/es/organism/list-item/style.css +23 -17
- package/es/organism/list-items/index.d.ts +13 -2
- package/es/organism/mooc-header/index.d.ts.map +1 -1
- package/es/organism/mooc-header/index.js +9 -7
- package/es/organism/mooc-header/index.js.map +1 -1
- package/es/organism/mooc-header/style.css +22 -18
- package/es/organism/rewards-form/index.d.ts +13 -2
- package/es/organism/select-opponents/index.d.ts +13 -3
- package/es/organism/select-opponents/index.d.ts.map +1 -1
- package/es/organism/select-opponents/types.d.ts +13 -2
- package/es/organism/select-opponents/types.d.ts.map +1 -1
- package/es/organism/sidebar/index.d.ts +2 -2
- package/es/organism/skill-edition/index.d.ts +37 -7
- package/es/organism/skill-edition/index.d.ts.map +1 -1
- package/es/organism/skill-edition/types.d.ts +37 -6
- package/es/organism/skill-edition/types.d.ts.map +1 -1
- package/es/organism/title-and-input/index.d.ts +25 -5
- package/es/organism/title-and-input/index.d.ts.map +1 -1
- package/es/organism/title-and-input/types.d.ts +24 -4
- package/es/organism/title-and-input/types.d.ts.map +1 -1
- package/es/organism/wizard-contents/index.d.ts +13 -2
- package/es/template/app-player/loading/index.d.ts +27 -6
- package/es/template/app-player/player/index.d.ts +53 -12
- package/es/template/app-player/player/slides/index.d.ts +27 -6
- package/es/template/app-player/player/slides/index.d.ts.map +1 -1
- package/es/template/app-player/popin-correction/index.d.ts +26 -6
- package/es/template/app-player/popin-correction/index.d.ts.map +1 -1
- package/es/template/app-player/popin-end/index.d.ts +27 -6
- package/es/template/app-review/index.d.ts +27 -7
- package/es/template/app-review/index.d.ts.map +1 -1
- package/es/template/app-review/player/prop-types.d.ts +27 -6
- package/es/template/app-review/player/prop-types.d.ts.map +1 -1
- package/es/template/app-review/prop-types.d.ts +27 -6
- package/es/template/app-review/prop-types.d.ts.map +1 -1
- package/es/template/back-office/brand-update/index.d.ts +95 -38
- package/es/template/back-office/brand-update/index.d.ts.map +1 -1
- package/es/template/back-office/brand-update/index.js +2 -4
- package/es/template/back-office/brand-update/index.js.map +1 -1
- package/es/template/back-office/brand-update/style.css +1 -4
- package/es/template/back-office/brand-update/utils.d.ts +11 -39
- package/es/template/back-office/brand-update/utils.js +0 -19
- package/es/template/back-office/brand-update/utils.js.map +1 -1
- package/es/template/common/dashboard/index.d.ts +53 -12
- package/es/template/common/search-page/index.d.ts +27 -6
- package/es/template/external-course/index.d.ts +27 -6
- package/es/template/my-learning/index.d.ts +0 -1
- package/es/template/my-learning/index.d.ts.map +1 -1
- package/es/template/my-learning/index.js +26 -22
- package/es/template/my-learning/index.js.map +1 -1
- package/es/template/my-learning/style.css +9 -6
- package/es/template/skill-detail/all-courses.css +3 -2
- package/es/template/skill-detail/all-courses.d.ts +52 -17
- package/es/template/skill-detail/all-courses.d.ts.map +1 -1
- package/es/template/skill-detail/all-courses.js +12 -11
- package/es/template/skill-detail/all-courses.js.map +1 -1
- package/es/template/skill-detail/continue-learning.css +7 -2
- package/es/template/skill-detail/continue-learning.d.ts +25 -12
- package/es/template/skill-detail/continue-learning.d.ts.map +1 -1
- package/es/template/skill-detail/continue-learning.js.map +1 -1
- package/es/template/skill-detail/index.d.ts +81 -71
- package/es/template/skill-detail/index.d.ts.map +1 -1
- package/es/template/skill-detail/index.js +91 -58
- package/es/template/skill-detail/index.js.map +1 -1
- package/es/template/skill-detail/style.css +97 -39
- package/es/variables/colors.css +10 -1
- package/es/variables/colors.d.ts +13 -3
- package/es/variables/colors.d.ts.map +1 -1
- package/es/variables/colors.js +13 -3
- package/es/variables/colors.js.map +1 -1
- package/es/variables/theme.native.js +1 -1
- package/es/variables/theme.native.js.map +1 -1
- package/lib/atom/button-link/index.js +1 -1
- package/lib/atom/button-link/index.js.map +1 -1
- package/lib/atom/button-link/style.css +2 -2
- package/lib/atom/icon/index.d.ts +35 -17
- package/lib/atom/icon/index.d.ts.map +1 -1
- package/lib/atom/icon/index.js +34 -18
- package/lib/atom/icon/index.js.map +1 -1
- package/lib/atom/radio-with-title/index.d.ts +13 -3
- package/lib/atom/radio-with-title/index.d.ts.map +1 -1
- package/lib/atom/radio-with-title/types.d.ts +13 -2
- package/lib/atom/radio-with-title/types.d.ts.map +1 -1
- package/lib/atom/status-item/index.native.js +1 -1
- package/lib/atom/status-item/index.native.js.map +1 -1
- package/lib/atom/tag/index.d.ts +12 -1
- package/lib/atom/tag/style.css +1 -0
- package/lib/atom/title/index.d.ts +13 -2
- package/lib/molecule/banner/style.css +1 -0
- package/lib/molecule/base-modal/style.css +0 -1
- package/lib/molecule/bulk-progress-bar/index.js +2 -2
- package/lib/molecule/bulk-progress-bar/index.js.map +1 -1
- package/lib/molecule/certification-card/index.js +1 -1
- package/lib/molecule/certification-card/index.js.map +1 -1
- package/lib/molecule/cm-popin/types.d.ts +28 -7
- package/lib/molecule/cm-popin/types.d.ts.map +1 -1
- package/lib/molecule/cm-popin/types.js +1 -1
- package/lib/molecule/cm-popin/types.js.map +1 -1
- package/lib/molecule/dashboard/cards-list/index.d.ts.map +1 -1
- package/lib/molecule/dashboard/cards-list/index.js +2 -0
- package/lib/molecule/dashboard/cards-list/index.js.map +1 -1
- package/lib/molecule/learner-skill-card/index.d.ts +25 -40
- package/lib/molecule/learner-skill-card/index.d.ts.map +1 -1
- package/lib/molecule/learner-skill-card/index.js +98 -96
- package/lib/molecule/learner-skill-card/index.js.map +1 -1
- package/lib/molecule/learner-skill-card/prop-types.d.ts +37 -0
- package/lib/molecule/learner-skill-card/prop-types.d.ts.map +1 -0
- package/lib/molecule/learner-skill-card/prop-types.js +25 -0
- package/lib/molecule/learner-skill-card/prop-types.js.map +1 -0
- package/lib/molecule/learner-skill-card/style.css +62 -41
- package/lib/molecule/learning-priority-modal/style.css +3 -2
- package/lib/molecule/progress-wrapper/index.js +1 -1
- package/lib/molecule/progress-wrapper/index.js.map +1 -1
- package/lib/molecule/skills-chart-side-information-item/index.d.ts +1 -1
- package/lib/molecule/skills-chart-side-information-panel/index.d.ts +1 -1
- package/lib/molecule/title-and-checkbox-wrapper/index.d.ts +13 -2
- package/lib/molecule/title-radio-wrapper/index.d.ts +13 -3
- package/lib/molecule/title-radio-wrapper/index.d.ts.map +1 -1
- package/lib/molecule/title-radio-wrapper/types.d.ts +13 -2
- package/lib/molecule/title-radio-wrapper/types.d.ts.map +1 -1
- package/lib/organism/cards-grid/index.d.ts +48 -10
- package/lib/organism/cards-grid/index.d.ts.map +1 -1
- package/lib/organism/cards-grid/index.js +3 -2
- package/lib/organism/cards-grid/index.js.map +1 -1
- package/lib/organism/content-skill-modal/index.d.ts +13 -3
- package/lib/organism/content-skill-modal/index.d.ts.map +1 -1
- package/lib/organism/content-skill-modal/types.d.ts +12 -2
- package/lib/organism/content-skill-modal/types.d.ts.map +1 -1
- package/lib/organism/header-with-actions/index.d.ts +8 -22
- package/lib/organism/header-with-actions/index.d.ts.map +1 -1
- package/lib/organism/header-with-actions/index.js +7 -85
- package/lib/organism/header-with-actions/index.js.map +1 -1
- package/lib/organism/header-with-actions/types.d.ts +13 -44
- package/lib/organism/header-with-actions/types.d.ts.map +1 -1
- package/lib/organism/header-with-actions/types.js +6 -22
- package/lib/organism/header-with-actions/types.js.map +1 -1
- package/lib/organism/list-item/index.js +5 -5
- package/lib/organism/list-item/index.js.map +1 -1
- package/lib/organism/list-item/style.css +23 -17
- package/lib/organism/list-items/index.d.ts +13 -2
- package/lib/organism/mooc-header/index.d.ts.map +1 -1
- package/lib/organism/mooc-header/index.js +8 -6
- package/lib/organism/mooc-header/index.js.map +1 -1
- package/lib/organism/mooc-header/style.css +22 -18
- package/lib/organism/rewards-form/index.d.ts +13 -2
- package/lib/organism/select-opponents/index.d.ts +13 -3
- package/lib/organism/select-opponents/index.d.ts.map +1 -1
- package/lib/organism/select-opponents/types.d.ts +13 -2
- package/lib/organism/select-opponents/types.d.ts.map +1 -1
- package/lib/organism/sidebar/index.d.ts +2 -2
- package/lib/organism/skill-edition/index.d.ts +37 -7
- package/lib/organism/skill-edition/index.d.ts.map +1 -1
- package/lib/organism/skill-edition/types.d.ts +37 -6
- package/lib/organism/skill-edition/types.d.ts.map +1 -1
- package/lib/organism/title-and-input/index.d.ts +25 -5
- package/lib/organism/title-and-input/index.d.ts.map +1 -1
- package/lib/organism/title-and-input/types.d.ts +24 -4
- package/lib/organism/title-and-input/types.d.ts.map +1 -1
- package/lib/organism/wizard-contents/index.d.ts +13 -2
- package/lib/template/app-player/loading/index.d.ts +27 -6
- package/lib/template/app-player/player/index.d.ts +53 -12
- package/lib/template/app-player/player/slides/index.d.ts +27 -6
- package/lib/template/app-player/player/slides/index.d.ts.map +1 -1
- package/lib/template/app-player/popin-correction/index.d.ts +26 -6
- package/lib/template/app-player/popin-correction/index.d.ts.map +1 -1
- package/lib/template/app-player/popin-end/index.d.ts +27 -6
- package/lib/template/app-review/index.d.ts +27 -7
- package/lib/template/app-review/index.d.ts.map +1 -1
- package/lib/template/app-review/player/prop-types.d.ts +27 -6
- package/lib/template/app-review/player/prop-types.d.ts.map +1 -1
- package/lib/template/app-review/prop-types.d.ts +27 -6
- package/lib/template/app-review/prop-types.d.ts.map +1 -1
- package/lib/template/back-office/brand-update/index.d.ts +95 -38
- package/lib/template/back-office/brand-update/index.d.ts.map +1 -1
- package/lib/template/back-office/brand-update/index.js +2 -4
- package/lib/template/back-office/brand-update/index.js.map +1 -1
- package/lib/template/back-office/brand-update/style.css +1 -4
- package/lib/template/back-office/brand-update/utils.d.ts +11 -39
- package/lib/template/back-office/brand-update/utils.js +0 -19
- package/lib/template/back-office/brand-update/utils.js.map +1 -1
- package/lib/template/common/dashboard/index.d.ts +53 -12
- package/lib/template/common/search-page/index.d.ts +27 -6
- package/lib/template/external-course/index.d.ts +27 -6
- package/lib/template/my-learning/index.d.ts +0 -1
- package/lib/template/my-learning/index.d.ts.map +1 -1
- package/lib/template/my-learning/index.js +26 -22
- package/lib/template/my-learning/index.js.map +1 -1
- package/lib/template/my-learning/style.css +9 -6
- package/lib/template/skill-detail/all-courses.css +3 -2
- package/lib/template/skill-detail/all-courses.d.ts +52 -17
- package/lib/template/skill-detail/all-courses.d.ts.map +1 -1
- package/lib/template/skill-detail/all-courses.js +11 -11
- package/lib/template/skill-detail/all-courses.js.map +1 -1
- package/lib/template/skill-detail/continue-learning.css +7 -2
- package/lib/template/skill-detail/continue-learning.d.ts +25 -12
- package/lib/template/skill-detail/continue-learning.d.ts.map +1 -1
- package/lib/template/skill-detail/continue-learning.js.map +1 -1
- package/lib/template/skill-detail/index.d.ts +81 -71
- package/lib/template/skill-detail/index.d.ts.map +1 -1
- package/lib/template/skill-detail/index.js +91 -58
- package/lib/template/skill-detail/index.js.map +1 -1
- package/lib/template/skill-detail/style.css +97 -39
- package/lib/variables/colors.css +10 -1
- package/lib/variables/colors.d.ts +13 -3
- package/lib/variables/colors.d.ts.map +1 -1
- package/lib/variables/colors.js +13 -3
- package/lib/variables/colors.js.map +1 -1
- package/lib/variables/theme.native.js +1 -1
- package/lib/variables/theme.native.js.map +1 -1
- package/locales/cs/global.json +1 -0
- package/locales/en/global.json +1 -0
- package/locales/hr/global.json +1 -0
- package/locales/it/global.json +1 -0
- package/locales/ko/global.json +1 -0
- package/locales/ru/global.json +1 -0
- package/package.json +2 -2
- package/locales/.mtslconfig.json +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["React","PropTypes","Card","Loader","style","CardsGrid","props","list","customStyle","loading","loader","createElement","className","cards","_map","cardProps","card","key","defaultStyle","propTypes","process","env","NODE_ENV","arrayOf","shape","objectOf","string","bool"],"sources":["../../../src/organism/cards-grid/index.
|
|
1
|
+
{"version":3,"file":"index.js","names":["React","PropTypes","Card","Loader","style","CardsGrid","props","list","customStyle","loading","loader","createElement","className","cards","_map","cardProps","card","key","defaultStyle","propTypes","process","env","NODE_ENV","arrayOf","shape","objectOf","string","bool"],"sources":["../../../src/organism/cards-grid/index.tsx"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport {map} from 'lodash/fp';\nimport Card from '../../molecule/card';\nimport Loader from '../../atom/loader';\nimport style from './style.css';\n\nexport interface CardProps {\n key?: React.Key;\n badge?: string;\n image?: string;\n disabled?: boolean;\n adaptiv?: boolean;\n type?: string;\n title?: string;\n author?: string;\n certifiedAuthor?: boolean;\n customer?: Record<string, unknown>;\n progress: number;\n favorite?: boolean;\n addFavoriteToolTip?: string;\n removeFavoriteToolTip?: string;\n onClick?: (e: React.MouseEvent<HTMLDivElement>) => void;\n onFavoriteClick?: () => void;\n isSelected?: boolean;\n notification?: Record<string, unknown>;\n badgeCategory?: string;\n badgeLabel?: string;\n theme?: 'default' | 'coorpmanager';\n disabledContent?: string;\n 'aria-label'?: string;\n 'background-aria-label'?: string;\n 'favorite-aria-label'?: string;\n 'selectable-aria-label'?: string;\n 'customer-aria-label'?: string;\n 'badge-aria-label'?: string;\n 'disabled-aria-label'?: string;\n 'card-content-aria-label'?: string;\n}\n\nexport interface CardsGridProps {\n list: CardProps[];\n customStyle?: Record<string, string>;\n loading?: boolean;\n}\n\nconst CardsGrid = (props: CardsGridProps) => {\n const {list = [], customStyle = {}, loading = false} = props;\n\n const loader = loading ? (\n <div className={style.loader}>\n <Loader />\n </div>\n ) : null;\n\n const cards = map(cardProps => {\n return (\n <div data-name=\"cardGrid\" className={style.card} key={cardProps.key}>\n <Card {...cardProps} />\n </div>\n );\n }, list);\n\n return (\n <div className={style.defaultStyle} style={customStyle}>\n {cards}\n {loader}\n </div>\n );\n};\n\nCardsGrid.propTypes = {\n // @ts-expect-error component is not typed & wrapped into memo\n list: PropTypes.arrayOf(PropTypes.shape(Card.propTypes)),\n customStyle: PropTypes.objectOf(PropTypes.string),\n loading: PropTypes.bool\n};\n\nexport default CardsGrid;\n"],"mappings":";AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,SAAS,MAAM,YAAY;AAElC,OAAOC,IAAI,MAAM,qBAAqB;AACtC,OAAOC,MAAM,MAAM,mBAAmB;AACtC,OAAOC,KAAK,MAAM,aAAa;AAyC/B,MAAMC,SAAS,GAAIC,KAAqB,IAAK;EAC3C,MAAM;IAACC,IAAI,GAAG,EAAE;IAAEC,WAAW,GAAG,CAAC,CAAC;IAAEC,OAAO,GAAG;EAAK,CAAC,GAAGH,KAAK;EAE5D,MAAMI,MAAM,GAAGD,OAAO,gBACpBT,KAAA,CAAAW,aAAA;IAAKC,SAAS,EAAER,KAAK,CAACM;EAAO,gBAC3BV,KAAA,CAAAW,aAAA,CAACR,MAAM,MAAE,CACN,CAAC,GACJ,IAAI;EAER,MAAMU,KAAK,GAAGC,IAAA,CAAIC,SAAS,IAAI;IAC7B,oBACEf,KAAA,CAAAW,aAAA;MAAK,aAAU,UAAU;MAACC,SAAS,EAAER,KAAK,CAACY,IAAK;MAACC,GAAG,EAAEF,SAAS,CAACE;IAAI,gBAClEjB,KAAA,CAAAW,aAAA,CAACT,IAAI,EAAKa,SAAY,CACnB,CAAC;EAEV,CAAC,EAAER,IAAI,CAAC;EAER,oBACEP,KAAA,CAAAW,aAAA;IAAKC,SAAS,EAAER,KAAK,CAACc,YAAa;IAACd,KAAK,EAAEI;EAAY,GACpDK,KAAK,EACLH,MACE,CAAC;AAEV,CAAC;AAEDL,SAAS,CAACc,SAAS,GAAAC,OAAA,CAAAC,GAAA,CAAAC,QAAA,oBAAG;EACpB;EACAf,IAAI,EAAEN,SAAS,CAACsB,OAAO,CAACtB,SAAS,CAACuB,KAAK,CAACtB,IAAI,CAACiB,SAAS,CAAC,CAAC;EACxDX,WAAW,EAAEP,SAAS,CAACwB,QAAQ,CAACxB,SAAS,CAACyB,MAAM,CAAC;EACjDjB,OAAO,EAAER,SAAS,CAAC0B;AACrB,CAAC;AAED,eAAetB,SAAS","ignoreList":[]}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { ContentSkillModalProps } from './types';
|
|
3
3
|
declare const ContentSkillModal: {
|
|
4
4
|
(props: ContentSkillModalProps): JSX.Element | null;
|
|
@@ -408,7 +408,7 @@ declare const ContentSkillModal: {
|
|
|
408
408
|
'data-name': import("prop-types").Requireable<string>;
|
|
409
409
|
titleSize: import("prop-types").Requireable<string>;
|
|
410
410
|
subtitleSize: import("prop-types").Requireable<string>;
|
|
411
|
-
icon: import("prop-types").Requireable<import("prop-types").InferProps<any
|
|
411
|
+
icon: import("prop-types").Requireable<import("prop-types").InferProps<import("prop-types").ValidationMap<any>>>;
|
|
412
412
|
tag: import("prop-types").Requireable<import("prop-types").InferProps<{
|
|
413
413
|
label: import("prop-types").Requireable<string>;
|
|
414
414
|
type: import("prop-types").Requireable<string>;
|
|
@@ -416,7 +416,17 @@ declare const ContentSkillModal: {
|
|
|
416
416
|
customStyle: import("prop-types").Requireable<{
|
|
417
417
|
[x: string]: NonNullable<string | number | null | undefined> | null | undefined;
|
|
418
418
|
}>;
|
|
419
|
-
icon: import("prop-types").Requireable<import("prop-types").InferProps<
|
|
419
|
+
icon: import("prop-types").Requireable<import("prop-types").InferProps<{
|
|
420
|
+
position: import("prop-types").Requireable<string>;
|
|
421
|
+
iconName?: React.Validator<string> | undefined;
|
|
422
|
+
iconColor?: React.Validator<string | null | undefined> | undefined;
|
|
423
|
+
backgroundColor?: React.Validator<string | null | undefined> | undefined;
|
|
424
|
+
gradientBackground?: React.Validator<boolean | null | undefined> | undefined;
|
|
425
|
+
borderRadius?: React.Validator<string | null | undefined> | undefined;
|
|
426
|
+
preset?: React.Validator<string | null | undefined> | undefined;
|
|
427
|
+
size?: React.Validator<import("../../atom/icon").IconSize | null | undefined> | undefined;
|
|
428
|
+
customStyle?: React.Validator<React.CSSProperties | null | undefined> | undefined;
|
|
429
|
+
}>>;
|
|
420
430
|
}>>;
|
|
421
431
|
button: import("prop-types").Requireable<import("prop-types").InferProps<{
|
|
422
432
|
type: import("prop-types").Requireable<string>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/organism/content-skill-modal/index.tsx"],"names":[],"mappings":";
|
|
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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4DvD,CAAC;AAQF,eAAe,iBAAiB,CAAC"}
|
|
@@ -405,7 +405,7 @@ declare const ContentSkillModalPropTypes: {
|
|
|
405
405
|
'data-name': PropTypes.Requireable<string>;
|
|
406
406
|
titleSize: PropTypes.Requireable<string>;
|
|
407
407
|
subtitleSize: PropTypes.Requireable<string>;
|
|
408
|
-
icon: PropTypes.Requireable<PropTypes.InferProps<any
|
|
408
|
+
icon: PropTypes.Requireable<PropTypes.InferProps<PropTypes.ValidationMap<any>>>;
|
|
409
409
|
tag: PropTypes.Requireable<PropTypes.InferProps<{
|
|
410
410
|
label: PropTypes.Requireable<string>;
|
|
411
411
|
type: PropTypes.Requireable<string>;
|
|
@@ -413,7 +413,17 @@ declare const ContentSkillModalPropTypes: {
|
|
|
413
413
|
customStyle: PropTypes.Requireable<{
|
|
414
414
|
[x: string]: NonNullable<string | number | null | undefined> | null | undefined;
|
|
415
415
|
}>;
|
|
416
|
-
icon: PropTypes.Requireable<PropTypes.InferProps<
|
|
416
|
+
icon: PropTypes.Requireable<PropTypes.InferProps<{
|
|
417
|
+
position: PropTypes.Requireable<string>;
|
|
418
|
+
iconName?: import("react").Validator<string> | undefined;
|
|
419
|
+
iconColor?: import("react").Validator<string | null | undefined> | undefined;
|
|
420
|
+
backgroundColor?: import("react").Validator<string | null | undefined> | undefined;
|
|
421
|
+
gradientBackground?: import("react").Validator<boolean | null | undefined> | undefined;
|
|
422
|
+
borderRadius?: import("react").Validator<string | null | undefined> | undefined;
|
|
423
|
+
preset?: import("react").Validator<string | null | undefined> | undefined;
|
|
424
|
+
size?: import("react").Validator<import("../../atom/icon").IconSize | null | undefined> | undefined;
|
|
425
|
+
customStyle?: import("react").Validator<import("react").CSSProperties | null | undefined> | undefined;
|
|
426
|
+
}>>;
|
|
417
427
|
}>>;
|
|
418
428
|
button: PropTypes.Requireable<PropTypes.InferProps<{
|
|
419
429
|
type: PropTypes.Requireable<string>;
|
|
@@ -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
|
|
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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Props): JSX.Element;
|
|
5
5
|
propTypes: {
|
|
6
6
|
closeButton: import("prop-types").Requireable<import("prop-types").InferProps<{
|
|
7
|
-
|
|
7
|
+
size: import("prop-types").Validator<string>;
|
|
8
|
+
icon: import("prop-types").Validator<string>;
|
|
9
|
+
'data-name': import("prop-types").Validator<string>;
|
|
10
|
+
'aria-label': import("prop-types").Validator<string>;
|
|
8
11
|
onClick: import("prop-types").Validator<(...args: any[]) => any>;
|
|
9
12
|
}>>;
|
|
10
13
|
title: import("prop-types").Validator<string>;
|
|
@@ -17,7 +20,7 @@ declare const HeaderWithActions: {
|
|
|
17
20
|
display: import("prop-types").Validator<boolean>;
|
|
18
21
|
label: import("prop-types").Requireable<string>;
|
|
19
22
|
}>>>;
|
|
20
|
-
|
|
23
|
+
bulletPointMenuButton: import("prop-types").Requireable<import("prop-types").InferProps<{
|
|
21
24
|
'data-name': import("prop-types").Requireable<string>;
|
|
22
25
|
disabled: import("prop-types").Requireable<boolean>;
|
|
23
26
|
buttonAriaLabel: import("prop-types").Requireable<string>;
|
|
@@ -50,18 +53,8 @@ declare const HeaderWithActions: {
|
|
|
50
53
|
onClick: import("prop-types").Requireable<(...args: any[]) => any>;
|
|
51
54
|
menuButtonClassName: import("prop-types").Requireable<string>;
|
|
52
55
|
isBulkMenu: import("prop-types").Requireable<boolean>;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
dataName: import("prop-types").Requireable<string>;
|
|
56
|
-
label: import("prop-types").Validator<string>;
|
|
57
|
-
iconName: import("prop-types").Validator<string>;
|
|
58
|
-
iconColor: import("prop-types").Validator<string>;
|
|
59
|
-
onClick: import("prop-types").Validator<(...args: any[]) => any>;
|
|
60
|
-
}> | null | undefined)[]>;
|
|
61
|
-
onClick: import("prop-types").Validator<(...args: any[]) => any>;
|
|
62
|
-
buttonAriaLabel: import("prop-types").Requireable<string>;
|
|
63
|
-
}> | null | undefined>>;
|
|
64
|
-
actionButtons: import("prop-types").Validator<NonNullable<NonNullable<(import("prop-types").InferProps<{
|
|
56
|
+
}>>;
|
|
57
|
+
actionButtons: import("prop-types").Validator<(import("prop-types").InferProps<{
|
|
65
58
|
type: import("prop-types").Requireable<string>;
|
|
66
59
|
usage: import("prop-types").Requireable<string>;
|
|
67
60
|
label: import("prop-types").Requireable<string>;
|
|
@@ -97,14 +90,7 @@ declare const HeaderWithActions: {
|
|
|
97
90
|
customStyle: import("prop-types").Requireable<{
|
|
98
91
|
[x: string]: NonNullable<string | number | null | undefined> | null | undefined;
|
|
99
92
|
}>;
|
|
100
|
-
}> | null | undefined)[]
|
|
101
|
-
type: import("prop-types").Validator<string>;
|
|
102
|
-
label: import("prop-types").Validator<string>;
|
|
103
|
-
onClick: import("prop-types").Validator<(...args: any[]) => any>;
|
|
104
|
-
disabled: import("prop-types").Requireable<boolean>;
|
|
105
|
-
iconName: import("prop-types").Validator<string>;
|
|
106
|
-
iconColor: import("prop-types").Validator<string>;
|
|
107
|
-
}> | null | undefined)[] | null | undefined>>>;
|
|
93
|
+
}> | null | undefined)[]>;
|
|
108
94
|
};
|
|
109
95
|
};
|
|
110
96
|
export default HeaderWithActions;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/organism/header-with-actions/index.tsx"],"names":[],"mappings":";AAQA,OAAmC,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/organism/header-with-actions/index.tsx"],"names":[],"mappings":";AAQA,OAAmC,EAAC,sBAAsB,EAAC,MAAM,SAAS,CAAC;AAO3E,QAAA,MAAM,iBAAiB;YAAW,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgCvD,CAAC;AAIF,eAAe,iBAAiB,CAAC"}
|
|
@@ -13,78 +13,6 @@ const getDataName = suffix => `header-with-actions-${suffix}`;
|
|
|
13
13
|
const uncappedMap = map.convert({
|
|
14
14
|
cap: false
|
|
15
15
|
});
|
|
16
|
-
const buildCloseButton = ({
|
|
17
|
-
onClick,
|
|
18
|
-
ariaLabel
|
|
19
|
-
}) => {
|
|
20
|
-
return {
|
|
21
|
-
size: 'default',
|
|
22
|
-
icon: 'close',
|
|
23
|
-
'data-name': 'close-button',
|
|
24
|
-
'aria-label': ariaLabel,
|
|
25
|
-
onClick
|
|
26
|
-
};
|
|
27
|
-
};
|
|
28
|
-
const buildButtonMenu = ({
|
|
29
|
-
dataName,
|
|
30
|
-
label,
|
|
31
|
-
iconName,
|
|
32
|
-
iconColor,
|
|
33
|
-
onClick
|
|
34
|
-
}) => {
|
|
35
|
-
return {
|
|
36
|
-
'data-name': dataName,
|
|
37
|
-
label,
|
|
38
|
-
buttonLinkType: 'tertiary',
|
|
39
|
-
icon: {
|
|
40
|
-
position: 'left',
|
|
41
|
-
faIcon: {
|
|
42
|
-
name: iconName,
|
|
43
|
-
color: iconColor,
|
|
44
|
-
size: 14,
|
|
45
|
-
customStyle: {
|
|
46
|
-
padding: 0
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
},
|
|
50
|
-
onClick,
|
|
51
|
-
type: 'defaultLeft'
|
|
52
|
-
};
|
|
53
|
-
};
|
|
54
|
-
const buildActionButton = ({
|
|
55
|
-
type,
|
|
56
|
-
label,
|
|
57
|
-
onClick,
|
|
58
|
-
disabled,
|
|
59
|
-
iconName,
|
|
60
|
-
iconColor
|
|
61
|
-
}) => {
|
|
62
|
-
return {
|
|
63
|
-
type,
|
|
64
|
-
label,
|
|
65
|
-
onClick,
|
|
66
|
-
disabled,
|
|
67
|
-
icon: {
|
|
68
|
-
position: 'left',
|
|
69
|
-
faIcon: {
|
|
70
|
-
name: iconName,
|
|
71
|
-
color: iconColor,
|
|
72
|
-
size: 14,
|
|
73
|
-
customStyle: {
|
|
74
|
-
padding: 0
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
},
|
|
78
|
-
customStyle: {
|
|
79
|
-
fontWeight: '600',
|
|
80
|
-
borderRadius: '12px',
|
|
81
|
-
padding: '0 8px 0 16px'
|
|
82
|
-
}
|
|
83
|
-
};
|
|
84
|
-
};
|
|
85
|
-
const isButtonActionProps = action => {
|
|
86
|
-
return typeof action.iconName === 'string' && typeof action.iconColor === 'string';
|
|
87
|
-
};
|
|
88
16
|
const HeaderWithActions = props => {
|
|
89
17
|
const {
|
|
90
18
|
closeButton,
|
|
@@ -94,23 +22,13 @@ const HeaderWithActions = props => {
|
|
|
94
22
|
bulletPointMenuButton,
|
|
95
23
|
actionButtons
|
|
96
24
|
} = props;
|
|
97
|
-
const renderedActionButtons = uncappedMap((action, key) => {
|
|
98
|
-
return isButtonActionProps(action) ? /*#__PURE__*/React.createElement(ButtonLink, _extends({}, buildActionButton(action), {
|
|
99
|
-
key: key
|
|
100
|
-
})) : /*#__PURE__*/React.createElement(ButtonLink, _extends({}, action, {
|
|
101
|
-
key: key
|
|
102
|
-
}));
|
|
103
|
-
}, actionButtons);
|
|
104
25
|
return /*#__PURE__*/React.createElement("div", {
|
|
105
26
|
className: style.headerWrapper,
|
|
106
27
|
"data-name": getDataName('wrapper')
|
|
107
28
|
}, /*#__PURE__*/React.createElement("div", {
|
|
108
29
|
className: style.titleAndButtonWrapper,
|
|
109
30
|
"data-name": getDataName('title-and-button-wrapper')
|
|
110
|
-
}, /*#__PURE__*/React.createElement(ButtonLinkIcon, _extends({},
|
|
111
|
-
onClick: closeButton.onClick,
|
|
112
|
-
ariaLabel: closeButton['aria-label']
|
|
113
|
-
}), {
|
|
31
|
+
}, /*#__PURE__*/React.createElement(ButtonLinkIcon, _extends({}, closeButton, {
|
|
114
32
|
className: style.button
|
|
115
33
|
})), /*#__PURE__*/React.createElement("div", {
|
|
116
34
|
className: style.titleWrapper
|
|
@@ -126,8 +44,12 @@ const HeaderWithActions = props => {
|
|
|
126
44
|
className: style.buttonsWrapper,
|
|
127
45
|
"data-name": getDataName('buttons-wrapper')
|
|
128
46
|
}, bulletPointMenuButton && !isEmpty(bulletPointMenuButton.buttons) ? /*#__PURE__*/React.createElement(BulletPointMenuButton, _extends({}, bulletPointMenuButton, {
|
|
129
|
-
|
|
130
|
-
})) : null,
|
|
47
|
+
buttonAriaLabel: "More actions"
|
|
48
|
+
})) : null, uncappedMap((action, key) => {
|
|
49
|
+
return /*#__PURE__*/React.createElement(ButtonLink, _extends({}, action, {
|
|
50
|
+
key: key
|
|
51
|
+
}));
|
|
52
|
+
}, actionButtons)));
|
|
131
53
|
};
|
|
132
54
|
HeaderWithActions.propTypes = process.env.NODE_ENV !== "production" ? headerWithActionsPropTypes : {};
|
|
133
55
|
export default HeaderWithActions;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["React","isEmpty","map","ButtonLink","ButtonLinkIcon","Tag","BulletPointMenuButton","headerWithActionsPropTypes","style","getDataName","suffix","uncappedMap","convert","cap","
|
|
1
|
+
{"version":3,"file":"index.js","names":["React","isEmpty","map","ButtonLink","ButtonLinkIcon","Tag","BulletPointMenuButton","headerWithActionsPropTypes","style","getDataName","suffix","uncappedMap","convert","cap","HeaderWithActions","props","closeButton","title","tag","saveStatus","bulletPointMenuButton","actionButtons","createElement","className","headerWrapper","titleAndButtonWrapper","_extends","button","titleWrapper","statusWrapper","display","label","buttonsWrapper","buttons","buttonAriaLabel","action","key","propTypes","process","env","NODE_ENV"],"sources":["../../../src/organism/header-with-actions/index.tsx"],"sourcesContent":["import React from 'react';\nimport isEmpty from 'lodash/fp/isEmpty';\nimport map from 'lodash/fp/map';\nimport ButtonLink from '../../atom/button-link';\nimport ButtonLinkIcon from '../../atom/button-link-icon';\nimport Tag from '../../atom/tag';\nimport {ButtonLinkProps} from '../../atom/button-link/types';\nimport BulletPointMenuButton from '../../molecule/bullet-point-menu-button';\nimport headerWithActionsPropTypes, {HeaderWithActionsProps} from './types';\nimport style from './style.css';\n\nconst getDataName = (suffix: string) => `header-with-actions-${suffix}`;\n// @ts-expect-error (need to get the index)\nconst uncappedMap = map.convert({cap: false});\n\nconst HeaderWithActions = (props: HeaderWithActionsProps) => {\n const {closeButton, title, tag, saveStatus, bulletPointMenuButton, actionButtons} = props;\n\n return (\n <div className={style.headerWrapper} data-name={getDataName('wrapper')}>\n <div\n className={style.titleAndButtonWrapper}\n data-name={getDataName('title-and-button-wrapper')}\n >\n <ButtonLinkIcon {...closeButton} className={style.button} />\n <div className={style.titleWrapper}>\n <div className={style.statusWrapper}>\n <Tag {...tag} />\n {saveStatus.display && saveStatus.label ? (\n <p className={style.saveStatus}>{saveStatus.label}</p>\n ) : null}\n </div>\n <h3 className={style.title} aria-label={title} data-name={getDataName('title')}>\n {title}\n </h3>\n </div>\n </div>\n <div className={style.buttonsWrapper} data-name={getDataName('buttons-wrapper')}>\n {bulletPointMenuButton && !isEmpty(bulletPointMenuButton.buttons) ? (\n <BulletPointMenuButton {...bulletPointMenuButton} buttonAriaLabel=\"More actions\" />\n ) : null}\n {uncappedMap((action: ButtonLinkProps, key: string) => {\n return <ButtonLink {...action} key={key} />;\n }, actionButtons)}\n </div>\n </div>\n );\n};\n\nHeaderWithActions.propTypes = headerWithActionsPropTypes;\n\nexport default HeaderWithActions;\n"],"mappings":";AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,OAAO,MAAM,mBAAmB;AACvC,OAAOC,GAAG,MAAM,eAAe;AAC/B,OAAOC,UAAU,MAAM,wBAAwB;AAC/C,OAAOC,cAAc,MAAM,6BAA6B;AACxD,OAAOC,GAAG,MAAM,gBAAgB;AAEhC,OAAOC,qBAAqB,MAAM,yCAAyC;AAC3E,OAAOC,0BAA0B,MAAgC,SAAS;AAC1E,OAAOC,KAAK,MAAM,aAAa;AAE/B,MAAMC,WAAW,GAAIC,MAAc,IAAK,uBAAuBA,MAAM,EAAE;AACvE;AACA,MAAMC,WAAW,GAAGT,GAAG,CAACU,OAAO,CAAC;EAACC,GAAG,EAAE;AAAK,CAAC,CAAC;AAE7C,MAAMC,iBA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AoB,QAAA,KAAKN,qBAAqB;IAAEc,eAAe,EAAC;EAAc,EAAE,CAAC,GACjF,IAAI,EACPvB,WAAW,CAAC,CAACwB,MAAuB,EAAEC,GAAW,KAAK;IACrD,oBAAOpC,KAAA,CAAAsB,aAAA,CAACnB,UAAU,EAAAuB,QAAA,KAAKS,MAAM;MAAEC,GAAG,EAAEA;IAAI,EAAE,CAAC;EAC7C,CAAC,EAAEf,aAAa,CACb,CACF,CAAC;AAEV,CAAC;AAEDP,iBAAiB,CAACuB,SAAS,GAAAC,OAAA,CAAAC,GAAA,CAAAC,QAAA,oBAAGjC,0BAA0B;AAExD,eAAeO,iBAAiB","ignoreList":[]}
|
|
@@ -3,7 +3,10 @@ import { BulletPointMenuButtonProps } from '../../molecule/bullet-point-menu-but
|
|
|
3
3
|
import { ButtonLinkProps } from '../../atom/button-link/types';
|
|
4
4
|
declare const headerWithActionsPropTypes: {
|
|
5
5
|
closeButton: PropTypes.Requireable<PropTypes.InferProps<{
|
|
6
|
-
|
|
6
|
+
size: PropTypes.Validator<string>;
|
|
7
|
+
icon: PropTypes.Validator<string>;
|
|
8
|
+
'data-name': PropTypes.Validator<string>;
|
|
9
|
+
'aria-label': PropTypes.Validator<string>;
|
|
7
10
|
onClick: PropTypes.Validator<(...args: any[]) => any>;
|
|
8
11
|
}>>;
|
|
9
12
|
title: PropTypes.Validator<string>;
|
|
@@ -16,7 +19,7 @@ declare const headerWithActionsPropTypes: {
|
|
|
16
19
|
display: PropTypes.Validator<boolean>;
|
|
17
20
|
label: PropTypes.Requireable<string>;
|
|
18
21
|
}>>>;
|
|
19
|
-
|
|
22
|
+
bulletPointMenuButton: PropTypes.Requireable<PropTypes.InferProps<{
|
|
20
23
|
'data-name': PropTypes.Requireable<string>;
|
|
21
24
|
disabled: PropTypes.Requireable<boolean>;
|
|
22
25
|
buttonAriaLabel: PropTypes.Requireable<string>;
|
|
@@ -49,18 +52,8 @@ declare const headerWithActionsPropTypes: {
|
|
|
49
52
|
onClick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
50
53
|
menuButtonClassName: PropTypes.Requireable<string>;
|
|
51
54
|
isBulkMenu: PropTypes.Requireable<boolean>;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
dataName: PropTypes.Requireable<string>;
|
|
55
|
-
label: PropTypes.Validator<string>;
|
|
56
|
-
iconName: PropTypes.Validator<string>;
|
|
57
|
-
iconColor: PropTypes.Validator<string>;
|
|
58
|
-
onClick: PropTypes.Validator<(...args: any[]) => any>;
|
|
59
|
-
}> | null | undefined)[]>;
|
|
60
|
-
onClick: PropTypes.Validator<(...args: any[]) => any>;
|
|
61
|
-
buttonAriaLabel: PropTypes.Requireable<string>;
|
|
62
|
-
}> | null | undefined>>;
|
|
63
|
-
actionButtons: PropTypes.Validator<NonNullable<NonNullable<(PropTypes.InferProps<{
|
|
55
|
+
}>>;
|
|
56
|
+
actionButtons: PropTypes.Validator<(PropTypes.InferProps<{
|
|
64
57
|
type: PropTypes.Requireable<string>;
|
|
65
58
|
usage: PropTypes.Requireable<string>;
|
|
66
59
|
label: PropTypes.Requireable<string>;
|
|
@@ -96,14 +89,7 @@ declare const headerWithActionsPropTypes: {
|
|
|
96
89
|
customStyle: PropTypes.Requireable<{
|
|
97
90
|
[x: string]: NonNullable<string | number | null | undefined> | null | undefined;
|
|
98
91
|
}>;
|
|
99
|
-
}> | null | undefined)[]
|
|
100
|
-
type: PropTypes.Validator<string>;
|
|
101
|
-
label: PropTypes.Validator<string>;
|
|
102
|
-
onClick: PropTypes.Validator<(...args: any[]) => any>;
|
|
103
|
-
disabled: PropTypes.Requireable<boolean>;
|
|
104
|
-
iconName: PropTypes.Validator<string>;
|
|
105
|
-
iconColor: PropTypes.Validator<string>;
|
|
106
|
-
}> | null | undefined)[] | null | undefined>>>;
|
|
92
|
+
}> | null | undefined)[]>;
|
|
107
93
|
};
|
|
108
94
|
export default headerWithActionsPropTypes;
|
|
109
95
|
declare type TagProps = {
|
|
@@ -116,36 +102,19 @@ declare type SaveStatusProps = {
|
|
|
116
102
|
label?: 'Unsaved changes' | 'Saved';
|
|
117
103
|
};
|
|
118
104
|
declare type CloseButtonProps = {
|
|
105
|
+
size: 'default' | 'small' | 'responsive';
|
|
106
|
+
icon: string;
|
|
107
|
+
'data-name': string;
|
|
119
108
|
'aria-label': string;
|
|
120
109
|
onClick: () => void;
|
|
121
110
|
};
|
|
122
|
-
export declare type ButtonMenuProps = {
|
|
123
|
-
dataName: string;
|
|
124
|
-
label: string;
|
|
125
|
-
iconName: string;
|
|
126
|
-
iconColor: string;
|
|
127
|
-
onClick: () => void;
|
|
128
|
-
};
|
|
129
|
-
declare type BulletPointMenuButtonCustomProps = {
|
|
130
|
-
buttons: ButtonMenuProps[];
|
|
131
|
-
onClick: () => void;
|
|
132
|
-
buttonAriaLabel: string;
|
|
133
|
-
};
|
|
134
|
-
export declare type ButtonActionProps = {
|
|
135
|
-
type: 'primary' | 'secondary';
|
|
136
|
-
label: string;
|
|
137
|
-
onClick: () => void;
|
|
138
|
-
disabled?: boolean;
|
|
139
|
-
iconName: string;
|
|
140
|
-
iconColor: string;
|
|
141
|
-
};
|
|
142
111
|
export declare type HeaderWithActionsProps = {
|
|
143
112
|
closeButton: CloseButtonProps;
|
|
144
113
|
title: string;
|
|
145
114
|
tag: TagProps;
|
|
146
115
|
saveStatus: SaveStatusProps;
|
|
147
|
-
actionButtons: ButtonLinkProps[]
|
|
148
|
-
bulletPointMenuButton?: BulletPointMenuButtonProps
|
|
116
|
+
actionButtons: ButtonLinkProps[];
|
|
117
|
+
bulletPointMenuButton?: BulletPointMenuButtonProps;
|
|
149
118
|
};
|
|
150
119
|
export declare type HeaderWithActionsPropsFixture = {
|
|
151
120
|
props: HeaderWithActionsProps;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/organism/header-with-actions/types.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,YAAY,CAAC;AACnC,OAA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,EAAE,0BAA0B,CAAC;CACpD,CAAC;AAEF,oBAAY,6BAA6B,GAAG;IAAC,KAAK,EAAE,sBAAsB,CAAA;CAAC,CAAC"}
|
|
@@ -2,24 +2,12 @@ import PropTypes from 'prop-types';
|
|
|
2
2
|
import bulletPointMenuButtonPropTypes from '../../molecule/bullet-point-menu-button/types';
|
|
3
3
|
import ButtonLinkPropTypes from '../../atom/button-link/types';
|
|
4
4
|
const closeButtonPropTypes = {
|
|
5
|
-
|
|
5
|
+
size: PropTypes.oneOf(['default', 'small', 'responsive']).isRequired,
|
|
6
|
+
icon: PropTypes.string.isRequired,
|
|
7
|
+
'data-name': PropTypes.string.isRequired,
|
|
8
|
+
'aria-label': PropTypes.string.isRequired,
|
|
6
9
|
onClick: PropTypes.func.isRequired
|
|
7
10
|
};
|
|
8
|
-
const ButtonMenuPropTypes = {
|
|
9
|
-
dataName: PropTypes.string,
|
|
10
|
-
label: PropTypes.string.isRequired,
|
|
11
|
-
iconName: PropTypes.string.isRequired,
|
|
12
|
-
iconColor: PropTypes.string.isRequired,
|
|
13
|
-
onClick: PropTypes.func.isRequired
|
|
14
|
-
};
|
|
15
|
-
const ButtonActionPropTypes = {
|
|
16
|
-
type: PropTypes.string.isRequired,
|
|
17
|
-
label: PropTypes.string.isRequired,
|
|
18
|
-
onClick: PropTypes.func.isRequired,
|
|
19
|
-
disabled: PropTypes.bool,
|
|
20
|
-
iconName: PropTypes.string.isRequired,
|
|
21
|
-
iconColor: PropTypes.string.isRequired
|
|
22
|
-
};
|
|
23
11
|
const headerWithActionsPropTypes = {
|
|
24
12
|
closeButton: PropTypes.shape(closeButtonPropTypes),
|
|
25
13
|
title: PropTypes.string.isRequired,
|
|
@@ -32,12 +20,8 @@ const headerWithActionsPropTypes = {
|
|
|
32
20
|
display: PropTypes.bool.isRequired,
|
|
33
21
|
label: PropTypes.oneOf(['Unsaved changes', 'Saved'])
|
|
34
22
|
}).isRequired,
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
onClick: PropTypes.func.isRequired,
|
|
38
|
-
buttonAriaLabel: PropTypes.string
|
|
39
|
-
})]),
|
|
40
|
-
actionButtons: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.shape(ButtonLinkPropTypes)), PropTypes.arrayOf(PropTypes.shape(ButtonActionPropTypes))]).isRequired
|
|
23
|
+
bulletPointMenuButton: PropTypes.shape(bulletPointMenuButtonPropTypes),
|
|
24
|
+
actionButtons: PropTypes.arrayOf(PropTypes.shape(ButtonLinkPropTypes)).isRequired
|
|
41
25
|
};
|
|
42
26
|
export default headerWithActionsPropTypes;
|
|
43
27
|
//# sourceMappingURL=types.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","names":["PropTypes","bulletPointMenuButtonPropTypes","ButtonLinkPropTypes","closeButtonPropTypes","
|
|
1
|
+
{"version":3,"file":"types.js","names":["PropTypes","bulletPointMenuButtonPropTypes","ButtonLinkPropTypes","closeButtonPropTypes","size","oneOf","isRequired","icon","string","onClick","func","headerWithActionsPropTypes","closeButton","shape","title","tag","label","type","saveStatus","display","bool","bulletPointMenuButton","actionButtons","arrayOf"],"sources":["../../../src/organism/header-with-actions/types.ts"],"sourcesContent":["import PropTypes from 'prop-types';\nimport bulletPointMenuButtonPropTypes, {\n BulletPointMenuButtonProps\n} from '../../molecule/bullet-point-menu-button/types';\nimport ButtonLinkPropTypes, {ButtonLinkProps} from '../../atom/button-link/types';\n\nconst closeButtonPropTypes = {\n size: PropTypes.oneOf(['default', 'small', 'responsive']).isRequired,\n icon: PropTypes.string.isRequired,\n 'data-name': PropTypes.string.isRequired,\n 'aria-label': PropTypes.string.isRequired,\n onClick: PropTypes.func.isRequired\n};\nconst headerWithActionsPropTypes = {\n closeButton: PropTypes.shape(closeButtonPropTypes),\n title: PropTypes.string.isRequired,\n tag: PropTypes.shape({\n label: PropTypes.oneOf(['Published', 'Ongoing changes', 'Draft', 'Archived']).isRequired,\n type: PropTypes.oneOf(['success', 'progress', 'warning']).isRequired,\n size: PropTypes.string.isRequired\n }).isRequired,\n saveStatus: PropTypes.shape({\n display: PropTypes.bool.isRequired,\n label: PropTypes.oneOf(['Unsaved changes', 'Saved'])\n }).isRequired,\n bulletPointMenuButton: PropTypes.shape(bulletPointMenuButtonPropTypes),\n actionButtons: PropTypes.arrayOf(PropTypes.shape(ButtonLinkPropTypes)).isRequired\n};\n\nexport default headerWithActionsPropTypes;\n\ntype TagProps = {\n label: 'Published' | 'Ongoing changes' | 'Draft' | 'Archived';\n type: 'success' | 'progress' | 'warning';\n size: string;\n};\n\ntype SaveStatusProps = {\n display: boolean;\n label?: 'Unsaved changes' | 'Saved';\n};\n\ntype CloseButtonProps = {\n size: 'default' | 'small' | 'responsive';\n icon: string;\n 'data-name': string;\n 'aria-label': string;\n onClick: () => void;\n};\n\nexport type HeaderWithActionsProps = {\n closeButton: CloseButtonProps;\n title: string;\n tag: TagProps;\n saveStatus: SaveStatusProps;\n actionButtons: ButtonLinkProps[];\n bulletPointMenuButton?: BulletPointMenuButtonProps;\n};\n\nexport type HeaderWithActionsPropsFixture = {props: HeaderWithActionsProps};\n"],"mappings":"AAAA,OAAOA,SAAS,MAAM,YAAY;AAClC,OAAOC,8BAA8B,MAE9B,+CAA+C;AACtD,OAAOC,mBAAmB,MAAyB,8BAA8B;AAEjF,MAAMC,oBAAoB,GAAG;EAC3BC,IAAI,EAAEJ,SAAS,CAACK,KAAK,CAAC,CAAC,SAAS,EAAE,OAAO,EAAE,YAAY,CAAC,CAAC,CAACC,UAAU;EACpEC,IAAI,EAAEP,SAAS,CAACQ,MAAM,CAACF,UAAU;EACjC,WAAW,EAAEN,SAAS,CAACQ,MAAM,CAACF,UAAU;EACxC,YAAY,EAAEN,SAAS,CAACQ,MAAM,CAACF,UAAU;EACzCG,OAAO,EAAET,SAAS,CAACU,IAAI,CAACJ;AAC1B,CAAC;AACD,MAAMK,0BAA0B,GAAG;EACjCC,WAAW,EAAEZ,SAAS,CAACa,KAAK,CAACV,oBAAoB,CAAC;EAClDW,KAAK,EAAEd,SAAS,CAACQ,MAAM,CAACF,UAAU;EAClCS,GAAG,EAAEf,SAAS,CAACa,KAAK,CAAC;IACnBG,KAAK,EAAEhB,SAAS,CAACK,KAAK,CAAC,CAAC,WAAW,EAAE,iBAAiB,EAAE,OAAO,EAAE,UAAU,CAAC,CAAC,CAACC,UAAU;IACxFW,IAAI,EAAEjB,SAAS,CAACK,KAAK,CAAC,CAAC,SAAS,EAAE,UAAU,EAAE,SAAS,CAAC,CAAC,CAACC,UAAU;IACpEF,IAAI,EAAEJ,SAAS,CAACQ,MAAM,CAACF;EACzB,CAAC,CAAC,CAACA,UAAU;EACbY,UAAU,EAAElB,SAAS,CAACa,KAAK,CAAC;IAC1BM,OAAO,EAAEnB,SAAS,CAACoB,IAAI,CAACd,UAAU;IAClCU,KAAK,EAAEhB,SAAS,CAACK,KAAK,CAAC,CAAC,iBAAiB,EAAE,OAAO,CAAC;EACrD,CAAC,CAAC,CAACC,UAAU;EACbe,qBAAqB,EAAErB,SAAS,CAACa,KAAK,CAACZ,8BAA8B,CAAC;EACtEqB,aAAa,EAAEtB,SAAS,CAACuB,OAAO,CAACvB,SAAS,CAACa,KAAK,CAACX,mBAAmB,CAAC,CAAC,CAACI;AACzE,CAAC;AAED,eAAeK,0BAA0B","ignoreList":[]}
|
|
@@ -79,25 +79,25 @@ const ListItem = ({
|
|
|
79
79
|
}, order + 1) : null;
|
|
80
80
|
const extractedIndex = _pipe(_split('-'), _last)(dataName);
|
|
81
81
|
return /*#__PURE__*/React.createElement("div", {
|
|
82
|
-
className: classnames(style.wrapper, isBulkStyle
|
|
82
|
+
className: classnames(style.wrapper, isBulkStyle ? style.gridLayout : style.flexLayout, subtitle && style.withSubtitle, disabled && style.disabled, onClick !== _noop && !disabled && style.cursorPointer, checkbox?.checked && style.checked),
|
|
83
83
|
onClick: !disabled ? onClick : undefined,
|
|
84
84
|
style: selectedStyle,
|
|
85
85
|
"data-name": dataName
|
|
86
86
|
}, /*#__PURE__*/React.createElement("div", {
|
|
87
87
|
className: classnames(style.dataColumnsWrapper, isOverflowHidden && style.hiddenOverflowX)
|
|
88
|
-
}, isPublished && contentType === 'certification' ? orderView : null, /*#__PURE__*/React.createElement("div", {
|
|
88
|
+
}, isPublished && contentType === 'certification' ? orderView : null, leftIcon || image || checkable ? /*#__PURE__*/React.createElement("div", {
|
|
89
89
|
className: style.leftSection
|
|
90
|
-
}, checkable ? /*#__PURE__*/React.createElement(CheckboxWithTitle, checkbox) : null, leftIcon && !image ? /*#__PURE__*/React.createElement(
|
|
90
|
+
}, checkable ? /*#__PURE__*/React.createElement(CheckboxWithTitle, checkbox) : null, leftIcon && !image ? /*#__PURE__*/React.createElement(FaIcon, {
|
|
91
91
|
iconName: leftIcon.iconName,
|
|
92
92
|
gradientBackground: leftIcon.gradientBackground || true,
|
|
93
93
|
iconColor: leftIcon.iconColor || primarySelectedColor,
|
|
94
94
|
preset: leftIcon.preset || 'xl',
|
|
95
95
|
borderRadius: leftIcon.borderRadius || '25%'
|
|
96
|
-
})
|
|
96
|
+
}) : null, !leftIcon && image ? /*#__PURE__*/React.createElement("div", {
|
|
97
97
|
className: style.containerImage
|
|
98
98
|
}, /*#__PURE__*/React.createElement(CardImagePreview, {
|
|
99
99
|
image: image
|
|
100
|
-
})) : null), /*#__PURE__*/React.createElement("div", {
|
|
100
|
+
})) : null) : null, /*#__PURE__*/React.createElement("div", {
|
|
101
101
|
className: style.titleWrapper
|
|
102
102
|
}, /*#__PURE__*/React.createElement("div", {
|
|
103
103
|
className: style.titleProviderWrapper
|